Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
test
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
chunks
:
core-profiler.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/*! For license information please see core-profiler.js.LICENSE.txt */ (globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[1828],{73224:(e,o,t)=>{"use strict";t.d(o,{Z:()=>r});var i=t(69307),n=t(70444);const r=(0,i.createElement)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}))},53570:(e,o,t)=>{"use strict";t.r(o),t.d(o,{CoreProfilerController:()=>Ge,coreProfilerStateMachineDefinition:()=>Ye,default:()=>Re,preFetchActions:()=>Pe});var i=t(69307),n=t(5031),r=t(47090),s=t(11122),a=t(55954),l=t(8667),c=t(66002),u=t(9818),g=t(10431),M=t(67221),m=t(73516),N=t(74617),p=t(17844),d=t.n(p),I=t(90556),y=t(65736),j=t(55609),L=t(76357),T=t(86020),D=t(87608),w=t.n(D);const E=({className:e,title:o,subTitle:t})=>(0,i.createElement)("div",{className:w()("woocommerce-profiler-heading",e)},(0,i.createElement)("h1",{className:"woocommerce-profiler-heading__title"},o),t&&(0,i.createElement)("h2",{className:"woocommerce-profiler-heading__subtitle"},t)),_=()=>(0,i.createElement)("svg",{preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 256 153",xmlns:"http://www.w3.org/2000/svg",className:"wc-icon wc-icon__woo-logo"},(0,i.createElement)("path",{d:"m23.759 0h208.38c13.187 0 23.863 10.675 23.863 23.863v79.542c0 13.187-10.675 23.863-23.863 23.863h-74.727l10.257 25.118-45.109-25.118h-98.695c-13.187 0-23.863-10.675-23.863-23.863v-79.542c-0.10466-13.083 10.571-23.863 23.758-23.863z",fill:"#7f54b3"}),(0,i.createElement)("path",{d:"m14.578 21.75c1.4569-1.9772 3.6423-3.0179 6.5561-3.226 5.3073-0.41626 8.3252 2.0813 9.0537 7.4927 3.226 21.75 6.7642 40.169 10.511 55.259l22.79-43.395c2.0813-3.9545 4.6829-6.0358 7.8049-6.2439 4.5789-0.3122 7.3886 2.6016 8.5333 8.7415 2.6016 13.841 5.9317 25.6 9.8862 35.59 2.7057-26.433 7.2846-45.476 13.737-57.236 1.561-2.9138 3.8504-4.3707 6.8683-4.5789 2.3935-0.20813 4.5789 0.52033 6.5561 2.0813 1.9772 1.561 3.0179 3.5382 3.226 5.9317 0.10406 1.8732-0.20813 3.4341-1.0407 4.9951-4.0585 7.4927-7.3886 20.085-10.094 37.567-2.6016 16.963-3.5382 30.179-2.9138 39.649 0.20813 2.6016-0.20813 4.8911-1.2488 6.8683-1.2488 2.2894-3.122 3.5382-5.5154 3.7463-2.7057 0.20813-5.5154-1.0406-8.2211-3.8504-9.678-9.8862-17.379-24.663-22.998-44.332-6.7642 13.32-11.759 23.311-14.985 29.971-6.1398 11.759-11.343 17.795-15.714 18.107-2.8098 0.20813-5.2033-2.1854-7.2846-7.1805-5.3073-13.633-11.031-39.961-17.171-78.985-0.41626-2.7057 0.20813-5.0992 1.665-6.9724zm223.64 16.338c-3.7463-6.5561-9.2618-10.511-16.65-12.072-1.9772-0.41626-3.8504-0.62439-5.6195-0.62439-9.9902 0-18.107 5.2033-24.455 15.61-5.4114 8.8455-8.1171 18.628-8.1171 29.346 0 8.013 1.665 14.881 4.9951 20.605 3.7463 6.5561 9.2618 10.511 16.65 12.072 1.9772 0.41626 3.8504 0.62439 5.6195 0.62439 10.094 0 18.211-5.2033 24.455-15.61 5.4114-8.9496 8.1171-18.732 8.1171-29.45 0.10406-8.1171-1.665-14.881-4.9951-20.501zm-13.112 28.826c-1.4569 6.8683-4.0585 11.967-7.9089 15.402-3.0179 2.7057-5.8276 3.8504-8.4293 3.3301-2.4976-0.52033-4.5789-2.7057-6.1398-6.7642-1.2488-3.226-1.8732-6.452-1.8732-9.4699 0-2.6016 0.20813-5.2033 0.72846-7.5967 0.93659-4.2667 2.7057-8.4293 5.5154-12.384 3.4341-5.0992 7.0764-7.1805 10.823-6.452 2.4976 0.52033 4.5789 2.7057 6.1398 6.7642 1.2488 3.226 1.8732 6.452 1.8732 9.4699 0 2.7057-0.20813 5.3073-0.72846 7.7008zm-52.033-28.826c-3.7463-6.5561-9.3659-10.511-16.65-12.072-1.9772-0.41626-3.8504-0.62439-5.6195-0.62439-9.9902 0-18.107 5.2033-24.455 15.61-5.4114 8.8455-8.1171 18.628-8.1171 29.346 0 8.013 1.665 14.881 4.9951 20.605 3.7463 6.5561 9.2618 10.511 16.65 12.072 1.9772 0.41626 3.8504 0.62439 5.6195 0.62439 10.094 0 18.211-5.2033 24.455-15.61 5.4114-8.9496 8.1171-18.732 8.1171-29.45 0-8.1171-1.665-14.881-4.9951-20.501zm-13.216 28.826c-1.4569 6.8683-4.0585 11.967-7.9089 15.402-3.0179 2.7057-5.8276 3.8504-8.4293 3.3301-2.4976-0.52033-4.5789-2.7057-6.1398-6.7642-1.2488-3.226-1.8732-6.452-1.8732-9.4699 0-2.6016 0.20813-5.2033 0.72846-7.5967 0.93658-4.2667 2.7057-8.4293 5.5154-12.384 3.4341-5.0992 7.0764-7.1805 10.823-6.452 2.4976 0.52033 4.5789 2.7057 6.1398 6.7642 1.2488 3.226 1.8732 6.452 1.8732 9.4699 0.10406 2.7057-0.20813 5.3073-0.72846 7.7008z",fill:"#fff"})),S=({className:e="",percent:o=0,color:t="#674399",bgcolor:n="var(--wp-admin-theme-color)"})=>{const r={backgroundColor:n},s={backgroundColor:t,width:`${o}%`,display:0===o?"none":"inherit"};return(0,i.createElement)("div",{className:`woocommerce-profiler-progress-bar ${e}`},(0,i.createElement)("div",{className:"woocommerce-profiler-progress-bar__container",style:r},(0,i.createElement)("div",{className:"woocommerce-profiler-progress-bar__filler",style:s})))},A=({percentage:e=0,onSkip:o,skipText:t=(0,y.__)("Skip this step","woocommerce"),showProgress:n=!0,showLogo:r=!0,classNames:s={},progressBarColor:a="var(--wp-admin-theme-color)"})=>(0,i.createElement)("div",{className:w()("woocommerce-profiler-navigation-container",s)},n&&(0,i.createElement)(S,{className:"progress-bar",percent:e,color:a,bgcolor:"transparent"}),(0,i.createElement)("div",{className:"woocommerce-profiler-navigation"},(0,i.createElement)("div",{className:"woocommerce-profiler-navigation-col-left"},r&&(0,i.createElement)("span",{className:"woologo"},(0,i.createElement)(_,null))),(0,i.createElement)("div",{className:"woocommerce-profiler-navigation-col-right"},"function"==typeof o&&(0,i.createElement)(j.Button,{onClick:o,className:w()("woocommerce-profiler-navigation-skip-link",s.mobile?"mobile":""),isLink:!0},t))));var O=t(23374),z=t(73224);const f=({className:e,selected:o,title:t,name:n,value:r,onChange:s,subOptionsComponent:a=null})=>{const l=()=>{s(r)},c="woocommerce-"+r.replace(/_/g,"-");return(0,i.createElement)("div",{role:"radio",className:w()("woocommerce-profiler-choice-container",e),onClick:l,onKeyDown:e=>{"Enter"===e.key&&l()},"data-selected":o||null,tabIndex:0},(0,i.createElement)("div",{className:"woocommerce-profiler-choice"},(0,i.createElement)("input",{className:"woocommerce-profiler-choice-input",id:c,name:n,type:"radio",value:r,checked:!!o,onChange:l,"data-selected":o||null,tabIndex:-1}),(0,i.createElement)("label",{htmlFor:c,className:"choice__title"},t)),o&&a&&(0,i.createElement)("div",{className:"woocommerce-profiler-choice-sub-options"},a))},k=({options:e,onSelect:o,selectedOptions:t=[],placeholder:n=(0,y.__)("Select platforms","woocommerce"),onOpenClose:r=(()=>{})})=>(0,i.createElement)(T.__experimentalSelectControl,{label:"",multiple:!0,__experimentalOpenMenuOnFocus:!0,readOnlyWhenClosed:!1,items:e,getFilteredItems:e=>e,selected:t,inputProps:{"aria-readonly":!0,"aria-label":(0,y.__)("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:i}=o;switch(i){case T.selectControlStateChangeTypes.ControlledPropUpdatedSelectedItem:return{...t,inputValue:e.inputValue};case T.selectControlStateChangeTypes.ItemClick:return{...t,isOpen:!0,inputValue:e.inputValue,highlightedIndex:e.highlightedIndex};case T.selectControlStateChangeTypes.InputBlur:return e.isOpen&&o.selectItem?{...t,isOpen:!0}:t;default:return t}},onSelect:e=>{if(!e)return;const i=t.find((o=>o.value===e.value))?t.filter((o=>o.value!==e.value)):[...t,e];o(i)},onRemove:e=>o(t.filter((o=>o!==e)))},(({selectedOptions:e,onOpenClose:o})=>({items:t,highlightedIndex:n,isOpen:r,getItemProps:s,getMenuProps:a})=>((0,i.useEffect)((()=>{o(r)}),[r]),(0,i.createElement)(T.__experimentalSelectControlMenu,{isOpen:r,getMenuProps:a,scrollIntoViewOnOpen:!0},t.map(((o,t)=>{const r=e.includes(o);return(0,i.createElement)(T.__experimentalSelectControlMenuItem,{key:`${o.value}`,index:t,item:o,getItemProps:s,isActive:n===t,activeStyle:{backgroundColor:"#f6f7f7"}},(0,i.createElement)(j.CheckboxControl,{className:w()("core-profiler__checkbox",{"is-selected":r}),onChange:()=>{},checked:r,label:o.label}))})))))({selectedOptions:t,onOpenClose:r})),C=[{title:(0,y.__)("I'm just starting my business","woocommerce"),value:"im_just_starting_my_business"},{title:(0,y.__)("I'm already selling","woocommerce"),value:"im_already_selling"},{title:(0,y.__)("I'm setting up a store for a client","woocommerce"),value:"im_setting_up_a_store_for_a_client"}],b=[{label:(0,y.__)("Yes, I'm selling online","woocommerce"),value:"yes_im_selling_online",key:"yes_im_selling_online"},{label:(0,y.__)("No, I'm selling offline","woocommerce"),value:"no_im_selling_offline",key:"no_im_selling_offline"},{label:(0,y.__)("I'm selling both online and offline","woocommerce"),value:"im_selling_both_online_and_offline",key:"im_selling_both_online_and_offline"}],x=[{label:(0,y.__)("Amazon","woocommerce"),value:"amazon"},{label:(0,y.__)("Adobe Commerce","woocommerce"),value:"adobe_commerce"},{label:(0,y.__)("Big Cartel","woocommerce"),value:"big_cartel"},{label:(0,y.__)("Big Commerce","woocommerce"),value:"big_commerce"},{label:(0,y.__)("Ebay","woocommerce"),value:"ebay"},{label:(0,y.__)("Ecwid","woocommerce"),value:"ecwid"},{label:(0,y.__)("Etsy","woocommerce"),value:"etsy"},{label:(0,y.__)("Facebook Marketplace","woocommerce"),value:"facebook_marketplace"},{label:(0,y.__)("Google Shopping","woocommerce"),value:"google_shopping"},{label:(0,y.__)("Pinterest","woocommerce"),value:"pinterest"},{label:(0,y.__)("Shopify","woocommerce"),value:"shopify"},{label:(0,y.__)("Square","woocommerce"),value:"square"},{label:(0,y.__)("Squarespace","woocommerce"),value:"squarespace"},{label:(0,y.__)("Wix","woocommerce"),value:"wix"},{label:(0,y.__)("WordPress","woocommerce"),value:"wordpress"}];var h=t(61250),v=t(23012);const P=t.p+"47c7fb356fcb2d963681.svg";var U=t(99196);const Q=U.memo(U.forwardRef(((e,o)=>{const{size:t=24,icon:i,className:n,title:r,...s}=e,a=t%18==0,l=`gridicons-${i}`,c=w()("gridicon",l,n,{"needs-offset":a&&v.iconsThatNeedOffset.includes(l),"needs-offset-x":a&&v.iconsThatNeedOffsetX.includes(l),"needs-offset-y":a&&v.iconsThatNeedOffsetY.includes(l)});return(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:c,height:t,width:t,ref:o,...s,children:[r&&(0,h.jsx)("title",{children:r}),(0,h.jsx)("use",{xlinkHref:`${P}#${l}`})]})})));Q.displayName="Gridicon";const Y=Q,G=({isError:e=!1,isWarning:o,isHidden:t,className:i,text:n,icon:r,id:s,children:a})=>{const l=w()(i,{"form-input-validation":!0,"is-warning":o,"is-error":e,"is-hidden":t}),c=e||o?"notice-outline":"checkmark";return(0,h.jsx)("div",{className:l,role:"alert",children:(0,h.jsxs)("span",{id:s,children:[(0,h.jsx)(Y,{size:24,icon:r||c})," ",n,a]})})};var R=t(10644),Z=t(22629),B=t(1850);const W=[void 0,"woocommerce","Site Title",""],J=[{label:(0,y.__)("Clothing and accessories","woocommerce"),key:"clothing_and_accessories"},{label:(0,y.__)("Health and beauty","woocommerce"),key:"health_and_beauty"},{label:(0,y.__)("Food and drink","woocommerce"),key:"food_and_drink"},{label:(0,y.__)("Home, furniture and garden","woocommerce"),key:"home_furniture_and_garden"},{label:(0,y.__)("Education and learning","woocommerce"),key:"education_and_learning"},{label:(0,y.__)("Electronics and computers","woocommerce"),key:"electronics_and_computers"},{label:(0,y.__)("Other","woocommerce"),key:"other"}],F={im_just_starting_my_business:(0,y.__)("What type of products or services do you plan to sell?","woocommerce"),im_already_selling:(0,y.__)("Which industry is your business in?","woocommerce"),im_setting_up_a_store_for_a_client:(0,y.__)("Which industry is your client's business in?","woocommerce")},V=t.p+"bfec8d1574ef61285fc9.svg",H={title:(0,y.__)("Turning on the lights","woocommerce"),image:(0,i.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMTYiIGhlaWdodD0iMTQwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTAgMGgyMTZ2MTQwSDB6Ii8+PHBhdGggZmlsbD0iI0JFQTBGMiIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMTc3LjA2NCA1MC4wMDhjLTIxLjA4MiAwLTM0LjczNSAxMS4wNjctMzQuNzM1IDI4LjA3NyAwIDIxLjIwMyAyMi40NzUgMjQuMDggMjIuNDc1IDM1LjEyOWgyNC41MmMwLTExLjA1MyAyMi40NzUtMTMuOTI2IDIyLjQ3NS0zNS4xMyAwLTE3LjAxLTEzLjY1Ni0yOC4wNzYtMzQuNzM1LTI4LjA3NlpNMzkuMDggNC4yMjdDMTQuM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ZT0ibm9uemVybyIgZD0iTTEyMy40NzQgMjQuNzU4SDkyLjUyN2wtNC43NzYgNy44NzF6TTExOC42OTggMTYuODgzSDk3LjMwMmwtNC43NzYgNy44NzV6TTExMy44OTYgOC45NjVoLTExLjc5MWwtNC44MDMgNy45MTd6Ii8+PHBhdGggc3Ryb2tlPSIjMjcxQjNEIiBkPSJNNDcuODU2IDI1Ljk3N2M5LjMwOS05LjQ3MSAxNy43NjctMTIuODYzIDI3LjI2OC0xNC4zNjhNNzAuNjI5IDI5LjQ0NCA0OC4yMDMgMTEuMzk4Ii8+PHBhdGggc3Ryb2tlPSIjMjcxQjNEIiBkPSJNNTcuMTY1IDM1LjEzOGMzLjA0OS05LjU1NSA0LjE2Mi0yMS44NjggMi4xOTgtMzAuOTE1Ii8+PHBhdGggZmlsbD0iIzI3MUIzRCIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMjEuOTQ3IDgxLjU4NnYzLjVoNS4zNjd2MS4zMDJjLjA4IDUuNzM2IDUuNDQgMTAuODgxIDExLjc2NiAxMC44ODFzMTEuNjc1LTUuMTM0IDExLjc2Ni0xMC44Njd2LTEuMzE2aDUuMzY3di0zLjVIMjEuOTQ3Wk0xOTMuODQ0IDExNi43MTV2LTMuNWgtMzMuNTYzdjMuNWg0LjUydjEuNjFoLTQuNTJ2My41aDQuNTJ2MS45OTVjMCA1LjU4NiA0Ljc1IDEyLjAwOCAxMi4yNjMgMTIuMDA4czEyLjI2My02LjQyNiAxMi4yNjMtMTIuMDA4di0xLjk5NWg0LjUydi0zLjVoLTQuNTJ2LTEuNjFoNC41MTdaIi8+PC9nPjwvc3ZnPg==",alt:"loader-lightbulb"}),paragraphs:[{label:(0,y.__)("#FunWooFact: ","woocommerce"),text:(0,y.__)("The Woo team is made up of over 350 talented individuals, distributed across 30+ countries.","woocommerce")}]},X={title:(0,y.__)("Extending your store's capabilities","woocommerce"),image:(0,i.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0ia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LjkzNyA1My45ODl2LTMuNDA2TDQuMiA0NS45NHYzLjQxek0xMC45MzcgNjAuNjF2LTMuNDA2TDQuMiA1Mi41NjJ2My40MXpNMTAuOTM3IDY3LjIyOXYtMy40MDZMNC4yIDU5LjE4djMuNDA2ek0xMC45MzcgNzMuODV2LTMuNDFMNC4yIDY1LjgwMnYzLjQwNnpNMTAuOTM3IDgwLjQ3di0zLjQxTDQuMiA3Mi40MnYzLjQwN3pNMTAuOTM3IDg3LjA5di0zLjQxTDQuMiA3OS4wNDJ2My40MDZ6TTEwLjkzNyA5My43MXYtMy40MDlMNC4yIDg1LjY1OXYzLjQxek00LjIwMSA5Mi4yNzh2My40MWw1Ljk0NSA0LjA5NmEzLjI0MSAzLjI0MSAwIDAgMCAuNzktMi4xMjV2LS43MzlsLTYuNzM1LTQuNjQyWiIvPjwvZz48L3N2Zz4=",alt:"loader-lightbulb"}),paragraphs:[{label:(0,y.__)("#FunWooFact: ","woocommerce"),text:(0,y.__)("Did you know that Woo powers almost 4 million stores worldwide? You’re in good company.","woocommerce")}]},q={title:(0,y.__)("Woo! Let's get your features ready","woocommerce"),image:(0,i.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMTYiIGhlaWdodD0iMTQwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTAgMGgyMTZ2MTQwSDB6Ii8+PHBhdGggZmlsbD0iI0JFQTBGMiIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNNjQuOTIgOTkuMTI3SDQuMjc3djM2Ljc3OUg2NC45MnoiLz48cGF0aCBmaWxsPSIjMjcxQjNEIiBmaWxsLXJ1bGU9Im5vbnplcm8iIGQ9Ik00MS45NzggMTA1LjI1NmgtMzcuN3YzLjUwM2gzNy43ek02NC45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:[{label:(0,y.__)("#FunWooFact: ","woocommerce"),text:(0,y.__)("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")}]},K={title:(0,y.__)("Opening the doors","woocommerce"),image:(0,i.createElement)("img",{src:V,alt:"loader-opening-the-doors"}),paragraphs:[{label:(0,y.__)("#FunWooFact: ","woocommerce"),text:(0,y.__)("Our favorite color is purple ","woocommerce"),element:(0,i.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1Ljk0ODkgNS4yNTg4MkMxNS45NDg5IDIuODM2NiAxMy45ODUzIDAuODczMDQ3IDExLjU2MzYgMC44NzMwNDdDMTAuMDkzMyAwLjg3MzA0NyA4Ljc5NjAxIDEuNTk4ODIgOC4wMDAwMSAyLjcwODE2QzcuMjA0MDEgMS41OTg4MiA1LjkwNjY3IDAuODczMDQ3IDQuNDM2ODkgMC44NzMwNDdDMi4wMTQ2NyAwLjg3MzA0NyAwLjA1MTExNjkgMi44MzYxNiAwLjA1MTExNjkgNS4yNTg4MkMwLjA1MTExNjkgNS42MDE5NCAwLjA5NDY3MjUgNS45MzQzOCAwLjE2OTMzOSA2LjI1NDgyQzAuNzc4MjI4IDEwLjAzODQgNC45ODQ4OSAxNC4wMjk5IDguMDAwMDEgMTUuMTI1OUMxMS4wMTQ3IDE0LjAyOTkgMTUuMjIxOCAxMC4wMzg0IDE1LjgyOTggNi4yNTUyN0MxNS45MDUzIDUuOTM0ODIgMTUuOTQ4OSA1LjYwMjM4IDE1Ljk0ODkgNS4yNTg4MloiIGZpbGw9IiNBQThFRDYiLz4KPC9zdmc+Cg==",alt:"loader-hearticon",className:"loader-hearticon"})}]},$=({context:e})=>{var o,t,n;const r=(e=>{switch(e){case"plugins":return[q,X,H];case"skippedGuidedSetup":return[H,K];default:return[H]}})(null!==(o=e.loader.useStages)&&void 0!==o?o:"default")[null!==(t=e.loader.stageIndex)&&void 0!==t?t:0];return(0,i.createElement)(R.Loader,{className:e.loader.className},(0,i.createElement)(R.Loader.Layout,null,(0,i.createElement)(R.Loader.Illustration,null,r.image),(0,i.createElement)(R.Loader.Title,null,r.title),(0,i.createElement)(R.Loader.ProgressBar,{progress:null!==(n=e.loader?.progress)&&void 0!==n?n:0}),(0,i.createElement)(R.Loader.Sequence,{interval:3e3},r.paragraphs.map(((e,o)=>(0,i.createElement)(R.Loader.Subtext,{key:o},(0,i.createElement)("b",null,e?.label),e?.text,e?.element))))))};var ee=t(88502);const oe=({installed:e=!1,icon:o,title:t,onChange:n,checked:r=!1,description:s,learnMoreLink:a})=>(0,i.createElement)("div",{className:"woocommerce-profiler-plugins-plugin-card"},(0,i.createElement)("div",{className:"woocommerce-profiler-plugin-card-top"},!e&&(0,i.createElement)(j.CheckboxControl,{className:"core-profiler__checkbox",checked:r,onChange:n||(()=>{})}),o,(0,i.createElement)("div",{className:w()("woocommerce-profiler-plugins-plugin-card-text-header",{installed:e})},(0,i.createElement)("h3",null,t),e&&(0,i.createElement)("span",null,(0,y.__)("Installed","woocommerce")))),(0,i.createElement)("div",{className:w()("woocommerce-profiler-plugins-plugin-card-text",{"smaller-margin-left":e})},(0,i.createElement)("p",{dangerouslySetInnerHTML:(0,ee.ZP)(s)}),a));var te=t(61935);const ie=((0,te.O3)("locale")?.siteLocale||"en_US").replace("_","-"),ne=e=>new Intl.ListFormat(ie,{style:"long",type:"conjunction"}).formatToParts(e);var re=t(14841);const{pure:se}=a,ae=(0,s.C)({id:"plugin-installer",predictableActionArguments:!0,initial:"installing",context:{selectedPlugins:[],pluginsAvailable:[],pluginsInstallationQueue:[],installedPlugins:[],startTime:0,installationDuration:0,errors:[]},states:{installing:{initial:"installer",entry:["populateDefaults","assignPluginsInstallationQueue","assignStartTime"],after:{INSTALLATION_TIMEOUT:"timedOut"},states:{installer:{initial:"installing",states:{installing:{invoke:{src:"installPlugin",onDone:{actions:["assignInstallationSuccessDetails"],target:"removeFromQueue"},onError:{actions:"assignInstallationErrorDetails",target:"removeFromQueue"}}},removeFromQueue:{entry:["removePluginFromQueue","updateParentWithPluginProgress"],always:[{target:"installing",cond:"hasPluginsToInstall"},{target:"#installation-finished"}]}}}}},finished:{id:"installation-finished",entry:["assignInstallationDuration"],always:[{target:"reportErrors",cond:"hasErrors"},{target:"reportSuccess"}]},timedOut:{entry:["assignInstallationDuration"],invoke:{src:"queueRemainingPluginsAsync",onDone:{target:"reportSuccess"}}},reportErrors:{entry:"updateParentWithInstallationErrors"},reportSuccess:{entry:"updateParentWithInstallationSuccess"}}},{delays:{INSTALLATION_TIMEOUT:3e4},actions:{populateDefaults:(0,n.f0)({installedPlugins:[],errors:[],startTime:0,installationDuration:0}),assignPluginsInstallationQueue:(0,n.f0)({pluginsInstallationQueue:e=>e.selectedPlugins.slice().sort(((o,t)=>{var i,n;const r=e.pluginsAvailable.find((e=>e.key===o)),s=e.pluginsAvailable.find((e=>e.key===t));return(null!==(i=r?.install_priority)&&void 0!==i?i:99)-(null!==(n=s?.install_priority)&&void 0!==n?n:99)}))}),assignStartTime:(0,n.f0)({startTime:()=>window.performance.now()}),assignInstallationDuration:(0,n.f0)({installationDuration:e=>window.performance.now()-e.startTime}),assignInstallationSuccessDetails:(0,n.f0)({installedPlugins:(e,o)=>{const t=e.pluginsInstallationQueue[0];return[...e.installedPlugins,{plugin:t,installTime:o.data.data.install_time[t]||0}]}}),assignInstallationErrorDetails:(0,n.f0)({errors:(e,o)=>[...e.errors,{plugin:e.pluginsInstallationQueue[0],error:o.data.data.message}]}),removePluginFromQueue:(0,n.f0)({pluginsInstallationQueue:e=>e.pluginsInstallationQueue.slice(1)}),updateParentWithPluginProgress:se((e=>(0,n.lj)({type:"PLUGIN_INSTALLED_AND_ACTIVATED",payload:{pluginsCount:e.selectedPlugins.length,installedPluginIndex:e.selectedPlugins.length-e.pluginsInstallationQueue.length}}))),updateParentWithInstallationErrors:(0,n.lj)((e=>({type:"PLUGINS_INSTALLATION_COMPLETED_WITH_ERRORS",payload:{errors:e.errors}}))),updateParentWithInstallationSuccess:(0,n.lj)((e=>({type:"PLUGINS_INSTALLATION_COMPLETED",payload:{installationCompletedResult:{installedPlugins:e.installedPlugins,totalTime:e.installationDuration}}})))},guards:{hasErrors:e=>e.errors.length>0,hasPluginsToInstall:e=>e.pluginsInstallationQueue.length>0},services:{installPlugin:e=>(0,u.dispatch)(M.PLUGINS_STORE_NAME).installAndActivatePlugins([e.pluginsInstallationQueue[0]]),queueRemainingPluginsAsync:e=>(0,u.dispatch)(M.ONBOARDING_STORE_NAME).installAndActivatePluginsAsync(e.pluginsInstallationQueue)}}),le=()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"woocommerce-profile-wizard__spinner","data-testid":"core-profiler-loading-screen"},(0,i.createElement)(j.Spinner,null)));var ce=t(14599);const ue={recordTracksStepViewed:(e,o,{action:t})=>{const{step:i}=t;(0,ce.recordEvent)("coreprofiler_step_view",{step:i,wc_version:(0,N.getSetting)("wcVersion")})},recordTracksStepSkipped:(e,o,{action:t})=>{const{step:i}=t;(0,ce.recordEvent)(`coreprofiler_${i}_skip`)},recordTracksIntroCompleted:()=>{(0,ce.recordEvent)("coreprofiler_step_complete",{step:"intro_opt_in",wc_version:(0,N.getSetting)("wcVersion")})},recordTracksUserProfileCompleted:(e,o)=>{(0,ce.recordEvent)("coreprofiler_step_complete",{step:"user_profile",wc_version:(0,N.getSetting)("wcVersion")}),(0,ce.recordEvent)("coreprofiler_user_profile",{business_choice:o.payload.userProfile.businessChoice,selling_online_answer:o.payload.userProfile.sellingOnlineAnswer,selling_platforms:o.payload.userProfile.sellingPlatforms?o.payload.userProfile.sellingPlatforms.join():null})},recordTracksSkipBusinessLocationCompleted:()=>{(0,ce.recordEvent)("coreprofiler_step_complete",{step:"skip_business_location",wc_version:(0,N.getSetting)("wcVersion")})},recordTracksBusinessInfoCompleted:(e,o)=>{(0,ce.recordEvent)("coreprofiler_step_complete",{step:"business_info",wc_version:(0,N.getSetting)("wcVersion")}),(0,ce.recordEvent)("coreprofiler_business_info",{business_name_filled:-1===W.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:(e,o,{action:t})=>{const{step:i}=t;(0,ce.recordEvent)(`coreprofiler_${i}_learn_more_link_clicked`,{plugin:o.payload.plugin,link:o.payload.learnMoreLink})},recordFailedPluginInstallations:(e,o)=>{const t=o.payload.errors.map((e=>(0,re.br)(e.plugin)));(0,ce.recordEvent)("coreprofiler_store_extensions_installed_and_activated",{success:!1,failed_extensions:t}),o.payload.errors.forEach((e=>{(0,ce.recordEvent)("coreprofiler_store_extension_installed_and_activated",{success:!1,extension:(0,re.br)(e.plugin),error_message:e.error})}))},recordSuccessfulPluginInstallation:(e,o)=>{const t=o.payload.installationCompletedResult,i={success:!0,installed_extensions:t.installedPlugins.map((e=>(0,re.br)(e.plugin))),total_time:(0,re.Jm)(t.totalTime)};for(const e of t.installedPlugins){const o=(0,re.br)(e.plugin),t=(0,re.Jm)(e.installTime);i["install_time_"+o]=t,(0,ce.recordEvent)("coreprofiler_store_extension_installed_and_activated",{success:!0,extension:o,install_time:t})}(0,ce.recordEvent)("coreprofiler_store_extensions_installed_and_activated",i)},recordTracksPluginsInstallationRequest:(e,o)=>{(0,ce.recordEvent)("coreprofiler_store_extensions_continue",{shown:o.payload.pluginsShown||[],selected:o.payload.pluginsSelected||[],unselected:o.payload.pluginsUnselected||[]})},recordTracksIsEmailChanged:(e,o)=>{let t,i;e.onboardingProfile.store_email?(t="onboarding_profile_store_email",i=o.payload.storeEmailAddress!==e.onboardingProfile.store_email):e.currentUserEmail?(t="current_user_email",i=o.payload.storeEmailAddress!==e.currentUserEmail):(t="was_empty",i=o.payload.storeEmailAddress?.length>0),(0,ce.recordEvent)("coreprofiler_email_marketing",{opt_in:o.payload.isOptInMarketing,email_field_prefilled_source:t,email_field_modified:i})}};var ge=t(75781);const Me=(0,n.f0)({optInDataSharing:(e,o)=>"no"!==o.data}),me=(0,n.f0)({businessInfo:(e,o)=>({...e.businessInfo,storeName:W.includes(o.data)?void 0:o.data})}),Ne=(0,n.f0)({businessInfo:(e,o)=>({...e.businessInfo,location:o.data})}),pe=(0,n.f0)({spawnGetCountriesRef:()=>(0,r.Cs)((()=>(0,u.resolveSelect)(M.COUNTRIES_STORE_NAME).getCountries()),"core-profiler-prefetch-countries")}),de=(0,n.f0)({spawnPrefetchOptionsRef:(e,o,{action:t})=>{(0,r.Cs)((()=>Promise.all([t.options.map((e=>(0,u.resolveSelect)(M.OPTIONS_STORE_NAME).getOption(e)))])),"core-profiler-prefetch-options")}}),Ie=(0,n.f0)({countries:(e,o)=>o.data.reduce(((e,o)=>{if(!o.states.length)return e.push({key:o.code,label:(0,Z.decodeEntities)(o.name)}),e;const t=o.states.map((e=>({key:o.code+":"+e.code,label:(0,Z.decodeEntities)(o.name)+" — "+(0,Z.decodeEntities)(e.name)})));return e.push(...t),e}),[])}),ye=(0,n.f0)({userProfile:(e,o)=>{if(!o.data)return{};const{business_choice:t,selling_online_answer:i,selling_platforms:n,...r}=o.data;return{...r,businessChoice:t,sellingOnlineAnswer:i,sellingPlatforms:n}}}),je=(0,n.f0)({currentUserEmail:(e,o)=>{if(o.data&&o.data.length>0&&"wordpress@example.com"!==o.data)return o.data}}),Le=(0,n.f0)({onboardingProfile:(e,o)=>o.data}),Te=async e=>{if(e.optInDataSharing)return(0,u.resolveSelect)(M.COUNTRIES_STORE_NAME).geolocate()},De=(0,n.f0)({spawnGeolocationRef:e=>(0,r.Cs)((()=>Te(e)),"core-profiler-prefetch-geolocation")}),we=(0,n.f0)({geolocatedLocation:(e,o)=>o.data}),Ee=(0,n.f0)({spawnUpdateOnboardingProfileOptionRef:e=>(0,r.Cs)((()=>(e=>{const{businessChoice:o,sellingOnlineAnswer:t,sellingPlatforms:i}=e.userProfile;return(0,u.dispatch)(M.OPTIONS_STORE_NAME).updateOptions({woocommerce_onboarding_profile:{...e.onboardingProfile,business_choice:o,selling_online_answer:t,selling_platforms:i}})})(e)),"update-onboarding-profile")}),_e=async e=>{const{general:o={}}=await(0,u.resolveSelect)(M.SETTINGS_STORE_NAME).getSettings("general"),t=(0,ge.so)(e),{currencySymbols:i={},localeInfo:n={}}=(0,te.O3)("onboarding",{}),r=d()().getDataForCountry(t,n,i);if(0!==Object.keys(r).length)return(0,u.dispatch)(M.SETTINGS_STORE_NAME).updateAndPersistSettingsForGroup("general",{general:{...o,woocommerce_currency:r.code,woocommerce_currency_pos:r.symbolPosition,woocommerce_price_thousand_sep:r.thousandSeparator,woocommerce_price_decimal_sep:r.decimalSeparator,woocommerce_price_num_decimals:r.precision}})},Se=(0,n.f0)({businessInfo:(e,o)=>({...e.businessInfo,location:o.payload.storeLocation})}),Ae=(0,n.f0)({userProfile:(e,o)=>o.payload.userProfile}),Oe=async(e,o)=>{const t=await(0,u.resolveSelect)(M.OPTIONS_STORE_NAME).getOption("woocommerce_onboarding_profile");return await _e(o.payload.storeLocation),(0,u.dispatch)(M.OPTIONS_STORE_NAME).updateOptions({blogname:o.payload.storeName,woocommerce_default_country:o.payload.storeLocation,woocommerce_onboarding_profile:{...t,is_store_country_set:!0,industry:[o.payload.industry],is_agree_marketing:o.payload.isOptInMarketing,store_email:o.payload.storeEmailAddress.length>0?o.payload.storeEmailAddress:null}})},ze=(0,n.f0)({persistBusinessInfoRef:(e,o)=>(0,r.Cs)((()=>Oe(0,o)),"core-profiler-update-business-info")}),fe=e=>new Promise((o=>{setTimeout(o,e)})),ke=(0,n.f0)({optInDataSharing:(e,o)=>o.payload.optInDataSharing}),Ce=(0,n.f0)({isJetpackConnectedRef:()=>(0,r.Cs)((()=>(0,u.resolveSelect)(M.PLUGINS_STORE_NAME).isJetpackConnected()),"core-profiler-prefetch-is-jetpack-connected")}),be=(0,n.f0)({jetpackAuthUrlRef:()=>(0,r.Cs)((()=>(0,u.resolveSelect)(M.ONBOARDING_STORE_NAME).getJetpackAuthUrl({redirectUrl:(0,N.getAdminLink)("admin.php?page=wc-admin"),from:"woocommerce-core-profiler"})),"core-profiler-prefetch-jetpack-auth-url")}),xe=(0,n.f0)({extensionsRef:()=>(0,r.Cs)((()=>(0,u.resolveSelect)(M.ONBOARDING_STORE_NAME).getFreeExtensions()),"core-profiler-prefetch-extensions")}),he=(0,n.f0)({pluginsAvailable:(e,o)=>o.data}),ve=(0,n.f0)({pluginsSelected:(e,o)=>o.payload.pluginsSelected.map(re.V7)}),Pe={preFetchGetPlugins:xe,preFetchGetCountries:pe,preFetchGeolocation:De,preFetchOptions:de,preFetchIsJetpackConnected:Ce,preFetchJetpackAuthUrl:be},Ue={...Pe,...ue,handlePlugins:he,updateQueryStep:(e,o,{action:t})=>{const{step:i}=(0,g.getQuery)();t.step!==i&&(0,g.updateQueryString)({step:t.step})},handleTrackingOption:Me,handleGeolocation:we,handleStoreNameOption:me,handleStoreCountryOption:Ne,assignOptInDataSharing:ke,assignStoreLocation:Se,assignPluginsSelected:ve,assignUserProfile:Ae,handleCountries:Ie,handleOnboardingProfileOption:ye,assignOnboardingProfile:Le,assignCurrentUserEmail:je,persistBusinessInfo:ze,spawnUpdateOnboardingProfileOption:Ee,redirectToWooHome:()=>{window.location.href=(0,g.getNewPath)({},"/",{})},redirectToJetpackAuthPage:(e,o)=>{const t=new URL(o.data.url);t.searchParams.set("installed_ext_success","1");const i=e.pluginsSelected.find((e=>"jetpack"===e||"jetpack-boost"===e));if(i){const e="jetpack"===i?"jetpack-ai":"jetpack-boost";t.searchParams.set("plugin_name",e)}window.location.href=t.toString()}},Qe={getAllowTrackingOption:async()=>(0,u.resolveSelect)(M.OPTIONS_STORE_NAME).getOption("woocommerce_allow_tracking"),getStoreNameOption:async()=>(0,u.resolveSelect)(M.OPTIONS_STORE_NAME).getOption("blogname"),getStoreCountryOption:async()=>(0,u.resolveSelect)(M.OPTIONS_STORE_NAME).getOption("woocommerce_default_country"),getCountries:async()=>(0,u.resolveSelect)(M.COUNTRIES_STORE_NAME).getCountries(),getGeolocation:Te,getOnboardingProfileOption:async()=>(0,u.resolveSelect)(M.OPTIONS_STORE_NAME).getOption("woocommerce_onboarding_profile"),getCurrentUserEmail:async()=>{const e=await(0,u.resolveSelect)(M.USER_STORE_NAME).getCurrentUser();return e?.email},getPlugins:async()=>{(0,u.dispatch)(M.ONBOARDING_STORE_NAME).invalidateResolution("getFreeExtensions");const e=await(0,u.resolveSelect)(M.ONBOARDING_STORE_NAME).getFreeExtensions();return e.find((e=>"obw/core-profiler"===e.key))?.plugins||[]},browserPopstateHandler:()=>e=>{const o=()=>{e("EXTERNAL_URL_UPDATE")};return window.addEventListener("popstate",o),()=>{window.removeEventListener("popstate",o)}},updateBusinessInfo:Oe,updateTrackingOption:async e=>{await new Promise((o=>{e.optInDataSharing&&"function"==typeof window.wcTracks.enable?window.wcTracks.enable((()=>{(0,m.initializeExPlat)(),o()})):(e.optInDataSharing||(window.wcTracks.isEnabled=!1),o())}));const o=e.optInDataSharing?"yes":"no";(0,u.dispatch)(M.OPTIONS_STORE_NAME).updateOptions({woocommerce_allow_tracking:o})}},Ye=(0,s.C)({id:"coreProfiler",initial:"navigate",predictableActionArguments:!0,invoke:{src:"browserPopstateHandler"},on:{EXTERNAL_URL_UPDATE:{target:"navigate"}},context:{optInDataSharing:!1,userProfile:{skipped:!0},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},states:{navigate:{always:[{target:"#introOptIn",cond:{type:"hasStepInUrl",step:"intro-opt-in"}},{target:"#userProfile",cond:{type:"hasStepInUrl",step:"user-profile"}},{target:"#businessInfo",cond:{type:"hasStepInUrl",step:"business-info"}},{target:"#plugins",cond:{type:"hasStepInUrl",step:"plugins"}},{target:"#skipGuidedSetup",cond:{type:"hasStepInUrl",step:"skip-guided-setup"}},{target:"introOptIn"}]},introOptIn:{id:"introOptIn",initial:"preIntroOptIn",states:{preIntroOptIn:{entry:["preFetchGetPlugins","preFetchGetCountries",{type:"preFetchOptions",options:["blogname","woocommerce_onboarding_profile","woocommerce_default_country"]}],type:"parallel",states:{trackingOption:{initial:"fetching",states:{fetching:{invoke:{src:"getAllowTrackingOption",onDone:[{actions:["handleTrackingOption"],target:"done"}],onError:{target:"done"}}},done:{type:"final"}}}},onDone:{target:"introOptIn"},meta:{progress:0}},introOptIn:{on:{INTRO_COMPLETED:{target:"postIntroOptIn",actions:["assignOptInDataSharing"]},INTRO_SKIPPED:{target:"#skipGuidedSetup",actions:["assignOptInDataSharing","updateTrackingOption"]}},meta:{progress:20,component:({sendEvent:e,navigationProgress:o})=>{const[t,n]=(0,i.useState)(!0);return(0,i.createElement)("div",{className:"woocommerce-profiler-intro-opt-in","data-testid":"core-profiler-intro-opt-in-screen"},(0,i.createElement)(A,{percentage:o,skipText:(0,y.__)("Skip guided setup","woocommerce"),onSkip:()=>e({type:"INTRO_SKIPPED",payload:{optInDataSharing:!1}})}),(0,i.createElement)("div",{className:"woocommerce-profiler-page__content woocommerce-profiler-intro-opt-in__content"},(0,i.createElement)("div",{className:"woocommerce-profiler-welcome-image"}),(0,i.createElement)(E,{title:(0,y.__)("Welcome to Woo!","woocommerce"),subTitle:(0,L.Z)({mixedString:(0,y.__)("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,i.createElement)("br",null)}})}),(0,i.createElement)(j.Button,{className:"woocommerce-profiler-setup-store__button",variant:"primary",onClick:()=>e({type:"INTRO_COMPLETED",payload:{optInDataSharing:t}})},(0,y.__)("Set up my store","woocommerce")),(0,i.createElement)("div",{className:"woocommerce-profiler-intro-opt-in__footer"},(0,i.createElement)(j.CheckboxControl,{className:"core-profiler__checkbox",label:(0,L.Z)({mixedString:(0,y.__)("I agree to share my data to tailor my store setup experience and get more relevant content (WooCommerce will never rent or sell your data, and you can opt out at any time in WooCommerce settings. {{link}}Learn more about usage tracking.{{/link}})","woocommerce"),components:{link:(0,i.createElement)(T.Link,{href:"https://woo.com/usage-tracking?utm_medium=product",target:"_blank",type:"external"})}}),checked:t,onChange:n}))))}}},postIntroOptIn:{invoke:{src:"updateTrackingOption",onDone:{actions:["recordTracksIntroCompleted"],target:"#userProfile"}}}}},userProfile:{id:"userProfile",initial:"preUserProfile",states:{preUserProfile:{invoke:{src:"getOnboardingProfileOption",onDone:[{actions:["handleOnboardingProfileOption","assignOnboardingProfile"],target:"userProfile"}],onError:{target:"userProfile"}}},userProfile:{meta:{progress:40,component:({sendEvent:e,navigationProgress:o,context:t})=>{const[n,r]=(0,i.useState)(t.userProfile.businessChoice||"im_just_starting_my_business"),[s,a]=(0,i.useState)(t.userProfile.sellingOnlineAnswer||null),[l,c]=(0,i.useState)(t.userProfile.sellingPlatforms||null),[u,g]=(0,i.useState)(!1);return(0,i.createElement)("div",{className:"woocommerce-profiler-user-profile","data-testid":"core-profiler-user-profile"},(0,i.createElement)(A,{percentage:o,skipText:(0,y.__)("Skip this step","woocommerce"),onSkip:()=>e({type:"USER_PROFILE_SKIPPED",payload:{userProfile:{skipped:!0}}})}),(0,i.createElement)("div",{className:w()("woocommerce-profiler-page__content woocommerce-profiler-user-profile__content",{"is-platform-selector-open":u})},(0,i.createElement)(E,{className:"woocommerce-profiler__stepper-heading",title:(0,y.__)("Which one of these best describes you?","woocommerce"),subTitle:(0,y.__)("Let us know where you are in your commerce journey so that we can tailor your Woo experience for you.","woocommerce")}),(0,i.createElement)("form",{className:"woocommerce-user-profile-choices"},(0,i.createElement)("fieldset",null,(0,i.createElement)("legend",{className:"screen-reader-text"},(0,y.__)("Which one of these best describes you?","woocommerce")),C.map((({title:e,value:o})=>(0,i.createElement)(f,{key:o,name:"user-profile-choice",title:e,selected:n===o,value:o,onChange:e=>{r(e)},subOptionsComponent:"im_already_selling"===o?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"woocommerce-profiler-selling-online-question"},(0,i.createElement)("p",{className:"woocommerce-profiler-question-label"},(0,y.__)("Are you selling online?","woocommerce")),(0,i.createElement)(T.SelectControl,{className:"woocommerce-profiler-select-control__selling-online-question",instanceId:1,label:(0,y.__)("Select an option","woocommerce"),autoComplete:"new-password",options:b,excludeSelectedOptions:!1,help:(0,i.createElement)(O.Z,{icon:z.Z}),onChange:e=>{a(e)},multiple:!1,selected:s})),s&&["yes_im_selling_online","im_selling_both_online_and_offline"].includes(s)&&(0,i.createElement)("div",{className:"woocommerce-profiler-selling-platform"},(0,i.createElement)("p",{className:"woocommerce-profiler-question-label"},(0,y.__)("Which platform(s) are you currently using?","woocommerce")),(0,i.createElement)(k,{options:x,selectedOptions:x.filter((e=>l?.includes(e.value))),onSelect:e=>{c(e.map((e=>e.value)))},onOpenClose:g}))):null}))))),(0,i.createElement)("div",{className:"woocommerce-profiler-button-container"},(0,i.createElement)(j.Button,{className:"woocommerce-profiler-button",variant:"primary",onClick:()=>{e({type:"USER_PROFILE_COMPLETED",payload:{userProfile:{businessChoice:n,sellingOnlineAnswer:"im_already_selling"===n?s:null,sellingPlatforms:"im_already_selling"===n?l:null}}})}},(0,y.__)("Continue","woocommerce")))))}},entry:[{type:"recordTracksStepViewed",step:"user_profile"},{type:"updateQueryStep",step:"user-profile"},"preFetchGeolocation"],on:{USER_PROFILE_COMPLETED:{target:"postUserProfile",actions:["assignUserProfile"]},USER_PROFILE_SKIPPED:{target:"postUserProfile",actions:["assignUserProfile"]}},exit:a.RN([{cond:(e,o)=>"USER_PROFILE_COMPLETED"===o.type,actions:"recordTracksUserProfileCompleted"},{cond:(e,o)=>"USER_PROFILE_SKIPPED"===o.type,actions:[{type:"recordTracksStepSkipped",step:"user_profile"}]}])},postUserProfile:{entry:["spawnUpdateOnboardingProfileOption"],always:{target:"#businessInfo"}}}},businessInfo:{id:"businessInfo",initial:"preBusinessInfo",entry:[{type:"updateQueryStep",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:{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:"getOnboardingProfileOption",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:{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:r},businessInfo:s,countries:a,onboardingProfile:{is_store_country_set:l,industry:c,business_choice:u,is_agree_marketing:g,store_email:M},currentUserEmail:m}=e,[N,p]=(0,i.useState)(s.storeName||""),[d,I]=(0,i.useState)({key:"",label:""});(0,i.useEffect)((()=>{if(l){const e=a.find((e=>e.key===s.location));I(e||{key:"",label:""})}}),[s.location,a,l]);const[L,D]=(0,i.useState)({key:"",label:""});(0,i.useEffect)((()=>{if(n){const e=(0,R.findCountryOption)(a,n);e&&(D(e),l||I(e))}}),[a,l,n]);const _=n&&(0,R.getCountry)(d.key)!==(0,R.getCountry)(L.key),[S,f]=(0,i.useState)(c?J.find((e=>e.key===c[0])):void 0),k=(0,y.__)("Select country/region","woocommerce"),C=F[r||u||"im_just_starting_my_business"],[b,x]=(0,i.useState)(!1),[h,v]=(0,i.useState)(!1),[P,U]=(0,i.useState)(!1),[Q,Y]=(0,i.useState)(M||m||""),[W,V]=(0,i.useState)(g||!1),[H,X]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(H){const e=B.z.string().email().safeParse(Q);U(W&&!e.success),X(!1)}}),[W,H,Q]),(0,i.createElement)("div",{className:"woocommerce-profiler-business-information","data-testid":"core-profiler-business-information"},(0,i.createElement)(A,{percentage:o}),(0,i.createElement)("div",{className:"woocommerce-profiler-page__content woocommerce-profiler-business-information__content"},(0,i.createElement)(E,{className:"woocommerce-profiler__stepper-heading",title:(0,y.__)("Tell us a bit about your store","woocommerce"),subTitle:(0,y.__)("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,i.createElement)("form",{className:"woocommerce-profiler-business-information-form",autoComplete:"off"},(0,i.createElement)(j.TextControl,{className:"woocommerce-profiler-business-info-store-name",onChange:e=>{p(e)},value:(0,Z.decodeEntities)(N),label:(0,i.createElement)(i.Fragment,null,(0,y.__)("Give your store a name","woocommerce")),placeholder:(0,y.__)("Ex. My awesome store","woocommerce")}),(0,i.createElement)("p",{className:"woocommerce-profiler-question-subtext"},(0,y.__)("Don't worry — you can always change it later!","woocommerce")),(0,i.createElement)("p",{className:"woocommerce-profiler-question-label"},C),(0,i.createElement)(T.SelectControl,{className:"woocommerce-profiler-select-control__industry",instanceId:1,placeholder:(0,y.__)("Select an industry","woocommerce"),label:(0,y.__)("Select an industry","woocommerce"),options:J,excludeSelectedOptions:!1,help:(0,i.createElement)(O.Z,{icon:z.Z}),onChange:e=>{e.length&&f(e[0])},selected:S?[S]:[],showAllOnFocus:!0,isSearchable:!0}),(0,i.createElement)("p",{className:"woocommerce-profiler-question-label"},(0,y.__)("Where is your store located?","woocommerce"),(0,i.createElement)("span",{className:"woocommerce-profiler-question-required"},"*")),(0,i.createElement)(T.SelectControl,{className:"woocommerce-profiler-select-control__country",instanceId:2,placeholder:k,label:""===d.key?k:"",getSearchExpression:e=>new RegExp("(^"+e+"| — ("+e+"))","i"),options:a,excludeSelectedOptions:!1,help:(0,i.createElement)(O.Z,{icon:z.Z}),onChange:e=>{e.length&&I(e[0])},selected:d?[d]:[],showAllOnFocus:!0,isSearchable:!0}),(0,i.createElement)("div",{className:"woocommerce-profiler-select-control__country-spacer"}),_&&!b&&(0,i.createElement)(j.Notice,{className:"woocommerce-profiler-geolocation-notice",onRemove:()=>x(!0),status:"warning"},(0,i.createElement)("p",null,(0,i.createInterpolateElement)((0,y.__)("It looks like you're located in <geolocatedCountry></geolocatedCountry>. Are you sure you want to create a store in <selectedCountry></selectedCountry>?","woocommerce"),{geolocatedCountry:(0,i.createElement)(j.Button,{className:"geolocation-notice-geolocated-country",variant:"link",onClick:()=>I(L)},n?.country_long),selectedCountry:(0,i.createElement)("span",{className:"geolocation-notice-selected-country"},d.label)})),(0,i.createElement)("p",null,(0,y.__)("Setting up your store in the wrong country may lead to the following issues: ","woocommerce")),(0,i.createElement)("ul",{className:"woocommerce-profiler-geolocation-notice__list"},(0,i.createElement)("li",null,(0,y.__)("Tax and duty obligations","woocommerce")),(0,i.createElement)("li",null,(0,y.__)("Payment issues","woocommerce")),(0,i.createElement)("li",null,(0,y.__)("Shipping issues","woocommerce")))),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(j.TextControl,{className:w()("woocommerce-profiler-business-info-email-adddress",{"is-error":P}),onChange:e=>{P&&X(!0),Y(e)},onBlur:()=>{X(!0)},value:(0,Z.decodeEntities)(Q),label:(0,i.createElement)(i.Fragment,null,(0,y.__)("Your email address","woocommerce"),W&&(0,i.createElement)("span",{className:"woocommerce-profiler-question-required"},"*")),placeholder:(0,y.__)("wordpress@example.com","woocommerce")}),P&&(0,i.createElement)(G,{isError:!0,text:(0,y.__)("This email is not valid.","woocommerce")}),(0,i.createElement)(j.CheckboxControl,{className:"core-profiler__checkbox",label:(0,y.__)("Opt-in to receive tips, discounts, and recommendations from the Woo team directly in your inbox.","woocommerce"),checked:W,onChange:e=>{V(e),X(!0)}}))),(0,i.createElement)("div",{className:"woocommerce-profiler-button-container"},(0,i.createElement)(j.Button,{className:"woocommerce-profiler-button",variant:"primary",disabled:!d.key||P,onClick:()=>{t({type:"BUSINESS_INFO_COMPLETED",payload:{storeName:N,industry:S?.key,storeLocation:d.key,geolocationOverruled:_||!1,isOptInMarketing:W,storeEmailAddress:Q}}),v(!0)}},h?(0,i.createElement)(j.Spinner,null):(0,y.__)("Continue","woocommerce")))))}},entry:[{type:"recordTracksStepViewed",step:"business_info"}],on:{BUSINESS_INFO_COMPLETED:{target:"postBusinessInfo",actions:["recordTracksBusinessInfoCompleted","recordTracksIsEmailChanged"]}}},postBusinessInfo:{invoke:{src:"updateBusinessInfo",onDone:{target:"#plugins"},onError:{target:"#plugins"}}}}},skipGuidedSetup:{id:"skipGuidedSetup",initial:"preSkipFlowBusinessLocation",entry:[{type:"updateQueryStep",step:"skip-guided-setup"}],states:{preSkipFlowBusinessLocation:{invoke:{src:"getCountries",onDone:[{actions:["handleCountries"],target:"skipFlowBusinessLocation"}],onError:{target:"skipFlowBusinessLocation"}}},skipFlowBusinessLocation:{on:{BUSINESS_LOCATION_COMPLETED:{target:"postSkipFlowBusinessLocation",actions:["assignStoreLocation","recordTracksSkipBusinessLocationCompleted"]}},entry:[{type:"recordTracksStepViewed",step:"skip_business_location"}],meta:{progress:80,component:({sendEvent:e,navigationProgress:o,context:t})=>{const[n,r]=(0,i.useState)({key:"",label:""}),s=(0,y.__)("Select country/region","woocommerce");return(0,i.createElement)("div",{className:"woocommerce-profiler-business-location","data-testid":"core-profiler-business-location"},(0,i.createElement)(A,{percentage:o}),(0,i.createElement)("div",{className:"woocommerce-profiler-page__content woocommerce-profiler-business-location__content"},(0,i.createElement)(E,{className:"woocommerce-profiler__stepper-heading",title:(0,y.__)("Where is your business located?","woocommerce"),subTitle:(0,y.__)("We'll use this information to help you set up payments, shipping, and taxes.","woocommerce")}),(0,i.createElement)(T.SelectControl,{className:"woocommerce-profiler-select-control__country",instanceId:1,placeholder:s,label:""===n.key?s:"",getSearchExpression:e=>new RegExp("(^"+e+"| — ("+e+"))","i"),autoComplete:"new-password",options:t.countries,excludeSelectedOptions:!1,help:(0,i.createElement)(O.Z,{icon:z.Z}),onChange:e=>{e.length&&r(e[0])},selected:n?[n]:[],showAllOnFocus:!0,isSearchable:!0}),(0,i.createElement)("div",{className:"woocommerce-profiler-button-container woocommerce-profiler-go-to-mystore__button-container"},(0,i.createElement)(j.Button,{className:"woocommerce-profiler-button",variant:"primary",disabled:!n.key,onClick:()=>{e({type:"BUSINESS_LOCATION_COMPLETED",payload:{storeLocation:n.key}})}},(0,y.__)("Go to my store","woocommerce")))))}}},postSkipFlowBusinessLocation:{initial:"updateBusinessLocation",states:{updateBusinessLocation:{entry:(0,n.f0)({loader:{progress:10,useStages:"skippedGuidedSetup"}}),invoke:{src:e=>{const o=(0,u.dispatch)(M.ONBOARDING_STORE_NAME).updateProfileItems({skipped:!0}),t=(i=e.businessInfo.location,(0,u.dispatch)(M.OPTIONS_STORE_NAME).updateOptions({woocommerce_default_country:i}));var i;const n=_e(e.businessInfo.location);return Promise.all([o,t,n])},onDone:{target:"progress20"}}},progress20:{entry:(0,n.f0)({loader:{progress:20,useStages:"skippedGuidedSetup"}}),invoke:{src:()=>fe(1500),onDone:{target:"progress80"}}},progress80:{entry:(0,n.f0)({loader:{progress:80,useStages:"skippedGuidedSetup",stageIndex:1}}),invoke:{src:()=>fe(1500),onDone:{actions:["redirectToWooHome"]}}}},meta:{component:$}}}},plugins:{id:"plugins",initial:"prePlugins",states:{prePlugins:{invoke:{src:"getPlugins",onDone:[{target:"pluginsSkipped",cond:(e,o)=>o.data?.every((e=>e.is_activated))},{target:"plugins",actions:"handlePlugins"}]},exit:(0,n.f0)({pluginsAvailable:e=>e.pluginsAvailable.filter((()=>!0))}),meta:{progress:70}},pluginsSkipped:{entry:(0,n.f0)({loader:{progress:80}}),invoke:{src:()=>((0,u.dispatch)(M.ONBOARDING_STORE_NAME).updateProfileItems({is_plugins_page_skipped:!0,completed:!0}),fe(3e3)),onDone:[{target:"isJetpackConnected",cond:"hasJetpackSelected"},{actions:["redirectToWooHome"]}]},meta:{component:$}},plugins:{entry:[{type:"recordTracksStepViewed",step:"plugins"},{type:"updateQueryStep",step:"plugins"}],on:{PLUGINS_PAGE_SKIPPED:{actions:[{type:"recordTracksStepSkipped",step:"plugins"}],target:"pluginsSkipped"},PLUGINS_LEARN_MORE_LINK_CLICKED:{actions:[{type:"recordTracksPluginsLearnMoreLinkClicked",step:"plugins"}]},PLUGINS_INSTALLATION_REQUESTED:{target:"installPlugins",actions:["assignPluginsSelected","recordTracksPluginsInstallationRequest"]}},meta:{progress:80,component:({context:e,navigationProgress:o,sendEvent:t})=>{const[n,r]=(0,U.useState)(e.pluginsAvailable.filter(e.pluginsInstallationErrors.length?o=>e.pluginsSelected.includes(o.key):e=>!e.is_activated)),s=()=>t({type:"PLUGINS_PAGE_SKIPPED"}),a=()=>{const o=n.map((e=>e.key.replace(":alt",""))),i=[],r=[];return e.pluginsAvailable.forEach((e=>{const t=e.key.replace(":alt","");i.push(t),e.is_activated||o.includes(t)||r.push(t)})),t({type:"PLUGINS_INSTALLATION_REQUESTED",payload:{pluginsShown:i,pluginsSelected:o,pluginsUnselected:r}})},l=e=>"element"===e.type?"{{span}}"+e.value+"{{/span}}":e.value,c=e.pluginsInstallationErrors.length?(0,L.Z)({mixedString:(0,y.sprintf)((0,y.__)("Oops! We encountered a problem while installing %s. {{link}}Please try again{{/link}}.","woocommerce"),ne(e.pluginsInstallationErrors.map((e=>e.plugin))).map(l).join("")),components:{span:(0,i.createElement)("span",null),link:(0,i.createElement)(j.Button,{isLink:!0,onClick:a})}}):null,u=n.filter((e=>["jetpack","woocommerce-services:shipping","woocommerce-services:tax"].includes(e.key)));return(0,i.createElement)("div",{className:"woocommerce-profiler-plugins","data-testid":"core-profiler-plugins"},(0,i.createElement)(A,{percentage:o,onSkip:s}),(0,i.createElement)("div",{className:"woocommerce-profiler-page__content woocommerce-profiler-plugins__content"},(0,i.createElement)(E,{className:"woocommerce-profiler__stepper-heading",title:(0,y.__)("Get a boost with our free features","woocommerce"),subTitle:(0,y.__)("Enhance your store by installing these free business features. No commitment required – you can remove them at any time.","woocommerce")}),c&&(0,i.createElement)("p",{className:"plugin-error"},c),(0,i.createElement)("div",{className:"woocommerce-profiler-plugins__list"},e.pluginsAvailable.map((e=>{const o=e.learn_more_link?(0,i.createElement)(T.Link,{onClick:()=>{var o;t({type:"PLUGINS_LEARN_MORE_LINK_CLICKED",payload:{plugin:e.key,learnMoreLink:null!==(o=e.learn_more_link)&&void 0!==o?o:""}})},href:e.learn_more_link,target:"_blank",type:"external"},(0,y.__)("Learn More","woocommerce")):null;return(0,i.createElement)(oe,{key:`checkbox-control-${e.key}`,installed:e.is_activated,onChange:()=>{(e=>{r(n.some((o=>o.key===e.key))?n.filter((o=>o.key!==e.key)):[...n,e])})(e)},checked:n.filter((o=>o.key===e.key)).length>0,icon:e.image_url?(0,i.createElement)("img",{src:e.image_url,alt:e.key}):null,title:e.label,description:e.description,learnMoreLink:o})}))),(0,i.createElement)("div",{className:"woocommerce-profiler-plugins-continue-button-container"},(0,i.createElement)(j.Button,{className:"woocommerce-profiler-plugins-continue-button",variant:"primary",onClick:n.length?a:s},(0,y.__)("Continue","woocommerce"))),u.length>0&&(0,i.createElement)("p",{className:"woocommerce-profiler-plugins-jetpack-agreement"},(0,L.Z)({mixedString:(0,y.sprintf)((0,y._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}}.",u.length,"woocommerce"),ne(u.map((e=>e.name))).map(l).join("")),components:{span:(0,i.createElement)("span",null),link:(0,i.createElement)(T.Link,{href:"https://wordpress.com/tos/",target:"_blank",type:"external"})}}))))}}},postPluginInstallation:{invoke:{src:async(e,o)=>await(0,u.dispatch)(M.ONBOARDING_STORE_NAME).updateProfileItems({business_extensions:o.payload.installationCompletedResult.installedPlugins.map((e=>e.plugin)),completed:!0}),onDone:[{target:"isJetpackConnected",cond:"hasJetpackSelected"},{actions:"redirectToWooHome"}]},meta:{component:$,progress:100}},isJetpackConnected:{invoke:{src:async()=>await(0,u.resolveSelect)(M.PLUGINS_STORE_NAME).isJetpackConnected(),onDone:[{target:"sendToJetpackAuthPage",cond:(e,o)=>!o.data},{actions:"redirectToWooHome"}]},meta:{component:$,progress:100}},sendToJetpackAuthPage:{invoke:{src:async()=>await(0,u.resolveSelect)(M.ONBOARDING_STORE_NAME).getJetpackAuthUrl({redirectUrl:(0,N.getAdminLink)("admin.php?page=wc-admin"),from:"woocommerce-core-profiler"}),onDone:{actions:a.RN([{cond:(e,o)=>!0===o.data.success,actions:"redirectToJetpackAuthPage"},{cond:(e,o)=>!1===o.data.success,actions:"redirectToWooHome"}])}},meta:{component:$,progress:100}},installPlugins:{on:{PLUGIN_INSTALLED_AND_ACTIVATED:{actions:[(0,n.f0)({loader:(e,o)=>{const t=Math.round(o.payload.installedPluginIndex/o.payload.pluginsCount*100);let i=0;return t>60?i=2:t>30&&(i=1),{useStages:"plugins",progress:t,stageIndex:i}}})]},PLUGINS_INSTALLATION_COMPLETED_WITH_ERRORS:{target:"prePlugins",actions:[(0,n.f0)({pluginsInstallationErrors:(e,o)=>o.payload.errors}),{type:"recordFailedPluginInstallations"}]},PLUGINS_INSTALLATION_COMPLETED:{target:"postPluginInstallation",actions:[{type:"recordSuccessfulPluginInstallation"}]}},entry:a.RN([{cond:"hasJetpackSelected",actions:[(0,n.f0)({loader:{progress:10,useStages:"plugins"}}),"preFetchIsJetpackConnected","preFetchJetpackAuthUrl"]},{actions:[(0,n.f0)({loader:{progress:10,useStages:"plugins"}})]}]),invoke:{src:ae,data:e=>({selectedPlugins:e.pluginsSelected,pluginsAvailable:e.pluginsAvailable})},meta:{component:$}}}},settingUpStore:{}}}),Ge=({actionOverrides:e,servicesOverrides:o})=>{const t=(0,i.useMemo)((()=>Ye.withConfig({actions:{...Ue,...e},services:{...Qe,...o},guards:{hasStepInUrl:(e,o,{cond:t})=>{const{step:i}=(0,g.getQuery)();return i===t.step},hasJetpackSelected:e=>void 0!==e.pluginsSelected.find((e=>"jetpack"===e||"jetpack-boost"===e))||void 0!==e.pluginsAvailable.find((e=>("jetpack"===e.key||"jetpack-boost"===e.key)&&e.is_activated))}})),[e,o]),[n,r,s]=(0,l.e)(t,{devTools:!1}),a=(0,c.v)(s,(e=>{var o;return(0,I.r)(null!==(o=e?.meta)&&void 0!==o?o:void 0)})),u=a?.progress,[M,m]=(0,i.useState)(null);(0,i.useEffect)((()=>{a?.component&&m((()=>a?.component))}),[M,a?.component]);const N=n.value instanceof Object?Object.keys(n.value)[0]:n.value;return(0,re.p0)(["woocommerce-profile-wizard__body"]),(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:`woocommerce-profile-wizard__container woocommerce-profile-wizard__step-${N}`},M?(0,i.createElement)(M,{navigationProgress:u,sendEvent:r,context:n.context}):(0,i.createElement)(le,null)))},Re=Ge},90556:(e,o,t)=>{"use strict";function i(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 n=i(e[t],o);if(void 0!==n)return n}}}}t.d(o,{r:()=>i})},23012:e=>{e.exports={iconsThatNeedOffset:["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle","gridicons-reader-follow","gridicons-reader-following"],iconsThatNeedOffsetX:["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"],iconsThatNeedOffsetY:["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"]}},52458:e=>{"use strict";var o=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var o={},t=0;t<10;t++)o["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(o).map((function(e){return o[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var r,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))t.call(r,c)&&(a[c]=r[c]);if(o){s=o(r);for(var u=0;u<s.length;u++)i.call(r,s[u])&&(a[s[u]]=r[s[u]])}}return a}},95472:(e,o,t)=>{"use strict";t(52458);var i=t(99196),n=60103;if("function"==typeof Symbol&&Symbol.for){var r=Symbol.for;n=r("react.element"),r("react.fragment")}var s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,o,t){var i,r={},c=null,u=null;for(i in void 0!==t&&(c=""+t),void 0!==o.key&&(c=""+o.key),void 0!==o.ref&&(u=o.ref),o)a.call(o,i)&&!l.hasOwnProperty(i)&&(r[i]=o[i]);if(e&&e.defaultProps)for(i in o=e.defaultProps)void 0===r[i]&&(r[i]=o[i]);return{$$typeof:n,type:e,key:c,ref:u,props:r,_owner:s.current}}o.jsx=c,o.jsxs=c},61250:(e,o,t)=>{"use strict";e.exports=t(95472)}}]);