Cloud Templates & Patterns collection - Version 1.1.24

Version Description

Download this release

Release Info

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

Code changes from version 1.1.23 to 1.1.24

CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  ##### [Version 1.1.23](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.22...v1.1.23) (2022-06-30)
2
 
3
  Removed unsupported builders from the list
1
+ ##### [Version 1.1.24](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.23...v1.1.24) (2022-07-12)
2
+
3
+ Release
4
+
5
  ##### [Version 1.1.23](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.22...v1.1.23) (2022-06-30)
6
 
7
  Removed unsupported builders from the list
README.md CHANGED
@@ -39,6 +39,13 @@ Yes, you can. You can either chose to import one template or the entire starter
39
 
40
  ## Changelog ##
41
 
 
 
 
 
 
 
 
42
  ##### [Version 1.1.23](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.22...v1.1.23) (2022-06-30)
43
 
44
  Removed unsupported builders from the list
39
 
40
  ## Changelog ##
41
 
42
+ ##### [Version 1.1.24](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.23...v1.1.24) (2022-07-12)
43
+
44
+ Release
45
+
46
+
47
+
48
+
49
  ##### [Version 1.1.23](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.22...v1.1.23) (2022-06-30)
50
 
51
  Removed unsupported builders from the list
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' => 'd284e682f16e056852cc5812b963b24c');
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' => 'd05ae9470cbffb37c383766878418a02');
assets/build/app.js CHANGED
@@ -7,4 +7,4 @@ Object(_.__)("Import all templates from %s","templates-patterns-collection"),A?t
7
  /* translators: %s the name of the template */
8
  Object(_.__)("The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"),t[0].template_name):Object(_.__)("All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"))))),Object(r.createElement)("div",{className:"modal-footer"},!m&&Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,disabled:k,onClick:F},Object(_.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",disabled:k,onClick:z},k?Object(_.__)("Importing")+"...":A?Object(_.__)("Import"):Object(_.__)("Import All Pages"))))}),null))})),Ge=function(){return Object(r.createElement)(G.SVG,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ob-logo"},Object(r.createElement)(G.Path,{d:"M95.0264 100H4.97356C2.22797 100 0 97.772 0 95.0264V4.97356C0 2.22797 2.22797 0 4.97356 0H95.0264C97.772 0 100 2.22797 100 4.97356V95.0264C100 97.772 97.772 100 95.0264 100Z",fill:"#0366D6"}),Object(r.createElement)(G.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(G.Path,{d:"M42.2416 58.9291L42.2528 71.183L53.2352 82.1653L53.1902 47.9806L18.9941 47.9355L29.9765 58.9066L42.2416 58.9291Z",fill:"white"}))};function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qe=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setInstallModalStatus,r=t.setTemplateModal,a=t.setPreviewStatus;return{setPreview:function(e){return a(e)},setInstallModal:function(e){return n(e)},setTemplateModal:r}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentEditor,c=t.getCurrentTab,o=t.getUserStatus;return{templateModal:n(),themeStatus:r().action||!1,editor:a(),currentTab:c(),userStatus:o()}})))((function(e){var t=e.isGeneral,n=e.setPreview,a=e.setInstallModal,o=e.setTemplateModal,i=e.templateModal,s=e.themeStatus,l=e.currentTab,u=e.userStatus,m=Object(r.useState)({gutenberg:[],elementor:[]}),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)("gutenberg"),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)([]),w=y()(j,2),k=w[0],N=w[1],T=Object(r.useState)(t),x=y()(T,2),M=x[0],P=x[1],D=Object(r.useState)(""),I=y()(D,2),L=I[0],A=I[1],B=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),R=y()(B,2),F=R[0],z=R[1],U=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),$=y()(U,2),G=$[0],Y=$[1],J=Object(r.useState)(!1),K=y()(J,2),Z=K[0],X=K[1],ee=Object(r.useState)(!1),te=y()(ee,2),ne=te[0],re=te[1],ae=Object(r.useState)(!1),ce=y()(ae,2),oe=ce[0],se=ce[1],le=Object(r.useState)(""),ue=y()(le,2),me=ue[0],pe=ue[1],de=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),be=y()(de,2),fe=be[0],he=be[1];Object(r.useEffect)((function(){X(!0),A(""),z({gutenberg:0,elementor:0,beaver:0}),Y({gutenberg:0,elementor:0,beaver:0}),Oe()}),[t,g]);var ge={gutenberg:{label:Object(_.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(_.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(_.__)("Beaver"),icon:"beaver.jpg"}},Oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=qe({page:F[g],per_page:12,type:g},e);t&&(n.template_site_slug="general",n.premade=!0),L&&(n.search=L),ie(t,n).then((function(e){b(qe(qe({},d),{},c()({},g,e.templates))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}))},ye=function(){var e=C()(S.a.mark((function e(){var n,r,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:F[g]+1,se(!0),z(qe(qe({},F),{},c()({},g,n))),r={page:n,per_page:12,type:g},t&&(r.template_site_slug="general",r.premade=!0),L&&(r.search=L),e.next=8,ie(t,r).then((function(e){b(qe(qe({},d),{},c()({},g,[].concat(V()(d[g]),V()(e.templates))))),Y(qe(qe({},G),{},c()({},g,e.total)))}));case 8:se(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ee=function(e){pe(e),n(!0)},_e=function(e){if(s)return a(!0),!1;N([e]),o(!0)},we=d[g]&&d[g].findIndex((function(e){return e.link===me})),Se=d[g]&&d[g].find((function(e){return me===e.link})),ke=O()("cloud-items",{"is-grid":M||!u&&!t,"is-dummy":!u&&!t}),Ce=function(){return t?fe.templates:fe.library},Ne=function(){var e=C()(S.a.mark((function e(n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:X(!0),r=qe({search:L,type:g},n),t&&(r.template_site_slug="general",r.premade=!0),ie(t,r).then((function(e){b(qe(qe({},d),{},c()({},g,V()(e.templates)))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return u||t?Object(r.createElement)("div",{className:ke},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(ge).map((function(e){return Object(r.createElement)("a",{key:e,href:"#",onClick:function(){v(e),re(!1)},className:O()("tab",{active:g===e})},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:window.tiobDash.assets+"img/"+ge[e].icon,alt:ge[e].label})),Object(r.createElement)("span",{className:"editor"},ge[e].label))}))),Object(r.createElement)(xe,{currentTab:l,isGrid:M,setGrid:P,isSearch:ne,searchQuery:L,setSearchQuery:A,onSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;X(!0),re(!!e);var n=qe({search:e,type:g},Ce());t&&(n.template_site_slug="general",n.premade=!0),ie(t,n).then((function(e){b(qe(qe({},d),{},c()({},g,V()(e.templates)))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}))},sortingOrder:Ce(),setSortingOrder:function(e){return he(qe(qe({},fe),{},t?{templates:e}:{library:e}))},changeOrder:Ne}),Z&&Object(r.createElement)(je,{isGrid:M}),!Z&&(d[g]&&d[g].length>0?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"table"},d[g].map((function(e){return Object(r.createElement)(ve,{sortingOrder:Ce(),onPreview:Ee,userTemplate:!t,key:e.template_id,item:e,loadTemplates:Oe,onImport:function(){return _e(e)},grid:M})}))),Object(r.createElement)(H.a,{onChange:function(e){if(!e)return!1;Number(G[g])>F[g]&&ye()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),oe&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(E.Spinner,null))):Object(r.createElement)("div",{className:"empty-information"},Object(r.createElement)("img",{src:window.tiobDash.assets+"/img/layout.jpg",alt:Object(_.__)("No Templates Found")}),Object(r.createElement)("h3",null,Object(_.__)("There are no templates yet")),Object(r.createElement)("p",null,Object(_.__)("You can add a page or post to the cloud by accessing it with the WordPress or Elementor/Beaver editor. Learn more about this in our docs.")),Object(r.createElement)(E.Button,{variant:"secondary",isSecondary:!0,href:"https://docs.themeisle.com/article/1354-neve-template-cloud-library?utm_medium=nevedashboard&utm_source=templatecloud&utm_campaign=neve&utm_content=learnmore",target:"_blank"},Object(_.__)("Learn more")))),me&&Object(r.createElement)(Me,{previewUrl:me,rightButtons:Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return _e(Se)}},Object(_.__)("Import Template")),heading:Se.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:W,onClick:function(){pe(""),n(!1)}}),d[g].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?q:Q,onClick:function(){var e=we-1;0===we&&(e=d[g].length-1),pe(d[g][e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:q,onClick:function(){var e=we+1;we===d[g].length-1&&(e=0),pe(d[g][e].link)}})))})),i&&k&&!Z&&k.length>0&&Object(r.createElement)(He,{generalTemplates:!0,isUserTemplate:!t,templatesData:k})):Object(r.createElement)("div",{className:ke},Object(r.createElement)("div",{className:"table"},V()(Array(12)).map((function(e,t){return Object(r.createElement)(ve,{sortingOrder:Ce(),onPreview:Ee,userTemplate:!1,key:t,item:{},grid:!0})}))),Object(r.createElement)("div",{className:"upsell-modal-overlay"},Object(r.createElement)("div",{className:"upsell-modal"},Object(r.createElement)("div",{className:"upsell-modal-content"},Object(r.createElement)("div",{className:"info"},Object(r.createElement)("h3",null,Object(_.__)("Templates Cloud is a PRO Feature")),Object(r.createElement)("p",null,Object(_.__)("Unlock the Templates Cloud features and save your pages or posts in the cloud.")),Object(r.createElement)(E.Button,{variant:"primary",isPrimary:!0,href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=upgradetoprobtn and https://themeisle.com/themes/neve/neve-upgrade-new/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=changeplanbtn",target:"_blank"},Object(_.__)("Upgrade to PRO"))),Object(r.createElement)("div",{className:"icon"},Object(r.createElement)(E.Icon,{icon:Ge}))))))})),Ye=[Object(_.__)("Business","templates-patterns-collection"),Object(_.__)("Ecommerce","templates-patterns-collection"),Object(_.__)("Fashion","templates-patterns-collection"),Object(_.__)("Blogging","templates-patterns-collection"),Object(_.__)("Photography","templates-patterns-collection")],Je={all:Object(_.__)("All Categories"),free:Object(_.__)("Free"),business:Object(_.__)("Business"),portfolio:Object(_.__)("Portfolio"),woocommerce:Object(_.__)("WooCommerce"),blog:Object(_.__)("Blog"),personal:Object(_.__)("Personal"),other:Object(_.__)("Other")},Ke={gutenberg:{icon:"gutenberg.jpg",niceName:"Gutenberg"},elementor:{icon:"elementor.jpg",niceName:"Elementor"}},Ze=(Object(r.createElement)(r.Fragment,null,"Beaver ",Object(r.createElement)("span",{className:"long-name"},"Builder")),Object(r.createElement)(r.Fragment,null,"Thrive ",Object(r.createElement)("span",{className:"long-name"},"Architect")),function(e){var t=e.currentStep,n=e.progress,a=e.willDo,c={cleanup:{label:Object(_.__)("Cleanup previous Import","templates-patterns-collection"),status:n.cleanup,willDo:a.cleanup},plugins:{label:Object(_.__)("Installing Plugins","templates-patterns-collection"),status:n.plugins,willDo:!0},content:{label:Object(_.__)("Importing Content","templates-patterns-collection"),status:n.content,willDo:a.content},customizer:{label:Object(_.__)("Importing Customizer Settings","templates-patterns-collection"),status:n.customizer,willDo:a.customizer},widgets:{label:Object(_.__)("Importing Widgets","templates-patterns-collection"),status:n.widgets,willDo:a.widgets}};return Object(r.createElement)("ul",{className:"stepper"},Object.keys(c).map((function(e,n){var a=c[e],o=a.label,i=a.status;if(!a.willDo)return null;var s=O()(["icon",{loading:t===e,warning:t===e,success:"done"===i,error:"error"===i,skip:"skip"===i}]),l="clock";return t===e&&(l="update"),"done"===i&&(l="yes"),"error"===i&&(l="no-alt"),Object(r.createElement)("li",{key:n},Object(r.createElement)("span",{className:s},Object(r.createElement)(E.Dashicon,{icon:l,className:t===e?"loading":""})),Object(r.createElement)("span",null,o))})))}),Xe=n(19),et=n.n(Xe),tt=function(e){return et()(e),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("span",{className:"title is-loading",style:{height:35,marginBottom:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20,marginBottom:20}})),Object(r.createElement)("div",{className:"well is-loading"},Object(r.createElement)("span",{className:"title is-loading",style:{height:20}}),Object(r.createElement)("ol",null,Object(r.createElement)("li",null),Object(r.createElement)("li",null),Object(r.createElement)("li",null))),Object(r.createElement)("div",{className:"modal-toggles components-panel"},[1,2].map((function(e){return Object(r.createElement)("div",{key:e,className:"components-panel__body options general is-opened"},Object(r.createElement)("span",{className:"title is-loading"}),Object(r.createElement)("ul",null,[1,2,3].map((function(e){return Object(r.createElement)("li",{className:"option-row",key:e},Object(r.createElement)("div",{className:"mock-icon is-loading"}),Object(r.createElement)("span",{className:"is-loading"}),Object(r.createElement)("div",{className:"toggle is-loading"}))}))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)("span",{className:"link is-loading"}),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import is-loading"})))},nt=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),rt=function(e){var t=e.children,n=e.className,a=O()([n,"tiob-tooltip-wrap"]);return Object(r.createElement)("div",{className:a},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault()},className:"tiob-tooltip-toggle",icon:nt,isLink:!0,isSmall:!0}),Object(r.createElement)("div",{className:"tiob-tooltip-content"},t))};function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentSite;return{editor:n(),siteData:r()}})),Object(h.withDispatch)((function(e,t){var n=t.siteData,r=e("neve-onboarding"),a=r.setTemplateModal,c=r.setSingleTemplateImport,o=r.setImportModalStatus;return{setModal:function(e){return o(e)},runTemplateImport:function(){c(n.slug),a(!0),o(!1)}}})))((function(e){var t=e.setModal,n=e.editor,a=e.siteData,o=e.runTemplateImport,i=Object(r.useState)({content:!0,customizer:!0,widgets:!0,cleanup:!1}),s=y()(i,2),l=s[0],u=s[1],m=Object(r.useState)(!1),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(!1),w=y()(j,2),S=w[0],k=w[1],C=Object(r.useState)(!1),x=y()(C,2),M=x[0],P=x[1],D=Object(r.useState)(!1),I=y()(D,2),B=I[0],z=I[1],U=Object(r.useState)(null),V=y()(U,2),$=V[0],H=V[1],G=Object(r.useState)(null),W=y()(G,2),q=W[0],Q=W[1],Y=Object(r.useState)(!1),J=y()(Y,2),K=J[0],Z=J[1],X=Object(r.useState)(null),ee=y()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(null),ae=y()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(null),se=y()(ie,2),le=se[0],ue=se[1],me=Object(r.useState)(!0),pe=y()(me,2),de=pe[0],be=pe[1],fe=Object(r.useState)(!0),he=y()(fe,2),ge=he[0],Oe=he[1],ve=Object(r.useState)(!0),je=y()(ve,2),ye=je[0],Ee=je[1],_e=tiobDash,we=_e.license,Se=_e.cleanupAllowed,ke=Object(r.useState)(Se),Ce=y()(ke,2),Ne=Ce[0],Te=Ce[1];function xe(){if(!te)return console.log("[S] Plugins."),Me(),!1;Q("plugins"),console.log("[P] Plugins."),A(te).then((function(e){if(!e.success)return Le(e,"plugins"),!1;console.log("[D] Plugins."),v("done"),Me()})).catch((function(e){return Le(e,"plugins")}))}function Me(){if(!l.content)return console.log("[S] Content."),Pe(),!1;var e;Q("content"),console.log("[P] Content."),(e={contentFile:le.content_file,source:"remote",frontPage:le.front_page,shopPages:le.shop_pages,demoSlug:le.slug,editor:n},N(L.root+"/import_content",e)).then((function(e){if(!e.success)return Le(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&H(e.frontpage_id),k("done"),Pe()})).catch((function(e){return Le(e,"content")}))}function Pe(){if(!l.customizer)return console.log("[S] Customizer."),De(),!1;var e;Q("customizer"),console.log("[P] Customizer."),(e={source_url:le.url,theme_mods:le.theme_mods,wp_options:le.wp_options},N(L.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return Le(e,"customizer"),!1;console.log("[D] Customizer."),P("done"),De()})).catch((function(e){return Le(e,"customizer")}))}function De(){if(!l.widgets)return console.log("[S] Widgets."),Ie(),!1;var e;Q("widgets"),console.log("[P] Widgets."),(e=le.widgets,N(L.root+"/import_widgets",e)).then((function(e){if(!e.success)return Le(e,"widgets"),!1;console.log("[D] Widgets."),z("done"),Ie()})).catch((function(e){return Le(e,"widgets")}))}function Ie(){Q("done"),Te("yes"),tiobDash.cleanupAllowed="yes",Z(!1)}function Le(e,t){Z(!1),Q(null),"cleanup"===t&&v("skip"),"plugins"===t&&k("skip"),["content","plugins"].includes(t)&&P("skip"),["content","plugins","customizer"].includes(t)&&z("skip");var n={cleanup:Object(_.__)("Something went wrong while cleaning the previous import.","templates-patterns-collection"),plugins:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection"),content:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection"),customizer:Object(_.__)("Something went wrong while updating the customizer settings.","templates-patterns-collection"),widgets:Object(_.__)("Something went wrong while importing the widgets.","templates-patterns-collection")};switch(t){case"cleanup":b("error");break;case"plugins":v("error");break;case"content":k("error");break;case"customizer":P("error");break;case"widgets":z("error")}oe(e.data?{message:n[t],code:e.data}:{message:n[t]})}Object(r.useEffect)((function(){var e=a.remote_url||a.url,t=new URL("".concat(function(e){return e.replace(/\/$/,"")}(e)+"/","wp-json/ti-demo-data/data"));t.searchParams.append("license",we?we.key:"free"),T(t,!0,!1).then((function(e){e.ok||(oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_response"}),be(!1)),e.json().then((function(e){ue(ct(ct({},e),a));var t=ct({},e.mandatory_plugins||{}),n=ct({},e.recommended_plugins||{}),r=e.default_off_recommended_plugins||[];Object.keys(t).forEach((function(e){t[e]=!0})),Object.keys(n).forEach((function(e){n[e]=!r.includes(e)})),ne(ct(ct({},n),t)),be(!1)}))})).catch((function(){oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_catch"}),be(!1)}))}),[]);var Ae=function(){if(K)return!1;t(!1)},Be=!a.external_plugins||a.external_plugins.every((function(e){return!0===e.active})),Re=Object.keys(l).every((function(e){return!1===l[e]})),Fe={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=elementor"),brizy:"".concat(tiobDash.onboarding.homeUrl,"/?brizy-edit"),"beaver builder":"".concat(tiobDash.onboarding.homeUrl,"/?fl_builder"),"thrive architect":"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=architect&tve=true"),"divi builder":"".concat(tiobDash.onboarding.homeUrl,"/?et_fb=1&PageSpeed=off"),gutenberg:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=edit")}[n];return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:de}]),onRequestClose:Ae,shouldCloseOnClickOutside:!K&&!de,isDismissible:!K&&!de},de?Object(r.createElement)(tt,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},K||"done"===q||ce?Object(r.createElement)(r.Fragment,null,ce&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(F,{message:ce.message||null,code:ce.code||null}),Object(r.createElement)("hr",null)),null!==q&&Object(r.createElement)(Ze,{progress:{cleanup:d,plugins:g,content:S,customizer:M,widgets:B},currentStep:q,willDo:l}),"done"===q&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),Object(r.createElement)("hr",null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(
9
  /* translators: name of starter site */
10
- Object(_.__)("Import %s as a complete site","templates-patterns-collection"),le.title)),Object(r.createElement)("p",{className:"description"},Object(_.__)("Import the entire site including customizer options, pages, content and plugins.","templates-patterns-collection")))}),null),Object(r.createElement)((function(){return Object(r.createElement)(R,{data:le,externalInstalled:Be})}),null),Object(r.createElement)(E.Panel,{className:"modal-toggles"},Object(r.createElement)((function(){var e={content:{title:Object(_.__)("Content","templates-patterns-collection"),icon:"admin-post",tooltip:Object(_.__)("We recommend you backup your website content before attempting a full site import.","templates-patterns-collection")},customizer:{title:Object(_.__)("Customizer","templates-patterns-collection"),icon:"admin-customizer"},widgets:{title:Object(_.__)("Widgets","templates-patterns-collection"),icon:"admin-generic",tooltip:Object(_.__)("Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there.","templates-patterns-collection")}};return"yes"===Ne&&(e=ct({cleanup:{icon:"trash",title:Object(_.__)("Cleanup previous import","templates-patterns-collection"),tooltip:Object(_.__)("This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import","templates-patterns-collection")}},e)),Object(r.createElement)(E.PanelBody,{onToggle:function(){Ee(!ye)},opened:ye,className:"options general",title:Object(_.__)("Import settings","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:l[t]}),o=e[t],i=o.icon,s=o.title,m=o.tooltip;return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:i}),Object(r.createElement)("span",null,s),m&&Object(r.createElement)(rt,null,m),Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:l[t],onChange:function(){u(ct(ct({},l),{},c()({},t,!l[t])))}})))})))}),null),Object(r.createElement)((function(){if(de)return null;var e=ct(ct({},le.recommended_plugins||{}),le.mandatory_plugins||{});return Object(r.createElement)(E.PanelBody,{onToggle:function(){Oe(!ge)},opened:ge,className:"options plugins",title:Object(_.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:te[t]});return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:"admin-plugins"}),Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:e[t]}}),t in le.recommended_plugins&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:te[t],onChange:function(){ne(ct(ct({},te),{},c()({},t,!te[t])))}})))})))}),null)))),!K&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==q?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,onClick:o},Object(_.__)("I want to import just the templates","templates-patterns-collection")),!ce&&Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,disabled:Re||!Be,onClick:function(){Z(!0),function(){if(console.clear(),!l.cleanup)return console.log("[S] Cleanup."),xe(),!1;var e;Q("cleanup"),console.log("[P] Cleanup."),(e={},N(L.root+"/cleanup",e)).then((function(e){if(!e.success)return Le(e,"cleanup"),!1;console.log("[D] Cleanup."),b("done"),xe()})).catch((function(e){return Le(e,"cleanup")}))}()}},Object(_.__)("Import entire site","templates-patterns-collection"))):Object(r.createElement)("div",{className:"import-done-actions"},Object(r.createElement)(E.Button,{isLink:!0,className:"close",onClick:Ae},Object(_.__)("Back to Sites Library","templates-patterns-collection")),Object(r.createElement)(E.Button,{isSecondary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",href:Fe},Object(_.__)("Add your own content","templates-patterns-collection"))))))})),it=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setSingleTemplateImport,r=t.setImportModalStatus,a=t.setInstallModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setInstallModal:function(e){return a(e)},setTemplateModal:t.setTemplateModal}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentSite,c=t.getCurrentEditor;return{templateModal:n(),themeStatus:r().action||!1,site:a(),editor:c()}})))((function(e){var t=e.slug,n=e.cancel,a=e.setModal,c=e.setInstallModal,o=e.themeStatus,i=e.site,s=e.editor,l=e.setTemplateModal,u=e.templateModal,m=Object(r.useState)([]),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!0),h=y()(f,2),g=h[0],O=h[1],v=Object(r.useState)(""),j=y()(v,2),w=j[0],S=j[1],k=Object(r.useState)([]),C=y()(k,2),N=C[0],T=C[1],x=i.title,M=i.upsell,P=i.utmOutboundLink;Object(r.useEffect)((function(){D()}),[]);var D=function(){ie(!0,{per_page:100,template_site_slug:t,premade:!0,type: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)(E.Button,{isTertiary:!0,onClick:n},Object(r.createElement)(E.Icon,{icon:Q}),Object(_.__)("Back to Starter Sites"))),Object(r.createElement)("div",{className:"header"},Object(r.createElement)("div",{className:"text"},Object(r.createElement)("h1",null,x||"",M&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Icon,{icon:"lock"}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))),Object(r.createElement)("p",{className:"description"},Object(_.__)("You can import individual pages or bulk-import all of them."))),Object(r.createElement)("div",{className:"actions"},!M&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(e){if(e.preventDefault(),o)return c(!0),!1;T(d),l(!0)}},Object(_.__)("Import All Pages"))),M&&Object(r.createElement)(E.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade"))))),Object(r.createElement)((function(){return g?Object(r.createElement)(E.Spinner,null):d.length<1?Object(_.__)("No templates for this starter site."):Object(r.createElement)("div",{className:"cloud-items is-grid"},Object(r.createElement)("div",{className:"table"},d.map((function(e){return Object(r.createElement)(ve,{upsell:M,onPreview:I,userTemplate:!1,key:e.template_id,item:e,loadTemplates:D,onImport:function(){return L(e)},grid:!0})}))))}),null),w&&Object(r.createElement)(Me,{heading:R.template_name||null,previewUrl:w,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:W,onClick:function(){return S("")},label:Object(_.__)("Close","templates-patterns-collection")}),d.length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?q:Q,onClick:function(){var e=B-1;0===B&&(e=d.length-1),S(d[e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:q,onClick:function(){var e=B+1;B===d.length-1&&(e=0),S(d[e].link)}}))),rightButtons:Object(r.createElement)(r.Fragment,null,!M&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(){return L(R)}},Object(_.__)("Import Page"))),M&&Object(r.createElement)(E.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade")))}),u&&N&&!g&&N.length>0&&Object(r.createElement)(He,{templatesData:N}))})),st=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c={starterSites:Object(_.__)("Starter Sites","templates-patterns-collection"),pageTemplates:Object(_.__)("Page Templates","templates-patterns-collection"),library:Object(_.__)("My Library","templates-patterns-collection")},o=Object(r.useState)(!1),i=y()(o,2),s=i[0],l=i[1],u=function(){var e=function(e){var t=window.location.hash;return"string"!=typeof window.location.hash?null:(t=t.substring(1),Object.keys(e).includes(t)?t:null)}(c);if(null!==e){var n=document.getElementById("menu-appearance"),r=n.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]'),a=n.querySelector('a[href="themes.php?page=tiob-starter-sites"]');if(r&&a){var o=r.parentElement,i=a.parentElement;n.querySelector(".current").classList.remove("current"),o.classList.remove("current"),"library"===e?o.classList.add("current"):i.classList.add("current")}t(e)}};return Object(r.useEffect)((function(){u(),window.addEventListener("hashchange",u)}),[]),Object(r.createElement)("div",{className:"header-nav"},Object.keys(c).map((function(e){return Object(r.createElement)(E.Button,{href:"#"+e,key:e,isTertiary:!0,isPressed:e===n,onClick:function(n){var r;n.preventDefault(),t(e),r=e,window.location.hash=r}},c[e])})),"starterSites"!==n&&Object(r.createElement)(E.Button,{icon:pe,onClick:function(){l(!0),localStorage.setItem("tpcCacheBuster",ae());var e=n;t(null),setTimeout((function(){t(e),l(!1)}),100)},label:Object(_.__)("Re-sync Library"),className:O()("is-sync",{"is-loading":s}),disabled:a||s,"data-content":Object(_.__)("Sync")}))},lt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState;return{cancelOnboarding:function(){n(!1)},setCurrentTab:t.setCurrentTab,setFetching:t.setFetching}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getCurrentTab,a=t.getFetching;return{isOnboarding:n(),currentTab:r(),isFetching:a()}})))((function(e){var t=e.isOnboarding,n=e.cancelOnboarding,a=e.setCurrentTab,c=e.currentTab;return Object(r.createElement)("div",{className:"ob-head"},!t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"header-container"},Object(r.createElement)("h2",null,!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:Ge}),Object(r.createElement)("span",null,Object(_.__)("Templates Cloud","templates-patterns-collection"))),Object(r.createElement)(st,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(E.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),ut=n(20),mt=n.n(ut),pt=Object(v.compose)(Object(h.withSelect)((function(e){return{themeStatus:(0,e("neve-onboarding").getThemeAction)().action||!1}})),Object(h.withDispatch)((function(e,t){var n=t.data,r=n.slug,a=e("neve-onboarding"),c=a.setCurrentSite,o=a.setPreviewStatus,i=a.setImportModalStatus,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.screenshot,m=t.title,p=t.has_templates,d=t.isNew,b=Object(r.useState)(""),f=y()(b,2),h=f[0],g=f[1],v=O()("card starter-site-card",{"has-templates":p});return Object(r.createElement)("div",{onMouseEnter:function(){g("visible")},onMouseLeave:function(){g("")},className:v},d&&Object(r.createElement)("span",{className:"new-badge"},Object(_.__)("New","templates-patterns-collection").toUpperCase()),Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"actions "+h},Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(e){e.preventDefault(),n(),a(!0)}},Object(_.__)("Preview","templates-patterns-collection")),!l&&Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(e){if(e.preventDefault(),n(),o)return i(!0),!1;c(!0)}},Object(_.__)("Import","templates-patterns-collection")),!p&&l&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",target:"_blank",href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=unlockprobtn"},Object(_.__)("Unlock access with Business plan","templates-patterns-collection")),p&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",onClick:function(e){e.preventDefault(),n(),s()}},Object(_.__)("View Pages","templates-patterns-collection"))),u&&Object(r.createElement)("div",{className:"image",style:{backgroundImage:'url("'.concat(u,'")')}})),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},m),l&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Dashicon,{icon:"lock",size:15}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))))})),dt=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentSite,r=t.getThemeAction;return{siteData:n(),themeStatus:r().action||!1}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentSite,r=t.setPreviewStatus,a=t.setImportModalStatus,c=t.setInstallModalStatus;return{setSite:function(e){return n(e)},setPreview:function(e){return r(e)},setModal:function(e){return a(e)},setInstallModal:function(e){return c(e)}}})))((function(e){var t=e.next,n=e.prev,a=e.siteData,c=e.setSite,o=e.setPreview,i=e.setModal,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)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},Object(r.createElement)("div",{className:"navigator"},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),o(!1),c(null)},className:"close",label:Object(_.__)("Close","templates-patterns-collection"),icon:W}),n&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(n)},className:"prev",label:Object(_.__)("Previous","templates-patterns-collection"),icon:Object(_.isRTL)()?q:Q}),t&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(t)},className:"next",label:Object(_.__)("Next","templates-patterns-collection"),icon:Object(_.isRTL)()?Q:q})),Object(r.createElement)("div",{className:"actions"},a.upsell?Object(r.createElement)(E.Button,{className:"upgrade",isPrimary:!0,href:a.utmOutboundLink||tiobDash.upgradeURL},Object(_.__)("Upgrade and Import","templates-patterns-collection")):Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,onClick:function(e){if(e.preventDefault(),s)return l(!0),!1;i(!0)}},Object(_.__)("Import","templates-patterns-collection")))))})),bt=function(e){var t=e.editor,n=e.data,a=n.text,c=n.cta,o=n.url;return Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"notification"},Object(r.createElement)("p",null,a),o&&c&&Object(r.createElement)(E.Button,{target:"_blank",isSecondary:!0,href:o.replace("<builder_name>",t).replace(" ","")},c))}),null)},ft=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentCategory,r=t.getCurrentEditor,a=t.getSearchQuery;return{editor:r(),category:n(),query:a()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentCategory,r=t.setCurrentEditor,a=t.setSearchQuery;return{setCurrentCategory:function(e){return n(e)},setCurrentEditor:function(e){return r(e)},onSearch:function(e){return a(e)}}})))((function(e){var t=e.count,n=(e.categories,e.editors),a=e.onSearch,c=(e.category,e.editor),o=e.onlyProSites,i=(e.setCurrentCategory,e.setCurrentEditor),s=e.query,l=e.className,u=Object(r.useState)(!1),m=y()(u,2),p=m[0],d=m[1],b=function(){return d(!p)},f=O()(l,"header-form");return Object(r.createElement)("div",{className:f},Object(r.createElement)("div",{className:"search"},Object(r.createElement)("img",{src:tiobDash.assets+"/img/search.svg",alt:Object(_.__)("Search Icon")}),Object(r.createElement)("input",{onChange:function(e){a(e.target.value)},type:"search",value:s,placeholder:Object(_.__)("Search for a starter site","templates-patterns-collection")+"..."}),!1,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"ob-dropdown categories-selector"},Object(r.createElement)(E.Button,{onClick:b,className:"select ob-dropdown"},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[c].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(c)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px",marginLeft:"0"}}),n[c].niceName),Object(r.createElement)(E.Dashicon,{size:14,icon:p?"arrow-up-alt2":"arrow-down-alt2"}),p&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:b,noArrow:!0},p&&Object(r.createElement)("ul",{className:"options"},Object.keys(n).map((function(e,a){return e===c?null:Object(r.createElement)("li",{key:a},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),i(e),d(!1)}},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),n[e].niceName),Object(r.createElement)("span",{className:"count"},t[e])))}))))))}),null)))})),ht=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.editor,c=e.setCurrentEditor,o=e.sites,i=e.isSmall,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=Object.keys(o),d=function(){return m(!u)},b=O()(["ob-dropdown","editor-selector",{small:i}]);return Object(r.createElement)("div",{className:b},Object(r.createElement)(E.Button,{onClick:d,className:"select ob-dropdown"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[a].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),!i&&Object(r.createElement)("span",null,t[a].niceName),Object(r.createElement)("span",{className:"count"},n[a]),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:d,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},p.map((function(e,o){return e===a?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),Object(r.createElement)("span",null,t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),gt=(Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.onlyProSites,c=e.editor,o=e.setCurrentEditor,i=e.sites,s=Object.keys(i);return Object(r.createElement)("div",{className:"editor-tabs"},s.map((function(e,i){var s=O()(["tab",e,{active:e===c}]);return Object(r.createElement)("a",{key:i,href:"#",className:s,onClick:function(t){t.preventDefault(),o(e)}},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),Object(r.createElement)("span",{className:"editor"},a.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e]))})))})),Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory;return Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(t).map((function(e,o){if(1>n[e])return null;var i=O()(["tab",e,{active:e===a}]);return Object(r.createElement)("a",{key:o,href:"#",className:i,onClick:function(t){t.preventDefault(),c(e)}},Object(r.createElement)("span",{className:"editor"},t[e]),Object(r.createElement)("span",{className:"count"},n[e]))})))}))),Ot=Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=Object(r.useState)(!1),i=y()(o,2),s=i[0],l=i[1],u=function(){return l(!s)},m=O()(["ob-dropdown","editor-selector",{small:!0}]);return Object(r.createElement)("div",{className:m},Object(r.createElement)(E.Button,{onClick:u,className:"select ob-dropdown"},Object(r.createElement)("span",null,t[a]),Object(r.createElement)("span",{className:"count"},n[a]),Object(r.createElement)(E.Dashicon,{size:14,icon:s?"arrow-up-alt2":"arrow-down-alt2"}),s&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:u,noArrow:!0},s&&Object(r.createElement)("ul",{className:"options"},Object.keys(t).map((function(e,o){return e===a||1>n[e]?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),l(!1)}},Object(r.createElement)("span",null,t[e]),Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),vt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getOnboardingStatus,c=t.getSites;return{editor:n(),category:r(),isOnboarding:a(),getSites:c()}})))((function(e){var t,n=e.filterByCategory,a=e.filterBySearch,c=e.getSitesForBuilder,o=e.isOnboarding,i=e.getSites,s=e.category,l=e.editor,u=Object(r.useState)(!1),m=y()(u,2),p=m[0],d=m[1],b=i.sites,f=void 0===b?{}:b,h=i.migration,g={top:p?0:"-100%"},O=Object.keys(f),v=O.filter((function(e){return Object.keys(f[e]).filter((function(t){return!0===f[e][t].upsell})).length===Object.keys(f[e]).length})),j=(t={builders:{},categories:{}},O.forEach((function(e){var r=c(e);r=n(r,s),r=a(r),t.builders[e]=r?r.length:0})),Object.keys(Je).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)(E.Icon,{icon:Ge,size:32}),Object(r.createElement)(ft,{className:"in-sticky",count:j.builders,categories:Je,editors:Ke,onlyProSites:v}),!1,Object(r.createElement)(Ot,{count:j.categories,categories:Je}))),Object(r.createElement)(H.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),Object(r.createElement)(ht,{count:j.builders,EDITOR_MAP:Ke}),Object(r.createElement)(ft,{count:j.builders,categories:Je,editors:Ke,onlyProSites:v}),!1,Object(r.createElement)(gt,{categories:Je,count:j.categories}),!tiobDash.isValidLicense&&Object(r.createElement)(bt,{data:tiobDash.upsellNotifications.upsell_1,editor:l}))))})),jt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab,setSearchQuery:t.setSearchQuery}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSearchQuery;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),searchQuery:m()}})))((function(e){var t=e.getSites,n=e.category,a=e.resetCategory,c=e.editor,o=e.previewOpen,i=e.currentSiteData,s=e.isOnboarding,l=e.cancelOnboarding,u=e.setSearchQuery,m=e.searchQuery,p=t.sites,d=void 0===p?{}:p,b=function(){var e={};return g().forEach((function(t){var n=d&&d[t]?d[t]:{};e[t]=V()(Object.values(n))})),e},f=function(e,t){return"free"===t?e.filter((function(e){return!e.upsell})):"all"!==t?e.filter((function(e){return e.keywords.includes(t)})):e},h=function(e){return m?new mt.a(e,{includeScore:!0,keys:["title","slug","keywords"]}).search(m).map((function(e){return e.item})):e},g=function(){return Object.keys(d)},O=function(){var e=b()[c];return e=h(e),f(e,n)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null===i)return null;var t=b()[c],n=t.indexOf(i);return-1===n||1===t.length?null:e&&0===n?t[t.length-1]:e||n!==t.length-1?t[e?n-1:n+1]:t[0]};return 1>d.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,Object(_.__)("Starter sites could not be loaded. Please refresh and try again.","templates-patterns-collection"),s&&Object(r.createElement)(E.Button,{style:{display:"block",margin:"20px auto"},isPrimary:!0,onClick:l},Object(_.__)("Close","templates-patterns-collection")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(vt,{getSitesForBuilder:function(e){return b()[e]},filterBySearch:h,filterByCategory:f}),0===O().length&&Object(r.createElement)("div",{className:"no-results"},Object(r.createElement)("p",null,Object(_.__)("No results found.","templates-patterns-collection")," ",Object(_.__)("You can try a different search or use one of the categories below.","templates-patterns-collection")),Object(r.createElement)("div",{className:"tags"},Ye.map((function(e,t){return Object(r.createElement)(E.Button,{key:t,isPrimary:!0,className:"tag",onClick:function(t){t.preventDefault(),u(e),a()}},e)})))),Object(r.createElement)((function(){var e=Object(r.useState)(9),t=y()(e,2),n=t[0],a=t[1],c=O();return Object(r.createElement)("div",{className:"ob-sites is-grid"},c.slice(0,n).map((function(e,t){return Object(r.createElement)(pt,{key:t,data:e})})),Object(r.createElement)(H.a,{onChange:function(e){if(!e)return!1;a(n+9)}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})))}),null),o&&i&&Object(r.createElement)(dt,{next:v(),prev:v(!0)}))})),yt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,s=t.getSites,l=t.getInstallModalStatus,u=t.getCurrentTab,m=t.getSingleImport;return{editor:n(),category:r(),previewOpen:a(),currentSiteData:c(),importModal:o(),installModal:l(),isOnboarding:i(),getSites:s(),currentTab:u(),singleImport:m()}})))((function(e){var t=e.getSites,n=e.installModal,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)(lt,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},s&&Object(r.createElement)(z,{data:s}),"starterSites"===a&&(c?Object(r.createElement)(it,{slug:c}):Object(r.createElement)(jt,null)),"library"===a&&Object(r.createElement)(Qe,null),"pageTemplates"===a&&Object(r.createElement)(Qe,{isGeneral:!0})))),n&&Object(r.createElement)(I,null),o&&i&&Object(r.createElement)(ot,null))})),Et=Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getUserStatus;return{onboarding:n(),userStatus:r()}}))((function(e){var t=e.onboarding,n=e.userStatus,a=O()(["content-wrap","starter-sites",{"is-onboarding":t,"is-free":!n}]);return Object(r.createElement)("div",{className:"tiob-wrap"},Object(r.createElement)("div",{className:a},Object(r.createElement)("div",{className:"container content"},Object(r.createElement)("div",{className:"main"},Object(r.createElement)("div",{className:"tab-content columns starter-sites"},Object(r.createElement)(yt,null))))))}));Object(h.registerStore)("neve-onboarding",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REFRESH_SITES":var n=t.payload.sites;return i(i({},e),{},{sites:n});case"SET_CURRENT_EDITOR":var r=t.payload.editor;return localStorage.setItem("neve-onboarding-editor",r),i(i({},e),{},{editor:r});case"SET_CURRENT_CATEGORY":var a=t.payload.category;return i(i({},e),{},{category:a});case"SET_FOCUSED_SITE":var c=t.payload.siteData;return i(i({},e),{},{currentSite:c});case"SET_PREVIEW_STATUS":var o=t.payload.previewStatus;return i(i({},e),{},{previewStatus:o});case"SET_IMPORT_MODAL_STATUS":var s=t.payload.importModalStatus;return i(i({},e),{},{importModalStatus:s});case"SET_INSTALL_MODAL_STATUS":var l=t.payload.installModalStatus;return i(i({},e),{},{installModalStatus:l});case"SET_ONBOARDING":var u=t.payload.status;return i(i({},e),{},{isOnboarding:u});case"SET_THEME_ACTIONS":var m=t.payload.themeActions;return i(i({},e),{},{themeAction:m});case"SET_CURRENT_TAB":var p=t.payload.currentTab;return i(i({},e),{},{singleTemplateImport:null,currentTab:p});case"SET_FETCHING":var b=t.payload.fetching;return i(i({},e),{},{fetching:b});case"SET_SINGLE_TEMPLATE_IMPORT":var f=t.payload.slug;return i(i({},e),{},{singleTemplateImport:f});case"SET_TEMPLATE_MODAL":var h=t.payload.data;return i(i({},e),{},{templateModal:h});case"SET_SEARCH_QUERY":var g=t.payload.query;return i(i({},e),{},{searchQuery:g})}return e},actions:b,selectors:f}),Object(r.render)(Object(r.createElement)(Et,null),document.getElementById("tpc-app"))}]);
7
  /* translators: %s the name of the template */
8
  Object(_.__)("The %s template will be imported as a page into your site. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"),t[0].template_name):Object(_.__)("All the templates that are included in this starter site, will be imported as pages. This import will install & activate the page builder plugin if not already installed.","templates-patterns-collection"))))),Object(r.createElement)("div",{className:"modal-footer"},!m&&Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,disabled:k,onClick:F},Object(_.__)("I want to import the entire site","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",disabled:k,onClick:z},k?Object(_.__)("Importing")+"...":A?Object(_.__)("Import"):Object(_.__)("Import All Pages"))))}),null))})),Ge=function(){return Object(r.createElement)(G.SVG,{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ob-logo"},Object(r.createElement)(G.Path,{d:"M95.0264 100H4.97356C2.22797 100 0 97.772 0 95.0264V4.97356C0 2.22797 2.22797 0 4.97356 0H95.0264C97.772 0 100 2.22797 100 4.97356V95.0264C100 97.772 97.772 100 95.0264 100Z",fill:"#0366D6"}),Object(r.createElement)(G.Path,{d:"M82.6941 86.7448V30.8205V18.4653H70.3502H14.4146L26.7584 30.8205H70.3502V74.401L82.6941 86.7448Z",fill:"white"}),Object(r.createElement)(G.Path,{d:"M42.2416 58.9291L42.2528 71.183L53.2352 82.1653L53.1902 47.9806L18.9941 47.9355L29.9765 58.9066L42.2416 58.9291Z",fill:"white"}))};function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qe=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setInstallModalStatus,r=t.setTemplateModal,a=t.setPreviewStatus;return{setPreview:function(e){return a(e)},setInstallModal:function(e){return n(e)},setTemplateModal:r}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentEditor,c=t.getCurrentTab,o=t.getUserStatus;return{templateModal:n(),themeStatus:r().action||!1,editor:a(),currentTab:c(),userStatus:o()}})))((function(e){var t=e.isGeneral,n=e.setPreview,a=e.setInstallModal,o=e.setTemplateModal,i=e.templateModal,s=e.themeStatus,l=e.currentTab,u=e.userStatus,m=Object(r.useState)({gutenberg:[],elementor:[]}),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)("gutenberg"),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)([]),w=y()(j,2),k=w[0],N=w[1],T=Object(r.useState)(t),x=y()(T,2),M=x[0],P=x[1],D=Object(r.useState)(""),I=y()(D,2),L=I[0],A=I[1],B=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),R=y()(B,2),F=R[0],z=R[1],U=Object(r.useState)({gutenberg:0,elementor:0,beaver:0}),$=y()(U,2),G=$[0],Y=$[1],J=Object(r.useState)(!1),K=y()(J,2),Z=K[0],X=K[1],ee=Object(r.useState)(!1),te=y()(ee,2),ne=te[0],re=te[1],ae=Object(r.useState)(!1),ce=y()(ae,2),oe=ce[0],se=ce[1],le=Object(r.useState)(""),ue=y()(le,2),me=ue[0],pe=ue[1],de=Object(r.useState)({templates:{order:"DESC",orderby:"date"},library:{order:"DESC",orderby:"date"}}),be=y()(de,2),fe=be[0],he=be[1];Object(r.useEffect)((function(){X(!0),A(""),z({gutenberg:0,elementor:0,beaver:0}),Y({gutenberg:0,elementor:0,beaver:0}),Oe()}),[t,g]);var ge={gutenberg:{label:Object(_.__)("Gutenberg"),icon:"gutenberg.jpg"},elementor:{label:Object(_.__)("Elementor"),icon:"elementor.jpg"},beaver:{label:Object(_.__)("Beaver"),icon:"beaver.jpg"}},Oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=qe({page:F[g],per_page:12,type:g},e);t&&(n.template_site_slug="general",n.premade=!0),L&&(n.search=L),ie(t,n).then((function(e){b(qe(qe({},d),{},c()({},g,e.templates))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}))},ye=function(){var e=C()(S.a.mark((function e(){var n,r,a=arguments;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:F[g]+1,se(!0),z(qe(qe({},F),{},c()({},g,n))),r={page:n,per_page:12,type:g},t&&(r.template_site_slug="general",r.premade=!0),L&&(r.search=L),e.next=8,ie(t,r).then((function(e){b(qe(qe({},d),{},c()({},g,[].concat(V()(d[g]),V()(e.templates))))),Y(qe(qe({},G),{},c()({},g,e.total)))}));case 8:se(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ee=function(e){pe(e),n(!0)},_e=function(e){if(s)return a(!0),!1;N([e]),o(!0)},we=d[g]&&d[g].findIndex((function(e){return e.link===me})),Se=d[g]&&d[g].find((function(e){return me===e.link})),ke=O()("cloud-items",{"is-grid":M||!u&&!t,"is-dummy":!u&&!t}),Ce=function(){return t?fe.templates:fe.library},Ne=function(){var e=C()(S.a.mark((function e(n){var r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:X(!0),r=qe({search:L,type:g},n),t&&(r.template_site_slug="general",r.premade=!0),ie(t,r).then((function(e){b(qe(qe({},d),{},c()({},g,V()(e.templates)))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return u||t?Object(r.createElement)("div",{className:ke},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(ge).map((function(e){return Object(r.createElement)("a",{key:e,href:"#",onClick:function(){v(e),re(!1)},className:O()("tab",{active:g===e})},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:window.tiobDash.assets+"img/"+ge[e].icon,alt:ge[e].label})),Object(r.createElement)("span",{className:"editor"},ge[e].label))}))),Object(r.createElement)(xe,{currentTab:l,isGrid:M,setGrid:P,isSearch:ne,searchQuery:L,setSearchQuery:A,onSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;X(!0),re(!!e);var n=qe({search:e,type:g},Ce());t&&(n.template_site_slug="general",n.premade=!0),ie(t,n).then((function(e){b(qe(qe({},d),{},c()({},g,V()(e.templates)))),Y(qe(qe({},G),{},c()({},g,e.total))),X(!1)}))},sortingOrder:Ce(),setSortingOrder:function(e){return he(qe(qe({},fe),{},t?{templates:e}:{library:e}))},changeOrder:Ne}),Z&&Object(r.createElement)(je,{isGrid:M}),!Z&&(d[g]&&d[g].length>0?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"table"},d[g].map((function(e){return Object(r.createElement)(ve,{sortingOrder:Ce(),onPreview:Ee,userTemplate:!t,key:e.template_id,item:e,loadTemplates:Oe,onImport:function(){return _e(e)},grid:M})}))),Object(r.createElement)(H.a,{onChange:function(e){if(!e)return!1;Number(G[g])>F[g]&&ye()}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})),oe&&Object(r.createElement)("div",{className:"fetching-loader"},Object(r.createElement)(E.Spinner,null))):Object(r.createElement)("div",{className:"empty-information"},Object(r.createElement)("img",{src:window.tiobDash.assets+"/img/layout.jpg",alt:Object(_.__)("No Templates Found")}),Object(r.createElement)("h3",null,Object(_.__)("There are no templates yet")),Object(r.createElement)("p",null,Object(_.__)("You can add a page or post to the cloud by accessing it with the WordPress or Elementor/Beaver editor. Learn more about this in our docs.")),Object(r.createElement)(E.Button,{variant:"secondary",isSecondary:!0,href:"https://docs.themeisle.com/article/1354-neve-template-cloud-library?utm_medium=nevedashboard&utm_source=templatecloud&utm_campaign=neve&utm_content=learnmore",target:"_blank"},Object(_.__)("Learn more")))),me&&Object(r.createElement)(Me,{previewUrl:me,rightButtons:Object(r.createElement)(E.Button,{isPrimary:!0,onClick:function(){return _e(Se)}},Object(_.__)("Import Template")),heading:Se.template_name,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:W,onClick:function(){pe(""),n(!1)}}),d[g].length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?q:Q,onClick:function(){var e=we-1;0===we&&(e=d[g].length-1),pe(d[g][e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:q,onClick:function(){var e=we+1;we===d[g].length-1&&(e=0),pe(d[g][e].link)}})))})),i&&k&&!Z&&k.length>0&&Object(r.createElement)(He,{generalTemplates:!0,isUserTemplate:!t,templatesData:k})):Object(r.createElement)("div",{className:ke},Object(r.createElement)("div",{className:"table"},V()(Array(12)).map((function(e,t){return Object(r.createElement)(ve,{sortingOrder:Ce(),onPreview:Ee,userTemplate:!1,key:t,item:{},grid:!0})}))),Object(r.createElement)("div",{className:"upsell-modal-overlay"},Object(r.createElement)("div",{className:"upsell-modal"},Object(r.createElement)("div",{className:"upsell-modal-content"},Object(r.createElement)("div",{className:"info"},Object(r.createElement)("h3",null,Object(_.__)("Templates Cloud is a PRO Feature")),Object(r.createElement)("p",null,Object(_.__)("Unlock the Templates Cloud features and save your pages or posts in the cloud.")),Object(r.createElement)(E.Button,{variant:"primary",isPrimary:!0,href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=upgradetoprobtn and https://themeisle.com/themes/neve/neve-upgrade-new/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=changeplanbtn",target:"_blank"},Object(_.__)("Upgrade to PRO"))),Object(r.createElement)("div",{className:"icon"},Object(r.createElement)(E.Icon,{icon:Ge}))))))})),Ye=[Object(_.__)("Business","templates-patterns-collection"),Object(_.__)("Ecommerce","templates-patterns-collection"),Object(_.__)("Fashion","templates-patterns-collection"),Object(_.__)("Blogging","templates-patterns-collection"),Object(_.__)("Photography","templates-patterns-collection")],Je={all:Object(_.__)("All Categories"),free:Object(_.__)("Free"),business:Object(_.__)("Business"),portfolio:Object(_.__)("Portfolio"),woocommerce:Object(_.__)("WooCommerce"),blog:Object(_.__)("Blog"),personal:Object(_.__)("Personal"),other:Object(_.__)("Other")},Ke={gutenberg:{icon:"gutenberg.jpg",niceName:"Gutenberg"},elementor:{icon:"elementor.jpg",niceName:"Elementor"}},Ze=(Object(r.createElement)(r.Fragment,null,"Beaver ",Object(r.createElement)("span",{className:"long-name"},"Builder")),Object(r.createElement)(r.Fragment,null,"Thrive ",Object(r.createElement)("span",{className:"long-name"},"Architect")),function(e){var t=e.currentStep,n=e.progress,a=e.willDo,c={cleanup:{label:Object(_.__)("Cleanup previous Import","templates-patterns-collection"),status:n.cleanup,willDo:a.cleanup},plugins:{label:Object(_.__)("Installing Plugins","templates-patterns-collection"),status:n.plugins,willDo:!0},content:{label:Object(_.__)("Importing Content","templates-patterns-collection"),status:n.content,willDo:a.content},customizer:{label:Object(_.__)("Importing Customizer Settings","templates-patterns-collection"),status:n.customizer,willDo:a.customizer},widgets:{label:Object(_.__)("Importing Widgets","templates-patterns-collection"),status:n.widgets,willDo:a.widgets}};return Object(r.createElement)("ul",{className:"stepper"},Object.keys(c).map((function(e,n){var a=c[e],o=a.label,i=a.status;if(!a.willDo)return null;var s=O()(["icon",{loading:t===e,warning:t===e,success:"done"===i,error:"error"===i,skip:"skip"===i}]),l="clock";return t===e&&(l="update"),"done"===i&&(l="yes"),"error"===i&&(l="no-alt"),Object(r.createElement)("li",{key:n},Object(r.createElement)("span",{className:s},Object(r.createElement)(E.Dashicon,{icon:l,className:t===e?"loading":""})),Object(r.createElement)("span",null,o))})))}),Xe=n(19),et=n.n(Xe),tt=function(e){return et()(e),Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},Object(r.createElement)("div",{className:"header"},Object(r.createElement)("span",{className:"title is-loading",style:{height:35,marginBottom:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20}}),Object(r.createElement)("p",{className:"description is-loading",style:{height:20,marginBottom:20}})),Object(r.createElement)("div",{className:"well is-loading"},Object(r.createElement)("span",{className:"title is-loading",style:{height:20}}),Object(r.createElement)("ol",null,Object(r.createElement)("li",null),Object(r.createElement)("li",null),Object(r.createElement)("li",null))),Object(r.createElement)("div",{className:"modal-toggles components-panel"},[1,2].map((function(e){return Object(r.createElement)("div",{key:e,className:"components-panel__body options general is-opened"},Object(r.createElement)("span",{className:"title is-loading"}),Object(r.createElement)("ul",null,[1,2,3].map((function(e){return Object(r.createElement)("li",{className:"option-row",key:e},Object(r.createElement)("div",{className:"mock-icon is-loading"}),Object(r.createElement)("span",{className:"is-loading"}),Object(r.createElement)("div",{className:"toggle is-loading"}))}))))})))),Object(r.createElement)("div",{className:"modal-footer"},Object(r.createElement)("span",{className:"link is-loading"}),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import is-loading"})))},nt=Object(r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(G.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),rt=function(e){var t=e.children,n=e.className,a=O()([n,"tiob-tooltip-wrap"]);return Object(r.createElement)("div",{className:a},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault()},className:"tiob-tooltip-toggle",icon:nt,isLink:!0,isSmall:!0}),Object(r.createElement)("div",{className:"tiob-tooltip-content"},t))};function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentSite;return{editor:n(),siteData:r()}})),Object(h.withDispatch)((function(e,t){var n=t.siteData,r=e("neve-onboarding"),a=r.setTemplateModal,c=r.setSingleTemplateImport,o=r.setImportModalStatus;return{setModal:function(e){return o(e)},runTemplateImport:function(){c(n.slug),a(!0),o(!1)}}})))((function(e){var t=e.setModal,n=e.editor,a=e.siteData,o=e.runTemplateImport,i=Object(r.useState)({content:!0,customizer:!0,widgets:!0,cleanup:!1}),s=y()(i,2),l=s[0],u=s[1],m=Object(r.useState)(!1),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!1),h=y()(f,2),g=h[0],v=h[1],j=Object(r.useState)(!1),w=y()(j,2),S=w[0],k=w[1],C=Object(r.useState)(!1),x=y()(C,2),M=x[0],P=x[1],D=Object(r.useState)(!1),I=y()(D,2),B=I[0],z=I[1],U=Object(r.useState)(null),V=y()(U,2),$=V[0],H=V[1],G=Object(r.useState)(null),W=y()(G,2),q=W[0],Q=W[1],Y=Object(r.useState)(!1),J=y()(Y,2),K=J[0],Z=J[1],X=Object(r.useState)(null),ee=y()(X,2),te=ee[0],ne=ee[1],re=Object(r.useState)(null),ae=y()(re,2),ce=ae[0],oe=ae[1],ie=Object(r.useState)(null),se=y()(ie,2),le=se[0],ue=se[1],me=Object(r.useState)(!0),pe=y()(me,2),de=pe[0],be=pe[1],fe=Object(r.useState)(!0),he=y()(fe,2),ge=he[0],Oe=he[1],ve=Object(r.useState)(!0),je=y()(ve,2),ye=je[0],Ee=je[1],_e=tiobDash,we=_e.license,Se=_e.cleanupAllowed,ke=Object(r.useState)(Se),Ce=y()(ke,2),Ne=Ce[0],Te=Ce[1];function xe(){if(!te)return console.log("[S] Plugins."),Me(),!1;Q("plugins"),console.log("[P] Plugins."),A(te).then((function(e){if(!e.success)return Le(e,"plugins"),!1;console.log("[D] Plugins."),v("done"),Me()})).catch((function(e){return Le(e,"plugins")}))}function Me(){if(!l.content)return console.log("[S] Content."),Pe(),!1;var e;Q("content"),console.log("[P] Content."),(e={contentFile:le.content_file,source:"remote",frontPage:le.front_page,shopPages:le.shop_pages,demoSlug:le.slug,editor:n},N(L.root+"/import_content",e)).then((function(e){if(!e.success)return Le(e,"content"),!1;console.log("[D] Content."),e.frontpage_id&&H(e.frontpage_id),k("done"),Pe()})).catch((function(e){return Le(e,"content")}))}function Pe(){if(!l.customizer)return console.log("[S] Customizer."),De(),!1;var e;Q("customizer"),console.log("[P] Customizer."),(e={source_url:le.url,theme_mods:le.theme_mods,wp_options:le.wp_options},N(L.root+"/import_theme_mods",e)).then((function(e){if(!e.success)return Le(e,"customizer"),!1;console.log("[D] Customizer."),P("done"),De()})).catch((function(e){return Le(e,"customizer")}))}function De(){if(!l.widgets)return console.log("[S] Widgets."),Ie(),!1;var e;Q("widgets"),console.log("[P] Widgets."),(e=le.widgets,N(L.root+"/import_widgets",e)).then((function(e){if(!e.success)return Le(e,"widgets"),!1;console.log("[D] Widgets."),z("done"),Ie()})).catch((function(e){return Le(e,"widgets")}))}function Ie(){Q("done"),Te("yes"),tiobDash.cleanupAllowed="yes",Z(!1)}function Le(e,t){Z(!1),Q(null),"cleanup"===t&&v("skip"),"plugins"===t&&k("skip"),["content","plugins"].includes(t)&&P("skip"),["content","plugins","customizer"].includes(t)&&z("skip");var n={cleanup:Object(_.__)("Something went wrong while cleaning the previous import.","templates-patterns-collection"),plugins:Object(_.__)("Something went wrong while installing the necessary plugins.","templates-patterns-collection"),content:Object(_.__)("Something went wrong while importing the website content.","templates-patterns-collection"),customizer:Object(_.__)("Something went wrong while updating the customizer settings.","templates-patterns-collection"),widgets:Object(_.__)("Something went wrong while importing the widgets.","templates-patterns-collection")};switch(t){case"cleanup":b("error");break;case"plugins":v("error");break;case"content":k("error");break;case"customizer":P("error");break;case"widgets":z("error")}oe(e.data?{message:n[t],code:e.data}:{message:n[t]})}Object(r.useEffect)((function(){var e=a.remote_url||a.url,t=new URL("".concat(function(e){return e.replace(/\/$/,"")}(e)+"/","wp-json/ti-demo-data/data"));t.searchParams.append("license",we?we.key:"free"),T(t,!0,!1).then((function(e){e.ok||(oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_response"}),be(!1)),e.json().then((function(e){ue(ct(ct({},e),a));var t=ct({},e.mandatory_plugins||{}),n=ct({},e.recommended_plugins||{}),r=e.default_off_recommended_plugins||[];Object.keys(t).forEach((function(e){t[e]=!0})),Object.keys(n).forEach((function(e){n[e]=!r.includes(e)})),ne(ct(ct({},n),t)),be(!1)}))})).catch((function(){oe({message:Object(_.__)("Something went wrong while loading the site data. Please refresh the page and try again.","templates-patterns-collection"),code:"ti__ob_failed_fetch_catch"}),be(!1)}))}),[]);var Ae=function(){if(K)return!1;t(!1)},Be=!a.external_plugins||a.external_plugins.every((function(e){return!0===e.active})),Re=Object.keys(l).every((function(e){return!1===l[e]})),Fe={elementor:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=elementor"),brizy:"".concat(tiobDash.onboarding.homeUrl,"/?brizy-edit"),"beaver builder":"".concat(tiobDash.onboarding.homeUrl,"/?fl_builder"),"thrive architect":"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=architect&tve=true"),"divi builder":"".concat(tiobDash.onboarding.homeUrl,"/?et_fb=1&PageSpeed=off"),gutenberg:"".concat(tiobDash.onboarding.homeUrl,"/wp-admin/post.php?post=").concat($,"&action=edit")}[n];return Object(r.createElement)(E.Modal,{className:O()(["ob-import-modal",{fetching:de}]),onRequestClose:Ae,shouldCloseOnClickOutside:!K&&!de,isDismissible:!K&&!de},de?Object(r.createElement)(tt,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"modal-body"},K||"done"===q||ce?Object(r.createElement)(r.Fragment,null,ce&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(F,{message:ce.message||null,code:ce.code||null}),Object(r.createElement)("hr",null)),null!==q&&Object(r.createElement)(Ze,{progress:{cleanup:d,plugins:g,content:S,customizer:M,widgets:B},currentStep:q,willDo:l}),"done"===q&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("hr",null),Object(r.createElement)("p",{className:"import-result"},Object(_.__)("Content was successfully imported. Enjoy your new site!","templates-patterns-collection")),Object(r.createElement)("hr",null))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"header"},Object(r.createElement)("h1",null,Object(_.sprintf)(
9
  /* translators: name of starter site */
10
+ Object(_.__)("Import %s as a complete site","templates-patterns-collection"),le.title)),Object(r.createElement)("p",{className:"description"},Object(_.__)("Import the entire site including customizer options, pages, content and plugins.","templates-patterns-collection")))}),null),Object(r.createElement)((function(){return Object(r.createElement)(R,{data:le,externalInstalled:Be})}),null),Object(r.createElement)(E.Panel,{className:"modal-toggles"},Object(r.createElement)((function(){var e={content:{title:Object(_.__)("Content","templates-patterns-collection"),icon:"admin-post",tooltip:Object(_.__)("We recommend you backup your website content before attempting a full site import.","templates-patterns-collection")},customizer:{title:Object(_.__)("Customizer","templates-patterns-collection"),icon:"admin-customizer"},widgets:{title:Object(_.__)("Widgets","templates-patterns-collection"),icon:"admin-generic",tooltip:Object(_.__)("Widgets will be moved to the Inactive Widgets sidebar and can be retrieved from there.","templates-patterns-collection")}};return"yes"===Ne&&(e=ct({cleanup:{icon:"trash",title:Object(_.__)("Cleanup previous import","templates-patterns-collection"),tooltip:Object(_.__)("This will remove any plugins, images, customizer options, widgets posts and pages added by the previous demo import","templates-patterns-collection")}},e)),Object(r.createElement)(E.PanelBody,{onToggle:function(){Ee(!ye)},opened:ye,className:"options general",title:Object(_.__)("Import settings","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:l[t]}),o=e[t],i=o.icon,s=o.title,m=o.tooltip;return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:i}),Object(r.createElement)("span",null,s),m&&Object(r.createElement)(rt,null,m),Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:l[t],onChange:function(){u(ct(ct({},l),{},c()({},t,!l[t])))}})))})))}),null),Object(r.createElement)((function(){if(de)return null;var e=ct(ct({},le.recommended_plugins||{}),le.mandatory_plugins||{});return Object(r.createElement)(E.PanelBody,{onToggle:function(){Oe(!ge)},opened:ge,className:"options plugins",title:Object(_.__)("Plugins","templates-patterns-collection")},Object.keys(e).map((function(t,n){var a=O()("option-row",{active:te[t]});return Object(r.createElement)(E.PanelRow,{className:a,key:n},Object(r.createElement)(E.Icon,{icon:"admin-plugins"}),Object(r.createElement)("span",{dangerouslySetInnerHTML:{__html:e[t]}}),t in le.recommended_plugins&&Object(r.createElement)("div",{className:"toggle-wrapper"},Object(r.createElement)(E.ToggleControl,{checked:te[t],onChange:function(){ne(ct(ct({},te),{},c()({},t,!te[t])))}})))})))}),null)))),!K&&Object(r.createElement)("div",{className:"modal-footer"},"done"!==q?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{className:"import-templates",isLink:!0,onClick:o},Object(_.__)("I want to import just the templates","templates-patterns-collection")),!ce&&Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,disabled:Re||!Be,onClick:function(){Z(!0),function(){if(console.clear(),!l.cleanup)return console.log("[S] Cleanup."),xe(),!1;var e;Q("cleanup"),console.log("[P] Cleanup."),(e={},N(L.root+"/cleanup",e)).then((function(e){if(!e.success)return Le(e,"cleanup"),!1;console.log("[D] Cleanup."),b("done"),xe()})).catch((function(e){return Le(e,"cleanup")}))}()}},Object(_.__)("Import entire site","templates-patterns-collection"))):Object(r.createElement)("div",{className:"import-done-actions"},Object(r.createElement)(E.Button,{isLink:!0,className:"close",onClick:Ae},Object(_.__)("Back to Sites Library","templates-patterns-collection")),Object(r.createElement)(E.Button,{isSecondary:!0,href:tiobDash.onboarding.homeUrl},Object(_.__)("View Website","templates-patterns-collection")),Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",href:Fe},Object(_.__)("Add your own content","templates-patterns-collection"))))))})),it=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setSingleTemplateImport,r=t.setImportModalStatus,a=t.setInstallModalStatus;return{cancel:function(){n(null)},setModal:function(e){return r(e)},setInstallModal:function(e){return a(e)},setTemplateModal:t.setTemplateModal}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getTemplateModal,r=t.getThemeAction,a=t.getCurrentSite,c=t.getCurrentEditor;return{templateModal:n(),themeStatus:r().action||!1,site:a(),editor:c()}})))((function(e){var t=e.slug,n=e.cancel,a=e.setModal,c=e.setInstallModal,o=e.themeStatus,i=e.site,s=e.editor,l=e.setTemplateModal,u=e.templateModal,m=Object(r.useState)([]),p=y()(m,2),d=p[0],b=p[1],f=Object(r.useState)(!0),h=y()(f,2),g=h[0],O=h[1],v=Object(r.useState)(""),j=y()(v,2),w=j[0],S=j[1],k=Object(r.useState)([]),C=y()(k,2),N=C[0],T=C[1],x=i.title,M=i.upsell,P=i.utmOutboundLink;Object(r.useEffect)((function(){D()}),[]);var D=function(){ie(!0,{per_page:100,template_site_slug:t,premade:!0,type: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)(E.Button,{isTertiary:!0,onClick:n},Object(r.createElement)(E.Icon,{icon:Q}),Object(_.__)("Back to Starter Sites"))),Object(r.createElement)("div",{className:"header"},Object(r.createElement)("div",{className:"text"},Object(r.createElement)("h1",null,x||"",M&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Icon,{icon:"lock"}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))),Object(r.createElement)("p",{className:"description"},Object(_.__)("You can import individual pages or bulk-import all of them."))),Object(r.createElement)("div",{className:"actions"},!M&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(e){if(e.preventDefault(),o)return c(!0),!1;T(d),l(!0)}},Object(_.__)("Import All Pages"))),M&&Object(r.createElement)(E.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade"))))),Object(r.createElement)((function(){return g?Object(r.createElement)(E.Spinner,null):d.length<1?Object(_.__)("No templates for this starter site."):Object(r.createElement)("div",{className:"cloud-items is-grid"},Object(r.createElement)("div",{className:"table"},d.map((function(e){return Object(r.createElement)(ve,{upsell:M,onPreview:I,userTemplate:!1,key:e.template_id,item:e,loadTemplates:D,onImport:function(){return L(e)},grid:!0})}))))}),null),w&&Object(r.createElement)(Me,{heading:R.template_name||null,previewUrl:w,leftButtons:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:W,onClick:function(){return S("")},label:Object(_.__)("Close","templates-patterns-collection")}),d.length>1&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?q:Q,onClick:function(){var e=B-1;0===B&&(e=d.length-1),S(d[e].link)}}),Object(r.createElement)(E.Button,{icon:Object(_.isRTL)()?Q:q,onClick:function(){var e=B+1;B===d.length-1&&(e=0),S(d[e].link)}}))),rightButtons:Object(r.createElement)(r.Fragment,null,!M&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(E.Button,{isSecondary:!0,onClick:A},Object(_.__)("Import Starter Site")),Object(r.createElement)(E.Button,{isPrimary:!0,disabled:d.length<1,onClick:function(){return L(R)}},Object(_.__)("Import Page"))),M&&Object(r.createElement)(E.Button,{href:P||tiobDash.upgradeURL,isSecondary:!0},Object(_.__)("Upgrade")))}),u&&N&&!g&&N.length>0&&Object(r.createElement)(He,{templatesData:N}))})),st=function(e){var t=e.setCurrentTab,n=e.currentTab,a=e.isFetching,c={starterSites:Object(_.__)("Starter Sites","templates-patterns-collection"),pageTemplates:Object(_.__)("Page Templates","templates-patterns-collection"),library:Object(_.__)("My Library","templates-patterns-collection")},o=Object(r.useState)(!1),i=y()(o,2),s=i[0],l=i[1],u=function(){var e=function(e){var t=window.location.hash;return"string"!=typeof window.location.hash?null:(t=t.substring(1),Object.keys(e).includes(t)?t:null)}(c);if(null!==e){var n=document.getElementById("menu-appearance"),r=n.querySelector('a[href="themes.php?page=tiob-starter-sites#library"]'),a=n.querySelector('a[href="themes.php?page=tiob-starter-sites"]');if(r&&a){var o=r.parentElement,i=a.parentElement;n.querySelector(".current").classList.remove("current"),o.classList.remove("current"),"library"===e?o.classList.add("current"):i.classList.add("current")}t(e)}};return Object(r.useEffect)((function(){u(),window.addEventListener("hashchange",u)}),[]),Object(r.createElement)("div",{className:"header-nav"},Object.keys(c).map((function(e){return Object(r.createElement)(E.Button,{href:"#"+e,key:e,isTertiary:!0,isPressed:e===n,onClick:function(n){var r;n.preventDefault(),t(e),r=e,window.location.hash=r}},c[e])})),"starterSites"!==n&&Object(r.createElement)(E.Button,{icon:pe,onClick:function(){l(!0),localStorage.setItem("tpcCacheBuster",ae());var e=n;t(null),setTimeout((function(){t(e),l(!1)}),100)},label:Object(_.__)("Re-sync Library"),className:O()("is-sync",{"is-loading":s}),disabled:a||s,"data-content":Object(_.__)("Sync")}))},lt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState;return{cancelOnboarding:function(){n(!1)},setCurrentTab:t.setCurrentTab,setFetching:t.setFetching}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getCurrentTab,a=t.getFetching;return{isOnboarding:n(),currentTab:r(),isFetching:a()}})))((function(e){var t=e.isOnboarding,n=e.cancelOnboarding,a=e.setCurrentTab,c=e.currentTab;return Object(r.createElement)("div",{className:"ob-head"},!t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"header-container"},Object(r.createElement)("h2",null,!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:Ge}),Object(r.createElement)("span",null,Object(_.__)("Templates Cloud","templates-patterns-collection"))),Object(r.createElement)(st,{setCurrentTab:a,currentTab:c}))),t&&Object(r.createElement)(E.Button,{className:"close-onboarding",isLink:!0,icon:"no-alt",onClick:n}))})),ut=n(20),mt=n.n(ut),pt=Object(v.compose)(Object(h.withSelect)((function(e){return{themeStatus:(0,e("neve-onboarding").getThemeAction)().action||!1}})),Object(h.withDispatch)((function(e,t){var n=t.data,r=n.slug,a=e("neve-onboarding"),c=a.setCurrentSite,o=a.setPreviewStatus,i=a.setImportModalStatus,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.screenshot,m=t.title,p=t.has_templates,d=t.isNew,b=Object(r.useState)(""),f=y()(b,2),h=f[0],g=f[1],v=O()("card starter-site-card",{"has-templates":p});return Object(r.createElement)("div",{onMouseEnter:function(){g("visible")},onMouseLeave:function(){g("")},className:v},d&&Object(r.createElement)("span",{className:"new-badge"},Object(_.__)("New","templates-patterns-collection").toUpperCase()),Object(r.createElement)("div",{className:"top"},Object(r.createElement)("div",{className:"actions "+h},Object(r.createElement)(E.Button,{isSecondary:!0,onClick:function(e){e.preventDefault(),n(),a(!0)}},Object(_.__)("Preview","templates-patterns-collection")),!l&&Object(r.createElement)(E.Button,{isPrimary:!0,className:"import",onClick:function(e){if(e.preventDefault(),n(),o)return i(!0),!1;c(!0)}},Object(_.__)("Import","templates-patterns-collection")),!p&&l&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",target:"_blank",href:"https://themeisle.com/themes/neve/upgrade/?utm_medium=nevedashboard&utm_source=neve&utm_campaign=templatecloud&utm_content=unlockprobtn"},Object(_.__)("Unlock access with Business plan","templates-patterns-collection")),p&&Object(r.createElement)(E.Button,{isLink:!0,className:"templates",onClick:function(e){e.preventDefault(),n(),s()}},Object(_.__)("View Pages","templates-patterns-collection"))),u&&Object(r.createElement)("div",{className:"image",style:{backgroundImage:'url("'.concat(u,'")')}})),Object(r.createElement)("div",{className:"bottom"},Object(r.createElement)("p",{className:"title"},m),l&&Object(r.createElement)("span",{className:"pro-badge"},Object(r.createElement)(E.Dashicon,{icon:"lock",size:15}),Object(r.createElement)("span",null,Object(_.__)("Premium","templates-patterns-collection")))))})),dt=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentSite,r=t.getThemeAction;return{siteData:n(),themeStatus:r().action||!1}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentSite,r=t.setPreviewStatus,a=t.setImportModalStatus,c=t.setInstallModalStatus;return{setSite:function(e){return n(e)},setPreview:function(e){return r(e)},setModal:function(e){return a(e)},setInstallModal:function(e){return c(e)}}})))((function(e){var t=e.next,n=e.prev,a=e.siteData,c=e.setSite,o=e.setPreview,i=e.setModal,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)(E.Dashicon,{icon:"update",size:50}))),Object(r.createElement)("div",{className:"bottom-bar"},Object(r.createElement)("div",{className:"navigator"},Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),o(!1),c(null)},className:"close",label:Object(_.__)("Close","templates-patterns-collection"),icon:W}),n&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(n)},className:"prev",label:Object(_.__)("Previous","templates-patterns-collection"),icon:Object(_.isRTL)()?q:Q}),t&&Object(r.createElement)(E.Button,{onClick:function(e){e.preventDefault(),c(t)},className:"next",label:Object(_.__)("Next","templates-patterns-collection"),icon:Object(_.isRTL)()?Q:q})),Object(r.createElement)("div",{className:"actions"},a.upsell?Object(r.createElement)(E.Button,{className:"upgrade",isPrimary:!0,href:a.utmOutboundLink||tiobDash.upgradeURL},Object(_.__)("Upgrade and Import","templates-patterns-collection")):Object(r.createElement)(E.Button,{className:"import",isPrimary:!0,onClick:function(e){if(e.preventDefault(),s)return l(!0),!1;i(!0)}},Object(_.__)("Import","templates-patterns-collection")))))})),bt=function(e){var t=e.editor,n=e.data,a=n.text,c=n.cta,o=n.url;return Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"notification"},Object(r.createElement)("p",null,a),o&&c&&Object(r.createElement)(E.Button,{target:"_blank",isSecondary:!0,href:o.replace("<builder_name>",t).replace(" ","")},c))}),null)},ft=Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentCategory,r=t.getCurrentEditor,a=t.getSearchQuery;return{editor:r(),category:n(),query:a()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setCurrentCategory,r=t.setCurrentEditor,a=t.setSearchQuery;return{setCurrentCategory:function(e){return n(e)},setCurrentEditor:function(e){return r(e)},onSearch:function(e){return a(e)}}})))((function(e){var t=e.count,n=(e.categories,e.editors),a=e.onSearch,c=(e.category,e.editor),o=e.onlyProSites,i=(e.setCurrentCategory,e.setCurrentEditor),s=e.query,l=e.className,u=e.showCount,m=void 0!==u&&u,p=Object(r.useState)(!1),d=y()(p,2),b=d[0],f=d[1],h=function(){return f(!b)},g=O()(l,"header-form");return Object(r.createElement)("div",{className:g},Object(r.createElement)("div",{className:"search"},Object(r.createElement)("img",{src:tiobDash.assets+"/img/search.svg",alt:Object(_.__)("Search Icon")}),Object(r.createElement)("input",{onChange:function(e){a(e.target.value)},type:"search",value:s,placeholder:Object(_.__)("Search for a starter site","templates-patterns-collection")+"..."}),!1,Object(r.createElement)((function(){return Object(r.createElement)("div",{className:"ob-dropdown categories-selector"},Object(r.createElement)(E.Button,{onClick:h,className:"select ob-dropdown"},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[c].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(c)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px",marginLeft:"0"}}),n[c].niceName),Object(r.createElement)(E.Dashicon,{size:14,icon:b?"arrow-up-alt2":"arrow-down-alt2"}),b&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:h,noArrow:!0},b&&Object(r.createElement)("ul",{className:"options"},Object.keys(n).map((function(e,a){return e===c?null:Object(r.createElement)("li",{key:a},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),i(e),f(!1)}},Object(r.createElement)("span",{className:"label-editor"},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+n[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),o.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),n[e].niceName),m&&Object(r.createElement)("span",{className:"count"},t[e])))}))))))}),null)))})),ht=(Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.editor,c=e.setCurrentEditor,o=e.sites,i=e.isSmall,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=Object.keys(o),d=function(){return m(!u)},b=O()(["ob-dropdown","editor-selector",{small:i}]);return Object(r.createElement)("div",{className:b},Object(r.createElement)(E.Button,{onClick:d,className:"select ob-dropdown"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[a].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),!i&&Object(r.createElement)("span",null,t[a].niceName),Object(r.createElement)("span",{className:"count"},n[a]),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:d,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},p.map((function(e,o){return e===a?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")}),Object(r.createElement)("span",null,t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),Object(v.compose)(Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getSites;return{editor:n(),sites:r().sites}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentEditor;return{setCurrentEditor:function(e){return t(e)}}})))((function(e){var t=e.EDITOR_MAP,n=e.count,a=e.onlyProSites,c=e.editor,o=e.setCurrentEditor,i=e.sites,s=Object.keys(i);return Object(r.createElement)("div",{className:"editor-tabs"},s.map((function(e,i){var s=O()(["tab",e,{active:e===c}]);return Object(r.createElement)("a",{key:i,href:"#",className:s,onClick:function(t){t.preventDefault(),o(e)}},Object(r.createElement)("span",{className:"icon-wrap"},Object(r.createElement)("img",{className:"editor-icon",src:tiobDash.assets+"img/"+t[e].icon,alt:Object(_.__)("Builder Logo","templates-patterns-collection")})),Object(r.createElement)("span",{className:"editor"},a.includes(e)&&Object(r.createElement)(E.Dashicon,{icon:"lock",style:{fontSize:"16px",width:"16px",height:"16px"}}),t[e].niceName),Object(r.createElement)("span",{className:"count"},n[e]))})))})),Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=e.showCount,i=void 0!==o&&o;return Object(r.createElement)("div",{className:"editor-tabs"},Object.keys(t).map((function(e,o){if(1>n[e])return null;var s=O()(["tab",e,{active:e===a}]);return Object(r.createElement)("a",{key:o,href:"#",className:s,onClick:function(t){t.preventDefault(),c(e)}},Object(r.createElement)("span",{className:"editor"},t[e]),i&&Object(r.createElement)("span",{className:"count"},n[e]))})))}))),gt=Object(v.compose)(Object(h.withSelect)((function(e){return{category:(0,e("neve-onboarding").getCurrentCategory)()}})),Object(h.withDispatch)((function(e){var t=e("neve-onboarding").setCurrentCategory;return{setCurrentCategory:function(e){return t(e)}}})))((function(e){var t=e.categories,n=e.count,a=e.category,c=e.setCurrentCategory,o=e.showCount,i=void 0!==o&&o,s=Object(r.useState)(!1),l=y()(s,2),u=l[0],m=l[1],p=function(){return m(!u)},d=O()(["ob-dropdown","editor-selector",{small:!0}]);return Object(r.createElement)("div",{className:d},Object(r.createElement)(E.Button,{onClick:p,className:"select ob-dropdown"},Object(r.createElement)("span",null,t[a]),Object(r.createElement)("span",{className:"count"},i?n[a]:""),Object(r.createElement)(E.Dashicon,{size:14,icon:u?"arrow-up-alt2":"arrow-down-alt2"}),u&&Object(r.createElement)(E.Popover,{position:"bottom center",onClose:p,noArrow:!0},u&&Object(r.createElement)("ul",{className:"options"},Object.keys(t).map((function(e,o){return e===a||1>n[e]?null:Object(r.createElement)("li",{key:o},Object(r.createElement)("a",{href:"#",onClick:function(t){t.preventDefault(),c(e),m(!1)}},Object(r.createElement)("span",null,t[e]),i&&Object(r.createElement)("span",{className:"count"},n[e])))}))))))})),Ot=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getOnboardingStatus,c=t.getSites;return{editor:n(),category:r(),isOnboarding:a(),getSites:c()}})))((function(e){var t,n=e.filterByCategory,a=e.filterBySearch,c=e.getSitesForBuilder,o=e.isOnboarding,i=e.getSites,s=e.category,l=e.editor,u=Object(r.useState)(!1),m=y()(u,2),p=m[0],d=m[1],b=i.sites,f=void 0===b?{}:b,h=i.migration,g={top:p?0:"-100%"},O=Object.keys(f),v=O.filter((function(e){return Object.keys(f[e]).filter((function(t){return!0===f[e][t].upsell})).length===Object.keys(f[e]).length})),j=(t={builders:{},categories:{}},O.forEach((function(e){var r=c(e);r=n(r,s),r=a(r),t.builders[e]=r?r.length:0})),Object.keys(Je).forEach((function(e){var r=c(l);r=n(r,e),r=a(r),t.categories[e]=r?r.length:0})),t),_=50<=c(l).length;return Object(r.createElement)(r.Fragment,null,!o&&!h&&Object(r.createElement)("div",{className:"sticky-nav",style:g},Object(r.createElement)("div",{className:"container sticky-nav-content"},!tiobDash.brandedTheme&&Object(r.createElement)(E.Icon,{icon:Ge,size:32}),Object(r.createElement)(ft,{className:"in-sticky",count:j.builders,categories:Je,editors:Ke,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(gt,{count:j.categories,categories:Je,showCount:_}))),Object(r.createElement)(H.a,{onChange:function(e){d(!e)}},Object(r.createElement)("div",null,!o&&Object(r.createElement)("p",{className:"instructions"},tiobDash.strings.starterSitesTabDescription),!1,Object(r.createElement)(gt,{count:j.categories,categories:Je,showCount:_}),Object(r.createElement)(ft,{count:j.builders,categories:Je,editors:Ke,onlyProSites:v,showCount:_}),!1,Object(r.createElement)(ht,{categories:Je,count:j.categories,showCount:_}),!tiobDash.isValidLicense&&Object(r.createElement)(bt,{data:tiobDash.upsellNotifications.upsell_1,editor:l}))))})),vt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab,setSearchQuery:t.setSearchQuery}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,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]=V()(Object.values(n))})),e},f=function(e,t){return"free"===t?e.filter((function(e){return!e.upsell})):"all"!==t?e.filter((function(e){return e.keywords.includes(t)})):e},h=function(e){return m?new mt.a(e,{includeScore:!0,keys:["title","slug","keywords"]}).search(m).map((function(e){return e.item})):e},g=function(){return Object.keys(d)},O=function(){var e=b()[c];return e=h(e),f(e,n)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null===i)return null;var t=b()[c],n=t.indexOf(i);return-1===n||1===t.length?null:e&&0===n?t[t.length-1]:e||n!==t.length-1?t[e?n-1:n+1]:t[0]};return 1>d.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,Object(_.__)("Starter sites could not be loaded. Please refresh and try again.","templates-patterns-collection"),s&&Object(r.createElement)(E.Button,{style:{display:"block",margin:"20px auto"},isPrimary:!0,onClick:l},Object(_.__)("Close","templates-patterns-collection")))):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ot,{getSitesForBuilder:function(e){return b()[e]},filterBySearch:h,filterByCategory:f}),0===O().length&&Object(r.createElement)("div",{className:"no-results"},Object(r.createElement)("p",null,Object(_.__)("No results found.","templates-patterns-collection")," ",Object(_.__)("You can try a different search or use one of the categories below.","templates-patterns-collection")),Object(r.createElement)("div",{className:"tags"},Ye.map((function(e,t){return Object(r.createElement)(E.Button,{key:t,isPrimary:!0,className:"tag",onClick:function(t){t.preventDefault(),u(e),a()}},e)})))),Object(r.createElement)((function(){var e=Object(r.useState)(9),t=y()(e,2),n=t[0],a=t[1],c=O();return Object(r.createElement)("div",{className:"ob-sites is-grid"},c.slice(0,n).map((function(e,t){return Object(r.createElement)(pt,{key:t,data:e})})),Object(r.createElement)(H.a,{onChange:function(e){if(!e)return!1;a(n+9)}},Object(r.createElement)("span",{style:{height:10,width:10,display:"block"}})))}),null),o&&i&&Object(r.createElement)(dt,{next:v(),prev:v(!0)}))})),jt=Object(v.compose)(Object(h.withDispatch)((function(e){var t=e("neve-onboarding"),n=t.setOnboardingState,r=t.setCurrentCategory;return{cancelOnboarding:function(){n(!1)},resetCategory:function(){r("all")},setCurrentTab:t.setCurrentTab}})),Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getCurrentEditor,r=t.getCurrentCategory,a=t.getPreviewStatus,c=t.getCurrentSite,o=t.getImportModalStatus,i=t.getOnboardingStatus,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)(lt,null),Object(r.createElement)("div",{className:"ob-body"},Object(r.createElement)("div",{className:"content-container"},s&&Object(r.createElement)(z,{data:s}),"starterSites"===a&&(c?Object(r.createElement)(it,{slug:c}):Object(r.createElement)(vt,null)),"library"===a&&Object(r.createElement)(Qe,null),"pageTemplates"===a&&Object(r.createElement)(Qe,{isGeneral:!0})))),n&&Object(r.createElement)(I,null),o&&i&&Object(r.createElement)(ot,null))})),yt=Object(h.withSelect)((function(e){var t=e("neve-onboarding"),n=t.getOnboardingStatus,r=t.getUserStatus;return{onboarding:n(),userStatus:r()}}))((function(e){var t=e.onboarding,n=e.userStatus,a=O()(["content-wrap","starter-sites",{"is-onboarding":t,"is-free":!n}]);return Object(r.createElement)("div",{className:"tiob-wrap"},Object(r.createElement)("div",{className:a},Object(r.createElement)("div",{className:"container content"},Object(r.createElement)("div",{className:"main"},Object(r.createElement)("div",{className:"tab-content columns starter-sites"},Object(r.createElement)(jt,null))))))}));Object(h.registerStore)("neve-onboarding",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REFRESH_SITES":var n=t.payload.sites;return i(i({},e),{},{sites:n});case"SET_CURRENT_EDITOR":var r=t.payload.editor;return localStorage.setItem("neve-onboarding-editor",r),i(i({},e),{},{editor:r});case"SET_CURRENT_CATEGORY":var a=t.payload.category;return i(i({},e),{},{category:a});case"SET_FOCUSED_SITE":var c=t.payload.siteData;return i(i({},e),{},{currentSite:c});case"SET_PREVIEW_STATUS":var o=t.payload.previewStatus;return i(i({},e),{},{previewStatus:o});case"SET_IMPORT_MODAL_STATUS":var s=t.payload.importModalStatus;return i(i({},e),{},{importModalStatus:s});case"SET_INSTALL_MODAL_STATUS":var l=t.payload.installModalStatus;return i(i({},e),{},{installModalStatus:l});case"SET_ONBOARDING":var u=t.payload.status;return i(i({},e),{},{isOnboarding:u});case"SET_THEME_ACTIONS":var m=t.payload.themeActions;return i(i({},e),{},{themeAction:m});case"SET_CURRENT_TAB":var p=t.payload.currentTab;return i(i({},e),{},{singleTemplateImport:null,currentTab:p});case"SET_FETCHING":var b=t.payload.fetching;return i(i({},e),{},{fetching:b});case"SET_SINGLE_TEMPLATE_IMPORT":var f=t.payload.slug;return i(i({},e),{},{singleTemplateImport:f});case"SET_TEMPLATE_MODAL":var h=t.payload.data;return i(i({},e),{},{templateModal:h});case"SET_SEARCH_QUERY":var g=t.payload.query;return i(i({},e),{},{searchQuery:g})}return e},actions:b,selectors:f}),Object(r.render)(Object(r.createElement)(yt,null),document.getElementById("tpc-app"))}]);
assets/src/Components/CategoriesTabs.js CHANGED
@@ -8,6 +8,7 @@ const CategoriesTabs = ( {
8
  count,
9
  category,
10
  setCurrentCategory,
 
11
  } ) => {
12
  return (
13
  <div className="editor-tabs">
@@ -31,7 +32,9 @@ const CategoriesTabs = ( {
31
  } }
32
  >
33
  <span className="editor">{ categories[ key ] }</span>
34
- <span className="count">{ count[ key ] }</span>
 
 
35
  </a>
36
  );
37
  } ) }
8
  count,
9
  category,
10
  setCurrentCategory,
11
+ showCount = false,
12
  } ) => {
13
  return (
14
  <div className="editor-tabs">
32
  } }
33
  >
34
  <span className="editor">{ categories[ key ] }</span>
35
+ { showCount && (
36
+ <span className="count">{ count[ key ] }</span>
37
+ ) }
38
  </a>
39
  );
40
  } ) }
assets/src/Components/CategorySelector.js CHANGED
@@ -10,6 +10,7 @@ const CategorySelector = ( {
10
  count,
11
  category,
12
  setCurrentCategory,
 
13
  } ) => {
14
  const [ open, setOpen ] = useState( false );
15
  const toggleDropdown = () => setOpen( ! open );
@@ -22,7 +23,7 @@ const CategorySelector = ( {
22
  <div className={ wrapClasses }>
23
  <Button onClick={ toggleDropdown } className="select ob-dropdown">
24
  <span>{ categories[ category ] }</span>
25
- <span className="count">{ count[ category ] }</span>
26
  <Dashicon
27
  size={ 14 }
28
  icon={ open ? 'arrow-up-alt2' : 'arrow-down-alt2' }
@@ -58,9 +59,11 @@ const CategorySelector = ( {
58
  <span>
59
  { categories[ key ] }
60
  </span>
61
- <span className="count">
62
- { count[ key ] }
63
- </span>
 
 
64
  </a>
65
  </li>
66
  );
10
  count,
11
  category,
12
  setCurrentCategory,
13
+ showCount = false,
14
  } ) => {
15
  const [ open, setOpen ] = useState( false );
16
  const toggleDropdown = () => setOpen( ! open );
23
  <div className={ wrapClasses }>
24
  <Button onClick={ toggleDropdown } className="select ob-dropdown">
25
  <span>{ categories[ category ] }</span>
26
+ <span className="count">{ showCount ? count[ category ] : '' }</span>
27
  <Dashicon
28
  size={ 14 }
29
  icon={ open ? 'arrow-up-alt2' : 'arrow-down-alt2' }
59
  <span>
60
  { categories[ key ] }
61
  </span>
62
+ { showCount && (
63
+ <span className="count">
64
+ { count[ key ] }
65
+ </span>
66
+ ) }
67
  </a>
68
  </li>
69
  );
assets/src/Components/Search.js CHANGED
@@ -19,6 +19,7 @@ const Search = ( {
19
  setCurrentEditor,
20
  query,
21
  className,
 
22
  } ) => {
23
  const [ open, setOpen ] = useState( false );
24
  const toggleDropdown = () => setOpen( ! open );
@@ -72,9 +73,11 @@ const Search = ( {
72
  ]
73
  }
74
  </span>
75
- <span className="count">
76
- { count[ key ] }
77
- </span>
 
 
78
  </a>
79
  </li>
80
  );
@@ -189,9 +192,11 @@ const Search = ( {
189
  .niceName
190
  }
191
  </span>
192
- <span className="count">
193
- { count[ key ] }
194
- </span>
 
 
195
  </a>
196
  </li>
197
  );
19
  setCurrentEditor,
20
  query,
21
  className,
22
+ showCount = false,
23
  } ) => {
24
  const [ open, setOpen ] = useState( false );
25
  const toggleDropdown = () => setOpen( ! open );
73
  ]
74
  }
75
  </span>
76
+ { showCount && (
77
+ <span className="count">
78
+ { count[ key ] }
79
+ </span>
80
+ ) }
81
  </a>
82
  </li>
83
  );
192
  .niceName
193
  }
194
  </span>
195
+ { showCount && (
196
+ <span className="count">
197
+ { count[ key ] }
198
+ </span>
199
+ ) }
200
  </a>
201
  </li>
202
  );
assets/src/Components/StarterSites/Filters.js CHANGED
@@ -71,6 +71,9 @@ const Filters = ( {
71
 
72
  const counted = getCounts();
73
 
 
 
 
74
  return (
75
  <>
76
  { ! isOnboarding && ! migration && (
@@ -89,6 +92,7 @@ const Filters = ( {
89
  categories={ CATEGORIES }
90
  editors={ EDITOR_MAP }
91
  onlyProSites={ onlyProBuilders }
 
92
  />
93
  { isTabbedEditor && (
94
  <EditorSelector
@@ -101,6 +105,7 @@ const Filters = ( {
101
  <CategorySelector
102
  count={ counted.categories }
103
  categories={ CATEGORIES }
 
104
  />
105
  ) }
106
  </div>
@@ -121,10 +126,19 @@ const Filters = ( {
121
  { tiobDash.strings.starterSitesTabDescription }
122
  </p>
123
  ) }
124
- <EditorSelector
125
- count={ counted.builders }
126
- EDITOR_MAP={ EDITOR_MAP }
127
- />
 
 
 
 
 
 
 
 
 
128
 
129
  <Search
130
  count={
@@ -135,6 +149,7 @@ const Filters = ( {
135
  categories={ CATEGORIES }
136
  editors={ EDITOR_MAP }
137
  onlyProSites={ onlyProBuilders }
 
138
  />
139
 
140
  { isTabbedEditor && (
@@ -148,6 +163,7 @@ const Filters = ( {
148
  <CategoriesTabs
149
  categories={ CATEGORIES }
150
  count={ counted.categories }
 
151
  />
152
  ) }
153
  { ! tiobDash.isValidLicense && (
71
 
72
  const counted = getCounts();
73
 
74
+ const activeCount = getSitesForBuilder( editor ).length;
75
+ const showCount = 50 <= activeCount;
76
+
77
  return (
78
  <>
79
  { ! isOnboarding && ! migration && (
92
  categories={ CATEGORIES }
93
  editors={ EDITOR_MAP }
94
  onlyProSites={ onlyProBuilders }
95
+ showCount={ showCount }
96
  />
97
  { isTabbedEditor && (
98
  <EditorSelector
105
  <CategorySelector
106
  count={ counted.categories }
107
  categories={ CATEGORIES }
108
+ showCount={ showCount }
109
  />
110
  ) }
111
  </div>
126
  { tiobDash.strings.starterSitesTabDescription }
127
  </p>
128
  ) }
129
+ { isTabbedEditor && (
130
+ <EditorSelector
131
+ count={ counted.builders }
132
+ EDITOR_MAP={ EDITOR_MAP }
133
+ />
134
+ ) }
135
+ { ! isTabbedEditor && (
136
+ <CategorySelector
137
+ count={ counted.categories }
138
+ categories={ CATEGORIES }
139
+ showCount={ showCount }
140
+ />
141
+ ) }
142
 
143
  <Search
144
  count={
149
  categories={ CATEGORIES }
150
  editors={ EDITOR_MAP }
151
  onlyProSites={ onlyProBuilders }
152
+ showCount={ showCount }
153
  />
154
 
155
  { isTabbedEditor && (
163
  <CategoriesTabs
164
  categories={ CATEGORIES }
165
  count={ counted.categories }
166
+ showCount={ showCount }
167
  />
168
  ) }
169
  { ! tiobDash.isValidLicense && (
includes/Main.php CHANGED
@@ -19,7 +19,7 @@ class Main {
19
  *
20
  * @var string Version string.
21
  */
22
- const VERSION = '1.1.23';
23
  /**
24
  * Sites Library API URL.
25
  *
19
  *
20
  * @var string Version string.
21
  */
22
+ const VERSION = '1.1.24';
23
  /**
24
  * Sites Library API URL.
25
  *
languages/templates-patterns-collection.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Templates Patterns Collection 1.1.23\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/templates-patterns-collection\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-06-30T10:42:30+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: templates-patterns-collection\n"
@@ -519,8 +519,8 @@ msgstr ""
519
  #: assets/src/Components/EditorSelector.js:30
520
  #: assets/src/Components/EditorSelector.js:70
521
  #: assets/src/Components/EditorTabs.js:43
522
- #: assets/src/Components/Search.js:107
523
- #: assets/src/Components/Search.js:166
524
  msgid "Builder Logo"
525
  msgstr ""
526
 
@@ -706,7 +706,7 @@ msgstr ""
706
  msgid "Upgrade and Import"
707
  msgstr ""
708
 
709
- #: assets/src/Components/Search.js:225
710
  msgid "Search for a starter site"
711
  msgstr ""
712
 
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Templates Patterns Collection 1.1.24\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/templates-patterns-collection\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-07-12T14:35:27+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: templates-patterns-collection\n"
519
  #: assets/src/Components/EditorSelector.js:30
520
  #: assets/src/Components/EditorSelector.js:70
521
  #: assets/src/Components/EditorTabs.js:43
522
+ #: assets/src/Components/Search.js:110
523
+ #: assets/src/Components/Search.js:169
524
  msgid "Builder Logo"
525
  msgstr ""
526
 
706
  msgid "Upgrade and Import"
707
  msgstr ""
708
 
709
+ #: assets/src/Components/Search.js:230
710
  msgid "Search for a starter site"
711
  msgstr ""
712
 
readme.txt CHANGED
@@ -39,6 +39,13 @@ Yes, you can. You can either chose to import one template or the entire starter
39
 
40
  == Changelog ==
41
 
 
 
 
 
 
 
 
42
  ##### [Version 1.1.23](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.22...v1.1.23) (2022-06-30)
43
 
44
  Removed unsupported builders from the list
39
 
40
  == Changelog ==
41
 
42
+ ##### [Version 1.1.24](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.23...v1.1.24) (2022-07-12)
43
+
44
+ Release
45
+
46
+
47
+
48
+
49
  ##### [Version 1.1.23](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.1.22...v1.1.23) (2022-06-30)
50
 
51
  Removed unsupported builders from the list
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.23
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.24
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInit8dc550658b72ffd490cd21ebcd27b0a4::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInitf5710e32d651ecf43e371fdcf945d94e::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit8dc550658b72ffd490cd21ebcd27b0a4
6
  {
7
  private static $loader;
8
 
@@ -22,18 +22,18 @@ class ComposerAutoloaderInit8dc550658b72ffd490cd21ebcd27b0a4
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit8dc550658b72ffd490cd21ebcd27b0a4', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit8dc550658b72ffd490cd21ebcd27b0a4', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInit8dc550658b72ffd490cd21ebcd27b0a4::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
- $includeFiles = \Composer\Autoload\ComposerStaticInit8dc550658b72ffd490cd21ebcd27b0a4::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
- composerRequire8dc550658b72ffd490cd21ebcd27b0a4($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
@@ -45,7 +45,7 @@ class ComposerAutoloaderInit8dc550658b72ffd490cd21ebcd27b0a4
45
  * @param string $file
46
  * @return void
47
  */
48
- function composerRequire8dc550658b72ffd490cd21ebcd27b0a4($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitf5710e32d651ecf43e371fdcf945d94e
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitf5710e32d651ecf43e371fdcf945d94e', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitf5710e32d651ecf43e371fdcf945d94e', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
34
+ $includeFiles = \Composer\Autoload\ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e::$files;
35
  foreach ($includeFiles as $fileIdentifier => $file) {
36
+ composerRequiref5710e32d651ecf43e371fdcf945d94e($fileIdentifier, $file);
37
  }
38
 
39
  return $loader;
45
  * @param string $file
46
  * @return void
47
  */
48
+ function composerRequiref5710e32d651ecf43e371fdcf945d94e($fileIdentifier, $file)
49
  {
50
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
51
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit8dc550658b72ffd490cd21ebcd27b0a4
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -58,9 +58,9 @@ class ComposerStaticInit8dc550658b72ffd490cd21ebcd27b0a4
58
  public static function getInitializer(ClassLoader $loader)
59
  {
60
  return \Closure::bind(function () use ($loader) {
61
- $loader->prefixLengthsPsr4 = ComposerStaticInit8dc550658b72ffd490cd21ebcd27b0a4::$prefixLengthsPsr4;
62
- $loader->prefixDirsPsr4 = ComposerStaticInit8dc550658b72ffd490cd21ebcd27b0a4::$prefixDirsPsr4;
63
- $loader->classMap = ComposerStaticInit8dc550658b72ffd490cd21ebcd27b0a4::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e
8
  {
9
  public static $files = array (
10
  '50f1a0479b2a5847c529d784c54cebe2' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
58
  public static function getInitializer(ClassLoader $loader)
59
  {
60
  return \Closure::bind(function () use ($loader) {
61
+ $loader->prefixLengthsPsr4 = ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e::$prefixLengthsPsr4;
62
+ $loader->prefixDirsPsr4 = ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e::$prefixDirsPsr4;
63
+ $loader->classMap = ComposerStaticInitf5710e32d651ecf43e371fdcf945d94e::$classMap;
64
 
65
  }, null, ClassLoader::class);
66
  }
vendor/composer/installed.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/templates-patterns-collection',
4
- 'pretty_version' => '1.1.23',
5
- 'version' => '1.1.23.0',
6
  'reference' => NULL,
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
@@ -11,8 +11,8 @@
11
  ),
12
  'versions' => array(
13
  'codeinwp/templates-patterns-collection' => array(
14
- 'pretty_version' => '1.1.23',
15
- 'version' => '1.1.23.0',
16
  'reference' => NULL,
17
  'type' => 'library',
18
  'install_path' => __DIR__ . '/../../',
1
  <?php return array(
2
  'root' => array(
3
  'name' => 'codeinwp/templates-patterns-collection',
4
+ 'pretty_version' => '1.1.24',
5
+ 'version' => '1.1.24.0',
6
  'reference' => NULL,
7
  'type' => 'library',
8
  'install_path' => __DIR__ . '/../../',
11
  ),
12
  'versions' => array(
13
  'codeinwp/templates-patterns-collection' => array(
14
+ 'pretty_version' => '1.1.24',
15
+ 'version' => '1.1.24.0',
16
  'reference' => NULL,
17
  'type' => 'library',
18
  'install_path' => __DIR__ . '/../../',