Astra Starter Sites - Version 3.0.5

Version Description

Download this release

Release Info

Developer brainstormworg
Plugin Icon Astra Starter Sites
Version 3.0.5
Comparing to
See all releases

Code changes from version 3.0.4 to 3.0.5

astra-sites.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Starter Templates
4
  * Plugin URI: https://wpastra.com/
5
  * Description: Starter Templates is all in one solution for complete starter sites, single page templates, blocks & images. This plugin offers the premium library of ready templates & provides quick access to beautiful Pixabay images that can be imported in your website easily.
6
- * Version: 3.0.4
7
  * Author: Brainstorm Force
8
  * Author URI: https://www.brainstormforce.com
9
  * Text Domain: astra-sites
@@ -19,7 +19,7 @@ if ( ! defined( 'ASTRA_SITES_NAME' ) ) {
19
  }
20
 
21
  if ( ! defined( 'ASTRA_SITES_VER' ) ) {
22
- define( 'ASTRA_SITES_VER', '3.0.4' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
3
  * Plugin Name: Starter Templates
4
  * Plugin URI: https://wpastra.com/
5
  * Description: Starter Templates is all in one solution for complete starter sites, single page templates, blocks & images. This plugin offers the premium library of ready templates & provides quick access to beautiful Pixabay images that can be imported in your website easily.
6
+ * Version: 3.0.5
7
  * Author: Brainstorm Force
8
  * Author URI: https://www.brainstormforce.com
9
  * Text Domain: astra-sites
19
  }
20
 
21
  if ( ! defined( 'ASTRA_SITES_VER' ) ) {
22
+ define( 'ASTRA_SITES_VER', '3.0.5' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
inc/lib/onboarding/assets/dist/main.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-media-utils', 'wp-polyfill', 'wp-url'), 'version' => '124299d3f2252576129a231cb66e6d03');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-media-utils', 'wp-polyfill', 'wp-url'), 'version' => 'e658f617bf9d1e1f4879a7f233c3f608');
inc/lib/onboarding/assets/dist/main.js CHANGED
@@ -5,7 +5,7 @@ Object(x.__)("Your Website is up and ready!. %1$s","astra-sites"),w),g="I just b
5
  Object(x.__)("Your search - %1$s - did not match any Starter Templates.","astra-sites"),Object(ia.decodeEntities)(e)))):null}),rc=(r(73),function(){return Object(c.createElement)("div",{className:"st-no-favorites"},Object(c.createElement)("h3",null,Object(x.__)("No favorites added. Press the heart icon to add templates as favorites.","astra-sites")))}),nc=function(t){var e=t.sites;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"st-sites-grid"},Object(c.createElement)("div",{className:"st-sites-found-message"},Object(x.__)("Other suggested Starter Templates","astra-sites")),Object(c.createElement)(Jl,{sites:e})))};function ic(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ac(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ic(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ic(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var sc=(r(74),r(75),function(){return Object(c.createElement)("div",{className:"branding-wrap"},H()?Object(c.createElement)("h3",null,astraSitesVars.whiteLabelName):Object(c.createElement)(Ll,{className:"ist-logo",src:"".concat(starterTemplates.imageDir,"logo.svg"),alt:Object(x.__)("Starter Templates","astra-sites")}))}),oc=function(){var t=C(),e=b()(t,2),r=e[0].builder,n=e[1],i=[{id:"gutenberg",title:Object(x.__)("Block Editor","astra-sites"),image:"".concat(starterTemplates.imageDir,"block-editor.svg")},{id:"elementor",title:Object(x.__)("Elementor","astra-sites"),image:"".concat(starterTemplates.imageDir,"elementor.svg")},{id:"beaver-builder",title:Object(x.__)("Beaver Builder","astra-sites"),image:"".concat(starterTemplates.imageDir,"beaver-builder.svg")}];return"1"===starterTemplates.isBrizyEnabled&&i.push({id:"brizy",title:Object(x.__)("Brizy","astra-sites"),image:"".concat(starterTemplates.imageDir,"brizy.svg")}),Object(c.createElement)("div",{className:"st-page-builder-filter"},Object(c.createElement)(Ul,{value:r,options:i,className:"st-page-builder-toggle",onClick:function(t,e){n({type:"set",builder:e.id,siteCategory:Qh.siteCategory,siteType:"",siteOrder:"popular",onMyFavorite:!1});var r=new FormData;r.append("action","astra-sites-change-page-builder"),r.append("_ajax_nonce",astraSitesVars._ajax_nonce),r.append("page_builder",e.id),fetch(ajaxurl,{method:"post",body:r})}}))},lc=(r(76),function(){return Object(c.createElement)("a",{className:"st-exit-to-dashboard",href:starterTemplates.adminUrl},Object(c.createElement)(Tl,{content:Object(x.__)("Exit to Dashboard","astra-sites")},E.dashboard))}),cc=(r(77),function(){var t=C(),e=b()(t,2),r=e[0],n=e[1],i=r.onMyFavorite;return Object(c.createElement)("div",{className:"st-my-favorite ".concat(i?"active":""),onClick:function(t){t.stopPropagation(),n({type:"set",onMyFavorite:!i,siteType:"",siteOrder:Qh.siteOrder,siteCategory:Qh.siteCategory,siteSearchTerm:""})}},Object(c.createElement)(Tl,{content:Object(x.__)("My Favorite","astra-sites")},E.favorite))}),hc=r(17),uc=r.n(hc);function pc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pc(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dc(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return mc(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mc(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw a}}}}function mc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var gc=wp.ajax.post,yc=[],vc=!1,bc=function(t,e){var r=new FormData;return r.append(t,e),r},xc=function(){var t=Ol()(Il.a.mark((function t(){var e,r,n,i;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-update-library")});case 3:return e=t.sent,t.next=6,e.json();case 6:return r=t.sent,t.next=9,r.data;case 9:if(n=t.sent,i=null,yc=[],"updated"!==n){t.next=17;break}yc.push(!0),vc=!0,t.next=53;break;case 17:if("batch"!==n){t.next=53;break}return t.next=20,Pc();case 20:return i=t.sent,t.t0=yc,t.next=24,wc();case 24:return t.t1=t.sent,t.t0.push.call(t.t0,t.t1),t.t2=yc,t.next=29,Sc();case 29:return t.t3=t.sent,t.t2.push.call(t.t2,t.t3),t.t4=yc,t.next=34,Ac();case 34:return t.t5=t.sent,t.t4.push.call(t.t4,t.t5),t.t6=yc,t.next=39,Cc();case 39:return t.t7=t.sent,t.t6.push.call(t.t6,t.t7),t.t8=yc,t.next=44,kc();case 44:return t.t9=t.sent,t.t8.push.call(t.t8,t.t9),t.t10=yc,t.next=49,Ec();case 49:t.t11=t.sent,t.t10.push.call(t.t10,t.t11),yc.push(i),vc=!0;case 53:return t.abrupt("return",i);case 56:return t.prev=56,t.t12=t.catch(0),yc.push(!1),vc=!0,t.abrupt("return",!1);case 61:case"end":return t.stop()}}),t,null,[[0,56]])})));return function(){return t.apply(this,arguments)}}(),Ec=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-update-library-complete")}).then((function(t){return t.json()}));case 3:if(!0!==t.sent.success){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),kc=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-import-page-builders")}).then((function(t){return t.json()}));case 3:if(!0!==t.sent.success){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),Cc=function(){var t=Ol()(Il.a.mark((function t(){var e,r,n,i,a;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-get-blocks-request-count")}).then((function(t){return t.json()})).then((function(t){return t.data}));case 3:if(!(e=t.sent)){t.next=11;break}for(r=[],n=1;n<=e;n++)(i=new FormData).append("action","astra-sites-import-blocks"),i.append("page_no",n),r.push(fetch(ajaxurl,{method:"post",body:i}));return t.next=9,Promise.allSettled(r).then((function(t){return Promise.all(t.map((function(t){return t.value.json()})))}));case 9:return a=t.sent,t.abrupt("return",a.every((function(t){return!0===t.success})));case 11:t.next=16;break;case 13:return t.prev=13,t.t0=t.catch(0),t.abrupt("return",!1);case 16:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(){return t.apply(this,arguments)}}(),Ac=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-import-page-builders")}).then((function(t){return t.json()}));case 3:if(!0!==t.sent.success){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),Sc=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-import-all-categories")}).then((function(t){return t.json()}));case 3:if(!0!==t.sent.success){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),wc=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-import-all-categories-and-tags")}).then((function(t){return t.json()}));case 3:if(!0!==t.sent.success){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),Pc=function(){var t=Ol()(Il.a.mark((function t(){var e,r,n,i,a;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,gc({action:"astra-sites-get-sites-request-count",_ajax_nonce:starterTemplates.nonce});case 3:if(!(e=t.sent)){t.next=11;break}for(r=[],n=1;n<=e;n++)(i=new FormData).append("action","astra-sites-import-sites"),i.append("page_no",n),r.push(fetch(ajaxurl,{method:"post",body:i}));return t.next=9,Promise.allSettled(r).then((function(t){return Promise.all(t.map((function(t){return t.value.json()})))})).then((function(t){var e,r={},n=dc(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;"object"===uc()(i.data)&&(r=fc(fc({},r),i.data))}}catch(t){n.e(t)}finally{n.f()}return r}));case 9:return a=t.sent,t.abrupt("return",a);case 11:return t.abrupt("return",null);case 14:return t.prev=14,t.t0=t.catch(0),t.abrupt("return",null);case 17:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(){return t.apply(this,arguments)}}(),Oc=(r(78),function(){var t=Object(h.useState)(!1),e=b()(t,2),r=e[0],n=e[1],i=function(){if(yc&&vc){var t=yc.every(Boolean);return yc=[],vc=!1,t}}(),a=function(){var t=Ol()(Il.a.mark((function t(e){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.stopPropagation(),!r){t.next=3;break}return t.abrupt("return");case 3:return n(!0),t.next=6,xc();case 6:n(!1);case 7:case"end":return t.stop()}}),t)})));return function(_x){return t.apply(this,arguments)}}();return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"st-sync-library ".concat(r?"loading":""),onClick:a},Object(c.createElement)(Tl,{content:Object(x.__)("Sync Library","astra-sites")},E.sync)),!r&&!0===i&&Object(c.createElement)(Nl,{type:"success",message:Object(x.__)("Library refreshed successfully","astra-sites"),autoHideDuration:5,bottomRight:!0}),!r&&!1===i&&Object(c.createElement)(Nl,{type:"error",message:Object(x.__)("Library refreshed failed!","astra-sites"),autoHideDuration:5,bottomRight:!0}))}),jc=(r(79),function(){var t=C(),e=b()(t,2),r=e[0],n=r.selectedTemplateName,i=r.currentIndex,a=e[1];return Object(c.createElement)("div",{className:"change-template-wrap"},Object(c.createElement)("div",{className:"template-name"},Object(c.createElement)("p",{className:"label"},Object(x.__)("Selected Template:","astra-sites")),Object(c.createElement)("h5",null,Object(ia.decodeEntities)(n))),Object(c.createElement)("div",{className:"change-btn-wrap",onClick:function(){a({type:"set",currentIndex:i-1,currentCustomizeIndex:0})}},Object(c.createElement)("span",{className:"change-btn"},E.cross)))}),Ic=r(18),_c=r.n(Ic),Tc=starterTemplates.restNonce,Fc=r(32),Mc=r(33),Dc=r(20);function Rc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rc(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r(80);var Vc=function(){var t=C(),e=b()(t,2),r=e[0],n=r.siteLogo,i=r.builder,a=r.currentCustomizeIndex,s=r.currentIndex,o=e[1];Object(Fc.addFilter)("editor.MediaUpload","core/edit-post/components/media-upload/replace-media-upload",(function(){return Dc.MediaUpload}));var l=function(t){o({type:"set",siteLogo:t}),Q({param:"siteLogo",data:t})},h=function(){l(Qh.siteLogo)},u=function(t){var e=Bc(Bc({},n),{},{width:t});o({type:"set",siteLogo:e}),Q({param:"siteLogo",data:e})},p=function(){o("beaver-builder"===i||"brizy"===i?{type:"set",currentCustomizeIndex:a+2}:{type:"set",currentCustomizeIndex:a+1})},f=function(){o({type:"set",currentIndex:s-1,currentCustomizeIndex:0})},d=function(t){n.url&&(t.stopPropagation(),u(Qh.siteLogo.width))};return Object(c.createElement)(Dc.MediaUpload,{onSelect:function(t){return function(t){var e,r,i,a={id:t.id,url:t.url,width:n.width};"http:"===window.location.protocol?(e=t.url,r=function(t){a.dataUri=t,l(a)},(i=new Image).onload=function(){var t=document.createElement("canvas");t.width=this.naturalWidth,t.height=this.naturalHeight,t.getContext("2d").drawImage(this,0,0),r(t.toDataURL("image/png"))},i.src=e):l(a)}(t)},allowedTypes:["image"],value:n.id,render:function(t){var e=t.open;return Object(c.createElement)(c.Fragment,null,""!==n.url&&void 0!==n.url?Object(c.createElement)("div",{className:"ist-logo-wrapper"},Object(c.createElement)("div",{className:"ist-remove-logo",onClick:h,title:Object(x.__)("Remove Logo","astra-sites")},Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"#333333"},Object(c.createElement)("path",{d:"M8 0.7L7.3 0L4 3.3L0.7 0L0 0.7L3.3 4L0 7.3L0.7 8L4 4.7L7.3 8L8 7.3L4.7 4L8 0.7Z",fill:"#333333"}))),Object(c.createElement)("div",{className:"ist-selected-image",onClick:e},Object(c.createElement)("div",{onClick:e,className:"ist-logo-preview-wrap"},Object(c.createElement)("img",{alt:Object(x.__)("Site Logo","astra-sites"),src:n.url}),Object(c.createElement)("div",{className:"ist-change-logo",onClick:e},Object(x.__)("Change Logo","astra-sites"))))):"",""===n.url?Object(c.createElement)("div",null,Object(c.createElement)(R,{className:"ist-button ist-button-outline",onClick:e},Object(c.createElement)("h5",null,Object(x.__)("Upload File Here","astra-sites")),Object(c.createElement)("p",null,Object(x.__)("Suggested Dimensions: 180x60 pixels","astra-sites")))):"",""===n.url&&Object(c.createElement)("div",{className:"logo-skip-info"},Object(c.createElement)("h5",null,Object(x.__)("Don't have Logo? No Problem!","astra-sites")),Object(c.createElement)("p",null,Object(x.__)("You can upload it later","astra-sites"))),Object(c.createElement)("div",{className:"astra-sites-ai-logo-wrap"},Object(c.createElement)("div",{className:"label"},Object(x.__)("Logo Width","astra-sitess")),Object(c.createElement)("div",{className:"control-reset ".concat(n.width===Qh.siteLogo.width?"disabled":""),onClick:d},E.reset)),Object(c.createElement)("div",{className:"astra-sites-ai-rangecontrol-wrap"},Object(c.createElement)(Mc.RangeControl,{value:n.width,min:0,max:500,step:1,onChange:function(t){u(t)},trackColor:"#4361ee",disabled:""===n.url})),Object(c.createElement)(R,{className:"ist-button",onClick:p,after:!0},""!==n.url?Object(x.__)("Continue","astra-sites"):Object(x.__)("Skip & Continue","astra-sites")),Object(c.createElement)(V,{onClick:f},Object(x.__)("Back","astra-sites")))}})},Lc=[{slug:"style-1",title:Object(x.__)("Style 1","astra-sites"),colors:["#8E43F0","#7215EA","#FFFFFF","#FAF5FF","#726C7A","#3C2F4B","#000000","#4B4F58","#F6F7F8"]},{slug:"style-2",title:Object(x.__)("Style 2","astra-sites"),colors:["#FFB72B","#FF9900","#FFFFFF","#F9F5EE","#6D6A64","#3A362D","#000000","#4B4F58","#F6F7F8"]},{slug:"style-3",title:Object(x.__)("Style 3","astra-sites"),colors:["#FF2459","#D90336","#FFFFFF","#FAF4F6","#6B6365","#352A2D","#000000","#4B4F58","#F6F7F8"]},{slug:"style-4",title:Object(x.__)("Style 4","astra-sites"),colors:["#2B60E8","#0A43D7","#FFFFFF","#F7F7FA","#64666C","#2E323E","#000000","#4B4F58","#F6F7F8"]},{slug:"style-5",title:Object(x.__)("Style 5","astra-sites"),colors:["#1BAE70","#008D52","#FFFFFF","#F3FAF7","#5C6461","#26312C","#000000","#4B4F58","#F6F7F8"]},{slug:"style-6",title:Object(x.__)("Style 6","astra-sites"),colors:["#FF8F3F","#EC6300","#FFFFFF","#F9F6F4","#66625F","#37302A","#000000","#4B4F58","#F6F7F8"]}],Nc=[{slug:"style-1",title:Object(x.__)("Style 1","astra-sites"),colors:["#8E43F0","#7215EA","#3C2F4B","#726C7A","#FAF5FF","#FFFFFF","#000000","#4B4F58","#F6F7F8"]},{slug:"style-2",title:Object(x.__)("Style 2","astra-sites"),colors:["#FFB72B","#FF9900","#3A362D","#6D6A64","#F9F5EE","#FFFFFF","#000000","#4B4F58","#F6F7F8"]},{slug:"style-3",title:Object(x.__)("Style 3","astra-sites"),colors:["#FF2459","#D90336","#352A2D","#6B6365","#FAF4F6","#FFFFFF","#000000","#4B4F58","#F6F7F8"]},{slug:"style-4",title:Object(x.__)("Style 4","astra-sites"),colors:["#2B60E8","#0A43D7","#2E323E","#64666C","#F7F7FA","#FFFFFF","#000000","#4B4F58","#F6F7F8"]},{slug:"style-5",title:Object(x.__)("Style 5","astra-sites"),colors:["#1BAE70","#008D52","#26312C","#5C6461","#F3FAF7","#FFFFFF","#000000","#4B4F58","#F6F7F8"]},{slug:"style-6",title:Object(x.__)("Style 6","astra-sites"),colors:["#FF8F3F","#EC6300","#37302A","#66625F","#F9F6F4","#FFFFFF","#000000","#4B4F58","#F6F7F8"]}];function zc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Gc=function(t,e){if(!t)return"";if(t){var r=t.match(/'([^']+)'/);return r?r[1]:"inherit"===t?e:t}return e||void 0},Hc=[{"body-font-family":"'Open Sans', sans-serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"1.7","headings-font-family":"'Playfair Display', serif","headings-font-weight":"700","headings-line-height":"1.2","headings-font-variant":"700"},{"body-font-family":"'Lora', serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Lato', sans-serif","headings-font-weight":"700","headings-line-height":"1.2","headings-font-variant":"700"},{"body-font-family":"'Roboto', sans-serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:17,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Barlow Condensed', sans-serif","headings-font-weight":"600","headings-line-height":"1.2","headings-font-variant":"600"},{"body-font-family":"'Source Sans Pro', sans-serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:17,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":1.7,"headings-font-family":"'Montserrat', sans-serif","headings-font-weight":"700","headings-line-height":"1.3","headings-font-variant":"700"},{"body-font-family":"'Karla', sans-serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:17,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Rubik', sans-serif","headings-font-weight":"500","headings-line-height":"1.3","headings-font-variant":"500"},{"body-font-family":"'Work Sans', sans-serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'DM Serif Display', serif","headings-font-weight":"400","headings-line-height":"1.2","headings-font-variant":"400"}],Qc=[{content:function(){var t=C(),e=b()(t,2),r=e[0],n=r.licenseStatus,i=r.selectedTemplateType,a=e[1];return Object(h.useEffect)((function(){a({type:"set",designStep:1})}),[]),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(jc,null),Object(c.createElement)("div",{className:"customizer-header"},Object(c.createElement)("div",{className:"header-name"},!n&&"free"!==i&&Object(c.createElement)("p",{className:"premium-notice"},Object(x.__)("This is a Premium Template","astra-sites")),Object(c.createElement)("h3",{className:"ist-customizer-heading"},Object(x.__)("Logo","astra-sites")),Object(c.createElement)("p",{className:"screen-description"},Object(x.__)("Choose logo for your site. You can update it anytime later.","astra-sites")))))},controls:function(){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Vc,null))},class:"customize-business-logo"},{content:function(){var t=C(),e=b()(t,2),r=e[0],n=r.licenseStatus,i=r.selectedTemplateType,a=e[1];return Object(h.useEffect)((function(){a({type:"set",designStep:2})}),[]),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(jc,null),Object(c.createElement)("div",{className:"customizer-header"},Object(c.createElement)("div",{className:"header-name"},!n&&"free"!==i&&Object(c.createElement)("p",{className:"premium-notice"},Object(x.__)("This is a Premium Template","astra-sites")),Object(c.createElement)("h3",{className:"ist-customizer-heading"},Object(x.__)("Colors","astra-sites")),Object(c.createElement)("p",{className:"screen-description"},Object(x.__)("Choose colors for your site. You can update them anytime later.","astra-sites")))))},controls:function(){var t=C(),e=b()(t,2),r=e[0],n=r.activePaletteSlug,i=r.templateResponse,a=r.currentCustomizeIndex,s=e[1],o=Object(h.useState)([]),l=b()(o,2),u=l[0],p=l[1],f=Object(h.useState)(Nc),d=b()(f,2),m=d[0],g=d[1],y=function(t,e){e&&(s({type:"set",activePaletteSlug:e.slug,activePalette:e}),Q({param:"colorPalette",data:e}))};return Object(h.useEffect)((function(){var t=function(t){var e=[];if(t&&"astra-site-customizer-data"in t){var r=t["astra-site-customizer-data"]||"";if(r){var n=r["astra-settings"]["global-color-palette"].palette||[];n&&(e=[{slug:"default",title:Object(x.__)("Default","astra-sites"),colors:n}])}}return e}(i);p(t);var e="light"===function(t){var e="light";return t&&"astra-site-color-scheme"in t&&""!==t["astra-site-color-scheme"]&&(e=t["astra-site-color-scheme"]),e}(i)?Nc:Lc;g(e)}),[i]),Object(c.createElement)(c.Fragment,null,u?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(B,{selected:n,options:u,onChange:function(t,e){y(0,e)},tabIndex:"0"})):"",Object(c.createElement)("h4",{className:"ist-secondary-heading"},Object(x.__)("You can also try:","astra-sites")),Object(c.createElement)(B,{selected:n,options:m,onChange:function(t,e){y(0,e)},tabIndex:"0"}),Object(c.createElement)(R,{className:"ist-button",onClick:function(){s({type:"set",currentCustomizeIndex:a+1})},after:!0},Object(x.__)("Continue","astra-sites")),Object(c.createElement)(V,{customizeStep:!0,onClick:function(){s({type:"set",currentCustomizeIndex:a-1})}},Object(x.__)("Back","astra-sites")))},actions:null,class:"customize-site-colors"},{content:function(){var t=C(),e=b()(t,2),r=e[0],n=r.licenseStatus,i=r.selectedTemplateType,a=e[1];return Object(h.useEffect)((function(){a({type:"set",designStep:3})}),[]),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(jc,null),Object(c.createElement)("div",{className:"customizer-header"},Object(c.createElement)("div",{className:"header-name"},!n&&"free"!==i&&Object(c.createElement)("p",{className:"premium-notice"},Object(x.__)("This is a Premium Template","astra-sites")),Object(c.createElement)("h3",{className:"ist-customizer-heading"},Object(x.__)("Fonts","astra-sites")),Object(c.createElement)("p",{className:"screen-description"},Object(x.__)("Choose fonts for your site. You can update them anytime later.","astra-sites")))))},controls:function(){var t=C(),e=b()(t,2),r=e[0],n=r.typographyIndex,i=r.typography,a=r.templateResponse,s=e[1],o=Object(h.useState)(Hc),l=b()(o,2),u=l[0],p=l[1];return Object(h.useEffect)((function(){if(null!==a){var t=[],e=function(t){var e={};if(t&&"astra-site-customizer-data"in t){var r=t["astra-site-customizer-data"]||"";if(r){var n=r["astra-settings"]||[],i=n["headings-font-family"];e={default:!0,"body-font-family":n["body-font-family"],"body-font-variant":n["body-font-variant"],"body-font-weight":n["body-font-weight"],"font-size-body":n["font-size-body"],"body-line-height":n["body-line-height"],"headings-font-family":i,"headings-font-weight":n["headings-font-weight"],"headings-line-height":n["headings-line-height"],"headings-font-variant":n["headings-font-variant"]}}}return e}(a);if(t.push(e),!document.getElementById("google-fonts-domain")){var r=document.createElement("link");r.id="google-fonts-domain",r.setAttribute("rel","preconnect"),r.setAttribute("href","https://fonts.gstatic.com"),document.head.appendChild(r)}if(!document.getElementById("google-fonts-url")){var i=document.createElement("link");i.id="google-fonts-url",i.setAttribute("rel","stylesheet");var o=[],l=e["body-font-family"]||"",c=parseInt(e["body-font-weight"])||"";c&&(c=":wght@".concat(c)),l&&(l=(l=Gc(l)).replace(" ","+"),o.push("family=".concat(l).concat(c)));var h=e["headings-font-family"]||"",f=parseInt(e["headings-font-weight"])||"";f&&(f=":wght@".concat(f)),h&&(h=(h=Gc(h,l)).replace(" ","+"),o.push("family=".concat(h).concat(f)));var d="";if(u){var m,g=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return zc(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zc(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw a}}}}(u);try{for(g.s();!(m=g.n()).done;){var y=m.value,v=Gc(y["headings-font-family"]).replaceAll(" ","+"),b=y["headings-font-weight"],x=Gc(y["body-font-family"]).replaceAll(" ","+"),E=y["body-font-weight"];d+="&family=".concat(v,":wght@").concat(b,"&family=").concat(x,":wght@").concat(E)}}catch(t){g.e(t)}finally{g.f()}d=d.replace(/[&]{1}$/i,"")}if(o){var k="https://fonts.googleapis.com/css2?".concat(o.join("&")).concat(d,"&display=swap");i.setAttribute("href",k),document.head.appendChild(i)}}0===n&&s({type:"set",typography:e}),u=t.concat(u),p(u)}}),[a]),Object(h.useEffect)((function(){Q({param:"siteTypography",data:JSON.parse(JSON.stringify(i))})}),[i]),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(G,{selected:n,options:u,onSelect:function(t,e){s({type:"set",typographyIndex:e,typography:u[e]||u[0]})}}))},actions:null,class:"customize-site-typography"},{content:function(){var t=C(),e=b()(t,2),r=e[0].builder,n=e[1];Object(h.useEffect)((function(){n({type:"set",designStep:1})}),[]);var i=Object(x.__)("This is a premium template and comes with our Essentials and Growth Bundle. <br/><br/> Get access to this premium template and 100+ more.","astra-sites");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(jc,null),Object(c.createElement)("div",{className:"customizer-header"},Object(c.createElement)("div",{className:"header-name"},Object(c.createElement)("h3",{className:"ist-customizer-heading"},Object(x.__)("Liked this Starter Template?","astra-sites")),Object(c.createElement)("p",{className:"screen-description",dangerouslySetInnerHTML:{__html:i}}),Object(c.createElement)(R,{className:"st-access-btn",onClick:function(){window.open(astraSitesVars.cta_links[r])}},Object(x.__)("Unlock Access","astra-sites"),Object(c.createElement)("img",{className:"st-get-access",alt:"Get Access",src:"".concat(starterTemplates.imageDir,"get-access.svg")})))))},controls:function(){var t=C(),e=b()(t,2),r=e[0],n=(r.templateResponse,r.currentCustomizeIndex),i=r.importError,a=r.currentIndex,s=r.validateLicenseStatus,o=e[1],l=Object(h.useState)(""),u=b()(l,2),p=u[0],f=u[1],d=Object(h.useState)(!1),m=b()(d,2),g=m[0],y=m[1],v=Object(h.useState)(""),k=b()(v,2),A=k[0],S=k[1];Object(h.useEffect)((function(){i&&o({type:"set",currentIndex:a+2})}),[i]);var w=g?"processing":"",P=Object(x.sprintf)(//translators: %1$s Support page URL.
6
  Object(x.__)("<b> Questions? </b> Get in touch with our %1$ssupport team%2$s.","astra-sites"),'<a href="https://wpastra.com/support/free-support/" target="_blank">',"</a>"),O=Object(x.sprintf)(//translators: %1$s Store page URL.
7
  Object(x.__)("If you have purchased our Essential or Growth Bundle, please install the premium version of the plugin that you can %1$sdownload.%2$s from our store.","astra-sites"),'<a href="https://store.brainstormforce.com/login/" target="_blank">',"</a>");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("h4",null,Object(x.__)("Already a customer?","astra-sites")),s&&Object(c.createElement)("p",{className:"customer-notices"},Object(x.__)("If you have purchased our Essential or Growth Bundle, just enter your license key below to import this template.","astra-sites")),!s&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"customer-notices",dangerouslySetInnerHTML:{__html:O}}),Object(c.createElement)("p",{className:"customer-notices"},Object(x.__)("Currently the free version is installed.","astra-sites"))),Object(c.createElement)("p",{className:"support-link",dangerouslySetInnerHTML:{__html:P}}),s&&Object(c.createElement)("div",{className:"license-wrap"},Object(c.createElement)("input",{type:"text",className:"license-key-input",name:"license-key",placeholder:Object(x.__)("License key","astra-sites"),required:!0,onChange:function(t){S(t.target.value),f("")}}),Object(c.createElement)(R,{className:"validate-btn ".concat(w),onClick:function(){""!==A?(y(!0),_c.a.use(_c.a.createNonceMiddleware(Tc)),_c()({path:"/bsf-core/v1/license/activate",method:"POST",data:{"license-key":A,"product-id":"astra-pro-sites"}}).then((function(t){t.success?o({type:"set",licenseStatus:!0,currentIndex:a+1}):f(t.message),y(!1)}))):f(Object(x.__)("Please Enter License Key","astra-sites"))}},E.arrowRightBold)),Object(c.createElement)(V,{onClick:function(){o({type:"set",currentCustomizeIndex:n-1})},customizeStep:!0},Object(x.__)("Back","astra-sites")),p&&!g&&Object(c.createElement)(Nl,{type:"error",message:p,autoHideDuration:5}))},actions:null,class:"customize-license-validation"}],Wc=r(34),Xc=r.n(Wc),qc=r(21),Jc=r.n(qc),Yc=r(22),Kc=r.n(Yc);function Uc(){return(Uc=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function Zc(t,e){return t(e={exports:{}},e.exports),e.exports}var $c="function"==typeof Symbol&&Symbol.for,th=$c?Symbol.for("react.element"):60103,eh=$c?Symbol.for("react.portal"):60106,rh=$c?Symbol.for("react.fragment"):60107,nh=$c?Symbol.for("react.strict_mode"):60108,ih=$c?Symbol.for("react.profiler"):60114,ah=$c?Symbol.for("react.provider"):60109,sh=$c?Symbol.for("react.context"):60110,oh=$c?Symbol.for("react.async_mode"):60111,lh=$c?Symbol.for("react.concurrent_mode"):60111,ch=$c?Symbol.for("react.forward_ref"):60112,hh=$c?Symbol.for("react.suspense"):60113,uh=$c?Symbol.for("react.suspense_list"):60120,ph=$c?Symbol.for("react.memo"):60115,fh=$c?Symbol.for("react.lazy"):60116,dh=$c?Symbol.for("react.block"):60121,mh=$c?Symbol.for("react.fundamental"):60117,gh=$c?Symbol.for("react.responder"):60118,yh=$c?Symbol.for("react.scope"):60119;function vh(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case th:switch(t=t.type){case oh:case lh:case rh:case ih:case nh:case hh:return t;default:switch(t=t&&t.$$typeof){case sh:case ch:case fh:case ph:case ah:return t;default:return e}}case eh:return e}}}function bh(t){return vh(t)===lh}var xh={AsyncMode:oh,ConcurrentMode:lh,ContextConsumer:sh,ContextProvider:ah,Element:th,ForwardRef:ch,Fragment:rh,Lazy:fh,Memo:ph,Portal:eh,Profiler:ih,StrictMode:nh,Suspense:hh,isAsyncMode:function(t){return bh(t)||vh(t)===oh},isConcurrentMode:bh,isContextConsumer:function(t){return vh(t)===sh},isContextProvider:function(t){return vh(t)===ah},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===th},isForwardRef:function(t){return vh(t)===ch},isFragment:function(t){return vh(t)===rh},isLazy:function(t){return vh(t)===fh},isMemo:function(t){return vh(t)===ph},isPortal:function(t){return vh(t)===eh},isProfiler:function(t){return vh(t)===ih},isStrictMode:function(t){return vh(t)===nh},isSuspense:function(t){return vh(t)===hh},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===rh||t===lh||t===ih||t===nh||t===hh||t===uh||"object"==typeof t&&null!==t&&(t.$$typeof===fh||t.$$typeof===ph||t.$$typeof===ah||t.$$typeof===sh||t.$$typeof===ch||t.$$typeof===mh||t.$$typeof===gh||t.$$typeof===yh||t.$$typeof===dh)},typeOf:vh};Zc((function(t,e){})),Zc((function(t){t.exports=xh})),Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}})()&&Object.assign;function Eh(){}function kh(){}Function.call.bind(Object.prototype.hasOwnProperty),kh.resetWarningCache=Eh;var Ch,Ah,Sh=Zc((function(t){t.exports=function(){function t(t,e,r,n,i,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:kh,resetWarningCache:Eh};return r.PropTypes=r,r}()})),wh=(Ch=Xc.a,(Ah=Object(h.memo)((function(t){var e=t.animationData,r=t.path,n=t.play,i=t.speed,a=t.direction,s=t.segments,o=t.goTo,l=t.renderer,c=t.loop,p=t.rendererSettings,f=t.audioFactory,d=t.onLoad,m=t.onComplete,g=t.onLoopComplete,y=t.onEnterFrame,v=t.onSegmentStart,b=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,["animationData","path","play","speed","direction","segments","goTo","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),x=Object(h.useRef)(),E=Object(h.useRef)(),k=Object(h.useState)(!1),C=k[0],A=k[1],S=Object(h.useState)(s),w=S[0],P=S[1];Object(h.useEffect)((function(){Jc()(w,s)||P(s)}),[s,w]);var O=Object(h.useState)(p),j=O[0],I=O[1];Object(h.useEffect)((function(){Jc()(j,p)||I(p)}),[p,j]),Object(h.useEffect)((function(){return function(){return E.current.removeEventListener("complete",m)}}),[m]),Object(h.useEffect)((function(){return function(){return E.current.removeEventListener("loopComplete",g)}}),[g]),Object(h.useEffect)((function(){return function(){return E.current.removeEventListener("enterFrame",y)}}),[y]),Object(h.useEffect)((function(){return function(){return E.current.removeEventListener("segmentStart",v)}}),[v]),Object(h.useEffect)((function(){function t(){A(!0),d()}return E.current=Ch.loadAnimation({animationData:null==e||"object"!=typeof e?e:"object"==typeof e.default?Kc()(e.default):Kc()(e),path:r,container:x.current,renderer:l,loop:!1,autoplay:!1,rendererSettings:j,audioFactory:f}),E.current.addEventListener("DOMLoaded",t),function(){E.current.removeEventListener("DOMLoaded",t),A(!1),E.current.destroy(),E.current=void 0}}),[c,l,j,e,r,f]),Object(h.useEffect)((function(){E.current.addEventListener("complete",m)}),[m]),Object(h.useEffect)((function(){E.current.addEventListener("loopComplete",g)}),[g]),Object(h.useEffect)((function(){E.current.addEventListener("enterFrame",y)}),[y]),Object(h.useEffect)((function(){E.current.addEventListener("segmentStart",v)}),[v]),Object(h.useEffect)((function(){C&&(E.current.loop=c)}),[C,c]);var _=Object(h.useRef)(!1);return Object(h.useEffect)((function(){function t(t){E.current.goToAndPlay(t,!0),E.current.setDirection(a)}C&&(!0===n?w?(E.current.playSegments(w,!0),_.current=!0,-1===a&&t(w[1])):(_.current&&E.current.resetSegments(!0),_.current=!1,-1===a?t(E.current.getDuration(!0)):E.current.play()):!1===n&&E.current.pause())}),[n,w,C]),Object(h.useEffect)((function(){C&&(Number.isNaN(i)||E.current.setSpeed(i))}),[i,C]),Object(h.useEffect)((function(){C&&E.current.setDirection(a)}),[a,C]),Object(h.useEffect)((function(){C&&null!=o&&(n?E.current.goToAndPlay(o,!0):E.current.goToAndStop(o,!0))}),[o,n,C]),u.a.createElement("div",Uc({},b,{ref:x}))}))).propTypes={animationData:Sh.object,path:Sh.string,play:Sh.bool,goTo:Sh.number,speed:Sh.number,direction:Sh.number,loop:Sh.oneOfType([Sh.number,Sh.bool]),segments:Sh.oneOfType([Sh.arrayOf(Sh.number),Sh.bool]),rendererSettings:Sh.object,renderer:Sh.string,audioFactory:Sh.func,onComplete:Sh.func,onLoopComplete:Sh.func,onEnterFrame:Sh.func,onSegmentStart:Sh.func},Ah.defaultProps={animationData:null,path:null,play:null,segments:null,goTo:null,speed:1,direction:1,loop:!0,rendererSettings:{},renderer:"svg",audioFactory:null,onLoad:function(){},onComplete:function(){},onLoopComplete:function(){},onEnterFrame:function(){},onSegmentStart:function(){}},Ah),Ph=function(){var t=C(),e=b()(t,1)[0],r=e.importPercent,n=e.importStatus,i=100===r?"import-done":"",a="",s="";return r<=25&&(a="import-1",s=Object(x.__)("1. Installing required theme, plugins, forms, etc","astra-sites")),r>25&&r<=50&&(a="import-2",s=Object(x.__)("2. Importing pages, menus, posts, etc","astra-sites")),r>50&&r<=75&&(a="import-3",s=Object(x.__)("3. Setting up customizer settings and ther site settings","astra-sites")),r>75&&r<=100&&(a="import-4",s=Object(x.__)("4. Finalizing last few settings","astra-sites")),Object(c.createElement)("div",{className:"ist-import-progress"},Object(c.createElement)("div",{className:"ist-import-progress-info"},Object(c.createElement)("div",{className:"ist-import-progress-info-text"},100!==r&&s,100===r&&Object(c.createElement)(c.Fragment,null,Object(x.__)("Done ","astra-sites"),E.tada)),Object(c.createElement)("div",{className:"ist-import-progress-info-precent"},r,"%")),Object(c.createElement)("div",{className:"ist-import-progress-bar-wrap"},Object(c.createElement)("div",{className:"ist-import-progress-bar-bg"},Object(c.createElement)("div",{className:"ist-import-progress-bar ".concat(i," ").concat(a)})),Object(c.createElement)("div",{className:"import-progress-gap"},Object(c.createElement)("span",null),Object(c.createElement)("span",null),Object(c.createElement)("span",null))),Object(c.createElement)("div",{className:"ist-import-progress-info"},Object(c.createElement)("div",{className:"ist-import-progress-info-text"},100!==r&&Object(c.createElement)("p",null,n+Object(ia.decodeEntities)("&nbsp;")),100===r&&Object(c.createElement)("p",null,Object(x.__)("Redirecting you in ","astra-sites"),Object(c.createElement)("span",{id:"redirect-counter"},Object(x.__)("3 seconds…","astra-sites"))))))},Oh=(r(82),function(){var t=C(),e=b()(t,2),r=e[0],n=r.importErrorMessages,i=r.importPercent,a=r.currentIndex,s=r.tryAgainCount,o=r.templateId,l=e[1],h="https://wpastra.com/starter-templates-support/?ip="+starterTemplates.clientIP+"&template-id="+o+"&subject="+n.errorText,u="";return i<=25&&(u="import-1"),i>25&&i<=50&&(u="import-2"),i>50&&i<=75&&(u="import-3"),i>75&&i<=100&&(u="import-4"),Object(c.createElement)("div",{className:"ist-import-error"},Object(c.createElement)("div",{className:"ist-import-progress-info"},Object(c.createElement)("div",{className:"ist-import-progress-info-text label-text"},Object(x.__)("Error Occured!","astra-sites")),Object(c.createElement)("div",{className:"ist-import-progress-info-precent"},i,"%")),Object(c.createElement)("div",{className:"ist-import-progress-bar-wrap"},Object(c.createElement)("div",{className:"ist-import-progress-bar-bg"},Object(c.createElement)("div",{className:"ist-import-progress-bar ".concat(u)})),Object(c.createElement)("div",{className:"import-progress-gap"},Object(c.createElement)("span",null),Object(c.createElement)("span",null),Object(c.createElement)("span",null))),Object(c.createElement)("div",{className:"ist-import-error-wrap ist-import-error-primary-wrap"},n.primaryText&&Object(c.createElement)("p",{className:"website-import-subtitle"},n.primaryText)),Object(c.createElement)("div",{className:"ist-import-error-box"},Object(c.createElement)("div",{className:"ist-import-error-wrap ist-import-error-secondary-wrap"},n.errorText&&"object"!==uc()(n.errorText)&&Object(c.createElement)("p",null,n.errorText),n.errorText&&"object"===uc()(n.errorText)&&Object(c.createElement)("div",null,Object(c.createElement)("pre",null,JSON.stringify(n.errorText,void 0,2))))),Object(c.createElement)("div",null,n.secondaryText&&Object(c.createElement)("p",{dangerouslySetInnerHTML:{__html:n.secondaryText}}),n.solutionText&&Object(c.createElement)("p",{className:"ist-import-error-solution",dangerouslySetInnerHTML:{__html:n.solutionText}}),!n.solutionText&&!n.tryAgain||n.tryAgain&&s>1&&Object(c.createElement)("p",{className:"ist-import-error-solution"},Object(ia.decodeEntities)(Object(x.__)("Please report this error&nbsp;","astra-sites")),Object(c.createElement)("a",{href:h,target:"_blank",rel:"noreferrer"},"here"),Object(ia.decodeEntities)(Object(x.__)("&nbsp;so we can fix it.","astra-sites")))),n.tryAgain&&Object(c.createElement)(R,{className:"ist-button",after:!0,onClick:function(){l({type:"set",importErrorMessages:{},importErrorResponse:[],importError:!1,tryAgainCount:s+1,resetCustomizer:!1,resetSiteOptions:!1,resetContent:!1,resetWidgets:!1,resetDone:!1,resetData:[],importStart:!1,importEnd:!1,importPercent:0,requiredPluginsDone:!1,notInstalledList:[],notActivatedList:[],currentIndex:a-1})}},Object(x.__)("Try Importing Again","astra-sites")))}),jh=r(35),Ih={complete:{posts:0,media:0,users:0,comments:0,terms:0},updateDelta:function(t,e){this.complete[t]+=e;var r=this;requestAnimationFrame((function(){r.render()}))},updateProgress:function(t,e,r,n,i){"undefined"!==t&&"undefined"!=e+"/"+r&&((0===(r=parseInt(r))||isNaN(r))&&(r=1),parseInt(e)/r*100<=100&&"function"==typeof n&&(n({type:"set",importStatus:Object(x.__)("Importing Content…","astra-sites")}),n({type:"set",importPercent:i+=5})))},render:function(t,e){for(var r=Object.keys(this.complete),n=0,i=0,a=r.length-1;a>=0;a--){var s=r[a];this.updateProgress(s,this.complete[s],this.data.count[s],t,e),n+=this.complete[s],i+=this.data.count[s]}this.updateProgress("total",n,i,t,e)}},_h=(r(83),function(){var t=C(),e=b()(t,2),r=e[0],n=r.resetDone,i=r.importStart,a=r.importEnd,s=r.importPercent,o=r.templateResponse,l=r.reset,u=r.themeStatus,p=r.currentIndex,f=r.importError,d=r.resetCustomizer,m=r.resetSiteOptions,g=r.resetContent,y=r.resetWidgets,v=r.siteLogo,E=r.activePalette,k=r.typography,S=r.customizerImportFlag,w=r.widgetImportFlag,P=r.contentImportFlag,O=r.themeActivateFlag,j=r.requiredPluginsDone,I=r.requiredPlugins,_=r.notInstalledList,T=r.notActivatedList,F=e[1],M=s,D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";F({type:"set",importError:!0,importErrorMessages:{primaryText:t,secondaryText:e,errorCode:n,errorText:r,solutionText:i,tryAgain:!0}}),localStorage.removeItem("st-import-start"),localStorage.removeItem("st-import-end");var s=new FormData;s.append("action","report_error"),s.append("error",JSON.stringify({primaryText:t,secondaryText:e,errorCode:n,errorText:r,solutionText:i,tryAgain:!0,stack:a})),s.append("id",o.id),s.append("plugins",JSON.stringify(I)),fetch(ajaxurl,{method:"post",body:s})},R=function(){_.length<=0||(M+=2,F({type:"set",importStatus:Object(x.__)("Installing Required Plugins.","astra-sites"),importPercent:M}),_.forEach((function(t){wp.updates.queue.push({action:"install-plugin",data:{slug:t.slug,init:t.init,name:t.name,success:function(){F({type:"set",importStatus:Object(x.sprintf)(// translators: Plugin Name.
8
- Object(x.__)("%1$s plugin installed successfully.","astra-sites"),t.name)});var e=T;e.push(t),F({type:"set",notActivatedList:e});var r=_;r.forEach((function(e,n){e.slug===t.slug&&r.splice(n,1)})),F({type:"set",notInstalledList:r})},error:function(t){D(Object(x.__)("Could not install the plugin list.","astra-sites"),"",t)}}})})),wp.updates.queueChecker())},B=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l){t.next=4;break}return F({type:"set",resetDone:!0,resetCustomizer:!0,resetSiteOptions:!0,resetContent:!0,resetWidgets:!0}),R(),t.abrupt("return");case 4:return M+=2,F({type:"set",importStatus:Object(x.__)("Reseting site.","astra-sites"),importPercent:M}),t.next=8,z();case 8:return t.next=10,G();case 10:return t.next=12,H();case 12:return t.next=14,L();case 14:return t.next=16,N();case 16:F({type:"set",resetContent:!0,importStatus:"Reset done"}),F({type:"set",importPercent:M+=10,resetContent:!0,importStatus:Object(x.__)("Reset for old website is done.","astra-sites")});case 19:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),L=function(){var t=new FormData;t.append("action","astra-sites-reset-terms-and-forms"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce),F({type:"set",importStatus:Object(x.__)("Resetting terms and forms.","astra-sites")}),fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.text()})).then((function(t){try{var e=JSON.parse(t);if(!e.success)throw e.data;F({type:"set",importPercent:M+=2,resetCustomizer:!0})}catch(e){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(e),"","","".concat(t))}})).catch((function(t){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(t.message),"","","".concat(t.message,": ").concat(t.stack))}))},N=function(){var t=new FormData;t.append("action","astra-sites-reset-posts"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce),F({type:"set",importStatus:Object(x.__)("Resetting posts.","astra-sites")}),fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.text()})).then((function(t){try{var e=JSON.parse(t);if(!e.success)throw e.data;F({type:"set",importPercent:M+=2,resetCustomizer:!0})}catch(e){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(e),"","","".concat(t))}})).catch((function(t){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(t.message),"","","".concat(t.message,": ").concat(t.stack))}))},z=function(){var t=Ol()(Il.a.mark((function t(){var e;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return F({type:"set",importStatus:Object(x.__)("Resetting customizer.","astra-sites")}),(e=new FormData).append("action","astra-sites-reset-customizer-data"),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),t.next=6,fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.text()})).then((function(t){try{var e=JSON.parse(t);if(!e.success)throw e.data;F({type:"set",importPercent:M+=2,resetCustomizer:!0})}catch(e){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(e.message),"","","".concat(t))}})).catch((function(t){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(t.message),"","","".concat(t.message,": ").concat(t.stack))}));case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),G=function(){var t=Ol()(Il.a.mark((function t(){var e;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return F({type:"set",importStatus:Object(x.__)("Resetting site options.","astra-sites")}),(e=new FormData).append("action","astra-sites-reset-site-options"),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),t.next=6,fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.text()})).then((function(t){try{var e=JSON.parse(t);if(!e.success)throw e.data;F({type:"set",importPercent:M+=2,resetSiteOptions:!0})}catch(e){D(Object(x.__)("Resetting site options Failed.","astra-sites"),"","".concat(e.message),"","","".concat(t))}})).catch((function(t){D(Object(x.__)("Resetting site options Failed.","astra-sites"),"","".concat(t.message),"","","".concat(t.message,": ").concat(t.stack))}));case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),H=function(){var t=Ol()(Il.a.mark((function t(){var e;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=new FormData).append("action","astra-sites-reset-widgets-data"),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),F({type:"set",importStatus:Object(x.__)("Resetting widgets.","astra-sites")}),t.next=6,fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.text()})).then((function(t){try{var e=JSON.parse(t);if(!e.success)throw e.data;F({type:"set",importPercent:M+=2,resetWidgets:!0})}catch(e){D(Object(x.__)("Resetting widgets failed.","astra-sites"),"",e,"","","".concat(t))}})).catch((function(t){D(Object(x.__)("Resetting widgets failed.","astra-sites"),"",t,"","","".concat(t.message,": ").concat(t.stack))}));case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Q=function(){var t=encodeURI(o["astra-site-wpforms-path"])||"";if(""!==t){F({type:"set",importStatus:Object(x.__)("Importing forms.","astra-sites")});var e=new FormData;e.append("action","astra-sites-import-wpforms"),e.append("wpforms_url",t),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:M+=2}),W()})).catch((function(t){D(Object(x.__)("Importing forms Failed.","astra-sites"),"",t)}))}else W()},W=function(){if(!S)return F({type:"set",importPercent:M+=5}),void X();F({type:"set",importStatus:Object(x.__)("Importing forms.","astra-sites")});var t=new FormData;t.append("action","astra-sites-import-customizer-settings"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:M+=5}),X()})).catch((function(t){D(Object(x.__)("Importing Customizer JSON Failed.","astra-sites"),"",t)}))},X=function(){if(!P)return F({type:"set",importPercent:M+=20}),void q();F({type:"set",importStatus:Object(x.__)("Importing Site Content.","astra-sites")});var t=encodeURI(o["astra-site-wxr-path"])||"",e=new FormData;e.append("action","astra-sites-import-prepare-xml"),e.append("wxr_url",t),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.json()})).then((function(t){if(F({type:"set",importPercent:M+=2}),!1===t.success)throw t.data.error||t.data;Ih.data=t.data,Ih.render(F,M);var e=new EventSource(Ih.data.url);e.onmessage=function(t){var r=JSON.parse(t.data);switch(r.action){case"updateDelta":Ih.updateDelta(r.type,r.delta);break;case"complete":!1===r.error?(e.close(),q()):D(astraSitesVars.xml_import_interrupted_primary,"",astraSitesVars.xml_import_interrupted_error,"",astraSitesVars.xml_import_interrupted_secondary)}},e.onerror=function(){throw e.close(),Object(x.__)("Importing Site Content Failed. - Import Process Interrupted","astra-sites")},e.addEventListener("log",(function(t){var e=JSON.parse(t.data),r=e.message||"";r&&"info"===e.level&&(r=r.replace(/"/g,(function(){return""}))),F({type:"set",importStatus:Object(x.sprintf)(// translators: Response importMessage
9
  Object(x.__)("Importing - %1$s","astra-sites"),r)})}))})).catch((function(t){D(Object(x.__)("Importing Site Content Failed.","astra-sites"),"",t)}))},q=function(){F({type:"set",importStatus:Object(x.__)("Importing Site Options.","astra-sites")});var t=new FormData;t.append("action","astra-sites-import-options"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:M+=5}),J()})).catch((function(t){D(Object(x.__)("Importing Site Options Failed.","astra-sites"),"",t)}))},J=function(){if(!w)return F({type:"set",importPercent:90}),void Y();F({type:"set",importStatus:Object(x.__)("Importing Widgets.","astra-sites")});var t=o["astra-site-widgets-data"]||"",e=new FormData;e.append("action","astra-sites-import-widgets"),e.append("widgets_data",t),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:90}),Y()})).catch((function(t){D(Object(x.__)("Importing Widgets Failed.","astra-sites"),"",t)}))},Y=function(){var t=Ol()(Il.a.mark((function t(){var e;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Hl(v);case 2:return t.next=4,Ql(JSON.stringify(E));case 4:return delete(e=k).preview,t.next=8,Wl(e);case 8:K();case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),K=function(){F({type:"set",importStatus:Object(x.__)("Final finishings.","astra-sites")});var t=new FormData;t.append("action","astra-sites-import-end"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce);var e=3;fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:100,importEnd:!0}),localStorage.setItem("st-import-end",+new Date),setInterval((function(){e--;var t=document.getElementById("redirect-counter");if(t)if(e<0)F({type:"set",currentIndex:p+1});else{var r=e<=1?" second…":" seconds…";t.innerHTML=e+r}}),1e3)})).catch((function(t){D(Object(x.__)("Final finishings Failed.","astra-sites"),"",t)}))};return Object(h.useEffect)((function(){i||a||f||(localStorage.setItem("st-import-start",+new Date),B())}),[o]),Object(h.useEffect)((function(){i||a||(null!==o?d&&m&&g&&y&&n&&(F({type:"set",resetDone:!0}),O?function(t){var e=b()(t,2),r=e[0].importPercent,n=e[1],i=r;"not-installed"===starterTemplates.themeStatus&&(wp.updates.shouldRequestFilesystemCredentials&&!wp.updates.ajaxLocked&&wp.updates.requestFilesystemCredentials(),n({type:"set",importPercent:i+=5,importStatus:Object(x.__)("Installing Astra Theme…","astra-sites")}),wp.updates.installTheme({slug:"astra"}),jQuery(document).on("wp-theme-install-success",(function(t,e){n({type:"set",themeStatus:e,importStatus:Object(x.__)("Astra Theme Installed.","astra-sites")})}))),"installed-but-inactive"===starterTemplates.themeStatus&&setTimeout((function(){var t=new FormData;t.append("action","astra-sites-activate-theme"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.json()})).then((function(t){t.success?n({type:"set",themeStatus:t,importStatus:Object(x.__)("Astra Theme Installed.","astra-sites")}):n({type:"set",importError:!0,importErrorMessages:{primaryText:Object(x.__)("Astra theme installation failed.","astra-sites"),secondaryText:"",errorCode:"",errorText:t.data,solutionText:"",tryAgain:!0}})})).catch((function(t){console.error(t)}))}),3e3),"installed-and-active"===starterTemplates.themeStatus&&n({type:"set",themeStatus:!0})}(t):F({type:"set",themeStatus:!0})):F({type:"set",importStatus:Object(x.__)("Invalid demo selected. Please contact us.","astra-sites")}))}),[d,m,g,y,n,o]),Object(h.useEffect)((function(){if(!i&&!a)return u&&n?void(null!==o?f||(F({type:"set",importStart:!0,importPercent:M+=5,importStatus:Object(x.__)("Starting Import.","astra-sites")}),R()):D(Object(x.__)("Fetching related demo failed.","astra-sites"))):(a&&(setTimeout((function(){F({type:"set",currentIndex:p+1})}),5e3),F({type:"set",importStatus:Object(x.__)("Import is already done.","astra-sites")})),void(i&&!a&&F({type:"set",importStatus:Object(x.__)("Import is already in progress.","astra-sites")})))}),[u,n,o]),Object(h.useEffect)((function(){j&&n&&u&&function(){var t=encodeURI(o["astra-site-cartflows-path"])||"";if(""!==t){F({type:"set",importStatus:Object(x.__)("Importing CartFlows flows.","astra-sites")});var e=new FormData;e.append("action","astra-sites-import-cartflows"),e.append("cartflows_url",t),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:M+=2}),Q()})).catch((function(t){D(Object(x.__)("Importing CartFlows flows Failed.","astra-sites"),"",t)}))}else Q()}()}),[j,n,u]),Object(h.useEffect)((function(){T.length<=0&&_.length<=0&&F({type:"set",requiredPluginsDone:!0})}),[T.length,_.length]),Object(h.useEffect)((function(){T.length>0&&function(t){M+=2,F({type:"set",importStatus:Object(x.sprintf)(// translators: Plugin Name.
10
  Object(x.__)("Activating %1$s plugin.","astra-sites"),t.name),importPercent:M});var e=new FormData;e.append("action","astra-required-plugin-activate"),e.append("init",t.init),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.json()})).then((function(e){if(!e.success)throw e.data.message;var r=T;r.forEach((function(e,n){e.slug===t.slug&&r.splice(n,1)})),F({type:"set",notActivatedList:r}),M+=2,F({type:"set",importStatus:Object(x.sprintf)(// translators: Plugin Name.
11
  Object(x.__)("%1$s activated.","astra-sites"),t.name),importPercent:M})})).catch((function(t){D(Object(x.__)("Could not activate the required plugin list.","astra-sites"),"",t,"",astraSitesVars.importFailedRequiredPluginsMessage)}))}(T[0])}),[T.length]),Object(c.createElement)(A,{content:Object(c.createElement)("div",{className:"middle-content middle-content-import"},Object(c.createElement)(c.Fragment,null,Object(c.createElement)("h1",null,Object(x.__)("We are building your website…","astra-sites")),f&&Object(c.createElement)("div",{className:"ist-import-process-step-wrap"},Object(c.createElement)(Oh,null)),!f&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"ist-import-process-step-wrap"},Object(c.createElement)(Ph,null)),Object(c.createElement)(wh,{loop:!0,animationData:jh,play:!0,style:{height:400,margin:"-70px auto -90px auto"}})))),actions:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(V,{before:!0,disabled:!0,customizeStep:!0},Object(x.__)("Back","astra-sites")))})});function Th(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Th(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Th(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Mh=function(t){var e=t.updateFormDetails,r=Object(h.useState)({option1:0,option2:0}),n=b()(r,2),i=n[0],a=n[1];return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"label-text row-label"},Object(x.__)("Tell us a little bit about yourself","astra-sites")),Object(c.createElement)("div",{className:"survey-fields-wrap"},Object(c.createElement)("input",{type:"text",className:"survey-text-input",name:"first_name",placeholder:Object(x.__)("Your First Name","astra-sites"),onChange:function(t){return e("first_name",t.target.value)}}),Object(c.createElement)("input",{type:"email",className:"survey-text-input",name:"email",placeholder:Object(x.__)("Your Work Email","astra-sites"),onChange:function(t){return e("email",t.target.value)}}),Object(c.createElement)("select",{name:"wp_user_type",className:0!==i.option1?"survey-select-input":"survey-select-input initial",defaultValue:"",onBlur:function(t){return e("wp_user_type",t.target.value)},onChange:function(t){e("wp_user_type",t.target.value),a(Fh(Fh({},i),{},{option1:t.target.selectedIndex}))}},Object(c.createElement)("option",{value:"",disabled:!0},Object(x.__)("I am…","astra-sites")),Object(c.createElement)("option",{value:"1"},Object(x.__)("Beginner","astra-sites")),Object(c.createElement)("option",{value:"2"},Object(x.__)("Intermidiate","astra-sites")),Object(c.createElement)("option",{value:"3"},Object(x.__)("Expert","astra-sites"))),Object(c.createElement)("select",{name:"build_website_for",className:0!==i.option2?"survey-select-input":"survey-select-input initial",defaultValue:"",onBlur:function(t){return e("build_website_for",t.target.value)},onChange:function(t){a(Fh(Fh({},i),{},{option2:t.target.selectedIndex}))}},Object(c.createElement)("option",{value:"",disabled:!0},Object(x.__)("I am building website for…","astra-sites")),Object(c.createElement)("option",{value:"1"},Object(x.__)("Myself/My Company","astra-sites")),Object(c.createElement)("option",{value:"2"},Object(x.__)("My Client","astra-sites")))))},Dh=function(){var t=Object(h.useState)(!0),e=b()(t,2),r=e[0],n=e[1],i=C(),a=b()(i,2),s=a[0],o=s.reset,l=s.customizerImportFlag,u=s.themeActivateFlag,p=s.widgetImportFlag,f=s.contentImportFlag,d=s.requiredPlugins,m=a[1],g=null!==d?d.required_plugins.inactive:[],y="installed-and-active"!==starterTemplates.themeStatus?"theme-check":"";return Object(c.createElement)("div",{className:"survey-form-advanced-wrapper ".concat(r?"show-section":"hidden-section")},Object(c.createElement)("p",{className:"label-text row-label",onClick:function(){n(!r)}},Object(x.__)("Advanced Options","astra-sites"),Object(c.createElement)("span",{className:"advanced-options-icons"},r?E.angleUP:E.angleDown)),Object(c.createElement)("div",{className:"survey-advanced-section"},Object(c.createElement)("ul",null,"yes"===starterTemplates.firstImportStatus&&Object(c.createElement)("li",null,Object(c.createElement)("input",{type:"checkbox",id:"reset-site",name:"reset-site",defaultChecked:o,onChange:function(){m({type:"set",reset:!o})}}),Object(c.createElement)("label",{htmlFor:"reset-site"}," ",Object(x.__)("Delete Previously imported sites","astra-sites")),Object(c.createElement)(Tl,{content:Object(c.createElement)("span",null,Object(x.__)("WARNING: Selecting this option will delete all data from the previous import. Choose this option only if this is intended.","astra-sites"),Object(c.createElement)("br",null),Object(x.__)("Choose this option only if this is intended.You can find the backup to the current customizer settings at /wp-content/uploads astra-sites","astra-sites"))},E.questionMark)),"installed-and-active"!==starterTemplates.themeStatus&&Object(c.createElement)("li",null,Object(c.createElement)("input",{type:"checkbox",id:"import-theme",name:"import-theme",defaultChecked:u,onChange:function(){m({type:"set",themeActivateFlag:!u,customizerImportFlag:!u})}}),Object(c.createElement)("label",{htmlFor:"import-theme"}," ",Object(x.__)("Install & Activate Astra Theme","astra-sites")),Object(c.createElement)(Tl,{content:Object(x.__)("To import the site in the original format, you would need the Astra theme activated. You can import it with any other theme, but the site might lose some of the design settings and look a bit different.","astra-sites")},E.questionMark)),u&&Object(c.createElement)("li",{className:y},Object(c.createElement)("input",{type:"checkbox",id:"import-customizer",name:"import-customizer",defaultChecked:l,onChange:function(){m({type:"set",customizerImportFlag:!l})}}),Object(c.createElement)("label",{htmlFor:"import-customizer"}," ",Object(x.__)("Import Customizer Settings","astra-sites")),Object(c.createElement)(Tl,{content:Object(x.__)("Starter Templates customizer serves global settings that give uniform design to the website. Choosing this option will override your current customizer settings.","astra-sites")},E.questionMark)),Object(c.createElement)("li",null,Object(c.createElement)("input",{type:"checkbox",id:"import-widgets",name:"import-widgets",defaultChecked:p,onChange:function(){m({type:"set",widgetImportFlag:!p})}}),Object(c.createElement)("label",{htmlFor:"import-widgets"}," ",Object(x.__)("Import Widgets","astra-sites"))),g.length>0&&Object(c.createElement)("li",null,Object(c.createElement)("input",{type:"checkbox",id:"import-plugins",name:"import-plugins",defaultChecked:!0,disabled:!0}),Object(c.createElement)("label",{htmlFor:"import-plugins"}," ",Object(x.__)("Install Required Plugins","astra-sites")),Object(c.createElement)(Tl,{content:Object(c.createElement)("div",null,Object(c.createElement)("span",null,Object(x.__)("Plugins needed to import this template are missing. Required plugins will be installed and activated automatically.","astra-sites")),Object(c.createElement)("ul",null,g.map((function(t,e){return Object(c.createElement)("li",{key:e},Object(ia.decodeEntities)("&bull; ".concat(t.name)))}))))},E.questionMark)),Object(c.createElement)("li",null,Object(c.createElement)("input",{type:"checkbox",id:"import-content",name:"import-content",defaultChecked:f,onChange:function(){m({type:"set",contentImportFlag:!f})}}),Object(c.createElement)("label",{htmlFor:"import-content"}," ",Object(x.__)("Import Content","astra-sites")),Object(c.createElement)(Tl,{content:Object(x.__)("Selecting this option will import dummy pages, posts, images, and menus. If you do not want to import dummy content, please uncheck this option.","astra-sites")},E.questionMark)))))};function Rh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rh(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r(84);var Vh=[{content:Object(c.createElement)((function(){var t=C(),e=b()(t,2),r=e[0].currentIndex,n=e[1],i=Object(h.useState)(!0),a=b()(i,2),s=a[0],o=a[1];return Object(c.createElement)(A,{content:Object(c.createElement)("div",{className:"welcome-screen"},Object(c.createElement)("h1",{className:"d-flex-center-align"},Object(x.__)("Getting Started with Starter Templates","astra-sites")),Object(c.createElement)("p",{className:"screen-description"},Object(x.__)("This is the very beginning of the fastest and easiest website building experience you`ve ever had!","astra-sites")),Object(c.createElement)("div",{className:"video-showcase",onClick:function(){var t=document.getElementById("st-welcome-video"),e=t.src.replace("&mute=1&controls=0","&mute=0&controls=1");t.src=e,o(!1)}},s&&Object(c.createElement)("div",{className:"click-to-play-wrap"},Object(c.createElement)("span",{className:"click-btn-text"},E.clickToPlay),Object(c.createElement)("span",{className:"youtube-btn middle-content"},E.youtube)),Object(c.createElement)("iframe",{src:"https://www.youtube-nocookie.com/embed/Ch6Yg-9eCyc?rel=0&autoplay=1&mute=1&controls=0&showinfo=0&loop=1&modestbranding=1&loop=1",frameBorder:"0",allow:"autoplay; encrypted-media",allowFullScreen:!0,title:"st-welcome-video",id:"st-welcome-video"})),Object(c.createElement)("div",{className:"get-started-wrap"},Object(c.createElement)(O,{onClick:function(){n({type:"set",currentIndex:r+1})}},Object(x.__)("Build Your Website Now","astra-sites")))),actions:null})}),null),class:"step-welcome"},{content:Object(c.createElement)(na,null),class:"step-page-builder"},{header:Object(c.createElement)((function(){return Object(c.createElement)("div",{className:"site-list-header row"},Object(c.createElement)("div",{className:"st-header-left"},Object(c.createElement)(sc,null)),Object(c.createElement)("div",{className:"st-header-right"},Object(c.createElement)(cc,null),Object(c.createElement)(Oc,null),Object(c.createElement)(oc,null),Object(c.createElement)(lc,null)))}),null),content:Object(c.createElement)((function(){var t=Object(h.useState)(!0),e=b()(t,2),r=e[0],n=e[1],i=Object(h.useState)({sites:{},tags:[],defaultSites:{},allFavorites:[]}),a=b()(i,2),s=a[0],o=a[1],l=C(),u=b()(l,2),p=u[0],f=u[1],d=p.favoriteSiteIDs,m=p.onMyFavorite,g=p.builder,y=p.siteSearchTerm,v=p.siteType,E=p.siteOrder,k=p.siteCategory;Object(h.useEffect)((function(){f({type:"set",templateResponse:null,selectedTemplateName:"",selectedTemplateType:""});var t=Sl(y,v,"",g),e=ac(ac({},t.sites),t.related);"latest"===E&&Object.keys(e).length&&(e=Qo(e,"publish-date").reverse());var r=[],i=astraSitesVars.all_sites;if(m&&Object.keys(i).length>0)for(var a in i)d.length&&d.includes(a)&&r.push(ac({id:a.replace("id-",""),image:i[a]["thumbnail-image-url"],title:Object(ia.decodeEntities)(i[a].title),badge:"agency-mini"===i[a]["astra-sites-type"]?Object(x.__)("Premium","astra-sites"):""},i[a]));o(ac(ac(ac({},s),t),{},{defaultSites:Sl("","","",g).sites,sites:e,allFavorites:r})),setTimeout((function(){n(!1)}),300)}),[d,m,g,y,v,E,k]),W(p);var S=Object.keys(s.sites).length;return Object(c.createElement)(A,{content:Object(c.createElement)("div",{className:"site-list-screen-container ".concat(r?"site-loading":"site-loaded")},Object(c.createElement)(wl,null),Object(c.createElement)("div",{className:"site-list-screen-wrap"},Object(c.createElement)("h1",null,Object(x.__)("What type of website are you building?","astra-sites")),Object(c.createElement)("div",{className:"site-list-content"},Object(c.createElement)(Kl,null),Object(c.createElement)("div",{className:"st-templates-content"},Object(c.createElement)("div",{className:"st-other-filters"},Object(c.createElement)("div",{className:"st-category-filter"},Object(c.createElement)(tc,null)),Object(c.createElement)("div",{className:"st-type-and-order-filters"},"gutenberg"!==g&&Object(c.createElement)(Zl,null),Object(c.createElement)($l,null))),m?Object(c.createElement)(c.Fragment,null,s.allFavorites.length?Object(c.createElement)("div",{className:"st-sites-grid"},Object(c.createElement)(Jl,{sites:s.allFavorites})):Object(c.createElement)(c.Fragment,null,Object(c.createElement)(rc,null),Object(c.createElement)(nc,{sites:s.defaultSites}))):Object(c.createElement)(c.Fragment,null,S?Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"st-sites-grid"},y&&Object(c.createElement)("div",{className:"st-sites-found-message"},Object(x.sprintf)(
5
  Object(x.__)("Your search - %1$s - did not match any Starter Templates.","astra-sites"),Object(ia.decodeEntities)(e)))):null}),rc=(r(73),function(){return Object(c.createElement)("div",{className:"st-no-favorites"},Object(c.createElement)("h3",null,Object(x.__)("No favorites added. Press the heart icon to add templates as favorites.","astra-sites")))}),nc=function(t){var e=t.sites;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"st-sites-grid"},Object(c.createElement)("div",{className:"st-sites-found-message"},Object(x.__)("Other suggested Starter Templates","astra-sites")),Object(c.createElement)(Jl,{sites:e})))};function ic(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ac(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ic(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ic(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var sc=(r(74),r(75),function(){return Object(c.createElement)("div",{className:"branding-wrap"},H()?Object(c.createElement)("h3",null,astraSitesVars.whiteLabelName):Object(c.createElement)(Ll,{className:"ist-logo",src:"".concat(starterTemplates.imageDir,"logo.svg"),alt:Object(x.__)("Starter Templates","astra-sites")}))}),oc=function(){var t=C(),e=b()(t,2),r=e[0].builder,n=e[1],i=[{id:"gutenberg",title:Object(x.__)("Block Editor","astra-sites"),image:"".concat(starterTemplates.imageDir,"block-editor.svg")},{id:"elementor",title:Object(x.__)("Elementor","astra-sites"),image:"".concat(starterTemplates.imageDir,"elementor.svg")},{id:"beaver-builder",title:Object(x.__)("Beaver Builder","astra-sites"),image:"".concat(starterTemplates.imageDir,"beaver-builder.svg")}];return"1"===starterTemplates.isBrizyEnabled&&i.push({id:"brizy",title:Object(x.__)("Brizy","astra-sites"),image:"".concat(starterTemplates.imageDir,"brizy.svg")}),Object(c.createElement)("div",{className:"st-page-builder-filter"},Object(c.createElement)(Ul,{value:r,options:i,className:"st-page-builder-toggle",onClick:function(t,e){n({type:"set",builder:e.id,siteCategory:Qh.siteCategory,siteType:"",siteOrder:"popular",onMyFavorite:!1});var r=new FormData;r.append("action","astra-sites-change-page-builder"),r.append("_ajax_nonce",astraSitesVars._ajax_nonce),r.append("page_builder",e.id),fetch(ajaxurl,{method:"post",body:r})}}))},lc=(r(76),function(){return Object(c.createElement)("a",{className:"st-exit-to-dashboard",href:starterTemplates.adminUrl},Object(c.createElement)(Tl,{content:Object(x.__)("Exit to Dashboard","astra-sites")},E.dashboard))}),cc=(r(77),function(){var t=C(),e=b()(t,2),r=e[0],n=e[1],i=r.onMyFavorite;return Object(c.createElement)("div",{className:"st-my-favorite ".concat(i?"active":""),onClick:function(t){t.stopPropagation(),n({type:"set",onMyFavorite:!i,siteType:"",siteOrder:Qh.siteOrder,siteCategory:Qh.siteCategory,siteSearchTerm:""})}},Object(c.createElement)(Tl,{content:Object(x.__)("My Favorite","astra-sites")},E.favorite))}),hc=r(17),uc=r.n(hc);function pc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pc(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dc(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return mc(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mc(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw a}}}}function mc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var gc=wp.ajax.post,yc=[],vc=!1,bc=function(t,e){var r=new FormData;return r.append(t,e),r},xc=function(){var t=Ol()(Il.a.mark((function t(){var e,r,n,i;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-update-library")});case 3:return e=t.sent,t.next=6,e.json();case 6:return r=t.sent,t.next=9,r.data;case 9:if(n=t.sent,i=null,yc=[],"updated"!==n){t.next=17;break}yc.push(!0),vc=!0,t.next=53;break;case 17:if("batch"!==n){t.next=53;break}return t.next=20,Pc();case 20:return i=t.sent,t.t0=yc,t.next=24,wc();case 24:return t.t1=t.sent,t.t0.push.call(t.t0,t.t1),t.t2=yc,t.next=29,Sc();case 29:return t.t3=t.sent,t.t2.push.call(t.t2,t.t3),t.t4=yc,t.next=34,Ac();case 34:return t.t5=t.sent,t.t4.push.call(t.t4,t.t5),t.t6=yc,t.next=39,Cc();case 39:return t.t7=t.sent,t.t6.push.call(t.t6,t.t7),t.t8=yc,t.next=44,kc();case 44:return t.t9=t.sent,t.t8.push.call(t.t8,t.t9),t.t10=yc,t.next=49,Ec();case 49:t.t11=t.sent,t.t10.push.call(t.t10,t.t11),yc.push(i),vc=!0;case 53:return t.abrupt("return",i);case 56:return t.prev=56,t.t12=t.catch(0),yc.push(!1),vc=!0,t.abrupt("return",!1);case 61:case"end":return t.stop()}}),t,null,[[0,56]])})));return function(){return t.apply(this,arguments)}}(),Ec=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-update-library-complete")}).then((function(t){return t.json()}));case 3:if(!0!==t.sent.success){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),kc=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-import-page-builders")}).then((function(t){return t.json()}));case 3:if(!0!==t.sent.success){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),Cc=function(){var t=Ol()(Il.a.mark((function t(){var e,r,n,i,a;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-get-blocks-request-count")}).then((function(t){return t.json()})).then((function(t){return t.data}));case 3:if(!(e=t.sent)){t.next=11;break}for(r=[],n=1;n<=e;n++)(i=new FormData).append("action","astra-sites-import-blocks"),i.append("page_no",n),r.push(fetch(ajaxurl,{method:"post",body:i}));return t.next=9,Promise.allSettled(r).then((function(t){return Promise.all(t.map((function(t){return t.value.json()})))}));case 9:return a=t.sent,t.abrupt("return",a.every((function(t){return!0===t.success})));case 11:t.next=16;break;case 13:return t.prev=13,t.t0=t.catch(0),t.abrupt("return",!1);case 16:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(){return t.apply(this,arguments)}}(),Ac=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-import-page-builders")}).then((function(t){return t.json()}));case 3:if(!0!==t.sent.success){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),Sc=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-import-all-categories")}).then((function(t){return t.json()}));case 3:if(!0!==t.sent.success){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),wc=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(ajaxurl,{method:"post",body:bc("action","astra-sites-import-all-categories-and-tags")}).then((function(t){return t.json()}));case 3:if(!0!==t.sent.success){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),Pc=function(){var t=Ol()(Il.a.mark((function t(){var e,r,n,i,a;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,gc({action:"astra-sites-get-sites-request-count",_ajax_nonce:starterTemplates.nonce});case 3:if(!(e=t.sent)){t.next=11;break}for(r=[],n=1;n<=e;n++)(i=new FormData).append("action","astra-sites-import-sites"),i.append("page_no",n),r.push(fetch(ajaxurl,{method:"post",body:i}));return t.next=9,Promise.allSettled(r).then((function(t){return Promise.all(t.map((function(t){return t.value.json()})))})).then((function(t){var e,r={},n=dc(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;"object"===uc()(i.data)&&(r=fc(fc({},r),i.data))}}catch(t){n.e(t)}finally{n.f()}return r}));case 9:return a=t.sent,t.abrupt("return",a);case 11:return t.abrupt("return",null);case 14:return t.prev=14,t.t0=t.catch(0),t.abrupt("return",null);case 17:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(){return t.apply(this,arguments)}}(),Oc=(r(78),function(){var t=Object(h.useState)(!1),e=b()(t,2),r=e[0],n=e[1],i=function(){if(yc&&vc){var t=yc.every(Boolean);return yc=[],vc=!1,t}}(),a=function(){var t=Ol()(Il.a.mark((function t(e){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.stopPropagation(),!r){t.next=3;break}return t.abrupt("return");case 3:return n(!0),t.next=6,xc();case 6:n(!1);case 7:case"end":return t.stop()}}),t)})));return function(_x){return t.apply(this,arguments)}}();return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"st-sync-library ".concat(r?"loading":""),onClick:a},Object(c.createElement)(Tl,{content:Object(x.__)("Sync Library","astra-sites")},E.sync)),!r&&!0===i&&Object(c.createElement)(Nl,{type:"success",message:Object(x.__)("Library refreshed successfully","astra-sites"),autoHideDuration:5,bottomRight:!0}),!r&&!1===i&&Object(c.createElement)(Nl,{type:"error",message:Object(x.__)("Library refreshed failed!","astra-sites"),autoHideDuration:5,bottomRight:!0}))}),jc=(r(79),function(){var t=C(),e=b()(t,2),r=e[0],n=r.selectedTemplateName,i=r.currentIndex,a=e[1];return Object(c.createElement)("div",{className:"change-template-wrap"},Object(c.createElement)("div",{className:"template-name"},Object(c.createElement)("p",{className:"label"},Object(x.__)("Selected Template:","astra-sites")),Object(c.createElement)("h5",null,Object(ia.decodeEntities)(n))),Object(c.createElement)("div",{className:"change-btn-wrap",onClick:function(){a({type:"set",currentIndex:i-1,currentCustomizeIndex:0})}},Object(c.createElement)("span",{className:"change-btn"},E.cross)))}),Ic=r(18),_c=r.n(Ic),Tc=starterTemplates.restNonce,Fc=r(32),Mc=r(33),Dc=r(20);function Rc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rc(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r(80);var Vc=function(){var t=C(),e=b()(t,2),r=e[0],n=r.siteLogo,i=r.builder,a=r.currentCustomizeIndex,s=r.currentIndex,o=e[1];Object(Fc.addFilter)("editor.MediaUpload","core/edit-post/components/media-upload/replace-media-upload",(function(){return Dc.MediaUpload}));var l=function(t){o({type:"set",siteLogo:t}),Q({param:"siteLogo",data:t})},h=function(){l(Qh.siteLogo)},u=function(t){var e=Bc(Bc({},n),{},{width:t});o({type:"set",siteLogo:e}),Q({param:"siteLogo",data:e})},p=function(){o("beaver-builder"===i||"brizy"===i?{type:"set",currentCustomizeIndex:a+2}:{type:"set",currentCustomizeIndex:a+1})},f=function(){o({type:"set",currentIndex:s-1,currentCustomizeIndex:0})},d=function(t){n.url&&(t.stopPropagation(),u(Qh.siteLogo.width))};return Object(c.createElement)(Dc.MediaUpload,{onSelect:function(t){return function(t){var e,r,i,a={id:t.id,url:t.url,width:n.width};"http:"===window.location.protocol?(e=t.url,r=function(t){a.dataUri=t,l(a)},(i=new Image).onload=function(){var t=document.createElement("canvas");t.width=this.naturalWidth,t.height=this.naturalHeight,t.getContext("2d").drawImage(this,0,0),r(t.toDataURL("image/png"))},i.src=e):l(a)}(t)},allowedTypes:["image"],value:n.id,render:function(t){var e=t.open;return Object(c.createElement)(c.Fragment,null,""!==n.url&&void 0!==n.url?Object(c.createElement)("div",{className:"ist-logo-wrapper"},Object(c.createElement)("div",{className:"ist-remove-logo",onClick:h,title:Object(x.__)("Remove Logo","astra-sites")},Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"#333333"},Object(c.createElement)("path",{d:"M8 0.7L7.3 0L4 3.3L0.7 0L0 0.7L3.3 4L0 7.3L0.7 8L4 4.7L7.3 8L8 7.3L4.7 4L8 0.7Z",fill:"#333333"}))),Object(c.createElement)("div",{className:"ist-selected-image",onClick:e},Object(c.createElement)("div",{onClick:e,className:"ist-logo-preview-wrap"},Object(c.createElement)("img",{alt:Object(x.__)("Site Logo","astra-sites"),src:n.url}),Object(c.createElement)("div",{className:"ist-change-logo",onClick:e},Object(x.__)("Change Logo","astra-sites"))))):"",""===n.url?Object(c.createElement)("div",null,Object(c.createElement)(R,{className:"ist-button ist-button-outline",onClick:e},Object(c.createElement)("h5",null,Object(x.__)("Upload File Here","astra-sites")),Object(c.createElement)("p",null,Object(x.__)("Suggested Dimensions: 180x60 pixels","astra-sites")))):"",""===n.url&&Object(c.createElement)("div",{className:"logo-skip-info"},Object(c.createElement)("h5",null,Object(x.__)("Don't have Logo? No Problem!","astra-sites")),Object(c.createElement)("p",null,Object(x.__)("You can upload it later","astra-sites"))),Object(c.createElement)("div",{className:"astra-sites-ai-logo-wrap"},Object(c.createElement)("div",{className:"label"},Object(x.__)("Logo Width","astra-sitess")),Object(c.createElement)("div",{className:"control-reset ".concat(n.width===Qh.siteLogo.width?"disabled":""),onClick:d},E.reset)),Object(c.createElement)("div",{className:"astra-sites-ai-rangecontrol-wrap"},Object(c.createElement)(Mc.RangeControl,{value:n.width,min:0,max:500,step:1,onChange:function(t){u(t)},trackColor:"#4361ee",disabled:""===n.url})),Object(c.createElement)(R,{className:"ist-button",onClick:p,after:!0},""!==n.url?Object(x.__)("Continue","astra-sites"):Object(x.__)("Skip & Continue","astra-sites")),Object(c.createElement)(V,{onClick:f},Object(x.__)("Back","astra-sites")))}})},Lc=[{slug:"style-1",title:Object(x.__)("Style 1","astra-sites"),colors:["#8E43F0","#7215EA","#FFFFFF","#FAF5FF","#726C7A","#3C2F4B","#000000","#4B4F58","#F6F7F8"]},{slug:"style-2",title:Object(x.__)("Style 2","astra-sites"),colors:["#FFB72B","#FF9900","#FFFFFF","#F9F5EE","#6D6A64","#3A362D","#000000","#4B4F58","#F6F7F8"]},{slug:"style-3",title:Object(x.__)("Style 3","astra-sites"),colors:["#FF2459","#D90336","#FFFFFF","#FAF4F6","#6B6365","#352A2D","#000000","#4B4F58","#F6F7F8"]},{slug:"style-4",title:Object(x.__)("Style 4","astra-sites"),colors:["#2B60E8","#0A43D7","#FFFFFF","#F7F7FA","#64666C","#2E323E","#000000","#4B4F58","#F6F7F8"]},{slug:"style-5",title:Object(x.__)("Style 5","astra-sites"),colors:["#1BAE70","#008D52","#FFFFFF","#F3FAF7","#5C6461","#26312C","#000000","#4B4F58","#F6F7F8"]},{slug:"style-6",title:Object(x.__)("Style 6","astra-sites"),colors:["#FF8F3F","#EC6300","#FFFFFF","#F9F6F4","#66625F","#37302A","#000000","#4B4F58","#F6F7F8"]}],Nc=[{slug:"style-1",title:Object(x.__)("Style 1","astra-sites"),colors:["#8E43F0","#7215EA","#3C2F4B","#726C7A","#FAF5FF","#FFFFFF","#000000","#4B4F58","#F6F7F8"]},{slug:"style-2",title:Object(x.__)("Style 2","astra-sites"),colors:["#FFB72B","#FF9900","#3A362D","#6D6A64","#F9F5EE","#FFFFFF","#000000","#4B4F58","#F6F7F8"]},{slug:"style-3",title:Object(x.__)("Style 3","astra-sites"),colors:["#FF2459","#D90336","#352A2D","#6B6365","#FAF4F6","#FFFFFF","#000000","#4B4F58","#F6F7F8"]},{slug:"style-4",title:Object(x.__)("Style 4","astra-sites"),colors:["#2B60E8","#0A43D7","#2E323E","#64666C","#F7F7FA","#FFFFFF","#000000","#4B4F58","#F6F7F8"]},{slug:"style-5",title:Object(x.__)("Style 5","astra-sites"),colors:["#1BAE70","#008D52","#26312C","#5C6461","#F3FAF7","#FFFFFF","#000000","#4B4F58","#F6F7F8"]},{slug:"style-6",title:Object(x.__)("Style 6","astra-sites"),colors:["#FF8F3F","#EC6300","#37302A","#66625F","#F9F6F4","#FFFFFF","#000000","#4B4F58","#F6F7F8"]}];function zc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Gc=function(t,e){if(!t)return"";if(t){var r=t.match(/'([^']+)'/);return r?r[1]:"inherit"===t?e:t}return e||void 0},Hc=[{"body-font-family":"'Open Sans', sans-serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"1.7","headings-font-family":"'Playfair Display', serif","headings-font-weight":"700","headings-line-height":"1.2","headings-font-variant":"700"},{"body-font-family":"'Lora', serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Lato', sans-serif","headings-font-weight":"700","headings-line-height":"1.2","headings-font-variant":"700"},{"body-font-family":"'Roboto', sans-serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:17,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Barlow Condensed', sans-serif","headings-font-weight":"600","headings-line-height":"1.2","headings-font-variant":"600"},{"body-font-family":"'Source Sans Pro', sans-serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:17,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":1.7,"headings-font-family":"'Montserrat', sans-serif","headings-font-weight":"700","headings-line-height":"1.3","headings-font-variant":"700"},{"body-font-family":"'Karla', sans-serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:17,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'Rubik', sans-serif","headings-font-weight":"500","headings-line-height":"1.3","headings-font-variant":"500"},{"body-font-family":"'Work Sans', sans-serif","body-font-variant":"400","body-font-weight":"400","font-size-body":{desktop:16,tablet:"",mobile:"","desktop-unit":"px","tablet-unit":"px","mobile-unit":"px"},"body-line-height":"","headings-font-family":"'DM Serif Display', serif","headings-font-weight":"400","headings-line-height":"1.2","headings-font-variant":"400"}],Qc=[{content:function(){var t=C(),e=b()(t,2),r=e[0],n=r.licenseStatus,i=r.selectedTemplateType,a=e[1];return Object(h.useEffect)((function(){a({type:"set",designStep:1})}),[]),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(jc,null),Object(c.createElement)("div",{className:"customizer-header"},Object(c.createElement)("div",{className:"header-name"},!n&&"free"!==i&&Object(c.createElement)("p",{className:"premium-notice"},Object(x.__)("This is a Premium Template","astra-sites")),Object(c.createElement)("h3",{className:"ist-customizer-heading"},Object(x.__)("Logo","astra-sites")),Object(c.createElement)("p",{className:"screen-description"},Object(x.__)("Choose logo for your site. You can update it anytime later.","astra-sites")))))},controls:function(){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Vc,null))},class:"customize-business-logo"},{content:function(){var t=C(),e=b()(t,2),r=e[0],n=r.licenseStatus,i=r.selectedTemplateType,a=e[1];return Object(h.useEffect)((function(){a({type:"set",designStep:2})}),[]),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(jc,null),Object(c.createElement)("div",{className:"customizer-header"},Object(c.createElement)("div",{className:"header-name"},!n&&"free"!==i&&Object(c.createElement)("p",{className:"premium-notice"},Object(x.__)("This is a Premium Template","astra-sites")),Object(c.createElement)("h3",{className:"ist-customizer-heading"},Object(x.__)("Colors","astra-sites")),Object(c.createElement)("p",{className:"screen-description"},Object(x.__)("Choose colors for your site. You can update them anytime later.","astra-sites")))))},controls:function(){var t=C(),e=b()(t,2),r=e[0],n=r.activePaletteSlug,i=r.templateResponse,a=r.currentCustomizeIndex,s=e[1],o=Object(h.useState)([]),l=b()(o,2),u=l[0],p=l[1],f=Object(h.useState)(Nc),d=b()(f,2),m=d[0],g=d[1],y=function(t,e){e&&(s({type:"set",activePaletteSlug:e.slug,activePalette:e}),Q({param:"colorPalette",data:e}))};return Object(h.useEffect)((function(){var t=function(t){var e=[];if(t&&"astra-site-customizer-data"in t){var r=t["astra-site-customizer-data"]||"";if(r){var n=r["astra-settings"]["global-color-palette"].palette||[];n&&(e=[{slug:"default",title:Object(x.__)("Default","astra-sites"),colors:n}])}}return e}(i);p(t);var e="light"===function(t){var e="light";return t&&"astra-site-color-scheme"in t&&""!==t["astra-site-color-scheme"]&&(e=t["astra-site-color-scheme"]),e}(i)?Nc:Lc;g(e)}),[i]),Object(c.createElement)(c.Fragment,null,u?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(B,{selected:n,options:u,onChange:function(t,e){y(0,e)},tabIndex:"0"})):"",Object(c.createElement)("h4",{className:"ist-secondary-heading"},Object(x.__)("You can also try:","astra-sites")),Object(c.createElement)(B,{selected:n,options:m,onChange:function(t,e){y(0,e)},tabIndex:"0"}),Object(c.createElement)(R,{className:"ist-button",onClick:function(){s({type:"set",currentCustomizeIndex:a+1})},after:!0},Object(x.__)("Continue","astra-sites")),Object(c.createElement)(V,{customizeStep:!0,onClick:function(){s({type:"set",currentCustomizeIndex:a-1})}},Object(x.__)("Back","astra-sites")))},actions:null,class:"customize-site-colors"},{content:function(){var t=C(),e=b()(t,2),r=e[0],n=r.licenseStatus,i=r.selectedTemplateType,a=e[1];return Object(h.useEffect)((function(){a({type:"set",designStep:3})}),[]),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(jc,null),Object(c.createElement)("div",{className:"customizer-header"},Object(c.createElement)("div",{className:"header-name"},!n&&"free"!==i&&Object(c.createElement)("p",{className:"premium-notice"},Object(x.__)("This is a Premium Template","astra-sites")),Object(c.createElement)("h3",{className:"ist-customizer-heading"},Object(x.__)("Fonts","astra-sites")),Object(c.createElement)("p",{className:"screen-description"},Object(x.__)("Choose fonts for your site. You can update them anytime later.","astra-sites")))))},controls:function(){var t=C(),e=b()(t,2),r=e[0],n=r.typographyIndex,i=r.typography,a=r.templateResponse,s=e[1],o=Object(h.useState)(Hc),l=b()(o,2),u=l[0],p=l[1];return Object(h.useEffect)((function(){if(null!==a){var t=[],e=function(t){var e={};if(t&&"astra-site-customizer-data"in t){var r=t["astra-site-customizer-data"]||"";if(r){var n=r["astra-settings"]||[],i=n["headings-font-family"];e={default:!0,"body-font-family":n["body-font-family"],"body-font-variant":n["body-font-variant"],"body-font-weight":n["body-font-weight"],"font-size-body":n["font-size-body"],"body-line-height":n["body-line-height"],"headings-font-family":i,"headings-font-weight":n["headings-font-weight"],"headings-line-height":n["headings-line-height"],"headings-font-variant":n["headings-font-variant"]}}}return e}(a);if(t.push(e),!document.getElementById("google-fonts-domain")){var r=document.createElement("link");r.id="google-fonts-domain",r.setAttribute("rel","preconnect"),r.setAttribute("href","https://fonts.gstatic.com"),document.head.appendChild(r)}if(!document.getElementById("google-fonts-url")){var i=document.createElement("link");i.id="google-fonts-url",i.setAttribute("rel","stylesheet");var o=[],l=e["body-font-family"]||"",c=parseInt(e["body-font-weight"])||"";c&&(c=":wght@".concat(c)),l&&(l=(l=Gc(l)).replace(" ","+"),o.push("family=".concat(l).concat(c)));var h=e["headings-font-family"]||"",f=parseInt(e["headings-font-weight"])||"";f&&(f=":wght@".concat(f)),h&&(h=(h=Gc(h,l)).replace(" ","+"),o.push("family=".concat(h).concat(f)));var d="";if(u){var m,g=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return zc(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zc(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw a}}}}(u);try{for(g.s();!(m=g.n()).done;){var y=m.value,v=Gc(y["headings-font-family"]).replaceAll(" ","+"),b=y["headings-font-weight"],x=Gc(y["body-font-family"]).replaceAll(" ","+"),E=y["body-font-weight"];d+="&family=".concat(v,":wght@").concat(b,"&family=").concat(x,":wght@").concat(E)}}catch(t){g.e(t)}finally{g.f()}d=d.replace(/[&]{1}$/i,"")}if(o){var k="https://fonts.googleapis.com/css2?".concat(o.join("&")).concat(d,"&display=swap");i.setAttribute("href",k),document.head.appendChild(i)}}0===n&&s({type:"set",typography:e}),u=t.concat(u),p(u)}}),[a]),Object(h.useEffect)((function(){Q({param:"siteTypography",data:JSON.parse(JSON.stringify(i))})}),[i]),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(G,{selected:n,options:u,onSelect:function(t,e){s({type:"set",typographyIndex:e,typography:u[e]||u[0]})}}))},actions:null,class:"customize-site-typography"},{content:function(){var t=C(),e=b()(t,2),r=e[0].builder,n=e[1];Object(h.useEffect)((function(){n({type:"set",designStep:1})}),[]);var i=Object(x.__)("This is a premium template and comes with our Essentials and Growth Bundle. <br/><br/> Get access to this premium template and 100+ more.","astra-sites");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(jc,null),Object(c.createElement)("div",{className:"customizer-header"},Object(c.createElement)("div",{className:"header-name"},Object(c.createElement)("h3",{className:"ist-customizer-heading"},Object(x.__)("Liked this Starter Template?","astra-sites")),Object(c.createElement)("p",{className:"screen-description",dangerouslySetInnerHTML:{__html:i}}),Object(c.createElement)(R,{className:"st-access-btn",onClick:function(){window.open(astraSitesVars.cta_links[r])}},Object(x.__)("Unlock Access","astra-sites"),Object(c.createElement)("img",{className:"st-get-access",alt:"Get Access",src:"".concat(starterTemplates.imageDir,"get-access.svg")})))))},controls:function(){var t=C(),e=b()(t,2),r=e[0],n=(r.templateResponse,r.currentCustomizeIndex),i=r.importError,a=r.currentIndex,s=r.validateLicenseStatus,o=e[1],l=Object(h.useState)(""),u=b()(l,2),p=u[0],f=u[1],d=Object(h.useState)(!1),m=b()(d,2),g=m[0],y=m[1],v=Object(h.useState)(""),k=b()(v,2),A=k[0],S=k[1];Object(h.useEffect)((function(){i&&o({type:"set",currentIndex:a+2})}),[i]);var w=g?"processing":"",P=Object(x.sprintf)(//translators: %1$s Support page URL.
6
  Object(x.__)("<b> Questions? </b> Get in touch with our %1$ssupport team%2$s.","astra-sites"),'<a href="https://wpastra.com/support/free-support/" target="_blank">',"</a>"),O=Object(x.sprintf)(//translators: %1$s Store page URL.
7
  Object(x.__)("If you have purchased our Essential or Growth Bundle, please install the premium version of the plugin that you can %1$sdownload.%2$s from our store.","astra-sites"),'<a href="https://store.brainstormforce.com/login/" target="_blank">',"</a>");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("h4",null,Object(x.__)("Already a customer?","astra-sites")),s&&Object(c.createElement)("p",{className:"customer-notices"},Object(x.__)("If you have purchased our Essential or Growth Bundle, just enter your license key below to import this template.","astra-sites")),!s&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"customer-notices",dangerouslySetInnerHTML:{__html:O}}),Object(c.createElement)("p",{className:"customer-notices"},Object(x.__)("Currently the free version is installed.","astra-sites"))),Object(c.createElement)("p",{className:"support-link",dangerouslySetInnerHTML:{__html:P}}),s&&Object(c.createElement)("div",{className:"license-wrap"},Object(c.createElement)("input",{type:"text",className:"license-key-input",name:"license-key",placeholder:Object(x.__)("License key","astra-sites"),required:!0,onChange:function(t){S(t.target.value),f("")}}),Object(c.createElement)(R,{className:"validate-btn ".concat(w),onClick:function(){""!==A?(y(!0),_c.a.use(_c.a.createNonceMiddleware(Tc)),_c()({path:"/bsf-core/v1/license/activate",method:"POST",data:{"license-key":A,"product-id":"astra-pro-sites"}}).then((function(t){t.success?o({type:"set",licenseStatus:!0,currentIndex:a+1}):f(t.message),y(!1)}))):f(Object(x.__)("Please Enter License Key","astra-sites"))}},E.arrowRightBold)),Object(c.createElement)(V,{onClick:function(){o({type:"set",currentCustomizeIndex:n-1})},customizeStep:!0},Object(x.__)("Back","astra-sites")),p&&!g&&Object(c.createElement)(Nl,{type:"error",message:p,autoHideDuration:5}))},actions:null,class:"customize-license-validation"}],Wc=r(34),Xc=r.n(Wc),qc=r(21),Jc=r.n(qc),Yc=r(22),Kc=r.n(Yc);function Uc(){return(Uc=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function Zc(t,e){return t(e={exports:{}},e.exports),e.exports}var $c="function"==typeof Symbol&&Symbol.for,th=$c?Symbol.for("react.element"):60103,eh=$c?Symbol.for("react.portal"):60106,rh=$c?Symbol.for("react.fragment"):60107,nh=$c?Symbol.for("react.strict_mode"):60108,ih=$c?Symbol.for("react.profiler"):60114,ah=$c?Symbol.for("react.provider"):60109,sh=$c?Symbol.for("react.context"):60110,oh=$c?Symbol.for("react.async_mode"):60111,lh=$c?Symbol.for("react.concurrent_mode"):60111,ch=$c?Symbol.for("react.forward_ref"):60112,hh=$c?Symbol.for("react.suspense"):60113,uh=$c?Symbol.for("react.suspense_list"):60120,ph=$c?Symbol.for("react.memo"):60115,fh=$c?Symbol.for("react.lazy"):60116,dh=$c?Symbol.for("react.block"):60121,mh=$c?Symbol.for("react.fundamental"):60117,gh=$c?Symbol.for("react.responder"):60118,yh=$c?Symbol.for("react.scope"):60119;function vh(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case th:switch(t=t.type){case oh:case lh:case rh:case ih:case nh:case hh:return t;default:switch(t=t&&t.$$typeof){case sh:case ch:case fh:case ph:case ah:return t;default:return e}}case eh:return e}}}function bh(t){return vh(t)===lh}var xh={AsyncMode:oh,ConcurrentMode:lh,ContextConsumer:sh,ContextProvider:ah,Element:th,ForwardRef:ch,Fragment:rh,Lazy:fh,Memo:ph,Portal:eh,Profiler:ih,StrictMode:nh,Suspense:hh,isAsyncMode:function(t){return bh(t)||vh(t)===oh},isConcurrentMode:bh,isContextConsumer:function(t){return vh(t)===sh},isContextProvider:function(t){return vh(t)===ah},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===th},isForwardRef:function(t){return vh(t)===ch},isFragment:function(t){return vh(t)===rh},isLazy:function(t){return vh(t)===fh},isMemo:function(t){return vh(t)===ph},isPortal:function(t){return vh(t)===eh},isProfiler:function(t){return vh(t)===ih},isStrictMode:function(t){return vh(t)===nh},isSuspense:function(t){return vh(t)===hh},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===rh||t===lh||t===ih||t===nh||t===hh||t===uh||"object"==typeof t&&null!==t&&(t.$$typeof===fh||t.$$typeof===ph||t.$$typeof===ah||t.$$typeof===sh||t.$$typeof===ch||t.$$typeof===mh||t.$$typeof===gh||t.$$typeof===yh||t.$$typeof===dh)},typeOf:vh};Zc((function(t,e){})),Zc((function(t){t.exports=xh})),Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}})()&&Object.assign;function Eh(){}function kh(){}Function.call.bind(Object.prototype.hasOwnProperty),kh.resetWarningCache=Eh;var Ch,Ah,Sh=Zc((function(t){t.exports=function(){function t(t,e,r,n,i,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:kh,resetWarningCache:Eh};return r.PropTypes=r,r}()})),wh=(Ch=Xc.a,(Ah=Object(h.memo)((function(t){var e=t.animationData,r=t.path,n=t.play,i=t.speed,a=t.direction,s=t.segments,o=t.goTo,l=t.renderer,c=t.loop,p=t.rendererSettings,f=t.audioFactory,d=t.onLoad,m=t.onComplete,g=t.onLoopComplete,y=t.onEnterFrame,v=t.onSegmentStart,b=function(t,e){if(null==t)return{};var r,n,i={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,["animationData","path","play","speed","direction","segments","goTo","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),x=Object(h.useRef)(),E=Object(h.useRef)(),k=Object(h.useState)(!1),C=k[0],A=k[1],S=Object(h.useState)(s),w=S[0],P=S[1];Object(h.useEffect)((function(){Jc()(w,s)||P(s)}),[s,w]);var O=Object(h.useState)(p),j=O[0],I=O[1];Object(h.useEffect)((function(){Jc()(j,p)||I(p)}),[p,j]),Object(h.useEffect)((function(){return function(){return E.current.removeEventListener("complete",m)}}),[m]),Object(h.useEffect)((function(){return function(){return E.current.removeEventListener("loopComplete",g)}}),[g]),Object(h.useEffect)((function(){return function(){return E.current.removeEventListener("enterFrame",y)}}),[y]),Object(h.useEffect)((function(){return function(){return E.current.removeEventListener("segmentStart",v)}}),[v]),Object(h.useEffect)((function(){function t(){A(!0),d()}return E.current=Ch.loadAnimation({animationData:null==e||"object"!=typeof e?e:"object"==typeof e.default?Kc()(e.default):Kc()(e),path:r,container:x.current,renderer:l,loop:!1,autoplay:!1,rendererSettings:j,audioFactory:f}),E.current.addEventListener("DOMLoaded",t),function(){E.current.removeEventListener("DOMLoaded",t),A(!1),E.current.destroy(),E.current=void 0}}),[c,l,j,e,r,f]),Object(h.useEffect)((function(){E.current.addEventListener("complete",m)}),[m]),Object(h.useEffect)((function(){E.current.addEventListener("loopComplete",g)}),[g]),Object(h.useEffect)((function(){E.current.addEventListener("enterFrame",y)}),[y]),Object(h.useEffect)((function(){E.current.addEventListener("segmentStart",v)}),[v]),Object(h.useEffect)((function(){C&&(E.current.loop=c)}),[C,c]);var _=Object(h.useRef)(!1);return Object(h.useEffect)((function(){function t(t){E.current.goToAndPlay(t,!0),E.current.setDirection(a)}C&&(!0===n?w?(E.current.playSegments(w,!0),_.current=!0,-1===a&&t(w[1])):(_.current&&E.current.resetSegments(!0),_.current=!1,-1===a?t(E.current.getDuration(!0)):E.current.play()):!1===n&&E.current.pause())}),[n,w,C]),Object(h.useEffect)((function(){C&&(Number.isNaN(i)||E.current.setSpeed(i))}),[i,C]),Object(h.useEffect)((function(){C&&E.current.setDirection(a)}),[a,C]),Object(h.useEffect)((function(){C&&null!=o&&(n?E.current.goToAndPlay(o,!0):E.current.goToAndStop(o,!0))}),[o,n,C]),u.a.createElement("div",Uc({},b,{ref:x}))}))).propTypes={animationData:Sh.object,path:Sh.string,play:Sh.bool,goTo:Sh.number,speed:Sh.number,direction:Sh.number,loop:Sh.oneOfType([Sh.number,Sh.bool]),segments:Sh.oneOfType([Sh.arrayOf(Sh.number),Sh.bool]),rendererSettings:Sh.object,renderer:Sh.string,audioFactory:Sh.func,onComplete:Sh.func,onLoopComplete:Sh.func,onEnterFrame:Sh.func,onSegmentStart:Sh.func},Ah.defaultProps={animationData:null,path:null,play:null,segments:null,goTo:null,speed:1,direction:1,loop:!0,rendererSettings:{},renderer:"svg",audioFactory:null,onLoad:function(){},onComplete:function(){},onLoopComplete:function(){},onEnterFrame:function(){},onSegmentStart:function(){}},Ah),Ph=function(){var t=C(),e=b()(t,1)[0],r=e.importPercent,n=e.importStatus,i=100===r?"import-done":"",a="",s="";return r<=25&&(a="import-1",s=Object(x.__)("1. Installing required theme, plugins, forms, etc","astra-sites")),r>25&&r<=50&&(a="import-2",s=Object(x.__)("2. Importing pages, menus, posts, etc","astra-sites")),r>50&&r<=75&&(a="import-3",s=Object(x.__)("3. Setting up customizer settings and ther site settings","astra-sites")),r>75&&r<=100&&(a="import-4",s=Object(x.__)("4. Finalizing last few settings","astra-sites")),Object(c.createElement)("div",{className:"ist-import-progress"},Object(c.createElement)("div",{className:"ist-import-progress-info"},Object(c.createElement)("div",{className:"ist-import-progress-info-text"},100!==r&&s,100===r&&Object(c.createElement)(c.Fragment,null,Object(x.__)("Done ","astra-sites"),E.tada)),Object(c.createElement)("div",{className:"ist-import-progress-info-precent"},r,"%")),Object(c.createElement)("div",{className:"ist-import-progress-bar-wrap"},Object(c.createElement)("div",{className:"ist-import-progress-bar-bg"},Object(c.createElement)("div",{className:"ist-import-progress-bar ".concat(i," ").concat(a)})),Object(c.createElement)("div",{className:"import-progress-gap"},Object(c.createElement)("span",null),Object(c.createElement)("span",null),Object(c.createElement)("span",null))),Object(c.createElement)("div",{className:"ist-import-progress-info"},Object(c.createElement)("div",{className:"ist-import-progress-info-text"},100!==r&&Object(c.createElement)("p",null,n+Object(ia.decodeEntities)("&nbsp;")),100===r&&Object(c.createElement)("p",null,Object(x.__)("Redirecting you in ","astra-sites"),Object(c.createElement)("span",{id:"redirect-counter"},Object(x.__)("3 seconds…","astra-sites"))))))},Oh=(r(82),function(){var t=C(),e=b()(t,2),r=e[0],n=r.importErrorMessages,i=r.importPercent,a=r.currentIndex,s=r.tryAgainCount,o=r.templateId,l=e[1],h="https://wpastra.com/starter-templates-support/?ip="+starterTemplates.clientIP+"&template-id="+o+"&subject="+n.errorText,u="";return i<=25&&(u="import-1"),i>25&&i<=50&&(u="import-2"),i>50&&i<=75&&(u="import-3"),i>75&&i<=100&&(u="import-4"),Object(c.createElement)("div",{className:"ist-import-error"},Object(c.createElement)("div",{className:"ist-import-progress-info"},Object(c.createElement)("div",{className:"ist-import-progress-info-text label-text"},Object(x.__)("Error Occured!","astra-sites")),Object(c.createElement)("div",{className:"ist-import-progress-info-precent"},i,"%")),Object(c.createElement)("div",{className:"ist-import-progress-bar-wrap"},Object(c.createElement)("div",{className:"ist-import-progress-bar-bg"},Object(c.createElement)("div",{className:"ist-import-progress-bar ".concat(u)})),Object(c.createElement)("div",{className:"import-progress-gap"},Object(c.createElement)("span",null),Object(c.createElement)("span",null),Object(c.createElement)("span",null))),Object(c.createElement)("div",{className:"ist-import-error-wrap ist-import-error-primary-wrap"},n.primaryText&&Object(c.createElement)("p",{className:"website-import-subtitle"},n.primaryText)),Object(c.createElement)("div",{className:"ist-import-error-box"},Object(c.createElement)("div",{className:"ist-import-error-wrap ist-import-error-secondary-wrap"},n.errorText&&"object"!==uc()(n.errorText)&&Object(c.createElement)("p",null,n.errorText),n.errorText&&"object"===uc()(n.errorText)&&Object(c.createElement)("div",null,Object(c.createElement)("pre",null,JSON.stringify(n.errorText,void 0,2))))),Object(c.createElement)("div",null,n.secondaryText&&Object(c.createElement)("p",{dangerouslySetInnerHTML:{__html:n.secondaryText}}),n.solutionText&&Object(c.createElement)("p",{className:"ist-import-error-solution",dangerouslySetInnerHTML:{__html:n.solutionText}}),!n.solutionText&&!n.tryAgain||n.tryAgain&&s>1&&Object(c.createElement)("p",{className:"ist-import-error-solution"},Object(ia.decodeEntities)(Object(x.__)("Please report this error&nbsp;","astra-sites")),Object(c.createElement)("a",{href:h,target:"_blank",rel:"noreferrer"},"here"),Object(ia.decodeEntities)(Object(x.__)("&nbsp;so we can fix it.","astra-sites")))),n.tryAgain&&Object(c.createElement)(R,{className:"ist-button",after:!0,onClick:function(){l({type:"set",importErrorMessages:{},importErrorResponse:[],importError:!1,tryAgainCount:s+1,resetCustomizer:!1,resetSiteOptions:!1,resetContent:!1,resetWidgets:!1,resetDone:!1,resetData:[],importStart:!1,importEnd:!1,importPercent:0,requiredPluginsDone:!1,notInstalledList:[],notActivatedList:[],currentIndex:a-1})}},Object(x.__)("Try Importing Again","astra-sites")))}),jh=r(35),Ih={complete:{posts:0,media:0,users:0,comments:0,terms:0},updateDelta:function(t,e){this.complete[t]+=e;var r=this;requestAnimationFrame((function(){r.render()}))},updateProgress:function(t,e,r,n,i){"undefined"!==t&&"undefined"!=e+"/"+r&&((0===(r=parseInt(r))||isNaN(r))&&(r=1),parseInt(e)/r*100<=100&&"function"==typeof n&&(n({type:"set",importStatus:Object(x.__)("Importing Content…","astra-sites")}),n({type:"set",importPercent:i+=5})))},render:function(t,e){for(var r=Object.keys(this.complete),n=0,i=0,a=r.length-1;a>=0;a--){var s=r[a];this.updateProgress(s,this.complete[s],this.data.count[s],t,e),n+=this.complete[s],i+=this.data.count[s]}this.updateProgress("total",n,i,t,e)}},_h=(r(83),function(){var t=C(),e=b()(t,2),r=e[0],n=r.resetDone,i=r.importStart,a=r.importEnd,s=r.importPercent,o=r.templateResponse,l=r.reset,u=r.themeStatus,p=r.currentIndex,f=r.importError,d=r.resetCustomizer,m=r.resetSiteOptions,g=r.resetContent,y=r.resetWidgets,v=r.siteLogo,E=r.activePalette,k=r.typography,S=r.customizerImportFlag,w=r.widgetImportFlag,P=r.contentImportFlag,O=r.themeActivateFlag,j=r.requiredPluginsDone,I=r.requiredPlugins,_=r.notInstalledList,T=r.notActivatedList,F=e[1],M=s,D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";F({type:"set",importError:!0,importErrorMessages:{primaryText:t,secondaryText:e,errorCode:n,errorText:r,solutionText:i,tryAgain:!0}}),localStorage.removeItem("st-import-start"),localStorage.removeItem("st-import-end");var s=new FormData;s.append("action","report_error"),s.append("error",JSON.stringify({primaryText:t,secondaryText:e,errorCode:n,errorText:r,solutionText:i,tryAgain:!0,stack:a})),s.append("id",o.id),s.append("plugins",JSON.stringify(I)),fetch(ajaxurl,{method:"post",body:s})},R=function(){_.length<=0||(M+=2,F({type:"set",importStatus:Object(x.__)("Installing Required Plugins.","astra-sites"),importPercent:M}),_.forEach((function(t){wp.updates.queue.push({action:"install-plugin",data:{slug:t.slug,init:t.init,name:t.name,success:function(){F({type:"set",importStatus:Object(x.sprintf)(// translators: Plugin Name.
8
+ Object(x.__)("%1$s plugin installed successfully.","astra-sites"),t.name)});var e=T;e.push(t),F({type:"set",notActivatedList:e});var r=_;r.forEach((function(e,n){e.slug===t.slug&&r.splice(n,1)})),F({type:"set",notInstalledList:r})},error:function(t){D(Object(x.__)("Could not install the plugin list.","astra-sites"),"",t)}}})})),wp.updates.queueChecker())},B=function(){var t=Ol()(Il.a.mark((function t(){return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l){t.next=4;break}return F({type:"set",resetDone:!0,resetCustomizer:!0,resetSiteOptions:!0,resetContent:!0,resetWidgets:!0}),R(),t.abrupt("return");case 4:return M+=2,F({type:"set",importStatus:Object(x.__)("Reseting site.","astra-sites"),importPercent:M}),t.next=8,z();case 8:return t.next=10,G();case 10:return t.next=12,H();case 12:return t.next=14,L();case 14:return t.next=16,N();case 16:F({type:"set",resetContent:!0,importStatus:"Reset done"}),F({type:"set",importPercent:M+=10,resetContent:!0,resetDone:!0,importStatus:Object(x.__)("Reset for old website is done.","astra-sites")});case 19:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),L=function(){var t=new FormData;t.append("action","astra-sites-reset-terms-and-forms"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce),F({type:"set",importStatus:Object(x.__)("Resetting terms and forms.","astra-sites")}),fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.text()})).then((function(t){try{var e=JSON.parse(t);if(!e.success)throw e.data;F({type:"set",importPercent:M+=2,resetCustomizer:!0})}catch(e){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(e),"","","".concat(t))}})).catch((function(t){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(t.message),"","","".concat(t.message,": ").concat(t.stack))}))},N=function(){var t=new FormData;t.append("action","astra-sites-reset-posts"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce),F({type:"set",importStatus:Object(x.__)("Resetting posts.","astra-sites")}),fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.text()})).then((function(t){try{var e=JSON.parse(t);if(!e.success)throw e.data;F({type:"set",importPercent:M+=2,resetCustomizer:!0})}catch(e){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(e),"","","".concat(t))}})).catch((function(t){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(t.message),"","","".concat(t.message,": ").concat(t.stack))}))},z=function(){var t=Ol()(Il.a.mark((function t(){var e;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return F({type:"set",importStatus:Object(x.__)("Resetting customizer.","astra-sites")}),(e=new FormData).append("action","astra-sites-reset-customizer-data"),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),t.next=6,fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.text()})).then((function(t){try{var e=JSON.parse(t);if(!e.success)throw e.data;F({type:"set",importPercent:M+=2,resetCustomizer:!0})}catch(e){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(e.message),"","","".concat(t))}})).catch((function(t){D(Object(x.__)("Resetting customizer failed.","astra-sites"),"","".concat(t.message),"","","".concat(t.message,": ").concat(t.stack))}));case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),G=function(){var t=Ol()(Il.a.mark((function t(){var e;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return F({type:"set",importStatus:Object(x.__)("Resetting site options.","astra-sites")}),(e=new FormData).append("action","astra-sites-reset-site-options"),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),t.next=6,fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.text()})).then((function(t){try{var e=JSON.parse(t);if(!e.success)throw e.data;F({type:"set",importPercent:M+=2,resetSiteOptions:!0})}catch(e){D(Object(x.__)("Resetting site options Failed.","astra-sites"),"","".concat(e.message),"","","".concat(t))}})).catch((function(t){D(Object(x.__)("Resetting site options Failed.","astra-sites"),"","".concat(t.message),"","","".concat(t.message,": ").concat(t.stack))}));case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),H=function(){var t=Ol()(Il.a.mark((function t(){var e;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=new FormData).append("action","astra-sites-reset-widgets-data"),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),F({type:"set",importStatus:Object(x.__)("Resetting widgets.","astra-sites")}),t.next=6,fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.text()})).then((function(t){try{var e=JSON.parse(t);if(!e.success)throw e.data;F({type:"set",importPercent:M+=2,resetWidgets:!0})}catch(e){D(Object(x.__)("Resetting widgets failed.","astra-sites"),"",e,"","","".concat(t))}})).catch((function(t){D(Object(x.__)("Resetting widgets failed.","astra-sites"),"",t,"","","".concat(t.message,": ").concat(t.stack))}));case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Q=function(){var t=encodeURI(o["astra-site-wpforms-path"])||"";if(""!==t){F({type:"set",importStatus:Object(x.__)("Importing forms.","astra-sites")});var e=new FormData;e.append("action","astra-sites-import-wpforms"),e.append("wpforms_url",t),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:M+=2}),W()})).catch((function(t){D(Object(x.__)("Importing forms Failed.","astra-sites"),"",t)}))}else W()},W=function(){if(!S)return F({type:"set",importPercent:M+=5}),void X();F({type:"set",importStatus:Object(x.__)("Importing forms.","astra-sites")});var t=new FormData;t.append("action","astra-sites-import-customizer-settings"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:M+=5}),X()})).catch((function(t){D(Object(x.__)("Importing Customizer JSON Failed.","astra-sites"),"",t)}))},X=function(){if(!P)return F({type:"set",importPercent:M+=20}),void q();F({type:"set",importStatus:Object(x.__)("Importing Site Content.","astra-sites")});var t=encodeURI(o["astra-site-wxr-path"])||"",e=new FormData;e.append("action","astra-sites-import-prepare-xml"),e.append("wxr_url",t),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.json()})).then((function(t){if(F({type:"set",importPercent:M+=2}),!1===t.success)throw t.data.error||t.data;Ih.data=t.data,Ih.render(F,M);var e=new EventSource(Ih.data.url);e.onmessage=function(t){var r=JSON.parse(t.data);switch(r.action){case"updateDelta":Ih.updateDelta(r.type,r.delta);break;case"complete":!1===r.error?(e.close(),q()):D(astraSitesVars.xml_import_interrupted_primary,"",astraSitesVars.xml_import_interrupted_error,"",astraSitesVars.xml_import_interrupted_secondary)}},e.onerror=function(){throw e.close(),Object(x.__)("Importing Site Content Failed. - Import Process Interrupted","astra-sites")},e.addEventListener("log",(function(t){var e=JSON.parse(t.data),r=e.message||"";r&&"info"===e.level&&(r=r.replace(/"/g,(function(){return""}))),F({type:"set",importStatus:Object(x.sprintf)(// translators: Response importMessage
9
  Object(x.__)("Importing - %1$s","astra-sites"),r)})}))})).catch((function(t){D(Object(x.__)("Importing Site Content Failed.","astra-sites"),"",t)}))},q=function(){F({type:"set",importStatus:Object(x.__)("Importing Site Options.","astra-sites")});var t=new FormData;t.append("action","astra-sites-import-options"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:M+=5}),J()})).catch((function(t){D(Object(x.__)("Importing Site Options Failed.","astra-sites"),"",t)}))},J=function(){if(!w)return F({type:"set",importPercent:90}),void Y();F({type:"set",importStatus:Object(x.__)("Importing Widgets.","astra-sites")});var t=o["astra-site-widgets-data"]||"",e=new FormData;e.append("action","astra-sites-import-widgets"),e.append("widgets_data",t),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:90}),Y()})).catch((function(t){D(Object(x.__)("Importing Widgets Failed.","astra-sites"),"",t)}))},Y=function(){var t=Ol()(Il.a.mark((function t(){var e;return Il.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Hl(v);case 2:return t.next=4,Ql(JSON.stringify(E));case 4:return delete(e=k).preview,t.next=8,Wl(e);case 8:K();case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),K=function(){F({type:"set",importStatus:Object(x.__)("Final finishings.","astra-sites")});var t=new FormData;t.append("action","astra-sites-import-end"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce);var e=3;fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:100,importEnd:!0}),localStorage.setItem("st-import-end",+new Date),setInterval((function(){e--;var t=document.getElementById("redirect-counter");if(t)if(e<0)F({type:"set",currentIndex:p+1});else{var r=e<=1?" second…":" seconds…";t.innerHTML=e+r}}),1e3)})).catch((function(t){D(Object(x.__)("Final finishings Failed.","astra-sites"),"",t)}))};return Object(h.useEffect)((function(){i||a||f||(localStorage.setItem("st-import-start",+new Date),B())}),[o]),Object(h.useEffect)((function(){i||a||(null!==o?d&&m&&g&&y&&n&&(F({type:"set",resetDone:!0}),O?function(t){var e=b()(t,2),r=e[0].importPercent,n=e[1],i=r;"not-installed"===starterTemplates.themeStatus&&(wp.updates.shouldRequestFilesystemCredentials&&!wp.updates.ajaxLocked&&wp.updates.requestFilesystemCredentials(),n({type:"set",importPercent:i+=5,importStatus:Object(x.__)("Installing Astra Theme…","astra-sites")}),wp.updates.installTheme({slug:"astra"}),jQuery(document).on("wp-theme-install-success",(function(t,e){n({type:"set",themeStatus:e,importStatus:Object(x.__)("Astra Theme Installed.","astra-sites")})}))),"installed-but-inactive"===starterTemplates.themeStatus&&setTimeout((function(){var t=new FormData;t.append("action","astra-sites-activate-theme"),t.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:t}).then((function(t){return t.json()})).then((function(t){t.success?n({type:"set",themeStatus:t,importStatus:Object(x.__)("Astra Theme Installed.","astra-sites")}):n({type:"set",importError:!0,importErrorMessages:{primaryText:Object(x.__)("Astra theme installation failed.","astra-sites"),secondaryText:"",errorCode:"",errorText:t.data,solutionText:"",tryAgain:!0}})})).catch((function(t){console.error(t)}))}),3e3),"installed-and-active"===starterTemplates.themeStatus&&n({type:"set",themeStatus:!0})}(t):F({type:"set",themeStatus:!0})):F({type:"set",importStatus:Object(x.__)("Invalid demo selected. Please contact us.","astra-sites")}))}),[d,m,g,y,n,o]),Object(h.useEffect)((function(){if(!i&&!a)return u&&n?void(null!==o?f||(F({type:"set",importStart:!0,importPercent:M+=5,importStatus:Object(x.__)("Starting Import.","astra-sites")}),R()):D(Object(x.__)("Fetching related demo failed.","astra-sites"))):(a&&(setTimeout((function(){F({type:"set",currentIndex:p+1})}),5e3),F({type:"set",importStatus:Object(x.__)("Import is already done.","astra-sites")})),void(i&&!a&&F({type:"set",importStatus:Object(x.__)("Import is already in progress.","astra-sites")})))}),[u,n,o]),Object(h.useEffect)((function(){j&&n&&u&&function(){var t=encodeURI(o["astra-site-cartflows-path"])||"";if(""!==t){F({type:"set",importStatus:Object(x.__)("Importing CartFlows flows.","astra-sites")});var e=new FormData;e.append("action","astra-sites-import-cartflows"),e.append("cartflows_url",t),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw t.data;F({type:"set",importPercent:M+=2}),Q()})).catch((function(t){D(Object(x.__)("Importing CartFlows flows Failed.","astra-sites"),"",t)}))}else Q()}()}),[j,n,u]),Object(h.useEffect)((function(){T.length<=0&&_.length<=0&&F({type:"set",requiredPluginsDone:!0})}),[T.length,_.length]),Object(h.useEffect)((function(){T.length>0&&function(t){M+=2,F({type:"set",importStatus:Object(x.sprintf)(// translators: Plugin Name.
10
  Object(x.__)("Activating %1$s plugin.","astra-sites"),t.name),importPercent:M});var e=new FormData;e.append("action","astra-required-plugin-activate"),e.append("init",t.init),e.append("_ajax_nonce",astraSitesVars._ajax_nonce),fetch(ajaxurl,{method:"post",body:e}).then((function(t){return t.json()})).then((function(e){if(!e.success)throw e.data.message;var r=T;r.forEach((function(e,n){e.slug===t.slug&&r.splice(n,1)})),F({type:"set",notActivatedList:r}),M+=2,F({type:"set",importStatus:Object(x.sprintf)(// translators: Plugin Name.
11
  Object(x.__)("%1$s activated.","astra-sites"),t.name),importPercent:M})})).catch((function(t){D(Object(x.__)("Could not activate the required plugin list.","astra-sites"),"",t,"",astraSitesVars.importFailedRequiredPluginsMessage)}))}(T[0])}),[T.length]),Object(c.createElement)(A,{content:Object(c.createElement)("div",{className:"middle-content middle-content-import"},Object(c.createElement)(c.Fragment,null,Object(c.createElement)("h1",null,Object(x.__)("We are building your website…","astra-sites")),f&&Object(c.createElement)("div",{className:"ist-import-process-step-wrap"},Object(c.createElement)(Oh,null)),!f&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"ist-import-process-step-wrap"},Object(c.createElement)(Ph,null)),Object(c.createElement)(wh,{loop:!0,animationData:jh,play:!0,style:{height:400,margin:"-70px auto -90px auto"}})))),actions:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(V,{before:!0,disabled:!0,customizeStep:!0},Object(x.__)("Back","astra-sites")))})});function Th(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Th(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Th(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Mh=function(t){var e=t.updateFormDetails,r=Object(h.useState)({option1:0,option2:0}),n=b()(r,2),i=n[0],a=n[1];return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"label-text row-label"},Object(x.__)("Tell us a little bit about yourself","astra-sites")),Object(c.createElement)("div",{className:"survey-fields-wrap"},Object(c.createElement)("input",{type:"text",className:"survey-text-input",name:"first_name",placeholder:Object(x.__)("Your First Name","astra-sites"),onChange:function(t){return e("first_name",t.target.value)}}),Object(c.createElement)("input",{type:"email",className:"survey-text-input",name:"email",placeholder:Object(x.__)("Your Work Email","astra-sites"),onChange:function(t){return e("email",t.target.value)}}),Object(c.createElement)("select",{name:"wp_user_type",className:0!==i.option1?"survey-select-input":"survey-select-input initial",defaultValue:"",onBlur:function(t){return e("wp_user_type",t.target.value)},onChange:function(t){e("wp_user_type",t.target.value),a(Fh(Fh({},i),{},{option1:t.target.selectedIndex}))}},Object(c.createElement)("option",{value:"",disabled:!0},Object(x.__)("I am…","astra-sites")),Object(c.createElement)("option",{value:"1"},Object(x.__)("Beginner","astra-sites")),Object(c.createElement)("option",{value:"2"},Object(x.__)("Intermidiate","astra-sites")),Object(c.createElement)("option",{value:"3"},Object(x.__)("Expert","astra-sites"))),Object(c.createElement)("select",{name:"build_website_for",className:0!==i.option2?"survey-select-input":"survey-select-input initial",defaultValue:"",onBlur:function(t){return e("build_website_for",t.target.value)},onChange:function(t){a(Fh(Fh({},i),{},{option2:t.target.selectedIndex}))}},Object(c.createElement)("option",{value:"",disabled:!0},Object(x.__)("I am building website for…","astra-sites")),Object(c.createElement)("option",{value:"1"},Object(x.__)("Myself/My Company","astra-sites")),Object(c.createElement)("option",{value:"2"},Object(x.__)("My Client","astra-sites")))))},Dh=function(){var t=Object(h.useState)(!0),e=b()(t,2),r=e[0],n=e[1],i=C(),a=b()(i,2),s=a[0],o=s.reset,l=s.customizerImportFlag,u=s.themeActivateFlag,p=s.widgetImportFlag,f=s.contentImportFlag,d=s.requiredPlugins,m=a[1],g=null!==d?d.required_plugins.inactive:[],y="installed-and-active"!==starterTemplates.themeStatus?"theme-check":"";return Object(c.createElement)("div",{className:"survey-form-advanced-wrapper ".concat(r?"show-section":"hidden-section")},Object(c.createElement)("p",{className:"label-text row-label",onClick:function(){n(!r)}},Object(x.__)("Advanced Options","astra-sites"),Object(c.createElement)("span",{className:"advanced-options-icons"},r?E.angleUP:E.angleDown)),Object(c.createElement)("div",{className:"survey-advanced-section"},Object(c.createElement)("ul",null,"yes"===starterTemplates.firstImportStatus&&Object(c.createElement)("li",null,Object(c.createElement)("input",{type:"checkbox",id:"reset-site",name:"reset-site",defaultChecked:o,onChange:function(){m({type:"set",reset:!o})}}),Object(c.createElement)("label",{htmlFor:"reset-site"}," ",Object(x.__)("Delete Previously imported sites","astra-sites")),Object(c.createElement)(Tl,{content:Object(c.createElement)("span",null,Object(x.__)("WARNING: Selecting this option will delete all data from the previous import. Choose this option only if this is intended.","astra-sites"),Object(c.createElement)("br",null),Object(x.__)("Choose this option only if this is intended.You can find the backup to the current customizer settings at /wp-content/uploads astra-sites","astra-sites"))},E.questionMark)),"installed-and-active"!==starterTemplates.themeStatus&&Object(c.createElement)("li",null,Object(c.createElement)("input",{type:"checkbox",id:"import-theme",name:"import-theme",defaultChecked:u,onChange:function(){m({type:"set",themeActivateFlag:!u,customizerImportFlag:!u})}}),Object(c.createElement)("label",{htmlFor:"import-theme"}," ",Object(x.__)("Install & Activate Astra Theme","astra-sites")),Object(c.createElement)(Tl,{content:Object(x.__)("To import the site in the original format, you would need the Astra theme activated. You can import it with any other theme, but the site might lose some of the design settings and look a bit different.","astra-sites")},E.questionMark)),u&&Object(c.createElement)("li",{className:y},Object(c.createElement)("input",{type:"checkbox",id:"import-customizer",name:"import-customizer",defaultChecked:l,onChange:function(){m({type:"set",customizerImportFlag:!l})}}),Object(c.createElement)("label",{htmlFor:"import-customizer"}," ",Object(x.__)("Import Customizer Settings","astra-sites")),Object(c.createElement)(Tl,{content:Object(x.__)("Starter Templates customizer serves global settings that give uniform design to the website. Choosing this option will override your current customizer settings.","astra-sites")},E.questionMark)),Object(c.createElement)("li",null,Object(c.createElement)("input",{type:"checkbox",id:"import-widgets",name:"import-widgets",defaultChecked:p,onChange:function(){m({type:"set",widgetImportFlag:!p})}}),Object(c.createElement)("label",{htmlFor:"import-widgets"}," ",Object(x.__)("Import Widgets","astra-sites"))),g.length>0&&Object(c.createElement)("li",null,Object(c.createElement)("input",{type:"checkbox",id:"import-plugins",name:"import-plugins",defaultChecked:!0,disabled:!0}),Object(c.createElement)("label",{htmlFor:"import-plugins"}," ",Object(x.__)("Install Required Plugins","astra-sites")),Object(c.createElement)(Tl,{content:Object(c.createElement)("div",null,Object(c.createElement)("span",null,Object(x.__)("Plugins needed to import this template are missing. Required plugins will be installed and activated automatically.","astra-sites")),Object(c.createElement)("ul",null,g.map((function(t,e){return Object(c.createElement)("li",{key:e},Object(ia.decodeEntities)("&bull; ".concat(t.name)))}))))},E.questionMark)),Object(c.createElement)("li",null,Object(c.createElement)("input",{type:"checkbox",id:"import-content",name:"import-content",defaultChecked:f,onChange:function(){m({type:"set",contentImportFlag:!f})}}),Object(c.createElement)("label",{htmlFor:"import-content"}," ",Object(x.__)("Import Content","astra-sites")),Object(c.createElement)(Tl,{content:Object(x.__)("Selecting this option will import dummy pages, posts, images, and menus. If you do not want to import dummy content, please uncheck this option.","astra-sites")},E.questionMark)))))};function Rh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rh(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r(84);var Vh=[{content:Object(c.createElement)((function(){var t=C(),e=b()(t,2),r=e[0].currentIndex,n=e[1],i=Object(h.useState)(!0),a=b()(i,2),s=a[0],o=a[1];return Object(c.createElement)(A,{content:Object(c.createElement)("div",{className:"welcome-screen"},Object(c.createElement)("h1",{className:"d-flex-center-align"},Object(x.__)("Getting Started with Starter Templates","astra-sites")),Object(c.createElement)("p",{className:"screen-description"},Object(x.__)("This is the very beginning of the fastest and easiest website building experience you`ve ever had!","astra-sites")),Object(c.createElement)("div",{className:"video-showcase",onClick:function(){var t=document.getElementById("st-welcome-video"),e=t.src.replace("&mute=1&controls=0","&mute=0&controls=1");t.src=e,o(!1)}},s&&Object(c.createElement)("div",{className:"click-to-play-wrap"},Object(c.createElement)("span",{className:"click-btn-text"},E.clickToPlay),Object(c.createElement)("span",{className:"youtube-btn middle-content"},E.youtube)),Object(c.createElement)("iframe",{src:"https://www.youtube-nocookie.com/embed/Ch6Yg-9eCyc?rel=0&autoplay=1&mute=1&controls=0&showinfo=0&loop=1&modestbranding=1&loop=1",frameBorder:"0",allow:"autoplay; encrypted-media",allowFullScreen:!0,title:"st-welcome-video",id:"st-welcome-video"})),Object(c.createElement)("div",{className:"get-started-wrap"},Object(c.createElement)(O,{onClick:function(){n({type:"set",currentIndex:r+1})}},Object(x.__)("Build Your Website Now","astra-sites")))),actions:null})}),null),class:"step-welcome"},{content:Object(c.createElement)(na,null),class:"step-page-builder"},{header:Object(c.createElement)((function(){return Object(c.createElement)("div",{className:"site-list-header row"},Object(c.createElement)("div",{className:"st-header-left"},Object(c.createElement)(sc,null)),Object(c.createElement)("div",{className:"st-header-right"},Object(c.createElement)(cc,null),Object(c.createElement)(Oc,null),Object(c.createElement)(oc,null),Object(c.createElement)(lc,null)))}),null),content:Object(c.createElement)((function(){var t=Object(h.useState)(!0),e=b()(t,2),r=e[0],n=e[1],i=Object(h.useState)({sites:{},tags:[],defaultSites:{},allFavorites:[]}),a=b()(i,2),s=a[0],o=a[1],l=C(),u=b()(l,2),p=u[0],f=u[1],d=p.favoriteSiteIDs,m=p.onMyFavorite,g=p.builder,y=p.siteSearchTerm,v=p.siteType,E=p.siteOrder,k=p.siteCategory;Object(h.useEffect)((function(){f({type:"set",templateResponse:null,selectedTemplateName:"",selectedTemplateType:""});var t=Sl(y,v,"",g),e=ac(ac({},t.sites),t.related);"latest"===E&&Object.keys(e).length&&(e=Qo(e,"publish-date").reverse());var r=[],i=astraSitesVars.all_sites;if(m&&Object.keys(i).length>0)for(var a in i)d.length&&d.includes(a)&&r.push(ac({id:a.replace("id-",""),image:i[a]["thumbnail-image-url"],title:Object(ia.decodeEntities)(i[a].title),badge:"agency-mini"===i[a]["astra-sites-type"]?Object(x.__)("Premium","astra-sites"):""},i[a]));o(ac(ac(ac({},s),t),{},{defaultSites:Sl("","","",g).sites,sites:e,allFavorites:r})),setTimeout((function(){n(!1)}),300)}),[d,m,g,y,v,E,k]),W(p);var S=Object.keys(s.sites).length;return Object(c.createElement)(A,{content:Object(c.createElement)("div",{className:"site-list-screen-container ".concat(r?"site-loading":"site-loaded")},Object(c.createElement)(wl,null),Object(c.createElement)("div",{className:"site-list-screen-wrap"},Object(c.createElement)("h1",null,Object(x.__)("What type of website are you building?","astra-sites")),Object(c.createElement)("div",{className:"site-list-content"},Object(c.createElement)(Kl,null),Object(c.createElement)("div",{className:"st-templates-content"},Object(c.createElement)("div",{className:"st-other-filters"},Object(c.createElement)("div",{className:"st-category-filter"},Object(c.createElement)(tc,null)),Object(c.createElement)("div",{className:"st-type-and-order-filters"},"gutenberg"!==g&&Object(c.createElement)(Zl,null),Object(c.createElement)($l,null))),m?Object(c.createElement)(c.Fragment,null,s.allFavorites.length?Object(c.createElement)("div",{className:"st-sites-grid"},Object(c.createElement)(Jl,{sites:s.allFavorites})):Object(c.createElement)(c.Fragment,null,Object(c.createElement)(rc,null),Object(c.createElement)(nc,{sites:s.defaultSites}))):Object(c.createElement)(c.Fragment,null,S?Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"st-sites-grid"},y&&Object(c.createElement)("div",{className:"st-sites-found-message"},Object(x.sprintf)(
inc/lib/onboarding/assets/src/steps/import-site/index.js CHANGED
@@ -323,6 +323,7 @@ const ImportSite = () => {
323
  type: 'set',
324
  importPercent: percentage,
325
  resetContent: true,
 
326
  importStatus: __( 'Reset for old website is done.', 'astra-sites' ),
327
  } );
328
  };
323
  type: 'set',
324
  importPercent: percentage,
325
  resetContent: true,
326
+ resetDone: true,
327
  importStatus: __( 'Reset for old website is done.', 'astra-sites' ),
328
  } );
329
  };
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Elementor,Beaver Builder,Templates,Gutenberg,Block Editor,Astra Starter Si
5
  Requires at least: 4.4
6
  Requires PHP: 5.3
7
  Tested up to: 5.8
8
- Stable tag: 3.0.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -133,6 +133,9 @@ We are open to suggestions and would love to work on topics that our users are l
133
 
134
  == Changelog ==
135
 
 
 
 
136
  v3.0.4 - 8-December-2021
137
  - Fix: Log the errors reported on the posts delete step during deleting old site.
138
 
5
  Requires at least: 4.4
6
  Requires PHP: 5.3
7
  Tested up to: 5.8
8
+ Stable tag: 3.0.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
133
 
134
  == Changelog ==
135
 
136
+ v3.0.5 - 9-December-2021
137
+ - Fix: Import process stopping after the posts are deleted.
138
+
139
  v3.0.4 - 8-December-2021
140
  - Fix: Log the errors reported on the posts delete step during deleting old site.
141