"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[2152],{31034:(e,o,t)=>{t.d(o,{a:()=>s});var n=t(4921),i=t(86087),r=t(48653);const s=({children:e,className:o})=>(0,i.createElement)("div",{className:(0,n.A)("woocommerce-onboarding-loader",o)},e);s.Layout=({children:e,className:o})=>(0,i.createElement)("div",{className:(0,n.A)("woocommerce-onboarding-loader-wrapper",o)},(0,i.createElement)("div",{className:(0,n.A)("woocommerce-onboarding-loader-container",o)},e)),s.Illustration=({children:e})=>(0,i.createElement)(i.Fragment,null,e),s.Title=({children:e,className:o})=>(0,i.createElement)("h1",{className:(0,n.A)("woocommerce-onboarding-loader__title",o)},e),s.ProgressBar=({progress:e,className:o})=>(0,i.createElement)(r.A,{className:(0,n.A)("progress-bar",o),percent:e??0,color:"var(--wp-admin-theme-color)",bgcolor:"#E0E0E0"}),s.Subtext=({children:e,className:o})=>(0,i.createElement)("p",{className:(0,n.A)("woocommerce-onboarding-loader__paragraph",o)},e),s.Sequence=({interval:e,shouldLoop:o=!0,children:t,onChange:n=()=>{}})=>{const[r,s]=(0,i.useState)(0),a=i.Children.count(t);(0,i.useEffect)(()=>{const t=setInterval(()=>{s(e=>{const i=e+1;if(o){const e=i%a;return n(e),e}return iclearInterval(t)},[e,t,o,a]);const l=i.Children.toArray(t)[r];return(0,i.createElement)(i.Fragment,null,l)}},51832:(e,o,t)=>{t.d(o,{L:()=>h});var n=t(51609),i=t(86087),r=t(56427),s=t(63654),a=t(78051),l=t(99492),c=t(85844),u=t(7473),g=t(29652),p=t(93132),M=t(77246),m=t(86421),d=t(22950),N=t(12680),I=t(90994),y=t(93220),j=t(59634),L=t(84514),T=t(93580),D=t(73566),w=t(59999),S=t(79162),_=t(41167),x=t(53997);const A=[{name:"visa",component:(0,i.createElement)(s.A,{key:"visa"})},{name:"mastercard",component:(0,i.createElement)(a.A,{key:"mastercard"})},{name:"amex",component:(0,i.createElement)(l.A,{key:"amex"})},{name:"discover",component:(0,i.createElement)(c.A,{key:"discover"})},{name:"woopay",component:(0,i.createElement)(M.A,{key:"woopay"})},{name:"applepay",component:(0,i.createElement)(u.A,{key:"applepay"})},{name:"googlepay",component:(0,i.createElement)(g.A,{key:"googlepay"})},{name:"afterpay",component:(0,i.createElement)(m.A,{key:"afterpay"})},{name:"affirm",component:(0,i.createElement)(d.A,{key:"affirm"})},{name:"klarna",component:(0,i.createElement)(N.A,{key:"klarna"})},{name:"cartebancaire",component:(0,i.createElement)(I.A,{key:"cartebancaire"})},{name:"unionpay",component:(0,i.createElement)(y.A,{key:"unionpay"})},{name:"diners",component:(0,i.createElement)(j.A,{key:"diners"})},{name:"eftpos",component:(0,i.createElement)(L.A,{key:"eftpos"})},{name:"jcb",component:(0,i.createElement)(p.A,{key:"jcb"})},{name:"bancontact",component:(0,i.createElement)(D.A,{key:"bancontact"})},{name:"becs",component:(0,i.createElement)(S.A,{key:"becs"})},{name:"eps",component:(0,i.createElement)(w.A,{key:"eps"})},{name:"ideal",component:(0,i.createElement)(T.A,{key:"ideal"})},{name:"przelewy24",component:(0,i.createElement)(_.A,{key:"przelewy24"})},{name:"grabpay",component:(0,i.createElement)(x.A,{key:"grabpay"})}],h=({isWooPayEligible:e=!1,maxElements:o=10,tabletWidthBreakpoint:t=768,maxElementsTablet:s=7,mobileWidthBreakpoint:a=480,maxElementsMobile:l=5,totalPaymentMethods:c=21})=>{const[u,g]=(0,n.useState)(o),[p,M]=(0,n.useState)(!1),m=(0,n.useRef)(null),d=e=>{const o=e.target.closest(".woocommerce-woopayments-payment-methods-logos-count");m.current&&o!==m.current||M(e=>!e)},N=e=>{"Escape"===e.key&&p?(e.stopPropagation(),M(!1),m.current?.focus()):"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d(e))};(0,n.useEffect)(()=>{if(!p)return;const e=e=>{"Escape"===e.key&&(e.stopPropagation(),M(!1),m.current?.focus())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[p]);const I=e?c:c-1,y=o=>e?o:o+1;(0,n.useEffect)(()=>{const e=()=>{window.innerWidth<=a?g(l):window.innerWidth<=t?g(s):g(o)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[o,l,s,t,a]);const j=A.slice(0,y(u)).filter(o=>e||"woopay"!==o.name),L=A.slice(y(u)).filter(o=>e||"woopay"!==o.name);return(0,i.createElement)("div",{className:"woocommerce-woopayments-payment-methods-logos"},j.map(e=>e.component),u{M(!1)},onKeyDown:N},(0,i.createElement)("div",{className:"woocommerce-woopayments-payment-methods-logos"},L.map(e=>e.component)))))}},43673:(e,o,t)=>{t.d(o,{b:()=>a,J:()=>l});var n=t(84343),i=t.n(n),r=t(27723);const s={PH:{"National Capital Region":(0,r.__)("Metro Manila","woocommerce")},IT:{Rome:(0,r.__)("Roma","woocommerce")}},a=(e,o,t=.7)=>{if(!o)return null;let n=null,r=t;const a=(({country_short:e,region:o="",city:t=""})=>{if(!e)return null;const n=s[e];if(!n)return null;const i=n[o];return i||(n[t]||null)})(o);for(const t of e){if(t.key===o.country_short)return t;if(t.key.split(":")[0]===o.country_short&&t.label.includes("—")){const e=t.label.split("—")[1].trim();if(a===e)return t;if(0===e.localeCompare(o.region||"","en",{sensitivity:"base"})||0===e.localeCompare(o.city||"","en",{sensitivity:"base"}))return t;const s=Math.max(i().compareTwoStrings(e,o.region||""),i().compareTwoStrings(e,o.city||""));s>=r&&(n=t,r=s)}}return n},l=e=>e?.split(":")[0]??void 0},87889:(e,o,t)=>{t.d(o,{A:()=>i});var n=t(39793);const i=()=>(0,n.jsxs)("svg",{width:"91",height:"24",viewBox:"0 0 91 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"wc-icon wc-icon__woo-logo new-branding",children:[(0,n.jsx)("path",{d:"M79.0537 0C72.2755 0 67.0874 5.10851 67.0874 12C67.0874 18.8915 72.2755 24 79.0537 24C85.832 24 91.0002 18.8915 91.0002 12C91.0002 5.10851 85.7923 0 79.0537 0ZM79.0537 16.6277C76.5094 16.6277 74.7602 14.6644 74.7602 12C74.7602 9.33555 76.4895 7.37228 79.0537 7.37228C81.6179 7.37228 83.3473 9.33555 83.3473 12C83.3473 14.6644 81.5981 16.6277 79.0537 16.6277Z",fill:"#873DFF"}),(0,n.jsx)("path",{d:"M53.7285 0C46.9503 0 41.7622 5.10851 41.7622 12C41.7622 18.8915 46.9701 24 53.7285 24C60.4869 24 65.675 18.8915 65.675 12C65.675 5.10851 60.4671 0 53.7285 0ZM53.7285 16.6277C51.1842 16.6277 49.435 14.6644 49.435 12C49.435 9.33555 51.1643 7.37228 53.7285 7.37228C56.2928 7.37228 58.0221 9.33555 58.0221 12C58.0221 14.6644 56.2928 16.6277 53.7285 16.6277Z",fill:"#873DFF"}),(0,n.jsx)("path",{d:"M11.688 24C14.3715 24 16.5183 22.6577 18.1483 19.5726L21.7461 12.7813V18.5509C21.7461 21.9365 23.9327 24 27.3317 24C29.9556 24 31.8837 22.798 33.792 19.5726L42.1207 5.44908C43.9494 2.36394 42.6574 0 38.6421 0C36.4953 0 35.1039 0.721201 33.8516 3.08514L28.107 13.9232V4.28714C28.107 1.40234 26.7553 0 24.2308 0C22.2629 0 20.6926 0.861435 19.4602 3.26544L14.0535 13.9032V4.38731C14.0535 1.30217 12.8012 0 9.74004 0H3.53822C1.19266 0 0 1.10184 0 3.14524C0 5.18864 1.23241 6.33054 3.53822 6.33054H6.08255V18.5309C6.10243 21.9365 8.3486 24 11.688 24Z",fill:"#873DFF"})]})},98722:(e,o,t)=>{t.r(o),t.d(o,{CoreProfilerController:()=>ao,coreProfilerStateMachineDefinition:()=>so,default:()=>lo,getJetpackIsConnected:()=>to,preFetchActions:()=>no});var n=t(7),i=t(98752),r=t(95747),s=t(19669),a=t(93009),l=t(94859),c=t(86087),u=t(47143),g=t(3582),p=t(96476),M=t(40314),m=t(750),d=t(15703),N=t(83306),I=t(27678),y=t(19504),j=t(27723),L=t(56427),T=t(85703),D=t(98846),w=t(4921),S=t(39793);const _=({className:e,title:o,subTitle:t})=>(0,S.jsxs)("div",{className:(0,w.A)("woocommerce-profiler-heading",e),children:[(0,S.jsx)("h1",{className:"woocommerce-profiler-heading__title",children:o}),t&&(0,S.jsx)("h2",{className:"woocommerce-profiler-heading__subtitle",children:t})]});var x=t(87889);const A=({className:e="",percent:o=0,color:t="#674399",bgcolor:n="var(--wp-admin-theme-color)"})=>{const i={backgroundColor:n},r={backgroundColor:t,width:`${o}%`,display:0===o?"none":"inherit"};return(0,S.jsx)("div",{className:`woocommerce-profiler-progress-bar ${e}`,children:(0,S.jsx)("div",{className:"woocommerce-profiler-progress-bar__container",style:i,children:(0,S.jsx)("div",{className:"woocommerce-profiler-progress-bar__filler",style:r})})})},h=({percentage:e=0,onSkip:o,skipText:t=(0,j.__)("Skip this step","woocommerce"),showProgress:n=!0,showLogo:i=!0,classNames:r={},progressBarColor:s="var(--wp-admin-theme-color)"})=>(0,S.jsxs)("div",{className:(0,w.A)("woocommerce-profiler-navigation-container",r),children:[n&&(0,S.jsx)(A,{className:"progress-bar",percent:e,color:s,bgcolor:"transparent"}),(0,S.jsxs)("div",{className:"woocommerce-profiler-navigation",children:[(0,S.jsx)("div",{className:"woocommerce-profiler-navigation-col-left",children:i&&(0,S.jsx)("span",{className:"woologo",children:(0,S.jsx)(x.A,{})})}),(0,S.jsx)("div",{className:"woocommerce-profiler-navigation-col-right",children:"function"==typeof o&&(0,S.jsx)(L.Button,{onClick:o,className:(0,w.A)("woocommerce-profiler-navigation-skip-link",r.mobile?"mobile":""),isLink:!0,children:t})})]})]});var C=t(77871),E=t(44971);const k=({className:e,selected:o,title:t,name:n,value:i,onChange:r,subOptionsComponent:s=null})=>{const a=()=>{r(i)},l="woocommerce-"+i.replace(/_/g,"-");return(0,S.jsxs)("div",{role:"radio",className:(0,w.A)("woocommerce-profiler-choice-container",e),onClick:a,onKeyDown:e=>{"Enter"===e.key&&a()},"data-selected":o||null,tabIndex:0,children:[(0,S.jsxs)("div",{className:"woocommerce-profiler-choice",children:[(0,S.jsx)("input",{className:"woocommerce-profiler-choice-input",id:l,name:n,type:"radio",value:i,checked:!!o,onChange:a,"data-selected":o||null,tabIndex:-1}),(0,S.jsx)("label",{htmlFor:l,className:"choice__title",children:t})]}),o&&s&&(0,S.jsx)("div",{className:"woocommerce-profiler-choice-sub-options",children:s})]})},O=({selectedOptions:e,onOpenClose:o})=>({items:t,highlightedIndex:n,isOpen:i,getItemProps:r,getMenuProps:s})=>((0,c.useEffect)(()=>{o(i)},[i]),(0,S.jsx)(D.__experimentalSelectControlMenu,{isOpen:i,getMenuProps:s,scrollIntoViewOnOpen:!0,children:t.map((o,t)=>{const i=e.includes(o);return(0,S.jsx)(D.__experimentalSelectControlMenuItem,{index:t,item:o,getItemProps:r,isActive:n===t,activeStyle:{backgroundColor:"#f6f7f7"},children:(0,S.jsx)(L.CheckboxControl,{__nextHasNoMarginBottom:!0,className:(0,w.A)("core-profiler__checkbox",{"is-selected":i}),onChange:()=>{},checked:i,label:o.label})},`${o.value}`)})})),f=({options:e,onSelect:o,selectedOptions:t=[],placeholder:n=(0,j.__)("Select platforms","woocommerce"),onOpenClose:i=()=>{}})=>(0,S.jsx)(D.__experimentalSelectControl,{className:"woocommerce-profiler-platform-selector",label:"",multiple:!0,__experimentalOpenMenuOnFocus:!0,readOnlyWhenClosed:!1,items:e,getFilteredItems:e=>e,selected:t,inputProps:{"aria-readonly":!0,"aria-label":(0,j.__)("Use up and down arrow keys to navigate","woocommerce")},onKeyDown:e=>{if(e.key.length<=1)return e.preventDefault(),!1},placeholder:t.length?"":n,stateReducer:(e,o)=>{const{changes:t,type:n}=o;switch(n){case D.selectControlStateChangeTypes.ControlledPropUpdatedSelectedItem:return{...t,inputValue:e.inputValue};case D.selectControlStateChangeTypes.ItemClick:return{...t,isOpen:!0,inputValue:e.inputValue,highlightedIndex:e.highlightedIndex};case D.selectControlStateChangeTypes.InputBlur:return e.isOpen&&o.selectItem?{...t,isOpen:!0}:t;default:return t}},onSelect:e=>{if(!e)return;const n=t.find(o=>o.value===e.value)?t.filter(o=>o.value!==e.value):[...t,e];o(n)},onRemove:e=>o(t.filter(o=>o!==e)),children:O({selectedOptions:t,onOpenClose:i})}),b=[{title:(0,j.__)("I’m just starting my business","woocommerce"),value:"im_just_starting_my_business"},{title:(0,j.__)("I’m already selling","woocommerce"),value:"im_already_selling"},{title:(0,j.__)("I’m setting up a store for a client","woocommerce"),value:"im_setting_up_a_store_for_a_client"}],z=[{label:(0,j.__)("Yes, I’m selling online","woocommerce"),value:"yes_im_selling_online",key:"yes_im_selling_online"},{label:(0,j.__)("No, I’m selling offline","woocommerce"),value:"no_im_selling_offline",key:"no_im_selling_offline"},{label:(0,j.__)("I’m selling both online and offline","woocommerce"),value:"im_selling_both_online_and_offline",key:"im_selling_both_online_and_offline"}],v=[{label:(0,j.__)("Amazon","woocommerce"),value:"amazon"},{label:(0,j.__)("Adobe Commerce","woocommerce"),value:"adobe_commerce"},{label:(0,j.__)("Big Cartel","woocommerce"),value:"big_cartel"},{label:(0,j.__)("Big Commerce","woocommerce"),value:"big_commerce"},{label:(0,j.__)("Ebay","woocommerce"),value:"ebay"},{label:(0,j.__)("Ecwid","woocommerce"),value:"ecwid"},{label:(0,j.__)("Etsy","woocommerce"),value:"etsy"},{label:(0,j.__)("Facebook Marketplace","woocommerce"),value:"facebook_marketplace"},{label:(0,j.__)("Google Shopping","woocommerce"),value:"google_shopping"},{label:(0,j.__)("Pinterest","woocommerce"),value:"pinterest"},{label:(0,j.__)("Shopify","woocommerce"),value:"shopify"},{label:(0,j.__)("Square","woocommerce"),value:"square"},{label:(0,j.__)("Squarespace","woocommerce"),value:"squarespace"},{label:(0,j.__)("Wix","woocommerce"),value:"wix"},{label:(0,j.__)("WordPress","woocommerce"),value:"wordpress"}];var P=t(81524),U=t(18537),Q=t(56471),Y=t(32478);const G=({countries:e,geolocatedLocation:o,initialValue:t,label:n,placeholder:i,onChange:r,onGeolocationOverruledChange:s})=>{const[a,l]=(0,c.useState)(t),[u,g]=(0,c.useState)({key:"",label:""}),[p,M]=(0,c.useState)(!1);(0,c.useEffect)(()=>{l(t)},[t]),(0,c.useEffect)(()=>{if(o){const n=(0,Y.findCountryOption)(e,o);n&&(g(n),t?.key||(l(n),r(n)))}},[e,o,t?.key]);const[m,d]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{const e=Boolean(o&&(0,Y.getCountry)(a?.key)!==(0,Y.getCountry)(u?.key));d(e),s?.(e)},[a,u,o]),(0,S.jsxs)("div",{className:"woocommerce-geolocation-country-select",children:[(0,S.jsx)(D.SelectControl,{className:"woocommerce-profiler-select-control__country",instanceId:2,placeholder:i,label:""===a.key?n:"",ignoreDiacritics:!0,getSearchExpression:e=>new RegExp(`(^${e}| — (${e}))`,"i"),options:e,help:(0,S.jsx)(C.A,{icon:E.A}),onChange:e=>{Array.isArray(e)&&e.length&&r?.(e[0])},selected:a?[a]:[],showAllOnFocus:!0,isSearchable:!0,virtualScroll:!0,virtualItemHeight:40,virtualListHeight:360}),(0,S.jsx)("div",{className:"woocommerce-profiler-select-control__country-spacer"}),m&&!p&&(0,S.jsxs)(L.Notice,{className:"woocommerce-profiler-geolocation-notice",onRemove:()=>M(!0),status:"warning",children:[(0,S.jsx)("p",{children:(0,c.createInterpolateElement)((0,j.__)("It looks like you’re located in . Are you sure you want to create a store in ?","woocommerce"),{geolocatedCountry:(0,S.jsx)(L.Button,{className:"geolocation-notice-geolocated-country",variant:"link",onClick:()=>{l(u),r(u)},children:o?.country_long}),selectedCountry:(0,S.jsx)("span",{className:"geolocation-notice-selected-country",children:a.label})})}),(0,S.jsx)("p",{children:(0,j.__)("Setting up your store in the wrong country may lead to the following issues:","woocommerce")}),(0,S.jsxs)("ul",{className:"woocommerce-profiler-geolocation-notice__list",children:[(0,S.jsx)("li",{children:(0,j.__)("Tax and duty obligations","woocommerce")}),(0,S.jsx)("li",{children:(0,j.__)("Payment issues","woocommerce")}),(0,S.jsx)("li",{children:(0,j.__)("Shipping issues","woocommerce")})]})]})]})},Z=[void 0,"woocommerce","Site Title",""],R=[{label:(0,j.__)("Clothing and accessories","woocommerce"),key:"clothing_and_accessories"},{label:(0,j.__)("Food and drink","woocommerce"),key:"food_and_drink"},{label:(0,j.__)("Electronics and computers","woocommerce"),key:"electronics_and_computers"},{label:(0,j.__)("Health and beauty","woocommerce"),key:"health_and_beauty"},{label:(0,j.__)("Education and learning","woocommerce"),key:"education_and_learning"},{label:(0,j.__)("Home, furniture and garden","woocommerce"),key:"home_furniture_and_garden"},{label:(0,j.__)("Arts and crafts","woocommerce"),key:"arts_and_crafts"},{label:(0,j.__)("Sports and recreation","woocommerce"),key:"sports_and_recreation"},{label:(0,j.__)("Other","woocommerce"),key:"other"}],B={im_just_starting_my_business:(0,j.__)("What type of products or services do you plan to sell?","woocommerce"),im_already_selling:(0,j.__)("Which industry is your business in?","woocommerce"),im_setting_up_a_store_for_a_client:(0,j.__)("Which industry is your client’s business in?","woocommerce")},W=t.p+"bfec8d1574ef61285fc9.svg",J={title:(0,j.__)("Turning on the lights","woocommerce"),image:(0,S.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMTYiIGhlaWdodD0iMTQwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTAgMGgyMTZ2MTQwSDB6Ii8+PHBhdGggZmlsbD0iI0JFQTBGMiIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMTc3LjA2NCA1MC4wMDhjLTIxLjA4MiAwLTM0LjczNSAxMS4wNjctMzQuNzM1IDI4LjA3NyAwIDIxLjIwMyAyMi40NzUgMjQuMDggMjIuNDc1IDM1LjEyOWgyNC41MmMwLTExLjA1MyAyMi40NzUtMTMuOTI2IDIyLjQ3NS0zNS4xMyAwLTE3LjAxLTEzL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wxMTMuODk2IDguOTY1eiIvPjxwYXRoIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTEyMy40NzQgMjQuNzU4SDkyLjUyN2wtNC43NzYgNy44NzF6TTExOC42OTggMTYuODgzSDk3LjMwMmwtNC43NzYgNy44NzV6TTExMy44OTYgOC45NjVoLTExLjc5MWwtNC44MDMgNy45MTd6Ii8+PHBhdGggc3Ryb2tlPSIjMjcxQjNEIiBkPSJNNDcuODU2IDI1Ljk3N2M5LjMwOS05LjQ3MSAxNy43NjctMTIuODYzIDI3LjI2OC0xNC4zNjhNNzAuNjI5IDI5LjQ0NCA0OC4yMDMgMTEuMzk4Ii8+PHBhdGggc3Ryb2tlPSIjMjcxQjNEIiBkPSJNNTcuMTY1IDM1LjEzOGMzLjA0OS05LjU1NSA0LjE2Mi0yMS44NjggMi4xOTgtMzAuOTE1Ii8+PHBhdGggZmlsbD0iIzI3MUIzRCIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMjEuOTQ3IDgxLjU4NnYzLjVoNS4zNjd2MS4zMDJjLjA4IDUuNzM2IDUuNDQgMTAuODgxIDExLjc2NiAxMC44ODFzMTEuNjc1LTUuMTM0IDExLjc2Ni0xMC44Njd2LTEuMzE2aDUuMzY3di0zLjVIMjEuOTQ3Wk0xOTMuODQ0IDExNi43MTV2LTMuNWgtMzMuNTYzdjMuNWg0LjUydjEuNjFoLTQuNTJ2My41aDQuNTJ2MS45OTVjMCA1LjU4NiA0Ljc1IDEyLjAwOCAxMi4yNjMgMTIuMDA4czEyLjI2My02LjQyNiAxMi4yNjMtMTIuMDA4di0xLjk5NWg0LjUydi0zLjVoLTQuNTJ2LTEuNjFoNC41MTdaIi8+PC9nPjwvc3ZnPg==",alt:"loader-lightbulb"}),paragraphs:[{label:(0,j.__)("#FunWooFact: ","woocommerce"),text:(0,j.__)("Explore powerful extensions and themes at WooCommerce.com to enhance your store.","woocommerce")},{label:(0,j.__)("#FunWooFact: ","woocommerce"),text:(0,j.__)("The Woo team is made up of over 350 talented individuals, distributed across 30+ countries.","woocommerce")}]},F={title:(0,j.__)("Extending your store’s capabilities","woocommerce"),image:(0,S.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMTYiIGhlaWdodD0iMTQwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTAgMGgyMTZ2MTQwSDB6Ii8+PHBhdGggZmlsbD0iI0ZGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMjE1Ljk2OCAxMzUuNDgxaC00LjJ2NC4yMDFoNC4yeiIvPjxwYXRoIGZpbGw9IiNCRUEwRjIiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTIwMS4yOTYgMTQuNzAzVjQ5LjcxaDMuNTAxVjE0LjcwM3pNMjA4LjI5OSA0LjJ2NDUuNTFoMy41VjQuMnpNMTk0LjI5NSAyNC44NTVWNDkuNzFoMy41VjI0Ljg1NXpNODguNDU2IDEzMi40OTZsOC40NjQtMjMuMjdoMjEuODFsOC40NjQgMjMuMjdoMTYuMzR2My4zMzVINzIuMTE2di0zLjMzNXpNOTIuMzIgMzkuMjU1SDMyLjgwNnY1OS41MTRIOTIuMzJ6Ii8+PHBhdGggZmlsbD0iIzI3MUIzRCIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJtNDcuNjk1IDY5Ljg4LTcuMDU0IDIuNTQ4Yy0yLjU5NC45MzgtMi44NDMgMi41OTgtMi4xNzQgMy43MjguODA5IDEuMzYyIDIuNzM4IDEuMjMzIDQuODQ1LS4xNzVhMjgzLjUyIDI4My41MiAwIDAgMCA1Ljk1Mi00LjExN2wtMS41NjktMS45ODVaTTc3LjQyOCA2OS44OGw3LjA1NCAyLjU0OGMyLjU5NC45MzggMi44N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EzM3YtMy40MUw0LjIgMjYuMDgxdjMuNDF6TTEwLjkzNyA0MC43NTJ2LTMuNDFMNC4yIDMyLjd2My40MXpNMTAuOTM3IDQ3LjM3di0zLjQwN0w0LjIgMzkuMzIxdjMuNDF6TTEwLjkzNyA1My45ODl2LTMuNDA2TDQuMiA0NS45NHYzLjQxek0xMC45MzcgNjAuNjF2LTMuNDA2TDQuMiA1Mi41NjJ2My40MXpNMTAuOTM3IDY3LjIyOXYtMy40MDZMNC4yIDU5LjE4djMuNDA2ek0xMC45MzcgNzMuODV2LTMuNDFMNC4yIDY1LjgwMnYzLjQwNnpNMTAuOTM3IDgwLjQ3di0zLjQxTDQuMiA3Mi40MnYzLjQwN3pNMTAuOTM3IDg3LjA5di0zLjQxTDQuMiA3OS4wNDJ2My40MDZ6TTEwLjkzNyA5My43MXYtMy40MDlMNC4yIDg1LjY1OXYzLjQxek00LjIwMSA5Mi4yNzh2My40MWw1Ljk0NSA0LjA5NmEzLjI0MSAzLjI0MSAwIDAgMCAuNzktMi4xMjV2LS43MzlsLTYuNzM1LTQuNjQyWiIvPjwvZz48L3N2Zz4=",alt:"loader-lightbulb"}),paragraphs:[{label:(0,j.__)("#FunWooFact: ","woocommerce"),text:(0,j.__)("Did you know that Woo powers almost 4 million stores worldwide? You’re in good company.","woocommerce")}]},V={title:(0,j.__)("Woo! Let’s get your features ready","woocommerce"),image:(0,S.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMTYiIGhlaWdodD0iMTQwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTAgMGgyMTZ2MTQwSDB6Ii8+PHBhdGggZmlsbD0iI0JFQTBGMiIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNNjQuOTIgOTkuMTI3SD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NzkgNy42NjQgMCAzLjU3IDIuNDkgNS43MyA0LjU4MyA3LjAwNmwtNS42MjggMTMuMDJoMTcuNjc1bC01LjYyOS0xMy4wMmgtLjAwNFoiLz48L2c+PC9zdmc+",alt:"loader-developng"}),paragraphs:[{label:(0,j.__)("#FunWooFact: ","woocommerce"),text:(0,j.__)("Did you know that Woo was founded by two South Africans and a Norwegian? Here are three alternative ways to say “store” in those countries – Winkel, ivenkile, and butikk.","woocommerce")}]},H={title:(0,j.__)("Opening the doors","woocommerce"),image:(0,S.jsx)("img",{src:W,alt:"loader-opening-the-doors"}),paragraphs:[{label:(0,j.__)("#FunWooFact: ","woocommerce"),text:(0,j.__)("Our favorite color is purple ","woocommerce"),element:(0,S.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1Ljk0ODkgNS4yNTg4MkMxNS45NDg5IDIuODM2NiAxMy45ODUzIDAuODczMDQ3IDExLjU2MzYgMC44NzMwNDdDMTAuMDkzMyAwLjg3MzA0NyA4Ljc5NjAxIDEuNTk4ODIgOC4wMDAwMSAyLjcwODE2QzcuMjA0MDEgMS41OTg4MiA1LjkwNjY3IDAuODczMDQ3IDQuNDM2ODkgMC44NzMwNDdDMi4wMTQ2NyAwLjg3MzA0NyAwLjA1MTExNjkgMi44MzYxNiAwLjA1MTExNjkgNS4yNTg4MkMwLjA1MTExNjkgNS42MDE5NCAwLjA5NDY3MjUgNS45MzQzOCAwLjE2OTMzOSA2LjI1NDgyQzAuNzc4MjI4IDEwLjAzODQgNC45ODQ4OSAxNC4wMjk5IDguMDAwMDEgMTUuMTI1OUMxMS4wMTQ3IDE0LjAyOTkgMTUuMjIxOCAxMC4wMzg0IDE1LjgyOTggNi4yNTUyN0MxNS45MDUzIDUuOTM0ODIgMTUuOTQ4OSA1LjYwMjM4IDE1Ljk0ODkgNS4yNTg4MloiIGZpbGw9IiNBQThFRDYiLz4KPC9zdmc+Cg==",alt:"loader-hearticon",className:"loader-hearticon"})}]},X=({context:e})=>{const o=(e=>{switch(e){case"plugins":return[V,F,J];case"skippedGuidedSetup":return[J,H];default:return[J]}})(e.loader.useStages??"default")[e.loader.stageIndex??0];return(0,S.jsx)(Y.Loader,{className:e.loader.className,children:(0,S.jsxs)(Y.Loader.Layout,{children:[(0,S.jsx)(Y.Loader.Illustration,{children:o.image}),(0,S.jsx)(Y.Loader.Title,{children:o.title}),(0,S.jsx)(Y.Loader.ProgressBar,{progress:e.loader?.progress??0}),(0,S.jsx)(Y.Loader.Sequence,{interval:3e3,children:o.paragraphs.map((e,o)=>(0,S.jsxs)(Y.Loader.Subtext,{children:[(0,S.jsx)("b",{children:e?.label}),e?.text,e?.element]},o))})]})})};var q=t(29491),K=t(4462);const $=({plugin:{is_activated:e=!1,image_url:o,key:t,label:n,description:i,learn_more_link:r},onChange:s=()=>{},disabled:a=!1,checked:l=!1,children:u})=>{let g=null;const p=t.replace(":alt","");c.Children.forEach(u,e=>{(0,c.isValidElement)(e)&&e.type===$.LearnMoreLink&&(g=(0,c.cloneElement)(e,{learnMoreLink:r}))});const M=(0,c.useMemo)(()=>{const e=document.createElement("div");return e.innerHTML=i,e.textContent||""},[i]);return(0,S.jsxs)("label",{className:(0,w.A)("woocommerce-profiler-plugins-plugin-card",{"is-installed":e,disabled:a}),"data-slug":p,htmlFor:`${t}-checkbox`,children:[!e&&(0,S.jsx)(L.CheckboxControl,{__nextHasNoMarginBottom:!0,id:`${t}-checkbox`,className:"woocommerce-profiler__checkbox",disabled:a,checked:l,onChange:e=>{a||s(e)}}),(0,S.jsxs)("div",{className:"woocommerce-profiler-plugins-plugin-card-main",children:[o?(0,S.jsx)("img",{className:"woocommerce-profiler-plugins-plugin-card-logo",src:o,alt:t}):null,(0,S.jsxs)("div",{className:"woocommerce-profiler-plugins-plugin-card-content",children:[(0,S.jsxs)("div",{className:(0,w.A)("woocommerce-profiler-plugins-plugin-card-text-header",{installed:e}),children:[(0,S.jsx)("h3",{className:"woocommerce-profiler-plugins-plugin-card-title",children:n}),e&&(0,S.jsx)("span",{children:(0,j.__)("Installed","woocommerce")})]}),(0,S.jsxs)("div",{className:"woocommerce-profiler-plugins-plugin-card-text",children:[(0,S.jsx)("p",{dangerouslySetInnerHTML:(0,K.A)(i),title:M}),g]})]})]})]})};$.LearnMoreLink=({learnMoreLink:e,onClick:o})=>(0,S.jsx)(D.Link,{onClick:e=>{"function"==typeof o&&o(e)},href:e??"",target:"_blank",type:"external",children:(0,j.__)("Learn More","woocommerce")});var ee=t(90212);const oe=({pluginsInstallationPermissionsFailure:e,pluginsInstallationErrors:o,pluginsSlugToName:t={},onClick:n})=>{let i;switch(!0){case e:case o?.some(e=>403===e.errorDetails?.data?.data?.status):i=(0,j.__)("You do not have permissions to manage plugins. Please contact your site administrator.","woocommerce");break;default:i=(0,j.__)("Oops! We encountered a problem while installing %s. {{link}}Please try again{{/link}}.","woocommerce")}const r=[...new Set((o||[]).map(e=>t[e.plugin]||e.plugin))];return(0,S.jsx)("p",{className:"plugin-error",children:(0,T.A)({mixedString:(0,j.sprintf)(i,ie(r).map(re).join("")),components:{span:(0,S.jsx)("span",{}),link:(0,S.jsx)(L.Button,{variant:"link",onClick:n})}})})},te=({selectedPlugins:e})=>{const o=e.filter(e=>["jetpack","woocommerce-services:tax","woocommerce-shipping","woocommerce-tax","woocommerce-payments"].includes(e.key));return o.length?(0,S.jsx)("p",{className:"woocommerce-profiler-plugins-jetpack-agreement",children:(0,T.A)({mixedString:(0,j.sprintf)((0,j._n)("By installing %s plugin for free you agree to our {{link}}Terms of Service{{/link}}.","By installing %s plugins for free you agree to our {{link}}Terms of Service{{/link}}.",o.length,"woocommerce"),ie(o.map(e=>e.name)).map(re).join("")),components:{span:(0,S.jsx)("span",{}),link:(0,S.jsx)(D.Link,{href:"https://wordpress.com/tos/",target:"_blank",type:"external"})}})}):null},ne=((0,ee.Qk)("locale")?.siteLocale||"en_US").replaceAll("_","-"),ie=(e,o=ne)=>{try{return new Intl.ListFormat(o,{style:"long",type:"conjunction"}).formatToParts(e)}catch(o){return new Intl.ListFormat("en-US",{style:"long",type:"conjunction"}).formatToParts(e)}},re=e=>"element"===e.type?"{{span}}"+e.value+"{{/span}}":e.value;var se=t(76071),ae=t(88297);const le=(0,s.Op)({id:"plugin-installer",initial:"installing",types:{},context:({input:e})=>({selectedPlugins:e?.selectedPlugins||[],pluginsAvailable:e?.pluginsAvailable||[],pluginsInstallationQueue:[],installedPlugins:[],startTime:0,installationDuration:0,errors:[]}),states:{installing:{initial:"installer",entry:["assignPluginsInstallationQueue","assignStartTime"],after:{INSTALLATION_TIMEOUT:"timedOut"},states:{installer:{initial:"installing",states:{installing:{invoke:{systemId:"installPlugin",src:"installPlugin",input:({context:e})=>e,onDone:{actions:["assignInstallationSuccessDetails"],target:"removeFromQueue"},onError:{actions:"assignInstallationErrorDetails",target:"removeFromQueue"}}},removeFromQueue:{entry:["removePluginFromQueue","updateParentWithPluginProgress"],always:[{target:"installing",guard:"hasPluginsToInstall"},{target:"#installation-finished"}]}}}}},finished:{id:"installation-finished",entry:["assignInstallationDuration"],always:[{target:"reportErrors",guard:"hasErrors"},{target:"reportSuccess"}]},timedOut:{entry:["assignInstallationDuration"],invoke:{systemId:"queueRemainingPluginsAsync",src:"queueRemainingPluginsAsync",input:({context:e})=>({pluginsInstallationQueue:e.pluginsInstallationQueue}),onDone:{target:"reportSuccess"}}},reportErrors:{entry:"updateParentWithInstallationErrors"},reportSuccess:{entry:"updateParentWithInstallationSuccess"}}},{delays:{INSTALLATION_TIMEOUT:3e4},actions:{assignPluginsInstallationQueue:(0,i.a)({pluginsInstallationQueue:({context:e})=>e.selectedPlugins.slice().sort((o,t)=>{const n=e.pluginsAvailable.find(e=>e.key===o),i=e.pluginsAvailable.find(e=>e.key===t);return(n?.install_priority??99)-(i?.install_priority??99)})}),assignStartTime:(0,i.a)({startTime:()=>window.performance.now()}),assignInstallationDuration:(0,i.a)({installationDuration:({context:e})=>window.performance.now()-e.startTime}),assignInstallationSuccessDetails:(0,i.a)({installedPlugins:({context:e,event:o})=>{const t=e.pluginsInstallationQueue[0];return[...e.installedPlugins,{plugin:t,installTime:o.output.data.install_time[t]||0}]}}),assignInstallationErrorDetails:(0,i.a)({errors:({context:e,event:o})=>[...e.errors,{plugin:e.pluginsInstallationQueue[0],error:o.error.message,errorDetails:o.error}]}),removePluginFromQueue:(0,i.a)({pluginsInstallationQueue:({context:e})=>e.pluginsInstallationQueue.slice(1)}),updateParentWithPluginProgress:(0,a.b)(({context:e})=>{const o=e.selectedPlugins.length-e.pluginsInstallationQueue.length,t=e.selectedPlugins.length,n=Math.round(o/t*100),i=window.performance.now()-e.startTime,r=Math.round(i/3e4*100);return{type:"PLUGIN_INSTALLED_AND_ACTIVATED",payload:{progressPercentage:Math.max(n,r)}}}),updateParentWithInstallationErrors:(0,a.b)(({context:e})=>({type:"PLUGINS_INSTALLATION_COMPLETED_WITH_ERRORS",payload:{errors:e.errors}})),updateParentWithInstallationSuccess:(0,a.b)(({context:e})=>({type:"PLUGINS_INSTALLATION_COMPLETED",payload:{installationCompletedResult:{installedPlugins:e.installedPlugins,totalTime:e.installationDuration}}}))},guards:{hasErrors:({context:e})=>e.errors.length>0,hasPluginsToInstall:({context:e})=>e.pluginsInstallationQueue.length>0},actors:{installPlugin:(0,n.Sx)(async({input:{pluginsInstallationQueue:e}})=>(0,u.dispatch)(M.pluginsStore).installAndActivatePlugins([(0,ae.v)(e[0])],"core-profiler")),queueRemainingPluginsAsync:(0,n.Sx)(async({input:{pluginsInstallationQueue:e}})=>(0,u.dispatch)(M.onboardingStore).installAndActivatePluginsAsync(e.map(ae.v),"core-profiler"))}}),ce=()=>(0,S.jsx)(S.Fragment,{children:(0,S.jsx)("div",{className:"woocommerce-profile-wizard__spinner","data-testid":"core-profiler-loading-screen",children:(0,S.jsx)(L.Spinner,{})})});var ue=t(47721);const ge=new Set(["woocommerce-shipping","woocommerce-shipstation-integration","packlink-pro-shipping"]),pe=e=>ge.has((0,ae.v)(e)),Me=e=>{const o=e.pluginsAvailable.filter(e=>pe(e.key)).map(e=>(0,ae.v)(e.key)).join(",");return{context:"core-profiler",country:(0,ue.gI)(e.businessInfo.location)??"",plugins:o}};let me=!1;const de={recordTracksStepViewed:(e,o)=>{(0,N.recordEvent)("coreprofiler_step_view",{step:o.step,wc_version:(0,d.getSetting)("wcVersion")})},recordTracksStepSkipped:(e,o)=>{(0,N.recordEvent)(`coreprofiler_${o.step}_skip`)},recordTracksIntroCompleted:()=>{(0,N.recordEvent)("coreprofiler_step_complete",{step:"intro_opt_in",wc_version:(0,d.getSetting)("wcVersion")})},recordSkipGuidedSetup:(e,{optInDataSharing:o})=>{o&&(0,N.recordEvent)("coreprofiler_skip_guided_setup",{wc_version:(0,d.getSetting)("wcVersion")})},recordTracksUserProfileCompleted:({event:e})=>{(0,N.recordEvent)("coreprofiler_step_complete",{step:"user_profile",wc_version:(0,d.getSetting)("wcVersion")}),(0,N.recordEvent)("coreprofiler_user_profile",{business_choice:e.payload.userProfile.businessChoice,selling_online_answer:e.payload.userProfile.sellingOnlineAnswer,selling_platforms:e.payload.userProfile.sellingPlatforms?e.payload.userProfile.sellingPlatforms.join():null})},recordTracksSkipBusinessLocationCompleted:()=>{(0,N.recordEvent)("coreprofiler_step_complete",{step:"skip_business_location",wc_version:(0,d.getSetting)("wcVersion")})},recordTracksBusinessInfoCompleted:({context:e,event:o})=>{(0,N.recordEvent)("coreprofiler_step_complete",{step:"business_info",wc_version:(0,d.getSetting)("wcVersion")}),(0,N.recordEvent)("coreprofiler_business_info",{business_name_filled:-1===Z.findIndex(e=>e===o.payload.storeName),industry:o.payload.industry,store_location_previously_set:e.onboardingProfile.is_store_country_set||!1,geolocation_success:void 0!==e.geolocatedLocation,geolocation_overruled:o.payload.geolocationOverruled})},recordTracksPluginsLearnMoreLinkClicked:({event:e},o)=>{(0,N.recordEvent)(`coreprofiler_${o.step}_learn_more_link_clicked`,{plugin:e.payload.plugin,link:e.payload.learnMoreLink})},recordFailedPluginInstallations:({context:e,event:o})=>{const t=o.payload.errors.map(e=>(0,se.CZ)(e.plugin));(0,N.recordEvent)("coreprofiler_store_extensions_installed_and_activated",{success:!1,failed_extensions:t});const n=Me(e);o.payload.errors.forEach(e=>{(0,N.recordEvent)("coreprofiler_store_extension_installed_and_activated",{success:!1,extension:(0,se.CZ)(e.plugin),error_message:e.error}),pe(e.plugin)&&(0,N.recordEvent)("shipping_partner_install",{...n,selected_plugin:(0,ae.v)(e.plugin),success:!1})})},recordTracksPluginsInstallationNoPermissionError:()=>(0,N.recordEvent)("coreprofiler_store_extensions_no_permission_error"),recordSuccessfulPluginInstallation:({context:e,event:o})=>{const t=o.payload.installationCompletedResult,n={success:!0,installed_extensions:t.installedPlugins.map(e=>(0,se.CZ)(e.plugin)),total_time:(0,se.D8)(t.totalTime)},i=Me(e);for(const e of t.installedPlugins){const o=(0,se.CZ)(e.plugin),t=(0,se.D8)(e.installTime);if(n["install_time_"+o]=t,(0,N.recordEvent)("coreprofiler_store_extension_installed_and_activated",{success:!0,extension:o,install_time:t}),pe(e.plugin)){const o=(0,ae.v)(e.plugin);(0,N.recordEvent)("shipping_partner_install",{...i,selected_plugin:o,success:!0}),(0,N.recordEvent)("shipping_partner_activate",{...i,selected_plugin:o,success:!0})}}(0,N.recordEvent)("coreprofiler_store_extensions_installed_and_activated",n)},recordTracksPluginsInstallationRequest:({context:e,event:o})=>{(0,N.recordEvent)("coreprofiler_store_extensions_continue",{shown:o.payload.pluginsShown||[],selected:o.payload.pluginsSelected||[],unselected:o.payload.pluginsUnselected||[]});const t=Me(e);(o.payload.pluginsSelected||[]).filter(e=>ge.has((0,ae.v)(e))).forEach(e=>{(0,N.recordEvent)("shipping_partner_click",{...t,selected_plugin:(0,ae.v)(e)})})},recordTracksIsEmailChanged:({context:e,event:o})=>{let t,n;e.onboardingProfile.store_email?(t="onboarding_profile_store_email",n=o.payload.storeEmailAddress!==e.onboardingProfile.store_email):e.currentUserEmail?(t="current_user_email",n=o.payload.storeEmailAddress!==e.currentUserEmail):(t="was_empty",n=o.payload.storeEmailAddress?.length>0),(0,N.recordEvent)("coreprofiler_email_marketing",{opt_in:o.payload.isOptInMarketing,email_field_prefilled_source:t,email_field_modified:n})},recordShippingPartnerImpression:({context:e})=>{if(me)return;const o=Me(e);o.plugins.length>0&&(me=!0,(0,N.recordEvent)("shipping_partner_impression",o))}};var Ne=t(94156),Ie=t(7754);const ye=(0,n.Sx)(async()=>(0,u.resolveSelect)(M.experimentalSettingOptionsStore).getSettingValue("advanced","woocommerce_allow_tracking")),je=(0,i.a)({optInDataSharing:({event:e})=>"no"!==e.output}),Le=(0,n.Sx)(()=>{const e=(0,d.getSetting)("siteTitle","");return Promise.resolve("string"==typeof e?e:"")}),Te=(0,i.a)({businessInfo:({context:e,event:o})=>({...e.businessInfo,storeName:Z.includes(o.output)?void 0:o.output})}),De=(0,n.Sx)(async()=>(0,u.resolveSelect)(M.experimentalSettingOptionsStore).getSettingValue("general","woocommerce_default_country")),we=(0,i.a)({businessInfo:({context:e,event:o})=>({...e.businessInfo,location:o.output})}),Se=(0,n.Sx)(async()=>(0,u.resolveSelect)(M.COUNTRIES_STORE_NAME).getCountries()),_e=(0,i.a)({countries:({event:e})=>e.output.reduce((e,o)=>{if(!o.states.length)return e.push({key:o.code,label:(0,U.decodeEntities)(o.name)}),e;const t=o.states.map(e=>({key:o.code+":"+e.code,label:(0,U.decodeEntities)(o.name)+" — "+(0,U.decodeEntities)(e.name)}));return e.push(...t),e},[])}),xe=(0,n.Sx)(async()=>(0,u.resolveSelect)(M.onboardingStore).getProfileItems()),Ae=(0,i.a)({userProfile:({event:e})=>{if(!e.output)return{};const{business_choice:o,selling_online_answer:t,selling_platforms:n,...i}=e.output;return{...i,businessChoice:o,sellingOnlineAnswer:t,sellingPlatforms:n}}}),he=(0,n.Sx)(async()=>(0,u.resolveSelect)(M.onboardingStore).getCoreProfilerCompletedSteps()),Ce=(0,i.a)({coreProfilerCompletedSteps:({event:e})=>e.output}),Ee=(0,n.Sx)(async()=>{const e=await(0,u.resolveSelect)(M.userStore).getCurrentUser();return e?.email}),ke=(0,n.Sx)(async()=>await(0,u.resolveSelect)(M.userStore).getCurrentUser()),Oe=(0,i.a)({currentUser:({event:e})=>{if(e.output)return e.output}}),fe=(0,i.a)({currentUserEmail:({event:e})=>{if(e.output&&e.output.length>0&&"wordpress@example.com"!==e.output)return e.output}}),be=(0,i.a)({onboardingProfile:({event:e,context:o})=>e.output&&"object"==typeof e.output?e.output:o.onboardingProfile}),ze=(0,n.Sx)(async({input:e})=>{if(e.optInDataSharing)return(0,u.resolveSelect)(M.COUNTRIES_STORE_NAME).geolocate()}),ve=(0,i.a)({geolocatedLocation:({event:e})=>e.output}),Pe=(0,r.r)({type:"REDIRECT_TO_WOO_HOME"}),Ue=(0,n.Sx)(async()=>{window.wcAdminFeatures["launch-your-store"]&&await(0,u.dispatch)(M.onboardingStore).coreProfilerCompleted(),window.location.href=(0,p.getNewPath)({},"/",{})}),Qe=(e,o)=>{e!==o&&(0,N.recordEvent)("woocommerce_allow_tracking_toggled",{previous_value:e,new_value:o,context:"core-profiler"})},Ye=(0,n.Sx)(async({input:e})=>{const o="yes"===await(0,u.resolveSelect)(M.experimentalSettingOptionsStore).getSettingValue("advanced","woocommerce_allow_tracking")?"yes":"no";await new Promise(t=>{setTimeout(t,500),e.optInDataSharing&&"function"==typeof window.wcTracks.enable?window.wcTracks.enable(()=>{(0,m.initializeExPlat)(),(0,y.y)(),Qe(o,"yes"),t()}):(e.optInDataSharing||(Qe(o,"no"),window.wcTracks.isEnabled=!1),t())});const t=e.optInDataSharing?"yes":"no";(0,u.dispatch)(M.experimentalSettingOptionsStore).saveSetting("advanced","woocommerce_allow_tracking",t)}),Ge=(0,n.Sx)(async({input:e})=>{const{businessChoice:o,sellingOnlineAnswer:t,sellingPlatforms:n}=e.userProfile;return(0,u.dispatch)(M.onboardingStore).updateProfileItems({...o&&{business_choice:o},...t&&{selling_online_answer:t},...n&&{selling_platforms:n}})}),Ze=(0,i.a)({businessInfo:({event:e,context:o})=>({...o.businessInfo,location:e.payload.storeLocation})}),Re=(0,i.a)({userProfile:({event:e})=>e.payload.userProfile}),Be=(0,n.Sx)(async({input:e})=>{const{updateProfileItems:o,updateStoreCurrencyAndMeasurementUnits:t}=(0,u.dispatch)(M.onboardingStore);return Promise.all([t((0,ue.gI)(e.payload.storeLocation)),o({is_store_country_set:!0,is_agree_marketing:e.payload.isOptInMarketing,...e.payload.industry&&{industry:[e.payload.industry]},...e.payload.storeEmailAddress!==e.context.onboardingProfile.store_email&&{store_email:e.payload.storeEmailAddress}}),(0,u.dispatch)(g.store).saveEntityRecord("root","site",{title:e.payload.storeName}),(0,u.dispatch)(M.experimentalSettingOptionsStore).saveSetting("general","woocommerce_default_country",e.payload.storeLocation)])}),We=(0,i.a)({optInDataSharing:({event:e})=>e.payload.optInDataSharing}),Je=(0,i.a)({isJetpackConnectedRef:({spawn:e})=>e((0,n.Sx)(async()=>(0,u.resolveSelect)(M.pluginsStore).isJetpackConnected()))}),Fe=(0,i.a)({jetpackAuthUrlRef:({spawn:e})=>e((0,n.Sx)(async()=>(0,u.resolveSelect)(M.onboardingStore).getJetpackAuthUrl({redirectUrl:(0,d.getAdminLink)("admin.php?page=wc-admin"),from:"woocommerce-core-profiler"})))}),Ve=(0,n.Sx)(async()=>(0,u.resolveSelect)(M.onboardingStore).getFreeExtensions()),He=(0,n.Sx)(async()=>{(0,u.dispatch)(M.onboardingStore).invalidateResolutionForStoreSelector("getFreeExtensions");const e=await(0,u.resolveSelect)(M.onboardingStore).getFreeExtensions();return e.find(e=>"obw/core-profiler"===e.key)?.plugins||[]}),Xe=(0,n.SP)(({sendBack:e})=>{const o=()=>{e({type:"EXTERNAL_URL_UPDATE"})};return window.addEventListener("popstate",o),()=>{window.removeEventListener("popstate",o)}}),qe=(0,i.a)({pluginsAvailable:({event:e})=>e.output}),Ke=(0,n.Sx)(async({input:e})=>{(0,u.dispatch)(M.onboardingStore).updateCoreProfilerStep(e.step)}),$e=(0,i.a)({pluginsSelected:({event:e})=>e.payload.pluginsSelected}),eo=(0,i.a)({loader:({event:e})=>{(0,s.DT)(e,"PLUGIN_INSTALLED_AND_ACTIVATED");const o=e.payload.progressPercentage;let t=0;return o>60?t=2:o>30&&(t=1),{useStages:"plugins",progress:o,stageIndex:t}}}),oo=(0,n.Sx)(async({input:e})=>{const{updateProfileItems:o,updateStoreCurrencyAndMeasurementUnits:t}=(0,u.dispatch)(M.onboardingStore),n=o({skipped:!0}),i=(r=e.businessInfo.location,(0,u.dispatch)(M.experimentalSettingOptionsStore).saveSetting("general","woocommerce_default_country",r));var r;const s=t((0,ue.gI)(e.businessInfo.location));return Promise.all([n,i,s])}),to=(0,n.Sx)(async()=>(0,u.resolveSelect)(M.pluginsStore).isJetpackConnected()),no={preFetchIsJetpackConnected:Je,preFetchJetpackAuthUrl:Fe},io={...no,...de,handlePlugins:qe,updateQueryStep:(e,o)=>{const{step:t}=(0,p.getQuery)();o.step!==t&&(0,p.updateQueryString)({step:o.step})},handleTrackingOption:je,handleGeolocation:ve,handleStoreNameOption:Te,handleStoreCountryOption:we,handleCoreProfilerCompletedSteps:Ce,assignOptInDataSharing:We,assignStoreLocation:Ze,assignPluginsSelected:$e,assignUserProfile:Re,handleCountries:_e,handleOnboardingProfileItems:Ae,assignOnboardingProfile:be,assignCurrentUserEmail:fe,assignCurrentUser:Oe,redirectToWooHome:Pe,redirectToJetpackAuthPage:({event:e,context:o})=>{const t=new URL(e.output.url);var n,i;t.searchParams.set("installed_ext_success","1"),t.searchParams.set("plugin_name",(n=o.pluginsSelected,i=o.pluginsAvailable,n.filter(e=>i.find(o=>o.key===e)?.requires_jpc).join(","))),e.output.color_scheme&&t.searchParams.set("color_scheme",e.output.color_scheme),window.location.href=t.toString()},updateLoaderProgressWithPluginInstall:eo,reloadPage:()=>{window.location.reload()}},ro={preFetchGetPlugins:Ve,getAllowTrackingOption:ye,getStoreNameOption:Le,getStoreCountryOption:De,getCountries:Se,getGeolocation:ze,getOnboardingProfileItems:xe,getCurrentUserEmail:Ee,getCurrentUser:ke,getPlugins:He,getJetpackIsConnected:to,browserPopstateHandler:Xe,updateBusinessInfo:Be,updateTrackingOption:Ye,updateOnboardingProfileOption:Ge,updateProfilerCompletedSteps:Ke,getCoreProfilerCompletedSteps:he,skipFlowUpdateBusinessLocation:oo,pluginInstallerMachine:le,exitToWooHome:Ue},so=(0,s.Op)({id:"coreProfiler",initial:"navigate",types:{},invoke:{id:"browserPopstateHandler",src:"browserPopstateHandler"},on:{EXTERNAL_URL_UPDATE:{target:"#navigate"},REDIRECT_TO_WOO_HOME:{target:"#redirectingToWooHome"}},context:{optInDataSharing:!1,userProfile:{},geolocatedLocation:void 0,businessInfo:{storeName:void 0,industry:void 0,storeCountryPreviouslySet:!1,location:"US:CA"},countries:[],pluginsAvailable:[],pluginsInstallationErrors:[],pluginsSelected:[],loader:{},onboardingProfile:{},jetpackAuthUrl:void 0,currentUserEmail:void 0,currentUser:void 0,coreProfilerCompletedSteps:{}},states:{navigate:{id:"navigate",always:[{target:"#introOptIn",guard:{type:"hasStepInUrl",params:{step:"intro-opt-in"}}},{target:"#userProfile",guard:{type:"hasStepInUrl",params:{step:"user-profile"}}},{target:"#businessInfo",guard:{type:"hasStepInUrl",params:{step:"business-info"}}},{target:"#plugins",guard:{type:"hasStepInUrl",params:{step:"plugins"}}},{target:"#skipGuidedSetup",guard:{type:"hasStepInUrl",params:{step:"skip-guided-setup"}}},{target:"introOptIn"}]},introOptIn:{id:"introOptIn",initial:"preIntroOptIn",states:{preIntroOptIn:{entry:[(0,r.b)("preFetchGetPlugins"),(0,r.b)("getCountries"),(0,r.b)("getCoreProfilerCompletedSteps"),(0,r.b)("getStoreCountryOption"),(0,r.b)("getStoreNameOption")],type:"parallel",states:{trackingOption:{initial:"fetching",states:{fetching:{invoke:{systemId:"getAllowTrackingOption",src:"getAllowTrackingOption",onDone:[{actions:["handleTrackingOption"],target:"done"}],onError:{target:"done"}}},done:{type:"final"}}},onboardingProfileOption:{initial:"fetching",states:{fetching:{invoke:{systemId:"getOnboardingProfileItems",src:"getOnboardingProfileItems",onDone:[{actions:["handleOnboardingProfileItems"],target:"done"}],onError:{target:"done"}}},done:{type:"final"}}},coreProfilerCompletedSteps:{initial:"fetching",states:{fetching:{invoke:{src:"getCoreProfilerCompletedSteps",onDone:{actions:["handleCoreProfilerCompletedSteps"],target:"done"},onError:{target:"done"}}},done:{type:"final"}}}},onDone:{target:"introOptIn"},meta:{progress:0}},introOptIn:{on:{INTRO_COMPLETED:{target:"postIntroOptIn",actions:["assignOptInDataSharing",(0,r.b)("updateProfilerCompletedSteps",{input:{step:"intro-opt-in"}})]},INTRO_SKIPPED:{target:"#skipGuidedSetup",actions:["assignOptInDataSharing",(0,r.b)("updateProfilerCompletedSteps",{input:{step:"intro-opt-in"}}),(0,r.b)("updateTrackingOption",{input:({event:e})=>((0,s.DT)(e,"INTRO_SKIPPED"),e.payload)})]}},meta:{progress:20,component:({sendEvent:e,navigationProgress:o,context:t})=>{const n=t.userProfile?.completed||t.userProfile?.skipped||t.coreProfilerCompletedSteps?.["intro-opt-in"],i=n&&t.optInDataSharing||!n,[r,s]=(0,c.useState)(i);return(0,S.jsxs)("div",{className:"woocommerce-profiler-intro-opt-in","data-testid":"core-profiler-intro-opt-in-screen",children:[(0,S.jsx)(h,{percentage:o}),(0,S.jsxs)("div",{className:"woocommerce-profiler-page__content woocommerce-profiler-intro-opt-in__content",children:[(0,S.jsx)("div",{className:"woocommerce-profiler-welcome-image"}),(0,S.jsx)(_,{title:(0,j.__)("Welcome to Woo!","woocommerce"),subTitle:(0,T.A)({mixedString:(0,j.__)("It’s great to have you here with us! We’ll be guiding you through the setup process – first, answer a few questions to tailor your experience.","woocommerce"),components:{br:(0,S.jsx)("br",{})}})}),(0,S.jsx)(L.Button,{className:"woocommerce-profiler-setup-store__button",variant:"primary",onClick:()=>e({type:"INTRO_COMPLETED",payload:{optInDataSharing:r}}),children:(0,j.__)("Set up my store","woocommerce")}),(0,S.jsx)(L.Button,{className:"woocommerce-profiler-setup-store__button",variant:"tertiary",onClick:()=>e({type:"INTRO_SKIPPED",payload:{optInDataSharing:r}}),children:(0,j.__)("Skip guided setup","woocommerce")}),(0,S.jsx)("div",{className:"woocommerce-profiler-intro-opt-in__footer",children:(0,S.jsx)(L.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"core-profiler__checkbox",label:(0,T.A)({mixedString:(0,j.__)("I agree to share my data to tailor my store setup experience, get more relevant content, and help make WooCommerce better for everyone. You can opt out at any time in WooCommerce settings. {{link}}Learn more about usage tracking.{{/link}}","woocommerce"),components:{link:(0,S.jsx)(D.Link,{href:"https://woocommerce.com/usage-tracking?utm_medium=product",target:"_blank",type:"external"})}}),checked:r,onChange:s})})]})]})}}},postIntroOptIn:{invoke:{src:"updateTrackingOption",input:({context:e})=>e,onDone:{actions:["recordTracksIntroCompleted"],target:"#userProfile"},onError:{actions:["recordTracksIntroCompleted"],target:"#userProfile"}}}}},userProfile:{id:"userProfile",initial:"preUserProfile",states:{preUserProfile:{invoke:{src:"getOnboardingProfileItems",onDone:[{actions:["handleOnboardingProfileItems","assignOnboardingProfile"],target:"userProfile"}],onError:{target:"userProfile"}}},userProfile:{meta:{progress:40,component:({sendEvent:e,navigationProgress:o,context:t})=>{const[n,i]=(0,c.useState)(t.userProfile.businessChoice||"im_just_starting_my_business"),[r,s]=(0,c.useState)(t.userProfile.sellingOnlineAnswer||null),[a,l]=(0,c.useState)(t.userProfile.sellingPlatforms||null),[u,g]=(0,c.useState)(!1);return(0,S.jsxs)("div",{className:"woocommerce-profiler-user-profile","data-testid":"core-profiler-user-profile",children:[(0,S.jsx)(h,{percentage:o,skipText:(0,j.__)("Skip this step","woocommerce"),onSkip:()=>e({type:"USER_PROFILE_SKIPPED",payload:{userProfile:{skipped:!0}}})}),(0,S.jsxs)("div",{className:(0,w.A)("woocommerce-profiler-page__content woocommerce-profiler-user-profile__content",{"is-platform-selector-open":u}),children:[(0,S.jsx)(_,{className:"woocommerce-profiler__stepper-heading",title:(0,j.__)("Which one of these best describes you?","woocommerce"),subTitle:(0,j.__)("Let us know where you are in your commerce journey so that we can tailor your Woo experience for you.","woocommerce")}),(0,S.jsx)("form",{className:"woocommerce-user-profile-choices",children:(0,S.jsxs)("fieldset",{children:[(0,S.jsx)("legend",{className:"screen-reader-text",children:(0,j.__)("Which one of these best describes you?","woocommerce")}),b.map(({title:e,value:o})=>(0,S.jsx)(k,{name:"user-profile-choice",title:e,selected:n===o,value:o,onChange:e=>{i(e)},subOptionsComponent:"im_already_selling"===o?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:"woocommerce-profiler-selling-online-question",children:[(0,S.jsx)("p",{className:"woocommerce-profiler-question-label",children:(0,j.__)("Are you selling online?","woocommerce")}),(0,S.jsx)(D.SelectControl,{className:"woocommerce-profiler-select-control__selling-online-question",instanceId:1,label:(0,j.__)("Select an option","woocommerce"),autoComplete:"new-password",options:z,excludeSelectedOptions:!1,help:(0,S.jsx)(C.A,{icon:E.A}),onChange:e=>{s(e)},multiple:!1,selected:String(r)})]}),r&&["yes_im_selling_online","im_selling_both_online_and_offline"].includes(r)&&(0,S.jsxs)("div",{className:"woocommerce-profiler-selling-platform",children:[(0,S.jsx)("p",{className:"woocommerce-profiler-question-label",children:(0,j.__)("Which platform(s) are you currently using?","woocommerce")}),(0,S.jsx)(f,{options:v,selectedOptions:v.filter(e=>a?.includes(e.value)),onSelect:e=>{l(e.map(e=>e.value))},onOpenClose:g})]})]}):null},o))]})}),(0,S.jsx)("div",{className:"woocommerce-profiler-button-container",children:(0,S.jsx)(L.Button,{className:"woocommerce-profiler-button",variant:"primary",onClick:()=>{e({type:"USER_PROFILE_COMPLETED",payload:{userProfile:{businessChoice:n,sellingOnlineAnswer:"im_already_selling"===n?r:null,sellingPlatforms:"im_already_selling"===n?a:null}}})},children:(0,j.__)("Continue","woocommerce")})})]})]})}},entry:[{type:"recordTracksStepViewed",params:{step:"user_profile"}},{type:"updateQueryStep",params:{step:"user-profile"}},(0,r.b)("getGeolocation",{input:({context:e})=>e})],on:{USER_PROFILE_COMPLETED:{target:"postUserProfile",actions:["assignUserProfile","recordTracksUserProfileCompleted",(0,r.b)("updateProfilerCompletedSteps",{input:{step:"user-profile"}})]},USER_PROFILE_SKIPPED:{target:"postUserProfile",actions:["assignUserProfile",(0,r.b)("updateProfilerCompletedSteps",{input:{step:"user-profile"}}),{type:"recordTracksStepSkipped",params:{step:"user_profile"}}]}}},postUserProfile:{entry:(0,r.b)("updateOnboardingProfileOption",{id:"updateOnboardingProfileOption",input:({context:e})=>e}),always:{target:"#businessInfo"}}}},businessInfo:{id:"businessInfo",initial:"preBusinessInfo",entry:[{type:"updateQueryStep",params:{step:"business-info"}}],states:{preBusinessInfo:{type:"parallel",states:{geolocation:{initial:"checkDataOptIn",states:{checkDataOptIn:{invoke:{src:"getAllowTrackingOption",onDone:[{actions:["handleTrackingOption"],target:"fetching"}],onError:{target:"done"}}},fetching:{invoke:{input:({context:e})=>e,src:"getGeolocation",onDone:{target:"done",actions:"handleGeolocation"},onError:{target:"done"}}},done:{type:"final"}}},storeCountryOption:{initial:"fetching",states:{fetching:{invoke:{src:"getStoreCountryOption",onDone:[{actions:["handleStoreCountryOption"],target:"done"}],onError:{target:"done"}}},done:{type:"final"}}},onboardingProfileOption:{initial:"fetching",states:{fetching:{invoke:{src:"getOnboardingProfileItems",onDone:[{actions:["assignOnboardingProfile"],target:"done"}],onError:{target:"done"}}},done:{type:"final"}}},storeNameOption:{initial:"fetching",states:{fetching:{invoke:{src:"getStoreNameOption",onDone:[{actions:["handleStoreNameOption"],target:"done"}],onError:{target:"done"}}},done:{type:"final"}}},countries:{initial:"fetching",states:{fetching:{invoke:{systemId:"getCountries",src:"getCountries",onDone:{target:"done",actions:"handleCountries"}}},done:{type:"final"}}},currentUserEmail:{initial:"fetching",states:{fetching:{invoke:{src:"getCurrentUserEmail",onDone:{target:"done",actions:["assignCurrentUserEmail"]},onError:{target:"done"}}},done:{type:"final"}}}},onDone:{target:"businessInfo"}},businessInfo:{meta:{progress:60,component:({context:e,navigationProgress:o,sendEvent:t})=>{const{geolocatedLocation:n,userProfile:{businessChoice:i},businessInfo:r,countries:s,onboardingProfile:{is_store_country_set:a=!1,industry:l=[],business_choice:u="",is_agree_marketing:g=!1,store_email:p=""}={},currentUserEmail:M}=e,[m,d]=(0,c.useState)(r.storeName||""),[N,I]=(0,c.useState)({key:"",label:""});(0,c.useEffect)(()=>{if(a){const e=s.find(e=>e.key===r.location);I(e||{key:"",label:""})}},[r.location,s,a]);const[y,T]=(0,c.useState)(l?R.find(e=>e.key===l[0]):void 0),x=(0,j.__)("Select country/region","woocommerce"),A=B[i||u||"im_just_starting_my_business"],[k,O]=(0,c.useState)(!1),[f,b]=(0,c.useState)(!1),[z,v]=(0,c.useState)(p||M||""),[Y,Z]=(0,c.useState)(g||!1),[W,J]=(0,c.useState)(!1),[F,V]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(W){const e=Q.Yj().email().safeParse(z);b(Y&&!e.success),J(!1)}},[Y,W,z]),(0,S.jsxs)("div",{className:"woocommerce-profiler-business-information","data-testid":"core-profiler-business-information",children:[(0,S.jsx)(h,{percentage:o}),(0,S.jsxs)("div",{className:"woocommerce-profiler-page__content woocommerce-profiler-business-information__content",children:[(0,S.jsx)(_,{className:"woocommerce-profiler__stepper-heading",title:(0,j.__)("Tell us a bit about your store","woocommerce"),subTitle:(0,j.__)("We’ll use this information to help you set up payments, shipping, and taxes, as well as recommending the best theme for your store.","woocommerce")}),(0,S.jsxs)("form",{className:"woocommerce-profiler-business-information-form",autoComplete:"off",children:[(0,S.jsx)(L.TextControl,{__nextHasNoMarginBottom:!0,className:"woocommerce-profiler-business-info-store-name",onChange:e=>{d(e)},value:(0,U.decodeEntities)(m),label:(0,S.jsx)(S.Fragment,{children:(0,j.__)("Give your store a name","woocommerce")}),placeholder:(0,j.__)("Ex. My awesome store","woocommerce")}),(0,S.jsx)("p",{className:"woocommerce-profiler-question-subtext",children:(0,j.__)("Don’t worry — you can always change it later!","woocommerce")}),(0,S.jsx)("p",{className:"woocommerce-profiler-question-label",children:A}),(0,S.jsx)(D.SelectControl,{className:"woocommerce-profiler-select-control__industry",instanceId:1,placeholder:(0,j.__)("Select an industry","woocommerce"),label:(0,j.__)("Select an industry","woocommerce"),options:R,excludeSelectedOptions:!1,help:(0,S.jsx)(C.A,{icon:E.A}),onChange:e=>{Array.isArray(e)&&e.length&&T(e[0])},selected:y?[y]:[],showAllOnFocus:!0,isSearchable:!0}),(0,S.jsxs)("p",{className:"woocommerce-profiler-question-label",children:[(0,j.__)("Where is your store located?","woocommerce"),(0,S.jsx)("span",{className:"woocommerce-profiler-question-required",children:"*"})]}),(0,S.jsx)(G,{label:x,placeholder:x,countries:s,initialValue:N,onChange:e=>{I(e)},geolocatedLocation:n,onGeolocationOverruledChange:e=>{V(e)}}),0===s.length&&(0,S.jsx)(L.Notice,{className:"woocommerce-profiler-select-control__country-error",isDismissible:!1,status:"error",children:(0,c.createInterpolateElement)((0,j.__)("Oops! We encountered a problem while fetching the list of countries to choose from. or ","woocommerce"),{retryButton:(0,S.jsx)(L.Button,{onClick:()=>{t({type:"RETRY_PRE_BUSINESS_INFO"})},variant:"tertiary",children:(0,j.__)("Please try again","woocommerce")}),skipButton:(0,S.jsx)(L.Button,{onClick:()=>{t({type:"SKIP_BUSINESS_INFO_STEP"})},variant:"tertiary",children:(0,j.__)("Skip this step","woocommerce")})})}),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(L.TextControl,{__nextHasNoMarginBottom:!0,className:(0,w.A)("woocommerce-profiler-business-info-email-adddress",{"is-error":f}),onChange:e=>{f&&J(!0),v(e)},onBlur:()=>{J(!0)},value:(0,U.decodeEntities)(z),label:(0,S.jsxs)(S.Fragment,{children:[(0,j.__)("Your email address","woocommerce"),Y&&(0,S.jsx)("span",{className:"woocommerce-profiler-question-required",children:"*"})]}),placeholder:(0,j.__)("wordpress@example.com","woocommerce")}),f&&(0,S.jsx)(P.A,{isError:!0,text:(0,j.__)("This email is not valid.","woocommerce")}),(0,S.jsx)(L.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"core-profiler__checkbox",label:(0,j.__)("Opt-in to receive tips, discounts, and recommendations from the Woo team directly in your inbox.","woocommerce"),checked:Y,onChange:e=>{Z(e),J(!0)}})]})]}),(0,S.jsx)("div",{className:"woocommerce-profiler-button-container",children:(0,S.jsx)(L.Button,{className:"woocommerce-profiler-button",variant:"primary",disabled:!N.key||f,onClick:()=>{t({type:"BUSINESS_INFO_COMPLETED",payload:{storeName:m,industry:y?.key,storeLocation:N.key,geolocationOverruled:F||!1,isOptInMarketing:Y,storeEmailAddress:z}}),O(!0)},children:k?(0,S.jsx)(L.Spinner,{}):(0,j.__)("Continue","woocommerce")})})]})]})}},entry:[{type:"recordTracksStepViewed",params:{step:"business_info"}}],on:{BUSINESS_INFO_COMPLETED:{target:"postBusinessInfo",actions:["recordTracksBusinessInfoCompleted","recordTracksIsEmailChanged",(0,r.b)("updateProfilerCompletedSteps",{input:{step:"business-info"}})]},RETRY_PRE_BUSINESS_INFO:{actions:["reloadPage"]},SKIP_BUSINESS_INFO_STEP:{target:"#plugins",actions:[{type:"recordTracksStepSkipped",params:{step:"business_info"}},(0,r.b)("updateProfilerCompletedSteps",{input:{step:"business-info"}})]}}},postBusinessInfo:{invoke:{src:"updateBusinessInfo",input:({event:e,context:o})=>((0,s.DT)(e,"BUSINESS_INFO_COMPLETED"),{payload:e.payload,context:o}),onDone:{target:"#plugins"},onError:{target:"#plugins"}}}}},skipGuidedSetup:{id:"skipGuidedSetup",initial:"preSkipFlowBusinessLocation",entry:[{type:"updateQueryStep",params:{step:"skip-guided-setup"}}],states:{preSkipFlowBusinessLocation:{type:"parallel",onDone:{target:"skipFlowBusinessLocation"},states:{getGeolocation:{initial:"fetching",states:{fetching:{invoke:{input:({context:e})=>e,src:"getGeolocation",onDone:{target:"done",actions:"handleGeolocation"},onError:{target:"done"}}},done:{type:"final"}}},getCountries:{initial:"fetching",states:{fetching:{invoke:{src:"getCountries",onDone:[{actions:"handleCountries",target:"done"}],onError:{target:"done"}}},done:{type:"final"}}}}},skipFlowBusinessLocation:{id:"skipFlowBusinessLocation",on:{BUSINESS_LOCATION_COMPLETED:{target:"postSkipFlowBusinessLocation",actions:["assignStoreLocation","recordTracksSkipBusinessLocationCompleted",(0,r.b)("updateProfilerCompletedSteps",{input:{step:"skip-guided-setup"}})]},RETRY_COUNTRIES_LIST:{actions:["reloadPage"]}},entry:[{type:"recordTracksStepViewed",params:{step:"skip_business_location"}},{type:"recordSkipGuidedSetup",params:({context:e})=>({optInDataSharing:e.optInDataSharing})}],meta:{progress:80,component:({sendEvent:e,navigationProgress:o,context:t})=>{const[n,i]=(0,c.useState)({key:"",label:""}),r=(0,j.__)("Select country/region","woocommerce");return(0,S.jsxs)("div",{className:"woocommerce-profiler-business-location","data-testid":"core-profiler-business-location",children:[(0,S.jsx)(h,{percentage:o}),(0,S.jsxs)("div",{className:"woocommerce-profiler-page__content woocommerce-profiler-business-location__content",children:[(0,S.jsx)(_,{className:"woocommerce-profiler__stepper-heading",title:(0,j.__)("Where is your business located?","woocommerce"),subTitle:(0,j.__)("We’ll use this information to help you set up payments, shipping, and taxes.","woocommerce")}),(0,S.jsx)(G,{countries:t.countries,initialValue:n,label:r,geolocatedLocation:t.geolocatedLocation,placeholder:r,onChange:e=>{i(e)}}),0===t.countries.length&&(0,S.jsx)(L.Notice,{className:"woocommerce-profiler-select-control__country-error",isDismissible:!1,status:"error",children:(0,c.createInterpolateElement)((0,j.__)("Oops! We encountered a problem while fetching the list of countries to choose from. or ","woocommerce"),{retryButton:(0,S.jsx)(L.Button,{onClick:()=>{e({type:"RETRY_COUNTRIES_LIST"})},variant:"tertiary",children:(0,j.__)("Please try again","woocommerce")}),skipButton:(0,S.jsx)(L.Button,{onClick:()=>{e({type:"BUSINESS_LOCATION_COMPLETED",payload:{storeLocation:"US:CA"}})},variant:"tertiary",children:(0,j.__)("Skip this step","woocommerce")})})}),(0,S.jsx)("div",{className:"woocommerce-profiler-button-container woocommerce-profiler-go-to-mystore__button-container",children:(0,S.jsx)(L.Button,{className:"woocommerce-profiler-button",variant:"primary",disabled:!n.key,onClick:()=>{e({type:"BUSINESS_LOCATION_COMPLETED",payload:{storeLocation:n.key}})},children:(0,j.__)("Go to my store","woocommerce")})})]})]})}}},postSkipFlowBusinessLocation:{initial:"updateBusinessLocation",states:{updateBusinessLocation:{entry:(0,i.a)({loader:{progress:10,useStages:"skippedGuidedSetup"}}),invoke:{input:({context:e})=>e,src:"skipFlowUpdateBusinessLocation",onDone:{target:"progress20"}}},progress20:{entry:(0,i.a)({loader:{progress:20,useStages:"skippedGuidedSetup"}}),after:{1500:{target:"progress80"}}},progress80:{entry:(0,i.a)({loader:{progress:80,useStages:"skippedGuidedSetup",stageIndex:1}}),after:{1500:{actions:["redirectToWooHome"]}}}},meta:{component:X}}}},plugins:{id:"plugins",initial:"prePlugins",states:{prePlugins:{invoke:[{src:"getPlugins",onDone:[{target:"pluginsSkipped",guard:({event:e})=>0===e.output.length||e.output.every(e=>e.is_activated)},{target:"plugins",actions:"handlePlugins"}],onError:{target:"pluginsSkipped"}},{src:"getCurrentUser",onDone:{actions:["assignCurrentUser"]}},{src:"getStoreCountryOption",onDone:{actions:["handleStoreCountryOption"]}}],meta:{progress:70}},pluginsSkipped:{entry:(0,i.a)({loader:{progress:80}}),invoke:{src:(0,n.Sx)(()=>((0,u.dispatch)(M.onboardingStore).updateProfileItems({is_plugins_page_skipped:!0,skipped:!1,completed:!0}),new Promise(e=>{setTimeout(e,3e3)}))),onDone:[{actions:["redirectToWooHome"]}]},meta:{component:X}},plugins:{initial:"init",states:{init:{always:[{guard:"userHasNoInstallPluginsPermission",target:"noPermissionsError"},{target:"default"}]},default:{meta:{progress:80,component:({context:e,navigationProgress:o,sendEvent:t})=>{const[n,i]=(0,c.useState)(new Set(e.pluginsAvailable.filter(e.pluginsInstallationErrors.length?o=>e.pluginsSelected.includes(o.key):e=>!e.is_activated))),r=()=>{const{pluginsShown:o,pluginsUnselected:i,selectedPluginSlugs:r}=((e,o)=>{const t=Array.from(o).map(e=>e.key.replace(":alt","")),n=[],i=[];return e.forEach(e=>{const o=e.key.replace(":alt","");n.push(o),e.is_activated||t.includes(o)||i.push(o)}),{pluginsShown:n,pluginsUnselected:i,selectedPluginSlugs:t}})(e.pluginsAvailable,n);return t({type:"PLUGINS_INSTALLATION_REQUESTED",payload:{pluginsShown:o,pluginsSelected:r,pluginsUnselected:i}})},s=Math.ceil(e.pluginsAvailable.length/2),a=(0,c.useMemo)(()=>e.pluginsAvailable.reduce((e,o)=>(e[o.key]=o.name,e),{}),[e.pluginsAvailable]),l=350+100*s,u=(0,q.useMediaQuery)(`(max-height: ${l}px)`);return(0,S.jsxs)("div",{className:"woocommerce-profiler-plugins","data-testid":"core-profiler-plugins",children:[(0,S.jsx)(h,{percentage:o,onSkip:()=>t({type:"PLUGINS_PAGE_SKIPPED"})}),(0,S.jsxs)("div",{className:"woocommerce-profiler-page__content woocommerce-profiler-plugins__content",children:[(0,S.jsx)(_,{className:"woocommerce-profiler__stepper-heading",title:(0,j.__)("Get a boost with our free features","woocommerce"),subTitle:(0,j.__)("No commitment required – you can remove them at any time.","woocommerce")}),e.pluginsInstallationErrors.length>0&&(0,S.jsx)(oe,{pluginsInstallationErrors:e.pluginsInstallationErrors,pluginsSlugToName:a,onClick:r}),(0,S.jsx)("div",{className:(0,w.A)("woocommerce-profiler-plugins__list",{"sticky-footer":u}),children:e.pluginsAvailable.map(e=>{const{key:o}=e;return(0,S.jsx)($,{plugin:e,onChange:()=>{e.is_activated||(e=>{n.has(e)?n.delete(e):n.add(e),i(new Set(n))})(e)},checked:n.has(e)},o)})}),(0,S.jsxs)("div",{className:(0,w.A)("woocommerce-profiler-plugins__footer",{"sticky-footer":u}),children:[(0,S.jsx)("div",{className:"woocommerce-profiler-plugins-continue-button-container",children:(0,S.jsx)(L.Button,{className:"woocommerce-profiler-plugins-continue-button",variant:"primary",onClick:n.size>0?r:()=>t({type:"PLUGINS_PAGE_COMPLETED_WITHOUT_SELECTING_PLUGINS"}),children:(0,j.__)("Continue","woocommerce")})}),(0,S.jsx)(te,{selectedPlugins:Array.from(n)})]})]})]})}}},noPermissionsError:{entry:["recordTracksPluginsInstallationNoPermissionError"],meta:{progress:80,component:({context:e,navigationProgress:o,sendEvent:t})=>{const n=()=>t({type:"PLUGINS_PAGE_SKIPPED"}),i=Math.ceil(e.pluginsAvailable.length/2);return(0,S.jsxs)("div",{className:"woocommerce-profiler-plugins","data-testid":"core-profiler-plugins",children:[(0,S.jsx)(h,{percentage:o,onSkip:n}),(0,S.jsxs)("div",{className:"woocommerce-profiler-page__content woocommerce-profiler-plugins__content",children:[(0,S.jsx)(_,{className:"woocommerce-profiler__stepper-heading",title:(0,j.__)("Get a boost with our free features","woocommerce"),subTitle:(0,j.__)("No commitment required – you can remove them at any time.","woocommerce")}),(0,S.jsx)(oe,{pluginsInstallationPermissionsFailure:!0}),(0,S.jsx)("div",{className:(0,w.A)("woocommerce-profiler-plugins__list",`rows-${i}`),children:e.pluginsAvailable.map(e=>{const{key:o,learn_more_link:n}=e;return(0,S.jsx)($,{plugin:e,checked:!1,disabled:!0,children:n&&(0,S.jsx)($.LearnMoreLink,{onClick:()=>{t({type:"PLUGINS_LEARN_MORE_LINK_CLICKED",payload:{plugin:o,learnMoreLink:n}})}})},o)})}),(0,S.jsx)("div",{className:(0,w.A)("woocommerce-profiler-plugins__footer",`rows-${i}`),children:(0,S.jsx)("div",{className:"woocommerce-profiler-plugins-continue-button-container",children:(0,S.jsx)(L.Button,{className:"woocommerce-profiler-plugins-continue-button",variant:"primary",onClick:n,children:(0,j.__)("Continue","woocommerce")})})})]})]})}}}},entry:[{type:"recordTracksStepViewed",params:{step:"plugins"}},{type:"recordShippingPartnerImpression"},{type:"updateQueryStep",params:{step:"plugins"}}],on:{PLUGINS_PAGE_SKIPPED:{actions:[{type:"recordTracksStepSkipped",params:{step:"plugins"}},(0,r.b)("updateProfilerCompletedSteps",{input:{step:"plugins"}})],target:"pluginsSkipped"},PLUGINS_PAGE_COMPLETED_WITHOUT_SELECTING_PLUGINS:{target:"postPluginInstallation.noPluginsSelected",actions:[(0,r.b)("updateProfilerCompletedSteps",{input:{step:"plugins"}})]},PLUGINS_LEARN_MORE_LINK_CLICKED:{actions:[{type:"recordTracksPluginsLearnMoreLinkClicked",params:{step:"plugins"}}]},PLUGINS_INSTALLATION_REQUESTED:{target:"installPlugins",actions:["assignPluginsSelected","recordTracksPluginsInstallationRequest"]}}},postPluginInstallation:{initial:"noPluginsSelected",states:{withPluginsSelected:{invoke:{input:({event:e})=>((0,s.DT)(e,"PLUGINS_INSTALLATION_COMPLETED"),e),src:(0,n.Sx)(async({input:e})=>await(0,u.dispatch)(M.onboardingStore).updateProfileItems({business_extensions:e.payload.installationCompletedResult.installedPlugins.map(e=>e.plugin),completed:!0})),onDone:[{target:"#isJetpackConnected",guard:(0,r.o)(["hasJpcRequiredPluginSelected","hasJpcRequiredPluginActivated"])},{actions:"redirectToWooHome"}],onError:{actions:"redirectToWooHome"}}},noPluginsSelected:{entry:(0,i.a)({loader:{progress:80}}),invoke:{src:(0,n.Sx)(()=>(0,u.dispatch)(M.onboardingStore).updateProfileItems({completed:!0})),onDone:[{target:"#isJetpackConnected",guard:"hasJpcRequiredPluginActivated"},{actions:"redirectToWooHome"}],onError:{actions:"redirectToWooHome"}}}},meta:{component:X,progress:100}},isJetpackConnected:{id:"isJetpackConnected",invoke:{src:"getJetpackIsConnected",onDone:[{target:"sendToJetpackAuthPage",guard:({event:e})=>!e.output},{actions:"redirectToWooHome"}]},meta:{component:X,progress:100}},sendToJetpackAuthPage:{invoke:{src:(0,n.Sx)(async()=>(window.wcAdminFeatures["launch-your-store"]&&await(0,u.dispatch)(M.onboardingStore).coreProfilerCompleted(),await(0,u.resolveSelect)(M.onboardingStore).getJetpackAuthUrl({redirectUrl:(0,d.getAdminLink)("admin.php?page=wc-admin"),from:"woocommerce-core-profiler"}))),onDone:{actions:(0,a.e)(({enqueue:e,check:o})=>{o(({event:e})=>e.output.success)?e({type:"redirectToJetpackAuthPage"}):e({type:"redirectToWooHome"})})}},meta:{component:X,progress:100}},installPlugins:{on:{PLUGIN_INSTALLED_AND_ACTIVATED:{actions:["updateLoaderProgressWithPluginInstall"]},PLUGINS_INSTALLATION_COMPLETED_WITH_ERRORS:{target:"prePlugins",actions:[(0,i.a)({pluginsInstallationErrors:({event:e})=>e.payload.errors}),{type:"recordFailedPluginInstallations"}]},PLUGINS_INSTALLATION_COMPLETED:{target:"postPluginInstallation.withPluginsSelected",actions:[(0,r.b)("updateProfilerCompletedSteps",{input:{step:"plugins"}}),{type:"recordSuccessfulPluginInstallation"}]}},entry:(0,a.e)(({enqueue:e,check:o})=>{o((0,r.o)([{type:"hasJpcRequiredPluginSelected"},{type:"hasJpcRequiredPluginActivated"}]))&&(e("preFetchIsJetpackConnected"),e("preFetchJetpackAuthUrl")),e((0,i.a)({loader:{progress:10,useStages:"plugins"}}))}),invoke:{src:"pluginInstallerMachine",input:({context:e})=>({selectedPlugins:e.pluginsSelected,pluginsAvailable:e.pluginsAvailable})},meta:{component:X}}}},settingUpStore:{},redirectingToWooHome:{id:"redirectingToWooHome",invoke:{src:"exitToWooHome"}}}}),ao=({actionOverrides:e,servicesOverrides:o})=>{const t=(0,c.useMemo)(()=>so.provide({actions:{...io,...e},actors:{...ro,...o},guards:{hasStepInUrl:(e,o)=>{const{step:t}=(0,p.getQuery)();return!!t&&t===o.step},hasJpcRequiredPluginSelected:({context:e})=>e.pluginsSelected.some(o=>{const t=e.pluginsAvailable.find(e=>e.key===o);return!0===t?.requires_jpc}),hasJpcRequiredPluginActivated:({context:e})=>void 0!==e.pluginsAvailable.find(e=>e.requires_jpc&&e.is_activated),hasPluginInstallationErrors:({context:e})=>e.pluginsInstallationErrors.length>0,userHasNoInstallPluginsPermission:({context:e})=>!0!==e?.currentUser?.capabilities.install_plugins}}),[e,o]),{xstateV5Inspector:n}=(0,Ne.D)("V5"),[i,r,s]=(0,l.zl)(t,{inspect:n}),a=(0,l.d4)(s,e=>(0,I.Q)(e?.getMeta()??void 0)),u=a?.progress,g=i.value instanceof Object?Object.keys(i.value)[0]:i.value;(0,se.xG)(["woocommerce-profile-wizard__body"]);const[M]=(0,Ie.$)(s);return(0,S.jsx)(S.Fragment,{children:(0,S.jsx)("div",{className:`woocommerce-profile-wizard__container woocommerce-profile-wizard__step-${g}`,children:M?(0,S.jsx)(M,{navigationProgress:u,sendEvent:r,context:i.context}):(0,S.jsx)(ce,{})})})},lo=ao},47721:(e,o,t)=>{function n(e=""){return e?e.split(":")[0]:null}function i(e,o,t=!1,n){return function(e,o=!1,t,n){const i=[];return n?((e.product_types||[]).forEach(e=>{n[e]&&n[e].product&&(o||!t.includes(n[e].slug))&&i.push(n[e])}),i):i}(o,t,n,e).map(e=>e.id||e.product)}t.d(o,{Dr:()=>i,gI:()=>n}),t(18537)},4462:(e,o,t)=>{t.d(o,{A:()=>i});var n=t(42435);const i=e=>({__html:(0,n.sanitizeHTML)(e)})},27678:(e,o,t)=>{function n(e,o=new Set){if(!o.has(e)){o.add(e);for(const t in e)if(e.hasOwnProperty(t)){if("component"===t)return e;if("object"==typeof e[t]&&null!==e[t]){const i=n(e[t],o);if(void 0!==i)return i}}}}t.d(o,{Q:()=>n})},7754:(e,o,t)=>{t.d(o,{$:()=>s});var n=t(94859),i=t(51609),r=t(27678);function s(e){const o=(0,n.d4)(e,e=>(0,r.Q)(e.getMeta()??void 0)),[t,s]=(0,i.useState)(null);return(0,i.useEffect)(()=>{o?.component&&s(()=>o.component)},[o?.component]),[t||null]}}}]);