Cloud Templates & Patterns collection - Version 1.1.29

Version Description

Download this release

Release Info

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

Code changes from version 1.1.28 to 1.1.29

CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  ##### [Version 1.1.28](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.27...v1.1.28) (2022-11-10)
2
 
3
  - Fix dismiss Neve notice after Starter Site import
1
+ ##### [Version 1.1.29](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.28...v1.1.29) (2022-11-18)
2
+
3
+ - Feat: Allow Independent license
4
+ - Feat: Add subscription form after importing
5
+
6
  ##### [Version 1.1.28](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.27...v1.1.28) (2022-11-10)
7
 
8
  - Fix dismiss Neve notice after Starter Site import
README.md CHANGED
@@ -39,6 +39,14 @@ Yes, you can. You can either chose to import one template or the entire starter
39
 
40
  ## Changelog ##
41
 
 
 
 
 
 
 
 
 
42
  ##### [Version 1.1.28](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.27...v1.1.28) (2022-11-10)
43
 
44
  - Fix dismiss Neve notice after Starter Site import
39
 
40
  ## Changelog ##
41
 
42
+ ##### [Version 1.1.29](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.28...v1.1.29) (2022-11-18)
43
+
44
+ - Feat: Allow Independent license
45
+ - Feat: Add subscription form after importing
46
+
47
+
48
+
49
+
50
  ##### [Version 1.1.28](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.27...v1.1.28) (2022-11-10)
51
 
52
  - Fix dismiss Neve notice after Starter Site import
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' => '71300f92db82157fae719f882874a463');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-api', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives'), 'version' => 'b99ea9e9619c49a4bdf9e058b593918f');
assets/build/app.js CHANGED
@@ -1,12 +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 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 A=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,A=1<<v-1,L=0;L<v;L+=1){for(var B=0,R=I;B<R;){var F=M(t,{errors:L,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<<L)-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,L&&(V[$]|=(x[$+1]|x[$])<<1|1|x[$+1]),V[$]&A&&(P=M(t,{errors:L,currentLocation:H,expectedLocation:E,distance:i,ignoreLocation:g}))<=_){if(_=P,(w=H)<=E)break;z=Math.max(1,2*E-w)}}var q=M(t,{errors:L+1,currentLocation:E,expectedLocation:E,distance:i,ignoreLocation:g});if(q>_)break;x=V}var W={isMatch:w>=0,score:Math.max(.001,P)};if(S){var Q=D(k,d);Q.length?f&&(W.indices=Q):W.isMatch=!1}return W}(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}(),L=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}(L),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}(L),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}(L),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}(L),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}(L),$=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}(L),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 A(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}(L),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}(L),q=[R,G,z,U,$,V,F,H],W=q.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<W;){var l=q[s],u=l.isMultiMatch(o);u&&(r.push(new l(u,t)),i=!0)}if(!i)for(s=-1;++s<W;){var m=q[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 A(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,A=function(e){return N(I.root+"/install_plugins",e)},L=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",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))})))):""},z=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"})))))},U=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)(z,{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}),{}),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"))))},V=n(12),$=n.n(V),H=n(15),G=n.n(H),q=n(5),W=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.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)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Y=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.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)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(q.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)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.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)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(q.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)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.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)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.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)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.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)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.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)(q.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),Se=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.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 Ae(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 Be(e){return function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Ae(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,ze=String.fromCharCode,Ue=[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],A=1===t.length;Object(r.useEffect)((function(){s&&A?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"}})))},z=function(e){e.preventDefault(),o(!0)},U=function(){k(!0);var e=t.map((function(e,t){return He(He({},e),g[t])})),n=function(){try{L(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"},A?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+=ze(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?Ae:Le,w--;++w<=e.length&&j(d=e.charCodeAt(w));)l+=ze(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=ze(65533)):p in Ie?(M(6,_),m=Ie[p]):(f="",Ve(p)&&M(6,_),p>65535&&(f+=ze((p-=65536)>>>10|55296),p=56320|1023&p),m=f+ze(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+=ze(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,Ue[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)(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"},!u&&Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,disabled:S,onClick:z},Object(_.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",disabled:S,onClick:U},S?Object(_.__)("Importing")+"...":A?Object(_.__)("Import"):Object(_.__)("Import All Pages"))))}),null))})),qe=function(){return Object(r.createElement)(q.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)(q.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)(q.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(q.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 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],A=D[1],L=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),B=y()(L,2),R=B[0],F=B[1],z=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),U=y()(z,2),V=U[0],H=U[1],q=Object(r.useState)(!1),J=y()(q,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),A(""),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=templatecloud&utm_source=wpadmin&utm_campaign=upgradetoprobtn&utm_content=neve",target:"_blank"},Object(_.__)("Upgrade to PRO"))),Object(r.createElement)("div",{className:"icon"},Object(r.createElement)(E.Icon,{icon:qe}))))))};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=wpadmin&utm_campaign=templatecloud&utm_content=neve",'" 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:A,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=wpadmin&utm_campaign=templatescloud&utm_content=neve",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:W,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},performanceAddon:{label:Object(_.__)("Installing Performance Features","templates-patterns-collection"),status:n.performanceAddon,willDo:a.performanceAddon}};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"})))};function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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}var ct=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["icon","size"]);return Object(r.cloneElement)(t,function(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){rt(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}({width:a,height:a},c))},ot=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.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"})),it=function(e){var t=e.children,n=e.className,a=e.toLeft,c=void 0!==a&&a,o=O()([n,"tiob-tooltip-wrap"]),i=c?{right:0,left:"unset"}:{};return Object(r.createElement)("div",{className:o},Object(r.createElement)("div",{className:"tiob-tooltip-toggle"},Object(r.createElement)(ct,{icon:ot,size:24}),Object(r.createElement)("div",{className:"tiob-tooltip-content",style:i},t)))};function st(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 lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ut=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,performanceAddon:!0,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],L=M[1],U=Object(r.useState)(!1),V=y()(U,2),$=V[0],H=V[1],G=Object(r.useState)(!1),q=y()(G,2),W=q[0],Q=q[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)(!1),se=y()(ie,2),le=se[0],ue=se[1],me=Object(r.useState)({}),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)(null),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],Ae=tiobDash,Le=Ae.license,Be=Ae.cleanupAllowed,Re=Object(r.useState)(Be),Fe=y()(Re,2),ze=Fe[0],Ue=Fe[1];function Ve(){R(i,(function(){console.log("[D] Theme Activate."),h("done"),n(!1),He()}),(function(){Je(Object(_.__)("Could not activate theme.","templates-patterns-collection"),"theme_install")}))}function $e(){return i?"install"===i.action?(oe("theme_install"),console.log("[P] Theme Install."),B("neve",(function(){n(lt(lt({},i),{},{action:"activate"})),console.log("[D] Theme Install."),Ve()}),(function(e){n(lt(lt({},i),{},{action:"activate"})),Je(e.errorMessage||Object(_.__)("Could not install theme.","templates-patterns-collection"),"theme_install")})),!1):(oe("theme_install"),console.log("[P] Theme Activate."),void Ve()):(console.log("[S] Theme."),He(),!1)}function He(){if(!de&&!m.performanceAddon)return console.log("[S] Plugins."),Ge(),!1;oe("plugins"),console.log("[P] Plugins."),A(de).then((function(e){if(!e.success)return Je(e,"plugins"),!1;console.log("[D] Plugins."),L("done"),Ge()})).catch((function(e){return Je(e,"plugins")}))}function Ge(){if(!m.content)return console.log("[S] Content."),qe(),!1;var e;oe("content"),console.log("[P] Content."),(e={contentFile:ye.content_file,source:"remote",frontPage:ye.front_page,shopPages:ye.shop_pages,demoSlug:ye.slug,editor:a},N(I.root+"/import_content",e)).then((function(e){if(!e.success)return Je(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&ne(e.frontpage_id),H("done"),qe()})).catch((function(e){return Je(e,"content")}))}function qe(){if(!m.customizer)return console.log("[S] Customizer."),We(),!1;var e;oe("customizer"),console.log("[P] Customizer."),(e={source_url:ye.url,theme_mods:ye.theme_mods,wp_options:ye.wp_options},N(I.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return Je(e,"customizer"),!1;console.log("[D] Customizer."),Q("done"),We()})).catch((function(e){return Je(e,"customizer")}))}function We(){if(!m.widgets)return console.log("[S] Widgets."),Qe(),!1;var e;oe("widgets"),console.log("[P] Widgets."),(e=ye.widgets,N(I.root+"/import_widgets",e)).then((function(e){if(!e.success)return Je(e,"widgets"),!1;console.log("[D] Widgets."),Z("done"),Qe()})).catch((function(e){return Je(e,"widgets")}))}function Qe(){if(!m.performanceAddon)return console.log("[S] Performance Addon."),Ye(),!1;oe("performanceAddon"),console.log("[P] Performance Addon."),A({"optimole-wp":!0}).then((function(e){if(!e.success)return Je(e,"performanceAddon"),!1;console.log("[D] Performance Addon."),w("done"),Ye()})).catch((function(e){return Je(e,"performanceAddon")}))}function Ye(){oe("done"),Ue("yes"),tiobDash.cleanupAllowed="yes",ue(!1)}function Je(e,t){ue(!1),oe(null),"cleanup"===t&&L("skip"),"plugins"===t&&H("skip"),["content","plugins"].includes(t)&&Q("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"),performanceAddon:Object(_.__)("Something went wrong while installing the performance addon.","templates-patterns-collection")};switch(t){case"cleanup":x("error");break;case"plugins":L("error");break;case"content":H("error");break;case"customizer":Q("error");break;case"widgets":Z("error");break;case"performanceAddon":w("error")}Oe(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",Le?Le.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"}),ke(!1)),e.json().then((function(e){Ee(lt(lt({},e),o));var t=lt({},e.mandatory_plugins||{}),n=lt({},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)})),be(lt(lt({},n),t)),ke(!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"}),ke(!1)}))}),[]);var Ke=function(){if(le)return!1;t(!1)},Ze=!o.external_plugins||o.external_plugins.every((function(e){return!0===e.active})),et=Object.keys(m).every((function(e){return!1===m[e]})),tt={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(te,"&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(te,"&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(te,"&action=edit")}[a];return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:Se}]),onRequestClose:Ke,shouldCloseOnClickOutside:!le&&!Se,isDismissible:!le&&!Se,title:ye?Object(_.sprintf)(
10
  /* translators: name of starter site */
11
- Object(_.__)("Import %s as a complete site","templates-patterns-collection"),ye.title):""},Se?Object(r.createElement)(nt,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},le||"done"===ce||ge?Object(r.createElement)(r.Fragment,null,ge&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(z,{message:ge.message||null,code:ge.code||null}),Object(r.createElement)("hr",null)),null!==ce&&Object(r.createElement)(Xe,{progress:{theme_install:f,cleanup:C,plugins:D,content:$,customizer:W,widgets:K,performanceAddon:j},currentStep:ce,willDo:m}),"done"===ce&&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)("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:ye,externalInstalled:Ze})}),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)(it,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")},performanceAddon:{title:Object(_.__)("Enable performance features for my site","templates-patterns-collection"),icon:"dashboard",tooltip:Object(r.createInterpolateElement)(Object(_.__)(Object(_.sprintf)(// translators: %s is Optimole plugin name.
12
- "Optimize and speed up your site with our trusted addon, <a><span>%s</span><icon/></a>. It’s free.","Optimole"),"templates-patterns-collection"),{a:Object(r.createElement)("a",{href:"https://wordpress.org/plugins/optimole-wp/",target:"_blank",style:{textDecoration:"none",display:"inline-flex",alignItems:"center"}}),icon:Object(r.createElement)(E.Icon,{size:10,icon:"external",style:{marginLeft:0}}),span:Object(r.createElement)("div",null)})}};return"yes"===ze&&(e=lt({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)(it,{toLeft:"performanceAddon"===t},l),"theme_install"!==t&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:m[t],onChange:function(){p(lt(lt({},m),{},c()({},t,!m[t])))}})))})))}),null),Object(r.createElement)((function(){if(Se)return null;var e=lt(lt({},ye.recommended_plugins||{}),ye.mandatory_plugins||{});if(Object.keys(e).length<1)return null;var t=Object(r.useState)(Object.keys(e).length<3),n=y()(t,2),a=n[0],o=n[1],i=Object.keys(e).map((function(t,n){return e[t]})).join(", ");return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.PanelBody,{onToggle:function(){o(!a)},opened:a,className:"options plugins",title:Object(_.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:de[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 ye.recommended_plugins&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:de[t],onChange:function(){be(lt(lt({},de),{},c()({},t,!de[t])))}})))}))),!a&&Object(r.createElement)("i",{className:"plugin-summary"},Object(r.createElement)(it,{toLeft:!1},Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:i}})),Object(_.__)("Additional plugins are required for this Starter Site in order to work properly. ","templates-patterns-collection")))}),null)))),!le&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==ce?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")),!ge&&Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,disabled:et||!Ze,onClick:function(){ue(!0),function(){if(console.clear(),!m.cleanup)return console.log("[S] Cleanup."),$e(),!1;var e;oe("cleanup"),console.log("[P] Cleanup."),(e={},N(I.root+"/cleanup",e)).then((function(e){if(!e.success)return Je(e,"cleanup"),!1;console.log("[D] Cleanup."),x("done"),$e()})).catch((function(e){return Je(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:Ke},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:tt},Object(_.__)("Add your own content","templates-patterns-collection"))))))})),mt=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])},A=function(e){e.preventDefault(),a(!0)},L=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:A},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:W,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=L-1;0===L&&(e=m.length-1),j(m[e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Y:Q,onClick:function(){var e=L+1;L===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:A},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}))})),pt=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")}))},dt=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:qe}),Object(r.createElement)("span",null,Object(_.__)("Templates Cloud","templates-patterns-collection"))),Object(r.createElement)(pt,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(E.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),bt=n(20),ft=n.n(bt),ht=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=wpadmin&utm_campaign=templatecloud&utm_content=neve"},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")))))})),gt=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: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: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")))))})),Ot=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)},vt=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)))})),jt=(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]))})))}))),yt=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])))}))))))})),Et=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:qe,size:32}),Object(r.createElement)(vt,{className:"in-sticky",count:j.builders,categories:Ke,editors:Ze,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(yt,{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)(yt,{count:j.categories,categories:Ke,showCount:_}),Object(r.createElement)(vt,{count:j.builders,categories:Ke,editors:Ze,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(jt,{categories:Ke,count:j.categories,showCount:_}),!tiobDash.isValidLicense&&Object(r.createElement)(Ot,{data:tiobDash.upsellNotifications.upsell_1,editor:l}))))})),_t=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 ft.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)(Et,{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)(ht,{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)(gt,{next:v(),prev:v(!0)}))})),wt=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)(dt,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},i&&Object(r.createElement)(U,{data:i}),"starterSites"===n&&(a?Object(r.createElement)(mt,{slug:a}):Object(r.createElement)(_t,null)),"library"===n&&Object(r.createElement)(Ye,null),"pageTemplates"===n&&Object(r.createElement)(Ye,{isGeneral:!0})))),c&&o&&Object(r.createElement)(ut,null))})),St=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)(wt,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)(St,null),document.getElementById("tpc-app"))}]);
1
+ (window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[]).push([[1],{23: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([35,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(24),a=n(25),c=n(16),o=n(26);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(32),a=n(33),c=n(34);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(27),a=n(28),c=n(16),o=n(29);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(30),n(31))},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){e.exports=window.wp.api},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 x(){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 T=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=x(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 T({getFn:a});return c.setKeys(e.map(w)),c.setSources(t),c.create(),c}function D(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 M(){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=D(t,{currentLocation:O,expectedLocation:E,distance:i,ignoreLocation:g});if(_=Math.min(N,_),w=O+v,S)for(var x=0;x<v;)k[O+x]=1,x+=1}w=-1;for(var T=[],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=D(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 H=U;H>=z;H-=1){var $=H-1,G=n[e.charAt($)];if(S&&(k[$]=+!!G),V[H]=(V[H+1]<<1|1)&G,A&&(V[H]|=(T[H+1]|T[H])<<1|1|T[H+1]),V[H]&L&&(P=D(t,{errors:A,currentLocation:$,expectedLocation:E,distance:i,ignoreLocation:g}))<=_){if(_=P,(w=$)<=E)break;z=Math.max(1,2*E-w)}}var W=D(t,{errors:A+1,currentLocation:E,expectedLocation:E,distance:i,ignoreLocation:g});if(W>_)break;T=V}var q={isMatch:w>=0,score:Math.max(.001,P)};if(S){var Q=M(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),H=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),$=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,H,V,F,$],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([$.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 T))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 T({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(23),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=s.licenseTIOB,p=void 0!==l.sites&&void 0!==l.sites.sites?Object.keys(l.sites.sites)[0]:"gutenberg",d=localStorage.getItem("neve-onboarding-editor")||p,b=m||{key:"free",valid:"invalid",expiration:"",tier:0},f={sites:l.sites||{},editor:d,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:"",license:b},h={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}}},setLicense:function(e){return{type:"SET_LICENSE",payload:{license:e}}}},g=n(3),O=n.n(g),v=n(4),j=n(6),y=n.n(j),E=n(7),_=n(2),w=n(1),S=n(8),k=n.n(S),C=n(10),N=n.n(C),x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return P(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 P(e,t,{},"GET",n)},P=function(){var e=N()(k.a.mark((function e(t){var n,r,a,c,o,i=arguments;return k.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)}}(),D=function(){var e=N()(k.a.mark((function e(t){var n,r,a,c,o,i,s,l,u,m,p=arguments;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=p.length>1&&void 0!==p[1]?p[1]:"",r=p.length>2&&void 0!==p[2]?p[2]:"",a=p.length>3&&void 0!==p[3]?p[3]:{},(c=new FormData).append("nonce",r),c.append("action",n),Object.keys(a).length>0)for(o=0,i=Object.entries(a);o<i.length;o++)s=O()(i[o],2),l=s[0],u=s[1],c.append(l,u);return m={method:"POST",headers:{Accept:"application/json"},body:c},e.next=10,fetch(t,m).then((function(){return!0}));case 10:return e.abrupt("return",e.sent);case 11: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 I(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}Object(E.compose)(Object(v.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getSingleImport;return{themeData:(0,t.getThemeAction)()||!1,singleImport:n()}})),Object(v.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=O()(b,2),h=f[0],g=f[1],v=Object(r.useState)(null),j=O()(v,2),y=j[0],E=j[1],S=function(){n(!1)},k=function(e){g(!1),E(Object(w.sprintf)(// translators: %s: Error message.
2
+ Object(w.__)("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(w.__)("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)(_.Modal,{className:"ob-import-modal install-modal",title:Object(w.__)("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(w.__)("Logo","templates-patterns-collection")}),y&&Object(r.createElement)("div",{className:"well error",style:{margin:"20px 0"}},y),Object(r.createElement)("p",{style:{lineHeight:1.6,fontSize:"15px"}},Object(w.__)("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"}},!y&&Object(r.createElement)(_.Button,{dismiss:y,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(I(I({},a),{},{action:"activate"})),C()},error:function(e){c(I(I({},a),{},{action:"activate"})),k(e.errorMessage||Object(w.__)("Could not install theme.","templates-patterns-collection"))}})}:C},h&&("installing"===h?Object(w.__)("Installing"):Object(w.__)("Activating")),!h&&("install"===s?Object(w.__)("Install and Activate","templates-patterns-collection"):Object(w.__)("Activate","templates-patterns-collection"))),Object(r.createElement)(_.Button,{style:{marginLeft:30},isSecondary:!0,disabled:h,onClick:S},Object(w.__)("Close","templates-patterns-collection")))))}));var L,A=tiobDash.onboarding,B=function(e){return x(A.root+"/install_plugins",e)},R=function(){var e=N()(k.a.mark((function e(t){var n;return k.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,B(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",x(A.root+"/import_single_templates",t));case 12:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t){return e.apply(this,arguments)}}(),F=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})},z=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()}))},U=function(e){var t=e.data,n=e.externalInstalled,a=t.external_plugins||null,c=y()(["well"]);return a&&!n?Object(r.createElement)("div",{className:c},Object(r.createElement)("span",null,Object(r.createElement)(_.Dashicon,{icon:"info"}),Object(w.__)("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)(_.Button,{isLink:!0,href:e.author_url},e.name))})))):""},V=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)(_.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(w.__)("Error code","templates-patterns-collection"),":"," ",Object(r.createElement)("code",null,n)),Object(r.createElement)("li",null,Object(w.__)("Error log","templates-patterns-collection"),":"," ",Object(r.createElement)(_.Button,{isLink:!0,href:tiobDash.onboarding.logUrl},tiobDash.onboarding.logUrl,Object(r.createElement)(_.Dashicon,{icon:"external"})))))},H=function(e){var t=e.data,n=function(e){return console.log(e)},a=Object(r.useState)(!1),c=O()(a,2),o=c[0],i=c[1],s=Object(r.useState)(!1),l=O()(s,2),u=l[0],m=l[1],p=Object(r.useState)(!1),d=O()(p,2),b=d[0],f=d[1],h=Object(r.useState)(null),g=O()(h,2),v=g[0],j=g[1],y=Object(r.useState)(null),E=O()(y,2),S=E[0],k=E[1];if(o)return null;var C=function(){"done"===b&&i(!0),m(!1),j(null),f(!1)};return Object(r.createElement)("div",{className:"ob-migration"},u&&Object(r.createElement)(_.Modal,{className:"ob-import-modal migration",title:Object(w.__)("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"},v&&Object(r.createElement)(V,{message:v.message||null,code:v.code||null}),!1===b&&!v&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(U,{data:t}),t.mandatory_plugins&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("h3",null,Object(w.__)("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(w.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),!0===b&&Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(_.Dashicon,{icon:"update",size:50}),Object(r.createElement)("h3",null,Object(w.__)("Migrating","templates-patterns-collection"),"..."))),(!b||"done"===b)&&Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(_.Button,{isSecondary:"done"!==b,isLink:"done"===b,className:"done"===b?"close":null,onClick:C},"done"===b?Object(w.__)("Close","templates-patterns-collection"):Object(w.__)("Cancel","templates-patterns-collection")),v||"done"===b?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.Button,{style:{marginLeft:20},isSecondary:!0,href:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(S,"&action=elementor")},Object(w.__)("Edit Content","templates-patterns-collection")),Object(r.createElement)(_.Button,{isPrimary:!0,href:tiobDash.onboarding.homeUrl},Object(w.__)("View Website","templates-patterns-collection"))):Object(r.createElement)(_.Button,{isPrimary:!0,onClick:function(){var e;e=Object.keys(t.mandatory_plugins).reduce((function(e,t){return e[t]=!0,e}),{}),B(e).then((function(e){if(f(!0),!e.success)return j({code:e.data||null,message:Object(w.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection")}),f(!1),!1;var n=t.template,r=t.template_name;x(tiobDash.onboarding.root+"/migrate_frontpage",{template:n,template_name:r}).then((function(e){if(!e.success)return j({code:e.data||null,message:Object(w.__)("Something went wrong while importing the website content.","templates-patterns-collection")}),f(!1),!1;k(e.data),f("done")}))}))}},Object(w.__)("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)(_.Button,{isPrimary:!0,onClick:function(){return m(!0),!1}},Object(w.__)("Migrate","templates-patterns-collection")+" "+t.theme_name),Object(r.createElement)(_.Button,{isSecondary:!0,onClick:function(){x(tiobDash.onboarding.root+"/dismiss_migration",{theme_mod:t.theme_mod}).then((function(e){if(!e.success)return n(Object(w.__)("Something went wrong. Please reload the page and try again.","templates-patterns-collection")),!1;n(Object(w.__)("Dismissed","templates-patterns-collection")),i(!0)}))}},Object(w.__)("Dismiss","templates-patterns-collection"))))},$=n(12),G=n.n($),W=n(15),q=n.n(W),Q=n(5),Y=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.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"})),J=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),K=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Z=n(14),X=n.n(Z),ee=n(11),te=new Uint8Array(16);function ne(){if(!L&&!(L="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 L(te)}for(var re=/^(?:[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,ae=function(e){return"string"==typeof e&&re.test(e)},ce=[],oe=0;oe<256;++oe)ce.push((oe+256).toString(16).substr(1));var ie=function(e,t,n){var r=(e=e||{}).random||(e.rng||ne)();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=(ce[e[t+0]]+ce[e[t+1]]+ce[e[t+2]]+ce[e[t+3]]+"-"+ce[e[t+4]]+ce[e[t+5]]+"-"+ce[e[t+6]]+ce[e[t+7]]+"-"+ce[e[t+8]]+ce[e[t+9]]+"-"+ce[e[t+10]]+ce[e[t+11]]+ce[e[t+12]]+ce[e[t+13]]+ce[e[t+14]]+ce[e[t+15]]).toLowerCase();if(!ae(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function se(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 le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=function(){var e=N()(k.a.mark((function e(){var t,n,r,a,c,o,i=arguments;return k.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(ee.stringifyUrl)({url:tiobDash.endpoint+(t?"page-templates":"templates"),query:le(le({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),n)}),e.prev=3,e.next=6,X()({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)}}(),me=function(){var e=N()(k.a.mark((function e(t,n){var r;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(ee.stringifyUrl)({url:tiobDash.endpoint+"templates/"+t,query:le(le({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),{},{template_id:t,template_name:n})}),e.prev=1,e.next=4,X()({url:r,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ie()),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)}}(),pe=function(){var e=N()(k.a.mark((function e(t){var n;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(ee.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t),query:le({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},tiobDash.params)}),e.prev=1,e.next=4,X()({url:n,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ie()),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)}}(),de=function(){var e=N()(k.a.mark((function e(t){var n,r,a;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(ee.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/bulk-import"),query:le({templates:t,cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),e.prev=1,e.next=4,X()({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)}}(),be=function(){var e=N()(k.a.mark((function e(t){var n,r,a;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(ee.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t,"/import"),query:le({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),r={},e.prev=2,e.next=5,X()({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)}}(),fe=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(Q.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"})),he=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.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"})),ge=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(Q.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"})),Oe=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),ve=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.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 je(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 ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ee=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=O()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=O()(f,2),g=h[0],v=h[1],j=Object(r.useState)(n.template_name),E=O()(j,2),S=E[0],C=E[1],x=function(){var e=N()(k.a.mark((function e(t){var r,a;return k.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,me(r,S||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)}}(),T=function(){var e=N()(k.a.mark((function e(){return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm(Object(w.__)("Are you sure you want to delete this template?"))){e.next=2;break}return e.abrupt("return",!1);case 2:b("deleteing"),pe(n.template_id).then((function(e){e.success&&(a(ye({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)},D=y()("actions",{"no-controls":!c});if(o){var M={backgroundImage:"url(".concat(n.template_thumbnail,")")};return Object(r.createElement)("div",{key:n.template_id,className:"table-grid"},Object(r.createElement)("div",{style:M,className:y()("grid-preview",{"is-loading":g||!1!==d})},Object(r.createElement)("div",{className:"preview-actions"},!c&&n.link&&Object(r.createElement)(_.Button,{isSecondary:!0,disabled:!1!==d,onClick:P},Object(w.__)("Preview")),!u&&Object(r.createElement)(_.Button,{isPrimary:!0,isBusy:"importing"===d,disabled:!1!==d,onClick:s},Object(w.__)("Import")),c&&Object(r.createElement)("div",{className:"preview-controls"},!n.link&&Object(r.createElement)(_.Button,{label:Object(w.__)("Edit"),icon:"updating"===d?fe:he,disabled:g||!1!==d,className:y()({"is-loading":"updating"===d}),onClick:function(){return v(!g)}}),Object(r.createElement)(_.Button,{label:Object(w.__)("Delete"),icon:"deleteing"===d?fe:ge,disabled:!1!==d,className:y()({"is-loading":"deleteing"===d}),onClick:T})))),Object(r.createElement)("div",{className:"card-footer"},g?Object(r.createElement)("form",{onSubmit:x},Object(r.createElement)(_.TextControl,{value:S,onChange:C}),Object(r.createElement)(_.Button,{type:"submit",label:Object(w.__)("Update"),icon:"updating"===d?fe:Oe,disabled:!1!==d,className:y()({"is-loading":"updating"===d})})):Object(r.createElement)("p",null,S)))}return Object(r.createElement)("div",{key:n.template_id,className:"table-row"},Object(r.createElement)("div",{className:"title"},Object(r.createElement)(_.Icon,{icon:ve}),g?Object(r.createElement)(_.TextControl,{label:Object(w.__)("Template Name"),hideLabelFromVision:!0,value:S,onChange:C}):S),c&&Object(r.createElement)("div",{className:"controls"},n.link?Object(r.createElement)(_.Tooltip,{text:Object(w.__)("This template is synced to a page.")},Object(r.createElement)(_.Button,{label:Object(w.__)("Edit"),icon:he,disabled:!0},Object(w.__)("Edit"))):Object(r.createElement)(_.Button,{label:g?Object(w.__)("Update"):Object(w.__)("Edit"),icon:g?"updating"===d?fe:Oe:he,disabled:!1!==d,className:y()({"is-loading":"updating"===d}),onClick:function(){return g?x:v(!g)}},g?Object(w.__)("Update"):Object(w.__)("Edit")),Object(r.createElement)(_.Button,{label:Object(w.__)("Delete"),icon:"deleteing"===d?fe:ge,disabled:!1!==d,className:y()({"is-loading":"deleteing"===d}),onClick:T},"deleting"===d?Object(w.__)("Deleting")+"...":Object(w.__)("Delete"))),Object(r.createElement)("div",{className:D},!c&&n.link&&Object(r.createElement)(_.Button,{isSecondary:!0,disabled:!1!==d,onClick:P},Object(w.__)("Preview")),Object(r.createElement)(_.Button,{isPrimary:!0,isBusy:"importing"===d,onClick:s,disabled:!1!==d},Object(w.__)("Import"))))},_e=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)"}}))})))},we=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.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"})),Se=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.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"})),ke=Object(r.createElement)(Q.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),Ce=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.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"})),Ne=n(18);function xe(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 Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe,De={date:Object(w.__)("Date"),template_name:Object(w.__)("Name"),modified:Object(w.__)("Last Modified")},Me=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(w.__)("Sort by")),Object(r.createElement)("div",{className:"sorting-filter"},Object.keys(De).map((function(e){return Object(r.createElement)(_.Button,{key:e,className:y()({"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(Te({},t)),u(Te({},t))}},De[e])})))),Object(r.createElement)("div",{className:"display-filters"},Object(r.createElement)("div",{className:"display-filters__search"},Object(r.createElement)("input",{placeholder:Object(w.__)("Search"),value:c,onChange:function(e){return o(e.target.value)},onKeyDown:function(e){e.keyCode===Ne.ENTER&&i()}}),a?Object(r.createElement)(_.Button,{label:Object(w.__)("Clear search query"),icon:we,onClick:function(){o(""),i("")}}):Object(r.createElement)(_.Button,{label:Object(w.__)("Search"),icon:Se,onClick:function(){return i()}})),Object(r.createElement)(_.Button,{label:Object(w.__)("List View"),icon:ke,onClick:function(){return n(!1)},isPressed:!t}),Object(r.createElement)(_.Button,{label:Object(w.__)("Grid View"),icon:Ce,onClick:function(){return n(!0)},isPressed:t}))))},Ie=function(e){var t=e.title,n=e.leftButtons,a=e.rightButtons,c=e.heading,o=e.previewUrl,i=Object(ee.stringifyUrl)({url:o,query:{tpcpreview:"yes"}}),s=t||Object(w.__)("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)(_.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)))},Le={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:"ÿ"},Ae={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 Be(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Re(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Fe(e){return function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Be(e)}function ze(e){var t,n="&"+e+";";return(Pe=Pe||document.createElement("i")).innerHTML=n,(59!==(t=Pe.textContent).charCodeAt(t.length-1)||"semi"===e)&&t!==n&&t}var Ue={}.hasOwnProperty,Ve=String.fromCharCode,He=[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 $e(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 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 We(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 qe=Object(E.compose)(Object(v.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getThemeAction;return{siteData:(0,t.getCurrentSite)(),themeData:n()||!1}})),Object(v.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=O()(m,2),d=p[0],b=p[1],f=Object(r.useState)([]),h=O()(f,2),g=h[0],v=h[1],j=Object(r.useState)(!1),E=O()(j,2),S=E[0],k=E[1],C=Object(r.useState)([]),N=O()(C,2),x=N[0],T=N[1],P=Object(r.useState)(!1),D=O()(P,2),M=D[0],I=D[1],L=1===t.length;console.log(c),console.log(s),console.log(u),Object(r.useEffect)((function(){s&&L?be(t[0].template_id).then((function(e){e.success||(e.message?I(e.message):I(!0),b(!1)),v(e.templates),b(!1)})):de(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 A=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"}})))},B=function(e){e.preventDefault(),o(!0)},U=function(){k(!0);var e=t.map((function(e,t){return We(We({},e),g[t])})),n=function(){try{R(e).then((function(e){if(!e.success)return console.log(e.message),!1;T(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)};return s?(n(),!1):"install"===c.action?(F("neve",(function(){z(c,n,r)}),r),!1):void z(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(w.__)("An error occurred!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},!0===M?Object(w.__)("Please refresh the page and try again."):M))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(_.Button,{isPrimary:!0,className:"import",onClick:function(){I(!1),n()}},Object(w.__)("Close"))))};return Object(r.createElement)(_.Modal,{className:y()(["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(w.__)("Import done!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},L?Object(w.__)("Template was successfully imported!","templates-patterns-collection"):Object(w.__)("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)(_.Icon,{icon:ve,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,x="",T=[];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){x+=Ve(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?Fe:"decimal"===v?Be:Re,w--;++w<=e.length&&j(d=e.charCodeAt(w));)l+=Ve(d),"named"===v&&Ue.call(Le,l)&&(o=l,h=Le[l]);(s=59===e.charCodeAt(w))&&(w++,(i="named"===v&&ze(l))&&(o=l,h=i)),_=1+w-O,(s||!1!==t.nonTerminated)&&(l?"named"===v?(s&&!h?D(5,1):(o!==l&&(_=1+(w=g+o.length)-g,s=!1),s||(b=o?1:3,t.attribute?61===(d=e.charCodeAt(w))?(D(b,_),h=null):Fe(d)?h=null:D(b,_):D(b,_))),m=h):(s||D(2,_),(S=p=Number.parseInt(l,"hexadecimal"===v?16:10))>=55296&&S<=57343||S>1114111?(D(7,_),m=Ve(65533)):p in Ae?(D(6,_),m=Ae[p]):(f="",$e(p)&&D(6,_),p>65535&&(f+=Ve((p-=65536)>>>10|55296),p=56320|1023&p),m=f+Ve(p))):"named"!==v&&D(4,_)),m?(M(),y=P(),C=w-1,c+=w-O+1,T.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),x+=l,c+=l.length,C=w-1)}else 10===u&&(a++,N++,c=0),Number.isNaN(u)?M():(x+=Ve(u),c++);return T.join("");function P(){return{line:a,column:c,offset:C+(n&&n.offset||0)}}function D(e,n){var r;t.warning&&((r=P()).column+=n,r.offset+=n,t.warning.call(t.warningContext,He[e],r,e))}function M(){x&&(T.push(x),t.text&&t.text.call(t.textContext,x,{start:y,end:P()}),x="")}}(e.title)),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(_.Button,{isTertiary:!0,href:e.url},Object(w.__)("Visit","templates-patterns-collection")),Object(r.createElement)(_.Button,{isTertiary:!0,href:e.edit},Object(w.__)("Edit","templates-patterns-collection"))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(_.Button,{isPrimary:!0,className:"import",onClick:n},Object(w.__)("Close"))))}),null):Object(r.createElement)((function(){return d?Object(r.createElement)(A,null):M?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(w.sprintf)(L?
3
  /* translators: name of starter site */
4
+ Object(w.__)("Import the %s template","templates-patterns-collection"):
5
  /* translators: name of template */
6
+ Object(w.__)("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(w.__)("does not")),L?Object(w.sprintf)(
7
  /* translators: %s the name of the template */
8
+ Object(w.__)("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(w.__)("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)(_.Button,{className:"import-templates",isLink:!0,disabled:S,onClick:B},Object(w.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(_.Button,{isPrimary:!0,className:"import",disabled:S,onClick:U},S?Object(w.__)("Importing")+"...":L?Object(w.__)("Import"):Object(w.__)("Import All Pages"))))}),null))})),Qe=function(){return Object(r.createElement)(Q.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)(Q.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)(Q.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(Q.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"}))},Ye=Object(r.createContext)({isLicenseOpen:!1,setLicenseOpen:function(){}});function Je(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 Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ze=Object(E.compose)(Object(v.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(v.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=O()(u,2),p=m[0],d=m[1],b=Object(r.useState)("gutenberg"),f=O()(b,2),h=f[0],g=f[1],v=Object(r.useState)([]),j=O()(v,2),E=j[0],S=j[1],C=Object(r.useState)(t),x=O()(C,2),T=x[0],P=x[1],D=Object(r.useState)(""),M=O()(D,2),I=M[0],L=M[1],A=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),B=O()(A,2),R=B[0],F=B[1],z=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),U=O()(z,2),V=U[0],H=U[1],$=Object(r.useState)(!1),W=O()($,2),Q=W[0],Z=W[1],X=Object(r.useState)(!1),ee=O()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(!1),ae=O()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(""),se=O()(ie,2),le=se[0],me=se[1],pe=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),de=O()(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(w.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(w.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(w.__)("Beaver"),icon:"beaver.jpg"}},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Ke({page:R[h],per_page:12,type:h},e);t&&(n.template_site_slug="general",n.premade=!0),I&&(n.search=I),ue(t,n).then((function(e){d(Ke(Ke({},p),{},c()({},h,e.templates))),H(Ke(Ke({},V),{},c()({},h,e.total))),Z(!1)}))},Oe=function(){var e=N()(k.a.mark((function e(){var n,r,a=arguments;return k.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(Ke(Ke({},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,ue(t,r).then((function(e){d(Ke(Ke({},p),{},c()({},h,[].concat(G()(p[h]),G()(e.templates))))),H(Ke(Ke({},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)},je=function(e){S([e]),a(!0)},ye=p[h]&&p[h].findIndex((function(e){return e.link===le})),we=p[h]&&p[h].find((function(e){return le===e.link})),Se=y()("cloud-items",{"is-grid":T||!s&&!t,"is-dummy":!s&&!t||!1!==l}),ke=function(){return t?be.templates:be.library},Ce=function(){var e=N()(k.a.mark((function e(n){var r;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Z(!0),r=Ke({search:I,type:h},n),t&&(r.template_site_slug="general",r.premade=!0),ue(t,r).then((function(e){d(Ke(Ke({},p),{},c()({},h,G()(e.templates)))),H(Ke(Ke({},V),{},c()({},h,e.total))),Z(!1)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=window.tiobDash.upgradeURLTpc;return 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:y()("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)(Me,{currentTab:i,isGrid:T,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=Ke({search:e,type:h},ke());t&&(n.template_site_slug="general",n.premade=!0),ue(t,n).then((function(e){d(Ke(Ke({},p),{},c()({},h,G()(e.templates)))),H(Ke(Ke({},V),{},c()({},h,e.total))),Z(!1)}))},sortingOrder:ke(),setSortingOrder:function(e){return fe(Ke(Ke({},be),{},t?{templates:e}:{library:e}))},changeOrder:Ce}),Q&&Object(r.createElement)(_e,{isGrid:T}),!Q&&(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)(Ee,{sortingOrder:ke(),onPreview:ve,userTemplate:!t,key:e.template_id,item:e,loadTemplates:ge,onImport:function(){return je(e)},grid:T})}))),Object(r.createElement)(q.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)(_.Spinner,null))):Object(r.createElement)("div",{className:"empty-information"},Object(r.createElement)("img",{src:window.tiobDash.assets+"/img/layout.jpg",alt:Object(w.__)("No Templates Found")}),Object(r.createElement)("h3",null,Object(w.__)("There are no templates yet")),Object(r.createElement)("p",null,Object(w.__)("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)(_.Button,{variant:"secondary",isSecondary:!0,href:"https://docs.themeisle.com/article/1354-neve-template-cloud-library?utm_medium=nevedashboard&utm_source=wpadmin&utm_campaign=templatescloud&utm_content=neve",target:"_blank"},Object(w.__)("Learn more")))),le&&Object(r.createElement)(Ie,{previewUrl:le,rightButtons:Object(r.createElement)(_.Button,{isPrimary:!0,onClick:function(){return je(we)}},Object(w.__)("Import Template")),heading:we.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.Button,{icon:Y,onClick:function(){me(""),n(!1)}}),p[h].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.Button,{icon:Object(w.isRTL)()?J:K,onClick:function(){var e=ye-1;0===ye&&(e=p[h].length-1),me(p[h][e].link)}}),Object(r.createElement)(_.Button,{icon:Object(w.isRTL)()?K:J,onClick:function(){var e=ye+1;ye===p[h].length-1&&(e=0),me(p[h][e].link)}})))})),o&&E&&!Q&&E.length>0&&Object(r.createElement)(qe,{generalTemplates:!0,isUserTemplate:!t,templatesData:E})):Object(r.createElement)((function(e){var t=e.title,n=e.description,a=e.showUpgradeBtn,c=void 0===a||a,o=e.showLicenseToggle,i=void 0===o||o,s=Object(r.useContext)(Ye).setLicenseOpen;return Object(r.createElement)("div",{className:Se},Object(r.createElement)("div",{className:"table"},G()(Array(12)).map((function(e,t){return Object(r.createElement)(Ee,{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)(_.Button,{variant:"primary",isPrimary:!0,href:Ne,target:"_blank"},Object(w.__)("Upgrade to PRO")),i&&Object(r.createElement)(_.Button,{isLink:!0,style:{marginLeft:"12px"},onClick:function(){s(!0)}},Object(w.__)("I already have a key","template-patterns-collection"))),Object(r.createElement)("div",{className:"icon"},Object(r.createElement)(_.Icon,{icon:Qe}))))))}),{title:Object(w.__)("Templates Cloud is a PRO Feature"),description:Object(w.__)("Unlock the Templates Cloud features and save your pages or posts in the cloud.","template-patterns-collection")})})),Xe=[Object(w.__)("Business","templates-patterns-collection"),Object(w.__)("Ecommerce","templates-patterns-collection"),Object(w.__)("Fashion","templates-patterns-collection"),Object(w.__)("Blogging","templates-patterns-collection"),Object(w.__)("Photography","templates-patterns-collection")],et={all:Object(w.__)("All Categories"),free:Object(w.__)("Free"),business:Object(w.__)("Business"),portfolio:Object(w.__)("Portfolio"),woocommerce:Object(w.__)("WooCommerce"),blog:Object(w.__)("Blog"),personal:Object(w.__)("Personal"),other:Object(w.__)("Other")},tt={gutenberg:{icon:"gutenberg.jpg",niceName:"Gutenberg"},elementor:{icon:"elementor.jpg",niceName:"Elementor"}},nt=(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(w.__)("Cleanup previous Import","templates-patterns-collection"),status:n.cleanup,willDo:a.cleanup},theme_install:{label:Object(w.__)("Installing and Activating the Theme","templates-patterns-collection"),status:n.theme_install,willDo:a.theme_install},plugins:{label:Object(w.__)("Installing Plugins","templates-patterns-collection"),status:n.plugins,willDo:!0},content:{label:Object(w.__)("Importing Content","templates-patterns-collection"),status:n.content,willDo:a.content},customizer:{label:Object(w.__)("Importing Customizer Settings","templates-patterns-collection"),status:n.customizer,willDo:a.customizer},widgets:{label:Object(w.__)("Importing Widgets","templates-patterns-collection"),status:n.widgets,willDo:a.widgets},performanceAddon:{label:Object(w.__)("Installing Performance Features","templates-patterns-collection"),status:n.performanceAddon,willDo:a.performanceAddon}};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=y()(["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)(_.Dashicon,{icon:l,className:t===e?"loading":""})),Object(r.createElement)("span",null,o))})))}),rt=n(19),at=n.n(rt),ct=function(e){return at()(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)(_.Button,{isPrimary:!0,className:"import is-loading"})))};function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(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}var st=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["icon","size"]);return Object(r.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},c))},lt=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(Q.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"})),ut=function(e){var t=e.children,n=e.className,a=e.toLeft,c=void 0!==a&&a,o=y()([n,"tiob-tooltip-wrap"]),i=c?{right:0,left:"unset"}:{};return Object(r.createElement)("div",{className:o},Object(r.createElement)("div",{className:"tiob-tooltip-toggle"},Object(r.createElement)(st,{icon:lt,size:24}),Object(r.createElement)("div",{className:"tiob-tooltip-content",style:i},t)))};function mt(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 pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dt=Object(E.compose)(Object(v.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(v.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,n,a=e.setModal,o=e.setThemeAction,i=e.editor,s=e.siteData,l=e.themeData,u=e.runTemplateImport,m=Object(r.useState)({content:!0,customizer:!0,widgets:!0,cleanup:!1,performanceAddon:!0,theme_install:!1!==l}),p=O()(m,2),d=p[0],b=p[1],f=tiobDash.onboarding.homeUrl||"",h=Object(r.useState)(!1),g=O()(h,2),v=g[0],j=g[1],E=Object(r.useState)(!1),S=O()(E,2),k=S[0],C=S[1],N=Object(r.useState)(!1),P=O()(N,2),M=P[0],I=P[1],L=Object(r.useState)(!1),R=O()(L,2),H=R[0],$=R[1],G=Object(r.useState)(!1),W=O()(G,2),q=W[0],Q=W[1],Y=Object(r.useState)(!1),J=O()(Y,2),K=J[0],Z=J[1],X=Object(r.useState)(!1),ee=O()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(null),ae=O()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(null),se=O()(ie,2),le=se[0],ue=se[1],me=Object(r.useState)(!1),pe=O()(me,2),de=pe[0],be=pe[1],fe=Object(r.useState)({}),he=O()(fe,2),ge=he[0],Oe=he[1],ve=Object(r.useState)(null),je=O()(ve,2),ye=je[0],Ee=je[1],_e=Object(r.useState)(null),we=O()(_e,2),Se=we[0],ke=we[1],Ce=Object(r.useState)(!0),Ne=O()(Ce,2),xe=Ne[0],Te=Ne[1],Pe=Object(r.useState)(!0),De=O()(Pe,2),Me=De[0],Ie=De[1],Le=Object(r.useState)(!0),Ae=O()(Le,2),Be=Ae[0],Re=Ae[1],Fe=tiobDash,ze=Fe.license,Ue=Fe.cleanupAllowed,Ve=Object(r.useState)(Ue),He=O()(Ve,2),$e=He[0],Ge=He[1],We=Object(r.useState)(tiobDash.emailSubscribe.email||""),qe=O()(We,2),Qe=qe[0],Ye=qe[1],Je=Object(r.useState)("yes"===(null===(t=tiobDash)||void 0===t||null===(n=t.emailSubscribe)||void 0===n?void 0:n.skipStatus)),Ke=O()(Je,2),Ze=Ke[0],Xe=Ke[1],et=Object(r.useState)(!1),tt=O()(et,2),rt=tt[0],at=tt[1];function ot(){z(l,(function(){console.log("[D] Theme Activate."),j("done"),o(!1),st()}),(function(){ht(Object(w.__)("Could not activate theme.","templates-patterns-collection"),"theme_install")}))}function it(){return l?"install"===l.action?(ue("theme_install"),console.log("[P] Theme Install."),F("neve",(function(){o(pt(pt({},l),{},{action:"activate"})),console.log("[D] Theme Install."),ot()}),(function(e){o(pt(pt({},l),{},{action:"activate"})),ht(e.errorMessage||Object(w.__)("Could not install theme.","templates-patterns-collection"),"theme_install")})),!1):(ue("theme_install"),console.log("[P] Theme Activate."),void ot()):(console.log("[S] Theme."),st(),!1)}function st(){if(!ge&&!d.performanceAddon)return console.log("[S] Plugins."),lt(),!1;ue("plugins"),console.log("[P] Plugins."),B(ge).then((function(e){if(!e.success)return ht(e,"plugins"),!1;console.log("[D] Plugins."),$("done"),lt()})).catch((function(e){return ht(e,"plugins")}))}function lt(){if(!d.content)return console.log("[S] Content."),mt(),!1;var e;ue("content"),console.log("[P] Content."),(e={contentFile:Se.content_file,source:"remote",frontPage:Se.front_page,shopPages:Se.shop_pages,demoSlug:Se.slug,editor:i},x(A.root+"/import_content",e)).then((function(e){if(!e.success)return ht(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&oe(e.frontpage_id),Q("done"),mt()})).catch((function(e){return ht(e,"content")}))}function mt(){if(!d.customizer)return console.log("[S] Customizer."),dt(),!1;var e;ue("customizer"),console.log("[P] Customizer."),(e={source_url:Se.url,theme_mods:Se.theme_mods,wp_options:Se.wp_options},x(A.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return ht(e,"customizer"),!1;console.log("[D] Customizer."),Z("done"),dt()})).catch((function(e){return ht(e,"customizer")}))}function dt(){if(!d.widgets)return console.log("[S] Widgets."),bt(),!1;var e;ue("widgets"),console.log("[P] Widgets."),(e=Se.widgets,x(A.root+"/import_widgets",e)).then((function(e){if(!e.success)return ht(e,"widgets"),!1;console.log("[D] Widgets."),ne("done"),bt()})).catch((function(e){return ht(e,"widgets")}))}function bt(){if(!d.performanceAddon)return console.log("[S] Performance Addon."),ft(),!1;ue("performanceAddon"),console.log("[P] Performance Addon."),B({"optimole-wp":!0}).then((function(e){if(!e.success)return ht(e,"performanceAddon"),!1;console.log("[D] Performance Addon."),C("done"),ft()})).catch((function(e){return ht(e,"performanceAddon")}))}function ft(){ue("done"),Ge("yes"),tiobDash.cleanupAllowed="yes",be(!1)}function ht(e,t){be(!1),ue(null),"cleanup"===t&&$("skip"),"plugins"===t&&Q("skip"),["content","plugins"].includes(t)&&Z("skip"),["content","plugins","customizer"].includes(t)&&ne("skip");var n={cleanup:Object(w.__)("Something went wrong while cleaning the previous import.","templates-patterns-collection"),plugins:Object(w.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection"),content:Object(w.__)("Something went wrong while importing the website content.","templates-patterns-collection"),customizer:Object(w.__)("Something went wrong while updating the customizer settings.","templates-patterns-collection"),widgets:Object(w.__)("Something went wrong while importing the widgets.","templates-patterns-collection"),performanceAddon:Object(w.__)("Something went wrong while installing the performance addon.","templates-patterns-collection")};switch(t){case"cleanup":I("error");break;case"plugins":$("error");break;case"content":Q("error");break;case"customizer":Z("error");break;case"widgets":ne("error");break;case"performanceAddon":C("error")}Ee(e.data?{message:n[t],code:e.data}:{message:n[t]})}Object(r.useEffect)((function(){var e=s.remote_url||s.url,t=new URL("".concat(function(e){return e.replace(/\/$/,"")}(e)+"/","wp-json/ti-demo-data/data"));t.searchParams.append("license",ze?ze.key:"free"),T(t,!0,!1).then((function(e){e.ok||(Ee({message:Object(w.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_response"}),Te(!1)),e.json().then((function(e){ke(pt(pt({},e),s));var t=pt({},e.mandatory_plugins||{}),n=pt({},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)})),Oe(pt(pt({},n),t)),Te(!1)}))})).catch((function(){Ee({message:Object(w.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_catch"}),Te(!1)}))}),[]);var gt=!s.external_plugins||s.external_plugins.every((function(e){return!0===e.active})),Ot=Object.keys(d).every((function(e){return!1===d[e]})),vt={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(ce,"&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(ce,"&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(ce,"&action=edit")}[i],jt=Object(w.__)("View Website & Subscribe","templates-patterns-collection"),yt=Object(w.__)("Skip and add your own content","templates-patterns-collection");Ze&&(jt=Object(w.__)("View Website","templates-patterns-collection"),yt=Object(w.__)("Add your own content","templates-patterns-collection"));var Et=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};D(tiobDash.emailSubscribe.ajaxURL,"skip_subscribe",tiobDash.emailSubscribe.nonce,t).then((function(){Xe(!0),at(!1),window.location.href=e}))},_t=Se?Object(w.sprintf)(
 
9
  /* translators: name of starter site */
10
+ Object(w.__)("Import %s as a complete site","templates-patterns-collection"),Se.title):"";return"done"!==le||ye||(_t=Object(w.__)("Content was successfully imported","templates-patterns-collection")),Object(r.createElement)(_.Modal,{className:y()(["ob-import-modal",{fetching:xe}]),onRequestClose:function(){if(de)return!1;a(!1)},shouldCloseOnClickOutside:!de&&!xe,isDismissible:!de&&!xe,title:_t},xe?Object(r.createElement)(ct,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},de||"done"===le||ye?Object(r.createElement)(r.Fragment,null,ye&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(V,{message:ye.message||null,code:ye.code||null}),Object(r.createElement)("hr",null)),null!==le&&Object(r.createElement)(nt,{progress:{theme_install:v,cleanup:M,plugins:H,content:q,customizer:K,widgets:te,performanceAddon:k},currentStep:le,willDo:d}),"done"===le&&!Ze&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",{className:"tpc-subscribe-email-text"},Object(w.__)("Stay up-to-date on news, tips and product updates","templates-patterns-collection")),Object(r.createElement)(_.TextControl,{"aria-label":Object(w.__)("Enter your email","templates-patterns-collection"),type:"email",value:Qe,onChange:Ye,className:"tpc-email-input"})),"done"===le&&Ze&&Object(r.createElement)("span",{style:{display:"block",marginBottom:"60px"}})):Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"header"},Object(r.createElement)("p",{className:"description"},Object(w.__)("Import the entire site including customizer options, pages, content and plugins.","templates-patterns-collection")))}),null),Object(r.createElement)((function(){return Object(r.createElement)(U,{data:Se,externalInstalled:gt})}),null),Object(r.createElement)(_.Panel,{className:"modal-toggles"},!1!==l&&Object(r.createElement)((function(){var e=y()("option-row","active"),t={icon:"admin-appearance",title:Object(w.__)("Neve","templates-patterns-collection"),tooltip:Object(w.__)("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)(_.PanelBody,{onToggle:function(){Re(!Be)},opened:Be,className:"options general",title:Object(w.__)("Install required theme","templates-patterns-collection")},Object(r.createElement)(_.PanelRow,{className:e},Object(r.createElement)(_.Icon,{icon:n}),Object(r.createElement)("span",null,a),c&&Object(r.createElement)(ut,null,c)))}),null),Object(r.createElement)((function(){var e={content:{title:Object(w.__)("Content","templates-patterns-collection"),icon:"admin-post",tooltip:Object(w.__)("We recommend you backup your website content before attempting a full site import.","templates-patterns-collection")},customizer:{title:Object(w.__)("Customizer","templates-patterns-collection"),icon:"admin-customizer"},widgets:{title:Object(w.__)("Widgets","templates-patterns-collection"),icon:"admin-generic",tooltip:Object(w.__)("Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there.","templates-patterns-collection")},performanceAddon:{title:Object(w.__)("Enable performance features for my site","templates-patterns-collection"),icon:"dashboard",tooltip:Object(r.createInterpolateElement)(Object(w.__)(Object(w.sprintf)(// translators: %s is Optimole plugin name.
11
+ "Optimize and speed up your site with our trusted addon, <a><span>%s</span><icon/></a>. It’s free.","Optimole"),"templates-patterns-collection"),{a:Object(r.createElement)("a",{href:"https://wordpress.org/plugins/optimole-wp/",target:"_blank",style:{textDecoration:"none",display:"inline-flex",alignItems:"center"}}),icon:Object(r.createElement)(_.Icon,{size:10,icon:"external",style:{marginLeft:0}}),span:Object(r.createElement)("div",null)})}};return"yes"===$e&&(e=pt({cleanup:{icon:"trash",title:Object(w.__)("Cleanup previous import","templates-patterns-collection"),tooltip:Object(w.__)("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)(_.PanelBody,{onToggle:function(){Ie(!Me)},opened:Me,className:"options general",title:Object(w.__)("Import settings","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=y()("option-row",{active:d[t]}),o=e[t],i=o.icon,s=o.title,l=o.tooltip;return Object(r.createElement)(_.PanelRow,{className:a,key:n},Object(r.createElement)(_.Icon,{icon:i}),Object(r.createElement)("span",null,s),l&&Object(r.createElement)(ut,{toLeft:"performanceAddon"===t},l),"theme_install"!==t&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(_.ToggleControl,{checked:d[t],onChange:function(){b(pt(pt({},d),{},c()({},t,!d[t])))}})))})))}),null),Object(r.createElement)((function(){if(xe)return null;var e=pt(pt({},Se.recommended_plugins||{}),Se.mandatory_plugins||{});if(Object.keys(e).length<1)return null;var t=Object(r.useState)(Object.keys(e).length<3),n=O()(t,2),a=n[0],o=n[1],i=Object.keys(e).map((function(t,n){return e[t]})).join(", ");return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.PanelBody,{onToggle:function(){o(!a)},opened:a,className:"options plugins",title:Object(w.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=y()("option-row",{active:ge[t]});return Object(r.createElement)(_.PanelRow,{className:a,key:n},Object(r.createElement)(_.Icon,{icon:"admin-plugins"}),Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:e[t]}}),t in Se.recommended_plugins&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(_.ToggleControl,{checked:ge[t],onChange:function(){Oe(pt(pt({},ge),{},c()({},t,!ge[t])))}})))}))),!a&&Object(r.createElement)("i",{className:"plugin-summary"},Object(r.createElement)(ut,{toLeft:!1},Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:i}})),Object(w.__)("Additional plugins are required for this Starter Site in order to work properly. ","templates-patterns-collection")))}),null)))),!de&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==le?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.Button,{className:"import-templates",isLink:!0,onClick:u},Object(w.__)("I want to import just the templates","templates-patterns-collection")),!ye&&Object(r.createElement)(_.Button,{className:"import",isPrimary:!0,disabled:Ot||!gt,onClick:function(){be(!0),function(){if(console.clear(),!d.cleanup)return console.log("[S] Cleanup."),it(),!1;var e;ue("cleanup"),console.log("[P] Cleanup."),(e={},x(A.root+"/cleanup",e)).then((function(e){if(!e.success)return ht(e,"cleanup"),!1;console.log("[D] Cleanup."),I("done"),it()})).catch((function(e){return ht(e,"cleanup")}))}()}},Object(w.__)("Import entire site","templates-patterns-collection"))):Object(r.createElement)("div",{className:"import-done-actions"},Object(r.createElement)(_.Button,{isLink:!0,className:y()("close",{"is-grayed":!Ze}),disabled:rt,onClick:function(){Ze?window.location.href=vt:(at(!0),Et(vt,{isTempSkip:!0}))}},yt),Object(r.createElement)(_.Button,{isPrimary:!0,className:"import import-full-w",disabled:rt,onClick:function(){var e;Ze?window.location.href=f:(at(!0),""!==Qe.trim()?null===(e=fetch("https://api.themeisle.com/tracking/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:"templates-patterns-collection",site:f,email:Qe})}).then((function(e){return e.json()})).then((function(e){"success"===e.code&&Et(f)})))||void 0===e||e.catch((function(e){console.error(e),Et(f,{isTempSkip:!0})})):Et(f,{isTempSkip:!0}))}},jt)))))})),bt=Object(E.compose)(Object(v.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(v.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=O()(l,2),m=u[0],p=u[1],d=Object(r.useState)(!0),b=O()(d,2),f=b[0],h=b[1],g=Object(r.useState)(""),v=O()(g,2),j=v[0],y=v[1],E=Object(r.useState)([]),S=O()(E,2),k=S[0],C=S[1],N=c.title,x=c.upsell,T=c.utmOutboundLink;Object(r.useEffect)((function(){P()}),[]);var P=function(){ue(!0,{per_page:100,template_site_slug:t,premade:!0,type:o}).then((function(e){p(e.templates||[]),h(!1)}))},D=function(e){y(e)},M=function(e){C(e),i(!0)},I=function(e){M([e])},L=function(e){e.preventDefault(),a(!0)},A=m.findIndex((function(e){return e.link===j})),B=m.find((function(e){return e.link===j}));return Object(r.createElement)("div",{className:"single-templates-wrapper"},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"breadcrumb"},Object(r.createElement)(_.Button,{isTertiary:!0,onClick:n},Object(r.createElement)(_.Icon,{icon:K}),Object(w.__)("Back to Starter Sites"))),Object(r.createElement)("div",{className:"header"},Object(r.createElement)("div",{className:"text"},Object(r.createElement)("h1",null,N||"",x&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(_.Icon,{icon:"lock"}),Object(r.createElement)("span",null,Object(w.__)("Premium","templates-patterns-collection")))),Object(r.createElement)("p",{className:"description"},Object(w.__)("You can import individual pages or bulk-import all of them."))),Object(r.createElement)("div",{className:"actions"},!x&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.Button,{isSecondary:!0,onClick:L},Object(w.__)("Import Starter Site")),Object(r.createElement)(_.Button,{isPrimary:!0,disabled:m.length<1,onClick:function(e){e.preventDefault(),M(m)}},Object(w.__)("Import All Pages"))),x&&Object(r.createElement)(_.Button,{href:T||tiobDash.upgradeURL,isSecondary:!0},Object(w.__)("Upgrade"))))),Object(r.createElement)((function(){return f?Object(r.createElement)(_.Spinner,null):m.length<1?Object(w.__)("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)(Ee,{upsell:x,onPreview:D,userTemplate:!1,key:e.template_id,item:e,loadTemplates:P,onImport:function(){return I(e)},grid:!0})}))))}),null),j&&Object(r.createElement)(Ie,{heading:B.template_name||null,previewUrl:j,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.Button,{icon:Y,onClick:function(){return y("")},label:Object(w.__)("Close","templates-patterns-collection")}),m.length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.Button,{icon:Object(w.isRTL)()?J:K,onClick:function(){var e=A-1;0===A&&(e=m.length-1),y(m[e].link)}}),Object(r.createElement)(_.Button,{icon:Object(w.isRTL)()?K:J,onClick:function(){var e=A+1;A===m.length-1&&(e=0),y(m[e].link)}}))),rightButtons:Object(r.createElement)(r.Fragment,null,!x&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.Button,{isSecondary:!0,onClick:L},Object(w.__)("Import Starter Site")),Object(r.createElement)(_.Button,{isPrimary:!0,disabled:m.length<1,onClick:function(){return I(B)}},Object(w.__)("Import Page"))),x&&Object(r.createElement)(_.Button,{href:T||tiobDash.upgradeURL,isSecondary:!0},Object(w.__)("Upgrade")))}),s&&k&&!f&&k.length>0&&Object(r.createElement)(qe,{templatesData:k}))})),ft=Object(r.createElement)(Q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(Q.Path,{d:"M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z"})),ht=function(e){var t=e.title,n=e.description,a=e.children,c=e.cardHeader,o=e.cardBottom,i=e.classNames;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:y()(["card",i])},Object(r.createElement)("div",{className:"card-header"},t&&Object(r.createElement)("h3",{className:"title"},t),c),Object(r.createElement)("div",{className:"card-content"},n&&Object(r.createElement)("p",{className:"card-description"},n),a),o&&Object(r.createElement)("div",{className:"card-bottom"},o)))},gt=n(20),Ot=Object(E.compose)(Object(v.withDispatch)((function(e){return{setLicense:e("neve-onboarding").setLicense}})),Object(v.withSelect)((function(e){return{license:(0,e("neve-onboarding").getLicense)()}})))((function(e){var t=e.setLicense,n=e.license,a=""!==(null==n?void 0:n.key)&&"free"!==(null==n?void 0:n.key)?null==n?void 0:n.key:"",o=Object(r.useState)(a),i=O()(o,2),s=i[0],l=i[1],u=Object(r.useState)(!1),m=O()(u,2),p=m[0],d=m[1],b=Object(r.useState)({}),f=O()(b,2),h=f[0],g=f[1],v="valid"===(null==n?void 0:n.valid)||"valid"===(null==n?void 0:n.license),j=function(e){var t="templates_patterns_collection_license",n=new gt.models.Settings(c()({},t,e));return new Promise((function(r){n.save().then((function(n){n&&!n[t]!==e||r({success:!1}),r({success:!0})}))}))},y=function(){var e=N()(k.a.mark((function e(n){var r,a,c;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d(!0),"deactivate"!==n.action){e.next=8;break}return t({key:"free",valid:"invalid",expiration:"",tier:0}),l(""),e.next=6,j("");case 6:return d(!1),e.abrupt("return");case 8:return e.next=10,ue(!1,{license_id:n.key,license_check:1});case 10:if(r=e.sent,a=r.success,c=r.templates,!a){e.next=19;break}return t(c),e.next=17,j(n.key);case 17:e.next=20;break;case 19:o="error",i=Object(w.__)("Can not activate this license!","templates-patterns-collection"),g({type:o,message:i}),new Promise((function(e){return setTimeout(e,3e3)})).then((function(){return g({})}));case 20:d(!1);case 21:case"end":return e.stop()}var o,i}),e)})));return function(t){return e.apply(this,arguments)}}(),E=v?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.Icon,{size:32,className:"verified",icon:"yes-alt"})," ","Verified - Expires at"," ",new Date(n.expires).toDateString()):"",S=Object.keys(h).length>0?Object(r.createElement)(_.Notice,{isDismissible:!1,status:h.type},h.message):"";return Object(r.createElement)(ht,{classNames:"license",title:"Templates Collection "+Object(w.__)("License","templates-patterns-collection"),description:Object(r.createElement)(r.Fragment,null,Object(r.createElement)("span",null,"Enter your license from "),Object(r.createElement)(_.ExternalLink,{href:"https://store.themeisle.com/login/"},"Themeisle"),Object(r.createElement)("span",null," purchase history in order to get plugin updates")),children:Object(r.createElement)(r.Fragment,null,Object(r.createElement)("form",{onSubmit:function(e){y({action:v?"deactivate":"activate",key:s}),e.preventDefault()}},Object(r.createElement)(_.TextControl,{disabled:v,onChange:l,value:v?"******************************"+s.slice(-5):s}),Object(r.createElement)(_.Button,{className:"components-button is-primary",disabled:p,type:"submit",variant:"primary"},v?Object(w.__)("Deactivate","templates-patterns-collection"):Object(w.__)("Activate","templates-patterns-collection"))),Object(r.createElement)("div",{className:"info"},E),S)})})),vt=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c=e.license,o={starterSites:Object(w.__)("Starter Sites","templates-patterns-collection"),pageTemplates:Object(w.__)("Page Templates","templates-patterns-collection"),library:Object(w.__)("My Library","templates-patterns-collection")},i=Object(r.useState)(!1),s=O()(i,2),l=s[0],u=s[1],m=Object(r.useContext)(Ye),p=m.isLicenseOpen,d=m.setLicenseOpen,b="valid"===(null==c?void 0:c.valid)||"valid"===(null==c?void 0:c.license),f=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)}(o);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 c=r.parentElement,i=a.parentElement;n.querySelector(".current").classList.remove("current"),c.classList.remove("current"),"library"===e?c.classList.add("current"):i.classList.add("current")}t(e)}};return Object(r.useEffect)((function(){f(),window.addEventListener("hashchange",f)}),[]),Object(r.createElement)("div",{className:"header-nav"},Object.keys(o).map((function(e){return Object(r.createElement)(_.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}},o[e])})),"starterSites"!==n&&Object(r.createElement)(_.Button,{icon:fe,onClick:function(){u(!0),localStorage.setItem("tpcCacheBuster",ie());var e=n;t(null),setTimeout((function(){t(e),u(!1)}),100)},label:Object(w.__)("Re-sync Library"),className:y()("is-icon-btn",{"is-loading":l}),disabled:a||l,"data-content":Object(w.__)("Sync")}),"starterSites"!==n&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(_.Button,{icon:p?Y:ft,onClick:function(){d(!p)},label:Object(w.__)("License"),className:y()("is-icon-btn",{"is-not-valid":!p&&!b,"is-valid":!p&&b}),"data-content":Object(w.__)("License")}),p&&Object(r.createElement)(Ot,null)))},jt=Object(E.compose)(Object(v.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState;return{cancelOnboarding:function(){n(!1)},setCurrentTab:t.setCurrentTab,setFetching:t.setFetching}})),Object(v.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getCurrentTab,a=t.getFetching,c=t.getLicense;return{isOnboarding:n(),currentTab:r(),isFetching:a(),license:c()}})))((function(e){var t=e.isOnboarding,n=e.cancelOnboarding,a=e.setCurrentTab,c=e.currentTab,o=e.license;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)(_.Icon,{icon:Qe}),Object(r.createElement)("span",null,Object(w.__)("Templates Cloud","templates-patterns-collection"))),Object(r.createElement)(vt,{setCurrentTab:a,currentTab:c,license:o}))),t&&Object(r.createElement)(_.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),yt=n(21),Et=n.n(yt),_t=Object(E.compose)(Object(v.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=O()(p,2),b=d[0],f=d[1],h=y()("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(w.__)("New","templates-patterns-collection").toUpperCase()),Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"actions "+b},Object(r.createElement)(_.Button,{isSecondary:!0,onClick:function(e){e.preventDefault(),n(),a(!0)}},Object(w.__)("Preview","templates-patterns-collection")),!i&&Object(r.createElement)(_.Button,{isPrimary:!0,className:"import",onClick:function(e){e.preventDefault(),n(),c(!0)}},Object(w.__)("Import","templates-patterns-collection")),!u&&i&&Object(r.createElement)(_.Button,{isLink:!0,className:"templates",target:"_blank",href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=wpadmin&utm_campaign=templatecloud&utm_content=neve"},Object(w.__)("Unlock access with Business plan","templates-patterns-collection")),u&&Object(r.createElement)(_.Button,{isLink:!0,className:"templates",onClick:function(e){e.preventDefault(),n(),o()}},Object(w.__)("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)(_.Dashicon,{icon:"lock",size:15}),Object(r.createElement)("span",null,Object(w.__)("Premium","templates-patterns-collection")))))})),wt=Object(E.compose)(Object(v.withSelect)((function(e){return{siteData:(0,e("neve-onboarding").getCurrentSite)()}})),Object(v.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)(_.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},Object(r.createElement)("div",{className:"navigator"},Object(r.createElement)(_.Button,{onClick:function(e){e.preventDefault(),o(!1),c(null)},className:"close",label:Object(w.__)("Close","templates-patterns-collection"),icon:Y}),n&&Object(r.createElement)(_.Button,{onClick:function(e){e.preventDefault(),c(n)},className:"prev",label:Object(w.__)("Previous","templates-patterns-collection"),icon:Object(w.isRTL)()?J:K}),t&&Object(r.createElement)(_.Button,{onClick:function(e){e.preventDefault(),c(t)},className:"next",label:Object(w.__)("Next","templates-patterns-collection"),icon:Object(w.isRTL)()?K:J})),Object(r.createElement)("div",{className:"actions"},a.upsell?Object(r.createElement)(_.Button,{className:"upgrade",isPrimary:!0,href:a.utmOutboundLink||tiobDash.upgradeURL},Object(w.__)("Upgrade and Import","templates-patterns-collection")):Object(r.createElement)(_.Button,{className:"import",isPrimary:!0,onClick:function(e){e.preventDefault(),i(!0)}},Object(w.__)("Import","templates-patterns-collection")))))})),St=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)(_.Button,{target:"_blank",isSecondary:!0,href:o.replace("<builder_name>",t).replace(" ","")},c))}),null)},kt=Object(E.compose)(Object(v.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(v.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=O()(p,2),b=d[0],f=d[1],h=function(){return f(!b)},g=y()(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(w.__)("Search Icon")}),Object(r.createElement)("input",{onChange:function(e){a(e.target.value)},type:"search",value:s,placeholder:Object(w.__)("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)(_.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(w.__)("Builder Logo","templates-patterns-collection")})),o.includes(c)&&Object(r.createElement)(_.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px",marginLeft:"0"}}),n[c].niceName),Object(r.createElement)(_.Dashicon,{size:14,icon:b?"arrow-up-alt2":"arrow-down-alt2"}),b&&Object(r.createElement)(_.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(w.__)("Builder Logo","templates-patterns-collection")})),o.includes(e)&&Object(r.createElement)(_.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),n[e].niceName),m&&Object(r.createElement)("span",{className:"count"},t[e])))}))))))}),null)))})),Ct=(Object(E.compose)(Object(v.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(v.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=O()(s,2),u=l[0],m=l[1],p=Object.keys(o),d=function(){return m(!u)},b=y()(["ob-dropdown","editor-selector",{small:i}]);return Object(r.createElement)("div",{className:b},Object(r.createElement)(_.Button,{onClick:d,className:"select ob-dropdown"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[a].icon,alt:Object(w.__)("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)(_.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(_.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(w.__)("Builder Logo","templates-patterns-collection")}),Object(r.createElement)("span",null,t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),Object(E.compose)(Object(v.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(v.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=y()(["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(w.__)("Builder Logo","templates-patterns-collection")})),Object(r.createElement)("span",{className:"editor"},a.includes(e)&&Object(r.createElement)(_.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e]))})))})),Object(E.compose)(Object(v.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(v.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=y()(["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]))})))}))),Nt=Object(E.compose)(Object(v.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(v.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=O()(s,2),u=l[0],m=l[1],p=function(){return m(!u)},d=y()(["ob-dropdown","editor-selector",{small:!0}]);return Object(r.createElement)("div",{className:d},Object(r.createElement)(_.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)(_.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(_.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])))}))))))})),xt=Object(E.compose)(Object(v.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(v.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=O()(u,2),p=m[0],d=m[1],b=i.sites,f=void 0===b?{}:b,h=i.migration,g={top:p?0:"-100%"},v=Object.keys(f),j=v.filter((function(e){return Object.keys(f[e]).filter((function(t){return!0===f[e][t].upsell})).length===Object.keys(f[e]).length})),y=(t={builders:{},categories:{}},v.forEach((function(e){var r=c(e);r=n(r,s),r=a(r),t.builders[e]=r?r.length:0})),Object.keys(et).forEach((function(e){var r=c(l);r=n(r,e),r=a(r),t.categories[e]=r?r.length:0})),t),E=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)(_.Icon,{icon:Qe,size:32}),Object(r.createElement)(kt,{className:"in-sticky",count:y.builders,categories:et,editors:tt,onlyProSites:j,showCount:E}),!1,Object(r.createElement)(Nt,{count:y.categories,categories:et,showCount:E}))),Object(r.createElement)(q.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)(Nt,{count:y.categories,categories:et,showCount:E}),Object(r.createElement)(kt,{count:y.builders,categories:et,editors:tt,onlyProSites:j,showCount:E}),!1,Object(r.createElement)(Ct,{categories:et,count:y.categories,showCount:E}),!tiobDash.isValidLicense&&Object(r.createElement)(St,{data:tiobDash.upsellNotifications.upsell_1,editor:l}))))})),Tt=Object(E.compose)(Object(v.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(v.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]=G()(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 Et.a(e,{includeScore:!0,keys:["title","slug","keywords"]}).search(m).map((function(e){return e.item})):e},g=function(){return Object.keys(d)},v=function(){var e=b()[c];return e=h(e),f(e,n)},j=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(w.__)("Starter sites could not be loaded. Please refresh and try again.","templates-patterns-collection"),s&&Object(r.createElement)(_.Button,{style:{display:"block",margin:"20px auto"},isPrimary:!0,onClick:l},Object(w.__)("Close","templates-patterns-collection")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(xt,{getSitesForBuilder:function(e){return b()[e]},filterBySearch:h,filterByCategory:f}),0===v().length&&Object(r.createElement)("div",{className:"no-results"},Object(r.createElement)("p",null,Object(w.__)("No results found.","templates-patterns-collection")," ",Object(w.__)("You can try a different search or use one of the categories below.","templates-patterns-collection")),Object(r.createElement)("div",{className:"tags"},Xe.map((function(e,t){return Object(r.createElement)(_.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=O()(e,2),n=t[0],a=t[1],c=v();return Object(r.createElement)("div",{className:"ob-sites is-grid"},c.slice(0,n).map((function(e,t){return Object(r.createElement)(_t,{key:t,data:e})})),Object(r.createElement)(q.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)(wt,{next:j(),prev:j(!0)}))})),Pt=Object(E.compose)(Object(v.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(v.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)(jt,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},i&&Object(r.createElement)(H,{data:i}),"starterSites"===n&&(a?Object(r.createElement)(bt,{slug:a}):Object(r.createElement)(Tt,null)),"library"===n&&Object(r.createElement)(Ze,null),"pageTemplates"===n&&Object(r.createElement)(Ze,{isGeneral:!0})))),c&&o&&Object(r.createElement)(dt,null))})),Dt=Object(v.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=y()(["content-wrap","starter-sites",{"is-onboarding":t,"is-free":!n}]),c=Object(r.useState)(!1),o=O()(c,2),i={isLicenseOpen:o[0],setLicenseOpen:o[1]};return Object(r.createElement)(Ye.Provider,{value:i},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)(Pt,null)))))))}));Object(v.registerStore)("neve-onboarding",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,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 d=t.payload.fetching;return i(i({},e),{},{fetching:d});case"SET_SINGLE_TEMPLATE_IMPORT":var b=t.payload.slug;return i(i({},e),{},{singleTemplateImport:b});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});case"SET_LICENSE":var O=t.payload.license;return i(i({},e),{},{license:O})}return e},actions:h,selectors:{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(e){return e.license&&e.license.tier&&[6,17,23,5,9,14,20,1,7,12,18,3,8,13,19].includes(e.license.tier)},getLicense:function(e){return e.license}}}),Object(r.render)(Object(r.createElement)(Dt,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;max-height:90vh}}.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 .components-modal__header h1{font-size:22px;font-weight:700}.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:15px;line-height:34px;color:#333}.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-body{padding-bottom:52px}.ob-import-modal .modal-body .plugin-summary{display:flex;flex-direction:row;align-items:center}.ob-import-modal .modal-body .plugin-summary .tiob-tooltip-content{right:25px;top:0}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center;position:absolute;bottom:0;background:#fff;width:calc( 100% - 72px );padding:12px 36px;z-index:10;right:0;border-top:1px solid #d9d9d9;box-shadow:0px -24px 12px 0px rgba(255,255,255,.8)}.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 .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{margin-right:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle{position:relative;display:flex;align-items:center}.tiob-tooltip-wrap .tiob-tooltip-toggle>svg{fill:#0073aa}.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:11}.tiob-tooltip-content{font-size:13px;top:100%;right:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;z-index:1;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:540px !important;max-height:90vh}}.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;position:relative}.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-icon-btn{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-icon-btn:hover{background-color:#f7f7f7}.is-not-valid{color:red !important}.is-valid{color:green !important}.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:20px;font-size:14px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%;line-height:14px}.ob-import-modal .stepper li .icon .dashicon{font-size:14px;width:14px;height:14px}.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:15px;height:15px;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:20px;font-size:14px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%;line-height:14px}.ob-import-modal .stepper li .icon .dashicon{font-size:14px;width:14px;height:14px}.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:15px;height:15px;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 .components-modal__header h1{font-size:18px;font-weight:700}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:18px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:14px;line-height:24px;color:#333}.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:14px}.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:14px;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:14px}.ob-import-modal .modal-body{padding-bottom:52px}.ob-import-modal .modal-body .plugin-summary{display:flex;flex-direction:row;align-items:center}.ob-import-modal .modal-body .plugin-summary .tiob-tooltip-content{right:25px;top:0}.ob-import-modal .modal-body .tpc-subscribe-email-text{font-size:14px;margin-top:20px}.ob-import-modal .modal-body .tpc-email-input{margin-bottom:60px}.ob-import-modal .modal-body .tpc-email-input input{padding:12px;font-size:13px;color:#2c3338;border-radius:2px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center;position:absolute;bottom:0;background:#fff;width:calc( 100% - 72px );padding:12px 36px;z-index:10;right:0;border-top:1px solid #d9d9d9;box-shadow:0px -24px 12px 0px rgba(255,255,255,.8)}.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:16px;font-weight:700;line-height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:8px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:14px;margin-right:10px;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%;flex-direction:column-reverse;gap:10px;padding:12px 0}.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:0 !important}.import-done-actions .import-full-w{width:100%;justify-content:center;padding:12px 30px}.import-done-actions .is-grayed{color:#757575}.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{margin-right:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle{position:relative;display:flex;align-items:center}.tiob-tooltip-wrap .tiob-tooltip-toggle>svg{fill:#0073aa}.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:11}.tiob-tooltip-content{font-size:13px;top:100%;right:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;z-index:1;pointer-events:none;opacity:0}.ob .ob-head .header-container .header-nav .license{position:absolute;max-width:350px;top:75px;left:0}.ob .ob-head .header-container .header-nav .license .components-button{width:100%;margin:0;margin-bottom:0px;text-align:center;justify-content:center;color:#fff;font-weight:normal;font-size:14px;margin-bottom:12px}.ob .ob-head .header-container .header-nav .license .dashicon.verified{color:green}@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;max-height:90vh}}.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 .components-modal__header h1{font-size:22px;font-weight:700}.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:15px;line-height:34px;color:#333}.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-body{padding-bottom:52px}.ob-import-modal .modal-body .plugin-summary{display:flex;flex-direction:row;align-items:center}.ob-import-modal .modal-body .plugin-summary .tiob-tooltip-content{left:25px;top:0}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center;position:absolute;bottom:0;background:#fff;width:calc( 100% - 72px );padding:12px 36px;z-index:10;left:0;border-top:1px solid #d9d9d9;box-shadow:0px -24px 12px 0px rgba(255,255,255,.8)}.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 .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{margin-left:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle{position:relative;display:flex;align-items:center}.tiob-tooltip-wrap .tiob-tooltip-toggle>svg{fill:#0073aa}.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:11}.tiob-tooltip-content{font-size:13px;top:100%;left:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;z-index:1;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:540px !important;max-height:90vh}}.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;position:relative}.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-icon-btn{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-icon-btn:hover{background-color:#f7f7f7}.is-not-valid{color:red !important}.is-valid{color:green !important}.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:20px;font-size:14px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%;line-height:14px}.ob-import-modal .stepper li .icon .dashicon{font-size:14px;width:14px;height:14px}.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:15px;height:15px;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:20px;font-size:14px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%;line-height:14px}.ob-import-modal .stepper li .icon .dashicon{font-size:14px;width:14px;height:14px}.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:15px;height:15px;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 .components-modal__header h1{font-size:18px;font-weight:700}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:18px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:14px;line-height:24px;color:#333}.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:14px}.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:14px;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:14px}.ob-import-modal .modal-body{padding-bottom:52px}.ob-import-modal .modal-body .plugin-summary{display:flex;flex-direction:row;align-items:center}.ob-import-modal .modal-body .plugin-summary .tiob-tooltip-content{left:25px;top:0}.ob-import-modal .modal-body .tpc-subscribe-email-text{font-size:14px;margin-top:20px}.ob-import-modal .modal-body .tpc-email-input{margin-bottom:60px}.ob-import-modal .modal-body .tpc-email-input input{padding:12px;font-size:13px;color:#2c3338;border-radius:2px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center;position:absolute;bottom:0;background:#fff;width:calc( 100% - 72px );padding:12px 36px;z-index:10;left:0;border-top:1px solid #d9d9d9;box-shadow:0px -24px 12px 0px rgba(255,255,255,.8)}.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:16px;font-weight:700;line-height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:8px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:14px;margin-left:10px;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%;flex-direction:column-reverse;gap:10px;padding:12px 0}.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:0 !important}.import-done-actions .import-full-w{width:100%;justify-content:center;padding:12px 30px}.import-done-actions .is-grayed{color:#757575}.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{margin-left:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle{position:relative;display:flex;align-items:center}.tiob-tooltip-wrap .tiob-tooltip-toggle>svg{fill:#0073aa}.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:11}.tiob-tooltip-content{font-size:13px;top:100%;left:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;z-index:1;pointer-events:none;opacity:0}.ob .ob-head .header-container .header-nav .license{position:absolute;max-width:350px;top:75px;right:0}.ob .ob-head .header-container .header-nav .license .components-button{width:100%;margin:0;margin-bottom:0px;text-align:center;justify-content:center;color:#fff;font-weight:normal;font-size:14px;margin-bottom:12px}.ob .ob-head .header-container .header-nav .license .dashicon.verified{color:green}@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/App.js CHANGED
@@ -2,6 +2,8 @@ import { withSelect } from '@wordpress/data';
2
  import classnames from 'classnames';
3
 
4
  import Onboarding from './Main';
 
 
5
 
6
  const App = ( { onboarding, userStatus } ) => {
7
  const wrapClasses = classnames( [
@@ -12,18 +14,24 @@ const App = ( { onboarding, userStatus } ) => {
12
  'is-free': ! userStatus,
13
  },
14
  ] );
 
 
 
 
15
  return (
16
- <div className="tiob-wrap">
17
- <div className={ wrapClasses }>
18
- <div className="container content">
19
- <div className="main">
20
- <div className="tab-content columns starter-sites">
21
- <Onboarding />
 
 
22
  </div>
23
  </div>
24
  </div>
25
  </div>
26
- </div>
27
  );
28
  };
29
 
2
  import classnames from 'classnames';
3
 
4
  import Onboarding from './Main';
5
+ import {useState} from "@wordpress/element";
6
+ import {LicensePanelContext} from "./LicensePanelContext";
7
 
8
  const App = ( { onboarding, userStatus } ) => {
9
  const wrapClasses = classnames( [
14
  'is-free': ! userStatus,
15
  },
16
  ] );
17
+
18
+ const [ isLicenseOpen, setLicenseOpen ] = useState( false );
19
+ const contextValue = { isLicenseOpen, setLicenseOpen };
20
+
21
  return (
22
+ <LicensePanelContext.Provider value={ contextValue }>
23
+ <div className="tiob-wrap">
24
+ <div className={ wrapClasses }>
25
+ <div className="container content">
26
+ <div className="main">
27
+ <div className="tab-content columns starter-sites">
28
+ <Onboarding />
29
+ </div>
30
  </div>
31
  </div>
32
  </div>
33
  </div>
34
+ </LicensePanelContext.Provider>
35
  );
36
  };
37
 
assets/src/Components/Card.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import classnames from 'classnames';
2
+
3
+ const Card = ( props ) => {
4
+ const {
5
+ title,
6
+ description,
7
+ children,
8
+ cardHeader,
9
+ cardBottom,
10
+ classNames,
11
+ } = props;
12
+ return (
13
+ <>
14
+ <div className={ classnames( [ 'card', classNames ] ) }>
15
+ <div className="card-header">
16
+ { title && <h3 className="title">{ title }</h3> }
17
+ { cardHeader }
18
+ </div>
19
+ <div className="card-content">
20
+ { description && (
21
+ <p className="card-description">{ description }</p>
22
+ ) }
23
+ { children }
24
+ </div>
25
+ { cardBottom && (
26
+ <div className="card-bottom">{ cardBottom }</div>
27
+ ) }
28
+ </div>
29
+ </>
30
+ );
31
+ };
32
+
33
+ export default Card;
assets/src/Components/CloudLibrary/ImportTemplatesModal.js CHANGED
@@ -31,6 +31,10 @@ const ImportTemplatesModal = ( {
31
 
32
  const isSingle = templatesData.length === 1;
33
 
 
 
 
 
34
  useEffect( () => {
35
  if ( isUserTemplate && isSingle ) {
36
  getUserTemplateData( templatesData[ 0 ].template_id ).then(
@@ -141,6 +145,12 @@ const ImportTemplatesModal = ( {
141
  console.error( err );
142
  };
143
 
 
 
 
 
 
 
144
  if ( themeData.action === 'install' ) {
145
  installTheme(
146
  'neve',
31
 
32
  const isSingle = templatesData.length === 1;
33
 
34
+ console.log( themeData );
35
+ console.log( isUserTemplate );
36
+ console.log( generalTemplates );
37
+
38
  useEffect( () => {
39
  if ( isUserTemplate && isSingle ) {
40
  getUserTemplateData( templatesData[ 0 ].template_id ).then(
145
  console.error( err );
146
  };
147
 
148
+ // skip activation or install for user templates
149
+ if ( isUserTemplate ) {
150
+ callbackImportTemplate();
151
+ return false;
152
+ }
153
+
154
  if ( themeData.action === 'install' ) {
155
  installTheme(
156
  'neve',
assets/src/Components/CloudLibrary/Library.js CHANGED
@@ -2,7 +2,7 @@ import classnames from 'classnames';
2
  import VizSensor from 'react-visibility-sensor';
3
 
4
  import { chevronLeft, chevronRight, close } from '@wordpress/icons';
5
- 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';
@@ -15,6 +15,7 @@ import Filters from './Filters';
15
  import PreviewFrame from './PreviewFrame';
16
  import ImportTemplatesModal from './ImportTemplatesModal';
17
  import Logo from '../Icon';
 
18
 
19
  const Library = ( {
20
  isGeneral,
@@ -281,11 +282,12 @@ const Library = ( {
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=wpadmin&utm_campaign=templatecloud&utm_content=neve';
 
 
287
 
288
- const UpsellModal = ( { title, description, showUpgradeBtn = true } ) => {
289
  return (
290
  <div className={ wrapClasses }>
291
  <div className="table">
@@ -317,12 +319,18 @@ const Library = ( {
317
  <Button
318
  variant="primary"
319
  isPrimary
320
- href="https://themeisle.com/themes/neve/upgrade/?utm_medium=templatecloud&utm_source=wpadmin&utm_campaign=upgradetoprobtn&utm_content=neve"
321
  target="_blank"
322
  >
323
  { __( 'Upgrade to PRO' ) }
324
  </Button>
325
  ) }
 
 
 
 
 
 
326
  </div>
327
  <div className="icon">
328
  <Icon icon={ Logo } />
@@ -334,31 +342,14 @@ const Library = ( {
334
  );
335
  };
336
 
337
- if ( themeData !== false ) {
338
- return (
339
- <UpsellModal
340
- title={ __( 'Coming soon' ) }
341
- description={ sprintf(
342
- // translators: %1$s: Theme Name %2$s Plugin Name.
343
- __(
344
- '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',
345
- 'template-patterns-collection'
346
- ),
347
- `<a href="${ themeURL }" target="_blank" rel="noreferrer">Neve</a>`,
348
- `<a href="${ upgradeURL }" target="_blank" rel="noreferrer">Neve Pro Addon</a>`
349
- ) }
350
- showUpgradeBtn={ false }
351
- />
352
- );
353
- }
354
-
355
  if ( ! userStatus && ! isGeneral ) {
356
  return (
357
  <UpsellModal
358
  title={ __( 'Templates Cloud is a PRO Feature' ) }
359
  description={ __(
360
- 'Unlock the Templates Cloud features and save your pages or posts in the cloud.'
361
- ) }
 
362
  />
363
  );
364
  }
2
  import VizSensor from 'react-visibility-sensor';
3
 
4
  import { chevronLeft, chevronRight, close } from '@wordpress/icons';
5
+ import {useEffect, useState, Fragment, useContext} from '@wordpress/element';
6
  import { withDispatch, withSelect } from '@wordpress/data';
7
  import { Spinner, Button, Icon } from '@wordpress/components';
8
  import { compose } from '@wordpress/compose';
15
  import PreviewFrame from './PreviewFrame';
16
  import ImportTemplatesModal from './ImportTemplatesModal';
17
  import Logo from '../Icon';
18
+ import { LicensePanelContext } from '../LicensePanelContext';
19
 
20
  const Library = ( {
21
  isGeneral,
282
  } );
283
  };
284
 
285
+ const { upgradeURLTpc } = window.tiobDash;
286
+
287
+ const UpsellModal = ( { title, description, showUpgradeBtn = true, showLicenseToggle = true } ) => {
288
+
289
+ const { setLicenseOpen } = useContext( LicensePanelContext );
290
 
 
291
  return (
292
  <div className={ wrapClasses }>
293
  <div className="table">
319
  <Button
320
  variant="primary"
321
  isPrimary
322
+ href={upgradeURLTpc}
323
  target="_blank"
324
  >
325
  { __( 'Upgrade to PRO' ) }
326
  </Button>
327
  ) }
328
+
329
+ { showLicenseToggle && (
330
+ <Button isLink style={{ marginLeft: '12px' }} onClick={ () => { setLicenseOpen(true) } }>
331
+ { __( 'I already have a key', 'template-patterns-collection' ) }
332
+ </Button>
333
+ ) }
334
  </div>
335
  <div className="icon">
336
  <Icon icon={ Logo } />
342
  );
343
  };
344
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  if ( ! userStatus && ! isGeneral ) {
346
  return (
347
  <UpsellModal
348
  title={ __( 'Templates Cloud is a PRO Feature' ) }
349
  description={ __(
350
+ 'Unlock the Templates Cloud features and save your pages or posts in the cloud.',
351
+ 'template-patterns-collection'
352
+ ) }
353
  />
354
  );
355
  }
assets/src/Components/Header.js CHANGED
@@ -1,17 +1,19 @@
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';
8
 
9
  import Logo from './Icon';
10
  import classnames from 'classnames';
11
  import { v4 as uuidv4 } from 'uuid';
12
  import { addUrlHash, getTabHash } from '../utils/common';
 
 
13
 
14
- const TabNavigation = ( { setCurrentTab, currentTab, isFetching } ) => {
15
  const buttons = {
16
  starterSites: __( 'Starter Sites', 'templates-patterns-collection' ),
17
  pageTemplates: __( 'Page Templates', 'templates-patterns-collection' ),
@@ -19,6 +21,8 @@ const TabNavigation = ( { setCurrentTab, currentTab, isFetching } ) => {
19
  };
20
 
21
  const [ isSyncing, setSyncing ] = useState( false );
 
 
22
 
23
  const sync = () => {
24
  setSyncing( true );
@@ -92,13 +96,30 @@ const TabNavigation = ( { setCurrentTab, currentTab, isFetching } ) => {
92
  icon={ update }
93
  onClick={ sync }
94
  label={ __( 'Re-sync Library' ) }
95
- className={ classnames( 'is-sync', {
96
  'is-loading': isSyncing,
97
  } ) }
98
  disabled={ isFetching || isSyncing }
99
  data-content={ __( 'Sync' ) }
100
  />
101
  ) }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  </div>
103
  );
104
  };
@@ -108,6 +129,7 @@ const Header = ( {
108
  cancelOnboarding,
109
  setCurrentTab,
110
  currentTab,
 
111
  } ) => {
112
  return (
113
  <div className="ob-head">
@@ -128,6 +150,7 @@ const Header = ( {
128
  <TabNavigation
129
  setCurrentTab={ setCurrentTab }
130
  currentTab={ currentTab }
 
131
  />
132
  </div>
133
  </>
@@ -158,13 +181,14 @@ export default compose(
158
  };
159
  } ),
160
  withSelect( ( select ) => {
161
- const { getOnboardingStatus, getCurrentTab, getFetching } = select(
162
  'neve-onboarding'
163
  );
164
  return {
165
  isOnboarding: getOnboardingStatus(),
166
  currentTab: getCurrentTab(),
167
  isFetching: getFetching(),
 
168
  };
169
  } )
170
  )( Header );
1
  /* global tiobDash, localStorage */
2
  import { withSelect, withDispatch } from '@wordpress/data';
3
+ import { useEffect, useState, useContext } from '@wordpress/element';
4
  import { Button, Icon } from '@wordpress/components';
5
  import { compose } from '@wordpress/compose';
6
+ import { update, cloud, close } from '@wordpress/icons';
7
  import { __ } from '@wordpress/i18n';
8
 
9
  import Logo from './Icon';
10
  import classnames from 'classnames';
11
  import { v4 as uuidv4 } from 'uuid';
12
  import { addUrlHash, getTabHash } from '../utils/common';
13
+ import License from './License';
14
+ import { LicensePanelContext } from './LicensePanelContext';
15
 
16
+ const TabNavigation = ( { setCurrentTab, currentTab, isFetching, license } ) => {
17
  const buttons = {
18
  starterSites: __( 'Starter Sites', 'templates-patterns-collection' ),
19
  pageTemplates: __( 'Page Templates', 'templates-patterns-collection' ),
21
  };
22
 
23
  const [ isSyncing, setSyncing ] = useState( false );
24
+ const { isLicenseOpen, setLicenseOpen } = useContext( LicensePanelContext );
25
+ const isValid = 'valid' === license?.valid || 'valid' === license?.license;
26
 
27
  const sync = () => {
28
  setSyncing( true );
96
  icon={ update }
97
  onClick={ sync }
98
  label={ __( 'Re-sync Library' ) }
99
+ className={ classnames( 'is-icon-btn', {
100
  'is-loading': isSyncing,
101
  } ) }
102
  disabled={ isFetching || isSyncing }
103
  data-content={ __( 'Sync' ) }
104
  />
105
  ) }
106
+ { currentTab !== 'starterSites' && (
107
+ <>
108
+ <Button
109
+ icon={ ! isLicenseOpen ? cloud : close }
110
+ onClick={ () => {
111
+ setLicenseOpen( ! isLicenseOpen );
112
+ } }
113
+ label={ __( 'License' ) }
114
+ className={ classnames( 'is-icon-btn', {
115
+ 'is-not-valid': ! isLicenseOpen && ! isValid,
116
+ 'is-valid': ! isLicenseOpen && isValid,
117
+ } ) }
118
+ data-content={ __( 'License' ) }
119
+ />
120
+ { isLicenseOpen && <License /> }
121
+ </>
122
+ ) }
123
  </div>
124
  );
125
  };
129
  cancelOnboarding,
130
  setCurrentTab,
131
  currentTab,
132
+ license,
133
  } ) => {
134
  return (
135
  <div className="ob-head">
150
  <TabNavigation
151
  setCurrentTab={ setCurrentTab }
152
  currentTab={ currentTab }
153
+ license={ license }
154
  />
155
  </div>
156
  </>
181
  };
182
  } ),
183
  withSelect( ( select ) => {
184
+ const { getOnboardingStatus, getCurrentTab, getFetching, getLicense } = select(
185
  'neve-onboarding'
186
  );
187
  return {
188
  isOnboarding: getOnboardingStatus(),
189
  currentTab: getCurrentTab(),
190
  isFetching: getFetching(),
191
+ license: getLicense(),
192
  };
193
  } )
194
  )( Header );
assets/src/Components/ImportModal.js CHANGED
@@ -9,7 +9,7 @@ import {
9
  installPlugins,
10
  installTheme,
11
  } from '../utils/site-import';
12
- import { get } from '../utils/rest';
13
  import { trailingSlashIt } from '../utils/common';
14
  import ImportStepper from './ImportStepper';
15
  import ImportModalNote from './ImportModalNote';
@@ -35,6 +35,7 @@ import {
35
  PanelBody,
36
  PanelRow,
37
  ToggleControl,
 
38
  } from '@wordpress/components';
39
 
40
  const ImportModal = ( {
@@ -53,6 +54,7 @@ const ImportModal = ( {
53
  performanceAddon: true,
54
  theme_install: themeData !== false,
55
  } );
 
56
 
57
  const [ themeInstallProgress, setThemeInstallProgress ] = useState( false );
58
  const [ performanceAddonProgress, setPerformanceAddonProgress ] = useState(
@@ -77,6 +79,9 @@ const ImportModal = ( {
77
  const [ isCleanupAllowed, setIsCleanupAllowed ] = useState(
78
  cleanupAllowed
79
  );
 
 
 
80
 
81
  useEffect( () => {
82
  const fetchAddress = siteData.remote_url || siteData.url;
@@ -713,22 +718,101 @@ const ImportModal = ( {
713
  };
714
  const editLink = editLinkMap[ editor ];
715
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
716
  return (
717
  <Modal
718
  className={ classnames( [ 'ob-import-modal', { fetching } ] ) }
719
  onRequestClose={ closeModal }
720
  shouldCloseOnClickOutside={ ! importing && ! fetching }
721
  isDismissible={ ! importing && ! fetching }
722
- title={ importData ?
723
- sprintf(
724
- /* translators: name of starter site */
725
- __(
726
- 'Import %s as a complete site',
727
- 'templates-patterns-collection'
728
- ),
729
- importData.title
730
- ) : ''
731
- }
732
  >
733
  { fetching ? (
734
  <ImportModalMock />
@@ -771,18 +855,23 @@ const ImportModal = ( {
771
  willDo={ general }
772
  />
773
  ) }
774
- { 'done' === currentStep && (
775
  <>
776
- <hr />
777
- <p className="import-result">
778
- { __(
779
- 'Content was successfully imported. Enjoy your new site!',
780
- 'templates-patterns-collection'
781
- ) }
782
- </p>
783
- <hr />
 
 
784
  </>
785
  ) }
 
 
 
786
  </>
787
  ) }
788
  </div>
@@ -824,32 +913,19 @@ const ImportModal = ( {
824
  <div className="import-done-actions">
825
  <Button
826
  isLink
827
- className="close"
828
- onClick={ closeModal }
 
829
  >
830
- { __(
831
- 'Back to Sites Library',
832
- 'templates-patterns-collection'
833
- ) }
834
- </Button>
835
- <Button
836
- isSecondary
837
- href={ tiobDash.onboarding.homeUrl }
838
- >
839
- { __(
840
- 'View Website',
841
- 'templates-patterns-collection'
842
- ) }
843
  </Button>
844
  <Button
845
  isPrimary
846
- className="import"
847
- href={ editLink }
 
848
  >
849
- { __(
850
- 'Add your own content',
851
- 'templates-patterns-collection'
852
- ) }
853
  </Button>
854
  </div>
855
  ) }
9
  installPlugins,
10
  installTheme,
11
  } from '../utils/site-import';
12
+ import { get, ajaxAction } from '../utils/rest';
13
  import { trailingSlashIt } from '../utils/common';
14
  import ImportStepper from './ImportStepper';
15
  import ImportModalNote from './ImportModalNote';
35
  PanelBody,
36
  PanelRow,
37
  ToggleControl,
38
+ TextControl,
39
  } from '@wordpress/components';
40
 
41
  const ImportModal = ( {
54
  performanceAddon: true,
55
  theme_install: themeData !== false,
56
  } );
57
+ const site = tiobDash.onboarding.homeUrl || '';
58
 
59
  const [ themeInstallProgress, setThemeInstallProgress ] = useState( false );
60
  const [ performanceAddonProgress, setPerformanceAddonProgress ] = useState(
79
  const [ isCleanupAllowed, setIsCleanupAllowed ] = useState(
80
  cleanupAllowed
81
  );
82
+ const [ email, setEmail ] = useState( tiobDash.emailSubscribe.email || '' );
83
+ const [ skipSubscribe, setSkipSubscribe ] = useState( 'yes' === tiobDash?.emailSubscribe?.skipStatus );
84
+ const [ processingSub, setProcessingSub ] = useState( false );
85
 
86
  useEffect( () => {
87
  const fetchAddress = siteData.remote_url || siteData.url;
718
  };
719
  const editLink = editLinkMap[ editor ];
720
 
721
+ let viewWebsiteText = __(
722
+ 'View Website & Subscribe',
723
+ 'templates-patterns-collection'
724
+ );
725
+ let skipText = __(
726
+ 'Skip and add your own content',
727
+ 'templates-patterns-collection'
728
+ );
729
+ if ( skipSubscribe ) {
730
+ viewWebsiteText = __(
731
+ 'View Website',
732
+ 'templates-patterns-collection'
733
+ );
734
+ skipText = __(
735
+ 'Add your own content',
736
+ 'templates-patterns-collection'
737
+ );
738
+ }
739
+
740
+ const markSubscribeSkip = ( redirect, data = {} ) => {
741
+ ajaxAction( tiobDash.emailSubscribe.ajaxURL, 'skip_subscribe', tiobDash.emailSubscribe.nonce, data )
742
+ .then(() => {
743
+ setSkipSubscribe(true);
744
+ setProcessingSub( false );
745
+ window.location.href = redirect;
746
+ });
747
+ }
748
+
749
+ const goToEditContent = () => {
750
+ if ( skipSubscribe ) {
751
+ window.location.href = editLink;
752
+ return;
753
+ }
754
+ setProcessingSub( true );
755
+ markSubscribeSkip( editLink, { isTempSkip: true } );
756
+ };
757
+
758
+ const viewWebsiteAndSubscribe = () => {
759
+ if ( skipSubscribe ) {
760
+ window.location.href = site;
761
+ return;
762
+ }
763
+
764
+ setProcessingSub( true );
765
+
766
+ if ( '' === email.trim() ) {
767
+ markSubscribeSkip( site, { isTempSkip: true } );
768
+ return;
769
+ }
770
+
771
+ fetch( 'https://api.themeisle.com/tracking/subscribe', {
772
+ method: 'POST',
773
+ headers: {
774
+ 'Content-Type': 'application/json'
775
+ },
776
+ body: JSON.stringify({
777
+ slug: 'templates-patterns-collection',
778
+ site,
779
+ email
780
+ })
781
+ })
782
+ .then( r => r.json() )
783
+ .then( ( response ) => {
784
+ if ( 'success' === response.code ) {
785
+ markSubscribeSkip( site )
786
+ }
787
+ })?.catch( ( error ) => {
788
+ console.error( error );
789
+ markSubscribeSkip( site, { isTempSkip: true } )
790
+ });
791
+ }
792
+
793
+ let modalTitle = importData ?
794
+ sprintf(
795
+ /* translators: name of starter site */
796
+ __(
797
+ 'Import %s as a complete site',
798
+ 'templates-patterns-collection'
799
+ ),
800
+ importData.title
801
+ ) : '';
802
+ if ( 'done' === currentStep && ! error ) {
803
+ modalTitle = __(
804
+ 'Content was successfully imported',
805
+ 'templates-patterns-collection'
806
+ );
807
+ }
808
+
809
  return (
810
  <Modal
811
  className={ classnames( [ 'ob-import-modal', { fetching } ] ) }
812
  onRequestClose={ closeModal }
813
  shouldCloseOnClickOutside={ ! importing && ! fetching }
814
  isDismissible={ ! importing && ! fetching }
815
+ title={ modalTitle }
 
 
 
 
 
 
 
 
 
816
  >
817
  { fetching ? (
818
  <ImportModalMock />
855
  willDo={ general }
856
  />
857
  ) }
858
+ { 'done' === currentStep && ! skipSubscribe && (
859
  <>
860
+ <p className="tpc-subscribe-email-text">{ __( 'Stay up-to-date on news, tips and product updates', 'templates-patterns-collection' ) }</p>
861
+
862
+ <TextControl
863
+ aria-label={ __( 'Enter your email', 'templates-patterns-collection' ) }
864
+
865
+ type="email"
866
+ value={ email }
867
+ onChange={ setEmail }
868
+ className="tpc-email-input"
869
+ />
870
  </>
871
  ) }
872
+ { 'done' === currentStep && skipSubscribe && (
873
+ <span style={{display: 'block', marginBottom: '60px'}}/>
874
+ ) }
875
  </>
876
  ) }
877
  </div>
913
  <div className="import-done-actions">
914
  <Button
915
  isLink
916
+ className={ classnames( 'close', { 'is-grayed': ! skipSubscribe } ) }
917
+ disabled={ processingSub }
918
+ onClick={ goToEditContent }
919
  >
920
+ { skipText }
 
 
 
 
 
 
 
 
 
 
 
 
921
  </Button>
922
  <Button
923
  isPrimary
924
+ className="import import-full-w"
925
+ disabled={ processingSub }
926
+ onClick={ viewWebsiteAndSubscribe }
927
  >
928
+ { viewWebsiteText }
 
 
 
929
  </Button>
930
  </div>
931
  ) }
assets/src/Components/License.js ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { useState } from '@wordpress/element';
2
+ import { __ } from '@wordpress/i18n';
3
+ import { compose } from '@wordpress/compose';
4
+ import { withDispatch, withSelect } from '@wordpress/data';
5
+ import Card from './Card';
6
+ import {
7
+ ExternalLink,
8
+ TextControl,
9
+ Button,
10
+ Notice,
11
+ Icon,
12
+ } from '@wordpress/components';
13
+ import { models } from '@wordpress/api';
14
+ import { fetchLibrary as licenseCheck } from './CloudLibrary/common';
15
+
16
+ const License = ( { setLicense, license } ) => {
17
+ const keyValue = license?.key !== '' && license?.key !== 'free' ? license?.key : '';
18
+ const [ licenseKey, setLicenseKey ] = useState( keyValue );
19
+ const [ loading, setLoading ] = useState( false );
20
+ const [ resultMsg, setResultMsg ] = useState( {} );
21
+
22
+
23
+ const isValid = 'valid' === license?.valid || 'valid' === license?.license;
24
+
25
+ const delay = (time) => new Promise(resolve => setTimeout(resolve, time));
26
+
27
+ const createNotice = (type, message) => {
28
+ setResultMsg({type, message});
29
+
30
+ delay(3000).then(()=>setResultMsg({}));
31
+ }
32
+
33
+ const updateKey = ( value ) => {
34
+ const optionName = 'templates_patterns_collection_license';
35
+ const model = new models.Settings({
36
+ [optionName]: value,
37
+ });
38
+
39
+ return new Promise((resolve) => {
40
+ model.save().then((r) => {
41
+ if (!r || !r[optionName] === value) {
42
+ resolve({ success: false });
43
+ }
44
+ resolve({ success: true });
45
+ });
46
+ });
47
+ }
48
+
49
+ const onSaveLicense = async ( data ) => {
50
+ setLoading( true );
51
+ if ( data.action === 'deactivate' ) {
52
+ setLicense( {
53
+ key: 'free',
54
+ valid: 'invalid',
55
+ expiration: '',
56
+ tier: 0,
57
+ } );
58
+ setLicenseKey('');
59
+ await updateKey( '' );
60
+ setLoading( false );
61
+ return;
62
+ }
63
+
64
+ const { success, templates } = await licenseCheck( false, { license_id: data.key, license_check: 1 } );
65
+
66
+ if ( success ) {
67
+ setLicense( templates );
68
+ await updateKey( data.key );
69
+ } else {
70
+ createNotice(
71
+ 'error',
72
+ __( 'Can not activate this license!', 'templates-patterns-collection' ),
73
+ );
74
+ }
75
+ setLoading( false );
76
+ };
77
+
78
+ const toggleLicense = ( event ) => {
79
+ onSaveLicense( {
80
+ action: isValid ? 'deactivate' : 'activate',
81
+ key: licenseKey,
82
+ } );
83
+
84
+ event.preventDefault();
85
+ };
86
+
87
+ const licenseStatusMsg = isValid ? (
88
+ <>
89
+ <Icon size={ 32 } className="verified" icon="yes-alt" />{ ' ' }
90
+ { 'Verified - Expires at'} { new Date( license.expires ).toDateString() }
91
+ </>
92
+ ) : (
93
+ ''
94
+ );
95
+
96
+ const renderResultMsg =
97
+ Object.keys( resultMsg ).length > 0 ? (
98
+ <Notice isDismissible={ false } status={ resultMsg.type }>
99
+ { resultMsg.message }
100
+ </Notice>
101
+ ) : (
102
+ ''
103
+ );
104
+
105
+ const children = () => (
106
+ <>
107
+ <form onSubmit={ toggleLicense }>
108
+ <TextControl
109
+ disabled={ isValid }
110
+ onChange={ setLicenseKey }
111
+ value={
112
+ isValid
113
+ ? '******************************' +
114
+ licenseKey.slice( -5 )
115
+ : licenseKey
116
+ }
117
+ />
118
+ <Button
119
+ className="components-button is-primary"
120
+ disabled={ loading }
121
+ type="submit"
122
+ variant="primary"
123
+ >
124
+ { isValid
125
+ ? __( 'Deactivate', 'templates-patterns-collection' )
126
+ : __( 'Activate', 'templates-patterns-collection' ) }
127
+ </Button>
128
+ </form>
129
+
130
+ <div className="info">{ licenseStatusMsg }</div>
131
+ { renderResultMsg }
132
+ </>
133
+ );
134
+
135
+ const description = () => (
136
+ <>
137
+ <span>Enter your license from </span>
138
+ <ExternalLink href="https://store.themeisle.com/login/">
139
+ Themeisle
140
+ </ExternalLink>
141
+ <span> purchase history in order to get plugin updates</span>
142
+ </>
143
+ );
144
+
145
+ return (
146
+ <Card
147
+ classNames={ 'license' }
148
+ title={
149
+ 'Templates Collection ' +
150
+ __( 'License', 'templates-patterns-collection' )
151
+ }
152
+ description={ description() }
153
+ children={ children() }
154
+ />
155
+ );
156
+ };
157
+
158
+ export default compose(
159
+ withDispatch( ( dispatch ) => {
160
+ const { setLicense } = dispatch( 'neve-onboarding' );
161
+
162
+ return {
163
+ setLicense,
164
+ };
165
+ } ),
166
+ withSelect( ( select ) => {
167
+ const { getLicense } = select( 'neve-onboarding' );
168
+
169
+ return {
170
+ license: getLicense(),
171
+ };
172
+ } )
173
+ )( License );
assets/src/Components/LicensePanelContext.js ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ import {createContext, useState} from '@wordpress/element';
2
+
3
+ export const LicensePanelContext = createContext( { isLicenseOpen: false, setLicenseOpen: () => {} } );
assets/src/scss/_general.scss CHANGED
@@ -27,7 +27,7 @@
27
 
28
  @media screen and (min-width: #{$laptop}) {
29
  .ob-import-modal {
30
- width: 700px !important;
31
  max-height: 90vh;
32
  }
33
  }
@@ -271,6 +271,7 @@ svg.is-loading, button.is-loading svg {
271
  display: flex;
272
  justify-content: flex-end;
273
  align-items: center;
 
274
 
275
  .components-button {
276
  font-size: 18px;
27
 
28
  @media screen and (min-width: #{$laptop}) {
29
  .ob-import-modal {
30
+ width: 540px !important;
31
  max-height: 90vh;
32
  }
33
  }
271
  display: flex;
272
  justify-content: flex-end;
273
  align-items: center;
274
+ position: relative;
275
 
276
  .components-button {
277
  font-size: 18px;
assets/src/scss/_header.scss CHANGED
@@ -87,20 +87,19 @@
87
  }
88
 
89
 
90
- .is-sync {
91
  background-color: #f1f1f1;
92
  color: #0073aa !important;
93
  border-radius: 6px;
94
 
95
- &:before {
96
- padding: 0 5px 0 15px;
97
- content: attr(data-content);
98
- margin-right: 5px;
99
- font-size: 15px;
100
- display: none;
101
  }
 
102
 
103
- &:hover:before {
104
- display: block;
105
- }
 
 
106
  }
87
  }
88
 
89
 
90
+ .is-icon-btn {
91
  background-color: #f1f1f1;
92
  color: #0073aa !important;
93
  border-radius: 6px;
94
 
95
+ &:hover {
96
+ background-color: #f7f7f7;
 
 
 
 
97
  }
98
+ }
99
 
100
+ .is-not-valid {
101
+ color: red !important;
102
+ }
103
+ .is-valid {
104
+ color: green !important;
105
  }
assets/src/scss/_import-modal.scss CHANGED
@@ -36,7 +36,7 @@ $base-index: 100000;
36
  border: none;
37
 
38
  h1 {
39
- font-size: 22px;
40
  font-weight: 700;
41
  }
42
  }
@@ -46,7 +46,7 @@ $base-index: 100000;
46
 
47
  h1 {
48
  margin-top: 0;
49
- font-size: 22px;
50
  font-weight: 700;
51
  color: #000;
52
  line-height: normal;
@@ -54,8 +54,8 @@ $base-index: 100000;
54
  }
55
 
56
  p.description {
57
- font-size: 15px;
58
- line-height: 34px;
59
  color: #333;
60
  }
61
  }
@@ -89,7 +89,7 @@ $base-index: 100000;
89
 
90
  li {
91
  margin-bottom: 10px;
92
- font-size: 15px;
93
 
94
  &:last-child {
95
  margin-bottom: 0;
@@ -103,7 +103,7 @@ $base-index: 100000;
103
  list-style: disc;
104
 
105
  li {
106
- font-size: 15px;
107
  margin-bottom: 10px;
108
  font-weight: 400;
109
 
@@ -131,7 +131,7 @@ $base-index: 100000;
131
  }
132
 
133
  .import-result {
134
- font-size: 15px;
135
  }
136
 
137
  .modal-body {
@@ -146,6 +146,20 @@ $base-index: 100000;
146
  top: 0;
147
  }
148
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  }
150
 
151
  .modal-footer {
@@ -299,7 +313,7 @@ $base-index: 100000;
299
  }
300
 
301
  button {
302
- font-size: 17px;
303
  font-weight: 700;
304
  line-height: 30px;
305
  }
@@ -309,13 +323,13 @@ $base-index: 100000;
309
  justify-content: flex-start;
310
  border-bottom: 1px solid transparentize($black, .9);
311
  margin: 0;
312
- padding: 10px 0;
313
  display: flex;
314
  align-items: center;
315
 
316
  span {
317
- font-size: 15px;
318
- margin-left: 20px;
319
  color: $black;
320
  }
321
 
@@ -349,6 +363,9 @@ $base-index: 100000;
349
  display: flex;
350
  align-items: center;
351
  width: 100%;
 
 
 
352
 
353
  .components-button.is-secondary {
354
  margin-left: auto;
@@ -361,6 +378,14 @@ $base-index: 100000;
361
  }
362
 
363
  .import {
364
- margin-left: 20px !important;
 
 
 
 
 
 
 
 
365
  }
366
  }
36
  border: none;
37
 
38
  h1 {
39
+ font-size: 18px;
40
  font-weight: 700;
41
  }
42
  }
46
 
47
  h1 {
48
  margin-top: 0;
49
+ font-size: 18px;
50
  font-weight: 700;
51
  color: #000;
52
  line-height: normal;
54
  }
55
 
56
  p.description {
57
+ font-size: 14px;
58
+ line-height: 24px;
59
  color: #333;
60
  }
61
  }
89
 
90
  li {
91
  margin-bottom: 10px;
92
+ font-size: 14px;
93
 
94
  &:last-child {
95
  margin-bottom: 0;
103
  list-style: disc;
104
 
105
  li {
106
+ font-size: 14px;
107
  margin-bottom: 10px;
108
  font-weight: 400;
109
 
131
  }
132
 
133
  .import-result {
134
+ font-size: 14px;
135
  }
136
 
137
  .modal-body {
146
  top: 0;
147
  }
148
  }
149
+
150
+ .tpc-subscribe-email-text {
151
+ font-size: 14px;
152
+ margin-top: 20px;
153
+ }
154
+ .tpc-email-input {
155
+ margin-bottom: 60px;
156
+ input {
157
+ padding: 12px;
158
+ font-size: 13px;
159
+ color: #2C3338;
160
+ border-radius: 2px;
161
+ }
162
+ }
163
  }
164
 
165
  .modal-footer {
313
  }
314
 
315
  button {
316
+ font-size: 16px;
317
  font-weight: 700;
318
  line-height: 30px;
319
  }
323
  justify-content: flex-start;
324
  border-bottom: 1px solid transparentize($black, .9);
325
  margin: 0;
326
+ padding: 8px 0;
327
  display: flex;
328
  align-items: center;
329
 
330
  span {
331
+ font-size: 14px;
332
+ margin-left: 10px;
333
  color: $black;
334
  }
335
 
363
  display: flex;
364
  align-items: center;
365
  width: 100%;
366
+ flex-direction: column-reverse;
367
+ gap: 10px;
368
+ padding: 12px 0;
369
 
370
  .components-button.is-secondary {
371
  margin-left: auto;
378
  }
379
 
380
  .import {
381
+ margin-left: 0 !important;
382
+ }
383
+ .import-full-w {
384
+ width: 100%;
385
+ justify-content: center;
386
+ padding: 12px 30px;
387
+ }
388
+ .is-grayed {
389
+ color: #757575;
390
  }
391
  }
assets/src/scss/_license.scss ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .ob .ob-head .header-container .header-nav {
2
+ .license {
3
+ position: absolute;
4
+ max-width: 350px;
5
+ top: 75px;
6
+ right: 0;
7
+
8
+ .components-button {
9
+ width: 100%;
10
+ margin: 0;
11
+ margin-bottom: 0px;
12
+ text-align: center;
13
+ justify-content: center;
14
+ color: #fff;
15
+ font-weight: normal;
16
+ font-size: 14px;
17
+ margin-bottom: 12px;
18
+ }
19
+
20
+ .dashicon.verified {
21
+ color: green;
22
+ }
23
+ }
24
+ }
assets/src/scss/_stepper.scss CHANGED
@@ -2,8 +2,8 @@
2
  li {
3
  display: flex;
4
  align-items: center;
5
- margin-bottom: 25px;
6
- font-size: 15px;
7
 
8
  .icon {
9
  margin-right: 20px;
@@ -11,6 +11,13 @@
11
  color: #fff;
12
  padding: 5px;
13
  border-radius: 100%;
 
 
 
 
 
 
 
14
 
15
  &.success {
16
  background-color: $success;
@@ -42,8 +49,8 @@
42
  }
43
 
44
  svg {
45
- width: 20px;
46
- height: 20px;
47
  display: block;
48
  }
49
  }
2
  li {
3
  display: flex;
4
  align-items: center;
5
+ margin-bottom: 20px;
6
+ font-size: 14px;
7
 
8
  .icon {
9
  margin-right: 20px;
11
  color: #fff;
12
  padding: 5px;
13
  border-radius: 100%;
14
+ line-height: 14px;
15
+
16
+ .dashicon {
17
+ font-size: 14px;
18
+ width: 14px;
19
+ height: 14px;
20
+ }
21
 
22
  &.success {
23
  background-color: $success;
49
  }
50
 
51
  svg {
52
+ width: 15px;
53
+ height: 15px;
54
  display: block;
55
  }
56
  }
assets/src/store/actions.js CHANGED
@@ -98,4 +98,10 @@ export default {
98
  payload: { query },
99
  };
100
  },
 
 
 
 
 
 
101
  };
98
  payload: { query },
99
  };
100
  },
101
+ setLicense( license ) {
102
+ return {
103
+ type: 'SET_LICENSE',
104
+ payload: { license },
105
+ };
106
+ },
107
  };
assets/src/store/reducer.js CHANGED
@@ -1,5 +1,5 @@
1
  /* global tiobDash */
2
- const { onboarding, themeAction } = tiobDash;
3
 
4
  const firstEditor =
5
  'undefined' !== typeof onboarding.sites &&
@@ -9,6 +9,13 @@ const firstEditor =
9
  const selectedEditor =
10
  localStorage.getItem( 'neve-onboarding-editor' ) || firstEditor;
11
 
 
 
 
 
 
 
 
12
  const initialState = {
13
  sites: onboarding.sites || {},
14
  editor: selectedEditor,
@@ -26,94 +33,101 @@ const initialState = {
26
  singleTemplateImport: null,
27
  templateModal: null,
28
  searchQuery: '',
 
29
  };
30
  export default ( state = initialState, action ) => {
31
  switch ( action.type ) {
32
- case 'REFRESH_SITES':
33
  const { sites } = action.payload;
34
- return {
35
- ...state,
36
  sites,
37
  };
38
- case 'SET_CURRENT_EDITOR':
39
  const { editor } = action.payload;
40
  localStorage.setItem( 'neve-onboarding-editor', editor );
41
- return {
42
- ...state,
43
  editor,
44
  };
45
- case 'SET_CURRENT_CATEGORY':
46
  const { category } = action.payload;
47
- return {
48
- ...state,
49
  category,
50
  };
51
- case 'SET_FOCUSED_SITE':
52
  const { siteData } = action.payload;
53
- return {
54
- ...state,
55
  currentSite: siteData,
56
  };
57
- case 'SET_PREVIEW_STATUS':
58
- const { previewStatus } = action.payload;
59
- return {
60
- ...state,
61
  previewStatus,
62
  };
63
- case 'SET_IMPORT_MODAL_STATUS':
64
  const { importModalStatus } = action.payload;
65
- return {
66
- ...state,
67
  importModalStatus,
68
  };
69
- case 'SET_INSTALL_MODAL_STATUS':
70
  const { installModalStatus } = action.payload;
71
- return {
72
- ...state,
73
  installModalStatus,
74
  };
75
- case 'SET_ONBOARDING':
76
  const { status } = action.payload;
77
- return {
78
- ...state,
79
  isOnboarding: status,
80
  };
81
- case 'SET_THEME_ACTIONS':
82
  const { themeActions } = action.payload;
83
- return {
84
- ...state,
85
  themeAction: themeActions,
86
  };
87
- case 'SET_CURRENT_TAB':
88
  const { currentTab } = action.payload;
89
- return {
90
  ...state,
91
  singleTemplateImport: null,
92
  currentTab,
93
  };
94
- case 'SET_FETCHING':
95
  const { fetching } = action.payload;
96
- return {
97
  ...state,
98
  fetching,
99
  };
100
- case 'SET_SINGLE_TEMPLATE_IMPORT':
101
  const { slug } = action.payload;
102
- return {
103
- ...state,
104
- singleTemplateImport: slug,
105
  };
106
- case 'SET_TEMPLATE_MODAL':
107
  const { data } = action.payload;
108
- return {
109
- ...state,
110
- templateModal: data,
111
  };
112
- case 'SET_SEARCH_QUERY':
113
  const { query } = action.payload;
114
- return {
115
- ...state,
116
- searchQuery: query,
 
 
 
 
 
 
117
  };
118
  }
119
  return state;
1
  /* global tiobDash */
2
+ const { onboarding, themeAction, licenseTIOB } = tiobDash;
3
 
4
  const firstEditor =
5
  'undefined' !== typeof onboarding.sites &&
9
  const selectedEditor =
10
  localStorage.getItem( 'neve-onboarding-editor' ) || firstEditor;
11
 
12
+ const initialLicense = licenseTIOB || {
13
+ key: 'free',
14
+ valid: 'invalid',
15
+ expiration: '',
16
+ tier: 0,
17
+ };
18
+
19
  const initialState = {
20
  sites: onboarding.sites || {},
21
  editor: selectedEditor,
33
  singleTemplateImport: null,
34
  templateModal: null,
35
  searchQuery: '',
36
+ license: initialLicense,
37
  };
38
  export default ( state = initialState, action ) => {
39
  switch ( action.type ) {
40
+ case 'REFRESH_SITES':
41
  const { sites } = action.payload;
42
+ return {
43
+ ...state,
44
  sites,
45
  };
46
+ case 'SET_CURRENT_EDITOR':
47
  const { editor } = action.payload;
48
  localStorage.setItem( 'neve-onboarding-editor', editor );
49
+ return {
50
+ ...state,
51
  editor,
52
  };
53
+ case 'SET_CURRENT_CATEGORY':
54
  const { category } = action.payload;
55
+ return {
56
+ ...state,
57
  category,
58
  };
59
+ case 'SET_FOCUSED_SITE':
60
  const { siteData } = action.payload;
61
+ return {
62
+ ...state,
63
  currentSite: siteData,
64
  };
65
+ case 'SET_PREVIEW_STATUS':
66
+ const { previewStatus } = action.payload;
67
+ return {
68
+ ...state,
69
  previewStatus,
70
  };
71
+ case 'SET_IMPORT_MODAL_STATUS':
72
  const { importModalStatus } = action.payload;
73
+ return {
74
+ ...state,
75
  importModalStatus,
76
  };
77
+ case 'SET_INSTALL_MODAL_STATUS':
78
  const { installModalStatus } = action.payload;
79
+ return {
80
+ ...state,
81
  installModalStatus,
82
  };
83
+ case 'SET_ONBOARDING':
84
  const { status } = action.payload;
85
+ return {
86
+ ...state,
87
  isOnboarding: status,
88
  };
89
+ case 'SET_THEME_ACTIONS':
90
  const { themeActions } = action.payload;
91
+ return {
92
+ ...state,
93
  themeAction: themeActions,
94
  };
95
+ case 'SET_CURRENT_TAB':
96
  const { currentTab } = action.payload;
97
+ return {
98
  ...state,
99
  singleTemplateImport: null,
100
  currentTab,
101
  };
102
+ case 'SET_FETCHING':
103
  const { fetching } = action.payload;
104
+ return {
105
  ...state,
106
  fetching,
107
  };
108
+ case 'SET_SINGLE_TEMPLATE_IMPORT':
109
  const { slug } = action.payload;
110
+ return {
111
+ ...state,
112
+ singleTemplateImport: slug,
113
  };
114
+ case 'SET_TEMPLATE_MODAL':
115
  const { data } = action.payload;
116
+ return {
117
+ ...state,
118
+ templateModal: data,
119
  };
120
+ case 'SET_SEARCH_QUERY':
121
  const { query } = action.payload;
122
+ return {
123
+ ...state,
124
+ searchQuery: query,
125
+ };
126
+ case 'SET_LICENSE':
127
+ const { license } = action.payload;
128
+ return {
129
+ ...state,
130
+ license,
131
  };
132
  }
133
  return state;
assets/src/store/selectors.js CHANGED
@@ -14,7 +14,7 @@ export default {
14
  getSingleImport: ( state ) => state.singleTemplateImport,
15
  getTemplateModal: ( state ) => state.templateModal,
16
  getSearchQuery: ( state ) => state.searchQuery,
17
- getUserStatus: () => {
18
  const acceptedTiers = [
19
  6,
20
  17,
@@ -34,9 +34,12 @@ export default {
34
  ];
35
 
36
  return (
37
- window.tiobDash.license &&
38
- window.tiobDash.license.tier &&
39
- acceptedTiers.includes( window.tiobDash.license.tier )
40
  );
41
  },
 
 
 
42
  };
14
  getSingleImport: ( state ) => state.singleTemplateImport,
15
  getTemplateModal: ( state ) => state.templateModal,
16
  getSearchQuery: ( state ) => state.searchQuery,
17
+ getUserStatus: ( state ) => {
18
  const acceptedTiers = [
19
  6,
20
  17,
34
  ];
35
 
36
  return (
37
+ state.license &&
38
+ state.license.tier &&
39
+ acceptedTiers.includes( state.license.tier )
40
  );
41
  },
42
+ getLicense: ( state ) => {
43
+ return state.license;
44
+ },
45
  };
assets/src/style.scss CHANGED
@@ -15,6 +15,7 @@
15
  @import "scss/demo-site-templates";
16
  @import "scss/notification";
17
  @import "scss/custom-tooltip";
 
18
 
19
  @import "scss/media-queries";
20
 
15
  @import "scss/demo-site-templates";
16
  @import "scss/notification";
17
  @import "scss/custom-tooltip";
18
+ @import "scss/license";
19
 
20
  @import "scss/media-queries";
21
 
assets/src/utils/rest.js CHANGED
@@ -33,3 +33,25 @@ const requestData = async (
33
  return simple ? response : response.json();
34
  } );
35
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  return simple ? response : response.json();
34
  } );
35
  };
36
+
37
+ export const ajaxAction = async (route, action = '', useNonce = '', data = {} ) => {
38
+ const formData = new FormData();
39
+ formData.append('nonce', useNonce);
40
+ formData.append('action', action);
41
+ if ( Object.keys( data ).length > 0 ) {
42
+ for ( const [key, value] of Object.entries( data ) ) {
43
+ formData.append( key, value );
44
+ }
45
+ }
46
+ const options = {
47
+ method: 'POST',
48
+ headers: {
49
+ Accept: 'application/json',
50
+ },
51
+ body: formData,
52
+ };
53
+
54
+ return await fetch(route, options).then(() => {
55
+ return true;
56
+ });
57
+ };
includes/Admin.php CHANGED
@@ -30,10 +30,18 @@ class Admin {
30
  */
31
  private $wl_config = null;
32
 
 
 
 
 
 
 
 
33
  /**
34
  * Initialize the Admin.
35
  */
36
  public function init() {
 
37
  add_filter( 'query_vars', array( $this, 'add_onboarding_query_var' ) );
38
  add_action( 'after_switch_theme', array( $this, 'get_previous_theme' ) );
39
  add_filter( 'neve_dashboard_page_data', array( $this, 'localize_sites_library' ) );
@@ -48,19 +56,83 @@ class Admin {
48
  $this->wl_config = json_decode( $branding, true );
49
  }
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
  }
@@ -94,9 +166,7 @@ class Admin {
94
  'render_starter_sites',
95
  )
96
  );
97
- if ( $this->is_agency_plan() ) {
98
- add_theme_page( __( 'My Library', 'templates-patterns-collection' ), $prefix . __( 'My Library', 'templates-patterns-collection' ), 'activate_plugins', 'themes.php?page=' . $this->page_slug . '#library' );
99
- }
100
  }
101
 
102
  /**
@@ -107,28 +177,18 @@ class Admin {
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,
113
- 3 => 2,
114
- 4 => 2,
115
- 5 => 3,
116
- 6 => 3,
117
- 7 => 1,
118
- 8 => 2,
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
  }
@@ -173,11 +233,26 @@ class Admin {
173
  */
174
  private function get_localization() {
175
  $theme_name = apply_filters( 'ti_wl_theme_name', 'Neve' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
 
177
  return array(
178
  'nonce' => wp_create_nonce( 'wp_rest' ),
179
  'assets' => TIOB_URL . '/assets/',
180
- 'upgradeURL' => apply_filters( 'neve_upgrade_link_from_child_theme_filter', tsdk_utmify( 'https://themeisle.com/themes/neve/upgrade/', 'freevspro' ) ),
 
181
  'strings' => array(
182
  /* translators: %s - Theme name */
183
  'starterSitesTabDescription' => __( '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.', 'templates-patterns-collection' ),
@@ -191,10 +266,17 @@ class Admin {
191
  'endpoint' => TPC_TEMPLATES_CLOUD_ENDPOINT,
192
  'params' => array(
193
  'site_url' => get_site_url(),
194
- 'license_id' => apply_filters( 'product_neve_license_key', 'free' ),
195
  ),
196
  'upsellNotifications' => $this->get_upsell_notifications(),
197
  'isValidLicense' => $this->has_valid_addons(),
 
 
 
 
 
 
 
198
  );
199
  }
200
 
@@ -297,22 +379,6 @@ class Admin {
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
 
30
  */
31
  private $wl_config = null;
32
 
33
+ /**
34
+ * Option and transient namespace for email skip.
35
+ *
36
+ * @var string
37
+ */
38
+ private $skip_email_subscribe_namespace = 'tpc_skip_email_subscribe';
39
+
40
  /**
41
  * Initialize the Admin.
42
  */
43
  public function init() {
44
+ License::get_instance();
45
  add_filter( 'query_vars', array( $this, 'add_onboarding_query_var' ) );
46
  add_action( 'after_switch_theme', array( $this, 'get_previous_theme' ) );
47
  add_filter( 'neve_dashboard_page_data', array( $this, 'localize_sites_library' ) );
56
  $this->wl_config = json_decode( $branding, true );
57
  }
58
  }
59
+
60
+ add_action( 'wp_ajax_skip_subscribe', array( $this, 'skip_subscribe' ) );
61
+ add_action( 'wp_ajax_nopriv_skip_subscribe', array( $this, 'skip_subscribe' ) );
62
+ }
63
+
64
+ /**
65
+ * Return the skip subscribe status.
66
+ * Used to determine if email form should be displayed.
67
+ *
68
+ * @return bool
69
+ */
70
+ private function get_skip_subscribe_status() {
71
+ $status = false;
72
+ if ( 'yes' === get_option( $this->skip_email_subscribe_namespace, 'no' ) ) {
73
+ $status = true;
74
+ }
75
+
76
+ if ( get_transient( $this->skip_email_subscribe_namespace ) ) {
77
+ $status = true;
78
+ }
79
+
80
+ return $status;
81
+ }
82
+
83
+ /**
84
+ * Utility method to ensure proper response for ajax call.
85
+ *
86
+ * @param array $response
87
+ */
88
+ private function ensure_ajax_response( $response ) {
89
+ echo json_encode( $response );
90
+ die();
91
+ }
92
+
93
+ /**
94
+ * Handles the `skip_subscribe` ajax action.
95
+ */
96
+ public function skip_subscribe() {
97
+ $response = array(
98
+ 'success' => false,
99
+ 'code' => 'ti__ob_not_allowed',
100
+ 'message' => 'Not allowed!',
101
+ );
102
+ if ( ! isset( $_REQUEST['nonce'] ) ) {
103
+ $this->ensure_ajax_response( $response );
104
+ return;
105
+ }
106
+
107
+ if ( ! wp_verify_nonce( $_REQUEST['nonce'], 'skip_subscribe_nonce' ) ) {
108
+ $this->ensure_ajax_response( $response );
109
+ return;
110
+ }
111
+
112
+ unset( $response['code'] );
113
+ unset( $response['message'] );
114
+ $response['success'] = true;
115
+ if ( isset( $_REQUEST['isTempSkip'] ) ) {
116
+ set_transient( $this->skip_email_subscribe_namespace, 'yes', 7 * DAY_IN_SECONDS );
117
+ $this->ensure_ajax_response( $response );
118
+ return;
119
+ }
120
+
121
+ update_option( $this->skip_email_subscribe_namespace, 'yes' );
122
+ $this->ensure_ajax_response( $response );
123
  }
124
 
125
  /**
126
+ * Hook into editor data to add Neve plan if available
127
+ * or return the proper tier if stand-alone license is valid.
128
  *
129
  * @param array $data tiTpc exported data.
130
  *
131
  * @return array
132
  */
133
  public function add_tpc_editor_data( $data ) {
134
+ $plan = $this->neve_license_plan();
135
+ $data['tier'] = License::get_license_tier( $plan );
 
136
 
137
  return $data;
138
  }
166
  'render_starter_sites',
167
  )
168
  );
169
+ add_theme_page( __( 'My Library', 'templates-patterns-collection' ), $prefix . __( 'My Library', 'templates-patterns-collection' ), 'activate_plugins', 'themes.php?page=' . $this->page_slug . '#library' );
 
 
170
  }
171
 
172
  /**
177
  private function neve_license_plan() {
178
  $category = apply_filters( 'product_neve_license_plan', - 1 );
179
 
180
+ return $category > -1 && isset( License::NEVE_CATEGORY_MAPPING[ $category ] ) ? License::NEVE_CATEGORY_MAPPING[ $category ] : -1;
 
 
 
 
 
 
 
 
 
 
 
 
181
  }
182
 
183
  /**
184
+ * Check if current subscription is agency
185
+ * or if we have a valid license for the standalone product.
186
  *
187
  * @return bool
188
  */
189
  private function is_agency_plan() {
190
  $plan = $this->neve_license_plan();
191
+ $plan = License::get_license_tier( $plan );
192
 
193
  return $plan === 3;
194
  }
233
  */
234
  private function get_localization() {
235
  $theme_name = apply_filters( 'ti_wl_theme_name', 'Neve' );
236
+ $user = wp_get_current_user();
237
+
238
+ $neve_upgrade_link = 'https://themeisle.com/themes/neve/upgrade/';
239
+ $upgrade_url = apply_filters(
240
+ 'neve_upgrade_link_from_child_theme_filter',
241
+ tsdk_utmify( $neve_upgrade_link, 'freevspro' )
242
+ );
243
+ $upgrade_url_tpc = tsdk_utmify( 'https://themeisle.com/plugins/templates-cloud', 'tcupgrade' );
244
+ if ( defined( 'NEVE_VERSION' ) ) {
245
+ $upgrade_url_tpc = apply_filters(
246
+ 'neve_upgrade_link_from_child_theme_filter',
247
+ tsdk_utmify( $neve_upgrade_link, 'templatecloud' )
248
+ );
249
+ }
250
 
251
  return array(
252
  'nonce' => wp_create_nonce( 'wp_rest' ),
253
  'assets' => TIOB_URL . '/assets/',
254
+ 'upgradeURL' => $upgrade_url,
255
+ 'upgradeURLTpc' => $upgrade_url_tpc,
256
  'strings' => array(
257
  /* translators: %s - Theme name */
258
  'starterSitesTabDescription' => __( '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.', 'templates-patterns-collection' ),
266
  'endpoint' => TPC_TEMPLATES_CLOUD_ENDPOINT,
267
  'params' => array(
268
  'site_url' => get_site_url(),
269
+ 'license_id' => License::get_license_data()->key,
270
  ),
271
  'upsellNotifications' => $this->get_upsell_notifications(),
272
  'isValidLicense' => $this->has_valid_addons(),
273
+ 'licenseTIOB' => License::get_license_data(),
274
+ 'emailSubscribe' => array(
275
+ 'ajaxURL' => esc_url( admin_url( 'admin-ajax.php' ) ),
276
+ 'nonce' => wp_create_nonce( 'skip_subscribe_nonce' ),
277
+ 'skipStatus' => $this->get_skip_subscribe_status() ? 'yes' : 'no',
278
+ 'email' => ( ! empty( $user ) ) ? $user->user_email : '',
279
+ ),
280
  );
281
  }
282
 
379
  );
380
  }
381
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
382
  return $array;
383
  }
384
 
includes/Editor.php CHANGED
@@ -63,7 +63,7 @@ class Editor {
63
  'endpoint' => TPC_TEMPLATES_CLOUD_ENDPOINT,
64
  'params' => array(
65
  'site_url' => get_site_url(),
66
- 'license_id' => apply_filters( 'product_neve_license_key', 'free' ),
67
  'type' => 'gutenberg',
68
  'meta' => Main::get_meta_fields( $post_id = get_the_ID(), $type = 'gutenberg' ),
69
  ),
63
  'endpoint' => TPC_TEMPLATES_CLOUD_ENDPOINT,
64
  'params' => array(
65
  'site_url' => get_site_url(),
66
+ 'license_id' => apply_filters( 'tiob_license_key', 'free' ),
67
  'type' => 'gutenberg',
68
  'meta' => Main::get_meta_fields( $post_id = get_the_ID(), $type = 'gutenberg' ),
69
  ),
includes/Elementor.php CHANGED
@@ -48,7 +48,7 @@ class Elementor {
48
  'endpoint' => TPC_TEMPLATES_CLOUD_ENDPOINT,
49
  'params' => array(
50
  'site_url' => get_site_url(),
51
- 'license_id' => apply_filters( 'product_neve_license_key', 'free' ),
52
  'type' => 'elementor',
53
  'meta' => Main::get_meta_fields( $post_id = get_the_ID(), $type = 'elementor' ),
54
  ),
48
  'endpoint' => TPC_TEMPLATES_CLOUD_ENDPOINT,
49
  'params' => array(
50
  'site_url' => get_site_url(),
51
+ 'license_id' => apply_filters( 'tiob_license_key', 'free' ),
52
  'type' => 'elementor',
53
  'meta' => Main::get_meta_fields( $post_id = get_the_ID(), $type = 'elementor' ),
54
  ),
includes/License.php ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * License Manager
4
+ *
5
+ * Author: Bogdan Preda <bogdan.preda@themeisle.com>
6
+ * Created on: 10-10-{2022}
7
+ *
8
+ * @package templates-patterns-collection
9
+ */
10
+ namespace TIOB;
11
+
12
+ /**
13
+ * Class License
14
+ */
15
+ final class License {
16
+ const API_URL = 'https://api.themeisle.com/templates-cloud/';
17
+ const LICENSE_DATA_OPTIONS_KEY = 'templates_patterns_collection_license_data';
18
+ const LICENSE_KEY_OPTION_KEY = 'templates_patterns_collection_license';
19
+ const LICENSE_TRANSIENT_KEY = 'templates_patterns_collection_license_check';
20
+
21
+ const NEVE_CATEGORY_MAPPING = array(
22
+ 1 => 1,
23
+ 2 => 1,
24
+ 3 => 2,
25
+ 4 => 2,
26
+ 5 => 3,
27
+ 6 => 3,
28
+ 7 => 1,
29
+ 8 => 2,
30
+ 9 => 3,
31
+ );
32
+
33
+ /**
34
+ * The main instance var.
35
+ *
36
+ * @var License|null
37
+ */
38
+ protected static $instance = null;
39
+
40
+ /**
41
+ * Constructor
42
+ *
43
+ * @return void
44
+ */
45
+ private function __construct() {
46
+ add_action( 'admin_init', array( $this, 'inherit_license_from_neve' ) );
47
+ add_filter(
48
+ 'tiob_license_key',
49
+ function () {
50
+ return get_option( self::LICENSE_KEY_OPTION_KEY );
51
+ }
52
+ );
53
+ add_filter(
54
+ 'pre_update_option',
55
+ function ( $value, $option, $old_value ) {
56
+ if ( $option === self::LICENSE_KEY_OPTION_KEY ) {
57
+ if ( $value !== $old_value ) {
58
+ delete_transient( self::LICENSE_TRANSIENT_KEY );
59
+ }
60
+ }
61
+ return $value;
62
+ },
63
+ 10,
64
+ 3
65
+ );
66
+
67
+ register_setting(
68
+ 'tpc_license_settings',
69
+ self::LICENSE_KEY_OPTION_KEY,
70
+ array(
71
+ 'type' => 'string',
72
+ 'show_in_rest' => true,
73
+ 'default' => '',
74
+ )
75
+ );
76
+ }
77
+
78
+ /**
79
+ * Get Instance
80
+ *
81
+ * @return $this
82
+ */
83
+ public static function get_instance() {
84
+ if ( is_null( self::$instance ) ) {
85
+ self::$instance = new self();
86
+ }
87
+
88
+ return self::$instance;
89
+ }
90
+
91
+ private function safe_get( $url, $args = array() ) {
92
+ return function_exists( 'vip_safe_wp_remote_get' )
93
+ ? vip_safe_wp_remote_get( $url )
94
+ : wp_remote_get( //phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get, Already used.
95
+ $url,
96
+ $args
97
+ );
98
+ }
99
+
100
+ /**
101
+ * Inherit license from Neve
102
+ */
103
+ public function inherit_license_from_neve() {
104
+ $should_inherit = ! get_option( 'tiob_inherited_autoactivate', false );
105
+
106
+ if ( $should_inherit && false === self::has_active_license() && 'valid' === apply_filters( 'product_neve_license_status', false ) ) {
107
+ $neve_license = apply_filters( 'product_neve_license_key', 'free' );
108
+ $this->check_license( $neve_license );
109
+ update_option( 'tiob_inherited_autoactivate', true );
110
+ return;
111
+ }
112
+
113
+ if ( ! get_transient( self::LICENSE_TRANSIENT_KEY ) ) {
114
+ $tiob_license = apply_filters( 'tiob_license_key', 'free' );
115
+ $this->check_license( $tiob_license );
116
+ }
117
+
118
+ }
119
+
120
+ private function set_license( $license, $license_data ) {
121
+ update_option( self::LICENSE_KEY_OPTION_KEY, $license );
122
+ update_option( self::LICENSE_DATA_OPTIONS_KEY, $license_data );
123
+ set_transient( self::LICENSE_TRANSIENT_KEY, true, 12 * HOUR_IN_SECONDS );
124
+ }
125
+
126
+ public function check_license( $license ) {
127
+ $license_url = sprintf( '%stemplates/?license_id=%s&site_url=%s&license_check=1', self::API_URL, $license, rawurlencode( home_url() ) );
128
+ $response = $this->safe_get( $license_url );
129
+
130
+ if ( is_wp_error( $response ) ) {
131
+ return false;
132
+ }
133
+
134
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
135
+ $code = wp_remote_retrieve_response_code( $response );
136
+
137
+ if ( $code !== 200 ) {
138
+ return false;
139
+ }
140
+
141
+ if ( ! empty( $license_data ) && ( isset( $license_data->code ) || isset( $license_data->message ) ) ) {
142
+ $this->set_license(
143
+ $license,
144
+ (object) array(
145
+ 'key' => 'free',
146
+ 'valid' => 'invalid',
147
+ 'expiration' => '',
148
+ 'tier' => 0,
149
+ )
150
+ );
151
+ return false;
152
+ }
153
+
154
+ $this->set_license( $license, $license_data );
155
+ return true;
156
+ }
157
+
158
+ /**
159
+ * Get active license.
160
+ *
161
+ * @return bool
162
+ */
163
+ public static function has_active_license(): bool {
164
+ $status = self::get_license_data();
165
+
166
+ if ( ! $status ) {
167
+ return false;
168
+ }
169
+
170
+ if ( ! isset( $status->license ) ) {
171
+ return false;
172
+ }
173
+
174
+ if ( 'not_active' === $status->license || 'invalid' === $status->license ) {
175
+ return false;
176
+ }
177
+
178
+ return true;
179
+ }
180
+
181
+ /**
182
+ * Get the license data.
183
+ *
184
+ * @return bool|\stdClass
185
+ */
186
+ public static function get_license_data() {
187
+ return get_option( self::LICENSE_DATA_OPTIONS_KEY );
188
+ }
189
+
190
+ /**
191
+ * Get the license tier.
192
+ *
193
+ * @param int $default_tier The default tier.
194
+ * @return int
195
+ */
196
+ public static function get_license_tier( $default_tier = 0 ) {
197
+ $license = self::get_license_data();
198
+ if ( isset( $license->tier ) && absint( $license->tier ) >= 0 ) {
199
+ $tier = $license->tier;
200
+ if ( $license->tier !== 3 ) {
201
+ $tier = isset( self::NEVE_CATEGORY_MAPPING[ $license->tier ] ) ? self::NEVE_CATEGORY_MAPPING[ $license->tier ] : $license->tier;
202
+ }
203
+ return (int) $tier;
204
+ }
205
+ return $default_tier;
206
+ }
207
+
208
+ /**
209
+ * Throw error on object clone
210
+ *
211
+ * @return void
212
+ */
213
+ public function __clone() {
214
+ // Cloning instances of the class is forbidden.
215
+ _doing_it_wrong( __FUNCTION__, '', '1.0.0' );
216
+ }
217
+
218
+ /**
219
+ * Disable un-serializing of the class
220
+ *
221
+ * @return void
222
+ */
223
+ public function __wakeup() {
224
+ // Un-serializing instances of the class is forbidden.
225
+ _doing_it_wrong( __FUNCTION__, '', '1.0.0' );
226
+ }
227
+ }
includes/Main.php CHANGED
@@ -19,7 +19,7 @@ class Main {
19
  *
20
  * @var string Version string.
21
  */
22
- const VERSION = '1.1.28';
23
  /**
24
  * Sites Library API URL.
25
  *
19
  *
20
  * @var string Version string.
21
  */
22
+ const VERSION = '1.1.29';
23
  /**
24
  * Sites Library API URL.
25
  *
includes/TI_Beaver.php CHANGED
@@ -138,7 +138,7 @@ class TI_Beaver extends FLBuilderModule {
138
  $url = add_query_arg(
139
  array(
140
  'site_url' => get_site_url(),
141
- 'license_id' => apply_filters( 'product_neve_license_key', 'free' ),
142
  'cache' => uniqid(),
143
  ),
144
  TPC_TEMPLATES_CLOUD_ENDPOINT . 'templates/' . $template_id . '/import'
@@ -183,7 +183,7 @@ class TI_Beaver extends FLBuilderModule {
183
  $url = add_query_arg(
184
  array(
185
  'site_url' => get_site_url(),
186
- 'license_id' => apply_filters( 'product_neve_license_key', 'free' ),
187
  'cache' => uniqid(),
188
  ),
189
  TPC_TEMPLATES_CLOUD_ENDPOINT . 'templates/' . esc_attr( $template_id )
@@ -228,7 +228,7 @@ class TI_Beaver extends FLBuilderModule {
228
  $url = add_query_arg(
229
  array(
230
  'site_url' => get_site_url(),
231
- 'license_id' => apply_filters( 'product_neve_license_key', 'free' ),
232
  'template_name' => esc_attr( $title ),
233
  'template_type' => 'beaver',
234
  'link' => $is_page ? get_permalink( $post_id ) : '',
@@ -287,7 +287,7 @@ class TI_Beaver extends FLBuilderModule {
287
  $url = add_query_arg(
288
  array(
289
  'site_url' => get_site_url(),
290
- 'license_id' => apply_filters( 'product_neve_license_key', 'free' ),
291
  'template_site_slug' => $slug,
292
  'template_thumbnail' => $screenshot,
293
  'premade' => $premade,
@@ -350,7 +350,7 @@ class TI_Beaver extends FLBuilderModule {
350
  add_action( 'wp_head', array( $this, 'inline_script' ), 9 );
351
  add_action( 'fl_builder_before_save_layout', array( $this, 'update_published_template' ), 10, 4 );
352
 
353
- $is_pro = apply_filters( 'product_neve_license_key', 'free' );
354
 
355
  if ( $is_pro === 'free' ) {
356
  return;
@@ -369,7 +369,7 @@ class TI_Beaver extends FLBuilderModule {
369
  'endpoint' => TPC_TEMPLATES_CLOUD_ENDPOINT,
370
  'params' => array(
371
  'site_url' => get_site_url(),
372
- 'license_id' => apply_filters( 'product_neve_license_key', 'free' ),
373
  'type' => 'beaver',
374
  ),
375
  'canPredefine' => apply_filters( 'ti_tpc_can_predefine', false ),
@@ -507,7 +507,7 @@ class TI_Beaver extends FLBuilderModule {
507
  $url = add_query_arg(
508
  array(
509
  'site_url' => get_site_url(),
510
- 'license_id' => apply_filters( 'product_neve_license_key', 'free' ),
511
  'template_name' => esc_attr( $title ),
512
  'template_type' => 'beaver',
513
  'link' => get_permalink( $post_id ),
138
  $url = add_query_arg(
139
  array(
140
  'site_url' => get_site_url(),
141
+ 'license_id' => apply_filters( 'tiob_license_key', 'free' ),
142
  'cache' => uniqid(),
143
  ),
144
  TPC_TEMPLATES_CLOUD_ENDPOINT . 'templates/' . $template_id . '/import'
183
  $url = add_query_arg(
184
  array(
185
  'site_url' => get_site_url(),
186
+ 'license_id' => apply_filters( 'tiob_license_key', 'free' ),
187
  'cache' => uniqid(),
188
  ),
189
  TPC_TEMPLATES_CLOUD_ENDPOINT . 'templates/' . esc_attr( $template_id )
228
  $url = add_query_arg(
229
  array(
230
  'site_url' => get_site_url(),
231
+ 'license_id' => apply_filters( 'tiob_license_key', 'free' ),
232
  'template_name' => esc_attr( $title ),
233
  'template_type' => 'beaver',
234
  'link' => $is_page ? get_permalink( $post_id ) : '',
287
  $url = add_query_arg(
288
  array(
289
  'site_url' => get_site_url(),
290
+ 'license_id' => apply_filters( 'tiob_license_key', 'free' ),
291
  'template_site_slug' => $slug,
292
  'template_thumbnail' => $screenshot,
293
  'premade' => $premade,
350
  add_action( 'wp_head', array( $this, 'inline_script' ), 9 );
351
  add_action( 'fl_builder_before_save_layout', array( $this, 'update_published_template' ), 10, 4 );
352
 
353
+ $is_pro = apply_filters( 'tiob_license_key', 'free' );
354
 
355
  if ( $is_pro === 'free' ) {
356
  return;
369
  'endpoint' => TPC_TEMPLATES_CLOUD_ENDPOINT,
370
  'params' => array(
371
  'site_url' => get_site_url(),
372
+ 'license_id' => apply_filters( 'tiob_license_key', 'free' ),
373
  'type' => 'beaver',
374
  ),
375
  'canPredefine' => apply_filters( 'ti_tpc_can_predefine', false ),
507
  $url = add_query_arg(
508
  array(
509
  'site_url' => get_site_url(),
510
+ 'license_id' => apply_filters( 'tiob_license_key', 'free' ),
511
  'template_name' => esc_attr( $title ),
512
  'template_type' => 'beaver',
513
  'link' => get_permalink( $post_id ),
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.28\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-11-10T10:45:23+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.7.1\n"
15
  "X-Domain: templates-patterns-collection\n"
@@ -30,200 +30,198 @@ msgstr ""
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:409
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:439
64
  #: includes/TI_Beaver.php:412
65
  #: assets/src/Components/StarterSiteCard.js:61
66
  msgid "Preview"
67
  msgstr ""
68
 
69
- #: includes/Admin.php:440
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:441
77
  msgid "Get the PRO version!"
78
  msgstr ""
79
 
80
- #: includes/Admin.php:442
81
  msgid "Importing"
82
  msgstr ""
83
 
84
- #: includes/Admin.php:443
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:444
92
  msgid "Loading"
93
  msgstr ""
94
 
95
- #: includes/Admin.php:445
96
- #: assets/src/Components/ImportModal.js:839
97
  #: assets/src/Components/Migration.js:198
98
  msgid "View Website"
99
  msgstr ""
100
 
101
- #: includes/Admin.php:446
102
- #: assets/src/Components/ImportModal.js:849
103
  msgid "Add your own content"
104
  msgstr ""
105
 
106
- #: includes/Admin.php:447
107
- #: assets/src/Components/ImportModal.js:830
108
  msgid "Back to Sites Library"
109
  msgstr ""
110
 
111
- #: includes/Admin.php:448
112
  msgid "Note"
113
  msgstr ""
114
 
115
- #: includes/Admin.php:449
116
  msgid "Advanced Options"
117
  msgstr ""
118
 
119
- #: includes/Admin.php:450
120
- #: assets/src/Components/ImportModal.js:349
121
  msgid "Plugins"
122
  msgstr ""
123
 
124
- #: includes/Admin.php:451
125
  msgid "General"
126
  msgstr ""
127
 
128
- #: includes/Admin.php:452
129
  msgid "Keep current layout"
130
  msgstr ""
131
 
132
- #: includes/Admin.php:453
133
  #: includes/Elementor.php:96
134
  #: includes/TI_Beaver.php:425
135
  msgid "Search"
136
  msgstr ""
137
 
138
- #: includes/Admin.php:454
139
- #: assets/src/Components/ImportModal.js:194
140
  msgid "Content"
141
  msgstr ""
142
 
143
- #: includes/Admin.php:455
144
- #: assets/src/Components/ImportModal.js:202
145
  msgid "Customizer"
146
  msgstr ""
147
 
148
- #: includes/Admin.php:456
149
- #: assets/src/Components/ImportModal.js:206
150
  msgid "Widgets"
151
  msgstr ""
152
 
153
- #: includes/Admin.php:457
154
- #: assets/src/Components/ImportModal.js:196
155
  msgid "We recommend you backup your website content before attempting a full site import."
156
  msgstr ""
157
 
158
- #: includes/Admin.php:458
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:459
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:460
167
  msgid "Here is our own collection of related images you can use for your site."
168
  msgstr ""
169
 
170
- #: includes/Admin.php:461
171
- #: assets/src/Components/ImportModal.js:778
172
  #: assets/src/Components/Migration.js:131
173
  msgid "Content was successfully imported. Enjoy your new site!"
174
  msgstr ""
175
 
176
- #: includes/Admin.php:462
177
  msgid "Available in the PRO version"
178
  msgstr ""
179
 
180
- #: includes/Admin.php:463
181
  msgid "Copy error code"
182
  msgstr ""
183
 
184
- #: includes/Admin.php:464
185
  msgid "Download error log"
186
  msgstr ""
187
 
188
- #: includes/Admin.php:465
189
  msgid "To import this demo you have to install the following plugins:"
190
  msgstr ""
191
 
192
  #. translators: 1 - 'here'.
193
- #: includes/Admin.php:468
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:469
198
  msgid "here"
199
  msgstr ""
200
 
201
  #. translators: 1 - 'get in touch'.
202
- #: includes/Admin.php:473
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:474
207
- #: includes/Admin.php:484
208
  msgid "get in touch"
209
  msgstr ""
210
 
211
  #. translators: 1 - 'troubleshooting guide'.
212
- #: includes/Admin.php:478
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:479
217
  msgid "troubleshooting guide"
218
  msgstr ""
219
 
220
  #. translators: 1 - 'get in touch'.
221
- #: includes/Admin.php:483
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:488
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 +282,7 @@ msgstr ""
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
 
@@ -305,7 +303,7 @@ 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,7 +395,7 @@ msgstr ""
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
 
@@ -464,46 +462,46 @@ msgstr ""
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,97 +513,117 @@ msgstr ""
515
  msgid "Builder Logo"
516
  msgstr ""
517
 
518
- #: assets/src/Components/ImportModal.js:93
519
- #: assets/src/Components/ImportModal.js:129
520
  msgid "Something went wrong while loading the site data. Please refresh the page and try again."
521
  msgstr ""
522
 
523
- #: assets/src/Components/ImportModal.js:151
524
  msgid "Import the entire site including customizer options, pages, content and plugins."
525
  msgstr ""
526
 
527
- #: assets/src/Components/ImportModal.js:165
528
  msgid "Neve"
529
  msgstr ""
530
 
531
- #: assets/src/Components/ImportModal.js:166
532
  msgid "In order to import the starter site, Neve theme has to be installed and activated."
533
  msgstr ""
534
 
535
- #: assets/src/Components/ImportModal.js:177
536
  msgid "Install required theme"
537
  msgstr ""
538
 
539
- #: assets/src/Components/ImportModal.js:208
540
  msgid "Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there."
541
  msgstr ""
542
 
543
- #: assets/src/Components/ImportModal.js:214
544
  msgid "Enable performance features for my site"
545
  msgstr ""
546
 
547
- #: assets/src/Components/ImportModal.js:257
548
  msgid "Cleanup previous import"
549
  msgstr ""
550
 
551
- #: assets/src/Components/ImportModal.js:261
552
  msgid "This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import"
553
  msgstr ""
554
 
555
- #: assets/src/Components/ImportModal.js:279
556
  msgid "Import settings"
557
  msgstr ""
558
 
559
- #: assets/src/Components/ImportModal.js:392
560
  msgid "Additional plugins are required for this Starter Site in order to work properly. "
561
  msgstr ""
562
 
563
- #: assets/src/Components/ImportModal.js:433
564
  #: assets/src/Components/InstallModal.js:52
565
  msgid "Could not install theme."
566
  msgstr ""
567
 
568
- #: assets/src/Components/ImportModal.js:454
569
  #: assets/src/Components/InstallModal.js:67
570
  msgid "Could not activate theme."
571
  msgstr ""
572
 
573
- #: assets/src/Components/ImportModal.js:637
574
  msgid "Something went wrong while cleaning the previous import."
575
  msgstr ""
576
 
577
- #: assets/src/Components/ImportModal.js:641
578
  #: assets/src/Components/Migration.js:47
579
  msgid "Something went wrong while installing the necessary plugins."
580
  msgstr ""
581
 
582
- #: assets/src/Components/ImportModal.js:645
583
  #: assets/src/Components/Migration.js:63
584
  msgid "Something went wrong while importing the website content."
585
  msgstr ""
586
 
587
- #: assets/src/Components/ImportModal.js:649
588
  msgid "Something went wrong while updating the customizer settings."
589
  msgstr ""
590
 
591
- #: assets/src/Components/ImportModal.js:653
592
  msgid "Something went wrong while importing the widgets."
593
  msgstr ""
594
 
595
- #: assets/src/Components/ImportModal.js:657
596
  msgid "Something went wrong while installing the performance addon."
597
  msgstr ""
598
 
599
- #. translators: name of starter site
 
 
 
600
  #: assets/src/Components/ImportModal.js:725
 
 
 
 
 
601
  msgid "Import %s as a complete site"
602
  msgstr ""
603
 
604
- #: assets/src/Components/ImportModal.js:798
 
 
 
 
 
 
 
 
 
 
 
 
605
  msgid "I want to import just the templates"
606
  msgstr ""
607
 
608
- #: assets/src/Components/ImportModal.js:816
609
  msgid "Import entire site"
610
  msgstr ""
611
 
@@ -671,9 +689,22 @@ msgid "Install and Activate"
671
  msgstr ""
672
 
673
  #: assets/src/Components/InstallModal.js:151
 
674
  msgid "Activate"
675
  msgstr ""
676
 
 
 
 
 
 
 
 
 
 
 
 
 
677
  #: assets/src/Components/Migration.js:82
678
  #: assets/src/Components/Migration.js:240
679
  msgid "Migrate"
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Templates Patterns Collection 1.1.29\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-11-18T16:01:39+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.7.1\n"
15
  "X-Domain: templates-patterns-collection\n"
30
  msgid "https://themeisle.com"
31
  msgstr ""
32
 
33
+ #: includes/Admin.php:160
34
+ #: includes/Admin.php:161
35
+ #: assets/src/Components/Header.js:18
36
  msgid "Starter Sites"
37
  msgstr ""
38
 
39
+ #: includes/Admin.php:169
40
  #: includes/Elementor.php:75
41
  #: includes/TI_Beaver.php:402
42
+ #: assets/src/Components/Header.js:20
43
  msgid "My Library"
44
  msgstr ""
45
 
46
  #. translators: %s - Theme name
47
+ #: includes/Admin.php:258
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:376
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:377
56
  msgid "Open %s"
57
  msgstr ""
58
 
59
+ #: includes/Admin.php:475
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:505
64
  #: includes/TI_Beaver.php:412
65
  #: assets/src/Components/StarterSiteCard.js:61
66
  msgid "Preview"
67
  msgstr ""
68
 
69
+ #: includes/Admin.php:506
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:507
77
  msgid "Get the PRO version!"
78
  msgstr ""
79
 
80
+ #: includes/Admin.php:508
81
  msgid "Importing"
82
  msgstr ""
83
 
84
+ #: includes/Admin.php:509
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:510
92
  msgid "Loading"
93
  msgstr ""
94
 
95
+ #: includes/Admin.php:511
96
+ #: assets/src/Components/ImportModal.js:730
97
  #: assets/src/Components/Migration.js:198
98
  msgid "View Website"
99
  msgstr ""
100
 
101
+ #: includes/Admin.php:512
102
+ #: assets/src/Components/ImportModal.js:734
103
  msgid "Add your own content"
104
  msgstr ""
105
 
106
+ #: includes/Admin.php:513
 
107
  msgid "Back to Sites Library"
108
  msgstr ""
109
 
110
+ #: includes/Admin.php:514
111
  msgid "Note"
112
  msgstr ""
113
 
114
+ #: includes/Admin.php:515
115
  msgid "Advanced Options"
116
  msgstr ""
117
 
118
+ #: includes/Admin.php:516
119
+ #: assets/src/Components/ImportModal.js:354
120
  msgid "Plugins"
121
  msgstr ""
122
 
123
+ #: includes/Admin.php:517
124
  msgid "General"
125
  msgstr ""
126
 
127
+ #: includes/Admin.php:518
128
  msgid "Keep current layout"
129
  msgstr ""
130
 
131
+ #: includes/Admin.php:519
132
  #: includes/Elementor.php:96
133
  #: includes/TI_Beaver.php:425
134
  msgid "Search"
135
  msgstr ""
136
 
137
+ #: includes/Admin.php:520
138
+ #: assets/src/Components/ImportModal.js:199
139
  msgid "Content"
140
  msgstr ""
141
 
142
+ #: includes/Admin.php:521
143
+ #: assets/src/Components/ImportModal.js:207
144
  msgid "Customizer"
145
  msgstr ""
146
 
147
+ #: includes/Admin.php:522
148
+ #: assets/src/Components/ImportModal.js:211
149
  msgid "Widgets"
150
  msgstr ""
151
 
152
+ #: includes/Admin.php:523
153
+ #: assets/src/Components/ImportModal.js:201
154
  msgid "We recommend you backup your website content before attempting a full site import."
155
  msgstr ""
156
 
157
+ #: includes/Admin.php:524
158
  msgid "Due to copyright issues, some of the demo images will not be imported and will be replaced by placeholder images."
159
  msgstr ""
160
 
161
+ #: includes/Admin.php:525
162
  msgid "Some of the demo images will not be imported and will be replaced by placeholder images."
163
  msgstr ""
164
 
165
+ #: includes/Admin.php:526
166
  msgid "Here is our own collection of related images you can use for your site."
167
  msgstr ""
168
 
169
+ #: includes/Admin.php:527
 
170
  #: assets/src/Components/Migration.js:131
171
  msgid "Content was successfully imported. Enjoy your new site!"
172
  msgstr ""
173
 
174
+ #: includes/Admin.php:528
175
  msgid "Available in the PRO version"
176
  msgstr ""
177
 
178
+ #: includes/Admin.php:529
179
  msgid "Copy error code"
180
  msgstr ""
181
 
182
+ #: includes/Admin.php:530
183
  msgid "Download error log"
184
  msgstr ""
185
 
186
+ #: includes/Admin.php:531
187
  msgid "To import this demo you have to install the following plugins:"
188
  msgstr ""
189
 
190
  #. translators: 1 - 'here'.
191
+ #: includes/Admin.php:534
192
  msgid "It seems that Rest API is not working properly on your website. Read about how you can fix it %1$s."
193
  msgstr ""
194
 
195
+ #: includes/Admin.php:535
196
  msgid "here"
197
  msgstr ""
198
 
199
  #. translators: 1 - 'get in touch'.
200
+ #: includes/Admin.php:539
201
  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."
202
  msgstr ""
203
 
204
+ #: includes/Admin.php:540
205
+ #: includes/Admin.php:550
206
  msgid "get in touch"
207
  msgstr ""
208
 
209
  #. translators: 1 - 'troubleshooting guide'.
210
+ #: includes/Admin.php:544
211
  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."
212
  msgstr ""
213
 
214
+ #: includes/Admin.php:545
215
  msgid "troubleshooting guide"
216
  msgstr ""
217
 
218
  #. translators: 1 - 'get in touch'.
219
+ #: includes/Admin.php:549
220
  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."
221
  msgstr ""
222
 
223
  #. translators: %s - 'WP_Filesystem'.
224
+ #: includes/Admin.php:554
225
  msgid "It seems that %s is not available. You can contact your site administrator or hosting provider to help you enable it."
226
  msgstr ""
227
 
282
 
283
  #: includes/Elementor.php:74
284
  #: includes/TI_Beaver.php:401
285
+ #: assets/src/Components/Header.js:19
286
  msgid "Page Templates"
287
  msgstr ""
288
 
303
 
304
  #: includes/Elementor.php:82
305
  #: includes/TI_Beaver.php:409
306
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:219
307
  msgid "Edit"
308
  msgstr ""
309
 
395
 
396
  #: includes/TI_Beaver.php:35
397
  #: includes/TI_Beaver.php:37
398
+ #: assets/src/Components/Header.js:144
399
  msgid "Templates Cloud"
400
  msgstr ""
401
 
462
  msgid "Premium"
463
  msgstr ""
464
 
465
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:178
466
  msgid "Import done!"
467
  msgstr ""
468
 
469
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:185
470
  msgid "Template was successfully imported!"
471
  msgstr ""
472
 
473
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:189
474
  msgid "Templates were successfully imported!"
475
  msgstr ""
476
 
477
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:210
478
  msgid "Visit"
479
  msgstr ""
480
 
481
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:246
482
  msgid "An error occurred!"
483
  msgstr ""
484
 
485
  #. translators: %s the name of the template
486
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:282
487
  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."
488
  msgstr ""
489
 
490
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:288
491
  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."
492
  msgstr ""
493
 
494
  #. translators: name of starter site
495
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:313
496
  msgid "Import the %s template"
497
  msgstr ""
498
 
499
  #. translators: name of template
500
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:318
501
  msgid "Import all templates from %s"
502
  msgstr ""
503
 
504
+ #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:338
505
  msgid "I want to import the entire site"
506
  msgstr ""
507
 
513
  msgid "Builder Logo"
514
  msgstr ""
515
 
516
+ #: assets/src/Components/ImportModal.js:98
517
+ #: assets/src/Components/ImportModal.js:134
518
  msgid "Something went wrong while loading the site data. Please refresh the page and try again."
519
  msgstr ""
520
 
521
+ #: assets/src/Components/ImportModal.js:156
522
  msgid "Import the entire site including customizer options, pages, content and plugins."
523
  msgstr ""
524
 
525
+ #: assets/src/Components/ImportModal.js:170
526
  msgid "Neve"
527
  msgstr ""
528
 
529
+ #: assets/src/Components/ImportModal.js:171
530
  msgid "In order to import the starter site, Neve theme has to be installed and activated."
531
  msgstr ""
532
 
533
+ #: assets/src/Components/ImportModal.js:182
534
  msgid "Install required theme"
535
  msgstr ""
536
 
537
+ #: assets/src/Components/ImportModal.js:213
538
  msgid "Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there."
539
  msgstr ""
540
 
541
+ #: assets/src/Components/ImportModal.js:219
542
  msgid "Enable performance features for my site"
543
  msgstr ""
544
 
545
+ #: assets/src/Components/ImportModal.js:262
546
  msgid "Cleanup previous import"
547
  msgstr ""
548
 
549
+ #: assets/src/Components/ImportModal.js:266
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:284
554
  msgid "Import settings"
555
  msgstr ""
556
 
557
+ #: assets/src/Components/ImportModal.js:397
558
  msgid "Additional plugins are required for this Starter Site in order to work properly. "
559
  msgstr ""
560
 
561
+ #: assets/src/Components/ImportModal.js:438
562
  #: assets/src/Components/InstallModal.js:52
563
  msgid "Could not install theme."
564
  msgstr ""
565
 
566
+ #: assets/src/Components/ImportModal.js:459
567
  #: assets/src/Components/InstallModal.js:67
568
  msgid "Could not activate theme."
569
  msgstr ""
570
 
571
+ #: assets/src/Components/ImportModal.js:642
572
  msgid "Something went wrong while cleaning the previous import."
573
  msgstr ""
574
 
575
+ #: assets/src/Components/ImportModal.js:646
576
  #: assets/src/Components/Migration.js:47
577
  msgid "Something went wrong while installing the necessary plugins."
578
  msgstr ""
579
 
580
+ #: assets/src/Components/ImportModal.js:650
581
  #: assets/src/Components/Migration.js:63
582
  msgid "Something went wrong while importing the website content."
583
  msgstr ""
584
 
585
+ #: assets/src/Components/ImportModal.js:654
586
  msgid "Something went wrong while updating the customizer settings."
587
  msgstr ""
588
 
589
+ #: assets/src/Components/ImportModal.js:658
590
  msgid "Something went wrong while importing the widgets."
591
  msgstr ""
592
 
593
+ #: assets/src/Components/ImportModal.js:662
594
  msgid "Something went wrong while installing the performance addon."
595
  msgstr ""
596
 
597
+ #: assets/src/Components/ImportModal.js:721
598
+ msgid "View Website & Subscribe"
599
+ msgstr ""
600
+
601
  #: assets/src/Components/ImportModal.js:725
602
+ msgid "Skip and add your own content"
603
+ msgstr ""
604
+
605
+ #. translators: name of starter site
606
+ #: assets/src/Components/ImportModal.js:796
607
  msgid "Import %s as a complete site"
608
  msgstr ""
609
 
610
+ #: assets/src/Components/ImportModal.js:803
611
+ msgid "Content was successfully imported"
612
+ msgstr ""
613
+
614
+ #: assets/src/Components/ImportModal.js:860
615
+ msgid "Stay up-to-date on news, tips and product updates"
616
+ msgstr ""
617
+
618
+ #: assets/src/Components/ImportModal.js:863
619
+ msgid "Enter your email"
620
+ msgstr ""
621
+
622
+ #: assets/src/Components/ImportModal.js:887
623
  msgid "I want to import just the templates"
624
  msgstr ""
625
 
626
+ #: assets/src/Components/ImportModal.js:905
627
  msgid "Import entire site"
628
  msgstr ""
629
 
689
  msgstr ""
690
 
691
  #: assets/src/Components/InstallModal.js:151
692
+ #: assets/src/Components/License.js:126
693
  msgid "Activate"
694
  msgstr ""
695
 
696
+ #: assets/src/Components/License.js:72
697
+ msgid "Can not activate this license!"
698
+ msgstr ""
699
+
700
+ #: assets/src/Components/License.js:125
701
+ msgid "Deactivate"
702
+ msgstr ""
703
+
704
+ #: assets/src/Components/License.js:150
705
+ msgid "License"
706
+ msgstr ""
707
+
708
  #: assets/src/Components/Migration.js:82
709
  #: assets/src/Components/Migration.js:240
710
  msgid "Migrate"
readme.txt CHANGED
@@ -39,6 +39,14 @@ Yes, you can. You can either chose to import one template or the entire starter
39
 
40
  == Changelog ==
41
 
 
 
 
 
 
 
 
 
42
  ##### [Version 1.1.28](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.27...v1.1.28) (2022-11-10)
43
 
44
  - Fix dismiss Neve notice after Starter Site import
39
 
40
  == Changelog ==
41
 
42
+ ##### [Version 1.1.29](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.28...v1.1.29) (2022-11-18)
43
+
44
+ - Feat: Allow Independent license
45
+ - Feat: Add subscription form after importing
46
+
47
+
48
+
49
+
50
  ##### [Version 1.1.28](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.27...v1.1.28) (2022-11-10)
51
 
52
  - Fix dismiss Neve notice after Starter Site import
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.28
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
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.29
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
vendor/autoload.php CHANGED
@@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
22
 
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
 
25
- return ComposerAutoloaderInita5211c3c96f5ea517f3dc157640be1cd::getLoader();
22
 
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
 
25
+ return ComposerAutoloaderInit8e636c3c1fc9852c223c8fa5dcaaa558::getLoader();
vendor/composer/autoload_classmap.php CHANGED
@@ -28,6 +28,7 @@ return array(
28
  'TIOB\\Importers\\WP\\WXR_Parser_XML' => $baseDir . '/includes/Importers/WP/WXR_Parser_XML.php',
29
  'TIOB\\Importers\\Widgets_Importer' => $baseDir . '/includes/Importers/Widgets_Importer.php',
30
  'TIOB\\Importers\\Zelle_Importer' => $baseDir . '/includes/Importers/Zelle_Importer.php',
 
31
  'TIOB\\Logger' => $baseDir . '/includes/Logger.php',
32
  'TIOB\\Main' => $baseDir . '/includes/Main.php',
33
  'TIOB\\Rest_Server' => $baseDir . '/includes/Rest_Server.php',
28
  'TIOB\\Importers\\WP\\WXR_Parser_XML' => $baseDir . '/includes/Importers/WP/WXR_Parser_XML.php',
29
  'TIOB\\Importers\\Widgets_Importer' => $baseDir . '/includes/Importers/Widgets_Importer.php',
30
  'TIOB\\Importers\\Zelle_Importer' => $baseDir . '/includes/Importers/Zelle_Importer.php',
31
+ 'TIOB\\License' => $baseDir . '/includes/License.php',
32
  'TIOB\\Logger' => $baseDir . '/includes/Logger.php',
33
  'TIOB\\Main' => $baseDir . '/includes/Main.php',
34
  'TIOB\\Rest_Server' => $baseDir . '/includes/Rest_Server.php',
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInita5211c3c96f5ea517f3dc157640be1cd
6
  {
7
  private static $loader;
8
 
@@ -22,18 +22,18 @@ class ComposerAutoloaderInita5211c3c96f5ea517f3dc157640be1cd
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInita5211c3c96f5ea517f3dc157640be1cd', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInita5211c3c96f5ea517f3dc157640be1cd', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
- $includeFiles = \Composer\Autoload\ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
- composerRequirea5211c3c96f5ea517f3dc157640be1cd($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
@@ -45,7 +45,7 @@ class ComposerAutoloaderInita5211c3c96f5ea517f3dc157640be1cd
45
  * @param string $file
46
  * @return void
47
  */
48
- function composerRequirea5211c3c96f5ea517f3dc157640be1cd($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 ComposerAutoloaderInit8e636c3c1fc9852c223c8fa5dcaaa558
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit8e636c3c1fc9852c223c8fa5dcaaa558', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit8e636c3c1fc9852c223c8fa5dcaaa558', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit8e636c3c1fc9852c223c8fa5dcaaa558::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
+ $includeFiles = \Composer\Autoload\ComposerStaticInit8e636c3c1fc9852c223c8fa5dcaaa558::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
+ composerRequire8e636c3c1fc9852c223c8fa5dcaaa558($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
45
  * @param string $file
46
  * @return void
47
  */
48
+ function composerRequire8e636c3c1fc9852c223c8fa5dcaaa558($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 ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -47,6 +47,7 @@ class ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd
47
  'TIOB\\Importers\\WP\\WXR_Parser_XML' => __DIR__ . '/../..' . '/includes/Importers/WP/WXR_Parser_XML.php',
48
  'TIOB\\Importers\\Widgets_Importer' => __DIR__ . '/../..' . '/includes/Importers/Widgets_Importer.php',
49
  'TIOB\\Importers\\Zelle_Importer' => __DIR__ . '/../..' . '/includes/Importers/Zelle_Importer.php',
 
50
  'TIOB\\Logger' => __DIR__ . '/../..' . '/includes/Logger.php',
51
  'TIOB\\Main' => __DIR__ . '/../..' . '/includes/Main.php',
52
  'TIOB\\Rest_Server' => __DIR__ . '/../..' . '/includes/Rest_Server.php',
@@ -58,9 +59,9 @@ class ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd
58
  public static function getInitializer(ClassLoader $loader)
59
  {
60
  return \Closure::bind(function () use ($loader) {
61
- $loader->prefixLengthsPsr4 = ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd::$prefixLengthsPsr4;
62
- $loader->prefixDirsPsr4 = ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd::$prefixDirsPsr4;
63
- $loader->classMap = ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit8e636c3c1fc9852c223c8fa5dcaaa558
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
47
  'TIOB\\Importers\\WP\\WXR_Parser_XML' => __DIR__ . '/../..' . '/includes/Importers/WP/WXR_Parser_XML.php',
48
  'TIOB\\Importers\\Widgets_Importer' => __DIR__ . '/../..' . '/includes/Importers/Widgets_Importer.php',
49
  'TIOB\\Importers\\Zelle_Importer' => __DIR__ . '/../..' . '/includes/Importers/Zelle_Importer.php',
50
+ 'TIOB\\License' => __DIR__ . '/../..' . '/includes/License.php',
51
  'TIOB\\Logger' => __DIR__ . '/../..' . '/includes/Logger.php',
52
  'TIOB\\Main' => __DIR__ . '/../..' . '/includes/Main.php',
53
  'TIOB\\Rest_Server' => __DIR__ . '/../..' . '/includes/Rest_Server.php',
59
  public static function getInitializer(ClassLoader $loader)
60
  {
61
  return \Closure::bind(function () use ($loader) {
62
+ $loader->prefixLengthsPsr4 = ComposerStaticInit8e636c3c1fc9852c223c8fa5dcaaa558::$prefixLengthsPsr4;
63
+ $loader->prefixDirsPsr4 = ComposerStaticInit8e636c3c1fc9852c223c8fa5dcaaa558::$prefixDirsPsr4;
64
+ $loader->classMap = ComposerStaticInit8e636c3c1fc9852c223c8fa5dcaaa558::$classMap;
65
 
66
  }, null, ClassLoader::class);
67
  }
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.28',
5
- 'version' => '1.1.28.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.28',
15
- 'version' => '1.1.28.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.29',
5
+ 'version' => '1.1.29.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.29',
15
+ 'version' => '1.1.29.0',
16
  'reference' => NULL,
17
  'type' => 'library',
18
  'install_path' => __DIR__ . '/../../',