Version Description
- Fix: Better support for installing any repo plugin.
- Fix: Possible issue with Customizer Import.
Download this release
Release Info
Developer | britner |
Plugin | Starter Templates by Kadence WP |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
- assets/js/starter-templates.asset.php +1 -1
- assets/js/starter-templates.js +1 -1
- class-kadence-starter-templates.php +247 -9
- inc/class-import-export-option.php +1 -0
- inc/react/src/index.js +295 -167
- kadence-starter-templates.php +1 -1
- readme.txt +5 -1
- vendor/wxr-importer/WXRImporter.php +7 -7
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' => '
|
1 |
+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-polyfill', 'wp-primitives'), 'version' => '3c5969b2285c0a04ed8665833819b509');
|
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=145)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,a){var r=a(31),n=a(49),s=a(128),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(){e.exports=this.wp.primitives}()},function(e,t,a){var r=a(62),n=a(67);e.exports=function(e,t){var a=n(e,t);return r(a)?a:void 0}},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,a){var r=a(12),n=a(63),s=a(64),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(52),n=a(53),s=a(54),c=a(55),o=a(56);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(6)(Object,"create");e.exports=r},function(e,t,a){var r=a(76);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(29);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){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(48);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(30),n=a(2);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?n(e):t}},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(134),s=d(n),c=d(a(135)),o=a(138),i=a(139),l=d(a(140)),u=d(a(141)),p=d(a(142)),m=d(a(143));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(6)(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(68),n=a(75),s=a(77),c=a(78),o=a(79);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(97),n=a(104),s=a(27);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(26);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},function(e,t,a){var r=a(4),n=a(29),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(8),n=a(9);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},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){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(10),n=a(57),s=a(58),c=a(59),o=a(60),i=a(61);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(8),n=a(23);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(22))},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(80),n=a(9);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(81),n=a(84),s=a(85);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,v=2&a?new r:void 0;for(i.set(e,t),i.set(t,e);++d<u;){var b=e[d],h=t[d];if(c)var g=l?c(h,b,d,t,e,i):c(b,h,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(v){if(!n(t,(function(e,t){if(!s(v,t)&&(b===e||o(b,e,a,c,i)))return v.push(t)}))){f=!1;break}}else if(b!==h&&!o(b,h,a,c,i)){f=!1;break}}return i.delete(e),i.delete(t),f}},function(e,t,a){var r=a(99),n=a(9),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(100),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(101),n=a(102),s=a(103),c=s&&s.isTypedArray,o=c?n(c):r;e.exports=o},function(e,t,a){var r=a(23);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(15);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(28),s=a(116),c=a(119);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(50),n=a(114),s=a(124),c=a(4),o=a(125);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(51),n=a(113),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(11),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(11);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(11);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,a){var r=a(11);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(10);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(10),n=a(21),s=a(24);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(65),s=a(23),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(12),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(66),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(69),n=a(10),s=a(21);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(70),n=a(71),s=a(72),c=a(73),o=a(74);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(13);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(13),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(13),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(13);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(14);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(14);e.exports=function(e){return r(this,e).get(e)}},function(e,t,a){var r=a(14);e.exports=function(e){return r(this,e).has(e)}},function(e,t,a){var r=a(14);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(86),c=a(90),o=a(108),i=a(4),l=a(40),u=a(43),p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,a,d,f,v){var b=i(e),h=i(t),g=b?"[object Array]":o(e),j=h?"[object Array]":o(t),y=(g="[object Arguments]"==g?p:g)==p,k=(j="[object Arguments]"==j?p:j)==p,O=g==j;if(O&&l(e)){if(!l(t))return!1;b=!0,y=!1}if(O&&!y)return v||(v=new r),b||u(e)?n(e,t,a,d,f,v):s(e,t,g,a,d,f,v);if(!(1&a)){var _=y&&m.call(e,"__wrapped__"),E=k&&m.call(t,"__wrapped__");if(_||E){var S=_?e.value():e,P=E?t.value():t;return v||(v=new r),f(S,P,a,d,v)}}return!!O&&(v||(v=new r),c(e,t,a,d,f,v))}},function(e,t,a){var r=a(24),n=a(82),s=a(83);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(12),n=a(87),s=a(33),c=a(38),o=a(88),i=a(89),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 v=m.get(e);if(v)return v==t;r|=2,m.set(e,t);var b=c(d(e),d(t),r,l,p,m);return m.delete(e),b;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(91),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 v=i;++p<u;){var b=e[m=l[p]],h=t[m];if(s)var g=i?s(h,b,m,t,e,o):s(b,h,m,e,t,o);if(!(void 0===g?b===h||c(b,h,a,s,o):g)){f=!1;break}v||(v="constructor"==m)}if(f&&!v){var j=e.constructor,y=t.constructor;j==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof j&&j instanceof j&&"function"==typeof y&&y instanceof y||(f=!1)}return o.delete(e),o.delete(t),f}},function(e,t,a){var r=a(92),n=a(94),s=a(25);e.exports=function(e){return r(e,s,n)}},function(e,t,a){var r=a(93),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(95),n=a(96),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(98),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):[],v=f.length;for(var b in e)!t&&!l.call(e,b)||d&&("length"==b||p&&("offset"==b||"parent"==b)||m&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||o(b,v))||f.push(b);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(8),n=a(9);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(8),n=a(26),s=a(9),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(105),n=a(106),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(107)(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(109),n=a(21),s=a(110),c=a(111),o=a(112),i=a(8),l=a(36),u=l(r),p=l(n),m=l(s),d=l(c),f=l(o),v=i;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=v(new n)||s&&"[object Promise]"!=v(s.resolve())||c&&"[object Set]"!=v(new c)||o&&"[object WeakMap]"!=v(new o))&&(v=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=v},function(e,t,a){var r=a(6)(a(3),"DataView");e.exports=r},function(e,t,a){var r=a(6)(a(3),"Promise");e.exports=r},function(e,t,a){var r=a(6)(a(3),"Set");e.exports=r},function(e,t,a){var r=a(6)(a(3),"WeakMap");e.exports=r},function(e,t,a){var r=a(44),n=a(25);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(115),s=a(121),c=a(28),o=a(44),i=a(45),l=a(15);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(117),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(118);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(24);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(120);e.exports=function(e){return null==e?"":r(e)}},function(e,t,a){var r=a(12),n=a(31),s=a(4),c=a(29),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(122),n=a(123);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(26),i=a(15);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(126),n=a(127),s=a(28),c=a(15);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(129),n=a(27);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(130),n=a(133)(r);e.exports=n},function(e,t,a){var r=a(131),n=a(25);e.exports=function(e,t){return e&&r(e,t,n)}},function(e,t,a){var r=a(132)();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(27);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(136)()},function(e,t,a){"use strict";var r=a(137);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 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(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,b=!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(k,t),u?g(e):c}function y(e){var a=e-i;return void 0===i||a>=t||a<0||b&&e-l>=s}function k(){var e=d();if(y(e))return O(e);o=setTimeout(k,function(e){var a=t-(e-i);return b?m(a,s-(e-l)):a}(e))}function O(e){return o=void 0,h&&r?g(e):(r=n=void 0,c)}function _(){var e=d(),a=y(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return j(i);if(b)return o=setTimeout(k,t),g(i)}return void 0===o&&(o=setTimeout(k,t)),c}return t=v(t)||0,f(a)&&(u=!!a.leading,s=(b="maxWait"in a)?p(v(a.maxWait)||0,t):s,h="trailing"in a?!!a.trailing:h),_.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=i=n=o=void 0},_.flush=function(){return void 0===o?c:O(d())},_}}).call(this,a(22))},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(k,t),u?g(e):c}function y(e){var a=e-i;return void 0===i||a>=t||a<0||f&&e-l>=s}function k(){var e=d();if(y(e))return O(e);o=setTimeout(k,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 _(){var e=d(),a=y(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return j(i);if(f)return o=setTimeout(k,t),g(i)}return void 0===o&&(o=setTimeout(k,t)),c}return t=b(t)||0,v(a)&&(u=!!a.leading,s=(f="maxWait"in a)?p(b(a.maxWait)||0,t):s,h="trailing"in a?!!a.trailing:h),_.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=i=n=o=void 0},_.flush=function(){return void 0===o?c:O(d())},_}function v(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(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(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 v(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(22))},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(144),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(16),n=a.n(r),s=a(17),c=a.n(s),o=a(2),i=a.n(o),l=a(18),u=a.n(l),p=a(19),m=a.n(p),d=a(7),f=a.n(d),v=a(30),b=a.n(v),h=a(0),g=a(1),j=a.n(g),y=a(20),k=a.n(y);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 _=wp.i18n,E=_.__,S=(_.sprintf,wp.element),P=S.Fragment,w=S.Component,x=(S.render,S.PureComponent,wp.components),T=(x.Modal,x.Spinner,x.ButtonGroup),N=(x.Dropdown,x.Button),z=x.ExternalLink,M=(x.ToolbarGroup,x.MenuItem,x.Tooltip),C=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)(M,{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)(P,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 Membership 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,"full Kadence Membership 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 Membership is required","kadence-starter-sites")," "),Object(h.createElement)(z,{className:"kst-upgrade button-hero button button-primary",href:"https://www.kadencewp.com/product/kadence-membership/"},E("Upgrade to Membership","kadence-starter-sites"))):Object(h.createElement)(P,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),F=a(5),I=Object(h.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(h.createElement)(F.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"})),D=Object(h.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(h.createElement)(F.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),A=Object(h.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(h.createElement)(F.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));function H(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 L(e){try{var t=JSON.parse(e);if(t&&"object"===b()(t))return t}catch(e){}return!1}var R=wp.i18n,B=R.__,V=(R.sprintf,wp.element),q=V.Fragment,W=V.Component,G=V.render,$=(V.PureComponent,wp.components),U=$.Modal,K=$.Spinner,J=($.ButtonGroup,$.Dropdown),Y=$.Icon,X=$.Button,Q=$.ExternalLink,Z=($.ToolbarGroup,$.ToggleControl),ee=$.MenuItem,te=$.Tooltip,ae=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"})),re=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"})))),ne=(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"})))),se=function(e){u()(a,e);var t=H(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.loadTemplateData=e.loadTemplateData.bind(i()(e)),e.reloadTemplateData=e.reloadTemplateData.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},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})}},{key:"fullFocusMode",value:function(e){this.setState({activeTemplate:e,focusMode:!0,isSelected:!0})}},{key:"jumpToImport",value:function(e){this.setState({isImporting:!0,activeTemplate:e,focusMode:!0,isSelected:!0,fontPair:"",colorPalette:""})}},{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:"",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=new FormData;e.append("action","kadence_import_reload_template_data"),e.append("security",kadenceStarterParams.ajax_nonce),e.append("api_key",kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:""),e.append("api_email",kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:""),e.append("template_type",this.state.starterSettings.builderType);var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(e,a,r){if(e){var n=L(e);n?t.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):t.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),t.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"loadTemplateData",value:function(){this.setState({errorTemplates:!1,isSaving:!0,activeTemplates:"loading"});var e=new FormData;e.append("action","kadence_import_get_template_data"),e.append("security",kadenceStarterParams.ajax_nonce),e.append("api_key",kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:""),e.append("api_email",kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:""),e.append("template_type",this.state.starterSettings.builderType);var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(e,a,r){if(e){var n=L(e);n?t.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):t.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),t.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"runPluginInstallSingle",value:function(e,t,a){this.setState({progress:"plugins",isFetching:!0});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:"runRemovePast",value:function(e,t){this.setState({progress:"remove",isFetching:!0});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});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:"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&&"pluginSuccess"===a.status){t.setState({progress:"content"});var s=new FormData;s.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:"",response:"<p>"+a.message+"</p>"}):t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",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:"",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){t.setState({progress:"customizer"}),(s=new FormData).append("action","kadence_import_customizer_data"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("wp_customize","on"),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){t.setState({progress:"content"}),(s=new FormData).append("action","kadence_import_demo_data"),s.append("security",kadenceStarterParams.ajax_nonce),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.runAjax(s)}else if(void 0!==a.status&&"removeSuccess"===a.status){var s;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 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:"",response:"<p>"+a.message+"</p>"}):void 0===a.success||a.success?t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",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:"",response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+B("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:"",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=B("Gutenberg","kadence-starter-templates"),s=ne;"elementor"===this.state.starterSettings.builderType&&(n=B("Elementor","kadence-starter-templates"),s=re),"custom"===this.state.starterSettings.builderType&&(n=kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:B("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}):ae);var c=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,B("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name),Object(h.createElement)("br",null)," ",B("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,B("Page Template 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&&"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?B("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"},B("Please install and activate this third-party premium plugin")):"")}))),Object(h.createElement)("p",{className:"desc-small note-about-colors"},B("*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)(Z,{label:B("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)(U,{className:"ksp-confirm-modal",title:B("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"},B("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)(X,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!1})}},B("Cancel","kadence-starter-templates")),Object(h.createElement)(X,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!0})}},B("Override Colors","kadence-starter-templates")))):null,e.state.overrideColors&&e.state.colorPalette&&Object(h.createElement)(q,null,Object(h.createElement)("h3",null,B("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)(Z,{label:B("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)(U,{className:"ksp-confirm-modal",title:B("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"},B("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)(X,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!1})}},B("Cancel","kadence-starter-templates")),Object(h.createElement)(X,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!0})}},B("Override Fonts","kadence-starter-templates")))):null,e.state.fontPair&&e.state.overrideFonts&&Object(h.createElement)(q,null,Object(h.createElement)("h3",{className:"kst-selected-font-pair-title"},B("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))}))),"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)(K,null),!kadenceStarterParams.isKadence&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,B("This Template Requires the Kadence Theme","kadence-starter-templates")),Object(h.createElement)(Q,{href:"https://kadence-theme.com/"},B("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(h.createElement)(q,null,a&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,B("Install Missing/Inactive Highlighted Premium Membership plugins to Import","kadence-starter-templates")),Object(h.createElement)(Q,{href:"https://www.kadencewp.com/my-account/"},B("Membership Account","kadence-starter-templates"))),!a&&Object(h.createElement)(X,{className:"kt-defaults-save",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.runPluginInstallSingle(t.slug,e.state.selectedPage,e.state.starterSettings.builderType)}},B("Start Importing Page"))))))},o=function(){var t=e.state.activeTemplates[e.state.activeTemplate],a=!1,r=!1;return Object(h.createElement)(q,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,B("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name)))))),Object(h.createElement)(U,{className:"kst-import-modal",title:B("Import Starter Template"),onRequestClose:function(){return!e.state.isFetching&&e.setState({activeTemplate:"",colorPalette:"",focusMode:!1,isImporting:!1,progress:""})}},e.state.hasContent&&Object(h.createElement)("div",{className:"kadence_starter_templates_notice"},e.state.hasPastContent?Object(h.createElement)(q,null,kadenceStarterParams.notice_previous):Object(h.createElement)(q,null,kadenceStarterParams.notice)),Object(h.createElement)("h3",null,B("Starter Template Plugins","kadence-starter-templates")),j()(t.plugins,(function(e){kadenceStarterParams.plugins[e]&&"active"!==kadenceStarterParams.plugins[e].state&&"thirdparty"===kadenceStarterParams.plugins[e].src&&(a=!0)})),a&&Object(h.createElement)("p",{className:"desc-small install-third-party-notice"},B("*This starter template requires premium third-party plugins. Please install missing/inactive premium plugins to import.","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&&"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?B("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"},B("Please install and activate this third-party premium Plugin")):"")}))),e.state.colorPalette&&Object(h.createElement)(q,null,Object(h.createElement)("h3",null,B("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)(q,null,Object(h.createElement)("h3",{className:"kst-selected-font-pair-title"},B("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))}))),e.state.hasPastContent&&Object(h.createElement)(q,null,Object(h.createElement)(Z,{label:B("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})}})),"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)(K,null),!kadenceStarterParams.isKadence&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,B("This Starter Template Requires the Kadence Theme","kadence-starter-templates")),Object(h.createElement)(Q,{href:"https://kadence-theme.com/"},B("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(h.createElement)(q,null,a&&Object(h.createElement)(q,null,r&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,B("Install Missing/Inactive Highlighted Premium Membership plugins to Import","kadence-starter-templates")),Object(h.createElement)(Q,{href:"https://www.kadencewp.com/my-account/"},B("Membership Account","kadence-starter-templates"))),!r&&Object(h.createElement)(X,{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)}},B("Skip and Import with Partial Content"))),!a&&Object(h.createElement)(q,null,r&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,B("Install Missing/Inactive Highlighted Premium Membership plugins to Import","kadence-starter-templates")),Object(h.createElement)(Q,{href:"https://www.kadencewp.com/my-account/"},B("Membership Account","kadence-starter-templates"))),!r&&Object(h.createElement)(X,{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)}},B("Start Importing"))))))},i=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)(q,null,Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,B("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)(X,{key:r,className:"kst-import-btn",isSmall:!0,onClick:function(){return e.selectedMode(r)}},Object(h.createElement)(k.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,B("View Details","kadence-starter-templates"))))))}))),Object(h.createElement)("div",{className:"kst-import-selection-bottom"},Object(h.createElement)(X,{className:"kt-import-fullsite",isPrimary:!0,onClick:function(){return e.selectedFullMode()}},B("Import Full Site","kadence-starter-templates")))))},l=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)(X,{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)(k.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)(q,null,Object(h.createElement)("span",{className:"kb-pro-template"},B("Membership","kadence-starter-sites"))))})))},u=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,B("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name),Object(h.createElement)("br",null)," ",B("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,B("Import complete!","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence_starter_templates_finished"},Object(h.createElement)("div",{dangerouslySetInnerHTML:{__html:e.state.response}}))))))},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&&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,B("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,B("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)(q,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)(te,{text:B("Back to Individual Pages Grid")},Object(h.createElement)(X,{className:"kt-import-back",icon:D,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)(te,{text:B("Back to Starter Templates Grid")},Object(h.createElement)(X,{className:"kt-import-back",icon:D,onClick:function(){return e.backToDash()}}))),this.state.finished&&Object(h.createElement)("div",{class:"kadence_theme_dash_back"},Object(h.createElement)(te,{text:B("Back to Starter Templates Grid")},Object(h.createElement)(X,{className:"kt-import-back",icon:D,onClick:function(){return e.backToDash()}}))),Object(h.createElement)("div",{class:"kadence_starter_builder_type"},this.state.starterSettings&&this.state.starterSettings.builderType&&Object(h.createElement)(J,{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)(X,{onClick:a,"aria-expanded":t,icon:s},n,Object(h.createElement)(Y,{className:"kst-chev",icon:A}))},renderContent:function(t){t.isOpen;var a=t.onToggle;return Object(h.createElement)("div",null,Object(h.createElement)(ee,{icon:ne,className:"blocks"===e.state.starterSettings.builderType?"active-item":"",isSelected:"blocks"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","blocks"),e.setState({activeTemplate:"",colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},B("Gutenberg","kadence-starter-templates")),Object(h.createElement)(ee,{icon:re,className:"elementor"===e.state.starterSettings.builderType?"active-item":"",isSelected:"elementor"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","elementor"),e.setState({activeTemplate:"",colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},B("Elementor","kadence-starter-templates")),kadenceStarterParams.ctemplates&&Object(h.createElement)(ee,{icon:kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):ae,className:"custom"===e.state.starterSettings.builderType?"active-item":"",isSelected:"custom"===e.state.starterSettings.builderType,onClick:function(){e.saveConfig("builderType","custom"),e.setState({activeTemplate:"",colorPalette:"",finished:!1,selectedPage:"home",focusMode:!1,isSelected:!1,isPageSelected:!1,isImporting:!1,progress:"",activeTemplates:!1}),a()}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:B("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)(te,{text:B("Sync with Cloud")},Object(h.createElement)(X,{className:"kt-reload-templates",icon:I,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)(q,null,e.state.isSaving||!1===e.state.activeTemplates||e.state.errorTemplates?Object(h.createElement)("div",{className:"main-panel"},Object(h.createElement)("div",{className:"kst-overlay-saving"},!e.state.errorTemplates&&Object(h.createElement)(K,null),e.state.errorTemplates&&Object(h.createElement)(q,null,Object(h.createElement)("h2",{style:{textAlign:"center"}},B("Error, Unable to access template database, please try re-downloading","kadence-starter-templates")),Object(h.createElement)("div",{style:{textAlign:"center"}},Object(h.createElement)(X,{className:"kt-reload-templates",icon:I,onClick:function(){return e.reloadTemplateData()}},B(" Sync with Cloud","kadence-starter-templates")))),!1===e.state.activeTemplates&&Object(h.createElement)(q,null,e.loadTemplateData()))):Object(h.createElement)("div",{className:"main-panel"},e.state.focusMode&&Object(h.createElement)(q,null,e.state.isImporting&&Object(h.createElement)(q,null,e.state.isPageSelected?Object(h.createElement)(c,null):Object(h.createElement)(o,null)),!e.state.isImporting&&e.state.isSelected&&Object(h.createElement)(C,{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)(i,null)),!e.state.focusMode&&!e.state.finished&&Object(h.createElement)(l,null),e.state.finished&&Object(h.createElement)(q,null,e.state.isPageSelected?Object(h.createElement)(u,null):Object(h.createElement)(p,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"},B("Choose a Builder","kadence-starter-templates")),Object(h.createElement)("div",{className:"kst-choose-builder-inner"},kadenceStarterParams.ctemplates&&Object(h.createElement)(X,{icon:kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):ae,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","custom")}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:B("Pro Designs","kadence-starter-templates")),Object(h.createElement)(X,{icon:ne,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","blocks")}},B("Gutenberg","kadence-starter-templates")),Object(h.createElement)(X,{icon:re,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","elementor")}},B("Elementor","kadence-starter-templates"))),e.state.isSaving&&Object(h.createElement)("div",{className:"kst-overlay-saving"},Object(h.createElement)(K,null))))}),null)))}}]),a}(W);wp.domReady((function(){G(Object(h.createElement)(se,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=145)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,a){var r=a(31),n=a(49),s=a(128),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(){e.exports=this.wp.primitives}()},function(e,t,a){var r=a(62),n=a(67);e.exports=function(e,t){var a=n(e,t);return r(a)?a:void 0}},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,a){var r=a(12),n=a(63),s=a(64),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(52),n=a(53),s=a(54),c=a(55),o=a(56);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(6)(Object,"create");e.exports=r},function(e,t,a){var r=a(76);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){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(48);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){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(134),s=d(n),c=d(a(135)),o=a(138),i=a(139),l=d(a(140)),u=d(a(141)),p=d(a(142)),m=d(a(143));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(6)(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(68),n=a(75),s=a(77),c=a(78),o=a(79);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(97),n=a(104),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(8),n=a(9);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(10),n=a(57),s=a(58),c=a(59),o=a(60),i=a(61);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(8),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(80),n=a(9);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(81),n=a(84),s=a(85);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,v=2&a?new r:void 0;for(i.set(e,t),i.set(t,e);++d<u;){var b=e[d],h=t[d];if(c)var g=l?c(h,b,d,t,e,i):c(b,h,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(v){if(!n(t,(function(e,t){if(!s(v,t)&&(b===e||o(b,e,a,c,i)))return v.push(t)}))){f=!1;break}}else if(b!==h&&!o(b,h,a,c,i)){f=!1;break}}return i.delete(e),i.delete(t),f}},function(e,t,a){var r=a(99),n=a(9),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(100),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(101),n=a(102),s=a(103),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(15);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(116),c=a(119);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(50),n=a(114),s=a(124),c=a(4),o=a(125);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(51),n=a(113),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(11),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(11);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(11);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,a){var r=a(11);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(10);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(10),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(65),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(12),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(66),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(69),n=a(10),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(70),n=a(71),s=a(72),c=a(73),o=a(74);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(13);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(13),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(13),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(13);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(14);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(14);e.exports=function(e){return r(this,e).get(e)}},function(e,t,a){var r=a(14);e.exports=function(e){return r(this,e).has(e)}},function(e,t,a){var r=a(14);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(86),c=a(90),o=a(108),i=a(4),l=a(40),u=a(43),p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,a,d,f,v){var b=i(e),h=i(t),g=b?"[object Array]":o(e),j=h?"[object Array]":o(t),y=(g="[object Arguments]"==g?p:g)==p,k=(j="[object Arguments]"==j?p:j)==p,O=g==j;if(O&&l(e)){if(!l(t))return!1;b=!0,y=!1}if(O&&!y)return v||(v=new r),b||u(e)?n(e,t,a,d,f,v):s(e,t,g,a,d,f,v);if(!(1&a)){var P=y&&m.call(e,"__wrapped__"),E=k&&m.call(t,"__wrapped__");if(P||E){var _=P?e.value():e,S=E?t.value():t;return v||(v=new r),f(_,S,a,d,v)}}return!!O&&(v||(v=new r),c(e,t,a,d,f,v))}},function(e,t,a){var r=a(25),n=a(82),s=a(83);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(12),n=a(87),s=a(33),c=a(38),o=a(88),i=a(89),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 v=m.get(e);if(v)return v==t;r|=2,m.set(e,t);var b=c(d(e),d(t),r,l,p,m);return m.delete(e),b;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(91),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 v=i;++p<u;){var b=e[m=l[p]],h=t[m];if(s)var g=i?s(h,b,m,t,e,o):s(b,h,m,e,t,o);if(!(void 0===g?b===h||c(b,h,a,s,o):g)){f=!1;break}v||(v="constructor"==m)}if(f&&!v){var j=e.constructor,y=t.constructor;j==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof j&&j instanceof j&&"function"==typeof y&&y instanceof y||(f=!1)}return o.delete(e),o.delete(t),f}},function(e,t,a){var r=a(92),n=a(94),s=a(26);e.exports=function(e){return r(e,s,n)}},function(e,t,a){var r=a(93),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(95),n=a(96),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(98),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):[],v=f.length;for(var b in e)!t&&!l.call(e,b)||d&&("length"==b||p&&("offset"==b||"parent"==b)||m&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||o(b,v))||f.push(b);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(8),n=a(9);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(8),n=a(27),s=a(9),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(105),n=a(106),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(107)(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(109),n=a(22),s=a(110),c=a(111),o=a(112),i=a(8),l=a(36),u=l(r),p=l(n),m=l(s),d=l(c),f=l(o),v=i;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=v(new n)||s&&"[object Promise]"!=v(s.resolve())||c&&"[object Set]"!=v(new c)||o&&"[object WeakMap]"!=v(new o))&&(v=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=v},function(e,t,a){var r=a(6)(a(3),"DataView");e.exports=r},function(e,t,a){var r=a(6)(a(3),"Promise");e.exports=r},function(e,t,a){var r=a(6)(a(3),"Set");e.exports=r},function(e,t,a){var r=a(6)(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(115),s=a(121),c=a(29),o=a(44),i=a(45),l=a(15);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(117),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(118);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(120);e.exports=function(e){return null==e?"":r(e)}},function(e,t,a){var r=a(12),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(122),n=a(123);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(15);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(126),n=a(127),s=a(29),c=a(15);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(129),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(130),n=a(133)(r);e.exports=n},function(e,t,a){var r=a(131),n=a(26);e.exports=function(e,t){return e&&r(e,t,n)}},function(e,t,a){var r=a(132)();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(136)()},function(e,t,a){"use strict";var r=a(137);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 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(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,b=!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(k,t),u?g(e):c}function y(e){var a=e-i;return void 0===i||a>=t||a<0||b&&e-l>=s}function k(){var e=d();if(y(e))return O(e);o=setTimeout(k,function(e){var a=t-(e-i);return b?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=y(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return j(i);if(b)return o=setTimeout(k,t),g(i)}return void 0===o&&(o=setTimeout(k,t)),c}return t=v(t)||0,f(a)&&(u=!!a.leading,s=(b="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}}).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(k,t),u?g(e):c}function y(e){var a=e-i;return void 0===i||a>=t||a<0||f&&e-l>=s}function k(){var e=d();if(y(e))return O(e);o=setTimeout(k,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=y(e);if(r=arguments,n=this,i=e,a){if(void 0===o)return j(i);if(f)return o=setTimeout(k,t),g(i)}return void 0===o&&(o=setTimeout(k,t)),c}return t=b(t)||0,v(a)&&(u=!!a.leading,s=(f="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}function v(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(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(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 v(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(144),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(16),n=a.n(r),s=a(17),c=a.n(s),o=a(2),i=a.n(o),l=a(18),u=a.n(l),p=a(19),m=a.n(p),d=a(7),f=a.n(d),v=a(20),b=a.n(v),h=a(0),g=a(1),j=a.n(g),y=a(21),k=a.n(y);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.__,_=(P.sprintf,wp.element),S=_.Fragment,w=_.Component,x=(_.render,_.PureComponent,wp.components),N=(x.Modal,x.Spinner,x.ButtonGroup),T=(x.Dropdown,x.Button),z=x.ExternalLink,M=(x.ToolbarGroup,x.MenuItem,x.Tooltip),C=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)(T,{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)(N,{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)(T,{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)(T,{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)(N,{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)(M,{text:n},Object(h.createElement)(T,{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)(S,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 Membership 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,"full Kadence Membership 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 Membership is required","kadence-starter-sites")," "),Object(h.createElement)(z,{className:"kst-upgrade button-hero button button-primary",href:"https://www.kadencewp.com/product/kadence-membership/"},E("Upgrade to Membership","kadence-starter-sites"))):Object(h.createElement)(S,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),F=a(5),I=Object(h.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(h.createElement)(F.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"})),D=Object(h.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(h.createElement)(F.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),L=Object(h.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(h.createElement)(F.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));function A(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 H(e){try{var t=JSON.parse(e);if(t&&"object"===b()(t))return t}catch(e){}return!1}var R=wp.i18n,q=R.__,B=(R.sprintf,wp.element),V=B.Fragment,W=B.Component,G=B.render,U=(B.PureComponent,wp.components),$=U.Modal,K=U.Spinner,J=(U.ButtonGroup,U.Dropdown),Y=U.Icon,X=U.Button,Q=U.ExternalLink,Z=(U.ToolbarGroup,U.ToggleControl),ee=U.MenuItem,te=U.Tooltip,ae=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"})),re=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"})))),ne=(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"})))),se=function(e){u()(a,e);var t=A(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.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,templatePlugins:""},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=new FormData;e.append("action","kadence_import_reload_template_data"),e.append("security",kadenceStarterParams.ajax_nonce),e.append("api_key",kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:""),e.append("api_email",kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:""),e.append("template_type",this.state.starterSettings.builderType);var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(e,a,r){if(e){var n=H(e);n?t.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):t.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),t.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}))}},{key:"loadTemplateData",value:function(){this.setState({errorTemplates:!1,isSaving:!0,activeTemplates:"loading"});var e=new FormData;e.append("action","kadence_import_get_template_data"),e.append("security",kadenceStarterParams.ajax_nonce),e.append("api_key",kadenceStarterParams.proData&&kadenceStarterParams.proData.ktp_api_key?kadenceStarterParams.proData.ktp_api_key:""),e.append("api_email",kadenceStarterParams.proData&&kadenceStarterParams.proData.activation_email?kadenceStarterParams.proData.activation_email:""),e.append("template_type",this.state.starterSettings.builderType);var t=this;jQuery.ajax({method:"POST",url:kadenceStarterParams.ajax_url,data:e,contentType:!1,processData:!1}).done((function(e,a,r){if(e){var n=H(e);n?t.setState({activeTemplates:n,errorTemplates:!1,isSaving:!1}):t.setState({activeTemplates:"error",errorTemplates:!0,isSaving:!1})}})).fail((function(e){console.log(e),t.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"===b()(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});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:"runRemovePast",value:function(e,t){this.setState({progress:"remove",isFetching:!0});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});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:"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&&"pluginSuccess"===a.status){t.setState({progress:"content"});var s=new FormData;s.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:"",response:"<p>"+a.message+"</p>"}):t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,progress:"",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:"",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){t.setState({progress:"customizer"}),(s=new FormData).append("action","kadence_import_customizer_data"),s.append("security",kadenceStarterParams.ajax_nonce),s.append("wp_customize","on"),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){t.setState({progress:"content"}),(s=new FormData).append("action","kadence_import_demo_data"),s.append("security",kadenceStarterParams.ajax_nonce),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.runAjax(s)}else if(void 0!==a.status&&"removeSuccess"===a.status){var s;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 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:"",response:"<p>"+a.message+"</p>"}):void 0===a.success||a.success?t.setState({finished:!0,hasContent:!0,hasPastContent:!0,isFetching:!1,colorPalette:"",fontPair:"",focusMode:!1,isImporting:!1,isSelected:!1,isPageSelected:!1,progress:"",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:"",response:'<div class="notice kadence_starter_templates_response notice-error"><p>'+q("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:"",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=q("Gutenberg","kadence-starter-templates"),s=ne;"elementor"===this.state.starterSettings.builderType&&(n=q("Elementor","kadence-starter-templates"),s=re),"custom"===this.state.starterSettings.builderType&&(n=kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:q("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}):ae);var c=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,q("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name),Object(h.createElement)("br",null)," ",q("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,q("Page Template Plugins","kadence-starter-templates"))),e.state.isLoadingPlugins&&Object(h.createElement)(K,null),!e.state.activePlugins&&!e.state.isLoadingPlugins&&Object(h.createElement)(V,null,e.loadPluginData(t.slug,e.state.starterSettings.builderType)),e.state.activePlugins&&Object(h.createElement)(V,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||(pluginsPremium=!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?q("Not Installed","kadence-starter-templates"):t)," ","active"!==t&&"thirdparty"===r?Object(h.createElement)("span",{class:"plugin-install-required"},q("Please install and activate this third-party premium plugin")):"")}))),e.state.templatePlugins&&"error"===e.state.templatePlugins&&Object(h.createElement)(V,null,Object(h.createElement)("p",{className:"desc-small install-third-party-notice"},q("*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?q("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"},q("Please install and activate this third-party premium Plugin")):"")):Object(h.createElement)("li",{className:"plugin-required"},e," - ",Object(h.createElement)("span",{class:"plugin-status"},q("Unknown","kadence-starter-templates")))}))))),Object(h.createElement)("p",{className:"desc-small note-about-colors"},q("*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)(Z,{label:q("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)($,{className:"ksp-confirm-modal",title:q("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"},q("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)(X,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!1})}},q("Cancel","kadence-starter-templates")),Object(h.createElement)(X,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckColor:!1,overrideColors:!0})}},q("Override Colors","kadence-starter-templates")))):null,e.state.overrideColors&&e.state.colorPalette&&Object(h.createElement)(V,null,Object(h.createElement)("h3",null,q("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)(Z,{label:q("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)($,{className:"ksp-confirm-modal",title:q("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"},q("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)(X,{className:"ksp-cancel-override",onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!1})}},q("Cancel","kadence-starter-templates")),Object(h.createElement)(X,{className:"ksp-do-override",isPrimary:!0,onClick:function(){e.setState({isOpenCheckFont:!1,overrideFonts:!0})}},q("Override Fonts","kadence-starter-templates")))):null,e.state.fontPair&&e.state.overrideFonts&&Object(h.createElement)(V,null,Object(h.createElement)("h3",{className:"kst-selected-font-pair-title"},q("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))}))),"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)(K,null),!kadenceStarterParams.isKadence&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,q("This Template Requires the Kadence Theme","kadence-starter-templates")),Object(h.createElement)(Q,{href:"https://kadence-theme.com/"},q("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(h.createElement)(V,null,a&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,q("Install Missing/Inactive Highlighted Premium Membership plugins to Import","kadence-starter-templates")),Object(h.createElement)(Q,{href:"https://www.kadencewp.com/my-account/"},q("Membership Account","kadence-starter-templates"))),!a&&Object(h.createElement)(X,{className:"kt-defaults-save",isPrimary:!0,disabled:e.state.isFetching,onClick:function(){e.runPluginInstallSingle(t.slug,e.state.selectedPage,e.state.starterSettings.builderType)}},q("Start Importing Page"))))))},o=function(){var t=e.state.activeTemplates[e.state.activeTemplate],a=!1,r=!1;return Object(h.createElement)(V,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,q("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name)))))),Object(h.createElement)($,{className:"kst-import-modal",title:q("Import Starter Template"),onRequestClose:function(){return!e.state.isFetching&&e.setState({activeTemplate:"",activePlugins:!1,colorPalette:"",focusMode:!1,isImporting:!1,progress:""})}},e.state.hasContent&&Object(h.createElement)("div",{className:"kadence_starter_templates_notice"},e.state.hasPastContent?Object(h.createElement)(V,null,kadenceStarterParams.notice_previous):Object(h.createElement)(V,null,kadenceStarterParams.notice)),Object(h.createElement)("h3",null,q("Starter Template Plugins","kadence-starter-templates")),e.state.isLoadingPlugins&&Object(h.createElement)(K,null),!e.state.activePlugins&&!e.state.isLoadingPlugins&&Object(h.createElement)(V,null,e.loadPluginData(t.slug,e.state.starterSettings.builderType)),e.state.activePlugins&&Object(h.createElement)(V,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?q("Not Installed","kadence-starter-templates"):t)," ","active"!==t&&"thirdparty"===n?Object(h.createElement)("span",{class:"plugin-install-required"},q("Please install and activate this third-party premium plugin")):"")}))),e.state.templatePlugins&&"error"===e.state.templatePlugins&&Object(h.createElement)(V,null,Object(h.createElement)("p",{className:"desc-small install-third-party-notice"},q("*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?q("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"},q("Please install and activate this third-party premium Plugin")):"")):Object(h.createElement)("li",{className:"plugin-required"},e," - ",Object(h.createElement)("span",{class:"plugin-status"},q("Unknown","kadence-starter-templates")))}))))),a&&Object(h.createElement)("p",{className:"desc-small install-third-party-notice"},q("*This starter template requires premium third-party plugins. Please install missing/inactive premium plugins to import.","kadence-starter-templates")),e.state.colorPalette&&Object(h.createElement)(V,null,Object(h.createElement)("h3",null,q("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)(V,null,Object(h.createElement)("h3",{className:"kst-selected-font-pair-title"},q("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))}))),e.state.hasPastContent&&Object(h.createElement)(V,null,Object(h.createElement)(Z,{label:q("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})}})),"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)(K,null),!kadenceStarterParams.isKadence&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,q("This Starter Template Requires the Kadence Theme","kadence-starter-templates")),Object(h.createElement)(Q,{href:"https://kadence-theme.com/"},q("Get Free Theme","kadence-starter-templates"))),kadenceStarterParams.isKadence&&Object(h.createElement)(V,null,a&&Object(h.createElement)(V,null,r&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,q("Install Missing/Inactive Highlighted Premium Membership plugins to Import","kadence-starter-templates")),Object(h.createElement)(Q,{href:"https://www.kadencewp.com/my-account/"},q("Membership Account","kadence-starter-templates"))),!r&&Object(h.createElement)(X,{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)}},q("Skip and Import with Partial Content"))),!a&&Object(h.createElement)(V,null,r&&Object(h.createElement)("div",{class:"kadence_starter_templates_response"},Object(h.createElement)("h2",null,q("Install Missing/Inactive Highlighted Premium Membership plugins to Import","kadence-starter-templates")),Object(h.createElement)(Q,{href:"https://www.kadencewp.com/my-account/"},q("Membership Account","kadence-starter-templates"))),!r&&Object(h.createElement)(X,{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)}},q("Start Importing"))))))},i=function(){var t=e.state.activeTemplates[e.state.activeTemplate];return Object(h.createElement)(V,null,Object(h.createElement)("div",{className:"kst-import-selection-options"},Object(h.createElement)("div",{className:"kst-import-grid-title"},Object(h.createElement)("h2",null,q("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)(X,{key:r,className:"kst-import-btn",isSmall:!0,onClick:function(){return e.selectedMode(r)}},Object(h.createElement)(k.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,q("View Details","kadence-starter-templates"))))))}))),Object(h.createElement)("div",{className:"kst-import-selection-bottom"},Object(h.createElement)(X,{className:"kt-import-fullsite",isPrimary:!0,onClick:function(){return e.selectedFullMode()}},q("Import Full Site","kadence-starter-templates")))))},l=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)(X,{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)(k.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)(V,null,Object(h.createElement)("span",{className:"kb-pro-template"},q("Membership","kadence-starter-sites"))))})))},u=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,q("Template:","kadence-starter-templates")," ",Object(h.createElement)("span",null,t.name),Object(h.createElement)("br",null)," ",q("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,q("Import complete!","kadence-starter-templates")),Object(h.createElement)("div",{class:"kadence_starter_templates_finished"},Object(h.createElement)("div",{dangerouslySetInnerHTML:{__html:e.state.response}}))))))},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&&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,q("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,q("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)(V,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)(te,{text:q("Back to Individual Pages Grid")},Object(h.createElement)(X,{className:"kt-import-back",icon:D,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)(te,{text:q("Back to Starter Templates Grid")},Object(h.createElement)(X,{className:"kt-import-back",icon:D,onClick:function(){return e.backToDash()}}))),this.state.finished&&Object(h.createElement)("div",{class:"kadence_theme_dash_back"},Object(h.createElement)(te,{text:q("Back to Starter Templates Grid")},Object(h.createElement)(X,{className:"kt-import-back",icon:D,onClick:function(){return e.backToDash()}}))),Object(h.createElement)("div",{class:"kadence_starter_builder_type"},this.state.starterSettings&&this.state.starterSettings.builderType&&Object(h.createElement)(J,{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)(X,{onClick:a,"aria-expanded":t,icon:s},n,Object(h.createElement)(Y,{className:"kst-chev",icon:L}))},renderContent:function(t){t.isOpen;var a=t.onToggle;return Object(h.createElement)("div",null,Object(h.createElement)(ee,{icon:ne,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()}},q("Gutenberg","kadence-starter-templates")),Object(h.createElement)(ee,{icon:re,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()}},q("Elementor","kadence-starter-templates")),kadenceStarterParams.ctemplates&&Object(h.createElement)(ee,{icon:kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):ae,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:q("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)(te,{text:q("Sync with Cloud")},Object(h.createElement)(X,{className:"kt-reload-templates",icon:I,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)(V,null,e.state.isSaving||!1===e.state.activeTemplates||e.state.errorTemplates?Object(h.createElement)("div",{className:"main-panel"},Object(h.createElement)("div",{className:"kst-overlay-saving"},!e.state.errorTemplates&&Object(h.createElement)(K,null),e.state.errorTemplates&&Object(h.createElement)(V,null,Object(h.createElement)("h2",{style:{textAlign:"center"}},q("Error, Unable to access template database, please try re-downloading","kadence-starter-templates")),Object(h.createElement)("div",{style:{textAlign:"center"}},Object(h.createElement)(X,{className:"kt-reload-templates",icon:I,onClick:function(){return e.reloadTemplateData()}},q(" Sync with Cloud","kadence-starter-templates")))),!1===e.state.activeTemplates&&Object(h.createElement)(V,null,e.loadTemplateData()))):Object(h.createElement)("div",{className:"main-panel"},e.state.focusMode&&Object(h.createElement)(V,null,e.state.isImporting&&Object(h.createElement)(V,null,e.state.isPageSelected?Object(h.createElement)(c,null):Object(h.createElement)(o,null)),!e.state.isImporting&&e.state.isSelected&&Object(h.createElement)(C,{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)(i,null)),!e.state.focusMode&&!e.state.finished&&Object(h.createElement)(l,null),e.state.finished&&Object(h.createElement)(V,null,e.state.isPageSelected?Object(h.createElement)(u,null):Object(h.createElement)(p,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"},q("Choose a Builder","kadence-starter-templates")),Object(h.createElement)("div",{className:"kst-choose-builder-inner"},kadenceStarterParams.ctemplates&&Object(h.createElement)(X,{icon:kadenceStarterParams.custom_icon?Object(h.createElement)("img",{className:"custom-image-icon-src",src:kadenceStarterParams.custom_icon}):ae,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","custom")}},kadenceStarterParams.custom_name?kadenceStarterParams.custom_name:q("Pro Designs","kadence-starter-templates")),Object(h.createElement)(X,{icon:ne,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","blocks")}},q("Gutenberg","kadence-starter-templates")),Object(h.createElement)(X,{icon:re,className:"kt-import-select-type",onClick:function(){e.saveConfig("builderType","elementor")}},q("Elementor","kadence-starter-templates"))),e.state.isSaving&&Object(h.createElement)("div",{className:"kst-overlay-saving"},Object(h.createElement)(K,null))))}),null)))}}]),a}(W);wp.domReady((function(){G(Object(h.createElement)(se,null),document.querySelector(".kadence_starter_dashboard_main"))}))}]);
|
class-kadence-starter-templates.php
CHANGED
@@ -159,6 +159,7 @@ class Starter_Templates {
|
|
159 |
add_action( 'wp_ajax_kadence_after_import_data', array( $this, 'after_all_import_data_ajax_callback' ) );
|
160 |
add_action( 'wp_ajax_kadence_import_single_data', array( $this, 'import_demo_single_data_ajax_callback' ) );
|
161 |
add_action( 'wp_ajax_kadence_remove_past_import_data', array( $this, 'remove_past_data_ajax_callback' ) );
|
|
|
162 |
}
|
163 |
add_action( 'init', array( $this, 'setup_plugin_with_filter_data' ) );
|
164 |
// Text Domain.
|
@@ -185,7 +186,7 @@ class Starter_Templates {
|
|
185 |
define( 'KADENCE_STARTER_TEMPLATES_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
|
186 |
}
|
187 |
if ( ! defined( 'KADENCE_STARTER_TEMPLATES_VERSION' ) ) {
|
188 |
-
define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.2.
|
189 |
}
|
190 |
}
|
191 |
|
@@ -907,6 +908,188 @@ class Starter_Templates {
|
|
907 |
)
|
908 |
);
|
909 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
910 |
/**
|
911 |
* AJAX callback to install a plugin.
|
912 |
*/
|
@@ -990,6 +1173,13 @@ class Starter_Templates {
|
|
990 |
'path' => 'recipe-card-blocks-by-wpzoom/wpzoom-recipe-card.php',
|
991 |
'src' => 'repo',
|
992 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
993 |
'learndash' => array(
|
994 |
'title' => 'LearnDash',
|
995 |
'base' => 'sfwd-lms',
|
@@ -997,6 +1187,13 @@ class Starter_Templates {
|
|
997 |
'path' => 'sfwd-lms/sfwd_lms.php',
|
998 |
'src' => 'thirdparty',
|
999 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1000 |
'lifterlms' => array(
|
1001 |
'title' => 'LifterLMS',
|
1002 |
'base' => 'lifterlms',
|
@@ -1013,16 +1210,56 @@ class Starter_Templates {
|
|
1013 |
),
|
1014 |
);
|
1015 |
foreach( $info['plugins'] as $plugin ) {
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1019 |
update_option( 'woocommerce_db_version', '4.0' );
|
1020 |
}
|
1021 |
-
if ( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1022 |
$api = plugins_api(
|
1023 |
'plugin_information',
|
1024 |
array(
|
1025 |
-
'slug' => $
|
1026 |
'fields' => array(
|
1027 |
'short_description' => false,
|
1028 |
'sections' => false,
|
@@ -1047,7 +1284,7 @@ class Starter_Templates {
|
|
1047 |
|
1048 |
$installed = $upgrader->install( $api->download_link );
|
1049 |
if ( $installed ) {
|
1050 |
-
$activate = activate_plugin( $
|
1051 |
if ( is_wp_error( $activate ) ) {
|
1052 |
$install = false;
|
1053 |
}
|
@@ -1058,12 +1295,12 @@ class Starter_Templates {
|
|
1058 |
$install = false;
|
1059 |
}
|
1060 |
} elseif ( 'installed' === $state ) {
|
1061 |
-
$activate = activate_plugin( $
|
1062 |
if ( is_wp_error( $activate ) ) {
|
1063 |
$install = false;
|
1064 |
}
|
1065 |
}
|
1066 |
-
if (
|
1067 |
$enabled = json_decode( get_option( 'kadence_pro_theme_config' ), true );
|
1068 |
$enabled['elements'] = true;
|
1069 |
$enabled['header_addons'] = true;
|
@@ -1951,6 +2188,7 @@ class Starter_Templates {
|
|
1951 |
// Importer options array.
|
1952 |
$importer_options = apply_filters( 'kadence-starter-templates/importer_options', array(
|
1953 |
'fetch_attachments' => true,
|
|
|
1954 |
) );
|
1955 |
|
1956 |
// Logger options for the logger used in the importer.
|
159 |
add_action( 'wp_ajax_kadence_after_import_data', array( $this, 'after_all_import_data_ajax_callback' ) );
|
160 |
add_action( 'wp_ajax_kadence_import_single_data', array( $this, 'import_demo_single_data_ajax_callback' ) );
|
161 |
add_action( 'wp_ajax_kadence_remove_past_import_data', array( $this, 'remove_past_data_ajax_callback' ) );
|
162 |
+
add_action( 'wp_ajax_kadence_check_plugin_data', array( $this, 'check_plugin_data_ajax_callback' ) );
|
163 |
}
|
164 |
add_action( 'init', array( $this, 'setup_plugin_with_filter_data' ) );
|
165 |
// Text Domain.
|
186 |
define( 'KADENCE_STARTER_TEMPLATES_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
|
187 |
}
|
188 |
if ( ! defined( 'KADENCE_STARTER_TEMPLATES_VERSION' ) ) {
|
189 |
+
define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.2.1' );
|
190 |
}
|
191 |
}
|
192 |
|
908 |
)
|
909 |
);
|
910 |
}
|
911 |
+
/**
|
912 |
+
* AJAX callback to install a plugin.
|
913 |
+
*/
|
914 |
+
public function check_plugin_data_ajax_callback() {
|
915 |
+
Helpers::verify_ajax_call();
|
916 |
+
if ( ! isset( $_POST['selected'] ) || ! isset( $_POST['builder'] ) ) {
|
917 |
+
wp_send_json_error( 'Missing Parameters' );
|
918 |
+
}
|
919 |
+
$selected_index = empty( $_POST['selected'] ) ? '' : sanitize_text_field( $_POST['selected'] );
|
920 |
+
$selected_builder = empty( $_POST['builder'] ) ? '' : sanitize_text_field( $_POST['builder'] );
|
921 |
+
if ( empty( $selected_index ) || empty( $selected_builder ) ) {
|
922 |
+
wp_send_json_error( 'Missing Parameters' );
|
923 |
+
}
|
924 |
+
if ( empty( $this->import_files ) || ( is_array( $this->import_files ) && ! isset( $this->import_files[ $selected_index ] ) ) ) {
|
925 |
+
$template_database = Template_Database_Importer::get_instance();
|
926 |
+
$this->import_files = $template_database->get_importer_files( $selected_index, $selected_builder );
|
927 |
+
}
|
928 |
+
if ( ! isset( $this->import_files[ $selected_index ] ) ) {
|
929 |
+
wp_send_json_error( 'Missing Template' );
|
930 |
+
}
|
931 |
+
$info = $this->import_files[ $selected_index ];
|
932 |
+
|
933 |
+
if ( isset( $info['plugins'] ) && ! empty( $info['plugins'] ) ) {
|
934 |
+
|
935 |
+
if ( ! function_exists( 'plugins_api' ) ) {
|
936 |
+
require_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
|
937 |
+
}
|
938 |
+
$importer_plugins = array (
|
939 |
+
'woocommerce' => array(
|
940 |
+
'title' => 'Woocommerce',
|
941 |
+
'base' => 'woocommerce',
|
942 |
+
'slug' => 'woocommerce',
|
943 |
+
'path' => 'woocommerce/woocommerce.php',
|
944 |
+
'src' => 'repo',
|
945 |
+
),
|
946 |
+
'elementor' => array(
|
947 |
+
'title' => 'Elementor',
|
948 |
+
'base' => 'elementor',
|
949 |
+
'slug' => 'elementor',
|
950 |
+
'path' => 'elementor/elementor.php',
|
951 |
+
'src' => 'repo',
|
952 |
+
),
|
953 |
+
'kadence-blocks' => array(
|
954 |
+
'title' => 'Kadence Blocks',
|
955 |
+
'base' => 'kadence-blocks',
|
956 |
+
'slug' => 'kadence-blocks',
|
957 |
+
'path' => 'kadence-blocks/kadence-blocks.php',
|
958 |
+
'src' => 'repo',
|
959 |
+
),
|
960 |
+
'kadence-blocks-pro' => array(
|
961 |
+
'title' => 'Kadence Block Pro',
|
962 |
+
'base' => 'kadence-blocks-pro',
|
963 |
+
'slug' => 'kadence-blocks-pro',
|
964 |
+
'path' => 'kadence-blocks-pro/kadence-blocks-pro.php',
|
965 |
+
'src' => 'bundle',
|
966 |
+
),
|
967 |
+
'kadence-pro' => array(
|
968 |
+
'title' => 'Kadence Pro',
|
969 |
+
'base' => 'kadence-pro',
|
970 |
+
'slug' => 'kadence-pro',
|
971 |
+
'path' => 'kadence-pro/kadence-pro.php',
|
972 |
+
'src' => 'bundle',
|
973 |
+
),
|
974 |
+
'fluentform' => array(
|
975 |
+
'title' => 'Fluent Forms',
|
976 |
+
'src' => 'repo',
|
977 |
+
'base' => 'fluentform',
|
978 |
+
'slug' => 'fluentform',
|
979 |
+
'path' => 'fluentform/fluentform.php',
|
980 |
+
),
|
981 |
+
'wpzoom-recipe-card' => array(
|
982 |
+
'title' => 'Recipe Card Blocks by WPZOOM',
|
983 |
+
'base' => 'recipe-card-blocks-by-wpzoom',
|
984 |
+
'slug' => 'wpzoom-recipe-card',
|
985 |
+
'path' => 'recipe-card-blocks-by-wpzoom/wpzoom-recipe-card.php',
|
986 |
+
'src' => 'repo',
|
987 |
+
),
|
988 |
+
'recipe-card-blocks-by-wpzoom' => array(
|
989 |
+
'title' => 'Recipe Card Blocks by WPZOOM',
|
990 |
+
'base' => 'recipe-card-blocks-by-wpzoom',
|
991 |
+
'slug' => 'wpzoom-recipe-card',
|
992 |
+
'path' => 'recipe-card-blocks-by-wpzoom/wpzoom-recipe-card.php',
|
993 |
+
'src' => 'repo',
|
994 |
+
),
|
995 |
+
'learndash' => array(
|
996 |
+
'title' => 'LearnDash',
|
997 |
+
'base' => 'sfwd-lms',
|
998 |
+
'slug' => 'sfwd_lms',
|
999 |
+
'path' => 'sfwd-lms/sfwd_lms.php',
|
1000 |
+
'src' => 'thirdparty',
|
1001 |
+
),
|
1002 |
+
'sfwd-lms' => array(
|
1003 |
+
'title' => 'LearnDash',
|
1004 |
+
'base' => 'sfwd-lms',
|
1005 |
+
'slug' => 'sfwd_lms',
|
1006 |
+
'path' => 'sfwd-lms/sfwd_lms.php',
|
1007 |
+
'src' => 'thirdparty',
|
1008 |
+
),
|
1009 |
+
'lifterlms' => array(
|
1010 |
+
'title' => 'LifterLMS',
|
1011 |
+
'base' => 'lifterlms',
|
1012 |
+
'slug' => 'lifterlms',
|
1013 |
+
'path' => 'lifterlms/lifterlms.php',
|
1014 |
+
'src' => 'repo',
|
1015 |
+
),
|
1016 |
+
'tutor' => array(
|
1017 |
+
'title' => 'Tutor LMS',
|
1018 |
+
'base' => 'tutor',
|
1019 |
+
'slug' => 'tutor',
|
1020 |
+
'path' => 'tutor/tutor.php',
|
1021 |
+
'src' => 'repo',
|
1022 |
+
),
|
1023 |
+
);
|
1024 |
+
$plugin_information = array();
|
1025 |
+
foreach( $info['plugins'] as $plugin ) {
|
1026 |
+
$path = false;
|
1027 |
+
if ( strpos( $plugin, '/' ) !== false ) {
|
1028 |
+
$path = $plugin;
|
1029 |
+
$arr = explode( '/', $plugin, 2 );
|
1030 |
+
$base = $arr[0];
|
1031 |
+
if ( isset( $importer_plugins[ $base ] ) && isset( $importer_plugins[ $base ]['src'] ) ) {
|
1032 |
+
$src = $importer_plugins[ $base ]['src'];
|
1033 |
+
} else {
|
1034 |
+
$src = 'unknown';
|
1035 |
+
}
|
1036 |
+
if ( isset( $importer_plugins[ $base ] ) && isset( $importer_plugins[ $base ]['title'] ) ) {
|
1037 |
+
$title = $importer_plugins[ $base ]['title'];
|
1038 |
+
} else {
|
1039 |
+
$title = $base;
|
1040 |
+
}
|
1041 |
+
} elseif ( isset( $importer_plugins[ $plugin ] ) ) {
|
1042 |
+
$path = $importer_plugins[ $plugin ]['path'];
|
1043 |
+
$base = $importer_plugins[ $plugin ]['base'];
|
1044 |
+
$src = $importer_plugins[ $plugin ]['src'];
|
1045 |
+
$title = $importer_plugins[ $plugin ]['title'];
|
1046 |
+
}
|
1047 |
+
if ( $path ) {
|
1048 |
+
$state = Plugin_Check::active_check( $path );
|
1049 |
+
if ( 'unknown' === $src ) {
|
1050 |
+
$check_api = plugins_api(
|
1051 |
+
'plugin_information',
|
1052 |
+
array(
|
1053 |
+
'slug' => $base,
|
1054 |
+
'fields' => array(
|
1055 |
+
'short_description' => false,
|
1056 |
+
'sections' => false,
|
1057 |
+
'requires' => false,
|
1058 |
+
'rating' => false,
|
1059 |
+
'ratings' => false,
|
1060 |
+
'downloaded' => false,
|
1061 |
+
'last_updated' => false,
|
1062 |
+
'added' => false,
|
1063 |
+
'tags' => false,
|
1064 |
+
'compatibility' => false,
|
1065 |
+
'homepage' => false,
|
1066 |
+
'donate_link' => false,
|
1067 |
+
),
|
1068 |
+
)
|
1069 |
+
);
|
1070 |
+
if ( ! is_wp_error( $check_api ) ) {
|
1071 |
+
$title = $check_api->name;
|
1072 |
+
$src = 'repo';
|
1073 |
+
}
|
1074 |
+
}
|
1075 |
+
$plugin_information[ $plugin ] = array(
|
1076 |
+
'state' => $state,
|
1077 |
+
'src' => $src,
|
1078 |
+
'title' => $title,
|
1079 |
+
);
|
1080 |
+
} else {
|
1081 |
+
$plugin_information[ $plugin ] = array(
|
1082 |
+
'state' => 'unknown',
|
1083 |
+
'src' => 'unknown',
|
1084 |
+
'title' => $plugin,
|
1085 |
+
);
|
1086 |
+
}
|
1087 |
+
}
|
1088 |
+
wp_send_json( $plugin_information );
|
1089 |
+
} else {
|
1090 |
+
wp_send_json_error( 'Missing Plugins' );
|
1091 |
+
}
|
1092 |
+
}
|
1093 |
/**
|
1094 |
* AJAX callback to install a plugin.
|
1095 |
*/
|
1173 |
'path' => 'recipe-card-blocks-by-wpzoom/wpzoom-recipe-card.php',
|
1174 |
'src' => 'repo',
|
1175 |
),
|
1176 |
+
'recipe-card-blocks-by-wpzoom' => array(
|
1177 |
+
'title' => 'Recipe Card Blocks by WPZOOM',
|
1178 |
+
'base' => 'recipe-card-blocks-by-wpzoom',
|
1179 |
+
'slug' => 'wpzoom-recipe-card',
|
1180 |
+
'path' => 'recipe-card-blocks-by-wpzoom/wpzoom-recipe-card.php',
|
1181 |
+
'src' => 'repo',
|
1182 |
+
),
|
1183 |
'learndash' => array(
|
1184 |
'title' => 'LearnDash',
|
1185 |
'base' => 'sfwd-lms',
|
1187 |
'path' => 'sfwd-lms/sfwd_lms.php',
|
1188 |
'src' => 'thirdparty',
|
1189 |
),
|
1190 |
+
'sfwd-lms' => array(
|
1191 |
+
'title' => 'LearnDash',
|
1192 |
+
'base' => 'sfwd-lms',
|
1193 |
+
'slug' => 'sfwd_lms',
|
1194 |
+
'path' => 'sfwd-lms/sfwd_lms.php',
|
1195 |
+
'src' => 'thirdparty',
|
1196 |
+
),
|
1197 |
'lifterlms' => array(
|
1198 |
'title' => 'LifterLMS',
|
1199 |
'base' => 'lifterlms',
|
1210 |
),
|
1211 |
);
|
1212 |
foreach( $info['plugins'] as $plugin ) {
|
1213 |
+
$path = false;
|
1214 |
+
if ( strpos( $plugin, '/' ) !== false ) {
|
1215 |
+
$path = $plugin;
|
1216 |
+
$arr = explode( '/', $plugin, 2 );
|
1217 |
+
$base = $arr[0];
|
1218 |
+
if ( isset( $importer_plugins[ $base ] ) && isset( $importer_plugins[ $base ]['src'] ) ) {
|
1219 |
+
$src = $importer_plugins[ $base ]['src'];
|
1220 |
+
} else {
|
1221 |
+
$src = 'unknown';
|
1222 |
+
}
|
1223 |
+
} elseif ( isset( $importer_plugins[ $plugin ] ) ) {
|
1224 |
+
$path = $importer_plugins[ $plugin ]['path'];
|
1225 |
+
$base = $importer_plugins[ $plugin ]['base'];
|
1226 |
+
$src = $importer_plugins[ $plugin ]['src'];
|
1227 |
+
}
|
1228 |
+
if ( $path ) {
|
1229 |
+
$state = Plugin_Check::active_check( $path );
|
1230 |
+
if ( 'woocommerce' === $base && empty( get_option( 'woocommerce_db_version' ) ) ) {
|
1231 |
update_option( 'woocommerce_db_version', '4.0' );
|
1232 |
}
|
1233 |
+
if ( 'unknown' === $src ) {
|
1234 |
+
$check_api = plugins_api(
|
1235 |
+
'plugin_information',
|
1236 |
+
array(
|
1237 |
+
'slug' => $base,
|
1238 |
+
'fields' => array(
|
1239 |
+
'short_description' => false,
|
1240 |
+
'sections' => false,
|
1241 |
+
'requires' => false,
|
1242 |
+
'rating' => false,
|
1243 |
+
'ratings' => false,
|
1244 |
+
'downloaded' => false,
|
1245 |
+
'last_updated' => false,
|
1246 |
+
'added' => false,
|
1247 |
+
'tags' => false,
|
1248 |
+
'compatibility' => false,
|
1249 |
+
'homepage' => false,
|
1250 |
+
'donate_link' => false,
|
1251 |
+
),
|
1252 |
+
)
|
1253 |
+
);
|
1254 |
+
if ( ! is_wp_error( $api ) ) {
|
1255 |
+
$src = 'repo';
|
1256 |
+
}
|
1257 |
+
}
|
1258 |
+
if ( 'notactive' === $state && 'repo' === $src ) {
|
1259 |
$api = plugins_api(
|
1260 |
'plugin_information',
|
1261 |
array(
|
1262 |
+
'slug' => $base,
|
1263 |
'fields' => array(
|
1264 |
'short_description' => false,
|
1265 |
'sections' => false,
|
1284 |
|
1285 |
$installed = $upgrader->install( $api->download_link );
|
1286 |
if ( $installed ) {
|
1287 |
+
$activate = activate_plugin( $path, '', false, true );
|
1288 |
if ( is_wp_error( $activate ) ) {
|
1289 |
$install = false;
|
1290 |
}
|
1295 |
$install = false;
|
1296 |
}
|
1297 |
} elseif ( 'installed' === $state ) {
|
1298 |
+
$activate = activate_plugin( $path, '', false, true );
|
1299 |
if ( is_wp_error( $activate ) ) {
|
1300 |
$install = false;
|
1301 |
}
|
1302 |
}
|
1303 |
+
if ( 'kadence-pro' === $base ) {
|
1304 |
$enabled = json_decode( get_option( 'kadence_pro_theme_config' ), true );
|
1305 |
$enabled['elements'] = true;
|
1306 |
$enabled['header_addons'] = true;
|
2188 |
// Importer options array.
|
2189 |
$importer_options = apply_filters( 'kadence-starter-templates/importer_options', array(
|
2190 |
'fetch_attachments' => true,
|
2191 |
+
'aggressive_url_search' => true,
|
2192 |
) );
|
2193 |
|
2194 |
// Logger options for the logger used in the importer.
|
inc/class-import-export-option.php
CHANGED
@@ -13,6 +13,7 @@ namespace Kadence_Starter_Templates;
|
|
13 |
|
14 |
use WP_Customize_Control;
|
15 |
use WP_Filesystem;
|
|
|
16 |
use function add_action;
|
17 |
use function add_filter;
|
18 |
use function wp_enqueue_style;
|
13 |
|
14 |
use WP_Customize_Control;
|
15 |
use WP_Filesystem;
|
16 |
+
use stdClass;
|
17 |
use function add_action;
|
18 |
use function add_filter;
|
19 |
use function wp_enqueue_style;
|
inc/react/src/index.js
CHANGED
@@ -145,6 +145,7 @@ class KadenceImporter extends Component {
|
|
145 |
this.runPluginInstall = this.runPluginInstall.bind( this );
|
146 |
this.loadTemplateData = this.loadTemplateData.bind( this );
|
147 |
this.reloadTemplateData = this.reloadTemplateData.bind( this );
|
|
|
148 |
this.focusMode = this.focusMode.bind( this );
|
149 |
this.fullFocusMode = this.fullFocusMode.bind( this );
|
150 |
this.jumpToImport = this.jumpToImport.bind( this );
|
@@ -184,6 +185,9 @@ class KadenceImporter extends Component {
|
|
184 |
hasContent: ( kadenceStarterParams.has_content ? kadenceStarterParams.has_content : false ),
|
185 |
hasPastContent: ( kadenceStarterParams.has_previous ? kadenceStarterParams.has_previous : false ),
|
186 |
isSaving: false,
|
|
|
|
|
|
|
187 |
};
|
188 |
}
|
189 |
saveConfig( setting, settingValue ) {
|
@@ -204,13 +208,13 @@ class KadenceImporter extends Component {
|
|
204 |
return string.charAt( 0 ).toUpperCase() + string.slice( 1 );
|
205 |
}
|
206 |
focusMode( template_id ) {
|
207 |
-
this.setState( { activeTemplate: template_id, focusMode: true, isSelected: false } )
|
208 |
}
|
209 |
fullFocusMode( template_id ) {
|
210 |
-
this.setState( { activeTemplate: template_id, focusMode: true, isSelected: true } )
|
211 |
}
|
212 |
jumpToImport( template_id ) {
|
213 |
-
this.setState( { isImporting: true, activeTemplate: template_id, focusMode: true, isSelected: true, fontPair: '', colorPalette: '' } )
|
214 |
}
|
215 |
selectedFullMode() {
|
216 |
this.setState( { isSelected: true } );
|
@@ -219,7 +223,7 @@ class KadenceImporter extends Component {
|
|
219 |
this.setState( { selectedPage: page_id, isPageSelected: true, isImporting: true } );
|
220 |
}
|
221 |
backToDash() {
|
222 |
-
this.setState( { isFetching: false, activeTemplate: '', overrideColors:false, overrideFonts:false, colorPalette: '', fontPair: '', focusMode: false, finished: false, isImporting: false, isSelected:false, isPageSelected:false, progress: '', selectedPage: 'home' } );
|
223 |
}
|
224 |
reloadTemplateData() {
|
225 |
this.setState( { errorTemplates: false, isSaving: true, activeTemplates: 'loading' } );
|
@@ -283,6 +287,40 @@ class KadenceImporter extends Component {
|
|
283 |
control.setState( { activeTemplates: 'error', errorTemplates: true, isSaving: false } );
|
284 |
});
|
285 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
runPluginInstallSingle( selected, page_id, builder ) {
|
287 |
this.setState( { progress: 'plugins', isFetching: true } );
|
288 |
var data = new FormData();
|
@@ -454,167 +492,205 @@ class KadenceImporter extends Component {
|
|
454 |
<div className="kst-import-grid-title">
|
455 |
<h2>{ __( 'Page Template Plugins', 'kadence-starter-templates' ) }</h2>
|
456 |
</div>
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
469 |
} ) }
|
470 |
-
</
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
|
|
|
|
|
|
|
|
|
|
483 |
} }>
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
} }>
|
489 |
-
{ __( 'Cancel', 'kadence-starter-templates' ) }
|
490 |
-
</Button>
|
491 |
-
<Button className="ksp-do-override" isPrimary onClick={ () => {
|
492 |
-
this.setState( { isOpenCheckColor: false, overrideColors: true } );
|
493 |
-
} }>
|
494 |
-
{ __( 'Override Colors', 'kadence-starter-templates' ) }
|
495 |
-
</Button>
|
496 |
-
</div>
|
497 |
-
</Modal>
|
498 |
-
: null }
|
499 |
-
{ this.state.overrideColors && this.state.colorPalette && (
|
500 |
-
<Fragment>
|
501 |
-
<h3>{ __( 'Selected Color Palette', 'kadence-starter-templates' ) }</h3>
|
502 |
-
{ map( this.state.palettes, ( { palette, colors } ) => {
|
503 |
-
if ( palette !== this.state.colorPalette ) {
|
504 |
-
return;
|
505 |
-
}
|
506 |
-
return (
|
507 |
-
<div className="kst-palette-btn kst-selected-color-palette">
|
508 |
-
{ map( colors, ( color, index ) => {
|
509 |
-
return (
|
510 |
-
<div key={ index } style={ {
|
511 |
-
width: 22,
|
512 |
-
height: 22,
|
513 |
-
marginBottom: 0,
|
514 |
-
marginRight:'3px',
|
515 |
-
transform: 'scale(1)',
|
516 |
-
transition: '100ms transform ease',
|
517 |
-
} } className="kadence-swatche-item-wrap">
|
518 |
-
<span
|
519 |
-
className={ 'kadence-swatch-item' }
|
520 |
-
style={ {
|
521 |
-
height: '100%',
|
522 |
-
display: 'block',
|
523 |
-
width: '100%',
|
524 |
-
border: '1px solid rgb(218, 218, 218)',
|
525 |
-
borderRadius: '50%',
|
526 |
-
color: `${ color }`,
|
527 |
-
boxShadow: `inset 0 0 0 ${ 30 / 2 }px`,
|
528 |
-
transition: '100ms box-shadow ease',
|
529 |
-
} }
|
530 |
-
>
|
531 |
-
</span>
|
532 |
-
</div>
|
533 |
-
)
|
534 |
-
} ) }
|
535 |
-
</div>
|
536 |
-
)
|
537 |
-
} ) }
|
538 |
-
</Fragment>
|
539 |
-
) }
|
540 |
-
<ToggleControl
|
541 |
-
label={ __( 'Override Your Sites Fonts?', 'kadence-starter-templates' ) }
|
542 |
-
checked={ ( undefined !== this.state.overrideFonts ? this.state.overrideFonts : false ) }
|
543 |
-
onChange={ value => ( this.state.overrideFonts ? this.setState( { overrideFonts: false } ) : this.setState( { isOpenCheckFont: true } ) ) }
|
544 |
-
/>
|
545 |
-
{ this.state.isOpenCheckFont ?
|
546 |
-
<Modal
|
547 |
-
className="ksp-confirm-modal"
|
548 |
-
title={ __( 'Override Your Sites Fonts on Import?', 'kadence-starter-templates' ) }
|
549 |
-
onRequestClose={ () => {
|
550 |
-
this.setState( { isOpenCheckFont: false } )
|
551 |
} }>
|
552 |
-
|
553 |
-
|
554 |
-
<Button className="ksp-cancel-override" onClick={ () => {
|
555 |
-
this.setState( { isOpenCheckFont: false, overrideFonts: false } );
|
556 |
-
} }>
|
557 |
-
{ __( 'Cancel', 'kadence-starter-templates' ) }
|
558 |
-
</Button>
|
559 |
-
<Button className="ksp-do-override" isPrimary onClick={ () => {
|
560 |
-
this.setState( { isOpenCheckFont: false, overrideFonts: true } );
|
561 |
-
} }>
|
562 |
-
{ __( 'Override Fonts', 'kadence-starter-templates' ) }
|
563 |
-
</Button>
|
564 |
-
</div>
|
565 |
-
</Modal>
|
566 |
-
: null }
|
567 |
-
{ this.state.fontPair && this.state.overrideFonts && (
|
568 |
-
<Fragment>
|
569 |
-
<h3 className="kst-selected-font-pair-title">{ __( 'Selected Font Pair', 'kadence-starter-templates' ) }</h3>
|
570 |
-
{ map( this.state.fonts, ( { font, img, name } ) => {
|
571 |
-
if ( font !== this.state.fontPair ) {
|
572 |
-
return;
|
573 |
-
}
|
574 |
-
return (
|
575 |
-
<div className="kst-selected-font-pair">
|
576 |
-
<img src={ img } className="font-pairing" />
|
577 |
-
<h4>{ name }</h4>
|
578 |
-
</div>
|
579 |
-
)
|
580 |
-
} ) }
|
581 |
-
</Fragment>
|
582 |
-
) }
|
583 |
-
{ this.state.progress === 'plugins' && (
|
584 |
-
<div class="kadence_starter_templates_response">{ kadenceStarterParams.plugin_progress }</div>
|
585 |
-
) }
|
586 |
-
{ this.state.progress === 'content' && (
|
587 |
-
<div class="kadence_starter_templates_response">{ kadenceStarterParams.content_progress }</div>
|
588 |
-
) }
|
589 |
-
{ this.state.progress === 'contentNew' && (
|
590 |
-
<div class="kadence_starter_templates_response">{ kadenceStarterParams.content_new_progress }</div>
|
591 |
-
) }
|
592 |
-
{ this.state.isFetching && (
|
593 |
-
<Spinner />
|
594 |
-
) }
|
595 |
-
{ ! kadenceStarterParams.isKadence && (
|
596 |
-
<div class="kadence_starter_templates_response">
|
597 |
-
<h2>{ __( 'This Template Requires the Kadence Theme', 'kadence-starter-templates' ) }</h2>
|
598 |
-
<ExternalLink href={ 'https://kadence-theme.com/' }>{ __( 'Get Free Theme', 'kadence-starter-templates' ) }</ExternalLink>
|
599 |
</div>
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
607 |
</div>
|
608 |
-
)
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
618 |
</div>
|
619 |
</div>
|
620 |
</div>
|
@@ -643,7 +719,7 @@ class KadenceImporter extends Component {
|
|
643 |
<Modal
|
644 |
className="kst-import-modal"
|
645 |
title={ __( 'Import Starter Template' ) }
|
646 |
-
onRequestClose={ () => this.state.isFetching ? false : this.setState( { activeTemplate: '', colorPalette: '', focusMode: false, isImporting: false, progress: '' } ) }>
|
647 |
{ this.state.hasContent && (
|
648 |
<div className="kadence_starter_templates_notice">
|
649 |
{ this.state.hasPastContent ? (
|
@@ -654,7 +730,7 @@ class KadenceImporter extends Component {
|
|
654 |
</div>
|
655 |
) }
|
656 |
<h3>{ __( 'Starter Template Plugins', 'kadence-starter-templates' ) }</h3>
|
657 |
-
{ map( item.plugins, ( slug ) => {
|
658 |
if ( kadenceStarterParams.plugins[ slug ] ) {
|
659 |
if ( 'active' !== kadenceStarterParams.plugins[ slug ].state ) {
|
660 |
if ( 'thirdparty' === kadenceStarterParams.plugins[ slug ].src ) {
|
@@ -662,11 +738,63 @@ class KadenceImporter extends Component {
|
|
662 |
}
|
663 |
}
|
664 |
}
|
665 |
-
} ) }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
666 |
{ pluginsPremium && (
|
667 |
<p className="desc-small install-third-party-notice">{ __( '*This starter template requires premium third-party plugins. Please install missing/inactive premium plugins to import.', 'kadence-starter-templates' ) }</p>
|
668 |
) }
|
669 |
-
<ul className="kadence-required-wrap">
|
670 |
{ map( item.plugins, ( slug ) => {
|
671 |
if ( kadenceStarterParams.plugins[ slug ] ) {
|
672 |
if ( 'active' !== kadenceStarterParams.plugins[ slug ].state && 'bundle' === kadenceStarterParams.plugins[ slug ].src ) {
|
@@ -679,7 +807,7 @@ class KadenceImporter extends Component {
|
|
679 |
);
|
680 |
}
|
681 |
} ) }
|
682 |
-
</ul>
|
683 |
{ this.state.colorPalette && (
|
684 |
<Fragment>
|
685 |
<h3>{ __( 'Selected Color Palette', 'kadence-starter-templates' ) }</h3>
|
@@ -1174,7 +1302,7 @@ class KadenceImporter extends Component {
|
|
1174 |
isSelected={ ( 'blocks' === this.state.starterSettings['builderType'] ? true : false ) }
|
1175 |
onClick={ () => {
|
1176 |
this.saveConfig( 'builderType', 'blocks' );
|
1177 |
-
this.setState( { activeTemplate: '', colorPalette: '', finished:false, selectedPage: 'home', focusMode: false, isSelected: false, isPageSelected:false, isImporting: false, progress: '', activeTemplates: false } );
|
1178 |
onToggle();
|
1179 |
} }
|
1180 |
>
|
@@ -1186,7 +1314,7 @@ class KadenceImporter extends Component {
|
|
1186 |
isSelected={ ( 'elementor' === this.state.starterSettings['builderType'] ? true : false ) }
|
1187 |
onClick={ () => {
|
1188 |
this.saveConfig( 'builderType', 'elementor' );
|
1189 |
-
this.setState( { activeTemplate: '', colorPalette: '', finished:false, selectedPage: 'home', focusMode: false, isSelected: false, isPageSelected:false, isImporting: false, progress: '', activeTemplates: false } );
|
1190 |
onToggle();
|
1191 |
} }
|
1192 |
>
|
@@ -1199,7 +1327,7 @@ class KadenceImporter extends Component {
|
|
1199 |
isSelected={ ( 'custom' === this.state.starterSettings['builderType'] ? true : false ) }
|
1200 |
onClick={ () => {
|
1201 |
this.saveConfig( 'builderType', 'custom' );
|
1202 |
-
this.setState( { activeTemplate: '', colorPalette: '', finished:false, selectedPage: 'home', focusMode: false, isSelected: false, isPageSelected:false, isImporting: false, progress: '', activeTemplates: false } );
|
1203 |
onToggle();
|
1204 |
} }
|
1205 |
>
|
145 |
this.runPluginInstall = this.runPluginInstall.bind( this );
|
146 |
this.loadTemplateData = this.loadTemplateData.bind( this );
|
147 |
this.reloadTemplateData = this.reloadTemplateData.bind( this );
|
148 |
+
this.loadPluginData = this.loadPluginData.bind( this );
|
149 |
this.focusMode = this.focusMode.bind( this );
|
150 |
this.fullFocusMode = this.fullFocusMode.bind( this );
|
151 |
this.jumpToImport = this.jumpToImport.bind( this );
|
185 |
hasContent: ( kadenceStarterParams.has_content ? kadenceStarterParams.has_content : false ),
|
186 |
hasPastContent: ( kadenceStarterParams.has_previous ? kadenceStarterParams.has_previous : false ),
|
187 |
isSaving: false,
|
188 |
+
isLoadingPlugins: false,
|
189 |
+
activePlugins: false,
|
190 |
+
templatePlugins: '',
|
191 |
};
|
192 |
}
|
193 |
saveConfig( setting, settingValue ) {
|
208 |
return string.charAt( 0 ).toUpperCase() + string.slice( 1 );
|
209 |
}
|
210 |
focusMode( template_id ) {
|
211 |
+
this.setState( { activeTemplate: template_id, focusMode: true, isSelected: false, activePlugins:false } )
|
212 |
}
|
213 |
fullFocusMode( template_id ) {
|
214 |
+
this.setState( { activeTemplate: template_id, focusMode: true, isSelected: true, activePlugins:false } )
|
215 |
}
|
216 |
jumpToImport( template_id ) {
|
217 |
+
this.setState( { isImporting: true, activeTemplate: template_id, focusMode: true, isSelected: true, fontPair: '', colorPalette: '', activePlugins:false } )
|
218 |
}
|
219 |
selectedFullMode() {
|
220 |
this.setState( { isSelected: true } );
|
223 |
this.setState( { selectedPage: page_id, isPageSelected: true, isImporting: true } );
|
224 |
}
|
225 |
backToDash() {
|
226 |
+
this.setState( { isFetching: false, activeTemplate: '', activePlugins:false, overrideColors:false, overrideFonts:false, colorPalette: '', fontPair: '', focusMode: false, finished: false, isImporting: false, isSelected:false, isPageSelected:false, progress: '', selectedPage: 'home' } );
|
227 |
}
|
228 |
reloadTemplateData() {
|
229 |
this.setState( { errorTemplates: false, isSaving: true, activeTemplates: 'loading' } );
|
287 |
control.setState( { activeTemplates: 'error', errorTemplates: true, isSaving: false } );
|
288 |
});
|
289 |
}
|
290 |
+
loadPluginData( selected, builder ) {
|
291 |
+
this.setState( { isLoadingPlugins: true } );
|
292 |
+
var data = new FormData();
|
293 |
+
data.append( 'action', 'kadence_check_plugin_data' );
|
294 |
+
data.append( 'security', kadenceStarterParams.ajax_nonce );
|
295 |
+
data.append( 'selected', selected );
|
296 |
+
data.append( 'builder', builder );
|
297 |
+
var control = this;
|
298 |
+
jQuery.ajax( {
|
299 |
+
method: 'POST',
|
300 |
+
url: kadenceStarterParams.ajax_url,
|
301 |
+
data: data,
|
302 |
+
contentType: false,
|
303 |
+
processData: false,
|
304 |
+
} )
|
305 |
+
.done( function( response, status, stately ) {
|
306 |
+
if ( response ) {
|
307 |
+
if ( 'undefined' !== typeof response.success ) {
|
308 |
+
control.setState( { templatePlugins: 'error', activePlugins: true, isLoadingPlugins: false } );
|
309 |
+
} else {
|
310 |
+
//const o = kadenceTryParseJSON( response );
|
311 |
+
if ( typeof response === 'object' && response !== null ) {
|
312 |
+
control.setState( { templatePlugins: response, activePlugins: true, isLoadingPlugins: false } );
|
313 |
+
} else {
|
314 |
+
control.setState( { templatePlugins: 'error', activePlugins: true, isLoadingPlugins: false } );
|
315 |
+
}
|
316 |
+
}
|
317 |
+
}
|
318 |
+
})
|
319 |
+
.fail( function( error ) {
|
320 |
+
console.log(error);
|
321 |
+
control.setState( { templatePlugins: 'error', activePlugins: true, isLoadingPlugins: false } );
|
322 |
+
});
|
323 |
+
}
|
324 |
runPluginInstallSingle( selected, page_id, builder ) {
|
325 |
this.setState( { progress: 'plugins', isFetching: true } );
|
326 |
var data = new FormData();
|
492 |
<div className="kst-import-grid-title">
|
493 |
<h2>{ __( 'Page Template Plugins', 'kadence-starter-templates' ) }</h2>
|
494 |
</div>
|
495 |
+
{ this.state.isLoadingPlugins && (
|
496 |
+
<Spinner />
|
497 |
+
) }
|
498 |
+
{ ! this.state.activePlugins && ! this.state.isLoadingPlugins && (
|
499 |
+
<Fragment>{ this.loadPluginData( item.slug, this.state.starterSettings['builderType'] ) }</Fragment>
|
500 |
+
) }
|
501 |
+
{ this.state.activePlugins && (
|
502 |
+
<Fragment>
|
503 |
+
{ this.state.templatePlugins && 'error' !== this.state.templatePlugins && (
|
504 |
+
<ul className="kadence-required-wrap">
|
505 |
+
{ map( this.state.templatePlugins, ( { state, src, title } ) => {
|
506 |
+
if ( 'active' !== state && 'bundle' === src ) {
|
507 |
+
pluginsMember = true;
|
508 |
+
}
|
509 |
+
if ( 'active' !== state && ( 'thirdparty' === src || 'unknown' === src ) ) {
|
510 |
+
pluginsPremium = true;
|
511 |
+
}
|
512 |
+
return (
|
513 |
+
<li className={ `plugin-required${ ( 'active' !== state && 'bundle' === src ? ' bundle-install-required' : '' ) }` }>
|
514 |
+
{ title } - <span class="plugin-status">{ ( 'notactive' === state ? __( 'Not Installed', 'kadence-starter-templates' ) : state ) }</span> { ( 'active' !== state && 'thirdparty' === src ? <span class="plugin-install-required">{ __( 'Please install and activate this third-party premium plugin' ) }</span> : '' ) }
|
515 |
+
</li>
|
516 |
+
);
|
517 |
+
} ) }
|
518 |
+
</ul>
|
519 |
+
) }
|
520 |
+
{ this.state.templatePlugins && 'error' === this.state.templatePlugins && (
|
521 |
+
<Fragment>
|
522 |
+
<p className="desc-small install-third-party-notice">{ __( '*Error accessing active plugin information, you may import but first manually check that you have installed all required plugins.', 'kadence-starter-templates' ) }</p>
|
523 |
+
<ul className="kadence-required-wrap">
|
524 |
+
{ map( item.plugins, ( slug ) => {
|
525 |
+
if ( kadenceStarterParams.plugins[ slug ] ) {
|
526 |
+
if ( 'active' !== kadenceStarterParams.plugins[ slug ].state && 'bundle' === kadenceStarterParams.plugins[ slug ].src ) {
|
527 |
+
pluginsMember = true;
|
528 |
+
}
|
529 |
+
return (
|
530 |
+
<li className={ `plugin-required${ ( 'active' !== kadenceStarterParams.plugins[ slug ].state && 'bundle' === kadenceStarterParams.plugins[ slug ].src ? ' bundle-install-required' : '' ) }` }>
|
531 |
+
{ kadenceStarterParams.plugins[ slug ].title } - <span class="plugin-status">{ ( 'notactive' === kadenceStarterParams.plugins[ slug ].state ? __( 'Not Installed', 'kadence-starter-templates' ) : kadenceStarterParams.plugins[ slug ].state ) }</span> { ( 'active' !== kadenceStarterParams.plugins[ slug ].state && 'thirdparty' === kadenceStarterParams.plugins[ slug ].src ? <span class="plugin-install-required">{ __( 'Please install and activate this third-party premium Plugin' ) }</span> : '' ) }
|
532 |
+
</li>
|
533 |
+
);
|
534 |
+
} else {
|
535 |
+
return (
|
536 |
+
<li className={ `plugin-required` }>
|
537 |
+
{ slug } - <span class="plugin-status">{ __( 'Unknown', 'kadence-starter-templates' ) }</span>
|
538 |
+
</li>
|
539 |
+
);
|
540 |
+
}
|
541 |
+
} ) }
|
542 |
+
</ul>
|
543 |
+
</Fragment>
|
544 |
+
) }
|
545 |
+
</Fragment>
|
546 |
+
) }
|
547 |
+
<p className="desc-small note-about-colors">{ __( '*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' ) }</p>
|
548 |
+
<ToggleControl
|
549 |
+
label={ __( 'Override Your Sites Global Colors?', 'kadence-starter-templates' ) }
|
550 |
+
checked={ ( undefined !== this.state.overrideColors ? this.state.overrideColors : false ) }
|
551 |
+
onChange={ value => ( this.state.overrideColors ? this.setState( { overrideColors: false } ) : this.setState( { isOpenCheckColor: true } ) ) }
|
552 |
+
/>
|
553 |
+
{ this.state.isOpenCheckColor ?
|
554 |
+
<Modal
|
555 |
+
className="ksp-confirm-modal"
|
556 |
+
title={ __( 'Override Your Sites Colors on Import?', 'kadence-starter-templates' ) }
|
557 |
+
onRequestClose={ () => {
|
558 |
+
this.setState( { isOpenCheckColor: false } )
|
559 |
+
} }>
|
560 |
+
<p className="desc-small note-about-colors">{ __( 'This will override the customizer settings for global colors on your current site when you import this page template.', 'kadence-starter-templates' ) }</p>
|
561 |
+
<div className="ksp-override-model-buttons">
|
562 |
+
<Button className="ksp-cancel-override" onClick={ () => {
|
563 |
+
this.setState( { isOpenCheckColor: false, overrideColors: false } );
|
564 |
+
} }>
|
565 |
+
{ __( 'Cancel', 'kadence-starter-templates' ) }
|
566 |
+
</Button>
|
567 |
+
<Button className="ksp-do-override" isPrimary onClick={ () => {
|
568 |
+
this.setState( { isOpenCheckColor: false, overrideColors: true } );
|
569 |
+
} }>
|
570 |
+
{ __( 'Override Colors', 'kadence-starter-templates' ) }
|
571 |
+
</Button>
|
572 |
+
</div>
|
573 |
+
</Modal>
|
574 |
+
: null }
|
575 |
+
{ this.state.overrideColors && this.state.colorPalette && (
|
576 |
+
<Fragment>
|
577 |
+
<h3>{ __( 'Selected Color Palette', 'kadence-starter-templates' ) }</h3>
|
578 |
+
{ map( this.state.palettes, ( { palette, colors } ) => {
|
579 |
+
if ( palette !== this.state.colorPalette ) {
|
580 |
+
return;
|
581 |
}
|
582 |
+
return (
|
583 |
+
<div className="kst-palette-btn kst-selected-color-palette">
|
584 |
+
{ map( colors, ( color, index ) => {
|
585 |
+
return (
|
586 |
+
<div key={ index } style={ {
|
587 |
+
width: 22,
|
588 |
+
height: 22,
|
589 |
+
marginBottom: 0,
|
590 |
+
marginRight:'3px',
|
591 |
+
transform: 'scale(1)',
|
592 |
+
transition: '100ms transform ease',
|
593 |
+
} } className="kadence-swatche-item-wrap">
|
594 |
+
<span
|
595 |
+
className={ 'kadence-swatch-item' }
|
596 |
+
style={ {
|
597 |
+
height: '100%',
|
598 |
+
display: 'block',
|
599 |
+
width: '100%',
|
600 |
+
border: '1px solid rgb(218, 218, 218)',
|
601 |
+
borderRadius: '50%',
|
602 |
+
color: `${ color }`,
|
603 |
+
boxShadow: `inset 0 0 0 ${ 30 / 2 }px`,
|
604 |
+
transition: '100ms box-shadow ease',
|
605 |
+
} }
|
606 |
+
>
|
607 |
+
</span>
|
608 |
+
</div>
|
609 |
+
)
|
610 |
+
} ) }
|
611 |
+
</div>
|
612 |
+
)
|
613 |
} ) }
|
614 |
+
</Fragment>
|
615 |
+
) }
|
616 |
+
<ToggleControl
|
617 |
+
label={ __( 'Override Your Sites Fonts?', 'kadence-starter-templates' ) }
|
618 |
+
checked={ ( undefined !== this.state.overrideFonts ? this.state.overrideFonts : false ) }
|
619 |
+
onChange={ value => ( this.state.overrideFonts ? this.setState( { overrideFonts: false } ) : this.setState( { isOpenCheckFont: true } ) ) }
|
620 |
+
/>
|
621 |
+
{ this.state.isOpenCheckFont ?
|
622 |
+
<Modal
|
623 |
+
className="ksp-confirm-modal"
|
624 |
+
title={ __( 'Override Your Sites Fonts on Import?', 'kadence-starter-templates' ) }
|
625 |
+
onRequestClose={ () => {
|
626 |
+
this.setState( { isOpenCheckFont: false } )
|
627 |
+
} }>
|
628 |
+
<p className="desc-small note-about-colors">{ __( 'This will override the customizer typography settings on your current site when you import this page template.', 'kadence-starter-templates' ) }</p>
|
629 |
+
<div className="ksp-override-model-buttons">
|
630 |
+
<Button className="ksp-cancel-override" onClick={ () => {
|
631 |
+
this.setState( { isOpenCheckFont: false, overrideFonts: false } );
|
632 |
} }>
|
633 |
+
{ __( 'Cancel', 'kadence-starter-templates' ) }
|
634 |
+
</Button>
|
635 |
+
<Button className="ksp-do-override" isPrimary onClick={ () => {
|
636 |
+
this.setState( { isOpenCheckFont: false, overrideFonts: true } );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
637 |
} }>
|
638 |
+
{ __( 'Override Fonts', 'kadence-starter-templates' ) }
|
639 |
+
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
640 |
</div>
|
641 |
+
</Modal>
|
642 |
+
: null }
|
643 |
+
{ this.state.fontPair && this.state.overrideFonts && (
|
644 |
+
<Fragment>
|
645 |
+
<h3 className="kst-selected-font-pair-title">{ __( 'Selected Font Pair', 'kadence-starter-templates' ) }</h3>
|
646 |
+
{ map( this.state.fonts, ( { font, img, name } ) => {
|
647 |
+
if ( font !== this.state.fontPair ) {
|
648 |
+
return;
|
649 |
+
}
|
650 |
+
return (
|
651 |
+
<div className="kst-selected-font-pair">
|
652 |
+
<img src={ img } className="font-pairing" />
|
653 |
+
<h4>{ name }</h4>
|
654 |
</div>
|
655 |
+
)
|
656 |
+
} ) }
|
657 |
+
</Fragment>
|
658 |
+
) }
|
659 |
+
{ this.state.progress === 'plugins' && (
|
660 |
+
<div class="kadence_starter_templates_response">{ kadenceStarterParams.plugin_progress }</div>
|
661 |
+
) }
|
662 |
+
{ this.state.progress === 'content' && (
|
663 |
+
<div class="kadence_starter_templates_response">{ kadenceStarterParams.content_progress }</div>
|
664 |
+
) }
|
665 |
+
{ this.state.progress === 'contentNew' && (
|
666 |
+
<div class="kadence_starter_templates_response">{ kadenceStarterParams.content_new_progress }</div>
|
667 |
+
) }
|
668 |
+
{ this.state.isFetching && (
|
669 |
+
<Spinner />
|
670 |
+
) }
|
671 |
+
{ ! kadenceStarterParams.isKadence && (
|
672 |
+
<div class="kadence_starter_templates_response">
|
673 |
+
<h2>{ __( 'This Template Requires the Kadence Theme', 'kadence-starter-templates' ) }</h2>
|
674 |
+
<ExternalLink href={ 'https://kadence-theme.com/' }>{ __( 'Get Free Theme', 'kadence-starter-templates' ) }</ExternalLink>
|
675 |
+
</div>
|
676 |
+
) }
|
677 |
+
{ kadenceStarterParams.isKadence && (
|
678 |
+
<Fragment>
|
679 |
+
{ pluginsMember && (
|
680 |
+
<div class="kadence_starter_templates_response">
|
681 |
+
<h2>{ __( 'Install Missing/Inactive Highlighted Premium Membership plugins to Import', 'kadence-starter-templates' ) }</h2>
|
682 |
+
<ExternalLink href={ 'https://www.kadencewp.com/my-account/' }>{ __( 'Membership Account', 'kadence-starter-templates' ) }</ExternalLink>
|
683 |
+
</div>
|
684 |
+
) }
|
685 |
+
{ ! pluginsMember && (
|
686 |
+
<Button className="kt-defaults-save" isPrimary disabled={ this.state.isFetching } onClick={ () => {
|
687 |
+
this.runPluginInstallSingle( item.slug, this.state.selectedPage, this.state.starterSettings['builderType'] );
|
688 |
+
} }>
|
689 |
+
{ __( 'Start Importing Page' ) }
|
690 |
+
</Button>
|
691 |
+
) }
|
692 |
+
</Fragment>
|
693 |
+
) }
|
694 |
</div>
|
695 |
</div>
|
696 |
</div>
|
719 |
<Modal
|
720 |
className="kst-import-modal"
|
721 |
title={ __( 'Import Starter Template' ) }
|
722 |
+
onRequestClose={ () => this.state.isFetching ? false : this.setState( { activeTemplate: '', activePlugins: false, colorPalette: '', focusMode: false, isImporting: false, progress: '' } ) }>
|
723 |
{ this.state.hasContent && (
|
724 |
<div className="kadence_starter_templates_notice">
|
725 |
{ this.state.hasPastContent ? (
|
730 |
</div>
|
731 |
) }
|
732 |
<h3>{ __( 'Starter Template Plugins', 'kadence-starter-templates' ) }</h3>
|
733 |
+
{/* { map( item.plugins, ( slug ) => {
|
734 |
if ( kadenceStarterParams.plugins[ slug ] ) {
|
735 |
if ( 'active' !== kadenceStarterParams.plugins[ slug ].state ) {
|
736 |
if ( 'thirdparty' === kadenceStarterParams.plugins[ slug ].src ) {
|
738 |
}
|
739 |
}
|
740 |
}
|
741 |
+
} ) } */}
|
742 |
+
{ this.state.isLoadingPlugins && (
|
743 |
+
<Spinner />
|
744 |
+
) }
|
745 |
+
{ ! this.state.activePlugins && ! this.state.isLoadingPlugins && (
|
746 |
+
<Fragment>{ this.loadPluginData( item.slug, this.state.starterSettings['builderType'] ) }</Fragment>
|
747 |
+
) }
|
748 |
+
{ this.state.activePlugins && (
|
749 |
+
<Fragment>
|
750 |
+
{ this.state.templatePlugins && 'error' !== this.state.templatePlugins && (
|
751 |
+
<ul className="kadence-required-wrap">
|
752 |
+
{ map( this.state.templatePlugins, ( { state, src, title } ) => {
|
753 |
+
if ( 'active' !== state && 'bundle' === src ) {
|
754 |
+
pluginsMember = true;
|
755 |
+
}
|
756 |
+
if ( 'active' !== state && ( 'thirdparty' === src || 'unknown' === src ) ) {
|
757 |
+
pluginsPremium = true;
|
758 |
+
}
|
759 |
+
return (
|
760 |
+
<li className={ `plugin-required${ ( 'active' !== state && 'bundle' === src ? ' bundle-install-required' : '' ) }` }>
|
761 |
+
{ title } - <span class="plugin-status">{ ( 'notactive' === state ? __( 'Not Installed', 'kadence-starter-templates' ) : state ) }</span> { ( 'active' !== state && 'thirdparty' === src ? <span class="plugin-install-required">{ __( 'Please install and activate this third-party premium plugin' ) }</span> : '' ) }
|
762 |
+
</li>
|
763 |
+
);
|
764 |
+
} ) }
|
765 |
+
</ul>
|
766 |
+
) }
|
767 |
+
{ this.state.templatePlugins && 'error' === this.state.templatePlugins && (
|
768 |
+
<Fragment>
|
769 |
+
<p className="desc-small install-third-party-notice">{ __( '*Error accessing active plugin information, you may import but first manually check that you have installed all required plugins.', 'kadence-starter-templates' ) }</p>
|
770 |
+
<ul className="kadence-required-wrap">
|
771 |
+
{ map( item.plugins, ( slug ) => {
|
772 |
+
if ( kadenceStarterParams.plugins[ slug ] ) {
|
773 |
+
if ( 'active' !== kadenceStarterParams.plugins[ slug ].state && 'bundle' === kadenceStarterParams.plugins[ slug ].src ) {
|
774 |
+
pluginsMember = true;
|
775 |
+
}
|
776 |
+
return (
|
777 |
+
<li className={ `plugin-required${ ( 'active' !== kadenceStarterParams.plugins[ slug ].state && 'bundle' === kadenceStarterParams.plugins[ slug ].src ? ' bundle-install-required' : '' ) }` }>
|
778 |
+
{ kadenceStarterParams.plugins[ slug ].title } - <span class="plugin-status">{ ( 'notactive' === kadenceStarterParams.plugins[ slug ].state ? __( 'Not Installed', 'kadence-starter-templates' ) : kadenceStarterParams.plugins[ slug ].state ) }</span> { ( 'active' !== kadenceStarterParams.plugins[ slug ].state && 'thirdparty' === kadenceStarterParams.plugins[ slug ].src ? <span class="plugin-install-required">{ __( 'Please install and activate this third-party premium Plugin' ) }</span> : '' ) }
|
779 |
+
</li>
|
780 |
+
);
|
781 |
+
} else {
|
782 |
+
return (
|
783 |
+
<li className={ `plugin-required` }>
|
784 |
+
{ slug } - <span class="plugin-status">{ __( 'Unknown', 'kadence-starter-templates' ) }</span>
|
785 |
+
</li>
|
786 |
+
);
|
787 |
+
}
|
788 |
+
} ) }
|
789 |
+
</ul>
|
790 |
+
</Fragment>
|
791 |
+
) }
|
792 |
+
</Fragment>
|
793 |
+
) }
|
794 |
{ pluginsPremium && (
|
795 |
<p className="desc-small install-third-party-notice">{ __( '*This starter template requires premium third-party plugins. Please install missing/inactive premium plugins to import.', 'kadence-starter-templates' ) }</p>
|
796 |
) }
|
797 |
+
{/* <ul className="kadence-required-wrap">
|
798 |
{ map( item.plugins, ( slug ) => {
|
799 |
if ( kadenceStarterParams.plugins[ slug ] ) {
|
800 |
if ( 'active' !== kadenceStarterParams.plugins[ slug ].state && 'bundle' === kadenceStarterParams.plugins[ slug ].src ) {
|
807 |
);
|
808 |
}
|
809 |
} ) }
|
810 |
+
</ul> */}
|
811 |
{ this.state.colorPalette && (
|
812 |
<Fragment>
|
813 |
<h3>{ __( 'Selected Color Palette', 'kadence-starter-templates' ) }</h3>
|
1302 |
isSelected={ ( 'blocks' === this.state.starterSettings['builderType'] ? true : false ) }
|
1303 |
onClick={ () => {
|
1304 |
this.saveConfig( 'builderType', 'blocks' );
|
1305 |
+
this.setState( { activeTemplate: '', activePlugins:false, colorPalette: '', finished:false, selectedPage: 'home', focusMode: false, isSelected: false, isPageSelected:false, isImporting: false, progress: '', activeTemplates: false } );
|
1306 |
onToggle();
|
1307 |
} }
|
1308 |
>
|
1314 |
isSelected={ ( 'elementor' === this.state.starterSettings['builderType'] ? true : false ) }
|
1315 |
onClick={ () => {
|
1316 |
this.saveConfig( 'builderType', 'elementor' );
|
1317 |
+
this.setState( { activeTemplate: '', activePlugins:false, colorPalette: '', finished:false, selectedPage: 'home', focusMode: false, isSelected: false, isPageSelected:false, isImporting: false, progress: '', activeTemplates: false } );
|
1318 |
onToggle();
|
1319 |
} }
|
1320 |
>
|
1327 |
isSelected={ ( 'custom' === this.state.starterSettings['builderType'] ? true : false ) }
|
1328 |
onClick={ () => {
|
1329 |
this.saveConfig( 'builderType', 'custom' );
|
1330 |
+
this.setState( { activeTemplate: '', activePlugins:false, colorPalette: '', finished:false, selectedPage: 'home', focusMode: false, isSelected: false, isPageSelected:false, isImporting: false, progress: '', activeTemplates: false } );
|
1331 |
onToggle();
|
1332 |
} }
|
1333 |
>
|
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.
|
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.1
|
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.6
|
6 |
-
Stable tag: 1.2.
|
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.0 =
|
112 |
* Add: New Templates and hooks
|
113 |
* Update: API call for template data.
|
3 |
Tags: templates, gutenberg
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.6
|
6 |
+
Stable tag: 1.2.1
|
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.1 =
|
112 |
+
* Fix: Better support for installing any repo plugin.
|
113 |
+
* Fix: Possible issue with Customizer Import.
|
114 |
+
|
115 |
= 1.2.0 =
|
116 |
* Add: New Templates and hooks
|
117 |
* Update: API call for template data.
|
vendor/wxr-importer/WXRImporter.php
CHANGED
@@ -1132,15 +1132,15 @@ class WXRImporter extends \WP_Importer {
|
|
1132 |
if ( $this->options['aggressive_url_search'] ) {
|
1133 |
//$this->replace_attachment_urls_in_content();
|
1134 |
// remap resized image URLs, works by stripping the extension and remapping the URL stub.
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
|
1139 |
-
|
1140 |
-
|
1141 |
|
1142 |
-
|
1143 |
-
|
1144 |
}
|
1145 |
|
1146 |
return $post_id;
|
1132 |
if ( $this->options['aggressive_url_search'] ) {
|
1133 |
//$this->replace_attachment_urls_in_content();
|
1134 |
// remap resized image URLs, works by stripping the extension and remapping the URL stub.
|
1135 |
+
if ( preg_match( '!^image/!', $info['type'] ) ) {
|
1136 |
+
$parts = pathinfo( $remote_url );
|
1137 |
+
$name = basename( $parts['basename'], ".{$parts['extension']}" ); // PATHINFO_FILENAME in PHP 5.2
|
1138 |
|
1139 |
+
$parts_new = pathinfo( $upload['url'] );
|
1140 |
+
$name_new = basename( $parts_new['basename'], ".{$parts_new['extension']}" );
|
1141 |
|
1142 |
+
$this->url_remap[$parts['dirname'] . '/' . $name] = $parts_new['dirname'] . '/' . $name_new;
|
1143 |
+
}
|
1144 |
}
|
1145 |
|
1146 |
return $post_id;
|