Cloud Templates & Patterns collection - Version 1.1.25

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon 128x128 Cloud Templates & Patterns collection
Version 1.1.25
Comparing to
See all releases

Code changes from version 1.1.24 to 1.1.25

CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  ##### [Version 1.1.24](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.23...v1.1.24) (2022-07-12)
2
 
3
  Release
1
+ ##### [Version 1.1.25](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.24...v1.1.25) (2022-07-28)
2
+
3
+ - Improvements to Workflow
4
+ - Fixed plugin activation for recipe card plugin on import
5
+ - Better support for WooCommerce blocks after product import
6
+ - Better support for themes
7
+ - Remove Neve dependencies from Template Patterns Collection
8
+ - Improve display on categories for PRO licenses
9
+
10
  ##### [Version 1.1.24](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.23...v1.1.24) (2022-07-12)
11
 
12
  Release
README.md CHANGED
@@ -39,6 +39,18 @@ Yes, you can. You can either chose to import one template or the entire starter
39
 
40
  ## Changelog ##
41
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  ##### [Version 1.1.24](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.23...v1.1.24) (2022-07-12)
43
 
44
  Release
39
 
40
  ## Changelog ##
41
 
42
+ ##### [Version 1.1.25](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.24...v1.1.25) (2022-07-28)
43
+
44
+ - Improvements to Workflow
45
+ - Fixed plugin activation for recipe card plugin on import
46
+ - Better support for WooCommerce blocks after product import
47
+ - Better support for themes
48
+ - Remove Neve dependencies from Template Patterns Collection
49
+ - Improve display on categories for PRO licenses
50
+
51
+
52
+
53
+
54
  ##### [Version 1.1.24](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.23...v1.1.24) (2022-07-12)
55
 
56
  Release
assets/build/app.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives'), 'version' => 'd05ae9470cbffb37c383766878418a02');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives'), 'version' => '2ea520be0daffdba42ca3355108744f6');
assets/build/app.js CHANGED
@@ -1,10 +1,11 @@
1
- (window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[]).push([[1],{22:function(e,t,n){}}]),function(e){function t(t){for(var r,o,i=t[0],s=t[1],l=t[2],m=0,p=[];m<i.length;m++)o=i[m],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&p.push(a[o][0]),a[o]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,l||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,i=1;i<n.length;i++){var s=n[i];0!==a[s]&&(r=!1)}r&&(c.splice(t--,1),e=o(o.s=n[0]))}return e}var r={},a={0:0},c=[];function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var i=window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var u=s;c.push([34,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},function(e,t,n){var r=n(23),a=n(24),c=n(16),o=n(25);e.exports=function(e,t){return r(e)||a(e,t)||c(e,t)||o()}},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.primitives},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e,t,n,r,a,c,o){try{var i=e[c](o),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,c){var o=e.apply(t,r);function i(e){n(o,a,c,i,s,"next",e)}function s(e){n(o,a,c,i,s,"throw",e)}i(void 0)}))}}},function(e,t,n){"use strict";const r=n(31),a=n(32),c=n(33);function o(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function i(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e,t){return t.decode?a(e):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function p(e,t){o((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const a="string"==typeof n&&n.includes(e.arrayFormatSeparator),c="string"==typeof n&&!a&&s(n,e).includes(e.arrayFormatSeparator);n=c?s(n,e):n;const o=a||c?n.split(e.arrayFormatSeparator).map(t=>s(t,e)):null===n?n:s(n,e);r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const a of e.split("&")){let[e,o]=c(t.decode?a.replace(/\+/g," "):a,"=");o=void 0===o?null:["comma","separator"].includes(t.arrayFormat)?o:s(o,t),n(s(e,t),o,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=m(n[e],t);else r[e]=m(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=u,t.parse=p,t.stringify=(e,t)=>{if(!e)return"";o((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[i(t,e),"[",a,"]"].join("")]:[...n,[i(t,e),"[",i(a,e),"]=",i(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[i(t,e),"[]"].join("")]:[...n,[i(t,e),"[]=",i(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[i(t,e),"=",i(r,e)].join("")]:[[n,i(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,i(t,e)]:[...n,[i(t,e),"=",i(r,e)].join("")]}}(t),a={};for(const t of Object.keys(e))n(t)||(a[t]=e[t]);const c=Object.keys(a);return!1!==t.sort&&c.sort(t.sort),c.map(n=>{const a=e[n];return void 0===a?"":null===a?i(n,t):Array.isArray(a)?a.reduce(r(n),[]).join("&"):i(n,t)+"="+i(a,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=c(e,"#");return Object.assign({url:n.split("?")[0]||"",query:p(u(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:s(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=l(e.url).split("?")[0]||"",a=t.extract(e.url),c=t.parse(a,{sort:!1}),o=Object.assign(c,e.query);let s=t.stringify(o,n);s&&(s="?"+s);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#"+i(e.fragmentIdentifier,n)),`${r}${s}${u}`}},function(e,t,n){var r=n(26),a=n(27),c=n(16),o=n(28);e.exports=function(e){return r(e)||a(e)||c(e)||o()}},,function(e,t){e.exports=window.wp.apiFetch},function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(5)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t,n){var r=e.direction,a=e.value;switch(r){case"top":return n.top+a<t.top&&n.bottom>t.bottom&&n.left<t.left&&n.right>t.right;case"left":return n.left+a<t.left&&n.bottom>t.bottom&&n.top<t.top&&n.right>t.right;case"bottom":return n.bottom-a>t.bottom&&n.left<t.left&&n.right>t.right&&n.top<t.top;case"right":return n.right-a>t.right&&n.left<t.left&&n.top<t.top&&n.bottom>t.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var r=n(1),a=n.n(r),c=n(2),o=n.n(c),i=n(0),s=n.n(i),l=n(3),u=n.n(l);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this,r=d(t).call(this,e),n=!r||"object"!==m(r)&&"function"!=typeof r?b(this):r,h(b(n),"getContainer",(function(){return n.props.containment||window})),h(b(n),"addEventListener",(function(e,t,r,a){var c;n.debounceCheck||(n.debounceCheck={});var o=function(){c=null,n.check()},i={target:e,fn:a>-1?function(){c||(c=setTimeout(o,a||0))}:function(){clearTimeout(c),c=setTimeout(o,r||0)},getLastTimeout:function(){return c}};e.addEventListener(t,i.fn),n.debounceCheck[t]=i})),h(b(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),h(b(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),h(b(n),"check",(function(){var e,t,r=n.node;if(!r)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(r.getBoundingClientRect())),n.props.containment){var a=n.props.containment.getBoundingClientRect();t={top:a.top,left:a.left,bottom:a.bottom,right:a.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var c=n.props.offset||{};"object"===m(c)&&(t.top+=c.top||0,t.left+=c.left||0,t.bottom-=c.bottom||0,t.right-=c.right||0);var o={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},i=e.height>0&&e.width>0,s=i&&o.top&&o.left&&o.bottom&&o.right;if(i&&n.props.partialVisibility){var l=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(l=o[n.props.partialVisibility]),s=n.props.minTopValue?l&&e.top<=t.bottom-n.props.minTopValue:l}"string"==typeof c.direction&&"number"==typeof c.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",c.direction,c.value),s=u()(c,e,t));var p=n.state;return n.state.isVisible!==s&&(p={isVisible:s,visibilityRect:o},n.setState(p),n.props.onChange&&n.props.onChange(s)),p})),n.state={isVisible:null,visibilityRect:{}},n}var n,r;return 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&&f(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.node=o.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=o.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):a.a.Children.only(this.props.children)}}])&&p(n.prototype,r),t}(a.a.Component);h(g,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:a.a.createElement("span",null)}),h(g,"propTypes",{onChange:s.a.func,active:s.a.bool,partialVisibility:s.a.oneOfType([s.a.bool,s.a.oneOf(["top","right","bottom","left"])]),delayedCall:s.a.bool,offset:s.a.oneOfType([s.a.shape({top:s.a.number,left:s.a.number,bottom:s.a.number,right:s.a.number}),s.a.shape({direction:s.a.oneOf(["top","right","bottom","left"]),value:s.a.number})]),scrollCheck:s.a.bool,scrollDelay:s.a.number,scrollThrottle:s.a.number,resizeCheck:s.a.bool,resizeDelay:s.a.number,resizeThrottle:s.a.number,intervalCheck:s.a.bool,intervalDelay:s.a.number,containment:"undefined"!=typeof window?s.a.instanceOf(window.Element):s.a.any,children:s.a.oneOfType([s.a.element,s.a.func]),minTopValue:s.a.number})},function(e,t,n){"use strict";var r=n(6);function a(){}function c(){}c.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,c,o){if(o!==r){var i=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 i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={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:c,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=r(n(29),n(30))},function(e,t,n){var r=n(17);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=window.wp.keycodes},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},function(e,t,n){var r;r=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(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&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(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 n,r=s(e);if(t){var a=s(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return l(this,n)}}function m(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function b(e){return"string"==typeof e}function f(e){return"number"==typeof e}function h(t){return"object"===e(t)}function g(e){return null!=e}function O(e){return!e.trim().length}function v(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var j=function(e){return"Invalid value for key ".concat(e)},y=function(e){return"Pattern length exceeds max of ".concat(e,".")},E=Object.prototype.hasOwnProperty,_=function(){function e(n){var r=this;t(this,e),this._keys=[],this._keyMap={};var a=0;n.forEach((function(e){var t=w(e);a+=t.weight,r._keys.push(t),r._keyMap[t.id]=t,a+=t.weight})),this._keys.forEach((function(e){e.weight/=a}))}return r(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function w(e){var t=null,n=null,r=null,a=1;if(b(e)||d(e))r=e,t=S(e),n=k(e);else{if(!E.call(e,"name"))throw new Error("Missing ".concat("name"," property in key"));var c=e.name;if(r=c,E.call(e,"weight")&&(a=e.weight)<=0)throw new Error(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(c));t=S(c),n=k(c)}return{path:t,id:n,weight:a,src:r}}function S(e){return d(e)?e:e.split(".")}function k(e){return d(e)?e.join("."):e}var C=o({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}},{},{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},{},{location:0,threshold:.6,distance:100},{},{useExtendedSearch:!1,getFn:function(e,t){var n=[],r=!1;return function e(t,a,c){if(g(t))if(a[c]){var o=t[a[c]];if(!g(o))return;if(c===a.length-1&&(b(o)||f(o)||function(e){return!0===e||!1===e||function(e){return h(e)&&null!==e}(e)&&"[object Boolean]"==v(e)}(o)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(o));else if(d(o)){r=!0;for(var i=0,s=o.length;i<s;i+=1)e(o[i],a,c+1)}else a.length&&e(o,a,c+1)}else n.push(t)}(e,b(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1}),N=/[^ ]+/g;function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=new Map,n=Math.pow(10,e);return{get:function(e){var r=e.match(N).length;if(t.has(r))return t.get(r);var a=1/Math.sqrt(r),c=parseFloat(Math.round(a*n)/n);return t.set(r,c),c},clear:function(){t.clear()}}}var x=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.getFn,a=void 0===r?C.getFn:r;t(this,e),this.norm=T(3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}return r(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,b(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();b(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(g(e)&&!O(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){var n=this,r={i:t,$:{}};this.keys.forEach((function(t,a){var c=n.getFn(e,t.path);if(g(c))if(d(c))!function(){for(var e=[],t=[{nestedArrIndex:-1,value:c}];t.length;){var o=t.pop(),i=o.nestedArrIndex,s=o.value;if(g(s))if(b(s)&&!O(s)){var l={v:s,i:i,n:n.norm.get(s)};e.push(l)}else d(s)&&s.forEach((function(e,n){t.push({nestedArrIndex:n,value:e})}))}r.$[a]=e}();else if(!O(c)){var o={v:c,n:n.norm.get(c)};r.$[a]=o}})),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,a=void 0===r?C.getFn:r,c=new x({getFn:a});return c.setKeys(e.map(w)),c.setSources(t),c.create(),c}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,a=t.currentLocation,c=void 0===a?0:a,o=t.expectedLocation,i=void 0===o?0:o,s=t.distance,l=void 0===s?C.distance:s,u=t.ignoreLocation,m=void 0===u?C.ignoreLocation:u,p=r/e.length;if(m)return p;var d=Math.abs(i-c);return l?p+d/l:d?1:p}function D(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.minMatchCharLength,n=[],r=-1,a=-1,c=0,o=e.length;c<o;c+=1){var i=e[c];i&&-1===r?r=c:i||-1===r||((a=c-1)-r+1>=t&&n.push([r,a]),r=-1)}return e[c-1]&&c-r>=t&&n.push([r,c-1]),n}function I(e){for(var t={},n=0,r=e.length;n<r;n+=1){var a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}var L=function(){function e(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a.location,o=void 0===c?C.location:c,i=a.threshold,s=void 0===i?C.threshold:i,l=a.distance,u=void 0===l?C.distance:l,m=a.includeMatches,p=void 0===m?C.includeMatches:m,d=a.findAllMatches,b=void 0===d?C.findAllMatches:d,f=a.minMatchCharLength,h=void 0===f?C.minMatchCharLength:f,g=a.isCaseSensitive,O=void 0===g?C.isCaseSensitive:g,v=a.ignoreLocation,j=void 0===v?C.ignoreLocation:v;if(t(this,e),this.options={location:o,threshold:s,distance:u,includeMatches:p,findAllMatches:b,minMatchCharLength:h,isCaseSensitive:O,ignoreLocation:j},this.pattern=O?n:n.toLowerCase(),this.chunks=[],this.pattern.length){var y=function(e,t){r.chunks.push({pattern:e,alphabet:I(e),startIndex:t})},E=this.pattern.length;if(E>32){for(var _=0,w=E%32,S=E-w;_<S;)y(this.pattern.substr(_,32),_),_+=32;if(w){var k=E-32;y(this.pattern.substr(k),k)}}else y(this.pattern,0)}}return r(e,[{key:"searchIn",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var a={isMatch:!0,score:0};return r&&(a.indices=[[0,e.length-1]]),a}var c=this.options,o=c.location,i=c.distance,s=c.threshold,l=c.findAllMatches,u=c.minMatchCharLength,p=c.ignoreLocation,d=[],b=0,f=!1;this.chunks.forEach((function(t){var n=t.pattern,a=t.alphabet,c=t.startIndex,h=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.location,c=void 0===a?C.location:a,o=r.distance,i=void 0===o?C.distance:o,s=r.threshold,l=void 0===s?C.threshold:s,u=r.findAllMatches,m=void 0===u?C.findAllMatches:u,p=r.minMatchCharLength,d=void 0===p?C.minMatchCharLength:p,b=r.includeMatches,f=void 0===b?C.includeMatches:b,h=r.ignoreLocation,g=void 0===h?C.ignoreLocation:h;if(t.length>32)throw new Error(y(32));for(var O,v=t.length,j=e.length,E=Math.max(0,Math.min(c,j)),_=l,w=E,S=d>1||f,k=S?Array(j):[];(O=e.indexOf(t,w))>-1;){var N=P(t,{currentLocation:O,expectedLocation:E,distance:i,ignoreLocation:g});if(_=Math.min(N,_),w=O+v,S)for(var T=0;T<v;)k[O+T]=1,T+=1}w=-1;for(var x=[],M=1,I=v+j,L=1<<v-1,A=0;A<v;A+=1){for(var B=0,R=I;B<R;){var F=P(t,{errors:A,currentLocation:E+R,expectedLocation:E,distance:i,ignoreLocation:g});F<=_?B=R:I=R,R=Math.floor((I-B)/2+B)}I=R;var z=Math.max(1,E-R+1),U=m?j:Math.min(E+R,j)+v,V=Array(U+2);V[U+1]=(1<<A)-1;for(var $=U;$>=z;$-=1){var H=$-1,G=n[e.charAt(H)];if(S&&(k[H]=+!!G),V[$]=(V[$+1]<<1|1)&G,A&&(V[$]|=(x[$+1]|x[$])<<1|1|x[$+1]),V[$]&L&&(M=P(t,{errors:A,currentLocation:H,expectedLocation:E,distance:i,ignoreLocation:g}))<=_){if(_=M,(w=H)<=E)break;z=Math.max(1,2*E-w)}}var W=P(t,{errors:A+1,currentLocation:E,expectedLocation:E,distance:i,ignoreLocation:g});if(W>_)break;x=V}var q={isMatch:w>=0,score:Math.max(.001,M)};if(S){var Q=D(k,d);Q.length?f&&(q.indices=Q):q.isMatch=!1}return q}(e,n,a,{location:o+c,distance:i,threshold:s,findAllMatches:l,minMatchCharLength:u,includeMatches:r,ignoreLocation:p}),g=h.isMatch,O=h.score,v=h.indices;g&&(f=!0),b+=O,g&&v&&(d=[].concat(m(d),m(v)))}));var h={isMatch:f,score:f?b/this.chunks.length:1};return f&&r&&(h.indices=d),h}}]),e}(),A=function(){function e(n){t(this,e),this.pattern=n}return r(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return B(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return B(e,this.singleRegex)}}]),e}();function B(e,t){var n=e.match(t);return n?n[1]:null}var R=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),a}(A),F=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),a}(A),z=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),a}(A),U=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),a}(A),V=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),a}(A),$=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),a}(A),H=function(e){i(a,e);var n=u(a);function a(e){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=c.location,i=void 0===o?C.location:o,s=c.threshold,l=void 0===s?C.threshold:s,u=c.distance,m=void 0===u?C.distance:u,p=c.includeMatches,d=void 0===p?C.includeMatches:p,b=c.findAllMatches,f=void 0===b?C.findAllMatches:b,h=c.minMatchCharLength,g=void 0===h?C.minMatchCharLength:h,O=c.isCaseSensitive,v=void 0===O?C.isCaseSensitive:O,j=c.ignoreLocation,y=void 0===j?C.ignoreLocation:j;return t(this,a),(r=n.call(this,e))._bitapSearch=new L(e,{location:i,threshold:l,distance:m,includeMatches:d,findAllMatches:f,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:y}),r}return r(a,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),a}(A),G=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){for(var t,n=0,r=[],a=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+a,r.push([t,n-1]);var c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),a}(A),W=[R,G,z,U,$,V,F,H],q=W.length,Q=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Q).filter((function(e){return e&&!!e.trim()})),r=[],a=0,c=n.length;a<c;a+=1){for(var o=n[a],i=!1,s=-1;!i&&++s<q;){var l=W[s],u=l.isMultiMatch(o);u&&(r.push(new l(u,t)),i=!0)}if(!i)for(s=-1;++s<q;){var m=W[s],p=m.isSingleMatch(o);if(p){r.push(new m(p,t));break}}}return r}))}var J=new Set([H.type,G.type]),K=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.isCaseSensitive,c=void 0===a?C.isCaseSensitive:a,o=r.includeMatches,i=void 0===o?C.includeMatches:o,s=r.minMatchCharLength,l=void 0===s?C.minMatchCharLength:s,u=r.ignoreLocation,m=void 0===u?C.ignoreLocation:u,p=r.findAllMatches,d=void 0===p?C.findAllMatches:p,b=r.location,f=void 0===b?C.location:b,h=r.threshold,g=void 0===h?C.threshold:h,O=r.distance,v=void 0===O?C.distance:O;t(this,e),this.query=null,this.options={isCaseSensitive:c,includeMatches:i,minMatchCharLength:l,findAllMatches:d,ignoreLocation:m,location:f,threshold:g,distance:v},this.pattern=c?n:n.toLowerCase(),this.query=Y(this.pattern,this.options)}return r(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var a=0,c=[],o=0,i=0,s=t.length;i<s;i+=1){var l=t[i];c.length=0,a=0;for(var u=0,p=l.length;u<p;u+=1){var d=l[u],b=d.search(e),f=b.isMatch,h=b.indices,g=b.score;if(!f){o=0,a=0,c.length=0;break}if(a+=1,o+=g,r){var O=d.constructor.type;J.has(O)?c=[].concat(m(c),m(h)):c.push(h)}}if(a){var v={isMatch:!0,score:o/a};return r&&(v.indices=c),v}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(e,t){return t.useExtendedSearch}}]),e}(),Z=[];function X(e,t){for(var n=0,r=Z.length;n<r;n+=1){var a=Z[n];if(a.condition(e,t))return new a(e,t)}return new L(e,t)}var ee="$and",te="$path",ne=function(e){return!(!e[ee]&&!e.$or)},re=function(e){return!!e[te]},ae=function(e){return!d(e)&&h(e)&&!ne(e)},ce=function(e){return a({},ee,Object.keys(e).map((function(t){return a({},t,e[t])})))};function oe(e,t){var n=t.ignoreFieldNorm,r=void 0===n?C.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,a=e.norm,c=e.score,o=n?n.weight:null;t*=Math.pow(0===c&&o?Number.EPSILON:c,(o||1)*(r?1:a))})),e.score=t}))}function ie(e,t){var n=e.matches;t.matches=[],g(n)&&n.forEach((function(e){if(g(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function se(e,t){t.score=e.score}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,a=void 0===r?C.includeMatches:r,c=n.includeScore,o=void 0===c?C.includeScore:c,i=[];return a&&i.push(ie),o&&i.push(se),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return i.length&&i.forEach((function(t){t(e,r)})),r}))}var ue=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;t(this,e),this.options=o({},C,{},r),this.options.useExtendedSearch,this._keyStore=new _(this.options.keys),this.setCollection(n,a)}return r(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof x))throw new Error("Incorrect 'index' type");this._myIndex=t||M(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(e){g(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){var a=this._docs[n];e(a,n)&&(this.removeAt(n),n-=1,r-=1,t.push(a))}return t}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,a=this.options,c=a.includeMatches,o=a.includeScore,i=a.shouldSort,s=a.sortFn,l=a.ignoreFieldNorm,u=b(e)?b(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return oe(u,{ignoreFieldNorm:l}),i&&u.sort(s),f(r)&&r>-1&&(u=u.slice(0,r)),le(u,this._docs,{includeMatches:c,includeScore:o})}},{key:"_searchStringList",value:function(e){var t=X(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,a=e.i,c=e.n;if(g(n)){var o=t.searchIn(n),i=o.isMatch,s=o.score,l=o.indices;i&&r.push({item:n,idx:a,matches:[{score:s,value:n,norm:c,indices:l}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,a=void 0===r||r,c=function e(n){var r=Object.keys(n),c=re(n);if(!c&&r.length>1&&!ne(n))return e(ce(n));if(ae(n)){var o=c?n[te]:r[0],i=c?n.$val:n[o];if(!b(i))throw new Error(j(o));var s={keyId:k(o),pattern:i};return a&&(s.searcher=X(i,t)),s}var l={children:[],operator:r[0]};return r.forEach((function(t){var r=n[t];d(r)&&r.forEach((function(t){l.children.push(e(t))}))})),l};return ne(e)||(e=ce(e)),c(e)}(e,this.options),r=this._myIndex.records,a={},c=[];return r.forEach((function(e){var r=e.$,o=e.i;if(g(r)){var i=function e(n,r,a){if(!n.children){var c=n.keyId,o=n.searcher,i=t._findMatches({key:t._keyStore.get(c),value:t._myIndex.getValueForItemAtKeyId(r,c),searcher:o});return i&&i.length?[{idx:a,item:r,matches:i}]:[]}switch(n.operator){case ee:for(var s=[],l=0,u=n.children.length;l<u;l+=1){var p=e(n.children[l],r,a);if(!p.length)return[];s.push.apply(s,m(p))}return s;case"$or":for(var d=[],b=0,f=n.children.length;b<f;b+=1){var h=e(n.children[b],r,a);if(h.length){d.push.apply(d,m(h));break}}return d}}(n,r,o);i.length&&(a[o]||(a[o]={idx:o,item:r,matches:[]},c.push(a[o])),i.forEach((function(e){var t,n=e.matches;(t=a[o].matches).push.apply(t,m(n))})))}})),c}},{key:"_searchObjectList",value:function(e){var t=this,n=X(e,this.options),r=this._myIndex,a=r.keys,c=r.records,o=[];return c.forEach((function(e){var r=e.$,c=e.i;if(g(r)){var i=[];a.forEach((function(e,a){i.push.apply(i,m(t._findMatches({key:e,value:r[a],searcher:n})))})),i.length&&o.push({idx:c,item:r,matches:i})}})),o}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!g(n))return[];var a=[];if(d(n))n.forEach((function(e){var n=e.v,c=e.i,o=e.n;if(g(n)){var i=r.searchIn(n),s=i.isMatch,l=i.score,u=i.indices;s&&a.push({score:l,key:t,value:n,idx:c,norm:o,indices:u})}}));else{var c=n.v,o=n.n,i=r.searchIn(c),s=i.isMatch,l=i.score,u=i.indices;s&&a.push({score:l,key:t,value:c,norm:o,indices:u})}return a}}]),e}();return ue.version="6.4.6",ue.createIndex=M,ue.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?C.getFn:n,a=e.keys,c=e.records,o=new x({getFn:r});return o.setKeys(a),o.setIndexRecords(c),o},ue.config=C,function(){Z.push.apply(Z,arguments)}(K),ue},e.exports=r()},,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=window.React},function(e,t){e.exports=window.ReactDOM},function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function c(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],c(n),c(r))}function o(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=c(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=a.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=a.exec(e)}t["%C2"]="�";for(var c=Object.keys(t),i=0;i<c.length;i++){var s=c[i];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){"use strict";n.r(t);var r=n(0),a=(n(22),n(9)),c=n.n(a);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=tiobDash,l=s.onboarding,u=s.themeAction,m=void 0!==l.sites&&void 0!==l.sites.sites?Object.keys(l.sites.sites)[0]:"gutenberg",p=localStorage.getItem("neve-onboarding-editor")||m,d={sites:l.sites||{},editor:p,category:"all",previewStatus:!1,importModalStatus:!1,installModalStatus:!1,currentSite:null,importing:!1,isOnboarding:l.onboarding||!1,migrationData:null,themeAction:u,currentTab:"starterSites",fetching:!1,singleTemplateImport:null,templateModal:null,searchQuery:""},b={refreshSites:function(e){return{type:"REFRESH_SITES",payload:{sites:e}}},setCurrentEditor:function(e){return{type:"SET_CURRENT_EDITOR",payload:{editor:e}}},setCurrentCategory:function(e){return{type:"SET_CURRENT_CATEGORY",payload:{category:e}}},setCurrentSite:function(e){return{type:"SET_FOCUSED_SITE",payload:{siteData:e}}},setPreviewStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_PREVIEW_STATUS",payload:{previewStatus:e}}},setImportModalStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_IMPORT_MODAL_STATUS",payload:{importModalStatus:e}}},setInstallModalStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_INSTALL_MODAL_STATUS",payload:{installModalStatus:e}}},setOnboardingState:function(e){return{type:"SET_ONBOARDING",payload:{state:e}}},setThemeAction:function(e){return{type:"SET_THEME_ACTIONS",payload:{themeActions:e}}},setCurrentTab:function(e){return{type:"SET_CURRENT_TAB",payload:{currentTab:e}}},setFetching:function(e){return{type:"SET_FETCHING",payload:{fetching:e}}},setSingleTemplateImport:function(e){return{type:"SET_SINGLE_TEMPLATE_IMPORT",payload:{slug:e}}},setTemplateModal:function(e){return{type:"SET_TEMPLATE_MODAL",payload:{data:e}}},setSearchQuery:function(e){return{type:"SET_SEARCH_QUERY",payload:{query:e}}}},f={getSites:function(e){return e.sites},getMigrationData:function(e){return e.migrationData},getCurrentEditor:function(e){return e.editor},getCurrentCategory:function(e){return e.category},getCurrentSite:function(e){return e.currentSite},getPreviewStatus:function(e){return e.previewStatus},getImportModalStatus:function(e){return e.importModalStatus},getOnboardingStatus:function(e){return e.isOnboarding},getThemeAction:function(e){return e.themeAction},getInstallModalStatus:function(e){return e.installModalStatus},getCurrentTab:function(e){return e.currentTab},getFetching:function(e){return e.fetching},getSingleImport:function(e){return e.singleTemplateImport},getTemplateModal:function(e){return e.templateModal},getSearchQuery:function(e){return e.searchQuery},getUserStatus:function(){return window.tiobDash.license&&window.tiobDash.license.tier&&[6,17,23,5,9,14,20,1,7,12,18,3,8,13,19].includes(window.tiobDash.license.tier)}},h=n(4),g=n(6),O=n.n(g),v=n(7),j=n(3),y=n.n(j),E=n(2),_=n(1),w=n(8),S=n.n(w),k=n(10),C=n.n(k),N=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x(e,n,t)},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return x(e,t,{},"GET",n)},x=function(){var e=C()(S.a.mark((function e(t){var n,r,a,c,o,i=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],r=i.length>2&&void 0!==i[2]?i[2]:{},a=i.length>3&&void 0!==i[3]?i[3]:"POST",c=!(i.length>4&&void 0!==i[4])||i[4],o={method:a,headers:{Accept:"application/json","Content-Type":"application/json"}},c&&(o.headers["x-wp-nonce"]=tiobDash.nonce),"POST"===a&&(o.body=JSON.stringify(r)),e.next=9,fetch(t,o).then((function(e){return n?e:e.json()}));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D,I=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getSingleImport;return{themeData:(0,t.getThemeAction)()||!1,singleImport:n()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setImportModalStatus,r=t.setInstallModalStatus,a=t.setThemeAction,c=t.setTemplateModal;return{setImportModal:function(e){return n(e)},setInstallModal:function(e){return r(e)},setThemeAction:function(e){return a(e)},showTemplateModal:function(){return c(!0)}}})))((function(e){var t=e.setImportModal,n=e.setInstallModal,a=e.themeData,c=e.setThemeAction,o=e.singleImport,i=e.showTemplateModal,s=a.action,l=a.slug,u=a.nonce,m=tiobDash,p=m.themesURL,d=m.brandedTheme,b=Object(r.useState)(!1),f=y()(b,2),h=f[0],g=f[1],O=Object(r.useState)(null),v=y()(O,2),j=v[0],w=v[1],S=function(){n(!1)},k=function(e){g(!1),w(Object(_.sprintf)(// translators: %s: Error message.
2
- Object(_.__)("An error has ocurred: %s","templates-patterns-collection"),e))},C=function(){g("activating");var e="".concat(p,"?action=activate&stylesheet=").concat(l,"&_wpnonce=").concat(u);T(e,!0).then((function(e){return 200!==e.status?(k(Object(_.__)("Could not activate theme.","templates-patterns-collection")),g(!1),!1):(g(!1),n(!1),c(!1),o?(i(),!1):void t(!0))}))};return Object(r.createElement)(E.Modal,{className:"ob-import-modal install-modal",title:Object(_.__)("Install and Activate Neve","templates-patterns-collection"),onRequestClose:S,shouldCloseOnClickOutside:!h,isDismissible:!h},Object(r.createElement)("div",{className:"modal-body",style:{textAlign:"center"}},!d&&Object(r.createElement)("img",{style:{width:75},src:"".concat(tiobDash.assets,"/img/logo.svg"),alt:Object(_.__)("Logo","templates-patterns-collection")}),j&&Object(r.createElement)("div",{className:"well error",style:{margin:"20px 0"}},j),Object(r.createElement)("p",{style:{lineHeight:1.6,fontSize:"15px"}},Object(_.__)("In order to import the starter site, Neve theme has to be installed and activated. Click the button below to install and activate Neve","templates-patterns-collection"))),Object(r.createElement)("div",{className:"modal-footer",style:{justifyContent:"center"}},Object(r.createElement)("div",{className:"actions",style:{display:"flex"}},!j&&Object(r.createElement)(E.Button,{dismiss:j,isPrimary:!0,disabled:h,className:h&&"is-loading",icon:h&&"update",onClick:"install"===s?function(){g("installing"),wp.updates.installTheme({slug:"neve",success:function(){c(P(P({},a),{},{action:"activate"})),C()},error:function(e){c(P(P({},a),{},{action:"activate"})),k(e.errorMessage||Object(_.__)("Could not install theme.","templates-patterns-collection"))}})}:C},h&&("installing"===h?Object(_.__)("Installing"):Object(_.__)("Activating")),!h&&("install"===s?Object(_.__)("Install and Activate","templates-patterns-collection"):Object(_.__)("Activate","templates-patterns-collection"))),Object(r.createElement)(E.Button,{style:{marginLeft:30},isSecondary:!0,disabled:h,onClick:S},Object(_.__)("Close","templates-patterns-collection")))))})),L=tiobDash.onboarding,A=function(e){return N(L.root+"/install_plugins",e)},B=function(){var e=C()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},t.forEach((function(e){"elementor"===e.template_type?n.elementor=!0:"beaver"===e.template_type&&(n["beaver-builder-lite-version"]=!0)})),!(Object.keys(n).length>0)){e.next=11;break}return e.prev=3,e.next=6,A(n);case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",error);case 11:return e.abrupt("return",N(L.root+"/import_single_templates",t));case 12:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t){return e.apply(this,arguments)}}(),R=function(e){var t=e.data,n=e.externalInstalled,a=t.external_plugins||null,c=O()(["well"]);return a&&!n?Object(r.createElement)("div",{className:c},Object(r.createElement)("span",null,Object(r.createElement)(E.Dashicon,{icon:"info"}),Object(_.__)("To import this demo you have to install the following plugins","templates-patterns-collection")),Object(r.createElement)("ul",null,a.map((function(e,t){return Object(r.createElement)("li",{key:t},Object(r.createElement)(E.Button,{isLink:!0,href:e.author_url},e.name))})))):""},F=function(e){var t=e.message,n=e.code;return Object(r.createElement)("div",{className:"well error"},t&&Object(r.createElement)("h3",null,Object(r.createElement)(E.Dashicon,{icon:"warning"}),Object(r.createElement)("span",null,t)),Object(r.createElement)("ul",null,Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.troubleshooting}}),Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.support}}),n&&Object(r.createElement)("li",null,Object(_.__)("Error code","templates-patterns-collection"),":"," ",Object(r.createElement)("code",null,n)),Object(r.createElement)("li",null,Object(_.__)("Error log","templates-patterns-collection"),":"," ",Object(r.createElement)(E.Button,{isLink:!0,href:tiobDash.onboarding.logUrl},tiobDash.onboarding.logUrl,Object(r.createElement)(E.Dashicon,{icon:"external"})))))},z=function(e){var t=e.data,n=function(e){return console.log(e)},a=Object(r.useState)(!1),c=y()(a,2),o=c[0],i=c[1],s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=Object(r.useState)(!1),d=y()(p,2),b=d[0],f=d[1],h=Object(r.useState)(null),g=y()(h,2),O=g[0],v=g[1],j=Object(r.useState)(null),w=y()(j,2),S=w[0],k=w[1];if(o)return null;var C=function(){"done"===b&&i(!0),m(!1),v(null),f(!1)};return Object(r.createElement)("div",{className:"ob-migration"},u&&Object(r.createElement)(E.Modal,{className:"ob-import-modal migration",title:Object(_.__)("Migrate","templates-patterns-collection")+" "+t.theme_name,onRequestClose:C,shouldCloseOnClickOutside:!b,isDismissible:!b},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},O&&Object(r.createElement)(F,{message:O.message||null,code:O.code||null}),!1===b&&!O&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(R,{data:t}),t.mandatory_plugins&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("h3",null,Object(_.__)("The following plugins will be installed","templates-patterns-collection"),":"),Object(r.createElement)("ul",null,Object.keys(t.mandatory_plugins).map((function(e,n){return Object(r.createElement)("li",{key:n},"-"," ",t.mandatory_plugins[e])}))))),"done"===b&&Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),!0===b&&Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}),Object(r.createElement)("h3",null,Object(_.__)("Migrating","templates-patterns-collection"),"..."))),(!b||"done"===b)&&Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isSecondary:"done"!==b,isLink:"done"===b,className:"done"===b?"close":null,onClick:C},"done"===b?Object(_.__)("Close","templates-patterns-collection"):Object(_.__)("Cancel","templates-patterns-collection")),O||"done"===b?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{style:{marginLeft:20},isSecondary:!0,href:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(S,"&action=elementor")},Object(_.__)("Edit Content","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection"))):Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){var e;e=Object.keys(t.mandatory_plugins).reduce((function(e,t){return e[t]=!0,e}),{}),A(e).then((function(e){if(f(!0),!e.success)return v({code:e.data||null,message:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection")}),f(!1),!1;var n=t.template,r=t.template_name;N(tiobDash.onboarding.root+"/migrate_frontpage",{template:n,template_name:r}).then((function(e){if(!e.success)return v({code:e.data||null,message:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection")}),f(!1),!1;k(e.data),f("done")}))}))}},Object(_.__)("Start Migration","templates-patterns-collection"))))),Object(r.createElement)("h2",null,t.heading),Object(r.createElement)("p",null,t.description),Object(r.createElement)("div",{className:"card starter-site-card",style:{maxWidth:330}},Object(r.createElement)("div",{className:"top"},t.screenshot&&Object(r.createElement)("div",{className:"image"},Object(r.createElement)("img",{src:t.screenshot,alt:t.theme_name}))),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},t.theme_name))),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return m(!0),!1}},Object(_.__)("Migrate","templates-patterns-collection")+" "+t.theme_name),Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(){N(tiobDash.onboarding.root+"/dismiss_migration",{theme_mod:t.theme_mod}).then((function(e){if(!e.success)return n(Object(_.__)("Something went wrong. Please reload the page and try again.","templates-patterns-collection")),!1;n(Object(_.__)("Dismissed","templates-patterns-collection")),i(!0)}))}},Object(_.__)("Dismiss","templates-patterns-collection"))))},U=n(12),V=n.n(U),$=n(15),H=n.n($),G=n(5),W=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),q=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Q=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Y=n(14),J=n.n(Y),K=n(11),Z=new Uint8Array(16);function X(){if(!D&&!(D="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return D(Z)}for(var ee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,te=function(e){return"string"==typeof e&&ee.test(e)},ne=[],re=0;re<256;++re)ne.push((re+256).toString(16).substr(1));var ae=function(e,t,n){var r=(e=e||{}).random||(e.rng||X)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(ne[e[t+0]]+ne[e[t+1]]+ne[e[t+2]]+ne[e[t+3]]+"-"+ne[e[t+4]]+ne[e[t+5]]+"-"+ne[e[t+6]]+ne[e[t+7]]+"-"+ne[e[t+8]]+ne[e[t+9]]+"-"+ne[e[t+10]]+ne[e[t+11]]+ne[e[t+12]]+ne[e[t+13]]+ne[e[t+14]]+ne[e[t+15]]).toLowerCase();if(!te(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie=function(){var e=C()(S.a.mark((function e(){var t,n,r,a,c,o,i=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]&&i[0],n=i.length>1&&void 0!==i[1]?i[1]:{},r=Object(K.stringifyUrl)({url:tiobDash.endpoint+(t?"page-templates":"templates"),query:oe(oe({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),n)}),e.prev=3,e.next=6,J()({url:r,method:"GET",parse:!1});case 6:if(!(a=e.sent).ok){e.next=15;break}return e.next=10,a.json();case 10:if(!(c=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:c.message});case 13:return o=a.headers.get("x-wp-totalpages"),e.abrupt("return",{success:!0,total:o,templates:c});case 15:e.next=21;break;case 17:if(e.prev=17,e.t0=e.catch(3),!e.t0.message){e.next=21;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 21:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(){return e.apply(this,arguments)}}(),se=function(){var e=C()(S.a.mark((function e(t,n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(K.stringifyUrl)({url:tiobDash.endpoint+"templates/"+t,query:oe(oe({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),{},{template_id:t,template_name:n})}),e.prev=1,e.next=4,J()({url:r,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ae()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}(),le=function(){var e=C()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(K.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t),query:oe({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},tiobDash.params)}),e.prev=1,e.next=4,J()({url:n,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ae()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),ue=function(){var e=C()(S.a.mark((function e(t){var n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(K.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/bulk-import"),query:oe({templates:t,cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),e.prev=1,e.next=4,J()({url:n,method:"GET",parse:!1});case 4:if(!(r=e.sent).ok){e.next=14;break}if(!r.message){e.next=8;break}return e.abrupt("return",{success:!1,message:r.message});case 8:return e.next=10,r.json();case 10:if(!(a=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:a.message});case 13:return e.abrupt("return",{success:!0,templates:a});case 14:e.next=20;break;case 16:if(e.prev=16,e.t0=e.catch(1),!e.t0.message){e.next=20;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 20:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=C()(S.a.mark((function e(t){var n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(K.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t,"/import"),query:oe({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),r={},e.prev=2,e.next=5,J()({url:n,method:"GET",parse:!1});case 5:if(!(a=e.sent).ok){e.next=12;break}return e.next=9,a.json();case 9:if(!(r=e.sent).message){e.next=12;break}return e.abrupt("return",{success:!1,message:r.message});case 12:e.next=18;break;case 14:if(e.prev=14,e.t0=e.catch(2),!e.t0.message){e.next=18;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 18:return e.abrupt("return",{success:!0,templates:[r]});case 19:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(t){return e.apply(this,arguments)}}(),pe=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(G.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"})),de=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),be=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(G.Path,{d:"M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z"})),fe=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),he=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=function(e){var t=e.sortingOrder,n=e.item,a=e.loadTemplates,c=e.userTemplate,o=e.grid,i=e.onPreview,s=e.onImport,l=e.upsell,u=void 0!==l&&l,m=Object(r.useState)(!1),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(n.template_name),w=y()(j,2),k=w[0],N=w[1],T=function(){var e=C()(S.a.mark((function e(t){var r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),r=n.template_id,a=n.template_name,b("updating"),e.next=5,se(r,k||a).then((function(e){e.success&&(v(!g),b(!1))}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=C()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm(Object(_.__)("Are you sure you want to delete this template?"))){e.next=2;break}return e.abrupt("return",!1);case 2:b("deleteing"),le(n.template_id).then((function(e){e.success&&(a(Oe({page:0},t)),b(!1))}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){i(n.link)},P=O()("actions",{"no-controls":!c});if(o){var D={backgroundImage:"url(".concat(n.template_thumbnail,")")};return Object(r.createElement)("div",{key:n.template_id,className:"table-grid"},Object(r.createElement)("div",{style:D,className:O()("grid-preview",{"is-loading":g||!1!==d})},Object(r.createElement)("div",{className:"preview-actions"},!c&&n.link&&Object(r.createElement)(E.Button,{isSecondary:!0,disabled:!1!==d,onClick:M},Object(_.__)("Preview")),!u&&Object(r.createElement)(E.Button,{isPrimary:!0,isBusy:"importing"===d,disabled:!1!==d,onClick:s},Object(_.__)("Import")),c&&Object(r.createElement)("div",{className:"preview-controls"},!n.link&&Object(r.createElement)(E.Button,{label:Object(_.__)("Edit"),icon:"updating"===d?pe:de,disabled:g||!1!==d,className:O()({"is-loading":"updating"===d}),onClick:function(){return v(!g)}}),Object(r.createElement)(E.Button,{label:Object(_.__)("Delete"),icon:"deleteing"===d?pe:be,disabled:!1!==d,className:O()({"is-loading":"deleteing"===d}),onClick:x})))),Object(r.createElement)("div",{className:"card-footer"},g?Object(r.createElement)("form",{onSubmit:T},Object(r.createElement)(E.TextControl,{value:k,onChange:N}),Object(r.createElement)(E.Button,{type:"submit",label:Object(_.__)("Update"),icon:"updating"===d?pe:fe,disabled:!1!==d,className:O()({"is-loading":"updating"===d})})):Object(r.createElement)("p",null,k)))}return Object(r.createElement)("div",{key:n.template_id,className:"table-row"},Object(r.createElement)("div",{className:"title"},Object(r.createElement)(E.Icon,{icon:he}),g?Object(r.createElement)(E.TextControl,{label:Object(_.__)("Template Name"),hideLabelFromVision:!0,value:k,onChange:N}):k),c&&Object(r.createElement)("div",{className:"controls"},n.link?Object(r.createElement)(E.Tooltip,{text:Object(_.__)("This template is synced to a page.")},Object(r.createElement)(E.Button,{label:Object(_.__)("Edit"),icon:de,disabled:!0},Object(_.__)("Edit"))):Object(r.createElement)(E.Button,{label:g?Object(_.__)("Update"):Object(_.__)("Edit"),icon:g?"updating"===d?pe:fe:de,disabled:!1!==d,className:O()({"is-loading":"updating"===d}),onClick:function(){return g?T:v(!g)}},g?Object(_.__)("Update"):Object(_.__)("Edit")),Object(r.createElement)(E.Button,{label:Object(_.__)("Delete"),icon:"deleteing"===d?pe:be,disabled:!1!==d,className:O()({"is-loading":"deleteing"===d}),onClick:x},"deleting"===d?Object(_.__)("Deleting")+"...":Object(_.__)("Delete"))),Object(r.createElement)("div",{className:P},!c&&n.link&&Object(r.createElement)(E.Button,{isSecondary:!0,disabled:!1!==d,onClick:M},Object(_.__)("Preview")),Object(r.createElement)(E.Button,{isPrimary:!0,isBusy:"importing"===d,onClick:s,disabled:!1!==d},Object(_.__)("Import"))))},je=function(e){var t=e.isGrid;return Object(r.createElement)("div",{className:"table"},[1,2,3,4,5,6,7,8].map((function(e){return t?Object(r.createElement)("div",{key:e,className:"table-grid"},Object(r.createElement)("div",{className:"grid-preview image is-loading"}),Object(r.createElement)("div",{className:"card-footer"},Object(r.createElement)("p",{className:"title loading",style:{height:14,backgroundColor:"#f3f3f3"}}))):Object(r.createElement)("div",{key:e,className:"table-row"},Object(r.createElement)("p",{className:"title loading",style:{width:"100%",height:14,background:"linear-gradient(to right, #f3f3f3, #ffffff)"}}))})))},ye=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"})),Ee=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),_e=Object(r.createElement)(G.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),we=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"})),Se=n(18);function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne,Te={date:Object(_.__)("Date"),template_name:Object(_.__)("Name"),modified:Object(_.__)("Last Modified")},xe=function(e){var t=e.isGrid,n=e.setGrid,a=e.isSearch,c=e.searchQuery,o=e.setSearchQuery,i=e.onSearch,s=e.sortingOrder,l=e.setSortingOrder,u=e.changeOrder;return Object(r.createElement)("div",{className:"filters"},Object(r.createElement)("div",{className:"header-form"},Object(r.createElement)("div",{className:"display-sorting"},Object(r.createElement)("div",{className:"sorting-label"},Object(_.__)("Sort by")),Object(r.createElement)("div",{className:"sorting-filter"},Object.keys(Te).map((function(e){return Object(r.createElement)(E.Button,{key:e,className:O()({"is-selected":e===s.orderby,"is-asc":"ASC"===s.order}),onClick:function(){var t={order:"DESC",orderby:e};e===s.orderby&&"DESC"===s.order&&(t.order="ASC"),l(Ce({},t)),u(Ce({},t))}},Te[e])})))),Object(r.createElement)("div",{className:"display-filters"},Object(r.createElement)("div",{className:"display-filters__search"},Object(r.createElement)("input",{placeholder:Object(_.__)("Search"),value:c,onChange:function(e){return o(e.target.value)},onKeyDown:function(e){e.keyCode===Se.ENTER&&i()}}),a?Object(r.createElement)(E.Button,{label:Object(_.__)("Clear search query"),icon:ye,onClick:function(){o(""),i("")}}):Object(r.createElement)(E.Button,{label:Object(_.__)("Search"),icon:Ee,onClick:function(){return i()}})),Object(r.createElement)(E.Button,{label:Object(_.__)("List View"),icon:_e,onClick:function(){return n(!1)},isPressed:!t}),Object(r.createElement)(E.Button,{label:Object(_.__)("Grid View"),icon:we,onClick:function(){return n(!0)},isPressed:t}))))},Me=function(e){var t=e.title,n=e.leftButtons,a=e.rightButtons,c=e.heading,o=e.previewUrl,i=Object(K.stringifyUrl)({url:o,query:{tpcpreview:"yes"}}),s=t||Object(_.__)("Preview");return Object(r.createElement)("div",{className:"ob-preview single-templates"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{title:s,src:i,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},n&&Object(r.createElement)("div",{className:"navigator"},n),c&&Object(r.createElement)("h2",{className:"heading"},c),a&&Object(r.createElement)("div",{className:"actions"},a)))},Pe={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},De={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Ie(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Le(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Ae(e){return function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Ie(e)}function Be(e){var t,n="&"+e+";";return(Ne=Ne||document.createElement("i")).innerHTML=n,(59!==(t=Ne.textContent).charCodeAt(t.length-1)||"semi"===e)&&t!==n&&t}var Re={}.hasOwnProperty,Fe=String.fromCharCode,ze=[void 0,"Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Ue(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getThemeAction,r=t.getCurrentSite;return{themeStatus:n().action||!1,siteData:r()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setTemplateModal,r=t.setImportModalStatus,a=t.setInstallModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setInstallModal:function(e){return a(e)}}})))((function(e){var t=e.templatesData,n=e.cancel,a=e.siteData,c=e.themeStatus,o=e.setInstallModal,i=e.setModal,s=e.isUserTemplate,l=void 0!==s&&s,u=e.generalTemplates,m=void 0!==u&&u,p=Object(r.useState)(!0),d=y()(p,2),b=d[0],f=d[1],h=Object(r.useState)([]),g=y()(h,2),v=g[0],j=g[1],w=Object(r.useState)(!1),S=y()(w,2),k=S[0],C=S[1],N=Object(r.useState)([]),T=y()(N,2),x=T[0],M=T[1],P=Object(r.useState)(!1),D=y()(P,2),I=D[0],L=D[1],A=1===t.length;Object(r.useEffect)((function(){l&&A?me(t[0].template_id).then((function(e){e.success||(e.message?L(e.message):L(!0),f(!1)),j(e.templates),f(!1)})):ue(t.map((function(e){return e.template_id}))).then((function(e){if(!e.success)return e.message?L(e.message):L(!0),f(!1),!1;j(e.templates),f(!1)}))}),[t]);var R=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",{className:"is-loading",style:{height:30,marginBottom:30,width:"70%"}}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading",style:{width:"40%"}}))),Object(r.createElement)("div",{className:"modal-footer",style:{marginTop:50}},Object(r.createElement)("span",{className:"is-loading link"}),Object(r.createElement)("span",{className:"is-loading button",style:{width:"150px",marginLeft:"auto"}})))},F=function(e){if(e.preventDefault(),c)return o(!0),!1;i(!0)},z=function(){C(!0);var e=t.map((function(e,t){return $e($e({},e),v[t])}));try{B(e).then((function(e){if(!e.success)return console.log(e.message),!1;M(e.pages),C("done")}))}catch(e){console.log(I)}},U=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.__)("An error occurred!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},!0===I?Object(_.__)("Please refresh the page and try again."):I))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(){L(!1),n()}},Object(_.__)("Close"))))};return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:b}]),onRequestClose:n,shouldCloseOnClickOutside:!(k&&"done"!==k||b),isDismissible:!(k&&"done"!==k||b)},"done"===k?Object(r.createElement)((function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.__)("Import done!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},A?Object(_.__)("Template was successfully imported!","templates-patterns-collection"):Object(_.__)("Templates were successfully imported!","templates-patterns-collection"))),x&&Object(r.createElement)("ul",{className:"modal-toggles"},x.map((function(e,t){return Object(r.createElement)("li",{className:"option-row",key:t},Object(r.createElement)(E.Icon,{icon:he,className:"active"}),Object(r.createElement)("span",null,function(e,t={}){var n,r,a,c,o,i,s,l,u,m,p,d,b,f,h,g,O,v,j,y,E,_,w,S,k="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,C=0,N=-1,T="",x=[];t.position&&("start"in t.position||"indent"in t.position?(r=t.position.indent,n=t.position.start):n=t.position),a=n&&n.line||1,c=n&&n.column||1,y=M(),C--;for(;++C<=e.length;)if(10===u&&(c=r&&r[N]||1),38===(u=e.charCodeAt(C))){if(9===(d=e.charCodeAt(C+1))||10===d||12===d||32===d||38===d||60===d||Number.isNaN(d)||k&&d===k){T+=Fe(u),c++;continue}for(g=O=C+1,w=O,35===d?(w=++g,88===(d=e.charCodeAt(w))||120===d?(v="hexadecimal",w=++g):v="decimal"):v="named",o="",h="",l="",j="named"===v?Ae:"decimal"===v?Ie:Le,w--;++w<=e.length&&j(d=e.charCodeAt(w));)l+=Fe(d),"named"===v&&Re.call(Pe,l)&&(o=l,h=Pe[l]);(s=59===e.charCodeAt(w))&&(w++,(i="named"===v&&Be(l))&&(o=l,h=i)),_=1+w-O,(s||!1!==t.nonTerminated)&&(l?"named"===v?(s&&!h?P(5,1):(o!==l&&(_=1+(w=g+o.length)-g,s=!1),s||(b=o?1:3,t.attribute?61===(d=e.charCodeAt(w))?(P(b,_),h=null):Ae(d)?h=null:P(b,_):P(b,_))),m=h):(s||P(2,_),(S=p=Number.parseInt(l,"hexadecimal"===v?16:10))>=55296&&S<=57343||S>1114111?(P(7,_),m=Fe(65533)):p in De?(P(6,_),m=De[p]):(f="",Ue(p)&&P(6,_),p>65535&&(f+=Fe((p-=65536)>>>10|55296),p=56320|1023&p),m=f+Fe(p))):"named"!==v&&P(4,_)),m?(D(),y=M(),C=w-1,c+=w-O+1,x.push(m),(E=M()).offset++,t.reference&&t.reference.call(t.referenceContext,m,{start:y,end:E},e.slice(O-1,w)),y=E):(l=e.slice(O-1,w),T+=l,c+=l.length,C=w-1)}else 10===u&&(a++,N++,c=0),Number.isNaN(u)?D():(T+=Fe(u),c++);return x.join("");function M(){return{line:a,column:c,offset:C+(n&&n.offset||0)}}function P(e,n){var r;t.warning&&((r=M()).column+=n,r.offset+=n,t.warning.call(t.warningContext,ze[e],r,e))}function D(){T&&(x.push(T),t.text&&t.text.call(t.textContext,T,{start:y,end:M()}),T="")}}(e.title)),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(E.Button,{isTertiary:!0,href:e.url},Object(_.__)("Visit","templates-patterns-collection")),Object(r.createElement)(E.Button,{isTertiary:!0,href:e.edit},Object(_.__)("Edit","templates-patterns-collection"))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:n},Object(_.__)("Close"))))}),null):Object(r.createElement)((function(){return b?Object(r.createElement)(R,null):I?Object(r.createElement)(U,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(A?
3
  /* translators: name of starter site */
4
  Object(_.__)("Import the %s template","templates-patterns-collection"):
5
  /* translators: name of template */
6
- Object(_.__)("Import all templates from %s","templates-patterns-collection"),A?t[0].template_name:a.title)),Object(r.createElement)("p",{className:"description"},(Object(r.createElement)("strong",null,Object(_.__)("does not")),A?Object(_.sprintf)(
7
  /* translators: %s the name of the template */
8
- Object(_.__)("The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"),t[0].template_name):Object(_.__)("All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"))))),Object(r.createElement)("div",{className:"modal-footer"},!m&&Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,disabled:k,onClick:F},Object(_.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",disabled:k,onClick:z},k?Object(_.__)("Importing")+"...":A?Object(_.__)("Import"):Object(_.__)("Import All Pages"))))}),null))})),Ge=function(){return Object(r.createElement)(G.SVG,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ob-logo"},Object(r.createElement)(G.Path,{d:"M95.0264 100H4.97356C2.22797 100 0 97.772 0 95.0264V4.97356C0 2.22797 2.22797 0 4.97356 0H95.0264C97.772 0 100 2.22797 100 4.97356V95.0264C100 97.772 97.772 100 95.0264 100Z",fill:"#0366D6"}),Object(r.createElement)(G.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(G.Path,{d:"M42.2416 58.9291L42.2528 71.183L53.2352 82.1653L53.1902 47.9806L18.9941 47.9355L29.9765 58.9066L42.2416 58.9291Z",fill:"white"}))};function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qe=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setInstallModalStatus,r=t.setTemplateModal,a=t.setPreviewStatus;return{setPreview:function(e){return a(e)},setInstallModal:function(e){return n(e)},setTemplateModal:r}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentEditor,c=t.getCurrentTab,o=t.getUserStatus;return{templateModal:n(),themeStatus:r().action||!1,editor:a(),currentTab:c(),userStatus:o()}})))((function(e){var t=e.isGeneral,n=e.setPreview,a=e.setInstallModal,o=e.setTemplateModal,i=e.templateModal,s=e.themeStatus,l=e.currentTab,u=e.userStatus,m=Object(r.useState)({gutenberg:[],elementor:[]}),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)("gutenberg"),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)([]),w=y()(j,2),k=w[0],N=w[1],T=Object(r.useState)(t),x=y()(T,2),M=x[0],P=x[1],D=Object(r.useState)(""),I=y()(D,2),L=I[0],A=I[1],B=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),R=y()(B,2),F=R[0],z=R[1],U=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),$=y()(U,2),G=$[0],Y=$[1],J=Object(r.useState)(!1),K=y()(J,2),Z=K[0],X=K[1],ee=Object(r.useState)(!1),te=y()(ee,2),ne=te[0],re=te[1],ae=Object(r.useState)(!1),ce=y()(ae,2),oe=ce[0],se=ce[1],le=Object(r.useState)(""),ue=y()(le,2),me=ue[0],pe=ue[1],de=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),be=y()(de,2),fe=be[0],he=be[1];Object(r.useEffect)((function(){X(!0),A(""),z({gutenberg:0,elementor:0,beaver:0}),Y({gutenberg:0,elementor:0,beaver:0}),Oe()}),[t,g]);var ge={gutenberg:{label:Object(_.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(_.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(_.__)("Beaver"),icon:"beaver.jpg"}},Oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=qe({page:F[g],per_page:12,type:g},e);t&&(n.template_site_slug="general",n.premade=!0),L&&(n.search=L),ie(t,n).then((function(e){b(qe(qe({},d),{},c()({},g,e.templates))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}))},ye=function(){var e=C()(S.a.mark((function e(){var n,r,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:F[g]+1,se(!0),z(qe(qe({},F),{},c()({},g,n))),r={page:n,per_page:12,type:g},t&&(r.template_site_slug="general",r.premade=!0),L&&(r.search=L),e.next=8,ie(t,r).then((function(e){b(qe(qe({},d),{},c()({},g,[].concat(V()(d[g]),V()(e.templates))))),Y(qe(qe({},G),{},c()({},g,e.total)))}));case 8:se(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ee=function(e){pe(e),n(!0)},_e=function(e){if(s)return a(!0),!1;N([e]),o(!0)},we=d[g]&&d[g].findIndex((function(e){return e.link===me})),Se=d[g]&&d[g].find((function(e){return me===e.link})),ke=O()("cloud-items",{"is-grid":M||!u&&!t,"is-dummy":!u&&!t}),Ce=function(){return t?fe.templates:fe.library},Ne=function(){var e=C()(S.a.mark((function e(n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:X(!0),r=qe({search:L,type:g},n),t&&(r.template_site_slug="general",r.premade=!0),ie(t,r).then((function(e){b(qe(qe({},d),{},c()({},g,V()(e.templates)))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return u||t?Object(r.createElement)("div",{className:ke},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(ge).map((function(e){return Object(r.createElement)("a",{key:e,href:"#",onClick:function(){v(e),re(!1)},className:O()("tab",{active:g===e})},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:window.tiobDash.assets+"img/"+ge[e].icon,alt:ge[e].label})),Object(r.createElement)("span",{className:"editor"},ge[e].label))}))),Object(r.createElement)(xe,{currentTab:l,isGrid:M,setGrid:P,isSearch:ne,searchQuery:L,setSearchQuery:A,onSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;X(!0),re(!!e);var n=qe({search:e,type:g},Ce());t&&(n.template_site_slug="general",n.premade=!0),ie(t,n).then((function(e){b(qe(qe({},d),{},c()({},g,V()(e.templates)))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}))},sortingOrder:Ce(),setSortingOrder:function(e){return he(qe(qe({},fe),{},t?{templates:e}:{library:e}))},changeOrder:Ne}),Z&&Object(r.createElement)(je,{isGrid:M}),!Z&&(d[g]&&d[g].length>0?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"table"},d[g].map((function(e){return Object(r.createElement)(ve,{sortingOrder:Ce(),onPreview:Ee,userTemplate:!t,key:e.template_id,item:e,loadTemplates:Oe,onImport:function(){return _e(e)},grid:M})}))),Object(r.createElement)(H.a,{onChange:function(e){if(!e)return!1;Number(G[g])>F[g]&&ye()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),oe&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(E.Spinner,null))):Object(r.createElement)("div",{className:"empty-information"},Object(r.createElement)("img",{src:window.tiobDash.assets+"/img/layout.jpg",alt:Object(_.__)("No Templates Found")}),Object(r.createElement)("h3",null,Object(_.__)("There are no templates yet")),Object(r.createElement)("p",null,Object(_.__)("You can add a page or post to the cloud by accessing it with the WordPress or Elementor/Beaver editor. Learn more about this in our docs.")),Object(r.createElement)(E.Button,{variant:"secondary",isSecondary:!0,href:"https://docs.themeisle.com/article/1354-neve-template-cloud-library?utm_medium=nevedashboard&utm_source=templatecloud&utm_campaign=neve&utm_content=learnmore",target:"_blank"},Object(_.__)("Learn more")))),me&&Object(r.createElement)(Me,{previewUrl:me,rightButtons:Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return _e(Se)}},Object(_.__)("Import Template")),heading:Se.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:W,onClick:function(){pe(""),n(!1)}}),d[g].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?q:Q,onClick:function(){var e=we-1;0===we&&(e=d[g].length-1),pe(d[g][e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:q,onClick:function(){var e=we+1;we===d[g].length-1&&(e=0),pe(d[g][e].link)}})))})),i&&k&&!Z&&k.length>0&&Object(r.createElement)(He,{generalTemplates:!0,isUserTemplate:!t,templatesData:k})):Object(r.createElement)("div",{className:ke},Object(r.createElement)("div",{className:"table"},V()(Array(12)).map((function(e,t){return Object(r.createElement)(ve,{sortingOrder:Ce(),onPreview:Ee,userTemplate:!1,key:t,item:{},grid:!0})}))),Object(r.createElement)("div",{className:"upsell-modal-overlay"},Object(r.createElement)("div",{className:"upsell-modal"},Object(r.createElement)("div",{className:"upsell-modal-content"},Object(r.createElement)("div",{className:"info"},Object(r.createElement)("h3",null,Object(_.__)("Templates Cloud is a PRO Feature")),Object(r.createElement)("p",null,Object(_.__)("Unlock the Templates Cloud features and save your pages or posts in the cloud.")),Object(r.createElement)(E.Button,{variant:"primary",isPrimary:!0,href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=upgradetoprobtn and https://themeisle.com/themes/neve/neve-upgrade-new/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=changeplanbtn",target:"_blank"},Object(_.__)("Upgrade to PRO"))),Object(r.createElement)("div",{className:"icon"},Object(r.createElement)(E.Icon,{icon:Ge}))))))})),Ye=[Object(_.__)("Business","templates-patterns-collection"),Object(_.__)("Ecommerce","templates-patterns-collection"),Object(_.__)("Fashion","templates-patterns-collection"),Object(_.__)("Blogging","templates-patterns-collection"),Object(_.__)("Photography","templates-patterns-collection")],Je={all:Object(_.__)("All Categories"),free:Object(_.__)("Free"),business:Object(_.__)("Business"),portfolio:Object(_.__)("Portfolio"),woocommerce:Object(_.__)("WooCommerce"),blog:Object(_.__)("Blog"),personal:Object(_.__)("Personal"),other:Object(_.__)("Other")},Ke={gutenberg:{icon:"gutenberg.jpg",niceName:"Gutenberg"},elementor:{icon:"elementor.jpg",niceName:"Elementor"}},Ze=(Object(r.createElement)(r.Fragment,null,"Beaver ",Object(r.createElement)("span",{className:"long-name"},"Builder")),Object(r.createElement)(r.Fragment,null,"Thrive ",Object(r.createElement)("span",{className:"long-name"},"Architect")),function(e){var t=e.currentStep,n=e.progress,a=e.willDo,c={cleanup:{label:Object(_.__)("Cleanup previous Import","templates-patterns-collection"),status:n.cleanup,willDo:a.cleanup},plugins:{label:Object(_.__)("Installing Plugins","templates-patterns-collection"),status:n.plugins,willDo:!0},content:{label:Object(_.__)("Importing Content","templates-patterns-collection"),status:n.content,willDo:a.content},customizer:{label:Object(_.__)("Importing Customizer Settings","templates-patterns-collection"),status:n.customizer,willDo:a.customizer},widgets:{label:Object(_.__)("Importing Widgets","templates-patterns-collection"),status:n.widgets,willDo:a.widgets}};return Object(r.createElement)("ul",{className:"stepper"},Object.keys(c).map((function(e,n){var a=c[e],o=a.label,i=a.status;if(!a.willDo)return null;var s=O()(["icon",{loading:t===e,warning:t===e,success:"done"===i,error:"error"===i,skip:"skip"===i}]),l="clock";return t===e&&(l="update"),"done"===i&&(l="yes"),"error"===i&&(l="no-alt"),Object(r.createElement)("li",{key:n},Object(r.createElement)("span",{className:s},Object(r.createElement)(E.Dashicon,{icon:l,className:t===e?"loading":""})),Object(r.createElement)("span",null,o))})))}),Xe=n(19),et=n.n(Xe),tt=function(e){return et()(e),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("span",{className:"title is-loading",style:{height:35,marginBottom:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20,marginBottom:20}})),Object(r.createElement)("div",{className:"well is-loading"},Object(r.createElement)("span",{className:"title is-loading",style:{height:20}}),Object(r.createElement)("ol",null,Object(r.createElement)("li",null),Object(r.createElement)("li",null),Object(r.createElement)("li",null))),Object(r.createElement)("div",{className:"modal-toggles components-panel"},[1,2].map((function(e){return Object(r.createElement)("div",{key:e,className:"components-panel__body options general is-opened"},Object(r.createElement)("span",{className:"title is-loading"}),Object(r.createElement)("ul",null,[1,2,3].map((function(e){return Object(r.createElement)("li",{className:"option-row",key:e},Object(r.createElement)("div",{className:"mock-icon is-loading"}),Object(r.createElement)("span",{className:"is-loading"}),Object(r.createElement)("div",{className:"toggle is-loading"}))}))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)("span",{className:"link is-loading"}),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import is-loading"})))},nt=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),rt=function(e){var t=e.children,n=e.className,a=O()([n,"tiob-tooltip-wrap"]);return Object(r.createElement)("div",{className:a},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault()},className:"tiob-tooltip-toggle",icon:nt,isLink:!0,isSmall:!0}),Object(r.createElement)("div",{className:"tiob-tooltip-content"},t))};function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentSite;return{editor:n(),siteData:r()}})),Object(h.withDispatch)((function(e,t){var n=t.siteData,r=e("neve-onboarding"),a=r.setTemplateModal,c=r.setSingleTemplateImport,o=r.setImportModalStatus;return{setModal:function(e){return o(e)},runTemplateImport:function(){c(n.slug),a(!0),o(!1)}}})))((function(e){var t=e.setModal,n=e.editor,a=e.siteData,o=e.runTemplateImport,i=Object(r.useState)({content:!0,customizer:!0,widgets:!0,cleanup:!1}),s=y()(i,2),l=s[0],u=s[1],m=Object(r.useState)(!1),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(!1),w=y()(j,2),S=w[0],k=w[1],C=Object(r.useState)(!1),x=y()(C,2),M=x[0],P=x[1],D=Object(r.useState)(!1),I=y()(D,2),B=I[0],z=I[1],U=Object(r.useState)(null),V=y()(U,2),$=V[0],H=V[1],G=Object(r.useState)(null),W=y()(G,2),q=W[0],Q=W[1],Y=Object(r.useState)(!1),J=y()(Y,2),K=J[0],Z=J[1],X=Object(r.useState)(null),ee=y()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(null),ae=y()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(null),se=y()(ie,2),le=se[0],ue=se[1],me=Object(r.useState)(!0),pe=y()(me,2),de=pe[0],be=pe[1],fe=Object(r.useState)(!0),he=y()(fe,2),ge=he[0],Oe=he[1],ve=Object(r.useState)(!0),je=y()(ve,2),ye=je[0],Ee=je[1],_e=tiobDash,we=_e.license,Se=_e.cleanupAllowed,ke=Object(r.useState)(Se),Ce=y()(ke,2),Ne=Ce[0],Te=Ce[1];function xe(){if(!te)return console.log("[S] Plugins."),Me(),!1;Q("plugins"),console.log("[P] Plugins."),A(te).then((function(e){if(!e.success)return Le(e,"plugins"),!1;console.log("[D] Plugins."),v("done"),Me()})).catch((function(e){return Le(e,"plugins")}))}function Me(){if(!l.content)return console.log("[S] Content."),Pe(),!1;var e;Q("content"),console.log("[P] Content."),(e={contentFile:le.content_file,source:"remote",frontPage:le.front_page,shopPages:le.shop_pages,demoSlug:le.slug,editor:n},N(L.root+"/import_content",e)).then((function(e){if(!e.success)return Le(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&H(e.frontpage_id),k("done"),Pe()})).catch((function(e){return Le(e,"content")}))}function Pe(){if(!l.customizer)return console.log("[S] Customizer."),De(),!1;var e;Q("customizer"),console.log("[P] Customizer."),(e={source_url:le.url,theme_mods:le.theme_mods,wp_options:le.wp_options},N(L.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return Le(e,"customizer"),!1;console.log("[D] Customizer."),P("done"),De()})).catch((function(e){return Le(e,"customizer")}))}function De(){if(!l.widgets)return console.log("[S] Widgets."),Ie(),!1;var e;Q("widgets"),console.log("[P] Widgets."),(e=le.widgets,N(L.root+"/import_widgets",e)).then((function(e){if(!e.success)return Le(e,"widgets"),!1;console.log("[D] Widgets."),z("done"),Ie()})).catch((function(e){return Le(e,"widgets")}))}function Ie(){Q("done"),Te("yes"),tiobDash.cleanupAllowed="yes",Z(!1)}function Le(e,t){Z(!1),Q(null),"cleanup"===t&&v("skip"),"plugins"===t&&k("skip"),["content","plugins"].includes(t)&&P("skip"),["content","plugins","customizer"].includes(t)&&z("skip");var n={cleanup:Object(_.__)("Something went wrong while cleaning the previous import.","templates-patterns-collection"),plugins:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection"),content:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection"),customizer:Object(_.__)("Something went wrong while updating the customizer settings.","templates-patterns-collection"),widgets:Object(_.__)("Something went wrong while importing the widgets.","templates-patterns-collection")};switch(t){case"cleanup":b("error");break;case"plugins":v("error");break;case"content":k("error");break;case"customizer":P("error");break;case"widgets":z("error")}oe(e.data?{message:n[t],code:e.data}:{message:n[t]})}Object(r.useEffect)((function(){var e=a.remote_url||a.url,t=new URL("".concat(function(e){return e.replace(/\/$/,"")}(e)+"/","wp-json/ti-demo-data/data"));t.searchParams.append("license",we?we.key:"free"),T(t,!0,!1).then((function(e){e.ok||(oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_response"}),be(!1)),e.json().then((function(e){ue(ct(ct({},e),a));var t=ct({},e.mandatory_plugins||{}),n=ct({},e.recommended_plugins||{}),r=e.default_off_recommended_plugins||[];Object.keys(t).forEach((function(e){t[e]=!0})),Object.keys(n).forEach((function(e){n[e]=!r.includes(e)})),ne(ct(ct({},n),t)),be(!1)}))})).catch((function(){oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_catch"}),be(!1)}))}),[]);var Ae=function(){if(K)return!1;t(!1)},Be=!a.external_plugins||a.external_plugins.every((function(e){return!0===e.active})),Re=Object.keys(l).every((function(e){return!1===l[e]})),Fe={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=elementor"),brizy:"".concat(tiobDash.onboarding.homeUrl,"/?brizy-edit"),"beaver builder":"".concat(tiobDash.onboarding.homeUrl,"/?fl_builder"),"thrive architect":"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=architect&tve=true"),"divi builder":"".concat(tiobDash.onboarding.homeUrl,"/?et_fb=1&PageSpeed=off"),gutenberg:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=edit")}[n];return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:de}]),onRequestClose:Ae,shouldCloseOnClickOutside:!K&&!de,isDismissible:!K&&!de},de?Object(r.createElement)(tt,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},K||"done"===q||ce?Object(r.createElement)(r.Fragment,null,ce&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(F,{message:ce.message||null,code:ce.code||null}),Object(r.createElement)("hr",null)),null!==q&&Object(r.createElement)(Ze,{progress:{cleanup:d,plugins:g,content:S,customizer:M,widgets:B},currentStep:q,willDo:l}),"done"===q&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),Object(r.createElement)("hr",null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(
 
9
  /* translators: name of starter site */
10
- Object(_.__)("Import %s as a complete site","templates-patterns-collection"),le.title)),Object(r.createElement)("p",{className:"description"},Object(_.__)("Import the entire site including customizer options, pages, content and plugins.","templates-patterns-collection")))}),null),Object(r.createElement)((function(){return Object(r.createElement)(R,{data:le,externalInstalled:Be})}),null),Object(r.createElement)(E.Panel,{className:"modal-toggles"},Object(r.createElement)((function(){var e={content:{title:Object(_.__)("Content","templates-patterns-collection"),icon:"admin-post",tooltip:Object(_.__)("We recommend you backup your website content before attempting a full site import.","templates-patterns-collection")},customizer:{title:Object(_.__)("Customizer","templates-patterns-collection"),icon:"admin-customizer"},widgets:{title:Object(_.__)("Widgets","templates-patterns-collection"),icon:"admin-generic",tooltip:Object(_.__)("Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there.","templates-patterns-collection")}};return"yes"===Ne&&(e=ct({cleanup:{icon:"trash",title:Object(_.__)("Cleanup previous import","templates-patterns-collection"),tooltip:Object(_.__)("This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import","templates-patterns-collection")}},e)),Object(r.createElement)(E.PanelBody,{onToggle:function(){Ee(!ye)},opened:ye,className:"options general",title:Object(_.__)("Import settings","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:l[t]}),o=e[t],i=o.icon,s=o.title,m=o.tooltip;return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:i}),Object(r.createElement)("span",null,s),m&&Object(r.createElement)(rt,null,m),Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:l[t],onChange:function(){u(ct(ct({},l),{},c()({},t,!l[t])))}})))})))}),null),Object(r.createElement)((function(){if(de)return null;var e=ct(ct({},le.recommended_plugins||{}),le.mandatory_plugins||{});return Object(r.createElement)(E.PanelBody,{onToggle:function(){Oe(!ge)},opened:ge,className:"options plugins",title:Object(_.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:te[t]});return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:"admin-plugins"}),Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:e[t]}}),t in le.recommended_plugins&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:te[t],onChange:function(){ne(ct(ct({},te),{},c()({},t,!te[t])))}})))})))}),null)))),!K&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==q?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,onClick:o},Object(_.__)("I want to import just the templates","templates-patterns-collection")),!ce&&Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,disabled:Re||!Be,onClick:function(){Z(!0),function(){if(console.clear(),!l.cleanup)return console.log("[S] Cleanup."),xe(),!1;var e;Q("cleanup"),console.log("[P] Cleanup."),(e={},N(L.root+"/cleanup",e)).then((function(e){if(!e.success)return Le(e,"cleanup"),!1;console.log("[D] Cleanup."),b("done"),xe()})).catch((function(e){return Le(e,"cleanup")}))}()}},Object(_.__)("Import entire site","templates-patterns-collection"))):Object(r.createElement)("div",{className:"import-done-actions"},Object(r.createElement)(E.Button,{isLink:!0,className:"close",onClick:Ae},Object(_.__)("Back to Sites Library","templates-patterns-collection")),Object(r.createElement)(E.Button,{isSecondary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",href:Fe},Object(_.__)("Add your own content","templates-patterns-collection"))))))})),it=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setSingleTemplateImport,r=t.setImportModalStatus,a=t.setInstallModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setInstallModal:function(e){return a(e)},setTemplateModal:t.setTemplateModal}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentSite,c=t.getCurrentEditor;return{templateModal:n(),themeStatus:r().action||!1,site:a(),editor:c()}})))((function(e){var t=e.slug,n=e.cancel,a=e.setModal,c=e.setInstallModal,o=e.themeStatus,i=e.site,s=e.editor,l=e.setTemplateModal,u=e.templateModal,m=Object(r.useState)([]),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!0),h=y()(f,2),g=h[0],O=h[1],v=Object(r.useState)(""),j=y()(v,2),w=j[0],S=j[1],k=Object(r.useState)([]),C=y()(k,2),N=C[0],T=C[1],x=i.title,M=i.upsell,P=i.utmOutboundLink;Object(r.useEffect)((function(){D()}),[]);var D=function(){ie(!0,{per_page:100,template_site_slug:t,premade:!0,type:s}).then((function(e){b(e.templates||[]),O(!1)}))},I=function(e){S(e)},L=function(e){if(o)return c(!0),!1;T([e]),l(!0)},A=function(e){if(e.preventDefault(),o)return c(!0),!1;a(!0)},B=d.findIndex((function(e){return e.link===w})),R=d.find((function(e){return e.link===w}));return Object(r.createElement)("div",{className:"single-templates-wrapper"},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"breadcrumb"},Object(r.createElement)(E.Button,{isTertiary:!0,onClick:n},Object(r.createElement)(E.Icon,{icon:Q}),Object(_.__)("Back to Starter Sites"))),Object(r.createElement)("div",{className:"header"},Object(r.createElement)("div",{className:"text"},Object(r.createElement)("h1",null,x||"",M&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Icon,{icon:"lock"}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))),Object(r.createElement)("p",{className:"description"},Object(_.__)("You can import individual pages or bulk-import all of them."))),Object(r.createElement)("div",{className:"actions"},!M&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(e){if(e.preventDefault(),o)return c(!0),!1;T(d),l(!0)}},Object(_.__)("Import All Pages"))),M&&Object(r.createElement)(E.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade"))))),Object(r.createElement)((function(){return g?Object(r.createElement)(E.Spinner,null):d.length<1?Object(_.__)("No templates for this starter site."):Object(r.createElement)("div",{className:"cloud-items is-grid"},Object(r.createElement)("div",{className:"table"},d.map((function(e){return Object(r.createElement)(ve,{upsell:M,onPreview:I,userTemplate:!1,key:e.template_id,item:e,loadTemplates:D,onImport:function(){return L(e)},grid:!0})}))))}),null),w&&Object(r.createElement)(Me,{heading:R.template_name||null,previewUrl:w,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:W,onClick:function(){return S("")},label:Object(_.__)("Close","templates-patterns-collection")}),d.length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?q:Q,onClick:function(){var e=B-1;0===B&&(e=d.length-1),S(d[e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:q,onClick:function(){var e=B+1;B===d.length-1&&(e=0),S(d[e].link)}}))),rightButtons:Object(r.createElement)(r.Fragment,null,!M&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(){return L(R)}},Object(_.__)("Import Page"))),M&&Object(r.createElement)(E.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade")))}),u&&N&&!g&&N.length>0&&Object(r.createElement)(He,{templatesData:N}))})),st=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c={starterSites:Object(_.__)("Starter Sites","templates-patterns-collection"),pageTemplates:Object(_.__)("Page Templates","templates-patterns-collection"),library:Object(_.__)("My Library","templates-patterns-collection")},o=Object(r.useState)(!1),i=y()(o,2),s=i[0],l=i[1],u=function(){var e=function(e){var t=window.location.hash;return"string"!=typeof window.location.hash?null:(t=t.substring(1),Object.keys(e).includes(t)?t:null)}(c);if(null!==e){var n=document.getElementById("menu-appearance"),r=n.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]'),a=n.querySelector('a[href="themes.php?page=tiob-starter-sites"]');if(r&&a){var o=r.parentElement,i=a.parentElement;n.querySelector(".current").classList.remove("current"),o.classList.remove("current"),"library"===e?o.classList.add("current"):i.classList.add("current")}t(e)}};return Object(r.useEffect)((function(){u(),window.addEventListener("hashchange",u)}),[]),Object(r.createElement)("div",{className:"header-nav"},Object.keys(c).map((function(e){return Object(r.createElement)(E.Button,{href:"#"+e,key:e,isTertiary:!0,isPressed:e===n,onClick:function(n){var r;n.preventDefault(),t(e),r=e,window.location.hash=r}},c[e])})),"starterSites"!==n&&Object(r.createElement)(E.Button,{icon:pe,onClick:function(){l(!0),localStorage.setItem("tpcCacheBuster",ae());var e=n;t(null),setTimeout((function(){t(e),l(!1)}),100)},label:Object(_.__)("Re-sync Library"),className:O()("is-sync",{"is-loading":s}),disabled:a||s,"data-content":Object(_.__)("Sync")}))},lt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState;return{cancelOnboarding:function(){n(!1)},setCurrentTab:t.setCurrentTab,setFetching:t.setFetching}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getCurrentTab,a=t.getFetching;return{isOnboarding:n(),currentTab:r(),isFetching:a()}})))((function(e){var t=e.isOnboarding,n=e.cancelOnboarding,a=e.setCurrentTab,c=e.currentTab;return Object(r.createElement)("div",{className:"ob-head"},!t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"header-container"},Object(r.createElement)("h2",null,!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:Ge}),Object(r.createElement)("span",null,Object(_.__)("Templates Cloud","templates-patterns-collection"))),Object(r.createElement)(st,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(E.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),ut=n(20),mt=n.n(ut),pt=Object(v.compose)(Object(h.withSelect)((function(e){return{themeStatus:(0,e("neve-onboarding").getThemeAction)().action||!1}})),Object(h.withDispatch)((function(e,t){var n=t.data,r=n.slug,a=e("neve-onboarding"),c=a.setCurrentSite,o=a.setPreviewStatus,i=a.setImportModalStatus,s=a.setInstallModalStatus,l=a.setSingleTemplateImport;return{setSite:function(){return c(n)},setPreview:function(e){return o(e)},setModal:function(e){return i(e)},setInstallModal:function(e){return s(e)},setImportingPages:function(){return l(r)}}})))((function(e){var t=e.data,n=e.setSite,a=e.setPreview,c=e.setModal,o=e.themeStatus,i=e.setInstallModal,s=e.setImportingPages,l=t.upsell,u=t.screenshot,m=t.title,p=t.has_templates,d=t.isNew,b=Object(r.useState)(""),f=y()(b,2),h=f[0],g=f[1],v=O()("card starter-site-card",{"has-templates":p});return Object(r.createElement)("div",{onMouseEnter:function(){g("visible")},onMouseLeave:function(){g("")},className:v},d&&Object(r.createElement)("span",{className:"new-badge"},Object(_.__)("New","templates-patterns-collection").toUpperCase()),Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"actions "+h},Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(e){e.preventDefault(),n(),a(!0)}},Object(_.__)("Preview","templates-patterns-collection")),!l&&Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(e){if(e.preventDefault(),n(),o)return i(!0),!1;c(!0)}},Object(_.__)("Import","templates-patterns-collection")),!p&&l&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",target:"_blank",href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=unlockprobtn"},Object(_.__)("Unlock access with Business plan","templates-patterns-collection")),p&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",onClick:function(e){e.preventDefault(),n(),s()}},Object(_.__)("View Pages","templates-patterns-collection"))),u&&Object(r.createElement)("div",{className:"image",style:{backgroundImage:'url("'.concat(u,'")')}})),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},m),l&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Dashicon,{icon:"lock",size:15}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))))})),dt=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentSite,r=t.getThemeAction;return{siteData:n(),themeStatus:r().action||!1}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentSite,r=t.setPreviewStatus,a=t.setImportModalStatus,c=t.setInstallModalStatus;return{setSite:function(e){return n(e)},setPreview:function(e){return r(e)},setModal:function(e){return a(e)},setInstallModal:function(e){return c(e)}}})))((function(e){var t=e.next,n=e.prev,a=e.siteData,c=e.setSite,o=e.setPreview,i=e.setModal,s=e.themeStatus,l=e.setInstallModal;return Object(r.createElement)("div",{className:"ob-preview"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{src:a.url,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},Object(r.createElement)("div",{className:"navigator"},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),o(!1),c(null)},className:"close",label:Object(_.__)("Close","templates-patterns-collection"),icon:W}),n&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(n)},className:"prev",label:Object(_.__)("Previous","templates-patterns-collection"),icon:Object(_.isRTL)()?q:Q}),t&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(t)},className:"next",label:Object(_.__)("Next","templates-patterns-collection"),icon:Object(_.isRTL)()?Q:q})),Object(r.createElement)("div",{className:"actions"},a.upsell?Object(r.createElement)(E.Button,{className:"upgrade",isPrimary:!0,href:a.utmOutboundLink||tiobDash.upgradeURL},Object(_.__)("Upgrade and Import","templates-patterns-collection")):Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,onClick:function(e){if(e.preventDefault(),s)return l(!0),!1;i(!0)}},Object(_.__)("Import","templates-patterns-collection")))))})),bt=function(e){var t=e.editor,n=e.data,a=n.text,c=n.cta,o=n.url;return Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"notification"},Object(r.createElement)("p",null,a),o&&c&&Object(r.createElement)(E.Button,{target:"_blank",isSecondary:!0,href:o.replace("<builder_name>",t).replace(" ","")},c))}),null)},ft=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentCategory,r=t.getCurrentEditor,a=t.getSearchQuery;return{editor:r(),category:n(),query:a()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentCategory,r=t.setCurrentEditor,a=t.setSearchQuery;return{setCurrentCategory:function(e){return n(e)},setCurrentEditor:function(e){return r(e)},onSearch:function(e){return a(e)}}})))((function(e){var t=e.count,n=(e.categories,e.editors),a=e.onSearch,c=(e.category,e.editor),o=e.onlyProSites,i=(e.setCurrentCategory,e.setCurrentEditor),s=e.query,l=e.className,u=e.showCount,m=void 0!==u&&u,p=Object(r.useState)(!1),d=y()(p,2),b=d[0],f=d[1],h=function(){return f(!b)},g=O()(l,"header-form");return Object(r.createElement)("div",{className:g},Object(r.createElement)("div",{className:"search"},Object(r.createElement)("img",{src:tiobDash.assets+"/img/search.svg",alt:Object(_.__)("Search Icon")}),Object(r.createElement)("input",{onChange:function(e){a(e.target.value)},type:"search",value:s,placeholder:Object(_.__)("Search for a starter site","templates-patterns-collection")+"..."}),!1,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"ob-dropdown categories-selector"},Object(r.createElement)(E.Button,{onClick:h,className:"select ob-dropdown"},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[c].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(c)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px",marginLeft:"0"}}),n[c].niceName),Object(r.createElement)(E.Dashicon,{size:14,icon:b?"arrow-up-alt2":"arrow-down-alt2"}),b&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:h,noArrow:!0},b&&Object(r.createElement)("ul",{className:"options"},Object.keys(n).map((function(e,a){return e===c?null:Object(r.createElement)("li",{key:a},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),i(e),f(!1)}},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),n[e].niceName),m&&Object(r.createElement)("span",{className:"count"},t[e])))}))))))}),null)))})),ht=(Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.editor,c=e.setCurrentEditor,o=e.sites,i=e.isSmall,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=Object.keys(o),d=function(){return m(!u)},b=O()(["ob-dropdown","editor-selector",{small:i}]);return Object(r.createElement)("div",{className:b},Object(r.createElement)(E.Button,{onClick:d,className:"select ob-dropdown"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[a].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),!i&&Object(r.createElement)("span",null,t[a].niceName),Object(r.createElement)("span",{className:"count"},n[a]),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:d,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},p.map((function(e,o){return e===a?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),Object(r.createElement)("span",null,t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.onlyProSites,c=e.editor,o=e.setCurrentEditor,i=e.sites,s=Object.keys(i);return Object(r.createElement)("div",{className:"editor-tabs"},s.map((function(e,i){var s=O()(["tab",e,{active:e===c}]);return Object(r.createElement)("a",{key:i,href:"#",className:s,onClick:function(t){t.preventDefault(),o(e)}},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),Object(r.createElement)("span",{className:"editor"},a.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e]))})))})),Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=e.showCount,i=void 0!==o&&o;return Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(t).map((function(e,o){if(1>n[e])return null;var s=O()(["tab",e,{active:e===a}]);return Object(r.createElement)("a",{key:o,href:"#",className:s,onClick:function(t){t.preventDefault(),c(e)}},Object(r.createElement)("span",{className:"editor"},t[e]),i&&Object(r.createElement)("span",{className:"count"},n[e]))})))}))),gt=Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=e.showCount,i=void 0!==o&&o,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=function(){return m(!u)},d=O()(["ob-dropdown","editor-selector",{small:!0}]);return Object(r.createElement)("div",{className:d},Object(r.createElement)(E.Button,{onClick:p,className:"select ob-dropdown"},Object(r.createElement)("span",null,t[a]),Object(r.createElement)("span",{className:"count"},i?n[a]:""),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:p,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},Object.keys(t).map((function(e,o){return e===a||1>n[e]?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("span",null,t[e]),i&&Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),Ot=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getOnboardingStatus,c=t.getSites;return{editor:n(),category:r(),isOnboarding:a(),getSites:c()}})))((function(e){var t,n=e.filterByCategory,a=e.filterBySearch,c=e.getSitesForBuilder,o=e.isOnboarding,i=e.getSites,s=e.category,l=e.editor,u=Object(r.useState)(!1),m=y()(u,2),p=m[0],d=m[1],b=i.sites,f=void 0===b?{}:b,h=i.migration,g={top:p?0:"-100%"},O=Object.keys(f),v=O.filter((function(e){return Object.keys(f[e]).filter((function(t){return!0===f[e][t].upsell})).length===Object.keys(f[e]).length})),j=(t={builders:{},categories:{}},O.forEach((function(e){var r=c(e);r=n(r,s),r=a(r),t.builders[e]=r?r.length:0})),Object.keys(Je).forEach((function(e){var r=c(l);r=n(r,e),r=a(r),t.categories[e]=r?r.length:0})),t),_=50<=c(l).length;return Object(r.createElement)(r.Fragment,null,!o&&!h&&Object(r.createElement)("div",{className:"sticky-nav",style:g},Object(r.createElement)("div",{className:"container sticky-nav-content"},!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:Ge,size:32}),Object(r.createElement)(ft,{className:"in-sticky",count:j.builders,categories:Je,editors:Ke,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(gt,{count:j.categories,categories:Je,showCount:_}))),Object(r.createElement)(H.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),!1,Object(r.createElement)(gt,{count:j.categories,categories:Je,showCount:_}),Object(r.createElement)(ft,{count:j.builders,categories:Je,editors:Ke,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(ht,{categories:Je,count:j.categories,showCount:_}),!tiobDash.isValidLicense&&Object(r.createElement)(bt,{data:tiobDash.upsellNotifications.upsell_1,editor:l}))))})),vt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab,setSearchQuery:t.setSearchQuery}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSearchQuery;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),searchQuery:m()}})))((function(e){var t=e.getSites,n=e.category,a=e.resetCategory,c=e.editor,o=e.previewOpen,i=e.currentSiteData,s=e.isOnboarding,l=e.cancelOnboarding,u=e.setSearchQuery,m=e.searchQuery,p=t.sites,d=void 0===p?{}:p,b=function(){var e={};return g().forEach((function(t){var n=d&&d[t]?d[t]:{};e[t]=V()(Object.values(n))})),e},f=function(e,t){return"free"===t?e.filter((function(e){return!e.upsell})):"all"!==t?e.filter((function(e){return e.keywords.includes(t)})):e},h=function(e){return m?new mt.a(e,{includeScore:!0,keys:["title","slug","keywords"]}).search(m).map((function(e){return e.item})):e},g=function(){return Object.keys(d)},O=function(){var e=b()[c];return e=h(e),f(e,n)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null===i)return null;var t=b()[c],n=t.indexOf(i);return-1===n||1===t.length?null:e&&0===n?t[t.length-1]:e||n!==t.length-1?t[e?n-1:n+1]:t[0]};return 1>d.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,Object(_.__)("Starter sites could not be loaded. Please refresh and try again.","templates-patterns-collection"),s&&Object(r.createElement)(E.Button,{style:{display:"block",margin:"20px auto"},isPrimary:!0,onClick:l},Object(_.__)("Close","templates-patterns-collection")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ot,{getSitesForBuilder:function(e){return b()[e]},filterBySearch:h,filterByCategory:f}),0===O().length&&Object(r.createElement)("div",{className:"no-results"},Object(r.createElement)("p",null,Object(_.__)("No results found.","templates-patterns-collection")," ",Object(_.__)("You can try a different search or use one of the categories below.","templates-patterns-collection")),Object(r.createElement)("div",{className:"tags"},Ye.map((function(e,t){return Object(r.createElement)(E.Button,{key:t,isPrimary:!0,className:"tag",onClick:function(t){t.preventDefault(),u(e),a()}},e)})))),Object(r.createElement)((function(){var e=Object(r.useState)(9),t=y()(e,2),n=t[0],a=t[1],c=O();return Object(r.createElement)("div",{className:"ob-sites is-grid"},c.slice(0,n).map((function(e,t){return Object(r.createElement)(pt,{key:t,data:e})})),Object(r.createElement)(H.a,{onChange:function(e){if(!e)return!1;a(n+9)}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})))}),null),o&&i&&Object(r.createElement)(dt,{next:v(),prev:v(!0)}))})),jt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSingleImport;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),singleImport:m()}})))((function(e){var t=e.getSites,n=e.installModal,a=e.currentTab,c=e.singleImport,o=e.importModal,i=e.currentSiteData,s=(e.isOnboarding,t.migration);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ob"},Object(r.createElement)(lt,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},s&&Object(r.createElement)(z,{data:s}),"starterSites"===a&&(c?Object(r.createElement)(it,{slug:c}):Object(r.createElement)(vt,null)),"library"===a&&Object(r.createElement)(Qe,null),"pageTemplates"===a&&Object(r.createElement)(Qe,{isGeneral:!0})))),n&&Object(r.createElement)(I,null),o&&i&&Object(r.createElement)(ot,null))})),yt=Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getUserStatus;return{onboarding:n(),userStatus:r()}}))((function(e){var t=e.onboarding,n=e.userStatus,a=O()(["content-wrap","starter-sites",{"is-onboarding":t,"is-free":!n}]);return Object(r.createElement)("div",{className:"tiob-wrap"},Object(r.createElement)("div",{className:a},Object(r.createElement)("div",{className:"container content"},Object(r.createElement)("div",{className:"main"},Object(r.createElement)("div",{className:"tab-content columns starter-sites"},Object(r.createElement)(jt,null))))))}));Object(h.registerStore)("neve-onboarding",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REFRESH_SITES":var n=t.payload.sites;return i(i({},e),{},{sites:n});case"SET_CURRENT_EDITOR":var r=t.payload.editor;return localStorage.setItem("neve-onboarding-editor",r),i(i({},e),{},{editor:r});case"SET_CURRENT_CATEGORY":var a=t.payload.category;return i(i({},e),{},{category:a});case"SET_FOCUSED_SITE":var c=t.payload.siteData;return i(i({},e),{},{currentSite:c});case"SET_PREVIEW_STATUS":var o=t.payload.previewStatus;return i(i({},e),{},{previewStatus:o});case"SET_IMPORT_MODAL_STATUS":var s=t.payload.importModalStatus;return i(i({},e),{},{importModalStatus:s});case"SET_INSTALL_MODAL_STATUS":var l=t.payload.installModalStatus;return i(i({},e),{},{installModalStatus:l});case"SET_ONBOARDING":var u=t.payload.status;return i(i({},e),{},{isOnboarding:u});case"SET_THEME_ACTIONS":var m=t.payload.themeActions;return i(i({},e),{},{themeAction:m});case"SET_CURRENT_TAB":var p=t.payload.currentTab;return i(i({},e),{},{singleTemplateImport:null,currentTab:p});case"SET_FETCHING":var b=t.payload.fetching;return i(i({},e),{},{fetching:b});case"SET_SINGLE_TEMPLATE_IMPORT":var f=t.payload.slug;return i(i({},e),{},{singleTemplateImport:f});case"SET_TEMPLATE_MODAL":var h=t.payload.data;return i(i({},e),{},{templateModal:h});case"SET_SEARCH_QUERY":var g=t.payload.query;return i(i({},e),{},{searchQuery:g})}return e},actions:b,selectors:f}),Object(r.render)(Object(r.createElement)(yt,null),document.getElementById("tpc-app"))}]);
1
+ (window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[]).push([[1],{22:function(e,t,n){}}]),function(e){function t(t){for(var r,o,i=t[0],s=t[1],l=t[2],m=0,p=[];m<i.length;m++)o=i[m],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&p.push(a[o][0]),a[o]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,l||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,i=1;i<n.length;i++){var s=n[i];0!==a[s]&&(r=!1)}r&&(c.splice(t--,1),e=o(o.s=n[0]))}return e}var r={},a={0:0},c=[];function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var i=window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var u=s;c.push([34,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},function(e,t,n){var r=n(23),a=n(24),c=n(16),o=n(25);e.exports=function(e,t){return r(e)||a(e,t)||c(e,t)||o()}},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.primitives},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e,t,n,r,a,c,o){try{var i=e[c](o),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,c){var o=e.apply(t,r);function i(e){n(o,a,c,i,s,"next",e)}function s(e){n(o,a,c,i,s,"throw",e)}i(void 0)}))}}},function(e,t,n){"use strict";const r=n(31),a=n(32),c=n(33);function o(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function i(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e,t){return t.decode?a(e):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function p(e,t){o((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const a="string"==typeof n&&n.includes(e.arrayFormatSeparator),c="string"==typeof n&&!a&&s(n,e).includes(e.arrayFormatSeparator);n=c?s(n,e):n;const o=a||c?n.split(e.arrayFormatSeparator).map(t=>s(t,e)):null===n?n:s(n,e);r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const a of e.split("&")){let[e,o]=c(t.decode?a.replace(/\+/g," "):a,"=");o=void 0===o?null:["comma","separator"].includes(t.arrayFormat)?o:s(o,t),n(s(e,t),o,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=m(n[e],t);else r[e]=m(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=u,t.parse=p,t.stringify=(e,t)=>{if(!e)return"";o((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[i(t,e),"[",a,"]"].join("")]:[...n,[i(t,e),"[",i(a,e),"]=",i(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[i(t,e),"[]"].join("")]:[...n,[i(t,e),"[]=",i(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[i(t,e),"=",i(r,e)].join("")]:[[n,i(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,i(t,e)]:[...n,[i(t,e),"=",i(r,e)].join("")]}}(t),a={};for(const t of Object.keys(e))n(t)||(a[t]=e[t]);const c=Object.keys(a);return!1!==t.sort&&c.sort(t.sort),c.map(n=>{const a=e[n];return void 0===a?"":null===a?i(n,t):Array.isArray(a)?a.reduce(r(n),[]).join("&"):i(n,t)+"="+i(a,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=c(e,"#");return Object.assign({url:n.split("?")[0]||"",query:p(u(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:s(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=l(e.url).split("?")[0]||"",a=t.extract(e.url),c=t.parse(a,{sort:!1}),o=Object.assign(c,e.query);let s=t.stringify(o,n);s&&(s="?"+s);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#"+i(e.fragmentIdentifier,n)),`${r}${s}${u}`}},function(e,t,n){var r=n(26),a=n(27),c=n(16),o=n(28);e.exports=function(e){return r(e)||a(e)||c(e)||o()}},,function(e,t){e.exports=window.wp.apiFetch},function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(5)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t,n){var r=e.direction,a=e.value;switch(r){case"top":return n.top+a<t.top&&n.bottom>t.bottom&&n.left<t.left&&n.right>t.right;case"left":return n.left+a<t.left&&n.bottom>t.bottom&&n.top<t.top&&n.right>t.right;case"bottom":return n.bottom-a>t.bottom&&n.left<t.left&&n.right>t.right&&n.top<t.top;case"right":return n.right-a>t.right&&n.left<t.left&&n.top<t.top&&n.bottom>t.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var r=n(1),a=n.n(r),c=n(2),o=n.n(c),i=n(0),s=n.n(i),l=n(3),u=n.n(l);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this,r=d(t).call(this,e),n=!r||"object"!==m(r)&&"function"!=typeof r?b(this):r,h(b(n),"getContainer",(function(){return n.props.containment||window})),h(b(n),"addEventListener",(function(e,t,r,a){var c;n.debounceCheck||(n.debounceCheck={});var o=function(){c=null,n.check()},i={target:e,fn:a>-1?function(){c||(c=setTimeout(o,a||0))}:function(){clearTimeout(c),c=setTimeout(o,r||0)},getLastTimeout:function(){return c}};e.addEventListener(t,i.fn),n.debounceCheck[t]=i})),h(b(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),h(b(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),h(b(n),"check",(function(){var e,t,r=n.node;if(!r)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(r.getBoundingClientRect())),n.props.containment){var a=n.props.containment.getBoundingClientRect();t={top:a.top,left:a.left,bottom:a.bottom,right:a.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var c=n.props.offset||{};"object"===m(c)&&(t.top+=c.top||0,t.left+=c.left||0,t.bottom-=c.bottom||0,t.right-=c.right||0);var o={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},i=e.height>0&&e.width>0,s=i&&o.top&&o.left&&o.bottom&&o.right;if(i&&n.props.partialVisibility){var l=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(l=o[n.props.partialVisibility]),s=n.props.minTopValue?l&&e.top<=t.bottom-n.props.minTopValue:l}"string"==typeof c.direction&&"number"==typeof c.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",c.direction,c.value),s=u()(c,e,t));var p=n.state;return n.state.isVisible!==s&&(p={isVisible:s,visibilityRect:o},n.setState(p),n.props.onChange&&n.props.onChange(s)),p})),n.state={isVisible:null,visibilityRect:{}},n}var n,r;return 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&&f(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.node=o.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=o.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):a.a.Children.only(this.props.children)}}])&&p(n.prototype,r),t}(a.a.Component);h(g,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:a.a.createElement("span",null)}),h(g,"propTypes",{onChange:s.a.func,active:s.a.bool,partialVisibility:s.a.oneOfType([s.a.bool,s.a.oneOf(["top","right","bottom","left"])]),delayedCall:s.a.bool,offset:s.a.oneOfType([s.a.shape({top:s.a.number,left:s.a.number,bottom:s.a.number,right:s.a.number}),s.a.shape({direction:s.a.oneOf(["top","right","bottom","left"]),value:s.a.number})]),scrollCheck:s.a.bool,scrollDelay:s.a.number,scrollThrottle:s.a.number,resizeCheck:s.a.bool,resizeDelay:s.a.number,resizeThrottle:s.a.number,intervalCheck:s.a.bool,intervalDelay:s.a.number,containment:"undefined"!=typeof window?s.a.instanceOf(window.Element):s.a.any,children:s.a.oneOfType([s.a.element,s.a.func]),minTopValue:s.a.number})},function(e,t,n){"use strict";var r=n(6);function a(){}function c(){}c.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,c,o){if(o!==r){var i=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 i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={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:c,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=r(n(29),n(30))},function(e,t,n){var r=n(17);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=window.wp.keycodes},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},function(e,t,n){var r;r=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(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&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(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 n,r=s(e);if(t){var a=s(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return l(this,n)}}function m(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function b(e){return"string"==typeof e}function f(e){return"number"==typeof e}function h(t){return"object"===e(t)}function g(e){return null!=e}function O(e){return!e.trim().length}function v(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var j=function(e){return"Invalid value for key ".concat(e)},y=function(e){return"Pattern length exceeds max of ".concat(e,".")},E=Object.prototype.hasOwnProperty,_=function(){function e(n){var r=this;t(this,e),this._keys=[],this._keyMap={};var a=0;n.forEach((function(e){var t=w(e);a+=t.weight,r._keys.push(t),r._keyMap[t.id]=t,a+=t.weight})),this._keys.forEach((function(e){e.weight/=a}))}return r(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function w(e){var t=null,n=null,r=null,a=1;if(b(e)||d(e))r=e,t=S(e),n=k(e);else{if(!E.call(e,"name"))throw new Error("Missing ".concat("name"," property in key"));var c=e.name;if(r=c,E.call(e,"weight")&&(a=e.weight)<=0)throw new Error(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(c));t=S(c),n=k(c)}return{path:t,id:n,weight:a,src:r}}function S(e){return d(e)?e:e.split(".")}function k(e){return d(e)?e.join("."):e}var C=o({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}},{},{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},{},{location:0,threshold:.6,distance:100},{},{useExtendedSearch:!1,getFn:function(e,t){var n=[],r=!1;return function e(t,a,c){if(g(t))if(a[c]){var o=t[a[c]];if(!g(o))return;if(c===a.length-1&&(b(o)||f(o)||function(e){return!0===e||!1===e||function(e){return h(e)&&null!==e}(e)&&"[object Boolean]"==v(e)}(o)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(o));else if(d(o)){r=!0;for(var i=0,s=o.length;i<s;i+=1)e(o[i],a,c+1)}else a.length&&e(o,a,c+1)}else n.push(t)}(e,b(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1}),N=/[^ ]+/g;function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=new Map,n=Math.pow(10,e);return{get:function(e){var r=e.match(N).length;if(t.has(r))return t.get(r);var a=1/Math.sqrt(r),c=parseFloat(Math.round(a*n)/n);return t.set(r,c),c},clear:function(){t.clear()}}}var x=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.getFn,a=void 0===r?C.getFn:r;t(this,e),this.norm=T(3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}return r(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,b(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();b(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(g(e)&&!O(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){var n=this,r={i:t,$:{}};this.keys.forEach((function(t,a){var c=n.getFn(e,t.path);if(g(c))if(d(c))!function(){for(var e=[],t=[{nestedArrIndex:-1,value:c}];t.length;){var o=t.pop(),i=o.nestedArrIndex,s=o.value;if(g(s))if(b(s)&&!O(s)){var l={v:s,i:i,n:n.norm.get(s)};e.push(l)}else d(s)&&s.forEach((function(e,n){t.push({nestedArrIndex:n,value:e})}))}r.$[a]=e}();else if(!O(c)){var o={v:c,n:n.norm.get(c)};r.$[a]=o}})),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,a=void 0===r?C.getFn:r,c=new x({getFn:a});return c.setKeys(e.map(w)),c.setSources(t),c.create(),c}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,a=t.currentLocation,c=void 0===a?0:a,o=t.expectedLocation,i=void 0===o?0:o,s=t.distance,l=void 0===s?C.distance:s,u=t.ignoreLocation,m=void 0===u?C.ignoreLocation:u,p=r/e.length;if(m)return p;var d=Math.abs(i-c);return l?p+d/l:d?1:p}function D(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.minMatchCharLength,n=[],r=-1,a=-1,c=0,o=e.length;c<o;c+=1){var i=e[c];i&&-1===r?r=c:i||-1===r||((a=c-1)-r+1>=t&&n.push([r,a]),r=-1)}return e[c-1]&&c-r>=t&&n.push([r,c-1]),n}function I(e){for(var t={},n=0,r=e.length;n<r;n+=1){var a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}var L=function(){function e(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a.location,o=void 0===c?C.location:c,i=a.threshold,s=void 0===i?C.threshold:i,l=a.distance,u=void 0===l?C.distance:l,m=a.includeMatches,p=void 0===m?C.includeMatches:m,d=a.findAllMatches,b=void 0===d?C.findAllMatches:d,f=a.minMatchCharLength,h=void 0===f?C.minMatchCharLength:f,g=a.isCaseSensitive,O=void 0===g?C.isCaseSensitive:g,v=a.ignoreLocation,j=void 0===v?C.ignoreLocation:v;if(t(this,e),this.options={location:o,threshold:s,distance:u,includeMatches:p,findAllMatches:b,minMatchCharLength:h,isCaseSensitive:O,ignoreLocation:j},this.pattern=O?n:n.toLowerCase(),this.chunks=[],this.pattern.length){var y=function(e,t){r.chunks.push({pattern:e,alphabet:I(e),startIndex:t})},E=this.pattern.length;if(E>32){for(var _=0,w=E%32,S=E-w;_<S;)y(this.pattern.substr(_,32),_),_+=32;if(w){var k=E-32;y(this.pattern.substr(k),k)}}else y(this.pattern,0)}}return r(e,[{key:"searchIn",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var a={isMatch:!0,score:0};return r&&(a.indices=[[0,e.length-1]]),a}var c=this.options,o=c.location,i=c.distance,s=c.threshold,l=c.findAllMatches,u=c.minMatchCharLength,p=c.ignoreLocation,d=[],b=0,f=!1;this.chunks.forEach((function(t){var n=t.pattern,a=t.alphabet,c=t.startIndex,h=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.location,c=void 0===a?C.location:a,o=r.distance,i=void 0===o?C.distance:o,s=r.threshold,l=void 0===s?C.threshold:s,u=r.findAllMatches,m=void 0===u?C.findAllMatches:u,p=r.minMatchCharLength,d=void 0===p?C.minMatchCharLength:p,b=r.includeMatches,f=void 0===b?C.includeMatches:b,h=r.ignoreLocation,g=void 0===h?C.ignoreLocation:h;if(t.length>32)throw new Error(y(32));for(var O,v=t.length,j=e.length,E=Math.max(0,Math.min(c,j)),_=l,w=E,S=d>1||f,k=S?Array(j):[];(O=e.indexOf(t,w))>-1;){var N=M(t,{currentLocation:O,expectedLocation:E,distance:i,ignoreLocation:g});if(_=Math.min(N,_),w=O+v,S)for(var T=0;T<v;)k[O+T]=1,T+=1}w=-1;for(var x=[],P=1,I=v+j,L=1<<v-1,A=0;A<v;A+=1){for(var B=0,R=I;B<R;){var F=M(t,{errors:A,currentLocation:E+R,expectedLocation:E,distance:i,ignoreLocation:g});F<=_?B=R:I=R,R=Math.floor((I-B)/2+B)}I=R;var U=Math.max(1,E-R+1),z=m?j:Math.min(E+R,j)+v,V=Array(z+2);V[z+1]=(1<<A)-1;for(var $=z;$>=U;$-=1){var H=$-1,G=n[e.charAt(H)];if(S&&(k[H]=+!!G),V[$]=(V[$+1]<<1|1)&G,A&&(V[$]|=(x[$+1]|x[$])<<1|1|x[$+1]),V[$]&L&&(P=M(t,{errors:A,currentLocation:H,expectedLocation:E,distance:i,ignoreLocation:g}))<=_){if(_=P,(w=H)<=E)break;U=Math.max(1,2*E-w)}}var W=M(t,{errors:A+1,currentLocation:E,expectedLocation:E,distance:i,ignoreLocation:g});if(W>_)break;x=V}var q={isMatch:w>=0,score:Math.max(.001,P)};if(S){var Q=D(k,d);Q.length?f&&(q.indices=Q):q.isMatch=!1}return q}(e,n,a,{location:o+c,distance:i,threshold:s,findAllMatches:l,minMatchCharLength:u,includeMatches:r,ignoreLocation:p}),g=h.isMatch,O=h.score,v=h.indices;g&&(f=!0),b+=O,g&&v&&(d=[].concat(m(d),m(v)))}));var h={isMatch:f,score:f?b/this.chunks.length:1};return f&&r&&(h.indices=d),h}}]),e}(),A=function(){function e(n){t(this,e),this.pattern=n}return r(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return B(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return B(e,this.singleRegex)}}]),e}();function B(e,t){var n=e.match(t);return n?n[1]:null}var R=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),a}(A),F=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),a}(A),U=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),a}(A),z=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),a}(A),V=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),a}(A),$=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),a}(A),H=function(e){i(a,e);var n=u(a);function a(e){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=c.location,i=void 0===o?C.location:o,s=c.threshold,l=void 0===s?C.threshold:s,u=c.distance,m=void 0===u?C.distance:u,p=c.includeMatches,d=void 0===p?C.includeMatches:p,b=c.findAllMatches,f=void 0===b?C.findAllMatches:b,h=c.minMatchCharLength,g=void 0===h?C.minMatchCharLength:h,O=c.isCaseSensitive,v=void 0===O?C.isCaseSensitive:O,j=c.ignoreLocation,y=void 0===j?C.ignoreLocation:j;return t(this,a),(r=n.call(this,e))._bitapSearch=new L(e,{location:i,threshold:l,distance:m,includeMatches:d,findAllMatches:f,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:y}),r}return r(a,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),a}(A),G=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){for(var t,n=0,r=[],a=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+a,r.push([t,n-1]);var c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),a}(A),W=[R,G,U,z,$,V,F,H],q=W.length,Q=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Q).filter((function(e){return e&&!!e.trim()})),r=[],a=0,c=n.length;a<c;a+=1){for(var o=n[a],i=!1,s=-1;!i&&++s<q;){var l=W[s],u=l.isMultiMatch(o);u&&(r.push(new l(u,t)),i=!0)}if(!i)for(s=-1;++s<q;){var m=W[s],p=m.isSingleMatch(o);if(p){r.push(new m(p,t));break}}}return r}))}var J=new Set([H.type,G.type]),K=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.isCaseSensitive,c=void 0===a?C.isCaseSensitive:a,o=r.includeMatches,i=void 0===o?C.includeMatches:o,s=r.minMatchCharLength,l=void 0===s?C.minMatchCharLength:s,u=r.ignoreLocation,m=void 0===u?C.ignoreLocation:u,p=r.findAllMatches,d=void 0===p?C.findAllMatches:p,b=r.location,f=void 0===b?C.location:b,h=r.threshold,g=void 0===h?C.threshold:h,O=r.distance,v=void 0===O?C.distance:O;t(this,e),this.query=null,this.options={isCaseSensitive:c,includeMatches:i,minMatchCharLength:l,findAllMatches:d,ignoreLocation:m,location:f,threshold:g,distance:v},this.pattern=c?n:n.toLowerCase(),this.query=Y(this.pattern,this.options)}return r(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var a=0,c=[],o=0,i=0,s=t.length;i<s;i+=1){var l=t[i];c.length=0,a=0;for(var u=0,p=l.length;u<p;u+=1){var d=l[u],b=d.search(e),f=b.isMatch,h=b.indices,g=b.score;if(!f){o=0,a=0,c.length=0;break}if(a+=1,o+=g,r){var O=d.constructor.type;J.has(O)?c=[].concat(m(c),m(h)):c.push(h)}}if(a){var v={isMatch:!0,score:o/a};return r&&(v.indices=c),v}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(e,t){return t.useExtendedSearch}}]),e}(),Z=[];function X(e,t){for(var n=0,r=Z.length;n<r;n+=1){var a=Z[n];if(a.condition(e,t))return new a(e,t)}return new L(e,t)}var ee="$and",te="$path",ne=function(e){return!(!e[ee]&&!e.$or)},re=function(e){return!!e[te]},ae=function(e){return!d(e)&&h(e)&&!ne(e)},ce=function(e){return a({},ee,Object.keys(e).map((function(t){return a({},t,e[t])})))};function oe(e,t){var n=t.ignoreFieldNorm,r=void 0===n?C.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,a=e.norm,c=e.score,o=n?n.weight:null;t*=Math.pow(0===c&&o?Number.EPSILON:c,(o||1)*(r?1:a))})),e.score=t}))}function ie(e,t){var n=e.matches;t.matches=[],g(n)&&n.forEach((function(e){if(g(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function se(e,t){t.score=e.score}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,a=void 0===r?C.includeMatches:r,c=n.includeScore,o=void 0===c?C.includeScore:c,i=[];return a&&i.push(ie),o&&i.push(se),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return i.length&&i.forEach((function(t){t(e,r)})),r}))}var ue=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;t(this,e),this.options=o({},C,{},r),this.options.useExtendedSearch,this._keyStore=new _(this.options.keys),this.setCollection(n,a)}return r(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof x))throw new Error("Incorrect 'index' type");this._myIndex=t||P(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(e){g(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){var a=this._docs[n];e(a,n)&&(this.removeAt(n),n-=1,r-=1,t.push(a))}return t}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,a=this.options,c=a.includeMatches,o=a.includeScore,i=a.shouldSort,s=a.sortFn,l=a.ignoreFieldNorm,u=b(e)?b(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return oe(u,{ignoreFieldNorm:l}),i&&u.sort(s),f(r)&&r>-1&&(u=u.slice(0,r)),le(u,this._docs,{includeMatches:c,includeScore:o})}},{key:"_searchStringList",value:function(e){var t=X(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,a=e.i,c=e.n;if(g(n)){var o=t.searchIn(n),i=o.isMatch,s=o.score,l=o.indices;i&&r.push({item:n,idx:a,matches:[{score:s,value:n,norm:c,indices:l}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,a=void 0===r||r,c=function e(n){var r=Object.keys(n),c=re(n);if(!c&&r.length>1&&!ne(n))return e(ce(n));if(ae(n)){var o=c?n[te]:r[0],i=c?n.$val:n[o];if(!b(i))throw new Error(j(o));var s={keyId:k(o),pattern:i};return a&&(s.searcher=X(i,t)),s}var l={children:[],operator:r[0]};return r.forEach((function(t){var r=n[t];d(r)&&r.forEach((function(t){l.children.push(e(t))}))})),l};return ne(e)||(e=ce(e)),c(e)}(e,this.options),r=this._myIndex.records,a={},c=[];return r.forEach((function(e){var r=e.$,o=e.i;if(g(r)){var i=function e(n,r,a){if(!n.children){var c=n.keyId,o=n.searcher,i=t._findMatches({key:t._keyStore.get(c),value:t._myIndex.getValueForItemAtKeyId(r,c),searcher:o});return i&&i.length?[{idx:a,item:r,matches:i}]:[]}switch(n.operator){case ee:for(var s=[],l=0,u=n.children.length;l<u;l+=1){var p=e(n.children[l],r,a);if(!p.length)return[];s.push.apply(s,m(p))}return s;case"$or":for(var d=[],b=0,f=n.children.length;b<f;b+=1){var h=e(n.children[b],r,a);if(h.length){d.push.apply(d,m(h));break}}return d}}(n,r,o);i.length&&(a[o]||(a[o]={idx:o,item:r,matches:[]},c.push(a[o])),i.forEach((function(e){var t,n=e.matches;(t=a[o].matches).push.apply(t,m(n))})))}})),c}},{key:"_searchObjectList",value:function(e){var t=this,n=X(e,this.options),r=this._myIndex,a=r.keys,c=r.records,o=[];return c.forEach((function(e){var r=e.$,c=e.i;if(g(r)){var i=[];a.forEach((function(e,a){i.push.apply(i,m(t._findMatches({key:e,value:r[a],searcher:n})))})),i.length&&o.push({idx:c,item:r,matches:i})}})),o}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!g(n))return[];var a=[];if(d(n))n.forEach((function(e){var n=e.v,c=e.i,o=e.n;if(g(n)){var i=r.searchIn(n),s=i.isMatch,l=i.score,u=i.indices;s&&a.push({score:l,key:t,value:n,idx:c,norm:o,indices:u})}}));else{var c=n.v,o=n.n,i=r.searchIn(c),s=i.isMatch,l=i.score,u=i.indices;s&&a.push({score:l,key:t,value:c,norm:o,indices:u})}return a}}]),e}();return ue.version="6.4.6",ue.createIndex=P,ue.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?C.getFn:n,a=e.keys,c=e.records,o=new x({getFn:r});return o.setKeys(a),o.setIndexRecords(c),o},ue.config=C,function(){Z.push.apply(Z,arguments)}(K),ue},e.exports=r()},,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=window.React},function(e,t){e.exports=window.ReactDOM},function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function c(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],c(n),c(r))}function o(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=c(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=a.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=a.exec(e)}t["%C2"]="�";for(var c=Object.keys(t),i=0;i<c.length;i++){var s=c[i];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){"use strict";n.r(t);var r=n(0),a=(n(22),n(9)),c=n.n(a);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=tiobDash,l=s.onboarding,u=s.themeAction,m=void 0!==l.sites&&void 0!==l.sites.sites?Object.keys(l.sites.sites)[0]:"gutenberg",p=localStorage.getItem("neve-onboarding-editor")||m,d={sites:l.sites||{},editor:p,category:"all",previewStatus:!1,importModalStatus:!1,installModalStatus:!1,currentSite:null,importing:!1,isOnboarding:l.onboarding||!1,migrationData:null,themeAction:u,currentTab:"starterSites",fetching:!1,singleTemplateImport:null,templateModal:null,searchQuery:""},b={refreshSites:function(e){return{type:"REFRESH_SITES",payload:{sites:e}}},setCurrentEditor:function(e){return{type:"SET_CURRENT_EDITOR",payload:{editor:e}}},setCurrentCategory:function(e){return{type:"SET_CURRENT_CATEGORY",payload:{category:e}}},setCurrentSite:function(e){return{type:"SET_FOCUSED_SITE",payload:{siteData:e}}},setPreviewStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_PREVIEW_STATUS",payload:{previewStatus:e}}},setImportModalStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_IMPORT_MODAL_STATUS",payload:{importModalStatus:e}}},setInstallModalStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_INSTALL_MODAL_STATUS",payload:{installModalStatus:e}}},setOnboardingState:function(e){return{type:"SET_ONBOARDING",payload:{state:e}}},setThemeAction:function(e){return{type:"SET_THEME_ACTIONS",payload:{themeActions:e}}},setCurrentTab:function(e){return{type:"SET_CURRENT_TAB",payload:{currentTab:e}}},setFetching:function(e){return{type:"SET_FETCHING",payload:{fetching:e}}},setSingleTemplateImport:function(e){return{type:"SET_SINGLE_TEMPLATE_IMPORT",payload:{slug:e}}},setTemplateModal:function(e){return{type:"SET_TEMPLATE_MODAL",payload:{data:e}}},setSearchQuery:function(e){return{type:"SET_SEARCH_QUERY",payload:{query:e}}}},f={getSites:function(e){return e.sites},getMigrationData:function(e){return e.migrationData},getCurrentEditor:function(e){return e.editor},getCurrentCategory:function(e){return e.category},getCurrentSite:function(e){return e.currentSite},getPreviewStatus:function(e){return e.previewStatus},getImportModalStatus:function(e){return e.importModalStatus},getOnboardingStatus:function(e){return e.isOnboarding},getThemeAction:function(e){return e.themeAction},getInstallModalStatus:function(e){return e.installModalStatus},getCurrentTab:function(e){return e.currentTab},getFetching:function(e){return e.fetching},getSingleImport:function(e){return e.singleTemplateImport},getTemplateModal:function(e){return e.templateModal},getSearchQuery:function(e){return e.searchQuery},getUserStatus:function(){return window.tiobDash.license&&window.tiobDash.license.tier&&[6,17,23,5,9,14,20,1,7,12,18,3,8,13,19].includes(window.tiobDash.license.tier)}},h=n(4),g=n(6),O=n.n(g),v=n(7),j=n(3),y=n.n(j),E=n(2),_=n(1),w=n(8),S=n.n(w),k=n(10),C=n.n(k),N=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x(e,n,t)},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return x(e,t,{},"GET",n)},x=function(){var e=C()(S.a.mark((function e(t){var n,r,a,c,o,i=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],r=i.length>2&&void 0!==i[2]?i[2]:{},a=i.length>3&&void 0!==i[3]?i[3]:"POST",c=!(i.length>4&&void 0!==i[4])||i[4],o={method:a,headers:{Accept:"application/json","Content-Type":"application/json"}},c&&(o.headers["x-wp-nonce"]=tiobDash.nonce),"POST"===a&&(o.body=JSON.stringify(r)),e.next=9,fetch(t,o).then((function(e){return n?e:e.json()}));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getSingleImport;return{themeData:(0,t.getThemeAction)()||!1,singleImport:n()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setImportModalStatus,r=t.setInstallModalStatus,a=t.setThemeAction,c=t.setTemplateModal;return{setImportModal:function(e){return n(e)},setInstallModal:function(e){return r(e)},setThemeAction:function(e){return a(e)},showTemplateModal:function(){return c(!0)}}})))((function(e){var t=e.setImportModal,n=e.setInstallModal,a=e.themeData,c=e.setThemeAction,o=e.singleImport,i=e.showTemplateModal,s=a.action,l=a.slug,u=a.nonce,m=tiobDash,p=m.themesURL,d=m.brandedTheme,b=Object(r.useState)(!1),f=y()(b,2),h=f[0],g=f[1],O=Object(r.useState)(null),v=y()(O,2),j=v[0],w=v[1],S=function(){n(!1)},k=function(e){g(!1),w(Object(_.sprintf)(// translators: %s: Error message.
2
+ Object(_.__)("An error has ocurred: %s","templates-patterns-collection"),e))},C=function(){g("activating");var e="".concat(p,"?action=activate&stylesheet=").concat(l,"&_wpnonce=").concat(u);T(e,!0).then((function(e){return 200!==e.status?(k(Object(_.__)("Could not activate theme.","templates-patterns-collection")),g(!1),!1):(g(!1),n(!1),c(!1),o?(i(),!1):void t(!0))}))};return Object(r.createElement)(E.Modal,{className:"ob-import-modal install-modal",title:Object(_.__)("Install and Activate Neve","templates-patterns-collection"),onRequestClose:S,shouldCloseOnClickOutside:!h,isDismissible:!h},Object(r.createElement)("div",{className:"modal-body",style:{textAlign:"center"}},!d&&Object(r.createElement)("img",{style:{width:75},src:"".concat(tiobDash.assets,"/img/logo.svg"),alt:Object(_.__)("Logo","templates-patterns-collection")}),j&&Object(r.createElement)("div",{className:"well error",style:{margin:"20px 0"}},j),Object(r.createElement)("p",{style:{lineHeight:1.6,fontSize:"15px"}},Object(_.__)("In order to import the starter site, Neve theme has to be installed and activated. Click the button below to install and activate Neve","templates-patterns-collection"))),Object(r.createElement)("div",{className:"modal-footer",style:{justifyContent:"center"}},Object(r.createElement)("div",{className:"actions",style:{display:"flex"}},!j&&Object(r.createElement)(E.Button,{dismiss:j,isPrimary:!0,disabled:h,className:h&&"is-loading",icon:h&&"update",onClick:"install"===s?function(){g("installing"),wp.updates.installTheme({slug:"neve",success:function(){c(M(M({},a),{},{action:"activate"})),C()},error:function(e){c(M(M({},a),{},{action:"activate"})),k(e.errorMessage||Object(_.__)("Could not install theme.","templates-patterns-collection"))}})}:C},h&&("installing"===h?Object(_.__)("Installing"):Object(_.__)("Activating")),!h&&("install"===s?Object(_.__)("Install and Activate","templates-patterns-collection"):Object(_.__)("Activate","templates-patterns-collection"))),Object(r.createElement)(E.Button,{style:{marginLeft:30},isSecondary:!0,disabled:h,onClick:S},Object(_.__)("Close","templates-patterns-collection")))))}));var D,I=tiobDash.onboarding,L=function(e){return N(I.root+"/install_plugins",e)},A=function(){var e=C()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},t.forEach((function(e){"elementor"===e.template_type?n.elementor=!0:"beaver"===e.template_type&&(n["beaver-builder-lite-version"]=!0)})),!(Object.keys(n).length>0)){e.next=11;break}return e.prev=3,e.next=6,L(n);case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",e.t0);case 11:return e.abrupt("return",N(I.root+"/import_single_templates",t));case 12:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"neve",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;wp.updates.installTheme({slug:e,success:t,error:n})},R=function(e,t,n){var r=tiobDash.themesURL,a="".concat(r,"?action=activate&stylesheet=").concat(e.slug,"&_wpnonce=").concat(e.nonce);T(a,!0).then((function(e){if(200!==e.status)return n(e),!1;t()}))},F=function(e){var t=e.data,n=e.externalInstalled,a=t.external_plugins||null,c=O()(["well"]);return a&&!n?Object(r.createElement)("div",{className:c},Object(r.createElement)("span",null,Object(r.createElement)(E.Dashicon,{icon:"info"}),Object(_.__)("To import this demo you have to install the following plugins","templates-patterns-collection")),Object(r.createElement)("ul",null,a.map((function(e,t){return Object(r.createElement)("li",{key:t},Object(r.createElement)(E.Button,{isLink:!0,href:e.author_url},e.name))})))):""},U=function(e){var t=e.message,n=e.code;return Object(r.createElement)("div",{className:"well error"},t&&Object(r.createElement)("h3",null,Object(r.createElement)(E.Dashicon,{icon:"warning"}),Object(r.createElement)("span",null,t)),Object(r.createElement)("ul",null,Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.troubleshooting}}),Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.support}}),n&&Object(r.createElement)("li",null,Object(_.__)("Error code","templates-patterns-collection"),":"," ",Object(r.createElement)("code",null,n)),Object(r.createElement)("li",null,Object(_.__)("Error log","templates-patterns-collection"),":"," ",Object(r.createElement)(E.Button,{isLink:!0,href:tiobDash.onboarding.logUrl},tiobDash.onboarding.logUrl,Object(r.createElement)(E.Dashicon,{icon:"external"})))))},z=function(e){var t=e.data,n=function(e){return console.log(e)},a=Object(r.useState)(!1),c=y()(a,2),o=c[0],i=c[1],s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=Object(r.useState)(!1),d=y()(p,2),b=d[0],f=d[1],h=Object(r.useState)(null),g=y()(h,2),O=g[0],v=g[1],j=Object(r.useState)(null),w=y()(j,2),S=w[0],k=w[1];if(o)return null;var C=function(){"done"===b&&i(!0),m(!1),v(null),f(!1)};return Object(r.createElement)("div",{className:"ob-migration"},u&&Object(r.createElement)(E.Modal,{className:"ob-import-modal migration",title:Object(_.__)("Migrate","templates-patterns-collection")+" "+t.theme_name,onRequestClose:C,shouldCloseOnClickOutside:!b,isDismissible:!b},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},O&&Object(r.createElement)(U,{message:O.message||null,code:O.code||null}),!1===b&&!O&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(F,{data:t}),t.mandatory_plugins&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("h3",null,Object(_.__)("The following plugins will be installed","templates-patterns-collection"),":"),Object(r.createElement)("ul",null,Object.keys(t.mandatory_plugins).map((function(e,n){return Object(r.createElement)("li",{key:n},"-"," ",t.mandatory_plugins[e])}))))),"done"===b&&Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),!0===b&&Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}),Object(r.createElement)("h3",null,Object(_.__)("Migrating","templates-patterns-collection"),"..."))),(!b||"done"===b)&&Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isSecondary:"done"!==b,isLink:"done"===b,className:"done"===b?"close":null,onClick:C},"done"===b?Object(_.__)("Close","templates-patterns-collection"):Object(_.__)("Cancel","templates-patterns-collection")),O||"done"===b?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{style:{marginLeft:20},isSecondary:!0,href:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(S,"&action=elementor")},Object(_.__)("Edit Content","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection"))):Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){var e;e=Object.keys(t.mandatory_plugins).reduce((function(e,t){return e[t]=!0,e}),{}),L(e).then((function(e){if(f(!0),!e.success)return v({code:e.data||null,message:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection")}),f(!1),!1;var n=t.template,r=t.template_name;N(tiobDash.onboarding.root+"/migrate_frontpage",{template:n,template_name:r}).then((function(e){if(!e.success)return v({code:e.data||null,message:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection")}),f(!1),!1;k(e.data),f("done")}))}))}},Object(_.__)("Start Migration","templates-patterns-collection"))))),Object(r.createElement)("h2",null,t.heading),Object(r.createElement)("p",null,t.description),Object(r.createElement)("div",{className:"card starter-site-card",style:{maxWidth:330}},Object(r.createElement)("div",{className:"top"},t.screenshot&&Object(r.createElement)("div",{className:"image"},Object(r.createElement)("img",{src:t.screenshot,alt:t.theme_name}))),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},t.theme_name))),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return m(!0),!1}},Object(_.__)("Migrate","templates-patterns-collection")+" "+t.theme_name),Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(){N(tiobDash.onboarding.root+"/dismiss_migration",{theme_mod:t.theme_mod}).then((function(e){if(!e.success)return n(Object(_.__)("Something went wrong. Please reload the page and try again.","templates-patterns-collection")),!1;n(Object(_.__)("Dismissed","templates-patterns-collection")),i(!0)}))}},Object(_.__)("Dismiss","templates-patterns-collection"))))},V=n(12),$=n.n(V),H=n(15),G=n.n(H),W=n(5),q=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Q=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Y=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),J=n(14),K=n.n(J),Z=n(11),X=new Uint8Array(16);function ee(){if(!D&&!(D="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return D(X)}for(var te=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ne=function(e){return"string"==typeof e&&te.test(e)},re=[],ae=0;ae<256;++ae)re.push((ae+256).toString(16).substr(1));var ce=function(e,t,n){var r=(e=e||{}).random||(e.rng||ee)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(re[e[t+0]]+re[e[t+1]]+re[e[t+2]]+re[e[t+3]]+"-"+re[e[t+4]]+re[e[t+5]]+"-"+re[e[t+6]]+re[e[t+7]]+"-"+re[e[t+8]]+re[e[t+9]]+"-"+re[e[t+10]]+re[e[t+11]]+re[e[t+12]]+re[e[t+13]]+re[e[t+14]]+re[e[t+15]]).toLowerCase();if(!ne(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var se=function(){var e=C()(S.a.mark((function e(){var t,n,r,a,c,o,i=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]&&i[0],n=i.length>1&&void 0!==i[1]?i[1]:{},r=Object(Z.stringifyUrl)({url:tiobDash.endpoint+(t?"page-templates":"templates"),query:ie(ie({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),n)}),e.prev=3,e.next=6,K()({url:r,method:"GET",parse:!1});case 6:if(!(a=e.sent).ok){e.next=15;break}return e.next=10,a.json();case 10:if(!(c=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:c.message});case 13:return o=a.headers.get("x-wp-totalpages"),e.abrupt("return",{success:!0,total:o,templates:c});case 15:e.next=21;break;case 17:if(e.prev=17,e.t0=e.catch(3),!e.t0.message){e.next=21;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 21:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(){return e.apply(this,arguments)}}(),le=function(){var e=C()(S.a.mark((function e(t,n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(Z.stringifyUrl)({url:tiobDash.endpoint+"templates/"+t,query:ie(ie({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),{},{template_id:t,template_name:n})}),e.prev=1,e.next=4,K()({url:r,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ce()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}(),ue=function(){var e=C()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(Z.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t),query:ie({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},tiobDash.params)}),e.prev=1,e.next=4,K()({url:n,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ce()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=C()(S.a.mark((function e(t){var n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(Z.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/bulk-import"),query:ie({templates:t,cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),e.prev=1,e.next=4,K()({url:n,method:"GET",parse:!1});case 4:if(!(r=e.sent).ok){e.next=14;break}if(!r.message){e.next=8;break}return e.abrupt("return",{success:!1,message:r.message});case 8:return e.next=10,r.json();case 10:if(!(a=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:a.message});case 13:return e.abrupt("return",{success:!0,templates:a});case 14:e.next=20;break;case 16:if(e.prev=16,e.t0=e.catch(1),!e.t0.message){e.next=20;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 20:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),pe=function(){var e=C()(S.a.mark((function e(t){var n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(Z.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t,"/import"),query:ie({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),r={},e.prev=2,e.next=5,K()({url:n,method:"GET",parse:!1});case 5:if(!(a=e.sent).ok){e.next=12;break}return e.next=9,a.json();case 9:if(!(r=e.sent).message){e.next=12;break}return e.abrupt("return",{success:!1,message:r.message});case 12:e.next=18;break;case 14:if(e.prev=14,e.t0=e.catch(2),!e.t0.message){e.next=18;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 18:return e.abrupt("return",{success:!0,templates:[r]});case 19:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(t){return e.apply(this,arguments)}}(),de=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(W.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"})),be=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),fe=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(W.Path,{d:"M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z"})),he=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),ge=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je=function(e){var t=e.sortingOrder,n=e.item,a=e.loadTemplates,c=e.userTemplate,o=e.grid,i=e.onPreview,s=e.onImport,l=e.upsell,u=void 0!==l&&l,m=Object(r.useState)(!1),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(n.template_name),w=y()(j,2),k=w[0],N=w[1],T=function(){var e=C()(S.a.mark((function e(t){var r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),r=n.template_id,a=n.template_name,b("updating"),e.next=5,le(r,k||a).then((function(e){e.success&&(v(!g),b(!1))}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=C()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm(Object(_.__)("Are you sure you want to delete this template?"))){e.next=2;break}return e.abrupt("return",!1);case 2:b("deleteing"),ue(n.template_id).then((function(e){e.success&&(a(ve({page:0},t)),b(!1))}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(){i(n.link)},M=O()("actions",{"no-controls":!c});if(o){var D={backgroundImage:"url(".concat(n.template_thumbnail,")")};return Object(r.createElement)("div",{key:n.template_id,className:"table-grid"},Object(r.createElement)("div",{style:D,className:O()("grid-preview",{"is-loading":g||!1!==d})},Object(r.createElement)("div",{className:"preview-actions"},!c&&n.link&&Object(r.createElement)(E.Button,{isSecondary:!0,disabled:!1!==d,onClick:P},Object(_.__)("Preview")),!u&&Object(r.createElement)(E.Button,{isPrimary:!0,isBusy:"importing"===d,disabled:!1!==d,onClick:s},Object(_.__)("Import")),c&&Object(r.createElement)("div",{className:"preview-controls"},!n.link&&Object(r.createElement)(E.Button,{label:Object(_.__)("Edit"),icon:"updating"===d?de:be,disabled:g||!1!==d,className:O()({"is-loading":"updating"===d}),onClick:function(){return v(!g)}}),Object(r.createElement)(E.Button,{label:Object(_.__)("Delete"),icon:"deleteing"===d?de:fe,disabled:!1!==d,className:O()({"is-loading":"deleteing"===d}),onClick:x})))),Object(r.createElement)("div",{className:"card-footer"},g?Object(r.createElement)("form",{onSubmit:T},Object(r.createElement)(E.TextControl,{value:k,onChange:N}),Object(r.createElement)(E.Button,{type:"submit",label:Object(_.__)("Update"),icon:"updating"===d?de:he,disabled:!1!==d,className:O()({"is-loading":"updating"===d})})):Object(r.createElement)("p",null,k)))}return Object(r.createElement)("div",{key:n.template_id,className:"table-row"},Object(r.createElement)("div",{className:"title"},Object(r.createElement)(E.Icon,{icon:ge}),g?Object(r.createElement)(E.TextControl,{label:Object(_.__)("Template Name"),hideLabelFromVision:!0,value:k,onChange:N}):k),c&&Object(r.createElement)("div",{className:"controls"},n.link?Object(r.createElement)(E.Tooltip,{text:Object(_.__)("This template is synced to a page.")},Object(r.createElement)(E.Button,{label:Object(_.__)("Edit"),icon:be,disabled:!0},Object(_.__)("Edit"))):Object(r.createElement)(E.Button,{label:g?Object(_.__)("Update"):Object(_.__)("Edit"),icon:g?"updating"===d?de:he:be,disabled:!1!==d,className:O()({"is-loading":"updating"===d}),onClick:function(){return g?T:v(!g)}},g?Object(_.__)("Update"):Object(_.__)("Edit")),Object(r.createElement)(E.Button,{label:Object(_.__)("Delete"),icon:"deleteing"===d?de:fe,disabled:!1!==d,className:O()({"is-loading":"deleteing"===d}),onClick:x},"deleting"===d?Object(_.__)("Deleting")+"...":Object(_.__)("Delete"))),Object(r.createElement)("div",{className:M},!c&&n.link&&Object(r.createElement)(E.Button,{isSecondary:!0,disabled:!1!==d,onClick:P},Object(_.__)("Preview")),Object(r.createElement)(E.Button,{isPrimary:!0,isBusy:"importing"===d,onClick:s,disabled:!1!==d},Object(_.__)("Import"))))},ye=function(e){var t=e.isGrid;return Object(r.createElement)("div",{className:"table"},[1,2,3,4,5,6,7,8].map((function(e){return t?Object(r.createElement)("div",{key:e,className:"table-grid"},Object(r.createElement)("div",{className:"grid-preview image is-loading"}),Object(r.createElement)("div",{className:"card-footer"},Object(r.createElement)("p",{className:"title loading",style:{height:14,backgroundColor:"#f3f3f3"}}))):Object(r.createElement)("div",{key:e,className:"table-row"},Object(r.createElement)("p",{className:"title loading",style:{width:"100%",height:14,background:"linear-gradient(to right, #f3f3f3, #ffffff)"}}))})))},Ee=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"})),_e=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),we=Object(r.createElement)(W.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),Se=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"})),ke=n(18);function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te,xe={date:Object(_.__)("Date"),template_name:Object(_.__)("Name"),modified:Object(_.__)("Last Modified")},Pe=function(e){var t=e.isGrid,n=e.setGrid,a=e.isSearch,c=e.searchQuery,o=e.setSearchQuery,i=e.onSearch,s=e.sortingOrder,l=e.setSortingOrder,u=e.changeOrder;return Object(r.createElement)("div",{className:"filters"},Object(r.createElement)("div",{className:"header-form"},Object(r.createElement)("div",{className:"display-sorting"},Object(r.createElement)("div",{className:"sorting-label"},Object(_.__)("Sort by")),Object(r.createElement)("div",{className:"sorting-filter"},Object.keys(xe).map((function(e){return Object(r.createElement)(E.Button,{key:e,className:O()({"is-selected":e===s.orderby,"is-asc":"ASC"===s.order}),onClick:function(){var t={order:"DESC",orderby:e};e===s.orderby&&"DESC"===s.order&&(t.order="ASC"),l(Ne({},t)),u(Ne({},t))}},xe[e])})))),Object(r.createElement)("div",{className:"display-filters"},Object(r.createElement)("div",{className:"display-filters__search"},Object(r.createElement)("input",{placeholder:Object(_.__)("Search"),value:c,onChange:function(e){return o(e.target.value)},onKeyDown:function(e){e.keyCode===ke.ENTER&&i()}}),a?Object(r.createElement)(E.Button,{label:Object(_.__)("Clear search query"),icon:Ee,onClick:function(){o(""),i("")}}):Object(r.createElement)(E.Button,{label:Object(_.__)("Search"),icon:_e,onClick:function(){return i()}})),Object(r.createElement)(E.Button,{label:Object(_.__)("List View"),icon:we,onClick:function(){return n(!1)},isPressed:!t}),Object(r.createElement)(E.Button,{label:Object(_.__)("Grid View"),icon:Se,onClick:function(){return n(!0)},isPressed:t}))))},Me=function(e){var t=e.title,n=e.leftButtons,a=e.rightButtons,c=e.heading,o=e.previewUrl,i=Object(Z.stringifyUrl)({url:o,query:{tpcpreview:"yes"}}),s=t||Object(_.__)("Preview");return Object(r.createElement)("div",{className:"ob-preview single-templates"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{title:s,src:i,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},n&&Object(r.createElement)("div",{className:"navigator"},n),c&&Object(r.createElement)("h2",{className:"heading"},c),a&&Object(r.createElement)("div",{className:"actions"},a)))},De={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},Ie={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Le(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Ae(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Be(e){return function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Le(e)}function Re(e){var t,n="&"+e+";";return(Te=Te||document.createElement("i")).innerHTML=n,(59!==(t=Te.textContent).charCodeAt(t.length-1)||"semi"===e)&&t!==n&&t}var Fe={}.hasOwnProperty,Ue=String.fromCharCode,ze=[void 0,"Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Ve(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getThemeAction;return{siteData:(0,t.getCurrentSite)(),themeData:n()||!1}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setTemplateModal,r=t.setImportModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)}}})))((function(e){var t=e.templatesData,n=e.cancel,a=e.siteData,c=e.themeData,o=e.setModal,i=e.isUserTemplate,s=void 0!==i&&i,l=e.generalTemplates,u=void 0!==l&&l,m=Object(r.useState)(!0),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)([]),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(!1),w=y()(j,2),S=w[0],k=w[1],C=Object(r.useState)([]),N=y()(C,2),T=N[0],x=N[1],P=Object(r.useState)(!1),M=y()(P,2),D=M[0],I=M[1],L=1===t.length;Object(r.useEffect)((function(){s&&L?pe(t[0].template_id).then((function(e){e.success||(e.message?I(e.message):I(!0),b(!1)),v(e.templates),b(!1)})):me(t.map((function(e){return e.template_id}))).then((function(e){if(!e.success)return e.message?I(e.message):I(!0),b(!1),!1;v(e.templates),b(!1)}))}),[t]);var F=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",{className:"is-loading",style:{height:30,marginBottom:30,width:"70%"}}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading",style:{width:"40%"}}))),Object(r.createElement)("div",{className:"modal-footer",style:{marginTop:50}},Object(r.createElement)("span",{className:"is-loading link"}),Object(r.createElement)("span",{className:"is-loading button",style:{width:"150px",marginLeft:"auto"}})))},U=function(e){e.preventDefault(),o(!0)},z=function(){k(!0);var e=t.map((function(e,t){return He(He({},e),g[t])})),n=function(){try{A(e).then((function(e){if(!e.success)return console.log(e.message),!1;x(e.pages),k("done")}))}catch(e){console.log(e)}};if(!c||"general"===e[0].template_site_slug&&"yes"===e[0].premade)return n(),!1;var r=function(e){console.error(e)};if("install"===c.action)return B("neve",(function(){R(c,n,r)}),r),!1;R(c,n,r)},V=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.__)("An error occurred!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},!0===D?Object(_.__)("Please refresh the page and try again."):D))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(){I(!1),n()}},Object(_.__)("Close"))))};return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:d}]),onRequestClose:n,shouldCloseOnClickOutside:!(S&&"done"!==S||d),isDismissible:!(S&&"done"!==S||d)},"done"===S?Object(r.createElement)((function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.__)("Import done!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},L?Object(_.__)("Template was successfully imported!","templates-patterns-collection"):Object(_.__)("Templates were successfully imported!","templates-patterns-collection"))),T&&Object(r.createElement)("ul",{className:"modal-toggles"},T.map((function(e,t){return Object(r.createElement)("li",{className:"option-row",key:t},Object(r.createElement)(E.Icon,{icon:ge,className:"active"}),Object(r.createElement)("span",null,function(e,t={}){var n,r,a,c,o,i,s,l,u,m,p,d,b,f,h,g,O,v,j,y,E,_,w,S,k="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,C=0,N=-1,T="",x=[];t.position&&("start"in t.position||"indent"in t.position?(r=t.position.indent,n=t.position.start):n=t.position),a=n&&n.line||1,c=n&&n.column||1,y=P(),C--;for(;++C<=e.length;)if(10===u&&(c=r&&r[N]||1),38===(u=e.charCodeAt(C))){if(9===(d=e.charCodeAt(C+1))||10===d||12===d||32===d||38===d||60===d||Number.isNaN(d)||k&&d===k){T+=Ue(u),c++;continue}for(g=O=C+1,w=O,35===d?(w=++g,88===(d=e.charCodeAt(w))||120===d?(v="hexadecimal",w=++g):v="decimal"):v="named",o="",h="",l="",j="named"===v?Be:"decimal"===v?Le:Ae,w--;++w<=e.length&&j(d=e.charCodeAt(w));)l+=Ue(d),"named"===v&&Fe.call(De,l)&&(o=l,h=De[l]);(s=59===e.charCodeAt(w))&&(w++,(i="named"===v&&Re(l))&&(o=l,h=i)),_=1+w-O,(s||!1!==t.nonTerminated)&&(l?"named"===v?(s&&!h?M(5,1):(o!==l&&(_=1+(w=g+o.length)-g,s=!1),s||(b=o?1:3,t.attribute?61===(d=e.charCodeAt(w))?(M(b,_),h=null):Be(d)?h=null:M(b,_):M(b,_))),m=h):(s||M(2,_),(S=p=Number.parseInt(l,"hexadecimal"===v?16:10))>=55296&&S<=57343||S>1114111?(M(7,_),m=Ue(65533)):p in Ie?(M(6,_),m=Ie[p]):(f="",Ve(p)&&M(6,_),p>65535&&(f+=Ue((p-=65536)>>>10|55296),p=56320|1023&p),m=f+Ue(p))):"named"!==v&&M(4,_)),m?(D(),y=P(),C=w-1,c+=w-O+1,x.push(m),(E=P()).offset++,t.reference&&t.reference.call(t.referenceContext,m,{start:y,end:E},e.slice(O-1,w)),y=E):(l=e.slice(O-1,w),T+=l,c+=l.length,C=w-1)}else 10===u&&(a++,N++,c=0),Number.isNaN(u)?D():(T+=Ue(u),c++);return x.join("");function P(){return{line:a,column:c,offset:C+(n&&n.offset||0)}}function M(e,n){var r;t.warning&&((r=P()).column+=n,r.offset+=n,t.warning.call(t.warningContext,ze[e],r,e))}function D(){T&&(x.push(T),t.text&&t.text.call(t.textContext,T,{start:y,end:P()}),T="")}}(e.title)),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(E.Button,{isTertiary:!0,href:e.url},Object(_.__)("Visit","templates-patterns-collection")),Object(r.createElement)(E.Button,{isTertiary:!0,href:e.edit},Object(_.__)("Edit","templates-patterns-collection"))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:n},Object(_.__)("Close"))))}),null):Object(r.createElement)((function(){return d?Object(r.createElement)(F,null):D?Object(r.createElement)(V,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(L?
3
  /* translators: name of starter site */
4
  Object(_.__)("Import the %s template","templates-patterns-collection"):
5
  /* translators: name of template */
6
+ Object(_.__)("Import all templates from %s","templates-patterns-collection"),L?t[0].template_name:a.title)),Object(r.createElement)("p",{className:"description"},(Object(r.createElement)("strong",null,Object(_.__)("does not")),L?Object(_.sprintf)(
7
  /* translators: %s the name of the template */
8
+ Object(_.__)("The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"),t[0].template_name):Object(_.__)("All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"))))),Object(r.createElement)("div",{className:"modal-footer"},!u&&Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,disabled:S,onClick:U},Object(_.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",disabled:S,onClick:z},S?Object(_.__)("Importing")+"...":L?Object(_.__)("Import"):Object(_.__)("Import All Pages"))))}),null))})),We=function(){return Object(r.createElement)(W.SVG,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ob-logo"},Object(r.createElement)(W.Path,{d:"M95.0264 100H4.97356C2.22797 100 0 97.772 0 95.0264V4.97356C0 2.22797 2.22797 0 4.97356 0H95.0264C97.772 0 100 2.22797 100 4.97356V95.0264C100 97.772 97.772 100 95.0264 100Z",fill:"#0366D6"}),Object(r.createElement)(W.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(W.Path,{d:"M42.2416 58.9291L42.2528 71.183L53.2352 82.1653L53.1902 47.9806L18.9941 47.9355L29.9765 58.9066L42.2416 58.9291Z",fill:"white"}))};function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ye=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setInstallModalStatus,r=t.setTemplateModal,a=t.setPreviewStatus;return{setPreview:function(e){return a(e)},setInstallModal:function(e){return n(e)},setTemplateModal:r}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentEditor,c=t.getCurrentTab,o=t.getUserStatus;return{templateModal:n(),themeData:r()||!1,editor:a(),currentTab:c(),userStatus:o()}})))((function(e){var t=e.isGeneral,n=e.setPreview,a=e.setTemplateModal,o=e.templateModal,i=e.currentTab,s=e.userStatus,l=e.themeData,u=Object(r.useState)({gutenberg:[],elementor:[]}),m=y()(u,2),p=m[0],d=m[1],b=Object(r.useState)("gutenberg"),f=y()(b,2),h=f[0],g=f[1],v=Object(r.useState)([]),j=y()(v,2),w=j[0],k=j[1],N=Object(r.useState)(t),T=y()(N,2),x=T[0],P=T[1],M=Object(r.useState)(""),D=y()(M,2),I=D[0],L=D[1],A=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),B=y()(A,2),R=B[0],F=B[1],U=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),z=y()(U,2),V=z[0],H=z[1],W=Object(r.useState)(!1),J=y()(W,2),K=J[0],Z=J[1],X=Object(r.useState)(!1),ee=y()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(!1),ae=y()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(""),le=y()(ie,2),ue=le[0],me=le[1],pe=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),de=y()(pe,2),be=de[0],fe=de[1];Object(r.useEffect)((function(){Z(!0),L(""),F({gutenberg:0,elementor:0,beaver:0}),H({gutenberg:0,elementor:0,beaver:0}),ge()}),[t,h]);var he={gutenberg:{label:Object(_.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(_.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(_.__)("Beaver"),icon:"beaver.jpg"}},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Qe({page:R[h],per_page:12,type:h},e);t&&(n.template_site_slug="general",n.premade=!0),I&&(n.search=I),se(t,n).then((function(e){d(Qe(Qe({},p),{},c()({},h,e.templates))),H(Qe(Qe({},V),{},c()({},h,e.total))),Z(!1)}))},Oe=function(){var e=C()(S.a.mark((function e(){var n,r,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:R[h]+1,oe(!0),F(Qe(Qe({},R),{},c()({},h,n))),r={page:n,per_page:12,type:h},t&&(r.template_site_slug="general",r.premade=!0),I&&(r.search=I),e.next=8,se(t,r).then((function(e){d(Qe(Qe({},p),{},c()({},h,[].concat($()(p[h]),$()(e.templates))))),H(Qe(Qe({},V),{},c()({},h,e.total)))}));case 8:oe(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ve=function(e){me(e),n(!0)},Ee=function(e){k([e]),a(!0)},_e=p[h]&&p[h].findIndex((function(e){return e.link===ue})),we=p[h]&&p[h].find((function(e){return ue===e.link})),Se=O()("cloud-items",{"is-grid":x||!s&&!t,"is-dummy":!s&&!t||!1!==l}),ke=function(){return t?be.templates:be.library},Ce=function(){var e=C()(S.a.mark((function e(n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Z(!0),r=Qe({search:I,type:h},n),t&&(r.template_site_slug="general",r.premade=!0),se(t,r).then((function(e){d(Qe(Qe({},p),{},c()({},h,$()(e.templates)))),H(Qe(Qe({},V),{},c()({},h,e.total))),Z(!1)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(e){var t=e.title,n=e.description,a=e.showUpgradeBtn,c=void 0===a||a;return Object(r.createElement)("div",{className:Se},Object(r.createElement)("div",{className:"table"},$()(Array(12)).map((function(e,t){return Object(r.createElement)(je,{sortingOrder:ke(),onPreview:ve,userTemplate:!1,key:t,item:{},grid:!0})}))),Object(r.createElement)("div",{className:"upsell-modal-overlay"},Object(r.createElement)("div",{className:"upsell-modal"},Object(r.createElement)("div",{className:"upsell-modal-content"},Object(r.createElement)("div",{className:"info"},Object(r.createElement)("h3",null,t),Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:n}}),c&&Object(r.createElement)(E.Button,{variant:"primary",isPrimary:!0,href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=upgradetoprobtn and https://themeisle.com/themes/neve/neve-upgrade-new/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=changeplanbtn",target:"_blank"},Object(_.__)("Upgrade to PRO"))),Object(r.createElement)("div",{className:"icon"},Object(r.createElement)(E.Icon,{icon:We}))))))};return!1!==l?Object(r.createElement)(Ne,{title:Object(_.__)("Coming soon"),description:Object(_.sprintf)(// translators: %1$s: Theme Name %2$s Plugin Name.
9
+ Object(_.__)("Right now this feature is not available with your current setup. if you want to use it, you need to install %1$s theme and %2$s plugin","template-patterns-collection"),'<a href="'.concat("https://wordpress.org/themes/neve/",'" target="_blank" rel="noreferrer">Neve</a>'),'<a href="'.concat("https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=upgradetoprobtn and https://themeisle.com/themes/neve/neve-upgrade-new/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=changeplanbtn",'" target="_blank" rel="noreferrer">Neve Pro Addon</a>')),showUpgradeBtn:!1}):s||t?Object(r.createElement)("div",{className:Se},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(he).map((function(e){return Object(r.createElement)("a",{key:e,href:"#",onClick:function(){g(e),ne(!1)},className:O()("tab",{active:h===e})},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:window.tiobDash.assets+"img/"+he[e].icon,alt:he[e].label})),Object(r.createElement)("span",{className:"editor"},he[e].label))}))),Object(r.createElement)(Pe,{currentTab:i,isGrid:x,setGrid:P,isSearch:te,searchQuery:I,setSearchQuery:L,onSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;Z(!0),ne(!!e);var n=Qe({search:e,type:h},ke());t&&(n.template_site_slug="general",n.premade=!0),se(t,n).then((function(e){d(Qe(Qe({},p),{},c()({},h,$()(e.templates)))),H(Qe(Qe({},V),{},c()({},h,e.total))),Z(!1)}))},sortingOrder:ke(),setSortingOrder:function(e){return fe(Qe(Qe({},be),{},t?{templates:e}:{library:e}))},changeOrder:Ce}),K&&Object(r.createElement)(ye,{isGrid:x}),!K&&(p[h]&&p[h].length>0?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"table"},p[h].map((function(e){return Object(r.createElement)(je,{sortingOrder:ke(),onPreview:ve,userTemplate:!t,key:e.template_id,item:e,loadTemplates:ge,onImport:function(){return Ee(e)},grid:x})}))),Object(r.createElement)(G.a,{onChange:function(e){if(!e)return!1;Number(V[h])>R[h]&&Oe()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),ce&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(E.Spinner,null))):Object(r.createElement)("div",{className:"empty-information"},Object(r.createElement)("img",{src:window.tiobDash.assets+"/img/layout.jpg",alt:Object(_.__)("No Templates Found")}),Object(r.createElement)("h3",null,Object(_.__)("There are no templates yet")),Object(r.createElement)("p",null,Object(_.__)("You can add a page or post to the cloud by accessing it with the WordPress or Elementor/Beaver editor. Learn more about this in our docs.")),Object(r.createElement)(E.Button,{variant:"secondary",isSecondary:!0,href:"https://docs.themeisle.com/article/1354-neve-template-cloud-library?utm_medium=nevedashboard&utm_source=templatecloud&utm_campaign=neve&utm_content=learnmore",target:"_blank"},Object(_.__)("Learn more")))),ue&&Object(r.createElement)(Me,{previewUrl:ue,rightButtons:Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return Ee(we)}},Object(_.__)("Import Template")),heading:we.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:q,onClick:function(){me(""),n(!1)}}),p[h].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:Y,onClick:function(){var e=_e-1;0===_e&&(e=p[h].length-1),me(p[h][e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Y:Q,onClick:function(){var e=_e+1;_e===p[h].length-1&&(e=0),me(p[h][e].link)}})))})),o&&w&&!K&&w.length>0&&Object(r.createElement)(Ge,{generalTemplates:!0,isUserTemplate:!t,templatesData:w})):Object(r.createElement)(Ne,{title:Object(_.__)("Templates Cloud is a PRO Feature"),description:Object(_.__)("Unlock the Templates Cloud features and save your pages or posts in the cloud.")})})),Je=[Object(_.__)("Business","templates-patterns-collection"),Object(_.__)("Ecommerce","templates-patterns-collection"),Object(_.__)("Fashion","templates-patterns-collection"),Object(_.__)("Blogging","templates-patterns-collection"),Object(_.__)("Photography","templates-patterns-collection")],Ke={all:Object(_.__)("All Categories"),free:Object(_.__)("Free"),business:Object(_.__)("Business"),portfolio:Object(_.__)("Portfolio"),woocommerce:Object(_.__)("WooCommerce"),blog:Object(_.__)("Blog"),personal:Object(_.__)("Personal"),other:Object(_.__)("Other")},Ze={gutenberg:{icon:"gutenberg.jpg",niceName:"Gutenberg"},elementor:{icon:"elementor.jpg",niceName:"Elementor"}},Xe=(Object(r.createElement)(r.Fragment,null,"Beaver ",Object(r.createElement)("span",{className:"long-name"},"Builder")),Object(r.createElement)(r.Fragment,null,"Thrive ",Object(r.createElement)("span",{className:"long-name"},"Architect")),function(e){var t=e.currentStep,n=e.progress,a=e.willDo,c={cleanup:{label:Object(_.__)("Cleanup previous Import","templates-patterns-collection"),status:n.cleanup,willDo:a.cleanup},theme_install:{label:Object(_.__)("Installing and Activating the Theme","templates-patterns-collection"),status:n.theme_install,willDo:a.theme_install},plugins:{label:Object(_.__)("Installing Plugins","templates-patterns-collection"),status:n.plugins,willDo:!0},content:{label:Object(_.__)("Importing Content","templates-patterns-collection"),status:n.content,willDo:a.content},customizer:{label:Object(_.__)("Importing Customizer Settings","templates-patterns-collection"),status:n.customizer,willDo:a.customizer},widgets:{label:Object(_.__)("Importing Widgets","templates-patterns-collection"),status:n.widgets,willDo:a.widgets}};return Object(r.createElement)("ul",{className:"stepper"},Object.keys(c).map((function(e,n){var a=c[e],o=a.label,i=a.status;if(!a.willDo)return null;var s=O()(["icon",{loading:t===e,warning:t===e,success:"done"===i,error:"error"===i,skip:"skip"===i}]),l="clock";return t===e&&(l="update"),"done"===i&&(l="yes"),"error"===i&&(l="no-alt"),Object(r.createElement)("li",{key:n},Object(r.createElement)("span",{className:s},Object(r.createElement)(E.Dashicon,{icon:l,className:t===e?"loading":""})),Object(r.createElement)("span",null,o))})))}),et=n(19),tt=n.n(et),nt=function(e){return tt()(e),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("span",{className:"title is-loading",style:{height:35,marginBottom:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20,marginBottom:20}})),Object(r.createElement)("div",{className:"well is-loading"},Object(r.createElement)("span",{className:"title is-loading",style:{height:20}}),Object(r.createElement)("ol",null,Object(r.createElement)("li",null),Object(r.createElement)("li",null),Object(r.createElement)("li",null))),Object(r.createElement)("div",{className:"modal-toggles components-panel"},[1,2].map((function(e){return Object(r.createElement)("div",{key:e,className:"components-panel__body options general is-opened"},Object(r.createElement)("span",{className:"title is-loading"}),Object(r.createElement)("ul",null,[1,2,3].map((function(e){return Object(r.createElement)("li",{className:"option-row",key:e},Object(r.createElement)("div",{className:"mock-icon is-loading"}),Object(r.createElement)("span",{className:"is-loading"}),Object(r.createElement)("div",{className:"toggle is-loading"}))}))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)("span",{className:"link is-loading"}),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import is-loading"})))},rt=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),at=function(e){var t=e.children,n=e.className,a=O()([n,"tiob-tooltip-wrap"]);return Object(r.createElement)("div",{className:a},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault()},className:"tiob-tooltip-toggle",icon:rt,isLink:!0,isSmall:!0}),Object(r.createElement)("div",{className:"tiob-tooltip-content"},t))};function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var it=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentSite,a=t.getThemeAction;return{editor:n(),siteData:r(),themeData:a()||!1}})),Object(h.withDispatch)((function(e,t){var n=t.siteData,r=e("neve-onboarding"),a=r.setTemplateModal,c=r.setSingleTemplateImport,o=r.setImportModalStatus,i=r.setThemeAction;return{setModal:function(e){return o(e)},setThemeAction:function(e){return i(e)},runTemplateImport:function(){c(n.slug),a(!0),o(!1)}}})))((function(e){var t=e.setModal,n=e.setThemeAction,a=e.editor,o=e.siteData,i=e.themeData,s=e.runTemplateImport,l=Object(r.useState)({content:!0,customizer:!0,widgets:!0,cleanup:!1,theme_install:!1!==i}),u=y()(l,2),m=u[0],p=u[1],d=Object(r.useState)(!1),b=y()(d,2),f=b[0],h=b[1],g=Object(r.useState)(!1),v=y()(g,2),j=v[0],w=v[1],S=Object(r.useState)(!1),k=y()(S,2),C=k[0],x=k[1],P=Object(r.useState)(!1),M=y()(P,2),D=M[0],A=M[1],z=Object(r.useState)(!1),V=y()(z,2),$=V[0],H=V[1],G=Object(r.useState)(!1),W=y()(G,2),q=W[0],Q=W[1],Y=Object(r.useState)(null),J=y()(Y,2),K=J[0],Z=J[1],X=Object(r.useState)(null),ee=y()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(!1),ae=y()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(null),se=y()(ie,2),le=se[0],ue=se[1],me=Object(r.useState)(null),pe=y()(me,2),de=pe[0],be=pe[1],fe=Object(r.useState)(null),he=y()(fe,2),ge=he[0],Oe=he[1],ve=Object(r.useState)(!0),je=y()(ve,2),ye=je[0],Ee=je[1],_e=Object(r.useState)(!0),we=y()(_e,2),Se=we[0],ke=we[1],Ce=Object(r.useState)(!0),Ne=y()(Ce,2),Te=Ne[0],xe=Ne[1],Pe=Object(r.useState)(!0),Me=y()(Pe,2),De=Me[0],Ie=Me[1],Le=tiobDash,Ae=Le.license,Be=Le.cleanupAllowed,Re=Object(r.useState)(Be),Fe=y()(Re,2),Ue=Fe[0],ze=Fe[1];function Ve(){R(i,(function(){console.log("[D] Theme Activate."),h("done"),n(!1),He()}),(function(){Ye(Object(_.__)("Could not activate theme.","templates-patterns-collection"),"theme_install")}))}function $e(){return i?"install"===i.action?(ne("theme_install"),console.log("[P] Theme Install."),B("neve",(function(){n(ot(ot({},i),{},{action:"activate"})),console.log("[D] Theme Install."),Ve()}),(function(e){n(ot(ot({},i),{},{action:"activate"})),Ye(e.errorMessage||Object(_.__)("Could not install theme.","templates-patterns-collection"),"theme_install")})),!1):(ne("theme_install"),console.log("[P] Theme Activate."),void Ve()):(console.log("[S] Theme."),He(),!1)}function He(){if(!le)return console.log("[S] Plugins."),Ge(),!1;ne("plugins"),console.log("[P] Plugins."),L(le).then((function(e){if(!e.success)return Ye(e,"plugins"),!1;console.log("[D] Plugins."),x("done"),Ge()})).catch((function(e){return Ye(e,"plugins")}))}function Ge(){if(!m.content)return console.log("[S] Content."),We(),!1;var e;ne("content"),console.log("[P] Content."),(e={contentFile:ge.content_file,source:"remote",frontPage:ge.front_page,shopPages:ge.shop_pages,demoSlug:ge.slug,editor:a},N(I.root+"/import_content",e)).then((function(e){if(!e.success)return Ye(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&Z(e.frontpage_id),A("done"),We()})).catch((function(e){return Ye(e,"content")}))}function We(){if(!m.customizer)return console.log("[S] Customizer."),qe(),!1;var e;ne("customizer"),console.log("[P] Customizer."),(e={source_url:ge.url,theme_mods:ge.theme_mods,wp_options:ge.wp_options},N(I.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return Ye(e,"customizer"),!1;console.log("[D] Customizer."),H("done"),qe()})).catch((function(e){return Ye(e,"customizer")}))}function qe(){if(!m.widgets)return console.log("[S] Widgets."),Qe(),!1;var e;ne("widgets"),console.log("[P] Widgets."),(e=ge.widgets,N(I.root+"/import_widgets",e)).then((function(e){if(!e.success)return Ye(e,"widgets"),!1;console.log("[D] Widgets."),Q("done"),Qe()})).catch((function(e){return Ye(e,"widgets")}))}function Qe(){ne("done"),ze("yes"),tiobDash.cleanupAllowed="yes",oe(!1)}function Ye(e,t){oe(!1),ne(null),"cleanup"===t&&x("skip"),"plugins"===t&&A("skip"),["content","plugins"].includes(t)&&H("skip"),["content","plugins","customizer"].includes(t)&&Q("skip");var n={cleanup:Object(_.__)("Something went wrong while cleaning the previous import.","templates-patterns-collection"),plugins:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection"),content:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection"),customizer:Object(_.__)("Something went wrong while updating the customizer settings.","templates-patterns-collection"),widgets:Object(_.__)("Something went wrong while importing the widgets.","templates-patterns-collection")};switch(t){case"cleanup":w("error");break;case"plugins":x("error");break;case"content":A("error");break;case"customizer":H("error");break;case"widgets":Q("error")}be(e.data?{message:n[t],code:e.data}:{message:n[t]})}Object(r.useEffect)((function(){var e=o.remote_url||o.url,t=new URL("".concat(function(e){return e.replace(/\/$/,"")}(e)+"/","wp-json/ti-demo-data/data"));t.searchParams.append("license",Ae?Ae.key:"free"),T(t,!0,!1).then((function(e){e.ok||(be({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_response"}),Ee(!1)),e.json().then((function(e){Oe(ot(ot({},e),o));var t=ot({},e.mandatory_plugins||{}),n=ot({},e.recommended_plugins||{}),r=e.default_off_recommended_plugins||[];Object.keys(t).forEach((function(e){t[e]=!0})),Object.keys(n).forEach((function(e){n[e]=!r.includes(e)})),ue(ot(ot({},n),t)),Ee(!1)}))})).catch((function(){be({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_catch"}),Ee(!1)}))}),[]);var Je=function(){if(ce)return!1;t(!1)},Ke=!o.external_plugins||o.external_plugins.every((function(e){return!0===e.active})),Ze=Object.keys(m).every((function(e){return!1===m[e]})),et={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(K,"&action=elementor"),brizy:"".concat(tiobDash.onboarding.homeUrl,"/?brizy-edit"),"beaver builder":"".concat(tiobDash.onboarding.homeUrl,"/?fl_builder"),"thrive architect":"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(K,"&action=architect&tve=true"),"divi builder":"".concat(tiobDash.onboarding.homeUrl,"/?et_fb=1&PageSpeed=off"),gutenberg:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(K,"&action=edit")}[a];return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:ye}]),onRequestClose:Je,shouldCloseOnClickOutside:!ce&&!ye,isDismissible:!ce&&!ye},ye?Object(r.createElement)(nt,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},ce||"done"===te||de?Object(r.createElement)(r.Fragment,null,de&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(U,{message:de.message||null,code:de.code||null}),Object(r.createElement)("hr",null)),null!==te&&Object(r.createElement)(Xe,{progress:{theme_install:f,cleanup:j,plugins:C,content:D,customizer:$,widgets:q},currentStep:te,willDo:m}),"done"===te&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),Object(r.createElement)("hr",null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(
10
  /* translators: name of starter site */
11
+ Object(_.__)("Import %s as a complete site","templates-patterns-collection"),ge.title)),Object(r.createElement)("p",{className:"description"},Object(_.__)("Import the entire site including customizer options, pages, content and plugins.","templates-patterns-collection")))}),null),Object(r.createElement)((function(){return Object(r.createElement)(F,{data:ge,externalInstalled:Ke})}),null),Object(r.createElement)(E.Panel,{className:"modal-toggles"},!1!==i&&Object(r.createElement)((function(){var e=O()("option-row","active"),t={icon:"admin-appearance",title:Object(_.__)("Neve","templates-patterns-collection"),tooltip:Object(_.__)("In order to import the starter site, Neve theme has to be installed and activated.","templates-patterns-collection")},n=t.icon,a=t.title,c=t.tooltip;return Object(r.createElement)(E.PanelBody,{onToggle:function(){Ie(!De)},opened:De,className:"options general",title:Object(_.__)("Install required theme","templates-patterns-collection")},Object(r.createElement)(E.PanelRow,{className:e},Object(r.createElement)(E.Icon,{icon:n}),Object(r.createElement)("span",null,a),c&&Object(r.createElement)(at,null,c)))}),null),Object(r.createElement)((function(){var e={content:{title:Object(_.__)("Content","templates-patterns-collection"),icon:"admin-post",tooltip:Object(_.__)("We recommend you backup your website content before attempting a full site import.","templates-patterns-collection")},customizer:{title:Object(_.__)("Customizer","templates-patterns-collection"),icon:"admin-customizer"},widgets:{title:Object(_.__)("Widgets","templates-patterns-collection"),icon:"admin-generic",tooltip:Object(_.__)("Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there.","templates-patterns-collection")}};return"yes"===Ue&&(e=ot({cleanup:{icon:"trash",title:Object(_.__)("Cleanup previous import","templates-patterns-collection"),tooltip:Object(_.__)("This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import","templates-patterns-collection")}},e)),Object(r.createElement)(E.PanelBody,{onToggle:function(){xe(!Te)},opened:Te,className:"options general",title:Object(_.__)("Import settings","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:m[t]}),o=e[t],i=o.icon,s=o.title,l=o.tooltip;return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:i}),Object(r.createElement)("span",null,s),l&&Object(r.createElement)(at,null,l),"theme_install"!==t&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:m[t],onChange:function(){p(ot(ot({},m),{},c()({},t,!m[t])))}})))})))}),null),Object(r.createElement)((function(){if(ye)return null;var e=ot(ot({},ge.recommended_plugins||{}),ge.mandatory_plugins||{});return Object(r.createElement)(E.PanelBody,{onToggle:function(){ke(!Se)},opened:Se,className:"options plugins",title:Object(_.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:le[t]});return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:"admin-plugins"}),Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:e[t]}}),t in ge.recommended_plugins&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:le[t],onChange:function(){ue(ot(ot({},le),{},c()({},t,!le[t])))}})))})))}),null)))),!ce&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==te?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,onClick:s},Object(_.__)("I want to import just the templates","templates-patterns-collection")),!de&&Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,disabled:Ze||!Ke,onClick:function(){oe(!0),function(){if(console.clear(),!m.cleanup)return console.log("[S] Cleanup."),$e(),!1;var e;ne("cleanup"),console.log("[P] Cleanup."),(e={},N(I.root+"/cleanup",e)).then((function(e){if(!e.success)return Ye(e,"cleanup"),!1;console.log("[D] Cleanup."),w("done"),$e()})).catch((function(e){return Ye(e,"cleanup")}))}()}},Object(_.__)("Import entire site","templates-patterns-collection"))):Object(r.createElement)("div",{className:"import-done-actions"},Object(r.createElement)(E.Button,{isLink:!0,className:"close",onClick:Je},Object(_.__)("Back to Sites Library","templates-patterns-collection")),Object(r.createElement)(E.Button,{isSecondary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",href:et},Object(_.__)("Add your own content","templates-patterns-collection"))))))})),st=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setSingleTemplateImport,r=t.setImportModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setTemplateModal:t.setTemplateModal}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getCurrentSite,a=t.getCurrentEditor;return{templateModal:n(),site:r(),editor:a()}})))((function(e){var t=e.slug,n=e.cancel,a=e.setModal,c=e.site,o=e.editor,i=e.setTemplateModal,s=e.templateModal,l=Object(r.useState)([]),u=y()(l,2),m=u[0],p=u[1],d=Object(r.useState)(!0),b=y()(d,2),f=b[0],h=b[1],g=Object(r.useState)(""),O=y()(g,2),v=O[0],j=O[1],w=Object(r.useState)([]),S=y()(w,2),k=S[0],C=S[1],N=c.title,T=c.upsell,x=c.utmOutboundLink;Object(r.useEffect)((function(){P()}),[]);var P=function(){se(!0,{per_page:100,template_site_slug:t,premade:!0,type:o}).then((function(e){p(e.templates||[]),h(!1)}))},M=function(e){j(e)},D=function(e){C(e),i(!0)},I=function(e){D([e])},L=function(e){e.preventDefault(),a(!0)},A=m.findIndex((function(e){return e.link===v})),B=m.find((function(e){return e.link===v}));return Object(r.createElement)("div",{className:"single-templates-wrapper"},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"breadcrumb"},Object(r.createElement)(E.Button,{isTertiary:!0,onClick:n},Object(r.createElement)(E.Icon,{icon:Y}),Object(_.__)("Back to Starter Sites"))),Object(r.createElement)("div",{className:"header"},Object(r.createElement)("div",{className:"text"},Object(r.createElement)("h1",null,N||"",T&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Icon,{icon:"lock"}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))),Object(r.createElement)("p",{className:"description"},Object(_.__)("You can import individual pages or bulk-import all of them."))),Object(r.createElement)("div",{className:"actions"},!T&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:L},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:m.length<1,onClick:function(e){e.preventDefault(),D(m)}},Object(_.__)("Import All Pages"))),T&&Object(r.createElement)(E.Button,{href:x||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade"))))),Object(r.createElement)((function(){return f?Object(r.createElement)(E.Spinner,null):m.length<1?Object(_.__)("No templates for this starter site."):Object(r.createElement)("div",{className:"cloud-items is-grid"},Object(r.createElement)("div",{className:"table"},m.map((function(e){return Object(r.createElement)(je,{upsell:T,onPreview:M,userTemplate:!1,key:e.template_id,item:e,loadTemplates:P,onImport:function(){return I(e)},grid:!0})}))))}),null),v&&Object(r.createElement)(Me,{heading:B.template_name||null,previewUrl:v,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:q,onClick:function(){return j("")},label:Object(_.__)("Close","templates-patterns-collection")}),m.length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:Y,onClick:function(){var e=A-1;0===A&&(e=m.length-1),j(m[e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Y:Q,onClick:function(){var e=A+1;A===m.length-1&&(e=0),j(m[e].link)}}))),rightButtons:Object(r.createElement)(r.Fragment,null,!T&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:L},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:m.length<1,onClick:function(){return I(B)}},Object(_.__)("Import Page"))),T&&Object(r.createElement)(E.Button,{href:x||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade")))}),s&&k&&!f&&k.length>0&&Object(r.createElement)(Ge,{templatesData:k}))})),lt=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c={starterSites:Object(_.__)("Starter Sites","templates-patterns-collection"),pageTemplates:Object(_.__)("Page Templates","templates-patterns-collection"),library:Object(_.__)("My Library","templates-patterns-collection")},o=Object(r.useState)(!1),i=y()(o,2),s=i[0],l=i[1],u=function(){var e=function(e){var t=window.location.hash;return"string"!=typeof window.location.hash?null:(t=t.substring(1),Object.keys(e).includes(t)?t:null)}(c);if(null!==e){var n=document.getElementById("menu-appearance"),r=n.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]'),a=n.querySelector('a[href="themes.php?page=tiob-starter-sites"]');if(r&&a){var o=r.parentElement,i=a.parentElement;n.querySelector(".current").classList.remove("current"),o.classList.remove("current"),"library"===e?o.classList.add("current"):i.classList.add("current")}t(e)}};return Object(r.useEffect)((function(){u(),window.addEventListener("hashchange",u)}),[]),Object(r.createElement)("div",{className:"header-nav"},Object.keys(c).map((function(e){return Object(r.createElement)(E.Button,{href:"#"+e,key:e,isTertiary:!0,isPressed:e===n,onClick:function(n){var r;n.preventDefault(),t(e),r=e,window.location.hash=r}},c[e])})),"starterSites"!==n&&Object(r.createElement)(E.Button,{icon:de,onClick:function(){l(!0),localStorage.setItem("tpcCacheBuster",ce());var e=n;t(null),setTimeout((function(){t(e),l(!1)}),100)},label:Object(_.__)("Re-sync Library"),className:O()("is-sync",{"is-loading":s}),disabled:a||s,"data-content":Object(_.__)("Sync")}))},ut=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState;return{cancelOnboarding:function(){n(!1)},setCurrentTab:t.setCurrentTab,setFetching:t.setFetching}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getCurrentTab,a=t.getFetching;return{isOnboarding:n(),currentTab:r(),isFetching:a()}})))((function(e){var t=e.isOnboarding,n=e.cancelOnboarding,a=e.setCurrentTab,c=e.currentTab;return Object(r.createElement)("div",{className:"ob-head"},!t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"header-container"},Object(r.createElement)("h2",null,!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:We}),Object(r.createElement)("span",null,Object(_.__)("Templates Cloud","templates-patterns-collection"))),Object(r.createElement)(lt,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(E.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),mt=n(20),pt=n.n(mt),dt=Object(v.compose)(Object(h.withDispatch)((function(e,t){var n=t.data,r=n.slug,a=e("neve-onboarding"),c=a.setCurrentSite,o=a.setPreviewStatus,i=a.setImportModalStatus,s=a.setSingleTemplateImport;return{setSite:function(){return c(n)},setPreview:function(e){return o(e)},setModal:function(e){return i(e)},setImportingPages:function(){return s(r)}}})))((function(e){var t=e.data,n=e.setSite,a=e.setPreview,c=e.setModal,o=e.setImportingPages,i=t.upsell,s=t.screenshot,l=t.title,u=t.has_templates,m=t.isNew,p=Object(r.useState)(""),d=y()(p,2),b=d[0],f=d[1],h=O()("card starter-site-card",{"has-templates":u});return Object(r.createElement)("div",{onMouseEnter:function(){f("visible")},onMouseLeave:function(){f("")},className:h},m&&Object(r.createElement)("span",{className:"new-badge"},Object(_.__)("New","templates-patterns-collection").toUpperCase()),Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"actions "+b},Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(e){e.preventDefault(),n(),a(!0)}},Object(_.__)("Preview","templates-patterns-collection")),!i&&Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(e){e.preventDefault(),n(),c(!0)}},Object(_.__)("Import","templates-patterns-collection")),!u&&i&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",target:"_blank",href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=unlockprobtn"},Object(_.__)("Unlock access with Business plan","templates-patterns-collection")),u&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",onClick:function(e){e.preventDefault(),n(),o()}},Object(_.__)("View Pages","templates-patterns-collection"))),s&&Object(r.createElement)("div",{className:"image",style:{backgroundImage:'url("'.concat(s,'")')}})),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},l),i&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Dashicon,{icon:"lock",size:15}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))))})),bt=Object(v.compose)(Object(h.withSelect)((function(e){return{siteData:(0,e("neve-onboarding").getCurrentSite)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentSite,r=t.setPreviewStatus,a=t.setImportModalStatus;return{setSite:function(e){return n(e)},setPreview:function(e){return r(e)},setModal:function(e){return a(e)}}})))((function(e){var t=e.next,n=e.prev,a=e.siteData,c=e.setSite,o=e.setPreview,i=e.setModal;return Object(r.createElement)("div",{className:"ob-preview"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{src:a.url,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},Object(r.createElement)("div",{className:"navigator"},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),o(!1),c(null)},className:"close",label:Object(_.__)("Close","templates-patterns-collection"),icon:q}),n&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(n)},className:"prev",label:Object(_.__)("Previous","templates-patterns-collection"),icon:Object(_.isRTL)()?Q:Y}),t&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(t)},className:"next",label:Object(_.__)("Next","templates-patterns-collection"),icon:Object(_.isRTL)()?Y:Q})),Object(r.createElement)("div",{className:"actions"},a.upsell?Object(r.createElement)(E.Button,{className:"upgrade",isPrimary:!0,href:a.utmOutboundLink||tiobDash.upgradeURL},Object(_.__)("Upgrade and Import","templates-patterns-collection")):Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,onClick:function(e){e.preventDefault(),i(!0)}},Object(_.__)("Import","templates-patterns-collection")))))})),ft=function(e){var t=e.editor,n=e.data,a=n.text,c=n.cta,o=n.url;return Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"notification"},Object(r.createElement)("p",null,a),o&&c&&Object(r.createElement)(E.Button,{target:"_blank",isSecondary:!0,href:o.replace("<builder_name>",t).replace(" ","")},c))}),null)},ht=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentCategory,r=t.getCurrentEditor,a=t.getSearchQuery;return{editor:r(),category:n(),query:a()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentCategory,r=t.setCurrentEditor,a=t.setSearchQuery;return{setCurrentCategory:function(e){return n(e)},setCurrentEditor:function(e){return r(e)},onSearch:function(e){return a(e)}}})))((function(e){var t=e.count,n=(e.categories,e.editors),a=e.onSearch,c=(e.category,e.editor),o=e.onlyProSites,i=(e.setCurrentCategory,e.setCurrentEditor),s=e.query,l=e.className,u=e.showCount,m=void 0!==u&&u,p=Object(r.useState)(!1),d=y()(p,2),b=d[0],f=d[1],h=function(){return f(!b)},g=O()(l,"header-form");return Object(r.createElement)("div",{className:g},Object(r.createElement)("div",{className:"search"},Object(r.createElement)("img",{src:tiobDash.assets+"/img/search.svg",alt:Object(_.__)("Search Icon")}),Object(r.createElement)("input",{onChange:function(e){a(e.target.value)},type:"search",value:s,placeholder:Object(_.__)("Search for a starter site","templates-patterns-collection")+"..."}),!1,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"ob-dropdown categories-selector"},Object(r.createElement)(E.Button,{onClick:h,className:"select ob-dropdown"},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[c].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(c)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px",marginLeft:"0"}}),n[c].niceName),Object(r.createElement)(E.Dashicon,{size:14,icon:b?"arrow-up-alt2":"arrow-down-alt2"}),b&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:h,noArrow:!0},b&&Object(r.createElement)("ul",{className:"options"},Object.keys(n).map((function(e,a){return e===c?null:Object(r.createElement)("li",{key:a},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),i(e),f(!1)}},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),n[e].niceName),m&&Object(r.createElement)("span",{className:"count"},t[e])))}))))))}),null)))})),gt=(Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.editor,c=e.setCurrentEditor,o=e.sites,i=e.isSmall,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=Object.keys(o),d=function(){return m(!u)},b=O()(["ob-dropdown","editor-selector",{small:i}]);return Object(r.createElement)("div",{className:b},Object(r.createElement)(E.Button,{onClick:d,className:"select ob-dropdown"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[a].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),!i&&Object(r.createElement)("span",null,t[a].niceName),Object(r.createElement)("span",{className:"count"},n[a]),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:d,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},p.map((function(e,o){return e===a?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),Object(r.createElement)("span",null,t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.onlyProSites,c=e.editor,o=e.setCurrentEditor,i=e.sites,s=Object.keys(i);return Object(r.createElement)("div",{className:"editor-tabs"},s.map((function(e,i){var s=O()(["tab",e,{active:e===c}]);return Object(r.createElement)("a",{key:i,href:"#",className:s,onClick:function(t){t.preventDefault(),o(e)}},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),Object(r.createElement)("span",{className:"editor"},a.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e]))})))})),Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=e.showCount,i=void 0!==o&&o;return Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(t).map((function(e,o){if(1>n[e])return null;if(tiobDash&&"1"===tiobDash.isValidLicense&&"free"===e)return null;var s=O()(["tab",e,{active:e===a}]);return Object(r.createElement)("a",{key:o,href:"#",className:s,onClick:function(t){t.preventDefault(),c(e)}},Object(r.createElement)("span",{className:"editor"},t[e]),i&&Object(r.createElement)("span",{className:"count"},n[e]))})))}))),Ot=Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=e.showCount,i=void 0!==o&&o,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=function(){return m(!u)},d=O()(["ob-dropdown","editor-selector",{small:!0}]);return Object(r.createElement)("div",{className:d},Object(r.createElement)(E.Button,{onClick:p,className:"select ob-dropdown"},Object(r.createElement)("span",null,t[a]),Object(r.createElement)("span",{className:"count"},i?n[a]:""),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:p,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},Object.keys(t).map((function(e,o){return e===a||tiobDash&&"1"===tiobDash.isValidLicense&&"free"===e||1>n[e]?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("span",null,t[e]),i&&Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),vt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getOnboardingStatus,c=t.getSites;return{editor:n(),category:r(),isOnboarding:a(),getSites:c()}})))((function(e){var t,n=e.filterByCategory,a=e.filterBySearch,c=e.getSitesForBuilder,o=e.isOnboarding,i=e.getSites,s=e.category,l=e.editor,u=Object(r.useState)(!1),m=y()(u,2),p=m[0],d=m[1],b=i.sites,f=void 0===b?{}:b,h=i.migration,g={top:p?0:"-100%"},O=Object.keys(f),v=O.filter((function(e){return Object.keys(f[e]).filter((function(t){return!0===f[e][t].upsell})).length===Object.keys(f[e]).length})),j=(t={builders:{},categories:{}},O.forEach((function(e){var r=c(e);r=n(r,s),r=a(r),t.builders[e]=r?r.length:0})),Object.keys(Ke).forEach((function(e){var r=c(l);r=n(r,e),r=a(r),t.categories[e]=r?r.length:0})),t),_=50<=c(l).length;return Object(r.createElement)(r.Fragment,null,!o&&!h&&Object(r.createElement)("div",{className:"sticky-nav",style:g},Object(r.createElement)("div",{className:"container sticky-nav-content"},!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:We,size:32}),Object(r.createElement)(ht,{className:"in-sticky",count:j.builders,categories:Ke,editors:Ze,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(Ot,{count:j.categories,categories:Ke,showCount:_}))),Object(r.createElement)(G.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),!1,Object(r.createElement)(Ot,{count:j.categories,categories:Ke,showCount:_}),Object(r.createElement)(ht,{count:j.builders,categories:Ke,editors:Ze,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(gt,{categories:Ke,count:j.categories,showCount:_}),!tiobDash.isValidLicense&&Object(r.createElement)(ft,{data:tiobDash.upsellNotifications.upsell_1,editor:l}))))})),jt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab,setSearchQuery:t.setSearchQuery}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSearchQuery;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),searchQuery:m()}})))((function(e){var t=e.getSites,n=e.category,a=e.resetCategory,c=e.editor,o=e.previewOpen,i=e.currentSiteData,s=e.isOnboarding,l=e.cancelOnboarding,u=e.setSearchQuery,m=e.searchQuery,p=t.sites,d=void 0===p?{}:p,b=function(){var e={};return g().forEach((function(t){var n=d&&d[t]?d[t]:{};e[t]=$()(Object.values(n))})),e},f=function(e,t){return"free"===t?e.filter((function(e){return!e.upsell})):"all"!==t?e.filter((function(e){return e.keywords.includes(t)})):e},h=function(e){return m?new pt.a(e,{includeScore:!0,keys:["title","slug","keywords"]}).search(m).map((function(e){return e.item})):e},g=function(){return Object.keys(d)},O=function(){var e=b()[c];return e=h(e),f(e,n)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null===i)return null;var t=b()[c],n=t.indexOf(i);return-1===n||1===t.length?null:e&&0===n?t[t.length-1]:e||n!==t.length-1?t[e?n-1:n+1]:t[0]};return 1>d.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,Object(_.__)("Starter sites could not be loaded. Please refresh and try again.","templates-patterns-collection"),s&&Object(r.createElement)(E.Button,{style:{display:"block",margin:"20px auto"},isPrimary:!0,onClick:l},Object(_.__)("Close","templates-patterns-collection")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(vt,{getSitesForBuilder:function(e){return b()[e]},filterBySearch:h,filterByCategory:f}),0===O().length&&Object(r.createElement)("div",{className:"no-results"},Object(r.createElement)("p",null,Object(_.__)("No results found.","templates-patterns-collection")," ",Object(_.__)("You can try a different search or use one of the categories below.","templates-patterns-collection")),Object(r.createElement)("div",{className:"tags"},Je.map((function(e,t){return Object(r.createElement)(E.Button,{key:t,isPrimary:!0,className:"tag",onClick:function(t){t.preventDefault(),u(e),a()}},e)})))),Object(r.createElement)((function(){var e=Object(r.useState)(9),t=y()(e,2),n=t[0],a=t[1],c=O();return Object(r.createElement)("div",{className:"ob-sites is-grid"},c.slice(0,n).map((function(e,t){return Object(r.createElement)(dt,{key:t,data:e})})),Object(r.createElement)(G.a,{onChange:function(e){if(!e)return!1;a(n+9)}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})))}),null),o&&i&&Object(r.createElement)(bt,{next:v(),prev:v(!0)}))})),yt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSingleImport;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),singleImport:m()}})))((function(e){var t=e.getSites,n=(e.installModal,e.currentTab),a=e.singleImport,c=e.importModal,o=e.currentSiteData,i=(e.isOnboarding,t.migration);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ob"},Object(r.createElement)(ut,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},i&&Object(r.createElement)(z,{data:i}),"starterSites"===n&&(a?Object(r.createElement)(st,{slug:a}):Object(r.createElement)(jt,null)),"library"===n&&Object(r.createElement)(Ye,null),"pageTemplates"===n&&Object(r.createElement)(Ye,{isGeneral:!0})))),c&&o&&Object(r.createElement)(it,null))})),Et=Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getUserStatus;return{onboarding:n(),userStatus:r()}}))((function(e){var t=e.onboarding,n=e.userStatus,a=O()(["content-wrap","starter-sites",{"is-onboarding":t,"is-free":!n}]);return Object(r.createElement)("div",{className:"tiob-wrap"},Object(r.createElement)("div",{className:a},Object(r.createElement)("div",{className:"container content"},Object(r.createElement)("div",{className:"main"},Object(r.createElement)("div",{className:"tab-content columns starter-sites"},Object(r.createElement)(yt,null))))))}));Object(h.registerStore)("neve-onboarding",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REFRESH_SITES":var n=t.payload.sites;return i(i({},e),{},{sites:n});case"SET_CURRENT_EDITOR":var r=t.payload.editor;return localStorage.setItem("neve-onboarding-editor",r),i(i({},e),{},{editor:r});case"SET_CURRENT_CATEGORY":var a=t.payload.category;return i(i({},e),{},{category:a});case"SET_FOCUSED_SITE":var c=t.payload.siteData;return i(i({},e),{},{currentSite:c});case"SET_PREVIEW_STATUS":var o=t.payload.previewStatus;return i(i({},e),{},{previewStatus:o});case"SET_IMPORT_MODAL_STATUS":var s=t.payload.importModalStatus;return i(i({},e),{},{importModalStatus:s});case"SET_INSTALL_MODAL_STATUS":var l=t.payload.installModalStatus;return i(i({},e),{},{installModalStatus:l});case"SET_ONBOARDING":var u=t.payload.status;return i(i({},e),{},{isOnboarding:u});case"SET_THEME_ACTIONS":var m=t.payload.themeActions;return i(i({},e),{},{themeAction:m});case"SET_CURRENT_TAB":var p=t.payload.currentTab;return i(i({},e),{},{singleTemplateImport:null,currentTab:p});case"SET_FETCHING":var b=t.payload.fetching;return i(i({},e),{},{fetching:b});case"SET_SINGLE_TEMPLATE_IMPORT":var f=t.payload.slug;return i(i({},e),{},{singleTemplateImport:f});case"SET_TEMPLATE_MODAL":var h=t.payload.data;return i(i({},e),{},{templateModal:h});case"SET_SEARCH_QUERY":var g=t.payload.query;return i(i({},e),{},{searchQuery:g})}return e},actions:b,selectors:f}),Object(r.render)(Object(r.createElement)(Et,null),document.getElementById("tpc-app"))}]);
assets/build/style-app-rtl.css CHANGED
@@ -1 +1 @@
1
- #wpcontent{padding-right:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-left:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;right:0;left:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;right:0;left:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end;z-index:1}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.is-free .header-nav .components-button[href="#library"]::after{content:"PRO";border-radius:2px;background:#6eb77a;color:#fff;padding:2px 5px;font-size:10px;top:-5px;position:relative;right:5px}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center;z-index:1}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-right:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-right:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-left:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-right:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-left:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-left:auto !important;margin-right:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-right:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-left:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 50px 5px 30px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 15px 0 5px;content:attr(data-content);margin-left:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;right:10px}.search .label-editor{display:flex;align-items:center;width:100%}.search .label-editor .icon-wrap{width:30px;margin-left:10px}.search .label-editor .icon-wrap img{position:relative;opacity:1;width:100%;top:auto;right:auto;transform:unset;border-radius:50%}.search .ob-dropdown{width:100%;height:52px;margin:20px 0 0}.search .ob-dropdown button{position:relative;right:-1px;height:100%;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #e1e1e1;font-size:14px;margin:0}.search .ob-dropdown button>svg,.search .ob-dropdown button .dashicon{margin-right:auto;display:flex;align-items:center}.search .ob-dropdown .options{margin:0}.search .ob-dropdown .options li{margin:0}.search .ob-dropdown .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.search .ob-dropdown .options a .count{color:#a3a3a3}.search .ob-dropdown .options a>span:not(.count){margin-left:20px}.search .ob-dropdown .options a:hover{color:#fff;background-color:#0073aa}.search .ob-dropdown .options a:hover .count{color:#fff}.search .ob-dropdown .options a .count{margin-right:auto}.editor-tabs{display:none;margin:30px 0;position:relative}.editor-tabs:after{content:"";position:absolute;display:block;width:100%;right:0;border-bottom:1px solid #e0e0e0;height:1px;z-index:-1;left:0;bottom:0}.editor-tabs .long-name{display:none}.editor-tabs a{padding:15px 0px 12px 10px;display:flex;align-items:center;font-weight:700;text-decoration:none;font-size:14px;border-bottom:3px solid transparent;position:relative;width:auto}.editor-tabs a:last-child{padding-left:0}.editor-tabs a:not(:first-child){margin-right:auto}.editor-tabs a.active{border-bottom:3px solid #0073aa}.editor-tabs a .pro-badge{margin-right:auto;font-size:10px}.editor-tabs .editor{color:#616161}.editor-tabs .count{color:rgba(97,97,97,.5);margin:0 10px}.editor-tabs .icon-wrap{display:none;margin-left:10px;width:34px;height:34px;border-radius:100%;overflow:hidden}.editor-tabs .icon-wrap img{max-width:100%;display:block}.cloud-items .editor-tabs a:not(:first-child){margin-right:20px}@media(min-width: 1600px){.editor-tabs .long-name{display:inline}}.ob-dropdown.editor-selector{overflow:visible;display:inline-block;position:relative;width:100%}.ob-dropdown.editor-selector button{display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #e1e1e1;font-size:14px;height:52px;width:100%;white-space:nowrap}.ob-dropdown.editor-selector button .count{color:#a3a3a3;margin:0 auto 0 20px}.ob-dropdown.editor-selector img{border-radius:100%;margin-left:5px;max-width:30px;max-height:30px}.ob-dropdown.editor-selector .options{margin:0}.ob-dropdown.editor-selector .options li{border-bottom:1px solid #e1e1e1;padding:0;margin:0}.ob-dropdown.editor-selector .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.ob-dropdown.editor-selector .options a>span:not(.count){margin-left:20px}.ob-dropdown.editor-selector .options a .count{margin-right:auto}.ob-dropdown.editor-selector .options a:hover{background-color:#0073aa;color:#fff}.card{width:100%;display:flex;max-width:unset;min-width:unset;border:1px solid #e1e1e1;flex-direction:column;padding:30px 40px;margin:0;align-self:flex-start;flex-grow:0}.card .card-header{flex-direction:row;display:flex;align-items:center}.card .card-header .title{font-size:18px;line-height:1.5}.card .card-header .icon{margin-left:10px}.card .card-header .icon.dashicon{width:33px;height:33px;fill:#0073aa}.card .card-content{display:flex;flex-direction:column;flex-grow:1}.card .card-content a,.card .card-content button{align-self:flex-start;margin-top:auto}.card p{font-size:15px;color:#616161}.card .card-description{margin:15px 0 25px}.card.starter-site-card{padding:0;max-width:100%}.card.starter-site-card:hover .actions,.card.starter-site-card:hover .fav,.card.starter-site-card:focus-within .actions,.card.starter-site-card:focus-within .fav{opacity:1}.card.starter-site-card .actions.visible{opacity:1}.card.starter-site-card .top{position:relative;overflow:hidden}.card.starter-site-card .new-badge{position:absolute;display:block;z-index:25;padding:5px 7px;right:-10px;top:8px;border-radius:2px;background-color:#d5e5f6;font-style:normal;font-weight:800;font-size:12px;color:#585858}.card.starter-site-card .fav{position:absolute;z-index:2000;right:-15px;top:-30px;opacity:0;transition:.3s ease}.card.starter-site-card .fav button{padding:30px 30px 30px 5px;height:auto;transform:rotate(-45deg);background-color:#4268cf}.card.starter-site-card .fav svg{transform:rotate(45deg);fill:#fff;max-width:15px}.card.starter-site-card .actions{background-color:rgba(0,0,0,.75);right:0;left:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;opacity:0;transition:.3s ease}.card.starter-site-card .actions .templates{color:#fff}.card.starter-site-card .actions .templates.components-button{width:auto}.card.starter-site-card .actions .components-button{margin:5px 0;width:100px;height:40px;font-weight:600;justify-content:center}.card.starter-site-card .actions .components-button.is-secondary{color:#fff;border:2px solid #fff}.card.starter-site-card .image{height:420px;background-size:cover;background-repeat:no-repeat;background-position:top center;background-color:rgba(100,109,130,.25)}.card.starter-site-card img{width:100%;display:block}.card.starter-site-card .bottom{display:flex;align-items:center;padding:15px 30px 15px 10px;border-top:1px solid #e1e1e1}.card.starter-site-card .bottom p{font-size:16px;font-weight:700;color:#282828;margin:0}.card.starter-site-card.has-templates:after{position:absolute;width:93%;background-color:#fff;display:block;height:10px;content:"";margin:0 auto;bottom:-7px;right:50%;transform:translateX(50%);z-index:-1;border:1px solid #d9d9d9}.ob-preview{background-color:#fff;position:fixed;top:0;bottom:0;right:0;left:0;z-index:100000;height:100vh;margin:0;display:flex;flex-direction:column}.ob-preview .loading{bottom:0;top:0;right:0;left:0;position:absolute;display:flex;align-items:center;justify-content:center;z-index:100000;color:#646d82}.ob-preview .loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.ob-preview .bottom-bar .actions{margin-right:auto}.ob-preview .bottom-bar .heading{margin:0 20px 0 0}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{left:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}@-webkit-keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@-webkit-keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}@keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{left:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}.migration .modal-body .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;width:auto;color:#fff}.migration .modal-body .loading h3{margin:20px 0 0}.migration .modal-body .loading svg{padding:10px;background-color:#ffb900;border-radius:100%;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.5)}.ob-import-modal .components-modal__content:before{display:none}.ob-import-modal .components-modal__header{border:none}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:22px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:17px;line-height:34px;color:#000}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-left:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 20px 0 0}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 20px 0 0;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-right:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-right:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-right:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-left:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-left:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-right:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:17px;font-weight:700;line-height:30px}.modal-toggles .options button svg{width:30px;height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-right:20px;color:#282828}.modal-toggles .option-row .actions{margin-right:auto}.modal-toggles .option-row .dashicon{margin-right:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-right:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-right:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-right:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;right:0;left:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;right:160px}.auto-fold .sticky-nav{right:32px}}@media(min-width: 961px){.sticky-nav{right:160px !important}.folded .sticky-nav{right:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-left:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-right:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-right:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-left:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-right:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-right:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-right:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-right:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-left-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #d9d9d9;border-right:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:6px 0 0 6px}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:0 6px 6px 0}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-right:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-left:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 0 8px 15px;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;left:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:right;padding-left:20px;border-left:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 20px 0 0;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.cloud-items .empty-information{max-width:500px;margin:0 auto;text-align:center}.cloud-items .empty-information img{max-width:150px}.cloud-items .empty-information h3,.cloud-items .empty-information p{color:#616161}.cloud-items.is-dummy{margin-top:25px;margin-bottom:25px}.cloud-items .upsell-modal-overlay{top:0;left:auto;bottom:auto;right:0;width:100%;height:100%;position:absolute;background:rgba(0,0,0,.35)}.cloud-items .upsell-modal-overlay .upsell-modal{top:40%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:90%;transform:translate(50%, -50%);position:absolute}.cloud-items .upsell-modal-overlay .upsell-modal .upsell-modal-content{display:flex}.cloud-items .upsell-modal-overlay .upsell-modal .info{background:#fff;width:60%;padding:100px 25px}.cloud-items .upsell-modal-overlay .upsell-modal .info h3{font-size:24px;line-height:28.64px}.cloud-items .upsell-modal-overlay .upsell-modal .info p{font-size:15px}.cloud-items .upsell-modal-overlay .upsell-modal .icon{display:flex;align-items:center;justify-content:center;background:#0566d5;width:40%}.cloud-items .upsell-modal-overlay .upsell-modal .icon .ob-logo{width:100px;margin:0}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#b7c0cc}.table-grid .grid-preview.is-loading .preview-actions{display:flex}.table-grid .grid-preview .preview-actions{opacity:0;transition:.3s ease opacity;width:100%;height:auto;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.9);display:flex}.table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.table-grid .grid-preview:hover .preview-actions{opacity:1}.table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px;flex-grow:1}.table-grid .card-footer form{display:flex;align-items:center}.table-grid .card-footer .components-base-control{flex-grow:1}.table-grid .card-footer .components-base-control__field{margin-bottom:0}.table-grid .card-footer button{height:auto;margin-right:auto}.table-grid .card-footer p{font-weight:600;margin:0}.filter-overlay .components-button:not(.has-icon){padding-right:38px}.pagination{padding-top:20px}.pagination .components-button{margin-left:10px;border-radius:2px;box-shadow:none}.pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.pagination .components-button:not(.is-primary){background:#fff}.pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.single-templates-wrapper .components-spinner{display:block;margin:0 auto}.single-templates-wrapper .top{padding:25px 0 30px}.single-templates-wrapper .header{display:flex;flex-direction:column}.single-templates-wrapper .header h1{display:flex;align-items:center;font-size:26px;font-weight:700}.single-templates-wrapper .header .actions{margin-top:15px}.single-templates-wrapper .header .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.single-templates-wrapper .header .actions .components-button:not(:first-child){margin-right:20px}.single-templates-wrapper .header .actions .components-button.is-primary{padding:10px 30px}.single-templates-wrapper .header .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.single-templates-wrapper .header .description{font-size:16px;color:#282828}.single-templates-wrapper .header .pro-badge{font-size:11px;margin-right:20px}.ob-preview.single-templates .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-preview.single-templates .actions .components-button:not(:first-child){margin-right:20px}.ob-preview.single-templates .actions .components-button.is-primary{padding:10px 30px}.ob-preview.single-templates .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.notification{color:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:20px;box-sizing:border-box;background-color:#0073aa;border:1px solid #006291;margin:0 0 20px;max-height:1000px}.notification .components-button{box-shadow:none !important;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-left:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-left:5px}.notification .components-button .dashicon{margin-right:5px}.tiob-tooltip-wrap{position:relative;display:flex;align-items:center;margin-right:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover+.tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus+.tiob-tooltip-content{opacity:1;pointer-events:all}.tiob-tooltip-content{top:100%;right:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 auto 0 0}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-left-radius:0;border-top-left-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-right-radius:0;border-bottom-right-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-left:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-left:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 5px 12px 10px}}
1
+ #wpcontent{padding-right:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-left:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;right:0;left:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;right:0;left:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end;z-index:1}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.is-free .header-nav .components-button[href="#library"]::after{content:"PRO";border-radius:2px;background:#6eb77a;color:#fff;padding:2px 5px;font-size:10px;top:-5px;position:relative;right:5px}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center;z-index:1}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-right:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-right:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-left:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-right:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-left:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-left:auto !important;margin-right:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-right:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-left:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 50px 5px 30px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 15px 0 5px;content:attr(data-content);margin-left:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;right:10px}.search .label-editor{display:flex;align-items:center;width:100%}.search .label-editor .icon-wrap{width:30px;margin-left:10px}.search .label-editor .icon-wrap img{position:relative;opacity:1;width:100%;top:auto;right:auto;transform:unset;border-radius:50%}.search .ob-dropdown{width:100%;height:52px;margin:20px 0 0}.search .ob-dropdown button{position:relative;right:-1px;height:100%;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #e1e1e1;font-size:14px;margin:0}.search .ob-dropdown button>svg,.search .ob-dropdown button .dashicon{margin-right:auto;display:flex;align-items:center}.search .ob-dropdown .options{margin:0}.search .ob-dropdown .options li{margin:0}.search .ob-dropdown .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.search .ob-dropdown .options a .count{color:#a3a3a3}.search .ob-dropdown .options a>span:not(.count){margin-left:20px}.search .ob-dropdown .options a:hover{color:#fff;background-color:#0073aa}.search .ob-dropdown .options a:hover .count{color:#fff}.search .ob-dropdown .options a .count{margin-right:auto}.editor-tabs{display:none;margin:30px 0;position:relative}.editor-tabs:after{content:"";position:absolute;display:block;width:100%;right:0;border-bottom:1px solid #e0e0e0;height:1px;z-index:-1;left:0;bottom:0}.editor-tabs .long-name{display:none}.editor-tabs a{padding:15px 0px 12px 10px;display:flex;align-items:center;font-weight:700;text-decoration:none;font-size:14px;border-bottom:3px solid transparent;position:relative;width:auto}.editor-tabs a:last-child{padding-left:0}.editor-tabs a:not(:first-child){margin-right:auto}.editor-tabs a.active{border-bottom:3px solid #0073aa}.editor-tabs a .pro-badge{margin-right:auto;font-size:10px}.editor-tabs .editor{color:#616161}.editor-tabs .count{color:rgba(97,97,97,.5);margin:0 10px}.editor-tabs .icon-wrap{display:none;margin-left:10px;width:34px;height:34px;border-radius:100%;overflow:hidden}.editor-tabs .icon-wrap img{max-width:100%;display:block}.cloud-items .editor-tabs a:not(:first-child){margin-right:20px}@media(min-width: 1600px){.editor-tabs .long-name{display:inline}}.ob-dropdown.editor-selector{overflow:visible;display:inline-block;position:relative;width:100%}.ob-dropdown.editor-selector button{display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #e1e1e1;font-size:14px;height:52px;width:100%;white-space:nowrap}.ob-dropdown.editor-selector button .count{color:#a3a3a3;margin:0 auto 0 20px}.ob-dropdown.editor-selector img{border-radius:100%;margin-left:5px;max-width:30px;max-height:30px}.ob-dropdown.editor-selector .options{margin:0}.ob-dropdown.editor-selector .options li{border-bottom:1px solid #e1e1e1;padding:0;margin:0}.ob-dropdown.editor-selector .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.ob-dropdown.editor-selector .options a>span:not(.count){margin-left:20px}.ob-dropdown.editor-selector .options a .count{margin-right:auto}.ob-dropdown.editor-selector .options a:hover{background-color:#0073aa;color:#fff}.card{width:100%;display:flex;max-width:unset;min-width:unset;border:1px solid #e1e1e1;flex-direction:column;padding:30px 40px;margin:0;align-self:flex-start;flex-grow:0}.card .card-header{flex-direction:row;display:flex;align-items:center}.card .card-header .title{font-size:18px;line-height:1.5}.card .card-header .icon{margin-left:10px}.card .card-header .icon.dashicon{width:33px;height:33px;fill:#0073aa}.card .card-content{display:flex;flex-direction:column;flex-grow:1}.card .card-content a,.card .card-content button{align-self:flex-start;margin-top:auto}.card p{font-size:15px;color:#616161}.card .card-description{margin:15px 0 25px}.card.starter-site-card{padding:0;max-width:100%}.card.starter-site-card:hover .actions,.card.starter-site-card:hover .fav,.card.starter-site-card:focus-within .actions,.card.starter-site-card:focus-within .fav{opacity:1}.card.starter-site-card .actions.visible{opacity:1}.card.starter-site-card .top{position:relative;overflow:hidden}.card.starter-site-card .new-badge{position:absolute;display:block;z-index:25;padding:5px 7px;right:-10px;top:8px;border-radius:2px;background-color:#d5e5f6;font-style:normal;font-weight:800;font-size:12px;color:#585858}.card.starter-site-card .fav{position:absolute;z-index:2000;right:-15px;top:-30px;opacity:0;transition:.3s ease}.card.starter-site-card .fav button{padding:30px 30px 30px 5px;height:auto;transform:rotate(-45deg);background-color:#4268cf}.card.starter-site-card .fav svg{transform:rotate(45deg);fill:#fff;max-width:15px}.card.starter-site-card .actions{background-color:rgba(0,0,0,.75);right:0;left:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;opacity:0;transition:.3s ease}.card.starter-site-card .actions .templates{color:#fff}.card.starter-site-card .actions .templates.components-button{width:auto}.card.starter-site-card .actions .components-button{margin:5px 0;width:100px;height:40px;font-weight:600;justify-content:center}.card.starter-site-card .actions .components-button.is-secondary{color:#fff;border:2px solid #fff}.card.starter-site-card .image{height:420px;background-size:cover;background-repeat:no-repeat;background-position:top center;background-color:rgba(100,109,130,.25)}.card.starter-site-card img{width:100%;display:block}.card.starter-site-card .bottom{display:flex;align-items:center;padding:15px 30px 15px 10px;border-top:1px solid #e1e1e1}.card.starter-site-card .bottom p{font-size:16px;font-weight:700;color:#282828;margin:0}.card.starter-site-card.has-templates:after{position:absolute;width:93%;background-color:#fff;display:block;height:10px;content:"";margin:0 auto;bottom:-7px;right:50%;transform:translateX(50%);z-index:-1;border:1px solid #d9d9d9}.ob-preview{background-color:#fff;position:fixed;top:0;bottom:0;right:0;left:0;z-index:100000;height:100vh;margin:0;display:flex;flex-direction:column}.ob-preview .loading{bottom:0;top:0;right:0;left:0;position:absolute;display:flex;align-items:center;justify-content:center;z-index:100000;color:#646d82}.ob-preview .loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.ob-preview .bottom-bar .actions{margin-right:auto}.ob-preview .bottom-bar .heading{margin:0 20px 0 0}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{left:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}@-webkit-keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@-webkit-keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}@keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{left:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}.migration .modal-body .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;width:auto;color:#fff}.migration .modal-body .loading h3{margin:20px 0 0}.migration .modal-body .loading svg{padding:10px;background-color:#ffb900;border-radius:100%;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.5)}.ob-import-modal .components-modal__content:before{display:none}.ob-import-modal .components-modal__header{border:none}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:22px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:17px;line-height:34px;color:#000}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-left:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 20px 0 0}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 20px 0 0;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-right:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-right:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-right:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-left:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-left:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-right:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:17px;font-weight:700;line-height:30px}.modal-toggles .options button svg{width:30px;height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-right:20px;color:#282828}.modal-toggles .option-row .actions{margin-right:auto}.modal-toggles .option-row .dashicon{margin-right:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-right:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-right:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-right:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;right:0;left:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;right:160px}.auto-fold .sticky-nav{right:32px}}@media(min-width: 961px){.sticky-nav{right:160px !important}.folded .sticky-nav{right:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-left:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-right:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-right:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-left:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-right:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-right:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-right:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-right:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-left-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #d9d9d9;border-right:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:6px 0 0 6px}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:0 6px 6px 0}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-right:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-left:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 0 8px 15px;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;left:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:right;padding-left:20px;border-left:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 20px 0 0;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.cloud-items .empty-information{max-width:500px;margin:0 auto;text-align:center}.cloud-items .empty-information img{max-width:150px}.cloud-items .empty-information h3,.cloud-items .empty-information p{color:#616161}.cloud-items.is-dummy{margin-top:25px;margin-bottom:25px}.cloud-items .upsell-modal-overlay{top:0;left:auto;bottom:auto;right:0;width:100%;height:100%;position:absolute;background:rgba(0,0,0,.35)}.cloud-items .upsell-modal-overlay .upsell-modal{top:40%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:90%;transform:translate(50%, -50%);position:absolute}.cloud-items .upsell-modal-overlay .upsell-modal .upsell-modal-content{display:flex}.cloud-items .upsell-modal-overlay .upsell-modal .info{background:#fff;width:60%;padding:100px 25px}.cloud-items .upsell-modal-overlay .upsell-modal .info h3{font-size:24px;line-height:28.64px}.cloud-items .upsell-modal-overlay .upsell-modal .info p{font-size:15px}.cloud-items .upsell-modal-overlay .upsell-modal .icon{display:flex;align-items:center;justify-content:center;background:#0566d5;width:40%}.cloud-items .upsell-modal-overlay .upsell-modal .icon .ob-logo{width:100px;margin:0}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#b7c0cc}.table-grid .grid-preview.is-loading .preview-actions{display:flex}.table-grid .grid-preview .preview-actions{opacity:0;transition:.3s ease opacity;width:100%;height:auto;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.9);display:flex}.table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.table-grid .grid-preview:hover .preview-actions{opacity:1}.table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px;flex-grow:1}.table-grid .card-footer form{display:flex;align-items:center}.table-grid .card-footer .components-base-control{flex-grow:1}.table-grid .card-footer .components-base-control__field{margin-bottom:0}.table-grid .card-footer button{height:auto;margin-right:auto}.table-grid .card-footer p{font-weight:600;margin:0}.filter-overlay .components-button:not(.has-icon){padding-right:38px}.pagination{padding-top:20px}.pagination .components-button{margin-left:10px;border-radius:2px;box-shadow:none}.pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.pagination .components-button:not(.is-primary){background:#fff}.pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.single-templates-wrapper .components-spinner{display:block;margin:0 auto}.single-templates-wrapper .top{padding:25px 0 30px}.single-templates-wrapper .header{display:flex;flex-direction:column}.single-templates-wrapper .header h1{display:flex;align-items:center;font-size:26px;font-weight:700}.single-templates-wrapper .header .actions{margin-top:15px}.single-templates-wrapper .header .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.single-templates-wrapper .header .actions .components-button:not(:first-child){margin-right:20px}.single-templates-wrapper .header .actions .components-button.is-primary{padding:10px 30px}.single-templates-wrapper .header .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.single-templates-wrapper .header .description{font-size:16px;color:#282828}.single-templates-wrapper .header .pro-badge{font-size:11px;margin-right:20px}.ob-preview.single-templates .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-preview.single-templates .actions .components-button:not(:first-child){margin-right:20px}.ob-preview.single-templates .actions .components-button.is-primary{padding:10px 30px}.ob-preview.single-templates .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.notification{color:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:20px;box-sizing:border-box;background-color:#0073aa;border:1px solid #006291;margin:0 0 20px;max-height:1000px}.notification .components-button{box-shadow:none !important;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-left:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-left:5px}.notification .components-button .dashicon{margin-right:5px}.tiob-tooltip-wrap{position:relative;display:flex;align-items:center;margin-right:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover+.tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus+.tiob-tooltip-content{opacity:1;pointer-events:all;z-index:1}.tiob-tooltip-content{top:100%;right:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 auto 0 0}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-left-radius:0;border-top-left-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-right-radius:0;border-bottom-right-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-left:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-left:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 5px 12px 10px}}
assets/build/style-app.css CHANGED
@@ -1 +1 @@
1
- #wpcontent{padding-left:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-right:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;left:0;right:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end;z-index:1}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.is-free .header-nav .components-button[href="#library"]::after{content:"PRO";border-radius:2px;background:#6eb77a;color:#fff;padding:2px 5px;font-size:10px;top:-5px;position:relative;left:5px}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center;z-index:1}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-left:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-left:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-right:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-left:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-right:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-right:auto !important;margin-left:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-left:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-right:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 30px 5px 50px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 5px 0 15px;content:attr(data-content);margin-right:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;left:10px}.search .label-editor{display:flex;align-items:center;width:100%}.search .label-editor .icon-wrap{width:30px;margin-right:10px}.search .label-editor .icon-wrap img{position:relative;opacity:1;width:100%;top:auto;left:auto;transform:unset;border-radius:50%}.search .ob-dropdown{width:100%;height:52px;margin:20px 0 0}.search .ob-dropdown button{position:relative;left:-1px;height:100%;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #e1e1e1;font-size:14px;margin:0}.search .ob-dropdown button>svg,.search .ob-dropdown button .dashicon{margin-left:auto;display:flex;align-items:center}.search .ob-dropdown .options{margin:0}.search .ob-dropdown .options li{margin:0}.search .ob-dropdown .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.search .ob-dropdown .options a .count{color:#a3a3a3}.search .ob-dropdown .options a>span:not(.count){margin-right:20px}.search .ob-dropdown .options a:hover{color:#fff;background-color:#0073aa}.search .ob-dropdown .options a:hover .count{color:#fff}.search .ob-dropdown .options a .count{margin-left:auto}.editor-tabs{display:none;margin:30px 0;position:relative}.editor-tabs:after{content:"";position:absolute;display:block;width:100%;left:0;border-bottom:1px solid #e0e0e0;height:1px;z-index:-1;right:0;bottom:0}.editor-tabs .long-name{display:none}.editor-tabs a{padding:15px 10px 12px 0px;display:flex;align-items:center;font-weight:700;text-decoration:none;font-size:14px;border-bottom:3px solid transparent;position:relative;width:auto}.editor-tabs a:last-child{padding-right:0}.editor-tabs a:not(:first-child){margin-left:auto}.editor-tabs a.active{border-bottom:3px solid #0073aa}.editor-tabs a .pro-badge{margin-left:auto;font-size:10px}.editor-tabs .editor{color:#616161}.editor-tabs .count{color:rgba(97,97,97,.5);margin:0 10px}.editor-tabs .icon-wrap{display:none;margin-right:10px;width:34px;height:34px;border-radius:100%;overflow:hidden}.editor-tabs .icon-wrap img{max-width:100%;display:block}.cloud-items .editor-tabs a:not(:first-child){margin-left:20px}@media(min-width: 1600px){.editor-tabs .long-name{display:inline}}.ob-dropdown.editor-selector{overflow:visible;display:inline-block;position:relative;width:100%}.ob-dropdown.editor-selector button{display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #e1e1e1;font-size:14px;height:52px;width:100%;white-space:nowrap}.ob-dropdown.editor-selector button .count{color:#a3a3a3;margin:0 20px 0 auto}.ob-dropdown.editor-selector img{border-radius:100%;margin-right:5px;max-width:30px;max-height:30px}.ob-dropdown.editor-selector .options{margin:0}.ob-dropdown.editor-selector .options li{border-bottom:1px solid #e1e1e1;padding:0;margin:0}.ob-dropdown.editor-selector .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.ob-dropdown.editor-selector .options a>span:not(.count){margin-right:20px}.ob-dropdown.editor-selector .options a .count{margin-left:auto}.ob-dropdown.editor-selector .options a:hover{background-color:#0073aa;color:#fff}.card{width:100%;display:flex;max-width:unset;min-width:unset;border:1px solid #e1e1e1;flex-direction:column;padding:30px 40px;margin:0;align-self:flex-start;flex-grow:0}.card .card-header{flex-direction:row;display:flex;align-items:center}.card .card-header .title{font-size:18px;line-height:1.5}.card .card-header .icon{margin-right:10px}.card .card-header .icon.dashicon{width:33px;height:33px;fill:#0073aa}.card .card-content{display:flex;flex-direction:column;flex-grow:1}.card .card-content a,.card .card-content button{align-self:flex-start;margin-top:auto}.card p{font-size:15px;color:#616161}.card .card-description{margin:15px 0 25px}.card.starter-site-card{padding:0;max-width:100%}.card.starter-site-card:hover .actions,.card.starter-site-card:hover .fav,.card.starter-site-card:focus-within .actions,.card.starter-site-card:focus-within .fav{opacity:1}.card.starter-site-card .actions.visible{opacity:1}.card.starter-site-card .top{position:relative;overflow:hidden}.card.starter-site-card .new-badge{position:absolute;display:block;z-index:25;padding:5px 7px;left:-10px;top:8px;border-radius:2px;background-color:#d5e5f6;font-style:normal;font-weight:800;font-size:12px;color:#585858}.card.starter-site-card .fav{position:absolute;z-index:2000;left:-15px;top:-30px;opacity:0;transition:.3s ease}.card.starter-site-card .fav button{padding:30px 5px 30px 30px;height:auto;transform:rotate(45deg);background-color:#4268cf}.card.starter-site-card .fav svg{transform:rotate(-45deg);fill:#fff;max-width:15px}.card.starter-site-card .actions{background-color:rgba(0,0,0,.75);left:0;right:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;opacity:0;transition:.3s ease}.card.starter-site-card .actions .templates{color:#fff}.card.starter-site-card .actions .templates.components-button{width:auto}.card.starter-site-card .actions .components-button{margin:5px 0;width:100px;height:40px;font-weight:600;justify-content:center}.card.starter-site-card .actions .components-button.is-secondary{color:#fff;border:2px solid #fff}.card.starter-site-card .image{height:420px;background-size:cover;background-repeat:no-repeat;background-position:top center;background-color:rgba(100,109,130,.25)}.card.starter-site-card img{width:100%;display:block}.card.starter-site-card .bottom{display:flex;align-items:center;padding:15px 10px 15px 30px;border-top:1px solid #e1e1e1}.card.starter-site-card .bottom p{font-size:16px;font-weight:700;color:#282828;margin:0}.card.starter-site-card.has-templates:after{position:absolute;width:93%;background-color:#fff;display:block;height:10px;content:"";margin:0 auto;bottom:-7px;left:50%;transform:translateX(-50%);z-index:-1;border:1px solid #d9d9d9}.ob-preview{background-color:#fff;position:fixed;top:0;bottom:0;left:0;right:0;z-index:100000;height:100vh;margin:0;display:flex;flex-direction:column}.ob-preview .loading{bottom:0;top:0;left:0;right:0;position:absolute;display:flex;align-items:center;justify-content:center;z-index:100000;color:#646d82}.ob-preview .loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.ob-preview .bottom-bar .actions{margin-left:auto}.ob-preview .bottom-bar .heading{margin:0 0 0 20px}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{right:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}@-webkit-keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@-webkit-keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}@keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{right:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}.migration .modal-body .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;width:auto;color:#fff}.migration .modal-body .loading h3{margin:20px 0 0}.migration .modal-body .loading svg{padding:10px;background-color:#ffb900;border-radius:100%;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.5)}.ob-import-modal .components-modal__content:before{display:none}.ob-import-modal .components-modal__header{border:none}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:22px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:17px;line-height:34px;color:#000}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-right:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 0 0 20px}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 0 0 20px;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-left:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-left:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-left:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-right:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-right:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-left:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:17px;font-weight:700;line-height:30px}.modal-toggles .options button svg{width:30px;height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-left:20px;color:#282828}.modal-toggles .option-row .actions{margin-left:auto}.modal-toggles .option-row .dashicon{margin-left:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-left:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-left:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-left:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;left:0;right:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;left:160px}.auto-fold .sticky-nav{left:32px}}@media(min-width: 961px){.sticky-nav{left:160px !important}.folded .sticky-nav{left:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-right:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-left:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-left:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-right:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-left:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-left:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-left:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-left:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-right-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #d9d9d9;border-left:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:0 6px 6px 0}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:6px 0 0 6px}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-left:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-right:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 15px 8px 0;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;right:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:left;padding-right:20px;border-right:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 0 0 20px;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.cloud-items .empty-information{max-width:500px;margin:0 auto;text-align:center}.cloud-items .empty-information img{max-width:150px}.cloud-items .empty-information h3,.cloud-items .empty-information p{color:#616161}.cloud-items.is-dummy{margin-top:25px;margin-bottom:25px}.cloud-items .upsell-modal-overlay{top:0;right:auto;bottom:auto;left:0;width:100%;height:100%;position:absolute;background:rgba(0,0,0,.35)}.cloud-items .upsell-modal-overlay .upsell-modal{top:40%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:90%;transform:translate(-50%, -50%);position:absolute}.cloud-items .upsell-modal-overlay .upsell-modal .upsell-modal-content{display:flex}.cloud-items .upsell-modal-overlay .upsell-modal .info{background:#fff;width:60%;padding:100px 25px}.cloud-items .upsell-modal-overlay .upsell-modal .info h3{font-size:24px;line-height:28.64px}.cloud-items .upsell-modal-overlay .upsell-modal .info p{font-size:15px}.cloud-items .upsell-modal-overlay .upsell-modal .icon{display:flex;align-items:center;justify-content:center;background:#0566d5;width:40%}.cloud-items .upsell-modal-overlay .upsell-modal .icon .ob-logo{width:100px;margin:0}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#b7c0cc}.table-grid .grid-preview.is-loading .preview-actions{display:flex}.table-grid .grid-preview .preview-actions{opacity:0;transition:.3s ease opacity;width:100%;height:auto;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.9);display:flex}.table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.table-grid .grid-preview:hover .preview-actions{opacity:1}.table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px;flex-grow:1}.table-grid .card-footer form{display:flex;align-items:center}.table-grid .card-footer .components-base-control{flex-grow:1}.table-grid .card-footer .components-base-control__field{margin-bottom:0}.table-grid .card-footer button{height:auto;margin-left:auto}.table-grid .card-footer p{font-weight:600;margin:0}.filter-overlay .components-button:not(.has-icon){padding-left:38px}.pagination{padding-top:20px}.pagination .components-button{margin-right:10px;border-radius:2px;box-shadow:none}.pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.pagination .components-button:not(.is-primary){background:#fff}.pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.single-templates-wrapper .components-spinner{display:block;margin:0 auto}.single-templates-wrapper .top{padding:25px 0 30px}.single-templates-wrapper .header{display:flex;flex-direction:column}.single-templates-wrapper .header h1{display:flex;align-items:center;font-size:26px;font-weight:700}.single-templates-wrapper .header .actions{margin-top:15px}.single-templates-wrapper .header .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.single-templates-wrapper .header .actions .components-button:not(:first-child){margin-left:20px}.single-templates-wrapper .header .actions .components-button.is-primary{padding:10px 30px}.single-templates-wrapper .header .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.single-templates-wrapper .header .description{font-size:16px;color:#282828}.single-templates-wrapper .header .pro-badge{font-size:11px;margin-left:20px}.ob-preview.single-templates .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-preview.single-templates .actions .components-button:not(:first-child){margin-left:20px}.ob-preview.single-templates .actions .components-button.is-primary{padding:10px 30px}.ob-preview.single-templates .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.notification{color:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:20px;box-sizing:border-box;background-color:#0073aa;border:1px solid #006291;margin:0 0 20px;max-height:1000px}.notification .components-button{box-shadow:none !important;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-right:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-right:5px}.notification .components-button .dashicon{margin-left:5px}.tiob-tooltip-wrap{position:relative;display:flex;align-items:center;margin-left:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover+.tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus+.tiob-tooltip-content{opacity:1;pointer-events:all}.tiob-tooltip-content{top:100%;left:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 0 0 auto}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-right-radius:0;border-top-right-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-left-radius:0;border-bottom-left-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-right:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-right:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 10px 12px 5px}}
1
+ #wpcontent{padding-left:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-right:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;left:0;right:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end;z-index:1}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.is-free .header-nav .components-button[href="#library"]::after{content:"PRO";border-radius:2px;background:#6eb77a;color:#fff;padding:2px 5px;font-size:10px;top:-5px;position:relative;left:5px}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center;z-index:1}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-left:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-left:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-right:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-left:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-right:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-right:auto !important;margin-left:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-left:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-right:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 30px 5px 50px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 5px 0 15px;content:attr(data-content);margin-right:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;left:10px}.search .label-editor{display:flex;align-items:center;width:100%}.search .label-editor .icon-wrap{width:30px;margin-right:10px}.search .label-editor .icon-wrap img{position:relative;opacity:1;width:100%;top:auto;left:auto;transform:unset;border-radius:50%}.search .ob-dropdown{width:100%;height:52px;margin:20px 0 0}.search .ob-dropdown button{position:relative;left:-1px;height:100%;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #e1e1e1;font-size:14px;margin:0}.search .ob-dropdown button>svg,.search .ob-dropdown button .dashicon{margin-left:auto;display:flex;align-items:center}.search .ob-dropdown .options{margin:0}.search .ob-dropdown .options li{margin:0}.search .ob-dropdown .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.search .ob-dropdown .options a .count{color:#a3a3a3}.search .ob-dropdown .options a>span:not(.count){margin-right:20px}.search .ob-dropdown .options a:hover{color:#fff;background-color:#0073aa}.search .ob-dropdown .options a:hover .count{color:#fff}.search .ob-dropdown .options a .count{margin-left:auto}.editor-tabs{display:none;margin:30px 0;position:relative}.editor-tabs:after{content:"";position:absolute;display:block;width:100%;left:0;border-bottom:1px solid #e0e0e0;height:1px;z-index:-1;right:0;bottom:0}.editor-tabs .long-name{display:none}.editor-tabs a{padding:15px 10px 12px 0px;display:flex;align-items:center;font-weight:700;text-decoration:none;font-size:14px;border-bottom:3px solid transparent;position:relative;width:auto}.editor-tabs a:last-child{padding-right:0}.editor-tabs a:not(:first-child){margin-left:auto}.editor-tabs a.active{border-bottom:3px solid #0073aa}.editor-tabs a .pro-badge{margin-left:auto;font-size:10px}.editor-tabs .editor{color:#616161}.editor-tabs .count{color:rgba(97,97,97,.5);margin:0 10px}.editor-tabs .icon-wrap{display:none;margin-right:10px;width:34px;height:34px;border-radius:100%;overflow:hidden}.editor-tabs .icon-wrap img{max-width:100%;display:block}.cloud-items .editor-tabs a:not(:first-child){margin-left:20px}@media(min-width: 1600px){.editor-tabs .long-name{display:inline}}.ob-dropdown.editor-selector{overflow:visible;display:inline-block;position:relative;width:100%}.ob-dropdown.editor-selector button{display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #e1e1e1;font-size:14px;height:52px;width:100%;white-space:nowrap}.ob-dropdown.editor-selector button .count{color:#a3a3a3;margin:0 20px 0 auto}.ob-dropdown.editor-selector img{border-radius:100%;margin-right:5px;max-width:30px;max-height:30px}.ob-dropdown.editor-selector .options{margin:0}.ob-dropdown.editor-selector .options li{border-bottom:1px solid #e1e1e1;padding:0;margin:0}.ob-dropdown.editor-selector .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.ob-dropdown.editor-selector .options a>span:not(.count){margin-right:20px}.ob-dropdown.editor-selector .options a .count{margin-left:auto}.ob-dropdown.editor-selector .options a:hover{background-color:#0073aa;color:#fff}.card{width:100%;display:flex;max-width:unset;min-width:unset;border:1px solid #e1e1e1;flex-direction:column;padding:30px 40px;margin:0;align-self:flex-start;flex-grow:0}.card .card-header{flex-direction:row;display:flex;align-items:center}.card .card-header .title{font-size:18px;line-height:1.5}.card .card-header .icon{margin-right:10px}.card .card-header .icon.dashicon{width:33px;height:33px;fill:#0073aa}.card .card-content{display:flex;flex-direction:column;flex-grow:1}.card .card-content a,.card .card-content button{align-self:flex-start;margin-top:auto}.card p{font-size:15px;color:#616161}.card .card-description{margin:15px 0 25px}.card.starter-site-card{padding:0;max-width:100%}.card.starter-site-card:hover .actions,.card.starter-site-card:hover .fav,.card.starter-site-card:focus-within .actions,.card.starter-site-card:focus-within .fav{opacity:1}.card.starter-site-card .actions.visible{opacity:1}.card.starter-site-card .top{position:relative;overflow:hidden}.card.starter-site-card .new-badge{position:absolute;display:block;z-index:25;padding:5px 7px;left:-10px;top:8px;border-radius:2px;background-color:#d5e5f6;font-style:normal;font-weight:800;font-size:12px;color:#585858}.card.starter-site-card .fav{position:absolute;z-index:2000;left:-15px;top:-30px;opacity:0;transition:.3s ease}.card.starter-site-card .fav button{padding:30px 5px 30px 30px;height:auto;transform:rotate(45deg);background-color:#4268cf}.card.starter-site-card .fav svg{transform:rotate(-45deg);fill:#fff;max-width:15px}.card.starter-site-card .actions{background-color:rgba(0,0,0,.75);left:0;right:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;opacity:0;transition:.3s ease}.card.starter-site-card .actions .templates{color:#fff}.card.starter-site-card .actions .templates.components-button{width:auto}.card.starter-site-card .actions .components-button{margin:5px 0;width:100px;height:40px;font-weight:600;justify-content:center}.card.starter-site-card .actions .components-button.is-secondary{color:#fff;border:2px solid #fff}.card.starter-site-card .image{height:420px;background-size:cover;background-repeat:no-repeat;background-position:top center;background-color:rgba(100,109,130,.25)}.card.starter-site-card img{width:100%;display:block}.card.starter-site-card .bottom{display:flex;align-items:center;padding:15px 10px 15px 30px;border-top:1px solid #e1e1e1}.card.starter-site-card .bottom p{font-size:16px;font-weight:700;color:#282828;margin:0}.card.starter-site-card.has-templates:after{position:absolute;width:93%;background-color:#fff;display:block;height:10px;content:"";margin:0 auto;bottom:-7px;left:50%;transform:translateX(-50%);z-index:-1;border:1px solid #d9d9d9}.ob-preview{background-color:#fff;position:fixed;top:0;bottom:0;left:0;right:0;z-index:100000;height:100vh;margin:0;display:flex;flex-direction:column}.ob-preview .loading{bottom:0;top:0;left:0;right:0;position:absolute;display:flex;align-items:center;justify-content:center;z-index:100000;color:#646d82}.ob-preview .loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.ob-preview .bottom-bar .actions{margin-left:auto}.ob-preview .bottom-bar .heading{margin:0 0 0 20px}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{right:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}@-webkit-keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@-webkit-keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}@keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{right:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}.migration .modal-body .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;width:auto;color:#fff}.migration .modal-body .loading h3{margin:20px 0 0}.migration .modal-body .loading svg{padding:10px;background-color:#ffb900;border-radius:100%;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.5)}.ob-import-modal .components-modal__content:before{display:none}.ob-import-modal .components-modal__header{border:none}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:22px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:17px;line-height:34px;color:#000}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-right:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 0 0 20px}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 0 0 20px;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-left:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-left:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-left:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-right:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-right:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-left:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:17px;font-weight:700;line-height:30px}.modal-toggles .options button svg{width:30px;height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-left:20px;color:#282828}.modal-toggles .option-row .actions{margin-left:auto}.modal-toggles .option-row .dashicon{margin-left:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-left:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-left:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-left:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;left:0;right:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;left:160px}.auto-fold .sticky-nav{left:32px}}@media(min-width: 961px){.sticky-nav{left:160px !important}.folded .sticky-nav{left:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-right:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-left:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-left:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-right:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-left:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-left:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-left:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-left:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-right-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #d9d9d9;border-left:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:0 6px 6px 0}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:6px 0 0 6px}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-left:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-right:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 15px 8px 0;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;right:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:left;padding-right:20px;border-right:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 0 0 20px;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.cloud-items .empty-information{max-width:500px;margin:0 auto;text-align:center}.cloud-items .empty-information img{max-width:150px}.cloud-items .empty-information h3,.cloud-items .empty-information p{color:#616161}.cloud-items.is-dummy{margin-top:25px;margin-bottom:25px}.cloud-items .upsell-modal-overlay{top:0;right:auto;bottom:auto;left:0;width:100%;height:100%;position:absolute;background:rgba(0,0,0,.35)}.cloud-items .upsell-modal-overlay .upsell-modal{top:40%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:90%;transform:translate(-50%, -50%);position:absolute}.cloud-items .upsell-modal-overlay .upsell-modal .upsell-modal-content{display:flex}.cloud-items .upsell-modal-overlay .upsell-modal .info{background:#fff;width:60%;padding:100px 25px}.cloud-items .upsell-modal-overlay .upsell-modal .info h3{font-size:24px;line-height:28.64px}.cloud-items .upsell-modal-overlay .upsell-modal .info p{font-size:15px}.cloud-items .upsell-modal-overlay .upsell-modal .icon{display:flex;align-items:center;justify-content:center;background:#0566d5;width:40%}.cloud-items .upsell-modal-overlay .upsell-modal .icon .ob-logo{width:100px;margin:0}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#b7c0cc}.table-grid .grid-preview.is-loading .preview-actions{display:flex}.table-grid .grid-preview .preview-actions{opacity:0;transition:.3s ease opacity;width:100%;height:auto;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.9);display:flex}.table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.table-grid .grid-preview:hover .preview-actions{opacity:1}.table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px;flex-grow:1}.table-grid .card-footer form{display:flex;align-items:center}.table-grid .card-footer .components-base-control{flex-grow:1}.table-grid .card-footer .components-base-control__field{margin-bottom:0}.table-grid .card-footer button{height:auto;margin-left:auto}.table-grid .card-footer p{font-weight:600;margin:0}.filter-overlay .components-button:not(.has-icon){padding-left:38px}.pagination{padding-top:20px}.pagination .components-button{margin-right:10px;border-radius:2px;box-shadow:none}.pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.pagination .components-button:not(.is-primary){background:#fff}.pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.single-templates-wrapper .components-spinner{display:block;margin:0 auto}.single-templates-wrapper .top{padding:25px 0 30px}.single-templates-wrapper .header{display:flex;flex-direction:column}.single-templates-wrapper .header h1{display:flex;align-items:center;font-size:26px;font-weight:700}.single-templates-wrapper .header .actions{margin-top:15px}.single-templates-wrapper .header .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.single-templates-wrapper .header .actions .components-button:not(:first-child){margin-left:20px}.single-templates-wrapper .header .actions .components-button.is-primary{padding:10px 30px}.single-templates-wrapper .header .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.single-templates-wrapper .header .description{font-size:16px;color:#282828}.single-templates-wrapper .header .pro-badge{font-size:11px;margin-left:20px}.ob-preview.single-templates .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-preview.single-templates .actions .components-button:not(:first-child){margin-left:20px}.ob-preview.single-templates .actions .components-button.is-primary{padding:10px 30px}.ob-preview.single-templates .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.notification{color:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:20px;box-sizing:border-box;background-color:#0073aa;border:1px solid #006291;margin:0 0 20px;max-height:1000px}.notification .components-button{box-shadow:none !important;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-right:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-right:5px}.notification .components-button .dashicon{margin-left:5px}.tiob-tooltip-wrap{position:relative;display:flex;align-items:center;margin-left:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover+.tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus+.tiob-tooltip-content{opacity:1;pointer-events:all;z-index:1}.tiob-tooltip-content{top:100%;left:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 0 0 auto}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-right-radius:0;border-top-right-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-left-radius:0;border-bottom-left-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-right:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-right:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 10px 12px 5px}}
assets/src/Components/CategoriesTabs.js CHANGED
@@ -1,3 +1,4 @@
 
1
  import classnames from 'classnames';
2
 
3
  import { withDispatch, withSelect } from '@wordpress/data';
@@ -16,6 +17,13 @@ const CategoriesTabs = ( {
16
  if ( 1 > count[ key ] ) {
17
  return null;
18
  }
 
 
 
 
 
 
 
19
  const classes = classnames( [
20
  'tab',
21
  key,
1
+ /* global tiobDash */
2
  import classnames from 'classnames';
3
 
4
  import { withDispatch, withSelect } from '@wordpress/data';
17
  if ( 1 > count[ key ] ) {
18
  return null;
19
  }
20
+ if (
21
+ tiobDash &&
22
+ tiobDash.isValidLicense === '1' &&
23
+ 'free' === key
24
+ ) {
25
+ return null;
26
+ }
27
  const classes = classnames( [
28
  'tab',
29
  key,
assets/src/Components/CategorySelector.js CHANGED
@@ -1,5 +1,5 @@
 
1
  import classnames from 'classnames';
2
- import { __ } from '@wordpress/i18n';
3
  import { useState } from '@wordpress/element';
4
  import { Button, Dashicon, Popover } from '@wordpress/components';
5
  import { withDispatch, withSelect } from '@wordpress/data';
@@ -41,6 +41,13 @@ const CategorySelector = ( {
41
  if ( key === category ) {
42
  return null;
43
  }
 
 
 
 
 
 
 
44
  if ( 1 > count[ key ] ) {
45
  return null;
46
  }
1
+ /* global tiobDash */
2
  import classnames from 'classnames';
 
3
  import { useState } from '@wordpress/element';
4
  import { Button, Dashicon, Popover } from '@wordpress/components';
5
  import { withDispatch, withSelect } from '@wordpress/data';
41
  if ( key === category ) {
42
  return null;
43
  }
44
+ if (
45
+ tiobDash &&
46
+ tiobDash.isValidLicense === '1' &&
47
+ 'free' === key
48
+ ) {
49
+ return null;
50
+ }
51
  if ( 1 > count[ key ] ) {
52
  return null;
53
  }
assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js CHANGED
@@ -15,8 +15,6 @@ const DemoSiteTemplatesImport = ( {
15
  slug,
16
  cancel,
17
  setModal,
18
- setInstallModal,
19
- themeStatus,
20
  site,
21
  editor,
22
  setTemplateModal,
@@ -50,37 +48,23 @@ const DemoSiteTemplatesImport = ( {
50
  setPreviewUrl( url );
51
  };
52
 
 
 
 
 
 
53
  const handleBulk = ( e ) => {
54
  e.preventDefault();
55
 
56
- if ( themeStatus ) {
57
- setInstallModal( true );
58
-
59
- return false;
60
- }
61
- setToImport( templates );
62
- setTemplateModal( true );
63
  };
64
 
65
  const handleSingleImport = ( item ) => {
66
- if ( themeStatus ) {
67
- setInstallModal( true );
68
-
69
- return false;
70
- }
71
- setToImport( [ item ] );
72
-
73
- setTemplateModal( true );
74
  };
75
 
76
  const launchImport = ( e ) => {
77
  e.preventDefault();
78
-
79
- if ( themeStatus ) {
80
- setInstallModal( true );
81
-
82
- return false;
83
- }
84
  setModal( true );
85
  };
86
 
@@ -276,7 +260,6 @@ export default compose(
276
  const {
277
  setSingleTemplateImport,
278
  setImportModalStatus,
279
- setInstallModalStatus,
280
  setTemplateModal,
281
  } = dispatch( 'neve-onboarding' );
282
 
@@ -287,21 +270,16 @@ export default compose(
287
  return {
288
  cancel,
289
  setModal: ( status ) => setImportModalStatus( status ),
290
- setInstallModal: ( status ) => setInstallModalStatus( status ),
291
  setTemplateModal,
292
  };
293
  } ),
294
  withSelect( ( select ) => {
295
- const {
296
- getTemplateModal,
297
- getThemeAction,
298
- getCurrentSite,
299
- getCurrentEditor,
300
- } = select( 'neve-onboarding' );
301
 
302
  return {
303
  templateModal: getTemplateModal(),
304
- themeStatus: getThemeAction().action || false,
305
  site: getCurrentSite(),
306
  editor: getCurrentEditor(),
307
  };
15
  slug,
16
  cancel,
17
  setModal,
 
 
18
  site,
19
  editor,
20
  setTemplateModal,
48
  setPreviewUrl( url );
49
  };
50
 
51
+ const doImport = ( templatesToImport ) => {
52
+ setToImport( templatesToImport );
53
+ setTemplateModal( true );
54
+ };
55
+
56
  const handleBulk = ( e ) => {
57
  e.preventDefault();
58
 
59
+ doImport( templates );
 
 
 
 
 
 
60
  };
61
 
62
  const handleSingleImport = ( item ) => {
63
+ doImport( [ item ] );
 
 
 
 
 
 
 
64
  };
65
 
66
  const launchImport = ( e ) => {
67
  e.preventDefault();
 
 
 
 
 
 
68
  setModal( true );
69
  };
70
 
260
  const {
261
  setSingleTemplateImport,
262
  setImportModalStatus,
 
263
  setTemplateModal,
264
  } = dispatch( 'neve-onboarding' );
265
 
270
  return {
271
  cancel,
272
  setModal: ( status ) => setImportModalStatus( status ),
 
273
  setTemplateModal,
274
  };
275
  } ),
276
  withSelect( ( select ) => {
277
+ const { getTemplateModal, getCurrentSite, getCurrentEditor } = select(
278
+ 'neve-onboarding'
279
+ );
 
 
 
280
 
281
  return {
282
  templateModal: getTemplateModal(),
 
283
  site: getCurrentSite(),
284
  editor: getCurrentEditor(),
285
  };
assets/src/Components/CloudLibrary/ImportTemplatesModal.js CHANGED
@@ -4,12 +4,13 @@ import { Modal, Button, Icon } from '@wordpress/components';
4
  import { __, sprintf } from '@wordpress/i18n';
5
  import { compose } from '@wordpress/compose';
6
  import { page as pageIcon } from '@wordpress/icons';
7
- import {
8
- useEffect,
9
- useState,
10
- } from '@wordpress/element';
11
 
12
- import { importTemplates } from '../../utils/site-import';
 
 
 
 
13
  import { fetchBulkData, getUserTemplateData } from './common';
14
  import classnames from 'classnames';
15
 
@@ -17,8 +18,7 @@ const ImportTemplatesModal = ( {
17
  templatesData,
18
  cancel,
19
  siteData,
20
- themeStatus,
21
- setInstallModal,
22
  setModal,
23
  isUserTemplate = false,
24
  generalTemplates = false,
@@ -103,13 +103,6 @@ const ImportTemplatesModal = ( {
103
 
104
  const launchImport = ( e ) => {
105
  e.preventDefault();
106
-
107
- if ( themeStatus ) {
108
- setInstallModal( true );
109
-
110
- return false;
111
- }
112
-
113
  setModal( true );
114
  };
115
 
@@ -118,19 +111,52 @@ const ImportTemplatesModal = ( {
118
  const data = templatesData.map( ( item, index ) => {
119
  return { ...item, ...templates[ index ] };
120
  } );
121
- try {
122
- importTemplates( data ).then( ( r ) => {
123
- if ( ! r.success ) {
124
- console.log( r.message );
125
- return false;
126
- }
127
 
128
- setImported( r.pages );
129
- setImporting( 'done' );
130
- } );
131
- } catch ( e ) {
132
- console.log( error );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  }
 
 
134
  };
135
 
136
  const ImportDone = () => {
@@ -152,7 +178,7 @@ const ImportTemplatesModal = ( {
152
  )
153
  : __(
154
  'Templates were successfully imported!',
155
- 'templates-patterns-collection'
156
  ) }
157
  </p>
158
  </div>
@@ -336,19 +362,16 @@ const ImportTemplatesModal = ( {
336
 
337
  export default compose(
338
  withSelect( ( select ) => {
339
- const { getThemeAction, getCurrentSite } = select(
340
- 'neve-onboarding'
341
- );
342
  return {
343
- themeStatus: getThemeAction().action || false,
344
  siteData: getCurrentSite(),
 
345
  };
346
  } ),
347
  withDispatch( ( dispatch ) => {
348
  const {
349
  setTemplateModal,
350
  setImportModalStatus,
351
- setInstallModalStatus,
352
  } = dispatch( 'neve-onboarding' );
353
 
354
  return {
@@ -356,7 +379,6 @@ export default compose(
356
  setTemplateModal( null );
357
  },
358
  setModal: ( status ) => setImportModalStatus( status ),
359
- setInstallModal: ( status ) => setInstallModalStatus( status ),
360
  };
361
  } )
362
  )( ImportTemplatesModal );
4
  import { __, sprintf } from '@wordpress/i18n';
5
  import { compose } from '@wordpress/compose';
6
  import { page as pageIcon } from '@wordpress/icons';
7
+ import { useEffect, useState } from '@wordpress/element';
 
 
 
8
 
9
+ import {
10
+ importTemplates,
11
+ installTheme,
12
+ activateTheme,
13
+ } from '../../utils/site-import';
14
  import { fetchBulkData, getUserTemplateData } from './common';
15
  import classnames from 'classnames';
16
 
18
  templatesData,
19
  cancel,
20
  siteData,
21
+ themeData,
 
22
  setModal,
23
  isUserTemplate = false,
24
  generalTemplates = false,
103
 
104
  const launchImport = ( e ) => {
105
  e.preventDefault();
 
 
 
 
 
 
 
106
  setModal( true );
107
  };
108
 
111
  const data = templatesData.map( ( item, index ) => {
112
  return { ...item, ...templates[ index ] };
113
  } );
 
 
 
 
 
 
114
 
115
+ const callbackImportTemplate = () => {
116
+ try {
117
+ importTemplates( data ).then( ( r ) => {
118
+ if ( ! r.success ) {
119
+ console.log( r.message );
120
+ return false;
121
+ }
122
+
123
+ setImported( r.pages );
124
+ setImporting( 'done' );
125
+ } );
126
+ } catch ( e ) {
127
+ console.log( e );
128
+ }
129
+ };
130
+
131
+ if (
132
+ ! themeData ||
133
+ ( data[ 0 ].template_site_slug === 'general' &&
134
+ data[ 0 ].premade === 'yes' )
135
+ ) {
136
+ callbackImportTemplate();
137
+ return false;
138
+ }
139
+
140
+ const callbackError = ( err ) => {
141
+ console.error( err );
142
+ };
143
+
144
+ if ( themeData.action === 'install' ) {
145
+ installTheme(
146
+ 'neve',
147
+ () => {
148
+ activateTheme(
149
+ themeData,
150
+ callbackImportTemplate,
151
+ callbackError
152
+ );
153
+ },
154
+ callbackError
155
+ );
156
+ return false;
157
  }
158
+
159
+ activateTheme( themeData, callbackImportTemplate, callbackError );
160
  };
161
 
162
  const ImportDone = () => {
178
  )
179
  : __(
180
  'Templates were successfully imported!',
181
+ 'templates-patterns-collection'
182
  ) }
183
  </p>
184
  </div>
362
 
363
  export default compose(
364
  withSelect( ( select ) => {
365
+ const { getThemeAction, getCurrentSite } = select( 'neve-onboarding' );
 
 
366
  return {
 
367
  siteData: getCurrentSite(),
368
+ themeData: getThemeAction() || false,
369
  };
370
  } ),
371
  withDispatch( ( dispatch ) => {
372
  const {
373
  setTemplateModal,
374
  setImportModalStatus,
 
375
  } = dispatch( 'neve-onboarding' );
376
 
377
  return {
379
  setTemplateModal( null );
380
  },
381
  setModal: ( status ) => setImportModalStatus( status ),
 
382
  };
383
  } )
384
  )( ImportTemplatesModal );
assets/src/Components/CloudLibrary/Library.js CHANGED
@@ -6,7 +6,7 @@ import { useEffect, useState, Fragment } from '@wordpress/element';
6
  import { withDispatch, withSelect } from '@wordpress/data';
7
  import { Spinner, Button, Icon } from '@wordpress/components';
8
  import { compose } from '@wordpress/compose';
9
- import { __, isRTL } from '@wordpress/i18n';
10
 
11
  import { fetchLibrary } from './common';
12
  import ListItem from './ListItem';
@@ -19,12 +19,11 @@ import Logo from '../Icon';
19
  const Library = ( {
20
  isGeneral,
21
  setPreview,
22
- setInstallModal,
23
  setTemplateModal,
24
  templateModal,
25
- themeStatus,
26
  currentTab,
27
  userStatus,
 
28
  } ) => {
29
  const [ library, setLibrary ] = useState( {
30
  gutenberg: [],
@@ -203,11 +202,6 @@ const Library = ( {
203
  };
204
 
205
  const handleImport = ( id ) => {
206
- if ( themeStatus ) {
207
- setInstallModal( true );
208
-
209
- return false;
210
- }
211
  setToImport( [ id ] );
212
  setTemplateModal( true );
213
  };
@@ -220,7 +214,7 @@ const Library = ( {
220
  library[ type ].find( ( item ) => previewUrl === item.link );
221
  const wrapClasses = classnames( 'cloud-items', {
222
  'is-grid': isGrid || ( ! userStatus && ! isGeneral ),
223
- 'is-dummy': ! userStatus && ! isGeneral,
224
  } );
225
 
226
  const handlePrevious = () => {
@@ -287,7 +281,11 @@ const Library = ( {
287
  } );
288
  };
289
 
290
- if ( ! userStatus && ! isGeneral ) {
 
 
 
 
291
  return (
292
  <div className={ wrapClasses }>
293
  <div className="table">
@@ -307,25 +305,25 @@ const Library = ( {
307
  <div className="upsell-modal">
308
  <div className="upsell-modal-content">
309
  <div className="info">
310
- <h3>
311
- { __( 'Templates Cloud is a PRO Feature' ) }
312
- </h3>
313
 
314
- <p>
315
- { __(
316
- 'Unlock the Templates Cloud features and save your pages or posts in the cloud.'
317
- ) }
318
- </p>
319
 
320
- <Button
321
- variant="primary"
322
- isPrimary
323
- href="https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=upgradetoprobtn and
 
324
  https://themeisle.com/themes/neve/neve-upgrade-new/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=changeplanbtn"
325
- target="_blank"
326
- >
327
- { __( 'Upgrade to PRO' ) }
328
- </Button>
 
329
  </div>
330
  <div className="icon">
331
  <Icon icon={ Logo } />
@@ -335,6 +333,35 @@ const Library = ( {
335
  </div>
336
  </div>
337
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  }
339
 
340
  return (
@@ -537,7 +564,7 @@ export default compose(
537
 
538
  return {
539
  templateModal: getTemplateModal(),
540
- themeStatus: getThemeAction().action || false,
541
  editor: getCurrentEditor(),
542
  currentTab: getCurrentTab(),
543
  userStatus: getUserStatus(),
6
  import { withDispatch, withSelect } from '@wordpress/data';
7
  import { Spinner, Button, Icon } from '@wordpress/components';
8
  import { compose } from '@wordpress/compose';
9
+ import { __, isRTL, sprintf } from '@wordpress/i18n';
10
 
11
  import { fetchLibrary } from './common';
12
  import ListItem from './ListItem';
19
  const Library = ( {
20
  isGeneral,
21
  setPreview,
 
22
  setTemplateModal,
23
  templateModal,
 
24
  currentTab,
25
  userStatus,
26
+ themeData,
27
  } ) => {
28
  const [ library, setLibrary ] = useState( {
29
  gutenberg: [],
202
  };
203
 
204
  const handleImport = ( id ) => {
 
 
 
 
 
205
  setToImport( [ id ] );
206
  setTemplateModal( true );
207
  };
214
  library[ type ].find( ( item ) => previewUrl === item.link );
215
  const wrapClasses = classnames( 'cloud-items', {
216
  'is-grid': isGrid || ( ! userStatus && ! isGeneral ),
217
+ 'is-dummy': ( ! userStatus && ! isGeneral ) || themeData !== false,
218
  } );
219
 
220
  const handlePrevious = () => {
281
  } );
282
  };
283
 
284
+ const themeURL = 'https://wordpress.org/themes/neve/';
285
+ const upgradeURL =
286
+ 'https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=upgradetoprobtn and https://themeisle.com/themes/neve/neve-upgrade-new/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=changeplanbtn';
287
+
288
+ const UpsellModal = ( { title, description, showUpgradeBtn = true } ) => {
289
  return (
290
  <div className={ wrapClasses }>
291
  <div className="table">
305
  <div className="upsell-modal">
306
  <div className="upsell-modal-content">
307
  <div className="info">
308
+ <h3>{ title }</h3>
 
 
309
 
310
+ <p
311
+ dangerouslySetInnerHTML={ {
312
+ __html: description,
313
+ } }
314
+ ></p>
315
 
316
+ { showUpgradeBtn && (
317
+ <Button
318
+ variant="primary"
319
+ isPrimary
320
+ href="https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=upgradetoprobtn and
321
  https://themeisle.com/themes/neve/neve-upgrade-new/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=changeplanbtn"
322
+ target="_blank"
323
+ >
324
+ { __( 'Upgrade to PRO' ) }
325
+ </Button>
326
+ ) }
327
  </div>
328
  <div className="icon">
329
  <Icon icon={ Logo } />
333
  </div>
334
  </div>
335
  );
336
+ };
337
+
338
+ if ( themeData !== false ) {
339
+ return (
340
+ <UpsellModal
341
+ title={ __( 'Coming soon' ) }
342
+ description={ sprintf(
343
+ // translators: %1$s: Theme Name %2$s Plugin Name.
344
+ __(
345
+ 'Right now this feature is not available with your current setup. if you want to use it, you need to install %1$s theme and %2$s plugin',
346
+ 'template-patterns-collection'
347
+ ),
348
+ `<a href="${ themeURL }" target="_blank" rel="noreferrer">Neve</a>`,
349
+ `<a href="${ upgradeURL }" target="_blank" rel="noreferrer">Neve Pro Addon</a>`
350
+ ) }
351
+ showUpgradeBtn={ false }
352
+ />
353
+ );
354
+ }
355
+
356
+ if ( ! userStatus && ! isGeneral ) {
357
+ return (
358
+ <UpsellModal
359
+ title={ __( 'Templates Cloud is a PRO Feature' ) }
360
+ description={ __(
361
+ 'Unlock the Templates Cloud features and save your pages or posts in the cloud.'
362
+ ) }
363
+ />
364
+ );
365
  }
366
 
367
  return (
564
 
565
  return {
566
  templateModal: getTemplateModal(),
567
+ themeData: getThemeAction() || false,
568
  editor: getCurrentEditor(),
569
  currentTab: getCurrentTab(),
570
  userStatus: getUserStatus(),
assets/src/Components/Header.js CHANGED
@@ -1,8 +1,7 @@
1
  /* global tiobDash, localStorage */
2
  import { withSelect, withDispatch } from '@wordpress/data';
3
- import { useEffect } from '@wordpress/element';
4
  import { Button, Icon } from '@wordpress/components';
5
- import { useState } from '@wordpress/element';
6
  import { compose } from '@wordpress/compose';
7
  import { update } from '@wordpress/icons';
8
  import { __ } from '@wordpress/i18n';
@@ -33,51 +32,55 @@ const TabNavigation = ( { setCurrentTab, currentTab, isFetching } ) => {
33
  };
34
 
35
  const onHashChanged = () => {
36
- const hash = getTabHash(buttons);
37
- if (null === hash) {
38
  return;
39
  }
40
 
41
- const menu = document.getElementById('menu-appearance');
42
- const libraryLink = menu.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]');
43
- const starterLink = menu.querySelector('a[href="themes.php?page=tiob-starter-sites"]');
 
 
 
 
44
 
45
  // This is used only to set the active state of the links from the left admin nav.
46
  // So we check that those items exist before trying to mutate them.
47
  if ( libraryLink && starterLink ) {
48
  const libraryItem = libraryLink.parentElement;
49
  const starterSitesItem = starterLink.parentElement;
50
- const activeItem = menu.querySelector('.current');
51
 
52
- activeItem.classList.remove('current');
53
- libraryItem.classList.remove('current');
54
- if ( hash === 'library' ){
55
- libraryItem.classList.add('current');
56
  } else {
57
- starterSitesItem.classList.add('current');
58
  }
59
  }
60
- setCurrentTab(hash);
61
- }
62
 
63
- useEffect(() => {
64
  onHashChanged();
65
- window.addEventListener('hashchange', onHashChanged)
66
- }, []);
67
 
68
  return (
69
  <div className="header-nav">
70
  { Object.keys( buttons ).map( ( slug ) => {
71
  return (
72
  <Button
73
- href={'#' + slug}
74
  key={ slug }
75
  isTertiary
76
  isPressed={ slug === currentTab }
77
- onClick={ (e) => {
78
  e.preventDefault();
79
  setCurrentTab( slug );
80
- addUrlHash(slug);
81
  } }
82
  >
83
  { buttons[ slug ] }
1
  /* global tiobDash, localStorage */
2
  import { withSelect, withDispatch } from '@wordpress/data';
3
+ import { useEffect, useState } from '@wordpress/element';
4
  import { Button, Icon } from '@wordpress/components';
 
5
  import { compose } from '@wordpress/compose';
6
  import { update } from '@wordpress/icons';
7
  import { __ } from '@wordpress/i18n';
32
  };
33
 
34
  const onHashChanged = () => {
35
+ const hash = getTabHash( buttons );
36
+ if ( null === hash ) {
37
  return;
38
  }
39
 
40
+ const menu = document.getElementById( 'menu-appearance' );
41
+ const libraryLink = menu.querySelector(
42
+ 'a[href="themes.php?page=tiob-starter-sites#library"]'
43
+ );
44
+ const starterLink = menu.querySelector(
45
+ 'a[href="themes.php?page=tiob-starter-sites"]'
46
+ );
47
 
48
  // This is used only to set the active state of the links from the left admin nav.
49
  // So we check that those items exist before trying to mutate them.
50
  if ( libraryLink && starterLink ) {
51
  const libraryItem = libraryLink.parentElement;
52
  const starterSitesItem = starterLink.parentElement;
53
+ const activeItem = menu.querySelector( '.current' );
54
 
55
+ activeItem.classList.remove( 'current' );
56
+ libraryItem.classList.remove( 'current' );
57
+ if ( hash === 'library' ) {
58
+ libraryItem.classList.add( 'current' );
59
  } else {
60
+ starterSitesItem.classList.add( 'current' );
61
  }
62
  }
63
+ setCurrentTab( hash );
64
+ };
65
 
66
+ useEffect( () => {
67
  onHashChanged();
68
+ window.addEventListener( 'hashchange', onHashChanged );
69
+ }, [] );
70
 
71
  return (
72
  <div className="header-nav">
73
  { Object.keys( buttons ).map( ( slug ) => {
74
  return (
75
  <Button
76
+ href={ '#' + slug }
77
  key={ slug }
78
  isTertiary
79
  isPressed={ slug === currentTab }
80
+ onClick={ ( e ) => {
81
  e.preventDefault();
82
  setCurrentTab( slug );
83
+ addUrlHash( slug );
84
  } }
85
  >
86
  { buttons[ slug ] }
assets/src/Components/ImportModal.js CHANGED
@@ -6,6 +6,8 @@ import {
6
  importMods,
7
  importWidgets,
8
  installPlugins,
 
 
9
  } from '../utils/site-import';
10
  import { get } from '../utils/rest';
11
  import { trailingSlashIt } from '../utils/common';
@@ -26,18 +28,26 @@ import {
26
  ToggleControl,
27
  Modal,
28
  Panel,
29
- Tooltip,
30
  PanelBody,
31
  PanelRow,
32
  } from '@wordpress/components';
33
 
34
- const ImportModal = ( { setModal, editor, siteData, runTemplateImport } ) => {
 
 
 
 
 
 
 
35
  const [ general, setGeneral ] = useState( {
36
  content: true,
37
  customizer: true,
38
  widgets: true,
39
  cleanup: false,
 
40
  } );
 
41
  const [ cleanupProgress, setCleanupProgress ] = useState( false );
42
  const [ pluginsProgress, setPluginsProgress ] = useState( false );
43
  const [ contentProgress, setContentProgress ] = useState( false );
@@ -52,6 +62,7 @@ const ImportModal = ( { setModal, editor, siteData, runTemplateImport } ) => {
52
  const [ fetching, setFetching ] = useState( true );
53
  const [ pluginsOpened, setPluginsOpened ] = useState( true );
54
  const [ optionsOpened, setOptionsOpened ] = useState( true );
 
55
 
56
  const { license, cleanupAllowed } = tiobDash;
57
  const [ isCleanupAllowed, setIsCleanupAllowed ] = useState(
@@ -145,6 +156,39 @@ const ImportModal = ( { setModal, editor, siteData, runTemplateImport } ) => {
145
  </p>
146
  </div>
147
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  const Options = () => {
149
  let map = {
150
  content: {
@@ -213,17 +257,19 @@ const ImportModal = ( { setModal, editor, siteData, runTemplateImport } ) => {
213
  { tooltip && (
214
  <CustomTooltip>{ tooltip }</CustomTooltip>
215
  ) }
216
- <div className="toggle-wrapper">
217
- <ToggleControl
218
- checked={ general[ id ] }
219
- onChange={ () => {
220
- setGeneral( {
221
- ...general,
222
- [ id ]: ! general[ id ],
223
- } );
224
- } }
225
- />
226
- </div>
 
 
227
  </PanelRow>
228
  );
229
  } ) }
@@ -308,7 +354,68 @@ const ImportModal = ( { setModal, editor, siteData, runTemplateImport } ) => {
308
  );
309
  }
310
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
311
  function runImport() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  // console.clear();
313
  if ( ! pluginOptions ) {
314
  console.log( '[S] Plugins.' );
@@ -528,6 +635,7 @@ const ImportModal = ( { setModal, editor, siteData, runTemplateImport } ) => {
528
  <ModalHead />
529
  <Note />
530
  <Panel className="modal-toggles">
 
531
  <Options />
532
  <Plugins />
533
  </Panel>
@@ -546,6 +654,7 @@ const ImportModal = ( { setModal, editor, siteData, runTemplateImport } ) => {
546
  { null !== currentStep && (
547
  <ImportStepper
548
  progress={ {
 
549
  cleanup: cleanupProgress,
550
  plugins: pluginsProgress,
551
  content: contentProgress,
@@ -648,12 +757,13 @@ const ImportModal = ( { setModal, editor, siteData, runTemplateImport } ) => {
648
 
649
  export default compose(
650
  withSelect( ( select ) => {
651
- const { getCurrentEditor, getCurrentSite } = select(
652
  'neve-onboarding'
653
  );
654
  return {
655
  editor: getCurrentEditor(),
656
  siteData: getCurrentSite(),
 
657
  };
658
  } ),
659
  withDispatch( ( dispatch, { siteData } ) => {
@@ -661,6 +771,7 @@ export default compose(
661
  setTemplateModal,
662
  setSingleTemplateImport,
663
  setImportModalStatus,
 
664
  } = dispatch( 'neve-onboarding' );
665
 
666
  const runTemplateImport = () => {
@@ -671,6 +782,7 @@ export default compose(
671
 
672
  return {
673
  setModal: ( status ) => setImportModalStatus( status ),
 
674
  runTemplateImport,
675
  };
676
  } )
6
  importMods,
7
  importWidgets,
8
  installPlugins,
9
+ installTheme,
10
+ activateTheme,
11
  } from '../utils/site-import';
12
  import { get } from '../utils/rest';
13
  import { trailingSlashIt } from '../utils/common';
28
  ToggleControl,
29
  Modal,
30
  Panel,
 
31
  PanelBody,
32
  PanelRow,
33
  } from '@wordpress/components';
34
 
35
+ const ImportModal = ( {
36
+ setModal,
37
+ setThemeAction,
38
+ editor,
39
+ siteData,
40
+ themeData,
41
+ runTemplateImport,
42
+ } ) => {
43
  const [ general, setGeneral ] = useState( {
44
  content: true,
45
  customizer: true,
46
  widgets: true,
47
  cleanup: false,
48
+ theme_install: themeData !== false,
49
  } );
50
+ const [ themeInstallProgress, setThemeInstallProgress ] = useState( false );
51
  const [ cleanupProgress, setCleanupProgress ] = useState( false );
52
  const [ pluginsProgress, setPluginsProgress ] = useState( false );
53
  const [ contentProgress, setContentProgress ] = useState( false );
62
  const [ fetching, setFetching ] = useState( true );
63
  const [ pluginsOpened, setPluginsOpened ] = useState( true );
64
  const [ optionsOpened, setOptionsOpened ] = useState( true );
65
+ const [ themeOpened, setThemeOpened ] = useState( true );
66
 
67
  const { license, cleanupAllowed } = tiobDash;
68
  const [ isCleanupAllowed, setIsCleanupAllowed ] = useState(
156
  </p>
157
  </div>
158
  );
159
+ const Theme = () => {
160
+ const toggleOpen = () => {
161
+ setThemeOpened( ! themeOpened );
162
+ };
163
+ const rowClass = classnames( 'option-row', 'active' );
164
+ const { icon, title, tooltip } = {
165
+ icon: 'admin-appearance',
166
+ title: __( 'Neve', 'templates-patterns-collection' ),
167
+ tooltip: __(
168
+ 'In order to import the starter site, Neve theme has to be installed and activated.',
169
+ 'templates-patterns-collection'
170
+ ),
171
+ };
172
+
173
+ return (
174
+ <PanelBody
175
+ onToggle={ toggleOpen }
176
+ opened={ themeOpened }
177
+ className="options general"
178
+ title={ __(
179
+ 'Install required theme',
180
+ 'templates-patterns-collection'
181
+ ) }
182
+ >
183
+ <PanelRow className={ rowClass }>
184
+ <Icon icon={ icon } />
185
+ <span>{ title }</span>
186
+ { tooltip && <CustomTooltip>{ tooltip }</CustomTooltip> }
187
+ </PanelRow>
188
+ </PanelBody>
189
+ );
190
+ };
191
+
192
  const Options = () => {
193
  let map = {
194
  content: {
257
  { tooltip && (
258
  <CustomTooltip>{ tooltip }</CustomTooltip>
259
  ) }
260
+ { id !== 'theme_install' && (
261
+ <div className="toggle-wrapper">
262
+ <ToggleControl
263
+ checked={ general[ id ] }
264
+ onChange={ () => {
265
+ setGeneral( {
266
+ ...general,
267
+ [ id ]: ! general[ id ],
268
+ } );
269
+ } }
270
+ />
271
+ </div>
272
+ ) }
273
  </PanelRow>
274
  );
275
  } ) }
354
  );
355
  }
356
 
357
+ function handleThemeInstall() {
358
+ const callbackSuccess = () => {
359
+ setThemeAction( { ...themeData, action: 'activate' } );
360
+ console.log( '[D] Theme Install.' );
361
+ handleActivate();
362
+ };
363
+
364
+ const callbackError = ( err ) => {
365
+ setThemeAction( { ...themeData, action: 'activate' } );
366
+ handleError(
367
+ err.errorMessage ||
368
+ __(
369
+ 'Could not install theme.',
370
+ 'templates-patterns-collection'
371
+ ),
372
+ 'theme_install'
373
+ );
374
+ };
375
+
376
+ installTheme( 'neve', callbackSuccess, callbackError );
377
+ }
378
+
379
+ function handleActivate() {
380
+ const callbackSuccess = () => {
381
+ console.log( '[D] Theme Activate.' );
382
+ setThemeInstallProgress( 'done' );
383
+ setThemeAction( false );
384
+ runImportPlugins();
385
+ };
386
+
387
+ const callbackError = () => {
388
+ handleError(
389
+ __(
390
+ 'Could not activate theme.',
391
+ 'templates-patterns-collection'
392
+ ),
393
+ 'theme_install'
394
+ );
395
+ };
396
+
397
+ activateTheme( themeData, callbackSuccess, callbackError );
398
+ }
399
+
400
  function runImport() {
401
+ // console.clear();
402
+ if ( ! themeData ) {
403
+ console.log( '[S] Theme.' );
404
+ runImportPlugins();
405
+ return false;
406
+ }
407
+ if ( themeData.action === 'install' ) {
408
+ setCurrentStep( 'theme_install' );
409
+ console.log( '[P] Theme Install.' );
410
+ handleThemeInstall();
411
+ return false;
412
+ }
413
+ setCurrentStep( 'theme_install' );
414
+ console.log( '[P] Theme Activate.' );
415
+ handleActivate();
416
+ }
417
+
418
+ function runImportPlugins() {
419
  // console.clear();
420
  if ( ! pluginOptions ) {
421
  console.log( '[S] Plugins.' );
635
  <ModalHead />
636
  <Note />
637
  <Panel className="modal-toggles">
638
+ { themeData !== false && <Theme /> }
639
  <Options />
640
  <Plugins />
641
  </Panel>
654
  { null !== currentStep && (
655
  <ImportStepper
656
  progress={ {
657
+ theme_install: themeInstallProgress,
658
  cleanup: cleanupProgress,
659
  plugins: pluginsProgress,
660
  content: contentProgress,
757
 
758
  export default compose(
759
  withSelect( ( select ) => {
760
+ const { getCurrentEditor, getCurrentSite, getThemeAction } = select(
761
  'neve-onboarding'
762
  );
763
  return {
764
  editor: getCurrentEditor(),
765
  siteData: getCurrentSite(),
766
+ themeData: getThemeAction() || false,
767
  };
768
  } ),
769
  withDispatch( ( dispatch, { siteData } ) => {
771
  setTemplateModal,
772
  setSingleTemplateImport,
773
  setImportModalStatus,
774
+ setThemeAction,
775
  } = dispatch( 'neve-onboarding' );
776
 
777
  const runTemplateImport = () => {
782
 
783
  return {
784
  setModal: ( status ) => setImportModalStatus( status ),
785
+ setThemeAction: ( status ) => setThemeAction( status ),
786
  runTemplateImport,
787
  };
788
  } )
assets/src/Components/ImportStepper.js CHANGED
@@ -5,10 +5,21 @@ import { Dashicon } from '@wordpress/components';
5
  const ImportStepper = ( { currentStep, progress, willDo } ) => {
6
  const stepsMap = {
7
  cleanup: {
8
- label: __( 'Cleanup previous Import', 'templates-patterns-collection' ),
 
 
 
9
  status: progress.cleanup,
10
  willDo: willDo.cleanup,
11
  },
 
 
 
 
 
 
 
 
12
  plugins: {
13
  label: __( 'Installing Plugins', 'templates-patterns-collection' ),
14
  status: progress.plugins,
5
  const ImportStepper = ( { currentStep, progress, willDo } ) => {
6
  const stepsMap = {
7
  cleanup: {
8
+ label: __(
9
+ 'Cleanup previous Import',
10
+ 'templates-patterns-collection'
11
+ ),
12
  status: progress.cleanup,
13
  willDo: willDo.cleanup,
14
  },
15
+ theme_install: {
16
+ label: __(
17
+ 'Installing and Activating the Theme',
18
+ 'templates-patterns-collection'
19
+ ),
20
+ status: progress.theme_install,
21
+ willDo: willDo.theme_install,
22
+ },
23
  plugins: {
24
  label: __( 'Installing Plugins', 'templates-patterns-collection' ),
25
  status: progress.plugins,
assets/src/Components/Main.js CHANGED
@@ -44,7 +44,6 @@ const Onboarding = ( {
44
  </div>
45
  </div>
46
  </div>
47
- { installModal && <InstallModal /> }
48
  { importModal && currentSiteData && <ImportModal /> }
49
  </Fragment>
50
  );
44
  </div>
45
  </div>
46
  </div>
 
47
  { importModal && currentSiteData && <ImportModal /> }
48
  </Fragment>
49
  );
assets/src/Components/PreviewFrame.js CHANGED
@@ -12,16 +12,9 @@ const PreviewFrame = ( {
12
  setSite,
13
  setPreview,
14
  setModal,
15
- themeStatus,
16
- setInstallModal,
17
  } ) => {
18
  const handleImport = ( e ) => {
19
  e.preventDefault();
20
- if ( themeStatus ) {
21
- setInstallModal( true );
22
-
23
- return false;
24
- }
25
  setModal( true );
26
  };
27
  const handleNext = ( e ) => {
@@ -110,10 +103,9 @@ const PreviewFrame = ( {
110
 
111
  export default compose(
112
  withSelect( ( select ) => {
113
- const { getCurrentSite, getThemeAction } = select( 'neve-onboarding' );
114
  return {
115
  siteData: getCurrentSite(),
116
- themeStatus: getThemeAction().action || false,
117
  };
118
  } ),
119
  withDispatch( ( dispatch ) => {
@@ -121,13 +113,11 @@ export default compose(
121
  setCurrentSite,
122
  setPreviewStatus,
123
  setImportModalStatus,
124
- setInstallModalStatus,
125
  } = dispatch( 'neve-onboarding' );
126
  return {
127
  setSite: ( data ) => setCurrentSite( data ),
128
  setPreview: ( status ) => setPreviewStatus( status ),
129
  setModal: ( status ) => setImportModalStatus( status ),
130
- setInstallModal: ( status ) => setInstallModalStatus( status ),
131
  };
132
  } )
133
  )( PreviewFrame );
12
  setSite,
13
  setPreview,
14
  setModal,
 
 
15
  } ) => {
16
  const handleImport = ( e ) => {
17
  e.preventDefault();
 
 
 
 
 
18
  setModal( true );
19
  };
20
  const handleNext = ( e ) => {
103
 
104
  export default compose(
105
  withSelect( ( select ) => {
106
+ const { getCurrentSite } = select( 'neve-onboarding' );
107
  return {
108
  siteData: getCurrentSite(),
 
109
  };
110
  } ),
111
  withDispatch( ( dispatch ) => {
113
  setCurrentSite,
114
  setPreviewStatus,
115
  setImportModalStatus,
 
116
  } = dispatch( 'neve-onboarding' );
117
  return {
118
  setSite: ( data ) => setCurrentSite( data ),
119
  setPreview: ( status ) => setPreviewStatus( status ),
120
  setModal: ( status ) => setImportModalStatus( status ),
 
121
  };
122
  } )
123
  )( PreviewFrame );
assets/src/Components/StarterSiteCard.js CHANGED
@@ -1,5 +1,5 @@
1
  /* eslint-disable camelcase */
2
- import { withDispatch, withSelect } from '@wordpress/data';
3
  import { Button, Dashicon } from '@wordpress/components';
4
  import { useState } from '@wordpress/element';
5
  import { compose } from '@wordpress/compose';
@@ -12,8 +12,6 @@ const StarterSiteCard = ( {
12
  setSite,
13
  setPreview,
14
  setModal,
15
- themeStatus,
16
- setInstallModal,
17
  setImportingPages,
18
  } ) => {
19
  const { upsell, screenshot, title, has_templates, isNew } = data;
@@ -28,13 +26,8 @@ const StarterSiteCard = ( {
28
 
29
  const launchImport = ( e ) => {
30
  e.preventDefault();
31
- setSite();
32
-
33
- if ( themeStatus ) {
34
- setInstallModal( true );
35
 
36
- return false;
37
- }
38
  setModal( true );
39
  };
40
 
@@ -131,27 +124,18 @@ const StarterSiteCard = ( {
131
  };
132
 
133
  export default compose(
134
- withSelect( ( select ) => {
135
- const { getThemeAction } = select( 'neve-onboarding' );
136
-
137
- return {
138
- themeStatus: getThemeAction().action || false,
139
- };
140
- } ),
141
  withDispatch( ( dispatch, { data } ) => {
142
  const { slug } = data;
143
  const {
144
  setCurrentSite,
145
  setPreviewStatus,
146
  setImportModalStatus,
147
- setInstallModalStatus,
148
  setSingleTemplateImport,
149
  } = dispatch( 'neve-onboarding' );
150
  return {
151
  setSite: () => setCurrentSite( data ),
152
  setPreview: ( status ) => setPreviewStatus( status ),
153
  setModal: ( status ) => setImportModalStatus( status ),
154
- setInstallModal: ( status ) => setInstallModalStatus( status ),
155
  setImportingPages: () => setSingleTemplateImport( slug ),
156
  };
157
  } )
1
  /* eslint-disable camelcase */
2
+ import { withDispatch } from '@wordpress/data';
3
  import { Button, Dashicon } from '@wordpress/components';
4
  import { useState } from '@wordpress/element';
5
  import { compose } from '@wordpress/compose';
12
  setSite,
13
  setPreview,
14
  setModal,
 
 
15
  setImportingPages,
16
  } ) => {
17
  const { upsell, screenshot, title, has_templates, isNew } = data;
26
 
27
  const launchImport = ( e ) => {
28
  e.preventDefault();
 
 
 
 
29
 
30
+ setSite();
 
31
  setModal( true );
32
  };
33
 
124
  };
125
 
126
  export default compose(
 
 
 
 
 
 
 
127
  withDispatch( ( dispatch, { data } ) => {
128
  const { slug } = data;
129
  const {
130
  setCurrentSite,
131
  setPreviewStatus,
132
  setImportModalStatus,
 
133
  setSingleTemplateImport,
134
  } = dispatch( 'neve-onboarding' );
135
  return {
136
  setSite: () => setCurrentSite( data ),
137
  setPreview: ( status ) => setPreviewStatus( status ),
138
  setModal: ( status ) => setImportModalStatus( status ),
 
139
  setImportingPages: () => setSingleTemplateImport( slug ),
140
  };
141
  } )
assets/src/scss/_custom-tooltip.scss CHANGED
@@ -11,6 +11,7 @@
11
  + .tiob-tooltip-content {
12
  opacity: 1;
13
  pointer-events: all;
 
14
  }
15
  }
16
  }
11
  + .tiob-tooltip-content {
12
  opacity: 1;
13
  pointer-events: all;
14
+ z-index: 1;
15
  }
16
  }
17
  }
assets/src/utils/site-import.js CHANGED
@@ -1,6 +1,6 @@
1
  /* global tiobDash */
2
  const { onboarding } = tiobDash;
3
- import { send } from './rest';
4
 
5
  export const importWidgets = ( data ) => {
6
  return send( onboarding.root + '/import_widgets', data );
@@ -12,7 +12,7 @@ export const importMods = ( data ) => {
12
 
13
  export const cleanupImport = ( data ) => {
14
  return send( onboarding.root + '/cleanup', data );
15
- }
16
 
17
  export const installPlugins = ( pluginArray ) => {
18
  return send( onboarding.root + '/install_plugins', pluginArray );
@@ -23,13 +23,13 @@ export const importContent = ( data ) => {
23
  };
24
 
25
  export const importTemplates = async ( data ) => {
26
- let plugins = {};
27
 
28
- data.forEach( template => {
29
  if ( 'elementor' === template.template_type ) {
30
  plugins.elementor = true;
31
  } else if ( 'beaver' === template.template_type ) {
32
- plugins['beaver-builder-lite-version'] = true;
33
  }
34
  } );
35
 
@@ -37,9 +37,33 @@ export const importTemplates = async ( data ) => {
37
  try {
38
  await installPlugins( plugins );
39
  } catch ( e ) {
40
- return error;
41
  }
42
  }
43
 
44
  return send( onboarding.root + '/import_single_templates', data );
45
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /* global tiobDash */
2
  const { onboarding } = tiobDash;
3
+ import {get, send} from './rest';
4
 
5
  export const importWidgets = ( data ) => {
6
  return send( onboarding.root + '/import_widgets', data );
12
 
13
  export const cleanupImport = ( data ) => {
14
  return send( onboarding.root + '/cleanup', data );
15
+ };
16
 
17
  export const installPlugins = ( pluginArray ) => {
18
  return send( onboarding.root + '/install_plugins', pluginArray );
23
  };
24
 
25
  export const importTemplates = async ( data ) => {
26
+ const plugins = {};
27
 
28
+ data.forEach( ( template ) => {
29
  if ( 'elementor' === template.template_type ) {
30
  plugins.elementor = true;
31
  } else if ( 'beaver' === template.template_type ) {
32
+ plugins[ 'beaver-builder-lite-version' ] = true;
33
  }
34
  } );
35
 
37
  try {
38
  await installPlugins( plugins );
39
  } catch ( e ) {
40
+ return e;
41
  }
42
  }
43
 
44
  return send( onboarding.root + '/import_single_templates', data );
45
  };
46
+
47
+ export const installTheme = (
48
+ slug = 'neve',
49
+ callbackSuccess,
50
+ callbackError
51
+ ) => {
52
+ wp.updates.installTheme( {
53
+ slug,
54
+ success: callbackSuccess,
55
+ error: callbackError,
56
+ } );
57
+ };
58
+
59
+ export const activateTheme = ( themeData, callbackSuccess, callbackError ) => {
60
+ const { themesURL } = tiobDash;
61
+ const url = `${ themesURL }?action=activate&stylesheet=${ themeData.slug }&_wpnonce=${ themeData.nonce }`;
62
+ get( url, true ).then( ( response ) => {
63
+ if ( response.status !== 200 ) {
64
+ callbackError( response );
65
+ return false;
66
+ }
67
+ callbackSuccess();
68
+ } );
69
+ };
includes/Admin.php CHANGED
@@ -39,6 +39,7 @@ class Admin {
39
  add_filter( 'neve_dashboard_page_data', array( $this, 'localize_sites_library' ) );
40
  add_action( 'admin_menu', array( $this, 'register' ) );
41
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) );
 
42
 
43
  $white_label_module = get_option( 'nv_pro_white_label_status' );
44
  if ( ! empty( $white_label_module ) && (bool) $white_label_module === true ) {
@@ -49,6 +50,21 @@ class Admin {
49
  }
50
  }
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  /**
53
  * Register theme options page.
54
  *
@@ -84,12 +100,13 @@ class Admin {
84
  }
85
 
86
  /**
87
- * Check if current subscription is agency.
88
  *
89
- * @return bool
90
  */
91
- private function is_agency_plan() {
92
- $category = apply_filters( 'product_neve_license_plan', - 1 );
 
93
  $category_mapping = array(
94
  1 => 1,
95
  2 => 1,
@@ -102,7 +119,18 @@ class Admin {
102
  9 => 3,
103
  );
104
 
105
- return isset( $category_mapping[ $category ] ) && $category_mapping[ $category ] === 3;
 
 
 
 
 
 
 
 
 
 
 
106
  }
107
 
108
  /**
@@ -269,6 +297,22 @@ class Admin {
269
  );
270
  }
271
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  return $array;
273
  }
274
 
39
  add_filter( 'neve_dashboard_page_data', array( $this, 'localize_sites_library' ) );
40
  add_action( 'admin_menu', array( $this, 'register' ) );
41
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) );
42
+ add_filter( 'ti_tpc_editor_data', array( $this, 'add_tpc_editor_data' ), 20 );
43
 
44
  $white_label_module = get_option( 'nv_pro_white_label_status' );
45
  if ( ! empty( $white_label_module ) && (bool) $white_label_module === true ) {
50
  }
51
  }
52
 
53
+ /**
54
+ * Hook into editor data to add Neve plan if available.
55
+ *
56
+ * @param array $data tiTpc exported data.
57
+ *
58
+ * @return array
59
+ */
60
+ public function add_tpc_editor_data( $data ) {
61
+ $plan = $this->neve_license_plan();
62
+
63
+ $data['tier'] = $plan;
64
+
65
+ return $data;
66
+ }
67
+
68
  /**
69
  * Register theme options page.
70
  *
100
  }
101
 
102
  /**
103
+ * Map license plan from Neve if available.
104
  *
105
+ * @return int
106
  */
107
+ private function neve_license_plan() {
108
+ $category = apply_filters( 'product_neve_license_plan', - 1 );
109
+
110
  $category_mapping = array(
111
  1 => 1,
112
  2 => 1,
119
  9 => 3,
120
  );
121
 
122
+ return $category > -1 && isset( $category_mapping[ $category ] ) ? $category_mapping[ $category ] : -1;
123
+ }
124
+
125
+ /**
126
+ * Check if current subscription is agency.
127
+ *
128
+ * @return bool
129
+ */
130
+ private function is_agency_plan() {
131
+ $plan = $this->neve_license_plan();
132
+
133
+ return $plan === 3;
134
  }
135
 
136
  /**
297
  );
298
  }
299
 
300
+ $index = apply_filters( 'product_neve_license_plan', -1 );
301
+ if ( $index !== -1 && defined( 'NEVE_PRO_REST_NAMESPACE' ) ) {
302
+ $array = array_merge(
303
+ $array,
304
+ array(
305
+ 'pro' => true,
306
+ 'proApi' => rest_url( NEVE_PRO_REST_NAMESPACE ),
307
+ 'license' => array(
308
+ 'key' => apply_filters( 'product_neve_license_key', 'free' ),
309
+ 'valid' => apply_filters( 'product_neve_license_status', false ),
310
+ 'tier' => $this->neve_license_plan(),
311
+ ),
312
+ )
313
+ );
314
+ }
315
+
316
  return $array;
317
  }
318
 
includes/Importers/Content_Importer.php CHANGED
@@ -135,6 +135,9 @@ class Content_Importer {
135
  $this->logger->log( 'Busting elementor cache', 'progress' );
136
  $this->maybe_bust_elementor_cache();
137
 
 
 
 
138
  // Set front page.
139
  if ( isset( $body['frontPage'] ) ) {
140
  $frontpage_id = $this->setup_front_page( $body['frontPage'], $body['demoSlug'] );
@@ -269,6 +272,32 @@ class Content_Importer {
269
  \Elementor\Plugin::instance()->files_manager->clear_cache();
270
  }
271
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  /**
273
  * Import file
274
  *
135
  $this->logger->log( 'Busting elementor cache', 'progress' );
136
  $this->maybe_bust_elementor_cache();
137
 
138
+ $this->logger->log( 'Busting woo cache', 'progress' );
139
+ $this->maybe_rebuild_woo_product();
140
+
141
  // Set front page.
142
  if ( isset( $body['frontPage'] ) ) {
143
  $frontpage_id = $this->setup_front_page( $body['frontPage'], $body['demoSlug'] );
272
  \Elementor\Plugin::instance()->files_manager->clear_cache();
273
  }
274
 
275
+ /**
276
+ * Update products to rebuild missing data not set on import.
277
+ *
278
+ * @return void
279
+ */
280
+ public function maybe_rebuild_woo_product() {
281
+ if ( ! class_exists( '\WC_Product' ) ) {
282
+ return;
283
+ }
284
+
285
+ $args = array(
286
+ 'post_type' => 'product',
287
+ 'posts_per_page' => -1,
288
+ 'fields' => 'ids',
289
+ );
290
+
291
+ $results = new \WP_Query( $args );
292
+ if ( empty( $results->posts ) ) {
293
+ return;
294
+ }
295
+ foreach ( $results->posts as $post_id ) {
296
+ $product_object = new \WC_Product( $post_id );
297
+ $product_object->save();
298
+ }
299
+ }
300
+
301
  /**
302
  * Import file
303
  *
includes/Importers/Plugin_Importer.php CHANGED
@@ -47,6 +47,7 @@ class Plugin_Importer {
47
  'wpforms-lite' => 'wpforms.php',
48
  'beaver-builder-lite-version' => 'fl-builder.php',
49
  'wpzoom-addons-for-beaver-builder' => 'wpzoom-bb-addon-pack.php',
 
50
  );
51
 
52
  public function __construct() {
47
  'wpforms-lite' => 'wpforms.php',
48
  'beaver-builder-lite-version' => 'fl-builder.php',
49
  'wpzoom-addons-for-beaver-builder' => 'wpzoom-bb-addon-pack.php',
50
+ 'recipe-card-blocks-by-wpzoom' => 'wpzoom-recipe-card.php',
51
  );
52
 
53
  public function __construct() {
includes/Main.php CHANGED
@@ -19,7 +19,7 @@ class Main {
19
  *
20
  * @var string Version string.
21
  */
22
- const VERSION = '1.1.24';
23
  /**
24
  * Sites Library API URL.
25
  *
19
  *
20
  * @var string Version string.
21
  */
22
+ const VERSION = '1.1.25';
23
  /**
24
  * Sites Library API URL.
25
  *
includes/Rest_Server.php CHANGED
@@ -25,6 +25,8 @@ use FLBuilderModel;
25
  class Rest_Server {
26
  /**
27
  * Initialize the rest functionality.
 
 
28
  */
29
  public function init() {
30
  add_action( 'rest_api_init', array( $this, 'register_endpoints' ) );
25
  class Rest_Server {
26
  /**
27
  * Initialize the rest functionality.
28
+ *
29
+ * @return void
30
  */
31
  public function init() {
32
  add_action( 'rest_api_init', array( $this, 'register_endpoints' ) );
languages/templates-patterns-collection.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Templates Patterns Collection 1.1.24\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/templates-patterns-collection\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-07-12T14:35:27+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: templates-patterns-collection\n"
@@ -30,200 +30,200 @@ msgstr ""
30
  msgid "https://themeisle.com"
31
  msgstr ""
32
 
33
- #: includes/Admin.php:72
34
- #: includes/Admin.php:73
35
- #: assets/src/Components/Header.js:17
36
  msgid "Starter Sites"
37
  msgstr ""
38
 
39
- #: includes/Admin.php:82
40
  #: includes/Elementor.php:75
41
  #: includes/TI_Beaver.php:402
42
- #: assets/src/Components/Header.js:19
43
  msgid "My Library"
44
  msgstr ""
45
 
46
  #. translators: %s - Theme name
47
- #: includes/Admin.php:155
48
  msgid "Choose from multiple unique demos, specially designed for you, that can be installed with a single click. You just need to choose your favorite, and we will take care of everything else."
49
  msgstr ""
50
 
51
- #: includes/Admin.php:266
52
  msgid "Great news! Now you can export your own custom designs to the cloud and then reuse them on other sites."
53
  msgstr ""
54
 
55
- #: includes/Admin.php:267
56
  msgid "Open %s"
57
  msgstr ""
58
 
59
- #: includes/Admin.php:364
60
  msgid "Hi! We've noticed you were using a child theme of Zelle before. To make your transition easier, we can help you keep the same homepage settings you had before but in original Zelle's style, by converting it into an Elementor template."
61
  msgstr ""
62
 
63
- #: includes/Admin.php:394
64
  #: includes/TI_Beaver.php:412
65
- #: assets/src/Components/StarterSiteCard.js:68
66
  msgid "Preview"
67
  msgstr ""
68
 
69
- #: includes/Admin.php:395
70
  #: includes/TI_Beaver.php:413
71
- #: assets/src/Components/PreviewFrame.js:102
72
- #: assets/src/Components/StarterSiteCard.js:76
73
  msgid "Import"
74
  msgstr ""
75
 
76
- #: includes/Admin.php:396
77
  msgid "Get the PRO version!"
78
  msgstr ""
79
 
80
- #: includes/Admin.php:397
81
  msgid "Importing"
82
  msgstr ""
83
 
84
- #: includes/Admin.php:398
85
  #: includes/Elementor.php:81
86
  #: includes/TI_Beaver.php:391
87
  #: assets/src/Components/Migration.js:165
88
  msgid "Cancel"
89
  msgstr ""
90
 
91
- #: includes/Admin.php:399
92
  msgid "Loading"
93
  msgstr ""
94
 
95
- #: includes/Admin.php:400
96
- #: assets/src/Components/ImportModal.js:624
97
  #: assets/src/Components/Migration.js:198
98
  msgid "View Website"
99
  msgstr ""
100
 
101
- #: includes/Admin.php:401
102
- #: assets/src/Components/ImportModal.js:634
103
  msgid "Add your own content"
104
  msgstr ""
105
 
106
- #: includes/Admin.php:402
107
- #: assets/src/Components/ImportModal.js:615
108
  msgid "Back to Sites Library"
109
  msgstr ""
110
 
111
- #: includes/Admin.php:403
112
  msgid "Note"
113
  msgstr ""
114
 
115
- #: includes/Admin.php:404
116
  msgid "Advanced Options"
117
  msgstr ""
118
 
119
- #: includes/Admin.php:405
120
- #: assets/src/Components/ImportModal.js:251
121
  msgid "Plugins"
122
  msgstr ""
123
 
124
- #: includes/Admin.php:406
125
  msgid "General"
126
  msgstr ""
127
 
128
- #: includes/Admin.php:407
129
  msgid "Keep current layout"
130
  msgstr ""
131
 
132
- #: includes/Admin.php:408
133
  #: includes/Elementor.php:96
134
  #: includes/TI_Beaver.php:425
135
  msgid "Search"
136
  msgstr ""
137
 
138
- #: includes/Admin.php:409
139
- #: assets/src/Components/ImportModal.js:151
140
  msgid "Content"
141
  msgstr ""
142
 
143
- #: includes/Admin.php:410
144
- #: assets/src/Components/ImportModal.js:159
145
  msgid "Customizer"
146
  msgstr ""
147
 
148
- #: includes/Admin.php:411
149
- #: assets/src/Components/ImportModal.js:163
150
  msgid "Widgets"
151
  msgstr ""
152
 
153
- #: includes/Admin.php:412
154
- #: assets/src/Components/ImportModal.js:153
155
  msgid "We recommend you backup your website content before attempting a full site import."
156
  msgstr ""
157
 
158
- #: includes/Admin.php:413
159
  msgid "Due to copyright issues, some of the demo images will not be imported and will be replaced by placeholder images."
160
  msgstr ""
161
 
162
- #: includes/Admin.php:414
163
  msgid "Some of the demo images will not be imported and will be replaced by placeholder images."
164
  msgstr ""
165
 
166
- #: includes/Admin.php:415
167
  msgid "Here is our own collection of related images you can use for your site."
168
  msgstr ""
169
 
170
- #: includes/Admin.php:416
171
- #: assets/src/Components/ImportModal.js:563
172
  #: assets/src/Components/Migration.js:131
173
  msgid "Content was successfully imported. Enjoy your new site!"
174
  msgstr ""
175
 
176
- #: includes/Admin.php:417
177
  msgid "Available in the PRO version"
178
  msgstr ""
179
 
180
- #: includes/Admin.php:418
181
  msgid "Copy error code"
182
  msgstr ""
183
 
184
- #: includes/Admin.php:419
185
  msgid "Download error log"
186
  msgstr ""
187
 
188
- #: includes/Admin.php:420
189
  msgid "To import this demo you have to install the following plugins:"
190
  msgstr ""
191
 
192
  #. translators: 1 - 'here'.
193
- #: includes/Admin.php:423
194
  msgid "It seems that Rest API is not working properly on your website. Read about how you can fix it %1$s."
195
  msgstr ""
196
 
197
- #: includes/Admin.php:424
198
  msgid "here"
199
  msgstr ""
200
 
201
  #. translators: 1 - 'get in touch'.
202
- #: includes/Admin.php:428
203
  msgid "Hi! It seems there is a configuration issue with your server that's causing the import to fail. Please %1$s with us with the error code below, so we can help you fix this."
204
  msgstr ""
205
 
206
- #: includes/Admin.php:429
207
- #: includes/Admin.php:439
208
  msgid "get in touch"
209
  msgstr ""
210
 
211
  #. translators: 1 - 'troubleshooting guide'.
212
- #: includes/Admin.php:433
213
  msgid "Hi! It seems there is a configuration issue with your server that's causing the import to fail. Take a look at our %1$s to see if any of the proposed solutions work."
214
  msgstr ""
215
 
216
- #: includes/Admin.php:434
217
  msgid "troubleshooting guide"
218
  msgstr ""
219
 
220
  #. translators: 1 - 'get in touch'.
221
- #: includes/Admin.php:438
222
  msgid "If none of the solutions in the guide work, please %1$s with us with the error code below, so we can help you fix this."
223
  msgstr ""
224
 
225
  #. translators: %s - 'WP_Filesystem'.
226
- #: includes/Admin.php:443
227
  msgid "It seems that %s is not available. You can contact your site administrator or hosting provider to help you enable it."
228
  msgstr ""
229
 
@@ -284,7 +284,7 @@ msgstr ""
284
 
285
  #: includes/Elementor.php:74
286
  #: includes/TI_Beaver.php:401
287
- #: assets/src/Components/Header.js:18
288
  msgid "Page Templates"
289
  msgstr ""
290
 
@@ -295,17 +295,17 @@ msgstr ""
295
 
296
  #: includes/Elementor.php:80
297
  #: includes/TI_Beaver.php:408
298
- #: assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js:207
299
  #: assets/src/Components/InstallModal.js:163
300
  #: assets/src/Components/Migration.js:161
301
  #: assets/src/Components/OnboardingContent.js:153
302
- #: assets/src/Components/PreviewFrame.js:54
303
  msgid "Close"
304
  msgstr ""
305
 
306
  #: includes/Elementor.php:82
307
  #: includes/TI_Beaver.php:409
308
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:183
309
  msgid "Edit"
310
  msgstr ""
311
 
@@ -397,7 +397,7 @@ msgstr ""
397
 
398
  #: includes/TI_Beaver.php:35
399
  #: includes/TI_Beaver.php:37
400
- #: assets/src/Components/Header.js:119
401
  msgid "Templates Cloud"
402
  msgstr ""
403
 
@@ -449,15 +449,6 @@ msgstr ""
449
  msgid "Save to Neve Cloud"
450
  msgstr ""
451
 
452
- #: templates-patterns-collection.php:42
453
- msgid "You need to have %1$s installed and activated to use %2$s."
454
- msgstr ""
455
-
456
- #. translators: %s Neve theme name.
457
- #: templates-patterns-collection.php:50
458
- msgid "Install and Activate %s"
459
- msgstr ""
460
-
461
  #: tests/digital-test.php:62
462
  #: tests/rest-test.php:59
463
  msgid "Ready to use pre-built websites with 1-click installation"
@@ -468,51 +459,51 @@ msgstr ""
468
  msgid "With Neve, you can choose from multiple unique demos, specially designed for you, that can be installed with a single click. You just need to choose your favorite, and we will take care of everything else."
469
  msgstr ""
470
 
471
- #: assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js:156
472
- #: assets/src/Components/StarterSiteCard.js:124
473
  msgid "Premium"
474
  msgstr ""
475
 
476
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:142
477
  msgid "Import done!"
478
  msgstr ""
479
 
480
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:149
481
  msgid "Template was successfully imported!"
482
  msgstr ""
483
 
484
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:153
485
  msgid "Templates were successfully imported!"
486
  msgstr ""
487
 
488
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:174
489
  msgid "Visit"
490
  msgstr ""
491
 
492
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:210
493
  msgid "An error occurred!"
494
  msgstr ""
495
 
496
  #. translators: %s the name of the template
497
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:246
498
  msgid "The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed."
499
  msgstr ""
500
 
501
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:252
502
  msgid "All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed."
503
  msgstr ""
504
 
505
  #. translators: name of starter site
506
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:277
507
  msgid "Import the %s template"
508
  msgstr ""
509
 
510
  #. translators: name of template
511
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:282
512
  msgid "Import all templates from %s"
513
  msgstr ""
514
 
515
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:302
516
  msgid "I want to import the entire site"
517
  msgstr ""
518
 
@@ -524,63 +515,85 @@ msgstr ""
524
  msgid "Builder Logo"
525
  msgstr ""
526
 
527
- #: assets/src/Components/ImportModal.js:73
528
- #: assets/src/Components/ImportModal.js:109
529
  msgid "Something went wrong while loading the site data. Please refresh the page and try again."
530
  msgstr ""
531
 
532
  #. translators: name of starter site
533
- #: assets/src/Components/ImportModal.js:133
534
  msgid "Import %s as a complete site"
535
  msgstr ""
536
 
537
- #: assets/src/Components/ImportModal.js:141
538
  msgid "Import the entire site including customizer options, pages, content and plugins."
539
  msgstr ""
540
 
541
- #: assets/src/Components/ImportModal.js:165
 
 
 
 
 
 
 
 
 
 
 
 
542
  msgid "Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there."
543
  msgstr ""
544
 
545
- #: assets/src/Components/ImportModal.js:176
546
  msgid "Cleanup previous import"
547
  msgstr ""
548
 
549
- #: assets/src/Components/ImportModal.js:180
550
  msgid "This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import"
551
  msgstr ""
552
 
553
- #: assets/src/Components/ImportModal.js:198
554
  msgid "Import settings"
555
  msgstr ""
556
 
557
- #: assets/src/Components/ImportModal.js:442
 
 
 
 
 
 
 
 
 
 
558
  msgid "Something went wrong while cleaning the previous import."
559
  msgstr ""
560
 
561
- #: assets/src/Components/ImportModal.js:446
562
  #: assets/src/Components/Migration.js:47
563
  msgid "Something went wrong while installing the necessary plugins."
564
  msgstr ""
565
 
566
- #: assets/src/Components/ImportModal.js:450
567
  #: assets/src/Components/Migration.js:63
568
  msgid "Something went wrong while importing the website content."
569
  msgstr ""
570
 
571
- #: assets/src/Components/ImportModal.js:454
572
  msgid "Something went wrong while updating the customizer settings."
573
  msgstr ""
574
 
575
- #: assets/src/Components/ImportModal.js:458
576
  msgid "Something went wrong while importing the widgets."
577
  msgstr ""
578
 
579
- #: assets/src/Components/ImportModal.js:583
580
  msgid "I want to import just the templates"
581
  msgstr ""
582
 
583
- #: assets/src/Components/ImportModal.js:601
584
  msgid "Import entire site"
585
  msgstr ""
586
 
@@ -600,19 +613,23 @@ msgstr ""
600
  msgid "Cleanup previous Import"
601
  msgstr ""
602
 
603
- #: assets/src/Components/ImportStepper.js:13
 
 
 
 
604
  msgid "Installing Plugins"
605
  msgstr ""
606
 
607
- #: assets/src/Components/ImportStepper.js:18
608
  msgid "Importing Content"
609
  msgstr ""
610
 
611
- #: assets/src/Components/ImportStepper.js:23
612
  msgid "Importing Customizer Settings"
613
  msgstr ""
614
 
615
- #: assets/src/Components/ImportStepper.js:31
616
  msgid "Importing Widgets"
617
  msgstr ""
618
 
@@ -621,14 +638,6 @@ msgstr ""
621
  msgid "An error has ocurred: %s"
622
  msgstr ""
623
 
624
- #: assets/src/Components/InstallModal.js:52
625
- msgid "Could not install theme."
626
- msgstr ""
627
-
628
- #: assets/src/Components/InstallModal.js:67
629
- msgid "Could not activate theme."
630
- msgstr ""
631
-
632
  #: assets/src/Components/InstallModal.js:89
633
  msgid "Install and Activate Neve"
634
  msgstr ""
@@ -694,15 +703,15 @@ msgstr ""
694
  msgid "You can try a different search or use one of the categories below."
695
  msgstr ""
696
 
697
- #: assets/src/Components/PreviewFrame.js:62
698
  msgid "Previous"
699
  msgstr ""
700
 
701
- #: assets/src/Components/PreviewFrame.js:74
702
  msgid "Next"
703
  msgstr ""
704
 
705
- #: assets/src/Components/PreviewFrame.js:91
706
  msgid "Upgrade and Import"
707
  msgstr ""
708
 
@@ -710,15 +719,15 @@ msgstr ""
710
  msgid "Search for a starter site"
711
  msgstr ""
712
 
713
- #: assets/src/Components/StarterSiteCard.js:59
714
  msgid "New"
715
  msgstr ""
716
 
717
- #: assets/src/Components/StarterSiteCard.js:86
718
  msgid "Unlock access with Business plan"
719
  msgstr ""
720
 
721
- #: assets/src/Components/StarterSiteCard.js:102
722
  msgid "View Pages"
723
  msgstr ""
724
 
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Templates Patterns Collection 1.1.25\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/templates-patterns-collection\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-07-28T11:07:07+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: templates-patterns-collection\n"
30
  msgid "https://themeisle.com"
31
  msgstr ""
32
 
33
+ #: includes/Admin.php:88
34
+ #: includes/Admin.php:89
35
+ #: assets/src/Components/Header.js:16
36
  msgid "Starter Sites"
37
  msgstr ""
38
 
39
+ #: includes/Admin.php:98
40
  #: includes/Elementor.php:75
41
  #: includes/TI_Beaver.php:402
42
+ #: assets/src/Components/Header.js:18
43
  msgid "My Library"
44
  msgstr ""
45
 
46
  #. translators: %s - Theme name
47
+ #: includes/Admin.php:183
48
  msgid "Choose from multiple unique demos, specially designed for you, that can be installed with a single click. You just need to choose your favorite, and we will take care of everything else."
49
  msgstr ""
50
 
51
+ #: includes/Admin.php:294
52
  msgid "Great news! Now you can export your own custom designs to the cloud and then reuse them on other sites."
53
  msgstr ""
54
 
55
+ #: includes/Admin.php:295
56
  msgid "Open %s"
57
  msgstr ""
58
 
59
+ #: includes/Admin.php:408
60
  msgid "Hi! We've noticed you were using a child theme of Zelle before. To make your transition easier, we can help you keep the same homepage settings you had before but in original Zelle's style, by converting it into an Elementor template."
61
  msgstr ""
62
 
63
+ #: includes/Admin.php:438
64
  #: includes/TI_Beaver.php:412
65
+ #: assets/src/Components/StarterSiteCard.js:61
66
  msgid "Preview"
67
  msgstr ""
68
 
69
+ #: includes/Admin.php:439
70
  #: includes/TI_Beaver.php:413
71
+ #: assets/src/Components/PreviewFrame.js:95
72
+ #: assets/src/Components/StarterSiteCard.js:69
73
  msgid "Import"
74
  msgstr ""
75
 
76
+ #: includes/Admin.php:440
77
  msgid "Get the PRO version!"
78
  msgstr ""
79
 
80
+ #: includes/Admin.php:441
81
  msgid "Importing"
82
  msgstr ""
83
 
84
+ #: includes/Admin.php:442
85
  #: includes/Elementor.php:81
86
  #: includes/TI_Beaver.php:391
87
  #: assets/src/Components/Migration.js:165
88
  msgid "Cancel"
89
  msgstr ""
90
 
91
+ #: includes/Admin.php:443
92
  msgid "Loading"
93
  msgstr ""
94
 
95
+ #: includes/Admin.php:444
96
+ #: assets/src/Components/ImportModal.js:733
97
  #: assets/src/Components/Migration.js:198
98
  msgid "View Website"
99
  msgstr ""
100
 
101
+ #: includes/Admin.php:445
102
+ #: assets/src/Components/ImportModal.js:743
103
  msgid "Add your own content"
104
  msgstr ""
105
 
106
+ #: includes/Admin.php:446
107
+ #: assets/src/Components/ImportModal.js:724
108
  msgid "Back to Sites Library"
109
  msgstr ""
110
 
111
+ #: includes/Admin.php:447
112
  msgid "Note"
113
  msgstr ""
114
 
115
+ #: includes/Admin.php:448
116
  msgid "Advanced Options"
117
  msgstr ""
118
 
119
+ #: includes/Admin.php:449
120
+ #: assets/src/Components/ImportModal.js:297
121
  msgid "Plugins"
122
  msgstr ""
123
 
124
+ #: includes/Admin.php:450
125
  msgid "General"
126
  msgstr ""
127
 
128
+ #: includes/Admin.php:451
129
  msgid "Keep current layout"
130
  msgstr ""
131
 
132
+ #: includes/Admin.php:452
133
  #: includes/Elementor.php:96
134
  #: includes/TI_Beaver.php:425
135
  msgid "Search"
136
  msgstr ""
137
 
138
+ #: includes/Admin.php:453
139
+ #: assets/src/Components/ImportModal.js:195
140
  msgid "Content"
141
  msgstr ""
142
 
143
+ #: includes/Admin.php:454
144
+ #: assets/src/Components/ImportModal.js:203
145
  msgid "Customizer"
146
  msgstr ""
147
 
148
+ #: includes/Admin.php:455
149
+ #: assets/src/Components/ImportModal.js:207
150
  msgid "Widgets"
151
  msgstr ""
152
 
153
+ #: includes/Admin.php:456
154
+ #: assets/src/Components/ImportModal.js:197
155
  msgid "We recommend you backup your website content before attempting a full site import."
156
  msgstr ""
157
 
158
+ #: includes/Admin.php:457
159
  msgid "Due to copyright issues, some of the demo images will not be imported and will be replaced by placeholder images."
160
  msgstr ""
161
 
162
+ #: includes/Admin.php:458
163
  msgid "Some of the demo images will not be imported and will be replaced by placeholder images."
164
  msgstr ""
165
 
166
+ #: includes/Admin.php:459
167
  msgid "Here is our own collection of related images you can use for your site."
168
  msgstr ""
169
 
170
+ #: includes/Admin.php:460
171
+ #: assets/src/Components/ImportModal.js:672
172
  #: assets/src/Components/Migration.js:131
173
  msgid "Content was successfully imported. Enjoy your new site!"
174
  msgstr ""
175
 
176
+ #: includes/Admin.php:461
177
  msgid "Available in the PRO version"
178
  msgstr ""
179
 
180
+ #: includes/Admin.php:462
181
  msgid "Copy error code"
182
  msgstr ""
183
 
184
+ #: includes/Admin.php:463
185
  msgid "Download error log"
186
  msgstr ""
187
 
188
+ #: includes/Admin.php:464
189
  msgid "To import this demo you have to install the following plugins:"
190
  msgstr ""
191
 
192
  #. translators: 1 - 'here'.
193
+ #: includes/Admin.php:467
194
  msgid "It seems that Rest API is not working properly on your website. Read about how you can fix it %1$s."
195
  msgstr ""
196
 
197
+ #: includes/Admin.php:468
198
  msgid "here"
199
  msgstr ""
200
 
201
  #. translators: 1 - 'get in touch'.
202
+ #: includes/Admin.php:472
203
  msgid "Hi! It seems there is a configuration issue with your server that's causing the import to fail. Please %1$s with us with the error code below, so we can help you fix this."
204
  msgstr ""
205
 
206
+ #: includes/Admin.php:473
207
+ #: includes/Admin.php:483
208
  msgid "get in touch"
209
  msgstr ""
210
 
211
  #. translators: 1 - 'troubleshooting guide'.
212
+ #: includes/Admin.php:477
213
  msgid "Hi! It seems there is a configuration issue with your server that's causing the import to fail. Take a look at our %1$s to see if any of the proposed solutions work."
214
  msgstr ""
215
 
216
+ #: includes/Admin.php:478
217
  msgid "troubleshooting guide"
218
  msgstr ""
219
 
220
  #. translators: 1 - 'get in touch'.
221
+ #: includes/Admin.php:482
222
  msgid "If none of the solutions in the guide work, please %1$s with us with the error code below, so we can help you fix this."
223
  msgstr ""
224
 
225
  #. translators: %s - 'WP_Filesystem'.
226
+ #: includes/Admin.php:487
227
  msgid "It seems that %s is not available. You can contact your site administrator or hosting provider to help you enable it."
228
  msgstr ""
229
 
284
 
285
  #: includes/Elementor.php:74
286
  #: includes/TI_Beaver.php:401
287
+ #: assets/src/Components/Header.js:17
288
  msgid "Page Templates"
289
  msgstr ""
290
 
295
 
296
  #: includes/Elementor.php:80
297
  #: includes/TI_Beaver.php:408
298
+ #: assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js:191
299
  #: assets/src/Components/InstallModal.js:163
300
  #: assets/src/Components/Migration.js:161
301
  #: assets/src/Components/OnboardingContent.js:153
302
+ #: assets/src/Components/PreviewFrame.js:47
303
  msgid "Close"
304
  msgstr ""
305
 
306
  #: includes/Elementor.php:82
307
  #: includes/TI_Beaver.php:409
308
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:209
309
  msgid "Edit"
310
  msgstr ""
311
 
397
 
398
  #: includes/TI_Beaver.php:35
399
  #: includes/TI_Beaver.php:37
400
+ #: assets/src/Components/Header.js:122
401
  msgid "Templates Cloud"
402
  msgstr ""
403
 
449
  msgid "Save to Neve Cloud"
450
  msgstr ""
451
 
 
 
 
 
 
 
 
 
 
452
  #: tests/digital-test.php:62
453
  #: tests/rest-test.php:59
454
  msgid "Ready to use pre-built websites with 1-click installation"
459
  msgid "With Neve, you can choose from multiple unique demos, specially designed for you, that can be installed with a single click. You just need to choose your favorite, and we will take care of everything else."
460
  msgstr ""
461
 
462
+ #: assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js:140
463
+ #: assets/src/Components/StarterSiteCard.js:117
464
  msgid "Premium"
465
  msgstr ""
466
 
467
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:168
468
  msgid "Import done!"
469
  msgstr ""
470
 
471
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:175
472
  msgid "Template was successfully imported!"
473
  msgstr ""
474
 
475
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:179
476
  msgid "Templates were successfully imported!"
477
  msgstr ""
478
 
479
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:200
480
  msgid "Visit"
481
  msgstr ""
482
 
483
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:236
484
  msgid "An error occurred!"
485
  msgstr ""
486
 
487
  #. translators: %s the name of the template
488
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:272
489
  msgid "The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed."
490
  msgstr ""
491
 
492
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:278
493
  msgid "All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed."
494
  msgstr ""
495
 
496
  #. translators: name of starter site
497
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:303
498
  msgid "Import the %s template"
499
  msgstr ""
500
 
501
  #. translators: name of template
502
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:308
503
  msgid "Import all templates from %s"
504
  msgstr ""
505
 
506
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:328
507
  msgid "I want to import the entire site"
508
  msgstr ""
509
 
515
  msgid "Builder Logo"
516
  msgstr ""
517
 
518
+ #: assets/src/Components/ImportModal.js:84
519
+ #: assets/src/Components/ImportModal.js:120
520
  msgid "Something went wrong while loading the site data. Please refresh the page and try again."
521
  msgstr ""
522
 
523
  #. translators: name of starter site
524
+ #: assets/src/Components/ImportModal.js:144
525
  msgid "Import %s as a complete site"
526
  msgstr ""
527
 
528
+ #: assets/src/Components/ImportModal.js:152
529
  msgid "Import the entire site including customizer options, pages, content and plugins."
530
  msgstr ""
531
 
532
+ #: assets/src/Components/ImportModal.js:166
533
+ msgid "Neve"
534
+ msgstr ""
535
+
536
+ #: assets/src/Components/ImportModal.js:167
537
+ msgid "In order to import the starter site, Neve theme has to be installed and activated."
538
+ msgstr ""
539
+
540
+ #: assets/src/Components/ImportModal.js:178
541
+ msgid "Install required theme"
542
+ msgstr ""
543
+
544
+ #: assets/src/Components/ImportModal.js:209
545
  msgid "Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there."
546
  msgstr ""
547
 
548
+ #: assets/src/Components/ImportModal.js:220
549
  msgid "Cleanup previous import"
550
  msgstr ""
551
 
552
+ #: assets/src/Components/ImportModal.js:224
553
  msgid "This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import"
554
  msgstr ""
555
 
556
+ #: assets/src/Components/ImportModal.js:242
557
  msgid "Import settings"
558
  msgstr ""
559
 
560
+ #: assets/src/Components/ImportModal.js:368
561
+ #: assets/src/Components/InstallModal.js:52
562
+ msgid "Could not install theme."
563
+ msgstr ""
564
+
565
+ #: assets/src/Components/ImportModal.js:389
566
+ #: assets/src/Components/InstallModal.js:67
567
+ msgid "Could not activate theme."
568
+ msgstr ""
569
+
570
+ #: assets/src/Components/ImportModal.js:549
571
  msgid "Something went wrong while cleaning the previous import."
572
  msgstr ""
573
 
574
+ #: assets/src/Components/ImportModal.js:553
575
  #: assets/src/Components/Migration.js:47
576
  msgid "Something went wrong while installing the necessary plugins."
577
  msgstr ""
578
 
579
+ #: assets/src/Components/ImportModal.js:557
580
  #: assets/src/Components/Migration.js:63
581
  msgid "Something went wrong while importing the website content."
582
  msgstr ""
583
 
584
+ #: assets/src/Components/ImportModal.js:561
585
  msgid "Something went wrong while updating the customizer settings."
586
  msgstr ""
587
 
588
+ #: assets/src/Components/ImportModal.js:565
589
  msgid "Something went wrong while importing the widgets."
590
  msgstr ""
591
 
592
+ #: assets/src/Components/ImportModal.js:692
593
  msgid "I want to import just the templates"
594
  msgstr ""
595
 
596
+ #: assets/src/Components/ImportModal.js:710
597
  msgid "Import entire site"
598
  msgstr ""
599
 
613
  msgid "Cleanup previous Import"
614
  msgstr ""
615
 
616
+ #: assets/src/Components/ImportStepper.js:16
617
+ msgid "Installing and Activating the Theme"
618
+ msgstr ""
619
+
620
+ #: assets/src/Components/ImportStepper.js:24
621
  msgid "Installing Plugins"
622
  msgstr ""
623
 
624
+ #: assets/src/Components/ImportStepper.js:29
625
  msgid "Importing Content"
626
  msgstr ""
627
 
628
+ #: assets/src/Components/ImportStepper.js:34
629
  msgid "Importing Customizer Settings"
630
  msgstr ""
631
 
632
+ #: assets/src/Components/ImportStepper.js:42
633
  msgid "Importing Widgets"
634
  msgstr ""
635
 
638
  msgid "An error has ocurred: %s"
639
  msgstr ""
640
 
 
 
 
 
 
 
 
 
641
  #: assets/src/Components/InstallModal.js:89
642
  msgid "Install and Activate Neve"
643
  msgstr ""
703
  msgid "You can try a different search or use one of the categories below."
704
  msgstr ""
705
 
706
+ #: assets/src/Components/PreviewFrame.js:55
707
  msgid "Previous"
708
  msgstr ""
709
 
710
+ #: assets/src/Components/PreviewFrame.js:67
711
  msgid "Next"
712
  msgstr ""
713
 
714
+ #: assets/src/Components/PreviewFrame.js:84
715
  msgid "Upgrade and Import"
716
  msgstr ""
717
 
719
  msgid "Search for a starter site"
720
  msgstr ""
721
 
722
+ #: assets/src/Components/StarterSiteCard.js:52
723
  msgid "New"
724
  msgstr ""
725
 
726
+ #: assets/src/Components/StarterSiteCard.js:79
727
  msgid "Unlock access with Business plan"
728
  msgstr ""
729
 
730
+ #: assets/src/Components/StarterSiteCard.js:95
731
  msgid "View Pages"
732
  msgstr ""
733
 
readme.txt CHANGED
@@ -39,6 +39,18 @@ Yes, you can. You can either chose to import one template or the entire starter
39
 
40
  == Changelog ==
41
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  ##### [Version 1.1.24](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.23...v1.1.24) (2022-07-12)
43
 
44
  Release
39
 
40
  == Changelog ==
41
 
42
+ ##### [Version 1.1.25](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.24...v1.1.25) (2022-07-28)
43
+
44
+ - Improvements to Workflow
45
+ - Fixed plugin activation for recipe card plugin on import
46
+ - Better support for WooCommerce blocks after product import
47
+ - Better support for themes
48
+ - Remove Neve dependencies from Template Patterns Collection
49
+ - Improve display on categories for PRO licenses
50
+
51
+
52
+
53
+
54
  ##### [Version 1.1.24](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.23...v1.1.24) (2022-07-12)
55
 
56
  Release
templates-patterns-collection.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Templates Patterns Collection
4
  * Description: This plugin is an add-on to Neve WordPress theme which offers access to Templates and Block Patterns library service to be used with the theme.
5
- * Version: 1.1.24
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
@@ -15,46 +15,9 @@
15
  * @package templates-patterns-collection
16
  */
17
 
18
- add_action( 'admin_notices', 'ti_tpc_plugins_page_notice' );
19
  add_action( 'init', 'ti_tpc_load_textdomain' );
20
  add_action( 'init', 'ti_tpc_flush_premalinks' );
21
 
22
- /**
23
- * Plugins page notice if we don't have neve activated.
24
- */
25
- function ti_tpc_plugins_page_notice() {
26
- if ( defined( 'NEVE_VERSION' ) ) {
27
- return;
28
- }
29
-
30
- $screen = get_current_screen();
31
- if ( ! isset( $screen->id ) ) {
32
- return;
33
- }
34
-
35
- if ( $screen->id !== 'plugins' ) {
36
- return;
37
- }
38
-
39
- $notice = '<div class="notice notice-warning">';
40
- $notice .= '<p>';
41
- $notice .= sprintf(
42
- __( 'You need to have %1$s installed and activated to use %2$s.', 'templates-patterns-collection' ),
43
- '<strong>' . ( 'Neve Theme' ) . '</strong>',
44
- '<strong>' . ( 'Templates Patterns Collection' ) . '</strong>'
45
- );
46
- $notice .= '</p>';
47
- $notice .= '<p class="actions">';
48
- $notice .= '<a class="button button-primary" href="' . esc_url( admin_url( 'theme-install.php?theme=neve' ) ) . '">';
49
- /* translators: %s Neve theme name. */
50
- $notice .= sprintf( __( 'Install and Activate %s', 'templates-patterns-collection' ), 'Neve' );
51
- $notice .= '</a>';
52
- $notice .= '</p>';
53
- $notice .= '</div>';
54
-
55
- echo wp_kses_post( $notice );
56
- }
57
-
58
  /**
59
  * Flush the permalinks after import
60
  *
2
  /**
3
  * Plugin Name: Templates Patterns Collection
4
  * Description: This plugin is an add-on to Neve WordPress theme which offers access to Templates and Block Patterns library service to be used with the theme.
5
+ * Version: 1.1.25
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
15
  * @package templates-patterns-collection
16
  */
17
 
 
18
  add_action( 'init', 'ti_tpc_load_textdomain' );
19
  add_action( 'init', 'ti_tpc_flush_premalinks' );
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  /**
22
  * Flush the permalinks after import
23
  *
vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInitf5710e32d651ecf43e371fdcf945d94e::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInit6017a87d4b8f42d859867326c4f06837::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitf5710e32d651ecf43e371fdcf945d94e
6
  {
7
  private static $loader;
8
 
@@ -22,18 +22,18 @@ class ComposerAutoloaderInitf5710e32d651ecf43e371fdcf945d94e
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitf5710e32d651ecf43e371fdcf945d94e', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInitf5710e32d651ecf43e371fdcf945d94e', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
- $includeFiles = \Composer\Autoload\ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
- composerRequiref5710e32d651ecf43e371fdcf945d94e($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
@@ -45,7 +45,7 @@ class ComposerAutoloaderInitf5710e32d651ecf43e371fdcf945d94e
45
  * @param string $file
46
  * @return void
47
  */
48
- function composerRequiref5710e32d651ecf43e371fdcf945d94e($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit6017a87d4b8f42d859867326c4f06837
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit6017a87d4b8f42d859867326c4f06837', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit6017a87d4b8f42d859867326c4f06837', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit6017a87d4b8f42d859867326c4f06837::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
+ $includeFiles = \Composer\Autoload\ComposerStaticInit6017a87d4b8f42d859867326c4f06837::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
+ composerRequire6017a87d4b8f42d859867326c4f06837($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
45
  * @param string $file
46
  * @return void
47
  */
48
+ function composerRequire6017a87d4b8f42d859867326c4f06837($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -58,9 +58,9 @@ class ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e
58
  public static function getInitializer(ClassLoader $loader)
59
  {
60
  return \Closure::bind(function () use ($loader) {
61
- $loader->prefixLengthsPsr4 = ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e::$prefixLengthsPsr4;
62
- $loader->prefixDirsPsr4 = ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e::$prefixDirsPsr4;
63
- $loader->classMap = ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit6017a87d4b8f42d859867326c4f06837
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
58
  public static function getInitializer(ClassLoader $loader)
59
  {
60
  return \Closure::bind(function () use ($loader) {
61
+ $loader->prefixLengthsPsr4 = ComposerStaticInit6017a87d4b8f42d859867326c4f06837::$prefixLengthsPsr4;
62
+ $loader->prefixDirsPsr4 = ComposerStaticInit6017a87d4b8f42d859867326c4f06837::$prefixDirsPsr4;
63
+ $loader->classMap = ComposerStaticInit6017a87d4b8f42d859867326c4f06837::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
vendor/composer/installed.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/templates-patterns-collection',
4
- 'pretty_version' => '1.1.24',
5
- 'version' => '1.1.24.0',
6
  'reference' => NULL,
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
@@ -11,8 +11,8 @@
11
  ),
12
  'versions' => array(
13
  'codeinwp/templates-patterns-collection' => array(
14
- 'pretty_version' => '1.1.24',
15
- 'version' => '1.1.24.0',
16
  'reference' => NULL,
17
  'type' => 'library',
18
  'install_path' => __DIR__ . '/../../',
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/templates-patterns-collection',
4
+ 'pretty_version' => '1.1.25',
5
+ 'version' => '1.1.25.0',
6
  'reference' => NULL,
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
11
  ),
12
  'versions' => array(
13
  'codeinwp/templates-patterns-collection' => array(
14
+ 'pretty_version' => '1.1.25',
15
+ 'version' => '1.1.25.0',
16
  'reference' => NULL,
17
  'type' => 'library',
18
  'install_path' => __DIR__ . '/../../',
yarn.lock CHANGED
@@ -3324,6 +3324,11 @@ caseless@~0.12.0:
3324
  resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
3325
  integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=
3326
 
 
 
 
 
 
3327
  chalk@^1.0.0, chalk@^1.1.3:
3328
  version "1.1.3"
3329
  resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
@@ -5013,6 +5018,11 @@ escape-string-regexp@^2.0.0:
5013
  resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
5014
  integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
5015
 
 
 
 
 
 
5016
  escodegen@^1.11.1:
5017
  version "1.14.3"
5018
  resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503"
@@ -8751,6 +8761,13 @@ markdown-it@10.0.0:
8751
  mdurl "^1.0.1"
8752
  uc.micro "^1.0.5"
8753
 
 
 
 
 
 
 
 
8754
  markdownlint-cli@^0.21.0:
8755
  version "0.21.0"
8756
  resolved "https://registry.yarnpkg.com/markdownlint-cli/-/markdownlint-cli-0.21.0.tgz#d792b157e9de63ce1d6b6e13d7cf83d5e552d5e8"
@@ -8813,6 +8830,15 @@ md5.js@^1.3.4:
8813
  inherits "^2.0.1"
8814
  safe-buffer "^5.1.2"
8815
 
 
 
 
 
 
 
 
 
 
8816
  mdast-util-from-markdown@^0.8.0:
8817
  version "0.8.4"
8818
  resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-0.8.4.tgz#2882100c1b9fc967d3f83806802f303666682d32"
@@ -8824,6 +8850,48 @@ mdast-util-from-markdown@^0.8.0:
8824
  parse-entities "^2.0.0"
8825
  unist-util-stringify-position "^2.0.0"
8826
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8827
  mdast-util-to-markdown@^0.6.0:
8828
  version "0.6.2"
8829
  resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-0.6.2.tgz#8fe6f42a2683c43c5609dfb40407c095409c85b4"
@@ -8836,6 +8904,18 @@ mdast-util-to-markdown@^0.6.0:
8836
  repeat-string "^1.0.0"
8837
  zwitch "^1.0.0"
8838
 
 
 
 
 
 
 
 
 
 
 
 
 
8839
  mdast-util-to-string@^2.0.0:
8840
  version "2.0.0"
8841
  resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz#b8cfe6a713e1091cb5b728fc48885a4767f8b97b"
@@ -8975,6 +9055,59 @@ methods@~1.1.2:
8975
  resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
8976
  integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=
8977
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8978
  micromark@~2.11.0:
8979
  version "2.11.2"
8980
  resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.2.tgz#e8b6a05f54697d2d3d27fc89600c6bc40dd05f35"
@@ -8983,6 +9116,14 @@ micromark@~2.11.0:
8983
  debug "^4.0.0"
8984
  parse-entities "^2.0.0"
8985
 
 
 
 
 
 
 
 
 
8986
  micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4:
8987
  version "3.1.10"
8988
  resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23"
@@ -9002,14 +9143,6 @@ micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4:
9002
  snapdragon "^0.8.1"
9003
  to-regex "^3.0.2"
9004
 
9005
- micromatch@^4.0.0, micromatch@^4.0.2:
9006
- version "4.0.2"
9007
- resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259"
9008
- integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==
9009
- dependencies:
9010
- braces "^3.0.1"
9011
- picomatch "^2.0.5"
9012
-
9013
  miller-rabin@^4.0.0:
9014
  version "4.0.1"
9015
  resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d"
@@ -9321,6 +9454,13 @@ node-fetch-npm@^2.0.2:
9321
  json-parse-better-errors "^1.0.0"
9322
  safe-buffer "^5.1.1"
9323
 
 
 
 
 
 
 
 
9324
  node-fetch@^2.6.1:
9325
  version "2.6.1"
9326
  resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
@@ -11343,6 +11483,14 @@ regjsparser@^0.6.4:
11343
  dependencies:
11344
  jsesc "~0.5.0"
11345
 
 
 
 
 
 
 
 
 
11346
  remark-parse@^5.0.0:
11347
  version "5.0.0"
11348
  resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-5.0.0.tgz#4c077f9e499044d1d5c13f80d7a98cf7b9285d95"
@@ -11371,7 +11519,7 @@ remark-parse@^9.0.0:
11371
  dependencies:
11372
  mdast-util-from-markdown "^0.8.0"
11373
 
11374
- remark-stringify@^9.0.0:
11375
  version "9.0.1"
11376
  resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-9.0.1.tgz#576d06e910548b0a7191a71f27b33f1218862894"
11377
  integrity sha512-mWmNg3ZtESvZS8fv5PTvaPckdL4iNlCHTt8/e/8oN08nArHRHjNZMKzA/YW3+p7/lYqIw4nx1XsjCBo/AxNChg==
@@ -11764,6 +11912,16 @@ schema-utils@^2.5.0, schema-utils@^2.6.1, schema-utils@^2.6.5, schema-utils@^2.6
11764
  ajv "^6.12.4"
11765
  ajv-keywords "^3.5.2"
11766
 
 
 
 
 
 
 
 
 
 
 
11767
  semantic-release@^17.3.7:
11768
  version "17.3.7"
11769
  resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-17.3.7.tgz#a54a8ccf443c7389706c9e3c52f2a9433e0581f7"
@@ -11994,6 +12152,19 @@ sisteransi@^1.0.5:
11994
  resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed"
11995
  integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==
11996
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11997
  slash@^3.0.0:
11998
  version "3.0.0"
11999
  resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
@@ -13015,6 +13186,11 @@ tr46@^1.0.1:
13015
  dependencies:
13016
  punycode "^2.1.0"
13017
 
 
 
 
 
 
13018
  traverse@~0.6.6:
13019
  version "0.6.6"
13020
  resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137"
@@ -13237,6 +13413,18 @@ unified@^6.1.2:
13237
  vfile "^2.0.0"
13238
  x-is-string "^0.1.0"
13239
 
 
 
 
 
 
 
 
 
 
 
 
 
13240
  unified@^9.1.0:
13241
  version "9.2.0"
13242
  resolved "https://registry.yarnpkg.com/unified/-/unified-9.2.0.tgz#67a62c627c40589edebbf60f53edfd4d822027f8"
@@ -13316,6 +13504,13 @@ unist-util-remove-position@^1.0.0:
13316
  dependencies:
13317
  unist-util-visit "^1.1.0"
13318
 
 
 
 
 
 
 
 
13319
  unist-util-stringify-position@^1.0.0, unist-util-stringify-position@^1.1.1:
13320
  version "1.1.2"
13321
  resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-1.1.2.tgz#3f37fcf351279dcbca7480ab5889bb8a832ee1c6"
@@ -13335,6 +13530,14 @@ unist-util-visit-parents@^2.0.0:
13335
  dependencies:
13336
  unist-util-is "^3.0.0"
13337
 
 
 
 
 
 
 
 
 
13338
  unist-util-visit@^1.1.0:
13339
  version "1.4.1"
13340
  resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-1.4.1.tgz#4724aaa8486e6ee6e26d7ff3c8685960d560b1e3"
@@ -13342,6 +13545,15 @@ unist-util-visit@^1.1.0:
13342
  dependencies:
13343
  unist-util-visit-parents "^2.0.0"
13344
 
 
 
 
 
 
 
 
 
 
13345
  universal-user-agent@^6.0.0:
13346
  version "6.0.0"
13347
  resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.0.tgz#3381f8503b251c0d9cd21bc1de939ec9df5480ee"
@@ -13666,6 +13878,11 @@ wcwidth@^1.0.0:
13666
  dependencies:
13667
  defaults "^1.0.3"
13668
 
 
 
 
 
 
13669
  webidl-conversions@^4.0.2:
13670
  version "4.0.2"
13671
  resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"
@@ -13784,6 +14001,14 @@ whatwg-mimetype@^2.2.0, whatwg-mimetype@^2.3.0:
13784
  resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf"
13785
  integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==
13786
 
 
 
 
 
 
 
 
 
13787
  whatwg-url@^7.0.0:
13788
  version "7.1.0"
13789
  resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.1.0.tgz#c2c492f1eca612988efd3d2266be1b9fc6170d06"
3324
  resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
3325
  integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=
3326
 
3327
+ ccount@^1.0.0:
3328
+ version "1.1.0"
3329
+ resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.1.0.tgz#246687debb6014735131be8abab2d93898f8d043"
3330
+ integrity sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==
3331
+
3332
  chalk@^1.0.0, chalk@^1.1.3:
3333
  version "1.1.3"
3334
  resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
5018
  resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
5019
  integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
5020
 
5021
+ escape-string-regexp@^4.0.0:
5022
+ version "4.0.0"
5023
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
5024
+ integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
5025
+
5026
  escodegen@^1.11.1:
5027
  version "1.14.3"
5028
  resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503"
8761
  mdurl "^1.0.1"
8762
  uc.micro "^1.0.5"
8763
 
8764
+ markdown-table@^2.0.0:
8765
+ version "2.0.0"
8766
+ resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-2.0.0.tgz#194a90ced26d31fe753d8b9434430214c011865b"
8767
+ integrity sha512-Ezda85ToJUBhM6WGaG6veasyym+Tbs3cMAw/ZhOPqXiYsr0jgocBV3j3nx+4lk47plLlIqjwuTm/ywVI+zjJ/A==
8768
+ dependencies:
8769
+ repeat-string "^1.0.0"
8770
+
8771
  markdownlint-cli@^0.21.0:
8772
  version "0.21.0"
8773
  resolved "https://registry.yarnpkg.com/markdownlint-cli/-/markdownlint-cli-0.21.0.tgz#d792b157e9de63ce1d6b6e13d7cf83d5e552d5e8"
8830
  inherits "^2.0.1"
8831
  safe-buffer "^5.1.2"
8832
 
8833
+ mdast-util-find-and-replace@^1.1.0:
8834
+ version "1.1.1"
8835
+ resolved "https://registry.yarnpkg.com/mdast-util-find-and-replace/-/mdast-util-find-and-replace-1.1.1.tgz#b7db1e873f96f66588c321f1363069abf607d1b5"
8836
+ integrity sha512-9cKl33Y21lyckGzpSmEQnIDjEfeeWelN5s1kUW1LwdB0Fkuq2u+4GdqcGEygYxJE8GVqCl0741bYXHgamfWAZA==
8837
+ dependencies:
8838
+ escape-string-regexp "^4.0.0"
8839
+ unist-util-is "^4.0.0"
8840
+ unist-util-visit-parents "^3.0.0"
8841
+
8842
  mdast-util-from-markdown@^0.8.0:
8843
  version "0.8.4"
8844
  resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-0.8.4.tgz#2882100c1b9fc967d3f83806802f303666682d32"
8850
  parse-entities "^2.0.0"
8851
  unist-util-stringify-position "^2.0.0"
8852
 
8853
+ mdast-util-gfm-autolink-literal@^0.1.0:
8854
+ version "0.1.3"
8855
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-0.1.3.tgz#9c4ff399c5ddd2ece40bd3b13e5447d84e385fb7"
8856
+ integrity sha512-GjmLjWrXg1wqMIO9+ZsRik/s7PLwTaeCHVB7vRxUwLntZc8mzmTsLVr6HW1yLokcnhfURsn5zmSVdi3/xWWu1A==
8857
+ dependencies:
8858
+ ccount "^1.0.0"
8859
+ mdast-util-find-and-replace "^1.1.0"
8860
+ micromark "^2.11.3"
8861
+
8862
+ mdast-util-gfm-strikethrough@^0.2.0:
8863
+ version "0.2.3"
8864
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-0.2.3.tgz#45eea337b7fff0755a291844fbea79996c322890"
8865
+ integrity sha512-5OQLXpt6qdbttcDG/UxYY7Yjj3e8P7X16LzvpX8pIQPYJ/C2Z1qFGMmcw+1PZMUM3Z8wt8NRfYTvCni93mgsgA==
8866
+ dependencies:
8867
+ mdast-util-to-markdown "^0.6.0"
8868
+
8869
+ mdast-util-gfm-table@^0.1.0:
8870
+ version "0.1.6"
8871
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-table/-/mdast-util-gfm-table-0.1.6.tgz#af05aeadc8e5ee004eeddfb324b2ad8c029b6ecf"
8872
+ integrity sha512-j4yDxQ66AJSBwGkbpFEp9uG/LS1tZV3P33fN1gkyRB2LoRL+RR3f76m0HPHaby6F4Z5xr9Fv1URmATlRRUIpRQ==
8873
+ dependencies:
8874
+ markdown-table "^2.0.0"
8875
+ mdast-util-to-markdown "~0.6.0"
8876
+
8877
+ mdast-util-gfm-task-list-item@^0.1.0:
8878
+ version "0.1.6"
8879
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-0.1.6.tgz#70c885e6b9f543ddd7e6b41f9703ee55b084af10"
8880
+ integrity sha512-/d51FFIfPsSmCIRNp7E6pozM9z1GYPIkSy1urQ8s/o4TC22BZ7DqfHFWiqBD23bc7J3vV1Fc9O4QIHBlfuit8A==
8881
+ dependencies:
8882
+ mdast-util-to-markdown "~0.6.0"
8883
+
8884
+ mdast-util-gfm@^0.1.0:
8885
+ version "0.1.2"
8886
+ resolved "https://registry.yarnpkg.com/mdast-util-gfm/-/mdast-util-gfm-0.1.2.tgz#8ecddafe57d266540f6881f5c57ff19725bd351c"
8887
+ integrity sha512-NNkhDx/qYcuOWB7xHUGWZYVXvjPFFd6afg6/e2g+SV4r9q5XUcCbV4Wfa3DLYIiD+xAEZc6K4MGaE/m0KDcPwQ==
8888
+ dependencies:
8889
+ mdast-util-gfm-autolink-literal "^0.1.0"
8890
+ mdast-util-gfm-strikethrough "^0.2.0"
8891
+ mdast-util-gfm-table "^0.1.0"
8892
+ mdast-util-gfm-task-list-item "^0.1.0"
8893
+ mdast-util-to-markdown "^0.6.1"
8894
+
8895
  mdast-util-to-markdown@^0.6.0:
8896
  version "0.6.2"
8897
  resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-0.6.2.tgz#8fe6f42a2683c43c5609dfb40407c095409c85b4"
8904
  repeat-string "^1.0.0"
8905
  zwitch "^1.0.0"
8906
 
8907
+ mdast-util-to-markdown@^0.6.1, mdast-util-to-markdown@^0.6.2, mdast-util-to-markdown@~0.6.0:
8908
+ version "0.6.5"
8909
+ resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-0.6.5.tgz#b33f67ca820d69e6cc527a93d4039249b504bebe"
8910
+ integrity sha512-XeV9sDE7ZlOQvs45C9UKMtfTcctcaj/pGwH8YLbMHoMOXNNCn2LsqVQOqrF1+/NU8lKDAqozme9SCXWyo9oAcQ==
8911
+ dependencies:
8912
+ "@types/unist" "^2.0.0"
8913
+ longest-streak "^2.0.0"
8914
+ mdast-util-to-string "^2.0.0"
8915
+ parse-entities "^2.0.0"
8916
+ repeat-string "^1.0.0"
8917
+ zwitch "^1.0.0"
8918
+
8919
  mdast-util-to-string@^2.0.0:
8920
  version "2.0.0"
8921
  resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz#b8cfe6a713e1091cb5b728fc48885a4767f8b97b"
9055
  resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
9056
  integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=
9057
 
9058
+ micromark-extension-gfm-autolink-literal@~0.5.0:
9059
+ version "0.5.7"
9060
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-0.5.7.tgz#53866c1f0c7ef940ae7ca1f72c6faef8fed9f204"
9061
+ integrity sha512-ePiDGH0/lhcngCe8FtH4ARFoxKTUelMp4L7Gg2pujYD5CSMb9PbblnyL+AAMud/SNMyusbS2XDSiPIRcQoNFAw==
9062
+ dependencies:
9063
+ micromark "~2.11.3"
9064
+
9065
+ micromark-extension-gfm-strikethrough@~0.6.5:
9066
+ version "0.6.5"
9067
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-0.6.5.tgz#96cb83356ff87bf31670eefb7ad7bba73e6514d1"
9068
+ integrity sha512-PpOKlgokpQRwUesRwWEp+fHjGGkZEejj83k9gU5iXCbDG+XBA92BqnRKYJdfqfkrRcZRgGuPuXb7DaK/DmxOhw==
9069
+ dependencies:
9070
+ micromark "~2.11.0"
9071
+
9072
+ micromark-extension-gfm-table@~0.4.0:
9073
+ version "0.4.3"
9074
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-table/-/micromark-extension-gfm-table-0.4.3.tgz#4d49f1ce0ca84996c853880b9446698947f1802b"
9075
+ integrity sha512-hVGvESPq0fk6ALWtomcwmgLvH8ZSVpcPjzi0AjPclB9FsVRgMtGZkUcpE0zgjOCFAznKepF4z3hX8z6e3HODdA==
9076
+ dependencies:
9077
+ micromark "~2.11.0"
9078
+
9079
+ micromark-extension-gfm-tagfilter@~0.3.0:
9080
+ version "0.3.0"
9081
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-0.3.0.tgz#d9f26a65adee984c9ccdd7e182220493562841ad"
9082
+ integrity sha512-9GU0xBatryXifL//FJH+tAZ6i240xQuFrSL7mYi8f4oZSbc+NvXjkrHemeYP0+L4ZUT+Ptz3b95zhUZnMtoi/Q==
9083
+
9084
+ micromark-extension-gfm-task-list-item@~0.3.0:
9085
+ version "0.3.3"
9086
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-0.3.3.tgz#d90c755f2533ed55a718129cee11257f136283b8"
9087
+ integrity sha512-0zvM5iSLKrc/NQl84pZSjGo66aTGd57C1idmlWmE87lkMcXrTxg1uXa/nXomxJytoje9trP0NDLvw4bZ/Z/XCQ==
9088
+ dependencies:
9089
+ micromark "~2.11.0"
9090
+
9091
+ micromark-extension-gfm@^0.3.0:
9092
+ version "0.3.3"
9093
+ resolved "https://registry.yarnpkg.com/micromark-extension-gfm/-/micromark-extension-gfm-0.3.3.tgz#36d1a4c089ca8bdfd978c9bd2bf1a0cb24e2acfe"
9094
+ integrity sha512-oVN4zv5/tAIA+l3GbMi7lWeYpJ14oQyJ3uEim20ktYFAcfX1x3LNlFGGlmrZHt7u9YlKExmyJdDGaTt6cMSR/A==
9095
+ dependencies:
9096
+ micromark "~2.11.0"
9097
+ micromark-extension-gfm-autolink-literal "~0.5.0"
9098
+ micromark-extension-gfm-strikethrough "~0.6.5"
9099
+ micromark-extension-gfm-table "~0.4.0"
9100
+ micromark-extension-gfm-tagfilter "~0.3.0"
9101
+ micromark-extension-gfm-task-list-item "~0.3.0"
9102
+
9103
+ micromark@^2.11.3, micromark@~2.11.3:
9104
+ version "2.11.4"
9105
+ resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a"
9106
+ integrity sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA==
9107
+ dependencies:
9108
+ debug "^4.0.0"
9109
+ parse-entities "^2.0.0"
9110
+
9111
  micromark@~2.11.0:
9112
  version "2.11.2"
9113
  resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.2.tgz#e8b6a05f54697d2d3d27fc89600c6bc40dd05f35"
9116
  debug "^4.0.0"
9117
  parse-entities "^2.0.0"
9118
 
9119
+ micromatch@4.0.2, micromatch@^4.0.0, micromatch@^4.0.2:
9120
+ version "4.0.2"
9121
+ resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259"
9122
+ integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==
9123
+ dependencies:
9124
+ braces "^3.0.1"
9125
+ picomatch "^2.0.5"
9126
+
9127
  micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4:
9128
  version "3.1.10"
9129
  resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23"
9143
  snapdragon "^0.8.1"
9144
  to-regex "^3.0.2"
9145
 
 
 
 
 
 
 
 
 
9146
  miller-rabin@^4.0.0:
9147
  version "4.0.1"
9148
  resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d"
9454
  json-parse-better-errors "^1.0.0"
9455
  safe-buffer "^5.1.1"
9456
 
9457
+ node-fetch@^2.3.0:
9458
+ version "2.6.7"
9459
+ resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
9460
+ integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
9461
+ dependencies:
9462
+ whatwg-url "^5.0.0"
9463
+
9464
  node-fetch@^2.6.1:
9465
  version "2.6.1"
9466
  resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
11483
  dependencies:
11484
  jsesc "~0.5.0"
11485
 
11486
+ remark-gfm@^1.0.0:
11487
+ version "1.0.0"
11488
+ resolved "https://registry.yarnpkg.com/remark-gfm/-/remark-gfm-1.0.0.tgz#9213643001be3f277da6256464d56fd28c3b3c0d"
11489
+ integrity sha512-KfexHJCiqvrdBZVbQ6RopMZGwaXz6wFJEfByIuEwGf0arvITHjiKKZ1dpXujjH9KZdm1//XJQwgfnJ3lmXaDPA==
11490
+ dependencies:
11491
+ mdast-util-gfm "^0.1.0"
11492
+ micromark-extension-gfm "^0.3.0"
11493
+
11494
  remark-parse@^5.0.0:
11495
  version "5.0.0"
11496
  resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-5.0.0.tgz#4c077f9e499044d1d5c13f80d7a98cf7b9285d95"
11519
  dependencies:
11520
  mdast-util-from-markdown "^0.8.0"
11521
 
11522
+ remark-stringify@^9.0.0, remark-stringify@^9.0.1:
11523
  version "9.0.1"
11524
  resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-9.0.1.tgz#576d06e910548b0a7191a71f27b33f1218862894"
11525
  integrity sha512-mWmNg3ZtESvZS8fv5PTvaPckdL4iNlCHTt8/e/8oN08nArHRHjNZMKzA/YW3+p7/lYqIw4nx1XsjCBo/AxNChg==
11912
  ajv "^6.12.4"
11913
  ajv-keywords "^3.5.2"
11914
 
11915
+ semantic-release-slack-bot@^3.5.3:
11916
+ version "3.5.3"
11917
+ resolved "https://registry.yarnpkg.com/semantic-release-slack-bot/-/semantic-release-slack-bot-3.5.3.tgz#eaf638509210e01bbd401dcbc2af17ed36549348"
11918
+ integrity sha512-QoLRfZPkgkER2s/DiIu0qA9pYu4am8ASu7xq3omCXl2oJ+fKdb1Rentgezzv7RefMXhO2q2aah1aqutWnSnlhw==
11919
+ dependencies:
11920
+ "@semantic-release/error" "^2.2.0"
11921
+ micromatch "4.0.2"
11922
+ node-fetch "^2.3.0"
11923
+ slackify-markdown "^4.3.0"
11924
+
11925
  semantic-release@^17.3.7:
11926
  version "17.3.7"
11927
  resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-17.3.7.tgz#a54a8ccf443c7389706c9e3c52f2a9433e0581f7"
12152
  resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed"
12153
  integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==
12154
 
12155
+ slackify-markdown@^4.3.0:
12156
+ version "4.3.1"
12157
+ resolved "https://registry.yarnpkg.com/slackify-markdown/-/slackify-markdown-4.3.1.tgz#1bfaf03bc4a8d617827326e137a9316b165ba4ab"
12158
+ integrity sha512-6Uktkq4rEB6JZlRguI/dpPDF6Rak6QXZm3Gv2IM0VMeYQRSufp+TLFfOylxwINnOeMRc9ciYRhsbt1hUFD+uuQ==
12159
+ dependencies:
12160
+ mdast-util-to-markdown "^0.6.2"
12161
+ remark-gfm "^1.0.0"
12162
+ remark-parse "^9.0.0"
12163
+ remark-stringify "^9.0.1"
12164
+ unified "^9.0.0"
12165
+ unist-util-remove "^2.0.1"
12166
+ unist-util-visit "^2.0.3"
12167
+
12168
  slash@^3.0.0:
12169
  version "3.0.0"
12170
  resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
13186
  dependencies:
13187
  punycode "^2.1.0"
13188
 
13189
+ tr46@~0.0.3:
13190
+ version "0.0.3"
13191
+ resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
13192
+ integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
13193
+
13194
  traverse@~0.6.6:
13195
  version "0.6.6"
13196
  resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137"
13413
  vfile "^2.0.0"
13414
  x-is-string "^0.1.0"
13415
 
13416
+ unified@^9.0.0:
13417
+ version "9.2.2"
13418
+ resolved "https://registry.yarnpkg.com/unified/-/unified-9.2.2.tgz#67649a1abfc3ab85d2969502902775eb03146975"
13419
+ integrity sha512-Sg7j110mtefBD+qunSLO1lqOEKdrwBFBrR6Qd8f4uwkhWNlbkaqwHse6e7QvD3AP/MNoJdEDLaf8OxYyoWgorQ==
13420
+ dependencies:
13421
+ bail "^1.0.0"
13422
+ extend "^3.0.0"
13423
+ is-buffer "^2.0.0"
13424
+ is-plain-obj "^2.0.0"
13425
+ trough "^1.0.0"
13426
+ vfile "^4.0.0"
13427
+
13428
  unified@^9.1.0:
13429
  version "9.2.0"
13430
  resolved "https://registry.yarnpkg.com/unified/-/unified-9.2.0.tgz#67a62c627c40589edebbf60f53edfd4d822027f8"
13504
  dependencies:
13505
  unist-util-visit "^1.1.0"
13506
 
13507
+ unist-util-remove@^2.0.1:
13508
+ version "2.1.0"
13509
+ resolved "https://registry.yarnpkg.com/unist-util-remove/-/unist-util-remove-2.1.0.tgz#b0b4738aa7ee445c402fda9328d604a02d010588"
13510
+ integrity sha512-J8NYPyBm4baYLdCbjmf1bhPu45Cr1MWTm77qd9istEkzWpnN6O9tMsEbB2JhNnBCqGENRqEWomQ+He6au0B27Q==
13511
+ dependencies:
13512
+ unist-util-is "^4.0.0"
13513
+
13514
  unist-util-stringify-position@^1.0.0, unist-util-stringify-position@^1.1.1:
13515
  version "1.1.2"
13516
  resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-1.1.2.tgz#3f37fcf351279dcbca7480ab5889bb8a832ee1c6"
13530
  dependencies:
13531
  unist-util-is "^3.0.0"
13532
 
13533
+ unist-util-visit-parents@^3.0.0:
13534
+ version "3.1.1"
13535
+ resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz#65a6ce698f78a6b0f56aa0e88f13801886cdaef6"
13536
+ integrity sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==
13537
+ dependencies:
13538
+ "@types/unist" "^2.0.0"
13539
+ unist-util-is "^4.0.0"
13540
+
13541
  unist-util-visit@^1.1.0:
13542
  version "1.4.1"
13543
  resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-1.4.1.tgz#4724aaa8486e6ee6e26d7ff3c8685960d560b1e3"
13545
  dependencies:
13546
  unist-util-visit-parents "^2.0.0"
13547
 
13548
+ unist-util-visit@^2.0.3:
13549
+ version "2.0.3"
13550
+ resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-2.0.3.tgz#c3703893146df47203bb8a9795af47d7b971208c"
13551
+ integrity sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==
13552
+ dependencies:
13553
+ "@types/unist" "^2.0.0"
13554
+ unist-util-is "^4.0.0"
13555
+ unist-util-visit-parents "^3.0.0"
13556
+
13557
  universal-user-agent@^6.0.0:
13558
  version "6.0.0"
13559
  resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.0.tgz#3381f8503b251c0d9cd21bc1de939ec9df5480ee"
13878
  dependencies:
13879
  defaults "^1.0.3"
13880
 
13881
+ webidl-conversions@^3.0.0:
13882
+ version "3.0.1"
13883
+ resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
13884
+ integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==
13885
+
13886
  webidl-conversions@^4.0.2:
13887
  version "4.0.2"
13888
  resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"
14001
  resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf"
14002
  integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==
14003
 
14004
+ whatwg-url@^5.0.0:
14005
+ version "5.0.0"
14006
+ resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
14007
+ integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==
14008
+ dependencies:
14009
+ tr46 "~0.0.3"
14010
+ webidl-conversions "^3.0.0"
14011
+
14012
  whatwg-url@^7.0.0:
14013
  version "7.1.0"
14014
  resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.1.0.tgz#c2c492f1eca612988efd3d2266be1b9fc6170d06"