Version Description
Download this release
Release Info
Developer | themeisle |
Plugin | Cloud Templates & Patterns collection |
Version | 1.1.6 |
Comparing to | |
See all releases |
Code changes from version 1.1.5 to 1.1.6
- CHANGELOG.md +4 -0
- README.md +8 -1
- assets/build/app.asset.php +1 -1
- assets/build/app.js +1 -1
- includes/Main.php +1 -1
- languages/templates-patterns-collection.pot +188 -195
- readme.txt +8 -1
- templates-patterns-collection.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +4 -4
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +4 -4
CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 1.1.5](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.4...v1.1.5) (2021-03-16)
|
2 |
|
3 |
- Add Beaver Builder integration
|
1 |
+
##### [Version 1.1.6](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.5...v1.1.6) (2021-03-16)
|
2 |
+
|
3 |
+
- Fix Onboarding failing
|
4 |
+
|
5 |
##### [Version 1.1.5](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.4...v1.1.5) (2021-03-16)
|
6 |
|
7 |
- Add Beaver Builder integration
|
README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
**Contributors:** [themeisle](https://profiles.wordpress.org/themeisle)
|
3 |
**Tags:** neve, templates, patterns, blocks, starter, sites, demo, content, import
|
4 |
**Requires at least:** 4.7
|
5 |
-
**Tested up to:** 5.
|
6 |
**Requires PHP:** 5.6
|
7 |
**Stable tag:** trunk
|
8 |
**License:** GPLv3
|
@@ -27,6 +27,13 @@ No account is required to access the service template collection and the privacy
|
|
27 |
|
28 |
## Changelog ##
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
##### [Version 1.1.5](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.4...v1.1.5) (2021-03-16)
|
31 |
|
32 |
- Add Beaver Builder integration
|
2 |
**Contributors:** [themeisle](https://profiles.wordpress.org/themeisle)
|
3 |
**Tags:** neve, templates, patterns, blocks, starter, sites, demo, content, import
|
4 |
**Requires at least:** 4.7
|
5 |
+
**Tested up to:** 5.7
|
6 |
**Requires PHP:** 5.6
|
7 |
**Stable tag:** trunk
|
8 |
**License:** GPLv3
|
27 |
|
28 |
## Changelog ##
|
29 |
|
30 |
+
##### [Version 1.1.6](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.5...v1.1.6) (2021-03-16)
|
31 |
+
|
32 |
+
- Fix Onboarding failing
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
##### [Version 1.1.5](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.4...v1.1.5) (2021-03-16)
|
38 |
|
39 |
- Add Beaver Builder integration
|
assets/build/app.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives'), 'version' => '
|
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' => 'db1be32eb732b1b307c1487e18c16fcc');
|
assets/build/app.js
CHANGED
@@ -5,6 +5,6 @@ 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"),R?t[0].template_name:a.title)),Object(r.createElement)("p",{className:"description"},(e={strong:Object(r.createElement)("strong",null,Object(E.__)("does not"))},n=R?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 <strong/> include any plugins or theme settings.","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 <strong/> include any plugins or theme settings.","templates-patterns-collection"),Object(r.createInterpolateElement)(n,e))))),Object(r.createElement)("div",{className:"modal-footer"},!m&&Object(r.createElement)(y.Button,{className:"import-templates",isLink:!0,disabled:k,onClick:z},Object(E.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",disabled:k,onClick:U},k?Object(E.__)("Importing")+"...":R?Object(E.__)("Import"):Object(E.__)("Import All Pages"))));var e,n}),null))}));function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Me=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}),U=j()(F,2),$=U[0],q=U[1],Q=Object(r.useState)(!1),J=j()(Q,2),Y=J[0],K=J[1],Z=Object(r.useState)(!1),X=j()(Z,2),ee=X[0],te=X[1],ne=Object(r.useState)(""),re=j()(ne,2),ae=re[0],oe=re[1],ie=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),se=j()(ie,2),le=se[0],ue=se[1];Object(r.useEffect)((function(){K(!0),I(""),R({gutenberg:0,elementor:0,beaver:0}),q({gutenberg:0,elementor:0,beaver:0}),pe()}),[t,f]);var me={gutenberg:{label:Object(E.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(E.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(E.__)("Beaver"),icon:"beaver.jpg"}},pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Te({page:B[f],per_page:12,type:f},e);t&&(n.template_site_slug="general",n.premade=!0),D&&(n.search=D),ce(t,n).then((function(e){p(Te(Te({},m),{},c()({},f,e.templates))),q(Te(Te({},$),{},c()({},f,e.total))),K(!1)}))},de=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,te(!0),R(Te(Te({},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,ce(t,r).then((function(e){p(Te(Te({},m),{},c()({},f,[].concat(z()(m[f]),z()(e.templates))))),q(Te(Te({},$),{},c()({},f,e.total)))}));case 8:te(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),be=function(e){oe(e)},he=function(e){if(i)return n(!0),!1;S([e]),a(!0)},ge=m[f]&&m[f].findIndex((function(e){return e.link===ae})),Oe=m[f]&&m[f].find((function(e){return ae===e.link})),ve=g()("cloud-items",{"is-grid":T}),je=function(){return t?le.templates:le.library},ye=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=Te({search:D,type:f},n),t&&(r.template_site_slug="general",r.premade=!0),ce(t,r).then((function(e){p(Te(Te({},m),{},c()({},f,z()(e.templates)))),q(Te(Te({},$),{},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:ve},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(me).map((function(e){return Object(r.createElement)("a",{key:e,href:"#",onClick:function(){return h(e)},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/"+me[e].icon,alt:me[e].label})),Object(r.createElement)("span",{className:"editor"},me[e].label))}))),Object(r.createElement)(_e,{currentTab:s,isGrid:T,setGrid:M,searchQuery:D,setSearchQuery:I,onSearch:function(){K(!0);var e=Te({search:D,type:f},je());t&&(e.template_site_slug="general",e.premade=!0),ce(t,e).then((function(e){p(Te(Te({},m),{},c()({},f,z()(e.templates)))),q(Te(Te({},$),{},c()({},f,e.total))),K(!1)}))},sortingOrder:je(),setSortingOrder:function(e){return ue(Te(Te({},le),{},t?{templates:e}:{library:e}))},changeOrder:ye}),Y&&Object(r.createElement)(y.Spinner,null),!Y&&(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)(fe,{sortingOrder:je(),onPreview:be,userTemplate:!t,key:e.template_id,item:e,loadTemplates:pe,onImport:function(){return he(e)},grid:T})}))),Object(r.createElement)(V.a,{onChange:function(e){if(!e)return!1;Number($[f])>B[f]&&de()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),ee&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(y.Spinner,null))):Object(r.createElement)(r.Fragment,null,Object(E.__)("No templates found."))),ae&&Object(r.createElement)(we,{previewUrl:ae,rightButtons:Object(r.createElement)(y.Button,{isPrimary:!0,onClick:function(){return he(Oe)}},Object(E.__)("Import Template")),heading:Oe.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:H,onClick:function(){return oe("")}}),m[f].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?G:W,onClick:function(){var e=ge-1;0===ge&&(e=m[f].length-1),oe(m[f][e].link)}}),Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?W:G,onClick:function(){var e=ge+1;ge===m[f].length-1&&(e=0),oe(m[f][e].link)}})))})),o&&_&&!Y&&_.length>0&&Object(r.createElement)(Ce,{generalTemplates:!0,isUserTemplate:!t,templatesData:_}))})),xe=[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")],Pe={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")},De={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"))}},Ie=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 Le(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 Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Be=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),R=j()(D,2),F=R[0],z=R[1],U=Object(r.useState)(null),V=j()(U,2),$=V[0],H=V[1],G=Object(r.useState)(!1),W=j()(G,2),q=W[0],Q=W[1],J=Object(r.useState)(null),Y=j()(J,2),K=Y[0],Z=Y[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(Ae(Ae({},e),a));var t=Ae({},e.mandatory_plugins||{}),n=Ae({},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(Ae(Ae({},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(q)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:!q&&!le,isDismissible:!q&&!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"},q||"done"===$||te?Object(r.createElement)(r.Fragment,null,te&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(B,{message:te.message||null,code:te.code||null}),Object(r.createElement)("hr",null)),null!==$&&Object(r.createElement)(Ie,{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)(A,{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(Re(Re({},l),{},c()({},t,!l[t])))}})))})))}),null),Object(r.createElement)((function(){if(le)return null;var e=Re(Re({},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(Re(Re({},K),{},c()({},t,!K[t])))}})))})))}),null)))),!q&&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"))))))})),ze=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(){ce(!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)(ge,{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)(ke,{heading:R.template_name||null,previewUrl:w,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:H,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)()?G: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:G,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)(Te,{templatesData:N}))})),Ue=function(){return Object(r.createElement)($.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)($.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)($.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)($.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"}))},Ve=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c=Object(r.useState)(!1),o=j()(c,2),i=o[0],s=o[1],l={starterSites:Object(E.__)("Starter Sites","neve"),pageTemplates:Object(E.__)("Page Templates","neve")};return tiobDash.license&&tiobDash.license.tier&&3===tiobDash.license.tier&&(l.library=Object(E.__)("My Library","neve")),Object(r.createElement)("div",{className:"header-nav"},Object.keys(l).map((function(e){return Object(r.createElement)(y.Button,{key:e,isTertiary:!0,isPressed:e===n,onClick:function(){return t(e)}},l[e])})),"starterSites"!==n&&Object(r.createElement)(y.Button,{icon:ue,onClick:function(){s(!0),localStorage.setItem("tpcCacheBuster",ne());var e=n;t(null),setTimeout((function(){t(e),s(!1)}),100)},label:Object(E.__)("Re-sync Library"),className:g()("is-sync",{"is-loading":i}),disabled:a||i,"data-content":Object(E.__)("Sync")}))},$e=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:Ue}),Object(r.createElement)("span",null,Object(E.__)("Templates Cloud","neve"))),Object(r.createElement)(Ve,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(y.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),He=n(19),Ge=n.n(He),We=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")))))})),qe=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:H}),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)()?G: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:G})),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")))))})),Qe=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)))})),Je=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])))}))))))})),Ye=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"))})))})),Ke=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(Ie).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:Ue,size:32}),Object(r.createElement)(Qe,{className:"in-sticky",count:E.categories,categories:Ie}),Object(r.createElement)(Je,{isSmall:!0,count:E.builders,EDITOR_MAP:Le}))),Object(r.createElement)(V.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),Object(r.createElement)(Je,{count:E.builders,EDITOR_MAP:Le}),Object(r.createElement)(Qe,{count:E.categories,categories:Ie}),Object(r.createElement)(Ye,{EDITOR_MAP:Le,onlyProSites:v,count:E.builders}))))})),Ze=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]=z()(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 Ge.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)(Ke,{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"},De.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)(We,{key:t,data:e})})),Object(r.createElement)(V.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)(qe,{next:v(),prev:v(!0)}))})),Xe=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)($e,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},s&&Object(r.createElement)(R,{data:s}),"starterSites"===a&&(c?Object(r.createElement)(ze,{slug:c}):Object(r.createElement)(Ze,null)),"library"===a&&Object(r.createElement)(Pe,null),"pageTemplates"===a&&Object(r.createElement)(Pe,{isGeneral:!0})))),n&&Object(r.createElement)(D,null),o&&i&&Object(r.createElement)(Fe,null))})),et=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)(Xe,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)(et,null),document.getElementById("tpc-app"))}]);
|
5 |
/* translators: name of template */
|
6 |
Object(E.__)("Import all templates from %s","templates-patterns-collection"),R?t[0].template_name:a.title)),Object(r.createElement)("p",{className:"description"},(e={strong:Object(r.createElement)("strong",null,Object(E.__)("does not"))},n=R?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 <strong/> include any plugins or theme settings.","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 <strong/> include any plugins or theme settings.","templates-patterns-collection"),Object(r.createInterpolateElement)(n,e))))),Object(r.createElement)("div",{className:"modal-footer"},!m&&Object(r.createElement)(y.Button,{className:"import-templates",isLink:!0,disabled:k,onClick:z},Object(E.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(y.Button,{isPrimary:!0,className:"import",disabled:k,onClick:U},k?Object(E.__)("Importing")+"...":R?Object(E.__)("Import"):Object(E.__)("Import All Pages"))));var e,n}),null))}));function Me(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 xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=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}),U=j()(F,2),$=U[0],q=U[1],Q=Object(r.useState)(!1),J=j()(Q,2),Y=J[0],K=J[1],Z=Object(r.useState)(!1),X=j()(Z,2),ee=X[0],te=X[1],ne=Object(r.useState)(""),re=j()(ne,2),ae=re[0],oe=re[1],ie=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),se=j()(ie,2),le=se[0],ue=se[1];Object(r.useEffect)((function(){K(!0),I(""),R({gutenberg:0,elementor:0,beaver:0}),q({gutenberg:0,elementor:0,beaver:0}),pe()}),[t,f]);var me={gutenberg:{label:Object(E.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(E.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(E.__)("Beaver"),icon:"beaver.jpg"}},pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=xe({page:B[f],per_page:12,type:f},e);t&&(n.template_site_slug="general",n.premade=!0),D&&(n.search=D),ce(t,n).then((function(e){p(xe(xe({},m),{},c()({},f,e.templates))),q(xe(xe({},$),{},c()({},f,e.total))),K(!1)}))},de=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,te(!0),R(xe(xe({},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,ce(t,r).then((function(e){p(xe(xe({},m),{},c()({},f,[].concat(z()(m[f]),z()(e.templates))))),q(xe(xe({},$),{},c()({},f,e.total)))}));case 8:te(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),be=function(e){oe(e)},fe=function(e){if(i)return n(!0),!1;S([e]),a(!0)},he=m[f]&&m[f].findIndex((function(e){return e.link===ae})),Oe=m[f]&&m[f].find((function(e){return ae===e.link})),ve=g()("cloud-items",{"is-grid":T}),je=function(){return t?le.templates:le.library},ye=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=xe({search:D,type:f},n),t&&(r.template_site_slug="general",r.premade=!0),ce(t,r).then((function(e){p(xe(xe({},m),{},c()({},f,z()(e.templates)))),q(xe(xe({},$),{},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:ve},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(me).map((function(e){return Object(r.createElement)("a",{key:e,href:"#",onClick:function(){return h(e)},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/"+me[e].icon,alt:me[e].label})),Object(r.createElement)("span",{className:"editor"},me[e].label))}))),Object(r.createElement)(Se,{currentTab:s,isGrid:T,setGrid:M,searchQuery:D,setSearchQuery:I,onSearch:function(){K(!0);var e=xe({search:D,type:f},je());t&&(e.template_site_slug="general",e.premade=!0),ce(t,e).then((function(e){p(xe(xe({},m),{},c()({},f,z()(e.templates)))),q(xe(xe({},$),{},c()({},f,e.total))),K(!1)}))},sortingOrder:je(),setSortingOrder:function(e){return ue(xe(xe({},le),{},t?{templates:e}:{library:e}))},changeOrder:ye}),Y&&Object(r.createElement)(y.Spinner,null),!Y&&(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)(ge,{sortingOrder:je(),onPreview:be,userTemplate:!t,key:e.template_id,item:e,loadTemplates:pe,onImport:function(){return fe(e)},grid:T})}))),Object(r.createElement)(V.a,{onChange:function(e){if(!e)return!1;Number($[f])>B[f]&&de()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),ee&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(y.Spinner,null))):Object(r.createElement)(r.Fragment,null,Object(E.__)("No templates found."))),ae&&Object(r.createElement)(ke,{previewUrl:ae,rightButtons:Object(r.createElement)(y.Button,{isPrimary:!0,onClick:function(){return fe(Oe)}},Object(E.__)("Import Template")),heading:Oe.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:H,onClick:function(){return oe("")}}),m[f].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?G:W,onClick:function(){var e=he-1;0===he&&(e=m[f].length-1),oe(m[f][e].link)}}),Object(r.createElement)(y.Button,{icon:Object(E.isRTL)()?W:G,onClick:function(){var e=he+1;he===m[f].length-1&&(e=0),oe(m[f][e].link)}})))})),o&&_&&!Y&&_.length>0&&Object(r.createElement)(Te,{generalTemplates:!0,isUserTemplate:!t,templatesData:_}))})),De=[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")],Ie={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")},Le={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"))}},Ae=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 Be(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 Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fe=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),R=j()(D,2),F=R[0],z=R[1],U=Object(r.useState)(null),V=j()(U,2),$=V[0],H=V[1],G=Object(r.useState)(!1),W=j()(G,2),q=W[0],Q=W[1],J=Object(r.useState)(null),Y=j()(J,2),K=Y[0],Z=Y[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(Re(Re({},e),a));var t=Re({},e.mandatory_plugins||{}),n=Re({},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(Re(Re({},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(q)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:!q&&!le,isDismissible:!q&&!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"},q||"done"===$||te?Object(r.createElement)(r.Fragment,null,te&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(B,{message:te.message||null,code:te.code||null}),Object(r.createElement)("hr",null)),null!==$&&Object(r.createElement)(Ae,{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)(A,{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(Re(Re({},l),{},c()({},t,!l[t])))}})))})))}),null),Object(r.createElement)((function(){if(le)return null;var e=Re(Re({},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(Re(Re({},K),{},c()({},t,!K[t])))}})))})))}),null)))),!q&&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"))))))})),ze=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(){ce(!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)(ge,{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)(ke,{heading:R.template_name||null,previewUrl:w,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.Button,{icon:H,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)()?G: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:G,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)(Te,{templatesData:N}))})),Ue=function(){return Object(r.createElement)($.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)($.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)($.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)($.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"}))},Ve=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c=Object(r.useState)(!1),o=j()(c,2),i=o[0],s=o[1],l={starterSites:Object(E.__)("Starter Sites","neve"),pageTemplates:Object(E.__)("Page Templates","neve")};return tiobDash.license&&tiobDash.license.tier&&3===tiobDash.license.tier&&(l.library=Object(E.__)("My Library","neve")),Object(r.createElement)("div",{className:"header-nav"},Object.keys(l).map((function(e){return Object(r.createElement)(y.Button,{key:e,isTertiary:!0,isPressed:e===n,onClick:function(){return t(e)}},l[e])})),"starterSites"!==n&&Object(r.createElement)(y.Button,{icon:ue,onClick:function(){s(!0),localStorage.setItem("tpcCacheBuster",ne());var e=n;t(null),setTimeout((function(){t(e),s(!1)}),100)},label:Object(E.__)("Re-sync Library"),className:g()("is-sync",{"is-loading":i}),disabled:a||i,"data-content":Object(E.__)("Sync")}))},$e=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:Ue}),Object(r.createElement)("span",null,Object(E.__)("Templates Cloud","neve"))),Object(r.createElement)(Ve,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(y.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),He=n(19),Ge=n.n(He),We=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")))))})),qe=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:H}),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)()?G: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:G})),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")))))})),Qe=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)))})),Je=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])))}))))))})),Ye=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"))})))})),Ke=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(Ie).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:Ue,size:32}),Object(r.createElement)(Qe,{className:"in-sticky",count:E.categories,categories:Ie}),Object(r.createElement)(Je,{isSmall:!0,count:E.builders,EDITOR_MAP:Le}))),Object(r.createElement)(V.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),Object(r.createElement)(Je,{count:E.builders,EDITOR_MAP:Le}),Object(r.createElement)(Qe,{count:E.categories,categories:Ie}),Object(r.createElement)(Ye,{EDITOR_MAP:Le,onlyProSites:v,count:E.builders}))))})),Ze=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]=z()(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 Ge.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)(Ke,{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"},De.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)(We,{key:t,data:e})})),Object(r.createElement)(V.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)(qe,{next:v(),prev:v(!0)}))})),Xe=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)($e,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},s&&Object(r.createElement)(R,{data:s}),"starterSites"===a&&(c?Object(r.createElement)(ze,{slug:c}):Object(r.createElement)(Ze,null)),"library"===a&&Object(r.createElement)(Pe,null),"pageTemplates"===a&&Object(r.createElement)(Pe,{isGeneral:!0})))),n&&Object(r.createElement)(D,null),o&&i&&Object(r.createElement)(Fe,null))})),et=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)(Xe,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)(et,null),document.getElementById("tpc-app"))}]);
|
includes/Main.php
CHANGED
@@ -18,7 +18,7 @@ class Main {
|
|
18 |
*
|
19 |
* @var string Version string.
|
20 |
*/
|
21 |
-
const VERSION = '1.1.
|
22 |
/**
|
23 |
* Sites Library API URL.
|
24 |
*
|
18 |
*
|
19 |
* @var string Version string.
|
20 |
*/
|
21 |
+
const VERSION = '1.1.6';
|
22 |
/**
|
23 |
* Sites Library API URL.
|
24 |
*
|
languages/templates-patterns-collection.pot
CHANGED
@@ -9,7 +9,7 @@ msgstr ""
|
|
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-03-
|
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"
|
@@ -39,14 +39,13 @@ msgid "Hi! We've noticed you were using a child theme of Zelle before. To make y
|
|
39 |
msgstr ""
|
40 |
|
41 |
#: includes/Admin.php:270
|
42 |
-
#: assets/build/app.js:
|
43 |
#: assets/src/Components/StarterSiteCard.js:60
|
44 |
msgid "Preview"
|
45 |
msgstr ""
|
46 |
|
47 |
#: includes/Admin.php:271
|
48 |
-
#: assets/build/app.js:
|
49 |
-
#: assets/build/app.js:4600
|
50 |
#: assets/src/Components/PreviewFrame.js:102
|
51 |
#: assets/src/Components/StarterSiteCard.js:68
|
52 |
msgid "Import"
|
@@ -61,7 +60,7 @@ msgid "Importing"
|
|
61 |
msgstr ""
|
62 |
|
63 |
#: includes/Admin.php:274
|
64 |
-
#: assets/build/app.js:
|
65 |
#: assets/src/Components/Migration.js:165
|
66 |
msgid "Cancel"
|
67 |
msgstr ""
|
@@ -71,21 +70,21 @@ msgid "Loading"
|
|
71 |
msgstr ""
|
72 |
|
73 |
#: includes/Admin.php:276
|
74 |
-
#: assets/build/app.js:
|
75 |
-
#: assets/build/app.js:
|
76 |
#: assets/src/Components/ImportModal.js:603
|
77 |
#: assets/src/Components/Migration.js:198
|
78 |
msgid "View Website"
|
79 |
msgstr ""
|
80 |
|
81 |
#: includes/Admin.php:277
|
82 |
-
#: assets/build/app.js:
|
83 |
#: assets/src/Components/ImportModal.js:613
|
84 |
msgid "Add your own content"
|
85 |
msgstr ""
|
86 |
|
87 |
#: includes/Admin.php:278
|
88 |
-
#: assets/build/app.js:
|
89 |
#: assets/src/Components/ImportModal.js:594
|
90 |
msgid "Back to Sites Library"
|
91 |
msgstr ""
|
@@ -99,7 +98,7 @@ msgid "Advanced Options"
|
|
99 |
msgstr ""
|
100 |
|
101 |
#: includes/Admin.php:281
|
102 |
-
#: assets/build/app.js:
|
103 |
#: assets/src/Components/ImportModal.js:272
|
104 |
msgid "Plugins"
|
105 |
msgstr ""
|
@@ -117,19 +116,19 @@ msgid "Search"
|
|
117 |
msgstr ""
|
118 |
|
119 |
#: includes/Admin.php:285
|
120 |
-
#: assets/build/app.js:
|
121 |
#: assets/src/Components/ImportModal.js:200
|
122 |
msgid "Content"
|
123 |
msgstr ""
|
124 |
|
125 |
#: includes/Admin.php:286
|
126 |
-
#: assets/build/app.js:
|
127 |
#: assets/src/Components/ImportModal.js:204
|
128 |
msgid "Customizer"
|
129 |
msgstr ""
|
130 |
|
131 |
#: includes/Admin.php:287
|
132 |
-
#: assets/build/app.js:
|
133 |
#: assets/src/Components/ImportModal.js:208
|
134 |
msgid "Widgets"
|
135 |
msgstr ""
|
@@ -151,7 +150,7 @@ msgid "Here is our own collection of related images you can use for your site."
|
|
151 |
msgstr ""
|
152 |
|
153 |
#: includes/Admin.php:292
|
154 |
-
#: assets/build/app.js:
|
155 |
#: assets/src/Components/ImportModal.js:542
|
156 |
msgid "Content was successfully imported. Enjoy your new site!"
|
157 |
msgstr ""
|
@@ -245,18 +244,50 @@ msgstr ""
|
|
245 |
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."
|
246 |
msgstr ""
|
247 |
|
248 |
-
|
249 |
-
#: assets/build/app.js:
|
250 |
-
#: assets/src/Components/
|
251 |
-
|
252 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: assets/build/app.js:
|
256 |
-
#: assets/
|
257 |
-
|
258 |
-
|
259 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
#: assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js:206
|
261 |
#: assets/src/Components/InstallModal.js:163
|
262 |
#: assets/src/Components/Migration.js:161
|
@@ -265,281 +296,243 @@ msgstr ""
|
|
265 |
msgid "Close"
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: assets/build/app.js:
|
269 |
-
#: assets/src/Components/
|
270 |
-
msgid "
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: assets/build/app.js:
|
274 |
-
#: assets/src/Components/
|
275 |
-
msgid "
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: assets/build/app.js:
|
279 |
-
#: assets/src/Components/
|
280 |
-
|
|
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: assets/build/app.js:
|
284 |
-
#: assets/src/Components/
|
285 |
-
msgid "
|
286 |
msgstr ""
|
287 |
|
288 |
-
#: assets/build/app.js:
|
289 |
-
#: assets/src/Components/
|
290 |
-
msgid "Edit"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: assets/build/app.js:
|
294 |
-
#: assets/src/Components/
|
295 |
-
msgid "
|
296 |
msgstr ""
|
297 |
|
298 |
-
|
299 |
-
#: assets/
|
300 |
-
|
301 |
-
msgid "The %s template will be imported as a page into your site. This import <strong/> include any plugins or theme settings."
|
302 |
msgstr ""
|
303 |
|
304 |
-
|
305 |
-
#: assets/
|
306 |
-
|
307 |
-
msgid "All the templates that are included in this starter site, will be imported as pages. This import <strong/> include any plugins or theme settings."
|
308 |
msgstr ""
|
309 |
|
310 |
-
|
311 |
-
#: assets/
|
312 |
-
|
313 |
-
msgid "Import the %s template"
|
314 |
msgstr ""
|
315 |
|
316 |
-
|
317 |
-
#: assets/
|
318 |
-
|
319 |
-
msgid "Import all templates from %s"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: assets/build/app.js:
|
323 |
-
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:
|
324 |
-
msgid "
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: assets/build/app.js:
|
328 |
-
#: assets/
|
329 |
-
|
330 |
-
#: assets/src/Components/EditorSelector.js:30
|
331 |
-
#: assets/src/Components/EditorSelector.js:70
|
332 |
-
#: assets/src/Components/EditorTabs.js:42
|
333 |
-
msgid "Builder Logo"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: assets/build/app.js:
|
337 |
-
#: assets/
|
338 |
-
|
339 |
-
#: assets/src/Components/ImportModal.js:97
|
340 |
-
msgid "Something went wrong while loading the site data. Please refresh the page and try again."
|
341 |
msgstr ""
|
342 |
|
343 |
-
|
344 |
-
#: assets/
|
345 |
-
|
346 |
-
msgid "Import %s as a complete site"
|
347 |
msgstr ""
|
348 |
|
349 |
-
|
350 |
-
#: assets/
|
351 |
-
|
|
|
352 |
msgstr ""
|
353 |
|
354 |
-
|
355 |
-
#: assets/
|
356 |
-
|
|
|
357 |
msgstr ""
|
358 |
|
359 |
-
|
360 |
-
#: assets/
|
361 |
-
|
|
|
362 |
msgstr ""
|
363 |
|
364 |
-
|
365 |
-
#: assets/
|
366 |
-
|
|
|
367 |
msgstr ""
|
368 |
|
369 |
-
#: assets/build/app.js:
|
370 |
-
#: assets/src/Components/
|
371 |
-
msgid "
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: assets/build/app.js:
|
375 |
-
#: assets/src/
|
376 |
-
msgid "
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: assets/build/app.js:
|
380 |
-
#: assets/src/
|
381 |
-
msgid "
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: assets/build/app.js:
|
385 |
-
#: assets/src/
|
386 |
-
msgid "
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: assets/build/app.js:
|
390 |
-
#: assets/src/
|
391 |
-
msgid "
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: assets/build/app.js:
|
395 |
-
#: assets/src/
|
396 |
-
msgid "
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: assets/build/app.js:
|
400 |
#: assets/src/Components/ImportStepper.js:8
|
401 |
msgid "Installing Plugins"
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: assets/build/app.js:
|
405 |
#: assets/src/Components/ImportStepper.js:13
|
406 |
msgid "Importing Content"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: assets/build/app.js:
|
410 |
#: assets/src/Components/ImportStepper.js:18
|
411 |
msgid "Importing Customizer Settings"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: assets/build/app.js:
|
415 |
#: assets/src/Components/ImportStepper.js:26
|
416 |
msgid "Importing Widgets"
|
417 |
msgstr ""
|
418 |
|
419 |
-
|
420 |
-
#: assets/
|
421 |
-
|
422 |
-
msgid "An error has ocurred: %s"
|
423 |
-
msgstr ""
|
424 |
-
|
425 |
-
#: assets/build/app.js:3535
|
426 |
-
#: assets/src/Components/InstallModal.js:52
|
427 |
-
msgid "Could not install theme."
|
428 |
-
msgstr ""
|
429 |
-
|
430 |
-
#: assets/build/app.js:3545
|
431 |
-
#: assets/src/Components/InstallModal.js:67
|
432 |
-
msgid "Could not activate theme."
|
433 |
-
msgstr ""
|
434 |
-
|
435 |
-
#: assets/build/app.js:3565
|
436 |
-
#: assets/src/Components/InstallModal.js:89
|
437 |
-
msgid "Install and Activate Neve"
|
438 |
msgstr ""
|
439 |
|
440 |
-
#: assets/build/app.js:
|
441 |
-
#: assets/src/Components/
|
442 |
-
msgid "
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: assets/build/app.js:
|
446 |
-
#: assets/src/Components/
|
447 |
-
msgid "
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: assets/build/app.js:
|
451 |
-
#: assets/src/Components/
|
452 |
-
msgid "
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: assets/build/app.js:
|
456 |
-
#: assets/src/Components/
|
457 |
-
|
|
|
458 |
msgstr ""
|
459 |
|
460 |
-
|
461 |
-
#: assets/build/app.js:
|
462 |
-
#: assets/src/Components/
|
463 |
-
|
464 |
-
msgid "Migrate"
|
465 |
msgstr ""
|
466 |
|
467 |
-
|
468 |
-
#: assets/
|
469 |
-
|
|
|
470 |
msgstr ""
|
471 |
|
472 |
-
#: assets/build/app.js:
|
473 |
-
#: assets/src/Components/
|
474 |
-
msgid "
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: assets/build/app.js:
|
478 |
-
#: assets/src/Components/
|
479 |
-
msgid "
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: assets/build/app.js:
|
483 |
-
#: assets/src/Components/
|
484 |
-
msgid "
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: assets/build/app.js:
|
488 |
-
#: assets/src/Components/
|
489 |
-
|
|
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: assets/build/app.js:
|
493 |
-
#: assets/src/Components/
|
494 |
-
msgid "
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: assets/build/app.js:
|
498 |
#: assets/src/Components/PreviewFrame.js:62
|
499 |
msgid "Previous"
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: assets/build/app.js:
|
503 |
#: assets/src/Components/PreviewFrame.js:74
|
504 |
msgid "Next"
|
505 |
msgstr ""
|
506 |
|
507 |
-
#: assets/build/app.js:
|
508 |
#: assets/src/Components/PreviewFrame.js:91
|
509 |
msgid "Upgrade and Import"
|
510 |
msgstr ""
|
511 |
|
512 |
-
#: assets/build/app.js:
|
513 |
#: assets/src/Components/Search.js:102
|
514 |
msgid "Search for a starter site"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: assets/build/app.js:
|
518 |
-
#: assets/src/Components/
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
#: assets/build/app.js:5232
|
523 |
-
#: assets/src/utils/common.js:7
|
524 |
-
msgid "Business"
|
525 |
-
msgstr ""
|
526 |
-
|
527 |
-
#: assets/build/app.js:5232
|
528 |
-
#: assets/src/utils/common.js:8
|
529 |
-
msgid "Ecommerce"
|
530 |
-
msgstr ""
|
531 |
-
|
532 |
-
#: assets/build/app.js:5232
|
533 |
-
#: assets/src/utils/common.js:9
|
534 |
-
msgid "Fashion"
|
535 |
-
msgstr ""
|
536 |
-
|
537 |
-
#: assets/build/app.js:5232
|
538 |
-
#: assets/src/utils/common.js:10
|
539 |
-
msgid "Blogging"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: assets/build/app.js:
|
543 |
-
#: assets/src/
|
544 |
-
msgid "
|
545 |
msgstr ""
|
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-03-16T18:57:36+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"
|
39 |
msgstr ""
|
40 |
|
41 |
#: includes/Admin.php:270
|
42 |
+
#: assets/build/app.js:10
|
43 |
#: assets/src/Components/StarterSiteCard.js:60
|
44 |
msgid "Preview"
|
45 |
msgstr ""
|
46 |
|
47 |
#: includes/Admin.php:271
|
48 |
+
#: assets/build/app.js:10
|
|
|
49 |
#: assets/src/Components/PreviewFrame.js:102
|
50 |
#: assets/src/Components/StarterSiteCard.js:68
|
51 |
msgid "Import"
|
60 |
msgstr ""
|
61 |
|
62 |
#: includes/Admin.php:274
|
63 |
+
#: assets/build/app.js:2
|
64 |
#: assets/src/Components/Migration.js:165
|
65 |
msgid "Cancel"
|
66 |
msgstr ""
|
70 |
msgstr ""
|
71 |
|
72 |
#: includes/Admin.php:276
|
73 |
+
#: assets/build/app.js:2
|
74 |
+
#: assets/build/app.js:10
|
75 |
#: assets/src/Components/ImportModal.js:603
|
76 |
#: assets/src/Components/Migration.js:198
|
77 |
msgid "View Website"
|
78 |
msgstr ""
|
79 |
|
80 |
#: includes/Admin.php:277
|
81 |
+
#: assets/build/app.js:10
|
82 |
#: assets/src/Components/ImportModal.js:613
|
83 |
msgid "Add your own content"
|
84 |
msgstr ""
|
85 |
|
86 |
#: includes/Admin.php:278
|
87 |
+
#: assets/build/app.js:10
|
88 |
#: assets/src/Components/ImportModal.js:594
|
89 |
msgid "Back to Sites Library"
|
90 |
msgstr ""
|
98 |
msgstr ""
|
99 |
|
100 |
#: includes/Admin.php:281
|
101 |
+
#: assets/build/app.js:10
|
102 |
#: assets/src/Components/ImportModal.js:272
|
103 |
msgid "Plugins"
|
104 |
msgstr ""
|
116 |
msgstr ""
|
117 |
|
118 |
#: includes/Admin.php:285
|
119 |
+
#: assets/build/app.js:10
|
120 |
#: assets/src/Components/ImportModal.js:200
|
121 |
msgid "Content"
|
122 |
msgstr ""
|
123 |
|
124 |
#: includes/Admin.php:286
|
125 |
+
#: assets/build/app.js:10
|
126 |
#: assets/src/Components/ImportModal.js:204
|
127 |
msgid "Customizer"
|
128 |
msgstr ""
|
129 |
|
130 |
#: includes/Admin.php:287
|
131 |
+
#: assets/build/app.js:10
|
132 |
#: assets/src/Components/ImportModal.js:208
|
133 |
msgid "Widgets"
|
134 |
msgstr ""
|
150 |
msgstr ""
|
151 |
|
152 |
#: includes/Admin.php:292
|
153 |
+
#: assets/build/app.js:8
|
154 |
#: assets/src/Components/ImportModal.js:542
|
155 |
msgid "Content was successfully imported. Enjoy your new site!"
|
156 |
msgstr ""
|
244 |
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."
|
245 |
msgstr ""
|
246 |
|
247 |
+
#. translators: %s: Error message.
|
248 |
+
#: assets/build/app.js:2
|
249 |
+
#: assets/src/Components/InstallModal.js:31
|
250 |
+
msgid "An error has ocurred: %s"
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#. translators: %s: Error message.
|
254 |
+
#: assets/build/app.js:2
|
255 |
+
#: assets/src/Components/InstallModal.js:67
|
256 |
+
msgid "Could not activate theme."
|
257 |
+
msgstr ""
|
258 |
+
|
259 |
+
#: assets/build/app.js:2
|
260 |
+
#: assets/src/Components/InstallModal.js:89
|
261 |
+
msgid "Install and Activate Neve"
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: assets/build/app.js:2
|
265 |
+
#: assets/src/Components/InstallModal.js:102
|
266 |
+
msgid "Logo"
|
267 |
+
msgstr ""
|
268 |
+
|
269 |
+
#: assets/build/app.js:2
|
270 |
+
#: assets/src/Components/InstallModal.js:116
|
271 |
+
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"
|
272 |
+
msgstr ""
|
273 |
+
|
274 |
+
#: assets/build/app.js:2
|
275 |
+
#: assets/src/Components/InstallModal.js:52
|
276 |
+
msgid "Could not install theme."
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: assets/build/app.js:2
|
280 |
+
#: assets/src/Components/InstallModal.js:147
|
281 |
+
msgid "Install and Activate"
|
282 |
+
msgstr ""
|
283 |
+
|
284 |
+
#: assets/build/app.js:2
|
285 |
+
#: assets/src/Components/InstallModal.js:151
|
286 |
+
msgid "Activate"
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: assets/build/app.js:2
|
290 |
+
#: assets/build/app.js:10
|
291 |
#: assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js:206
|
292 |
#: assets/src/Components/InstallModal.js:163
|
293 |
#: assets/src/Components/Migration.js:161
|
296 |
msgid "Close"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: assets/build/app.js:2
|
300 |
+
#: assets/src/Components/ImportModalError.js:26
|
301 |
+
msgid "Error code"
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: assets/build/app.js:2
|
305 |
+
#: assets/src/Components/ImportModalError.js:31
|
306 |
+
msgid "Error log"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: assets/build/app.js:2
|
310 |
+
#: assets/src/Components/Migration.js:82
|
311 |
+
#: assets/src/Components/Migration.js:240
|
312 |
+
msgid "Migrate"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: assets/build/app.js:2
|
316 |
+
#: assets/src/Components/Migration.js:141
|
317 |
+
msgid "Migrating"
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: assets/build/app.js:2
|
321 |
+
#: assets/src/Components/Migration.js:189
|
322 |
+
msgid "Edit Content"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: assets/build/app.js:2
|
326 |
+
#: assets/src/Components/Migration.js:177
|
327 |
+
msgid "Start Migration"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: assets/build/app.js:2
|
331 |
+
#: assets/src/Components/Migration.js:260
|
332 |
+
msgid "Dismissed"
|
|
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: assets/build/app.js:2
|
336 |
+
#: assets/src/Components/Migration.js:269
|
337 |
+
msgid "Dismiss"
|
|
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: assets/build/app.js:2
|
341 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:217
|
342 |
+
msgid "An error occurred!"
|
|
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: assets/build/app.js:2
|
346 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:143
|
347 |
+
msgid "Import done!"
|
|
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: assets/build/app.js:2
|
351 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:150
|
352 |
+
msgid "Template was successfully imported!"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: assets/build/app.js:2
|
356 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:154
|
357 |
+
msgid "Templates were successfully imported!"
|
|
|
|
|
|
|
|
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: assets/build/app.js:2
|
361 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:181
|
362 |
+
msgid "Visit"
|
|
|
|
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: assets/build/app.js:2
|
366 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:190
|
367 |
+
msgid "Edit"
|
|
|
368 |
msgstr ""
|
369 |
|
370 |
+
#. translators: name of starter site
|
371 |
+
#: assets/build/app.js:4
|
372 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:284
|
373 |
+
msgid "Import the %s template"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#. translators: name of template
|
377 |
+
#: assets/build/app.js:6
|
378 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:289
|
379 |
+
msgid "Import all templates from %s"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#. translators: %s the name of the template
|
383 |
+
#: assets/build/app.js:8
|
384 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:253
|
385 |
+
msgid "The %s template will be imported as a page into your site. This import <strong/> include any plugins or theme settings."
|
386 |
msgstr ""
|
387 |
|
388 |
+
#. translators: %s the name of the template
|
389 |
+
#: assets/build/app.js:8
|
390 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:259
|
391 |
+
msgid "All the templates that are included in this starter site, will be imported as pages. This import <strong/> include any plugins or theme settings."
|
392 |
msgstr ""
|
393 |
|
394 |
+
#: assets/build/app.js:8
|
395 |
+
#: assets/src/Components/CloudLibrary/ImportTemplatesModal.js:309
|
396 |
+
msgid "I want to import the entire site"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: assets/build/app.js:8
|
400 |
+
#: assets/src/utils/common.js:7
|
401 |
+
msgid "Business"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: assets/build/app.js:8
|
405 |
+
#: assets/src/utils/common.js:8
|
406 |
+
msgid "Ecommerce"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: assets/build/app.js:8
|
410 |
+
#: assets/src/utils/common.js:9
|
411 |
+
msgid "Fashion"
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: assets/build/app.js:8
|
415 |
+
#: assets/src/utils/common.js:10
|
416 |
+
msgid "Blogging"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: assets/build/app.js:8
|
420 |
+
#: assets/src/utils/common.js:11
|
421 |
+
msgid "Photography"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: assets/build/app.js:8
|
425 |
#: assets/src/Components/ImportStepper.js:8
|
426 |
msgid "Installing Plugins"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: assets/build/app.js:8
|
430 |
#: assets/src/Components/ImportStepper.js:13
|
431 |
msgid "Importing Content"
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: assets/build/app.js:8
|
435 |
#: assets/src/Components/ImportStepper.js:18
|
436 |
msgid "Importing Customizer Settings"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: assets/build/app.js:8
|
440 |
#: assets/src/Components/ImportStepper.js:26
|
441 |
msgid "Importing Widgets"
|
442 |
msgstr ""
|
443 |
|
444 |
+
#: assets/build/app.js:8
|
445 |
+
#: assets/src/Components/ImportModal.js:427
|
446 |
+
msgid "Something went wrong while installing the necessary plugins."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: assets/build/app.js:8
|
450 |
+
#: assets/src/Components/ImportModal.js:431
|
451 |
+
msgid "Something went wrong while importing the website content."
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: assets/build/app.js:8
|
455 |
+
#: assets/src/Components/ImportModal.js:435
|
456 |
+
msgid "Something went wrong while updating the customizer settings."
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: assets/build/app.js:8
|
460 |
+
#: assets/src/Components/ImportModal.js:439
|
461 |
+
msgid "Something went wrong while importing the widgets."
|
462 |
msgstr ""
|
463 |
|
464 |
+
#: assets/build/app.js:8
|
465 |
+
#: assets/src/Components/ImportModal.js:61
|
466 |
+
#: assets/src/Components/ImportModal.js:97
|
467 |
+
msgid "Something went wrong while loading the site data. Please refresh the page and try again."
|
468 |
msgstr ""
|
469 |
|
470 |
+
#. translators: name of starter site
|
471 |
+
#: assets/build/app.js:10
|
472 |
+
#: assets/src/Components/ImportModal.js:180
|
473 |
+
msgid "Import %s as a complete site"
|
|
|
474 |
msgstr ""
|
475 |
|
476 |
+
#. translators: name of starter site
|
477 |
+
#: assets/build/app.js:10
|
478 |
+
#: assets/src/Components/ImportModal.js:188
|
479 |
+
msgid "Import the entire site including customizer options, pages, content and plugins."
|
480 |
msgstr ""
|
481 |
|
482 |
+
#: assets/build/app.js:10
|
483 |
+
#: assets/src/Components/ImportModal.js:222
|
484 |
+
msgid "Import settings"
|
485 |
msgstr ""
|
486 |
|
487 |
+
#: assets/build/app.js:10
|
488 |
+
#: assets/src/Components/ImportModal.js:562
|
489 |
+
msgid "I want to import just the templates"
|
490 |
msgstr ""
|
491 |
|
492 |
+
#: assets/build/app.js:10
|
493 |
+
#: assets/src/Components/ImportModal.js:580
|
494 |
+
msgid "Import entire site"
|
495 |
msgstr ""
|
496 |
|
497 |
+
#: assets/build/app.js:10
|
498 |
+
#: assets/src/Components/CloudLibrary/DemoSiteTemplatesImport.js:155
|
499 |
+
#: assets/src/Components/StarterSiteCard.js:103
|
500 |
+
msgid "Premium"
|
501 |
msgstr ""
|
502 |
|
503 |
+
#: assets/build/app.js:10
|
504 |
+
#: assets/src/Components/StarterSiteCard.js:81
|
505 |
+
msgid "View Pages"
|
506 |
msgstr ""
|
507 |
|
508 |
+
#: assets/build/app.js:10
|
509 |
#: assets/src/Components/PreviewFrame.js:62
|
510 |
msgid "Previous"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: assets/build/app.js:10
|
514 |
#: assets/src/Components/PreviewFrame.js:74
|
515 |
msgid "Next"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: assets/build/app.js:10
|
519 |
#: assets/src/Components/PreviewFrame.js:91
|
520 |
msgid "Upgrade and Import"
|
521 |
msgstr ""
|
522 |
|
523 |
+
#: assets/build/app.js:10
|
524 |
#: assets/src/Components/Search.js:102
|
525 |
msgid "Search for a starter site"
|
526 |
msgstr ""
|
527 |
|
528 |
+
#: assets/build/app.js:10
|
529 |
+
#: assets/src/Components/EditorSelector.js:30
|
530 |
+
#: assets/src/Components/EditorSelector.js:70
|
531 |
+
#: assets/src/Components/EditorTabs.js:42
|
532 |
+
msgid "Builder Logo"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: assets/build/app.js:10
|
536 |
+
#: assets/src/Components/OnboardingContent.js:171
|
537 |
+
msgid "No results found"
|
538 |
msgstr ""
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: themeisle
|
3 |
Tags: neve, templates, patterns, blocks, starter, sites, demo, content, import
|
4 |
Requires at least: 4.7
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 5.6
|
7 |
Stable tag: trunk
|
8 |
License: GPLv3
|
@@ -27,6 +27,13 @@ No account is required to access the service template collection and the privacy
|
|
27 |
|
28 |
== Changelog ==
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
##### [Version 1.1.5](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.4...v1.1.5) (2021-03-16)
|
31 |
|
32 |
- Add Beaver Builder integration
|
2 |
Contributors: themeisle
|
3 |
Tags: neve, templates, patterns, blocks, starter, sites, demo, content, import
|
4 |
Requires at least: 4.7
|
5 |
+
Tested up to: 5.7
|
6 |
Requires PHP: 5.6
|
7 |
Stable tag: trunk
|
8 |
License: GPLv3
|
27 |
|
28 |
== Changelog ==
|
29 |
|
30 |
+
##### [Version 1.1.6](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.5...v1.1.6) (2021-03-16)
|
31 |
+
|
32 |
+
- Fix Onboarding failing
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
##### [Version 1.1.5](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.4...v1.1.5) (2021-03-16)
|
38 |
|
39 |
- Add Beaver Builder integration
|
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.
|
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.6
|
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
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit60f4744e1b3fc5b9f32291da7d027d4b::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -25,8 +25,8 @@ class InstalledVersions
|
|
25 |
private static $installed = array (
|
26 |
'root' =>
|
27 |
array (
|
28 |
-
'pretty_version' => '1.1.
|
29 |
-
'version' => '1.1.
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
@@ -37,8 +37,8 @@ private static $installed = array (
|
|
37 |
array (
|
38 |
'codeinwp/templates-patterns-collection' =>
|
39 |
array (
|
40 |
-
'pretty_version' => '1.1.
|
41 |
-
'version' => '1.1.
|
42 |
'aliases' =>
|
43 |
array (
|
44 |
),
|
25 |
private static $installed = array (
|
26 |
'root' =>
|
27 |
array (
|
28 |
+
'pretty_version' => '1.1.6',
|
29 |
+
'version' => '1.1.6.0',
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
37 |
array (
|
38 |
'codeinwp/templates-patterns-collection' =>
|
39 |
array (
|
40 |
+
'pretty_version' => '1.1.6',
|
41 |
+
'version' => '1.1.6.0',
|
42 |
'aliases' =>
|
43 |
array (
|
44 |
),
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit559b727a4ed7495f030ebdee11b9820b
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
27 |
-
spl_autoload_unregister(array('
|
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\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit60f4744e1b3fc5b9f32291da7d027d4b
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit60f4744e1b3fc5b9f32291da7d027d4b', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit60f4744e1b3fc5b9f32291da7d027d4b', '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\ComposerStaticInit60f4744e1b3fc5b9f32291da7d027d4b::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
@@ -52,9 +52,9 @@ class ComposerStaticInit559b727a4ed7495f030ebdee11b9820b
|
|
52 |
public static function getInitializer(ClassLoader $loader)
|
53 |
{
|
54 |
return \Closure::bind(function () use ($loader) {
|
55 |
-
$loader->prefixLengthsPsr4 =
|
56 |
-
$loader->prefixDirsPsr4 =
|
57 |
-
$loader->classMap =
|
58 |
|
59 |
}, null, ClassLoader::class);
|
60 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit60f4744e1b3fc5b9f32291da7d027d4b
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
52 |
public static function getInitializer(ClassLoader $loader)
|
53 |
{
|
54 |
return \Closure::bind(function () use ($loader) {
|
55 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit60f4744e1b3fc5b9f32291da7d027d4b::$prefixLengthsPsr4;
|
56 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit60f4744e1b3fc5b9f32291da7d027d4b::$prefixDirsPsr4;
|
57 |
+
$loader->classMap = ComposerStaticInit60f4744e1b3fc5b9f32291da7d027d4b::$classMap;
|
58 |
|
59 |
}, null, ClassLoader::class);
|
60 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
-
'pretty_version' => '1.1.
|
5 |
-
'version' => '1.1.
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
@@ -13,8 +13,8 @@
|
|
13 |
array (
|
14 |
'codeinwp/templates-patterns-collection' =>
|
15 |
array (
|
16 |
-
'pretty_version' => '1.1.
|
17 |
-
'version' => '1.1.
|
18 |
'aliases' =>
|
19 |
array (
|
20 |
),
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
+
'pretty_version' => '1.1.6',
|
5 |
+
'version' => '1.1.6.0',
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
13 |
array (
|
14 |
'codeinwp/templates-patterns-collection' =>
|
15 |
array (
|
16 |
+
'pretty_version' => '1.1.6',
|
17 |
+
'version' => '1.1.6.0',
|
18 |
'aliases' =>
|
19 |
array (
|
20 |
),
|