Cloud Templates & Patterns collection - Version 1.1.15

Version Description

Download this release

Release Info

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

Code changes from version 1.1.14 to 1.1.15

CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  ##### [Version 1.1.14](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.13...v1.1.14) (2021-07-05)
2
 
3
  - Allow Page Templates Support
1
+ ##### [Version 1.1.15](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.14...v1.1.15) (2021-08-03)
2
+
3
+ - Add filter for imported theme mods
4
+ - Fix dashboard notice on WordPress 5.8
5
+ - Fix error when refreshing the templates page with the page templates tab focused
6
+ - UX improvements
7
+
8
  ##### [Version 1.1.14](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.13...v1.1.14) (2021-07-05)
9
 
10
  - Allow Page Templates Support
README.md CHANGED
@@ -39,6 +39,16 @@ Yes, you can. You can either chose to import one template or the entire starter
39
 
40
  ## Changelog ##
41
 
 
 
 
 
 
 
 
 
 
 
42
  ##### [Version 1.1.14](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.13...v1.1.14) (2021-07-05)
43
 
44
  - Allow Page Templates Support
39
 
40
  ## Changelog ##
41
 
42
+ ##### [Version 1.1.15](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.14...v1.1.15) (2021-08-03)
43
+
44
+ - Add filter for imported theme mods
45
+ - Fix dashboard notice on WordPress 5.8
46
+ - Fix error when refreshing the templates page with the page templates tab focused
47
+ - UX improvements
48
+
49
+
50
+
51
+
52
  ##### [Version 1.1.14](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.13...v1.1.14) (2021-07-05)
53
 
54
  - Allow Page Templates Support
assets/build/app.asset.php DELETED
@@ -1 +0,0 @@
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' => '441e987a4e4fa52caf044111dc2be02b');
 
assets/build/app.js DELETED
@@ -1,10 +0,0 @@
1
- (window.webpackJsonp_templates_patterns_collection=window.webpackJsonp_templates_patterns_collection||[]).push([[1],{21: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([33,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(22),a=n(23),c=n(16),o=n(24);e.exports=function(e,t){return r(e)||a(e,t)||c(e,t)||o()}},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.primitives},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(e,t,n,r,a,c,o){try{var i=e[c](o),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(30),a=n(31),c=n(32);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(25),a=n(26),c=n(16),o=n(27);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(28),n(29))},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,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 M=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.getFn,a=void 0===r?C.getFn:r;t(this,e),this.norm=T(3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}return r(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,b(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();b(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(g(e)&&!O(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){var n=this,r={i:t,$:{}};this.keys.forEach((function(t,a){var c=n.getFn(e,t.path);if(g(c))if(d(c))!function(){for(var e=[],t=[{nestedArrIndex:-1,value:c}];t.length;){var o=t.pop(),i=o.nestedArrIndex,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 x(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,a=void 0===r?C.getFn:r,c=new M({getFn:a});return c.setKeys(e.map(w)),c.setSources(t),c.create(),c}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,a=t.currentLocation,c=void 0===a?0:a,o=t.expectedLocation,i=void 0===o?0:o,s=t.distance,l=void 0===s?C.distance:s,u=t.ignoreLocation,m=void 0===u?C.ignoreLocation:u,p=r/e.length;if(m)return p;var d=Math.abs(i-c);return l?p+d/l:d?1:p}function D(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.minMatchCharLength,n=[],r=-1,a=-1,c=0,o=e.length;c<o;c+=1){var i=e[c];i&&-1===r?r=c:i||-1===r||((a=c-1)-r+1>=t&&n.push([r,a]),r=-1)}return e[c-1]&&c-r>=t&&n.push([r,c-1]),n}function I(e){for(var t={},n=0,r=e.length;n<r;n+=1){var a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}var L=function(){function e(n){var r=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a.location,o=void 0===c?C.location:c,i=a.threshold,s=void 0===i?C.threshold:i,l=a.distance,u=void 0===l?C.distance:l,m=a.includeMatches,p=void 0===m?C.includeMatches:m,d=a.findAllMatches,b=void 0===d?C.findAllMatches:d,f=a.minMatchCharLength,h=void 0===f?C.minMatchCharLength:f,g=a.isCaseSensitive,O=void 0===g?C.isCaseSensitive:g,v=a.ignoreLocation,j=void 0===v?C.ignoreLocation:v;if(t(this,e),this.options={location:o,threshold:s,distance:u,includeMatches:p,findAllMatches:b,minMatchCharLength:h,isCaseSensitive:O,ignoreLocation:j},this.pattern=O?n:n.toLowerCase(),this.chunks=[],this.pattern.length){var y=function(e,t){r.chunks.push({pattern:e,alphabet:I(e),startIndex:t})},E=this.pattern.length;if(E>32){for(var _=0,w=E%32,S=E-w;_<S;)y(this.pattern.substr(_,32),_),_+=32;if(w){var k=E-32;y(this.pattern.substr(k),k)}}else y(this.pattern,0)}}return r(e,[{key:"searchIn",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var a={isMatch:!0,score:0};return r&&(a.indices=[[0,e.length-1]]),a}var c=this.options,o=c.location,i=c.distance,s=c.threshold,l=c.findAllMatches,u=c.minMatchCharLength,p=c.ignoreLocation,d=[],b=0,f=!1;this.chunks.forEach((function(t){var n=t.pattern,a=t.alphabet,c=t.startIndex,h=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.location,c=void 0===a?C.location:a,o=r.distance,i=void 0===o?C.distance:o,s=r.threshold,l=void 0===s?C.threshold:s,u=r.findAllMatches,m=void 0===u?C.findAllMatches:u,p=r.minMatchCharLength,d=void 0===p?C.minMatchCharLength:p,b=r.includeMatches,f=void 0===b?C.includeMatches:b,h=r.ignoreLocation,g=void 0===h?C.ignoreLocation:h;if(t.length>32)throw new Error(y(32));for(var O,v=t.length,j=e.length,E=Math.max(0,Math.min(c,j)),_=l,w=E,S=d>1||f,k=S?Array(j):[];(O=e.indexOf(t,w))>-1;){var N=P(t,{currentLocation:O,expectedLocation:E,distance:i,ignoreLocation:g});if(_=Math.min(N,_),w=O+v,S)for(var T=0;T<v;)k[O+T]=1,T+=1}w=-1;for(var M=[],x=1,I=v+j,L=1<<v-1,A=0;A<v;A+=1){for(var B=0,R=I;B<R;){var F=P(t,{errors:A,currentLocation:E+R,expectedLocation:E,distance:i,ignoreLocation:g});F<=_?B=R:I=R,R=Math.floor((I-B)/2+B)}I=R;var z=Math.max(1,E-R+1),U=m?j:Math.min(E+R,j)+v,V=Array(U+2);V[U+1]=(1<<A)-1;for(var $=U;$>=z;$-=1){var H=$-1,G=n[e.charAt(H)];if(S&&(k[H]=+!!G),V[$]=(V[$+1]<<1|1)&G,A&&(V[$]|=(M[$+1]|M[$])<<1|1|M[$+1]),V[$]&L&&(x=P(t,{errors:A,currentLocation:H,expectedLocation:E,distance:i,ignoreLocation:g}))<=_){if(_=x,(w=H)<=E)break;z=Math.max(1,2*E-w)}}var q=P(t,{errors:A+1,currentLocation:E,expectedLocation:E,distance:i,ignoreLocation:g});if(q>_)break;M=V}var W={isMatch:w>=0,score:Math.max(.001,x)};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}(),A=function(){function e(n){t(this,e),this.pattern=n}return r(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return B(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return B(e,this.singleRegex)}}]),e}();function B(e,t){var n=e.match(t);return n?n[1]:null}var R=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),a}(A),F=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),a}(A),z=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),a}(A),U=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),a}(A),V=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),a}(A),$=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),a}(A),H=function(e){i(a,e);var n=u(a);function a(e){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=c.location,i=void 0===o?C.location:o,s=c.threshold,l=void 0===s?C.threshold:s,u=c.distance,m=void 0===u?C.distance:u,p=c.includeMatches,d=void 0===p?C.includeMatches:p,b=c.findAllMatches,f=void 0===b?C.findAllMatches:b,h=c.minMatchCharLength,g=void 0===h?C.minMatchCharLength:h,O=c.isCaseSensitive,v=void 0===O?C.isCaseSensitive:O,j=c.ignoreLocation,y=void 0===j?C.ignoreLocation:j;return t(this,a),(r=n.call(this,e))._bitapSearch=new L(e,{location:i,threshold:l,distance:m,includeMatches:d,findAllMatches:f,minMatchCharLength:g,isCaseSensitive:v,ignoreLocation:y}),r}return r(a,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),a}(A),G=function(e){i(a,e);var n=u(a);function a(e){return t(this,a),n.call(this,e)}return r(a,[{key:"search",value:function(e){for(var t,n=0,r=[],a=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+a,r.push([t,n-1]);var c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),a}(A),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 L(e,t)}var ee="$and",te="$path",ne=function(e){return!(!e[ee]&&!e.$or)},re=function(e){return!!e[te]},ae=function(e){return!d(e)&&h(e)&&!ne(e)},ce=function(e){return a({},ee,Object.keys(e).map((function(t){return a({},t,e[t])})))};function oe(e,t){var n=t.ignoreFieldNorm,r=void 0===n?C.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,a=e.norm,c=e.score,o=n?n.weight:null;t*=Math.pow(0===c&&o?Number.EPSILON:c,(o||1)*(r?1:a))})),e.score=t}))}function ie(e,t){var n=e.matches;t.matches=[],g(n)&&n.forEach((function(e){if(g(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function se(e,t){t.score=e.score}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,a=void 0===r?C.includeMatches:r,c=n.includeScore,o=void 0===c?C.includeScore:c,i=[];return a&&i.push(ie),o&&i.push(se),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return i.length&&i.forEach((function(t){t(e,r)})),r}))}var ue=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;t(this,e),this.options=o({},C,{},r),this.options.useExtendedSearch,this._keyStore=new _(this.options.keys),this.setCollection(n,a)}return r(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof M))throw new Error("Incorrect 'index' type");this._myIndex=t||x(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(e){g(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){var a=this._docs[n];e(a,n)&&(this.removeAt(n),n-=1,r-=1,t.push(a))}return t}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,a=this.options,c=a.includeMatches,o=a.includeScore,i=a.shouldSort,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=x,ue.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?C.getFn:n,a=e.keys,c=e.records,o=new M({getFn:r});return o.setKeys(a),o.setIndexRecords(c),o},ue.config=C,function(){Z.push.apply(Z,arguments)}(K),ue},e.exports=r()},,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,c=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw c}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(17);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=window.React},function(e,t){e.exports=window.ReactDOM},function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function c(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],c(n),c(r))}function o(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=c(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=a.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=a.exec(e)}t["%C2"]="�";for(var c=Object.keys(t),i=0;i<c.length;i++){var 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(21),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=n(4),h=n(6),g=n.n(h),O=n(8),v=n(3),j=n.n(v),y=n(2),E=n(1),_=n(7),w=n.n(_),S=n(10),k=n.n(S),C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return T(e,n,t)},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return T(e,t,{},"GET",n)},T=function(){var e=k()(w.a.mark((function e(t){var n,r,a,c,o,i=arguments;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],r=i.length>2&&void 0!==i[2]?i[2]:{},a=i.length>3&&void 0!==i[3]?i[3]:"POST",c=!(i.length>4&&void 0!==i[4])||i[4],o={method:a,headers:{Accept:"application/json","Content-Type":"application/json"}},c&&(o.headers["x-wp-nonce"]=tiobDash.nonce),"POST"===a&&(o.body=JSON.stringify(r)),e.next=9,fetch(t,o).then((function(e){return n?e:e.json()}));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P,D=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getSingleImport;return{themeData:(0,t.getThemeAction)()||!1,singleImport:n()}})),Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setImportModalStatus,r=t.setInstallModalStatus,a=t.setThemeAction,c=t.setTemplateModal;return{setImportModal:function(e){return n(e)},setInstallModal:function(e){return r(e)},setThemeAction:function(e){return a(e)},showTemplateModal:function(){return c(!0)}}})))((function(e){var t=e.setImportModal,n=e.setInstallModal,a=e.themeData,c=e.setThemeAction,o=e.singleImport,i=e.showTemplateModal,s=a.action,l=a.slug,u=a.nonce,m=tiobDash,p=m.themesURL,d=m.brandedTheme,b=Object(r.useState)(!1),f=j()(b,2),h=f[0],g=f[1],O=Object(r.useState)(null),v=j()(O,2),_=v[0],w=v[1],S=function(){n(!1)},k=function(e){g(!1),w(Object(E.sprintf)(// translators: %s: Error message.
2
- Object(E.__)("An error has ocurred: %s","templates-patterns-collection"),e))},C=function(){g("activating");var e="".concat(p,"?action=activate&stylesheet=").concat(l,"&_wpnonce=").concat(u);N(e,!0).then((function(e){return 200!==e.status?(k(Object(E.__)("Could not activate theme.","templates-patterns-collection")),g(!1),!1):(g(!1),n(!1),c(!1),o?(i(),!1):void t(!0))}))};return Object(r.createElement)(y.Modal,{className:"ob-import-modal install-modal",title:Object(E.__)("Install and Activate Neve","templates-patterns-collection"),onRequestClose:S,shouldCloseOnClickOutside:!h,isDismissible:!h},Object(r.createElement)("div",{className:"modal-body",style:{textAlign:"center"}},!d&&Object(r.createElement)("img",{style:{width:75},src:"".concat(tiobDash.assets,"/img/logo.svg"),alt:Object(E.__)("Logo","templates-patterns-collection")}),_&&Object(r.createElement)("div",{className:"well error",style:{margin:"20px 0"}},_),Object(r.createElement)("p",{style:{lineHeight:1.6,fontSize:"15px"}},Object(E.__)("In order to import the starter site, Neve theme has to be installed and activated. Click the button below to install and activate Neve","templates-patterns-collection"))),Object(r.createElement)("div",{className:"modal-footer",style:{justifyContent:"center"}},Object(r.createElement)("div",{className:"actions",style:{display:"flex"}},!_&&Object(r.createElement)(y.Button,{dismiss:_,isPrimary:!0,disabled:h,className:h&&"is-loading",icon:h&&"update",onClick:"install"===s?function(){g("installing"),wp.updates.installTheme({slug:"neve",success:function(){c(x(x({},a),{},{action:"activate"})),C()},error:function(e){c(x(x({},a),{},{action:"activate"})),k(e.errorMessage||Object(E.__)("Could not install theme.","templates-patterns-collection"))}})}:C},h&&("installing"===h?Object(E.__)("Installing"):Object(E.__)("Activating")),!h&&("install"===s?Object(E.__)("Install and Activate","templates-patterns-collection"):Object(E.__)("Activate","templates-patterns-collection"))),Object(r.createElement)(y.Button,{style:{marginLeft:30},isSecondary:!0,disabled:h,onClick:S},Object(E.__)("Close","templates-patterns-collection")))))})),I=tiobDash.onboarding,L=function(e){return C(I.root+"/install_plugins",e)},A=function(){var e=k()(w.a.mark((function e(t){var n;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},t.forEach((function(e){"elementor"===e.template_type?n.elementor=!0:"beaver"===e.template_type&&(n["beaver-builder-lite-version"]=!0)})),!(Object.keys(n).length>0)){e.next=11;break}return e.prev=3,e.next=6,L(n);case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",error);case 11:return e.abrupt("return",C(I.root+"/import_single_templates",t));case 12:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t){return e.apply(this,arguments)}}(),B=function(e){var t=e.data,n=e.externalInstalled,a=t.external_plugins||null,c=g()(["well"]);return Object(r.createElement)("div",{className:c},a&&!n&&Object(r.createElement)("h3",{style:{marginTop:15}},Object(r.createElement)(y.Dashicon,{icon:"info"}),Object(r.createElement)("span",null,Object(E.__)("To import this demo you have to install the following plugins","neve"))),Object(r.createElement)("ul",null,a&&!n?a.map((function(e,t){return Object(r.createElement)("li",{key:t},Object(r.createElement)(y.Button,{isLink:!0,href:e.author_url},e.name))})):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("li",null,Object(E.__)("We recommend you backup your website content before attempting a full site import.","neve")),Object(r.createElement)("li",null,Object(E.__)("Some of the demo images will not be imported and will be replaced by placeholder images.","neve")))))},R=function(e){var t=e.message,n=e.code;return Object(r.createElement)("div",{className:"well error"},t&&Object(r.createElement)("h3",null,Object(r.createElement)(y.Dashicon,{icon:"warning"}),Object(r.createElement)("span",null,t)),Object(r.createElement)("ul",null,Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.troubleshooting}}),Object(r.createElement)("li",{dangerouslySetInnerHTML:{__html:tiobDash.onboarding.i18n.support}}),n&&Object(r.createElement)("li",null,Object(E.__)("Error code","templates-patterns-collection"),":"," ",Object(r.createElement)("code",null,n)),Object(r.createElement)("li",null,Object(E.__)("Error log","templates-patterns-collection"),":"," ",Object(r.createElement)(y.Button,{isLink:!0,href:tiobDash.onboarding.logUrl},tiobDash.onboarding.logUrl,Object(r.createElement)(y.Dashicon,{icon:"external"})))))},F=function(e){var t=e.data,n=function(e){return console.log(e)},a=Object(r.useState)(!1),c=j()(a,2),o=c[0],i=c[1],s=Object(r.useState)(!1),l=j()(s,2),u=l[0],m=l[1],p=Object(r.useState)(!1),d=j()(p,2),b=d[0],f=d[1],h=Object(r.useState)(null),g=j()(h,2),O=g[0],v=g[1],_=Object(r.useState)(null),w=j()(_,2),S=w[0],k=w[1];if(o)return null;var N=function(){"done"===b&&i(!0),m(!1),v(null),f(!1)};return Object(r.createElement)("div",{className:"ob-migration"},u&&Object(r.createElement)(y.Modal,{className:"ob-import-modal migration",title:Object(E.__)("Migrate","templates-patterns-collection")+" "+t.theme_name,onRequestClose:N,shouldCloseOnClickOutside:!b,isDismissible:!b},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},O&&Object(r.createElement)(R,{message:O.message||null,code:O.code||null}),!1===b&&!O&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(B,{data:t}),t.mandatory_plugins&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("h3",null,Object(E.__)("The following plugins will be installed","neve"),":"),Object(r.createElement)("ul",null,Object.keys(t.mandatory_plugins).map((function(e,n){return Object(r.createElement)("li",{key:n},"-"," ",t.mandatory_plugins[e])}))))),"done"===b&&Object(r.createElement)("p",{className:"import-result"},Object(E.__)("Content was successfully imported. Enjoy your new site!","neve")),!0===b&&Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(y.Dashicon,{icon:"update",size:50}),Object(r.createElement)("h3",null,Object(E.__)("Migrating","templates-patterns-collection"),"..."))),(!b||"done"===b)&&Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(y.Button,{isSecondary:"done"!==b,isLink:"done"===b,className:"done"===b?"close":null,onClick:N},"done"===b?Object(E.__)("Close","templates-patterns-collection"):Object(E.__)("Cancel","templates-patterns-collection")),O||"done"===b?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{style:{marginLeft:20},isSecondary:!0,href:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(S,"&action=elementor")},Object(E.__)("Edit Content","templates-patterns-collection")),Object(r.createElement)(y.Button,{isPrimary:!0,href:tiobDash.onboarding.homeUrl},Object(E.__)("View Website","templates-patterns-collection"))):Object(r.createElement)(y.Button,{isPrimary:!0,onClick:function(){var e;e=Object.keys(t.mandatory_plugins).reduce((function(e,t){return e[t]=!0,e}),{}),L(e).then((function(e){if(f(!0),!e.success)return v({code:e.data||null,message:Object(E.__)("Something went wrong while installing the necessary plugins.","neve")}),f(!1),!1;var n=t.template,r=t.template_name;C(tiobDash.onboarding.root+"/migrate_frontpage",{template:n,template_name:r}).then((function(e){if(!e.success)return v({code:e.data||null,message:Object(E.__)("Something went wrong while importing the website content.","neve")}),f(!1),!1;k(e.data),f("done")}))}))}},Object(E.__)("Start Migration","templates-patterns-collection"))))),Object(r.createElement)("h2",null,t.heading),Object(r.createElement)("p",null,t.description),Object(r.createElement)("div",{className:"card starter-site-card",style:{maxWidth:330}},Object(r.createElement)("div",{className:"top"},t.screenshot&&Object(r.createElement)("div",{className:"image"},Object(r.createElement)("img",{src:t.screenshot,alt:t.theme_name}))),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},t.theme_name))),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(y.Button,{isPrimary:!0,onClick:function(){return m(!0),!1}},Object(E.__)("Migrate","templates-patterns-collection")+" "+t.theme_name),Object(r.createElement)(y.Button,{isSecondary:!0,onClick:function(){C(tiobDash.onboarding.root+"/dismiss_migration",{theme_mod:t.theme_mod}).then((function(e){if(!e.success)return n(Object(E.__)("Something went wrong. Please reload the page and try again.","neve")),!1;n(Object(E.__)("Dismissed","templates-patterns-collection")),i(!0)}))}},Object(E.__)("Dismiss","templates-patterns-collection"))))},z=n(12),U=n.n(z),V=n(15),$=n.n(V),H=n(5),G=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),q=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),W=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Q=n(13),Y=n.n(Q),J=n(11),K=new Uint8Array(16);function Z(){if(!P&&!(P="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return P(K)}for(var X=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ee=function(e){return"string"==typeof e&&X.test(e)},te=[],ne=0;ne<256;++ne)te.push((ne+256).toString(16).substr(1));var re=function(e,t,n){var r=(e=e||{}).random||(e.rng||Z)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(te[e[t+0]]+te[e[t+1]]+te[e[t+2]]+te[e[t+3]]+"-"+te[e[t+4]]+te[e[t+5]]+"-"+te[e[t+6]]+te[e[t+7]]+"-"+te[e[t+8]]+te[e[t+9]]+"-"+te[e[t+10]]+te[e[t+11]]+te[e[t+12]]+te[e[t+13]]+te[e[t+14]]+te[e[t+15]]).toLowerCase();if(!ee(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oe=function(){var e=k()(w.a.mark((function e(){var t,n,r,a,c,o,i=arguments;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]&&i[0],n=i.length>1&&void 0!==i[1]?i[1]:{},r=Object(J.stringifyUrl)({url:tiobDash.endpoint+(t?"page-templates":"templates"),query:ce(ce({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),n)}),e.prev=3,e.next=6,Y()({url:r,method:"GET",parse:!1});case 6:if(!(a=e.sent).ok){e.next=15;break}return e.next=10,a.json();case 10:if(!(c=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:c.message});case 13:return o=a.headers.get("x-wp-totalpages"),e.abrupt("return",{success:!0,total:o,templates:c});case 15:e.next=21;break;case 17:if(e.prev=17,e.t0=e.catch(3),!e.t0.message){e.next=21;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 21:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(){return e.apply(this,arguments)}}(),ie=function(){var e=k()(w.a.mark((function e(t,n){var r;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(J.stringifyUrl)({url:tiobDash.endpoint+"templates/"+t,query:ce(ce({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params),{},{template_id:t,template_name:n})}),e.prev=1,e.next=4,Y()({url:r,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",re()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}(),se=function(){var e=k()(w.a.mark((function e(t){var n;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(J.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t),query:ce({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},tiobDash.params)}),e.prev=1,e.next=4,Y()({url:n,method:"POST"});case 4:return localStorage.setItem("tpcCacheBuster",re()),e.abrupt("return",{success:!0});case 8:if(e.prev=8,e.t0=e.catch(1),!e.t0.message){e.next=12;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),le=function(){var e=k()(w.a.mark((function e(t){var n,r,a;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(J.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/bulk-import"),query:ce({templates:t,cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),e.prev=1,e.next=4,Y()({url:n,method:"GET",parse:!1});case 4:if(!(r=e.sent).ok){e.next=14;break}if(!r.message){e.next=8;break}return e.abrupt("return",{success:!1,message:r.message});case 8:return e.next=10,r.json();case 10:if(!(a=e.sent).message){e.next=13;break}return e.abrupt("return",{success:!1,message:a.message});case 13:return e.abrupt("return",{success:!0,templates:a});case 14:e.next=20;break;case 16:if(e.prev=16,e.t0=e.catch(1),!e.t0.message){e.next=20;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 20:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),ue=function(){var e=k()(w.a.mark((function e(t){var n,r,a;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(J.stringifyUrl)({url:"".concat(tiobDash.endpoint,"templates/").concat(t,"/import"),query:ce({cache:localStorage.getItem("tpcCacheBuster")},tiobDash.params)}),r={},e.prev=2,e.next=5,Y()({url:n,method:"GET",parse:!1});case 5:if(!(a=e.sent).ok){e.next=12;break}return e.next=9,a.json();case 9:if(!(r=e.sent).message){e.next=12;break}return e.abrupt("return",{success:!1,message:r.message});case 12:e.next=18;break;case 14:if(e.prev=14,e.t0=e.catch(2),!e.t0.message){e.next=18;break}return e.abrupt("return",{success:!1,message:e.t0.message});case 18:return e.abrupt("return",{success:!0,templates:[r]});case 19:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(t){return e.apply(this,arguments)}}(),me=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(H.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"})),pe=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),de=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(H.Path,{d:"M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z"})),be=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),fe=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oe=function(e){var t=e.sortingOrder,n=e.item,a=e.loadTemplates,c=e.userTemplate,o=e.grid,i=e.onPreview,s=e.onImport,l=e.upsell,u=void 0!==l&&l,m=Object(r.useState)(!1),p=j()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=j()(f,2),O=h[0],v=h[1],_=Object(r.useState)(n.template_name),S=j()(_,2),C=S[0],N=S[1],T=function(){var e=k()(w.a.mark((function e(t){var r,a;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),r=n.template_id,a=n.template_name,b("updating"),e.next=5,ie(r,C||a).then((function(e){e.success&&(v(!O),b(!1))}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=k()(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm(Object(E.__)("Are you sure you want to delete this template?"))){e.next=2;break}return e.abrupt("return",!1);case 2:b("deleteing"),se(n.template_id).then((function(e){e.success&&(a(ge({page:0},t)),b(!1))}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){i(n.link)},P=g()("actions",{"no-controls":!c});if(o){var D={backgroundImage:"url(".concat(n.template_thumbnail,")")};return Object(r.createElement)("div",{key:n.template_id,className:"table-grid"},Object(r.createElement)("div",{style:D,className:g()("grid-preview",{"is-loading":O||!1!==d})},Object(r.createElement)("div",{className:"preview-actions"},!c&&n.link&&Object(r.createElement)(y.Button,{isSecondary:!0,disabled:!1!==d,onClick:x},Object(E.__)("Preview")),!u&&Object(r.createElement)(y.Button,{isPrimary:!0,isBusy:"importing"===d,disabled:!1!==d,onClick:s},Object(E.__)("Import")),c&&Object(r.createElement)("div",{className:"preview-controls"},!n.link&&Object(r.createElement)(y.Button,{label:Object(E.__)("Edit"),icon:"updating"===d?me:pe,disabled:O||!1!==d,className:g()({"is-loading":"updating"===d}),onClick:function(){return v(!O)}}),Object(r.createElement)(y.Button,{label:Object(E.__)("Delete"),icon:"deleteing"===d?me:de,disabled:!1!==d,className:g()({"is-loading":"deleteing"===d}),onClick:M})))),Object(r.createElement)("div",{className:"card-footer"},O?Object(r.createElement)("form",{onSubmit:T},Object(r.createElement)(y.TextControl,{value:C,onChange:N}),Object(r.createElement)(y.Button,{type:"submit",label:Object(E.__)("Update"),icon:"updating"===d?me:be,disabled:!1!==d,className:g()({"is-loading":"updating"===d})})):Object(r.createElement)("p",null,C)))}return Object(r.createElement)("div",{key:n.template_id,className:"table-row"},Object(r.createElement)("div",{className:"title"},Object(r.createElement)(y.Icon,{icon:fe}),O?Object(r.createElement)(y.TextControl,{label:Object(E.__)("Template Name"),hideLabelFromVision:!0,value:C,onChange:N}):C),c&&Object(r.createElement)("div",{className:"controls"},n.link?Object(r.createElement)(y.Tooltip,{text:Object(E.__)("This template is synced to a page.")},Object(r.createElement)(y.Button,{label:Object(E.__)("Edit"),icon:pe,disabled:!0},Object(E.__)("Edit"))):Object(r.createElement)(y.Button,{label:O?Object(E.__)("Update"):Object(E.__)("Edit"),icon:O?"updating"===d?me:be:pe,disabled:!1!==d,className:g()({"is-loading":"updating"===d}),onClick:function(){return O?T:v(!O)}},O?Object(E.__)("Update"):Object(E.__)("Edit")),Object(r.createElement)(y.Button,{label:Object(E.__)("Delete"),icon:"deleteing"===d?me:de,disabled:!1!==d,className:g()({"is-loading":"deleteing"===d}),onClick:M},"deleting"===d?Object(E.__)("Deleting")+"...":Object(E.__)("Delete"))),Object(r.createElement)("div",{className:P},!c&&n.link&&Object(r.createElement)(y.Button,{isSecondary:!0,disabled:!1!==d,onClick:x},Object(E.__)("Preview")),Object(r.createElement)(y.Button,{isPrimary:!0,isBusy:"importing"===d,onClick:s,disabled:!1!==d},Object(E.__)("Import"))))},ve=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"})),je=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M13.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"})),ye=Object(r.createElement)(H.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),Ee=Object(r.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(H.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"})),_e=n(18);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 Se(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 ke,Ce={date:Object(E.__)("Date"),template_name:Object(E.__)("Name"),modified:Object(E.__)("Last Modified")},Ne=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(E.__)("Sort by")),Object(r.createElement)("div",{className:"sorting-filter"},Object.keys(Ce).map((function(e){return Object(r.createElement)(y.Button,{key:e,className:g()({"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(Se({},t)),u(Se({},t))}},Ce[e])})))),Object(r.createElement)("div",{className:"display-filters"},Object(r.createElement)("div",{className:"display-filters__search"},Object(r.createElement)("input",{placeholder:Object(E.__)("Search"),value:c,onChange:function(e){return o(e.target.value)},onKeyDown:function(e){e.keyCode===_e.ENTER&&i()}}),a?Object(r.createElement)(y.Button,{label:Object(E.__)("Clear search query"),icon:ve,onClick:function(){o(""),i("")}}):Object(r.createElement)(y.Button,{label:Object(E.__)("Search"),icon:je,onClick:function(){return i()}})),Object(r.createElement)(y.Button,{label:Object(E.__)("List View"),icon:ye,onClick:function(){return n(!1)},isPressed:!t}),Object(r.createElement)(y.Button,{label:Object(E.__)("Grid View"),icon:Ee,onClick:function(){return n(!0)},isPressed:t}))))},Te=function(e){var t=e.title,n=e.leftButtons,a=e.rightButtons,c=e.heading,o=e.previewUrl,i=Object(J.stringifyUrl)({url:o,query:{tpcpreview:"yes"}}),s=t||Object(E.__)("Preview");return Object(r.createElement)("div",{className:"ob-preview single-templates"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{title:s,src:i,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(y.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},n&&Object(r.createElement)("div",{className:"navigator"},n),c&&Object(r.createElement)("h2",{className:"heading"},c),a&&Object(r.createElement)("div",{className:"actions"},a)))},Me={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:"ÿ"},xe={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 Pe(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function De(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Ie(e){return function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Pe(e)}function Le(e){var t,n="&"+e+";";return(ke=ke||document.createElement("i")).innerHTML=n,(59!==(t=ke.textContent).charCodeAt(t.length-1)||"semi"===e)&&t!==n&&t}var Ae={}.hasOwnProperty,Be=String.fromCharCode,Re=[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 Fe(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 ze(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 Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ve=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getThemeAction,r=t.getCurrentSite;return{themeStatus:n().action||!1,siteData:r()}})),Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setTemplateModal,r=t.setImportModalStatus,a=t.setInstallModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setInstallModal:function(e){return a(e)}}})))((function(e){var t=e.templatesData,n=e.cancel,a=e.siteData,c=e.themeStatus,o=e.setInstallModal,i=e.setModal,s=e.isUserTemplate,l=void 0!==s&&s,u=e.generalTemplates,m=void 0!==u&&u,p=Object(r.useState)(!0),d=j()(p,2),b=d[0],f=d[1],h=Object(r.useState)([]),O=j()(h,2),v=O[0],_=O[1],w=Object(r.useState)(!1),S=j()(w,2),k=S[0],C=S[1],N=Object(r.useState)([]),T=j()(N,2),M=T[0],x=T[1],P=Object(r.useState)(!1),D=j()(P,2),I=D[0],L=D[1],B=1===t.length;Object(r.useEffect)((function(){l&&B?ue(t[0].template_id).then((function(e){e.success||(e.message?L(e.message):L(!0),f(!1)),_(e.templates),f(!1)})):le(t.map((function(e){return e.template_id}))).then((function(e){if(!e.success)return e.message?L(e.message):L(!0),f(!1),!1;_(e.templates),f(!1)}))}),[t]);var R=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",{className:"is-loading",style:{height:30,marginBottom:30,width:"70%"}}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading"}),Object(r.createElement)("p",{className:"description is-loading",style:{width:"40%"}}))),Object(r.createElement)("div",{className:"modal-footer",style:{marginTop:50}},Object(r.createElement)("span",{className:"is-loading link"}),Object(r.createElement)("span",{className:"is-loading button",style:{width:"150px",marginLeft:"auto"}})))},F=function(e){if(e.preventDefault(),c)return o(!0),!1;i(!0)},z=function(){C(!0);var e=t.map((function(e,t){return Ue(Ue({},e),v[t])}));try{A(e).then((function(e){if(!e.success)return console.log(e.message),!1;x(e.pages),C("done")}))}catch(e){console.log(I)}},U=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(E.__)("An error occurred!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},!0===I?Object(E.__)("Please refresh the page and try again."):I))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",onClick:function(){L(!1),n()}},Object(E.__)("Close"))))};return Object(r.createElement)(y.Modal,{className:g()(["ob-import-modal",{fetching:b}]),onRequestClose:n,shouldCloseOnClickOutside:!k&&!b,isDismissible:!k&&!b},"done"===k?Object(r.createElement)((function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(E.__)("Import done!","templates-patterns-collection")),Object(r.createElement)("p",{className:"description"},B?Object(E.__)("Template was successfully imported!","templates-patterns-collection"):Object(E.__)("Templates were successfully imported!","templates-patterns-collection"))),M&&Object(r.createElement)("ul",{className:"modal-toggles"},M.map((function(e,t){return Object(r.createElement)("li",{className:"option-row",key:t},Object(r.createElement)(y.Icon,{icon:fe,className:"active"}),Object(r.createElement)("span",null,function(e,t={}){var n,r,a,c,o,i,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="",M=[];t.position&&("start"in t.position||"indent"in t.position?(r=t.position.indent,n=t.position.start):n=t.position),a=n&&n.line||1,c=n&&n.column||1,y=x(),C--;for(;++C<=e.length;)if(10===u&&(c=r&&r[N]||1),38===(u=e.charCodeAt(C))){if(9===(d=e.charCodeAt(C+1))||10===d||12===d||32===d||38===d||60===d||Number.isNaN(d)||k&&d===k){T+=Be(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?Ie:"decimal"===v?Pe:De,w--;++w<=e.length&&j(d=e.charCodeAt(w));)l+=Be(d),"named"===v&&Ae.call(Me,l)&&(o=l,h=Me[l]);(s=59===e.charCodeAt(w))&&(w++,(i="named"===v&&Le(l))&&(o=l,h=i)),_=1+w-O,(s||!1!==t.nonTerminated)&&(l?"named"===v?(s&&!h?P(5,1):(o!==l&&(_=1+(w=g+o.length)-g,s=!1),s||(b=o?1:3,t.attribute?61===(d=e.charCodeAt(w))?(P(b,_),h=null):Ie(d)?h=null:P(b,_):P(b,_))),m=h):(s||P(2,_),(S=p=Number.parseInt(l,"hexadecimal"===v?16:10))>=55296&&S<=57343||S>1114111?(P(7,_),m=Be(65533)):p in xe?(P(6,_),m=xe[p]):(f="",Fe(p)&&P(6,_),p>65535&&(f+=Be((p-=65536)>>>10|55296),p=56320|1023&p),m=f+Be(p))):"named"!==v&&P(4,_)),m?(D(),y=x(),C=w-1,c+=w-O+1,M.push(m),(E=x()).offset++,t.reference&&t.reference.call(t.referenceContext,m,{start:y,end:E},e.slice(O-1,w)),y=E):(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+=Be(u),c++);return M.join("");function x(){return{line:a,column:c,offset:C+(n&&n.offset||0)}}function P(e,n){var r;t.warning&&((r=x()).column+=n,r.offset+=n,t.warning.call(t.warningContext,Re[e],r,e))}function D(){T&&(M.push(T),t.text&&t.text.call(t.textContext,T,{start:y,end:x()}),T="")}}(e.title)),Object(r.createElement)("div",{className:"actions"},Object(r.createElement)(y.Button,{isTertiary:!0,href:e.url},Object(E.__)("Visit","templates-patterns-collection")),Object(r.createElement)(y.Button,{isTertiary:!0,href:e.edit},Object(E.__)("Edit","templates-patterns-collection"))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",onClick:n},Object(E.__)("Close"))))}),null):Object(r.createElement)((function(){return b?Object(r.createElement)(R,null):I?Object(r.createElement)(U,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(E.sprintf)(B?
3
- /* translators: name of starter site */
4
- Object(E.__)("Import the %s template","templates-patterns-collection"):
5
- /* translators: name of template */
6
- Object(E.__)("Import all templates from %s","templates-patterns-collection"),B?t[0].template_name:a.title)),Object(r.createElement)("p",{className:"description"},(Object(r.createElement)("strong",null,Object(E.__)("does not")),B?Object(E.sprintf)(
7
- /* translators: %s the name of the template */
8
- Object(E.__)("The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"),t[0].template_name):Object(E.__)("All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"))))),Object(r.createElement)("div",{className:"modal-footer"},!m&&Object(r.createElement)(y.Button,{className:"import-templates",isLink:!0,disabled:k,onClick:F},Object(E.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",disabled:k,onClick:z},k?Object(E.__)("Importing")+"...":B?Object(E.__)("Import"):Object(E.__)("Import All Pages"))))}),null))}));function $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(O.compose)(Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setInstallModalStatus;return{setInstallModal:function(e){return n(e)},setTemplateModal:t.setTemplateModal}})),Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentEditor,c=t.getCurrentTab;return{templateModal:n(),themeStatus:r().action||!1,editor:a(),currentTab:c()}})))((function(e){var t=e.isGeneral,n=e.setInstallModal,a=e.setTemplateModal,o=e.templateModal,i=e.themeStatus,s=e.currentTab,l=Object(r.useState)({gutenberg:[],elementor:[]}),u=j()(l,2),m=u[0],p=u[1],d=Object(r.useState)("gutenberg"),b=j()(d,2),f=b[0],h=b[1],O=Object(r.useState)([]),v=j()(O,2),_=v[0],S=v[1],C=Object(r.useState)(t),N=j()(C,2),T=N[0],M=N[1],x=Object(r.useState)(""),P=j()(x,2),D=P[0],I=P[1],L=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),A=j()(L,2),B=A[0],R=A[1],F=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),z=j()(F,2),V=z[0],H=z[1],Q=Object(r.useState)(!1),Y=j()(Q,2),J=Y[0],K=Y[1],Z=Object(r.useState)(!1),X=j()(Z,2),ee=X[0],te=X[1],ne=Object(r.useState)(!1),re=j()(ne,2),ae=re[0],ce=re[1],ie=Object(r.useState)(""),se=j()(ie,2),le=se[0],ue=se[1],me=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),pe=j()(me,2),de=pe[0],be=pe[1];Object(r.useEffect)((function(){K(!0),I(""),R({gutenberg:0,elementor:0,beaver:0}),H({gutenberg:0,elementor:0,beaver:0}),he()}),[t,f]);var fe={gutenberg:{label:Object(E.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(E.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(E.__)("Beaver"),icon:"beaver.jpg"}},he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=He({page:B[f],per_page:12,type:f},e);t&&(n.template_site_slug="general",n.premade=!0),D&&(n.search=D),oe(t,n).then((function(e){p(He(He({},m),{},c()({},f,e.templates))),H(He(He({},V),{},c()({},f,e.total))),K(!1)}))},ge=function(){var e=k()(w.a.mark((function e(){var n,r,a=arguments;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:B[f]+1,ce(!0),R(He(He({},B),{},c()({},f,n))),r={page:n,per_page:12,type:f},t&&(r.template_site_slug="general",r.premade=!0),D&&(r.search=D),e.next=8,oe(t,r).then((function(e){p(He(He({},m),{},c()({},f,[].concat(U()(m[f]),U()(e.templates))))),H(He(He({},V),{},c()({},f,e.total)))}));case 8:ce(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ve=function(e){ue(e)},je=function(e){if(i)return n(!0),!1;S([e]),a(!0)},ye=m[f]&&m[f].findIndex((function(e){return e.link===le})),Ee=m[f]&&m[f].find((function(e){return le===e.link})),_e=g()("cloud-items",{"is-grid":T}),we=function(){return t?de.templates:de.library},Se=function(){var e=k()(w.a.mark((function e(n){var r;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:K(!0),r=He({search:D,type:f},n),t&&(r.template_site_slug="general",r.premade=!0),oe(t,r).then((function(e){p(He(He({},m),{},c()({},f,U()(e.templates)))),H(He(He({},V),{},c()({},f,e.total))),K(!1)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(r.createElement)("div",{className:_e},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(fe).map((function(e){return Object(r.createElement)("a",{key:e,href:"#",onClick:function(){h(e),te(!1)},className:g()("tab",{active:f===e})},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:window.tiobDash.assets+"img/"+fe[e].icon,alt:fe[e].label})),Object(r.createElement)("span",{className:"editor"},fe[e].label))}))),Object(r.createElement)(Ne,{currentTab:s,isGrid:T,setGrid:M,isSearch:ee,searchQuery:D,setSearchQuery:I,onSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;K(!0),te(!!e);var n=He({search:e,type:f},we());t&&(n.template_site_slug="general",n.premade=!0),oe(t,n).then((function(e){p(He(He({},m),{},c()({},f,U()(e.templates)))),H(He(He({},V),{},c()({},f,e.total))),K(!1)}))},sortingOrder:we(),setSortingOrder:function(e){return be(He(He({},de),{},t?{templates:e}:{library:e}))},changeOrder:Se}),J&&Object(r.createElement)(y.Spinner,null),!J&&(m[f]&&m[f].length>0?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"table"},m[f].map((function(e){return Object(r.createElement)(Oe,{sortingOrder:we(),onPreview:ve,userTemplate:!t,key:e.template_id,item:e,loadTemplates:he,onImport:function(){return je(e)},grid:T})}))),Object(r.createElement)($.a,{onChange:function(e){if(!e)return!1;Number(V[f])>B[f]&&ge()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),ae&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(y.Spinner,null))):Object(r.createElement)(r.Fragment,null,Object(E.__)("No templates found."))),le&&Object(r.createElement)(Te,{previewUrl:le,rightButtons:Object(r.createElement)(y.Button,{isPrimary:!0,onClick:function(){return je(Ee)}},Object(E.__)("Import Template")),heading:Ee.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:G,onClick:function(){return ue("")}}),m[f].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?q:W,onClick:function(){var e=ye-1;0===ye&&(e=m[f].length-1),ue(m[f][e].link)}}),Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?W:q,onClick:function(){var e=ye+1;ye===m[f].length-1&&(e=0),ue(m[f][e].link)}})))})),o&&_&&!J&&_.length>0&&Object(r.createElement)(Ve,{generalTemplates:!0,isUserTemplate:!t,templatesData:_}))})),qe=[Object(E.__)("Business","templates-patterns-collection"),Object(E.__)("Ecommerce","templates-patterns-collection"),Object(E.__)("Fashion","templates-patterns-collection"),Object(E.__)("Blogging","templates-patterns-collection"),Object(E.__)("Photography","templates-patterns-collection")],We={all:Object(E.__)("All Categories"),free:Object(E.__)("Free"),business:Object(E.__)("Business"),portfolio:Object(E.__)("Portfolio"),woocommerce:Object(E.__)("WooCommerce"),blog:Object(E.__)("Blog"),personal:Object(E.__)("Personal"),other:Object(E.__)("Other")},Qe={gutenberg:{icon:"gutenberg.jpg",niceName:"Gutenberg"},elementor:{icon:"elementor.jpg",niceName:"Elementor"},"beaver builder":{icon:"beaver.jpg",niceName:Object(r.createElement)(r.Fragment,null,"Beaver ",Object(r.createElement)("span",{className:"long-name"},"Builder"))},brizy:{icon:"brizy.jpg",niceName:"Brizy"},"divi builder":{icon:"divi.jpg",niceName:"Divi"},"thrive architect":{icon:"thrive.jpg",niceName:Object(r.createElement)(r.Fragment,null,"Thrive ",Object(r.createElement)("span",{className:"long-name"},"Architect"))}},Ye=function(e){var t=e.currentStep,n=e.progress,a=e.willDo,c={plugins:{label:Object(E.__)("Installing Plugins","templates-patterns-collection"),status:n.plugins,willDo:!0},content:{label:Object(E.__)("Importing Content","templates-patterns-collection"),status:n.content,willDo:a.content},customizer:{label:Object(E.__)("Importing Customizer Settings","templates-patterns-collection"),status:n.customizer,willDo:a.customizer},widgets:{label:Object(E.__)("Importing Widgets","templates-patterns-collection"),status:n.widgets,willDo:a.widgets}};return Object(r.createElement)("ul",{className:"stepper"},Object.keys(c).map((function(e,n){var a=c[e],o=a.label,i=a.status;if(!a.willDo)return null;var s=g()(["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)(y.Dashicon,{icon:l,className:t===e?"loading":""})),Object(r.createElement)("span",null,o))})))};function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ze=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentSite;return{editor:n(),siteData:r()}})),Object(f.withDispatch)((function(e,t){var n=t.siteData,r=e("neve-onboarding"),a=r.setTemplateModal,c=r.setSingleTemplateImport,o=r.setImportModalStatus;return{setModal:function(e){return o(e)},runTemplateImport:function(){c(n.slug),a(!0),o(!1)}}})))((function(e){var t=e.setModal,n=e.editor,a=e.siteData,o=e.runTemplateImport,i=Object(r.useState)({content:!0,customizer:!0,widgets:!0}),s=j()(i,2),l=s[0],u=s[1],m=Object(r.useState)(!1),p=j()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=j()(f,2),O=h[0],v=h[1],_=Object(r.useState)(!1),w=j()(_,2),S=w[0],k=w[1],T=Object(r.useState)(!1),M=j()(T,2),x=M[0],P=M[1],D=Object(r.useState)(null),A=j()(D,2),F=A[0],z=A[1],U=Object(r.useState)(null),V=j()(U,2),$=V[0],H=V[1],G=Object(r.useState)(!1),q=j()(G,2),W=q[0],Q=q[1],Y=Object(r.useState)(null),J=j()(Y,2),K=J[0],Z=J[1],X=Object(r.useState)(null),ee=j()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(null),ae=j()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(!0),se=j()(ie,2),le=se[0],ue=se[1],me=Object(r.useState)(!0),pe=j()(me,2),de=pe[0],be=pe[1],fe=Object(r.useState)(!0),he=j()(fe,2),ge=he[0],Oe=he[1],ve=tiobDash.license;function je(){if(!l.content)return console.log("[S] Content."),ye(),!1;var e;H("content"),console.log("[P] Content."),(e={contentFile:ce.content_file,source:"remote",frontPage:ce.front_page,shopPages:ce.shop_pages,demoSlug:ce.slug,editor:n},C(I.root+"/import_content",e)).then((function(e){if(!e.success)return we(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&z(e.frontpage_id),v("done"),ye()})).catch((function(e){return we(e,"content")}))}function ye(){if(!l.customizer)return console.log("[S] Customizer."),Ee(),!1;var e;H("customizer"),console.log("[P] Customizer."),(e={source_url:ce.url,theme_mods:ce.theme_mods,wp_options:ce.wp_options},C(I.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return we(e,"customizer"),!1;console.log("[D] Customizer."),k("done"),Ee()})).catch((function(e){return we(e,"customizer")}))}function Ee(){var e;l.widgets||(console.log("[S] Widgets."),_e()),H("widgets"),console.log("[P] Widgets."),(e=ce.widgets,C(I.root+"/import_widgets",e)).then((function(e){if(!e.success)return we(e,"widgets"),!1;console.log("[D] Widgets."),P("done"),_e()})).catch((function(e){return we(e,"widgets")}))}function _e(){H("done"),Q(!1)}function we(e,t){Q(!1),H(null),"plugins"===t&&v("skip"),["content","plugins"].includes(t)&&k("skip"),["content","plugins","customizer"].includes(t)&&P("skip");var n={plugins:Object(E.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection"),content:Object(E.__)("Something went wrong while importing the website content.","templates-patterns-collection"),customizer:Object(E.__)("Something went wrong while updating the customizer settings.","templates-patterns-collection"),widgets:Object(E.__)("Something went wrong while importing the widgets.","templates-patterns-collection")};switch(t){case"plugins":b("error");break;case"content":v("error");break;case"customizer":k("error");break;case"widgets":P("error")}ne(e.data?{message:n[t],code:e.data}:{message:n[t]})}Object(r.useEffect)((function(){var e=a.remote_url||a.url,t=new URL("".concat(function(e){return e.replace(/\/$/,"")}(e)+"/","wp-json/ti-demo-data/data"));t.searchParams.append("license",ve?ve.key:"free"),N(t,!0,!1).then((function(e){e.ok||(ne({message:Object(E.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_response"}),ue(!1)),e.json().then((function(e){oe(Ke(Ke({},e),a));var t=Ke({},e.mandatory_plugins||{}),n=Ke({},e.recommended_plugins||{}),r=e.default_off_recommended_plugins||[];Object.keys(t).map((function(e){t[e]=!0})),Object.keys(n).map((function(e){n[e]=!r.includes(e)})),Z(Ke(Ke({},n),t)),ue(!1)}))})).catch((function(e){ne({message:Object(E.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_catch"}),ue(!1)}))}),[]);var Se=function(){if(W)return!1;t(!1)},ke=!a.external_plugins||a.external_plugins.every((function(e){return!0===e.active})),Ce=Object.keys(l).every((function(e){return!1===l[e]})),Ne={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat(F,"&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(F,"&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(F,"&action=edit")}[n];return Object(r.createElement)(y.Modal,{className:g()(["ob-import-modal",{fetching:le}]),onRequestClose:Se,shouldCloseOnClickOutside:!W&&!le,isDismissible:!W&&!le},le?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"}),Object(r.createElement)("p",{className:"description is-loading"})),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)("div",{className:"modal-toggles components-panel"},[1,2].map((function(e){return Object(r.createElement)("div",{key:e,className:"components-panel__body options general is-opened"},Object(r.createElement)("span",{className:"title is-loading"}),Object(r.createElement)("ul",null,[1,2,3].map((function(e){return Object(r.createElement)("li",{className:"option-row",key:e},Object(r.createElement)("div",{className:"mock-icon is-loading"}),Object(r.createElement)("span",{className:"is-loading"}),Object(r.createElement)("div",{className:"toggle is-loading"}))}))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)("span",{className:"link is-loading"}),Object(r.createElement)(y.Button,{isPrimary:!0,className:"import is-loading"}))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},W||"done"===$||te?Object(r.createElement)(r.Fragment,null,te&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(R,{message:te.message||null,code:te.code||null}),Object(r.createElement)("hr",null)),null!==$&&Object(r.createElement)(Ye,{progress:{plugins:d,content:O,customizer:S,widgets:x},currentStep:$,willDo:l}),"done"===$&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("p",{className:"import-result"},Object(E.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),Object(r.createElement)("hr",null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return le?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("h1",{className:"is-loading title"}),Object(r.createElement)("p",{className:"is-loading description"})):Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(E.sprintf)(
9
- /* translators: name of starter site */
10
- Object(E.__)("Import %s as a complete site","templates-patterns-collection"),ce.title)),Object(r.createElement)("p",{className:"description"},Object(E.__)("Import the entire site including customizer options, pages, content and plugins.","templates-patterns-collection")))}),null),Object(r.createElement)((function(){return Object(r.createElement)(B,{data:ce,externalInstalled:ke})}),null),Object(r.createElement)(y.Panel,{className:"modal-toggles"},Object(r.createElement)((function(){var e={content:{title:Object(E.__)("Content","templates-patterns-collection"),icon:"admin-post"},customizer:{title:Object(E.__)("Customizer","templates-patterns-collection"),icon:"admin-customizer"},widgets:{title:Object(E.__)("Widgets","templates-patterns-collection"),icon:"admin-generic"}};return Object(r.createElement)(y.PanelBody,{onToggle:function(){Oe(!ge)},opened:ge,className:"options general",title:Object(E.__)("Import settings","templates-patterns-collection")},Object.keys(e).map((function(t,n){return Object(r.createElement)(y.PanelRow,{className:"option-row",key:n},Object(r.createElement)(y.Icon,{className:g()({active:l[t]}),icon:e[t].icon}),Object(r.createElement)("span",null,e[t].title),Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(y.ToggleControl,{checked:l[t],onChange:function(){u(Ke(Ke({},l),{},c()({},t,!l[t])))}})))})))}),null),Object(r.createElement)((function(){if(le)return null;var e=Ke(Ke({},ce.recommended_plugins||{}),ce.mandatory_plugins||{});return Object(r.createElement)(y.PanelBody,{onToggle:function(){be(!de)},opened:de,className:"options plugins",title:Object(E.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){return Object(r.createElement)(y.PanelRow,{className:"option-row",key:n},Object(r.createElement)(y.Icon,{icon:"admin-plugins",className:g()({active:K[t]})}),Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:e[t]}}),t in ce.recommended_plugins&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(y.ToggleControl,{checked:K[t],onChange:function(){Z(Ke(Ke({},K),{},c()({},t,!K[t])))}})))})))}),null)))),!W&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==$?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{className:"import-templates",isLink:!0,onClick:o},Object(E.__)("I want to import just the templates","templates-patterns-collection")),!te&&Object(r.createElement)(y.Button,{className:"import",isPrimary:!0,disabled:Ce||!ke,onClick:function(){Q(!0),function(){if(console.clear(),!K)return console.log("[S] Plugins."),je(),!1;H("plugins"),console.log("[P] Plugins."),L(K).then((function(e){if(!e.success)return we(e,"plugins"),!1;console.log("[D] Plugins."),b("done"),je()})).catch((function(e){return we(e,"plugins")}))}()}},Object(E.__)("Import entire site","templates-patterns-collection"))):Object(r.createElement)("div",{className:"import-done-actions"},Object(r.createElement)(y.Button,{isLink:!0,className:"close",onClick:Se},Object(E.__)("Back to Sites Library","templates-patterns-collection")),Object(r.createElement)(y.Button,{isSecondary:!0,href:tiobDash.onboarding.homeUrl},Object(E.__)("View Website","templates-patterns-collection")),Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",href:Ne},Object(E.__)("Add your own content","templates-patterns-collection"))))))})),Xe=Object(O.compose)(Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setSingleTemplateImport,r=t.setImportModalStatus,a=t.setInstallModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setInstallModal:function(e){return a(e)},setTemplateModal:t.setTemplateModal}})),Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentSite,c=t.getCurrentEditor;return{templateModal:n(),themeStatus:r().action||!1,site:a(),editor:c()}})))((function(e){var t=e.slug,n=e.cancel,a=e.setModal,c=e.setInstallModal,o=e.themeStatus,i=e.site,s=e.editor,l=e.setTemplateModal,u=e.templateModal,m=Object(r.useState)([]),p=j()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!0),h=j()(f,2),g=h[0],O=h[1],v=Object(r.useState)(""),_=j()(v,2),w=_[0],S=_[1],k=Object(r.useState)([]),C=j()(k,2),N=C[0],T=C[1],M=i.title,x=i.upsell,P=i.utmOutboundLink;Object(r.useEffect)((function(){D()}),[]);var D=function(){oe(!0,{per_page:100,template_site_slug:t,premade:!0,type:s}).then((function(e){b(e.templates||[]),O(!1)}))},I=function(e){S(e)},L=function(e){if(o)return c(!0),!1;T([e]),l(!0)},A=function(e){if(e.preventDefault(),o)return c(!0),!1;a(!0)},B=d.findIndex((function(e){return e.link===w})),R=d.find((function(e){return e.link===w}));return Object(r.createElement)("div",{className:"single-templates-wrapper"},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"breadcrumb"},Object(r.createElement)(y.Button,{isTertiary:!0,onClick:n},Object(E.__)("Back to starter sites"))),Object(r.createElement)("div",{className:"header"},Object(r.createElement)("div",{className:"text"},Object(r.createElement)("h1",null,M||"",x&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(y.Icon,{icon:"lock"}),Object(r.createElement)("span",null,Object(E.__)("Premium","templates-patterns-collection")))),Object(r.createElement)("p",{className:"description"},Object(E.__)("You can import individual pages or bulk-import all of them."))),Object(r.createElement)("div",{className:"actions"},!x&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{isSecondary:!0,onClick:A},Object(E.__)("Import Starter Site")),Object(r.createElement)(y.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(e){if(e.preventDefault(),o)return c(!0),!1;T(d),l(!0)}},Object(E.__)("Import All Pages"))),x&&Object(r.createElement)(y.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(E.__)("Upgrade"))))),Object(r.createElement)((function(){return g?Object(r.createElement)(y.Spinner,null):d.length<1?Object(E.__)("No templates for this starter site."):Object(r.createElement)("div",{className:"cloud-items is-grid"},Object(r.createElement)("div",{className:"table"},d.map((function(e){return Object(r.createElement)(Oe,{upsell:x,onPreview:I,userTemplate:!1,key:e.template_id,item:e,loadTemplates:D,onImport:function(){return L(e)},grid:!0})}))))}),null),w&&Object(r.createElement)(Te,{heading:R.template_name||null,previewUrl:w,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:G,onClick:function(){return S("")},label:Object(E.__)("Close","templates-patterns-collection")}),d.length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?q:W,onClick:function(){var e=B-1;0===B&&(e=d.length-1),S(d[e].link)}}),Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?W:q,onClick:function(){var e=B+1;B===d.length-1&&(e=0),S(d[e].link)}}))),rightButtons:Object(r.createElement)(r.Fragment,null,!x&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{isSecondary:!0,onClick:A},Object(E.__)("Import Starter Site")),Object(r.createElement)(y.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(){return L(R)}},Object(E.__)("Import Page"))),x&&Object(r.createElement)(y.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(E.__)("Upgrade")))}),u&&N&&!g&&N.length>0&&Object(r.createElement)(Ve,{templatesData:N}))})),et=function(){return Object(r.createElement)(H.SVG,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ob-logo"},Object(r.createElement)(H.Path,{d:"M95.0264 100H4.97356C2.22797 100 0 97.772 0 95.0264V4.97356C0 2.22797 2.22797 0 4.97356 0H95.0264C97.772 0 100 2.22797 100 4.97356V95.0264C100 97.772 97.772 100 95.0264 100Z",fill:"#0366D6"}),Object(r.createElement)(H.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(H.Path,{d:"M42.2416 58.9291L42.2528 71.183L53.2352 82.1653L53.1902 47.9806L18.9941 47.9355L29.9765 58.9066L42.2416 58.9291Z",fill:"white"}))},tt=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c={starterSites:Object(E.__)("Starter Sites","neve"),pageTemplates:Object(E.__)("Page Templates","neve")},o=Object(r.useState)(!1),i=j()(o,2),s=i[0],l=i[1];tiobDash.license&&tiobDash.license.tier&&3===tiobDash.license.tier&&(c.library=Object(E.__)("My Library","neve"));var u=function(){var e=function(e){var t=window.location.hash;return"string"!=typeof window.location.hash?null:(t=t.substring(1),Object.keys(e).includes(t)?t:null)}(c);if(null!==e){var n=document.getElementById("menu-appearance"),r=n.querySelector(".current"),a=n.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]').parentElement,o=n.querySelector('a[href="themes.php?page=tiob-starter-sites"]').parentElement;r.classList.remove("current"),a.classList.remove("current"),"library"===e?a.classList.add("current"):o.classList.add("current"),t(e)}};return Object(r.useEffect)((function(){u(),window.addEventListener("hashchange",u)}),[]),Object(r.createElement)("div",{className:"header-nav"},Object.keys(c).map((function(e){return Object(r.createElement)(y.Button,{href:"#"+e,key:e,isTertiary:!0,isPressed:e===n,onClick:function(n){var r;n.preventDefault(),t(e),r=e,window.location.hash=r}},c[e])})),"starterSites"!==n&&Object(r.createElement)(y.Button,{icon:me,onClick:function(){l(!0),localStorage.setItem("tpcCacheBuster",re());var e=n;t(null),setTimeout((function(){t(e),l(!1)}),100)},label:Object(E.__)("Re-sync Library"),className:g()("is-sync",{"is-loading":s}),disabled:a||s,"data-content":Object(E.__)("Sync")}))},nt=Object(O.compose)(Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState;return{cancelOnboarding:function(){n(!1)},setCurrentTab:t.setCurrentTab,setFetching:t.setFetching}})),Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getCurrentTab,a=t.getFetching;return{isOnboarding:n(),currentTab:r(),isFetching:a()}})))((function(e){var t=e.isOnboarding,n=e.cancelOnboarding,a=e.setCurrentTab,c=e.currentTab;return Object(r.createElement)("div",{className:"ob-head"},!t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"header-container"},Object(r.createElement)("h2",null,!tiobDash.brandedTheme&&Object(r.createElement)(y.Icon,{icon:et}),Object(r.createElement)("span",null,Object(E.__)("Templates Cloud","neve"))),Object(r.createElement)(tt,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(y.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),rt=n(19),at=n.n(rt),ct=Object(O.compose)(Object(f.withSelect)((function(e){return{themeStatus:(0,e("neve-onboarding").getThemeAction)().action||!1}})),Object(f.withDispatch)((function(e,t){var n=t.data,r=n.slug,a=e("neve-onboarding"),c=a.setCurrentSite,o=a.setPreviewStatus,i=a.setImportModalStatus,s=a.setInstallModalStatus,l=a.setSingleTemplateImport;return{setSite:function(){return c(n)},setPreview:function(e){return o(e)},setModal:function(e){return i(e)},setInstallModal:function(e){return s(e)},setImportingPages:function(){return l(r)}}})))((function(e){var t=e.data,n=e.setSite,a=e.setPreview,c=e.setModal,o=e.themeStatus,i=e.setInstallModal,s=e.setImportingPages,l=t.upsell,u=(t.slug,t.screenshot),m=t.title,p=t.has_templates,d=Object(r.useState)(""),b=j()(d,2),f=b[0],h=b[1],O=g()("card starter-site-card",{"has-templates":p});return Object(r.createElement)("div",{onMouseEnter:function(){h("visible")},onMouseLeave:function(){h("")},className:O},Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"actions "+f},Object(r.createElement)(y.Button,{isSecondary:!0,onClick:function(e){e.preventDefault(),n(),a(!0)}},Object(E.__)("Preview","templates-patterns-collection")),!l&&Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",onClick:function(e){if(e.preventDefault(),n(),o)return i(!0),!1;c(!0)}},Object(E.__)("Import","templates-patterns-collection")),p&&Object(r.createElement)(y.Button,{isLink:!0,className:"templates",onClick:function(e){e.preventDefault(),n(),s()}},Object(E.__)("View Pages","templates-patterns-collection"))),u&&Object(r.createElement)("div",{className:"image",style:{backgroundImage:'url("'.concat(u,'")')}})),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},m),l&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(y.Dashicon,{icon:"lock",size:15}),Object(r.createElement)("span",null,Object(E.__)("Premium","templates-patterns-collection")))))})),ot=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentSite,r=t.getThemeAction;return{siteData:n(),themeStatus:r().action||!1}})),Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentSite,r=t.setPreviewStatus,a=t.setImportModalStatus,c=t.setInstallModalStatus;return{setSite:function(e){return n(e)},setPreview:function(e){return r(e)},setModal:function(e){return a(e)},setInstallModal:function(e){return c(e)}}})))((function(e){var t=e.next,n=e.prev,a=e.siteData,c=e.setSite,o=e.setPreview,i=e.setModal,s=e.themeStatus,l=e.setInstallModal;return Object(r.createElement)("div",{className:"ob-preview"},Object(r.createElement)("div",{className:"preview"},Object(r.createElement)("iframe",{src:a.url,frameBorder:"0"}),Object(r.createElement)("div",{className:"loading"},Object(r.createElement)(y.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},Object(r.createElement)("div",{className:"navigator"},Object(r.createElement)(y.Button,{onClick:function(e){e.preventDefault(),o(!1),c(null)},className:"close",label:Object(E.__)("Close","templates-patterns-collection"),icon:G}),n&&Object(r.createElement)(y.Button,{onClick:function(e){e.preventDefault(),c(n)},className:"prev",label:Object(E.__)("Previous","templates-patterns-collection"),icon:Object(E.isRTL)()?q:W}),t&&Object(r.createElement)(y.Button,{onClick:function(e){e.preventDefault(),c(t)},className:"next",label:Object(E.__)("Next","templates-patterns-collection"),icon:Object(E.isRTL)()?W:q})),Object(r.createElement)("div",{className:"actions"},a.upsell?Object(r.createElement)(y.Button,{className:"upgrade",isPrimary:!0,href:a.utmOutboundLink||tiobDash.upgradeURL},Object(E.__)("Upgrade and Import","templates-patterns-collection")):Object(r.createElement)(y.Button,{className:"import",isPrimary:!0,onClick:function(e){if(e.preventDefault(),s)return l(!0),!1;i(!0)}},Object(E.__)("Import","templates-patterns-collection")))))})),it=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentCategory,r=t.getSearchQuery;return{category:n(),query:r()}})),Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentCategory,r=t.setSearchQuery;return{setCurrentCategory:function(e){return n(e)},onSearch:function(e){return r(e)}}})))((function(e){var t=e.count,n=e.categories,a=e.onSearch,c=e.category,o=e.setCurrentCategory,i=e.query,s=e.className,l=Object(r.useState)(!1),u=j()(l,2),m=u[0],p=u[1],d=function(){return p(!m)},b=g()(s,"header-form");return Object(r.createElement)("div",{className:b},Object(r.createElement)("div",{className:"search"},Object(r.createElement)("img",{src:tiobDash.assets+"/img/search.svg",alt:Object(E.__)("Search Icon")}),Object(r.createElement)("input",{onChange:function(e){a(e.target.value)},type:"search",value:i,placeholder:Object(E.__)("Search for a starter site","templates-patterns-collection")+"..."}),Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"ob-dropdown categories-selector"},Object(r.createElement)(y.Button,{onClick:d,className:"select ob-dropdown"},n[c],Object(r.createElement)(y.Dashicon,{size:14,icon:m?"arrow-up-alt2":"arrow-down-alt2"}),m&&Object(r.createElement)(y.Popover,{position:"bottom center",onClose:d,noArrow:!0},m&&Object(r.createElement)("ul",{className:"options"},Object.keys(n).map((function(e,a){return e===c||"free"===e&&t.all===t[e]?null:Object(r.createElement)("li",{key:a},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),o(e),p(!1)}},Object(r.createElement)("span",null,n[e]),Object(r.createElement)("span",{className:"count"},t[e])))}))))))}),null)))})),st=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(f.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.editor,c=e.setCurrentEditor,o=e.sites,i=e.isSmall,s=Object(r.useState)(!1),l=j()(s,2),u=l[0],m=l[1],p=Object.keys(o),d=function(){return m(!u)},b=g()(["ob-dropdown","editor-selector",{small:i}]);return Object(r.createElement)("div",{className:b},Object(r.createElement)(y.Button,{onClick:d,className:"select ob-dropdown"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[a].icon,alt:Object(E.__)("Builder Logo","templates-patterns-collection")}),!i&&Object(r.createElement)("span",null,t[a].niceName),Object(r.createElement)("span",{className:"count"},n[a]),Object(r.createElement)(y.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(y.Popover,{position:"bottom center",onClose:d,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},p.map((function(e,o){return e===a?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(E.__)("Builder Logo","templates-patterns-collection")}),Object(r.createElement)("span",null,t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),lt=Object(O.compose)(Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(f.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.onlyProSites,c=e.editor,o=e.setCurrentEditor,i=e.sites,s=Object.keys(i);return Object(r.createElement)("div",{className:"editor-tabs"},s.map((function(e,i){var s=g()(["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(E.__)("Builder Logo","templates-patterns-collection")})),Object(r.createElement)("span",{className:"editor"},t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e]),a.includes(e)&&Object(r.createElement)("span",{className:"pro-badge"},"PRO"))})))})),ut=Object(O.compose)(Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getOnboardingStatus,c=t.getSites;return{editor:n(),category:r(),isOnboarding:a(),getSites:c()}})))((function(e){var t,n=e.filterByCategory,a=e.filterBySearch,c=e.getSitesForBuilder,o=e.isOnboarding,i=e.getSites,s=e.category,l=e.editor,u=Object(r.useState)(!1),m=j()(u,2),p=m[0],d=m[1],b=i.sites,f=void 0===b?{}:b,h=i.migration,g={top:p?0:"-100%"},O=Object.keys(f),v=O.filter((function(e){return Object.keys(f[e]).filter((function(t){return!0===f[e][t].upsell})).length===Object.keys(f[e]).length})),E=(t={builders:{},categories:{}},O.forEach((function(e){var r=c(e);r=n(r,s),r=a(r),t.builders[e]=r?r.length:0})),Object.keys(We).forEach((function(e){var r=c(l);r=n(r,e),r=a(r),t.categories[e]=r?r.length:0})),t);return Object(r.createElement)(r.Fragment,null,!o&&!h&&Object(r.createElement)("div",{className:"sticky-nav",style:g},Object(r.createElement)("div",{className:"container sticky-nav-content"},!tiobDash.brandedTheme&&Object(r.createElement)(y.Icon,{icon:et,size:32}),Object(r.createElement)(it,{className:"in-sticky",count:E.categories,categories:We}),Object(r.createElement)(st,{isSmall:!0,count:E.builders,EDITOR_MAP:Qe}))),Object(r.createElement)($.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),Object(r.createElement)(st,{count:E.builders,EDITOR_MAP:Qe}),Object(r.createElement)(it,{count:E.categories,categories:We}),Object(r.createElement)(lt,{EDITOR_MAP:Qe,onlyProSites:v,count:E.builders}))))})),mt=Object(O.compose)(Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab,setSearchQuery:t.setSearchQuery}})),Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,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]=U()(Object.values(n))})),e},f=function(e,t){return"free"===t?e.filter((function(e){return!e.upsell})):"all"!==t?e.filter((function(e){return e.keywords.includes(t)})):e},h=function(e){return m?new at.a(e,{includeScore:!0,keys:["title","slug","keywords"]}).search(m).map((function(e){return e.item})):e},g=function(){return Object.keys(d)},O=function(){var e=b()[c];return e=h(e),f(e,n)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null===i)return null;var t=b()[c],n=t.indexOf(i);return-1===n||1===t.length?null:e&&0===n?t[t.length-1]:e||n!==t.length-1?t[e?n-1:n+1]:t[0]};return 1>d.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,Object(E.__)("Starter sites could not be loaded. Please refresh and try again.","neve"),s&&Object(r.createElement)(y.Button,{style:{display:"block",margin:"20px auto"},isPrimary:!0,onClick:l},Object(E.__)("Close","templates-patterns-collection")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(ut,{getSitesForBuilder:function(e){return b()[e]},filterBySearch:h,filterByCategory:f}),0===O().length&&Object(r.createElement)("div",{className:"no-results"},Object(r.createElement)("p",null,Object(E.__)("No results found","templates-patterns-collection"),Object(E.__)("You can try a different search or use one of the categories below.","neve")),Object(r.createElement)("div",{className:"tags"},qe.map((function(e,t){return Object(r.createElement)(y.Button,{key:t,isPrimary:!0,className:"tag",onClick:function(t){t.preventDefault(),u(e),a()}},e)})))),Object(r.createElement)((function(){var e=Object(r.useState)(9),t=j()(e,2),n=t[0],a=t[1],c=O();return Object(r.createElement)("div",{className:"ob-sites is-grid"},c.slice(0,n).map((function(e,t){return Object(r.createElement)(ct,{key:t,data:e})})),Object(r.createElement)($.a,{onChange:function(e){if(!e)return!1;a(n+9)}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})))}),null),o&&i&&Object(r.createElement)(ot,{next:v(),prev:v(!0)}))})),pt=Object(O.compose)(Object(f.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(f.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSingleImport;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),singleImport:m()}})))((function(e){var t=e.getSites,n=e.installModal,a=e.currentTab,c=e.singleImport,o=e.importModal,i=e.currentSiteData,s=(e.isOnboarding,t.migration);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"ob"},Object(r.createElement)(nt,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},s&&Object(r.createElement)(F,{data:s}),"starterSites"===a&&(c?Object(r.createElement)(Xe,{slug:c}):Object(r.createElement)(mt,null)),"library"===a&&Object(r.createElement)(Ge,null),"pageTemplates"===a&&Object(r.createElement)(Ge,{isGeneral:!0})))),n&&Object(r.createElement)(D,null),o&&i&&Object(r.createElement)(Ze,null))})),dt=Object(f.withSelect)((function(e){return{onboarding:(0,e("neve-onboarding").getOnboardingStatus)()}}))((function(e){var t=e.onboarding,n=g()(["content-wrap","starter-sites",{"is-onboarding":t}]);return Object(r.createElement)("div",{className:"tiob-wrap"},Object(r.createElement)("div",{className:n},Object(r.createElement)("div",{className:"container content"},Object(r.createElement)("div",{className:"main"},Object(r.createElement)("div",{className:"tab-content columns starter-sites"},Object(r.createElement)(pt,null))))))}));Object(f.registerStore)("neve-onboarding",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REFRESH_SITES":var n=t.payload.sites;return i(i({},e),{},{sites:n});case"SET_CURRENT_EDITOR":var r=t.payload.editor;return localStorage.setItem("neve-onboarding-editor",r),i(i({},e),{},{editor:r});case"SET_CURRENT_CATEGORY":var a=t.payload.category;return i(i({},e),{},{category:a});case"SET_FOCUSED_SITE":var c=t.payload.siteData;return i(i({},e),{},{currentSite:c});case"SET_PREVIEW_STATUS":var o=t.payload.previewStatus;return i(i({},e),{},{previewStatus:o});case"SET_IMPORT_MODAL_STATUS":var 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:{getSites:function(e){return e.sites},getMigrationData:function(e){return e.migrationData},getCurrentEditor:function(e){return e.editor},getCurrentCategory:function(e){return e.category},getCurrentSite:function(e){return e.currentSite},getPreviewStatus:function(e){return e.previewStatus},getImportModalStatus:function(e){return e.importModalStatus},getOnboardingStatus:function(e){return e.isOnboarding},getThemeAction:function(e){return e.themeAction},getInstallModalStatus:function(e){return e.installModalStatus},getCurrentTab:function(e){return e.currentTab},getFetching:function(e){return e.fetching},getSingleImport:function(e){return e.singleTemplateImport},getTemplateModal:function(e){return e.templateModal},getSearchQuery:function(e){return e.searchQuery}}}),Object(r.render)(Object(r.createElement)(dt,null),document.getElementById("tpc-app"))}]);
 
 
 
 
 
 
 
 
 
 
assets/build/style-app-rtl.css DELETED
@@ -1 +0,0 @@
1
- #wpcontent{padding-right:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-left:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;right:0;left:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;right:0;left:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-right:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-right:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-left:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-right:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-left:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-left:auto !important;margin-right:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-right:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-left:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 50px 5px 30px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 15px 0 5px;content:attr(data-content);margin-left:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;right:10px}.search .ob-dropdown{width:100%;height:52px;margin:20px 0 0}.search .ob-dropdown button{position:relative;right:-1px;height:100%;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #e1e1e1;font-size:14px;margin:0}.search .ob-dropdown button>svg,.search .ob-dropdown button .dashicon{margin-right:auto;display:flex;align-items:center}.search .ob-dropdown .options{margin:0}.search .ob-dropdown .options li{margin:0}.search .ob-dropdown .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.search .ob-dropdown .options a .count{color:#a3a3a3}.search .ob-dropdown .options a>span:not(.count){margin-left:20px}.search .ob-dropdown .options a:hover{color:#fff;background-color:#0073aa}.search .ob-dropdown .options a:hover .count{color:#fff}.search .ob-dropdown .options a .count{margin-right:auto}.editor-tabs{display:none;margin:30px 0;position:relative}.editor-tabs:after{content:"";position:absolute;display:block;width:100%;right:0;border-bottom:1px solid #e0e0e0;height:1px;z-index:-1;left:0;bottom:0}.editor-tabs .long-name{display:none}.editor-tabs a{padding:15px 0px 12px 10px;display:flex;align-items:center;font-weight:700;text-decoration:none;font-size:15px;border-bottom:3px solid transparent;position:relative;width:auto}.editor-tabs a:last-child{padding-left:0}.editor-tabs a:not(:first-child){margin-right:auto}.editor-tabs a.active{border-bottom:3px solid #0073aa}.editor-tabs a .pro-badge{margin-right:auto;font-size:11px}.editor-tabs .editor{color:#616161}.editor-tabs .count{color:rgba(97,97,97,.5);margin:0 10px}.editor-tabs .icon-wrap{display:none;margin-left:10px;width:34px;height:34px;border-radius:100%;overflow:hidden}.editor-tabs .icon-wrap img{max-width:100%;display:block}.cloud-items .editor-tabs a:not(:first-child){margin-right:20px}@media(min-width: 1600px){.editor-tabs .long-name{display:inline}}.ob-dropdown.editor-selector{overflow:visible;display:inline-block;position:relative;width:100%}.ob-dropdown.editor-selector button{display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #e1e1e1;font-size:14px;height:52px;width:100%;white-space:nowrap}.ob-dropdown.editor-selector button .count{color:#a3a3a3;margin:0 auto 0 20px}.ob-dropdown.editor-selector img{border-radius:100%;margin-left:5px;max-width:30px;max-height:30px}.ob-dropdown.editor-selector .options{margin:0}.ob-dropdown.editor-selector .options li{border-bottom:1px solid #e1e1e1;padding:0;margin:0}.ob-dropdown.editor-selector .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.ob-dropdown.editor-selector .options a>span:not(.count){margin-left:20px}.ob-dropdown.editor-selector .options a .count{margin-right:auto}.ob-dropdown.editor-selector .options a:hover{background-color:#0073aa;color:#fff}.card{width:100%;display:flex;max-width:unset;min-width:unset;border:1px solid #e1e1e1;flex-direction:column;padding:30px 40px;margin:0;align-self:flex-start;flex-grow:0}.card .card-header{flex-direction:row;display:flex;align-items:center}.card .card-header .title{font-size:18px;line-height:1.5}.card .card-header .icon{margin-left:10px}.card .card-header .icon.dashicon{width:33px;height:33px;fill:#0073aa}.card .card-content{display:flex;flex-direction:column;flex-grow:1}.card .card-content a,.card .card-content button{align-self:flex-start;margin-top:auto}.card p{font-size:15px;color:#616161}.card .card-description{margin:15px 0 25px}.card.starter-site-card{padding:0;max-width:100%}.card.starter-site-card:hover .actions,.card.starter-site-card:hover .fav,.card.starter-site-card:focus-within .actions,.card.starter-site-card:focus-within .fav{opacity:1}.card.starter-site-card .actions.visible{opacity:1}.card.starter-site-card .top{position:relative;overflow:hidden}.card.starter-site-card .fav{position:absolute;z-index:2000;right:-15px;top:-30px;opacity:0;transition:.3s ease}.card.starter-site-card .fav button{padding:30px 30px 30px 5px;height:auto;transform:rotate(-45deg);background-color:#4268cf}.card.starter-site-card .fav svg{transform:rotate(45deg);fill:#fff;max-width:15px}.card.starter-site-card .actions{background-color:rgba(0,0,0,.75);right:0;left:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;opacity:0;transition:.3s ease}.card.starter-site-card .actions .templates{color:#fff}.card.starter-site-card .actions .components-button{margin:5px 0;width:100px;height:40px;font-weight:600;justify-content:center}.card.starter-site-card .actions .components-button.is-secondary{color:#fff;border:2px solid #fff}.card.starter-site-card .image{height:420px;background-size:cover;background-repeat:no-repeat;background-position:top center;background-color:rgba(100,109,130,.25)}.card.starter-site-card img{width:100%;display:block}.card.starter-site-card .bottom{display:flex;align-items:center;padding:15px 30px 15px 10px;border-top:1px solid #e1e1e1}.card.starter-site-card .bottom p{font-size:16px;font-weight:700;color:#282828;margin:0}.card.starter-site-card.has-templates:after{position:absolute;width:93%;background-color:#fff;display:block;height:10px;content:"";margin:0 auto;bottom:-7px;right:50%;transform:translateX(50%);z-index:-1;border:1px solid #d9d9d9}.ob-preview{background-color:#fff;position:fixed;top:0;bottom:0;right:0;left:0;z-index:100000;height:100vh;margin:0;display:flex;flex-direction:column}.ob-preview .loading{bottom:0;top:0;right:0;left:0;position:absolute;display:flex;align-items:center;justify-content:center;z-index:100000;color:#646d82}.ob-preview .loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.ob-preview .bottom-bar .actions{margin-right:auto}.ob-preview .bottom-bar .heading{margin:0 20px 0 0}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{left:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}@-webkit-keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@-webkit-keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}@keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-left:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{left:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}.migration .modal-body .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;width:auto;color:#fff}.migration .modal-body .loading h3{margin:20px 0 0}.migration .modal-body .loading svg{padding:10px;background-color:#ffb900;border-radius:100%;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.5)}.ob-import-modal .components-modal__content{padding:0 30px 40px}.ob-import-modal .components-modal__header{border:none;margin-bottom:10px !important}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:25px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:20px;line-height:34px;color:#000}.ob-import-modal .components-tooltip{display:none}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-left:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 20px 0 0}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 20px 0 0;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-right:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-right:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-right:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-left:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-left:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-right:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:19px;font-weight:700;line-height:30px}.modal-toggles .options button svg{width:30px;height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-right:20px;color:#282828}.modal-toggles .option-row .actions{margin-right:auto}.modal-toggles .option-row .dashicon{margin-right:10px;fill:#d9d9d9}.modal-toggles .option-row .dashicon.active{fill:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-right:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-right:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-right:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;right:0;left:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;right:160px}.auto-fold .sticky-nav{right:32px}}@media(min-width: 961px){.sticky-nav{right:160px !important}.folded .sticky-nav{right:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-left:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-right:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-right:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-left:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-right:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-right:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-right:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-right:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-left-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 10px 5px 20px;background:#fff;border:1px solid #d9d9d9;border-right:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:6px 0 0 6px}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:0 6px 6px 0}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-right:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-left:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 0 8px 15px;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;left:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:right;padding-left:20px;border-left:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 20px 0 0;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-right:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#404040}.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}@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}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-left-radius:0;border-top-left-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-right-radius:0;border-bottom-right-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-left:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-right:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-left:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 5px 12px 20px}}
 
assets/build/style-app.css DELETED
@@ -1 +0,0 @@
1
- #wpcontent{padding-left:0 !important}.content-container{padding:0 20px;flex-basis:100%;max-width:1300px;margin:0 auto}#wpbody-content>.error,#wpbody-content>.info,#wpbody-content>.notice{display:none !important}.ob-overflow-off{overflow:hidden !important}@media screen and (min-width: 660px){.ob-import-modal{width:630px !important}}@media screen and (min-width: 992px){.ob-import-modal{width:700px !important}}.container{padding:0 15px}.container.content{padding:0}svg.is-loading,button.is-loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;margin-right:0}.col{width:100%}@-webkit-keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.columns.starter-sites{position:relative;display:flex;flex-grow:1}.ss-background{opacity:.25;z-index:-1;position:absolute;top:0;bottom:0;width:100%;display:block;background-size:cover;background-position:center center;left:0;right:0;height:calc(100vh - 300px);flex-grow:1}.unavailable-starter-sites{background-color:#fff;border:1px solid #ccc;padding:50px 30px;text-align:center;align-items:center;justify-content:center}.unavailable-starter-sites h1{line-height:1.6}.content-wrap.is-onboarding{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#f1f1f1;z-index:100000;overflow:auto}.content-wrap.is-onboarding h2{display:block}.content-wrap.is-onboarding h2 img{display:none}.content-wrap.is-onboarding .content{background-color:#fefefe;padding-top:30px}.content-wrap.is-onboarding .ob{display:flex;min-height:100vh;flex-direction:column}.content-wrap.is-onboarding .ob-migration{padding-top:0;text-align:center}.content-wrap.is-onboarding .ob-migration h2{line-height:1}.content-wrap.is-onboarding .ob-head button{margin:0 !important}.content-wrap.is-onboarding .ob-head{padding:20px 0 0;margin:0 0 20px;display:flex;justify-content:flex-end;align-items:flex-end}.content-wrap.is-onboarding .ob-head button.close-onboarding{color:#676767}.content-wrap.is-onboarding .ob-head button.close-onboarding svg{width:30px;height:30px}.content-wrap.is-onboarding .content-container{padding:0}.ob{width:100%;display:flex;flex-direction:column;align-items:center}.ob .ob-head{box-sizing:border-box;padding:20px;background:#fff;width:100%;display:flex;justify-content:center}.ob .ob-head .header-container{display:flex;flex-basis:100%;max-width:1300px}.ob .ob-head .header-container h2{flex-basis:40%}.ob .ob-head .header-container .header-nav{flex-basis:60%;display:flex;justify-content:flex-end;align-items:center}.ob .ob-head .header-container .header-nav .components-button{font-size:18px;font-weight:600;color:#282828;margin-left:25px}.ob .ob-head .header-container .header-nav .components-button:hover{box-shadow:none}.ob .ob-head .header-container .header-nav .components-button:first-child{margin-left:0}.ob .ob-head .header-container .header-nav .components-button.is-pressed{color:#0073aa;background:transparent}.ob .ob-body{width:100%;box-sizing:border-box}.ob .ob-body .instructions{font-size:22px;margin:20px 0;color:#282828}.ob-logo{width:50px;margin-right:20px}.ob-sites{margin-top:30px}.ob-sites.is-grid{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px 0}.no-results p{font-size:16px}.no-results p span{color:#0073aa;font-weight:600}.no-results .tags{margin-top:10px;justify-content:center;display:flex;flex-wrap:wrap}.no-results .tags .tag{margin:10px 20px;line-height:normal;height:auto;font-weight:600;padding:10px 15px;color:#fff;transition:all .3s ease}.no-results .tags .tag:hover{background-color:#0071a7}.pro-badge{background-color:#6eb77a;height:auto;color:#fff;font-weight:600;text-transform:uppercase;padding:5px 10px;margin-left:auto;border-radius:999px;line-height:normal;display:flex;align-items:center}.pro-badge svg{margin-right:3px}.ob-migration{padding-top:20px;margin-bottom:20px}.ob-migration .card.starter-site-card{margin-right:auto !important;margin-left:auto !important}.ob-migration .card.starter-site-card .image{height:auto}.ob-migration .actions{margin:30px auto 0;display:flex;justify-content:center}.ob-migration button:last-child{margin-left:10px}.ob-head>.header-container>h2,.ob-migration>h2{font-size:21px;color:#282828;margin:0;line-height:1.6;display:flex;align-items:center}.ob-head>.header-container>h2>img,.ob-migration>h2>img{margin-right:20px}.ob-head>.header-container>p,.ob-migration>p{margin:20px 0;font-size:15px;color:#282828}.ob-head>.header-container>button,.ob-migration>button{margin-bottom:20px}.header-form{margin-top:20px;display:flex;align-items:center;flex-direction:column}.header-form input{margin:0;display:block;flex-grow:1;border:1px solid #e1e1e1;height:52px;padding:5px 30px 5px 50px;font-size:17px;font-weight:300}.is-sync{background-color:#f1f1f1;color:#0073aa !important;border-radius:6px}.is-sync:before{padding:0 5px 0 15px;content:attr(data-content);margin-right:5px;font-size:15px;display:none}.is-sync:hover:before{display:block}.search{position:relative;display:flex;width:100%;flex-wrap:wrap}.search input{width:auto;flex-shrink:1}.search img{opacity:.4;position:absolute;top:10px;left:10px}.search .ob-dropdown{width:100%;height:52px;margin:20px 0 0}.search .ob-dropdown button{position:relative;left:-1px;height:100%;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #e1e1e1;font-size:14px;margin:0}.search .ob-dropdown button>svg,.search .ob-dropdown button .dashicon{margin-left:auto;display:flex;align-items:center}.search .ob-dropdown .options{margin:0}.search .ob-dropdown .options li{margin:0}.search .ob-dropdown .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.search .ob-dropdown .options a .count{color:#a3a3a3}.search .ob-dropdown .options a>span:not(.count){margin-right:20px}.search .ob-dropdown .options a:hover{color:#fff;background-color:#0073aa}.search .ob-dropdown .options a:hover .count{color:#fff}.search .ob-dropdown .options a .count{margin-left:auto}.editor-tabs{display:none;margin:30px 0;position:relative}.editor-tabs:after{content:"";position:absolute;display:block;width:100%;left:0;border-bottom:1px solid #e0e0e0;height:1px;z-index:-1;right:0;bottom:0}.editor-tabs .long-name{display:none}.editor-tabs a{padding:15px 10px 12px 0px;display:flex;align-items:center;font-weight:700;text-decoration:none;font-size:15px;border-bottom:3px solid transparent;position:relative;width:auto}.editor-tabs a:last-child{padding-right:0}.editor-tabs a:not(:first-child){margin-left:auto}.editor-tabs a.active{border-bottom:3px solid #0073aa}.editor-tabs a .pro-badge{margin-left:auto;font-size:11px}.editor-tabs .editor{color:#616161}.editor-tabs .count{color:rgba(97,97,97,.5);margin:0 10px}.editor-tabs .icon-wrap{display:none;margin-right:10px;width:34px;height:34px;border-radius:100%;overflow:hidden}.editor-tabs .icon-wrap img{max-width:100%;display:block}.cloud-items .editor-tabs a:not(:first-child){margin-left:20px}@media(min-width: 1600px){.editor-tabs .long-name{display:inline}}.ob-dropdown.editor-selector{overflow:visible;display:inline-block;position:relative;width:100%}.ob-dropdown.editor-selector button{display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #e1e1e1;font-size:14px;height:52px;width:100%;white-space:nowrap}.ob-dropdown.editor-selector button .count{color:#a3a3a3;margin:0 20px 0 auto}.ob-dropdown.editor-selector img{border-radius:100%;margin-right:5px;max-width:30px;max-height:30px}.ob-dropdown.editor-selector .options{margin:0}.ob-dropdown.editor-selector .options li{border-bottom:1px solid #e1e1e1;padding:0;margin:0}.ob-dropdown.editor-selector .options a{height:35px;font-size:14px;display:flex;align-items:center;font-weight:600;color:#282828;cursor:pointer;padding:5px 10px;text-decoration:none;white-space:nowrap}.ob-dropdown.editor-selector .options a>span:not(.count){margin-right:20px}.ob-dropdown.editor-selector .options a .count{margin-left:auto}.ob-dropdown.editor-selector .options a:hover{background-color:#0073aa;color:#fff}.card{width:100%;display:flex;max-width:unset;min-width:unset;border:1px solid #e1e1e1;flex-direction:column;padding:30px 40px;margin:0;align-self:flex-start;flex-grow:0}.card .card-header{flex-direction:row;display:flex;align-items:center}.card .card-header .title{font-size:18px;line-height:1.5}.card .card-header .icon{margin-right:10px}.card .card-header .icon.dashicon{width:33px;height:33px;fill:#0073aa}.card .card-content{display:flex;flex-direction:column;flex-grow:1}.card .card-content a,.card .card-content button{align-self:flex-start;margin-top:auto}.card p{font-size:15px;color:#616161}.card .card-description{margin:15px 0 25px}.card.starter-site-card{padding:0;max-width:100%}.card.starter-site-card:hover .actions,.card.starter-site-card:hover .fav,.card.starter-site-card:focus-within .actions,.card.starter-site-card:focus-within .fav{opacity:1}.card.starter-site-card .actions.visible{opacity:1}.card.starter-site-card .top{position:relative;overflow:hidden}.card.starter-site-card .fav{position:absolute;z-index:2000;left:-15px;top:-30px;opacity:0;transition:.3s ease}.card.starter-site-card .fav button{padding:30px 5px 30px 30px;height:auto;transform:rotate(45deg);background-color:#4268cf}.card.starter-site-card .fav svg{transform:rotate(-45deg);fill:#fff;max-width:15px}.card.starter-site-card .actions{background-color:rgba(0,0,0,.75);left:0;right:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column;position:absolute;opacity:0;transition:.3s ease}.card.starter-site-card .actions .templates{color:#fff}.card.starter-site-card .actions .components-button{margin:5px 0;width:100px;height:40px;font-weight:600;justify-content:center}.card.starter-site-card .actions .components-button.is-secondary{color:#fff;border:2px solid #fff}.card.starter-site-card .image{height:420px;background-size:cover;background-repeat:no-repeat;background-position:top center;background-color:rgba(100,109,130,.25)}.card.starter-site-card img{width:100%;display:block}.card.starter-site-card .bottom{display:flex;align-items:center;padding:15px 10px 15px 30px;border-top:1px solid #e1e1e1}.card.starter-site-card .bottom p{font-size:16px;font-weight:700;color:#282828;margin:0}.card.starter-site-card.has-templates:after{position:absolute;width:93%;background-color:#fff;display:block;height:10px;content:"";margin:0 auto;bottom:-7px;left:50%;transform:translateX(-50%);z-index:-1;border:1px solid #d9d9d9}.ob-preview{background-color:#fff;position:fixed;top:0;bottom:0;left:0;right:0;z-index:100000;height:100vh;margin:0;display:flex;flex-direction:column}.ob-preview .loading{bottom:0;top:0;left:0;right:0;position:absolute;display:flex;align-items:center;justify-content:center;z-index:100000;color:#646d82}.ob-preview .loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-preview .preview{display:flex;flex-direction:column;position:relative;flex-grow:1}.ob-preview .preview iframe{flex-grow:1;position:relative;z-index:100001;height:100%;width:100%}.ob-preview .bottom-bar{border-top:1px solid #e1e1e1;display:flex;padding:15px 30px;align-items:center}.ob-preview .bottom-bar .actions{margin-left:auto}.ob-preview .bottom-bar .heading{margin:0 0 0 20px}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{right:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}@-webkit-keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@keyframes loading-placeholder{0%{opacity:.1}50%{opacity:.2}100%{opacity:.1}}@-webkit-keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}@keyframes loading-placeholder-high-opacity{0%{opacity:.7}50%{opacity:.9}100%{opacity:.7}}.ob-import-modal .stepper li{display:flex;align-items:center;margin-bottom:25px;font-size:15px}.ob-import-modal .stepper li .icon{margin-right:20px;background-color:#0073aa;color:#fff;padding:5px;border-radius:100%}.ob-import-modal .stepper li .icon.success{background-color:#6eb77a}.ob-import-modal .stepper li .icon.success svg{right:1px;position:relative}.ob-import-modal .stepper li .icon.warning{background-color:#ffb900}.ob-import-modal .stepper li .icon.error{background-color:#ec7c7c}.ob-import-modal .stepper li .icon.skip{background-color:#e1e1e1}.ob-import-modal .stepper li .icon.loading .dashicon,.ob-import-modal .stepper li .icon.loading svg{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal .stepper li svg{width:20px;height:20px;display:block}.migration .modal-body .loading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:30px auto;width:auto;color:#fff}.migration .modal-body .loading h3{margin:20px 0 0}.migration .modal-body .loading svg{padding:10px;background-color:#ffb900;border-radius:100%;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:2000ms;animation-duration:2000ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.ob-import-modal{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.5)}.ob-import-modal .components-modal__content{padding:0 30px 40px}.ob-import-modal .components-modal__header{border:none;margin-bottom:10px !important}.ob-import-modal .header{margin-bottom:15px}.ob-import-modal .header h1{margin-top:0;font-size:25px;font-weight:700;color:#000;line-height:normal;margin-bottom:10px}.ob-import-modal .header p.description{font-size:20px;line-height:34px;color:#000}.ob-import-modal .components-tooltip{display:none}.ob-import-modal .modal-body h3{margin:0;display:flex;align-items:center}.ob-import-modal .modal-body h3 svg{margin-right:5px}.ob-import-modal .well{margin:0;padding:20px 10px;border-radius:6px;color:#616161;background-color:rgba(249,215,128,.24)}.ob-import-modal .well ol{padding:0;margin:20px 0 0 20px}.ob-import-modal .well ol li{margin-bottom:10px;font-size:15px}.ob-import-modal .well ol li:last-child{margin-bottom:0}.ob-import-modal .well ul{margin:0 0 0 20px;padding:0;list-style:disc}.ob-import-modal .well ul li{font-size:15px;margin-bottom:10px;font-weight:400}.ob-import-modal .well ul li:last-child{margin-bottom:0}.ob-import-modal .well.error{background-color:#fdf4f4}.ob-import-modal .well.warning{background-color:#ffdf8a}.ob-import-modal hr{margin:25px 0;border:none;border-top:1px solid #e1e1e1;height:0}.ob-import-modal .import-result{font-size:15px}.ob-import-modal .modal-footer{margin-top:25px;display:flex;align-items:center}.ob-import-modal .modal-footer .import{padding:10px 30px;margin-left:auto;font-weight:600;font-size:14px;height:auto;border-radius:4px}.ob-import-modal .modal-footer button:last-child,.ob-import-modal .modal-footer a:last-child{margin-left:auto}.ob-import-modal .modal-footer button:last-child:only-child,.ob-import-modal .modal-footer a:last-child:only-child{margin-left:auto}.ob-import-modal.fetching .title{width:200px;display:block}.ob-import-modal.fetching .is-loading{border-radius:3px;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite;background-color:#282828;height:20px}.ob-import-modal.fetching .is-loading.button{background-color:#007cba;height:39px}.ob-import-modal.fetching .is-loading.link{width:100px;background-color:#007cba}.ob-import-modal.fetching .well{-webkit-animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;animation:1.5s loading-placeholder-high-opacity ease-in-out infinite;height:inherit !important;background-color:inherit !important}.ob-import-modal.fetching .well h3 span{width:100px}.ob-import-modal.fetching .well ol{list-style:square}.ob-import-modal.fetching .well li{border-radius:3px;width:75%;height:18px;margin-top:0;background-color:#282828;-webkit-animation:1.5s loading-placeholder ease-in-out infinite;animation:1.5s loading-placeholder ease-in-out infinite}.ob-import-modal.fetching .well li:nth-child(2){width:85%}.ob-import-modal.fetching .well li:nth-child(3){width:95%}.ob-import-modal.fetching .mock-icon{width:20px;height:20px;margin-right:5px}.ob-import-modal.fetching .options h3{max-width:100px}.ob-import-modal.fetching .options li .mock-icon{background-color:#0073aa;margin-right:15px}.ob-import-modal.fetching .options li span{width:100px}.ob-import-modal.fetching .options li .toggle{width:40px;background-color:#0073aa;border-radius:50px;margin-left:auto}.ob-import-modal.fetching .modal-footer button{width:90px;height:35px;background-color:#646d82;border:none !important}.ob-import-modal.fetching .modal-footer button.is-primary{background-color:#0073aa}.modal-toggles{margin-top:10px;border:none}.modal-toggles .options{border:none;padding:10px}.modal-toggles .options .components-panel__body-title{margin:-10px -10px 0 -10px !important}.modal-toggles .options button{font-size:19px;font-weight:700;line-height:30px}.modal-toggles .options button svg{width:30px;height:30px}.modal-toggles .option-row{justify-content:flex-start;border-bottom:1px solid rgba(40,40,40,.1);margin:0;padding:10px 0;display:flex;align-items:center}.modal-toggles .option-row span{font-size:15px;margin-left:20px;color:#282828}.modal-toggles .option-row .actions{margin-left:auto}.modal-toggles .option-row .dashicon{margin-left:10px;fill:#d9d9d9}.modal-toggles .option-row .dashicon.active{fill:#0073aa}.modal-toggles .option-row .toggle-wrapper{margin-left:auto}.modal-toggles .option-row .toggle-wrapper .components-form-toggle{margin:0}.import-done-actions{display:flex;align-items:center;width:100%}.import-done-actions .components-button.is-secondary{margin-left:auto;border:2px solid;padding:8px 20px;font-weight:600;font-size:14px;height:auto;border-radius:4px}.import-done-actions .import{margin-left:20px !important}.sticky-nav{transition:top .3s ease;position:fixed;z-index:1000;left:0;right:0;top:0;background:#f1f1f1;padding:15px 0;box-shadow:0px 4px 20px rgba(0,0,0,.15)}@media(min-width: 601px){.sticky-nav{margin-top:46px}}@media(min-width: 783px){.sticky-nav{margin-top:32px;left:160px}.auto-fold .sticky-nav{left:32px}}@media(min-width: 961px){.sticky-nav{left:160px !important}.folded .sticky-nav{left:32px !important}}.sticky-nav-content{display:flex;max-width:1300px}.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:none;margin-right:20px}@media(min-width: 992px){.sticky-nav-content>img,.sticky-nav-content>.ob-logo{display:block}}.sticky-nav-content .header-form{margin:0;flex-grow:1}@media(min-width: 660px){.sticky-nav-content .header-form{max-width:100%}}.sticky-nav-content .ob-dropdown.editor-selector.small{width:auto;margin-left:15px;display:flex;align-items:center}.sticky-nav-content .ob-dropdown.editor-selector.small>button>.count{margin-left:12px}.sticky-nav-content button,.sticky-nav-content input{border-radius:6px}.sticky-nav-content input{max-width:100%;font-weight:500}.sticky-nav-content input::-moz-placeholder{color:#b7b7b7}.sticky-nav-content input:-ms-input-placeholder{color:#b7b7b7}.sticky-nav-content input::placeholder{color:#b7b7b7}.table .table-row{display:flex;height:60px;align-items:center;padding:0 25px;background:#fff;border:1px solid rgba(0,0,0,.11);border-top:none}.table .table-row:first-child{border-top:1px solid rgba(0,0,0,.11)}.table .table-row svg{height:24px;margin-right:10px;fill:#b9b9b9}.table .table-row .title{display:flex;align-items:center}.table .table-row .title .components-base-control__field{margin:0}.table .table-row .controls{margin-left:auto;display:flex;align-items:center}.table .table-row .controls button{padding:6px 30px;font-weight:600;color:#b9b9b9}.table .table-row .actions{display:flex;margin-left:50px;justify-content:flex-end}.table .table-row .actions.no-controls{margin-left:auto}.table .table-row .actions .components-button{padding:6px 30px}.table .table-row .actions .components-button.is-primary{margin-left:10px}.filters{display:flex;align-items:center;margin-bottom:40px}.filters .components-dropdown:nth-of-type(1) .components-button.filter-input{width:100px;border-right-width:.1px;border-radius:0}.filters .components-dropdown .components-button.filter-input{width:200px;height:52px;display:flex;align-items:center;font-weight:600;padding:5px 20px 5px 10px;background:#fff;border:1px solid #d9d9d9;border-left:0;color:#616161;box-shadow:none;font-weight:normal;border-radius:0 6px 6px 0}.filters .components-base-control,.filters input{width:100%}.filters .components-base-control.has-filters input,.filters input.has-filters input{border-radius:6px 0 0 6px}.filters .components-base-control .components-base-control__field,.filters input .components-base-control__field{margin-bottom:0}.filters .components-base-control input,.filters input input{border-radius:6px}.filters .display-filters{display:flex;margin-left:20px}.filters .display-filters .display-filters__search{width:200px;position:relative;margin-right:20px}.filters .display-filters .display-filters__search input{max-height:36px;border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 15px 8px 0;transition:border .5s;background:none;box-shadow:none;color:#6d7882;outline:none}.filters .display-filters .display-filters__search>svg,.filters .display-filters .display-filters__search .components-button{position:absolute;top:50%;right:0;transform:translateY(-50%)}.filters .display-filters button.is-pressed,.filters .display-filters button:active,.filters .display-filters button:focus,.filters .display-filters button:hover{background-color:transparent !important;color:#0073aa}.filters .display-sorting{display:flex;align-items:center;font-size:11px}.filters .display-sorting .sorting-label{flex-grow:1;text-align:left;padding-right:20px;border-right:1px solid #d5dadf;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button{padding:0 0 0 20px;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.filters .display-sorting .sorting-filter .components-button::after{width:11px;content:" ";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected::after{font-family:dashicons;content:"";margin-left:3px}.filters .display-sorting .sorting-filter .components-button.is-selected.is-asc::after{content:""}.filters .header-form{width:100%;display:flex;justify-content:space-between}.cloud-items .components-spinner{margin:0 auto !important;display:block;margin-top:50% !important}.cloud-items .fetching-loader .components-spinner{margin:100px auto !important}.cloud-items.is-grid .table{display:-ms-grid;display:grid;-ms-grid-columns:1fr;grid-template-columns:1fr;grid-column-gap:20px;grid-row-gap:20px}.table-grid{border:1px solid #ccc;min-height:350px;display:flex;flex-direction:column}.table-grid .grid-preview{display:flex;width:100%;height:300px;background-color:#b7c0cc;background-position:top center;background-size:cover}.table-grid .grid-preview:hover{background-color:#404040}.table-grid .grid-preview.is-loading{background:#404040}.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}@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}}@media(min-width: 992px){.container{padding:0 20px}.content{display:flex}.main{flex-grow:1}.col{display:flex;flex-direction:column}.content-wrap.is-onboarding .content{max-width:1300px;padding:15px 40px 35px;box-shadow:0 0 10px -5px rgba(0,0,0,.5);border:1px solid #e1e1e1;margin:40px auto 30px}.content-wrap.is-onboarding .header-form{margin-top:0}.ob-sites.is-grid{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.editor-tabs{display:flex}.ob-body .ob-dropdown.editor-selector{display:none}.header-form{margin-top:25px}.search{display:flex}.search input{border-bottom-right-radius:0;border-top-right-radius:0}.search img{top:50%;transform:translateY(-50%)}.search .ob-dropdown{display:inline-block;width:200px;margin:0}.search .ob-dropdown button{margin:0;border-top-left-radius:0;border-bottom-left-radius:0}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr}.single-templates-wrapper .header{flex-direction:row;align-items:flex-start}.single-templates-wrapper .header h1{font-size:30px}.single-templates-wrapper .description{font-size:20px}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1200px){.container{margin:0 auto}.col{width:50%}.col:not(:last-child){margin-right:20px}.main{flex-grow:1}.content{display:flex;padding-top:30px}.columns{display:flex;flex-direction:row}.editor-tabs .icon-wrap{display:block}.cloud-items.is-grid .table{-ms-grid-columns:1fr 1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr 1fr}.single-templates-wrapper .actions{margin-left:auto}}@media(min-width: 1400px){.col:not(:last-child){margin-right:30px}.card{padding:30px 40px}.editor-tabs a{width:auto;padding:15px 20px 12px 5px}}
 
assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js CHANGED
@@ -141,7 +141,8 @@ const DemoSiteTemplatesImport = ( {
141
  <div className="top">
142
  <div className="breadcrumb">
143
  <Button isTertiary onClick={ cancel }>
144
- { __( 'Back to starter sites' ) }
 
145
  </Button>
146
  </div>
147
  <div className="header">
141
  <div className="top">
142
  <div className="breadcrumb">
143
  <Button isTertiary onClick={ cancel }>
144
+ <Icon icon={chevronLeft} />
145
+ { __( 'Back to Starter Sites' ) }
146
  </Button>
147
  </div>
148
  <div className="header">
assets/src/Components/CloudLibrary/ImportTemplatesModal.js CHANGED
@@ -326,8 +326,8 @@ const ImportTemplatesModal = ( {
326
  <Modal
327
  className={ classnames( [ 'ob-import-modal', { fetching } ] ) }
328
  onRequestClose={ cancel }
329
- shouldCloseOnClickOutside={ ! importing && ! fetching }
330
- isDismissible={ ! importing && ! fetching }
331
  >
332
  { importing === 'done' ? <ImportDone /> : <ModalContent /> }
333
  </Modal>
326
  <Modal
327
  className={ classnames( [ 'ob-import-modal', { fetching } ] ) }
328
  onRequestClose={ cancel }
329
+ shouldCloseOnClickOutside={ ( ! importing || importing === 'done' ) && ! fetching }
330
+ isDismissible={ ( ! importing || importing === 'done' ) && ! fetching }
331
  >
332
  { importing === 'done' ? <ImportDone /> : <ModalContent /> }
333
  </Modal>
assets/src/Components/CloudLibrary/Library.js CHANGED
@@ -10,12 +10,14 @@ import { __, isRTL } from '@wordpress/i18n';
10
 
11
  import { fetchLibrary } from './common';
12
  import ListItem from './ListItem';
 
13
  import Filters from './Filters';
14
  import PreviewFrame from './PreviewFrame';
15
  import ImportTemplatesModal from './ImportTemplatesModal';
16
 
17
  const Library = ( {
18
  isGeneral,
 
19
  setInstallModal,
20
  setTemplateModal,
21
  templateModal,
@@ -190,8 +192,14 @@ const Library = ( {
190
 
191
  const handlePreview = ( url ) => {
192
  setPreviewUrl( url );
 
193
  };
194
 
 
 
 
 
 
195
  const handleImport = ( id ) => {
196
  if ( themeStatus ) {
197
  setInstallModal( true );
@@ -320,7 +328,7 @@ const Library = ( {
320
  setSortingOrder={ setSorting }
321
  changeOrder={ changeOrder }
322
  />
323
- { isLoading && <Spinner /> }
324
  { ! isLoading &&
325
  ( library[ type ] && library[ type ].length > 0 ? (
326
  <>
@@ -387,7 +395,7 @@ const Library = ( {
387
  <>
388
  <Button
389
  icon={ close }
390
- onClick={ () => setPreviewUrl( '' ) }
391
  />
392
  { library[ type ].length > 1 && (
393
  <>
@@ -430,11 +438,12 @@ const Library = ( {
430
 
431
  export default compose(
432
  withDispatch( ( dispatch ) => {
433
- const { setInstallModalStatus, setTemplateModal } = dispatch(
434
  'neve-onboarding'
435
  );
436
 
437
  return {
 
438
  setInstallModal: ( status ) => setInstallModalStatus( status ),
439
  setTemplateModal,
440
  };
10
 
11
  import { fetchLibrary } from './common';
12
  import ListItem from './ListItem';
13
+ import Loading from '../Loading';
14
  import Filters from './Filters';
15
  import PreviewFrame from './PreviewFrame';
16
  import ImportTemplatesModal from './ImportTemplatesModal';
17
 
18
  const Library = ( {
19
  isGeneral,
20
+ setPreview,
21
  setInstallModal,
22
  setTemplateModal,
23
  templateModal,
192
 
193
  const handlePreview = ( url ) => {
194
  setPreviewUrl( url );
195
+ setPreview(true);
196
  };
197
 
198
+ const handleClose = () => {
199
+ setPreviewUrl( '' );
200
+ setPreview(false);
201
+ }
202
+
203
  const handleImport = ( id ) => {
204
  if ( themeStatus ) {
205
  setInstallModal( true );
328
  setSortingOrder={ setSorting }
329
  changeOrder={ changeOrder }
330
  />
331
+ { isLoading && <Loading isGrid={ isGrid } /> }
332
  { ! isLoading &&
333
  ( library[ type ] && library[ type ].length > 0 ? (
334
  <>
395
  <>
396
  <Button
397
  icon={ close }
398
+ onClick={ handleClose }
399
  />
400
  { library[ type ].length > 1 && (
401
  <>
438
 
439
  export default compose(
440
  withDispatch( ( dispatch ) => {
441
+ const { setInstallModalStatus, setTemplateModal, setPreviewStatus } = dispatch(
442
  'neve-onboarding'
443
  );
444
 
445
  return {
446
+ setPreview: ( status ) => setPreviewStatus( status ),
447
  setInstallModal: ( status ) => setInstallModalStatus( status ),
448
  setTemplateModal,
449
  };
assets/src/Components/Header.js CHANGED
@@ -46,16 +46,23 @@ const TabNavigation = ( { setCurrentTab, currentTab, isFetching } ) => {
46
  }
47
 
48
  const menu = document.getElementById('menu-appearance');
49
- const activeItem = menu.querySelector('.current');
50
- const libraryItem = menu.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]').parentElement;
51
- const starterSitesItem = menu.querySelector('a[href="themes.php?page=tiob-starter-sites"]').parentElement;
52
 
53
- activeItem.classList.remove('current');
54
- libraryItem.classList.remove('current');
55
- if ( hash === 'library' ){
56
- libraryItem.classList.add('current');
57
- } else {
58
- starterSitesItem.classList.add('current');
 
 
 
 
 
 
 
 
59
  }
60
  setCurrentTab(hash);
61
  }
46
  }
47
 
48
  const menu = document.getElementById('menu-appearance');
49
+ const libraryLink = menu.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]');
50
+ const starterLink = menu.querySelector('a[href="themes.php?page=tiob-starter-sites"]');
 
51
 
52
+ // This is used only to set the active state of the links from the left admin nav.
53
+ // So we check that those items exist before trying to mutate them.
54
+ if ( libraryLink && starterLink ) {
55
+ const libraryItem = libraryLink.parentElement;
56
+ const starterSitesItem = starterLink.parentElement;
57
+ const activeItem = menu.querySelector('.current');
58
+
59
+ activeItem.classList.remove('current');
60
+ libraryItem.classList.remove('current');
61
+ if ( hash === 'library' ){
62
+ libraryItem.classList.add('current');
63
+ } else {
64
+ starterSitesItem.classList.add('current');
65
+ }
66
  }
67
  setCurrentTab(hash);
68
  }
assets/src/Components/Loading.js CHANGED
@@ -1,53 +1,32 @@
1
- import { withSelect } from '@wordpress/data';
2
-
3
- const Loading = ( { isOnboarding } ) => {
4
  return (
5
- <div className="ob mock-dash">
6
- <div className="ob-head">
7
- <h2 className="loading" />
8
- <p className="loading" />
9
- <p className="loading" />
10
- { isOnboarding && (
11
- <button className="loading components-button is-primary" />
12
- ) }
13
- <div className="header-form">
14
- <div>
15
- <div className="ob-dropdown">
16
- <button>
17
- <div className="editor-icon loading" />
18
- <span className="loading" />
19
- </button>
20
  </div>
 
 
 
 
 
 
 
 
 
21
  </div>
22
- <div className="search">
23
- <button>
24
- <span className="loading" />
25
- </button>
26
- </div>
27
- </div>
28
- </div>
29
- <div className="ob-body">
30
- <div className="ob-sites">
31
- { [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ].map( ( i ) => {
32
- return (
33
- <div key={ i } className="card starter-site-card">
34
- <div className="top">
35
- <div className="image loading" />
36
- </div>
37
- <div className="bottom">
38
- <p className="title loading" />
39
- </div>
40
- </div>
41
- );
42
- } ) }
43
- </div>
44
- </div>
45
- { isOnboarding && <div className="ob-footer" /> }
46
  </div>
47
  );
48
  };
49
 
50
- export default withSelect( ( select ) => {
51
- const { getOnboardingStatus } = select( 'neve-onboarding' );
52
- return { isOnboarding: getOnboardingStatus() };
53
- } )( Loading );
1
+ const Loading = ( { isGrid } ) => {
 
 
2
  return (
3
+ <div className="table">
4
+ { [ 1, 2, 3, 4, 5, 6, 7, 8 ].map( ( i ) => {
5
+ if ( isGrid ) {
6
+ return (
7
+ <div key={ i } className="table-grid">
8
+ <div className="grid-preview image is-loading" />
9
+ <div className="card-footer">
10
+ <p className="title loading" style={ {
11
+ height: 14,
12
+ 'background-color': '#f3f3f3',
13
+ } } />
14
+ </div>
 
 
 
15
  </div>
16
+ )
17
+ }
18
+ return (
19
+ <div key={ i } className="table-row">
20
+ <p className="title loading" style={ {
21
+ width: '100%',
22
+ height: 14,
23
+ background: 'linear-gradient(to right, #f3f3f3, #ffffff)',
24
+ } } />
25
  </div>
26
+ );
27
+ } ) }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  </div>
29
  );
30
  };
31
 
32
+ export default Loading;
 
 
 
assets/src/Components/OnboardingContent.js CHANGED
@@ -169,9 +169,9 @@ const OnboardingContent = ( {
169
  <div className="no-results">
170
  <p>
171
  { __(
172
- 'No results found',
173
  'templates-patterns-collection'
174
- ) }
175
  { __(
176
  'You can try a different search or use one of the categories below.',
177
  'neve'
169
  <div className="no-results">
170
  <p>
171
  { __(
172
+ 'No results found.',
173
  'templates-patterns-collection'
174
+ ) }&nbsp;
175
  { __(
176
  'You can try a different search or use one of the categories below.',
177
  'neve'
assets/src/scss/_import-modal.scss CHANGED
@@ -29,9 +29,7 @@ $base-index: 100000;
29
  .ob-import-modal {
30
  background-color: #fff;
31
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
32
- .components-modal__content {
33
- padding: 0 30px 40px;
34
- }
35
  .components-modal__header {
36
  border: none;
37
  margin-bottom: 10px !important;
29
  .ob-import-modal {
30
  background-color: #fff;
31
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
32
+
 
 
33
  .components-modal__header {
34
  border: none;
35
  margin-bottom: 10px !important;
assets/src/scss/_library.scss CHANGED
@@ -245,7 +245,7 @@
245
  }
246
 
247
  &.is-loading {
248
- background: #404040;
249
 
250
  .preview-actions {
251
  display: flex;
245
  }
246
 
247
  &.is-loading {
248
+ background: #b7c0cc;
249
 
250
  .preview-actions {
251
  display: flex;
beaver/build/index-rtl.css DELETED
@@ -1 +0,0 @@
1
- .fl-row-overlay .fl-builder-has-submenu.fl-builder-submenu-open>ul.fl-builder-submenu{width:200px}.tpc-template-cloud-export-modal{display:flex;flex-direction:column}.tpc-template-cloud-export-modal h1{font-size:16px}.tpc-template-cloud-export-modal label{margin-bottom:10px}.tpc-template-cloud-modal{z-index:999999}.tpc-template-cloud-modal .components-modal__frame{width:100%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content{padding:0;background-color:#fff}.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 .components-placeholder{box-shadow: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 .center .tabs:hover{background:transparent}.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;width:38px;height:38px;margin:5px 10px;padding:5px;border-radius:6px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button.is-sync{background:#f1f1f1;border:1px solid #d9d9d9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button.is-sync: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.is-sync: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.is-sync:hover svg{fill:#f1f1f1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button.is-sync svg{fill:#0073aa}.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}.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;background:transparent;font-weight:normal}.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{background:transparent}.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;background:transparent}.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 .preview-content iframe{height:560px;position:relative;z-index:99}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .is-loading{position:absolute;top:50%;left:calc( 50% - 12px )}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .is-loading svg{-webkit-animation:icon-spin 2s linear infinite;animation:icon-spin 2s linear infinite}.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-modal__content .tpc-modal-content .tpc-modal-content-export{padding:50px 0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-icon{display:flex;justify-content:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-icon svg{fill:#c2cbd2;width:65px;height:65px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-title{color:#6d7882;text-align:center;font-size:30px;font-weight:500;margin-top:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field{margin-top:40px;display:flex;align-items:center;justify-content:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field .tpc-modal-content-export-field-input{width:500px;background-color:#fff;font-weight:300;color:#a4afb7;padding-right:25px;border-radius:0 3px 3px 0;border:none;height:55px;font-size:16px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field .tpc-modal-content-export-field-input:disabled{cursor:not-allowed}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field .tpc-modal-content-export-field-submit{color:#fff;display:flex;justify-content:center;width:150px;border-radius:3px 0 0 3px;background-color:#39b54a;height:55px;font-size:16px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field .tpc-modal-content-export-field-submit svg{-webkit-animation:a 2s infinite linear;animation:a 2s infinite linear}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field .tpc-modal-content-export-field-input-label{cursor:pointer;width:150px;display:flex;justify-content:center;align-items:center}.components-toggle-control *{cursor:pointer}.components-button.is-loading svg{-webkit-animation:icon-spin 2s linear infinite;animation:icon-spin 2s linear infinite}.components-popover{z-index:9999999}@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(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%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content iframe{width:1440px}}@media(min-width: 1440px){.tpc-template-cloud-modal .components-modal__frame{max-width:1200px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content iframe{width:1710px}}@-webkit-keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}@keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}
 
beaver/build/index.asset.php DELETED
@@ -1 +0,0 @@
1
- <?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives'), 'version' => '3049831f2b1d6e68abb40cc12dbfe27b');
 
beaver/build/index.css DELETED
@@ -1 +0,0 @@
1
- .fl-row-overlay .fl-builder-has-submenu.fl-builder-submenu-open>ul.fl-builder-submenu{width:200px}.tpc-template-cloud-export-modal{display:flex;flex-direction:column}.tpc-template-cloud-export-modal h1{font-size:16px}.tpc-template-cloud-export-modal label{margin-bottom:10px}.tpc-template-cloud-modal{z-index:999999}.tpc-template-cloud-modal .components-modal__frame{width:100%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content{padding:0;background-color:#fff}.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 .components-placeholder{box-shadow: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 .center .tabs:hover{background:transparent}.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;width:38px;height:38px;margin:5px 10px;padding:5px;border-radius:6px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button.is-sync{background:#f1f1f1;border:1px solid #d9d9d9}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button.is-sync: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.is-sync: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.is-sync:hover svg{fill:#f1f1f1}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .modal-header .right .components-button-group .components-button.is-sync svg{fill:#0073aa}.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}.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;background:transparent;font-weight:normal}.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{background:transparent}.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;background:transparent}.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 .preview-content iframe{height:560px;position:relative;z-index:99}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .is-loading{position:absolute;top:50%;right:calc( 50% - 12px )}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content .is-loading svg{-webkit-animation:icon-spin 2s linear infinite;animation:icon-spin 2s linear infinite}.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-modal__content .tpc-modal-content .tpc-modal-content-export{padding:50px 0}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-icon{display:flex;justify-content:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-icon svg{fill:#c2cbd2;width:65px;height:65px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-title{color:#6d7882;text-align:center;font-size:30px;font-weight:500;margin-top:20px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field{margin-top:40px;display:flex;align-items:center;justify-content:center}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field .tpc-modal-content-export-field-input{width:500px;background-color:#fff;font-weight:300;color:#a4afb7;padding-left:25px;border-radius:3px 0 0 3px;border:none;height:55px;font-size:16px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field .tpc-modal-content-export-field-input:disabled{cursor:not-allowed}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field .tpc-modal-content-export-field-submit{color:#fff;display:flex;justify-content:center;width:150px;border-radius:0 3px 3px 0;background-color:#39b54a;height:55px;font-size:16px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field .tpc-modal-content-export-field-submit svg{-webkit-animation:a 2s infinite linear;animation:a 2s infinite linear}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .tpc-modal-content-export .tpc-modal-content-export-field .tpc-modal-content-export-field-input-label{cursor:pointer;width:150px;display:flex;justify-content:center;align-items:center}.components-toggle-control *{cursor:pointer}.components-button.is-loading svg{-webkit-animation:icon-spin 2s linear infinite;animation:icon-spin 2s linear infinite}.components-popover{z-index:9999999}@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(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%}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content iframe{width:1440px}}@media(min-width: 1440px){.tpc-template-cloud-modal .components-modal__frame{max-width:1200px}.tpc-template-cloud-modal .components-modal__frame .components-modal__content .tpc-modal-content .preview-content iframe{width:1710px}}@-webkit-keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
 
beaver/build/index.js DELETED
@@ -1 +0,0 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=29)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.regeneratorRuntime},function(e,t,r){var n=r(18),c=r(19),a=r(15),i=r(20);e.exports=function(e,t){return n(e)||c(e,t)||a(e,t)||i()}},function(e,t){function r(e,t,r,n,c,a,i){try{var o=e[a](i),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(n,c)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(c,a){var i=e.apply(t,n);function o(e){r(i,c,a,o,s,"next",e)}function s(e){r(i,c,a,o,s,"throw",e)}o(void 0)}))}}},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var i=c.apply(null,n);i&&e.push(i)}else if("object"===a)for(var o in n)r.call(n,o)&&n[o]&&e.push(o)}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(n=function(){return c}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";const n=r(26),c=r(27),a=r(28);function i(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function o(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function s(e,t){return t.decode?c(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 p(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 d(e,t){i((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const c="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!c&&s(r,e).includes(e.arrayFormatSeparator);r=a?s(r,e):r;const i=c||a?r.split(e.arrayFormatSeparator).map(t=>s(t,e)):null===r?r:s(r,e);n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const c of e.split("&")){let[e,i]=a(t.decode?c.replace(/\+/g," "):c,"=");i=void 0===i?null:["comma","separator"].includes(t.arrayFormat)?i:s(i,t),r(s(e,t),i,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?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}(r):e[t]=r,e},Object.create(null))}t.extract=u,t.parse=d,t.stringify=(e,t)=>{if(!e)return"";i((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const c=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[o(t,e),"[",c,"]"].join("")]:[...r,[o(t,e),"[",o(c,e),"]=",o(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[o(t,e),"[]"].join("")]:[...r,[o(t,e),"[]=",o(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null==n||0===n.length?r:0===r.length?[[o(t,e),"=",o(n,e)].join("")]:[[r,o(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,o(t,e)]:[...r,[o(t,e),"=",o(n,e)].join("")]}}(t),c={};for(const t of Object.keys(e))r(t)||(c[t]=e[t]);const a=Object.keys(c);return!1!==t.sort&&a.sort(t.sort),a.map(r=>{const c=e[r];return void 0===c?"":null===c?o(r,t):Array.isArray(c)?c.reduce(n(r),[]).join("&"):o(r,t)+"="+o(c,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=a(e,"#");return Object.assign({url:r.split("?")[0]||"",query:d(u(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:s(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=l(e.url).split("?")[0]||"",c=t.extract(e.url),a=t.parse(c,{sort:!1}),i=Object.assign(a,e.query);let s=t.stringify(i,r);s&&(s="?"+s);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u="#"+o(e.fragmentIdentifier,r)),`${n}${s}${u}`}},function(e,t){e.exports=window.wp.apiFetch},function(e,t,r){var n=r(23),c=r(24),a=r(15),i=r(25);e.exports=function(e){return n(e)||c(e)||a(e)||i()}},,function(e,t){e.exports=window.wp.i18n},,function(e,t,r){var n=r(16);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},function(e,t){e.exports=window.wp.keycodes},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 r=[],n=!0,c=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){c=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(c)throw a}}return r}}},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){if(3===parseInt(window.tiTpc.tier)){var r=document.getElementById("tmpl-fl-row-overlay");if(window.tiTpc.tpcExport=function(e){var t=e.closest(".fl-row").dataset.node,r='<div class="tpc-template-cloud-export-modal">\n\t\t<h1>'.concat(window.tiTpc.exporter.modalLabel,'</h1>\n\t\t<label for="tpc-').concat(t,'">').concat(window.tiTpc.exporter.textLabel,'</label>\n\t\t<input id="tpc-').concat(t,'" type="text" placeholder="').concat(window.tiTpc.exporter.textPlaceholder,'" />\n\t</div>');FLBuilder.confirm({message:r,ok:function(){var e=document.getElementById("tpc-".concat(t)).value||"Template";setTimeout((function(){FLBuilder.showAjaxLoader(),FLBuilder.ajax({action:"ti_export_template",node:t,title:e},(function(e){void 0===e.success||e.success||FLBuilder.alert("<h1>".concat(window.tiTpc.exporter.exportFailed,"</h1> ").concat(e.data)),FLBuilder.hideAjaxLoader()}))}),1e3)},strings:{ok:window.tiTpc.exporter.buttonLabel,cancel:window.tiTpc.exporter.cancelLabel}})},r){var n=r.textContent;r.textContent=n.replace('<li><a class="fl-block-row-reset" href="javascript:void(0);">Reset Row Width</a></li>','<li><a class="fl-block-row-reset" href="javascript:void(0);">Reset Row Width</a></li><li><a class="fl-block-row-tpc-export" onclick="window.tiTpc.tpcExport(this)" href="javascript:void(0);">Save to Neve Cloud</a></li>')}FLBuilder.addHook("tiTpcExport",(function(){window.tiTpc.initModalExport()}))}},function(e,t,r){},function(e,t,r){var n=r(16);e.exports=function(e){if(Array.isArray(e))return n(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,r){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,r){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),c=new RegExp("(%[a-f0-9]{2})+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],a(r),a(n))}function i(e){try{return decodeURIComponent(e)}catch(c){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=a(t,r).join("")).match(n);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":"��"},r=c.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=i(r[0]);n!==r[0]&&(t[r[0]]=n)}r=c.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),o=0;o<a.length;o++){var s=a[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},function(e,t,r){"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 r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},function(e,t,r){"use strict";r.r(t);var n=r(8),c=r.n(n),a=r(5),i=r.n(a),o=r(0),s=r(1),l=r(3);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d={isFetching:!0,isPreview:!1,tab:3===parseInt(window.tiTpc?window.tiTpc.tier:0)?"library":"templates",templates:{items:[],currentPage:0,totalPages:0},library:{items:[],currentPage:0,totalPages:0},preview:{}};Object(l.registerStore)("tpc/beaver",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;return"SET_FETCHING"===t.type?p(p({},e),{},{isFetching:t.isFetching}):"TOGGLE_PREVIEW"===t.type?p(p({},e),{},{isPreview:!e.isPreview}):"UPDATE_CURRENT_TAB"===t.type?p(p({},e),{},{tab:t.tab}):"UPDATE_TEMPLATES"===t.type?p(p({},e),{},{templates:{items:t.items,currentPage:Number(t.currentPage),totalPages:Number(t.totalPages)}}):"UPDATE_LIBRARY"===t.type?p(p({},e),{},{library:{items:t.items,currentPage:Number(t.currentPage),totalPages:Number(t.totalPages)}}):"SET_PREVIEW_DATA"===t.type?p(p({},e),{},{preview:t.preview}):e},selectors:{isFetching:function(e){return e.isFetching},isPreview:function(e){return e.isPreview},getCurrentTab:function(e){return e.tab},getTemplates:function(e){return e.templates},getLibrary:function(e){return e.library},getPreview:function(e){return e.preview}},actions:{setFetching:function(e){return{type:"SET_FETCHING",isFetching:e}},togglePreview:function(e){return{type:"TOGGLE_PREVIEW",isPreview:e}},updateCurrentTab:function(e){return{type:"UPDATE_CURRENT_TAB",tab:e}},updateTemplates:function(e,t,r){return{type:"UPDATE_TEMPLATES",items:e,currentPage:t,totalPages:r}},updateLibrary:function(e,t,r){return{type:"UPDATE_LIBRARY",items:e,currentPage:t,totalPages:r}},setPreviewData:function(e){return{type:"SET_PREVIEW_DATA",preview:e}}}}),r(21),r(22);var m,b=r(4),f=r.n(b),w=r(6),y=r.n(w),g=r(7),v=r.n(g),O=new Uint8Array(16);function h(){if(!m&&!(m="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 m(O)}for(var j=/^(?:[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,E=function(e){return"string"==typeof e&&j.test(e)},x=[],T=0;T<256;++T)x.push((T+256).toString(16).substr(1));var S=function(e,t,r){var n=(e=e||{}).random||(e.rng||h)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var c=0;c<16;++c)t[r+c]=n[c];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(x[e[t+0]]+x[e[t+1]]+x[e[t+2]]+x[e[t+3]]+"-"+x[e[t+4]]+x[e[t+5]]+"-"+x[e[t+6]]+x[e[t+7]]+"-"+x[e[t+8]]+x[e[t+9]]+"-"+x[e[t+10]]+x[e[t+11]]+x[e[t+12]]+x[e[t+13]]+x[e[t+14]]+x[e[t+15]]).toLowerCase();if(!E(r))throw TypeError("Stringified UUID is invalid");return r}(n)},P=r(2),k=Object(o.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(P.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"})),C=Object(o.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(P.Path,{d:"M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z"})),_=Object(o.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(P.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"})),B=wp.primitives,N=B.Path,L=B.SVG,F=function(){return Object(o.createElement)(L,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tpc-template-cloud-icon"},Object(o.createElement)(N,{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(o.createElement)(N,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(o.createElement)(N,{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"}))},D=r(11),I=r.n(D),A=r(9),M=r(10),V=r.n(M);function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var H=lodash.omit,U=function(e){return FLBuilder.alert(e)},G=Object(l.dispatch)("tpc/beaver").setFetching,Q=function(){var e=y()(f.a.mark((function e(){var t,r,n,c,a,i,o,s,u,p=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.length>0&&void 0!==p[0]?p[0]:{},r=z(z({cache:localStorage.getItem("tpcCacheBuster")},window.tiTpc.params),{},{per_page:20,page:0,premade:!0,template_site_slug:"general"},H(t,"isScroll")),n=Object(A.stringifyUrl)({url:window.tiTpc.endpoint+"page-templates",query:r}),e.prev=3,G(!0),e.next=7,V()({url:n,method:"GET",parse:!1});case 7:if(c=e.sent,G(!1),!c.ok){e.next=20;break}return e.next=12,c.json();case 12:if(!(a=e.sent).message){e.next=15;break}return e.abrupt("return",U(a.message));case 15:i=a,t.isScroll&&(o=Object(l.select)("tpc/beaver").getTemplates(),i=[].concat(I()(o.items),I()(a))),s=c.headers.get("x-wp-totalpages"),u=r.page,Object(l.dispatch)("tpc/beaver").updateTemplates(i,u,s);case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(3),e.t0.message&&U(e.t0.message);case 25:case"end":return e.stop()}}),e,null,[[3,22]])})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=y()(f.a.mark((function e(){var t,r,n,c,a,i,o,s,u,p=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.length>0&&void 0!==p[0]?p[0]:{},r=z({per_page:20,page:0},H(t,"isScroll")),n=Object(A.stringifyUrl)({url:window.tiTpc.endpoint+"templates",query:z(z({cache:localStorage.getItem("tpcCacheBuster")},window.tiTpc.params),r)}),e.prev=3,G(!0),e.next=7,V()({url:n,method:"GET",parse:!1});case 7:if(c=e.sent,G(!1),!c.ok){e.next=20;break}return e.next=12,c.json();case 12:if(!(a=e.sent).message){e.next=15;break}return e.abrupt("return",U(a.message));case 15:i=a,t.isScroll&&(o=Object(l.select)("tpc/beaver").getLibrary(),i=[].concat(I()(o.items),I()(a))),s=c.headers.get("x-wp-totalpages"),u=r.page,Object(l.dispatch)("tpc/beaver").updateLibrary(i,u,s);case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(3),e.t0.message&&U(e.t0.message);case 25:case"end":return e.stop()}}),e,null,[[3,22]])})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=y()(f.a.mark((function e(t){var r,n,c;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(A.stringifyUrl)({url:"".concat(window.tiTpc.endpoint,"templates/").concat(t.template_id),query:z(z({cache:localStorage.getItem("tpcCacheBuster")},window.tiTpc.params),t)}),e.prev=1,e.next=4,V()({url:r,method:"POST",parse:!1});case 4:if(!(n=e.sent).ok){e.next=11;break}return e.next=8,n.json();case 8:if(!(c=e.sent).message){e.next=11;break}return e.abrupt("return",U(c.message));case 11:return localStorage.setItem("tpcCacheBuster",S()),e.next=14,$();case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),e.t0.message&&U(e.t0.message);case 19:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),W=function(){var e=y()(f.a.mark((function e(t){var r,n,c;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(A.stringifyUrl)({url:"".concat(window.tiTpc.endpoint,"templates/").concat(t),query:z({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},window.tiTpc.params)}),e.prev=1,e.next=4,V()({url:r,method:"POST"});case 4:if(!(n=e.sent).ok){e.next=11;break}return e.next=8,n.json();case 8:if(!(c=e.sent).message){e.next=11;break}return e.abrupt("return",U(c.message));case 11:return localStorage.setItem("tpcCacheBuster",S()),e.next=14,$();case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),e.t0.message&&U(e.t0.message);case 19:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}();function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var K=function(e){var t=e.closeModal,r=e.getOrder,n=e.getSearchQuery,c=Object(l.useDispatch)("tpc/beaver"),a=c.setFetching,i=c.updateCurrentTab,u={templates:window.tiTpc.library.tabs.templates};3===parseInt(window.tiTpc.tier)&&(u.library=window.tiTpc.library.tabs.library);var p=Object(l.useSelect)((function(e){return e("tpc/beaver").isFetching()})),d=Object(l.useSelect)((function(e){return e("tpc/beaver").isPreview()})),m=Object(l.useSelect)((function(e){return e("tpc/beaver").getCurrentTab()})),b=function(){var e=y()(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.localStorage.setItem("tpcCacheBuster",S()),a(!0),t=r(),e.next=5,Q(Y({search:n()},t));case 5:return e.next=7,$(Y({search:n()},t));case 7:a(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(o.createElement)("div",{className:"modal-header"},Object(o.createElement)("div",{className:"left"},Object(o.createElement)(s.Icon,{icon:F})),Object(o.createElement)("div",{className:"center"},Object.keys(u).map((function(e){return Object(o.createElement)(s.Button,{key:e,onClick:function(){return i(e)},className:v()("tabs",{"is-active":e===m})},u[e])}))),Object(o.createElement)("div",{className:"right"},!d&&Object(o.createElement)(s.ButtonGroup,null,"library"===m&&Object(o.createElement)(s.Button,{label:window.tiTpc.library.actions.sync,icon:k,disabled:p,className:v()("is-sync",{"is-loading":p}),onClick:b}),window.tiTpc.postTypes.includes(window.tiTpc.postType)&&3===parseInt(window.tiTpc.tier)&&Object(o.createElement)(s.Button,{label:window.tiTpc.library.actions.save,icon:C,onClick:function(){return i("export")}})),Object(o.createElement)(s.Button,{label:window.tiTpc.library.actions.close,icon:_,onClick:t})))},J=r(13),X=Object(o.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(P.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),ee=function(e){var t=e.isFetching,r=e.importTemplate,n=Object(l.useDispatch)("tpc/beaver").togglePreview,c=Object(l.useSelect)((function(e){return e("tpc/beaver").getPreview()})).item;return Object(o.createElement)("div",{className:"tpc-modal-content"},Object(o.createElement)("div",{className:"preview-header"},Object(o.createElement)("div",{className:"left"},c.template_name||Object(J.__)("Template")),Object(o.createElement)("div",{className:"right"},Object(o.createElement)(s.Button,{isSecondary:!0,onClick:n},Object(J.__)("Close Preview")),Object(o.createElement)(s.Button,{isPrimary:!0,isBusy:t,disabled:t,onClick:function(){n(),r(c.template_id)}},Object(J.__)("Import")))),t?Object(o.createElement)(s.Placeholder,null,Object(o.createElement)(s.Spinner,null)):Object(o.createElement)("div",{className:"preview-content"},Object(o.createElement)("iframe",{src:c.link||"",title:c.template_name||""}),Object(o.createElement)("div",{className:"is-loading"},Object(o.createElement)(s.Icon,{icon:X}))))},te=function(){var e=Object(l.useDispatch)("tpc/beaver").updateCurrentTab,t=Object(o.useState)(!1),r=i()(t,2),n=r[0],c=r[1],a=Object(o.useState)(Boolean(window.tiTpc.postMeta._ti_tpc_template_sync)),u=i()(a,2),p=u[0],d=u[1],m=Object(o.useState)(window.tiTpc.postMeta._ti_tpc_screenshot_url),b=i()(m,2),f=b[0],w=b[1],y=Object(o.useState)(window.tiTpc.postMeta._ti_tpc_site_slug),g=i()(y,2),v=g[0],O=g[1],h=Object(o.useState)("yes"===window.tiTpc.postMeta._ti_tpc_published),j=i()(h,2),E=j[0],x=j[1];return Object(o.useEffect)((function(){window.tiTpc.postMeta._ti_tpc_template_sync=p,window.tiTpc.postMeta._ti_tpc_screenshot_url=f,window.tiTpc.postMeta._ti_tpc_site_slug=v,window.tiTpc.postMeta._ti_tpc_published=E?"yes":"no"}),[p,f,v,E]),Object(o.createElement)("div",{className:"tpc-modal-content"},Object(o.createElement)("div",{className:"tpc-modal-content-export"},Object(o.createElement)("div",{className:"tpc-modal-content-export-icon"},Object(o.createElement)(s.Icon,{icon:C})),Object(o.createElement)("div",{className:"tpc-modal-content-export-title"},window.tiTpc.library.export.title),Object(o.createElement)("div",{className:"tpc-modal-content-export-field"},Object(o.createElement)("input",{className:"tpc-modal-content-export-field-input",value:window.tiTpc.pageTitle||window.tiTpc.exporter.textPlaceholder,disabled:!0}),Object(o.createElement)(s.Button,{className:"tpc-modal-content-export-field-submit",disabled:n,icon:n?X:"",onClick:function(){c(!0),FLBuilder.ajax({action:"ti_export_page_template",is_sync:Number(p)},(function(t){if(c(!1),void 0!==t.success&&!t.success)return FLBuilder.alert("<h1>".concat(window.tiTpc.exporter.exportFailed,"</h1> ").concat(t.data));localStorage.setItem("tpcCacheBuster",S()),$(),e("library")}))}},window.tiTpc.library.export.save)),Object(o.createElement)("div",{className:"tpc-modal-content-export-field"},Object(o.createElement)(s.ToggleControl,{label:window.tiTpc.exporter.toggleLabel,checked:p,onChange:function(){return d(!p)}})),window.tiTpc.canPredefine&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"tpc-modal-content-export-field"},Object(o.createElement)("label",{htmlFor:"tpc-template-screenshot",className:"tpc-modal-content-export-field-input-label"},window.tiTpc.library.export.labelScreenshot),Object(o.createElement)("input",{className:"tpc-modal-content-export-field-input",id:"tpc-template-screenshot",value:f,onChange:function(e){return w(e.target.value)}})),Object(o.createElement)("div",{className:"tpc-modal-content-export-field"},Object(o.createElement)("label",{htmlFor:"tpc-template-slug",className:"tpc-modal-content-export-field-input-label"},window.tiTpc.library.export.labelSlug),Object(o.createElement)("input",{className:"tpc-modal-content-export-field-input",id:"tpc-template-slug",value:v,onChange:function(e){return O(e.target.value)}})),Object(o.createElement)("div",{className:"tpc-modal-content-export-field"},Object(o.createElement)(s.Button,{className:"tpc-modal-content-export-field-submit",disabled:n,icon:n?X:"",onClick:function(){c(!0),FLBuilder.ajax({action:"ti_publish_template",slug:v,screenshot:f,premade:E?"no":"yes"},(function(e){if(c(!1),void 0!==e.success&&!e.success)return FLBuilder.alert("<h1>".concat(window.tiTpc.exporter.exportFailed,"</h1> ").concat(e.data));x(!E),localStorage.setItem("tpcCacheBuster",S())}))}},E?window.tiTpc.library.export.unpublish:window.tiTpc.library.export.publish)))))},re=Object(o.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(P.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"})),ne=Object(o.createElement)(P.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(P.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),ce=Object(o.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(P.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"})),ae=r(17);function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var se={date:window.tiTpc.library.filters.sortLabels.date,template_name:window.tiTpc.library.filters.sortLabels.name,modified:window.tiTpc.library.filters.sortLabels.modified},le=function(e){var t=e.layout,r=e.sortingOrder,n=e.setLayout,c=e.searchQuery,a=e.onSearch,i=e.setSearchQuery,l=e.setSortingOrder,u=e.changeOrder,p=e.isSearch;return Object(o.createElement)("div",{className:"filters"},Object(o.createElement)("div",{className:"display-sorting"},Object(o.createElement)("div",{className:"sorting-label"},window.tiTpc.library.filters.sortLabel),Object(o.createElement)("div",{className:"sorting-filter"},Object.keys(se).map((function(e){return Object(o.createElement)(s.Button,{key:e,className:v()({"is-selected":e===r.orderby,"is-asc":"ASC"===r.order}),onClick:function(){var t={order:"DESC",orderby:e};e===r.orderby&&"DESC"===r.order&&(t.order="ASC"),l(oe({},t)),u(oe({},t))}},se[e])})))),Object(o.createElement)("div",{className:"view-filters"},Object(o.createElement)("div",{className:"search-filters"},Object(o.createElement)("input",{placeholder:window.tiTpc.library.filters.searchLabel,className:"filter-search",value:c,onChange:function(e){return i(e.target.value)},onKeyDown:function(e){e.keyCode===ae.ENTER&&a()}}),p?Object(o.createElement)(s.Button,{label:window.tiTpc.library.filters.clearSearch,icon:_,onClick:function(){i(""),a("")}}):Object(o.createElement)(s.Icon,{icon:re})),Object(o.createElement)(s.Button,{label:window.tiTpc.library.filters.sortLabels.list,icon:ne,onClick:function(){return n("list")},isPressed:"list"===t}),Object(o.createElement)(s.Button,{label:window.tiTpc.library.filters.sortLabels.grid,icon:ce,onClick:function(){return n("grid")},isPressed:"grid"===t})))},ue=Object(o.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(P.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"})),pe=Object(o.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(P.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"})),de=Object(o.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(P.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"})),me=Object(o.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(P.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),be=function(e){var t=e.layout,r=e.item,n=e.importTemplate,c=e.deletable,a=Object(l.useDispatch)("tpc/beaver"),u=a.togglePreview,p=a.setPreviewData,d=Object(o.useState)(!1),m=i()(d,2),b=m[0],w=m[1],g=Object(o.useState)(!1),O=i()(g,2),h=O[0],j=O[1],E=Object(o.useState)(r.template_name),x=i()(E,2),T=x[0],S=x[1],P=function(){var e=y()(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w("updating"),e.next=3,q({template_id:r.template_id,template_name:T||r.template_name});case 3:return e.next=5,$();case 5:w(!1),j(!h);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=y()(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm(window.tiTpc.library.deleteItem)){e.next=2;break}return e.abrupt("return",!1);case 2:return w("deleting"),e.next=5,W(r.template_id);case 5:w(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=y()(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u(),p({type:"library",item:r});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("grid"===t){var B={backgroundImage:"url(".concat(r.template_thumbnail,")")};return Object(o.createElement)("div",{key:r.template_id,className:"table-grid"},Object(o.createElement)("div",{style:B,className:v()("grid-preview",{"is-loading":h||!1!==b})},Object(o.createElement)("div",{className:"preview-actions"},!c&&r.link&&Object(o.createElement)(s.Button,{isSecondary:!0,disabled:!1!==b,onClick:_},window.tiTpc.library.actions.preview),Object(o.createElement)(s.Button,{isPrimary:!0,isBusy:"importing"===b,disabled:!1!==b,onClick:function(){return n(r.template_id)}},window.tiTpc.library.actions.import),c&&Object(o.createElement)("div",{className:"preview-controls"},Object(o.createElement)(s.Button,{label:window.tiTpc.library.actions.delete,icon:"deleting"===b?k:ue,disabled:!1!==b,className:v()({"is-loading":"deleting"===b}),onClick:C})))),Object(o.createElement)("div",{className:"card-footer"},Object(o.createElement)("p",null,r.template_name)))}var N=v()("actions",{"no-controls":!c});return Object(o.createElement)("div",{key:r.template_id,className:"table-row"},Object(o.createElement)("div",{className:"row-title"},Object(o.createElement)(s.Icon,{icon:pe}),h?Object(o.createElement)(s.TextControl,{label:window.tiTpc.exporter.textLabel,hideLabelFromVision:!0,value:T,onChange:S}):r.template_name),c&&Object(o.createElement)("div",{className:"row-controls"},r.link?Object(o.createElement)(s.Tooltip,{text:window.tiTpc.library.synced},Object(o.createElement)(s.Button,{label:window.tiTpc.library.actions.edit,icon:de,disabled:!0},window.tiTpc.library.actions.edit)):Object(o.createElement)(s.Button,{label:h?window.tiTpc.library.actions.update:window.tiTpc.library.actions.edit,icon:h?"updating"===b?k:me:de,disabled:!1!==b,className:v()({"is-loading":"updating"===b}),onClick:h?P:function(){return j(!h)}},h?window.tiTpc.library.actions.update:window.tiTpc.library.actions.edit),Object(o.createElement)(s.Button,{label:window.tiTpc.library.actions.delete,icon:"deleting"===b?k:ue,disabled:!1!==b,className:v()({"is-loading":"deleting"===b}),onClick:C},"deleting"===b?window.tiTpc.library.actions.deleting+"...":window.tiTpc.library.actions.delete)),Object(o.createElement)("div",{className:N},!c&&r.link&&Object(o.createElement)(s.Button,{isSecondary:!0,disabled:!1!==b,onClick:_},window.tiTpc.library.actions.preview),Object(o.createElement)(s.Button,{isPrimary:!0,isBusy:"importing"===b,disabled:!1!==b,onClick:function(){return n(r.template_id)}},window.tiTpc.library.actions.import)))},fe=function(e){var t=e.total,r=e.current,n=e.onChange;if(t<2)return null;for(var c=[],a=function(e){var t=e===r;c.push(Object(o.createElement)(s.Button,{key:"page-".concat(e),isPrimary:t,disabled:t,onClick:function(){return n(e)}},e+1))},i=0;i<t;i++)a(i);return Object(o.createElement)(s.ButtonGroup,{className:"pagination"},c)};function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge=function(e){var t=e.importTemplate,r=e.isGeneral,n=void 0!==r&&r,c=e.isFetching,a=e.getOrder,u=e.setQuery,p=e.getSearchQuery,d=e.setSorting,m=e.isSearch,b=e.setSearch,w=Object(l.useSelect)((function(e){return n?e("tpc/beaver").getTemplates():e("tpc/beaver").getLibrary()})),g=w.items,O=w.currentPage,h=w.totalPages,j=Object(l.useDispatch)("tpc/beaver").setFetching,E=Object(o.useState)("grid"),x=i()(E,2),T=x[0],S=x[1],P=function(){var e=y()(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a(),!n){e.next=6;break}return e.next=4,Q(ye({search:p()},t));case 4:e.next=8;break;case 6:return e.next=8,$(ye({search:p()},t));case 8:j(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(o.useEffect)((function(){g&&g.length>0||P()}),[n]);var k=function(){var e=y()(f.a.mark((function e(){var t,r,c=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:p(),j(!0),b(!!t),r=a(),!n){e.next=9;break}return e.next=7,Q(ye({search:t},r));case 7:e.next=11;break;case 9:return e.next=11,$(ye({search:t},r));case 11:j(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=y()(f.a.mark((function e(t){var r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(j(!0),r=a(),!n){e.next=7;break}return e.next=5,Q(ye({search:p(),page:t},r));case 5:e.next=9;break;case 7:return e.next=9,$(ye({search:p(),page:t},r));case 9:j(!1);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=y()(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(j(!0),!n){e.next=6;break}return e.next=4,Q(ye(ye({},t),{},{search:p()}));case 4:e.next=8;break;case 6:return e.next=8,$(ye(ye({},t),{},{search:p()}));case 8:j(!1);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();if(c)return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(le,{layout:T,sortingOrder:a(),setLayout:S,searchQuery:p(),onSearch:k,setSearchQuery:u,setSortingOrder:d,changeOrder:_,isSearch:m}),Object(o.createElement)(s.Placeholder,null,Object(o.createElement)(s.Spinner,null)));if(!Boolean(g.length))return Object(o.createElement)("div",{className:"table-content"},Object(o.createElement)(le,{layout:T,sortingOrder:a(),setLayout:S,searchQuery:p(),onSearch:k,setSearchQuery:u,setSortingOrder:d,changeOrder:_,isSearch:m}),window.tiTpc.library[404]);var B=v()("table-content",{"is-grid":"grid"===T});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(le,{layout:T,sortingOrder:a(),setLayout:S,searchQuery:p(),onSearch:k,setSearchQuery:u,setSortingOrder:d,changeOrder:_,isSearch:m}),Object(o.createElement)("div",{className:B},g.map((function(e){return Object(o.createElement)(be,{sortingOrder:a(),deletable:!n,key:e.template_id,layout:T,item:e,importTemplate:t})}))),Object(o.createElement)(fe,{onChange:C,current:O,total:h}))},ve=function(e){var t=e.importTemplate,r=e.getOrder,n=e.setQuery,c=e.getSearchQuery,a=e.setSorting,i=e.isSearch,s=e.setSearch,u=Object(l.useSelect)((function(e){return e("tpc/beaver").isFetching()})),p=Object(l.useSelect)((function(e){return e("tpc/beaver").isPreview()})),d=Object(l.useSelect)((function(e){return e("tpc/beaver").getCurrentTab()}));return p?Object(o.createElement)(ee,{isFetching:u,importTemplate:t}):"export"===d?Object(o.createElement)(te,null):Object(o.createElement)("div",{className:"tpc-modal-content"},Object(o.createElement)(ge,{isFetching:u,isGeneral:"templates"===d,importTemplate:t,getOrder:r,setQuery:n,getSearchQuery:c,setSorting:a,isSearch:i,setSearch:s}))};function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}window.tiTpc||(window.tiTpc={});var je=document.createElement("div");je.id="ti-tpc-beaver-modal",je.style="display:none;",document.body.appendChild(je),Object(o.render)(Object(o.createElement)((function(){var e=Object(l.useSelect)((function(e){return e("tpc/beaver").getCurrentTab()})),t=Object(l.useDispatch)("tpc/beaver"),r=t.setFetching,n=t.updateCurrentTab,c=Object(o.useState)(null),a=i()(c,2),u=a[0],p=a[1],d=Object(o.useState)(!1),m=i()(d,2),b=m[0],f=m[1],w=Object(o.useState)({templates:"",library:""}),y=i()(w,2),g=y[0],v=y[1],O=Object(o.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),h=i()(O,2),j=h[0],E=h[1],x=Object(o.useState)({templates:!1,library:!1}),T=i()(x,2),S=T[0],P=T[1];window.tiTpc.initBeaver=function(e){return function(e){p(e),f(!0)}(e)},window.tiTpc.initModalExport=function(){f(!0),n("export")};var k=function(){f(!1),FLBuilder._settingsCancelClicked()},C="templates"===e,_=function(){return C?g.templates:g.library},B=function(){return C?j.templates:j.library};return b?Object(o.createElement)(s.Modal,{title:window.tiTpc.library.templatesCloud,shouldCloseOnClickOutside:!1,onRequestClose:k,isDismissible:!1,overlayClassName:"tpc-template-cloud-modal"},Object(o.createElement)(K,{closeModal:k,getOrder:B,getSearchQuery:_}),Object(o.createElement)(ve,{importTemplate:function(e){r(!0),FLBuilder.ajax({action:"ti_get_position",node:u},(function(t){FLBuilder._settingsCancelClicked();var n=t;FLBuilder.ajax({action:"ti_apply_template",template:e,position:n},(function(e){if(r(!1),void 0!==e.success&&!e.success)return FLBuilder.alert("<h1>".concat(window.tiTpc.exporter.importFailed,"</h1> ").concat(e.data));k();var t=FLBuilder._jsonParse(e);t.layout&&(FLBuilder._renderLayout(t.layout),FLBuilder.triggerHook("didApplyTemplate"))}))}))},getOrder:B,setQuery:function(e){return v(he(he({},g),{},C?{templates:e}:{library:e}))},getSearchQuery:_,setSorting:function(e){return E(he(he({},j),{},C?{templates:e}:{library:e}))},isSearch:C?S.templates:S.library,setSearch:function(e){return P(C?he(he({},g),{},{templates:e}):he(he({},S),{},{library:e}))}})):Object(o.createElement)("p",null,":)")}),null),document.getElementById("ti-tpc-beaver-modal"))}]);
 
editor/build/index-rtl.css DELETED
@@ -1 +0,0 @@
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)}}
 
editor/build/index.asset.php DELETED
@@ -1 +0,0 @@
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' => 'e0e46189f874af1ba2715737a636a00d');
 
editor/build/index.css DELETED
@@ -1 +0,0 @@
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)}}
 
editor/build/index.js DELETED
@@ -1 +0,0 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=30)}([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){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.primitives},function(e,t){function r(e,t,r,n,c,a,i){try{var o=e[a](i),s=o.value}catch(e){return void r(e)}o.done?t(s):Promise.resolve(s).then(n,c)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(c,a){var i=e.apply(t,n);function o(e){r(i,c,a,o,s,"next",e)}function s(e){r(i,c,a,o,s,"throw",e)}o(void 0)}))}}},function(e,t,r){var n=r(22),c=r(23),a=r(24),i=r(26);e.exports=function(e,t){return n(e)||c(e,t)||a(e,t)||i()}},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var i=c.apply(null,n);i&&e.push(i)}else if("object"===a)for(var o in n)r.call(n,o)&&n[o]&&e.push(o)}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(n=function(){return c}.apply(t,[]))||(e.exports=n)}()},function(e,t,r){"use strict";const n=r(27),c=r(28),a=r(29);function i(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function o(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function s(e,t){return t.decode?c(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 p(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 m(e,t){i((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const c="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!c&&s(r,e).includes(e.arrayFormatSeparator);r=a?s(r,e):r;const i=c||a?r.split(e.arrayFormatSeparator).map(t=>s(t,e)):null===r?r:s(r,e);n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const c of e.split("&")){let[e,i]=a(t.decode?c.replace(/\+/g," "):c,"=");i=void 0===i?null:["comma","separator"].includes(t.arrayFormat)?i:s(i,t),r(s(e,t),i,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?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}(r):e[t]=r,e},Object.create(null))}t.extract=u,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";i((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const c=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[o(t,e),"[",c,"]"].join("")]:[...r,[o(t,e),"[",o(c,e),"]=",o(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[o(t,e),"[]"].join("")]:[...r,[o(t,e),"[]=",o(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null==n||0===n.length?r:0===r.length?[[o(t,e),"=",o(n,e)].join("")]:[[r,o(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,o(t,e)]:[...r,[o(t,e),"=",o(n,e)].join("")]}}(t),c={};for(const t of Object.keys(e))r(t)||(c[t]=e[t]);const a=Object.keys(c);return!1!==t.sort&&a.sort(t.sort),a.map(r=>{const c=e[r];return void 0===c?"":null===c?o(r,t):Array.isArray(c)?c.reduce(n(r),[]).join("&"):o(r,t)+"="+o(c,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=a(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(u(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:s(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=l(e.url).split("?")[0]||"",c=t.extract(e.url),a=t.parse(c,{sort:!1}),i=Object.assign(a,e.query);let s=t.stringify(i,r);s&&(s="?"+s);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u="#"+o(e.fragmentIdentifier,r)),`${n}${s}${u}`}},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.editPost},,,function(e,t){e.exports=window.wp.plugins},function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.keycodes},function(e,t,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 r=[],n=!0,c=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){c=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(c)throw a}}return r}}},function(e,t,r){var n=r(25);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];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,r){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,r){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),c=new RegExp("(%[a-f0-9]{2})+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],a(r),a(n))}function i(e){try{return decodeURIComponent(e)}catch(c){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=a(t,r).join("")).match(n);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":"��"},r=c.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=i(r[0]);n!==r[0]&&(t[r[0]]=n)}r=c.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),o=0;o<a.length;o++){var s=a[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},function(e,t,r){"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 r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},function(e,t,r){"use strict";r.r(t);var n=r(1),c=r(17),a=r(12),i=(r(21),r(10)),o=r.n(i),s=r(4);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p={isFetching:!0,isPreview:!1,tab:3===parseInt(window.tiTpc.tier)?"library":"templates",templates:[],patterns:[],library:{items:[],currentPage:0,totalPages:0},preview:{type:"templates",item:{}}};Object(s.registerStore)("tpc/block-editor",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0;return"SET_FETCHING"===t.type?u(u({},e),{},{isFetching:t.isFetching}):"TOGGLE_PREVIEW"===t.type?u(u({},e),{},{isPreview:!e.isPreview}):"UPDATE_CURRENT_TAB"===t.type?u(u({},e),{},{tab:t.tab,isPreview:!1}):"UPDATE_TEMPLATES"===t.type?u(u({},e),{},{templates:{items:t.items,currentPage:Number(t.currentPage),totalPages:Number(t.totalPages)}}):"UPDATE_PATTERNS"===t.type?u(u({},e),{},{patterns:t.items}):"UPDATE_LIBRARY"===t.type?u(u({},e),{},{library:{items:t.items,currentPage:Number(t.currentPage),totalPages:Number(t.totalPages)}}):"SET_PREVIEW_DATA"===t.type?u(u({},e),{},{preview:t.preview}):e},selectors:{isFetching:function(e){return e.isFetching},isPreview:function(e){return e.isPreview},getCurrentTab:function(e){return e.tab},getTemplates:function(e){return e.templates},getPatterns:function(e){return e.patterns},getLibrary:function(e){return e.library},getPreview:function(e){return e.preview}},actions:{setFetching:function(e){return{type:"SET_FETCHING",isFetching:e}},togglePreview:function(e){return{type:"TOGGLE_PREVIEW",isPreview:e}},updateCurrentTab:function(e){return{type:"UPDATE_CURRENT_TAB",tab:e}},updateTemplates:function(e,t,r){return{type:"UPDATE_TEMPLATES",items:e,currentPage:t,totalPages:r}},updatePatterns:function(e){return{type:"UPDATE_PATTERNS",items:e}},updateLibrary:function(e,t,r){return{type:"UPDATE_LIBRARY",items:e,currentPage:t,totalPages:r}},setPreviewData:function(e){return{type:"SET_PREVIEW_DATA",preview:e}}}});var m,b=r(0),f=r(8),d=r.n(f),g=wp.primitives,O=g.Path,j=g.SVG,y=function(e){var t=e.className;return Object(b.createElement)(j,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:d()(["tpc-icon",t])},Object(b.createElement)(O,{d:"M22.8063 24H1.19365C0.534714 24 0 23.4653 0 22.8063V1.19365C0 0.534714 0.534714 0 1.19365 0H22.8063C23.4653 0 24 0.534714 24 1.19365V22.8063C24 23.4653 23.4653 24 22.8063 24Z",fill:"#14171C"}),Object(b.createElement)(O,{d:"M19.8466 20.8187V7.39687V4.43164H16.884H3.45947L6.422 7.39687H16.884V17.8562L19.8466 20.8187Z",fill:"white"}),Object(b.createElement)(O,{d:"M10.138 14.1429L10.1407 17.0838L12.7764 19.7195L12.7656 11.5152L4.55859 11.5044L7.19435 14.1375L10.138 14.1429Z",fill:"white"}))},h=function(){return Object(b.createElement)(j,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tpc-template-cloud-icon"},Object(b.createElement)(O,{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(b.createElement)(O,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(b.createElement)(O,{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"}))},v=r(3),w=r.n(v),_=r(6),E=r.n(_),k=r(7),P=r.n(k),x=r(11),S=r.n(x),T=r(2),C=r(14),N=r(9),B=new Uint8Array(16);function D(){if(!m&&!(m="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 m(B)}for(var I=/^(?:[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,A=function(e){return"string"==typeof e&&I.test(e)},F=[],L=0;L<256;++L)F.push((L+256).toString(16).substr(1));var V=function(e,t,r){var n=(e=e||{}).random||(e.rng||D)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var c=0;c<16;++c)t[r+c]=n[c];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(F[e[t+0]]+F[e[t+1]]+F[e[t+2]]+F[e[t+3]]+"-"+F[e[t+4]]+F[e[t+5]]+"-"+F[e[t+6]]+F[e[t+7]]+"-"+F[e[t+8]]+F[e[t+9]]+"-"+F[e[t+10]]+F[e[t+11]]+F[e[t+12]]+F[e[t+13]]+F[e[t+14]]+F[e[t+15]]).toLowerCase();if(!A(r))throw TypeError("Stringified UUID is invalid");return r}(n)};function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var R=lodash.omit,z=Object(s.dispatch)("tpc/block-editor"),H=z.updateLibrary,G=z.updateTemplates,Q=Object(s.dispatch)("core/notices").createNotice,q=function(e){Q("warning",e,{context:"themeisle-blocks/notices/templates-cloud",isDismissible:!0})},$=function(){var e=E()(w.a.mark((function e(){var t,r,n,c,a,i,o,s=arguments;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},r=M(M({cache:localStorage.getItem("tpcCacheBuster")},R(tiTpc.params,"meta")),{},{per_page:12,page:0,premade:!0,template_site_slug:"general"},t),n=Object(N.stringifyUrl)({url:tiTpc.endpoint+"page-templates",query:r}),e.prev=3,e.next=6,S()({url:n,method:"GET",parse:!1});case 6:if(!(c=e.sent).ok){e.next=16;break}return e.next=10,c.json();case 10:if(!(a=e.sent).message){e.next=13;break}return e.abrupt("return",q(a.message));case 13:i=c.headers.get("x-wp-totalpages"),o=r.page,G(a,o,i);case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(3),e.t0.message&&q(e.t0.message);case 21:case"end":return e.stop()}}),e,null,[[3,18]])})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=E()(w.a.mark((function e(){var t,r,n,c,a,i,o,s=arguments;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},r=M({per_page:12,page:0},t),n=Object(N.stringifyUrl)({url:tiTpc.endpoint+"templates",query:M(M({cache:localStorage.getItem("tpcCacheBuster")},R(tiTpc.params,"meta")),r)}),e.prev=3,e.next=6,S()({url:n,method:"GET",parse:!1});case 6:if(!(c=e.sent).ok){e.next=16;break}return e.next=10,c.json();case 10:if(!(a=e.sent).message){e.next=13;break}return e.abrupt("return",q(a.message));case 13:i=c.headers.get("x-wp-totalpages"),o=r.page,H(a,o,i);case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(3),e.t0.message&&q(e.t0.message);case 21:case"end":return e.stop()}}),e,null,[[3,18]])})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=E()(w.a.mark((function e(t){var r,n,c;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(N.stringifyUrl)({url:"".concat(tiTpc.endpoint,"templates/").concat(t.template_id),query:M(M({cache:localStorage.getItem("tpcCacheBuster")},R(tiTpc.params,"meta")),{},{meta:JSON.stringify(tiTpc.params.meta)},t)}),e.prev=1,e.next=4,S()({url:r,method:"POST",parse:!1});case 4:if(!(n=e.sent).ok){e.next=11;break}return e.next=8,n.json();case 8:if(!(c=e.sent).message){e.next=11;break}return e.abrupt("return",q(c.message));case 11:return localStorage.setItem("tpcCacheBuster",V()),e.next=14,$();case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),e.t0.message&&q(e.t0.message);case 19:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),J=function(){var e=E()(w.a.mark((function e(t){var r,n,c;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(N.stringifyUrl)({url:"".concat(window.tiTpc.endpoint,"templates/").concat(t),query:M({cache:localStorage.getItem("tpcCacheBuster")},R(tiTpc.params,"meta"))}),e.prev=1,e.next=4,S()({url:r,method:"GET",parse:!1});case 4:if(!(n=e.sent).ok){e.next=12;break}return e.next=8,n.json();case 8:if(!(c=e.sent).message){e.next=11;break}return e.abrupt("return",!1);case 11:return e.abrupt("return",c);case 12:e.next=17;break;case 14:return e.prev=14,e.t0=e.catch(1),e.abrupt("return",!1);case 17:case"end":return e.stop()}}),e,null,[[1,14]])})));return function(t){return e.apply(this,arguments)}}(),K=function(){var e=E()(w.a.mark((function e(t){var r,n,c;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(N.stringifyUrl)({url:"".concat(tiTpc.endpoint,"templates/").concat(t,"/import"),query:M({cache:localStorage.getItem("tpcCacheBuster")},R(tiTpc.params,"meta"))}),n={},e.prev=2,e.next=5,S()({url:r,method:"GET",parse:!1});case 5:if(!(c=e.sent).ok){e.next=12;break}return e.next=9,c.json();case 9:if(!(n=e.sent).message){e.next=12;break}return e.abrupt("return",q(n.message));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),e.t0.message&&q(e.t0.message);case 17:return e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(t){return e.apply(this,arguments)}}(),Y=function(){var e=E()(w.a.mark((function e(t,r){var n,c,a;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(N.stringifyUrl)({url:"".concat(tiTpc.endpoint,"templates/").concat(t),query:M({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},R(tiTpc.params,"meta"))}),e.prev=1,e.next=4,S()({url:n,method:"POST"});case 4:if(!(c=e.sent).ok){e.next=11;break}return e.next=8,c.json();case 8:if(!(a=e.sent).message){e.next=11;break}return e.abrupt("return",q(a.message));case 11:return localStorage.setItem("tpcCacheBuster",V()),e.next=14,W(r);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),e.t0.message&&q(e.t0.message);case 19:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t,r){return e.apply(this,arguments)}}(),X=function(){var e=E()(w.a.mark((function e(t,r,n,c,a){var i,o,s;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Object(N.stringifyUrl)({url:"".concat(tiTpc.endpoint,"templates/").concat(t,"/publish"),query:M({cache:localStorage.getItem("tpcCacheBuster"),method:"POST",template_site_slug:r,template_thumbnail:n,premade:c?"yes":"no",link:a},R(tiTpc.params,"meta"))}),e.prev=1,e.next=4,S()({url:i,method:"POST",headers:{Authorization:"Bearer ".concat(tiTpc.bearer||""," ")}});case 4:if(!(o=e.sent).ok){e.next=14;break}return e.next=8,o.json();case 8:if(!(s=e.sent).message){e.next=12;break}return q(s.message),e.abrupt("return",{success:!1});case 12:e.next=17;break;case 14:if(!o.message){e.next=17;break}return q(o.message),e.abrupt("return",{success:!1});case 17:return localStorage.setItem("tpcCacheBuster",V()),e.abrupt("return",{success:!0});case 21:if(e.prev=21,e.t0=e.catch(1),!e.t0.message){e.next=26;break}return q(e.t0.message),e.abrupt("return",{success:!1});case 26:case"end":return e.stop()}}),e,null,[[1,21]])})));return function(t,r,n,c,a){return e.apply(this,arguments)}}(),ee=function(){var e=Object(s.useSelect)((function(e){return e("core/notices").getNotices("themeisle-blocks/notices/templates-cloud")})),t=Object(s.useDispatch)("core/notices").removeNotice;return Object(b.createElement)("div",{className:"notices"},e.map((function(e){return Object(b.createElement)(T.Notice,{key:e.id,status:e.status,isDismissible:e.isDismissible,onRemove:function(){return t(e.id,"themeisle-blocks/notices/templates-cloud")},actions:e.actions},e.content)})))};function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?te(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ne=lodash.omit,ce=r(18),ae=r.n(ce),ie=r(13),oe=r(5),se=Object(b.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(oe.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"})),le=Object(b.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(b.createElement)(oe.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"})),ue=Object(b.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(oe.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"}));function pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var be=function(e){var t=e.closeModal,r=e.getOrder,c=e.getSearchQuery,a=Object(s.useDispatch)("tpc/block-editor"),i=a.setFetching,o=a.updateCurrentTab,l={templates:Object(n.__)("Page Templates")};3===parseInt(tiTpc.tier)&&(l.library=Object(n.__)("My Library"));var u=Object(s.useSelect)((function(e){return e("tpc/block-editor").isFetching()})),p=Object(s.useSelect)((function(e){return e("tpc/block-editor").isPreview()})),m=Object(s.useSelect)((function(e){return e("tpc/block-editor").getCurrentTab()})),f=function(){var e=E()(w.a.mark((function e(){var t;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.localStorage.setItem("tpcCacheBuster",V()),i(!0),t=r(),e.next=5,$(me({search:c()},t));case 5:return e.next=7,W(me({search:c()},t));case 7:i(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(b.createElement)("div",{className:"modal-header"},Object(b.createElement)("div",{className:"left"},Object(b.createElement)(T.Icon,{icon:h})),Object(b.createElement)("div",{className:"center"},Object.keys(l).map((function(e){return Object(b.createElement)(T.Button,{key:e,onClick:function(){return o(e)},className:d()("tabs",{"is-active":e===m})},l[e])}))),Object(b.createElement)("div",{className:"right"},"library"===m&&!p&&Object(b.createElement)(T.ButtonGroup,null,Object(b.createElement)(T.Button,{label:Object(n.__)("Re-sync Library"),icon:le,disabled:u,className:d()("is-sync",{"is-loading":u}),onClick:f})),Object(b.createElement)(T.Button,{label:Object(n.__)("Close Modal"),icon:ue,onClick:t})))},fe=r(19),de=function(e){var t=e.isFetching,r=e.importBlocks,c=Object(ie.useViewportMatch)("large",">="),i=Object(ie.useViewportMatch)("large","<="),o=Object(ie.useViewportMatch)("small",">="),l=Object(ie.useViewportMatch)("small","<="),u=1400;c||i||!o||l?!(c||i||o||l)&&(u=600):u=960;var p=Object(s.useDispatch)("tpc/block-editor"),m=p.setFetching,f=p.togglePreview,d=Object(s.useSelect)((function(e){return e("tpc/block-editor").getPreview()})).item;Object(b.useEffect)((function(){h()}),[]);var g=Object(b.useState)(""),O=P()(g,2),j=O[0],y=O[1],h=function(){var e=E()(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,v();case 3:m(!1);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=E()(w.a.mark((function e(){var t;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,K(d.template_id);case 3:(t=e.sent).__file&&t.content&&"wp_export"===t.__file&&y(t.content),m(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(b.createElement)("div",{className:"tpc-modal-content"},Object(b.createElement)("div",{className:"preview-header"},Object(b.createElement)("div",{className:"left"},d.template_name||Object(n.__)("Template")),Object(b.createElement)("div",{className:"right"},Object(b.createElement)(T.Button,{isSecondary:!0,onClick:f},Object(n.__)("Close Preview")),Object(b.createElement)(T.Button,{isPrimary:!0,isBusy:t,disabled:t,onClick:function(){f(),r(j,d.meta||[])}},Object(n.__)("Import")))),t?Object(b.createElement)(T.Placeholder,null,Object(b.createElement)(T.Spinner,null)):Object(b.createElement)("div",{className:"preview-content"},Object(b.createElement)(fe.BlockPreview,{blocks:Object(a.parse)(j),viewportWidth:u})))},ge=Object(b.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(oe.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"})),Oe=Object(b.createElement)(oe.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(oe.Path,{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"})),je=Object(b.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(oe.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"})),ye=r(20);function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var we={date:Object(n.__)("Date"),template_name:Object(n.__)("Name"),modified:Object(n.__)("Last Modified")},_e=function(e){var t=e.layout,r=e.sortingOrder,c=e.setLayout,a=e.isSearch,i=e.searchQuery,o=e.onSearch,s=e.setSearchQuery,l=e.setSortingOrder,u=e.changeOrder;return Object(b.createElement)("div",{className:"filters"},Object(b.createElement)("div",{className:"display-sorting"},Object(b.createElement)("div",{className:"sorting-label"},Object(n.__)("Sort by")),Object(b.createElement)("div",{className:"sorting-filter"},Object.keys(we).map((function(e){return Object(b.createElement)(T.Button,{key:e,className:d()({"is-selected":e===r.orderby,"is-asc":"ASC"===r.order}),onClick:function(){var t={order:"DESC",orderby:e};e===r.orderby&&"DESC"===r.order&&(t.order="ASC"),l(ve({},t)),u(ve({},t))}},we[e])})))),Object(b.createElement)("div",{className:"view-filters"},Object(b.createElement)("div",{className:"search-filters"},Object(b.createElement)("input",{placeholder:Object(n.__)("Search for a template…"),className:"filter-search",value:i,onChange:function(e){return s(e.target.value)},onKeyDown:function(e){e.keyCode===ye.ENTER&&o()}}),a?Object(b.createElement)(T.Button,{label:Object(n.__)("Clear search query"),icon:ue,onClick:function(){s(""),o("")}}):Object(b.createElement)(T.Button,{label:Object(n.__)("Search"),icon:ge,onClick:function(){return o()}})),Object(b.createElement)(T.Button,{label:Object(n.__)("List View"),icon:Oe,onClick:function(){return c("list")},isPressed:"list"===t}),Object(b.createElement)(T.Button,{label:Object(n.__)("Grid View"),icon:je,onClick:function(){return c("grid")},isPressed:"grid"===t})))},Ee=Object(b.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(oe.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"})),ke=Object(b.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(oe.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),Pe=Object(b.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(b.createElement)(oe.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"})),xe=Object(b.createElement)(oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(b.createElement)(oe.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"})),Se=function(e){var t=e.sortingOrder,r=e.layout,c=e.item,a=e.importBlocks,i=e.deletable,o=Object(s.useDispatch)("tpc/block-editor"),l=o.togglePreview,u=o.setPreviewData,p=Object(b.useState)(!1),m=P()(p,2),f=m[0],g=m[1],O=Object(b.useState)(!1),j=P()(O,2),y=j[0],h=j[1],v=Object(b.useState)(c.template_name),_=P()(v,2),k=_[0],x=_[1],S=function(){var e=E()(w.a.mark((function e(){var t;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g("importing"),e.next=3,K(c.template_id);case 3:(t=e.sent).__file&&t.content&&"wp_export"===t.__file&&a(t.content,c.meta||[]),g(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=E()(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g("updating"),e.next=3,Z({template_id:c.template_id,template_name:k||c.template_name},t);case 3:return e.next=5,W(t);case 5:g(!1),h(!y);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=E()(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm(Object(n.__)("Are you sure you want to delete this template?"))){e.next=2;break}return e.abrupt("return",!1);case 2:return g("deleting"),e.next=5,Y(c.template_id,t);case 5:g(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){var e=E()(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l(),u({type:"library",item:c});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("grid"===r){var D={backgroundImage:"url(".concat(c.template_thumbnail,")")};return Object(b.createElement)("div",{key:c.template_id,className:"table-grid"},Object(b.createElement)("div",{style:D,className:d()("grid-preview",{"is-loading":y||!1!==f})},Object(b.createElement)("div",{className:"preview-actions"},Object(b.createElement)(T.Button,{isSecondary:!0,disabled:!1!==f,onClick:B},Object(n.__)("Preview")),Object(b.createElement)(T.Button,{isPrimary:!0,isBusy:"importing"===f,disabled:!1!==f,onClick:S},Object(n.__)("Import")),i&&Object(b.createElement)("div",{className:"preview-controls"},!c.link&&Object(b.createElement)(T.Button,{label:Object(n.__)("Edit"),icon:"updating"===f?le:Ee,disabled:y||!1!==f,className:d()({"is-loading":"updating"===f}),onClick:function(){return h(!y)}},y&&Object(b.createElement)(T.Popover,{onFocusOutside:function(){return h(!y)},className:"controls-popover"},Object(b.createElement)("div",{className:"popover-content"},Object(b.createElement)(T.TextControl,{label:Object(n.__)("Template Name"),value:k,onChange:x}),Object(b.createElement)(T.Button,{label:Object(n.__)("Update"),icon:"updating"===f?le:ke,disabled:!1!==f,className:d()({"is-loading":"updating"===f}),onClick:C})))),Object(b.createElement)(T.Button,{label:Object(n.__)("Delete"),icon:"deleting"===f?le:Pe,disabled:!1!==f,className:d()({"is-loading":"deleting"===f}),onClick:N})))),Object(b.createElement)("div",{className:"card-footer"},Object(b.createElement)("p",null,c.template_name)))}var I=d()("actions",{"no-controls":!i});return Object(b.createElement)("div",{key:c.template_id,className:"table-row"},Object(b.createElement)("div",{className:"row-title"},Object(b.createElement)(T.Icon,{icon:xe}),y?Object(b.createElement)(T.TextControl,{label:Object(n.__)("Template Name"),hideLabelFromVision:!0,value:k,onChange:x}):c.template_name),i&&Object(b.createElement)("div",{className:"row-controls"},c.link?Object(b.createElement)(T.Tooltip,{text:Object(n.__)("This template is synced to a page.")},Object(b.createElement)(T.Button,{label:Object(n.__)("Edit"),icon:Ee,disabled:!0},Object(n.__)("Edit"))):Object(b.createElement)(T.Button,{label:y?Object(n.__)("Update"):Object(n.__)("Edit"),icon:y?"updating"===f?le:ke:Ee,disabled:!1!==f,className:d()({"is-loading":"updating"===f}),onClick:y?C:function(){return h(!y)}},y?Object(n.__)("Update"):Object(n.__)("Edit")),Object(b.createElement)(T.Button,{label:Object(n.__)("Delete"),icon:"deleting"===f?le:Pe,disabled:!1!==f,className:d()({"is-loading":"deleting"===f}),onClick:N},"deleting"===f?Object(n.__)("Deleting")+"...":Object(n.__)("Delete"))),Object(b.createElement)("div",{className:I},Object(b.createElement)(T.Button,{isSecondary:!0,disabled:!1!==f,onClick:B},Object(n.__)("Preview")),Object(b.createElement)(T.Button,{isPrimary:!0,isBusy:"importing"===f,disabled:!1!==f,onClick:S},Object(n.__)("Import"))))},Te=function(e){var t=e.total,r=e.current,n=e.onChange;if(t<2)return null;for(var c=[],a=function(e){var t=e===r;c.push(Object(b.createElement)(T.Button,{key:"page-".concat(e),isPrimary:t,disabled:t,onClick:function(){return n(e)}},e+1))},i=0;i<t;i++)a(i);return Object(b.createElement)(T.ButtonGroup,{className:"pagination"},c)};function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Be=Object(s.withSelect)((function(e,t){var r=t.isGeneral?e("tpc/block-editor").getTemplates():e("tpc/block-editor").getLibrary(),n=r.items;return{items:void 0===n?[]:n,currentPage:r.currentPage,totalPages:r.totalPages}}))((function(e){var t=e.importBlocks,r=e.isGeneral,c=void 0!==r&&r,a=e.isFetching,i=e.items,o=e.currentPage,l=e.totalPages,u=e.getOrder,p=e.setQuery,m=e.getSearchQuery,f=e.setSorting,g=Object(s.useDispatch)("tpc/block-editor").setFetching,O=Object(b.useState)("grid"),j=P()(O,2),y=j[0],h=j[1],v=Object(b.useState)({templates:!1,library:!1}),_=P()(v,2),k=_[0],x=_[1],S=function(e){return x(Ne(Ne({},k),{},c?{templates:e}:{library:e}))},C=function(){return c?k.templates:k.library},N=function(){var e=E()(w.a.mark((function e(){var t;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g(!0),t=u(),!c){e.next=7;break}return e.next=5,$(Ne({search:m()},t));case 5:e.next=9;break;case 7:return e.next=9,W(Ne({search:m()},t));case 9:g(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(b.useEffect)((function(){i&&i.length>0||N()}),[c]);var B=function(){var e=E()(w.a.mark((function e(t){var r;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g(!0),r=u(),!c){e.next=7;break}return e.next=5,$(Ne({search:m(),page:t},r));case 5:e.next=9;break;case 7:return e.next=9,W(Ne({search:m(),page:t},r));case 9:g(!1);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),D=function(){var e=E()(w.a.mark((function e(){var t,r,n=arguments;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:m(),g(!0),S(!!t),r=u(),!c){e.next=9;break}return e.next=7,$(Ne({search:t},r));case 7:e.next=11;break;case 9:return e.next=11,W(Ne({search:t},r));case 11:g(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=E()(w.a.mark((function e(t){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g(!0),!c){e.next=6;break}return e.next=4,$(Ne(Ne({},t),{},{search:m()}));case 4:e.next=8;break;case 6:return e.next=8,W(Ne(Ne({},t),{},{search:m()}));case 8:g(!1);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();if(a)return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(_e,{layout:y,sortingOrder:u(),setLayout:h,isSearch:C(),searchQuery:m(),onSearch:D,setSearchQuery:p,setSortingOrder:f,changeOrder:I}),Object(b.createElement)(T.Placeholder,null,Object(b.createElement)(T.Spinner,null)));if(!Boolean(i.length))return Object(b.createElement)("div",{className:"table-content"},Object(b.createElement)(_e,{layout:y,sortingOrder:u(),setLayout:h,isSearch:C(),searchQuery:m(),onSearch:D,setSearchQuery:p,setSortingOrder:f,changeOrder:I}),Object(n.__)("No templates available. Add a new one?"));var A=d()("table-content",{"is-grid":"grid"===y});return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(_e,{layout:y,sortingOrder:u(),setLayout:h,isSearch:C(),searchQuery:m(),onSearch:D,setSearchQuery:p,setSortingOrder:f,changeOrder:I}),Object(b.createElement)("div",{className:A},i.map((function(e){return Object(b.createElement)(Se,{sortingOrder:u(),deletable:!c,key:e.template_id,layout:y,item:e,importBlocks:t})}))),Object(b.createElement)(Te,{onChange:B,current:o,total:l}))})),De=Object(s.withSelect)((function(e){var t=e("tpc/block-editor"),r=t.isPreview,n=t.isFetching,c=t.getCurrentTab;return{isPreview:r(),isFetching:n(),currentTab:c()}}))((function(e){var t=e.importBlocks,r=e.getOrder,c=e.setQuery,a=e.getSearchQuery,i=e.setSorting,o=e.isPreview,s=e.currentTab,l=e.isFetching;return o&&"library"===s?Object(b.createElement)(de,{isFetching:l,importBlocks:t}):Object(b.createElement)("div",{className:"tpc-modal-content"},Object(b.createElement)(ee,null),["templates","library"].includes(s)&&Object(b.createElement)(Be,{isFetching:l,isGeneral:"templates"===s,importBlocks:t,getOrder:r,setQuery:c,getSearchQuery:a,setSorting:i}),"patterns"===s&&Object(n.__)("We are still working on this. Please check back later. Thank you!"))})),Ie=function(e){var t=e.title,r=e.leftButtons,c=e.rightButtons,a=e.heading,i=e.previewUrl,o=Object(N.stringifyUrl)({url:i,query:{tpcpreview:"yes"}}),s=t||Object(n.__)("Preview");return Object(b.createElement)("div",{className:"ob-preview single-templates"},Object(b.createElement)("div",{className:"preview"},Object(b.createElement)("iframe",{title:s,src:o,frameBorder:"0"}),Object(b.createElement)("div",{className:"loading"},Object(b.createElement)(T.Dashicon,{icon:"update",size:50}))),Object(b.createElement)("div",{className:"bottom-bar"},r&&Object(b.createElement)("div",{className:"navigator"},r),a&&Object(b.createElement)("h2",{className:"heading"},a),c&&Object(b.createElement)("div",{className:"actions"},c)))};function Ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Le=lodash.omit,Ve=Object(ie.compose)(Object(s.withSelect)((function(e){var t=e("tpc/block-editor"),r=t.isPreview,n=t.getPreview,c=t.getCurrentTab;return{isPreview:r(),currentTab:c(),previewData:n().item}})),Object(s.withDispatch)((function(e){var t=e("core/block-editor"),r=t.removeBlock,n=t.replaceBlocks,c=e("tpc/block-editor").togglePreview;return{removeBlock:r,replaceBlocks:n,closePreview:function(){return c(!1)}}})))((function(e){var t=e.clientId,r=e.isPreview,c=e.previewData,i=e.currentTab,o=e.removeBlock,l=e.replaceBlocks,u=e.closePreview,p=Object(s.useSelect)((function(e){return{type:e("core/editor").getEditedPostAttribute("type")}})).type,m=Object(s.useDispatch)("core/notices").createErrorNotice,f=Object(s.useDispatch)("core/editor").editPost,d=Object(s.useDispatch)("tpc/block-editor"),g=d.updateLibrary,O=d.updateTemplates,j=Object(b.useState)(!1),y=P()(j,2),h=y[0],v=y[1],_=Object(b.useState)(!1),k=P()(_,2),x=k[0],S=k[1],C=Object(b.useState)({templates:"",library:""}),N=P()(C,2),B=N[0],D=N[1],I=Object(b.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),A=P()(I,2),F=A[0],L=A[1],V="templates"===i,U=function(){return V?B.templates:B.library},M=function(){return V?F.templates:F.library},R=function(e){try{var t=JSON.parse(e);if(t&&"object"===ae()(t))return t}catch(e){}return!1},z=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(g([]),O([]),0<Object.keys(R(r)||{}).length&&["post","page"].includes(p)){var n=JSON.parse(r),c=Fe({},Le(Fe({},n),"_wp_page_template"));f({meta:c}),"page"===p&&n._wp_page_template&&f({template:n._wp_page_template})}l(t,Object(a.parse)(e))},H=function(){var e=E()(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),e.next=3,K(c.template_id).then((function(e){if(e.__file&&e.content&&"wp_export"===e.__file)return u(),S(!1),z(e.content,c.meta||[]),!1;m(Object(n.__)("Something went wrong while importing. Please try again."),{type:"snackbar"}),S(!1),o(t)}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){v(!1),S(!1),o(t)};return Object(b.useEffect)((function(){setTimeout((function(){v(!0)}),100)}),[]),h?Object(b.createElement)(b.Fragment,null,Object(b.createElement)(T.Modal,{onRequestClose:G,shouldCloseOnEsc:!1,shouldCloseOnClickOutside:!r||"templates"!==i,isDismissible:!1,overlayClassName:"tpc-template-cloud-modal"},Object(b.createElement)(be,{closeModal:G,getOrder:M,getSearchQuery:U}),Object(b.createElement)(De,{importBlocks:z,getOrder:M,setQuery:function(e){return D(Fe(Fe({},B),{},V?{templates:e}:{library:e}))},getSearchQuery:U,setSorting:function(e){return L(Fe(Fe({},F),{},V?{templates:e}:{library:e}))}}),Object(b.createElement)((function(){if(!r||"templates"!==i)return null;var e=c.link,t=c.template_name;return Object(b.createElement)(T.Modal,{isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,className:"tpc-preview-wrap-modal"},Object(b.createElement)(Ie,{previewUrl:e,heading:t,leftButtons:Object(b.createElement)(b.Fragment,null,Object(b.createElement)(T.Button,{disabled:x,icon:se,onClick:u})),rightButtons:Object(b.createElement)(T.Button,{disabled:x,isPrimary:!0,onClick:H},x?Object(n.__)("Importing")+"...":Object(n.__)("Import"))}),";")}),null))):null}));Object(a.registerBlockType)("ti-tpc/templates-cloud",{title:Object(n.__)("Templates Cloud"),description:Object(n.__)("A cloud based templates library which enables you to create ready-made website in no time."),icon:y,category:"design",keywords:["templates cloud","patterns","template library"],supports:{html:!1},edit:Ve,save:function(){return null}}),3===parseInt(tiTpc.tier)&&Object(c.registerPlugin)("ti-tpc",{render:function(){var e=Object(b.useState)(!1),t=P()(e,2),r=t[0],c=t[1],i=Object(b.useState)(!1),o=P()(i,2),l=o[0],u=o[1],p=Object(b.useState)(""),m=P()(p,2),f=m[0],g=m[1],O=window.tiTpc.canPredefine,j=Object(s.useDispatch)("core/notices"),h=j.createErrorNotice,v=j.createSuccessNotice,_=Object(s.useDispatch)("core/editor").editPost,k=Object(s.useSelect)((function(e){var t=e("core/block-editor"),r=t.getSelectedBlockCount,n=t.getSelectedBlock,c=t.getMultiSelectedBlocks,i=1===r()?n():c();return Object(a.serialize)(i)}),[]),x=Object(s.useSelect)((function(e){var t=(0,e("core/block-editor").getBlocks)();return Object(a.serialize)(t)}),[]),B=Object(s.useSelect)((function(e){return(0,e("core/editor").getEditedPostAttribute)("meta")}),[]),D=Object(s.useSelect)((function(e){return(0,e("core/editor").getEditedPostAttribute)("template")}),[]);Object(b.useEffect)((function(){var e=window.tiTpc.metaKeys;window.tiTpc.params.meta=Object.fromEntries(Object.entries(B||{}).filter((function(t){var r=P()(t,1)[0];return e.includes(r)}))),D?window.tiTpc.params.meta._wp_page_template=D:""===D&&window.tiTpc.params.meta._wp_page_template&&delete window.tiTpc.params.meta._wp_page_template}),[B,D]);var I=Object(s.useSelect)((function(e){return{meta:e("core/editor").getEditedPostAttribute("meta")||{},postId:e("core/editor").getEditedPostAttribute("id"),type:e("core/editor").getEditedPostAttribute("type"),link:e("core/editor").getEditedPostAttribute("link"),postTitle:e("core/editor").getEditedPostAttribute("title")||Object(n.__)("Template")}})),A=I.meta,F=I.postTitle,L=I.postId,U=I.type,M=I.link,R=I.meta,z=R._ti_tpc_template_sync,H=R._ti_tpc_template_id,G=R._ti_tpc_screenshot_url,Q=R._ti_tpc_site_slug,q=R._ti_tpc_published,$=Object(s.useSelect)((function(e,t){var r=t.forceIsSaving,n=e("core/editor"),c=n.isSavingPost,a=n.isPublishingPost,i=n.isAutosavingPost,o=r||c(),s=i();return(a()||o)&&!s})),W=Object(b.useState)(z),Z=P()(W,2),K=Z[0],Y=Z[1],te=Object(b.useState)(H),ce=P()(te,2),ae=ce[0],ie=ce[1],oe=Object(b.useState)(Q),se=P()(oe,2),le=se[0],ue=se[1],pe=Object(b.useState)(q),me=P()(pe,2),be=me[0],fe=me[1],de=Object(b.useState)(G),ge=P()(de,2),Oe=ge[0],je=ge[1];Object(b.useEffect)((function(){_({meta:re(re({},A),{},{_ti_tpc_template_sync:K,_ti_tpc_template_id:ae,_ti_tpc_screenshot_url:Oe,_ti_tpc_site_slug:le,_ti_tpc_published:be})})}),[K,ae,Oe,le,be]),Object(b.useEffect)((function(){$&&K&&he()}),[$,K]);var ye=function(){var e=E()(w.a.mark((function e(){var t,r,a,i;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),t={__file:"wp_export",version:2,content:k},r=Object(N.stringifyUrl)({url:window.tiTpc.endpoint+"templates",query:re(re({},ne(tiTpc.params,"meta")),{},{template_name:f,template_type:"gutenberg"})}),e.prev=3,e.next=6,S()({url:r,method:"POST",data:t,parse:!1});case 6:if(!(a=e.sent).ok){e.next=12;break}return e.next=10,a.json();case 10:(i=e.sent).message?h(i.message,{type:"snackbar"}):(window.localStorage.setItem("tpcCacheBuster",V()),v(Object(n.__)("Template saved."),{type:"snackbar"}));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),e.t0.message&&h(e.t0.message,{type:"snackbar"});case 17:u(!1),c(!1),g("");case 20:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(){return e.apply(this,arguments)}}(),he=function(){var e=E()(w.a.mark((function e(){var t,r,c,a,i;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u(!0),t={__file:"wp_export",version:2,content:x},c=!1,!ae){e.next=7;break}return e.next=6,J(ae);case 6:c=e.sent;case 7:if(!1===c||"gutenberg"===c.template_type){e.next=9;break}return e.abrupt("return");case 9:return r=c?Object(N.stringifyUrl)({url:window.tiTpc.endpoint+"templates/"+ae,query:re(re({},ne(tiTpc.params,"meta")),{},{meta:JSON.stringify(tiTpc.params.meta),template_name:F,link:M})}):Object(N.stringifyUrl)({url:window.tiTpc.endpoint+"templates",query:re(re({},ne(tiTpc.params,"meta")),{},{meta:JSON.stringify(tiTpc.params.meta),template_name:F,template_type:"gutenberg",template_site_slug:Q||"",template_thumbnail:G||"",link:M})}),e.prev=10,e.next=13,S()({url:r,method:"POST",data:t,parse:!1});case 13:if(!(a=e.sent).ok){e.next=19;break}return e.next=17,a.json();case 17:(i=e.sent).message?h(i.message,{type:"snackbar"}):(window.localStorage.setItem("tpcCacheBuster",V()),v(Object(n.__)("Template saved."),{type:"snackbar"}),i.template_id?(ie(i.template_id),ve(i.template_id)):ve());case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(10),e.t0.message&&h(e.t0.message,{type:"snackbar"});case 24:u(!1);case 25:case"end":return e.stop()}}),e,null,[[10,21]])})));return function(){return e.apply(this,arguments)}}(),ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae,t=null;return"post"===U?t=new wp.api.models.Post({id:L}):"page"===U&&(t=new wp.api.models.Page({id:L})),t.set("meta",{_ti_tpc_template_id:e,_ti_tpc_template_sync:K,_ti_tpc_screenshot_url:Oe,_ti_tpc_site_slug:le,_ti_tpc_published:!be}),t.save()};return["post","page"].includes(U)?Object(b.createElement)(b.Fragment,null,Object(b.createElement)(C.PluginBlockSettingsMenuItem,{label:Object(n.__)("Save to Neve Cloud"),icon:"none",onClick:function(){return c(!0)}}),Object(b.createElement)(C.PluginSidebarMoreMenuItem,{icon:Object(b.createElement)(T.Icon,{icon:y}),target:"ti-tpc"},Object(n.__)("Templates Cloud")),Object(b.createElement)(C.PluginSidebar,{name:"ti-tpc",title:Object(n.__)("Templates Cloud"),className:"ti-tpc-components-panel"},Object(b.createElement)(T.PanelBody,null,Object(n.__)("Save this page as a template in your Templates Cloud library."),Object(b.createElement)(T.Button,{isPrimary:!0,isBusy:l,disabled:l,onClick:he},Object(n.__)("Save Page to Neve Cloud")),Object(b.createElement)(T.ToggleControl,{label:Object(n.__)("Automatically sync to the cloud"),checked:K,onChange:function(){return Y(!K)}})),O&&Object(b.createElement)(T.PanelBody,null,Object(b.createElement)("h4",null,Object(n.__)("Publish Settings")),Object(b.createElement)(T.TextControl,{label:Object(n.__)("Screenshot URL"),value:Oe,type:"url",onChange:je}),Object(b.createElement)(T.TextControl,{label:Object(n.__)("Site Slug"),value:le,help:Object(n.__)("Use `general` to publish this as a global template. Otherwise use the starter site slug to make it available as a single page for the starter site."),type:"url",onChange:ue}),Object(b.createElement)((function(){if(!O)return null;var e=function(){var e=E()(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u("publishing"),e.next=3,X(H,Q,G,!q,M).then((function(e){e.success&&(fe(!be),ve(),v(be?Object(n.__)("Template Unpublished."):Object(n.__)("Template Published."),{type:"snackbar"}))}));case 3:u(!1);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(b.createElement)(T.Button,{isSecondary:!0,onClick:e,disabled:!1!==l,className:d()({"is-loading":"publishing"===l})},be&&("publishing"===l?Object(n.__)("Unpublishing"):Object(n.__)("Unpublish")),!be&&("publishing"===l?Object(n.__)("Publishing"):Object(n.__)("Publish")))}),null),Object(b.createElement)(ee,null))),r&&Object(b.createElement)(T.Modal,{title:Object(n.__)("Save Template"),onRequestClose:function(){return c(!1)}},Object(b.createElement)(T.TextControl,{label:Object(n.__)("Template Name"),value:f,onChange:g}),Object(b.createElement)(T.Button,{isPrimary:!0,isBusy:l,disabled:l,onClick:ye},Object(n.__)("Save")))):null},icon:y})}]);
 
elementor/build/index-rtl.css DELETED
@@ -1 +0,0 @@
1
- .elementor-add-new-section .elementor-templates-cloud-button{background-color:#0366d6;margin-right:5px}.elementor-add-new-section .elementor-templates-cloud-button .tpc-template-cloud-icon{width:12px;height:12px}.ti-tpc-templates-modal .dialog-widget-content{max-width:990px;width:100%;background:#f1f3f5}.ti-tpc-templates-modal .dialog-widget-content .dialog-header{padding:0;background:#fff;box-shadow:0 0 8px rgba(0,0,0,.1);position:relative}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark{background-color:#26292c}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back{border-left:1px solid rgba(255,255,255,.25)}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back:hover{color:#fff}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-templates-modal__header__close{border-right:1px solid rgba(255,255,255,.25)}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-templates-modal__header__close:hover{color:#fff}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__menu-area .ti-tpc-template-library-menu-item{color:#e0e1e3}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__menu-area .ti-tpc-template-library-menu-item.is-active{background:linear-gradient(-180deg, #26292c, #34383c);border-bottom:3px solid #71d7f7}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header{display:flex;align-items:center;justify-content:space-between;height:50px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area{width:175px;height:100%;text-align:right;padding-right:15px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-templates-modal__header__logo{height:100%;display:flex;align-items:center;line-height:1}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-templates-modal__header__logo svg{width:30px;height:30px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back{height:100%;color:#a4afb7;font-size:14px;padding:16.5px 0 15px 16.5px;border-left:1px solid #e6e9ec;cursor:pointer;transition:color .5s}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back:hover{color:#495157}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back i{padding-left:10px;font-size:18px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back i::before{content:""}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__menu-area{text-align:center;color:#6d7882;font-size:13px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__menu-area .ti-tpc-template-library-menu-item{display:inline-block;padding:17px 0;width:150px;height:auto}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__menu-area .ti-tpc-template-library-menu-item.is-active{border-bottom:3px solid #0073aa}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area{width:175px;display:flex;justify-content:flex-end}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-template-library-header-tools{display:flex}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-template-library-header-tools .ti-tpc-template-library-header-actions{display:flex}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-template-library-header-tools .ti-tpc-template-library-header-actions .ti-tpc-templates-modal__header__item{padding-left:16px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-template-library-header-tools .ti-tpc-template-library-header-preview-insert-wrapper{cursor:default;padding:0 10px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-template-library-header-tools .ti-tpc-template-library-header-preview-insert-wrapper .ti-tpc-template-library-template-insert{height:auto;color:#fff;background-color:#39b54a;padding:8px 14px;font-size:11px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header__item{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:content-box;padding:0}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header__item.ti-tpc-templates-modal__header__close{width:47px;border-right:1px solid #e6e9ec}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header__item i:not(.eicon-file-download){color:#a4afb7;font-size:18px;cursor:pointer}.ti-tpc-templates-modal .dialog-message{height:750px;max-height:85vh;overflow:auto;padding-top:25px}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column .components-button:hover{color:#fff}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item{background-color:#4c4f56}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item:hover{background-color:#64666a}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-button:hover{color:#a4afb7}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-dropdown .components-popover:not(.is-without-arrow)::before,.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-dropdown .components-popover:not(.is-without-arrow)::after{border-top-color:#4c4f56;border-bottom-color:#4c4f56}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-dropdown .components-popover .components-popover__content{background:#4c4f56;box-shadow:-1px 3px 11px rgba(0,0,0,.3);border-color:transparent}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template{background-color:#404349}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-footer .ti-tpc-template-library-template-name{color:#e0e1e3}.ti-tpc-templates-modal .dialog-message .dialog-content{display:block;height:100%}.ti-tpc-templates-modal .dialog-message .dialog-content.is-loading{display:flex;justify-content:center;align-items:center}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates{padding:0 15px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header{display:flex;align-items:center;justify-content:space-between}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters{font-size:11px;display:flex}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters .ti-tpc-template-library-templates-header-filters-label{flex-grow:1;text-align:right;padding-left:20px;border-left:1px solid #d5dadf;text-transform:uppercase}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters .ti-tpc-template-library-templates-header-filters-filter{display:flex}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters .ti-tpc-template-library-templates-header-filters-filter .components-button{padding:0 20px 0 0;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters .ti-tpc-template-library-templates-header-filters-filter .components-button.is-selected:after{font-family:eicons;content:"";margin-right:3px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters .ti-tpc-template-library-templates-header-filters-filter .components-button.is-selected.is-asc:after{content:""}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-search{width:200px;position:relative}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-search input{border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 0 8px 15px;transition:border .5s}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-search i,.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-search .components-button{position:absolute;top:50%;left:0;transform:translateY(-50%);color:#a4afb7}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container{margin:10px -15px 0;display:flex;flex-wrap:wrap;align-items:flex-start}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container.is-table{flex-direction:column;align-items:normal}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header{display:flex;align-items:center;padding:0 25px;margin-top:30px;text-align:right}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column{width:calc( 65% / 3 )}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column:first-child{width:35%}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column:last-child{display:flex;justify-content:flex-end}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column .components-button{color:#a4afb7;line-height:1;font-size:10px;font-weight:500;text-transform:uppercase;padding:0;cursor:pointer}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column .components-button.is-selected:after{font-family:eicons;content:"";margin-right:3px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column .components-button.is-selected.is-asc:after{content:""}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column .components-button:hover{color:#1e1e1e}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item{display:flex;height:50px;align-items:center;padding:0 25px;margin-top:1px;text-align:right;background-color:#fafbfb}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item:first-child{border-radius:3px 3px 0 0}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item:last-child{border-radius:0 0 3px 3px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column{width:calc( 65% / 3 )}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column:first-child{font-weight:600;width:35%}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column:first-child input[type=text]{width:50%;margin-left:10px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column:first-child .components-button{padding-right:10px;padding-left:10px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column:first-child .components-button i{margin:0}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column:last-child{display:flex;justify-content:flex-end}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-button{text-transform:none;font-size:12px;padding:8px 18px;height:30px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-button:not(:hover){background:none;color:#a4afb7}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-dropdown .components-popover .components-popover__content .components-button>svg{width:20px;height:20px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container>p{font-size:14px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template{margin:15px;padding:8px;background:#fff;box-shadow:0 1px 20px 0 rgba(0,0,0,.07);border-radius:3px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template:not(:hover) .ti-tpc-template-library-template-footer .ti-tpc-template-library-template-action{display:none}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template:hover .ti-tpc-template-library-template-name{display:none}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-body{height:200px;position:relative}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-body .ti-tpc-template-library-template-screenshot{height:100%;background-size:cover;background-position-x:50%;box-shadow:inset 0 -2px 15px -6px rgba(0,0,0,.07)}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-body .ti-tpc-template-library-template-preview{opacity:0;position:absolute;top:0;right:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);transition:opacity .5s;cursor:pointer}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-body .ti-tpc-template-library-template-preview:hover{opacity:1}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-body .ti-tpc-template-library-template-preview i{font-size:20px;color:#d5dadf;position:absolute;top:50%;right:50%;transform:translate(50%, -50%)}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-footer{display:flex;justify-content:space-between;margin-top:10px;font-size:11px;line-height:1}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-footer .ti-tpc-template-library-template-action{color:#39b54a;height:auto;padding:0;font-size:11px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-footer .ti-tpc-template-library-template-action span{line-height:1}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-footer .ti-tpc-template-library-template-name{text-align:right;color:#6d7882;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-left:5px;line-height:1}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .components-placeholder{background:transparent;border:none;box-shadow:none}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .components-placeholder .components-placeholder__fieldset{justify-content:center}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export{padding:50px 0}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-icon{font-size:65px;color:#c2cbd2;line-height:1}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-title{font-size:30px;margin-top:40px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field{margin-top:40px;display:flex;align-items:center;justify-content:center}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field>*{height:55px;font-size:16px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field .ti-tpc-template-library-blank-field-input{width:500px;background-color:#fff;font-weight:300;color:#a4afb7;padding-right:25px;border-radius:0 3px 3px 0;border:none}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field .elementor-button{display:block;width:150px;border-radius:3px 0 0 3px;background-color:#39b54a}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field .ti-tpc-template-library-blank-field-input-label{width:150px;display:flex;justify-content:center;align-items:center}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field .components-form-toggle input.components-form-toggle__input[type=checkbox]{cursor:pointer}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-preview{height:100%;overflow:hidden}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-preview iframe{height:150%;position:relative;z-index:99;transform:scale(0.666) translateX(25%) translateY(-25%)}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-preview .is-loading{position:absolute;top:50%;left:calc( 50% - 12px )}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-preview .is-loading svg{-webkit-animation:icon-spin 2s linear infinite;animation:icon-spin 2s linear infinite}.ti-tpc-templates-modal .components-button:focus:not(:disabled){box-shadow:none}.components-modal__screen-overlay.is-dark .components-modal__frame{border:1px solid #26292c}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content{background:#34383c}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-modal__header{background:#26292c;border-bottom:1px solid #26292c}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-modal__header .components-button{color:#a4afb7}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-modal__header .components-button:hover{color:#e0e1e3}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-text-control__input{background-color:#26292c;color:#a4afb7;border:none}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-text-control__input:focus{box-shadow:none}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-text-control__input::-moz-placeholder{color:#a4afb7}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-text-control__input:-ms-input-placeholder{color:#a4afb7}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-text-control__input::placeholder{color:#a4afb7}@-webkit-keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}@keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}@media(max-width: 1439px){.ti-tpc-templates-modal .dialog-widget-content{max-width:990px}.ti-tpc-templates-modal .dialog-widget-content .ti-tpc-template-library-preview iframe{width:1440px}.ti-tpc-templates-modal .dialog-widget-content .ti-tpc-template-library-template{width:calc(25% - 30px)}}@media(min-width: 1440px){.ti-tpc-templates-modal .dialog-widget-content{max-width:1200px}.ti-tpc-templates-modal .dialog-widget-content .ti-tpc-template-library-preview iframe{width:1710px}.ti-tpc-templates-modal .dialog-widget-content .ti-tpc-template-library-template{width:calc(20% - 30px)}}
 
elementor/build/index.asset.php DELETED
@@ -1 +0,0 @@
1
- <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill', 'wp-primitives'), 'version' => 'd3c730dad6ad805a41cf255b7c7781b9');
 
elementor/build/index.css DELETED
@@ -1 +0,0 @@
1
- .elementor-add-new-section .elementor-templates-cloud-button{background-color:#0366d6;margin-left:5px}.elementor-add-new-section .elementor-templates-cloud-button .tpc-template-cloud-icon{width:12px;height:12px}.ti-tpc-templates-modal .dialog-widget-content{max-width:990px;width:100%;background:#f1f3f5}.ti-tpc-templates-modal .dialog-widget-content .dialog-header{padding:0;background:#fff;box-shadow:0 0 8px rgba(0,0,0,.1);position:relative}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark{background-color:#26292c}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back{border-right:1px solid rgba(255,255,255,.25)}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back:hover{color:#fff}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-templates-modal__header__close{border-left:1px solid rgba(255,255,255,.25)}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-templates-modal__header__close:hover{color:#fff}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__menu-area .ti-tpc-template-library-menu-item{color:#e0e1e3}.ti-tpc-templates-modal .dialog-widget-content .dialog-header.is-dark .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__menu-area .ti-tpc-template-library-menu-item.is-active{background:linear-gradient(180deg, #26292c, #34383c);border-bottom:3px solid #71d7f7}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header{display:flex;align-items:center;justify-content:space-between;height:50px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area{width:175px;height:100%;text-align:left;padding-left:15px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-templates-modal__header__logo{height:100%;display:flex;align-items:center;line-height:1}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-templates-modal__header__logo svg{width:30px;height:30px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back{height:100%;color:#a4afb7;font-size:14px;padding:16.5px 16.5px 15px 0;border-right:1px solid #e6e9ec;cursor:pointer;transition:color .5s}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back:hover{color:#495157}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back i{padding-right:10px;font-size:18px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__logo-area .ti-tpc-template-library-header-preview-back i::before{content:""}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__menu-area{text-align:center;color:#6d7882;font-size:13px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__menu-area .ti-tpc-template-library-menu-item{display:inline-block;padding:17px 0;width:150px;height:auto}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__menu-area .ti-tpc-template-library-menu-item.is-active{border-bottom:3px solid #0073aa}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area{width:175px;display:flex;justify-content:flex-end}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-template-library-header-tools{display:flex}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-template-library-header-tools .ti-tpc-template-library-header-actions{display:flex}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-template-library-header-tools .ti-tpc-template-library-header-actions .ti-tpc-templates-modal__header__item{padding-right:16px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-template-library-header-tools .ti-tpc-template-library-header-preview-insert-wrapper{cursor:default;padding:0 10px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header .ti-tpc-templates-modal__header__items-area .ti-tpc-template-library-header-tools .ti-tpc-template-library-header-preview-insert-wrapper .ti-tpc-template-library-template-insert{height:auto;color:#fff;background-color:#39b54a;padding:8px 14px;font-size:11px}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header__item{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:content-box;padding:0}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header__item.ti-tpc-templates-modal__header__close{width:47px;border-left:1px solid #e6e9ec}.ti-tpc-templates-modal .dialog-widget-content .dialog-header .ti-tpc-templates-modal__header__item i:not(.eicon-file-download){color:#a4afb7;font-size:18px;cursor:pointer}.ti-tpc-templates-modal .dialog-message{height:750px;max-height:85vh;overflow:auto;padding-top:25px}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column .components-button:hover{color:#fff}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item{background-color:#4c4f56}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item:hover{background-color:#64666a}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-button:hover{color:#a4afb7}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-dropdown .components-popover:not(.is-without-arrow)::before,.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-dropdown .components-popover:not(.is-without-arrow)::after{border-top-color:#4c4f56;border-bottom-color:#4c4f56}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-dropdown .components-popover .components-popover__content{background:#4c4f56;box-shadow:1px 3px 11px rgba(0,0,0,.3);border-color:transparent}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template{background-color:#404349}.ti-tpc-templates-modal .dialog-message.is-dark .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-footer .ti-tpc-template-library-template-name{color:#e0e1e3}.ti-tpc-templates-modal .dialog-message .dialog-content{display:block;height:100%}.ti-tpc-templates-modal .dialog-message .dialog-content.is-loading{display:flex;justify-content:center;align-items:center}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates{padding:0 15px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header{display:flex;align-items:center;justify-content:space-between}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters{font-size:11px;display:flex}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters .ti-tpc-template-library-templates-header-filters-label{flex-grow:1;text-align:left;padding-right:20px;border-right:1px solid #d5dadf;text-transform:uppercase}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters .ti-tpc-template-library-templates-header-filters-filter{display:flex}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters .ti-tpc-template-library-templates-header-filters-filter .components-button{padding:0 0 0 20px;height:auto;color:inherit;font-size:inherit;text-transform:uppercase}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters .ti-tpc-template-library-templates-header-filters-filter .components-button.is-selected:after{font-family:eicons;content:"";margin-left:3px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-filters .ti-tpc-template-library-templates-header-filters-filter .components-button.is-selected.is-asc:after{content:""}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-search{width:200px;position:relative}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-search input{border:none;border-bottom:1px solid #d5dadf;border-radius:0;font-size:11px;padding:8px 15px 8px 0;transition:border .5s}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-search i,.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-header .ti-tpc-template-library-templates-header-search .components-button{position:absolute;top:50%;right:0;transform:translateY(-50%);color:#a4afb7}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container{margin:10px -15px 0;display:flex;flex-wrap:wrap;align-items:flex-start}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container.is-table{flex-direction:column;align-items:normal}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header{display:flex;align-items:center;padding:0 25px;margin-top:30px;text-align:left}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column{width:calc( 65% / 3 )}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column:first-child{width:35%}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column:last-child{display:flex;justify-content:flex-end}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column .components-button{color:#a4afb7;line-height:1;font-size:10px;font-weight:500;text-transform:uppercase;padding:0;cursor:pointer}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column .components-button.is-selected:after{font-family:eicons;content:"";margin-left:3px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column .components-button.is-selected.is-asc:after{content:""}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-header .ti-tpc-template-library-templates-table-column .components-button:hover{color:#1e1e1e}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item{display:flex;height:50px;align-items:center;padding:0 25px;margin-top:1px;text-align:left;background-color:#fafbfb}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item:first-child{border-radius:3px 3px 0 0}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item:last-child{border-radius:0 0 3px 3px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column{width:calc( 65% / 3 )}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column:first-child{font-weight:600;width:35%}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column:first-child input[type=text]{width:50%;margin-right:10px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column:first-child .components-button{padding-left:10px;padding-right:10px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column:first-child .components-button i{margin:0}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column:last-child{display:flex;justify-content:flex-end}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-button{text-transform:none;font-size:12px;padding:8px 18px;height:30px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-button:not(:hover){background:none;color:#a4afb7}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-templates-table-item .ti-tpc-template-library-templates-table-column .components-dropdown .components-popover .components-popover__content .components-button>svg{width:20px;height:20px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container>p{font-size:14px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template{margin:15px;padding:8px;background:#fff;box-shadow:0 1px 20px 0 rgba(0,0,0,.07);border-radius:3px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template:not(:hover) .ti-tpc-template-library-template-footer .ti-tpc-template-library-template-action{display:none}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template:hover .ti-tpc-template-library-template-name{display:none}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-body{height:200px;position:relative}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-body .ti-tpc-template-library-template-screenshot{height:100%;background-size:cover;background-position-x:50%;box-shadow:inset 0 -2px 15px -6px rgba(0,0,0,.07)}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-body .ti-tpc-template-library-template-preview{opacity:0;position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);transition:opacity .5s;cursor:pointer}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-body .ti-tpc-template-library-template-preview:hover{opacity:1}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-body .ti-tpc-template-library-template-preview i{font-size:20px;color:#d5dadf;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-footer{display:flex;justify-content:space-between;margin-top:10px;font-size:11px;line-height:1}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-footer .ti-tpc-template-library-template-action{color:#39b54a;height:auto;padding:0;font-size:11px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-footer .ti-tpc-template-library-template-action span{line-height:1}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .ti-tpc-template-library-template .ti-tpc-template-library-template-footer .ti-tpc-template-library-template-name{text-align:left;color:#6d7882;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-right:5px;line-height:1}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .components-placeholder{background:transparent;border:none;box-shadow:none}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-templates .ti-tpc-template-library-templates-container .components-placeholder .components-placeholder__fieldset{justify-content:center}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export{padding:50px 0}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-icon{font-size:65px;color:#c2cbd2;line-height:1}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-title{font-size:30px;margin-top:40px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field{margin-top:40px;display:flex;align-items:center;justify-content:center}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field>*{height:55px;font-size:16px}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field .ti-tpc-template-library-blank-field-input{width:500px;background-color:#fff;font-weight:300;color:#a4afb7;padding-left:25px;border-radius:3px 0 0 3px;border:none}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field .elementor-button{display:block;width:150px;border-radius:0 3px 3px 0;background-color:#39b54a}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field .ti-tpc-template-library-blank-field-input-label{width:150px;display:flex;justify-content:center;align-items:center}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-export .ti-tpc-template-library-blank-field .components-form-toggle input.components-form-toggle__input[type=checkbox]{cursor:pointer}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-preview{height:100%;overflow:hidden}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-preview iframe{height:150%;position:relative;z-index:99;transform:scale(0.666) translateX(-25%) translateY(-25%)}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-preview .is-loading{position:absolute;top:50%;right:calc( 50% - 12px )}.ti-tpc-templates-modal .dialog-message .dialog-content .ti-tpc-template-library-preview .is-loading svg{-webkit-animation:icon-spin 2s linear infinite;animation:icon-spin 2s linear infinite}.ti-tpc-templates-modal .components-button:focus:not(:disabled){box-shadow:none}.components-modal__screen-overlay.is-dark .components-modal__frame{border:1px solid #26292c}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content{background:#34383c}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-modal__header{background:#26292c;border-bottom:1px solid #26292c}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-modal__header .components-button{color:#a4afb7}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-modal__header .components-button:hover{color:#e0e1e3}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-text-control__input{background-color:#26292c;color:#a4afb7;border:none}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-text-control__input:focus{box-shadow:none}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-text-control__input::-moz-placeholder{color:#a4afb7}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-text-control__input:-ms-input-placeholder{color:#a4afb7}.components-modal__screen-overlay.is-dark .components-modal__frame .components-modal__content .components-text-control__input::placeholder{color:#a4afb7}@-webkit-keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media(max-width: 1439px){.ti-tpc-templates-modal .dialog-widget-content{max-width:990px}.ti-tpc-templates-modal .dialog-widget-content .ti-tpc-template-library-preview iframe{width:1440px}.ti-tpc-templates-modal .dialog-widget-content .ti-tpc-template-library-template{width:calc(25% - 30px)}}@media(min-width: 1440px){.ti-tpc-templates-modal .dialog-widget-content{max-width:1200px}.ti-tpc-templates-modal .dialog-widget-content .ti-tpc-template-library-preview iframe{width:1710px}.ti-tpc-templates-modal .dialog-widget-content .ti-tpc-template-library-template{width:calc(20% - 30px)}}
 
elementor/build/index.js DELETED
@@ -1 +0,0 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=30)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.regeneratorRuntime},function(e,t){e.exports=window.wp.components},function(e,t){function r(e,t,r,n,a,c,i){try{var o=e[c](i),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,a)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(a,c){var i=e.apply(t,n);function o(e){r(i,a,c,o,l,"next",e)}function l(e){r(i,a,c,o,l,"throw",e)}o(void 0)}))}}},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.primitives},function(e,t,r){var n=r(20),a=r(21),c=r(14),i=r(22);e.exports=function(e,t){return n(e)||a(e,t)||c(e,t)||i()}},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var c=typeof n;if("string"===c||"number"===c)e.push(n);else if(Array.isArray(n)&&n.length){var i=a.apply(null,n);i&&e.push(i)}else if("object"===c)for(var o in n)r.call(n,o)&&n[o]&&e.push(o)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";const n=r(26),a=r(27),c=r(28);function i(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function o(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function l(e,t){return t.decode?a(e):e}function s(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=s(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(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 m(e,t){i((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const a="string"==typeof r&&r.includes(e.arrayFormatSeparator),c="string"==typeof r&&!a&&l(r,e).includes(e.arrayFormatSeparator);r=c?l(r,e):r;const i=a||c?r.split(e.arrayFormatSeparator).map(t=>l(t,e)):null===r?r:l(r,e);n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const a of e.split("&")){let[e,i]=c(t.decode?a.replace(/\+/g," "):a,"=");i=void 0===i?null:["comma","separator"].includes(t.arrayFormat)?i:l(i,t),r(l(e,t),i,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?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}(r):e[t]=r,e},Object.create(null))}t.extract=u,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";i((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const a=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[o(t,e),"[",a,"]"].join("")]:[...r,[o(t,e),"[",o(a,e),"]=",o(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[o(t,e),"[]"].join("")]:[...r,[o(t,e),"[]=",o(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>null==n||0===n.length?r:0===r.length?[[o(t,e),"=",o(n,e)].join("")]:[[r,o(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,o(t,e)]:[...r,[o(t,e),"=",o(n,e)].join("")]}}(t),a={};for(const t of Object.keys(e))r(t)||(a[t]=e[t]);const c=Object.keys(a);return!1!==t.sort&&c.sort(t.sort),c.map(r=>{const a=e[r];return void 0===a?"":null===a?o(r,t):Array.isArray(a)?a.reduce(n(r),[]).join("&"):o(r,t)+"="+o(a,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=c(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(u(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:l(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0},r);const n=s(e.url).split("?")[0]||"",a=t.extract(e.url),c=t.parse(a,{sort:!1}),i=Object.assign(c,e.query);let l=t.stringify(i,r);l&&(l="?"+l);let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u="#"+o(e.fragmentIdentifier,r)),`${n}${l}${u}`}},function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.compose},function(e,t,r){var n=r(23),a=r(24),c=r(14),i=r(25);e.exports=function(e){return n(e)||a(e)||c(e)||i()}},function(e,t,r){var n=r(15);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t){e.exports=window.wp.keycodes},,,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 r=[],n=!0,a=!1,c=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,c=e}finally{try{n||null==o.return||o.return()}finally{if(a)throw c}}return r}}},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,r){var n=r(15);e.exports=function(e){if(Array.isArray(e))return n(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,r){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,r){"use strict";var n=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 r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],c(r),c(n))}function i(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=c(t,r).join("")).match(n);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":"��"},r=a.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=i(r[0]);n!==r[0]&&(t[r[0]]=n)}r=a.exec(e)}t["%C2"]="�";for(var c=Object.keys(t),o=0;o<c.length;o++){var l=c[o];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},function(e,t,r){"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 r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},function(e,t,r){},function(e,t,r){"use strict";r.r(t);var n,a=r(6),c=r.n(a),i=r(1),o=r.n(i),l=r(3),s=r.n(l),u=r(0),p=r(7),m=r.n(p),d=r(2),b=r(13),f=r.n(b),g=r(8),w=r.n(g),y=r(9),h=new Uint8Array(16);function v(){if(!n&&!(n="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 n(h)}for(var O=/^(?:[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,j=function(e){return"string"==typeof e&&O.test(e)},E=[],x=0;x<256;++x)E.push((x+256).toString(16).substr(1));var _=function(e,t,r){var n=(e=e||{}).random||(e.rng||v)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=n[a];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(E[e[t+0]]+E[e[t+1]]+E[e[t+2]]+E[e[t+3]]+"-"+E[e[t+4]]+E[e[t+5]]+"-"+E[e[t+6]]+E[e[t+7]]+"-"+E[e[t+8]]+E[e[t+9]]+"-"+E[e[t+10]]+E[e[t+11]]+E[e[t+12]]+E[e[t+13]]+E[e[t+14]]+E[e[t+15]]).toLowerCase();if(!j(r))throw TypeError("Stringified UUID is invalid");return r}(n)},T=r(10),k=r.n(T),P=r(4);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){w()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var C=lodash.omit,D=function(e){return elementor.notifications.showToast({message:e})},M=function(){var e=s()(o.a.mark((function e(){var t,r,n,a,c,i,l,s,u,p=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.length>0&&void 0!==p[0]?p[0]:{},r=N(N({cache:localStorage.getItem("tpcCacheBuster")},C(tiTpc.params,"meta")),{},{per_page:20,page:0,premade:!0,template_site_slug:"general"},C(t,"isScroll")),n=Object(y.stringifyUrl)({url:window.tiTpc.endpoint+"page-templates",query:r}),e.prev=3,e.next=6,k()({url:n,method:"GET",parse:!1});case 6:if(!(a=e.sent).ok){e.next=18;break}return e.next=10,a.json();case 10:if(!(c=e.sent).message){e.next=13;break}return e.abrupt("return",D(c.message));case 13:i=c,t.isScroll&&(l=Object(P.select)("tpc/elementor").getTemplates(),i=[].concat(f()(l.items),f()(c))),s=a.headers.get("x-wp-totalpages"),u=r.page,Object(P.dispatch)("tpc/elementor").updateTemplates(i,u,s);case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(3),e.t0.message&&D(e.t0.message);case 23:case"end":return e.stop()}}),e,null,[[3,20]])})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=s()(o.a.mark((function e(){var t,r,n,a,c,i,l,s,u,p=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=p.length>0&&void 0!==p[0]?p[0]:{},3===parseInt(window.tiTpc.tier)){e.next=3;break}return e.abrupt("return");case 3:return r=N({per_page:20,page:0},C(t,"isScroll")),n=Object(y.stringifyUrl)({url:window.tiTpc.endpoint+"templates",query:N(N({cache:localStorage.getItem("tpcCacheBuster")},C(tiTpc.params,"meta")),r)}),e.prev=5,e.next=8,k()({url:n,method:"GET",parse:!1});case 8:if(!(a=e.sent).ok){e.next=20;break}return e.next=12,a.json();case 12:if(!(c=e.sent).message){e.next=15;break}return e.abrupt("return",D(c.message));case 15:i=c,t.isScroll&&(l=Object(P.select)("tpc/elementor").getLibrary(),i=[].concat(f()(l.items),f()(c))),s=a.headers.get("x-wp-totalpages"),u=r.page,Object(P.dispatch)("tpc/elementor").updateLibrary(i,u,s);case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(5),e.t0.message&&D(e.t0.message);case 25:case"end":return e.stop()}}),e,null,[[5,22]])})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=s()(o.a.mark((function e(t){var r,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(y.stringifyUrl)({url:"".concat(window.tiTpc.endpoint,"templates/").concat(t),query:N({cache:localStorage.getItem("tpcCacheBuster")},C(tiTpc.params,"meta"))}),e.prev=1,e.next=4,k()({url:r,method:"GET",parse:!1});case 4:if(!(n=e.sent).ok){e.next=12;break}return e.next=8,n.json();case 8:if(!e.sent.message){e.next=11;break}return e.abrupt("return",!1);case 11:return e.abrupt("return",!0);case 12:e.next=17;break;case 14:return e.prev=14,e.t0=e.catch(1),e.abrupt("return",!1);case 17:case"end":return e.stop()}}),e,null,[[1,14]])})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=s()(o.a.mark((function e(t){var r,n,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(y.stringifyUrl)({url:"".concat(window.tiTpc.endpoint,"templates/").concat(t,"/import"),query:N({cache:localStorage.getItem("tpcCacheBuster")},C(tiTpc.params,"meta"))}),n={},e.prev=2,e.next=5,k()({url:r,method:"GET",parse:!1});case 5:if(!(a=e.sent).ok){e.next=12;break}return e.next=9,a.json();case 9:if(!(n=e.sent).message){e.next=12;break}return e.abrupt("return",D(n.message));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),e.t0.message&&D(e.t0.message);case 17:return e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,null,[[2,14]])})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=s()(o.a.mark((function e(t){var r,n,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(y.stringifyUrl)({url:"".concat(window.tiTpc.endpoint,"templates/").concat(t,"/clone"),query:N({cache:localStorage.getItem("tpcCacheBuster")},C(tiTpc.params,"meta"))}),e.prev=1,e.next=4,k()({url:r,method:"POST"});case 4:if(!(n=e.sent).ok){e.next=11;break}return e.next=8,n.json();case 8:if(!(a=e.sent).message){e.next=11;break}return e.abrupt("return",D(a.message));case 11:return localStorage.setItem("tpcCacheBuster",_()),e.next=14,I();case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),e.t0.message&&D(e.t0.message);case 19:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),A=function(){var e=s()(o.a.mark((function e(t){var r,n,a,c,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(y.stringifyUrl)({url:"".concat(window.tiTpc.endpoint,"templates/").concat(t.template_id),query:N(N({cache:localStorage.getItem("tpcCacheBuster")},C(tiTpc.params,"meta")),{},{meta:JSON.stringify(tiTpc.params.meta)},C(t,"content"))}),e.prev=1,n={url:r,method:"POST",parse:!1},t.content&&(a={title:elementor.config.initial_document.settings.settings.post_title||"",version:"0.4",type:"page",content:t.content},n.data=a),e.next=6,k()(N({},n));case 6:if(!(c=e.sent).ok){e.next=13;break}return e.next=10,c.json();case 10:if(!(i=e.sent).message){e.next=13;break}return e.abrupt("return",D(i.message));case 13:return localStorage.setItem("tpcCacheBuster",_()),e.next=16,I();case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(1),e.t0.message&&D(e.t0.message);case 21:case"end":return e.stop()}}),e,null,[[1,18]])})));return function(t){return e.apply(this,arguments)}}(),U=function(){var e=s()(o.a.mark((function e(t){var r,n,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(y.stringifyUrl)({url:"".concat(window.tiTpc.endpoint,"templates/").concat(t),query:N({cache:localStorage.getItem("tpcCacheBuster"),_method:"DELETE"},C(tiTpc.params,"meta"))}),e.prev=1,e.next=4,k()({url:r,method:"POST"});case 4:if(!(n=e.sent).ok){e.next=11;break}return e.next=8,n.json();case 8:if(!(a=e.sent).message){e.next=11;break}return e.abrupt("return",D(a.message));case 11:return localStorage.setItem("tpcCacheBuster",_()),e.next=14,I();case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),e.t0.message&&D(e.t0.message);case 19:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=s()(o.a.mark((function e(t){var r,n,a,c,i,l,s,u,p,m,d,b,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.title,n=t.type,a=t.content,c=t.link,i=void 0===c?"":c,l=t.callback,s=void 0===l?function(){}:l,u={version:"0.4",title:r,type:n,content:a},p=window.tiTpc.params.meta,(m=elementor.documents.getCurrent().container.settings.get("template"))&&(p._wp_page_template=m),d=Object(y.stringifyUrl)({url:window.tiTpc.endpoint+"templates",query:N(N({},C(tiTpc.params,"meta")),{},{meta:"page"===n?JSON.stringify(p):"",template_name:r||window.tiTpc.exporter.textPlaceholder,template_type:"elementor",link:i})}),e.prev=6,e.next=9,k()({url:d,method:"POST",data:u,parse:!1});case 9:if(!(b=e.sent).ok){e.next=15;break}return e.next=13,b.json();case 13:(f=e.sent).message?D(f.message):(s(f),window.localStorage.setItem("tpcCacheBuster",_()),D(window.tiTpc.exporter.templateSaved));case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(6),e.t0.message&&D(e.t0.message);case 20:case"end":return e.stop()}}),e,null,[[6,17]])})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=s()(o.a.mark((function e(t){var r,n,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(y.stringifyUrl)({url:"".concat(window.tiTpc.endpoint,"templates/").concat(t.template_id,"/publish"),query:N(N({cache:localStorage.getItem("tpcCacheBuster"),method:"POST"},C(tiTpc.params,"meta")),C(t,"template_id"))}),e.prev=1,e.next=4,k()({url:r,method:"POST",headers:{Authorization:"Bearer ".concat(window.tiTpc.bearer||""," ")}});case 4:if(!(n=e.sent).ok){e.next=14;break}return e.next=8,n.json();case 8:if(!(a=e.sent).message){e.next=12;break}return D(a.message),e.abrupt("return",{success:!1});case 12:e.next=17;break;case 14:if(!n.message){e.next=17;break}return D(n.message),e.abrupt("return",{success:!1});case 17:return localStorage.setItem("tpcCacheBuster",_()),e.abrupt("return",{success:!0});case 21:if(e.prev=21,e.t0=e.catch(1),!e.t0.message){e.next=26;break}return D(e.t0.message),e.abrupt("return",{success:!1});case 26:case"end":return e.stop()}}),e,null,[[1,21]])})));return function(t){return e.apply(this,arguments)}}();3===parseInt(window.tiTpc.tier)&&(elementor.on("document:loaded",(function(){s()(o.a.mark((function e(){var t,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(["wp-post","wp-page"].includes(elementor.config.document.type)){e.next=2;break}return e.abrupt("return",null);case 2:if(t=elementor.config.document.id,"page"!==window.tiTpc.postType){e.next=9;break}return e.next=6,new wp.api.models.Page({id:t});case 6:window.tiTpc.postModel=e.sent,e.next=12;break;case 9:return e.next=11,new wp.api.models.Post({id:t});case 11:window.tiTpc.postModel=e.sent;case 12:return e.next=14,window.tiTpc.postModel.fetch();case 14:(r=document.querySelector("button#elementor-panel-saver-button-publish")).addEventListener("click",s()(o.a.mark((function e(){var t,n,a,c,i,l,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.tiTpc.postModel.fetch();case 2:return t=window.tiTpc.postModel.getMetas(),n=t._ti_tpc_template_sync,a=t._ti_tpc_template_id,e.next=5,L(a);case 5:if(c=e.sent,r.className.includes("elementor-disabled")||!n||!a||!c){e.next=13;break}return i=elementor.elements.toJSON({remove:["default","editSettings","defaultEditSettings"]}),l=window.tiTpc.params.meta,(s=elementor.documents.getCurrent().container.settings.get("template"))&&(l._wp_page_template=s),e.next=13,A({template_id:a,template_name:elementor.config.initial_document.settings.settings.post_title||"",content:i,meta:JSON.stringify(l)});case 13:case"end":return e.stop()}}),e)}))));case 16:case"end":return e.stop()}}),e)})))()})),document.addEventListener("DOMContentLoaded",(function(){var e=function(e){var t=e.content,r=Object(u.useState)(""),n=c()(r,2),a=n[0],i=n[1],l=Object(u.useState)(!1),p=c()(l,2),b=p[0],f=p[1],g=function(){Object(u.unmountComponentAtNode)(document.getElementById("ti-tpc-modal"))},w=function(){var e=s()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.next=3,R({title:a,type:"section",content:[t]});case 3:f(!1),g();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(u.createElement)(d.Modal,{title:window.tiTpc.exporter.modalLabel,onRequestClose:g,overlayClassName:m()({"is-dark":"dark"===elementor.settings.editorPreferences.model.get("ui_theme")})},Object(u.createElement)(d.TextControl,{label:window.tiTpc.exporter.textLabel,placeholder:window.tiTpc.exporter.textPlaceholder,value:a,onChange:i}),Object(u.createElement)(d.Button,{isPrimary:!0,isBusy:b,disabled:b,onClick:w},window.tiTpc.exporter.buttonLabel))};elementor.hooks.addFilter("elements/section/contextMenuGroups",(function(t,r){var n={name:"ti_tpc_export",title:window.tiTpc.exporter.exportLabel,callback:function(){return function(t){var r=t.model.toJSON({remove:["default","editSettings","defaultEditSettings"]}),n=document.createElement("div");n.id="ti-tpc-modal",document.body.appendChild(n),Object(u.render)(Object(u.createElement)(e,{content:r}),document.getElementById("ti-tpc-modal"))}(r)}},a=t.find((function(e){return"save"===e.name}));if(a)a.actions.push(n);else{var c={name:"ti_tpc_export",actions:[n]};t.splice(3,0,c),t.join()}return t}))})));var G=r(16),H=r.n(G),z=r(12),q=r(5);function $(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){w()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var J=function(e){var t=e.title;return Object(u.createElement)(q.SVG,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"tpc-template-cloud-icon",title:t},Object(u.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(u.createElement)(q.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(u.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"}))},Z=Object(z.compose)(Object(P.withSelect)((function(e){var t=e("tpc/elementor"),r=t.isFetching,n=t.isPreview,a=t.getCurrentTab,c=t.getPreview;return{isFetching:r(),isPreview:n(),currentTab:a(),preview:c()}})),Object(P.withDispatch)((function(e){var t=e("tpc/elementor");return{setFetching:t.setFetching,togglePreview:t.togglePreview,updateCurrentTab:t.updateCurrentTab}})))((function(e){var t=e.getSearchQuery,r=e.getOrder,n=e.onImport,a=e.isFetching,c=e.isPreview,i=e.currentTab,l=e.preview,p=e.setFetching,b=e.togglePreview,f=e.updateCurrentTab,g=function(){var e=s()(o.a.mark((function e(){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.localStorage.setItem("tpcCacheBuster",_()),p(!0),n=r(),e.next=5,M(Y({search:t()},n));case 5:return e.next=7,I(Y({search:t()},n));case 7:p(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(u.createElement)("div",{className:m()("dialog-header dialog-lightbox-header",{"is-dark":"dark"===elementor.settings.editorPreferences.model.get("ui_theme")})},Object(u.createElement)("div",{className:"ti-tpc-templates-modal__header"},Object(u.createElement)("div",{className:"ti-tpc-templates-modal__header__logo-area"},c?Object(u.createElement)(d.Button,{className:"ti-tpc-template-library-header-preview-back",onClick:b},Object(u.createElement)("i",{className:"eicon-","aria-hidden":"true"}),Object(u.createElement)("span",null,window.tiTpc.library.actions.back)):Object(u.createElement)("div",{className:"ti-tpc-templates-modal__header__logo"},Object(u.createElement)(J,{title:window.tiTpc.library.templatesCloud}))),!c&&Object(u.createElement)("div",{className:"ti-tpc-templates-modal__header__menu-area"},Object(u.createElement)(d.Button,{className:m()("ti-tpc-template-library-menu-item",{"is-active":"templates"===i}),onClick:function(){return f("templates")}},window.tiTpc.library.tabs.templates),3===parseInt(window.tiTpc.tier)&&Object(u.createElement)(d.Button,{className:m()("ti-tpc-template-library-menu-item",{"is-active":"library"===i}),onClick:function(){return f("library")}},window.tiTpc.library.tabs.library)),Object(u.createElement)("div",{className:"ti-tpc-templates-modal__header__items-area"},Object(u.createElement)("div",{className:"ti-tpc-template-library-header-tools"},c?Object(u.createElement)("div",{className:"ti-tpc-templates-modal__header__item ti-tpc-template-library-header-preview-insert-wrapper"},Object(u.createElement)(d.Button,{className:"ti-tpc-template-library-template-insert elementor-button",onClick:function(){return n({id:l.template_id,title:l.template_name,meta:l.meta||[]})}},Object(u.createElement)("i",{className:"eicon-file-download","aria-hidden":"true"}),Object(u.createElement)("span",{className:"elementor-button-title"},window.tiTpc.library.actions.insert))):Object(u.createElement)("div",{className:"ti-tpc-template-library-header-actions"},"library"===i&&Object(u.createElement)(d.Button,{className:"ti-tpc-templates-modal__header__item",onClick:g},Object(u.createElement)("i",{className:m()("eicon-sync",{"eicon-animation-spin":a}),"aria-hidden":"true",title:window.tiTpc.library.actions.sync}),Object(u.createElement)("span",{className:"elementor-screen-only"},window.tiTpc.library.actions.sync)),["wp-post","wp-page"].includes(elementor.config.document.type)&&3===parseInt(window.tiTpc.tier)&&Object(u.createElement)(d.Button,{className:"ti-tpc-templates-modal__header__item",onClick:function(){return f("export")}},Object(u.createElement)("i",{className:"eicon-save-o","aria-hidden":"true",title:window.tiTpc.library.save}),Object(u.createElement)("span",{className:"elementor-screen-only"},window.tiTpc.library.save)))),Object(u.createElement)(d.Button,{className:"ti-tpc-templates-modal__header__item ti-tpc-templates-modal__header__close",onClick:window.tiTpcModal.hide},Object(u.createElement)("i",{className:"eicon-close","aria-hidden":"true",title:window.tiTpc.library.actions.close}),Object(u.createElement)("span",{className:"elementor-screen-only"},window.tiTpc.library.actions.close)))))})),Q=Object(u.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(q.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),W=r(17),K=r(11);function X(e){return[null,void 0].includes(e)}function ee(e){var t=e.getBoundingClientRect();return{top:t.top,bottom:t.bottom,left:t.left,right:t.right}}function te(e,t,r){if(e){var n=ee(e),a=n.left,c=n.right,i=n.top,o=n.bottom;if(a>r)return!1;if(c<0)return!1;if(i>t)return!1;if(o<0)return!1}return!0}var re=function(e){var t,r,n,a=e.loading,c=e.hasNextPage,i=e.onLoadMore,o=e.threshold,l=void 0===o?150:o,s=e.checkInterval,u=void 0===s?200:s,p=e.scrollContainer,m=void 0===p?"window":p,d=Object(K.useRef)(null),b=function(){var e="object"==typeof window,t=Object(K.useCallback)((function(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}),[e]),r=Object(K.useState)(t()),n=r[0],a=r[1];return Object(K.useEffect)((function(){function r(){a(t())}if(e)return window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}}),[t,e]),n}(),f=b.height,g=b.width,w=Object(K.useState)(!0),y=w[0],h=w[1];return Object(K.useEffect)((function(){a||h(!0)}),[a]),t=function(){!function(){if(y&&!a&&c&&d.current){if("parent"===m){if(!(n=null===(r=d.current)||void 0===r?void 0:r.parentNode)||X(f)||X(g)||!te(n,f,g))return}else if(!(t=d.current)||X(f)||X(g)||!te(t,f,g))return;var e=function(){var e=d.current;if(!e||X(f))return null;var t=e.getBoundingClientRect().bottom,r=t-f;if("parent"===m){var n=e.parentNode;if(!n)return null;r=t-ee(n).bottom}return r}();if(X(e))return;e<l&&(h(!1),i())}var t,r,n}()},r=c?u:0,n=Object(K.useRef)(null),Object(K.useEffect)((function(){n.current=t}),[t]),Object(K.useEffect)((function(){if(r){var e=setInterval((function(){var e;null===(e=n.current)||void 0===e||e.call(n)}),r);return function(){clearInterval(e)}}}),[r]),d},ne=Object(u.createElement)(q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(q.Path,{d:"M7.5 12C7.5 11.1716 6.82843 10.5 6 10.5C5.17157 10.5 4.5 11.1716 4.5 12C4.5 12.8284 5.17157 13.5 6 13.5C6.82843 13.5 7.5 12.8284 7.5 12Z"}),Object(u.createElement)(q.Path,{d:"M13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5C12.8284 13.5 13.5 12.8284 13.5 12Z"}),Object(u.createElement)(q.Path,{d:"M19.5 12C19.5 11.1716 18.8284 10.5 18 10.5C17.1716 10.5 16.5 11.1716 16.5 12C16.5 12.8284 17.1716 13.5 18 13.5C18.8284 13.5 19.5 12.8284 19.5 12Z"})),ae=Object(u.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.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"})),ce=Object(u.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(q.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"})),ie=Object(u.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.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"}));function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var le=Object(P.withDispatch)((function(e){var t=e("tpc/elementor");return{togglePreview:t.togglePreview,setPreviewData:t.setPreviewData}}))((function(e){var t=e.table,r=void 0!==t&&t,n=e.item,a=e.id,i=e.title,o=e.meta,l=e.thumbnail,s=e.onImport,p=e.onUpdateTemplate,m=e.onDelete,b=e.onDuplicate,f=e.togglePreview,g=e.setPreviewData,y=Object(u.useState)(!1),h=c()(y,2),v=h[0],O=h[1],j=Object(u.useState)(i),E=c()(j,2),x=E[0],_=E[1];return r?Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-table-item"},Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-table-column"},v?Object(u.createElement)(u.Fragment,null,Object(u.createElement)("input",{type:"text",value:x,onChange:function(e){return _(e.target.value)}}),Object(u.createElement)(d.Button,{className:"elementor-button",onClick:function(){return p(a,x)}},Object(u.createElement)("i",{className:"eicon-check","aria-hidden":"true",title:window.tiTpc.library.actions.save}),Object(u.createElement)("span",{className:"elementor-button-title elementor-hidden"},window.tiTpc.library.actions.save)),Object(u.createElement)(d.Button,{className:"elementor-button",onClick:function(){return O(!1)}},Object(u.createElement)("i",{className:"eicon-editor-close","aria-hidden":"true",title:window.tiTpc.library.actions.cancel}),Object(u.createElement)("span",{className:"elementor-button-title elementor-hidden"},window.tiTpc.library.actions.cancel))):i),Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-table-column"},moment(n.date).format("MMMM D, YYYY")),Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-table-column"},moment(n.modified).format("MMMM D, YYYY")),Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-table-column"},Object(u.createElement)(d.Button,{className:"elementor-button elementor-button-success",onClick:function(){return s({id:a,title:i,meta:o})}},Object(u.createElement)("i",{className:"eicon-file-download","aria-hidden":"true"}),Object(u.createElement)("span",{className:"elementor-button-title"},window.tiTpc.library.actions.insert)),Object(u.createElement)(d.DropdownMenu,{icon:ne,label:window.tiTpc.library.filters.sortLabels.actions,popoverProps:{position:"bottom right",noArrow:!1},controls:[{title:window.tiTpc.library.actions.edit,icon:ae,isDisabled:!!n.link,onClick:function(){return O(!0)}},{title:window.tiTpc.library.actions.duplicate,icon:ce,onClick:function(){return b(a)}},{title:window.tiTpc.library.actions.delete,icon:ie,onClick:function(){return m(a)}}]}))):Object(u.createElement)("div",{className:"ti-tpc-template-library-template"},Object(u.createElement)("div",{className:"ti-tpc-template-library-template-body"},Object(u.createElement)("div",{className:"ti-tpc-template-library-template-screenshot",style:{backgroundImage:"url( ".concat(l,")")}}),Object(u.createElement)(d.Button,{className:"ti-tpc-template-library-template-preview",onClick:function(){f(),g(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(r),!0).forEach((function(t){w()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n))}},Object(u.createElement)("i",{className:"eicon-zoom-in-bold","aria-hidden":"true"}))),Object(u.createElement)("div",{className:"ti-tpc-template-library-template-footer"},Object(u.createElement)(d.Button,{className:"ti-tpc-template-library-template-action elementor-button",onClick:function(){return s({id:a,title:i,meta:o})}},Object(u.createElement)("i",{className:"eicon-file-download","aria-hidden":"true"}),Object(u.createElement)("span",null,window.tiTpc.library.actions.insert)),Object(u.createElement)("div",{className:"ti-tpc-template-library-template-name"},i)))}));function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){w()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var pe={template_name:window.tiTpc.library.filters.sortLabels.name,date:window.tiTpc.library.filters.sortLabels.date,modified:window.tiTpc.library.filters.sortLabels.modified},me=Object(P.withSelect)((function(e,t){var r=t.isGeneral?e("tpc/elementor").getTemplates():e("tpc/elementor").getLibrary(),n=r.items;return{items:void 0===n?[]:n,currentPage:r.currentPage,totalPages:r.totalPages}}))((function(e){var t=e.getSearchQuery,r=e.getOrder,n=e.setSorting,a=e.onImport,i=e.onUpdateTemplate,l=e.onDelete,p=e.onDuplicate,b=e.isGeneral,f=e.items,g=e.currentPage,w=e.totalPages,y=Object(u.useState)(!1),h=c()(y,2),v=h[0],O=h[1],j=re({loading:v,hasNextPage:g!==w,onLoadMore:function(){var e=s()(o.a.mark((function e(){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g!==w){e.next=2;break}return e.abrupt("return");case 2:if(O(!0),n=r(),!b){e.next=9;break}return e.next=7,M(ue({search:t(),page:g+1,isScroll:!0},n));case 7:e.next=11;break;case 9:return e.next=11,I(ue({search:t(),page:g+1,isScroll:!0},n));case 11:O(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),threshold:1});return Object(u.createElement)("div",{className:m()("ti-tpc-template-library-templates-container",{"is-table":!b}),ref:j},b?f.map((function(e){return Object(u.createElement)(le,{key:e.template_id,item:e,id:e.template_id,title:e.template_name,thumbnail:e.template_thumbnail,onImport:a})})):Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-table-header"},Object.keys(pe).map((function(e){return Object(u.createElement)("div",{key:e,className:"ti-tpc-template-library-templates-table-column"},Object(u.createElement)(d.Button,{className:m()({"is-selected":e===r().orderby,"is-asc":"ASC"===r().order}),onClick:function(){var t={order:"DESC",orderby:e};e===r().orderby&&"DESC"===r().order&&(t.order="ASC"),n(ue({},t))}},pe[e]))})),Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-table-column"},Object(u.createElement)(d.Button,null,window.tiTpc.library.filters.sortLabels.actions))),f.map((function(e){return Object(u.createElement)(le,{table:!0,key:e.template_id,item:e,id:e.template_id,title:e.template_name,meta:e.meta||"",onImport:a,onUpdateTemplate:i,onDelete:l,onDuplicate:function(e){return p(e)}})}))),0===f.length&&(b?Object(u.createElement)("p",null,"No templates found. Check again later!"):Object(u.createElement)("p",null,"No templates available. Try adding few templates.")),v&&Object(u.createElement)(d.Placeholder,null,Object(u.createElement)(d.Spinner,null)))})),de=Object(P.withDispatch)((function(e){return{updateCurrentTab:e("tpc/elementor").updateCurrentTab}}))((function(e){var t=e.updateCurrentTab;Object(u.useEffect)((function(){var e=window.tiTpc.postModel.getMetas(),t=e._ti_tpc_template_sync,r=e._ti_tpc_template_id,n=e._ti_tpc_screenshot_url,a=e._ti_tpc_site_slug,c=e._ti_tpc_published;g(Boolean(t)),v(r),x(n),P(a),D(Boolean(c))}),[]);var r=elementor.config.initial_document.settings.settings.post_title||"",n=Object(u.useState)(!1),a=c()(n,2),i=a[0],l=a[1],p=Object(u.useState)(!1),b=c()(p,2),f=b[0],g=b[1],w=Object(u.useState)(""),y=c()(w,2),h=y[0],v=y[1],O=Object(u.useState)(""),j=c()(O,2),E=j[0],x=j[1],_=Object(u.useState)(""),T=c()(_,2),k=T[0],P=T[1],S=Object(u.useState)(""),N=c()(S,2),C=N[0],D=N[1],M=function(){var e=s()(o.a.mark((function e(){var n,a,c,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l(!0),n=elementor.elements.toJSON({remove:["default","editSettings","defaultEditSettings"]}),a=!1,!h){e.next=7;break}return e.next=6,L(h);case 6:a=e.sent;case 7:if(c=window.tiTpc.params.meta,(i=elementor.documents.getCurrent().container.settings.get("template"))&&(c._wp_page_template=i),!a){e.next=15;break}return e.next=13,A({template_id:h,template_name:r,content:n,link:elementor.config.initial_document.urls.permalink,meta:JSON.stringify(c)});case 13:e.next=17;break;case 15:return e.next=17,R({title:r,type:"page",content:n,link:elementor.config.initial_document.urls.permalink,callback:function(e){v(e.template_id),window.tiTpc.postModel.set("meta",{_ti_tpc_template_id:e.template_id,_ti_tpc_template_sync:f}),window.tiTpc.postModel.save()}});case 17:l(!1),t("library");case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=s()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l(!0),e.next=3,V({template_id:h,template_site_slug:k,template_thumbnail:E,premade:C?"no":"yes",link:elementor.config.initial_document.urls.permalink}).then((function(e){e.success&&(elementor.notifications.showToast({message:C?window.tiTpc.exporter.templateUnpublished:window.tiTpc.exporter.templatePublished}),D(!C),window.tiTpc.postModel.set("meta",{_ti_tpc_template_id:h,_ti_tpc_template_sync:f,_ti_tpc_screenshot_url:E,_ti_tpc_site_slug:k,_ti_tpc_published:!C}),window.tiTpc.postModel.save())}));case 3:l(!1);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(u.createElement)("div",{className:"dialog-message dialog-lightbox-message"},Object(u.createElement)("div",{className:"dialog-content dialog-lightbox-content"},Object(u.createElement)("div",{className:"ti-tpc-template-library-export"},Object(u.createElement)("div",{className:"ti-tpc-template-library-blank-icon"},Object(u.createElement)("i",{className:"eicon-library-save","aria-hidden":"true"}),Object(u.createElement)("span",{className:"elementor-screen-only"},window.tiTpc.library.export.save)),Object(u.createElement)("div",{className:"ti-tpc-template-library-blank-title"},window.tiTpc.library.export.title),Object(u.createElement)("div",{className:"ti-tpc-template-library-blank-field"},Object(u.createElement)("input",{className:"ti-tpc-template-library-blank-field-input",value:elementor.config.initial_document.settings.settings.post_title,disabled:!0}),Object(u.createElement)(d.Button,{className:m()("elementor-button elementor-button-success",{"elementor-button-state":i}),onClick:M},Object(u.createElement)("span",{className:"elementor-state-icon"},Object(u.createElement)("i",{className:"eicon-loading eicon-animation-spin","aria-hidden":"true"})),window.tiTpc.library.export.save)),Object(u.createElement)("div",{className:"ti-tpc-template-library-blank-field"},Object(u.createElement)(d.ToggleControl,{label:window.tiTpc.exporter.toggleLabel,checked:f,onChange:function(){return g(!f)}})),window.tiTpc.canPredefine&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"ti-tpc-template-library-blank-field"},Object(u.createElement)("label",{htmlFor:"ti-tpc-template-screenshot",className:"ti-tpc-template-library-blank-field-input-label"},window.tiTpc.library.export.labelScreenshot),Object(u.createElement)("input",{className:"ti-tpc-template-library-blank-field-input",id:"ti-tpc-template-screenshot",value:E,onChange:function(e){return x(e.target.value)}})),Object(u.createElement)("div",{className:"ti-tpc-template-library-blank-field"},Object(u.createElement)("label",{htmlFor:"ti-tpc-template-slug",className:"ti-tpc-template-library-blank-field-input-label"},window.tiTpc.library.export.labelSlug),Object(u.createElement)("input",{className:"ti-tpc-template-library-blank-field-input",id:"ti-tpc-template-slug",value:k,onChange:function(e){return P(e.target.value)}})),Object(u.createElement)("div",{className:"ti-tpc-template-library-blank-field"},Object(u.createElement)(d.Button,{className:m()("elementor-button elementor-button-success",{"elementor-button-state":i}),onClick:I},Object(u.createElement)("span",{className:"elementor-state-icon"},Object(u.createElement)("i",{className:"eicon-loading eicon-animation-spin","aria-hidden":"true"})),C?window.tiTpc.library.export.unpublish:window.tiTpc.library.export.publish))))))}));function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){w()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge={date:window.tiTpc.library.filters.sortLabels.date,template_name:window.tiTpc.library.filters.sortLabels.name,modified:window.tiTpc.library.filters.sortLabels.modified},we=Object(z.compose)(Object(P.withSelect)((function(e){var t=e("tpc/elementor"),r=t.isFetching,n=t.isPreview,a=t.getCurrentTab,c=t.getPreview;return{isFetching:r(),isPreview:n(),currentTab:a(),preview:c()}})),Object(P.withDispatch)((function(e){return{setFetching:e("tpc/elementor").setFetching}})))((function(e){var t=e.setQuery,r=e.getSearchQuery,n=e.setSorting,a=e.getOrder,c=e.isSearch,i=e.setSearch,l=e.onImport,p=e.isFetching,b=e.isPreview,f=e.currentTab,g=e.preview,w=e.setFetching,y=function(){var e=s()(o.a.mark((function e(){var t,n,c=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:r(),w(!0),i(!!t),n=a(),"templates"!==f){e.next=9;break}return e.next=7,M(fe({search:t},n));case 7:e.next=11;break;case 9:return e.next=11,I(fe({search:t},n));case 11:w(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(u.useEffect)((function(){y()}),[f,a()]);var h="templates"===f,v=function(){var e=s()(o.a.mark((function e(t,r){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.next=3,A({template_id:t,template_name:r});case 3:w(!1);case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),O=function(){var e=s()(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.next=3,U(t);case 3:w(!1);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=s()(o.a.mark((function e(t){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),e.next=3,F(t);case 3:w(!1);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return b?Object(u.createElement)("div",{className:m()("dialog-message dialog-lightbox-message",{"is-dark":"dark"===elementor.settings.editorPreferences.model.get("ui_theme")})},Object(u.createElement)("div",{className:"dialog-content dialog-lightbox-content"},Object(u.createElement)("div",{className:"ti-tpc-template-library-preview"},Object(u.createElement)("iframe",{title:g.template_name,src:g.link||""}),Object(u.createElement)("div",{className:"is-loading"},Object(u.createElement)(d.Icon,{icon:Q}))))):p?Object(u.createElement)("div",{className:m()("dialog-message dialog-lightbox-message",{"is-dark":"dark"===elementor.settings.editorPreferences.model.get("ui_theme")})},Object(u.createElement)("div",{className:"dialog-content dialog-lightbox-content is-loading"},Object(u.createElement)(d.Spinner,null))):"export"===f?Object(u.createElement)(de,null):Object(u.createElement)("div",{className:m()("dialog-message dialog-lightbox-message",{"is-dark":"dark"===elementor.settings.editorPreferences.model.get("ui_theme")})},Object(u.createElement)("div",{className:"dialog-content dialog-lightbox-content"},Object(u.createElement)("div",{className:"ti-tpc-template-library-templates"},Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-header"},Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-header-filters"},h&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-header-filters-label"},window.tiTpc.library.filters.sortLabel),Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-header-filters-filter"},Object.keys(ge).map((function(e){return Object(u.createElement)(d.Button,{key:e,className:m()({"is-selected":e===a().orderby,"is-asc":"ASC"===a().order}),onClick:function(){var t={order:"DESC",orderby:e};e===a().orderby&&"DESC"===a().order&&(t.order="ASC"),n(fe({},t))}},ge[e])}))))),Object(u.createElement)("div",{className:"ti-tpc-template-library-templates-header-search"},Object(u.createElement)("label",{htmlFor:"ti-tpc-template-library-filter-search",className:"elementor-screen-only"},window.tiTpc.library.filters.searchLabel),Object(u.createElement)("input",{id:"ti-tpc-template-library-filter-search",placeholder:window.tiTpc.library.filters.search,value:r(),onChange:function(e){return t(e.target.value)},onKeyDown:function(e){e.keyCode===W.ENTER&&y()}}),c?Object(u.createElement)(d.Button,{onClick:function(){t(""),y("")}},Object(u.createElement)("i",{className:"eicon-close"})):Object(u.createElement)(d.Button,{onClick:function(){return y()}},Object(u.createElement)("i",{className:"eicon-search"})))),["templates","library"].includes(f)&&Object(u.createElement)(me,{getSearchQuery:function(){return r()},getOrder:a,setSorting:n,onImport:l,onUpdateTemplate:v,onDelete:O,onDuplicate:j,isFetching:p,isGeneral:h}))))}));function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(r),!0).forEach((function(t){w()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ve=lodash.omit,Oe=Object(z.compose)(Object(P.withSelect)((function(e){return{currentTab:(0,e("tpc/elementor").getCurrentTab)()}})),Object(P.withDispatch)((function(e){return{setFetching:e("tpc/elementor").setFetching}})))((function(e){var t=e.currentTab,r=e.setFetching,n=Object(u.useState)({templates:"",library:""}),a=c()(n,2),i=a[0],l=a[1],p=Object(u.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),m=c()(p,2),d=m[0],b=m[1],f=Object(u.useState)({templates:!1,library:!1}),g=c()(f,2),w=g[0],y=g[1],h="templates"===t,v=function(){return h?i.templates:i.library},O=function(){return h?d.templates:d.library},j=function e(t){if(t.id=elementorCommon.helpers.getUniqueId(),0<t.elements.length)for(var r=0;r<t.elements.length;r++)t.elements[r]=e(t.elements[r]);return t},E=function(e){try{var t=JSON.parse(e);if(t&&"object"===H()(t))return t}catch(e){}return!1},x=function(){var e=s()(o.a.mark((function e(t){var n,a,c,i,l,s,u,p,m;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,a=t.title,c=t.meta,i=void 0===c?void 0:c,r(!0),e.next=4,B(n);case 4:if(l=e.sent){e.next=7;break}return e.abrupt("return",r(!1));case 7:for(s=$e.internal("document/history/start-log",{type:"add",title:"".concat(window.tiTpc.library.historyMessage," ").concat(a)}),u=Number(window.tiTpc.placeholder),p=l.content,m=0;m<p.length;m++)p[m]=j(p[m]),$e.run("document/elements/create",{container:elementor.getPreviewContainer(),model:p[m],options:u>=0?{at:u++}:{}});void 0!==i&&0<Object.keys(E(i)||{}).length&&(i=he({},JSON.parse(i)),window.tiTpc.postModel.set("meta",he({},ve(i,"_wp_page_template"))),window.tiTpc.postModel.save(),i._wp_page_template&&elementor.documents.getCurrent().container.settings.set({template:i._wp_page_template})),$e.internal("document/history/end-log",{id:s}),window.tiTpcModal.hide(),r(!1);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Z,{getSearchQuery:v,getOrder:O,onImport:x}),Object(u.createElement)(we,{setQuery:function(e){return l(he(he({},i),{},h?{templates:e}:{library:e}))},getSearchQuery:v,setSorting:function(e){return b(he(he({},d),{},h?{templates:e}:{library:e}))},getOrder:O,isSearch:h?w.templates:w.library,setSearch:function(e){return y(he(he({},w),{},h?{templates:e}:{library:e}))},onImport:x}))}));void 0!==elementorCommon&&(window.tiTpcModal=elementorCommon.dialogsManager.createWidget("lightbox",{id:"ti-tpc-templates-modal",className:"ti-tpc-templates-modal",hide:{auto:!1,onClick:!1,onOutsideClick:!1,onOutsideContextMenu:!1,onBackgroundClick:!0},position:{my:"center",at:"center"},onShow:function(){var e=window.tiTpcModal.getElements("content");document.getElementById("ti-tpc-templates-modal-content")||e.append('<div id="ti-tpc-templates-modal-content" class="wrap"></div>')}}),window.tiTpcModal.getElements("header").remove(),window.tiTpcModal.getElements("message").remove(),window.tiTpcModal.getElements("widgetContent").append(window.tiTpcModal.addElement("content")));var je=document.getElementById("tmpl-elementor-add-section");if(je){var Ee=je.textContent;je.textContent=Ee.replace('<div class="elementor-add-section-drag-title">Drag widget here</div>','<div class="elementor-add-section-area-button elementor-templates-cloud-button" title="'.concat(window.tiTpc.library.libraryButton,'"><svg width="100" height="100" viewBox="10 10 80 80" fill="none" xmlns="http://www.w3.org/2000/svg" class="tpc-template-cloud-icon" role="img" aria-hidden="true" focusable="false"><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"></path><path d="M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z" fill="white"></path><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" style=""></path></svg></div> <div class="elementor-add-section-drag-title">Drag widget here</div>'))}function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(r),!0).forEach((function(t){w()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}elementor.on("preview:loaded",(function(){elementor.$previewContents[0].body.addEventListener("click",(function(e){(-1<Array.from(e.target.classList).indexOf("elementor-templates-cloud-button")||-1<Array.from(e.target.classList).indexOf("tpc-template-cloud-icon")||-1<Array.from(e.target.parentNode.classList).indexOf("tpc-template-cloud-icon"))&&function(e){window.tiTpcModal.show();var t=elementor.$previewContents[0].body.querySelector(".elementor-section-wrap"),r=e.closest(".elementor-add-section");window.tiTpc.placeholder=Array.from(t.childNodes).indexOf(r),Object(u.render)(Object(u.createElement)(Oe,null),document.getElementById("ti-tpc-templates-modal-content")),window.tiTpcModal.refreshPosition()}(e.target)}))}));var Te={isFetching:!0,isPreview:!1,tab:3===parseInt(window.tiTpc.tier)?"library":"templates",templates:[],library:{items:[],currentPage:0,totalPages:0},preview:{}};Object(P.registerStore)("tpc/elementor",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te,t=arguments.length>1?arguments[1]:void 0;return"SET_FETCHING"===t.type?_e(_e({},e),{},{isFetching:t.isFetching}):"TOGGLE_PREVIEW"===t.type?_e(_e({},e),{},{isPreview:!e.isPreview}):"UPDATE_CURRENT_TAB"===t.type?_e(_e({},e),{},{tab:t.tab}):"UPDATE_TEMPLATES"===t.type?_e(_e({},e),{},{templates:{items:t.items,currentPage:Number(t.currentPage),totalPages:Number(t.totalPages)}}):"UPDATE_LIBRARY"===t.type?_e(_e({},e),{},{library:{items:t.items,currentPage:Number(t.currentPage),totalPages:Number(t.totalPages)}}):"SET_PREVIEW_DATA"===t.type?_e(_e({},e),{},{preview:t.preview}):e},selectors:{isFetching:function(e){return e.isFetching},isPreview:function(e){return e.isPreview},getCurrentTab:function(e){return e.tab},getTemplates:function(e){return e.templates},getLibrary:function(e){return e.library},getPreview:function(e){return e.preview}},actions:{setFetching:function(e){return{type:"SET_FETCHING",isFetching:e}},togglePreview:function(e){return{type:"TOGGLE_PREVIEW",isPreview:e}},updateCurrentTab:function(e){return{type:"UPDATE_CURRENT_TAB",tab:e}},updateTemplates:function(e,t,r){return{type:"UPDATE_TEMPLATES",items:e,currentPage:t,totalPages:r}},updateLibrary:function(e,t,r){return{type:"UPDATE_LIBRARY",items:e,currentPage:t,totalPages:r}},setPreviewData:function(e){return{type:"SET_PREVIEW_DATA",preview:e}}}}),r(29)}]);
 
includes/Editor.php CHANGED
@@ -38,6 +38,15 @@ class Editor {
38
  public function register_block() {
39
  $deps = require( TIOB_PATH . 'editor/build/index.asset.php' );
40
 
 
 
 
 
 
 
 
 
 
41
  wp_register_script(
42
  $this->handle,
43
  TIOB_URL . 'editor/build/index.js',
38
  public function register_block() {
39
  $deps = require( TIOB_PATH . 'editor/build/index.asset.php' );
40
 
41
+ $screen = get_current_screen();
42
+ if ( ! isset( $screen->id ) ) {
43
+ return;
44
+ }
45
+
46
+ if ( $screen->id === 'widgets' ) {
47
+ return;
48
+ }
49
+
50
  wp_register_script(
51
  $this->handle,
52
  TIOB_URL . 'editor/build/index.js',
includes/Importers/Theme_Mods_Importer.php CHANGED
@@ -85,7 +85,7 @@ class Theme_Mods_Importer {
85
  );
86
  }
87
  $this->source_url = $data['source_url'];
88
- $this->theme_mods = $data['theme_mods'];
89
  array_walk( $this->theme_mods, array( $this, 'change_theme_mods_root_url' ) );
90
 
91
  foreach ( $this->theme_mods as $mod => $value ) {
85
  );
86
  }
87
  $this->source_url = $data['source_url'];
88
+ $this->theme_mods = apply_filters( 'ti_tpc_theme_mods_pre_import', $data['theme_mods'] );
89
  array_walk( $this->theme_mods, array( $this, 'change_theme_mods_root_url' ) );
90
 
91
  foreach ( $this->theme_mods as $mod => $value ) {
includes/Main.php CHANGED
@@ -18,7 +18,7 @@ class Main {
18
  *
19
  * @var string Version string.
20
  */
21
- const VERSION = '1.1.14';
22
  /**
23
  * Sites Library API URL.
24
  *
18
  *
19
  * @var string Version string.
20
  */
21
+ const VERSION = '1.1.15';
22
  /**
23
  * Sites Library API URL.
24
  *
languages/README.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ ### How to translate Cloud Templates & Patterns collection?
2
+
3
+ You can help translate Cloud Templates & Patterns collection by using the [WordPress.org](https://translate.wordpress.org/projects/wp-plugins/templates-patterns-collection/) translation page.
4
+
5
+ ### How to generate the translation file?
6
+
7
+ You can run the following commands to build the translation file:
8
+ * `yarn install --frozen-lockfile`
9
+ * `yarn run build:makepot`
languages/templates-patterns-collection.pot DELETED
@@ -1,754 +0,0 @@
1
- # Copyright (C) 2021 ThemeIsle
2
- # This file is distributed under the same license as the Templates Patterns Collection plugin.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Templates Patterns Collection 1.1.10\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/templates-patterns-collection\n"
7
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
- "Language-Team: LANGUAGE <LL@li.org>\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2021-07-05T02:54:47+00:00\n"
13
- "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
- "X-Generator: WP-CLI 2.4.0\n"
15
- "X-Domain: templates-patterns-collection\n"
16
-
17
- #. Plugin Name of the plugin
18
- msgid "Templates Patterns Collection"
19
- msgstr ""
20
-
21
- #. Description of the plugin
22
- msgid "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."
23
- msgstr ""
24
-
25
- #. Author of the plugin
26
- msgid "ThemeIsle"
27
- msgstr ""
28
-
29
- #. Author URI of the plugin
30
- msgid "https://themeisle.com"
31
- msgstr ""
32
-
33
- #: includes/Admin.php:70
34
- #: includes/Admin.php:71
35
- msgid "Starter Sites"
36
- msgstr ""
37
-
38
- #: includes/Admin.php:80
39
- #: includes/Elementor.php:75
40
- #: includes/TI_Beaver.php:402
41
- msgid "My Library"
42
- msgstr ""
43
-
44
- #. translators: %s - Theme name
45
- #: includes/Admin.php:153
46
- msgid "Choose from multiple unique demos, specially designed for you, that can be installed with a single click. You just need to choose your favorite, and we will take care of everything else."
47
- msgstr ""
48
-
49
- #: includes/Admin.php:244
50
- msgid "Great news! Now you can export your own custom designs to the cloud and then reuse them on other sites."
51
- msgstr ""
52
-
53
- #: includes/Admin.php:245
54
- msgid "Open %s"
55
- msgstr ""
56
-
57
- #: includes/Admin.php:342
58
- msgid "Hi! We've noticed you were using a child theme of Zelle before. To make your transition easier, we can help you keep the same homepage settings you had before but in original Zelle's style, by converting it into an Elementor template."
59
- msgstr ""
60
-
61
- #: includes/Admin.php:372
62
- #: includes/TI_Beaver.php:412
63
- #: assets/build/app.js:10
64
- #: assets/src/Components/StarterSiteCard.js:60
65
- msgid "Preview"
66
- msgstr ""
67
-
68
- #: includes/Admin.php:373
69
- #: includes/TI_Beaver.php:413
70
- #: assets/build/app.js:10
71
- #: assets/src/Components/PreviewFrame.js:102
72
- #: assets/src/Components/StarterSiteCard.js:68
73
- msgid "Import"
74
- msgstr ""
75
-
76
- #: includes/Admin.php:374
77
- msgid "Get the PRO version!"
78
- msgstr ""
79
-
80
- #: includes/Admin.php:375
81
- msgid "Importing"
82
- msgstr ""
83
-
84
- #: includes/Admin.php:376
85
- #: includes/Elementor.php:81
86
- #: includes/TI_Beaver.php:391
87
- #: assets/build/app.js:2
88
- #: assets/src/Components/Migration.js:165
89
- msgid "Cancel"
90
- msgstr ""
91
-
92
- #: includes/Admin.php:377
93
- msgid "Loading"
94
- msgstr ""
95
-
96
- #: includes/Admin.php:378
97
- #: assets/build/app.js:2
98
- #: assets/build/app.js:10
99
- #: assets/src/Components/ImportModal.js:603
100
- #: assets/src/Components/Migration.js:198
101
- msgid "View Website"
102
- msgstr ""
103
-
104
- #: includes/Admin.php:379
105
- #: assets/build/app.js:10
106
- #: assets/src/Components/ImportModal.js:613
107
- msgid "Add your own content"
108
- msgstr ""
109
-
110
- #: includes/Admin.php:380
111
- #: assets/build/app.js:10
112
- #: assets/src/Components/ImportModal.js:594
113
- msgid "Back to Sites Library"
114
- msgstr ""
115
-
116
- #: includes/Admin.php:381
117
- msgid "Note"
118
- msgstr ""
119
-
120
- #: includes/Admin.php:382
121
- msgid "Advanced Options"
122
- msgstr ""
123
-
124
- #: includes/Admin.php:383
125
- #: assets/build/app.js:10
126
- #: assets/src/Components/ImportModal.js:272
127
- msgid "Plugins"
128
- msgstr ""
129
-
130
- #: includes/Admin.php:384
131
- msgid "General"
132
- msgstr ""
133
-
134
- #: includes/Admin.php:385
135
- msgid "Keep current layout"
136
- msgstr ""
137
-
138
- #: includes/Admin.php:386
139
- #: includes/Elementor.php:96
140
- #: includes/TI_Beaver.php:425
141
- msgid "Search"
142
- msgstr ""
143
-
144
- #: includes/Admin.php:387
145
- #: assets/build/app.js:10
146
- #: assets/src/Components/ImportModal.js:200
147
- msgid "Content"
148
- msgstr ""
149
-
150
- #: includes/Admin.php:388
151
- #: assets/build/app.js:10
152
- #: assets/src/Components/ImportModal.js:204
153
- msgid "Customizer"
154
- msgstr ""
155
-
156
- #: includes/Admin.php:389
157
- #: assets/build/app.js:10
158
- #: assets/src/Components/ImportModal.js:208
159
- msgid "Widgets"
160
- msgstr ""
161
-
162
- #: includes/Admin.php:390
163
- msgid "We recommend you backup your website content before attempting a full site import."
164
- msgstr ""
165
-
166
- #: includes/Admin.php:391
167
- msgid "Due to copyright issues, some of the demo images will not be imported and will be replaced by placeholder images."
168
- msgstr ""
169
-
170
- #: includes/Admin.php:392
171
- msgid "Some of the demo images will not be imported and will be replaced by placeholder images."
172
- msgstr ""
173
-
174
- #: includes/Admin.php:393
175
- msgid "Here is our own collection of related images you can use for your site."
176
- msgstr ""
177
-
178
- #: includes/Admin.php:394
179
- #: assets/build/app.js:8
180
- #: assets/src/Components/ImportModal.js:542
181
- msgid "Content was successfully imported. Enjoy your new site!"
182
- msgstr ""
183
-
184
- #: includes/Admin.php:395
185
- msgid "Available in the PRO version"
186
- msgstr ""
187
-
188
- #: includes/Admin.php:396
189
- msgid "Copy error code"
190
- msgstr ""
191
-
192
- #: includes/Admin.php:397
193
- msgid "Download error log"
194
- msgstr ""
195
-
196
- #: includes/Admin.php:398
197
- msgid "To import this demo you have to install the following plugins:"
198
- msgstr ""
199
-
200
- #. translators: 1 - 'here'.
201
- #: includes/Admin.php:401
202
- msgid "It seems that Rest API is not working properly on your website. Read about how you can fix it %1$s."
203
- msgstr ""
204
-
205
- #: includes/Admin.php:402
206
- msgid "here"
207
- msgstr ""
208
-
209
- #. translators: 1 - 'get in touch'.
210
- #: includes/Admin.php:406
211
- msgid "Hi! It seems there is a configuration issue with your server that's causing the import to fail. Please %1$s with us with the error code below, so we can help you fix this."
212
- msgstr ""
213
-
214
- #: includes/Admin.php:407
215
- #: includes/Admin.php:417
216
- msgid "get in touch"
217
- msgstr ""
218
-
219
- #. translators: 1 - 'troubleshooting guide'.
220
- #: includes/Admin.php:411
221
- msgid "Hi! It seems there is a configuration issue with your server that's causing the import to fail. Take a look at our %1$s to see if any of the proposed solutions work."
222
- msgstr ""
223
-
224
- #: includes/Admin.php:412
225
- msgid "troubleshooting guide"
226
- msgstr ""
227
-
228
- #. translators: 1 - 'get in touch'.
229
- #: includes/Admin.php:416
230
- msgid "If none of the solutions in the guide work, please %1$s with us with the error code below, so we can help you fix this."
231
- msgstr ""
232
-
233
- #. translators: %s - 'WP_Filesystem'.
234
- #: includes/Admin.php:421
235
- msgid "It seems that %s is not available. You can contact your site administrator or hosting provider to help you enable it."
236
- msgstr ""
237
-
238
- #: includes/Elementor.php:59
239
- #: includes/Elementor.php:79
240
- #: includes/TI_Beaver.php:406
241
- msgid "Save to %s"
242
- msgstr ""
243
-
244
- #: includes/Elementor.php:60
245
- #: includes/TI_Beaver.php:386
246
- msgid "Save Templates"
247
- msgstr ""
248
-
249
- #: includes/Elementor.php:61
250
- #: includes/TI_Beaver.php:387
251
- msgid "Template Name"
252
- msgstr ""
253
-
254
- #: includes/Elementor.php:62
255
- #: includes/Elementor.php:107
256
- #: includes/TI_Beaver.php:388
257
- #: includes/TI_Beaver.php:482
258
- msgid "Template"
259
- msgstr ""
260
-
261
- #: includes/Elementor.php:63
262
- #: includes/Elementor.php:100
263
- #: includes/TI_Beaver.php:389
264
- #: includes/TI_Beaver.php:430
265
- msgid "Save"
266
- msgstr ""
267
-
268
- #: includes/Elementor.php:64
269
- #: includes/TI_Beaver.php:390
270
- msgid "Automatically sync to the cloud"
271
- msgstr ""
272
-
273
- #: includes/Elementor.php:65
274
- msgid "Template Saved."
275
- msgstr ""
276
-
277
- #: includes/Elementor.php:66
278
- msgid "Template Published."
279
- msgstr ""
280
-
281
- #: includes/Elementor.php:67
282
- msgid "Template Unpublished."
283
- msgstr ""
284
-
285
- #: includes/Elementor.php:70
286
- msgid "Import from %s"
287
- msgstr ""
288
-
289
- #: includes/Elementor.php:72
290
- msgid "Add Template from %s:"
291
- msgstr ""
292
-
293
- #: includes/Elementor.php:74
294
- #: includes/TI_Beaver.php:401
295
- msgid "Page Templates"
296
- msgstr ""
297
-
298
- #: includes/Elementor.php:78
299
- #: includes/TI_Beaver.php:405
300
- msgid "Sync Library"
301
- msgstr ""
302
-
303
- #: includes/Elementor.php:80
304
- #: includes/TI_Beaver.php:408
305
- #: assets/build/app.js:2
306
- #: assets/build/app.js:10
307
- #: assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js:206
308
- #: assets/src/Components/InstallModal.js:163
309
- #: assets/src/Components/Migration.js:161
310
- #: assets/src/Components/OnboardingContent.js:153
311
- #: assets/src/Components/PreviewFrame.js:54
312
- msgid "Close"
313
- msgstr ""
314
-
315
- #: includes/Elementor.php:82
316
- #: includes/TI_Beaver.php:409
317
- #: assets/build/app.js:2
318
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:183
319
- msgid "Edit"
320
- msgstr ""
321
-
322
- #: includes/Elementor.php:83
323
- msgid "Duplicate"
324
- msgstr ""
325
-
326
- #: includes/Elementor.php:84
327
- #: includes/TI_Beaver.php:410
328
- msgid "Delete"
329
- msgstr ""
330
-
331
- #: includes/Elementor.php:85
332
- msgid "Insert"
333
- msgstr ""
334
-
335
- #: includes/Elementor.php:86
336
- msgid "Back to Library"
337
- msgstr ""
338
-
339
- #: includes/Elementor.php:89
340
- #: includes/TI_Beaver.php:416
341
- msgid "Sort by"
342
- msgstr ""
343
-
344
- #: includes/Elementor.php:91
345
- #: includes/TI_Beaver.php:418
346
- msgid "Name"
347
- msgstr ""
348
-
349
- #: includes/Elementor.php:92
350
- #: includes/TI_Beaver.php:419
351
- msgid "Date"
352
- msgstr ""
353
-
354
- #: includes/Elementor.php:93
355
- #: includes/TI_Beaver.php:420
356
- msgid "Last Modified"
357
- msgstr ""
358
-
359
- #: includes/Elementor.php:94
360
- #: includes/TI_Beaver.php:421
361
- msgid "Actions"
362
- msgstr ""
363
-
364
- #: includes/Elementor.php:97
365
- #: includes/TI_Beaver.php:426
366
- msgid "Search Templates"
367
- msgstr ""
368
-
369
- #: includes/Elementor.php:101
370
- #: includes/TI_Beaver.php:431
371
- msgid "Save your page to %s"
372
- msgstr ""
373
-
374
- #: includes/Elementor.php:102
375
- msgid "Enter Template Name"
376
- msgstr ""
377
-
378
- #: includes/Elementor.php:103
379
- #: includes/TI_Beaver.php:432
380
- msgid "Screenshot URL"
381
- msgstr ""
382
-
383
- #: includes/Elementor.php:104
384
- #: includes/TI_Beaver.php:433
385
- msgid "Site Slug"
386
- msgstr ""
387
-
388
- #: includes/Elementor.php:105
389
- #: includes/TI_Beaver.php:434
390
- msgid "Publish"
391
- msgstr ""
392
-
393
- #: includes/Elementor.php:106
394
- #: includes/TI_Beaver.php:435
395
- msgid "Unpublish"
396
- msgstr ""
397
-
398
- #: includes/Sites_Listing.php:46
399
- #: includes/Sites_Listing.php:56
400
- msgid "Want to keep using Zelle's homepage?"
401
- msgstr ""
402
-
403
- #: includes/Sites_Listing.php:47
404
- #: includes/Sites_Listing.php:57
405
- msgid "Hi! We've noticed you were using Zelle before. To make your transition easier, we can help you keep the same beautiful homepage you had before, by converting it into an Elementor template. This option will also import your homepage content."
406
- msgstr ""
407
-
408
- #: includes/TI_Beaver.php:35
409
- #: includes/TI_Beaver.php:37
410
- msgid "Templates Cloud"
411
- msgstr ""
412
-
413
- #: includes/TI_Beaver.php:36
414
- msgid "Templates Cloud by Neve."
415
- msgstr ""
416
-
417
- #: includes/TI_Beaver.php:392
418
- msgid "Import Failed"
419
- msgstr ""
420
-
421
- #: includes/TI_Beaver.php:393
422
- msgid "Export Failed"
423
- msgstr ""
424
-
425
- #: includes/TI_Beaver.php:397
426
- msgid "No templates available. Add a new one?"
427
- msgstr ""
428
-
429
- #: includes/TI_Beaver.php:398
430
- msgid "Are you sure you want to delete this template?"
431
- msgstr ""
432
-
433
- #: includes/TI_Beaver.php:399
434
- msgid "This template is synced to a page."
435
- msgstr ""
436
-
437
- #: includes/TI_Beaver.php:407
438
- msgid "Update"
439
- msgstr ""
440
-
441
- #: includes/TI_Beaver.php:411
442
- msgid "Deleting"
443
- msgstr ""
444
-
445
- #: includes/TI_Beaver.php:422
446
- msgid "List View"
447
- msgstr ""
448
-
449
- #: includes/TI_Beaver.php:423
450
- msgid "Grid View"
451
- msgstr ""
452
-
453
- #: includes/TI_Beaver.php:427
454
- msgid "Clear search query"
455
- msgstr ""
456
-
457
- #: includes/TI_Beaver.php:453
458
- msgid "Save to Neve Cloud"
459
- msgstr ""
460
-
461
- #: templates-patterns-collection.php:42
462
- msgid "You need to have %1$s installed and activated to use %2$s."
463
- msgstr ""
464
-
465
- #. translators: %s Neve theme name.
466
- #: templates-patterns-collection.php:50
467
- msgid "Install and Activate %s"
468
- msgstr ""
469
-
470
- #: tests/rest-test.php:59
471
- msgid "Ready to use pre-built websites with 1-click installation"
472
- msgstr ""
473
-
474
- #: tests/rest-test.php:60
475
- msgid "With Neve, you can choose from multiple unique demos, specially designed for you, that can be installed with a single click. You just need to choose your favorite, and we will take care of everything else."
476
- msgstr ""
477
-
478
- #. translators: %s: Error message.
479
- #: assets/build/app.js:2
480
- #: assets/src/Components/InstallModal.js:31
481
- msgid "An error has ocurred: %s"
482
- msgstr ""
483
-
484
- #. translators: %s: Error message.
485
- #: assets/build/app.js:2
486
- #: assets/src/Components/InstallModal.js:67
487
- msgid "Could not activate theme."
488
- msgstr ""
489
-
490
- #: assets/build/app.js:2
491
- #: assets/src/Components/InstallModal.js:89
492
- msgid "Install and Activate Neve"
493
- msgstr ""
494
-
495
- #: assets/build/app.js:2
496
- #: assets/src/Components/InstallModal.js:102
497
- msgid "Logo"
498
- msgstr ""
499
-
500
- #: assets/build/app.js:2
501
- #: assets/src/Components/InstallModal.js:116
502
- msgid "In order to import the starter site, Neve theme has to be installed and activated. Click the button below to install and activate Neve"
503
- msgstr ""
504
-
505
- #: assets/build/app.js:2
506
- #: assets/src/Components/InstallModal.js:52
507
- msgid "Could not install theme."
508
- msgstr ""
509
-
510
- #: assets/build/app.js:2
511
- #: assets/src/Components/InstallModal.js:147
512
- msgid "Install and Activate"
513
- msgstr ""
514
-
515
- #: assets/build/app.js:2
516
- #: assets/src/Components/InstallModal.js:151
517
- msgid "Activate"
518
- msgstr ""
519
-
520
- #: assets/build/app.js:2
521
- #: assets/src/Components/ImportModalError.js:26
522
- msgid "Error code"
523
- msgstr ""
524
-
525
- #: assets/build/app.js:2
526
- #: assets/src/Components/ImportModalError.js:31
527
- msgid "Error log"
528
- msgstr ""
529
-
530
- #: assets/build/app.js:2
531
- #: assets/src/Components/Migration.js:82
532
- #: assets/src/Components/Migration.js:240
533
- msgid "Migrate"
534
- msgstr ""
535
-
536
- #: assets/build/app.js:2
537
- #: assets/src/Components/Migration.js:141
538
- msgid "Migrating"
539
- msgstr ""
540
-
541
- #: assets/build/app.js:2
542
- #: assets/src/Components/Migration.js:189
543
- msgid "Edit Content"
544
- msgstr ""
545
-
546
- #: assets/build/app.js:2
547
- #: assets/src/Components/Migration.js:177
548
- msgid "Start Migration"
549
- msgstr ""
550
-
551
- #: assets/build/app.js:2
552
- #: assets/src/Components/Migration.js:260
553
- msgid "Dismissed"
554
- msgstr ""
555
-
556
- #: assets/build/app.js:2
557
- #: assets/src/Components/Migration.js:269
558
- msgid "Dismiss"
559
- msgstr ""
560
-
561
- #: assets/build/app.js:2
562
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:210
563
- msgid "An error occurred!"
564
- msgstr ""
565
-
566
- #: assets/build/app.js:2
567
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:142
568
- msgid "Import done!"
569
- msgstr ""
570
-
571
- #: assets/build/app.js:2
572
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:149
573
- msgid "Template was successfully imported!"
574
- msgstr ""
575
-
576
- #: assets/build/app.js:2
577
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:153
578
- msgid "Templates were successfully imported!"
579
- msgstr ""
580
-
581
- #: assets/build/app.js:2
582
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:174
583
- msgid "Visit"
584
- msgstr ""
585
-
586
- #. translators: name of starter site
587
- #: assets/build/app.js:4
588
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:277
589
- msgid "Import the %s template"
590
- msgstr ""
591
-
592
- #. translators: name of template
593
- #: assets/build/app.js:6
594
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:282
595
- msgid "Import all templates from %s"
596
- msgstr ""
597
-
598
- #. translators: %s the name of the template
599
- #: assets/build/app.js:8
600
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:246
601
- msgid "The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed."
602
- msgstr ""
603
-
604
- #. translators: %s the name of the template
605
- #: assets/build/app.js:8
606
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:252
607
- msgid "All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed."
608
- msgstr ""
609
-
610
- #: assets/build/app.js:8
611
- #: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:302
612
- msgid "I want to import the entire site"
613
- msgstr ""
614
-
615
- #: assets/build/app.js:8
616
- #: assets/src/utils/common.js:27
617
- msgid "Business"
618
- msgstr ""
619
-
620
- #: assets/build/app.js:8
621
- #: assets/src/utils/common.js:28
622
- msgid "Ecommerce"
623
- msgstr ""
624
-
625
- #: assets/build/app.js:8
626
- #: assets/src/utils/common.js:29
627
- msgid "Fashion"
628
- msgstr ""
629
-
630
- #: assets/build/app.js:8
631
- #: assets/src/utils/common.js:30
632
- msgid "Blogging"
633
- msgstr ""
634
-
635
- #: assets/build/app.js:8
636
- #: assets/src/utils/common.js:31
637
- msgid "Photography"
638
- msgstr ""
639
-
640
- #: assets/build/app.js:8
641
- #: assets/src/Components/ImportStepper.js:8
642
- msgid "Installing Plugins"
643
- msgstr ""
644
-
645
- #: assets/build/app.js:8
646
- #: assets/src/Components/ImportStepper.js:13
647
- msgid "Importing Content"
648
- msgstr ""
649
-
650
- #: assets/build/app.js:8
651
- #: assets/src/Components/ImportStepper.js:18
652
- msgid "Importing Customizer Settings"
653
- msgstr ""
654
-
655
- #: assets/build/app.js:8
656
- #: assets/src/Components/ImportStepper.js:26
657
- msgid "Importing Widgets"
658
- msgstr ""
659
-
660
- #: assets/build/app.js:8
661
- #: assets/src/Components/ImportModal.js:427
662
- msgid "Something went wrong while installing the necessary plugins."
663
- msgstr ""
664
-
665
- #: assets/build/app.js:8
666
- #: assets/src/Components/ImportModal.js:431
667
- msgid "Something went wrong while importing the website content."
668
- msgstr ""
669
-
670
- #: assets/build/app.js:8
671
- #: assets/src/Components/ImportModal.js:435
672
- msgid "Something went wrong while updating the customizer settings."
673
- msgstr ""
674
-
675
- #: assets/build/app.js:8
676
- #: assets/src/Components/ImportModal.js:439
677
- msgid "Something went wrong while importing the widgets."
678
- msgstr ""
679
-
680
- #: assets/build/app.js:8
681
- #: assets/src/Components/ImportModal.js:61
682
- #: assets/src/Components/ImportModal.js:97
683
- msgid "Something went wrong while loading the site data. Please refresh the page and try again."
684
- msgstr ""
685
-
686
- #. translators: name of starter site
687
- #: assets/build/app.js:10
688
- #: assets/src/Components/ImportModal.js:180
689
- msgid "Import %s as a complete site"
690
- msgstr ""
691
-
692
- #. translators: name of starter site
693
- #: assets/build/app.js:10
694
- #: assets/src/Components/ImportModal.js:188
695
- msgid "Import the entire site including customizer options, pages, content and plugins."
696
- msgstr ""
697
-
698
- #: assets/build/app.js:10
699
- #: assets/src/Components/ImportModal.js:222
700
- msgid "Import settings"
701
- msgstr ""
702
-
703
- #: assets/build/app.js:10
704
- #: assets/src/Components/ImportModal.js:562
705
- msgid "I want to import just the templates"
706
- msgstr ""
707
-
708
- #: assets/build/app.js:10
709
- #: assets/src/Components/ImportModal.js:580
710
- msgid "Import entire site"
711
- msgstr ""
712
-
713
- #: assets/build/app.js:10
714
- #: assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js:155
715
- #: assets/src/Components/StarterSiteCard.js:103
716
- msgid "Premium"
717
- msgstr ""
718
-
719
- #: assets/build/app.js:10
720
- #: assets/src/Components/StarterSiteCard.js:81
721
- msgid "View Pages"
722
- msgstr ""
723
-
724
- #: assets/build/app.js:10
725
- #: assets/src/Components/PreviewFrame.js:62
726
- msgid "Previous"
727
- msgstr ""
728
-
729
- #: assets/build/app.js:10
730
- #: assets/src/Components/PreviewFrame.js:74
731
- msgid "Next"
732
- msgstr ""
733
-
734
- #: assets/build/app.js:10
735
- #: assets/src/Components/PreviewFrame.js:91
736
- msgid "Upgrade and Import"
737
- msgstr ""
738
-
739
- #: assets/build/app.js:10
740
- #: assets/src/Components/Search.js:102
741
- msgid "Search for a starter site"
742
- msgstr ""
743
-
744
- #: assets/build/app.js:10
745
- #: assets/src/Components/EditorSelector.js:30
746
- #: assets/src/Components/EditorSelector.js:70
747
- #: assets/src/Components/EditorTabs.js:42
748
- msgid "Builder Logo"
749
- msgstr ""
750
-
751
- #: assets/build/app.js:10
752
- #: assets/src/Components/OnboardingContent.js:171
753
- msgid "No results found"
754
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -39,6 +39,16 @@ Yes, you can. You can either chose to import one template or the entire starter
39
 
40
  == Changelog ==
41
 
 
 
 
 
 
 
 
 
 
 
42
  ##### [Version 1.1.14](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.13...v1.1.14) (2021-07-05)
43
 
44
  - Allow Page Templates Support
39
 
40
  == Changelog ==
41
 
42
+ ##### [Version 1.1.15](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.14...v1.1.15) (2021-08-03)
43
+
44
+ - Add filter for imported theme mods
45
+ - Fix dashboard notice on WordPress 5.8
46
+ - Fix error when refreshing the templates page with the page templates tab focused
47
+ - UX improvements
48
+
49
+
50
+
51
+
52
  ##### [Version 1.1.14](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.13...v1.1.14) (2021-07-05)
53
 
54
  - Allow Page Templates Support
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.14
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.15
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit0712dee88c27d6ba39180e169073e0b6::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInite173a92b117cc68e9345a05fbc298bd0::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit0712dee88c27d6ba39180e169073e0b6
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit0712dee88c27d6ba39180e169073e0b6
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit0712dee88c27d6ba39180e169073e0b6', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit0712dee88c27d6ba39180e169073e0b6', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit0712dee88c27d6ba39180e169073e0b6::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit0712dee88c27d6ba39180e169073e0b6
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit0712dee88c27d6ba39180e169073e0b6::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire0712dee88c27d6ba39180e169073e0b6($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire0712dee88c27d6ba39180e169073e0b6($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInite173a92b117cc68e9345a05fbc298bd0
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInite173a92b117cc68e9345a05fbc298bd0', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInite173a92b117cc68e9345a05fbc298bd0', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInite173a92b117cc68e9345a05fbc298bd0::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInite173a92b117cc68e9345a05fbc298bd0::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequiree173a92b117cc68e9345a05fbc298bd0($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequiree173a92b117cc68e9345a05fbc298bd0($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit0712dee88c27d6ba39180e169073e0b6
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -56,9 +56,9 @@ class ComposerStaticInit0712dee88c27d6ba39180e169073e0b6
56
  public static function getInitializer(ClassLoader $loader)
57
  {
58
  return \Closure::bind(function () use ($loader) {
59
- $loader->prefixLengthsPsr4 = ComposerStaticInit0712dee88c27d6ba39180e169073e0b6::$prefixLengthsPsr4;
60
- $loader->prefixDirsPsr4 = ComposerStaticInit0712dee88c27d6ba39180e169073e0b6::$prefixDirsPsr4;
61
- $loader->classMap = ComposerStaticInit0712dee88c27d6ba39180e169073e0b6::$classMap;
62
 
63
  }, null, ClassLoader::class);
64
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInite173a92b117cc68e9345a05fbc298bd0
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
56
  public static function getInitializer(ClassLoader $loader)
57
  {
58
  return \Closure::bind(function () use ($loader) {
59
+ $loader->prefixLengthsPsr4 = ComposerStaticInite173a92b117cc68e9345a05fbc298bd0::$prefixLengthsPsr4;
60
+ $loader->prefixDirsPsr4 = ComposerStaticInite173a92b117cc68e9345a05fbc298bd0::$prefixDirsPsr4;
61
+ $loader->classMap = ComposerStaticInite173a92b117cc68e9345a05fbc298bd0::$classMap;
62
 
63
  }, null, ClassLoader::class);
64
  }
vendor/composer/installed.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php return array(
2
  'root' => array(
3
- 'pretty_version' => '1.1.14',
4
- 'version' => '1.1.14.0',
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
@@ -11,8 +11,8 @@
11
  ),
12
  'versions' => array(
13
  'codeinwp/templates-patterns-collection' => array(
14
- 'pretty_version' => '1.1.14',
15
- 'version' => '1.1.14.0',
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
1
  <?php return array(
2
  'root' => array(
3
+ 'pretty_version' => '1.1.15',
4
+ 'version' => '1.1.15.0',
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
11
  ),
12
  'versions' => array(
13
  'codeinwp/templates-patterns-collection' => array(
14
+ 'pretty_version' => '1.1.15',
15
+ 'version' => '1.1.15.0',
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
yarn.lock CHANGED
@@ -1700,6 +1700,11 @@
1700
  resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.22.tgz#0d29f382472c4ccf3bd96ff0ce47daf5b7b84b18"
1701
  integrity sha512-g+f/qj/cNcqKkc3tFqlXOYjrmZA+jNBiDzbP3kH+B+otKFqAdPgVTGP1IeKRdMml/aE69as5S4FqtxAbl+LaMw==
1702
 
 
 
 
 
 
1703
  "@types/normalize-package-data@^2.4.0":
1704
  version "2.4.0"
1705
  resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
@@ -3290,9 +3295,9 @@ camelcase@^6.2.0:
3290
  integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==
3291
 
3292
  caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001181:
3293
- version "1.0.30001181"
3294
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001181.tgz#4f0e5184e1ea7c3bf2727e735cbe7ca9a451d673"
3295
- integrity sha512-m5ul/ARCX50JB8BSNM+oiPmQrR5UmngaQ3QThTTp5HcIIQGP/nPBs82BYLE+tigzm3VW+F4BJIhUyaVtEweelQ==
3296
 
3297
  capture-exit@^2.0.0:
3298
  version "2.0.0"
@@ -4250,14 +4255,15 @@ cyclist@^1.0.1:
4250
  resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9"
4251
  integrity sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=
4252
 
4253
- cypress@^5.3.0:
4254
- version "5.6.0"
4255
- resolved "https://registry.yarnpkg.com/cypress/-/cypress-5.6.0.tgz#6781755c3ddfd644ce3179fcd7389176c0c82280"
4256
- integrity sha512-cs5vG3E2JLldAc16+5yQxaVRLLqMVya5RlrfPWkC72S5xrlHFdw7ovxPb61s4wYweROKTyH01WQc2PFzwwVvyQ==
4257
  dependencies:
4258
  "@cypress/listr-verbose-renderer" "^0.4.1"
4259
  "@cypress/request" "^2.88.5"
4260
  "@cypress/xvfb" "^1.2.4"
 
4261
  "@types/sinonjs__fake-timers" "^6.0.1"
4262
  "@types/sizzle" "^2.3.2"
4263
  arch "^2.1.2"
@@ -4269,7 +4275,8 @@ cypress@^5.3.0:
4269
  cli-table3 "~0.6.0"
4270
  commander "^5.1.0"
4271
  common-tags "^1.8.0"
4272
- debug "^4.1.1"
 
4273
  eventemitter2 "^6.4.2"
4274
  execa "^4.0.2"
4275
  executable "^4.1.1"
@@ -4283,10 +4290,10 @@ cypress@^5.3.0:
4283
  lodash "^4.17.19"
4284
  log-symbols "^4.0.0"
4285
  minimist "^1.2.5"
4286
- moment "^2.27.0"
4287
  ospath "^1.2.2"
4288
  pretty-bytes "^5.4.1"
4289
- ramda "~0.26.1"
4290
  request-progress "^3.0.0"
4291
  supports-color "^7.2.0"
4292
  tmp "~0.2.1"
@@ -4325,6 +4332,11 @@ dateformat@^3.0.0, dateformat@~3.0.3:
4325
  resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae"
4326
  integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==
4327
 
 
 
 
 
 
4328
  debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9:
4329
  version "2.6.9"
4330
  resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
@@ -4346,6 +4358,13 @@ debug@4, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1:
4346
  dependencies:
4347
  ms "2.1.2"
4348
 
 
 
 
 
 
 
 
4349
  debug@^3.1.0, debug@^3.1.1:
4350
  version "3.2.7"
4351
  resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a"
@@ -9182,7 +9201,7 @@ modify-values@^1.0.0:
9182
  resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022"
9183
  integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==
9184
 
9185
- moment@^2.27.0:
9186
  version "2.29.1"
9187
  resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
9188
  integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==
@@ -10922,10 +10941,10 @@ railroad-diagrams@^1.0.0:
10922
  resolved "https://registry.yarnpkg.com/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz#eb7e6267548ddedfb899c1b90e57374559cddb7e"
10923
  integrity sha1-635iZ1SN3t+4mcG5Dlc3RVnN234=
10924
 
10925
- ramda@~0.26.1:
10926
- version "0.26.1"
10927
- resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.26.1.tgz#8d41351eb8111c55353617fc3bbffad8e4d35d06"
10928
- integrity sha512-hLWjpy7EnsDBb0p+Z3B7rPi3GDeRG5ZtiI33kJhTt+ORCd38AbAIjB/9zRIUoeTbE/AVX5ZkU7m6bznsvrf8eQ==
10929
 
10930
  randexp@0.4.6:
10931
  version "0.4.6"
1700
  resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.22.tgz#0d29f382472c4ccf3bd96ff0ce47daf5b7b84b18"
1701
  integrity sha512-g+f/qj/cNcqKkc3tFqlXOYjrmZA+jNBiDzbP3kH+B+otKFqAdPgVTGP1IeKRdMml/aE69as5S4FqtxAbl+LaMw==
1702
 
1703
+ "@types/node@12.12.50":
1704
+ version "12.12.50"
1705
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.50.tgz#e9b2e85fafc15f2a8aa8fdd41091b983da5fd6ee"
1706
+ integrity sha512-5ImO01Fb8YsEOYpV+aeyGYztcYcjGsBvN4D7G5r1ef2cuQOpymjWNQi5V0rKHE6PC2ru3HkoUr/Br2/8GUA84w==
1707
+
1708
  "@types/normalize-package-data@^2.4.0":
1709
  version "2.4.0"
1710
  resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
3295
  integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==
3296
 
3297
  caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001181:
3298
+ version "1.0.30001248"
3299
+ resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001248.tgz"
3300
+ integrity sha512-NwlQbJkxUFJ8nMErnGtT0QTM2TJ33xgz4KXJSMIrjXIbDVdaYueGyjOrLKRtJC+rTiWfi6j5cnZN1NBiSBJGNw==
3301
 
3302
  capture-exit@^2.0.0:
3303
  version "2.0.0"
4255
  resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9"
4256
  integrity sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=
4257
 
4258
+ cypress@6.8.0:
4259
+ version "6.8.0"
4260
+ resolved "https://registry.yarnpkg.com/cypress/-/cypress-6.8.0.tgz#8338f39212a8f71e91ff8c017a1b6e22d823d8c1"
4261
+ integrity sha512-W2e9Oqi7DmF48QtOD0LfsOLVq6ef2hcXZvJXI/E3PgFNmZXEVwBefhAxVCW9yTPortjYA2XkM20KyC4HRkOm9w==
4262
  dependencies:
4263
  "@cypress/listr-verbose-renderer" "^0.4.1"
4264
  "@cypress/request" "^2.88.5"
4265
  "@cypress/xvfb" "^1.2.4"
4266
+ "@types/node" "12.12.50"
4267
  "@types/sinonjs__fake-timers" "^6.0.1"
4268
  "@types/sizzle" "^2.3.2"
4269
  arch "^2.1.2"
4275
  cli-table3 "~0.6.0"
4276
  commander "^5.1.0"
4277
  common-tags "^1.8.0"
4278
+ dayjs "^1.9.3"
4279
+ debug "4.3.2"
4280
  eventemitter2 "^6.4.2"
4281
  execa "^4.0.2"
4282
  executable "^4.1.1"
4290
  lodash "^4.17.19"
4291
  log-symbols "^4.0.0"
4292
  minimist "^1.2.5"
4293
+ moment "^2.29.1"
4294
  ospath "^1.2.2"
4295
  pretty-bytes "^5.4.1"
4296
+ ramda "~0.27.1"
4297
  request-progress "^3.0.0"
4298
  supports-color "^7.2.0"
4299
  tmp "~0.2.1"
4332
  resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae"
4333
  integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==
4334
 
4335
+ dayjs@^1.9.3:
4336
+ version "1.10.6"
4337
+ resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.10.6.tgz#288b2aa82f2d8418a6c9d4df5898c0737ad02a63"
4338
+ integrity sha512-AztC/IOW4L1Q41A86phW5Thhcrco3xuAA+YX/BLpLWWjRcTj5TOt/QImBLmCKlrF7u7k47arTnOyL6GnbG8Hvw==
4339
+
4340
  debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9:
4341
  version "2.6.9"
4342
  resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
4358
  dependencies:
4359
  ms "2.1.2"
4360
 
4361
+ debug@4.3.2:
4362
+ version "4.3.2"
4363
+ resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b"
4364
+ integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==
4365
+ dependencies:
4366
+ ms "2.1.2"
4367
+
4368
  debug@^3.1.0, debug@^3.1.1:
4369
  version "3.2.7"
4370
  resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a"
9201
  resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022"
9202
  integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==
9203
 
9204
+ moment@^2.29.1:
9205
  version "2.29.1"
9206
  resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
9207
  integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==
10941
  resolved "https://registry.yarnpkg.com/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz#eb7e6267548ddedfb899c1b90e57374559cddb7e"
10942
  integrity sha1-635iZ1SN3t+4mcG5Dlc3RVnN234=
10943
 
10944
+ ramda@~0.27.1:
10945
+ version "0.27.1"
10946
+ resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.27.1.tgz#66fc2df3ef873874ffc2da6aa8984658abacf5c9"
10947
+ integrity sha512-PgIdVpn5y5Yns8vqb8FzBUEYn98V3xcPgawAkkgj0YJ0qDsnHCiNmZYfOGMgOvoB0eWFLpYbhxUR3mxfDIMvpw==
10948
 
10949
  randexp@0.4.6:
10950
  version "0.4.6"