Cloud Templates & Patterns collection - Version 1.1.28

Version Description

Download this release

Release Info

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

Code changes from version 1.1.27 to 1.1.28

CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  ##### [Version 1.1.27](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.26...v1.1.27) (2022-11-03)
2
 
3
  - Feat Map for Restrict Content plugin
1
+ ##### [Version 1.1.28](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.27...v1.1.28) (2022-11-10)
2
+
3
+ - Fix dismiss Neve notice after Starter Site import
4
+ - Fix import modal white space
5
+ - Fix modal UX
6
+
7
  ##### [Version 1.1.27](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.26...v1.1.27) (2022-11-03)
8
 
9
  - Feat Map for Restrict Content plugin
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:** 6.0
6
  **Requires PHP:** 5.6
7
  **Stable tag:** trunk
8
  **License:** GPLv3
@@ -39,6 +39,15 @@ Yes, you can. You can either chose to import one template or the entire starter
39
 
40
  ## Changelog ##
41
 
 
 
 
 
 
 
 
 
 
42
  ##### [Version 1.1.27](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.26...v1.1.27) (2022-11-03)
43
 
44
  - Feat Map for Restrict Content plugin
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:** 6.1
6
  **Requires PHP:** 5.6
7
  **Stable tag:** trunk
8
  **License:** GPLv3
39
 
40
  ## Changelog ##
41
 
42
+ ##### [Version 1.1.28](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.27...v1.1.28) (2022-11-10)
43
+
44
+ - Fix dismiss Neve notice after Starter Site import
45
+ - Fix import modal white space
46
+ - Fix modal UX
47
+
48
+
49
+
50
+
51
  ##### [Version 1.1.27](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.26...v1.1.27) (2022-11-03)
52
 
53
  - Feat Map for Restrict Content plugin
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' => 'f890d27cc45d4c8664b56c9edfed1341');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives'), 'version' => '71300f92db82157fae719f882874a463');
assets/build/app.js CHANGED
@@ -1,12 +1,12 @@
1
- (window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[]).push([[1],{22:function(e,t,n){}}]),function(e){function t(t){for(var r,o,i=t[0],s=t[1],l=t[2],m=0,p=[];m<i.length;m++)o=i[m],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&p.push(a[o][0]),a[o]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,l||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,i=1;i<n.length;i++){var s=n[i];0!==a[s]&&(r=!1)}r&&(c.splice(t--,1),e=o(o.s=n[0]))}return e}var r={},a={0:0},c=[];function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var i=window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var u=s;c.push([34,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},function(e,t,n){var r=n(23),a=n(24),c=n(16),o=n(25);e.exports=function(e,t){return r(e)||a(e,t)||c(e,t)||o()}},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.primitives},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e,t,n,r,a,c,o){try{var i=e[c](o),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,c){var o=e.apply(t,r);function i(e){n(o,a,c,i,s,"next",e)}function s(e){n(o,a,c,i,s,"throw",e)}i(void 0)}))}}},function(e,t,n){"use strict";const r=n(31),a=n(32),c=n(33);function o(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function i(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e,t){return t.decode?a(e):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function p(e,t){o((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const a="string"==typeof n&&n.includes(e.arrayFormatSeparator),c="string"==typeof n&&!a&&s(n,e).includes(e.arrayFormatSeparator);n=c?s(n,e):n;const o=a||c?n.split(e.arrayFormatSeparator).map(t=>s(t,e)):null===n?n:s(n,e);r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const a of e.split("&")){let[e,o]=c(t.decode?a.replace(/\+/g," "):a,"=");o=void 0===o?null:["comma","separator"].includes(t.arrayFormat)?o:s(o,t),n(s(e,t),o,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=m(n[e],t);else r[e]=m(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=u,t.parse=p,t.stringify=(e,t)=>{if(!e)return"";o((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[i(t,e),"[",a,"]"].join("")]:[...n,[i(t,e),"[",i(a,e),"]=",i(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[i(t,e),"[]"].join("")]:[...n,[i(t,e),"[]=",i(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[i(t,e),"=",i(r,e)].join("")]:[[n,i(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,i(t,e)]:[...n,[i(t,e),"=",i(r,e)].join("")]}}(t),a={};for(const t of Object.keys(e))n(t)||(a[t]=e[t]);const c=Object.keys(a);return!1!==t.sort&&c.sort(t.sort),c.map(n=>{const a=e[n];return void 0===a?"":null===a?i(n,t):Array.isArray(a)?a.reduce(r(n),[]).join("&"):i(n,t)+"="+i(a,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=c(e,"#");return Object.assign({url:n.split("?")[0]||"",query:p(u(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:s(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=l(e.url).split("?")[0]||"",a=t.extract(e.url),c=t.parse(a,{sort:!1}),o=Object.assign(c,e.query);let s=t.stringify(o,n);s&&(s="?"+s);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#"+i(e.fragmentIdentifier,n)),`${r}${s}${u}`}},function(e,t,n){var r=n(26),a=n(27),c=n(16),o=n(28);e.exports=function(e){return r(e)||a(e)||c(e)||o()}},,function(e,t){e.exports=window.wp.apiFetch},function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(5)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t,n){var r=e.direction,a=e.value;switch(r){case"top":return n.top+a<t.top&&n.bottom>t.bottom&&n.left<t.left&&n.right>t.right;case"left":return n.left+a<t.left&&n.bottom>t.bottom&&n.top<t.top&&n.right>t.right;case"bottom":return n.bottom-a>t.bottom&&n.left<t.left&&n.right>t.right&&n.top<t.top;case"right":return n.right-a>t.right&&n.left<t.left&&n.top<t.top&&n.bottom>t.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var r=n(1),a=n.n(r),c=n(2),o=n.n(c),i=n(0),s=n.n(i),l=n(3),u=n.n(l);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this,r=d(t).call(this,e),n=!r||"object"!==m(r)&&"function"!=typeof r?b(this):r,h(b(n),"getContainer",(function(){return n.props.containment||window})),h(b(n),"addEventListener",(function(e,t,r,a){var c;n.debounceCheck||(n.debounceCheck={});var o=function(){c=null,n.check()},i={target:e,fn:a>-1?function(){c||(c=setTimeout(o,a||0))}:function(){clearTimeout(c),c=setTimeout(o,r||0)},getLastTimeout:function(){return c}};e.addEventListener(t,i.fn),n.debounceCheck[t]=i})),h(b(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),h(b(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),h(b(n),"check",(function(){var e,t,r=n.node;if(!r)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(r.getBoundingClientRect())),n.props.containment){var a=n.props.containment.getBoundingClientRect();t={top:a.top,left:a.left,bottom:a.bottom,right:a.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var c=n.props.offset||{};"object"===m(c)&&(t.top+=c.top||0,t.left+=c.left||0,t.bottom-=c.bottom||0,t.right-=c.right||0);var o={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},i=e.height>0&&e.width>0,s=i&&o.top&&o.left&&o.bottom&&o.right;if(i&&n.props.partialVisibility){var l=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(l=o[n.props.partialVisibility]),s=n.props.minTopValue?l&&e.top<=t.bottom-n.props.minTopValue:l}"string"==typeof c.direction&&"number"==typeof c.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",c.direction,c.value),s=u()(c,e,t));var p=n.state;return n.state.isVisible!==s&&(p={isVisible:s,visibilityRect:o},n.setState(p),n.props.onChange&&n.props.onChange(s)),p})),n.state={isVisible:null,visibilityRect:{}},n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.node=o.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=o.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):a.a.Children.only(this.props.children)}}])&&p(n.prototype,r),t}(a.a.Component);h(g,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:a.a.createElement("span",null)}),h(g,"propTypes",{onChange:s.a.func,active:s.a.bool,partialVisibility:s.a.oneOfType([s.a.bool,s.a.oneOf(["top","right","bottom","left"])]),delayedCall:s.a.bool,offset:s.a.oneOfType([s.a.shape({top:s.a.number,left:s.a.number,bottom:s.a.number,right:s.a.number}),s.a.shape({direction:s.a.oneOf(["top","right","bottom","left"]),value:s.a.number})]),scrollCheck:s.a.bool,scrollDelay:s.a.number,scrollThrottle:s.a.number,resizeCheck:s.a.bool,resizeDelay:s.a.number,resizeThrottle:s.a.number,intervalCheck:s.a.bool,intervalDelay:s.a.number,containment:"undefined"!=typeof window?s.a.instanceOf(window.Element):s.a.any,children:s.a.oneOfType([s.a.element,s.a.func]),minTopValue:s.a.number})},function(e,t,n){"use strict";var r=n(6);function a(){}function c(){}c.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,c,o){if(o!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=r(n(29),n(30))},function(e,t,n){var r=n(17);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=window.wp.keycodes},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},function(e,t,n){var r;r=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var a=s(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return l(this,n)}}function m(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function b(e){return"string"==typeof e}function f(e){return"number"==typeof e}function h(t){return"object"===e(t)}function g(e){return null!=e}function O(e){return!e.trim().length}function v(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var j=function(e){return"Invalid value for key ".concat(e)},y=function(e){return"Pattern length exceeds max of ".concat(e,".")},E=Object.prototype.hasOwnProperty,_=function(){function e(n){var r=this;t(this,e),this._keys=[],this._keyMap={};var a=0;n.forEach((function(e){var t=w(e);a+=t.weight,r._keys.push(t),r._keyMap[t.id]=t,a+=t.weight})),this._keys.forEach((function(e){e.weight/=a}))}return r(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function w(e){var t=null,n=null,r=null,a=1;if(b(e)||d(e))r=e,t=S(e),n=k(e);else{if(!E.call(e,"name"))throw new Error("Missing ".concat("name"," property in key"));var c=e.name;if(r=c,E.call(e,"weight")&&(a=e.weight)<=0)throw new Error(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(c));t=S(c),n=k(c)}return{path:t,id:n,weight:a,src:r}}function S(e){return d(e)?e:e.split(".")}function k(e){return d(e)?e.join("."):e}var C=o({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}},{},{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},{},{location:0,threshold:.6,distance:100},{},{useExtendedSearch:!1,getFn:function(e,t){var n=[],r=!1;return function e(t,a,c){if(g(t))if(a[c]){var o=t[a[c]];if(!g(o))return;if(c===a.length-1&&(b(o)||f(o)||function(e){return!0===e||!1===e||function(e){return h(e)&&null!==e}(e)&&"[object Boolean]"==v(e)}(o)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(o));else if(d(o)){r=!0;for(var i=0,s=o.length;i<s;i+=1)e(o[i],a,c+1)}else a.length&&e(o,a,c+1)}else n.push(t)}(e,b(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1}),N=/[^ ]+/g;function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=new Map,n=Math.pow(10,e);return{get:function(e){var r=e.match(N).length;if(t.has(r))return t.get(r);var a=1/Math.sqrt(r),c=parseFloat(Math.round(a*n)/n);return t.set(r,c),c},clear:function(){t.clear()}}}var x=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.getFn,a=void 0===r?C.getFn:r;t(this,e),this.norm=T(3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}return r(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,b(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();b(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(g(e)&&!O(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){var n=this,r={i:t,$:{}};this.keys.forEach((function(t,a){var c=n.getFn(e,t.path);if(g(c))if(d(c))!function(){for(var e=[],t=[{nestedArrIndex:-1,value:c}];t.length;){var o=t.pop(),i=o.nestedArrIndex,s=o.value;if(g(s))if(b(s)&&!O(s)){var l={v:s,i:i,n:n.norm.get(s)};e.push(l)}else d(s)&&s.forEach((function(e,n){t.push({nestedArrIndex:n,value:e})}))}r.$[a]=e}();else if(!O(c)){var o={v:c,n:n.norm.get(c)};r.$[a]=o}})),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,a=void 0===r?C.getFn:r,c=new x({getFn:a});return c.setKeys(e.map(w)),c.setSources(t),c.create(),c}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,a=t.currentLocation,c=void 0===a?0:a,o=t.expectedLocation,i=void 0===o?0:o,s=t.distance,l=void 0===s?C.distance:s,u=t.ignoreLocation,m=void 0===u?C.ignoreLocation:u,p=r/e.length;if(m)return p;var d=Math.abs(i-c);return l?p+d/l:d?1:p}function D(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.minMatchCharLength,n=[],r=-1,a=-1,c=0,o=e.length;c<o;c+=1){var i=e[c];i&&-1===r?r=c:i||-1===r||((a=c-1)-r+1>=t&&n.push([r,a]),r=-1)}return e[c-1]&&c-r>=t&&n.push([r,c-1]),n}function I(e){for(var t={},n=0,r=e.length;n<r;n+=1){var a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}var A=function(){function e(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a.location,o=void 0===c?C.location:c,i=a.threshold,s=void 0===i?C.threshold:i,l=a.distance,u=void 0===l?C.distance:l,m=a.includeMatches,p=void 0===m?C.includeMatches:m,d=a.findAllMatches,b=void 0===d?C.findAllMatches:d,f=a.minMatchCharLength,h=void 0===f?C.minMatchCharLength:f,g=a.isCaseSensitive,O=void 0===g?C.isCaseSensitive:g,v=a.ignoreLocation,j=void 0===v?C.ignoreLocation:v;if(t(this,e),this.options={location:o,threshold:s,distance:u,includeMatches:p,findAllMatches:b,minMatchCharLength:h,isCaseSensitive:O,ignoreLocation:j},this.pattern=O?n:n.toLowerCase(),this.chunks=[],this.pattern.length){var y=function(e,t){r.chunks.push({pattern:e,alphabet:I(e),startIndex:t})},E=this.pattern.length;if(E>32){for(var _=0,w=E%32,S=E-w;_<S;)y(this.pattern.substr(_,32),_),_+=32;if(w){var k=E-32;y(this.pattern.substr(k),k)}}else y(this.pattern,0)}}return r(e,[{key:"searchIn",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var a={isMatch:!0,score:0};return r&&(a.indices=[[0,e.length-1]]),a}var c=this.options,o=c.location,i=c.distance,s=c.threshold,l=c.findAllMatches,u=c.minMatchCharLength,p=c.ignoreLocation,d=[],b=0,f=!1;this.chunks.forEach((function(t){var n=t.pattern,a=t.alphabet,c=t.startIndex,h=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.location,c=void 0===a?C.location:a,o=r.distance,i=void 0===o?C.distance:o,s=r.threshold,l=void 0===s?C.threshold:s,u=r.findAllMatches,m=void 0===u?C.findAllMatches:u,p=r.minMatchCharLength,d=void 0===p?C.minMatchCharLength:p,b=r.includeMatches,f=void 0===b?C.includeMatches:b,h=r.ignoreLocation,g=void 0===h?C.ignoreLocation:h;if(t.length>32)throw new Error(y(32));for(var O,v=t.length,j=e.length,E=Math.max(0,Math.min(c,j)),_=l,w=E,S=d>1||f,k=S?Array(j):[];(O=e.indexOf(t,w))>-1;){var N=M(t,{currentLocation:O,expectedLocation:E,distance:i,ignoreLocation:g});if(_=Math.min(N,_),w=O+v,S)for(var T=0;T<v;)k[O+T]=1,T+=1}w=-1;for(var x=[],P=1,I=v+j,A=1<<v-1,L=0;L<v;L+=1){for(var B=0,R=I;B<R;){var F=M(t,{errors:L,currentLocation:E+R,expectedLocation:E,distance:i,ignoreLocation:g});F<=_?B=R:I=R,R=Math.floor((I-B)/2+B)}I=R;var z=Math.max(1,E-R+1),U=m?j:Math.min(E+R,j)+v,V=Array(U+2);V[U+1]=(1<<L)-1;for(var $=U;$>=z;$-=1){var H=$-1,G=n[e.charAt(H)];if(S&&(k[H]=+!!G),V[$]=(V[$+1]<<1|1)&G,L&&(V[$]|=(x[$+1]|x[$])<<1|1|x[$+1]),V[$]&A&&(P=M(t,{errors:L,currentLocation:H,expectedLocation:E,distance:i,ignoreLocation:g}))<=_){if(_=P,(w=H)<=E)break;z=Math.max(1,2*E-w)}}var W=M(t,{errors:L+1,currentLocation:E,expectedLocation:E,distance:i,ignoreLocation:g});if(W>_)break;x=V}var q={isMatch:w>=0,score:Math.max(.001,P)};if(S){var Q=D(k,d);Q.length?f&&(q.indices=Q):q.isMatch=!1}return q}(e,n,a,{location:o+c,distance:i,threshold:s,findAllMatches:l,minMatchCharLength:u,includeMatches:r,ignoreLocation:p}),g=h.isMatch,O=h.score,v=h.indices;g&&(f=!0),b+=O,g&&v&&(d=[].concat(m(d),m(v)))}));var h={isMatch:f,score:f?b/this.chunks.length:1};return f&&r&&(h.indices=d),h}}]),e}(),L=function(){function e(n){t(this,e),this.pattern=n}return r(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return B(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return B(e,this.singleRegex)}}]),e}();function B(e,t){var n=e.match(t);return n?n[1]:null}var R=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),a}(L),F=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),a}(L),z=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),a}(L),U=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),a}(L),V=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),a}(L),$=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),a}(L),H=function(e){i(a,e);var n=u(a);function a(e){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=c.location,i=void 0===o?C.location:o,s=c.threshold,l=void 0===s?C.threshold:s,u=c.distance,m=void 0===u?C.distance:u,p=c.includeMatches,d=void 0===p?C.includeMatches:p,b=c.findAllMatches,f=void 0===b?C.findAllMatches:b,h=c.minMatchCharLength,g=void 0===h?C.minMatchCharLength:h,O=c.isCaseSensitive,v=void 0===O?C.isCaseSensitive:O,j=c.ignoreLocation,y=void 0===j?C.ignoreLocation:j;return t(this,a),(r=n.call(this,e))._bitapSearch=new A(e,{location:i,threshold:l,distance:m,includeMatches:d,findAllMatches:f,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:y}),r}return r(a,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),a}(L),G=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){for(var t,n=0,r=[],a=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+a,r.push([t,n-1]);var c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),a}(L),W=[R,G,z,U,$,V,F,H],q=W.length,Q=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Q).filter((function(e){return e&&!!e.trim()})),r=[],a=0,c=n.length;a<c;a+=1){for(var o=n[a],i=!1,s=-1;!i&&++s<q;){var l=W[s],u=l.isMultiMatch(o);u&&(r.push(new l(u,t)),i=!0)}if(!i)for(s=-1;++s<q;){var m=W[s],p=m.isSingleMatch(o);if(p){r.push(new m(p,t));break}}}return r}))}var J=new Set([H.type,G.type]),K=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.isCaseSensitive,c=void 0===a?C.isCaseSensitive:a,o=r.includeMatches,i=void 0===o?C.includeMatches:o,s=r.minMatchCharLength,l=void 0===s?C.minMatchCharLength:s,u=r.ignoreLocation,m=void 0===u?C.ignoreLocation:u,p=r.findAllMatches,d=void 0===p?C.findAllMatches:p,b=r.location,f=void 0===b?C.location:b,h=r.threshold,g=void 0===h?C.threshold:h,O=r.distance,v=void 0===O?C.distance:O;t(this,e),this.query=null,this.options={isCaseSensitive:c,includeMatches:i,minMatchCharLength:l,findAllMatches:d,ignoreLocation:m,location:f,threshold:g,distance:v},this.pattern=c?n:n.toLowerCase(),this.query=Y(this.pattern,this.options)}return r(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var a=0,c=[],o=0,i=0,s=t.length;i<s;i+=1){var l=t[i];c.length=0,a=0;for(var u=0,p=l.length;u<p;u+=1){var d=l[u],b=d.search(e),f=b.isMatch,h=b.indices,g=b.score;if(!f){o=0,a=0,c.length=0;break}if(a+=1,o+=g,r){var O=d.constructor.type;J.has(O)?c=[].concat(m(c),m(h)):c.push(h)}}if(a){var v={isMatch:!0,score:o/a};return r&&(v.indices=c),v}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(e,t){return t.useExtendedSearch}}]),e}(),Z=[];function X(e,t){for(var n=0,r=Z.length;n<r;n+=1){var a=Z[n];if(a.condition(e,t))return new a(e,t)}return new A(e,t)}var ee="$and",te="$path",ne=function(e){return!(!e[ee]&&!e.$or)},re=function(e){return!!e[te]},ae=function(e){return!d(e)&&h(e)&&!ne(e)},ce=function(e){return a({},ee,Object.keys(e).map((function(t){return a({},t,e[t])})))};function oe(e,t){var n=t.ignoreFieldNorm,r=void 0===n?C.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,a=e.norm,c=e.score,o=n?n.weight:null;t*=Math.pow(0===c&&o?Number.EPSILON:c,(o||1)*(r?1:a))})),e.score=t}))}function ie(e,t){var n=e.matches;t.matches=[],g(n)&&n.forEach((function(e){if(g(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function se(e,t){t.score=e.score}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,a=void 0===r?C.includeMatches:r,c=n.includeScore,o=void 0===c?C.includeScore:c,i=[];return a&&i.push(ie),o&&i.push(se),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return i.length&&i.forEach((function(t){t(e,r)})),r}))}var ue=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;t(this,e),this.options=o({},C,{},r),this.options.useExtendedSearch,this._keyStore=new _(this.options.keys),this.setCollection(n,a)}return r(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof x))throw new Error("Incorrect 'index' type");this._myIndex=t||P(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(e){g(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){var a=this._docs[n];e(a,n)&&(this.removeAt(n),n-=1,r-=1,t.push(a))}return t}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,a=this.options,c=a.includeMatches,o=a.includeScore,i=a.shouldSort,s=a.sortFn,l=a.ignoreFieldNorm,u=b(e)?b(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return oe(u,{ignoreFieldNorm:l}),i&&u.sort(s),f(r)&&r>-1&&(u=u.slice(0,r)),le(u,this._docs,{includeMatches:c,includeScore:o})}},{key:"_searchStringList",value:function(e){var t=X(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,a=e.i,c=e.n;if(g(n)){var o=t.searchIn(n),i=o.isMatch,s=o.score,l=o.indices;i&&r.push({item:n,idx:a,matches:[{score:s,value:n,norm:c,indices:l}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,a=void 0===r||r,c=function e(n){var r=Object.keys(n),c=re(n);if(!c&&r.length>1&&!ne(n))return e(ce(n));if(ae(n)){var o=c?n[te]:r[0],i=c?n.$val:n[o];if(!b(i))throw new Error(j(o));var s={keyId:k(o),pattern:i};return a&&(s.searcher=X(i,t)),s}var l={children:[],operator:r[0]};return r.forEach((function(t){var r=n[t];d(r)&&r.forEach((function(t){l.children.push(e(t))}))})),l};return ne(e)||(e=ce(e)),c(e)}(e,this.options),r=this._myIndex.records,a={},c=[];return r.forEach((function(e){var r=e.$,o=e.i;if(g(r)){var i=function e(n,r,a){if(!n.children){var c=n.keyId,o=n.searcher,i=t._findMatches({key:t._keyStore.get(c),value:t._myIndex.getValueForItemAtKeyId(r,c),searcher:o});return i&&i.length?[{idx:a,item:r,matches:i}]:[]}switch(n.operator){case ee:for(var s=[],l=0,u=n.children.length;l<u;l+=1){var p=e(n.children[l],r,a);if(!p.length)return[];s.push.apply(s,m(p))}return s;case"$or":for(var d=[],b=0,f=n.children.length;b<f;b+=1){var h=e(n.children[b],r,a);if(h.length){d.push.apply(d,m(h));break}}return d}}(n,r,o);i.length&&(a[o]||(a[o]={idx:o,item:r,matches:[]},c.push(a[o])),i.forEach((function(e){var t,n=e.matches;(t=a[o].matches).push.apply(t,m(n))})))}})),c}},{key:"_searchObjectList",value:function(e){var t=this,n=X(e,this.options),r=this._myIndex,a=r.keys,c=r.records,o=[];return c.forEach((function(e){var r=e.$,c=e.i;if(g(r)){var i=[];a.forEach((function(e,a){i.push.apply(i,m(t._findMatches({key:e,value:r[a],searcher:n})))})),i.length&&o.push({idx:c,item:r,matches:i})}})),o}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!g(n))return[];var a=[];if(d(n))n.forEach((function(e){var n=e.v,c=e.i,o=e.n;if(g(n)){var i=r.searchIn(n),s=i.isMatch,l=i.score,u=i.indices;s&&a.push({score:l,key:t,value:n,idx:c,norm:o,indices:u})}}));else{var c=n.v,o=n.n,i=r.searchIn(c),s=i.isMatch,l=i.score,u=i.indices;s&&a.push({score:l,key:t,value:c,norm:o,indices:u})}return a}}]),e}();return ue.version="6.4.6",ue.createIndex=P,ue.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?C.getFn:n,a=e.keys,c=e.records,o=new x({getFn:r});return o.setKeys(a),o.setIndexRecords(c),o},ue.config=C,function(){Z.push.apply(Z,arguments)}(K),ue},e.exports=r()},,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=window.React},function(e,t){e.exports=window.ReactDOM},function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function c(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],c(n),c(r))}function o(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=c(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=a.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=a.exec(e)}t["%C2"]="�";for(var c=Object.keys(t),i=0;i<c.length;i++){var s=c[i];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){"use strict";n.r(t);var r=n(0),a=(n(22),n(9)),c=n.n(a);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=tiobDash,l=s.onboarding,u=s.themeAction,m=void 0!==l.sites&&void 0!==l.sites.sites?Object.keys(l.sites.sites)[0]:"gutenberg",p=localStorage.getItem("neve-onboarding-editor")||m,d={sites:l.sites||{},editor:p,category:"all",previewStatus:!1,importModalStatus:!1,installModalStatus:!1,currentSite:null,importing:!1,isOnboarding:l.onboarding||!1,migrationData:null,themeAction:u,currentTab:"starterSites",fetching:!1,singleTemplateImport:null,templateModal:null,searchQuery:""},b={refreshSites:function(e){return{type:"REFRESH_SITES",payload:{sites:e}}},setCurrentEditor:function(e){return{type:"SET_CURRENT_EDITOR",payload:{editor:e}}},setCurrentCategory:function(e){return{type:"SET_CURRENT_CATEGORY",payload:{category:e}}},setCurrentSite:function(e){return{type:"SET_FOCUSED_SITE",payload:{siteData:e}}},setPreviewStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_PREVIEW_STATUS",payload:{previewStatus:e}}},setImportModalStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_IMPORT_MODAL_STATUS",payload:{importModalStatus:e}}},setInstallModalStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_INSTALL_MODAL_STATUS",payload:{installModalStatus:e}}},setOnboardingState:function(e){return{type:"SET_ONBOARDING",payload:{state:e}}},setThemeAction:function(e){return{type:"SET_THEME_ACTIONS",payload:{themeActions:e}}},setCurrentTab:function(e){return{type:"SET_CURRENT_TAB",payload:{currentTab:e}}},setFetching:function(e){return{type:"SET_FETCHING",payload:{fetching:e}}},setSingleTemplateImport:function(e){return{type:"SET_SINGLE_TEMPLATE_IMPORT",payload:{slug:e}}},setTemplateModal:function(e){return{type:"SET_TEMPLATE_MODAL",payload:{data:e}}},setSearchQuery:function(e){return{type:"SET_SEARCH_QUERY",payload:{query:e}}}},f={getSites:function(e){return e.sites},getMigrationData:function(e){return e.migrationData},getCurrentEditor:function(e){return e.editor},getCurrentCategory:function(e){return e.category},getCurrentSite:function(e){return e.currentSite},getPreviewStatus:function(e){return e.previewStatus},getImportModalStatus:function(e){return e.importModalStatus},getOnboardingStatus:function(e){return e.isOnboarding},getThemeAction:function(e){return e.themeAction},getInstallModalStatus:function(e){return e.installModalStatus},getCurrentTab:function(e){return e.currentTab},getFetching:function(e){return e.fetching},getSingleImport:function(e){return e.singleTemplateImport},getTemplateModal:function(e){return e.templateModal},getSearchQuery:function(e){return e.searchQuery},getUserStatus:function(){return window.tiobDash.license&&window.tiobDash.license.tier&&[6,17,23,5,9,14,20,1,7,12,18,3,8,13,19].includes(window.tiobDash.license.tier)}},h=n(4),g=n(6),O=n.n(g),v=n(7),j=n(3),y=n.n(j),E=n(2),_=n(1),w=n(8),S=n.n(w),k=n(10),C=n.n(k),N=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x(e,n,t)},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return x(e,t,{},"GET",n)},x=function(){var e=C()(S.a.mark((function e(t){var n,r,a,c,o,i=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],r=i.length>2&&void 0!==i[2]?i[2]:{},a=i.length>3&&void 0!==i[3]?i[3]:"POST",c=!(i.length>4&&void 0!==i[4])||i[4],o={method:a,headers:{Accept:"application/json","Content-Type":"application/json"}},c&&(o.headers["x-wp-nonce"]=tiobDash.nonce),"POST"===a&&(o.body=JSON.stringify(r)),e.next=9,fetch(t,o).then((function(e){return n?e:e.json()}));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getSingleImport;return{themeData:(0,t.getThemeAction)()||!1,singleImport:n()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setImportModalStatus,r=t.setInstallModalStatus,a=t.setThemeAction,c=t.setTemplateModal;return{setImportModal:function(e){return n(e)},setInstallModal:function(e){return r(e)},setThemeAction:function(e){return a(e)},showTemplateModal:function(){return c(!0)}}})))((function(e){var t=e.setImportModal,n=e.setInstallModal,a=e.themeData,c=e.setThemeAction,o=e.singleImport,i=e.showTemplateModal,s=a.action,l=a.slug,u=a.nonce,m=tiobDash,p=m.themesURL,d=m.brandedTheme,b=Object(r.useState)(!1),f=y()(b,2),h=f[0],g=f[1],O=Object(r.useState)(null),v=y()(O,2),j=v[0],w=v[1],S=function(){n(!1)},k=function(e){g(!1),w(Object(_.sprintf)(// translators: %s: Error message.
2
- Object(_.__)("An error has ocurred: %s","templates-patterns-collection"),e))},C=function(){g("activating");var e="".concat(p,"?action=activate&stylesheet=").concat(l,"&_wpnonce=").concat(u);T(e,!0).then((function(e){return 200!==e.status?(k(Object(_.__)("Could not activate theme.","templates-patterns-collection")),g(!1),!1):(g(!1),n(!1),c(!1),o?(i(),!1):void t(!0))}))};return Object(r.createElement)(E.Modal,{className:"ob-import-modal install-modal",title:Object(_.__)("Install and Activate Neve","templates-patterns-collection"),onRequestClose:S,shouldCloseOnClickOutside:!h,isDismissible:!h},Object(r.createElement)("div",{className:"modal-body",style:{textAlign:"center"}},!d&&Object(r.createElement)("img",{style:{width:75},src:"".concat(tiobDash.assets,"/img/logo.svg"),alt:Object(_.__)("Logo","templates-patterns-collection")}),j&&Object(r.createElement)("div",{className:"well error",style:{margin:"20px 0"}},j),Object(r.createElement)("p",{style:{lineHeight:1.6,fontSize:"15px"}},Object(_.__)("In order to import the starter site, Neve theme has to be installed and activated. Click the button below to install and activate Neve","templates-patterns-collection"))),Object(r.createElement)("div",{className:"modal-footer",style:{justifyContent:"center"}},Object(r.createElement)("div",{className:"actions",style:{display:"flex"}},!j&&Object(r.createElement)(E.Button,{dismiss:j,isPrimary:!0,disabled:h,className:h&&"is-loading",icon:h&&"update",onClick:"install"===s?function(){g("installing"),wp.updates.installTheme({slug:"neve",success:function(){c(M(M({},a),{},{action:"activate"})),C()},error:function(e){c(M(M({},a),{},{action:"activate"})),k(e.errorMessage||Object(_.__)("Could not install theme.","templates-patterns-collection"))}})}:C},h&&("installing"===h?Object(_.__)("Installing"):Object(_.__)("Activating")),!h&&("install"===s?Object(_.__)("Install and Activate","templates-patterns-collection"):Object(_.__)("Activate","templates-patterns-collection"))),Object(r.createElement)(E.Button,{style:{marginLeft:30},isSecondary:!0,disabled:h,onClick:S},Object(_.__)("Close","templates-patterns-collection")))))}));var D,I=tiobDash.onboarding,A=function(e){return N(I.root+"/install_plugins",e)},L=function(){var e=C()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},t.forEach((function(e){"elementor"===e.template_type?n.elementor=!0:"beaver"===e.template_type&&(n["beaver-builder-lite-version"]=!0)})),!(Object.keys(n).length>0)){e.next=11;break}return e.prev=3,e.next=6,A(n);case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",e.t0);case 11:return e.abrupt("return",N(I.root+"/import_single_templates",t));case 12:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"neve",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;wp.updates.installTheme({slug:e,success:t,error:n})},R=function(e,t,n){var r=tiobDash.themesURL,a="".concat(r,"?action=activate&stylesheet=").concat(e.slug,"&_wpnonce=").concat(e.nonce);T(a,!0).then((function(e){if(200!==e.status)return n(e),!1;t()}))},F=function(e){var t=e.data,n=e.externalInstalled,a=t.external_plugins||null,c=O()(["well"]);return a&&!n?Object(r.createElement)("div",{className:c},Object(r.createElement)("span",null,Object(r.createElement)(E.Dashicon,{icon:"info"}),Object(_.__)("To import this demo you have to install the following plugins","templates-patterns-collection")),Object(r.createElement)("ul",null,a.map((function(e,t){return Object(r.createElement)("li",{key:t},Object(r.createElement)(E.Button,{isLink:!0,href:e.author_url},e.name))})))):""},z=function(e){var t=e.message,n=e.code;return Object(r.createElement)("div",{className:"well error"},t&&Object(r.createElement)("h3",null,Object(r.createElement)(E.Dashicon,{icon:"warning"}),Object(r.createElement)("span",null,t)),Object(r.createElement)("ul",null,Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.troubleshooting}}),Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.support}}),n&&Object(r.createElement)("li",null,Object(_.__)("Error code","templates-patterns-collection"),":"," ",Object(r.createElement)("code",null,n)),Object(r.createElement)("li",null,Object(_.__)("Error log","templates-patterns-collection"),":"," ",Object(r.createElement)(E.Button,{isLink:!0,href:tiobDash.onboarding.logUrl},tiobDash.onboarding.logUrl,Object(r.createElement)(E.Dashicon,{icon:"external"})))))},U=function(e){var t=e.data,n=function(e){return console.log(e)},a=Object(r.useState)(!1),c=y()(a,2),o=c[0],i=c[1],s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=Object(r.useState)(!1),d=y()(p,2),b=d[0],f=d[1],h=Object(r.useState)(null),g=y()(h,2),O=g[0],v=g[1],j=Object(r.useState)(null),w=y()(j,2),S=w[0],k=w[1];if(o)return null;var C=function(){"done"===b&&i(!0),m(!1),v(null),f(!1)};return Object(r.createElement)("div",{className:"ob-migration"},u&&Object(r.createElement)(E.Modal,{className:"ob-import-modal migration",title:Object(_.__)("Migrate","templates-patterns-collection")+" "+t.theme_name,onRequestClose:C,shouldCloseOnClickOutside:!b,isDismissible:!b},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},O&&Object(r.createElement)(z,{message:O.message||null,code:O.code||null}),!1===b&&!O&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(F,{data:t}),t.mandatory_plugins&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("h3",null,Object(_.__)("The following plugins will be installed","templates-patterns-collection"),":"),Object(r.createElement)("ul",null,Object.keys(t.mandatory_plugins).map((function(e,n){return Object(r.createElement)("li",{key:n},"-"," ",t.mandatory_plugins[e])}))))),"done"===b&&Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),!0===b&&Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}),Object(r.createElement)("h3",null,Object(_.__)("Migrating","templates-patterns-collection"),"..."))),(!b||"done"===b)&&Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isSecondary:"done"!==b,isLink:"done"===b,className:"done"===b?"close":null,onClick:C},"done"===b?Object(_.__)("Close","templates-patterns-collection"):Object(_.__)("Cancel","templates-patterns-collection")),O||"done"===b?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{style:{marginLeft:20},isSecondary:!0,href:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(S,"&action=elementor")},Object(_.__)("Edit Content","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection"))):Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){var e;e=Object.keys(t.mandatory_plugins).reduce((function(e,t){return e[t]=!0,e}),{}),A(e).then((function(e){if(f(!0),!e.success)return v({code:e.data||null,message:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection")}),f(!1),!1;var n=t.template,r=t.template_name;N(tiobDash.onboarding.root+"/migrate_frontpage",{template:n,template_name:r}).then((function(e){if(!e.success)return v({code:e.data||null,message:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection")}),f(!1),!1;k(e.data),f("done")}))}))}},Object(_.__)("Start Migration","templates-patterns-collection"))))),Object(r.createElement)("h2",null,t.heading),Object(r.createElement)("p",null,t.description),Object(r.createElement)("div",{className:"card starter-site-card",style:{maxWidth:330}},Object(r.createElement)("div",{className:"top"},t.screenshot&&Object(r.createElement)("div",{className:"image"},Object(r.createElement)("img",{src:t.screenshot,alt:t.theme_name}))),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},t.theme_name))),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return m(!0),!1}},Object(_.__)("Migrate","templates-patterns-collection")+" "+t.theme_name),Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(){N(tiobDash.onboarding.root+"/dismiss_migration",{theme_mod:t.theme_mod}).then((function(e){if(!e.success)return n(Object(_.__)("Something went wrong. Please reload the page and try again.","templates-patterns-collection")),!1;n(Object(_.__)("Dismissed","templates-patterns-collection")),i(!0)}))}},Object(_.__)("Dismiss","templates-patterns-collection"))))},V=n(12),$=n.n(V),H=n(15),G=n.n(H),W=n(5),q=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Q=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Y=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),J=n(14),K=n.n(J),Z=n(11),X=new Uint8Array(16);function ee(){if(!D&&!(D="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return D(X)}for(var te=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ne=function(e){return"string"==typeof e&&te.test(e)},re=[],ae=0;ae<256;++ae)re.push((ae+256).toString(16).substr(1));var ce=function(e,t,n){var r=(e=e||{}).random||(e.rng||ee)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(re[e[t+0]]+re[e[t+1]]+re[e[t+2]]+re[e[t+3]]+"-"+re[e[t+4]]+re[e[t+5]]+"-"+re[e[t+6]]+re[e[t+7]]+"-"+re[e[t+8]]+re[e[t+9]]+"-"+re[e[t+10]]+re[e[t+11]]+re[e[t+12]]+re[e[t+13]]+re[e[t+14]]+re[e[t+15]]).toLowerCase();if(!ne(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var se=function(){var e=C()(S.a.mark((function e(){var t,n,r,a,c,o,i=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]&&i[0],n=i.length>1&&void 0!==i[1]?i[1]:{},r=Object(Z.stringifyUrl)({url:tiobDash.endpoint+(t?"page-templates":"templates"),query:ie(ie({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),n)}),e.prev=3,e.next=6,K()({url:r,method:"GET",parse:!1});case 6:if(!(a=e.sent).ok){e.next=15;break}return e.next=10,a.json();case 10:if(!(c=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:c.message});case 13:return o=a.headers.get("x-wp-totalpages"),e.abrupt("return",{success:!0,total:o,templates:c});case 15:e.next=21;break;case 17:if(e.prev=17,e.t0=e.catch(3),!e.t0.message){e.next=21;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 21:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(){return e.apply(this,arguments)}}(),le=function(){var e=C()(S.a.mark((function e(t,n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(Z.stringifyUrl)({url:tiobDash.endpoint+"templates/"+t,query:ie(ie({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),{},{template_id:t,template_name:n})}),e.prev=1,e.next=4,K()({url:r,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ce()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}(),ue=function(){var e=C()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(Z.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t),query:ie({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},tiobDash.params)}),e.prev=1,e.next=4,K()({url:n,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ce()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=C()(S.a.mark((function e(t){var n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(Z.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/bulk-import"),query:ie({templates:t,cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),e.prev=1,e.next=4,K()({url:n,method:"GET",parse:!1});case 4:if(!(r=e.sent).ok){e.next=14;break}if(!r.message){e.next=8;break}return e.abrupt("return",{success:!1,message:r.message});case 8:return e.next=10,r.json();case 10:if(!(a=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:a.message});case 13:return e.abrupt("return",{success:!0,templates:a});case 14:e.next=20;break;case 16:if(e.prev=16,e.t0=e.catch(1),!e.t0.message){e.next=20;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 20:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),pe=function(){var e=C()(S.a.mark((function e(t){var n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(Z.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t,"/import"),query:ie({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),r={},e.prev=2,e.next=5,K()({url:n,method:"GET",parse:!1});case 5:if(!(a=e.sent).ok){e.next=12;break}return e.next=9,a.json();case 9:if(!(r=e.sent).message){e.next=12;break}return e.abrupt("return",{success:!1,message:r.message});case 12:e.next=18;break;case 14:if(e.prev=14,e.t0=e.catch(2),!e.t0.message){e.next=18;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 18:return e.abrupt("return",{success:!0,templates:[r]});case 19:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(t){return e.apply(this,arguments)}}(),de=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(W.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),be=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),fe=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(W.Path,{d:"M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z"})),he=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),ge=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je=function(e){var t=e.sortingOrder,n=e.item,a=e.loadTemplates,c=e.userTemplate,o=e.grid,i=e.onPreview,s=e.onImport,l=e.upsell,u=void 0!==l&&l,m=Object(r.useState)(!1),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(n.template_name),w=y()(j,2),k=w[0],N=w[1],T=function(){var e=C()(S.a.mark((function e(t){var r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),r=n.template_id,a=n.template_name,b("updating"),e.next=5,le(r,k||a).then((function(e){e.success&&(v(!g),b(!1))}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=C()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm(Object(_.__)("Are you sure you want to delete this template?"))){e.next=2;break}return e.abrupt("return",!1);case 2:b("deleteing"),ue(n.template_id).then((function(e){e.success&&(a(ve({page:0},t)),b(!1))}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(){i(n.link)},M=O()("actions",{"no-controls":!c});if(o){var D={backgroundImage:"url(".concat(n.template_thumbnail,")")};return Object(r.createElement)("div",{key:n.template_id,className:"table-grid"},Object(r.createElement)("div",{style:D,className:O()("grid-preview",{"is-loading":g||!1!==d})},Object(r.createElement)("div",{className:"preview-actions"},!c&&n.link&&Object(r.createElement)(E.Button,{isSecondary:!0,disabled:!1!==d,onClick:P},Object(_.__)("Preview")),!u&&Object(r.createElement)(E.Button,{isPrimary:!0,isBusy:"importing"===d,disabled:!1!==d,onClick:s},Object(_.__)("Import")),c&&Object(r.createElement)("div",{className:"preview-controls"},!n.link&&Object(r.createElement)(E.Button,{label:Object(_.__)("Edit"),icon:"updating"===d?de:be,disabled:g||!1!==d,className:O()({"is-loading":"updating"===d}),onClick:function(){return v(!g)}}),Object(r.createElement)(E.Button,{label:Object(_.__)("Delete"),icon:"deleteing"===d?de:fe,disabled:!1!==d,className:O()({"is-loading":"deleteing"===d}),onClick:x})))),Object(r.createElement)("div",{className:"card-footer"},g?Object(r.createElement)("form",{onSubmit:T},Object(r.createElement)(E.TextControl,{value:k,onChange:N}),Object(r.createElement)(E.Button,{type:"submit",label:Object(_.__)("Update"),icon:"updating"===d?de:he,disabled:!1!==d,className:O()({"is-loading":"updating"===d})})):Object(r.createElement)("p",null,k)))}return Object(r.createElement)("div",{key:n.template_id,className:"table-row"},Object(r.createElement)("div",{className:"title"},Object(r.createElement)(E.Icon,{icon:ge}),g?Object(r.createElement)(E.TextControl,{label:Object(_.__)("Template Name"),hideLabelFromVision:!0,value:k,onChange:N}):k),c&&Object(r.createElement)("div",{className:"controls"},n.link?Object(r.createElement)(E.Tooltip,{text:Object(_.__)("This template is synced to a page.")},Object(r.createElement)(E.Button,{label:Object(_.__)("Edit"),icon:be,disabled:!0},Object(_.__)("Edit"))):Object(r.createElement)(E.Button,{label:g?Object(_.__)("Update"):Object(_.__)("Edit"),icon:g?"updating"===d?de:he:be,disabled:!1!==d,className:O()({"is-loading":"updating"===d}),onClick:function(){return g?T:v(!g)}},g?Object(_.__)("Update"):Object(_.__)("Edit")),Object(r.createElement)(E.Button,{label:Object(_.__)("Delete"),icon:"deleteing"===d?de:fe,disabled:!1!==d,className:O()({"is-loading":"deleteing"===d}),onClick:x},"deleting"===d?Object(_.__)("Deleting")+"...":Object(_.__)("Delete"))),Object(r.createElement)("div",{className:M},!c&&n.link&&Object(r.createElement)(E.Button,{isSecondary:!0,disabled:!1!==d,onClick:P},Object(_.__)("Preview")),Object(r.createElement)(E.Button,{isPrimary:!0,isBusy:"importing"===d,onClick:s,disabled:!1!==d},Object(_.__)("Import"))))},ye=function(e){var t=e.isGrid;return Object(r.createElement)("div",{className:"table"},[1,2,3,4,5,6,7,8].map((function(e){return t?Object(r.createElement)("div",{key:e,className:"table-grid"},Object(r.createElement)("div",{className:"grid-preview image is-loading"}),Object(r.createElement)("div",{className:"card-footer"},Object(r.createElement)("p",{className:"title loading",style:{height:14,backgroundColor:"#f3f3f3"}}))):Object(r.createElement)("div",{key:e,className:"table-row"},Object(r.createElement)("p",{className:"title loading",style:{width:"100%",height:14,background:"linear-gradient(to right, #f3f3f3, #ffffff)"}}))})))},Ee=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"})),_e=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),we=Object(r.createElement)(W.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),Se=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"})),ke=n(18);function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te,xe={date:Object(_.__)("Date"),template_name:Object(_.__)("Name"),modified:Object(_.__)("Last Modified")},Pe=function(e){var t=e.isGrid,n=e.setGrid,a=e.isSearch,c=e.searchQuery,o=e.setSearchQuery,i=e.onSearch,s=e.sortingOrder,l=e.setSortingOrder,u=e.changeOrder;return Object(r.createElement)("div",{className:"filters"},Object(r.createElement)("div",{className:"header-form"},Object(r.createElement)("div",{className:"display-sorting"},Object(r.createElement)("div",{className:"sorting-label"},Object(_.__)("Sort by")),Object(r.createElement)("div",{className:"sorting-filter"},Object.keys(xe).map((function(e){return Object(r.createElement)(E.Button,{key:e,className:O()({"is-selected":e===s.orderby,"is-asc":"ASC"===s.order}),onClick:function(){var t={order:"DESC",orderby:e};e===s.orderby&&"DESC"===s.order&&(t.order="ASC"),l(Ne({},t)),u(Ne({},t))}},xe[e])})))),Object(r.createElement)("div",{className:"display-filters"},Object(r.createElement)("div",{className:"display-filters__search"},Object(r.createElement)("input",{placeholder:Object(_.__)("Search"),value:c,onChange:function(e){return o(e.target.value)},onKeyDown:function(e){e.keyCode===ke.ENTER&&i()}}),a?Object(r.createElement)(E.Button,{label:Object(_.__)("Clear search query"),icon:Ee,onClick:function(){o(""),i("")}}):Object(r.createElement)(E.Button,{label:Object(_.__)("Search"),icon:_e,onClick:function(){return i()}})),Object(r.createElement)(E.Button,{label:Object(_.__)("List View"),icon:we,onClick:function(){return n(!1)},isPressed:!t}),Object(r.createElement)(E.Button,{label:Object(_.__)("Grid View"),icon:Se,onClick:function(){return n(!0)},isPressed:t}))))},Me=function(e){var t=e.title,n=e.leftButtons,a=e.rightButtons,c=e.heading,o=e.previewUrl,i=Object(Z.stringifyUrl)({url:o,query:{tpcpreview:"yes"}}),s=t||Object(_.__)("Preview");return Object(r.createElement)("div",{className:"ob-preview single-templates"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{title:s,src:i,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},n&&Object(r.createElement)("div",{className:"navigator"},n),c&&Object(r.createElement)("h2",{className:"heading"},c),a&&Object(r.createElement)("div",{className:"actions"},a)))},De={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},Ie={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Ae(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Le(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Be(e){return function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Ae(e)}function Re(e){var t,n="&"+e+";";return(Te=Te||document.createElement("i")).innerHTML=n,(59!==(t=Te.textContent).charCodeAt(t.length-1)||"semi"===e)&&t!==n&&t}var Fe={}.hasOwnProperty,ze=String.fromCharCode,Ue=[void 0,"Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Ve(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getThemeAction;return{siteData:(0,t.getCurrentSite)(),themeData:n()||!1}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setTemplateModal,r=t.setImportModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)}}})))((function(e){var t=e.templatesData,n=e.cancel,a=e.siteData,c=e.themeData,o=e.setModal,i=e.isUserTemplate,s=void 0!==i&&i,l=e.generalTemplates,u=void 0!==l&&l,m=Object(r.useState)(!0),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)([]),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(!1),w=y()(j,2),S=w[0],k=w[1],C=Object(r.useState)([]),N=y()(C,2),T=N[0],x=N[1],P=Object(r.useState)(!1),M=y()(P,2),D=M[0],I=M[1],A=1===t.length;Object(r.useEffect)((function(){s&&A?pe(t[0].template_id).then((function(e){e.success||(e.message?I(e.message):I(!0),b(!1)),v(e.templates),b(!1)})):me(t.map((function(e){return e.template_id}))).then((function(e){if(!e.success)return e.message?I(e.message):I(!0),b(!1),!1;v(e.templates),b(!1)}))}),[t]);var F=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",{className:"is-loading",style:{height:30,marginBottom:30,width:"70%"}}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading",style:{width:"40%"}}))),Object(r.createElement)("div",{className:"modal-footer",style:{marginTop:50}},Object(r.createElement)("span",{className:"is-loading link"}),Object(r.createElement)("span",{className:"is-loading button",style:{width:"150px",marginLeft:"auto"}})))},z=function(e){e.preventDefault(),o(!0)},U=function(){k(!0);var e=t.map((function(e,t){return He(He({},e),g[t])})),n=function(){try{L(e).then((function(e){if(!e.success)return console.log(e.message),!1;x(e.pages),k("done")}))}catch(e){console.log(e)}};if(!c||"general"===e[0].template_site_slug&&"yes"===e[0].premade)return n(),!1;var r=function(e){console.error(e)};if("install"===c.action)return B("neve",(function(){R(c,n,r)}),r),!1;R(c,n,r)},V=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.__)("An error occurred!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},!0===D?Object(_.__)("Please refresh the page and try again."):D))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(){I(!1),n()}},Object(_.__)("Close"))))};return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:d}]),onRequestClose:n,shouldCloseOnClickOutside:!(S&&"done"!==S||d),isDismissible:!(S&&"done"!==S||d)},"done"===S?Object(r.createElement)((function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.__)("Import done!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},A?Object(_.__)("Template was successfully imported!","templates-patterns-collection"):Object(_.__)("Templates were successfully imported!","templates-patterns-collection"))),T&&Object(r.createElement)("ul",{className:"modal-toggles"},T.map((function(e,t){return Object(r.createElement)("li",{className:"option-row",key:t},Object(r.createElement)(E.Icon,{icon:ge,className:"active"}),Object(r.createElement)("span",null,function(e,t={}){var n,r,a,c,o,i,s,l,u,m,p,d,b,f,h,g,O,v,j,y,E,_,w,S,k="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,C=0,N=-1,T="",x=[];t.position&&("start"in t.position||"indent"in t.position?(r=t.position.indent,n=t.position.start):n=t.position),a=n&&n.line||1,c=n&&n.column||1,y=P(),C--;for(;++C<=e.length;)if(10===u&&(c=r&&r[N]||1),38===(u=e.charCodeAt(C))){if(9===(d=e.charCodeAt(C+1))||10===d||12===d||32===d||38===d||60===d||Number.isNaN(d)||k&&d===k){T+=ze(u),c++;continue}for(g=O=C+1,w=O,35===d?(w=++g,88===(d=e.charCodeAt(w))||120===d?(v="hexadecimal",w=++g):v="decimal"):v="named",o="",h="",l="",j="named"===v?Be:"decimal"===v?Ae:Le,w--;++w<=e.length&&j(d=e.charCodeAt(w));)l+=ze(d),"named"===v&&Fe.call(De,l)&&(o=l,h=De[l]);(s=59===e.charCodeAt(w))&&(w++,(i="named"===v&&Re(l))&&(o=l,h=i)),_=1+w-O,(s||!1!==t.nonTerminated)&&(l?"named"===v?(s&&!h?M(5,1):(o!==l&&(_=1+(w=g+o.length)-g,s=!1),s||(b=o?1:3,t.attribute?61===(d=e.charCodeAt(w))?(M(b,_),h=null):Be(d)?h=null:M(b,_):M(b,_))),m=h):(s||M(2,_),(S=p=Number.parseInt(l,"hexadecimal"===v?16:10))>=55296&&S<=57343||S>1114111?(M(7,_),m=ze(65533)):p in Ie?(M(6,_),m=Ie[p]):(f="",Ve(p)&&M(6,_),p>65535&&(f+=ze((p-=65536)>>>10|55296),p=56320|1023&p),m=f+ze(p))):"named"!==v&&M(4,_)),m?(D(),y=P(),C=w-1,c+=w-O+1,x.push(m),(E=P()).offset++,t.reference&&t.reference.call(t.referenceContext,m,{start:y,end:E},e.slice(O-1,w)),y=E):(l=e.slice(O-1,w),T+=l,c+=l.length,C=w-1)}else 10===u&&(a++,N++,c=0),Number.isNaN(u)?D():(T+=ze(u),c++);return x.join("");function P(){return{line:a,column:c,offset:C+(n&&n.offset||0)}}function M(e,n){var r;t.warning&&((r=P()).column+=n,r.offset+=n,t.warning.call(t.warningContext,Ue[e],r,e))}function D(){T&&(x.push(T),t.text&&t.text.call(t.textContext,T,{start:y,end:P()}),T="")}}(e.title)),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(E.Button,{isTertiary:!0,href:e.url},Object(_.__)("Visit","templates-patterns-collection")),Object(r.createElement)(E.Button,{isTertiary:!0,href:e.edit},Object(_.__)("Edit","templates-patterns-collection"))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:n},Object(_.__)("Close"))))}),null):Object(r.createElement)((function(){return d?Object(r.createElement)(F,null):D?Object(r.createElement)(V,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(A?
3
  /* translators: name of starter site */
4
  Object(_.__)("Import the %s template","templates-patterns-collection"):
5
  /* translators: name of template */
6
  Object(_.__)("Import all templates from %s","templates-patterns-collection"),A?t[0].template_name:a.title)),Object(r.createElement)("p",{className:"description"},(Object(r.createElement)("strong",null,Object(_.__)("does not")),A?Object(_.sprintf)(
7
  /* translators: %s the name of the template */
8
- Object(_.__)("The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"),t[0].template_name):Object(_.__)("All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"))))),Object(r.createElement)("div",{className:"modal-footer"},!u&&Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,disabled:S,onClick:z},Object(_.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",disabled:S,onClick:U},S?Object(_.__)("Importing")+"...":A?Object(_.__)("Import"):Object(_.__)("Import All Pages"))))}),null))})),We=function(){return Object(r.createElement)(W.SVG,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ob-logo"},Object(r.createElement)(W.Path,{d:"M95.0264 100H4.97356C2.22797 100 0 97.772 0 95.0264V4.97356C0 2.22797 2.22797 0 4.97356 0H95.0264C97.772 0 100 2.22797 100 4.97356V95.0264C100 97.772 97.772 100 95.0264 100Z",fill:"#0366D6"}),Object(r.createElement)(W.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(W.Path,{d:"M42.2416 58.9291L42.2528 71.183L53.2352 82.1653L53.1902 47.9806L18.9941 47.9355L29.9765 58.9066L42.2416 58.9291Z",fill:"white"}))};function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ye=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setInstallModalStatus,r=t.setTemplateModal,a=t.setPreviewStatus;return{setPreview:function(e){return a(e)},setInstallModal:function(e){return n(e)},setTemplateModal:r}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentEditor,c=t.getCurrentTab,o=t.getUserStatus;return{templateModal:n(),themeData:r()||!1,editor:a(),currentTab:c(),userStatus:o()}})))((function(e){var t=e.isGeneral,n=e.setPreview,a=e.setTemplateModal,o=e.templateModal,i=e.currentTab,s=e.userStatus,l=e.themeData,u=Object(r.useState)({gutenberg:[],elementor:[]}),m=y()(u,2),p=m[0],d=m[1],b=Object(r.useState)("gutenberg"),f=y()(b,2),h=f[0],g=f[1],v=Object(r.useState)([]),j=y()(v,2),w=j[0],k=j[1],N=Object(r.useState)(t),T=y()(N,2),x=T[0],P=T[1],M=Object(r.useState)(""),D=y()(M,2),I=D[0],A=D[1],L=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),B=y()(L,2),R=B[0],F=B[1],z=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),U=y()(z,2),V=U[0],H=U[1],W=Object(r.useState)(!1),J=y()(W,2),K=J[0],Z=J[1],X=Object(r.useState)(!1),ee=y()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(!1),ae=y()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(""),le=y()(ie,2),ue=le[0],me=le[1],pe=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),de=y()(pe,2),be=de[0],fe=de[1];Object(r.useEffect)((function(){Z(!0),A(""),F({gutenberg:0,elementor:0,beaver:0}),H({gutenberg:0,elementor:0,beaver:0}),ge()}),[t,h]);var he={gutenberg:{label:Object(_.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(_.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(_.__)("Beaver"),icon:"beaver.jpg"}},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Qe({page:R[h],per_page:12,type:h},e);t&&(n.template_site_slug="general",n.premade=!0),I&&(n.search=I),se(t,n).then((function(e){d(Qe(Qe({},p),{},c()({},h,e.templates))),H(Qe(Qe({},V),{},c()({},h,e.total))),Z(!1)}))},Oe=function(){var e=C()(S.a.mark((function e(){var n,r,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:R[h]+1,oe(!0),F(Qe(Qe({},R),{},c()({},h,n))),r={page:n,per_page:12,type:h},t&&(r.template_site_slug="general",r.premade=!0),I&&(r.search=I),e.next=8,se(t,r).then((function(e){d(Qe(Qe({},p),{},c()({},h,[].concat($()(p[h]),$()(e.templates))))),H(Qe(Qe({},V),{},c()({},h,e.total)))}));case 8:oe(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ve=function(e){me(e),n(!0)},Ee=function(e){k([e]),a(!0)},_e=p[h]&&p[h].findIndex((function(e){return e.link===ue})),we=p[h]&&p[h].find((function(e){return ue===e.link})),Se=O()("cloud-items",{"is-grid":x||!s&&!t,"is-dummy":!s&&!t||!1!==l}),ke=function(){return t?be.templates:be.library},Ce=function(){var e=C()(S.a.mark((function e(n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Z(!0),r=Qe({search:I,type:h},n),t&&(r.template_site_slug="general",r.premade=!0),se(t,r).then((function(e){d(Qe(Qe({},p),{},c()({},h,$()(e.templates)))),H(Qe(Qe({},V),{},c()({},h,e.total))),Z(!1)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(e){var t=e.title,n=e.description,a=e.showUpgradeBtn,c=void 0===a||a;return Object(r.createElement)("div",{className:Se},Object(r.createElement)("div",{className:"table"},$()(Array(12)).map((function(e,t){return Object(r.createElement)(je,{sortingOrder:ke(),onPreview:ve,userTemplate:!1,key:t,item:{},grid:!0})}))),Object(r.createElement)("div",{className:"upsell-modal-overlay"},Object(r.createElement)("div",{className:"upsell-modal"},Object(r.createElement)("div",{className:"upsell-modal-content"},Object(r.createElement)("div",{className:"info"},Object(r.createElement)("h3",null,t),Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:n}}),c&&Object(r.createElement)(E.Button,{variant:"primary",isPrimary:!0,href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=templatecloud&utm_source=wpadmin&utm_campaign=upgradetoprobtn&utm_content=neve",target:"_blank"},Object(_.__)("Upgrade to PRO"))),Object(r.createElement)("div",{className:"icon"},Object(r.createElement)(E.Icon,{icon:We}))))))};return!1!==l?Object(r.createElement)(Ne,{title:Object(_.__)("Coming soon"),description:Object(_.sprintf)(// translators: %1$s: Theme Name %2$s Plugin Name.
9
- Object(_.__)("Right now this feature is not available with your current setup. if you want to use it, you need to install %1$s theme and %2$s plugin","template-patterns-collection"),'<a href="'.concat("https://wordpress.org/themes/neve/",'" target="_blank" rel="noreferrer">Neve</a>'),'<a href="'.concat("https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=wpadmin&utm_campaign=templatecloud&utm_content=neve",'" target="_blank" rel="noreferrer">Neve Pro Addon</a>')),showUpgradeBtn:!1}):s||t?Object(r.createElement)("div",{className:Se},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(he).map((function(e){return Object(r.createElement)("a",{key:e,href:"#",onClick:function(){g(e),ne(!1)},className:O()("tab",{active:h===e})},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:window.tiobDash.assets+"img/"+he[e].icon,alt:he[e].label})),Object(r.createElement)("span",{className:"editor"},he[e].label))}))),Object(r.createElement)(Pe,{currentTab:i,isGrid:x,setGrid:P,isSearch:te,searchQuery:I,setSearchQuery:A,onSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;Z(!0),ne(!!e);var n=Qe({search:e,type:h},ke());t&&(n.template_site_slug="general",n.premade=!0),se(t,n).then((function(e){d(Qe(Qe({},p),{},c()({},h,$()(e.templates)))),H(Qe(Qe({},V),{},c()({},h,e.total))),Z(!1)}))},sortingOrder:ke(),setSortingOrder:function(e){return fe(Qe(Qe({},be),{},t?{templates:e}:{library:e}))},changeOrder:Ce}),K&&Object(r.createElement)(ye,{isGrid:x}),!K&&(p[h]&&p[h].length>0?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"table"},p[h].map((function(e){return Object(r.createElement)(je,{sortingOrder:ke(),onPreview:ve,userTemplate:!t,key:e.template_id,item:e,loadTemplates:ge,onImport:function(){return Ee(e)},grid:x})}))),Object(r.createElement)(G.a,{onChange:function(e){if(!e)return!1;Number(V[h])>R[h]&&Oe()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),ce&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(E.Spinner,null))):Object(r.createElement)("div",{className:"empty-information"},Object(r.createElement)("img",{src:window.tiobDash.assets+"/img/layout.jpg",alt:Object(_.__)("No Templates Found")}),Object(r.createElement)("h3",null,Object(_.__)("There are no templates yet")),Object(r.createElement)("p",null,Object(_.__)("You can add a page or post to the cloud by accessing it with the WordPress or Elementor/Beaver editor. Learn more about this in our docs.")),Object(r.createElement)(E.Button,{variant:"secondary",isSecondary:!0,href:"https://docs.themeisle.com/article/1354-neve-template-cloud-library?utm_medium=nevedashboard&utm_source=wpadmin&utm_campaign=templatescloud&utm_content=neve",target:"_blank"},Object(_.__)("Learn more")))),ue&&Object(r.createElement)(Me,{previewUrl:ue,rightButtons:Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return Ee(we)}},Object(_.__)("Import Template")),heading:we.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:q,onClick:function(){me(""),n(!1)}}),p[h].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:Y,onClick:function(){var e=_e-1;0===_e&&(e=p[h].length-1),me(p[h][e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Y:Q,onClick:function(){var e=_e+1;_e===p[h].length-1&&(e=0),me(p[h][e].link)}})))})),o&&w&&!K&&w.length>0&&Object(r.createElement)(Ge,{generalTemplates:!0,isUserTemplate:!t,templatesData:w})):Object(r.createElement)(Ne,{title:Object(_.__)("Templates Cloud is a PRO Feature"),description:Object(_.__)("Unlock the Templates Cloud features and save your pages or posts in the cloud.")})})),Je=[Object(_.__)("Business","templates-patterns-collection"),Object(_.__)("Ecommerce","templates-patterns-collection"),Object(_.__)("Fashion","templates-patterns-collection"),Object(_.__)("Blogging","templates-patterns-collection"),Object(_.__)("Photography","templates-patterns-collection")],Ke={all:Object(_.__)("All Categories"),free:Object(_.__)("Free"),business:Object(_.__)("Business"),portfolio:Object(_.__)("Portfolio"),woocommerce:Object(_.__)("WooCommerce"),blog:Object(_.__)("Blog"),personal:Object(_.__)("Personal"),other:Object(_.__)("Other")},Ze={gutenberg:{icon:"gutenberg.jpg",niceName:"Gutenberg"},elementor:{icon:"elementor.jpg",niceName:"Elementor"}},Xe=(Object(r.createElement)(r.Fragment,null,"Beaver ",Object(r.createElement)("span",{className:"long-name"},"Builder")),Object(r.createElement)(r.Fragment,null,"Thrive ",Object(r.createElement)("span",{className:"long-name"},"Architect")),function(e){var t=e.currentStep,n=e.progress,a=e.willDo,c={cleanup:{label:Object(_.__)("Cleanup previous Import","templates-patterns-collection"),status:n.cleanup,willDo:a.cleanup},theme_install:{label:Object(_.__)("Installing and Activating the Theme","templates-patterns-collection"),status:n.theme_install,willDo:a.theme_install},plugins:{label:Object(_.__)("Installing Plugins","templates-patterns-collection"),status:n.plugins,willDo:!0},content:{label:Object(_.__)("Importing Content","templates-patterns-collection"),status:n.content,willDo:a.content},customizer:{label:Object(_.__)("Importing Customizer Settings","templates-patterns-collection"),status:n.customizer,willDo:a.customizer},widgets:{label:Object(_.__)("Importing Widgets","templates-patterns-collection"),status:n.widgets,willDo:a.widgets},performanceAddon:{label:Object(_.__)("Installing Performance Features","templates-patterns-collection"),status:n.performanceAddon,willDo:a.performanceAddon}};return Object(r.createElement)("ul",{className:"stepper"},Object.keys(c).map((function(e,n){var a=c[e],o=a.label,i=a.status;if(!a.willDo)return null;var s=O()(["icon",{loading:t===e,warning:t===e,success:"done"===i,error:"error"===i,skip:"skip"===i}]),l="clock";return t===e&&(l="update"),"done"===i&&(l="yes"),"error"===i&&(l="no-alt"),Object(r.createElement)("li",{key:n},Object(r.createElement)("span",{className:s},Object(r.createElement)(E.Dashicon,{icon:l,className:t===e?"loading":""})),Object(r.createElement)("span",null,o))})))}),et=n(19),tt=n.n(et),nt=function(e){return tt()(e),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("span",{className:"title is-loading",style:{height:35,marginBottom:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20,marginBottom:20}})),Object(r.createElement)("div",{className:"well is-loading"},Object(r.createElement)("span",{className:"title is-loading",style:{height:20}}),Object(r.createElement)("ol",null,Object(r.createElement)("li",null),Object(r.createElement)("li",null),Object(r.createElement)("li",null))),Object(r.createElement)("div",{className:"modal-toggles components-panel"},[1,2].map((function(e){return Object(r.createElement)("div",{key:e,className:"components-panel__body options general is-opened"},Object(r.createElement)("span",{className:"title is-loading"}),Object(r.createElement)("ul",null,[1,2,3].map((function(e){return Object(r.createElement)("li",{className:"option-row",key:e},Object(r.createElement)("div",{className:"mock-icon is-loading"}),Object(r.createElement)("span",{className:"is-loading"}),Object(r.createElement)("div",{className:"toggle is-loading"}))}))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)("span",{className:"link is-loading"}),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import is-loading"})))};function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ct=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["icon","size"]);return Object(r.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},c))},ot=Object(r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(W.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),it=function(e){var t=e.children,n=e.className,a=e.toLeft,c=void 0!==a&&a,o=O()([n,"tiob-tooltip-wrap"]),i=c?{right:0,left:"unset"}:{};return Object(r.createElement)("div",{className:o},Object(r.createElement)("div",{className:"tiob-tooltip-toggle"},Object(r.createElement)(ct,{icon:ot,size:24}),Object(r.createElement)("div",{className:"tiob-tooltip-content",style:i},t)))};function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ut=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentSite,a=t.getThemeAction;return{editor:n(),siteData:r(),themeData:a()||!1}})),Object(h.withDispatch)((function(e,t){var n=t.siteData,r=e("neve-onboarding"),a=r.setTemplateModal,c=r.setSingleTemplateImport,o=r.setImportModalStatus,i=r.setThemeAction;return{setModal:function(e){return o(e)},setThemeAction:function(e){return i(e)},runTemplateImport:function(){c(n.slug),a(!0),o(!1)}}})))((function(e){var t=e.setModal,n=e.setThemeAction,a=e.editor,o=e.siteData,i=e.themeData,s=e.runTemplateImport,l=Object(r.useState)({content:!0,customizer:!0,widgets:!0,cleanup:!1,performanceAddon:!0,theme_install:!1!==i}),u=y()(l,2),m=u[0],p=u[1],d=Object(r.useState)(!1),b=y()(d,2),f=b[0],h=b[1],g=Object(r.useState)(!1),v=y()(g,2),j=v[0],w=v[1],S=Object(r.useState)(!1),k=y()(S,2),C=k[0],x=k[1],P=Object(r.useState)(!1),M=y()(P,2),D=M[0],L=M[1],U=Object(r.useState)(!1),V=y()(U,2),$=V[0],H=V[1],G=Object(r.useState)(!1),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)(!1),se=y()(ie,2),le=se[0],ue=se[1],me=Object(r.useState)({}),pe=y()(me,2),de=pe[0],be=pe[1],fe=Object(r.useState)(null),he=y()(fe,2),ge=he[0],Oe=he[1],ve=Object(r.useState)(null),je=y()(ve,2),ye=je[0],Ee=je[1],_e=Object(r.useState)(!0),we=y()(_e,2),Se=we[0],ke=we[1],Ce=Object(r.useState)(!0),Ne=y()(Ce,2),Te=Ne[0],xe=Ne[1],Pe=Object(r.useState)(!0),Me=y()(Pe,2),De=Me[0],Ie=Me[1],Ae=Object(r.useState)(!0),Le=y()(Ae,2),Be=Le[0],Re=Le[1],Fe=tiobDash,ze=Fe.license,Ue=Fe.cleanupAllowed,Ve=Object(r.useState)(Ue),$e=y()(Ve,2),He=$e[0],Ge=$e[1];function We(){R(i,(function(){console.log("[D] Theme Activate."),h("done"),n(!1),Qe()}),(function(){tt(Object(_.__)("Could not activate theme.","templates-patterns-collection"),"theme_install")}))}function qe(){return i?"install"===i.action?(oe("theme_install"),console.log("[P] Theme Install."),B("neve",(function(){n(lt(lt({},i),{},{action:"activate"})),console.log("[D] Theme Install."),We()}),(function(e){n(lt(lt({},i),{},{action:"activate"})),tt(e.errorMessage||Object(_.__)("Could not install theme.","templates-patterns-collection"),"theme_install")})),!1):(oe("theme_install"),console.log("[P] Theme Activate."),void We()):(console.log("[S] Theme."),Qe(),!1)}function Qe(){if(!de&&!m.performanceAddon)return console.log("[S] Plugins."),Ye(),!1;oe("plugins"),console.log("[P] Plugins."),A(de).then((function(e){if(!e.success)return tt(e,"plugins"),!1;console.log("[D] Plugins."),L("done"),Ye()})).catch((function(e){return tt(e,"plugins")}))}function Ye(){if(!m.content)return console.log("[S] Content."),Je(),!1;var e;oe("content"),console.log("[P] Content."),(e={contentFile:ye.content_file,source:"remote",frontPage:ye.front_page,shopPages:ye.shop_pages,demoSlug:ye.slug,editor:a},N(I.root+"/import_content",e)).then((function(e){if(!e.success)return tt(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&ne(e.frontpage_id),H("done"),Je()})).catch((function(e){return tt(e,"content")}))}function Je(){if(!m.customizer)return console.log("[S] Customizer."),Ke(),!1;var e;oe("customizer"),console.log("[P] Customizer."),(e={source_url:ye.url,theme_mods:ye.theme_mods,wp_options:ye.wp_options},N(I.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return tt(e,"customizer"),!1;console.log("[D] Customizer."),Q("done"),Ke()})).catch((function(e){return tt(e,"customizer")}))}function Ke(){if(!m.widgets)return console.log("[S] Widgets."),Ze(),!1;var e;oe("widgets"),console.log("[P] Widgets."),(e=ye.widgets,N(I.root+"/import_widgets",e)).then((function(e){if(!e.success)return tt(e,"widgets"),!1;console.log("[D] Widgets."),Z("done"),Ze()})).catch((function(e){return tt(e,"widgets")}))}function Ze(){if(!m.performanceAddon)return console.log("[S] Performance Addon."),et(),!1;oe("performanceAddon"),console.log("[P] Performance Addon."),A({"optimole-wp":!0}).then((function(e){if(!e.success)return tt(e,"performanceAddon"),!1;console.log("[D] Performance Addon."),w("done"),et()})).catch((function(e){return tt(e,"performanceAddon")}))}function et(){oe("done"),Ge("yes"),tiobDash.cleanupAllowed="yes",ue(!1)}function tt(e,t){ue(!1),oe(null),"cleanup"===t&&L("skip"),"plugins"===t&&H("skip"),["content","plugins"].includes(t)&&Q("skip"),["content","plugins","customizer"].includes(t)&&Z("skip");var n={cleanup:Object(_.__)("Something went wrong while cleaning the previous import.","templates-patterns-collection"),plugins:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection"),content:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection"),customizer:Object(_.__)("Something went wrong while updating the customizer settings.","templates-patterns-collection"),widgets:Object(_.__)("Something went wrong while importing the widgets.","templates-patterns-collection"),performanceAddon:Object(_.__)("Something went wrong while installing the performance addon.","templates-patterns-collection")};switch(t){case"cleanup":x("error");break;case"plugins":L("error");break;case"content":H("error");break;case"customizer":Q("error");break;case"widgets":Z("error");break;case"performanceAddon":w("error")}Oe(e.data?{message:n[t],code:e.data}:{message:n[t]})}Object(r.useEffect)((function(){var e=o.remote_url||o.url,t=new URL("".concat(function(e){return e.replace(/\/$/,"")}(e)+"/","wp-json/ti-demo-data/data"));t.searchParams.append("license",ze?ze.key:"free"),T(t,!0,!1).then((function(e){e.ok||(Oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_response"}),ke(!1)),e.json().then((function(e){Ee(lt(lt({},e),o));var t=lt({},e.mandatory_plugins||{}),n=lt({},e.recommended_plugins||{}),r=e.default_off_recommended_plugins||[];Object.keys(t).forEach((function(e){t[e]=!0})),Object.keys(n).forEach((function(e){n[e]=!r.includes(e)})),be(lt(lt({},n),t)),ke(!1)}))})).catch((function(){Oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_catch"}),ke(!1)}))}),[]);var rt=function(){if(le)return!1;t(!1)},at=!o.external_plugins||o.external_plugins.every((function(e){return!0===e.active})),ct=Object.keys(m).every((function(e){return!1===m[e]})),ot={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(te,"&action=elementor"),brizy:"".concat(tiobDash.onboarding.homeUrl,"/?brizy-edit"),"beaver builder":"".concat(tiobDash.onboarding.homeUrl,"/?fl_builder"),"thrive architect":"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(te,"&action=architect&tve=true"),"divi builder":"".concat(tiobDash.onboarding.homeUrl,"/?et_fb=1&PageSpeed=off"),gutenberg:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(te,"&action=edit")}[a];return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:Se}]),onRequestClose:rt,shouldCloseOnClickOutside:!le&&!Se,isDismissible:!le&&!Se},Se?Object(r.createElement)(nt,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},le||"done"===ce||ge?Object(r.createElement)(r.Fragment,null,ge&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(z,{message:ge.message||null,code:ge.code||null}),Object(r.createElement)("hr",null)),null!==ce&&Object(r.createElement)(Xe,{progress:{theme_install:f,cleanup:C,plugins:D,content:$,customizer:q,widgets:K,performanceAddon:j},currentStep:ce,willDo:m}),"done"===ce&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),Object(r.createElement)("hr",null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(
10
  /* translators: name of starter site */
11
- Object(_.__)("Import %s as a complete site","templates-patterns-collection"),ye.title)),Object(r.createElement)("p",{className:"description"},Object(_.__)("Import the entire site including customizer options, pages, content and plugins.","templates-patterns-collection")))}),null),Object(r.createElement)((function(){return Object(r.createElement)(F,{data:ye,externalInstalled:at})}),null),Object(r.createElement)(E.Panel,{className:"modal-toggles"},!1!==i&&Object(r.createElement)((function(){var e=O()("option-row","active"),t={icon:"admin-appearance",title:Object(_.__)("Neve","templates-patterns-collection"),tooltip:Object(_.__)("In order to import the starter site, Neve theme has to be installed and activated.","templates-patterns-collection")},n=t.icon,a=t.title,c=t.tooltip;return Object(r.createElement)(E.PanelBody,{onToggle:function(){Re(!Be)},opened:Be,className:"options general",title:Object(_.__)("Install required theme","templates-patterns-collection")},Object(r.createElement)(E.PanelRow,{className:e},Object(r.createElement)(E.Icon,{icon:n}),Object(r.createElement)("span",null,a),c&&Object(r.createElement)(it,null,c)))}),null),Object(r.createElement)((function(){var e={content:{title:Object(_.__)("Content","templates-patterns-collection"),icon:"admin-post",tooltip:Object(_.__)("We recommend you backup your website content before attempting a full site import.","templates-patterns-collection")},customizer:{title:Object(_.__)("Customizer","templates-patterns-collection"),icon:"admin-customizer"},widgets:{title:Object(_.__)("Widgets","templates-patterns-collection"),icon:"admin-generic",tooltip:Object(_.__)("Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there.","templates-patterns-collection")},performanceAddon:{title:Object(_.__)("Enable performance features for my site","templates-patterns-collection"),icon:"dashboard",tooltip:Object(r.createInterpolateElement)(Object(_.__)(Object(_.sprintf)(// translators: %s is Optimole plugin name.
12
- "Optimize and speed up your site with our trusted addon, <a><span>%s</span><icon/></a>. It’s free.","Optimole"),"templates-patterns-collection"),{a:Object(r.createElement)("a",{href:"https://wordpress.org/plugins/optimole-wp/",target:"_blank",style:{textDecoration:"none",display:"inline-flex",alignItems:"center"}}),icon:Object(r.createElement)(E.Icon,{size:10,icon:"external",style:{marginLeft:0}}),span:Object(r.createElement)("div",null)})}};return"yes"===He&&(e=lt({cleanup:{icon:"trash",title:Object(_.__)("Cleanup previous import","templates-patterns-collection"),tooltip:Object(_.__)("This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import","templates-patterns-collection")}},e)),Object(r.createElement)(E.PanelBody,{onToggle:function(){Ie(!De)},opened:De,className:"options general",title:Object(_.__)("Import settings","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:m[t]}),o=e[t],i=o.icon,s=o.title,l=o.tooltip;return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:i}),Object(r.createElement)("span",null,s),l&&Object(r.createElement)(it,{toLeft:"performanceAddon"===t},l),"theme_install"!==t&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:m[t],onChange:function(){p(lt(lt({},m),{},c()({},t,!m[t])))}})))})))}),null),Object(r.createElement)((function(){if(Se)return null;var e=lt(lt({},ye.recommended_plugins||{}),ye.mandatory_plugins||{});return Object.keys(e).length<1?null:Object(r.createElement)(E.PanelBody,{onToggle:function(){xe(!Te)},opened:Te,className:"options plugins",title:Object(_.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:de[t]});return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:"admin-plugins"}),Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:e[t]}}),t in ye.recommended_plugins&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:de[t],onChange:function(){be(lt(lt({},de),{},c()({},t,!de[t])))}})))})))}),null)))),!le&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==ce?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,onClick:s},Object(_.__)("I want to import just the templates","templates-patterns-collection")),!ge&&Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,disabled:ct||!at,onClick:function(){ue(!0),function(){if(console.clear(),!m.cleanup)return console.log("[S] Cleanup."),qe(),!1;var e;oe("cleanup"),console.log("[P] Cleanup."),(e={},N(I.root+"/cleanup",e)).then((function(e){if(!e.success)return tt(e,"cleanup"),!1;console.log("[D] Cleanup."),x("done"),qe()})).catch((function(e){return tt(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:rt},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:ot},Object(_.__)("Add your own content","templates-patterns-collection"))))))})),mt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setSingleTemplateImport,r=t.setImportModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setTemplateModal:t.setTemplateModal}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getCurrentSite,a=t.getCurrentEditor;return{templateModal:n(),site:r(),editor:a()}})))((function(e){var t=e.slug,n=e.cancel,a=e.setModal,c=e.site,o=e.editor,i=e.setTemplateModal,s=e.templateModal,l=Object(r.useState)([]),u=y()(l,2),m=u[0],p=u[1],d=Object(r.useState)(!0),b=y()(d,2),f=b[0],h=b[1],g=Object(r.useState)(""),O=y()(g,2),v=O[0],j=O[1],w=Object(r.useState)([]),S=y()(w,2),k=S[0],C=S[1],N=c.title,T=c.upsell,x=c.utmOutboundLink;Object(r.useEffect)((function(){P()}),[]);var P=function(){se(!0,{per_page:100,template_site_slug:t,premade:!0,type:o}).then((function(e){p(e.templates||[]),h(!1)}))},M=function(e){j(e)},D=function(e){C(e),i(!0)},I=function(e){D([e])},A=function(e){e.preventDefault(),a(!0)},L=m.findIndex((function(e){return e.link===v})),B=m.find((function(e){return e.link===v}));return Object(r.createElement)("div",{className:"single-templates-wrapper"},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"breadcrumb"},Object(r.createElement)(E.Button,{isTertiary:!0,onClick:n},Object(r.createElement)(E.Icon,{icon:Y}),Object(_.__)("Back to Starter Sites"))),Object(r.createElement)("div",{className:"header"},Object(r.createElement)("div",{className:"text"},Object(r.createElement)("h1",null,N||"",T&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Icon,{icon:"lock"}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))),Object(r.createElement)("p",{className:"description"},Object(_.__)("You can import individual pages or bulk-import all of them."))),Object(r.createElement)("div",{className:"actions"},!T&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:m.length<1,onClick:function(e){e.preventDefault(),D(m)}},Object(_.__)("Import All Pages"))),T&&Object(r.createElement)(E.Button,{href:x||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade"))))),Object(r.createElement)((function(){return f?Object(r.createElement)(E.Spinner,null):m.length<1?Object(_.__)("No templates for this starter site."):Object(r.createElement)("div",{className:"cloud-items is-grid"},Object(r.createElement)("div",{className:"table"},m.map((function(e){return Object(r.createElement)(je,{upsell:T,onPreview:M,userTemplate:!1,key:e.template_id,item:e,loadTemplates:P,onImport:function(){return I(e)},grid:!0})}))))}),null),v&&Object(r.createElement)(Me,{heading:B.template_name||null,previewUrl:v,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:q,onClick:function(){return j("")},label:Object(_.__)("Close","templates-patterns-collection")}),m.length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:Y,onClick:function(){var e=L-1;0===L&&(e=m.length-1),j(m[e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Y:Q,onClick:function(){var e=L+1;L===m.length-1&&(e=0),j(m[e].link)}}))),rightButtons:Object(r.createElement)(r.Fragment,null,!T&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:m.length<1,onClick:function(){return I(B)}},Object(_.__)("Import Page"))),T&&Object(r.createElement)(E.Button,{href:x||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade")))}),s&&k&&!f&&k.length>0&&Object(r.createElement)(Ge,{templatesData:k}))})),pt=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c={starterSites:Object(_.__)("Starter Sites","templates-patterns-collection"),pageTemplates:Object(_.__)("Page Templates","templates-patterns-collection"),library:Object(_.__)("My Library","templates-patterns-collection")},o=Object(r.useState)(!1),i=y()(o,2),s=i[0],l=i[1],u=function(){var e=function(e){var t=window.location.hash;return"string"!=typeof window.location.hash?null:(t=t.substring(1),Object.keys(e).includes(t)?t:null)}(c);if(null!==e){var n=document.getElementById("menu-appearance"),r=n.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]'),a=n.querySelector('a[href="themes.php?page=tiob-starter-sites"]');if(r&&a){var o=r.parentElement,i=a.parentElement;n.querySelector(".current").classList.remove("current"),o.classList.remove("current"),"library"===e?o.classList.add("current"):i.classList.add("current")}t(e)}};return Object(r.useEffect)((function(){u(),window.addEventListener("hashchange",u)}),[]),Object(r.createElement)("div",{className:"header-nav"},Object.keys(c).map((function(e){return Object(r.createElement)(E.Button,{href:"#"+e,key:e,isTertiary:!0,isPressed:e===n,onClick:function(n){var r;n.preventDefault(),t(e),r=e,window.location.hash=r}},c[e])})),"starterSites"!==n&&Object(r.createElement)(E.Button,{icon:de,onClick:function(){l(!0),localStorage.setItem("tpcCacheBuster",ce());var e=n;t(null),setTimeout((function(){t(e),l(!1)}),100)},label:Object(_.__)("Re-sync Library"),className:O()("is-sync",{"is-loading":s}),disabled:a||s,"data-content":Object(_.__)("Sync")}))},dt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState;return{cancelOnboarding:function(){n(!1)},setCurrentTab:t.setCurrentTab,setFetching:t.setFetching}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getCurrentTab,a=t.getFetching;return{isOnboarding:n(),currentTab:r(),isFetching:a()}})))((function(e){var t=e.isOnboarding,n=e.cancelOnboarding,a=e.setCurrentTab,c=e.currentTab;return Object(r.createElement)("div",{className:"ob-head"},!t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"header-container"},Object(r.createElement)("h2",null,!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:We}),Object(r.createElement)("span",null,Object(_.__)("Templates Cloud","templates-patterns-collection"))),Object(r.createElement)(pt,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(E.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),bt=n(20),ft=n.n(bt),ht=Object(v.compose)(Object(h.withDispatch)((function(e,t){var n=t.data,r=n.slug,a=e("neve-onboarding"),c=a.setCurrentSite,o=a.setPreviewStatus,i=a.setImportModalStatus,s=a.setSingleTemplateImport;return{setSite:function(){return c(n)},setPreview:function(e){return o(e)},setModal:function(e){return i(e)},setImportingPages:function(){return s(r)}}})))((function(e){var t=e.data,n=e.setSite,a=e.setPreview,c=e.setModal,o=e.setImportingPages,i=t.upsell,s=t.screenshot,l=t.title,u=t.has_templates,m=t.isNew,p=Object(r.useState)(""),d=y()(p,2),b=d[0],f=d[1],h=O()("card starter-site-card",{"has-templates":u});return Object(r.createElement)("div",{onMouseEnter:function(){f("visible")},onMouseLeave:function(){f("")},className:h},m&&Object(r.createElement)("span",{className:"new-badge"},Object(_.__)("New","templates-patterns-collection").toUpperCase()),Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"actions "+b},Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(e){e.preventDefault(),n(),a(!0)}},Object(_.__)("Preview","templates-patterns-collection")),!i&&Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(e){e.preventDefault(),n(),c(!0)}},Object(_.__)("Import","templates-patterns-collection")),!u&&i&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",target:"_blank",href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=wpadmin&utm_campaign=templatecloud&utm_content=neve"},Object(_.__)("Unlock access with Business plan","templates-patterns-collection")),u&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",onClick:function(e){e.preventDefault(),n(),o()}},Object(_.__)("View Pages","templates-patterns-collection"))),s&&Object(r.createElement)("div",{className:"image",style:{backgroundImage:'url("'.concat(s,'")')}})),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},l),i&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Dashicon,{icon:"lock",size:15}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))))})),gt=Object(v.compose)(Object(h.withSelect)((function(e){return{siteData:(0,e("neve-onboarding").getCurrentSite)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentSite,r=t.setPreviewStatus,a=t.setImportModalStatus;return{setSite:function(e){return n(e)},setPreview:function(e){return r(e)},setModal:function(e){return a(e)}}})))((function(e){var t=e.next,n=e.prev,a=e.siteData,c=e.setSite,o=e.setPreview,i=e.setModal;return Object(r.createElement)("div",{className:"ob-preview"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{src:a.url,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},Object(r.createElement)("div",{className:"navigator"},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),o(!1),c(null)},className:"close",label:Object(_.__)("Close","templates-patterns-collection"),icon:q}),n&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(n)},className:"prev",label:Object(_.__)("Previous","templates-patterns-collection"),icon:Object(_.isRTL)()?Q:Y}),t&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(t)},className:"next",label:Object(_.__)("Next","templates-patterns-collection"),icon:Object(_.isRTL)()?Y:Q})),Object(r.createElement)("div",{className:"actions"},a.upsell?Object(r.createElement)(E.Button,{className:"upgrade",isPrimary:!0,href:a.utmOutboundLink||tiobDash.upgradeURL},Object(_.__)("Upgrade and Import","templates-patterns-collection")):Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,onClick:function(e){e.preventDefault(),i(!0)}},Object(_.__)("Import","templates-patterns-collection")))))})),Ot=function(e){var t=e.editor,n=e.data,a=n.text,c=n.cta,o=n.url;return Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"notification"},Object(r.createElement)("p",null,a),o&&c&&Object(r.createElement)(E.Button,{target:"_blank",isSecondary:!0,href:o.replace("<builder_name>",t).replace(" ","")},c))}),null)},vt=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentCategory,r=t.getCurrentEditor,a=t.getSearchQuery;return{editor:r(),category:n(),query:a()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentCategory,r=t.setCurrentEditor,a=t.setSearchQuery;return{setCurrentCategory:function(e){return n(e)},setCurrentEditor:function(e){return r(e)},onSearch:function(e){return a(e)}}})))((function(e){var t=e.count,n=(e.categories,e.editors),a=e.onSearch,c=(e.category,e.editor),o=e.onlyProSites,i=(e.setCurrentCategory,e.setCurrentEditor),s=e.query,l=e.className,u=e.showCount,m=void 0!==u&&u,p=Object(r.useState)(!1),d=y()(p,2),b=d[0],f=d[1],h=function(){return f(!b)},g=O()(l,"header-form");return Object(r.createElement)("div",{className:g},Object(r.createElement)("div",{className:"search"},Object(r.createElement)("img",{src:tiobDash.assets+"/img/search.svg",alt:Object(_.__)("Search Icon")}),Object(r.createElement)("input",{onChange:function(e){a(e.target.value)},type:"search",value:s,placeholder:Object(_.__)("Search for a starter site","templates-patterns-collection")+"..."}),!1,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"ob-dropdown categories-selector"},Object(r.createElement)(E.Button,{onClick:h,className:"select ob-dropdown"},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[c].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(c)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px",marginLeft:"0"}}),n[c].niceName),Object(r.createElement)(E.Dashicon,{size:14,icon:b?"arrow-up-alt2":"arrow-down-alt2"}),b&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:h,noArrow:!0},b&&Object(r.createElement)("ul",{className:"options"},Object.keys(n).map((function(e,a){return e===c?null:Object(r.createElement)("li",{key:a},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),i(e),f(!1)}},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),n[e].niceName),m&&Object(r.createElement)("span",{className:"count"},t[e])))}))))))}),null)))})),jt=(Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.editor,c=e.setCurrentEditor,o=e.sites,i=e.isSmall,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=Object.keys(o),d=function(){return m(!u)},b=O()(["ob-dropdown","editor-selector",{small:i}]);return Object(r.createElement)("div",{className:b},Object(r.createElement)(E.Button,{onClick:d,className:"select ob-dropdown"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[a].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),!i&&Object(r.createElement)("span",null,t[a].niceName),Object(r.createElement)("span",{className:"count"},n[a]),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:d,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},p.map((function(e,o){return e===a?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),Object(r.createElement)("span",null,t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.onlyProSites,c=e.editor,o=e.setCurrentEditor,i=e.sites,s=Object.keys(i);return Object(r.createElement)("div",{className:"editor-tabs"},s.map((function(e,i){var s=O()(["tab",e,{active:e===c}]);return Object(r.createElement)("a",{key:i,href:"#",className:s,onClick:function(t){t.preventDefault(),o(e)}},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),Object(r.createElement)("span",{className:"editor"},a.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e]))})))})),Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=e.showCount,i=void 0!==o&&o;return Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(t).map((function(e,o){if(1>n[e])return null;if(tiobDash&&"1"===tiobDash.isValidLicense&&"free"===e)return null;var s=O()(["tab",e,{active:e===a}]);return Object(r.createElement)("a",{key:o,href:"#",className:s,onClick:function(t){t.preventDefault(),c(e)}},Object(r.createElement)("span",{className:"editor"},t[e]),i&&Object(r.createElement)("span",{className:"count"},n[e]))})))}))),yt=Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=e.showCount,i=void 0!==o&&o,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=function(){return m(!u)},d=O()(["ob-dropdown","editor-selector",{small:!0}]);return Object(r.createElement)("div",{className:d},Object(r.createElement)(E.Button,{onClick:p,className:"select ob-dropdown"},Object(r.createElement)("span",null,t[a]),Object(r.createElement)("span",{className:"count"},i?n[a]:""),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:p,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},Object.keys(t).map((function(e,o){return e===a||tiobDash&&"1"===tiobDash.isValidLicense&&"free"===e||1>n[e]?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("span",null,t[e]),i&&Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),Et=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getOnboardingStatus,c=t.getSites;return{editor:n(),category:r(),isOnboarding:a(),getSites:c()}})))((function(e){var t,n=e.filterByCategory,a=e.filterBySearch,c=e.getSitesForBuilder,o=e.isOnboarding,i=e.getSites,s=e.category,l=e.editor,u=Object(r.useState)(!1),m=y()(u,2),p=m[0],d=m[1],b=i.sites,f=void 0===b?{}:b,h=i.migration,g={top:p?0:"-100%"},O=Object.keys(f),v=O.filter((function(e){return Object.keys(f[e]).filter((function(t){return!0===f[e][t].upsell})).length===Object.keys(f[e]).length})),j=(t={builders:{},categories:{}},O.forEach((function(e){var r=c(e);r=n(r,s),r=a(r),t.builders[e]=r?r.length:0})),Object.keys(Ke).forEach((function(e){var r=c(l);r=n(r,e),r=a(r),t.categories[e]=r?r.length:0})),t),_=50<=c(l).length;return Object(r.createElement)(r.Fragment,null,!o&&!h&&Object(r.createElement)("div",{className:"sticky-nav",style:g},Object(r.createElement)("div",{className:"container sticky-nav-content"},!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:We,size:32}),Object(r.createElement)(vt,{className:"in-sticky",count:j.builders,categories:Ke,editors:Ze,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(yt,{count:j.categories,categories:Ke,showCount:_}))),Object(r.createElement)(G.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),!1,Object(r.createElement)(yt,{count:j.categories,categories:Ke,showCount:_}),Object(r.createElement)(vt,{count:j.builders,categories:Ke,editors:Ze,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(jt,{categories:Ke,count:j.categories,showCount:_}),!tiobDash.isValidLicense&&Object(r.createElement)(Ot,{data:tiobDash.upsellNotifications.upsell_1,editor:l}))))})),_t=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab,setSearchQuery:t.setSearchQuery}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSearchQuery;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),searchQuery:m()}})))((function(e){var t=e.getSites,n=e.category,a=e.resetCategory,c=e.editor,o=e.previewOpen,i=e.currentSiteData,s=e.isOnboarding,l=e.cancelOnboarding,u=e.setSearchQuery,m=e.searchQuery,p=t.sites,d=void 0===p?{}:p,b=function(){var e={};return g().forEach((function(t){var n=d&&d[t]?d[t]:{};e[t]=$()(Object.values(n))})),e},f=function(e,t){return"free"===t?e.filter((function(e){return!e.upsell})):"all"!==t?e.filter((function(e){return e.keywords.includes(t)})):e},h=function(e){return m?new ft.a(e,{includeScore:!0,keys:["title","slug","keywords"]}).search(m).map((function(e){return e.item})):e},g=function(){return Object.keys(d)},O=function(){var e=b()[c];return e=h(e),f(e,n)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null===i)return null;var t=b()[c],n=t.indexOf(i);return-1===n||1===t.length?null:e&&0===n?t[t.length-1]:e||n!==t.length-1?t[e?n-1:n+1]:t[0]};return 1>d.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,Object(_.__)("Starter sites could not be loaded. Please refresh and try again.","templates-patterns-collection"),s&&Object(r.createElement)(E.Button,{style:{display:"block",margin:"20px auto"},isPrimary:!0,onClick:l},Object(_.__)("Close","templates-patterns-collection")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Et,{getSitesForBuilder:function(e){return b()[e]},filterBySearch:h,filterByCategory:f}),0===O().length&&Object(r.createElement)("div",{className:"no-results"},Object(r.createElement)("p",null,Object(_.__)("No results found.","templates-patterns-collection")," ",Object(_.__)("You can try a different search or use one of the categories below.","templates-patterns-collection")),Object(r.createElement)("div",{className:"tags"},Je.map((function(e,t){return Object(r.createElement)(E.Button,{key:t,isPrimary:!0,className:"tag",onClick:function(t){t.preventDefault(),u(e),a()}},e)})))),Object(r.createElement)((function(){var e=Object(r.useState)(9),t=y()(e,2),n=t[0],a=t[1],c=O();return Object(r.createElement)("div",{className:"ob-sites is-grid"},c.slice(0,n).map((function(e,t){return Object(r.createElement)(ht,{key:t,data:e})})),Object(r.createElement)(G.a,{onChange:function(e){if(!e)return!1;a(n+9)}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})))}),null),o&&i&&Object(r.createElement)(gt,{next:v(),prev:v(!0)}))})),wt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSingleImport;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),singleImport:m()}})))((function(e){var t=e.getSites,n=(e.installModal,e.currentTab),a=e.singleImport,c=e.importModal,o=e.currentSiteData,i=(e.isOnboarding,t.migration);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ob"},Object(r.createElement)(dt,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},i&&Object(r.createElement)(U,{data:i}),"starterSites"===n&&(a?Object(r.createElement)(mt,{slug:a}):Object(r.createElement)(_t,null)),"library"===n&&Object(r.createElement)(Ye,null),"pageTemplates"===n&&Object(r.createElement)(Ye,{isGeneral:!0})))),c&&o&&Object(r.createElement)(ut,null))})),St=Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getUserStatus;return{onboarding:n(),userStatus:r()}}))((function(e){var t=e.onboarding,n=e.userStatus,a=O()(["content-wrap","starter-sites",{"is-onboarding":t,"is-free":!n}]);return Object(r.createElement)("div",{className:"tiob-wrap"},Object(r.createElement)("div",{className:a},Object(r.createElement)("div",{className:"container content"},Object(r.createElement)("div",{className:"main"},Object(r.createElement)("div",{className:"tab-content columns starter-sites"},Object(r.createElement)(wt,null))))))}));Object(h.registerStore)("neve-onboarding",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REFRESH_SITES":var n=t.payload.sites;return i(i({},e),{},{sites:n});case"SET_CURRENT_EDITOR":var r=t.payload.editor;return localStorage.setItem("neve-onboarding-editor",r),i(i({},e),{},{editor:r});case"SET_CURRENT_CATEGORY":var a=t.payload.category;return i(i({},e),{},{category:a});case"SET_FOCUSED_SITE":var c=t.payload.siteData;return i(i({},e),{},{currentSite:c});case"SET_PREVIEW_STATUS":var o=t.payload.previewStatus;return i(i({},e),{},{previewStatus:o});case"SET_IMPORT_MODAL_STATUS":var s=t.payload.importModalStatus;return i(i({},e),{},{importModalStatus:s});case"SET_INSTALL_MODAL_STATUS":var l=t.payload.installModalStatus;return i(i({},e),{},{installModalStatus:l});case"SET_ONBOARDING":var u=t.payload.status;return i(i({},e),{},{isOnboarding:u});case"SET_THEME_ACTIONS":var m=t.payload.themeActions;return i(i({},e),{},{themeAction:m});case"SET_CURRENT_TAB":var p=t.payload.currentTab;return i(i({},e),{},{singleTemplateImport:null,currentTab:p});case"SET_FETCHING":var b=t.payload.fetching;return i(i({},e),{},{fetching:b});case"SET_SINGLE_TEMPLATE_IMPORT":var f=t.payload.slug;return i(i({},e),{},{singleTemplateImport:f});case"SET_TEMPLATE_MODAL":var h=t.payload.data;return i(i({},e),{},{templateModal:h});case"SET_SEARCH_QUERY":var g=t.payload.query;return i(i({},e),{},{searchQuery:g})}return e},actions:b,selectors:f}),Object(r.render)(Object(r.createElement)(St,null),document.getElementById("tpc-app"))}]);
1
+ (window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[]).push([[1],{22:function(e,t,n){}}]),function(e){function t(t){for(var r,o,i=t[0],s=t[1],l=t[2],m=0,p=[];m<i.length;m++)o=i[m],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&p.push(a[o][0]),a[o]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,l||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,i=1;i<n.length;i++){var s=n[i];0!==a[s]&&(r=!1)}r&&(c.splice(t--,1),e=o(o.s=n[0]))}return e}var r={},a={0:0},c=[];function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var i=window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var u=s;c.push([34,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},function(e,t,n){var r=n(23),a=n(24),c=n(16),o=n(25);e.exports=function(e,t){return r(e)||a(e,t)||c(e,t)||o()}},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.primitives},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e,t,n,r,a,c,o){try{var i=e[c](o),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,c){var o=e.apply(t,r);function i(e){n(o,a,c,i,s,"next",e)}function s(e){n(o,a,c,i,s,"throw",e)}i(void 0)}))}}},function(e,t,n){"use strict";const r=n(31),a=n(32),c=n(33);function o(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function i(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e,t){return t.decode?a(e):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function p(e,t){o((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const a="string"==typeof n&&n.includes(e.arrayFormatSeparator),c="string"==typeof n&&!a&&s(n,e).includes(e.arrayFormatSeparator);n=c?s(n,e):n;const o=a||c?n.split(e.arrayFormatSeparator).map(t=>s(t,e)):null===n?n:s(n,e);r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const a of e.split("&")){let[e,o]=c(t.decode?a.replace(/\+/g," "):a,"=");o=void 0===o?null:["comma","separator"].includes(t.arrayFormat)?o:s(o,t),n(s(e,t),o,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=m(n[e],t);else r[e]=m(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=u,t.parse=p,t.stringify=(e,t)=>{if(!e)return"";o((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[i(t,e),"[",a,"]"].join("")]:[...n,[i(t,e),"[",i(a,e),"]=",i(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[i(t,e),"[]"].join("")]:[...n,[i(t,e),"[]=",i(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[i(t,e),"=",i(r,e)].join("")]:[[n,i(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,i(t,e)]:[...n,[i(t,e),"=",i(r,e)].join("")]}}(t),a={};for(const t of Object.keys(e))n(t)||(a[t]=e[t]);const c=Object.keys(a);return!1!==t.sort&&c.sort(t.sort),c.map(n=>{const a=e[n];return void 0===a?"":null===a?i(n,t):Array.isArray(a)?a.reduce(r(n),[]).join("&"):i(n,t)+"="+i(a,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=c(e,"#");return Object.assign({url:n.split("?")[0]||"",query:p(u(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:s(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=l(e.url).split("?")[0]||"",a=t.extract(e.url),c=t.parse(a,{sort:!1}),o=Object.assign(c,e.query);let s=t.stringify(o,n);s&&(s="?"+s);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#"+i(e.fragmentIdentifier,n)),`${r}${s}${u}`}},function(e,t,n){var r=n(26),a=n(27),c=n(16),o=n(28);e.exports=function(e){return r(e)||a(e)||c(e)||o()}},,function(e,t){e.exports=window.wp.apiFetch},function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(5)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t,n){var r=e.direction,a=e.value;switch(r){case"top":return n.top+a<t.top&&n.bottom>t.bottom&&n.left<t.left&&n.right>t.right;case"left":return n.left+a<t.left&&n.bottom>t.bottom&&n.top<t.top&&n.right>t.right;case"bottom":return n.bottom-a>t.bottom&&n.left<t.left&&n.right>t.right&&n.top<t.top;case"right":return n.right-a>t.right&&n.left<t.left&&n.top<t.top&&n.bottom>t.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var r=n(1),a=n.n(r),c=n(2),o=n.n(c),i=n(0),s=n.n(i),l=n(3),u=n.n(l);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this,r=d(t).call(this,e),n=!r||"object"!==m(r)&&"function"!=typeof r?b(this):r,h(b(n),"getContainer",(function(){return n.props.containment||window})),h(b(n),"addEventListener",(function(e,t,r,a){var c;n.debounceCheck||(n.debounceCheck={});var o=function(){c=null,n.check()},i={target:e,fn:a>-1?function(){c||(c=setTimeout(o,a||0))}:function(){clearTimeout(c),c=setTimeout(o,r||0)},getLastTimeout:function(){return c}};e.addEventListener(t,i.fn),n.debounceCheck[t]=i})),h(b(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),h(b(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),h(b(n),"check",(function(){var e,t,r=n.node;if(!r)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(r.getBoundingClientRect())),n.props.containment){var a=n.props.containment.getBoundingClientRect();t={top:a.top,left:a.left,bottom:a.bottom,right:a.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var c=n.props.offset||{};"object"===m(c)&&(t.top+=c.top||0,t.left+=c.left||0,t.bottom-=c.bottom||0,t.right-=c.right||0);var o={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},i=e.height>0&&e.width>0,s=i&&o.top&&o.left&&o.bottom&&o.right;if(i&&n.props.partialVisibility){var l=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(l=o[n.props.partialVisibility]),s=n.props.minTopValue?l&&e.top<=t.bottom-n.props.minTopValue:l}"string"==typeof c.direction&&"number"==typeof c.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",c.direction,c.value),s=u()(c,e,t));var p=n.state;return n.state.isVisible!==s&&(p={isVisible:s,visibilityRect:o},n.setState(p),n.props.onChange&&n.props.onChange(s)),p})),n.state={isVisible:null,visibilityRect:{}},n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.node=o.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=o.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):a.a.Children.only(this.props.children)}}])&&p(n.prototype,r),t}(a.a.Component);h(g,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:a.a.createElement("span",null)}),h(g,"propTypes",{onChange:s.a.func,active:s.a.bool,partialVisibility:s.a.oneOfType([s.a.bool,s.a.oneOf(["top","right","bottom","left"])]),delayedCall:s.a.bool,offset:s.a.oneOfType([s.a.shape({top:s.a.number,left:s.a.number,bottom:s.a.number,right:s.a.number}),s.a.shape({direction:s.a.oneOf(["top","right","bottom","left"]),value:s.a.number})]),scrollCheck:s.a.bool,scrollDelay:s.a.number,scrollThrottle:s.a.number,resizeCheck:s.a.bool,resizeDelay:s.a.number,resizeThrottle:s.a.number,intervalCheck:s.a.bool,intervalDelay:s.a.number,containment:"undefined"!=typeof window?s.a.instanceOf(window.Element):s.a.any,children:s.a.oneOfType([s.a.element,s.a.func]),minTopValue:s.a.number})},function(e,t,n){"use strict";var r=n(6);function a(){}function c(){}c.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,c,o){if(o!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=r(n(29),n(30))},function(e,t,n){var r=n(17);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=window.wp.keycodes},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},function(e,t,n){var r;r=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var a=s(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return l(this,n)}}function m(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function b(e){return"string"==typeof e}function f(e){return"number"==typeof e}function h(t){return"object"===e(t)}function g(e){return null!=e}function O(e){return!e.trim().length}function v(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var j=function(e){return"Invalid value for key ".concat(e)},y=function(e){return"Pattern length exceeds max of ".concat(e,".")},E=Object.prototype.hasOwnProperty,_=function(){function e(n){var r=this;t(this,e),this._keys=[],this._keyMap={};var a=0;n.forEach((function(e){var t=w(e);a+=t.weight,r._keys.push(t),r._keyMap[t.id]=t,a+=t.weight})),this._keys.forEach((function(e){e.weight/=a}))}return r(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function w(e){var t=null,n=null,r=null,a=1;if(b(e)||d(e))r=e,t=S(e),n=k(e);else{if(!E.call(e,"name"))throw new Error("Missing ".concat("name"," property in key"));var c=e.name;if(r=c,E.call(e,"weight")&&(a=e.weight)<=0)throw new Error(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(c));t=S(c),n=k(c)}return{path:t,id:n,weight:a,src:r}}function S(e){return d(e)?e:e.split(".")}function k(e){return d(e)?e.join("."):e}var C=o({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}},{},{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},{},{location:0,threshold:.6,distance:100},{},{useExtendedSearch:!1,getFn:function(e,t){var n=[],r=!1;return function e(t,a,c){if(g(t))if(a[c]){var o=t[a[c]];if(!g(o))return;if(c===a.length-1&&(b(o)||f(o)||function(e){return!0===e||!1===e||function(e){return h(e)&&null!==e}(e)&&"[object Boolean]"==v(e)}(o)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(o));else if(d(o)){r=!0;for(var i=0,s=o.length;i<s;i+=1)e(o[i],a,c+1)}else a.length&&e(o,a,c+1)}else n.push(t)}(e,b(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1}),N=/[^ ]+/g;function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=new Map,n=Math.pow(10,e);return{get:function(e){var r=e.match(N).length;if(t.has(r))return t.get(r);var a=1/Math.sqrt(r),c=parseFloat(Math.round(a*n)/n);return t.set(r,c),c},clear:function(){t.clear()}}}var x=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.getFn,a=void 0===r?C.getFn:r;t(this,e),this.norm=T(3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}return r(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,b(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();b(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(g(e)&&!O(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){var n=this,r={i:t,$:{}};this.keys.forEach((function(t,a){var c=n.getFn(e,t.path);if(g(c))if(d(c))!function(){for(var e=[],t=[{nestedArrIndex:-1,value:c}];t.length;){var o=t.pop(),i=o.nestedArrIndex,s=o.value;if(g(s))if(b(s)&&!O(s)){var l={v:s,i:i,n:n.norm.get(s)};e.push(l)}else d(s)&&s.forEach((function(e,n){t.push({nestedArrIndex:n,value:e})}))}r.$[a]=e}();else if(!O(c)){var o={v:c,n:n.norm.get(c)};r.$[a]=o}})),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,a=void 0===r?C.getFn:r,c=new x({getFn:a});return c.setKeys(e.map(w)),c.setSources(t),c.create(),c}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,a=t.currentLocation,c=void 0===a?0:a,o=t.expectedLocation,i=void 0===o?0:o,s=t.distance,l=void 0===s?C.distance:s,u=t.ignoreLocation,m=void 0===u?C.ignoreLocation:u,p=r/e.length;if(m)return p;var d=Math.abs(i-c);return l?p+d/l:d?1:p}function D(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.minMatchCharLength,n=[],r=-1,a=-1,c=0,o=e.length;c<o;c+=1){var i=e[c];i&&-1===r?r=c:i||-1===r||((a=c-1)-r+1>=t&&n.push([r,a]),r=-1)}return e[c-1]&&c-r>=t&&n.push([r,c-1]),n}function I(e){for(var t={},n=0,r=e.length;n<r;n+=1){var a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}var A=function(){function e(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a.location,o=void 0===c?C.location:c,i=a.threshold,s=void 0===i?C.threshold:i,l=a.distance,u=void 0===l?C.distance:l,m=a.includeMatches,p=void 0===m?C.includeMatches:m,d=a.findAllMatches,b=void 0===d?C.findAllMatches:d,f=a.minMatchCharLength,h=void 0===f?C.minMatchCharLength:f,g=a.isCaseSensitive,O=void 0===g?C.isCaseSensitive:g,v=a.ignoreLocation,j=void 0===v?C.ignoreLocation:v;if(t(this,e),this.options={location:o,threshold:s,distance:u,includeMatches:p,findAllMatches:b,minMatchCharLength:h,isCaseSensitive:O,ignoreLocation:j},this.pattern=O?n:n.toLowerCase(),this.chunks=[],this.pattern.length){var y=function(e,t){r.chunks.push({pattern:e,alphabet:I(e),startIndex:t})},E=this.pattern.length;if(E>32){for(var _=0,w=E%32,S=E-w;_<S;)y(this.pattern.substr(_,32),_),_+=32;if(w){var k=E-32;y(this.pattern.substr(k),k)}}else y(this.pattern,0)}}return r(e,[{key:"searchIn",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var a={isMatch:!0,score:0};return r&&(a.indices=[[0,e.length-1]]),a}var c=this.options,o=c.location,i=c.distance,s=c.threshold,l=c.findAllMatches,u=c.minMatchCharLength,p=c.ignoreLocation,d=[],b=0,f=!1;this.chunks.forEach((function(t){var n=t.pattern,a=t.alphabet,c=t.startIndex,h=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.location,c=void 0===a?C.location:a,o=r.distance,i=void 0===o?C.distance:o,s=r.threshold,l=void 0===s?C.threshold:s,u=r.findAllMatches,m=void 0===u?C.findAllMatches:u,p=r.minMatchCharLength,d=void 0===p?C.minMatchCharLength:p,b=r.includeMatches,f=void 0===b?C.includeMatches:b,h=r.ignoreLocation,g=void 0===h?C.ignoreLocation:h;if(t.length>32)throw new Error(y(32));for(var O,v=t.length,j=e.length,E=Math.max(0,Math.min(c,j)),_=l,w=E,S=d>1||f,k=S?Array(j):[];(O=e.indexOf(t,w))>-1;){var N=M(t,{currentLocation:O,expectedLocation:E,distance:i,ignoreLocation:g});if(_=Math.min(N,_),w=O+v,S)for(var T=0;T<v;)k[O+T]=1,T+=1}w=-1;for(var x=[],P=1,I=v+j,A=1<<v-1,L=0;L<v;L+=1){for(var B=0,R=I;B<R;){var F=M(t,{errors:L,currentLocation:E+R,expectedLocation:E,distance:i,ignoreLocation:g});F<=_?B=R:I=R,R=Math.floor((I-B)/2+B)}I=R;var z=Math.max(1,E-R+1),U=m?j:Math.min(E+R,j)+v,V=Array(U+2);V[U+1]=(1<<L)-1;for(var $=U;$>=z;$-=1){var H=$-1,G=n[e.charAt(H)];if(S&&(k[H]=+!!G),V[$]=(V[$+1]<<1|1)&G,L&&(V[$]|=(x[$+1]|x[$])<<1|1|x[$+1]),V[$]&A&&(P=M(t,{errors:L,currentLocation:H,expectedLocation:E,distance:i,ignoreLocation:g}))<=_){if(_=P,(w=H)<=E)break;z=Math.max(1,2*E-w)}}var q=M(t,{errors:L+1,currentLocation:E,expectedLocation:E,distance:i,ignoreLocation:g});if(q>_)break;x=V}var W={isMatch:w>=0,score:Math.max(.001,P)};if(S){var Q=D(k,d);Q.length?f&&(W.indices=Q):W.isMatch=!1}return W}(e,n,a,{location:o+c,distance:i,threshold:s,findAllMatches:l,minMatchCharLength:u,includeMatches:r,ignoreLocation:p}),g=h.isMatch,O=h.score,v=h.indices;g&&(f=!0),b+=O,g&&v&&(d=[].concat(m(d),m(v)))}));var h={isMatch:f,score:f?b/this.chunks.length:1};return f&&r&&(h.indices=d),h}}]),e}(),L=function(){function e(n){t(this,e),this.pattern=n}return r(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return B(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return B(e,this.singleRegex)}}]),e}();function B(e,t){var n=e.match(t);return n?n[1]:null}var R=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),a}(L),F=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),a}(L),z=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),a}(L),U=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),a}(L),V=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),a}(L),$=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),a}(L),H=function(e){i(a,e);var n=u(a);function a(e){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=c.location,i=void 0===o?C.location:o,s=c.threshold,l=void 0===s?C.threshold:s,u=c.distance,m=void 0===u?C.distance:u,p=c.includeMatches,d=void 0===p?C.includeMatches:p,b=c.findAllMatches,f=void 0===b?C.findAllMatches:b,h=c.minMatchCharLength,g=void 0===h?C.minMatchCharLength:h,O=c.isCaseSensitive,v=void 0===O?C.isCaseSensitive:O,j=c.ignoreLocation,y=void 0===j?C.ignoreLocation:j;return t(this,a),(r=n.call(this,e))._bitapSearch=new A(e,{location:i,threshold:l,distance:m,includeMatches:d,findAllMatches:f,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:y}),r}return r(a,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),a}(L),G=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){for(var t,n=0,r=[],a=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+a,r.push([t,n-1]);var c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),a}(L),q=[R,G,z,U,$,V,F,H],W=q.length,Q=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(Q).filter((function(e){return e&&!!e.trim()})),r=[],a=0,c=n.length;a<c;a+=1){for(var o=n[a],i=!1,s=-1;!i&&++s<W;){var l=q[s],u=l.isMultiMatch(o);u&&(r.push(new l(u,t)),i=!0)}if(!i)for(s=-1;++s<W;){var m=q[s],p=m.isSingleMatch(o);if(p){r.push(new m(p,t));break}}}return r}))}var J=new Set([H.type,G.type]),K=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.isCaseSensitive,c=void 0===a?C.isCaseSensitive:a,o=r.includeMatches,i=void 0===o?C.includeMatches:o,s=r.minMatchCharLength,l=void 0===s?C.minMatchCharLength:s,u=r.ignoreLocation,m=void 0===u?C.ignoreLocation:u,p=r.findAllMatches,d=void 0===p?C.findAllMatches:p,b=r.location,f=void 0===b?C.location:b,h=r.threshold,g=void 0===h?C.threshold:h,O=r.distance,v=void 0===O?C.distance:O;t(this,e),this.query=null,this.options={isCaseSensitive:c,includeMatches:i,minMatchCharLength:l,findAllMatches:d,ignoreLocation:m,location:f,threshold:g,distance:v},this.pattern=c?n:n.toLowerCase(),this.query=Y(this.pattern,this.options)}return r(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var a=0,c=[],o=0,i=0,s=t.length;i<s;i+=1){var l=t[i];c.length=0,a=0;for(var u=0,p=l.length;u<p;u+=1){var d=l[u],b=d.search(e),f=b.isMatch,h=b.indices,g=b.score;if(!f){o=0,a=0,c.length=0;break}if(a+=1,o+=g,r){var O=d.constructor.type;J.has(O)?c=[].concat(m(c),m(h)):c.push(h)}}if(a){var v={isMatch:!0,score:o/a};return r&&(v.indices=c),v}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(e,t){return t.useExtendedSearch}}]),e}(),Z=[];function X(e,t){for(var n=0,r=Z.length;n<r;n+=1){var a=Z[n];if(a.condition(e,t))return new a(e,t)}return new A(e,t)}var ee="$and",te="$path",ne=function(e){return!(!e[ee]&&!e.$or)},re=function(e){return!!e[te]},ae=function(e){return!d(e)&&h(e)&&!ne(e)},ce=function(e){return a({},ee,Object.keys(e).map((function(t){return a({},t,e[t])})))};function oe(e,t){var n=t.ignoreFieldNorm,r=void 0===n?C.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,a=e.norm,c=e.score,o=n?n.weight:null;t*=Math.pow(0===c&&o?Number.EPSILON:c,(o||1)*(r?1:a))})),e.score=t}))}function ie(e,t){var n=e.matches;t.matches=[],g(n)&&n.forEach((function(e){if(g(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function se(e,t){t.score=e.score}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,a=void 0===r?C.includeMatches:r,c=n.includeScore,o=void 0===c?C.includeScore:c,i=[];return a&&i.push(ie),o&&i.push(se),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return i.length&&i.forEach((function(t){t(e,r)})),r}))}var ue=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;t(this,e),this.options=o({},C,{},r),this.options.useExtendedSearch,this._keyStore=new _(this.options.keys),this.setCollection(n,a)}return r(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof x))throw new Error("Incorrect 'index' type");this._myIndex=t||P(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(e){g(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){var a=this._docs[n];e(a,n)&&(this.removeAt(n),n-=1,r-=1,t.push(a))}return t}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,a=this.options,c=a.includeMatches,o=a.includeScore,i=a.shouldSort,s=a.sortFn,l=a.ignoreFieldNorm,u=b(e)?b(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return oe(u,{ignoreFieldNorm:l}),i&&u.sort(s),f(r)&&r>-1&&(u=u.slice(0,r)),le(u,this._docs,{includeMatches:c,includeScore:o})}},{key:"_searchStringList",value:function(e){var t=X(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,a=e.i,c=e.n;if(g(n)){var o=t.searchIn(n),i=o.isMatch,s=o.score,l=o.indices;i&&r.push({item:n,idx:a,matches:[{score:s,value:n,norm:c,indices:l}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,a=void 0===r||r,c=function e(n){var r=Object.keys(n),c=re(n);if(!c&&r.length>1&&!ne(n))return e(ce(n));if(ae(n)){var o=c?n[te]:r[0],i=c?n.$val:n[o];if(!b(i))throw new Error(j(o));var s={keyId:k(o),pattern:i};return a&&(s.searcher=X(i,t)),s}var l={children:[],operator:r[0]};return r.forEach((function(t){var r=n[t];d(r)&&r.forEach((function(t){l.children.push(e(t))}))})),l};return ne(e)||(e=ce(e)),c(e)}(e,this.options),r=this._myIndex.records,a={},c=[];return r.forEach((function(e){var r=e.$,o=e.i;if(g(r)){var i=function e(n,r,a){if(!n.children){var c=n.keyId,o=n.searcher,i=t._findMatches({key:t._keyStore.get(c),value:t._myIndex.getValueForItemAtKeyId(r,c),searcher:o});return i&&i.length?[{idx:a,item:r,matches:i}]:[]}switch(n.operator){case ee:for(var s=[],l=0,u=n.children.length;l<u;l+=1){var p=e(n.children[l],r,a);if(!p.length)return[];s.push.apply(s,m(p))}return s;case"$or":for(var d=[],b=0,f=n.children.length;b<f;b+=1){var h=e(n.children[b],r,a);if(h.length){d.push.apply(d,m(h));break}}return d}}(n,r,o);i.length&&(a[o]||(a[o]={idx:o,item:r,matches:[]},c.push(a[o])),i.forEach((function(e){var t,n=e.matches;(t=a[o].matches).push.apply(t,m(n))})))}})),c}},{key:"_searchObjectList",value:function(e){var t=this,n=X(e,this.options),r=this._myIndex,a=r.keys,c=r.records,o=[];return c.forEach((function(e){var r=e.$,c=e.i;if(g(r)){var i=[];a.forEach((function(e,a){i.push.apply(i,m(t._findMatches({key:e,value:r[a],searcher:n})))})),i.length&&o.push({idx:c,item:r,matches:i})}})),o}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!g(n))return[];var a=[];if(d(n))n.forEach((function(e){var n=e.v,c=e.i,o=e.n;if(g(n)){var i=r.searchIn(n),s=i.isMatch,l=i.score,u=i.indices;s&&a.push({score:l,key:t,value:n,idx:c,norm:o,indices:u})}}));else{var c=n.v,o=n.n,i=r.searchIn(c),s=i.isMatch,l=i.score,u=i.indices;s&&a.push({score:l,key:t,value:c,norm:o,indices:u})}return a}}]),e}();return ue.version="6.4.6",ue.createIndex=P,ue.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?C.getFn:n,a=e.keys,c=e.records,o=new x({getFn:r});return o.setKeys(a),o.setIndexRecords(c),o},ue.config=C,function(){Z.push.apply(Z,arguments)}(K),ue},e.exports=r()},,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=window.React},function(e,t){e.exports=window.ReactDOM},function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function c(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],c(n),c(r))}function o(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=c(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=a.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=a.exec(e)}t["%C2"]="�";for(var c=Object.keys(t),i=0;i<c.length;i++){var s=c[i];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){"use strict";n.r(t);var r=n(0),a=(n(22),n(9)),c=n.n(a);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=tiobDash,l=s.onboarding,u=s.themeAction,m=void 0!==l.sites&&void 0!==l.sites.sites?Object.keys(l.sites.sites)[0]:"gutenberg",p=localStorage.getItem("neve-onboarding-editor")||m,d={sites:l.sites||{},editor:p,category:"all",previewStatus:!1,importModalStatus:!1,installModalStatus:!1,currentSite:null,importing:!1,isOnboarding:l.onboarding||!1,migrationData:null,themeAction:u,currentTab:"starterSites",fetching:!1,singleTemplateImport:null,templateModal:null,searchQuery:""},b={refreshSites:function(e){return{type:"REFRESH_SITES",payload:{sites:e}}},setCurrentEditor:function(e){return{type:"SET_CURRENT_EDITOR",payload:{editor:e}}},setCurrentCategory:function(e){return{type:"SET_CURRENT_CATEGORY",payload:{category:e}}},setCurrentSite:function(e){return{type:"SET_FOCUSED_SITE",payload:{siteData:e}}},setPreviewStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_PREVIEW_STATUS",payload:{previewStatus:e}}},setImportModalStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_IMPORT_MODAL_STATUS",payload:{importModalStatus:e}}},setInstallModalStatus:function(e){return e?document.body.classList.add("ob-overflow-off"):document.body.classList.remove("ob-overflow-off"),{type:"SET_INSTALL_MODAL_STATUS",payload:{installModalStatus:e}}},setOnboardingState:function(e){return{type:"SET_ONBOARDING",payload:{state:e}}},setThemeAction:function(e){return{type:"SET_THEME_ACTIONS",payload:{themeActions:e}}},setCurrentTab:function(e){return{type:"SET_CURRENT_TAB",payload:{currentTab:e}}},setFetching:function(e){return{type:"SET_FETCHING",payload:{fetching:e}}},setSingleTemplateImport:function(e){return{type:"SET_SINGLE_TEMPLATE_IMPORT",payload:{slug:e}}},setTemplateModal:function(e){return{type:"SET_TEMPLATE_MODAL",payload:{data:e}}},setSearchQuery:function(e){return{type:"SET_SEARCH_QUERY",payload:{query:e}}}},f={getSites:function(e){return e.sites},getMigrationData:function(e){return e.migrationData},getCurrentEditor:function(e){return e.editor},getCurrentCategory:function(e){return e.category},getCurrentSite:function(e){return e.currentSite},getPreviewStatus:function(e){return e.previewStatus},getImportModalStatus:function(e){return e.importModalStatus},getOnboardingStatus:function(e){return e.isOnboarding},getThemeAction:function(e){return e.themeAction},getInstallModalStatus:function(e){return e.installModalStatus},getCurrentTab:function(e){return e.currentTab},getFetching:function(e){return e.fetching},getSingleImport:function(e){return e.singleTemplateImport},getTemplateModal:function(e){return e.templateModal},getSearchQuery:function(e){return e.searchQuery},getUserStatus:function(){return window.tiobDash.license&&window.tiobDash.license.tier&&[6,17,23,5,9,14,20,1,7,12,18,3,8,13,19].includes(window.tiobDash.license.tier)}},h=n(4),g=n(6),O=n.n(g),v=n(7),j=n(3),y=n.n(j),E=n(2),_=n(1),w=n(8),S=n.n(w),k=n(10),C=n.n(k),N=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x(e,n,t)},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return x(e,t,{},"GET",n)},x=function(){var e=C()(S.a.mark((function e(t){var n,r,a,c,o,i=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],r=i.length>2&&void 0!==i[2]?i[2]:{},a=i.length>3&&void 0!==i[3]?i[3]:"POST",c=!(i.length>4&&void 0!==i[4])||i[4],o={method:a,headers:{Accept:"application/json","Content-Type":"application/json"}},c&&(o.headers["x-wp-nonce"]=tiobDash.nonce),"POST"===a&&(o.body=JSON.stringify(r)),e.next=9,fetch(t,o).then((function(e){return n?e:e.json()}));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getSingleImport;return{themeData:(0,t.getThemeAction)()||!1,singleImport:n()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setImportModalStatus,r=t.setInstallModalStatus,a=t.setThemeAction,c=t.setTemplateModal;return{setImportModal:function(e){return n(e)},setInstallModal:function(e){return r(e)},setThemeAction:function(e){return a(e)},showTemplateModal:function(){return c(!0)}}})))((function(e){var t=e.setImportModal,n=e.setInstallModal,a=e.themeData,c=e.setThemeAction,o=e.singleImport,i=e.showTemplateModal,s=a.action,l=a.slug,u=a.nonce,m=tiobDash,p=m.themesURL,d=m.brandedTheme,b=Object(r.useState)(!1),f=y()(b,2),h=f[0],g=f[1],O=Object(r.useState)(null),v=y()(O,2),j=v[0],w=v[1],S=function(){n(!1)},k=function(e){g(!1),w(Object(_.sprintf)(// translators: %s: Error message.
2
+ Object(_.__)("An error has ocurred: %s","templates-patterns-collection"),e))},C=function(){g("activating");var e="".concat(p,"?action=activate&stylesheet=").concat(l,"&_wpnonce=").concat(u);T(e,!0).then((function(e){return 200!==e.status?(k(Object(_.__)("Could not activate theme.","templates-patterns-collection")),g(!1),!1):(g(!1),n(!1),c(!1),o?(i(),!1):void t(!0))}))};return Object(r.createElement)(E.Modal,{className:"ob-import-modal install-modal",title:Object(_.__)("Install and Activate Neve","templates-patterns-collection"),onRequestClose:S,shouldCloseOnClickOutside:!h,isDismissible:!h},Object(r.createElement)("div",{className:"modal-body",style:{textAlign:"center"}},!d&&Object(r.createElement)("img",{style:{width:75},src:"".concat(tiobDash.assets,"/img/logo.svg"),alt:Object(_.__)("Logo","templates-patterns-collection")}),j&&Object(r.createElement)("div",{className:"well error",style:{margin:"20px 0"}},j),Object(r.createElement)("p",{style:{lineHeight:1.6,fontSize:"15px"}},Object(_.__)("In order to import the starter site, Neve theme has to be installed and activated. Click the button below to install and activate Neve","templates-patterns-collection"))),Object(r.createElement)("div",{className:"modal-footer",style:{justifyContent:"center"}},Object(r.createElement)("div",{className:"actions",style:{display:"flex"}},!j&&Object(r.createElement)(E.Button,{dismiss:j,isPrimary:!0,disabled:h,className:h&&"is-loading",icon:h&&"update",onClick:"install"===s?function(){g("installing"),wp.updates.installTheme({slug:"neve",success:function(){c(M(M({},a),{},{action:"activate"})),C()},error:function(e){c(M(M({},a),{},{action:"activate"})),k(e.errorMessage||Object(_.__)("Could not install theme.","templates-patterns-collection"))}})}:C},h&&("installing"===h?Object(_.__)("Installing"):Object(_.__)("Activating")),!h&&("install"===s?Object(_.__)("Install and Activate","templates-patterns-collection"):Object(_.__)("Activate","templates-patterns-collection"))),Object(r.createElement)(E.Button,{style:{marginLeft:30},isSecondary:!0,disabled:h,onClick:S},Object(_.__)("Close","templates-patterns-collection")))))}));var D,I=tiobDash.onboarding,A=function(e){return N(I.root+"/install_plugins",e)},L=function(){var e=C()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},t.forEach((function(e){"elementor"===e.template_type?n.elementor=!0:"beaver"===e.template_type&&(n["beaver-builder-lite-version"]=!0)})),!(Object.keys(n).length>0)){e.next=11;break}return e.prev=3,e.next=6,A(n);case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",e.t0);case 11:return e.abrupt("return",N(I.root+"/import_single_templates",t));case 12:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"neve",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;wp.updates.installTheme({slug:e,success:t,error:n})},R=function(e,t,n){var r=tiobDash.themesURL,a="".concat(r,"?action=activate&stylesheet=").concat(e.slug,"&_wpnonce=").concat(e.nonce);T(a,!0).then((function(e){if(200!==e.status)return n(e),!1;t()}))},F=function(e){var t=e.data,n=e.externalInstalled,a=t.external_plugins||null,c=O()(["well"]);return a&&!n?Object(r.createElement)("div",{className:c},Object(r.createElement)("span",null,Object(r.createElement)(E.Dashicon,{icon:"info"}),Object(_.__)("To import this demo you have to install the following plugins","templates-patterns-collection")),Object(r.createElement)("ul",null,a.map((function(e,t){return Object(r.createElement)("li",{key:t},Object(r.createElement)(E.Button,{isLink:!0,href:e.author_url},e.name))})))):""},z=function(e){var t=e.message,n=e.code;return Object(r.createElement)("div",{className:"well error"},t&&Object(r.createElement)("h3",null,Object(r.createElement)(E.Dashicon,{icon:"warning"}),Object(r.createElement)("span",null,t)),Object(r.createElement)("ul",null,Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.troubleshooting}}),Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.support}}),n&&Object(r.createElement)("li",null,Object(_.__)("Error code","templates-patterns-collection"),":"," ",Object(r.createElement)("code",null,n)),Object(r.createElement)("li",null,Object(_.__)("Error log","templates-patterns-collection"),":"," ",Object(r.createElement)(E.Button,{isLink:!0,href:tiobDash.onboarding.logUrl},tiobDash.onboarding.logUrl,Object(r.createElement)(E.Dashicon,{icon:"external"})))))},U=function(e){var t=e.data,n=function(e){return console.log(e)},a=Object(r.useState)(!1),c=y()(a,2),o=c[0],i=c[1],s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=Object(r.useState)(!1),d=y()(p,2),b=d[0],f=d[1],h=Object(r.useState)(null),g=y()(h,2),O=g[0],v=g[1],j=Object(r.useState)(null),w=y()(j,2),S=w[0],k=w[1];if(o)return null;var C=function(){"done"===b&&i(!0),m(!1),v(null),f(!1)};return Object(r.createElement)("div",{className:"ob-migration"},u&&Object(r.createElement)(E.Modal,{className:"ob-import-modal migration",title:Object(_.__)("Migrate","templates-patterns-collection")+" "+t.theme_name,onRequestClose:C,shouldCloseOnClickOutside:!b,isDismissible:!b},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},O&&Object(r.createElement)(z,{message:O.message||null,code:O.code||null}),!1===b&&!O&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(F,{data:t}),t.mandatory_plugins&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("h3",null,Object(_.__)("The following plugins will be installed","templates-patterns-collection"),":"),Object(r.createElement)("ul",null,Object.keys(t.mandatory_plugins).map((function(e,n){return Object(r.createElement)("li",{key:n},"-"," ",t.mandatory_plugins[e])}))))),"done"===b&&Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),!0===b&&Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}),Object(r.createElement)("h3",null,Object(_.__)("Migrating","templates-patterns-collection"),"..."))),(!b||"done"===b)&&Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isSecondary:"done"!==b,isLink:"done"===b,className:"done"===b?"close":null,onClick:C},"done"===b?Object(_.__)("Close","templates-patterns-collection"):Object(_.__)("Cancel","templates-patterns-collection")),O||"done"===b?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{style:{marginLeft:20},isSecondary:!0,href:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(S,"&action=elementor")},Object(_.__)("Edit Content","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection"))):Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){var e;e=Object.keys(t.mandatory_plugins).reduce((function(e,t){return e[t]=!0,e}),{}),A(e).then((function(e){if(f(!0),!e.success)return v({code:e.data||null,message:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection")}),f(!1),!1;var n=t.template,r=t.template_name;N(tiobDash.onboarding.root+"/migrate_frontpage",{template:n,template_name:r}).then((function(e){if(!e.success)return v({code:e.data||null,message:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection")}),f(!1),!1;k(e.data),f("done")}))}))}},Object(_.__)("Start Migration","templates-patterns-collection"))))),Object(r.createElement)("h2",null,t.heading),Object(r.createElement)("p",null,t.description),Object(r.createElement)("div",{className:"card starter-site-card",style:{maxWidth:330}},Object(r.createElement)("div",{className:"top"},t.screenshot&&Object(r.createElement)("div",{className:"image"},Object(r.createElement)("img",{src:t.screenshot,alt:t.theme_name}))),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},t.theme_name))),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return m(!0),!1}},Object(_.__)("Migrate","templates-patterns-collection")+" "+t.theme_name),Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(){N(tiobDash.onboarding.root+"/dismiss_migration",{theme_mod:t.theme_mod}).then((function(e){if(!e.success)return n(Object(_.__)("Something went wrong. Please reload the page and try again.","templates-patterns-collection")),!1;n(Object(_.__)("Dismissed","templates-patterns-collection")),i(!0)}))}},Object(_.__)("Dismiss","templates-patterns-collection"))))},V=n(12),$=n.n(V),H=n(15),G=n.n(H),q=n(5),W=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Q=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Y=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),J=n(14),K=n.n(J),Z=n(11),X=new Uint8Array(16);function ee(){if(!D&&!(D="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return D(X)}for(var te=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ne=function(e){return"string"==typeof e&&te.test(e)},re=[],ae=0;ae<256;++ae)re.push((ae+256).toString(16).substr(1));var ce=function(e,t,n){var r=(e=e||{}).random||(e.rng||ee)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(re[e[t+0]]+re[e[t+1]]+re[e[t+2]]+re[e[t+3]]+"-"+re[e[t+4]]+re[e[t+5]]+"-"+re[e[t+6]]+re[e[t+7]]+"-"+re[e[t+8]]+re[e[t+9]]+"-"+re[e[t+10]]+re[e[t+11]]+re[e[t+12]]+re[e[t+13]]+re[e[t+14]]+re[e[t+15]]).toLowerCase();if(!ne(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var se=function(){var e=C()(S.a.mark((function e(){var t,n,r,a,c,o,i=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]&&i[0],n=i.length>1&&void 0!==i[1]?i[1]:{},r=Object(Z.stringifyUrl)({url:tiobDash.endpoint+(t?"page-templates":"templates"),query:ie(ie({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),n)}),e.prev=3,e.next=6,K()({url:r,method:"GET",parse:!1});case 6:if(!(a=e.sent).ok){e.next=15;break}return e.next=10,a.json();case 10:if(!(c=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:c.message});case 13:return o=a.headers.get("x-wp-totalpages"),e.abrupt("return",{success:!0,total:o,templates:c});case 15:e.next=21;break;case 17:if(e.prev=17,e.t0=e.catch(3),!e.t0.message){e.next=21;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 21:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(){return e.apply(this,arguments)}}(),le=function(){var e=C()(S.a.mark((function e(t,n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(Z.stringifyUrl)({url:tiobDash.endpoint+"templates/"+t,query:ie(ie({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),{},{template_id:t,template_name:n})}),e.prev=1,e.next=4,K()({url:r,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ce()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}(),ue=function(){var e=C()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(Z.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t),query:ie({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},tiobDash.params)}),e.prev=1,e.next=4,K()({url:n,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",ce()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=C()(S.a.mark((function e(t){var n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(Z.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/bulk-import"),query:ie({templates:t,cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),e.prev=1,e.next=4,K()({url:n,method:"GET",parse:!1});case 4:if(!(r=e.sent).ok){e.next=14;break}if(!r.message){e.next=8;break}return e.abrupt("return",{success:!1,message:r.message});case 8:return e.next=10,r.json();case 10:if(!(a=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:a.message});case 13:return e.abrupt("return",{success:!0,templates:a});case 14:e.next=20;break;case 16:if(e.prev=16,e.t0=e.catch(1),!e.t0.message){e.next=20;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 20:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),pe=function(){var e=C()(S.a.mark((function e(t){var n,r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(Z.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t,"/import"),query:ie({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),r={},e.prev=2,e.next=5,K()({url:n,method:"GET",parse:!1});case 5:if(!(a=e.sent).ok){e.next=12;break}return e.next=9,a.json();case 9:if(!(r=e.sent).message){e.next=12;break}return e.abrupt("return",{success:!1,message:r.message});case 12:e.next=18;break;case 14:if(e.prev=14,e.t0=e.catch(2),!e.t0.message){e.next=18;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 18:return e.abrupt("return",{success:!0,templates:[r]});case 19:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(t){return e.apply(this,arguments)}}(),de=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(q.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),be=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),fe=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(q.Path,{d:"M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z"})),he=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),ge=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var je=function(e){var t=e.sortingOrder,n=e.item,a=e.loadTemplates,c=e.userTemplate,o=e.grid,i=e.onPreview,s=e.onImport,l=e.upsell,u=void 0!==l&&l,m=Object(r.useState)(!1),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(n.template_name),w=y()(j,2),k=w[0],N=w[1],T=function(){var e=C()(S.a.mark((function e(t){var r,a;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),r=n.template_id,a=n.template_name,b("updating"),e.next=5,le(r,k||a).then((function(e){e.success&&(v(!g),b(!1))}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=C()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm(Object(_.__)("Are you sure you want to delete this template?"))){e.next=2;break}return e.abrupt("return",!1);case 2:b("deleteing"),ue(n.template_id).then((function(e){e.success&&(a(ve({page:0},t)),b(!1))}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(){i(n.link)},M=O()("actions",{"no-controls":!c});if(o){var D={backgroundImage:"url(".concat(n.template_thumbnail,")")};return Object(r.createElement)("div",{key:n.template_id,className:"table-grid"},Object(r.createElement)("div",{style:D,className:O()("grid-preview",{"is-loading":g||!1!==d})},Object(r.createElement)("div",{className:"preview-actions"},!c&&n.link&&Object(r.createElement)(E.Button,{isSecondary:!0,disabled:!1!==d,onClick:P},Object(_.__)("Preview")),!u&&Object(r.createElement)(E.Button,{isPrimary:!0,isBusy:"importing"===d,disabled:!1!==d,onClick:s},Object(_.__)("Import")),c&&Object(r.createElement)("div",{className:"preview-controls"},!n.link&&Object(r.createElement)(E.Button,{label:Object(_.__)("Edit"),icon:"updating"===d?de:be,disabled:g||!1!==d,className:O()({"is-loading":"updating"===d}),onClick:function(){return v(!g)}}),Object(r.createElement)(E.Button,{label:Object(_.__)("Delete"),icon:"deleteing"===d?de:fe,disabled:!1!==d,className:O()({"is-loading":"deleteing"===d}),onClick:x})))),Object(r.createElement)("div",{className:"card-footer"},g?Object(r.createElement)("form",{onSubmit:T},Object(r.createElement)(E.TextControl,{value:k,onChange:N}),Object(r.createElement)(E.Button,{type:"submit",label:Object(_.__)("Update"),icon:"updating"===d?de:he,disabled:!1!==d,className:O()({"is-loading":"updating"===d})})):Object(r.createElement)("p",null,k)))}return Object(r.createElement)("div",{key:n.template_id,className:"table-row"},Object(r.createElement)("div",{className:"title"},Object(r.createElement)(E.Icon,{icon:ge}),g?Object(r.createElement)(E.TextControl,{label:Object(_.__)("Template Name"),hideLabelFromVision:!0,value:k,onChange:N}):k),c&&Object(r.createElement)("div",{className:"controls"},n.link?Object(r.createElement)(E.Tooltip,{text:Object(_.__)("This template is synced to a page.")},Object(r.createElement)(E.Button,{label:Object(_.__)("Edit"),icon:be,disabled:!0},Object(_.__)("Edit"))):Object(r.createElement)(E.Button,{label:g?Object(_.__)("Update"):Object(_.__)("Edit"),icon:g?"updating"===d?de:he:be,disabled:!1!==d,className:O()({"is-loading":"updating"===d}),onClick:function(){return g?T:v(!g)}},g?Object(_.__)("Update"):Object(_.__)("Edit")),Object(r.createElement)(E.Button,{label:Object(_.__)("Delete"),icon:"deleteing"===d?de:fe,disabled:!1!==d,className:O()({"is-loading":"deleteing"===d}),onClick:x},"deleting"===d?Object(_.__)("Deleting")+"...":Object(_.__)("Delete"))),Object(r.createElement)("div",{className:M},!c&&n.link&&Object(r.createElement)(E.Button,{isSecondary:!0,disabled:!1!==d,onClick:P},Object(_.__)("Preview")),Object(r.createElement)(E.Button,{isPrimary:!0,isBusy:"importing"===d,onClick:s,disabled:!1!==d},Object(_.__)("Import"))))},ye=function(e){var t=e.isGrid;return Object(r.createElement)("div",{className:"table"},[1,2,3,4,5,6,7,8].map((function(e){return t?Object(r.createElement)("div",{key:e,className:"table-grid"},Object(r.createElement)("div",{className:"grid-preview image is-loading"}),Object(r.createElement)("div",{className:"card-footer"},Object(r.createElement)("p",{className:"title loading",style:{height:14,backgroundColor:"#f3f3f3"}}))):Object(r.createElement)("div",{key:e,className:"table-row"},Object(r.createElement)("p",{className:"title loading",style:{width:"100%",height:14,background:"linear-gradient(to right, #f3f3f3, #ffffff)"}}))})))},Ee=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"})),_e=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),we=Object(r.createElement)(q.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),Se=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"})),ke=n(18);function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te,xe={date:Object(_.__)("Date"),template_name:Object(_.__)("Name"),modified:Object(_.__)("Last Modified")},Pe=function(e){var t=e.isGrid,n=e.setGrid,a=e.isSearch,c=e.searchQuery,o=e.setSearchQuery,i=e.onSearch,s=e.sortingOrder,l=e.setSortingOrder,u=e.changeOrder;return Object(r.createElement)("div",{className:"filters"},Object(r.createElement)("div",{className:"header-form"},Object(r.createElement)("div",{className:"display-sorting"},Object(r.createElement)("div",{className:"sorting-label"},Object(_.__)("Sort by")),Object(r.createElement)("div",{className:"sorting-filter"},Object.keys(xe).map((function(e){return Object(r.createElement)(E.Button,{key:e,className:O()({"is-selected":e===s.orderby,"is-asc":"ASC"===s.order}),onClick:function(){var t={order:"DESC",orderby:e};e===s.orderby&&"DESC"===s.order&&(t.order="ASC"),l(Ne({},t)),u(Ne({},t))}},xe[e])})))),Object(r.createElement)("div",{className:"display-filters"},Object(r.createElement)("div",{className:"display-filters__search"},Object(r.createElement)("input",{placeholder:Object(_.__)("Search"),value:c,onChange:function(e){return o(e.target.value)},onKeyDown:function(e){e.keyCode===ke.ENTER&&i()}}),a?Object(r.createElement)(E.Button,{label:Object(_.__)("Clear search query"),icon:Ee,onClick:function(){o(""),i("")}}):Object(r.createElement)(E.Button,{label:Object(_.__)("Search"),icon:_e,onClick:function(){return i()}})),Object(r.createElement)(E.Button,{label:Object(_.__)("List View"),icon:we,onClick:function(){return n(!1)},isPressed:!t}),Object(r.createElement)(E.Button,{label:Object(_.__)("Grid View"),icon:Se,onClick:function(){return n(!0)},isPressed:t}))))},Me=function(e){var t=e.title,n=e.leftButtons,a=e.rightButtons,c=e.heading,o=e.previewUrl,i=Object(Z.stringifyUrl)({url:o,query:{tpcpreview:"yes"}}),s=t||Object(_.__)("Preview");return Object(r.createElement)("div",{className:"ob-preview single-templates"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{title:s,src:i,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},n&&Object(r.createElement)("div",{className:"navigator"},n),c&&Object(r.createElement)("h2",{className:"heading"},c),a&&Object(r.createElement)("div",{className:"actions"},a)))},De={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},Ie={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Ae(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Le(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Be(e){return function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Ae(e)}function Re(e){var t,n="&"+e+";";return(Te=Te||document.createElement("i")).innerHTML=n,(59!==(t=Te.textContent).charCodeAt(t.length-1)||"semi"===e)&&t!==n&&t}var Fe={}.hasOwnProperty,ze=String.fromCharCode,Ue=[void 0,"Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Ve(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getThemeAction;return{siteData:(0,t.getCurrentSite)(),themeData:n()||!1}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setTemplateModal,r=t.setImportModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)}}})))((function(e){var t=e.templatesData,n=e.cancel,a=e.siteData,c=e.themeData,o=e.setModal,i=e.isUserTemplate,s=void 0!==i&&i,l=e.generalTemplates,u=void 0!==l&&l,m=Object(r.useState)(!0),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)([]),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(!1),w=y()(j,2),S=w[0],k=w[1],C=Object(r.useState)([]),N=y()(C,2),T=N[0],x=N[1],P=Object(r.useState)(!1),M=y()(P,2),D=M[0],I=M[1],A=1===t.length;Object(r.useEffect)((function(){s&&A?pe(t[0].template_id).then((function(e){e.success||(e.message?I(e.message):I(!0),b(!1)),v(e.templates),b(!1)})):me(t.map((function(e){return e.template_id}))).then((function(e){if(!e.success)return e.message?I(e.message):I(!0),b(!1),!1;v(e.templates),b(!1)}))}),[t]);var F=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",{className:"is-loading",style:{height:30,marginBottom:30,width:"70%"}}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading",style:{width:"40%"}}))),Object(r.createElement)("div",{className:"modal-footer",style:{marginTop:50}},Object(r.createElement)("span",{className:"is-loading link"}),Object(r.createElement)("span",{className:"is-loading button",style:{width:"150px",marginLeft:"auto"}})))},z=function(e){e.preventDefault(),o(!0)},U=function(){k(!0);var e=t.map((function(e,t){return He(He({},e),g[t])})),n=function(){try{L(e).then((function(e){if(!e.success)return console.log(e.message),!1;x(e.pages),k("done")}))}catch(e){console.log(e)}};if(!c||"general"===e[0].template_site_slug&&"yes"===e[0].premade)return n(),!1;var r=function(e){console.error(e)};if("install"===c.action)return B("neve",(function(){R(c,n,r)}),r),!1;R(c,n,r)},V=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.__)("An error occurred!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},!0===D?Object(_.__)("Please refresh the page and try again."):D))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(){I(!1),n()}},Object(_.__)("Close"))))};return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:d}]),onRequestClose:n,shouldCloseOnClickOutside:!(S&&"done"!==S||d),isDismissible:!(S&&"done"!==S||d)},"done"===S?Object(r.createElement)((function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.__)("Import done!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},A?Object(_.__)("Template was successfully imported!","templates-patterns-collection"):Object(_.__)("Templates were successfully imported!","templates-patterns-collection"))),T&&Object(r.createElement)("ul",{className:"modal-toggles"},T.map((function(e,t){return Object(r.createElement)("li",{className:"option-row",key:t},Object(r.createElement)(E.Icon,{icon:ge,className:"active"}),Object(r.createElement)("span",null,function(e,t={}){var n,r,a,c,o,i,s,l,u,m,p,d,b,f,h,g,O,v,j,y,E,_,w,S,k="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,C=0,N=-1,T="",x=[];t.position&&("start"in t.position||"indent"in t.position?(r=t.position.indent,n=t.position.start):n=t.position),a=n&&n.line||1,c=n&&n.column||1,y=P(),C--;for(;++C<=e.length;)if(10===u&&(c=r&&r[N]||1),38===(u=e.charCodeAt(C))){if(9===(d=e.charCodeAt(C+1))||10===d||12===d||32===d||38===d||60===d||Number.isNaN(d)||k&&d===k){T+=ze(u),c++;continue}for(g=O=C+1,w=O,35===d?(w=++g,88===(d=e.charCodeAt(w))||120===d?(v="hexadecimal",w=++g):v="decimal"):v="named",o="",h="",l="",j="named"===v?Be:"decimal"===v?Ae:Le,w--;++w<=e.length&&j(d=e.charCodeAt(w));)l+=ze(d),"named"===v&&Fe.call(De,l)&&(o=l,h=De[l]);(s=59===e.charCodeAt(w))&&(w++,(i="named"===v&&Re(l))&&(o=l,h=i)),_=1+w-O,(s||!1!==t.nonTerminated)&&(l?"named"===v?(s&&!h?M(5,1):(o!==l&&(_=1+(w=g+o.length)-g,s=!1),s||(b=o?1:3,t.attribute?61===(d=e.charCodeAt(w))?(M(b,_),h=null):Be(d)?h=null:M(b,_):M(b,_))),m=h):(s||M(2,_),(S=p=Number.parseInt(l,"hexadecimal"===v?16:10))>=55296&&S<=57343||S>1114111?(M(7,_),m=ze(65533)):p in Ie?(M(6,_),m=Ie[p]):(f="",Ve(p)&&M(6,_),p>65535&&(f+=ze((p-=65536)>>>10|55296),p=56320|1023&p),m=f+ze(p))):"named"!==v&&M(4,_)),m?(D(),y=P(),C=w-1,c+=w-O+1,x.push(m),(E=P()).offset++,t.reference&&t.reference.call(t.referenceContext,m,{start:y,end:E},e.slice(O-1,w)),y=E):(l=e.slice(O-1,w),T+=l,c+=l.length,C=w-1)}else 10===u&&(a++,N++,c=0),Number.isNaN(u)?D():(T+=ze(u),c++);return x.join("");function P(){return{line:a,column:c,offset:C+(n&&n.offset||0)}}function M(e,n){var r;t.warning&&((r=P()).column+=n,r.offset+=n,t.warning.call(t.warningContext,Ue[e],r,e))}function D(){T&&(x.push(T),t.text&&t.text.call(t.textContext,T,{start:y,end:P()}),T="")}}(e.title)),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(E.Button,{isTertiary:!0,href:e.url},Object(_.__)("Visit","templates-patterns-collection")),Object(r.createElement)(E.Button,{isTertiary:!0,href:e.edit},Object(_.__)("Edit","templates-patterns-collection"))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:n},Object(_.__)("Close"))))}),null):Object(r.createElement)((function(){return d?Object(r.createElement)(F,null):D?Object(r.createElement)(V,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(A?
3
  /* translators: name of starter site */
4
  Object(_.__)("Import the %s template","templates-patterns-collection"):
5
  /* translators: name of template */
6
  Object(_.__)("Import all templates from %s","templates-patterns-collection"),A?t[0].template_name:a.title)),Object(r.createElement)("p",{className:"description"},(Object(r.createElement)("strong",null,Object(_.__)("does not")),A?Object(_.sprintf)(
7
  /* translators: %s the name of the template */
8
+ Object(_.__)("The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"),t[0].template_name):Object(_.__)("All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"))))),Object(r.createElement)("div",{className:"modal-footer"},!u&&Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,disabled:S,onClick:z},Object(_.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",disabled:S,onClick:U},S?Object(_.__)("Importing")+"...":A?Object(_.__)("Import"):Object(_.__)("Import All Pages"))))}),null))})),qe=function(){return Object(r.createElement)(q.SVG,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ob-logo"},Object(r.createElement)(q.Path,{d:"M95.0264 100H4.97356C2.22797 100 0 97.772 0 95.0264V4.97356C0 2.22797 2.22797 0 4.97356 0H95.0264C97.772 0 100 2.22797 100 4.97356V95.0264C100 97.772 97.772 100 95.0264 100Z",fill:"#0366D6"}),Object(r.createElement)(q.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(q.Path,{d:"M42.2416 58.9291L42.2528 71.183L53.2352 82.1653L53.1902 47.9806L18.9941 47.9355L29.9765 58.9066L42.2416 58.9291Z",fill:"white"}))};function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ye=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setInstallModalStatus,r=t.setTemplateModal,a=t.setPreviewStatus;return{setPreview:function(e){return a(e)},setInstallModal:function(e){return n(e)},setTemplateModal:r}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentEditor,c=t.getCurrentTab,o=t.getUserStatus;return{templateModal:n(),themeData:r()||!1,editor:a(),currentTab:c(),userStatus:o()}})))((function(e){var t=e.isGeneral,n=e.setPreview,a=e.setTemplateModal,o=e.templateModal,i=e.currentTab,s=e.userStatus,l=e.themeData,u=Object(r.useState)({gutenberg:[],elementor:[]}),m=y()(u,2),p=m[0],d=m[1],b=Object(r.useState)("gutenberg"),f=y()(b,2),h=f[0],g=f[1],v=Object(r.useState)([]),j=y()(v,2),w=j[0],k=j[1],N=Object(r.useState)(t),T=y()(N,2),x=T[0],P=T[1],M=Object(r.useState)(""),D=y()(M,2),I=D[0],A=D[1],L=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),B=y()(L,2),R=B[0],F=B[1],z=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),U=y()(z,2),V=U[0],H=U[1],q=Object(r.useState)(!1),J=y()(q,2),K=J[0],Z=J[1],X=Object(r.useState)(!1),ee=y()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(!1),ae=y()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(""),le=y()(ie,2),ue=le[0],me=le[1],pe=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),de=y()(pe,2),be=de[0],fe=de[1];Object(r.useEffect)((function(){Z(!0),A(""),F({gutenberg:0,elementor:0,beaver:0}),H({gutenberg:0,elementor:0,beaver:0}),ge()}),[t,h]);var he={gutenberg:{label:Object(_.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(_.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(_.__)("Beaver"),icon:"beaver.jpg"}},ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Qe({page:R[h],per_page:12,type:h},e);t&&(n.template_site_slug="general",n.premade=!0),I&&(n.search=I),se(t,n).then((function(e){d(Qe(Qe({},p),{},c()({},h,e.templates))),H(Qe(Qe({},V),{},c()({},h,e.total))),Z(!1)}))},Oe=function(){var e=C()(S.a.mark((function e(){var n,r,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:R[h]+1,oe(!0),F(Qe(Qe({},R),{},c()({},h,n))),r={page:n,per_page:12,type:h},t&&(r.template_site_slug="general",r.premade=!0),I&&(r.search=I),e.next=8,se(t,r).then((function(e){d(Qe(Qe({},p),{},c()({},h,[].concat($()(p[h]),$()(e.templates))))),H(Qe(Qe({},V),{},c()({},h,e.total)))}));case 8:oe(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ve=function(e){me(e),n(!0)},Ee=function(e){k([e]),a(!0)},_e=p[h]&&p[h].findIndex((function(e){return e.link===ue})),we=p[h]&&p[h].find((function(e){return ue===e.link})),Se=O()("cloud-items",{"is-grid":x||!s&&!t,"is-dummy":!s&&!t||!1!==l}),ke=function(){return t?be.templates:be.library},Ce=function(){var e=C()(S.a.mark((function e(n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Z(!0),r=Qe({search:I,type:h},n),t&&(r.template_site_slug="general",r.premade=!0),se(t,r).then((function(e){d(Qe(Qe({},p),{},c()({},h,$()(e.templates)))),H(Qe(Qe({},V),{},c()({},h,e.total))),Z(!1)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(e){var t=e.title,n=e.description,a=e.showUpgradeBtn,c=void 0===a||a;return Object(r.createElement)("div",{className:Se},Object(r.createElement)("div",{className:"table"},$()(Array(12)).map((function(e,t){return Object(r.createElement)(je,{sortingOrder:ke(),onPreview:ve,userTemplate:!1,key:t,item:{},grid:!0})}))),Object(r.createElement)("div",{className:"upsell-modal-overlay"},Object(r.createElement)("div",{className:"upsell-modal"},Object(r.createElement)("div",{className:"upsell-modal-content"},Object(r.createElement)("div",{className:"info"},Object(r.createElement)("h3",null,t),Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:n}}),c&&Object(r.createElement)(E.Button,{variant:"primary",isPrimary:!0,href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=templatecloud&utm_source=wpadmin&utm_campaign=upgradetoprobtn&utm_content=neve",target:"_blank"},Object(_.__)("Upgrade to PRO"))),Object(r.createElement)("div",{className:"icon"},Object(r.createElement)(E.Icon,{icon:qe}))))))};return!1!==l?Object(r.createElement)(Ne,{title:Object(_.__)("Coming soon"),description:Object(_.sprintf)(// translators: %1$s: Theme Name %2$s Plugin Name.
9
+ Object(_.__)("Right now this feature is not available with your current setup. if you want to use it, you need to install %1$s theme and %2$s plugin","template-patterns-collection"),'<a href="'.concat("https://wordpress.org/themes/neve/",'" target="_blank" rel="noreferrer">Neve</a>'),'<a href="'.concat("https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=wpadmin&utm_campaign=templatecloud&utm_content=neve",'" target="_blank" rel="noreferrer">Neve Pro Addon</a>')),showUpgradeBtn:!1}):s||t?Object(r.createElement)("div",{className:Se},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(he).map((function(e){return Object(r.createElement)("a",{key:e,href:"#",onClick:function(){g(e),ne(!1)},className:O()("tab",{active:h===e})},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:window.tiobDash.assets+"img/"+he[e].icon,alt:he[e].label})),Object(r.createElement)("span",{className:"editor"},he[e].label))}))),Object(r.createElement)(Pe,{currentTab:i,isGrid:x,setGrid:P,isSearch:te,searchQuery:I,setSearchQuery:A,onSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;Z(!0),ne(!!e);var n=Qe({search:e,type:h},ke());t&&(n.template_site_slug="general",n.premade=!0),se(t,n).then((function(e){d(Qe(Qe({},p),{},c()({},h,$()(e.templates)))),H(Qe(Qe({},V),{},c()({},h,e.total))),Z(!1)}))},sortingOrder:ke(),setSortingOrder:function(e){return fe(Qe(Qe({},be),{},t?{templates:e}:{library:e}))},changeOrder:Ce}),K&&Object(r.createElement)(ye,{isGrid:x}),!K&&(p[h]&&p[h].length>0?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"table"},p[h].map((function(e){return Object(r.createElement)(je,{sortingOrder:ke(),onPreview:ve,userTemplate:!t,key:e.template_id,item:e,loadTemplates:ge,onImport:function(){return Ee(e)},grid:x})}))),Object(r.createElement)(G.a,{onChange:function(e){if(!e)return!1;Number(V[h])>R[h]&&Oe()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),ce&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(E.Spinner,null))):Object(r.createElement)("div",{className:"empty-information"},Object(r.createElement)("img",{src:window.tiobDash.assets+"/img/layout.jpg",alt:Object(_.__)("No Templates Found")}),Object(r.createElement)("h3",null,Object(_.__)("There are no templates yet")),Object(r.createElement)("p",null,Object(_.__)("You can add a page or post to the cloud by accessing it with the WordPress or Elementor/Beaver editor. Learn more about this in our docs.")),Object(r.createElement)(E.Button,{variant:"secondary",isSecondary:!0,href:"https://docs.themeisle.com/article/1354-neve-template-cloud-library?utm_medium=nevedashboard&utm_source=wpadmin&utm_campaign=templatescloud&utm_content=neve",target:"_blank"},Object(_.__)("Learn more")))),ue&&Object(r.createElement)(Me,{previewUrl:ue,rightButtons:Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return Ee(we)}},Object(_.__)("Import Template")),heading:we.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:W,onClick:function(){me(""),n(!1)}}),p[h].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:Y,onClick:function(){var e=_e-1;0===_e&&(e=p[h].length-1),me(p[h][e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Y:Q,onClick:function(){var e=_e+1;_e===p[h].length-1&&(e=0),me(p[h][e].link)}})))})),o&&w&&!K&&w.length>0&&Object(r.createElement)(Ge,{generalTemplates:!0,isUserTemplate:!t,templatesData:w})):Object(r.createElement)(Ne,{title:Object(_.__)("Templates Cloud is a PRO Feature"),description:Object(_.__)("Unlock the Templates Cloud features and save your pages or posts in the cloud.")})})),Je=[Object(_.__)("Business","templates-patterns-collection"),Object(_.__)("Ecommerce","templates-patterns-collection"),Object(_.__)("Fashion","templates-patterns-collection"),Object(_.__)("Blogging","templates-patterns-collection"),Object(_.__)("Photography","templates-patterns-collection")],Ke={all:Object(_.__)("All Categories"),free:Object(_.__)("Free"),business:Object(_.__)("Business"),portfolio:Object(_.__)("Portfolio"),woocommerce:Object(_.__)("WooCommerce"),blog:Object(_.__)("Blog"),personal:Object(_.__)("Personal"),other:Object(_.__)("Other")},Ze={gutenberg:{icon:"gutenberg.jpg",niceName:"Gutenberg"},elementor:{icon:"elementor.jpg",niceName:"Elementor"}},Xe=(Object(r.createElement)(r.Fragment,null,"Beaver ",Object(r.createElement)("span",{className:"long-name"},"Builder")),Object(r.createElement)(r.Fragment,null,"Thrive ",Object(r.createElement)("span",{className:"long-name"},"Architect")),function(e){var t=e.currentStep,n=e.progress,a=e.willDo,c={cleanup:{label:Object(_.__)("Cleanup previous Import","templates-patterns-collection"),status:n.cleanup,willDo:a.cleanup},theme_install:{label:Object(_.__)("Installing and Activating the Theme","templates-patterns-collection"),status:n.theme_install,willDo:a.theme_install},plugins:{label:Object(_.__)("Installing Plugins","templates-patterns-collection"),status:n.plugins,willDo:!0},content:{label:Object(_.__)("Importing Content","templates-patterns-collection"),status:n.content,willDo:a.content},customizer:{label:Object(_.__)("Importing Customizer Settings","templates-patterns-collection"),status:n.customizer,willDo:a.customizer},widgets:{label:Object(_.__)("Importing Widgets","templates-patterns-collection"),status:n.widgets,willDo:a.widgets},performanceAddon:{label:Object(_.__)("Installing Performance Features","templates-patterns-collection"),status:n.performanceAddon,willDo:a.performanceAddon}};return Object(r.createElement)("ul",{className:"stepper"},Object.keys(c).map((function(e,n){var a=c[e],o=a.label,i=a.status;if(!a.willDo)return null;var s=O()(["icon",{loading:t===e,warning:t===e,success:"done"===i,error:"error"===i,skip:"skip"===i}]),l="clock";return t===e&&(l="update"),"done"===i&&(l="yes"),"error"===i&&(l="no-alt"),Object(r.createElement)("li",{key:n},Object(r.createElement)("span",{className:s},Object(r.createElement)(E.Dashicon,{icon:l,className:t===e?"loading":""})),Object(r.createElement)("span",null,o))})))}),et=n(19),tt=n.n(et),nt=function(e){return tt()(e),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("span",{className:"title is-loading",style:{height:35,marginBottom:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20,marginBottom:20}})),Object(r.createElement)("div",{className:"well is-loading"},Object(r.createElement)("span",{className:"title is-loading",style:{height:20}}),Object(r.createElement)("ol",null,Object(r.createElement)("li",null),Object(r.createElement)("li",null),Object(r.createElement)("li",null))),Object(r.createElement)("div",{className:"modal-toggles components-panel"},[1,2].map((function(e){return Object(r.createElement)("div",{key:e,className:"components-panel__body options general is-opened"},Object(r.createElement)("span",{className:"title is-loading"}),Object(r.createElement)("ul",null,[1,2,3].map((function(e){return Object(r.createElement)("li",{className:"option-row",key:e},Object(r.createElement)("div",{className:"mock-icon is-loading"}),Object(r.createElement)("span",{className:"is-loading"}),Object(r.createElement)("div",{className:"toggle is-loading"}))}))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)("span",{className:"link is-loading"}),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import is-loading"})))};function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ct=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["icon","size"]);return Object(r.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},c))},ot=Object(r.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(q.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),it=function(e){var t=e.children,n=e.className,a=e.toLeft,c=void 0!==a&&a,o=O()([n,"tiob-tooltip-wrap"]),i=c?{right:0,left:"unset"}:{};return Object(r.createElement)("div",{className:o},Object(r.createElement)("div",{className:"tiob-tooltip-toggle"},Object(r.createElement)(ct,{icon:ot,size:24}),Object(r.createElement)("div",{className:"tiob-tooltip-content",style:i},t)))};function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ut=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentSite,a=t.getThemeAction;return{editor:n(),siteData:r(),themeData:a()||!1}})),Object(h.withDispatch)((function(e,t){var n=t.siteData,r=e("neve-onboarding"),a=r.setTemplateModal,c=r.setSingleTemplateImport,o=r.setImportModalStatus,i=r.setThemeAction;return{setModal:function(e){return o(e)},setThemeAction:function(e){return i(e)},runTemplateImport:function(){c(n.slug),a(!0),o(!1)}}})))((function(e){var t=e.setModal,n=e.setThemeAction,a=e.editor,o=e.siteData,i=e.themeData,s=e.runTemplateImport,l=Object(r.useState)({content:!0,customizer:!0,widgets:!0,cleanup:!1,performanceAddon:!0,theme_install:!1!==i}),u=y()(l,2),m=u[0],p=u[1],d=Object(r.useState)(!1),b=y()(d,2),f=b[0],h=b[1],g=Object(r.useState)(!1),v=y()(g,2),j=v[0],w=v[1],S=Object(r.useState)(!1),k=y()(S,2),C=k[0],x=k[1],P=Object(r.useState)(!1),M=y()(P,2),D=M[0],L=M[1],U=Object(r.useState)(!1),V=y()(U,2),$=V[0],H=V[1],G=Object(r.useState)(!1),q=y()(G,2),W=q[0],Q=q[1],Y=Object(r.useState)(!1),J=y()(Y,2),K=J[0],Z=J[1],X=Object(r.useState)(null),ee=y()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(null),ae=y()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(!1),se=y()(ie,2),le=se[0],ue=se[1],me=Object(r.useState)({}),pe=y()(me,2),de=pe[0],be=pe[1],fe=Object(r.useState)(null),he=y()(fe,2),ge=he[0],Oe=he[1],ve=Object(r.useState)(null),je=y()(ve,2),ye=je[0],Ee=je[1],_e=Object(r.useState)(!0),we=y()(_e,2),Se=we[0],ke=we[1],Ce=Object(r.useState)(!0),Ne=y()(Ce,2),Te=Ne[0],xe=Ne[1],Pe=Object(r.useState)(!0),Me=y()(Pe,2),De=Me[0],Ie=Me[1],Ae=tiobDash,Le=Ae.license,Be=Ae.cleanupAllowed,Re=Object(r.useState)(Be),Fe=y()(Re,2),ze=Fe[0],Ue=Fe[1];function Ve(){R(i,(function(){console.log("[D] Theme Activate."),h("done"),n(!1),He()}),(function(){Je(Object(_.__)("Could not activate theme.","templates-patterns-collection"),"theme_install")}))}function $e(){return i?"install"===i.action?(oe("theme_install"),console.log("[P] Theme Install."),B("neve",(function(){n(lt(lt({},i),{},{action:"activate"})),console.log("[D] Theme Install."),Ve()}),(function(e){n(lt(lt({},i),{},{action:"activate"})),Je(e.errorMessage||Object(_.__)("Could not install theme.","templates-patterns-collection"),"theme_install")})),!1):(oe("theme_install"),console.log("[P] Theme Activate."),void Ve()):(console.log("[S] Theme."),He(),!1)}function He(){if(!de&&!m.performanceAddon)return console.log("[S] Plugins."),Ge(),!1;oe("plugins"),console.log("[P] Plugins."),A(de).then((function(e){if(!e.success)return Je(e,"plugins"),!1;console.log("[D] Plugins."),L("done"),Ge()})).catch((function(e){return Je(e,"plugins")}))}function Ge(){if(!m.content)return console.log("[S] Content."),qe(),!1;var e;oe("content"),console.log("[P] Content."),(e={contentFile:ye.content_file,source:"remote",frontPage:ye.front_page,shopPages:ye.shop_pages,demoSlug:ye.slug,editor:a},N(I.root+"/import_content",e)).then((function(e){if(!e.success)return Je(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&ne(e.frontpage_id),H("done"),qe()})).catch((function(e){return Je(e,"content")}))}function qe(){if(!m.customizer)return console.log("[S] Customizer."),We(),!1;var e;oe("customizer"),console.log("[P] Customizer."),(e={source_url:ye.url,theme_mods:ye.theme_mods,wp_options:ye.wp_options},N(I.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return Je(e,"customizer"),!1;console.log("[D] Customizer."),Q("done"),We()})).catch((function(e){return Je(e,"customizer")}))}function We(){if(!m.widgets)return console.log("[S] Widgets."),Qe(),!1;var e;oe("widgets"),console.log("[P] Widgets."),(e=ye.widgets,N(I.root+"/import_widgets",e)).then((function(e){if(!e.success)return Je(e,"widgets"),!1;console.log("[D] Widgets."),Z("done"),Qe()})).catch((function(e){return Je(e,"widgets")}))}function Qe(){if(!m.performanceAddon)return console.log("[S] Performance Addon."),Ye(),!1;oe("performanceAddon"),console.log("[P] Performance Addon."),A({"optimole-wp":!0}).then((function(e){if(!e.success)return Je(e,"performanceAddon"),!1;console.log("[D] Performance Addon."),w("done"),Ye()})).catch((function(e){return Je(e,"performanceAddon")}))}function Ye(){oe("done"),Ue("yes"),tiobDash.cleanupAllowed="yes",ue(!1)}function Je(e,t){ue(!1),oe(null),"cleanup"===t&&L("skip"),"plugins"===t&&H("skip"),["content","plugins"].includes(t)&&Q("skip"),["content","plugins","customizer"].includes(t)&&Z("skip");var n={cleanup:Object(_.__)("Something went wrong while cleaning the previous import.","templates-patterns-collection"),plugins:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection"),content:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection"),customizer:Object(_.__)("Something went wrong while updating the customizer settings.","templates-patterns-collection"),widgets:Object(_.__)("Something went wrong while importing the widgets.","templates-patterns-collection"),performanceAddon:Object(_.__)("Something went wrong while installing the performance addon.","templates-patterns-collection")};switch(t){case"cleanup":x("error");break;case"plugins":L("error");break;case"content":H("error");break;case"customizer":Q("error");break;case"widgets":Z("error");break;case"performanceAddon":w("error")}Oe(e.data?{message:n[t],code:e.data}:{message:n[t]})}Object(r.useEffect)((function(){var e=o.remote_url||o.url,t=new URL("".concat(function(e){return e.replace(/\/$/,"")}(e)+"/","wp-json/ti-demo-data/data"));t.searchParams.append("license",Le?Le.key:"free"),T(t,!0,!1).then((function(e){e.ok||(Oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_response"}),ke(!1)),e.json().then((function(e){Ee(lt(lt({},e),o));var t=lt({},e.mandatory_plugins||{}),n=lt({},e.recommended_plugins||{}),r=e.default_off_recommended_plugins||[];Object.keys(t).forEach((function(e){t[e]=!0})),Object.keys(n).forEach((function(e){n[e]=!r.includes(e)})),be(lt(lt({},n),t)),ke(!1)}))})).catch((function(){Oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_catch"}),ke(!1)}))}),[]);var Ke=function(){if(le)return!1;t(!1)},Ze=!o.external_plugins||o.external_plugins.every((function(e){return!0===e.active})),et=Object.keys(m).every((function(e){return!1===m[e]})),tt={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(te,"&action=elementor"),brizy:"".concat(tiobDash.onboarding.homeUrl,"/?brizy-edit"),"beaver builder":"".concat(tiobDash.onboarding.homeUrl,"/?fl_builder"),"thrive architect":"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(te,"&action=architect&tve=true"),"divi builder":"".concat(tiobDash.onboarding.homeUrl,"/?et_fb=1&PageSpeed=off"),gutenberg:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(te,"&action=edit")}[a];return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:Se}]),onRequestClose:Ke,shouldCloseOnClickOutside:!le&&!Se,isDismissible:!le&&!Se,title:ye?Object(_.sprintf)(
10
  /* translators: name of starter site */
11
+ Object(_.__)("Import %s as a complete site","templates-patterns-collection"),ye.title):""},Se?Object(r.createElement)(nt,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},le||"done"===ce||ge?Object(r.createElement)(r.Fragment,null,ge&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(z,{message:ge.message||null,code:ge.code||null}),Object(r.createElement)("hr",null)),null!==ce&&Object(r.createElement)(Xe,{progress:{theme_install:f,cleanup:C,plugins:D,content:$,customizer:W,widgets:K,performanceAddon:j},currentStep:ce,willDo:m}),"done"===ce&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),Object(r.createElement)("hr",null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"header"},Object(r.createElement)("p",{className:"description"},Object(_.__)("Import the entire site including customizer options, pages, content and plugins.","templates-patterns-collection")))}),null),Object(r.createElement)((function(){return Object(r.createElement)(F,{data:ye,externalInstalled:Ze})}),null),Object(r.createElement)(E.Panel,{className:"modal-toggles"},!1!==i&&Object(r.createElement)((function(){var e=O()("option-row","active"),t={icon:"admin-appearance",title:Object(_.__)("Neve","templates-patterns-collection"),tooltip:Object(_.__)("In order to import the starter site, Neve theme has to be installed and activated.","templates-patterns-collection")},n=t.icon,a=t.title,c=t.tooltip;return Object(r.createElement)(E.PanelBody,{onToggle:function(){Ie(!De)},opened:De,className:"options general",title:Object(_.__)("Install required theme","templates-patterns-collection")},Object(r.createElement)(E.PanelRow,{className:e},Object(r.createElement)(E.Icon,{icon:n}),Object(r.createElement)("span",null,a),c&&Object(r.createElement)(it,null,c)))}),null),Object(r.createElement)((function(){var e={content:{title:Object(_.__)("Content","templates-patterns-collection"),icon:"admin-post",tooltip:Object(_.__)("We recommend you backup your website content before attempting a full site import.","templates-patterns-collection")},customizer:{title:Object(_.__)("Customizer","templates-patterns-collection"),icon:"admin-customizer"},widgets:{title:Object(_.__)("Widgets","templates-patterns-collection"),icon:"admin-generic",tooltip:Object(_.__)("Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there.","templates-patterns-collection")},performanceAddon:{title:Object(_.__)("Enable performance features for my site","templates-patterns-collection"),icon:"dashboard",tooltip:Object(r.createInterpolateElement)(Object(_.__)(Object(_.sprintf)(// translators: %s is Optimole plugin name.
12
+ "Optimize and speed up your site with our trusted addon, <a><span>%s</span><icon/></a>. It’s free.","Optimole"),"templates-patterns-collection"),{a:Object(r.createElement)("a",{href:"https://wordpress.org/plugins/optimole-wp/",target:"_blank",style:{textDecoration:"none",display:"inline-flex",alignItems:"center"}}),icon:Object(r.createElement)(E.Icon,{size:10,icon:"external",style:{marginLeft:0}}),span:Object(r.createElement)("div",null)})}};return"yes"===ze&&(e=lt({cleanup:{icon:"trash",title:Object(_.__)("Cleanup previous import","templates-patterns-collection"),tooltip:Object(_.__)("This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import","templates-patterns-collection")}},e)),Object(r.createElement)(E.PanelBody,{onToggle:function(){xe(!Te)},opened:Te,className:"options general",title:Object(_.__)("Import settings","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:m[t]}),o=e[t],i=o.icon,s=o.title,l=o.tooltip;return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:i}),Object(r.createElement)("span",null,s),l&&Object(r.createElement)(it,{toLeft:"performanceAddon"===t},l),"theme_install"!==t&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:m[t],onChange:function(){p(lt(lt({},m),{},c()({},t,!m[t])))}})))})))}),null),Object(r.createElement)((function(){if(Se)return null;var e=lt(lt({},ye.recommended_plugins||{}),ye.mandatory_plugins||{});if(Object.keys(e).length<1)return null;var t=Object(r.useState)(Object.keys(e).length<3),n=y()(t,2),a=n[0],o=n[1],i=Object.keys(e).map((function(t,n){return e[t]})).join(", ");return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.PanelBody,{onToggle:function(){o(!a)},opened:a,className:"options plugins",title:Object(_.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:de[t]});return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:"admin-plugins"}),Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:e[t]}}),t in ye.recommended_plugins&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:de[t],onChange:function(){be(lt(lt({},de),{},c()({},t,!de[t])))}})))}))),!a&&Object(r.createElement)("i",{className:"plugin-summary"},Object(r.createElement)(it,{toLeft:!1},Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:i}})),Object(_.__)("Additional plugins are required for this Starter Site in order to work properly. ","templates-patterns-collection")))}),null)))),!le&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==ce?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,onClick:s},Object(_.__)("I want to import just the templates","templates-patterns-collection")),!ge&&Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,disabled:et||!Ze,onClick:function(){ue(!0),function(){if(console.clear(),!m.cleanup)return console.log("[S] Cleanup."),$e(),!1;var e;oe("cleanup"),console.log("[P] Cleanup."),(e={},N(I.root+"/cleanup",e)).then((function(e){if(!e.success)return Je(e,"cleanup"),!1;console.log("[D] Cleanup."),x("done"),$e()})).catch((function(e){return Je(e,"cleanup")}))}()}},Object(_.__)("Import entire site","templates-patterns-collection"))):Object(r.createElement)("div",{className:"import-done-actions"},Object(r.createElement)(E.Button,{isLink:!0,className:"close",onClick:Ke},Object(_.__)("Back to Sites Library","templates-patterns-collection")),Object(r.createElement)(E.Button,{isSecondary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",href:tt},Object(_.__)("Add your own content","templates-patterns-collection"))))))})),mt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setSingleTemplateImport,r=t.setImportModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setTemplateModal:t.setTemplateModal}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getCurrentSite,a=t.getCurrentEditor;return{templateModal:n(),site:r(),editor:a()}})))((function(e){var t=e.slug,n=e.cancel,a=e.setModal,c=e.site,o=e.editor,i=e.setTemplateModal,s=e.templateModal,l=Object(r.useState)([]),u=y()(l,2),m=u[0],p=u[1],d=Object(r.useState)(!0),b=y()(d,2),f=b[0],h=b[1],g=Object(r.useState)(""),O=y()(g,2),v=O[0],j=O[1],w=Object(r.useState)([]),S=y()(w,2),k=S[0],C=S[1],N=c.title,T=c.upsell,x=c.utmOutboundLink;Object(r.useEffect)((function(){P()}),[]);var P=function(){se(!0,{per_page:100,template_site_slug:t,premade:!0,type:o}).then((function(e){p(e.templates||[]),h(!1)}))},M=function(e){j(e)},D=function(e){C(e),i(!0)},I=function(e){D([e])},A=function(e){e.preventDefault(),a(!0)},L=m.findIndex((function(e){return e.link===v})),B=m.find((function(e){return e.link===v}));return Object(r.createElement)("div",{className:"single-templates-wrapper"},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"breadcrumb"},Object(r.createElement)(E.Button,{isTertiary:!0,onClick:n},Object(r.createElement)(E.Icon,{icon:Y}),Object(_.__)("Back to Starter Sites"))),Object(r.createElement)("div",{className:"header"},Object(r.createElement)("div",{className:"text"},Object(r.createElement)("h1",null,N||"",T&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Icon,{icon:"lock"}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))),Object(r.createElement)("p",{className:"description"},Object(_.__)("You can import individual pages or bulk-import all of them."))),Object(r.createElement)("div",{className:"actions"},!T&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:m.length<1,onClick:function(e){e.preventDefault(),D(m)}},Object(_.__)("Import All Pages"))),T&&Object(r.createElement)(E.Button,{href:x||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade"))))),Object(r.createElement)((function(){return f?Object(r.createElement)(E.Spinner,null):m.length<1?Object(_.__)("No templates for this starter site."):Object(r.createElement)("div",{className:"cloud-items is-grid"},Object(r.createElement)("div",{className:"table"},m.map((function(e){return Object(r.createElement)(je,{upsell:T,onPreview:M,userTemplate:!1,key:e.template_id,item:e,loadTemplates:P,onImport:function(){return I(e)},grid:!0})}))))}),null),v&&Object(r.createElement)(Me,{heading:B.template_name||null,previewUrl:v,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:W,onClick:function(){return j("")},label:Object(_.__)("Close","templates-patterns-collection")}),m.length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:Y,onClick:function(){var e=L-1;0===L&&(e=m.length-1),j(m[e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Y:Q,onClick:function(){var e=L+1;L===m.length-1&&(e=0),j(m[e].link)}}))),rightButtons:Object(r.createElement)(r.Fragment,null,!T&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:m.length<1,onClick:function(){return I(B)}},Object(_.__)("Import Page"))),T&&Object(r.createElement)(E.Button,{href:x||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade")))}),s&&k&&!f&&k.length>0&&Object(r.createElement)(Ge,{templatesData:k}))})),pt=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c={starterSites:Object(_.__)("Starter Sites","templates-patterns-collection"),pageTemplates:Object(_.__)("Page Templates","templates-patterns-collection"),library:Object(_.__)("My Library","templates-patterns-collection")},o=Object(r.useState)(!1),i=y()(o,2),s=i[0],l=i[1],u=function(){var e=function(e){var t=window.location.hash;return"string"!=typeof window.location.hash?null:(t=t.substring(1),Object.keys(e).includes(t)?t:null)}(c);if(null!==e){var n=document.getElementById("menu-appearance"),r=n.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]'),a=n.querySelector('a[href="themes.php?page=tiob-starter-sites"]');if(r&&a){var o=r.parentElement,i=a.parentElement;n.querySelector(".current").classList.remove("current"),o.classList.remove("current"),"library"===e?o.classList.add("current"):i.classList.add("current")}t(e)}};return Object(r.useEffect)((function(){u(),window.addEventListener("hashchange",u)}),[]),Object(r.createElement)("div",{className:"header-nav"},Object.keys(c).map((function(e){return Object(r.createElement)(E.Button,{href:"#"+e,key:e,isTertiary:!0,isPressed:e===n,onClick:function(n){var r;n.preventDefault(),t(e),r=e,window.location.hash=r}},c[e])})),"starterSites"!==n&&Object(r.createElement)(E.Button,{icon:de,onClick:function(){l(!0),localStorage.setItem("tpcCacheBuster",ce());var e=n;t(null),setTimeout((function(){t(e),l(!1)}),100)},label:Object(_.__)("Re-sync Library"),className:O()("is-sync",{"is-loading":s}),disabled:a||s,"data-content":Object(_.__)("Sync")}))},dt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState;return{cancelOnboarding:function(){n(!1)},setCurrentTab:t.setCurrentTab,setFetching:t.setFetching}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getCurrentTab,a=t.getFetching;return{isOnboarding:n(),currentTab:r(),isFetching:a()}})))((function(e){var t=e.isOnboarding,n=e.cancelOnboarding,a=e.setCurrentTab,c=e.currentTab;return Object(r.createElement)("div",{className:"ob-head"},!t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"header-container"},Object(r.createElement)("h2",null,!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:qe}),Object(r.createElement)("span",null,Object(_.__)("Templates Cloud","templates-patterns-collection"))),Object(r.createElement)(pt,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(E.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),bt=n(20),ft=n.n(bt),ht=Object(v.compose)(Object(h.withDispatch)((function(e,t){var n=t.data,r=n.slug,a=e("neve-onboarding"),c=a.setCurrentSite,o=a.setPreviewStatus,i=a.setImportModalStatus,s=a.setSingleTemplateImport;return{setSite:function(){return c(n)},setPreview:function(e){return o(e)},setModal:function(e){return i(e)},setImportingPages:function(){return s(r)}}})))((function(e){var t=e.data,n=e.setSite,a=e.setPreview,c=e.setModal,o=e.setImportingPages,i=t.upsell,s=t.screenshot,l=t.title,u=t.has_templates,m=t.isNew,p=Object(r.useState)(""),d=y()(p,2),b=d[0],f=d[1],h=O()("card starter-site-card",{"has-templates":u});return Object(r.createElement)("div",{onMouseEnter:function(){f("visible")},onMouseLeave:function(){f("")},className:h},m&&Object(r.createElement)("span",{className:"new-badge"},Object(_.__)("New","templates-patterns-collection").toUpperCase()),Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"actions "+b},Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(e){e.preventDefault(),n(),a(!0)}},Object(_.__)("Preview","templates-patterns-collection")),!i&&Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(e){e.preventDefault(),n(),c(!0)}},Object(_.__)("Import","templates-patterns-collection")),!u&&i&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",target:"_blank",href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=wpadmin&utm_campaign=templatecloud&utm_content=neve"},Object(_.__)("Unlock access with Business plan","templates-patterns-collection")),u&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",onClick:function(e){e.preventDefault(),n(),o()}},Object(_.__)("View Pages","templates-patterns-collection"))),s&&Object(r.createElement)("div",{className:"image",style:{backgroundImage:'url("'.concat(s,'")')}})),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},l),i&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Dashicon,{icon:"lock",size:15}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))))})),gt=Object(v.compose)(Object(h.withSelect)((function(e){return{siteData:(0,e("neve-onboarding").getCurrentSite)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentSite,r=t.setPreviewStatus,a=t.setImportModalStatus;return{setSite:function(e){return n(e)},setPreview:function(e){return r(e)},setModal:function(e){return a(e)}}})))((function(e){var t=e.next,n=e.prev,a=e.siteData,c=e.setSite,o=e.setPreview,i=e.setModal;return Object(r.createElement)("div",{className:"ob-preview"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{src:a.url,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},Object(r.createElement)("div",{className:"navigator"},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),o(!1),c(null)},className:"close",label:Object(_.__)("Close","templates-patterns-collection"),icon:W}),n&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(n)},className:"prev",label:Object(_.__)("Previous","templates-patterns-collection"),icon:Object(_.isRTL)()?Q:Y}),t&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(t)},className:"next",label:Object(_.__)("Next","templates-patterns-collection"),icon:Object(_.isRTL)()?Y:Q})),Object(r.createElement)("div",{className:"actions"},a.upsell?Object(r.createElement)(E.Button,{className:"upgrade",isPrimary:!0,href:a.utmOutboundLink||tiobDash.upgradeURL},Object(_.__)("Upgrade and Import","templates-patterns-collection")):Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,onClick:function(e){e.preventDefault(),i(!0)}},Object(_.__)("Import","templates-patterns-collection")))))})),Ot=function(e){var t=e.editor,n=e.data,a=n.text,c=n.cta,o=n.url;return Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"notification"},Object(r.createElement)("p",null,a),o&&c&&Object(r.createElement)(E.Button,{target:"_blank",isSecondary:!0,href:o.replace("<builder_name>",t).replace(" ","")},c))}),null)},vt=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentCategory,r=t.getCurrentEditor,a=t.getSearchQuery;return{editor:r(),category:n(),query:a()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentCategory,r=t.setCurrentEditor,a=t.setSearchQuery;return{setCurrentCategory:function(e){return n(e)},setCurrentEditor:function(e){return r(e)},onSearch:function(e){return a(e)}}})))((function(e){var t=e.count,n=(e.categories,e.editors),a=e.onSearch,c=(e.category,e.editor),o=e.onlyProSites,i=(e.setCurrentCategory,e.setCurrentEditor),s=e.query,l=e.className,u=e.showCount,m=void 0!==u&&u,p=Object(r.useState)(!1),d=y()(p,2),b=d[0],f=d[1],h=function(){return f(!b)},g=O()(l,"header-form");return Object(r.createElement)("div",{className:g},Object(r.createElement)("div",{className:"search"},Object(r.createElement)("img",{src:tiobDash.assets+"/img/search.svg",alt:Object(_.__)("Search Icon")}),Object(r.createElement)("input",{onChange:function(e){a(e.target.value)},type:"search",value:s,placeholder:Object(_.__)("Search for a starter site","templates-patterns-collection")+"..."}),!1,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"ob-dropdown categories-selector"},Object(r.createElement)(E.Button,{onClick:h,className:"select ob-dropdown"},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[c].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(c)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px",marginLeft:"0"}}),n[c].niceName),Object(r.createElement)(E.Dashicon,{size:14,icon:b?"arrow-up-alt2":"arrow-down-alt2"}),b&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:h,noArrow:!0},b&&Object(r.createElement)("ul",{className:"options"},Object.keys(n).map((function(e,a){return e===c?null:Object(r.createElement)("li",{key:a},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),i(e),f(!1)}},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),n[e].niceName),m&&Object(r.createElement)("span",{className:"count"},t[e])))}))))))}),null)))})),jt=(Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.editor,c=e.setCurrentEditor,o=e.sites,i=e.isSmall,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=Object.keys(o),d=function(){return m(!u)},b=O()(["ob-dropdown","editor-selector",{small:i}]);return Object(r.createElement)("div",{className:b},Object(r.createElement)(E.Button,{onClick:d,className:"select ob-dropdown"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[a].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),!i&&Object(r.createElement)("span",null,t[a].niceName),Object(r.createElement)("span",{className:"count"},n[a]),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:d,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},p.map((function(e,o){return e===a?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),Object(r.createElement)("span",null,t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.onlyProSites,c=e.editor,o=e.setCurrentEditor,i=e.sites,s=Object.keys(i);return Object(r.createElement)("div",{className:"editor-tabs"},s.map((function(e,i){var s=O()(["tab",e,{active:e===c}]);return Object(r.createElement)("a",{key:i,href:"#",className:s,onClick:function(t){t.preventDefault(),o(e)}},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),Object(r.createElement)("span",{className:"editor"},a.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e]))})))})),Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=e.showCount,i=void 0!==o&&o;return Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(t).map((function(e,o){if(1>n[e])return null;if(tiobDash&&"1"===tiobDash.isValidLicense&&"free"===e)return null;var s=O()(["tab",e,{active:e===a}]);return Object(r.createElement)("a",{key:o,href:"#",className:s,onClick:function(t){t.preventDefault(),c(e)}},Object(r.createElement)("span",{className:"editor"},t[e]),i&&Object(r.createElement)("span",{className:"count"},n[e]))})))}))),yt=Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=e.showCount,i=void 0!==o&&o,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=function(){return m(!u)},d=O()(["ob-dropdown","editor-selector",{small:!0}]);return Object(r.createElement)("div",{className:d},Object(r.createElement)(E.Button,{onClick:p,className:"select ob-dropdown"},Object(r.createElement)("span",null,t[a]),Object(r.createElement)("span",{className:"count"},i?n[a]:""),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:p,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},Object.keys(t).map((function(e,o){return e===a||tiobDash&&"1"===tiobDash.isValidLicense&&"free"===e||1>n[e]?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("span",null,t[e]),i&&Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),Et=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getOnboardingStatus,c=t.getSites;return{editor:n(),category:r(),isOnboarding:a(),getSites:c()}})))((function(e){var t,n=e.filterByCategory,a=e.filterBySearch,c=e.getSitesForBuilder,o=e.isOnboarding,i=e.getSites,s=e.category,l=e.editor,u=Object(r.useState)(!1),m=y()(u,2),p=m[0],d=m[1],b=i.sites,f=void 0===b?{}:b,h=i.migration,g={top:p?0:"-100%"},O=Object.keys(f),v=O.filter((function(e){return Object.keys(f[e]).filter((function(t){return!0===f[e][t].upsell})).length===Object.keys(f[e]).length})),j=(t={builders:{},categories:{}},O.forEach((function(e){var r=c(e);r=n(r,s),r=a(r),t.builders[e]=r?r.length:0})),Object.keys(Ke).forEach((function(e){var r=c(l);r=n(r,e),r=a(r),t.categories[e]=r?r.length:0})),t),_=50<=c(l).length;return Object(r.createElement)(r.Fragment,null,!o&&!h&&Object(r.createElement)("div",{className:"sticky-nav",style:g},Object(r.createElement)("div",{className:"container sticky-nav-content"},!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:qe,size:32}),Object(r.createElement)(vt,{className:"in-sticky",count:j.builders,categories:Ke,editors:Ze,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(yt,{count:j.categories,categories:Ke,showCount:_}))),Object(r.createElement)(G.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),!1,Object(r.createElement)(yt,{count:j.categories,categories:Ke,showCount:_}),Object(r.createElement)(vt,{count:j.builders,categories:Ke,editors:Ze,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(jt,{categories:Ke,count:j.categories,showCount:_}),!tiobDash.isValidLicense&&Object(r.createElement)(Ot,{data:tiobDash.upsellNotifications.upsell_1,editor:l}))))})),_t=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab,setSearchQuery:t.setSearchQuery}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSearchQuery;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),searchQuery:m()}})))((function(e){var t=e.getSites,n=e.category,a=e.resetCategory,c=e.editor,o=e.previewOpen,i=e.currentSiteData,s=e.isOnboarding,l=e.cancelOnboarding,u=e.setSearchQuery,m=e.searchQuery,p=t.sites,d=void 0===p?{}:p,b=function(){var e={};return g().forEach((function(t){var n=d&&d[t]?d[t]:{};e[t]=$()(Object.values(n))})),e},f=function(e,t){return"free"===t?e.filter((function(e){return!e.upsell})):"all"!==t?e.filter((function(e){return e.keywords.includes(t)})):e},h=function(e){return m?new ft.a(e,{includeScore:!0,keys:["title","slug","keywords"]}).search(m).map((function(e){return e.item})):e},g=function(){return Object.keys(d)},O=function(){var e=b()[c];return e=h(e),f(e,n)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null===i)return null;var t=b()[c],n=t.indexOf(i);return-1===n||1===t.length?null:e&&0===n?t[t.length-1]:e||n!==t.length-1?t[e?n-1:n+1]:t[0]};return 1>d.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,Object(_.__)("Starter sites could not be loaded. Please refresh and try again.","templates-patterns-collection"),s&&Object(r.createElement)(E.Button,{style:{display:"block",margin:"20px auto"},isPrimary:!0,onClick:l},Object(_.__)("Close","templates-patterns-collection")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Et,{getSitesForBuilder:function(e){return b()[e]},filterBySearch:h,filterByCategory:f}),0===O().length&&Object(r.createElement)("div",{className:"no-results"},Object(r.createElement)("p",null,Object(_.__)("No results found.","templates-patterns-collection")," ",Object(_.__)("You can try a different search or use one of the categories below.","templates-patterns-collection")),Object(r.createElement)("div",{className:"tags"},Je.map((function(e,t){return Object(r.createElement)(E.Button,{key:t,isPrimary:!0,className:"tag",onClick:function(t){t.preventDefault(),u(e),a()}},e)})))),Object(r.createElement)((function(){var e=Object(r.useState)(9),t=y()(e,2),n=t[0],a=t[1],c=O();return Object(r.createElement)("div",{className:"ob-sites is-grid"},c.slice(0,n).map((function(e,t){return Object(r.createElement)(ht,{key:t,data:e})})),Object(r.createElement)(G.a,{onChange:function(e){if(!e)return!1;a(n+9)}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})))}),null),o&&i&&Object(r.createElement)(gt,{next:v(),prev:v(!0)}))})),wt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSingleImport;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),singleImport:m()}})))((function(e){var t=e.getSites,n=(e.installModal,e.currentTab),a=e.singleImport,c=e.importModal,o=e.currentSiteData,i=(e.isOnboarding,t.migration);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ob"},Object(r.createElement)(dt,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},i&&Object(r.createElement)(U,{data:i}),"starterSites"===n&&(a?Object(r.createElement)(mt,{slug:a}):Object(r.createElement)(_t,null)),"library"===n&&Object(r.createElement)(Ye,null),"pageTemplates"===n&&Object(r.createElement)(Ye,{isGeneral:!0})))),c&&o&&Object(r.createElement)(ut,null))})),St=Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getUserStatus;return{onboarding:n(),userStatus:r()}}))((function(e){var t=e.onboarding,n=e.userStatus,a=O()(["content-wrap","starter-sites",{"is-onboarding":t,"is-free":!n}]);return Object(r.createElement)("div",{className:"tiob-wrap"},Object(r.createElement)("div",{className:a},Object(r.createElement)("div",{className:"container content"},Object(r.createElement)("div",{className:"main"},Object(r.createElement)("div",{className:"tab-content columns starter-sites"},Object(r.createElement)(wt,null))))))}));Object(h.registerStore)("neve-onboarding",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REFRESH_SITES":var n=t.payload.sites;return i(i({},e),{},{sites:n});case"SET_CURRENT_EDITOR":var r=t.payload.editor;return localStorage.setItem("neve-onboarding-editor",r),i(i({},e),{},{editor:r});case"SET_CURRENT_CATEGORY":var a=t.payload.category;return i(i({},e),{},{category:a});case"SET_FOCUSED_SITE":var c=t.payload.siteData;return i(i({},e),{},{currentSite:c});case"SET_PREVIEW_STATUS":var o=t.payload.previewStatus;return i(i({},e),{},{previewStatus:o});case"SET_IMPORT_MODAL_STATUS":var s=t.payload.importModalStatus;return i(i({},e),{},{importModalStatus:s});case"SET_INSTALL_MODAL_STATUS":var l=t.payload.installModalStatus;return i(i({},e),{},{installModalStatus:l});case"SET_ONBOARDING":var u=t.payload.status;return i(i({},e),{},{isOnboarding:u});case"SET_THEME_ACTIONS":var m=t.payload.themeActions;return i(i({},e),{},{themeAction:m});case"SET_CURRENT_TAB":var p=t.payload.currentTab;return i(i({},e),{},{singleTemplateImport:null,currentTab:p});case"SET_FETCHING":var b=t.payload.fetching;return i(i({},e),{},{fetching:b});case"SET_SINGLE_TEMPLATE_IMPORT":var f=t.payload.slug;return i(i({},e),{},{singleTemplateImport:f});case"SET_TEMPLATE_MODAL":var h=t.payload.data;return i(i({},e),{},{templateModal:h});case"SET_SEARCH_QUERY":var g=t.payload.query;return i(i({},e),{},{searchQuery:g})}return e},actions:b,selectors:f}),Object(r.render)(Object(r.createElement)(St,null),document.getElementById("tpc-app"))}]);
assets/build/style-app-rtl.css CHANGED
@@ -1 +1 @@
1
- #wpcontent{padding-right:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-left:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;right:0;left:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;right:0;left:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end;z-index:1}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.is-free .header-nav .components-button[href="#library"]::after{content:"PRO";border-radius:2px;background:#6eb77a;color:#fff;padding:2px 5px;font-size:10px;top:-5px;position:relative;right:5px}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center;z-index:1}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-right:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-right:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-left:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-right:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-left:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-left:auto !important;margin-right:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-right:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-left:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 50px 5px 30px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 15px 0 5px;content:attr(data-content);margin-left:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;right:10px}.search .label-editor{display:flex;align-items:center;width:100%}.search .label-editor .icon-wrap{width:30px;margin-left:10px}.search .label-editor .icon-wrap img{position:relative;opacity:1;width:100%;top:auto;right:auto;transform:unset;border-radius:50%}.search .ob-dropdown{width:100%;height:52px;margin:20px 0 0}.search .ob-dropdown button{position:relative;right:-1px;height:100%;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #e1e1e1;font-size:14px;margin:0}.search .ob-dropdown button>svg,.search .ob-dropdown button .dashicon{margin-right:auto;display:flex;align-items:center}.search .ob-dropdown .options{margin:0}.search .ob-dropdown .options li{margin:0}.search .ob-dropdown .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.search .ob-dropdown .options a .count{color:#a3a3a3}.search .ob-dropdown .options a>span:not(.count){margin-left:20px}.search .ob-dropdown .options a:hover{color:#fff;background-color:#0073aa}.search .ob-dropdown .options a:hover .count{color:#fff}.search .ob-dropdown .options a .count{margin-right:auto}.editor-tabs{display:none;margin:30px 0;position:relative}.editor-tabs:after{content:"";position:absolute;display:block;width:100%;right:0;border-bottom:1px solid #e0e0e0;height:1px;z-index:-1;left:0;bottom:0}.editor-tabs .long-name{display:none}.editor-tabs a{padding:15px 0px 12px 10px;display:flex;align-items:center;font-weight:700;text-decoration:none;font-size:14px;border-bottom:3px solid transparent;position:relative;width:auto}.editor-tabs a:last-child{padding-left:0}.editor-tabs a:not(:first-child){margin-right:auto}.editor-tabs a.active{border-bottom:3px solid #0073aa}.editor-tabs a .pro-badge{margin-right:auto;font-size:10px}.editor-tabs .editor{color:#616161}.editor-tabs .count{color:rgba(97,97,97,.5);margin:0 10px}.editor-tabs .icon-wrap{display:none;margin-left:10px;width:34px;height:34px;border-radius:100%;overflow:hidden}.editor-tabs .icon-wrap img{max-width:100%;display:block}.cloud-items .editor-tabs a:not(:first-child){margin-right:20px}@media(min-width: 1600px){.editor-tabs .long-name{display:inline}}.ob-dropdown.editor-selector{overflow:visible;display:inline-block;position:relative;width:100%}.ob-dropdown.editor-selector button{display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #e1e1e1;font-size:14px;height:52px;width:100%;white-space:nowrap}.ob-dropdown.editor-selector button .count{color:#a3a3a3;margin:0 auto 0 20px}.ob-dropdown.editor-selector img{border-radius:100%;margin-left:5px;max-width:30px;max-height:30px}.ob-dropdown.editor-selector .options{margin:0}.ob-dropdown.editor-selector .options li{border-bottom:1px solid #e1e1e1;padding:0;margin:0}.ob-dropdown.editor-selector .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.ob-dropdown.editor-selector .options a>span:not(.count){margin-left:20px}.ob-dropdown.editor-selector .options a .count{margin-right:auto}.ob-dropdown.editor-selector .options a:hover{background-color:#0073aa;color:#fff}.card{width:100%;display:flex;max-width:unset;min-width:unset;border:1px solid #e1e1e1;flex-direction:column;padding:30px 40px;margin:0;align-self:flex-start;flex-grow:0}.card .card-header{flex-direction:row;display:flex;align-items:center}.card .card-header .title{font-size:18px;line-height:1.5}.card .card-header .icon{margin-left:10px}.card .card-header .icon.dashicon{width:33px;height:33px;fill:#0073aa}.card .card-content{display:flex;flex-direction:column;flex-grow:1}.card .card-content a,.card .card-content button{align-self:flex-start;margin-top:auto}.card p{font-size:15px;color:#616161}.card .card-description{margin:15px 0 25px}.card.starter-site-card{padding:0;max-width:100%}.card.starter-site-card:hover .actions,.card.starter-site-card:hover .fav,.card.starter-site-card:focus-within .actions,.card.starter-site-card:focus-within .fav{opacity:1}.card.starter-site-card .actions.visible{opacity:1}.card.starter-site-card .top{position:relative;overflow:hidden}.card.starter-site-card .new-badge{position:absolute;display:block;z-index:25;padding:5px 7px;right:-10px;top:8px;border-radius:2px;background-color:#d5e5f6;font-style:normal;font-weight:800;font-size:12px;color:#585858}.card.starter-site-card .fav{position:absolute;z-index:2000;right:-15px;top:-30px;opacity:0;transition:.3s ease}.card.starter-site-card .fav button{padding:30px 30px 30px 5px;height:auto;transform:rotate(-45deg);background-color:#4268cf}.card.starter-site-card .fav svg{transform:rotate(45deg);fill:#fff;max-width:15px}.card.starter-site-card .actions{background-color:rgba(0,0,0,.75);right:0;left:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;opacity:0;transition:.3s ease}.card.starter-site-card .actions .templates{color:#fff}.card.starter-site-card .actions .templates.components-button{width:auto}.card.starter-site-card .actions .components-button{margin:5px 0;width:100px;height:40px;font-weight:600;justify-content:center}.card.starter-site-card .actions .components-button.is-secondary{color:#fff;border:2px solid #fff}.card.starter-site-card .image{height:420px;background-size:cover;background-repeat:no-repeat;background-position:top center;background-color:rgba(100,109,130,.25)}.card.starter-site-card img{width:100%;display:block}.card.starter-site-card .bottom{display:flex;align-items:center;padding:15px 30px 15px 10px;border-top:1px solid #e1e1e1}.card.starter-site-card .bottom p{font-size:16px;font-weight:700;color:#282828;margin:0}.card.starter-site-card.has-templates:after{position:absolute;width:93%;background-color:#fff;display:block;height:10px;content:"";margin:0 auto;bottom:-7px;right:50%;transform:translateX(50%);z-index:-1;border:1px solid #d9d9d9}.ob-preview{background-color:#fff;position:fixed;top:0;bottom:0;right:0;left:0;z-index:100000;height:100vh;margin:0;display:flex;flex-direction:column}.ob-preview .loading{bottom:0;top:0;right:0;left:0;position:absolute;display:flex;align-items:center;justify-content:center;z-index:100000;color:#646d82}.ob-preview .loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.ob-preview .bottom-bar .actions{margin-right:auto}.ob-preview .bottom-bar .heading{margin:0 20px 0 0}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{left:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}@-webkit-keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@-webkit-keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}@keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{left:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}.migration .modal-body .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;width:auto;color:#fff}.migration .modal-body .loading h3{margin:20px 0 0}.migration .modal-body .loading svg{padding:10px;background-color:#ffb900;border-radius:100%;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.5)}.ob-import-modal .components-modal__content:before{display:none}.ob-import-modal .components-modal__header{border:none}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:22px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:17px;line-height:34px;color:#000}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-left:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 20px 0 0}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 20px 0 0;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-right:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-right:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-right:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-left:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-left:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-right:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:17px;font-weight:700;line-height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-right:20px;color:#282828}.modal-toggles .option-row .actions{margin-right:auto}.modal-toggles .option-row .dashicon{margin-right:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-right:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-right:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-right:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;right:0;left:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;right:160px}.auto-fold .sticky-nav{right:32px}}@media(min-width: 961px){.sticky-nav{right:160px !important}.folded .sticky-nav{right:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-left:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-right:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-right:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-left:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-right:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-right:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-right:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-right:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-left-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #d9d9d9;border-right:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:6px 0 0 6px}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:0 6px 6px 0}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-right:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-left:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 0 8px 15px;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;left:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:right;padding-left:20px;border-left:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 20px 0 0;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.cloud-items .empty-information{max-width:500px;margin:0 auto;text-align:center}.cloud-items .empty-information img{max-width:150px}.cloud-items .empty-information h3,.cloud-items .empty-information p{color:#616161}.cloud-items.is-dummy{margin-top:25px;margin-bottom:25px}.cloud-items .upsell-modal-overlay{top:0;left:auto;bottom:auto;right:0;width:100%;height:100%;position:absolute;background:rgba(0,0,0,.35)}.cloud-items .upsell-modal-overlay .upsell-modal{top:40%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:90%;transform:translate(50%, -50%);position:absolute}.cloud-items .upsell-modal-overlay .upsell-modal .upsell-modal-content{display:flex}.cloud-items .upsell-modal-overlay .upsell-modal .info{background:#fff;width:60%;padding:100px 25px}.cloud-items .upsell-modal-overlay .upsell-modal .info h3{font-size:24px;line-height:28.64px}.cloud-items .upsell-modal-overlay .upsell-modal .info p{font-size:15px}.cloud-items .upsell-modal-overlay .upsell-modal .icon{display:flex;align-items:center;justify-content:center;background:#0566d5;width:40%}.cloud-items .upsell-modal-overlay .upsell-modal .icon .ob-logo{width:100px;margin:0}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#b7c0cc}.table-grid .grid-preview.is-loading .preview-actions{display:flex}.table-grid .grid-preview .preview-actions{opacity:0;transition:.3s ease opacity;width:100%;height:auto;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.9);display:flex}.table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.table-grid .grid-preview:hover .preview-actions{opacity:1}.table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px;flex-grow:1}.table-grid .card-footer form{display:flex;align-items:center}.table-grid .card-footer .components-base-control{flex-grow:1}.table-grid .card-footer .components-base-control__field{margin-bottom:0}.table-grid .card-footer button{height:auto;margin-right:auto}.table-grid .card-footer p{font-weight:600;margin:0}.filter-overlay .components-button:not(.has-icon){padding-right:38px}.pagination{padding-top:20px}.pagination .components-button{margin-left:10px;border-radius:2px;box-shadow:none}.pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.pagination .components-button:not(.is-primary){background:#fff}.pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.single-templates-wrapper .components-spinner{display:block;margin:0 auto}.single-templates-wrapper .top{padding:25px 0 30px}.single-templates-wrapper .header{display:flex;flex-direction:column}.single-templates-wrapper .header h1{display:flex;align-items:center;font-size:26px;font-weight:700}.single-templates-wrapper .header .actions{margin-top:15px}.single-templates-wrapper .header .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.single-templates-wrapper .header .actions .components-button:not(:first-child){margin-right:20px}.single-templates-wrapper .header .actions .components-button.is-primary{padding:10px 30px}.single-templates-wrapper .header .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.single-templates-wrapper .header .description{font-size:16px;color:#282828}.single-templates-wrapper .header .pro-badge{font-size:11px;margin-right:20px}.ob-preview.single-templates .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-preview.single-templates .actions .components-button:not(:first-child){margin-right:20px}.ob-preview.single-templates .actions .components-button.is-primary{padding:10px 30px}.ob-preview.single-templates .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.notification{color:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:20px;box-sizing:border-box;background-color:#0073aa;border:1px solid #006291;margin:0 0 20px;max-height:1000px}.notification .components-button{box-shadow:none !important;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-left:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-left:5px}.notification .components-button .dashicon{margin-right:5px}.tiob-tooltip-wrap{margin-right:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle{position:relative;display:flex;align-items:center}.tiob-tooltip-wrap .tiob-tooltip-toggle>svg{fill:#0073aa}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover .tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus .tiob-tooltip-content{opacity:1;pointer-events:all}.tiob-tooltip-content{font-size:13px;top:100%;right:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;z-index:1;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 auto 0 0}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-left-radius:0;border-top-left-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-right-radius:0;border-bottom-right-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-left:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-left:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 5px 12px 10px}}
1
+ #wpcontent{padding-right:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important;max-height:90vh}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-left:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;right:0;left:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;right:0;left:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end;z-index:1}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.is-free .header-nav .components-button[href="#library"]::after{content:"PRO";border-radius:2px;background:#6eb77a;color:#fff;padding:2px 5px;font-size:10px;top:-5px;position:relative;right:5px}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center;z-index:1}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-right:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-right:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-left:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-right:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-left:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-left:auto !important;margin-right:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-right:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-left:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 50px 5px 30px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 15px 0 5px;content:attr(data-content);margin-left:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;right:10px}.search .label-editor{display:flex;align-items:center;width:100%}.search .label-editor .icon-wrap{width:30px;margin-left:10px}.search .label-editor .icon-wrap img{position:relative;opacity:1;width:100%;top:auto;right:auto;transform:unset;border-radius:50%}.search .ob-dropdown{width:100%;height:52px;margin:20px 0 0}.search .ob-dropdown button{position:relative;right:-1px;height:100%;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #e1e1e1;font-size:14px;margin:0}.search .ob-dropdown button>svg,.search .ob-dropdown button .dashicon{margin-right:auto;display:flex;align-items:center}.search .ob-dropdown .options{margin:0}.search .ob-dropdown .options li{margin:0}.search .ob-dropdown .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.search .ob-dropdown .options a .count{color:#a3a3a3}.search .ob-dropdown .options a>span:not(.count){margin-left:20px}.search .ob-dropdown .options a:hover{color:#fff;background-color:#0073aa}.search .ob-dropdown .options a:hover .count{color:#fff}.search .ob-dropdown .options a .count{margin-right:auto}.editor-tabs{display:none;margin:30px 0;position:relative}.editor-tabs:after{content:"";position:absolute;display:block;width:100%;right:0;border-bottom:1px solid #e0e0e0;height:1px;z-index:-1;left:0;bottom:0}.editor-tabs .long-name{display:none}.editor-tabs a{padding:15px 0px 12px 10px;display:flex;align-items:center;font-weight:700;text-decoration:none;font-size:14px;border-bottom:3px solid transparent;position:relative;width:auto}.editor-tabs a:last-child{padding-left:0}.editor-tabs a:not(:first-child){margin-right:auto}.editor-tabs a.active{border-bottom:3px solid #0073aa}.editor-tabs a .pro-badge{margin-right:auto;font-size:10px}.editor-tabs .editor{color:#616161}.editor-tabs .count{color:rgba(97,97,97,.5);margin:0 10px}.editor-tabs .icon-wrap{display:none;margin-left:10px;width:34px;height:34px;border-radius:100%;overflow:hidden}.editor-tabs .icon-wrap img{max-width:100%;display:block}.cloud-items .editor-tabs a:not(:first-child){margin-right:20px}@media(min-width: 1600px){.editor-tabs .long-name{display:inline}}.ob-dropdown.editor-selector{overflow:visible;display:inline-block;position:relative;width:100%}.ob-dropdown.editor-selector button{display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #e1e1e1;font-size:14px;height:52px;width:100%;white-space:nowrap}.ob-dropdown.editor-selector button .count{color:#a3a3a3;margin:0 auto 0 20px}.ob-dropdown.editor-selector img{border-radius:100%;margin-left:5px;max-width:30px;max-height:30px}.ob-dropdown.editor-selector .options{margin:0}.ob-dropdown.editor-selector .options li{border-bottom:1px solid #e1e1e1;padding:0;margin:0}.ob-dropdown.editor-selector .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.ob-dropdown.editor-selector .options a>span:not(.count){margin-left:20px}.ob-dropdown.editor-selector .options a .count{margin-right:auto}.ob-dropdown.editor-selector .options a:hover{background-color:#0073aa;color:#fff}.card{width:100%;display:flex;max-width:unset;min-width:unset;border:1px solid #e1e1e1;flex-direction:column;padding:30px 40px;margin:0;align-self:flex-start;flex-grow:0}.card .card-header{flex-direction:row;display:flex;align-items:center}.card .card-header .title{font-size:18px;line-height:1.5}.card .card-header .icon{margin-left:10px}.card .card-header .icon.dashicon{width:33px;height:33px;fill:#0073aa}.card .card-content{display:flex;flex-direction:column;flex-grow:1}.card .card-content a,.card .card-content button{align-self:flex-start;margin-top:auto}.card p{font-size:15px;color:#616161}.card .card-description{margin:15px 0 25px}.card.starter-site-card{padding:0;max-width:100%}.card.starter-site-card:hover .actions,.card.starter-site-card:hover .fav,.card.starter-site-card:focus-within .actions,.card.starter-site-card:focus-within .fav{opacity:1}.card.starter-site-card .actions.visible{opacity:1}.card.starter-site-card .top{position:relative;overflow:hidden}.card.starter-site-card .new-badge{position:absolute;display:block;z-index:25;padding:5px 7px;right:-10px;top:8px;border-radius:2px;background-color:#d5e5f6;font-style:normal;font-weight:800;font-size:12px;color:#585858}.card.starter-site-card .fav{position:absolute;z-index:2000;right:-15px;top:-30px;opacity:0;transition:.3s ease}.card.starter-site-card .fav button{padding:30px 30px 30px 5px;height:auto;transform:rotate(-45deg);background-color:#4268cf}.card.starter-site-card .fav svg{transform:rotate(45deg);fill:#fff;max-width:15px}.card.starter-site-card .actions{background-color:rgba(0,0,0,.75);right:0;left:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;opacity:0;transition:.3s ease}.card.starter-site-card .actions .templates{color:#fff}.card.starter-site-card .actions .templates.components-button{width:auto}.card.starter-site-card .actions .components-button{margin:5px 0;width:100px;height:40px;font-weight:600;justify-content:center}.card.starter-site-card .actions .components-button.is-secondary{color:#fff;border:2px solid #fff}.card.starter-site-card .image{height:420px;background-size:cover;background-repeat:no-repeat;background-position:top center;background-color:rgba(100,109,130,.25)}.card.starter-site-card img{width:100%;display:block}.card.starter-site-card .bottom{display:flex;align-items:center;padding:15px 30px 15px 10px;border-top:1px solid #e1e1e1}.card.starter-site-card .bottom p{font-size:16px;font-weight:700;color:#282828;margin:0}.card.starter-site-card.has-templates:after{position:absolute;width:93%;background-color:#fff;display:block;height:10px;content:"";margin:0 auto;bottom:-7px;right:50%;transform:translateX(50%);z-index:-1;border:1px solid #d9d9d9}.ob-preview{background-color:#fff;position:fixed;top:0;bottom:0;right:0;left:0;z-index:100000;height:100vh;margin:0;display:flex;flex-direction:column}.ob-preview .loading{bottom:0;top:0;right:0;left:0;position:absolute;display:flex;align-items:center;justify-content:center;z-index:100000;color:#646d82}.ob-preview .loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.ob-preview .bottom-bar .actions{margin-right:auto}.ob-preview .bottom-bar .heading{margin:0 20px 0 0}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{left:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}@-webkit-keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@-webkit-keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}@keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{left:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}.migration .modal-body .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;width:auto;color:#fff}.migration .modal-body .loading h3{margin:20px 0 0}.migration .modal-body .loading svg{padding:10px;background-color:#ffb900;border-radius:100%;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.5)}.ob-import-modal .components-modal__content:before{display:none}.ob-import-modal .components-modal__header{border:none}.ob-import-modal .components-modal__header h1{font-size:22px;font-weight:700}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:22px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:15px;line-height:34px;color:#333}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-left:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 20px 0 0}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 20px 0 0;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-body{padding-bottom:52px}.ob-import-modal .modal-body .plugin-summary{display:flex;flex-direction:row;align-items:center}.ob-import-modal .modal-body .plugin-summary .tiob-tooltip-content{right:25px;top:0}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center;position:absolute;bottom:0;background:#fff;width:calc( 100% - 72px );padding:12px 36px;z-index:10;right:0;border-top:1px solid #d9d9d9;box-shadow:0px -24px 12px 0px rgba(255,255,255,.8)}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-right:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-right:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-right:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-left:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-left:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-right:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:17px;font-weight:700;line-height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-right:20px;color:#282828}.modal-toggles .option-row .actions{margin-right:auto}.modal-toggles .option-row .dashicon{margin-right:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-right:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-right:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-right:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;right:0;left:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;right:160px}.auto-fold .sticky-nav{right:32px}}@media(min-width: 961px){.sticky-nav{right:160px !important}.folded .sticky-nav{right:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-left:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-right:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-right:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-left:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-right:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-right:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-right:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-right:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-left-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #d9d9d9;border-right:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:6px 0 0 6px}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:0 6px 6px 0}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-right:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-left:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 0 8px 15px;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;left:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:right;padding-left:20px;border-left:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 20px 0 0;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.cloud-items .empty-information{max-width:500px;margin:0 auto;text-align:center}.cloud-items .empty-information img{max-width:150px}.cloud-items .empty-information h3,.cloud-items .empty-information p{color:#616161}.cloud-items.is-dummy{margin-top:25px;margin-bottom:25px}.cloud-items .upsell-modal-overlay{top:0;left:auto;bottom:auto;right:0;width:100%;height:100%;position:absolute;background:rgba(0,0,0,.35)}.cloud-items .upsell-modal-overlay .upsell-modal{top:40%;left:auto;bottom:auto;right:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:90%;transform:translate(50%, -50%);position:absolute}.cloud-items .upsell-modal-overlay .upsell-modal .upsell-modal-content{display:flex}.cloud-items .upsell-modal-overlay .upsell-modal .info{background:#fff;width:60%;padding:100px 25px}.cloud-items .upsell-modal-overlay .upsell-modal .info h3{font-size:24px;line-height:28.64px}.cloud-items .upsell-modal-overlay .upsell-modal .info p{font-size:15px}.cloud-items .upsell-modal-overlay .upsell-modal .icon{display:flex;align-items:center;justify-content:center;background:#0566d5;width:40%}.cloud-items .upsell-modal-overlay .upsell-modal .icon .ob-logo{width:100px;margin:0}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#b7c0cc}.table-grid .grid-preview.is-loading .preview-actions{display:flex}.table-grid .grid-preview .preview-actions{opacity:0;transition:.3s ease opacity;width:100%;height:auto;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.9);display:flex}.table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.table-grid .grid-preview:hover .preview-actions{opacity:1}.table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px;flex-grow:1}.table-grid .card-footer form{display:flex;align-items:center}.table-grid .card-footer .components-base-control{flex-grow:1}.table-grid .card-footer .components-base-control__field{margin-bottom:0}.table-grid .card-footer button{height:auto;margin-right:auto}.table-grid .card-footer p{font-weight:600;margin:0}.filter-overlay .components-button:not(.has-icon){padding-right:38px}.pagination{padding-top:20px}.pagination .components-button{margin-left:10px;border-radius:2px;box-shadow:none}.pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.pagination .components-button:not(.is-primary){background:#fff}.pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.single-templates-wrapper .components-spinner{display:block;margin:0 auto}.single-templates-wrapper .top{padding:25px 0 30px}.single-templates-wrapper .header{display:flex;flex-direction:column}.single-templates-wrapper .header h1{display:flex;align-items:center;font-size:26px;font-weight:700}.single-templates-wrapper .header .actions{margin-top:15px}.single-templates-wrapper .header .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.single-templates-wrapper .header .actions .components-button:not(:first-child){margin-right:20px}.single-templates-wrapper .header .actions .components-button.is-primary{padding:10px 30px}.single-templates-wrapper .header .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.single-templates-wrapper .header .description{font-size:16px;color:#282828}.single-templates-wrapper .header .pro-badge{font-size:11px;margin-right:20px}.ob-preview.single-templates .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-preview.single-templates .actions .components-button:not(:first-child){margin-right:20px}.ob-preview.single-templates .actions .components-button.is-primary{padding:10px 30px}.ob-preview.single-templates .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.notification{color:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:20px;box-sizing:border-box;background-color:#0073aa;border:1px solid #006291;margin:0 0 20px;max-height:1000px}.notification .components-button{box-shadow:none !important;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-left:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-left:5px}.notification .components-button .dashicon{margin-right:5px}.tiob-tooltip-wrap{margin-right:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle{position:relative;display:flex;align-items:center}.tiob-tooltip-wrap .tiob-tooltip-toggle>svg{fill:#0073aa}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover .tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus .tiob-tooltip-content{opacity:1;pointer-events:all;z-index:11}.tiob-tooltip-content{font-size:13px;top:100%;right:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;z-index:1;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 auto 0 0}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-left-radius:0;border-top-left-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-right-radius:0;border-bottom-right-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-left:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-left:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 5px 12px 10px}}
assets/build/style-app.css CHANGED
@@ -1 +1 @@
1
- #wpcontent{padding-left:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-right:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;left:0;right:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end;z-index:1}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.is-free .header-nav .components-button[href="#library"]::after{content:"PRO";border-radius:2px;background:#6eb77a;color:#fff;padding:2px 5px;font-size:10px;top:-5px;position:relative;left:5px}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center;z-index:1}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-left:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-left:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-right:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-left:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-right:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-right:auto !important;margin-left:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-left:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-right:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 30px 5px 50px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 5px 0 15px;content:attr(data-content);margin-right:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;left:10px}.search .label-editor{display:flex;align-items:center;width:100%}.search .label-editor .icon-wrap{width:30px;margin-right:10px}.search .label-editor .icon-wrap img{position:relative;opacity:1;width:100%;top:auto;left:auto;transform:unset;border-radius:50%}.search .ob-dropdown{width:100%;height:52px;margin:20px 0 0}.search .ob-dropdown button{position:relative;left:-1px;height:100%;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #e1e1e1;font-size:14px;margin:0}.search .ob-dropdown button>svg,.search .ob-dropdown button .dashicon{margin-left:auto;display:flex;align-items:center}.search .ob-dropdown .options{margin:0}.search .ob-dropdown .options li{margin:0}.search .ob-dropdown .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.search .ob-dropdown .options a .count{color:#a3a3a3}.search .ob-dropdown .options a>span:not(.count){margin-right:20px}.search .ob-dropdown .options a:hover{color:#fff;background-color:#0073aa}.search .ob-dropdown .options a:hover .count{color:#fff}.search .ob-dropdown .options a .count{margin-left:auto}.editor-tabs{display:none;margin:30px 0;position:relative}.editor-tabs:after{content:"";position:absolute;display:block;width:100%;left:0;border-bottom:1px solid #e0e0e0;height:1px;z-index:-1;right:0;bottom:0}.editor-tabs .long-name{display:none}.editor-tabs a{padding:15px 10px 12px 0px;display:flex;align-items:center;font-weight:700;text-decoration:none;font-size:14px;border-bottom:3px solid transparent;position:relative;width:auto}.editor-tabs a:last-child{padding-right:0}.editor-tabs a:not(:first-child){margin-left:auto}.editor-tabs a.active{border-bottom:3px solid #0073aa}.editor-tabs a .pro-badge{margin-left:auto;font-size:10px}.editor-tabs .editor{color:#616161}.editor-tabs .count{color:rgba(97,97,97,.5);margin:0 10px}.editor-tabs .icon-wrap{display:none;margin-right:10px;width:34px;height:34px;border-radius:100%;overflow:hidden}.editor-tabs .icon-wrap img{max-width:100%;display:block}.cloud-items .editor-tabs a:not(:first-child){margin-left:20px}@media(min-width: 1600px){.editor-tabs .long-name{display:inline}}.ob-dropdown.editor-selector{overflow:visible;display:inline-block;position:relative;width:100%}.ob-dropdown.editor-selector button{display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #e1e1e1;font-size:14px;height:52px;width:100%;white-space:nowrap}.ob-dropdown.editor-selector button .count{color:#a3a3a3;margin:0 20px 0 auto}.ob-dropdown.editor-selector img{border-radius:100%;margin-right:5px;max-width:30px;max-height:30px}.ob-dropdown.editor-selector .options{margin:0}.ob-dropdown.editor-selector .options li{border-bottom:1px solid #e1e1e1;padding:0;margin:0}.ob-dropdown.editor-selector .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.ob-dropdown.editor-selector .options a>span:not(.count){margin-right:20px}.ob-dropdown.editor-selector .options a .count{margin-left:auto}.ob-dropdown.editor-selector .options a:hover{background-color:#0073aa;color:#fff}.card{width:100%;display:flex;max-width:unset;min-width:unset;border:1px solid #e1e1e1;flex-direction:column;padding:30px 40px;margin:0;align-self:flex-start;flex-grow:0}.card .card-header{flex-direction:row;display:flex;align-items:center}.card .card-header .title{font-size:18px;line-height:1.5}.card .card-header .icon{margin-right:10px}.card .card-header .icon.dashicon{width:33px;height:33px;fill:#0073aa}.card .card-content{display:flex;flex-direction:column;flex-grow:1}.card .card-content a,.card .card-content button{align-self:flex-start;margin-top:auto}.card p{font-size:15px;color:#616161}.card .card-description{margin:15px 0 25px}.card.starter-site-card{padding:0;max-width:100%}.card.starter-site-card:hover .actions,.card.starter-site-card:hover .fav,.card.starter-site-card:focus-within .actions,.card.starter-site-card:focus-within .fav{opacity:1}.card.starter-site-card .actions.visible{opacity:1}.card.starter-site-card .top{position:relative;overflow:hidden}.card.starter-site-card .new-badge{position:absolute;display:block;z-index:25;padding:5px 7px;left:-10px;top:8px;border-radius:2px;background-color:#d5e5f6;font-style:normal;font-weight:800;font-size:12px;color:#585858}.card.starter-site-card .fav{position:absolute;z-index:2000;left:-15px;top:-30px;opacity:0;transition:.3s ease}.card.starter-site-card .fav button{padding:30px 5px 30px 30px;height:auto;transform:rotate(45deg);background-color:#4268cf}.card.starter-site-card .fav svg{transform:rotate(-45deg);fill:#fff;max-width:15px}.card.starter-site-card .actions{background-color:rgba(0,0,0,.75);left:0;right:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;opacity:0;transition:.3s ease}.card.starter-site-card .actions .templates{color:#fff}.card.starter-site-card .actions .templates.components-button{width:auto}.card.starter-site-card .actions .components-button{margin:5px 0;width:100px;height:40px;font-weight:600;justify-content:center}.card.starter-site-card .actions .components-button.is-secondary{color:#fff;border:2px solid #fff}.card.starter-site-card .image{height:420px;background-size:cover;background-repeat:no-repeat;background-position:top center;background-color:rgba(100,109,130,.25)}.card.starter-site-card img{width:100%;display:block}.card.starter-site-card .bottom{display:flex;align-items:center;padding:15px 10px 15px 30px;border-top:1px solid #e1e1e1}.card.starter-site-card .bottom p{font-size:16px;font-weight:700;color:#282828;margin:0}.card.starter-site-card.has-templates:after{position:absolute;width:93%;background-color:#fff;display:block;height:10px;content:"";margin:0 auto;bottom:-7px;left:50%;transform:translateX(-50%);z-index:-1;border:1px solid #d9d9d9}.ob-preview{background-color:#fff;position:fixed;top:0;bottom:0;left:0;right:0;z-index:100000;height:100vh;margin:0;display:flex;flex-direction:column}.ob-preview .loading{bottom:0;top:0;left:0;right:0;position:absolute;display:flex;align-items:center;justify-content:center;z-index:100000;color:#646d82}.ob-preview .loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.ob-preview .bottom-bar .actions{margin-left:auto}.ob-preview .bottom-bar .heading{margin:0 0 0 20px}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{right:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}@-webkit-keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@-webkit-keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}@keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{right:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}.migration .modal-body .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;width:auto;color:#fff}.migration .modal-body .loading h3{margin:20px 0 0}.migration .modal-body .loading svg{padding:10px;background-color:#ffb900;border-radius:100%;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.5)}.ob-import-modal .components-modal__content:before{display:none}.ob-import-modal .components-modal__header{border:none}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:22px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:17px;line-height:34px;color:#000}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-right:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 0 0 20px}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 0 0 20px;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-left:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-left:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-left:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-right:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-right:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-left:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:17px;font-weight:700;line-height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-left:20px;color:#282828}.modal-toggles .option-row .actions{margin-left:auto}.modal-toggles .option-row .dashicon{margin-left:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-left:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-left:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-left:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;left:0;right:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;left:160px}.auto-fold .sticky-nav{left:32px}}@media(min-width: 961px){.sticky-nav{left:160px !important}.folded .sticky-nav{left:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-right:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-left:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-left:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-right:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-left:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-left:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-left:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-left:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-right-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #d9d9d9;border-left:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:0 6px 6px 0}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:6px 0 0 6px}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-left:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-right:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 15px 8px 0;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;right:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:left;padding-right:20px;border-right:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 0 0 20px;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.cloud-items .empty-information{max-width:500px;margin:0 auto;text-align:center}.cloud-items .empty-information img{max-width:150px}.cloud-items .empty-information h3,.cloud-items .empty-information p{color:#616161}.cloud-items.is-dummy{margin-top:25px;margin-bottom:25px}.cloud-items .upsell-modal-overlay{top:0;right:auto;bottom:auto;left:0;width:100%;height:100%;position:absolute;background:rgba(0,0,0,.35)}.cloud-items .upsell-modal-overlay .upsell-modal{top:40%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:90%;transform:translate(-50%, -50%);position:absolute}.cloud-items .upsell-modal-overlay .upsell-modal .upsell-modal-content{display:flex}.cloud-items .upsell-modal-overlay .upsell-modal .info{background:#fff;width:60%;padding:100px 25px}.cloud-items .upsell-modal-overlay .upsell-modal .info h3{font-size:24px;line-height:28.64px}.cloud-items .upsell-modal-overlay .upsell-modal .info p{font-size:15px}.cloud-items .upsell-modal-overlay .upsell-modal .icon{display:flex;align-items:center;justify-content:center;background:#0566d5;width:40%}.cloud-items .upsell-modal-overlay .upsell-modal .icon .ob-logo{width:100px;margin:0}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#b7c0cc}.table-grid .grid-preview.is-loading .preview-actions{display:flex}.table-grid .grid-preview .preview-actions{opacity:0;transition:.3s ease opacity;width:100%;height:auto;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.9);display:flex}.table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.table-grid .grid-preview:hover .preview-actions{opacity:1}.table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px;flex-grow:1}.table-grid .card-footer form{display:flex;align-items:center}.table-grid .card-footer .components-base-control{flex-grow:1}.table-grid .card-footer .components-base-control__field{margin-bottom:0}.table-grid .card-footer button{height:auto;margin-left:auto}.table-grid .card-footer p{font-weight:600;margin:0}.filter-overlay .components-button:not(.has-icon){padding-left:38px}.pagination{padding-top:20px}.pagination .components-button{margin-right:10px;border-radius:2px;box-shadow:none}.pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.pagination .components-button:not(.is-primary){background:#fff}.pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.single-templates-wrapper .components-spinner{display:block;margin:0 auto}.single-templates-wrapper .top{padding:25px 0 30px}.single-templates-wrapper .header{display:flex;flex-direction:column}.single-templates-wrapper .header h1{display:flex;align-items:center;font-size:26px;font-weight:700}.single-templates-wrapper .header .actions{margin-top:15px}.single-templates-wrapper .header .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.single-templates-wrapper .header .actions .components-button:not(:first-child){margin-left:20px}.single-templates-wrapper .header .actions .components-button.is-primary{padding:10px 30px}.single-templates-wrapper .header .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.single-templates-wrapper .header .description{font-size:16px;color:#282828}.single-templates-wrapper .header .pro-badge{font-size:11px;margin-left:20px}.ob-preview.single-templates .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-preview.single-templates .actions .components-button:not(:first-child){margin-left:20px}.ob-preview.single-templates .actions .components-button.is-primary{padding:10px 30px}.ob-preview.single-templates .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.notification{color:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:20px;box-sizing:border-box;background-color:#0073aa;border:1px solid #006291;margin:0 0 20px;max-height:1000px}.notification .components-button{box-shadow:none !important;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-right:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-right:5px}.notification .components-button .dashicon{margin-left:5px}.tiob-tooltip-wrap{margin-left:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle{position:relative;display:flex;align-items:center}.tiob-tooltip-wrap .tiob-tooltip-toggle>svg{fill:#0073aa}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover .tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus .tiob-tooltip-content{opacity:1;pointer-events:all}.tiob-tooltip-content{font-size:13px;top:100%;left:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;z-index:1;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 0 0 auto}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-right-radius:0;border-top-right-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-left-radius:0;border-bottom-left-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-right:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-right:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 10px 12px 5px}}
1
+ #wpcontent{padding-left:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important;max-height:90vh}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-right:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;left:0;right:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end;z-index:1}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.is-free .header-nav .components-button[href="#library"]::after{content:"PRO";border-radius:2px;background:#6eb77a;color:#fff;padding:2px 5px;font-size:10px;top:-5px;position:relative;left:5px}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center;z-index:1}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-left:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-left:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-right:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-left:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-right:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-right:auto !important;margin-left:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-left:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-right:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 30px 5px 50px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 5px 0 15px;content:attr(data-content);margin-right:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;left:10px}.search .label-editor{display:flex;align-items:center;width:100%}.search .label-editor .icon-wrap{width:30px;margin-right:10px}.search .label-editor .icon-wrap img{position:relative;opacity:1;width:100%;top:auto;left:auto;transform:unset;border-radius:50%}.search .ob-dropdown{width:100%;height:52px;margin:20px 0 0}.search .ob-dropdown button{position:relative;left:-1px;height:100%;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #e1e1e1;font-size:14px;margin:0}.search .ob-dropdown button>svg,.search .ob-dropdown button .dashicon{margin-left:auto;display:flex;align-items:center}.search .ob-dropdown .options{margin:0}.search .ob-dropdown .options li{margin:0}.search .ob-dropdown .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.search .ob-dropdown .options a .count{color:#a3a3a3}.search .ob-dropdown .options a>span:not(.count){margin-right:20px}.search .ob-dropdown .options a:hover{color:#fff;background-color:#0073aa}.search .ob-dropdown .options a:hover .count{color:#fff}.search .ob-dropdown .options a .count{margin-left:auto}.editor-tabs{display:none;margin:30px 0;position:relative}.editor-tabs:after{content:"";position:absolute;display:block;width:100%;left:0;border-bottom:1px solid #e0e0e0;height:1px;z-index:-1;right:0;bottom:0}.editor-tabs .long-name{display:none}.editor-tabs a{padding:15px 10px 12px 0px;display:flex;align-items:center;font-weight:700;text-decoration:none;font-size:14px;border-bottom:3px solid transparent;position:relative;width:auto}.editor-tabs a:last-child{padding-right:0}.editor-tabs a:not(:first-child){margin-left:auto}.editor-tabs a.active{border-bottom:3px solid #0073aa}.editor-tabs a .pro-badge{margin-left:auto;font-size:10px}.editor-tabs .editor{color:#616161}.editor-tabs .count{color:rgba(97,97,97,.5);margin:0 10px}.editor-tabs .icon-wrap{display:none;margin-right:10px;width:34px;height:34px;border-radius:100%;overflow:hidden}.editor-tabs .icon-wrap img{max-width:100%;display:block}.cloud-items .editor-tabs a:not(:first-child){margin-left:20px}@media(min-width: 1600px){.editor-tabs .long-name{display:inline}}.ob-dropdown.editor-selector{overflow:visible;display:inline-block;position:relative;width:100%}.ob-dropdown.editor-selector button{display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #e1e1e1;font-size:14px;height:52px;width:100%;white-space:nowrap}.ob-dropdown.editor-selector button .count{color:#a3a3a3;margin:0 20px 0 auto}.ob-dropdown.editor-selector img{border-radius:100%;margin-right:5px;max-width:30px;max-height:30px}.ob-dropdown.editor-selector .options{margin:0}.ob-dropdown.editor-selector .options li{border-bottom:1px solid #e1e1e1;padding:0;margin:0}.ob-dropdown.editor-selector .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.ob-dropdown.editor-selector .options a>span:not(.count){margin-right:20px}.ob-dropdown.editor-selector .options a .count{margin-left:auto}.ob-dropdown.editor-selector .options a:hover{background-color:#0073aa;color:#fff}.card{width:100%;display:flex;max-width:unset;min-width:unset;border:1px solid #e1e1e1;flex-direction:column;padding:30px 40px;margin:0;align-self:flex-start;flex-grow:0}.card .card-header{flex-direction:row;display:flex;align-items:center}.card .card-header .title{font-size:18px;line-height:1.5}.card .card-header .icon{margin-right:10px}.card .card-header .icon.dashicon{width:33px;height:33px;fill:#0073aa}.card .card-content{display:flex;flex-direction:column;flex-grow:1}.card .card-content a,.card .card-content button{align-self:flex-start;margin-top:auto}.card p{font-size:15px;color:#616161}.card .card-description{margin:15px 0 25px}.card.starter-site-card{padding:0;max-width:100%}.card.starter-site-card:hover .actions,.card.starter-site-card:hover .fav,.card.starter-site-card:focus-within .actions,.card.starter-site-card:focus-within .fav{opacity:1}.card.starter-site-card .actions.visible{opacity:1}.card.starter-site-card .top{position:relative;overflow:hidden}.card.starter-site-card .new-badge{position:absolute;display:block;z-index:25;padding:5px 7px;left:-10px;top:8px;border-radius:2px;background-color:#d5e5f6;font-style:normal;font-weight:800;font-size:12px;color:#585858}.card.starter-site-card .fav{position:absolute;z-index:2000;left:-15px;top:-30px;opacity:0;transition:.3s ease}.card.starter-site-card .fav button{padding:30px 5px 30px 30px;height:auto;transform:rotate(45deg);background-color:#4268cf}.card.starter-site-card .fav svg{transform:rotate(-45deg);fill:#fff;max-width:15px}.card.starter-site-card .actions{background-color:rgba(0,0,0,.75);left:0;right:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;opacity:0;transition:.3s ease}.card.starter-site-card .actions .templates{color:#fff}.card.starter-site-card .actions .templates.components-button{width:auto}.card.starter-site-card .actions .components-button{margin:5px 0;width:100px;height:40px;font-weight:600;justify-content:center}.card.starter-site-card .actions .components-button.is-secondary{color:#fff;border:2px solid #fff}.card.starter-site-card .image{height:420px;background-size:cover;background-repeat:no-repeat;background-position:top center;background-color:rgba(100,109,130,.25)}.card.starter-site-card img{width:100%;display:block}.card.starter-site-card .bottom{display:flex;align-items:center;padding:15px 10px 15px 30px;border-top:1px solid #e1e1e1}.card.starter-site-card .bottom p{font-size:16px;font-weight:700;color:#282828;margin:0}.card.starter-site-card.has-templates:after{position:absolute;width:93%;background-color:#fff;display:block;height:10px;content:"";margin:0 auto;bottom:-7px;left:50%;transform:translateX(-50%);z-index:-1;border:1px solid #d9d9d9}.ob-preview{background-color:#fff;position:fixed;top:0;bottom:0;left:0;right:0;z-index:100000;height:100vh;margin:0;display:flex;flex-direction:column}.ob-preview .loading{bottom:0;top:0;left:0;right:0;position:absolute;display:flex;align-items:center;justify-content:center;z-index:100000;color:#646d82}.ob-preview .loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.ob-preview .bottom-bar .actions{margin-left:auto}.ob-preview .bottom-bar .heading{margin:0 0 0 20px}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{right:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}@-webkit-keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@-webkit-keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}@keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{right:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}.migration .modal-body .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;width:auto;color:#fff}.migration .modal-body .loading h3{margin:20px 0 0}.migration .modal-body .loading svg{padding:10px;background-color:#ffb900;border-radius:100%;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.5)}.ob-import-modal .components-modal__content:before{display:none}.ob-import-modal .components-modal__header{border:none}.ob-import-modal .components-modal__header h1{font-size:22px;font-weight:700}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:22px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:15px;line-height:34px;color:#333}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-right:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 0 0 20px}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 0 0 20px;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-body{padding-bottom:52px}.ob-import-modal .modal-body .plugin-summary{display:flex;flex-direction:row;align-items:center}.ob-import-modal .modal-body .plugin-summary .tiob-tooltip-content{left:25px;top:0}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center;position:absolute;bottom:0;background:#fff;width:calc( 100% - 72px );padding:12px 36px;z-index:10;left:0;border-top:1px solid #d9d9d9;box-shadow:0px -24px 12px 0px rgba(255,255,255,.8)}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-left:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-left:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-left:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-right:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-right:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-left:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:17px;font-weight:700;line-height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-left:20px;color:#282828}.modal-toggles .option-row .actions{margin-left:auto}.modal-toggles .option-row .dashicon{margin-left:10px;color:#888;font-size:18px;display:flex;align-items:center}.modal-toggles .option-row.active .dashicon{color:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-left:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-left:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-left:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;left:0;right:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;left:160px}.auto-fold .sticky-nav{left:32px}}@media(min-width: 961px){.sticky-nav{left:160px !important}.folded .sticky-nav{left:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-right:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-left:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-left:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-right:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-left:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-left:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-left:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-left:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-right-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #d9d9d9;border-left:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:0 6px 6px 0}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:6px 0 0 6px}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-left:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-right:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 15px 8px 0;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;right:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:left;padding-right:20px;border-right:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 0 0 20px;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.cloud-items .empty-information{max-width:500px;margin:0 auto;text-align:center}.cloud-items .empty-information img{max-width:150px}.cloud-items .empty-information h3,.cloud-items .empty-information p{color:#616161}.cloud-items.is-dummy{margin-top:25px;margin-bottom:25px}.cloud-items .upsell-modal-overlay{top:0;right:auto;bottom:auto;left:0;width:100%;height:100%;position:absolute;background:rgba(0,0,0,.35)}.cloud-items .upsell-modal-overlay .upsell-modal{top:40%;right:auto;bottom:auto;left:50%;min-width:360px;max-width:calc(100% - 16px - 16px);max-height:90%;transform:translate(-50%, -50%);position:absolute}.cloud-items .upsell-modal-overlay .upsell-modal .upsell-modal-content{display:flex}.cloud-items .upsell-modal-overlay .upsell-modal .info{background:#fff;width:60%;padding:100px 25px}.cloud-items .upsell-modal-overlay .upsell-modal .info h3{font-size:24px;line-height:28.64px}.cloud-items .upsell-modal-overlay .upsell-modal .info p{font-size:15px}.cloud-items .upsell-modal-overlay .upsell-modal .icon{display:flex;align-items:center;justify-content:center;background:#0566d5;width:40%}.cloud-items .upsell-modal-overlay .upsell-modal .icon .ob-logo{width:100px;margin:0}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#b7c0cc}.table-grid .grid-preview.is-loading .preview-actions{display:flex}.table-grid .grid-preview .preview-actions{opacity:0;transition:.3s ease opacity;width:100%;height:auto;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.9);display:flex}.table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.table-grid .grid-preview:hover .preview-actions{opacity:1}.table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px;flex-grow:1}.table-grid .card-footer form{display:flex;align-items:center}.table-grid .card-footer .components-base-control{flex-grow:1}.table-grid .card-footer .components-base-control__field{margin-bottom:0}.table-grid .card-footer button{height:auto;margin-left:auto}.table-grid .card-footer p{font-weight:600;margin:0}.filter-overlay .components-button:not(.has-icon){padding-left:38px}.pagination{padding-top:20px}.pagination .components-button{margin-right:10px;border-radius:2px;box-shadow:none}.pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.pagination .components-button:not(.is-primary){background:#fff}.pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.single-templates-wrapper .components-spinner{display:block;margin:0 auto}.single-templates-wrapper .top{padding:25px 0 30px}.single-templates-wrapper .header{display:flex;flex-direction:column}.single-templates-wrapper .header h1{display:flex;align-items:center;font-size:26px;font-weight:700}.single-templates-wrapper .header .actions{margin-top:15px}.single-templates-wrapper .header .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.single-templates-wrapper .header .actions .components-button:not(:first-child){margin-left:20px}.single-templates-wrapper .header .actions .components-button.is-primary{padding:10px 30px}.single-templates-wrapper .header .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.single-templates-wrapper .header .description{font-size:16px;color:#282828}.single-templates-wrapper .header .pro-badge{font-size:11px;margin-left:20px}.ob-preview.single-templates .actions .components-button{font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-preview.single-templates .actions .components-button:not(:first-child){margin-left:20px}.ob-preview.single-templates .actions .components-button.is-primary{padding:10px 30px}.ob-preview.single-templates .actions .components-button.is-secondary{border:2px solid;padding:8px 20px}.notification{color:#fff;display:flex;align-items:center;flex-wrap:wrap;padding:20px;box-sizing:border-box;background-color:#0073aa;border:1px solid #006291;margin:0 0 20px;max-height:1000px}.notification .components-button{box-shadow:none !important;margin:10px 0 0;background-color:transparent;color:#fff;border:2px solid #fff;border-radius:2px;font-size:14px;font-weight:600;line-height:normal;padding:5px 10px;height:auto;flex-shrink:0}.notification .components-button:hover{background-color:#fff;color:#0073aa;box-shadow:none}.notification .components-button span{display:flex;align-items:center}.notification .components-button span svg{height:15px;margin-right:5px}.notification p{display:flex;align-items:center;font-size:15px;font-weight:600;flex-grow:0}.notification p svg{margin-right:5px}.notification .components-button .dashicon{margin-left:5px}.tiob-tooltip-wrap{margin-left:10px}.tiob-tooltip-wrap .tiob-tooltip-toggle{position:relative;display:flex;align-items:center}.tiob-tooltip-wrap .tiob-tooltip-toggle>svg{fill:#0073aa}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus{outline:none;box-shadow:none}.tiob-tooltip-wrap .tiob-tooltip-toggle:hover .tiob-tooltip-content,.tiob-tooltip-wrap .tiob-tooltip-toggle:focus .tiob-tooltip-content{opacity:1;pointer-events:all;z-index:11}.tiob-tooltip-content{font-size:13px;top:100%;left:0;position:absolute;min-width:300px;background:#fff;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;padding:10px;z-index:1;pointer-events:none;opacity:0}@media(min-width: 660px){.ob-sites.is-grid{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.ob-head>.header-container>h2,.ob-migration>h2{font-size:30px}.ob-head>.header-container>p,.ob-migration>p{font-size:22px}.header-form{flex-direction:row}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr}.notification{flex-wrap:nowrap;padding:10px}.notification p{margin:0}.notification .components-button{margin:0 0 0 auto}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-right-radius:0;border-top-right-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-left-radius:0;border-bottom-left-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-right:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-right:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 10px 12px 5px}}
assets/src/Components/ImportModal.js CHANGED
@@ -70,7 +70,6 @@ const ImportModal = ( {
70
  const [ error, setError ] = useState( null );
71
  const [ importData, setImportData ] = useState( null );
72
  const [ fetching, setFetching ] = useState( true );
73
- const [ pluginsOpened, setPluginsOpened ] = useState( true );
74
  const [ optionsOpened, setOptionsOpened ] = useState( true );
75
  const [ themeOpened, setThemeOpened ] = useState( true );
76
 
@@ -148,16 +147,6 @@ const ImportModal = ( {
148
 
149
  const ModalHead = () => (
150
  <div className="header">
151
- <h1>
152
- { sprintf(
153
- /* translators: name of starter site */
154
- __(
155
- 'Import %s as a complete site',
156
- 'templates-patterns-collection'
157
- ),
158
- importData.title
159
- ) }
160
- </h1>
161
  <p className="description">
162
  { __(
163
  'Import the entire site including customizer options, pages, content and plugins.',
@@ -341,48 +330,68 @@ const ImportModal = ( {
341
  return null;
342
  }
343
 
 
 
344
  const toggleOpen = () => {
345
  setPluginsOpened( ! pluginsOpened );
346
  };
347
 
 
 
 
 
348
  return (
349
- <PanelBody
350
- onToggle={ toggleOpen }
351
- opened={ pluginsOpened }
352
- className="options plugins"
353
- title={ __( 'Plugins', 'templates-patterns-collection' ) }
354
- >
355
- { Object.keys( allPlugins ).map( ( slug, index ) => {
356
- const rowClass = classnames( 'option-row', {
357
- active: pluginOptions[ slug ],
358
- } );
359
- return (
360
- <PanelRow className={ rowClass } key={ index }>
361
- <Icon icon="admin-plugins" />
362
- <span
363
- dangerouslySetInnerHTML={ {
364
- __html: allPlugins[ slug ],
365
- } }
366
- />
367
- { slug in importData.recommended_plugins && (
368
- <div className="toggle-wrapper">
369
- <ToggleControl
370
- checked={ pluginOptions[ slug ] }
371
- onChange={ () => {
372
- setPluginOptions( {
373
- ...pluginOptions,
374
- [ slug ]: ! pluginOptions[
375
- slug
376
- ],
377
- } );
378
- } }
379
- />
380
- </div>
381
- ) }
382
- </PanelRow>
383
- );
384
- } ) }
385
- </PanelBody>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386
  );
387
  };
388
 
@@ -710,6 +719,16 @@ const ImportModal = ( {
710
  onRequestClose={ closeModal }
711
  shouldCloseOnClickOutside={ ! importing && ! fetching }
712
  isDismissible={ ! importing && ! fetching }
 
 
 
 
 
 
 
 
 
 
713
  >
714
  { fetching ? (
715
  <ImportModalMock />
70
  const [ error, setError ] = useState( null );
71
  const [ importData, setImportData ] = useState( null );
72
  const [ fetching, setFetching ] = useState( true );
 
73
  const [ optionsOpened, setOptionsOpened ] = useState( true );
74
  const [ themeOpened, setThemeOpened ] = useState( true );
75
 
147
 
148
  const ModalHead = () => (
149
  <div className="header">
 
 
 
 
 
 
 
 
 
 
150
  <p className="description">
151
  { __(
152
  'Import the entire site including customizer options, pages, content and plugins.',
330
  return null;
331
  }
332
 
333
+ const [ pluginsOpened, setPluginsOpened ] = useState( Object.keys( allPlugins ).length < 3 );
334
+
335
  const toggleOpen = () => {
336
  setPluginsOpened( ! pluginsOpened );
337
  };
338
 
339
+ const pluginsList = Object.keys( allPlugins ).map( ( slug, index ) => {
340
+ return allPlugins[ slug ];
341
+ } ).join( ', ' );
342
+
343
  return (
344
+ <>
345
+ <PanelBody
346
+ onToggle={ toggleOpen }
347
+ opened={ pluginsOpened }
348
+ className="options plugins"
349
+ title={ __( 'Plugins', 'templates-patterns-collection' ) }
350
+ >
351
+ { Object.keys( allPlugins ).map( ( slug, index ) => {
352
+ const rowClass = classnames( 'option-row', {
353
+ active: pluginOptions[ slug ],
354
+ } );
355
+ return (
356
+ <PanelRow className={ rowClass } key={ index }>
357
+ <Icon icon="admin-plugins" />
358
+ <span
359
+ dangerouslySetInnerHTML={ {
360
+ __html: allPlugins[ slug ],
361
+ } }
362
+ />
363
+ { slug in importData.recommended_plugins && (
364
+ <div className="toggle-wrapper">
365
+ <ToggleControl
366
+ checked={ pluginOptions[ slug ] }
367
+ onChange={ () => {
368
+ setPluginOptions( {
369
+ ...pluginOptions,
370
+ [ slug ]: ! pluginOptions[
371
+ slug
372
+ ],
373
+ } );
374
+ } }
375
+ />
376
+ </div>
377
+ ) }
378
+ </PanelRow>
379
+ );
380
+ } ) }
381
+ </PanelBody>
382
+ { ! pluginsOpened && (<i className="plugin-summary">
383
+ <CustomTooltip
384
+ toLeft={false}
385
+ >
386
+ <span
387
+ dangerouslySetInnerHTML={ {
388
+ __html: pluginsList,
389
+ } }
390
+ />
391
+ </CustomTooltip>
392
+ { __( 'Additional plugins are required for this Starter Site in order to work properly. ', 'templates-patterns-collection' ) }
393
+ </i>) }
394
+ </>
395
  );
396
  };
397
 
719
  onRequestClose={ closeModal }
720
  shouldCloseOnClickOutside={ ! importing && ! fetching }
721
  isDismissible={ ! importing && ! fetching }
722
+ title={ importData ?
723
+ sprintf(
724
+ /* translators: name of starter site */
725
+ __(
726
+ 'Import %s as a complete site',
727
+ 'templates-patterns-collection'
728
+ ),
729
+ importData.title
730
+ ) : ''
731
+ }
732
  >
733
  { fetching ? (
734
  <ImportModalMock />
assets/src/scss/_custom-tooltip.scss CHANGED
@@ -17,6 +17,7 @@
17
  .tiob-tooltip-content {
18
  opacity: 1;
19
  pointer-events: all;
 
20
  }
21
  }
22
  }
17
  .tiob-tooltip-content {
18
  opacity: 1;
19
  pointer-events: all;
20
+ z-index: 11;
21
  }
22
  }
23
  }
assets/src/scss/_general.scss CHANGED
@@ -28,6 +28,7 @@
28
  @media screen and (min-width: #{$laptop}) {
29
  .ob-import-modal {
30
  width: 700px !important;
 
31
  }
32
  }
33
 
28
  @media screen and (min-width: #{$laptop}) {
29
  .ob-import-modal {
30
  width: 700px !important;
31
+ max-height: 90vh;
32
  }
33
  }
34
 
assets/src/scss/_import-modal.scss CHANGED
@@ -34,6 +34,11 @@ $base-index: 100000;
34
  }
35
  .components-modal__header {
36
  border: none;
 
 
 
 
 
37
  }
38
 
39
  .header {
@@ -49,9 +54,9 @@ $base-index: 100000;
49
  }
50
 
51
  p.description {
52
- font-size: 17px;
53
  line-height: 34px;
54
- color: #000;
55
  }
56
  }
57
 
@@ -129,10 +134,35 @@ $base-index: 100000;
129
  font-size: 15px;
130
  }
131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  .modal-footer {
133
  margin-top: 25px;
134
  display: flex;
135
  align-items: center;
 
 
 
 
 
 
 
 
 
 
 
136
 
137
  .import {
138
  padding: 10px 30px;
34
  }
35
  .components-modal__header {
36
  border: none;
37
+
38
+ h1 {
39
+ font-size: 22px;
40
+ font-weight: 700;
41
+ }
42
  }
43
 
44
  .header {
54
  }
55
 
56
  p.description {
57
+ font-size: 15px;
58
  line-height: 34px;
59
+ color: #333;
60
  }
61
  }
62
 
134
  font-size: 15px;
135
  }
136
 
137
+ .modal-body {
138
+ padding-bottom: 52px;
139
+
140
+ .plugin-summary {
141
+ display: flex;
142
+ flex-direction: row;
143
+ align-items: center;
144
+ .tiob-tooltip-content {
145
+ left: 25px;
146
+ top: 0;
147
+ }
148
+ }
149
+ }
150
+
151
  .modal-footer {
152
  margin-top: 25px;
153
  display: flex;
154
  align-items: center;
155
+ position: absolute;
156
+ bottom: 0;
157
+ background: #fff;
158
+ width: calc( 100% - 72px );
159
+ padding: 12px 36px;
160
+ z-index: 10;
161
+ left: 0;
162
+ border-top: 1px solid #d9d9d9;
163
+
164
+ -webkit-box-shadow: 0px -24px 12px 0px rgba(255,255,255,0.8);
165
+ box-shadow: 0px -24px 12px 0px rgba(255,255,255,0.8);
166
 
167
  .import {
168
  padding: 10px 30px;
editor/build/index-rtl.css CHANGED
@@ -1 +1 @@
1
- .tpc-template-cloud-icon{max-width:100%;max-height:100%}.tpc-template-cloud-modal .components-modal__frame{width:100%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content{padding:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .components-modal__header{display:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header{display:flex;border-bottom:1px solid #e0e0e0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .left{display:flex;flex-basis:20%;justify-content:flex-start}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .left .tpc-template-cloud-icon{width:60px;height:60px;padding:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center{display:flex;flex-basis:60%;justify-content:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center .tabs{height:60px;font-size:14px;color:#616161;font-weight:500;border-radius:0;padding-right:25px;padding-left:25px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center .tabs.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right{display:flex;flex-basis:20%;justify-content:flex-end}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button{width:60px;height:60px;border-right:1px solid #e6e9ec}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button:hover{background:#f1f1f1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button svg{width:32px;height:32px;fill:#616161}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group{display:flex;justify-content:center;align-items:center;height:60px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button{border-right:0;box-shadow:none;background:#f1f1f1;width:38px;height:38px;margin:5px 10px;padding:5px;border:1px solid #d9d9d9;border-radius:6px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover{color:#f1f1f1;background:#0073aa;width:auto;border:1px solid #0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover:before{content:"Sync";padding:0 10px;font-weight:500}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover svg{fill:#f1f1f1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button svg{width:26px;height:26px;padding:0;fill:#0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content{background:#f1f1f1;padding:20px 40px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .notices .components-notice{margin:0 0 20px 0;padding:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters{display:flex;justify-content:space-between;padding-bottom:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting{display:flex;align-items:center;font-size:11px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-label{flex-grow:1;text-align:right;padding-left:20px;border-left:1px solid #d5dadf;text-transform:uppercase}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button{padding:0 20px 0 0;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-right:3px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-right:3px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters{display:flex}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters{width:200px;position:relative;margin-left:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters input{width:100%;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}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters>svg,.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters .components-button{position:absolute;top:50%;left:0;transform:translateY(-50%);padding:0;min-width:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters>svg>svg,.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters .components-button>svg{fill:#101010}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button.is-pressed{background:transparent}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button.is-pressed svg{fill:#0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button svg{fill:#d9d9d9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:25% 25% 25% 25%;grid-template-columns:25% 25% 25% 25%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row{display:flex;height:60px;width:100%;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row svg{height:24px;margin-left:10px;fill:#b9b9b9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-title{display:flex;align-items:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-title .components-base-control__field{margin:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-controls{display:flex;align-items:center;margin-right:auto}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions{display:flex;margin-right:50px;justify-content:flex-end}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions.no-controls{margin-right:auto}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions .components-button{padding:6px 30px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions .components-button.is-primary{margin-right:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid{border:1px solid #ccc;margin:10px;min-height:350px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview:hover{background-color:#404040}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview.is-loading{background:#404040}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview.is-loading .preview-actions{display:flex}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .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}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview:hover .preview-actions{opacity:1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .card-footer p{font-weight:600;margin:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination{padding-top:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button{margin-left:10px;border-radius:2px;box-shadow:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:not(.is-primary){background:#fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-header{display:flex;align-items:center;justify-content:space-between}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-header .right .components-button:last-child{margin-right:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content{margin:20px 0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .block-editor-block-preview__container{max-height:60vh;overflow:scroll}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .block-editor-block-preview__container .block-editor-block-list__block:first-child{margin-top:0;margin-bottom:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .components-placeholder{box-shadow:none;margin:20px 0}.tpc-template-cloud-modal .components-modal__frame .components-spinner{margin:0 auto}.ti-tpc-components-panel .components-button{margin:20px 0}.controls-popover .components-popover__content{padding:10px;min-width:300px}.controls-popover .components-popover__content .popover-content{display:flex;justify-content:center;align-items:flex-end}.controls-popover .components-popover__content .popover-content .components-base-control__field{margin:0}.controls-popover .components-popover__content .popover-content .components-base-control__field .components-text-control__input{max-height:30px}.controls-popover .components-popover__content .popover-content .components-button{max-width:30px;max-height:30px}.components-button.is-loading svg{-webkit-animation:icon-spin 2s linear infinite;animation:icon-spin 2s linear infinite}.filter-overlay .components-button:not(.has-icon){padding-right:38px}@media(max-width: 1439px){.tpc-template-cloud-modal .components-modal__frame{max-width:990px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content.is-grid{-ms-grid-columns:33% 33% 33%;grid-template-columns:33% 33% 33%}}@media(min-width: 1440px){.tpc-template-cloud-modal .components-modal__frame{max-width:1200px}}@-webkit-keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}@keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.tpc-preview-wrap-modal{top:0 !important;bottom:0 !important;right:0 !important;left:0 !important;width:100vw !important;height:100vh !important;transform:none !important;margin:0 !important;padding:0 !important;max-width:100%;max-height:100%;overflow:hidden}.tpc-preview-wrap-modal .components-modal__header{display:none}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.tpc-preview-wrap-modal .ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.tpc-preview-wrap-modal .ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.tpc-preview-wrap-modal .ob-preview .bottom-bar .actions{margin-right:auto}.tpc-preview-wrap-modal .ob-preview .bottom-bar .heading{margin:0 20px 0 0}.tpc-preview-wrap-modal .ob-preview{width:100vw;height:100vh;position:absolute;top:0;right:0}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}
1
+ .tpc-template-cloud-icon{max-width:100%;max-height:100%}.tpc-template-cloud-modal .components-modal__frame{width:100%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content{padding:0;margin-top:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content:before{margin-bottom:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .components-modal__header{display:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header{display:flex;border-bottom:1px solid #e0e0e0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .left{display:flex;flex-basis:20%;justify-content:flex-start}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .left .tpc-template-cloud-icon{width:60px;height:60px;padding:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center{display:flex;flex-basis:60%;justify-content:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center .tabs{height:60px;font-size:14px;color:#616161;font-weight:500;border-radius:0;padding-right:25px;padding-left:25px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center .tabs.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right{display:flex;flex-basis:20%;justify-content:flex-end}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button{width:60px;height:60px;border-right:1px solid #e6e9ec}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button:hover{background:#f1f1f1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button svg{width:32px;height:32px;fill:#616161}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group{display:flex;justify-content:center;align-items:center;height:60px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button{border-right:0;box-shadow:none;background:#f1f1f1;width:38px;height:38px;margin:5px 10px;padding:5px;border:1px solid #d9d9d9;border-radius:6px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover{color:#f1f1f1;background:#0073aa;width:auto;border:1px solid #0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover:before{content:"Sync";padding:0 10px;font-weight:500}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover svg{fill:#f1f1f1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button svg{width:26px;height:26px;padding:0;fill:#0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content{background:#f1f1f1;padding:20px 40px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .notices .components-notice{margin:0 0 20px 0;padding:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters{display:flex;justify-content:space-between;padding-bottom:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting{display:flex;align-items:center;font-size:11px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-label{flex-grow:1;text-align:right;padding-left:20px;border-left:1px solid #d5dadf;text-transform:uppercase}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button{padding:0 20px 0 0;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-right:3px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-right:3px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters{display:flex}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters{width:200px;position:relative;margin-left:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters input{width:100%;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}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters>svg,.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters .components-button{position:absolute;top:50%;left:0;transform:translateY(-50%);padding:0;min-width:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters>svg>svg,.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters .components-button>svg{fill:#101010}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button.is-pressed{background:transparent}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button.is-pressed svg{fill:#0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button svg{fill:#d9d9d9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:25% 25% 25% 25%;grid-template-columns:25% 25% 25% 25%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row{display:flex;height:60px;width:100%;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row svg{height:24px;margin-left:10px;fill:#b9b9b9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-title{display:flex;align-items:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-title .components-base-control__field{margin:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-controls{display:flex;align-items:center;margin-right:auto}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions{display:flex;margin-right:50px;justify-content:flex-end}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions.no-controls{margin-right:auto}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions .components-button{padding:6px 30px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions .components-button.is-primary{margin-right:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid{border:1px solid #ccc;margin:10px;min-height:350px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview:hover{background-color:#404040}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview.is-loading{background:#404040}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview.is-loading .preview-actions{display:flex}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .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}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview:hover .preview-actions{opacity:1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .card-footer p{font-weight:600;margin:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination{padding-top:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button{margin-left:10px;border-radius:2px;box-shadow:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:not(.is-primary){background:#fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-header{display:flex;align-items:center;justify-content:space-between}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-header .right .components-button:last-child{margin-right:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content{margin:20px 0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .block-editor-block-preview__container{max-height:60vh;overflow:scroll}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .block-editor-block-preview__container .block-editor-block-list__block:first-child{margin-top:0;margin-bottom:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .components-placeholder{box-shadow:none;margin:20px 0}.tpc-template-cloud-modal .components-modal__frame .components-spinner{margin:0 auto}.ti-tpc-components-panel .components-button{margin:20px 0}.controls-popover .components-popover__content{padding:10px;min-width:300px}.controls-popover .components-popover__content .popover-content{display:flex;justify-content:center;align-items:flex-end}.controls-popover .components-popover__content .popover-content .components-base-control__field{margin:0}.controls-popover .components-popover__content .popover-content .components-base-control__field .components-text-control__input{max-height:30px}.controls-popover .components-popover__content .popover-content .components-button{max-width:30px;max-height:30px}.components-button.is-loading svg{-webkit-animation:icon-spin 2s linear infinite;animation:icon-spin 2s linear infinite}.filter-overlay .components-button:not(.has-icon){padding-right:38px}@media(max-width: 1439px){.tpc-template-cloud-modal .components-modal__frame{max-width:990px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content.is-grid{-ms-grid-columns:33% 33% 33%;grid-template-columns:33% 33% 33%}}@media(min-width: 1440px){.tpc-template-cloud-modal .components-modal__frame{max-width:1200px}}@-webkit-keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}@keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.tpc-preview-wrap-modal{top:0 !important;bottom:0 !important;right:0 !important;left:0 !important;width:100vw !important;height:100vh !important;transform:none !important;margin:0 !important;padding:0 !important;max-width:100%;max-height:100%;overflow:hidden}.tpc-preview-wrap-modal .components-modal__header{display:none}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.tpc-preview-wrap-modal .ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.tpc-preview-wrap-modal .ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.tpc-preview-wrap-modal .ob-preview .bottom-bar .actions{margin-right:auto}.tpc-preview-wrap-modal .ob-preview .bottom-bar .heading{margin:0 20px 0 0}.tpc-preview-wrap-modal .ob-preview{width:100vw;height:100vh;position:absolute;top:0;right:0}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}
editor/build/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'c1dba3b78ab945c5e09c4e790adb08cc');
1
+ <?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'f9961ecd8c3c8fac5d188d445d1340e2');
editor/build/index.css CHANGED
@@ -1 +1 @@
1
- .tpc-template-cloud-icon{max-width:100%;max-height:100%}.tpc-template-cloud-modal .components-modal__frame{width:100%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content{padding:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .components-modal__header{display:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header{display:flex;border-bottom:1px solid #e0e0e0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .left{display:flex;flex-basis:20%;justify-content:flex-start}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .left .tpc-template-cloud-icon{width:60px;height:60px;padding:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center{display:flex;flex-basis:60%;justify-content:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center .tabs{height:60px;font-size:14px;color:#616161;font-weight:500;border-radius:0;padding-left:25px;padding-right:25px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center .tabs.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right{display:flex;flex-basis:20%;justify-content:flex-end}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button{width:60px;height:60px;border-left:1px solid #e6e9ec}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button:hover{background:#f1f1f1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button svg{width:32px;height:32px;fill:#616161}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group{display:flex;justify-content:center;align-items:center;height:60px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button{border-left:0;box-shadow:none;background:#f1f1f1;width:38px;height:38px;margin:5px 10px;padding:5px;border:1px solid #d9d9d9;border-radius:6px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover{color:#f1f1f1;background:#0073aa;width:auto;border:1px solid #0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover:before{content:"Sync";padding:0 10px;font-weight:500}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover svg{fill:#f1f1f1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button svg{width:26px;height:26px;padding:0;fill:#0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content{background:#f1f1f1;padding:20px 40px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .notices .components-notice{margin:0 0 20px 0;padding:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters{display:flex;justify-content:space-between;padding-bottom:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting{display:flex;align-items:center;font-size:11px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-label{flex-grow:1;text-align:left;padding-right:20px;border-right:1px solid #d5dadf;text-transform:uppercase}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button{padding:0 0 0 20px;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-left:3px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-left:3px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters{display:flex}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters{width:200px;position:relative;margin-right:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters input{width:100%;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}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters>svg,.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters .components-button{position:absolute;top:50%;right:0;transform:translateY(-50%);padding:0;min-width:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters>svg>svg,.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters .components-button>svg{fill:#101010}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button.is-pressed{background:transparent}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button.is-pressed svg{fill:#0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button svg{fill:#d9d9d9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:25% 25% 25% 25%;grid-template-columns:25% 25% 25% 25%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row{display:flex;height:60px;width:100%;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row svg{height:24px;margin-right:10px;fill:#b9b9b9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-title{display:flex;align-items:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-title .components-base-control__field{margin:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-controls{display:flex;align-items:center;margin-left:auto}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions{display:flex;margin-left:50px;justify-content:flex-end}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions.no-controls{margin-left:auto}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions .components-button{padding:6px 30px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions .components-button.is-primary{margin-left:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid{border:1px solid #ccc;margin:10px;min-height:350px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview:hover{background-color:#404040}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview.is-loading{background:#404040}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview.is-loading .preview-actions{display:flex}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .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}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview:hover .preview-actions{opacity:1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .card-footer p{font-weight:600;margin:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination{padding-top:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button{margin-right:10px;border-radius:2px;box-shadow:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:not(.is-primary){background:#fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-header{display:flex;align-items:center;justify-content:space-between}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-header .right .components-button:last-child{margin-left:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content{margin:20px 0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .block-editor-block-preview__container{max-height:60vh;overflow:scroll}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .block-editor-block-preview__container .block-editor-block-list__block:first-child{margin-top:0;margin-bottom:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .components-placeholder{box-shadow:none;margin:20px 0}.tpc-template-cloud-modal .components-modal__frame .components-spinner{margin:0 auto}.ti-tpc-components-panel .components-button{margin:20px 0}.controls-popover .components-popover__content{padding:10px;min-width:300px}.controls-popover .components-popover__content .popover-content{display:flex;justify-content:center;align-items:flex-end}.controls-popover .components-popover__content .popover-content .components-base-control__field{margin:0}.controls-popover .components-popover__content .popover-content .components-base-control__field .components-text-control__input{max-height:30px}.controls-popover .components-popover__content .popover-content .components-button{max-width:30px;max-height:30px}.components-button.is-loading svg{-webkit-animation:icon-spin 2s linear infinite;animation:icon-spin 2s linear infinite}.filter-overlay .components-button:not(.has-icon){padding-left:38px}@media(max-width: 1439px){.tpc-template-cloud-modal .components-modal__frame{max-width:990px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content.is-grid{-ms-grid-columns:33% 33% 33%;grid-template-columns:33% 33% 33%}}@media(min-width: 1440px){.tpc-template-cloud-modal .components-modal__frame{max-width:1200px}}@-webkit-keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.tpc-preview-wrap-modal{top:0 !important;bottom:0 !important;left:0 !important;right:0 !important;width:100vw !important;height:100vh !important;transform:none !important;margin:0 !important;padding:0 !important;max-width:100%;max-height:100%;overflow:hidden}.tpc-preview-wrap-modal .components-modal__header{display:none}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.tpc-preview-wrap-modal .ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.tpc-preview-wrap-modal .ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.tpc-preview-wrap-modal .ob-preview .bottom-bar .actions{margin-left:auto}.tpc-preview-wrap-modal .ob-preview .bottom-bar .heading{margin:0 0 0 20px}.tpc-preview-wrap-modal .ob-preview{width:100vw;height:100vh;position:absolute;top:0;left:0}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
1
+ .tpc-template-cloud-icon{max-width:100%;max-height:100%}.tpc-template-cloud-modal .components-modal__frame{width:100%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content{padding:0;margin-top:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content:before{margin-bottom:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .components-modal__header{display:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header{display:flex;border-bottom:1px solid #e0e0e0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .left{display:flex;flex-basis:20%;justify-content:flex-start}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .left .tpc-template-cloud-icon{width:60px;height:60px;padding:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center{display:flex;flex-basis:60%;justify-content:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center .tabs{height:60px;font-size:14px;color:#616161;font-weight:500;border-radius:0;padding-left:25px;padding-right:25px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .center .tabs.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right{display:flex;flex-basis:20%;justify-content:flex-end}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button{width:60px;height:60px;border-left:1px solid #e6e9ec}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button:hover{background:#f1f1f1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button svg{width:32px;height:32px;fill:#616161}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group{display:flex;justify-content:center;align-items:center;height:60px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button{border-left:0;box-shadow:none;background:#f1f1f1;width:38px;height:38px;margin:5px 10px;padding:5px;border:1px solid #d9d9d9;border-radius:6px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover{color:#f1f1f1;background:#0073aa;width:auto;border:1px solid #0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover:before{content:"Sync";padding:0 10px;font-weight:500}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button:hover svg{fill:#f1f1f1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button svg{width:26px;height:26px;padding:0;fill:#0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content{background:#f1f1f1;padding:20px 40px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .notices .components-notice{margin:0 0 20px 0;padding:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters{display:flex;justify-content:space-between;padding-bottom:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting{display:flex;align-items:center;font-size:11px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-label{flex-grow:1;text-align:left;padding-right:20px;border-right:1px solid #d5dadf;text-transform:uppercase}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button{padding:0 0 0 20px;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-left:3px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-left:3px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters{display:flex}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters{width:200px;position:relative;margin-right:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters input{width:100%;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}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters>svg,.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters .components-button{position:absolute;top:50%;right:0;transform:translateY(-50%);padding:0;min-width:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters>svg>svg,.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .search-filters .components-button>svg{fill:#101010}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button.is-pressed{background:transparent}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button.is-pressed svg{fill:#0073aa}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .filters .view-filters .components-button svg{fill:#d9d9d9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:25% 25% 25% 25%;grid-template-columns:25% 25% 25% 25%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row{display:flex;height:60px;width:100%;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row svg{height:24px;margin-right:10px;fill:#b9b9b9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-title{display:flex;align-items:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-title .components-base-control__field{margin:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-controls{display:flex;align-items:center;margin-left:auto}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .row-controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions{display:flex;margin-left:50px;justify-content:flex-end}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions.no-controls{margin-left:auto}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions .components-button{padding:6px 30px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-row .actions .components-button.is-primary{margin-left:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid{border:1px solid #ccc;margin:10px;min-height:350px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview:hover{background-color:#404040}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview.is-loading{background:#404040}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview.is-loading .preview-actions{display:flex}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .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}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button{width:120px;justify-content:center;margin-bottom:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button.is-secondary{color:#fff;box-shadow:inset 0 0 0 2px #fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions>.components-button.is-secondary:disabled{background:transparent;opacity:.5}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions .preview-controls .components-button{width:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview .preview-actions .preview-controls .components-button svg{fill:#fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .grid-preview:hover .preview-actions{opacity:1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .card-footer{background:#fff;border-top:1px solid #ccc;padding:15px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content .table-grid .card-footer p{font-weight:600;margin:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination{padding-top:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button{margin-right:10px;border-radius:2px;box-shadow:none}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:not(.is-primary){background:#fff}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .pagination .components-button:not(.is-primary):focus{box-shadow:0 0 0 1.5px #007cba}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-header{display:flex;align-items:center;justify-content:space-between}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-header .right .components-button:last-child{margin-left:10px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content{margin:20px 0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .block-editor-block-preview__container{max-height:60vh;overflow:scroll}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .block-editor-block-preview__container .block-editor-block-list__block:first-child{margin-top:0;margin-bottom:0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .components-placeholder{box-shadow:none;margin:20px 0}.tpc-template-cloud-modal .components-modal__frame .components-spinner{margin:0 auto}.ti-tpc-components-panel .components-button{margin:20px 0}.controls-popover .components-popover__content{padding:10px;min-width:300px}.controls-popover .components-popover__content .popover-content{display:flex;justify-content:center;align-items:flex-end}.controls-popover .components-popover__content .popover-content .components-base-control__field{margin:0}.controls-popover .components-popover__content .popover-content .components-base-control__field .components-text-control__input{max-height:30px}.controls-popover .components-popover__content .popover-content .components-button{max-width:30px;max-height:30px}.components-button.is-loading svg{-webkit-animation:icon-spin 2s linear infinite;animation:icon-spin 2s linear infinite}.filter-overlay .components-button:not(.has-icon){padding-left:38px}@media(max-width: 1439px){.tpc-template-cloud-modal .components-modal__frame{max-width:990px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .table-content.is-grid{-ms-grid-columns:33% 33% 33%;grid-template-columns:33% 33% 33%}}@media(min-width: 1440px){.tpc-template-cloud-modal .components-modal__frame{max-width:1200px}}@-webkit-keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.tpc-preview-wrap-modal{top:0 !important;bottom:0 !important;left:0 !important;right:0 !important;width:100vw !important;height:100vh !important;transform:none !important;margin:0 !important;padding:0 !important;max-width:100%;max-height:100%;overflow:hidden}.tpc-preview-wrap-modal .components-modal__header{display:none}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .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}.tpc-preview-wrap-modal .ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.tpc-preview-wrap-modal .ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.tpc-preview-wrap-modal .ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.tpc-preview-wrap-modal .ob-preview .bottom-bar .actions{margin-left:auto}.tpc-preview-wrap-modal .ob-preview .bottom-bar .heading{margin:0 0 0 20px}.tpc-preview-wrap-modal .ob-preview{width:100vw;height:100vh;position:absolute;top:0;left:0}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
editor/src/editor.scss CHANGED
@@ -9,6 +9,10 @@
9
 
10
  .components-modal__content {
11
  padding: 0;
 
 
 
 
12
 
13
  .components-modal__header {
14
  display: none;
9
 
10
  .components-modal__content {
11
  padding: 0;
12
+ margin-top: 0;
13
+ &:before {
14
+ margin-bottom: 0;
15
+ }
16
 
17
  .components-modal__header {
18
  display: none;
includes/Main.php CHANGED
@@ -19,7 +19,7 @@ class Main {
19
  *
20
  * @var string Version string.
21
  */
22
- const VERSION = '1.1.27';
23
  /**
24
  * Sites Library API URL.
25
  *
19
  *
20
  * @var string Version string.
21
  */
22
+ const VERSION = '1.1.28';
23
  /**
24
  * Sites Library API URL.
25
  *
includes/Rest_Server.php CHANGED
@@ -185,6 +185,9 @@ class Rest_Server {
185
  $content_importer = new Content_Importer();
186
  $import = $content_importer->import_remote_xml( $request );
187
  set_transient( 'ti_tpc_should_flush_permalinks', 'yes', 12 * HOUR_IN_SECONDS );
 
 
 
188
 
189
  return $import;
190
  }
185
  $content_importer = new Content_Importer();
186
  $import = $content_importer->import_remote_xml( $request );
187
  set_transient( 'ti_tpc_should_flush_permalinks', 'yes', 12 * HOUR_IN_SECONDS );
188
+ if ( get_option( 'neve_notice_dismissed', 'no' ) !== 'yes' ) {
189
+ update_option( 'neve_notice_dismissed', 'yes' );
190
+ }
191
 
192
  return $import;
193
  }
languages/templates-patterns-collection.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Templates Patterns Collection 1.1.27\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/templates-patterns-collection\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-11-03T11:17:55+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.7.1\n"
15
  "X-Domain: templates-patterns-collection\n"
@@ -93,18 +93,18 @@ msgid "Loading"
93
  msgstr ""
94
 
95
  #: includes/Admin.php:445
96
- #: assets/src/Components/ImportModal.js:820
97
  #: assets/src/Components/Migration.js:198
98
  msgid "View Website"
99
  msgstr ""
100
 
101
  #: includes/Admin.php:446
102
- #: assets/src/Components/ImportModal.js:830
103
  msgid "Add your own content"
104
  msgstr ""
105
 
106
  #: includes/Admin.php:447
107
- #: assets/src/Components/ImportModal.js:811
108
  msgid "Back to Sites Library"
109
  msgstr ""
110
 
@@ -117,7 +117,7 @@ msgid "Advanced Options"
117
  msgstr ""
118
 
119
  #: includes/Admin.php:450
120
- #: assets/src/Components/ImportModal.js:353
121
  msgid "Plugins"
122
  msgstr ""
123
 
@@ -136,22 +136,22 @@ msgid "Search"
136
  msgstr ""
137
 
138
  #: includes/Admin.php:454
139
- #: assets/src/Components/ImportModal.js:205
140
  msgid "Content"
141
  msgstr ""
142
 
143
  #: includes/Admin.php:455
144
- #: assets/src/Components/ImportModal.js:213
145
  msgid "Customizer"
146
  msgstr ""
147
 
148
  #: includes/Admin.php:456
149
- #: assets/src/Components/ImportModal.js:217
150
  msgid "Widgets"
151
  msgstr ""
152
 
153
  #: includes/Admin.php:457
154
- #: assets/src/Components/ImportModal.js:207
155
  msgid "We recommend you backup your website content before attempting a full site import."
156
  msgstr ""
157
 
@@ -168,7 +168,7 @@ msgid "Here is our own collection of related images you can use for your site."
168
  msgstr ""
169
 
170
  #: includes/Admin.php:461
171
- #: assets/src/Components/ImportModal.js:759
172
  #: assets/src/Components/Migration.js:131
173
  msgid "Content was successfully imported. Enjoy your new site!"
174
  msgstr ""
@@ -515,93 +515,97 @@ msgstr ""
515
  msgid "Builder Logo"
516
  msgstr ""
517
 
518
- #: assets/src/Components/ImportModal.js:94
519
- #: assets/src/Components/ImportModal.js:130
520
  msgid "Something went wrong while loading the site data. Please refresh the page and try again."
521
  msgstr ""
522
 
523
- #. translators: name of starter site
524
- #: assets/src/Components/ImportModal.js:154
525
- msgid "Import %s as a complete site"
526
- msgstr ""
527
-
528
- #: assets/src/Components/ImportModal.js:162
529
  msgid "Import the entire site including customizer options, pages, content and plugins."
530
  msgstr ""
531
 
532
- #: assets/src/Components/ImportModal.js:176
533
  msgid "Neve"
534
  msgstr ""
535
 
536
- #: assets/src/Components/ImportModal.js:177
537
  msgid "In order to import the starter site, Neve theme has to be installed and activated."
538
  msgstr ""
539
 
540
- #: assets/src/Components/ImportModal.js:188
541
  msgid "Install required theme"
542
  msgstr ""
543
 
544
- #: assets/src/Components/ImportModal.js:219
545
  msgid "Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there."
546
  msgstr ""
547
 
548
- #: assets/src/Components/ImportModal.js:225
549
  msgid "Enable performance features for my site"
550
  msgstr ""
551
 
552
- #: assets/src/Components/ImportModal.js:268
553
  msgid "Cleanup previous import"
554
  msgstr ""
555
 
556
- #: assets/src/Components/ImportModal.js:272
557
  msgid "This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import"
558
  msgstr ""
559
 
560
- #: assets/src/Components/ImportModal.js:290
561
  msgid "Import settings"
562
  msgstr ""
563
 
564
- #: assets/src/Components/ImportModal.js:424
 
 
 
 
565
  #: assets/src/Components/InstallModal.js:52
566
  msgid "Could not install theme."
567
  msgstr ""
568
 
569
- #: assets/src/Components/ImportModal.js:445
570
  #: assets/src/Components/InstallModal.js:67
571
  msgid "Could not activate theme."
572
  msgstr ""
573
 
574
- #: assets/src/Components/ImportModal.js:628
575
  msgid "Something went wrong while cleaning the previous import."
576
  msgstr ""
577
 
578
- #: assets/src/Components/ImportModal.js:632
579
  #: assets/src/Components/Migration.js:47
580
  msgid "Something went wrong while installing the necessary plugins."
581
  msgstr ""
582
 
583
- #: assets/src/Components/ImportModal.js:636
584
  #: assets/src/Components/Migration.js:63
585
  msgid "Something went wrong while importing the website content."
586
  msgstr ""
587
 
588
- #: assets/src/Components/ImportModal.js:640
589
  msgid "Something went wrong while updating the customizer settings."
590
  msgstr ""
591
 
592
- #: assets/src/Components/ImportModal.js:644
593
  msgid "Something went wrong while importing the widgets."
594
  msgstr ""
595
 
596
- #: assets/src/Components/ImportModal.js:648
597
  msgid "Something went wrong while installing the performance addon."
598
  msgstr ""
599
 
600
- #: assets/src/Components/ImportModal.js:779
 
 
 
 
 
601
  msgid "I want to import just the templates"
602
  msgstr ""
603
 
604
- #: assets/src/Components/ImportModal.js:797
605
  msgid "Import entire site"
606
  msgstr ""
607
 
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Templates Patterns Collection 1.1.28\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/templates-patterns-collection\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-11-10T10:45:23+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.7.1\n"
15
  "X-Domain: templates-patterns-collection\n"
93
  msgstr ""
94
 
95
  #: includes/Admin.php:445
96
+ #: assets/src/Components/ImportModal.js:839
97
  #: assets/src/Components/Migration.js:198
98
  msgid "View Website"
99
  msgstr ""
100
 
101
  #: includes/Admin.php:446
102
+ #: assets/src/Components/ImportModal.js:849
103
  msgid "Add your own content"
104
  msgstr ""
105
 
106
  #: includes/Admin.php:447
107
+ #: assets/src/Components/ImportModal.js:830
108
  msgid "Back to Sites Library"
109
  msgstr ""
110
 
117
  msgstr ""
118
 
119
  #: includes/Admin.php:450
120
+ #: assets/src/Components/ImportModal.js:349
121
  msgid "Plugins"
122
  msgstr ""
123
 
136
  msgstr ""
137
 
138
  #: includes/Admin.php:454
139
+ #: assets/src/Components/ImportModal.js:194
140
  msgid "Content"
141
  msgstr ""
142
 
143
  #: includes/Admin.php:455
144
+ #: assets/src/Components/ImportModal.js:202
145
  msgid "Customizer"
146
  msgstr ""
147
 
148
  #: includes/Admin.php:456
149
+ #: assets/src/Components/ImportModal.js:206
150
  msgid "Widgets"
151
  msgstr ""
152
 
153
  #: includes/Admin.php:457
154
+ #: assets/src/Components/ImportModal.js:196
155
  msgid "We recommend you backup your website content before attempting a full site import."
156
  msgstr ""
157
 
168
  msgstr ""
169
 
170
  #: includes/Admin.php:461
171
+ #: assets/src/Components/ImportModal.js:778
172
  #: assets/src/Components/Migration.js:131
173
  msgid "Content was successfully imported. Enjoy your new site!"
174
  msgstr ""
515
  msgid "Builder Logo"
516
  msgstr ""
517
 
518
+ #: assets/src/Components/ImportModal.js:93
519
+ #: assets/src/Components/ImportModal.js:129
520
  msgid "Something went wrong while loading the site data. Please refresh the page and try again."
521
  msgstr ""
522
 
523
+ #: assets/src/Components/ImportModal.js:151
 
 
 
 
 
524
  msgid "Import the entire site including customizer options, pages, content and plugins."
525
  msgstr ""
526
 
527
+ #: assets/src/Components/ImportModal.js:165
528
  msgid "Neve"
529
  msgstr ""
530
 
531
+ #: assets/src/Components/ImportModal.js:166
532
  msgid "In order to import the starter site, Neve theme has to be installed and activated."
533
  msgstr ""
534
 
535
+ #: assets/src/Components/ImportModal.js:177
536
  msgid "Install required theme"
537
  msgstr ""
538
 
539
+ #: assets/src/Components/ImportModal.js:208
540
  msgid "Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there."
541
  msgstr ""
542
 
543
+ #: assets/src/Components/ImportModal.js:214
544
  msgid "Enable performance features for my site"
545
  msgstr ""
546
 
547
+ #: assets/src/Components/ImportModal.js:257
548
  msgid "Cleanup previous import"
549
  msgstr ""
550
 
551
+ #: assets/src/Components/ImportModal.js:261
552
  msgid "This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import"
553
  msgstr ""
554
 
555
+ #: assets/src/Components/ImportModal.js:279
556
  msgid "Import settings"
557
  msgstr ""
558
 
559
+ #: assets/src/Components/ImportModal.js:392
560
+ msgid "Additional plugins are required for this Starter Site in order to work properly. "
561
+ msgstr ""
562
+
563
+ #: assets/src/Components/ImportModal.js:433
564
  #: assets/src/Components/InstallModal.js:52
565
  msgid "Could not install theme."
566
  msgstr ""
567
 
568
+ #: assets/src/Components/ImportModal.js:454
569
  #: assets/src/Components/InstallModal.js:67
570
  msgid "Could not activate theme."
571
  msgstr ""
572
 
573
+ #: assets/src/Components/ImportModal.js:637
574
  msgid "Something went wrong while cleaning the previous import."
575
  msgstr ""
576
 
577
+ #: assets/src/Components/ImportModal.js:641
578
  #: assets/src/Components/Migration.js:47
579
  msgid "Something went wrong while installing the necessary plugins."
580
  msgstr ""
581
 
582
+ #: assets/src/Components/ImportModal.js:645
583
  #: assets/src/Components/Migration.js:63
584
  msgid "Something went wrong while importing the website content."
585
  msgstr ""
586
 
587
+ #: assets/src/Components/ImportModal.js:649
588
  msgid "Something went wrong while updating the customizer settings."
589
  msgstr ""
590
 
591
+ #: assets/src/Components/ImportModal.js:653
592
  msgid "Something went wrong while importing the widgets."
593
  msgstr ""
594
 
595
+ #: assets/src/Components/ImportModal.js:657
596
  msgid "Something went wrong while installing the performance addon."
597
  msgstr ""
598
 
599
+ #. translators: name of starter site
600
+ #: assets/src/Components/ImportModal.js:725
601
+ msgid "Import %s as a complete site"
602
+ msgstr ""
603
+
604
+ #: assets/src/Components/ImportModal.js:798
605
  msgid "I want to import just the templates"
606
  msgstr ""
607
 
608
+ #: assets/src/Components/ImportModal.js:816
609
  msgid "Import entire site"
610
  msgstr ""
611
 
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: 6.0
6
  Requires PHP: 5.6
7
  Stable tag: trunk
8
  License: GPLv3
@@ -39,6 +39,15 @@ Yes, you can. You can either chose to import one template or the entire starter
39
 
40
  == Changelog ==
41
 
 
 
 
 
 
 
 
 
 
42
  ##### [Version 1.1.27](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.26...v1.1.27) (2022-11-03)
43
 
44
  - Feat Map for Restrict Content plugin
2
  Contributors: themeisle
3
  Tags: neve, templates, patterns, blocks, starter, sites, demo, content, import
4
  Requires at least: 4.7
5
+ Tested up to: 6.1
6
  Requires PHP: 5.6
7
  Stable tag: trunk
8
  License: GPLv3
39
 
40
  == Changelog ==
41
 
42
+ ##### [Version 1.1.28](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.27...v1.1.28) (2022-11-10)
43
+
44
+ - Fix dismiss Neve notice after Starter Site import
45
+ - Fix import modal white space
46
+ - Fix modal UX
47
+
48
+
49
+
50
+
51
  ##### [Version 1.1.27](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.26...v1.1.27) (2022-11-03)
52
 
53
  - Feat Map for Restrict Content plugin
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.27
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.28
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
vendor/autoload.php CHANGED
@@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
22
 
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
 
25
- return ComposerAutoloaderInitd03a356e186fc71400ee55c062bcfeb3::getLoader();
22
 
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
 
25
+ return ComposerAutoloaderInita5211c3c96f5ea517f3dc157640be1cd::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitd03a356e186fc71400ee55c062bcfeb3
6
  {
7
  private static $loader;
8
 
@@ -22,18 +22,18 @@ class ComposerAutoloaderInitd03a356e186fc71400ee55c062bcfeb3
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitd03a356e186fc71400ee55c062bcfeb3', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInitd03a356e186fc71400ee55c062bcfeb3', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInitd03a356e186fc71400ee55c062bcfeb3::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
- $includeFiles = \Composer\Autoload\ComposerStaticInitd03a356e186fc71400ee55c062bcfeb3::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
- composerRequired03a356e186fc71400ee55c062bcfeb3($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
@@ -45,7 +45,7 @@ class ComposerAutoloaderInitd03a356e186fc71400ee55c062bcfeb3
45
  * @param string $file
46
  * @return void
47
  */
48
- function composerRequired03a356e186fc71400ee55c062bcfeb3($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInita5211c3c96f5ea517f3dc157640be1cd
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInita5211c3c96f5ea517f3dc157640be1cd', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInita5211c3c96f5ea517f3dc157640be1cd', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Composer\Autoload\ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
+ $includeFiles = \Composer\Autoload\ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
+ composerRequirea5211c3c96f5ea517f3dc157640be1cd($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
45
  * @param string $file
46
  * @return void
47
  */
48
+ function composerRequirea5211c3c96f5ea517f3dc157640be1cd($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitd03a356e186fc71400ee55c062bcfeb3
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -58,9 +58,9 @@ class ComposerStaticInitd03a356e186fc71400ee55c062bcfeb3
58
  public static function getInitializer(ClassLoader $loader)
59
  {
60
  return \Closure::bind(function () use ($loader) {
61
- $loader->prefixLengthsPsr4 = ComposerStaticInitd03a356e186fc71400ee55c062bcfeb3::$prefixLengthsPsr4;
62
- $loader->prefixDirsPsr4 = ComposerStaticInitd03a356e186fc71400ee55c062bcfeb3::$prefixDirsPsr4;
63
- $loader->classMap = ComposerStaticInitd03a356e186fc71400ee55c062bcfeb3::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd
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 = ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd::$prefixLengthsPsr4;
62
+ $loader->prefixDirsPsr4 = ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd::$prefixDirsPsr4;
63
+ $loader->classMap = ComposerStaticInita5211c3c96f5ea517f3dc157640be1cd::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
vendor/composer/installed.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/templates-patterns-collection',
4
- 'pretty_version' => '1.1.27',
5
- 'version' => '1.1.27.0',
6
  'reference' => NULL,
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
@@ -11,8 +11,8 @@
11
  ),
12
  'versions' => array(
13
  'codeinwp/templates-patterns-collection' => array(
14
- 'pretty_version' => '1.1.27',
15
- 'version' => '1.1.27.0',
16
  'reference' => NULL,
17
  'type' => 'library',
18
  'install_path' => __DIR__ . '/../../',
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/templates-patterns-collection',
4
+ 'pretty_version' => '1.1.28',
5
+ 'version' => '1.1.28.0',
6
  'reference' => NULL,
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
11
  ),
12
  'versions' => array(
13
  'codeinwp/templates-patterns-collection' => array(
14
+ 'pretty_version' => '1.1.28',
15
+ 'version' => '1.1.28.0',
16
  'reference' => NULL,
17
  'type' => 'library',
18
  'install_path' => __DIR__ . '/../../',