Edit file File name : onboarding.j Content :(()=>{var e,t,n={4371:(e,t,n)=>{"use strict";n.d(t,{y:()=>N,c:()=>o});var r={};n.r(r),n.d(r,{initializeNamespace:()=>l,updateHiiveDebounceInstance:()=>m,updateHiiveDebounceTime:()=>p,updateHiiveEventsQueue:()=>d,updateHiiveEventsQueueThreshold:()=>u,updateHiiveUrls:()=>c});var a={};n.r(a),n.d(a,{getHiiveBatchUrl:()=>w,getHiiveDebounce:()=>b,getHiiveEventsQueue:()=>h,getHiiveEventsQueueThreshold:()=>g,getHiiveSingleUrl:()=>f});var i=n(7143);class o{constructor(e,t,n,r){this.category=e,this.action=t,this.data=n,this.namespace=r}}const s={urls:{single:void 0,batch:void 0},queue:{events:[],threshold:100},debounce:{time:void 0,instance:void 0}};function l(e){return{type:"INITIALIZE_NAMESPACE",namespace:e}}function c(e,t){return{type:"UPDATE_HIIVE_URLS",urls:e,namespace:t}}function d(e,t){return{type:"UPDATE_HIIVE_EVENTS_QUEUE",events:e,namespace:t}}function u(e,t){return{type:"UPDATE_HIIVE_EVENTS_QUEUE_THRESHOLD",threshold:e,namespace:t}}function p(e,t){return{type:"UPDATE_HIIVE_DEBOUNCE_TIME",debounceTime:e,namespace:t}}function m(e,t){return{type:"UPDATE_HIIVE_DEBOUNCE_INSTANCE",instance:e,namespace:t}}function h(e,t){return e.hiive[t]?.queue.events}function g(e,t){return e.hiive[t]?.queue.threshold}function f(e,t){return e.hiive[t]?.urls.single}function w(e,t){return e.hiive[t]?.urls.batch}function b(e,t){return e.hiive[t]?.debounce}const _={reducer:(0,i.combineReducers)({hiive:(e,t)=>{switch(t.type){case"INITIALIZE_NAMESPACE":return{...e,[t.namespace]:s};case"UPDATE_HIIVE_URLS":return{...e,[t.namespace]:{...e[t.namespace],urls:{single:t.urls.single,batch:t.urls.batch}}};case"UPDATE_HIIVE_EVENTS_QUEUE":return{...e,[t.namespace]:{...e[t.namespace],queue:{events:t.events,threshold:e[t.namespace].queue.threshold}}};case"UPDATE_HIIVE_EVENTS_QUEUE_THRESHOLD":return{...e,[t.namespace]:{...e[t.namespace],queue:{events:e[t.namespace].queue.events,threshold:t.threshold}}};case"UPDATE_HIIVE_DEBOUNCE_TIME":return{...e,[t.namespace]:{...e[t.namespace],debounce:{time:t.debounceTime,instance:e[t.namespace].debounce.instance}}};case"UPDATE_HIIVE_DEBOUNCE_INSTANCE":return{...e,[t.namespace]:{...e[t.namespace],debounce:{time:e[t.namespace].debounce.time,instance:t.instance}}}}return e}}),actions:r,selectors:a},v=(0,i.createReduxStore)("newfold/ui-analytics",_);(0,i.register)(v);var E=n(1455),y=n.n(E);const S=e=>!!window?.nfdUIAnalytics?.hiive&&e in window.nfdUIAnalytics.hiive,k=e=>e instanceof o,C=async e=>{if(!e||!S(e))return!1;const t=(0,i.select)(v).getHiiveBatchUrl(e);if(!t)return!1;const n=(0,i.select)(v).getHiiveEventsQueue(e);if(0===n.length)return!0;(0,i.dispatch)(v).updateHiiveEventsQueue([],e);try{await y()({url:t,method:"POST",data:n})}catch(t){console.error(t),(0,i.dispatch)(v).updateHiiveEventsQueue(n,e)}return!0},N={initialize:async({namespace:e,urls:{single:t,batch:n}={},settings:{debounce:{time:r}={},queue:{threshold:a=100}={}}={}})=>!(!e||!S(e)&&(!t&&!n||((0,i.dispatch)(v).initializeNamespace(e),(0,i.dispatch)(v).updateHiiveUrls({single:t,batch:n},e),(0,i.dispatch)(v).updateHiiveDebounceTime(r,e),(0,i.dispatch)(v).updateHiiveEventsQueueThreshold(a,e),window.nfdUIAnalytics?.hiive?window.nfdUIAnalytics.hiive[e]=!0:window.nfdUIAnalytics={hiive:{[e]:!0}},0))),initialized:S,validate:k,track:e=>{if(!k(e)||!S(e.namespace))return!1;const t=e.namespace;delete e.namespace;const n=(0,i.select)(v).getHiiveEventsQueue(t);n.push(e),(0,i.dispatch)(v).updateHiiveEventsQueue(n,t);const r=(0,i.select)(v).getHiiveEventsQueueThreshold(t);return r&&r<n.length&&C(t),(e=>{if(!e)return!1;const t=(0,i.select)(v).getHiiveDebounce(e);!!t.time&&(clearInterval(t.instance),(0,i.dispatch)(v).updateHiiveDebounceInstance(setTimeout((()=>{C(e),(0,i.dispatch)(v).updateHiiveDebounceInstance(void 0,e)}),t.time),e))})(t),!0},send:async e=>{if(!k(e)||!S(e.namespace))return!1;const t=e.namespace;delete e.namespace;const n=(0,i.select)(v).getHiiveSingleUrl(t);if(!n)return!1;try{await y()({url:n,method:"POST",data:e})}catch(e){return console.error(e),!1}},dispatchEvents:C,disableDebounce:e=>{if(!e)return!1;const t=(0,i.select)(v).getHiiveDebounce(e);return t.instance&&(clearInterval(t.instance),(0,i.dispatch)(v).updateHiiveDebounceInstance(void 0,e),(0,i.dispatch)(v).updateHiiveDebounceTime(void 0,e)),!0}}},5588:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var a;n.d(t,{AO:()=>u,B6:()=>N,Gh:()=>P,HS:()=>O,Oi:()=>s,Rr:()=>p,TM:()=>o,pX:()=>R,pb:()=>x,rc:()=>a,tH:()=>z,ue:()=>h,yD:()=>D}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const i="popstate";function o(e){return void 0===e&&(e={}),function(e,t,n,o){void 0===o&&(o={});let{window:l=document.defaultView,v5Compat:p=!1}=o,m=l.history,h=a.Pop,g=null,f=w();function w(){return(m.state||{idx:null}).idx}function b(){h=a.Pop;let e=w(),t=null==e?null:e-f;f=e,g&&g({action:h,location:v.location,delta:t})}function _(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:u(e);return n=n.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==f&&(f=0,m.replaceState(r({},m.state,{idx:f}),""));let v={get action(){return h},get location(){return e(l,m)},listen(e){if(g)throw new Error("A history only accepts one active listener");return l.addEventListener(i,b),g=e,()=>{l.removeEventListener(i,b),g=null}},createHref:e=>t(l,e),createURL:_,encodeLocation(e){let t=_(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=a.Push;let r=d(v.location,e,t);n&&n(r,e),f=w()+1;let i=c(r,f),o=v.createHref(r);try{m.pushState(i,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(o)}p&&g&&g({action:h,location:v.location,delta:1})},replace:function(e,t){h=a.Replace;let r=d(v.location,e,t);n&&n(r,e),f=w();let i=c(r,f),o=v.createHref(r);m.replaceState(i,"",o),p&&g&&g({action:h,location:v.location,delta:0})},go:e=>m.go(e)};return v}((function(e,t){let{pathname:n="/",search:r="",hash:a=""}=p(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),d("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:u(t))}),(function(e,t){l("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function s(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,n,a){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function u(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var m;function h(e,t,n){void 0===n&&(n="/");let r=x(("string"==typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let a=g(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e<a.length;++e){let t=T(r);i=C(a[e],t)}return i}function g(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(e,a,i)=>{let o={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};o.relativePath.startsWith("/")&&(s(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let l=O([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),g(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:k(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of f(e.path))a(e,t,n);else a(e,t)})),t}function f(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return a?[i,""]:[i];let o=f(r.join("/")),s=[];return s.push(...o.map((e=>""===e?i:[i,e].join("/")))),a&&s.push(...o),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(m||(m={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const w=/^:[\w-]+$/,b=3,_=2,v=1,E=10,y=-2,S=e=>"*"===e;function k(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=y),t&&(r+=_),n.filter((e=>!S(e))).reduce(((e,t)=>e+(w.test(t)?b:""===t?v:E)),r)}function C(e,t){let{routesMeta:n}=e,r={},a="/",i=[];for(let e=0;e<n.length;++e){let o=n[e],s=e===n.length-1,l="/"===a?t:t.slice(a.length)||"/",c=N({path:o.relativePath,caseSensitive:o.caseSensitive,end:s},l);if(!c)return null;Object.assign(r,c.params);let d=o.route;i.push({params:r,pathname:O([a,c.pathname]),pathnameBase:I(O([a,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(a=O([a,c.pathnameBase]))}return i}function N(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=s[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:o,pattern:e}}function T(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function x(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function A(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function D(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function P(e,t,n,a){let i;void 0===a&&(a=!1),"string"==typeof e?i=p(e):(i=r({},e),s(!i.pathname||!i.pathname.includes("?"),A("?","pathname","search",i)),s(!i.pathname||!i.pathname.includes("#"),A("#","pathname","hash",i)),s(!i.search||!i.search.includes("#"),A("#","search","hash",i)));let o,l=""===e||""===i.pathname,c=l?"/":i.pathname;if(null==c)o=n;else{let e=t.length-1;if(!a&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?p(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:M(r),hash:L(a)}}(i,o),u=c&&"/"!==c&&c.endsWith("/"),m=(l||"."===c)&&n.endsWith("/");return d.pathname.endsWith("/")||!u&&!m||(d.pathname+="/"),d}const O=e=>e.join("/").replace(/\/\/+/g,"/"),I=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),M=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",L=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class z extends Error{}function R(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const V=["post","put","patch","delete"],F=(new Set(V),["get",...V]);new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},8087:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r,a,i=n(1609);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var s=function(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),r||(r=i.createElement("g",{clipPath:"url(#heart-filled_svg__a)"},i.createElement("path",{fill:"#EF4A71",d:"m10 19.159-1.025-.925q-2.65-2.426-4.375-4.188t-2.75-3.15T.413 8.383A6.6 6.6 0 0 1 0 6.11q0-2.25 1.513-3.763T5.25.833q1.426 0 2.638.676Q9.1 2.184 10 3.459q1.05-1.35 2.225-1.988A5.2 5.2 0 0 1 14.75.833q2.225 0 3.738 1.513T20 6.109q0 1.149-.413 2.274-.412 1.125-1.437 2.513t-2.75 3.15-4.375 4.188z"}))),a||(a=i.createElement("defs",null,i.createElement("clipPath",{id:"heart-filled_svg__a"},i.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"})))))}},3013:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r,a=n(1609);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var o=function(e){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),r||(r=a.createElement("path",{fill:"#9CA2A7",d:"m10 19.158-1.025-.925Q6.325 15.81 4.6 14.046t-2.75-3.15Q.826 9.508.413 8.383A6.6 6.6 0 0 1 0 6.108q0-2.25 1.513-3.762T5.25.833q1.426 0 2.638.675T10 3.458q1.05-1.35 2.225-1.987A5.2 5.2 0 0 1 14.75.833q2.225 0 3.738 1.513T20 6.108q0 1.15-.413 2.275-.412 1.125-1.437 2.513t-2.75 3.15-4.375 4.187zm0-1.975q2.524-2.325 4.163-3.987 1.637-1.663 2.6-2.913.962-1.25 1.35-2.225.387-.975.387-1.95 0-1.65-1.05-2.712t-2.7-1.063q-1.275 0-2.375.788-1.1.787-1.775 2.212H9.375q-.65-1.4-1.75-2.2t-2.375-.8q-1.65 0-2.7 1.063T1.5 6.108q0 .975.387 1.963.388.987 1.35 2.25t2.613 2.912 4.15 3.95"})))}},7677:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(8468);const a=(0,r.forwardRef)((function({icon:e,size:t=24,...n},a){return(0,r.cloneElement)(e,{width:t,height:t,...n,ref:a})}))},3175:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}))},8351:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}))},1607:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}))},6655:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}))},5822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"}))},8176:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}))},9572:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}))},8851:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}))},3290:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"}))},6786:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"}))},8690:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"}))},7589:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(5573);const i=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}))},19:(e,t,n)=>{"use strict";n.d(t,{E:()=>z});var r=n(7723),a=n(8969),i=n(9235),o=n(8690),s=n(8468),l=n(2502),c=n(1609),d=n(7143),u=n(7675),p=n(3474);const m=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),h=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),g=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),f=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),w=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),b=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),_=(0,s.lazy)((()=>n.e(74).then(n.bind(n,2074)))),v=new l.p({path:"/ecommerce/step/address",title:(0,r.__)("Street Address","wp-module-onboarding"),Component:_,icon:o.A,drawerView:a.eY,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:a}=(0,d.useSelect)((e=>({brandName:e(u.M).getNewfoldBrandName(),techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),i=((e,t,n)=>({introduction:{heading:(0,r.__)("Street Address","wp-module-onboarding"),subheading:(0,r.__)("Whether this is where the magic happens or the mail goes, tell us where your business is located.","wp-module-onboarding"),icon:o.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-address-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Whether it’s a storefront or a PO Box, we’re proud to help you connect your real-world and online businesses","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: Brand 2: Site or Store */ /* translators: 1: Brand 2: Site or Store */ (0,r.__)("We use this address to setup WooCommerce, your payment provider, Contact Page and more so you can start stocking the shelves of your %1$s Online %2$s.","wp-module-onboarding"),e,(0,p.P)("Site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__ecommerce-address"},(0,c.createElement)(b,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==a?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(m,{cssIcon:i.illustration.icon}),(0,c.createElement)(h,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)(g,null,!1!==a?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(f,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,c.createElement)(w,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Street Address","wp-module-onboarding")}});var E=n(5573);const y=(0,c.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(E.Path,{d:"M3 6.75C3 5.784 3.784 5 4.75 5H15V7.313l.05.027 5.056 2.73.394.212v3.468a1.75 1.75 0 01-1.75 1.75h-.012a2.5 2.5 0 11-4.975 0H9.737a2.5 2.5 0 11-4.975 0H3V6.75zM13.5 14V6.5H4.75a.25.25 0 00-.25.25V14h.965a2.493 2.493 0 011.785-.75c.7 0 1.332.287 1.785.75H13.5zm4.535 0h.715a.25.25 0 00.25-.25v-2.573l-4-2.16v4.568a2.487 2.487 0 011.25-.335c.7 0 1.332.287 1.785.75zM6.282 15.5a1.002 1.002 0 00.968 1.25 1 1 0 10-.968-1.25zm9 0a1 1 0 101.937.498 1 1 0 00-1.938-.498z"})),S=(0,c.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(E.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})),k=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),C=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),N=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),T=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),x=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),A=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),D=(0,s.lazy)((()=>n.e(325).then(n.bind(n,9325)))),P=new l.p({path:"/ecommerce/step/products",title:(0,r.__)("Product Info","wp-module-onboarding"),Component:D,icon:y,drawerView:a.eY,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:a}=(0,d.useSelect)((e=>({brandName:e(u.M).getNewfoldBrandName(),techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),i=((e,t,n)=>({introduction:{heading:(0,r.__)("Products Info","wp-module-onboarding"),subheading:(0,r.__)("We can offer free, exclusive solutions and apply our expert experience if we know how you sell.","wp-module-onboarding"),icon:S},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-products-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Go from multiple sizes to multiple locations to multiple online channels","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ (0,r.__)("Tell us a little about how and what you’re planning to sell and we’ll bring the power of WooCommerce and unique %1$s %2$s solutions to elevate your business and enhance your capabilities.","wp-module-onboarding"),e,(0,p.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__ecommerce-products"},(0,c.createElement)(A,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==a?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(k,{cssIcon:i.illustration.icon}),(0,c.createElement)(C,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)(N,null,!1!==a?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(T,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,c.createElement)(x,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Product Info","wp-module-onboarding")}});var O=n(7767),I=n(8744);const M=new l.p({path:`/${I.eS}/step/interstitial`,Component:i.A}),L=[v,P],z=new O.I({id:a.At,name:(0,r.__)("Commerce","wp-module-onboarding"),steps:L,interstitialSteps:[M]})},2895:(e,t,n)=>{"use strict";n.d(t,{_:()=>te});var r=n(7723),a=n(8969),i=n(8851),o=n(2502),s=n(8468),l=n(1609),c=n(7143),d=n(7675),u=n(3474);const p=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),m=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),h=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),g=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),f=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),w=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),b=(0,s.lazy)((()=>n.e(340).then(n.bind(n,1340)))),_=new o.p({path:"/wp-setup/step/basic-info",title:(0,r.__)("Basic Info","wp-module-onboarding"),Component:b,icon:i.A,drawerView:a.vO,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:a}=(0,c.useSelect)((e=>({brandName:e(d.M).getNewfoldBrandName(),techSupportLink:e(d.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(d.M).getfullServiceCreativeTeamUrl(),brandConfig:e(d.M).getNewfoldBrandConfig()}))),o=((e,t,n)=>({introduction:{heading:(0,r.__)("Basic Info","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("Setup how your %s will present in visitors' browsers and search results.","wp-module-onboarding"),(0,u.P)("site")),icon:i.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-basic-info-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Present in tip-top shape to web browsers and search engine results","wp-module-onboarding"),description:(0,r.__)("Loading your site details, logo and social graph helps not just launch your site but have it found looking great in feeds.","wp-module-onboarding")}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(0,t,n);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__basic-info"},(0,l.createElement)(w,{heading:o.introduction.heading,subheading:o.introduction.subheading,icon:o.introduction.icon}),!1!==a?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(p,{cssIcon:o.illustration.icon}),(0,l.createElement)(m,{headingWithDescriptions:o.information.headingWithDescriptions}),(0,l.createElement)(h,null,!1!==a?.views?.sidebar?.fullService?.shown&&o.help.fullService.link&&(0,l.createElement)(g,{text:o.help.fullService.text,onClick:()=>window.open(o.help.fullService.link,"_blank")}),(0,l.createElement)(f,{text:o.help.support.text,link:o.help.support.link})))}]}},data:{tooltipText:(0,r.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ (0,r.__)("Introduce us to this %s","wp-module-onboarding"),(0,u.P)("website"))}});var v=n(9572);const E=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),y=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),S=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),k=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),C=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),N=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),T=(0,s.lazy)((()=>n.e(871).then(n.bind(n,4871)))),x=new o.p({path:"/wp-setup/step/get-started/experience",title:(0,r.__)("WordPress Experience","wp-module-onboarding"),Component:T,icon:v.A,drawerView:a.lf,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,c.useSelect)((e=>({techSupportLink:e(d.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(d.M).getfullServiceCreativeTeamUrl(),brandConfig:e(d.M).getNewfoldBrandConfig()}))),a=((e,t)=>({introduction:{heading:(0,r.__)("WordPress Experience","wp-module-onboarding"),subheading:(0,r.__)("We want to offer the best default settings and guidance for someone with your WordPress experience.","wp-module-onboarding"),icon:v.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-wp-experience-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Why we ask","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("We want to help everyone get the most out of their WordPress %s and this setup, so we use this to help optimize for a great experience and periodically when we offer tips, reminders and recommendations.","wp-module-onboarding"),(0,u.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-wp-experience"},(0,l.createElement)(N,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(E,{cssIcon:a.illustration.icon}),(0,l.createElement)(y,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,l.createElement)(S,null,!1!==n?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,l.createElement)(k,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,l.createElement)(C,{text:a.help.support.text,link:a.help.support.link})))}]}}});var A=n(3290);const D=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),P=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),O=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),I=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),M=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),L=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),z=(0,s.lazy)((()=>n.e(595).then(n.bind(n,9595)))),R=new o.p({path:"/wp-setup/step/get-started/site-primary",title:(0,r.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ (0,r.__)("Primary %s Setup","wp-module-onboarding"),(0,u.P)("Site")),Component:z,icon:A.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,c.useSelect)((e=>({techSupportLink:e(d.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(d.M).getfullServiceCreativeTeamUrl(),brandConfig:e(d.M).getNewfoldBrandConfig()}))),a=((e,t)=>({introduction:{heading:(0,r.sprintf)(/* translators: %s: Site or Store */ /* translators: %s: Site or Store */ (0,r.__)("%s Type","wp-module-onboarding"),(0,u.P)("Site")),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("We'll use this to provide our best-matching designs and features for %s like yours.","wp-module-onboarding"),(0,u.P)("site")),icon:v.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-site-type-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Why we ask","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("We chose the templates, features and best configuration we can for sites. You’re always in full control of your WordPress %s and we ask so we can be a good website partner.","wp-module-onboarding"),(0,u.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-site-type"},(0,l.createElement)(L,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(D,{cssIcon:a.illustration.icon}),(0,l.createElement)(P,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,l.createElement)(O,null,!1!==n?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,l.createElement)(I,{text:a.help.fullService.text,onClick:()=>window.location.href=a.help.fullService.link}),(0,l.createElement)(M,{text:a.help.support.text,link:a.help.support.link})))}]}}}),V=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),F=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),$=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),H=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),W=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),U=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),B=(0,s.lazy)((()=>n.e(627).then(n.bind(n,5627)))),G=new o.p({path:"/wp-setup/step/get-started/site-secondary",title:(0,r.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ (0,r.__)("Secondary %s Setup","wp-module-onboarding"),(0,u.P)("Site")),Component:B,icon:A.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,c.useSelect)((e=>({techSupportLink:e(d.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(d.M).getfullServiceCreativeTeamUrl(),brandConfig:e(d.M).getNewfoldBrandConfig()}))),a=((e,t)=>({introduction:{heading:(0,r.sprintf)(/* translators: %s: Site or Store */ /* translators: %s: Site or Store */ (0,r.__)("%s Type","wp-module-onboarding"),(0,u.P)("Site")),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("We'll use this to provide our best-matching designs and features for %s like yours.","wp-module-onboarding"),(0,u.P)("site")),icon:v.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-site-type-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Why we ask","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("We chose the templates, features and best configuration we can for sites. You’re always in full control of your WordPress %s and we ask so we can be a good website partner.","wp-module-onboarding"),(0,u.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-site-type"},(0,l.createElement)(U,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(V,{cssIcon:a.illustration.icon}),(0,l.createElement)(F,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,l.createElement)($,null,!1!==n?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,l.createElement)(H,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,l.createElement)(W,{text:a.help.support.text,link:a.help.support.link})))}]}}});var q=n(5573);const j=(0,l.createElement)(q.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(q.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Q=(0,s.lazy)((()=>n.e(328).then(n.bind(n,328)))),K=new o.p({path:"/wp-setup/step/top-priority",title:(0,r.__)("Top Priority","wp-module-onboarding"),tooltipText:(0,r.__)("Tell us your top priority","wp-module-onboarding"),Component:Q,icon:j});var Z=n(7767),Y=n(9235),J=n(8744);const X=new o.p({path:`/${J.rA}/step/interstitial/${a.gR}`,Component:Y.A}),ee=[x,R,G,_,K],te=new Z.I({id:a.gR,name:(0,r.__)("Demographic","wp-module-onboarding"),steps:ee,interstitialSteps:[X]})},8294:(e,t,n)=>{"use strict";n.d(t,{x:()=>Z});var r=n(7723),a=n(6087),i=n(8969),o=n(8468),s=n(2502),l=n(1609),c=n(5573);const d=(0,l.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(c.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"}));var u=n(7143),p=n(7675),m=n(3474);const h=(0,o.lazy)((()=>n.e(206).then(n.bind(n,3206)))),g=(0,o.lazy)((()=>n.e(672).then(n.bind(n,6672)))),f=(0,o.lazy)((()=>n.e(993).then(n.bind(n,1993)))),w=(0,o.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),b=(0,o.lazy)((()=>n.e(97).then(n.bind(n,9097)))),_=(0,o.lazy)((()=>n.e(508).then(n.bind(n,6508)))),v=(0,o.lazy)((()=>n.e(761).then(n.bind(n,761)))),E=new s.p({path:"/wp-setup/step/design/colors",title:(0,r.__)("Colors","wp-module-onboarding"),Component:v,icon:d,drawerView:i.iQ,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,u.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),a=((e,t)=>({introduction:{heading:(0,r.__)("Colors","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("Whether your brand is vibrant, understated, elegant or edgy use color to delight your %s visitors.","wp-module-onboarding"),(0,m.P)("site")),icon:d},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-colors-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Let a splash of color make a splash with your visitors with your Global Site Colors.","wp-module-onboarding"),description:(0,r.__)("We had our designers mix up some palettes for striking websites for you to chose additional presets, or you can chose your own colors using the color pickers.","wp-module-onboarding")}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-colors"},(0,l.createElement)(_,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(h,{cssIcon:a.illustration.icon}),(0,l.createElement)(g,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,l.createElement)(f,null,!1!==n?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,l.createElement)(w,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,l.createElement)(b,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{tooltipText:(0,r.__)("What's your color palette?","wp-module-onboarding"),patternId:"theme-styles"}});var y=n(7589),S=n(3175);const k=(0,o.lazy)((()=>n.e(206).then(n.bind(n,3206)))),C=(0,o.lazy)((()=>n.e(672).then(n.bind(n,6672)))),N=(0,o.lazy)((()=>n.e(993).then(n.bind(n,1993)))),T=(0,o.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),x=(0,o.lazy)((()=>n.e(97).then(n.bind(n,9097)))),A=(0,o.lazy)((()=>n.e(508).then(n.bind(n,6508)))),D=(0,o.lazy)((()=>n.e(546).then(n.bind(n,1546)))),P=new s.p({path:"/wp-setup/step/design/theme-styles/menu",title:(0,r.__)("Theme Styles","wp-module-onboarding"),Component:D,icon:y.A,drawerView:i.VG,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:a}=(0,u.useSelect)((e=>({brandName:e(p.M).getNewfoldBrandName(),techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t,n)=>({introduction:{heading:(0,r.__)("Theme Styles","wp-module-onboarding"),subheading:(0,r.__)("Professionally-designed website templates ready for their public debut featuring your great ideas.","wp-module-onboarding"),icon:S.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-theme-styles-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Show the web you have style with modern colors and elevated fonts","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ (0,r.__)("Pick one of these professionally-designed website styles to start your %1$s %2$s.","wp-module-onboarding"),e,(0,m.P)("site"))},{description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("In the next steps and in the future, you can change the specific colors and fonts to fit your aesthetic vision for your %s.","wp-module-onboarding"),(0,m.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-theme-styles-menu"},(0,l.createElement)(A,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==a?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(k,{cssIcon:i.illustration.icon}),(0,l.createElement)(C,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,l.createElement)(N,null,!1!==a?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,l.createElement)(T,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,l.createElement)(x,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{designDrawerActiveLinkIncludes:"/wp-setup/step/design/theme-styles/",patternId:"theme-styles"}});var O=n(1869);const I=(0,l.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(c.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"})),M=(0,o.lazy)((()=>n.e(206).then(n.bind(n,3206)))),L=(0,o.lazy)((()=>n.e(672).then(n.bind(n,6672)))),z=(0,o.lazy)((()=>n.e(993).then(n.bind(n,1993)))),R=(0,o.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),V=(0,o.lazy)((()=>n.e(97).then(n.bind(n,9097)))),F=(0,o.lazy)((()=>n.e(508).then(n.bind(n,6508)))),$=(0,o.lazy)((()=>n.e(585).then(n.bind(n,5585)))),H=new s.p({path:"/wp-setup/step/design/typography",title:(0,r.__)("Fonts","wp-module-onboarding"),Component:$,icon:I,drawerView:i.SJ,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,u.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),a=((e,t)=>({introduction:{heading:(0,r.__)("Fonts","wp-module-onboarding"),subheading:(0,r.__)("Give tone and taste to your words using a curated set of great type treatments.","wp-module-onboarding"),icon:I},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-fonts-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Not just what we say, how we say it","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("Fonts help our ideas look creative and compelling, astute and articulate, refined and regal, modern and much more. Great font combinations help set the perfect tone for your %s and your story jump off the screen.","wp-module-onboarding"),(0,m.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-fonts"},(0,l.createElement)(F,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(M,{cssIcon:a.illustration.icon}),(0,l.createElement)(L,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,l.createElement)(z,null,!1!==n?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,l.createElement)(R,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,l.createElement)(V,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{tooltipText:(0,r.__)("What's your font style?","wp-module-onboarding"),patternId:"theme-styles"}});var W=n(7767),U=n(7831),B=n(9235),G=n(8744);const q=new s.p({path:`/${G.rA}/step/interstitial/${i.F4}`,Component:B.A}),j=[P,O.S],Q=[E,H],K=(0,a.filter)([...j,...Q,...U.G.steps],(e=>e.path.includes("/step/design/")&&!e.path.includes("/theme-styles/preview"))),Z=new W.I({id:i.F4,name:(0,r.__)("Design","wp-module-onboarding"),steps:j,conditionalSteps:Q,initialSteps:K,interstitialSteps:[q]})},9729:(e,t,n)=>{"use strict";n.d(t,{q:()=>E});var r=n(7723),a=n(8969),i=n(1609),o=n(5573);const s=(0,i.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(o.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));var l=n(8468),c=n(2502),d=n(7143),u=n(7675),p=n(3474);const m=(0,l.lazy)((()=>n.e(206).then(n.bind(n,3206)))),h=(0,l.lazy)((()=>n.e(672).then(n.bind(n,6672)))),g=(0,l.lazy)((()=>n.e(993).then(n.bind(n,1993)))),f=(0,l.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),w=(0,l.lazy)((()=>n.e(97).then(n.bind(n,9097)))),b=(0,l.lazy)((()=>n.e(508).then(n.bind(n,6508)))),_=(0,l.lazy)((()=>n.e(978).then(n.bind(n,1978)))),v=[new c.p({path:"/wp-setup/step/site-features",title:(0,r.__)("Features","wp-module-onboarding"),Component:_,icon:s,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:a}=(0,d.useSelect)((e=>({brandName:e(u.M).getNewfoldBrandName(),techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),o=((e,t,n)=>({introduction:{heading:(0,r.__)("Features","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ (0,r.__)("Easy-to-use features from our partner's WordPress Plugins and unique %1$s solutions to put your %2$s to work.","wp-module-onboarding"),e,(0,p.P)("site")),icon:s},illustration:{icon:"nfd-onboarding-sidebar-learn-more-site-features-illustration"},information:{headingWithDescriptions:[{heading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("We’ve assembled the best building blocks for a successful %s","wp-module-onboarding"),(0,p.P)("site")),description:(0,r.sprintf)(/* translators: 1: Brand 2: Site or Store 3: Brand */ /* translators: 1: Brand 2: Site or Store 3: Brand */ (0,r.__)("Put your %1$s %2$s to work for you using features that unlock the potential of WordPress with powerful solutions from %3$s and our partners.","wp-module-onboarding"),e,(0,p.P)("Site"),e)}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,i.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__site-features"},(0,i.createElement)(b,{heading:o.introduction.heading,subheading:o.introduction.subheading,icon:o.introduction.icon}),!1!==a?.views?.sidebar?.illustration?.shown&&(0,i.createElement)(m,{cssIcon:o.illustration.icon}),(0,i.createElement)(h,{headingWithDescriptions:o.information.headingWithDescriptions}),(0,i.createElement)(g,null,!1!==a?.views?.sidebar?.fullService?.shown&&o.help.fullService.link&&(0,i.createElement)(f,{text:o.help.fullService.text,onClick:()=>window.open(o.help.fullService.link,"_blank")}),(0,i.createElement)(w,{text:o.help.support.text,link:o.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Key features to supercharge your site","wp-module-onboarding"),patternId:"site-features"}})],E=new(n(7767).I)({id:a.EF,name:(0,r.__)("Features","wp-module-onboarding"),steps:v})},7831:(e,t,n)=>{"use strict";n.d(t,{G:()=>G});var r=n(7723),a=n(8969),i=n(9235),o=n(1609),s=n(5573);const l=(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(s.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var c=n(8468),d=n(2502),u=n(7143),p=n(7675),m=n(3474);const h=(0,c.lazy)((()=>n.e(206).then(n.bind(n,3206)))),g=(0,c.lazy)((()=>n.e(672).then(n.bind(n,6672)))),f=(0,c.lazy)((()=>n.e(993).then(n.bind(n,1993)))),w=(0,c.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),b=(0,c.lazy)((()=>n.e(97).then(n.bind(n,9097)))),_=(0,c.lazy)((()=>n.e(508).then(n.bind(n,6508)))),v=(0,c.lazy)((()=>n.e(859).then(n.bind(n,4859)))),E=new d.p({path:"/wp-setup/step/design/header-menu",title:(0,r.__)("Header & Menu","wp-module-onboarding"),Component:v,icon:l,drawerView:a.HJ,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,u.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),a=((e,t)=>({introduction:{heading:(0,r.__)("Header & Menu","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("Surface key content in your %s -- who you are, what your about and where to find things.","wp-module-onboarding"),(0,m.P)("site")),icon:l},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-header-menu-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Putting your best foot forward","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: site or store 2: Site or Store */ /* translators: 1: site or store 2: Site or Store */ (0,r.__)("Just like a %1$s putting a map of departments at the front door, a great %2$s Header & Menu help point visitors at the places you most want them to visit.","wp-module-onboarding"),(0,m.P)("site"),(0,m.P)("Site"))},{description:(0,r.sprintf)(/* translators: %s: website */ /* translators: %s: website */ (0,r.__)("When picking a %s header, consider the number of menu items, character length of each item and how those will visually impact the Header Pattern design you choose.","wp-module-onboarding"),(0,m.P)("website"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-header-menu"},(0,o.createElement)(_,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,o.createElement)(h,{cssIcon:a.illustration.icon}),(0,o.createElement)(g,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,o.createElement)(f,null,!1!==n?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,o.createElement)(w,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,o.createElement)(b,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Let's make the right things visible","wp-module-onboarding"),patternId:"header-menu"}}),y=(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(s.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,o.createElement)(s.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,o.createElement)(s.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"}));var S=n(9572);const k=(0,c.lazy)((()=>n.e(206).then(n.bind(n,3206)))),C=(0,c.lazy)((()=>n.e(672).then(n.bind(n,6672)))),N=(0,c.lazy)((()=>n.e(993).then(n.bind(n,1993)))),T=(0,c.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),x=(0,c.lazy)((()=>n.e(97).then(n.bind(n,9097)))),A=(0,c.lazy)((()=>n.e(508).then(n.bind(n,6508)))),D=(0,c.lazy)((()=>n.e(560).then(n.bind(n,560)))),P=new d.p({path:"/wp-setup/step/design/homepage-menu",title:(0,r.__)("Homepage Layouts","wp-module-onboarding"),Component:D,icon:y,drawerView:a.VG,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,u.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),a=((e,t)=>({introduction:{heading:(0,r.__)("Home Page","wp-module-onboarding"),subheading:(0,r.__)("The home page is where you tell visitors your story. It helps users find what they came for.","wp-module-onboarding"),icon:S.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-homepage-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Welcome to your new home online","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("Like good curb appeal, a great home page design helps get users excited about your %s. Mixing media, headings, text and more, you can bring your ideas to live and your products & services to the forefront for visitors.","wp-module-onboarding"),(0,m.P)("site"))},{description:(0,r.__)("Look for a Home Page Pattern design you think will help organize and elevate your ideas.","wp-module-onboarding")}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-homepage"},(0,o.createElement)(A,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,o.createElement)(k,{cssIcon:a.illustration.icon}),(0,o.createElement)(C,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,o.createElement)(N,null,!1!==n?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,o.createElement)(T,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,o.createElement)(x,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{patternId:"homepage-styles",tooltipText:(0,r.__)("There’s no place like a great home page","wp-module-onboarding")}});var O=n(5822);const I=(0,c.lazy)((()=>n.e(206).then(n.bind(n,3206)))),M=(0,c.lazy)((()=>n.e(672).then(n.bind(n,6672)))),L=(0,c.lazy)((()=>n.e(993).then(n.bind(n,1993)))),z=(0,c.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),R=(0,c.lazy)((()=>n.e(97).then(n.bind(n,9097)))),V=(0,c.lazy)((()=>n.e(508).then(n.bind(n,6508)))),F=(0,c.lazy)((()=>n.e(366).then(n.bind(n,5366)))),$=new d.p({path:"/wp-setup/step/design/site-pages",title:(0,r.__)("Page Layouts","wp-module-onboarding"),Component:F,icon:O.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,u.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),a=((e,t)=>({introduction:{heading:(0,r.__)("Pages","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,r.__)("Use professionally-designed templates for common site pages to assemble a beautiful, high-quality %s.","wp-module-onboarding"),(0,m.P)("site")),icon:O.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-pages-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Rapidly deliver ideas with templates primed for your content","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: site or store 2: site or store */ /* translators: 1: site or store 2: site or store */ (0,r.__)("We’ve baked everything we know about making great designs and content for common %1$s needs into ease-to-use templates. Pick templates and we’ll add them as Page drafts to your WordPress %2$s.","wp-module-onboarding"),(0,m.P)("site"),(0,m.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__site-pages"},(0,o.createElement)(V,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,o.createElement)(I,{cssIcon:a.illustration.icon}),(0,o.createElement)(M,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,o.createElement)(L,null,!1!==n?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,o.createElement)(z,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,o.createElement)(R,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{tooltipText:(0,r.__)("You have ideas, we have page templates","wp-module-onboarding"),patternId:"site-pages"}});var H=n(7767),W=n(8744);const U=new d.p({path:`/${W.rA}/step/interstitial/${a.R2}`,Component:i.A}),B=[E,P,$],G=new H.I({id:a.R2,name:(0,r.__)("Layout & Content","wp-module-onboarding"),steps:B,interstitialSteps:[U]})},6188:(e,t,n)=>{"use strict";n.d(t,{AZ:()=>m,Ny:()=>p,py:()=>u});var r=n(6087),a=n(2940),i=n(19),o=n(2895),s=n(8294),l=n(9729),c=n(7831);const d=[o._,i.E,s.x,c.G,l.q],u=(e,t,n)=>{const d=(e=>{const t={publishing:c.G,selling:i.E,designing:s.x};return t[e]?t[e]:c.G})(t);let u;switch(n){case"1":default:u=(0,r.filter)(e,(e=>e.id!==d.id)),u=(0,a.Ti)(u,o._,d);break;case"3":u=(0,r.filter)(e,(e=>e.id!==d.id&&(e.id===l.q.id||e.id===o._.id))),u=(0,a.Ti)(u,o._,d);break;case"5":u=(0,r.filter)(e,(e=>e.id!==d.id&&(e.id===l.q.id||e.id===o._.id)))}return u},p=e=>d.filter((t=>t.id===e)),m=(e,t,n)=>{const r={};return e.forEach((e=>t[e.id]?r[e.id]=t[e.id]:r[e.id]={completed:!1,firstStep:e.steps[0].path,lastStep:n?.chapter===e.id&&n?.path?n?.path:""})),r}},431:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),a=n(6942),i=n.n(a);const o=({type:e,after:t=!0,children:n,className:a="",duration:o=!1,timingFunction:s=!1})=>{const l="animate";return t?(0,r.createElement)("div",{className:i()(function(){if(e){let t="";switch(e){case"fade-in":t=l.concat("__fade-in");break;case"fade-in-disabled":t=l.concat("__fade-in--disabled");break;case"fade-in-right":t=l.concat("__fade-in--right");break;case"fade-in-left":t=l.concat("__fade-in--left");break;case"fade-in-up":t=l.concat("__fade-in--up");break;case"shine":t=l.concat("__shine");break;case"shine-placeholder":t=l.concat("__shine--placeholder");break;case"dropdown":t=l.concat("__dropdown");break;case"load":t=l.concat("__load")}return t}}(),a),style:{animationDuration:o,animationTimingFunction:s}},n):(0,r.createElement)("div",{className:`${l}__blank`},n)}},8590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(1609),a=n(6427),i=n(7677),o=n(6942),s=n.n(o);const l=({className:e,text:t,onClick:n,icon:o})=>(0,r.createElement)(a.Button,{className:s()("nfd-onboarding-button--white",e),onClick:"function"==typeof n&&n},(0,r.createElement)("span",{className:`${e}__text`},t),o&&(0,r.createElement)(i.A,{className:`${e}__icon`,icon:o}))},6517:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(1609),a=n(6427),i=n(6942),o=n.n(i);const s=({className:e,text:t,onClick:n=!1})=>(0,r.createElement)(a.Button,{variant:"primary",className:o()("nfd-onboarding-button--background",e),onClick:"function"==typeof n&&n},t)},264:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609);const a=({children:e,handleClick:t,disabled:n,className:a})=>(0,r.createElement)("button",{type:"button",className:`${a} nfd-card-button`,onClick:()=>{"function"==typeof t&&t()},disabled:n},e)},9927:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609);const a=(0,n(8468).memo)((({heading:e,subHeading:t,question:n})=>(0,r.createElement)("div",null,e&&(0,r.createElement)("h2",{className:"nfd-step-card-heading"},e),t&&(0,r.createElement)("h3",{className:n?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},t),n&&(0,r.createElement)("h3",{className:"nfd-step-card-question"},n))))},3957:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609);const a=({isColorSelected:e,color:t,slug:n,name:a,callback:i})=>(0,r.createElement)("div",{className:"custom-palette__below__row",onClick:()=>i(n),onKeyDown:()=>i(n),role:"button",tabIndex:0},(0,r.createElement)("div",{className:`custom-palette__below__row__icon ${e&&"custom-palette__below__row__icon--selected-border"}`,style:{backgroundColor:`${t}`}}),(0,r.createElement)("div",{className:"custom-palette__below__row__text"},a))},5677:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(1609),a=n(3988),i=n(4639),o=n(9889);const s=({title:e,subtitle:t,error:n})=>(0,r.createElement)(a.A,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(i.A,{title:e,subtitle:t}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},n),(0,r.createElement)(o.A,null))},5748:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(1609),a=n(148),i=n(1607),o=n(8468),s=n(7143),l=n(6427),c=n(7723),d=n(6942),u=n.n(d),p=n(4371),m=n(6079),h=n(7675),g=n(2014),f=n(8969),w=n(1056),b=n(2202),_=n(8559);const v=({buttonText:e=(0,c.__)("Exit to WordPress","wp-module-onboarding"),showButtonIcon:t=!0,showButton:n=!0,buttonVariant:d="secondary",buttonClassName:v=!1,isModalOpen:E=!1,modalTitle:y=(0,c.__)("Exit without finishing?","wp-module-onboarding"),modalText:S=!1,modalPrimaryCloseButtonText:k=(0,c.__)("Continue","wp-module-onboarding"),modalOnClose:C=!1,modalExitButtonText:N=(0,c.__)("Exit","wp-module-onboarding")})=>{const[T,x]=(0,o.useState)(E),A=()=>{"function"==typeof C&&C(),x(!1)},D=(0,a.zy)(),{currentData:P,brandName:O,socialData:I,currentStep:M}=(0,s.useSelect)((e=>({currentData:e(h.M).getCurrentOnboardingData(),brandName:e(h.M).getNewfoldBrandName(),socialData:e(h.M).getOnboardingSocialData(),currentStep:e(h.M).getCurrentStep()})),[]),{setOnboardingSocialData:L}=(0,s.useDispatch)(h.M);return S||(S=(0,c.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ (0,c.__)("You can restart onboarding from your %s Settings page.","wp-module-onboarding"),O)),(0,r.createElement)(o.Fragment,null,n&&(0,r.createElement)(l.Button,{icon:!!t&&i.A,variant:d,onClick:()=>x(!0),className:u()("nfd-onboarding-etw__trigger",v)},e),T&&(0,r.createElement)(l.Modal,{title:y,onRequestClose:()=>A()},(0,r.createElement)("p",null,S),(0,r.createElement)(l.ButtonGroup,{className:"nfd-onboarding-etw__buttons"},(0,r.createElement)(l.Button,{variant:"secondary",onClick:()=>A()},k),(0,r.createElement)(l.Button,{variant:"primary",onClick:()=>async function(e){if(P){if(P.hasExited=(new Date).getTime(),e?.includes("basic-info")){const e=await async function(){const e=await(0,g.mt)(),t=await(0,g.oc)(I);return null!==t?.error?e?.body:t?.body}();e&&L(e)}(0,m.V1)(P),!0===P?.data?.comingSoon&&window.NewfoldRuntime?.comingSoon&&await window.NewfoldRuntime.comingSoon.enable()}(0,_.YR)(),(0,w.v)(new w.iC(b.f2,M.title)),await p.y.dispatchEvents(b.XJ),window.location.replace(f.R0)}(D.pathname)},N))))}},4639:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609);const a=({title:e,subtitle:t,children:n})=>(0,r.createElement)("div",{className:"nfd-main-heading"},(0,r.createElement)("h2",{className:"nfd-main-heading__title"},e),t&&(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},t),n)},3988:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(1609),a=n(6942),i=n.n(a);const o=window.wp.a11y;var s=n(8468),l=n(148),c=n(1056),d=n(2202);const u=({className:e="nfd-onboarding-layout__base",children:t})=>{const n=(0,l.zy)(),a=document.querySelector(".nfd-onboard-content");return(0,s.useEffect)((()=>{a?.focus({preventScroll:!0}),((e="Showing new Onboarding Page")=>{(0,o.speak)(e,"assertive")})("Override"),(0,c.SV)(new c.iC(d.oA))}),[n.pathname]),(0,r.createElement)("div",{className:i()("nfd-onboarding-layout",e)},t)};var p=n(431);const m=({children:e})=>(0,r.createElement)("section",{className:"is-contained"},e),h=({className:e="",children:t,isBgPrimary:n=!1,isCentered:a=!1,isVerticallyCentered:o=!1,isContained:l=!1,isPadded:c=!1,isFadeIn:d=!0})=>{const h=l?m:s.Fragment;return(0,r.createElement)(p.A,{type:d&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,r.createElement)(u,{className:i()("nfd-onboarding-layout__common",e,{"is-bg-primary":n},{"is-centered":a},{"is-vertically-centered":o},{"is-padded":c})},(0,r.createElement)(h,null,t)))}},8616:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),a=n(8468),i=n(7723),o=n(7044);const s=({count:e,watch:t,callback:n,className:s,viewportWidth:l,isWithCard:c=!1})=>{const[d,u]=(0,a.useState)(0);return(0,a.useEffect)((()=>u(1)),[t]),t?(0,r.createElement)(r.Fragment,null,t?(0,r.createElement)("div",{style:{display:"none"}},d):null,n()):c?(()=>{const t=[];for(let n=0;n<e;n++)t.push((0,r.createElement)(o.z_,{key:n,className:s,viewportWidth:1200,styling:"custom",title:(0,i.__)("Loading…","wp-module-onboarding"),description:(0,i.__)("Loading…","wp-module-onboarding")}));return t})():(()=>{const t=[];for(let n=0;n<e;n++)t.push((0,r.createElement)(o.ph,{key:n,styling:"custom",className:s,skeletonLoadingTime:6e5,viewportWidth:l}));return t})()}},7044:(e,t,n)=>{"use strict";n.d(t,{Th:()=>A,pA:()=>b,ph:()=>k,z_:()=>N,_Z:()=>_.A,GZ:()=>M});var r=n(1609),a=n(7143),i=n(4715),o=n(4997),s=n(8468),l=n(7723),c=n(6427),d=n(9491);let u;const p=6e3;function m({viewportWidth:e,settings:t,containerWidth:n,minHeight:a,additionalStyles:o=[]}){e||(e=n);const[l,{height:m}]=(0,d.useResizeObserver)(),{styles:h,assets:g}={styles:t.styles,assets:t.__unstableResolvedAssets},f=(0,s.useMemo)((()=>h?[...h,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o]:h),[h,o]);u=u||(0,d.pure)(i.BlockList);const w=n/e,b=m?n/(m*w):0;return(0,r.createElement)(c.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${w})`,aspectRatio:b,maxHeight:m>p?p*w:void 0,minHeight:a}},(0,r.createElement)(i.__unstableIframe,{assets:g,contentRef:(0,d.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%",e.spellcheck=0}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:m,pointerEvents:"none",maxHeight:p,minHeight:0!==w&&w<1&&a?a/w:a}},(0,r.createElement)(i.__unstableEditorStyles,{styles:f}),l,(0,r.createElement)(u,{renderAppender:!1})))}function h(e){const[t,{width:n}]=(0,d.useResizeObserver)();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,r.createElement)("div",{className:"block-editor-block-preview__container"},n&&(0,r.createElement)(m,{...e,containerWidth:n})))}var g=n(7225),f=n(7675),w=n(431);const b=(0,s.memo)((({slug:e="",blockGrammer:t,viewportWidth:n=1300,styling:c="large",setIsLoadingParent:d=!1,previewSettings:u=!1,skeletonLoadingTime:p=2500,skeletonType:m="default",skeletonShouldWait:b=!1})=>{const[_,v]=(0,s.useState)(),[E,y]=(0,s.useState)(),[S,k]=(0,s.useState)(!0);(0,s.useEffect)((()=>{if(p){const e=setTimeout((()=>{k(!1),d&&d(!1)}),p);return()=>clearTimeout(e)}k(!1),d&&d(!1)}),[p]);const{currentData:C,storedPreviewSettings:N}=(0,a.useSelect)((e=>({currentData:e(f.M).getCurrentOnboardingData(),storedPreviewSettings:e(f.M).getPreviewSettings()})),[]);(0,s.useEffect)((()=>{y(u?(0,g.AN)(u,N):N)}),[u,N]),(0,s.useEffect)((()=>{t&&v((0,o.parse)(t))}),[t]),(0,s.useEffect)((()=>{u||y(N)}),[N,C]);const T=(0,s.memo)((()=>(0,r.createElement)("div",{className:"live-preview__container--is-skeleton"},(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-header"},(0,r.createElement)(w.A,{type:"shine",className:"live-preview__container--is-skeleton--shimmer"})),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-body-1"}),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-body-2"}),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-footer"})))),x=(0,s.memo)((()=>(0,r.createElement)("div",{className:"regenerating-site-card-wrap regenerating-site-card-skeleton"},(0,r.createElement)("div",{className:"regenerating-site-card"},(0,r.createElement)("p",{className:"regenerating-site-card__title"},(0,r.createElement)("p",{className:"regenerating-site-card__title"},b?(0,l.__)("Regenerating Site","wp-module-onboarding"):(0,l.__)("Generating Site","wp-module-onboarding"))),(0,r.createElement)("div",{className:"regenerating-site-card__progress-bar"},(0,r.createElement)("div",{className:"regenerating-site-card__progress-bar__fill"}))))));return(0,r.createElement)("div",{"data-slug":`nfd-onboarding-block-preview-${e}`,className:`live-preview__container-${c}`},S&&("sitegen"===m?(0,r.createElement)(x,null):(0,r.createElement)(T,null)),_&&E&&(0,r.createElement)(i.BlockEditorProvider,{value:_,settings:E.settings},(0,r.createElement)(h,{viewportWidth:n,settings:E.settings})))}));var _=n(8616),v=n(7677),E=n(8351),y=n(5573);const S=(0,r.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(y.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),k=({className:e="live-preview--selectable-card",selected:t=!1,blockGrammer:n,viewportWidth:a=1500,styling:i="large",previewSettings:o,overlay:l=!1,onClick:c=!1,skeletonLoadingTime:d=2500})=>{const[u,p]=(0,s.useState)(!0);return(0,r.createElement)("div",{className:`${e}`,role:"button",tabIndex:0,onClick:()=>{u||"function"!=typeof c||c()},onKeyDown:()=>{u||"function"!=typeof c||c()}},(0,r.createElement)("div",{className:`${e}__title-bar`},(0,r.createElement)("div",{className:`${e}__title-bar__browser`},(0,r.createElement)("span",{className:`${e}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${e}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${e}__title-bar__browser__dot`})),(0,r.createElement)("div",{className:t?`${e}__title-bar--selected live-preview-selected-check`:`${e}__title-bar--unselected`},(0,r.createElement)(v.A,{className:`${e}__title-bar--selected__path`,icon:E.A,size:64}))),(0,r.createElement)("div",{className:`${e}__live-preview-container`},(0,r.createElement)(b,{styling:i,blockGrammer:n,viewportWidth:a,previewSettings:o,setIsLoadingParent:p,skeletonLoadingTime:d}),l&&!u&&(0,r.createElement)("div",{className:`${e}__live-preview-container__overlay`},(0,r.createElement)(v.A,{className:`${e}__live-preview-container__overlay__icon`,size:64,icon:S}))))};var C=n(8176);const N=({className:e="live-preview--selectable-card--title-description",selected:t=!1,blockGrammer:n,viewportWidth:a=1500,styling:i="large",previewSettings:o,onClick:l=!1,skeletonLoadingTime:d=2500,title:u=!1,description:p=!1,slug:m})=>{const[h,g]=(0,s.useState)(!1),f=e=>{"function"==typeof l&&l(e,m,u)};return(0,r.createElement)("div",{className:`${e}`},(0,r.createElement)("div",{className:`${e}__live-preview-container`,onClick:()=>f(!t),role:"presentation"},(0,r.createElement)(b,{styling:i,blockGrammer:n,viewportWidth:a,previewSettings:o,skeletonLoadingTime:d})),(0,r.createElement)("div",{className:`${e}__information`,style:{backgroundColor:h?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("div",{className:`${e}__information__title-question`},(0,r.createElement)("div",{className:`${e}__information__title-question__checkbox`},(0,r.createElement)(c.CheckboxControl,{label:(0,r.createElement)("b",null,u),onChange:()=>f(!t),checked:t})),(0,r.createElement)("div",{className:`${e}__information__title-question__question`},(0,r.createElement)(v.A,{className:`${e}__information__title-question__question__icon`,icon:C.A,style:{fill:h&&"var(--wp-admin-theme-color-darker-10)"},onClick:()=>g(!h)})))),h&&(0,r.createElement)(w.A,{type:"dropdown",className:`${e}__description--container ${h?"highlighted":"not-highlighted"}`,style:{backgroundColor:h?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("p",{className:`${e}__description--text`},p)))};var T=n(7517),x=n(8969);const A=({children:e})=>{const[t,n]=(0,s.useState)(!1),{currentData:r,storedPreviewSettings:i,themeStatus:o}=(0,a.useSelect)((e=>({currentData:e(f.M).getCurrentOnboardingData(),storedPreviewSettings:e(f.M).getPreviewSettings(),themeStatus:e(f.M).getThemeStatus()})),[]),{updateThemeStatus:l,updatePreviewSettings:c,enqueueRequest:d}=(0,a.useDispatch)(f.M);return(0,s.useEffect)((()=>{t||x.Er!==o||(async()=>{let e;if(i?.title&&i?.settings)e=i;else{const t=await(0,T.w6)();if(t?.error)return l(x.So);r.data.theme.variation?e=t.body.filter((e=>e.title===r.data.theme.variation))[0]:0===t.body[0]?.id&&(e=t.body[0]),c((0,g.AN)(e,i))}e&&d(x.L5.SET_GLOBAL_STYLES,(()=>(0,T.oy)({...e,title:r.data.theme.variation,version:2}))),n(!0)})()}),[t,o]),e};var D=n(6786),P=n(264),O=n(3013),I=n(8087);const M=({className:e="live-preview-sitegen--selectable-card",blockGrammar:t,viewportWidth:n=1500,styling:a="large",previewSettings:i,overlay:o=!1,skeletonLoadingTime:c=2500,slug:d,position:u,title:p,isFavorite:m,palette:h,handleFavorite:g,handlePreview:f,handleRegenerate:w,isRegenerating:_})=>{const[E,y]=(0,s.useState)(!0),k=()=>{if("function"==typeof f)return f(d,u)},C=()=>{if("function"==typeof w)return w(d,h,m,u)},N=()=>{if("function"==typeof g)return g(d,u)};return(0,r.createElement)("div",{className:`${e}`,role:"button",tabIndex:0},(0,r.createElement)("div",{className:`${e}__live-preview-container`},(0,r.createElement)(b,{styling:a,blockGrammer:t,viewportWidth:n,previewSettings:i,setIsLoadingParent:y,skeletonLoadingTime:c,skeletonShouldWait:_,skeletonType:"sitegen"}),o&&!E&&(0,r.createElement)("div",{className:`${e}__live-preview-container__overlay`,onClick:k,onKeyDown:e=>{"Enter"===e.key&&k()}},(0,r.createElement)(P.A,{className:`${e}__live-preview-container__overlay__button`,onClick:()=>k()},(0,r.createElement)(v.A,{icon:S}),(0,l.__)("Preview Version","wp-module-onboarding"))),(0,r.createElement)("div",{className:`${e}__live-preview-container-buttons ${_?"disabled":""}`},(0,r.createElement)("div",{role:"button",tabIndex:"0",onClick:()=>N(),onKeyDown:e=>{"Enter"===e.key&&N()},"aria-label":"Add to Wishlist",className:`${e}__live-preview-container-buttons__button`},(0,r.createElement)("span",{className:`${e}__live-preview-container-buttons__button__icon`},m?(0,r.createElement)(I.h,null):(0,r.createElement)(O.h,null)),(0,r.createElement)("span",{className:`${e}__live-preview-container-buttons__button__title`},p)),(0,r.createElement)("div",{role:"button",tabIndex:"0",onClick:C,onKeyDown:e=>{"Enter"===e.key&&C()},"aria-label":(0,l.__)("Regenerate Content","wp-module-onboarding"),className:`${e}__live-preview-container-buttons__button`},(0,r.createElement)(v.A,{icon:D.A}),(0,l.__)("Regenerate","wp-module-onboarding")))))}},9235:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(1609),a=n(7143),i=n(8468),o=n(148),s=n(7677),l=n(6655),c=n(7675),d=n(9927),u=n(3988),p=n(5842),m=n(7723),h=n(3474);var g=n(6517),f=n(8590),w=n(8559),b=n(1056),_=n(8969),v=n(6079),E=n(2202);const y=()=>{const[e,t]=(0,i.useState)(15),n=(0,o.Zp)(),{setIsDrawerSuppressed:y,setSidebarActiveView:S}=(0,a.useDispatch)(c.M);async function k(){T&&(T.isComplete=(new Date).getTime(),(0,v.V1)(T),!0===T?.data?.comingSoon&&window.NewfoldRuntime?.comingSoon&&window.NewfoldRuntime.comingSoon.enable()),(0,w.YR)(),(0,b.SV)(new b.iC(E.Vg)),window.location.replace(_.R0)}(0,i.useEffect)((()=>{const n=setInterval((()=>{t(e-1)}),1e3);return 0===e&&(clearInterval(n),k()),()=>{clearInterval(n)}}),[e]),(0,i.useEffect)((()=>{y(!0),S(!1)}),[]);const{brandName:C,nextStep:N,currentData:T}=(0,a.useSelect)((e=>({brandName:e(c.M).getNewfoldBrandName(),nextStep:e(c.M).getNextStep(),currentData:e(c.M).getCurrentOnboardingData()}))),x=(e=>({heading:(0,m.__)("A great foundation to build from","wp-module-onboarding"),subheading:(0,m.sprintf)(/* translators: Brand */ /* translators: Brand */ (0,m.__)("with WordPress and %s","wp-module-onboarding"),e),content:{heading:(0,m.sprintf)(/* translators: site or store */ /* translators: site or store */ (0,m.__)("Would you like to enter your WordPress Dashboard or continue setting up your %s?","wp-module-onboarding"),(0,h.P)("site")),question1:(0,m.__)("You've made great progress! Would you like to keep going with the setup or take it from here?","wp-module-onboarding"),question2:(0,m.sprintf)(/* translators: Brand */ /* translators: Brand */ (0,m.__)("You can continue from your %s home page in the Next steps list.","wp-module-onboarding"),e),redirectMessage:(0,m.__)("Taking you to WordPress in…","wp-module-onboarding")},buttons:{button1:{text:(0,m.__)("Enter WordPress","wp-module-onboarding")},button2:{text:(0,m.__)("Continue Setup","wp-module-onboarding")}}}))(C);return(0,r.createElement)(u.A,{isBgPrimary:!0,isCentered:!0},(0,r.createElement)(p.A,{className:"chapter-interstitial"},(0,r.createElement)(d.A,{heading:x.heading,subHeading:x.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"},x.content.heading),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question1"},x.content.question1),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question2"},x.content.question2),(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},x.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)(g.default,{onClick:()=>k(),text:x.buttons.button1.text,className:"chapter-interstitial__buttons--blue"}),(0,r.createElement)(f.default,{onClick:()=>n(N.path),text:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("b",{className:"chapter-interstitial__buttons--white__text"},x.buttons.button2.text),(0,r.createElement)(s.A,{className:"chapter-interstitial__buttons--white__icon",icon:l.A})),className:"chapter-interstitial__buttons--white"}))))}},6478:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),a=n(6942),i=n.n(a);const o=({className:e})=>(0,r.createElement)("div",{className:i()("nfd-onboarding-loader--spinner",e)})},212:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),a=n(3988),i=n(4639),o=n(9889);const s=({title:e,subtitle:t})=>(0,r.createElement)(a.A,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(i.A,{title:e,subtitle:t}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(o.A,null))},518:(e,t,n)=>{"use strict";n.d(t,{c:()=>o,S:()=>r.A});var r=n(212),a=n(1609),i=n(431);const o=()=>(0,a.createElement)("div",{className:"image-upload-loader--loading-box"},(0,a.createElement)(i.A,{type:"load",className:"image-upload-loader--loading-box__loader"}))},9889:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),a=n(7675),i=n(7143),o=n(7723);const s=({question:e=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:t=(0,o.__)("Hire our Experts","wp-module-onboarding")})=>{const n=(0,i.select)(a.M).getHireExpertsUrl();return n&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},e,(0,r.createElement)("a",{href:n,target:"_blank",rel:"noreferrer"},t))}},5842:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),a=n(6942),i=n.n(a);const o=({className:e="",children:t})=>(0,r.createElement)("div",{className:i()("nfd-onboarding-large-card",e)},(0,r.createElement)("div",{className:"nfd-onboarding-large-card__logo"}),t)},7673:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(8468);const i=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,a.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const r=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(r)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(r))}))}))}),[]),(0,r.createElement)("span",{className:"wnd-ai-logo",style:t},(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,r.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},2538:(e,t,n)=>{"use strict";n.d(t,{L:()=>a,Z:()=>o});var r=n(6087);const a={NONE:"none",AD_LINK_ERROR:"ad-link-error",INVALID_LINK_ERROR:"invalid-link-error"},i={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)(i,((t,n,r)=>{const a=e?.[r]||e?.other_social_urls?.[r];a&&(t[n]=a)}))},1032:(e,t,n)=>{"use strict";n.d(t,{UX:()=>h,Iy:()=>Pe,tR:()=>Le});var r=n(1609),a=n(7143),i=n(8468),o=n(9491),s=n(7723),l=n(518),c=n(7675),d=n(7517),u=n(8969),p=n(5677);var m=n(5748);const h=({children:e,navigationStateCallback:t=!1,refresh:n=!0,render:h=!0})=>{const g=(0,o.useViewportMatch)("medium"),{storedThemeStatus:f,brandName:w}=(0,a.useSelect)((e=>({storedThemeStatus:e(c.M).getThemeStatus(),brandName:e(c.M).getNewfoldBrandName()})),[]),b=(e=>({loader:{title:(0,s.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ (0,s.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,s.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,s.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ (0,s.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,s.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,s.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(w),{updateThemeStatus:_,setIsDrawerOpened:v,setIsDrawerSuppressed:E,setIsHeaderNavigationEnabled:y}=(0,a.useDispatch)(c.M),S=async()=>{(await(0,d.xN)(u.f1)).error||!0!==n?C():window.location.reload()},k=()=>{switch(f){case u.SQ:case u.Er:return(()=>{if("function"==typeof t)return t();g&&v(!0),E(!1),y(!0)})();default:v(!1),E(!0),y(!1)}};(0,i.useEffect)((()=>{k(),f===u.So&&(async()=>{const e=await(async()=>{const e=await(0,d.qv)(u.f1);return e?.error?u.mp:e.body.status})();switch(e){case u.fO:S();break;case u.Er:!0===n&&window.location.reload();break;case u.mp:!1===h&&S();break;default:_(e)}})()}),[f]);const C=async()=>{if(_(u.fO),(await(0,d.ai)(u.f1,!0,!1)).error)return _(u.SQ);!0===n&&window.location.reload()};return(0,r.createElement)(i.Fragment,null,h?(()=>{switch(f){case u.mp:return(0,r.createElement)(m.A,{showButton:!1,isModalOpen:!0,modalTitle:(0,s.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,s.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:C,modalExitButtonText:(0,s.__)("Exit to WordPress","wp-module-onboarding")});case u.SQ:return(0,r.createElement)(p.W,{title:b.errorState.title,subtitle:b.errorState.subtitle,error:b.errorState.error});case u.Er:return e;default:return(0,r.createElement)(l.S,{title:b.loader.title,subtitle:b.loader.subtitle})}})():e)};var g=n(3832),f=n(148),w=n(4371),b=n(6079),_=n(3272),v=n(2940),E=n(7835),y=n(212),S=n(3474);const k=()=>{const{brandName:e}=(0,a.useSelect)((e=>({brandName:e(c.M).getNewfoldBrandName()})),[]),t=(e=>({title:(0,s.sprintf)(/* translators: 1: Brand 2: Site or Store */ /* translators: 1: Brand 2: Site or Store */ (0,s.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,S.P)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")}))(e);return(0,r.createElement)(y.A,{title:t.title,subtitle:t.subtitle})};var C=n(6427),N=n(6942),T=n.n(N),x=n(4487),A=n(8744);const D=()=>{const{headers:e,headerActiveView:t,isHeaderEnabled:n,currentStep:o}=(0,a.useSelect)((e=>({currentStep:e(c.M).getCurrentStep(),headers:e(c.M).getHeaders(),headerActiveView:e(c.M).getHeaderActiveView(),isHeaderEnabled:e(c.M).isHeaderEnabled()}))),s=o===x.b,l=window.nfdOnboarding.currentFlow===A.d0;return(0,r.createElement)(i.Fragment,null,(0,r.createElement)(i.Suspense,{fallback:(0,r.createElement)(i.Fragment,null)},e.map((e=>(0,r.createElement)(i.Fragment,{key:e.id},(0,r.createElement)(e.header,null))))),(0,r.createElement)(C.Slot,{name:`${t}/${u.KK}`}),n&&(0,r.createElement)("div",{className:T()("nfd-onboarding-header",{"nfd-onboarding-header--dark":s},{"nfd-onboarding-header--sitegen":l})},(0,r.createElement)("div",{className:"nfd-onboarding-header__start"},(0,r.createElement)(C.Slot,{name:`${t}/${u.nK}`})),(0,r.createElement)("div",{className:"nfd-onboarding-header__center"},(0,r.createElement)(C.Slot,{name:`${t}/${u.me}`})),(0,r.createElement)("div",{className:"nfd-onboarding-header__end"},(0,r.createElement)(C.Slot,{name:`${t}/${u.KZ}`}))))},P=(0,i.memo)((()=>{const{routes:e}=(0,a.useSelect)((e=>({routes:e(c.M).getRoutes()}))),t=(0,i.useCallback)((()=>e?.map((e=>(0,r.createElement)(f.qh,{key:e.path,path:e.path,end:!0,element:(0,r.createElement)(e.Component,null)})))),[e]);return(0,r.createElement)("main",{className:"nfd-onboard-content"},(0,r.createElement)(i.Suspense,{fallback:(0,r.createElement)(i.Fragment,null)},(0,r.createElement)(f.BV,null,t(e))))}));var O=n(431),I=n(1056),M=n(7225);function L(e){if(e){const t={};return e?.forEach((e=>{t[e.slug]=e.color})),t}}function z(e){if(e){const t=[];for(const n in e)t.push({slug:n,name:n?.charAt(0).toUpperCase()+n?.slice(1),color:e[n]});return t}}var R=n(3957),V=n(2202);const F=()=>{const e=(0,i.useRef)(null),[t,n]=(0,i.useState)(),[o,l]=(0,i.useState)(),[p,m]=(0,i.useState)(),[h,g]=(0,i.useState)(),[f,w]=(0,i.useState)(""),[b,v]=(0,i.useState)(!1),[E,y]=(0,i.useState)(!0),[S,k]=(0,i.useState)(),{storedPreviewSettings:N,currentData:x,themeStatus:A}=(0,a.useSelect)((e=>({storedPreviewSettings:e(c.M).getPreviewSettings(),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus()})),[]),{updatePreviewSettings:D,setCurrentOnboardingData:P,updateThemeStatus:F}=(0,a.useDispatch)(c.M);(0,i.useEffect)((()=>{u.Er===A&&($(),"custom"===x?.data?.colorStyle&&(y(!1),e?.current?.scrollIntoView({behavior:"smooth",block:"end"})))}),[A]);const $=async()=>{const[e,t]=await Promise.all([(0,d.w6)(),(0,d.kt)()]);if(t?.error)return F(u.So);if(e?.error)return F(u.So);let r;var a;n(t?.body.tailored),l(t?.body["custom-picker-grouping"]),""!==x?.data?.colorStyle?(r=null!==(a=N?.settings?.color?.palette)&&void 0!==a?a:e.body[0]?.settings?.color?.palette,"custom"===x?.data?.colorStyle&&(m(L(r)),g(L(r))),m(L(r))):H()};async function H(){const e=await(0,d.w6)(!0);let t;x?.data?.theme?.variation?t=e.body.filter((e=>e.title===x.data.theme.variation))[0]:0===e.body[0]?.id&&(t=e.body[0]),D((0,M.AN)(t,N)),g();const n=t.settings.color.palette;x.data.colorStyle="",P(x),m(L(n))}const W=e=>{g(),async function(e){const n=N;let r=N?.settings?.color?.palette;t&&e&&r&&(r=r.map((n=>(t?.[e]?.[n.slug]&&(n.color=t[e][n.slug]),n))),n.settings.color.palette=r,D((0,M.AN)(n,N)))}(e),m(t[e]),z(t[e]),x.data.colorStyle=e,P(x),(0,I.v)(new I.iC(V.Ep,e,{colors:(0,_.g2)(t[e])}))},U=async e=>{const t={...p};if(t[f]=e,o){const n=o[f];n&&n.forEach((n=>{t[n]=e}))}!async function(){const e=N,t=e?.settings?.color?.palette;if(t){for(let e=0;e<t.length;e++){const n=t[e]?.slug;f===n&&h&&void 0!==h[n]&&(t[e].color=h[n])}if(o){const e=o[f];e&&e.forEach((e=>{h&&void 0!==h[f]&&(t[function(e,t,n){const r=n.findIndex((({slug:t})=>t===e));return-1===r?n.findIndex((({slug:e})=>e===t)):r}(e,f,N?.settings?.color?.palette)].color=h[f])}))}e.settings.color.palette=t,D((0,M.AN)(e,N))}}(),z(t),x.data.colorStyle="custom",P(x),m(t),clearTimeout(S),k(setTimeout((()=>{(0,I.v)(new I.iC(V.Ep,"custom",{colors:(0,_.g2)(t)}))}),1e3)),g(t)},B=e=>{v(!b),w(b?"":e)};return t&&(0,r.createElement)("div",{className:"theme-colors--drawer"},(0,r.createElement)("h2",null,(0,s.__)("Color Palettes","wp-module-onboarding")),Object.keys(t).map(((e,n)=>(0,r.createElement)("div",{key:e,className:T()("color-palette drawer-palette--button",{"color-palette-selected drawer-palette--button--selected":e===x?.data?.colorStyle}),role:"button",tabIndex:n+1,onClick:()=>W(e),onKeyDown:()=>W(e)},(0,r.createElement)("div",{className:"color-palette__colors"},(0,r.createElement)("div",{className:"color-palette__colors--tertiary",style:{backgroundColor:`${t[e]?.["header-background"]}`}}),(0,r.createElement)("div",{className:"color-palette__colors--secondary",style:{backgroundColor:`${t[e]?.secondary}`}}),(0,r.createElement)("div",{className:"color-palette__colors--primary",style:{backgroundColor:`${t[e]?.primary}`}})),(0,r.createElement)("div",{className:"color-palette__name drawer-palette--button__text"},t[e]?.name)))),function(){var t,n,a,i;const o="#fff",l=h&&""!==h?.primary?h.primary:null!==(t=p?.primary)&&void 0!==t?t:o,c=h&&""!==h?.secondary?h.secondary:null!==(n=p?.secondary)&&void 0!==n?n:o,d=h&&""!==h?.["header-background"]?h["header-background"]:null!==(a=p?.["header-background"])&&void 0!==a?a:o;return(0,r.createElement)("div",{className:"custom-palette"},(0,r.createElement)("div",{className:"custom-palette__top",role:"button",tabIndex:0,onClick:()=>y(!E),onKeyDown:()=>y(!E)},(0,r.createElement)("div",{className:"custom-palette__top-text"},(0,s.__)("SELECT CUSTOM COLORS","wp-module-onboarding")),E?(0,r.createElement)("div",{className:"custom-palette__top-icon"},"+"):(0,r.createElement)("div",{className:"custom-palette__top-icon"},"-")),(0,r.createElement)(O.A,{type:"fade-in",duration:"300ms",timingFunction:"ease-in-out",className:"custom-palette__below "+(E?"custom-palette_acc_closed":"custom-palette_acc_opened")},(0,r.createElement)(R.A,{isColorSelected:h,color:null!==(i=h?.base)&&void 0!==i?i:o,slug:"base",name:(0,s.__)("Background","wp-module-onboarding"),callback:B}),(0,r.createElement)(R.A,{isColorSelected:h,color:l,slug:"primary",name:(0,s.__)("Primary","wp-module-onboarding"),callback:B}),(0,r.createElement)(R.A,{isColorSelected:h,color:c,slug:"secondary",name:(0,s.__)("Secondary","wp-module-onboarding"),callback:B}),(0,r.createElement)(R.A,{isColorSelected:h,color:d,slug:"tertiary",name:(0,s.__)("Tertiary","wp-module-onboarding"),callback:B})),h&&(0,r.createElement)(O.A,{type:"fade-in",duration:"300ms"},(0,r.createElement)("div",{ref:e,className:"theme-colors--drawer--reset",role:"button",tabIndex:0,onClick:H,onKeyDown:H},(0,r.createElement)("div",null,(0,s.__)("Reset","wp-module-onboarding")))),b&&(0,r.createElement)(C.Popover,null,(0,r.createElement)("div",{role:"button",tabIndex:0,className:"custom-palette__picker__close-icon",onClick:()=>v(!1),onKeyDown:()=>v(!1)},"X"),(0,r.createElement)(C.ColorPicker,{onChange:U})))}())};var $=n(8520),H=n(7044);const W=()=>{const[e,t]=(0,i.useState)(),[n,o]=(0,i.useState)(),[s,l]=(0,i.useState)(""),d=(0,f.zy)(),{currentStep:p,currentData:m,themeStatus:h,storedPreviewSettings:g}=(0,a.useSelect)((e=>({currentStep:e(c.M).getStepFromPath(d.pathname),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus(),storedPreviewSettings:e(c.M).getStepPreviewData()})),[]),{setCurrentOnboardingData:w,updateThemeStatus:_,setHeaderMenuData:v}=(0,a.useDispatch)(c.M);return(0,i.useEffect)((()=>{h===u.Er&&(async()=>{const e=await(0,$.O)(p?.data?.patternId);if(e?.error)return _(u.So);const n=e?.body.pageHeaders,r=e?.body.pageFooter,a=e?.body.pageBody;m.data.partHeader&&""!==m.data.partHeader||(m.data.partHeader=n[0].slug,w(m)),m.data?.partFooter&&""!==m.data?.partFooter||(m.data.partFooter=r.slug,w(m)),l(m.data.partHeader),o(e.body),t(n);let[i,s]=["",""];n.forEach((e=>{e.slug===m.data.partHeader&&(i=e.content)})),s=i+a,v(s)})()}),[h]),(0,r.createElement)(H._Z,{count:g[p?.data?.patternId]?.previewCount,watch:e,callback:()=>e?.map(((t,a)=>(0,r.createElement)(H.ph,{key:a,className:"theme-header-menu-preview--drawer__list__item",selected:t.slug===s,blockGrammer:t.content,viewportWidth:900,styling:"custom",overlay:!1,onClick:()=>(async t=>{document.getElementsByClassName("nfd-onboard-content")&&document.getElementsByClassName("nfd-onboard-content")[0].scrollIntoView({behavior:"smooth"});const r=e[t];if(r.slug===s)return!0;l(r.slug),m.data.partHeader=r.slug,w(m);const a=r.content+n.pageBody;v(a);const i=await(0,b.V1)(m);null===i?.error&&w(m),(0,I.v)(new I.iC(V.r2,r.slug))})(a)}))),className:"theme-header-menu-preview--drawer__list__item",viewportWidth:900})},U=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,s.__)("Pick a Homepage Design","wp-module-onboarding")),(0,r.createElement)("p",null,(0,s.__)("Panel will show a few Homepage Patterns.","wp-module-onboarding"))),B=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,s.__)("Pick a Theme Style","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,s.__)("No Style Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,s.__)("Panel will show Theme details","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,s.__)("With Style Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,s.__)("Panel will show single-column of other Styles.","wp-module-onboarding"))),G=()=>{const[e,t]=(0,i.useState)(),[n,o]=(0,i.useState)(),[s,l]=(0,i.useState)(""),{currentStep:p,currentData:m,storedPreviewSettings:h,themeStatus:g,themeVariations:f}=(0,a.useSelect)((e=>({currentStep:e(c.M).getCurrentStep(),currentData:e(c.M).getCurrentOnboardingData(),storedPreviewSettings:e(c.M).getPreviewSettings(),themeStatus:e(c.M).getThemeStatus(),themeVariations:e(c.M).getStepPreviewData()})),[]),{updatePreviewSettings:w,setCurrentOnboardingData:b,updateThemeStatus:_}=(0,a.useDispatch)(c.M);return(0,i.useEffect)((()=>{g===u.Er&&(async()=>{const e=await(0,d.w6)(!0);if(e?.error)return _(u.So);let n;m.data.theme.variation?n=m.data.theme.variation:(n=e.body[0].title,m.data.theme.variation=n,b(m)),l(n);const r=await(0,$.O)(p?.data?.patternId,!0);if(r?.error)return _(u.So);t(r?.body),o(e?.body),document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0]&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0].scrollIntoView({behavior:"smooth",block:"center"})})()}),[g]),(0,r.createElement)("div",{className:"theme-styles-preview--drawer"},(0,r.createElement)("div",{className:"theme-styles-preview--drawer__list"},(0,r.createElement)(H._Z,{className:"theme-styles-preview--drawer__list__item",watch:n&&e,count:f[p?.data?.patternId]?.previewCount,callback:()=>n?.map(((t,a)=>(0,r.createElement)(H.ph,{key:a,className:"theme-styles-preview--drawer__list__item",selected:t.title===s,blockGrammer:e,viewportWidth:900,styling:"custom",previewSettings:t,overlay:!1,onClick:()=>(e=>{const t=n[e];if(s===t.title)return!0;w((0,M.AN)(t,h)),l(t.title),m.data.theme.variation=t.title,b(m),(0,I.v)(new I.iC(V.hi,t.title))})(a)}))),viewportWidth:900})))},q=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,s.__)("Pick a Theme","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,s.__)("No Theme Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,s.__)("Panel will show contextual help","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,s.__)("With Theme Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,s.__)("Panel will show single-column of other Themes.","wp-module-onboarding"))),j=()=>{const e=(0,i.useRef)(),[t,n]=(0,i.useState)(!1),[o,l]=(0,i.useState)(),[p,m]=(0,i.useState)(),{storedPreviewSettings:h,currentData:g,themeStatus:f}=(0,a.useSelect)((e=>({storedPreviewSettings:e(c.M).getPreviewSettings(),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus()})),[]),{updatePreviewSettings:w,setCurrentOnboardingData:b,updateThemeStatus:_}=(0,a.useDispatch)(c.M);(0,i.useEffect)((()=>{""!==g?.data?.fontStyle&&void 0!==p&&(l(g?.data?.fontStyle),v(g?.data?.fontStyle))}),[p,h]),(0,i.useEffect)((()=>{t||u.Er!==f||(async()=>{const t=await(0,d._t)();if(t?.error)return _(u.So);m(t?.body);const r=h?.settings?.styles[0]?.css;if(r){const t=/--wp--preset--font-family.*;/;e.current.setAttribute("style",r.match(t))}n(!0)})()}),[t,f]);const v=async(e,t="click")=>{if(o===e)return!0;l(e);const n=h,r=p;n?.styles?.typography?.fontFamily&&n?.styles?.blocks["core/heading"]&&(n.styles.typography.fontFamily=r[e]?.styles?.typography?.fontFamily,n.styles.blocks["core/heading"]={...n.styles.blocks["core/heading"],typography:r[e]?.styles.blocks["core/heading"].typography}),n.styles?.blocks["core/site-title"]?.typography?.fontFamily&&(n.styles.blocks["core/site-title"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),n.styles?.blocks["core/site-tagline"]?.typography?.fontFamily&&(n.styles.blocks["core/site-tagline"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),g.data.fontStyle=e,w((0,M.AN)(n,h)),b(g),"click"===t&&(0,I.v)(new I.iC(V.ce,e))};return(0,r.createElement)("div",{ref:e,className:"theme-fonts--drawer"},(0,r.createElement)("h2",null,(0,s.__)("Font Palettes","wp-module-onboarding")),p&&Object.keys(p).map(((e,t)=>{var n;const a=p[e]?.label.split("&",2);return 0===a.length?null:(0,r.createElement)("div",{key:e,role:"button",tabIndex:t+1,className:T()("font-palette drawer-palette--button",{"font-palette-selected drawer-palette--button--selected":o===e}),onClick:()=>v(e),onKeyDown:()=>v(e)},(0,r.createElement)("div",{className:"font-palette__icon drawer-palette--button__text",style:{fontFamily:p[e]?.styles?.typography?.fontFamily}},/* translators: text in each font selection pill representing the respective font */ /* translators: text in each font selection pill representing the respective font */ (0,s.__)("Aa","wp-module-onboarding")),(0,r.createElement)("div",{className:"font-palette__name drawer-palette--button__text"},(0,r.createElement)("span",{style:{fontFamily:p[e]?.styles.blocks["core/heading"].typography.fontFamily}},a[0]),a[1]?"&":"",(0,r.createElement)("span",{style:{fontFamily:p[e]?.styles?.typography?.fontFamily}},null!==(n=a[1])&&void 0!==n?n:"")))})))};var Q=n(8558),K=n(1607),Z=n(7677),Y=n(1003);const J=()=>{const{designRoutes:e}=(0,a.useSelect)((e=>({designRoutes:e(c.M).getDesignRoutes()})),[]),{setDrawerActiveView:t}=(0,a.useDispatch)(c.M),n=(0,f.zy)();return(0,r.createElement)(O.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(C.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:K.A,onClick:()=>t(u.vO)},(0,s.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Y.k2,{to:e.path,className:T()("nfd-onboarding-drawer__panel-menu-link",{active:n.pathname===e.path||n.pathname.includes(e?.data?.designDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Z.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))};var X=n(2895);const ee=()=>{const e=X._.steps,{setDrawerActiveView:t}=(0,a.useDispatch)(c.M);return(0,r.createElement)(O.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(C.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:K.A,onClick:()=>t(u.vO)},(0,s.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Y.k2,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Z.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))},te=()=>{const{setDrawerActiveView:e}=(0,a.useDispatch)(c.M);return(0,r.createElement)(O.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(C.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:K.A,onClick:()=>e(u.vO)},(0,s.__)("Resume Onboarding","wp-module-onboarding")))},ne=()=>{const e=(0,f.zy)(),{topSteps:t}=(0,a.useSelect)((e=>({topSteps:e(c.M).getTopSteps()})),[]),{setDrawerActiveView:n}=(0,a.useDispatch)(c.M);return(0,r.createElement)(O.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(m.A,{buttonClassName:"nfd-onboarding-drawer__panel-back",buttonVariant:"tertiary",origin:"drawer-panel"}),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},t.map((t=>!1!==t.drawerNavigation&&(0,r.createElement)(C.Tooltip,{key:t.path,text:t.data?.tooltipText},(0,r.createElement)("li",{className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Y.k2,{to:e.pathname===t.path||e.pathname.includes(t?.data?.primaryDrawerActiveLinkIncludes)?e.pathname:t.path,className:T()("nfd-onboarding-drawer__panel-menu-link",{active:e.pathname===t.path||e.pathname.includes(t?.data?.primaryDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t?.drawerView&&n(t.drawerView)},(0,r.createElement)(Z.A,{icon:t.icon}),(0,r.createElement)("span",null,t.title)))))))))};var re=n(19);const ae=()=>{const e=re.E.steps,{setDrawerActiveView:t}=(0,a.useDispatch)(c.M);return(0,r.createElement)(O.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(C.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:K.A,onClick:()=>t(u.vO)},(0,s.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Y.k2,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Z.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))},ie=({children:e})=>{const{setDrawerActiveView:t}=(0,a.useDispatch)(c.M);return(0,r.createElement)(O.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(C.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:K.A,onClick:()=>t(u.VG)},(0,s.__)("Design","wp-module-onboarding")),e)},oe=()=>{const{isDrawerOpen:e,drawerView:t}=(0,a.useSelect)((e=>{const{isDrawerOpened:t,getActiveDrawerView:n}=e(c.M);return{isDrawerOpen:t(),drawerView:n()}}),[]),{setIsDrawerOpened:n}=(0,a.useDispatch)(c.M);return(0,r.createElement)("div",{className:T()("nfd-onboarding-drawer__panel",{"is-open":e}),role:"button",tabIndex:"0",onKeyDown:e=>{e.keyCode!==Q.ESCAPE||e.defaultPrevented||(e.preventDefault(),n(!1))}},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-inner"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title-container"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title"},(0,s.__)("WordPress Onboarding","wp-module-onboarding"))),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-scroll-container"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-inside"},u.vO===t&&(0,r.createElement)(ne,null),u.VG===t&&(0,r.createElement)(J,null),u.lf===t&&(0,r.createElement)(ee,null),u.eY===t&&(0,r.createElement)(ae,null),u.yY===t&&(0,r.createElement)(te,null),u.KJ===t&&(0,r.createElement)(ie,null,(0,r.createElement)(q,null)),u.Cx===t&&(0,r.createElement)(ie,null,(0,r.createElement)(B,null)),u.PE===t&&(0,r.createElement)(ie,null,(0,r.createElement)(G,null)),u.iQ===t&&(0,r.createElement)(ie,null,(0,r.createElement)(F,null)),u.SJ===t&&(0,r.createElement)(ie,null,(0,r.createElement)(j,null)),u.HJ===t&&(0,r.createElement)(ie,null,(0,r.createElement)(W,null)),u.CL===t&&(0,r.createElement)(ie,null,(0,r.createElement)(U,null))))))},se=({isOpen:e})=>{const{isDrawerOpen:t,isDrawerSuppressed:n,activeDrawerView:o}=(0,a.useSelect)((e=>({isDrawerOpen:e(c.M).isDrawerOpened(),isDrawerSuppressed:e(c.M).isDrawerSuppressed(),activeDrawerView:e(c.M).getActiveDrawerView()})),[]),{setIsDrawerOpened:l}=(0,a.useDispatch)(c.M),d=(0,i.useRef)();return(0,i.useEffect)((()=>{t||d?.current?.focus()}),[t]),o&&(0,r.createElement)(C.__unstableMotion.div,{className:T()("nfd-onboarding-drawer__toggle",{"is-open":t}),whileHover:"expand"},(0,r.createElement)(C.Button,{className:`nfd-onboarding-drawer__toggle-button has-icon ${!n||"is-suppressed"}`,label:(0,s.__)("Toggle Navigation","wp-module-onboarding"),ref:d,"aria-pressed":e,onClick:()=>{n||l(!t)}},(0,r.createElement)("div",{style:{width:"36px",height:"36px",backgroundImage:"var(--nfd-onboarding-icon)",backgroundSize:"contain"}})))},le=(0,i.memo)((({isDefaultOpen:e=!1})=>{const t=(0,o.useViewportMatch)("medium"),{setIsDrawerOpened:n}=(0,a.useDispatch)(c.M);return(0,i.useEffect)((()=>{n(e&&t)}),[e,t,n]),(0,r.createElement)(i.Fragment,null,(0,r.createElement)(se,null),(0,r.createElement)(oe,null))})),ce=()=>{const{isSidebarOpened:e,sideBarView:t,sidebars:n}=(0,a.useSelect)((e=>({isSidebarOpened:e(c.M).isSidebarOpened(),sideBarView:e(c.M).getSidebarView(),sidebars:e(c.M).getSidebars()})));return(0,r.createElement)(i.Fragment,null,(0,r.createElement)(i.Suspense,{fallback:(0,r.createElement)(i.Fragment,null)},n.map((e=>(0,r.createElement)(i.Fragment,{key:e.id},e?.sidebar&&(0,r.createElement)(e.sidebar,null),e?.menu&&(0,r.createElement)(e.menu,null))))),(0,r.createElement)("div",{className:T()("nfd-onboarding-sidebar__panel",{"is-open":e&&t})},(0,r.createElement)("div",{className:"nfd-onboarding-sidebar__panel-inner"},e&&t&&(0,r.createElement)(C.Slot,{name:`${u.St}/${t}`}))))};var de=n(8294),ue=n(2014),pe=n(5171),me=n(6087);const he=n.p+"images/ai_bg.55900f2d.png";var ge=n(9269);const fe=(0,i.forwardRef)((function({footer:e,header:t,sidebar:n,secondarySidebar:a,notices:l,content:c,drawer:d,actions:p,labels:m,className:h,shortcuts:g,interactionDisabled:f},w){const b=(0,C.__unstableUseNavigateRegions)(g);if("sitegen"===window.nfdOnboarding.currentFlow){const{theme:e}=(0,i.useContext)(ge.D);!function(e,t){(0,i.useEffect)((()=>{const n=new Image;n.src=he,n.onload=()=>{document.querySelector(".nfd-onboarding-skeleton--sitegen")&&(document.querySelector(".nfd-onboarding-skeleton--sitegen").style.background=t?`url('${he}')`:"#ededed")};const r=document&&document.querySelector(`html:not(.${e})`);if(r)return r.classList.toggle(e),()=>{r.classList.toggle(e)}}),[e,t])}("nfd-interface-interface-skeleton__html-container",e===u.fS)}const _={ /* translators: accessibility text for the nav bar landmark region. */ drawer:(0,s.__)("Drawer","wp-module-onboarding"), /* translators: accessibility text for the top bar landmark region. */ header:(0,s.__)("Header","wp-module-onboarding"), /* translators: accessibility text for the content landmark region. */ body:(0,s.__)("Content","wp-module-onboarding"), /* translators: accessibility text for the secondary sidebar landmark region. */ secondarySidebar:(0,s.__)("Block Library","wp-module-onboarding"), /* translators: accessibility text for the settings landmark region. */ sidebar:(0,s.__)("Settings","wp-module-onboarding"), /* translators: accessibility text for the publish landmark region. */ actions:(0,s.__)("Publish","wp-module-onboarding"), /* translators: accessibility text for the footer landmark region. */ footer:(0,s.__)("Footer","wp-module-onboarding"),...m};return(0,r.createElement)("div",{...b,ref:(0,o.useMergeRefs)([w,b.ref]),className:T()(h,"nfd-interface-interface-skeleton",b.className,!!e&&"has-footer")},!!d&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__drawer",role:"region","aria-label":_.drawer,tabIndex:"-1"},d),(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__editor"},!!t&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__header",role:"region","aria-label":_.header,tabIndex:"-1"},t),(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__body"},!!a&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":_.secondarySidebar,tabIndex:"-1"},a),!!l&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__notices"},l),(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__content",role:"region","aria-label":_.body,tabIndex:"-1"},c),!!n&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__sidebar",role:"region","aria-label":_.sidebar,tabIndex:"-1"},n),!!p&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__actions",role:"region","aria-label":_.actions,tabIndex:"-1"},p))),!!e&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__footer",role:"region","aria-label":_.footer,tabIndex:"-1"},e),f&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__overlay--disabled"}))}));var we=n(6188),be=n(2538),_e=n(8559),ve=n(1455),Ee=n.n(ve);const ye=()=>{Ee()({url:`${u.SF}/wp-cron.php`,method:"GET",parse:!1}).catch((e=>{console.error(e)}))};var Se=n(9034);const ke=(e,t,n,a=!0)=>o=>{const{theme:s}=(0,i.useContext)(ge.D),l=s===u.fS,c=void 0===a||a,d=T()(o.className,{[t]:l&&c,[n]:!l&&c});return(0,r.createElement)(e,{...o,className:d})},Ce=()=>{const{footers:e,footerActiveView:t}=(0,a.useSelect)((e=>({footers:e(c.M).getFooters(),footerActiveView:e(c.M).getFooterActiveView()})));return(0,r.createElement)("div",{className:"nfd-onboarding-footer"},(0,r.createElement)(i.Suspense,{fallback:(0,r.createElement)(i.Fragment,null)},e.map((e=>(0,r.createElement)(i.Fragment,{key:e.id},(0,r.createElement)(e.footer,null))))),(0,r.createElement)("div",{className:"nfd-onboarding-footer__start"},(0,r.createElement)(C.Slot,{name:`${t}/${u.vd}`})),(0,r.createElement)("div",{className:"nfd-onboarding-footer__end"},(0,r.createElement)(C.Slot,{name:`${t}/${u.gb}`})))},Ne=()=>{const e=(0,f.zy)(),t=(0,o.useViewportMatch)("medium"),n=(0,me.kebabCase)(e.pathname),{isDrawerOpen:s,newfoldBrand:l,onboardingFlow:p,currentData:m,currentStep:h,lastChapter:g,socialData:y,firstStep:S,allSteps:k,experienceLevel:C,topPriority:N,brandConfig:x,initialize:A,pluginInstallHash:O}=(0,a.useSelect)((e=>({isDrawerOpen:e(c.M).isDrawerOpened(),newfoldBrand:e(c.M).getNewfoldBrand(),onboardingFlow:e(c.M).getOnboardingFlow(),currentData:e(c.M).getCurrentOnboardingData(),socialData:e(c.M).getOnboardingSocialData(),firstStep:e(c.M).getFirstStep(),allSteps:e(c.M).getAllSteps(),topPriority:e(c.M).getTopPriority(),experienceLevel:e(c.M).getExperienceLevel(),currentStep:e(c.M).getCurrentStep(),lastChapter:e(c.M).getCurrentChapter(),brandConfig:e(c.M).getNewfoldBrandConfig(),initialize:e(c.M).getInitialize(),pluginInstallHash:e(c.M).getPluginInstallHash()})),[e.pathname]),[M,L]=(0,i.useState)(!1),[z,R]=(0,i.useState)(!1),[F,$]=(0,i.useState)(!1),{setActiveChapter:H,flushQueue:W,enqueueRequest:U,setOnboardingSocialData:B,updateAllSteps:G,updateRoutes:q,updateTopSteps:j,updateDesignRoutes:Q,setCurrentOnboardingData:K}=(0,a.useDispatch)(c.M);(0,i.useEffect)((()=>{(()=>{e.pathname===S.path&&(0,I.v)(new I.iC(V.p$));const t=h?.chapter;var n;g!==t&&(g&&(m.data.chapters[g]&&(m.data.chapters[g].completed=!0),(0,I.v)(new I.iC(V.vY,g))),t&&(m.data.chapters[t]&&(m.data.chapters[t].completed=!1),(0,I.v)(new I.iC(V.j7,t))),H(t)),t&&m.data.chapters[t]&&(m.data.chapters[t].lastStep=null!==(n=h?.path)&&void 0!==n?n:"")})()}),[h]),(0,i.useEffect)((()=>{A&&((0,_e.Ts)(O),(0,d.Ts)(),(0,ue.n_)(),setInterval(ye,45e3))}),[A]),(0,i.useEffect)((()=>{if(!1!==x?.prioritization)return(()=>{const e=window.nfdOnboarding.currentFlow,t=(0,E.Pq)(e),n=(0,_.qn)("chapter");let r;r=n?(0,we.Ny)(n):(0,we.py)(t,N,C);const a=(0,E.Sg)(e)(r,n);m.data.chapters=(0,we.AZ)(t,m.data.chapters,h),K(m),G(a.steps),j(a.topSteps),q(a.routes),Q(a.designRoutes)})()}),[C,N]),(0,i.useEffect)((()=>{document.body.classList.add(`nfd-brand-${l}`)}),[l]),(0,i.useEffect)((()=>{(async function(){if(m&&e?.pathname!==S?.path&&!M){if(L(!0),F&&await async function(){const{address:e}=m.storeDetails;let t={};void 0!==e&&(delete e.country,delete e.state,t=e),(0,pe.Im)(t)||await(0,pe.mj)(t),delete m.storeDetails.address,delete m.storeDetails.tax,$(!1)}(),z){const e=await async function(){const e=await(0,ue.mt)(),t=await(0,ue.oc)(y);return R(!1),null!==t?.error?e?.body:t?.body}();e&&B(e)}W(),U(u.L5.SET_FLOW,(()=>(0,b.V1)(m))),L(!1)}e?.pathname.includes("basic-info")&&R(!0),e?.pathname.includes("ecommerce")&&$(!0)})(),(()=>{const t=window.nfdOnboarding?.previousStep;if("object"!=typeof t)return window.nfdOnboarding.previousStep={path:e.pathname,url:window.location.href},void w.y.dispatchEvents(V.XJ);const n=t.path,r=t.url;if(n.includes("basic-info")){const e=m.data.blogName,t=m.data.blogDescription,n=m.data.siteLogo.url;e&&(0,I.v)(new I.iC(V.rf,e,{},r)),t&&(0,I.v)(new I.iC(V.Fi,t,{},r)),n&&(0,I.v)(new I.iC(V.WT,void 0,{},r));const a=Object.keys((0,be.Z)(y));a.length&&a.forEach((e=>{(0,I.v)(new I.iC(V.wo,e,{},r))}))}if(n.includes("site-pages")){const e=m.data.sitePages?.other;e&&!1!==e?(0,I.v)(new I.iC(V.o3,e.map((e=>e.title)),{count:e.length},r)):(0,I.v)(new I.iC(V.o3,[],{count:0},r))}if(n.includes("site-features")){const e=m.data.siteFeatures;for(const t in e)!1!==e[t]&&(0,I.v)(new I.iC(V.Zt,t,{},r))}window.nfdOnboarding.previousStep={path:e.pathname,url:window.location.href},w.y.dispatchEvents(V.XJ)})(),function(){if(e?.pathname.includes("colors")||e?.pathname.includes("typography")){const e=(0,v.xG)(k,de.x.conditionalSteps);G(e.allSteps),m.data.customDesign||(m.data.customDesign=!0,K(m))}}()}),[e.pathname,p]);const Z=h===Se.O||"sitegen"===window.nfdOnboarding.currentFlow,Y=ke(fe,"nfd-onboarding-sitegen-dark","nfd-onboarding-sitegen-light",Z),J={className:T()("nfd-onboarding-skeleton",`brand-${l}`,`path-${n}`,{"is-drawer-open":s},{"is-large-viewport":t},{"is-small-viewport":!t},{"nfd-onboarding-skeleton--sitegen":Z}),header:(0,r.createElement)(D,null),drawer:(0,r.createElement)(le,null),content:(0,r.createElement)(P,null),sidebar:(0,r.createElement)(ce,null),footer:Z?(0,r.createElement)(Ce,null):null};return X=Z?Y:fe,Z?(0,r.createElement)(ge.N,null,(0,r.createElement)(X,{...J})):(0,r.createElement)(X,{...J});var X};var Te=n(3582),xe=n(7708);const Ae=ke(fe,"nfd-onboarding-sitegen-dark","nfd-onboarding-sitegen-light"),De=()=>{const[e,t]=(0,i.useState)([]),[n,o]=(0,i.useState)(!1),{currentData:s,initialize:l,pluginInstallHash:p,siteGenErrorStatus:m,interactionDisabled:h,newfoldBrand:g,currentStep:w,lastChapter:_}=(0,a.useSelect)((e=>({currentData:e(c.M).getCurrentOnboardingData(),initialize:e(c.M).getInitialize(),pluginInstallHash:e(c.M).getPluginInstallHash(),siteGenErrorStatus:e(c.M).getSiteGenErrorStatus(),interactionDisabled:e(c.M).getInteractionDisabled(),newfoldBrand:e(c.M).getNewfoldBrand(),currentStep:e(c.M).getCurrentStep(),lastChapter:e(c.M).getCurrentChapter()}))),{setCurrentOnboardingData:v,updateSiteGenErrorStatus:E,setActiveChapter:y,setIsGeneratingHomepages:S}=(0,a.useDispatch)(c.M),{getEditedEntityRecord:k}=(0,a.useSelect)((e=>e(Te.store)),[]),{editEntityRecord:C}=(0,a.useDispatch)(Te.store),N=(0,f.zy)(),x=(0,i.useRef)();async function O(e,n,r,a=1){const i=await(0,xe.iQ)(e,n,r);if(i.error)return a<u.zm?O(e,n,r,a+1):(t((e=>e.includes(n)?e:[...e,n])),!1===m&&(E(!0),o(!1)),void(window.nfdOnboarding.siteGenTimerInterval&&clearInterval(window.nfdOnboarding.siteGenTimerInterval)));if("site_config"===n&&C("root","site",void 0,{title:i.body.site_title,description:i.body.tagline}),s.sitegen.siteGenMetaStatus.currentStatus+=1,s.sitegen.siteGenMetaStatus.currentStatus===s.sitegen.siteGenMetaStatus.totalCount){s.sitegen.skipCache=!1,o(!1),S(!0);const e=await(0,xe.c7)(s.sitegen.siteDetails.prompt);if(e.error)return E(!0),S(!1),void v(s);s.sitegen.homepages.data=e.body,S(!1)}v(s)}async function M(){if(!0===m||!0===n||!N.pathname.includes("site-logo")&&!N.pathname.includes("experience"))return;if(s.sitegen.siteGenMetaStatus.currentStatus===s.sitegen.siteGenMetaStatus.totalCount)return;let r;o(!0),window.nfdOnboarding?.siteGenTimerInterval||(window.nfdOnboarding.siteGenTime=0,window.nfdOnboarding.siteGenTimerInterval=setInterval((()=>{window.nfdOnboarding.siteGenTime+=1}),1e3)),Array.isArray(e)&&e.length>0?(r=e,t([])):(r=await(0,xe.kA)(),r=r.body,s.sitegen.siteGenMetaStatus.currentStatus=0,v(s));const a={site_description:s.sitegen?.siteDetails?.prompt},i=s.sitegen?.skipCache;r.forEach((e=>{O(a,e,i)}))}(0,i.useEffect)((()=>{(0,d.Ts)(),(0,ue.n_)(),k("root","site")}),[]),(0,i.useEffect)((()=>{document.body.classList.add(`nfd-brand-${g}`)}),[g]),(0,i.useEffect)((()=>{z()}),[w]),(0,i.useEffect)((()=>{l&&((0,_e.Ts)(p),setInterval(ye,45e3))}),[l]),(0,i.useEffect)((()=>{!async function(){if(s&&N?.pathname!==Se.O.path){const e=await(0,b.V1)(s);if(null!==e.body)return!0;switch(e.error.code){case u.Ie:case u.jN:return!0}!1===m&&E(!0)}}(),M(),L()}),[N.pathname]),(0,i.useEffect)((()=>{!0===x.current&&!1===m&&M(),x.current=m}),[m]);const L=()=>{window.nfdOnboarding;window.nfdOnboarding.previousStep={path:N.pathname,url:window.location.href}},z=()=>{const e=w?.chapter;var t;_!==e&&(_&&(s.data.chapters[_]&&(s.data.chapters[_].completed=!0),(0,I.v)(new I.iC(V.vY,_,{source:A.d0}))),e&&(s.data.chapters[e]&&(s.data.chapters[e].completed=!1),(0,I.v)(new I.iC(V.j7,e,{source:A.d0}))),y(e)),e&&s.data.chapters[e]&&(s.data.chapters[e].lastStep=null!==(t=w?.path)&&void 0!==t?t:"")};return(0,r.createElement)(ge.N,null,(0,r.createElement)(Ae,{id:"nfd-onboarding-skeleton--sitegen",className:T()("nfd-onboarding-skeleton--sitegen",`brand-${g}`),header:(0,r.createElement)(D,null),content:(0,r.createElement)(P,null),sidebar:(0,r.createElement)(ce,null),footer:(0,r.createElement)(Ce,null),interactionDisabled:h}))},Pe=()=>{const[e,t]=(0,i.useState)(!1),{brandConfig:n,onboardingFlow:o}=(0,a.useSelect)((e=>({brandConfig:e(c.M).getNewfoldBrandConfig(),onboardingFlow:e(c.M).getOnboardingFlow()})),[]),{setIsDrawerOpened:s,setIsDrawerSuppressed:l,setIsHeaderNavigationEnabled:d,setSidebarActiveView:p,setActiveFlow:m,setActiveStep:h,updateAllSteps:y,updateTopSteps:S,updateRoutes:C,updateInitialize:N}=(0,a.useDispatch)(c.M),T=(0,f.zy)();(0,i.useEffect)((()=>{if(window.nfdOnboarding?.newFlow){const e=window.nfdOnboarding.newFlow;P(),t(e),D(e),window.nfdOnboarding.newFlow=void 0}else T.pathname.includes("/step")&&(m(o),h(T.pathname))}),[T.pathname]);const x=async(e,n=0)=>{if(n>=u.WH)return t(!1);const r=await(0,b.HR)(e);if(r?.error)return x(e,n+=1);await w.y.dispatchEvents();const a=re.E.steps[0],i=(0,g.getFragment)(window.location.href),o=(0,_.qm)(window.location.href,"flow").replace(i,"");window.location.replace(`${o}#${a.path}`),window.location.reload()},D=async e=>{if((0,v.nC)(n,e))return e===A.eS?x(e):void 0},P=()=>{s(!1),l(!0),d(!1),p(!1)};return(0,r.createElement)(r.Fragment,null,(()=>{if(e===A.eS)return(0,r.createElement)(k,null);switch(window.nfdOnboarding.currentFlow){case A.rA:case A.eS:return(()=>{if(!(0,v.nC)(n,A.d0)){const e=(0,E.Sg)(window.nfdOnboarding.currentFlow)(),t=(0,v.x9)(e.steps,[Se.O]);y(t.allSteps);const n=(0,v.p1)(e?.topSteps,[Se.O]);S(n.topSteps);const r=(0,v.Jp)(e.routes,[Se.O]);C(r.routes),N(!0)}})(),(0,r.createElement)(Ne,null);case A.d0:return(0,r.createElement)(De,null)}})())};var Oe=n(3988),Ie=n(7673);const Me=()=>{const e=(0,f.Zp)(),t=(0,o.useViewportMatch)("small"),{setIsHeaderEnabled:n,setSidebarActiveView:l,setHeaderActiveView:d,setDrawerActiveView:p,setHideFooterNav:m,setIsHeaderNavigationEnabled:h,updateAllSteps:g,updateTopSteps:w,updateRoutes:b,updateDesignRoutes:_,updateInitialize:y,setCurrentOnboardingData:S,updateSiteGenErrorStatus:k}=(0,a.useDispatch)(c.M);(0,i.useEffect)((()=>{m(!0),n(!0),d(u.Ix),h(!0),p(!1),l(!1)}),[]);const{brandConfig:N,currentData:T}=(0,a.useSelect)((e=>({brandConfig:e(c.M).getNewfoldBrandConfig(),currentData:e(c.M).getCurrentOnboardingData()}))),x=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:A.rA,D=()=>{k(!1)},P={heading:(0,s.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,s.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,s.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,s.__)("Try again","wp-module-onboarding"),buttonSkip:(0,s.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,s.__)("exit to WordPress","wp-module-onboarding")};return(0,r.createElement)(Oe.A,{className:"nfd-onboarding-step--site-gen__error"},(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,r.createElement)(Ie.A,{height:"100px"})),(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,r.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},P.heading)),(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,r.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},P.subHeading),(0,r.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},P.message,(0,r.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:u.R0},P.buttonExit))),(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,r.createElement)(C.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,v.nC)(N,t))return!1;const n=window.nfdOnboarding.currentFlow,r=(0,E.Sg)(t)();g(r.steps),w(r?.topSteps),b(r.routes),_(r?.designRoutes),A.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,T.activeFlow=t,T.continueWithoutAi=!0,S(T),A.d0!==t&&y(!0),e(r.steps[1].path)})(x)}},P.buttonSkip),t?(0,r.createElement)(C.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{D()}},(0,r.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},P.buttonText)):(0,r.createElement)(C.Fill,{name:`${u.Sr}/${u.gb}`},(0,r.createElement)(C.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{D()}},(0,r.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},P.buttonText))))))},Le=({children:e})=>{const{siteGenErrorStatus:t}=(0,a.useSelect)((e=>({siteGenErrorStatus:e(c.M).getSiteGenErrorStatus()})));return(0,i.useEffect)((()=>{!0===t&&(0,I.v)(new I.iC(V.cW,void 0,{source:A.d0}))}),[t]),(0,r.createElement)(i.Fragment,null,t?(0,r.createElement)(Me,null):e)}},9269:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,N:()=>s});var r=n(1609),a=n(8468),i=n(8969);const o=(0,a.createContext)(),s=({children:e})=>{const[t,n]=(0,a.useState)("dark");return(0,r.createElement)(o.Provider,{value:{theme:t,toggleTheme:()=>{n((e=>e===i.fS?i.Vw:i.fS))}}},e)}},8744:(e,t,n)=>{"use strict";n.d(t,{d0:()=>i,eS:()=>a,rA:()=>r});const r="wp-setup",a="ecommerce",i="sitegen"},7835:(e,t,n)=>{"use strict";n.d(t,{Pq:()=>Ne,Tk:()=>Ce,FI:()=>ye,o2:()=>Se,Zq:()=>ke,Sg:()=>Te});var r=n(8744),a=n(6087),i=n(2895),o=n(8294),s=n(7831),l=n(9729),c=n(67),d=n(8468),u=n(2502);const p=(0,d.lazy)((()=>n.e(270).then(n.bind(n,1270)))),m=new u.p({path:"/wp-setup/step/complete",Component:p});var h=n(7723),g=n(3290),f=n(1609),w=n(7143),b=n(7675),_=n(3474);const v=(0,d.lazy)((()=>n.e(206).then(n.bind(n,3206)))),E=(0,d.lazy)((()=>n.e(672).then(n.bind(n,6672)))),y=(0,d.lazy)((()=>n.e(993).then(n.bind(n,1993)))),S=(0,d.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),k=(0,d.lazy)((()=>n.e(97).then(n.bind(n,9097)))),C=(0,d.lazy)((()=>n.e(508).then(n.bind(n,6508)))),N=(0,d.lazy)((()=>n.e(994).then(n.bind(n,994)))),T=new u.p({path:"/wp-setup/step/what-next",title:(0,h.__)("What Next","wp-module-onboarding"),Component:N,icon:g.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:r}=(0,w.useSelect)((e=>({brandName:e(b.M).getNewfoldBrandName(),techSupportLink:e(b.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(b.M).getfullServiceCreativeTeamUrl(),brandConfig:e(b.M).getNewfoldBrandConfig()}))),a=((e,t,n)=>({introduction:{heading:(0,h.__)("What’s Next","wp-module-onboarding"),subheading:(0,h.sprintf)(/* translators: 1: website or store 2: website or store */ /* translators: 1: website or store 2: website or store */ (0,h.__)("The beginning of your %1$s journey is complete. We’re here to support your next steps and %2$s goals!","wp-module-onboarding"),(0,_.P)("website"),(0,_.P)("website")),icon:g.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-what-next-illustration"},information:{headingWithDescriptions:[{heading:(0,h.__)("Add, adjust and launch!","wp-module-onboarding"),description:(0,h.sprintf)(/* translators: 1: site or store 2: Brand 3: site or store */ /* translators: 1: site or store 2: Brand 3: site or store */ (0,h.__)("Now that you’ve setup the basics, use WordPress to edit your pages, %1$s design and explore the unlimited destinations you can chart for your %2$s %3$s.","wp-module-onboarding"),(0,_.P)("site"),e,(0,_.P)("site"))},{description:(0,h.sprintf)(/* translators: %s: website */ /* translators: %s: website */ (0,h.__)("Our support team, %s experts and professional designers are always just a chat or call away if you ever need directions.","wp-module-onboarding"),(0,_.P)("website"))}]},help:{fullService:{text:(0,h.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,h.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,f.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__what-next"},(0,f.createElement)(C,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==r?.views?.sidebar?.illustration?.shown&&(0,f.createElement)(v,{cssIcon:a.illustration.icon,baseClassName:"nfd-onboarding-sidebar-learn-more__what-next",backgroundPosition:"right bottom"}),(0,f.createElement)(E,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,f.createElement)(y,null,!1!==r?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,f.createElement)(S,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,f.createElement)(k,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{tooltipText:(0,h.__)("How else can we help?","wp-module-onboarding")}});var x=n(5573);const A=(0,f.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,f.createElement)(x.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var D=n(3988),P=n(4639),O=n(8969),I=n(9491);class M{constructor({path:e,title:t,Component:n,icon:r}){this.path=e,this.title=t,this.Component=n,this.icon=r}}const L=new M({path:"*",title:(0,h.__)("Error 404","wp-module-onboarding"),Component:()=>{const e=(0,I.useViewportMatch)("medium"),{setIsDrawerOpened:t,setDrawerActiveView:n,setSidebarActiveView:r,setIsDrawerSuppressed:a}=(0,w.useDispatch)(b.M);(0,d.useEffect)((()=>{e&&t(!0),r(O.Qe),a(!1),n(O.yY)}),[]);const i={heading:(0,h.__)("Error 404","wp-module-onboarding"),subheading:(0,h.__)("Please Check Again!","wp-module-onboarding")};return(0,f.createElement)(D.A,{isVerticallyCentered:!0},(0,f.createElement)(P.A,{title:i.heading,subtitle:i.subheading}))},Icon:A});class z extends u.p{constructor({path:e,title:t,icon:n,drawerView:r,sidebars:a,data:i}){super({path:e,title:t,Component:null,icon:n,drawerView:r,sidebars:a,data:i})}}var R=n(148);const V=new M({path:"/",title:"",Component:()=>{const e=(0,R.Zp)(),{firstStep:t}=(0,w.useSelect)((e=>({firstStep:e(b.M).getFirstStep()})),[]);return(0,d.useEffect)((()=>{e(t.path,{replace:!0,state:{origin:"index-redirect"}})})),(0,f.createElement)(d.Fragment,null)},Icon:(0,f.createElement)(f.Fragment,null)});var F=n(3175),$=n(9034);const H=[V,L],W=[i._,o.x,s.G,l.q],U=(e=W)=>{let t=[];return t.push($.O),t.push(c.H),e.forEach((e=>{t=t.concat([...e.steps])})),t=t.concat([m,T]),t},B=(e=W)=>{let t=[...H];return t.push($.O),t.push(c.H),e.forEach((e=>{t=t.concat([...e.steps,...e.conditionalSteps])})),t=t.concat([m,T]),t},G=e=>{const t=[...e],n=t.findIndex((e=>e.path.includes("/step/get-started")));-1!==n&&(t[n]=(e=>{const t={...e};return t.title=(0,h.__)("Get Started","wp-module-onboarding"),t.data.tooltipText=(0,h.__)("Get Started","wp-module-onboarding"),t.data.primaryDrawerActiveLinkIncludes="/wp-setup/step/get-started/",new z(t)})(e[n]));const r=t.findIndex((e=>e.path.includes("/step/design")));return-1!==r&&(t[r]=(e=>{const t={...e};return t.title=(0,h.__)("Design","wp-module-onboarding"),t.icon=F.A,t.data.primaryDrawerActiveLinkIncludes="/wp-setup/step/design/",new z(t)})(t[r])),(0,a.filter)(t,(e=>e instanceof z||!e.path.includes("/step/get-started")&&!e.path.includes("/step/design")&&!e.path.includes("/step/complete")&&!e.path.includes("/step/interstitial")))},q=e=>{const t=[...e];return(0,a.filter)(t,(e=>e.path.includes("/step/design/")&&!e.path.includes("/theme-styles/preview")))};var j=n(19),Q=n(8690);const K=[V,L],Z=[i._,j.E,o.x,s.G,l.q],Y=(e=Z)=>{let t=[];return t.push($.O),t.push(c.H),e.forEach((e=>{t=t.concat([...e.steps])})),t=t.concat([m,T]),(0,a.filter)(t,(e=>!e.path.includes("/wp-setup/step/top-priority")))},J=(e=Z)=>{let t=[...K];return t.push($.O),t.push(c.H),e.forEach((e=>{t=t.concat([...e.steps,...e.conditionalSteps])})),t=t.concat([m,T]),(0,a.filter)(t,(e=>!e.path.includes("/wp-setup/step/top-priority")))},X=e=>{const t=(e=G(e)).findIndex((e=>e.path.includes("/ecommerce/step")));return-1!==t&&(e[t]=(e=>{const t={...e};return t.title=(0,h.__)("Store Info","wp-module-onboarding"),t.icon=Q.A,t.data.primaryDrawerActiveLinkIncludes="/ecommerce/step/",new z(t)})(e[t])),(0,a.filter)(e,(e=>e instanceof z||!e.path.includes("/ecommerce/step")&&!e.path.includes("/wp-setup/step/top-priority")))};var ee=n(7767),te=n(4487);const ne=[n(4635).E,te.b],re=new ee.I({id:O.$P,name:(0,h.__)("Sitegen Design","wp-module-onboarding"),steps:ne});var ae=n(5822);const ie=(0,d.lazy)((()=>n.e(287).then(n.bind(n,5287)))),oe=[new u.p({path:"/sitegen/step/experience",title:(0,h.__)("Page Layouts","wp-module-onboarding"),Component:ie,icon:ae.A,sidebars:{LearnMore:{SidebarComponents:[]}}})],se=new ee.I({id:O.W6,name:(0,h.__)("Sitegen Features","wp-module-onboarding"),steps:oe}),le=(0,d.lazy)((()=>n.e(390).then(n.bind(n,5390)))),ce=new u.p({path:"/sitegen/step/site-details",title:(0,h.__)("Site Details","wp-module-onboarding"),Component:le,icon:ae.A,sidebars:{LearnMore:{SidebarComponents:[]}}});var de=n(4805);const ue=(0,d.lazy)((()=>n.e(377).then(n.bind(n,5377)))),pe=[ce,new u.p({path:"/sitegen/step/social-media",title:(0,h.__)("Page Layouts","wp-module-onboarding"),Component:ue,icon:ae.A,sidebars:{LearnMore:{SidebarComponents:[]}}}),de.O],me=new ee.I({id:O.qy,name:(0,h.__)("Sitegen Core","wp-module-onboarding"),steps:pe}),he=(0,d.lazy)((()=>n.e(622).then(n.bind(n,9622)))),ge=new u.p({path:"/sitegen/step/welcome",title:(0,h.__)("Welcome","wp-module-onboarding"),Component:he,icon:ae.A,sidebars:{LearnMore:{SidebarComponents:[]}}}),fe=[V,L],we=[me,se,re],be=(e=we)=>{let t=[];return t.push($.O,ge),e.forEach((e=>{t=t.concat([...e.steps])})),t},_e=(e=we)=>{let t=[...fe];return t.push($.O,ge),e.forEach((e=>{t=t.concat([...e.steps,...e.conditionalSteps])})),t},ve=()=>{var e;return null!==(e=window.nfdOnboarding.currentFlow)&&void 0!==e?e:r.rA},Ee={[r.rA]:{getRoutes:B,getSteps:U,getTopSteps:G,chapters:W,getData:(e=W,t=!1)=>{let n=U(e),r=B(e);return t&&(n=n.filter((e=>!e.path.includes("/interstitial"))),r=r.filter((e=>!e.path.includes("/interstitial")))),{steps:n,routes:r,topSteps:G(n),designRoutes:q(r)}},getDesignRoutes:q},[r.eS]:{getRoutes:J,getSteps:Y,getTopSteps:X,chapters:Z,getData:(e=Z)=>{const t=Y(e),n=J(e);return{steps:t,routes:n,topSteps:X(t),designRoutes:q(n)}},getDesignRoutes:q},[r.d0]:{getRoutes:_e,getSteps:be,chapters:we,getData:()=>({steps:be(),routes:_e()}),getTopSteps:()=>[],getDesignRoutes:()=>[]}},ye=Ee[ve()].getRoutes(),Se=Ee[ve()].getSteps(),ke=Ee[ve()].getTopSteps(Se),Ce=Ee[ve()].getDesignRoutes(ye),Ne=e=>Ee[e].chapters,Te=(Ee[ve()].getRoutes,Ee[ve()].getSteps,Ee[ve()].getTopSteps,e=>(e=e||ve(),Ee[e].getData));Ee[ve()].getDesignRoutes},2940:(e,t,n)=>{"use strict";n.d(t,{Jp:()=>u,Ti:()=>l,nC:()=>c,p1:()=>d,x9:()=>o,xG:()=>i});var r=n(6087),a=n(1869);const i=(e,t)=>{const n=o(e,t),r=[...t];return{allSteps:s(n.allSteps,a.S,r)}},o=(e,t)=>{const n=new Set(t.map((e=>e.path)));return{allSteps:(0,r.filter)(e,(e=>!n.has(e.path)))}},s=(e,t,n)=>{const r=e.findIndex((e=>e.path===t.path));return e.splice(r+1,0,...n),e},l=(e,t,n)=>{const r=e.findIndex((e=>e.id===t.id));return e.splice(r+1,0,n),e},c=(e,t)=>{var n;const r=null!==(n=e?.enabled_flows)&&void 0!==n?n:{};return t in r&&!0===r[t]},d=(e,t)=>{const n=new Set(t.map((e=>e.path)));return{topSteps:(0,r.filter)(e,(e=>!n.has(e.path)))}},u=(e,t)=>{const n=new Set(t.map((e=>e.path)));return{routes:(0,r.filter)(e,(e=>!n.has(e.path)))}}},7767:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});class r{constructor({id:e,name:t,steps:n,conditionalSteps:r=[],initialSteps:a=[],topSteps:i=[],interstitialSteps:o=[]}){this.id=e,this.name=t,this.steps=n.map((e=>(e.chapter=this.id,e))),this.conditionalSteps=r.map((e=>(e.chapter=this.id,e))),this.initialSteps=a,this.topSteps=i,this.interstitialSteps=o}}},2502:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});class r{constructor({path:e,title:t,Component:n,icon:r,drawerView:a,sidebars:i,header:o,data:s,drawerNavigation:l}){this.path=e,this.title=t,this.Component=n,this.icon=r,this.drawerView=a,this.sidebars=i,this.data=s,this.header=o,this.drawerNavigation=null==l||l}}},1869:(e,t,n)=>{"use strict";n.d(t,{S:()=>v});var r=n(7589),a=n(8468),i=n(7723),o=n(2502),s=n(1609),l=n(7143),c=n(7675),d=n(3474),u=n(3175);const p=(0,a.lazy)((()=>n.e(206).then(n.bind(n,3206)))),m=(0,a.lazy)((()=>n.e(672).then(n.bind(n,6672)))),h=(0,a.lazy)((()=>n.e(993).then(n.bind(n,1993)))),g=(0,a.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),f=(0,a.lazy)((()=>n.e(97).then(n.bind(n,9097)))),w=(0,a.lazy)((()=>n.e(508).then(n.bind(n,6508))));var b=n(8969);const _=(0,a.lazy)((()=>n.e(367).then(n.bind(n,367)))),v=new o.p({path:"/wp-setup/step/design/theme-styles/preview",title:(0,i.__)("Theme Styles","wp-module-onboarding"),Component:_,icon:r.A,drawerView:b.PE,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:r}=(0,l.useSelect)((e=>({brandName:e(c.M).getNewfoldBrandName(),techSupportLink:e(c.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(c.M).getfullServiceCreativeTeamUrl(),brandConfig:e(c.M).getNewfoldBrandConfig()}))),a=((e,t,n)=>({introduction:{heading:(0,i.__)("Theme Styles","wp-module-onboarding"),subheading:(0,i.__)("Professionally-designed website templates ready for their public debut featuring your great ideas.","wp-module-onboarding"),icon:u.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-theme-styles-illustration"},information:{headingWithDescriptions:[{heading:(0,i.__)("Show the web you have style with modern colors and elevated fonts","wp-module-onboarding"),description:(0,i.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ (0,i.__)("Pick one of these professionally-designed website styles to start your %1$s %2$s.","wp-module-onboarding"),e,(0,d.P)("site"))},{description:(0,i.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ (0,i.__)("In the next steps and in the future, you can change the specific colors and fonts to fit your aesthetic vision for your %s.","wp-module-onboarding"),(0,d.P)("site"))}]},help:{fullService:{text:(0,i.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,i.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,s.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-theme-styles-preview"},(0,s.createElement)(w,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==r?.views?.sidebar?.illustration?.shown&&(0,s.createElement)(p,{cssIcon:a.illustration.icon}),(0,s.createElement)(m,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,s.createElement)(h,null,!1!==r?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,s.createElement)(g,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,s.createElement)(f,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{designDrawerActiveLinkIncludes:"/wp-setup/step/design/theme-styles/",patternId:"theme-styles"}})},67:(e,t,n)=>{"use strict";n.d(t,{H:()=>v});var r=n(9572),a=n(8468),i=n(1609),o=n(7143),s=n(7675),l=n(7723),c=n(3474);const d=(0,a.lazy)((()=>n.e(206).then(n.bind(n,3206)))),u=(0,a.lazy)((()=>n.e(672).then(n.bind(n,6672)))),p=(0,a.lazy)((()=>n.e(993).then(n.bind(n,1993)))),m=(0,a.lazy)((()=>Promise.resolve().then(n.bind(n,6517)))),h=(0,a.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),g=(0,a.lazy)((()=>n.e(97).then(n.bind(n,9097)))),f=(0,a.lazy)((()=>n.e(508).then(n.bind(n,6508))));var w=n(2502),b=n(8969);const _=(0,a.lazy)((()=>n.e(51).then(n.bind(n,4051)))),v=new w.p({path:"/wp-setup/step/get-started/welcome",title:(0,l.__)("Welcome","wp-module-onboarding"),Component:_,icon:r.A,drawerView:b.lf,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,expertsLink:t,techSupportLink:n,fullServiceCreativeTeamLink:a,brandConfig:w}=(0,o.useSelect)((e=>({brandName:e(s.M).getNewfoldBrandName(),expertsLink:e(s.M).getExpertsUrl(),techSupportLink:e(s.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(s.M).getfullServiceCreativeTeamUrl(),brandConfig:e(s.M).getNewfoldBrandConfig()}))),b=((e,t,n,a)=>({introduction:{heading:(0,l.__)("Start Setup","wp-module-onboarding"),subheading:(0,l.sprintf)(/* translators: 1: Brand 2: website or store */ /* translators: 1: Brand 2: website or store */ (0,l.__)("Lay the foundation for a successful %1$s %2$s using our WordPress Onboarding. ","wp-module-onboarding"),e,(0,c.P)("website")),icon:r.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-welcome-illustration"},information:{headingWithDescriptions:[{heading:(0,l.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ (0,l.__)("WordPress is free %s software","wp-module-onboarding"),(0,c.P)("website")),description:(0,l.sprintf)(/* translators: 1: website or store 2: website or store */ /* translators: 1: website or store 2: website or store */ (0,l.__)("When you set up this new WordPress %1$s, you’re joining millions of website owners who publish their %2$s using the free, community-built software project we’re proud to support.","wp-module-onboarding"),(0,c.P)("website"),(0,c.P)("website"),(0,c.P)("website"))},{heading:(0,l.sprintf)(/* translators: 1: Brand 2: website or store */ /* translators: 1: Brand 2: website or store */ (0,l.__)("%1$s is your %2$s partner","wp-module-onboarding"),e,(0,c.P)("website")),description:(0,l.sprintf)(/* translators: 1: website or store 2: Brand 3. site or store */ /* translators: 1: website or store 2: Brand 3. site or store */ (0,l.__)("A WordPress %1$s hosted by %2$s has tons of unique and proven solutions to help you get farther, faster with your WordPress. We put our expertise, partnerships and solutions to work on your %3$s.","wp-module-onboarding"),(0,c.P)("website"),e,(0,c.P)("site"))}]},help:{experts:{text:(0,l.__)("1-1 Expert Solutions & Coaching","wp-module-onboarding"),link:t},fullService:{text:(0,l.__)("Hire Our Full-Service Creative Team","wp-module-onboarding"),link:a},support:{text:(0,l.__)("Technical Support","wp-module-onboarding"),link:n}}}))(e,t,n,a),_=w?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?b.information.headingWithDescriptions.filter(((e,t)=>w?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?.includes(t))):b.information.headingWithDescriptions;return(0,i.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-welcome"},(0,i.createElement)(f,{heading:b.introduction.heading,subheading:b.introduction.subheading,icon:b.introduction.icon}),!1!==w?.views?.sidebar?.illustration?.shown&&(0,i.createElement)(d,{cssIcon:b.illustration.icon}),(0,i.createElement)(u,{headingWithDescriptions:_}),(0,i.createElement)(p,null,!1!==w?.views?.sidebar?.experts?.shown&&b.help.experts.link&&(0,i.createElement)(m,{text:b.help.experts.text,onClick:()=>window.open(b.help.experts.link,"_blank")}),!1!==w?.views?.sidebar?.fullService?.shown&&b.help.fullService.link&&(0,i.createElement)(h,{text:b.help.fullService.text,onClick:()=>window.open(b.help.fullService.link,"_blank")}),(0,i.createElement)(g,{text:b.help.support.text,link:b.help.support.link})))}]}},data:{tooltipText:(0,l.__)("Welcome","wp-module-onboarding")}})},4487:(e,t,n)=>{"use strict";n.d(t,{b:()=>$});var r=n(5822),a=n(8468),i=n(7723),o=n(2502),s=n(1609),l=n(6427),c=n(7677),d=n(6655),u=n(7143),p=n(9491),m=n(6087),h=n(8969),g=n(7675),f=n(6079),w=n(6478),b=n(7708),_=n(6786),v=n(5573);const E=(0,s.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(v.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var y=n(3013),S=n(8087);const k=(0,a.memo)((({onRegenerate:e,onCustomize:t,onRenameItemSelect:n,onViewAll:r,isLargeViewport:a,onToggle:o})=>{const d=e=>()=>{e(),o()};return(0,s.createElement)(l.MenuGroup,{className:"nfd-onboarding-header__version_dropdown-menu"},!a&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.MenuItem,{onClick:d(e)},(0,s.createElement)(c.A,{icon:_.A}),(0,i.__)("Regenerate","wp-module-onboarding")),(0,s.createElement)(l.MenuItem,{onClick:d(t)},(0,s.createElement)("div",{className:"nfd-onboarding-header__version_dropdown-menu__customize-button__icon"}),(0,i.__)("Customize","wp-module-onboarding"))),(0,s.createElement)(l.MenuItem,{onClick:d(n)},(0,i.__)("Rename","wp-module-onboarding")),(0,s.createElement)(l.MenuItem,{onClick:d(r)},(0,i.__)("View All","wp-module-onboarding")))})),C=(0,a.memo)((({isFavorite:e,homepageTitle:t,onFavorite:n,onRename:r,inputRef:o,onRegenerate:d,onCustomize:u,onRenameItemSelect:p,onViewAll:m,isLargeViewport:h,isInputEnabled:g,enableInput:f})=>{const[w,b]=(0,a.useState)(t),_=()=>{b(o.current.value)},v=()=>{const e=o.current.value.trim();e&&e!==t&&r(e),f(!1)};return(0,a.useEffect)((()=>{g&&o.current?.focus()}),[g,o]),(0,a.useEffect)((()=>{b(t)}),[t]),(0,s.createElement)(l.Dropdown,{renderToggle:({isOpen:t,onToggle:r})=>(0,s.createElement)("div",{role:"button",tabIndex:"0","aria-expanded":t,"aria-label":(0,i.__)("Regenerate","wp-module-onboarding"),className:"navigation-buttons-editor"},(0,s.createElement)("div",{className:"navigation-buttons-editor__favorite",role:"button",tabIndex:0,onKeyDown:n,onClick:n},e?(0,s.createElement)(S.h,null):(0,s.createElement)(y.h,null)),(0,s.createElement)("input",{ref:o,disabled:!g,className:"nfd-onboarding-header__center-input",type:"text",value:w,onBlur:v,onChange:_}),(0,s.createElement)(c.A,{className:"nfd-onboarding-header__center-dropdown_icon",icon:E,onClick:r,onKeyDown:e=>{"Enter"===e.key&&r()}})),renderContent:({onToggle:e})=>(0,s.createElement)(k,{onRegenerate:d,onCustomize:u,onRenameItemSelect:p,onViewAll:m,isLargeViewport:h,onToggle:e})})})),N=({handleFavorite:e,handleRename:t,handleViewAll:n,handleRegenerate:r,handleCustomize:i,homepageTitle:o,isFavorite:l})=>{const c=(0,p.useViewportMatch)("medium"),d=(0,a.useRef)(null),[u,m]=(0,a.useState)(!1),h=e=>{m(e),e&&d.current?.focus()},g=()=>{if("function"==typeof g)return e()};return(0,s.createElement)("div",{className:"nfd-onboarding-header__step-navigation"},(0,s.createElement)(C,{isFavorite:l,homepageTitle:o,onFavorite:g,onRename:e=>{"function"==typeof t&&t(e)},inputRef:d,onRegenerate:()=>{if("function"==typeof r)return r()},onCustomize:()=>{if("function"==typeof i)return i()},onRenameItemSelect:()=>{h(!0)},onViewAll:()=>{if("function"==typeof n)return n()},isLargeViewport:c,isInputEnabled:u,enableInput:h}))};var T=n(7517),x=n(7044),A=n(1455),D=n.n(A),P=n(8674),O=n(5435),I=n(1056),M=n(2202),L=n(8744);const z=(0,a.lazy)((()=>n.e(396).then(n.bind(n,9396)))),R=(0,a.lazy)((()=>n.e(100).then(n.bind(n,1100)))),V=(0,s.forwardRef)(((e,t)=>{const[n,r]=(0,a.useState)(!0),{updateCustomizeSidebarData:o}=(0,u.useDispatch)(g.M),l=(0,s.createRef)(),c=(0,s.createRef)(),d=()=>{c.current.resetToDefaultFonts(),l.current.resetToDefaultColors()};if((0,s.useImperativeHandle)(t,(()=>({resetCustomizationCallback:d}))),(0,a.useEffect)((()=>{(async()=>{const e=await(0,b.gK)();o(e?.body),r(!1)})()}),[]),n)return(0,s.createElement)("div",null,"...");const p={introduction:{heading:(0,i.__)("Colors","wp-module-onboarding")}};return(0,s.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-colors"},(0,s.createElement)(R,{heading:p.introduction.heading,ref:l}),(0,s.createElement)(z,{ref:c}))})),F=(0,a.lazy)((()=>n.e(426).then(n.bind(n,426)))),$=new o.p({path:"/sitegen/step/editor",title:(0,i.__)("Page Layouts","wp-module-onboarding"),Component:F,icon:r.A,sidebars:{Customize:{SidebarComponents:[V]}},header:()=>{const[e,t]=(0,a.useState)(),[n,r]=(0,a.useState)(!1),[o,_]=(0,a.useState)(!1),[v,E]=(0,a.useState)(!1),y=(0,p.useViewportMatch)("medium"),{setCurrentOnboardingData:S,setSidebarActiveView:k,setIsSidebarOpened:C,setInteractionDisabled:A}=(0,u.useDispatch)(g.M),{currentData:z,sideBarView:R,isSidebarOpened:V}=(0,u.useSelect)((e=>({currentData:e(g.M).getCurrentOnboardingData(),sideBarView:e(g.M).getSidebarView(),isSidebarOpened:e(g.M).isSidebarOpened()}))),F=async()=>{if(n)return;if(_(!0),""===z.sitegen.siteDetails?.prompt)return void _(!1);const t=z.sitegen.homepages.data;if(!(e.slug in t))return void _(!1);const{slug:r,title:a,color:i,isFavorite:o}=e||{},s=await(0,b.HA)(z.sitegen.siteDetails.prompt,r,i,o);if(s.error)return void _(!1);const l=s.body;if(o){const e=`${a} (Copy)`;e!==l?.title&&(l.title=e)}t[l.slug]=l,z.sitegen.homepages.data=t,z.sitegen.homepages.active=l,S(z),_(!1),(0,I.v)(new I.iC(M.Hf,r,{source:L.d0,placement:"editor_toolbar"}))},$=async()=>{const e="Customize"===R?!V:V;k("Customize"),C(e),!0===e&&(0,I.v)(new I.iC(M.cB,"customize"));const t=await(0,T.w6)();E(t.body)},H=async()=>{r(!0);const e=z.sitegen.homepages.data,t=z.sitegen.homepages.active,n=((e,t)=>(0,s.createElement)("div",{className:"nfd-onboarding-screenshot-container__pages"},Object.keys(e).map(((n,r)=>{const a=e[n];if(!a.isFavorite&&n!==t.slug)return!1;const i=(0,m.cloneDeep)(v[0]);i.settings.color.palette=a.color.palette;let o="";return["header","content","footer"].forEach((e=>{e in a&&(o+=a[e])})),(0,s.createElement)(x.pA,{key:r,blockGrammer:o,previewSettings:i,slug:n,tabIndex:"0",role:"button"})}))))(e,t),i=document.querySelector(".nfd-onboarding-screenshot-container");if(i){(0,a.render)(n,i);const r=e=>new Promise((t=>setTimeout(t,e)));await r(5e3);const o=await Promise.all(Object.keys(e).map((n=>!(!e[n].isFavorite&&n!==t.slug)&&async function(e){return await(0,O.h)(D()({url:(0,P.fG)("block-render/screenshot"),method:"POST",data:{width:1200,height:900,content:e}}).then())}(i.querySelector(`div > div[data-slug="nfd-onboarding-block-preview-${n}"] > .block-editor-block-preview__container > div > iframe`).contentWindow.document.querySelector(".block-editor-block-preview__content-iframe").innerHTML))));Object.keys(e).forEach(((n,r)=>{o[r]?.body?.screenshot&&(e[n].screenshot=o[r].body.screenshot,n===t.slug&&(t.screenshot=o[r].body.screenshot))})),z.sitegen.homepages.data=e,z.sitegen.homepages.active=t,S(z)}await(0,f.V1)(z),await(0,f.IS)(),(0,I.SV)(new I.iC(M.Vg,{source:L.d0})),window.location.replace(h.R0)};return(0,a.useEffect)((()=>{$()}),[]),(0,a.useEffect)((()=>{z?.sitegen?.homepages?.active&&t(z.sitegen.homepages.active)}),[z]),(0,a.useEffect)((()=>(A(!(!n&&!o)),()=>{A(!1)})),[n,o]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.Fill,{name:`${h.Ix}/${h.nK}`},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start"},y&&(0,s.createElement)("div",{className:`nfd-onboarding-header--sitegen__editor__start__regenerate ${n&&"nfd-onboarding-header--sitegen__editor__start__regenerate__disabled"}`,role:"button",tabIndex:0,onClick:F,onKeyDown:F},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__icon"}),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__text"},(0,i.__)("Regenerate","wp-module-onboarding")),o&&(0,s.createElement)(w.A,{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__spinner"})))),(0,s.createElement)(l.Fill,{name:`${h.Ix}/${h.me}`},e&&(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__center"},(0,s.createElement)(N,{handleFavorite:()=>{if(n)return;const t=z.sitegen.homepages.data;if(!(e.slug in t))return;const r=!e.isFavorite;e.isFavorite=r,z.sitegen.homepages.data[e.slug]=e,z.sitegen.homepages.active=e,S(z),(0,I.v)(new I.iC(M.Nz,e.slug,{favorite:r,placement:"editor_toolbar",source:L.d0}))},handleViewAll:()=>{V&&R===h.V_||(k(h.V_),C(!0),(0,I.v)(new I.iC(M.cB,"all_versions",{source:L.d0})))},handleCustomize:$,handleRegenerate:F,handleRename:t=>{e.title=t,z.sitegen.homepages.data[e.slug]=e,z.sitegen.homepages.active=e,S(z),(0,I.v)(new I.iC(M.TH,e.slug,{name:t,source:L.d0}))},homepageTitle:e.title,isFavorite:e.isFavorite}))),(0,s.createElement)(l.Fill,{name:`${h.Ix}/${h.KZ}`},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end"},y&&(0,s.createElement)("div",{className:`nfd-onboarding-header--sitegen__editor__end__customize-button ${n&&"nfd-onboarding-header--sitegen__editor__end__customize-button__disabled"}`,onClick:$,onKeyDown:$,role:"presentation"},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__customize-button__icon"}),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__customize-button__text"},(0,i.__)("Customize","wp-module-onboarding"))),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__save-button"},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__save-button__text",onClick:H,role:"button",tabIndex:0,onKeyDown:H},y?(0,i.__)("Save & Continue","wp-module-onboarding"):(0,i.__)("Next","wp-module-onboarding")),n?(0,s.createElement)(w.A,{className:"nfd-onboarding-header--sitegen__editor__end__save-button__spinner"}):(0,s.createElement)(c.A,{icon:d.A,className:"nfd-onboarding-header--sitegen__editor__end__save-button__text"})))))}})},4635:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(5822),a=n(8468),i=n(7723),o=n(2502);const s=(0,a.lazy)((()=>n.e(619).then(n.bind(n,619)))),l=new o.p({path:"/sitegen/step/preview",title:(0,i.__)("Page Layouts","wp-module-onboarding"),Component:s,icon:r.A,sidebars:{LearnMore:{SidebarComponents:[]}}})},4805:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(5822),a=n(8468),i=n(7723),o=n(2502);const s=(0,a.lazy)((()=>n.e(996).then(n.bind(n,9996)))),l=new o.p({path:"/sitegen/step/site-logo",title:(0,i.__)("Page Layouts","wp-module-onboarding"),Component:s,icon:r.A,sidebars:{LearnMore:{SidebarComponents:[]}}})},9034:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(5822),a=n(8468),i=n(7723),o=n(2502);const s=(0,a.lazy)((()=>n.e(249).then(n.bind(n,8249)))),l=new o.p({path:"/wp-setup/step/fork",title:(0,i.__)("The Fork","wp-module-onboarding"),Component:s,icon:r.A,drawerNavigation:!1,sidebars:{LearnMore:{SidebarComponents:[]}}})},7675:(e,t,n)=>{"use strict";n.d(t,{M:()=>ct});var r={};n.r(r),n.d(r,{dequeueRequest:()=>I,enqueueRequest:()=>O,flushQueue:()=>M,resetNavError:()=>R,setActiveChapter:()=>p,setActiveFlow:()=>d,setActiveStep:()=>u,setContinueWithoutAi:()=>W,setCurrentOnboardingData:()=>m,setDrawerActiveView:()=>s,setFooterActiveView:()=>C,setHeaderActiveView:()=>y,setHeaderMenuData:()=>P,setHideFooterNav:()=>k,setInteractionDisabled:()=>H,setIsDrawerOpened:()=>l,setIsDrawerSuppressed:()=>c,setIsFooterNavAllowed:()=>S,setIsGeneratingHomepages:()=>V,setIsHeaderEnabled:()=>E,setIsHeaderNavigationEnabled:()=>v,setIsSidebarOpened:()=>b,setNavErrorContinuePath:()=>z,setOnboardingSocialData:()=>h,setRuntime:()=>o,setSidebarActiveView:()=>_,showNavErrorDialog:()=>L,updateAllSteps:()=>x,updateCustomizeSidebarData:()=>F,updateDesignRoutes:()=>D,updateInitialize:()=>w,updatePreviewSettings:()=>N,updateRoutes:()=>T,updateSettings:()=>g,updateSiteGenErrorStatus:()=>$,updateThemeStatus:()=>f,updateTopSteps:()=>A});var a={};n.r(a),n.d(a,{getActiveDrawerView:()=>G,getAllSteps:()=>ue,getCurrentChapter:()=>be,getCurrentOnboardingData:()=>se,getCurrentStep:()=>we,getCurrentStepPath:()=>he,getCurrentUserDetails:()=>We,getCustomizeSidebarData:()=>Be,getDesignRoutes:()=>me,getExperienceLevel:()=>$e,getExpertsUrl:()=>Pe,getFirstStep:()=>ge,getFooterActiveView:()=>X,getFooters:()=>Y,getHeaderActiveView:()=>J,getHeaderMenuData:()=>De,getHeaders:()=>Z,getHideFooterNav:()=>te,getHireExpertsUrl:()=>oe,getInitialize:()=>xe,getInteractionDisabled:()=>qe,getIsFooterNavAllowed:()=>ee,getLastStep:()=>fe,getMigrationUrl:()=>Me,getNavErrorPath:()=>Fe,getNewfoldBrand:()=>ne,getNewfoldBrandConfig:()=>ae,getNewfoldBrandName:()=>re,getNewfoldBrandUrl:()=>ie,getNextStep:()=>Ee,getOnboardingFlow:()=>ce,getOnboardingSocialData:()=>le,getPluginInstallHash:()=>Le,getPreviewSettings:()=>Ce,getPreviousStep:()=>ve,getQueuePeek:()=>ze,getRoutes:()=>de,getSettings:()=>Ne,getShowErrorDialog:()=>Ve,getSidebarView:()=>Se,getSidebars:()=>ke,getSiteGenErrorStatus:()=>Ge,getStepFromPath:()=>_e,getStepPreviewData:()=>Ae,getTechSupportUrl:()=>Ie,getThemeStatus:()=>Te,getTopPriority:()=>He,getTopSteps:()=>pe,getfullServiceCreativeTeamUrl:()=>Oe,isDrawerOpened:()=>q,isDrawerSuppressed:()=>j,isGeneratingHomepages:()=>Ue,isHeaderEnabled:()=>K,isHeaderNavigationEnabled:()=>Q,isQueueEmpty:()=>Re,isSidebarOpened:()=>ye});var i=n(8744);function o(e){var t;return window.nfdOnboarding={buildUrl:e.buildUrl,siteUrl:e.siteUrl,migrated:!0,currentFlow:null!==(t=e.currentFlow)&&void 0!==t?t:i.rA,stepPreviewData:e.previewSettings.stepPreviewData},{type:"SET_RUNTIME",runtime:e}}function s(e){return{type:"SET_DRAWER_ACTIVE_VIEW",view:e}}function l(e){return{type:"SET_DRAWER_OPENED",isOpen:e}}function c(e){return{type:"SET_DRAWER_SUPPRESSED",isSuppressed:e}}function d(e){return{type:"SET_ACTIVE_FLOW",flow:e}}function u(e){return{type:"SET_ACTIVE_STEP",path:e=e.replace(/\/$/,"")}}function p(e){return{type:"SET_ACTIVE_CHAPTER",chapter:e}}function m(e){return{type:"SET_CURRENT_DATA",flowData:e}}function h(e){return{type:"SET_SOCIAL_DATA",socialData:e}}function g(e){return{type:"UPDATE_SETTINGS",settings:e}}function f(e){return{type:"UPDATE_THEME_STATUS",themeStatus:e}}function w(e){return{type:"UPDATE_INITIALIZE",initialize:e}}function b(e){return{type:"SET_SIDEBAR_OPENED",isOpen:e}}function _(e){return{type:"SET_SIDEBAR_ACTIVE_VIEW",view:e}}function v(e){return{type:"SET_HEADER_NAVIGATION_ENABLED",isNavigationEnabled:e}}function E(e){return{type:"SET_HEADER_ENABLED",isEnabled:e}}function y(e){return{type:"SET_HEADER_ACTIVE_VIEW",view:e}}function S(e){return{type:"SET_IS_FOOTER_NAV_ALLOWED",isNavAllowed:e}}function k(e){return{type:"SET_HIDE_FOOTER_NAV",hideFooterNav:e}}function C(e){return{type:"SET_FOOTER_ACTIVE_VIEW",view:e}}function N(e){return{type:"SET_PREVIEW_SETTINGS",previewSettings:e}}function T(e){return{type:"UPDATE_ROUTES",routes:e}}function x(e){return{type:"UPDATE_ALL_STEPS",allSteps:e}}function A(e){return{type:"UPDATE_TOP_STEPS",topSteps:e}}function D(e){return{type:"UPDATE_DESIGN_ROUTES",designRoutes:e}}function P(e){return{type:"UPDATE_HEADER_MENU_DATA",menu:e}}function O(e,t){return{type:"ENQUEUE_REQUEST",id:e,request:t}}function I(){return{type:"DEQUEUE_REQUEST"}}function M(){return{type:"FLUSH_QUEUE"}}function L(e){return{type:"SHOW_NAV_ERROR_DIALOG",showDialog:e}}function z(e){return{type:"SET_NAV_ERROR_CONTINUE_PATH",continuePath:e}}function R(){return{type:"RESET_NAV_ERROR"}}const V=e=>({type:"SET_IS_GENERATING_HOMEPAGES",isGeneratingHomepages:e});function F(e){return{type:"CUSTOMIZE_SIDEBAR_DATA",customizeSidebarData:e}}function $(e){return{type:"SET_SITEGEN_AI_ERROR_STATUS",siteGenErrorStatus:e}}function H(e){return{type:"SET_INTERACTION_DISABLED",interactionDisabled:e}}function W(e){return{type:"SET_FLOW_WITHOUT_AI",continueWithoutAi:e}}var U=n(6087),B=n(3832);function G(e){return e.drawer.view}function q(e){return e.drawer.isOpen}function j(e){return e.drawer.isSuppressed}function Q(e){return e.header.isNavigationEnabled}function K(e){return e.header.isEnabled}function Z(e){return e.header.headers}function Y(e){return e.footer.footers}function J(e){return e.header.view}function X(e){return e.footer.view}function ee(e){return e.footer.isNavAllowed}function te(e){return e.footer.hideFooterNav}function ne(e){return e.runtime.currentBrand.brand}function re(e){return e.runtime.currentBrand.name}function ae(e){return e.runtime.currentBrand.config}function ie(e){return e.runtime.currentBrand.url}function oe(e){const t=e.runtime.currentBrand.hireExpertsInfo;return(0,B.addQueryArgs)(t?.defaultLink,t?.queryParameters)+(t?.fragment||"")}function se(e){return e.data.flowData}function le(e){return e.data.socialData}function ce(e){var t;return null!==(t=e.runtime.currentFlow)&&void 0!==t?t:i.rA}function de(e){return e.flow.steps.routes}function ue(e){return e.flow.steps.allSteps}function pe(e){return e.flow.steps.topSteps}function me(e){return e.flow.steps.designRoutes}function he(e){return e.flow.steps.currentStep}function ge(e){return e.flow.steps.allSteps[0]}function fe(e){return e.flow.steps.allSteps[e.flow.steps.allSteps.length-1]}function we(e){return(0,U.filter)(e.flow.steps.allSteps,["path",e.flow.steps.currentStep])[0]}function be(e){return e.flow.chapter}function _e(e,t){return(0,U.filter)(e.flow.steps.allSteps,["path",t])[0]}function ve(e){const t=(0,U.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return 0===t?null:-1!==t&&e.flow.steps.allSteps[t-1]}function Ee(e){const t=e.flow.steps.allSteps.length-1,n=(0,U.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return t===n?null:-1!==n&&e.flow.steps.allSteps[n+1]}function ye(e){return e.sidebar.isOpen}function Se(e){return e.sidebar.view}function ke(e){return(0,U.filter)(e.sidebar.sidebars,["enabled",!0])}function Ce(e){return e.runtime.previewSettings.settings}function Ne(e){return e.settings}function Te(e){return e.settings.themeStatus}function xe(e){return e.settings.initialize}function Ae(e){return e.runtime.previewSettings.stepPreviewData}function De(e){return e.header.menu}function Pe(e){const t=e.runtime.currentBrand.expertsInfo;return(0,B.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Oe(e){const t=e.runtime.currentBrand.fullServiceCreativeTeamInfo;return(0,B.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Ie(e){const t=e.runtime.currentBrand.techSupportInfo;return(0,B.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Me(e){const t=e.runtime.currentBrand.migrationInfo;return(0,B.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Le(e){return e.runtime.pluginInstallHash}function ze(e){var t;return null!==(t=e?.queue[0])&&void 0!==t?t:null}function Re(e){return 0===e?.queue?.length}function Ve(e){return e.flow.steps.error.showDialog}function Fe(e){return e.flow.steps.error.continuePath}function $e(e){return e.data.flowData.data.wpComfortLevel}function He(e){return e.data.flowData.data.topPriority.priority1}function We(e){return e.runtime.currentUserDetails}const Ue=e=>e.data.isGeneratingHomepages;function Be(e){return e.runtime.customizeSidebarData}function Ge(e){return e.data.flowData.sitegen.siteGenErrorStatus}function qe(e){return e.flow.interactionDisabled}var je=n(7143),Qe=n(8969),Ke=n(7835),Ze=n(8468);const Ye=(0,Ze.lazy)((()=>n.e(202).then(n.bind(n,4202)))),Je=(0,Ze.lazy)((()=>n.e(356).then(n.bind(n,2356)))),Xe=(0,Ze.lazy)((()=>n.e(803).then(n.bind(n,8803)))),et=(0,Ze.lazy)((()=>n.e(910).then(n.bind(n,3910)))),tt=(0,Ze.lazy)((()=>n.e(40).then(n.bind(n,5040)))),nt=[{id:Qe.Qe,menu:Ye,sidebar:Je,enabled:!0},{id:Qe.V_,sidebar:Xe,enabled:!0},{id:Qe.jK,menu:et,sidebar:tt,enabled:!0}],rt=(0,Ze.lazy)((()=>n.e(403).then(n.bind(n,1403)))),at=(0,Ze.lazy)((()=>n.e(796).then(n.bind(n,5796)))),it=[{id:Qe.Ix,header:rt,enabled:!0},{id:Qe.Mw,header:at,enabled:!0}],ot=(0,Ze.lazy)((()=>n.e(971).then(n.bind(n,1971)))),st=[{id:Qe.Sr,footer:ot,enabled:!0}],lt={reducer:(0,je.combineReducers)({drawer:function(e={isOpen:!1,isSuppressed:!1,view:Qe.vO},t){switch(t.type){case"SET_DRAWER_OPENED":return{...e,isOpen:t.isOpen};case"SET_DRAWER_ACTIVE_VIEW":return{...e,view:t.view};case"SET_DRAWER_SUPPRESSED":return{...e,isSuppressed:t.isSuppressed,isOpen:!t.isSuppressed&&e.isOpen}}return e},runtime:function(e={},t){switch(t.type){case"SET_RUNTIME":return{...e,...t.runtime};case"SET_PREVIEW_SETTINGS":return{...e,previewSettings:{...e.previewSettings,settings:t.previewSettings}};case"CUSTOMIZE_SIDEBAR_DATA":return{...e,customizeSidebarData:t.customizeSidebarData}}return e},data:function(e={},t){switch(t.type){case"SET_CURRENT_DATA":return{...e,flowData:{...t.flowData}};case"SET_SOCIAL_DATA":return{...e,socialData:{...t.socialData}};case"SET_SITEGEN_AI_ERROR_STATUS":return{...e,flowData:{...e.flowData,sitegen:{...e.flowData.sitegen,siteGenErrorStatus:t.siteGenErrorStatus}}};case"SET_IS_GENERATING_HOMEPAGES":return{...e,isGeneratingHomepages:t.isGeneratingHomepages}}return e},settings:function(e={themeStatus:Qe.So,initialize:!1},t){switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings};case"UPDATE_THEME_STATUS":return{...e,themeStatus:t.themeStatus};case"UPDATE_INITIALIZE":return{...e,initialize:t.initialize}}return e},flow:function(e={flow:i.rA,steps:{routes:Ke.FI,allSteps:Ke.o2,topSteps:Ke.Zq,designRoutes:Ke.Tk,currentStep:"",error:{showDialog:!1,continuePath:""}},chapter:void 0,interactionDisabled:!1},t){switch(t.type){case"SET_ACTIVE_STEP":return{...e,steps:{...e.steps,currentStep:t.path}};case"SET_ACTIVE_FLOW":return{...e,flow:t.flow};case"UPDATE_ROUTES":return{...e,steps:{...e.steps,routes:t.routes}};case"UPDATE_ALL_STEPS":return{...e,steps:{...e.steps,allSteps:t.allSteps}};case"UPDATE_TOP_STEPS":return{...e,steps:{...e.steps,topSteps:t.topSteps}};case"UPDATE_DESIGN_ROUTES":return{...e,steps:{...e.steps,designRoutes:t.designRoutes}};case"SHOW_NAV_ERROR_DIALOG":return{...e,steps:{...e.steps,error:{...e.steps.error,showDialog:t.showDialog}}};case"SET_NAV_ERROR_CONTINUE_PATH":return{...e,steps:{...e.steps,error:{...e.steps.error,continuePath:t.continuePath}}};case"RESET_NAV_ERROR":return{...e,steps:{...e.steps,error:{showDialog:!1,continuePath:""}}};case"SET_ACTIVE_CHAPTER":return{...e,chapter:t.chapter};case"SET_INTERACTION_DISABLED":return{...e,interactionDisabled:t.interactionDisabled};case"SET_FLOW_WITHOUT_AI":return{...e,flow:t.continueWithoutAi}}return e},sidebar:function(e={isOpen:!1,view:"LearnMore",sidebars:nt},t){switch(t.type){case"SET_SIDEBAR_OPENED":return{...e,isOpen:t.isOpen};case"SET_SIDEBAR_ACTIVE_VIEW":return{...e,view:t.view}}return e},header:function(e={isNavigationEnabled:!0,menu:"",isEnabled:!0,headers:it,view:Qe.Mw},t){switch(t.type){case"SET_HEADER_NAVIGATION_ENABLED":return{...e,isNavigationEnabled:t.isNavigationEnabled};case"SET_HEADER_ENABLED":return{...e,isEnabled:t.isEnabled};case"UPDATE_HEADER_MENU_DATA":return{...e,menu:t.menu};case"SET_HEADER_ACTIVE_VIEW":return{...e,view:t.view}}return e},footer:function(e={footers:st,isNavAllowed:!0,hideFooterNav:!1,view:Qe.Sr},t){switch(t.type){case"SET_IS_FOOTER_NAV_ALLOWED":return{...e,isNavAllowed:t.isNavAllowed};case"SET_HIDE_FOOTER_NAV":return{...e,hideFooterNav:t.hideFooterNav};case"SET_FOOTER_ACTIVE_VIEW":return{...e,view:t.view}}return e},queue:function(e=[],t){switch(t.type){case"ENQUEUE_REQUEST":return e=e.filter((e=>e[0]!==t.id)),[...e,[t.id,t.request]];case"DEQUEUE_REQUEST":return[...e.slice(1)];case"FLUSH_QUEUE":return(async e=>{const t=e,n=async(e=1)=>{t[0]&&await t[0][1]().then((t=>{t.error&&e<Qe.db&&n(e+1)})).then((()=>t.shift())).then(n)};await n()})(e),[]}return e}}),actions:r,selectors:a},ct=(0,je.createReduxStore)("newfold/onboarding",lt);(0,je.register)(ct)},2202:(e,t,n)=>{"use strict";n.d(t,{$2:()=>x,$x:()=>A,DN:()=>g,Dl:()=>$,Ep:()=>p,Fi:()=>_,Hf:()=>O,N0:()=>o,Nz:()=>I,Qh:()=>C,Qp:()=>D,Rh:()=>N,TH:()=>M,Vg:()=>a,WN:()=>T,WT:()=>v,Wi:()=>P,XJ:()=>V,Zt:()=>w,aq:()=>c,cB:()=>L,cW:()=>R,ce:()=>m,f2:()=>E,ft:()=>F,gH:()=>l,hi:()=>u,j7:()=>y,k2:()=>d,o3:()=>f,oA:()=>i,p$:()=>r,r2:()=>h,rf:()=>b,uv:()=>z,vO:()=>s,vY:()=>S,wo:()=>k});const r="onboarding_started",a="onboarding_complete",i="pageview",o="onboarding_top_priority_set",s="onboarding_step_skipped",l="primary_type_set",c="secondary_type_set",d="experience_level_set",u="theme_style_selected",p="colors_selected",m="fonts_selected",h="header_selected",g="homepage_layout_selected",f="starter_pages_selected",w="feature_added",b="site_title_set",_="tagline_set",v="logo_added",E="onboarding_exited",y="onboarding_chapter_started",S="onboarding_chapter_complete",k="social_added",C="fork_option_selected",N="exp_fork_ai",T="site_details_prompt_set",x="social_connected",A="social_connect_skipped",D="logo_skipped",P="homepage_selected",O="homepage_regenerated",I="homepage_favorited",M="homepage_renamed",L="sidebar_opened",z="site_generation_time",R="error_state_triggered",V="wonder_start",F="experiment",$={[o]:"top_priority",[s]:"step",[l]:"primary_type",[c]:"secondary_type",[d]:"experience_level",[u]:"theme_style",[p]:"color_palette",[m]:"font_set",[h]:"header",[g]:"layout",[f]:"pages",[w]:"feature",[b]:"title",[_]:"tagline",[E]:"step",[y]:"chapter",[S]:"chapter",[k]:"platform",[C]:"flow",[N]:"label",[T]:"prompt",[x]:"platform",[P]:"version",[O]:"version",[I]:"version",[L]:"type",[M]:"version",[z]:"time"}},1056:(e,t,n)=>{"use strict";n.d(t,{iC:()=>i,Co:()=>l,SV:()=>s,v:()=>o});var r=n(4371),a=n(2202);class i extends r.c{constructor(e,t,n,r,i=a.XJ){const o=l(e);super(i,e,{label_key:o,[o]:t,...n,page:r||window.location.href},i)}}const o=e=>r.y.track(e),s=e=>r.y.send(e),l=e=>{if(e in a.Dl)return a.Dl[e]}},8674:(e,t,n)=>{"use strict";n.d(t,{EG:()=>i,fG:()=>a,zV:()=>o});var r=n(8969);const a=e=>`${r.Xi}/${e}`+(window.nfdOnboarding?.currentFlow?`&flow=${window.nfdOnboarding.currentFlow}`:""),i=e=>`${r.g5}/${e}`,o=e=>`${r.h0}/${e}`},5171:(e,t,n)=>{"use strict";n.d(t,{Im:()=>o,JK:()=>s,mj:()=>l});var r=n(1455),a=n.n(r),i=n(8674);const o=e=>0===Object.keys(e).length;async function s(){return a()({url:(0,i.zV)("settings")})}async function l(e){return a()({url:(0,i.zV)("settings"),method:"POST",data:e})}},6079:(e,t,n)=>{"use strict";n.d(t,{HR:()=>u,IS:()=>d,V1:()=>c,lv:()=>l});var r=n(5435),a=n(8674),i=n(1455),o=n.n(i);let s;async function l(){return await(0,r.h)(o()({url:(0,a.fG)("flow")}).then())}async function c(e){s&&s.abort("New setFlow request placed!"),s=new AbortController;const{signal:t}=s;return await(0,r.h)(o()({url:(0,a.fG)("flow"),signal:t,method:"POST",data:e}).then())}async function d(){return await(0,r.h)(o()({url:(0,a.fG)("flow/complete"),method:"POST"}).then())}async function u(e){return await(0,r.h)(o()({url:(0,a.fG)("flow/switch"),method:"POST",data:{flow:e}}).then())}},8520:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(5435),a=n(8674),i=n(1455),o=n.n(i);async function s(e=!1,t=!1){return await(0,r.h)(o()({url:(0,a.fG)("patterns"+(e?`&step=${e}&squash=${t}`:""))}).then())}},8559:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>c,YR:()=>u,ze:()=>d});var r=n(1455),a=n.n(r),i=n(8674),o=n(3272),s=n(5435),l=n(8969);const c=e=>{if((0,o.qn)(l.z3))return!0;a()({url:(0,i.fG)("plugins/initialize"),method:"POST",headers:{"X-NFD-INSTALLER":e||window.nfdOnboarding.pluginInstallHash}}).catch((e=>{console.error(e)}))},d=async()=>await(0,s.h)(a()({url:(0,i.fG)("plugins/site-features")}));async function u(){return await(0,s.h)(a()({url:(0,i.fG)("plugins/initialize/activate"),method:"POST"}).then())}},5435:(e,t,n)=>{"use strict";async function r(e){const t={body:null,error:null};try{t.body=await e}catch(e){t.error=e}return t}n.d(t,{h:()=>r})},2014:(e,t,n)=>{"use strict";n.d(t,{mt:()=>l,n_:()=>d,oc:()=>c});var r=n(1455),a=n.n(r),i=n(5435),o=n(8969),s=n(8674);async function l(){return await(0,i.h)(a()({url:(0,s.fG)("settings")}).then())}async function c(e){return await(0,i.h)(a()({url:(0,s.fG)("settings"),method:"POST",data:e}).then())}const d=(e=0)=>!(e>=o.lp)&&a()({url:(0,s.fG)("settings/initialize"),method:"POST"}).catch((()=>{d(e+=1)}))},7708:(e,t,n)=>{"use strict";n.d(t,{HA:()=>d,c7:()=>c,gK:()=>u,iQ:()=>l,kA:()=>s,rZ:()=>p});var r=n(1455),a=n.n(r),i=n(5435),o=n(8674);async function s(){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/identifiers")}).then())}async function l(e,t,n=!0){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/generate"),method:"POST",data:{site_info:e,identifier:t,skip_cache:n}}))}async function c(e){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/homepages"),method:"POST",data:{site_description:e}}).then())}async function d(e,t,n,r){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/homepages/regenerate"),method:"POST",data:{site_description:e,slug:t,palette:n,isFavorite:r}}).then())}async function u(){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/customize-data")}).then())}async function p(e){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/pages/sitemap"),method:"POST",data:{site_description:e}}).then())}},7517:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>c,_t:()=>g,ai:()=>d,kt:()=>f,oy:()=>m,qv:()=>h,w6:()=>p,xN:()=>u});var r=n(1455),a=n.n(r),i=n(8674),o=n(5435),s=n(3272),l=n(8969);const c=()=>{if((0,s.qn)(l.X0))return!0;a()({url:(0,i.fG)("themes/initialize"),method:"POST"}).catch((e=>{console.error(e)}))},d=async(e,t=!0,n=!0)=>"string"==typeof e&&await(0,o.h)(a()({url:(0,i.EG)("themes/install"),method:"POST",data:{theme:e,activate:t,queue:n}})),u=async(e,t=!0)=>"string"==typeof e&&await(0,o.h)(a()({url:(0,i.EG)("themes/expedite"),method:"POST",data:{theme:e,activate:t}})),p=async(e=!1)=>await(0,o.h)(a()({url:(0,i.fG)("themes/variations&variations="+e)}).then()),m=async e=>await(0,o.h)(a()({url:(0,i.fG)("themes/variations"),method:"POST",data:e}).then()),h=async e=>await(0,o.h)(a()({url:(0,i.EG)("themes/status"+(e?`&theme=${e}`:""))})),g=async()=>await(0,o.h)(a()({url:(0,i.fG)("themes/fonts")})),f=async()=>await(0,o.h)(a()({url:(0,i.fG)("themes/colors")}))},7225:(e,t,n)=>{"use strict";n.d(t,{AN:()=>v});var r=n(1609),a=n(6087),i=n(4997);const o=window.wp.styleEngine;var s=n(4715);function l(e,t={}){if(!e)return null;const{coerceTo:n,rootSizeValue:r,acceptableUnits:a}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=a?.join("|"),o=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),s=e.match(o);if(!s||s.length<3)return null;let[,l,c]=s,d=parseFloat(l);return"px"!==n||"em"!==c&&"rem"!==c||(d*=r,c=n),"px"!==c||"em"!==n&&"rem"!==n||(d/=r,c=n),{value:d,unit:c}}function c(e,t=3){return Number.isFinite(e)?parseFloat(e.toFixed(t)):void 0}const d="body",u=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["typography","fontSizes"],valueFunc:(e,{typography:t})=>function(e,t){const{size:n}=e;if(!0!==t?.fluid)return n;if(!1===e?.fluid)return n;const r=e?.fluid||{};let a=r?.min,i=r?.max;const o=l(n);return o?.unit?(a||(a=.75*o.value+o.unit),i||(i=1.5*o.value+o.unit),function({maximumViewPortWidth:e,minimumViewPortWidth:t,maximumFontSize:n,minimumFontSize:r,scaleFactor:a}){const i=l(r),o=i?.unit||"rem",s=l(n,{coerceTo:o});if(!i||!s)return null;const d=l(r,{coerceTo:"rem"}),u=l(e,{coerceTo:o}),p=l(t,{coerceTo:o});if(!u||!p||!d)return null;const m=c(p.value/100,3)+o;let h=(s.value-i.value)/(u.value-p.value)*100;h=c(h,3)||1;const g=h*a;return`clamp(${r}, ${d.value}${d.unit} + ((1vw - ${m}) * ${g}), ${n})`}({maximumViewPortWidth:"1600px",minimumViewPortWidth:"768px",maximumFontSize:i,minimumFontSize:a,scaleFactor:1})||n):n}(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],p={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function m(e){return e?.startsWith?.("var:")?`var(--wp--${e.slice(4).split("|").join("--")})`:e}function h(e={},t,n){let r=[];return Object.keys(e).forEach((i=>{const o=t+(0,a.kebabCase)(i.replace("/","-")),s=e[i];if(s instanceof Object){const e=o+n;r=[...r,...h(s,e,n)]}else r.push(`${o}: ${s}`)})),r}function g(e={},t="",n,r={}){const s=d===t,l=(0,a.reduce)(i.__EXPERIMENTAL_STYLE_PROPERTY,((t,{value:r,properties:i,rootOnly:o},l)=>{if(o&&!s)return t;const c=r;if("elements"===c[0])return t;const d=(0,a.get)(e,c);if("--wp--style--root--padding"===l&&("string"==typeof d||!n))return t;if(i&&"string"!=typeof d)Object.entries(i).forEach((e=>{const[n,r]=e;if(!(0,a.get)(d,[r],!1))return;const i=n.startsWith("--")?n:(0,a.kebabCase)(n);t.push(`${i}: ${m((0,a.get)(d,[r]))}`)}));else if((0,a.get)(e,c,!1)){const n=l.startsWith("--")?l:(0,a.kebabCase)(l);t.push(`${n}: ${m((0,a.get)(e,c))}`)}return t}),[]);return(0,o.getCSSRules)(e).forEach((e=>{if(s&&n&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:(0,a.kebabCase)(e.key);let i=e.value;if("string"!=typeof i&&i?.ref){const e=i.ref.split(".");if(i=(0,a.get)(r,e),!i||i?.ref)return}l.push(`${t}: ${i}`)})),l}const f=(e,t)=>{var n;const r=[];if(!e?.settings)return r;const i=e=>{const t={};return u.forEach((({path:n})=>{const r=(0,a.get)(e,n,!1);!1!==r&&(0,a.set)(t,n,r)})),t},o=i(e.settings),s=e.settings?.custom;return(0,a.isEmpty)(o)&&!s||r.push({presets:o,custom:s,selector:d}),Object.entries(null!==(n=e.settings?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{const o=i(n),s=n.custom;(0,a.isEmpty)(o)&&!s||r.push({presets:o,custom:s,selector:t[e].selector})})),r},w=(e,t)=>{const n=f(e,t);let r="";return n.forEach((({presets:t,custom:n,selector:i})=>{const o=function(e={},t){return(0,a.reduce)(u,((n,{path:r,valueKey:i,valueFunc:o,cssVarInfix:s})=>{const l=(0,a.get)(e,r,[]);return l&&Array.isArray(l)&&l.forEach((e=>{i&&!o?n.push(`--wp--preset--${s}--${(0,a.kebabCase)(e.slug)}: ${e[i]}`):o&&"function"==typeof o&&n.push(`--wp--preset--${s}--${(0,a.kebabCase)(e.slug)}: ${o(e,t)}`)})),n}),[])}(t,e?.settings),s=h(n,"--wp--custom--","--");s.length>0&&o.push(...s),o.length>0&&(r+=`${i}{${o.join(";")};}`)})),r},b=(e,t,n,r,o=!1)=>{const l=((e,t)=>{var n;const r=[];if(!e?.styles)return r;const o=e=>(0,a.pickBy)(e,((e,t)=>["border","color","spacing","typography","filter"].includes(t))),s=o(e.styles);return s&&r.push({styles:s,selector:d}),Object.entries(i.__EXPERIMENTAL_ELEMENTS).forEach((([t,n])=>{e.styles?.elements&&e.styles?.elements[t]&&r.push({styles:e.styles?.elements[t],selector:n})})),Object.entries(null!==(n=e.styles?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{var a;const s=o(n);s&&t?.[e]?.selector&&r.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:s,featureSelectors:t[e].featureSelectors}),Object.entries(null!==(a=n?.elements)&&void 0!==a?a:{}).forEach((([n,a])=>{a&&t?.[e]&&i.__EXPERIMENTAL_ELEMENTS?.[n]&&r.push({styles:a,selector:t[e].selector.split(",").map((e=>i.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),r})(e,t),c=f(e,t),p=e?.settings?.useRootPaddingAwareAlignments,{contentSize:m,wideSize:h}=e?.settings?.layout||{};let w="body {margin: 0;";if(m&&(w+=` --wp--style--global--content-size: ${m};`),h&&(w+=` --wp--style--global--wide-size: ${h};`),p&&(w+='padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) } \n\t\t\t .has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } \n\t\t\t .has-global-padding :where(.has-global-padding) { padding-right: 0; padding-left: 0; } \n\t\t\t .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); } \n\t\t\t .has-global-padding :where(.has-global-padding) > .alignfull { margin-right: 0; margin-left: 0; } \n\t\t\t .has-global-padding > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } \n\t\t\t .has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;'),w+="}",l.forEach((({selector:t,duotoneSelector:a,styles:i,fallbackGapValue:l,hasLayoutSupport:c,featureSelectors:u})=>{u&&Object.entries(u).forEach((([e,t])=>{if(i?.[e]){const n=g({[e]:i[e]});delete i[e],n.length&&(w+=`${t}{${n.join(";")} }`)}}));const m={};if(i?.filter&&(m.filter=i.filter,delete i.filter),a){const e=g(m);e.length>0&&(w+=`${a}{${e.join(";")};}`)}o||d!==t&&!c||(w+=function({tree:e,style:t,selector:n,hasBlockGapSupport:r,hasFallbackGapSupport:a,fallbackGapValue:i}){let o="",l=r?(0,s.__experimentalGetGapCSSValue)(t?.spacing?.blockGap):"";if(a&&(n===d?l=l||"0.5em":!r&&i&&(l=i)),l&&e?.settings?.layout?.definitions&&(Object.values(e.settings.layout.definitions).forEach((({className:e,name:t,spacingStyles:a})=>{(r||"flex"===t)&&a?.length&&a.forEach((t=>{const a=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{a.push(`${e}: ${t||l}`)})),a.length){let i="";i=r?n===d?`${n} .${e}${t?.selector||""}`:`${n}.${e}${t?.selector||""}`:n===d?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,o+=`${i} { ${a.join("; ")}; }`}}))})),n===d&&r&&(o+=`${n} { --wp--style--block-gap: ${l}; }`)),n===d&&e?.settings?.layout?.definitions){const t=["block","flex","grid"];Object.values(e.settings.layout.definitions).forEach((({className:e,displayMode:r,baseStyles:a})=>{r&&t.includes(r)&&(o+=`${n} .${e} { display:${r}; }`),a?.length&&a.forEach((t=>{const r=[];t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t}`)})),r.length&&(o+=`${n} .${e}${t?.selector||""} { ${r.join("; ")}; }`)}))}))}return o}({tree:e,style:i,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:r,fallbackGapValue:l}));const h=g(i,t,p,e);h?.length&&(w+=`${t}{${h.join(";")};}`);const f=Object.entries(i).filter((([e])=>e.startsWith(":")));f?.length&&f.forEach((([e,n])=>{const r=g(n);if(!r?.length)return;const a=`${t.split(",").map((t=>t+e)).join(",")}{${r.join(";")};}`;w+=a}))})),w+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",w+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",w+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",!o&&n){const t=(0,s.__experimentalGetGapCSSValue)(e?.styles?.spacing?.blockGap)||"0.5em";w+=".wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }",w+=`.wp-site-blocks > * + * { margin-block-start: ${t}; }`}return c.forEach((({selector:e,presets:t})=>{d===e&&(e="");const n=function(e,t={}){return(0,a.reduce)(u,((n,{path:r,cssVarInfix:i,classes:o})=>{if(!o)return n;const s=(0,a.get)(t,r,[]);return s&&Array.isArray(s)&&s.forEach((({slug:t})=>{o.forEach((({classSuffix:r,propertyName:o})=>{const s=`.has-${(0,a.kebabCase)(t)}-${r}`,l=e.split(",").map((e=>`${e}${s}`)).join(","),c=`var(--wp--preset--${i}--${(0,a.kebabCase)(t)})`;n+=`${l}{${o}: ${c} !important;}`}))})),n}),"")}(e,t);(0,a.isEmpty)(n)||(w+=n)})),w};const _=e=>{const t={};return e.forEach((e=>{var n,r;const a=e.name,i=null!==(n=e?.supports?.__experimentalSelector)&&void 0!==n?n:".wp-block-"+a.replace("core/","").replace("/","-"),o=null!==(r=e?.supports?.color?.__experimentalDuotone)&&void 0!==r?r:null,s=!!e?.supports?.__experimentalLayout,l=e?.supports?.spacing?.blockGap?.__experimentalDefault,c={};Object.entries(p).forEach((([t,n])=>{const r=e?.supports?.[t]?.__experimentalSelector;r&&(c[n]=function(e,t){const n=e.split(","),r=t.split(","),a=[];return n.forEach((e=>{r.forEach((t=>{a.push(`${e.trim()} ${t.trim()}`)}))})),a.join(", ")}(i,r))})),t[a]={duotoneSelector:o,fallbackGapValue:l,featureSelectors:Object.keys(c).length?c:void 0,hasLayoutSupport:s,name:a,selector:i}})),t};function v(e,t){const n=t.settings.__experimentalFeatures.spacing.blockGap,o=!n,l=!t.settings?.disableLayoutStyles||t.settings.disableLayoutStyles;if(!e?.styles&&!e?.settings&&!e?.globalStyles)return;const c={settings:e.settings,styles:e?.globalStyles?e.globalStyles:e.styles},d=_((0,i.getBlockTypes)()),p=w(c,d),m=b(c,d,n,o,l),h=function(e,t){return f(e,t).flatMap((({presets:e})=>function(e={}){return u.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=(0,a.get)(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>(0,r.createElement)(s.__unstablePresetDuotoneFilter,{preset:e,key:e.slug})))))}))}(e)))}(c,d),g=[...t.settings.styles.filter((e=>!(e.hasOwnProperty("id")&&("customProperty"===e.id||"globalStyle"===e.id)))),{id:"customProperty",css:p,isGlobalStyles:!0},{id:"globalStyle",css:m,isGlobalStyles:!0},{assets:h,__unstableType:"svg",isGlobalStyles:!0}];return e.settings.styles=g,e.settings.__unstableResolvedAssets=t.settings.__unstableResolvedAssets,e.settings.__experimentalFeatures=t.settings.__experimentalFeatures,e}},3272:(e,t,n)=>{"use strict";n.d(t,{g2:()=>s,qm:()=>o,qn:()=>i});var r=n(3832),a=n(6087);const i=e=>new URLSearchParams(window.location.search).get(e),o=(e,t)=>(0,r.hasQueryArg)(e,t)?(0,r.removeQueryArgs)(e,t):e,s=e=>(0,a.transform)(e,((e,t,n)=>{e[(0,a.snakeCase)(n)]=t}))},3474:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(8744),a=n(7723);const i={[r.rA]:{site:{noun:(0,a._x)("site","noun","wp-module-onboarding")},website:{noun:(0,a._x)("website","noun","wp-module-onboarding")}},[r.eS]:{site:{noun:(0,a._x)("store","noun","wp-module-onboarding")},website:{noun:(0,a._x)("store","noun","wp-module-onboarding")}},[r.d0]:{site:{noun:(0,a._x)("site","noun","wp-module-onboarding")},website:{noun:(0,a._x)("website","noun","wp-module-onboarding")}}},o=(e,t="noun")=>{const n=window?.nfdOnboarding?.currentFlow||r.rA,a=i[n][e.toLowerCase()][t];return e===e.toUpperCase()?a.toUpperCase():e[0]===e[0].toUpperCase()?a[0].toUpperCase()+a.substring(1):a}},8969:(e,t,n)=>{"use strict";n.d(t,{$P:()=>ie,At:()=>ee,CL:()=>k,Cx:()=>_,EF:()=>re,Er:()=>Y,F4:()=>te,HJ:()=>S,Ie:()=>ue,Ix:()=>I,KJ:()=>b,KK:()=>L,KZ:()=>V,L5:()=>ce,Mw:()=>O,PE:()=>v,Qe:()=>D,Qs:()=>x,R0:()=>h,R2:()=>ne,SF:()=>l,SJ:()=>y,SQ:()=>J,So:()=>Q,Sr:()=>M,St:()=>T,VG:()=>f,V_:()=>A,Vw:()=>le,W6:()=>oe,WH:()=>B,X0:()=>q,Xi:()=>u,ZH:()=>o,db:()=>W,eT:()=>i,eY:()=>N,f1:()=>j,fO:()=>Z,fS:()=>se,g5:()=>p,gR:()=>X,gb:()=>$,h0:()=>d,iQ:()=>E,jK:()=>P,jN:()=>de,lf:()=>C,lp:()=>U,me:()=>R,mp:()=>K,nK:()=>z,qy:()=>ae,vO:()=>g,vd:()=>F,yY:()=>w,z3:()=>G,zm:()=>H});var r,a=n(3832);const i="nfd-onboarding",o="object"==typeof window?.nfdOnboarding&&"buildUrl"in window.nfdOnboarding,s=window.nfdOnboarding.adminUrl,l=window.nfdOnboarding.siteUrl,c=window.nfdOnboarding.restUrl,d=`${c}/wp/v2`,u=`${c}/newfold-onboarding/v1`,p=`${c}/newfold-installer/v1`,m=(0,a.addQueryArgs)(`${s}index.php`,window.nfdOnboarding.currentBrand?.dashboardRedirectParams),h=null!==(r=(0,a.addQueryArgs)(window.nfdOnboarding.currentBrand?.pluginDashboardPage,window.nfdOnboarding.currentBrand?.dashboardRedirectParams))&&void 0!==r?r:m,g="nav-primary",f="nav-design",w="nav-page",b="design-themes",_="design-theme-styles-menu",v="design-theme-styles-preview",E="design-colors",y="design-fonts",S="design-header-menu",k="design-homepage-menu",C="nav-get-started",N="nav-ecommerce-store-info",T="Sidebar",x="HeaderMenu",A="SitegenEditorPatterns",D="LearnMore",P="Customize",O="HeaderSiteBuild",I="HeaderSiteGen",M="FooterSiteGen",L="HeaderTop",z="HeaderStart",R="HeaderCenter",V="HeaderEnd",F="FooterStart",$="FooterEnd",H=2,W=2,U=2,B=2,G="nfd_plugins",q="nfd_themes",j="nfd_slug_yith_wonder",Q="init",K="inactive",Z="installing",Y="activated",J="failed",X="demographic",ee="commerce",te="design",ne="layout_and_content",re="features",ae="core",ie="design",oe="features",se="dark",le="light",ce={SET_FLOW:"SET_FLOW",SET_GLOBAL_STYLES:"SET_GLOBAL_STYLES"},de=20,ue="database_update_failed"},1003:(e,t,n)=>{"use strict";n.d(t,{I9:()=>m,k2:()=>w});var r=n(1609);const a=window.ReactDOM;var i=n(148),o=n(5588);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const c=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],d=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}const u=r.createContext({isTransitioning:!1});new Map;const p=r.startTransition;function m(e){let{basename:t,children:n,future:a,window:s}=e,l=r.useRef();null==l.current&&(l.current=(0,o.TM)({window:s,v5Compat:!0}));let c=l.current,[d,u]=r.useState({action:c.action,location:c.location}),{v7_startTransition:m}=a||{},h=r.useCallback((e=>{m&&p?p((()=>u(e))):u(e)}),[u,m]);return r.useLayoutEffect((()=>c.listen(h)),[c,h]),r.createElement(i.Ix,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:c,future:a})}a.flushSync,r.useId;const h="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,g=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,f=r.forwardRef((function(e,t){let n,{onClick:a,relative:d,reloadDocument:u,replace:p,state:m,target:f,to:w,preventScrollReset:b,unstable_viewTransition:_}=e,v=l(e,c),{basename:E}=r.useContext(i.jb),y=!1;if("string"==typeof w&&g.test(w)&&(n=w,h))try{let e=new URL(window.location.href),t=w.startsWith("//")?new URL(e.protocol+w):new URL(w),n=(0,o.pb)(t.pathname,E);t.origin===e.origin&&null!=n?w=n+t.search+t.hash:y=!0}catch(e){}let S=(0,i.$P)(w,{relative:d}),k=function(e,t){let{target:n,replace:a,state:s,preventScrollReset:l,relative:c,unstable_viewTransition:d}=void 0===t?{}:t,u=(0,i.Zp)(),p=(0,i.zy)(),m=(0,i.x$)(e,{relative:c});return r.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==a?a:(0,o.AO)(p)===(0,o.AO)(m);u(e,{replace:n,state:s,preventScrollReset:l,relative:c,unstable_viewTransition:d})}}),[p,u,m,a,s,n,e,l,c,d])}(w,{replace:p,state:m,target:f,preventScrollReset:b,relative:d,unstable_viewTransition:_});return r.createElement("a",s({},v,{href:n||S,onClick:y||u?a:function(e){a&&a(e),e.defaultPrevented||k(e)},ref:t,target:f}))})),w=r.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:a=!1,className:c="",end:p=!1,style:m,to:h,unstable_viewTransition:g,children:w}=e,_=l(e,d),v=(0,i.x$)(h,{relative:_.relative}),E=(0,i.zy)(),y=r.useContext(i.Rq),{navigator:S,basename:k}=r.useContext(i.jb),C=null!=y&&function(e,t){void 0===t&&(t={});let n=r.useContext(u);null==n&&(0,o.Oi)(!1);let{basename:a}=function(e){let t=r.useContext(i.sp);return t||(0,o.Oi)(!1),t}(b.useViewTransitionState),s=(0,i.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=(0,o.pb)(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=(0,o.pb)(n.nextLocation.pathname,a)||n.nextLocation.pathname;return null!=(0,o.B6)(s.pathname,c)||null!=(0,o.B6)(s.pathname,l)}(v)&&!0===g,N=S.encodeLocation?S.encodeLocation(v).pathname:v.pathname,T=E.pathname,x=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;a||(T=T.toLowerCase(),x=x?x.toLowerCase():null,N=N.toLowerCase()),x&&k&&(x=(0,o.pb)(x,k)||x);const A="/"!==N&&N.endsWith("/")?N.length-1:N.length;let D,P=T===N||!p&&T.startsWith(N)&&"/"===T.charAt(A),O=null!=x&&(x===N||!p&&x.startsWith(N)&&"/"===x.charAt(N.length)),I={isActive:P,isPending:O,isTransitioning:C},M=P?n:void 0;D="function"==typeof c?c(I):[c,P?"active":null,O?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let L="function"==typeof m?m(I):m;return r.createElement(f,s({},_,{"aria-current":M,className:D,ref:t,style:L,to:h,unstable_viewTransition:g}),"function"==typeof w?w(I):w)}));var b,_;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(b||(b={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(_||(_={}))},148:(e,t,n)=>{"use strict";n.d(t,{$P:()=>p,BV:()=>A,Ix:()=>x,Rq:()=>s,Zp:()=>f,jb:()=>l,qh:()=>T,sp:()=>o,x$:()=>w,zy:()=>h});var r=n(1609),a=n(5588);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}const o=r.createContext(null),s=r.createContext(null),l=r.createContext(null),c=r.createContext(null),d=r.createContext({outlet:null,matches:[],isDataRoute:!1}),u=r.createContext(null);function p(e,t){let{relative:n}=void 0===t?{}:t;m()||(0,a.Oi)(!1);let{basename:i,navigator:o}=r.useContext(l),{hash:s,pathname:c,search:d}=w(e,{relative:n}),u=c;return"/"!==i&&(u="/"===c?i:(0,a.HS)([i,c])),o.createHref({pathname:u,search:d,hash:s})}function m(){return null!=r.useContext(c)}function h(){return m()||(0,a.Oi)(!1),r.useContext(c).location}function g(e){r.useContext(l).static||r.useLayoutEffect(e)}function f(){let{isDataRoute:e}=r.useContext(d);return e?function(){let{router:e}=function(e){let t=r.useContext(o);return t||(0,a.Oi)(!1),t}(S.UseNavigateStable),t=C(k.UseNavigateStable),n=r.useRef(!1);return g((()=>{n.current=!0})),r.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,i({fromRouteId:t},a)))}),[e,t])}():function(){m()||(0,a.Oi)(!1);let e=r.useContext(o),{basename:t,future:n,navigator:i}=r.useContext(l),{matches:s}=r.useContext(d),{pathname:c}=h(),u=JSON.stringify((0,a.yD)(s,n.v7_relativeSplatPath)),p=r.useRef(!1);return g((()=>{p.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!p.current)return;if("number"==typeof n)return void i.go(n);let o=(0,a.Gh)(n,JSON.parse(u),c,"path"===r.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:(0,a.HS)([t,o.pathname])),(r.replace?i.replace:i.push)(o,r.state,r)}),[t,i,u,c,e])}()}function w(e,t){let{relative:n}=void 0===t?{}:t,{future:i}=r.useContext(l),{matches:o}=r.useContext(d),{pathname:s}=h(),c=JSON.stringify((0,a.yD)(o,i.v7_relativeSplatPath));return r.useMemo((()=>(0,a.Gh)(e,JSON.parse(c),s,"path"===n)),[e,c,s,n])}function b(e,t,n,o){m()||(0,a.Oi)(!1);let{navigator:s}=r.useContext(l),{matches:u}=r.useContext(d),p=u[u.length-1],g=p?p.params:{},f=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let w,b=h();if(t){var _;let e="string"==typeof t?(0,a.Rr)(t):t;"/"===f||(null==(_=e.pathname)?void 0:_.startsWith(f))||(0,a.Oi)(!1),w=e}else w=b;let S=w.pathname||"/",k=S;if("/"!==f){let e=f.replace(/^\//,"").split("/");k="/"+S.replace(/^\//,"").split("/").slice(e.length).join("/")}let C=(0,a.ue)(e,{pathname:k}),T=function(e,t,n,i){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let l=e,c=null==(o=n)?void 0:o.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&(null==c?void 0:c[e.route.id])));e>=0||(0,a.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let d=!1,u=-1;if(n&&i&&i.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){d=!0,l=u>=0?l.slice(0,u+1):[l[0]];break}}}return l.reduceRight(((e,a,i)=>{let o,s=!1,p=null,m=null;var h;n&&(o=c&&a.route.id?c[a.route.id]:void 0,p=a.route.errorElement||v,d&&(u<0&&0===i?(N[h="route-fallback"]||(N[h]=!0),s=!0,m=null):u===i&&(s=!0,m=a.route.hydrateFallbackElement||null)));let g=t.concat(l.slice(0,i+1)),f=()=>{let t;return t=o?p:s?m:a.route.Component?r.createElement(a.route.Component,null):a.route.element?a.route.element:e,r.createElement(y,{match:a,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===i)?r.createElement(E,{location:n.location,revalidation:n.revalidation,component:p,error:o,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()}),null)}(C&&C.map((e=>Object.assign({},e,{params:Object.assign({},g,e.params),pathname:(0,a.HS)([f,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:(0,a.HS)([f,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),u,n,o);return t&&T?r.createElement(c.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},w),navigationType:a.rc.Pop}},T):T}function _(){let e=function(){var e;let t=r.useContext(u),n=function(e){let t=r.useContext(s);return t||(0,a.Oi)(!1),t}(k.UseRouteError),i=C(k.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[i]}(),t=(0,a.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:i},n):null,null)}const v=r.createElement(_,null);class E extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(d.Provider,{value:this.props.routeContext},r.createElement(u.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function y(e){let{routeContext:t,match:n,children:a}=e,i=r.useContext(o);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(d.Provider,{value:t},a)}var S=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(S||{}),k=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(k||{});function C(e){let t=function(e){let t=r.useContext(d);return t||(0,a.Oi)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,a.Oi)(!1),n.route.id}const N={};function T(e){(0,a.Oi)(!1)}function x(e){let{basename:t="/",children:n=null,location:o,navigationType:s=a.rc.Pop,navigator:d,static:u=!1,future:p}=e;m()&&(0,a.Oi)(!1);let h=t.replace(/^\/*/,"/"),g=r.useMemo((()=>({basename:h,navigator:d,static:u,future:i({v7_relativeSplatPath:!1},p)})),[h,p,d,u]);"string"==typeof o&&(o=(0,a.Rr)(o));let{pathname:f="/",search:w="",hash:b="",state:_=null,key:v="default"}=o,E=r.useMemo((()=>{let e=(0,a.pb)(f,h);return null==e?null:{location:{pathname:e,search:w,hash:b,state:_,key:v},navigationType:s}}),[h,f,w,b,_,v,s]);return null==E?null:r.createElement(l.Provider,{value:g},r.createElement(c.Provider,{children:n,value:E}))}function A(e){let{children:t,location:n}=e;return b(D(t),n)}function D(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,i)=>{if(!r.isValidElement(e))return;let o=[...t,i];if(e.type===r.Fragment)return void n.push.apply(n,D(e.props.children,o));e.type!==T&&(0,a.Oi)(!1),e.props.index&&e.props.children&&(0,a.Oi)(!1);let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=D(e.props.children,o)),n.push(s)})),n}r.startTransition,new Promise((()=>{})),r.Component},1609:e=>{"use strict";e.exports=window.React},6087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},4715:e=>{"use strict";e.exports=window.wp.blockEditor},4997:e=>{"use strict";e.exports=window.wp.blocks},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},3582:e=>{"use strict";e.exports=window.wp.coreData},7143:e=>{"use strict";e.exports=window.wp.data},8107:e=>{"use strict";e.exports=window.wp.dom},8468:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},8558:e=>{"use strict";e.exports=window.wp.keycodes},5573:e=>{"use strict";e.exports=window.wp.primitives},3832:e=>{"use strict";e.exports=window.wp.url},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,a),i.exports}a.m=n,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>e+".js",a.miniCssF=e=>e+".css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="newfold.Onboarding:",a.l=(n,r,i,o)=>{if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+i){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var p=(t,r)=>{s.onerror=s.onload=null,clearTimeout(m);var a=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(r))),t)return t(r)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{if("undefined"!=typeof document){var e={352:0};a.f.miniCss=(t,n)=>{e[t]?n.push(e[t]):0!==e[t]&&{100:1,396:1}[t]&&n.push(e[t]=(e=>new Promise(((t,n)=>{var r=a.miniCssF(e),i=a.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var a=(o=n[r]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===t))return o}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var o;if((a=(o=i[r]).getAttribute("data-href"))===e||a===t)return o}})(r,i))return t();((e,t,n,r,a)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)r();else{var o=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=s,i.parentNode&&i.parentNode.removeChild(i),a(l)}},i.href=t,document.head.appendChild(i)})(e,i,0,t,n)})))(t).then((()=>{e[t]=0}),(n=>{throw delete e[t],n})))}}})(),(()=>{var e={352:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,a)=>r=e[t]=[n,a]));n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,l]=n,c=0;if(o.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);c<o.length;c++)i=o[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i={};(()=>{"use strict";a.r(i);var e={};a.r(e),a.d(e,{closeModal:()=>N,disableComplementaryArea:()=>_,enableComplementaryArea:()=>b,openModal:()=>C,pinItem:()=>v,setDefaultComplementaryArea:()=>w,setFeatureDefaults:()=>k,setFeatureValue:()=>S,toggleFeature:()=>y,unpinItem:()=>E});var t={};a.r(t),a.d(t,{getActiveComplementaryArea:()=>T,isComplementaryAreaLoading:()=>x,isFeatureActive:()=>D,isItemPinned:()=>A,isModalActive:()=>P});var n=a(8969);const r=window.wp.domReady;var o=a.n(r);const s=window.wp.blockLibrary;var l=a(1609),c=a(7675),d=a(6079),u=a(8468);const p=({isActive:e})=>((0,u.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,u.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);var m=a(7143);const h=window.wp.deprecated;var g=a.n(h);const f=window.wp.preferences,w=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),b=(e,t)=>({registry:n,dispatch:r})=>{t&&(n.select(f.store).get(e,"isComplementaryAreaVisible")||n.dispatch(f.store).set(e,"isComplementaryAreaVisible",!0),r({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t}))},_=e=>({registry:t})=>{t.select(f.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(f.store).set(e,"isComplementaryAreaVisible",!1)},v=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(f.store).get(e,"pinnedItems");!0!==r?.[t]&&n.dispatch(f.store).set(e,"pinnedItems",{...r,[t]:!0})},E=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(f.store).get(e,"pinnedItems");n.dispatch(f.store).set(e,"pinnedItems",{...r,[t]:!1})};function y(e,t){return function({registry:n}){g()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(f.store).toggle(e,t)}}function S(e,t,n){return function({registry:r}){g()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),r.dispatch(f.store).set(e,t,!!n)}}function k(e,t){return function({registry:n}){g()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(f.store).setDefaults(e,t)}}function C(e){return{type:"OPEN_MODAL",name:e}}function N(){return{type:"CLOSE_MODAL"}}const T=(0,m.createRegistrySelector)((e=>(t,n)=>{const r=e(f.store).get(n,"isComplementaryAreaVisible");if(void 0!==r)return!1===r?null:t?.complementaryAreas?.[n]})),x=(0,m.createRegistrySelector)((e=>(t,n)=>{const r=e(f.store).get(n,"isComplementaryAreaVisible"),a=t?.complementaryAreas?.[n];return r&&void 0===a})),A=(0,m.createRegistrySelector)((e=>(t,n,r)=>{var a;const i=e(f.store).get(n,"pinnedItems");return null===(a=i?.[r])||void 0===a||a})),D=(0,m.createRegistrySelector)((e=>(t,n,r)=>(g()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(f.store).get(n,r))));function P(e,t){return e.activeModal===t}const O=(0,m.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return e[n]?e:{...e,[n]:r}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return{...e,[n]:r}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),I=(0,m.createReduxStore)("core/interface",{reducer:O,actions:e,selectors:t});(0,m.register)(I);var M=a(6427),L=a(1032);const z=()=>(0,l.createElement)(u.Fragment,null,(0,l.createElement)(p,{isActive:!0}),(0,l.createElement)(M.SlotFillProvider,null,(0,l.createElement)(L.Iy,null)));var R=a(1003),V=a(7835),F=a(6188);const $=()=>(0,l.createElement)(R.I9,null,(0,l.createElement)(z,null));var H=a(4371),W=a(8674),U=a(2202);n.ZH?o()((()=>{H.y.initialize({namespace:U.XJ,urls:{single:(0,W.fG)("events"),batch:(0,W.fG)("events/batch")},settings:{debounce:{time:3e3}}}),H.y.initialize({namespace:U.ft,urls:{single:(0,W.fG)("events"),batch:(0,W.fG)("events/batch")},settings:{debounce:{time:3e3}}}),async function(e,t){const r=document.getElementById(e);(0,m.dispatch)(c.M).setRuntime(t),t.previewSettings.settings.preRequisites?.themes&&(0,m.dispatch)(c.M).updateThemeStatus(t.previewSettings.settings.preRequisites?.themes[n.f1]);const a=await(0,d.lv)();null===a.error&&(a.body=(e=>{e.hasExited=0,e.isComplete=0;const t=window.nfdOnboarding.currentFlow;return e.data.chapters=(0,F.AZ)((0,V.Pq)(t),e.data.chapters),e})(a.body),(0,m.dispatch)(c.M).setCurrentOnboardingData(a.body)),null!==r&&void 0!==u.render?(0,u.render)((0,l.createElement)($,null),r):console.log("Could not find mount element or wp.element.render().")}(n.eT,window.nfdOnboarding),(0,s.registerCoreBlocks)()})):console.log("Cannot find Newfold Onboarding runtime data to set __webpack_public_path__.")})(),((window.newfold=window.newfold||{}).Onboarding=window.newfold.Onboarding||{}).onboarding=i})(); Save