diff --git a/bootstrap.php b/bootstrap.php index 417bb7c42..f10df212a 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -22,7 +22,7 @@ function nfd_wp_module_onboarding_register() { // Set Global Constants if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) { - define( 'NFD_ONBOARDING_VERSION', '1.6.1' ); + define( 'NFD_ONBOARDING_VERSION', '1.7.0' ); } if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) { define( 'NFD_ONBOARDING_DIR', __DIR__ ); diff --git a/build/1.6.1/155.js b/build/1.6.1/155.js deleted file mode 100644 index 7ce5a87c0..000000000 --- a/build/1.6.1/155.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[155],{9519:(e,a,n)=>{n.d(a,{Z:()=>d});var o=n(9307);const d=(0,o.memo)((e=>{let{heading:a,subHeading:n,question:d}=e;return(0,o.createElement)("div",null,a&&(0,o.createElement)("h2",{className:"nfd-step-card-heading"},a),n&&(0,o.createElement)("h3",{className:d?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),d&&(0,o.createElement)("h3",{className:"nfd-step-card-question"},d))}))},4401:(e,a,n)=>{n.d(a,{V:()=>t});var o=n(9307),d=n(5791),c=n(4316),m=n(950);const t=e=>{let{title:a,subtitle:n,error:t}=e;return(0,o.createElement)(d.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,o.createElement)(c.Z,{title:a,subtitle:n}),(0,o.createElement)("div",{className:"step-error-state__logo"}),(0,o.createElement)("h3",{className:"step-error-state__error"},t),(0,o.createElement)(m.Z,null))}},4316:(e,a,n)=>{n.d(a,{Z:()=>d});var o=n(9307);const d=e=>{let{title:a,subtitle:n,children:d}=e;return(0,o.createElement)("div",{className:"nfd-main-heading"},(0,o.createElement)("h2",{className:"nfd-main-heading__title"},a),n&&(0,o.createElement)("h3",{className:"nfd-main-heading__subtitle"},n),d)}},5791:(e,a,n)=>{n.d(a,{Z:()=>C});var o=n(9307),d=n(4184),c=n.n(d),m=n(5158),t=n(9250),r=n(2200),i=n(6989),s=n.n(i),l=n(4704);const u=e=>{let{className:a="nfd-onboarding-layout__base",children:n}=e;const d=(0,t.TH)(),i=document.querySelector(".nfd-onboard-content");return(0,o.useEffect)((()=>{null==i||i.focus({preventScroll:!0}),function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,m.speak)(a,"assertive")}(d,"Override"),new class{constructor(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=a}send(){s()({url:(0,l.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${r.Db}-pageview`,{stepID:d.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=d.pathname}),[d.pathname]),(0,o.createElement)("div",{className:c()("nfd-onboarding-layout",a)},n)};var S=n(682);const h=e=>{let{children:a}=e;return(0,o.createElement)("section",{className:"is-contained"},a)},C=e=>{let{className:a="",children:n,isBgPrimary:d=!1,isCentered:m=!1,isVerticallyCentered:t=!1,isContained:r=!1,isPadded:i=!1,isFadeIn:s=!0}=e;const l=r?h:o.Fragment;return(0,o.createElement)(S.Z,{type:s&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,o.createElement)(u,{className:c()("nfd-onboarding-layout__common",a,{"is-bg-primary":d},{"is-centered":m},{"is-vertically-centered":t},{"is-padded":i})},(0,o.createElement)(l,null,n)))}},7004:(e,a,n)=>{n.d(a,{L:()=>i,Y:()=>t});var o=n(9307),d=n(5791),c=n(4316),m=n(950);const t=e=>{let{title:a,subtitle:n}=e;return(0,o.createElement)(d.Z,{className:"step-loader",isVerticallyCentered:!0},(0,o.createElement)(c.Z,{title:a,subtitle:n}),(0,o.createElement)("div",{className:"step-loader__logo-container"},(0,o.createElement)("div",{className:"step-loader__logo"})),(0,o.createElement)(m.Z,null))};var r=n(682);const i=()=>(0,o.createElement)("div",{className:"image-upload-loader--loading-box"},(0,o.createElement)(r.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,a,n)=>{n.d(a,{Z:()=>t});var o=n(9307),d=n(4106),c=n(9818),m=n(5736);const t=e=>{let{question:a=(0,m.__)("Need Help?","wp-module-onboarding"),urlLabel:n=(0,m.__)("Hire our Experts","wp-module-onboarding")}=e;const t=(0,c.select)(d.h).getHireExpertsUrl();return t&&(0,o.createElement)("div",{className:"nfd-card-need-help-tag"},a,(0,o.createElement)("a",{href:t,target:"_blank",rel:"noreferrer"},n))}},349:(e,a,n)=>{n.d(a,{Z:()=>m});var o=n(9307),d=(n(5736),n(4184)),c=n.n(d);const m=e=>{let{className:a="",children:n}=e;return(0,o.createElement)("div",{className:c()("nfd-onboarding-large-card",a)},n)}},1340:(e,a,n)=>{n.d(a,{U:()=>S,g:()=>T});var o=n(9307),d=n(9818),c=n(4333),m=n(5736),t=n(7004),r=n(4106),i=n(7625),s=n(2200),l=n(4401);var u=n(1589);const S=e=>{let{children:a,navigationStateCallback:n=!1}=e;const S=(0,c.useViewportMatch)("medium"),{storedThemeStatus:h,brandName:C}=(0,d.useSelect)((e=>({storedThemeStatus:e(r.h).getThemeStatus(),brandName:e(r.h).getNewfoldBrandName()})),[]),T=(e=>({loader:{title:(0,m.sprintf)( -/* translators: %s: Brand */ -(0,m.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,m.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,m.sprintf)( -/* translators: %s: Brand */ -(0,m.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,m.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,m.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(C),{updateThemeStatus:g,setIsDrawerOpened:A,setIsDrawerSuppressed:B,setIsHeaderNavigationEnabled:N}=(0,d.useDispatch)(r.h),M=async()=>{const e=await(0,i.YL)(s.DY);return null!=e&&e.error?s.vv:e.body.status},G=()=>{switch(h){case s.Rq:case s.GV:return(()=>{if("function"==typeof n)return n();S&&A(!0),B(!1),N(!0)})();default:A(!1),B(!0),N(!1)}};(0,o.useEffect)((()=>{G(),h===s.a0&&(async()=>{const e=await M();switch(e){case s.Zh:setTimeout((async()=>{if(await M()!==s.GV)return g(s.vv);window.location.reload()}),s.YU);break;case s.GV:window.location.reload();break;default:g(e)}})()}),[h]);const D=async()=>(g(s.Zh),(await(0,i.N9)(s.DY,!0,!1)).error?g(s.Rq):window.location.reload());return(0,o.createElement)(o.Fragment,null,(()=>{switch(h){case s.vv:return(0,o.createElement)(u.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,m.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,m.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:D,modalExitButtonText:(0,m.__)("Exit to WordPress","wp-module-onboarding")});case s.Rq:return(0,o.createElement)(l.V,{title:T.errorState.title,subtitle:T.errorState.subtitle,error:T.errorState.error});case s.GV:return a;default:return(0,o.createElement)(t.Y,{title:T.loader.title,subtitle:T.loader.subtitle})}})())};var h=n(3421),C=n(1392);const T=e=>{let{children:a,navigationStateCallback:n=!1}=e;const i=(0,c.useViewportMatch)("medium"),[u,S]=(0,o.useState)(s.Sr),{storedPluginsStatus:T,brandName:g}=(0,d.useSelect)((e=>({storedPluginsStatus:e(r.h).getPluginsStatus(),brandName:e(r.h).getNewfoldBrandName()})),[]),A=(e=>({loader:{title:(0,m.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,m.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,C.I)("Site")),subtitle:(0,m.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,m.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,m.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,C.I)("Site")),subtitle:(0,m.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,m.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(g),{updatePluginsStatus:B,setIsDrawerOpened:N,setIsDrawerSuppressed:M,setIsHeaderNavigationEnabled:G}=(0,d.useDispatch)(r.h),D=async()=>{const e=await(0,h.qC)(s.Gv);return null!=e&&e.error?s.sG:e.body.status},b=e=>{switch(e){case s.sG:case s.ye:return(()=>{if("function"==typeof n)return n();i&&N(!0),M(!1),G(!0)})();default:N(!1),M(!0),G(!1)}};(0,o.useEffect)((()=>{b(u)}),[u]);return(0,o.useEffect)((()=>{S(T[s.Gv]),T[s.Gv]===s.Ck&&(async e=>{const a=await D();switch(a){case s.Sr:setTimeout((async()=>{if(await D()!==s.ye)return T[s.Gv]=s.sG,B(T),S(s.sG);window.location.reload()}),s.sr);break;case s.ye:window.location.reload();break;default:e[s.Gv]=a,S(a),B(e)}})(T)}),[T]),(0,o.createElement)(o.Fragment,null,(()=>{switch(u){case s.sG:return(0,o.createElement)(l.V,{title:A.errorState.title,subtitle:A.errorState.subtitle,error:A.errorState.error});case s.ye:return a;default:return(0,o.createElement)(t.Y,{title:A.loader.title,subtitle:A.loader.subtitle})}})())}},1155:(e,a,n)=>{n.r(a),n.d(a,{default:()=>N});var o=n(7462),d=n(9307),c=n(4333),m=n(9818),t=n(9250),r=n(2200),i=n(9519),s=n(5791),l=n(950),u=n(349),S=n(4106);const h=JSON.parse('[{"code":"AF","name":"Afghanistan","states":[]},{"code":"AX","name":"Åland Islands","states":[]},{"code":"DZ","name":"Algeria","states":[{"code":"DZ-01","name":"Adrar"},{"code":"DZ-02","name":"Chlef"},{"code":"DZ-03","name":"Laghouat"},{"code":"DZ-04","name":"Oum El Bouaghi"},{"code":"DZ-05","name":"Batna"},{"code":"DZ-06","name":"Béjaïa"},{"code":"DZ-07","name":"Biskra"},{"code":"DZ-08","name":"Béchar"},{"code":"DZ-09","name":"Blida"},{"code":"DZ-10","name":"Bouira"},{"code":"DZ-11","name":"Tamanghasset"},{"code":"DZ-12","name":"Tébessa"},{"code":"DZ-13","name":"Tlemcen"},{"code":"DZ-14","name":"Tiaret"},{"code":"DZ-15","name":"Tizi Ouzou"},{"code":"DZ-16","name":"Algiers"},{"code":"DZ-17","name":"Djelfa"},{"code":"DZ-18","name":"Jijel"},{"code":"DZ-19","name":"Sétif"},{"code":"DZ-20","name":"Saïda"},{"code":"DZ-21","name":"Skikda"},{"code":"DZ-22","name":"Sidi Bel Abbès"},{"code":"DZ-23","name":"Annaba"},{"code":"DZ-24","name":"Guelma"},{"code":"DZ-25","name":"Constantine"},{"code":"DZ-26","name":"Médéa"},{"code":"DZ-27","name":"Mostaganem"},{"code":"DZ-28","name":"M’Sila"},{"code":"DZ-29","name":"Mascara"},{"code":"DZ-30","name":"Ouargla"},{"code":"DZ-31","name":"Oran"},{"code":"DZ-32","name":"El Bayadh"},{"code":"DZ-33","name":"Illizi"},{"code":"DZ-34","name":"Bordj Bou Arréridj"},{"code":"DZ-35","name":"Boumerdès"},{"code":"DZ-36","name":"El Tarf"},{"code":"DZ-37","name":"Tindouf"},{"code":"DZ-38","name":"Tissemsilt"},{"code":"DZ-39","name":"El Oued"},{"code":"DZ-40","name":"Khenchela"},{"code":"DZ-41","name":"Souk Ahras"},{"code":"DZ-42","name":"Tipasa"},{"code":"DZ-43","name":"Mila"},{"code":"DZ-44","name":"Aïn Defla"},{"code":"DZ-45","name":"Naama"},{"code":"DZ-46","name":"Aïn Témouchent"},{"code":"DZ-47","name":"Ghardaïa"},{"code":"DZ-48","name":"Relizane"}]},{"code":"AS","name":"American Samoa","states":[]},{"code":"AD","name":"Andorra","states":[]},{"code":"AO","name":"Angola","states":[{"code":"BGO","name":"Bengo"},{"code":"BLU","name":"Benguela"},{"code":"BIE","name":"Bié"},{"code":"CAB","name":"Cabinda"},{"code":"CNN","name":"Cunene"},{"code":"HUA","name":"Huambo"},{"code":"HUI","name":"Huíla"},{"code":"CCU","name":"Kuando Kubango"},{"code":"CNO","name":"Kwanza-Norte"},{"code":"CUS","name":"Kwanza-Sul"},{"code":"LUA","name":"Luanda"},{"code":"LNO","name":"Lunda-Norte"},{"code":"LSU","name":"Lunda-Sul"},{"code":"MAL","name":"Malanje"},{"code":"MOX","name":"Moxico"},{"code":"NAM","name":"Namibe"},{"code":"UIG","name":"Uíge"},{"code":"ZAI","name":"Zaire"}]},{"code":"AI","name":"Anguilla","states":[]},{"code":"AQ","name":"Antarctica","states":[]},{"code":"AG","name":"Antigua and Barbuda","states":[]},{"code":"AR","name":"Argentina","states":[{"code":"C","name":"Ciudad Autónoma de Buenos Aires"},{"code":"B","name":"Buenos Aires"},{"code":"K","name":"Catamarca"},{"code":"H","name":"Chaco"},{"code":"U","name":"Chubut"},{"code":"X","name":"Córdoba"},{"code":"W","name":"Corrientes"},{"code":"E","name":"Entre Ríos"},{"code":"P","name":"Formosa"},{"code":"Y","name":"Jujuy"},{"code":"L","name":"La Pampa"},{"code":"F","name":"La Rioja"},{"code":"M","name":"Mendoza"},{"code":"N","name":"Misiones"},{"code":"Q","name":"Neuquén"},{"code":"R","name":"Río Negro"},{"code":"A","name":"Salta"},{"code":"J","name":"San Juan"},{"code":"D","name":"San Luis"},{"code":"Z","name":"Santa Cruz"},{"code":"S","name":"Santa Fe"},{"code":"G","name":"Santiago del Estero"},{"code":"V","name":"Tierra del Fuego"},{"code":"T","name":"Tucumán"}]},{"code":"AM","name":"Armenia","states":[]},{"code":"AW","name":"Aruba","states":[]},{"code":"AU","name":"Australia","states":[{"code":"ACT","name":"Australian Capital Territory"},{"code":"NSW","name":"New South Wales"},{"code":"NT","name":"Northern Territory"},{"code":"QLD","name":"Queensland"},{"code":"SA","name":"South Australia"},{"code":"TAS","name":"Tasmania"},{"code":"VIC","name":"Victoria"},{"code":"WA","name":"Western Australia"}]},{"code":"AT","name":"Austria","states":[]},{"code":"AZ","name":"Azerbaijan","states":[]},{"code":"BS","name":"Bahamas","states":[]},{"code":"BH","name":"Bahrain","states":[]},{"code":"BD","name":"Bangladesh","states":[{"code":"BD-05","name":"Bagerhat"},{"code":"BD-01","name":"Bandarban"},{"code":"BD-02","name":"Barguna"},{"code":"BD-06","name":"Barishal"},{"code":"BD-07","name":"Bhola"},{"code":"BD-03","name":"Bogura"},{"code":"BD-04","name":"Brahmanbaria"},{"code":"BD-09","name":"Chandpur"},{"code":"BD-10","name":"Chattogram"},{"code":"BD-12","name":"Chuadanga"},{"code":"BD-11","name":"Cox\'s Bazar"},{"code":"BD-08","name":"Cumilla"},{"code":"BD-13","name":"Dhaka"},{"code":"BD-14","name":"Dinajpur"},{"code":"BD-15","name":"Faridpur "},{"code":"BD-16","name":"Feni"},{"code":"BD-19","name":"Gaibandha"},{"code":"BD-18","name":"Gazipur"},{"code":"BD-17","name":"Gopalganj"},{"code":"BD-20","name":"Habiganj"},{"code":"BD-21","name":"Jamalpur"},{"code":"BD-22","name":"Jashore"},{"code":"BD-25","name":"Jhalokati"},{"code":"BD-23","name":"Jhenaidah"},{"code":"BD-24","name":"Joypurhat"},{"code":"BD-29","name":"Khagrachhari"},{"code":"BD-27","name":"Khulna"},{"code":"BD-26","name":"Kishoreganj"},{"code":"BD-28","name":"Kurigram"},{"code":"BD-30","name":"Kushtia"},{"code":"BD-31","name":"Lakshmipur"},{"code":"BD-32","name":"Lalmonirhat"},{"code":"BD-36","name":"Madaripur"},{"code":"BD-37","name":"Magura"},{"code":"BD-33","name":"Manikganj "},{"code":"BD-39","name":"Meherpur"},{"code":"BD-38","name":"Moulvibazar"},{"code":"BD-35","name":"Munshiganj"},{"code":"BD-34","name":"Mymensingh"},{"code":"BD-48","name":"Naogaon"},{"code":"BD-43","name":"Narail"},{"code":"BD-40","name":"Narayanganj"},{"code":"BD-42","name":"Narsingdi"},{"code":"BD-44","name":"Natore"},{"code":"BD-45","name":"Nawabganj"},{"code":"BD-41","name":"Netrakona"},{"code":"BD-46","name":"Nilphamari"},{"code":"BD-47","name":"Noakhali"},{"code":"BD-49","name":"Pabna"},{"code":"BD-52","name":"Panchagarh"},{"code":"BD-51","name":"Patuakhali"},{"code":"BD-50","name":"Pirojpur"},{"code":"BD-53","name":"Rajbari"},{"code":"BD-54","name":"Rajshahi"},{"code":"BD-56","name":"Rangamati"},{"code":"BD-55","name":"Rangpur"},{"code":"BD-58","name":"Satkhira"},{"code":"BD-62","name":"Shariatpur"},{"code":"BD-57","name":"Sherpur"},{"code":"BD-59","name":"Sirajganj"},{"code":"BD-61","name":"Sunamganj"},{"code":"BD-60","name":"Sylhet"},{"code":"BD-63","name":"Tangail"},{"code":"BD-64","name":"Thakurgaon"}]},{"code":"BB","name":"Barbados","states":[]},{"code":"PW","name":"Belau","states":[]},{"code":"BE","name":"Belgium","states":[]},{"code":"BZ","name":"Belize","states":[]},{"code":"BJ","name":"Benin","states":[{"code":"AL","name":"Alibori"},{"code":"AK","name":"Atakora"},{"code":"AQ","name":"Atlantique"},{"code":"BO","name":"Borgou"},{"code":"CO","name":"Collines"},{"code":"KO","name":"Kouffo"},{"code":"DO","name":"Donga"},{"code":"LI","name":"Littoral"},{"code":"MO","name":"Mono"},{"code":"OU","name":"Ouémé"},{"code":"PL","name":"Plateau"},{"code":"ZO","name":"Zou"}]},{"code":"BM","name":"Bermuda","states":[]},{"code":"BT","name":"Bhutan","states":[]},{"code":"BO","name":"Bolivia","states":[{"code":"BO-B","name":"Beni"},{"code":"BO-H","name":"Chuquisaca"},{"code":"BO-C","name":"Cochabamba"},{"code":"BO-L","name":"La Paz"},{"code":"BO-O","name":"Oruro"},{"code":"BO-N","name":"Pando"},{"code":"BO-P","name":"Potosí"},{"code":"BO-S","name":"Santa Cruz"},{"code":"BO-T","name":"Tarija"}]},{"code":"BQ","name":"Bonaire, Saint Eustatius and Saba","states":[]},{"code":"BW","name":"Botswana","states":[]},{"code":"BV","name":"Bouvet Island","states":[]},{"code":"BR","name":"Brazil","states":[{"code":"AC","name":"Acre"},{"code":"AL","name":"Alagoas"},{"code":"AP","name":"Amapá"},{"code":"AM","name":"Amazonas"},{"code":"BA","name":"Bahia"},{"code":"CE","name":"Ceará"},{"code":"DF","name":"Distrito Federal"},{"code":"ES","name":"Espírito Santo"},{"code":"GO","name":"Goiás"},{"code":"MA","name":"Maranhão"},{"code":"MT","name":"Mato Grosso"},{"code":"MS","name":"Mato Grosso do Sul"},{"code":"MG","name":"Minas Gerais"},{"code":"PA","name":"Pará"},{"code":"PB","name":"Paraíba"},{"code":"PR","name":"Paraná"},{"code":"PE","name":"Pernambuco"},{"code":"PI","name":"Piauí"},{"code":"RJ","name":"Rio de Janeiro"},{"code":"RN","name":"Rio Grande do Norte"},{"code":"RS","name":"Rio Grande do Sul"},{"code":"RO","name":"Rondônia"},{"code":"RR","name":"Roraima"},{"code":"SC","name":"Santa Catarina"},{"code":"SP","name":"São Paulo"},{"code":"SE","name":"Sergipe"},{"code":"TO","name":"Tocantins"}]},{"code":"IO","name":"British Indian Ocean Territory","states":[]},{"code":"BN","name":"Brunei","states":[]},{"code":"BF","name":"Burkina Faso","states":[]},{"code":"BI","name":"Burundi","states":[]},{"code":"KH","name":"Cambodia","states":[]},{"code":"CM","name":"Cameroon","states":[]},{"code":"CA","name":"Canada","states":[{"code":"AB","name":"Alberta"},{"code":"BC","name":"British Columbia"},{"code":"MB","name":"Manitoba"},{"code":"NB","name":"New Brunswick"},{"code":"NL","name":"Newfoundland and Labrador"},{"code":"NT","name":"Northwest Territories"},{"code":"NS","name":"Nova Scotia"},{"code":"NU","name":"Nunavut"},{"code":"ON","name":"Ontario"},{"code":"PE","name":"Prince Edward Island"},{"code":"QC","name":"Quebec"},{"code":"SK","name":"Saskatchewan"},{"code":"YT","name":"Yukon Territory"}]},{"code":"CV","name":"Cape Verde","states":[]},{"code":"KY","name":"Cayman Islands","states":[]},{"code":"TD","name":"Chad","states":[]},{"code":"CL","name":"Chile","states":[{"code":"CL-AI","name":"Aisén del General Carlos Ibañez del Campo"},{"code":"CL-AN","name":"Antofagasta"},{"code":"CL-AP","name":"Arica y Parinacota"},{"code":"CL-AR","name":"La Araucanía"},{"code":"CL-AT","name":"Atacama"},{"code":"CL-BI","name":"Biobío"},{"code":"CL-CO","name":"Coquimbo"},{"code":"CL-LI","name":"Libertador General Bernardo O\'Higgins"},{"code":"CL-LL","name":"Los Lagos"},{"code":"CL-LR","name":"Los Ríos"},{"code":"CL-MA","name":"Magallanes"},{"code":"CL-ML","name":"Maule"},{"code":"CL-NB","name":"Ñuble"},{"code":"CL-RM","name":"Región Metropolitana de Santiago"},{"code":"CL-TA","name":"Tarapacá"},{"code":"CL-VS","name":"Valparaíso"}]},{"code":"CN","name":"China","states":[{"code":"CN1","name":"Yunnan / 云南"},{"code":"CN2","name":"Beijing / 北京"},{"code":"CN3","name":"Tianjin / 天津"},{"code":"CN4","name":"Hebei / 河北"},{"code":"CN5","name":"Shanxi / 山西"},{"code":"CN6","name":"Inner Mongolia / 內蒙古"},{"code":"CN7","name":"Liaoning / 辽宁"},{"code":"CN8","name":"Jilin / 吉林"},{"code":"CN9","name":"Heilongjiang / 黑龙江"},{"code":"CN10","name":"Shanghai / 上海"},{"code":"CN11","name":"Jiangsu / 江苏"},{"code":"CN12","name":"Zhejiang / 浙江"},{"code":"CN13","name":"Anhui / 安徽"},{"code":"CN14","name":"Fujian / 福建"},{"code":"CN15","name":"Jiangxi / 江西"},{"code":"CN16","name":"Shandong / 山东"},{"code":"CN17","name":"Henan / 河南"},{"code":"CN18","name":"Hubei / 湖北"},{"code":"CN19","name":"Hunan / 湖南"},{"code":"CN20","name":"Guangdong / 广东"},{"code":"CN21","name":"Guangxi Zhuang / 广西壮族"},{"code":"CN22","name":"Hainan / 海南"},{"code":"CN23","name":"Chongqing / 重庆"},{"code":"CN24","name":"Sichuan / 四川"},{"code":"CN25","name":"Guizhou / 贵州"},{"code":"CN26","name":"Shaanxi / 陕西"},{"code":"CN27","name":"Gansu / 甘肃"},{"code":"CN28","name":"Qinghai / 青海"},{"code":"CN29","name":"Ningxia Hui / 宁夏"},{"code":"CN30","name":"Macao / 澳门"},{"code":"CN31","name":"Tibet / 西藏"},{"code":"CN32","name":"Xinjiang / 新疆"}]},{"code":"CX","name":"Christmas Island","states":[]},{"code":"CC","name":"Cocos (Keeling) Islands","states":[]},{"code":"CO","name":"Colombia","states":[{"code":"CO-AMA","name":"Amazonas"},{"code":"CO-ANT","name":"Antioquia"},{"code":"CO-ARA","name":"Arauca"},{"code":"CO-ATL","name":"Atlántico"},{"code":"CO-BOL","name":"Bolívar"},{"code":"CO-BOY","name":"Boyacá"},{"code":"CO-CAL","name":"Caldas"},{"code":"CO-CAQ","name":"Caquetá"},{"code":"CO-CAS","name":"Casanare"},{"code":"CO-CAU","name":"Cauca"},{"code":"CO-CES","name":"Cesar"},{"code":"CO-CHO","name":"Chocó"},{"code":"CO-COR","name":"Córdoba"},{"code":"CO-CUN","name":"Cundinamarca"},{"code":"CO-DC","name":"Capital District"},{"code":"CO-GUA","name":"Guainía"},{"code":"CO-GUV","name":"Guaviare"},{"code":"CO-HUI","name":"Huila"},{"code":"CO-LAG","name":"La Guajira"},{"code":"CO-MAG","name":"Magdalena"},{"code":"CO-MET","name":"Meta"},{"code":"CO-NAR","name":"Nariño"},{"code":"CO-NSA","name":"Norte de Santander"},{"code":"CO-PUT","name":"Putumayo"},{"code":"CO-QUI","name":"Quindío"},{"code":"CO-RIS","name":"Risaralda"},{"code":"CO-SAN","name":"Santander"},{"code":"CO-SAP","name":"San Andrés & Providencia"},{"code":"CO-SUC","name":"Sucre"},{"code":"CO-TOL","name":"Tolima"},{"code":"CO-VAC","name":"Valle del Cauca"},{"code":"CO-VAU","name":"Vaupés"},{"code":"CO-VID","name":"Vichada"}]},{"code":"KM","name":"Comoros","states":[]},{"code":"CK","name":"Cook Islands","states":[]},{"code":"CR","name":"Costa Rica","states":[{"code":"CR-A","name":"Alajuela"},{"code":"CR-C","name":"Cartago"},{"code":"CR-G","name":"Guanacaste"},{"code":"CR-H","name":"Heredia"},{"code":"CR-L","name":"Limón"},{"code":"CR-P","name":"Puntarenas"},{"code":"CR-SJ","name":"San José"}]},{"code":"HR","name":"Croatia","states":[]},{"code":"CW","name":"Curaçao","states":[]},{"code":"CY","name":"Cyprus","states":[]},{"code":"CZ","name":"Czech Republic","states":[]},{"code":"DK","name":"Denmark","states":[]},{"code":"DJ","name":"Djibouti","states":[]},{"code":"DM","name":"Dominica","states":[]},{"code":"DO","name":"Dominican Republic","states":[{"code":"DO-01","name":"Distrito Nacional"},{"code":"DO-02","name":"Azua"},{"code":"DO-03","name":"Baoruco"},{"code":"DO-04","name":"Barahona"},{"code":"DO-33","name":"Cibao Nordeste"},{"code":"DO-34","name":"Cibao Noroeste"},{"code":"DO-35","name":"Cibao Norte"},{"code":"DO-36","name":"Cibao Sur"},{"code":"DO-05","name":"Dajabón"},{"code":"DO-06","name":"Duarte"},{"code":"DO-08","name":"El Seibo"},{"code":"DO-37","name":"El Valle"},{"code":"DO-07","name":"Elías Piña"},{"code":"DO-38","name":"Enriquillo"},{"code":"DO-09","name":"Espaillat"},{"code":"DO-30","name":"Hato Mayor"},{"code":"DO-19","name":"Hermanas Mirabal"},{"code":"DO-39","name":"Higüamo"},{"code":"DO-10","name":"Independencia"},{"code":"DO-11","name":"La Altagracia"},{"code":"DO-12","name":"La Romana"},{"code":"DO-13","name":"La Vega"},{"code":"DO-14","name":"María Trinidad Sánchez"},{"code":"DO-28","name":"Monseñor Nouel"},{"code":"DO-15","name":"Monte Cristi"},{"code":"DO-29","name":"Monte Plata"},{"code":"DO-40","name":"Ozama"},{"code":"DO-16","name":"Pedernales"},{"code":"DO-17","name":"Peravia"},{"code":"DO-18","name":"Puerto Plata"},{"code":"DO-20","name":"Samaná"},{"code":"DO-21","name":"San Cristóbal"},{"code":"DO-31","name":"San José de Ocoa"},{"code":"DO-22","name":"San Juan"},{"code":"DO-23","name":"San Pedro de Macorís"},{"code":"DO-24","name":"Sánchez Ramírez"},{"code":"DO-25","name":"Santiago"},{"code":"DO-26","name":"Santiago Rodríguez"},{"code":"DO-32","name":"Santo Domingo"},{"code":"DO-41","name":"Valdesia"},{"code":"DO-27","name":"Valverde"},{"code":"DO-42","name":"Yuma"}]},{"code":"EC","name":"Ecuador","states":[{"code":"EC-A","name":"Azuay"},{"code":"EC-B","name":"Bolívar"},{"code":"EC-F","name":"Cañar"},{"code":"EC-C","name":"Carchi"},{"code":"EC-H","name":"Chimborazo"},{"code":"EC-X","name":"Cotopaxi"},{"code":"EC-O","name":"El Oro"},{"code":"EC-E","name":"Esmeraldas"},{"code":"EC-W","name":"Galápagos"},{"code":"EC-G","name":"Guayas"},{"code":"EC-I","name":"Imbabura"},{"code":"EC-L","name":"Loja"},{"code":"EC-R","name":"Los Ríos"},{"code":"EC-M","name":"Manabí"},{"code":"EC-S","name":"Morona-Santiago"},{"code":"EC-N","name":"Napo"},{"code":"EC-D","name":"Orellana"},{"code":"EC-Y","name":"Pastaza"},{"code":"EC-P","name":"Pichincha"},{"code":"EC-SE","name":"Santa Elena"},{"code":"EC-SD","name":"Santo Domingo de los Tsáchilas"},{"code":"EC-U","name":"Sucumbíos"},{"code":"EC-T","name":"Tungurahua"},{"code":"EC-Z","name":"Zamora-Chinchipe"}]},{"code":"EG","name":"Egypt","states":[{"code":"EGALX","name":"Alexandria"},{"code":"EGASN","name":"Aswan"},{"code":"EGAST","name":"Asyut"},{"code":"EGBA","name":"Red Sea"},{"code":"EGBH","name":"Beheira"},{"code":"EGBNS","name":"Beni Suef"},{"code":"EGC","name":"Cairo"},{"code":"EGDK","name":"Dakahlia"},{"code":"EGDT","name":"Damietta"},{"code":"EGFYM","name":"Faiyum"},{"code":"EGGH","name":"Gharbia"},{"code":"EGGZ","name":"Giza"},{"code":"EGIS","name":"Ismailia"},{"code":"EGJS","name":"South Sinai"},{"code":"EGKB","name":"Qalyubia"},{"code":"EGKFS","name":"Kafr el-Sheikh"},{"code":"EGKN","name":"Qena"},{"code":"EGLX","name":"Luxor"},{"code":"EGMN","name":"Minya"},{"code":"EGMNF","name":"Monufia"},{"code":"EGMT","name":"Matrouh"},{"code":"EGPTS","name":"Port Said"},{"code":"EGSHG","name":"Sohag"},{"code":"EGSHR","name":"Al Sharqia"},{"code":"EGSIN","name":"North Sinai"},{"code":"EGSUZ","name":"Suez"},{"code":"EGWAD","name":"New Valley"}]},{"code":"SV","name":"El Salvador","states":[{"code":"SV-AH","name":"Ahuachapán"},{"code":"SV-CA","name":"Cabañas"},{"code":"SV-CH","name":"Chalatenango"},{"code":"SV-CU","name":"Cuscatlán"},{"code":"SV-LI","name":"La Libertad"},{"code":"SV-MO","name":"Morazán"},{"code":"SV-PA","name":"La Paz"},{"code":"SV-SA","name":"Santa Ana"},{"code":"SV-SM","name":"San Miguel"},{"code":"SV-SO","name":"Sonsonate"},{"code":"SV-SS","name":"San Salvador"},{"code":"SV-SV","name":"San Vicente"},{"code":"SV-UN","name":"La Unión"},{"code":"SV-US","name":"Usulután"}]},{"code":"GQ","name":"Equatorial Guinea","states":[]},{"code":"ER","name":"Eritrea","states":[]},{"code":"EE","name":"Estonia","states":[]},{"code":"SZ","name":"Eswatini","states":[]},{"code":"FK","name":"Falkland Islands","states":[]},{"code":"FO","name":"Faroe Islands","states":[]},{"code":"FJ","name":"Fiji","states":[]},{"code":"FI","name":"Finland","states":[]},{"code":"FR","name":"France","states":[]},{"code":"GF","name":"French Guiana","states":[]},{"code":"PF","name":"French Polynesia","states":[]},{"code":"TF","name":"French Southern Territories","states":[]},{"code":"GA","name":"Gabon","states":[]},{"code":"GM","name":"Gambia","states":[]},{"code":"GE","name":"Georgia","states":[]},{"code":"DE","name":"Germany","states":[{"code":"DE-BW","name":"Baden-Württemberg"},{"code":"DE-BY","name":"Bavaria"},{"code":"DE-BE","name":"Berlin"},{"code":"DE-BB","name":"Brandenburg"},{"code":"DE-HB","name":"Bremen"},{"code":"DE-HH","name":"Hamburg"},{"code":"DE-HE","name":"Hesse"},{"code":"DE-MV","name":"Mecklenburg-Vorpommern"},{"code":"DE-NI","name":"Lower Saxony"},{"code":"DE-NW","name":"North Rhine-Westphalia"},{"code":"DE-RP","name":"Rhineland-Palatinate"},{"code":"DE-SL","name":"Saarland"},{"code":"DE-SN","name":"Saxony"},{"code":"DE-ST","name":"Saxony-Anhalt"},{"code":"DE-SH","name":"Schleswig-Holstein"},{"code":"DE-TH","name":"Thuringia"}]},{"code":"GH","name":"Ghana","states":[{"code":"AF","name":"Ahafo"},{"code":"AH","name":"Ashanti"},{"code":"BA","name":"Brong-Ahafo"},{"code":"BO","name":"Bono"},{"code":"BE","name":"Bono East"},{"code":"CP","name":"Central"},{"code":"EP","name":"Eastern"},{"code":"AA","name":"Greater Accra"},{"code":"NE","name":"North East"},{"code":"NP","name":"Northern"},{"code":"OT","name":"Oti"},{"code":"SV","name":"Savannah"},{"code":"UE","name":"Upper East"},{"code":"UW","name":"Upper West"},{"code":"TV","name":"Volta"},{"code":"WP","name":"Western"},{"code":"WN","name":"Western North"}]},{"code":"GI","name":"Gibraltar","states":[]},{"code":"GR","name":"Greece","states":[{"code":"I","name":"Attica"},{"code":"A","name":"East Macedonia and Thrace"},{"code":"B","name":"Central Macedonia"},{"code":"C","name":"West Macedonia"},{"code":"D","name":"Epirus"},{"code":"E","name":"Thessaly"},{"code":"F","name":"Ionian Islands"},{"code":"G","name":"West Greece"},{"code":"H","name":"Central Greece"},{"code":"J","name":"Peloponnese"},{"code":"K","name":"North Aegean"},{"code":"L","name":"South Aegean"},{"code":"M","name":"Crete"}]},{"code":"GL","name":"Greenland","states":[]},{"code":"GD","name":"Grenada","states":[]},{"code":"GP","name":"Guadeloupe","states":[]},{"code":"GU","name":"Guam","states":[]},{"code":"GT","name":"Guatemala","states":[{"code":"GT-AV","name":"Alta Verapaz"},{"code":"GT-BV","name":"Baja Verapaz"},{"code":"GT-CM","name":"Chimaltenango"},{"code":"GT-CQ","name":"Chiquimula"},{"code":"GT-PR","name":"El Progreso"},{"code":"GT-ES","name":"Escuintla"},{"code":"GT-GU","name":"Guatemala"},{"code":"GT-HU","name":"Huehuetenango"},{"code":"GT-IZ","name":"Izabal"},{"code":"GT-JA","name":"Jalapa"},{"code":"GT-JU","name":"Jutiapa"},{"code":"GT-PE","name":"Petén"},{"code":"GT-QZ","name":"Quetzaltenango"},{"code":"GT-QC","name":"Quiché"},{"code":"GT-RE","name":"Retalhuleu"},{"code":"GT-SA","name":"Sacatepéquez"},{"code":"GT-SM","name":"San Marcos"},{"code":"GT-SR","name":"Santa Rosa"},{"code":"GT-SO","name":"Sololá"},{"code":"GT-SU","name":"Suchitepéquez"},{"code":"GT-TO","name":"Totonicapán"},{"code":"GT-ZA","name":"Zacapa"}]},{"code":"GG","name":"Guernsey","states":[]},{"code":"GN","name":"Guinea","states":[]},{"code":"GW","name":"Guinea-Bissau","states":[]},{"code":"GY","name":"Guyana","states":[]},{"code":"HM","name":"Heard Island and McDonald Islands","states":[]},{"code":"HN","name":"Honduras","states":[{"code":"HN-AT","name":"Atlántida"},{"code":"HN-IB","name":"Bay Islands"},{"code":"HN-CH","name":"Choluteca"},{"code":"HN-CL","name":"Colón"},{"code":"HN-CM","name":"Comayagua"},{"code":"HN-CP","name":"Copán"},{"code":"HN-CR","name":"Cortés"},{"code":"HN-EP","name":"El Paraíso"},{"code":"HN-FM","name":"Francisco Morazán"},{"code":"HN-GD","name":"Gracias a Dios"},{"code":"HN-IN","name":"Intibucá"},{"code":"HN-LE","name":"Lempira"},{"code":"HN-LP","name":"La Paz"},{"code":"HN-OC","name":"Ocotepeque"},{"code":"HN-OL","name":"Olancho"},{"code":"HN-SB","name":"Santa Bárbara"},{"code":"HN-VA","name":"Valle"},{"code":"HN-YO","name":"Yoro"}]},{"code":"HU","name":"Hungary","states":[{"code":"BK","name":"Bács-Kiskun"},{"code":"BE","name":"Békés"},{"code":"BA","name":"Baranya"},{"code":"BZ","name":"Borsod-Abaúj-Zemplén"},{"code":"BU","name":"Budapest"},{"code":"CS","name":"Csongrád-Csanád"},{"code":"FE","name":"Fejér"},{"code":"GS","name":"Győr-Moson-Sopron"},{"code":"HB","name":"Hajdú-Bihar"},{"code":"HE","name":"Heves"},{"code":"JN","name":"Jász-Nagykun-Szolnok"},{"code":"KE","name":"Komárom-Esztergom"},{"code":"NO","name":"Nógrád"},{"code":"PE","name":"Pest"},{"code":"SO","name":"Somogy"},{"code":"SZ","name":"Szabolcs-Szatmár-Bereg"},{"code":"TO","name":"Tolna"},{"code":"VA","name":"Vas"},{"code":"VE","name":"Veszprém"},{"code":"ZA","name":"Zala"}]},{"code":"IS","name":"Iceland","states":[]},{"code":"IN","name":"India","states":[{"code":"AP","name":"Andhra Pradesh"},{"code":"AR","name":"Arunachal Pradesh"},{"code":"AS","name":"Assam"},{"code":"BR","name":"Bihar"},{"code":"CT","name":"Chhattisgarh"},{"code":"GA","name":"Goa"},{"code":"GJ","name":"Gujarat"},{"code":"HR","name":"Haryana"},{"code":"HP","name":"Himachal Pradesh"},{"code":"JK","name":"Jammu and Kashmir"},{"code":"JH","name":"Jharkhand"},{"code":"KA","name":"Karnataka"},{"code":"KL","name":"Kerala"},{"code":"LA","name":"Ladakh"},{"code":"MP","name":"Madhya Pradesh"},{"code":"MH","name":"Maharashtra"},{"code":"MN","name":"Manipur"},{"code":"ML","name":"Meghalaya"},{"code":"MZ","name":"Mizoram"},{"code":"NL","name":"Nagaland"},{"code":"OR","name":"Odisha"},{"code":"PB","name":"Punjab"},{"code":"RJ","name":"Rajasthan"},{"code":"SK","name":"Sikkim"},{"code":"TN","name":"Tamil Nadu"},{"code":"TS","name":"Telangana"},{"code":"TR","name":"Tripura"},{"code":"UK","name":"Uttarakhand"},{"code":"UP","name":"Uttar Pradesh"},{"code":"WB","name":"West Bengal"},{"code":"AN","name":"Andaman and Nicobar Islands"},{"code":"CH","name":"Chandigarh"},{"code":"DN","name":"Dadra and Nagar Haveli"},{"code":"DD","name":"Daman and Diu"},{"code":"DL","name":"Delhi"},{"code":"LD","name":"Lakshadeep"},{"code":"PY","name":"Pondicherry (Puducherry)"}]},{"code":"ID","name":"Indonesia","states":[{"code":"AC","name":"Daerah Istimewa Aceh"},{"code":"SU","name":"Sumatera Utara"},{"code":"SB","name":"Sumatera Barat"},{"code":"RI","name":"Riau"},{"code":"KR","name":"Kepulauan Riau"},{"code":"JA","name":"Jambi"},{"code":"SS","name":"Sumatera Selatan"},{"code":"BB","name":"Bangka Belitung"},{"code":"BE","name":"Bengkulu"},{"code":"LA","name":"Lampung"},{"code":"JK","name":"DKI Jakarta"},{"code":"JB","name":"Jawa Barat"},{"code":"BT","name":"Banten"},{"code":"JT","name":"Jawa Tengah"},{"code":"JI","name":"Jawa Timur"},{"code":"YO","name":"Daerah Istimewa Yogyakarta"},{"code":"BA","name":"Bali"},{"code":"NB","name":"Nusa Tenggara Barat"},{"code":"NT","name":"Nusa Tenggara Timur"},{"code":"KB","name":"Kalimantan Barat"},{"code":"KT","name":"Kalimantan Tengah"},{"code":"KI","name":"Kalimantan Timur"},{"code":"KS","name":"Kalimantan Selatan"},{"code":"KU","name":"Kalimantan Utara"},{"code":"SA","name":"Sulawesi Utara"},{"code":"ST","name":"Sulawesi Tengah"},{"code":"SG","name":"Sulawesi Tenggara"},{"code":"SR","name":"Sulawesi Barat"},{"code":"SN","name":"Sulawesi Selatan"},{"code":"GO","name":"Gorontalo"},{"code":"MA","name":"Maluku"},{"code":"MU","name":"Maluku Utara"},{"code":"PA","name":"Papua"},{"code":"PB","name":"Papua Barat"}]},{"code":"IE","name":"Ireland","states":[{"code":"CW","name":"Carlow"},{"code":"CN","name":"Cavan"},{"code":"CE","name":"Clare"},{"code":"CO","name":"Cork"},{"code":"DL","name":"Donegal"},{"code":"D","name":"Dublin"},{"code":"G","name":"Galway"},{"code":"KY","name":"Kerry"},{"code":"KE","name":"Kildare"},{"code":"KK","name":"Kilkenny"},{"code":"LS","name":"Laois"},{"code":"LM","name":"Leitrim"},{"code":"LK","name":"Limerick"},{"code":"LD","name":"Longford"},{"code":"LH","name":"Louth"},{"code":"MO","name":"Mayo"},{"code":"MH","name":"Meath"},{"code":"MN","name":"Monaghan"},{"code":"OY","name":"Offaly"},{"code":"RN","name":"Roscommon"},{"code":"SO","name":"Sligo"},{"code":"TA","name":"Tipperary"},{"code":"WD","name":"Waterford"},{"code":"WH","name":"Westmeath"},{"code":"WX","name":"Wexford"},{"code":"WW","name":"Wicklow"}]},{"code":"IM","name":"Isle of Man","states":[]},{"code":"IL","name":"Israel","states":[]},{"code":"IT","name":"Italy","states":[{"code":"AG","name":"Agrigento"},{"code":"AL","name":"Alessandria"},{"code":"AN","name":"Ancona"},{"code":"AO","name":"Aosta"},{"code":"AR","name":"Arezzo"},{"code":"AP","name":"Ascoli Piceno"},{"code":"AT","name":"Asti"},{"code":"AV","name":"Avellino"},{"code":"BA","name":"Bari"},{"code":"BT","name":"Barletta-Andria-Trani"},{"code":"BL","name":"Belluno"},{"code":"BN","name":"Benevento"},{"code":"BG","name":"Bergamo"},{"code":"BI","name":"Biella"},{"code":"BO","name":"Bologna"},{"code":"BZ","name":"Bolzano"},{"code":"BS","name":"Brescia"},{"code":"BR","name":"Brindisi"},{"code":"CA","name":"Cagliari"},{"code":"CL","name":"Caltanissetta"},{"code":"CB","name":"Campobasso"},{"code":"CE","name":"Caserta"},{"code":"CT","name":"Catania"},{"code":"CZ","name":"Catanzaro"},{"code":"CH","name":"Chieti"},{"code":"CO","name":"Como"},{"code":"CS","name":"Cosenza"},{"code":"CR","name":"Cremona"},{"code":"KR","name":"Crotone"},{"code":"CN","name":"Cuneo"},{"code":"EN","name":"Enna"},{"code":"FM","name":"Fermo"},{"code":"FE","name":"Ferrara"},{"code":"FI","name":"Firenze"},{"code":"FG","name":"Foggia"},{"code":"FC","name":"Forlì-Cesena"},{"code":"FR","name":"Frosinone"},{"code":"GE","name":"Genova"},{"code":"GO","name":"Gorizia"},{"code":"GR","name":"Grosseto"},{"code":"IM","name":"Imperia"},{"code":"IS","name":"Isernia"},{"code":"SP","name":"La Spezia"},{"code":"AQ","name":"L\'Aquila"},{"code":"LT","name":"Latina"},{"code":"LE","name":"Lecce"},{"code":"LC","name":"Lecco"},{"code":"LI","name":"Livorno"},{"code":"LO","name":"Lodi"},{"code":"LU","name":"Lucca"},{"code":"MC","name":"Macerata"},{"code":"MN","name":"Mantova"},{"code":"MS","name":"Massa-Carrara"},{"code":"MT","name":"Matera"},{"code":"ME","name":"Messina"},{"code":"MI","name":"Milano"},{"code":"MO","name":"Modena"},{"code":"MB","name":"Monza e della Brianza"},{"code":"NA","name":"Napoli"},{"code":"NO","name":"Novara"},{"code":"NU","name":"Nuoro"},{"code":"OR","name":"Oristano"},{"code":"PD","name":"Padova"},{"code":"PA","name":"Palermo"},{"code":"PR","name":"Parma"},{"code":"PV","name":"Pavia"},{"code":"PG","name":"Perugia"},{"code":"PU","name":"Pesaro e Urbino"},{"code":"PE","name":"Pescara"},{"code":"PC","name":"Piacenza"},{"code":"PI","name":"Pisa"},{"code":"PT","name":"Pistoia"},{"code":"PN","name":"Pordenone"},{"code":"PZ","name":"Potenza"},{"code":"PO","name":"Prato"},{"code":"RG","name":"Ragusa"},{"code":"RA","name":"Ravenna"},{"code":"RC","name":"Reggio Calabria"},{"code":"RE","name":"Reggio Emilia"},{"code":"RI","name":"Rieti"},{"code":"RN","name":"Rimini"},{"code":"RM","name":"Roma"},{"code":"RO","name":"Rovigo"},{"code":"SA","name":"Salerno"},{"code":"SS","name":"Sassari"},{"code":"SV","name":"Savona"},{"code":"SI","name":"Siena"},{"code":"SR","name":"Siracusa"},{"code":"SO","name":"Sondrio"},{"code":"SU","name":"Sud Sardegna"},{"code":"TA","name":"Taranto"},{"code":"TE","name":"Teramo"},{"code":"TR","name":"Terni"},{"code":"TO","name":"Torino"},{"code":"TP","name":"Trapani"},{"code":"TN","name":"Trento"},{"code":"TV","name":"Treviso"},{"code":"TS","name":"Trieste"},{"code":"UD","name":"Udine"},{"code":"VA","name":"Varese"},{"code":"VE","name":"Venezia"},{"code":"VB","name":"Verbano-Cusio-Ossola"},{"code":"VC","name":"Vercelli"},{"code":"VR","name":"Verona"},{"code":"VV","name":"Vibo Valentia"},{"code":"VI","name":"Vicenza"},{"code":"VT","name":"Viterbo"}]},{"code":"CI","name":"Ivory Coast","states":[]},{"code":"JM","name":"Jamaica","states":[{"code":"JM-01","name":"Kingston"},{"code":"JM-02","name":"Saint Andrew"},{"code":"JM-03","name":"Saint Thomas"},{"code":"JM-04","name":"Portland"},{"code":"JM-05","name":"Saint Mary"},{"code":"JM-06","name":"Saint Ann"},{"code":"JM-07","name":"Trelawny"},{"code":"JM-08","name":"Saint James"},{"code":"JM-09","name":"Hanover"},{"code":"JM-10","name":"Westmoreland"},{"code":"JM-11","name":"Saint Elizabeth"},{"code":"JM-12","name":"Manchester"},{"code":"JM-13","name":"Clarendon"},{"code":"JM-14","name":"Saint Catherine"}]},{"code":"JP","name":"Japan","states":[{"code":"JP01","name":"Hokkaido"},{"code":"JP02","name":"Aomori"},{"code":"JP03","name":"Iwate"},{"code":"JP04","name":"Miyagi"},{"code":"JP05","name":"Akita"},{"code":"JP06","name":"Yamagata"},{"code":"JP07","name":"Fukushima"},{"code":"JP08","name":"Ibaraki"},{"code":"JP09","name":"Tochigi"},{"code":"JP10","name":"Gunma"},{"code":"JP11","name":"Saitama"},{"code":"JP12","name":"Chiba"},{"code":"JP13","name":"Tokyo"},{"code":"JP14","name":"Kanagawa"},{"code":"JP15","name":"Niigata"},{"code":"JP16","name":"Toyama"},{"code":"JP17","name":"Ishikawa"},{"code":"JP18","name":"Fukui"},{"code":"JP19","name":"Yamanashi"},{"code":"JP20","name":"Nagano"},{"code":"JP21","name":"Gifu"},{"code":"JP22","name":"Shizuoka"},{"code":"JP23","name":"Aichi"},{"code":"JP24","name":"Mie"},{"code":"JP25","name":"Shiga"},{"code":"JP26","name":"Kyoto"},{"code":"JP27","name":"Osaka"},{"code":"JP28","name":"Hyogo"},{"code":"JP29","name":"Nara"},{"code":"JP30","name":"Wakayama"},{"code":"JP31","name":"Tottori"},{"code":"JP32","name":"Shimane"},{"code":"JP33","name":"Okayama"},{"code":"JP34","name":"Hiroshima"},{"code":"JP35","name":"Yamaguchi"},{"code":"JP36","name":"Tokushima"},{"code":"JP37","name":"Kagawa"},{"code":"JP38","name":"Ehime"},{"code":"JP39","name":"Kochi"},{"code":"JP40","name":"Fukuoka"},{"code":"JP41","name":"Saga"},{"code":"JP42","name":"Nagasaki"},{"code":"JP43","name":"Kumamoto"},{"code":"JP44","name":"Oita"},{"code":"JP45","name":"Miyazaki"},{"code":"JP46","name":"Kagoshima"},{"code":"JP47","name":"Okinawa"}]},{"code":"JE","name":"Jersey","states":[]},{"code":"JO","name":"Jordan","states":[]},{"code":"KZ","name":"Kazakhstan","states":[]},{"code":"KE","name":"Kenya","states":[{"code":"KE01","name":"Baringo"},{"code":"KE02","name":"Bomet"},{"code":"KE03","name":"Bungoma"},{"code":"KE04","name":"Busia"},{"code":"KE05","name":"Elgeyo-Marakwet"},{"code":"KE06","name":"Embu"},{"code":"KE07","name":"Garissa"},{"code":"KE08","name":"Homa Bay"},{"code":"KE09","name":"Isiolo"},{"code":"KE10","name":"Kajiado"},{"code":"KE11","name":"Kakamega"},{"code":"KE12","name":"Kericho"},{"code":"KE13","name":"Kiambu"},{"code":"KE14","name":"Kilifi"},{"code":"KE15","name":"Kirinyaga"},{"code":"KE16","name":"Kisii"},{"code":"KE17","name":"Kisumu"},{"code":"KE18","name":"Kitui"},{"code":"KE19","name":"Kwale"},{"code":"KE20","name":"Laikipia"},{"code":"KE21","name":"Lamu"},{"code":"KE22","name":"Machakos"},{"code":"KE23","name":"Makueni"},{"code":"KE24","name":"Mandera"},{"code":"KE25","name":"Marsabit"},{"code":"KE26","name":"Meru"},{"code":"KE27","name":"Migori"},{"code":"KE28","name":"Mombasa"},{"code":"KE29","name":"Murang’a"},{"code":"KE30","name":"Nairobi County"},{"code":"KE31","name":"Nakuru"},{"code":"KE32","name":"Nandi"},{"code":"KE33","name":"Narok"},{"code":"KE34","name":"Nyamira"},{"code":"KE35","name":"Nyandarua"},{"code":"KE36","name":"Nyeri"},{"code":"KE37","name":"Samburu"},{"code":"KE38","name":"Siaya"},{"code":"KE39","name":"Taita-Taveta"},{"code":"KE40","name":"Tana River"},{"code":"KE41","name":"Tharaka-Nithi"},{"code":"KE42","name":"Trans Nzoia"},{"code":"KE43","name":"Turkana"},{"code":"KE44","name":"Uasin Gishu"},{"code":"KE45","name":"Vihiga"},{"code":"KE46","name":"Wajir"},{"code":"KE47","name":"West Pokot"}]},{"code":"KI","name":"Kiribati","states":[]},{"code":"KW","name":"Kuwait","states":[]},{"code":"KG","name":"Kyrgyzstan","states":[]},{"code":"LA","name":"Laos","states":[{"code":"AT","name":"Attapeu"},{"code":"BK","name":"Bokeo"},{"code":"BL","name":"Bolikhamsai"},{"code":"CH","name":"Champasak"},{"code":"HO","name":"Houaphanh"},{"code":"KH","name":"Khammouane"},{"code":"LM","name":"Luang Namtha"},{"code":"LP","name":"Luang Prabang"},{"code":"OU","name":"Oudomxay"},{"code":"PH","name":"Phongsaly"},{"code":"SL","name":"Salavan"},{"code":"SV","name":"Savannakhet"},{"code":"VI","name":"Vientiane Province"},{"code":"VT","name":"Vientiane"},{"code":"XA","name":"Sainyabuli"},{"code":"XE","name":"Sekong"},{"code":"XI","name":"Xiangkhouang"},{"code":"XS","name":"Xaisomboun"}]},{"code":"LV","name":"Latvia","states":[]},{"code":"LS","name":"Lesotho","states":[]},{"code":"LR","name":"Liberia","states":[{"code":"BM","name":"Bomi"},{"code":"BN","name":"Bong"},{"code":"GA","name":"Gbarpolu"},{"code":"GB","name":"Grand Bassa"},{"code":"GC","name":"Grand Cape Mount"},{"code":"GG","name":"Grand Gedeh"},{"code":"GK","name":"Grand Kru"},{"code":"LO","name":"Lofa"},{"code":"MA","name":"Margibi"},{"code":"MY","name":"Maryland"},{"code":"MO","name":"Montserrado"},{"code":"NM","name":"Nimba"},{"code":"RV","name":"Rivercess"},{"code":"RG","name":"River Gee"},{"code":"SN","name":"Sinoe"}]},{"code":"LI","name":"Liechtenstein","states":[]},{"code":"LT","name":"Lithuania","states":[]},{"code":"LU","name":"Luxembourg","states":[]},{"code":"MO","name":"Macao","states":[]},{"code":"MG","name":"Madagascar","states":[]},{"code":"MW","name":"Malawi","states":[]},{"code":"MY","name":"Malaysia","states":[{"code":"JHR","name":"Johor"},{"code":"KDH","name":"Kedah"},{"code":"KTN","name":"Kelantan"},{"code":"LBN","name":"Labuan"},{"code":"MLK","name":"Malacca (Melaka)"},{"code":"NSN","name":"Negeri Sembilan"},{"code":"PHG","name":"Pahang"},{"code":"PNG","name":"Penang (Pulau Pinang)"},{"code":"PRK","name":"Perak"},{"code":"PLS","name":"Perlis"},{"code":"SBH","name":"Sabah"},{"code":"SWK","name":"Sarawak"},{"code":"SGR","name":"Selangor"},{"code":"TRG","name":"Terengganu"},{"code":"PJY","name":"Putrajaya"},{"code":"KUL","name":"Kuala Lumpur"}]},{"code":"MV","name":"Maldives","states":[]},{"code":"ML","name":"Mali","states":[]},{"code":"MT","name":"Malta","states":[]},{"code":"MH","name":"Marshall Islands","states":[]},{"code":"MQ","name":"Martinique","states":[]},{"code":"MR","name":"Mauritania","states":[]},{"code":"MU","name":"Mauritius","states":[]},{"code":"YT","name":"Mayotte","states":[]},{"code":"MX","name":"Mexico","states":[{"code":"DF","name":"Ciudad de México"},{"code":"JA","name":"Jalisco"},{"code":"NL","name":"Nuevo León"},{"code":"AG","name":"Aguascalientes"},{"code":"BC","name":"Baja California"},{"code":"BS","name":"Baja California Sur"},{"code":"CM","name":"Campeche"},{"code":"CS","name":"Chiapas"},{"code":"CH","name":"Chihuahua"},{"code":"CO","name":"Coahuila"},{"code":"CL","name":"Colima"},{"code":"DG","name":"Durango"},{"code":"GT","name":"Guanajuato"},{"code":"GR","name":"Guerrero"},{"code":"HG","name":"Hidalgo"},{"code":"MX","name":"Estado de México"},{"code":"MI","name":"Michoacán"},{"code":"MO","name":"Morelos"},{"code":"NA","name":"Nayarit"},{"code":"OA","name":"Oaxaca"},{"code":"PU","name":"Puebla"},{"code":"QT","name":"Querétaro"},{"code":"QR","name":"Quintana Roo"},{"code":"SL","name":"San Luis Potosí"},{"code":"SI","name":"Sinaloa"},{"code":"SO","name":"Sonora"},{"code":"TB","name":"Tabasco"},{"code":"TM","name":"Tamaulipas"},{"code":"TL","name":"Tlaxcala"},{"code":"VE","name":"Veracruz"},{"code":"YU","name":"Yucatán"},{"code":"ZA","name":"Zacatecas"}]},{"code":"FM","name":"Micronesia","states":[]},{"code":"MD","name":"Moldova","states":[{"code":"C","name":"Chișinău"},{"code":"BL","name":"Bălți"},{"code":"AN","name":"Anenii Noi"},{"code":"BS","name":"Basarabeasca"},{"code":"BR","name":"Briceni"},{"code":"CH","name":"Cahul"},{"code":"CT","name":"Cantemir"},{"code":"CL","name":"Călărași"},{"code":"CS","name":"Căușeni"},{"code":"CM","name":"Cimișlia"},{"code":"CR","name":"Criuleni"},{"code":"DN","name":"Dondușeni"},{"code":"DR","name":"Drochia"},{"code":"DB","name":"Dubăsari"},{"code":"ED","name":"Edineț"},{"code":"FL","name":"Fălești"},{"code":"FR","name":"Florești"},{"code":"GE","name":"UTA Găgăuzia"},{"code":"GL","name":"Glodeni"},{"code":"HN","name":"Hîncești"},{"code":"IL","name":"Ialoveni"},{"code":"LV","name":"Leova"},{"code":"NS","name":"Nisporeni"},{"code":"OC","name":"Ocnița"},{"code":"OR","name":"Orhei"},{"code":"RZ","name":"Rezina"},{"code":"RS","name":"Rîșcani"},{"code":"SG","name":"Sîngerei"},{"code":"SR","name":"Soroca"},{"code":"ST","name":"Strășeni"},{"code":"SD","name":"Șoldănești"},{"code":"SV","name":"Ștefan Vodă"},{"code":"TR","name":"Taraclia"},{"code":"TL","name":"Telenești"},{"code":"UN","name":"Ungheni"}]},{"code":"MC","name":"Monaco","states":[]},{"code":"MN","name":"Mongolia","states":[]},{"code":"MS","name":"Montserrat","states":[]},{"code":"MA","name":"Morocco","states":[]},{"code":"MZ","name":"Mozambique","states":[{"code":"MZP","name":"Cabo Delgado"},{"code":"MZG","name":"Gaza"},{"code":"MZI","name":"Inhambane"},{"code":"MZB","name":"Manica"},{"code":"MZL","name":"Maputo Province"},{"code":"MZMPM","name":"Maputo"},{"code":"MZN","name":"Nampula"},{"code":"MZA","name":"Niassa"},{"code":"MZS","name":"Sofala"},{"code":"MZT","name":"Tete"},{"code":"MZQ","name":"Zambézia"}]},{"code":"NA","name":"Namibia","states":[{"code":"ER","name":"Erongo"},{"code":"HA","name":"Hardap"},{"code":"KA","name":"Karas"},{"code":"KE","name":"Kavango East"},{"code":"KW","name":"Kavango West"},{"code":"KH","name":"Khomas"},{"code":"KU","name":"Kunene"},{"code":"OW","name":"Ohangwena"},{"code":"OH","name":"Omaheke"},{"code":"OS","name":"Omusati"},{"code":"ON","name":"Oshana"},{"code":"OT","name":"Oshikoto"},{"code":"OD","name":"Otjozondjupa"},{"code":"CA","name":"Zambezi"}]},{"code":"NR","name":"Nauru","states":[]},{"code":"NP","name":"Nepal","states":[{"code":"BAG","name":"Bagmati"},{"code":"BHE","name":"Bheri"},{"code":"DHA","name":"Dhaulagiri"},{"code":"GAN","name":"Gandaki"},{"code":"JAN","name":"Janakpur"},{"code":"KAR","name":"Karnali"},{"code":"KOS","name":"Koshi"},{"code":"LUM","name":"Lumbini"},{"code":"MAH","name":"Mahakali"},{"code":"MEC","name":"Mechi"},{"code":"NAR","name":"Narayani"},{"code":"RAP","name":"Rapti"},{"code":"SAG","name":"Sagarmatha"},{"code":"SET","name":"Seti"}]},{"code":"NL","name":"Netherlands","states":[]},{"code":"NC","name":"New Caledonia","states":[]},{"code":"NZ","name":"New Zealand","states":[{"code":"NL","name":"Northland"},{"code":"AK","name":"Auckland"},{"code":"WA","name":"Waikato"},{"code":"BP","name":"Bay of Plenty"},{"code":"TK","name":"Taranaki"},{"code":"GI","name":"Gisborne"},{"code":"HB","name":"Hawke’s Bay"},{"code":"MW","name":"Manawatu-Wanganui"},{"code":"WE","name":"Wellington"},{"code":"NS","name":"Nelson"},{"code":"MB","name":"Marlborough"},{"code":"TM","name":"Tasman"},{"code":"WC","name":"West Coast"},{"code":"CT","name":"Canterbury"},{"code":"OT","name":"Otago"},{"code":"SL","name":"Southland"}]},{"code":"NI","name":"Nicaragua","states":[{"code":"NI-AN","name":"Atlántico Norte"},{"code":"NI-AS","name":"Atlántico Sur"},{"code":"NI-BO","name":"Boaco"},{"code":"NI-CA","name":"Carazo"},{"code":"NI-CI","name":"Chinandega"},{"code":"NI-CO","name":"Chontales"},{"code":"NI-ES","name":"Estelí"},{"code":"NI-GR","name":"Granada"},{"code":"NI-JI","name":"Jinotega"},{"code":"NI-LE","name":"León"},{"code":"NI-MD","name":"Madriz"},{"code":"NI-MN","name":"Managua"},{"code":"NI-MS","name":"Masaya"},{"code":"NI-MT","name":"Matagalpa"},{"code":"NI-NS","name":"Nueva Segovia"},{"code":"NI-RI","name":"Rivas"},{"code":"NI-SJ","name":"Río San Juan"}]},{"code":"NE","name":"Niger","states":[]},{"code":"NG","name":"Nigeria","states":[{"code":"AB","name":"Abia"},{"code":"FC","name":"Abuja"},{"code":"AD","name":"Adamawa"},{"code":"AK","name":"Akwa Ibom"},{"code":"AN","name":"Anambra"},{"code":"BA","name":"Bauchi"},{"code":"BY","name":"Bayelsa"},{"code":"BE","name":"Benue"},{"code":"BO","name":"Borno"},{"code":"CR","name":"Cross River"},{"code":"DE","name":"Delta"},{"code":"EB","name":"Ebonyi"},{"code":"ED","name":"Edo"},{"code":"EK","name":"Ekiti"},{"code":"EN","name":"Enugu"},{"code":"GO","name":"Gombe"},{"code":"IM","name":"Imo"},{"code":"JI","name":"Jigawa"},{"code":"KD","name":"Kaduna"},{"code":"KN","name":"Kano"},{"code":"KT","name":"Katsina"},{"code":"KE","name":"Kebbi"},{"code":"KO","name":"Kogi"},{"code":"KW","name":"Kwara"},{"code":"LA","name":"Lagos"},{"code":"NA","name":"Nasarawa"},{"code":"NI","name":"Niger"},{"code":"OG","name":"Ogun"},{"code":"ON","name":"Ondo"},{"code":"OS","name":"Osun"},{"code":"OY","name":"Oyo"},{"code":"PL","name":"Plateau"},{"code":"RI","name":"Rivers"},{"code":"SO","name":"Sokoto"},{"code":"TA","name":"Taraba"},{"code":"YO","name":"Yobe"},{"code":"ZA","name":"Zamfara"}]},{"code":"NU","name":"Niue","states":[]},{"code":"NF","name":"Norfolk Island","states":[]},{"code":"MP","name":"Northern Mariana Islands","states":[]},{"code":"NO","name":"Norway","states":[]},{"code":"OM","name":"Oman","states":[]},{"code":"PK","name":"Pakistan","states":[{"code":"JK","name":"Azad Kashmir"},{"code":"BA","name":"Balochistan"},{"code":"TA","name":"FATA"},{"code":"GB","name":"Gilgit Baltistan"},{"code":"IS","name":"Islamabad Capital Territory"},{"code":"KP","name":"Khyber Pakhtunkhwa"},{"code":"PB","name":"Punjab"},{"code":"SD","name":"Sindh"}]},{"code":"PS","name":"Palestinian Territory","states":[]},{"code":"PA","name":"Panama","states":[{"code":"PA-1","name":"Bocas del Toro"},{"code":"PA-2","name":"Coclé"},{"code":"PA-3","name":"Colón"},{"code":"PA-4","name":"Chiriquí"},{"code":"PA-5","name":"Darién"},{"code":"PA-6","name":"Herrera"},{"code":"PA-7","name":"Los Santos"},{"code":"PA-8","name":"Panamá"},{"code":"PA-9","name":"Veraguas"},{"code":"PA-10","name":"West Panamá"},{"code":"PA-EM","name":"Emberá"},{"code":"PA-KY","name":"Guna Yala"},{"code":"PA-NB","name":"Ngöbe-Buglé"}]},{"code":"PG","name":"Papua New Guinea","states":[]},{"code":"PY","name":"Paraguay","states":[{"code":"PY-ASU","name":"Asunción"},{"code":"PY-1","name":"Concepción"},{"code":"PY-2","name":"San Pedro"},{"code":"PY-3","name":"Cordillera"},{"code":"PY-4","name":"Guairá"},{"code":"PY-5","name":"Caaguazú"},{"code":"PY-6","name":"Caazapá"},{"code":"PY-7","name":"Itapúa"},{"code":"PY-8","name":"Misiones"},{"code":"PY-9","name":"Paraguarí"},{"code":"PY-10","name":"Alto Paraná"},{"code":"PY-11","name":"Central"},{"code":"PY-12","name":"Ñeembucú"},{"code":"PY-13","name":"Amambay"},{"code":"PY-14","name":"Canindeyú"},{"code":"PY-15","name":"Presidente Hayes"},{"code":"PY-16","name":"Alto Paraguay"},{"code":"PY-17","name":"Boquerón"}]},{"code":"PE","name":"Peru","states":[{"code":"CAL","name":"El Callao"},{"code":"LMA","name":"Municipalidad Metropolitana de Lima"},{"code":"AMA","name":"Amazonas"},{"code":"ANC","name":"Ancash"},{"code":"APU","name":"Apurímac"},{"code":"ARE","name":"Arequipa"},{"code":"AYA","name":"Ayacucho"},{"code":"CAJ","name":"Cajamarca"},{"code":"CUS","name":"Cusco"},{"code":"HUV","name":"Huancavelica"},{"code":"HUC","name":"Huánuco"},{"code":"ICA","name":"Ica"},{"code":"JUN","name":"Junín"},{"code":"LAL","name":"La Libertad"},{"code":"LAM","name":"Lambayeque"},{"code":"LIM","name":"Lima"},{"code":"LOR","name":"Loreto"},{"code":"MDD","name":"Madre de Dios"},{"code":"MOQ","name":"Moquegua"},{"code":"PAS","name":"Pasco"},{"code":"PIU","name":"Piura"},{"code":"PUN","name":"Puno"},{"code":"SAM","name":"San Martín"},{"code":"TAC","name":"Tacna"},{"code":"TUM","name":"Tumbes"},{"code":"UCA","name":"Ucayali"}]},{"code":"PH","name":"Philippines","states":[{"code":"ABR","name":"Abra"},{"code":"AGN","name":"Agusan del Norte"},{"code":"AGS","name":"Agusan del Sur"},{"code":"AKL","name":"Aklan"},{"code":"ALB","name":"Albay"},{"code":"ANT","name":"Antique"},{"code":"APA","name":"Apayao"},{"code":"AUR","name":"Aurora"},{"code":"BAS","name":"Basilan"},{"code":"BAN","name":"Bataan"},{"code":"BTN","name":"Batanes"},{"code":"BTG","name":"Batangas"},{"code":"BEN","name":"Benguet"},{"code":"BIL","name":"Biliran"},{"code":"BOH","name":"Bohol"},{"code":"BUK","name":"Bukidnon"},{"code":"BUL","name":"Bulacan"},{"code":"CAG","name":"Cagayan"},{"code":"CAN","name":"Camarines Norte"},{"code":"CAS","name":"Camarines Sur"},{"code":"CAM","name":"Camiguin"},{"code":"CAP","name":"Capiz"},{"code":"CAT","name":"Catanduanes"},{"code":"CAV","name":"Cavite"},{"code":"CEB","name":"Cebu"},{"code":"COM","name":"Compostela Valley"},{"code":"NCO","name":"Cotabato"},{"code":"DAV","name":"Davao del Norte"},{"code":"DAS","name":"Davao del Sur"},{"code":"DAC","name":"Davao Occidental"},{"code":"DAO","name":"Davao Oriental"},{"code":"DIN","name":"Dinagat Islands"},{"code":"EAS","name":"Eastern Samar"},{"code":"GUI","name":"Guimaras"},{"code":"IFU","name":"Ifugao"},{"code":"ILN","name":"Ilocos Norte"},{"code":"ILS","name":"Ilocos Sur"},{"code":"ILI","name":"Iloilo"},{"code":"ISA","name":"Isabela"},{"code":"KAL","name":"Kalinga"},{"code":"LUN","name":"La Union"},{"code":"LAG","name":"Laguna"},{"code":"LAN","name":"Lanao del Norte"},{"code":"LAS","name":"Lanao del Sur"},{"code":"LEY","name":"Leyte"},{"code":"MAG","name":"Maguindanao"},{"code":"MAD","name":"Marinduque"},{"code":"MAS","name":"Masbate"},{"code":"MSC","name":"Misamis Occidental"},{"code":"MSR","name":"Misamis Oriental"},{"code":"MOU","name":"Mountain Province"},{"code":"NEC","name":"Negros Occidental"},{"code":"NER","name":"Negros Oriental"},{"code":"NSA","name":"Northern Samar"},{"code":"NUE","name":"Nueva Ecija"},{"code":"NUV","name":"Nueva Vizcaya"},{"code":"MDC","name":"Occidental Mindoro"},{"code":"MDR","name":"Oriental Mindoro"},{"code":"PLW","name":"Palawan"},{"code":"PAM","name":"Pampanga"},{"code":"PAN","name":"Pangasinan"},{"code":"QUE","name":"Quezon"},{"code":"QUI","name":"Quirino"},{"code":"RIZ","name":"Rizal"},{"code":"ROM","name":"Romblon"},{"code":"WSA","name":"Samar"},{"code":"SAR","name":"Sarangani"},{"code":"SIQ","name":"Siquijor"},{"code":"SOR","name":"Sorsogon"},{"code":"SCO","name":"South Cotabato"},{"code":"SLE","name":"Southern Leyte"},{"code":"SUK","name":"Sultan Kudarat"},{"code":"SLU","name":"Sulu"},{"code":"SUN","name":"Surigao del Norte"},{"code":"SUR","name":"Surigao del Sur"},{"code":"TAR","name":"Tarlac"},{"code":"TAW","name":"Tawi-Tawi"},{"code":"ZMB","name":"Zambales"},{"code":"ZAN","name":"Zamboanga del Norte"},{"code":"ZAS","name":"Zamboanga del Sur"},{"code":"ZSI","name":"Zamboanga Sibugay"},{"code":"00","name":"Metro Manila"}]},{"code":"PN","name":"Pitcairn","states":[]},{"code":"PL","name":"Poland","states":[]},{"code":"PT","name":"Portugal","states":[]},{"code":"PR","name":"Puerto Rico","states":[]},{"code":"QA","name":"Qatar","states":[]},{"code":"RE","name":"Reunion","states":[]},{"code":"RO","name":"Romania","states":[{"code":"AB","name":"Alba"},{"code":"AR","name":"Arad"},{"code":"AG","name":"Argeș"},{"code":"BC","name":"Bacău"},{"code":"BH","name":"Bihor"},{"code":"BN","name":"Bistrița-Năsăud"},{"code":"BT","name":"Botoșani"},{"code":"BR","name":"Brăila"},{"code":"BV","name":"Brașov"},{"code":"B","name":"București"},{"code":"BZ","name":"Buzău"},{"code":"CL","name":"Călărași"},{"code":"CS","name":"Caraș-Severin"},{"code":"CJ","name":"Cluj"},{"code":"CT","name":"Constanța"},{"code":"CV","name":"Covasna"},{"code":"DB","name":"Dâmbovița"},{"code":"DJ","name":"Dolj"},{"code":"GL","name":"Galați"},{"code":"GR","name":"Giurgiu"},{"code":"GJ","name":"Gorj"},{"code":"HR","name":"Harghita"},{"code":"HD","name":"Hunedoara"},{"code":"IL","name":"Ialomița"},{"code":"IS","name":"Iași"},{"code":"IF","name":"Ilfov"},{"code":"MM","name":"Maramureș"},{"code":"MH","name":"Mehedinți"},{"code":"MS","name":"Mureș"},{"code":"NT","name":"Neamț"},{"code":"OT","name":"Olt"},{"code":"PH","name":"Prahova"},{"code":"SJ","name":"Sălaj"},{"code":"SM","name":"Satu Mare"},{"code":"SB","name":"Sibiu"},{"code":"SV","name":"Suceava"},{"code":"TR","name":"Teleorman"},{"code":"TM","name":"Timiș"},{"code":"TL","name":"Tulcea"},{"code":"VL","name":"Vâlcea"},{"code":"VS","name":"Vaslui"},{"code":"VN","name":"Vrancea"}]},{"code":"RU","name":"Russia","states":[]},{"code":"RW","name":"Rwanda","states":[]},{"code":"BL","name":"Saint Barthélemy","states":[]},{"code":"SH","name":"Saint Helena","states":[]},{"code":"KN","name":"Saint Kitts and Nevis","states":[]},{"code":"LC","name":"Saint Lucia","states":[]},{"code":"SX","name":"Saint Martin (Dutch part)","states":[]},{"code":"MF","name":"Saint Martin (French part)","states":[]},{"code":"PM","name":"Saint Pierre and Miquelon","states":[]},{"code":"VC","name":"Saint Vincent and the Grenadines","states":[]},{"code":"WS","name":"Samoa","states":[]},{"code":"SM","name":"San Marino","states":[]},{"code":"ST","name":"São Tomé and Príncipe","states":[]},{"code":"SA","name":"Saudi Arabia","states":[]},{"code":"SN","name":"Senegal","states":[]},{"code":"SC","name":"Seychelles","states":[]},{"code":"SL","name":"Sierra Leone","states":[]},{"code":"SG","name":"Singapore","states":[]},{"code":"SK","name":"Slovakia","states":[]},{"code":"SI","name":"Slovenia","states":[]},{"code":"SB","name":"Solomon Islands","states":[]},{"code":"SO","name":"Somalia","states":[]},{"code":"ZA","name":"South Africa","states":[{"code":"EC","name":"Eastern Cape"},{"code":"FS","name":"Free State"},{"code":"GP","name":"Gauteng"},{"code":"KZN","name":"KwaZulu-Natal"},{"code":"LP","name":"Limpopo"},{"code":"MP","name":"Mpumalanga"},{"code":"NC","name":"Northern Cape"},{"code":"NW","name":"North West"},{"code":"WC","name":"Western Cape"}]},{"code":"GS","name":"South Georgia/Sandwich Islands","states":[]},{"code":"KR","name":"South Korea","states":[]},{"code":"ES","name":"Spain","states":[{"code":"C","name":"A Coruña"},{"code":"VI","name":"Araba/Álava"},{"code":"AB","name":"Albacete"},{"code":"A","name":"Alicante"},{"code":"AL","name":"Almería"},{"code":"O","name":"Asturias"},{"code":"AV","name":"Ávila"},{"code":"BA","name":"Badajoz"},{"code":"PM","name":"Baleares"},{"code":"B","name":"Barcelona"},{"code":"BU","name":"Burgos"},{"code":"CC","name":"Cáceres"},{"code":"CA","name":"Cádiz"},{"code":"S","name":"Cantabria"},{"code":"CS","name":"Castellón"},{"code":"CE","name":"Ceuta"},{"code":"CR","name":"Ciudad Real"},{"code":"CO","name":"Córdoba"},{"code":"CU","name":"Cuenca"},{"code":"GI","name":"Girona"},{"code":"GR","name":"Granada"},{"code":"GU","name":"Guadalajara"},{"code":"SS","name":"Gipuzkoa"},{"code":"H","name":"Huelva"},{"code":"HU","name":"Huesca"},{"code":"J","name":"Jaén"},{"code":"LO","name":"La Rioja"},{"code":"GC","name":"Las Palmas"},{"code":"LE","name":"León"},{"code":"L","name":"Lleida"},{"code":"LU","name":"Lugo"},{"code":"M","name":"Madrid"},{"code":"MA","name":"Málaga"},{"code":"ML","name":"Melilla"},{"code":"MU","name":"Murcia"},{"code":"NA","name":"Navarra"},{"code":"OR","name":"Ourense"},{"code":"P","name":"Palencia"},{"code":"PO","name":"Pontevedra"},{"code":"SA","name":"Salamanca"},{"code":"TF","name":"Santa Cruz de Tenerife"},{"code":"SG","name":"Segovia"},{"code":"SE","name":"Sevilla"},{"code":"SO","name":"Soria"},{"code":"T","name":"Tarragona"},{"code":"TE","name":"Teruel"},{"code":"TO","name":"Toledo"},{"code":"V","name":"Valencia"},{"code":"VA","name":"Valladolid"},{"code":"BI","name":"Biscay"},{"code":"ZA","name":"Zamora"},{"code":"Z","name":"Zaragoza"}]},{"code":"LK","name":"Sri Lanka","states":[]},{"code":"SR","name":"Suriname","states":[]},{"code":"SJ","name":"Svalbard and Jan Mayen","states":[]},{"code":"SE","name":"Sweden","states":[]},{"code":"CH","name":"Switzerland","states":[{"code":"AG","name":"Aargau"},{"code":"AR","name":"Appenzell Ausserrhoden"},{"code":"AI","name":"Appenzell Innerrhoden"},{"code":"BL","name":"Basel-Landschaft"},{"code":"BS","name":"Basel-Stadt"},{"code":"BE","name":"Bern"},{"code":"FR","name":"Fribourg"},{"code":"GE","name":"Geneva"},{"code":"GL","name":"Glarus"},{"code":"GR","name":"Graubünden"},{"code":"JU","name":"Jura"},{"code":"LU","name":"Luzern"},{"code":"NE","name":"Neuchâtel"},{"code":"NW","name":"Nidwalden"},{"code":"OW","name":"Obwalden"},{"code":"SH","name":"Schaffhausen"},{"code":"SZ","name":"Schwyz"},{"code":"SO","name":"Solothurn"},{"code":"SG","name":"St. Gallen"},{"code":"TG","name":"Thurgau"},{"code":"TI","name":"Ticino"},{"code":"UR","name":"Uri"},{"code":"VS","name":"Valais"},{"code":"VD","name":"Vaud"},{"code":"ZG","name":"Zug"},{"code":"ZH","name":"Zürich"}]},{"code":"SY","name":"Syria","states":[]},{"code":"TW","name":"Taiwan","states":[]},{"code":"TJ","name":"Tajikistan","states":[]},{"code":"TZ","name":"Tanzania","states":[{"code":"TZ01","name":"Arusha"},{"code":"TZ02","name":"Dar es Salaam"},{"code":"TZ03","name":"Dodoma"},{"code":"TZ04","name":"Iringa"},{"code":"TZ05","name":"Kagera"},{"code":"TZ06","name":"Pemba North"},{"code":"TZ07","name":"Zanzibar North"},{"code":"TZ08","name":"Kigoma"},{"code":"TZ09","name":"Kilimanjaro"},{"code":"TZ10","name":"Pemba South"},{"code":"TZ11","name":"Zanzibar South"},{"code":"TZ12","name":"Lindi"},{"code":"TZ13","name":"Mara"},{"code":"TZ14","name":"Mbeya"},{"code":"TZ15","name":"Zanzibar West"},{"code":"TZ16","name":"Morogoro"},{"code":"TZ17","name":"Mtwara"},{"code":"TZ18","name":"Mwanza"},{"code":"TZ19","name":"Coast"},{"code":"TZ20","name":"Rukwa"},{"code":"TZ21","name":"Ruvuma"},{"code":"TZ22","name":"Shinyanga"},{"code":"TZ23","name":"Singida"},{"code":"TZ24","name":"Tabora"},{"code":"TZ25","name":"Tanga"},{"code":"TZ26","name":"Manyara"},{"code":"TZ27","name":"Geita"},{"code":"TZ28","name":"Katavi"},{"code":"TZ29","name":"Njombe"},{"code":"TZ30","name":"Simiyu"}]},{"code":"TH","name":"Thailand","states":[{"code":"TH-37","name":"Amnat Charoen"},{"code":"TH-15","name":"Ang Thong"},{"code":"TH-14","name":"Ayutthaya"},{"code":"TH-10","name":"Bangkok"},{"code":"TH-38","name":"Bueng Kan"},{"code":"TH-31","name":"Buri Ram"},{"code":"TH-24","name":"Chachoengsao"},{"code":"TH-18","name":"Chai Nat"},{"code":"TH-36","name":"Chaiyaphum"},{"code":"TH-22","name":"Chanthaburi"},{"code":"TH-50","name":"Chiang Mai"},{"code":"TH-57","name":"Chiang Rai"},{"code":"TH-20","name":"Chonburi"},{"code":"TH-86","name":"Chumphon"},{"code":"TH-46","name":"Kalasin"},{"code":"TH-62","name":"Kamphaeng Phet"},{"code":"TH-71","name":"Kanchanaburi"},{"code":"TH-40","name":"Khon Kaen"},{"code":"TH-81","name":"Krabi"},{"code":"TH-52","name":"Lampang"},{"code":"TH-51","name":"Lamphun"},{"code":"TH-42","name":"Loei"},{"code":"TH-16","name":"Lopburi"},{"code":"TH-58","name":"Mae Hong Son"},{"code":"TH-44","name":"Maha Sarakham"},{"code":"TH-49","name":"Mukdahan"},{"code":"TH-26","name":"Nakhon Nayok"},{"code":"TH-73","name":"Nakhon Pathom"},{"code":"TH-48","name":"Nakhon Phanom"},{"code":"TH-30","name":"Nakhon Ratchasima"},{"code":"TH-60","name":"Nakhon Sawan"},{"code":"TH-80","name":"Nakhon Si Thammarat"},{"code":"TH-55","name":"Nan"},{"code":"TH-96","name":"Narathiwat"},{"code":"TH-39","name":"Nong Bua Lam Phu"},{"code":"TH-43","name":"Nong Khai"},{"code":"TH-12","name":"Nonthaburi"},{"code":"TH-13","name":"Pathum Thani"},{"code":"TH-94","name":"Pattani"},{"code":"TH-82","name":"Phang Nga"},{"code":"TH-93","name":"Phatthalung"},{"code":"TH-56","name":"Phayao"},{"code":"TH-67","name":"Phetchabun"},{"code":"TH-76","name":"Phetchaburi"},{"code":"TH-66","name":"Phichit"},{"code":"TH-65","name":"Phitsanulok"},{"code":"TH-54","name":"Phrae"},{"code":"TH-83","name":"Phuket"},{"code":"TH-25","name":"Prachin Buri"},{"code":"TH-77","name":"Prachuap Khiri Khan"},{"code":"TH-85","name":"Ranong"},{"code":"TH-70","name":"Ratchaburi"},{"code":"TH-21","name":"Rayong"},{"code":"TH-45","name":"Roi Et"},{"code":"TH-27","name":"Sa Kaeo"},{"code":"TH-47","name":"Sakon Nakhon"},{"code":"TH-11","name":"Samut Prakan"},{"code":"TH-74","name":"Samut Sakhon"},{"code":"TH-75","name":"Samut Songkhram"},{"code":"TH-19","name":"Saraburi"},{"code":"TH-91","name":"Satun"},{"code":"TH-17","name":"Sing Buri"},{"code":"TH-33","name":"Sisaket"},{"code":"TH-90","name":"Songkhla"},{"code":"TH-64","name":"Sukhothai"},{"code":"TH-72","name":"Suphan Buri"},{"code":"TH-84","name":"Surat Thani"},{"code":"TH-32","name":"Surin"},{"code":"TH-63","name":"Tak"},{"code":"TH-92","name":"Trang"},{"code":"TH-23","name":"Trat"},{"code":"TH-34","name":"Ubon Ratchathani"},{"code":"TH-41","name":"Udon Thani"},{"code":"TH-61","name":"Uthai Thani"},{"code":"TH-53","name":"Uttaradit"},{"code":"TH-95","name":"Yala"},{"code":"TH-35","name":"Yasothon"}]},{"code":"TL","name":"Timor-Leste","states":[]},{"code":"TG","name":"Togo","states":[]},{"code":"TK","name":"Tokelau","states":[]},{"code":"TO","name":"Tonga","states":[]},{"code":"TT","name":"Trinidad and Tobago","states":[]},{"code":"TN","name":"Tunisia","states":[]},{"code":"TR","name":"Turkey","states":[{"code":"TR01","name":"Adana"},{"code":"TR02","name":"Adıyaman"},{"code":"TR03","name":"Afyon"},{"code":"TR04","name":"Ağrı"},{"code":"TR05","name":"Amasya"},{"code":"TR06","name":"Ankara"},{"code":"TR07","name":"Antalya"},{"code":"TR08","name":"Artvin"},{"code":"TR09","name":"Aydın"},{"code":"TR10","name":"Balıkesir"},{"code":"TR11","name":"Bilecik"},{"code":"TR12","name":"Bingöl"},{"code":"TR13","name":"Bitlis"},{"code":"TR14","name":"Bolu"},{"code":"TR15","name":"Burdur"},{"code":"TR16","name":"Bursa"},{"code":"TR17","name":"Çanakkale"},{"code":"TR18","name":"Çankırı"},{"code":"TR19","name":"Çorum"},{"code":"TR20","name":"Denizli"},{"code":"TR21","name":"Diyarbakır"},{"code":"TR22","name":"Edirne"},{"code":"TR23","name":"Elazığ"},{"code":"TR24","name":"Erzincan"},{"code":"TR25","name":"Erzurum"},{"code":"TR26","name":"Eskişehir"},{"code":"TR27","name":"Gaziantep"},{"code":"TR28","name":"Giresun"},{"code":"TR29","name":"Gümüşhane"},{"code":"TR30","name":"Hakkari"},{"code":"TR31","name":"Hatay"},{"code":"TR32","name":"Isparta"},{"code":"TR33","name":"İçel"},{"code":"TR34","name":"İstanbul"},{"code":"TR35","name":"İzmir"},{"code":"TR36","name":"Kars"},{"code":"TR37","name":"Kastamonu"},{"code":"TR38","name":"Kayseri"},{"code":"TR39","name":"Kırklareli"},{"code":"TR40","name":"Kırşehir"},{"code":"TR41","name":"Kocaeli"},{"code":"TR42","name":"Konya"},{"code":"TR43","name":"Kütahya"},{"code":"TR44","name":"Malatya"},{"code":"TR45","name":"Manisa"},{"code":"TR46","name":"Kahramanmaraş"},{"code":"TR47","name":"Mardin"},{"code":"TR48","name":"Muğla"},{"code":"TR49","name":"Muş"},{"code":"TR50","name":"Nevşehir"},{"code":"TR51","name":"Niğde"},{"code":"TR52","name":"Ordu"},{"code":"TR53","name":"Rize"},{"code":"TR54","name":"Sakarya"},{"code":"TR55","name":"Samsun"},{"code":"TR56","name":"Siirt"},{"code":"TR57","name":"Sinop"},{"code":"TR58","name":"Sivas"},{"code":"TR59","name":"Tekirdağ"},{"code":"TR60","name":"Tokat"},{"code":"TR61","name":"Trabzon"},{"code":"TR62","name":"Tunceli"},{"code":"TR63","name":"Şanlıurfa"},{"code":"TR64","name":"Uşak"},{"code":"TR65","name":"Van"},{"code":"TR66","name":"Yozgat"},{"code":"TR67","name":"Zonguldak"},{"code":"TR68","name":"Aksaray"},{"code":"TR69","name":"Bayburt"},{"code":"TR70","name":"Karaman"},{"code":"TR71","name":"Kırıkkale"},{"code":"TR72","name":"Batman"},{"code":"TR73","name":"Şırnak"},{"code":"TR74","name":"Bartın"},{"code":"TR75","name":"Ardahan"},{"code":"TR76","name":"Iğdır"},{"code":"TR77","name":"Yalova"},{"code":"TR78","name":"Karabük"},{"code":"TR79","name":"Kilis"},{"code":"TR80","name":"Osmaniye"},{"code":"TR81","name":"Düzce"}]},{"code":"TM","name":"Turkmenistan","states":[]},{"code":"TC","name":"Turks and Caicos Islands","states":[]},{"code":"TV","name":"Tuvalu","states":[]},{"code":"UG","name":"Uganda","states":[{"code":"UG314","name":"Abim"},{"code":"UG301","name":"Adjumani"},{"code":"UG322","name":"Agago"},{"code":"UG323","name":"Alebtong"},{"code":"UG315","name":"Amolatar"},{"code":"UG324","name":"Amudat"},{"code":"UG216","name":"Amuria"},{"code":"UG316","name":"Amuru"},{"code":"UG302","name":"Apac"},{"code":"UG303","name":"Arua"},{"code":"UG217","name":"Budaka"},{"code":"UG218","name":"Bududa"},{"code":"UG201","name":"Bugiri"},{"code":"UG235","name":"Bugweri"},{"code":"UG420","name":"Buhweju"},{"code":"UG117","name":"Buikwe"},{"code":"UG219","name":"Bukedea"},{"code":"UG118","name":"Bukomansimbi"},{"code":"UG220","name":"Bukwa"},{"code":"UG225","name":"Bulambuli"},{"code":"UG416","name":"Buliisa"},{"code":"UG401","name":"Bundibugyo"},{"code":"UG430","name":"Bunyangabu"},{"code":"UG402","name":"Bushenyi"},{"code":"UG202","name":"Busia"},{"code":"UG221","name":"Butaleja"},{"code":"UG119","name":"Butambala"},{"code":"UG233","name":"Butebo"},{"code":"UG120","name":"Buvuma"},{"code":"UG226","name":"Buyende"},{"code":"UG317","name":"Dokolo"},{"code":"UG121","name":"Gomba"},{"code":"UG304","name":"Gulu"},{"code":"UG403","name":"Hoima"},{"code":"UG417","name":"Ibanda"},{"code":"UG203","name":"Iganga"},{"code":"UG418","name":"Isingiro"},{"code":"UG204","name":"Jinja"},{"code":"UG318","name":"Kaabong"},{"code":"UG404","name":"Kabale"},{"code":"UG405","name":"Kabarole"},{"code":"UG213","name":"Kaberamaido"},{"code":"UG427","name":"Kagadi"},{"code":"UG428","name":"Kakumiro"},{"code":"UG101","name":"Kalangala"},{"code":"UG222","name":"Kaliro"},{"code":"UG122","name":"Kalungu"},{"code":"UG102","name":"Kampala"},{"code":"UG205","name":"Kamuli"},{"code":"UG413","name":"Kamwenge"},{"code":"UG414","name":"Kanungu"},{"code":"UG206","name":"Kapchorwa"},{"code":"UG236","name":"Kapelebyong"},{"code":"UG126","name":"Kasanda"},{"code":"UG406","name":"Kasese"},{"code":"UG207","name":"Katakwi"},{"code":"UG112","name":"Kayunga"},{"code":"UG407","name":"Kibaale"},{"code":"UG103","name":"Kiboga"},{"code":"UG227","name":"Kibuku"},{"code":"UG432","name":"Kikuube"},{"code":"UG419","name":"Kiruhura"},{"code":"UG421","name":"Kiryandongo"},{"code":"UG408","name":"Kisoro"},{"code":"UG305","name":"Kitgum"},{"code":"UG319","name":"Koboko"},{"code":"UG325","name":"Kole"},{"code":"UG306","name":"Kotido"},{"code":"UG208","name":"Kumi"},{"code":"UG333","name":"Kwania"},{"code":"UG228","name":"Kween"},{"code":"UG123","name":"Kyankwanzi"},{"code":"UG422","name":"Kyegegwa"},{"code":"UG415","name":"Kyenjojo"},{"code":"UG125","name":"Kyotera"},{"code":"UG326","name":"Lamwo"},{"code":"UG307","name":"Lira"},{"code":"UG229","name":"Luuka"},{"code":"UG104","name":"Luwero"},{"code":"UG124","name":"Lwengo"},{"code":"UG114","name":"Lyantonde"},{"code":"UG223","name":"Manafwa"},{"code":"UG320","name":"Maracha"},{"code":"UG105","name":"Masaka"},{"code":"UG409","name":"Masindi"},{"code":"UG214","name":"Mayuge"},{"code":"UG209","name":"Mbale"},{"code":"UG410","name":"Mbarara"},{"code":"UG423","name":"Mitooma"},{"code":"UG115","name":"Mityana"},{"code":"UG308","name":"Moroto"},{"code":"UG309","name":"Moyo"},{"code":"UG106","name":"Mpigi"},{"code":"UG107","name":"Mubende"},{"code":"UG108","name":"Mukono"},{"code":"UG334","name":"Nabilatuk"},{"code":"UG311","name":"Nakapiripirit"},{"code":"UG116","name":"Nakaseke"},{"code":"UG109","name":"Nakasongola"},{"code":"UG230","name":"Namayingo"},{"code":"UG234","name":"Namisindwa"},{"code":"UG224","name":"Namutumba"},{"code":"UG327","name":"Napak"},{"code":"UG310","name":"Nebbi"},{"code":"UG231","name":"Ngora"},{"code":"UG424","name":"Ntoroko"},{"code":"UG411","name":"Ntungamo"},{"code":"UG328","name":"Nwoya"},{"code":"UG331","name":"Omoro"},{"code":"UG329","name":"Otuke"},{"code":"UG321","name":"Oyam"},{"code":"UG312","name":"Pader"},{"code":"UG332","name":"Pakwach"},{"code":"UG210","name":"Pallisa"},{"code":"UG110","name":"Rakai"},{"code":"UG429","name":"Rubanda"},{"code":"UG425","name":"Rubirizi"},{"code":"UG431","name":"Rukiga"},{"code":"UG412","name":"Rukungiri"},{"code":"UG111","name":"Sembabule"},{"code":"UG232","name":"Serere"},{"code":"UG426","name":"Sheema"},{"code":"UG215","name":"Sironko"},{"code":"UG211","name":"Soroti"},{"code":"UG212","name":"Tororo"},{"code":"UG113","name":"Wakiso"},{"code":"UG313","name":"Yumbe"},{"code":"UG330","name":"Zombo"}]},{"code":"UA","name":"Ukraine","states":[{"code":"VN","name":"Vinnytsia Oblast"},{"code":"VL","name":"Volyn Oblast"},{"code":"DP","name":"Dnipropetrovsk Oblast"},{"code":"DT","name":"Donetsk Oblast"},{"code":"ZT","name":"Zhytomyr Oblast"},{"code":"ZK","name":"Zakarpattia Oblast"},{"code":"ZP","name":"Zaporizhzhia Oblast"},{"code":"IF","name":"Ivano-Frankivsk Oblast"},{"code":"KV","name":"Kyiv Oblast"},{"code":"KH","name":"Kirovohrad Oblast"},{"code":"LH","name":"Luhansk Oblast"},{"code":"LV","name":"Lviv Oblast"},{"code":"MY","name":"Mykolaiv Oblast"},{"code":"OD","name":"Odessa Oblast"},{"code":"PL","name":"Poltava Oblast"},{"code":"RV","name":"Rivne Oblast"},{"code":"SM","name":"Sumy Oblast"},{"code":"TP","name":"Ternopil Oblast"},{"code":"KK","name":"Kharkiv Oblast"},{"code":"KS","name":"Kherson Oblast"},{"code":"KM","name":"Khmelnytskyi Oblast"},{"code":"CK","name":"Cherkasy Oblast"},{"code":"CH","name":"Chernihiv Oblast"},{"code":"CV","name":"Chernivtsi Oblast"}]},{"code":"AE","name":"United Arab Emirates","states":[]},{"code":"GB","name":"United Kingdom (UK)","states":[]},{"code":"US","name":"United States (US)","states":[{"code":"AL","name":"Alabama"},{"code":"AK","name":"Alaska"},{"code":"AZ","name":"Arizona"},{"code":"AR","name":"Arkansas"},{"code":"CA","name":"California"},{"code":"CO","name":"Colorado"},{"code":"CT","name":"Connecticut"},{"code":"DE","name":"Delaware"},{"code":"DC","name":"District Of Columbia"},{"code":"FL","name":"Florida"},{"code":"GA","name":"Georgia"},{"code":"HI","name":"Hawaii"},{"code":"ID","name":"Idaho"},{"code":"IL","name":"Illinois"},{"code":"IN","name":"Indiana"},{"code":"IA","name":"Iowa"},{"code":"KS","name":"Kansas"},{"code":"KY","name":"Kentucky"},{"code":"LA","name":"Louisiana"},{"code":"ME","name":"Maine"},{"code":"MD","name":"Maryland"},{"code":"MA","name":"Massachusetts"},{"code":"MI","name":"Michigan"},{"code":"MN","name":"Minnesota"},{"code":"MS","name":"Mississippi"},{"code":"MO","name":"Missouri"},{"code":"MT","name":"Montana"},{"code":"NE","name":"Nebraska"},{"code":"NV","name":"Nevada"},{"code":"NH","name":"New Hampshire"},{"code":"NJ","name":"New Jersey"},{"code":"NM","name":"New Mexico"},{"code":"NY","name":"New York"},{"code":"NC","name":"North Carolina"},{"code":"ND","name":"North Dakota"},{"code":"OH","name":"Ohio"},{"code":"OK","name":"Oklahoma"},{"code":"OR","name":"Oregon"},{"code":"PA","name":"Pennsylvania"},{"code":"RI","name":"Rhode Island"},{"code":"SC","name":"South Carolina"},{"code":"SD","name":"South Dakota"},{"code":"TN","name":"Tennessee"},{"code":"TX","name":"Texas"},{"code":"UT","name":"Utah"},{"code":"VT","name":"Vermont"},{"code":"VA","name":"Virginia"},{"code":"WA","name":"Washington"},{"code":"WV","name":"West Virginia"},{"code":"WI","name":"Wisconsin"},{"code":"WY","name":"Wyoming"},{"code":"AA","name":"Armed Forces (AA)"},{"code":"AE","name":"Armed Forces (AE)"},{"code":"AP","name":"Armed Forces (AP)"}]},{"code":"UM","name":"United States (US) Minor Outlying Islands","states":[{"code":81,"name":"Baker Island"},{"code":84,"name":"Howland Island"},{"code":86,"name":"Jarvis Island"},{"code":67,"name":"Johnston Atoll"},{"code":89,"name":"Kingman Reef"},{"code":71,"name":"Midway Atoll"},{"code":76,"name":"Navassa Island"},{"code":95,"name":"Palmyra Atoll"},{"code":79,"name":"Wake Island"}]},{"code":"UY","name":"Uruguay","states":[{"code":"UY-AR","name":"Artigas"},{"code":"UY-CA","name":"Canelones"},{"code":"UY-CL","name":"Cerro Largo"},{"code":"UY-CO","name":"Colonia"},{"code":"UY-DU","name":"Durazno"},{"code":"UY-FS","name":"Flores"},{"code":"UY-FD","name":"Florida"},{"code":"UY-LA","name":"Lavalleja"},{"code":"UY-MA","name":"Maldonado"},{"code":"UY-MO","name":"Montevideo"},{"code":"UY-PA","name":"Paysandú"},{"code":"UY-RN","name":"Río Negro"},{"code":"UY-RV","name":"Rivera"},{"code":"UY-RO","name":"Rocha"},{"code":"UY-SA","name":"Salto"},{"code":"UY-SJ","name":"San José"},{"code":"UY-SO","name":"Soriano"},{"code":"UY-TA","name":"Tacuarembó"},{"code":"UY-TT","name":"Treinta y Tres"}]},{"code":"UZ","name":"Uzbekistan","states":[]},{"code":"VU","name":"Vanuatu","states":[]},{"code":"VA","name":"Vatican","states":[]},{"code":"VN","name":"Vietnam","states":[]},{"code":"VG","name":"Virgin Islands (British)","states":[]},{"code":"VI","name":"Virgin Islands (US)","states":[]},{"code":"WF","name":"Wallis and Futuna","states":[]},{"code":"EH","name":"Western Sahara","states":[]},{"code":"ZM","name":"Zambia","states":[{"code":"ZM-01","name":"Western"},{"code":"ZM-02","name":"Central"},{"code":"ZM-03","name":"Eastern"},{"code":"ZM-04","name":"Luapula"},{"code":"ZM-05","name":"Northern"},{"code":"ZM-06","name":"North-Western"},{"code":"ZM-07","name":"Southern"},{"code":"ZM-08","name":"Copperbelt"},{"code":"ZM-09","name":"Lusaka"},{"code":"ZM-10","name":"Muchinga"}]}]'),C=JSON.parse('{"AED":"United Arab Emirates dirham (AED) (د.إ)","AFN":"Afghan afghani (AFN) (؋)","ALL":"Albanian lek (ALL) (L)","AMD":"Armenian dram (AMD) (AMD)","ANG":"Netherlands Antillean guilder (ANG) (ƒ)","AOA":"Angolan kwanza (AOA) (Kz)","ARS":"Argentine peso (ARS) ($)","AUD":"Australian dollar (AUD) ($)","AWG":"Aruban florin (AWG) (Afl.)","AZN":"Azerbaijani manat (AZN) (AZN)","BAM":"Bosnia and Herzegovina convertible mark (BAM) (KM)","BBD":"Barbadian dollar (BBD) ($)","BDT":"Bangladeshi taka (BDT) (৳ )","BGN":"Bulgarian lev (BGN) (лв.)","BHD":"Bahraini dinar (BHD) (.د.ب)","BIF":"Burundian franc (BIF) (Fr)","BMD":"Bermudian dollar (BMD) ($)","BND":"Brunei dollar (BND) ($)","BOB":"Bolivian boliviano (BOB) (Bs.)","BRL":"Brazilian real (BRL) (R$)","BSD":"Bahamian dollar (BSD) ($)","BTC":"Bitcoin (BTC) (฿)","BTN":"Bhutanese ngultrum (BTN) (Nu.)","BWP":"Botswana pula (BWP) (P)","BYR":"Belarusian ruble (old) (BYR) (Br)","BYN":"Belarusian ruble (BYN) (Br)","BZD":"Belize dollar (BZD) ($)","CAD":"Canadian dollar (CAD) ($)","CDF":"Congolese franc (CDF) (Fr)","CHF":"Swiss franc (CHF) (CHF)","CLP":"Chilean peso (CLP) ($)","CNY":"Chinese yuan (CNY) (¥)","COP":"Colombian peso (COP) ($)","CRC":"Costa Rican colón (CRC) (₡)","CUC":"Cuban convertible peso (CUC) ($)","CUP":"Cuban peso (CUP) ($)","CVE":"Cape Verdean escudo (CVE) ($)","CZK":"Czech koruna (CZK) (Kč)","DJF":"Djiboutian franc (DJF) (Fr)","DKK":"Danish krone (DKK) (kr.)","DOP":"Dominican peso (DOP) (RD$)","DZD":"Algerian dinar (DZD) (د.ج)","EGP":"Egyptian pound (EGP) (EGP)","ERN":"Eritrean nakfa (ERN) (Nfk)","ETB":"Ethiopian birr (ETB) (Br)","EUR":"Euro (EUR) (€)","FJD":"Fijian dollar (FJD) ($)","FKP":"Falkland Islands pound (FKP) (£)","GBP":"Pound sterling (GBP) (£)","GEL":"Georgian lari (GEL) (₾)","GGP":"Guernsey pound (GGP) (£)","GHS":"Ghana cedi (GHS) (₵)","GIP":"Gibraltar pound (GIP) (£)","GMD":"Gambian dalasi (GMD) (D)","GNF":"Guinean franc (GNF) (Fr)","GTQ":"Guatemalan quetzal (GTQ) (Q)","GYD":"Guyanese dollar (GYD) ($)","HKD":"Hong Kong dollar (HKD) ($)","HNL":"Honduran lempira (HNL) (L)","HRK":"Croatian kuna (HRK) (kn)","HTG":"Haitian gourde (HTG) (G)","HUF":"Hungarian forint (HUF) (Ft)","IDR":"Indonesian rupiah (IDR) (Rp)","ILS":"Israeli new shekel (ILS) (₪)","IMP":"Manx pound (IMP) (£)","INR":"Indian rupee (INR) (₹)","IQD":"Iraqi dinar (IQD) (د.ع)","IRR":"Iranian rial (IRR) (﷼)","IRT":"Iranian toman (IRT) (تومان)","ISK":"Icelandic króna (ISK) (kr.)","JEP":"Jersey pound (JEP) (£)","JMD":"Jamaican dollar (JMD) ($)","JOD":"Jordanian dinar (JOD) (د.ا)","JPY":"Japanese yen (JPY) (¥)","KES":"Kenyan shilling (KES) (KSh)","KGS":"Kyrgyzstani som (KGS) (сом)","KHR":"Cambodian riel (KHR) (៛)","KMF":"Comorian franc (KMF) (Fr)","KPW":"North Korean won (KPW) (₩)","KRW":"South Korean won (KRW) (₩)","KWD":"Kuwaiti dinar (KWD) (د.ك)","KYD":"Cayman Islands dollar (KYD) ($)","KZT":"Kazakhstani tenge (KZT) (₸)","LAK":"Lao kip (LAK) (₭)","LBP":"Lebanese pound (LBP) (ل.ل)","LKR":"Sri Lankan rupee (LKR) (රු)","LRD":"Liberian dollar (LRD) ($)","LSL":"Lesotho loti (LSL) (L)","LYD":"Libyan dinar (LYD) (ل.د)","MAD":"Moroccan dirham (MAD) (د.م.)","MDL":"Moldovan leu (MDL) (MDL)","MGA":"Malagasy ariary (MGA) (Ar)","MKD":"Macedonian denar (MKD) (ден)","MMK":"Burmese kyat (MMK) (Ks)","MNT":"Mongolian tögrög (MNT) (₮)","MOP":"Macanese pataca (MOP) (P)","MRU":"Mauritanian ouguiya (MRU) (UM)","MUR":"Mauritian rupee (MUR) (₨)","MVR":"Maldivian rufiyaa (MVR) (.ރ)","MWK":"Malawian kwacha (MWK) (MK)","MXN":"Mexican peso (MXN) ($)","MYR":"Malaysian ringgit (MYR) (RM)","MZN":"Mozambican metical (MZN) (MT)","NAD":"Namibian dollar (NAD) (N$)","NGN":"Nigerian naira (NGN) (₦)","NIO":"Nicaraguan córdoba (NIO) (C$)","NOK":"Norwegian krone (NOK) (kr)","NPR":"Nepalese rupee (NPR) (₨)","NZD":"New Zealand dollar (NZD) ($)","OMR":"Omani rial (OMR) (ر.ع.)","PAB":"Panamanian balboa (PAB) (B/.)","PEN":"Sol (PEN) (S/)","PGK":"Papua New Guinean kina (PGK) (K)","PHP":"Philippine peso (PHP) (₱)","PKR":"Pakistani rupee (PKR) (₨)","PLN":"Polish złoty (PLN) (zł)","PRB":"Transnistrian ruble (PRB) (р.)","PYG":"Paraguayan guaraní (PYG) (₲)","QAR":"Qatari riyal (QAR) (ر.ق)","RON":"Romanian leu (RON) (lei)","RSD":"Serbian dinar (RSD) (рсд)","RUB":"Russian ruble (RUB) (₽)","RWF":"Rwandan franc (RWF) (Fr)","SAR":"Saudi riyal (SAR) (ر.س)","SBD":"Solomon Islands dollar (SBD) ($)","SCR":"Seychellois rupee (SCR) (₨)","SDG":"Sudanese pound (SDG) (ج.س.)","SEK":"Swedish krona (SEK) (kr)","SGD":"Singapore dollar (SGD) ($)","SHP":"Saint Helena pound (SHP) (£)","SLL":"Sierra Leonean leone (SLL) (Le)","SOS":"Somali shilling (SOS) (Sh)","SRD":"Surinamese dollar (SRD) ($)","SSP":"South Sudanese pound (SSP) (£)","STN":"São Tomé and Príncipe dobra (STN) (Db)","SYP":"Syrian pound (SYP) (ل.س)","SZL":"Swazi lilangeni (SZL) (E)","THB":"Thai baht (THB) (฿)","TJS":"Tajikistani somoni (TJS) (ЅМ)","TMT":"Turkmenistan manat (TMT) (m)","TND":"Tunisian dinar (TND) (د.ت)","TOP":"Tongan paʻanga (TOP) (T$)","TRY":"Turkish lira (TRY) (₺)","TTD":"Trinidad and Tobago dollar (TTD) ($)","TWD":"New Taiwan dollar (TWD) (NT$)","TZS":"Tanzanian shilling (TZS) (Sh)","UAH":"Ukrainian hryvnia (UAH) (₴)","UGX":"Ugandan shilling (UGX) (UGX)","USD":"United States (US) dollar (USD) ($)","UYU":"Uruguayan peso (UYU) ($)","UZS":"Uzbekistani som (UZS) (UZS)","VEF":"Venezuelan bolívar (VEF) (Bs F)","VES":"Bolívar soberano (VES) (Bs.S)","VND":"Vietnamese đồng (VND) (₫)","VUV":"Vanuatu vatu (VUV) (Vt)","WST":"Samoan tālā (WST) (T)","XAF":"Central African CFA franc (XAF) (CFA)","XCD":"East Caribbean dollar (XCD) ($)","XOF":"West African CFA franc (XOF) (CFA)","XPF":"CFP franc (XPF) (Fr)","YER":"Yemeni rial (YER) (﷼)","ZAR":"South African rand (ZAR) (R)","ZMW":"Zambian kwacha (ZMW) (ZK)"}');var T=n(7282),g=n(682),A=n(1340),B=n(5736);const N=()=>{var e,a,n,N;const[M,G]=(0,d.useState)(),D=(0,t.s0)(),b=(0,c.useViewportMatch)("medium"),{setDrawerActiveView:P,setIsDrawerOpened:E,setIsDrawerSuppressed:R,setSidebarActiveView:p,setCurrentOnboardingData:K,setIsHeaderNavigationEnabled:L}=(0,m.useDispatch)(S.h);(0,d.useEffect)((()=>{p(r.Jq),P(r.dv),(async()=>{const e=await(0,T.e)();G(e)})()}),[]);const{currentData:O,newfoldBrand:U}=(0,m.useSelect)((e=>({currentData:e(S.h).getCurrentOnboardingData(),newfoldBrand:e(S.h).getNewfoldBrand()})),[]);(0,d.useEffect)((()=>{if(M){const a=["woocommerce_store_address","woocommerce_store_city","woocommerce_store_postcode","woocommerce_default_country","woocommerce_currency","woocommerce_email_from_address"],n=["woocommerce_default_country","woocommerce_currency"];if(null!==M&&void 0===O.storeDetails.address){var e;const o=(e=>{const a=["woocommerce_store_address","woocommerce_store_city","woocommerce_store_postcode"].every((a=>null===e[a]||""===e[a])),n=[["woocommerce_default_country","US:CA"],["woocommerce_currency","USD"]].every((a=>{let[n,o]=a;return e[n]===o}));return a&&n})(M),d={...M},c=(e=>{switch(e){case"crazy-domains":return{woocommerce_default_country:"AU:NSW",woocommerce_currency:"AUD"};case"bluehost-india":return{woocommerce_default_country:"IN:AP",woocommerce_currency:"INR"};default:return{woocommerce_default_country:"US:AZ",woocommerce_currency:"USD"}}})(U);for(const e of n)(null===d[e]||""===d[e]||o)&&(d[e]=c[e]);K({...O,storeDetails:{...O.storeDetails,address:{...null!==(e=O.storeDetails.address)&&void 0!==e?e:{},...a.reduce(((e,a)=>({...e,[a]:d[a]})),{})}}})}}}),[M,O.storeDetails,U]);const{address:y}=O.storeDetails,H={disabled:void 0===y,onChange:f,onBlur:f},I=null!==(e=null==y?void 0:y.woocommerce_default_country)&&void 0!==e?e:"",[k,w]=I.split(":"),Z=null!==(a=null==y?void 0:y.country)&&void 0!==a?a:k,v=null!==(n=null==h||null===(N=h.find((e=>e.code===Z)))||void 0===N?void 0:N.states)&&void 0!==n?n:[];function f(e){const a=e.target.name,n=e.target.value;let{country:o=Z,state:d}=y;o===k&&void 0===d&&(d=w),0===v.length&&(d="");let c="";["country","state"].includes(a)&&(c="country"===a?d?`${n}:${d}`:n:`${o}:${n}`),K({...O,storeDetails:{...O.storeDetails,address:{...O.storeDetails.address,[a]:n,...""!==c&&{woocommerce_default_country:c}}}})}const V={heading:(0,B.__)("Confirm your business or store address","wp-module-onboarding"),subheading:(0,B.__)("We’ll use this information to help you setup your online store","wp-module-onboarding"),countryInputLabel:(0,B.__)("Where is your store based?","wp-module-onboarding"),addressInputLabel:(0,B.__)("Address","wp-module-onboarding"),cityInputLabel:(0,B.__)("City","wp-module-onboarding"),stateInputLabel:(0,B.__)("State","wp-module-onboarding"),postalCodeInputLabel:(0,B.__)("Postal Code","wp-module-onboarding"),emailInputLabel:(0,B.__)("Email","wp-module-onboarding"),currencyInputLabel:(0,B.__)("What currency do you want to display in your store?","wp-module-onboarding"),requiredText:(0,B.__)("* required","wp-module-onboarding"),buttonText:(0,B.__)("Continue Setup","wp-module-onboarding")};return(0,d.createElement)(A.g,{navigationStateCallback:()=>{b&&E(!0),R(!1),L(!0)}},(0,d.createElement)(s.Z,{isBgPrimary:!0,isCentered:!0},(0,d.createElement)(u.Z,{className:"ecommerce-step nfd-ecommerce-address-step"},(0,d.createElement)("div",{className:"onboarding-ecommerce-step"},(0,d.createElement)("form",{className:"onboarding-ecommerce-step",onSubmit:e=>{e.preventDefault(),e.stopPropagation(),D("/ecommerce/step/tax")},style:{display:"grid",justifyItems:"center"}},(0,d.createElement)("div",{className:"nfd-card-heading center onboarding-ecommerce-step"},(0,d.createElement)(i.Z,{heading:V.heading,subHeading:V.subheading})),(0,d.createElement)(g.Z,{type:"fade-in-disabled",after:void 0!==y},(0,d.createElement)("div",{className:"store-address-form"},(0,d.createElement)("div",{"data-name":"country"},(0,d.createElement)("label",{"aria-required":!0,htmlFor:"country"},V.countryInputLabel),void 0===y?(0,d.createElement)("input",{id:"country",name:"country",type:"text",disabled:!0}):(0,d.createElement)("select",(0,o.Z)({type:"text",name:"country",required:!0,defaultValue:Z},H),h.map((e=>(0,d.createElement)("option",{key:e.code,value:e.code},e.name))))),(0,d.createElement)("div",{"data-name":"woocommerce_store_address"},(0,d.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_address"},V.addressInputLabel),(0,d.createElement)("input",(0,o.Z)({id:"woocommerce_store_address",name:"woocommerce_store_address",type:"text",required:!0,defaultValue:null==y?void 0:y.woocommerce_store_address},H))),(0,d.createElement)("div",{"data-name":"full-address","data-state-empty":0===v.length},(0,d.createElement)("div",{"data-name":"woocommerce_store_city"},(0,d.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_city"},V.cityInputLabel),(0,d.createElement)("input",(0,o.Z)({name:"woocommerce_store_city",id:"woocommerce_store_city",type:"text",required:!0,defaultValue:null==y?void 0:y.woocommerce_store_city},H))),0===v.length||void 0===y?null:(0,d.createElement)("div",{"data-name":"state"},(0,d.createElement)("label",{"aria-required":!0,htmlFor:"state"},V.stateInputLabel),(0,d.createElement)("select",(0,o.Z)({id:"state",type:"text",name:"state",required:!0,defaultValue:Z===k?w:""},H),(0,d.createElement)("option",{key:"",value:"",selected:!0}),v.map((e=>(0,d.createElement)("option",{key:e.code,value:e.code},e.name))))),(0,d.createElement)("div",{"data-name":"woocommerce_store_postcode"},(0,d.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_postcode"},V.postalCodeInputLabel),(0,d.createElement)("input",(0,o.Z)({id:"woocommerce_store_postcode",name:"woocommerce_store_postcode",type:"text",required:!0,defaultValue:null==y?void 0:y.woocommerce_store_postcode},H)))),(0,d.createElement)("div",null,(0,d.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_email_from_address"},V.emailInputLabel),(0,d.createElement)("input",(0,o.Z)({name:"woocommerce_email_from_address",id:"woocommerce_email_from_address",type:"email",required:!0,defaultValue:null==y?void 0:y.woocommerce_email_from_address},H))),(0,d.createElement)("div",null,(0,d.createElement)("label",{htmlFor:"woocommerce_currency"},V.currencyInputLabel),(0,d.createElement)("select",(0,o.Z)({id:"woocommerce_currency",type:"text",name:"woocommerce_currency",value:null==y?void 0:y.woocommerce_currency},H),Object.entries(C).map((e=>{let[a,n]=e;return(0,d.createElement)("option",{key:a,value:a,dangerouslySetInnerHTML:{__html:n}})})))),(0,d.createElement)("em",{style:{display:"inline"}},V.requiredText))),(0,d.createElement)("button",{className:"nfd-nav-card-button nfd-card-button",disabled:void 0===y,type:"submit"},V.buttonText)),(0,d.createElement)(l.Z,null)))))}},7282:(e,a,n)=>{n.d(a,{e:()=>d});var o=n(3768);async function d(){return await(0,o.pn)().catch((()=>({})))}}}]); \ No newline at end of file diff --git a/build/1.6.1/181.js b/build/1.6.1/181.js deleted file mode 100644 index e9f60e87a..000000000 --- a/build/1.6.1/181.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[181],{4401:(e,t,r)=>{r.d(t,{V:()=>l});var a=r(9307),n=r(5791),s=r(4316),o=r(950);const l=e=>{let{title:t,subtitle:r,error:l}=e;return(0,a.createElement)(n.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,a.createElement)(s.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-error-state__logo"}),(0,a.createElement)("h3",{className:"step-error-state__error"},l),(0,a.createElement)(o.Z,null))}},4316:(e,t,r)=>{r.d(t,{Z:()=>n});var a=r(9307);const n=e=>{let{title:t,subtitle:r,children:n}=e;return(0,a.createElement)("div",{className:"nfd-main-heading"},(0,a.createElement)("h2",{className:"nfd-main-heading__title"},t),r&&(0,a.createElement)("h3",{className:"nfd-main-heading__subtitle"},r),n)}},5791:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(9307),n=r(4184),s=r.n(n),o=r(5158),l=r(9250),i=r(2200),u=r(6989),d=r.n(u),c=r(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:r}=e;const n=(0,l.TH)(),u=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==u||u.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,o.speak)(t,"assertive")}(n,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){d()({url:(0,c.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${i.Db}-pageview`,{stepID:n.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=n.pathname}),[n.pathname]),(0,a.createElement)("div",{className:s()("nfd-onboarding-layout",t)},r)};var g=r(682);const h=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},p=e=>{let{className:t="",children:r,isBgPrimary:n=!1,isCentered:o=!1,isVerticallyCentered:l=!1,isContained:i=!1,isPadded:u=!1,isFadeIn:d=!0}=e;const c=i?h:a.Fragment;return(0,a.createElement)(g.Z,{type:d&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(m,{className:s()("nfd-onboarding-layout__common",t,{"is-bg-primary":n},{"is-centered":o},{"is-vertically-centered":l},{"is-padded":u})},(0,a.createElement)(c,null,r)))}},7004:(e,t,r)=>{r.d(t,{L:()=>u,Y:()=>l});var a=r(9307),n=r(5791),s=r(4316),o=r(950);const l=e=>{let{title:t,subtitle:r}=e;return(0,a.createElement)(n.Z,{className:"step-loader",isVerticallyCentered:!0},(0,a.createElement)(s.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-loader__logo-container"},(0,a.createElement)("div",{className:"step-loader__logo"})),(0,a.createElement)(o.Z,null))};var i=r(682);const u=()=>(0,a.createElement)("div",{className:"image-upload-loader--loading-box"},(0,a.createElement)(i.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9307),n=r(4106),s=r(9818),o=r(5736);const l=e=>{let{question:t=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:r=(0,o.__)("Hire our Experts","wp-module-onboarding")}=e;const l=(0,s.select)(n.h).getHireExpertsUrl();return l&&(0,a.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,a.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},r))}},1340:(e,t,r)=>{r.d(t,{U:()=>g,g:()=>b});var a=r(9307),n=r(9818),s=r(4333),o=r(5736),l=r(7004),i=r(4106),u=r(7625),d=r(2200),c=r(4401);var m=r(1589);const g=e=>{let{children:t,navigationStateCallback:r=!1}=e;const g=(0,s.useViewportMatch)("medium"),{storedThemeStatus:h,brandName:p}=(0,n.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),b=(e=>({loader:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:w,setIsDrawerOpened:f,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:_}=(0,n.useDispatch)(i.h),y=async()=>{const e=await(0,u.YL)(d.DY);return null!=e&&e.error?d.vv:e.body.status},S=()=>{switch(h){case d.Rq:case d.GV:return(()=>{if("function"==typeof r)return r();g&&f(!0),v(!1),_(!0)})();default:f(!1),v(!0),_(!1)}};(0,a.useEffect)((()=>{S(),h===d.a0&&(async()=>{const e=await y();switch(e){case d.Zh:setTimeout((async()=>{if(await y()!==d.GV)return w(d.vv);window.location.reload()}),d.YU);break;case d.GV:window.location.reload();break;default:w(e)}})()}),[h]);const E=async()=>(w(d.Zh),(await(0,u.N9)(d.DY,!0,!1)).error?w(d.Rq):window.location.reload());return(0,a.createElement)(a.Fragment,null,(()=>{switch(h){case d.vv:return(0,a.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,o.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,o.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:E,modalExitButtonText:(0,o.__)("Exit to WordPress","wp-module-onboarding")});case d.Rq:return(0,a.createElement)(c.V,{title:b.errorState.title,subtitle:b.errorState.subtitle,error:b.errorState.error});case d.GV:return t;default:return(0,a.createElement)(l.Y,{title:b.loader.title,subtitle:b.loader.subtitle})}})())};var h=r(3421),p=r(1392);const b=e=>{let{children:t,navigationStateCallback:r=!1}=e;const u=(0,s.useViewportMatch)("medium"),[m,g]=(0,a.useState)(d.Sr),{storedPluginsStatus:b,brandName:w}=(0,n.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),f=(e=>({loader:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(w),{updatePluginsStatus:v,setIsDrawerOpened:_,setIsDrawerSuppressed:y,setIsHeaderNavigationEnabled:S}=(0,n.useDispatch)(i.h),E=async()=>{const e=await(0,h.qC)(d.Gv);return null!=e&&e.error?d.sG:e.body.status},N=e=>{switch(e){case d.sG:case d.ye:return(()=>{if("function"==typeof r)return r();u&&_(!0),y(!1),S(!0)})();default:_(!1),y(!0),S(!1)}};(0,a.useEffect)((()=>{N(m)}),[m]);return(0,a.useEffect)((()=>{g(b[d.Gv]),b[d.Gv]===d.Ck&&(async e=>{const t=await E();switch(t){case d.Sr:setTimeout((async()=>{if(await E()!==d.ye)return b[d.Gv]=d.sG,v(b),g(d.sG);window.location.reload()}),d.sr);break;case d.ye:window.location.reload();break;default:e[d.Gv]=t,g(t),v(e)}})(b)}),[b]),(0,a.createElement)(a.Fragment,null,(()=>{switch(m){case d.sG:return(0,a.createElement)(c.V,{title:f.errorState.title,subtitle:f.errorState.subtitle,error:f.errorState.error});case d.ye:return t;default:return(0,a.createElement)(l.Y,{title:f.loader.title,subtitle:f.loader.subtitle})}})())}},4181:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var a=r(9307),n=r(4106),s=r(9818),o=r(9250),l=r(5736),i=r(1392);var u=r(7533),d=r(7004),c=r(3421),m=r(4401),g=r(1340),h=r(2200);const p=()=>{const{setIsDrawerSuppressed:e,setIsHeaderNavigationEnabled:t,setSidebarActiveView:r,updateThemeStatus:p,flushQueue:b}=(0,s.useDispatch)(n.h),w=(0,o.s0)(),[f,v]=(0,a.useState)(!1),{nextStep:_,brandName:y,currentData:S,isQueueEmpty:E,pluginInstallHash:N}=(0,s.useSelect)((e=>({nextStep:e(n.h).getNextStep(),brandName:e(n.h).getNewfoldBrandName(),currentData:e(n.h).getCurrentOnboardingData(),isQueueEmpty:e(n.h).isQueueEmpty(),pluginInstallHash:e(n.h).getPluginInstallHash()})),[]),k=(e=>({loader:{title:(0,l.sprintf)( -/* translators: 1: Brand 2: site */ -(0,l.__)("Hang tight, we’re building your %s %s","wp-module-onboarding"),e,(0,i.I)("site")),subtitle:(0,l.__)("We’re assembling your unique design and installing useful tools","wp-module-onboarding")},errorState:{title:(0,l.sprintf)( -/* translators: 1: Brand 2: site */ -(0,l.__)("Hang tight, we’re building your %s %s","wp-module-onboarding"),e,(0,i.I)("site")),subtitle:(0,l.__)("We’re assembling your unique design and installing useful tools","wp-module-onboarding"),error:(0,l.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(y);async function I(){const e=await(0,u.BN)();return null==e||!e.error}async function D(){var e,t;if(Array.isArray(null==S||null===(e=S.data)||void 0===e?void 0:e.siteFeatures))return!0;const r=await(0,c.uc)(N,{plugins:null==S||null===(t=S.data)||void 0===t?void 0:t.siteFeatures});return null==r||!r.error}return(0,a.useEffect)((()=>{E?(async()=>{await Promise.all([I(),D()]).then((e=>e.forEach((e=>{if(!e)return t(!0),v(!0)})))),w(_.path),p(h.a0)})():b()}),[E]),(0,a.createElement)(g.U,{navigationStateCallback:()=>{t(!1),e(!0),r(!1)}},f?(0,a.createElement)(m.V,{title:k.errorState.title,subtitle:k.errorState.subtitle,error:k.errorState.error}):(0,a.createElement)(d.Y,{title:k.loader.title,subtitle:k.loader.subtitle}))}}}]); \ No newline at end of file diff --git a/build/1.6.1/187.js b/build/1.6.1/187.js deleted file mode 100644 index 9431eb9c3..000000000 --- a/build/1.6.1/187.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[187],{4316:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(9307);const r=e=>{let{title:t,subtitle:n,children:r}=e;return(0,a.createElement)("div",{className:"nfd-main-heading"},(0,a.createElement)("h2",{className:"nfd-main-heading__title"},t),n&&(0,a.createElement)("h3",{className:"nfd-main-heading__subtitle"},n),r)}},5791:(e,t,n)=>{n.d(t,{Z:()=>p});var a=n(9307),r=n(4184),s=n.n(r),i=n(5158),l=n(9250),d=n(2200),c=n(6989),o=n.n(c),u=n(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const r=(0,l.TH)(),c=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==c||c.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,i.speak)(t,"assertive")}(r,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){o()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${d.Db}-pageview`,{stepID:r.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=r.pathname}),[r.pathname]),(0,a.createElement)("div",{className:s()("nfd-onboarding-layout",t)},n)};var h=n(682);const g=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},p=e=>{let{className:t="",children:n,isBgPrimary:r=!1,isCentered:i=!1,isVerticallyCentered:l=!1,isContained:d=!1,isPadded:c=!1,isFadeIn:o=!0}=e;const u=d?g:a.Fragment;return(0,a.createElement)(h.Z,{type:o&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(m,{className:s()("nfd-onboarding-layout__common",t,{"is-bg-primary":r},{"is-centered":i},{"is-vertically-centered":l},{"is-padded":c})},(0,a.createElement)(u,null,n)))}},7187:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var a=n(9307),r=n(9818),s=n(5791),i=n(4316),l=n(2200),d=n(4106),c=n(4333);const o=()=>{const e=(0,c.useViewportMatch)("medium"),{setIsDrawerOpened:t,setDrawerActiveView:n,setSidebarActiveView:o,setIsDrawerSuppressed:u}=(0,r.useDispatch)(d.h);return(0,a.useEffect)((()=>{e&&t(!0),o(l.Jq),u(!1),n(l.BP)}),[]),(0,a.createElement)(s.Z,{isVerticallyCentered:!0},(0,a.createElement)(i.Z,{title:"Error 404",subtitle:"Please Check Again!"}))}}}]); \ No newline at end of file diff --git a/build/1.6.1/193.js b/build/1.6.1/193.js deleted file mode 100644 index 69673553d..000000000 --- a/build/1.6.1/193.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[193],{4401:(e,t,a)=>{a.d(t,{V:()=>i});var r=a(9307),n=a(5791),o=a(4316),s=a(950);const i=e=>{let{title:t,subtitle:a,error:i}=e;return(0,r.createElement)(n.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(o.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},i),(0,r.createElement)(s.Z,null))}},4316:(e,t,a)=>{a.d(t,{Z:()=>n});var r=a(9307);const n=e=>{let{title:t,subtitle:a,children:n}=e;return(0,r.createElement)("div",{className:"nfd-main-heading"},(0,r.createElement)("h2",{className:"nfd-main-heading__title"},t),a&&(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},a),n)}},5791:(e,t,a)=>{a.d(t,{Z:()=>p});var r=a(9307),n=a(4184),o=a.n(n),s=a(5158),i=a(9250),l=a(2200),d=a(6989),u=a.n(d),c=a(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:a}=e;const n=(0,i.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,r.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,s.speak)(t,"assertive")}(n,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){u()({url:(0,c.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${l.Db}-pageview`,{stepID:n.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=n.pathname}),[n.pathname]),(0,r.createElement)("div",{className:o()("nfd-onboarding-layout",t)},a)};var h=a(682);const g=e=>{let{children:t}=e;return(0,r.createElement)("section",{className:"is-contained"},t)},p=e=>{let{className:t="",children:a,isBgPrimary:n=!1,isCentered:s=!1,isVerticallyCentered:i=!1,isContained:l=!1,isPadded:d=!1,isFadeIn:u=!0}=e;const c=l?g:r.Fragment;return(0,r.createElement)(h.Z,{type:u&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,r.createElement)(m,{className:o()("nfd-onboarding-layout__common",t,{"is-bg-primary":n},{"is-centered":s},{"is-vertically-centered":i},{"is-padded":d})},(0,r.createElement)(c,null,a)))}},7004:(e,t,a)=>{a.d(t,{L:()=>d,Y:()=>i});var r=a(9307),n=a(5791),o=a(4316),s=a(950);const i=e=>{let{title:t,subtitle:a}=e;return(0,r.createElement)(n.Z,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(o.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(s.Z,null))};var l=a(682);const d=()=>(0,r.createElement)("div",{className:"image-upload-loader--loading-box"},(0,r.createElement)(l.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,a)=>{a.d(t,{Z:()=>i});var r=a(9307),n=a(4106),o=a(9818),s=a(5736);const i=e=>{let{question:t=(0,s.__)("Need Help?","wp-module-onboarding"),urlLabel:a=(0,s.__)("Hire our Experts","wp-module-onboarding")}=e;const i=(0,o.select)(n.h).getHireExpertsUrl();return i&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,r.createElement)("a",{href:i,target:"_blank",rel:"noreferrer"},a))}},1340:(e,t,a)=>{a.d(t,{U:()=>h,g:()=>w});var r=a(9307),n=a(9818),o=a(4333),s=a(5736),i=a(7004),l=a(4106),d=a(7625),u=a(2200),c=a(4401);var m=a(1589);const h=e=>{let{children:t,navigationStateCallback:a=!1}=e;const h=(0,o.useViewportMatch)("medium"),{storedThemeStatus:g,brandName:p}=(0,n.useSelect)((e=>({storedThemeStatus:e(l.h).getThemeStatus(),brandName:e(l.h).getNewfoldBrandName()})),[]),w=(e=>({loader:{title:(0,s.sprintf)( -/* 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 */ -(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")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:v,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:_}=(0,n.useDispatch)(l.h),y=async()=>{const e=await(0,d.YL)(u.DY);return null!=e&&e.error?u.vv:e.body.status},E=()=>{switch(g){case u.Rq:case u.GV:return(()=>{if("function"==typeof a)return a();h&&v(!0),f(!1),_(!0)})();default:v(!1),f(!0),_(!1)}};(0,r.useEffect)((()=>{E(),g===u.a0&&(async()=>{const e=await y();switch(e){case u.Zh:setTimeout((async()=>{if(await y()!==u.GV)return b(u.vv);window.location.reload()}),u.YU);break;case u.GV:window.location.reload();break;default:b(e)}})()}),[g]);const S=async()=>(b(u.Zh),(await(0,d.N9)(u.DY,!0,!1)).error?b(u.Rq):window.location.reload());return(0,r.createElement)(r.Fragment,null,(()=>{switch(g){case u.vv:return(0,r.createElement)(m.Z,{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:S,modalExitButtonText:(0,s.__)("Exit to WordPress","wp-module-onboarding")});case u.Rq:return(0,r.createElement)(c.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case u.GV:return t;default:return(0,r.createElement)(i.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())};var g=a(3421),p=a(1392);const w=e=>{let{children:t,navigationStateCallback:a=!1}=e;const d=(0,o.useViewportMatch)("medium"),[m,h]=(0,r.useState)(u.Sr),{storedPluginsStatus:w,brandName:b}=(0,n.useSelect)((e=>({storedPluginsStatus:e(l.h).getPluginsStatus(),brandName:e(l.h).getNewfoldBrandName()})),[]),v=(e=>({loader:{title:(0,s.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,s.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,s.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,s.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,s.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:f,setIsDrawerOpened:_,setIsDrawerSuppressed:y,setIsHeaderNavigationEnabled:E}=(0,n.useDispatch)(l.h),S=async()=>{const e=await(0,g.qC)(u.Gv);return null!=e&&e.error?u.sG:e.body.status},N=e=>{switch(e){case u.sG:case u.ye:return(()=>{if("function"==typeof a)return a();d&&_(!0),y(!1),E(!0)})();default:_(!1),y(!0),E(!1)}};(0,r.useEffect)((()=>{N(m)}),[m]);return(0,r.useEffect)((()=>{h(w[u.Gv]),w[u.Gv]===u.Ck&&(async e=>{const t=await S();switch(t){case u.Sr:setTimeout((async()=>{if(await S()!==u.ye)return w[u.Gv]=u.sG,f(w),h(u.sG);window.location.reload()}),u.sr);break;case u.ye:window.location.reload();break;default:e[u.Gv]=t,h(t),f(e)}})(w)}),[w]),(0,r.createElement)(r.Fragment,null,(()=>{switch(m){case u.sG:return(0,r.createElement)(c.V,{title:v.errorState.title,subtitle:v.errorState.subtitle,error:v.errorState.error});case u.ye:return t;default:return(0,r.createElement)(i.Y,{title:v.loader.title,subtitle:v.loader.subtitle})}})())}},3193:(e,t,a)=>{a.r(t),a.d(t,{default:()=>h});var r=a(9307),n=a(9250),o=a(9818),s=a(6138),i=a(4106),l=a(5791),d=a(2200),u=a(4316),c=a(1340),m=a(6332);const h=()=>{var e;const t=["yith-wonder/homepage-1","yith-wonder/homepage-2","yith-wonder/homepage-3"],a={"homepage-1":["yith-wonder/site-header-left-logo-navigation-inline","yith-wonder/homepage-1","yith-wonder/site-footer"],"homepage-2":["yith-wonder/site-header-left-logo-navigation-inline","yith-wonder/homepage-2","yith-wonder/site-footer"],"homepage-3":["yith-wonder/site-header-left-logo-navigation-inline","yith-wonder/homepage-3","yith-wonder/site-footer"]},h=(0,n.TH)(),[g,p]=(0,r.useState)(),[w,b]=(0,r.useState)(0),{currentStep:v,currentData:f,themeStatus:_,themeVariations:y}=(0,o.useSelect)((e=>({currentStep:e(i.h).getStepFromPath(h.pathname),currentData:e(i.h).getCurrentOnboardingData(),themeStatus:e(i.h).getThemeStatus(),themeVariations:e(i.h).getStepPreviewData()})),[]),{setDrawerActiveView:E,setSidebarActiveView:S,setCurrentOnboardingData:N,updateThemeStatus:k}=(0,o.useDispatch)(i.h);return(0,r.useEffect)((()=>{S(d.Jq),E(d.Yl)}),[]),(0,r.useEffect)((()=>{_===d.GV&&async function(){const e=await(0,s.C)(v.patternId);if(null!=e&&e.error)return k(d.a0);""!==(null==f?void 0:f.data.sitePages.homepage)?b(null==t?void 0:t.indexOf(null==f?void 0:f.data.sitePages.homepage)):(f.data.sitePages={...f.data.sitePages,homepage:t[0]},N(f)),p(function(e){const t=[];for(const r in a){const n=a[r];(f.data.partHeader||""!==f.data.partHeader)&&(n[0]=f.data.partHeader);let o="";n.forEach((t=>{null==e||e.body.forEach((e=>{e.slug===t&&(o+=e.content)}))})),t.push(o)}return t}(e))}()}),[_]),(0,r.createElement)(c.U,null,(0,r.createElement)(m.V3,null,(0,r.createElement)(l.Z,null,(0,r.createElement)("div",{className:"homepage_preview"},(0,r.createElement)(u.Z,{title:null==v?void 0:v.heading,subtitle:null==v?void 0:v.subheading}),(0,r.createElement)("div",{className:"homepage_preview__list"},(0,r.createElement)(m.r9,{watch:g,count:null===(e=y[null==v?void 0:v.patternId])||void 0===e?void 0:e.previewCount,callback:function(){return null==g?void 0:g.map(((e,a)=>e?(0,r.createElement)(m.H,{key:a,className:"homepage_preview__list__item",selected:a===w,blockGrammer:e,viewportWidth:1200,styling:"custom",overlay:!1,onClick:()=>function(e){b(e),f.data.sitePages={...f.data.sitePages,homepage:t[e]},N(f)}(a)}):null))},className:"homepage_preview__list__item",viewportWidth:1200}))))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/216.js b/build/1.6.1/216.js deleted file mode 100644 index cfb9b1300..000000000 --- a/build/1.6.1/216.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[216],{1211:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(9307),o=n(9250),i=n(9818),s=n(4106);const r=e=>{let{text:t,handleClick:n,disabled:o,className:i}=e;return(0,a.createElement)("button",{type:"button",className:`${i} nfd-card-button`,onClick:()=>{n()},disabled:o},t)};var l=n(7533),d=n(2200);const c=e=>{let{text:t,disabled:n}=e;const c=(0,o.s0)(),m=(0,o.TH)(),{nextStep:u,currentData:b}=(0,i.useSelect)((e=>({nextStep:e(s.h).getNextStep(),currentData:e(s.h).getCurrentOnboardingData()})),[m.path]),p=null===u||!1===u;return(0,a.createElement)(r,{className:"nfd-nav-card-button",text:t,handleClick:()=>p?async function(){b&&(b.isComplete=(new Date).getTime(),(0,l.kB)(b));const e="ecommerce"===window.nfdOnboarding.currentFlow?d.br:d.hF;window.location.replace(e)}():c(u.path),disabled:n})}},9519:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(9307);const o=(0,a.memo)((e=>{let{heading:t,subHeading:n,question:o}=e;return(0,a.createElement)("div",null,t&&(0,a.createElement)("h2",{className:"nfd-step-card-heading"},t),n&&(0,a.createElement)("h3",{className:o?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),o&&(0,a.createElement)("h3",{className:"nfd-step-card-question"},o))}))},5791:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(9307),o=n(4184),i=n.n(o),s=n(5158),r=n(9250),l=n(2200),d=n(6989),c=n.n(d),m=n(4704);const u=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const o=(0,r.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,s.speak)(t,"assertive")}(o,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){c()({url:(0,m.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${l.Db}-pageview`,{stepID:o.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=o.pathname}),[o.pathname]),(0,a.createElement)("div",{className:i()("nfd-onboarding-layout",t)},n)};var b=n(682);const p=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},g=e=>{let{className:t="",children:n,isBgPrimary:o=!1,isCentered:s=!1,isVerticallyCentered:r=!1,isContained:l=!1,isPadded:d=!1,isFadeIn:c=!0}=e;const m=l?p:a.Fragment;return(0,a.createElement)(b.Z,{type:c&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(u,{className:i()("nfd-onboarding-layout__common",t,{"is-bg-primary":o},{"is-centered":s},{"is-vertically-centered":r},{"is-padded":d})},(0,a.createElement)(m,null,n)))}},349:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(9307),o=(n(5736),n(4184)),i=n.n(o);const s=e=>{let{className:t="",children:n}=e;return(0,a.createElement)("div",{className:i()("nfd-onboarding-large-card",t)},n)}},2452:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(9307),o=n(682);const i=e=>{let{title:t,text:n,imgType:i,className:s,animationName:r}=e;return(0,a.createElement)("div",{className:s},(0,a.createElement)("div",{className:"tab-text"},(0,a.createElement)("h4",null,t),n),(0,a.createElement)("div",{className:"tab-image"},(0,a.createElement)("div",{className:"tab-img"},(0,a.createElement)(o.Z,{type:r},(0,a.createElement)("div",{className:i})))))}},1056:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(7462),o=n(9307),i=(n(4184),n(2819)),s=n(4333),r=n(9630),l=n(5904);const d=()=>{},c=["menuitem","menuitemradio","menuitemcheckbox"];class m extends o.Component{constructor(){super(...arguments),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}componentWillUnmount(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){const{onlyBrowserTabstops:t}=this.props,n=(t?l.focus.tabbable:l.focus.focusable).find(this.container),a=this.getFocusableIndex(n,e);return a>-1&&e?{index:a,target:e,focusables:n}:null}getFocusableIndex(e,t){const n=e.indexOf(t);if(-1!==n)return n}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:a,onNavigate:o=d,stopNavigationEvents:i}=this.props,s=a(e);if(void 0!==s&&i){e.stopImmediatePropagation();const t=e.target.getAttribute("role");c.includes(t)&&e.preventDefault()}if(!s)return;const r=t(e.target.ownerDocument.activeElement);if(!r)return;const{index:l,focusables:m}=r,u=n?function(e,t,n){const a=e+n;return a<0?t+a:a>=t?a-t:a}(l,m.length,s):l+s;u>=0&&u(0,o.createElement)(m,(0,a.Z)({},e,{forwardedRef:t}));u.displayName="NavigableContainer";const b=(0,o.forwardRef)(u),p=(0,o.forwardRef)((function(e,t){let{role:n="menu",orientation:s="vertical",...l}=e;return(0,o.createElement)(b,(0,a.Z)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:n,"aria-orientation":"presentation"===n?null:s,eventToOffset:e=>{const{keyCode:t}=e;let n=[r.DOWN],a=[r.UP];return"horizontal"===s&&(n=[r.RIGHT],a=[r.LEFT]),"both"===s&&(n=[r.RIGHT,r.DOWN],a=[r.LEFT,r.UP]),(0,i.includes)(n,t)?1:(0,i.includes)(a,t)?-1:(0,i.includes)([r.DOWN,r.UP,r.LEFT,r.RIGHT],t)?0:void 0}},l))}));(0,o.forwardRef)((function(e,t){let{eventToOffset:n,...i}=e;return(0,o.createElement)(b,(0,a.Z)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:e=>{const{keyCode:t,shiftKey:a}=e;return r.TAB===t?a?-1:1:n?n(e):void 0}},i))}));var g=n(5609);const h=()=>{},f=e=>{let{tabId:t,onClick:n,children:i,selected:s,...r}=e;return(0,o.createElement)(g.Button,(0,a.Z)({role:"tab",tabIndex:s?null:-1,"aria-selected":s,id:t,onClick:n},r),i)};function v(e){var t;let{className:n,children:a,tabs:r,initialTabName:l,orientation:d="horizontal",activeClass:c="is-active",notActiveClass:m="is-not-active",onSelect:u=h}=e;const b=(0,s.useInstanceId)(v,"tab-panel"),[g,w]=(0,o.useState)(null),E=e=>{w(e),u(e)},y=(0,i.find)(r,{name:g}),N=`${b}-${null!==(t=null==y?void 0:y.name)&&void 0!==t?t:"none"}`;return(0,o.useEffect)((()=>{(0,i.find)(r,{name:g})||w(l||(r.length>0?r[0].name:null))}),[r]),(0,o.createElement)("div",{className:n},(0,o.createElement)(p,{role:"tablist",orientation:d,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},r.map((e=>(0,o.createElement)(f,{className:`components-tab-panel__tabs-item ${e.name===g&&c} ${e.name!==g&&m}`,tabId:`${b}-${e.name}`,"aria-controls":`${b}-${e.name}-view`,selected:e.name===g,key:e.name,onMouseOver:(0,i.partial)(E,e.name)},e.title)))),y&&(0,o.createElement)("div",{key:N,"aria-labelledby":N,role:"tabpanel",id:`${N}-view`,className:"components-tab-panel__tab-content"},a(y)))}},3216:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var a=n(9307),o=n(9818),i=n(5791),s=n(349),r=n(9519),l=n(1211),d=n(2452),c=n(1056),m=n(4106),u=n(2200),b=n(1392),p=n(5736);const g=()=>{const{setIsDrawerOpened:e,setSidebarActiveView:t,setIsHeaderNavigationEnabled:n}=(0,o.useDispatch)(m.h);(0,a.useEffect)((()=>{e(!1),t(u.Jq),n(!0)}),[]);const{brandName:g}=(0,o.useSelect)((e=>({brandName:e(m.h).getNewfoldBrandName()}))),h=(e=>({heading:(0,p.__)("Nice work: Your site is ready 🎉","wp-module-onboarding"),subheading:(0,p.__)("Move-in day begins! Let us know if you'd like a hand.","wp-module-onboarding"),buttonText:(0,p.__)("Complete Setup","wp-module-onboarding"),tabs:[{name:(0,p.__)("tab1","wp-module-onboarding"),title:(0,p.__)("WHATS NEXT","wp-module-onboarding"),subtitle:(0,p.__)("Add content, organize your menu and launch.","wp-module-onboarding"),text:(0,p.sprintf)( -/* translators: %s: Brand */ -(0,p.__)("✅ Theme created, features added and Coming Soon mode activated. Thank you for building your site with %s, we're always here to help!","wp-module-onboarding"),e),imgType:"img-1",animationName:"fade-in-right"},{name:(0,p.__)("tab2","wp-module-onboarding"),title:(0,p.__)("HELP & RESOURCES","wp-module-onboarding"),subtitle:(0,p.__)("Next step or next level, we're your partner.","wp-module-onboarding"),text:(0,p.sprintf)( -/* translators: %s: Site */ -(0,p.__)("WordPress make it easy to grow your %s. Send a newsletter, broadcast a podcast, create courses and trainings. Dream it, build it.","wp-module-onboarding"),(0,b.I)("site")),imgType:"img-2",animationName:"fade-in-up"},{name:(0,p.__)("tab3","wp-module-onboarding"),title:(0,p.__)("HIRE OUR EXPERTS","wp-module-onboarding"),subtitle:(0,p.__)("Make our great people your people.","wp-module-onboarding"),text:(0,p.__)("Looking for personalized WordPress assistance, or someone to take-over from here? Go beyond support with our professional services.","wp-module-onboarding"),imgType:"img-3",animationName:"fade-in-left"}]}))(g);return(0,a.createElement)(i.Z,{isCentered:!0,isBgPrimary:!0},(0,a.createElement)(s.Z,null,(0,a.createElement)("div",{className:"whatnext-card"},(0,a.createElement)(r.Z,{heading:h.heading,subHeading:h.subheading}),(0,a.createElement)(c.Z,{className:"nfd-onboarding-overview__tab-panel",tabs:h.tabs.map((e=>({name:e.name,title:e.title,content:(0,a.createElement)(d.Z,{title:e.subtitle,text:e.text,imgType:e.imgType,animationName:e.animationName,className:"tab-data"})})))},(e=>(0,a.createElement)("div",null,e.content))),(0,a.createElement)(l.Z,{text:h.buttonText}))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/253.js b/build/1.6.1/253.js deleted file mode 100644 index 5b819a088..000000000 --- a/build/1.6.1/253.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[253],{1211:(e,a,n)=>{n.d(a,{Z:()=>u});var t=n(9307),s=n(9250),l=n(9818),r=n(4106);const i=e=>{let{text:a,handleClick:n,disabled:s,className:l}=e;return(0,t.createElement)("button",{type:"button",className:`${l} nfd-card-button`,onClick:()=>{n()},disabled:s},a)};var o=n(7533),d=n(2200);const u=e=>{let{text:a,disabled:n}=e;const u=(0,s.s0)(),c=(0,s.TH)(),{nextStep:p,currentData:m}=(0,l.useSelect)((e=>({nextStep:e(r.h).getNextStep(),currentData:e(r.h).getCurrentOnboardingData()})),[c.path]),g=null===p||!1===p;return(0,t.createElement)(i,{className:"nfd-nav-card-button",text:a,handleClick:()=>g?async function(){m&&(m.isComplete=(new Date).getTime(),(0,o.kB)(m));const e="ecommerce"===window.nfdOnboarding.currentFlow?d.br:d.hF;window.location.replace(e)}():u(p.path),disabled:n})}},9519:(e,a,n)=>{n.d(a,{Z:()=>s});var t=n(9307);const s=(0,t.memo)((e=>{let{heading:a,subHeading:n,question:s}=e;return(0,t.createElement)("div",null,a&&(0,t.createElement)("h2",{className:"nfd-step-card-heading"},a),n&&(0,t.createElement)("h3",{className:s?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),s&&(0,t.createElement)("h3",{className:"nfd-step-card-question"},s))}))},5791:(e,a,n)=>{n.d(a,{Z:()=>y});var t=n(9307),s=n(4184),l=n.n(s),r=n(5158),i=n(9250),o=n(2200),d=n(6989),u=n.n(d),c=n(4704);const p=e=>{let{className:a="nfd-onboarding-layout__base",children:n}=e;const s=(0,i.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,t.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,r.speak)(a,"assertive")}(s,"Override"),new class{constructor(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=a}send(){u()({url:(0,c.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${o.Db}-pageview`,{stepID:s.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=s.pathname}),[s.pathname]),(0,t.createElement)("div",{className:l()("nfd-onboarding-layout",a)},n)};var m=n(682);const g=e=>{let{children:a}=e;return(0,t.createElement)("section",{className:"is-contained"},a)},y=e=>{let{className:a="",children:n,isBgPrimary:s=!1,isCentered:r=!1,isVerticallyCentered:i=!1,isContained:o=!1,isPadded:d=!1,isFadeIn:u=!0}=e;const c=o?g:t.Fragment;return(0,t.createElement)(m.Z,{type:u&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,t.createElement)(p,{className:l()("nfd-onboarding-layout__common",a,{"is-bg-primary":s},{"is-centered":r},{"is-vertically-centered":i},{"is-padded":d})},(0,t.createElement)(c,null,n)))}},950:(e,a,n)=>{n.d(a,{Z:()=>i});var t=n(9307),s=n(4106),l=n(9818),r=n(5736);const i=e=>{let{question:a=(0,r.__)("Need Help?","wp-module-onboarding"),urlLabel:n=(0,r.__)("Hire our Experts","wp-module-onboarding")}=e;const i=(0,l.select)(s.h).getHireExpertsUrl();return i&&(0,t.createElement)("div",{className:"nfd-card-need-help-tag"},a,(0,t.createElement)("a",{href:i,target:"_blank",rel:"noreferrer"},n))}},349:(e,a,n)=>{n.d(a,{Z:()=>r});var t=n(9307),s=(n(5736),n(4184)),l=n.n(s);const r=e=>{let{className:a="",children:n}=e;return(0,t.createElement)("div",{className:l()("nfd-onboarding-large-card",a)},n)}},2253:(e,a,n)=>{n.r(a),n.d(a,{default:()=>y});var t=n(9307),s=n(5791),l=n(349),r=n(2200),i=n(5521),o=n(4106),d=n(9818),u=n(9519),c=n(1211),p=n(950),m=n(682),g=n(6557);const y=()=>{var e,a;const{setDrawerActiveView:n,setSidebarActiveView:y,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:b,setCurrentOnboardingData:h}=(0,d.useDispatch)(o.h);(0,t.useEffect)((()=>{y(r.Jq),v(!0),n(r.mz),b(!0),O()}),[]);const f=(0,i.Z)(),[T,w]=(0,t.useState)(!1),[E,_]=(0,t.useState)(),[N,S]=(0,t.useState)(),[k,C]=(0,t.useState)(),[I,x]=(0,t.useState)(""),{currentData:D}=(0,d.useSelect)((e=>({currentData:e(o.h).getCurrentOnboardingData()})),[]),O=async()=>{var e,a,n,t,s,l,r,i,o,d,u,c,p,m,y,v,b;const f=await(0,g.P)(),T=Object.keys(null==f||null===(e=f.body)||void 0===e?void 0:e.types)[0];let w;var E,N,k,I,O,F,H,P,q,R,A,B,U,j,L,$;if(C(T),_(null==f?void 0:f.body),"ecommerce"===(null===(a=window)||void 0===a||null===(n=a.nfdOnboarding)||void 0===n?void 0:n.currentFlow)?(w=["business"],"business"!==(null==D||null===(E=D.data)||void 0===E||null===(N=E.siteType)||void 0===N||null===(k=N.primary)||void 0===k?void 0:k.value)&&(D.data.siteType.primary={refers:"slug",value:"business"})):w=Object.keys(null==f||null===(I=f.body)||void 0===I?void 0:I.types),S(w),"string"==typeof(null==D||null===(t=D.data)||void 0===t||null===(s=t.siteType)||void 0===s?void 0:s.primary)){var K,V;const e=null==D||null===(K=D.data)||void 0===K||null===(V=K.siteType)||void 0===V?void 0:V.primary;D.data.siteType.primary={refers:"custom",value:e},h(D)}if("string"==typeof(null==D||null===(l=D.data)||void 0===l||null===(r=l.siteType)||void 0===r?void 0:r.secondary)){var J,M;const e=null==D||null===(J=D.data)||void 0===J||null===(M=J.siteType)||void 0===M?void 0:M.secondary;D.data.siteType.secondary={refers:"custom",value:e},h(D)}(x(null!==(i=null==D||null===(o=D.data)||void 0===o||null===(d=o.siteType)||void 0===d||null===(u=d.secondary)||void 0===u?void 0:u.value)&&void 0!==i?i:""),""!==(null==D||null===(c=D.data)||void 0===c||null===(p=c.siteType)||void 0===p||null===(m=p.primary)||void 0===m?void 0:m.value))&&("custom"!==(null==D||null===(P=D.data)||void 0===P||null===(q=P.siteType)||void 0===q||null===(R=q.primary)||void 0===R?void 0:R.refers)?C(null==D||null===(A=D.data)||void 0===A||null===(B=A.siteType)||void 0===B||null===(U=B.primary)||void 0===U?void 0:U.value):(C(T),Z(null==D||null===(j=D.data)||void 0===j||null===(L=j.siteType)||void 0===L||null===($=L.secondary)||void 0===$?void 0:$.value)));"custom"===(null==D||null===(y=D.data)||void 0===y||null===(v=y.siteType)||void 0===v||null===(b=v.secondary)||void 0===b?void 0:b.refers)&&Z(null==D||null===(O=D.data)||void 0===O||null===(F=O.siteType)||void 0===F||null===(H=F.secondary)||void 0===H?void 0:H.value)},Z=e=>{w(!0),x(e),D.data.siteType.secondary.refers="custom",D.data.siteType.secondary.value=e,h(D)},F=e=>{w(!1),x(e),D.data.siteType.primary.refers="slug",D.data.siteType.secondary.refers="slug",D.data.siteType.primary.value=k,D.data.siteType.secondary.value=e,h(D)},H=e=>{const a=N.findIndex((e=>k===e));switch(e){case"back":C(N[(a-1+N.length)%N.length]);break;case"next":C(N[(a+1)%N.length])}};return(0,t.createElement)(s.Z,{isBgPrimary:!0,isCentered:!0},(0,t.createElement)(l.Z,null,(0,t.createElement)("div",{className:"nfd-card-heading center"},(0,t.createElement)(u.Z,{heading:f.heading,subHeading:f.subheading,question:f.question})),(0,t.createElement)(m.Z,{type:"fade-in-disabled",after:E},(0,t.createElement)("div",{className:"nfd-setup-secondary-categories"},(0,t.createElement)("div",{className:"nfd-card-sec-category-wrapper"},E&&(0,t.createElement)("div",{className:"category-scrolling-wrapper"},N&&N.length>1&&(0,t.createElement)("div",{className:"category-scrolling-wrapper__left-btn"},(0,t.createElement)("span",{className:"category-scrolling-wrapper__left-btn-icon",onClick:()=>H("back"),onKeyUp:()=>H("back"),role:"button",tabIndex:0,style:{backgroundImage:"var(--chevron-left-icon)"}})),(0,t.createElement)("div",{className:"category-scrolling-wrapper__type"},(0,t.createElement)("span",{className:"category-scrolling-wrapper__type-icon",style:{backgroundImage:`url(${null==E||null===(e=E.types[k])||void 0===e?void 0:e.icon})`}}),(0,t.createElement)("p",{className:"category-scrolling-wrapper__type-text"},` ${null==E||null===(a=E.types[k])||void 0===a?void 0:a.label}`)),N&&N.length>1&&(0,t.createElement)("div",{className:"category-scrolling-wrapper__right-btn"},(0,t.createElement)("span",{className:"category-scrolling-wrapper__right-btn-icon",onClick:()=>H("next"),onKeyUp:()=>H("next"),role:"button",tabIndex:0,style:{backgroundImage:"var(--chevron-right-icon)"}})))),(0,t.createElement)("div",{className:"subCategoriesSection"},E&&(()=>{var e;const a=null==E||null===(e=E.types[k])||void 0===e?void 0:e.secondaryTypes;return Object.keys(a).map(((e,n)=>{var s,l;return(0,t.createElement)("div",{key:null===(s=a[e])||void 0===s?void 0:s.slug,role:"button",tabIndex:n+1,className:(a[e].slug!==I||T?"":"chosenSecondaryCategory ")+"nfd-card-sec-category",onClick:()=>F(a[e].slug),onKeyDown:()=>F(a[e].slug)},(0,t.createElement)("span",{className:"categName"},null===(l=a[e])||void 0===l?void 0:l.label))}))})()),(0,t.createElement)("div",{className:"nfd-setup-primary-custom"},(0,t.createElement)("div",{className:"nfd-setup-primary-custom__tellus-text"},f.customInputLabel),(0,t.createElement)("input",{type:"search",onChange:e=>{var a;return Z(null==e||null===(a=e.target)||void 0===a?void 0:a.value)},className:"nfd-setup-primary-custom__tellus-input",placeholder:f.customInputPlaceholderText,value:T?I:""})))),(0,t.createElement)(c.Z,{text:f.buttonText}),(0,t.createElement)(p.Z,null)))}},5521:(e,a,n)=>{n.d(a,{Z:()=>l});var t=n(5736),s=n(1392);const l=()=>({heading:(0,t.sprintf)( -/* translators: %s: site */ -(0,t.__)("Help us tailor this setup to your %s","wp-module-onboarding"),(0,s.I)("site")),subheading:(0,t.sprintf)( -/* translators: %s: SITE */ -(0,t.__)("ABOUT YOUR %s","wp-module-onboarding"),(0,s.I)("SITE")),question:(0,t.sprintf)( -/* translators: %s: site */ -(0,t.__)("What type of %s is it?","wp-module-onboarding"),(0,s.I)("site")),buttonText:(0,t.__)("Continue Setup","wp-module-onboarding"),customInputPlaceholderText:(0,t.sprintf)( -/* translators: %s: site */ -(0,t.__)("Enter to search your %s type","wp-module-onboarding"),(0,s.I)("site")),customInputLabel:(0,t.__)("or tell us here:","wp-module-onboarding")})},6557:(e,a,n)=>{n.d(a,{P:()=>o});var t=n(6329),s=n(4704);const l=JSON.parse('{"body":{"types":{"business":{"slug":"business","label":"Business","icon":"https://cdn.hiive.space/site-classification/business.svg","emoji":"💼","schema":"Corporation","secondaryTypes":{"agency-consulting":{"primaryType":"business","slug":"agency-consulting","label":"Agency & Consulting"},"arts-crafts":{"primaryType":"business","slug":"arts-crafts","label":"Arts & Crafts"},"autos-repair":{"primaryType":"business","slug":"autos-repair","label":"Autos & Repair"},"child-care":{"primaryType":"business","slug":"child-care","label":"Child Care"},"events":{"primaryType":"business","slug":"events","label":"Events"},"finance":{"primaryType":"business","slug":"finance","label":"Finance"},"garden-florist":{"primaryType":"business","slug":"garden-florist","label":"Florist & Garden Center"},"hr-recruiting":{"primaryType":"business","slug":"hr-recruiting","label":"HR & Recruiting"},"insurance":{"primaryType":"business","slug":"insurance","label":"Insurance"},"legal":{"primaryType":"business","slug":"legal","label":"Legal"},"marketing":{"primaryType":"business","slug":"marketing","label":"Marketing"},"outdoors":{"primaryType":"business","slug":"outdoors","label":"Outdoors"},"pr-communications":{"primaryType":"business","slug":"pr-communications","label":"PR & Communications"},"real-estate-management":{"primaryType":"business","slug":"real-estate-management","label":"Real Estate & Management"},"shopping-retail":{"primaryType":"business","slug":"shopping-retail","label":"Shopping & Retail"},"trades-repair-services":{"primaryType":"business","slug":"trades-repair-services","label":"Trades & Repair Services"},"weddings":{"primaryType":"business","slug":"weddings","label":"Weddings"}}}}}}');var r=n(6989),i=n.n(r);async function o(){const e=await(0,t.D)(i()({url:(0,s.F)("site-classification")}));return 0===e.body.length?l:e}}}]); \ No newline at end of file diff --git a/build/1.6.1/331.js b/build/1.6.1/331.js deleted file mode 100644 index b1e0071e8..000000000 --- a/build/1.6.1/331.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[331],{4401:(e,t,r)=>{r.d(t,{V:()=>l});var a=r(9307),n=r(5791),s=r(4316),o=r(950);const l=e=>{let{title:t,subtitle:r,error:l}=e;return(0,a.createElement)(n.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,a.createElement)(s.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-error-state__logo"}),(0,a.createElement)("h3",{className:"step-error-state__error"},l),(0,a.createElement)(o.Z,null))}},4316:(e,t,r)=>{r.d(t,{Z:()=>n});var a=r(9307);const n=e=>{let{title:t,subtitle:r,children:n}=e;return(0,a.createElement)("div",{className:"nfd-main-heading"},(0,a.createElement)("h2",{className:"nfd-main-heading__title"},t),r&&(0,a.createElement)("h3",{className:"nfd-main-heading__subtitle"},r),n)}},5791:(e,t,r)=>{r.d(t,{Z:()=>w});var a=r(9307),n=r(4184),s=r.n(n),o=r(5158),l=r(9250),i=r(2200),d=r(6989),c=r.n(d),u=r(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:r}=e;const n=(0,l.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,o.speak)(t,"assertive")}(n,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){c()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${i.Db}-pageview`,{stepID:n.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=n.pathname}),[n.pathname]),(0,a.createElement)("div",{className:s()("nfd-onboarding-layout",t)},r)};var h=r(682);const g=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},w=e=>{let{className:t="",children:r,isBgPrimary:n=!1,isCentered:o=!1,isVerticallyCentered:l=!1,isContained:i=!1,isPadded:d=!1,isFadeIn:c=!0}=e;const u=i?g:a.Fragment;return(0,a.createElement)(h.Z,{type:c&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(m,{className:s()("nfd-onboarding-layout__common",t,{"is-bg-primary":n},{"is-centered":o},{"is-vertically-centered":l},{"is-padded":d})},(0,a.createElement)(u,null,r)))}},7004:(e,t,r)=>{r.d(t,{L:()=>d,Y:()=>l});var a=r(9307),n=r(5791),s=r(4316),o=r(950);const l=e=>{let{title:t,subtitle:r}=e;return(0,a.createElement)(n.Z,{className:"step-loader",isVerticallyCentered:!0},(0,a.createElement)(s.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-loader__logo-container"},(0,a.createElement)("div",{className:"step-loader__logo"})),(0,a.createElement)(o.Z,null))};var i=r(682);const d=()=>(0,a.createElement)("div",{className:"image-upload-loader--loading-box"},(0,a.createElement)(i.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9307),n=r(4106),s=r(9818),o=r(5736);const l=e=>{let{question:t=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:r=(0,o.__)("Hire our Experts","wp-module-onboarding")}=e;const l=(0,s.select)(n.h).getHireExpertsUrl();return l&&(0,a.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,a.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},r))}},1340:(e,t,r)=>{r.d(t,{U:()=>h,g:()=>p});var a=r(9307),n=r(9818),s=r(4333),o=r(5736),l=r(7004),i=r(4106),d=r(7625),c=r(2200),u=r(4401);var m=r(1589);const h=e=>{let{children:t,navigationStateCallback:r=!1}=e;const h=(0,s.useViewportMatch)("medium"),{storedThemeStatus:g,brandName:w}=(0,n.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),p=(e=>({loader:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(w),{updateThemeStatus:b,setIsDrawerOpened:_,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:f}=(0,n.useDispatch)(i.h),E=async()=>{const e=await(0,d.YL)(c.DY);return null!=e&&e.error?c.vv:e.body.status},y=()=>{switch(g){case c.Rq:case c.GV:return(()=>{if("function"==typeof r)return r();h&&_(!0),v(!1),f(!0)})();default:_(!1),v(!0),f(!1)}};(0,a.useEffect)((()=>{y(),g===c.a0&&(async()=>{const e=await E();switch(e){case c.Zh:setTimeout((async()=>{if(await E()!==c.GV)return b(c.vv);window.location.reload()}),c.YU);break;case c.GV:window.location.reload();break;default:b(e)}})()}),[g]);const S=async()=>(b(c.Zh),(await(0,d.N9)(c.DY,!0,!1)).error?b(c.Rq):window.location.reload());return(0,a.createElement)(a.Fragment,null,(()=>{switch(g){case c.vv:return(0,a.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,o.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,o.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:S,modalExitButtonText:(0,o.__)("Exit to WordPress","wp-module-onboarding")});case c.Rq:return(0,a.createElement)(u.V,{title:p.errorState.title,subtitle:p.errorState.subtitle,error:p.errorState.error});case c.GV:return t;default:return(0,a.createElement)(l.Y,{title:p.loader.title,subtitle:p.loader.subtitle})}})())};var g=r(3421),w=r(1392);const p=e=>{let{children:t,navigationStateCallback:r=!1}=e;const d=(0,s.useViewportMatch)("medium"),[m,h]=(0,a.useState)(c.Sr),{storedPluginsStatus:p,brandName:b}=(0,n.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),_=(e=>({loader:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,w.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,w.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:v,setIsDrawerOpened:f,setIsDrawerSuppressed:E,setIsHeaderNavigationEnabled:y}=(0,n.useDispatch)(i.h),S=async()=>{const e=await(0,g.qC)(c.Gv);return null!=e&&e.error?c.sG:e.body.status},N=e=>{switch(e){case c.sG:case c.ye:return(()=>{if("function"==typeof r)return r();d&&f(!0),E(!1),y(!0)})();default:f(!1),E(!0),y(!1)}};(0,a.useEffect)((()=>{N(m)}),[m]);return(0,a.useEffect)((()=>{h(p[c.Gv]),p[c.Gv]===c.Ck&&(async e=>{const t=await S();switch(t){case c.Sr:setTimeout((async()=>{if(await S()!==c.ye)return p[c.Gv]=c.sG,v(p),h(c.sG);window.location.reload()}),c.sr);break;case c.ye:window.location.reload();break;default:e[c.Gv]=t,h(t),v(e)}})(p)}),[p]),(0,a.createElement)(a.Fragment,null,(()=>{switch(m){case c.sG:return(0,a.createElement)(u.V,{title:_.errorState.title,subtitle:_.errorState.subtitle,error:_.errorState.error});case c.ye:return t;default:return(0,a.createElement)(l.Y,{title:_.loader.title,subtitle:_.loader.subtitle})}})())}},5331:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var a=r(9307),n=r(9818),s=r(5791),o=r(1340),l=r(6332),i=r(2200),d=r(4106);const c=()=>{const{headerMenu:e}=(0,n.useSelect)((e=>({headerMenu:e(d.h).getHeaderMenuData()})),[]),[t,r]=(0,a.useState)(),{setDrawerActiveView:c,setSidebarActiveView:u}=(0,n.useDispatch)(d.h);return(0,a.useLayoutEffect)((()=>{r(e)}),[e]),(0,a.useEffect)((()=>{u(i.Jq),c(i.qO)}),[]),(0,a.createElement)(o.U,null,(0,a.createElement)(l.V3,null,(0,a.createElement)(s.Z,{className:"theme-header-menu-preview"},(0,a.createElement)("div",{className:"theme-header-menu-preview__title-bar"},(0,a.createElement)("div",{className:"theme-header-menu-preview__title-bar__browser"},(0,a.createElement)("span",{className:"theme-header-menu-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-header-menu-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-header-menu-preview__title-bar__browser__dot"}))),!t&&(0,a.createElement)(l.i5,{styling:"large",viewportWidth:1300}),t&&(0,a.createElement)(l.i5,{blockGrammer:t,styling:"large",viewportWidth:1300}))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/437.js b/build/1.6.1/437.js deleted file mode 100644 index 2120d0cc6..000000000 --- a/build/1.6.1/437.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[437],{4401:(e,t,a)=>{a.d(t,{V:()=>o});var r=a(9307),n=a(5791),s=a(4316),l=a(950);const o=e=>{let{title:t,subtitle:a,error:o}=e;return(0,r.createElement)(n.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(s.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},o),(0,r.createElement)(l.Z,null))}},4316:(e,t,a)=>{a.d(t,{Z:()=>n});var r=a(9307);const n=e=>{let{title:t,subtitle:a,children:n}=e;return(0,r.createElement)("div",{className:"nfd-main-heading"},(0,r.createElement)("h2",{className:"nfd-main-heading__title"},t),a&&(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},a),n)}},5791:(e,t,a)=>{a.d(t,{Z:()=>p});var r=a(9307),n=a(4184),s=a.n(n),l=a(5158),o=a(9250),i=a(2200),d=a(6989),u=a.n(d),c=a(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:a}=e;const n=(0,o.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,r.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,l.speak)(t,"assertive")}(n,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){u()({url:(0,c.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${i.Db}-pageview`,{stepID:n.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=n.pathname}),[n.pathname]),(0,r.createElement)("div",{className:s()("nfd-onboarding-layout",t)},a)};var g=a(682);const h=e=>{let{children:t}=e;return(0,r.createElement)("section",{className:"is-contained"},t)},p=e=>{let{className:t="",children:a,isBgPrimary:n=!1,isCentered:l=!1,isVerticallyCentered:o=!1,isContained:i=!1,isPadded:d=!1,isFadeIn:u=!0}=e;const c=i?h:r.Fragment;return(0,r.createElement)(g.Z,{type:u&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,r.createElement)(m,{className:s()("nfd-onboarding-layout__common",t,{"is-bg-primary":n},{"is-centered":l},{"is-vertically-centered":o},{"is-padded":d})},(0,r.createElement)(c,null,a)))}},7004:(e,t,a)=>{a.d(t,{L:()=>d,Y:()=>o});var r=a(9307),n=a(5791),s=a(4316),l=a(950);const o=e=>{let{title:t,subtitle:a}=e;return(0,r.createElement)(n.Z,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(s.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(l.Z,null))};var i=a(682);const d=()=>(0,r.createElement)("div",{className:"image-upload-loader--loading-box"},(0,r.createElement)(i.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,a)=>{a.d(t,{Z:()=>o});var r=a(9307),n=a(4106),s=a(9818),l=a(5736);const o=e=>{let{question:t=(0,l.__)("Need Help?","wp-module-onboarding"),urlLabel:a=(0,l.__)("Hire our Experts","wp-module-onboarding")}=e;const o=(0,s.select)(n.h).getHireExpertsUrl();return o&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,r.createElement)("a",{href:o,target:"_blank",rel:"noreferrer"},a))}},1340:(e,t,a)=>{a.d(t,{U:()=>g,g:()=>w});var r=a(9307),n=a(9818),s=a(4333),l=a(5736),o=a(7004),i=a(4106),d=a(7625),u=a(2200),c=a(4401);var m=a(1589);const g=e=>{let{children:t,navigationStateCallback:a=!1}=e;const g=(0,s.useViewportMatch)("medium"),{storedThemeStatus:h,brandName:p}=(0,n.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),w=(e=>({loader:{title:(0,l.sprintf)( -/* translators: %s: Brand */ -(0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,l.sprintf)( -/* translators: %s: Brand */ -(0,l.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,l.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,l.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:v,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:_}=(0,n.useDispatch)(i.h),y=async()=>{const e=await(0,d.YL)(u.DY);return null!=e&&e.error?u.vv:e.body.status},E=()=>{switch(h){case u.Rq:case u.GV:return(()=>{if("function"==typeof a)return a();g&&v(!0),f(!1),_(!0)})();default:v(!1),f(!0),_(!1)}};(0,r.useEffect)((()=>{E(),h===u.a0&&(async()=>{const e=await y();switch(e){case u.Zh:setTimeout((async()=>{if(await y()!==u.GV)return b(u.vv);window.location.reload()}),u.YU);break;case u.GV:window.location.reload();break;default:b(e)}})()}),[h]);const S=async()=>(b(u.Zh),(await(0,d.N9)(u.DY,!0,!1)).error?b(u.Rq):window.location.reload());return(0,r.createElement)(r.Fragment,null,(()=>{switch(h){case u.vv:return(0,r.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,l.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,l.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:S,modalExitButtonText:(0,l.__)("Exit to WordPress","wp-module-onboarding")});case u.Rq:return(0,r.createElement)(c.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case u.GV:return t;default:return(0,r.createElement)(o.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())};var h=a(3421),p=a(1392);const w=e=>{let{children:t,navigationStateCallback:a=!1}=e;const d=(0,s.useViewportMatch)("medium"),[m,g]=(0,r.useState)(u.Sr),{storedPluginsStatus:w,brandName:b}=(0,n.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),v=(e=>({loader:{title:(0,l.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,l.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,l.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,l.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,l.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,l.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,l.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:f,setIsDrawerOpened:_,setIsDrawerSuppressed:y,setIsHeaderNavigationEnabled:E}=(0,n.useDispatch)(i.h),S=async()=>{const e=await(0,h.qC)(u.Gv);return null!=e&&e.error?u.sG:e.body.status},N=e=>{switch(e){case u.sG:case u.ye:return(()=>{if("function"==typeof a)return a();d&&_(!0),y(!1),E(!0)})();default:_(!1),y(!0),E(!1)}};(0,r.useEffect)((()=>{N(m)}),[m]);return(0,r.useEffect)((()=>{g(w[u.Gv]),w[u.Gv]===u.Ck&&(async e=>{const t=await S();switch(t){case u.Sr:setTimeout((async()=>{if(await S()!==u.ye)return w[u.Gv]=u.sG,f(w),g(u.sG);window.location.reload()}),u.sr);break;case u.ye:window.location.reload();break;default:e[u.Gv]=t,g(t),f(e)}})(w)}),[w]),(0,r.createElement)(r.Fragment,null,(()=>{switch(m){case u.sG:return(0,r.createElement)(c.V,{title:v.errorState.title,subtitle:v.errorState.subtitle,error:v.errorState.error});case u.ye:return t;default:return(0,r.createElement)(o.Y,{title:v.loader.title,subtitle:v.loader.subtitle})}})())}},3437:(e,t,a)=>{a.r(t),a.d(t,{default:()=>h});var r=a(9307),n=a(9818),s=a(9250),l=a(4106),o=a(5791),i=a(4316),d=a(6138),u=a(2200),c=a(1340),m=a(6332),g=a(1054);const h=()=>{var e;const t=(0,s.TH)(),[a,h]=(0,r.useState)(),[p,w]=(0,r.useState)([]),{currentStep:b,currentData:v,themeStatus:f,themeVariations:_}=(0,n.useSelect)((e=>({currentStep:e(l.h).getStepFromPath(t.pathname),currentData:e(l.h).getCurrentOnboardingData(),themeStatus:e(l.h).getThemeStatus(),themeVariations:e(l.h).getStepPreviewData()})),[]),{setDrawerActiveView:y,setSidebarActiveView:E,updateThemeStatus:S,setCurrentOnboardingData:N}=(0,n.useDispatch)(l.h);(0,r.useEffect)((()=>{E(u.Jq),y(u.Yl)}),[]);const k=(e,t)=>!1!==t?null==t?void 0:t.reduce(((t,a)=>e.includes(a.slug)?t.concat({slug:a.slug,title:a.title}):t),[]):void 0,P=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w(e),v.data.sitePages.other=0!==e.length&&k(e,t),N(v)},D=(e,t)=>{!0!==e||p.includes(t)?!1===e&&P(p.filter((e=>e!==t)),a):P(p.concat(t),a)};return(0,r.useEffect)((()=>{f===u.GV&&(async()=>{const e=await(0,d.C)(b.patternId);if(null!=e&&e.error)return S(u.a0);if(null!=e&&e.body){var t;if(null!==(t=v.data.sitePages)&&void 0!==t&&t.other)if(!1===v.data.sitePages.other)w([]);else if(0!==v.data.sitePages.other.length)w(v.data.sitePages.other.map((e=>e.slug)));else{const t=e.body.reduce(((e,t)=>null!=t&&t.selected?e.concat(t.slug):e),[]);P(t,e.body)}h(e.body)}})()}),[f]),(0,r.createElement)(c.U,null,(0,r.createElement)(m.V3,null,(0,r.createElement)(o.Z,null,(0,r.createElement)("div",{className:"site-pages"},(0,r.createElement)(i.Z,{title:null==b?void 0:b.heading,subtitle:null==b?void 0:b.subheading}),(0,r.createElement)("div",{className:"site-pages__list"},(0,r.createElement)(g.Z,{className:"site-pages__list__item",count:null===(e=_[null==b?void 0:b.patternId])||void 0===e?void 0:e.previewCount,watch:a,isWithCard:!0,callback:()=>p&&(null==a?void 0:a.map(((e,t)=>(0,r.createElement)(m.T9,{key:t,className:"site-pages__list__item",blockGrammer:e.content,viewportWidth:1200,styling:"custom",overlay:!0,title:null==e?void 0:e.title,slug:e.slug,selected:p.includes(e.slug),onClick:D,description:null==e?void 0:e.description})))),viewportWidth:1200}))))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/473.js b/build/1.6.1/473.js deleted file mode 100644 index 7a3064f13..000000000 --- a/build/1.6.1/473.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[473],{4401:(e,t,a)=>{a.d(t,{V:()=>i});var r=a(9307),n=a(5791),s=a(4316),o=a(950);const i=e=>{let{title:t,subtitle:a,error:i}=e;return(0,r.createElement)(n.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(s.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},i),(0,r.createElement)(o.Z,null))}},4316:(e,t,a)=>{a.d(t,{Z:()=>n});var r=a(9307);const n=e=>{let{title:t,subtitle:a,children:n}=e;return(0,r.createElement)("div",{className:"nfd-main-heading"},(0,r.createElement)("h2",{className:"nfd-main-heading__title"},t),a&&(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},a),n)}},5791:(e,t,a)=>{a.d(t,{Z:()=>g});var r=a(9307),n=a(4184),s=a.n(n),o=a(5158),i=a(9250),l=a(2200),d=a(6989),u=a.n(d),c=a(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:a}=e;const n=(0,i.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,r.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,o.speak)(t,"assertive")}(n,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){u()({url:(0,c.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${l.Db}-pageview`,{stepID:n.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=n.pathname}),[n.pathname]),(0,r.createElement)("div",{className:s()("nfd-onboarding-layout",t)},a)};var p=a(682);const h=e=>{let{children:t}=e;return(0,r.createElement)("section",{className:"is-contained"},t)},g=e=>{let{className:t="",children:a,isBgPrimary:n=!1,isCentered:o=!1,isVerticallyCentered:i=!1,isContained:l=!1,isPadded:d=!1,isFadeIn:u=!0}=e;const c=l?h:r.Fragment;return(0,r.createElement)(p.Z,{type:u&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,r.createElement)(m,{className:s()("nfd-onboarding-layout__common",t,{"is-bg-primary":n},{"is-centered":o},{"is-vertically-centered":i},{"is-padded":d})},(0,r.createElement)(c,null,a)))}},7004:(e,t,a)=>{a.d(t,{L:()=>d,Y:()=>i});var r=a(9307),n=a(5791),s=a(4316),o=a(950);const i=e=>{let{title:t,subtitle:a}=e;return(0,r.createElement)(n.Z,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(s.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(o.Z,null))};var l=a(682);const d=()=>(0,r.createElement)("div",{className:"image-upload-loader--loading-box"},(0,r.createElement)(l.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,a)=>{a.d(t,{Z:()=>i});var r=a(9307),n=a(4106),s=a(9818),o=a(5736);const i=e=>{let{question:t=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:a=(0,o.__)("Hire our Experts","wp-module-onboarding")}=e;const i=(0,s.select)(n.h).getHireExpertsUrl();return i&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,r.createElement)("a",{href:i,target:"_blank",rel:"noreferrer"},a))}},1340:(e,t,a)=>{a.d(t,{U:()=>p,g:()=>w});var r=a(9307),n=a(9818),s=a(4333),o=a(5736),i=a(7004),l=a(4106),d=a(7625),u=a(2200),c=a(4401);var m=a(1589);const p=e=>{let{children:t,navigationStateCallback:a=!1}=e;const p=(0,s.useViewportMatch)("medium"),{storedThemeStatus:h,brandName:g}=(0,n.useSelect)((e=>({storedThemeStatus:e(l.h).getThemeStatus(),brandName:e(l.h).getNewfoldBrandName()})),[]),w=(e=>({loader:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(g),{updateThemeStatus:b,setIsDrawerOpened:_,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:S}=(0,n.useDispatch)(l.h),y=async()=>{const e=await(0,d.YL)(u.DY);return null!=e&&e.error?u.vv:e.body.status},f=()=>{switch(h){case u.Rq:case u.GV:return(()=>{if("function"==typeof a)return a();p&&_(!0),v(!1),S(!0)})();default:_(!1),v(!0),S(!1)}};(0,r.useEffect)((()=>{f(),h===u.a0&&(async()=>{const e=await y();switch(e){case u.Zh:setTimeout((async()=>{if(await y()!==u.GV)return b(u.vv);window.location.reload()}),u.YU);break;case u.GV:window.location.reload();break;default:b(e)}})()}),[h]);const E=async()=>(b(u.Zh),(await(0,d.N9)(u.DY,!0,!1)).error?b(u.Rq):window.location.reload());return(0,r.createElement)(r.Fragment,null,(()=>{switch(h){case u.vv:return(0,r.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,o.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,o.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:E,modalExitButtonText:(0,o.__)("Exit to WordPress","wp-module-onboarding")});case u.Rq:return(0,r.createElement)(c.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case u.GV:return t;default:return(0,r.createElement)(i.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())};var h=a(3421),g=a(1392);const w=e=>{let{children:t,navigationStateCallback:a=!1}=e;const d=(0,s.useViewportMatch)("medium"),[m,p]=(0,r.useState)(u.Sr),{storedPluginsStatus:w,brandName:b}=(0,n.useSelect)((e=>({storedPluginsStatus:e(l.h).getPluginsStatus(),brandName:e(l.h).getNewfoldBrandName()})),[]),_=(e=>({loader:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,g.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,g.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:v,setIsDrawerOpened:S,setIsDrawerSuppressed:y,setIsHeaderNavigationEnabled:f}=(0,n.useDispatch)(l.h),E=async()=>{const e=await(0,h.qC)(u.Gv);return null!=e&&e.error?u.sG:e.body.status},N=e=>{switch(e){case u.sG:case u.ye:return(()=>{if("function"==typeof a)return a();d&&S(!0),y(!1),f(!0)})();default:S(!1),y(!0),f(!1)}};(0,r.useEffect)((()=>{N(m)}),[m]);return(0,r.useEffect)((()=>{p(w[u.Gv]),w[u.Gv]===u.Ck&&(async e=>{const t=await E();switch(t){case u.Sr:setTimeout((async()=>{if(await E()!==u.ye)return w[u.Gv]=u.sG,v(w),p(u.sG);window.location.reload()}),u.sr);break;case u.ye:window.location.reload();break;default:e[u.Gv]=t,p(t),v(e)}})(w)}),[w]),(0,r.createElement)(r.Fragment,null,(()=>{switch(m){case u.sG:return(0,r.createElement)(c.V,{title:_.errorState.title,subtitle:_.errorState.subtitle,error:_.errorState.error});case u.ye:return t;default:return(0,r.createElement)(i.Y,{title:_.loader.title,subtitle:_.loader.subtitle})}})())}},7473:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var r=a(9307),n=a(9818),s=a(9250),o=a(284),i=a(4106),l=a(5791),d=a(4316),u=a(6690),c=a(6138),m=a(7625),p=a(5330),h=a(2200),g=a(1340),w=a(6332),b=a(7946);const _=()=>{var e;const t=(0,o.Z)(),a=(0,s.TH)(),[_,v]=(0,r.useState)(),[S,y]=(0,r.useState)(),[f,E]=(0,r.useState)(),N=(0,s.s0)(),{currentStep:k,nextStep:C,currentData:T,storedPreviewSettings:D,routes:P,allSteps:Z,designSteps:G,themeStatus:V,themeVariations:I}=(0,n.useSelect)((e=>({currentStep:e(i.h).getStepFromPath(a.pathname),nextStep:e(i.h).getNextStep(),currentData:e(i.h).getCurrentOnboardingData(),storedPreviewSettings:e(i.h).getPreviewSettings(),routes:e(i.h).getRoutes(),allSteps:e(i.h).getAllSteps(),designSteps:e(i.h).getDesignSteps(),themeStatus:e(i.h).getThemeStatus(),themeVariations:e(i.h).getStepPreviewData()})),[]),{setDrawerActiveView:x,setSidebarActiveView:O,updatePreviewSettings:H,setCurrentOnboardingData:W,updateThemeStatus:F,updateRoutes:B,updateDesignSteps:U,updateAllSteps:Y}=(0,n.useDispatch)(i.h);return(0,r.useEffect)((()=>{O(h.Jq),x(h.Yl)}),[]),(0,r.useEffect)((()=>{V===h.GV&&(async()=>{const e=await(0,c.C)(k.patternId,!0);if(null!=e&&e.error)return F(h.a0);const t=await(0,m.oC)(!0);if(null!=t&&t.error)return F(h.a0);E(T.data.theme.variation),v(null==e?void 0:e.body),y(null==t?void 0:t.body)})()}),[V]),(0,r.createElement)(g.U,null,(0,r.createElement)(l.Z,null,(0,r.createElement)("div",{className:"theme-styles-menu"},(0,r.createElement)(d.Z,{title:t.heading},(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},`${t.subheading} `,(0,r.createElement)("button",{className:"theme-styles-menu__custom-pages-link",onClick:()=>{const e=(0,b.U)(P,Z,G);B(e.routes),U(e.designSteps),Y(e.allSteps),T.data.customDesign=!0,W(T),N(p.mT.designColors.path)}},t.subheading_link))),(0,r.createElement)("div",{className:"theme-styles-menu__list"},(0,r.createElement)(w.r9,{className:"theme-styles-menu__list__item",count:null===(e=I[null==k?void 0:k.patternId])||void 0===e?void 0:e.previewCount,watch:_&&S,callback:()=>null==S?void 0:S.map(((e,t)=>(0,r.createElement)(w.H,{key:t,className:"theme-styles-menu__list__item",selected:e.title===f,blockGrammer:_,viewportWidth:900,styling:"custom",previewSettings:e,overlay:!0,onClick:()=>(e=>{const t=S[e];H((0,u.NF)(t,D)),E(t.title),T.data.theme.variation=t.title,W(T),N(C.path)})(t)}))),viewportWidth:900})))))}},284:(e,t,a)=>{a.d(t,{Z:()=>n});var r=a(5736);const n=()=>({heading:(0,r.__)("Lets tailor your theme for the perfect fit","wp-module-onboarding"),subheading:(0,r.__)("Start with a style preset or","wp-module-onboarding"),subheading_link:(0,r.__)("build a custom design.","wp-module-onboarding"),checkbox_label:(0,r.__)("Customize Colors & Fonts?","wp-module-onboarding"),checkbox_hint:(0,r.__)("Check to customize in the next few steps (or leave empty and use the Site Editor later)","wp-module-onboarding")})},7946:(e,t,a)=>{a.d(t,{U:()=>s,o:()=>o});var r=a(2819),n=a(5330);const s=(e,t,a)=>{const s=o(e,t,a),i=[n.mT.designColors,n.mT.designTypography];return{routes:(0,r.orderBy)(s.routes.concat(i),["priority"],["asc"]),allSteps:(0,r.orderBy)(s.allSteps.concat(i),["priority"],["asc"]),designSteps:(0,r.orderBy)(s.designSteps.concat(i),["priority"],["asc"])}},o=(e,t,a)=>({routes:(0,r.filter)(e,(e=>!e.path.includes(n.mT.designColors.path)&&!e.path.includes(n.mT.designTypography.path))),allSteps:(0,r.filter)(t,(e=>!e.path.includes(n.mT.designColors.path)&&!e.path.includes(n.mT.designTypography.path))),designSteps:(0,r.filter)(a,(e=>!e.path.includes(n.mT.designColors.path)&&!e.path.includes(n.mT.designTypography.path)))})}}]); \ No newline at end of file diff --git a/build/1.6.1/565.js b/build/1.6.1/565.js deleted file mode 100644 index a61073e56..000000000 --- a/build/1.6.1/565.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[565],{4316:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(9307);const i=e=>{let{title:t,subtitle:n,children:i}=e;return(0,a.createElement)("div",{className:"nfd-main-heading"},(0,a.createElement)("h2",{className:"nfd-main-heading__title"},t),n&&(0,a.createElement)("h3",{className:"nfd-main-heading__subtitle"},n),i)}},5791:(e,t,n)=>{n.d(t,{Z:()=>_});var a=n(9307),i=n(4184),o=n.n(i),r=n(5158),d=n(9250),s=n(2200),l=n(6989),c=n.n(l),u=n(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const i=(0,d.TH)(),l=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==l||l.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,r.speak)(t,"assertive")}(i,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){c()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${s.Db}-pageview`,{stepID:i.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=i.pathname}),[i.pathname]),(0,a.createElement)("div",{className:o()("nfd-onboarding-layout",t)},n)};var p=n(682);const g=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},_=e=>{let{className:t="",children:n,isBgPrimary:i=!1,isCentered:r=!1,isVerticallyCentered:d=!1,isContained:s=!1,isPadded:l=!1,isFadeIn:c=!0}=e;const u=s?g:a.Fragment;return(0,a.createElement)(p.Z,{type:c&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(m,{className:o()("nfd-onboarding-layout__common",t,{"is-bg-primary":i},{"is-centered":r},{"is-vertically-centered":d},{"is-padded":l})},(0,a.createElement)(u,null,n)))}},676:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(9307),i=n(5736),o=n(5609),r=n(9818),d=n(9250),s=n(7533),l=n(4106),c=n(8395),u=n(2200);const m=(0,a.memo)((()=>{const e=(0,d.s0)(),t=(0,d.TH)(),{nextStep:n,currentData:m,socialData:p}=(0,r.useSelect)((e=>({nextStep:e(l.h).getNextStep(),currentData:e(l.h).getCurrentOnboardingData(),socialData:e(l.h).getOnboardingSocialData()})),[]),g=null===n||!1===n,{setOnboardingSocialData:_}=(0,r.useDispatch)(l.h);async function b(e){if(m){if(m.isComplete=(new Date).getTime(),null!=e&&e.includes("basic-info")){const e=await async function(){const e=await(0,c.Gw)(),t=await(0,c.I2)(p);return null!==(null==t?void 0:t.error)?null==e?void 0:e.body:null==t?void 0:t.body}();e&&_(e)}(0,s.kB)(m)}const t="ecommerce"===window.nfdOnboarding.currentFlow?u.br:u.hF;window.location.replace(t)}return g?(0,a.createElement)(o.Button,{className:"skip-button",onClick:()=>b(t.pathname)},(0,i.__)("Skip this Step","wp-module-onboarding")):(0,a.createElement)(o.Button,{className:"skip-button",onClick:()=>e(n.path)},(0,i.__)("Skip this Step","wp-module-onboarding"))}))},7565:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var a=n(9307),i=n(5736),o=n(4333),r=n(9818),d=n(2200),s=n(676),l=n(4106),c=n(5791),u=n(4316),m=n(1984),p=n(8184),g=n(5609);const _=e=>{let{id:t,path:n,title:o,desc:r,isSelected:d,onSelectedChange:s}=e;return(0,a.createElement)(g.Card,{className:`nfd-card ${d&&"nfd-selected-card-box"}`,onClick:e=>s(t)},(0,a.createElement)("div",{className:"nfd-card__top_row"},(0,a.createElement)("div",{className:"nfd-card__icon"},(0,a.createElement)("div",{className:d?"nfd-card__icon_box nfd-card__icon_box-selected":"nfd-card__icon_box",style:{backgroundImage:`var(${n})`}})),(0,a.createElement)("div",{className:d?"nfd-card__icon_selected":"nfd-card__icon_unselected"},(0,a.createElement)(m.Z,{className:"nfd-card__icon_selected_path",icon:p.Z,size:64}))),(0,a.createElement)("div",{className:`nfd-card__body ${d&&"nfd-selected-card"}`},(0,a.createElement)("h2",{className:"nfd-card__body_title"},(0,i.__)(o,"wp-module-onboarding")),(0,a.createElement)("p",{className:"nfd-card__body_description"},(0,i.__)(r,"wp-module-onboarding"))))},b=e=>{let{contents:t,selected:n,onSelectedChange:i}=e;const o=t.map(((e,t)=>(0,a.createElement)(_,{id:t,key:t,path:e.icon,title:e.title,desc:e.desc,onSelectedChange:i,isSelected:t===n})));return(0,a.createElement)("div",{className:"selectable_cards"},o)},h=()=>{const e={0:"publishing",1:"selling",2:"designing"},[t,n]=(0,a.useState)(0),[m,p]=(0,a.useState)(!1),g=(0,o.useViewportMatch)("medium"),{setDrawerActiveView:_,setIsDrawerOpened:h,setSidebarActiveView:f,setCurrentOnboardingData:w,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:y}=(0,r.useDispatch)(l.h),{currentData:E}=(0,r.useSelect)((e=>({currentData:e(l.h).getCurrentOnboardingData()})),[]);(0,a.useEffect)((()=>{g&&h(!0),f(d.Jq),v(!1),_(d.tM),y(!0)}),[]),(0,a.useEffect)((()=>{m||async function(){if(E){const i=await(null==E?void 0:E.data.topPriority.priority1);""!==i?n(parseInt((a=i,null==Object?void 0:Object.keys(e).find((t=>e[t]===a))))):(E.data.topPriority.priority1=e[t],w(E))}var a;p(!0)}()}),[m]),(0,a.useEffect)((()=>{m&&(E.data.topPriority.priority1=e[t],w(E))}),[t]);const S={heading:(0,i.__)("Tell us your top priority","wp-module-onboarding"),subheading:(0,i.__)("We'll prioritize getting you there.","wp-module-onboarding"),options:[{icon:"--nfd-publish-icon",title:(0,i.__)("Publishing","wp-module-onboarding"),desc:(0,i.__)("From blogs, to newsletters, to podcasts and videos, we help the web find your content.","wp-module-onboarding")},{icon:"--nfd-selling-icon",title:(0,i.__)("Selling","wp-module-onboarding"),desc:(0,i.__)("Startup or seasoned business, drop-shipping or downloads, we've got ecommerce covered.","wp-module-onboarding")},{icon:"--nfd-design-icon",title:(0,i.__)("Designing","wp-module-onboarding"),desc:(0,i.__)("With smart style presets and powerful options, we help your site look and feel polished.","wp-module-onboarding")}]};return(0,a.createElement)(c.Z,{isVerticallyCentered:!0},(0,a.createElement)(u.Z,{title:S.heading,subtitle:S.subheading}),(0,a.createElement)(b,{contents:S.options,selected:t,onSelectedChange:n}),(0,a.createElement)("div",{className:"center"},(0,a.createElement)("p",{className:"info-top-priority"},(0,i.__)("Where would you like to start? We'll start ","wp-module-onboarding"),(0,i.__)("there and then move into next steps.","wp-module-onboarding")),(0,a.createElement)(s.Z,null)))}}}]); \ No newline at end of file diff --git a/build/1.6.1/577.js b/build/1.6.1/577.js deleted file mode 100644 index ac41d9535..000000000 --- a/build/1.6.1/577.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[577],{5791:(e,n,t)=>{t.d(n,{Z:()=>p});var a=t(9307),r=t(4184),s=t.n(r),i=t(5158),o=t(9250),d=t(2200),c=t(6989),l=t.n(c),u=t(4704);const h=e=>{let{className:n="nfd-onboarding-layout__base",children:t}=e;const r=(0,o.TH)(),c=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==c||c.focus({preventScroll:!0}),function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,i.speak)(n,"assertive")}(r,"Override"),new class{constructor(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=n}send(){l()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${d.Db}-pageview`,{stepID:r.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=r.pathname}),[r.pathname]),(0,a.createElement)("div",{className:s()("nfd-onboarding-layout",n)},t)};var m=t(682);const g=e=>{let{children:n}=e;return(0,a.createElement)("section",{className:"is-contained"},n)},p=e=>{let{className:n="",children:t,isBgPrimary:r=!1,isCentered:i=!1,isVerticallyCentered:o=!1,isContained:d=!1,isPadded:c=!1,isFadeIn:l=!0}=e;const u=d?g:a.Fragment;return(0,a.createElement)(m.Z,{type:l&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(h,{className:s()("nfd-onboarding-layout__common",n,{"is-bg-primary":r},{"is-centered":i},{"is-vertically-centered":o},{"is-padded":c})},(0,a.createElement)(u,null,t)))}},7577:(e,n,t)=>{t.r(n),t.d(n,{default:()=>d});var a=t(9307),r=t(5791),s=t(2200),i=t(4106),o=t(9818);const d=()=>{const{setIsDrawerOpened:e,setDrawerActiveView:n,setSidebarActiveView:t}=(0,o.useDispatch)(i.h);return(0,a.useEffect)((()=>{t(s.Jq),e(!0),n(s.BP)}),[]),(0,a.createElement)(r.Z,{isCentered:!0},"What To Expect")}}}]); \ No newline at end of file diff --git a/build/1.6.1/594.js b/build/1.6.1/594.js deleted file mode 100644 index 219b2fa4c..000000000 --- a/build/1.6.1/594.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[594],{1211:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(9307),r=n(9250),s=n(9818),o=n(4106);const d=e=>{let{text:t,handleClick:n,disabled:r,className:s}=e;return(0,a.createElement)("button",{type:"button",className:`${s} nfd-card-button`,onClick:()=>{n()},disabled:r},t)};var l=n(7533),i=n(2200);const c=e=>{let{text:t,disabled:n}=e;const c=(0,r.s0)(),u=(0,r.TH)(),{nextStep:m,currentData:p}=(0,s.useSelect)((e=>({nextStep:e(o.h).getNextStep(),currentData:e(o.h).getCurrentOnboardingData()})),[u.path]),b=null===m||!1===m;return(0,a.createElement)(d,{className:"nfd-nav-card-button",text:t,handleClick:()=>b?async function(){p&&(p.isComplete=(new Date).getTime(),(0,l.kB)(p));const e="ecommerce"===window.nfdOnboarding.currentFlow?i.br:i.hF;window.location.replace(e)}():c(m.path),disabled:n})}},9519:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(9307);const r=(0,a.memo)((e=>{let{heading:t,subHeading:n,question:r}=e;return(0,a.createElement)("div",null,t&&(0,a.createElement)("h2",{className:"nfd-step-card-heading"},t),n&&(0,a.createElement)("h3",{className:r?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),r&&(0,a.createElement)("h3",{className:"nfd-step-card-question"},r))}))},5791:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(9307),r=n(4184),s=n.n(r),o=n(5158),d=n(9250),l=n(2200),i=n(6989),c=n.n(i),u=n(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const r=(0,d.TH)(),i=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==i||i.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,o.speak)(t,"assertive")}(r,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){c()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${l.Db}-pageview`,{stepID:r.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=r.pathname}),[r.pathname]),(0,a.createElement)("div",{className:s()("nfd-onboarding-layout",t)},n)};var p=n(682);const b=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},g=e=>{let{className:t="",children:n,isBgPrimary:r=!1,isCentered:o=!1,isVerticallyCentered:d=!1,isContained:l=!1,isPadded:i=!1,isFadeIn:c=!0}=e;const u=l?b:a.Fragment;return(0,a.createElement)(p.Z,{type:c&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(m,{className:s()("nfd-onboarding-layout__common",t,{"is-bg-primary":r},{"is-centered":o},{"is-vertically-centered":d},{"is-padded":i})},(0,a.createElement)(u,null,n)))}},950:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(9307),r=n(4106),s=n(9818),o=n(5736);const d=e=>{let{question:t=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:n=(0,o.__)("Hire our Experts","wp-module-onboarding")}=e;const d=(0,s.select)(r.h).getHireExpertsUrl();return d&&(0,a.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,a.createElement)("a",{href:d,target:"_blank",rel:"noreferrer"},n))}},349:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(9307),r=(n(5736),n(4184)),s=n.n(r);const o=e=>{let{className:t="",children:n}=e;return(0,a.createElement)("div",{className:s()("nfd-onboarding-large-card",t)},n)}},1594:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var a=n(9307),r=n(5791),s=n(349),o=n(9519),d=n(1211),l=n(950),i=n(2200),c=n(4106),u=n(5609),m=n(9818),p=n(682),b=n(5736),g=n(1392);const h=()=>{const[e,t]=(0,a.useState)("0"),{currentData:n}=(0,m.useSelect)((e=>({currentData:e(c.h).getCurrentOnboardingData()})),[]),{setDrawerActiveView:h,setCurrentOnboardingData:v,setSidebarActiveView:f,setIsDrawerSuppressed:w,setIsHeaderNavigationEnabled:E}=(0,m.useDispatch)(c.h);(0,a.useEffect)((()=>{f(i.Jq),w(!0),h(i.mz),E(!0)}),[]),(0,a.useEffect)((()=>{!async function(){t(n.data.wpComfortLevel)}()}),[]);const _={heading:(0,b.sprintf)( -/* translators: %s: website or store */ -(0,b.__)("Help us tailor this setup to your %s","wp-module-onboarding"),(0,g.I)("site")),subheading:(0,b.__)("ABOUT YOU","wp-module-onboarding"),question:(0,b.__)("What is your experience with WordPress?","wp-module-onboarding"),buttonText:(0,b.__)("Continue Setup","wp-module-onboarding"),options:[{label:(0,b.__)("Never used it","wp-module-onboarding"),value:"1"},{label:(0,b.__)("Used it some","wp-module-onboarding"),value:"3"},{label:(0,b.__)("I'm an expert","wp-module-onboarding"),value:"5"}]};return(0,a.createElement)(r.Z,{isBgPrimary:!0,isCentered:!0},(0,a.createElement)(s.Z,null,(0,a.createElement)("div",{className:"nfd-onboarding-experience-step"},(0,a.createElement)("div",{className:"nfd-card-heading center"},(0,a.createElement)(o.Z,{heading:_.heading,subHeading:_.subheading,question:_.question})),(0,a.createElement)(p.Z,{type:"fade-in-disabled",after:e},(0,a.createElement)(u.RadioControl,{className:"nfd-onboarding-experience-step-tabs components-radio-control__input radio-control-main",selected:e,options:_.options.map((e=>({label:e.label,value:e.value}))),onChange:e=>(e=>{t(e);const a=n;a.data.wpComfortLevel=e||"0",v(a)})(e)})),(0,a.createElement)(d.Z,{text:_.buttonText,disabled:"0"===e}),(0,a.createElement)(l.Z,null))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/608.js b/build/1.6.1/608.js deleted file mode 100644 index b58972cc2..000000000 --- a/build/1.6.1/608.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[608],{4401:(e,t,r)=>{r.d(t,{V:()=>l});var a=r(9307),n=r(5791),s=r(4316),o=r(950);const l=e=>{let{title:t,subtitle:r,error:l}=e;return(0,a.createElement)(n.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,a.createElement)(s.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-error-state__logo"}),(0,a.createElement)("h3",{className:"step-error-state__error"},l),(0,a.createElement)(o.Z,null))}},4316:(e,t,r)=>{r.d(t,{Z:()=>n});var a=r(9307);const n=e=>{let{title:t,subtitle:r,children:n}=e;return(0,a.createElement)("div",{className:"nfd-main-heading"},(0,a.createElement)("h2",{className:"nfd-main-heading__title"},t),r&&(0,a.createElement)("h3",{className:"nfd-main-heading__subtitle"},r),n)}},5791:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(9307),n=r(4184),s=r.n(n),o=r(5158),l=r(9250),i=r(2200),d=r(6989),c=r.n(d),u=r(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:r}=e;const n=(0,l.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,o.speak)(t,"assertive")}(n,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){c()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${i.Db}-pageview`,{stepID:n.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=n.pathname}),[n.pathname]),(0,a.createElement)("div",{className:s()("nfd-onboarding-layout",t)},r)};var h=r(682);const g=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},p=e=>{let{className:t="",children:r,isBgPrimary:n=!1,isCentered:o=!1,isVerticallyCentered:l=!1,isContained:i=!1,isPadded:d=!1,isFadeIn:c=!0}=e;const u=i?g:a.Fragment;return(0,a.createElement)(h.Z,{type:c&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(m,{className:s()("nfd-onboarding-layout__common",t,{"is-bg-primary":n},{"is-centered":o},{"is-vertically-centered":l},{"is-padded":d})},(0,a.createElement)(u,null,r)))}},7004:(e,t,r)=>{r.d(t,{L:()=>d,Y:()=>l});var a=r(9307),n=r(5791),s=r(4316),o=r(950);const l=e=>{let{title:t,subtitle:r}=e;return(0,a.createElement)(n.Z,{className:"step-loader",isVerticallyCentered:!0},(0,a.createElement)(s.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-loader__logo-container"},(0,a.createElement)("div",{className:"step-loader__logo"})),(0,a.createElement)(o.Z,null))};var i=r(682);const d=()=>(0,a.createElement)("div",{className:"image-upload-loader--loading-box"},(0,a.createElement)(i.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9307),n=r(4106),s=r(9818),o=r(5736);const l=e=>{let{question:t=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:r=(0,o.__)("Hire our Experts","wp-module-onboarding")}=e;const l=(0,s.select)(n.h).getHireExpertsUrl();return l&&(0,a.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,a.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},r))}},1340:(e,t,r)=>{r.d(t,{U:()=>h,g:()=>w});var a=r(9307),n=r(9818),s=r(4333),o=r(5736),l=r(7004),i=r(4106),d=r(7625),c=r(2200),u=r(4401);var m=r(1589);const h=e=>{let{children:t,navigationStateCallback:r=!1}=e;const h=(0,s.useViewportMatch)("medium"),{storedThemeStatus:g,brandName:p}=(0,n.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),w=(e=>({loader:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:_,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:f}=(0,n.useDispatch)(i.h),E=async()=>{const e=await(0,d.YL)(c.DY);return null!=e&&e.error?c.vv:e.body.status},y=()=>{switch(g){case c.Rq:case c.GV:return(()=>{if("function"==typeof r)return r();h&&_(!0),v(!1),f(!0)})();default:_(!1),v(!0),f(!1)}};(0,a.useEffect)((()=>{y(),g===c.a0&&(async()=>{const e=await E();switch(e){case c.Zh:setTimeout((async()=>{if(await E()!==c.GV)return b(c.vv);window.location.reload()}),c.YU);break;case c.GV:window.location.reload();break;default:b(e)}})()}),[g]);const S=async()=>(b(c.Zh),(await(0,d.N9)(c.DY,!0,!1)).error?b(c.Rq):window.location.reload());return(0,a.createElement)(a.Fragment,null,(()=>{switch(g){case c.vv:return(0,a.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,o.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,o.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:S,modalExitButtonText:(0,o.__)("Exit to WordPress","wp-module-onboarding")});case c.Rq:return(0,a.createElement)(u.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case c.GV:return t;default:return(0,a.createElement)(l.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())};var g=r(3421),p=r(1392);const w=e=>{let{children:t,navigationStateCallback:r=!1}=e;const d=(0,s.useViewportMatch)("medium"),[m,h]=(0,a.useState)(c.Sr),{storedPluginsStatus:w,brandName:b}=(0,n.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),_=(e=>({loader:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:v,setIsDrawerOpened:f,setIsDrawerSuppressed:E,setIsHeaderNavigationEnabled:y}=(0,n.useDispatch)(i.h),S=async()=>{const e=await(0,g.qC)(c.Gv);return null!=e&&e.error?c.sG:e.body.status},N=e=>{switch(e){case c.sG:case c.ye:return(()=>{if("function"==typeof r)return r();d&&f(!0),E(!1),y(!0)})();default:f(!1),E(!0),y(!1)}};(0,a.useEffect)((()=>{N(m)}),[m]);return(0,a.useEffect)((()=>{h(w[c.Gv]),w[c.Gv]===c.Ck&&(async e=>{const t=await S();switch(t){case c.Sr:setTimeout((async()=>{if(await S()!==c.ye)return w[c.Gv]=c.sG,v(w),h(c.sG);window.location.reload()}),c.sr);break;case c.ye:window.location.reload();break;default:e[c.Gv]=t,h(t),v(e)}})(w)}),[w]),(0,a.createElement)(a.Fragment,null,(()=>{switch(m){case c.sG:return(0,a.createElement)(u.V,{title:_.errorState.title,subtitle:_.errorState.subtitle,error:_.errorState.error});case c.ye:return t;default:return(0,a.createElement)(l.Y,{title:_.loader.title,subtitle:_.loader.subtitle})}})())}},9608:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var a=r(9307),n=r(9250),s=r(9818),o=r(6138),l=r(4106),i=r(5791),d=r(1340),c=r(6332),u=r(2200);const m=()=>{const e=(0,n.TH)(),[t,r]=(0,a.useState)(),{currentStep:m,themeStatus:h}=(0,s.useSelect)((t=>({currentStep:t(l.h).getStepFromPath(e.pathname),themeStatus:t(l.h).getThemeStatus()})),[]),{setDrawerActiveView:g,setSidebarActiveView:p,updateThemeStatus:w}=(0,s.useDispatch)(l.h);return(0,a.useEffect)((()=>{p(u.Jq),g(u.qR)}),[]),(0,a.useEffect)((()=>{u.GV===h&&(async()=>{const e=await(0,o.C)(m.patternId,!0);if(null!=e&&e.error)return w(u.a0);r(null==e?void 0:e.body)})()}),[h]),(0,a.createElement)(d.U,null,(0,a.createElement)(c.V3,null,(0,a.createElement)(i.Z,{className:"theme-colors-preview"},(0,a.createElement)("div",{className:"theme-colors-preview__title-bar"},(0,a.createElement)("div",{className:"theme-colors-preview__title-bar__browser"},(0,a.createElement)("span",{className:"theme-colors-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-colors-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-colors-preview__title-bar__browser__dot"}))),!t&&(0,a.createElement)(c.i5,{styling:"large",viewportWidth:1300}),t&&(0,a.createElement)(c.i5,{blockGrammer:t,styling:"large",viewportWidth:1300}))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/722.js b/build/1.6.1/722.js deleted file mode 100644 index 71adfd73d..000000000 --- a/build/1.6.1/722.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[722],{1211:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(9307),r=n(9250),o=n(9818),s=n(4106);const l=e=>{let{text:t,handleClick:n,disabled:r,className:o}=e;return(0,a.createElement)("button",{type:"button",className:`${o} nfd-card-button`,onClick:()=>{n()},disabled:r},t)};var i=n(7533),d=n(2200);const c=e=>{let{text:t,disabled:n}=e;const c=(0,r.s0)(),u=(0,r.TH)(),{nextStep:m,currentData:p}=(0,o.useSelect)((e=>({nextStep:e(s.h).getNextStep(),currentData:e(s.h).getCurrentOnboardingData()})),[u.path]),g=null===m||!1===m;return(0,a.createElement)(l,{className:"nfd-nav-card-button",text:t,handleClick:()=>g?async function(){p&&(p.isComplete=(new Date).getTime(),(0,i.kB)(p));const e="ecommerce"===window.nfdOnboarding.currentFlow?d.br:d.hF;window.location.replace(e)}():c(m.path),disabled:n})}},9519:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(9307);const r=(0,a.memo)((e=>{let{heading:t,subHeading:n,question:r}=e;return(0,a.createElement)("div",null,t&&(0,a.createElement)("h2",{className:"nfd-step-card-heading"},t),n&&(0,a.createElement)("h3",{className:r?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),r&&(0,a.createElement)("h3",{className:"nfd-step-card-question"},r))}))},4401:(e,t,n)=>{n.d(t,{V:()=>l});var a=n(9307),r=n(5791),o=n(4316),s=n(950);const l=e=>{let{title:t,subtitle:n,error:l}=e;return(0,a.createElement)(r.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,a.createElement)(o.Z,{title:t,subtitle:n}),(0,a.createElement)("div",{className:"step-error-state__logo"}),(0,a.createElement)("h3",{className:"step-error-state__error"},l),(0,a.createElement)(s.Z,null))}},4316:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(9307);const r=e=>{let{title:t,subtitle:n,children:r}=e;return(0,a.createElement)("div",{className:"nfd-main-heading"},(0,a.createElement)("h2",{className:"nfd-main-heading__title"},t),n&&(0,a.createElement)("h3",{className:"nfd-main-heading__subtitle"},n),r)}},5791:(e,t,n)=>{n.d(t,{Z:()=>b});var a=n(9307),r=n(4184),o=n.n(r),s=n(5158),l=n(9250),i=n(2200),d=n(6989),c=n.n(d),u=n(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const r=(0,l.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,s.speak)(t,"assertive")}(r,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){c()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${i.Db}-pageview`,{stepID:r.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=r.pathname}),[r.pathname]),(0,a.createElement)("div",{className:o()("nfd-onboarding-layout",t)},n)};var p=n(682);const g=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},b=e=>{let{className:t="",children:n,isBgPrimary:r=!1,isCentered:s=!1,isVerticallyCentered:l=!1,isContained:i=!1,isPadded:d=!1,isFadeIn:c=!0}=e;const u=i?g:a.Fragment;return(0,a.createElement)(p.Z,{type:c&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(m,{className:o()("nfd-onboarding-layout__common",t,{"is-bg-primary":r},{"is-centered":s},{"is-vertically-centered":l},{"is-padded":d})},(0,a.createElement)(u,null,n)))}},7004:(e,t,n)=>{n.d(t,{L:()=>d,Y:()=>l});var a=n(9307),r=n(5791),o=n(4316),s=n(950);const l=e=>{let{title:t,subtitle:n}=e;return(0,a.createElement)(r.Z,{className:"step-loader",isVerticallyCentered:!0},(0,a.createElement)(o.Z,{title:t,subtitle:n}),(0,a.createElement)("div",{className:"step-loader__logo-container"},(0,a.createElement)("div",{className:"step-loader__logo"})),(0,a.createElement)(s.Z,null))};var i=n(682);const d=()=>(0,a.createElement)("div",{className:"image-upload-loader--loading-box"},(0,a.createElement)(i.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(9307),r=n(4106),o=n(9818),s=n(5736);const l=e=>{let{question:t=(0,s.__)("Need Help?","wp-module-onboarding"),urlLabel:n=(0,s.__)("Hire our Experts","wp-module-onboarding")}=e;const l=(0,o.select)(r.h).getHireExpertsUrl();return l&&(0,a.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,a.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},n))}},349:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(9307),r=(n(5736),n(4184)),o=n.n(r);const s=e=>{let{className:t="",children:n}=e;return(0,a.createElement)("div",{className:o()("nfd-onboarding-large-card",t)},n)}},1340:(e,t,n)=>{n.d(t,{U:()=>p,g:()=>h});var a=n(9307),r=n(9818),o=n(4333),s=n(5736),l=n(7004),i=n(4106),d=n(7625),c=n(2200),u=n(4401);var m=n(1589);const p=e=>{let{children:t,navigationStateCallback:n=!1}=e;const p=(0,o.useViewportMatch)("medium"),{storedThemeStatus:g,brandName:b}=(0,r.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),h=(e=>({loader:{title:(0,s.sprintf)( -/* 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 */ -(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")}}))(b),{updateThemeStatus:w,setIsDrawerOpened:v,setIsDrawerSuppressed:_,setIsHeaderNavigationEnabled:f}=(0,r.useDispatch)(i.h),y=async()=>{const e=await(0,d.YL)(c.DY);return null!=e&&e.error?c.vv:e.body.status},E=()=>{switch(g){case c.Rq:case c.GV:return(()=>{if("function"==typeof n)return n();p&&v(!0),_(!1),f(!0)})();default:v(!1),_(!0),f(!1)}};(0,a.useEffect)((()=>{E(),g===c.a0&&(async()=>{const e=await y();switch(e){case c.Zh:setTimeout((async()=>{if(await y()!==c.GV)return w(c.vv);window.location.reload()}),c.YU);break;case c.GV:window.location.reload();break;default:w(e)}})()}),[g]);const S=async()=>(w(c.Zh),(await(0,d.N9)(c.DY,!0,!1)).error?w(c.Rq):window.location.reload());return(0,a.createElement)(a.Fragment,null,(()=>{switch(g){case c.vv:return(0,a.createElement)(m.Z,{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:S,modalExitButtonText:(0,s.__)("Exit to WordPress","wp-module-onboarding")});case c.Rq:return(0,a.createElement)(u.V,{title:h.errorState.title,subtitle:h.errorState.subtitle,error:h.errorState.error});case c.GV:return t;default:return(0,a.createElement)(l.Y,{title:h.loader.title,subtitle:h.loader.subtitle})}})())};var g=n(3421),b=n(1392);const h=e=>{let{children:t,navigationStateCallback:n=!1}=e;const d=(0,o.useViewportMatch)("medium"),[m,p]=(0,a.useState)(c.Sr),{storedPluginsStatus:h,brandName:w}=(0,r.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),v=(e=>({loader:{title:(0,s.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,s.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,b.I)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,s.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,s.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,b.I)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,s.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(w),{updatePluginsStatus:_,setIsDrawerOpened:f,setIsDrawerSuppressed:y,setIsHeaderNavigationEnabled:E}=(0,r.useDispatch)(i.h),S=async()=>{const e=await(0,g.qC)(c.Gv);return null!=e&&e.error?c.sG:e.body.status},N=e=>{switch(e){case c.sG:case c.ye:return(()=>{if("function"==typeof n)return n();d&&f(!0),y(!1),E(!0)})();default:f(!1),y(!0),E(!1)}};(0,a.useEffect)((()=>{N(m)}),[m]);return(0,a.useEffect)((()=>{p(h[c.Gv]),h[c.Gv]===c.Ck&&(async e=>{const t=await S();switch(t){case c.Sr:setTimeout((async()=>{if(await S()!==c.ye)return h[c.Gv]=c.sG,_(h),p(c.sG);window.location.reload()}),c.sr);break;case c.ye:window.location.reload();break;default:e[c.Gv]=t,p(t),_(e)}})(h)}),[h]),(0,a.createElement)(a.Fragment,null,(()=>{switch(m){case c.sG:return(0,a.createElement)(u.V,{title:v.errorState.title,subtitle:v.errorState.subtitle,error:v.errorState.error});case c.ye:return t;default:return(0,a.createElement)(l.Y,{title:v.loader.title,subtitle:v.loader.subtitle})}})())}},2722:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(9307),r=n(5609),o=n(9818),s=n(2200),l=n(1211),i=n(9519),d=n(5791),c=n(950),u=n(349),m=n(1340),p=n(4106),g=n(5736);const b=()=>{const{setDrawerActiveView:e,setSidebarActiveView:t,setCurrentOnboardingData:n}=(0,o.useDispatch)(p.h),b=(0,o.useSelect)((e=>e(p.h).getCurrentOnboardingData())),h=b.storeDetails.productInfo;(0,a.useEffect)((()=>{t(s.Jq),e(s.dv)}),[]);const w={heading:(0,g.__)("Tell us about your products","wp-module-onboarding"),subheading:(0,g.__)("What type of products will you be selling?","wp-module-onboarding"),question:(0,g.__)("How many products will you be selling?","wp-module-onboarding"),typeOptions:[{content:(0,g.__)("Physical products","wp-module-onboarding"),value:"physical"},{content:(0,g.__)("Digital / Downloadable products","wp-module-onboarding"),value:"downloads"},{content:(0,g.__)("Subscriptions","wp-module-onboarding"),value:"subscriptions"},{content:(0,g.__)("Book rooms, houses or rent products","wp-module-onboarding"),value:"bookings"},{content:(0,g.__)("Membership","wp-module-onboarding"),value:"memberships"},{content:(0,g.__)("Customizable products","wp-module-onboarding"),value:"product-add-ons"},{content:(0,g.__)("Bundles of products","wp-module-onboarding"),value:"product-bundles"},{content:(0,g.__)("Let your users ask a quote for your products","wp-module-onboarding"),value:"product-quotes"}],numberOptions:[{content:"0",value:"0"},{content:"1 - 10",value:"1-10"},{content:"11 - 100",value:"11-100"},{content:"101 - 1000",value:"101-1000"},{content:"1000 +",value:"1000+"}],buttonText:(0,g.__)("Continue Setup","wp-module-onboarding")};return(0,a.createElement)(m.g,null,(0,a.createElement)(d.Z,{isBgPrimary:!0,isCentered:!0},(0,a.createElement)(u.Z,{className:"ecommerce-step"},(0,a.createElement)("div",{className:"nfd-onboarding-experience-step onboarding-product-step onboarding-ecommerce-step"},(0,a.createElement)("div",{className:"nfd-card-heading center"},(0,a.createElement)(i.Z,{heading:w.heading,subHeading:w.subheading})),(0,a.createElement)("div",{className:"nfd-product-step-options"},w.typeOptions.map((e=>(0,a.createElement)(r.CheckboxControl,{key:e.value,checked:h.product_types.includes(e.value),label:e.content,onChange:t=>{return a=e.value,r=t,n({...b,storeDetails:{...b.storeDetails,productInfo:{...h,product_types:r?[...null==h?void 0:h.product_types,a]:null==h?void 0:h.product_types.filter((e=>e!==a))}}});var a,r}})))),(0,a.createElement)("div",{className:"step-product-numbers"},(0,a.createElement)("span",{style:{fontSize:"16px"}},w.question),(0,a.createElement)(r.RadioControl,{className:"components-radio-control__input",selected:null==h?void 0:h.product_count,options:w.numberOptions.map((e=>({label:e.content,value:e.value}))),onChange:e=>n({...b,storeDetails:{...b.storeDetails,productInfo:{...h,product_count:e}}})})),(0,a.createElement)(l.Z,{text:w.buttonText}),(0,a.createElement)(c.Z,null)))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/833.js b/build/1.6.1/833.js deleted file mode 100644 index ecccb128c..000000000 --- a/build/1.6.1/833.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[833],{9519:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(9307);const r=(0,n.memo)((e=>{let{heading:t,subHeading:a,question:r}=e;return(0,n.createElement)("div",null,t&&(0,n.createElement)("h2",{className:"nfd-step-card-heading"},t),a&&(0,n.createElement)("h3",{className:r?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},a),r&&(0,n.createElement)("h3",{className:"nfd-step-card-question"},r))}))},4401:(e,t,a)=>{a.d(t,{V:()=>l});var n=a(9307),r=a(5791),o=a(4316),s=a(950);const l=e=>{let{title:t,subtitle:a,error:l}=e;return(0,n.createElement)(r.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,n.createElement)(o.Z,{title:t,subtitle:a}),(0,n.createElement)("div",{className:"step-error-state__logo"}),(0,n.createElement)("h3",{className:"step-error-state__error"},l),(0,n.createElement)(s.Z,null))}},4316:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(9307);const r=e=>{let{title:t,subtitle:a,children:r}=e;return(0,n.createElement)("div",{className:"nfd-main-heading"},(0,n.createElement)("h2",{className:"nfd-main-heading__title"},t),a&&(0,n.createElement)("h3",{className:"nfd-main-heading__subtitle"},a),r)}},5791:(e,t,a)=>{a.d(t,{Z:()=>b});var n=a(9307),r=a(4184),o=a.n(r),s=a(5158),l=a(9250),i=a(2200),d=a(6989),c=a.n(d),u=a(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:a}=e;const r=(0,l.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,n.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,s.speak)(t,"assertive")}(r,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){c()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${i.Db}-pageview`,{stepID:r.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=r.pathname}),[r.pathname]),(0,n.createElement)("div",{className:o()("nfd-onboarding-layout",t)},a)};var g=a(682);const p=e=>{let{children:t}=e;return(0,n.createElement)("section",{className:"is-contained"},t)},b=e=>{let{className:t="",children:a,isBgPrimary:r=!1,isCentered:s=!1,isVerticallyCentered:l=!1,isContained:i=!1,isPadded:d=!1,isFadeIn:c=!0}=e;const u=i?p:n.Fragment;return(0,n.createElement)(g.Z,{type:c&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,n.createElement)(m,{className:o()("nfd-onboarding-layout__common",t,{"is-bg-primary":r},{"is-centered":s},{"is-vertically-centered":l},{"is-padded":d})},(0,n.createElement)(u,null,a)))}},7004:(e,t,a)=>{a.d(t,{L:()=>d,Y:()=>l});var n=a(9307),r=a(5791),o=a(4316),s=a(950);const l=e=>{let{title:t,subtitle:a}=e;return(0,n.createElement)(r.Z,{className:"step-loader",isVerticallyCentered:!0},(0,n.createElement)(o.Z,{title:t,subtitle:a}),(0,n.createElement)("div",{className:"step-loader__logo-container"},(0,n.createElement)("div",{className:"step-loader__logo"})),(0,n.createElement)(s.Z,null))};var i=a(682);const d=()=>(0,n.createElement)("div",{className:"image-upload-loader--loading-box"},(0,n.createElement)(i.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,a)=>{a.d(t,{Z:()=>l});var n=a(9307),r=a(4106),o=a(9818),s=a(5736);const l=e=>{let{question:t=(0,s.__)("Need Help?","wp-module-onboarding"),urlLabel:a=(0,s.__)("Hire our Experts","wp-module-onboarding")}=e;const l=(0,o.select)(r.h).getHireExpertsUrl();return l&&(0,n.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,n.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},a))}},349:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(9307),r=(a(5736),a(4184)),o=a.n(r);const s=e=>{let{className:t="",children:a}=e;return(0,n.createElement)("div",{className:o()("nfd-onboarding-large-card",t)},a)}},1340:(e,t,a)=>{a.d(t,{U:()=>g,g:()=>h});var n=a(9307),r=a(9818),o=a(4333),s=a(5736),l=a(7004),i=a(4106),d=a(7625),c=a(2200),u=a(4401);var m=a(1589);const g=e=>{let{children:t,navigationStateCallback:a=!1}=e;const g=(0,o.useViewportMatch)("medium"),{storedThemeStatus:p,brandName:b}=(0,r.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),h=(e=>({loader:{title:(0,s.sprintf)( -/* 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 */ -(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")}}))(b),{updateThemeStatus:w,setIsDrawerOpened:_,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:f}=(0,r.useDispatch)(i.h),E=async()=>{const e=await(0,d.YL)(c.DY);return null!=e&&e.error?c.vv:e.body.status},y=()=>{switch(p){case c.Rq:case c.GV:return(()=>{if("function"==typeof a)return a();g&&_(!0),v(!1),f(!0)})();default:_(!1),v(!0),f(!1)}};(0,n.useEffect)((()=>{y(),p===c.a0&&(async()=>{const e=await E();switch(e){case c.Zh:setTimeout((async()=>{if(await E()!==c.GV)return w(c.vv);window.location.reload()}),c.YU);break;case c.GV:window.location.reload();break;default:w(e)}})()}),[p]);const S=async()=>(w(c.Zh),(await(0,d.N9)(c.DY,!0,!1)).error?w(c.Rq):window.location.reload());return(0,n.createElement)(n.Fragment,null,(()=>{switch(p){case c.vv:return(0,n.createElement)(m.Z,{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:S,modalExitButtonText:(0,s.__)("Exit to WordPress","wp-module-onboarding")});case c.Rq:return(0,n.createElement)(u.V,{title:h.errorState.title,subtitle:h.errorState.subtitle,error:h.errorState.error});case c.GV:return t;default:return(0,n.createElement)(l.Y,{title:h.loader.title,subtitle:h.loader.subtitle})}})())};var p=a(3421),b=a(1392);const h=e=>{let{children:t,navigationStateCallback:a=!1}=e;const d=(0,o.useViewportMatch)("medium"),[m,g]=(0,n.useState)(c.Sr),{storedPluginsStatus:h,brandName:w}=(0,r.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),_=(e=>({loader:{title:(0,s.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,s.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,b.I)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,s.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,s.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,b.I)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,s.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(w),{updatePluginsStatus:v,setIsDrawerOpened:f,setIsDrawerSuppressed:E,setIsHeaderNavigationEnabled:y}=(0,r.useDispatch)(i.h),S=async()=>{const e=await(0,p.qC)(c.Gv);return null!=e&&e.error?c.sG:e.body.status},N=e=>{switch(e){case c.sG:case c.ye:return(()=>{if("function"==typeof a)return a();d&&f(!0),E(!1),y(!0)})();default:f(!1),E(!0),y(!1)}};(0,n.useEffect)((()=>{N(m)}),[m]);return(0,n.useEffect)((()=>{g(h[c.Gv]),h[c.Gv]===c.Ck&&(async e=>{const t=await S();switch(t){case c.Sr:setTimeout((async()=>{if(await S()!==c.ye)return h[c.Gv]=c.sG,v(h),g(c.sG);window.location.reload()}),c.sr);break;case c.ye:window.location.reload();break;default:e[c.Gv]=t,g(t),v(e)}})(h)}),[h]),(0,n.createElement)(n.Fragment,null,(()=>{switch(m){case c.sG:return(0,n.createElement)(u.V,{title:_.errorState.title,subtitle:_.errorState.subtitle,error:_.errorState.error});case c.ye:return t;default:return(0,n.createElement)(l.Y,{title:_.loader.title,subtitle:_.loader.subtitle})}})())}},9833:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var n=a(9307),r=a(5609),o=a(9818),s=a(9250),l=a(2200),i=a(9519),d=a(5791),c=a(950),u=a(349),m=a(1340),g=a(4106),p=a(7282),b=a(682),h=a(5736);const w=()=>{const{setDrawerActiveView:e,setSidebarActiveView:t,setCurrentOnboardingData:a}=(0,o.useDispatch)(g.h),w=(0,s.s0)(),[_,v]=(0,n.useState)(),f=(0,o.useSelect)((e=>e(g.h).getCurrentOnboardingData()));(0,n.useEffect)((()=>{t(l.Jq),e(l.dv),(async()=>{const e=await(0,p.e)();v(e)})()}),[]);const E={heading:(0,h.__)("Configure your tax information","wp-module-onboarding"),subheading:(0,h.__)("Do you want to enable tax rates and calculations?","wp-module-onboarding"),options:[{content:(0,h.__)("Yes, enable tax rates and calculations","wp-module-onboarding"),value:"1",data:{wc_connect_taxes_enabled:"yes",woocommerce_calc_taxes:"yes"}},{content:(0,h.__)("I will configure my own tax information later","wp-module-onboarding"),value:"3",data:{wc_connect_taxes_enabled:"no",woocommerce_calc_taxes:"yes"}},{content:(0,h.__)("I don't charge sales tax","wp-module-onboarding"),value:"5",data:{woocommerce_no_sales_tax:!0,woocommerce_calc_taxes:"no",wc_connect_taxes_enabled:"no"}}],buttonText:(0,h.__)("Continue Setup","wp-module-onboarding")};(0,n.useEffect)((()=>{if(_&&null!==_&&void 0===f.storeDetails.tax){var e,t;const r=E.options.find((n=_,e=>Object.entries(e.data).every((e=>{let[t,a]=e;return(null==n?void 0:n[t])===a})))),o=null!==(e=null==r?void 0:r.data)&&void 0!==e?e:{};a({...f,storeDetails:{...f.storeDetails,tax:{...null!==(t=f.storeDetails.tax)&&void 0!==t?t:{},...o,option:null==r?void 0:r.value,isStoreDetailsFilled:null!==_.woocommerce_store_postcode}}})}var n}),[_,f.storeDetails]);const{tax:y}=f.storeDetails;return(0,n.createElement)(m.g,null,(0,n.createElement)(d.Z,{isBgPrimary:!0,isCentered:!0},(0,n.createElement)(u.Z,{className:"ecommerce-step"},(0,n.createElement)("div",{className:"nfd-onboarding-experience-step onboarding-ecommerce-step"},(0,n.createElement)("div",{className:"nfd-card-heading center onboarding-ecommerce-step"},(0,n.createElement)(i.Z,{heading:E.heading,subHeading:E.subheading})),(0,n.createElement)(b.Z,{type:"fade-in-disabled",after:_},(0,n.createElement)(r.RadioControl,{className:"nfd-onboarding-experience-step-tabs components-radio-control__input radio-control-tax-step radio-control-main",selected:null==y?void 0:y.option,options:E.options.map((e=>({label:e.content,value:e.value}))),onChange:e=>(e=>{const t=E.options.find((t=>t.value===e));a({...f,storeDetails:{...f.storeDetails,tax:{...t.data,option:t.value,isStoreDetailsFilled:null==y?void 0:y.isStoreDetailsFilled}}})})(e)})),(0,n.createElement)("button",{className:"nfd-nav-card-button nfd-card-button",disabled:null===_||void 0===(null==y?void 0:y.option),onClick:()=>{w("/ecommerce/step/products")}},E.buttonText),(0,n.createElement)(c.Z,null)))))}},7282:(e,t,a)=>{a.d(t,{e:()=>r});var n=a(3768);async function r(){return await(0,n.pn)().catch((()=>({})))}}}]); \ No newline at end of file diff --git a/build/1.6.1/858.js b/build/1.6.1/858.js deleted file mode 100644 index 2f27552dc..000000000 --- a/build/1.6.1/858.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[858],{4401:(e,t,r)=>{r.d(t,{V:()=>l});var a=r(9307),n=r(5791),s=r(4316),o=r(950);const l=e=>{let{title:t,subtitle:r,error:l}=e;return(0,a.createElement)(n.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,a.createElement)(s.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-error-state__logo"}),(0,a.createElement)("h3",{className:"step-error-state__error"},l),(0,a.createElement)(o.Z,null))}},4316:(e,t,r)=>{r.d(t,{Z:()=>n});var a=r(9307);const n=e=>{let{title:t,subtitle:r,children:n}=e;return(0,a.createElement)("div",{className:"nfd-main-heading"},(0,a.createElement)("h2",{className:"nfd-main-heading__title"},t),r&&(0,a.createElement)("h3",{className:"nfd-main-heading__subtitle"},r),n)}},5791:(e,t,r)=>{r.d(t,{Z:()=>p});var a=r(9307),n=r(4184),s=r.n(n),o=r(5158),l=r(9250),i=r(2200),d=r(6989),c=r.n(d),u=r(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:r}=e;const n=(0,l.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,o.speak)(t,"assertive")}(n,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){c()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${i.Db}-pageview`,{stepID:n.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=n.pathname}),[n.pathname]),(0,a.createElement)("div",{className:s()("nfd-onboarding-layout",t)},r)};var h=r(682);const g=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},p=e=>{let{className:t="",children:r,isBgPrimary:n=!1,isCentered:o=!1,isVerticallyCentered:l=!1,isContained:i=!1,isPadded:d=!1,isFadeIn:c=!0}=e;const u=i?g:a.Fragment;return(0,a.createElement)(h.Z,{type:c&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(m,{className:s()("nfd-onboarding-layout__common",t,{"is-bg-primary":n},{"is-centered":o},{"is-vertically-centered":l},{"is-padded":d})},(0,a.createElement)(u,null,r)))}},7004:(e,t,r)=>{r.d(t,{L:()=>d,Y:()=>l});var a=r(9307),n=r(5791),s=r(4316),o=r(950);const l=e=>{let{title:t,subtitle:r}=e;return(0,a.createElement)(n.Z,{className:"step-loader",isVerticallyCentered:!0},(0,a.createElement)(s.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-loader__logo-container"},(0,a.createElement)("div",{className:"step-loader__logo"})),(0,a.createElement)(o.Z,null))};var i=r(682);const d=()=>(0,a.createElement)("div",{className:"image-upload-loader--loading-box"},(0,a.createElement)(i.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(9307),n=r(4106),s=r(9818),o=r(5736);const l=e=>{let{question:t=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:r=(0,o.__)("Hire our Experts","wp-module-onboarding")}=e;const l=(0,s.select)(n.h).getHireExpertsUrl();return l&&(0,a.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,a.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},r))}},1340:(e,t,r)=>{r.d(t,{U:()=>h,g:()=>w});var a=r(9307),n=r(9818),s=r(4333),o=r(5736),l=r(7004),i=r(4106),d=r(7625),c=r(2200),u=r(4401);var m=r(1589);const h=e=>{let{children:t,navigationStateCallback:r=!1}=e;const h=(0,s.useViewportMatch)("medium"),{storedThemeStatus:g,brandName:p}=(0,n.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),w=(e=>({loader:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:_,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:v}=(0,n.useDispatch)(i.h),E=async()=>{const e=await(0,d.YL)(c.DY);return null!=e&&e.error?c.vv:e.body.status},y=()=>{switch(g){case c.Rq:case c.GV:return(()=>{if("function"==typeof r)return r();h&&_(!0),f(!1),v(!0)})();default:_(!1),f(!0),v(!1)}};(0,a.useEffect)((()=>{y(),g===c.a0&&(async()=>{const e=await E();switch(e){case c.Zh:setTimeout((async()=>{if(await E()!==c.GV)return b(c.vv);window.location.reload()}),c.YU);break;case c.GV:window.location.reload();break;default:b(e)}})()}),[g]);const S=async()=>(b(c.Zh),(await(0,d.N9)(c.DY,!0,!1)).error?b(c.Rq):window.location.reload());return(0,a.createElement)(a.Fragment,null,(()=>{switch(g){case c.vv:return(0,a.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,o.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,o.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:S,modalExitButtonText:(0,o.__)("Exit to WordPress","wp-module-onboarding")});case c.Rq:return(0,a.createElement)(u.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case c.GV:return t;default:return(0,a.createElement)(l.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())};var g=r(3421),p=r(1392);const w=e=>{let{children:t,navigationStateCallback:r=!1}=e;const d=(0,s.useViewportMatch)("medium"),[m,h]=(0,a.useState)(c.Sr),{storedPluginsStatus:w,brandName:b}=(0,n.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),_=(e=>({loader:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:f,setIsDrawerOpened:v,setIsDrawerSuppressed:E,setIsHeaderNavigationEnabled:y}=(0,n.useDispatch)(i.h),S=async()=>{const e=await(0,g.qC)(c.Gv);return null!=e&&e.error?c.sG:e.body.status},N=e=>{switch(e){case c.sG:case c.ye:return(()=>{if("function"==typeof r)return r();d&&v(!0),E(!1),y(!0)})();default:v(!1),E(!0),y(!1)}};(0,a.useEffect)((()=>{N(m)}),[m]);return(0,a.useEffect)((()=>{h(w[c.Gv]),w[c.Gv]===c.Ck&&(async e=>{const t=await S();switch(t){case c.Sr:setTimeout((async()=>{if(await S()!==c.ye)return w[c.Gv]=c.sG,f(w),h(c.sG);window.location.reload()}),c.sr);break;case c.ye:window.location.reload();break;default:e[c.Gv]=t,h(t),f(e)}})(w)}),[w]),(0,a.createElement)(a.Fragment,null,(()=>{switch(m){case c.sG:return(0,a.createElement)(u.V,{title:_.errorState.title,subtitle:_.errorState.subtitle,error:_.errorState.error});case c.ye:return t;default:return(0,a.createElement)(l.Y,{title:_.loader.title,subtitle:_.loader.subtitle})}})())}},8858:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var a=r(9307),n=r(9250),s=r(9818),o=r(6138),l=r(4106),i=r(5791),d=r(2200),c=r(1340),u=r(6332);const m=()=>{const e=(0,n.TH)(),[t,r]=(0,a.useState)(),{currentStep:m,themeStatus:h}=(0,s.useSelect)((t=>({currentStep:t(l.h).getStepFromPath(e.pathname),themeStatus:t(l.h).getThemeStatus()})),[]),{updateThemeStatus:g,setDrawerActiveView:p,setSidebarActiveView:w}=(0,s.useDispatch)(l.h);return(0,a.useEffect)((()=>{w(d.Jq),p(d.jN)}),[]),(0,a.useEffect)((()=>{d.GV===h&&(async()=>{const e=await(0,o.C)(m.patternId,!0);if(null!=e&&e.error)return g(d.a0);r(null==e?void 0:e.body)})()}),[h]),(0,a.createElement)(c.U,null,(0,a.createElement)(u.V3,null,(0,a.createElement)(i.Z,{className:"theme-fonts-preview"},(0,a.createElement)("div",{className:"theme-fonts-preview__title-bar"},(0,a.createElement)("div",{className:"theme-fonts-preview__title-bar__browser"},(0,a.createElement)("span",{className:"theme-fonts-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-fonts-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-fonts-preview__title-bar__browser__dot"}))),!t&&(0,a.createElement)(u.i5,{styling:"large",viewportWidth:1300}),t&&(0,a.createElement)(u.i5,{blockGrammer:t,styling:"large",viewportWidth:1300}))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/880.js b/build/1.6.1/880.js deleted file mode 100644 index 7557001ca..000000000 --- a/build/1.6.1/880.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[880],{5791:(e,n,t)=>{t.d(n,{Z:()=>p});var a=t(9307),s=t(4184),r=t.n(s),i=t(5158),o=t(9250),d=t(2200),c=t(6989),l=t.n(c),u=t(4704);const g=e=>{let{className:n="nfd-onboarding-layout__base",children:t}=e;const s=(0,o.TH)(),c=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==c||c.focus({preventScroll:!0}),function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,i.speak)(n,"assertive")}(s,"Override"),new class{constructor(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=n}send(){l()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${d.Db}-pageview`,{stepID:s.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=s.pathname}),[s.pathname]),(0,a.createElement)("div",{className:r()("nfd-onboarding-layout",n)},t)};var m=t(682);const h=e=>{let{children:n}=e;return(0,a.createElement)("section",{className:"is-contained"},n)},p=e=>{let{className:n="",children:t,isBgPrimary:s=!1,isCentered:i=!1,isVerticallyCentered:o=!1,isContained:d=!1,isPadded:c=!1,isFadeIn:l=!0}=e;const u=d?h:a.Fragment;return(0,a.createElement)(m.Z,{type:l&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(g,{className:r()("nfd-onboarding-layout__common",n,{"is-bg-primary":s},{"is-centered":i},{"is-vertically-centered":o},{"is-padded":c})},(0,a.createElement)(u,null,t)))}},4880:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});var a=t(9307),s=t(5791),r=t(2200),i=t(4106),o=t(9818),d=t(5736);const c=()=>{const{setIsDrawerOpened:e,setSidebarActiveView:n}=(0,o.useDispatch)(i.h);return(0,a.useEffect)((()=>{n(r.Jq),e(!0),setDrawerActiveView(r.BP)}),[]),(0,a.createElement)(s.Z,{isPadded:!0},(0,d.__)("Resources Page.","wp-module-onboarding"))}}}]); \ No newline at end of file diff --git a/build/1.6.1/888.js b/build/1.6.1/888.js deleted file mode 100644 index 9ef33f2f1..000000000 --- a/build/1.6.1/888.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[888],{1211:(e,a,t)=>{t.d(a,{Z:()=>u});var n=t(9307),s=t(9250),r=t(9818),l=t(4106);const i=e=>{let{text:a,handleClick:t,disabled:s,className:r}=e;return(0,n.createElement)("button",{type:"button",className:`${r} nfd-card-button`,onClick:()=>{t()},disabled:s},a)};var o=t(7533),d=t(2200);const u=e=>{let{text:a,disabled:t}=e;const u=(0,s.s0)(),c=(0,s.TH)(),{nextStep:p,currentData:m}=(0,r.useSelect)((e=>({nextStep:e(l.h).getNextStep(),currentData:e(l.h).getCurrentOnboardingData()})),[c.path]),g=null===p||!1===p;return(0,n.createElement)(i,{className:"nfd-nav-card-button",text:a,handleClick:()=>g?async function(){m&&(m.isComplete=(new Date).getTime(),(0,o.kB)(m));const e="ecommerce"===window.nfdOnboarding.currentFlow?d.br:d.hF;window.location.replace(e)}():u(p.path),disabled:t})}},9519:(e,a,t)=>{t.d(a,{Z:()=>s});var n=t(9307);const s=(0,n.memo)((e=>{let{heading:a,subHeading:t,question:s}=e;return(0,n.createElement)("div",null,a&&(0,n.createElement)("h2",{className:"nfd-step-card-heading"},a),t&&(0,n.createElement)("h3",{className:s?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},t),s&&(0,n.createElement)("h3",{className:"nfd-step-card-question"},s))}))},5791:(e,a,t)=>{t.d(a,{Z:()=>y});var n=t(9307),s=t(4184),r=t.n(s),l=t(5158),i=t(9250),o=t(2200),d=t(6989),u=t.n(d),c=t(4704);const p=e=>{let{className:a="nfd-onboarding-layout__base",children:t}=e;const s=(0,i.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,n.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,l.speak)(a,"assertive")}(s,"Override"),new class{constructor(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=a}send(){u()({url:(0,c.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${o.Db}-pageview`,{stepID:s.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=s.pathname}),[s.pathname]),(0,n.createElement)("div",{className:r()("nfd-onboarding-layout",a)},t)};var m=t(682);const g=e=>{let{children:a}=e;return(0,n.createElement)("section",{className:"is-contained"},a)},y=e=>{let{className:a="",children:t,isBgPrimary:s=!1,isCentered:l=!1,isVerticallyCentered:i=!1,isContained:o=!1,isPadded:d=!1,isFadeIn:u=!0}=e;const c=o?g:n.Fragment;return(0,n.createElement)(m.Z,{type:u&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,n.createElement)(p,{className:r()("nfd-onboarding-layout__common",a,{"is-bg-primary":s},{"is-centered":l},{"is-vertically-centered":i},{"is-padded":d})},(0,n.createElement)(c,null,t)))}},950:(e,a,t)=>{t.d(a,{Z:()=>i});var n=t(9307),s=t(4106),r=t(9818),l=t(5736);const i=e=>{let{question:a=(0,l.__)("Need Help?","wp-module-onboarding"),urlLabel:t=(0,l.__)("Hire our Experts","wp-module-onboarding")}=e;const i=(0,r.select)(s.h).getHireExpertsUrl();return i&&(0,n.createElement)("div",{className:"nfd-card-need-help-tag"},a,(0,n.createElement)("a",{href:i,target:"_blank",rel:"noreferrer"},t))}},349:(e,a,t)=>{t.d(a,{Z:()=>l});var n=t(9307),s=(t(5736),t(4184)),r=t.n(s);const l=e=>{let{className:a="",children:t}=e;return(0,n.createElement)("div",{className:r()("nfd-onboarding-large-card",a)},t)}},5888:(e,a,t)=>{t.r(a),t.d(a,{default:()=>y});var n=t(9307),s=t(5791),r=t(349),l=t(2200),i=t(5521),o=t(4106),d=t(9818),u=t(9519),c=t(1211),p=t(950),m=t(682),g=t(6557);const y=()=>{const{setDrawerActiveView:e,setIsDrawerSuppressed:a,setIsHeaderNavigationEnabled:t,setSidebarActiveView:y,setCurrentOnboardingData:b}=(0,d.useDispatch)(o.h),{currentData:v}=(0,d.useSelect)((e=>({currentData:e(o.h).getCurrentOnboardingData()})),[]);(0,n.useEffect)((()=>{y(l.Jq),a(!0),e(l.mz),t(!0),C()}),[]);const[h,f]=(0,n.useState)(!1),[T,w]=(0,n.useState)(),[E,_]=(0,n.useState)(""),N=(0,i.Z)(),C=async()=>{var e,a,t,n,s,r,l,i,o,d,u;const c=await(0,g.P)();if(w(null==c?void 0:c.body),"string"==typeof(null==v||null===(e=v.data)||void 0===e||null===(a=e.siteType)||void 0===a?void 0:a.primary)||"string"==typeof(null==v||null===(t=v.data)||void 0===t||null===(n=t.siteType)||void 0===n?void 0:n.secondary)){var p,m,y,h;const e=null==v||null===(p=v.data)||void 0===p||null===(m=p.siteType)||void 0===m?void 0:m.primary,a=null==v||null===(y=v.data)||void 0===y||null===(h=y.siteType)||void 0===h?void 0:h.secondary;v.data.siteType.primary={refers:"custom",value:e},v.data.siteType.secondary={refers:"custom",value:a},b(v)}var f,T,E;_(null!==(s=null==v||null===(r=v.data)||void 0===r||null===(l=r.siteType)||void 0===l||null===(i=l.primary)||void 0===i?void 0:i.value)&&void 0!==s?s:""),"custom"===(null==v||null===(o=v.data)||void 0===o||null===(d=o.siteType)||void 0===d||null===(u=d.primary)||void 0===u?void 0:u.refers)&&D(null==v||null===(f=v.data)||void 0===f||null===(T=f.siteType)||void 0===T||null===(E=T.primary)||void 0===E?void 0:E.value)},S=e=>{f(!1),_(e),v.data.siteType.primary.refers="slug",v.data.siteType.primary.value=e,b(v)},D=e=>{f(!0),_(e),v.data.siteType.primary.refers="custom",v.data.siteType.primary.value=e,b(v)};return(0,n.createElement)(s.Z,{isBgPrimary:!0,isCentered:!0},(0,n.createElement)(r.Z,null,(0,n.createElement)("div",{className:"nfd-card-heading center"},(0,n.createElement)(u.Z,{heading:N.heading,subHeading:N.subheading,question:N.question})),(0,n.createElement)(m.Z,{type:"fade-in-disabled",after:T},(0,n.createElement)("div",{className:"nfd-setup-primary-categories"},T&&(()=>{const e=null==T?void 0:T.types;return Object.keys(e).map(((a,t)=>{var s,r,l;return(0,n.createElement)("div",{key:null===(s=e[a])||void 0===s?void 0:s.slug,tabIndex:t+1,role:"button",className:(e[a].slug!==E||h?"":"chosenPrimaryCategory ")+"nfd-card-pri-category",onClick:()=>S(e[a].slug),onKeyDown:()=>S(e[a].slug)},(0,n.createElement)("div",{className:"nfd-card-pri-category-wrapper"},(0,n.createElement)("span",{className:"nfd-card-pri-category-wrapper__icon "+(e[a].slug===E?"nfd-card-pri-category-wrapper__icon-selected ":""),style:{backgroundImage:`url(${null===(r=e[a])||void 0===r?void 0:r.icon})`}}),(0,n.createElement)("span",{className:"categName"},null===(l=e[a])||void 0===l?void 0:l.label)))}))})()),(0,n.createElement)("div",{className:"nfd-setup-primary-custom"},(0,n.createElement)("p",{className:"nfd-setup-primary-custom__tellus-text"},"or tell us here:"),(0,n.createElement)("input",{type:"search",onChange:e=>{var a;return D(null==e||null===(a=e.target)||void 0===a?void 0:a.value)},className:"nfd-setup-primary-custom__tellus-input",placeholder:N.customInputPlaceholderText,value:h?E:""}))),(0,n.createElement)(c.Z,{text:N.buttonText}),(0,n.createElement)(p.Z,null)))}},5521:(e,a,t)=>{t.d(a,{Z:()=>r});var n=t(5736),s=t(1392);const r=()=>({heading:(0,n.sprintf)( -/* translators: %s: site */ -(0,n.__)("Help us tailor this setup to your %s","wp-module-onboarding"),(0,s.I)("site")),subheading:(0,n.sprintf)( -/* translators: %s: SITE */ -(0,n.__)("ABOUT YOUR %s","wp-module-onboarding"),(0,s.I)("SITE")),question:(0,n.sprintf)( -/* translators: %s: site */ -(0,n.__)("What type of %s is it?","wp-module-onboarding"),(0,s.I)("site")),buttonText:(0,n.__)("Continue Setup","wp-module-onboarding"),customInputPlaceholderText:(0,n.sprintf)( -/* translators: %s: site */ -(0,n.__)("Enter to search your %s type","wp-module-onboarding"),(0,s.I)("site")),customInputLabel:(0,n.__)("or tell us here:","wp-module-onboarding")})},6557:(e,a,t)=>{t.d(a,{P:()=>o});var n=t(6329),s=t(4704);const r=JSON.parse('{"body":{"types":{"business":{"slug":"business","label":"Business","icon":"https://cdn.hiive.space/site-classification/business.svg","emoji":"💼","schema":"Corporation","secondaryTypes":{"agency-consulting":{"primaryType":"business","slug":"agency-consulting","label":"Agency & Consulting"},"arts-crafts":{"primaryType":"business","slug":"arts-crafts","label":"Arts & Crafts"},"autos-repair":{"primaryType":"business","slug":"autos-repair","label":"Autos & Repair"},"child-care":{"primaryType":"business","slug":"child-care","label":"Child Care"},"events":{"primaryType":"business","slug":"events","label":"Events"},"finance":{"primaryType":"business","slug":"finance","label":"Finance"},"garden-florist":{"primaryType":"business","slug":"garden-florist","label":"Florist & Garden Center"},"hr-recruiting":{"primaryType":"business","slug":"hr-recruiting","label":"HR & Recruiting"},"insurance":{"primaryType":"business","slug":"insurance","label":"Insurance"},"legal":{"primaryType":"business","slug":"legal","label":"Legal"},"marketing":{"primaryType":"business","slug":"marketing","label":"Marketing"},"outdoors":{"primaryType":"business","slug":"outdoors","label":"Outdoors"},"pr-communications":{"primaryType":"business","slug":"pr-communications","label":"PR & Communications"},"real-estate-management":{"primaryType":"business","slug":"real-estate-management","label":"Real Estate & Management"},"shopping-retail":{"primaryType":"business","slug":"shopping-retail","label":"Shopping & Retail"},"trades-repair-services":{"primaryType":"business","slug":"trades-repair-services","label":"Trades & Repair Services"},"weddings":{"primaryType":"business","slug":"weddings","label":"Weddings"}}}}}}');var l=t(6989),i=t.n(l);async function o(){const e=await(0,n.D)(i()({url:(0,s.F)("site-classification")}));return 0===e.body.length?r:e}}}]); \ No newline at end of file diff --git a/build/1.6.1/932.js b/build/1.6.1/932.js deleted file mode 100644 index 90a6576a5..000000000 --- a/build/1.6.1/932.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[932],{4401:(e,t,a)=>{a.d(t,{V:()=>l});var r=a(9307),s=a(5791),n=a(4316),o=a(950);const l=e=>{let{title:t,subtitle:a,error:l}=e;return(0,r.createElement)(s.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(n.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},l),(0,r.createElement)(o.Z,null))}},4316:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(9307);const s=e=>{let{title:t,subtitle:a,children:s}=e;return(0,r.createElement)("div",{className:"nfd-main-heading"},(0,r.createElement)("h2",{className:"nfd-main-heading__title"},t),a&&(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},a),s)}},5791:(e,t,a)=>{a.d(t,{Z:()=>g});var r=a(9307),s=a(4184),n=a.n(s),o=a(5158),l=a(9250),i=a(2200),d=a(6989),c=a.n(d),u=a(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:a}=e;const s=(0,l.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,r.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,o.speak)(t,"assertive")}(s,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){c()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${i.Db}-pageview`,{stepID:s.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=s.pathname}),[s.pathname]),(0,r.createElement)("div",{className:n()("nfd-onboarding-layout",t)},a)};var p=a(682);const h=e=>{let{children:t}=e;return(0,r.createElement)("section",{className:"is-contained"},t)},g=e=>{let{className:t="",children:a,isBgPrimary:s=!1,isCentered:o=!1,isVerticallyCentered:l=!1,isContained:i=!1,isPadded:d=!1,isFadeIn:c=!0}=e;const u=i?h:r.Fragment;return(0,r.createElement)(p.Z,{type:c&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,r.createElement)(m,{className:n()("nfd-onboarding-layout__common",t,{"is-bg-primary":s},{"is-centered":o},{"is-vertically-centered":l},{"is-padded":d})},(0,r.createElement)(u,null,a)))}},7004:(e,t,a)=>{a.d(t,{L:()=>d,Y:()=>l});var r=a(9307),s=a(5791),n=a(4316),o=a(950);const l=e=>{let{title:t,subtitle:a}=e;return(0,r.createElement)(s.Z,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(n.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(o.Z,null))};var i=a(682);const d=()=>(0,r.createElement)("div",{className:"image-upload-loader--loading-box"},(0,r.createElement)(i.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,a)=>{a.d(t,{Z:()=>l});var r=a(9307),s=a(4106),n=a(9818),o=a(5736);const l=e=>{let{question:t=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:a=(0,o.__)("Hire our Experts","wp-module-onboarding")}=e;const l=(0,n.select)(s.h).getHireExpertsUrl();return l&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,r.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},a))}},1340:(e,t,a)=>{a.d(t,{U:()=>p,g:()=>_});var r=a(9307),s=a(9818),n=a(4333),o=a(5736),l=a(7004),i=a(4106),d=a(7625),c=a(2200),u=a(4401);var m=a(1589);const p=e=>{let{children:t,navigationStateCallback:a=!1}=e;const p=(0,n.useViewportMatch)("medium"),{storedThemeStatus:h,brandName:g}=(0,s.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),_=(e=>({loader:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: %s: Brand */ -(0,o.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,o.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(g),{updateThemeStatus:b,setIsDrawerOpened:w,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:y}=(0,s.useDispatch)(i.h),f=async()=>{const e=await(0,d.YL)(c.DY);return null!=e&&e.error?c.vv:e.body.status},S=()=>{switch(h){case c.Rq:case c.GV:return(()=>{if("function"==typeof a)return a();p&&w(!0),v(!1),y(!0)})();default:w(!1),v(!0),y(!1)}};(0,r.useEffect)((()=>{S(),h===c.a0&&(async()=>{const e=await f();switch(e){case c.Zh:setTimeout((async()=>{if(await f()!==c.GV)return b(c.vv);window.location.reload()}),c.YU);break;case c.GV:window.location.reload();break;default:b(e)}})()}),[h]);const E=async()=>(b(c.Zh),(await(0,d.N9)(c.DY,!0,!1)).error?b(c.Rq):window.location.reload());return(0,r.createElement)(r.Fragment,null,(()=>{switch(h){case c.vv:return(0,r.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,o.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,o.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:E,modalExitButtonText:(0,o.__)("Exit to WordPress","wp-module-onboarding")});case c.Rq:return(0,r.createElement)(u.V,{title:_.errorState.title,subtitle:_.errorState.subtitle,error:_.errorState.error});case c.GV:return t;default:return(0,r.createElement)(l.Y,{title:_.loader.title,subtitle:_.loader.subtitle})}})())};var h=a(3421),g=a(1392);const _=e=>{let{children:t,navigationStateCallback:a=!1}=e;const d=(0,n.useViewportMatch)("medium"),[m,p]=(0,r.useState)(c.Sr),{storedPluginsStatus:_,brandName:b}=(0,s.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),w=(e=>({loader:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,g.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")},errorState:{title:(0,o.sprintf)( -/* translators: 1: Brand 2: Site */ -(0,o.__)("Making the keys to your %s Online %s","wp-module-onboarding"),e,(0,g.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,o.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:v,setIsDrawerOpened:y,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:S}=(0,s.useDispatch)(i.h),E=async()=>{const e=await(0,h.qC)(c.Gv);return null!=e&&e.error?c.sG:e.body.status},N=e=>{switch(e){case c.sG:case c.ye:return(()=>{if("function"==typeof a)return a();d&&y(!0),f(!1),S(!0)})();default:y(!1),f(!0),S(!1)}};(0,r.useEffect)((()=>{N(m)}),[m]);return(0,r.useEffect)((()=>{p(_[c.Gv]),_[c.Gv]===c.Ck&&(async e=>{const t=await E();switch(t){case c.Sr:setTimeout((async()=>{if(await E()!==c.ye)return _[c.Gv]=c.sG,v(_),p(c.sG);window.location.reload()}),c.sr);break;case c.ye:window.location.reload();break;default:e[c.Gv]=t,p(t),v(e)}})(_)}),[_]),(0,r.createElement)(r.Fragment,null,(()=>{switch(m){case c.sG:return(0,r.createElement)(u.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case c.ye:return t;default:return(0,r.createElement)(l.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())}},2932:(e,t,a)=>{a.r(t),a.d(t,{default:()=>_});var r=a(9307),s=a(9818),n=a(9250),o=a(5609),l=a(7946),i=a(5330),d=a(6332),c=a(284),u=a(5791),m=a(2200),p=a(4106),h=a(6138),g=a(1340);const _=()=>{const e=(0,c.Z)(),t=(0,n.TH)(),[a,_]=(0,r.useState)(),[b,w]=(0,r.useState)(!1),v=(0,n.s0)(),{currentStep:y,currentData:f,routes:S,designSteps:E,allSteps:N,themeStatus:k}=(0,s.useSelect)((e=>({currentStep:e(p.h).getStepFromPath(t.pathname),currentData:e(p.h).getCurrentOnboardingData(),routes:e(p.h).getRoutes(),allSteps:e(p.h).getAllSteps(),designSteps:e(p.h).getDesignSteps(),themeStatus:e(p.h).getThemeStatus()})),[]),{setDrawerActiveView:T,setSidebarActiveView:C,updateRoutes:D,updateDesignSteps:x,updateAllSteps:G,setCurrentOnboardingData:P,updateThemeStatus:Z}=(0,s.useDispatch)(p.h);(0,r.useEffect)((()=>{C(m.Jq),T(m._h),V(f.data.customDesign,!1,"flow")}),[]);const V=function(e){let t,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"click";t=e?(0,l.U)(S,N,E):(0,l.o)(S,N,E),D(t.routes),x(t.designSteps),G(t.allSteps),w(e),a&&(f.data.customDesign=e,P(f)),e&&"click"===r&&v(i.mT.designColors.path)};return(0,r.useEffect)((()=>{k===m.GV&&(async()=>{const e=await(0,h.C)(y.patternId,!0);if(null!=e&&e.error)return Z(m.a0);_(null==e?void 0:e.body)})()}),[k]),(0,r.createElement)(g.U,null,(0,r.createElement)(d.V3,null,(0,r.createElement)(u.Z,{className:"theme-styles-preview"},(0,r.createElement)("div",{className:"theme-styles-preview__checkbox"},(0,r.createElement)(o.CheckboxControl,{label:(0,r.createElement)("div",{className:"theme-styles-preview__checkbox__label"},(0,r.createElement)("span",{className:"theme-styles-preview__checkbox__label__question"},e.checkbox_label,(0,r.createElement)("span",{className:"theme-styles-preview__checkbox__label__hint"},e.checkbox_hint))),checked:b,onChange:()=>V(!b)})),(0,r.createElement)("div",{className:"theme-styles-preview__title-bar"},(0,r.createElement)("div",{className:"theme-styles-preview__title-bar__browser"},(0,r.createElement)("span",{className:"theme-styles-preview__title-bar__browser__dot"}),(0,r.createElement)("span",{className:"theme-styles-preview__title-bar__browser__dot"}),(0,r.createElement)("span",{className:"theme-styles-preview__title-bar__browser__dot"}))),!a&&(0,r.createElement)(d.i5,{styling:"large",viewportWidth:1300}),a&&(0,r.createElement)(d.i5,{blockGrammer:a,styling:"large",viewportWidth:1300}))))}},284:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(5736);const s=()=>({heading:(0,r.__)("Lets tailor your theme for the perfect fit","wp-module-onboarding"),subheading:(0,r.__)("Start with a style preset or","wp-module-onboarding"),subheading_link:(0,r.__)("build a custom design.","wp-module-onboarding"),checkbox_label:(0,r.__)("Customize Colors & Fonts?","wp-module-onboarding"),checkbox_hint:(0,r.__)("Check to customize in the next few steps (or leave empty and use the Site Editor later)","wp-module-onboarding")})},7946:(e,t,a)=>{a.d(t,{U:()=>n,o:()=>o});var r=a(2819),s=a(5330);const n=(e,t,a)=>{const n=o(e,t,a),l=[s.mT.designColors,s.mT.designTypography];return{routes:(0,r.orderBy)(n.routes.concat(l),["priority"],["asc"]),allSteps:(0,r.orderBy)(n.allSteps.concat(l),["priority"],["asc"]),designSteps:(0,r.orderBy)(n.designSteps.concat(l),["priority"],["asc"])}},o=(e,t,a)=>({routes:(0,r.filter)(e,(e=>!e.path.includes(s.mT.designColors.path)&&!e.path.includes(s.mT.designTypography.path))),allSteps:(0,r.filter)(t,(e=>!e.path.includes(s.mT.designColors.path)&&!e.path.includes(s.mT.designTypography.path))),designSteps:(0,r.filter)(a,(e=>!e.path.includes(s.mT.designColors.path)&&!e.path.includes(s.mT.designTypography.path)))})}}]); \ No newline at end of file diff --git a/build/1.6.1/958.js b/build/1.6.1/958.js deleted file mode 100644 index eecd835f3..000000000 --- a/build/1.6.1/958.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[958],{4316:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(9307);const s=e=>{let{title:t,subtitle:n,children:s}=e;return(0,a.createElement)("div",{className:"nfd-main-heading"},(0,a.createElement)("h2",{className:"nfd-main-heading__title"},t),n&&(0,a.createElement)("h3",{className:"nfd-main-heading__subtitle"},n),s)}},5791:(e,t,n)=>{n.d(t,{Z:()=>b});var a=n(9307),s=n(4184),c=n.n(s),l=n(5158),i=n(9250),r=n(2200),o=n(6989),d=n.n(o),u=n(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const s=(0,i.TH)(),o=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==o||o.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,l.speak)(t,"assertive")}(s,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){d()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${r.Db}-pageview`,{stepID:s.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=s.pathname}),[s.pathname]),(0,a.createElement)("div",{className:c()("nfd-onboarding-layout",t)},n)};var h=n(682);const v=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},b=e=>{let{className:t="",children:n,isBgPrimary:s=!1,isCentered:l=!1,isVerticallyCentered:i=!1,isContained:r=!1,isPadded:o=!1,isFadeIn:d=!0}=e;const u=r?v:a.Fragment;return(0,a.createElement)(h.Z,{type:d&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(m,{className:c()("nfd-onboarding-layout__common",t,{"is-bg-primary":s},{"is-centered":l},{"is-vertically-centered":i},{"is-padded":o})},(0,a.createElement)(u,null,n)))}},8958:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var a=n(9307),s=n(2819),c=n(4333),l=n(9818),i=n(4106),r=n(2200),o=n(5791),d=n(3421),u=n(4316),m=n(1984),h=n(6058),v=n(5609),b=n(682);const g=e=>{let{name:t,icon:n,title:s,desc:c,subtitle:l,callback:i,tabIndex:r=0,isSelectedDefault:o,className:d="checkbox-item"}=e;const[u,g]=(0,a.useState)(!1),[p,E]=(0,a.useState)(o),_=()=>{g(!u)};return(0,a.createElement)("div",null,(0,a.createElement)("div",{className:`${d} ${p&&`${d}--selected`} ${u&&`${d}--shown`}`},(0,a.createElement)("div",{className:`${d}-container`},(0,a.createElement)(v.CheckboxControl,{checked:p,onChange:()=>{E(!p),i(t,!p)},className:`${d}-checkbox`}),(0,a.createElement)("div",{className:`${d}__contents`},(0,a.createElement)("div",{className:`${d}__contents-icon\n ${p&&`${d}__contents-icon--selected`}\n ${u&&`${d}__contents-icon--shown`}`},(0,a.createElement)("div",{style:{width:"35px",height:"35px",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:`var(${n}${p?"--light":""})`}})),(0,a.createElement)("div",{className:`${d}__contents-text`},(0,a.createElement)("div",{className:`${d}__contents-text-title ${p&&`${d}__contents-text-title--selected`}`},s),(0,a.createElement)("div",{className:`${d}__contents-text-subtitle`},l)),(0,a.createElement)("div",{className:`${d}__contents-help ${u?"highlighted":""}`,onClick:_,role:"button",onKeyDown:_,tabIndex:r},(0,a.createElement)(m.Z,{icon:h.Z,style:{width:"30px",height:"30px"}}))))),u&&(0,a.createElement)(b.Z,{className:` ${d}__dropdown `,type:"dropdown"},(0,a.createElement)("div",{className:`${d}__desc`},c)))},p=e=>{let{count:t}=e;const n=()=>{const e=[];for(let n=0;n{let{callback:t,selectedItems:n,customItemsList:s}=e;const c=Object.keys(s).length,l=()=>{var e=[];for(const l in s){var c=s[l];const i=n[c.slug];e.push((0,a.createElement)(g,{name:c.slug,icon:c.icon,title:c.title,subtitle:c.subtitle,desc:c.desc,callback:t,isSelectedDefault:null!=i&&i}))}return e};return(0,a.createElement)("div",{className:"checkbox-list"},(0,a.createElement)("div",{className:"checkbox-list-col"},l().slice(0,Math.floor(c/2))),(0,a.createElement)("div",{className:"checkbox-list-col"},l().slice(Math.floor(c/2),c)))},_=()=>{var e;const t=(0,c.useViewportMatch)("medium"),[n,m]=(0,a.useState)(),[h,v]=(0,a.useState)(),{setIsDrawerOpened:b,setDrawerActiveView:g,setSidebarActiveView:_,setCurrentOnboardingData:f,setIsDrawerSuppressed:w,setIsHeaderNavigationEnabled:N}=(0,l.useDispatch)(i.h),{currentStep:k,currentData:$,themeVariations:y}=(0,l.useSelect)((e=>({currentStep:e(i.h).getCurrentStep(),currentData:e(i.h).getCurrentOnboardingData(),themeVariations:e(i.h).getStepPreviewData()})),[]);return(0,a.useEffect)((()=>{t&&b(!1),_(r.Jq),w(!1),g(r.tM),N(!0),async function(){var e,t;const n=await(0,d.yn)();(0,s.isEmpty)(null==$||null===(e=$.data)||void 0===e?void 0:e.siteFeatures)?async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={};for(const t in e){const a=e[t];n[a.slug]=a.selected}m(n),t&&($.data.siteFeatures={...n},f($))}(n.body,!0):m({...null==$||null===(t=$.data)||void 0===t?void 0:t.siteFeatures}),v(n.body)}()}),[]),(0,a.createElement)(o.Z,null,(0,a.createElement)("div",{style:{margin:"100px"}},(0,a.createElement)(u.Z,{title:null==k?void 0:k.heading,subtitle:null==k?void 0:k.subheading})),!h&&(0,a.createElement)(p,{count:null===(e=y[null==k?void 0:k.patternId])||void 0===e?void 0:e.previewCount}),h&&(0,a.createElement)(E,{callback:async function(e,t){const a={...n};a[e]=t,m(a),$.data.siteFeatures={...a},f($)},selectedItems:n,customItemsList:h}))}}}]); \ No newline at end of file diff --git a/build/1.6.1/996.js b/build/1.6.1/996.js deleted file mode 100644 index 556a8b4a5..000000000 --- a/build/1.6.1/996.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[996],{1211:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(9307),o=n(9250),s=n(9818),i=n(4106);const r=e=>{let{text:t,handleClick:n,disabled:o,className:s}=e;return(0,a.createElement)("button",{type:"button",className:`${s} nfd-card-button`,onClick:()=>{n()},disabled:o},t)};var l=n(7533),d=n(2200);const c=e=>{let{text:t,disabled:n}=e;const c=(0,o.s0)(),m=(0,o.TH)(),{nextStep:u,currentData:b}=(0,s.useSelect)((e=>({nextStep:e(i.h).getNextStep(),currentData:e(i.h).getCurrentOnboardingData()})),[m.path]),p=null===u||!1===u;return(0,a.createElement)(r,{className:"nfd-nav-card-button",text:t,handleClick:()=>p?async function(){b&&(b.isComplete=(new Date).getTime(),(0,l.kB)(b));const e="ecommerce"===window.nfdOnboarding.currentFlow?d.br:d.hF;window.location.replace(e)}():c(u.path),disabled:n})}},9519:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(9307);const o=(0,a.memo)((e=>{let{heading:t,subHeading:n,question:o}=e;return(0,a.createElement)("div",null,t&&(0,a.createElement)("h2",{className:"nfd-step-card-heading"},t),n&&(0,a.createElement)("h3",{className:o?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),o&&(0,a.createElement)("h3",{className:"nfd-step-card-question"},o))}))},5791:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(9307),o=n(4184),s=n.n(o),i=n(5158),r=n(9250),l=n(2200),d=n(6989),c=n.n(d),m=n(4704);const u=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const o=(0,r.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,i.speak)(t,"assertive")}(o,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){c()({url:(0,m.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${l.Db}-pageview`,{stepID:o.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=o.pathname}),[o.pathname]),(0,a.createElement)("div",{className:s()("nfd-onboarding-layout",t)},n)};var b=n(682);const p=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)},g=e=>{let{className:t="",children:n,isBgPrimary:o=!1,isCentered:i=!1,isVerticallyCentered:r=!1,isContained:l=!1,isPadded:d=!1,isFadeIn:c=!0}=e;const m=l?p:a.Fragment;return(0,a.createElement)(b.Z,{type:c&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,a.createElement)(u,{className:s()("nfd-onboarding-layout__common",t,{"is-bg-primary":o},{"is-centered":i},{"is-vertically-centered":r},{"is-padded":d})},(0,a.createElement)(m,null,n)))}},349:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(9307),o=(n(5736),n(4184)),s=n.n(o);const i=e=>{let{className:t="",children:n}=e;return(0,a.createElement)("div",{className:s()("nfd-onboarding-large-card",t)},n)}},2452:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(9307),o=n(682);const s=e=>{let{title:t,text:n,imgType:s,className:i,animationName:r}=e;return(0,a.createElement)("div",{className:i},(0,a.createElement)("div",{className:"tab-text"},(0,a.createElement)("h4",null,t),n),(0,a.createElement)("div",{className:"tab-image"},(0,a.createElement)("div",{className:"tab-img"},(0,a.createElement)(o.Z,{type:r},(0,a.createElement)("div",{className:s})))))}},1056:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(7462),o=n(9307),s=(n(4184),n(2819)),i=n(4333),r=n(9630),l=n(5904);const d=()=>{},c=["menuitem","menuitemradio","menuitemcheckbox"];class m extends o.Component{constructor(){super(...arguments),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}componentWillUnmount(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){const{onlyBrowserTabstops:t}=this.props,n=(t?l.focus.tabbable:l.focus.focusable).find(this.container),a=this.getFocusableIndex(n,e);return a>-1&&e?{index:a,target:e,focusables:n}:null}getFocusableIndex(e,t){const n=e.indexOf(t);if(-1!==n)return n}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:a,onNavigate:o=d,stopNavigationEvents:s}=this.props,i=a(e);if(void 0!==i&&s){e.stopImmediatePropagation();const t=e.target.getAttribute("role");c.includes(t)&&e.preventDefault()}if(!i)return;const r=t(e.target.ownerDocument.activeElement);if(!r)return;const{index:l,focusables:m}=r,u=n?function(e,t,n){const a=e+n;return a<0?t+a:a>=t?a-t:a}(l,m.length,i):l+i;u>=0&&u(0,o.createElement)(m,(0,a.Z)({},e,{forwardedRef:t}));u.displayName="NavigableContainer";const b=(0,o.forwardRef)(u),p=(0,o.forwardRef)((function(e,t){let{role:n="menu",orientation:i="vertical",...l}=e;return(0,o.createElement)(b,(0,a.Z)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:n,"aria-orientation":"presentation"===n?null:i,eventToOffset:e=>{const{keyCode:t}=e;let n=[r.DOWN],a=[r.UP];return"horizontal"===i&&(n=[r.RIGHT],a=[r.LEFT]),"both"===i&&(n=[r.RIGHT,r.DOWN],a=[r.LEFT,r.UP]),(0,s.includes)(n,t)?1:(0,s.includes)(a,t)?-1:(0,s.includes)([r.DOWN,r.UP,r.LEFT,r.RIGHT],t)?0:void 0}},l))}));(0,o.forwardRef)((function(e,t){let{eventToOffset:n,...s}=e;return(0,o.createElement)(b,(0,a.Z)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:e=>{const{keyCode:t,shiftKey:a}=e;return r.TAB===t?a?-1:1:n?n(e):void 0}},s))}));var g=n(5609);const h=()=>{},f=e=>{let{tabId:t,onClick:n,children:s,selected:i,...r}=e;return(0,o.createElement)(g.Button,(0,a.Z)({role:"tab",tabIndex:i?null:-1,"aria-selected":i,id:t,onClick:n},r),s)};function v(e){var t;let{className:n,children:a,tabs:r,initialTabName:l,orientation:d="horizontal",activeClass:c="is-active",notActiveClass:m="is-not-active",onSelect:u=h}=e;const b=(0,i.useInstanceId)(v,"tab-panel"),[g,w]=(0,o.useState)(null),E=e=>{w(e),u(e)},N=(0,s.find)(r,{name:g}),y=`${b}-${null!==(t=null==N?void 0:N.name)&&void 0!==t?t:"none"}`;return(0,o.useEffect)((()=>{(0,s.find)(r,{name:g})||w(l||(r.length>0?r[0].name:null))}),[r]),(0,o.createElement)("div",{className:n},(0,o.createElement)(p,{role:"tablist",orientation:d,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},r.map((e=>(0,o.createElement)(f,{className:`components-tab-panel__tabs-item ${e.name===g&&c} ${e.name!==g&&m}`,tabId:`${b}-${e.name}`,"aria-controls":`${b}-${e.name}-view`,selected:e.name===g,key:e.name,onMouseOver:(0,s.partial)(E,e.name)},e.title)))),N&&(0,o.createElement)("div",{key:y,"aria-labelledby":y,role:"tabpanel",id:`${y}-view`,className:"components-tab-panel__tab-content"},a(N)))}},7996:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var a=n(9307),o=n(4106),s=n(9250),i=n(9818),r=n(5791),l=n(349),d=n(9519),c=n(1211),m=n(2452),u=n(1056),b=n(2200),p=n(5736),g=n(1392);const h=()=>{const e=(0,s.TH)(),{brandName:t}=(0,i.useSelect)((e=>({brandName:e(o.h).getNewfoldBrandName()})),[e.pathname]),{setDrawerActiveView:n,setSidebarActiveView:h,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:v}=(0,i.useDispatch)(o.h);(0,a.useEffect)((()=>{h(b.Jq),v(!0),f(!0),n(b.mz)}),[]);const w=(e=>({heading:(0,p.sprintf)( -/* translators: %s: website or store */ -(0,p.__)("Make your %s dreams a reality!","wp-module-onboarding"),(0,g.I)("website")),subheading:(0,p.sprintf)( -/* translators: %s: Brand */ -(0,p.__)("with WordPress and %s.","wp-module-onboarding"),e),buttonText:(0,p.__)("Start Setup","wp-module-onboarding"),tabs:[{name:"tab1",title:(0,p.__)("YOUR CONTENT","wp-module-onboarding"),subtitle:(0,p.__)("Publish boldly with WordPress Blocks.","wp-module-onboarding"),text:(0,p.sprintf)( -/* translators: %s: Site */ -(0,p.__)("Build a beautiful %s using a visual builder. Block Patterns accelerate telling your story or tending your store with professional designs.","wp-module-onboarding"),(0,g.I)("site")),imgType:"content-img",animationName:"fade-in-right"},{name:"tab2",title:(0,p.__)("POWERFUL FEATURES","wp-module-onboarding"),subtitle:(0,p.__)("Proven, easy-to-use solutions.","wp-module-onboarding"),text:(0,p.sprintf)( -/* translators: %s: Site */ -(0,p.__)("Reach for your %1$s goals using proven WordPress Plugins & %2$s solutions. Send a newsletter, host a podcast, book clients, take payments and more.","wp-module-onboarding"),(0,g.I)("site"),e),imgType:"features-img",animationName:"fade-in-up"},{name:"tab3",title:(0,p.__)("MODERN DESIGN","wp-module-onboarding"),subtitle:(0,p.__)("Paint trim. Move walls. No sweat.","wp-module-onboarding"),text:(0,p.sprintf)( -/* translators: %s: site */ -(0,p.__)("Establish your %s's unique design. Use the WordPress Editor to refine over time with professionally-designed patterns, parts, templates, colors and type.","wp-module-onboarding"),(0,g.I)("site")),imgType:"design-img",animationName:"fade-in-left"}]}))(t);return(0,a.createElement)(r.Z,{isBgPrimary:!0,isCentered:!0},(0,a.createElement)(l.Z,null,(0,a.createElement)("div",{className:"welcome-card"},(0,a.createElement)(d.Z,{heading:w.heading,subHeading:w.subheading}),(0,a.createElement)(u.Z,{className:"nfd-onboarding-overview__tab-panel",tabs:w.tabs.map((e=>({name:e.name,title:e.title,content:(0,a.createElement)(m.Z,{title:e.subtitle,text:e.text,imgType:e.imgType,animationName:e.animationName,className:"tab-data"})})))},(e=>(0,a.createElement)("div",null,e.content))),(0,a.createElement)(c.Z,{text:w.buttonText}))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/onboarding.js b/build/1.6.1/onboarding.js deleted file mode 100644 index 3b8ee9b20..000000000 --- a/build/1.6.1/onboarding.js +++ /dev/null @@ -1,25 +0,0 @@ -(()=>{var e,t,n={2599:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;td,J0:()=>l,RQ:()=>N,WK:()=>I,Zn:()=>S,Zq:()=>x,aU:()=>a,cP:()=>p,fp:()=>h,pC:()=>C,q_:()=>i}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const o="popstate";function i(e){return void 0===e&&(e={}),function(e,t,n,i){void 0===i&&(i={});let{window:s=document.defaultView,v5Compat:p=!1}=i,m=s.history,h=a.Pop,g=null,v=f();function f(){return(m.state||{idx:null}).idx}function w(){h=a.Pop;let e=f(),t=null==e?null:e-v;v=e,g&&g({action:h,location:y.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"==typeof e?e:d(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,m.replaceState(r({},m.state,{idx:v}),""));let y={get action(){return h},get location(){return e(s,m)},listen(e){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(o,w),g=e,()=>{s.removeEventListener(o,w),g=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=a.Push;let r=u(y.location,e,t);n&&n(r,e),v=f()+1;let o=c(r,v),i=y.createHref(r);try{m.pushState(o,"",i)}catch(e){s.location.assign(i)}p&&g&&g({action:h,location:y.location,delta:1})},replace:function(e,t){h=a.Replace;let r=u(y.location,e,t);n&&n(r,e),v=f();let o=c(r,v),i=y.createHref(r);m.replaceState(o,"",i),p&&g&&g({action:h,location:y.location,delta:0})},go:e=>m.go(e)};return y}((function(e,t){let{pathname:n="/",search:r="",hash:a=""}=p(e.location.hash.substr(1));return u("",{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:d(t))}),(function(e,t){s("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function s(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 u(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 d(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=S(("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 o=null;for(let e=0;null==o&&e{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=N([r,i.relativePath]),c=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),g(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:b(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of v(e.path))a(e,t,n);else a(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=v(r.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.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 f=/^:\w+$/,w=e=>"*"===e;function b(e,t){let n=e.split("/"),r=n.length;return n.some(w)&&(r+=-2),t&&(r+=2),n.filter((e=>!w(e))).reduce(((e,t)=>e+(f.test(t)?3:""===t?1:10)),r)}function y(e,t){let{routesMeta:n}=e,r={},a="/",o=[];for(let e=0;e(r.push(t),"/([^\\/]+)")));return e.endsWith("*")?(r.push("*"),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 o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=l[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return s(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function E(e){try{return decodeURI(e)}catch(t){return s(!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 S(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 k(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 and the router will parse it for you.'}function x(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function C(e,t,n,a){let o;void 0===a&&(a=!1),"string"==typeof e?o=p(e):(o=r({},e),l(!o.pathname||!o.pathname.includes("?"),k("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),k("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),k("#","search","hash",o)));let i,s=""===e||""===o.pathname,c=s?"/":o.pathname;if(a||null==c)i=n;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?p(e):e,o=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:o,search:T(r),hash:P(a)}}(o,i),d=c&&"/"!==c&&c.endsWith("/"),m=(s||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!m||(u.pathname+="/"),u}const N=e=>e.join("/").replace(/\/\/+/g,"/"),D=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",P=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function I(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}Error;const A=["post","put","patch","delete"],O=(new Set(A),["get",...A]);new Set(O),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,Symbol("deferred")},1984:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9307);const a=function(e){let{icon:t,size:n=24,...a}=e;return(0,r.cloneElement)(t,{width:n,height:n,...a})}},6713:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},8184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},4310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},8126:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.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"}))},3230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}))},304:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}))},6058:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},6922:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},5430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},9109:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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:"M18.646 9H20V8l-1-.5L12 4 5 7.5 4 8v1h14.646zm-3-1.5L12 5.677 8.354 7.5h7.292zm-7.897 9.44v-6.5h-1.5v6.5h1.5zm5-6.5v6.5h-1.5v-6.5h1.5zm5 0v6.5h-1.5v-6.5h1.5zm2.252 8.81c0 .414-.334.75-.748.75H4.752a.75.75 0 010-1.5h14.5a.75.75 0 01.749.75z",clipRule:"evenodd"}))},2322:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},1941:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}))},1526:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},2601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}))},682:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307),a=n(4184),o=n.n(a);const i=e=>{let{type:t,after:n=!0,children:a,className:i="",duration:l=!1,timingFunction:s=!1}=e;const c="animate";return n?(0,r.createElement)("div",{className:o()(function(){if(t){let e="";switch(t){case"fade-in":e=c.concat("__fade-in");break;case"fade-in-disabled":e=c.concat("__fade-in--disabled");break;case"fade-in-right":e=c.concat("__fade-in--right");break;case"fade-in-left":e=c.concat("__fade-in--left");break;case"fade-in-up":e=c.concat("__fade-in--up");break;case"shine":e=c.concat("__shine");break;case"shine-placeholder":e=c.concat("__shine--placeholder");break;case"dropdown":e=c.concat("__dropdown");break;case"load":e=c.concat("__load")}return e}}(),i),style:{animationDuration:l,animationTimingFunction:s}},a):(0,r.createElement)("div",{className:"animate__blank"},a)}},1589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(9307),a=n(9250),o=n(4310),i=n(9818),l=n(5609),s=n(5736),c=n(4184),u=n.n(c),d=n(7533),p=n(4106),m=n(8395),h=n(2200);const g=e=>{let{buttonText:t=(0,s.__)("Exit to WordPress","wp-module-onboarding"),showButtonIcon:n=!0,showButton:c=!0,buttonVariant:g="secondary",buttonClassName:v=!1,isModalOpen:f=!1,modalTitle:w=(0,s.__)("Exit without finishing?","wp-module-onboarding"),modalText:b=!1,modalPrimaryCloseButtonText:y=(0,s.__)("Continue","wp-module-onboarding"),modalOnClose:_=!1,modalExitButtonText:E=(0,s.__)("Exit","wp-module-onboarding")}=e;const[S,k]=(0,r.useState)(f),x=()=>{"function"==typeof _&&_(),k(!1)},C=(0,a.TH)(),{currentData:N,brandName:D,socialData:T}=(0,i.useSelect)((e=>({currentData:e(p.h).getCurrentOnboardingData(),brandName:e(p.h).getNewfoldBrandName(),socialData:e(p.h).getOnboardingSocialData()})),[C.pathname]),{setOnboardingSocialData:P}=(0,i.useDispatch)(p.h);async function I(e){if(N){if(N.hasExited=(new Date).getTime(),null!=e&&e.includes("basic-info")){const e=await async function(){const e=await(0,m.Gw)(),t=await(0,m.I2)(T);return null!==(null==t?void 0:t.error)?null==e?void 0:e.body:null==t?void 0:t.body}();e&&P(e)}(0,d.kB)(N)}const t="ecommerce"===window.nfdOnboarding.currentFlow?h.br:h.hF;window.location.replace(t)}return b||(b=(0,s.sprintf)( -/* translators: %s: Brand */ -(0,s.__)("You can restart onboarding from your %s Settings page.","wp-module-onboarding"),D)),(0,r.createElement)(r.Fragment,null,c&&(0,r.createElement)(l.Button,{icon:!!n&&o.Z,variant:g,onClick:()=>k(!0),className:u()("nfd-onboarding-etw__trigger",v)},t),S&&(0,r.createElement)(l.Modal,{title:w,onRequestClose:()=>x()},(0,r.createElement)("p",null,b),(0,r.createElement)(l.ButtonGroup,{className:"nfd-onboarding-etw__buttons"},(0,r.createElement)(l.Button,{variant:"secondary",onClick:()=>x()},y),(0,r.createElement)(l.Button,{variant:"primary",onClick:()=>I(C.pathname)},E))))}},1054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307),a=n(5736),o=n(6332);const i=e=>{let{count:t,watch:n,callback:i,className:l,viewportWidth:s,isWithCard:c=!1}=e;const[u,d]=(0,r.useState)(0);return(0,r.useEffect)((()=>d(1)),[n]),n?(0,r.createElement)(r.Fragment,null,n?(0,r.createElement)("div",{style:{display:"none"}},u):null,i()):c?(()=>{const e=[];for(let n=0;n{const e=[];for(let n=0;n{"use strict";n.d(t,{V3:()=>D,i5:()=>f,H:()=>S,T9:()=>x,r9:()=>w.Z});var r=n(9307),a=n(9818),o=n(2175),i=n(4981),l=n(7462),s=n(5609),c=n(4333);let u;const d=6e3;function p(e){var t,n;let{viewportWidth:a,settings:i,containerWidth:l,minHeight:p,additionalStyles:m=[]}=e;a||(a=l);const[h,{height:g}]=(0,c.useResizeObserver)(),{styles:v,assets:f,duotone:w}={styles:i.styles,assets:i.__unstableResolvedAssets,duotone:null===(t=i.__experimentalFeatures)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.duotone},b=(0,r.useMemo)((()=>v?[...v,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...m]:v),[v,m]),y=(0,r.useMemo)((()=>{var e,t;return[...null!==(e=null==w?void 0:w.default)&&void 0!==e?e:[],...null!==(t=null==w?void 0:w.theme)&&void 0!==t?t:[]]}),[w]);u=u||(0,c.pure)(o.BlockList);const _=l/a;return(0,r.createElement)(s.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${_})`,height:g*_,maxHeight:g>d?d*_:void 0,minHeight:p}},(0,r.createElement)(o.__unstableIframe,{head:(0,r.createElement)(o.__unstableEditorStyles,{styles:b}),assets:f,contentRef:(0,c.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:a,height:g,pointerEvents:"none",maxHeight:d,minHeight:0!==_&&_<1&&p?p/_:p}},h,y.map((e=>(0,r.createElement)(o.__unstablePresetDuotoneFilter,{preset:e,key:e.slug}))),(0,r.createElement)(u,{renderAppender:!1})))}function m(e){const[t,{width:n}]=(0,c.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)(p,(0,l.Z)({},e,{containerWidth:n}))))}var h=n(6690),g=n(4106),v=n(682);const f=(0,r.memo)((e=>{let{blockGrammer:t,viewportWidth:n=1300,styling:l="large",setIsLoadingParent:s=!1,previewSettings:c=!1,skeletonLoadingTime:u=2500}=e;const[d,p]=(0,r.useState)(),[f,w]=(0,r.useState)(),[b,y]=(0,r.useState)(!0);(0,r.useEffect)((()=>{if(u){const e=setTimeout((()=>{y(!1),s&&s(!1)}),u);return()=>clearTimeout(e)}y(!1),s&&s(!1)}),[u]);const{currentData:_,storedPreviewSettings:E}=(0,a.useSelect)((e=>({currentData:e(g.h).getCurrentOnboardingData(),storedPreviewSettings:e(g.h).getPreviewSettings()})),[]);(0,r.useEffect)((()=>{w(c?(0,h.NF)(c,E,"block-preview"):E)}),[]),(0,r.useEffect)((()=>{t&&p((0,i.parse)(t))}),[t]),(0,r.useEffect)((()=>{c||w(E)}),[E,_]);const S=(0,r.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)(v.Z,{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"}))));return(0,r.createElement)("div",{className:`live-preview__container-${l}`},b&&(0,r.createElement)(S,null),d&&f&&(0,r.createElement)(o.BlockEditorProvider,{value:d,settings:f.settings},(0,r.createElement)(m,{viewportWidth:n,settings:f.settings})))}));var w=n(1054),b=n(1984),y=n(8184),_=n(444);const E=(0,r.createElement)(_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(_.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"})),S=e=>{let{className:t="live-preview--selectable-card",selected:n=!1,blockGrammer:a,viewportWidth:o=1500,styling:i="large",previewSettings:l,overlay:s=!1,onClick:c=!1,skeletonLoadingTime:u=2500}=e;const[d,p]=(0,r.useState)(!0);return(0,r.createElement)("div",{className:`${t}`,role:"button",tabIndex:0,onClick:"function"==typeof c&&(()=>{d||c()}),onKeyDown:"function"==typeof c&&(()=>{d||c()})},(0,r.createElement)("div",{className:`${t}__title-bar`},(0,r.createElement)("div",{className:`${t}__title-bar__browser`},(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`})),(0,r.createElement)("div",{className:n?`${t}__title-bar--selected live-preview-selected-check`:`${t}__title-bar--unselected`},(0,r.createElement)(b.Z,{className:`${t}__title-bar--selected__path`,icon:y.Z,size:64}))),(0,r.createElement)("div",{className:`${t}__live-preview-container`},(0,r.createElement)(f,{styling:i,blockGrammer:a,viewportWidth:o,previewSettings:l,setIsLoadingParent:p,skeletonLoadingTime:u}),s&&!d&&(0,r.createElement)("div",{className:`${t}__live-preview-container__overlay`},(0,r.createElement)(b.Z,{className:`${t}__live-preview-container__overlay__icon`,size:64,icon:E}))))};var k=n(6058);const x=e=>{let{className:t="live-preview--selectable-card--title-description",selected:n=!1,blockGrammer:a,viewportWidth:o=1500,styling:i="large",previewSettings:l,onClick:c=!1,skeletonLoadingTime:u=2500,title:d=!1,description:p=!1,slug:m}=e;const[h,g]=(0,r.useState)(!1),w=e=>{"function"==typeof c&&c(e,m,d)};return(0,r.createElement)("div",{className:`${t}`},(0,r.createElement)("div",{className:`${t}__live-preview-container`,onClick:()=>w(!n),role:"presentation"},(0,r.createElement)(f,{styling:i,blockGrammer:a,viewportWidth:o,previewSettings:l,skeletonLoadingTime:u})),(0,r.createElement)("div",{className:`${t}__information`,style:{backgroundColor:h?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("div",{className:`${t}__information__title-question`},(0,r.createElement)("div",{className:`${t}__information__title-question__checkbox`},(0,r.createElement)(s.CheckboxControl,{label:(0,r.createElement)("b",null,d),onChange:()=>w(!n),checked:n})),(0,r.createElement)("div",{className:`${t}__information__title-question__question`},(0,r.createElement)(b.Z,{className:`${t}__information__title-question__question__icon`,icon:k.Z,style:{fill:h&&"var(--wp-admin-theme-color-darker-10)"},onClick:()=>g(!h)})))),h&&(0,r.createElement)(v.Z,{type:"dropdown",className:`${t}__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:`${t}__description--text`},p)))};var C=n(7625),N=n(2200);const D=e=>{let{children:t}=e;const[n,o]=(0,r.useState)(!1),{currentData:i,storedPreviewSettings:l,themeStatus:s}=(0,a.useSelect)((e=>({currentData:e(g.h).getCurrentOnboardingData(),storedPreviewSettings:e(g.h).getPreviewSettings(),themeStatus:e(g.h).getThemeStatus()})),[]),{updateThemeStatus:c,updatePreviewSettings:u,enqueueRequest:d}=(0,a.useDispatch)(g.h);return(0,r.useEffect)((()=>{n||N.GV!==s||(async()=>{let e;if(null!=l&&l.title&&null!=l&&l.settings)e=l;else{var t;const n=await(0,C.oC)();if(null!=n&&n.error)return c(N.a0);i.data.theme.variation?e=n.body.filter((e=>e.title===i.data.theme.variation))[0]:0===(null===(t=n.body[0])||void 0===t?void 0:t.id)&&(e=n.body[0]),u((0,h.NF)(e,l))}e&&d(N.Az.SET_GLOBAL_STYLES,(()=>(0,C.cw)({...e,title:i.data.theme.variation,version:2}))),o(!0)})()}),[n,s]),t}},5330:(e,t,n)=>{"use strict";n.d(t,{mT:()=>De,BX:()=>Pe,fS:()=>Ie,Fl:()=>Ae,iD:()=>Te,_j:()=>Ce,S6:()=>Ne});var r=n(9307),a=n(5736),o=n(2819),i=n(4106),l=n(9250),s=n(9818);var c=n(1392),u=n(444);const d=(0,r.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(u.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})),p=(0,r.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(u.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 m=n(6922),h=n(2322);const g=(0,r.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(u.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"}));var v=n(5430);const f=(0,r.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(u.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"}));var w=n(304);const b=(0,r.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(u.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"}));var y=n(3230),_=n(1941),E=n(8126),S=n(2601),k=n(6713),x=n(2200);const C=(0,r.lazy)((()=>n.e(187).then(n.bind(n,7187)))),N=(0,r.lazy)((()=>n.e(880).then(n.bind(n,4880)))),D=(0,r.lazy)((()=>n.e(577).then(n.bind(n,7577)))),T=(0,r.lazy)((()=>n.e(996).then(n.bind(n,7996)))),P=(0,r.lazy)((()=>n.e(998).then(n.bind(n,8998)))),I=(0,r.lazy)((()=>n.e(594).then(n.bind(n,1594)))),A=(0,r.lazy)((()=>n.e(139).then(n.bind(n,8139)))),O=(0,r.lazy)((()=>n.e(888).then(n.bind(n,5888)))),L=(0,r.lazy)((()=>n.e(27).then(n.bind(n,7027)))),R=(0,r.lazy)((()=>n.e(253).then(n.bind(n,2253)))),F=(0,r.lazy)((()=>n.e(61).then(n.bind(n,5061)))),V=(0,r.lazy)((()=>n.e(565).then(n.bind(n,7565)))),$=(0,r.lazy)((()=>n.e(907).then(n.bind(n,4907)))),z=(0,r.lazy)((()=>n.e(264).then(n.bind(n,5264)))),B=(0,r.lazy)((()=>n.e(473).then(n.bind(n,7473)))),M=(0,r.lazy)((()=>n.e(428).then(n.bind(n,3428)))),U=(0,r.lazy)((()=>n.e(932).then(n.bind(n,2932)))),W=(0,r.lazy)((()=>n.e(860).then(n.bind(n,5860)))),H=(0,r.lazy)((()=>n.e(608).then(n.bind(n,9608)))),G=(0,r.lazy)((()=>n.e(9).then(n.bind(n,8009)))),Z=(0,r.lazy)((()=>n.e(858).then(n.bind(n,8858)))),j=(0,r.lazy)((()=>n.e(848).then(n.bind(n,3848)))),q=(0,r.lazy)((()=>n.e(331).then(n.bind(n,5331)))),Q=(0,r.lazy)((()=>n.e(869).then(n.bind(n,2869)))),J=(0,r.lazy)((()=>n.e(193).then(n.bind(n,3193)))),K=(0,r.lazy)((()=>n.e(361).then(n.bind(n,7361)))),Y=(0,r.lazy)((()=>n.e(437).then(n.bind(n,3437)))),X=(0,r.lazy)((()=>n.e(111).then(n.bind(n,111)))),ee=(0,r.lazy)((()=>n.e(958).then(n.bind(n,8958)))),te=(0,r.lazy)((()=>n.e(645).then(n.bind(n,4645)))),ne=(0,r.lazy)((()=>n.e(181).then(n.bind(n,4181)))),re=(0,r.lazy)((()=>n.e(216).then(n.bind(n,3216)))),ae=(0,r.lazy)((()=>n.e(179).then(n.bind(n,7179)))),oe=[{path:"/",title:"",description:"",Component:()=>{const e=(0,l.s0)(),{firstStep:t}=(0,s.useSelect)((e=>({firstStep:e(i.h).getFirstStep()})),[]);return(0,r.useEffect)((()=>{e(t.path,{replace:!0,state:{origin:"index-redirect"}})})),(0,r.createElement)(r.Fragment,null)},Icon:(0,r.createElement)(r.Fragment,null)},{path:"/page/resources",title:(0,a.__)("Resources","wp-module-onboarding"),description:"",Component:N,Icon:d},{path:"/page/what-to-expect",title:(0,a.__)("What to Expect","wp-module-onboarding"),description:"",Component:D,Icon:p},{path:"*",title:(0,a.__)("Error 404","wp-module-onboarding"),description:"Please Check Again!",Component:C,Icon:p}],ie=[{path:"/wp-setup/step/get-started/welcome",title:(0,a.__)("Welcome","wp-module-onboarding"),description:(0,a.__)("We'll use this to personalize this onboarding and future recommendations","wp-module-onboarding"),Component:T,Icon:m.Z,priority:20,VIEW:x.mz,sidebars:{LearnMore:{SidebarComponents:[P]}}},{path:"/wp-setup/step/get-started/experience",title:(0,a.__)("WordPress Experience","wp-module-onboarding"),description:(0,a.__)("We'll use this to personalize this onboarding and future recommendations","wp-module-onboarding"),Component:I,Icon:m.Z,priority:40,VIEW:x.mz,sidebars:{LearnMore:{SidebarComponents:[A]}}},{path:"/wp-setup/step/get-started/site-primary",title:(0,a.sprintf)( -/* translators: %s: website or store */ -(0,a.__)("Primary %s Setup","wp-module-onboarding"),(0,c.I)("Site")),Component:O,Icon:h.Z,priority:60,sidebars:{LearnMore:{SidebarComponents:[L]}}},{path:"/wp-setup/step/get-started/site-secondary",title:(0,a.sprintf)( -/* translators: %s: website or store */ -(0,a.__)("Secondary %s Setup","wp-module-onboarding"),(0,c.I)("Site")),Component:R,Icon:h.Z,priority:80,sidebars:{LearnMore:{SidebarComponents:[F]}}},{path:"/wp-setup/step/top-priority",title:(0,a.__)("Top Priority","wp-module-onboarding"),heading:(0,a.__)("Tell us your top priority","wp-module-onboarding"),subheading:(0,a.__)("We'll prioritize getting you there.","wp-module-onboarding"),description:(0,a.__)("We'll recommend design choices, site options and products and features we have to offer.","wp-module-onboarding"),Component:V,Icon:g,priority:100},{path:"/wp-setup/step/basic-info",title:(0,a.__)("Basic Info","wp-module-onboarding"),heading:(0,a.sprintf)( -/* translators: %s: website or store */ -(0,a.__)("Introduce us to this %s","wp-module-onboarding"),(0,c.I)("website")),subheading:(0,a.__)("So we can introduce it to the web","wp-module-onboarding"),description:(0,a.sprintf)( -/* translators: %s: website or store */ -(0,a.__)("Help visitors, search results and social media identify your %s.","wp-module-onboarding"),(0,c.I)("site")),Component:$,Icon:v.Z,priority:120,sidebars:{LearnMore:{SidebarComponents:[z]}}},{path:"/wp-setup/step/design/theme-styles/menu",title:(0,a.__)("Theme Styles","wp-module-onboarding"),Component:B,Icon:f,priority:160,designDrawerActiveLinkIncludes:"/wp-setup/step/design/theme-styles/",VIEW:x.Yl,patternId:"theme-styles",sidebars:{LearnMore:{SidebarComponents:[M]}}},{path:"/wp-setup/step/design/theme-styles/preview",title:(0,a.__)("Theme Styles","wp-module-onboarding"),Component:U,Icon:f,priority:170,VIEW:x._h,designDrawerActiveLinkIncludes:"/wp-setup/step/design/theme-styles/",patternId:"theme-styles",sidebars:{LearnMore:{SidebarComponents:[W]}}},{path:"/wp-setup/step/design/header-menu",title:(0,a.__)("Header & Menu","wp-module-onboarding"),heading:(0,a.__)("Let's make the right things visible","wp-module-onboarding"),subheading:(0,a.__)("Your site header helps organize your story for visitors.","wp-module-onboarding"),description:(0,a.__)("A well-organized site makes visitors feel smart, helping you keep and convert them.","wp-module-onboarding"),Component:q,Icon:w.Z,priority:220,VIEW:x.qO,patternId:"header-menu",sidebars:{LearnMore:{SidebarComponents:[Q]}}},{path:"/wp-setup/step/design/homepage-menu",title:(0,a.__)("Homepage Layouts","wp-module-onboarding"),heading:(0,a.__)("There’s no place like a great home page","wp-module-onboarding"),subheading:(0,a.__)("Pick a starter layout you can refine and remix with your content","wp-module-onboarding"),description:(0,a.__)("A well-organized homepage makes visitors feel smart.","wp-module-onboarding"),Component:J,Icon:b,priority:240,VIEW:x.Yl,patternId:"homepage-styles",sidebars:{LearnMore:{SidebarComponents:[K]}}},{path:"/wp-setup/step/design/site-pages",title:(0,a.__)("Page Layouts","wp-module-onboarding"),heading:(0,a.__)("You have ideas, we have page templates","wp-module-onboarding"),subheading:(0,a.__)("Begin closer to the finish line than a blank canvas.","wp-module-onboarding"),description:(0,a.__)("Pick a page, pick a layout and we'll focus on the basics so you focus on what's important and unique.","wp-module-onboarding"),Component:Y,Icon:y.Z,priority:260,patternId:"site-pages",sidebars:{LearnMore:{SidebarComponents:[X]}}},{path:"/wp-setup/step/site-features",title:(0,a.__)("Features","wp-module-onboarding"),heading:(0,a.__)("Key features to supercharge your site","wp-module-onboarding"),subheading:(0,a.__)("Our toolbox of Plugins & Services is your toolbox.","wp-module-onboarding"),description:(0,a.__)("Through Plugins, partners and unique $BRAND WordPress features, you've got tons of capabilities with $SITE.","wp-module-onboarding"),Component:ee,Icon:_.Z,priority:280,patternId:"site-features",sidebars:{LearnMore:{SidebarComponents:[te]}}},{path:"/wp-setup/step/complete",Component:ne,priority:285},{path:"/wp-setup/step/what-next",title:(0,a.__)("What Next","wp-module-onboarding"),heading:(0,a.__)("How else can we help?","wp-module-onboarding"),subheading:(0,a.__)("We've got the basics setup, but we can help with any next steps.","wp-module-onboarding"),description:(0,a.__)("Setup more of your site, show you around WordPress or share secrets to success -- we'll follow your lead on how you'd like to proceed.","wp-module-onboarding"),Component:re,Icon:h.Z,priority:300,sidebars:{LearnMore:{SidebarComponents:[ae]}}}],le={designColors:{path:"/wp-setup/step/design/colors",title:(0,a.__)("Colors","wp-module-onboarding"),heading:(0,a.__)("What's your color palette?","wp-module-onboarding"),subheading:(0,a.__)("We'll paint everything with your colors for a fresh, crisp look.","wp-module-onboarding"),description:(0,a.__)("Strong contrast and clear readability help your words jump off the screen.","wp-module-onboarding"),Component:H,Icon:E.Z,priority:180,VIEW:x.qR,patternId:"theme-styles",sidebars:{LearnMore:{SidebarComponents:[G]}}},designTypography:{path:"/wp-setup/step/design/typography",title:(0,a.__)("Typography","wp-module-onboarding"),heading:(0,a.__)("What's your font style?","wp-module-onboarding"),subheading:(0,a.__)("Impress your visitors with strong branding and aesthetics.","wp-module-onboarding"),description:(0,a.__)("Good typography uses style and proportions to give your words identity and priority. What's your story? Your focus?","wp-module-onboarding"),Component:Z,Icon:S.Z,priority:200,VIEW:x.jN,patternId:"theme-styles",sidebars:{LearnMore:{SidebarComponents:[j]}}}},se=[...oe,...ie],ce=()=>{const e=(0,o.filter)(ie,(e=>!e.path.includes("/step/get-started")&&!e.path.includes("/step/design")&&!e.path.includes("/step/complete"))),t={path:"/wp-setup/step/design/theme-styles/menu",title:(0,a.__)("Design","wp-module-onboarding"),description:"",Icon:k.Z,VIEW:x.Yl,primaryDrawerActiveLinkIncludes:"/wp-setup/step/design/",priority:140},n={path:"/wp-setup/step/get-started/welcome",title:(0,a.__)("Get Started","wp-module-onboarding"),heading:(0,a.__)("Get Started","wp-module-onboarding"),Icon:m.Z,VIEW:x.mz,primaryDrawerActiveLinkIncludes:"/wp-setup/step/get-started/",priority:20};return e.push(t),e.push(n),(0,o.orderBy)(e,["priority"],["asc"])},ue=()=>(0,o.filter)(ie,(e=>e.path.includes("/step/design/")&&!e.path.includes("/theme-styles/preview"))),de=()=>(0,o.filter)(ie,(e=>e.path.includes("/step/get-started")));var pe=n(1526),me=n(9109);const he=(0,r.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(u.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"})),ge=(0,r.lazy)((()=>n.e(155).then(n.bind(n,1155)))),ve=(0,r.lazy)((()=>n.e(135).then(n.bind(n,5135)))),fe=(0,r.lazy)((()=>n.e(833).then(n.bind(n,9833)))),we=(0,r.lazy)((()=>n.e(338).then(n.bind(n,4338)))),be=(0,r.lazy)((()=>n.e(722).then(n.bind(n,2722)))),ye=(0,r.lazy)((()=>n.e(949).then(n.bind(n,7949)))),_e=[{path:"/ecommerce/step/address",title:(0,a.__)("Street Address","wp-module-onboarding"),heading:(0,a.__)("Street Address","wp-module-onboarding"),subheading:(0,a.__)("In this step you confirm the business address of your store. Simply confirm the one you provided during your initial Bluehost account setup or provide a new one.","wp-module-onboarding"),description:(0,a.__)("In this step you confirm the business address of your store. Simply confirm the one you provided during your initial Bluehost account setup or provide a new one.","wp-module-onboarding"),Component:ge,Icon:pe.Z,priority:85,VIEW:x.dv,sidebars:{LearnMore:{SidebarComponents:[ve]}}},{path:"/ecommerce/step/tax",title:(0,a.__)("Tax Info","wp-module-onboarding"),heading:(0,a.__)("Tax Info","wp-module-onboarding"),subheading:(0,a.__)("Taxes can be configure at anytime in the WooCommerce Settings tab.","wp-module-onboarding"),description:(0,a.__)("Taxes can be configured at anytime in the WooCommerce Settings tab.","wp-module-onboarding"),Component:fe,Icon:me.Z,priority:90,VIEW:x.dv,sidebars:{LearnMore:{SidebarComponents:[we]}}},{path:"/ecommerce/step/products",title:(0,a.__)("Product Info","wp-module-onboarding"),heading:(0,a.__)("Product Info","wp-module-onboarding"),subheading:(0,a.__)("Hello, add a subheading for the learn more sidebar.","wp-module-onboarding"),description:(0,a.__)("In this section, you can provide more information about your products and business, which will help us tailor your store setup experience and identify possible extensions you'll need for your online store.","wp-module-onboarding"),Component:be,Icon:he,priority:95,VIEW:x.dv,sidebars:{LearnMore:{SidebarComponents:[ye]}}}],Ee=(0,o.orderBy)([...(0,o.filter)(ie,(e=>!e.path.includes("/step/top-priority")&&!e.path.includes("/step/get-started/site-primary"))),..._e],["priority"],["asc"]),Se=(0,o.orderBy)([...Ee,...oe],["priority"],["asc"]);function ke(){var e;return null!==(e=window.nfdOnboarding.currentFlow)&&void 0!==e?e:"wp-setup"}const xe={"wp-setup":{routes:se,steps:ie,conditionalSteps:le,initialTopSteps:ce,initialDesignSteps:ue,initialGetStartedSteps:de},ecommerce:{routes:Se,steps:Ee,conditionalSteps:le,initialTopSteps:()=>{const e=(0,o.filter)(_e,(e=>!e.path.includes("/ecommerce/step"))),t={path:"/ecommerce/step/address",title:(0,a.__)("Store Info","wp-module-onboarding"),description:"",Icon:pe.Z,primaryDrawerActiveLinkIncludes:"/ecommerce/step/",VIEW:x.dv,priority:41};e.push(t);const n=(0,o.filter)(ce(),(e=>!e.path.includes("/step/top-priority")));return(0,o.orderBy)([...n,...e],["priority"],["asc"])},initialDesignSteps:ue,initialGetStartedSteps:()=>(0,o.filter)(de(),(e=>!e.path.includes("/step/get-started/site-primary"))),initialStoreInfoSteps:_e}},Ce=[...xe[ke()].routes],Ne=[...xe[ke()].steps],De=xe[ke()].conditionalSteps,Te=()=>xe[ke()].initialTopSteps(),Pe=()=>xe[ke()].initialDesignSteps(),Ie=()=>xe[ke()].initialGetStartedSteps(),Ae=()=>xe[ke()].initialStoreInfoSteps?xe[ke()].initialStoreInfoSteps:[]},4106:(e,t,n)=>{"use strict";n.d(t,{h:()=>Se});var r={};n.r(r),n.d(r,{dequeueRequest:()=>x,enqueueRequest:()=>k,flushQueue:()=>C,setActiveFlow:()=>c,setActiveStep:()=>u,setCurrentOnboardingData:()=>d,setDrawerActiveView:()=>i,setHeaderMenuData:()=>S,setIsDrawerOpened:()=>l,setIsDrawerSuppressed:()=>s,setIsHeaderNavigationEnabled:()=>w,setIsSidebarOpened:()=>v,setOnboardingSocialData:()=>p,setRuntime:()=>o,setSidebarActiveView:()=>f,updateAllSteps:()=>_,updateDesignSteps:()=>E,updatePluginsStatus:()=>g,updatePreviewSettings:()=>b,updateRoutes:()=>y,updateSettings:()=>m,updateThemeStatus:()=>h});var a={};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:"wp-setup",stepPreviewData:e.previewSettings.stepPreviewData},{type:"SET_RUNTIME",runtime:e}}function i(e){return{type:"SET_DRAWER_ACTIVE_VIEW",view:e}}function l(e){return{type:"SET_DRAWER_OPENED",isOpen:e}}function s(e){return{type:"SET_DRAWER_SUPPRESSED",isSuppressed:e}}function c(e){return{type:"SET_ACTIVE_FLOW",flow:e}}function u(e){return{type:"SET_ACTIVE_STEP",path:e=e.replace(/\/$/,"")}}function d(e){return{type:"SET_CURRENT_DATA",flowData:e}}function p(e){return{type:"SET_SOCIAL_DATA",socialData:e}}function m(e){return{type:"UPDATE_SETTINGS",settings:e}}function h(e){return{type:"UPDATE_THEME_STATUS",themeStatus:e}}function g(e){return{type:"UPDATE_PLUGINS_STATUS",pluginsStatus:e}}function v(e){return{type:"SET_SIDEBAR_OPENED",isOpen:e}}function f(e){return{type:"SET_SIDEBAR_ACTIVE_VIEW",view:e}}function w(e){return{type:"SET_HEADER_NAVIGATION_ENABLED",isNavigationEnabled:e}}function b(e){return{type:"SET_PREVIEW_SETTINGS",previewSettings:e}}function y(e){return{type:"UPDATE_ROUTES",routes:e}}function _(e){return{type:"UPDATE_ALL_STEPS",allSteps:e}}function E(e){return{type:"UPDATE_DESIGN_STEPS",designSteps:e}}function S(e){return{type:"UPDATE_HEADER_MENU_DATA",menu:e}}function k(e,t){return{type:"ENQUEUE_REQUEST",id:e,request:t}}function x(){return{type:"DEQUEUE_REQUEST"}}function C(){return{type:"FLUSH_QUEUE"}}n.r(a),n.d(a,{getAllSteps:()=>M,getCurrentOnboardingData:()=>V,getCurrentStep:()=>q,getCurrentStepPath:()=>G,getDesignSteps:()=>W,getDrawerView:()=>T,getExpertsUrl:()=>se,getFirstStep:()=>Z,getGetStartedSteps:()=>H,getHeaderMenuData:()=>le,getHireExpertsUrl:()=>F,getLastStep:()=>j,getNewfoldBrand:()=>O,getNewfoldBrandConfig:()=>R,getNewfoldBrandName:()=>L,getNextStep:()=>K,getOnboardingFlow:()=>z,getOnboardingSocialData:()=>$,getPluginInstallHash:()=>de,getPluginsStatus:()=>ae,getPreviewSettings:()=>te,getPreviousStep:()=>J,getQueuePeek:()=>pe,getRoutes:()=>B,getSettings:()=>ne,getSidebarView:()=>X,getSidebars:()=>ee,getStepFromPath:()=>Q,getStepPreviewData:()=>ie,getStoreInfoSteps:()=>oe,getTechSupportUrl:()=>ue,getThemeStatus:()=>re,getTopSteps:()=>U,getfullServiceCreativeTeamUrl:()=>ce,isDrawerOpened:()=>P,isDrawerSuppressed:()=>I,isHeaderNavigationEnabled:()=>A,isQueueEmpty:()=>me,isSidebarOpened:()=>Y});var N=n(2819);const D=window.wp.url;function T(e){return e.drawer.view}function P(e){return e.drawer.isOpen}function I(e){return e.drawer.isSuppressed}function A(e){return e.header.isNavigationEnabled}function O(e){return e.runtime.currentBrand.brand}function L(e){return e.runtime.currentBrand.name}function R(e){return e.runtime.currentBrand.config}function F(e){const t=e.runtime.currentBrand.hireExpertsInfo;return(0,D.addQueryArgs)(null==t?void 0:t.defaultLink,null==t?void 0:t.queryParameters)+((null==t?void 0:t.fragment)||"")}function V(e){return e.data.flowData}function $(e){return e.data.socialData}function z(e){var t;return null!==(t=e.runtime.currentFlow)&&void 0!==t?t:"wp-setup"}function B(e){return e.flow.steps.routes}function M(e){return e.flow.steps.allSteps}function U(e){return e.flow.steps.topSteps}function W(e){return e.flow.steps.designSteps}function H(e){return e.flow.steps.getStartedSteps}function G(e){return e.flow.steps.currentStep}function Z(e){return e.flow.steps.allSteps[0]}function j(e){return e.flow.steps.allSteps[e.flow.steps.allSteps.length-1]}function q(e){return(0,N.filter)(e.flow.steps.allSteps,["path",e.flow.steps.currentStep])[0]}function Q(e,t){return(0,N.filter)(e.flow.steps.allSteps,["path",t])[0]}function J(e){const t=(0,N.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return 0===t?null:-1!==t&&e.flow.steps.allSteps[t-1]}function K(e){const t=e.flow.steps.allSteps.length-1,n=(0,N.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return t===n?null:-1!==n&&e.flow.steps.allSteps[n+1]}function Y(e){return e.sidebar.isOpen}function X(e){return e.sidebar.view}function ee(e){return(0,N.filter)(e.sidebar.sidebars,["enabled",!0])}function te(e){return e.runtime.previewSettings.settings}function ne(e){return e.settings}function re(e){return e.settings.themeStatus}function ae(e){return e.settings.pluginsStatus}function oe(e){return e.flow.steps.storeInfoSteps}function ie(e){return e.runtime.previewSettings.stepPreviewData}function le(e){return e.header.menu}function se(e){const t=e.runtime.currentBrand.expertsInfo;return(0,D.addQueryArgs)(null==t?void 0:t.defaultLink,null==t?void 0:t.queryParams)+((null==t?void 0:t.fragment)||"")}function ce(e){const t=e.runtime.currentBrand.fullServiceCreativeTeamInfo;return(0,D.addQueryArgs)(null==t?void 0:t.defaultLink,null==t?void 0:t.queryParams)+((null==t?void 0:t.fragment)||"")}function ue(e){const t=e.runtime.currentBrand.techSupportInfo;return(0,D.addQueryArgs)(null==t?void 0:t.defaultLink,null==t?void 0:t.queryParams)+((null==t?void 0:t.fragment)||"")}function de(e){return e.runtime.pluginInstallHash}function pe(e){var t;return null!==(t=null==e?void 0:e.queue[0])&&void 0!==t?t:null}function me(e){var t;return 0===(null==e||null===(t=e.queue)||void 0===t?void 0:t.length)}var he=n(9818);window.wp.dataControls;var ge=n(2200),ve=n(5330),fe=n(9307);const we=(0,fe.lazy)((()=>n.e(993).then(n.bind(n,1993)))),be=(0,fe.lazy)((()=>n.e(310).then(n.bind(n,6310)))),ye=[{id:ge.Jq,menu:we,sidebar:be,enabled:!0}],_e=async e=>{const t=e,n=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t[0]&&await t[0][1]().then((t=>{t.error&&et.shift())).then(n)};return await n(),t},Ee={reducer:(0,he.combineReducers)({drawer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isOpen:!1,isSuppressed:!1,view:ge.tM},t=arguments.length>1?arguments[1]:void 0;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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_RUNTIME":return{...e,...t.runtime};case"SET_PREVIEW_SETTINGS":return{...e,previewSettings:{...e.previewSettings,settings:t.previewSettings}}}return e},data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CURRENT_DATA":return{...e,flowData:{...t.flowData}};case"SET_SOCIAL_DATA":return{...e,socialData:{...t.socialData}}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{themeStatus:ge.a0,pluginsStatus:{[ge.Gv]:ge.Ck}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings};case"UPDATE_THEME_STATUS":return{...e,themeStatus:t.themeStatus};case"UPDATE_PLUGINS_STATUS":return{...e,pluginsStatus:t.pluginsStatus}}return e},flow:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{flow:"wp-setup",steps:{routes:ve._j,allSteps:ve.S6,topSteps:(0,ve.iD)(),designSteps:(0,ve.BX)(),getStartedSteps:(0,ve.fS)(),storeInfoSteps:(0,ve.Fl)(),currentStep:"/wp-setup/step/what-next"}},t=arguments.length>1?arguments[1]:void 0;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_DESIGN_STEPS":return{...e,steps:{...e.steps,designSteps:t.designSteps}}}return e},sidebar:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isOpen:!1,view:"LearnMore",sidebars:ye},t=arguments.length>1?arguments[1]:void 0;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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isNavigationEnabled:!0,menu:""},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_HEADER_NAVIGATION_ENABLED":return{...e,isNavigationEnabled:t.isNavigationEnabled};case"UPDATE_HEADER_MENU_DATA":return{...e,menu:t.menu}}return e},queue:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;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 _e(e),[]}return e}}),actions:r,selectors:a},Se=(0,he.createReduxStore)("newfold/onboarding",Ee);(0,he.register)(Se)},4704:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,F:()=>a});var r=n(2200);const a=e=>{var t;return`${r.bQ}/${e}`+(null!==(t=window.nfdOnboarding)&&void 0!==t&&t.currentFlow?`&flow=${window.nfdOnboarding.currentFlow}`:"")},o=e=>`${r.km}/${e}`},3768:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>s,pn:()=>l,xb:()=>i});var r=n(6989),a=n.n(r),o=n(4704);const i=e=>0===Object.keys(e).length;async function l(){return a()({url:(0,o.$)("settings")})}async function s(e){return a()({url:(0,o.$)("settings"),method:"POST",data:e})}},7533:(e,t,n)=>{"use strict";n.d(t,{BN:()=>u,ME:()=>s,kB:()=>c});var r=n(6329),a=n(4704),o=n(6989),i=n.n(o);let l;async function s(){return await(0,r.D)(i()({url:(0,a.F)("flow")}).then())}async function c(e){l&&l.abort("New setFlow request placed!"),l=new AbortController;const{signal:t}=l;return await(0,r.D)(i()({url:(0,a.F)("flow"),signal:t,method:"POST",data:e}).then())}async function u(){return await(0,r.D)(i()({url:(0,a.F)("flow/complete"),method:"POST"}).then())}},6138:(e,t,n)=>{"use strict";n.d(t,{C:()=>l});var r=n(6329),a=n(4704),o=n(6989),i=n.n(o);async function l(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return await(0,r.D)(i()({url:(0,a.F)("patterns"+(e?`&step=${e}&squash=${t}`:""))}).then())}},3421:(e,t,n)=>{"use strict";n.d(t,{S1:()=>c,qC:()=>u,uc:()=>p,yn:()=>d});var r=n(6989),a=n.n(r),o=n(4704),i=n(2853),l=n(6329),s=n(2200);const c=()=>{if((0,i.Ph)(s.tY))return!0;a()({url:(0,o.F)("plugins/initialize"),method:"POST",headers:{"X-NFD-ONBOARDING":window.nfdOnboarding.pluginInstallHash}}).catch((e=>{console.error(e)}))},u=async e=>await(0,l.D)(a()({url:(0,o.F)("plugins/status"+(e?`&plugin=${e}`:""))})),d=async()=>await(0,l.D)(a()({url:(0,o.F)("plugins/site-features")})),p=async(e,t)=>await(0,l.D)(a()({url:(0,o.F)("plugins/site-features"),method:"POST",headers:{"X-NFD-ONBOARDING":e},data:t}))},6329:(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,{D:()=>r})},8395:(e,t,n)=>{"use strict";n.d(t,{Gw:()=>s,I2:()=>c,j2:()=>u});var r=n(6989),a=n.n(r),o=n(6329),i=n(2200),l=n(4704);async function s(){return await(0,o.D)(a()({url:(0,l.F)("settings")}).then())}async function c(e){return await(0,o.D)(a()({url:(0,l.F)("settings"),method:"POST",data:e}).then())}const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return!(e>=i.wV)&&a()({url:(0,l.F)("settings/initialize"),method:"POST"}).catch((()=>{e+=1,u(e)}))}},7625:(e,t,n)=>{"use strict";n.d(t,{LK:()=>g,N9:()=>u,S1:()=>c,YL:()=>m,cw:()=>p,ko:()=>h,oC:()=>d});var r=n(6989),a=n.n(r),o=n(4704),i=n(6329),l=n(2853),s=n(2200);const c=()=>{if((0,l.Ph)(s.Vx))return!0;a()({url:(0,o.F)("themes/initialize"),method:"POST"}).catch((e=>{console.error(e)}))},u=async function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"string"==typeof e&&await(0,i.D)(a()({url:(0,o.F)("themes/install"),method:"POST",data:{theme:e,activate:t,queue:n}}))},d=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return await(0,i.D)(a()({url:(0,o.F)("themes/variations&variations="+e)}).then())},p=async e=>await(0,i.D)(a()({url:(0,o.F)("themes/variations"),method:"POST",data:e}).then()),m=async e=>await(0,i.D)(a()({url:(0,o.F)("themes/status"+(e?`&theme=${e}`:""))})),h=async()=>await(0,i.D)(a()({url:(0,o.F)("themes/fonts")})),g=async()=>await(0,i.D)(a()({url:(0,o.F)("themes/colors")}))},6690:(e,t,n)=>{"use strict";n.d(t,{NF:()=>y}),n(9307);var r=n(2819),a=n(4981);const o=window.wp.styleEngine;var i=n(2175);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;const{coerceTo:n,rootSizeValue:r,acceptableUnits:a}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},o=null==a?void 0:a.join("|"),i=new RegExp(`^(\\d*\\.?\\d+)(${o}){1,1}$`),l=e.match(i);if(!l||l.length<3)return null;let[,s,c]=l,u=parseFloat(s);return"px"!==n||"em"!==c&&"rem"!==c||(u*=r,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=r,c=n),{value:u,unit:c}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return Number.isFinite(e)?parseFloat(e.toFixed(t)):void 0}const c="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:e=>{let{slug:t}=e;return`url( '#wp-duotone-${t}' )`},classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>{let{typography:n}=t;return function(e,t){const{size:n}=e;if(!0!==(null==t?void 0:t.fluid))return n;if(!1===(null==e?void 0:e.fluid))return n;const r=(null==e?void 0:e.fluid)||{};let a=null==r?void 0:r.min,o=null==r?void 0:r.max;const i=l(n);return null!=i&&i.unit?(a||(a=.75*i.value+i.unit),o||(o=1.5*i.value+i.unit),function(e){let{maximumViewPortWidth:t,minimumViewPortWidth:n,maximumFontSize:r,minimumFontSize:a,scaleFactor:o}=e;const i=l(a),c=(null==i?void 0:i.unit)||"rem",u=l(r,{coerceTo:c});if(!i||!u)return null;const d=l(a,{coerceTo:"rem"}),p=l(t,{coerceTo:c}),m=l(n,{coerceTo:c});if(!p||!m||!d)return null;const h=s(m.value/100,3)+c;let g=(u.value-i.value)/(p.value-m.value)*100;g=s(g,3)||1;const v=g*o;return`clamp(${a}, ${d.value}${d.unit} + ((1vw - ${h}) * ${v}), ${r})`}({maximumViewPortWidth:"1600px",minimumViewPortWidth:"768px",maximumFontSize:o,minimumFontSize:a,scaleFactor:1})||n):n}(e,n)},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:e=>{let{size:t}=e;return t},classes:[]}],d={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function p(e){var t;const n="var:";return null!=e&&null!==(t=e.startsWith)&&void 0!==t&&t.call(e,n)?`var(--wp--${e.slice(n.length).split("|").join("--")})`:e}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.reduce)(u,((n,a)=>{let{path:o,cssVarInfix:i,classes:l}=a;if(!l)return n;const s=(0,r.get)(t,o,[]);return s&&Array.isArray(s)&&s.forEach((t=>{let{slug:a}=t;l.forEach((t=>{let{classSuffix:o,propertyName:l}=t;const s=`.has-${(0,r.kebabCase)(a)}-${o}`,c=e.split(",").map((e=>`${e}${s}`)).join(","),u=`var(--wp--preset--${i}--${(0,r.kebabCase)(a)})`;n+=`${c}{${l}: ${u} !important;}`}))})),n}),"")}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=[];return Object.keys(e).forEach((o=>{const i=t+(0,r.kebabCase)(o.replace("/","-")),l=e[o];if(l instanceof Object){const e=i+n;a=[...a,...h(l,e,n)]}else a.push(`${i}: ${l}`)})),a}function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=c===t,s=(0,r.reduce)(a.__EXPERIMENTAL_STYLE_PROPERTY,((t,a,o)=>{let{value:i,properties:s,useEngine:c,rootOnly:u}=a;if(u&&!l)return t;const d=i;if("elements"===d[0])return t;const m=(0,r.get)(e,d);if("--wp--style--root--padding"===o&&("string"==typeof m||!n))return t;if(s&&"string"!=typeof m)Object.entries(s).forEach((e=>{const[n,a]=e;if(!(0,r.get)(m,[a],!1))return;const o=n.startsWith("--")?n:(0,r.kebabCase)(n);t.push(`${o}: ${p((0,r.get)(m,[a]))}`)}));else if((0,r.get)(e,d,!1)){const n=o.startsWith("--")?o:(0,r.kebabCase)(o);t.push(`${n}: ${p((0,r.get)(e,d))}`)}return t}),[]),u=(0,o.getCSSRules)(e);return u.forEach((e=>{var t;if(l&&n&&e.key.startsWith("padding"))return;const a=e.key.startsWith("--")?e.key:(0,r.kebabCase)(e.key);let o=e.value;if("string"!=typeof o&&null!==(t=o)&&void 0!==t&&t.ref){var c;const e=o.ref.split(".");if(o=(0,r.get)(i,e),!o||null!==(c=o)&&void 0!==c&&c.ref)return}s.push(`${a}: ${o}`)})),s}function v(e){var t,n,r,a,o;let{tree:l,style:s,selector:u,hasBlockGapSupport:d,hasFallbackGapSupport:p,fallbackGapValue:m}=e,h="",g=d?(0,i.__experimentalGetGapCSSValue)(null==s||null===(t=s.spacing)||void 0===t?void 0:t.blockGap):"";if(p&&(u===c?g=g||"0.5em":!d&&m&&(g=m)),g&&null!=l&&null!==(n=l.settings)&&void 0!==n&&null!==(r=n.layout)&&void 0!==r&&r.definitions&&(Object.values(l.settings.layout.definitions).forEach((e=>{let{className:t,name:n,spacingStyles:r}=e;(d||"flex"===n)&&null!=r&&r.length&&r.forEach((e=>{const n=[];if(e.rules&&Object.entries(e.rules).forEach((e=>{let[t,r]=e;n.push(`${t}: ${r||g}`)})),n.length){let r="";r=d?u===c?`${u} .${t}${(null==e?void 0:e.selector)||""}`:`${u}.${t}${(null==e?void 0:e.selector)||""}`:u===c?`:where(.${t}${(null==e?void 0:e.selector)||""})`:`:where(${u}.${t}${(null==e?void 0:e.selector)||""})`,h+=`${r} { ${n.join("; ")}; }`}}))})),u===c&&d&&(h+=`${u} { --wp--style--block-gap: ${g}; }`)),u===c&&null!=l&&null!==(a=l.settings)&&void 0!==a&&null!==(o=a.layout)&&void 0!==o&&o.definitions){const e=["block","flex","grid"];Object.values(l.settings.layout.definitions).forEach((t=>{let{className:n,displayMode:r,baseStyles:a}=t;r&&e.includes(r)&&(h+=`${u} .${n} { display:${r}; }`),null!=a&&a.length&&a.forEach((e=>{const t=[];if(e.rules&&Object.entries(e.rules).forEach((e=>{let[n,r]=e;t.push(`${n}: ${r}`)})),t.length){const r=`${u} .${n}${(null==e?void 0:e.selector)||""}`;h+=`${r} { ${t.join("; ")}; }`}}))}))}return h}const f=(e,t)=>{var n,o;const i=[];if(null==e||!e.styles)return i;const l=e=>(0,r.pickBy)(e,((e,t)=>["border","color","spacing","typography","filter"].includes(t))),s=l(e.styles);return s&&i.push({styles:s,selector:c}),Object.entries(a.__EXPERIMENTAL_ELEMENTS).forEach((t=>{var n,r;let[a,o]=t;var l;null!==(n=e.styles)&&void 0!==n&&n.elements&&null!==(r=e.styles)&&void 0!==r&&r.elements[a]&&i.push({styles:null===(l=e.styles)||void 0===l?void 0:l.elements[a],selector:o})})),Object.entries(null!==(n=null===(o=e.styles)||void 0===o?void 0:o.blocks)&&void 0!==n?n:{}).forEach((e=>{var n,r;let[o,s]=e;const c=l(s);c&&null!=t&&null!==(n=t[o])&&void 0!==n&&n.selector&&i.push({duotoneSelector:t[o].duotoneSelector,fallbackGapValue:t[o].fallbackGapValue,hasLayoutSupport:t[o].hasLayoutSupport,selector:t[o].selector,styles:c,featureSelectors:t[o].featureSelectors}),Object.entries(null!==(r=null==s?void 0:s.elements)&&void 0!==r?r:{}).forEach((e=>{let[n,r]=e;r&&null!=t&&t[o]&&null!==a.__EXPERIMENTAL_ELEMENTS&&void 0!==a.__EXPERIMENTAL_ELEMENTS&&a.__EXPERIMENTAL_ELEMENTS[n]&&i.push({styles:r,selector:t[o].selector.split(",").map((e=>a.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),i},w=(e,t)=>{var n,a,o;const i=[];if(null==e||!e.settings)return i;const l=e=>{const t={};return u.forEach((n=>{let{path:a}=n;const o=(0,r.get)(e,a,!1);!1!==o&&(0,r.set)(t,a,o)})),t},s=l(e.settings),d=null===(n=e.settings)||void 0===n?void 0:n.custom;return(0,r.isEmpty)(s)&&!d||i.push({presets:s,custom:d,selector:c}),Object.entries(null!==(a=null===(o=e.settings)||void 0===o?void 0:o.blocks)&&void 0!==a?a:{}).forEach((e=>{let[n,a]=e;const o=l(a),s=a.custom;(0,r.isEmpty)(o)&&!s||i.push({presets:o,custom:s,selector:t[n].selector})})),i},b=(e,t)=>{const n=w(e,t);let a="";return n.forEach((t=>{let{presets:n,custom:o,selector:i}=t;const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return(0,r.reduce)(u,((n,a)=>{let{path:o,valueKey:i,valueFunc:l,cssVarInfix:s}=a;const c=(0,r.get)(e,o,[]);return c&&Array.isArray(c)&&c.forEach((e=>{i&&!l?n.push(`--wp--preset--${s}--${(0,r.kebabCase)(e.slug)}: ${e[i]}`):l&&"function"==typeof l&&n.push(`--wp--preset--${s}--${(0,r.kebabCase)(e.slug)}: ${l(e,t)}`)})),n}),[])}(n,null==e?void 0:e.settings),s=h(o,"--wp--custom--","--");s.length>0&&l.push(...s),l.length>0&&(a+=`${i}{${l.join(";")};}`)})),a};function y(e,t){var n;const o=t.settings.__experimentalFeatures.spacing.blockGap,l=!o,s=null===(n=t.settings)||void 0===n||!n.disableLayoutStyles||t.settings.disableLayoutStyles;if(!(null!=e&&e.styles||null!=e&&e.settings||null!=e&&e.globalStyles))return;const u={settings:e.settings,styles:null!=e&&e.globalStyles?e.globalStyles:e.styles},p=(e=>{const t={};return e.forEach((e=>{var n,r,a,o,i,l,s,c,u;const p=e.name,m=null!==(n=null==e||null===(r=e.supports)||void 0===r?void 0:r.__experimentalSelector)&&void 0!==n?n:".wp-block-"+p.replace("core/","").replace("/","-"),h=null!==(a=null==e||null===(o=e.supports)||void 0===o||null===(i=o.color)||void 0===i?void 0:i.__experimentalDuotone)&&void 0!==a?a:null,g=!(null==e||null===(l=e.supports)||void 0===l||!l.__experimentalLayout),v=null==e||null===(s=e.supports)||void 0===s||null===(c=s.spacing)||void 0===c||null===(u=c.blockGap)||void 0===u?void 0:u.__experimentalDefault,f={};Object.entries(d).forEach((t=>{var n,r;let[a,o]=t;const i=null==e||null===(n=e.supports)||void 0===n||null===(r=n[a])||void 0===r?void 0:r.__experimentalSelector;i&&(f[o]=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(", ")}(m,i))})),t[p]={duotoneSelector:h,fallbackGapValue:v,featureSelectors:Object.keys(f).length?f:void 0,hasLayoutSupport:g,name:p,selector:m}})),t})((0,a.getBlockTypes)()),h=b(u,p),y=function(e,t,n,a){var o,l;let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const u=f(e,t),d=w(e,t),p=null==e||null===(o=e.settings)||void 0===o?void 0:o.useRootPaddingAwareAlignments,{contentSize:h,wideSize:b}=(null==e||null===(l=e.settings)||void 0===l?void 0:l.layout)||{};let y="body {margin: 0;";if(h&&(y+=` --wp--style--global--content-size: ${h};`),b&&(y+=` --wp--style--global--wide-size: ${b};`),p&&(y+='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;'),y+="}",u.forEach((t=>{let{selector:r,duotoneSelector:o,styles:i,fallbackGapValue:l,hasLayoutSupport:u,featureSelectors:d}=t;d&&Object.entries(d).forEach((e=>{let[t,n]=e;if(null!=i&&i[t]){const e=g({[t]:i[t]});delete i[t],e.length&&(y+=`${n}{${e.join(";")} }`)}}));const m={};if(null!=i&&i.filter&&(m.filter=i.filter,delete i.filter),o){const e=g(m);e.length>0&&(y+=`${o}{${e.join(";")};}`)}s||c!==r&&!u||(y+=v({tree:e,style:i,selector:r,hasBlockGapSupport:n,hasFallbackGapSupport:a,fallbackGapValue:l}));const h=g(i,r,p,e);null!=h&&h.length&&(y+=`${r}{${h.join(";")};}`);const f=Object.entries(i).filter((e=>{let[t]=e;return t.startsWith(":")}));null!=f&&f.length&&f.forEach((e=>{let[t,n]=e;const a=g(n);if(null==a||!a.length)return;const o=`${r.split(",").map((e=>e+t)).join(",")}{${a.join(";")};}`;y+=o}))})),y+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",y+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",y+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",!s&&n){var _,E;const t=(0,i.__experimentalGetGapCSSValue)(null==e||null===(_=e.styles)||void 0===_||null===(E=_.spacing)||void 0===E?void 0:E.blockGap)||"0.5em";y+=".wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }",y+=`.wp-site-blocks > * + * { margin-block-start: ${t}; }`}return d.forEach((e=>{let{selector:t,presets:n}=e;c===t&&(t="");const a=m(t,n);(0,r.isEmpty)(a)||(y+=a)})),y}(u,p,o,l,s),_=[...t.settings.styles.filter((e=>{if(!e.hasOwnProperty("id")||"customProperty"!==e.id&&"globalStyle"!==e.id)return e})),{id:"customProperty",css:h,isGlobalStyles:!0},{id:"globalStyle",css:y,isGlobalStyles:!0}];return e.settings.styles=_,e.settings.__unstableResolvedAssets=t.settings.__unstableResolvedAssets,e.settings.__experimentalFeatures=t.settings.__experimentalFeatures,e}},2853:(e,t,n)=>{"use strict";n.d(t,{Ph:()=>r}),n(2819);const r=e=>new URLSearchParams(location.search).get(e)},1392:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(5736);const a={"wp-setup":{site:{noun:(0,r._x)("site","noun","wp-module-onboarding")},website:{noun:(0,r._x)("website","noun","wp-module-onboarding")}},ecommerce:{site:{noun:(0,r._x)("store","noun","wp-module-onboarding")},website:{noun:(0,r._x)("store","noun","wp-module-onboarding")}}},o=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"noun";const o=(null===(t=window)||void 0===t||null===(n=t.nfdOnboarding)||void 0===n?void 0:n.currentFlow)||"wp-setup",i=a[o][e.toLowerCase()][r];return e==e.toUpperCase()?i.toUpperCase():e[0]==e[0].toUpperCase()?i[0].toUpperCase()+i.substring(1):i}},2200:(e,t,n)=>{"use strict";var r,a,o;n.d(t,{$P:()=>q,Az:()=>Q,BP:()=>w,Bv:()=>I,Ck:()=>W,DY:()=>R,Db:()=>g,Ei:()=>T,GV:()=>z,Gv:()=>U,JB:()=>i,Jq:()=>P,Rq:()=>B,Sr:()=>G,Vx:()=>L,YU:()=>M,Yl:()=>f,Zh:()=>$,_h:()=>_,a0:()=>F,bQ:()=>p,br:()=>h,dD:()=>l,dv:()=>N,hF:()=>m,jN:()=>S,km:()=>d,lE:()=>y,mz:()=>C,nx:()=>x,pf:()=>c,qB:()=>D,qO:()=>k,qR:()=>E,sG:()=>H,sr:()=>j,tM:()=>v,tX:()=>b,tY:()=>O,vv:()=>V,wV:()=>A,ye:()=>Z});const i="nfd-onboarding",l="object"==typeof(null===(r=window)||void 0===r?void 0:r.nfdOnboarding)&&"buildUrl"in window.nfdOnboarding,s=window.nfdOnboarding.adminUrl,c=window.nfdOnboarding.siteUrl,u=window.nfdOnboarding.restUrl,d=`${u}/wp/v2`,p=`${u}/newfold-onboarding/v1`,m=`${s}index.php`,h=`${null!==(a=null===(o=window.nfdOnboarding.currentBrand)||void 0===o?void 0:o.pluginDashboardPage)&&void 0!==a?a:m}`,g="nfd-module-onboarding-event",v="nav-primary",f="nav-design",w="nav-page",b="design-themes",y="design-theme-styles-menu",_="design-theme-styles-preview",E="design-colors",S="design-typography",k="design-header-menu",x="design-homepage-menu",C="nav-get-started",N="nav-ecommerce-store-info",D="Sidebar",T="HeaderMenu",P="LearnMore",I=2,A=2,O="nfd_plugins",L="nfd_themes",R="nfd_slug_yith_wonder",F="init",V="inactive",$="installing",z="activated",B="failed",M=3e4,U="woocommerce",W="init",H="inactive",G="installing",Z="activated",j=3e4,q=[v,f,C,w,N],Q={SET_FLOW:"SET_FLOW",SET_GLOBAL_STYLES:"SET_GLOBAL_STYLES"}},4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t{"use strict";n.d(t,{AW:()=>N,F0:()=>D,FR:()=>l,TH:()=>h,Us:()=>s,WU:()=>f,Z5:()=>T,oQ:()=>p,s0:()=>v});var r=n(9196),a=n(2599);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),r.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,o({fromRouteId:t},a)))}),[e,t])}():function(){m()||(0,a.J0)(!1);let{basename:e,navigator:t}=r.useContext(s),{matches:n}=r.useContext(u),{pathname:o}=h(),i=JSON.stringify((0,a.Zq)(n).map((e=>e.pathnameBase))),l=r.useRef(!1);return g((()=>{l.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!l.current)return;if("number"==typeof n)return void t.go(n);let s=(0,a.pC)(n,JSON.parse(i),o,"path"===r.relative);"/"!==e&&(s.pathname="/"===s.pathname?e:(0,a.RQ)([e,s.pathname])),(r.replace?t.replace:t.push)(s,r.state,r)}),[e,t,i,o])}()}function f(e,t){let{relative:n}=void 0===t?{}:t,{matches:o}=r.useContext(u),{pathname:i}=h(),l=JSON.stringify((0,a.Zq)(o).map((e=>e.pathnameBase)));return r.useMemo((()=>(0,a.pC)(e,JSON.parse(l),i,"path"===n)),[e,l,i,n])}function w(e,t,n){m()||(0,a.J0)(!1);let{navigator:i}=r.useContext(s),{matches:l}=r.useContext(u),d=l[l.length-1],p=d?d.params:{},g=(d&&d.pathname,d?d.pathnameBase:"/");d&&d.route;let v,f=h();if(t){var w;let e="string"==typeof t?(0,a.cP)(t):t;"/"===g||(null==(w=e.pathname)?void 0:w.startsWith(g))||(0,a.J0)(!1),v=e}else v=f;let b=v.pathname||"/",S="/"===g?b:b.slice(g.length)||"/",k=(0,a.fp)(e,{pathname:S}),x=function(e,t,n){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let l=e,s=null==(o=n)?void 0:o.errors;if(null!=s){let e=l.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||(0,a.J0)(!1),l=l.slice(0,Math.min(l.length,e+1))}return l.reduceRight(((e,a,o)=>{let i=a.route.id?null==s?void 0:s[a.route.id]:null,c=null;n&&(c=a.route.errorElement||y);let u=t.concat(l.slice(0,o+1)),d=()=>{let t;return t=i?c:a.route.Component?r.createElement(a.route.Component,null):a.route.element?a.route.element:e,r.createElement(E,{match:a,routeContext:{outlet:e,matches:u,isDataRoute:null!=n},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===o)?r.createElement(_,{location:n.location,revalidation:n.revalidation,component:c,error:i,children:d(),routeContext:{outlet:null,matches:u,isDataRoute:!0}}):d()}),null)}(k&&k.map((e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:(0,a.RQ)([g,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,a.RQ)([g,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n);return t&&x?r.createElement(c.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:a.aU.Pop}},x):x}function b(){let e=function(){var e;let t=r.useContext(d),n=function(e){let t=r.useContext(l);return t||(0,a.J0)(!1),t}(k.UseRouteError),o=C(k.UseRouteError);return t||(null==(e=n.errors)?void 0:e[o])}(),t=(0,a.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={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:o},n):null,null)}const y=r.createElement(b,null);class _ 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: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 this.state.error?r.createElement(u.Provider,{value:this.props.routeContext},r.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E(e){let{routeContext:t,match:n,children:a}=e,o=r.useContext(i);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(u.Provider,{value:t},a)}var S,k,x;function C(e){let t=function(e){let t=r.useContext(u);return t||(0,a.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,a.J0)(!1),n.route.id}function N(e){(0,a.J0)(!1)}function D(e){let{basename:t="/",children:n=null,location:o,navigationType:i=a.aU.Pop,navigator:l,static:u=!1}=e;m()&&(0,a.J0)(!1);let d=t.replace(/^\/*/,"/"),p=r.useMemo((()=>({basename:d,navigator:l,static:u})),[d,l,u]);"string"==typeof o&&(o=(0,a.cP)(o));let{pathname:h="/",search:g="",hash:v="",state:f=null,key:w="default"}=o,b=r.useMemo((()=>{let e=(0,a.Zn)(h,d);return null==e?null:{location:{pathname:e,search:g,hash:v,state:f,key:w},navigationType:i}}),[d,h,g,v,f,w,i]);return null==b?null:r.createElement(s.Provider,{value:p},r.createElement(c.Provider,{children:n,value:b}))}function T(e){let{children:t,location:n}=e;return w(P(t),n)}function P(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,o)=>{if(!r.isValidElement(e))return;let i=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,P(e.props.children,i));e.type!==N&&(0,a.J0)(!1),e.props.index&&e.props.children&&(0,a.J0)(!1);let l={id:e.props.id||i.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&&(l.children=P(e.props.children,i)),n.push(l)})),n}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(S||(S={})),function(e){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"}(k||(k={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(x||(x={})),new Promise((()=>{})),r.Component},9196:e=>{"use strict";e.exports=window.React},2819:e=>{"use strict";e.exports=window.lodash},5158:e=>{"use strict";e.exports=window.wp.a11y},6989:e=>{"use strict";e.exports=window.wp.apiFetch},2175:e=>{"use strict";e.exports=window.wp.blockEditor},4981:e=>{"use strict";e.exports=window.wp.blocks},5609:e=>{"use strict";e.exports=window.wp.components},4333:e=>{"use strict";e.exports=window.wp.compose},7798:e=>{"use strict";e.exports=window.wp.coreData},9818:e=>{"use strict";e.exports=window.wp.data},5904:e=>{"use strict";e.exports=window.wp.dom},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},9630:e=>{"use strict";e.exports=window.wp.keycodes},444:e=>{"use strict";e.exports=window.wp.primitives},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,a),o.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=>{},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,o,i)=>{if(e[n])e[n].push(r);else{var l,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u{l.onerror=l.onload=null,clearTimeout(m);var a=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(r))),t)return t(r)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}},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");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={343: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 o=new Promise(((n,a)=>r=e[t]=[n,a]));n.push(r[2]=o);var i=a.p+a.u(t),l=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,r[1](l)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,l,s]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);s&&s(a)}for(t&&t(n);c{"use strict";a.r(o);var e={};a.r(e),a.d(e,{disableComplementaryArea:()=>De,enableComplementaryArea:()=>Ne,pinItem:()=>Te,setDefaultComplementaryArea:()=>Ce,setFeatureDefaults:()=>Oe,setFeatureValue:()=>Ae,toggleFeature:()=>Ie,unpinItem:()=>Pe});var t={};a.r(t),a.d(t,{getActiveComplementaryArea:()=>Le,isComplementaryAreaLoading:()=>Re,isFeatureActive:()=>Ve,isItemPinned:()=>Fe});var n=a(2200);const r=window.wp.domReady;var i=a.n(r);const l=window.wp.blockLibrary;var s=a(9307),c=a(4106),u=a(7533),d=a(3421),p=a(7625),m=a(6989),h=a.n(m);const g=()=>{h()({url:`${n.pf}/wp-cron.php`,method:"GET",parse:!1}).catch((e=>{console.error(e)}))};var v=a(8395),f=a(5736),w=a(9250),b=a(9818),y=a(5609),_=a(1984),E=a(4310),S=a(444);const k=(0,s.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(S.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),x=e=>{let{path:t}=e;const n=(0,w.s0)();return(0,s.createElement)(y.Button,{className:"navigation-buttons navigation-buttons_back",onClick:()=>n(t,{state:{origin:"header"}}),variant:"secondary"},(0,s.createElement)(_.Z,{icon:E.Z}),(0,f.__)("Back","wp-module-onboarding"))},C=e=>{let{path:t}=e;const n=(0,w.s0)();return(0,s.createElement)(y.Button,{onClick:()=>n(t,{state:{origin:"header"}}),variant:"primary",className:"navigation-buttons navigation-buttons_next"},(0,f.__)("Next","wp-module-onboarding"),(0,s.createElement)(_.Z,{icon:k}))};async function N(e){e&&(e.isComplete=(new Date).getTime(),(0,u.kB)(e));const t=T()?n.br:n.hF;window.location.replace(t)}const D=e=>{let{currentData:t,saveDataAndExitFunc:n}=e;return(0,s.createElement)(y.Button,{onClick:()=>n(t),className:"navigation-buttons navigation-buttons_finish",variant:"primary"},(0,f.__)("Finish","wp-module-onboarding"),(0,s.createElement)(_.Z,{icon:k}))},T=()=>"ecommerce"===window.nfdOnboarding.currentFlow,P=()=>{const e=(0,w.TH)(),{previousStep:t,nextStep:n,currentData:r}=(0,b.useSelect)((e=>({nextStep:e(c.h).getNextStep(),previousStep:e(c.h).getPreviousStep(),currentData:e(c.h).getCurrentOnboardingData()})),[e.pathname]),a=null===t||!1===t,o=null===n||!1===n;return(0,s.createElement)("div",{className:"nfd-onboarding-header__step-navigation"},(0,s.createElement)(y.ButtonGroup,{style:{display:"flex",columnGap:"0.5rem"}},a||o?null:(0,s.createElement)(x,{path:t.path}),o?(0,s.createElement)(D,{currentData:r,saveDataAndExitFunc:N}):(0,s.createElement)(C,{path:n.path})))},I=()=>{const{sidebars:e,isHeaderNavigationEnabled:t}=(0,b.useSelect)((e=>({sidebars:e(c.h).getSidebars(),isHeaderNavigationEnabled:e(c.h).isHeaderNavigationEnabled()})));return(0,s.createElement)(s.Fragment,null,t&&(0,s.createElement)(P,null),e.map((e=>(0,s.createElement)(y.Slot,{key:e.id,name:`${n.Ei}/${e.id}`}))))};var A=a(1589);const O=(0,s.memo)((()=>{const e=(0,w.TH)(),{firstStep:t}=(0,b.useSelect)((e=>({firstStep:e(c.h).getFirstStep()})),[]),n=(null==t?void 0:t.path)===(null==e?void 0:e.pathname);return(0,s.createElement)("div",{className:"nfd-onboarding-header"},(0,s.createElement)("div",{className:"nfd-onboarding-header__start"},n?(0,s.createElement)(A.Z,{origin:"header-first-step"}):null),(0,s.createElement)("div",{className:"nfd-onboarding-header__center"}),(0,s.createElement)("div",{className:"nfd-onboarding-header__end"},(0,s.createElement)(I,null)))})),L=(0,s.memo)((()=>{const{routes:e}=(0,b.useSelect)((e=>({routes:e(c.h).getRoutes()}))),t=(0,s.useCallback)((e=>null==e?void 0:e.map((e=>(0,s.createElement)(w.AW,{key:e.path,path:e.path,end:!0,element:(0,s.createElement)(e.Component,null)})))),[e]);return(0,s.createElement)("main",{className:"nfd-onboard-content"},(0,s.createElement)(s.Suspense,{fallback:(0,s.createElement)(s.Fragment,null)},(0,s.createElement)(w.Z5,null,t(e))))}));var R=a(4333),F=a(6690),V=a(682);const $=()=>{const e=(0,s.useRef)(null),[t,r]=(0,s.useState)(!1),[a,o]=(0,s.useState)(),[i,l]=(0,s.useState)(),[u,d]=(0,s.useState)(!1),[m,h]=(0,s.useState)(!0),[g,v]=(0,s.useState)(),[w,_]=(0,s.useState)(),[E,S]=(0,s.useState)(),[k,x]=(0,s.useState)(""),{storedPreviewSettings:C,currentData:N,themeStatus:D}=(0,b.useSelect)((e=>({storedPreviewSettings:e(c.h).getPreviewSettings(),currentData:e(c.h).getCurrentOnboardingData(),themeStatus:e(c.h).getThemeStatus()})),[]),{updatePreviewSettings:T,setCurrentOnboardingData:P,updateThemeStatus:I}=(0,b.useDispatch)(c.h);function A(e){if(e){var t;const n={};return null==e||null===(t=e.color)||void 0===t||t.forEach((e=>{n[e.slug]=e.color})),v(n),n}}function O(e,t){if(e&&t){i.slug=t,i.name=(null==t?void 0:t.charAt(0).toUpperCase())+(null==t?void 0:t.slice(1));const n=[];for(const t in e)n.push({slug:t,name:(null==t?void 0:t.charAt(0).toUpperCase())+(null==t?void 0:t.slice(1)),color:e[t]});return i.color=n,l(i),N.data.palette=i,P(N),i}}async function L(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C;if((null==i?void 0:i.slug)===e)return!0;const l="custom"===e,s=o,c=null==s||null===(t=s.settings)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.palette;if(r&&e&&c){for(let t=0;t{t||n.GV!==D||(async()=>{var e,t,a;const s=await(0,p.oC)(),c=await(0,p.LK)();if(null!=c&&c.error)return I(n.a0);if(null!=s&&s.error)return I(n.a0);let u,d;S(null==c?void 0:c.body.tailored),o(null==c?void 0:c.body["custom-picker-grouping"]),""===!(null!=N&&null!==(e=N.data)&&void 0!==e&&null!==(t=e.palette)&&void 0!==t&&t.slug)?(u=N.data.palette,d=A(i),_(g),P(N)):(u=N.data.palette,d=A(i),"custom"===u.slug&&_(g)),l(u),L(null==N||null===(a=N.data)||void 0===a?void 0:a.palette.slug,null==E?void 0:E.body.tailored,d,null==s?void 0:s.body[0]),r(!0)})(),M()&&(h(!1),e.current.scrollIntoView({behavior:"smooth",block:"end"}))}),[t,D]);const R=e=>{const t=w;for(const e in t)t[e]="";_(t),L(e),v(E[e]),O(E[e],e)},$=async e=>{const t={...g};if(t[k]=e,a){const n=a[k];n&&n.forEach((n=>{t[n]=e}))}(async function(){var e,t;const n=C,r=null==n||null===(e=n.settings)||void 0===e||null===(t=e.color)||void 0===t?void 0:t.palette;if(r){for(let e=0;e{w&&void 0!==w[k]&&(r[function(e){var t,n;const r=null==C||null===(t=C.settings)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.palette,a=r.findIndex((t=>{let{slug:n}=t;return n===e}));return-1===a?r.findIndex((e=>{let{slug:t}=e;return t===k})):a}(e)].color=w[k])}))}n.settings.color.palette=r,T((0,F.NF)(n,C))}})(),O(t,"custom"),v(t),_(t)},z=e=>{d(!u),x(u?"":e)};async function B(){var e,t,n;const r=await(0,p.oC)(!0);let a;null!=N&&null!==(e=N.data)&&void 0!==e&&null!==(t=e.theme)&&void 0!==t&&t.variation?a=r.body.filter((e=>e.title===N.data.theme.variation))[0]:0===(null===(n=r.body[0])||void 0===n?void 0:n.id)&&(a=r.body[0]),T((0,F.NF)(a,C)),i.slug="",i.name="";for(const e in null==i?void 0:i.color)i.color[e].color="";_(A(i)),N.data.palette=i,l(i),P(N)}function M(){for(const e in w)if(""!==w[e])return!0;return!1}return(0,s.createElement)("div",{className:"theme-colors--drawer"},(0,s.createElement)("h2",null,(0,f.__)("Color Palettes","wp-module-onboarding")),E&&Object.keys(E).map(((e,t)=>{var n,r,a;return(0,s.createElement)("div",{key:e,className:`color-palette drawer-palette--button ${e===(null==i?void 0:i.slug)?"color-palette-selected drawer-palette--button--selected":""} `,role:"button",tabIndex:t+1,onClick:()=>R(e),onKeyDown:()=>R(e)},(0,s.createElement)("div",{className:"color-palette__colors"},(0,s.createElement)("div",{className:"color-palette__colors--tertiary",style:{backgroundColor:`${null===(n=E[e])||void 0===n?void 0:n.tertiary}`}}),(0,s.createElement)("div",{className:"color-palette__colors--secondary",style:{backgroundColor:`${null===(r=E[e])||void 0===r?void 0:r.secondary}`}}),(0,s.createElement)("div",{className:"color-palette__colors--primary",style:{backgroundColor:`${null===(a=E[e])||void 0===a?void 0:a.primary}`}})),(0,s.createElement)("div",{className:"color-palette__name drawer-palette--button__text"},(null==e?void 0:e.charAt(0).toUpperCase())+(null==e?void 0:e.slice(1))))})),E&&function(){var t,n,r,a;const o="#fff",i=w&&""!==(null==w?void 0:w.primary)?null==w?void 0:w.primary:null!==(t=null==g?void 0:g.primary)&&void 0!==t?t:o,l=w&&""!==(null==w?void 0:w.secondary)?null==w?void 0:w.secondary:null!==(n=null==g?void 0:g.secondary)&&void 0!==n?n:o,c=w&&""!==(null==w?void 0:w.tertiary)?null==w?void 0:w.tertiary:null!==(r=null==g?void 0:g.tertiary)&&void 0!==r?r:o,p=Object.keys(E).length;return(0,s.createElement)("div",{className:"custom-palette"},(0,s.createElement)("div",{className:"custom-palette__top",role:"button",tabIndex:0,onClick:()=>h(!m),onKeyDown:()=>h(!m)},(0,s.createElement)("div",{className:"custom-palette__top-text"},"SELECT CUSTOM COLORS"),m&&(0,s.createElement)("div",{className:"custom-palette__top-icon"},"+"),!m&&(0,s.createElement)("div",{className:"custom-palette__top-icon"},"-")),(0,s.createElement)(V.Z,{type:"fade-in",duration:"300ms",timingFunction:"ease-in-out",className:"custom-palette__below "+(m?"custom-palette_acc_closed":"custom-palette_acc_opened")},(0,s.createElement)("div",{className:"custom-palette__below-row",onClick:()=>z("base"),onKeyDown:()=>z("base"),role:"button",tabIndex:p+1},(0,s.createElement)("div",{className:`custom-palette__below-row-icon ${(null==w?void 0:w.base)&&"custom-palette__below-row-icon_selected_border"}`,style:{backgroundColor:`${null!==(a=null==w?void 0:w.base)&&void 0!==a?a:o}`}},null!=w&&w.base?(0,s.createElement)("div",null,"✓"):null),(0,s.createElement)("div",{className:"custom-palette__below-row-text"},"Background")),(0,s.createElement)("div",{className:"custom-palette__below-row",onClick:()=>z("primary"),onKeyDown:()=>z("primary"),role:"button",tabIndex:p+2},(0,s.createElement)("div",{className:`custom-palette__below-row-icon ${(null==w?void 0:w.primary)&&"custom-palette__below-row-icon_selected_border"}`,style:{backgroundColor:`${i}`}},null!=w&&w.primary?(0,s.createElement)(s.Fragment,null,"✓"):null),(0,s.createElement)("div",{className:"custom-palette__below-row-text"},"Primary")),(0,s.createElement)("div",{className:"custom-palette__below-row",onClick:()=>z("secondary"),onKeyDown:()=>z("secondary"),role:"button",tabIndex:p+3},(0,s.createElement)("div",{className:`custom-palette__below-row-icon ${(null==w?void 0:w.secondary)&&"custom-palette__below-row-icon_selected_border"}`,style:{backgroundColor:`${l}`}},null!=w&&w.secondary?(0,s.createElement)(s.Fragment,null,"✓"):null),(0,s.createElement)("div",{className:"custom-palette__below-row-text"},"Secondary")),(0,s.createElement)("div",{className:"custom-palette__below-row",onClick:()=>z("tertiary"),onKeyDown:()=>z("tertiary"),role:"button",tabIndex:p+4},(0,s.createElement)("div",{className:`custom-palette__below-row-icon ${(null==w?void 0:w.tertiary)&&"custom-palette__below-row-icon_selected_border"}`,style:{backgroundColor:`${c}`}},null!=w&&w.tertiary?(0,s.createElement)(s.Fragment,null,"✓"):null),(0,s.createElement)("div",{className:"custom-palette__below-row-text"},"Tertiary"))),M()&&(0,s.createElement)(V.Z,{type:"fade-in",duration:"300ms"},(0,s.createElement)("div",{ref:e,className:"theme-colors--drawer--reset",role:"button",tabIndex:0,onClick:B,onKeyDown:B},(0,s.createElement)("div",null,"Reset"))),u&&(0,s.createElement)(y.Popover,null,(0,s.createElement)("div",{className:"custom-palette__picker-close-icon",onClick:()=>d(!1),role:"button",tabIndex:0,onKeyDown:()=>d(!1)},"X"),(0,s.createElement)(y.ColorPicker,{onChange:$,defaultValue:"#874141"})))}())};var z=a(6138),B=a(6332);const M=()=>{var e;const t=["yith-wonder/site-header-left-logo-navigation-inline","yith-wonder/site-header-left-logo-navigation-below","yith-wonder/site-header-centered","yith-wonder/site-header-splitted-menu"],r=["yith-wonder/homepage-1","yith-wonder/site-footer"],[a,o]=(0,s.useState)(),[i,l]=(0,s.useState)(),[d,p]=(0,s.useState)(""),m=(0,w.TH)(),{currentStep:h,currentData:g,themeStatus:v,storedPreviewSettings:f}=(0,b.useSelect)((e=>({currentStep:e(c.h).getStepFromPath(m.pathname),currentData:e(c.h).getCurrentOnboardingData(),themeStatus:e(c.h).getThemeStatus(),storedPreviewSettings:e(c.h).getStepPreviewData()})),[]),{setCurrentOnboardingData:y,updateThemeStatus:_,setHeaderMenuData:E}=(0,b.useDispatch)(c.h);return(0,s.useEffect)((()=>{v===n.GV&&(async()=>{g.data.partHeader&&""!==g.data.partHeader||(g.data.partHeader=t[0],y(g)),p(g.data.partHeader);const e=await(0,z.C)(h.patternId);if(null!=e&&e.error)return _(n.a0);const a=[];null==e||e.body.forEach((e=>{t.includes(e.slug)&&a.push(e)})),l(e.body),o(a);let[i,s,c]=["","",""];e.body.forEach((e=>{r.includes(e.slug)&&(i+=e.content),e.slug===g.data.partHeader&&(s+=e.content)})),c=s+i,E(c)})()}),[v]),(0,s.createElement)(B.r9,{count:null===(e=f[null==h?void 0:h.patternId])||void 0===e?void 0:e.previewCount,watch:a,callback:()=>null==a?void 0:a.map(((e,t)=>(0,s.createElement)(B.H,{key:t,className:"theme-header-menu-preview--drawer__list__item",selected:e.slug===d,blockGrammer:e.content,viewportWidth:900,styling:"custom",overlay:!1,onClick:()=>(async e=>{document.getElementsByClassName("nfd-onboard-content")&&document.getElementsByClassName("nfd-onboard-content")[0].scrollIntoView({behavior:"smooth"});const t=a[e];if(t.slug===d)return!0;p(t.slug),g.data.partHeader=t.slug,y(g);let n=t.content;i.forEach((e=>{r.includes(e.slug)&&(n+=e.content)})),E(n);const o=await(0,u.kB)(g);null===(null==o?void 0:o.error)&&y(g)})(t)}))),className:"theme-header-menu-preview--drawer__list__item",viewportWidth:900})},U=()=>(0,s.createElement)("div",{style:{padding:"0 16px"}},(0,s.createElement)("h2",null,(0,f.__)("Pick a Homepage Design","wp-module-onboarding")),(0,s.createElement)("p",null,(0,f.__)("Panel will show a few Homepage Patterns.","wp-module-onboarding"))),W=()=>(0,s.createElement)("div",{style:{padding:"0 16px"}},(0,s.createElement)("h2",null,(0,f.__)("Pick a Theme Style","wp-module-onboarding")),(0,s.createElement)("h4",null,(0,f.__)("No Style Selected","wp-module-onboarding")),(0,s.createElement)("p",null,(0,f.__)("Panel will show Theme details","wp-module-onboarding")),(0,s.createElement)("h4",null,(0,f.__)("With Style Selected","wp-module-onboarding")),(0,s.createElement)("p",null,(0,f.__)("Panel will show single-column of other Styles.","wp-module-onboarding"))),H=()=>{var e;const[t,r]=(0,s.useState)(),[a,o]=(0,s.useState)(),[i,l]=(0,s.useState)(""),{currentStep:u,currentData:d,storedPreviewSettings:m,themeStatus:h,themeVariations:g}=(0,b.useSelect)((e=>({currentStep:e(c.h).getCurrentStep(),currentData:e(c.h).getCurrentOnboardingData(),storedPreviewSettings:e(c.h).getPreviewSettings(),themeStatus:e(c.h).getThemeStatus(),themeVariations:e(c.h).getStepPreviewData()})),[]),{updatePreviewSettings:v,setCurrentOnboardingData:f,updateThemeStatus:w}=(0,b.useDispatch)(c.h);return(0,s.useEffect)((()=>{h===n.GV&&(async()=>{const e=await(0,p.oC)(!0);if(null!=e&&e.error)return w(n.a0);let t;d.data.theme.variation?t=d.data.theme.variation:(t=e.body[0].title,d.data.theme.variation=t,f(d)),l(t);const a=await(0,z.C)(u.patternId,!0);if(null!=a&&a.error)return w(n.a0);r(null==a?void 0:a.body),o(null==e?void 0: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"})})()}),[h]),(0,s.createElement)("div",{className:"theme-styles-preview--drawer"},(0,s.createElement)("div",{className:"theme-styles-preview--drawer__list"},(0,s.createElement)(B.r9,{className:"theme-styles-preview--drawer__list__item",watch:a&&t,count:null===(e=g[null==u?void 0:u.patternId])||void 0===e?void 0:e.previewCount,callback:()=>null==a?void 0:a.map(((e,n)=>(0,s.createElement)(B.H,{key:n,className:"theme-styles-preview--drawer__list__item",selected:e.title===i,blockGrammer:t,viewportWidth:900,styling:"custom",previewSettings:e,overlay:!1,onClick:()=>(e=>{const t=a[e];if(i===t.title)return!0;v((0,F.NF)(t,m)),l(t.title),d.data.theme.variation=t.title,f(d)})(n)}))),viewportWidth:900})))},G=()=>(0,s.createElement)("div",{style:{padding:"0 16px"}},(0,s.createElement)("h2",null,(0,f.__)("Pick a Theme","wp-module-onboarding")),(0,s.createElement)("h4",null,(0,f.__)("No Theme Selected","wp-module-onboarding")),(0,s.createElement)("p",null,(0,f.__)("Panel will show contextual help","wp-module-onboarding")),(0,s.createElement)("h4",null,(0,f.__)("With Theme Selected","wp-module-onboarding")),(0,s.createElement)("p",null,(0,f.__)("Panel will show single-column of other Themes.","wp-module-onboarding"))),Z=()=>{const e=(0,s.useRef)(),[t,r]=(0,s.useState)(!1),[a,o]=(0,s.useState)(),[i,l]=(0,s.useState)(),{storedPreviewSettings:u,currentData:d,themeStatus:m}=(0,b.useSelect)((e=>({storedPreviewSettings:e(c.h).getPreviewSettings(),currentData:e(c.h).getCurrentOnboardingData(),themeStatus:e(c.h).getThemeStatus()})),[]),{updatePreviewSettings:h,setCurrentOnboardingData:g,updateThemeStatus:v}=(0,b.useDispatch)(c.h);(0,s.useEffect)((()=>{var e,t,n,r,a,l;""!==(null==d||null===(e=d.data)||void 0===e||null===(t=e.typography)||void 0===t?void 0:t.slug)&&void 0!==i&&(o(null==d||null===(n=d.data)||void 0===n||null===(r=n.typography)||void 0===r?void 0:r.slug),w(null==d||null===(a=d.data)||void 0===a||null===(l=a.typography)||void 0===l?void 0:l.slug))}),[i,u]),(0,s.useEffect)((()=>{t||n.GV!==m||(async()=>{var t,a;const o=await(0,p.ko)();if(null!=o&&o.error)return v(n.a0);l(null==o?void 0:o.body);const i=null==u||null===(t=u.settings)||void 0===t||null===(a=t.styles[0])||void 0===a?void 0:a.css;if(i){const t=/--wp--preset--font-family.*;/;e.current.setAttribute("style",i.match(t))}r(!0)})()}),[t,m]);const w=async e=>{var t,n,r,l,s,c,p,m,v,f,w;if(a===e)return!0;o(e);const b=u,y=i;var _,E,S,k,x,C;null!=b&&null!==(t=b.styles)&&void 0!==t&&null!==(n=t.typography)&&void 0!==n&&n.fontFamily&&null!=b&&null!==(r=b.styles)&&void 0!==r&&null!==(l=r.blocks["core/heading"])&&void 0!==l&&null!==(s=l.typography)&&void 0!==s&&s.fontFamily&&(b.styles.typography.fontFamily=null===(_=y[e])||void 0===_||null===(E=_.styles)||void 0===E||null===(S=E.typography)||void 0===S?void 0:S.fontFamily,b.styles.blocks["core/heading"].typography.fontFamily=null===(k=y[e])||void 0===k?void 0:k.styles.blocks["core/heading"].typography.fontFamily),null!==(c=b.styles)&&void 0!==c&&null!==(p=c.blocks["core/site-title"])&&void 0!==p&&null!==(m=p.typography)&&void 0!==m&&m.fontFamily&&(b.styles.blocks["core/site-title"].typography.fontFamily=null===(x=y[e])||void 0===x?void 0:x.styles.blocks["core/heading"].typography.fontFamily),null!==(v=b.styles)&&void 0!==v&&null!==(f=v.blocks["core/site-tagline"])&&void 0!==f&&null!==(w=f.typography)&&void 0!==w&&w.fontFamily&&(b.styles.blocks["core/site-tagline"].typography.fontFamily=null===(C=y[e])||void 0===C?void 0:C.styles.blocks["core/heading"].typography.fontFamily),d.data.typography.slug=e,d.data.typography.data=y[e],h((0,F.NF)(b,u)),g(d)};return(0,s.createElement)("div",{ref:e,className:"theme-fonts--drawer"},(0,s.createElement)("h2",null,(0,f.__)("Font Palettes","wp-module-onboarding")),i&&Object.keys(i).map(((e,t)=>{var n,r,o,l,c,u,d,p,m;const h=null===(n=i[e])||void 0===n?void 0:n.label.split("&",2);return 0===h.length?null:(0,s.createElement)("div",{key:e,tabIndex:t+1,role:"button",className:`font-palette drawer-palette--button ${a===e?"font-palette-selected drawer-palette--button--selected":""} `,onClick:()=>w(e),onKeyDown:()=>w(e)},(0,s.createElement)("div",{className:"font-palette__icon drawer-palette--button__text",style:{fontFamily:null===(r=i[e])||void 0===r||null===(o=r.styles)||void 0===o||null===(l=o.typography)||void 0===l?void 0:l.fontFamily}},"Aa"),(0,s.createElement)("div",{className:"font-palette__name drawer-palette--button__text"},(0,s.createElement)("span",{style:{fontFamily:null===(c=i[e])||void 0===c?void 0:c.styles.blocks["core/heading"].typography.fontFamily}},h[0]),h[1]?"&":"",(0,s.createElement)("span",{style:{fontFamily:null===(u=i[e])||void 0===u||null===(d=u.styles)||void 0===d||null===(p=d.typography)||void 0===p?void 0:p.fontFamily}},null!==(m=h[1])&&void 0!==m?m:"")))})))};var j=a(9630),q=a(9196),Q=a(2599);function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}const Y=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],X=["aria-current","caseSensitive","className","end","style","to","children"];function ee(e){let{basename:t,children:n,window:r}=e,a=q.useRef();null==a.current&&(a.current=(0,Q.q_)({window:r,v5Compat:!0}));let o=a.current,[i,l]=q.useState({action:o.action,location:o.location});return q.useLayoutEffect((()=>o.listen(l)),[o]),q.createElement(w.F0,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:o})}const te="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,ne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,re=q.forwardRef((function(e,t){let n,{onClick:r,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:c,preventScrollReset:u}=e,d=K(e,Y),{basename:p}=q.useContext(w.Us),m=!1;if("string"==typeof c&&ne.test(c)&&(n=c,te))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=(0,Q.Zn)(t.pathname,p);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:m=!0}catch(e){}let h=(0,w.oQ)(c,{relative:a}),g=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i}=void 0===t?{}:t,l=(0,w.s0)(),s=(0,w.TH)(),c=(0,w.WU)(e,{relative:i});return q.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!==r?r:(0,Q.Ep)(s)===(0,Q.Ep)(c);l(e,{replace:n,state:a,preventScrollReset:o,relative:i})}}),[s,l,c,r,a,n,e,o,i])}(c,{replace:i,state:l,target:s,preventScrollReset:u,relative:a});return q.createElement("a",J({},d,{href:n||h,onClick:m||o?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:s}))})),ae=q.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:a="",end:o=!1,style:i,to:l,children:s}=e,c=K(e,X),u=(0,w.WU)(l,{relative:c.relative}),d=(0,w.TH)(),p=q.useContext(w.FR),{navigator:m}=q.useContext(w.Us),h=m.encodeLocation?m.encodeLocation(u).pathname:u.pathname,g=d.pathname,v=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(g=g.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase());let f,b=g===h||!o&&g.startsWith(h)&&"/"===g.charAt(h.length),y=null!=v&&(v===h||!o&&v.startsWith(h)&&"/"===v.charAt(h.length)),_=b?n:void 0;f="function"==typeof a?a({isActive:b,isPending:y}):[a,b?"active":null,y?"pending":null].filter(Boolean).join(" ");let E="function"==typeof i?i({isActive:b,isPending:y}):i;return q.createElement(re,J({},c,{"aria-current":_,className:f,ref:t,style:E,to:l}),"function"==typeof s?s({isActive:b,isPending:y}):s)}));var oe,ie;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(oe||(oe={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ie||(ie={}));var le=a(4184),se=a.n(le);const ce=()=>{const{designSteps:e}=(0,b.useSelect)((e=>({designSteps:e(c.h).getDesignSteps()})),[]),{setDrawerActiveView:t}=(0,b.useDispatch)(c.h),r=(0,w.TH)();return(0,s.createElement)(V.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:E.Z,onClick:()=>t(n.tM)},(0,f.__)("Onboarding Menu","wp-module-onboarding")),(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,s.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,s.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,s.createElement)(ae,{to:e.path,className:se()("nfd-onboarding-drawer__panel-menu-link",{active:r.pathname===e.path||r.pathname.includes(null==e?void 0:e.designDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t(e.VIEW)},(0,s.createElement)(_.Z,{icon:e.Icon}),(0,s.createElement)("span",null,e.title))))))))},ue=()=>{const{getStartedSteps:e}=(0,b.useSelect)((e=>({getStartedSteps:e(c.h).getGetStartedSteps()})),[]),{setDrawerActiveView:t}=(0,b.useDispatch)(c.h);return(0,s.createElement)(V.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:E.Z,onClick:()=>t(n.tM)},(0,f.__)("Onboarding Menu","wp-module-onboarding")),(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,s.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,s.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,s.createElement)(ae,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.VIEW)},(0,s.createElement)(_.Z,{icon:e.Icon}),(0,s.createElement)("span",null,e.title))))))))},de=()=>{const{setDrawerActiveView:e}=(0,b.useDispatch)(c.h);return(0,s.createElement)(V.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:E.Z,onClick:()=>e(n.tM)},(0,f.__)("Resume Onboarding","wp-module-onboarding")))},pe=()=>{const e=(0,w.s0)(),t=(0,w.TH)(),{topSteps:n}=(0,b.useSelect)((e=>({topSteps:e(c.h).getTopSteps()})),[]),{setDrawerActiveView:r}=(0,b.useDispatch)(c.h),a=n[0].path===t.pathname;return(0,s.createElement)(V.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},a&&(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",onClick:()=>e("/page/what-to-expect")},"What to Expect")||(0,s.createElement)(A.Z,{buttonClassName:"nfd-onboarding-drawer__panel-back",buttonVariant:"tertiary",origin:"drawer-panel"}),(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,s.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},n.map((e=>(0,s.createElement)(y.Tooltip,{key:e.path,text:e.heading},(0,s.createElement)("li",{className:"nfd-onboarding-drawer__panel-menu-item"},(0,s.createElement)(ae,{to:t.pathname===e.path||t.pathname.includes(null==e?void 0:e.primaryDrawerActiveLinkIncludes)?t.pathname:e.path,className:se()("nfd-onboarding-drawer__panel-menu-link",{active:t.pathname===e.path||t.pathname.includes(null==e?void 0:e.primaryDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>(null==e?void 0:e.VIEW)&&r(e.VIEW)},(0,s.createElement)(_.Z,{icon:e.Icon}),(0,s.createElement)("span",null,e.title)))))))))},me=()=>{const{storeInfoSteps:e}=(0,b.useSelect)((e=>({storeInfoSteps:e(c.h).getStoreInfoSteps()})),[]),{setDrawerActiveView:t}=(0,b.useDispatch)(c.h);return(0,s.createElement)(V.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:E.Z,onClick:()=>t(n.tM)},(0,f.__)("Onboarding Menu","wp-module-onboarding")),(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,s.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,s.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,s.createElement)(ae,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.VIEW)},(0,s.createElement)(_.Z,{icon:e.Icon}),(0,s.createElement)("span",null,e.title))))))))},he=e=>{let{children:t}=e;const{setDrawerActiveView:r}=(0,b.useDispatch)(c.h);return(0,s.createElement)(V.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:E.Z,onClick:()=>r(n.Yl)},(0,f.__)("Design","wp-module-onboarding")),t)},ge=()=>{const[e,t]=(0,s.useState)(!0),{isDrawerOpen:r,drawerView:a}=(0,b.useSelect)((e=>{const{isDrawerOpened:t,getDrawerView:n}=e(c.h);return{isDrawerOpen:t(),drawerView:n()}}),[]),{setIsDrawerOpened:o,setDrawerActiveView:i}=(0,b.useDispatch)(c.h);return(0,s.useEffect)((()=>{n.$P.includes(a)?t(!0):t(!1)}),[a]),(0,s.createElement)("div",{className:se()("nfd-onboarding-drawer__panel",{"is-open":r}),onKeyDown:e=>{e.keyCode!==j.ESCAPE||e.defaultPrevented||(e.preventDefault(),o(!1))}},(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-inner"},(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title-container"},(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title"},(0,f.__)("WordPress Onboarding","wp-module-onboarding"))),(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-scroll-container"},(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-inside"},n.tM===a&&(0,s.createElement)(pe,null),n.Yl===a&&(0,s.createElement)(ce,null),n.mz===a&&(0,s.createElement)(ue,null),n.dv===a&&(0,s.createElement)(me,null),n.BP===a&&(0,s.createElement)(de,null),n.tX===a&&(0,s.createElement)(he,null,(0,s.createElement)(G,null)),n.lE===a&&(0,s.createElement)(he,null,(0,s.createElement)(W,null)),n._h===a&&(0,s.createElement)(he,null,(0,s.createElement)(H,null)),n.qR===a&&(0,s.createElement)(he,null,(0,s.createElement)($,null)),n.jN===a&&(0,s.createElement)(he,null,(0,s.createElement)(Z,null)),n.qO===a&&(0,s.createElement)(he,null,(0,s.createElement)(M,null)),n.nx===a&&(0,s.createElement)(he,null,(0,s.createElement)(U,null))))))},ve=e=>{let{isOpen:t}=e;const{isDrawerOpen:n,isDrawerSuppressed:r}=(0,b.useSelect)((e=>({isDrawerOpen:e(c.h).isDrawerOpened(),isDrawerSuppressed:e(c.h).isDrawerSuppressed()})),[]),{setIsDrawerOpened:a}=(0,b.useDispatch)(c.h),o=(0,s.useRef)();return(0,s.useEffect)((()=>{n||o.current.focus()}),[n]),(0,s.createElement)(y.__unstableMotion.div,{className:se()("nfd-onboarding-drawer__toggle",{"is-open":n}),whileHover:"expand"},(0,s.createElement)(y.Button,{className:`nfd-onboarding-drawer__toggle-button has-icon ${!r||"is-suppressed"}`,label:(0,f.__)("Toggle Navigation","wp-module-onboarding"),ref:o,"aria-pressed":t,onClick:()=>{r||a(!n)}},(0,s.createElement)("div",{style:{width:"36px",height:"36px",backgroundImage:"var(--nfd-onboarding-icon)",backgroundSize:"contain"}})))},fe=(0,s.memo)((e=>{let{isDefaultOpen:t=!1}=e;const n=(0,R.useViewportMatch)("medium"),{setIsDrawerOpened:r}=(0,b.useDispatch)(c.h);return(0,s.useEffect)((()=>{r(t&&n)}),[t,n,r]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(ve,null),(0,s.createElement)(ge,null))})),we=()=>{const{isSidebarOpened:e,sideBarView:t,sidebars:r}=(0,b.useSelect)((e=>({isSidebarOpened:e(c.h).isSidebarOpened(),sideBarView:e(c.h).getSidebarView(),sidebars:e(c.h).getSidebars()})));return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(s.Suspense,{fallback:(0,s.createElement)(s.Fragment,null)},r.map((e=>(0,s.createElement)(s.Fragment,{key:e.id},(0,s.createElement)(e.sidebar,null),(0,s.createElement)(e.menu,null))))),(0,s.createElement)("div",{className:se()("nfd-onboarding-sidebar__panel",{"is-open":e&&t})},(0,s.createElement)("div",{className:"nfd-onboarding-sidebar__panel-inner"},e&&t&&(0,s.createElement)(y.Slot,{name:`${n.qB}/${t}`}))))};var be=a(3768),ye=a(5330),_e=a(2819);const Ee=e=>{let{isActive:t}=e;return(0,s.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,s.useEffect)((()=>(t?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{t&&document.body.classList.remove("is-fullscreen-mode")})),[t]),null},Se=window.wp.deprecated;var ke=a.n(Se);const xe=window.wp.preferences,Ce=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),Ne=(e,t)=>n=>{let{registry:r,dispatch:a}=n;t&&(r.select(xe.store).get(e,"isComplementaryAreaVisible")||r.dispatch(xe.store).set(e,"isComplementaryAreaVisible",!0),a({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t}))},De=e=>t=>{let{registry:n}=t;n.select(xe.store).get(e,"isComplementaryAreaVisible")&&n.dispatch(xe.store).set(e,"isComplementaryAreaVisible",!1)},Te=(e,t)=>n=>{let{registry:r}=n;if(!t)return;const a=r.select(xe.store).get(e,"pinnedItems");!0!==(null==a?void 0:a[t])&&r.dispatch(xe.store).set(e,"pinnedItems",{...a,[t]:!0})},Pe=(e,t)=>n=>{let{registry:r}=n;if(!t)return;const a=r.select(xe.store).get(e,"pinnedItems");r.dispatch(xe.store).set(e,"pinnedItems",{...a,[t]:!1})};function Ie(e,t){return function(n){let{registry:r}=n;ke()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(xe.store).toggle(e,t)}}function Ae(e,t,n){return function(r){let{registry:a}=r;ke()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),a.dispatch(xe.store).set(e,t,!!n)}}function Oe(e,t){return function(n){let{registry:r}=n;ke()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(xe.store).setDefaults(e,t)}}const Le=(0,b.createRegistrySelector)((e=>(t,n)=>{var r;const a=e(xe.store).get(n,"isComplementaryAreaVisible");if(void 0!==a)return!1===a?null:null==t||null===(r=t.complementaryAreas)||void 0===r?void 0:r[n]})),Re=(0,b.createRegistrySelector)((e=>(t,n)=>{var r;const a=e(xe.store).get(n,"isComplementaryAreaVisible"),o=null==t||null===(r=t.complementaryAreas)||void 0===r?void 0:r[n];return a&&void 0===o})),Fe=(0,b.createRegistrySelector)((e=>(t,n,r)=>{var a;const o=e(xe.store).get(n,"pinnedItems");return null===(a=null==o?void 0:o[r])||void 0===a||a})),Ve=(0,b.createRegistrySelector)((e=>(t,n,r)=>(ke()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(xe.store).get(n,r)))),$e=(0,b.combineReducers)({complementaryAreas:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;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}}),ze=(0,b.createReduxStore)("core/interface",{reducer:$e,actions:e,selectors:t});(0,b.register)(ze);var Be=a(7462);const Me=(0,s.forwardRef)((function(e,t){let{footer:n,header:r,sidebar:a,secondarySidebar:o,notices:i,content:l,drawer:c,actions:u,labels:d,className:p,shortcuts:m}=e;const h=(0,y.__unstableUseNavigateRegions)(m);!function(e){(0,s.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("nfd-interface-interface-skeleton__html-container");const g={ -/* translators: accessibility text for the nav bar landmark region. */ -drawer:(0,f.__)("Drawer","wp-module-onboarding"), -/* translators: accessibility text for the top bar landmark region. */ -header:(0,f.__)("Header","wp-module-onboarding"), -/* translators: accessibility text for the content landmark region. */ -body:(0,f.__)("Content","wp-module-onboarding"), -/* translators: accessibility text for the secondary sidebar landmark region. */ -secondarySidebar:(0,f.__)("Block Library","wp-module-onboarding"), -/* translators: accessibility text for the settings landmark region. */ -sidebar:(0,f.__)("Settings","wp-module-onboarding"), -/* translators: accessibility text for the publish landmark region. */ -actions:(0,f.__)("Publish","wp-module-onboarding"), -/* translators: accessibility text for the footer landmark region. */ -footer:(0,f.__)("Footer","wp-module-onboarding"),...d};return(0,s.createElement)("div",(0,Be.Z)({},h,{ref:(0,R.useMergeRefs)([t,h.ref]),className:se()(p,"nfd-interface-interface-skeleton",h.className,!!n&&"has-footer")}),!!c&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__drawer",role:"region","aria-label":g.drawer,tabIndex:"-1"},c),(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__editor"},!!r&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__header",role:"region","aria-label":g.header,tabIndex:"-1"},r),(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__body"},!!o&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":g.secondarySidebar,tabIndex:"-1"},o),!!i&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__notices"},i),(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__content",role:"region","aria-label":g.body,tabIndex:"-1"},l),!!a&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__sidebar",role:"region","aria-label":g.sidebar,tabIndex:"-1"},a),!!u&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__actions",role:"region","aria-label":g.actions,tabIndex:"-1"},u))),!!n&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__footer",role:"region","aria-label":g.footer,tabIndex:"-1"},n))})),Ue=()=>{const e=(0,w.TH)(),t=(0,R.useViewportMatch)("medium"),r=(0,_e.kebabCase)(e.pathname),{isDrawerOpen:a,newfoldBrand:o,onboardingFlow:i,currentData:l,socialData:d,firstStep:p,routes:m,designSteps:h,allSteps:g}=(0,b.useSelect)((e=>({isDrawerOpen:e(c.h).isDrawerOpened(),newfoldBrand:e(c.h).getNewfoldBrand(),onboardingFlow:e(c.h).getOnboardingFlow(),currentData:e(c.h).getCurrentOnboardingData(),socialData:e(c.h).getOnboardingSocialData(),firstStep:e(c.h).getFirstStep(),routes:e(c.h).getRoutes(),allSteps:e(c.h).getAllSteps(),designSteps:e(c.h).getDesignSteps()})),[]),[f,_]=(0,s.useState)(!1),[E,S]=(0,s.useState)(!1),[k,x]=(0,s.useState)(!1),{setActiveStep:C,setActiveFlow:N,updateRoutes:D,updateDesignSteps:T,updateAllSteps:P,flushQueue:I,enqueueRequest:A,setOnboardingSocialData:F}=(0,b.useDispatch)(c.h);const V=()=>({routes:(0,_e.filter)(m,(e=>!e.path.includes(ye.mT.designColors.path)&&!e.path.includes(ye.mT.designTypography.path))),allSteps:(0,_e.filter)(g,(e=>!e.path.includes(ye.mT.designColors.path)&&!e.path.includes(ye.mT.designTypography.path))),designSteps:(0,_e.filter)(h,(e=>!e.path.includes(ye.mT.designColors.path)&&!e.path.includes(ye.mT.designTypography.path)))});return(0,s.useEffect)((()=>{document.body.classList.add(`nfd-brand-${o}`)}),[o]),(0,s.useEffect)((()=>{(async function(){const t=(null==e?void 0:e.pathname)===(null==p?void 0:p.path);if(l&&!t&&!f){if(_(!0),k&&await async function(){const{address:e,tax:t}=l.storeDetails;let n={};void 0!==e&&(delete e.country,delete e.state,n=e),void 0!==t&&(delete t.option,delete t.isStoreDetailsFilled,n={...n,...t}),(0,be.xb)(n)||await(0,be.Hs)(n),delete l.storeDetails.address,delete l.storeDetails.tax,x(!1)}(),E){const e=await async function(){const e=await(0,v.Gw)(),t=await(0,v.I2)(d);return S(!1),null!==(null==t?void 0:t.error)?null==e?void 0:e.body:null==t?void 0:t.body}();e&&F(e)}I(),A(n.Az.SET_FLOW,(()=>(0,u.kB)(l))),_(!1)}null!=e&&e.pathname.includes("basic-info")&&S(!0),null!=e&&e.pathname.includes("ecommerce")&&x(!0)})(),function(){if(null!=e&&e.pathname.includes("colors")||null!=e&&e.pathname.includes("typography")){var t;const e=null!=l&&null!==(t=l.data)&&void 0!==t&&t.customDesign?(()=>{const e=V(),t=[ye.mT.designColors,ye.mT.designTypography];return{routes:(0,_e.orderBy)(e.routes.concat(t),["priority"],["asc"]),allSteps:(0,_e.orderBy)(e.allSteps.concat(t),["priority"],["asc"]),designSteps:(0,_e.orderBy)(e.designSteps.concat(t),["priority"],["asc"])}})():V();D(e.routes),T(e.designSteps),P(e.allSteps)}}(),e.pathname.includes("/step")&&(N(i),C(e.pathname))}),[e.pathname,i]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ee,{isActive:!0}),(0,s.createElement)(y.SlotFillProvider,null,(0,s.createElement)(Me,{className:se()("nfd-onboarding-skeleton",`brand-${o}`,`path-${r}`,{"is-drawer-open":a},{"is-large-viewport":t},{"is-small-viewport":!t}),header:(0,s.createElement)(O,null),drawer:(0,s.createElement)(fe,null),content:(0,s.createElement)(L,null),sidebar:(0,s.createElement)(we,null)})))},We=()=>(0,s.createElement)(ee,null,(0,s.createElement)(Ue,null));n.dD?i()((()=>{(async function(e,t){var r,a;(0,d.S1)(),(0,p.S1)(),setInterval(g,45e3);const o=document.getElementById(e);var i;(0,b.dispatch)(c.h).setRuntime(t),null!==(r=t.previewSettings.settings.preRequisites)&&void 0!==r&&r.themes&&(0,b.dispatch)(c.h).updateThemeStatus(null===(i=t.previewSettings.settings.preRequisites)||void 0===i?void 0:i.themes[n.DY]),(0,b.dispatch)(c.h).updatePluginsStatus(null===(a=t.previewSettings.settings.preRequisites)||void 0===a?void 0:a.plugins);const l=await(0,u.ME)();null==l.error&&(l.body=(e=>(e.hasExited=!1,e.isComplete=!1,e))(l.body),(0,b.dispatch)(c.h).setCurrentOnboardingData(l.body)),null!==o&&void 0!==s.render?((0,s.render)((0,s.createElement)(We,null),o),(0,v.j2)()):console.log("Could not find mount element or wp.element.render().")})(n.JB,window.nfdOnboarding),(0,l.registerCoreBlocks)()})):console.log("Cannot find Newfold Onboarding runtime data to set __webpack_public_path__.")})(),((window.newfold=window.newfold||{}).Onboarding=window.newfold.Onboarding||{}).onboarding=o})(); \ No newline at end of file diff --git a/build/1.6.1/111.js b/build/1.7.0/111.js similarity index 97% rename from build/1.6.1/111.js rename to build/1.7.0/111.js index 0cad49524..aed1528ba 100644 --- a/build/1.6.1/111.js +++ b/build/1.7.0/111.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[111],{111:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),l=i(4106),a=i(5736),r=i(1392),d=i(3230);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),p=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),h=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:m,brandConfig:f}=(0,o.useSelect)((e=>({techSupportLink:e(l.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(l.h).getfullServiceCreativeTeamUrl(),brandConfig:e(l.h).getNewfoldBrandConfig()}))),v=((e,n)=>({introduction:{heading:(0,a.__)("Pages","wp-module-onboarding"),subheading:(0,a.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[111],{111:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),l=i(6831),a=i(5736),r=i(1392),d=i(3230);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),p=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),h=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:m,brandConfig:f}=(0,o.useSelect)((e=>({techSupportLink:e(l.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(l.h).getfullServiceCreativeTeamUrl(),brandConfig:e(l.h).getNewfoldBrandConfig()}))),v=((e,n)=>({introduction:{heading:(0,a.__)("Pages","wp-module-onboarding"),subheading:(0,a.sprintf)( /* translators: %s: site */ (0,a.__)("Use professionally-designed templates for common site pages to assemble a beautiful, high-quality %s.","wp-module-onboarding"),(0,r.I)("site")),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-pages-illustration"},information:{headingWithDescriptions:[{heading:(0,a.__)("Rapidly deliver ideas with templates primed for your content","wp-module-onboarding"),description:(0,a.sprintf)( /* translators: 1: site 2: site */ diff --git a/build/1.6.1/135.js b/build/1.7.0/135.js similarity index 94% rename from build/1.6.1/135.js rename to build/1.7.0/135.js index 562866d29..48495e348 100644 --- a/build/1.6.1/135.js +++ b/build/1.7.0/135.js @@ -1,3 +1,3 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[135],{5135:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(4106),l=i(5736),a=i(1392),d=i(1526);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),m=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{brandName:b,techSupportLink:g,fullServiceCreativeTeamLink:f,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(r.h).getNewfoldBrandName(),techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),w=((e,n,i)=>({introduction:{heading:(0,l.__)("Street Address","wp-module-onboarding"),subheading:(0,l.__)("Whether this is where the magic happens or the mail goes, tell us where your business is located."),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-address-illustration"},information:{headingWithDescriptions:[{heading:(0,l.__)("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,l.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[135],{5135:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(6831),l=i(5736),a=i(1392),d=i(1526);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),m=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{brandName:b,techSupportLink:g,fullServiceCreativeTeamLink:f,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(r.h).getNewfoldBrandName(),techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),w=((e,n,i)=>({introduction:{heading:(0,l.__)("Street Address","wp-module-onboarding"),subheading:(0,l.__)("Whether this is where the magic happens or the mail goes, tell us where your business is located."),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-address-illustration"},information:{headingWithDescriptions:[{heading:(0,l.__)("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,l.sprintf)( /* translators: 1: Brand 2: Site */ (0,l.__)("We use this address to setup WooCommerce, your payment provider, Contact Page and more so you can start stocking the shelves of your %s Online %s.","wp-module-onboarding"),e,(0,a.I)("Site"))}]},help:{fullService:{text:(0,l.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:i},support:{text:(0,l.__)("Technical Support","wp-module-onboarding"),link:n}}}))(b,g,f);return(0,t.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__ecommerce-address"},(0,t.createElement)(m,{heading:w.introduction.heading,subheading:w.introduction.subheading,icon:w.introduction.icon}),!1!==(null==v||null===(e=v.views)||void 0===e||null===(n=e.sidebar)||void 0===n||null===(i=n.illustration)||void 0===i?void 0:i.shown)&&(0,t.createElement)(s,{cssIcon:w.illustration.icon}),(0,t.createElement)(u,{headingWithDescriptions:w.information.headingWithDescriptions}),(0,t.createElement)(c,null,w.help.fullService.link&&(0,t.createElement)(h,{text:w.help.fullService.text,onClick:()=>window.open(w.help.fullService.link,"_blank")}),(0,t.createElement)(p,{text:w.help.support.text,link:w.help.support.link})))}}}]); \ No newline at end of file diff --git a/build/1.6.1/139.js b/build/1.7.0/139.js similarity index 94% rename from build/1.6.1/139.js rename to build/1.7.0/139.js index fe7d1648d..195ef95c6 100644 --- a/build/1.6.1/139.js +++ b/build/1.7.0/139.js @@ -1,3 +1,3 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[139],{8139:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(4106),l=i(5736),a=i(1392),d=i(6922);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:f,brandConfig:m}=(0,o.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),w=((e,n)=>({introduction:{heading:(0,l.__)("WordPress Experience","wp-module-onboarding"),subheading:(0,l.__)("We want to offer the best default settings and guidance for someone with your WordPress experience.","wp-module-onboarding"),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-wp-experience-illustration"},information:{headingWithDescriptions:[{heading:(0,l.__)("Why we ask","wp-module-onboarding"),description:(0,l.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[139],{8139:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(6831),l=i(5736),a=i(1392),d=i(6922);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:f,brandConfig:m}=(0,o.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),w=((e,n)=>({introduction:{heading:(0,l.__)("WordPress Experience","wp-module-onboarding"),subheading:(0,l.__)("We want to offer the best default settings and guidance for someone with your WordPress experience.","wp-module-onboarding"),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-wp-experience-illustration"},information:{headingWithDescriptions:[{heading:(0,l.__)("Why we ask","wp-module-onboarding"),description:(0,l.sprintf)( /* translators: %s: site */ (0,l.__)("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,a.I)("site"))}]},help:{fullService:{text:(0,l.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,l.__)("Technical Support","wp-module-onboarding"),link:e}}}))(b,f);return(0,t.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-wp-experience"},(0,t.createElement)(g,{heading:w.introduction.heading,subheading:w.introduction.subheading,icon:w.introduction.icon}),!1!==(null==m||null===(e=m.views)||void 0===e||null===(n=e.sidebar)||void 0===n||null===(i=n.illustration)||void 0===i?void 0:i.shown)&&(0,t.createElement)(s,{cssIcon:w.illustration.icon}),(0,t.createElement)(u,{headingWithDescriptions:w.information.headingWithDescriptions}),(0,t.createElement)(c,null,w.help.fullService.link&&(0,t.createElement)(h,{text:w.help.fullService.text,onClick:()=>window.open(w.help.fullService.link,"_blank")}),(0,t.createElement)(p,{text:w.help.support.text,link:w.help.support.link})))}}}]); \ No newline at end of file diff --git a/build/1.7.0/155.js b/build/1.7.0/155.js new file mode 100644 index 000000000..36e0f3063 --- /dev/null +++ b/build/1.7.0/155.js @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[155],{9519:(e,a,n)=>{n.d(a,{Z:()=>d});var o=n(9307);const d=(0,o.memo)((e=>{let{heading:a,subHeading:n,question:d}=e;return(0,o.createElement)("div",null,a&&(0,o.createElement)("h2",{className:"nfd-step-card-heading"},a),n&&(0,o.createElement)("h3",{className:d?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),d&&(0,o.createElement)("h3",{className:"nfd-step-card-question"},d))}))},4401:(e,a,n)=>{n.d(a,{V:()=>t});var o=n(9307),d=n(1996),c=n(4316),m=n(950);const t=e=>{let{title:a,subtitle:n,error:t}=e;return(0,o.createElement)(d.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,o.createElement)(c.Z,{title:a,subtitle:n}),(0,o.createElement)("div",{className:"step-error-state__logo"}),(0,o.createElement)("h3",{className:"step-error-state__error"},t),(0,o.createElement)(m.Z,null))}},9291:(e,a,n)=>{n.d(a,{L:()=>m,Y:()=>o.Z});var o=n(35),d=n(9307),c=n(682);const m=()=>(0,d.createElement)("div",{className:"image-upload-loader--loading-box"},(0,d.createElement)(c.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},349:(e,a,n)=>{n.d(a,{Z:()=>m});var o=n(9307),d=(n(5736),n(4184)),c=n.n(d);const m=e=>{let{className:a="",children:n}=e;return(0,o.createElement)("div",{className:c()("nfd-onboarding-large-card",a)},n)}},1340:(e,a,n)=>{n.d(a,{U:()=>S,g:()=>A});var o=n(9307),d=n(9818),c=n(4333),m=n(5736),t=n(9291),r=n(6831),i=n(7625),s=n(2200),l=n(4401);var u=n(1589);const S=e=>{let{children:a,navigationStateCallback:n=!1}=e;const S=(0,c.useViewportMatch)("medium"),{storedThemeStatus:C,brandName:T}=(0,d.useSelect)((e=>({storedThemeStatus:e(r.h).getThemeStatus(),brandName:e(r.h).getNewfoldBrandName()})),[]),h=(e=>({loader:{title:(0,m.sprintf)( +/* translators: %s: Brand */ +(0,m.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,m.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,m.sprintf)( +/* translators: %s: Brand */ +(0,m.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,m.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,m.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(T),{updateThemeStatus:A,setIsDrawerOpened:B,setIsDrawerSuppressed:g,setIsHeaderNavigationEnabled:N}=(0,d.useDispatch)(r.h),M=async()=>{const e=await(0,i.YL)(s.DY);return null!=e&&e.error?s.vv:e.body.status},G=()=>{switch(C){case s.Rq:case s.GV:return(()=>{if("function"==typeof n)return n();S&&B(!0),g(!1),N(!0)})();default:B(!1),g(!0),N(!1)}};(0,o.useEffect)((()=>{G(),C===s.a0&&(async()=>{const e=await M();switch(e){case s.Zh:setTimeout((async()=>{if(await M()!==s.GV)return A(s.vv);window.location.reload()}),s.YU);break;case s.GV:window.location.reload();break;default:A(e)}})()}),[C]);const D=async()=>(A(s.Zh),(await(0,i.N9)(s.DY,!0,!1)).error?A(s.Rq):window.location.reload());return(0,o.createElement)(o.Fragment,null,(()=>{switch(C){case s.vv:return(0,o.createElement)(u.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,m.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,m.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:D,modalExitButtonText:(0,m.__)("Exit to WordPress","wp-module-onboarding")});case s.Rq:return(0,o.createElement)(l.V,{title:h.errorState.title,subtitle:h.errorState.subtitle,error:h.errorState.error});case s.GV:return a;default:return(0,o.createElement)(t.Y,{title:h.loader.title,subtitle:h.loader.subtitle})}})())};var C=n(3421),T=n(1392);var h=n(9884);const A=e=>{let{children:a,navigationStateCallback:n=!1}=e;const t=(0,c.useViewportMatch)("medium"),[i,u]=(0,o.useState)(s.Sr),{storedPluginsStatus:S,brandName:A}=(0,d.useSelect)((e=>({storedPluginsStatus:e(r.h).getPluginsStatus(),brandName:e(r.h).getNewfoldBrandName()})),[]),B=(e=>({errorState:{title:(0,m.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,m.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,T.I)("Site")),subtitle:(0,m.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,m.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(A),{updatePluginsStatus:g,setIsDrawerOpened:N,setIsDrawerSuppressed:M,setIsHeaderNavigationEnabled:G}=(0,d.useDispatch)(r.h),D=async()=>{const e=await(0,C.qC)(s.Gv);return null!=e&&e.error?s.sG:e.body.status},P=e=>{switch(e){case s.sG:case s.ye:return(()=>{if("function"==typeof n)return n();t&&N(!0),M(!1),G(!0)})();default:N(!1),M(!0),G(!1)}};(0,o.useEffect)((()=>{P(i)}),[i]);return(0,o.useEffect)((()=>{u(S[s.Gv]),S[s.Gv]===s.Ck&&(async e=>{const a=await D();switch(a){case s.Sr:setTimeout((async()=>{if(await D()!==s.ye)return S[s.Gv]=s.sG,g(S),u(s.sG);window.location.reload()}),s.sr);break;case s.ye:window.location.reload();break;default:e[s.Gv]=a,u(a),g(e)}})(S)}),[S]),(0,o.createElement)(o.Fragment,null,(()=>{switch(i){case s.sG:return(0,o.createElement)(l.V,{title:B.errorState.title,subtitle:B.errorState.subtitle,error:B.errorState.error});case s.ye:return a;default:return(0,o.createElement)(h.Z,null)}})())}},1155:(e,a,n)=>{n.r(a),n.d(a,{default:()=>N});var o=n(7462),d=n(9307),c=n(4333),m=n(9818),t=n(9250),r=n(2200),i=n(9519),s=n(1996),l=n(950),u=n(349),S=n(6831);const C=JSON.parse('[{"code":"AF","name":"Afghanistan","states":[]},{"code":"AX","name":"Åland Islands","states":[]},{"code":"DZ","name":"Algeria","states":[{"code":"DZ-01","name":"Adrar"},{"code":"DZ-02","name":"Chlef"},{"code":"DZ-03","name":"Laghouat"},{"code":"DZ-04","name":"Oum El Bouaghi"},{"code":"DZ-05","name":"Batna"},{"code":"DZ-06","name":"Béjaïa"},{"code":"DZ-07","name":"Biskra"},{"code":"DZ-08","name":"Béchar"},{"code":"DZ-09","name":"Blida"},{"code":"DZ-10","name":"Bouira"},{"code":"DZ-11","name":"Tamanghasset"},{"code":"DZ-12","name":"Tébessa"},{"code":"DZ-13","name":"Tlemcen"},{"code":"DZ-14","name":"Tiaret"},{"code":"DZ-15","name":"Tizi Ouzou"},{"code":"DZ-16","name":"Algiers"},{"code":"DZ-17","name":"Djelfa"},{"code":"DZ-18","name":"Jijel"},{"code":"DZ-19","name":"Sétif"},{"code":"DZ-20","name":"Saïda"},{"code":"DZ-21","name":"Skikda"},{"code":"DZ-22","name":"Sidi Bel Abbès"},{"code":"DZ-23","name":"Annaba"},{"code":"DZ-24","name":"Guelma"},{"code":"DZ-25","name":"Constantine"},{"code":"DZ-26","name":"Médéa"},{"code":"DZ-27","name":"Mostaganem"},{"code":"DZ-28","name":"M’Sila"},{"code":"DZ-29","name":"Mascara"},{"code":"DZ-30","name":"Ouargla"},{"code":"DZ-31","name":"Oran"},{"code":"DZ-32","name":"El Bayadh"},{"code":"DZ-33","name":"Illizi"},{"code":"DZ-34","name":"Bordj Bou Arréridj"},{"code":"DZ-35","name":"Boumerdès"},{"code":"DZ-36","name":"El Tarf"},{"code":"DZ-37","name":"Tindouf"},{"code":"DZ-38","name":"Tissemsilt"},{"code":"DZ-39","name":"El Oued"},{"code":"DZ-40","name":"Khenchela"},{"code":"DZ-41","name":"Souk Ahras"},{"code":"DZ-42","name":"Tipasa"},{"code":"DZ-43","name":"Mila"},{"code":"DZ-44","name":"Aïn Defla"},{"code":"DZ-45","name":"Naama"},{"code":"DZ-46","name":"Aïn Témouchent"},{"code":"DZ-47","name":"Ghardaïa"},{"code":"DZ-48","name":"Relizane"}]},{"code":"AS","name":"American Samoa","states":[]},{"code":"AD","name":"Andorra","states":[]},{"code":"AO","name":"Angola","states":[{"code":"BGO","name":"Bengo"},{"code":"BLU","name":"Benguela"},{"code":"BIE","name":"Bié"},{"code":"CAB","name":"Cabinda"},{"code":"CNN","name":"Cunene"},{"code":"HUA","name":"Huambo"},{"code":"HUI","name":"Huíla"},{"code":"CCU","name":"Kuando Kubango"},{"code":"CNO","name":"Kwanza-Norte"},{"code":"CUS","name":"Kwanza-Sul"},{"code":"LUA","name":"Luanda"},{"code":"LNO","name":"Lunda-Norte"},{"code":"LSU","name":"Lunda-Sul"},{"code":"MAL","name":"Malanje"},{"code":"MOX","name":"Moxico"},{"code":"NAM","name":"Namibe"},{"code":"UIG","name":"Uíge"},{"code":"ZAI","name":"Zaire"}]},{"code":"AI","name":"Anguilla","states":[]},{"code":"AQ","name":"Antarctica","states":[]},{"code":"AG","name":"Antigua and Barbuda","states":[]},{"code":"AR","name":"Argentina","states":[{"code":"C","name":"Ciudad Autónoma de Buenos Aires"},{"code":"B","name":"Buenos Aires"},{"code":"K","name":"Catamarca"},{"code":"H","name":"Chaco"},{"code":"U","name":"Chubut"},{"code":"X","name":"Córdoba"},{"code":"W","name":"Corrientes"},{"code":"E","name":"Entre Ríos"},{"code":"P","name":"Formosa"},{"code":"Y","name":"Jujuy"},{"code":"L","name":"La Pampa"},{"code":"F","name":"La Rioja"},{"code":"M","name":"Mendoza"},{"code":"N","name":"Misiones"},{"code":"Q","name":"Neuquén"},{"code":"R","name":"Río Negro"},{"code":"A","name":"Salta"},{"code":"J","name":"San Juan"},{"code":"D","name":"San Luis"},{"code":"Z","name":"Santa Cruz"},{"code":"S","name":"Santa Fe"},{"code":"G","name":"Santiago del Estero"},{"code":"V","name":"Tierra del Fuego"},{"code":"T","name":"Tucumán"}]},{"code":"AM","name":"Armenia","states":[]},{"code":"AW","name":"Aruba","states":[]},{"code":"AU","name":"Australia","states":[{"code":"ACT","name":"Australian Capital Territory"},{"code":"NSW","name":"New South Wales"},{"code":"NT","name":"Northern Territory"},{"code":"QLD","name":"Queensland"},{"code":"SA","name":"South Australia"},{"code":"TAS","name":"Tasmania"},{"code":"VIC","name":"Victoria"},{"code":"WA","name":"Western Australia"}]},{"code":"AT","name":"Austria","states":[]},{"code":"AZ","name":"Azerbaijan","states":[]},{"code":"BS","name":"Bahamas","states":[]},{"code":"BH","name":"Bahrain","states":[]},{"code":"BD","name":"Bangladesh","states":[{"code":"BD-05","name":"Bagerhat"},{"code":"BD-01","name":"Bandarban"},{"code":"BD-02","name":"Barguna"},{"code":"BD-06","name":"Barishal"},{"code":"BD-07","name":"Bhola"},{"code":"BD-03","name":"Bogura"},{"code":"BD-04","name":"Brahmanbaria"},{"code":"BD-09","name":"Chandpur"},{"code":"BD-10","name":"Chattogram"},{"code":"BD-12","name":"Chuadanga"},{"code":"BD-11","name":"Cox\'s Bazar"},{"code":"BD-08","name":"Cumilla"},{"code":"BD-13","name":"Dhaka"},{"code":"BD-14","name":"Dinajpur"},{"code":"BD-15","name":"Faridpur "},{"code":"BD-16","name":"Feni"},{"code":"BD-19","name":"Gaibandha"},{"code":"BD-18","name":"Gazipur"},{"code":"BD-17","name":"Gopalganj"},{"code":"BD-20","name":"Habiganj"},{"code":"BD-21","name":"Jamalpur"},{"code":"BD-22","name":"Jashore"},{"code":"BD-25","name":"Jhalokati"},{"code":"BD-23","name":"Jhenaidah"},{"code":"BD-24","name":"Joypurhat"},{"code":"BD-29","name":"Khagrachhari"},{"code":"BD-27","name":"Khulna"},{"code":"BD-26","name":"Kishoreganj"},{"code":"BD-28","name":"Kurigram"},{"code":"BD-30","name":"Kushtia"},{"code":"BD-31","name":"Lakshmipur"},{"code":"BD-32","name":"Lalmonirhat"},{"code":"BD-36","name":"Madaripur"},{"code":"BD-37","name":"Magura"},{"code":"BD-33","name":"Manikganj "},{"code":"BD-39","name":"Meherpur"},{"code":"BD-38","name":"Moulvibazar"},{"code":"BD-35","name":"Munshiganj"},{"code":"BD-34","name":"Mymensingh"},{"code":"BD-48","name":"Naogaon"},{"code":"BD-43","name":"Narail"},{"code":"BD-40","name":"Narayanganj"},{"code":"BD-42","name":"Narsingdi"},{"code":"BD-44","name":"Natore"},{"code":"BD-45","name":"Nawabganj"},{"code":"BD-41","name":"Netrakona"},{"code":"BD-46","name":"Nilphamari"},{"code":"BD-47","name":"Noakhali"},{"code":"BD-49","name":"Pabna"},{"code":"BD-52","name":"Panchagarh"},{"code":"BD-51","name":"Patuakhali"},{"code":"BD-50","name":"Pirojpur"},{"code":"BD-53","name":"Rajbari"},{"code":"BD-54","name":"Rajshahi"},{"code":"BD-56","name":"Rangamati"},{"code":"BD-55","name":"Rangpur"},{"code":"BD-58","name":"Satkhira"},{"code":"BD-62","name":"Shariatpur"},{"code":"BD-57","name":"Sherpur"},{"code":"BD-59","name":"Sirajganj"},{"code":"BD-61","name":"Sunamganj"},{"code":"BD-60","name":"Sylhet"},{"code":"BD-63","name":"Tangail"},{"code":"BD-64","name":"Thakurgaon"}]},{"code":"BB","name":"Barbados","states":[]},{"code":"PW","name":"Belau","states":[]},{"code":"BE","name":"Belgium","states":[]},{"code":"BZ","name":"Belize","states":[]},{"code":"BJ","name":"Benin","states":[{"code":"AL","name":"Alibori"},{"code":"AK","name":"Atakora"},{"code":"AQ","name":"Atlantique"},{"code":"BO","name":"Borgou"},{"code":"CO","name":"Collines"},{"code":"KO","name":"Kouffo"},{"code":"DO","name":"Donga"},{"code":"LI","name":"Littoral"},{"code":"MO","name":"Mono"},{"code":"OU","name":"Ouémé"},{"code":"PL","name":"Plateau"},{"code":"ZO","name":"Zou"}]},{"code":"BM","name":"Bermuda","states":[]},{"code":"BT","name":"Bhutan","states":[]},{"code":"BO","name":"Bolivia","states":[{"code":"BO-B","name":"Beni"},{"code":"BO-H","name":"Chuquisaca"},{"code":"BO-C","name":"Cochabamba"},{"code":"BO-L","name":"La Paz"},{"code":"BO-O","name":"Oruro"},{"code":"BO-N","name":"Pando"},{"code":"BO-P","name":"Potosí"},{"code":"BO-S","name":"Santa Cruz"},{"code":"BO-T","name":"Tarija"}]},{"code":"BQ","name":"Bonaire, Saint Eustatius and Saba","states":[]},{"code":"BW","name":"Botswana","states":[]},{"code":"BV","name":"Bouvet Island","states":[]},{"code":"BR","name":"Brazil","states":[{"code":"AC","name":"Acre"},{"code":"AL","name":"Alagoas"},{"code":"AP","name":"Amapá"},{"code":"AM","name":"Amazonas"},{"code":"BA","name":"Bahia"},{"code":"CE","name":"Ceará"},{"code":"DF","name":"Distrito Federal"},{"code":"ES","name":"Espírito Santo"},{"code":"GO","name":"Goiás"},{"code":"MA","name":"Maranhão"},{"code":"MT","name":"Mato Grosso"},{"code":"MS","name":"Mato Grosso do Sul"},{"code":"MG","name":"Minas Gerais"},{"code":"PA","name":"Pará"},{"code":"PB","name":"Paraíba"},{"code":"PR","name":"Paraná"},{"code":"PE","name":"Pernambuco"},{"code":"PI","name":"Piauí"},{"code":"RJ","name":"Rio de Janeiro"},{"code":"RN","name":"Rio Grande do Norte"},{"code":"RS","name":"Rio Grande do Sul"},{"code":"RO","name":"Rondônia"},{"code":"RR","name":"Roraima"},{"code":"SC","name":"Santa Catarina"},{"code":"SP","name":"São Paulo"},{"code":"SE","name":"Sergipe"},{"code":"TO","name":"Tocantins"}]},{"code":"IO","name":"British Indian Ocean Territory","states":[]},{"code":"BN","name":"Brunei","states":[]},{"code":"BF","name":"Burkina Faso","states":[]},{"code":"BI","name":"Burundi","states":[]},{"code":"KH","name":"Cambodia","states":[]},{"code":"CM","name":"Cameroon","states":[]},{"code":"CA","name":"Canada","states":[{"code":"AB","name":"Alberta"},{"code":"BC","name":"British Columbia"},{"code":"MB","name":"Manitoba"},{"code":"NB","name":"New Brunswick"},{"code":"NL","name":"Newfoundland and Labrador"},{"code":"NT","name":"Northwest Territories"},{"code":"NS","name":"Nova Scotia"},{"code":"NU","name":"Nunavut"},{"code":"ON","name":"Ontario"},{"code":"PE","name":"Prince Edward Island"},{"code":"QC","name":"Quebec"},{"code":"SK","name":"Saskatchewan"},{"code":"YT","name":"Yukon Territory"}]},{"code":"CV","name":"Cape Verde","states":[]},{"code":"KY","name":"Cayman Islands","states":[]},{"code":"TD","name":"Chad","states":[]},{"code":"CL","name":"Chile","states":[{"code":"CL-AI","name":"Aisén del General Carlos Ibañez del Campo"},{"code":"CL-AN","name":"Antofagasta"},{"code":"CL-AP","name":"Arica y Parinacota"},{"code":"CL-AR","name":"La Araucanía"},{"code":"CL-AT","name":"Atacama"},{"code":"CL-BI","name":"Biobío"},{"code":"CL-CO","name":"Coquimbo"},{"code":"CL-LI","name":"Libertador General Bernardo O\'Higgins"},{"code":"CL-LL","name":"Los Lagos"},{"code":"CL-LR","name":"Los Ríos"},{"code":"CL-MA","name":"Magallanes"},{"code":"CL-ML","name":"Maule"},{"code":"CL-NB","name":"Ñuble"},{"code":"CL-RM","name":"Región Metropolitana de Santiago"},{"code":"CL-TA","name":"Tarapacá"},{"code":"CL-VS","name":"Valparaíso"}]},{"code":"CN","name":"China","states":[{"code":"CN1","name":"Yunnan / 云南"},{"code":"CN2","name":"Beijing / 北京"},{"code":"CN3","name":"Tianjin / 天津"},{"code":"CN4","name":"Hebei / 河北"},{"code":"CN5","name":"Shanxi / 山西"},{"code":"CN6","name":"Inner Mongolia / 內蒙古"},{"code":"CN7","name":"Liaoning / 辽宁"},{"code":"CN8","name":"Jilin / 吉林"},{"code":"CN9","name":"Heilongjiang / 黑龙江"},{"code":"CN10","name":"Shanghai / 上海"},{"code":"CN11","name":"Jiangsu / 江苏"},{"code":"CN12","name":"Zhejiang / 浙江"},{"code":"CN13","name":"Anhui / 安徽"},{"code":"CN14","name":"Fujian / 福建"},{"code":"CN15","name":"Jiangxi / 江西"},{"code":"CN16","name":"Shandong / 山东"},{"code":"CN17","name":"Henan / 河南"},{"code":"CN18","name":"Hubei / 湖北"},{"code":"CN19","name":"Hunan / 湖南"},{"code":"CN20","name":"Guangdong / 广东"},{"code":"CN21","name":"Guangxi Zhuang / 广西壮族"},{"code":"CN22","name":"Hainan / 海南"},{"code":"CN23","name":"Chongqing / 重庆"},{"code":"CN24","name":"Sichuan / 四川"},{"code":"CN25","name":"Guizhou / 贵州"},{"code":"CN26","name":"Shaanxi / 陕西"},{"code":"CN27","name":"Gansu / 甘肃"},{"code":"CN28","name":"Qinghai / 青海"},{"code":"CN29","name":"Ningxia Hui / 宁夏"},{"code":"CN30","name":"Macao / 澳门"},{"code":"CN31","name":"Tibet / 西藏"},{"code":"CN32","name":"Xinjiang / 新疆"}]},{"code":"CX","name":"Christmas Island","states":[]},{"code":"CC","name":"Cocos (Keeling) Islands","states":[]},{"code":"CO","name":"Colombia","states":[{"code":"CO-AMA","name":"Amazonas"},{"code":"CO-ANT","name":"Antioquia"},{"code":"CO-ARA","name":"Arauca"},{"code":"CO-ATL","name":"Atlántico"},{"code":"CO-BOL","name":"Bolívar"},{"code":"CO-BOY","name":"Boyacá"},{"code":"CO-CAL","name":"Caldas"},{"code":"CO-CAQ","name":"Caquetá"},{"code":"CO-CAS","name":"Casanare"},{"code":"CO-CAU","name":"Cauca"},{"code":"CO-CES","name":"Cesar"},{"code":"CO-CHO","name":"Chocó"},{"code":"CO-COR","name":"Córdoba"},{"code":"CO-CUN","name":"Cundinamarca"},{"code":"CO-DC","name":"Capital District"},{"code":"CO-GUA","name":"Guainía"},{"code":"CO-GUV","name":"Guaviare"},{"code":"CO-HUI","name":"Huila"},{"code":"CO-LAG","name":"La Guajira"},{"code":"CO-MAG","name":"Magdalena"},{"code":"CO-MET","name":"Meta"},{"code":"CO-NAR","name":"Nariño"},{"code":"CO-NSA","name":"Norte de Santander"},{"code":"CO-PUT","name":"Putumayo"},{"code":"CO-QUI","name":"Quindío"},{"code":"CO-RIS","name":"Risaralda"},{"code":"CO-SAN","name":"Santander"},{"code":"CO-SAP","name":"San Andrés & Providencia"},{"code":"CO-SUC","name":"Sucre"},{"code":"CO-TOL","name":"Tolima"},{"code":"CO-VAC","name":"Valle del Cauca"},{"code":"CO-VAU","name":"Vaupés"},{"code":"CO-VID","name":"Vichada"}]},{"code":"KM","name":"Comoros","states":[]},{"code":"CK","name":"Cook Islands","states":[]},{"code":"CR","name":"Costa Rica","states":[{"code":"CR-A","name":"Alajuela"},{"code":"CR-C","name":"Cartago"},{"code":"CR-G","name":"Guanacaste"},{"code":"CR-H","name":"Heredia"},{"code":"CR-L","name":"Limón"},{"code":"CR-P","name":"Puntarenas"},{"code":"CR-SJ","name":"San José"}]},{"code":"HR","name":"Croatia","states":[]},{"code":"CW","name":"Curaçao","states":[]},{"code":"CY","name":"Cyprus","states":[]},{"code":"CZ","name":"Czech Republic","states":[]},{"code":"DK","name":"Denmark","states":[]},{"code":"DJ","name":"Djibouti","states":[]},{"code":"DM","name":"Dominica","states":[]},{"code":"DO","name":"Dominican Republic","states":[{"code":"DO-01","name":"Distrito Nacional"},{"code":"DO-02","name":"Azua"},{"code":"DO-03","name":"Baoruco"},{"code":"DO-04","name":"Barahona"},{"code":"DO-33","name":"Cibao Nordeste"},{"code":"DO-34","name":"Cibao Noroeste"},{"code":"DO-35","name":"Cibao Norte"},{"code":"DO-36","name":"Cibao Sur"},{"code":"DO-05","name":"Dajabón"},{"code":"DO-06","name":"Duarte"},{"code":"DO-08","name":"El Seibo"},{"code":"DO-37","name":"El Valle"},{"code":"DO-07","name":"Elías Piña"},{"code":"DO-38","name":"Enriquillo"},{"code":"DO-09","name":"Espaillat"},{"code":"DO-30","name":"Hato Mayor"},{"code":"DO-19","name":"Hermanas Mirabal"},{"code":"DO-39","name":"Higüamo"},{"code":"DO-10","name":"Independencia"},{"code":"DO-11","name":"La Altagracia"},{"code":"DO-12","name":"La Romana"},{"code":"DO-13","name":"La Vega"},{"code":"DO-14","name":"María Trinidad Sánchez"},{"code":"DO-28","name":"Monseñor Nouel"},{"code":"DO-15","name":"Monte Cristi"},{"code":"DO-29","name":"Monte Plata"},{"code":"DO-40","name":"Ozama"},{"code":"DO-16","name":"Pedernales"},{"code":"DO-17","name":"Peravia"},{"code":"DO-18","name":"Puerto Plata"},{"code":"DO-20","name":"Samaná"},{"code":"DO-21","name":"San Cristóbal"},{"code":"DO-31","name":"San José de Ocoa"},{"code":"DO-22","name":"San Juan"},{"code":"DO-23","name":"San Pedro de Macorís"},{"code":"DO-24","name":"Sánchez Ramírez"},{"code":"DO-25","name":"Santiago"},{"code":"DO-26","name":"Santiago Rodríguez"},{"code":"DO-32","name":"Santo Domingo"},{"code":"DO-41","name":"Valdesia"},{"code":"DO-27","name":"Valverde"},{"code":"DO-42","name":"Yuma"}]},{"code":"EC","name":"Ecuador","states":[{"code":"EC-A","name":"Azuay"},{"code":"EC-B","name":"Bolívar"},{"code":"EC-F","name":"Cañar"},{"code":"EC-C","name":"Carchi"},{"code":"EC-H","name":"Chimborazo"},{"code":"EC-X","name":"Cotopaxi"},{"code":"EC-O","name":"El Oro"},{"code":"EC-E","name":"Esmeraldas"},{"code":"EC-W","name":"Galápagos"},{"code":"EC-G","name":"Guayas"},{"code":"EC-I","name":"Imbabura"},{"code":"EC-L","name":"Loja"},{"code":"EC-R","name":"Los Ríos"},{"code":"EC-M","name":"Manabí"},{"code":"EC-S","name":"Morona-Santiago"},{"code":"EC-N","name":"Napo"},{"code":"EC-D","name":"Orellana"},{"code":"EC-Y","name":"Pastaza"},{"code":"EC-P","name":"Pichincha"},{"code":"EC-SE","name":"Santa Elena"},{"code":"EC-SD","name":"Santo Domingo de los Tsáchilas"},{"code":"EC-U","name":"Sucumbíos"},{"code":"EC-T","name":"Tungurahua"},{"code":"EC-Z","name":"Zamora-Chinchipe"}]},{"code":"EG","name":"Egypt","states":[{"code":"EGALX","name":"Alexandria"},{"code":"EGASN","name":"Aswan"},{"code":"EGAST","name":"Asyut"},{"code":"EGBA","name":"Red Sea"},{"code":"EGBH","name":"Beheira"},{"code":"EGBNS","name":"Beni Suef"},{"code":"EGC","name":"Cairo"},{"code":"EGDK","name":"Dakahlia"},{"code":"EGDT","name":"Damietta"},{"code":"EGFYM","name":"Faiyum"},{"code":"EGGH","name":"Gharbia"},{"code":"EGGZ","name":"Giza"},{"code":"EGIS","name":"Ismailia"},{"code":"EGJS","name":"South Sinai"},{"code":"EGKB","name":"Qalyubia"},{"code":"EGKFS","name":"Kafr el-Sheikh"},{"code":"EGKN","name":"Qena"},{"code":"EGLX","name":"Luxor"},{"code":"EGMN","name":"Minya"},{"code":"EGMNF","name":"Monufia"},{"code":"EGMT","name":"Matrouh"},{"code":"EGPTS","name":"Port Said"},{"code":"EGSHG","name":"Sohag"},{"code":"EGSHR","name":"Al Sharqia"},{"code":"EGSIN","name":"North Sinai"},{"code":"EGSUZ","name":"Suez"},{"code":"EGWAD","name":"New Valley"}]},{"code":"SV","name":"El Salvador","states":[{"code":"SV-AH","name":"Ahuachapán"},{"code":"SV-CA","name":"Cabañas"},{"code":"SV-CH","name":"Chalatenango"},{"code":"SV-CU","name":"Cuscatlán"},{"code":"SV-LI","name":"La Libertad"},{"code":"SV-MO","name":"Morazán"},{"code":"SV-PA","name":"La Paz"},{"code":"SV-SA","name":"Santa Ana"},{"code":"SV-SM","name":"San Miguel"},{"code":"SV-SO","name":"Sonsonate"},{"code":"SV-SS","name":"San Salvador"},{"code":"SV-SV","name":"San Vicente"},{"code":"SV-UN","name":"La Unión"},{"code":"SV-US","name":"Usulután"}]},{"code":"GQ","name":"Equatorial Guinea","states":[]},{"code":"ER","name":"Eritrea","states":[]},{"code":"EE","name":"Estonia","states":[]},{"code":"SZ","name":"Eswatini","states":[]},{"code":"FK","name":"Falkland Islands","states":[]},{"code":"FO","name":"Faroe Islands","states":[]},{"code":"FJ","name":"Fiji","states":[]},{"code":"FI","name":"Finland","states":[]},{"code":"FR","name":"France","states":[]},{"code":"GF","name":"French Guiana","states":[]},{"code":"PF","name":"French Polynesia","states":[]},{"code":"TF","name":"French Southern Territories","states":[]},{"code":"GA","name":"Gabon","states":[]},{"code":"GM","name":"Gambia","states":[]},{"code":"GE","name":"Georgia","states":[]},{"code":"DE","name":"Germany","states":[{"code":"DE-BW","name":"Baden-Württemberg"},{"code":"DE-BY","name":"Bavaria"},{"code":"DE-BE","name":"Berlin"},{"code":"DE-BB","name":"Brandenburg"},{"code":"DE-HB","name":"Bremen"},{"code":"DE-HH","name":"Hamburg"},{"code":"DE-HE","name":"Hesse"},{"code":"DE-MV","name":"Mecklenburg-Vorpommern"},{"code":"DE-NI","name":"Lower Saxony"},{"code":"DE-NW","name":"North Rhine-Westphalia"},{"code":"DE-RP","name":"Rhineland-Palatinate"},{"code":"DE-SL","name":"Saarland"},{"code":"DE-SN","name":"Saxony"},{"code":"DE-ST","name":"Saxony-Anhalt"},{"code":"DE-SH","name":"Schleswig-Holstein"},{"code":"DE-TH","name":"Thuringia"}]},{"code":"GH","name":"Ghana","states":[{"code":"AF","name":"Ahafo"},{"code":"AH","name":"Ashanti"},{"code":"BA","name":"Brong-Ahafo"},{"code":"BO","name":"Bono"},{"code":"BE","name":"Bono East"},{"code":"CP","name":"Central"},{"code":"EP","name":"Eastern"},{"code":"AA","name":"Greater Accra"},{"code":"NE","name":"North East"},{"code":"NP","name":"Northern"},{"code":"OT","name":"Oti"},{"code":"SV","name":"Savannah"},{"code":"UE","name":"Upper East"},{"code":"UW","name":"Upper West"},{"code":"TV","name":"Volta"},{"code":"WP","name":"Western"},{"code":"WN","name":"Western North"}]},{"code":"GI","name":"Gibraltar","states":[]},{"code":"GR","name":"Greece","states":[{"code":"I","name":"Attica"},{"code":"A","name":"East Macedonia and Thrace"},{"code":"B","name":"Central Macedonia"},{"code":"C","name":"West Macedonia"},{"code":"D","name":"Epirus"},{"code":"E","name":"Thessaly"},{"code":"F","name":"Ionian Islands"},{"code":"G","name":"West Greece"},{"code":"H","name":"Central Greece"},{"code":"J","name":"Peloponnese"},{"code":"K","name":"North Aegean"},{"code":"L","name":"South Aegean"},{"code":"M","name":"Crete"}]},{"code":"GL","name":"Greenland","states":[]},{"code":"GD","name":"Grenada","states":[]},{"code":"GP","name":"Guadeloupe","states":[]},{"code":"GU","name":"Guam","states":[]},{"code":"GT","name":"Guatemala","states":[{"code":"GT-AV","name":"Alta Verapaz"},{"code":"GT-BV","name":"Baja Verapaz"},{"code":"GT-CM","name":"Chimaltenango"},{"code":"GT-CQ","name":"Chiquimula"},{"code":"GT-PR","name":"El Progreso"},{"code":"GT-ES","name":"Escuintla"},{"code":"GT-GU","name":"Guatemala"},{"code":"GT-HU","name":"Huehuetenango"},{"code":"GT-IZ","name":"Izabal"},{"code":"GT-JA","name":"Jalapa"},{"code":"GT-JU","name":"Jutiapa"},{"code":"GT-PE","name":"Petén"},{"code":"GT-QZ","name":"Quetzaltenango"},{"code":"GT-QC","name":"Quiché"},{"code":"GT-RE","name":"Retalhuleu"},{"code":"GT-SA","name":"Sacatepéquez"},{"code":"GT-SM","name":"San Marcos"},{"code":"GT-SR","name":"Santa Rosa"},{"code":"GT-SO","name":"Sololá"},{"code":"GT-SU","name":"Suchitepéquez"},{"code":"GT-TO","name":"Totonicapán"},{"code":"GT-ZA","name":"Zacapa"}]},{"code":"GG","name":"Guernsey","states":[]},{"code":"GN","name":"Guinea","states":[]},{"code":"GW","name":"Guinea-Bissau","states":[]},{"code":"GY","name":"Guyana","states":[]},{"code":"HM","name":"Heard Island and McDonald Islands","states":[]},{"code":"HN","name":"Honduras","states":[{"code":"HN-AT","name":"Atlántida"},{"code":"HN-IB","name":"Bay Islands"},{"code":"HN-CH","name":"Choluteca"},{"code":"HN-CL","name":"Colón"},{"code":"HN-CM","name":"Comayagua"},{"code":"HN-CP","name":"Copán"},{"code":"HN-CR","name":"Cortés"},{"code":"HN-EP","name":"El Paraíso"},{"code":"HN-FM","name":"Francisco Morazán"},{"code":"HN-GD","name":"Gracias a Dios"},{"code":"HN-IN","name":"Intibucá"},{"code":"HN-LE","name":"Lempira"},{"code":"HN-LP","name":"La Paz"},{"code":"HN-OC","name":"Ocotepeque"},{"code":"HN-OL","name":"Olancho"},{"code":"HN-SB","name":"Santa Bárbara"},{"code":"HN-VA","name":"Valle"},{"code":"HN-YO","name":"Yoro"}]},{"code":"HU","name":"Hungary","states":[{"code":"BK","name":"Bács-Kiskun"},{"code":"BE","name":"Békés"},{"code":"BA","name":"Baranya"},{"code":"BZ","name":"Borsod-Abaúj-Zemplén"},{"code":"BU","name":"Budapest"},{"code":"CS","name":"Csongrád-Csanád"},{"code":"FE","name":"Fejér"},{"code":"GS","name":"Győr-Moson-Sopron"},{"code":"HB","name":"Hajdú-Bihar"},{"code":"HE","name":"Heves"},{"code":"JN","name":"Jász-Nagykun-Szolnok"},{"code":"KE","name":"Komárom-Esztergom"},{"code":"NO","name":"Nógrád"},{"code":"PE","name":"Pest"},{"code":"SO","name":"Somogy"},{"code":"SZ","name":"Szabolcs-Szatmár-Bereg"},{"code":"TO","name":"Tolna"},{"code":"VA","name":"Vas"},{"code":"VE","name":"Veszprém"},{"code":"ZA","name":"Zala"}]},{"code":"IS","name":"Iceland","states":[]},{"code":"IN","name":"India","states":[{"code":"AP","name":"Andhra Pradesh"},{"code":"AR","name":"Arunachal Pradesh"},{"code":"AS","name":"Assam"},{"code":"BR","name":"Bihar"},{"code":"CT","name":"Chhattisgarh"},{"code":"GA","name":"Goa"},{"code":"GJ","name":"Gujarat"},{"code":"HR","name":"Haryana"},{"code":"HP","name":"Himachal Pradesh"},{"code":"JK","name":"Jammu and Kashmir"},{"code":"JH","name":"Jharkhand"},{"code":"KA","name":"Karnataka"},{"code":"KL","name":"Kerala"},{"code":"LA","name":"Ladakh"},{"code":"MP","name":"Madhya Pradesh"},{"code":"MH","name":"Maharashtra"},{"code":"MN","name":"Manipur"},{"code":"ML","name":"Meghalaya"},{"code":"MZ","name":"Mizoram"},{"code":"NL","name":"Nagaland"},{"code":"OR","name":"Odisha"},{"code":"PB","name":"Punjab"},{"code":"RJ","name":"Rajasthan"},{"code":"SK","name":"Sikkim"},{"code":"TN","name":"Tamil Nadu"},{"code":"TS","name":"Telangana"},{"code":"TR","name":"Tripura"},{"code":"UK","name":"Uttarakhand"},{"code":"UP","name":"Uttar Pradesh"},{"code":"WB","name":"West Bengal"},{"code":"AN","name":"Andaman and Nicobar Islands"},{"code":"CH","name":"Chandigarh"},{"code":"DN","name":"Dadra and Nagar Haveli"},{"code":"DD","name":"Daman and Diu"},{"code":"DL","name":"Delhi"},{"code":"LD","name":"Lakshadeep"},{"code":"PY","name":"Pondicherry (Puducherry)"}]},{"code":"ID","name":"Indonesia","states":[{"code":"AC","name":"Daerah Istimewa Aceh"},{"code":"SU","name":"Sumatera Utara"},{"code":"SB","name":"Sumatera Barat"},{"code":"RI","name":"Riau"},{"code":"KR","name":"Kepulauan Riau"},{"code":"JA","name":"Jambi"},{"code":"SS","name":"Sumatera Selatan"},{"code":"BB","name":"Bangka Belitung"},{"code":"BE","name":"Bengkulu"},{"code":"LA","name":"Lampung"},{"code":"JK","name":"DKI Jakarta"},{"code":"JB","name":"Jawa Barat"},{"code":"BT","name":"Banten"},{"code":"JT","name":"Jawa Tengah"},{"code":"JI","name":"Jawa Timur"},{"code":"YO","name":"Daerah Istimewa Yogyakarta"},{"code":"BA","name":"Bali"},{"code":"NB","name":"Nusa Tenggara Barat"},{"code":"NT","name":"Nusa Tenggara Timur"},{"code":"KB","name":"Kalimantan Barat"},{"code":"KT","name":"Kalimantan Tengah"},{"code":"KI","name":"Kalimantan Timur"},{"code":"KS","name":"Kalimantan Selatan"},{"code":"KU","name":"Kalimantan Utara"},{"code":"SA","name":"Sulawesi Utara"},{"code":"ST","name":"Sulawesi Tengah"},{"code":"SG","name":"Sulawesi Tenggara"},{"code":"SR","name":"Sulawesi Barat"},{"code":"SN","name":"Sulawesi Selatan"},{"code":"GO","name":"Gorontalo"},{"code":"MA","name":"Maluku"},{"code":"MU","name":"Maluku Utara"},{"code":"PA","name":"Papua"},{"code":"PB","name":"Papua Barat"}]},{"code":"IE","name":"Ireland","states":[{"code":"CW","name":"Carlow"},{"code":"CN","name":"Cavan"},{"code":"CE","name":"Clare"},{"code":"CO","name":"Cork"},{"code":"DL","name":"Donegal"},{"code":"D","name":"Dublin"},{"code":"G","name":"Galway"},{"code":"KY","name":"Kerry"},{"code":"KE","name":"Kildare"},{"code":"KK","name":"Kilkenny"},{"code":"LS","name":"Laois"},{"code":"LM","name":"Leitrim"},{"code":"LK","name":"Limerick"},{"code":"LD","name":"Longford"},{"code":"LH","name":"Louth"},{"code":"MO","name":"Mayo"},{"code":"MH","name":"Meath"},{"code":"MN","name":"Monaghan"},{"code":"OY","name":"Offaly"},{"code":"RN","name":"Roscommon"},{"code":"SO","name":"Sligo"},{"code":"TA","name":"Tipperary"},{"code":"WD","name":"Waterford"},{"code":"WH","name":"Westmeath"},{"code":"WX","name":"Wexford"},{"code":"WW","name":"Wicklow"}]},{"code":"IM","name":"Isle of Man","states":[]},{"code":"IL","name":"Israel","states":[]},{"code":"IT","name":"Italy","states":[{"code":"AG","name":"Agrigento"},{"code":"AL","name":"Alessandria"},{"code":"AN","name":"Ancona"},{"code":"AO","name":"Aosta"},{"code":"AR","name":"Arezzo"},{"code":"AP","name":"Ascoli Piceno"},{"code":"AT","name":"Asti"},{"code":"AV","name":"Avellino"},{"code":"BA","name":"Bari"},{"code":"BT","name":"Barletta-Andria-Trani"},{"code":"BL","name":"Belluno"},{"code":"BN","name":"Benevento"},{"code":"BG","name":"Bergamo"},{"code":"BI","name":"Biella"},{"code":"BO","name":"Bologna"},{"code":"BZ","name":"Bolzano"},{"code":"BS","name":"Brescia"},{"code":"BR","name":"Brindisi"},{"code":"CA","name":"Cagliari"},{"code":"CL","name":"Caltanissetta"},{"code":"CB","name":"Campobasso"},{"code":"CE","name":"Caserta"},{"code":"CT","name":"Catania"},{"code":"CZ","name":"Catanzaro"},{"code":"CH","name":"Chieti"},{"code":"CO","name":"Como"},{"code":"CS","name":"Cosenza"},{"code":"CR","name":"Cremona"},{"code":"KR","name":"Crotone"},{"code":"CN","name":"Cuneo"},{"code":"EN","name":"Enna"},{"code":"FM","name":"Fermo"},{"code":"FE","name":"Ferrara"},{"code":"FI","name":"Firenze"},{"code":"FG","name":"Foggia"},{"code":"FC","name":"Forlì-Cesena"},{"code":"FR","name":"Frosinone"},{"code":"GE","name":"Genova"},{"code":"GO","name":"Gorizia"},{"code":"GR","name":"Grosseto"},{"code":"IM","name":"Imperia"},{"code":"IS","name":"Isernia"},{"code":"SP","name":"La Spezia"},{"code":"AQ","name":"L\'Aquila"},{"code":"LT","name":"Latina"},{"code":"LE","name":"Lecce"},{"code":"LC","name":"Lecco"},{"code":"LI","name":"Livorno"},{"code":"LO","name":"Lodi"},{"code":"LU","name":"Lucca"},{"code":"MC","name":"Macerata"},{"code":"MN","name":"Mantova"},{"code":"MS","name":"Massa-Carrara"},{"code":"MT","name":"Matera"},{"code":"ME","name":"Messina"},{"code":"MI","name":"Milano"},{"code":"MO","name":"Modena"},{"code":"MB","name":"Monza e della Brianza"},{"code":"NA","name":"Napoli"},{"code":"NO","name":"Novara"},{"code":"NU","name":"Nuoro"},{"code":"OR","name":"Oristano"},{"code":"PD","name":"Padova"},{"code":"PA","name":"Palermo"},{"code":"PR","name":"Parma"},{"code":"PV","name":"Pavia"},{"code":"PG","name":"Perugia"},{"code":"PU","name":"Pesaro e Urbino"},{"code":"PE","name":"Pescara"},{"code":"PC","name":"Piacenza"},{"code":"PI","name":"Pisa"},{"code":"PT","name":"Pistoia"},{"code":"PN","name":"Pordenone"},{"code":"PZ","name":"Potenza"},{"code":"PO","name":"Prato"},{"code":"RG","name":"Ragusa"},{"code":"RA","name":"Ravenna"},{"code":"RC","name":"Reggio Calabria"},{"code":"RE","name":"Reggio Emilia"},{"code":"RI","name":"Rieti"},{"code":"RN","name":"Rimini"},{"code":"RM","name":"Roma"},{"code":"RO","name":"Rovigo"},{"code":"SA","name":"Salerno"},{"code":"SS","name":"Sassari"},{"code":"SV","name":"Savona"},{"code":"SI","name":"Siena"},{"code":"SR","name":"Siracusa"},{"code":"SO","name":"Sondrio"},{"code":"SU","name":"Sud Sardegna"},{"code":"TA","name":"Taranto"},{"code":"TE","name":"Teramo"},{"code":"TR","name":"Terni"},{"code":"TO","name":"Torino"},{"code":"TP","name":"Trapani"},{"code":"TN","name":"Trento"},{"code":"TV","name":"Treviso"},{"code":"TS","name":"Trieste"},{"code":"UD","name":"Udine"},{"code":"VA","name":"Varese"},{"code":"VE","name":"Venezia"},{"code":"VB","name":"Verbano-Cusio-Ossola"},{"code":"VC","name":"Vercelli"},{"code":"VR","name":"Verona"},{"code":"VV","name":"Vibo Valentia"},{"code":"VI","name":"Vicenza"},{"code":"VT","name":"Viterbo"}]},{"code":"CI","name":"Ivory Coast","states":[]},{"code":"JM","name":"Jamaica","states":[{"code":"JM-01","name":"Kingston"},{"code":"JM-02","name":"Saint Andrew"},{"code":"JM-03","name":"Saint Thomas"},{"code":"JM-04","name":"Portland"},{"code":"JM-05","name":"Saint Mary"},{"code":"JM-06","name":"Saint Ann"},{"code":"JM-07","name":"Trelawny"},{"code":"JM-08","name":"Saint James"},{"code":"JM-09","name":"Hanover"},{"code":"JM-10","name":"Westmoreland"},{"code":"JM-11","name":"Saint Elizabeth"},{"code":"JM-12","name":"Manchester"},{"code":"JM-13","name":"Clarendon"},{"code":"JM-14","name":"Saint Catherine"}]},{"code":"JP","name":"Japan","states":[{"code":"JP01","name":"Hokkaido"},{"code":"JP02","name":"Aomori"},{"code":"JP03","name":"Iwate"},{"code":"JP04","name":"Miyagi"},{"code":"JP05","name":"Akita"},{"code":"JP06","name":"Yamagata"},{"code":"JP07","name":"Fukushima"},{"code":"JP08","name":"Ibaraki"},{"code":"JP09","name":"Tochigi"},{"code":"JP10","name":"Gunma"},{"code":"JP11","name":"Saitama"},{"code":"JP12","name":"Chiba"},{"code":"JP13","name":"Tokyo"},{"code":"JP14","name":"Kanagawa"},{"code":"JP15","name":"Niigata"},{"code":"JP16","name":"Toyama"},{"code":"JP17","name":"Ishikawa"},{"code":"JP18","name":"Fukui"},{"code":"JP19","name":"Yamanashi"},{"code":"JP20","name":"Nagano"},{"code":"JP21","name":"Gifu"},{"code":"JP22","name":"Shizuoka"},{"code":"JP23","name":"Aichi"},{"code":"JP24","name":"Mie"},{"code":"JP25","name":"Shiga"},{"code":"JP26","name":"Kyoto"},{"code":"JP27","name":"Osaka"},{"code":"JP28","name":"Hyogo"},{"code":"JP29","name":"Nara"},{"code":"JP30","name":"Wakayama"},{"code":"JP31","name":"Tottori"},{"code":"JP32","name":"Shimane"},{"code":"JP33","name":"Okayama"},{"code":"JP34","name":"Hiroshima"},{"code":"JP35","name":"Yamaguchi"},{"code":"JP36","name":"Tokushima"},{"code":"JP37","name":"Kagawa"},{"code":"JP38","name":"Ehime"},{"code":"JP39","name":"Kochi"},{"code":"JP40","name":"Fukuoka"},{"code":"JP41","name":"Saga"},{"code":"JP42","name":"Nagasaki"},{"code":"JP43","name":"Kumamoto"},{"code":"JP44","name":"Oita"},{"code":"JP45","name":"Miyazaki"},{"code":"JP46","name":"Kagoshima"},{"code":"JP47","name":"Okinawa"}]},{"code":"JE","name":"Jersey","states":[]},{"code":"JO","name":"Jordan","states":[]},{"code":"KZ","name":"Kazakhstan","states":[]},{"code":"KE","name":"Kenya","states":[{"code":"KE01","name":"Baringo"},{"code":"KE02","name":"Bomet"},{"code":"KE03","name":"Bungoma"},{"code":"KE04","name":"Busia"},{"code":"KE05","name":"Elgeyo-Marakwet"},{"code":"KE06","name":"Embu"},{"code":"KE07","name":"Garissa"},{"code":"KE08","name":"Homa Bay"},{"code":"KE09","name":"Isiolo"},{"code":"KE10","name":"Kajiado"},{"code":"KE11","name":"Kakamega"},{"code":"KE12","name":"Kericho"},{"code":"KE13","name":"Kiambu"},{"code":"KE14","name":"Kilifi"},{"code":"KE15","name":"Kirinyaga"},{"code":"KE16","name":"Kisii"},{"code":"KE17","name":"Kisumu"},{"code":"KE18","name":"Kitui"},{"code":"KE19","name":"Kwale"},{"code":"KE20","name":"Laikipia"},{"code":"KE21","name":"Lamu"},{"code":"KE22","name":"Machakos"},{"code":"KE23","name":"Makueni"},{"code":"KE24","name":"Mandera"},{"code":"KE25","name":"Marsabit"},{"code":"KE26","name":"Meru"},{"code":"KE27","name":"Migori"},{"code":"KE28","name":"Mombasa"},{"code":"KE29","name":"Murang’a"},{"code":"KE30","name":"Nairobi County"},{"code":"KE31","name":"Nakuru"},{"code":"KE32","name":"Nandi"},{"code":"KE33","name":"Narok"},{"code":"KE34","name":"Nyamira"},{"code":"KE35","name":"Nyandarua"},{"code":"KE36","name":"Nyeri"},{"code":"KE37","name":"Samburu"},{"code":"KE38","name":"Siaya"},{"code":"KE39","name":"Taita-Taveta"},{"code":"KE40","name":"Tana River"},{"code":"KE41","name":"Tharaka-Nithi"},{"code":"KE42","name":"Trans Nzoia"},{"code":"KE43","name":"Turkana"},{"code":"KE44","name":"Uasin Gishu"},{"code":"KE45","name":"Vihiga"},{"code":"KE46","name":"Wajir"},{"code":"KE47","name":"West Pokot"}]},{"code":"KI","name":"Kiribati","states":[]},{"code":"KW","name":"Kuwait","states":[]},{"code":"KG","name":"Kyrgyzstan","states":[]},{"code":"LA","name":"Laos","states":[{"code":"AT","name":"Attapeu"},{"code":"BK","name":"Bokeo"},{"code":"BL","name":"Bolikhamsai"},{"code":"CH","name":"Champasak"},{"code":"HO","name":"Houaphanh"},{"code":"KH","name":"Khammouane"},{"code":"LM","name":"Luang Namtha"},{"code":"LP","name":"Luang Prabang"},{"code":"OU","name":"Oudomxay"},{"code":"PH","name":"Phongsaly"},{"code":"SL","name":"Salavan"},{"code":"SV","name":"Savannakhet"},{"code":"VI","name":"Vientiane Province"},{"code":"VT","name":"Vientiane"},{"code":"XA","name":"Sainyabuli"},{"code":"XE","name":"Sekong"},{"code":"XI","name":"Xiangkhouang"},{"code":"XS","name":"Xaisomboun"}]},{"code":"LV","name":"Latvia","states":[]},{"code":"LS","name":"Lesotho","states":[]},{"code":"LR","name":"Liberia","states":[{"code":"BM","name":"Bomi"},{"code":"BN","name":"Bong"},{"code":"GA","name":"Gbarpolu"},{"code":"GB","name":"Grand Bassa"},{"code":"GC","name":"Grand Cape Mount"},{"code":"GG","name":"Grand Gedeh"},{"code":"GK","name":"Grand Kru"},{"code":"LO","name":"Lofa"},{"code":"MA","name":"Margibi"},{"code":"MY","name":"Maryland"},{"code":"MO","name":"Montserrado"},{"code":"NM","name":"Nimba"},{"code":"RV","name":"Rivercess"},{"code":"RG","name":"River Gee"},{"code":"SN","name":"Sinoe"}]},{"code":"LI","name":"Liechtenstein","states":[]},{"code":"LT","name":"Lithuania","states":[]},{"code":"LU","name":"Luxembourg","states":[]},{"code":"MO","name":"Macao","states":[]},{"code":"MG","name":"Madagascar","states":[]},{"code":"MW","name":"Malawi","states":[]},{"code":"MY","name":"Malaysia","states":[{"code":"JHR","name":"Johor"},{"code":"KDH","name":"Kedah"},{"code":"KTN","name":"Kelantan"},{"code":"LBN","name":"Labuan"},{"code":"MLK","name":"Malacca (Melaka)"},{"code":"NSN","name":"Negeri Sembilan"},{"code":"PHG","name":"Pahang"},{"code":"PNG","name":"Penang (Pulau Pinang)"},{"code":"PRK","name":"Perak"},{"code":"PLS","name":"Perlis"},{"code":"SBH","name":"Sabah"},{"code":"SWK","name":"Sarawak"},{"code":"SGR","name":"Selangor"},{"code":"TRG","name":"Terengganu"},{"code":"PJY","name":"Putrajaya"},{"code":"KUL","name":"Kuala Lumpur"}]},{"code":"MV","name":"Maldives","states":[]},{"code":"ML","name":"Mali","states":[]},{"code":"MT","name":"Malta","states":[]},{"code":"MH","name":"Marshall Islands","states":[]},{"code":"MQ","name":"Martinique","states":[]},{"code":"MR","name":"Mauritania","states":[]},{"code":"MU","name":"Mauritius","states":[]},{"code":"YT","name":"Mayotte","states":[]},{"code":"MX","name":"Mexico","states":[{"code":"DF","name":"Ciudad de México"},{"code":"JA","name":"Jalisco"},{"code":"NL","name":"Nuevo León"},{"code":"AG","name":"Aguascalientes"},{"code":"BC","name":"Baja California"},{"code":"BS","name":"Baja California Sur"},{"code":"CM","name":"Campeche"},{"code":"CS","name":"Chiapas"},{"code":"CH","name":"Chihuahua"},{"code":"CO","name":"Coahuila"},{"code":"CL","name":"Colima"},{"code":"DG","name":"Durango"},{"code":"GT","name":"Guanajuato"},{"code":"GR","name":"Guerrero"},{"code":"HG","name":"Hidalgo"},{"code":"MX","name":"Estado de México"},{"code":"MI","name":"Michoacán"},{"code":"MO","name":"Morelos"},{"code":"NA","name":"Nayarit"},{"code":"OA","name":"Oaxaca"},{"code":"PU","name":"Puebla"},{"code":"QT","name":"Querétaro"},{"code":"QR","name":"Quintana Roo"},{"code":"SL","name":"San Luis Potosí"},{"code":"SI","name":"Sinaloa"},{"code":"SO","name":"Sonora"},{"code":"TB","name":"Tabasco"},{"code":"TM","name":"Tamaulipas"},{"code":"TL","name":"Tlaxcala"},{"code":"VE","name":"Veracruz"},{"code":"YU","name":"Yucatán"},{"code":"ZA","name":"Zacatecas"}]},{"code":"FM","name":"Micronesia","states":[]},{"code":"MD","name":"Moldova","states":[{"code":"C","name":"Chișinău"},{"code":"BL","name":"Bălți"},{"code":"AN","name":"Anenii Noi"},{"code":"BS","name":"Basarabeasca"},{"code":"BR","name":"Briceni"},{"code":"CH","name":"Cahul"},{"code":"CT","name":"Cantemir"},{"code":"CL","name":"Călărași"},{"code":"CS","name":"Căușeni"},{"code":"CM","name":"Cimișlia"},{"code":"CR","name":"Criuleni"},{"code":"DN","name":"Dondușeni"},{"code":"DR","name":"Drochia"},{"code":"DB","name":"Dubăsari"},{"code":"ED","name":"Edineț"},{"code":"FL","name":"Fălești"},{"code":"FR","name":"Florești"},{"code":"GE","name":"UTA Găgăuzia"},{"code":"GL","name":"Glodeni"},{"code":"HN","name":"Hîncești"},{"code":"IL","name":"Ialoveni"},{"code":"LV","name":"Leova"},{"code":"NS","name":"Nisporeni"},{"code":"OC","name":"Ocnița"},{"code":"OR","name":"Orhei"},{"code":"RZ","name":"Rezina"},{"code":"RS","name":"Rîșcani"},{"code":"SG","name":"Sîngerei"},{"code":"SR","name":"Soroca"},{"code":"ST","name":"Strășeni"},{"code":"SD","name":"Șoldănești"},{"code":"SV","name":"Ștefan Vodă"},{"code":"TR","name":"Taraclia"},{"code":"TL","name":"Telenești"},{"code":"UN","name":"Ungheni"}]},{"code":"MC","name":"Monaco","states":[]},{"code":"MN","name":"Mongolia","states":[]},{"code":"MS","name":"Montserrat","states":[]},{"code":"MA","name":"Morocco","states":[]},{"code":"MZ","name":"Mozambique","states":[{"code":"MZP","name":"Cabo Delgado"},{"code":"MZG","name":"Gaza"},{"code":"MZI","name":"Inhambane"},{"code":"MZB","name":"Manica"},{"code":"MZL","name":"Maputo Province"},{"code":"MZMPM","name":"Maputo"},{"code":"MZN","name":"Nampula"},{"code":"MZA","name":"Niassa"},{"code":"MZS","name":"Sofala"},{"code":"MZT","name":"Tete"},{"code":"MZQ","name":"Zambézia"}]},{"code":"NA","name":"Namibia","states":[{"code":"ER","name":"Erongo"},{"code":"HA","name":"Hardap"},{"code":"KA","name":"Karas"},{"code":"KE","name":"Kavango East"},{"code":"KW","name":"Kavango West"},{"code":"KH","name":"Khomas"},{"code":"KU","name":"Kunene"},{"code":"OW","name":"Ohangwena"},{"code":"OH","name":"Omaheke"},{"code":"OS","name":"Omusati"},{"code":"ON","name":"Oshana"},{"code":"OT","name":"Oshikoto"},{"code":"OD","name":"Otjozondjupa"},{"code":"CA","name":"Zambezi"}]},{"code":"NR","name":"Nauru","states":[]},{"code":"NP","name":"Nepal","states":[{"code":"BAG","name":"Bagmati"},{"code":"BHE","name":"Bheri"},{"code":"DHA","name":"Dhaulagiri"},{"code":"GAN","name":"Gandaki"},{"code":"JAN","name":"Janakpur"},{"code":"KAR","name":"Karnali"},{"code":"KOS","name":"Koshi"},{"code":"LUM","name":"Lumbini"},{"code":"MAH","name":"Mahakali"},{"code":"MEC","name":"Mechi"},{"code":"NAR","name":"Narayani"},{"code":"RAP","name":"Rapti"},{"code":"SAG","name":"Sagarmatha"},{"code":"SET","name":"Seti"}]},{"code":"NL","name":"Netherlands","states":[]},{"code":"NC","name":"New Caledonia","states":[]},{"code":"NZ","name":"New Zealand","states":[{"code":"NL","name":"Northland"},{"code":"AK","name":"Auckland"},{"code":"WA","name":"Waikato"},{"code":"BP","name":"Bay of Plenty"},{"code":"TK","name":"Taranaki"},{"code":"GI","name":"Gisborne"},{"code":"HB","name":"Hawke’s Bay"},{"code":"MW","name":"Manawatu-Wanganui"},{"code":"WE","name":"Wellington"},{"code":"NS","name":"Nelson"},{"code":"MB","name":"Marlborough"},{"code":"TM","name":"Tasman"},{"code":"WC","name":"West Coast"},{"code":"CT","name":"Canterbury"},{"code":"OT","name":"Otago"},{"code":"SL","name":"Southland"}]},{"code":"NI","name":"Nicaragua","states":[{"code":"NI-AN","name":"Atlántico Norte"},{"code":"NI-AS","name":"Atlántico Sur"},{"code":"NI-BO","name":"Boaco"},{"code":"NI-CA","name":"Carazo"},{"code":"NI-CI","name":"Chinandega"},{"code":"NI-CO","name":"Chontales"},{"code":"NI-ES","name":"Estelí"},{"code":"NI-GR","name":"Granada"},{"code":"NI-JI","name":"Jinotega"},{"code":"NI-LE","name":"León"},{"code":"NI-MD","name":"Madriz"},{"code":"NI-MN","name":"Managua"},{"code":"NI-MS","name":"Masaya"},{"code":"NI-MT","name":"Matagalpa"},{"code":"NI-NS","name":"Nueva Segovia"},{"code":"NI-RI","name":"Rivas"},{"code":"NI-SJ","name":"Río San Juan"}]},{"code":"NE","name":"Niger","states":[]},{"code":"NG","name":"Nigeria","states":[{"code":"AB","name":"Abia"},{"code":"FC","name":"Abuja"},{"code":"AD","name":"Adamawa"},{"code":"AK","name":"Akwa Ibom"},{"code":"AN","name":"Anambra"},{"code":"BA","name":"Bauchi"},{"code":"BY","name":"Bayelsa"},{"code":"BE","name":"Benue"},{"code":"BO","name":"Borno"},{"code":"CR","name":"Cross River"},{"code":"DE","name":"Delta"},{"code":"EB","name":"Ebonyi"},{"code":"ED","name":"Edo"},{"code":"EK","name":"Ekiti"},{"code":"EN","name":"Enugu"},{"code":"GO","name":"Gombe"},{"code":"IM","name":"Imo"},{"code":"JI","name":"Jigawa"},{"code":"KD","name":"Kaduna"},{"code":"KN","name":"Kano"},{"code":"KT","name":"Katsina"},{"code":"KE","name":"Kebbi"},{"code":"KO","name":"Kogi"},{"code":"KW","name":"Kwara"},{"code":"LA","name":"Lagos"},{"code":"NA","name":"Nasarawa"},{"code":"NI","name":"Niger"},{"code":"OG","name":"Ogun"},{"code":"ON","name":"Ondo"},{"code":"OS","name":"Osun"},{"code":"OY","name":"Oyo"},{"code":"PL","name":"Plateau"},{"code":"RI","name":"Rivers"},{"code":"SO","name":"Sokoto"},{"code":"TA","name":"Taraba"},{"code":"YO","name":"Yobe"},{"code":"ZA","name":"Zamfara"}]},{"code":"NU","name":"Niue","states":[]},{"code":"NF","name":"Norfolk Island","states":[]},{"code":"MP","name":"Northern Mariana Islands","states":[]},{"code":"NO","name":"Norway","states":[]},{"code":"OM","name":"Oman","states":[]},{"code":"PK","name":"Pakistan","states":[{"code":"JK","name":"Azad Kashmir"},{"code":"BA","name":"Balochistan"},{"code":"TA","name":"FATA"},{"code":"GB","name":"Gilgit Baltistan"},{"code":"IS","name":"Islamabad Capital Territory"},{"code":"KP","name":"Khyber Pakhtunkhwa"},{"code":"PB","name":"Punjab"},{"code":"SD","name":"Sindh"}]},{"code":"PS","name":"Palestinian Territory","states":[]},{"code":"PA","name":"Panama","states":[{"code":"PA-1","name":"Bocas del Toro"},{"code":"PA-2","name":"Coclé"},{"code":"PA-3","name":"Colón"},{"code":"PA-4","name":"Chiriquí"},{"code":"PA-5","name":"Darién"},{"code":"PA-6","name":"Herrera"},{"code":"PA-7","name":"Los Santos"},{"code":"PA-8","name":"Panamá"},{"code":"PA-9","name":"Veraguas"},{"code":"PA-10","name":"West Panamá"},{"code":"PA-EM","name":"Emberá"},{"code":"PA-KY","name":"Guna Yala"},{"code":"PA-NB","name":"Ngöbe-Buglé"}]},{"code":"PG","name":"Papua New Guinea","states":[]},{"code":"PY","name":"Paraguay","states":[{"code":"PY-ASU","name":"Asunción"},{"code":"PY-1","name":"Concepción"},{"code":"PY-2","name":"San Pedro"},{"code":"PY-3","name":"Cordillera"},{"code":"PY-4","name":"Guairá"},{"code":"PY-5","name":"Caaguazú"},{"code":"PY-6","name":"Caazapá"},{"code":"PY-7","name":"Itapúa"},{"code":"PY-8","name":"Misiones"},{"code":"PY-9","name":"Paraguarí"},{"code":"PY-10","name":"Alto Paraná"},{"code":"PY-11","name":"Central"},{"code":"PY-12","name":"Ñeembucú"},{"code":"PY-13","name":"Amambay"},{"code":"PY-14","name":"Canindeyú"},{"code":"PY-15","name":"Presidente Hayes"},{"code":"PY-16","name":"Alto Paraguay"},{"code":"PY-17","name":"Boquerón"}]},{"code":"PE","name":"Peru","states":[{"code":"CAL","name":"El Callao"},{"code":"LMA","name":"Municipalidad Metropolitana de Lima"},{"code":"AMA","name":"Amazonas"},{"code":"ANC","name":"Ancash"},{"code":"APU","name":"Apurímac"},{"code":"ARE","name":"Arequipa"},{"code":"AYA","name":"Ayacucho"},{"code":"CAJ","name":"Cajamarca"},{"code":"CUS","name":"Cusco"},{"code":"HUV","name":"Huancavelica"},{"code":"HUC","name":"Huánuco"},{"code":"ICA","name":"Ica"},{"code":"JUN","name":"Junín"},{"code":"LAL","name":"La Libertad"},{"code":"LAM","name":"Lambayeque"},{"code":"LIM","name":"Lima"},{"code":"LOR","name":"Loreto"},{"code":"MDD","name":"Madre de Dios"},{"code":"MOQ","name":"Moquegua"},{"code":"PAS","name":"Pasco"},{"code":"PIU","name":"Piura"},{"code":"PUN","name":"Puno"},{"code":"SAM","name":"San Martín"},{"code":"TAC","name":"Tacna"},{"code":"TUM","name":"Tumbes"},{"code":"UCA","name":"Ucayali"}]},{"code":"PH","name":"Philippines","states":[{"code":"ABR","name":"Abra"},{"code":"AGN","name":"Agusan del Norte"},{"code":"AGS","name":"Agusan del Sur"},{"code":"AKL","name":"Aklan"},{"code":"ALB","name":"Albay"},{"code":"ANT","name":"Antique"},{"code":"APA","name":"Apayao"},{"code":"AUR","name":"Aurora"},{"code":"BAS","name":"Basilan"},{"code":"BAN","name":"Bataan"},{"code":"BTN","name":"Batanes"},{"code":"BTG","name":"Batangas"},{"code":"BEN","name":"Benguet"},{"code":"BIL","name":"Biliran"},{"code":"BOH","name":"Bohol"},{"code":"BUK","name":"Bukidnon"},{"code":"BUL","name":"Bulacan"},{"code":"CAG","name":"Cagayan"},{"code":"CAN","name":"Camarines Norte"},{"code":"CAS","name":"Camarines Sur"},{"code":"CAM","name":"Camiguin"},{"code":"CAP","name":"Capiz"},{"code":"CAT","name":"Catanduanes"},{"code":"CAV","name":"Cavite"},{"code":"CEB","name":"Cebu"},{"code":"COM","name":"Compostela Valley"},{"code":"NCO","name":"Cotabato"},{"code":"DAV","name":"Davao del Norte"},{"code":"DAS","name":"Davao del Sur"},{"code":"DAC","name":"Davao Occidental"},{"code":"DAO","name":"Davao Oriental"},{"code":"DIN","name":"Dinagat Islands"},{"code":"EAS","name":"Eastern Samar"},{"code":"GUI","name":"Guimaras"},{"code":"IFU","name":"Ifugao"},{"code":"ILN","name":"Ilocos Norte"},{"code":"ILS","name":"Ilocos Sur"},{"code":"ILI","name":"Iloilo"},{"code":"ISA","name":"Isabela"},{"code":"KAL","name":"Kalinga"},{"code":"LUN","name":"La Union"},{"code":"LAG","name":"Laguna"},{"code":"LAN","name":"Lanao del Norte"},{"code":"LAS","name":"Lanao del Sur"},{"code":"LEY","name":"Leyte"},{"code":"MAG","name":"Maguindanao"},{"code":"MAD","name":"Marinduque"},{"code":"MAS","name":"Masbate"},{"code":"MSC","name":"Misamis Occidental"},{"code":"MSR","name":"Misamis Oriental"},{"code":"MOU","name":"Mountain Province"},{"code":"NEC","name":"Negros Occidental"},{"code":"NER","name":"Negros Oriental"},{"code":"NSA","name":"Northern Samar"},{"code":"NUE","name":"Nueva Ecija"},{"code":"NUV","name":"Nueva Vizcaya"},{"code":"MDC","name":"Occidental Mindoro"},{"code":"MDR","name":"Oriental Mindoro"},{"code":"PLW","name":"Palawan"},{"code":"PAM","name":"Pampanga"},{"code":"PAN","name":"Pangasinan"},{"code":"QUE","name":"Quezon"},{"code":"QUI","name":"Quirino"},{"code":"RIZ","name":"Rizal"},{"code":"ROM","name":"Romblon"},{"code":"WSA","name":"Samar"},{"code":"SAR","name":"Sarangani"},{"code":"SIQ","name":"Siquijor"},{"code":"SOR","name":"Sorsogon"},{"code":"SCO","name":"South Cotabato"},{"code":"SLE","name":"Southern Leyte"},{"code":"SUK","name":"Sultan Kudarat"},{"code":"SLU","name":"Sulu"},{"code":"SUN","name":"Surigao del Norte"},{"code":"SUR","name":"Surigao del Sur"},{"code":"TAR","name":"Tarlac"},{"code":"TAW","name":"Tawi-Tawi"},{"code":"ZMB","name":"Zambales"},{"code":"ZAN","name":"Zamboanga del Norte"},{"code":"ZAS","name":"Zamboanga del Sur"},{"code":"ZSI","name":"Zamboanga Sibugay"},{"code":"00","name":"Metro Manila"}]},{"code":"PN","name":"Pitcairn","states":[]},{"code":"PL","name":"Poland","states":[]},{"code":"PT","name":"Portugal","states":[]},{"code":"PR","name":"Puerto Rico","states":[]},{"code":"QA","name":"Qatar","states":[]},{"code":"RE","name":"Reunion","states":[]},{"code":"RO","name":"Romania","states":[{"code":"AB","name":"Alba"},{"code":"AR","name":"Arad"},{"code":"AG","name":"Argeș"},{"code":"BC","name":"Bacău"},{"code":"BH","name":"Bihor"},{"code":"BN","name":"Bistrița-Năsăud"},{"code":"BT","name":"Botoșani"},{"code":"BR","name":"Brăila"},{"code":"BV","name":"Brașov"},{"code":"B","name":"București"},{"code":"BZ","name":"Buzău"},{"code":"CL","name":"Călărași"},{"code":"CS","name":"Caraș-Severin"},{"code":"CJ","name":"Cluj"},{"code":"CT","name":"Constanța"},{"code":"CV","name":"Covasna"},{"code":"DB","name":"Dâmbovița"},{"code":"DJ","name":"Dolj"},{"code":"GL","name":"Galați"},{"code":"GR","name":"Giurgiu"},{"code":"GJ","name":"Gorj"},{"code":"HR","name":"Harghita"},{"code":"HD","name":"Hunedoara"},{"code":"IL","name":"Ialomița"},{"code":"IS","name":"Iași"},{"code":"IF","name":"Ilfov"},{"code":"MM","name":"Maramureș"},{"code":"MH","name":"Mehedinți"},{"code":"MS","name":"Mureș"},{"code":"NT","name":"Neamț"},{"code":"OT","name":"Olt"},{"code":"PH","name":"Prahova"},{"code":"SJ","name":"Sălaj"},{"code":"SM","name":"Satu Mare"},{"code":"SB","name":"Sibiu"},{"code":"SV","name":"Suceava"},{"code":"TR","name":"Teleorman"},{"code":"TM","name":"Timiș"},{"code":"TL","name":"Tulcea"},{"code":"VL","name":"Vâlcea"},{"code":"VS","name":"Vaslui"},{"code":"VN","name":"Vrancea"}]},{"code":"RU","name":"Russia","states":[]},{"code":"RW","name":"Rwanda","states":[]},{"code":"BL","name":"Saint Barthélemy","states":[]},{"code":"SH","name":"Saint Helena","states":[]},{"code":"KN","name":"Saint Kitts and Nevis","states":[]},{"code":"LC","name":"Saint Lucia","states":[]},{"code":"SX","name":"Saint Martin (Dutch part)","states":[]},{"code":"MF","name":"Saint Martin (French part)","states":[]},{"code":"PM","name":"Saint Pierre and Miquelon","states":[]},{"code":"VC","name":"Saint Vincent and the Grenadines","states":[]},{"code":"WS","name":"Samoa","states":[]},{"code":"SM","name":"San Marino","states":[]},{"code":"ST","name":"São Tomé and Príncipe","states":[]},{"code":"SA","name":"Saudi Arabia","states":[]},{"code":"SN","name":"Senegal","states":[]},{"code":"SC","name":"Seychelles","states":[]},{"code":"SL","name":"Sierra Leone","states":[]},{"code":"SG","name":"Singapore","states":[]},{"code":"SK","name":"Slovakia","states":[]},{"code":"SI","name":"Slovenia","states":[]},{"code":"SB","name":"Solomon Islands","states":[]},{"code":"SO","name":"Somalia","states":[]},{"code":"ZA","name":"South Africa","states":[{"code":"EC","name":"Eastern Cape"},{"code":"FS","name":"Free State"},{"code":"GP","name":"Gauteng"},{"code":"KZN","name":"KwaZulu-Natal"},{"code":"LP","name":"Limpopo"},{"code":"MP","name":"Mpumalanga"},{"code":"NC","name":"Northern Cape"},{"code":"NW","name":"North West"},{"code":"WC","name":"Western Cape"}]},{"code":"GS","name":"South Georgia/Sandwich Islands","states":[]},{"code":"KR","name":"South Korea","states":[]},{"code":"ES","name":"Spain","states":[{"code":"C","name":"A Coruña"},{"code":"VI","name":"Araba/Álava"},{"code":"AB","name":"Albacete"},{"code":"A","name":"Alicante"},{"code":"AL","name":"Almería"},{"code":"O","name":"Asturias"},{"code":"AV","name":"Ávila"},{"code":"BA","name":"Badajoz"},{"code":"PM","name":"Baleares"},{"code":"B","name":"Barcelona"},{"code":"BU","name":"Burgos"},{"code":"CC","name":"Cáceres"},{"code":"CA","name":"Cádiz"},{"code":"S","name":"Cantabria"},{"code":"CS","name":"Castellón"},{"code":"CE","name":"Ceuta"},{"code":"CR","name":"Ciudad Real"},{"code":"CO","name":"Córdoba"},{"code":"CU","name":"Cuenca"},{"code":"GI","name":"Girona"},{"code":"GR","name":"Granada"},{"code":"GU","name":"Guadalajara"},{"code":"SS","name":"Gipuzkoa"},{"code":"H","name":"Huelva"},{"code":"HU","name":"Huesca"},{"code":"J","name":"Jaén"},{"code":"LO","name":"La Rioja"},{"code":"GC","name":"Las Palmas"},{"code":"LE","name":"León"},{"code":"L","name":"Lleida"},{"code":"LU","name":"Lugo"},{"code":"M","name":"Madrid"},{"code":"MA","name":"Málaga"},{"code":"ML","name":"Melilla"},{"code":"MU","name":"Murcia"},{"code":"NA","name":"Navarra"},{"code":"OR","name":"Ourense"},{"code":"P","name":"Palencia"},{"code":"PO","name":"Pontevedra"},{"code":"SA","name":"Salamanca"},{"code":"TF","name":"Santa Cruz de Tenerife"},{"code":"SG","name":"Segovia"},{"code":"SE","name":"Sevilla"},{"code":"SO","name":"Soria"},{"code":"T","name":"Tarragona"},{"code":"TE","name":"Teruel"},{"code":"TO","name":"Toledo"},{"code":"V","name":"Valencia"},{"code":"VA","name":"Valladolid"},{"code":"BI","name":"Biscay"},{"code":"ZA","name":"Zamora"},{"code":"Z","name":"Zaragoza"}]},{"code":"LK","name":"Sri Lanka","states":[]},{"code":"SR","name":"Suriname","states":[]},{"code":"SJ","name":"Svalbard and Jan Mayen","states":[]},{"code":"SE","name":"Sweden","states":[]},{"code":"CH","name":"Switzerland","states":[{"code":"AG","name":"Aargau"},{"code":"AR","name":"Appenzell Ausserrhoden"},{"code":"AI","name":"Appenzell Innerrhoden"},{"code":"BL","name":"Basel-Landschaft"},{"code":"BS","name":"Basel-Stadt"},{"code":"BE","name":"Bern"},{"code":"FR","name":"Fribourg"},{"code":"GE","name":"Geneva"},{"code":"GL","name":"Glarus"},{"code":"GR","name":"Graubünden"},{"code":"JU","name":"Jura"},{"code":"LU","name":"Luzern"},{"code":"NE","name":"Neuchâtel"},{"code":"NW","name":"Nidwalden"},{"code":"OW","name":"Obwalden"},{"code":"SH","name":"Schaffhausen"},{"code":"SZ","name":"Schwyz"},{"code":"SO","name":"Solothurn"},{"code":"SG","name":"St. Gallen"},{"code":"TG","name":"Thurgau"},{"code":"TI","name":"Ticino"},{"code":"UR","name":"Uri"},{"code":"VS","name":"Valais"},{"code":"VD","name":"Vaud"},{"code":"ZG","name":"Zug"},{"code":"ZH","name":"Zürich"}]},{"code":"SY","name":"Syria","states":[]},{"code":"TW","name":"Taiwan","states":[]},{"code":"TJ","name":"Tajikistan","states":[]},{"code":"TZ","name":"Tanzania","states":[{"code":"TZ01","name":"Arusha"},{"code":"TZ02","name":"Dar es Salaam"},{"code":"TZ03","name":"Dodoma"},{"code":"TZ04","name":"Iringa"},{"code":"TZ05","name":"Kagera"},{"code":"TZ06","name":"Pemba North"},{"code":"TZ07","name":"Zanzibar North"},{"code":"TZ08","name":"Kigoma"},{"code":"TZ09","name":"Kilimanjaro"},{"code":"TZ10","name":"Pemba South"},{"code":"TZ11","name":"Zanzibar South"},{"code":"TZ12","name":"Lindi"},{"code":"TZ13","name":"Mara"},{"code":"TZ14","name":"Mbeya"},{"code":"TZ15","name":"Zanzibar West"},{"code":"TZ16","name":"Morogoro"},{"code":"TZ17","name":"Mtwara"},{"code":"TZ18","name":"Mwanza"},{"code":"TZ19","name":"Coast"},{"code":"TZ20","name":"Rukwa"},{"code":"TZ21","name":"Ruvuma"},{"code":"TZ22","name":"Shinyanga"},{"code":"TZ23","name":"Singida"},{"code":"TZ24","name":"Tabora"},{"code":"TZ25","name":"Tanga"},{"code":"TZ26","name":"Manyara"},{"code":"TZ27","name":"Geita"},{"code":"TZ28","name":"Katavi"},{"code":"TZ29","name":"Njombe"},{"code":"TZ30","name":"Simiyu"}]},{"code":"TH","name":"Thailand","states":[{"code":"TH-37","name":"Amnat Charoen"},{"code":"TH-15","name":"Ang Thong"},{"code":"TH-14","name":"Ayutthaya"},{"code":"TH-10","name":"Bangkok"},{"code":"TH-38","name":"Bueng Kan"},{"code":"TH-31","name":"Buri Ram"},{"code":"TH-24","name":"Chachoengsao"},{"code":"TH-18","name":"Chai Nat"},{"code":"TH-36","name":"Chaiyaphum"},{"code":"TH-22","name":"Chanthaburi"},{"code":"TH-50","name":"Chiang Mai"},{"code":"TH-57","name":"Chiang Rai"},{"code":"TH-20","name":"Chonburi"},{"code":"TH-86","name":"Chumphon"},{"code":"TH-46","name":"Kalasin"},{"code":"TH-62","name":"Kamphaeng Phet"},{"code":"TH-71","name":"Kanchanaburi"},{"code":"TH-40","name":"Khon Kaen"},{"code":"TH-81","name":"Krabi"},{"code":"TH-52","name":"Lampang"},{"code":"TH-51","name":"Lamphun"},{"code":"TH-42","name":"Loei"},{"code":"TH-16","name":"Lopburi"},{"code":"TH-58","name":"Mae Hong Son"},{"code":"TH-44","name":"Maha Sarakham"},{"code":"TH-49","name":"Mukdahan"},{"code":"TH-26","name":"Nakhon Nayok"},{"code":"TH-73","name":"Nakhon Pathom"},{"code":"TH-48","name":"Nakhon Phanom"},{"code":"TH-30","name":"Nakhon Ratchasima"},{"code":"TH-60","name":"Nakhon Sawan"},{"code":"TH-80","name":"Nakhon Si Thammarat"},{"code":"TH-55","name":"Nan"},{"code":"TH-96","name":"Narathiwat"},{"code":"TH-39","name":"Nong Bua Lam Phu"},{"code":"TH-43","name":"Nong Khai"},{"code":"TH-12","name":"Nonthaburi"},{"code":"TH-13","name":"Pathum Thani"},{"code":"TH-94","name":"Pattani"},{"code":"TH-82","name":"Phang Nga"},{"code":"TH-93","name":"Phatthalung"},{"code":"TH-56","name":"Phayao"},{"code":"TH-67","name":"Phetchabun"},{"code":"TH-76","name":"Phetchaburi"},{"code":"TH-66","name":"Phichit"},{"code":"TH-65","name":"Phitsanulok"},{"code":"TH-54","name":"Phrae"},{"code":"TH-83","name":"Phuket"},{"code":"TH-25","name":"Prachin Buri"},{"code":"TH-77","name":"Prachuap Khiri Khan"},{"code":"TH-85","name":"Ranong"},{"code":"TH-70","name":"Ratchaburi"},{"code":"TH-21","name":"Rayong"},{"code":"TH-45","name":"Roi Et"},{"code":"TH-27","name":"Sa Kaeo"},{"code":"TH-47","name":"Sakon Nakhon"},{"code":"TH-11","name":"Samut Prakan"},{"code":"TH-74","name":"Samut Sakhon"},{"code":"TH-75","name":"Samut Songkhram"},{"code":"TH-19","name":"Saraburi"},{"code":"TH-91","name":"Satun"},{"code":"TH-17","name":"Sing Buri"},{"code":"TH-33","name":"Sisaket"},{"code":"TH-90","name":"Songkhla"},{"code":"TH-64","name":"Sukhothai"},{"code":"TH-72","name":"Suphan Buri"},{"code":"TH-84","name":"Surat Thani"},{"code":"TH-32","name":"Surin"},{"code":"TH-63","name":"Tak"},{"code":"TH-92","name":"Trang"},{"code":"TH-23","name":"Trat"},{"code":"TH-34","name":"Ubon Ratchathani"},{"code":"TH-41","name":"Udon Thani"},{"code":"TH-61","name":"Uthai Thani"},{"code":"TH-53","name":"Uttaradit"},{"code":"TH-95","name":"Yala"},{"code":"TH-35","name":"Yasothon"}]},{"code":"TL","name":"Timor-Leste","states":[]},{"code":"TG","name":"Togo","states":[]},{"code":"TK","name":"Tokelau","states":[]},{"code":"TO","name":"Tonga","states":[]},{"code":"TT","name":"Trinidad and Tobago","states":[]},{"code":"TN","name":"Tunisia","states":[]},{"code":"TR","name":"Turkey","states":[{"code":"TR01","name":"Adana"},{"code":"TR02","name":"Adıyaman"},{"code":"TR03","name":"Afyon"},{"code":"TR04","name":"Ağrı"},{"code":"TR05","name":"Amasya"},{"code":"TR06","name":"Ankara"},{"code":"TR07","name":"Antalya"},{"code":"TR08","name":"Artvin"},{"code":"TR09","name":"Aydın"},{"code":"TR10","name":"Balıkesir"},{"code":"TR11","name":"Bilecik"},{"code":"TR12","name":"Bingöl"},{"code":"TR13","name":"Bitlis"},{"code":"TR14","name":"Bolu"},{"code":"TR15","name":"Burdur"},{"code":"TR16","name":"Bursa"},{"code":"TR17","name":"Çanakkale"},{"code":"TR18","name":"Çankırı"},{"code":"TR19","name":"Çorum"},{"code":"TR20","name":"Denizli"},{"code":"TR21","name":"Diyarbakır"},{"code":"TR22","name":"Edirne"},{"code":"TR23","name":"Elazığ"},{"code":"TR24","name":"Erzincan"},{"code":"TR25","name":"Erzurum"},{"code":"TR26","name":"Eskişehir"},{"code":"TR27","name":"Gaziantep"},{"code":"TR28","name":"Giresun"},{"code":"TR29","name":"Gümüşhane"},{"code":"TR30","name":"Hakkari"},{"code":"TR31","name":"Hatay"},{"code":"TR32","name":"Isparta"},{"code":"TR33","name":"İçel"},{"code":"TR34","name":"İstanbul"},{"code":"TR35","name":"İzmir"},{"code":"TR36","name":"Kars"},{"code":"TR37","name":"Kastamonu"},{"code":"TR38","name":"Kayseri"},{"code":"TR39","name":"Kırklareli"},{"code":"TR40","name":"Kırşehir"},{"code":"TR41","name":"Kocaeli"},{"code":"TR42","name":"Konya"},{"code":"TR43","name":"Kütahya"},{"code":"TR44","name":"Malatya"},{"code":"TR45","name":"Manisa"},{"code":"TR46","name":"Kahramanmaraş"},{"code":"TR47","name":"Mardin"},{"code":"TR48","name":"Muğla"},{"code":"TR49","name":"Muş"},{"code":"TR50","name":"Nevşehir"},{"code":"TR51","name":"Niğde"},{"code":"TR52","name":"Ordu"},{"code":"TR53","name":"Rize"},{"code":"TR54","name":"Sakarya"},{"code":"TR55","name":"Samsun"},{"code":"TR56","name":"Siirt"},{"code":"TR57","name":"Sinop"},{"code":"TR58","name":"Sivas"},{"code":"TR59","name":"Tekirdağ"},{"code":"TR60","name":"Tokat"},{"code":"TR61","name":"Trabzon"},{"code":"TR62","name":"Tunceli"},{"code":"TR63","name":"Şanlıurfa"},{"code":"TR64","name":"Uşak"},{"code":"TR65","name":"Van"},{"code":"TR66","name":"Yozgat"},{"code":"TR67","name":"Zonguldak"},{"code":"TR68","name":"Aksaray"},{"code":"TR69","name":"Bayburt"},{"code":"TR70","name":"Karaman"},{"code":"TR71","name":"Kırıkkale"},{"code":"TR72","name":"Batman"},{"code":"TR73","name":"Şırnak"},{"code":"TR74","name":"Bartın"},{"code":"TR75","name":"Ardahan"},{"code":"TR76","name":"Iğdır"},{"code":"TR77","name":"Yalova"},{"code":"TR78","name":"Karabük"},{"code":"TR79","name":"Kilis"},{"code":"TR80","name":"Osmaniye"},{"code":"TR81","name":"Düzce"}]},{"code":"TM","name":"Turkmenistan","states":[]},{"code":"TC","name":"Turks and Caicos Islands","states":[]},{"code":"TV","name":"Tuvalu","states":[]},{"code":"UG","name":"Uganda","states":[{"code":"UG314","name":"Abim"},{"code":"UG301","name":"Adjumani"},{"code":"UG322","name":"Agago"},{"code":"UG323","name":"Alebtong"},{"code":"UG315","name":"Amolatar"},{"code":"UG324","name":"Amudat"},{"code":"UG216","name":"Amuria"},{"code":"UG316","name":"Amuru"},{"code":"UG302","name":"Apac"},{"code":"UG303","name":"Arua"},{"code":"UG217","name":"Budaka"},{"code":"UG218","name":"Bududa"},{"code":"UG201","name":"Bugiri"},{"code":"UG235","name":"Bugweri"},{"code":"UG420","name":"Buhweju"},{"code":"UG117","name":"Buikwe"},{"code":"UG219","name":"Bukedea"},{"code":"UG118","name":"Bukomansimbi"},{"code":"UG220","name":"Bukwa"},{"code":"UG225","name":"Bulambuli"},{"code":"UG416","name":"Buliisa"},{"code":"UG401","name":"Bundibugyo"},{"code":"UG430","name":"Bunyangabu"},{"code":"UG402","name":"Bushenyi"},{"code":"UG202","name":"Busia"},{"code":"UG221","name":"Butaleja"},{"code":"UG119","name":"Butambala"},{"code":"UG233","name":"Butebo"},{"code":"UG120","name":"Buvuma"},{"code":"UG226","name":"Buyende"},{"code":"UG317","name":"Dokolo"},{"code":"UG121","name":"Gomba"},{"code":"UG304","name":"Gulu"},{"code":"UG403","name":"Hoima"},{"code":"UG417","name":"Ibanda"},{"code":"UG203","name":"Iganga"},{"code":"UG418","name":"Isingiro"},{"code":"UG204","name":"Jinja"},{"code":"UG318","name":"Kaabong"},{"code":"UG404","name":"Kabale"},{"code":"UG405","name":"Kabarole"},{"code":"UG213","name":"Kaberamaido"},{"code":"UG427","name":"Kagadi"},{"code":"UG428","name":"Kakumiro"},{"code":"UG101","name":"Kalangala"},{"code":"UG222","name":"Kaliro"},{"code":"UG122","name":"Kalungu"},{"code":"UG102","name":"Kampala"},{"code":"UG205","name":"Kamuli"},{"code":"UG413","name":"Kamwenge"},{"code":"UG414","name":"Kanungu"},{"code":"UG206","name":"Kapchorwa"},{"code":"UG236","name":"Kapelebyong"},{"code":"UG126","name":"Kasanda"},{"code":"UG406","name":"Kasese"},{"code":"UG207","name":"Katakwi"},{"code":"UG112","name":"Kayunga"},{"code":"UG407","name":"Kibaale"},{"code":"UG103","name":"Kiboga"},{"code":"UG227","name":"Kibuku"},{"code":"UG432","name":"Kikuube"},{"code":"UG419","name":"Kiruhura"},{"code":"UG421","name":"Kiryandongo"},{"code":"UG408","name":"Kisoro"},{"code":"UG305","name":"Kitgum"},{"code":"UG319","name":"Koboko"},{"code":"UG325","name":"Kole"},{"code":"UG306","name":"Kotido"},{"code":"UG208","name":"Kumi"},{"code":"UG333","name":"Kwania"},{"code":"UG228","name":"Kween"},{"code":"UG123","name":"Kyankwanzi"},{"code":"UG422","name":"Kyegegwa"},{"code":"UG415","name":"Kyenjojo"},{"code":"UG125","name":"Kyotera"},{"code":"UG326","name":"Lamwo"},{"code":"UG307","name":"Lira"},{"code":"UG229","name":"Luuka"},{"code":"UG104","name":"Luwero"},{"code":"UG124","name":"Lwengo"},{"code":"UG114","name":"Lyantonde"},{"code":"UG223","name":"Manafwa"},{"code":"UG320","name":"Maracha"},{"code":"UG105","name":"Masaka"},{"code":"UG409","name":"Masindi"},{"code":"UG214","name":"Mayuge"},{"code":"UG209","name":"Mbale"},{"code":"UG410","name":"Mbarara"},{"code":"UG423","name":"Mitooma"},{"code":"UG115","name":"Mityana"},{"code":"UG308","name":"Moroto"},{"code":"UG309","name":"Moyo"},{"code":"UG106","name":"Mpigi"},{"code":"UG107","name":"Mubende"},{"code":"UG108","name":"Mukono"},{"code":"UG334","name":"Nabilatuk"},{"code":"UG311","name":"Nakapiripirit"},{"code":"UG116","name":"Nakaseke"},{"code":"UG109","name":"Nakasongola"},{"code":"UG230","name":"Namayingo"},{"code":"UG234","name":"Namisindwa"},{"code":"UG224","name":"Namutumba"},{"code":"UG327","name":"Napak"},{"code":"UG310","name":"Nebbi"},{"code":"UG231","name":"Ngora"},{"code":"UG424","name":"Ntoroko"},{"code":"UG411","name":"Ntungamo"},{"code":"UG328","name":"Nwoya"},{"code":"UG331","name":"Omoro"},{"code":"UG329","name":"Otuke"},{"code":"UG321","name":"Oyam"},{"code":"UG312","name":"Pader"},{"code":"UG332","name":"Pakwach"},{"code":"UG210","name":"Pallisa"},{"code":"UG110","name":"Rakai"},{"code":"UG429","name":"Rubanda"},{"code":"UG425","name":"Rubirizi"},{"code":"UG431","name":"Rukiga"},{"code":"UG412","name":"Rukungiri"},{"code":"UG111","name":"Sembabule"},{"code":"UG232","name":"Serere"},{"code":"UG426","name":"Sheema"},{"code":"UG215","name":"Sironko"},{"code":"UG211","name":"Soroti"},{"code":"UG212","name":"Tororo"},{"code":"UG113","name":"Wakiso"},{"code":"UG313","name":"Yumbe"},{"code":"UG330","name":"Zombo"}]},{"code":"UA","name":"Ukraine","states":[{"code":"VN","name":"Vinnytsia Oblast"},{"code":"VL","name":"Volyn Oblast"},{"code":"DP","name":"Dnipropetrovsk Oblast"},{"code":"DT","name":"Donetsk Oblast"},{"code":"ZT","name":"Zhytomyr Oblast"},{"code":"ZK","name":"Zakarpattia Oblast"},{"code":"ZP","name":"Zaporizhzhia Oblast"},{"code":"IF","name":"Ivano-Frankivsk Oblast"},{"code":"KV","name":"Kyiv Oblast"},{"code":"KH","name":"Kirovohrad Oblast"},{"code":"LH","name":"Luhansk Oblast"},{"code":"LV","name":"Lviv Oblast"},{"code":"MY","name":"Mykolaiv Oblast"},{"code":"OD","name":"Odessa Oblast"},{"code":"PL","name":"Poltava Oblast"},{"code":"RV","name":"Rivne Oblast"},{"code":"SM","name":"Sumy Oblast"},{"code":"TP","name":"Ternopil Oblast"},{"code":"KK","name":"Kharkiv Oblast"},{"code":"KS","name":"Kherson Oblast"},{"code":"KM","name":"Khmelnytskyi Oblast"},{"code":"CK","name":"Cherkasy Oblast"},{"code":"CH","name":"Chernihiv Oblast"},{"code":"CV","name":"Chernivtsi Oblast"}]},{"code":"AE","name":"United Arab Emirates","states":[]},{"code":"GB","name":"United Kingdom (UK)","states":[]},{"code":"US","name":"United States (US)","states":[{"code":"AL","name":"Alabama"},{"code":"AK","name":"Alaska"},{"code":"AZ","name":"Arizona"},{"code":"AR","name":"Arkansas"},{"code":"CA","name":"California"},{"code":"CO","name":"Colorado"},{"code":"CT","name":"Connecticut"},{"code":"DE","name":"Delaware"},{"code":"DC","name":"District Of Columbia"},{"code":"FL","name":"Florida"},{"code":"GA","name":"Georgia"},{"code":"HI","name":"Hawaii"},{"code":"ID","name":"Idaho"},{"code":"IL","name":"Illinois"},{"code":"IN","name":"Indiana"},{"code":"IA","name":"Iowa"},{"code":"KS","name":"Kansas"},{"code":"KY","name":"Kentucky"},{"code":"LA","name":"Louisiana"},{"code":"ME","name":"Maine"},{"code":"MD","name":"Maryland"},{"code":"MA","name":"Massachusetts"},{"code":"MI","name":"Michigan"},{"code":"MN","name":"Minnesota"},{"code":"MS","name":"Mississippi"},{"code":"MO","name":"Missouri"},{"code":"MT","name":"Montana"},{"code":"NE","name":"Nebraska"},{"code":"NV","name":"Nevada"},{"code":"NH","name":"New Hampshire"},{"code":"NJ","name":"New Jersey"},{"code":"NM","name":"New Mexico"},{"code":"NY","name":"New York"},{"code":"NC","name":"North Carolina"},{"code":"ND","name":"North Dakota"},{"code":"OH","name":"Ohio"},{"code":"OK","name":"Oklahoma"},{"code":"OR","name":"Oregon"},{"code":"PA","name":"Pennsylvania"},{"code":"RI","name":"Rhode Island"},{"code":"SC","name":"South Carolina"},{"code":"SD","name":"South Dakota"},{"code":"TN","name":"Tennessee"},{"code":"TX","name":"Texas"},{"code":"UT","name":"Utah"},{"code":"VT","name":"Vermont"},{"code":"VA","name":"Virginia"},{"code":"WA","name":"Washington"},{"code":"WV","name":"West Virginia"},{"code":"WI","name":"Wisconsin"},{"code":"WY","name":"Wyoming"},{"code":"AA","name":"Armed Forces (AA)"},{"code":"AE","name":"Armed Forces (AE)"},{"code":"AP","name":"Armed Forces (AP)"}]},{"code":"UM","name":"United States (US) Minor Outlying Islands","states":[{"code":81,"name":"Baker Island"},{"code":84,"name":"Howland Island"},{"code":86,"name":"Jarvis Island"},{"code":67,"name":"Johnston Atoll"},{"code":89,"name":"Kingman Reef"},{"code":71,"name":"Midway Atoll"},{"code":76,"name":"Navassa Island"},{"code":95,"name":"Palmyra Atoll"},{"code":79,"name":"Wake Island"}]},{"code":"UY","name":"Uruguay","states":[{"code":"UY-AR","name":"Artigas"},{"code":"UY-CA","name":"Canelones"},{"code":"UY-CL","name":"Cerro Largo"},{"code":"UY-CO","name":"Colonia"},{"code":"UY-DU","name":"Durazno"},{"code":"UY-FS","name":"Flores"},{"code":"UY-FD","name":"Florida"},{"code":"UY-LA","name":"Lavalleja"},{"code":"UY-MA","name":"Maldonado"},{"code":"UY-MO","name":"Montevideo"},{"code":"UY-PA","name":"Paysandú"},{"code":"UY-RN","name":"Río Negro"},{"code":"UY-RV","name":"Rivera"},{"code":"UY-RO","name":"Rocha"},{"code":"UY-SA","name":"Salto"},{"code":"UY-SJ","name":"San José"},{"code":"UY-SO","name":"Soriano"},{"code":"UY-TA","name":"Tacuarembó"},{"code":"UY-TT","name":"Treinta y Tres"}]},{"code":"UZ","name":"Uzbekistan","states":[]},{"code":"VU","name":"Vanuatu","states":[]},{"code":"VA","name":"Vatican","states":[]},{"code":"VN","name":"Vietnam","states":[]},{"code":"VG","name":"Virgin Islands (British)","states":[]},{"code":"VI","name":"Virgin Islands (US)","states":[]},{"code":"WF","name":"Wallis and Futuna","states":[]},{"code":"EH","name":"Western Sahara","states":[]},{"code":"ZM","name":"Zambia","states":[{"code":"ZM-01","name":"Western"},{"code":"ZM-02","name":"Central"},{"code":"ZM-03","name":"Eastern"},{"code":"ZM-04","name":"Luapula"},{"code":"ZM-05","name":"Northern"},{"code":"ZM-06","name":"North-Western"},{"code":"ZM-07","name":"Southern"},{"code":"ZM-08","name":"Copperbelt"},{"code":"ZM-09","name":"Lusaka"},{"code":"ZM-10","name":"Muchinga"}]}]'),T=JSON.parse('{"AED":"United Arab Emirates dirham (AED) (د.إ)","AFN":"Afghan afghani (AFN) (؋)","ALL":"Albanian lek (ALL) (L)","AMD":"Armenian dram (AMD) (AMD)","ANG":"Netherlands Antillean guilder (ANG) (ƒ)","AOA":"Angolan kwanza (AOA) (Kz)","ARS":"Argentine peso (ARS) ($)","AUD":"Australian dollar (AUD) ($)","AWG":"Aruban florin (AWG) (Afl.)","AZN":"Azerbaijani manat (AZN) (AZN)","BAM":"Bosnia and Herzegovina convertible mark (BAM) (KM)","BBD":"Barbadian dollar (BBD) ($)","BDT":"Bangladeshi taka (BDT) (৳ )","BGN":"Bulgarian lev (BGN) (лв.)","BHD":"Bahraini dinar (BHD) (.د.ب)","BIF":"Burundian franc (BIF) (Fr)","BMD":"Bermudian dollar (BMD) ($)","BND":"Brunei dollar (BND) ($)","BOB":"Bolivian boliviano (BOB) (Bs.)","BRL":"Brazilian real (BRL) (R$)","BSD":"Bahamian dollar (BSD) ($)","BTC":"Bitcoin (BTC) (฿)","BTN":"Bhutanese ngultrum (BTN) (Nu.)","BWP":"Botswana pula (BWP) (P)","BYR":"Belarusian ruble (old) (BYR) (Br)","BYN":"Belarusian ruble (BYN) (Br)","BZD":"Belize dollar (BZD) ($)","CAD":"Canadian dollar (CAD) ($)","CDF":"Congolese franc (CDF) (Fr)","CHF":"Swiss franc (CHF) (CHF)","CLP":"Chilean peso (CLP) ($)","CNY":"Chinese yuan (CNY) (¥)","COP":"Colombian peso (COP) ($)","CRC":"Costa Rican colón (CRC) (₡)","CUC":"Cuban convertible peso (CUC) ($)","CUP":"Cuban peso (CUP) ($)","CVE":"Cape Verdean escudo (CVE) ($)","CZK":"Czech koruna (CZK) (Kč)","DJF":"Djiboutian franc (DJF) (Fr)","DKK":"Danish krone (DKK) (kr.)","DOP":"Dominican peso (DOP) (RD$)","DZD":"Algerian dinar (DZD) (د.ج)","EGP":"Egyptian pound (EGP) (EGP)","ERN":"Eritrean nakfa (ERN) (Nfk)","ETB":"Ethiopian birr (ETB) (Br)","EUR":"Euro (EUR) (€)","FJD":"Fijian dollar (FJD) ($)","FKP":"Falkland Islands pound (FKP) (£)","GBP":"Pound sterling (GBP) (£)","GEL":"Georgian lari (GEL) (₾)","GGP":"Guernsey pound (GGP) (£)","GHS":"Ghana cedi (GHS) (₵)","GIP":"Gibraltar pound (GIP) (£)","GMD":"Gambian dalasi (GMD) (D)","GNF":"Guinean franc (GNF) (Fr)","GTQ":"Guatemalan quetzal (GTQ) (Q)","GYD":"Guyanese dollar (GYD) ($)","HKD":"Hong Kong dollar (HKD) ($)","HNL":"Honduran lempira (HNL) (L)","HRK":"Croatian kuna (HRK) (kn)","HTG":"Haitian gourde (HTG) (G)","HUF":"Hungarian forint (HUF) (Ft)","IDR":"Indonesian rupiah (IDR) (Rp)","ILS":"Israeli new shekel (ILS) (₪)","IMP":"Manx pound (IMP) (£)","INR":"Indian rupee (INR) (₹)","IQD":"Iraqi dinar (IQD) (د.ع)","IRR":"Iranian rial (IRR) (﷼)","IRT":"Iranian toman (IRT) (تومان)","ISK":"Icelandic króna (ISK) (kr.)","JEP":"Jersey pound (JEP) (£)","JMD":"Jamaican dollar (JMD) ($)","JOD":"Jordanian dinar (JOD) (د.ا)","JPY":"Japanese yen (JPY) (¥)","KES":"Kenyan shilling (KES) (KSh)","KGS":"Kyrgyzstani som (KGS) (сом)","KHR":"Cambodian riel (KHR) (៛)","KMF":"Comorian franc (KMF) (Fr)","KPW":"North Korean won (KPW) (₩)","KRW":"South Korean won (KRW) (₩)","KWD":"Kuwaiti dinar (KWD) (د.ك)","KYD":"Cayman Islands dollar (KYD) ($)","KZT":"Kazakhstani tenge (KZT) (₸)","LAK":"Lao kip (LAK) (₭)","LBP":"Lebanese pound (LBP) (ل.ل)","LKR":"Sri Lankan rupee (LKR) (රු)","LRD":"Liberian dollar (LRD) ($)","LSL":"Lesotho loti (LSL) (L)","LYD":"Libyan dinar (LYD) (ل.د)","MAD":"Moroccan dirham (MAD) (د.م.)","MDL":"Moldovan leu (MDL) (MDL)","MGA":"Malagasy ariary (MGA) (Ar)","MKD":"Macedonian denar (MKD) (ден)","MMK":"Burmese kyat (MMK) (Ks)","MNT":"Mongolian tögrög (MNT) (₮)","MOP":"Macanese pataca (MOP) (P)","MRU":"Mauritanian ouguiya (MRU) (UM)","MUR":"Mauritian rupee (MUR) (₨)","MVR":"Maldivian rufiyaa (MVR) (.ރ)","MWK":"Malawian kwacha (MWK) (MK)","MXN":"Mexican peso (MXN) ($)","MYR":"Malaysian ringgit (MYR) (RM)","MZN":"Mozambican metical (MZN) (MT)","NAD":"Namibian dollar (NAD) (N$)","NGN":"Nigerian naira (NGN) (₦)","NIO":"Nicaraguan córdoba (NIO) (C$)","NOK":"Norwegian krone (NOK) (kr)","NPR":"Nepalese rupee (NPR) (₨)","NZD":"New Zealand dollar (NZD) ($)","OMR":"Omani rial (OMR) (ر.ع.)","PAB":"Panamanian balboa (PAB) (B/.)","PEN":"Sol (PEN) (S/)","PGK":"Papua New Guinean kina (PGK) (K)","PHP":"Philippine peso (PHP) (₱)","PKR":"Pakistani rupee (PKR) (₨)","PLN":"Polish złoty (PLN) (zł)","PRB":"Transnistrian ruble (PRB) (р.)","PYG":"Paraguayan guaraní (PYG) (₲)","QAR":"Qatari riyal (QAR) (ر.ق)","RON":"Romanian leu (RON) (lei)","RSD":"Serbian dinar (RSD) (рсд)","RUB":"Russian ruble (RUB) (₽)","RWF":"Rwandan franc (RWF) (Fr)","SAR":"Saudi riyal (SAR) (ر.س)","SBD":"Solomon Islands dollar (SBD) ($)","SCR":"Seychellois rupee (SCR) (₨)","SDG":"Sudanese pound (SDG) (ج.س.)","SEK":"Swedish krona (SEK) (kr)","SGD":"Singapore dollar (SGD) ($)","SHP":"Saint Helena pound (SHP) (£)","SLL":"Sierra Leonean leone (SLL) (Le)","SOS":"Somali shilling (SOS) (Sh)","SRD":"Surinamese dollar (SRD) ($)","SSP":"South Sudanese pound (SSP) (£)","STN":"São Tomé and Príncipe dobra (STN) (Db)","SYP":"Syrian pound (SYP) (ل.س)","SZL":"Swazi lilangeni (SZL) (E)","THB":"Thai baht (THB) (฿)","TJS":"Tajikistani somoni (TJS) (ЅМ)","TMT":"Turkmenistan manat (TMT) (m)","TND":"Tunisian dinar (TND) (د.ت)","TOP":"Tongan paʻanga (TOP) (T$)","TRY":"Turkish lira (TRY) (₺)","TTD":"Trinidad and Tobago dollar (TTD) ($)","TWD":"New Taiwan dollar (TWD) (NT$)","TZS":"Tanzanian shilling (TZS) (Sh)","UAH":"Ukrainian hryvnia (UAH) (₴)","UGX":"Ugandan shilling (UGX) (UGX)","USD":"United States (US) dollar (USD) ($)","UYU":"Uruguayan peso (UYU) ($)","UZS":"Uzbekistani som (UZS) (UZS)","VEF":"Venezuelan bolívar (VEF) (Bs F)","VES":"Bolívar soberano (VES) (Bs.S)","VND":"Vietnamese đồng (VND) (₫)","VUV":"Vanuatu vatu (VUV) (Vt)","WST":"Samoan tālā (WST) (T)","XAF":"Central African CFA franc (XAF) (CFA)","XCD":"East Caribbean dollar (XCD) ($)","XOF":"West African CFA franc (XOF) (CFA)","XPF":"CFP franc (XPF) (Fr)","YER":"Yemeni rial (YER) (﷼)","ZAR":"South African rand (ZAR) (R)","ZMW":"Zambian kwacha (ZMW) (ZK)"}');var h=n(7282),A=n(682),B=n(1340),g=n(5736);const N=()=>{var e,a,n,N;const[M,G]=(0,d.useState)(),D=(0,t.s0)(),P=(0,c.useViewportMatch)("medium"),{setDrawerActiveView:b,setIsDrawerOpened:E,setIsDrawerSuppressed:R,setSidebarActiveView:K,setCurrentOnboardingData:L,setIsHeaderNavigationEnabled:p}=(0,m.useDispatch)(S.h);(0,d.useEffect)((()=>{K(r.Jq),b(r.dv),(async()=>{const e=await(0,h.e)();G(e)})()}),[]);const{currentData:O,newfoldBrand:U}=(0,m.useSelect)((e=>({currentData:e(S.h).getCurrentOnboardingData(),newfoldBrand:e(S.h).getNewfoldBrand()})),[]);(0,d.useEffect)((()=>{if(M){const a=["woocommerce_store_address","woocommerce_store_city","woocommerce_store_postcode","woocommerce_default_country","woocommerce_currency","woocommerce_email_from_address"],n=["woocommerce_default_country","woocommerce_currency"];if(null!==M&&void 0===O.storeDetails.address){var e;const o=(e=>{const a=["woocommerce_store_address","woocommerce_store_city","woocommerce_store_postcode"].every((a=>null===e[a]||""===e[a])),n=[["woocommerce_default_country","US:CA"],["woocommerce_currency","USD"]].every((a=>{let[n,o]=a;return e[n]===o}));return a&&n})(M),d={...M},c=(e=>{switch(e){case"crazy-domains":return{woocommerce_default_country:"AU:NSW",woocommerce_currency:"AUD"};case"bluehost-india":return{woocommerce_default_country:"IN:AP",woocommerce_currency:"INR"};default:return{woocommerce_default_country:"US:AZ",woocommerce_currency:"USD"}}})(U);for(const e of n)(null===d[e]||""===d[e]||o)&&(d[e]=c[e]);L({...O,storeDetails:{...O.storeDetails,address:{...null!==(e=O.storeDetails.address)&&void 0!==e?e:{},...a.reduce(((e,a)=>({...e,[a]:d[a]})),{})}}})}}}),[M,O.storeDetails,U]);const{address:y}=O.storeDetails,H={disabled:void 0===y,onChange:V,onBlur:V},I=null!==(e=null==y?void 0:y.woocommerce_default_country)&&void 0!==e?e:"",[k,w]=I.split(":"),Z=null!==(a=null==y?void 0:y.country)&&void 0!==a?a:k,v=null!==(n=null==C||null===(N=C.find((e=>e.code===Z)))||void 0===N?void 0:N.states)&&void 0!==n?n:[];function V(e){const a=e.target.name,n=e.target.value;let{country:o=Z,state:d}=y;o===k&&void 0===d&&(d=w),0===v.length&&(d="");let c="";["country","state"].includes(a)&&(c="country"===a?d?`${n}:${d}`:n:`${o}:${n}`),L({...O,storeDetails:{...O.storeDetails,address:{...O.storeDetails.address,[a]:n,...""!==c&&{woocommerce_default_country:c}}}})}const J={heading:(0,g.__)("Confirm your business or store address","wp-module-onboarding"),subheading:(0,g.__)("We’ll use this information to help you setup your online store","wp-module-onboarding"),countryInputLabel:(0,g.__)("Where is your store based?","wp-module-onboarding"),addressInputLabel:(0,g.__)("Address","wp-module-onboarding"),cityInputLabel:(0,g.__)("City","wp-module-onboarding"),stateInputLabel:(0,g.__)("State","wp-module-onboarding"),postalCodeInputLabel:(0,g.__)("Postal Code","wp-module-onboarding"),emailInputLabel:(0,g.__)("Email","wp-module-onboarding"),currencyInputLabel:(0,g.__)("What currency do you want to display in your store?","wp-module-onboarding"),requiredText:(0,g.__)("* required","wp-module-onboarding"),buttonText:(0,g.__)("Continue Setup","wp-module-onboarding")};return(0,d.createElement)(B.g,{navigationStateCallback:()=>{P&&E(!0),R(!1),p(!0)}},(0,d.createElement)(s.Z,{isBgPrimary:!0,isCentered:!0},(0,d.createElement)(u.Z,{className:"ecommerce-step nfd-ecommerce-address-step"},(0,d.createElement)("div",{className:"onboarding-ecommerce-step"},(0,d.createElement)("form",{className:"onboarding-ecommerce-step",onSubmit:e=>{e.preventDefault(),e.stopPropagation(),D("/ecommerce/step/tax")},style:{display:"grid",justifyItems:"center"}},(0,d.createElement)("div",{className:"nfd-card-heading center onboarding-ecommerce-step"},(0,d.createElement)(i.Z,{heading:J.heading,subHeading:J.subheading})),(0,d.createElement)(A.Z,{type:"fade-in-disabled",after:void 0!==y},(0,d.createElement)("div",{className:"store-address-form"},(0,d.createElement)("div",{"data-name":"country"},(0,d.createElement)("label",{"aria-required":!0,htmlFor:"country"},J.countryInputLabel),void 0===y?(0,d.createElement)("input",{id:"country",name:"country",type:"text",disabled:!0}):(0,d.createElement)("select",(0,o.Z)({type:"text",name:"country",required:!0,defaultValue:Z},H),C.map((e=>(0,d.createElement)("option",{key:e.code,value:e.code},e.name))))),(0,d.createElement)("div",{"data-name":"woocommerce_store_address"},(0,d.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_address"},J.addressInputLabel),(0,d.createElement)("input",(0,o.Z)({id:"woocommerce_store_address",name:"woocommerce_store_address",type:"text",required:!0,defaultValue:null==y?void 0:y.woocommerce_store_address},H))),(0,d.createElement)("div",{"data-name":"full-address","data-state-empty":0===v.length},(0,d.createElement)("div",{"data-name":"woocommerce_store_city"},(0,d.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_city"},J.cityInputLabel),(0,d.createElement)("input",(0,o.Z)({name:"woocommerce_store_city",id:"woocommerce_store_city",type:"text",required:!0,defaultValue:null==y?void 0:y.woocommerce_store_city},H))),0===v.length||void 0===y?null:(0,d.createElement)("div",{"data-name":"state"},(0,d.createElement)("label",{"aria-required":!0,htmlFor:"state"},J.stateInputLabel),(0,d.createElement)("select",(0,o.Z)({id:"state",type:"text",name:"state",required:!0,defaultValue:Z===k?w:""},H),(0,d.createElement)("option",{key:"",value:"",selected:!0}),v.map((e=>(0,d.createElement)("option",{key:e.code,value:e.code},e.name))))),(0,d.createElement)("div",{"data-name":"woocommerce_store_postcode"},(0,d.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_postcode"},J.postalCodeInputLabel),(0,d.createElement)("input",(0,o.Z)({id:"woocommerce_store_postcode",name:"woocommerce_store_postcode",type:"text",required:!0,defaultValue:null==y?void 0:y.woocommerce_store_postcode},H)))),(0,d.createElement)("div",null,(0,d.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_email_from_address"},J.emailInputLabel),(0,d.createElement)("input",(0,o.Z)({name:"woocommerce_email_from_address",id:"woocommerce_email_from_address",type:"email",required:!0,defaultValue:null==y?void 0:y.woocommerce_email_from_address},H))),(0,d.createElement)("div",null,(0,d.createElement)("label",{htmlFor:"woocommerce_currency"},J.currencyInputLabel),(0,d.createElement)("select",(0,o.Z)({id:"woocommerce_currency",type:"text",name:"woocommerce_currency",value:null==y?void 0:y.woocommerce_currency},H),Object.entries(T).map((e=>{let[a,n]=e;return(0,d.createElement)("option",{key:a,value:a,dangerouslySetInnerHTML:{__html:n}})})))),(0,d.createElement)("em",{style:{display:"inline"}},J.requiredText))),(0,d.createElement)("button",{className:"nfd-nav-card-button nfd-card-button",disabled:void 0===y,type:"submit"},J.buttonText)),(0,d.createElement)(l.Z,null)))))}},7282:(e,a,n)=>{n.d(a,{e:()=>d});var o=n(3768);async function d(){return await(0,o.pn)().catch((()=>({})))}}}]); \ No newline at end of file diff --git a/build/1.6.1/179.js b/build/1.7.0/179.js similarity index 95% rename from build/1.6.1/179.js rename to build/1.7.0/179.js index d72e1e258..72db3778b 100644 --- a/build/1.6.1/179.js +++ b/build/1.7.0/179.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[179],{7179:(e,n,i)=>{i.r(n),i.d(n,{default:()=>g});var t=i(9307),o=i(9818),a=i(4106),r=i(5736),l=i(1392),d=i(2322);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),g=()=>{var e,n,i;const{brandName:g,techSupportLink:m,fullServiceCreativeTeamLink:f,brandConfig:w}=(0,o.useSelect)((e=>({brandName:e(a.h).getNewfoldBrandName(),techSupportLink:e(a.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(a.h).getfullServiceCreativeTeamUrl(),brandConfig:e(a.h).getNewfoldBrandConfig()}))),v=((e,n,i)=>({introduction:{heading:(0,r.__)("What’s Next","wp-module-onboarding"),subheading:(0,r.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[179],{7179:(e,n,i)=>{i.r(n),i.d(n,{default:()=>g});var t=i(9307),o=i(9818),a=i(6831),r=i(5736),l=i(1392),d=i(2322);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),g=()=>{var e,n,i;const{brandName:g,techSupportLink:m,fullServiceCreativeTeamLink:f,brandConfig:w}=(0,o.useSelect)((e=>({brandName:e(a.h).getNewfoldBrandName(),techSupportLink:e(a.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(a.h).getfullServiceCreativeTeamUrl(),brandConfig:e(a.h).getNewfoldBrandConfig()}))),v=((e,n,i)=>({introduction:{heading:(0,r.__)("What’s Next","wp-module-onboarding"),subheading:(0,r.sprintf)( /* translators: 1: website 2: website */ (0,r.__)("The beginning of your %s journey is complete. We’re here to support your next steps and %s goals!","wp-module-onboarding"),(0,l.I)("website"),(0,l.I)("website")),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-what-next-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Add, adjust and launch!","wp-module-onboarding"),description:(0,r.sprintf)( /* translators: 1: site 2: Brand 3: site */ diff --git a/build/1.7.0/181.js b/build/1.7.0/181.js new file mode 100644 index 000000000..1ca35efe0 --- /dev/null +++ b/build/1.7.0/181.js @@ -0,0 +1,11 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[181],{4401:(e,t,r)=>{r.d(t,{V:()=>l});var a=r(9307),o=r(1996),n=r(4316),s=r(950);const l=e=>{let{title:t,subtitle:r,error:l}=e;return(0,a.createElement)(o.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,a.createElement)(n.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-error-state__logo"}),(0,a.createElement)("h3",{className:"step-error-state__error"},l),(0,a.createElement)(s.Z,null))}},9291:(e,t,r)=>{r.d(t,{L:()=>s,Y:()=>a.Z});var a=r(35),o=r(9307),n=r(682);const s=()=>(0,o.createElement)("div",{className:"image-upload-loader--loading-box"},(0,o.createElement)(n.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},1340:(e,t,r)=>{r.d(t,{U:()=>m,g:()=>b});var a=r(9307),o=r(9818),n=r(4333),s=r(5736),l=r(9291),i=r(6831),u=r(7625),d=r(2200),c=r(4401);var g=r(1589);const m=e=>{let{children:t,navigationStateCallback:r=!1}=e;const m=(0,n.useViewportMatch)("medium"),{storedThemeStatus:w,brandName:h}=(0,o.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),p=(e=>({loader:{title:(0,s.sprintf)( +/* 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 */ +(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")}}))(h),{updateThemeStatus:b,setIsDrawerOpened:f,setIsDrawerSuppressed:y,setIsHeaderNavigationEnabled:_}=(0,o.useDispatch)(i.h),S=async()=>{const e=await(0,u.YL)(d.DY);return null!=e&&e.error?d.vv:e.body.status},v=()=>{switch(w){case d.Rq:case d.GV:return(()=>{if("function"==typeof r)return r();m&&f(!0),y(!1),_(!0)})();default:f(!1),y(!0),_(!1)}};(0,a.useEffect)((()=>{v(),w===d.a0&&(async()=>{const e=await S();switch(e){case d.Zh:setTimeout((async()=>{if(await S()!==d.GV)return b(d.vv);window.location.reload()}),d.YU);break;case d.GV:window.location.reload();break;default:b(e)}})()}),[w]);const E=async()=>(b(d.Zh),(await(0,u.N9)(d.DY,!0,!1)).error?b(d.Rq):window.location.reload());return(0,a.createElement)(a.Fragment,null,(()=>{switch(w){case d.vv:return(0,a.createElement)(g.Z,{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:E,modalExitButtonText:(0,s.__)("Exit to WordPress","wp-module-onboarding")});case d.Rq:return(0,a.createElement)(c.V,{title:p.errorState.title,subtitle:p.errorState.subtitle,error:p.errorState.error});case d.GV:return t;default:return(0,a.createElement)(l.Y,{title:p.loader.title,subtitle:p.loader.subtitle})}})())};var w=r(3421),h=r(1392);var p=r(9884);const b=e=>{let{children:t,navigationStateCallback:r=!1}=e;const l=(0,n.useViewportMatch)("medium"),[u,g]=(0,a.useState)(d.Sr),{storedPluginsStatus:m,brandName:b}=(0,o.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),f=(e=>({errorState:{title:(0,s.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,s.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,h.I)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,s.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:y,setIsDrawerOpened:_,setIsDrawerSuppressed:S,setIsHeaderNavigationEnabled:v}=(0,o.useDispatch)(i.h),E=async()=>{const e=await(0,w.qC)(d.Gv);return null!=e&&e.error?d.sG:e.body.status},N=e=>{switch(e){case d.sG:case d.ye:return(()=>{if("function"==typeof r)return r();l&&_(!0),S(!1),v(!0)})();default:_(!1),S(!0),v(!1)}};(0,a.useEffect)((()=>{N(u)}),[u]);return(0,a.useEffect)((()=>{g(m[d.Gv]),m[d.Gv]===d.Ck&&(async e=>{const t=await E();switch(t){case d.Sr:setTimeout((async()=>{if(await E()!==d.ye)return m[d.Gv]=d.sG,y(m),g(d.sG);window.location.reload()}),d.sr);break;case d.ye:window.location.reload();break;default:e[d.Gv]=t,g(t),y(e)}})(m)}),[m]),(0,a.createElement)(a.Fragment,null,(()=>{switch(u){case d.sG:return(0,a.createElement)(c.V,{title:f.errorState.title,subtitle:f.errorState.subtitle,error:f.errorState.error});case d.ye:return t;default:return(0,a.createElement)(p.Z,null)}})())}},4181:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var a=r(9307),o=r(6831),n=r(9818),s=r(9250),l=r(5736),i=r(1392);var u=r(7533),d=r(9291),c=r(3421),g=r(4401),m=r(1340),w=r(2200);const h=()=>{const{setIsDrawerSuppressed:e,setIsHeaderNavigationEnabled:t,setSidebarActiveView:r,updateThemeStatus:h,flushQueue:p}=(0,n.useDispatch)(o.h),b=(0,s.s0)(),[f,y]=(0,a.useState)(!1),{nextStep:_,brandName:S,currentData:v,isQueueEmpty:E,pluginInstallHash:N}=(0,n.useSelect)((e=>({nextStep:e(o.h).getNextStep(),brandName:e(o.h).getNewfoldBrandName(),currentData:e(o.h).getCurrentOnboardingData(),isQueueEmpty:e(o.h).isQueueEmpty(),pluginInstallHash:e(o.h).getPluginInstallHash()})),[]),k=(e=>({loader:{title:(0,l.sprintf)( +/* translators: 1: Brand 2: site */ +(0,l.__)("Hang tight, we’re building your %s %s","wp-module-onboarding"),e,(0,i.I)("site")),subtitle:(0,l.__)("We’re assembling your unique design and installing useful tools","wp-module-onboarding")},errorState:{title:(0,l.sprintf)( +/* translators: 1: Brand 2: site */ +(0,l.__)("Hang tight, we’re building your %s %s","wp-module-onboarding"),e,(0,i.I)("site")),subtitle:(0,l.__)("We’re assembling your unique design and installing useful tools","wp-module-onboarding"),error:(0,l.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(S);async function G(){const e=await(0,u.BN)();return null==e||!e.error}async function I(){var e,t;if(Array.isArray(null==v||null===(e=v.data)||void 0===e?void 0:e.siteFeatures))return!0;const r=await(0,c.uc)(N,{plugins:null==v||null===(t=v.data)||void 0===t?void 0:t.siteFeatures});return null==r||!r.error}return(0,a.useEffect)((()=>{E?(async()=>{await Promise.all([G(),I()]).then((e=>e.forEach((e=>{if(!e)return t(!0),y(!0)})))),b(_.path),h(w.a0)})():p()}),[E]),(0,a.createElement)(m.U,{navigationStateCallback:()=>{t(!1),e(!0),r(!1)}},f?(0,a.createElement)(g.V,{title:k.errorState.title,subtitle:k.errorState.subtitle,error:k.errorState.error}):(0,a.createElement)(d.Y,{title:k.loader.title,subtitle:k.loader.subtitle}))}}}]); \ No newline at end of file diff --git a/build/1.7.0/187.js b/build/1.7.0/187.js new file mode 100644 index 000000000..6d03b2a1a --- /dev/null +++ b/build/1.7.0/187.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[187],{7187:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var s=r(9307),a=r(9818),i=r(1996),n=r(4316),c=r(2200),l=r(6831),u=r(4333);const d=()=>{const e=(0,u.useViewportMatch)("medium"),{setIsDrawerOpened:t,setDrawerActiveView:r,setSidebarActiveView:d,setIsDrawerSuppressed:o}=(0,a.useDispatch)(l.h);return(0,s.useEffect)((()=>{e&&t(!0),d(c.Jq),o(!1),r(c.BP)}),[]),(0,s.createElement)(i.Z,{isVerticallyCentered:!0},(0,s.createElement)(n.Z,{title:"Error 404",subtitle:"Please Check Again!"}))}}}]); \ No newline at end of file diff --git a/build/1.7.0/193.js b/build/1.7.0/193.js new file mode 100644 index 000000000..2196ca8ed --- /dev/null +++ b/build/1.7.0/193.js @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[193],{4401:(e,t,a)=>{a.d(t,{V:()=>i});var r=a(9307),o=a(1996),n=a(4316),s=a(950);const i=e=>{let{title:t,subtitle:a,error:i}=e;return(0,r.createElement)(o.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(n.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},i),(0,r.createElement)(s.Z,null))}},9291:(e,t,a)=>{a.d(t,{L:()=>s,Y:()=>r.Z});var r=a(35),o=a(9307),n=a(682);const s=()=>(0,o.createElement)("div",{className:"image-upload-loader--loading-box"},(0,o.createElement)(n.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},1340:(e,t,a)=>{a.d(t,{U:()=>m,g:()=>b});var r=a(9307),o=a(9818),n=a(4333),s=a(5736),i=a(9291),l=a(6831),u=a(7625),d=a(2200),c=a(4401);var h=a(1589);const m=e=>{let{children:t,navigationStateCallback:a=!1}=e;const m=(0,n.useViewportMatch)("medium"),{storedThemeStatus:g,brandName:w}=(0,o.useSelect)((e=>({storedThemeStatus:e(l.h).getThemeStatus(),brandName:e(l.h).getNewfoldBrandName()})),[]),p=(e=>({loader:{title:(0,s.sprintf)( +/* 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 */ +(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:b,setIsDrawerOpened:f,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:y}=(0,o.useDispatch)(l.h),_=async()=>{const e=await(0,u.YL)(d.DY);return null!=e&&e.error?d.vv:e.body.status},S=()=>{switch(g){case d.Rq:case d.GV:return(()=>{if("function"==typeof a)return a();m&&f(!0),v(!1),y(!0)})();default:f(!1),v(!0),y(!1)}};(0,r.useEffect)((()=>{S(),g===d.a0&&(async()=>{const e=await _();switch(e){case d.Zh:setTimeout((async()=>{if(await _()!==d.GV)return b(d.vv);window.location.reload()}),d.YU);break;case d.GV:window.location.reload();break;default:b(e)}})()}),[g]);const E=async()=>(b(d.Zh),(await(0,u.N9)(d.DY,!0,!1)).error?b(d.Rq):window.location.reload());return(0,r.createElement)(r.Fragment,null,(()=>{switch(g){case d.vv:return(0,r.createElement)(h.Z,{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:E,modalExitButtonText:(0,s.__)("Exit to WordPress","wp-module-onboarding")});case d.Rq:return(0,r.createElement)(c.V,{title:p.errorState.title,subtitle:p.errorState.subtitle,error:p.errorState.error});case d.GV:return t;default:return(0,r.createElement)(i.Y,{title:p.loader.title,subtitle:p.loader.subtitle})}})())};var g=a(3421),w=a(1392);var p=a(9884);const b=e=>{let{children:t,navigationStateCallback:a=!1}=e;const i=(0,n.useViewportMatch)("medium"),[u,h]=(0,r.useState)(d.Sr),{storedPluginsStatus:m,brandName:b}=(0,o.useSelect)((e=>({storedPluginsStatus:e(l.h).getPluginsStatus(),brandName:e(l.h).getNewfoldBrandName()})),[]),f=(e=>({errorState:{title:(0,s.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,s.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,w.I)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,s.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:v,setIsDrawerOpened:y,setIsDrawerSuppressed:_,setIsHeaderNavigationEnabled:S}=(0,o.useDispatch)(l.h),E=async()=>{const e=await(0,g.qC)(d.Gv);return null!=e&&e.error?d.sG:e.body.status},k=e=>{switch(e){case d.sG:case d.ye:return(()=>{if("function"==typeof a)return a();i&&y(!0),_(!1),S(!0)})();default:y(!1),_(!0),S(!1)}};(0,r.useEffect)((()=>{k(u)}),[u]);return(0,r.useEffect)((()=>{h(m[d.Gv]),m[d.Gv]===d.Ck&&(async e=>{const t=await E();switch(t){case d.Sr:setTimeout((async()=>{if(await E()!==d.ye)return m[d.Gv]=d.sG,v(m),h(d.sG);window.location.reload()}),d.sr);break;case d.ye:window.location.reload();break;default:e[d.Gv]=t,h(t),v(e)}})(m)}),[m]),(0,r.createElement)(r.Fragment,null,(()=>{switch(u){case d.sG:return(0,r.createElement)(c.V,{title:f.errorState.title,subtitle:f.errorState.subtitle,error:f.errorState.error});case d.ye:return t;default:return(0,r.createElement)(p.Z,null)}})())}},3193:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var r=a(9307),o=a(9250),n=a(9818),s=a(6138),i=a(6831),l=a(1996),u=a(2200),d=a(4316),c=a(1340),h=a(6332);const m=()=>{var e;const t=["yith-wonder/homepage-1","yith-wonder/homepage-2","yith-wonder/homepage-3"],a={"homepage-1":["yith-wonder/site-header-left-logo-navigation-inline","yith-wonder/homepage-1","yith-wonder/site-footer"],"homepage-2":["yith-wonder/site-header-left-logo-navigation-inline","yith-wonder/homepage-2","yith-wonder/site-footer"],"homepage-3":["yith-wonder/site-header-left-logo-navigation-inline","yith-wonder/homepage-3","yith-wonder/site-footer"]},m=(0,o.TH)(),[g,w]=(0,r.useState)(),[p,b]=(0,r.useState)(0),{currentStep:f,currentData:v,themeStatus:y,themeVariations:_}=(0,n.useSelect)((e=>({currentStep:e(i.h).getStepFromPath(m.pathname),currentData:e(i.h).getCurrentOnboardingData(),themeStatus:e(i.h).getThemeStatus(),themeVariations:e(i.h).getStepPreviewData()})),[]),{setDrawerActiveView:S,setSidebarActiveView:E,setCurrentOnboardingData:k,updateThemeStatus:N}=(0,n.useDispatch)(i.h);return(0,r.useEffect)((()=>{E(u.Jq),S(u.Yl)}),[]),(0,r.useEffect)((()=>{y===u.GV&&async function(){const e=await(0,s.C)(f.patternId);if(null!=e&&e.error)return N(u.a0);""!==(null==v?void 0:v.data.sitePages.homepage)?b(null==t?void 0:t.indexOf(null==v?void 0:v.data.sitePages.homepage)):(v.data.sitePages={...v.data.sitePages,homepage:t[0]},k(v)),w(function(e){const t=[];for(const r in a){const o=a[r];(v.data.partHeader||""!==v.data.partHeader)&&(o[0]=v.data.partHeader);let n="";o.forEach((t=>{null==e||e.body.forEach((e=>{e.slug===t&&(n+=e.content)}))})),t.push(n)}return t}(e))}()}),[y]),(0,r.createElement)(c.U,null,(0,r.createElement)(h.V3,null,(0,r.createElement)(l.Z,null,(0,r.createElement)("div",{className:"homepage_preview"},(0,r.createElement)(d.Z,{title:null==f?void 0:f.heading,subtitle:null==f?void 0:f.subheading}),(0,r.createElement)("div",{className:"homepage_preview__list"},(0,r.createElement)(h.r9,{watch:g,count:null===(e=_[null==f?void 0:f.patternId])||void 0===e?void 0:e.previewCount,callback:function(){return null==g?void 0:g.map(((e,a)=>e?(0,r.createElement)(h.H,{key:a,className:"homepage_preview__list__item",selected:a===p,blockGrammer:e,viewportWidth:1200,styling:"custom",overlay:!1,onClick:()=>function(e){b(e),v.data.sitePages={...v.data.sitePages,homepage:t[e]},k(v)}(a)}):null))},className:"homepage_preview__list__item",viewportWidth:1200}))))))}}}]); \ No newline at end of file diff --git a/build/1.7.0/216.js b/build/1.7.0/216.js new file mode 100644 index 000000000..f2e7d9afd --- /dev/null +++ b/build/1.7.0/216.js @@ -0,0 +1,5 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[216],{1211:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(9307),o=n(9250),i=n(9818),s=n(6831);const r=e=>{let{text:t,handleClick:n,disabled:o,className:i}=e;return(0,a.createElement)("button",{type:"button",className:`${i} nfd-card-button`,onClick:()=>{n()},disabled:o},t)};var l=n(7533),d=n(2200);const c=e=>{let{text:t,disabled:n}=e;const c=(0,o.s0)(),m=(0,o.TH)(),{nextStep:u,currentData:b}=(0,i.useSelect)((e=>({nextStep:e(s.h).getNextStep(),currentData:e(s.h).getCurrentOnboardingData()})),[m.path]),p=null===u||!1===u;return(0,a.createElement)(r,{className:"nfd-nav-card-button",text:t,handleClick:()=>p?async function(){b&&(b.isComplete=(new Date).getTime(),(0,l.kB)(b));const e="ecommerce"===window.nfdOnboarding.currentFlow?d.br:d.hF;window.location.replace(e)}():c(u.path),disabled:n})}},9519:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(9307);const o=(0,a.memo)((e=>{let{heading:t,subHeading:n,question:o}=e;return(0,a.createElement)("div",null,t&&(0,a.createElement)("h2",{className:"nfd-step-card-heading"},t),n&&(0,a.createElement)("h3",{className:o?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),o&&(0,a.createElement)("h3",{className:"nfd-step-card-question"},o))}))},349:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(9307),o=(n(5736),n(4184)),i=n.n(o);const s=e=>{let{className:t="",children:n}=e;return(0,a.createElement)("div",{className:i()("nfd-onboarding-large-card",t)},n)}},2452:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(9307),o=n(682);const i=e=>{let{title:t,text:n,imgType:i,className:s,animationName:r}=e;return(0,a.createElement)("div",{className:s},(0,a.createElement)("div",{className:"tab-text"},(0,a.createElement)("h4",null,t),n),(0,a.createElement)("div",{className:"tab-image"},(0,a.createElement)("div",{className:"tab-img"},(0,a.createElement)(o.Z,{type:r},(0,a.createElement)("div",{className:i})))))}},1056:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(7462),o=n(9307),i=(n(4184),n(2819)),s=n(4333),r=n(9630),l=n(5904);const d=()=>{},c=["menuitem","menuitemradio","menuitemcheckbox"];class m extends o.Component{constructor(){super(...arguments),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}componentWillUnmount(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){const{onlyBrowserTabstops:t}=this.props,n=(t?l.focus.tabbable:l.focus.focusable).find(this.container),a=this.getFocusableIndex(n,e);return a>-1&&e?{index:a,target:e,focusables:n}:null}getFocusableIndex(e,t){const n=e.indexOf(t);if(-1!==n)return n}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:a,onNavigate:o=d,stopNavigationEvents:i}=this.props,s=a(e);if(void 0!==s&&i){e.stopImmediatePropagation();const t=e.target.getAttribute("role");c.includes(t)&&e.preventDefault()}if(!s)return;const r=t(e.target.ownerDocument.activeElement);if(!r)return;const{index:l,focusables:m}=r,u=n?function(e,t,n){const a=e+n;return a<0?t+a:a>=t?a-t:a}(l,m.length,s):l+s;u>=0&&u(0,o.createElement)(m,(0,a.Z)({},e,{forwardedRef:t}));u.displayName="NavigableContainer";const b=(0,o.forwardRef)(u),p=(0,o.forwardRef)((function(e,t){let{role:n="menu",orientation:s="vertical",...l}=e;return(0,o.createElement)(b,(0,a.Z)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:n,"aria-orientation":"presentation"===n?null:s,eventToOffset:e=>{const{keyCode:t}=e;let n=[r.DOWN],a=[r.UP];return"horizontal"===s&&(n=[r.RIGHT],a=[r.LEFT]),"both"===s&&(n=[r.RIGHT,r.DOWN],a=[r.LEFT,r.UP]),(0,i.includes)(n,t)?1:(0,i.includes)(a,t)?-1:(0,i.includes)([r.DOWN,r.UP,r.LEFT,r.RIGHT],t)?0:void 0}},l))}));(0,o.forwardRef)((function(e,t){let{eventToOffset:n,...i}=e;return(0,o.createElement)(b,(0,a.Z)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:e=>{const{keyCode:t,shiftKey:a}=e;return r.TAB===t?a?-1:1:n?n(e):void 0}},i))}));var g=n(5609);const h=()=>{},f=e=>{let{tabId:t,onClick:n,children:i,selected:s,...r}=e;return(0,o.createElement)(g.Button,(0,a.Z)({role:"tab",tabIndex:s?null:-1,"aria-selected":s,id:t,onClick:n},r),i)};function v(e){var t;let{className:n,children:a,tabs:r,initialTabName:l,orientation:d="horizontal",activeClass:c="is-active",notActiveClass:m="is-not-active",onSelect:u=h}=e;const b=(0,s.useInstanceId)(v,"tab-panel"),[g,w]=(0,o.useState)(null),E=e=>{w(e),u(e)},N=(0,i.find)(r,{name:g}),y=`${b}-${null!==(t=null==N?void 0:N.name)&&void 0!==t?t:"none"}`;return(0,o.useEffect)((()=>{(0,i.find)(r,{name:g})||w(l||(r.length>0?r[0].name:null))}),[r]),(0,o.createElement)("div",{className:n},(0,o.createElement)(p,{role:"tablist",orientation:d,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},r.map((e=>(0,o.createElement)(f,{className:`components-tab-panel__tabs-item ${e.name===g&&c} ${e.name!==g&&m}`,tabId:`${b}-${e.name}`,"aria-controls":`${b}-${e.name}-view`,selected:e.name===g,key:e.name,onMouseOver:(0,i.partial)(E,e.name)},e.title)))),N&&(0,o.createElement)("div",{key:y,"aria-labelledby":y,role:"tabpanel",id:`${y}-view`,className:"components-tab-panel__tab-content"},a(N)))}},3216:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var a=n(9307),o=n(9818),i=n(1996),s=n(349),r=n(9519),l=n(1211),d=n(2452),c=n(1056),m=n(6831),u=n(2200),b=n(1392),p=n(5736);const g=()=>{const{setIsDrawerOpened:e,setSidebarActiveView:t,setIsHeaderNavigationEnabled:n}=(0,o.useDispatch)(m.h);(0,a.useEffect)((()=>{e(!1),t(u.Jq),n(!0)}),[]);const{brandName:g}=(0,o.useSelect)((e=>({brandName:e(m.h).getNewfoldBrandName()}))),h=(e=>({heading:(0,p.__)("Nice work: Your site is ready 🎉","wp-module-onboarding"),subheading:(0,p.__)("Move-in day begins! Let us know if you'd like a hand.","wp-module-onboarding"),buttonText:(0,p.__)("Complete Setup","wp-module-onboarding"),tabs:[{name:(0,p.__)("tab1","wp-module-onboarding"),title:(0,p.__)("WHATS NEXT","wp-module-onboarding"),subtitle:(0,p.__)("Add content, organize your menu and launch.","wp-module-onboarding"),text:(0,p.sprintf)( +/* translators: %s: Brand */ +(0,p.__)("✅ Theme created, features added and Coming Soon mode activated. Thank you for building your site with %s, we're always here to help!","wp-module-onboarding"),e),imgType:"img-1",animationName:"fade-in-right"},{name:(0,p.__)("tab2","wp-module-onboarding"),title:(0,p.__)("HELP & RESOURCES","wp-module-onboarding"),subtitle:(0,p.__)("Next step or next level, we're your partner.","wp-module-onboarding"),text:(0,p.sprintf)( +/* translators: %s: Site */ +(0,p.__)("WordPress make it easy to grow your %s. Send a newsletter, broadcast a podcast, create courses and trainings. Dream it, build it.","wp-module-onboarding"),(0,b.I)("site")),imgType:"img-2",animationName:"fade-in-up"},{name:(0,p.__)("tab3","wp-module-onboarding"),title:(0,p.__)("HIRE OUR EXPERTS","wp-module-onboarding"),subtitle:(0,p.__)("Make our great people your people.","wp-module-onboarding"),text:(0,p.__)("Looking for personalized WordPress assistance, or someone to take-over from here? Go beyond support with our professional services.","wp-module-onboarding"),imgType:"img-3",animationName:"fade-in-left"}]}))(g);return(0,a.createElement)(i.Z,{isCentered:!0,isBgPrimary:!0},(0,a.createElement)(s.Z,null,(0,a.createElement)("div",{className:"whatnext-card"},(0,a.createElement)(r.Z,{heading:h.heading,subHeading:h.subheading}),(0,a.createElement)(c.Z,{className:"nfd-onboarding-overview__tab-panel",tabs:h.tabs.map((e=>({name:e.name,title:e.title,content:(0,a.createElement)(d.Z,{title:e.subtitle,text:e.text,imgType:e.imgType,animationName:e.animationName,className:"tab-data"})})))},(e=>(0,a.createElement)("div",null,e.content))),(0,a.createElement)(l.Z,{text:h.buttonText}))))}}}]); \ No newline at end of file diff --git a/build/1.7.0/253.js b/build/1.7.0/253.js new file mode 100644 index 000000000..581606a61 --- /dev/null +++ b/build/1.7.0/253.js @@ -0,0 +1,9 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[253],{1211:(e,a,t)=>{t.d(a,{Z:()=>d});var n=t(9307),s=t(9250),l=t(9818),r=t(6831);const i=e=>{let{text:a,handleClick:t,disabled:s,className:l}=e;return(0,n.createElement)("button",{type:"button",className:`${l} nfd-card-button`,onClick:()=>{t()},disabled:s},a)};var o=t(7533),u=t(2200);const d=e=>{let{text:a,disabled:t}=e;const d=(0,s.s0)(),c=(0,s.TH)(),{nextStep:p,currentData:y}=(0,l.useSelect)((e=>({nextStep:e(r.h).getNextStep(),currentData:e(r.h).getCurrentOnboardingData()})),[c.path]),m=null===p||!1===p;return(0,n.createElement)(i,{className:"nfd-nav-card-button",text:a,handleClick:()=>m?async function(){y&&(y.isComplete=(new Date).getTime(),(0,o.kB)(y));const e="ecommerce"===window.nfdOnboarding.currentFlow?u.br:u.hF;window.location.replace(e)}():d(p.path),disabled:t})}},9519:(e,a,t)=>{t.d(a,{Z:()=>s});var n=t(9307);const s=(0,n.memo)((e=>{let{heading:a,subHeading:t,question:s}=e;return(0,n.createElement)("div",null,a&&(0,n.createElement)("h2",{className:"nfd-step-card-heading"},a),t&&(0,n.createElement)("h3",{className:s?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},t),s&&(0,n.createElement)("h3",{className:"nfd-step-card-question"},s))}))},349:(e,a,t)=>{t.d(a,{Z:()=>r});var n=t(9307),s=(t(5736),t(4184)),l=t.n(s);const r=e=>{let{className:a="",children:t}=e;return(0,n.createElement)("div",{className:l()("nfd-onboarding-large-card",a)},t)}},2253:(e,a,t)=>{t.r(a),t.d(a,{default:()=>g});var n=t(9307),s=t(1996),l=t(349),r=t(2200),i=t(5521),o=t(6831),u=t(9818),d=t(9519),c=t(1211),p=t(950),y=t(682),m=t(6557);const g=()=>{var e,a;const{setDrawerActiveView:t,setSidebarActiveView:g,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:b,setCurrentOnboardingData:h}=(0,u.useDispatch)(o.h);(0,n.useEffect)((()=>{g(r.Jq),v(!0),t(r.mz),b(!0),D()}),[]);const f=(0,i.Z)(),[T,w]=(0,n.useState)(!1),[E,_]=(0,n.useState)(),[N,k]=(0,n.useState)(),[C,x]=(0,n.useState)(),[I,S]=(0,n.useState)(""),{currentData:O}=(0,u.useSelect)((e=>({currentData:e(o.h).getCurrentOnboardingData()})),[]),D=async()=>{var e,a,t,n,s,l,r,i,o,u,d,c,p,y,g,v,b;const f=await(0,m.P)(),T=Object.keys(null==f||null===(e=f.body)||void 0===e?void 0:e.types)[0];let w;var E,N,C,I,D,R,q,A,F,H,P,j,B,U,K,L;if(x(T),_(null==f?void 0:f.body),"ecommerce"===(null===(a=window)||void 0===a||null===(t=a.nfdOnboarding)||void 0===t?void 0:t.currentFlow)?(w=["business"],"business"!==(null==O||null===(E=O.data)||void 0===E||null===(N=E.siteType)||void 0===N||null===(C=N.primary)||void 0===C?void 0:C.value)&&(O.data.siteType.primary={refers:"slug",value:"business"})):w=Object.keys(null==f||null===(I=f.body)||void 0===I?void 0:I.types),k(w),"string"==typeof(null==O||null===(n=O.data)||void 0===n||null===(s=n.siteType)||void 0===s?void 0:s.primary)){var $,J;const e=null==O||null===($=O.data)||void 0===$||null===(J=$.siteType)||void 0===J?void 0:J.primary;O.data.siteType.primary={refers:"custom",value:e},h(O)}if("string"==typeof(null==O||null===(l=O.data)||void 0===l||null===(r=l.siteType)||void 0===r?void 0:r.secondary)){var M,V;const e=null==O||null===(M=O.data)||void 0===M||null===(V=M.siteType)||void 0===V?void 0:V.secondary;O.data.siteType.secondary={refers:"custom",value:e},h(O)}(S(null!==(i=null==O||null===(o=O.data)||void 0===o||null===(u=o.siteType)||void 0===u||null===(d=u.secondary)||void 0===d?void 0:d.value)&&void 0!==i?i:""),""!==(null==O||null===(c=O.data)||void 0===c||null===(p=c.siteType)||void 0===p||null===(y=p.primary)||void 0===y?void 0:y.value))&&("custom"!==(null==O||null===(A=O.data)||void 0===A||null===(F=A.siteType)||void 0===F||null===(H=F.primary)||void 0===H?void 0:H.refers)?x(null==O||null===(P=O.data)||void 0===P||null===(j=P.siteType)||void 0===j||null===(B=j.primary)||void 0===B?void 0:B.value):(x(T),Z(null==O||null===(U=O.data)||void 0===U||null===(K=U.siteType)||void 0===K||null===(L=K.secondary)||void 0===L?void 0:L.value)));"custom"===(null==O||null===(g=O.data)||void 0===g||null===(v=g.siteType)||void 0===v||null===(b=v.secondary)||void 0===b?void 0:b.refers)&&Z(null==O||null===(D=O.data)||void 0===D||null===(R=D.siteType)||void 0===R||null===(q=R.secondary)||void 0===q?void 0:q.value)},Z=e=>{w(!0),S(e),O.data.siteType.secondary.refers="custom",O.data.siteType.secondary.value=e,h(O)},R=e=>{w(!1),S(e),O.data.siteType.primary.refers="slug",O.data.siteType.secondary.refers="slug",O.data.siteType.primary.value=C,O.data.siteType.secondary.value=e,h(O)},q=e=>{const a=N.findIndex((e=>C===e));switch(e){case"back":x(N[(a-1+N.length)%N.length]);break;case"next":x(N[(a+1)%N.length])}};return(0,n.createElement)(s.Z,{isBgPrimary:!0,isCentered:!0},(0,n.createElement)(l.Z,null,(0,n.createElement)("div",{className:"nfd-card-heading center"},(0,n.createElement)(d.Z,{heading:f.heading,subHeading:f.subheading,question:f.question})),(0,n.createElement)(y.Z,{type:"fade-in-disabled",after:E},(0,n.createElement)("div",{className:"nfd-setup-secondary-categories"},(0,n.createElement)("div",{className:"nfd-card-sec-category-wrapper"},E&&(0,n.createElement)("div",{className:"category-scrolling-wrapper"},N&&N.length>1&&(0,n.createElement)("div",{className:"category-scrolling-wrapper__left-btn"},(0,n.createElement)("span",{className:"category-scrolling-wrapper__left-btn-icon",onClick:()=>q("back"),onKeyUp:()=>q("back"),role:"button",tabIndex:0,style:{backgroundImage:"var(--chevron-left-icon)"}})),(0,n.createElement)("div",{className:"category-scrolling-wrapper__type"},(0,n.createElement)("span",{className:"category-scrolling-wrapper__type-icon",style:{backgroundImage:`url(${null==E||null===(e=E.types[C])||void 0===e?void 0:e.icon})`}}),(0,n.createElement)("p",{className:"category-scrolling-wrapper__type-text"},` ${null==E||null===(a=E.types[C])||void 0===a?void 0:a.label}`)),N&&N.length>1&&(0,n.createElement)("div",{className:"category-scrolling-wrapper__right-btn"},(0,n.createElement)("span",{className:"category-scrolling-wrapper__right-btn-icon",onClick:()=>q("next"),onKeyUp:()=>q("next"),role:"button",tabIndex:0,style:{backgroundImage:"var(--chevron-right-icon)"}})))),(0,n.createElement)("div",{className:"subCategoriesSection"},E&&(()=>{var e;const a=null==E||null===(e=E.types[C])||void 0===e?void 0:e.secondaryTypes;return Object.keys(a).map(((e,t)=>{var s,l;return(0,n.createElement)("div",{key:null===(s=a[e])||void 0===s?void 0:s.slug,role:"button",tabIndex:t+1,className:(a[e].slug!==I||T?"":"chosenSecondaryCategory ")+"nfd-card-sec-category",onClick:()=>R(a[e].slug),onKeyDown:()=>R(a[e].slug)},(0,n.createElement)("span",{className:"categName"},null===(l=a[e])||void 0===l?void 0:l.label))}))})()),(0,n.createElement)("div",{className:"nfd-setup-primary-custom"},(0,n.createElement)("div",{className:"nfd-setup-primary-custom__tellus-text"},f.customInputLabel),(0,n.createElement)("input",{type:"search",onChange:e=>{var a;return Z(null==e||null===(a=e.target)||void 0===a?void 0:a.value)},className:"nfd-setup-primary-custom__tellus-input",placeholder:f.customInputPlaceholderText,value:T?I:""})))),(0,n.createElement)(c.Z,{text:f.buttonText}),(0,n.createElement)(p.Z,null)))}},5521:(e,a,t)=>{t.d(a,{Z:()=>l});var n=t(5736),s=t(1392);const l=()=>({heading:(0,n.sprintf)( +/* translators: %s: site */ +(0,n.__)("Help us tailor this setup to your %s","wp-module-onboarding"),(0,s.I)("site")),subheading:(0,n.sprintf)( +/* translators: %s: SITE */ +(0,n.__)("ABOUT YOUR %s","wp-module-onboarding"),(0,s.I)("SITE")),question:(0,n.sprintf)( +/* translators: %s: site */ +(0,n.__)("What type of %s is it?","wp-module-onboarding"),(0,s.I)("site")),buttonText:(0,n.__)("Continue Setup","wp-module-onboarding"),customInputPlaceholderText:(0,n.sprintf)( +/* translators: %s: site */ +(0,n.__)("Enter to search your %s type","wp-module-onboarding"),(0,s.I)("site")),customInputLabel:(0,n.__)("or tell us here:","wp-module-onboarding")})},6557:(e,a,t)=>{t.d(a,{P:()=>o});var n=t(6329),s=t(4704);const l=JSON.parse('{"body":{"types":{"business":{"slug":"business","label":"Business","icon":"https://cdn.hiive.space/site-classification/business.svg","emoji":"💼","schema":"Corporation","secondaryTypes":{"agency-consulting":{"primaryType":"business","slug":"agency-consulting","label":"Agency & Consulting"},"arts-crafts":{"primaryType":"business","slug":"arts-crafts","label":"Arts & Crafts"},"autos-repair":{"primaryType":"business","slug":"autos-repair","label":"Autos & Repair"},"child-care":{"primaryType":"business","slug":"child-care","label":"Child Care"},"events":{"primaryType":"business","slug":"events","label":"Events"},"finance":{"primaryType":"business","slug":"finance","label":"Finance"},"garden-florist":{"primaryType":"business","slug":"garden-florist","label":"Florist & Garden Center"},"hr-recruiting":{"primaryType":"business","slug":"hr-recruiting","label":"HR & Recruiting"},"insurance":{"primaryType":"business","slug":"insurance","label":"Insurance"},"legal":{"primaryType":"business","slug":"legal","label":"Legal"},"marketing":{"primaryType":"business","slug":"marketing","label":"Marketing"},"outdoors":{"primaryType":"business","slug":"outdoors","label":"Outdoors"},"pr-communications":{"primaryType":"business","slug":"pr-communications","label":"PR & Communications"},"real-estate-management":{"primaryType":"business","slug":"real-estate-management","label":"Real Estate & Management"},"shopping-retail":{"primaryType":"business","slug":"shopping-retail","label":"Shopping & Retail"},"trades-repair-services":{"primaryType":"business","slug":"trades-repair-services","label":"Trades & Repair Services"},"weddings":{"primaryType":"business","slug":"weddings","label":"Weddings"}}}}}}');var r=t(6989),i=t.n(r);async function o(){const e=await(0,n.D)(i()({url:(0,s.F)("site-classification")}));return 0===e.body.length?l:e}}}]); \ No newline at end of file diff --git a/build/1.6.1/264.js b/build/1.7.0/264.js similarity index 94% rename from build/1.6.1/264.js rename to build/1.7.0/264.js index 05422c5d8..04c053f8c 100644 --- a/build/1.6.1/264.js +++ b/build/1.7.0/264.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[264],{5264:(e,n,i)=>{i.r(n),i.d(n,{default:()=>g});var t=i(9307),o=i(9818),l=i(4106),r=i(5736),a=i(1392),d=i(5430);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),g=()=>{var e,n,i;const{brandName:g,techSupportLink:f,fullServiceCreativeTeamLink:m,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(l.h).getNewfoldBrandName(),techSupportLink:e(l.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(l.h).getfullServiceCreativeTeamUrl(),brandConfig:e(l.h).getNewfoldBrandConfig()}))),w=((e,n,i)=>({introduction:{heading:(0,r.__)("Basic Info","wp-module-onboarding"),subheading:(0,r.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[264],{5264:(e,n,i)=>{i.r(n),i.d(n,{default:()=>g});var t=i(9307),o=i(9818),l=i(6831),r=i(5736),a=i(1392),d=i(5430);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),g=()=>{var e,n,i;const{brandName:g,techSupportLink:f,fullServiceCreativeTeamLink:m,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(l.h).getNewfoldBrandName(),techSupportLink:e(l.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(l.h).getfullServiceCreativeTeamUrl(),brandConfig:e(l.h).getNewfoldBrandConfig()}))),w=((e,n,i)=>({introduction:{heading:(0,r.__)("Basic Info","wp-module-onboarding"),subheading:(0,r.sprintf)( /* translators: %s: site */ (0,r.__)("Setup how your %s will present in visitors' browsers and search results.","wp-module-onboarding"),(0,a.I)("site")),icon:d.Z},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.sprintf)( /* translators: 1: Brand 2: Site */ diff --git a/build/1.6.1/27.js b/build/1.7.0/27.js similarity index 97% rename from build/1.6.1/27.js rename to build/1.7.0/27.js index 0f141cb3f..6b9d76aa1 100644 --- a/build/1.6.1/27.js +++ b/build/1.7.0/27.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[27],{7027:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(4106),l=i(5736),a=i(1392),s=i(6922);const d=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:f,brandConfig:m}=(0,o.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),w=((e,n)=>({introduction:{heading:(0,l.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[27],{7027:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(6831),l=i(5736),a=i(1392),s=i(6922);const d=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:f,brandConfig:m}=(0,o.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),w=((e,n)=>({introduction:{heading:(0,l.sprintf)( /* translators: %s: Site */ (0,l.__)("%s Type","wp-module-onboarding"),(0,a.I)("Site")),subheading:(0,l.sprintf)( /* translators: %s: site */ diff --git a/build/1.6.1/310.js b/build/1.7.0/310.js similarity index 98% rename from build/1.6.1/310.js rename to build/1.7.0/310.js index 1d323f07e..7054a4b02 100644 --- a/build/1.6.1/310.js +++ b/build/1.7.0/310.js @@ -1 +1 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[310],{6310:(e,a,l)=>{l.r(a),l.d(a,{default:()=>b});var t=l(9307),s=l(5609),r=l(444);const n=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var o=l(9818),i=l(5736),d=l(4106),m=l(2200),c=l(682);const h=()=>{var e,a,l;const{brandConfig:s}=(0,o.useSelect)((e=>({brandConfig:e(d.h).getNewfoldBrandConfig()})));return(0,t.createElement)("div",{className:"sidebar-skeleton"},(0,t.createElement)("div",{className:"sidebar-skeleton-header"},(0,t.createElement)("div",{className:"sidebar-skeleton-header-top"},(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-top-profile"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-top-header"})),(0,t.createElement)("div",{className:"sidebar-skeleton-header-below"},(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-below-subheading-1"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-below-subheading-2"}))),(0,t.createElement)("div",{className:"sidebar-skeleton-divider"}),!1!==(null==s||null===(e=s.views)||void 0===e||null===(a=e.sidebar)||void 0===a||null===(l=a.illustration)||void 0===l?void 0:l.shown)&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"sidebar-skeleton-body"},(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-body-image"})),(0,t.createElement)("div",{className:"sidebar-skeleton-divider"})),(0,t.createElement)("div",{className:"sidebar-skeleton-footer"},(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-1"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-2"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-3"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-4"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-5"}),(0,t.createElement)("div",{className:"sidebar-skeleton-footer-buttons"},(0,t.createElement)("div",{className:"sidebar-skeleton-footer-buttons-button-1"},(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer-1 sidebar-skeleton-footer-buttons-button-2"})),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer-1 sidebar-skeleton-footer-buttons-button-3"}))))},b=(0,t.memo)((()=>{var e,a;const{currentStep:l}=(0,o.useSelect)((e=>({currentStep:e(d.h).getCurrentStep()}))),{setIsSidebarOpened:r}=(0,o.useDispatch)(d.h);return(0,t.createElement)(s.Fill,{name:`${m.qB}/${m.Jq}`},(0,t.createElement)(s.PanelBody,{className:"nfd-onboarding-sidebar-learn-more",initialOpen:!0},(0,t.createElement)(t.Suspense,{fallback:(0,t.createElement)(h,null)},(0,t.createElement)(s.PanelHeader,{label:(0,i.__)("Learn More","wp-module-onboarding")},(0,t.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__header"},(0,t.createElement)(s.Button,{className:"nfd-onboarding-sidebar-learn-more__header__icon",onClick:()=>{r(!1)},icon:n}))),(null==l||null===(e=l.sidebars)||void 0===e?void 0:e.LearnMore)&&(null==l||null===(a=l.sidebars)||void 0===a?void 0:a.LearnMore.SidebarComponents.map(((e,a)=>(0,t.createElement)(t.Fragment,{key:a},(0,t.createElement)(e,null))))))))}))}}]); \ No newline at end of file +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[310],{6310:(e,a,l)=>{l.r(a),l.d(a,{default:()=>b});var t=l(9307),s=l(5609),r=l(444);const n=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var o=l(9818),i=l(5736),d=l(6831),m=l(2200),c=l(682);const h=()=>{var e,a,l;const{brandConfig:s}=(0,o.useSelect)((e=>({brandConfig:e(d.h).getNewfoldBrandConfig()})));return(0,t.createElement)("div",{className:"sidebar-skeleton"},(0,t.createElement)("div",{className:"sidebar-skeleton-header"},(0,t.createElement)("div",{className:"sidebar-skeleton-header-top"},(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-top-profile"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-top-header"})),(0,t.createElement)("div",{className:"sidebar-skeleton-header-below"},(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-below-subheading-1"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-below-subheading-2"}))),(0,t.createElement)("div",{className:"sidebar-skeleton-divider"}),!1!==(null==s||null===(e=s.views)||void 0===e||null===(a=e.sidebar)||void 0===a||null===(l=a.illustration)||void 0===l?void 0:l.shown)&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",{className:"sidebar-skeleton-body"},(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-body-image"})),(0,t.createElement)("div",{className:"sidebar-skeleton-divider"})),(0,t.createElement)("div",{className:"sidebar-skeleton-footer"},(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-1"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-2"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-3"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-4"}),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-5"}),(0,t.createElement)("div",{className:"sidebar-skeleton-footer-buttons"},(0,t.createElement)("div",{className:"sidebar-skeleton-footer-buttons-button-1"},(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer-1 sidebar-skeleton-footer-buttons-button-2"})),(0,t.createElement)(c.Z,{type:"shine-placeholder",className:"shimmer-1 sidebar-skeleton-footer-buttons-button-3"}))))},b=(0,t.memo)((()=>{var e,a;const{currentStep:l}=(0,o.useSelect)((e=>({currentStep:e(d.h).getCurrentStep()}))),{setIsSidebarOpened:r}=(0,o.useDispatch)(d.h);return(0,t.createElement)(s.Fill,{name:`${m.qB}/${m.Jq}`},(0,t.createElement)(s.PanelBody,{className:"nfd-onboarding-sidebar-learn-more",initialOpen:!0},(0,t.createElement)(t.Suspense,{fallback:(0,t.createElement)(h,null)},(0,t.createElement)(s.PanelHeader,{label:(0,i.__)("Learn More","wp-module-onboarding")},(0,t.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__header"},(0,t.createElement)(s.Button,{className:"nfd-onboarding-sidebar-learn-more__header__icon",onClick:()=>{r(!1)},icon:n}))),(null==l||null===(e=l.sidebars)||void 0===e?void 0:e.LearnMore)&&(null==l||null===(a=l.sidebars)||void 0===a?void 0:a.LearnMore.SidebarComponents.map(((e,a)=>(0,t.createElement)(t.Fragment,{key:a},(0,t.createElement)(e,null))))))))}))}}]); \ No newline at end of file diff --git a/build/1.6.1/33.js b/build/1.7.0/33.js similarity index 100% rename from build/1.6.1/33.js rename to build/1.7.0/33.js diff --git a/build/1.7.0/331.js b/build/1.7.0/331.js new file mode 100644 index 000000000..3c682d315 --- /dev/null +++ b/build/1.7.0/331.js @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[331],{4401:(e,t,r)=>{r.d(t,{V:()=>l});var a=r(9307),s=r(1996),o=r(4316),n=r(950);const l=e=>{let{title:t,subtitle:r,error:l}=e;return(0,a.createElement)(s.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,a.createElement)(o.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-error-state__logo"}),(0,a.createElement)("h3",{className:"step-error-state__error"},l),(0,a.createElement)(n.Z,null))}},9291:(e,t,r)=>{r.d(t,{L:()=>n,Y:()=>a.Z});var a=r(35),s=r(9307),o=r(682);const n=()=>(0,s.createElement)("div",{className:"image-upload-loader--loading-box"},(0,s.createElement)(o.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},1340:(e,t,r)=>{r.d(t,{U:()=>w,g:()=>p});var a=r(9307),s=r(9818),o=r(4333),n=r(5736),l=r(9291),i=r(6831),u=r(7625),d=r(2200),c=r(4401);var m=r(1589);const w=e=>{let{children:t,navigationStateCallback:r=!1}=e;const w=(0,o.useViewportMatch)("medium"),{storedThemeStatus:h,brandName:g}=(0,s.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),b=(e=>({loader:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(g),{updateThemeStatus:p,setIsDrawerOpened:_,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:v}=(0,s.useDispatch)(i.h),E=async()=>{const e=await(0,u.YL)(d.DY);return null!=e&&e.error?d.vv:e.body.status},y=()=>{switch(h){case d.Rq:case d.GV:return(()=>{if("function"==typeof r)return r();w&&_(!0),f(!1),v(!0)})();default:_(!1),f(!0),v(!1)}};(0,a.useEffect)((()=>{y(),h===d.a0&&(async()=>{const e=await E();switch(e){case d.Zh:setTimeout((async()=>{if(await E()!==d.GV)return p(d.vv);window.location.reload()}),d.YU);break;case d.GV:window.location.reload();break;default:p(e)}})()}),[h]);const S=async()=>(p(d.Zh),(await(0,u.N9)(d.DY,!0,!1)).error?p(d.Rq):window.location.reload());return(0,a.createElement)(a.Fragment,null,(()=>{switch(h){case d.vv:return(0,a.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,n.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,n.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:S,modalExitButtonText:(0,n.__)("Exit to WordPress","wp-module-onboarding")});case d.Rq:return(0,a.createElement)(c.V,{title:b.errorState.title,subtitle:b.errorState.subtitle,error:b.errorState.error});case d.GV:return t;default:return(0,a.createElement)(l.Y,{title:b.loader.title,subtitle:b.loader.subtitle})}})())};var h=r(3421),g=r(1392);var b=r(9884);const p=e=>{let{children:t,navigationStateCallback:r=!1}=e;const l=(0,o.useViewportMatch)("medium"),[u,m]=(0,a.useState)(d.Sr),{storedPluginsStatus:w,brandName:p}=(0,s.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),_=(e=>({errorState:{title:(0,n.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,n.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,g.I)("Site")),subtitle:(0,n.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updatePluginsStatus:f,setIsDrawerOpened:v,setIsDrawerSuppressed:E,setIsHeaderNavigationEnabled:y}=(0,s.useDispatch)(i.h),S=async()=>{const e=await(0,h.qC)(d.Gv);return null!=e&&e.error?d.sG:e.body.status},N=e=>{switch(e){case d.sG:case d.ye:return(()=>{if("function"==typeof r)return r();l&&v(!0),E(!1),y(!0)})();default:v(!1),E(!0),y(!1)}};(0,a.useEffect)((()=>{N(u)}),[u]);return(0,a.useEffect)((()=>{m(w[d.Gv]),w[d.Gv]===d.Ck&&(async e=>{const t=await S();switch(t){case d.Sr:setTimeout((async()=>{if(await S()!==d.ye)return w[d.Gv]=d.sG,f(w),m(d.sG);window.location.reload()}),d.sr);break;case d.ye:window.location.reload();break;default:e[d.Gv]=t,m(t),f(e)}})(w)}),[w]),(0,a.createElement)(a.Fragment,null,(()=>{switch(u){case d.sG:return(0,a.createElement)(c.V,{title:_.errorState.title,subtitle:_.errorState.subtitle,error:_.errorState.error});case d.ye:return t;default:return(0,a.createElement)(b.Z,null)}})())}},5331:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var a=r(9307),s=r(9818),o=r(1996),n=r(1340),l=r(6332),i=r(2200),u=r(6831);const d=()=>{const{headerMenu:e}=(0,s.useSelect)((e=>({headerMenu:e(u.h).getHeaderMenuData()})),[]),[t,r]=(0,a.useState)(),{setDrawerActiveView:d,setSidebarActiveView:c}=(0,s.useDispatch)(u.h);return(0,a.useLayoutEffect)((()=>{r(e)}),[e]),(0,a.useEffect)((()=>{c(i.Jq),d(i.qO)}),[]),(0,a.createElement)(n.U,null,(0,a.createElement)(l.V3,null,(0,a.createElement)(o.Z,{className:"theme-header-menu-preview"},(0,a.createElement)("div",{className:"theme-header-menu-preview__title-bar"},(0,a.createElement)("div",{className:"theme-header-menu-preview__title-bar__browser"},(0,a.createElement)("span",{className:"theme-header-menu-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-header-menu-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-header-menu-preview__title-bar__browser__dot"}))),!t&&(0,a.createElement)(l.i5,{styling:"large",viewportWidth:1300}),t&&(0,a.createElement)(l.i5,{blockGrammer:t,styling:"large",viewportWidth:1300}))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/338.js b/build/1.7.0/338.js similarity index 95% rename from build/1.6.1/338.js rename to build/1.7.0/338.js index f4dffcbec..35cae8132 100644 --- a/build/1.6.1/338.js +++ b/build/1.7.0/338.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[338],{4338:(e,n,i)=>{i.r(n),i.d(n,{default:()=>m});var t=i(9307),o=i(9818),a=i(4106),l=i(5736),r=i(1392),d=i(9109);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),m=()=>{var e,n,i;const{brandName:m,techSupportLink:g,fullServiceCreativeTeamLink:f,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(a.h).getNewfoldBrandName(),techSupportLink:e(a.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(a.h).getfullServiceCreativeTeamUrl(),brandConfig:e(a.h).getNewfoldBrandConfig()}))),k=((e,n,i)=>({introduction:{heading:(0,l.__)("Tax Info","wp-module-onboarding"),subheading:(0,l.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[338],{4338:(e,n,i)=>{i.r(n),i.d(n,{default:()=>m});var t=i(9307),o=i(9818),a=i(6831),l=i(5736),r=i(1392),d=i(9109);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),m=()=>{var e,n,i;const{brandName:m,techSupportLink:g,fullServiceCreativeTeamLink:f,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(a.h).getNewfoldBrandName(),techSupportLink:e(a.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(a.h).getfullServiceCreativeTeamUrl(),brandConfig:e(a.h).getNewfoldBrandConfig()}))),k=((e,n,i)=>({introduction:{heading:(0,l.__)("Tax Info","wp-module-onboarding"),subheading:(0,l.sprintf)( /* translators: 1: Site 2: Brand 3: Site */ (0,l.__)("A %s that does taxes in one click. That’s pretty novel."),(0,r.I)("site"),e,(0,r.I)("Site")),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-tax-info-illustration"},information:{headingWithDescriptions:[{heading:(0,l.__)("Let us crunch the tax rates and receipts, while you expand the business and the boldness","wp-module-onboarding"),description:(0,l.sprintf)( /* translators: %s: Site */ diff --git a/build/1.6.1/361.js b/build/1.7.0/361.js similarity index 95% rename from build/1.6.1/361.js rename to build/1.7.0/361.js index 697d0e862..d1682b9c0 100644 --- a/build/1.6.1/361.js +++ b/build/1.7.0/361.js @@ -1,3 +1,3 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[361],{7361:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var o=i(9307),t=i(9818),r=i(4106),l=i(5736),a=i(1392),d=i(6922);const u=(0,o.lazy)((()=>i.e(657).then(i.bind(i,8657)))),s=(0,o.lazy)((()=>i.e(574).then(i.bind(i,2574)))),h=(0,o.lazy)((()=>i.e(856).then(i.bind(i,3856)))),c=(0,o.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,o.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,o.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:m,brandConfig:f}=(0,t.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),v=((e,n)=>({introduction:{heading:(0,l.__)("Home Page","wp-module-onboarding"),subheading:(0,l.__)("The home page is where you tell visitors your story. It helps users find what they came for.","wp-module-onboarding"),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-homepage-illustration"},information:{headingWithDescriptions:[{heading:(0,l.__)("Welcome to your new home online","wp-module-onboarding"),description:(0,l.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[361],{7361:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var o=i(9307),t=i(9818),r=i(6831),l=i(5736),a=i(1392),d=i(6922);const u=(0,o.lazy)((()=>i.e(657).then(i.bind(i,8657)))),s=(0,o.lazy)((()=>i.e(574).then(i.bind(i,2574)))),h=(0,o.lazy)((()=>i.e(856).then(i.bind(i,3856)))),c=(0,o.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,o.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,o.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:m,brandConfig:f}=(0,t.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),v=((e,n)=>({introduction:{heading:(0,l.__)("Home Page","wp-module-onboarding"),subheading:(0,l.__)("The home page is where you tell visitors your story. It helps users find what they came for.","wp-module-onboarding"),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-homepage-illustration"},information:{headingWithDescriptions:[{heading:(0,l.__)("Welcome to your new home online","wp-module-onboarding"),description:(0,l.sprintf)( /* translators: %s: site */ (0,l.__)("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,a.I)("site"))},{description:(0,l.__)("Look for a Home Page Pattern design you think will help organize and elevate your ideas.","wp-module-onboarding")}]},help:{fullService:{text:(0,l.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,l.__)("Technical Support","wp-module-onboarding"),link:e}}}))(b,m);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-homepage"},(0,o.createElement)(g,{heading:v.introduction.heading,subheading:v.introduction.subheading,icon:v.introduction.icon}),!1!==(null==f||null===(e=f.views)||void 0===e||null===(n=e.sidebar)||void 0===n||null===(i=n.illustration)||void 0===i?void 0:i.shown)&&(0,o.createElement)(u,{cssIcon:v.illustration.icon}),(0,o.createElement)(s,{headingWithDescriptions:v.information.headingWithDescriptions}),(0,o.createElement)(h,null,v.help.fullService.link&&(0,o.createElement)(c,{text:v.help.fullService.text,onClick:()=>window.open(v.help.fullService.link,"_blank")}),(0,o.createElement)(p,{text:v.help.support.text,link:v.help.support.link})))}}}]); \ No newline at end of file diff --git a/build/1.6.1/378.js b/build/1.7.0/378.js similarity index 100% rename from build/1.6.1/378.js rename to build/1.7.0/378.js diff --git a/build/1.6.1/428.js b/build/1.7.0/428.js similarity index 95% rename from build/1.6.1/428.js rename to build/1.7.0/428.js index a10c0b46d..ba3a8264e 100644 --- a/build/1.6.1/428.js +++ b/build/1.7.0/428.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[428],{3428:(e,n,i)=>{i.r(n),i.d(n,{default:()=>g});var t=i(9307),o=i(9818),l=i(4106),r=i(5736),a=i(1392),d=i(6713);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),g=()=>{var e,n,i;const{brandName:g,techSupportLink:f,fullServiceCreativeTeamLink:m,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(l.h).getNewfoldBrandName(),techSupportLink:e(l.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(l.h).getfullServiceCreativeTeamUrl(),brandConfig:e(l.h).getNewfoldBrandConfig()}))),w=((e,n,i)=>({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:d.Z},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)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[428],{3428:(e,n,i)=>{i.r(n),i.d(n,{default:()=>g});var t=i(9307),o=i(9818),l=i(6831),r=i(5736),a=i(1392),d=i(6713);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),g=()=>{var e,n,i;const{brandName:g,techSupportLink:f,fullServiceCreativeTeamLink:m,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(l.h).getNewfoldBrandName(),techSupportLink:e(l.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(l.h).getfullServiceCreativeTeamUrl(),brandConfig:e(l.h).getNewfoldBrandConfig()}))),w=((e,n,i)=>({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:d.Z},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 */ (0,r.__)("Pick one of these professionally-designed website styles to start your %s %s.","wp-module-onboarding"),e,(0,a.I)("site"))},{description:(0,r.sprintf)( /* translators: %s: website */ diff --git a/build/1.7.0/437.js b/build/1.7.0/437.js new file mode 100644 index 000000000..f9dd6612b --- /dev/null +++ b/build/1.7.0/437.js @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[437],{4401:(e,t,a)=>{a.d(t,{V:()=>l});var r=a(9307),s=a(1996),o=a(4316),n=a(950);const l=e=>{let{title:t,subtitle:a,error:l}=e;return(0,r.createElement)(s.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(o.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},l),(0,r.createElement)(n.Z,null))}},9291:(e,t,a)=>{a.d(t,{L:()=>n,Y:()=>r.Z});var r=a(35),s=a(9307),o=a(682);const n=()=>(0,s.createElement)("div",{className:"image-upload-loader--loading-box"},(0,s.createElement)(o.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},1340:(e,t,a)=>{a.d(t,{U:()=>g,g:()=>b});var r=a(9307),s=a(9818),o=a(4333),n=a(5736),l=a(9291),i=a(6831),u=a(7625),d=a(2200),c=a(4401);var m=a(1589);const g=e=>{let{children:t,navigationStateCallback:a=!1}=e;const g=(0,o.useViewportMatch)("medium"),{storedThemeStatus:h,brandName:w}=(0,s.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),p=(e=>({loader:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(w),{updateThemeStatus:b,setIsDrawerOpened:v,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:_}=(0,s.useDispatch)(i.h),S=async()=>{const e=await(0,u.YL)(d.DY);return null!=e&&e.error?d.vv:e.body.status},y=()=>{switch(h){case d.Rq:case d.GV:return(()=>{if("function"==typeof a)return a();g&&v(!0),f(!1),_(!0)})();default:v(!1),f(!0),_(!1)}};(0,r.useEffect)((()=>{y(),h===d.a0&&(async()=>{const e=await S();switch(e){case d.Zh:setTimeout((async()=>{if(await S()!==d.GV)return b(d.vv);window.location.reload()}),d.YU);break;case d.GV:window.location.reload();break;default:b(e)}})()}),[h]);const E=async()=>(b(d.Zh),(await(0,u.N9)(d.DY,!0,!1)).error?b(d.Rq):window.location.reload());return(0,r.createElement)(r.Fragment,null,(()=>{switch(h){case d.vv:return(0,r.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,n.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,n.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:E,modalExitButtonText:(0,n.__)("Exit to WordPress","wp-module-onboarding")});case d.Rq:return(0,r.createElement)(c.V,{title:p.errorState.title,subtitle:p.errorState.subtitle,error:p.errorState.error});case d.GV:return t;default:return(0,r.createElement)(l.Y,{title:p.loader.title,subtitle:p.loader.subtitle})}})())};var h=a(3421),w=a(1392);var p=a(9884);const b=e=>{let{children:t,navigationStateCallback:a=!1}=e;const l=(0,o.useViewportMatch)("medium"),[u,m]=(0,r.useState)(d.Sr),{storedPluginsStatus:g,brandName:b}=(0,s.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),v=(e=>({errorState:{title:(0,n.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,n.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,w.I)("Site")),subtitle:(0,n.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:f,setIsDrawerOpened:_,setIsDrawerSuppressed:S,setIsHeaderNavigationEnabled:y}=(0,s.useDispatch)(i.h),E=async()=>{const e=await(0,h.qC)(d.Gv);return null!=e&&e.error?d.sG:e.body.status},k=e=>{switch(e){case d.sG:case d.ye:return(()=>{if("function"==typeof a)return a();l&&_(!0),S(!1),y(!0)})();default:_(!1),S(!0),y(!1)}};(0,r.useEffect)((()=>{k(u)}),[u]);return(0,r.useEffect)((()=>{m(g[d.Gv]),g[d.Gv]===d.Ck&&(async e=>{const t=await E();switch(t){case d.Sr:setTimeout((async()=>{if(await E()!==d.ye)return g[d.Gv]=d.sG,f(g),m(d.sG);window.location.reload()}),d.sr);break;case d.ye:window.location.reload();break;default:e[d.Gv]=t,m(t),f(e)}})(g)}),[g]),(0,r.createElement)(r.Fragment,null,(()=>{switch(u){case d.sG:return(0,r.createElement)(c.V,{title:v.errorState.title,subtitle:v.errorState.subtitle,error:v.errorState.error});case d.ye:return t;default:return(0,r.createElement)(p.Z,null)}})())}},3437:(e,t,a)=>{a.r(t),a.d(t,{default:()=>h});var r=a(9307),s=a(9818),o=a(9250),n=a(6831),l=a(1996),i=a(4316),u=a(6138),d=a(2200),c=a(1340),m=a(6332),g=a(1054);const h=()=>{var e;const t=(0,o.TH)(),[a,h]=(0,r.useState)(),[w,p]=(0,r.useState)([]),{currentStep:b,currentData:v,themeStatus:f,themeVariations:_}=(0,s.useSelect)((e=>({currentStep:e(n.h).getStepFromPath(t.pathname),currentData:e(n.h).getCurrentOnboardingData(),themeStatus:e(n.h).getThemeStatus(),themeVariations:e(n.h).getStepPreviewData()})),[]),{setDrawerActiveView:S,setSidebarActiveView:y,updateThemeStatus:E,setCurrentOnboardingData:k}=(0,s.useDispatch)(n.h);(0,r.useEffect)((()=>{y(d.Jq),S(d.Yl)}),[]);const N=(e,t)=>!1!==t?null==t?void 0:t.reduce(((t,a)=>e.includes(a.slug)?t.concat({slug:a.slug,title:a.title}):t),[]):void 0,P=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p(e),v.data.sitePages.other=0!==e.length&&N(e,t),k(v)},G=(e,t)=>{!0!==e||w.includes(t)?!1===e&&P(w.filter((e=>e!==t)),a):P(w.concat(t),a)};return(0,r.useEffect)((()=>{f===d.GV&&(async()=>{const e=await(0,u.C)(b.patternId);if(null!=e&&e.error)return E(d.a0);if(null!=e&&e.body){var t;if(null!==(t=v.data.sitePages)&&void 0!==t&&t.other)if(!1===v.data.sitePages.other)p([]);else if(0!==v.data.sitePages.other.length)p(v.data.sitePages.other.map((e=>e.slug)));else{const t=e.body.reduce(((e,t)=>null!=t&&t.selected?e.concat(t.slug):e),[]);P(t,e.body)}h(e.body)}})()}),[f]),(0,r.createElement)(c.U,null,(0,r.createElement)(m.V3,null,(0,r.createElement)(l.Z,null,(0,r.createElement)("div",{className:"site-pages"},(0,r.createElement)(i.Z,{title:null==b?void 0:b.heading,subtitle:null==b?void 0:b.subheading}),(0,r.createElement)("div",{className:"site-pages__list"},(0,r.createElement)(g.Z,{className:"site-pages__list__item",count:null===(e=_[null==b?void 0:b.patternId])||void 0===e?void 0:e.previewCount,watch:a,isWithCard:!0,callback:()=>w&&(null==a?void 0:a.map(((e,t)=>(0,r.createElement)(m.T9,{key:t,className:"site-pages__list__item",blockGrammer:e.content,viewportWidth:1200,styling:"custom",overlay:!0,title:null==e?void 0:e.title,slug:e.slug,selected:w.includes(e.slug),onClick:G,description:null==e?void 0:e.description})))),viewportWidth:1200}))))))}}}]); \ No newline at end of file diff --git a/build/1.7.0/473.js b/build/1.7.0/473.js new file mode 100644 index 000000000..3076912df --- /dev/null +++ b/build/1.7.0/473.js @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[473],{4401:(e,t,a)=>{a.d(t,{V:()=>i});var r=a(9307),s=a(1996),o=a(4316),n=a(950);const i=e=>{let{title:t,subtitle:a,error:i}=e;return(0,r.createElement)(s.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(o.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},i),(0,r.createElement)(n.Z,null))}},9291:(e,t,a)=>{a.d(t,{L:()=>n,Y:()=>r.Z});var r=a(35),s=a(9307),o=a(682);const n=()=>(0,s.createElement)("div",{className:"image-upload-loader--loading-box"},(0,s.createElement)(o.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},1340:(e,t,a)=>{a.d(t,{U:()=>h,g:()=>b});var r=a(9307),s=a(9818),o=a(4333),n=a(5736),i=a(9291),l=a(6831),u=a(7625),d=a(2200),c=a(4401);var m=a(1589);const h=e=>{let{children:t,navigationStateCallback:a=!1}=e;const h=(0,o.useViewportMatch)("medium"),{storedThemeStatus:p,brandName:g}=(0,s.useSelect)((e=>({storedThemeStatus:e(l.h).getThemeStatus(),brandName:e(l.h).getNewfoldBrandName()})),[]),w=(e=>({loader:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(g),{updateThemeStatus:b,setIsDrawerOpened:S,setIsDrawerSuppressed:_,setIsHeaderNavigationEnabled:y}=(0,s.useDispatch)(l.h),v=async()=>{const e=await(0,u.YL)(d.DY);return null!=e&&e.error?d.vv:e.body.status},f=()=>{switch(p){case d.Rq:case d.GV:return(()=>{if("function"==typeof a)return a();h&&S(!0),_(!1),y(!0)})();default:S(!1),_(!0),y(!1)}};(0,r.useEffect)((()=>{f(),p===d.a0&&(async()=>{const e=await v();switch(e){case d.Zh:setTimeout((async()=>{if(await v()!==d.GV)return b(d.vv);window.location.reload()}),d.YU);break;case d.GV:window.location.reload();break;default:b(e)}})()}),[p]);const E=async()=>(b(d.Zh),(await(0,u.N9)(d.DY,!0,!1)).error?b(d.Rq):window.location.reload());return(0,r.createElement)(r.Fragment,null,(()=>{switch(p){case d.vv:return(0,r.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,n.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,n.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:E,modalExitButtonText:(0,n.__)("Exit to WordPress","wp-module-onboarding")});case d.Rq:return(0,r.createElement)(c.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case d.GV:return t;default:return(0,r.createElement)(i.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())};var p=a(3421),g=a(1392);var w=a(9884);const b=e=>{let{children:t,navigationStateCallback:a=!1}=e;const i=(0,o.useViewportMatch)("medium"),[u,m]=(0,r.useState)(d.Sr),{storedPluginsStatus:h,brandName:b}=(0,s.useSelect)((e=>({storedPluginsStatus:e(l.h).getPluginsStatus(),brandName:e(l.h).getNewfoldBrandName()})),[]),S=(e=>({errorState:{title:(0,n.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,n.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,g.I)("Site")),subtitle:(0,n.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:_,setIsDrawerOpened:y,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:f}=(0,s.useDispatch)(l.h),E=async()=>{const e=await(0,p.qC)(d.Gv);return null!=e&&e.error?d.sG:e.body.status},k=e=>{switch(e){case d.sG:case d.ye:return(()=>{if("function"==typeof a)return a();i&&y(!0),v(!1),f(!0)})();default:y(!1),v(!0),f(!1)}};(0,r.useEffect)((()=>{k(u)}),[u]);return(0,r.useEffect)((()=>{m(h[d.Gv]),h[d.Gv]===d.Ck&&(async e=>{const t=await E();switch(t){case d.Sr:setTimeout((async()=>{if(await E()!==d.ye)return h[d.Gv]=d.sG,_(h),m(d.sG);window.location.reload()}),d.sr);break;case d.ye:window.location.reload();break;default:e[d.Gv]=t,m(t),_(e)}})(h)}),[h]),(0,r.createElement)(r.Fragment,null,(()=>{switch(u){case d.sG:return(0,r.createElement)(c.V,{title:S.errorState.title,subtitle:S.errorState.subtitle,error:S.errorState.error});case d.ye:return t;default:return(0,r.createElement)(w.Z,null)}})())}},7473:(e,t,a)=>{a.r(t),a.d(t,{default:()=>S});var r=a(9307),s=a(9818),o=a(9250),n=a(284),i=a(6831),l=a(1996),u=a(4316),d=a(6690),c=a(6138),m=a(7625),h=a(6510),p=a(2200),g=a(1340),w=a(6332),b=a(7946);const S=()=>{var e;const t=(0,n.Z)(),a=(0,o.TH)(),[S,_]=(0,r.useState)(),[y,v]=(0,r.useState)(),[f,E]=(0,r.useState)(),k=(0,o.s0)(),{currentStep:T,nextStep:C,currentData:N,storedPreviewSettings:D,routes:P,allSteps:G,designSteps:V,themeStatus:x,themeVariations:Z}=(0,s.useSelect)((e=>({currentStep:e(i.h).getStepFromPath(a.pathname),nextStep:e(i.h).getNextStep(),currentData:e(i.h).getCurrentOnboardingData(),storedPreviewSettings:e(i.h).getPreviewSettings(),routes:e(i.h).getRoutes(),allSteps:e(i.h).getAllSteps(),designSteps:e(i.h).getDesignSteps(),themeStatus:e(i.h).getThemeStatus(),themeVariations:e(i.h).getStepPreviewData()})),[]),{setDrawerActiveView:I,setSidebarActiveView:O,updatePreviewSettings:W,setCurrentOnboardingData:B,updateThemeStatus:U,updateRoutes:Y,updateDesignSteps:H,updateAllSteps:q}=(0,s.useDispatch)(i.h);return(0,r.useEffect)((()=>{O(p.Jq),I(p.Yl)}),[]),(0,r.useEffect)((()=>{x===p.GV&&(async()=>{const e=await(0,c.C)(T.patternId,!0);if(null!=e&&e.error)return U(p.a0);const t=await(0,m.oC)(!0);if(null!=t&&t.error)return U(p.a0);E(N.data.theme.variation),_(null==e?void 0:e.body),v(null==t?void 0:t.body)})()}),[x]),(0,r.createElement)(g.U,null,(0,r.createElement)(l.Z,null,(0,r.createElement)("div",{className:"theme-styles-menu"},(0,r.createElement)(u.Z,{title:t.heading},(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},`${t.subheading} `,(0,r.createElement)("button",{className:"theme-styles-menu__custom-pages-link",onClick:()=>{const e=(0,b.U)(P,G,V);Y(e.routes),H(e.designSteps),q(e.allSteps),N.data.customDesign=!0,B(N),k(h.mT.designColors.path)}},t.subheading_link))),(0,r.createElement)("div",{className:"theme-styles-menu__list"},(0,r.createElement)(w.r9,{className:"theme-styles-menu__list__item",count:null===(e=Z[null==T?void 0:T.patternId])||void 0===e?void 0:e.previewCount,watch:S&&y,callback:()=>null==y?void 0:y.map(((e,t)=>(0,r.createElement)(w.H,{key:t,className:"theme-styles-menu__list__item",selected:e.title===f,blockGrammer:S,viewportWidth:900,styling:"custom",previewSettings:e,overlay:!0,onClick:()=>(e=>{const t=y[e];W((0,d.NF)(t,D)),E(t.title),N.data.theme.variation=t.title,B(N),k(C.path)})(t)}))),viewportWidth:900})))))}},284:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(5736);const s=()=>({heading:(0,r.__)("Lets tailor your theme for the perfect fit","wp-module-onboarding"),subheading:(0,r.__)("Start with a style preset or","wp-module-onboarding"),subheading_link:(0,r.__)("build a custom design.","wp-module-onboarding"),checkbox_label:(0,r.__)("Customize Colors & Fonts?","wp-module-onboarding"),checkbox_hint:(0,r.__)("Check to customize in the next few steps (or leave empty and use the Site Editor later)","wp-module-onboarding")})},7946:(e,t,a)=>{a.d(t,{U:()=>o,o:()=>n});var r=a(2819),s=a(6510);const o=(e,t,a)=>{const o=n(e,t,a),i=[s.mT.designColors,s.mT.designTypography];return{routes:(0,r.orderBy)(o.routes.concat(i),["priority"],["asc"]),allSteps:(0,r.orderBy)(o.allSteps.concat(i),["priority"],["asc"]),designSteps:(0,r.orderBy)(o.designSteps.concat(i),["priority"],["asc"])}},n=(e,t,a)=>({routes:(0,r.filter)(e,(e=>!e.path.includes(s.mT.designColors.path)&&!e.path.includes(s.mT.designTypography.path))),allSteps:(0,r.filter)(t,(e=>!e.path.includes(s.mT.designColors.path)&&!e.path.includes(s.mT.designTypography.path))),designSteps:(0,r.filter)(a,(e=>!e.path.includes(s.mT.designColors.path)&&!e.path.includes(s.mT.designTypography.path)))})}}]); \ No newline at end of file diff --git a/build/1.7.0/565.js b/build/1.7.0/565.js new file mode 100644 index 000000000..5e7ed2fbe --- /dev/null +++ b/build/1.7.0/565.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[565],{676:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(9307),a=n(5736),i=n(5609),d=n(9818),r=n(9250),c=n(7533),l=n(6831),s=n(8395),u=n(2200);const p=(0,o.memo)((e=>{let{callback:t=!1}=e;const n=(0,r.s0)(),p=(0,r.TH)(),{nextStep:m,currentData:_,socialData:b}=(0,d.useSelect)((e=>({nextStep:e(l.h).getNextStep(),currentData:e(l.h).getCurrentOnboardingData(),socialData:e(l.h).getOnboardingSocialData()})),[]),g=null===m||!1===m,{setOnboardingSocialData:w}=(0,d.useDispatch)(l.h);async function f(e){if(_){if(_.isComplete=(new Date).getTime(),null!=e&&e.includes("basic-info")){const e=await async function(){const e=await(0,s.Gw)(),t=await(0,s.I2)(b);return null!==(null==t?void 0:t.error)?null==e?void 0:e.body:null==t?void 0:t.body}();e&&w(e)}(0,c.kB)(_)}const t="ecommerce"===window.nfdOnboarding.currentFlow?u.br:u.hF;window.location.replace(t)}return g?(0,o.createElement)(i.Button,{className:"skip-button",onClick:()=>f(p.pathname)},(0,a.__)("Skip this Step","wp-module-onboarding")):(0,o.createElement)(i.Button,{className:"skip-button",onClick:()=>{"function"==typeof t&&t(),n(m.path)}},(0,a.__)("Skip this Step","wp-module-onboarding"))}))},7565:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var o=n(9307),a=n(5736),i=n(4333),d=n(9818),r=n(2200),c=n(676),l=n(6831),s=n(1996),u=n(4316),p=n(1984),m=n(8184),_=n(5609);const b=e=>{let{id:t,path:n,title:i,desc:d,isSelected:r,onSelectedChange:c}=e;return(0,o.createElement)(_.Card,{className:`nfd-card ${r&&"nfd-selected-card-box"}`,onClick:e=>c(t)},(0,o.createElement)("div",{className:"nfd-card__top_row"},(0,o.createElement)("div",{className:"nfd-card__icon"},(0,o.createElement)("div",{className:r?"nfd-card__icon_box nfd-card__icon_box-selected":"nfd-card__icon_box",style:{backgroundImage:`var(${n})`}})),(0,o.createElement)("div",{className:r?"nfd-card__icon_selected":"nfd-card__icon_unselected"},(0,o.createElement)(p.Z,{className:"nfd-card__icon_selected_path",icon:m.Z,size:64}))),(0,o.createElement)("div",{className:`nfd-card__body ${r&&"nfd-selected-card"}`},(0,o.createElement)("h2",{className:"nfd-card__body_title"},(0,a.__)(i,"wp-module-onboarding")),(0,o.createElement)("p",{className:"nfd-card__body_description"},(0,a.__)(d,"wp-module-onboarding"))))},g=e=>{let{contents:t,selected:n,onSelectedChange:a}=e;const i=t.map(((e,t)=>(0,o.createElement)(b,{id:t,key:t,path:e.icon,title:e.title,desc:e.desc,onSelectedChange:a,isSelected:t===n})));return(0,o.createElement)("div",{className:"selectable_cards"},i)},w=()=>{const e={0:"publishing",1:"selling",2:"designing"},[t,n]=(0,o.useState)(0),[p,m]=(0,o.useState)(!1),_=(0,i.useViewportMatch)("medium"),{setDrawerActiveView:b,setIsDrawerOpened:w,setSidebarActiveView:f,setCurrentOnboardingData:h,setIsDrawerSuppressed:y,setIsHeaderNavigationEnabled:v}=(0,d.useDispatch)(l.h),{currentData:E}=(0,d.useSelect)((e=>({currentData:e(l.h).getCurrentOnboardingData()})),[]);(0,o.useEffect)((()=>{_&&w(!0),f(!1),y(!1),b(r.tM),v(!0)}),[]),(0,o.useEffect)((()=>{p||async function(){if(E){const a=await(null==E?void 0:E.data.topPriority.priority1);""!==a?n(parseInt((o=a,null==Object?void 0:Object.keys(e).find((t=>e[t]===o))))):(E.data.topPriority.priority1=e[t],h(E))}var o;m(!0)}()}),[p]),(0,o.useEffect)((()=>{const n=e[t];E.data.topPriority.priority1=n,h(E),"selling"===n?"ecommerce"!==window.nfdOnboarding.currentFlow&&(window.nfdOnboarding.newFlow="ecommerce"):window.nfdOnboarding.newFlow=void 0}),[t]);const S={heading:(0,a.__)("Tell us your top priority","wp-module-onboarding"),subheading:(0,a.__)("We'll prioritize getting you there.","wp-module-onboarding"),options:[{icon:"--nfd-publish-icon",title:(0,a.__)("Publishing","wp-module-onboarding"),desc:(0,a.__)("From blogs, to newsletters, to podcasts and videos, we help the web find your content.","wp-module-onboarding")},{icon:"--nfd-selling-icon",title:(0,a.__)("Selling","wp-module-onboarding"),desc:(0,a.__)("Startup or seasoned business, drop-shipping or downloads, we've got ecommerce covered.","wp-module-onboarding")},{icon:"--nfd-design-icon",title:(0,a.__)("Designing","wp-module-onboarding"),desc:(0,a.__)("With smart style presets and powerful options, we help your site look and feel polished.","wp-module-onboarding")}]};return(0,o.createElement)(s.Z,{isVerticallyCentered:!0},(0,o.createElement)(u.Z,{title:S.heading,subtitle:S.subheading}),(0,o.createElement)(g,{contents:S.options,selected:t,onSelectedChange:n}),(0,o.createElement)("div",{className:"center"},(0,o.createElement)("p",{className:"info-top-priority"},(0,a.__)("Where would you like to start? We'll start ","wp-module-onboarding"),(0,a.__)("there and then move into next steps.","wp-module-onboarding")),(0,o.createElement)(c.Z,{callback:()=>{window.nfdOnboarding.newFlow=void 0,E.data.topPriority.priority1=e[0],h(E)}})))}}}]); \ No newline at end of file diff --git a/build/1.6.1/574.js b/build/1.7.0/574.js similarity index 100% rename from build/1.6.1/574.js rename to build/1.7.0/574.js diff --git a/build/1.7.0/577.js b/build/1.7.0/577.js new file mode 100644 index 000000000..848c1956e --- /dev/null +++ b/build/1.7.0/577.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[577],{7577:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});var a=s(9307),n=s(1996),r=s(2200),i=s(6831),c=s(9818);const d=()=>{const{setIsDrawerOpened:e,setDrawerActiveView:t,setSidebarActiveView:s}=(0,c.useDispatch)(i.h);return(0,a.useEffect)((()=>{s(r.Jq),e(!0),t(r.BP)}),[]),(0,a.createElement)(n.Z,{isCentered:!0},"What To Expect")}}}]); \ No newline at end of file diff --git a/build/1.6.1/58.js b/build/1.7.0/58.js similarity index 100% rename from build/1.6.1/58.js rename to build/1.7.0/58.js diff --git a/build/1.7.0/594.js b/build/1.7.0/594.js new file mode 100644 index 000000000..6f104922d --- /dev/null +++ b/build/1.7.0/594.js @@ -0,0 +1,3 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[594],{1211:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(9307),r=n(9250),o=n(9818),s=n(6831);const d=e=>{let{text:t,handleClick:n,disabled:r,className:o}=e;return(0,a.createElement)("button",{type:"button",className:`${o} nfd-card-button`,onClick:()=>{n()},disabled:r},t)};var l=n(7533),i=n(2200);const c=e=>{let{text:t,disabled:n}=e;const c=(0,r.s0)(),u=(0,r.TH)(),{nextStep:m,currentData:b}=(0,o.useSelect)((e=>({nextStep:e(s.h).getNextStep(),currentData:e(s.h).getCurrentOnboardingData()})),[u.path]),p=null===m||!1===m;return(0,a.createElement)(d,{className:"nfd-nav-card-button",text:t,handleClick:()=>p?async function(){b&&(b.isComplete=(new Date).getTime(),(0,l.kB)(b));const e="ecommerce"===window.nfdOnboarding.currentFlow?i.br:i.hF;window.location.replace(e)}():c(m.path),disabled:n})}},9519:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(9307);const r=(0,a.memo)((e=>{let{heading:t,subHeading:n,question:r}=e;return(0,a.createElement)("div",null,t&&(0,a.createElement)("h2",{className:"nfd-step-card-heading"},t),n&&(0,a.createElement)("h3",{className:r?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),r&&(0,a.createElement)("h3",{className:"nfd-step-card-question"},r))}))},349:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(9307),r=(n(5736),n(4184)),o=n.n(r);const s=e=>{let{className:t="",children:n}=e;return(0,a.createElement)("div",{className:o()("nfd-onboarding-large-card",t)},n)}},1594:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var a=n(9307),r=n(1996),o=n(349),s=n(9519),d=n(1211),l=n(950),i=n(2200),c=n(6831),u=n(5609),m=n(9818),b=n(682),p=n(5736),g=n(1392);const h=()=>{const[e,t]=(0,a.useState)("0"),{currentData:n}=(0,m.useSelect)((e=>({currentData:e(c.h).getCurrentOnboardingData()})),[]),{setDrawerActiveView:h,setCurrentOnboardingData:f,setSidebarActiveView:w,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:E}=(0,m.useDispatch)(c.h);(0,a.useEffect)((()=>{w(i.Jq),v(!0),h(i.mz),E(!0)}),[]),(0,a.useEffect)((()=>{!async function(){t(n.data.wpComfortLevel)}()}),[]);const _={heading:(0,p.sprintf)( +/* translators: %s: website or store */ +(0,p.__)("Help us tailor this setup to your %s","wp-module-onboarding"),(0,g.I)("site")),subheading:(0,p.__)("ABOUT YOU","wp-module-onboarding"),question:(0,p.__)("What is your experience with WordPress?","wp-module-onboarding"),buttonText:(0,p.__)("Continue Setup","wp-module-onboarding"),options:[{label:(0,p.__)("Never used it","wp-module-onboarding"),value:"1"},{label:(0,p.__)("Used it some","wp-module-onboarding"),value:"3"},{label:(0,p.__)("I'm an expert","wp-module-onboarding"),value:"5"}]};return(0,a.createElement)(r.Z,{isBgPrimary:!0,isCentered:!0},(0,a.createElement)(o.Z,null,(0,a.createElement)("div",{className:"nfd-onboarding-experience-step"},(0,a.createElement)("div",{className:"nfd-card-heading center"},(0,a.createElement)(s.Z,{heading:_.heading,subHeading:_.subheading,question:_.question})),(0,a.createElement)(b.Z,{type:"fade-in-disabled",after:e},(0,a.createElement)(u.RadioControl,{className:"nfd-onboarding-experience-step-tabs components-radio-control__input radio-control-main",selected:e,options:_.options.map((e=>({label:e.label,value:e.value}))),onChange:e=>(e=>{t(e);const a=n;a.data.wpComfortLevel=e||"0",f(a)})(e)})),(0,a.createElement)(d.Z,{text:_.buttonText,disabled:"0"===e}),(0,a.createElement)(l.Z,null))))}}}]); \ No newline at end of file diff --git a/build/1.7.0/608.js b/build/1.7.0/608.js new file mode 100644 index 000000000..b433f794f --- /dev/null +++ b/build/1.7.0/608.js @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[608],{4401:(e,t,r)=>{r.d(t,{V:()=>l});var a=r(9307),o=r(1996),s=r(4316),n=r(950);const l=e=>{let{title:t,subtitle:r,error:l}=e;return(0,a.createElement)(o.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,a.createElement)(s.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-error-state__logo"}),(0,a.createElement)("h3",{className:"step-error-state__error"},l),(0,a.createElement)(n.Z,null))}},9291:(e,t,r)=>{r.d(t,{L:()=>n,Y:()=>a.Z});var a=r(35),o=r(9307),s=r(682);const n=()=>(0,o.createElement)("div",{className:"image-upload-loader--loading-box"},(0,o.createElement)(s.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},1340:(e,t,r)=>{r.d(t,{U:()=>w,g:()=>b});var a=r(9307),o=r(9818),s=r(4333),n=r(5736),l=r(9291),i=r(6831),u=r(7625),c=r(2200),d=r(4401);var m=r(1589);const w=e=>{let{children:t,navigationStateCallback:r=!1}=e;const w=(0,s.useViewportMatch)("medium"),{storedThemeStatus:h,brandName:p}=(0,o.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),g=(e=>({loader:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:_,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:v}=(0,o.useDispatch)(i.h),S=async()=>{const e=await(0,u.YL)(c.DY);return null!=e&&e.error?c.vv:e.body.status},y=()=>{switch(h){case c.Rq:case c.GV:return(()=>{if("function"==typeof r)return r();w&&_(!0),f(!1),v(!0)})();default:_(!1),f(!0),v(!1)}};(0,a.useEffect)((()=>{y(),h===c.a0&&(async()=>{const e=await S();switch(e){case c.Zh:setTimeout((async()=>{if(await S()!==c.GV)return b(c.vv);window.location.reload()}),c.YU);break;case c.GV:window.location.reload();break;default:b(e)}})()}),[h]);const E=async()=>(b(c.Zh),(await(0,u.N9)(c.DY,!0,!1)).error?b(c.Rq):window.location.reload());return(0,a.createElement)(a.Fragment,null,(()=>{switch(h){case c.vv:return(0,a.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,n.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,n.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:E,modalExitButtonText:(0,n.__)("Exit to WordPress","wp-module-onboarding")});case c.Rq:return(0,a.createElement)(d.V,{title:g.errorState.title,subtitle:g.errorState.subtitle,error:g.errorState.error});case c.GV:return t;default:return(0,a.createElement)(l.Y,{title:g.loader.title,subtitle:g.loader.subtitle})}})())};var h=r(3421),p=r(1392);var g=r(9884);const b=e=>{let{children:t,navigationStateCallback:r=!1}=e;const l=(0,s.useViewportMatch)("medium"),[u,m]=(0,a.useState)(c.Sr),{storedPluginsStatus:w,brandName:b}=(0,o.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),_=(e=>({errorState:{title:(0,n.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,n.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,n.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:f,setIsDrawerOpened:v,setIsDrawerSuppressed:S,setIsHeaderNavigationEnabled:y}=(0,o.useDispatch)(i.h),E=async()=>{const e=await(0,h.qC)(c.Gv);return null!=e&&e.error?c.sG:e.body.status},N=e=>{switch(e){case c.sG:case c.ye:return(()=>{if("function"==typeof r)return r();l&&v(!0),S(!1),y(!0)})();default:v(!1),S(!0),y(!1)}};(0,a.useEffect)((()=>{N(u)}),[u]);return(0,a.useEffect)((()=>{m(w[c.Gv]),w[c.Gv]===c.Ck&&(async e=>{const t=await E();switch(t){case c.Sr:setTimeout((async()=>{if(await E()!==c.ye)return w[c.Gv]=c.sG,f(w),m(c.sG);window.location.reload()}),c.sr);break;case c.ye:window.location.reload();break;default:e[c.Gv]=t,m(t),f(e)}})(w)}),[w]),(0,a.createElement)(a.Fragment,null,(()=>{switch(u){case c.sG:return(0,a.createElement)(d.V,{title:_.errorState.title,subtitle:_.errorState.subtitle,error:_.errorState.error});case c.ye:return t;default:return(0,a.createElement)(g.Z,null)}})())}},9608:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var a=r(9307),o=r(9250),s=r(9818),n=r(6138),l=r(6831),i=r(1996),u=r(1340),c=r(6332),d=r(2200);const m=()=>{const e=(0,o.TH)(),[t,r]=(0,a.useState)(),{currentStep:m,themeStatus:w}=(0,s.useSelect)((t=>({currentStep:t(l.h).getStepFromPath(e.pathname),themeStatus:t(l.h).getThemeStatus()})),[]),{setDrawerActiveView:h,setSidebarActiveView:p,updateThemeStatus:g}=(0,s.useDispatch)(l.h);return(0,a.useEffect)((()=>{p(d.Jq),h(d.qR)}),[]),(0,a.useEffect)((()=>{d.GV===w&&(async()=>{const e=await(0,n.C)(m.patternId,!0);if(null!=e&&e.error)return g(d.a0);r(null==e?void 0:e.body)})()}),[w]),(0,a.createElement)(u.U,null,(0,a.createElement)(c.V3,null,(0,a.createElement)(i.Z,{className:"theme-colors-preview"},(0,a.createElement)("div",{className:"theme-colors-preview__title-bar"},(0,a.createElement)("div",{className:"theme-colors-preview__title-bar__browser"},(0,a.createElement)("span",{className:"theme-colors-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-colors-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-colors-preview__title-bar__browser__dot"}))),!t&&(0,a.createElement)(c.i5,{styling:"large",viewportWidth:1300}),t&&(0,a.createElement)(c.i5,{blockGrammer:t,styling:"large",viewportWidth:1300}))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/61.js b/build/1.7.0/61.js similarity index 97% rename from build/1.6.1/61.js rename to build/1.7.0/61.js index 0e9bb51ba..4ba91c3cf 100644 --- a/build/1.6.1/61.js +++ b/build/1.7.0/61.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[61],{5061:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(4106),l=i(5736),a=i(1392),s=i(6922);const d=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:f,brandConfig:m}=(0,o.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),v=((e,n)=>({introduction:{heading:(0,l.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[61],{5061:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(6831),l=i(5736),a=i(1392),s=i(6922);const d=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:f,brandConfig:m}=(0,o.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),v=((e,n)=>({introduction:{heading:(0,l.sprintf)( /* translators: %s: Site */ (0,l.__)("%s Type","wp-module-onboarding"),(0,a.I)("Site")),subheading:(0,l.sprintf)( /* translators: %s: site */ diff --git a/build/1.6.1/645.js b/build/1.7.0/645.js similarity index 95% rename from build/1.6.1/645.js rename to build/1.7.0/645.js index 642602ad6..06efc9d82 100644 --- a/build/1.6.1/645.js +++ b/build/1.7.0/645.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[645],{4645:(e,n,i)=>{i.r(n),i.d(n,{default:()=>f});var t=i(9307),o=i(9818),r=i(4106),l=i(5736),a=i(1392),s=i(1941);const u=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),d=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),f=()=>{var e,n,i;const{brandName:f,techSupportLink:g,fullServiceCreativeTeamLink:m,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(r.h).getNewfoldBrandName(),techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),k=((e,n,i)=>({introduction:{heading:(0,l.__)("Features","wp-module-onboarding"),subheading:(0,l.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[645],{4645:(e,n,i)=>{i.r(n),i.d(n,{default:()=>f});var t=i(9307),o=i(9818),r=i(6831),l=i(5736),a=i(1392),s=i(1941);const u=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),d=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),f=()=>{var e,n,i;const{brandName:f,techSupportLink:g,fullServiceCreativeTeamLink:m,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(r.h).getNewfoldBrandName(),techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),k=((e,n,i)=>({introduction:{heading:(0,l.__)("Features","wp-module-onboarding"),subheading:(0,l.sprintf)( /* translators: 1: Brand 2: site */ (0,l.__)("Easy-to-use features from our partner's WordPress Plugins and unique %s solutions to put your %s to work.","wp-module-onboarding"),e,(0,a.I)("site")),icon:s.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-site-features-illustration"},information:{headingWithDescriptions:[{heading:(0,l.sprintf)( /* translators: %s: site */ diff --git a/build/1.6.1/657.js b/build/1.7.0/657.js similarity index 100% rename from build/1.6.1/657.js rename to build/1.7.0/657.js diff --git a/build/1.6.1/677.js b/build/1.7.0/677.js similarity index 100% rename from build/1.6.1/677.js rename to build/1.7.0/677.js diff --git a/build/1.7.0/722.js b/build/1.7.0/722.js new file mode 100644 index 000000000..54e35d40d --- /dev/null +++ b/build/1.7.0/722.js @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[722],{1211:(e,t,a)=>{a.d(t,{Z:()=>u});var n=a(9307),o=a(9250),r=a(9818),s=a(6831);const l=e=>{let{text:t,handleClick:a,disabled:o,className:r}=e;return(0,n.createElement)("button",{type:"button",className:`${r} nfd-card-button`,onClick:()=>{a()},disabled:o},t)};var i=a(7533),d=a(2200);const u=e=>{let{text:t,disabled:a}=e;const u=(0,o.s0)(),c=(0,o.TH)(),{nextStep:m,currentData:p}=(0,r.useSelect)((e=>({nextStep:e(s.h).getNextStep(),currentData:e(s.h).getCurrentOnboardingData()})),[c.path]),b=null===m||!1===m;return(0,n.createElement)(l,{className:"nfd-nav-card-button",text:t,handleClick:()=>b?async function(){p&&(p.isComplete=(new Date).getTime(),(0,i.kB)(p));const e="ecommerce"===window.nfdOnboarding.currentFlow?d.br:d.hF;window.location.replace(e)}():u(m.path),disabled:a})}},9519:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(9307);const o=(0,n.memo)((e=>{let{heading:t,subHeading:a,question:o}=e;return(0,n.createElement)("div",null,t&&(0,n.createElement)("h2",{className:"nfd-step-card-heading"},t),a&&(0,n.createElement)("h3",{className:o?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},a),o&&(0,n.createElement)("h3",{className:"nfd-step-card-question"},o))}))},4401:(e,t,a)=>{a.d(t,{V:()=>l});var n=a(9307),o=a(1996),r=a(4316),s=a(950);const l=e=>{let{title:t,subtitle:a,error:l}=e;return(0,n.createElement)(o.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,n.createElement)(r.Z,{title:t,subtitle:a}),(0,n.createElement)("div",{className:"step-error-state__logo"}),(0,n.createElement)("h3",{className:"step-error-state__error"},l),(0,n.createElement)(s.Z,null))}},9291:(e,t,a)=>{a.d(t,{L:()=>s,Y:()=>n.Z});var n=a(35),o=a(9307),r=a(682);const s=()=>(0,o.createElement)("div",{className:"image-upload-loader--loading-box"},(0,o.createElement)(r.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},349:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(9307),o=(a(5736),a(4184)),r=a.n(o);const s=e=>{let{className:t="",children:a}=e;return(0,n.createElement)("div",{className:r()("nfd-onboarding-large-card",t)},a)}},1340:(e,t,a)=>{a.d(t,{U:()=>p,g:()=>w});var n=a(9307),o=a(9818),r=a(4333),s=a(5736),l=a(9291),i=a(6831),d=a(7625),u=a(2200),c=a(4401);var m=a(1589);const p=e=>{let{children:t,navigationStateCallback:a=!1}=e;const p=(0,r.useViewportMatch)("medium"),{storedThemeStatus:b,brandName:g}=(0,o.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),h=(e=>({loader:{title:(0,s.sprintf)( +/* 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 */ +(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")}}))(g),{updateThemeStatus:w,setIsDrawerOpened:v,setIsDrawerSuppressed:_,setIsHeaderNavigationEnabled:f}=(0,o.useDispatch)(i.h),y=async()=>{const e=await(0,d.YL)(u.DY);return null!=e&&e.error?u.vv:e.body.status},E=()=>{switch(b){case u.Rq:case u.GV:return(()=>{if("function"==typeof a)return a();p&&v(!0),_(!1),f(!0)})();default:v(!1),_(!0),f(!1)}};(0,n.useEffect)((()=>{E(),b===u.a0&&(async()=>{const e=await y();switch(e){case u.Zh:setTimeout((async()=>{if(await y()!==u.GV)return w(u.vv);window.location.reload()}),u.YU);break;case u.GV:window.location.reload();break;default:w(e)}})()}),[b]);const S=async()=>(w(u.Zh),(await(0,d.N9)(u.DY,!0,!1)).error?w(u.Rq):window.location.reload());return(0,n.createElement)(n.Fragment,null,(()=>{switch(b){case u.vv:return(0,n.createElement)(m.Z,{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:S,modalExitButtonText:(0,s.__)("Exit to WordPress","wp-module-onboarding")});case u.Rq:return(0,n.createElement)(c.V,{title:h.errorState.title,subtitle:h.errorState.subtitle,error:h.errorState.error});case u.GV:return t;default:return(0,n.createElement)(l.Y,{title:h.loader.title,subtitle:h.loader.subtitle})}})())};var b=a(3421),g=a(1392);var h=a(9884);const w=e=>{let{children:t,navigationStateCallback:a=!1}=e;const l=(0,r.useViewportMatch)("medium"),[d,m]=(0,n.useState)(u.Sr),{storedPluginsStatus:p,brandName:w}=(0,o.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),v=(e=>({errorState:{title:(0,s.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,s.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,g.I)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,s.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(w),{updatePluginsStatus:_,setIsDrawerOpened:f,setIsDrawerSuppressed:y,setIsHeaderNavigationEnabled:E}=(0,o.useDispatch)(i.h),S=async()=>{const e=await(0,b.qC)(u.Gv);return null!=e&&e.error?u.sG:e.body.status},N=e=>{switch(e){case u.sG:case u.ye:return(()=>{if("function"==typeof a)return a();l&&f(!0),y(!1),E(!0)})();default:f(!1),y(!0),E(!1)}};(0,n.useEffect)((()=>{N(d)}),[d]);return(0,n.useEffect)((()=>{m(p[u.Gv]),p[u.Gv]===u.Ck&&(async e=>{const t=await S();switch(t){case u.Sr:setTimeout((async()=>{if(await S()!==u.ye)return p[u.Gv]=u.sG,_(p),m(u.sG);window.location.reload()}),u.sr);break;case u.ye:window.location.reload();break;default:e[u.Gv]=t,m(t),_(e)}})(p)}),[p]),(0,n.createElement)(n.Fragment,null,(()=>{switch(d){case u.sG:return(0,n.createElement)(c.V,{title:v.errorState.title,subtitle:v.errorState.subtitle,error:v.errorState.error});case u.ye:return t;default:return(0,n.createElement)(h.Z,null)}})())}},2722:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var n=a(9307),o=a(5609),r=a(9818),s=a(2200),l=a(1211),i=a(9519),d=a(1996),u=a(950),c=a(349),m=a(1340),p=a(6831),b=a(5736);const g=()=>{const{setDrawerActiveView:e,setSidebarActiveView:t,setCurrentOnboardingData:a}=(0,r.useDispatch)(p.h),g=(0,r.useSelect)((e=>e(p.h).getCurrentOnboardingData())),h=g.storeDetails.productInfo;(0,n.useEffect)((()=>{t(s.Jq),e(s.dv)}),[]);const w={heading:(0,b.__)("Tell us about your products","wp-module-onboarding"),subheading:(0,b.__)("What type of products will you be selling?","wp-module-onboarding"),question:(0,b.__)("How many products will you be selling?","wp-module-onboarding"),typeOptions:[{content:(0,b.__)("Physical products","wp-module-onboarding"),value:"physical"},{content:(0,b.__)("Digital / Downloadable products","wp-module-onboarding"),value:"downloads"},{content:(0,b.__)("Subscriptions","wp-module-onboarding"),value:"subscriptions"},{content:(0,b.__)("Book rooms, houses or rent products","wp-module-onboarding"),value:"bookings"},{content:(0,b.__)("Membership","wp-module-onboarding"),value:"memberships"},{content:(0,b.__)("Customizable products","wp-module-onboarding"),value:"product-add-ons"},{content:(0,b.__)("Bundles of products","wp-module-onboarding"),value:"product-bundles"},{content:(0,b.__)("Let your users ask a quote for your products","wp-module-onboarding"),value:"product-quotes"}],numberOptions:[{content:"0",value:"0"},{content:"1 - 10",value:"1-10"},{content:"11 - 100",value:"11-100"},{content:"101 - 1000",value:"101-1000"},{content:"1000 +",value:"1000+"}],buttonText:(0,b.__)("Continue Setup","wp-module-onboarding")};return(0,n.createElement)(m.g,null,(0,n.createElement)(d.Z,{isBgPrimary:!0,isCentered:!0},(0,n.createElement)(c.Z,{className:"ecommerce-step"},(0,n.createElement)("div",{className:"nfd-onboarding-experience-step onboarding-product-step onboarding-ecommerce-step"},(0,n.createElement)("div",{className:"nfd-card-heading center"},(0,n.createElement)(i.Z,{heading:w.heading,subHeading:w.subheading})),(0,n.createElement)("div",{className:"nfd-product-step-options"},w.typeOptions.map((e=>(0,n.createElement)(o.CheckboxControl,{key:e.value,checked:h.product_types.includes(e.value),label:e.content,onChange:t=>{return n=e.value,o=t,a({...g,storeDetails:{...g.storeDetails,productInfo:{...h,product_types:o?[...null==h?void 0:h.product_types,n]:null==h?void 0:h.product_types.filter((e=>e!==n))}}});var n,o}})))),(0,n.createElement)("div",{className:"step-product-numbers"},(0,n.createElement)("span",{style:{fontSize:"16px"}},w.question),(0,n.createElement)(o.RadioControl,{className:"components-radio-control__input",selected:null==h?void 0:h.product_count,options:w.numberOptions.map((e=>({label:e.content,value:e.value}))),onChange:e=>a({...g,storeDetails:{...g.storeDetails,productInfo:{...h,product_count:e}}})})),(0,n.createElement)(l.Z,{text:w.buttonText}),(0,n.createElement)(u.Z,null)))))}}}]); \ No newline at end of file diff --git a/build/1.7.0/833.js b/build/1.7.0/833.js new file mode 100644 index 000000000..e6bf878a8 --- /dev/null +++ b/build/1.7.0/833.js @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[833],{9519:(e,t,a)=>{a.d(t,{Z:()=>n});var o=a(9307);const n=(0,o.memo)((e=>{let{heading:t,subHeading:a,question:n}=e;return(0,o.createElement)("div",null,t&&(0,o.createElement)("h2",{className:"nfd-step-card-heading"},t),a&&(0,o.createElement)("h3",{className:n?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},a),n&&(0,o.createElement)("h3",{className:"nfd-step-card-question"},n))}))},4401:(e,t,a)=>{a.d(t,{V:()=>l});var o=a(9307),n=a(1996),r=a(4316),s=a(950);const l=e=>{let{title:t,subtitle:a,error:l}=e;return(0,o.createElement)(n.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,o.createElement)(r.Z,{title:t,subtitle:a}),(0,o.createElement)("div",{className:"step-error-state__logo"}),(0,o.createElement)("h3",{className:"step-error-state__error"},l),(0,o.createElement)(s.Z,null))}},9291:(e,t,a)=>{a.d(t,{L:()=>s,Y:()=>o.Z});var o=a(35),n=a(9307),r=a(682);const s=()=>(0,n.createElement)("div",{className:"image-upload-loader--loading-box"},(0,n.createElement)(r.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},349:(e,t,a)=>{a.d(t,{Z:()=>s});var o=a(9307),n=(a(5736),a(4184)),r=a.n(n);const s=e=>{let{className:t="",children:a}=e;return(0,o.createElement)("div",{className:r()("nfd-onboarding-large-card",t)},a)}},1340:(e,t,a)=>{a.d(t,{U:()=>g,g:()=>h});var o=a(9307),n=a(9818),r=a(4333),s=a(5736),l=a(9291),i=a(6831),d=a(7625),c=a(2200),u=a(4401);var m=a(1589);const g=e=>{let{children:t,navigationStateCallback:a=!1}=e;const g=(0,r.useViewportMatch)("medium"),{storedThemeStatus:p,brandName:w}=(0,n.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),b=(e=>({loader:{title:(0,s.sprintf)( +/* 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 */ +(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:h,setIsDrawerOpened:_,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:v}=(0,n.useDispatch)(i.h),y=async()=>{const e=await(0,d.YL)(c.DY);return null!=e&&e.error?c.vv:e.body.status},E=()=>{switch(p){case c.Rq:case c.GV:return(()=>{if("function"==typeof a)return a();g&&_(!0),f(!1),v(!0)})();default:_(!1),f(!0),v(!1)}};(0,o.useEffect)((()=>{E(),p===c.a0&&(async()=>{const e=await y();switch(e){case c.Zh:setTimeout((async()=>{if(await y()!==c.GV)return h(c.vv);window.location.reload()}),c.YU);break;case c.GV:window.location.reload();break;default:h(e)}})()}),[p]);const S=async()=>(h(c.Zh),(await(0,d.N9)(c.DY,!0,!1)).error?h(c.Rq):window.location.reload());return(0,o.createElement)(o.Fragment,null,(()=>{switch(p){case c.vv:return(0,o.createElement)(m.Z,{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:S,modalExitButtonText:(0,s.__)("Exit to WordPress","wp-module-onboarding")});case c.Rq:return(0,o.createElement)(u.V,{title:b.errorState.title,subtitle:b.errorState.subtitle,error:b.errorState.error});case c.GV:return t;default:return(0,o.createElement)(l.Y,{title:b.loader.title,subtitle:b.loader.subtitle})}})())};var p=a(3421),w=a(1392);var b=a(9884);const h=e=>{let{children:t,navigationStateCallback:a=!1}=e;const l=(0,r.useViewportMatch)("medium"),[d,m]=(0,o.useState)(c.Sr),{storedPluginsStatus:g,brandName:h}=(0,n.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),_=(e=>({errorState:{title:(0,s.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,s.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,w.I)("Site")),subtitle:(0,s.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,s.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(h),{updatePluginsStatus:f,setIsDrawerOpened:v,setIsDrawerSuppressed:y,setIsHeaderNavigationEnabled:E}=(0,n.useDispatch)(i.h),S=async()=>{const e=await(0,p.qC)(c.Gv);return null!=e&&e.error?c.sG:e.body.status},x=e=>{switch(e){case c.sG:case c.ye:return(()=>{if("function"==typeof a)return a();l&&v(!0),y(!1),E(!0)})();default:v(!1),y(!0),E(!1)}};(0,o.useEffect)((()=>{x(d)}),[d]);return(0,o.useEffect)((()=>{m(g[c.Gv]),g[c.Gv]===c.Ck&&(async e=>{const t=await S();switch(t){case c.Sr:setTimeout((async()=>{if(await S()!==c.ye)return g[c.Gv]=c.sG,f(g),m(c.sG);window.location.reload()}),c.sr);break;case c.ye:window.location.reload();break;default:e[c.Gv]=t,m(t),f(e)}})(g)}),[g]),(0,o.createElement)(o.Fragment,null,(()=>{switch(d){case c.sG:return(0,o.createElement)(u.V,{title:_.errorState.title,subtitle:_.errorState.subtitle,error:_.errorState.error});case c.ye:return t;default:return(0,o.createElement)(b.Z,null)}})())}},9833:(e,t,a)=>{a.r(t),a.d(t,{default:()=>h});var o=a(9307),n=a(5609),r=a(9818),s=a(9250),l=a(2200),i=a(9519),d=a(1996),c=a(950),u=a(349),m=a(1340),g=a(6831),p=a(7282),w=a(682),b=a(5736);const h=()=>{const{setDrawerActiveView:e,setSidebarActiveView:t,setCurrentOnboardingData:a}=(0,r.useDispatch)(g.h),h=(0,s.s0)(),[_,f]=(0,o.useState)(),v=(0,r.useSelect)((e=>e(g.h).getCurrentOnboardingData()));(0,o.useEffect)((()=>{t(l.Jq),e(l.dv),(async()=>{const e=await(0,p.e)();f(e)})()}),[]);const y={heading:(0,b.__)("Configure your tax information","wp-module-onboarding"),subheading:(0,b.__)("Do you want to enable tax rates and calculations?","wp-module-onboarding"),options:[{content:(0,b.__)("Yes, enable tax rates and calculations","wp-module-onboarding"),value:"1",data:{wc_connect_taxes_enabled:"yes",woocommerce_calc_taxes:"yes"}},{content:(0,b.__)("I will configure my own tax information later","wp-module-onboarding"),value:"3",data:{wc_connect_taxes_enabled:"no",woocommerce_calc_taxes:"yes"}},{content:(0,b.__)("I don't charge sales tax","wp-module-onboarding"),value:"5",data:{woocommerce_no_sales_tax:!0,woocommerce_calc_taxes:"no",wc_connect_taxes_enabled:"no"}}],buttonText:(0,b.__)("Continue Setup","wp-module-onboarding")};(0,o.useEffect)((()=>{if(_&&null!==_&&void 0===v.storeDetails.tax){var e,t;const n=y.options.find((o=_,e=>Object.entries(e.data).every((e=>{let[t,a]=e;return(null==o?void 0:o[t])===a})))),r=null!==(e=null==n?void 0:n.data)&&void 0!==e?e:{};a({...v,storeDetails:{...v.storeDetails,tax:{...null!==(t=v.storeDetails.tax)&&void 0!==t?t:{},...r,option:null==n?void 0:n.value,isStoreDetailsFilled:null!==_.woocommerce_store_postcode}}})}var o}),[_,v.storeDetails]);const{tax:E}=v.storeDetails;return(0,o.createElement)(m.g,null,(0,o.createElement)(d.Z,{isBgPrimary:!0,isCentered:!0},(0,o.createElement)(u.Z,{className:"ecommerce-step"},(0,o.createElement)("div",{className:"nfd-onboarding-experience-step onboarding-ecommerce-step"},(0,o.createElement)("div",{className:"nfd-card-heading center onboarding-ecommerce-step"},(0,o.createElement)(i.Z,{heading:y.heading,subHeading:y.subheading})),(0,o.createElement)(w.Z,{type:"fade-in-disabled",after:_},(0,o.createElement)(n.RadioControl,{className:"nfd-onboarding-experience-step-tabs components-radio-control__input radio-control-tax-step radio-control-main",selected:null==E?void 0:E.option,options:y.options.map((e=>({label:e.content,value:e.value}))),onChange:e=>(e=>{const t=y.options.find((t=>t.value===e));a({...v,storeDetails:{...v.storeDetails,tax:{...t.data,option:t.value,isStoreDetailsFilled:null==E?void 0:E.isStoreDetailsFilled}}})})(e)})),(0,o.createElement)("button",{className:"nfd-nav-card-button nfd-card-button",disabled:null===_||void 0===(null==E?void 0:E.option),onClick:()=>{h("/ecommerce/step/products")}},y.buttonText),(0,o.createElement)(c.Z,null)))))}},7282:(e,t,a)=>{a.d(t,{e:()=>n});var o=a(3768);async function n(){return await(0,o.pn)().catch((()=>({})))}}}]); \ No newline at end of file diff --git a/build/1.6.1/848.js b/build/1.7.0/848.js similarity index 94% rename from build/1.6.1/848.js rename to build/1.7.0/848.js index d1b9169eb..06161105c 100644 --- a/build/1.6.1/848.js +++ b/build/1.7.0/848.js @@ -1 +1 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[848],{3848:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(4106),a=i(5736),l=i(1392),d=i(2601);const u=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),s=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:m,brandConfig:f}=(0,o.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),v=((e,n)=>({introduction:{heading:(0,a.__)("Typography","wp-module-onboarding"),subheading:(0,a.__)("Give tone and taste to your words using a curated set of great type treatments.","wp-module-onboarding"),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-typography-illustration"},information:{headingWithDescriptions:[{heading:(0,a.__)("Not just what we say, how we say it","wp-module-onboarding"),description:(0,a.sprintf)((0,a.__)("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,l.I)("site"))}]},help:{fullService:{text:(0,a.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,a.__)("Technical Support","wp-module-onboarding"),link:e}}}))(b,m);return(0,t.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-typography"},(0,t.createElement)(g,{heading:v.introduction.heading,subheading:v.introduction.subheading,icon:v.introduction.icon}),!1!==(null==f||null===(e=f.views)||void 0===e||null===(n=e.sidebar)||void 0===n||null===(i=n.illustration)||void 0===i?void 0:i.shown)&&(0,t.createElement)(u,{cssIcon:v.illustration.icon}),(0,t.createElement)(s,{headingWithDescriptions:v.information.headingWithDescriptions}),(0,t.createElement)(c,null,v.help.fullService.link&&(0,t.createElement)(h,{text:v.help.fullService.text,onClick:()=>window.open(v.help.fullService.link,"_blank")}),(0,t.createElement)(p,{text:v.help.support.text,link:v.help.support.link})))}}}]); \ No newline at end of file +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[848],{3848:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(6831),a=i(5736),l=i(1392),d=i(2601);const u=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),s=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:m,brandConfig:f}=(0,o.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),v=((e,n)=>({introduction:{heading:(0,a.__)("Typography","wp-module-onboarding"),subheading:(0,a.__)("Give tone and taste to your words using a curated set of great type treatments.","wp-module-onboarding"),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-typography-illustration"},information:{headingWithDescriptions:[{heading:(0,a.__)("Not just what we say, how we say it","wp-module-onboarding"),description:(0,a.sprintf)((0,a.__)("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,l.I)("site"))}]},help:{fullService:{text:(0,a.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,a.__)("Technical Support","wp-module-onboarding"),link:e}}}))(b,m);return(0,t.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-typography"},(0,t.createElement)(g,{heading:v.introduction.heading,subheading:v.introduction.subheading,icon:v.introduction.icon}),!1!==(null==f||null===(e=f.views)||void 0===e||null===(n=e.sidebar)||void 0===n||null===(i=n.illustration)||void 0===i?void 0:i.shown)&&(0,t.createElement)(u,{cssIcon:v.illustration.icon}),(0,t.createElement)(s,{headingWithDescriptions:v.information.headingWithDescriptions}),(0,t.createElement)(c,null,v.help.fullService.link&&(0,t.createElement)(h,{text:v.help.fullService.text,onClick:()=>window.open(v.help.fullService.link,"_blank")}),(0,t.createElement)(p,{text:v.help.support.text,link:v.help.support.link})))}}}]); \ No newline at end of file diff --git a/build/1.6.1/856.js b/build/1.7.0/856.js similarity index 100% rename from build/1.6.1/856.js rename to build/1.7.0/856.js diff --git a/build/1.7.0/858.js b/build/1.7.0/858.js new file mode 100644 index 000000000..625bbd999 --- /dev/null +++ b/build/1.7.0/858.js @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[858],{4401:(e,t,r)=>{r.d(t,{V:()=>l});var a=r(9307),s=r(1996),o=r(4316),n=r(950);const l=e=>{let{title:t,subtitle:r,error:l}=e;return(0,a.createElement)(s.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,a.createElement)(o.Z,{title:t,subtitle:r}),(0,a.createElement)("div",{className:"step-error-state__logo"}),(0,a.createElement)("h3",{className:"step-error-state__error"},l),(0,a.createElement)(n.Z,null))}},9291:(e,t,r)=>{r.d(t,{L:()=>n,Y:()=>a.Z});var a=r(35),s=r(9307),o=r(682);const n=()=>(0,s.createElement)("div",{className:"image-upload-loader--loading-box"},(0,s.createElement)(o.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},1340:(e,t,r)=>{r.d(t,{U:()=>w,g:()=>b});var a=r(9307),s=r(9818),o=r(4333),n=r(5736),l=r(9291),i=r(6831),u=r(7625),c=r(2200),d=r(4401);var m=r(1589);const w=e=>{let{children:t,navigationStateCallback:r=!1}=e;const w=(0,o.useViewportMatch)("medium"),{storedThemeStatus:h,brandName:p}=(0,s.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),g=(e=>({loader:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(p),{updateThemeStatus:b,setIsDrawerOpened:_,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:v}=(0,s.useDispatch)(i.h),S=async()=>{const e=await(0,u.YL)(c.DY);return null!=e&&e.error?c.vv:e.body.status},y=()=>{switch(h){case c.Rq:case c.GV:return(()=>{if("function"==typeof r)return r();w&&_(!0),f(!1),v(!0)})();default:_(!1),f(!0),v(!1)}};(0,a.useEffect)((()=>{y(),h===c.a0&&(async()=>{const e=await S();switch(e){case c.Zh:setTimeout((async()=>{if(await S()!==c.GV)return b(c.vv);window.location.reload()}),c.YU);break;case c.GV:window.location.reload();break;default:b(e)}})()}),[h]);const E=async()=>(b(c.Zh),(await(0,u.N9)(c.DY,!0,!1)).error?b(c.Rq):window.location.reload());return(0,a.createElement)(a.Fragment,null,(()=>{switch(h){case c.vv:return(0,a.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,n.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,n.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:E,modalExitButtonText:(0,n.__)("Exit to WordPress","wp-module-onboarding")});case c.Rq:return(0,a.createElement)(d.V,{title:g.errorState.title,subtitle:g.errorState.subtitle,error:g.errorState.error});case c.GV:return t;default:return(0,a.createElement)(l.Y,{title:g.loader.title,subtitle:g.loader.subtitle})}})())};var h=r(3421),p=r(1392);var g=r(9884);const b=e=>{let{children:t,navigationStateCallback:r=!1}=e;const l=(0,o.useViewportMatch)("medium"),[u,m]=(0,a.useState)(c.Sr),{storedPluginsStatus:w,brandName:b}=(0,s.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),_=(e=>({errorState:{title:(0,n.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,n.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,p.I)("Site")),subtitle:(0,n.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(b),{updatePluginsStatus:f,setIsDrawerOpened:v,setIsDrawerSuppressed:S,setIsHeaderNavigationEnabled:y}=(0,s.useDispatch)(i.h),E=async()=>{const e=await(0,h.qC)(c.Gv);return null!=e&&e.error?c.sG:e.body.status},N=e=>{switch(e){case c.sG:case c.ye:return(()=>{if("function"==typeof r)return r();l&&v(!0),S(!1),y(!0)})();default:v(!1),S(!0),y(!1)}};(0,a.useEffect)((()=>{N(u)}),[u]);return(0,a.useEffect)((()=>{m(w[c.Gv]),w[c.Gv]===c.Ck&&(async e=>{const t=await E();switch(t){case c.Sr:setTimeout((async()=>{if(await E()!==c.ye)return w[c.Gv]=c.sG,f(w),m(c.sG);window.location.reload()}),c.sr);break;case c.ye:window.location.reload();break;default:e[c.Gv]=t,m(t),f(e)}})(w)}),[w]),(0,a.createElement)(a.Fragment,null,(()=>{switch(u){case c.sG:return(0,a.createElement)(d.V,{title:_.errorState.title,subtitle:_.errorState.subtitle,error:_.errorState.error});case c.ye:return t;default:return(0,a.createElement)(g.Z,null)}})())}},8858:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var a=r(9307),s=r(9250),o=r(9818),n=r(6138),l=r(6831),i=r(1996),u=r(2200),c=r(1340),d=r(6332);const m=()=>{const e=(0,s.TH)(),[t,r]=(0,a.useState)(),{currentStep:m,themeStatus:w}=(0,o.useSelect)((t=>({currentStep:t(l.h).getStepFromPath(e.pathname),themeStatus:t(l.h).getThemeStatus()})),[]),{updateThemeStatus:h,setDrawerActiveView:p,setSidebarActiveView:g}=(0,o.useDispatch)(l.h);return(0,a.useEffect)((()=>{g(u.Jq),p(u.jN)}),[]),(0,a.useEffect)((()=>{u.GV===w&&(async()=>{const e=await(0,n.C)(m.patternId,!0);if(null!=e&&e.error)return h(u.a0);r(null==e?void 0:e.body)})()}),[w]),(0,a.createElement)(c.U,null,(0,a.createElement)(d.V3,null,(0,a.createElement)(i.Z,{className:"theme-fonts-preview"},(0,a.createElement)("div",{className:"theme-fonts-preview__title-bar"},(0,a.createElement)("div",{className:"theme-fonts-preview__title-bar__browser"},(0,a.createElement)("span",{className:"theme-fonts-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-fonts-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-fonts-preview__title-bar__browser__dot"}))),!t&&(0,a.createElement)(d.i5,{styling:"large",viewportWidth:1300}),t&&(0,a.createElement)(d.i5,{blockGrammer:t,styling:"large",viewportWidth:1300}))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/860.js b/build/1.7.0/860.js similarity index 95% rename from build/1.6.1/860.js rename to build/1.7.0/860.js index f64678f16..44b59f2c5 100644 --- a/build/1.6.1/860.js +++ b/build/1.7.0/860.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[860],{5860:(e,n,i)=>{i.r(n),i.d(n,{default:()=>g});var t=i(9307),o=i(9818),l=i(4106),r=i(5736),a=i(1392),d=i(6713);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),g=()=>{var e,n,i;const{brandName:g,techSupportLink:f,fullServiceCreativeTeamLink:m,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(l.h).getNewfoldBrandName(),techSupportLink:e(l.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(l.h).getfullServiceCreativeTeamUrl(),brandConfig:e(l.h).getNewfoldBrandConfig()}))),w=((e,n,i)=>({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:d.Z},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)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[860],{5860:(e,n,i)=>{i.r(n),i.d(n,{default:()=>g});var t=i(9307),o=i(9818),l=i(6831),r=i(5736),a=i(1392),d=i(6713);const s=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),u=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),c=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),h=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),g=()=>{var e,n,i;const{brandName:g,techSupportLink:f,fullServiceCreativeTeamLink:m,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(l.h).getNewfoldBrandName(),techSupportLink:e(l.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(l.h).getfullServiceCreativeTeamUrl(),brandConfig:e(l.h).getNewfoldBrandConfig()}))),w=((e,n,i)=>({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:d.Z},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 */ (0,r.__)("Pick one of these professionally-designed website styles to start your %s %s.","wp-module-onboarding"),e,(0,a.I)("site"))},{description:(0,r.sprintf)( /* translators: %s: website */ diff --git a/build/1.6.1/869.js b/build/1.7.0/869.js similarity index 95% rename from build/1.6.1/869.js rename to build/1.7.0/869.js index 905b2cc86..c84cc2bcb 100644 --- a/build/1.6.1/869.js +++ b/build/1.7.0/869.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[869],{2869:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(4106),a=i(5736),l=i(1392),d=i(304);const u=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),s=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),h=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),c=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:m,brandConfig:f}=(0,o.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),w=((e,n)=>({introduction:{heading:(0,a.__)("Header & Menu","wp-module-onboarding"),subheading:(0,a.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[869],{2869:(e,n,i)=>{i.r(n),i.d(n,{default:()=>b});var t=i(9307),o=i(9818),r=i(6831),a=i(5736),l=i(1392),d=i(304);const u=(0,t.lazy)((()=>i.e(657).then(i.bind(i,8657)))),s=(0,t.lazy)((()=>i.e(574).then(i.bind(i,2574)))),h=(0,t.lazy)((()=>i.e(856).then(i.bind(i,3856)))),c=(0,t.lazy)((()=>i.e(378).then(i.bind(i,5378)))),p=(0,t.lazy)((()=>i.e(33).then(i.bind(i,33)))),g=(0,t.lazy)((()=>i.e(58).then(i.bind(i,1058)))),b=()=>{var e,n,i;const{techSupportLink:b,fullServiceCreativeTeamLink:m,brandConfig:f}=(0,o.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),w=((e,n)=>({introduction:{heading:(0,a.__)("Header & Menu","wp-module-onboarding"),subheading:(0,a.sprintf)( /* translators: %s: site */ (0,a.__)("Surface key content in your %s -- who you are, what your about and where to find things.","wp-module-onboarding"),(0,l.I)("site")),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-header-menu-illustration"},information:{headingWithDescriptions:[{heading:(0,a.__)("Putting your best foot forward","wp-module-onboarding"),description:(0,a.sprintf)( /* translators: 1: site 2: Site */ diff --git a/build/1.7.0/880.js b/build/1.7.0/880.js new file mode 100644 index 000000000..97c87e1d5 --- /dev/null +++ b/build/1.7.0/880.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[880],{4880:(e,s,a)=>{a.r(s),a.d(s,{default:()=>c});var n=a(9307),r=a(1996),t=a(2200),d=a(6831),i=a(9818),o=a(5736);const c=()=>{const{setIsDrawerOpened:e,setSidebarActiveView:s}=(0,i.useDispatch)(d.h);return(0,n.useEffect)((()=>{s(t.Jq),e(!0),setDrawerActiveView(t.BP)}),[]),(0,n.createElement)(r.Z,{isPadded:!0},(0,o.__)("Resources Page.","wp-module-onboarding"))}}}]); \ No newline at end of file diff --git a/build/1.7.0/888.js b/build/1.7.0/888.js new file mode 100644 index 000000000..da545b716 --- /dev/null +++ b/build/1.7.0/888.js @@ -0,0 +1,9 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[888],{1211:(e,a,t)=>{t.d(a,{Z:()=>d});var s=t(9307),n=t(9250),r=t(9818),l=t(6831);const i=e=>{let{text:a,handleClick:t,disabled:n,className:r}=e;return(0,s.createElement)("button",{type:"button",className:`${r} nfd-card-button`,onClick:()=>{t()},disabled:n},a)};var u=t(7533),o=t(2200);const d=e=>{let{text:a,disabled:t}=e;const d=(0,n.s0)(),c=(0,n.TH)(),{nextStep:p,currentData:m}=(0,r.useSelect)((e=>({nextStep:e(l.h).getNextStep(),currentData:e(l.h).getCurrentOnboardingData()})),[c.path]),g=null===p||!1===p;return(0,s.createElement)(i,{className:"nfd-nav-card-button",text:a,handleClick:()=>g?async function(){m&&(m.isComplete=(new Date).getTime(),(0,u.kB)(m));const e="ecommerce"===window.nfdOnboarding.currentFlow?o.br:o.hF;window.location.replace(e)}():d(p.path),disabled:t})}},9519:(e,a,t)=>{t.d(a,{Z:()=>n});var s=t(9307);const n=(0,s.memo)((e=>{let{heading:a,subHeading:t,question:n}=e;return(0,s.createElement)("div",null,a&&(0,s.createElement)("h2",{className:"nfd-step-card-heading"},a),t&&(0,s.createElement)("h3",{className:n?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},t),n&&(0,s.createElement)("h3",{className:"nfd-step-card-question"},n))}))},349:(e,a,t)=>{t.d(a,{Z:()=>l});var s=t(9307),n=(t(5736),t(4184)),r=t.n(n);const l=e=>{let{className:a="",children:t}=e;return(0,s.createElement)("div",{className:r()("nfd-onboarding-large-card",a)},t)}},5888:(e,a,t)=>{t.r(a),t.d(a,{default:()=>y});var s=t(9307),n=t(1996),r=t(349),l=t(2200),i=t(5521),u=t(6831),o=t(9818),d=t(9519),c=t(1211),p=t(950),m=t(682),g=t(6557);const y=()=>{const{setDrawerActiveView:e,setIsDrawerSuppressed:a,setIsHeaderNavigationEnabled:t,setSidebarActiveView:y,setCurrentOnboardingData:b}=(0,o.useDispatch)(u.h),{currentData:v}=(0,o.useSelect)((e=>({currentData:e(u.h).getCurrentOnboardingData()})),[]);(0,s.useEffect)((()=>{y(l.Jq),a(!0),e(l.mz),t(!0),N()}),[]);const[h,f]=(0,s.useState)(!1),[T,w]=(0,s.useState)(),[E,_]=(0,s.useState)(""),C=(0,i.Z)(),N=async()=>{var e,a,t,s,n,r,l,i,u,o,d;const c=await(0,g.P)();if(w(null==c?void 0:c.body),"string"==typeof(null==v||null===(e=v.data)||void 0===e||null===(a=e.siteType)||void 0===a?void 0:a.primary)||"string"==typeof(null==v||null===(t=v.data)||void 0===t||null===(s=t.siteType)||void 0===s?void 0:s.secondary)){var p,m,y,h;const e=null==v||null===(p=v.data)||void 0===p||null===(m=p.siteType)||void 0===m?void 0:m.primary,a=null==v||null===(y=v.data)||void 0===y||null===(h=y.siteType)||void 0===h?void 0:h.secondary;v.data.siteType.primary={refers:"custom",value:e},v.data.siteType.secondary={refers:"custom",value:a},b(v)}var f,T,E;_(null!==(n=null==v||null===(r=v.data)||void 0===r||null===(l=r.siteType)||void 0===l||null===(i=l.primary)||void 0===i?void 0:i.value)&&void 0!==n?n:""),"custom"===(null==v||null===(u=v.data)||void 0===u||null===(o=u.siteType)||void 0===o||null===(d=o.primary)||void 0===d?void 0:d.refers)&&S(null==v||null===(f=v.data)||void 0===f||null===(T=f.siteType)||void 0===T||null===(E=T.primary)||void 0===E?void 0:E.value)},k=e=>{f(!1),_(e),v.data.siteType.primary.refers="slug",v.data.siteType.primary.value=e,b(v)},S=e=>{f(!0),_(e),v.data.siteType.primary.refers="custom",v.data.siteType.primary.value=e,b(v)};return(0,s.createElement)(n.Z,{isBgPrimary:!0,isCentered:!0},(0,s.createElement)(r.Z,null,(0,s.createElement)("div",{className:"nfd-card-heading center"},(0,s.createElement)(d.Z,{heading:C.heading,subHeading:C.subheading,question:C.question})),(0,s.createElement)(m.Z,{type:"fade-in-disabled",after:T},(0,s.createElement)("div",{className:"nfd-setup-primary-categories"},T&&(()=>{const e=null==T?void 0:T.types;return Object.keys(e).map(((a,t)=>{var n,r,l;return(0,s.createElement)("div",{key:null===(n=e[a])||void 0===n?void 0:n.slug,tabIndex:t+1,role:"button",className:(e[a].slug!==E||h?"":"chosenPrimaryCategory ")+"nfd-card-pri-category",onClick:()=>k(e[a].slug),onKeyDown:()=>k(e[a].slug)},(0,s.createElement)("div",{className:"nfd-card-pri-category-wrapper"},(0,s.createElement)("span",{className:"nfd-card-pri-category-wrapper__icon "+(e[a].slug===E?"nfd-card-pri-category-wrapper__icon-selected ":""),style:{backgroundImage:`url(${null===(r=e[a])||void 0===r?void 0:r.icon})`}}),(0,s.createElement)("span",{className:"categName"},null===(l=e[a])||void 0===l?void 0:l.label)))}))})()),(0,s.createElement)("div",{className:"nfd-setup-primary-custom"},(0,s.createElement)("p",{className:"nfd-setup-primary-custom__tellus-text"},"or tell us here:"),(0,s.createElement)("input",{type:"search",onChange:e=>{var a;return S(null==e||null===(a=e.target)||void 0===a?void 0:a.value)},className:"nfd-setup-primary-custom__tellus-input",placeholder:C.customInputPlaceholderText,value:h?E:""}))),(0,s.createElement)(c.Z,{text:C.buttonText}),(0,s.createElement)(p.Z,null)))}},5521:(e,a,t)=>{t.d(a,{Z:()=>r});var s=t(5736),n=t(1392);const r=()=>({heading:(0,s.sprintf)( +/* translators: %s: site */ +(0,s.__)("Help us tailor this setup to your %s","wp-module-onboarding"),(0,n.I)("site")),subheading:(0,s.sprintf)( +/* translators: %s: SITE */ +(0,s.__)("ABOUT YOUR %s","wp-module-onboarding"),(0,n.I)("SITE")),question:(0,s.sprintf)( +/* translators: %s: site */ +(0,s.__)("What type of %s is it?","wp-module-onboarding"),(0,n.I)("site")),buttonText:(0,s.__)("Continue Setup","wp-module-onboarding"),customInputPlaceholderText:(0,s.sprintf)( +/* translators: %s: site */ +(0,s.__)("Enter to search your %s type","wp-module-onboarding"),(0,n.I)("site")),customInputLabel:(0,s.__)("or tell us here:","wp-module-onboarding")})},6557:(e,a,t)=>{t.d(a,{P:()=>u});var s=t(6329),n=t(4704);const r=JSON.parse('{"body":{"types":{"business":{"slug":"business","label":"Business","icon":"https://cdn.hiive.space/site-classification/business.svg","emoji":"💼","schema":"Corporation","secondaryTypes":{"agency-consulting":{"primaryType":"business","slug":"agency-consulting","label":"Agency & Consulting"},"arts-crafts":{"primaryType":"business","slug":"arts-crafts","label":"Arts & Crafts"},"autos-repair":{"primaryType":"business","slug":"autos-repair","label":"Autos & Repair"},"child-care":{"primaryType":"business","slug":"child-care","label":"Child Care"},"events":{"primaryType":"business","slug":"events","label":"Events"},"finance":{"primaryType":"business","slug":"finance","label":"Finance"},"garden-florist":{"primaryType":"business","slug":"garden-florist","label":"Florist & Garden Center"},"hr-recruiting":{"primaryType":"business","slug":"hr-recruiting","label":"HR & Recruiting"},"insurance":{"primaryType":"business","slug":"insurance","label":"Insurance"},"legal":{"primaryType":"business","slug":"legal","label":"Legal"},"marketing":{"primaryType":"business","slug":"marketing","label":"Marketing"},"outdoors":{"primaryType":"business","slug":"outdoors","label":"Outdoors"},"pr-communications":{"primaryType":"business","slug":"pr-communications","label":"PR & Communications"},"real-estate-management":{"primaryType":"business","slug":"real-estate-management","label":"Real Estate & Management"},"shopping-retail":{"primaryType":"business","slug":"shopping-retail","label":"Shopping & Retail"},"trades-repair-services":{"primaryType":"business","slug":"trades-repair-services","label":"Trades & Repair Services"},"weddings":{"primaryType":"business","slug":"weddings","label":"Weddings"}}}}}}');var l=t(6989),i=t.n(l);async function u(){const e=await(0,s.D)(i()({url:(0,n.F)("site-classification")}));return 0===e.body.length?r:e}}}]); \ No newline at end of file diff --git a/build/1.6.1/9.js b/build/1.7.0/9.js similarity index 97% rename from build/1.6.1/9.js rename to build/1.7.0/9.js index e37ed0785..0a36b64cb 100644 --- a/build/1.6.1/9.js +++ b/build/1.7.0/9.js @@ -1,3 +1,3 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[9],{8009:(e,i,n)=>{n.r(i),n.d(i,{default:()=>b});var o=n(9307),t=n(9818),r=n(4106),l=n(5736),a=n(1392),d=n(8126);const s=(0,o.lazy)((()=>n.e(657).then(n.bind(n,8657)))),u=(0,o.lazy)((()=>n.e(574).then(n.bind(n,2574)))),c=(0,o.lazy)((()=>n.e(856).then(n.bind(n,3856)))),h=(0,o.lazy)((()=>n.e(378).then(n.bind(n,5378)))),p=(0,o.lazy)((()=>n.e(33).then(n.bind(n,33)))),g=(0,o.lazy)((()=>n.e(58).then(n.bind(n,1058)))),b=()=>{var e,i,n;const{techSupportLink:b,fullServiceCreativeTeamLink:m,brandConfig:v}=(0,t.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),f=((e,i)=>({introduction:{heading:(0,l.__)("Colors","wp-module-onboarding"),subheading:(0,l.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[9],{8009:(e,i,n)=>{n.r(i),n.d(i,{default:()=>b});var o=n(9307),t=n(9818),r=n(6831),l=n(5736),a=n(1392),d=n(8126);const s=(0,o.lazy)((()=>n.e(657).then(n.bind(n,8657)))),u=(0,o.lazy)((()=>n.e(574).then(n.bind(n,2574)))),c=(0,o.lazy)((()=>n.e(856).then(n.bind(n,3856)))),h=(0,o.lazy)((()=>n.e(378).then(n.bind(n,5378)))),p=(0,o.lazy)((()=>n.e(33).then(n.bind(n,33)))),g=(0,o.lazy)((()=>n.e(58).then(n.bind(n,1058)))),b=()=>{var e,i,n;const{techSupportLink:b,fullServiceCreativeTeamLink:m,brandConfig:v}=(0,t.useSelect)((e=>({techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),f=((e,i)=>({introduction:{heading:(0,l.__)("Colors","wp-module-onboarding"),subheading:(0,l.sprintf)( /* translators: %s: site */ (0,l.__)("Whether your brand is vibrant, understated, elegant or edgy use color to delight your %s visitors.","wp-module-onboarding"),(0,a.I)("site")),icon:d.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-colors-illustration"},information:{headingWithDescriptions:[{heading:(0,l.__)("Let a splash of color make a splash with your visitors with your Global Site Colors.","wp-module-onboarding"),description:(0,l.__)("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,l.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:i},support:{text:(0,l.__)("Technical Support","wp-module-onboarding"),link:e}}}))(b,m);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-colors"},(0,o.createElement)(g,{heading:f.introduction.heading,subheading:f.introduction.subheading,icon:f.introduction.icon}),!1!==(null==v||null===(e=v.views)||void 0===e||null===(i=e.sidebar)||void 0===i||null===(n=i.illustration)||void 0===n?void 0:n.shown)&&(0,o.createElement)(s,{cssIcon:f.illustration.icon}),(0,o.createElement)(u,{headingWithDescriptions:f.information.headingWithDescriptions}),(0,o.createElement)(c,null,f.help.fullService.link&&(0,o.createElement)(h,{text:f.help.fullService.text,onClick:()=>window.open(f.help.fullService.link,"_blank")}),(0,o.createElement)(p,{text:f.help.support.text,link:f.help.support.link})))}}}]); \ No newline at end of file diff --git a/build/1.6.1/907.js b/build/1.7.0/907.js similarity index 54% rename from build/1.6.1/907.js rename to build/1.7.0/907.js index 725126917..10dcb534c 100644 --- a/build/1.6.1/907.js +++ b/build/1.7.0/907.js @@ -1,8 +1,8 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[907],{4316:(e,t,a)=>{a.d(t,{Z:()=>r});var l=a(9307);const r=e=>{let{title:t,subtitle:a,children:r}=e;return(0,l.createElement)("div",{className:"nfd-main-heading"},(0,l.createElement)("h2",{className:"nfd-main-heading__title"},t),a&&(0,l.createElement)("h3",{className:"nfd-main-heading__subtitle"},a),r)}},5791:(e,t,a)=>{a.d(t,{Z:()=>_});var l=a(9307),r=a(4184),n=a.n(r),o=a(5158),i=a(9250),s=a(2200),c=a(6989),d=a.n(c),u=a(4704);const m=e=>{let{className:t="nfd-onboarding-layout__base",children:a}=e;const r=(0,i.TH)(),c=document.querySelector(".nfd-onboard-content");return(0,l.useEffect)((()=>{null==c||c.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,o.speak)(t,"assertive")}(r,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){d()({url:(0,u.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${s.Db}-pageview`,{stepID:r.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=r.pathname}),[r.pathname]),(0,l.createElement)("div",{className:n()("nfd-onboarding-layout",t)},a)};var v=a(682);const p=e=>{let{children:t}=e;return(0,l.createElement)("section",{className:"is-contained"},t)},_=e=>{let{className:t="",children:a,isBgPrimary:r=!1,isCentered:o=!1,isVerticallyCentered:i=!1,isContained:s=!1,isPadded:c=!1,isFadeIn:d=!0}=e;const u=s?p:l.Fragment;return(0,l.createElement)(v.Z,{type:d&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,l.createElement)(m,{className:n()("nfd-onboarding-layout__common",t,{"is-bg-primary":r},{"is-centered":o},{"is-vertically-centered":i},{"is-padded":c})},(0,l.createElement)(u,null,a)))}},7004:(e,t,a)=>{a.d(t,{L:()=>c,Y:()=>i});var l=a(9307),r=a(5791),n=a(4316),o=a(950);const i=e=>{let{title:t,subtitle:a}=e;return(0,l.createElement)(r.Z,{className:"step-loader",isVerticallyCentered:!0},(0,l.createElement)(n.Z,{title:t,subtitle:a}),(0,l.createElement)("div",{className:"step-loader__logo-container"},(0,l.createElement)("div",{className:"step-loader__logo"})),(0,l.createElement)(o.Z,null))};var s=a(682);const c=()=>(0,l.createElement)("div",{className:"image-upload-loader--loading-box"},(0,l.createElement)(s.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},950:(e,t,a)=>{a.d(t,{Z:()=>i});var l=a(9307),r=a(4106),n=a(9818),o=a(5736);const i=e=>{let{question:t=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:a=(0,o.__)("Hire our Experts","wp-module-onboarding")}=e;const i=(0,n.select)(r.h).getHireExpertsUrl();return i&&(0,l.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,l.createElement)("a",{href:i,target:"_blank",rel:"noreferrer"},a))}},676:(e,t,a)=>{a.d(t,{Z:()=>m});var l=a(9307),r=a(5736),n=a(5609),o=a(9818),i=a(9250),s=a(7533),c=a(4106),d=a(8395),u=a(2200);const m=(0,l.memo)((()=>{const e=(0,i.s0)(),t=(0,i.TH)(),{nextStep:a,currentData:m,socialData:v}=(0,o.useSelect)((e=>({nextStep:e(c.h).getNextStep(),currentData:e(c.h).getCurrentOnboardingData(),socialData:e(c.h).getOnboardingSocialData()})),[]),p=null===a||!1===a,{setOnboardingSocialData:_}=(0,o.useDispatch)(c.h);async function b(e){if(m){if(m.isComplete=(new Date).getTime(),null!=e&&e.includes("basic-info")){const e=await async function(){const e=await(0,d.Gw)(),t=await(0,d.I2)(v);return null!==(null==t?void 0:t.error)?null==e?void 0:e.body:null==t?void 0:t.body}();e&&_(e)}(0,s.kB)(m)}const t="ecommerce"===window.nfdOnboarding.currentFlow?u.br:u.hF;window.location.replace(t)}return p?(0,l.createElement)(n.Button,{className:"skip-button",onClick:()=>b(t.pathname)},(0,r.__)("Skip this Step","wp-module-onboarding")):(0,l.createElement)(n.Button,{className:"skip-button",onClick:()=>e(a.path)},(0,r.__)("Skip this Step","wp-module-onboarding"))}))},4907:(e,t,a)=>{a.r(t),a.d(t,{default:()=>C});var l=a(9307),r=a(5791),n=a(4316),o=a(9818),i=a(7798),s=a(5736),c=a(1392);const d=(0,l.memo)((e=>{let{title:t,hint:a,placeholder:r,height:n,maxCharacters:o,textValue:i,textValueSetter:c}=e;const d=(0,l.useRef)(null),[u,m]=(0,l.useState)("nfd-input__field");return(0,l.useEffect)((()=>{d.current.style.height=n;const e=d.current.scrollHeight;d.current.style.height=e+"px"}),[i]),(0,l.createElement)("div",{className:"nfd-input"},(0,l.createElement)("label",null,(0,l.createElement)("div",{className:"nfd-input__label"},(0,l.createElement)("p",{className:"nfd-input__label_title"},(0,s.__)(t,"wp-module-onboarding")),(0,l.createElement)("p",{className:"nfd-input__label_maxChar"},`(${o-(null==i?void 0:i.length)} characters left)`)),(0,l.createElement)("textarea",{type:"text",className:u,ref:d,style:{height:n},placeholder:r,value:i,maxLength:o,onChange:e=>(e=>{e.preventDefault(),c(e.target.value),e.target.value.length==o?m("nfd-input__field nfd-input__field_error"):m("nfd-input__field")})(e)}),(0,l.createElement)("p",{className:"nfd-input__hint"},(0,s.__)(a,"wp-module-onboarding"))))}));var u=a(676);const m=(0,l.memo)((e=>{let{title:t,desc:a,icon:r,socialData:n,isSocialFormOpen:o,setIsSocialFormOpen:i}=e;const d={defaultTitle:(0,s.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[907],{9291:(e,t,a)=>{a.d(t,{L:()=>n,Y:()=>l.Z});var l=a(35),o=a(9307),r=a(682);const n=()=>(0,o.createElement)("div",{className:"image-upload-loader--loading-box"},(0,o.createElement)(r.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},676:(e,t,a)=>{a.d(t,{Z:()=>m});var l=a(9307),o=a(5736),r=a(5609),n=a(9818),i=a(9250),s=a(7533),c=a(6831),d=a(8395),u=a(2200);const m=(0,l.memo)((e=>{let{callback:t=!1}=e;const a=(0,i.s0)(),m=(0,i.TH)(),{nextStep:v,currentData:p,socialData:_}=(0,n.useSelect)((e=>({nextStep:e(c.h).getNextStep(),currentData:e(c.h).getCurrentOnboardingData(),socialData:e(c.h).getOnboardingSocialData()})),[]),b=null===v||!1===v,{setOnboardingSocialData:g}=(0,n.useDispatch)(c.h);async function w(e){if(p){if(p.isComplete=(new Date).getTime(),null!=e&&e.includes("basic-info")){const e=await async function(){const e=await(0,d.Gw)(),t=await(0,d.I2)(_);return null!==(null==t?void 0:t.error)?null==e?void 0:e.body:null==t?void 0:t.body}();e&&g(e)}(0,s.kB)(p)}const t="ecommerce"===window.nfdOnboarding.currentFlow?u.br:u.hF;window.location.replace(t)}return b?(0,l.createElement)(r.Button,{className:"skip-button",onClick:()=>w(m.pathname)},(0,o.__)("Skip this Step","wp-module-onboarding")):(0,l.createElement)(r.Button,{className:"skip-button",onClick:()=>{"function"==typeof t&&t(),a(v.path)}},(0,o.__)("Skip this Step","wp-module-onboarding"))}))},4907:(e,t,a)=>{a.r(t),a.d(t,{default:()=>C});var l=a(9307),o=a(1996),r=a(4316),n=a(9818),i=a(7798),s=a(5736),c=a(1392);const d=(0,l.memo)((e=>{let{title:t,hint:a,placeholder:o,height:r,maxCharacters:n,textValue:i,textValueSetter:c}=e;const d=(0,l.useRef)(null),[u,m]=(0,l.useState)("nfd-input__field");return(0,l.useEffect)((()=>{d.current.style.height=r;const e=d.current.scrollHeight;d.current.style.height=e+"px"}),[i]),(0,l.createElement)("div",{className:"nfd-input"},(0,l.createElement)("label",null,(0,l.createElement)("div",{className:"nfd-input__label"},(0,l.createElement)("p",{className:"nfd-input__label_title"},(0,s.__)(t,"wp-module-onboarding")),(0,l.createElement)("p",{className:"nfd-input__label_maxChar"},`(${n-(null==i?void 0:i.length)} characters left)`)),(0,l.createElement)("textarea",{type:"text",className:u,ref:d,style:{height:r},placeholder:o,value:i,maxLength:n,onChange:e=>(e=>{e.preventDefault(),c(e.target.value),e.target.value.length==n?m("nfd-input__field nfd-input__field_error"):m("nfd-input__field")})(e)}),(0,l.createElement)("p",{className:"nfd-input__hint"},(0,s.__)(a,"wp-module-onboarding"))))}));var u=a(676);const m=(0,l.memo)((e=>{let{title:t,desc:a,icon:o,socialData:r,isSocialFormOpen:n,setIsSocialFormOpen:i}=e;const d={defaultTitle:(0,s.sprintf)( /* translators: %s: Site */ (0,s.__)("WordPress %s","wp-module-onboarding"),(0,c.I)("Site")),defaultDesc:(0,s.sprintf)( /* translators: %s: Site */ -(0,s.__)("Just another WordPress %s","wp-module-onboarding"),(0,c.I)("Site")),defaultIcon:"--default-logo-icon",defaultUrl:"https://bluehost.com"},u=""===r||void 0===r?d.defaultIcon:r,m=""===t?d.defaultTitle:t,v=""===a?d.defaultDesc:a,p=""===t?d.defaultUrl:`https://${null==t?void 0:t.toLowerCase().replace(/\s/g,"").replace(/\W/g,"")}.com`,[_,b]=(0,l.useState)(""),[g,w]=(0,l.useState)(""),[f,h]=(0,l.useState)(""),[E,N]=(0,l.useState)(""),[S,y]=(0,l.useState)(""),[k,D]=(0,l.useState)(""),[T,I]=(0,l.useState)("");(0,l.useEffect)((()=>{var e,t,a,l,r;if(b(null!==(e=null==n?void 0:n.facebook_site)&&void 0!==e?e:""),w(null!==(t=null==n?void 0:n.twitter_site)&&void 0!==t?t:""),h(null!==(a=null==n?void 0:n.instagram_url)&&void 0!==a?a:""),N(null!==(l=null==n?void 0:n.youtube_url)&&void 0!==l?l:""),y(null!==(r=null==n?void 0:n.linkedin_url)&&void 0!==r?r:""),n&&Object.keys(n).includes("other_social_urls")){var o,i;const e=n.other_social_urls;Object.keys(e).includes("yelp_url")&&D(null!==(o=e.yelp_url)&&void 0!==o?o:""),Object.keys(e).includes("tiktok_url")&&I(null!==(i=e.tiktok_url)&&void 0!==i?i:"")}}),[n]);const O=e=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol},C=[{url:_,image:"var(--facebook-colored-icon)"},{url:g,image:"var(--twitter-colored-icon)"},{url:f,image:"var(--instagram-colored-icon)"},{url:E,image:"var(--youtube-colored-icon)"},{url:S,image:"var(--linkedin-colored-icon)"},{url:k,image:"var(--yelp-colored-icon)"},{url:T,image:"var(--tiktok-colored-icon)"}];return(0,l.createElement)("div",null,(0,l.createElement)("h4",{className:"mini-preview"},"Preview"),(0,l.createElement)("div",{className:"browser-container"},(0,l.createElement)("div",{className:"browser-row-title"},(0,l.createElement)("div",{className:"browser-row-title_main"},(0,l.createElement)("div",{className:"browser-row-title_buttons"},(0,l.createElement)("span",{className:"browser-dot",style:{background:"#ED594A"}}),(0,l.createElement)("span",{className:"browser-dot",style:{background:"#FDD800"}}),(0,l.createElement)("span",{className:"browser-dot",style:{background:"#5AC05A"}}))),(0,l.createElement)("div",{className:"browser-row-title_bar"},(0,l.createElement)("div",{className:"browser-row-title_bar_before"},(0,l.createElement)("div",{className:"browser-row-title_bar_before-curve"})),(0,l.createElement)("div",{className:"browser-row-title_bar_main"},(0===r||void 0===r)&&(0,l.createElement)("div",{className:"browser-icon-title",style:{content:"var(--default-logo-icon)"}}),0!==r&&void 0!==r&&(0,l.createElement)("img",{className:"browser-icon-title",src:u.url,alt:"Thumb"}),(0,l.createElement)("div",{className:"browser-row-title_bar_main-text"},null==m?void 0:m.substring(0,20)),(0,l.createElement)("div",{className:"browser-row-title_bar_main-cross"},"x")),(0,l.createElement)("div",{className:"browser-row-title_bar_after"},(0,l.createElement)("div",{className:"browser-row-title_bar_after-curve"})))),(0,l.createElement)("div",{className:"browser-row-search"},(0,l.createElement)("div",{className:"browser-row-search__icons"},(0,l.createElement)("div",{className:"browser-icon",style:{backgroundImage:"var(--back-icon)"}}),(0,l.createElement)("div",{className:"browser-icon",style:{backgroundImage:"var(--forward-icon)"}}),(0,l.createElement)("div",{className:"browser-icon",style:{backgroundImage:"var(--reload-icon)"}})),(0,l.createElement)("div",{className:"browser-row-search__search-box"},(0,l.createElement)("input",{className:"browser-row-search__search-box_input",type:"text",onChange:()=>{},value:p})),(0,l.createElement)("div",{className:"browser-row-search__more"},(0,l.createElement)("div",{className:"browser-icon",style:{backgroundImage:"var(--more-icon)"}}))),(0,l.createElement)("div",{className:"browser-content"},(0,l.createElement)("div",{className:"browser-content_top-row"},(0,l.createElement)("h4",{className:"browser-content_top-row-name"},m),(0,l.createElement)("span",{className:"browser-content_top-row-link"},p)),(0,l.createElement)("h5",{className:"browser-content_desc"},v),(0,l.createElement)("div",{className:"browser-content_social"},C.map(((e,t)=>(0,l.createElement)("div",{key:e.image,tabIndex:t+1,role:"button",onClick:()=>i(!o),onKeyDown:()=>i(!o),className:`browser-content_social_icon ${e.url?O(e.url)||"--invalid-url":"--no-url"}`,style:{backgroundImage:e.image}})))))))}));var v=a(682),p=a(8395),_=a(4106),b=a(7004),g=a(6329),w=a(4704),f=a(6989),h=a.n(f);const E=(0,l.memo)((e=>{let{icon:t,iconSetter:a}=e;const r=(0,l.useRef)(null),[n,o]=(0,l.useState)(!1),[i,c]=(0,l.useState)(!1);async function d(e){if(e){o(!0);const r=await async function(e){const t=await function(e){return new Promise(((t,a)=>{const l=new FileReader;l.addEventListener("loadend",(e=>t(e.target.result))),l.addEventListener("error",a),l.readAsArrayBuffer(e)}))}(e),a={"Content-Type":"image/png"};return a["Content-Disposition"]="attachment; filename="+e.name,await(0,g.D)(h()({url:(0,w.$)("media"),method:"POST",headers:a,body:t}))}(e);if(r){var t,l;const e=null==r||null===(t=r.body)||void 0===t?void 0:t.id,n=null==r||null===(l=r.body)||void 0===l?void 0:l.source_url;a({id:e,url:n})}}o(!1)}return(0,l.createElement)("div",{className:"image-uploader"},(0,l.createElement)("h4",{className:"image-uploader_heading"},"Logo"),n?(0,l.createElement)("div",{className:"image-uploader_window"},(0,l.createElement)(b.L,null)):(0,l.createElement)("div",{className:`image-uploader_window ${i&&"image-uploader_window--on-drag"}`,onDrop:e=>(e=>{var t,a,l,r,n;e.preventDefault(),e.stopPropagation(),c(!1),null!=e&&null!==(t=e.dataTransfer)&&void 0!==t&&t.files&&(null==e||null===(a=e.dataTransfer)||void 0===a?void 0:a.files.length)>0&&"image"===(null==e||null===(l=e.dataTransfer)||void 0===l||null===(r=l.files[0])||void 0===r?void 0:r.type.split("/")[0])&&d(null==e||null===(n=e.dataTransfer)||void 0===n?void 0:n.files[0])})(e),onDragOver:e=>(e=>{e.preventDefault(),e.stopPropagation(),c(!0)})(e),onDragEnter:e=>(e=>{e.preventDefault(),e.stopPropagation(),c(!0)})(e),onDragLeave:e=>(e=>{e.preventDefault(),e.stopPropagation(),c(!1)})(e)},(0,l.createElement)("div",{className:"image-uploader_window-empty"}),(0,l.createElement)("div",{className:"image-uploader_window-logo"},(0===t||void 0===t)&&(0,l.createElement)("div",{className:"image-uploader_window-logo-icon-empty"}),0!==t&&void 0!==t&&(0,l.createElement)("img",{className:"image-uploader_window-logo-icon-selected",src:t.url,alt:"Thumb"})),(0,l.createElement)("div",{className:"image-uploader_window-reset"},0!==t&&void 0!==t&&(0,l.createElement)("button",{className:"image-uploader_window-reset-btn",onClick:()=>{var e;a(0),(null==r||null===(e=r.current)||void 0===e?void 0:e.files.length)>0&&(r.current.value="")}},(0,s.__)("RESET","wp-module-onboarding")),(0===t||void 0===t)&&(0,l.createElement)("button",{className:"image-uploader_window-reset-btn",onClick:()=>{null==r||r.current.click()}},(0,s.__)("UPLOAD","wp-module-onboarding")),(0,l.createElement)("input",{className:"image-uploader_window-select-btn",accept:"image/*",type:"file",ref:r,onChange:e=>{var t,a,l;null!=e&&null!==(t=e.target)&&void 0!==t&&t.files&&(null==e||null===(a=e.target)||void 0===a?void 0:a.files.length)>0&&d(null==e||null===(l=e.target)||void 0===l?void 0:l.files[0])}}))))}));var N=a(2819),S=a.n(N),y=a(9196);const k=e=>{let t;const[a,r]=(0,y.useState)(!0);return"hide"==e.content?(0,l.createElement)("div",null,e.children):(0,l.createElement)("div",{className:"Tooltip-Wrapper",onMouseEnter:()=>{t=setTimeout((()=>{r(!0)}),e.delay||400)},onMouseLeave:()=>{clearInterval(t),r(!1)}},e.children,a&&(0,l.createElement)("div",{className:`Tooltip-Tip ${e.direction||"top"}`},e.content))},D=e=>{let{socialData:t,setSocialData:a,setIsValidSocials:r,isSocialFormOpen:n,setIsSocialFormOpen:o}=e;const[i,c]=(0,l.useState)(""),[d,u]=(0,l.useState)(""),[m,v]=(0,l.useState)(""),[p,_]=(0,l.useState)(""),[b,g]=(0,l.useState)(""),[w,f]=(0,l.useState)(""),[h,E]=(0,l.useState)(""),[N,y]=(0,l.useState)([]),D={FACEBOOK:"facebook",TWITTER:"twitter",INSTAGRAM:"instagram",YOUTUBE:"youtube",LINKEDIN:"linkedin",YELP:"yelp",TIKTOK:"tiktok"},T={FACEBOOK:i,TWITTER:d,INSTAGRAM:m,YOUTUBE:p,LINKEDIN:b,YELP:w,TIKTOK:h};var I={facebook_site:i,twitter_site:d,instagram_url:m,youtube_url:p,linkedin_url:b,other_social_urls:{yelp_url:w,tiktok_url:h}};(0,l.useEffect)((()=>{var e,a,l,r,n;if(c(null!==(e=null==t?void 0:t.facebook_site)&&void 0!==e?e:""),u(null!==(a=null==t?void 0:t.twitter_site)&&void 0!==a?a:""),v(null!==(l=null==t?void 0:t.instagram_url)&&void 0!==l?l:""),_(null!==(r=null==t?void 0:t.youtube_url)&&void 0!==r?r:""),g(null!==(n=null==t?void 0:t.linkedin_url)&&void 0!==n?n:""),t&&Object.keys(t).includes("other_social_urls")){var o,i;const e=t.other_social_urls;Object.keys(e).includes("yelp_url")&&f(null!==(o=e.yelp_url)&&void 0!==o?o:""),Object.keys(e).includes("tiktok_url")&&E(null!==(i=e.tiktok_url)&&void 0!==i?i:"")}}),[t]);const O=S().debounce((function(e,t){let a=!1;if(e===D.TWITTER?(t=t.substring(t.indexOf("@")+1),(t.match("^[A-Za-z0-9_]{1,25}$")||t.match("^http(?:s)?://(?:www.)?twitter.com/([A-Za-z0-9_]{1,25})/?$"))&&(a=!0)):(e=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol})(t)&&(a=!0),a){var l=N.filter((function(t){return t!==e}));y(l)}else N.includes(e)||y([...N,e]);((e,t,a)=>{if(!e){var l=a.filter((function(e){return e!==t}));y(l)}0==a.length?r(!0):r(!1)})(t,e,N)}),1e3),C=e=>{const t=e.target.value;switch(e.target.id){case D.FACEBOOK:O(D.FACEBOOK,t),c(t),I.facebook_site=t;break;case D.TWITTER:O(D.TWITTER,t),u(t),I.twitter_site=t;break;case D.INSTAGRAM:O(D.INSTAGRAM,t),v(t),I.instagram_url=t;break;case D.YOUTUBE:O(D.YOUTUBE,t),_(t),I.youtube_url=t;break;case D.LINKEDIN:O(D.LINKEDIN,t),g(t),I.linkedin_url=t;break;case D.YELP:O(D.YELP,t),f(t),I.other_social_urls.yelp_url=t;break;case D.TIKTOK:O(D.TIKTOK,t),E(t),I.other_social_urls.tiktok_url=t}a(I)};return(0,l.createElement)("div",{className:"social-form"},(0,l.createElement)("div",{className:"social-form__top-row",onClick:e=>{o(!n)}},(0,l.createElement)("div",{className:"social-form__top-row_heading"},(0,s.__)("Social Media","wp-module-onboarding")),(0,l.createElement)("div",{className:"social-form__top-row_icon "+(n?"social-form__top-row_icon_opened":"")})),(0,l.createElement)("form",{className:n?"social-form__main-active":"social-form__main-hidden",onSubmit:e=>{handleSubmit(e)}},function(){var e,t=[];for(var a in D)t.push((0,l.createElement)("div",{key:D[a]},(0,l.createElement)("label",{className:`social-form__label social-form__label-${D[a]}`},(0,l.createElement)("div",{className:"social-form__label_icon",style:{backgroundImage:`var(--${D[a]}-icon)`}}),(0,l.createElement)("div",{className:"social-form__label_name"},(0,s.__)(D[a].replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})),"wp-module-onboarding"))),(0,l.createElement)(k,{content:N.includes(D[a])?(e=D[a],e===D.TWITTER?`Please enter a valid ${e} URL / username`:`Please enter a valid ${e} URL`):"hide",direction:"top"},(0,l.createElement)("input",{className:N.includes(D[a])?"social-form__box-error":"social-form__box",type:"url",id:`${D[a]}`,value:T[a],onChange:e=>{C(e)}}))));return t}()))},T=()=>{const e=(0,l.useRef)(null),[t,a]=(0,l.useState)(),[r,n]=(0,l.useState)(!1),[b,g]=(0,l.useState)(),[w,f]=(0,l.useState)(""),[h,N]=(0,l.useState)(""),[S,y]=(0,l.useState)(0),[k,T]=(0,l.useState)(),[I,O]=(0,l.useState)(!1),[C,x]=(0,l.useState)(!1),{setOnboardingSocialData:L,setCurrentOnboardingData:A}=(0,o.useDispatch)(_.h),{editEntityRecord:P}=(0,o.useDispatch)(i.store),{getEditedEntityRecord:R}=(0,o.useSelect)((e=>e(i.store)),[]),{currentData:F}=(0,o.useSelect)((e=>({currentData:e(_.h).getCurrentOnboardingData()})),[]),K={siteTitle:{title:(0,s.sprintf)( +(0,s.__)("Just another WordPress %s","wp-module-onboarding"),(0,c.I)("Site")),defaultIcon:"--default-logo-icon",defaultUrl:"https://bluehost.com"},u=""===o||void 0===o?d.defaultIcon:o,m=""===t?d.defaultTitle:t,v=""===a?d.defaultDesc:a,p=""===t?d.defaultUrl:`https://${null==t?void 0:t.toLowerCase().replace(/\s/g,"").replace(/\W/g,"")}.com`,[_,b]=(0,l.useState)(""),[g,w]=(0,l.useState)(""),[f,h]=(0,l.useState)(""),[E,N]=(0,l.useState)(""),[S,y]=(0,l.useState)(""),[k,D]=(0,l.useState)(""),[T,I]=(0,l.useState)("");(0,l.useEffect)((()=>{var e,t,a,l,o;if(b(null!==(e=null==r?void 0:r.facebook_site)&&void 0!==e?e:""),w(null!==(t=null==r?void 0:r.twitter_site)&&void 0!==t?t:""),h(null!==(a=null==r?void 0:r.instagram_url)&&void 0!==a?a:""),N(null!==(l=null==r?void 0:r.youtube_url)&&void 0!==l?l:""),y(null!==(o=null==r?void 0:r.linkedin_url)&&void 0!==o?o:""),r&&Object.keys(r).includes("other_social_urls")){var n,i;const e=r.other_social_urls;Object.keys(e).includes("yelp_url")&&D(null!==(n=e.yelp_url)&&void 0!==n?n:""),Object.keys(e).includes("tiktok_url")&&I(null!==(i=e.tiktok_url)&&void 0!==i?i:"")}}),[r]);const O=e=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol},C=[{url:_,image:"var(--facebook-colored-icon)"},{url:g,image:"var(--twitter-colored-icon)"},{url:f,image:"var(--instagram-colored-icon)"},{url:E,image:"var(--youtube-colored-icon)"},{url:S,image:"var(--linkedin-colored-icon)"},{url:k,image:"var(--yelp-colored-icon)"},{url:T,image:"var(--tiktok-colored-icon)"}];return(0,l.createElement)("div",null,(0,l.createElement)("h4",{className:"mini-preview"},"Preview"),(0,l.createElement)("div",{className:"browser-container"},(0,l.createElement)("div",{className:"browser-row-title"},(0,l.createElement)("div",{className:"browser-row-title_main"},(0,l.createElement)("div",{className:"browser-row-title_buttons"},(0,l.createElement)("span",{className:"browser-dot",style:{background:"#ED594A"}}),(0,l.createElement)("span",{className:"browser-dot",style:{background:"#FDD800"}}),(0,l.createElement)("span",{className:"browser-dot",style:{background:"#5AC05A"}}))),(0,l.createElement)("div",{className:"browser-row-title_bar"},(0,l.createElement)("div",{className:"browser-row-title_bar_before"},(0,l.createElement)("div",{className:"browser-row-title_bar_before-curve"})),(0,l.createElement)("div",{className:"browser-row-title_bar_main"},(0===o||void 0===o)&&(0,l.createElement)("div",{className:"browser-icon-title",style:{content:"var(--default-logo-icon)"}}),0!==o&&void 0!==o&&(0,l.createElement)("img",{className:"browser-icon-title",src:u.url,alt:"Thumb"}),(0,l.createElement)("div",{className:"browser-row-title_bar_main-text"},null==m?void 0:m.substring(0,20)),(0,l.createElement)("div",{className:"browser-row-title_bar_main-cross"},"x")),(0,l.createElement)("div",{className:"browser-row-title_bar_after"},(0,l.createElement)("div",{className:"browser-row-title_bar_after-curve"})))),(0,l.createElement)("div",{className:"browser-row-search"},(0,l.createElement)("div",{className:"browser-row-search__icons"},(0,l.createElement)("div",{className:"browser-icon",style:{backgroundImage:"var(--back-icon)"}}),(0,l.createElement)("div",{className:"browser-icon",style:{backgroundImage:"var(--forward-icon)"}}),(0,l.createElement)("div",{className:"browser-icon",style:{backgroundImage:"var(--reload-icon)"}})),(0,l.createElement)("div",{className:"browser-row-search__search-box"},(0,l.createElement)("input",{className:"browser-row-search__search-box_input",type:"text",onChange:()=>{},value:p})),(0,l.createElement)("div",{className:"browser-row-search__more"},(0,l.createElement)("div",{className:"browser-icon",style:{backgroundImage:"var(--more-icon)"}}))),(0,l.createElement)("div",{className:"browser-content"},(0,l.createElement)("div",{className:"browser-content_top-row"},(0,l.createElement)("h4",{className:"browser-content_top-row-name"},m),(0,l.createElement)("span",{className:"browser-content_top-row-link"},p)),(0,l.createElement)("h5",{className:"browser-content_desc"},v),(0,l.createElement)("div",{className:"browser-content_social"},C.map(((e,t)=>(0,l.createElement)("div",{key:e.image,tabIndex:t+1,role:"button",onClick:()=>i(!n),onKeyDown:()=>i(!n),className:`browser-content_social_icon ${e.url?O(e.url)||"--invalid-url":"--no-url"}`,style:{backgroundImage:e.image}})))))))}));var v=a(682),p=a(8395),_=a(6831),b=a(9291),g=a(6329),w=a(4704),f=a(6989),h=a.n(f);const E=(0,l.memo)((e=>{let{icon:t,iconSetter:a}=e;const o=(0,l.useRef)(null),[r,n]=(0,l.useState)(!1),[i,c]=(0,l.useState)(!1);async function d(e){if(e){n(!0);const o=await async function(e){const t=await function(e){return new Promise(((t,a)=>{const l=new FileReader;l.addEventListener("loadend",(e=>t(e.target.result))),l.addEventListener("error",a),l.readAsArrayBuffer(e)}))}(e),a={"Content-Type":"image/png"};return a["Content-Disposition"]="attachment; filename="+e.name,await(0,g.D)(h()({url:(0,w.$)("media"),method:"POST",headers:a,body:t}))}(e);if(o){var t,l;const e=null==o||null===(t=o.body)||void 0===t?void 0:t.id,r=null==o||null===(l=o.body)||void 0===l?void 0:l.source_url;a({id:e,url:r})}}n(!1)}return(0,l.createElement)("div",{className:"image-uploader"},(0,l.createElement)("h4",{className:"image-uploader_heading"},"Logo"),r?(0,l.createElement)("div",{className:"image-uploader_window"},(0,l.createElement)(b.L,null)):(0,l.createElement)("div",{className:`image-uploader_window ${i&&"image-uploader_window--on-drag"}`,onDrop:e=>(e=>{var t,a,l,o,r;e.preventDefault(),e.stopPropagation(),c(!1),null!=e&&null!==(t=e.dataTransfer)&&void 0!==t&&t.files&&(null==e||null===(a=e.dataTransfer)||void 0===a?void 0:a.files.length)>0&&"image"===(null==e||null===(l=e.dataTransfer)||void 0===l||null===(o=l.files[0])||void 0===o?void 0:o.type.split("/")[0])&&d(null==e||null===(r=e.dataTransfer)||void 0===r?void 0:r.files[0])})(e),onDragOver:e=>(e=>{e.preventDefault(),e.stopPropagation(),c(!0)})(e),onDragEnter:e=>(e=>{e.preventDefault(),e.stopPropagation(),c(!0)})(e),onDragLeave:e=>(e=>{e.preventDefault(),e.stopPropagation(),c(!1)})(e)},(0,l.createElement)("div",{className:"image-uploader_window-empty"}),(0,l.createElement)("div",{className:"image-uploader_window-logo"},(0===t||void 0===t)&&(0,l.createElement)("div",{className:"image-uploader_window-logo-icon-empty"}),0!==t&&void 0!==t&&(0,l.createElement)("img",{className:"image-uploader_window-logo-icon-selected",src:t.url,alt:"Thumb"})),(0,l.createElement)("div",{className:"image-uploader_window-reset"},0!==t&&void 0!==t&&(0,l.createElement)("button",{className:"image-uploader_window-reset-btn",onClick:()=>{var e;a(0),(null==o||null===(e=o.current)||void 0===e?void 0:e.files.length)>0&&(o.current.value="")}},(0,s.__)("RESET","wp-module-onboarding")),(0===t||void 0===t)&&(0,l.createElement)("button",{className:"image-uploader_window-reset-btn",onClick:()=>{null==o||o.current.click()}},(0,s.__)("UPLOAD","wp-module-onboarding")),(0,l.createElement)("input",{className:"image-uploader_window-select-btn",accept:"image/*",type:"file",ref:o,onChange:e=>{var t,a,l;null!=e&&null!==(t=e.target)&&void 0!==t&&t.files&&(null==e||null===(a=e.target)||void 0===a?void 0:a.files.length)>0&&d(null==e||null===(l=e.target)||void 0===l?void 0:l.files[0])}}))))}));var N=a(2819),S=a.n(N),y=a(9196);const k=e=>{let t;const[a,o]=(0,y.useState)(!0);return"hide"==e.content?(0,l.createElement)("div",null,e.children):(0,l.createElement)("div",{className:"Tooltip-Wrapper",onMouseEnter:()=>{t=setTimeout((()=>{o(!0)}),e.delay||400)},onMouseLeave:()=>{clearInterval(t),o(!1)}},e.children,a&&(0,l.createElement)("div",{className:`Tooltip-Tip ${e.direction||"top"}`},e.content))},D=e=>{let{socialData:t,setSocialData:a,setIsValidSocials:o,isSocialFormOpen:r,setIsSocialFormOpen:n}=e;const[i,c]=(0,l.useState)(""),[d,u]=(0,l.useState)(""),[m,v]=(0,l.useState)(""),[p,_]=(0,l.useState)(""),[b,g]=(0,l.useState)(""),[w,f]=(0,l.useState)(""),[h,E]=(0,l.useState)(""),[N,y]=(0,l.useState)([]),D={FACEBOOK:"facebook",TWITTER:"twitter",INSTAGRAM:"instagram",YOUTUBE:"youtube",LINKEDIN:"linkedin",YELP:"yelp",TIKTOK:"tiktok"},T={FACEBOOK:i,TWITTER:d,INSTAGRAM:m,YOUTUBE:p,LINKEDIN:b,YELP:w,TIKTOK:h};var I={facebook_site:i,twitter_site:d,instagram_url:m,youtube_url:p,linkedin_url:b,other_social_urls:{yelp_url:w,tiktok_url:h}};(0,l.useEffect)((()=>{var e,a,l,o,r;if(c(null!==(e=null==t?void 0:t.facebook_site)&&void 0!==e?e:""),u(null!==(a=null==t?void 0:t.twitter_site)&&void 0!==a?a:""),v(null!==(l=null==t?void 0:t.instagram_url)&&void 0!==l?l:""),_(null!==(o=null==t?void 0:t.youtube_url)&&void 0!==o?o:""),g(null!==(r=null==t?void 0:t.linkedin_url)&&void 0!==r?r:""),t&&Object.keys(t).includes("other_social_urls")){var n,i;const e=t.other_social_urls;Object.keys(e).includes("yelp_url")&&f(null!==(n=e.yelp_url)&&void 0!==n?n:""),Object.keys(e).includes("tiktok_url")&&E(null!==(i=e.tiktok_url)&&void 0!==i?i:"")}}),[t]);const O=S().debounce((function(e,t){let a=!1;if(e===D.TWITTER?(t=t.substring(t.indexOf("@")+1),(t.match("^[A-Za-z0-9_]{1,25}$")||t.match("^http(?:s)?://(?:www.)?twitter.com/([A-Za-z0-9_]{1,25})/?$"))&&(a=!0)):(e=>{let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol})(t)&&(a=!0),a){var l=N.filter((function(t){return t!==e}));y(l)}else N.includes(e)||y([...N,e]);((e,t,a)=>{if(!e){var l=a.filter((function(e){return e!==t}));y(l)}0==a.length?o(!0):o(!1)})(t,e,N)}),1e3),C=e=>{const t=e.target.value;switch(e.target.id){case D.FACEBOOK:O(D.FACEBOOK,t),c(t),I.facebook_site=t;break;case D.TWITTER:O(D.TWITTER,t),u(t),I.twitter_site=t;break;case D.INSTAGRAM:O(D.INSTAGRAM,t),v(t),I.instagram_url=t;break;case D.YOUTUBE:O(D.YOUTUBE,t),_(t),I.youtube_url=t;break;case D.LINKEDIN:O(D.LINKEDIN,t),g(t),I.linkedin_url=t;break;case D.YELP:O(D.YELP,t),f(t),I.other_social_urls.yelp_url=t;break;case D.TIKTOK:O(D.TIKTOK,t),E(t),I.other_social_urls.tiktok_url=t}a(I)};return(0,l.createElement)("div",{className:"social-form"},(0,l.createElement)("div",{className:"social-form__top-row",onClick:e=>{n(!r)}},(0,l.createElement)("div",{className:"social-form__top-row_heading"},(0,s.__)("Social Media","wp-module-onboarding")),(0,l.createElement)("div",{className:"social-form__top-row_icon "+(r?"social-form__top-row_icon_opened":"")})),(0,l.createElement)("form",{className:r?"social-form__main-active":"social-form__main-hidden",onSubmit:e=>{handleSubmit(e)}},function(){var e,t=[];for(var a in D)t.push((0,l.createElement)("div",{key:D[a]},(0,l.createElement)("label",{className:`social-form__label social-form__label-${D[a]}`},(0,l.createElement)("div",{className:"social-form__label_icon",style:{backgroundImage:`var(--${D[a]}-icon)`}}),(0,l.createElement)("div",{className:"social-form__label_name"},(0,s.__)(D[a].replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})),"wp-module-onboarding"))),(0,l.createElement)(k,{content:N.includes(D[a])?(e=D[a],e===D.TWITTER?`Please enter a valid ${e} URL / username`:`Please enter a valid ${e} URL`):"hide",direction:"top"},(0,l.createElement)("input",{className:N.includes(D[a])?"social-form__box-error":"social-form__box",type:"url",id:`${D[a]}`,value:T[a],onChange:e=>{C(e)}}))));return t}()))},T=()=>{const e=(0,l.useRef)(null),[t,a]=(0,l.useState)(),[o,r]=(0,l.useState)(!1),[b,g]=(0,l.useState)(),[w,f]=(0,l.useState)(""),[h,N]=(0,l.useState)(""),[S,y]=(0,l.useState)(0),[k,T]=(0,l.useState)(),[I,O]=(0,l.useState)(!1),[C,x]=(0,l.useState)(!1),{setOnboardingSocialData:L,setCurrentOnboardingData:A}=(0,n.useDispatch)(_.h),{editEntityRecord:R}=(0,n.useDispatch)(i.store),{getEditedEntityRecord:P}=(0,n.useSelect)((e=>e(i.store)),[]),{currentData:K}=(0,n.useSelect)((e=>({currentData:e(_.h).getCurrentOnboardingData()})),[]),F={siteTitle:{title:(0,s.sprintf)( /* translators: 1: site */ (0,s.__)("%s Title","wp-module-onboarding"),(0,c.I)("Site")),placeholder:(0,s.sprintf)( /* translators: 1: site */ @@ -12,4 +12,4 @@ /* translators: 1: site */ (0,s.__)("Just another WordPress %s.","wp-module-onboarding"),(0,c.I)("Site")),hint:(0,s.sprintf)( /* translators: 1: site */ -(0,s.__)("Tell people who you are, what you sell and why they should visit your %s.","wp-module-onboarding"),(0,c.I)("site")),maxCharacters:(0,s.__)("160","wp-module-onboarding")},error:{title:(0,s.__)("Error Saving Data, Try Again!","wp-module-onboarding")}};return(0,l.useEffect)((()=>{C&&e.current.scrollIntoView()}),[C]),(0,l.useEffect)((()=>{var e,l,o,i,s,c;r||async function(){const e=await(0,p.Gw)();T(null==e?void 0:e.body),a(F),g(t),n(!0),L(null==e?void 0:e.body)}(),R("root","site"),r&&(y(null!==(e=null==t||null===(l=t.data)||void 0===l?void 0:l.siteLogo)&&void 0!==e?e:0),f(null!==(o=null==t||null===(i=t.data)||void 0===i?void 0:i.blogName)&&void 0!==o?o:""),N(null!==(s=null==t||null===(c=t.data)||void 0===c?void 0:c.blogDescription)&&void 0!==s?s:""))}),[r]),(0,l.useEffect)((()=>{const e=setTimeout((()=>{r&&g({data:{siteLogo:S,blogName:w,blogDescription:h,socialData:k}})}),600);return()=>{clearTimeout(e)}}),[w,h,S,k,I]),(0,l.useEffect)((()=>{b&&(async()=>{var e,t,a,l;const r=F;var n,o,i;r.data.siteLogo=null!==(e=b.data.siteLogo)&&void 0!==e?e:r.data.siteLogo,r.data.blogName=null!==(t=b.data.blogName)&&void 0!==t?t:r.data.blogName,r.data.blogDescription=null!==(a=b.data.blogDescription)&&void 0!==a?a:r.data.blogDescription,n=r.data.siteLogo,o=r.data.blogName,i=r.data.blogDescription,P("root","site",void 0,{site_logo:null!=n&&n.id?n.id:null,description:i,title:o}),A(r),L(null!==(l=b.data.socialData)&&void 0!==l?l:k)})()}),[b]),(0,l.createElement)(v.Z,{type:"fade-in-disabled",after:"object"==typeof t&&"object"==typeof k},(0,l.createElement)("div",{className:"basic-info"},(0,l.createElement)("div",{className:"basic-info-form"},(0,l.createElement)("div",{className:"basic-info-form__left"},(0,l.createElement)(d,{title:K.siteTitle.title,hint:K.siteTitle.hint,placeholder:K.siteTitle.placeholder,maxCharacters:K.siteTitle.maxCharacters,height:"47px",textValue:w,textValueSetter:f}),(0,l.createElement)(d,{title:K.siteDesc.title,hint:K.siteDesc.hint,placeholder:K.siteDesc.placeholder,maxCharacters:K.siteDesc.maxCharacters,height:"100px",textValue:h,textValueSetter:N}),(0,l.createElement)("div",{ref:e},(0,l.createElement)(D,{socialData:k,setSocialData:T,isSocialFormOpen:C,setIsValidSocials:O,setIsSocialFormOpen:x}))),(0,l.createElement)("div",{className:"basic-info-form__right"},(0,l.createElement)(E,{icon:S,iconSetter:y}),(0,l.createElement)(m,{icon:S,title:w,desc:h,socialData:k,isSocialFormOpen:C,setIsSocialFormOpen:x}))),(0,l.createElement)(u.Z,null)))};var I=a(2200),O=a(4333);const C=()=>{const e=(0,O.useViewportMatch)("medium"),{setIsDrawerOpened:t,setDrawerActiveView:a,setSidebarActiveView:i,setIsDrawerSuppressed:s,setIsHeaderNavigationEnabled:c}=(0,o.useDispatch)(_.h),{currentStep:d}=(0,o.useSelect)((e=>({currentStep:e(_.h).getCurrentStep()})),[]);return(0,l.useEffect)((()=>{e&&t(!0),i(I.Jq),s(!1),a(I.tM),c(!0)}),[]),(0,l.createElement)(r.Z,{isVerticallyCentered:!0},(0,l.createElement)(n.Z,{title:null==d?void 0:d.heading,subtitle:null==d?void 0:d.subheading}),(0,l.createElement)(T,null))}}}]); \ No newline at end of file +(0,s.__)("Tell people who you are, what you sell and why they should visit your %s.","wp-module-onboarding"),(0,c.I)("site")),maxCharacters:(0,s.__)("160","wp-module-onboarding")},error:{title:(0,s.__)("Error Saving Data, Try Again!","wp-module-onboarding")}};return(0,l.useEffect)((()=>{C&&e.current.scrollIntoView()}),[C]),(0,l.useEffect)((()=>{var e,l,n,i,s,c;o||async function(){const e=await(0,p.Gw)();T(null==e?void 0:e.body),a(K),g(t),r(!0),L(null==e?void 0:e.body)}(),P("root","site"),o&&(y(null!==(e=null==t||null===(l=t.data)||void 0===l?void 0:l.siteLogo)&&void 0!==e?e:0),f(null!==(n=null==t||null===(i=t.data)||void 0===i?void 0:i.blogName)&&void 0!==n?n:""),N(null!==(s=null==t||null===(c=t.data)||void 0===c?void 0:c.blogDescription)&&void 0!==s?s:""))}),[o]),(0,l.useEffect)((()=>{const e=setTimeout((()=>{o&&g({data:{siteLogo:S,blogName:w,blogDescription:h,socialData:k}})}),600);return()=>{clearTimeout(e)}}),[w,h,S,k,I]),(0,l.useEffect)((()=>{b&&(async()=>{var e,t,a,l;const o=K;var r,n,i;o.data.siteLogo=null!==(e=b.data.siteLogo)&&void 0!==e?e:o.data.siteLogo,o.data.blogName=null!==(t=b.data.blogName)&&void 0!==t?t:o.data.blogName,o.data.blogDescription=null!==(a=b.data.blogDescription)&&void 0!==a?a:o.data.blogDescription,r=o.data.siteLogo,n=o.data.blogName,i=o.data.blogDescription,R("root","site",void 0,{site_logo:null!=r&&r.id?r.id:null,description:i,title:n}),A(o),L(null!==(l=b.data.socialData)&&void 0!==l?l:k)})()}),[b]),(0,l.createElement)(v.Z,{type:"fade-in-disabled",after:"object"==typeof t&&"object"==typeof k},(0,l.createElement)("div",{className:"basic-info"},(0,l.createElement)("div",{className:"basic-info-form"},(0,l.createElement)("div",{className:"basic-info-form__left"},(0,l.createElement)(d,{title:F.siteTitle.title,hint:F.siteTitle.hint,placeholder:F.siteTitle.placeholder,maxCharacters:F.siteTitle.maxCharacters,height:"47px",textValue:w,textValueSetter:f}),(0,l.createElement)(d,{title:F.siteDesc.title,hint:F.siteDesc.hint,placeholder:F.siteDesc.placeholder,maxCharacters:F.siteDesc.maxCharacters,height:"100px",textValue:h,textValueSetter:N}),(0,l.createElement)("div",{ref:e},(0,l.createElement)(D,{socialData:k,setSocialData:T,isSocialFormOpen:C,setIsValidSocials:O,setIsSocialFormOpen:x}))),(0,l.createElement)("div",{className:"basic-info-form__right"},(0,l.createElement)(E,{icon:S,iconSetter:y}),(0,l.createElement)(m,{icon:S,title:w,desc:h,socialData:k,isSocialFormOpen:C,setIsSocialFormOpen:x}))),(0,l.createElement)(u.Z,null)))};var I=a(2200),O=a(4333);const C=()=>{const e=(0,O.useViewportMatch)("medium"),{setIsDrawerOpened:t,setDrawerActiveView:a,setSidebarActiveView:i,setIsDrawerSuppressed:s,setIsHeaderNavigationEnabled:c}=(0,n.useDispatch)(_.h),{currentStep:d}=(0,n.useSelect)((e=>({currentStep:e(_.h).getCurrentStep()})),[]);return(0,l.useEffect)((()=>{e&&t(!0),i(I.Jq),s(!1),a(I.tM),c(!0)}),[]),(0,l.createElement)(o.Z,{isVerticallyCentered:!0},(0,l.createElement)(r.Z,{title:null==d?void 0:d.heading,subtitle:null==d?void 0:d.subheading}),(0,l.createElement)(T,null))}}}]); \ No newline at end of file diff --git a/build/1.7.0/932.js b/build/1.7.0/932.js new file mode 100644 index 000000000..9e06b9236 --- /dev/null +++ b/build/1.7.0/932.js @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[932],{4401:(e,t,a)=>{a.d(t,{V:()=>l});var r=a(9307),s=a(1996),o=a(4316),n=a(950);const l=e=>{let{title:t,subtitle:a,error:l}=e;return(0,r.createElement)(s.Z,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(o.Z,{title:t,subtitle:a}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},l),(0,r.createElement)(n.Z,null))}},9291:(e,t,a)=>{a.d(t,{L:()=>n,Y:()=>r.Z});var r=a(35),s=a(9307),o=a(682);const n=()=>(0,s.createElement)("div",{className:"image-upload-loader--loading-box"},(0,s.createElement)(o.Z,{type:"load",className:"image-upload-loader--loading-box__loader"}))},1340:(e,t,a)=>{a.d(t,{U:()=>h,g:()=>_});var r=a(9307),s=a(9818),o=a(4333),n=a(5736),l=a(9291),i=a(6831),c=a(7625),d=a(2200),u=a(4401);var m=a(1589);const h=e=>{let{children:t,navigationStateCallback:a=!1}=e;const h=(0,o.useViewportMatch)("medium"),{storedThemeStatus:p,brandName:g}=(0,s.useSelect)((e=>({storedThemeStatus:e(i.h).getThemeStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),w=(e=>({loader:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,n.sprintf)( +/* translators: %s: Brand */ +(0,n.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,n.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(g),{updateThemeStatus:_,setIsDrawerOpened:b,setIsDrawerSuppressed:y,setIsHeaderNavigationEnabled:S}=(0,s.useDispatch)(i.h),v=async()=>{const e=await(0,c.YL)(d.DY);return null!=e&&e.error?d.vv:e.body.status},f=()=>{switch(p){case d.Rq:case d.GV:return(()=>{if("function"==typeof a)return a();h&&b(!0),y(!1),S(!0)})();default:b(!1),y(!0),S(!1)}};(0,r.useEffect)((()=>{f(),p===d.a0&&(async()=>{const e=await v();switch(e){case d.Zh:setTimeout((async()=>{if(await v()!==d.GV)return _(d.vv);window.location.reload()}),d.YU);break;case d.GV:window.location.reload();break;default:_(e)}})()}),[p]);const E=async()=>(_(d.Zh),(await(0,c.N9)(d.DY,!0,!1)).error?_(d.Rq):window.location.reload());return(0,r.createElement)(r.Fragment,null,(()=>{switch(p){case d.vv:return(0,r.createElement)(m.Z,{showButton:!1,isModalOpen:!0,modalTitle:(0,n.__)("It looks like you may have an existing website","wp-module-onboarding"),modalText:(0,n.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),modalOnClose:E,modalExitButtonText:(0,n.__)("Exit to WordPress","wp-module-onboarding")});case d.Rq:return(0,r.createElement)(u.V,{title:w.errorState.title,subtitle:w.errorState.subtitle,error:w.errorState.error});case d.GV:return t;default:return(0,r.createElement)(l.Y,{title:w.loader.title,subtitle:w.loader.subtitle})}})())};var p=a(3421),g=a(1392);var w=a(9884);const _=e=>{let{children:t,navigationStateCallback:a=!1}=e;const l=(0,o.useViewportMatch)("medium"),[c,m]=(0,r.useState)(d.Sr),{storedPluginsStatus:h,brandName:_}=(0,s.useSelect)((e=>({storedPluginsStatus:e(i.h).getPluginsStatus(),brandName:e(i.h).getNewfoldBrandName()})),[]),b=(e=>({errorState:{title:(0,n.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,n.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,g.I)("Site")),subtitle:(0,n.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding"),error:(0,n.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")}}))(_),{updatePluginsStatus:y,setIsDrawerOpened:S,setIsDrawerSuppressed:v,setIsHeaderNavigationEnabled:f}=(0,s.useDispatch)(i.h),E=async()=>{const e=await(0,p.qC)(d.Gv);return null!=e&&e.error?d.sG:e.body.status},k=e=>{switch(e){case d.sG:case d.ye:return(()=>{if("function"==typeof a)return a();l&&S(!0),v(!1),f(!0)})();default:S(!1),v(!0),f(!1)}};(0,r.useEffect)((()=>{k(c)}),[c]);return(0,r.useEffect)((()=>{m(h[d.Gv]),h[d.Gv]===d.Ck&&(async e=>{const t=await E();switch(t){case d.Sr:setTimeout((async()=>{if(await E()!==d.ye)return h[d.Gv]=d.sG,y(h),m(d.sG);window.location.reload()}),d.sr);break;case d.ye:window.location.reload();break;default:e[d.Gv]=t,m(t),y(e)}})(h)}),[h]),(0,r.createElement)(r.Fragment,null,(()=>{switch(c){case d.sG:return(0,r.createElement)(u.V,{title:b.errorState.title,subtitle:b.errorState.subtitle,error:b.errorState.error});case d.ye:return t;default:return(0,r.createElement)(w.Z,null)}})())}},2932:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var r=a(9307),s=a(9818),o=a(9250),n=a(5609),l=a(7946),i=a(6510),c=a(6332),d=a(284),u=a(1996),m=a(2200),h=a(6831),p=a(6138),g=a(1340);const w=()=>{const e=(0,d.Z)(),t=(0,o.TH)(),[a,w]=(0,r.useState)(),[_,b]=(0,r.useState)(!1),y=(0,o.s0)(),{currentStep:S,currentData:v,routes:f,designSteps:E,allSteps:k,themeStatus:T}=(0,s.useSelect)((e=>({currentStep:e(h.h).getStepFromPath(t.pathname),currentData:e(h.h).getCurrentOnboardingData(),routes:e(h.h).getRoutes(),allSteps:e(h.h).getAllSteps(),designSteps:e(h.h).getDesignSteps(),themeStatus:e(h.h).getThemeStatus()})),[]),{setDrawerActiveView:N,setSidebarActiveView:C,updateRoutes:D,updateDesignSteps:x,updateAllSteps:G,setCurrentOnboardingData:V,updateThemeStatus:P}=(0,s.useDispatch)(h.h);(0,r.useEffect)((()=>{C(m.Jq),N(m._h),Z(v.data.customDesign,!1,"flow")}),[]);const Z=function(e){let t,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"click";t=e?(0,l.U)(f,k,E):(0,l.o)(f,k,E),D(t.routes),x(t.designSteps),G(t.allSteps),b(e),a&&(v.data.customDesign=e,V(v)),e&&"click"===r&&y(i.mT.designColors.path)};return(0,r.useEffect)((()=>{T===m.GV&&(async()=>{const e=await(0,p.C)(S.patternId,!0);if(null!=e&&e.error)return P(m.a0);w(null==e?void 0:e.body)})()}),[T]),(0,r.createElement)(g.U,null,(0,r.createElement)(c.V3,null,(0,r.createElement)(u.Z,{className:"theme-styles-preview"},(0,r.createElement)("div",{className:"theme-styles-preview__checkbox"},(0,r.createElement)(n.CheckboxControl,{label:(0,r.createElement)("div",{className:"theme-styles-preview__checkbox__label"},(0,r.createElement)("span",{className:"theme-styles-preview__checkbox__label__question"},e.checkbox_label,(0,r.createElement)("span",{className:"theme-styles-preview__checkbox__label__hint"},e.checkbox_hint))),checked:_,onChange:()=>Z(!_)})),(0,r.createElement)("div",{className:"theme-styles-preview__title-bar"},(0,r.createElement)("div",{className:"theme-styles-preview__title-bar__browser"},(0,r.createElement)("span",{className:"theme-styles-preview__title-bar__browser__dot"}),(0,r.createElement)("span",{className:"theme-styles-preview__title-bar__browser__dot"}),(0,r.createElement)("span",{className:"theme-styles-preview__title-bar__browser__dot"}))),!a&&(0,r.createElement)(c.i5,{styling:"large",viewportWidth:1300}),a&&(0,r.createElement)(c.i5,{blockGrammer:a,styling:"large",viewportWidth:1300}))))}},284:(e,t,a)=>{a.d(t,{Z:()=>s});var r=a(5736);const s=()=>({heading:(0,r.__)("Lets tailor your theme for the perfect fit","wp-module-onboarding"),subheading:(0,r.__)("Start with a style preset or","wp-module-onboarding"),subheading_link:(0,r.__)("build a custom design.","wp-module-onboarding"),checkbox_label:(0,r.__)("Customize Colors & Fonts?","wp-module-onboarding"),checkbox_hint:(0,r.__)("Check to customize in the next few steps (or leave empty and use the Site Editor later)","wp-module-onboarding")})},7946:(e,t,a)=>{a.d(t,{U:()=>o,o:()=>n});var r=a(2819),s=a(6510);const o=(e,t,a)=>{const o=n(e,t,a),l=[s.mT.designColors,s.mT.designTypography];return{routes:(0,r.orderBy)(o.routes.concat(l),["priority"],["asc"]),allSteps:(0,r.orderBy)(o.allSteps.concat(l),["priority"],["asc"]),designSteps:(0,r.orderBy)(o.designSteps.concat(l),["priority"],["asc"])}},n=(e,t,a)=>({routes:(0,r.filter)(e,(e=>!e.path.includes(s.mT.designColors.path)&&!e.path.includes(s.mT.designTypography.path))),allSteps:(0,r.filter)(t,(e=>!e.path.includes(s.mT.designColors.path)&&!e.path.includes(s.mT.designTypography.path))),designSteps:(0,r.filter)(a,(e=>!e.path.includes(s.mT.designColors.path)&&!e.path.includes(s.mT.designTypography.path)))})}}]); \ No newline at end of file diff --git a/build/1.6.1/949.js b/build/1.7.0/949.js similarity index 95% rename from build/1.6.1/949.js rename to build/1.7.0/949.js index 615cfdbca..19028834e 100644 --- a/build/1.6.1/949.js +++ b/build/1.7.0/949.js @@ -1,3 +1,3 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[949],{7949:(e,n,i)=>{i.r(n),i.d(n,{default:()=>g});var l=i(9307),o=i(9818),t=i(4106),a=i(5736),r=i(1392),d=i(444);const u=(0,l.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(d.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"})),c=(0,l.lazy)((()=>i.e(657).then(i.bind(i,8657)))),s=(0,l.lazy)((()=>i.e(574).then(i.bind(i,2574)))),h=(0,l.lazy)((()=>i.e(856).then(i.bind(i,3856)))),p=(0,l.lazy)((()=>i.e(378).then(i.bind(i,5378)))),m=(0,l.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,l.lazy)((()=>i.e(58).then(i.bind(i,1058)))),g=()=>{var e,n,i;const{brandName:d,techSupportLink:g,fullServiceCreativeTeamLink:f,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(t.h).getNewfoldBrandName(),techSupportLink:e(t.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(t.h).getfullServiceCreativeTeamUrl(),brandConfig:e(t.h).getNewfoldBrandConfig()}))),w=((e,n,i)=>({introduction:{heading:(0,a.__)("Products Info","wp-module-onboarding"),subheading:(0,a.__)("We can offer free, exclusive solutions and apply our expert experience if we know how you sell."),icon:u},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-products-illustration"},information:{headingWithDescriptions:[{heading:(0,a.__)("Go from multiple sizes to multiple locations to multiple online channels","wp-module-onboarding"),description:(0,a.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[949],{7949:(e,n,i)=>{i.r(n),i.d(n,{default:()=>g});var l=i(9307),o=i(9818),t=i(6831),a=i(5736),r=i(1392),d=i(444);const u=(0,l.createElement)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(d.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"})),c=(0,l.lazy)((()=>i.e(657).then(i.bind(i,8657)))),s=(0,l.lazy)((()=>i.e(574).then(i.bind(i,2574)))),h=(0,l.lazy)((()=>i.e(856).then(i.bind(i,3856)))),p=(0,l.lazy)((()=>i.e(378).then(i.bind(i,5378)))),m=(0,l.lazy)((()=>i.e(33).then(i.bind(i,33)))),b=(0,l.lazy)((()=>i.e(58).then(i.bind(i,1058)))),g=()=>{var e,n,i;const{brandName:d,techSupportLink:g,fullServiceCreativeTeamLink:f,brandConfig:v}=(0,o.useSelect)((e=>({brandName:e(t.h).getNewfoldBrandName(),techSupportLink:e(t.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(t.h).getfullServiceCreativeTeamUrl(),brandConfig:e(t.h).getNewfoldBrandConfig()}))),w=((e,n,i)=>({introduction:{heading:(0,a.__)("Products Info","wp-module-onboarding"),subheading:(0,a.__)("We can offer free, exclusive solutions and apply our expert experience if we know how you sell."),icon:u},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-products-illustration"},information:{headingWithDescriptions:[{heading:(0,a.__)("Go from multiple sizes to multiple locations to multiple online channels","wp-module-onboarding"),description:(0,a.sprintf)( /* translators: 1: Brand 2: Website */ (0,a.__)("Tell us a little about how and what you’re planning to sell and we’ll bring the power of WooCommerce and unique %s %s solutions to elevate your business and enhance your capabilities.","wp-module-onboarding"),e,(0,r.I)("site"))}]},help:{fullService:{text:(0,a.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:i},support:{text:(0,a.__)("Technical Support","wp-module-onboarding"),link:n}}}))(d,g,f);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__ecommerce-products"},(0,l.createElement)(b,{heading:w.introduction.heading,subheading:w.introduction.subheading,icon:w.introduction.icon}),!1!==(null==v||null===(e=v.views)||void 0===e||null===(n=e.sidebar)||void 0===n||null===(i=n.illustration)||void 0===i?void 0:i.shown)&&(0,l.createElement)(c,{cssIcon:w.illustration.icon}),(0,l.createElement)(s,{headingWithDescriptions:w.information.headingWithDescriptions}),(0,l.createElement)(h,null,w.help.fullService.link&&(0,l.createElement)(p,{text:w.help.fullService.text,onClick:()=>window.open(w.help.fullService.link,"_blank")}),(0,l.createElement)(m,{text:w.help.support.text,link:w.help.support.link})))}}}]); \ No newline at end of file diff --git a/build/1.7.0/958.js b/build/1.7.0/958.js new file mode 100644 index 000000000..a49fc6c30 --- /dev/null +++ b/build/1.7.0/958.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[958],{8958:(e,t,a)=>{a.r(t),a.d(t,{default:()=>k});var c=a(9307),n=a(2819),s=a(4333),l=a(9818),i=a(6831),o=a(2200),r=a(1996),d=a(3421),u=a(4316),m=a(1984),h=a(6058),b=a(5609),v=a(682);const p=e=>{let{name:t,icon:a,title:n,desc:s,subtitle:l,callback:i,tabIndex:o=0,isSelectedDefault:r,className:d="checkbox-item"}=e;const[u,p]=(0,c.useState)(!1),[E,g]=(0,c.useState)(r),k=()=>{p(!u)};return(0,c.createElement)("div",null,(0,c.createElement)("div",{className:`${d} ${E&&`${d}--selected`} ${u&&`${d}--shown`}`},(0,c.createElement)("div",{className:`${d}-container`},(0,c.createElement)(b.CheckboxControl,{checked:E,onChange:()=>{g(!E),i(t,!E)},className:`${d}-checkbox`}),(0,c.createElement)("div",{className:`${d}__contents`},(0,c.createElement)("div",{className:`${d}__contents-icon\n ${E&&`${d}__contents-icon--selected`}\n ${u&&`${d}__contents-icon--shown`}`},(0,c.createElement)("div",{style:{width:"35px",height:"35px",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:`var(${a}${E?"--light":""})`}})),(0,c.createElement)("div",{className:`${d}__contents-text`},(0,c.createElement)("div",{className:`${d}__contents-text-title ${E&&`${d}__contents-text-title--selected`}`},n),(0,c.createElement)("div",{className:`${d}__contents-text-subtitle`},l)),(0,c.createElement)("div",{className:`${d}__contents-help ${u?"highlighted":""}`,onClick:k,role:"button",onKeyDown:k,tabIndex:o},(0,c.createElement)(m.Z,{icon:h.Z,style:{width:"30px",height:"30px"}}))))),u&&(0,c.createElement)(v.Z,{className:` ${d}__dropdown `,type:"dropdown"},(0,c.createElement)("div",{className:`${d}__desc`},s)))},E=e=>{let{count:t}=e;const a=()=>{const e=[];for(let a=0;a{let{callback:t,selectedItems:a,customItemsList:n}=e;const s=Object.keys(n).length,l=()=>{var e=[];for(const l in n){var s=n[l];const i=a[s.slug];e.push((0,c.createElement)(p,{name:s.slug,icon:s.icon,title:s.title,subtitle:s.subtitle,desc:s.desc,callback:t,isSelectedDefault:null!=i&&i}))}return e};return(0,c.createElement)("div",{className:"checkbox-list"},(0,c.createElement)("div",{className:"checkbox-list-col"},l().slice(0,Math.floor(s/2))),(0,c.createElement)("div",{className:"checkbox-list-col"},l().slice(Math.floor(s/2),s)))},k=()=>{var e;const t=(0,s.useViewportMatch)("medium"),[a,m]=(0,c.useState)(),[h,b]=(0,c.useState)(),{setIsDrawerOpened:v,setDrawerActiveView:p,setSidebarActiveView:k,setCurrentOnboardingData:$,setIsDrawerSuppressed:_,setIsHeaderNavigationEnabled:x}=(0,l.useDispatch)(i.h),{currentStep:w,currentData:N,themeVariations:f}=(0,l.useSelect)((e=>({currentStep:e(i.h).getCurrentStep(),currentData:e(i.h).getCurrentOnboardingData(),themeVariations:e(i.h).getStepPreviewData()})),[]);return(0,c.useEffect)((()=>{t&&v(!1),k(o.Jq),_(!1),p(o.tM),x(!0),async function(){var e,t;const a=await(0,d.yn)();(0,n.isEmpty)(null==N||null===(e=N.data)||void 0===e?void 0:e.siteFeatures)?async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a={};for(const t in e){const c=e[t];a[c.slug]=c.selected}m(a),t&&(N.data.siteFeatures={...a},$(N))}(a.body,!0):m({...null==N||null===(t=N.data)||void 0===t?void 0:t.siteFeatures}),b(a.body)}()}),[]),(0,c.createElement)(r.Z,null,(0,c.createElement)("div",{style:{margin:"100px"}},(0,c.createElement)(u.Z,{title:null==w?void 0:w.heading,subtitle:null==w?void 0:w.subheading})),!h&&(0,c.createElement)(E,{count:null===(e=f[null==w?void 0:w.patternId])||void 0===e?void 0:e.previewCount}),h&&(0,c.createElement)(g,{callback:async function(e,t){const c={...a};c[e]=t,m(c),N.data.siteFeatures={...c},$(N)},selectedItems:a,customItemsList:h}))}}}]); \ No newline at end of file diff --git a/build/1.6.1/993.js b/build/1.7.0/993.js similarity index 51% rename from build/1.6.1/993.js rename to build/1.7.0/993.js index 7eded5c16..0ef672d7b 100644 --- a/build/1.6.1/993.js +++ b/build/1.7.0/993.js @@ -1 +1 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[993],{1993:(e,n,r)=>{r.r(n),r.d(n,{default:()=>u});var i=r(9307),a=r(5609),t=r(5430),d=r(9818),s=r(4106),l=r(2200),o=r(4184),b=r.n(o);const u=()=>{var e;const{isSidebarOpened:n,sideBarView:r,currentStep:o}=(0,d.useSelect)((e=>({isSidebarOpened:e(s.h).isSidebarOpened(),sideBarView:e(s.h).getSidebarView(),currentStep:e(s.h).getCurrentStep()}))),{setIsSidebarOpened:u,setSidebarActiveView:c}=(0,d.useDispatch)(s.h);return(0,i.createElement)(i.Fragment,null,(null==o||null===(e=o.sidebars)||void 0===e?void 0:e.LearnMore)&&(0,i.createElement)(a.Fill,{name:`${l.Ei}/${l.Jq}`},(0,i.createElement)(a.Button,{className:b()("nfd-onboarding-sidebar-learn-more__menu-button",{"is-pressed":n&&r===l.Jq}),disabled:!o,onClick:()=>{c(l.Jq),u(r===l.Jq?!n:n)},icon:t.Z})))}}}]); \ No newline at end of file +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[993],{1993:(e,n,r)=>{r.r(n),r.d(n,{default:()=>u});var i=r(9307),a=r(5609),t=r(5430),d=r(9818),s=r(6831),l=r(2200),o=r(4184),b=r.n(o);const u=()=>{var e;const{isSidebarOpened:n,sideBarView:r,currentStep:o}=(0,d.useSelect)((e=>({isSidebarOpened:e(s.h).isSidebarOpened(),sideBarView:e(s.h).getSidebarView(),currentStep:e(s.h).getCurrentStep()}))),{setIsSidebarOpened:u,setSidebarActiveView:c}=(0,d.useDispatch)(s.h);return(0,i.createElement)(i.Fragment,null,r&&(null==o||null===(e=o.sidebars)||void 0===e?void 0:e.LearnMore)&&(0,i.createElement)(a.Fill,{name:`${l.Ei}/${l.Jq}`},(0,i.createElement)(a.Button,{className:b()("nfd-onboarding-sidebar-learn-more__menu-button",{"is-pressed":n&&r===l.Jq}),disabled:!o,onClick:()=>{c(l.Jq),u(r===l.Jq?!n:n)},icon:t.Z})))}}}]); \ No newline at end of file diff --git a/build/1.7.0/996.js b/build/1.7.0/996.js new file mode 100644 index 000000000..3c7661b4a --- /dev/null +++ b/build/1.7.0/996.js @@ -0,0 +1,11 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[996],{1211:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(9307),o=n(9250),s=n(9818),i=n(6831);const r=e=>{let{text:t,handleClick:n,disabled:o,className:s}=e;return(0,a.createElement)("button",{type:"button",className:`${s} nfd-card-button`,onClick:()=>{n()},disabled:o},t)};var l=n(7533),c=n(2200);const d=e=>{let{text:t,disabled:n}=e;const d=(0,o.s0)(),m=(0,o.TH)(),{nextStep:u,currentData:b}=(0,s.useSelect)((e=>({nextStep:e(i.h).getNextStep(),currentData:e(i.h).getCurrentOnboardingData()})),[m.path]),p=null===u||!1===u;return(0,a.createElement)(r,{className:"nfd-nav-card-button",text:t,handleClick:()=>p?async function(){b&&(b.isComplete=(new Date).getTime(),(0,l.kB)(b));const e="ecommerce"===window.nfdOnboarding.currentFlow?c.br:c.hF;window.location.replace(e)}():d(u.path),disabled:n})}},9519:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(9307);const o=(0,a.memo)((e=>{let{heading:t,subHeading:n,question:o}=e;return(0,a.createElement)("div",null,t&&(0,a.createElement)("h2",{className:"nfd-step-card-heading"},t),n&&(0,a.createElement)("h3",{className:o?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),o&&(0,a.createElement)("h3",{className:"nfd-step-card-question"},o))}))},349:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(9307),o=(n(5736),n(4184)),s=n.n(o);const i=e=>{let{className:t="",children:n}=e;return(0,a.createElement)("div",{className:s()("nfd-onboarding-large-card",t)},n)}},2452:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(9307),o=n(682);const s=e=>{let{title:t,text:n,imgType:s,className:i,animationName:r}=e;return(0,a.createElement)("div",{className:i},(0,a.createElement)("div",{className:"tab-text"},(0,a.createElement)("h4",null,t),n),(0,a.createElement)("div",{className:"tab-image"},(0,a.createElement)("div",{className:"tab-img"},(0,a.createElement)(o.Z,{type:r},(0,a.createElement)("div",{className:s})))))}},1056:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(7462),o=n(9307),s=(n(4184),n(2819)),i=n(4333),r=n(9630),l=n(5904);const c=()=>{},d=["menuitem","menuitemradio","menuitemcheckbox"];class m extends o.Component{constructor(){super(...arguments),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}componentWillUnmount(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){const{onlyBrowserTabstops:t}=this.props,n=(t?l.focus.tabbable:l.focus.focusable).find(this.container),a=this.getFocusableIndex(n,e);return a>-1&&e?{index:a,target:e,focusables:n}:null}getFocusableIndex(e,t){const n=e.indexOf(t);if(-1!==n)return n}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:a,onNavigate:o=c,stopNavigationEvents:s}=this.props,i=a(e);if(void 0!==i&&s){e.stopImmediatePropagation();const t=e.target.getAttribute("role");d.includes(t)&&e.preventDefault()}if(!i)return;const r=t(e.target.ownerDocument.activeElement);if(!r)return;const{index:l,focusables:m}=r,u=n?function(e,t,n){const a=e+n;return a<0?t+a:a>=t?a-t:a}(l,m.length,i):l+i;u>=0&&u(0,o.createElement)(m,(0,a.Z)({},e,{forwardedRef:t}));u.displayName="NavigableContainer";const b=(0,o.forwardRef)(u),p=(0,o.forwardRef)((function(e,t){let{role:n="menu",orientation:i="vertical",...l}=e;return(0,o.createElement)(b,(0,a.Z)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:n,"aria-orientation":"presentation"===n?null:i,eventToOffset:e=>{const{keyCode:t}=e;let n=[r.DOWN],a=[r.UP];return"horizontal"===i&&(n=[r.RIGHT],a=[r.LEFT]),"both"===i&&(n=[r.RIGHT,r.DOWN],a=[r.LEFT,r.UP]),(0,s.includes)(n,t)?1:(0,s.includes)(a,t)?-1:(0,s.includes)([r.DOWN,r.UP,r.LEFT,r.RIGHT],t)?0:void 0}},l))}));(0,o.forwardRef)((function(e,t){let{eventToOffset:n,...s}=e;return(0,o.createElement)(b,(0,a.Z)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:e=>{const{keyCode:t,shiftKey:a}=e;return r.TAB===t?a?-1:1:n?n(e):void 0}},s))}));var g=n(5609);const h=()=>{},f=e=>{let{tabId:t,onClick:n,children:s,selected:i,...r}=e;return(0,o.createElement)(g.Button,(0,a.Z)({role:"tab",tabIndex:i?null:-1,"aria-selected":i,id:t,onClick:n},r),s)};function v(e){var t;let{className:n,children:a,tabs:r,initialTabName:l,orientation:c="horizontal",activeClass:d="is-active",notActiveClass:m="is-not-active",onSelect:u=h}=e;const b=(0,i.useInstanceId)(v,"tab-panel"),[g,w]=(0,o.useState)(null),E=e=>{w(e),u(e)},N=(0,s.find)(r,{name:g}),y=`${b}-${null!==(t=null==N?void 0:N.name)&&void 0!==t?t:"none"}`;return(0,o.useEffect)((()=>{(0,s.find)(r,{name:g})||w(l||(r.length>0?r[0].name:null))}),[r]),(0,o.createElement)("div",{className:n},(0,o.createElement)(p,{role:"tablist",orientation:c,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},r.map((e=>(0,o.createElement)(f,{className:`components-tab-panel__tabs-item ${e.name===g&&d} ${e.name!==g&&m}`,tabId:`${b}-${e.name}`,"aria-controls":`${b}-${e.name}-view`,selected:e.name===g,key:e.name,onMouseOver:(0,s.partial)(E,e.name)},e.title)))),N&&(0,o.createElement)("div",{key:y,"aria-labelledby":y,role:"tabpanel",id:`${y}-view`,className:"components-tab-panel__tab-content"},a(N)))}},7996:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var a=n(9307),o=n(6831),s=n(9250),i=n(9818),r=n(1996),l=n(349),c=n(9519),d=n(1211),m=n(2452),u=n(1056),b=n(2200),p=n(5736),g=n(1392);const h=()=>{const e=(0,s.TH)(),{brandName:t}=(0,i.useSelect)((e=>({brandName:e(o.h).getNewfoldBrandName()})),[e.pathname]),{setDrawerActiveView:n,setSidebarActiveView:h,setIsDrawerSuppressed:f,setIsHeaderNavigationEnabled:v}=(0,i.useDispatch)(o.h);(0,a.useEffect)((()=>{h(b.Jq),v(!0),f(!0),n(b.mz)}),[]);const w=(e=>({heading:(0,p.sprintf)( +/* translators: %s: website or store */ +(0,p.__)("Make your %s dreams a reality!","wp-module-onboarding"),(0,g.I)("website")),subheading:(0,p.sprintf)( +/* translators: %s: Brand */ +(0,p.__)("with WordPress and %s.","wp-module-onboarding"),e),buttonText:(0,p.__)("Start Setup","wp-module-onboarding"),tabs:[{name:"tab1",title:(0,p.__)("YOUR CONTENT","wp-module-onboarding"),subtitle:(0,p.__)("Publish boldly with WordPress Blocks.","wp-module-onboarding"),text:(0,p.sprintf)( +/* translators: %s: Site */ +(0,p.__)("Build a beautiful %s using a visual builder. Block Patterns accelerate telling your story or tending your store with professional designs.","wp-module-onboarding"),(0,g.I)("site")),imgType:"content-img",animationName:"fade-in-right"},{name:"tab2",title:(0,p.__)("POWERFUL FEATURES","wp-module-onboarding"),subtitle:(0,p.__)("Proven, easy-to-use solutions.","wp-module-onboarding"),text:(0,p.sprintf)( +/* translators: %s: Site */ +(0,p.__)("Reach for your %1$s goals using proven WordPress Plugins & %2$s solutions. Send a newsletter, host a podcast, book clients, take payments and more.","wp-module-onboarding"),(0,g.I)("site"),e),imgType:"features-img",animationName:"fade-in-up"},{name:"tab3",title:(0,p.__)("MODERN DESIGN","wp-module-onboarding"),subtitle:(0,p.__)("Paint trim. Move walls. No sweat.","wp-module-onboarding"),text:(0,p.sprintf)( +/* translators: %s: site */ +(0,p.__)("Establish your %s's unique design. Use the WordPress Editor to refine over time with professionally-designed patterns, parts, templates, colors and type.","wp-module-onboarding"),(0,g.I)("site")),imgType:"design-img",animationName:"fade-in-left"}]}))(t);return(0,a.createElement)(r.Z,{isBgPrimary:!0,isCentered:!0},(0,a.createElement)(l.Z,null,(0,a.createElement)("div",{className:"welcome-card"},(0,a.createElement)(c.Z,{heading:w.heading,subHeading:w.subheading}),(0,a.createElement)(u.Z,{className:"nfd-onboarding-overview__tab-panel",tabs:w.tabs.map((e=>({name:e.name,title:e.title,content:(0,a.createElement)(m.Z,{title:e.subtitle,text:e.text,imgType:e.imgType,animationName:e.animationName,className:"tab-data"})})))},(e=>(0,a.createElement)("div",null,e.content))),(0,a.createElement)(d.Z,{text:w.buttonText}))))}}}]); \ No newline at end of file diff --git a/build/1.6.1/998.js b/build/1.7.0/998.js similarity index 96% rename from build/1.6.1/998.js rename to build/1.7.0/998.js index cd274f334..1c9afe493 100644 --- a/build/1.6.1/998.js +++ b/build/1.7.0/998.js @@ -1,4 +1,4 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[998],{8998:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var i=n(9307),o=n(9818),r=n(4106),l=n(5736),s=n(1392),a=n(6922);const d=(0,i.lazy)((()=>n.e(657).then(n.bind(n,8657)))),u=(0,i.lazy)((()=>n.e(574).then(n.bind(n,2574)))),p=(0,i.lazy)((()=>n.e(856).then(n.bind(n,3856)))),h=(0,i.lazy)((()=>n.e(677).then(n.bind(n,4677)))),c=(0,i.lazy)((()=>n.e(378).then(n.bind(n,5378)))),b=(0,i.lazy)((()=>n.e(33).then(n.bind(n,33)))),g=(0,i.lazy)((()=>n.e(58).then(n.bind(n,1058)))),w=()=>{var e,t,n;const{brandName:w,expertsLink:f,techSupportLink:m,fullServiceCreativeTeamLink:k,brandConfig:_}=(0,o.useSelect)((e=>({brandName:e(r.h).getNewfoldBrandName(),expertsLink:e(r.h).getExpertsUrl(),techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),v=((e,t,n,i)=>({introduction:{heading:(0,l.__)("Start Setup","wp-module-onboarding"),subheading:(0,l.sprintf)( +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[998],{8998:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var i=n(9307),o=n(9818),r=n(6831),l=n(5736),s=n(1392),a=n(6922);const d=(0,i.lazy)((()=>n.e(657).then(n.bind(n,8657)))),u=(0,i.lazy)((()=>n.e(574).then(n.bind(n,2574)))),p=(0,i.lazy)((()=>n.e(856).then(n.bind(n,3856)))),h=(0,i.lazy)((()=>n.e(677).then(n.bind(n,4677)))),c=(0,i.lazy)((()=>n.e(378).then(n.bind(n,5378)))),b=(0,i.lazy)((()=>n.e(33).then(n.bind(n,33)))),g=(0,i.lazy)((()=>n.e(58).then(n.bind(n,1058)))),w=()=>{var e,t,n;const{brandName:w,expertsLink:f,techSupportLink:m,fullServiceCreativeTeamLink:k,brandConfig:_}=(0,o.useSelect)((e=>({brandName:e(r.h).getNewfoldBrandName(),expertsLink:e(r.h).getExpertsUrl(),techSupportLink:e(r.h).getTechSupportUrl(),fullServiceCreativeTeamLink:e(r.h).getfullServiceCreativeTeamUrl(),brandConfig:e(r.h).getNewfoldBrandConfig()}))),v=((e,t,n,i)=>({introduction:{heading:(0,l.__)("Start Setup","wp-module-onboarding"),subheading:(0,l.sprintf)( /* translators: 1: Brand 2: Website */ (0,l.__)("Lay the foundation for a successful %s %s using our WordPress Onboarding. ","wp-module-onboarding"),e,(0,s.I)("website")),icon:a.Z},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-welcome-illustration"},information:{headingWithDescriptions:[{heading:(0,l.sprintf)( /* translators: %s: Website */ diff --git a/build/1.6.1/images/bluesky.7dd9ca3f.png b/build/1.7.0/images/bluesky.7dd9ca3f.png similarity index 100% rename from build/1.6.1/images/bluesky.7dd9ca3f.png rename to build/1.7.0/images/bluesky.7dd9ca3f.png diff --git a/build/1.6.1/images/content.e8b16827.png b/build/1.7.0/images/content.e8b16827.png similarity index 100% rename from build/1.6.1/images/content.e8b16827.png rename to build/1.7.0/images/content.e8b16827.png diff --git a/build/1.6.1/images/design.94874863.png b/build/1.7.0/images/design.94874863.png similarity index 100% rename from build/1.6.1/images/design.94874863.png rename to build/1.7.0/images/design.94874863.png diff --git a/build/1.6.1/images/features.dab941b3.png b/build/1.7.0/images/features.dab941b3.png similarity index 100% rename from build/1.6.1/images/features.dab941b3.png rename to build/1.7.0/images/features.dab941b3.png diff --git a/build/1.6.1/images/full-service.471d8711.png b/build/1.7.0/images/full-service.471d8711.png similarity index 100% rename from build/1.6.1/images/full-service.471d8711.png rename to build/1.7.0/images/full-service.471d8711.png diff --git a/build/1.6.1/images/full-service.b9f4513a.png b/build/1.7.0/images/full-service.b9f4513a.png similarity index 100% rename from build/1.6.1/images/full-service.b9f4513a.png rename to build/1.7.0/images/full-service.b9f4513a.png diff --git a/build/1.6.1/images/help.bce996da.png b/build/1.7.0/images/help.bce996da.png similarity index 100% rename from build/1.6.1/images/help.bce996da.png rename to build/1.7.0/images/help.bce996da.png diff --git a/build/1.6.1/images/wp-admin.3572d33f.png b/build/1.7.0/images/wp-admin.3572d33f.png similarity index 100% rename from build/1.6.1/images/wp-admin.3572d33f.png rename to build/1.7.0/images/wp-admin.3572d33f.png diff --git a/build/1.6.1/images/wp-admin.a72221ed.png b/build/1.7.0/images/wp-admin.a72221ed.png similarity index 100% rename from build/1.6.1/images/wp-admin.a72221ed.png rename to build/1.7.0/images/wp-admin.a72221ed.png diff --git a/build/1.6.1/images/wp-admin.e74d9675.png b/build/1.7.0/images/wp-admin.e74d9675.png similarity index 100% rename from build/1.6.1/images/wp-admin.e74d9675.png rename to build/1.7.0/images/wp-admin.e74d9675.png diff --git a/build/1.6.1/onboarding.asset.php b/build/1.7.0/onboarding.asset.php similarity index 79% rename from build/1.6.1/onboarding.asset.php rename to build/1.7.0/onboarding.asset.php index 20489084e..0ba55c757 100644 --- a/build/1.6.1/onboarding.asset.php +++ b/build/1.7.0/onboarding.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-preferences', 'wp-primitives', 'wp-style-engine', 'wp-url'), 'version' => 'cf4d64a4dddd824fa8a3'); + array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-preferences', 'wp-primitives', 'wp-style-engine', 'wp-url'), 'version' => '1f855b891149ffebb833'); diff --git a/build/1.6.1/onboarding.css b/build/1.7.0/onboarding.css similarity index 100% rename from build/1.6.1/onboarding.css rename to build/1.7.0/onboarding.css diff --git a/build/1.7.0/onboarding.js b/build/1.7.0/onboarding.js new file mode 100644 index 000000000..d9a0c95b3 --- /dev/null +++ b/build/1.7.0/onboarding.js @@ -0,0 +1,27 @@ +(()=>{var e,t,n={2599:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;td,J0:()=>l,RQ:()=>x,WK:()=>I,Zn:()=>S,Zq:()=>N,aU:()=>a,cP:()=>p,fp:()=>h,pC:()=>C,q_:()=>i}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const o="popstate";function i(e){return void 0===e&&(e={}),function(e,t,n,i){void 0===i&&(i={});let{window:s=document.defaultView,v5Compat:p=!1}=i,m=s.history,h=a.Pop,g=null,v=f();function f(){return(m.state||{idx:null}).idx}function w(){h=a.Pop;let e=f(),t=null==e?null:e-v;v=e,g&&g({action:h,location:y.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"==typeof e?e:d(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,m.replaceState(r({},m.state,{idx:v}),""));let y={get action(){return h},get location(){return e(s,m)},listen(e){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(o,w),g=e,()=>{s.removeEventListener(o,w),g=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=a.Push;let r=u(y.location,e,t);n&&n(r,e),v=f()+1;let o=c(r,v),i=y.createHref(r);try{m.pushState(o,"",i)}catch(e){s.location.assign(i)}p&&g&&g({action:h,location:y.location,delta:1})},replace:function(e,t){h=a.Replace;let r=u(y.location,e,t);n&&n(r,e),v=f();let o=c(r,v),i=y.createHref(r);m.replaceState(o,"",i),p&&g&&g({action:h,location:y.location,delta:0})},go:e=>m.go(e)};return y}((function(e,t){let{pathname:n="/",search:r="",hash:a=""}=p(e.location.hash.substr(1));return u("",{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:d(t))}),(function(e,t){s("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function s(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 u(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 d(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=S(("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 o=null;for(let e=0;null==o&&e{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=x([r,i.relativePath]),c=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),g(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:b(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of v(e.path))a(e,t,n);else a(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=v(r.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.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 f=/^:\w+$/,w=e=>"*"===e;function b(e,t){let n=e.split("/"),r=n.length;return n.some(w)&&(r+=-2),t&&(r+=2),n.filter((e=>!w(e))).reduce(((e,t)=>e+(f.test(t)?3:""===t?1:10)),r)}function y(e,t){let{routesMeta:n}=e,r={},a="/",o=[];for(let e=0;e(r.push(t),"/([^\\/]+)")));return e.endsWith("*")?(r.push("*"),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 o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=l[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return s(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function E(e){try{return decodeURI(e)}catch(t){return s(!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 S(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 k(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 and the router will parse it for you.'}function N(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function C(e,t,n,a){let o;void 0===a&&(a=!1),"string"==typeof e?o=p(e):(o=r({},e),l(!o.pathname||!o.pathname.includes("?"),k("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),k("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),k("#","search","hash",o)));let i,s=""===e||""===o.pathname,c=s?"/":o.pathname;if(a||null==c)i=n;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?p(e):e,o=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:o,search:T(r),hash:P(a)}}(o,i),d=c&&"/"!==c&&c.endsWith("/"),m=(s||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!m||(u.pathname+="/"),u}const x=e=>e.join("/").replace(/\/\/+/g,"/"),D=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",P=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function I(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}Error;const O=["post","put","patch","delete"],A=(new Set(O),["get",...O]);new Set(A),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,Symbol("deferred")},1984:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9307);const a=function(e){let{icon:t,size:n=24,...a}=e;return(0,r.cloneElement)(t,{width:n,height:n,...a})}},6713:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},8184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},4310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},8126:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.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"}))},3230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}))},304:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}))},6058:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},6922:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},5430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},9109:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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:"M18.646 9H20V8l-1-.5L12 4 5 7.5 4 8v1h14.646zm-3-1.5L12 5.677 8.354 7.5h7.292zm-7.897 9.44v-6.5h-1.5v6.5h1.5zm5-6.5v6.5h-1.5v-6.5h1.5zm5 0v6.5h-1.5v-6.5h1.5zm2.252 8.81c0 .414-.334.75-.748.75H4.752a.75.75 0 010-1.5h14.5a.75.75 0 01.749.75z",clipRule:"evenodd"}))},2322:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},1941:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}))},1526:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(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"}))},2601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),a=n(444);const o=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.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"}))},682:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307),a=n(4184),o=n.n(a);const i=e=>{let{type:t,after:n=!0,children:a,className:i="",duration:l=!1,timingFunction:s=!1}=e;const c="animate";return n?(0,r.createElement)("div",{className:o()(function(){if(t){let e="";switch(t){case"fade-in":e=c.concat("__fade-in");break;case"fade-in-disabled":e=c.concat("__fade-in--disabled");break;case"fade-in-right":e=c.concat("__fade-in--right");break;case"fade-in-left":e=c.concat("__fade-in--left");break;case"fade-in-up":e=c.concat("__fade-in--up");break;case"shine":e=c.concat("__shine");break;case"shine-placeholder":e=c.concat("__shine--placeholder");break;case"dropdown":e=c.concat("__dropdown");break;case"load":e=c.concat("__load")}return e}}(),i),style:{animationDuration:l,animationTimingFunction:s}},a):(0,r.createElement)("div",{className:"animate__blank"},a)}},1589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(9307),a=n(9250),o=n(4310),i=n(9818),l=n(5609),s=n(5736),c=n(4184),u=n.n(c),d=n(7533),p=n(6831),m=n(8395),h=n(2200);const g=e=>{let{buttonText:t=(0,s.__)("Exit to WordPress","wp-module-onboarding"),showButtonIcon:n=!0,showButton:c=!0,buttonVariant:g="secondary",buttonClassName:v=!1,isModalOpen:f=!1,modalTitle:w=(0,s.__)("Exit without finishing?","wp-module-onboarding"),modalText:b=!1,modalPrimaryCloseButtonText:y=(0,s.__)("Continue","wp-module-onboarding"),modalOnClose:_=!1,modalExitButtonText:E=(0,s.__)("Exit","wp-module-onboarding")}=e;const[S,k]=(0,r.useState)(f),N=()=>{"function"==typeof _&&_(),k(!1)},C=(0,a.TH)(),{currentData:x,brandName:D,socialData:T}=(0,i.useSelect)((e=>({currentData:e(p.h).getCurrentOnboardingData(),brandName:e(p.h).getNewfoldBrandName(),socialData:e(p.h).getOnboardingSocialData()})),[C.pathname]),{setOnboardingSocialData:P}=(0,i.useDispatch)(p.h);async function I(e){if(x){if(x.hasExited=(new Date).getTime(),null!=e&&e.includes("basic-info")){const e=await async function(){const e=await(0,m.Gw)(),t=await(0,m.I2)(T);return null!==(null==t?void 0:t.error)?null==e?void 0:e.body:null==t?void 0:t.body}();e&&P(e)}(0,d.kB)(x)}const t="ecommerce"===window.nfdOnboarding.currentFlow?h.br:h.hF;window.location.replace(t)}return b||(b=(0,s.sprintf)( +/* translators: %s: Brand */ +(0,s.__)("You can restart onboarding from your %s Settings page.","wp-module-onboarding"),D)),(0,r.createElement)(r.Fragment,null,c&&(0,r.createElement)(l.Button,{icon:!!n&&o.Z,variant:g,onClick:()=>k(!0),className:u()("nfd-onboarding-etw__trigger",v)},t),S&&(0,r.createElement)(l.Modal,{title:w,onRequestClose:()=>N()},(0,r.createElement)("p",null,b),(0,r.createElement)(l.ButtonGroup,{className:"nfd-onboarding-etw__buttons"},(0,r.createElement)(l.Button,{variant:"secondary",onClick:()=>N()},y),(0,r.createElement)(l.Button,{variant:"primary",onClick:()=>I(C.pathname)},E))))}},4316:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9307);const a=e=>{let{title:t,subtitle:n,children:a}=e;return(0,r.createElement)("div",{className:"nfd-main-heading"},(0,r.createElement)("h2",{className:"nfd-main-heading__title"},t),n&&(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},n),a)}},1996:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(9307),a=n(4184),o=n.n(a);const i=window.wp.a11y;var l=n(9250),s=n(2200),c=n(6989),u=n.n(c),d=n(4704);const p=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const a=(0,l.TH)(),c=document.querySelector(".nfd-onboard-content");return(0,r.useEffect)((()=>{null==c||c.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,i.speak)(t,"assertive")}(a,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){u()({url:(0,d.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${s.Db}-pageview`,{stepID:a.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=a.pathname}),[a.pathname]),(0,r.createElement)("div",{className:o()("nfd-onboarding-layout",t)},n)};var m=n(682);const h=e=>{let{children:t}=e;return(0,r.createElement)("section",{className:"is-contained"},t)},g=e=>{let{className:t="",children:n,isBgPrimary:a=!1,isCentered:i=!1,isVerticallyCentered:l=!1,isContained:s=!1,isPadded:c=!1,isFadeIn:u=!0}=e;const d=s?h:r.Fragment;return(0,r.createElement)(m.Z,{type:u&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,r.createElement)(p,{className:o()("nfd-onboarding-layout__common",t,{"is-bg-primary":a},{"is-centered":i},{"is-vertically-centered":l},{"is-padded":c})},(0,r.createElement)(d,null,n)))}},1054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307),a=n(5736),o=n(6332);const i=e=>{let{count:t,watch:n,callback:i,className:l,viewportWidth:s,isWithCard:c=!1}=e;const[u,d]=(0,r.useState)(0);return(0,r.useEffect)((()=>d(1)),[n]),n?(0,r.createElement)(r.Fragment,null,n?(0,r.createElement)("div",{style:{display:"none"}},u):null,i()):c?(()=>{const e=[];for(let n=0;n{const e=[];for(let n=0;n{"use strict";n.d(t,{V3:()=>D,i5:()=>f,H:()=>S,T9:()=>N,r9:()=>w.Z});var r=n(9307),a=n(9818),o=n(2175),i=n(4981),l=n(7462),s=n(5609),c=n(4333);let u;const d=6e3;function p(e){var t,n;let{viewportWidth:a,settings:i,containerWidth:l,minHeight:p,additionalStyles:m=[]}=e;a||(a=l);const[h,{height:g}]=(0,c.useResizeObserver)(),{styles:v,assets:f,duotone:w}={styles:i.styles,assets:i.__unstableResolvedAssets,duotone:null===(t=i.__experimentalFeatures)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.duotone},b=(0,r.useMemo)((()=>v?[...v,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...m]:v),[v,m]),y=(0,r.useMemo)((()=>{var e,t;return[...null!==(e=null==w?void 0:w.default)&&void 0!==e?e:[],...null!==(t=null==w?void 0:w.theme)&&void 0!==t?t:[]]}),[w]);u=u||(0,c.pure)(o.BlockList);const _=l/a;return(0,r.createElement)(s.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${_})`,height:g*_,maxHeight:g>d?d*_:void 0,minHeight:p}},(0,r.createElement)(o.__unstableIframe,{head:(0,r.createElement)(o.__unstableEditorStyles,{styles:b}),assets:f,contentRef:(0,c.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:a,height:g,pointerEvents:"none",maxHeight:d,minHeight:0!==_&&_<1&&p?p/_:p}},h,y.map((e=>(0,r.createElement)(o.__unstablePresetDuotoneFilter,{preset:e,key:e.slug}))),(0,r.createElement)(u,{renderAppender:!1})))}function m(e){const[t,{width:n}]=(0,c.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)(p,(0,l.Z)({},e,{containerWidth:n}))))}var h=n(6690),g=n(6831),v=n(682);const f=(0,r.memo)((e=>{let{blockGrammer:t,viewportWidth:n=1300,styling:l="large",setIsLoadingParent:s=!1,previewSettings:c=!1,skeletonLoadingTime:u=2500}=e;const[d,p]=(0,r.useState)(),[f,w]=(0,r.useState)(),[b,y]=(0,r.useState)(!0);(0,r.useEffect)((()=>{if(u){const e=setTimeout((()=>{y(!1),s&&s(!1)}),u);return()=>clearTimeout(e)}y(!1),s&&s(!1)}),[u]);const{currentData:_,storedPreviewSettings:E}=(0,a.useSelect)((e=>({currentData:e(g.h).getCurrentOnboardingData(),storedPreviewSettings:e(g.h).getPreviewSettings()})),[]);(0,r.useEffect)((()=>{w(c?(0,h.NF)(c,E,"block-preview"):E)}),[]),(0,r.useEffect)((()=>{t&&p((0,i.parse)(t))}),[t]),(0,r.useEffect)((()=>{c||w(E)}),[E,_]);const S=(0,r.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)(v.Z,{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"}))));return(0,r.createElement)("div",{className:`live-preview__container-${l}`},b&&(0,r.createElement)(S,null),d&&f&&(0,r.createElement)(o.BlockEditorProvider,{value:d,settings:f.settings},(0,r.createElement)(m,{viewportWidth:n,settings:f.settings})))}));var w=n(1054),b=n(1984),y=n(8184),_=n(444);const E=(0,r.createElement)(_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(_.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"})),S=e=>{let{className:t="live-preview--selectable-card",selected:n=!1,blockGrammer:a,viewportWidth:o=1500,styling:i="large",previewSettings:l,overlay:s=!1,onClick:c=!1,skeletonLoadingTime:u=2500}=e;const[d,p]=(0,r.useState)(!0);return(0,r.createElement)("div",{className:`${t}`,role:"button",tabIndex:0,onClick:"function"==typeof c&&(()=>{d||c()}),onKeyDown:"function"==typeof c&&(()=>{d||c()})},(0,r.createElement)("div",{className:`${t}__title-bar`},(0,r.createElement)("div",{className:`${t}__title-bar__browser`},(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`})),(0,r.createElement)("div",{className:n?`${t}__title-bar--selected live-preview-selected-check`:`${t}__title-bar--unselected`},(0,r.createElement)(b.Z,{className:`${t}__title-bar--selected__path`,icon:y.Z,size:64}))),(0,r.createElement)("div",{className:`${t}__live-preview-container`},(0,r.createElement)(f,{styling:i,blockGrammer:a,viewportWidth:o,previewSettings:l,setIsLoadingParent:p,skeletonLoadingTime:u}),s&&!d&&(0,r.createElement)("div",{className:`${t}__live-preview-container__overlay`},(0,r.createElement)(b.Z,{className:`${t}__live-preview-container__overlay__icon`,size:64,icon:E}))))};var k=n(6058);const N=e=>{let{className:t="live-preview--selectable-card--title-description",selected:n=!1,blockGrammer:a,viewportWidth:o=1500,styling:i="large",previewSettings:l,onClick:c=!1,skeletonLoadingTime:u=2500,title:d=!1,description:p=!1,slug:m}=e;const[h,g]=(0,r.useState)(!1),w=e=>{"function"==typeof c&&c(e,m,d)};return(0,r.createElement)("div",{className:`${t}`},(0,r.createElement)("div",{className:`${t}__live-preview-container`,onClick:()=>w(!n),role:"presentation"},(0,r.createElement)(f,{styling:i,blockGrammer:a,viewportWidth:o,previewSettings:l,skeletonLoadingTime:u})),(0,r.createElement)("div",{className:`${t}__information`,style:{backgroundColor:h?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("div",{className:`${t}__information__title-question`},(0,r.createElement)("div",{className:`${t}__information__title-question__checkbox`},(0,r.createElement)(s.CheckboxControl,{label:(0,r.createElement)("b",null,d),onChange:()=>w(!n),checked:n})),(0,r.createElement)("div",{className:`${t}__information__title-question__question`},(0,r.createElement)(b.Z,{className:`${t}__information__title-question__question__icon`,icon:k.Z,style:{fill:h&&"var(--wp-admin-theme-color-darker-10)"},onClick:()=>g(!h)})))),h&&(0,r.createElement)(v.Z,{type:"dropdown",className:`${t}__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:`${t}__description--text`},p)))};var C=n(7625),x=n(2200);const D=e=>{let{children:t}=e;const[n,o]=(0,r.useState)(!1),{currentData:i,storedPreviewSettings:l,themeStatus:s}=(0,a.useSelect)((e=>({currentData:e(g.h).getCurrentOnboardingData(),storedPreviewSettings:e(g.h).getPreviewSettings(),themeStatus:e(g.h).getThemeStatus()})),[]),{updateThemeStatus:c,updatePreviewSettings:u,enqueueRequest:d}=(0,a.useDispatch)(g.h);return(0,r.useEffect)((()=>{n||x.GV!==s||(async()=>{let e;if(null!=l&&l.title&&null!=l&&l.settings)e=l;else{var t;const n=await(0,C.oC)();if(null!=n&&n.error)return c(x.a0);i.data.theme.variation?e=n.body.filter((e=>e.title===i.data.theme.variation))[0]:0===(null===(t=n.body[0])||void 0===t?void 0:t.id)&&(e=n.body[0]),u((0,h.NF)(e,l))}e&&d(x.Az.SET_GLOBAL_STYLES,(()=>(0,C.cw)({...e,title:i.data.theme.variation,version:2}))),o(!0)})()}),[n,s]),t}},9884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(9307),a=n(35),o=n(5736),i=n(1392);var l=n(9818),s=n(6831);const c=()=>{const{brandName:e}=(0,l.useSelect)((e=>({brandName:e(s.h).getNewfoldBrandName()})),[]),t=(e=>({title:(0,o.sprintf)( +/* translators: 1: Brand 2: Site */ +(0,o.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,i.I)("Site")),subtitle:(0,o.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")}))(e);return(0,r.createElement)(a.Z,{title:t.title,subtitle:t.subtitle})}},35:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),a=n(1996),o=n(4316),i=n(950);const l=e=>{let{title:t,subtitle:n}=e;return(0,r.createElement)(a.Z,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(o.Z,{title:t,subtitle:n}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(i.Z,null))}},950:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9307),a=n(6831),o=n(9818),i=n(5736);const l=e=>{let{question:t=(0,i.__)("Need Help?","wp-module-onboarding"),urlLabel:n=(0,i.__)("Hire our Experts","wp-module-onboarding")}=e;const l=(0,o.select)(a.h).getHireExpertsUrl();return l&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},t,(0,r.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},n))}},7328:(e,t,n)=>{"use strict";n.d(t,{mT:()=>le,BX:()=>ue,fS:()=>de,iD:()=>ce,L1:()=>oe,_j:()=>se,S6:()=>ie});var r=n(9307),a=n(5736),o=n(2819),i=n(6831),l=n(9250),s=n(9818);var c=n(1392),u=n(444);const d=(0,r.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(u.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})),p=(0,r.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(u.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"})),m=(0,r.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(u.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"})),h=(0,r.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(u.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"})),g=(0,r.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(u.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"}));var v=n(6922),f=n(2322),w=n(5430),b=n(304),y=n(3230),_=n(1941),E=n(8126),S=n(2601),k=n(6713),N=n(2200);const C=(0,r.lazy)((()=>n.e(187).then(n.bind(n,7187)))),x=(0,r.lazy)((()=>n.e(880).then(n.bind(n,4880)))),D=(0,r.lazy)((()=>n.e(577).then(n.bind(n,7577)))),T=(0,r.lazy)((()=>n.e(996).then(n.bind(n,7996)))),P=(0,r.lazy)((()=>n.e(998).then(n.bind(n,8998)))),I=(0,r.lazy)((()=>n.e(594).then(n.bind(n,1594)))),O=(0,r.lazy)((()=>n.e(139).then(n.bind(n,8139)))),A=(0,r.lazy)((()=>n.e(888).then(n.bind(n,5888)))),L=(0,r.lazy)((()=>n.e(27).then(n.bind(n,7027)))),F=(0,r.lazy)((()=>n.e(253).then(n.bind(n,2253)))),R=(0,r.lazy)((()=>n.e(61).then(n.bind(n,5061)))),V=(0,r.lazy)((()=>n.e(565).then(n.bind(n,7565)))),$=(0,r.lazy)((()=>n.e(907).then(n.bind(n,4907)))),z=(0,r.lazy)((()=>n.e(264).then(n.bind(n,5264)))),B=(0,r.lazy)((()=>n.e(473).then(n.bind(n,7473)))),M=(0,r.lazy)((()=>n.e(428).then(n.bind(n,3428)))),U=(0,r.lazy)((()=>n.e(932).then(n.bind(n,2932)))),W=(0,r.lazy)((()=>n.e(860).then(n.bind(n,5860)))),H=(0,r.lazy)((()=>n.e(608).then(n.bind(n,9608)))),Z=(0,r.lazy)((()=>n.e(9).then(n.bind(n,8009)))),G=(0,r.lazy)((()=>n.e(858).then(n.bind(n,8858)))),j=(0,r.lazy)((()=>n.e(848).then(n.bind(n,3848)))),q=(0,r.lazy)((()=>n.e(331).then(n.bind(n,5331)))),Q=(0,r.lazy)((()=>n.e(869).then(n.bind(n,2869)))),J=(0,r.lazy)((()=>n.e(193).then(n.bind(n,3193)))),K=(0,r.lazy)((()=>n.e(361).then(n.bind(n,7361)))),Y=(0,r.lazy)((()=>n.e(437).then(n.bind(n,3437)))),X=(0,r.lazy)((()=>n.e(111).then(n.bind(n,111)))),ee=(0,r.lazy)((()=>n.e(958).then(n.bind(n,8958)))),te=(0,r.lazy)((()=>n.e(645).then(n.bind(n,4645)))),ne=(0,r.lazy)((()=>n.e(181).then(n.bind(n,4181)))),re=(0,r.lazy)((()=>n.e(216).then(n.bind(n,3216)))),ae=(0,r.lazy)((()=>n.e(179).then(n.bind(n,7179)))),oe=[{path:"/",title:"",description:"",Component:()=>{const e=(0,l.s0)(),{firstStep:t}=(0,s.useSelect)((e=>({firstStep:e(i.h).getFirstStep()})),[]);return(0,r.useEffect)((()=>{e(t.path,{replace:!0,state:{origin:"index-redirect"}})})),(0,r.createElement)(r.Fragment,null)},Icon:(0,r.createElement)(r.Fragment,null)},{path:"/page/resources",title:(0,a.__)("Resources","wp-module-onboarding"),description:"",Component:x,Icon:d},{path:"/page/what-to-expect",title:(0,a.__)("What to Expect","wp-module-onboarding"),description:"",Component:D,Icon:p},{path:"*",title:(0,a.__)("Error 404","wp-module-onboarding"),description:"Please Check Again!",Component:C,Icon:p}],ie=[{path:"/wp-setup/step/get-started/welcome",title:(0,a.__)("Welcome","wp-module-onboarding"),description:(0,a.__)("We'll use this to personalize this onboarding and future recommendations","wp-module-onboarding"),Component:T,Icon:v.Z,priority:20,VIEW:N.mz,sidebars:{LearnMore:{SidebarComponents:[P]}}},{path:"/wp-setup/step/get-started/experience",title:(0,a.__)("WordPress Experience","wp-module-onboarding"),description:(0,a.__)("We'll use this to personalize this onboarding and future recommendations","wp-module-onboarding"),Component:I,Icon:v.Z,priority:40,VIEW:N.mz,sidebars:{LearnMore:{SidebarComponents:[O]}}},{path:"/wp-setup/step/get-started/site-primary",title:(0,a.sprintf)( +/* translators: %s: website or store */ +(0,a.__)("Primary %s Setup","wp-module-onboarding"),(0,c.I)("Site")),Component:A,Icon:f.Z,priority:60,sidebars:{LearnMore:{SidebarComponents:[L]}}},{path:"/wp-setup/step/get-started/site-secondary",title:(0,a.sprintf)( +/* translators: %s: website or store */ +(0,a.__)("Secondary %s Setup","wp-module-onboarding"),(0,c.I)("Site")),Component:F,Icon:f.Z,priority:80,sidebars:{LearnMore:{SidebarComponents:[R]}}},{path:"/wp-setup/step/top-priority",title:(0,a.__)("Top Priority","wp-module-onboarding"),heading:(0,a.__)("Tell us your top priority","wp-module-onboarding"),subheading:(0,a.__)("We'll prioritize getting you there.","wp-module-onboarding"),description:(0,a.__)("We'll recommend design choices, site options and products and features we have to offer.","wp-module-onboarding"),Component:V,Icon:m,priority:100},{path:"/wp-setup/step/basic-info",title:(0,a.__)("Basic Info","wp-module-onboarding"),heading:(0,a.sprintf)( +/* translators: %s: website or store */ +(0,a.__)("Introduce us to this %s","wp-module-onboarding"),(0,c.I)("website")),subheading:(0,a.__)("So we can introduce it to the web","wp-module-onboarding"),description:(0,a.sprintf)( +/* translators: %s: website or store */ +(0,a.__)("Help visitors, search results and social media identify your %s.","wp-module-onboarding"),(0,c.I)("site")),Component:$,Icon:w.Z,priority:120,sidebars:{LearnMore:{SidebarComponents:[z]}}},{path:"/wp-setup/step/design/theme-styles/menu",title:(0,a.__)("Theme Styles","wp-module-onboarding"),Component:B,Icon:h,priority:160,designDrawerActiveLinkIncludes:"/wp-setup/step/design/theme-styles/",VIEW:N.Yl,patternId:"theme-styles",sidebars:{LearnMore:{SidebarComponents:[M]}}},{path:"/wp-setup/step/design/theme-styles/preview",title:(0,a.__)("Theme Styles","wp-module-onboarding"),Component:U,Icon:h,priority:170,VIEW:N._h,designDrawerActiveLinkIncludes:"/wp-setup/step/design/theme-styles/",patternId:"theme-styles",sidebars:{LearnMore:{SidebarComponents:[W]}}},{path:"/wp-setup/step/design/header-menu",title:(0,a.__)("Header & Menu","wp-module-onboarding"),heading:(0,a.__)("Let's make the right things visible","wp-module-onboarding"),subheading:(0,a.__)("Your site header helps organize your story for visitors.","wp-module-onboarding"),description:(0,a.__)("A well-organized site makes visitors feel smart, helping you keep and convert them.","wp-module-onboarding"),Component:q,Icon:b.Z,priority:220,VIEW:N.qO,patternId:"header-menu",sidebars:{LearnMore:{SidebarComponents:[Q]}}},{path:"/wp-setup/step/design/homepage-menu",title:(0,a.__)("Homepage Layouts","wp-module-onboarding"),heading:(0,a.__)("There’s no place like a great home page","wp-module-onboarding"),subheading:(0,a.__)("Pick a starter layout you can refine and remix with your content","wp-module-onboarding"),description:(0,a.__)("A well-organized homepage makes visitors feel smart.","wp-module-onboarding"),Component:J,Icon:g,priority:240,VIEW:N.Yl,patternId:"homepage-styles",sidebars:{LearnMore:{SidebarComponents:[K]}}},{path:"/wp-setup/step/design/site-pages",title:(0,a.__)("Page Layouts","wp-module-onboarding"),heading:(0,a.__)("You have ideas, we have page templates","wp-module-onboarding"),subheading:(0,a.__)("Begin closer to the finish line than a blank canvas.","wp-module-onboarding"),description:(0,a.__)("Pick a page, pick a layout and we'll focus on the basics so you focus on what's important and unique.","wp-module-onboarding"),Component:Y,Icon:y.Z,priority:260,patternId:"site-pages",sidebars:{LearnMore:{SidebarComponents:[X]}}},{path:"/wp-setup/step/site-features",title:(0,a.__)("Features","wp-module-onboarding"),heading:(0,a.__)("Key features to supercharge your site","wp-module-onboarding"),subheading:(0,a.__)("Our toolbox of Plugins & Services is your toolbox.","wp-module-onboarding"),description:(0,a.__)("Through Plugins, partners and unique $BRAND WordPress features, you've got tons of capabilities with $SITE.","wp-module-onboarding"),Component:ee,Icon:_.Z,priority:280,patternId:"site-features",sidebars:{LearnMore:{SidebarComponents:[te]}}},{path:"/wp-setup/step/complete",Component:ne,priority:285},{path:"/wp-setup/step/what-next",title:(0,a.__)("What Next","wp-module-onboarding"),heading:(0,a.__)("How else can we help?","wp-module-onboarding"),subheading:(0,a.__)("We've got the basics setup, but we can help with any next steps.","wp-module-onboarding"),description:(0,a.__)("Setup more of your site, show you around WordPress or share secrets to success -- we'll follow your lead on how you'd like to proceed.","wp-module-onboarding"),Component:re,Icon:f.Z,priority:300,sidebars:{LearnMore:{SidebarComponents:[ae]}}}],le={designColors:{path:"/wp-setup/step/design/colors",title:(0,a.__)("Colors","wp-module-onboarding"),heading:(0,a.__)("What's your color palette?","wp-module-onboarding"),subheading:(0,a.__)("We'll paint everything with your colors for a fresh, crisp look.","wp-module-onboarding"),description:(0,a.__)("Strong contrast and clear readability help your words jump off the screen.","wp-module-onboarding"),Component:H,Icon:E.Z,priority:180,VIEW:N.qR,patternId:"theme-styles",sidebars:{LearnMore:{SidebarComponents:[Z]}}},designTypography:{path:"/wp-setup/step/design/typography",title:(0,a.__)("Typography","wp-module-onboarding"),heading:(0,a.__)("What's your font style?","wp-module-onboarding"),subheading:(0,a.__)("Impress your visitors with strong branding and aesthetics.","wp-module-onboarding"),description:(0,a.__)("Good typography uses style and proportions to give your words identity and priority. What's your story? Your focus?","wp-module-onboarding"),Component:G,Icon:S.Z,priority:200,VIEW:N.jN,patternId:"theme-styles",sidebars:{LearnMore:{SidebarComponents:[j]}}}},se=[...oe,...ie],ce=()=>{const e=(0,o.filter)(ie,(e=>!e.path.includes("/step/get-started")&&!e.path.includes("/step/design")&&!e.path.includes("/step/complete"))),t={path:"/wp-setup/step/design/theme-styles/menu",title:(0,a.__)("Design","wp-module-onboarding"),description:"",Icon:k.Z,VIEW:N.Yl,primaryDrawerActiveLinkIncludes:"/wp-setup/step/design/",priority:140},n={path:"/wp-setup/step/get-started/welcome",title:(0,a.__)("Get Started","wp-module-onboarding"),heading:(0,a.__)("Get Started","wp-module-onboarding"),Icon:v.Z,VIEW:N.mz,primaryDrawerActiveLinkIncludes:"/wp-setup/step/get-started/",priority:20};return e.push(t),e.push(n),(0,o.orderBy)(e,["priority"],["asc"])},ue=()=>(0,o.filter)(ie,(e=>e.path.includes("/step/design/")&&!e.path.includes("/theme-styles/preview"))),de=()=>(0,o.filter)(ie,(e=>e.path.includes("/step/get-started")))},7539:(e,t,n)=>{"use strict";n.d(t,{Z7:()=>E,B5:()=>w,Lo:()=>S,iD:()=>_,_j:()=>y,S6:()=>b});var r=n(5736),a=n(9307),o=n(444);const i=(0,a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(o.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"}));var l=n(1526),s=n(9109),c=n(2819),u=n(7328),d=n(2200);const p=(0,a.lazy)((()=>n.e(155).then(n.bind(n,1155)))),m=(0,a.lazy)((()=>n.e(135).then(n.bind(n,5135)))),h=(0,a.lazy)((()=>n.e(833).then(n.bind(n,9833)))),g=(0,a.lazy)((()=>n.e(338).then(n.bind(n,4338)))),v=(0,a.lazy)((()=>n.e(722).then(n.bind(n,2722)))),f=(0,a.lazy)((()=>n.e(949).then(n.bind(n,7949)))),w=[{path:"/ecommerce/step/address",title:(0,r.__)("Street Address","wp-module-onboarding"),heading:(0,r.__)("Street Address","wp-module-onboarding"),subheading:(0,r.__)("In this step you confirm the business address of your store. Simply confirm the one you provided during your initial Bluehost account setup or provide a new one.","wp-module-onboarding"),description:(0,r.__)("In this step you confirm the business address of your store. Simply confirm the one you provided during your initial Bluehost account setup or provide a new one.","wp-module-onboarding"),Component:p,Icon:l.Z,priority:85,VIEW:d.dv,sidebars:{LearnMore:{SidebarComponents:[m]}}},{path:"/ecommerce/step/tax",title:(0,r.__)("Tax Info","wp-module-onboarding"),heading:(0,r.__)("Tax Info","wp-module-onboarding"),subheading:(0,r.__)("Taxes can be configure at anytime in the WooCommerce Settings tab.","wp-module-onboarding"),description:(0,r.__)("Taxes can be configured at anytime in the WooCommerce Settings tab.","wp-module-onboarding"),Component:h,Icon:s.Z,priority:90,VIEW:d.dv,sidebars:{LearnMore:{SidebarComponents:[g]}}},{path:"/ecommerce/step/products",title:(0,r.__)("Product Info","wp-module-onboarding"),heading:(0,r.__)("Product Info","wp-module-onboarding"),subheading:(0,r.__)("Hello, add a subheading for the learn more sidebar.","wp-module-onboarding"),description:(0,r.__)("In this section, you can provide more information about your products and business, which will help us tailor your store setup experience and identify possible extensions you'll need for your online store.","wp-module-onboarding"),Component:v,Icon:i,priority:95,VIEW:d.dv,sidebars:{LearnMore:{SidebarComponents:[f]}}}],b=(0,c.orderBy)([...(0,c.filter)(u.S6,(e=>!e.path.includes("/step/top-priority")&&!e.path.includes("/step/get-started/site-primary"))),...w],["priority"],["asc"]),y=(0,c.orderBy)([...b,...u.L1],["priority"],["asc"]),_=()=>{const e=(0,c.filter)(w,(e=>!e.path.includes("/ecommerce/step"))),t={path:"/ecommerce/step/address",title:(0,r.__)("Store Info","wp-module-onboarding"),description:"",Icon:l.Z,primaryDrawerActiveLinkIncludes:"/ecommerce/step/",VIEW:d.dv,priority:41};e.push(t);const n=(0,c.filter)((0,u.iD)(),(e=>!e.path.includes("/step/top-priority")));return(0,c.orderBy)([...n,...e],["priority"],["asc"])},E=()=>(0,c.filter)((0,u.fS)(),(e=>!e.path.includes("/step/get-started/site-primary"))),S=()=>w[0]},6510:(e,t,n)=>{"use strict";n.d(t,{BX:()=>d,Fl:()=>m,S6:()=>s,_j:()=>l,fS:()=>p,iD:()=>u,mT:()=>c});var r=n(7328),a=n(7539);function o(){var e;return null!==(e=window.nfdOnboarding.currentFlow)&&void 0!==e?e:"wp-setup"}const i={"wp-setup":{routes:r._j,steps:r.S6,conditionalSteps:r.mT,initialTopSteps:r.iD,initialDesignSteps:r.BX,initialGetStartedSteps:r.fS},ecommerce:{routes:a._j,steps:a.S6,conditionalSteps:r.mT,initialTopSteps:a.iD,initialDesignSteps:r.BX,initialGetStartedSteps:a.Z7,initialStoreInfoSteps:a.B5}},l=[...i[o()].routes],s=[...i[o()].steps],c=i[o()].conditionalSteps,u=()=>i[o()].initialTopSteps(),d=()=>i[o()].initialDesignSteps(),p=()=>i[o()].initialGetStartedSteps(),m=()=>i[o()].initialStoreInfoSteps?i[o()].initialStoreInfoSteps:[]},6831:(e,t,n)=>{"use strict";n.d(t,{h:()=>Se});var r={};n.r(r),n.d(r,{dequeueRequest:()=>N,enqueueRequest:()=>k,flushQueue:()=>C,setActiveFlow:()=>c,setActiveStep:()=>u,setCurrentOnboardingData:()=>d,setDrawerActiveView:()=>i,setHeaderMenuData:()=>S,setIsDrawerOpened:()=>l,setIsDrawerSuppressed:()=>s,setIsHeaderNavigationEnabled:()=>w,setIsSidebarOpened:()=>v,setOnboardingSocialData:()=>p,setRuntime:()=>o,setSidebarActiveView:()=>f,updateAllSteps:()=>_,updateDesignSteps:()=>E,updatePluginsStatus:()=>g,updatePreviewSettings:()=>b,updateRoutes:()=>y,updateSettings:()=>m,updateThemeStatus:()=>h});var a={};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:"wp-setup",stepPreviewData:e.previewSettings.stepPreviewData},{type:"SET_RUNTIME",runtime:e}}function i(e){return{type:"SET_DRAWER_ACTIVE_VIEW",view:e}}function l(e){return{type:"SET_DRAWER_OPENED",isOpen:e}}function s(e){return{type:"SET_DRAWER_SUPPRESSED",isSuppressed:e}}function c(e){return{type:"SET_ACTIVE_FLOW",flow:e}}function u(e){return{type:"SET_ACTIVE_STEP",path:e=e.replace(/\/$/,"")}}function d(e){return{type:"SET_CURRENT_DATA",flowData:e}}function p(e){return{type:"SET_SOCIAL_DATA",socialData:e}}function m(e){return{type:"UPDATE_SETTINGS",settings:e}}function h(e){return{type:"UPDATE_THEME_STATUS",themeStatus:e}}function g(e){return{type:"UPDATE_PLUGINS_STATUS",pluginsStatus:e}}function v(e){return{type:"SET_SIDEBAR_OPENED",isOpen:e}}function f(e){return{type:"SET_SIDEBAR_ACTIVE_VIEW",view:e}}function w(e){return{type:"SET_HEADER_NAVIGATION_ENABLED",isNavigationEnabled:e}}function b(e){return{type:"SET_PREVIEW_SETTINGS",previewSettings:e}}function y(e){return{type:"UPDATE_ROUTES",routes:e}}function _(e){return{type:"UPDATE_ALL_STEPS",allSteps:e}}function E(e){return{type:"UPDATE_DESIGN_STEPS",designSteps:e}}function S(e){return{type:"UPDATE_HEADER_MENU_DATA",menu:e}}function k(e,t){return{type:"ENQUEUE_REQUEST",id:e,request:t}}function N(){return{type:"DEQUEUE_REQUEST"}}function C(){return{type:"FLUSH_QUEUE"}}n.r(a),n.d(a,{getAllSteps:()=>M,getCurrentOnboardingData:()=>V,getCurrentStep:()=>q,getCurrentStepPath:()=>Z,getDesignSteps:()=>W,getDrawerView:()=>T,getExpertsUrl:()=>se,getFirstStep:()=>G,getGetStartedSteps:()=>H,getHeaderMenuData:()=>le,getHireExpertsUrl:()=>R,getLastStep:()=>j,getNewfoldBrand:()=>A,getNewfoldBrandConfig:()=>F,getNewfoldBrandName:()=>L,getNextStep:()=>K,getOnboardingFlow:()=>z,getOnboardingSocialData:()=>$,getPluginInstallHash:()=>de,getPluginsStatus:()=>ae,getPreviewSettings:()=>te,getPreviousStep:()=>J,getQueuePeek:()=>pe,getRoutes:()=>B,getSettings:()=>ne,getSidebarView:()=>X,getSidebars:()=>ee,getStepFromPath:()=>Q,getStepPreviewData:()=>ie,getStoreInfoSteps:()=>oe,getTechSupportUrl:()=>ue,getThemeStatus:()=>re,getTopSteps:()=>U,getfullServiceCreativeTeamUrl:()=>ce,isDrawerOpened:()=>P,isDrawerSuppressed:()=>I,isHeaderNavigationEnabled:()=>O,isQueueEmpty:()=>me,isSidebarOpened:()=>Y});var x=n(2819),D=n(6483);function T(e){return e.drawer.view}function P(e){return e.drawer.isOpen}function I(e){return e.drawer.isSuppressed}function O(e){return e.header.isNavigationEnabled}function A(e){return e.runtime.currentBrand.brand}function L(e){return e.runtime.currentBrand.name}function F(e){return e.runtime.currentBrand.config}function R(e){const t=e.runtime.currentBrand.hireExpertsInfo;return(0,D.addQueryArgs)(null==t?void 0:t.defaultLink,null==t?void 0:t.queryParameters)+((null==t?void 0:t.fragment)||"")}function V(e){return e.data.flowData}function $(e){return e.data.socialData}function z(e){var t;return null!==(t=e.runtime.currentFlow)&&void 0!==t?t:"wp-setup"}function B(e){return e.flow.steps.routes}function M(e){return e.flow.steps.allSteps}function U(e){return e.flow.steps.topSteps}function W(e){return e.flow.steps.designSteps}function H(e){return e.flow.steps.getStartedSteps}function Z(e){return e.flow.steps.currentStep}function G(e){return e.flow.steps.allSteps[0]}function j(e){return e.flow.steps.allSteps[e.flow.steps.allSteps.length-1]}function q(e){return(0,x.filter)(e.flow.steps.allSteps,["path",e.flow.steps.currentStep])[0]}function Q(e,t){return(0,x.filter)(e.flow.steps.allSteps,["path",t])[0]}function J(e){const t=(0,x.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return 0===t?null:-1!==t&&e.flow.steps.allSteps[t-1]}function K(e){const t=e.flow.steps.allSteps.length-1,n=(0,x.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return t===n?null:-1!==n&&e.flow.steps.allSteps[n+1]}function Y(e){return e.sidebar.isOpen}function X(e){return e.sidebar.view}function ee(e){return(0,x.filter)(e.sidebar.sidebars,["enabled",!0])}function te(e){return e.runtime.previewSettings.settings}function ne(e){return e.settings}function re(e){return e.settings.themeStatus}function ae(e){return e.settings.pluginsStatus}function oe(e){return e.flow.steps.storeInfoSteps}function ie(e){return e.runtime.previewSettings.stepPreviewData}function le(e){return e.header.menu}function se(e){const t=e.runtime.currentBrand.expertsInfo;return(0,D.addQueryArgs)(null==t?void 0:t.defaultLink,null==t?void 0:t.queryParams)+((null==t?void 0:t.fragment)||"")}function ce(e){const t=e.runtime.currentBrand.fullServiceCreativeTeamInfo;return(0,D.addQueryArgs)(null==t?void 0:t.defaultLink,null==t?void 0:t.queryParams)+((null==t?void 0:t.fragment)||"")}function ue(e){const t=e.runtime.currentBrand.techSupportInfo;return(0,D.addQueryArgs)(null==t?void 0:t.defaultLink,null==t?void 0:t.queryParams)+((null==t?void 0:t.fragment)||"")}function de(e){return e.runtime.pluginInstallHash}function pe(e){var t;return null!==(t=null==e?void 0:e.queue[0])&&void 0!==t?t:null}function me(e){var t;return 0===(null==e||null===(t=e.queue)||void 0===t?void 0:t.length)}var he=n(9818);window.wp.dataControls;var ge=n(2200),ve=n(6510),fe=n(9307);const we=(0,fe.lazy)((()=>n.e(993).then(n.bind(n,1993)))),be=(0,fe.lazy)((()=>n.e(310).then(n.bind(n,6310)))),ye=[{id:ge.Jq,menu:we,sidebar:be,enabled:!0}],_e=async e=>{const t=e,n=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t[0]&&await t[0][1]().then((t=>{t.error&&et.shift())).then(n)};return await n(),t},Ee={reducer:(0,he.combineReducers)({drawer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isOpen:!1,isSuppressed:!1,view:ge.tM},t=arguments.length>1?arguments[1]:void 0;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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_RUNTIME":return{...e,...t.runtime};case"SET_PREVIEW_SETTINGS":return{...e,previewSettings:{...e.previewSettings,settings:t.previewSettings}}}return e},data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CURRENT_DATA":return{...e,flowData:{...t.flowData}};case"SET_SOCIAL_DATA":return{...e,socialData:{...t.socialData}}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{themeStatus:ge.a0,pluginsStatus:{[ge.Gv]:ge.Ck}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings};case"UPDATE_THEME_STATUS":return{...e,themeStatus:t.themeStatus};case"UPDATE_PLUGINS_STATUS":return{...e,pluginsStatus:t.pluginsStatus}}return e},flow:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{flow:"wp-setup",steps:{routes:ve._j,allSteps:ve.S6,topSteps:(0,ve.iD)(),designSteps:(0,ve.BX)(),getStartedSteps:(0,ve.fS)(),storeInfoSteps:(0,ve.Fl)(),currentStep:"/wp-setup/step/what-next"}},t=arguments.length>1?arguments[1]:void 0;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_DESIGN_STEPS":return{...e,steps:{...e.steps,designSteps:t.designSteps}}}return e},sidebar:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isOpen:!1,view:"LearnMore",sidebars:ye},t=arguments.length>1?arguments[1]:void 0;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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isNavigationEnabled:!0,menu:""},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_HEADER_NAVIGATION_ENABLED":return{...e,isNavigationEnabled:t.isNavigationEnabled};case"UPDATE_HEADER_MENU_DATA":return{...e,menu:t.menu}}return e},queue:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;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 _e(e),[]}return e}}),actions:r,selectors:a},Se=(0,he.createReduxStore)("newfold/onboarding",Ee);(0,he.register)(Se)},4704:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,F:()=>a});var r=n(2200);const a=e=>{var t;return`${r.bQ}/${e}`+(null!==(t=window.nfdOnboarding)&&void 0!==t&&t.currentFlow?`&flow=${window.nfdOnboarding.currentFlow}`:"")},o=e=>`${r.km}/${e}`},3768:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>s,pn:()=>l,xb:()=>i});var r=n(6989),a=n.n(r),o=n(4704);const i=e=>0===Object.keys(e).length;async function l(){return a()({url:(0,o.$)("settings")})}async function s(e){return a()({url:(0,o.$)("settings"),method:"POST",data:e})}},7533:(e,t,n)=>{"use strict";n.d(t,{BN:()=>u,ME:()=>s,b5:()=>d,kB:()=>c});var r=n(6329),a=n(4704),o=n(6989),i=n.n(o);let l;async function s(){return await(0,r.D)(i()({url:(0,a.F)("flow")}).then())}async function c(e){l&&l.abort("New setFlow request placed!"),l=new AbortController;const{signal:t}=l;return await(0,r.D)(i()({url:(0,a.F)("flow"),signal:t,method:"POST",data:e}).then())}async function u(){return await(0,r.D)(i()({url:(0,a.F)("flow/complete"),method:"POST"}).then())}async function d(e){return await(0,r.D)(i()({url:(0,a.F)("flow/switch"),method:"POST",data:{flow:e}}).then())}},6138:(e,t,n)=>{"use strict";n.d(t,{C:()=>l});var r=n(6329),a=n(4704),o=n(6989),i=n.n(o);async function l(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return await(0,r.D)(i()({url:(0,a.F)("patterns"+(e?`&step=${e}&squash=${t}`:""))}).then())}},3421:(e,t,n)=>{"use strict";n.d(t,{S1:()=>c,qC:()=>u,uc:()=>p,yn:()=>d});var r=n(6989),a=n.n(r),o=n(4704),i=n(2853),l=n(6329),s=n(2200);const c=()=>{if((0,i.P)(s.tY))return!0;a()({url:(0,o.F)("plugins/initialize"),method:"POST",headers:{"X-NFD-ONBOARDING":window.nfdOnboarding.pluginInstallHash}}).catch((e=>{console.error(e)}))},u=async e=>await(0,l.D)(a()({url:(0,o.F)("plugins/status"+(e?`&plugin=${e}`:""))})),d=async()=>await(0,l.D)(a()({url:(0,o.F)("plugins/site-features")})),p=async(e,t)=>await(0,l.D)(a()({url:(0,o.F)("plugins/site-features"),method:"POST",headers:{"X-NFD-ONBOARDING":e},data:t}))},6329:(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,{D:()=>r})},8395:(e,t,n)=>{"use strict";n.d(t,{Gw:()=>s,I2:()=>c,j2:()=>u});var r=n(6989),a=n.n(r),o=n(6329),i=n(2200),l=n(4704);async function s(){return await(0,o.D)(a()({url:(0,l.F)("settings")}).then())}async function c(e){return await(0,o.D)(a()({url:(0,l.F)("settings"),method:"POST",data:e}).then())}const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return!(e>=i.wV)&&a()({url:(0,l.F)("settings/initialize"),method:"POST"}).catch((()=>{e+=1,u(e)}))}},7625:(e,t,n)=>{"use strict";n.d(t,{LK:()=>g,N9:()=>u,S1:()=>c,YL:()=>m,cw:()=>p,ko:()=>h,oC:()=>d});var r=n(6989),a=n.n(r),o=n(4704),i=n(6329),l=n(2853),s=n(2200);const c=()=>{if((0,l.P)(s.Vx))return!0;a()({url:(0,o.F)("themes/initialize"),method:"POST"}).catch((e=>{console.error(e)}))},u=async function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"string"==typeof e&&await(0,i.D)(a()({url:(0,o.F)("themes/install"),method:"POST",data:{theme:e,activate:t,queue:n}}))},d=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return await(0,i.D)(a()({url:(0,o.F)("themes/variations&variations="+e)}).then())},p=async e=>await(0,i.D)(a()({url:(0,o.F)("themes/variations"),method:"POST",data:e}).then()),m=async e=>await(0,i.D)(a()({url:(0,o.F)("themes/status"+(e?`&theme=${e}`:""))})),h=async()=>await(0,i.D)(a()({url:(0,o.F)("themes/fonts")})),g=async()=>await(0,i.D)(a()({url:(0,o.F)("themes/colors")}))},6690:(e,t,n)=>{"use strict";n.d(t,{NF:()=>y}),n(9307);var r=n(2819),a=n(4981);const o=window.wp.styleEngine;var i=n(2175);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;const{coerceTo:n,rootSizeValue:r,acceptableUnits:a}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},o=null==a?void 0:a.join("|"),i=new RegExp(`^(\\d*\\.?\\d+)(${o}){1,1}$`),l=e.match(i);if(!l||l.length<3)return null;let[,s,c]=l,u=parseFloat(s);return"px"!==n||"em"!==c&&"rem"!==c||(u*=r,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=r,c=n),{value:u,unit:c}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return Number.isFinite(e)?parseFloat(e.toFixed(t)):void 0}const c="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:e=>{let{slug:t}=e;return`url( '#wp-duotone-${t}' )`},classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>{let{typography:n}=t;return function(e,t){const{size:n}=e;if(!0!==(null==t?void 0:t.fluid))return n;if(!1===(null==e?void 0:e.fluid))return n;const r=(null==e?void 0:e.fluid)||{};let a=null==r?void 0:r.min,o=null==r?void 0:r.max;const i=l(n);return null!=i&&i.unit?(a||(a=.75*i.value+i.unit),o||(o=1.5*i.value+i.unit),function(e){let{maximumViewPortWidth:t,minimumViewPortWidth:n,maximumFontSize:r,minimumFontSize:a,scaleFactor:o}=e;const i=l(a),c=(null==i?void 0:i.unit)||"rem",u=l(r,{coerceTo:c});if(!i||!u)return null;const d=l(a,{coerceTo:"rem"}),p=l(t,{coerceTo:c}),m=l(n,{coerceTo:c});if(!p||!m||!d)return null;const h=s(m.value/100,3)+c;let g=(u.value-i.value)/(p.value-m.value)*100;g=s(g,3)||1;const v=g*o;return`clamp(${a}, ${d.value}${d.unit} + ((1vw - ${h}) * ${v}), ${r})`}({maximumViewPortWidth:"1600px",minimumViewPortWidth:"768px",maximumFontSize:o,minimumFontSize:a,scaleFactor:1})||n):n}(e,n)},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:e=>{let{size:t}=e;return t},classes:[]}],d={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function p(e){var t;const n="var:";return null!=e&&null!==(t=e.startsWith)&&void 0!==t&&t.call(e,n)?`var(--wp--${e.slice(n.length).split("|").join("--")})`:e}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.reduce)(u,((n,a)=>{let{path:o,cssVarInfix:i,classes:l}=a;if(!l)return n;const s=(0,r.get)(t,o,[]);return s&&Array.isArray(s)&&s.forEach((t=>{let{slug:a}=t;l.forEach((t=>{let{classSuffix:o,propertyName:l}=t;const s=`.has-${(0,r.kebabCase)(a)}-${o}`,c=e.split(",").map((e=>`${e}${s}`)).join(","),u=`var(--wp--preset--${i}--${(0,r.kebabCase)(a)})`;n+=`${c}{${l}: ${u} !important;}`}))})),n}),"")}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=[];return Object.keys(e).forEach((o=>{const i=t+(0,r.kebabCase)(o.replace("/","-")),l=e[o];if(l instanceof Object){const e=i+n;a=[...a,...h(l,e,n)]}else a.push(`${i}: ${l}`)})),a}function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=c===t,s=(0,r.reduce)(a.__EXPERIMENTAL_STYLE_PROPERTY,((t,a,o)=>{let{value:i,properties:s,useEngine:c,rootOnly:u}=a;if(u&&!l)return t;const d=i;if("elements"===d[0])return t;const m=(0,r.get)(e,d);if("--wp--style--root--padding"===o&&("string"==typeof m||!n))return t;if(s&&"string"!=typeof m)Object.entries(s).forEach((e=>{const[n,a]=e;if(!(0,r.get)(m,[a],!1))return;const o=n.startsWith("--")?n:(0,r.kebabCase)(n);t.push(`${o}: ${p((0,r.get)(m,[a]))}`)}));else if((0,r.get)(e,d,!1)){const n=o.startsWith("--")?o:(0,r.kebabCase)(o);t.push(`${n}: ${p((0,r.get)(e,d))}`)}return t}),[]),u=(0,o.getCSSRules)(e);return u.forEach((e=>{var t;if(l&&n&&e.key.startsWith("padding"))return;const a=e.key.startsWith("--")?e.key:(0,r.kebabCase)(e.key);let o=e.value;if("string"!=typeof o&&null!==(t=o)&&void 0!==t&&t.ref){var c;const e=o.ref.split(".");if(o=(0,r.get)(i,e),!o||null!==(c=o)&&void 0!==c&&c.ref)return}s.push(`${a}: ${o}`)})),s}function v(e){var t,n,r,a,o;let{tree:l,style:s,selector:u,hasBlockGapSupport:d,hasFallbackGapSupport:p,fallbackGapValue:m}=e,h="",g=d?(0,i.__experimentalGetGapCSSValue)(null==s||null===(t=s.spacing)||void 0===t?void 0:t.blockGap):"";if(p&&(u===c?g=g||"0.5em":!d&&m&&(g=m)),g&&null!=l&&null!==(n=l.settings)&&void 0!==n&&null!==(r=n.layout)&&void 0!==r&&r.definitions&&(Object.values(l.settings.layout.definitions).forEach((e=>{let{className:t,name:n,spacingStyles:r}=e;(d||"flex"===n)&&null!=r&&r.length&&r.forEach((e=>{const n=[];if(e.rules&&Object.entries(e.rules).forEach((e=>{let[t,r]=e;n.push(`${t}: ${r||g}`)})),n.length){let r="";r=d?u===c?`${u} .${t}${(null==e?void 0:e.selector)||""}`:`${u}.${t}${(null==e?void 0:e.selector)||""}`:u===c?`:where(.${t}${(null==e?void 0:e.selector)||""})`:`:where(${u}.${t}${(null==e?void 0:e.selector)||""})`,h+=`${r} { ${n.join("; ")}; }`}}))})),u===c&&d&&(h+=`${u} { --wp--style--block-gap: ${g}; }`)),u===c&&null!=l&&null!==(a=l.settings)&&void 0!==a&&null!==(o=a.layout)&&void 0!==o&&o.definitions){const e=["block","flex","grid"];Object.values(l.settings.layout.definitions).forEach((t=>{let{className:n,displayMode:r,baseStyles:a}=t;r&&e.includes(r)&&(h+=`${u} .${n} { display:${r}; }`),null!=a&&a.length&&a.forEach((e=>{const t=[];if(e.rules&&Object.entries(e.rules).forEach((e=>{let[n,r]=e;t.push(`${n}: ${r}`)})),t.length){const r=`${u} .${n}${(null==e?void 0:e.selector)||""}`;h+=`${r} { ${t.join("; ")}; }`}}))}))}return h}const f=(e,t)=>{var n,o;const i=[];if(null==e||!e.styles)return i;const l=e=>(0,r.pickBy)(e,((e,t)=>["border","color","spacing","typography","filter"].includes(t))),s=l(e.styles);return s&&i.push({styles:s,selector:c}),Object.entries(a.__EXPERIMENTAL_ELEMENTS).forEach((t=>{var n,r;let[a,o]=t;var l;null!==(n=e.styles)&&void 0!==n&&n.elements&&null!==(r=e.styles)&&void 0!==r&&r.elements[a]&&i.push({styles:null===(l=e.styles)||void 0===l?void 0:l.elements[a],selector:o})})),Object.entries(null!==(n=null===(o=e.styles)||void 0===o?void 0:o.blocks)&&void 0!==n?n:{}).forEach((e=>{var n,r;let[o,s]=e;const c=l(s);c&&null!=t&&null!==(n=t[o])&&void 0!==n&&n.selector&&i.push({duotoneSelector:t[o].duotoneSelector,fallbackGapValue:t[o].fallbackGapValue,hasLayoutSupport:t[o].hasLayoutSupport,selector:t[o].selector,styles:c,featureSelectors:t[o].featureSelectors}),Object.entries(null!==(r=null==s?void 0:s.elements)&&void 0!==r?r:{}).forEach((e=>{let[n,r]=e;r&&null!=t&&t[o]&&null!==a.__EXPERIMENTAL_ELEMENTS&&void 0!==a.__EXPERIMENTAL_ELEMENTS&&a.__EXPERIMENTAL_ELEMENTS[n]&&i.push({styles:r,selector:t[o].selector.split(",").map((e=>a.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),i},w=(e,t)=>{var n,a,o;const i=[];if(null==e||!e.settings)return i;const l=e=>{const t={};return u.forEach((n=>{let{path:a}=n;const o=(0,r.get)(e,a,!1);!1!==o&&(0,r.set)(t,a,o)})),t},s=l(e.settings),d=null===(n=e.settings)||void 0===n?void 0:n.custom;return(0,r.isEmpty)(s)&&!d||i.push({presets:s,custom:d,selector:c}),Object.entries(null!==(a=null===(o=e.settings)||void 0===o?void 0:o.blocks)&&void 0!==a?a:{}).forEach((e=>{let[n,a]=e;const o=l(a),s=a.custom;(0,r.isEmpty)(o)&&!s||i.push({presets:o,custom:s,selector:t[n].selector})})),i},b=(e,t)=>{const n=w(e,t);let a="";return n.forEach((t=>{let{presets:n,custom:o,selector:i}=t;const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return(0,r.reduce)(u,((n,a)=>{let{path:o,valueKey:i,valueFunc:l,cssVarInfix:s}=a;const c=(0,r.get)(e,o,[]);return c&&Array.isArray(c)&&c.forEach((e=>{i&&!l?n.push(`--wp--preset--${s}--${(0,r.kebabCase)(e.slug)}: ${e[i]}`):l&&"function"==typeof l&&n.push(`--wp--preset--${s}--${(0,r.kebabCase)(e.slug)}: ${l(e,t)}`)})),n}),[])}(n,null==e?void 0:e.settings),s=h(o,"--wp--custom--","--");s.length>0&&l.push(...s),l.length>0&&(a+=`${i}{${l.join(";")};}`)})),a};function y(e,t){var n;const o=t.settings.__experimentalFeatures.spacing.blockGap,l=!o,s=null===(n=t.settings)||void 0===n||!n.disableLayoutStyles||t.settings.disableLayoutStyles;if(!(null!=e&&e.styles||null!=e&&e.settings||null!=e&&e.globalStyles))return;const u={settings:e.settings,styles:null!=e&&e.globalStyles?e.globalStyles:e.styles},p=(e=>{const t={};return e.forEach((e=>{var n,r,a,o,i,l,s,c,u;const p=e.name,m=null!==(n=null==e||null===(r=e.supports)||void 0===r?void 0:r.__experimentalSelector)&&void 0!==n?n:".wp-block-"+p.replace("core/","").replace("/","-"),h=null!==(a=null==e||null===(o=e.supports)||void 0===o||null===(i=o.color)||void 0===i?void 0:i.__experimentalDuotone)&&void 0!==a?a:null,g=!(null==e||null===(l=e.supports)||void 0===l||!l.__experimentalLayout),v=null==e||null===(s=e.supports)||void 0===s||null===(c=s.spacing)||void 0===c||null===(u=c.blockGap)||void 0===u?void 0:u.__experimentalDefault,f={};Object.entries(d).forEach((t=>{var n,r;let[a,o]=t;const i=null==e||null===(n=e.supports)||void 0===n||null===(r=n[a])||void 0===r?void 0:r.__experimentalSelector;i&&(f[o]=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(", ")}(m,i))})),t[p]={duotoneSelector:h,fallbackGapValue:v,featureSelectors:Object.keys(f).length?f:void 0,hasLayoutSupport:g,name:p,selector:m}})),t})((0,a.getBlockTypes)()),h=b(u,p),y=function(e,t,n,a){var o,l;let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const u=f(e,t),d=w(e,t),p=null==e||null===(o=e.settings)||void 0===o?void 0:o.useRootPaddingAwareAlignments,{contentSize:h,wideSize:b}=(null==e||null===(l=e.settings)||void 0===l?void 0:l.layout)||{};let y="body {margin: 0;";if(h&&(y+=` --wp--style--global--content-size: ${h};`),b&&(y+=` --wp--style--global--wide-size: ${b};`),p&&(y+='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;'),y+="}",u.forEach((t=>{let{selector:r,duotoneSelector:o,styles:i,fallbackGapValue:l,hasLayoutSupport:u,featureSelectors:d}=t;d&&Object.entries(d).forEach((e=>{let[t,n]=e;if(null!=i&&i[t]){const e=g({[t]:i[t]});delete i[t],e.length&&(y+=`${n}{${e.join(";")} }`)}}));const m={};if(null!=i&&i.filter&&(m.filter=i.filter,delete i.filter),o){const e=g(m);e.length>0&&(y+=`${o}{${e.join(";")};}`)}s||c!==r&&!u||(y+=v({tree:e,style:i,selector:r,hasBlockGapSupport:n,hasFallbackGapSupport:a,fallbackGapValue:l}));const h=g(i,r,p,e);null!=h&&h.length&&(y+=`${r}{${h.join(";")};}`);const f=Object.entries(i).filter((e=>{let[t]=e;return t.startsWith(":")}));null!=f&&f.length&&f.forEach((e=>{let[t,n]=e;const a=g(n);if(null==a||!a.length)return;const o=`${r.split(",").map((e=>e+t)).join(",")}{${a.join(";")};}`;y+=o}))})),y+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",y+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",y+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",!s&&n){var _,E;const t=(0,i.__experimentalGetGapCSSValue)(null==e||null===(_=e.styles)||void 0===_||null===(E=_.spacing)||void 0===E?void 0:E.blockGap)||"0.5em";y+=".wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }",y+=`.wp-site-blocks > * + * { margin-block-start: ${t}; }`}return d.forEach((e=>{let{selector:t,presets:n}=e;c===t&&(t="");const a=m(t,n);(0,r.isEmpty)(a)||(y+=a)})),y}(u,p,o,l,s),_=[...t.settings.styles.filter((e=>{if(!e.hasOwnProperty("id")||"customProperty"!==e.id&&"globalStyle"!==e.id)return e})),{id:"customProperty",css:h,isGlobalStyles:!0},{id:"globalStyle",css:y,isGlobalStyles:!0}];return e.settings.styles=_,e.settings.__unstableResolvedAssets=t.settings.__unstableResolvedAssets,e.settings.__experimentalFeatures=t.settings.__experimentalFeatures,e}},2853:(e,t,n)=>{"use strict";n.d(t,{P:()=>a,i:()=>o});var r=n(6483);const a=e=>new URLSearchParams(window.location.search).get(e),o=(e,t)=>(0,r.hasQueryArg)(e,t)?(0,r.removeQueryArgs)(e,t):e},1392:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(5736);const a={"wp-setup":{site:{noun:(0,r._x)("site","noun","wp-module-onboarding")},website:{noun:(0,r._x)("website","noun","wp-module-onboarding")}},ecommerce:{site:{noun:(0,r._x)("store","noun","wp-module-onboarding")},website:{noun:(0,r._x)("store","noun","wp-module-onboarding")}}},o=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"noun";const o=(null===(t=window)||void 0===t||null===(n=t.nfdOnboarding)||void 0===n?void 0:n.currentFlow)||"wp-setup",i=a[o][e.toLowerCase()][r];return e==e.toUpperCase()?i.toUpperCase():e[0]==e[0].toUpperCase()?i[0].toUpperCase()+i.substring(1):i}},2200:(e,t,n)=>{"use strict";var r,a,o;n.d(t,{$P:()=>Q,Az:()=>J,BP:()=>w,Bv:()=>I,Ck:()=>H,DY:()=>R,Db:()=>g,Ei:()=>T,GV:()=>B,Gv:()=>W,JB:()=>i,Jq:()=>P,Rq:()=>M,Sr:()=>G,Vx:()=>F,YU:()=>U,Yl:()=>f,Zh:()=>z,_h:()=>_,a0:()=>V,bQ:()=>p,br:()=>h,dD:()=>l,dv:()=>x,hF:()=>m,jN:()=>S,km:()=>d,lE:()=>y,mz:()=>C,nx:()=>N,pf:()=>c,qB:()=>D,qO:()=>k,qR:()=>E,sG:()=>Z,sr:()=>q,tM:()=>v,tX:()=>b,tY:()=>L,uj:()=>A,vv:()=>$,wV:()=>O,ye:()=>j});const i="nfd-onboarding",l="object"==typeof(null===(r=window)||void 0===r?void 0:r.nfdOnboarding)&&"buildUrl"in window.nfdOnboarding,s=window.nfdOnboarding.adminUrl,c=window.nfdOnboarding.siteUrl,u=window.nfdOnboarding.restUrl,d=`${u}/wp/v2`,p=`${u}/newfold-onboarding/v1`,m=`${s}index.php`,h=`${null!==(a=null===(o=window.nfdOnboarding.currentBrand)||void 0===o?void 0:o.pluginDashboardPage)&&void 0!==a?a:m}`,g="nfd-module-onboarding-event",v="nav-primary",f="nav-design",w="nav-page",b="design-themes",y="design-theme-styles-menu",_="design-theme-styles-preview",E="design-colors",S="design-typography",k="design-header-menu",N="design-homepage-menu",C="nav-get-started",x="nav-ecommerce-store-info",D="Sidebar",T="HeaderMenu",P="LearnMore",I=2,O=2,A=2,L="nfd_plugins",F="nfd_themes",R="nfd_slug_yith_wonder",V="init",$="inactive",z="installing",B="activated",M="failed",U=3e4,W="woocommerce",H="init",Z="inactive",G="installing",j="activated",q=3e4,Q=[v,f,C,w,x],J={SET_FLOW:"SET_FLOW",SET_GLOBAL_STYLES:"SET_GLOBAL_STYLES"}},4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t{"use strict";n.d(t,{AW:()=>x,F0:()=>D,FR:()=>l,TH:()=>h,Us:()=>s,WU:()=>f,Z5:()=>T,oQ:()=>p,s0:()=>v});var r=n(9196),a=n(2599);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),r.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,o({fromRouteId:t},a)))}),[e,t])}():function(){m()||(0,a.J0)(!1);let{basename:e,navigator:t}=r.useContext(s),{matches:n}=r.useContext(u),{pathname:o}=h(),i=JSON.stringify((0,a.Zq)(n).map((e=>e.pathnameBase))),l=r.useRef(!1);return g((()=>{l.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!l.current)return;if("number"==typeof n)return void t.go(n);let s=(0,a.pC)(n,JSON.parse(i),o,"path"===r.relative);"/"!==e&&(s.pathname="/"===s.pathname?e:(0,a.RQ)([e,s.pathname])),(r.replace?t.replace:t.push)(s,r.state,r)}),[e,t,i,o])}()}function f(e,t){let{relative:n}=void 0===t?{}:t,{matches:o}=r.useContext(u),{pathname:i}=h(),l=JSON.stringify((0,a.Zq)(o).map((e=>e.pathnameBase)));return r.useMemo((()=>(0,a.pC)(e,JSON.parse(l),i,"path"===n)),[e,l,i,n])}function w(e,t,n){m()||(0,a.J0)(!1);let{navigator:i}=r.useContext(s),{matches:l}=r.useContext(u),d=l[l.length-1],p=d?d.params:{},g=(d&&d.pathname,d?d.pathnameBase:"/");d&&d.route;let v,f=h();if(t){var w;let e="string"==typeof t?(0,a.cP)(t):t;"/"===g||(null==(w=e.pathname)?void 0:w.startsWith(g))||(0,a.J0)(!1),v=e}else v=f;let b=v.pathname||"/",S="/"===g?b:b.slice(g.length)||"/",k=(0,a.fp)(e,{pathname:S}),N=function(e,t,n){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let l=e,s=null==(o=n)?void 0:o.errors;if(null!=s){let e=l.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||(0,a.J0)(!1),l=l.slice(0,Math.min(l.length,e+1))}return l.reduceRight(((e,a,o)=>{let i=a.route.id?null==s?void 0:s[a.route.id]:null,c=null;n&&(c=a.route.errorElement||y);let u=t.concat(l.slice(0,o+1)),d=()=>{let t;return t=i?c:a.route.Component?r.createElement(a.route.Component,null):a.route.element?a.route.element:e,r.createElement(E,{match:a,routeContext:{outlet:e,matches:u,isDataRoute:null!=n},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===o)?r.createElement(_,{location:n.location,revalidation:n.revalidation,component:c,error:i,children:d(),routeContext:{outlet:null,matches:u,isDataRoute:!0}}):d()}),null)}(k&&k.map((e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:(0,a.RQ)([g,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,a.RQ)([g,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n);return t&&N?r.createElement(c.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:a.aU.Pop}},N):N}function b(){let e=function(){var e;let t=r.useContext(d),n=function(e){let t=r.useContext(l);return t||(0,a.J0)(!1),t}(k.UseRouteError),o=C(k.UseRouteError);return t||(null==(e=n.errors)?void 0:e[o])}(),t=(0,a.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={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:o},n):null,null)}const y=r.createElement(b,null);class _ 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: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 this.state.error?r.createElement(u.Provider,{value:this.props.routeContext},r.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E(e){let{routeContext:t,match:n,children:a}=e,o=r.useContext(i);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(u.Provider,{value:t},a)}var S,k,N;function C(e){let t=function(e){let t=r.useContext(u);return t||(0,a.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,a.J0)(!1),n.route.id}function x(e){(0,a.J0)(!1)}function D(e){let{basename:t="/",children:n=null,location:o,navigationType:i=a.aU.Pop,navigator:l,static:u=!1}=e;m()&&(0,a.J0)(!1);let d=t.replace(/^\/*/,"/"),p=r.useMemo((()=>({basename:d,navigator:l,static:u})),[d,l,u]);"string"==typeof o&&(o=(0,a.cP)(o));let{pathname:h="/",search:g="",hash:v="",state:f=null,key:w="default"}=o,b=r.useMemo((()=>{let e=(0,a.Zn)(h,d);return null==e?null:{location:{pathname:e,search:g,hash:v,state:f,key:w},navigationType:i}}),[d,h,g,v,f,w,i]);return null==b?null:r.createElement(s.Provider,{value:p},r.createElement(c.Provider,{children:n,value:b}))}function T(e){let{children:t,location:n}=e;return w(P(t),n)}function P(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,o)=>{if(!r.isValidElement(e))return;let i=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,P(e.props.children,i));e.type!==x&&(0,a.J0)(!1),e.props.index&&e.props.children&&(0,a.J0)(!1);let l={id:e.props.id||i.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&&(l.children=P(e.props.children,i)),n.push(l)})),n}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(S||(S={})),function(e){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"}(k||(k={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(N||(N={})),new Promise((()=>{})),r.Component},9196:e=>{"use strict";e.exports=window.React},2819:e=>{"use strict";e.exports=window.lodash},6989:e=>{"use strict";e.exports=window.wp.apiFetch},2175:e=>{"use strict";e.exports=window.wp.blockEditor},4981:e=>{"use strict";e.exports=window.wp.blocks},5609:e=>{"use strict";e.exports=window.wp.components},4333:e=>{"use strict";e.exports=window.wp.compose},7798:e=>{"use strict";e.exports=window.wp.coreData},9818:e=>{"use strict";e.exports=window.wp.data},5904:e=>{"use strict";e.exports=window.wp.dom},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},9630:e=>{"use strict";e.exports=window.wp.keycodes},444:e=>{"use strict";e.exports=window.wp.primitives},6483:e=>{"use strict";e.exports=window.wp.url},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,a),o.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=>{},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,o,i)=>{if(e[n])e[n].push(r);else{var l,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u{l.onerror=l.onload=null,clearTimeout(m);var a=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(r))),t)return t(r)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}},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");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={343: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 o=new Promise(((n,a)=>r=e[t]=[n,a]));n.push(r[2]=o);var i=a.p+a.u(t),l=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,r[1](l)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,l,s]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);s&&s(a)}for(t&&t(n);c{"use strict";a.r(o);var e={};a.r(e),a.d(e,{disableComplementaryArea:()=>Ae,enableComplementaryArea:()=>Oe,pinItem:()=>Le,setDefaultComplementaryArea:()=>Ie,setFeatureDefaults:()=>$e,setFeatureValue:()=>Ve,toggleFeature:()=>Re,unpinItem:()=>Fe});var t={};a.r(t),a.d(t,{getActiveComplementaryArea:()=>ze,isComplementaryAreaLoading:()=>Be,isFeatureActive:()=>Ue,isItemPinned:()=>Me});var n=a(2200);const r=window.wp.domReady;var i=a.n(r);const l=window.wp.blockLibrary;var s=a(9307),c=a(6831),u=a(7533),d=a(3421),p=a(7625),m=a(6989),h=a.n(m);const g=()=>{h()({url:`${n.pf}/wp-cron.php`,method:"GET",parse:!1}).catch((e=>{console.error(e)}))};var v=a(8395),f=a(5736),w=a(9250),b=a(9818),y=a(5609),_=a(1984),E=a(4310),S=a(444);const k=(0,s.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(S.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),N=e=>{let{path:t}=e;const n=(0,w.s0)();return(0,s.createElement)(y.Button,{className:"navigation-buttons navigation-buttons_back",onClick:()=>n(t,{state:{origin:"header"}}),variant:"secondary"},(0,s.createElement)(_.Z,{icon:E.Z}),(0,f.__)("Back","wp-module-onboarding"))},C=e=>{let{path:t}=e;const n=(0,w.s0)();return(0,s.createElement)(y.Button,{onClick:()=>n(t,{state:{origin:"header"}}),variant:"primary",className:"navigation-buttons navigation-buttons_next"},(0,f.__)("Next","wp-module-onboarding"),(0,s.createElement)(_.Z,{icon:k}))};async function x(e){e&&(e.isComplete=(new Date).getTime(),(0,u.kB)(e));const t=T()?n.br:n.hF;window.location.replace(t)}const D=e=>{let{currentData:t,saveDataAndExitFunc:n}=e;return(0,s.createElement)(y.Button,{onClick:()=>n(t),className:"navigation-buttons navigation-buttons_finish",variant:"primary"},(0,f.__)("Finish","wp-module-onboarding"),(0,s.createElement)(_.Z,{icon:k}))},T=()=>"ecommerce"===window.nfdOnboarding.currentFlow,P=()=>{const e=(0,w.TH)(),{previousStep:t,nextStep:n,currentData:r}=(0,b.useSelect)((e=>({nextStep:e(c.h).getNextStep(),previousStep:e(c.h).getPreviousStep(),currentData:e(c.h).getCurrentOnboardingData()})),[e.pathname]),a=null===t||!1===t,o=null===n||!1===n;return(0,s.createElement)("div",{className:"nfd-onboarding-header__step-navigation"},(0,s.createElement)(y.ButtonGroup,{style:{display:"flex",columnGap:"0.5rem"}},a||o?null:(0,s.createElement)(N,{path:t.path}),o?(0,s.createElement)(D,{currentData:r,saveDataAndExitFunc:x}):(0,s.createElement)(C,{path:n.path})))},I=()=>{const{sidebars:e,isHeaderNavigationEnabled:t}=(0,b.useSelect)((e=>({sidebars:e(c.h).getSidebars(),isHeaderNavigationEnabled:e(c.h).isHeaderNavigationEnabled()})));return(0,s.createElement)(s.Fragment,null,t&&(0,s.createElement)(P,null),e.map((e=>(0,s.createElement)(y.Slot,{key:e.id,name:`${n.Ei}/${e.id}`}))))};var O=a(1589);const A=(0,s.memo)((()=>{const e=(0,w.TH)(),{firstStep:t}=(0,b.useSelect)((e=>({firstStep:e(c.h).getFirstStep()})),[]),n=(null==t?void 0:t.path)===(null==e?void 0:e.pathname);return(0,s.createElement)("div",{className:"nfd-onboarding-header"},(0,s.createElement)("div",{className:"nfd-onboarding-header__start"},n?(0,s.createElement)(O.Z,{origin:"header-first-step"}):null),(0,s.createElement)("div",{className:"nfd-onboarding-header__center"}),(0,s.createElement)("div",{className:"nfd-onboarding-header__end"},(0,s.createElement)(I,null)))}));var L=a(7539),F=a(9884),R=a(2853),V=a(6483);const $=e=>{let{children:t}=e;const r=(0,w.TH)(),[a,o]=(0,s.useState)(!1),{brandConfig:i}=(0,b.useSelect)((e=>({brandName:e(c.h).getNewfoldBrandName(),brandConfig:e(c.h).getNewfoldBrandConfig()})),[]),{setIsDrawerOpened:l,setIsDrawerSuppressed:d,setIsHeaderNavigationEnabled:p,setSidebarActiveView:m}=(0,b.useDispatch)(c.h),h=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=n.uj)return o(!1);const r=await(0,u.b5)(e);if(null!=r&&r.error)return t+=1,h(e,t);const a=(0,L.Lo)(),i=(0,V.getFragment)(window.location.href),l=(0,R.i)(window.location.href,"flow").replace(i,"");window.location.replace(`${l}#${a.path}`),window.location.reload()};return(0,s.useEffect)((()=>{var e;if(null!==(e=window.nfdOnboarding)&&void 0!==e&&e.newFlow){const e=window.nfdOnboarding.newFlow;l(!1),d(!0),p(!1),m(!1),o(e),(async e=>{var t;const n=null!==(t=null==i?void 0:i.enabled_flows)&&void 0!==t?t:{};if(!(e in n)||!0!==n[e])return o(!1);"ecommerce"===e?h(e):o(!1)})(e),window.nfdOnboarding.newFlow=void 0}}),[r.pathname]),(0,s.createElement)(s.Fragment,null,"ecommerce"===a?(0,s.createElement)(F.Z,null):t)},z=(0,s.memo)((()=>{const{routes:e}=(0,b.useSelect)((e=>({routes:e(c.h).getRoutes()}))),t=(0,s.useCallback)((()=>null==e?void 0:e.map((e=>(0,s.createElement)(w.AW,{key:e.path,path:e.path,end:!0,element:(0,s.createElement)(e.Component,null)})))),[e]);return(0,s.createElement)("main",{className:"nfd-onboard-content"},(0,s.createElement)(s.Suspense,{fallback:(0,s.createElement)(s.Fragment,null)},(0,s.createElement)($,null,(0,s.createElement)(w.Z5,null,t(e)))))}));var B=a(4333),M=a(6690),U=a(682);const W=()=>{const e=(0,s.useRef)(null),[t,r]=(0,s.useState)(!1),[a,o]=(0,s.useState)(),[i,l]=(0,s.useState)(),[u,d]=(0,s.useState)(!1),[m,h]=(0,s.useState)(!0),[g,v]=(0,s.useState)(),[w,_]=(0,s.useState)(),[E,S]=(0,s.useState)(),[k,N]=(0,s.useState)(""),{storedPreviewSettings:C,currentData:x,themeStatus:D}=(0,b.useSelect)((e=>({storedPreviewSettings:e(c.h).getPreviewSettings(),currentData:e(c.h).getCurrentOnboardingData(),themeStatus:e(c.h).getThemeStatus()})),[]),{updatePreviewSettings:T,setCurrentOnboardingData:P,updateThemeStatus:I}=(0,b.useDispatch)(c.h);function O(e){if(e){var t;const n={};return null==e||null===(t=e.color)||void 0===t||t.forEach((e=>{n[e.slug]=e.color})),v(n),n}}function A(e,t){if(e&&t){i.slug=t,i.name=(null==t?void 0:t.charAt(0).toUpperCase())+(null==t?void 0:t.slice(1));const n=[];for(const t in e)n.push({slug:t,name:(null==t?void 0:t.charAt(0).toUpperCase())+(null==t?void 0:t.slice(1)),color:e[t]});return i.color=n,l(i),x.data.palette=i,P(x),i}}async function L(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:C;if((null==i?void 0:i.slug)===e)return!0;const l="custom"===e,s=o,c=null==s||null===(t=s.settings)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.palette;if(r&&e&&c){for(let t=0;t{t||n.GV!==D||(async()=>{var e,t,a;const i=await(0,p.oC)(),s=await(0,p.LK)();if(null!=s&&s.error)return I(n.a0);if(null!=i&&i.error)return I(n.a0);let c,u;S(null==s?void 0:s.body.tailored),o(null==s?void 0:s.body["custom-picker-grouping"]),""===!(null!=x&&null!==(e=x.data)&&void 0!==e&&null!==(t=e.palette)&&void 0!==t&&t.slug)?(c=x.data.palette,u=O(c),_(u),P(x)):(c=x.data.palette,u=O(c),"custom"===c.slug&&_(u)),l(c),L(null==x||null===(a=x.data)||void 0===a?void 0:a.palette.slug,null==E?void 0:E.body.tailored,u,null==i?void 0:i.body[0]),r(!0)})(),z()&&(h(!1),e.current.scrollIntoView({behavior:"smooth",block:"end"}))}),[t,D]);const F=e=>{const t=w;for(const e in t)t[e]="";_(t),L(e),v(E[e]),A(E[e],e)},R=async e=>{const t={...g};if(t[k]=e,a){const n=a[k];n&&n.forEach((n=>{t[n]=e}))}(async function(){var e,t;const n=C,r=null==n||null===(e=n.settings)||void 0===e||null===(t=e.color)||void 0===t?void 0:t.palette;if(r){for(let e=0;e{w&&void 0!==w[k]&&(r[function(e){var t,n;const r=null==C||null===(t=C.settings)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.palette,a=r.findIndex((t=>{let{slug:n}=t;return n===e}));return-1===a?r.findIndex((e=>{let{slug:t}=e;return t===k})):a}(e)].color=w[k])}))}n.settings.color.palette=r,T((0,M.NF)(n,C))}})(),A(t,"custom"),v(t),_(t)},V=e=>{d(!u),N(u?"":e)};async function $(){var e,t,n;const r=await(0,p.oC)(!0);let a;null!=x&&null!==(e=x.data)&&void 0!==e&&null!==(t=e.theme)&&void 0!==t&&t.variation?a=r.body.filter((e=>e.title===x.data.theme.variation))[0]:0===(null===(n=r.body[0])||void 0===n?void 0:n.id)&&(a=r.body[0]),T((0,M.NF)(a,C)),i.slug="",i.name="";for(const e in null==i?void 0:i.color)i.color[e].color="";_(O(i)),x.data.palette=i,l(i),P(x)}function z(){for(const e in w)if(""!==w[e])return!0;return!1}return(0,s.createElement)("div",{className:"theme-colors--drawer"},(0,s.createElement)("h2",null,(0,f.__)("Color Palettes","wp-module-onboarding")),E&&Object.keys(E).map(((e,t)=>{var n,r,a;return(0,s.createElement)("div",{key:e,className:`color-palette drawer-palette--button ${e===(null==i?void 0:i.slug)?"color-palette-selected drawer-palette--button--selected":""} `,role:"button",tabIndex:t+1,onClick:()=>F(e),onKeyDown:()=>F(e)},(0,s.createElement)("div",{className:"color-palette__colors"},(0,s.createElement)("div",{className:"color-palette__colors--tertiary",style:{backgroundColor:`${null===(n=E[e])||void 0===n?void 0:n.tertiary}`}}),(0,s.createElement)("div",{className:"color-palette__colors--secondary",style:{backgroundColor:`${null===(r=E[e])||void 0===r?void 0:r.secondary}`}}),(0,s.createElement)("div",{className:"color-palette__colors--primary",style:{backgroundColor:`${null===(a=E[e])||void 0===a?void 0:a.primary}`}})),(0,s.createElement)("div",{className:"color-palette__name drawer-palette--button__text"},(null==e?void 0:e.charAt(0).toUpperCase())+(null==e?void 0:e.slice(1))))})),E&&function(){var t,n,r,a;const o="#fff",i=w&&""!==(null==w?void 0:w.primary)?null==w?void 0:w.primary:null!==(t=null==g?void 0:g.primary)&&void 0!==t?t:o,l=w&&""!==(null==w?void 0:w.secondary)?null==w?void 0:w.secondary:null!==(n=null==g?void 0:g.secondary)&&void 0!==n?n:o,c=w&&""!==(null==w?void 0:w.tertiary)?null==w?void 0:w.tertiary:null!==(r=null==g?void 0:g.tertiary)&&void 0!==r?r:o,p=Object.keys(E).length;return(0,s.createElement)("div",{className:"custom-palette"},(0,s.createElement)("div",{className:"custom-palette__top",role:"button",tabIndex:0,onClick:()=>h(!m),onKeyDown:()=>h(!m)},(0,s.createElement)("div",{className:"custom-palette__top-text"},"SELECT CUSTOM COLORS"),m&&(0,s.createElement)("div",{className:"custom-palette__top-icon"},"+"),!m&&(0,s.createElement)("div",{className:"custom-palette__top-icon"},"-")),(0,s.createElement)(U.Z,{type:"fade-in",duration:"300ms",timingFunction:"ease-in-out",className:"custom-palette__below "+(m?"custom-palette_acc_closed":"custom-palette_acc_opened")},(0,s.createElement)("div",{className:"custom-palette__below-row",onClick:()=>V("base"),onKeyDown:()=>V("base"),role:"button",tabIndex:p+1},(0,s.createElement)("div",{className:`custom-palette__below-row-icon ${(null==w?void 0:w.base)&&"custom-palette__below-row-icon_selected_border"}`,style:{backgroundColor:`${null!==(a=null==w?void 0:w.base)&&void 0!==a?a:o}`}},null!=w&&w.base?(0,s.createElement)("div",null,"✓"):null),(0,s.createElement)("div",{className:"custom-palette__below-row-text"},"Background")),(0,s.createElement)("div",{className:"custom-palette__below-row",onClick:()=>V("primary"),onKeyDown:()=>V("primary"),role:"button",tabIndex:p+2},(0,s.createElement)("div",{className:`custom-palette__below-row-icon ${(null==w?void 0:w.primary)&&"custom-palette__below-row-icon_selected_border"}`,style:{backgroundColor:`${i}`}},null!=w&&w.primary?(0,s.createElement)(s.Fragment,null,"✓"):null),(0,s.createElement)("div",{className:"custom-palette__below-row-text"},"Primary")),(0,s.createElement)("div",{className:"custom-palette__below-row",onClick:()=>V("secondary"),onKeyDown:()=>V("secondary"),role:"button",tabIndex:p+3},(0,s.createElement)("div",{className:`custom-palette__below-row-icon ${(null==w?void 0:w.secondary)&&"custom-palette__below-row-icon_selected_border"}`,style:{backgroundColor:`${l}`}},null!=w&&w.secondary?(0,s.createElement)(s.Fragment,null,"✓"):null),(0,s.createElement)("div",{className:"custom-palette__below-row-text"},"Secondary")),(0,s.createElement)("div",{className:"custom-palette__below-row",onClick:()=>V("tertiary"),onKeyDown:()=>V("tertiary"),role:"button",tabIndex:p+4},(0,s.createElement)("div",{className:`custom-palette__below-row-icon ${(null==w?void 0:w.tertiary)&&"custom-palette__below-row-icon_selected_border"}`,style:{backgroundColor:`${c}`}},null!=w&&w.tertiary?(0,s.createElement)(s.Fragment,null,"✓"):null),(0,s.createElement)("div",{className:"custom-palette__below-row-text"},"Tertiary"))),z()&&(0,s.createElement)(U.Z,{type:"fade-in",duration:"300ms"},(0,s.createElement)("div",{ref:e,className:"theme-colors--drawer--reset",role:"button",tabIndex:0,onClick:$,onKeyDown:$},(0,s.createElement)("div",null,"Reset"))),u&&(0,s.createElement)(y.Popover,null,(0,s.createElement)("div",{className:"custom-palette__picker-close-icon",onClick:()=>d(!1),role:"button",tabIndex:0,onKeyDown:()=>d(!1)},"X"),(0,s.createElement)(y.ColorPicker,{onChange:R,defaultValue:"#874141"})))}())};var H=a(6138),Z=a(6332);const G=()=>{var e;const t=["yith-wonder/site-header-left-logo-navigation-inline","yith-wonder/site-header-left-logo-navigation-below","yith-wonder/site-header-centered","yith-wonder/site-header-splitted-menu"],r=["yith-wonder/homepage-1","yith-wonder/site-footer"],[a,o]=(0,s.useState)(),[i,l]=(0,s.useState)(),[d,p]=(0,s.useState)(""),m=(0,w.TH)(),{currentStep:h,currentData:g,themeStatus:v,storedPreviewSettings:f}=(0,b.useSelect)((e=>({currentStep:e(c.h).getStepFromPath(m.pathname),currentData:e(c.h).getCurrentOnboardingData(),themeStatus:e(c.h).getThemeStatus(),storedPreviewSettings:e(c.h).getStepPreviewData()})),[]),{setCurrentOnboardingData:y,updateThemeStatus:_,setHeaderMenuData:E}=(0,b.useDispatch)(c.h);return(0,s.useEffect)((()=>{v===n.GV&&(async()=>{g.data.partHeader&&""!==g.data.partHeader||(g.data.partHeader=t[0],y(g)),p(g.data.partHeader);const e=await(0,H.C)(h.patternId);if(null!=e&&e.error)return _(n.a0);const a=[];null==e||e.body.forEach((e=>{t.includes(e.slug)&&a.push(e)})),l(e.body),o(a);let[i,s,c]=["","",""];e.body.forEach((e=>{r.includes(e.slug)&&(i+=e.content),e.slug===g.data.partHeader&&(s+=e.content)})),c=s+i,E(c)})()}),[v]),(0,s.createElement)(Z.r9,{count:null===(e=f[null==h?void 0:h.patternId])||void 0===e?void 0:e.previewCount,watch:a,callback:()=>null==a?void 0:a.map(((e,t)=>(0,s.createElement)(Z.H,{key:t,className:"theme-header-menu-preview--drawer__list__item",selected:e.slug===d,blockGrammer:e.content,viewportWidth:900,styling:"custom",overlay:!1,onClick:()=>(async e=>{document.getElementsByClassName("nfd-onboard-content")&&document.getElementsByClassName("nfd-onboard-content")[0].scrollIntoView({behavior:"smooth"});const t=a[e];if(t.slug===d)return!0;p(t.slug),g.data.partHeader=t.slug,y(g);let n=t.content;i.forEach((e=>{r.includes(e.slug)&&(n+=e.content)})),E(n);const o=await(0,u.kB)(g);null===(null==o?void 0:o.error)&&y(g)})(t)}))),className:"theme-header-menu-preview--drawer__list__item",viewportWidth:900})},j=()=>(0,s.createElement)("div",{style:{padding:"0 16px"}},(0,s.createElement)("h2",null,(0,f.__)("Pick a Homepage Design","wp-module-onboarding")),(0,s.createElement)("p",null,(0,f.__)("Panel will show a few Homepage Patterns.","wp-module-onboarding"))),q=()=>(0,s.createElement)("div",{style:{padding:"0 16px"}},(0,s.createElement)("h2",null,(0,f.__)("Pick a Theme Style","wp-module-onboarding")),(0,s.createElement)("h4",null,(0,f.__)("No Style Selected","wp-module-onboarding")),(0,s.createElement)("p",null,(0,f.__)("Panel will show Theme details","wp-module-onboarding")),(0,s.createElement)("h4",null,(0,f.__)("With Style Selected","wp-module-onboarding")),(0,s.createElement)("p",null,(0,f.__)("Panel will show single-column of other Styles.","wp-module-onboarding"))),Q=()=>{var e;const[t,r]=(0,s.useState)(),[a,o]=(0,s.useState)(),[i,l]=(0,s.useState)(""),{currentStep:u,currentData:d,storedPreviewSettings:m,themeStatus:h,themeVariations:g}=(0,b.useSelect)((e=>({currentStep:e(c.h).getCurrentStep(),currentData:e(c.h).getCurrentOnboardingData(),storedPreviewSettings:e(c.h).getPreviewSettings(),themeStatus:e(c.h).getThemeStatus(),themeVariations:e(c.h).getStepPreviewData()})),[]),{updatePreviewSettings:v,setCurrentOnboardingData:f,updateThemeStatus:w}=(0,b.useDispatch)(c.h);return(0,s.useEffect)((()=>{h===n.GV&&(async()=>{const e=await(0,p.oC)(!0);if(null!=e&&e.error)return w(n.a0);let t;d.data.theme.variation?t=d.data.theme.variation:(t=e.body[0].title,d.data.theme.variation=t,f(d)),l(t);const a=await(0,H.C)(u.patternId,!0);if(null!=a&&a.error)return w(n.a0);r(null==a?void 0:a.body),o(null==e?void 0: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"})})()}),[h]),(0,s.createElement)("div",{className:"theme-styles-preview--drawer"},(0,s.createElement)("div",{className:"theme-styles-preview--drawer__list"},(0,s.createElement)(Z.r9,{className:"theme-styles-preview--drawer__list__item",watch:a&&t,count:null===(e=g[null==u?void 0:u.patternId])||void 0===e?void 0:e.previewCount,callback:()=>null==a?void 0:a.map(((e,n)=>(0,s.createElement)(Z.H,{key:n,className:"theme-styles-preview--drawer__list__item",selected:e.title===i,blockGrammer:t,viewportWidth:900,styling:"custom",previewSettings:e,overlay:!1,onClick:()=>(e=>{const t=a[e];if(i===t.title)return!0;v((0,M.NF)(t,m)),l(t.title),d.data.theme.variation=t.title,f(d)})(n)}))),viewportWidth:900})))},J=()=>(0,s.createElement)("div",{style:{padding:"0 16px"}},(0,s.createElement)("h2",null,(0,f.__)("Pick a Theme","wp-module-onboarding")),(0,s.createElement)("h4",null,(0,f.__)("No Theme Selected","wp-module-onboarding")),(0,s.createElement)("p",null,(0,f.__)("Panel will show contextual help","wp-module-onboarding")),(0,s.createElement)("h4",null,(0,f.__)("With Theme Selected","wp-module-onboarding")),(0,s.createElement)("p",null,(0,f.__)("Panel will show single-column of other Themes.","wp-module-onboarding"))),K=()=>{const e=(0,s.useRef)(),[t,r]=(0,s.useState)(!1),[a,o]=(0,s.useState)(),[i,l]=(0,s.useState)(),{storedPreviewSettings:u,currentData:d,themeStatus:m}=(0,b.useSelect)((e=>({storedPreviewSettings:e(c.h).getPreviewSettings(),currentData:e(c.h).getCurrentOnboardingData(),themeStatus:e(c.h).getThemeStatus()})),[]),{updatePreviewSettings:h,setCurrentOnboardingData:g,updateThemeStatus:v}=(0,b.useDispatch)(c.h);(0,s.useEffect)((()=>{var e,t,n,r,a,l;""!==(null==d||null===(e=d.data)||void 0===e||null===(t=e.typography)||void 0===t?void 0:t.slug)&&void 0!==i&&(o(null==d||null===(n=d.data)||void 0===n||null===(r=n.typography)||void 0===r?void 0:r.slug),w(null==d||null===(a=d.data)||void 0===a||null===(l=a.typography)||void 0===l?void 0:l.slug))}),[i,u]),(0,s.useEffect)((()=>{t||n.GV!==m||(async()=>{var t,a;const o=await(0,p.ko)();if(null!=o&&o.error)return v(n.a0);l(null==o?void 0:o.body);const i=null==u||null===(t=u.settings)||void 0===t||null===(a=t.styles[0])||void 0===a?void 0:a.css;if(i){const t=/--wp--preset--font-family.*;/;e.current.setAttribute("style",i.match(t))}r(!0)})()}),[t,m]);const w=async e=>{var t,n,r,l,s,c,p,m,v,f,w;if(a===e)return!0;o(e);const b=u,y=i;var _,E,S,k,N,C;null!=b&&null!==(t=b.styles)&&void 0!==t&&null!==(n=t.typography)&&void 0!==n&&n.fontFamily&&null!=b&&null!==(r=b.styles)&&void 0!==r&&null!==(l=r.blocks["core/heading"])&&void 0!==l&&null!==(s=l.typography)&&void 0!==s&&s.fontFamily&&(b.styles.typography.fontFamily=null===(_=y[e])||void 0===_||null===(E=_.styles)||void 0===E||null===(S=E.typography)||void 0===S?void 0:S.fontFamily,b.styles.blocks["core/heading"].typography.fontFamily=null===(k=y[e])||void 0===k?void 0:k.styles.blocks["core/heading"].typography.fontFamily),null!==(c=b.styles)&&void 0!==c&&null!==(p=c.blocks["core/site-title"])&&void 0!==p&&null!==(m=p.typography)&&void 0!==m&&m.fontFamily&&(b.styles.blocks["core/site-title"].typography.fontFamily=null===(N=y[e])||void 0===N?void 0:N.styles.blocks["core/heading"].typography.fontFamily),null!==(v=b.styles)&&void 0!==v&&null!==(f=v.blocks["core/site-tagline"])&&void 0!==f&&null!==(w=f.typography)&&void 0!==w&&w.fontFamily&&(b.styles.blocks["core/site-tagline"].typography.fontFamily=null===(C=y[e])||void 0===C?void 0:C.styles.blocks["core/heading"].typography.fontFamily),d.data.typography.slug=e,d.data.typography.data=y[e],h((0,M.NF)(b,u)),g(d)};return(0,s.createElement)("div",{ref:e,className:"theme-fonts--drawer"},(0,s.createElement)("h2",null,(0,f.__)("Font Palettes","wp-module-onboarding")),i&&Object.keys(i).map(((e,t)=>{var n,r,o,l,c,u,d,p,m;const h=null===(n=i[e])||void 0===n?void 0:n.label.split("&",2);return 0===h.length?null:(0,s.createElement)("div",{key:e,tabIndex:t+1,role:"button",className:`font-palette drawer-palette--button ${a===e?"font-palette-selected drawer-palette--button--selected":""} `,onClick:()=>w(e),onKeyDown:()=>w(e)},(0,s.createElement)("div",{className:"font-palette__icon drawer-palette--button__text",style:{fontFamily:null===(r=i[e])||void 0===r||null===(o=r.styles)||void 0===o||null===(l=o.typography)||void 0===l?void 0:l.fontFamily}},"Aa"),(0,s.createElement)("div",{className:"font-palette__name drawer-palette--button__text"},(0,s.createElement)("span",{style:{fontFamily:null===(c=i[e])||void 0===c?void 0:c.styles.blocks["core/heading"].typography.fontFamily}},h[0]),h[1]?"&":"",(0,s.createElement)("span",{style:{fontFamily:null===(u=i[e])||void 0===u||null===(d=u.styles)||void 0===d||null===(p=d.typography)||void 0===p?void 0:p.fontFamily}},null!==(m=h[1])&&void 0!==m?m:"")))})))};var Y=a(9630),X=a(9196),ee=a(2599);function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}const re=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],ae=["aria-current","caseSensitive","className","end","style","to","children"];function oe(e){let{basename:t,children:n,window:r}=e,a=X.useRef();null==a.current&&(a.current=(0,ee.q_)({window:r,v5Compat:!0}));let o=a.current,[i,l]=X.useState({action:o.action,location:o.location});return X.useLayoutEffect((()=>o.listen(l)),[o]),X.createElement(w.F0,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:o})}const ie="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,le=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,se=X.forwardRef((function(e,t){let n,{onClick:r,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:c,preventScrollReset:u}=e,d=ne(e,re),{basename:p}=X.useContext(w.Us),m=!1;if("string"==typeof c&&le.test(c)&&(n=c,ie))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=(0,ee.Zn)(t.pathname,p);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:m=!0}catch(e){}let h=(0,w.oQ)(c,{relative:a}),g=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i}=void 0===t?{}:t,l=(0,w.s0)(),s=(0,w.TH)(),c=(0,w.WU)(e,{relative:i});return X.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!==r?r:(0,ee.Ep)(s)===(0,ee.Ep)(c);l(e,{replace:n,state:a,preventScrollReset:o,relative:i})}}),[s,l,c,r,a,n,e,o,i])}(c,{replace:i,state:l,target:s,preventScrollReset:u,relative:a});return X.createElement("a",te({},d,{href:n||h,onClick:m||o?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:s}))})),ce=X.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:a="",end:o=!1,style:i,to:l,children:s}=e,c=ne(e,ae),u=(0,w.WU)(l,{relative:c.relative}),d=(0,w.TH)(),p=X.useContext(w.FR),{navigator:m}=X.useContext(w.Us),h=m.encodeLocation?m.encodeLocation(u).pathname:u.pathname,g=d.pathname,v=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(g=g.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase());let f,b=g===h||!o&&g.startsWith(h)&&"/"===g.charAt(h.length),y=null!=v&&(v===h||!o&&v.startsWith(h)&&"/"===v.charAt(h.length)),_=b?n:void 0;f="function"==typeof a?a({isActive:b,isPending:y}):[a,b?"active":null,y?"pending":null].filter(Boolean).join(" ");let E="function"==typeof i?i({isActive:b,isPending:y}):i;return X.createElement(se,te({},c,{"aria-current":_,className:f,ref:t,style:E,to:l}),"function"==typeof s?s({isActive:b,isPending:y}):s)}));var ue,de;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ue||(ue={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(de||(de={}));var pe=a(4184),me=a.n(pe);const he=()=>{const{designSteps:e}=(0,b.useSelect)((e=>({designSteps:e(c.h).getDesignSteps()})),[]),{setDrawerActiveView:t}=(0,b.useDispatch)(c.h),r=(0,w.TH)();return(0,s.createElement)(U.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:E.Z,onClick:()=>t(n.tM)},(0,f.__)("Onboarding Menu","wp-module-onboarding")),(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,s.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,s.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,s.createElement)(ce,{to:e.path,className:me()("nfd-onboarding-drawer__panel-menu-link",{active:r.pathname===e.path||r.pathname.includes(null==e?void 0:e.designDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t(e.VIEW)},(0,s.createElement)(_.Z,{icon:e.Icon}),(0,s.createElement)("span",null,e.title))))))))},ge=()=>{const{getStartedSteps:e}=(0,b.useSelect)((e=>({getStartedSteps:e(c.h).getGetStartedSteps()})),[]),{setDrawerActiveView:t}=(0,b.useDispatch)(c.h);return(0,s.createElement)(U.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:E.Z,onClick:()=>t(n.tM)},(0,f.__)("Onboarding Menu","wp-module-onboarding")),(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,s.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,s.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,s.createElement)(ce,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.VIEW)},(0,s.createElement)(_.Z,{icon:e.Icon}),(0,s.createElement)("span",null,e.title))))))))},ve=()=>{const{setDrawerActiveView:e}=(0,b.useDispatch)(c.h);return(0,s.createElement)(U.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:E.Z,onClick:()=>e(n.tM)},(0,f.__)("Resume Onboarding","wp-module-onboarding")))},fe=()=>{const e=(0,w.s0)(),t=(0,w.TH)(),{topSteps:n}=(0,b.useSelect)((e=>({topSteps:e(c.h).getTopSteps()})),[]),{setDrawerActiveView:r}=(0,b.useDispatch)(c.h),a=n[0].path===t.pathname;return(0,s.createElement)(U.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},a&&(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",onClick:()=>e("/page/what-to-expect")},"What to Expect")||(0,s.createElement)(O.Z,{buttonClassName:"nfd-onboarding-drawer__panel-back",buttonVariant:"tertiary",origin:"drawer-panel"}),(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,s.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},n.map((e=>(0,s.createElement)(y.Tooltip,{key:e.path,text:e.heading},(0,s.createElement)("li",{className:"nfd-onboarding-drawer__panel-menu-item"},(0,s.createElement)(ce,{to:t.pathname===e.path||t.pathname.includes(null==e?void 0:e.primaryDrawerActiveLinkIncludes)?t.pathname:e.path,className:me()("nfd-onboarding-drawer__panel-menu-link",{active:t.pathname===e.path||t.pathname.includes(null==e?void 0:e.primaryDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>(null==e?void 0:e.VIEW)&&r(e.VIEW)},(0,s.createElement)(_.Z,{icon:e.Icon}),(0,s.createElement)("span",null,e.title)))))))))},we=()=>{const{storeInfoSteps:e}=(0,b.useSelect)((e=>({storeInfoSteps:e(c.h).getStoreInfoSteps()})),[]),{setDrawerActiveView:t}=(0,b.useDispatch)(c.h);return(0,s.createElement)(U.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:E.Z,onClick:()=>t(n.tM)},(0,f.__)("Onboarding Menu","wp-module-onboarding")),(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,s.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,s.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,s.createElement)(ce,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.VIEW)},(0,s.createElement)(_.Z,{icon:e.Icon}),(0,s.createElement)("span",null,e.title))))))))},be=e=>{let{children:t}=e;const{setDrawerActiveView:r}=(0,b.useDispatch)(c.h);return(0,s.createElement)(U.Z,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,s.createElement)(y.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:E.Z,onClick:()=>r(n.Yl)},(0,f.__)("Design","wp-module-onboarding")),t)},ye=()=>{const[e,t]=(0,s.useState)(!0),{isDrawerOpen:r,drawerView:a}=(0,b.useSelect)((e=>{const{isDrawerOpened:t,getDrawerView:n}=e(c.h);return{isDrawerOpen:t(),drawerView:n()}}),[]),{setIsDrawerOpened:o,setDrawerActiveView:i}=(0,b.useDispatch)(c.h);return(0,s.useEffect)((()=>{n.$P.includes(a)?t(!0):t(!1)}),[a]),(0,s.createElement)("div",{className:me()("nfd-onboarding-drawer__panel",{"is-open":r}),onKeyDown:e=>{e.keyCode!==Y.ESCAPE||e.defaultPrevented||(e.preventDefault(),o(!1))}},(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-inner"},(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title-container"},(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title"},(0,f.__)("WordPress Onboarding","wp-module-onboarding"))),(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-scroll-container"},(0,s.createElement)("div",{className:"nfd-onboarding-drawer__panel-inside"},n.tM===a&&(0,s.createElement)(fe,null),n.Yl===a&&(0,s.createElement)(he,null),n.mz===a&&(0,s.createElement)(ge,null),n.dv===a&&(0,s.createElement)(we,null),n.BP===a&&(0,s.createElement)(ve,null),n.tX===a&&(0,s.createElement)(be,null,(0,s.createElement)(J,null)),n.lE===a&&(0,s.createElement)(be,null,(0,s.createElement)(q,null)),n._h===a&&(0,s.createElement)(be,null,(0,s.createElement)(Q,null)),n.qR===a&&(0,s.createElement)(be,null,(0,s.createElement)(W,null)),n.jN===a&&(0,s.createElement)(be,null,(0,s.createElement)(K,null)),n.qO===a&&(0,s.createElement)(be,null,(0,s.createElement)(G,null)),n.nx===a&&(0,s.createElement)(be,null,(0,s.createElement)(j,null))))))},_e=e=>{let{isOpen:t}=e;const{isDrawerOpen:n,isDrawerSuppressed:r}=(0,b.useSelect)((e=>({isDrawerOpen:e(c.h).isDrawerOpened(),isDrawerSuppressed:e(c.h).isDrawerSuppressed()})),[]),{setIsDrawerOpened:a}=(0,b.useDispatch)(c.h),o=(0,s.useRef)();return(0,s.useEffect)((()=>{n||o.current.focus()}),[n]),(0,s.createElement)(y.__unstableMotion.div,{className:me()("nfd-onboarding-drawer__toggle",{"is-open":n}),whileHover:"expand"},(0,s.createElement)(y.Button,{className:`nfd-onboarding-drawer__toggle-button has-icon ${!r||"is-suppressed"}`,label:(0,f.__)("Toggle Navigation","wp-module-onboarding"),ref:o,"aria-pressed":t,onClick:()=>{r||a(!n)}},(0,s.createElement)("div",{style:{width:"36px",height:"36px",backgroundImage:"var(--nfd-onboarding-icon)",backgroundSize:"contain"}})))},Ee=(0,s.memo)((e=>{let{isDefaultOpen:t=!1}=e;const n=(0,B.useViewportMatch)("medium"),{setIsDrawerOpened:r}=(0,b.useDispatch)(c.h);return(0,s.useEffect)((()=>{r(t&&n)}),[t,n,r]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(_e,null),(0,s.createElement)(ye,null))})),Se=()=>{const{isSidebarOpened:e,sideBarView:t,sidebars:r}=(0,b.useSelect)((e=>({isSidebarOpened:e(c.h).isSidebarOpened(),sideBarView:e(c.h).getSidebarView(),sidebars:e(c.h).getSidebars()})));return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(s.Suspense,{fallback:(0,s.createElement)(s.Fragment,null)},r.map((e=>(0,s.createElement)(s.Fragment,{key:e.id},(0,s.createElement)(e.sidebar,null),(0,s.createElement)(e.menu,null))))),(0,s.createElement)("div",{className:me()("nfd-onboarding-sidebar__panel",{"is-open":e&&t})},(0,s.createElement)("div",{className:"nfd-onboarding-sidebar__panel-inner"},e&&t&&(0,s.createElement)(y.Slot,{name:`${n.qB}/${t}`}))))};var ke=a(3768),Ne=a(6510),Ce=a(2819);const xe=e=>{let{isActive:t}=e;return(0,s.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,s.useEffect)((()=>(t?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{t&&document.body.classList.remove("is-fullscreen-mode")})),[t]),null},De=window.wp.deprecated;var Te=a.n(De);const Pe=window.wp.preferences,Ie=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),Oe=(e,t)=>n=>{let{registry:r,dispatch:a}=n;t&&(r.select(Pe.store).get(e,"isComplementaryAreaVisible")||r.dispatch(Pe.store).set(e,"isComplementaryAreaVisible",!0),a({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t}))},Ae=e=>t=>{let{registry:n}=t;n.select(Pe.store).get(e,"isComplementaryAreaVisible")&&n.dispatch(Pe.store).set(e,"isComplementaryAreaVisible",!1)},Le=(e,t)=>n=>{let{registry:r}=n;if(!t)return;const a=r.select(Pe.store).get(e,"pinnedItems");!0!==(null==a?void 0:a[t])&&r.dispatch(Pe.store).set(e,"pinnedItems",{...a,[t]:!0})},Fe=(e,t)=>n=>{let{registry:r}=n;if(!t)return;const a=r.select(Pe.store).get(e,"pinnedItems");r.dispatch(Pe.store).set(e,"pinnedItems",{...a,[t]:!1})};function Re(e,t){return function(n){let{registry:r}=n;Te()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(Pe.store).toggle(e,t)}}function Ve(e,t,n){return function(r){let{registry:a}=r;Te()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),a.dispatch(Pe.store).set(e,t,!!n)}}function $e(e,t){return function(n){let{registry:r}=n;Te()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(Pe.store).setDefaults(e,t)}}const ze=(0,b.createRegistrySelector)((e=>(t,n)=>{var r;const a=e(Pe.store).get(n,"isComplementaryAreaVisible");if(void 0!==a)return!1===a?null:null==t||null===(r=t.complementaryAreas)||void 0===r?void 0:r[n]})),Be=(0,b.createRegistrySelector)((e=>(t,n)=>{var r;const a=e(Pe.store).get(n,"isComplementaryAreaVisible"),o=null==t||null===(r=t.complementaryAreas)||void 0===r?void 0:r[n];return a&&void 0===o})),Me=(0,b.createRegistrySelector)((e=>(t,n,r)=>{var a;const o=e(Pe.store).get(n,"pinnedItems");return null===(a=null==o?void 0:o[r])||void 0===a||a})),Ue=(0,b.createRegistrySelector)((e=>(t,n,r)=>(Te()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(Pe.store).get(n,r)))),We=(0,b.combineReducers)({complementaryAreas:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;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}}),He=(0,b.createReduxStore)("core/interface",{reducer:We,actions:e,selectors:t});(0,b.register)(He);var Ze=a(7462);const Ge=(0,s.forwardRef)((function(e,t){let{footer:n,header:r,sidebar:a,secondarySidebar:o,notices:i,content:l,drawer:c,actions:u,labels:d,className:p,shortcuts:m}=e;const h=(0,y.__unstableUseNavigateRegions)(m);!function(e){(0,s.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("nfd-interface-interface-skeleton__html-container");const g={ +/* translators: accessibility text for the nav bar landmark region. */ +drawer:(0,f.__)("Drawer","wp-module-onboarding"), +/* translators: accessibility text for the top bar landmark region. */ +header:(0,f.__)("Header","wp-module-onboarding"), +/* translators: accessibility text for the content landmark region. */ +body:(0,f.__)("Content","wp-module-onboarding"), +/* translators: accessibility text for the secondary sidebar landmark region. */ +secondarySidebar:(0,f.__)("Block Library","wp-module-onboarding"), +/* translators: accessibility text for the settings landmark region. */ +sidebar:(0,f.__)("Settings","wp-module-onboarding"), +/* translators: accessibility text for the publish landmark region. */ +actions:(0,f.__)("Publish","wp-module-onboarding"), +/* translators: accessibility text for the footer landmark region. */ +footer:(0,f.__)("Footer","wp-module-onboarding"),...d};return(0,s.createElement)("div",(0,Ze.Z)({},h,{ref:(0,B.useMergeRefs)([t,h.ref]),className:me()(p,"nfd-interface-interface-skeleton",h.className,!!n&&"has-footer")}),!!c&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__drawer",role:"region","aria-label":g.drawer,tabIndex:"-1"},c),(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__editor"},!!r&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__header",role:"region","aria-label":g.header,tabIndex:"-1"},r),(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__body"},!!o&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":g.secondarySidebar,tabIndex:"-1"},o),!!i&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__notices"},i),(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__content",role:"region","aria-label":g.body,tabIndex:"-1"},l),!!a&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__sidebar",role:"region","aria-label":g.sidebar,tabIndex:"-1"},a),!!u&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__actions",role:"region","aria-label":g.actions,tabIndex:"-1"},u))),!!n&&(0,s.createElement)("div",{className:"nfd-interface-interface-skeleton__footer",role:"region","aria-label":g.footer,tabIndex:"-1"},n))})),je=()=>{const e=(0,w.TH)(),t=(0,B.useViewportMatch)("medium"),r=(0,Ce.kebabCase)(e.pathname),{isDrawerOpen:a,newfoldBrand:o,onboardingFlow:i,currentData:l,socialData:d,firstStep:p,routes:m,designSteps:h,allSteps:g}=(0,b.useSelect)((e=>({isDrawerOpen:e(c.h).isDrawerOpened(),newfoldBrand:e(c.h).getNewfoldBrand(),onboardingFlow:e(c.h).getOnboardingFlow(),currentData:e(c.h).getCurrentOnboardingData(),socialData:e(c.h).getOnboardingSocialData(),firstStep:e(c.h).getFirstStep(),routes:e(c.h).getRoutes(),allSteps:e(c.h).getAllSteps(),designSteps:e(c.h).getDesignSteps()})),[]),[f,_]=(0,s.useState)(!1),[E,S]=(0,s.useState)(!1),[k,N]=(0,s.useState)(!1),{setActiveStep:C,setActiveFlow:x,updateRoutes:D,updateDesignSteps:T,updateAllSteps:P,flushQueue:I,enqueueRequest:O,setOnboardingSocialData:L}=(0,b.useDispatch)(c.h);const F=()=>({routes:(0,Ce.filter)(m,(e=>!e.path.includes(Ne.mT.designColors.path)&&!e.path.includes(Ne.mT.designTypography.path))),allSteps:(0,Ce.filter)(g,(e=>!e.path.includes(Ne.mT.designColors.path)&&!e.path.includes(Ne.mT.designTypography.path))),designSteps:(0,Ce.filter)(h,(e=>!e.path.includes(Ne.mT.designColors.path)&&!e.path.includes(Ne.mT.designTypography.path)))});return(0,s.useEffect)((()=>{document.body.classList.add(`nfd-brand-${o}`)}),[o]),(0,s.useEffect)((()=>{(async function(){const t=(null==e?void 0:e.pathname)===(null==p?void 0:p.path);if(l&&!t&&!f){if(_(!0),k&&await async function(){const{address:e,tax:t}=l.storeDetails;let n={};void 0!==e&&(delete e.country,delete e.state,n=e),void 0!==t&&(delete t.option,delete t.isStoreDetailsFilled,n={...n,...t}),(0,ke.xb)(n)||await(0,ke.Hs)(n),delete l.storeDetails.address,delete l.storeDetails.tax,N(!1)}(),E){const e=await async function(){const e=await(0,v.Gw)(),t=await(0,v.I2)(d);return S(!1),null!==(null==t?void 0:t.error)?null==e?void 0:e.body:null==t?void 0:t.body}();e&&L(e)}I(),O(n.Az.SET_FLOW,(()=>(0,u.kB)(l))),_(!1)}null!=e&&e.pathname.includes("basic-info")&&S(!0),null!=e&&e.pathname.includes("ecommerce")&&N(!0)})(),function(){if(null!=e&&e.pathname.includes("colors")||null!=e&&e.pathname.includes("typography")){var t;const e=null!=l&&null!==(t=l.data)&&void 0!==t&&t.customDesign?(()=>{const e=F(),t=[Ne.mT.designColors,Ne.mT.designTypography];return{routes:(0,Ce.orderBy)(e.routes.concat(t),["priority"],["asc"]),allSteps:(0,Ce.orderBy)(e.allSteps.concat(t),["priority"],["asc"]),designSteps:(0,Ce.orderBy)(e.designSteps.concat(t),["priority"],["asc"])}})():F();D(e.routes),T(e.designSteps),P(e.allSteps)}}(),e.pathname.includes("/step")&&(x(i),C(e.pathname))}),[e.pathname,i]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(xe,{isActive:!0}),(0,s.createElement)(y.SlotFillProvider,null,(0,s.createElement)(Ge,{className:me()("nfd-onboarding-skeleton",`brand-${o}`,`path-${r}`,{"is-drawer-open":a},{"is-large-viewport":t},{"is-small-viewport":!t}),header:(0,s.createElement)(A,null),drawer:(0,s.createElement)(Ee,null),content:(0,s.createElement)(z,null),sidebar:(0,s.createElement)(Se,null)})))},qe=()=>(0,s.createElement)(oe,null,(0,s.createElement)(je,null));n.dD?i()((()=>{(async function(e,t){var r,a;(0,d.S1)(),(0,p.S1)(),setInterval(g,45e3);const o=document.getElementById(e);var i;(0,b.dispatch)(c.h).setRuntime(t),null!==(r=t.previewSettings.settings.preRequisites)&&void 0!==r&&r.themes&&(0,b.dispatch)(c.h).updateThemeStatus(null===(i=t.previewSettings.settings.preRequisites)||void 0===i?void 0:i.themes[n.DY]),(0,b.dispatch)(c.h).updatePluginsStatus(null===(a=t.previewSettings.settings.preRequisites)||void 0===a?void 0:a.plugins);const l=await(0,u.ME)();null==l.error&&(l.body=(e=>(e.hasExited=!1,e.isComplete=!1,e))(l.body),(0,b.dispatch)(c.h).setCurrentOnboardingData(l.body)),null!==o&&void 0!==s.render?((0,s.render)((0,s.createElement)(qe,null),o),(0,v.j2)()):console.log("Could not find mount element or wp.element.render().")})(n.JB,window.nfdOnboarding),(0,l.registerCoreBlocks)()})):console.log("Cannot find Newfold Onboarding runtime data to set __webpack_public_path__.")})(),((window.newfold=window.newfold||{}).Onboarding=window.newfold.Onboarding||{}).onboarding=o})(); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a0656a2d1..d0c6c0223 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "1.6.1", + "version": "1.7.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@newfold-labs/wp-module-onboarding", - "version": "1.6.1", + "version": "1.7.0", "license": "GPL-2.0-or-later", "dependencies": { "@wordpress/interface": "^5.10.0", diff --git a/package.json b/package.json index e2d5cde36..9ca986950 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "1.6.1", + "version": "1.7.0", "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", "license": "GPL-2.0-or-later", "private": true,