diff --git a/bootstrap.php b/bootstrap.php index f7c20035f..19eb4bf7d 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -22,7 +22,7 @@ function nfd_wp_module_onboarding_register() { // Set Global Constants if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) { - define( 'NFD_ONBOARDING_VERSION', '1.11.2' ); + define( 'NFD_ONBOARDING_VERSION', '1.11.3' ); } if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) { define( 'NFD_ONBOARDING_DIR', __DIR__ ); diff --git a/build/1.11.2/111.js b/build/1.11.3/111.js similarity index 100% rename from build/1.11.2/111.js rename to build/1.11.3/111.js diff --git a/build/1.11.2/128.js b/build/1.11.3/128.js similarity index 100% rename from build/1.11.2/128.js rename to build/1.11.3/128.js diff --git a/build/1.11.2/244.js b/build/1.11.3/244.js similarity index 100% rename from build/1.11.2/244.js rename to build/1.11.3/244.js diff --git a/build/1.11.2/310.js b/build/1.11.3/310.js similarity index 100% rename from build/1.11.2/310.js rename to build/1.11.3/310.js diff --git a/build/1.11.2/33.js b/build/1.11.3/33.js similarity index 100% rename from build/1.11.2/33.js rename to build/1.11.3/33.js diff --git a/build/1.11.2/405.js b/build/1.11.3/405.js similarity index 100% rename from build/1.11.2/405.js rename to build/1.11.3/405.js diff --git a/build/1.11.2/420.js b/build/1.11.3/420.js similarity index 100% rename from build/1.11.2/420.js rename to build/1.11.3/420.js diff --git a/build/1.11.2/449.js b/build/1.11.3/449.js similarity index 100% rename from build/1.11.2/449.js rename to build/1.11.3/449.js diff --git a/build/1.11.2/465.js b/build/1.11.3/465.js similarity index 100% rename from build/1.11.2/465.js rename to build/1.11.3/465.js diff --git a/build/1.11.2/491.js b/build/1.11.3/491.js similarity index 100% rename from build/1.11.2/491.js rename to build/1.11.3/491.js diff --git a/build/1.11.2/537.js b/build/1.11.3/537.js similarity index 100% rename from build/1.11.2/537.js rename to build/1.11.3/537.js diff --git a/build/1.11.2/574.js b/build/1.11.3/574.js similarity index 100% rename from build/1.11.2/574.js rename to build/1.11.3/574.js diff --git a/build/1.11.2/58.js b/build/1.11.3/58.js similarity index 100% rename from build/1.11.2/58.js rename to build/1.11.3/58.js diff --git a/build/1.11.2/657.js b/build/1.11.3/657.js similarity index 100% rename from build/1.11.2/657.js rename to build/1.11.3/657.js diff --git a/build/1.11.2/662.js b/build/1.11.3/662.js similarity index 73% rename from build/1.11.2/662.js rename to build/1.11.3/662.js index 994b0dd74..190235c85 100644 --- a/build/1.11.2/662.js +++ b/build/1.11.3/662.js @@ -4,4 +4,4 @@ /* translators: %s: Brand */ (0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,l.sprintf)( /* translators: %s: Brand */ -(0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,l.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:_,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:f}=(0,o.useDispatch)(s.h),E=()=>{switch(h){case d.Rq:case d.GV:return(()=>{if("function"==typeof a)return a();g&&_(!0),v(!1),f(!0)})();default:_(!1),v(!0),f(!1)}};(0,n.useEffect)((()=>{E(),h===d.a0&&(async()=>{const e=await(async()=>{const e=await(0,u.YL)(d.DY);return null!=e&&e.error?d.vv:e.body.status})();switch(e){case d.Zh:(async()=>{(await(0,u.sN)(d.DY)).error||!0!==m?y():window.location.reload()})();break;case d.GV:!0===m&&window.location.reload();break;default:b(e)}})()}),[h]);const y=async()=>{if(b(d.Zh),(await(0,u.N9)(d.DY,!0,!1)).error)return b(d.Rq);!0===m&&window.location.reload()};return(0,n.createElement)(n.Fragment,null,(()=>{switch(h){case d.vv:return(0,n.createElement)(N,{showButton:!1,isModalOpen:!0,modalTitle:(0,l.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,l.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:y,modalExitButtonText:(0,l.__)("Exit to WordPress","wp-module-onboarding")});case d.Rq:return(0,n.createElement)(c.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case d.GV:return t;default:return(0,n.createElement)(i.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())}},2662:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var n=a(9307),o=a(9250),r=a(9818),l=a(6138),i=a(2503),s=a(5634),u=a(2200),d=a(1526),c=a(3124),m=a(6332),g=a(8297),h=a(5736);var p=a(6342),w=a(1760);const b=()=>{var e;const t=(0,o.TH)(),[a,b]=(0,n.useState)(),[_,v]=(0,n.useState)([]),[f,E]=(0,n.useState)(0),{currentStep:y,currentData:S,themeStatus:N,themeVariations:C}=(0,r.useSelect)((e=>({currentStep:e(i.h).getStepFromPath(t.pathname),currentData:e(i.h).getCurrentOnboardingData(),themeStatus:e(i.h).getThemeStatus(),themeVariations:e(i.h).getStepPreviewData()})),[]),{setDrawerActiveView:D,setSidebarActiveView:T,setCurrentOnboardingData:k,updateThemeStatus:x}=(0,r.useDispatch)(i.h);(0,n.useEffect)((()=>{T(u.Jq),D(u.Yl)}),[]),(0,n.useEffect)((()=>{N===u.GV&&async function(){var e;const t=await(0,l.C)(null==y||null===(e=y.data)||void 0===e?void 0:e.patternId);if(null!=t&&t.error)return x(u.a0);b(function(e){const t=[];return e.forEach((e=>{t.push(e.content),_.push(e.slug)})),v(_),t}(null==t?void 0:t.body)),""!==(null==S?void 0:S.data.sitePages.homepage)?E(null==_?void 0:_.indexOf(null==S?void 0:S.data.sitePages.homepage)):(S.data.sitePages={...S.data.sitePages,homepage:_[0]},k(S))}()}),[N]);const P={heading:(0,h.__)("There’s no place like a great home page","wp-module-onboarding"),subheading:(0,h.__)("Pick a starter layout you can refine and remix with your content","wp-module-onboarding")};return(0,n.createElement)(c.U,null,(0,n.createElement)(m.V3,null,(0,n.createElement)(s.Z,null,(0,n.createElement)("div",{className:"homepage_preview"},(0,n.createElement)(d.Z,{title:P.heading,subtitle:P.subheading}),(0,n.createElement)("div",{className:"homepage_preview__list"},(0,n.createElement)(w.Z,{size:3,colGap:50},(0,n.createElement)(m.r9,{watch:a,count:null===(e=C[null==y?void 0:y.patternId])||void 0===e?void 0:e.previewCount,callback:function(){return null==a?void 0:a.map(((e,t)=>e?(0,n.createElement)(m.H,{key:t,className:"homepage_preview__list__item",selected:t===f,blockGrammer:e,viewportWidth:1200,styling:"custom",overlay:!1,onClick:()=>function(e){E(e);const t=_[e];S.data.sitePages={...S.data.sitePages,homepage:t},k(S),(0,g.tH)(new g.Z_(p.El,t))}(t)}):null))},className:"homepage_preview__list__item",viewportWidth:1200})))))))}}}]); \ No newline at end of file +(0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,l.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:_,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:f}=(0,o.useDispatch)(s.h),E=()=>{switch(h){case d.Rq:case d.GV:return(()=>{if("function"==typeof a)return a();g&&_(!0),v(!1),f(!0)})();default:_(!1),v(!0),f(!1)}};(0,n.useEffect)((()=>{E(),h===d.a0&&(async()=>{const e=await(async()=>{const e=await(0,u.YL)(d.DY);return null!=e&&e.error?d.vv:e.body.status})();switch(e){case d.Zh:(async()=>{(await(0,u.sN)(d.DY)).error||!0!==m?y():window.location.reload()})();break;case d.GV:!0===m&&window.location.reload();break;default:b(e)}})()}),[h]);const y=async()=>{if(b(d.Zh),(await(0,u.N9)(d.DY,!0,!1)).error)return b(d.Rq);!0===m&&window.location.reload()};return(0,n.createElement)(n.Fragment,null,(()=>{switch(h){case d.vv:return(0,n.createElement)(N,{showButton:!1,isModalOpen:!0,modalTitle:(0,l.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,l.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:y,modalExitButtonText:(0,l.__)("Exit to WordPress","wp-module-onboarding")});case d.Rq:return(0,n.createElement)(c.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case d.GV:return t;default:return(0,n.createElement)(i.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())}},2662:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var n=a(9307),o=a(9250),r=a(9818),l=a(6138),i=a(2503),s=a(5634),u=a(2200),d=a(1526),c=a(3124),m=a(6332),g=a(8297),h=a(5736);var p=a(6342),w=a(1760);const b=()=>{var e,t;const a=(0,o.TH)(),[b,_]=(0,n.useState)(),[v,f]=(0,n.useState)([]),[E,y]=(0,n.useState)(0),{currentStep:S,currentData:N,themeStatus:C,themeVariations:D}=(0,r.useSelect)((e=>({currentStep:e(i.h).getStepFromPath(a.pathname),currentData:e(i.h).getCurrentOnboardingData(),themeStatus:e(i.h).getThemeStatus(),themeVariations:e(i.h).getStepPreviewData()})),[]),{setDrawerActiveView:T,setSidebarActiveView:k,setCurrentOnboardingData:x,updateThemeStatus:P}=(0,r.useDispatch)(i.h);(0,n.useEffect)((()=>{k(u.Jq),T(u.Yl)}),[]),(0,n.useEffect)((()=>{C===u.GV&&async function(){var e;const t=await(0,l.C)(null==S||null===(e=S.data)||void 0===e?void 0:e.patternId);if(null!=t&&t.error)return P(u.a0);_(function(e){const t=[];return e.forEach((e=>{t.push(e.content),v.push(e.slug)})),f(v),t}(null==t?void 0:t.body)),""!==(null==N?void 0:N.data.sitePages.homepage)?y(null==v?void 0:v.indexOf(null==N?void 0:N.data.sitePages.homepage)):(N.data.sitePages={...N.data.sitePages,homepage:v[0]},x(N))}()}),[C]);const V={heading:(0,h.__)("There’s no place like a great home page","wp-module-onboarding"),subheading:(0,h.__)("Pick a starter layout you can refine and remix with your content","wp-module-onboarding")};return(0,n.createElement)(c.U,null,(0,n.createElement)(m.V3,null,(0,n.createElement)(s.Z,null,(0,n.createElement)("div",{className:"homepage_preview"},(0,n.createElement)(d.Z,{title:V.heading,subtitle:V.subheading}),(0,n.createElement)("div",{className:"homepage_preview__list"},(0,n.createElement)(w.Z,{size:3,colGap:50},(0,n.createElement)(m.r9,{watch:b,count:null===(e=D[null==S||null===(t=S.data)||void 0===t?void 0:t.patternId])||void 0===e?void 0:e.previewCount,callback:function(){return null==b?void 0:b.map(((e,t)=>e?(0,n.createElement)(m.H,{key:t,className:"homepage_preview__list__item",selected:t===E,blockGrammer:e,viewportWidth:1200,styling:"custom",overlay:!1,onClick:()=>function(e){y(e);const t=v[e];N.data.sitePages={...N.data.sitePages,homepage:t},x(N),(0,g.tH)(new g.Z_(p.El,t))}(t)}):null))},className:"homepage_preview__list__item",viewportWidth:1200})))))))}}}]); \ No newline at end of file diff --git a/build/1.11.2/696.js b/build/1.11.3/696.js similarity index 70% rename from build/1.11.2/696.js rename to build/1.11.3/696.js index 3de19e41f..2ab344309 100644 --- a/build/1.11.2/696.js +++ b/build/1.11.3/696.js @@ -4,4 +4,4 @@ /* translators: %s: Brand */ (0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,l.sprintf)( /* translators: %s: Brand */ -(0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,l.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:v,setIsDrawerSuppressed:_,setIsHeaderNavigationEnabled:f}=(0,o.useDispatch)(s.h),E=()=>{switch(h){case u.Rq:case u.GV:return(()=>{if("function"==typeof a)return a();g&&v(!0),_(!1),f(!0)})();default:v(!1),_(!0),f(!1)}};(0,n.useEffect)((()=>{E(),h===u.a0&&(async()=>{const e=await(async()=>{const e=await(0,d.YL)(u.DY);return null!=e&&e.error?u.vv:e.body.status})();switch(e){case u.Zh:(async()=>{(await(0,d.sN)(u.DY)).error||!0!==m?y():window.location.reload()})();break;case u.GV:!0===m&&window.location.reload();break;default:b(e)}})()}),[h]);const y=async()=>{if(b(u.Zh),(await(0,d.N9)(u.DY,!0,!1)).error)return b(u.Rq);!0===m&&window.location.reload()};return(0,n.createElement)(n.Fragment,null,(()=>{switch(h){case u.vv:return(0,n.createElement)(N,{showButton:!1,isModalOpen:!0,modalTitle:(0,l.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,l.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:y,modalExitButtonText:(0,l.__)("Exit to WordPress","wp-module-onboarding")});case u.Rq:return(0,n.createElement)(c.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case u.GV:return t;default:return(0,n.createElement)(i.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())}},696:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var n=a(9307),o=a(9818),r=a(9250),l=a(2503),i=a(5634),s=a(1526),d=a(6138),u=a(2200),c=a(3124),m=a(6332),g=a(1054),h=a(5736);var p=a(1760);const w=()=>{var e;const t=(0,r.TH)(),[a,w]=(0,n.useState)(),[b,v]=(0,n.useState)([]),{currentStep:_,currentData:f,themeStatus:E,themeVariations:y}=(0,o.useSelect)((e=>({currentStep:e(l.h).getStepFromPath(t.pathname),currentData:e(l.h).getCurrentOnboardingData(),themeStatus:e(l.h).getThemeStatus(),themeVariations:e(l.h).getStepPreviewData()})),[]),{setDrawerActiveView:S,setSidebarActiveView:N,updateThemeStatus:C,setCurrentOnboardingData:D}=(0,o.useDispatch)(l.h);(0,n.useEffect)((()=>{N(u.Jq),S(u.Yl)}),[]);const T=(e,t)=>!1!==t?null==t?void 0:t.reduce(((t,a)=>e.includes(a.slug)?t.concat({slug:a.slug,title:a.title}):t),[]):void 0,k=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(e),f.data.sitePages.other=0!==e.length&&T(e,t),D(f)},x=(e,t)=>{!0!==e||b.includes(t)?!1===e&&k(b.filter((e=>e!==t)),a):k(b.concat(t),a)};(0,n.useEffect)((()=>{E===u.GV&&(async()=>{var e;const t=await(0,d.C)(null==_||null===(e=_.data)||void 0===e?void 0:e.patternId);if(null!=t&&t.error)return C(u.a0);if(null!=t&&t.body){var a;if(null!==(a=f.data.sitePages)&&void 0!==a&&a.other)if(!1===f.data.sitePages.other)v([]);else if(0!==f.data.sitePages.other.length)v(f.data.sitePages.other.map((e=>e.slug)));else{const e=t.body.reduce(((e,t)=>null!=t&&t.selected?e.concat(t.slug):e),[]);k(e,t.body)}w(t.body)}})()}),[E]);const P={heading:(0,h.__)("You have ideas, we have page templates","wp-module-onboarding"),subheading:(0,h.__)("Begin closer to the finish line than a blank canvas.","wp-module-onboarding")};return(0,n.createElement)(c.U,null,(0,n.createElement)(m.V3,null,(0,n.createElement)(i.Z,null,(0,n.createElement)("div",{className:"site-pages"},(0,n.createElement)(s.Z,{title:P.heading,subtitle:P.subheading}),(0,n.createElement)("div",{className:"site-pages__list"},(0,n.createElement)(p.Z,{size:2},(0,n.createElement)(g.Z,{className:"site-pages__list__item",count:null===(e=y[null==_?void 0:_.patternId])||void 0===e?void 0:e.previewCount,watch:a,isWithCard:!0,callback:()=>b&&(null==a?void 0:a.map(((e,t)=>(0,n.createElement)(m.T9,{key:t,className:"site-pages__list__item",blockGrammer:e.content,viewportWidth:1200,styling:"custom",overlay:!0,title:null==e?void 0:e.title,slug:e.slug,selected:b.includes(e.slug),onClick:x,description:null==e?void 0:e.description})))),viewportWidth:1200})))))))}}}]); \ No newline at end of file +(0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,l.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:v,setIsDrawerSuppressed:_,setIsHeaderNavigationEnabled:f}=(0,o.useDispatch)(s.h),E=()=>{switch(h){case u.Rq:case u.GV:return(()=>{if("function"==typeof a)return a();g&&v(!0),_(!1),f(!0)})();default:v(!1),_(!0),f(!1)}};(0,n.useEffect)((()=>{E(),h===u.a0&&(async()=>{const e=await(async()=>{const e=await(0,d.YL)(u.DY);return null!=e&&e.error?u.vv:e.body.status})();switch(e){case u.Zh:(async()=>{(await(0,d.sN)(u.DY)).error||!0!==m?y():window.location.reload()})();break;case u.GV:!0===m&&window.location.reload();break;default:b(e)}})()}),[h]);const y=async()=>{if(b(u.Zh),(await(0,d.N9)(u.DY,!0,!1)).error)return b(u.Rq);!0===m&&window.location.reload()};return(0,n.createElement)(n.Fragment,null,(()=>{switch(h){case u.vv:return(0,n.createElement)(N,{showButton:!1,isModalOpen:!0,modalTitle:(0,l.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,l.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:y,modalExitButtonText:(0,l.__)("Exit to WordPress","wp-module-onboarding")});case u.Rq:return(0,n.createElement)(c.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case u.GV:return t;default:return(0,n.createElement)(i.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())}},696:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var n=a(9307),o=a(9818),r=a(9250),l=a(2503),i=a(5634),s=a(1526),d=a(6138),u=a(2200),c=a(3124),m=a(6332),g=a(1054),h=a(5736);var p=a(1760);const w=()=>{var e,t;const a=(0,r.TH)(),[w,b]=(0,n.useState)(),[v,_]=(0,n.useState)([]),{currentStep:f,currentData:E,themeStatus:y,themeVariations:S}=(0,o.useSelect)((e=>({currentStep:e(l.h).getStepFromPath(a.pathname),currentData:e(l.h).getCurrentOnboardingData(),themeStatus:e(l.h).getThemeStatus(),themeVariations:e(l.h).getStepPreviewData()})),[]),{setDrawerActiveView:N,setSidebarActiveView:C,updateThemeStatus:D,setCurrentOnboardingData:T}=(0,o.useDispatch)(l.h);(0,n.useEffect)((()=>{C(u.Jq),N(u.Yl)}),[]);const k=(e,t)=>!1!==t?null==t?void 0:t.reduce(((t,a)=>e.includes(a.slug)?t.concat({slug:a.slug,title:a.title}):t),[]):void 0,x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_(e),E.data.sitePages.other=0!==e.length&&k(e,t),T(E)},P=(e,t)=>{!0!==e||v.includes(t)?!1===e&&x(v.filter((e=>e!==t)),w):x(v.concat(t),w)};(0,n.useEffect)((()=>{y===u.GV&&(async()=>{var e;const t=await(0,d.C)(null==f||null===(e=f.data)||void 0===e?void 0:e.patternId);if(null!=t&&t.error)return D(u.a0);if(null!=t&&t.body){var a;if(null!==(a=E.data.sitePages)&&void 0!==a&&a.other)if(!1===E.data.sitePages.other)_([]);else if(0!==E.data.sitePages.other.length)_(E.data.sitePages.other.map((e=>e.slug)));else{const e=t.body.reduce(((e,t)=>null!=t&&t.selected?e.concat(t.slug):e),[]);x(e,t.body)}b(t.body)}})()}),[y]);const B={heading:(0,h.__)("You have ideas, we have page templates","wp-module-onboarding"),subheading:(0,h.__)("Begin closer to the finish line than a blank canvas.","wp-module-onboarding")};return(0,n.createElement)(c.U,null,(0,n.createElement)(m.V3,null,(0,n.createElement)(i.Z,null,(0,n.createElement)("div",{className:"site-pages"},(0,n.createElement)(s.Z,{title:B.heading,subtitle:B.subheading}),(0,n.createElement)("div",{className:"site-pages__list"},(0,n.createElement)(p.Z,{size:2},(0,n.createElement)(g.Z,{className:"site-pages__list__item",count:null===(e=S[null==f||null===(t=f.data)||void 0===t?void 0:t.patternId])||void 0===e?void 0:e.previewCount,watch:w,isWithCard:!0,callback:()=>v&&(null==w?void 0:w.map(((e,t)=>(0,n.createElement)(m.T9,{key:t,className:"site-pages__list__item",blockGrammer:e.content,viewportWidth:1200,styling:"custom",overlay:!0,title:null==e?void 0:e.title,slug:e.slug,selected:v.includes(e.slug),onClick:P,description:null==e?void 0:e.description})))),viewportWidth:1200})))))))}}}]); \ No newline at end of file diff --git a/build/1.11.2/704.js b/build/1.11.3/704.js similarity index 71% rename from build/1.11.2/704.js rename to build/1.11.3/704.js index 967a888c5..09a3062cd 100644 --- a/build/1.11.2/704.js +++ b/build/1.11.3/704.js @@ -4,7 +4,7 @@ /* translators: %s: Brand */ (0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,l.sprintf)( /* translators: %s: Brand */ -(0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,l.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:_,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:S}=(0,o.useDispatch)(s.h),f=()=>{switch(g){case u.Rq:case u.GV:return(()=>{if("function"==typeof a)return a();h&&_(!0),v(!1),S(!0)})();default:_(!1),v(!0),S(!1)}};(0,n.useEffect)((()=>{f(),g===u.a0&&(async()=>{const e=await(async()=>{const e=await(0,d.YL)(u.DY);return null!=e&&e.error?u.vv:e.body.status})();switch(e){case u.Zh:(async()=>{(await(0,d.sN)(u.DY)).error||!0!==m?E():window.location.reload()})();break;case u.GV:!0===m&&window.location.reload();break;default:b(e)}})()}),[g]);const E=async()=>{if(b(u.Zh),(await(0,d.N9)(u.DY,!0,!1)).error)return b(u.Rq);!0===m&&window.location.reload()};return(0,n.createElement)(n.Fragment,null,(()=>{switch(g){case u.vv:return(0,n.createElement)(N,{showButton:!1,isModalOpen:!0,modalTitle:(0,l.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,l.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:E,modalExitButtonText:(0,l.__)("Exit to WordPress","wp-module-onboarding")});case u.Rq:return(0,n.createElement)(c.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case u.GV:return t;default:return(0,n.createElement)(i.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())}},2704:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=a(9307),o=a(9818),r=a(9250),l=a(3595),i=a(2503),s=a(5634),d=a(1526),u=a(6690),c=a(6138),m=a(7625),h=a(8244),g=a(2200),p=a(3124),w=a(6332),b=a(9885),_=a(8297),v=a(6342),S=a(1760);const f=()=>{var e;const t=(0,l.Z)(),a=(0,r.TH)(),[f,E]=(0,n.useState)(),[y,N]=(0,n.useState)(),[C,k]=(0,n.useState)(),D=(0,r.s0)(),{currentStep:x,nextStep:T,currentData:Z,storedPreviewSettings:P,allSteps:B,themeStatus:V,themeVariations:O}=(0,o.useSelect)((e=>({currentStep:e(i.h).getStepFromPath(a.pathname),nextStep:e(i.h).getNextStep(),currentData:e(i.h).getCurrentOnboardingData(),storedPreviewSettings:e(i.h).getPreviewSettings(),allSteps:e(i.h).getAllSteps(),themeStatus:e(i.h).getThemeStatus(),themeVariations:e(i.h).getStepPreviewData()})),[]),{setDrawerActiveView:G,setSidebarActiveView:H,updatePreviewSettings:I,setCurrentOnboardingData:Y,updateThemeStatus:W,updateAllSteps:q}=(0,o.useDispatch)(i.h);return(0,n.useEffect)((()=>{H(g.Jq),G(g.Yl)}),[]),(0,n.useEffect)((()=>{V===g.GV&&(async()=>{var e;const t=await(0,c.C)(null==x||null===(e=x.data)||void 0===e?void 0:e.patternId,!0);if(null!=t&&t.error)return W(g.a0);const a=await(0,m.oC)(!0);if(null!=a&&a.error)return W(g.a0);k(Z.data.theme.variation),E(null==t?void 0:t.body),N(null==a?void 0:a.body),k(Z.data.theme.variation)})()}),[V]),(0,n.createElement)(p.U,null,(0,n.createElement)(s.Z,null,(0,n.createElement)("div",{className:"theme-styles-menu"},(0,n.createElement)(d.Z,{title:t.heading},(0,n.createElement)("h3",{className:"nfd-main-heading__subtitle"},`${t.subheading} `,(0,n.createElement)("button",{className:"theme-styles-menu__custom-pages-link",onClick:()=>{const e=(0,b.Lb)(B,h.c.conditionalSteps);q(e.allSteps),Z.data.customDesign=!0,Y(Z),D(h.c.conditionalSteps[0].path)}},t.subheading_link))),(0,n.createElement)("div",{className:"theme-styles-menu__list"},(0,n.createElement)(S.Z,{size:3},(0,n.createElement)(w.r9,{className:"theme-styles-menu__list__item",count:null===(e=O[null==x?void 0:x.patternId])||void 0===e?void 0:e.previewCount,watch:f&&y,callback:()=>null==y?void 0:y.map(((e,t)=>(0,n.createElement)(w.H,{key:t,className:"theme-styles-menu__list__item",selected:e.title===C,blockGrammer:f,viewportWidth:900,styling:"custom",previewSettings:e,overlay:!0,onClick:()=>(e=>{const t=y[e];I((0,u.NF)(t,P)),k(t.title),Z.data.theme.variation=t.title,Y(Z),D(T.path),(0,_.tH)(new _.Z_(v.Dv,t.title))})(t)}))),viewportWidth:900}))))))}},3595:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(5736);const o=()=>({heading:(0,n.__)("Lets tailor your theme for the perfect fit","wp-module-onboarding"),subheading:(0,n.__)("Start with a style preset or","wp-module-onboarding"), +(0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,l.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:_,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:S}=(0,o.useDispatch)(s.h),f=()=>{switch(g){case u.Rq:case u.GV:return(()=>{if("function"==typeof a)return a();h&&_(!0),v(!1),S(!0)})();default:_(!1),v(!0),S(!1)}};(0,n.useEffect)((()=>{f(),g===u.a0&&(async()=>{const e=await(async()=>{const e=await(0,d.YL)(u.DY);return null!=e&&e.error?u.vv:e.body.status})();switch(e){case u.Zh:(async()=>{(await(0,d.sN)(u.DY)).error||!0!==m?E():window.location.reload()})();break;case u.GV:!0===m&&window.location.reload();break;default:b(e)}})()}),[g]);const E=async()=>{if(b(u.Zh),(await(0,d.N9)(u.DY,!0,!1)).error)return b(u.Rq);!0===m&&window.location.reload()};return(0,n.createElement)(n.Fragment,null,(()=>{switch(g){case u.vv:return(0,n.createElement)(N,{showButton:!1,isModalOpen:!0,modalTitle:(0,l.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,l.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:E,modalExitButtonText:(0,l.__)("Exit to WordPress","wp-module-onboarding")});case u.Rq:return(0,n.createElement)(c.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case u.GV:return t;default:return(0,n.createElement)(i.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())}},2704:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=a(9307),o=a(9818),r=a(9250),l=a(3595),i=a(2503),s=a(5634),d=a(1526),u=a(6690),c=a(6138),m=a(7625),h=a(8244),g=a(2200),p=a(3124),w=a(6332),b=a(9885),_=a(8297),v=a(6342),S=a(1760);const f=()=>{var e,t;const a=(0,l.Z)(),f=(0,r.TH)(),[E,y]=(0,n.useState)(),[N,C]=(0,n.useState)(),[k,D]=(0,n.useState)(),x=(0,r.s0)(),{currentStep:T,nextStep:Z,currentData:P,storedPreviewSettings:B,allSteps:V,themeStatus:O,themeVariations:G}=(0,o.useSelect)((e=>({currentStep:e(i.h).getStepFromPath(f.pathname),nextStep:e(i.h).getNextStep(),currentData:e(i.h).getCurrentOnboardingData(),storedPreviewSettings:e(i.h).getPreviewSettings(),allSteps:e(i.h).getAllSteps(),themeStatus:e(i.h).getThemeStatus(),themeVariations:e(i.h).getStepPreviewData()})),[]),{setDrawerActiveView:H,setSidebarActiveView:I,updatePreviewSettings:Y,setCurrentOnboardingData:W,updateThemeStatus:q,updateAllSteps:F}=(0,o.useDispatch)(i.h);return(0,n.useEffect)((()=>{I(g.Jq),H(g.Yl)}),[]),(0,n.useEffect)((()=>{O===g.GV&&(async()=>{var e;const t=await(0,c.C)(null==T||null===(e=T.data)||void 0===e?void 0:e.patternId,!0);if(null!=t&&t.error)return q(g.a0);const a=await(0,m.oC)(!0);if(null!=a&&a.error)return q(g.a0);D(P.data.theme.variation),y(null==t?void 0:t.body),C(null==a?void 0:a.body),D(P.data.theme.variation)})()}),[O]),(0,n.createElement)(p.U,null,(0,n.createElement)(s.Z,null,(0,n.createElement)("div",{className:"theme-styles-menu"},(0,n.createElement)(d.Z,{title:a.heading},(0,n.createElement)("h3",{className:"nfd-main-heading__subtitle"},`${a.subheading} `,(0,n.createElement)("button",{className:"theme-styles-menu__custom-pages-link",onClick:()=>{const e=(0,b.Lb)(V,h.c.conditionalSteps);F(e.allSteps),P.data.customDesign=!0,W(P),x(h.c.conditionalSteps[0].path)}},a.subheading_link))),(0,n.createElement)("div",{className:"theme-styles-menu__list"},(0,n.createElement)(S.Z,{size:3},(0,n.createElement)(w.r9,{className:"theme-styles-menu__list__item",count:null===(e=G[null==T||null===(t=T.data)||void 0===t?void 0:t.patternId])||void 0===e?void 0:e.previewCount,watch:E&&N,callback:()=>null==N?void 0:N.map(((e,t)=>(0,n.createElement)(w.H,{key:t,className:"theme-styles-menu__list__item",selected:e.title===k,blockGrammer:E,viewportWidth:900,styling:"custom",previewSettings:e,overlay:!0,onClick:()=>(e=>{const t=N[e];Y((0,u.NF)(t,B)),D(t.title),P.data.theme.variation=t.title,W(P),x(Z.path),(0,_.tH)(new _.Z_(v.Dv,t.title))})(t)}))),viewportWidth:900}))))))}},3595:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(5736);const o=()=>({heading:(0,n.__)("Lets tailor your theme for the perfect fit","wp-module-onboarding"),subheading:(0,n.__)("Start with a style preset or","wp-module-onboarding"), /* translators: build a custom design is a link, this would be concatenated with "Start with a style preset or" making it "Start with a style preset or build a custom design."*/ subheading_link:(0,n.__)("build a custom design.","wp-module-onboarding"),checkbox_label:(0,n.__)("Customize Colors & Fonts?","wp-module-onboarding"),checkbox_hint:(0,n.__)("Check to customize in the next few steps (or leave empty and use the Site Editor later)","wp-module-onboarding")})}}]); \ No newline at end of file diff --git a/build/1.11.2/719.js b/build/1.11.3/719.js similarity index 100% rename from build/1.11.2/719.js rename to build/1.11.3/719.js diff --git a/build/1.11.2/73.js b/build/1.11.3/73.js similarity index 100% rename from build/1.11.2/73.js rename to build/1.11.3/73.js diff --git a/build/1.11.2/76.js b/build/1.11.3/76.js similarity index 100% rename from build/1.11.2/76.js rename to build/1.11.3/76.js diff --git a/build/1.11.2/792.js b/build/1.11.3/792.js similarity index 100% rename from build/1.11.2/792.js rename to build/1.11.3/792.js diff --git a/build/1.11.2/849.js b/build/1.11.3/849.js similarity index 100% rename from build/1.11.2/849.js rename to build/1.11.3/849.js diff --git a/build/1.11.2/856.js b/build/1.11.3/856.js similarity index 100% rename from build/1.11.2/856.js rename to build/1.11.3/856.js diff --git a/build/1.11.2/993.js b/build/1.11.3/993.js similarity index 100% rename from build/1.11.2/993.js rename to build/1.11.3/993.js diff --git a/build/1.11.2/994.js b/build/1.11.3/994.js similarity index 100% rename from build/1.11.2/994.js rename to build/1.11.3/994.js diff --git a/build/1.11.2/images/bluesky.733ebcbf.png b/build/1.11.3/images/bluesky.733ebcbf.png similarity index 100% rename from build/1.11.2/images/bluesky.733ebcbf.png rename to build/1.11.3/images/bluesky.733ebcbf.png diff --git a/build/1.11.2/images/content.fb050ea1.png b/build/1.11.3/images/content.fb050ea1.png similarity index 100% rename from build/1.11.2/images/content.fb050ea1.png rename to build/1.11.3/images/content.fb050ea1.png diff --git a/build/1.11.2/images/design.cc6a697f.png b/build/1.11.3/images/design.cc6a697f.png similarity index 100% rename from build/1.11.2/images/design.cc6a697f.png rename to build/1.11.3/images/design.cc6a697f.png diff --git a/build/1.11.2/images/features.593fb09c.png b/build/1.11.3/images/features.593fb09c.png similarity index 100% rename from build/1.11.2/images/features.593fb09c.png rename to build/1.11.3/images/features.593fb09c.png diff --git a/build/1.11.2/images/full-service.7f58f410.png b/build/1.11.3/images/full-service.7f58f410.png similarity index 100% rename from build/1.11.2/images/full-service.7f58f410.png rename to build/1.11.3/images/full-service.7f58f410.png diff --git a/build/1.11.2/images/full-service.adb3abd6.png b/build/1.11.3/images/full-service.adb3abd6.png similarity index 100% rename from build/1.11.2/images/full-service.adb3abd6.png rename to build/1.11.3/images/full-service.adb3abd6.png diff --git a/build/1.11.2/images/help.19cc7e75.png b/build/1.11.3/images/help.19cc7e75.png similarity index 100% rename from build/1.11.2/images/help.19cc7e75.png rename to build/1.11.3/images/help.19cc7e75.png diff --git a/build/1.11.2/images/step-interstitial.00b15f9e.png b/build/1.11.3/images/step-interstitial.00b15f9e.png similarity index 100% rename from build/1.11.2/images/step-interstitial.00b15f9e.png rename to build/1.11.3/images/step-interstitial.00b15f9e.png diff --git a/build/1.11.2/images/wp-admin.2908b886.png b/build/1.11.3/images/wp-admin.2908b886.png similarity index 100% rename from build/1.11.2/images/wp-admin.2908b886.png rename to build/1.11.3/images/wp-admin.2908b886.png diff --git a/build/1.11.2/images/wp-admin.6c8af0b4.png b/build/1.11.3/images/wp-admin.6c8af0b4.png similarity index 100% rename from build/1.11.2/images/wp-admin.6c8af0b4.png rename to build/1.11.3/images/wp-admin.6c8af0b4.png diff --git a/build/1.11.2/images/wp-admin.d8650899.png b/build/1.11.3/images/wp-admin.d8650899.png similarity index 100% rename from build/1.11.2/images/wp-admin.d8650899.png rename to build/1.11.3/images/wp-admin.d8650899.png diff --git a/build/1.11.2/onboarding.asset.php b/build/1.11.3/onboarding.asset.php similarity index 83% rename from build/1.11.2/onboarding.asset.php rename to build/1.11.3/onboarding.asset.php index 9cab0dc49..54ff1e5e9 100644 --- a/build/1.11.2/onboarding.asset.php +++ b/build/1.11.3/onboarding.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-preferences', 'wp-primitives', 'wp-style-engine', 'wp-url'), 'version' => '58f80e3a05eaf3f95010'); + array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-preferences', 'wp-primitives', 'wp-style-engine', 'wp-url'), 'version' => '1056bb463217718dd502'); diff --git a/build/1.11.2/onboarding.css b/build/1.11.3/onboarding.css similarity index 100% rename from build/1.11.2/onboarding.css rename to build/1.11.3/onboarding.css diff --git a/build/1.11.2/onboarding.js b/build/1.11.3/onboarding.js similarity index 99% rename from build/1.11.2/onboarding.js rename to build/1.11.3/onboarding.js index 05e1b7efe..eb61774d2 100644 --- a/build/1.11.2/onboarding.js +++ b/build/1.11.3/onboarding.js @@ -56,7 +56,7 @@ /* translators: site or store */ (0,p.__)("Would you like to enter your WordPress Dashboard or continue setting up your %s?","wp-module-onboarding"),(0,h.I)("site")),question1:(0,p.__)("You've made great progress! Would you like to keep going with the setup or take it from here?","wp-module-onboarding"),question2:(0,p.sprintf)( /* translators: Brand */ -(0,p.__)("You can continue from your %s home page in the Next steps list.","wp-module-onboarding"),e),redirectMessage:(0,p.__)("Taking you to WordPress in…","wp-module-onboarding")},buttons:{button1:{text:(0,p.__)("Enter WordPress","wp-module-onboarding")},button2:{text:(0,p.__)("Continue Setup","wp-module-onboarding")}}}))(C);return(0,r.createElement)(d.Z,{isBgPrimary:!0,isCentered:!0},(0,r.createElement)(u.Z,{className:"chapter-interstitial"},(0,r.createElement)(c.Z,{heading:T.heading,subHeading:T.subheading}),(0,r.createElement)("div",{className:"chapter-interstitial__content"},(0,r.createElement)("div",{className:"chapter-interstitial__content__column-left"},(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},T.content.heading),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question1"},T.content.question1),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question2"},T.content.question2),(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},T.content.redirectMessage,(0,r.createElement)("br",null)," ",e)),(0,r.createElement)("div",{className:"chapter-interstitial__content__column-right"},(0,r.createElement)("div",{className:"chapter-interstitial__content__column-right__img"}))),(0,r.createElement)("div",{className:"chapter-interstitial__buttons"},(0,r.createElement)(m.default,{onClick:()=>k(),text:T.buttons.button1.text,className:"chapter-interstitial__buttons--blue"}),(0,r.createElement)(g.default,{onClick:()=>n(x.path),text:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("b",{className:"chapter-interstitial__buttons--white__text"},T.buttons.button2.text),(0,r.createElement)(o.Z,{className:"chapter-interstitial__buttons--white__icon",icon:l.Z})),className:"chapter-interstitial__buttons--white"}))))}},35:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),i=n(5634),a=n(1526),o=n(950);const l=e=>{let{title:t,subtitle:n}=e;return(0,r.createElement)(i.Z,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(a.Z,{title:t,subtitle:n}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(o.Z,null))}},950:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),i=n(2503),a=n(9818),o=n(5736);const l=e=>{let{question:t=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:n=(0,o.__)("Hire our Experts","wp-module-onboarding")}=e;const l=(0,a.select)(i.h).getHireExpertsUrl();return l&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,r.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},n))}},349:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(4184),a=n.n(i);const o=e=>{let{className:t="",children:n}=e;return(0,r.createElement)("div",{className:a()("nfd-onboarding-large-card",t)},(0,r.createElement)("div",{className:"nfd-onboarding-large-card__logo"}),n)}},5087:(e,t,n)=>{"use strict";n.d(t,{e:()=>o,i:()=>i});var r=n(2819);const i={NONE:"none",AD_LINK_ERROR:"ad-link-error",INVALID_LINK_ERROR:"invalid-link-error"},a={facebook_site:"facebook",twitter_site:"twitter",instagram_url:"instagram",youtube_url:"youtube",linkedin_url:"linkedin",yelp_url:"yelp",tiktok_url:"tiktok"},o=e=>(0,r.transform)(a,((t,n,r)=>{const i=e[r]||(null==e?void 0:e.other_social_urls[r]);i&&(t[n]=i)}))},6515:(e,t,n)=>{"use strict";n.d(t,{H:()=>r,_:()=>i});const r="wp-setup",i="ecommerce"},8548:(e,t,n)=>{"use strict";n.d(t,{LI:()=>he,Ub:()=>pe,Nr:()=>ce,HA:()=>de,iD:()=>ue,Tx:()=>me});var r=n(6515),i=n(2819),a=n(4433),o=n(8244),l=n(1809),s=n(1715),c=n(6922),d=n(9307),u=n(9818),p=n(2503),h=n(5736),m=n(1392);const g=(0,d.lazy)((()=>n.e(657).then(n.bind(n,8657)))),v=(0,d.lazy)((()=>n.e(574).then(n.bind(n,2574)))),f=(0,d.lazy)((()=>n.e(856).then(n.bind(n,3856)))),w=(0,d.lazy)((()=>Promise.resolve().then(n.bind(n,2058)))),b=(0,d.lazy)((()=>Promise.resolve().then(n.bind(n,5378)))),_=(0,d.lazy)((()=>n.e(33).then(n.bind(n,33)))),y=(0,d.lazy)((()=>n.e(58).then(n.bind(n,1058))));var E=n(304),S=n(2200);const k=(0,d.lazy)((()=>n.e(76).then(n.bind(n,1076)))),C=new E.h({path:"/wp-setup/step/get-started/welcome",title:(0,h.__)("Welcome","wp-module-onboarding"),Component:k,icon:c.Z,drawerView:S.mz,sidebars:{LearnMore:{SidebarComponents:[()=>{var e,t,n;const{brandName:r,expertsLink:i,techSupportLink:a,fullServiceCreativeTeamLink:o,brandConfig:l}=(0,u.useSelect)((e=>({brandName:e(p.h).getNewfoldBrandName(),expertsLink:e(p.h).getExpertsUrl(),techSupportLink:e(p.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.h).getfullServiceCreativeTeamUrl(),brandConfig:e(p.h).getNewfoldBrandConfig()}))),s=((e,t,n,r)=>({introduction:{heading:(0,h.__)("Start Setup","wp-module-onboarding"),subheading:(0,h.sprintf)( +(0,p.__)("You can continue from your %s home page in the Next steps list.","wp-module-onboarding"),e),redirectMessage:(0,p.__)("Taking you to WordPress in…","wp-module-onboarding")},buttons:{button1:{text:(0,p.__)("Enter WordPress","wp-module-onboarding")},button2:{text:(0,p.__)("Continue Setup","wp-module-onboarding")}}}))(C);return(0,r.createElement)(d.Z,{isBgPrimary:!0,isCentered:!0},(0,r.createElement)(u.Z,{className:"chapter-interstitial"},(0,r.createElement)(c.Z,{heading:T.heading,subHeading:T.subheading}),(0,r.createElement)("div",{className:"chapter-interstitial__content"},(0,r.createElement)("div",{className:"chapter-interstitial__content__column-left"},(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},T.content.heading),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question1"},T.content.question1),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question2"},T.content.question2),(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},T.content.redirectMessage,(0,r.createElement)("br",null)," ",e)),(0,r.createElement)("div",{className:"chapter-interstitial__content__column-right"},(0,r.createElement)("div",{className:"chapter-interstitial__content__column-right__img"}))),(0,r.createElement)("div",{className:"chapter-interstitial__buttons"},(0,r.createElement)(m.default,{onClick:()=>k(),text:T.buttons.button1.text,className:"chapter-interstitial__buttons--blue"}),(0,r.createElement)(g.default,{onClick:()=>n(x.path),text:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("b",{className:"chapter-interstitial__buttons--white__text"},T.buttons.button2.text),(0,r.createElement)(o.Z,{className:"chapter-interstitial__buttons--white__icon",icon:l.Z})),className:"chapter-interstitial__buttons--white"}))))}},35:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),i=n(5634),a=n(1526),o=n(950);const l=e=>{let{title:t,subtitle:n}=e;return(0,r.createElement)(i.Z,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(a.Z,{title:t,subtitle:n}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(o.Z,null))}},950:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),i=n(2503),a=n(9818),o=n(5736);const l=e=>{let{question:t=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:n=(0,o.__)("Hire our Experts","wp-module-onboarding")}=e;const l=(0,a.select)(i.h).getHireExpertsUrl();return l&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,r.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},n))}},349:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(4184),a=n.n(i);const o=e=>{let{className:t="",children:n}=e;return(0,r.createElement)("div",{className:a()("nfd-onboarding-large-card",t)},(0,r.createElement)("div",{className:"nfd-onboarding-large-card__logo"}),n)}},5087:(e,t,n)=>{"use strict";n.d(t,{e:()=>o,i:()=>i});var r=n(2819);const i={NONE:"none",AD_LINK_ERROR:"ad-link-error",INVALID_LINK_ERROR:"invalid-link-error"},a={facebook_site:"facebook",twitter_site:"twitter",instagram_url:"instagram",youtube_url:"youtube",linkedin_url:"linkedin",yelp_url:"yelp",tiktok_url:"tiktok"},o=e=>(0,r.transform)(a,((t,n,r)=>{var i;const a=(null==e?void 0:e[r])||(null==e||null===(i=e.other_social_urls)||void 0===i?void 0:i[r]);a&&(t[n]=a)}))},6515:(e,t,n)=>{"use strict";n.d(t,{H:()=>r,_:()=>i});const r="wp-setup",i="ecommerce"},8548:(e,t,n)=>{"use strict";n.d(t,{LI:()=>he,Ub:()=>pe,Nr:()=>ce,HA:()=>de,iD:()=>ue,Tx:()=>me});var r=n(6515),i=n(2819),a=n(4433),o=n(8244),l=n(1809),s=n(1715),c=n(6922),d=n(9307),u=n(9818),p=n(2503),h=n(5736),m=n(1392);const g=(0,d.lazy)((()=>n.e(657).then(n.bind(n,8657)))),v=(0,d.lazy)((()=>n.e(574).then(n.bind(n,2574)))),f=(0,d.lazy)((()=>n.e(856).then(n.bind(n,3856)))),w=(0,d.lazy)((()=>Promise.resolve().then(n.bind(n,2058)))),b=(0,d.lazy)((()=>Promise.resolve().then(n.bind(n,5378)))),_=(0,d.lazy)((()=>n.e(33).then(n.bind(n,33)))),y=(0,d.lazy)((()=>n.e(58).then(n.bind(n,1058))));var E=n(304),S=n(2200);const k=(0,d.lazy)((()=>n.e(76).then(n.bind(n,1076)))),C=new E.h({path:"/wp-setup/step/get-started/welcome",title:(0,h.__)("Welcome","wp-module-onboarding"),Component:k,icon:c.Z,drawerView:S.mz,sidebars:{LearnMore:{SidebarComponents:[()=>{var e,t,n;const{brandName:r,expertsLink:i,techSupportLink:a,fullServiceCreativeTeamLink:o,brandConfig:l}=(0,u.useSelect)((e=>({brandName:e(p.h).getNewfoldBrandName(),expertsLink:e(p.h).getExpertsUrl(),techSupportLink:e(p.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.h).getfullServiceCreativeTeamUrl(),brandConfig:e(p.h).getNewfoldBrandConfig()}))),s=((e,t,n,r)=>({introduction:{heading:(0,h.__)("Start Setup","wp-module-onboarding"),subheading:(0,h.sprintf)( /* translators: 1: Brand 2: website or store */ (0,h.__)("Lay the foundation for a successful %1$s %2$s using our WordPress Onboarding. ","wp-module-onboarding"),e,(0,m.I)("website")),icon:c.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-welcome-illustration"},information:{headingWithDescriptions:[{heading:(0,h.sprintf)( /* translators: %s: website or store */ diff --git a/package-lock.json b/package-lock.json index a4a78c77c..6664a633f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "1.11.2", + "version": "1.11.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@newfold-labs/wp-module-onboarding", - "version": "1.11.2", + "version": "1.11.3", "license": "GPL-2.0-or-later", "dependencies": { "@newfold-labs/js-utility-ui-analytics": "1.2.0", diff --git a/package.json b/package.json index e1472f249..a5231921e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "1.11.2", + "version": "1.11.3", "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", "license": "GPL-2.0-or-later", "private": true,