Cloud Templates & Patterns collection - Version 1.1.21

Version Description

Download this release

Release Info

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

Code changes from version 1.1.20 to 1.1.21

CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  ##### [Version 1.1.20](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.19...v1.1.20) (2021-12-23)
2
 
3
  - Improve upsells to better inform the possibilities from pro
1
+ ##### [Version 1.1.21](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.20...v1.1.21) (2022-02-21)
2
+
3
+ - Remove upsell from Gutenberg tab
4
+ - Improve no template screen
5
+
6
  ##### [Version 1.1.20](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.19...v1.1.20) (2021-12-23)
7
 
8
  - Improve upsells to better inform the possibilities from pro
README.md CHANGED
@@ -2,7 +2,7 @@
2
  **Contributors:** [themeisle](https://profiles.wordpress.org/themeisle)
3
  **Tags:** neve, templates, patterns, blocks, starter, sites, demo, content, import
4
  **Requires at least:** 4.7
5
- **Tested up to:** 5.8
6
  **Requires PHP:** 5.6
7
  **Stable tag:** trunk
8
  **License:** GPLv3
@@ -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.20](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.19...v1.1.20) (2021-12-23)
43
 
44
  - Improve upsells to better inform the possibilities from pro
2
  **Contributors:** [themeisle](https://profiles.wordpress.org/themeisle)
3
  **Tags:** neve, templates, patterns, blocks, starter, sites, demo, content, import
4
  **Requires at least:** 4.7
5
+ **Tested up to:** 5.9
6
  **Requires PHP:** 5.6
7
  **Stable tag:** trunk
8
  **License:** GPLv3
39
 
40
  ## Changelog ##
41
 
42
+ ##### [Version 1.1.21](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.20...v1.1.21) (2022-02-21)
43
+
44
+ - Remove upsell from Gutenberg tab
45
+ - Improve no template screen
46
+
47
+
48
+
49
+
50
  ##### [Version 1.1.20](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.19...v1.1.20) (2021-12-23)
51
 
52
  - Improve upsells to better inform the possibilities from pro
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' => '7311780bb0e4bb32d8b6cd7e8f062a94');
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' => 'a21deeeb241b7f48021bbcf29de22899');
assets/build/app.js CHANGED
@@ -1,10 +1,10 @@
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],l=t[1],s=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 l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,s||[]),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 l=n[i];0!==a[l]&&(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||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var u=l;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.regeneratorRuntime},function(e,t){e.exports=window.wp.compose},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),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).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,l,"next",e)}function l(e){n(o,a,c,i,l,"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 l(e,t){return t.decode?a(e):e}function s(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=s(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&&l(n,e).includes(e.arrayFormatSeparator);n=c?l(n,e):n;const o=a||c?n.split(e.arrayFormatSeparator).map(t=>l(t,e)):null===n?n:l(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:l(o,t),n(l(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:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=s(e.url).split("?")[0]||"",a=t.extract(e.url),c=t.parse(a,{sort:!1}),o=Object.assign(c,e.query);let l=t.stringify(o,n);l&&(l="?"+l);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}${l}${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),l=n.n(i),s=n(3),u=n.n(s);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,l=i&&o.top&&o.left&&o.bottom&&o.right;if(i&&n.props.partialVisibility){var s=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(s=o[n.props.partialVisibility]),l=n.props.minTopValue?s&&e.top<=t.bottom-n.props.minTopValue:s}"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),l=u()(c,e,t));var p=n.state;return n.state.isVisible!==l&&(p={isVisible:l,visibilityRect:o},n.setState(p),n.props.onChange&&n.props.onChange(l)),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:l.a.func,active:l.a.bool,partialVisibility:l.a.oneOfType([l.a.bool,l.a.oneOf(["top","right","bottom","left"])]),delayedCall:l.a.bool,offset:l.a.oneOfType([l.a.shape({top:l.a.number,left:l.a.number,bottom:l.a.number,right:l.a.number}),l.a.shape({direction:l.a.oneOf(["top","right","bottom","left"]),value:l.a.number})]),scrollCheck:l.a.bool,scrollDelay:l.a.number,scrollThrottle:l.a.number,resizeCheck:l.a.bool,resizeDelay:l.a.number,resizeThrottle:l.a.number,intervalCheck:l.a.bool,intervalDelay:l.a.number,containment:"undefined"!=typeof window?l.a.instanceOf(window.Element):l.a.any,children:l.a.oneOfType([l.a.element,l.a.func]),minTopValue:l.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 l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(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=l(e);if(t){var a=l(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s(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,l=o.length;i<l;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 M=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,l=o.value;if(g(l))if(b(l)&&!O(l)){var s={v:l,i:i,n:n.norm.get(l)};e.push(s)}else d(l)&&l.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 x(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 M({getFn:a});return c.setKeys(e.map(w)),c.setSources(t),c.create(),c}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,a=t.currentLocation,c=void 0===a?0:a,o=t.expectedLocation,i=void 0===o?0:o,l=t.distance,s=void 0===l?C.distance:l,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 s?p+d/s:d?1:p}function D(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.minMatchCharLength,n=[],r=-1,a=-1,c=0,o=e.length;c<o;c+=1){var i=e[c];i&&-1===r?r=c:i||-1===r||((a=c-1)-r+1>=t&&n.push([r,a]),r=-1)}return e[c-1]&&c-r>=t&&n.push([r,c-1]),n}function I(e){for(var t={},n=0,r=e.length;n<r;n+=1){var a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}var L=function(){function e(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a.location,o=void 0===c?C.location:c,i=a.threshold,l=void 0===i?C.threshold:i,s=a.distance,u=void 0===s?C.distance:s,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:l,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,l=c.threshold,s=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,l=r.threshold,s=void 0===l?C.threshold:l,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)),_=s,w=E,S=d>1||f,k=S?Array(j):[];(O=e.indexOf(t,w))>-1;){var N=P(t,{currentLocation:O,expectedLocation:E,distance:i,ignoreLocation:g});if(_=Math.min(N,_),w=O+v,S)for(var T=0;T<v;)k[O+T]=1,T+=1}w=-1;for(var M=[],x=1,I=v+j,L=1<<v-1,A=0;A<v;A+=1){for(var B=0,R=I;B<R;){var F=P(t,{errors:A,currentLocation:E+R,expectedLocation:E,distance:i,ignoreLocation:g});F<=_?B=R:I=R,R=Math.floor((I-B)/2+B)}I=R;var z=Math.max(1,E-R+1),U=m?j:Math.min(E+R,j)+v,V=Array(U+2);V[U+1]=(1<<A)-1;for(var $=U;$>=z;$-=1){var H=$-1,G=n[e.charAt(H)];if(S&&(k[H]=+!!G),V[$]=(V[$+1]<<1|1)&G,A&&(V[$]|=(M[$+1]|M[$])<<1|1|M[$+1]),V[$]&L&&(x=P(t,{errors:A,currentLocation:H,expectedLocation:E,distance:i,ignoreLocation:g}))<=_){if(_=x,(w=H)<=E)break;z=Math.max(1,2*E-w)}}var W=P(t,{errors:A+1,currentLocation:E,expectedLocation:E,distance:i,ignoreLocation:g});if(W>_)break;M=V}var q={isMatch:w>=0,score:Math.max(.001,x)};if(S){var Q=D(k,d);Q.length?f&&(q.indices=Q):q.isMatch=!1}return q}(e,n,a,{location:o+c,distance:i,threshold:l,findAllMatches:s,minMatchCharLength:u,includeMatches:r,ignoreLocation:p}),g=h.isMatch,O=h.score,v=h.indices;g&&(f=!0),b+=O,g&&v&&(d=[].concat(m(d),m(v)))}));var h={isMatch:f,score:f?b/this.chunks.length:1};return f&&r&&(h.indices=d),h}}]),e}(),A=function(){function e(n){t(this,e),this.pattern=n}return r(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return B(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return B(e,this.singleRegex)}}]),e}();function B(e,t){var n=e.match(t);return n?n[1]:null}var R=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),a}(A),F=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),a}(A),z=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),a}(A),U=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),a}(A),V=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),a}(A),$=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),a}(A),H=function(e){i(a,e);var n=u(a);function a(e){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=c.location,i=void 0===o?C.location:o,l=c.threshold,s=void 0===l?C.threshold:l,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:s,distance:m,includeMatches:d,findAllMatches:f,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:y}),r}return r(a,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),a}(A),G=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){for(var t,n=0,r=[],a=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+a,r.push([t,n-1]);var c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),a}(A),W=[R,G,z,U,$,V,F,H],q=W.length,Q=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Q).filter((function(e){return e&&!!e.trim()})),r=[],a=0,c=n.length;a<c;a+=1){for(var o=n[a],i=!1,l=-1;!i&&++l<q;){var s=W[l],u=s.isMultiMatch(o);u&&(r.push(new s(u,t)),i=!0)}if(!i)for(l=-1;++l<q;){var m=W[l],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,l=r.minMatchCharLength,s=void 0===l?C.minMatchCharLength:l,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:s,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,l=t.length;i<l;i+=1){var s=t[i];c.length=0,a=0;for(var u=0,p=s.length;u<p;u+=1){var d=s[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 le(e,t){t.score=e.score}function se(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(le),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 M))throw new Error("Incorrect 'index' type");this._myIndex=t||x(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,l=a.sortFn,s=a.ignoreFieldNorm,u=b(e)?b(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return oe(u,{ignoreFieldNorm:s}),i&&u.sort(l),f(r)&&r>-1&&(u=u.slice(0,r)),se(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,l=o.score,s=o.indices;i&&r.push({item:n,idx:a,matches:[{score:l,value:n,norm:c,indices:s}]})}})),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 l={keyId:k(o),pattern:i};return a&&(l.searcher=X(i,t)),l}var s={children:[],operator:r[0]};return r.forEach((function(t){var r=n[t];d(r)&&r.forEach((function(t){s.children.push(e(t))}))})),s};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 l=[],s=0,u=n.children.length;s<u;s+=1){var p=e(n.children[s],r,a);if(!p.length)return[];l.push.apply(l,m(p))}return l;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),l=i.isMatch,s=i.score,u=i.indices;l&&a.push({score:s,key:t,value:n,idx:c,norm:o,indices:u})}}));else{var c=n.v,o=n.n,i=r.searchIn(c),l=i.isMatch,s=i.score,u=i.indices;l&&a.push({score:s,key:t,value:c,norm:o,indices:u})}return a}}]),e}();return ue.version="6.4.6",ue.createIndex=x,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 M({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 l=c[i];e=e.replace(new RegExp(l,"g"),t[l])}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 l=tiobDash,s=l.onboarding,u=l.themeAction,m=void 0!==s.sites&&void 0!==s.sites.sites?Object.keys(s.sites.sites)[0]:"gutenberg",p=localStorage.getItem("neve-onboarding-editor")||m,d={sites:s.sites||{},editor:p,category:"all",previewStatus:!1,importModalStatus:!1,installModalStatus:!1,currentSite:null,importing:!1,isOnboarding:s.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=n(4),h=n(6),g=n.n(h),O=n(8),v=n(3),j=n.n(v),y=n(2),E=n(1),_=n(7),w=n.n(_),S=n(10),k=n.n(S),C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return T(e,n,t)},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return T(e,t,{},"GET",n)},T=function(){var e=k()(w.a.mark((function e(t){var n,r,a,c,o,i=arguments;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],r=i.length>2&&void 0!==i[2]?i[2]:{},a=i.length>3&&void 0!==i[3]?i[3]:"POST",c=!(i.length>4&&void 0!==i[4])||i[4],o={method:a,headers:{Accept:"application/json","Content-Type":"application/json"}},c&&(o.headers["x-wp-nonce"]=tiobDash.nonce),"POST"===a&&(o.body=JSON.stringify(r)),e.next=9,fetch(t,o).then((function(e){return n?e:e.json()}));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P,D=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getSingleImport;return{themeData:(0,t.getThemeAction)()||!1,singleImport:n()}})),Object(f.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,l=a.action,s=a.slug,u=a.nonce,m=tiobDash,p=m.themesURL,d=m.brandedTheme,b=Object(r.useState)(!1),f=j()(b,2),h=f[0],g=f[1],O=Object(r.useState)(null),v=j()(O,2),_=v[0],w=v[1],S=function(){n(!1)},k=function(e){g(!1),w(Object(E.sprintf)(// translators: %s: Error message.
2
- Object(E.__)("An error has ocurred: %s","templates-patterns-collection"),e))},C=function(){g("activating");var e="".concat(p,"?action=activate&stylesheet=").concat(s,"&_wpnonce=").concat(u);N(e,!0).then((function(e){return 200!==e.status?(k(Object(E.__)("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)(y.Modal,{className:"ob-import-modal install-modal",title:Object(E.__)("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(E.__)("Logo","templates-patterns-collection")}),_&&Object(r.createElement)("div",{className:"well error",style:{margin:"20px 0"}},_),Object(r.createElement)("p",{style:{lineHeight:1.6,fontSize:"15px"}},Object(E.__)("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"}},!_&&Object(r.createElement)(y.Button,{dismiss:_,isPrimary:!0,disabled:h,className:h&&"is-loading",icon:h&&"update",onClick:"install"===l?function(){g("installing"),wp.updates.installTheme({slug:"neve",success:function(){c(x(x({},a),{},{action:"activate"})),C()},error:function(e){c(x(x({},a),{},{action:"activate"})),k(e.errorMessage||Object(E.__)("Could not install theme.","templates-patterns-collection"))}})}:C},h&&("installing"===h?Object(E.__)("Installing"):Object(E.__)("Activating")),!h&&("install"===l?Object(E.__)("Install and Activate","templates-patterns-collection"):Object(E.__)("Activate","templates-patterns-collection"))),Object(r.createElement)(y.Button,{style:{marginLeft:30},isSecondary:!0,disabled:h,onClick:S},Object(E.__)("Close","templates-patterns-collection")))))})),I=tiobDash.onboarding,L=function(e){return C(I.root+"/install_plugins",e)},A=function(){var e=k()(w.a.mark((function e(t){var n;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},t.forEach((function(e){"elementor"===e.template_type?n.elementor=!0:"beaver"===e.template_type&&(n["beaver-builder-lite-version"]=!0)})),!(Object.keys(n).length>0)){e.next=11;break}return e.prev=3,e.next=6,L(n);case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",error);case 11:return e.abrupt("return",C(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(e){var t=e.data,n=e.externalInstalled,a=t.external_plugins||null,c=g()(["well"]);return Object(r.createElement)("div",{className:c},a&&!n&&Object(r.createElement)("h3",{style:{marginTop:15}},Object(r.createElement)(y.Dashicon,{icon:"info"}),Object(r.createElement)("span",null,Object(E.__)("To import this demo you have to install the following plugins","templates-patterns-collection"))),Object(r.createElement)("ul",null,a&&!n?a.map((function(e,t){return Object(r.createElement)("li",{key:t},Object(r.createElement)(y.Button,{isLink:!0,href:e.author_url},e.name))})):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("li",null,Object(E.__)("We recommend you backup your website content before attempting a full site import.","templates-patterns-collection")),Object(r.createElement)("li",null,Object(E.__)("Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there.","templates-patterns-collection")),Object(r.createElement)("li",null,Object(E.__)("Some of the demo images will not be imported and will be replaced by placeholder images.","templates-patterns-collection")))))},R=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)(y.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(E.__)("Error code","templates-patterns-collection"),":"," ",Object(r.createElement)("code",null,n)),Object(r.createElement)("li",null,Object(E.__)("Error log","templates-patterns-collection"),":"," ",Object(r.createElement)(y.Button,{isLink:!0,href:tiobDash.onboarding.logUrl},tiobDash.onboarding.logUrl,Object(r.createElement)(y.Dashicon,{icon:"external"})))))},F=function(e){var t=e.data,n=function(e){return console.log(e)},a=Object(r.useState)(!1),c=j()(a,2),o=c[0],i=c[1],l=Object(r.useState)(!1),s=j()(l,2),u=s[0],m=s[1],p=Object(r.useState)(!1),d=j()(p,2),b=d[0],f=d[1],h=Object(r.useState)(null),g=j()(h,2),O=g[0],v=g[1],_=Object(r.useState)(null),w=j()(_,2),S=w[0],k=w[1];if(o)return null;var N=function(){"done"===b&&i(!0),m(!1),v(null),f(!1)};return Object(r.createElement)("div",{className:"ob-migration"},u&&Object(r.createElement)(y.Modal,{className:"ob-import-modal migration",title:Object(E.__)("Migrate","templates-patterns-collection")+" "+t.theme_name,onRequestClose:N,shouldCloseOnClickOutside:!b,isDismissible:!b},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},O&&Object(r.createElement)(R,{message:O.message||null,code:O.code||null}),!1===b&&!O&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(B,{data:t}),t.mandatory_plugins&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("h3",null,Object(E.__)("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(E.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),!0===b&&Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(y.Dashicon,{icon:"update",size:50}),Object(r.createElement)("h3",null,Object(E.__)("Migrating","templates-patterns-collection"),"..."))),(!b||"done"===b)&&Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(y.Button,{isSecondary:"done"!==b,isLink:"done"===b,className:"done"===b?"close":null,onClick:N},"done"===b?Object(E.__)("Close","templates-patterns-collection"):Object(E.__)("Cancel","templates-patterns-collection")),O||"done"===b?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{style:{marginLeft:20},isSecondary:!0,href:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(S,"&action=elementor")},Object(E.__)("Edit Content","templates-patterns-collection")),Object(r.createElement)(y.Button,{isPrimary:!0,href:tiobDash.onboarding.homeUrl},Object(E.__)("View Website","templates-patterns-collection"))):Object(r.createElement)(y.Button,{isPrimary:!0,onClick:function(){var e;e=Object.keys(t.mandatory_plugins).reduce((function(e,t){return e[t]=!0,e}),{}),L(e).then((function(e){if(f(!0),!e.success)return v({code:e.data||null,message:Object(E.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection")}),f(!1),!1;var n=t.template,r=t.template_name;C(tiobDash.onboarding.root+"/migrate_frontpage",{template:n,template_name:r}).then((function(e){if(!e.success)return v({code:e.data||null,message:Object(E.__)("Something went wrong while importing the website content.","templates-patterns-collection")}),f(!1),!1;k(e.data),f("done")}))}))}},Object(E.__)("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)(y.Button,{isPrimary:!0,onClick:function(){return m(!0),!1}},Object(E.__)("Migrate","templates-patterns-collection")+" "+t.theme_name),Object(r.createElement)(y.Button,{isSecondary:!0,onClick:function(){C(tiobDash.onboarding.root+"/dismiss_migration",{theme_mod:t.theme_mod}).then((function(e){if(!e.success)return n(Object(E.__)("Something went wrong. Please reload the page and try again.","templates-patterns-collection")),!1;n(Object(E.__)("Dismissed","templates-patterns-collection")),i(!0)}))}},Object(E.__)("Dismiss","templates-patterns-collection"))))},z=n(13),U=n.n(z),V=n(15),$=n.n(V),H=n(5),G=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.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"})),W=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),q=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Q=n(14),Y=n.n(Q),J=n(11),K=new Uint8Array(16);function Z(){if(!P&&!(P="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 P(K)}for(var X=/^(?:[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,ee=function(e){return"string"==typeof e&&X.test(e)},te=[],ne=0;ne<256;++ne)te.push((ne+256).toString(16).substr(1));var re=function(e,t,n){var r=(e=e||{}).random||(e.rng||Z)();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=(te[e[t+0]]+te[e[t+1]]+te[e[t+2]]+te[e[t+3]]+"-"+te[e[t+4]]+te[e[t+5]]+"-"+te[e[t+6]]+te[e[t+7]]+"-"+te[e[t+8]]+te[e[t+9]]+"-"+te[e[t+10]]+te[e[t+11]]+te[e[t+12]]+te[e[t+13]]+te[e[t+14]]+te[e[t+15]]).toLowerCase();if(!ee(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oe=function(){var e=k()(w.a.mark((function e(){var t,n,r,a,c,o,i=arguments;return w.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(J.stringifyUrl)({url:tiobDash.endpoint+(t?"page-templates":"templates"),query:ce(ce({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),n)}),e.prev=3,e.next=6,Y()({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)}}(),ie=function(){var e=k()(w.a.mark((function e(t,n){var r;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(J.stringifyUrl)({url:tiobDash.endpoint+"templates/"+t,query:ce(ce({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),{},{template_id:t,template_name:n})}),e.prev=1,e.next=4,Y()({url:r,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",re()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}(),le=function(){var e=k()(w.a.mark((function e(t){var n;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(J.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t),query:ce({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},tiobDash.params)}),e.prev=1,e.next=4,Y()({url:n,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",re()),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)}}(),se=function(){var e=k()(w.a.mark((function e(t){var n,r,a;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(J.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/bulk-import"),query:ce({templates:t,cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),e.prev=1,e.next=4,Y()({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)}}(),ue=function(){var e=k()(w.a.mark((function e(t){var n,r,a;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(J.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t,"/import"),query:ce({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),r={},e.prev=2,e.next=5,Y()({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)}}(),me=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(H.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"})),pe=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.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"})),de=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(H.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"})),be=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),fe=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.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 he(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 ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oe=function(e){var t=e.sortingOrder,n=e.item,a=e.loadTemplates,c=e.userTemplate,o=e.grid,i=e.onPreview,l=e.onImport,s=e.upsell,u=void 0!==s&&s,m=Object(r.useState)(!1),p=j()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=j()(f,2),O=h[0],v=h[1],_=Object(r.useState)(n.template_name),S=j()(_,2),C=S[0],N=S[1],T=function(){var e=k()(w.a.mark((function e(t){var r,a;return w.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,ie(r,C||a).then((function(e){e.success&&(v(!O),b(!1))}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=k()(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm(Object(E.__)("Are you sure you want to delete this template?"))){e.next=2;break}return e.abrupt("return",!1);case 2:b("deleteing"),le(n.template_id).then((function(e){e.success&&(a(ge({page:0},t)),b(!1))}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){i(n.link)},P=g()("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:g()("grid-preview",{"is-loading":O||!1!==d})},Object(r.createElement)("div",{className:"preview-actions"},!c&&n.link&&Object(r.createElement)(y.Button,{isSecondary:!0,disabled:!1!==d,onClick:x},Object(E.__)("Preview")),!u&&Object(r.createElement)(y.Button,{isPrimary:!0,isBusy:"importing"===d,disabled:!1!==d,onClick:l},Object(E.__)("Import")),c&&Object(r.createElement)("div",{className:"preview-controls"},!n.link&&Object(r.createElement)(y.Button,{label:Object(E.__)("Edit"),icon:"updating"===d?me:pe,disabled:O||!1!==d,className:g()({"is-loading":"updating"===d}),onClick:function(){return v(!O)}}),Object(r.createElement)(y.Button,{label:Object(E.__)("Delete"),icon:"deleteing"===d?me:de,disabled:!1!==d,className:g()({"is-loading":"deleteing"===d}),onClick:M})))),Object(r.createElement)("div",{className:"card-footer"},O?Object(r.createElement)("form",{onSubmit:T},Object(r.createElement)(y.TextControl,{value:C,onChange:N}),Object(r.createElement)(y.Button,{type:"submit",label:Object(E.__)("Update"),icon:"updating"===d?me:be,disabled:!1!==d,className:g()({"is-loading":"updating"===d})})):Object(r.createElement)("p",null,C)))}return Object(r.createElement)("div",{key:n.template_id,className:"table-row"},Object(r.createElement)("div",{className:"title"},Object(r.createElement)(y.Icon,{icon:fe}),O?Object(r.createElement)(y.TextControl,{label:Object(E.__)("Template Name"),hideLabelFromVision:!0,value:C,onChange:N}):C),c&&Object(r.createElement)("div",{className:"controls"},n.link?Object(r.createElement)(y.Tooltip,{text:Object(E.__)("This template is synced to a page.")},Object(r.createElement)(y.Button,{label:Object(E.__)("Edit"),icon:pe,disabled:!0},Object(E.__)("Edit"))):Object(r.createElement)(y.Button,{label:O?Object(E.__)("Update"):Object(E.__)("Edit"),icon:O?"updating"===d?me:be:pe,disabled:!1!==d,className:g()({"is-loading":"updating"===d}),onClick:function(){return O?T:v(!O)}},O?Object(E.__)("Update"):Object(E.__)("Edit")),Object(r.createElement)(y.Button,{label:Object(E.__)("Delete"),icon:"deleteing"===d?me:de,disabled:!1!==d,className:g()({"is-loading":"deleteing"===d}),onClick:M},"deleting"===d?Object(E.__)("Deleting")+"...":Object(E.__)("Delete"))),Object(r.createElement)("div",{className:P},!c&&n.link&&Object(r.createElement)(y.Button,{isSecondary:!0,disabled:!1!==d,onClick:x},Object(E.__)("Preview")),Object(r.createElement)(y.Button,{isPrimary:!0,isBusy:"importing"===d,onClick:l,disabled:!1!==d},Object(E.__)("Import"))))},ve=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,"background-color":"#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)"}}))})))},je=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.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"})),ye=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.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"})),Ee=Object(r.createElement)(H.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),_e=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.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"})),we=n(18);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 ke(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 Ce,Ne={date:Object(E.__)("Date"),template_name:Object(E.__)("Name"),modified:Object(E.__)("Last Modified")},Te=function(e){var t=e.isGrid,n=e.setGrid,a=e.isSearch,c=e.searchQuery,o=e.setSearchQuery,i=e.onSearch,l=e.sortingOrder,s=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(E.__)("Sort by")),Object(r.createElement)("div",{className:"sorting-filter"},Object.keys(Ne).map((function(e){return Object(r.createElement)(y.Button,{key:e,className:g()({"is-selected":e===l.orderby,"is-asc":"ASC"===l.order}),onClick:function(){var t={order:"DESC",orderby:e};e===l.orderby&&"DESC"===l.order&&(t.order="ASC"),s(ke({},t)),u(ke({},t))}},Ne[e])})))),Object(r.createElement)("div",{className:"display-filters"},Object(r.createElement)("div",{className:"display-filters__search"},Object(r.createElement)("input",{placeholder:Object(E.__)("Search"),value:c,onChange:function(e){return o(e.target.value)},onKeyDown:function(e){e.keyCode===we.ENTER&&i()}}),a?Object(r.createElement)(y.Button,{label:Object(E.__)("Clear search query"),icon:je,onClick:function(){o(""),i("")}}):Object(r.createElement)(y.Button,{label:Object(E.__)("Search"),icon:ye,onClick:function(){return i()}})),Object(r.createElement)(y.Button,{label:Object(E.__)("List View"),icon:Ee,onClick:function(){return n(!1)},isPressed:!t}),Object(r.createElement)(y.Button,{label:Object(E.__)("Grid View"),icon:_e,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(J.stringifyUrl)({url:o,query:{tpcpreview:"yes"}}),l=t||Object(E.__)("Preview");return Object(r.createElement)("div",{className:"ob-preview single-templates"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{title:l,src:i,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(y.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)))},xe={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:"ÿ"},Pe={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 De(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Ie(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Le(e){return function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||De(e)}function Ae(e){var t,n="&"+e+";";return(Ce=Ce||document.createElement("i")).innerHTML=n,(59!==(t=Ce.textContent).charCodeAt(t.length-1)||"semi"===e)&&t!==n&&t}var Be={}.hasOwnProperty,Re=String.fromCharCode,Fe=[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 ze(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 Ue(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?Ue(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $e=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getThemeAction,r=t.getCurrentSite;return{themeStatus:n().action||!1,siteData:r()}})),Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setTemplateModal,r=t.setImportModalStatus,a=t.setInstallModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setInstallModal:function(e){return a(e)}}})))((function(e){var t=e.templatesData,n=e.cancel,a=e.siteData,c=e.themeStatus,o=e.setInstallModal,i=e.setModal,l=e.isUserTemplate,s=void 0!==l&&l,u=e.generalTemplates,m=void 0!==u&&u,p=Object(r.useState)(!0),d=j()(p,2),b=d[0],f=d[1],h=Object(r.useState)([]),O=j()(h,2),v=O[0],_=O[1],w=Object(r.useState)(!1),S=j()(w,2),k=S[0],C=S[1],N=Object(r.useState)([]),T=j()(N,2),M=T[0],x=T[1],P=Object(r.useState)(!1),D=j()(P,2),I=D[0],L=D[1],B=1===t.length;Object(r.useEffect)((function(){s&&B?ue(t[0].template_id).then((function(e){e.success||(e.message?L(e.message):L(!0),f(!1)),_(e.templates),f(!1)})):se(t.map((function(e){return e.template_id}))).then((function(e){if(!e.success)return e.message?L(e.message):L(!0),f(!1),!1;_(e.templates),f(!1)}))}),[t]);var R=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",{className:"is-loading",style:{height:30,marginBottom:30,width:"70%"}}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading",style:{width:"40%"}}))),Object(r.createElement)("div",{className:"modal-footer",style:{marginTop:50}},Object(r.createElement)("span",{className:"is-loading link"}),Object(r.createElement)("span",{className:"is-loading button",style:{width:"150px",marginLeft:"auto"}})))},F=function(e){if(e.preventDefault(),c)return o(!0),!1;i(!0)},z=function(){C(!0);var e=t.map((function(e,t){return Ve(Ve({},e),v[t])}));try{A(e).then((function(e){if(!e.success)return console.log(e.message),!1;x(e.pages),C("done")}))}catch(e){console.log(I)}},U=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(E.__)("An error occurred!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},!0===I?Object(E.__)("Please refresh the page and try again."):I))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",onClick:function(){L(!1),n()}},Object(E.__)("Close"))))};return Object(r.createElement)(y.Modal,{className:g()(["ob-import-modal",{fetching:b}]),onRequestClose:n,shouldCloseOnClickOutside:!(k&&"done"!==k||b),isDismissible:!(k&&"done"!==k||b)},"done"===k?Object(r.createElement)((function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(E.__)("Import done!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},B?Object(E.__)("Template was successfully imported!","templates-patterns-collection"):Object(E.__)("Templates were successfully imported!","templates-patterns-collection"))),M&&Object(r.createElement)("ul",{className:"modal-toggles"},M.map((function(e,t){return Object(r.createElement)("li",{className:"option-row",key:t},Object(r.createElement)(y.Icon,{icon:fe,className:"active"}),Object(r.createElement)("span",null,function(e,t={}){var n,r,a,c,o,i,l,s,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="",M=[];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=x(),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+=Re(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="",s="",j="named"===v?Le:"decimal"===v?De:Ie,w--;++w<=e.length&&j(d=e.charCodeAt(w));)s+=Re(d),"named"===v&&Be.call(xe,s)&&(o=s,h=xe[s]);(l=59===e.charCodeAt(w))&&(w++,(i="named"===v&&Ae(s))&&(o=s,h=i)),_=1+w-O,(l||!1!==t.nonTerminated)&&(s?"named"===v?(l&&!h?P(5,1):(o!==s&&(_=1+(w=g+o.length)-g,l=!1),l||(b=o?1:3,t.attribute?61===(d=e.charCodeAt(w))?(P(b,_),h=null):Le(d)?h=null:P(b,_):P(b,_))),m=h):(l||P(2,_),(S=p=Number.parseInt(s,"hexadecimal"===v?16:10))>=55296&&S<=57343||S>1114111?(P(7,_),m=Re(65533)):p in Pe?(P(6,_),m=Pe[p]):(f="",ze(p)&&P(6,_),p>65535&&(f+=Re((p-=65536)>>>10|55296),p=56320|1023&p),m=f+Re(p))):"named"!==v&&P(4,_)),m?(D(),y=x(),C=w-1,c+=w-O+1,M.push(m),(E=x()).offset++,t.reference&&t.reference.call(t.referenceContext,m,{start:y,end:E},e.slice(O-1,w)),y=E):(s=e.slice(O-1,w),T+=s,c+=s.length,C=w-1)}else 10===u&&(a++,N++,c=0),Number.isNaN(u)?D():(T+=Re(u),c++);return M.join("");function x(){return{line:a,column:c,offset:C+(n&&n.offset||0)}}function P(e,n){var r;t.warning&&((r=x()).column+=n,r.offset+=n,t.warning.call(t.warningContext,Fe[e],r,e))}function D(){T&&(M.push(T),t.text&&t.text.call(t.textContext,T,{start:y,end:x()}),T="")}}(e.title)),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(y.Button,{isTertiary:!0,href:e.url},Object(E.__)("Visit","templates-patterns-collection")),Object(r.createElement)(y.Button,{isTertiary:!0,href:e.edit},Object(E.__)("Edit","templates-patterns-collection"))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",onClick:n},Object(E.__)("Close"))))}),null):Object(r.createElement)((function(){return b?Object(r.createElement)(R,null):I?Object(r.createElement)(U,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(E.sprintf)(B?
3
  /* translators: name of starter site */
4
- Object(E.__)("Import the %s template","templates-patterns-collection"):
5
  /* translators: name of template */
6
- Object(E.__)("Import all templates from %s","templates-patterns-collection"),B?t[0].template_name:a.title)),Object(r.createElement)("p",{className:"description"},(Object(r.createElement)("strong",null,Object(E.__)("does not")),B?Object(E.sprintf)(
7
  /* translators: %s the name of the template */
8
- Object(E.__)("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(E.__)("All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"))))),Object(r.createElement)("div",{className:"modal-footer"},!m&&Object(r.createElement)(y.Button,{className:"import-templates",isLink:!0,disabled:k,onClick:F},Object(E.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",disabled:k,onClick:z},k?Object(E.__)("Importing")+"...":B?Object(E.__)("Import"):Object(E.__)("Import All Pages"))))}),null))}));function He(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 Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var We=Object(O.compose)(Object(f.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(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentEditor,c=t.getCurrentTab;return{templateModal:n(),themeStatus:r().action||!1,editor:a(),currentTab:c()}})))((function(e){var t=e.isGeneral,n=e.setPreview,a=e.setInstallModal,o=e.setTemplateModal,i=e.templateModal,l=e.themeStatus,s=e.currentTab,u=Object(r.useState)({gutenberg:[],elementor:[]}),m=j()(u,2),p=m[0],d=m[1],b=Object(r.useState)("gutenberg"),f=j()(b,2),h=f[0],O=f[1],v=Object(r.useState)([]),_=j()(v,2),S=_[0],C=_[1],N=Object(r.useState)(t),T=j()(N,2),M=T[0],x=T[1],P=Object(r.useState)(""),D=j()(P,2),I=D[0],L=D[1],A=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),B=j()(A,2),R=B[0],F=B[1],z=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),V=j()(z,2),H=V[0],Q=V[1],Y=Object(r.useState)(!1),J=j()(Y,2),K=J[0],Z=J[1],X=Object(r.useState)(!1),ee=j()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(!1),ae=j()(re,2),ce=ae[0],ie=ae[1],le=Object(r.useState)(""),se=j()(le,2),ue=se[0],me=se[1],pe=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),de=j()(pe,2),be=de[0],fe=de[1];Object(r.useEffect)((function(){Z(!0),L(""),F({gutenberg:0,elementor:0,beaver:0}),Q({gutenberg:0,elementor:0,beaver:0}),ge()}),[t,h]);var he={gutenberg:{label:Object(E.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(E.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(E.__)("Beaver"),icon:"beaver.jpg"}},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Ge({page:R[h],per_page:12,type:h},e);t&&(n.template_site_slug="general",n.premade=!0),I&&(n.search=I),oe(t,n).then((function(e){d(Ge(Ge({},p),{},c()({},h,e.templates))),Q(Ge(Ge({},H),{},c()({},h,e.total))),Z(!1)}))},je=function(){var e=k()(w.a.mark((function e(){var n,r,a=arguments;return w.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,ie(!0),F(Ge(Ge({},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,oe(t,r).then((function(e){d(Ge(Ge({},p),{},c()({},h,[].concat(U()(p[h]),U()(e.templates))))),Q(Ge(Ge({},H),{},c()({},h,e.total)))}));case 8:ie(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ye=function(e){me(e),n(!0)},Ee=function(e){if(l)return a(!0),!1;C([e]),o(!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=g()("cloud-items",{"is-grid":M}),ke=function(){return t?be.templates:be.library},Ce=function(){var e=k()(w.a.mark((function e(n){var r;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Z(!0),r=Ge({search:I,type:h},n),t&&(r.template_site_slug="general",r.premade=!0),oe(t,r).then((function(e){d(Ge(Ge({},p),{},c()({},h,U()(e.templates)))),Q(Ge(Ge({},H),{},c()({},h,e.total))),Z(!1)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return 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(){O(e),ne(!1)},className:g()("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)(Te,{currentTab:s,isGrid:M,setGrid:x,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=Ge({search:e,type:h},ke());t&&(n.template_site_slug="general",n.premade=!0),oe(t,n).then((function(e){d(Ge(Ge({},p),{},c()({},h,U()(e.templates)))),Q(Ge(Ge({},H),{},c()({},h,e.total))),Z(!1)}))},sortingOrder:ke(),setSortingOrder:function(e){return fe(Ge(Ge({},be),{},t?{templates:e}:{library:e}))},changeOrder:Ce}),K&&Object(r.createElement)(ve,{isGrid:M}),!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)(Oe,{sortingOrder:ke(),onPreview:ye,userTemplate:!t,key:e.template_id,item:e,loadTemplates:ge,onImport:function(){return Ee(e)},grid:M})}))),Object(r.createElement)($.a,{onChange:function(e){if(!e)return!1;Number(H[h])>R[h]&&je()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),ce&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(y.Spinner,null))):Object(r.createElement)(r.Fragment,null,Object(E.__)("No templates found."))),ue&&Object(r.createElement)(Me,{previewUrl:ue,rightButtons:Object(r.createElement)(y.Button,{isPrimary:!0,onClick:function(){return Ee(we)}},Object(E.__)("Import Template")),heading:we.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:G,onClick:function(){me(""),n(!1)}}),p[h].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?W:q,onClick:function(){var e=_e-1;0===_e&&(e=p[h].length-1),me(p[h][e].link)}}),Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?q:W,onClick:function(){var e=_e+1;_e===p[h].length-1&&(e=0),me(p[h][e].link)}})))})),i&&S&&!K&&S.length>0&&Object(r.createElement)($e,{generalTemplates:!0,isUserTemplate:!t,templatesData:S}))})),qe=[Object(E.__)("Business","templates-patterns-collection"),Object(E.__)("Ecommerce","templates-patterns-collection"),Object(E.__)("Fashion","templates-patterns-collection"),Object(E.__)("Blogging","templates-patterns-collection"),Object(E.__)("Photography","templates-patterns-collection")],Qe={all:Object(E.__)("All Categories"),free:Object(E.__)("Free"),business:Object(E.__)("Business"),portfolio:Object(E.__)("Portfolio"),woocommerce:Object(E.__)("WooCommerce"),blog:Object(E.__)("Blog"),personal:Object(E.__)("Personal"),other:Object(E.__)("Other")},Ye={gutenberg:{icon:"gutenberg.jpg",niceName:"Gutenberg"},elementor:{icon:"elementor.jpg",niceName:"Elementor"},"beaver builder":{icon:"beaver.jpg",niceName:Object(r.createElement)(r.Fragment,null,"Beaver ",Object(r.createElement)("span",{className:"long-name"},"Builder"))},brizy:{icon:"brizy.jpg",niceName:"Brizy"},"divi builder":{icon:"divi.jpg",niceName:"Divi"},"thrive architect":{icon:"thrive.jpg",niceName:Object(r.createElement)(r.Fragment,null,"Thrive ",Object(r.createElement)("span",{className:"long-name"},"Architect"))}},Je=function(e){var t=e.currentStep,n=e.progress,a=e.willDo,c={cleanup:{label:Object(E.__)("Cleanup previous Import","templates-patterns-collection"),status:n.cleanup,willDo:a.cleanup},plugins:{label:Object(E.__)("Installing Plugins","templates-patterns-collection"),status:n.plugins,willDo:!0},content:{label:Object(E.__)("Importing Content","templates-patterns-collection"),status:n.content,willDo:a.content},customizer:{label:Object(E.__)("Importing Customizer Settings","templates-patterns-collection"),status:n.customizer,willDo:a.customizer},widgets:{label:Object(E.__)("Importing Widgets","templates-patterns-collection"),status:n.widgets,willDo:a.widgets}};return Object(r.createElement)("ul",{className:"stepper"},Object.keys(c).map((function(e,n){var a=c[e],o=a.label,i=a.status;if(!a.willDo)return null;var l=g()(["icon",{loading:t===e,warning:t===e,success:"done"===i,error:"error"===i,skip:"skip"===i}]),s="clock";return t===e&&(s="update"),"done"===i&&(s="yes"),"error"===i&&(s="no-alt"),Object(r.createElement)("li",{key:n},Object(r.createElement)("span",{className:l},Object(r.createElement)(y.Dashicon,{icon:s,className:t===e?"loading":""})),Object(r.createElement)("span",null,o))})))},Ke=n(19),Ze=n.n(Ke),Xe=function(e){return Ze()(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)(y.Button,{isPrimary:!0,className:"import is-loading"})))},et=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.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"})),tt=function(e){var t=e.children,n=e.className,a=g()([n,"tiob-tooltip-wrap"]);return Object(r.createElement)("div",{className:a},Object(r.createElement)(y.Button,{onClick:function(e){e.preventDefault()},className:"tiob-tooltip-toggle",icon:et,isLink:!0,isSmall:!0}),Object(r.createElement)("div",{className:"tiob-tooltip-content"},t))};function nt(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 rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var at=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentSite;return{editor:n(),siteData:r()}})),Object(f.withDispatch)((function(e,t){var n=t.siteData,r=e("neve-onboarding"),a=r.setTemplateModal,c=r.setSingleTemplateImport,o=r.setImportModalStatus;return{setModal:function(e){return o(e)},runTemplateImport:function(){c(n.slug),a(!0),o(!1)}}})))((function(e){var t=e.setModal,n=e.editor,a=e.siteData,o=e.runTemplateImport,i=Object(r.useState)({content:!0,customizer:!0,widgets:!0,cleanup:!1}),l=j()(i,2),s=l[0],u=l[1],m=Object(r.useState)(!1),p=j()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=j()(f,2),O=h[0],v=h[1],_=Object(r.useState)(!1),w=j()(_,2),S=w[0],k=w[1],T=Object(r.useState)(!1),M=j()(T,2),x=M[0],P=M[1],D=Object(r.useState)(!1),A=j()(D,2),F=A[0],z=A[1],U=Object(r.useState)(null),V=j()(U,2),$=V[0],H=V[1],G=Object(r.useState)(null),W=j()(G,2),q=W[0],Q=W[1],Y=Object(r.useState)(!1),J=j()(Y,2),K=J[0],Z=J[1],X=Object(r.useState)(null),ee=j()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(null),ae=j()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(null),le=j()(ie,2),se=le[0],ue=le[1],me=Object(r.useState)(!0),pe=j()(me,2),de=pe[0],be=pe[1],fe=Object(r.useState)(!0),he=j()(fe,2),ge=he[0],Oe=he[1],ve=Object(r.useState)(!0),je=j()(ve,2),ye=je[0],Ee=je[1],_e=tiobDash,we=_e.license,Se=_e.cleanupAllowed,ke=Object(r.useState)(Se),Ce=j()(ke,2),Ne=Ce[0],Te=Ce[1];function Me(){if(!te)return console.log("[S] Plugins."),xe(),!1;Q("plugins"),console.log("[P] Plugins."),L(te).then((function(e){if(!e.success)return Le(e,"plugins"),!1;console.log("[D] Plugins."),v("done"),xe()})).catch((function(e){return Le(e,"plugins")}))}function xe(){if(!s.content)return console.log("[S] Content."),Pe(),!1;var e;Q("content"),console.log("[P] Content."),(e={contentFile:se.content_file,source:"remote",frontPage:se.front_page,shopPages:se.shop_pages,demoSlug:se.slug,editor:n},C(I.root+"/import_content",e)).then((function(e){if(!e.success)return Le(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&H(e.frontpage_id),k("done"),Pe()})).catch((function(e){return Le(e,"content")}))}function Pe(){if(!s.customizer)return console.log("[S] Customizer."),De(),!1;var e;Q("customizer"),console.log("[P] Customizer."),(e={source_url:se.url,theme_mods:se.theme_mods,wp_options:se.wp_options},C(I.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return Le(e,"customizer"),!1;console.log("[D] Customizer."),P("done"),De()})).catch((function(e){return Le(e,"customizer")}))}function De(){if(!s.widgets)return console.log("[S] Widgets."),Ie(),!1;var e;Q("widgets"),console.log("[P] Widgets."),(e=se.widgets,C(I.root+"/import_widgets",e)).then((function(e){if(!e.success)return Le(e,"widgets"),!1;console.log("[D] Widgets."),z("done"),Ie()})).catch((function(e){return Le(e,"widgets")}))}function Ie(){Q("done"),Te("yes"),tiobDash.cleanupAllowed="yes",Z(!1)}function Le(e,t){Z(!1),Q(null),"cleanup"===t&&v("skip"),"plugins"===t&&k("skip"),["content","plugins"].includes(t)&&P("skip"),["content","plugins","customizer"].includes(t)&&z("skip");var n={cleanup:Object(E.__)("Something went wrong while cleaning the previous import.","templates-patterns-collection"),plugins:Object(E.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection"),content:Object(E.__)("Something went wrong while importing the website content.","templates-patterns-collection"),customizer:Object(E.__)("Something went wrong while updating the customizer settings.","templates-patterns-collection"),widgets:Object(E.__)("Something went wrong while importing the widgets.","templates-patterns-collection")};switch(t){case"cleanup":b("error");break;case"plugins":v("error");break;case"content":k("error");break;case"customizer":P("error");break;case"widgets":z("error")}oe(e.data?{message:n[t],code:e.data}:{message:n[t]})}Object(r.useEffect)((function(){var e=a.remote_url||a.url,t=new URL("".concat(function(e){return e.replace(/\/$/,"")}(e)+"/","wp-json/ti-demo-data/data"));t.searchParams.append("license",we?we.key:"free"),N(t,!0,!1).then((function(e){e.ok||(oe({message:Object(E.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_response"}),be(!1)),e.json().then((function(e){ue(rt(rt({},e),a));var t=rt({},e.mandatory_plugins||{}),n=rt({},e.recommended_plugins||{}),r=e.default_off_recommended_plugins||[];Object.keys(t).forEach((function(e){t[e]=!0})),Object.keys(n).forEach((function(e){n[e]=!r.includes(e)})),ne(rt(rt({},n),t)),be(!1)}))})).catch((function(){oe({message:Object(E.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_catch"}),be(!1)}))}),[]);var Ae=function(){if(K)return!1;t(!1)},Be=!a.external_plugins||a.external_plugins.every((function(e){return!0===e.active})),Re=Object.keys(s).every((function(e){return!1===s[e]})),Fe={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=elementor"),brizy:"".concat(tiobDash.onboarding.homeUrl,"/?brizy-edit"),"beaver builder":"".concat(tiobDash.onboarding.homeUrl,"/?fl_builder"),"thrive architect":"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=architect&tve=true"),"divi builder":"".concat(tiobDash.onboarding.homeUrl,"/?et_fb=1&PageSpeed=off"),gutenberg:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=edit")}[n];return Object(r.createElement)(y.Modal,{className:g()(["ob-import-modal",{fetching:de}]),onRequestClose:Ae,shouldCloseOnClickOutside:!K&&!de,isDismissible:!K&&!de},de?Object(r.createElement)(Xe,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},K||"done"===q||ce?Object(r.createElement)(r.Fragment,null,ce&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(R,{message:ce.message||null,code:ce.code||null}),Object(r.createElement)("hr",null)),null!==q&&Object(r.createElement)(Je,{progress:{cleanup:d,plugins:O,content:S,customizer:x,widgets:F},currentStep:q,willDo:s}),"done"===q&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("p",{className:"import-result"},Object(E.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),Object(r.createElement)("hr",null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(E.sprintf)(
9
  /* translators: name of starter site */
10
- Object(E.__)("Import %s as a complete site","templates-patterns-collection"),se.title)),Object(r.createElement)("p",{className:"description"},Object(E.__)("Import the entire site including customizer options, pages, content and plugins.","templates-patterns-collection")))}),null),Object(r.createElement)((function(){return Object(r.createElement)(B,{data:se,externalInstalled:Be})}),null),Object(r.createElement)(y.Panel,{className:"modal-toggles"},Object(r.createElement)((function(){var e={content:{title:Object(E.__)("Content","templates-patterns-collection"),icon:"admin-post"},customizer:{title:Object(E.__)("Customizer","templates-patterns-collection"),icon:"admin-customizer"},widgets:{title:Object(E.__)("Widgets","templates-patterns-collection"),icon:"admin-generic"}};return"yes"===Ne&&(e=rt({cleanup:{icon:"trash",title:Object(E.__)("Cleanup previous import","templates-patterns-collection"),tooltip:Object(E.__)("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)(y.PanelBody,{onToggle:function(){Ee(!ye)},opened:ye,className:"options general",title:Object(E.__)("Import settings","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=g()("option-row",{active:s[t]}),o=e[t],i=o.icon,l=o.title,m=o.tooltip;return Object(r.createElement)(y.PanelRow,{className:a,key:n},Object(r.createElement)(y.Icon,{icon:i}),Object(r.createElement)("span",null,l),m&&Object(r.createElement)(tt,null,m),Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(y.ToggleControl,{checked:s[t],onChange:function(){u(rt(rt({},s),{},c()({},t,!s[t])))}})))})))}),null),Object(r.createElement)((function(){if(de)return null;var e=rt(rt({},se.recommended_plugins||{}),se.mandatory_plugins||{});return Object(r.createElement)(y.PanelBody,{onToggle:function(){Oe(!ge)},opened:ge,className:"options plugins",title:Object(E.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=g()("option-row",{active:te[t]});return Object(r.createElement)(y.PanelRow,{className:a,key:n},Object(r.createElement)(y.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)(y.ToggleControl,{checked:te[t],onChange:function(){ne(rt(rt({},te),{},c()({},t,!te[t])))}})))})))}),null)))),!K&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==q?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{className:"import-templates",isLink:!0,onClick:o},Object(E.__)("I want to import just the templates","templates-patterns-collection")),!ce&&Object(r.createElement)(y.Button,{className:"import",isPrimary:!0,disabled:Re||!Be,onClick:function(){Z(!0),function(){if(console.clear(),!s.cleanup)return console.log("[S] Cleanup."),Me(),!1;var e;Q("cleanup"),console.log("[P] Cleanup."),(e={},C(I.root+"/cleanup",e)).then((function(e){if(!e.success)return Le(e,"cleanup"),!1;console.log("[D] Cleanup."),b("done"),Me()})).catch((function(e){return Le(e,"cleanup")}))}()}},Object(E.__)("Import entire site","templates-patterns-collection"))):Object(r.createElement)("div",{className:"import-done-actions"},Object(r.createElement)(y.Button,{isLink:!0,className:"close",onClick:Ae},Object(E.__)("Back to Sites Library","templates-patterns-collection")),Object(r.createElement)(y.Button,{isSecondary:!0,href:tiobDash.onboarding.homeUrl},Object(E.__)("View Website","templates-patterns-collection")),Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",href:Fe},Object(E.__)("Add your own content","templates-patterns-collection"))))))})),ct=Object(O.compose)(Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setSingleTemplateImport,r=t.setImportModalStatus,a=t.setInstallModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setInstallModal:function(e){return a(e)},setTemplateModal:t.setTemplateModal}})),Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentSite,c=t.getCurrentEditor;return{templateModal:n(),themeStatus:r().action||!1,site:a(),editor:c()}})))((function(e){var t=e.slug,n=e.cancel,a=e.setModal,c=e.setInstallModal,o=e.themeStatus,i=e.site,l=e.editor,s=e.setTemplateModal,u=e.templateModal,m=Object(r.useState)([]),p=j()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!0),h=j()(f,2),g=h[0],O=h[1],v=Object(r.useState)(""),_=j()(v,2),w=_[0],S=_[1],k=Object(r.useState)([]),C=j()(k,2),N=C[0],T=C[1],M=i.title,x=i.upsell,P=i.utmOutboundLink;Object(r.useEffect)((function(){D()}),[]);var D=function(){oe(!0,{per_page:100,template_site_slug:t,premade:!0,type:l}).then((function(e){b(e.templates||[]),O(!1)}))},I=function(e){S(e)},L=function(e){if(o)return c(!0),!1;T([e]),s(!0)},A=function(e){if(e.preventDefault(),o)return c(!0),!1;a(!0)},B=d.findIndex((function(e){return e.link===w})),R=d.find((function(e){return e.link===w}));return Object(r.createElement)("div",{className:"single-templates-wrapper"},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"breadcrumb"},Object(r.createElement)(y.Button,{isTertiary:!0,onClick:n},Object(r.createElement)(y.Icon,{icon:q}),Object(E.__)("Back to Starter Sites"))),Object(r.createElement)("div",{className:"header"},Object(r.createElement)("div",{className:"text"},Object(r.createElement)("h1",null,M||"",x&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(y.Icon,{icon:"lock"}),Object(r.createElement)("span",null,Object(E.__)("Premium","templates-patterns-collection")))),Object(r.createElement)("p",{className:"description"},Object(E.__)("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)(y.Button,{isSecondary:!0,onClick:A},Object(E.__)("Import Starter Site")),Object(r.createElement)(y.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(e){if(e.preventDefault(),o)return c(!0),!1;T(d),s(!0)}},Object(E.__)("Import All Pages"))),x&&Object(r.createElement)(y.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(E.__)("Upgrade"))))),Object(r.createElement)((function(){return g?Object(r.createElement)(y.Spinner,null):d.length<1?Object(E.__)("No templates for this starter site."):Object(r.createElement)("div",{className:"cloud-items is-grid"},Object(r.createElement)("div",{className:"table"},d.map((function(e){return Object(r.createElement)(Oe,{upsell:x,onPreview:I,userTemplate:!1,key:e.template_id,item:e,loadTemplates:D,onImport:function(){return L(e)},grid:!0})}))))}),null),w&&Object(r.createElement)(Me,{heading:R.template_name||null,previewUrl:w,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:G,onClick:function(){return S("")},label:Object(E.__)("Close","templates-patterns-collection")}),d.length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?W:q,onClick:function(){var e=B-1;0===B&&(e=d.length-1),S(d[e].link)}}),Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?q:W,onClick:function(){var e=B+1;B===d.length-1&&(e=0),S(d[e].link)}}))),rightButtons:Object(r.createElement)(r.Fragment,null,!x&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{isSecondary:!0,onClick:A},Object(E.__)("Import Starter Site")),Object(r.createElement)(y.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(){return L(R)}},Object(E.__)("Import Page"))),x&&Object(r.createElement)(y.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(E.__)("Upgrade")))}),u&&N&&!g&&N.length>0&&Object(r.createElement)($e,{templatesData:N}))})),ot=function(){return Object(r.createElement)(H.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)(H.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)(H.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(H.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"}))},it=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c={starterSites:Object(E.__)("Starter Sites","templates-patterns-collection"),pageTemplates:Object(E.__)("Page Templates","templates-patterns-collection")},o=Object(r.useState)(!1),i=j()(o,2),l=i[0],s=i[1];tiobDash.license&&tiobDash.license.tier&&3===tiobDash.license.tier&&(c.library=Object(E.__)("My Library","templates-patterns-collection"));var 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)(y.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)(y.Button,{icon:me,onClick:function(){s(!0),localStorage.setItem("tpcCacheBuster",re());var e=n;t(null),setTimeout((function(){t(e),s(!1)}),100)},label:Object(E.__)("Re-sync Library"),className:g()("is-sync",{"is-loading":l}),disabled:a||l,"data-content":Object(E.__)("Sync")}))},lt=Object(O.compose)(Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState;return{cancelOnboarding:function(){n(!1)},setCurrentTab:t.setCurrentTab,setFetching:t.setFetching}})),Object(f.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)(y.Icon,{icon:ot}),Object(r.createElement)("span",null,Object(E.__)("Templates Cloud","templates-patterns-collection"))),Object(r.createElement)(it,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(y.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),st=n(20),ut=n.n(st),mt=Object(O.compose)(Object(f.withSelect)((function(e){return{themeStatus:(0,e("neve-onboarding").getThemeAction)().action||!1}})),Object(f.withDispatch)((function(e,t){var n=t.data,r=n.slug,a=e("neve-onboarding"),c=a.setCurrentSite,o=a.setPreviewStatus,i=a.setImportModalStatus,l=a.setInstallModalStatus,s=a.setSingleTemplateImport;return{setSite:function(){return c(n)},setPreview:function(e){return o(e)},setModal:function(e){return i(e)},setInstallModal:function(e){return l(e)},setImportingPages:function(){return s(r)}}})))((function(e){var t=e.data,n=e.setSite,a=e.setPreview,c=e.setModal,o=e.themeStatus,i=e.setInstallModal,l=e.setImportingPages,s=t.upsell,u=(t.slug,t.screenshot),m=t.title,p=t.has_templates,d=Object(r.useState)(""),b=j()(d,2),f=b[0],h=b[1],O=g()("card starter-site-card",{"has-templates":p});return Object(r.createElement)("div",{onMouseEnter:function(){h("visible")},onMouseLeave:function(){h("")},className:O},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"actions "+f},Object(r.createElement)(y.Button,{isSecondary:!0,onClick:function(e){e.preventDefault(),n(),a(!0)}},Object(E.__)("Preview","templates-patterns-collection")),!s&&Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",onClick:function(e){if(e.preventDefault(),n(),o)return i(!0),!1;c(!0)}},Object(E.__)("Import","templates-patterns-collection")),p&&Object(r.createElement)(y.Button,{isLink:!0,className:"templates",onClick:function(e){e.preventDefault(),n(),l()}},Object(E.__)("View Pages","templates-patterns-collection"))),u&&Object(r.createElement)("div",{className:"image",style:{backgroundImage:'url("'.concat(u,'")')}})),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},m),s&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(y.Dashicon,{icon:"lock",size:15}),Object(r.createElement)("span",null,Object(E.__)("Premium","templates-patterns-collection")))))})),pt=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentSite,r=t.getThemeAction;return{siteData:n(),themeStatus:r().action||!1}})),Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentSite,r=t.setPreviewStatus,a=t.setImportModalStatus,c=t.setInstallModalStatus;return{setSite:function(e){return n(e)},setPreview:function(e){return r(e)},setModal:function(e){return a(e)},setInstallModal:function(e){return c(e)}}})))((function(e){var t=e.next,n=e.prev,a=e.siteData,c=e.setSite,o=e.setPreview,i=e.setModal,l=e.themeStatus,s=e.setInstallModal;return Object(r.createElement)("div",{className:"ob-preview"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{src:a.url,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(y.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},Object(r.createElement)("div",{className:"navigator"},Object(r.createElement)(y.Button,{onClick:function(e){e.preventDefault(),o(!1),c(null)},className:"close",label:Object(E.__)("Close","templates-patterns-collection"),icon:G}),n&&Object(r.createElement)(y.Button,{onClick:function(e){e.preventDefault(),c(n)},className:"prev",label:Object(E.__)("Previous","templates-patterns-collection"),icon:Object(E.isRTL)()?W:q}),t&&Object(r.createElement)(y.Button,{onClick:function(e){e.preventDefault(),c(t)},className:"next",label:Object(E.__)("Next","templates-patterns-collection"),icon:Object(E.isRTL)()?q:W})),Object(r.createElement)("div",{className:"actions"},a.upsell?Object(r.createElement)(y.Button,{className:"upgrade",isPrimary:!0,href:a.utmOutboundLink||tiobDash.upgradeURL},Object(E.__)("Upgrade and Import","templates-patterns-collection")):Object(r.createElement)(y.Button,{className:"import",isPrimary:!0,onClick:function(e){if(e.preventDefault(),l)return s(!0),!1;i(!0)}},Object(E.__)("Import","templates-patterns-collection")))))})),dt=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)(y.Button,{target:"_blank",isSecondary:!0,href:o.replace("<builder_name>",t).replace(" ","")},c))}),null)},bt=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentCategory,r=t.getSearchQuery;return{category:n(),query:r()}})),Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentCategory,r=t.setSearchQuery;return{setCurrentCategory:function(e){return n(e)},onSearch:function(e){return r(e)}}})))((function(e){var t=e.count,n=e.categories,a=e.onSearch,c=e.category,o=e.setCurrentCategory,i=e.query,l=e.className,s=Object(r.useState)(!1),u=j()(s,2),m=u[0],p=u[1],d=function(){return p(!m)},b=g()(l,"header-form");return Object(r.createElement)("div",{className:b},Object(r.createElement)("div",{className:"search"},Object(r.createElement)("img",{src:tiobDash.assets+"/img/search.svg",alt:Object(E.__)("Search Icon")}),Object(r.createElement)("input",{onChange:function(e){a(e.target.value)},type:"search",value:i,placeholder:Object(E.__)("Search for a starter site","templates-patterns-collection")+"..."}),Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"ob-dropdown categories-selector"},Object(r.createElement)(y.Button,{onClick:d,className:"select ob-dropdown"},n[c],Object(r.createElement)(y.Dashicon,{size:14,icon:m?"arrow-up-alt2":"arrow-down-alt2"}),m&&Object(r.createElement)(y.Popover,{position:"bottom center",onClose:d,noArrow:!0},m&&Object(r.createElement)("ul",{className:"options"},Object.keys(n).map((function(e,a){return e===c||"free"===e&&t.all===t[e]?null:Object(r.createElement)("li",{key:a},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),o(e),p(!1)}},Object(r.createElement)("span",null,n[e]),Object(r.createElement)("span",{className:"count"},t[e])))}))))))}),null)))})),ft=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(f.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,l=Object(r.useState)(!1),s=j()(l,2),u=s[0],m=s[1],p=Object.keys(o),d=function(){return m(!u)},b=g()(["ob-dropdown","editor-selector",{small:i}]);return Object(r.createElement)("div",{className:b},Object(r.createElement)(y.Button,{onClick:d,className:"select ob-dropdown"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[a].icon,alt:Object(E.__)("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)(y.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(y.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(E.__)("Builder Logo","templates-patterns-collection")}),Object(r.createElement)("span",null,t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),ht=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(f.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,l=Object.keys(i);return Object(r.createElement)("div",{className:"editor-tabs"},l.map((function(e,i){var l=g()(["tab",e,{active:e===c}]);return Object(r.createElement)("a",{key:i,href:"#",className:l,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(E.__)("Builder Logo","templates-patterns-collection")})),Object(r.createElement)("span",{className:"editor"},t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e]),a.includes(e)&&Object(r.createElement)("span",{className:"pro-badge"},"PRO"))})))})),gt=Object(O.compose)(Object(f.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(f.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,l=e.category,s=e.editor,u=Object(r.useState)(!1),m=j()(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})),E=(t={builders:{},categories:{}},O.forEach((function(e){var r=c(e);r=n(r,l),r=a(r),t.builders[e]=r?r.length:0})),Object.keys(Qe).forEach((function(e){var r=c(s);r=n(r,e),r=a(r),t.categories[e]=r?r.length:0})),t);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)(y.Icon,{icon:ot,size:32}),Object(r.createElement)(bt,{className:"in-sticky",count:E.categories,categories:Qe}),Object(r.createElement)(ft,{isSmall:!0,count:E.builders,EDITOR_MAP:Ye}))),Object(r.createElement)($.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),Object(r.createElement)(ft,{count:E.builders,EDITOR_MAP:Ye}),Object(r.createElement)(bt,{count:E.categories,categories:Qe}),Object(r.createElement)(ht,{EDITOR_MAP:Ye,onlyProSites:v,count:E.builders}),!tiobDash.isValidLicense&&Object(r.createElement)(dt,{data:tiobDash.upsellNotifications.upsell_1,editor:s}))))})),Ot=Object(O.compose)(Object(f.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(f.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,l=t.getSites,s=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSearchQuery;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:s(),isOnboarding:i(),getSites:l(),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,l=e.isOnboarding,s=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]=U()(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 ut.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(E.__)("Starter sites could not be loaded. Please refresh and try again.","templates-patterns-collection"),l&&Object(r.createElement)(y.Button,{style:{display:"block",margin:"20px auto"},isPrimary:!0,onClick:s},Object(E.__)("Close","templates-patterns-collection")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(gt,{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(E.__)("No results found.","templates-patterns-collection")," ",Object(E.__)("You can try a different search or use one of the categories below.","templates-patterns-collection")),Object(r.createElement)("div",{className:"tags"},qe.map((function(e,t){return Object(r.createElement)(y.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=j()(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)(mt,{key:t,data:e})})),Object(r.createElement)($.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)(pt,{next:v(),prev:v(!0)}))})),vt=Object(O.compose)(Object(f.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(f.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,l=t.getSites,s=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSingleImport;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:s(),isOnboarding:i(),getSites:l(),currentTab:u(),singleImport:m()}})))((function(e){var t=e.getSites,n=e.installModal,a=e.currentTab,c=e.singleImport,o=e.importModal,i=e.currentSiteData,l=(e.isOnboarding,t.migration);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ob"},Object(r.createElement)(lt,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},l&&Object(r.createElement)(F,{data:l}),"starterSites"===a&&(c?Object(r.createElement)(ct,{slug:c}):Object(r.createElement)(Ot,null)),"library"===a&&Object(r.createElement)(We,null),"pageTemplates"===a&&Object(r.createElement)(We,{isGeneral:!0})))),n&&Object(r.createElement)(D,null),o&&i&&Object(r.createElement)(at,null))})),jt=Object(f.withSelect)((function(e){return{onboarding:(0,e("neve-onboarding").getOnboardingStatus)()}}))((function(e){var t=e.onboarding,n=g()(["content-wrap","starter-sites",{"is-onboarding":t}]);return Object(r.createElement)("div",{className:"tiob-wrap"},Object(r.createElement)("div",{className:n},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)(vt,null))))))}));Object(f.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 l=t.payload.importModalStatus;return i(i({},e),{},{importModalStatus:l});case"SET_INSTALL_MODAL_STATUS":var s=t.payload.installModalStatus;return i(i({},e),{},{installModalStatus:s});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:{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}}}),Object(r.render)(Object(r.createElement)(jt,null),document.getElementById("tpc-app"))}]);
1
+ (window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[]).push([[1],{22:function(e,t,n){}}]),function(e){function t(t){for(var r,o,i=t[0],l=t[1],s=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 l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,s||[]),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 l=n[i];0!==a[l]&&(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||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var u=l;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.regeneratorRuntime},function(e,t){e.exports=window.wp.compose},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),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).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,l,"next",e)}function l(e){n(o,a,c,i,l,"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 l(e,t){return t.decode?a(e):e}function s(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=s(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&&l(n,e).includes(e.arrayFormatSeparator);n=c?l(n,e):n;const o=a||c?n.split(e.arrayFormatSeparator).map(t=>l(t,e)):null===n?n:l(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:l(o,t),n(l(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:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=s(e.url).split("?")[0]||"",a=t.extract(e.url),c=t.parse(a,{sort:!1}),o=Object.assign(c,e.query);let l=t.stringify(o,n);l&&(l="?"+l);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}${l}${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),l=n.n(i),s=n(3),u=n.n(s);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,l=i&&o.top&&o.left&&o.bottom&&o.right;if(i&&n.props.partialVisibility){var s=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(s=o[n.props.partialVisibility]),l=n.props.minTopValue?s&&e.top<=t.bottom-n.props.minTopValue:s}"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),l=u()(c,e,t));var p=n.state;return n.state.isVisible!==l&&(p={isVisible:l,visibilityRect:o},n.setState(p),n.props.onChange&&n.props.onChange(l)),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:l.a.func,active:l.a.bool,partialVisibility:l.a.oneOfType([l.a.bool,l.a.oneOf(["top","right","bottom","left"])]),delayedCall:l.a.bool,offset:l.a.oneOfType([l.a.shape({top:l.a.number,left:l.a.number,bottom:l.a.number,right:l.a.number}),l.a.shape({direction:l.a.oneOf(["top","right","bottom","left"]),value:l.a.number})]),scrollCheck:l.a.bool,scrollDelay:l.a.number,scrollThrottle:l.a.number,resizeCheck:l.a.bool,resizeDelay:l.a.number,resizeThrottle:l.a.number,intervalCheck:l.a.bool,intervalDelay:l.a.number,containment:"undefined"!=typeof window?l.a.instanceOf(window.Element):l.a.any,children:l.a.oneOfType([l.a.element,l.a.func]),minTopValue:l.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 l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(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=l(e);if(t){var a=l(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s(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,l=o.length;i<l;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 M=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,l=o.value;if(g(l))if(b(l)&&!O(l)){var s={v:l,i:i,n:n.norm.get(l)};e.push(s)}else d(l)&&l.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 x(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 M({getFn:a});return c.setKeys(e.map(w)),c.setSources(t),c.create(),c}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,a=t.currentLocation,c=void 0===a?0:a,o=t.expectedLocation,i=void 0===o?0:o,l=t.distance,s=void 0===l?C.distance:l,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 s?p+d/s:d?1:p}function D(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.minMatchCharLength,n=[],r=-1,a=-1,c=0,o=e.length;c<o;c+=1){var i=e[c];i&&-1===r?r=c:i||-1===r||((a=c-1)-r+1>=t&&n.push([r,a]),r=-1)}return e[c-1]&&c-r>=t&&n.push([r,c-1]),n}function I(e){for(var t={},n=0,r=e.length;n<r;n+=1){var a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}var L=function(){function e(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a.location,o=void 0===c?C.location:c,i=a.threshold,l=void 0===i?C.threshold:i,s=a.distance,u=void 0===s?C.distance:s,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:l,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,l=c.threshold,s=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,l=r.threshold,s=void 0===l?C.threshold:l,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)),_=s,w=E,S=d>1||f,k=S?Array(j):[];(O=e.indexOf(t,w))>-1;){var N=P(t,{currentLocation:O,expectedLocation:E,distance:i,ignoreLocation:g});if(_=Math.min(N,_),w=O+v,S)for(var T=0;T<v;)k[O+T]=1,T+=1}w=-1;for(var M=[],x=1,I=v+j,L=1<<v-1,A=0;A<v;A+=1){for(var B=0,R=I;B<R;){var F=P(t,{errors:A,currentLocation:E+R,expectedLocation:E,distance:i,ignoreLocation:g});F<=_?B=R:I=R,R=Math.floor((I-B)/2+B)}I=R;var z=Math.max(1,E-R+1),U=m?j:Math.min(E+R,j)+v,V=Array(U+2);V[U+1]=(1<<A)-1;for(var $=U;$>=z;$-=1){var H=$-1,G=n[e.charAt(H)];if(S&&(k[H]=+!!G),V[$]=(V[$+1]<<1|1)&G,A&&(V[$]|=(M[$+1]|M[$])<<1|1|M[$+1]),V[$]&L&&(x=P(t,{errors:A,currentLocation:H,expectedLocation:E,distance:i,ignoreLocation:g}))<=_){if(_=x,(w=H)<=E)break;z=Math.max(1,2*E-w)}}var W=P(t,{errors:A+1,currentLocation:E,expectedLocation:E,distance:i,ignoreLocation:g});if(W>_)break;M=V}var q={isMatch:w>=0,score:Math.max(.001,x)};if(S){var Q=D(k,d);Q.length?f&&(q.indices=Q):q.isMatch=!1}return q}(e,n,a,{location:o+c,distance:i,threshold:l,findAllMatches:s,minMatchCharLength:u,includeMatches:r,ignoreLocation:p}),g=h.isMatch,O=h.score,v=h.indices;g&&(f=!0),b+=O,g&&v&&(d=[].concat(m(d),m(v)))}));var h={isMatch:f,score:f?b/this.chunks.length:1};return f&&r&&(h.indices=d),h}}]),e}(),A=function(){function e(n){t(this,e),this.pattern=n}return r(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return B(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return B(e,this.singleRegex)}}]),e}();function B(e,t){var n=e.match(t);return n?n[1]:null}var R=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),a}(A),F=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),a}(A),z=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),a}(A),U=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),a}(A),V=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),a}(A),$=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),a}(A),H=function(e){i(a,e);var n=u(a);function a(e){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=c.location,i=void 0===o?C.location:o,l=c.threshold,s=void 0===l?C.threshold:l,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:s,distance:m,includeMatches:d,findAllMatches:f,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:y}),r}return r(a,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),a}(A),G=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){for(var t,n=0,r=[],a=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+a,r.push([t,n-1]);var c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),a}(A),W=[R,G,z,U,$,V,F,H],q=W.length,Q=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Q).filter((function(e){return e&&!!e.trim()})),r=[],a=0,c=n.length;a<c;a+=1){for(var o=n[a],i=!1,l=-1;!i&&++l<q;){var s=W[l],u=s.isMultiMatch(o);u&&(r.push(new s(u,t)),i=!0)}if(!i)for(l=-1;++l<q;){var m=W[l],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,l=r.minMatchCharLength,s=void 0===l?C.minMatchCharLength:l,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:s,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,l=t.length;i<l;i+=1){var s=t[i];c.length=0,a=0;for(var u=0,p=s.length;u<p;u+=1){var d=s[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 le(e,t){t.score=e.score}function se(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(le),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 M))throw new Error("Incorrect 'index' type");this._myIndex=t||x(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,l=a.sortFn,s=a.ignoreFieldNorm,u=b(e)?b(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return oe(u,{ignoreFieldNorm:s}),i&&u.sort(l),f(r)&&r>-1&&(u=u.slice(0,r)),se(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,l=o.score,s=o.indices;i&&r.push({item:n,idx:a,matches:[{score:l,value:n,norm:c,indices:s}]})}})),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 l={keyId:k(o),pattern:i};return a&&(l.searcher=X(i,t)),l}var s={children:[],operator:r[0]};return r.forEach((function(t){var r=n[t];d(r)&&r.forEach((function(t){s.children.push(e(t))}))})),s};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 l=[],s=0,u=n.children.length;s<u;s+=1){var p=e(n.children[s],r,a);if(!p.length)return[];l.push.apply(l,m(p))}return l;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),l=i.isMatch,s=i.score,u=i.indices;l&&a.push({score:s,key:t,value:n,idx:c,norm:o,indices:u})}}));else{var c=n.v,o=n.n,i=r.searchIn(c),l=i.isMatch,s=i.score,u=i.indices;l&&a.push({score:s,key:t,value:c,norm:o,indices:u})}return a}}]),e}();return ue.version="6.4.6",ue.createIndex=x,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 M({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 l=c[i];e=e.replace(new RegExp(l,"g"),t[l])}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 l=tiobDash,s=l.onboarding,u=l.themeAction,m=void 0!==s.sites&&void 0!==s.sites.sites?Object.keys(s.sites.sites)[0]:"gutenberg",p=localStorage.getItem("neve-onboarding-editor")||m,d={sites:s.sites||{},editor:p,category:"all",previewStatus:!1,importModalStatus:!1,installModalStatus:!1,currentSite:null,importing:!1,isOnboarding:s.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(8),j=n(3),y=n.n(j),E=n(2),_=n(1),w=n(7),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 M(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 M(e,t,{},"GET",n)},M=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 x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D,I=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getSingleImport;return{themeData:(0,t.getThemeAction)()||!1,singleImport:n()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setImportModalStatus,r=t.setInstallModalStatus,a=t.setThemeAction,c=t.setTemplateModal;return{setImportModal:function(e){return n(e)},setInstallModal:function(e){return r(e)},setThemeAction:function(e){return a(e)},showTemplateModal:function(){return c(!0)}}})))((function(e){var t=e.setImportModal,n=e.setInstallModal,a=e.themeData,c=e.setThemeAction,o=e.singleImport,i=e.showTemplateModal,l=a.action,s=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(s,"&_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"===l?function(){g("installing"),wp.updates.installTheme({slug:"neve",success:function(){c(P(P({},a),{},{action:"activate"})),C()},error:function(e){c(P(P({},a),{},{action:"activate"})),k(e.errorMessage||Object(_.__)("Could not install theme.","templates-patterns-collection"))}})}:C},h&&("installing"===h?Object(_.__)("Installing"):Object(_.__)("Activating")),!h&&("install"===l?Object(_.__)("Install and Activate","templates-patterns-collection"):Object(_.__)("Activate","templates-patterns-collection"))),Object(r.createElement)(E.Button,{style:{marginLeft:30},isSecondary:!0,disabled:h,onClick:S},Object(_.__)("Close","templates-patterns-collection")))))})),L=tiobDash.onboarding,A=function(e){return N(L.root+"/install_plugins",e)},B=function(){var e=C()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},t.forEach((function(e){"elementor"===e.template_type?n.elementor=!0:"beaver"===e.template_type&&(n["beaver-builder-lite-version"]=!0)})),!(Object.keys(n).length>0)){e.next=11;break}return e.prev=3,e.next=6,A(n);case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",error);case 11:return e.abrupt("return",N(L.root+"/import_single_templates",t));case 12:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t){return e.apply(this,arguments)}}(),R=function(e){var t=e.data,n=e.externalInstalled,a=t.external_plugins||null,c=O()(["well"]);return Object(r.createElement)("div",{className:c},a&&!n&&Object(r.createElement)("h3",{style:{marginTop:15}},Object(r.createElement)(E.Dashicon,{icon:"info"}),Object(r.createElement)("span",null,Object(_.__)("To import this demo you have to install the following plugins","templates-patterns-collection"))),Object(r.createElement)("ul",null,a&&!n?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))})):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("li",null,Object(_.__)("We recommend you backup your website content before attempting a full site import.","templates-patterns-collection")),Object(r.createElement)("li",null,Object(_.__)("Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there.","templates-patterns-collection")),Object(r.createElement)("li",null,Object(_.__)("Some of the demo images will not be imported and will be replaced by placeholder images.","templates-patterns-collection")))))},F=function(e){var t=e.message,n=e.code;return Object(r.createElement)("div",{className:"well error"},t&&Object(r.createElement)("h3",null,Object(r.createElement)(E.Dashicon,{icon:"warning"}),Object(r.createElement)("span",null,t)),Object(r.createElement)("ul",null,Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.troubleshooting}}),Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.support}}),n&&Object(r.createElement)("li",null,Object(_.__)("Error code","templates-patterns-collection"),":"," ",Object(r.createElement)("code",null,n)),Object(r.createElement)("li",null,Object(_.__)("Error log","templates-patterns-collection"),":"," ",Object(r.createElement)(E.Button,{isLink:!0,href:tiobDash.onboarding.logUrl},tiobDash.onboarding.logUrl,Object(r.createElement)(E.Dashicon,{icon:"external"})))))},z=function(e){var t=e.data,n=function(e){return console.log(e)},a=Object(r.useState)(!1),c=y()(a,2),o=c[0],i=c[1],l=Object(r.useState)(!1),s=y()(l,2),u=s[0],m=s[1],p=Object(r.useState)(!1),d=y()(p,2),b=d[0],f=d[1],h=Object(r.useState)(null),g=y()(h,2),O=g[0],v=g[1],j=Object(r.useState)(null),w=y()(j,2),S=w[0],k=w[1];if(o)return null;var C=function(){"done"===b&&i(!0),m(!1),v(null),f(!1)};return Object(r.createElement)("div",{className:"ob-migration"},u&&Object(r.createElement)(E.Modal,{className:"ob-import-modal migration",title:Object(_.__)("Migrate","templates-patterns-collection")+" "+t.theme_name,onRequestClose:C,shouldCloseOnClickOutside:!b,isDismissible:!b},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},O&&Object(r.createElement)(F,{message:O.message||null,code:O.code||null}),!1===b&&!O&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(R,{data:t}),t.mandatory_plugins&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("h3",null,Object(_.__)("The following plugins will be installed","templates-patterns-collection"),":"),Object(r.createElement)("ul",null,Object.keys(t.mandatory_plugins).map((function(e,n){return Object(r.createElement)("li",{key:n},"-"," ",t.mandatory_plugins[e])}))))),"done"===b&&Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),!0===b&&Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}),Object(r.createElement)("h3",null,Object(_.__)("Migrating","templates-patterns-collection"),"..."))),(!b||"done"===b)&&Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isSecondary:"done"!==b,isLink:"done"===b,className:"done"===b?"close":null,onClick:C},"done"===b?Object(_.__)("Close","templates-patterns-collection"):Object(_.__)("Cancel","templates-patterns-collection")),O||"done"===b?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{style:{marginLeft:20},isSecondary:!0,href:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(S,"&action=elementor")},Object(_.__)("Edit Content","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection"))):Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){var e;e=Object.keys(t.mandatory_plugins).reduce((function(e,t){return e[t]=!0,e}),{}),A(e).then((function(e){if(f(!0),!e.success)return v({code:e.data||null,message:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection")}),f(!1),!1;var n=t.template,r=t.template_name;N(tiobDash.onboarding.root+"/migrate_frontpage",{template:n,template_name:r}).then((function(e){if(!e.success)return v({code:e.data||null,message:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection")}),f(!1),!1;k(e.data),f("done")}))}))}},Object(_.__)("Start Migration","templates-patterns-collection"))))),Object(r.createElement)("h2",null,t.heading),Object(r.createElement)("p",null,t.description),Object(r.createElement)("div",{className:"card starter-site-card",style:{maxWidth:330}},Object(r.createElement)("div",{className:"top"},t.screenshot&&Object(r.createElement)("div",{className:"image"},Object(r.createElement)("img",{src:t.screenshot,alt:t.theme_name}))),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},t.theme_name))),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return m(!0),!1}},Object(_.__)("Migrate","templates-patterns-collection")+" "+t.theme_name),Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(){N(tiobDash.onboarding.root+"/dismiss_migration",{theme_mod:t.theme_mod}).then((function(e){if(!e.success)return n(Object(_.__)("Something went wrong. Please reload the page and try again.","templates-patterns-collection")),!1;n(Object(_.__)("Dismissed","templates-patterns-collection")),i(!0)}))}},Object(_.__)("Dismiss","templates-patterns-collection"))))},U=n(12),V=n.n(U),$=n(15),H=n.n($),G=n(5),W=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),q=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Q=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Y=n(14),J=n.n(Y),K=n(11),Z=new Uint8Array(16);function X(){if(!D&&!(D="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return D(Z)}for(var ee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,te=function(e){return"string"==typeof e&&ee.test(e)},ne=[],re=0;re<256;++re)ne.push((re+256).toString(16).substr(1));var ae=function(e,t,n){var r=(e=e||{}).random||(e.rng||X)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(ne[e[t+0]]+ne[e[t+1]]+ne[e[t+2]]+ne[e[t+3]]+"-"+ne[e[t+4]]+ne[e[t+5]]+"-"+ne[e[t+6]]+ne[e[t+7]]+"-"+ne[e[t+8]]+ne[e[t+9]]+"-"+ne[e[t+10]]+ne[e[t+11]]+ne[e[t+12]]+ne[e[t+13]]+ne[e[t+14]]+ne[e[t+15]]).toLowerCase();if(!te(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie=function(){var e=C()(S.a.mark((function e(){var t,n,r,a,c,o,i=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]&&i[0],n=i.length>1&&void 0!==i[1]?i[1]:{},r=Object(K.stringifyUrl)({url:tiobDash.endpoint+(t?"page-templates":"templates"),query:oe(oe({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),n)}),e.prev=3,e.next=6,J()({url:r,method:"GET",parse:!1});case 6:if(!(a=e.sent).ok){e.next=15;break}return e.next=10,a.json();case 10:if(!(c=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:c.message});case 13:return o=a.headers.get("x-wp-totalpages"),e.abrupt("return",{success:!0,total:o,templates:c});case 15:e.next=21;break;case 17:if(e.prev=17,e.t0=e.catch(3),!e.t0.message){e.next=21;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 21:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(){return e.apply(this,arguments)}}(),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(K.stringifyUrl)({url:tiobDash.endpoint+"templates/"+t,query:oe(oe({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),{},{template_id:t,template_name:n})}),e.prev=1,e.next=4,J()({url:r,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ae()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}(),se=function(){var e=C()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(K.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t),query:oe({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},tiobDash.params)}),e.prev=1,e.next=4,J()({url:n,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ae()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),ue=function(){var e=C()(S.a.mark((function e(t){var n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(K.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/bulk-import"),query:oe({templates:t,cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),e.prev=1,e.next=4,J()({url:n,method:"GET",parse:!1});case 4:if(!(r=e.sent).ok){e.next=14;break}if(!r.message){e.next=8;break}return e.abrupt("return",{success:!1,message:r.message});case 8:return e.next=10,r.json();case 10:if(!(a=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:a.message});case 13:return e.abrupt("return",{success:!0,templates:a});case 14:e.next=20;break;case 16:if(e.prev=16,e.t0=e.catch(1),!e.t0.message){e.next=20;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 20:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=C()(S.a.mark((function e(t){var n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(K.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t,"/import"),query:oe({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),r={},e.prev=2,e.next=5,J()({url:n,method:"GET",parse:!1});case 5:if(!(a=e.sent).ok){e.next=12;break}return e.next=9,a.json();case 9:if(!(r=e.sent).message){e.next=12;break}return e.abrupt("return",{success:!1,message:r.message});case 12:e.next=18;break;case 14:if(e.prev=14,e.t0=e.catch(2),!e.t0.message){e.next=18;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 18:return e.abrupt("return",{success:!0,templates:[r]});case 19:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(t){return e.apply(this,arguments)}}(),pe=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(G.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),de=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),be=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(G.Path,{d:"M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z"})),fe=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),he=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=function(e){var t=e.sortingOrder,n=e.item,a=e.loadTemplates,c=e.userTemplate,o=e.grid,i=e.onPreview,l=e.onImport,s=e.upsell,u=void 0!==s&&s,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)}}(),M=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"),se(n.template_id).then((function(e){e.success&&(a(Oe({page:0},t)),b(!1))}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){i(n.link)},P=O()("actions",{"no-controls":!c});if(o){var D={backgroundImage:"url(".concat(n.template_thumbnail,")")};return Object(r.createElement)("div",{key:n.template_id,className:"table-grid"},Object(r.createElement)("div",{style:D,className:O()("grid-preview",{"is-loading":g||!1!==d})},Object(r.createElement)("div",{className:"preview-actions"},!c&&n.link&&Object(r.createElement)(E.Button,{isSecondary:!0,disabled:!1!==d,onClick:x},Object(_.__)("Preview")),!u&&Object(r.createElement)(E.Button,{isPrimary:!0,isBusy:"importing"===d,disabled:!1!==d,onClick:l},Object(_.__)("Import")),c&&Object(r.createElement)("div",{className:"preview-controls"},!n.link&&Object(r.createElement)(E.Button,{label:Object(_.__)("Edit"),icon:"updating"===d?pe:de,disabled:g||!1!==d,className:O()({"is-loading":"updating"===d}),onClick:function(){return v(!g)}}),Object(r.createElement)(E.Button,{label:Object(_.__)("Delete"),icon:"deleteing"===d?pe:be,disabled:!1!==d,className:O()({"is-loading":"deleteing"===d}),onClick:M})))),Object(r.createElement)("div",{className:"card-footer"},g?Object(r.createElement)("form",{onSubmit:T},Object(r.createElement)(E.TextControl,{value:k,onChange:N}),Object(r.createElement)(E.Button,{type:"submit",label:Object(_.__)("Update"),icon:"updating"===d?pe:fe,disabled:!1!==d,className:O()({"is-loading":"updating"===d})})):Object(r.createElement)("p",null,k)))}return Object(r.createElement)("div",{key:n.template_id,className:"table-row"},Object(r.createElement)("div",{className:"title"},Object(r.createElement)(E.Icon,{icon:he}),g?Object(r.createElement)(E.TextControl,{label:Object(_.__)("Template Name"),hideLabelFromVision:!0,value:k,onChange:N}):k),c&&Object(r.createElement)("div",{className:"controls"},n.link?Object(r.createElement)(E.Tooltip,{text:Object(_.__)("This template is synced to a page.")},Object(r.createElement)(E.Button,{label:Object(_.__)("Edit"),icon:de,disabled:!0},Object(_.__)("Edit"))):Object(r.createElement)(E.Button,{label:g?Object(_.__)("Update"):Object(_.__)("Edit"),icon:g?"updating"===d?pe:fe:de,disabled:!1!==d,className:O()({"is-loading":"updating"===d}),onClick:function(){return g?T:v(!g)}},g?Object(_.__)("Update"):Object(_.__)("Edit")),Object(r.createElement)(E.Button,{label:Object(_.__)("Delete"),icon:"deleteing"===d?pe:be,disabled:!1!==d,className:O()({"is-loading":"deleteing"===d}),onClick:M},"deleting"===d?Object(_.__)("Deleting")+"...":Object(_.__)("Delete"))),Object(r.createElement)("div",{className:P},!c&&n.link&&Object(r.createElement)(E.Button,{isSecondary:!0,disabled:!1!==d,onClick:x},Object(_.__)("Preview")),Object(r.createElement)(E.Button,{isPrimary:!0,isBusy:"importing"===d,onClick:l,disabled:!1!==d},Object(_.__)("Import"))))},je=function(e){var t=e.isGrid;return Object(r.createElement)("div",{className:"table"},[1,2,3,4,5,6,7,8].map((function(e){return t?Object(r.createElement)("div",{key:e,className:"table-grid"},Object(r.createElement)("div",{className:"grid-preview image is-loading"}),Object(r.createElement)("div",{className:"card-footer"},Object(r.createElement)("p",{className:"title loading",style:{height:14,backgroundColor:"#f3f3f3"}}))):Object(r.createElement)("div",{key:e,className:"table-row"},Object(r.createElement)("p",{className:"title loading",style:{width:"100%",height:14,background:"linear-gradient(to right, #f3f3f3, #ffffff)"}}))})))},ye=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"})),Ee=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),_e=Object(r.createElement)(G.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),we=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"})),Se=n(18);function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne,Te={date:Object(_.__)("Date"),template_name:Object(_.__)("Name"),modified:Object(_.__)("Last Modified")},Me=function(e){var t=e.isGrid,n=e.setGrid,a=e.isSearch,c=e.searchQuery,o=e.setSearchQuery,i=e.onSearch,l=e.sortingOrder,s=e.setSortingOrder,u=e.changeOrder;return Object(r.createElement)("div",{className:"filters"},Object(r.createElement)("div",{className:"header-form"},Object(r.createElement)("div",{className:"display-sorting"},Object(r.createElement)("div",{className:"sorting-label"},Object(_.__)("Sort by")),Object(r.createElement)("div",{className:"sorting-filter"},Object.keys(Te).map((function(e){return Object(r.createElement)(E.Button,{key:e,className:O()({"is-selected":e===l.orderby,"is-asc":"ASC"===l.order}),onClick:function(){var t={order:"DESC",orderby:e};e===l.orderby&&"DESC"===l.order&&(t.order="ASC"),s(Ce({},t)),u(Ce({},t))}},Te[e])})))),Object(r.createElement)("div",{className:"display-filters"},Object(r.createElement)("div",{className:"display-filters__search"},Object(r.createElement)("input",{placeholder:Object(_.__)("Search"),value:c,onChange:function(e){return o(e.target.value)},onKeyDown:function(e){e.keyCode===Se.ENTER&&i()}}),a?Object(r.createElement)(E.Button,{label:Object(_.__)("Clear search query"),icon:ye,onClick:function(){o(""),i("")}}):Object(r.createElement)(E.Button,{label:Object(_.__)("Search"),icon:Ee,onClick:function(){return i()}})),Object(r.createElement)(E.Button,{label:Object(_.__)("List View"),icon:_e,onClick:function(){return n(!1)},isPressed:!t}),Object(r.createElement)(E.Button,{label:Object(_.__)("Grid View"),icon:we,onClick:function(){return n(!0)},isPressed:t}))))},xe=function(e){var t=e.title,n=e.leftButtons,a=e.rightButtons,c=e.heading,o=e.previewUrl,i=Object(K.stringifyUrl)({url:o,query:{tpcpreview:"yes"}}),l=t||Object(_.__)("Preview");return Object(r.createElement)("div",{className:"ob-preview single-templates"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{title:l,src:i,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},n&&Object(r.createElement)("div",{className:"navigator"},n),c&&Object(r.createElement)("h2",{className:"heading"},c),a&&Object(r.createElement)("div",{className:"actions"},a)))},Pe={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},De={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Ie(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Le(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Ae(e){return function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Ie(e)}function Be(e){var t,n="&"+e+";";return(Ne=Ne||document.createElement("i")).innerHTML=n,(59!==(t=Ne.textContent).charCodeAt(t.length-1)||"semi"===e)&&t!==n&&t}var Re={}.hasOwnProperty,Fe=String.fromCharCode,ze=[void 0,"Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Ue(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getThemeAction,r=t.getCurrentSite;return{themeStatus:n().action||!1,siteData:r()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setTemplateModal,r=t.setImportModalStatus,a=t.setInstallModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setInstallModal:function(e){return a(e)}}})))((function(e){var t=e.templatesData,n=e.cancel,a=e.siteData,c=e.themeStatus,o=e.setInstallModal,i=e.setModal,l=e.isUserTemplate,s=void 0!==l&&l,u=e.generalTemplates,m=void 0!==u&&u,p=Object(r.useState)(!0),d=y()(p,2),b=d[0],f=d[1],h=Object(r.useState)([]),g=y()(h,2),v=g[0],j=g[1],w=Object(r.useState)(!1),S=y()(w,2),k=S[0],C=S[1],N=Object(r.useState)([]),T=y()(N,2),M=T[0],x=T[1],P=Object(r.useState)(!1),D=y()(P,2),I=D[0],L=D[1],A=1===t.length;Object(r.useEffect)((function(){s&&A?me(t[0].template_id).then((function(e){e.success||(e.message?L(e.message):L(!0),f(!1)),j(e.templates),f(!1)})):ue(t.map((function(e){return e.template_id}))).then((function(e){if(!e.success)return e.message?L(e.message):L(!0),f(!1),!1;j(e.templates),f(!1)}))}),[t]);var R=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",{className:"is-loading",style:{height:30,marginBottom:30,width:"70%"}}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading",style:{width:"40%"}}))),Object(r.createElement)("div",{className:"modal-footer",style:{marginTop:50}},Object(r.createElement)("span",{className:"is-loading link"}),Object(r.createElement)("span",{className:"is-loading button",style:{width:"150px",marginLeft:"auto"}})))},F=function(e){if(e.preventDefault(),c)return o(!0),!1;i(!0)},z=function(){C(!0);var e=t.map((function(e,t){return $e($e({},e),v[t])}));try{B(e).then((function(e){if(!e.success)return console.log(e.message),!1;x(e.pages),C("done")}))}catch(e){console.log(I)}},U=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.__)("An error occurred!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},!0===I?Object(_.__)("Please refresh the page and try again."):I))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(){L(!1),n()}},Object(_.__)("Close"))))};return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:b}]),onRequestClose:n,shouldCloseOnClickOutside:!(k&&"done"!==k||b),isDismissible:!(k&&"done"!==k||b)},"done"===k?Object(r.createElement)((function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.__)("Import done!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},A?Object(_.__)("Template was successfully imported!","templates-patterns-collection"):Object(_.__)("Templates were successfully imported!","templates-patterns-collection"))),M&&Object(r.createElement)("ul",{className:"modal-toggles"},M.map((function(e,t){return Object(r.createElement)("li",{className:"option-row",key:t},Object(r.createElement)(E.Icon,{icon:he,className:"active"}),Object(r.createElement)("span",null,function(e,t={}){var n,r,a,c,o,i,l,s,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="",M=[];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=x(),C--;for(;++C<=e.length;)if(10===u&&(c=r&&r[N]||1),38===(u=e.charCodeAt(C))){if(9===(d=e.charCodeAt(C+1))||10===d||12===d||32===d||38===d||60===d||Number.isNaN(d)||k&&d===k){T+=Fe(u),c++;continue}for(g=O=C+1,w=O,35===d?(w=++g,88===(d=e.charCodeAt(w))||120===d?(v="hexadecimal",w=++g):v="decimal"):v="named",o="",h="",s="",j="named"===v?Ae:"decimal"===v?Ie:Le,w--;++w<=e.length&&j(d=e.charCodeAt(w));)s+=Fe(d),"named"===v&&Re.call(Pe,s)&&(o=s,h=Pe[s]);(l=59===e.charCodeAt(w))&&(w++,(i="named"===v&&Be(s))&&(o=s,h=i)),_=1+w-O,(l||!1!==t.nonTerminated)&&(s?"named"===v?(l&&!h?P(5,1):(o!==s&&(_=1+(w=g+o.length)-g,l=!1),l||(b=o?1:3,t.attribute?61===(d=e.charCodeAt(w))?(P(b,_),h=null):Ae(d)?h=null:P(b,_):P(b,_))),m=h):(l||P(2,_),(S=p=Number.parseInt(s,"hexadecimal"===v?16:10))>=55296&&S<=57343||S>1114111?(P(7,_),m=Fe(65533)):p in De?(P(6,_),m=De[p]):(f="",Ue(p)&&P(6,_),p>65535&&(f+=Fe((p-=65536)>>>10|55296),p=56320|1023&p),m=f+Fe(p))):"named"!==v&&P(4,_)),m?(D(),y=x(),C=w-1,c+=w-O+1,M.push(m),(E=x()).offset++,t.reference&&t.reference.call(t.referenceContext,m,{start:y,end:E},e.slice(O-1,w)),y=E):(s=e.slice(O-1,w),T+=s,c+=s.length,C=w-1)}else 10===u&&(a++,N++,c=0),Number.isNaN(u)?D():(T+=Fe(u),c++);return M.join("");function x(){return{line:a,column:c,offset:C+(n&&n.offset||0)}}function P(e,n){var r;t.warning&&((r=x()).column+=n,r.offset+=n,t.warning.call(t.warningContext,ze[e],r,e))}function D(){T&&(M.push(T),t.text&&t.text.call(t.textContext,T,{start:y,end:x()}),T="")}}(e.title)),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(E.Button,{isTertiary:!0,href:e.url},Object(_.__)("Visit","templates-patterns-collection")),Object(r.createElement)(E.Button,{isTertiary:!0,href:e.edit},Object(_.__)("Edit","templates-patterns-collection"))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:n},Object(_.__)("Close"))))}),null):Object(r.createElement)((function(){return b?Object(r.createElement)(R,null):I?Object(r.createElement)(U,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(A?
3
  /* translators: name of starter site */
4
+ Object(_.__)("Import the %s template","templates-patterns-collection"):
5
  /* translators: name of template */
6
+ Object(_.__)("Import all templates from %s","templates-patterns-collection"),A?t[0].template_name:a.title)),Object(r.createElement)("p",{className:"description"},(Object(r.createElement)("strong",null,Object(_.__)("does not")),A?Object(_.sprintf)(
7
  /* translators: %s the name of the template */
8
+ Object(_.__)("The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"),t[0].template_name):Object(_.__)("All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"))))),Object(r.createElement)("div",{className:"modal-footer"},!m&&Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,disabled:k,onClick:F},Object(_.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",disabled:k,onClick:z},k?Object(_.__)("Importing")+"...":A?Object(_.__)("Import"):Object(_.__)("Import All Pages"))))}),null))})),Ge=function(){return Object(r.createElement)(G.SVG,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ob-logo"},Object(r.createElement)(G.Path,{d:"M95.0264 100H4.97356C2.22797 100 0 97.772 0 95.0264V4.97356C0 2.22797 2.22797 0 4.97356 0H95.0264C97.772 0 100 2.22797 100 4.97356V95.0264C100 97.772 97.772 100 95.0264 100Z",fill:"#0366D6"}),Object(r.createElement)(G.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(G.Path,{d:"M42.2416 58.9291L42.2528 71.183L53.2352 82.1653L53.1902 47.9806L18.9941 47.9355L29.9765 58.9066L42.2416 58.9291Z",fill:"white"}))};function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qe=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setInstallModalStatus,r=t.setTemplateModal,a=t.setPreviewStatus;return{setPreview:function(e){return a(e)},setInstallModal:function(e){return n(e)},setTemplateModal:r}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentEditor,c=t.getCurrentTab,o=t.getUserStatus;return{templateModal:n(),themeStatus:r().action||!1,editor:a(),currentTab:c(),userStatus:o()}})))((function(e){var t=e.isGeneral,n=e.setPreview,a=e.setInstallModal,o=e.setTemplateModal,i=e.templateModal,l=e.themeStatus,s=e.currentTab,u=e.userStatus,m=Object(r.useState)({gutenberg:[],elementor:[]}),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)("gutenberg"),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)([]),w=y()(j,2),k=w[0],N=w[1],T=Object(r.useState)(t),M=y()(T,2),x=M[0],P=M[1],D=Object(r.useState)(""),I=y()(D,2),L=I[0],A=I[1],B=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),R=y()(B,2),F=R[0],z=R[1],U=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),$=y()(U,2),G=$[0],Y=$[1],J=Object(r.useState)(!1),K=y()(J,2),Z=K[0],X=K[1],ee=Object(r.useState)(!1),te=y()(ee,2),ne=te[0],re=te[1],ae=Object(r.useState)(!1),ce=y()(ae,2),oe=ce[0],le=ce[1],se=Object(r.useState)(""),ue=y()(se,2),me=ue[0],pe=ue[1],de=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),be=y()(de,2),fe=be[0],he=be[1];Object(r.useEffect)((function(){X(!0),A(""),z({gutenberg:0,elementor:0,beaver:0}),Y({gutenberg:0,elementor:0,beaver:0}),Oe()}),[t,g]);var ge={gutenberg:{label:Object(_.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(_.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(_.__)("Beaver"),icon:"beaver.jpg"}},Oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=qe({page:F[g],per_page:12,type:g},e);t&&(n.template_site_slug="general",n.premade=!0),L&&(n.search=L),ie(t,n).then((function(e){b(qe(qe({},d),{},c()({},g,e.templates))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}))},ye=function(){var e=C()(S.a.mark((function e(){var n,r,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:F[g]+1,le(!0),z(qe(qe({},F),{},c()({},g,n))),r={page:n,per_page:12,type:g},t&&(r.template_site_slug="general",r.premade=!0),L&&(r.search=L),e.next=8,ie(t,r).then((function(e){b(qe(qe({},d),{},c()({},g,[].concat(V()(d[g]),V()(e.templates))))),Y(qe(qe({},G),{},c()({},g,e.total)))}));case 8:le(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ee=function(e){pe(e),n(!0)},_e=function(e){if(l)return a(!0),!1;N([e]),o(!0)},we=d[g]&&d[g].findIndex((function(e){return e.link===me})),Se=d[g]&&d[g].find((function(e){return me===e.link})),ke=O()("cloud-items",{"is-grid":x||!u&&!t,"is-dummy":!u&&!t}),Ce=function(){return t?fe.templates:fe.library},Ne=function(){var e=C()(S.a.mark((function e(n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:X(!0),r=qe({search:L,type:g},n),t&&(r.template_site_slug="general",r.premade=!0),ie(t,r).then((function(e){b(qe(qe({},d),{},c()({},g,V()(e.templates)))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return u||t?Object(r.createElement)("div",{className:ke},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(ge).map((function(e){return Object(r.createElement)("a",{key:e,href:"#",onClick:function(){v(e),re(!1)},className:O()("tab",{active:g===e})},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:window.tiobDash.assets+"img/"+ge[e].icon,alt:ge[e].label})),Object(r.createElement)("span",{className:"editor"},ge[e].label))}))),Object(r.createElement)(Me,{currentTab:s,isGrid:x,setGrid:P,isSearch:ne,searchQuery:L,setSearchQuery:A,onSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;X(!0),re(!!e);var n=qe({search:e,type:g},Ce());t&&(n.template_site_slug="general",n.premade=!0),ie(t,n).then((function(e){b(qe(qe({},d),{},c()({},g,V()(e.templates)))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}))},sortingOrder:Ce(),setSortingOrder:function(e){return he(qe(qe({},fe),{},t?{templates:e}:{library:e}))},changeOrder:Ne}),Z&&Object(r.createElement)(je,{isGrid:x}),!Z&&(d[g]&&d[g].length>0?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"table"},d[g].map((function(e){return Object(r.createElement)(ve,{sortingOrder:Ce(),onPreview:Ee,userTemplate:!t,key:e.template_id,item:e,loadTemplates:Oe,onImport:function(){return _e(e)},grid:x})}))),Object(r.createElement)(H.a,{onChange:function(e){if(!e)return!1;Number(G[g])>F[g]&&ye()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),oe&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(E.Spinner,null))):Object(r.createElement)("div",{className:"empty-information"},Object(r.createElement)("img",{src:window.tiobDash.assets+"/img/layout.jpg",alt:Object(_.__)("No Templates Found")}),Object(r.createElement)("h3",null,Object(_.__)("There are no templates yet")),Object(r.createElement)("p",null,Object(_.__)("You can add a page or post to the cloud by accessing it with the WordPress or Elementor/Beaver editor. Learn more about this in our docs.")),Object(r.createElement)(E.Button,{variant:"secondary",isSecondary:!0,href:"https://docs.themeisle.com/article/1354-neve-template-cloud-library?utm_medium=nevedashboard&utm_source=templatecloud&utm_campaign=neve&utm_content=learnmore",target:"_blank"},Object(_.__)("Learn more")))),me&&Object(r.createElement)(xe,{previewUrl:me,rightButtons:Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return _e(Se)}},Object(_.__)("Import Template")),heading:Se.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:W,onClick:function(){pe(""),n(!1)}}),d[g].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?q:Q,onClick:function(){var e=we-1;0===we&&(e=d[g].length-1),pe(d[g][e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:q,onClick:function(){var e=we+1;we===d[g].length-1&&(e=0),pe(d[g][e].link)}})))})),i&&k&&!Z&&k.length>0&&Object(r.createElement)(He,{generalTemplates:!0,isUserTemplate:!t,templatesData:k})):Object(r.createElement)("div",{className:ke},Object(r.createElement)("div",{className:"table"},V()(Array(12)).map((function(e,t){return Object(r.createElement)(ve,{sortingOrder:Ce(),onPreview:Ee,userTemplate:!1,key:t,item:{},grid:!0})}))),Object(r.createElement)("div",{className:"upsell-modal-overlay"},Object(r.createElement)("div",{className:"upsell-modal"},Object(r.createElement)("div",{className:"upsell-modal-content"},Object(r.createElement)("div",{className:"info"},Object(r.createElement)("h3",null,Object(_.__)("Templates Cloud is a PRO Feature")),Object(r.createElement)("p",null,Object(_.__)("Unlock the Templates Cloud features and save your pages or posts in the cloud.")),Object(r.createElement)(E.Button,{variant:"primary",isPrimary:!0,href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=upgradetoprobtn and https://themeisle.com/themes/neve/neve-upgrade-new/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=changeplanbtn",target:"_blank"},Object(_.__)("Upgrade to PRO"))),Object(r.createElement)("div",{className:"icon"},Object(r.createElement)(E.Icon,{icon:Ge}))))))})),Ye=[Object(_.__)("Business","templates-patterns-collection"),Object(_.__)("Ecommerce","templates-patterns-collection"),Object(_.__)("Fashion","templates-patterns-collection"),Object(_.__)("Blogging","templates-patterns-collection"),Object(_.__)("Photography","templates-patterns-collection")],Je={all:Object(_.__)("All Categories"),free:Object(_.__)("Free"),business:Object(_.__)("Business"),portfolio:Object(_.__)("Portfolio"),woocommerce:Object(_.__)("WooCommerce"),blog:Object(_.__)("Blog"),personal:Object(_.__)("Personal"),other:Object(_.__)("Other")},Ke={gutenberg:{icon:"gutenberg.jpg",niceName:"Gutenberg"},elementor:{icon:"elementor.jpg",niceName:"Elementor"},"beaver builder":{icon:"beaver.jpg",niceName:Object(r.createElement)(r.Fragment,null,"Beaver ",Object(r.createElement)("span",{className:"long-name"},"Builder"))},brizy:{icon:"brizy.jpg",niceName:"Brizy"},"divi builder":{icon:"divi.jpg",niceName:"Divi"},"thrive architect":{icon:"thrive.jpg",niceName:Object(r.createElement)(r.Fragment,null,"Thrive ",Object(r.createElement)("span",{className:"long-name"},"Architect"))}},Ze=function(e){var t=e.currentStep,n=e.progress,a=e.willDo,c={cleanup:{label:Object(_.__)("Cleanup previous Import","templates-patterns-collection"),status:n.cleanup,willDo:a.cleanup},plugins:{label:Object(_.__)("Installing Plugins","templates-patterns-collection"),status:n.plugins,willDo:!0},content:{label:Object(_.__)("Importing Content","templates-patterns-collection"),status:n.content,willDo:a.content},customizer:{label:Object(_.__)("Importing Customizer Settings","templates-patterns-collection"),status:n.customizer,willDo:a.customizer},widgets:{label:Object(_.__)("Importing Widgets","templates-patterns-collection"),status:n.widgets,willDo:a.widgets}};return Object(r.createElement)("ul",{className:"stepper"},Object.keys(c).map((function(e,n){var a=c[e],o=a.label,i=a.status;if(!a.willDo)return null;var l=O()(["icon",{loading:t===e,warning:t===e,success:"done"===i,error:"error"===i,skip:"skip"===i}]),s="clock";return t===e&&(s="update"),"done"===i&&(s="yes"),"error"===i&&(s="no-alt"),Object(r.createElement)("li",{key:n},Object(r.createElement)("span",{className:l},Object(r.createElement)(E.Dashicon,{icon:s,className:t===e?"loading":""})),Object(r.createElement)("span",null,o))})))},Xe=n(19),et=n.n(Xe),tt=function(e){return et()(e),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("span",{className:"title is-loading",style:{height:35,marginBottom:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20,marginBottom:20}})),Object(r.createElement)("div",{className:"well is-loading"},Object(r.createElement)("span",{className:"title is-loading",style:{height:20}}),Object(r.createElement)("ol",null,Object(r.createElement)("li",null),Object(r.createElement)("li",null),Object(r.createElement)("li",null))),Object(r.createElement)("div",{className:"modal-toggles components-panel"},[1,2].map((function(e){return Object(r.createElement)("div",{key:e,className:"components-panel__body options general is-opened"},Object(r.createElement)("span",{className:"title is-loading"}),Object(r.createElement)("ul",null,[1,2,3].map((function(e){return Object(r.createElement)("li",{className:"option-row",key:e},Object(r.createElement)("div",{className:"mock-icon is-loading"}),Object(r.createElement)("span",{className:"is-loading"}),Object(r.createElement)("div",{className:"toggle is-loading"}))}))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)("span",{className:"link is-loading"}),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import is-loading"})))},nt=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),rt=function(e){var t=e.children,n=e.className,a=O()([n,"tiob-tooltip-wrap"]);return Object(r.createElement)("div",{className:a},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault()},className:"tiob-tooltip-toggle",icon:nt,isLink:!0,isSmall:!0}),Object(r.createElement)("div",{className:"tiob-tooltip-content"},t))};function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentSite;return{editor:n(),siteData:r()}})),Object(h.withDispatch)((function(e,t){var n=t.siteData,r=e("neve-onboarding"),a=r.setTemplateModal,c=r.setSingleTemplateImport,o=r.setImportModalStatus;return{setModal:function(e){return o(e)},runTemplateImport:function(){c(n.slug),a(!0),o(!1)}}})))((function(e){var t=e.setModal,n=e.editor,a=e.siteData,o=e.runTemplateImport,i=Object(r.useState)({content:!0,customizer:!0,widgets:!0,cleanup:!1}),l=y()(i,2),s=l[0],u=l[1],m=Object(r.useState)(!1),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(!1),w=y()(j,2),S=w[0],k=w[1],C=Object(r.useState)(!1),M=y()(C,2),x=M[0],P=M[1],D=Object(r.useState)(!1),I=y()(D,2),B=I[0],z=I[1],U=Object(r.useState)(null),V=y()(U,2),$=V[0],H=V[1],G=Object(r.useState)(null),W=y()(G,2),q=W[0],Q=W[1],Y=Object(r.useState)(!1),J=y()(Y,2),K=J[0],Z=J[1],X=Object(r.useState)(null),ee=y()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(null),ae=y()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(null),le=y()(ie,2),se=le[0],ue=le[1],me=Object(r.useState)(!0),pe=y()(me,2),de=pe[0],be=pe[1],fe=Object(r.useState)(!0),he=y()(fe,2),ge=he[0],Oe=he[1],ve=Object(r.useState)(!0),je=y()(ve,2),ye=je[0],Ee=je[1],_e=tiobDash,we=_e.license,Se=_e.cleanupAllowed,ke=Object(r.useState)(Se),Ce=y()(ke,2),Ne=Ce[0],Te=Ce[1];function Me(){if(!te)return console.log("[S] Plugins."),xe(),!1;Q("plugins"),console.log("[P] Plugins."),A(te).then((function(e){if(!e.success)return Le(e,"plugins"),!1;console.log("[D] Plugins."),v("done"),xe()})).catch((function(e){return Le(e,"plugins")}))}function xe(){if(!s.content)return console.log("[S] Content."),Pe(),!1;var e;Q("content"),console.log("[P] Content."),(e={contentFile:se.content_file,source:"remote",frontPage:se.front_page,shopPages:se.shop_pages,demoSlug:se.slug,editor:n},N(L.root+"/import_content",e)).then((function(e){if(!e.success)return Le(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&H(e.frontpage_id),k("done"),Pe()})).catch((function(e){return Le(e,"content")}))}function Pe(){if(!s.customizer)return console.log("[S] Customizer."),De(),!1;var e;Q("customizer"),console.log("[P] Customizer."),(e={source_url:se.url,theme_mods:se.theme_mods,wp_options:se.wp_options},N(L.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return Le(e,"customizer"),!1;console.log("[D] Customizer."),P("done"),De()})).catch((function(e){return Le(e,"customizer")}))}function De(){if(!s.widgets)return console.log("[S] Widgets."),Ie(),!1;var e;Q("widgets"),console.log("[P] Widgets."),(e=se.widgets,N(L.root+"/import_widgets",e)).then((function(e){if(!e.success)return Le(e,"widgets"),!1;console.log("[D] Widgets."),z("done"),Ie()})).catch((function(e){return Le(e,"widgets")}))}function Ie(){Q("done"),Te("yes"),tiobDash.cleanupAllowed="yes",Z(!1)}function Le(e,t){Z(!1),Q(null),"cleanup"===t&&v("skip"),"plugins"===t&&k("skip"),["content","plugins"].includes(t)&&P("skip"),["content","plugins","customizer"].includes(t)&&z("skip");var n={cleanup:Object(_.__)("Something went wrong while cleaning the previous import.","templates-patterns-collection"),plugins:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection"),content:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection"),customizer:Object(_.__)("Something went wrong while updating the customizer settings.","templates-patterns-collection"),widgets:Object(_.__)("Something went wrong while importing the widgets.","templates-patterns-collection")};switch(t){case"cleanup":b("error");break;case"plugins":v("error");break;case"content":k("error");break;case"customizer":P("error");break;case"widgets":z("error")}oe(e.data?{message:n[t],code:e.data}:{message:n[t]})}Object(r.useEffect)((function(){var e=a.remote_url||a.url,t=new URL("".concat(function(e){return e.replace(/\/$/,"")}(e)+"/","wp-json/ti-demo-data/data"));t.searchParams.append("license",we?we.key:"free"),T(t,!0,!1).then((function(e){e.ok||(oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_response"}),be(!1)),e.json().then((function(e){ue(ct(ct({},e),a));var t=ct({},e.mandatory_plugins||{}),n=ct({},e.recommended_plugins||{}),r=e.default_off_recommended_plugins||[];Object.keys(t).forEach((function(e){t[e]=!0})),Object.keys(n).forEach((function(e){n[e]=!r.includes(e)})),ne(ct(ct({},n),t)),be(!1)}))})).catch((function(){oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_catch"}),be(!1)}))}),[]);var Ae=function(){if(K)return!1;t(!1)},Be=!a.external_plugins||a.external_plugins.every((function(e){return!0===e.active})),Re=Object.keys(s).every((function(e){return!1===s[e]})),Fe={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=elementor"),brizy:"".concat(tiobDash.onboarding.homeUrl,"/?brizy-edit"),"beaver builder":"".concat(tiobDash.onboarding.homeUrl,"/?fl_builder"),"thrive architect":"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=architect&tve=true"),"divi builder":"".concat(tiobDash.onboarding.homeUrl,"/?et_fb=1&PageSpeed=off"),gutenberg:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=edit")}[n];return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:de}]),onRequestClose:Ae,shouldCloseOnClickOutside:!K&&!de,isDismissible:!K&&!de},de?Object(r.createElement)(tt,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},K||"done"===q||ce?Object(r.createElement)(r.Fragment,null,ce&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(F,{message:ce.message||null,code:ce.code||null}),Object(r.createElement)("hr",null)),null!==q&&Object(r.createElement)(Ze,{progress:{cleanup:d,plugins:g,content:S,customizer:x,widgets:B},currentStep:q,willDo:s}),"done"===q&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),Object(r.createElement)("hr",null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(
9
  /* translators: name of starter site */
10
+ Object(_.__)("Import %s as a complete site","templates-patterns-collection"),se.title)),Object(r.createElement)("p",{className:"description"},Object(_.__)("Import the entire site including customizer options, pages, content and plugins.","templates-patterns-collection")))}),null),Object(r.createElement)((function(){return Object(r.createElement)(R,{data:se,externalInstalled:Be})}),null),Object(r.createElement)(E.Panel,{className:"modal-toggles"},Object(r.createElement)((function(){var e={content:{title:Object(_.__)("Content","templates-patterns-collection"),icon:"admin-post"},customizer:{title:Object(_.__)("Customizer","templates-patterns-collection"),icon:"admin-customizer"},widgets:{title:Object(_.__)("Widgets","templates-patterns-collection"),icon:"admin-generic"}};return"yes"===Ne&&(e=ct({cleanup:{icon:"trash",title:Object(_.__)("Cleanup previous import","templates-patterns-collection"),tooltip:Object(_.__)("This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import","templates-patterns-collection")}},e)),Object(r.createElement)(E.PanelBody,{onToggle:function(){Ee(!ye)},opened:ye,className:"options general",title:Object(_.__)("Import settings","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:s[t]}),o=e[t],i=o.icon,l=o.title,m=o.tooltip;return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:i}),Object(r.createElement)("span",null,l),m&&Object(r.createElement)(rt,null,m),Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:s[t],onChange:function(){u(ct(ct({},s),{},c()({},t,!s[t])))}})))})))}),null),Object(r.createElement)((function(){if(de)return null;var e=ct(ct({},se.recommended_plugins||{}),se.mandatory_plugins||{});return Object(r.createElement)(E.PanelBody,{onToggle:function(){Oe(!ge)},opened:ge,className:"options plugins",title:Object(_.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:te[t]});return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:"admin-plugins"}),Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:e[t]}}),t in se.recommended_plugins&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:te[t],onChange:function(){ne(ct(ct({},te),{},c()({},t,!te[t])))}})))})))}),null)))),!K&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==q?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,onClick:o},Object(_.__)("I want to import just the templates","templates-patterns-collection")),!ce&&Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,disabled:Re||!Be,onClick:function(){Z(!0),function(){if(console.clear(),!s.cleanup)return console.log("[S] Cleanup."),Me(),!1;var e;Q("cleanup"),console.log("[P] Cleanup."),(e={},N(L.root+"/cleanup",e)).then((function(e){if(!e.success)return Le(e,"cleanup"),!1;console.log("[D] Cleanup."),b("done"),Me()})).catch((function(e){return Le(e,"cleanup")}))}()}},Object(_.__)("Import entire site","templates-patterns-collection"))):Object(r.createElement)("div",{className:"import-done-actions"},Object(r.createElement)(E.Button,{isLink:!0,className:"close",onClick:Ae},Object(_.__)("Back to Sites Library","templates-patterns-collection")),Object(r.createElement)(E.Button,{isSecondary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",href:Fe},Object(_.__)("Add your own content","templates-patterns-collection"))))))})),it=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setSingleTemplateImport,r=t.setImportModalStatus,a=t.setInstallModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setInstallModal:function(e){return a(e)},setTemplateModal:t.setTemplateModal}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentSite,c=t.getCurrentEditor;return{templateModal:n(),themeStatus:r().action||!1,site:a(),editor:c()}})))((function(e){var t=e.slug,n=e.cancel,a=e.setModal,c=e.setInstallModal,o=e.themeStatus,i=e.site,l=e.editor,s=e.setTemplateModal,u=e.templateModal,m=Object(r.useState)([]),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!0),h=y()(f,2),g=h[0],O=h[1],v=Object(r.useState)(""),j=y()(v,2),w=j[0],S=j[1],k=Object(r.useState)([]),C=y()(k,2),N=C[0],T=C[1],M=i.title,x=i.upsell,P=i.utmOutboundLink;Object(r.useEffect)((function(){D()}),[]);var D=function(){ie(!0,{per_page:100,template_site_slug:t,premade:!0,type:l}).then((function(e){b(e.templates||[]),O(!1)}))},I=function(e){S(e)},L=function(e){if(o)return c(!0),!1;T([e]),s(!0)},A=function(e){if(e.preventDefault(),o)return c(!0),!1;a(!0)},B=d.findIndex((function(e){return e.link===w})),R=d.find((function(e){return e.link===w}));return Object(r.createElement)("div",{className:"single-templates-wrapper"},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"breadcrumb"},Object(r.createElement)(E.Button,{isTertiary:!0,onClick:n},Object(r.createElement)(E.Icon,{icon:Q}),Object(_.__)("Back to Starter Sites"))),Object(r.createElement)("div",{className:"header"},Object(r.createElement)("div",{className:"text"},Object(r.createElement)("h1",null,M||"",x&&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"},!x&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(e){if(e.preventDefault(),o)return c(!0),!1;T(d),s(!0)}},Object(_.__)("Import All Pages"))),x&&Object(r.createElement)(E.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade"))))),Object(r.createElement)((function(){return g?Object(r.createElement)(E.Spinner,null):d.length<1?Object(_.__)("No templates for this starter site."):Object(r.createElement)("div",{className:"cloud-items is-grid"},Object(r.createElement)("div",{className:"table"},d.map((function(e){return Object(r.createElement)(ve,{upsell:x,onPreview:I,userTemplate:!1,key:e.template_id,item:e,loadTemplates:D,onImport:function(){return L(e)},grid:!0})}))))}),null),w&&Object(r.createElement)(xe,{heading:R.template_name||null,previewUrl:w,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:W,onClick:function(){return S("")},label:Object(_.__)("Close","templates-patterns-collection")}),d.length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?q:Q,onClick:function(){var e=B-1;0===B&&(e=d.length-1),S(d[e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:q,onClick:function(){var e=B+1;B===d.length-1&&(e=0),S(d[e].link)}}))),rightButtons:Object(r.createElement)(r.Fragment,null,!x&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(){return L(R)}},Object(_.__)("Import Page"))),x&&Object(r.createElement)(E.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade")))}),u&&N&&!g&&N.length>0&&Object(r.createElement)(He,{templatesData:N}))})),lt=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c={starterSites:Object(_.__)("Starter Sites","templates-patterns-collection"),pageTemplates:Object(_.__)("Page Templates","templates-patterns-collection"),library:Object(_.__)("My Library","templates-patterns-collection")},o=Object(r.useState)(!1),i=y()(o,2),l=i[0],s=i[1],u=function(){var e=function(e){var t=window.location.hash;return"string"!=typeof window.location.hash?null:(t=t.substring(1),Object.keys(e).includes(t)?t:null)}(c);if(null!==e){var n=document.getElementById("menu-appearance"),r=n.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]'),a=n.querySelector('a[href="themes.php?page=tiob-starter-sites"]');if(r&&a){var o=r.parentElement,i=a.parentElement;n.querySelector(".current").classList.remove("current"),o.classList.remove("current"),"library"===e?o.classList.add("current"):i.classList.add("current")}t(e)}};return Object(r.useEffect)((function(){u(),window.addEventListener("hashchange",u)}),[]),Object(r.createElement)("div",{className:"header-nav"},Object.keys(c).map((function(e){return Object(r.createElement)(E.Button,{href:"#"+e,key:e,isTertiary:!0,isPressed:e===n,onClick:function(n){var r;n.preventDefault(),t(e),r=e,window.location.hash=r}},c[e])})),"starterSites"!==n&&Object(r.createElement)(E.Button,{icon:pe,onClick:function(){s(!0),localStorage.setItem("tpcCacheBuster",ae());var e=n;t(null),setTimeout((function(){t(e),s(!1)}),100)},label:Object(_.__)("Re-sync Library"),className:O()("is-sync",{"is-loading":l}),disabled:a||l,"data-content":Object(_.__)("Sync")}))},st=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState;return{cancelOnboarding:function(){n(!1)},setCurrentTab:t.setCurrentTab,setFetching:t.setFetching}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getCurrentTab,a=t.getFetching;return{isOnboarding:n(),currentTab:r(),isFetching:a()}})))((function(e){var t=e.isOnboarding,n=e.cancelOnboarding,a=e.setCurrentTab,c=e.currentTab;return Object(r.createElement)("div",{className:"ob-head"},!t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"header-container"},Object(r.createElement)("h2",null,!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:Ge}),Object(r.createElement)("span",null,Object(_.__)("Templates Cloud","templates-patterns-collection"))),Object(r.createElement)(lt,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(E.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),ut=n(20),mt=n.n(ut),pt=Object(v.compose)(Object(h.withSelect)((function(e){return{themeStatus:(0,e("neve-onboarding").getThemeAction)().action||!1}})),Object(h.withDispatch)((function(e,t){var n=t.data,r=n.slug,a=e("neve-onboarding"),c=a.setCurrentSite,o=a.setPreviewStatus,i=a.setImportModalStatus,l=a.setInstallModalStatus,s=a.setSingleTemplateImport;return{setSite:function(){return c(n)},setPreview:function(e){return o(e)},setModal:function(e){return i(e)},setInstallModal:function(e){return l(e)},setImportingPages:function(){return s(r)}}})))((function(e){var t=e.data,n=e.setSite,a=e.setPreview,c=e.setModal,o=e.themeStatus,i=e.setInstallModal,l=e.setImportingPages,s=t.upsell,u=(t.slug,t.screenshot),m=t.title,p=t.has_templates,d=Object(r.useState)(""),b=y()(d,2),f=b[0],h=b[1],g=O()("card starter-site-card",{"has-templates":p});return Object(r.createElement)("div",{onMouseEnter:function(){h("visible")},onMouseLeave:function(){h("")},className:g},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"actions "+f},Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(e){e.preventDefault(),n(),a(!0)}},Object(_.__)("Preview","templates-patterns-collection")),!s&&Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(e){if(e.preventDefault(),n(),o)return i(!0),!1;c(!0)}},Object(_.__)("Import","templates-patterns-collection")),p&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",onClick:function(e){e.preventDefault(),n(),l()}},Object(_.__)("View Pages","templates-patterns-collection"))),u&&Object(r.createElement)("div",{className:"image",style:{backgroundImage:'url("'.concat(u,'")')}})),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},m),s&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Dashicon,{icon:"lock",size:15}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))))})),dt=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentSite,r=t.getThemeAction;return{siteData:n(),themeStatus:r().action||!1}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentSite,r=t.setPreviewStatus,a=t.setImportModalStatus,c=t.setInstallModalStatus;return{setSite:function(e){return n(e)},setPreview:function(e){return r(e)},setModal:function(e){return a(e)},setInstallModal:function(e){return c(e)}}})))((function(e){var t=e.next,n=e.prev,a=e.siteData,c=e.setSite,o=e.setPreview,i=e.setModal,l=e.themeStatus,s=e.setInstallModal;return Object(r.createElement)("div",{className:"ob-preview"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{src:a.url,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},Object(r.createElement)("div",{className:"navigator"},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),o(!1),c(null)},className:"close",label:Object(_.__)("Close","templates-patterns-collection"),icon:W}),n&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(n)},className:"prev",label:Object(_.__)("Previous","templates-patterns-collection"),icon:Object(_.isRTL)()?q:Q}),t&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(t)},className:"next",label:Object(_.__)("Next","templates-patterns-collection"),icon:Object(_.isRTL)()?Q:q})),Object(r.createElement)("div",{className:"actions"},a.upsell?Object(r.createElement)(E.Button,{className:"upgrade",isPrimary:!0,href:a.utmOutboundLink||tiobDash.upgradeURL},Object(_.__)("Upgrade and Import","templates-patterns-collection")):Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,onClick:function(e){if(e.preventDefault(),l)return s(!0),!1;i(!0)}},Object(_.__)("Import","templates-patterns-collection")))))})),bt=function(e){var t=e.editor,n=e.data,a=n.text,c=n.cta,o=n.url;return Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"notification"},Object(r.createElement)("p",null,a),o&&c&&Object(r.createElement)(E.Button,{target:"_blank",isSecondary:!0,href:o.replace("<builder_name>",t).replace(" ","")},c))}),null)},ft=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentCategory,r=t.getSearchQuery;return{category:n(),query:r()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentCategory,r=t.setSearchQuery;return{setCurrentCategory:function(e){return n(e)},onSearch:function(e){return r(e)}}})))((function(e){var t=e.count,n=e.categories,a=e.onSearch,c=e.category,o=e.setCurrentCategory,i=e.query,l=e.className,s=Object(r.useState)(!1),u=y()(s,2),m=u[0],p=u[1],d=function(){return p(!m)},b=O()(l,"header-form");return Object(r.createElement)("div",{className:b},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:i,placeholder:Object(_.__)("Search for a starter site","templates-patterns-collection")+"..."}),Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"ob-dropdown categories-selector"},Object(r.createElement)(E.Button,{onClick:d,className:"select ob-dropdown"},n[c],Object(r.createElement)(E.Dashicon,{size:14,icon:m?"arrow-up-alt2":"arrow-down-alt2"}),m&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:d,noArrow:!0},m&&Object(r.createElement)("ul",{className:"options"},Object.keys(n).map((function(e,a){return e===c||"free"===e&&t.all===t[e]?null:Object(r.createElement)("li",{key:a},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),o(e),p(!1)}},Object(r.createElement)("span",null,n[e]),Object(r.createElement)("span",{className:"count"},t[e])))}))))))}),null)))})),ht=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.editor,c=e.setCurrentEditor,o=e.sites,i=e.isSmall,l=Object(r.useState)(!1),s=y()(l,2),u=s[0],m=s[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])))}))))))})),gt=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.onlyProSites,c=e.editor,o=e.setCurrentEditor,i=e.sites,l=Object.keys(i);return Object(r.createElement)("div",{className:"editor-tabs"},l.map((function(e,i){var l=O()(["tab",e,{active:e===c}]);return Object(r.createElement)("a",{key:i,href:"#",className:l,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"},t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e]),a.includes(e)&&Object(r.createElement)("span",{className:"pro-badge"},"PRO"))})))})),Ot=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getOnboardingStatus,c=t.getSites;return{editor:n(),category:r(),isOnboarding:a(),getSites:c()}})))((function(e){var t,n=e.filterByCategory,a=e.filterBySearch,c=e.getSitesForBuilder,o=e.isOnboarding,i=e.getSites,l=e.category,s=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,l),r=a(r),t.builders[e]=r?r.length:0})),Object.keys(Je).forEach((function(e){var r=c(s);r=n(r,e),r=a(r),t.categories[e]=r?r.length:0})),t);return Object(r.createElement)(r.Fragment,null,!o&&!h&&Object(r.createElement)("div",{className:"sticky-nav",style:g},Object(r.createElement)("div",{className:"container sticky-nav-content"},!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:Ge,size:32}),Object(r.createElement)(ft,{className:"in-sticky",count:j.categories,categories:Je}),Object(r.createElement)(ht,{isSmall:!0,count:j.builders,EDITOR_MAP:Ke}))),Object(r.createElement)(H.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),Object(r.createElement)(ht,{count:j.builders,EDITOR_MAP:Ke}),Object(r.createElement)(ft,{count:j.categories,categories:Je}),Object(r.createElement)(gt,{EDITOR_MAP:Ke,onlyProSites:v,count:j.builders}),!tiobDash.isValidLicense&&"gutenberg"!==s&&Object(r.createElement)(bt,{data:tiobDash.upsellNotifications.upsell_1,editor:s}))))})),vt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab,setSearchQuery:t.setSearchQuery}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,l=t.getSites,s=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSearchQuery;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:s(),isOnboarding:i(),getSites:l(),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,l=e.isOnboarding,s=e.cancelOnboarding,u=e.setSearchQuery,m=e.searchQuery,p=t.sites,d=void 0===p?{}:p,b=function(){var e={};return g().forEach((function(t){var n=d&&d[t]?d[t]:{};e[t]=V()(Object.values(n))})),e},f=function(e,t){return"free"===t?e.filter((function(e){return!e.upsell})):"all"!==t?e.filter((function(e){return e.keywords.includes(t)})):e},h=function(e){return m?new mt.a(e,{includeScore:!0,keys:["title","slug","keywords"]}).search(m).map((function(e){return e.item})):e},g=function(){return Object.keys(d)},O=function(){var e=b()[c];return e=h(e),f(e,n)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null===i)return null;var t=b()[c],n=t.indexOf(i);return-1===n||1===t.length?null:e&&0===n?t[t.length-1]:e||n!==t.length-1?t[e?n-1:n+1]:t[0]};return 1>d.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,Object(_.__)("Starter sites could not be loaded. Please refresh and try again.","templates-patterns-collection"),l&&Object(r.createElement)(E.Button,{style:{display:"block",margin:"20px auto"},isPrimary:!0,onClick:s},Object(_.__)("Close","templates-patterns-collection")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ot,{getSitesForBuilder:function(e){return b()[e]},filterBySearch:h,filterByCategory:f}),0===O().length&&Object(r.createElement)("div",{className:"no-results"},Object(r.createElement)("p",null,Object(_.__)("No results found.","templates-patterns-collection")," ",Object(_.__)("You can try a different search or use one of the categories below.","templates-patterns-collection")),Object(r.createElement)("div",{className:"tags"},Ye.map((function(e,t){return Object(r.createElement)(E.Button,{key:t,isPrimary:!0,className:"tag",onClick:function(t){t.preventDefault(),u(e),a()}},e)})))),Object(r.createElement)((function(){var e=Object(r.useState)(9),t=y()(e,2),n=t[0],a=t[1],c=O();return Object(r.createElement)("div",{className:"ob-sites is-grid"},c.slice(0,n).map((function(e,t){return Object(r.createElement)(pt,{key:t,data:e})})),Object(r.createElement)(H.a,{onChange:function(e){if(!e)return!1;a(n+9)}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})))}),null),o&&i&&Object(r.createElement)(dt,{next:v(),prev:v(!0)}))})),jt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,l=t.getSites,s=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSingleImport;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:s(),isOnboarding:i(),getSites:l(),currentTab:u(),singleImport:m()}})))((function(e){var t=e.getSites,n=e.installModal,a=e.currentTab,c=e.singleImport,o=e.importModal,i=e.currentSiteData,l=(e.isOnboarding,t.migration);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ob"},Object(r.createElement)(st,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},l&&Object(r.createElement)(z,{data:l}),"starterSites"===a&&(c?Object(r.createElement)(it,{slug:c}):Object(r.createElement)(vt,null)),"library"===a&&Object(r.createElement)(Qe,null),"pageTemplates"===a&&Object(r.createElement)(Qe,{isGeneral:!0})))),n&&Object(r.createElement)(I,null),o&&i&&Object(r.createElement)(ot,null))})),yt=Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getUserStatus;return{onboarding:n(),userStatus:r()}}))((function(e){var t=e.onboarding,n=e.userStatus,a=O()(["content-wrap","starter-sites",{"is-onboarding":t,"is-free":!n}]);return Object(r.createElement)("div",{className:"tiob-wrap"},Object(r.createElement)("div",{className:a},Object(r.createElement)("div",{className:"container content"},Object(r.createElement)("div",{className:"main"},Object(r.createElement)("div",{className:"tab-content columns starter-sites"},Object(r.createElement)(jt,null))))))}));Object(h.registerStore)("neve-onboarding",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REFRESH_SITES":var n=t.payload.sites;return i(i({},e),{},{sites:n});case"SET_CURRENT_EDITOR":var r=t.payload.editor;return localStorage.setItem("neve-onboarding-editor",r),i(i({},e),{},{editor:r});case"SET_CURRENT_CATEGORY":var a=t.payload.category;return i(i({},e),{},{category:a});case"SET_FOCUSED_SITE":var c=t.payload.siteData;return i(i({},e),{},{currentSite:c});case"SET_PREVIEW_STATUS":var o=t.payload.previewStatus;return i(i({},e),{},{previewStatus:o});case"SET_IMPORT_MODAL_STATUS":var l=t.payload.importModalStatus;return i(i({},e),{},{importModalStatus:l});case"SET_INSTALL_MODAL_STATUS":var s=t.payload.installModalStatus;return i(i({},e),{},{installModalStatus:s});case"SET_ONBOARDING":var u=t.payload.status;return i(i({},e),{},{isOnboarding:u});case"SET_THEME_ACTIONS":var m=t.payload.themeActions;return i(i({},e),{},{themeAction:m});case"SET_CURRENT_TAB":var p=t.payload.currentTab;return i(i({},e),{},{singleTemplateImport:null,currentTab:p});case"SET_FETCHING":var b=t.payload.fetching;return i(i({},e),{},{fetching:b});case"SET_SINGLE_TEMPLATE_IMPORT":var f=t.payload.slug;return i(i({},e),{},{singleTemplateImport:f});case"SET_TEMPLATE_MODAL":var h=t.payload.data;return i(i({},e),{},{templateModal:h});case"SET_SEARCH_QUERY":var g=t.payload.query;return i(i({},e),{},{searchQuery:g})}return e},actions:b,selectors:f}),Object(r.render)(Object(r.createElement)(yt,null),document.getElementById("tpc-app"))}]);
assets/build/style-app-rtl.css CHANGED
@@ -1 +1 @@
1
- #wpcontent{padding-right:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-left:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;right:0;left:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;right:0;left:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end}.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}.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}.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 .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:15px;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:11px}.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 .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 .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__header{border:none;margin-bottom:10px !important}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:25px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:20px;line-height:34px;color:#000}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-left:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 20px 0 0}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 20px 0 0;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-right:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-right:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-right:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-left:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-left:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-right:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:19px;font-weight:700;line-height:30px}.modal-toggles .options button svg{width:30px;height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-right:20px;color:#282828}.modal-toggles .option-row .actions{margin-right:auto}.modal-toggles .option-row .dashicon{margin-right:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-right:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-right:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-right:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;right:0;left:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;right:160px}.auto-fold .sticky-nav{right:32px}}@media(min-width: 961px){.sticky-nav{right:160px !important}.folded .sticky-nav{right:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-left:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-right:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-right:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-left:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-right:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-right:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-right:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-right:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-left-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #d9d9d9;border-right:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:6px 0 0 6px}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:0 6px 6px 0}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-right:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-left:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 0 8px 15px;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;left:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:right;padding-left:20px;border-left:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 20px 0 0;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.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;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-left:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-left:5px}.notification .components-button .dashicon{margin-right:5px}.tiob-tooltip-wrap{position:relative;display:flex;align-items:center;margin-right:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover+.tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus+.tiob-tooltip-content{opacity:1;pointer-events:all}.tiob-tooltip-content{top:100%;right:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 auto 0 0}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-left-radius:0;border-top-left-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-right-radius:0;border-bottom-right-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-left:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-left:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 5px 12px 20px}}
1
+ #wpcontent{padding-right:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-left:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;right:0;left:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;right:0;left:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end;z-index:1}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.is-free .header-nav .components-button[href="#library"]::after{content:"PRO";border-radius:2px;background:#6eb77a;color:#fff;padding:2px 5px;font-size:10px;top:-5px;position:relative;right:5px}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center;z-index:1}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-right:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-right:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-left:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-right:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-left:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-left:auto !important;margin-right:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-right:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-left:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 50px 5px 30px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 15px 0 5px;content:attr(data-content);margin-left:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;right:10px}.search .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:15px;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:11px}.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 .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 .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__header{border:none;margin-bottom:10px !important}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:25px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:20px;line-height:34px;color:#000}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-left:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 20px 0 0}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 20px 0 0;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-right:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-right:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-right:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-left:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-left:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-right:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:19px;font-weight:700;line-height:30px}.modal-toggles .options button svg{width:30px;height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-right:20px;color:#282828}.modal-toggles .option-row .actions{margin-right:auto}.modal-toggles .option-row .dashicon{margin-right:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-right:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-right:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-right:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;right:0;left:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;right:160px}.auto-fold .sticky-nav{right:32px}}@media(min-width: 961px){.sticky-nav{right:160px !important}.folded .sticky-nav{right:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-left:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-right:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-right:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-left:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-right:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-right:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-right:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-right:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-left-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #d9d9d9;border-right:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:6px 0 0 6px}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:0 6px 6px 0}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-right:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-left:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 0 8px 15px;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;left:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:right;padding-left:20px;border-left:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 20px 0 0;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.cloud-items .empty-information{max-width:500px;margin:0 auto;text-align:center}.cloud-items .empty-information img{max-width:150px}.cloud-items .empty-information h3,.cloud-items .empty-information p{color:#616161}.cloud-items.is-dummy{margin-top:25px;margin-bottom:25px}.cloud-items .upsell-modal-overlay{top:0;left:auto;bottom:auto;right:0;width:100%;height:100%;position:absolute;background:rgba(0,0,0,.35)}.cloud-items .upsell-modal-overlay .upsell-modal{top:40%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:90%;transform:translate(50%, -50%);position:absolute}.cloud-items .upsell-modal-overlay .upsell-modal .upsell-modal-content{display:flex}.cloud-items .upsell-modal-overlay .upsell-modal .info{background:#fff;width:60%;padding:100px 25px}.cloud-items .upsell-modal-overlay .upsell-modal .info h3{font-size:24px;line-height:28.64px}.cloud-items .upsell-modal-overlay .upsell-modal .info p{font-size:15px}.cloud-items .upsell-modal-overlay .upsell-modal .icon{display:flex;align-items:center;justify-content:center;background:#0566d5;width:40%}.cloud-items .upsell-modal-overlay .upsell-modal .icon .ob-logo{width:100px;margin:0}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#b7c0cc}.table-grid .grid-preview.is-loading .preview-actions{display:flex}.table-grid .grid-preview .preview-actions{opacity:0;transition:.3s ease opacity;width:100%;height:auto;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.9);display:flex}.table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.table-grid .grid-preview:hover .preview-actions{opacity:1}.table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px;flex-grow:1}.table-grid .card-footer form{display:flex;align-items:center}.table-grid .card-footer .components-base-control{flex-grow:1}.table-grid .card-footer .components-base-control__field{margin-bottom:0}.table-grid .card-footer button{height:auto;margin-right:auto}.table-grid .card-footer p{font-weight:600;margin:0}.filter-overlay .components-button:not(.has-icon){padding-right:38px}.pagination{padding-top:20px}.pagination .components-button{margin-left:10px;border-radius:2px;box-shadow:none}.pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.pagination .components-button:not(.is-primary){background:#fff}.pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.single-templates-wrapper .components-spinner{display:block;margin:0 auto}.single-templates-wrapper .top{padding:25px 0 30px}.single-templates-wrapper .header{display:flex;flex-direction:column}.single-templates-wrapper .header h1{display:flex;align-items:center;font-size:26px;font-weight:700}.single-templates-wrapper .header .actions{margin-top:15px}.single-templates-wrapper .header .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.single-templates-wrapper .header .actions .components-button:not(:first-child){margin-right:20px}.single-templates-wrapper .header .actions .components-button.is-primary{padding:10px 30px}.single-templates-wrapper .header .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.single-templates-wrapper .header .description{font-size:16px;color:#282828}.single-templates-wrapper .header .pro-badge{font-size:11px;margin-right:20px}.ob-preview.single-templates .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-preview.single-templates .actions .components-button:not(:first-child){margin-right:20px}.ob-preview.single-templates .actions .components-button.is-primary{padding:10px 30px}.ob-preview.single-templates .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.notification{color:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:20px;box-sizing:border-box;background-color:#0073aa;border:1px solid #006291;margin:0 0 20px;max-height:1000px}.notification .components-button{box-shadow:none;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-left:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-left:5px}.notification .components-button .dashicon{margin-right:5px}.tiob-tooltip-wrap{position:relative;display:flex;align-items:center;margin-right:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover+.tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus+.tiob-tooltip-content{opacity:1;pointer-events:all}.tiob-tooltip-content{top:100%;right:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 auto 0 0}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-left-radius:0;border-top-left-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-right-radius:0;border-bottom-right-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-left:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-left:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 5px 12px 20px}}
assets/build/style-app.css CHANGED
@@ -1 +1 @@
1
- #wpcontent{padding-left:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-right:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;left:0;right:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end}.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}.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}.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 .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:15px;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:11px}.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 .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 .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__header{border:none;margin-bottom:10px !important}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:25px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:20px;line-height:34px;color:#000}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-right:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 0 0 20px}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 0 0 20px;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-left:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-left:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-left:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-right:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-right:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-left:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:19px;font-weight:700;line-height:30px}.modal-toggles .options button svg{width:30px;height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-left:20px;color:#282828}.modal-toggles .option-row .actions{margin-left:auto}.modal-toggles .option-row .dashicon{margin-left:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-left:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-left:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-left:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;left:0;right:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;left:160px}.auto-fold .sticky-nav{left:32px}}@media(min-width: 961px){.sticky-nav{left:160px !important}.folded .sticky-nav{left:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-right:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-left:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-left:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-right:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-left:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-left:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-left:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-left:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-right-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #d9d9d9;border-left:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:0 6px 6px 0}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:6px 0 0 6px}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-left:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-right:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 15px 8px 0;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;right:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:left;padding-right:20px;border-right:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 0 0 20px;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.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;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-right:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-right:5px}.notification .components-button .dashicon{margin-left:5px}.tiob-tooltip-wrap{position:relative;display:flex;align-items:center;margin-left:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover+.tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus+.tiob-tooltip-content{opacity:1;pointer-events:all}.tiob-tooltip-content{top:100%;left:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 0 0 auto}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-right-radius:0;border-top-right-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-left-radius:0;border-bottom-left-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-right:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-right:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 20px 12px 5px}}
1
+ #wpcontent{padding-left:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-right:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;left:0;right:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end;z-index:1}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.is-free .header-nav .components-button[href="#library"]::after{content:"PRO";border-radius:2px;background:#6eb77a;color:#fff;padding:2px 5px;font-size:10px;top:-5px;position:relative;left:5px}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center;z-index:1}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-left:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-left:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-right:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-left:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-right:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-right:auto !important;margin-left:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-left:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-right:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 30px 5px 50px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 5px 0 15px;content:attr(data-content);margin-right:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;left:10px}.search .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:15px;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:11px}.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 .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 .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__header{border:none;margin-bottom:10px !important}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:25px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:20px;line-height:34px;color:#000}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-right:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 0 0 20px}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 0 0 20px;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-left:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-left:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-left:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-right:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-right:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-left:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:19px;font-weight:700;line-height:30px}.modal-toggles .options button svg{width:30px;height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-left:20px;color:#282828}.modal-toggles .option-row .actions{margin-left:auto}.modal-toggles .option-row .dashicon{margin-left:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-left:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-left:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-left:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;left:0;right:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;left:160px}.auto-fold .sticky-nav{left:32px}}@media(min-width: 961px){.sticky-nav{left:160px !important}.folded .sticky-nav{left:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-right:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-left:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-left:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-right:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-left:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-left:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-left:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-left:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-right-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #d9d9d9;border-left:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:0 6px 6px 0}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:6px 0 0 6px}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-left:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-right:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 15px 8px 0;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;right:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:left;padding-right:20px;border-right:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 0 0 20px;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.cloud-items .empty-information{max-width:500px;margin:0 auto;text-align:center}.cloud-items .empty-information img{max-width:150px}.cloud-items .empty-information h3,.cloud-items .empty-information p{color:#616161}.cloud-items.is-dummy{margin-top:25px;margin-bottom:25px}.cloud-items .upsell-modal-overlay{top:0;right:auto;bottom:auto;left:0;width:100%;height:100%;position:absolute;background:rgba(0,0,0,.35)}.cloud-items .upsell-modal-overlay .upsell-modal{top:40%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:90%;transform:translate(-50%, -50%);position:absolute}.cloud-items .upsell-modal-overlay .upsell-modal .upsell-modal-content{display:flex}.cloud-items .upsell-modal-overlay .upsell-modal .info{background:#fff;width:60%;padding:100px 25px}.cloud-items .upsell-modal-overlay .upsell-modal .info h3{font-size:24px;line-height:28.64px}.cloud-items .upsell-modal-overlay .upsell-modal .info p{font-size:15px}.cloud-items .upsell-modal-overlay .upsell-modal .icon{display:flex;align-items:center;justify-content:center;background:#0566d5;width:40%}.cloud-items .upsell-modal-overlay .upsell-modal .icon .ob-logo{width:100px;margin:0}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#b7c0cc}.table-grid .grid-preview.is-loading .preview-actions{display:flex}.table-grid .grid-preview .preview-actions{opacity:0;transition:.3s ease opacity;width:100%;height:auto;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.9);display:flex}.table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.table-grid .grid-preview:hover .preview-actions{opacity:1}.table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px;flex-grow:1}.table-grid .card-footer form{display:flex;align-items:center}.table-grid .card-footer .components-base-control{flex-grow:1}.table-grid .card-footer .components-base-control__field{margin-bottom:0}.table-grid .card-footer button{height:auto;margin-left:auto}.table-grid .card-footer p{font-weight:600;margin:0}.filter-overlay .components-button:not(.has-icon){padding-left:38px}.pagination{padding-top:20px}.pagination .components-button{margin-right:10px;border-radius:2px;box-shadow:none}.pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.pagination .components-button:not(.is-primary){background:#fff}.pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.single-templates-wrapper .components-spinner{display:block;margin:0 auto}.single-templates-wrapper .top{padding:25px 0 30px}.single-templates-wrapper .header{display:flex;flex-direction:column}.single-templates-wrapper .header h1{display:flex;align-items:center;font-size:26px;font-weight:700}.single-templates-wrapper .header .actions{margin-top:15px}.single-templates-wrapper .header .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.single-templates-wrapper .header .actions .components-button:not(:first-child){margin-left:20px}.single-templates-wrapper .header .actions .components-button.is-primary{padding:10px 30px}.single-templates-wrapper .header .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.single-templates-wrapper .header .description{font-size:16px;color:#282828}.single-templates-wrapper .header .pro-badge{font-size:11px;margin-left:20px}.ob-preview.single-templates .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-preview.single-templates .actions .components-button:not(:first-child){margin-left:20px}.ob-preview.single-templates .actions .components-button.is-primary{padding:10px 30px}.ob-preview.single-templates .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.notification{color:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:20px;box-sizing:border-box;background-color:#0073aa;border:1px solid #006291;margin:0 0 20px;max-height:1000px}.notification .components-button{box-shadow:none;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-right:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-right:5px}.notification .components-button .dashicon{margin-left:5px}.tiob-tooltip-wrap{position:relative;display:flex;align-items:center;margin-left:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover+.tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus+.tiob-tooltip-content{opacity:1;pointer-events:all}.tiob-tooltip-content{top:100%;left:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 0 0 auto}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-right-radius:0;border-top-right-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-left-radius:0;border-bottom-left-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-right:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-right:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 20px 12px 5px}}
assets/img/layout.jpg ADDED
Binary file
assets/src/Components/App.js CHANGED
@@ -3,11 +3,14 @@ import classnames from 'classnames';
3
 
4
  import Onboarding from './Main';
5
 
6
- const App = ( { onboarding } ) => {
7
  const wrapClasses = classnames( [
8
  'content-wrap',
9
  'starter-sites',
10
- { 'is-onboarding': onboarding },
 
 
 
11
  ] );
12
  return (
13
  <div className="tiob-wrap">
@@ -25,8 +28,9 @@ const App = ( { onboarding } ) => {
25
  };
26
 
27
  export default withSelect( ( select ) => {
28
- const { getOnboardingStatus } = select( 'neve-onboarding' );
29
  return {
30
  onboarding: getOnboardingStatus(),
 
31
  };
32
  } )( App );
3
 
4
  import Onboarding from './Main';
5
 
6
+ const App = ( { onboarding, userStatus } ) => {
7
  const wrapClasses = classnames( [
8
  'content-wrap',
9
  'starter-sites',
10
+ {
11
+ 'is-onboarding': onboarding,
12
+ 'is-free': ! userStatus,
13
+ },
14
  ] );
15
  return (
16
  <div className="tiob-wrap">
28
  };
29
 
30
  export default withSelect( ( select ) => {
31
+ const { getOnboardingStatus, getUserStatus } = select( 'neve-onboarding' );
32
  return {
33
  onboarding: getOnboardingStatus(),
34
+ userStatus: getUserStatus(),
35
  };
36
  } )( App );
assets/src/Components/CloudLibrary/Library.js CHANGED
@@ -4,7 +4,7 @@ import VizSensor from 'react-visibility-sensor';
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 } from '@wordpress/components';
8
  import { compose } from '@wordpress/compose';
9
  import { __, isRTL } from '@wordpress/i18n';
10
 
@@ -14,6 +14,7 @@ import Loading from '../Loading';
14
  import Filters from './Filters';
15
  import PreviewFrame from './PreviewFrame';
16
  import ImportTemplatesModal from './ImportTemplatesModal';
 
17
 
18
  const Library = ( {
19
  isGeneral,
@@ -23,6 +24,7 @@ const Library = ( {
23
  templateModal,
24
  themeStatus,
25
  currentTab,
 
26
  } ) => {
27
  const [ library, setLibrary ] = useState( {
28
  gutenberg: [],
@@ -192,13 +194,13 @@ const Library = ( {
192
 
193
  const handlePreview = ( url ) => {
194
  setPreviewUrl( url );
195
- setPreview(true);
196
  };
197
 
198
  const handleClose = () => {
199
  setPreviewUrl( '' );
200
- setPreview(false);
201
- }
202
 
203
  const handleImport = ( id ) => {
204
  if ( themeStatus ) {
@@ -216,7 +218,10 @@ const Library = ( {
216
  const previewedItem =
217
  library[ type ] &&
218
  library[ type ].find( ( item ) => previewUrl === item.link );
219
- const wrapClasses = classnames( 'cloud-items', { 'is-grid': isGrid } );
 
 
 
220
 
221
  const handlePrevious = () => {
222
  let newIndex = currentPreviewIndex - 1;
@@ -282,6 +287,56 @@ const Library = ( {
282
  } );
283
  };
284
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
  return (
286
  <div className={ wrapClasses }>
287
  <>
@@ -377,7 +432,28 @@ const Library = ( {
377
  ) }
378
  </>
379
  ) : (
380
- <Fragment>{ __( 'No templates found.' ) }</Fragment>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
  ) ) }
382
  { previewUrl && (
383
  <PreviewFrame
@@ -426,21 +502,23 @@ const Library = ( {
426
  toImport &&
427
  ! isLoading &&
428
  toImport.length > 0 && (
429
- <ImportTemplatesModal
430
- generalTemplates={ true }
431
- isUserTemplate={ ! isGeneral }
432
- templatesData={ toImport }
433
- />
434
- ) }
435
  </div>
436
  );
437
  };
438
 
439
  export default compose(
440
  withDispatch( ( dispatch ) => {
441
- const { setInstallModalStatus, setTemplateModal, setPreviewStatus } = dispatch(
442
- 'neve-onboarding'
443
- );
 
 
444
 
445
  return {
446
  setPreview: ( status ) => setPreviewStatus( status ),
@@ -454,6 +532,7 @@ export default compose(
454
  getThemeAction,
455
  getCurrentEditor,
456
  getCurrentTab,
 
457
  } = select( 'neve-onboarding' );
458
 
459
  return {
@@ -461,6 +540,7 @@ export default compose(
461
  themeStatus: getThemeAction().action || false,
462
  editor: getCurrentEditor(),
463
  currentTab: getCurrentTab(),
 
464
  };
465
  } )
466
  )( Library );
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';
9
  import { __, isRTL } from '@wordpress/i18n';
10
 
14
  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,
24
  templateModal,
25
  themeStatus,
26
  currentTab,
27
+ userStatus,
28
  } ) => {
29
  const [ library, setLibrary ] = useState( {
30
  gutenberg: [],
194
 
195
  const handlePreview = ( url ) => {
196
  setPreviewUrl( url );
197
+ setPreview( true );
198
  };
199
 
200
  const handleClose = () => {
201
  setPreviewUrl( '' );
202
+ setPreview( false );
203
+ };
204
 
205
  const handleImport = ( id ) => {
206
  if ( themeStatus ) {
218
  const previewedItem =
219
  library[ type ] &&
220
  library[ type ].find( ( item ) => previewUrl === item.link );
221
+ const wrapClasses = classnames( 'cloud-items', {
222
+ 'is-grid': isGrid || ( ! userStatus && ! isGeneral ),
223
+ 'is-dummy': ! userStatus && ! isGeneral,
224
+ } );
225
 
226
  const handlePrevious = () => {
227
  let newIndex = currentPreviewIndex - 1;
287
  } );
288
  };
289
 
290
+ if ( ! userStatus && ! isGeneral ) {
291
+ return (
292
+ <div className={ wrapClasses }>
293
+ <div className="table">
294
+ { [ ...Array( 12 ) ].map( ( i, n ) => (
295
+ <ListItem
296
+ sortingOrder={ getOrder() }
297
+ onPreview={ handlePreview }
298
+ userTemplate={ false }
299
+ key={ n }
300
+ item={ {} }
301
+ grid={ true }
302
+ />
303
+ ) ) }
304
+ </div>
305
+
306
+ <div className="upsell-modal-overlay">
307
+ <div className="upsell-modal">
308
+ <div className="upsell-modal-content">
309
+ <div className="info">
310
+ <h3>
311
+ { __( 'Templates Cloud is a PRO Feature' ) }
312
+ </h3>
313
+
314
+ <p>
315
+ { __(
316
+ 'Unlock the Templates Cloud features and save your pages or posts in the cloud.'
317
+ ) }
318
+ </p>
319
+
320
+ <Button
321
+ variant="primary"
322
+ isPrimary
323
+ href="https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=upgradetoprobtn and
324
+ https://themeisle.com/themes/neve/neve-upgrade-new/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=changeplanbtn"
325
+ target="_blank"
326
+ >
327
+ { __( 'Upgrade to PRO' ) }
328
+ </Button>
329
+ </div>
330
+ <div className="icon">
331
+ <Icon icon={ Logo } />
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </div>
336
+ </div>
337
+ );
338
+ }
339
+
340
  return (
341
  <div className={ wrapClasses }>
342
  <>
432
  ) }
433
  </>
434
  ) : (
435
+ <div className="empty-information">
436
+ <img
437
+ src={
438
+ window.tiobDash.assets + '/img/layout.jpg'
439
+ }
440
+ alt={ __( 'No Templates Found' ) }
441
+ />
442
+ <h3>{ __( 'There are no templates yet' ) }</h3>
443
+ <p>
444
+ { __(
445
+ '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.'
446
+ ) }
447
+ </p>
448
+ <Button
449
+ variant="secondary"
450
+ isSecondary
451
+ href="https://docs.themeisle.com/article/1354-neve-template-cloud-library?utm_medium=nevedashboard&utm_source=templatecloud&utm_campaign=neve&utm_content=learnmore"
452
+ target="_blank"
453
+ >
454
+ { __( 'Learn more' ) }
455
+ </Button>
456
+ </div>
457
  ) ) }
458
  { previewUrl && (
459
  <PreviewFrame
502
  toImport &&
503
  ! isLoading &&
504
  toImport.length > 0 && (
505
+ <ImportTemplatesModal
506
+ generalTemplates={ true }
507
+ isUserTemplate={ ! isGeneral }
508
+ templatesData={ toImport }
509
+ />
510
+ ) }
511
  </div>
512
  );
513
  };
514
 
515
  export default compose(
516
  withDispatch( ( dispatch ) => {
517
+ const {
518
+ setInstallModalStatus,
519
+ setTemplateModal,
520
+ setPreviewStatus,
521
+ } = dispatch( 'neve-onboarding' );
522
 
523
  return {
524
  setPreview: ( status ) => setPreviewStatus( status ),
532
  getThemeAction,
533
  getCurrentEditor,
534
  getCurrentTab,
535
+ getUserStatus,
536
  } = select( 'neve-onboarding' );
537
 
538
  return {
540
  themeStatus: getThemeAction().action || false,
541
  editor: getCurrentEditor(),
542
  currentTab: getCurrentTab(),
543
+ userStatus: getUserStatus(),
544
  };
545
  } )
546
  )( Library );
assets/src/Components/Header.js CHANGED
@@ -16,6 +16,7 @@ const TabNavigation = ( { setCurrentTab, currentTab, isFetching } ) => {
16
  const buttons = {
17
  starterSites: __( 'Starter Sites', 'templates-patterns-collection' ),
18
  pageTemplates: __( 'Page Templates', 'templates-patterns-collection' ),
 
19
  };
20
 
21
  const [ isSyncing, setSyncing ] = useState( false );
@@ -31,14 +32,6 @@ const TabNavigation = ( { setCurrentTab, currentTab, isFetching } ) => {
31
  }, 100 );
32
  };
33
 
34
- if (
35
- tiobDash.license &&
36
- tiobDash.license.tier &&
37
- tiobDash.license.tier === 3
38
- ) {
39
- buttons.library = __( 'My Library', 'templates-patterns-collection' );
40
- }
41
-
42
  const onHashChanged = () => {
43
  const hash = getTabHash(buttons);
44
  if (null === hash) {
16
  const buttons = {
17
  starterSites: __( 'Starter Sites', 'templates-patterns-collection' ),
18
  pageTemplates: __( 'Page Templates', 'templates-patterns-collection' ),
19
+ library: __( 'My Library', 'templates-patterns-collection' ),
20
  };
21
 
22
  const [ isSyncing, setSyncing ] = useState( false );
32
  }, 100 );
33
  };
34
 
 
 
 
 
 
 
 
 
35
  const onHashChanged = () => {
36
  const hash = getTabHash(buttons);
37
  if (null === hash) {
assets/src/Components/Loading.js CHANGED
@@ -9,7 +9,7 @@ const Loading = ( { isGrid } ) => {
9
  <div className="card-footer">
10
  <p className="title loading" style={ {
11
  height: 14,
12
- 'background-color': '#f3f3f3',
13
  } } />
14
  </div>
15
  </div>
9
  <div className="card-footer">
10
  <p className="title loading" style={ {
11
  height: 14,
12
+ backgroundColor: '#f3f3f3',
13
  } } />
14
  </div>
15
  </div>
assets/src/Components/StarterSites/Filters.js CHANGED
@@ -120,7 +120,7 @@ const Filters = ( {
120
  onlyProSites={ onlyProBuilders }
121
  count={ counted.builders }
122
  />
123
- { ! tiobDash.isValidLicense && (
124
  <Notification
125
  data={ tiobDash.upsellNotifications.upsell_1 }
126
  editor={ editor }
120
  onlyProSites={ onlyProBuilders }
121
  count={ counted.builders }
122
  />
123
+ { ! tiobDash.isValidLicense && editor !== 'gutenberg' && (
124
  <Notification
125
  data={ tiobDash.upsellNotifications.upsell_1 }
126
  editor={ editor }
assets/src/scss/_general.scss CHANGED
@@ -204,6 +204,7 @@ svg.is-loading, button.is-loading svg {
204
  display: flex;
205
  justify-content: flex-end;
206
  align-items: flex-end;
 
207
 
208
  button.close-onboarding {
209
  color: #676767;
@@ -220,6 +221,26 @@ svg.is-loading, button.is-loading svg {
220
  }
221
  }
222
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  .ob {
224
  width: 100%;
225
  display: flex;
@@ -233,6 +254,7 @@ svg.is-loading, button.is-loading svg {
233
  width: 100%;
234
  display: flex;
235
  justify-content: center;
 
236
 
237
  .header-container {
238
  display: flex;
204
  display: flex;
205
  justify-content: flex-end;
206
  align-items: flex-end;
207
+ z-index: 1;
208
 
209
  button.close-onboarding {
210
  color: #676767;
221
  }
222
  }
223
 
224
+ .is-free {
225
+ .header-nav {
226
+ .components-button {
227
+ &[href="#library"] {
228
+ &::after {
229
+ content: "PRO";
230
+ border-radius: 2px;
231
+ background: #6EB77A;
232
+ color: #FFF;
233
+ padding: 2px 5px;
234
+ font-size: 10px;
235
+ top: -5px;
236
+ position: relative;
237
+ left: 5px;
238
+ }
239
+ }
240
+ }
241
+ }
242
+ }
243
+
244
  .ob {
245
  width: 100%;
246
  display: flex;
254
  width: 100%;
255
  display: flex;
256
  justify-content: center;
257
+ z-index: 1;
258
 
259
  .header-container {
260
  display: flex;
assets/src/scss/_library.scss CHANGED
@@ -224,6 +224,81 @@
224
  grid-column-gap: 20px;
225
  grid-row-gap: 20px;
226
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  }
228
 
229
  .table-grid {
224
  grid-column-gap: 20px;
225
  grid-row-gap: 20px;
226
  }
227
+
228
+ .empty-information {
229
+ max-width: 500px;
230
+ margin: 0 auto;
231
+ text-align: center;
232
+
233
+ img {
234
+ max-width: 150px;
235
+ }
236
+
237
+ h3,
238
+ p {
239
+ color: #616161;
240
+ }
241
+ }
242
+
243
+ &.is-dummy {
244
+ margin-top: 25px;
245
+ margin-bottom: 25px;
246
+ }
247
+
248
+ .upsell-modal-overlay {
249
+ top: 0;
250
+ right: auto;
251
+ bottom: auto;
252
+ left: 0;
253
+ width: 100%;
254
+ height: 100%;
255
+ position: absolute;
256
+ background: rgba(0, 0, 0, 0.35);
257
+
258
+ .upsell-modal {
259
+ top: 40%;
260
+ right: auto;
261
+ bottom: auto;
262
+ left: 50%;
263
+ min-width: 360px;
264
+ max-width: calc(100% - 16px - 16px);
265
+ max-height: 90%;
266
+ transform: translate(-50%, -50%);
267
+ position: absolute;
268
+
269
+ .upsell-modal-content {
270
+ display: flex;
271
+ }
272
+
273
+ .info {
274
+ background: #ffffff;
275
+ width: 60%;
276
+ padding: 100px 25px;
277
+
278
+ h3 {
279
+ font-size: 24px;
280
+ line-height: 28.64px;
281
+ }
282
+
283
+ p {
284
+ font-size: 15px;
285
+ }
286
+ }
287
+
288
+ .icon {
289
+ display: flex;
290
+ align-items: center;
291
+ justify-content: center;
292
+ background: #0566d5;
293
+ width: 40%;
294
+
295
+ .ob-logo {
296
+ width: 100px;
297
+ margin: 0;
298
+ }
299
+ }
300
+ }
301
+ }
302
  }
303
 
304
  .table-grid {
assets/src/store/selectors.js CHANGED
@@ -14,4 +14,29 @@ export default {
14
  getSingleImport: ( state ) => state.singleTemplateImport,
15
  getTemplateModal: ( state ) => state.templateModal,
16
  getSearchQuery: ( state ) => state.searchQuery,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  };
14
  getSingleImport: ( state ) => state.singleTemplateImport,
15
  getTemplateModal: ( state ) => state.templateModal,
16
  getSearchQuery: ( state ) => state.searchQuery,
17
+ getUserStatus: () => {
18
+ const acceptedTiers = [
19
+ 6,
20
+ 17,
21
+ 23,
22
+ 5,
23
+ 9,
24
+ 14,
25
+ 20,
26
+ 1,
27
+ 7,
28
+ 12,
29
+ 18,
30
+ 3,
31
+ 8,
32
+ 13,
33
+ 19,
34
+ ];
35
+
36
+ return (
37
+ window.tiobDash.license &&
38
+ window.tiobDash.license.tier &&
39
+ acceptedTiers.includes( window.tiobDash.license.tier )
40
+ );
41
+ },
42
  };
includes/Main.php CHANGED
@@ -19,7 +19,7 @@ class Main {
19
  *
20
  * @var string Version string.
21
  */
22
- const VERSION = '1.1.20';
23
  /**
24
  * Sites Library API URL.
25
  *
19
  *
20
  * @var string Version string.
21
  */
22
+ const VERSION = '1.1.21';
23
  /**
24
  * Sites Library API URL.
25
  *
languages/templates-patterns-collection.pot CHANGED
@@ -1,17 +1,17 @@
1
- # Copyright (C) 2021 ThemeIsle
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Templates Patterns Collection 1.1.20\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: 2021-12-23T14:02:50+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
- "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: templates-patterns-collection\n"
16
 
17
  #. Plugin Name of the plugin
@@ -39,7 +39,7 @@ msgstr ""
39
  #: includes/Admin.php:82
40
  #: includes/Elementor.php:75
41
  #: includes/TI_Beaver.php:402
42
- #: assets/src/Components/Header.js:39
43
  msgid "My Library"
44
  msgstr ""
45
 
@@ -398,7 +398,7 @@ msgstr ""
398
 
399
  #: includes/TI_Beaver.php:35
400
  #: includes/TI_Beaver.php:37
401
- #: assets/src/Components/Header.js:126
402
  msgid "Templates Cloud"
403
  msgstr ""
404
 
1
+ # Copyright (C) 2022 ThemeIsle
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Templates Patterns Collection 1.1.21\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-02-21T08:21:40+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
+ "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: templates-patterns-collection\n"
16
 
17
  #. Plugin Name of the plugin
39
  #: includes/Admin.php:82
40
  #: includes/Elementor.php:75
41
  #: includes/TI_Beaver.php:402
42
+ #: assets/src/Components/Header.js:19
43
  msgid "My Library"
44
  msgstr ""
45
 
398
 
399
  #: includes/TI_Beaver.php:35
400
  #: includes/TI_Beaver.php:37
401
+ #: assets/src/Components/Header.js:119
402
  msgid "Templates Cloud"
403
  msgstr ""
404
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: themeisle
3
  Tags: neve, templates, patterns, blocks, starter, sites, demo, content, import
4
  Requires at least: 4.7
5
- Tested up to: 5.8
6
  Requires PHP: 5.6
7
  Stable tag: trunk
8
  License: GPLv3
@@ -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.20](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.19...v1.1.20) (2021-12-23)
43
 
44
  - Improve upsells to better inform the possibilities from pro
2
  Contributors: themeisle
3
  Tags: neve, templates, patterns, blocks, starter, sites, demo, content, import
4
  Requires at least: 4.7
5
+ Tested up to: 5.9
6
  Requires PHP: 5.6
7
  Stable tag: trunk
8
  License: GPLv3
39
 
40
  == Changelog ==
41
 
42
+ ##### [Version 1.1.21](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.20...v1.1.21) (2022-02-21)
43
+
44
+ - Remove upsell from Gutenberg tab
45
+ - Improve no template screen
46
+
47
+
48
+
49
+
50
  ##### [Version 1.1.20](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.19...v1.1.20) (2021-12-23)
51
 
52
  - Improve upsells to better inform the possibilities from pro
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.20
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.21
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit92860b01fe046efe5861647085acab89::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit84ad7f58988668990f6ff021ef79c9c9::getLoader();
vendor/codeinwp/themeisle-sdk/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ##### [Version 3.2.21](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.20...v3.2.21) (2021-06-30)
2
 
3
  review and improve compatibility with auto-updates on custom updates endpoint
1
+ ##### [Version 3.2.24](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.23...v3.2.24) (2022-02-09)
2
+
3
+ Fix edge case issue on dismiss
4
+ Avoid issues with open_basedir restrictions
5
+
6
+ ##### [Version 3.2.23](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.22...v3.2.23) (2022-02-02)
7
+
8
+ Fix php 8.1 issues
9
+ Fix edge case when update_themes site transient was empty and a fatal error was thrown
10
+
11
+ ##### [Version 3.2.22](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.21...v3.2.22) (2021-10-27)
12
+
13
+ Fix edge case when reset failed checks was not working properly
14
+
15
  ##### [Version 3.2.21](https://github.com/Codeinwp/themeisle-sdk/compare/v3.2.20...v3.2.21) (2021-06-30)
16
 
17
  review and improve compatibility with auto-updates on custom updates endpoint
vendor/codeinwp/themeisle-sdk/load.php CHANGED
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
14
  return;
15
  }
16
  // Current SDK version and path.
17
- $themeisle_sdk_version = '3.2.21';
18
  $themeisle_sdk_path = dirname( __FILE__ );
19
 
20
  global $themeisle_sdk_max_version;
@@ -24,16 +24,17 @@ global $themeisle_sdk_max_path;
24
  $themeisle_sdk_relative_licenser_path = '/src/Modules/Licenser.php';
25
 
26
  global $themeisle_sdk_abs_licenser_path;
27
- if ( ! is_file( $themeisle_sdk_path . $themeisle_sdk_relative_licenser_path ) && is_file( $themeisle_sdk_max_path . $themeisle_sdk_relative_licenser_path ) ) {
28
  $themeisle_sdk_abs_licenser_path = $themeisle_sdk_max_path . $themeisle_sdk_relative_licenser_path;
29
  add_filter( 'themeisle_sdk_required_files', 'themeisle_sdk_load_licenser_if_present' );
30
  }
31
- if ( version_compare( $themeisle_sdk_version, $themeisle_sdk_max_path ) == 0 &&
 
32
  apply_filters( 'themeisle_sdk_should_overwrite_path', false, $themeisle_sdk_path, $themeisle_sdk_max_path ) ) {
33
  $themeisle_sdk_max_path = $themeisle_sdk_path;
34
  }
35
 
36
- if ( version_compare( $themeisle_sdk_version, $themeisle_sdk_max_version ) > 0 ) {
37
  $themeisle_sdk_max_version = $themeisle_sdk_version;
38
  $themeisle_sdk_max_path = $themeisle_sdk_path;
39
  }
14
  return;
15
  }
16
  // Current SDK version and path.
17
+ $themeisle_sdk_version = '3.2.24';
18
  $themeisle_sdk_path = dirname( __FILE__ );
19
 
20
  global $themeisle_sdk_max_version;
24
  $themeisle_sdk_relative_licenser_path = '/src/Modules/Licenser.php';
25
 
26
  global $themeisle_sdk_abs_licenser_path;
27
+ if ( ! is_file( $themeisle_sdk_path . $themeisle_sdk_relative_licenser_path ) && ! empty( $themeisle_sdk_max_path ) && is_file( $themeisle_sdk_max_path . $themeisle_sdk_relative_licenser_path ) ) {
28
  $themeisle_sdk_abs_licenser_path = $themeisle_sdk_max_path . $themeisle_sdk_relative_licenser_path;
29
  add_filter( 'themeisle_sdk_required_files', 'themeisle_sdk_load_licenser_if_present' );
30
  }
31
+
32
+ if ( ( is_null( $themeisle_sdk_max_path ) || version_compare( $themeisle_sdk_version, $themeisle_sdk_max_path ) == 0 ) &&
33
  apply_filters( 'themeisle_sdk_should_overwrite_path', false, $themeisle_sdk_path, $themeisle_sdk_max_path ) ) {
34
  $themeisle_sdk_max_path = $themeisle_sdk_path;
35
  }
36
 
37
+ if ( is_null( $themeisle_sdk_max_version ) || version_compare( $themeisle_sdk_version, $themeisle_sdk_max_version ) > 0 ) {
38
  $themeisle_sdk_max_version = $themeisle_sdk_version;
39
  $themeisle_sdk_max_path = $themeisle_sdk_path;
40
  }
vendor/codeinwp/themeisle-sdk/src/Modules/Licenser.php CHANGED
@@ -30,7 +30,7 @@ class Licenser extends Abstract_Module {
30
  *
31
  * @var int $max_failed Maximum failed checks allowed before show the notice
32
  */
33
- private static $max_failed = 5;
34
  /**
35
  * License key string.
36
  *
@@ -244,7 +244,7 @@ class Licenser extends Abstract_Module {
244
  */
245
  public function get_distributor_name() {
246
  if ( $this->is_from_partner( $this->product ) ) {
247
- return 'ThemeIsle';
248
  }
249
 
250
  return $this->product->get_store_name();
@@ -281,7 +281,7 @@ class Licenser extends Abstract_Module {
281
  $status = $this->get_license_status( true );
282
  $no_activations_string = apply_filters( $this->product->get_key() . '_lc_no_activations_string', 'No more activations left for %s. You need to upgrade your plan in order to use %s on more websites. If you need assistance, please get in touch with %s staff.' );
283
  $no_valid_string = apply_filters( $this->product->get_key() . '_lc_no_valid_string', 'In order to benefit from updates and support for %s, please add your license code from your <a href="%s" target="_blank">purchase history</a> and validate it <a href="%s">here</a>. ' );
284
- $expired_license_string = apply_filters( $this->product->get_key() . '_lc_expired_string', 'Your %s License Key has expired. In order to continue receiving support and software updates you must <a href="%s" target="_blank">renew</a> your license key.' );
285
  // No activations left for this license.
286
  if ( 'valid' != $status && $this->check_activation() ) {
287
  ?>
@@ -413,26 +413,22 @@ class Licenser extends Abstract_Module {
413
 
414
  if ( is_wp_error( $response ) ) {
415
  $license_data = new \stdClass();
416
- $license_data->license = 'valid';
417
  } else {
418
  $license_data = $response;
419
  }
420
 
421
  $license_old = get_option( $this->product->get_key() . '_license_data', '' );
422
-
423
- if ( 'valid' === $license_old->license && ( $license_data->license !== $license_old->license ) ) {
424
  $this->increment_failed_checks();
425
- } else {
426
- $this->reset_failed_checks();
427
- }
428
 
429
- if ( $this->failed_checks <= self::$max_failed ) {
430
  return $license_old;
431
  }
432
 
433
  if ( ! isset( $license_data->key ) ) {
434
  $license_data->key = isset( $license_old->key ) ? $license_old->key : '';
435
  }
 
436
 
437
  return $license_data;
438
 
@@ -633,10 +629,19 @@ class Licenser extends Abstract_Module {
633
  */
634
  public function theme_update_transient( $value ) {
635
  $update_data = $this->check_for_update();
636
- if ( $update_data ) {
637
- $value->response[ $this->product->get_slug() ] = $update_data;
 
 
 
 
 
 
 
 
638
  }
639
 
 
640
  return $value;
641
  }
642
 
30
  *
31
  * @var int $max_failed Maximum failed checks allowed before show the notice
32
  */
33
+ private static $max_failed = 2;
34
  /**
35
  * License key string.
36
  *
244
  */
245
  public function get_distributor_name() {
246
  if ( $this->is_from_partner( $this->product ) ) {
247
+ return 'Themeisle';
248
  }
249
 
250
  return $this->product->get_store_name();
281
  $status = $this->get_license_status( true );
282
  $no_activations_string = apply_filters( $this->product->get_key() . '_lc_no_activations_string', 'No more activations left for %s. You need to upgrade your plan in order to use %s on more websites. If you need assistance, please get in touch with %s staff.' );
283
  $no_valid_string = apply_filters( $this->product->get_key() . '_lc_no_valid_string', 'In order to benefit from updates and support for %s, please add your license code from your <a href="%s" target="_blank">purchase history</a> and validate it <a href="%s">here</a>. ' );
284
+ $expired_license_string = apply_filters( $this->product->get_key() . '_lc_expired_string', 'Your %s\'s License Key has expired. In order to continue receiving support and software updates you must <a href="%s" target="_blank">renew</a> your license key.' );
285
  // No activations left for this license.
286
  if ( 'valid' != $status && $this->check_activation() ) {
287
  ?>
413
 
414
  if ( is_wp_error( $response ) ) {
415
  $license_data = new \stdClass();
416
+ $license_data->license = 'invalid';
417
  } else {
418
  $license_data = $response;
419
  }
420
 
421
  $license_old = get_option( $this->product->get_key() . '_license_data', '' );
422
+ if ( 'valid' === $license_old->license && ( $license_data->license !== $license_old->license ) && $this->failed_checks <= self::$max_failed ) {
 
423
  $this->increment_failed_checks();
 
 
 
424
 
 
425
  return $license_old;
426
  }
427
 
428
  if ( ! isset( $license_data->key ) ) {
429
  $license_data->key = isset( $license_old->key ) ? $license_old->key : '';
430
  }
431
+ $this->reset_failed_checks();
432
 
433
  return $license_data;
434
 
629
  */
630
  public function theme_update_transient( $value ) {
631
  $update_data = $this->check_for_update();
632
+ if ( empty( $value ) ) {
633
+ return $value;
634
+ }
635
+
636
+ if ( ! isset( $value->response ) ) {
637
+ return $value;
638
+ }
639
+
640
+ if ( ! $update_data ) {
641
+ return $value;
642
  }
643
 
644
+ $value->response[ $this->product->get_slug() ] = $update_data;
645
  return $value;
646
  }
647
 
vendor/codeinwp/themeisle-sdk/src/Modules/Notification.php CHANGED
@@ -269,8 +269,9 @@ class Notification extends Abstract_Module {
269
  ],
270
  ];
271
  $notification_details = wp_parse_args( $notification_details, $default );
272
-
273
- $notification_html = '<div class="notice notice-success is-dismissible themeisle-sdk-notice" data-notification-id="' . esc_attr( $notification_details['id'] ) . '" id="' . esc_attr( $notification_details['id'] ) . '-notification"> <div class="themeisle-sdk-notification-box">';
 
274
 
275
  if ( ! empty( $notification_details['heading'] ) ) {
276
  $notification_html .= sprintf( '<h4>%s</h4>', wp_kses_post( $notification_details['heading'] ) );
@@ -343,16 +344,18 @@ class Notification extends Abstract_Module {
343
  'nonce': '<?php echo esc_attr( wp_create_nonce( (string) __CLASS__ ) ); ?>',
344
  'action': 'themeisle_sdk_dismiss_notice',
345
  'id': notification_id,
346
- 'confirm': confirm
347
- }
348
- );
 
 
349
  if (confirm === 'yes') {
350
  $(this).trigger('themeisle-sdk:confirmed');
351
  } else {
352
  $(this).trigger('themeisle-sdk:canceled');
353
  }
354
  container.hide();
355
- if (link.attr('href') === '#') {
356
  return false;
357
  }
358
  });
@@ -383,6 +386,31 @@ class Notification extends Abstract_Module {
383
  do_action( $id . '_process_confirm', $confirm );
384
  wp_send_json( [] );
385
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386
 
387
  /**
388
  * Check if we should load the notification module.
@@ -456,6 +484,7 @@ class Notification extends Abstract_Module {
456
  self::$notifications = $notifications;
457
  add_action( 'admin_notices', array( __CLASS__, 'show_notification' ) );
458
  add_action( 'wp_ajax_themeisle_sdk_dismiss_notice', array( __CLASS__, 'dismiss' ) );
 
459
  add_action( 'admin_head', array( __CLASS__, 'setup_notifications' ) );
460
 
461
  return $this;
269
  ],
270
  ];
271
  $notification_details = wp_parse_args( $notification_details, $default );
272
+ global $pagenow;
273
+ $notification_details['ctas']['cancel']['link'] = wp_nonce_url( add_query_arg( [ 'nid' => $notification_details['id'] ], admin_url( $pagenow ) ), $notification_details['id'], 'tsdk_dismiss_nonce' );
274
+ $notification_html = '<div class="notice notice-success is-dismissible themeisle-sdk-notice" data-notification-id="' . esc_attr( $notification_details['id'] ) . '" id="' . esc_attr( $notification_details['id'] ) . '-notification"> <div class="themeisle-sdk-notification-box">';
275
 
276
  if ( ! empty( $notification_details['heading'] ) ) {
277
  $notification_html .= sprintf( '<h4>%s</h4>', wp_kses_post( $notification_details['heading'] ) );
344
  'nonce': '<?php echo esc_attr( wp_create_nonce( (string) __CLASS__ ) ); ?>',
345
  'action': 'themeisle_sdk_dismiss_notice',
346
  'id': notification_id,
347
+ 'confirm': confirm,
348
+ },
349
+ ).fail(function() {
350
+ location.href = encodeURI(link.attr('href'));
351
+ });
352
  if (confirm === 'yes') {
353
  $(this).trigger('themeisle-sdk:confirmed');
354
  } else {
355
  $(this).trigger('themeisle-sdk:canceled');
356
  }
357
  container.hide();
358
+ if (confirm === 'no' || link.attr('href') === '#') {
359
  return false;
360
  }
361
  });
386
  do_action( $id . '_process_confirm', $confirm );
387
  wp_send_json( [] );
388
  }
389
+ /**
390
+ * Dismiss the notification.
391
+ */
392
+ public static function dismiss_get() {
393
+ $is_nonce_dismiss = sanitize_text_field( isset( $_GET['tsdk_dismiss_nonce'] ) ? $_GET['tsdk_dismiss_nonce'] : '' );
394
+ if ( strlen( $is_nonce_dismiss ) < 5 ) {
395
+ return;
396
+ }
397
+ $id = sanitize_text_field( isset( $_GET['nid'] ) ? $_GET['nid'] : '' );
398
+ if ( empty( $id ) ) {
399
+ return;
400
+ }
401
+ $nonce = wp_verify_nonce( sanitize_text_field( $_GET['tsdk_dismiss_nonce'] ), $id );
402
+ if ( $nonce !== 1 ) {
403
+ return;
404
+ }
405
+ $ids = wp_list_pluck( self::$notifications, 'id' );
406
+ if ( ! in_array( $id, $ids, true ) ) {
407
+ return;
408
+ }
409
+ $confirm = 'no';
410
+ self::set_last_active_notification_timestamp();
411
+ update_option( $id, $confirm );
412
+ do_action( $id . '_process_confirm', $confirm );
413
+ }
414
 
415
  /**
416
  * Check if we should load the notification module.
484
  self::$notifications = $notifications;
485
  add_action( 'admin_notices', array( __CLASS__, 'show_notification' ) );
486
  add_action( 'wp_ajax_themeisle_sdk_dismiss_notice', array( __CLASS__, 'dismiss' ) );
487
+ add_action( 'admin_head', array( __CLASS__, 'dismiss_get' ) );
488
  add_action( 'admin_head', array( __CLASS__, 'setup_notifications' ) );
489
 
490
  return $this;
vendor/composer/ClassLoader.php CHANGED
@@ -149,7 +149,7 @@ class ClassLoader
149
 
150
  /**
151
  * @return string[] Array of classname => path
152
- * @psalm-var array<string, string>
153
  */
154
  public function getClassMap()
155
  {
149
 
150
  /**
151
  * @return string[] Array of classname => path
152
+ * @psalm-return array<string, string>
153
  */
154
  public function getClassMap()
155
  {
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit92860b01fe046efe5861647085acab89
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit92860b01fe046efe5861647085acab89
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit92860b01fe046efe5861647085acab89', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit92860b01fe046efe5861647085acab89', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit92860b01fe046efe5861647085acab89::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,23 +51,28 @@ class ComposerAutoloaderInit92860b01fe046efe5861647085acab89
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit92860b01fe046efe5861647085acab89::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire92860b01fe046efe5861647085acab89($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire92860b01fe046efe5861647085acab89($fileIdentifier, $file)
 
 
 
 
 
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
- require $file;
70
-
71
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
 
 
72
  }
73
  }
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit84ad7f58988668990f6ff021ef79c9c9
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit84ad7f58988668990f6ff021ef79c9c9', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit84ad7f58988668990f6ff021ef79c9c9', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit84ad7f58988668990f6ff021ef79c9c9::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInit84ad7f58988668990f6ff021ef79c9c9::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire84ad7f58988668990f6ff021ef79c9c9($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ /**
67
+ * @param string $fileIdentifier
68
+ * @param string $file
69
+ * @return void
70
+ */
71
+ function composerRequire84ad7f58988668990f6ff021ef79c9c9($fileIdentifier, $file)
72
  {
73
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
 
 
74
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
75
+
76
+ require $file;
77
  }
78
  }
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit92860b01fe046efe5861647085acab89
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -58,9 +58,9 @@ class ComposerStaticInit92860b01fe046efe5861647085acab89
58
  public static function getInitializer(ClassLoader $loader)
59
  {
60
  return \Closure::bind(function () use ($loader) {
61
- $loader->prefixLengthsPsr4 = ComposerStaticInit92860b01fe046efe5861647085acab89::$prefixLengthsPsr4;
62
- $loader->prefixDirsPsr4 = ComposerStaticInit92860b01fe046efe5861647085acab89::$prefixDirsPsr4;
63
- $loader->classMap = ComposerStaticInit92860b01fe046efe5861647085acab89::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit84ad7f58988668990f6ff021ef79c9c9
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
58
  public static function getInitializer(ClassLoader $loader)
59
  {
60
  return \Closure::bind(function () use ($loader) {
61
+ $loader->prefixLengthsPsr4 = ComposerStaticInit84ad7f58988668990f6ff021ef79c9c9::$prefixLengthsPsr4;
62
+ $loader->prefixDirsPsr4 = ComposerStaticInit84ad7f58988668990f6ff021ef79c9c9::$prefixDirsPsr4;
63
+ $loader->classMap = ComposerStaticInit84ad7f58988668990f6ff021ef79c9c9::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
vendor/composer/installed.json CHANGED
@@ -2,23 +2,23 @@
2
  "packages": [
3
  {
4
  "name": "codeinwp/themeisle-sdk",
5
- "version": "3.2.21",
6
- "version_normalized": "3.2.21.0",
7
  "source": {
8
  "type": "git",
9
  "url": "https://github.com/Codeinwp/themeisle-sdk.git",
10
- "reference": "cafd016b61ec0928c0234e312046782a77c14318"
11
  },
12
  "dist": {
13
  "type": "zip",
14
- "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/cafd016b61ec0928c0234e312046782a77c14318",
15
- "reference": "cafd016b61ec0928c0234e312046782a77c14318",
16
  "shasum": ""
17
  },
18
  "require-dev": {
19
  "codeinwp/phpcs-ruleset": "dev-main"
20
  },
21
- "time": "2021-06-30T10:55:18+00:00",
22
  "type": "library",
23
  "installation-source": "dist",
24
  "notification-url": "https://packagist.org/downloads/",
@@ -39,7 +39,7 @@
39
  ],
40
  "support": {
41
  "issues": "https://github.com/Codeinwp/themeisle-sdk/issues",
42
- "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.2.21"
43
  },
44
  "install-path": "../codeinwp/themeisle-sdk"
45
  }
2
  "packages": [
3
  {
4
  "name": "codeinwp/themeisle-sdk",
5
+ "version": "3.2.24",
6
+ "version_normalized": "3.2.24.0",
7
  "source": {
8
  "type": "git",
9
  "url": "https://github.com/Codeinwp/themeisle-sdk.git",
10
+ "reference": "e5c171e33120fdf8ce6dd3a7bddad984583023f0"
11
  },
12
  "dist": {
13
  "type": "zip",
14
+ "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/e5c171e33120fdf8ce6dd3a7bddad984583023f0",
15
+ "reference": "e5c171e33120fdf8ce6dd3a7bddad984583023f0",
16
  "shasum": ""
17
  },
18
  "require-dev": {
19
  "codeinwp/phpcs-ruleset": "dev-main"
20
  },
21
+ "time": "2022-02-09T21:11:37+00:00",
22
  "type": "library",
23
  "installation-source": "dist",
24
  "notification-url": "https://packagist.org/downloads/",
39
  ],
40
  "support": {
41
  "issues": "https://github.com/Codeinwp/themeisle-sdk/issues",
42
+ "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.2.24"
43
  },
44
  "install-path": "../codeinwp/themeisle-sdk"
45
  }
vendor/composer/installed.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php return array(
2
  'root' => array(
3
- 'pretty_version' => '1.1.20',
4
- 'version' => '1.1.20.0',
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
@@ -11,8 +11,8 @@
11
  ),
12
  'versions' => array(
13
  'codeinwp/templates-patterns-collection' => array(
14
- 'pretty_version' => '1.1.20',
15
- 'version' => '1.1.20.0',
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
@@ -20,12 +20,12 @@
20
  'dev_requirement' => false,
21
  ),
22
  'codeinwp/themeisle-sdk' => array(
23
- 'pretty_version' => '3.2.21',
24
- 'version' => '3.2.21.0',
25
  'type' => 'library',
26
  'install_path' => __DIR__ . '/../codeinwp/themeisle-sdk',
27
  'aliases' => array(),
28
- 'reference' => 'cafd016b61ec0928c0234e312046782a77c14318',
29
  'dev_requirement' => false,
30
  ),
31
  ),
1
  <?php return array(
2
  'root' => array(
3
+ 'pretty_version' => '1.1.21',
4
+ 'version' => '1.1.21.0',
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
11
  ),
12
  'versions' => array(
13
  'codeinwp/templates-patterns-collection' => array(
14
+ 'pretty_version' => '1.1.21',
15
+ 'version' => '1.1.21.0',
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
20
  'dev_requirement' => false,
21
  ),
22
  'codeinwp/themeisle-sdk' => array(
23
+ 'pretty_version' => '3.2.24',
24
+ 'version' => '3.2.24.0',
25
  'type' => 'library',
26
  'install_path' => __DIR__ . '/../codeinwp/themeisle-sdk',
27
  'aliases' => array(),
28
+ 'reference' => 'e5c171e33120fdf8ce6dd3a7bddad984583023f0',
29
  'dev_requirement' => false,
30
  ),
31
  ),