(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[31],{167:function(e,t,a){"use strict";var c=Object.assign||function(e){for(var t,a=1;a{const t=s.getCurrencyConfig(),a=Object(r.applyFilters)("woocommerce_admin_report_currency",t,e);return o()(a)},m=Object(c.createContext)(s)},509:function(e,t,a){"use strict";var c=a(53);const r=["a","b","em","i","strong","p","br"],n=["target","href","rel","name","download"];t.a=e=>({__html:Object(c.sanitize)(e,{ALLOWED_TAGS:r,ALLOWED_ATTR:n})})},512:function(e,t,a){"use strict";a.d(t,"a",(function(){return O})),a.d(t,"b",(function(){return v}));var c=a(0),r=a(6),n=a.n(r),o=a(61),l=a.n(o),s=a(9),i=a.n(s),m=a(1),A=a.n(m),d=a(21),b=a(3),u=(a(522),a(4));class p extends c.Component{render(){const{className:e,hasAction:t,hasDate:a,hasSubtitle:r,lines:o}=this.props,l=n()("woocommerce-activity-card is-loading",e);return Object(c.createElement)("div",{className:l,"aria-hidden":!0},Object(c.createElement)("span",{className:"woocommerce-activity-card__icon"},Object(c.createElement)("span",{className:"is-placeholder"})),Object(c.createElement)("div",{className:"woocommerce-activity-card__header"},Object(c.createElement)("div",{className:"woocommerce-activity-card__title is-placeholder"}),r&&Object(c.createElement)("div",{className:"woocommerce-activity-card__subtitle is-placeholder"}),a&&Object(c.createElement)("div",{className:"woocommerce-activity-card__date"},Object(c.createElement)("span",{className:"is-placeholder"}))),Object(c.createElement)("div",{className:"woocommerce-activity-card__body"},Object(u.range)(o).map(e=>Object(c.createElement)("span",{className:"is-placeholder",key:e}))),t&&Object(c.createElement)("div",{className:"woocommerce-activity-card__actions"},Object(c.createElement)("span",{className:"is-placeholder"})))}}p.propTypes={className:A.a.string,hasAction:A.a.bool,hasDate:A.a.bool,hasSubtitle:A.a.bool,lines:A.a.number},p.defaultProps={hasAction:!1,hasDate:!1,hasSubtitle:!1,lines:1};var v=p;class O extends c.Component{getCard(){const{actions:e,className:t,children:a,date:r,icon:o,subtitle:l,title:s,unread:m}=this.props,A=n()("woocommerce-activity-card",t),b=Array.isArray(e)?e:[e],u=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(r)?i.a.utc(r).fromNow():r;return Object(c.createElement)("section",{className:A},m&&Object(c.createElement)("span",{className:"woocommerce-activity-card__unread"}),o&&Object(c.createElement)("span",{className:"woocommerce-activity-card__icon","aria-hidden":!0},o),s&&Object(c.createElement)("header",{className:"woocommerce-activity-card__header"},Object(c.createElement)(d.H,{className:"woocommerce-activity-card__title"},s),l&&Object(c.createElement)("div",{className:"woocommerce-activity-card__subtitle"},l),u&&Object(c.createElement)("span",{className:"woocommerce-activity-card__date"},u)),a&&Object(c.createElement)(d.Section,{className:"woocommerce-activity-card__body"},a),e&&Object(c.createElement)("footer",{className:"woocommerce-activity-card__actions"},b.map((e,t)=>Object(c.cloneElement)(e,{key:t}))))}render(){const{onClick:e}=this.props;return e?Object(c.createElement)(b.Button,{className:"woocommerce-activity-card__button",onClick:e},this.getCard()):this.getCard()}}O.propTypes={actions:A.a.oneOfType([A.a.arrayOf(A.a.element),A.a.element]),onClick:A.a.func,className:A.a.string,children:A.a.node,date:A.a.string,icon:A.a.node,subtitle:A.a.node,title:A.a.oneOfType([A.a.string,A.a.node]),unread:A.a.bool},O.defaultProps={icon:Object(c.createElement)(l.a,{size:48}),unread:!1}},516:function(e,t,a){},517:function(e,t,a){"use strict";function c(e){return e?e.substr(1).split("&").reduce((e,t)=>{const a=t.split("="),c=a[0];let r=decodeURIComponent(a[1]);return r=isNaN(Number(r))?r:Number(r),e[c]=r,e},{}):{}}function r(){let e="";const{page:t,path:a,post_type:r}=c(window.location.search);if(t){const c="wc-admin"===t?"home_screen":t;e=a?a.replace(/\//g,"_").substring(1):c}else r&&(e=r);return e}a.d(t,"b",(function(){return c})),a.d(t,"a",(function(){return r}))},520:function(e,t,a){"use strict";var c=a(0),r=a(6),n=a.n(r),o=a(1),l=a.n(o),s=a(20),i=a(21);a(521);class m extends c.Component{render(){const{className:e,menu:t,subtitle:a,title:r,unreadMessages:o}=this.props,l=n()({"woocommerce-layout__inbox-panel-header":a,"woocommerce-layout__activity-panel-header":!a},e),i=o||0;return Object(c.createElement)("div",{className:l},Object(c.createElement)("div",{className:"woocommerce-layout__inbox-title"},Object(c.createElement)(s.Text,{size:16,weight:600,color:"#23282d"},r),Object(c.createElement)(s.Text,{variant:"button",weight:"600",size:"14",lineHeight:"20px"},i>0&&Object(c.createElement)("span",{className:"woocommerce-layout__inbox-badge"},o))),Object(c.createElement)("div",{className:"woocommerce-layout__inbox-subtitle"},a&&Object(c.createElement)(s.Text,{variant:"body.small",size:"14",lineHeight:"20px"},a)),t&&Object(c.createElement)("div",{className:"woocommerce-layout__activity-panel-header-menu"},t))}}m.propTypes={className:l.a.string,unreadMessages:l.a.number,title:l.a.string.isRequired,subtitle:l.a.string,menu:l.a.shape({type:l.a.oneOf([i.EllipsisMenu])})},t.a=m},521:function(e,t,a){},522:function(e,t,a){},523:function(e,t,a){"use strict";var c=a(0),r=a(2),n=a(21),o=a(11),l=a(7),s=a(16),i=a(172),m=a(169),A=a(20),d=a(512),b=a(164),u=a(517);a(524);const p=(e,t)=>{Object(s.recordEvent)("inbox_action_click",{note_name:e.name,note_title:e.title,note_content_inner_link:t})},v=({hasNotes:e,isBatchUpdating:t,lastRead:a,notes:n,onDismiss:o,onNoteActionClick:l})=>{if(t)return;if(!e)return Object(c.createElement)(d.a,{className:"woocommerce-empty-activity-card",title:Object(r.__)("Your inbox is empty",'woocommerce'),icon:!1},Object(r.__)("As things begin to happen in your store your inbox will start to fill up. You'll see things like achievements, new feature announcements, extension recommendations and more!",'woocommerce'));const b=Object(u.a)(),v=e=>{Object(s.recordEvent)("inbox_note_view",{note_content:e.content,note_name:e.name,note_title:e.title,note_type:e.type,screen:b})},O=Object.keys(n).map(e=>n[e]);return Object(c.createElement)(i.a,{role:"menu"},O.map(e=>{const{id:t,is_deleted:r}=e;return r?null:Object(c.createElement)(m.a,{key:t,timeout:500,classNames:"woocommerce-inbox-message"},Object(c.createElement)(A.InboxNoteCard,{key:t,note:e,lastRead:a,onDismiss:o,onNoteActionClick:l,onBodyLinkClick:p,onNoteVisible:v}))}))},O={page:1,per_page:o.QUERY_DEFAULTS.pageSize,status:"unactioned",type:o.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc",_fields:["id","name","title","content","type","status","actions","date_created","date_created_gmt","layout","image","is_deleted"]};t.a=()=>{const{createNotice:e}=Object(l.useDispatch)("core/notices"),{batchUpdateNotes:t,removeAllNotes:a,removeNote:i,updateNote:m,triggerNoteAction:d}=Object(l.useDispatch)(o.NOTES_STORE_NAME),{isError:p,isResolvingNotes:w,isBatchUpdating:f,notes:h}=Object(l.useSelect)(e=>{const{getNotes:t,getNotesError:a,isResolving:c,isNotesRequesting:r}=e(o.NOTES_STORE_NAME);return{notes:t(O),isError:Boolean(a("getNotes",[O])),isResolvingNotes:c("getNotes",[O]),isBatchUpdating:r("batchUpdateNotes")}}),{updateUserPreferences:j,...E}=Object(o.useUserPreferences)(),[g]=Object(c.useState)(E.activity_panel_inbox_last_read),[k,B]=Object(c.useState)();Object(c.useEffect)(()=>{const e=Date.now();j({activity_panel_inbox_last_read:e})},[]);const S=async(c=!1)=>{const n="all"===k.type,o=Object(u.a)();if(Object(s.recordEvent)("inbox_action_dismiss",{note_name:k.note.name,note_title:k.note.title,note_name_dismiss_all:n,note_name_dismiss_confirmation:c,screen:o}),c){const c=k.note.id,o=!c||n;try{let n=[];if(o)n=await a({status:O.status});else{const e=await i(c);n=[e]}B(void 0),e("success",n.length>1?Object(r.__)("All messages dismissed",'woocommerce'):Object(r.__)("Message dismissed",'woocommerce'),{actions:[{label:Object(r.__)("Undo",'woocommerce'),onClick:()=>{n.length>1?t(n.map(e=>e.id),{is_deleted:0}):m(c,{is_deleted:0})}}]})}catch(t){const a=o?h.length:1;e("error",Object(r._n)("Message could not be dismissed","Messages could not be dismissed",a,'woocommerce')),B(void 0)}}else B(void 0)};if(p){const e=Object(r.__)("There was an error getting your inbox. Please try again.",'woocommerce'),t=Object(r.__)("Reload",'woocommerce'),a=()=>{window.location.reload()};return Object(c.createElement)(n.EmptyContent,{title:e,actionLabel:t,actionURL:null,actionCallback:a})}const y=Object(b.b)(h);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"woocommerce-homepage-notes-wrapper"},(w||f)&&Object(c.createElement)(n.Section,null,Object(c.createElement)(A.InboxNotePlaceholder,{className:"banner message-is-unread"})),Object(c.createElement)(n.Section,null,!w&&!f&&v({hasNotes:y,isBatchUpdating:f,lastRead:g,notes:h,onDismiss:(e,t)=>{B({note:e,type:t})},onNoteActionClick:(e,t)=>{d(e.id,t.id)}})),k&&Object(c.createElement)(A.InboxDismissConfirmationModal,{onClose:S,onDismiss:()=>S(!0)})))}},524:function(e,t,a){},525:function(e,t,a){"use strict";a.d(t,"b",(function(){return A})),a.d(t,"a",(function(){return d}));var c=a(9),r=a.n(c),n=a(4),o=a(19),l=a(11),s=a(12),i=a(120),m=a(13);const A=({indicator:e,primaryData:t,secondaryData:a,currency:c,formatAmount:r,persistedQuery:o})=>{const l=Object(n.find)(t.data,t=>t.stat===e.stat),A=Object(n.find)(a.data,t=>t.stat===e.stat);if(!l||!A)return{};const d=l._links&&l._links.report[0]&&l._links.report[0].href||"",b=function(e,t,a){return e?"/jetpack"===e?Object(m.e)("admin.php?page=jetpack#/dashboard"):Object(s.getNewPath)(t,e,{chart:a.chart}):""}(d,o,l),u="/jetpack"===d?"wp-admin":"wc-admin",p="currency"===l.format,v=Object(i.calculateDelta)(l.value,A.value);return{primaryValue:p?r(l.value):Object(i.formatValue)(c,l.format,l.value),secondaryValue:p?r(A.value):Object(i.formatValue)(c,A.format,A.value),delta:v,reportUrl:b,reportUrlType:u}},d=(e,t,a,c)=>{const{getReportItems:n,getReportItemsError:s,isResolving:i}=e(l.REPORTS_STORE_NAME),{woocommerce_default_date_range:m}=e(l.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings"),A=Object(o.getCurrentDates)(a,m),d=A.primary.before,b=A.secondary.before,u=t.map(e=>e.stat).join(","),p=Object(l.getFilterQuery)({filters:c,query:a}),v={...p,after:Object(o.appendTimestamp)(A.primary.after,"start"),before:Object(o.appendTimestamp)(d,d.isSame(r()(),"day")?"now":"end"),stats:u},O={...p,after:Object(o.appendTimestamp)(A.secondary.after,"start"),before:Object(o.appendTimestamp)(b,b.isSame(r()(),"day")?"now":"end"),stats:u};return{primaryData:n("performance-indicators",v),primaryError:s("performance-indicators",v)||null,primaryRequesting:i("getReportItems",["performance-indicators",v]),secondaryData:n("performance-indicators",O),secondaryError:s("performance-indicators",O)||null,secondaryRequesting:i("getReportItems",["performance-indicators",O]),defaultDateRange:m}}},540:function(e,t,a){"use strict";var c=a(0);a(541);t.a=e=>{const{numTasks:t=5}=e;return Object(c.createElement)("div",{className:"woocommerce-task-dashboard__container"},Object(c.createElement)("div",{className:"woocommerce-card woocommerce-task-card is-loading","aria-hidden":!0},Object(c.createElement)("div",{className:"woocommerce-card__header"},Object(c.createElement)("div",{className:"woocommerce-card__title-wrapper"},Object(c.createElement)("div",{className:"woocommerce-card__title woocommerce-card__header-item"},Object(c.createElement)("span",{className:"is-placeholder"})))),Object(c.createElement)("div",{className:"woocommerce-card__body"},Object(c.createElement)("div",{className:"woocommerce-list"},Array.from(new Array(t)).map((e,t)=>Object(c.createElement)("div",{key:t,className:"woocommerce-list__item has-action"},Object(c.createElement)("div",{className:"woocommerce-list__item-inner"},Object(c.createElement)("div",{className:"woocommerce-list__item-before"},Object(c.createElement)("span",{className:"is-placeholder"})),Object(c.createElement)("div",{className:"woocommerce-list__item-text"},Object(c.createElement)("div",{className:"woocommerce-list__item-title"},Object(c.createElement)("span",{className:"is-placeholder"}))),Object(c.createElement)("div",{className:"woocommerce-list__item-after"},Object(c.createElement)("span",{className:"is-placeholder"})))))))))}},541:function(e,t,a){},543:function(e,t,a){"use strict";a.d(t,"b",(function(){return k})),a.d(t,"a",(function(){return B}));var c=a(0),r=a(2),n=a(30),o=a(3),l=a(8),s=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"})),i=a(499),m=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(l.Path,{d:"M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24-.61.3-5.76 3.47-7.67 5.57-.86.96-2.06 3.79-1.09 4.82.92.98 3.96-.17 4.79-1 2.06-2.06 5.21-7.17 5.5-7.79zM1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64.93-.65 2.22-.62 3.08.29.63.67.8 2.57-.16 3.46-1.57 1.45-4 1.55-6.15.89z"})),A=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})),d=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),b=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{fillRule:"evenodd",d:"M5.5 9.5v-2h13v2h-13zm0 3v4h13v-4h-13zM4 7a1 1 0 011-1h14a1 1 0 011 1v10a1 1 0 01-1 1H5a1 1 0 01-1-1V7z",clipRule:"evenodd"})),u=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{fillRule:"evenodd",d:"M6.5 8a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zM8 5a3 3 0 100 6 3 3 0 000-6zm6.5 11a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0zm1.5-3a3 3 0 100 6 3 3 0 000-6zM5.47 17.41a.75.75 0 001.06 1.06L18.47 6.53a.75.75 0 10-1.06-1.06L5.47 17.41z",clipRule:"evenodd"})),p=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M3 6.75C3 5.784 3.784 5 4.75 5H15V7.313l.05.027 5.056 2.73.394.212v3.468a1.75 1.75 0 01-1.75 1.75h-.012a2.5 2.5 0 11-4.975 0H9.737a2.5 2.5 0 11-4.975 0H3V6.75zM13.5 14V6.5H4.75a.25.25 0 00-.25.25V14h.965a2.493 2.493 0 011.785-.75c.7 0 1.332.287 1.785.75H13.5zm4.535 0h.715a.25.25 0 00.25-.25v-2.573l-4-2.16v4.568a2.487 2.487 0 011.25-.335c.7 0 1.332.287 1.785.75zM6.282 15.5a1.002 1.002 0 00.968 1.25 1 1 0 10-.968-1.25zm9 0a1 1 0 101.937.498 1 1 0 00-1.938-.498z"})),v=a(13),O=a(16),w=a(20);a(558),a(559);const f=({title:e,children:t})=>Object(c.createElement)("div",{className:"woocommerce-quick-links__category"},Object(c.createElement)("h3",{className:"woocommerce-quick-links__category-header"},e),t);var h=a(116),j=a(500),E=a(21);a(560);const g=({icon:e,title:t,href:a,linkType:r,onClick:n})=>{const o="external"===r;return Object(c.createElement)("div",{className:"woocommerce-quick-links__item"},Object(c.createElement)(E.Link,{onClick:n,href:a,type:r,target:o?"_blank":null,className:"woocommerce-quick-links__item-link"},Object(c.createElement)(h.a,{className:"woocommerce-quick-links__item-link__icon",icon:e}),Object(c.createElement)(w.Text,{className:"woocommerce-quick-links__item-link__text",as:"div",variant:"button",weight:"600",size:"14",lineHeight:"20px"},t),o&&Object(c.createElement)(h.a,{icon:j.a})))};function k({path:e,tab:t=null,type:a,href:c=null}){return{"wc-admin":{href:"admin.php?page=wc-admin&path=%2F"+e,linkType:"wc-admin"},"wp-admin":{href:e,linkType:"wp-admin"},"wc-settings":{href:"admin.php?page=wc-settings&tab="+t,linkType:"wp-admin"}}[a]||{href:c,linkType:"external"}}const B=()=>{const e=Object(v.f)("shopUrl"),t=Object(n.applyFilters)("woocommerce_admin_homescreen_quicklinks",[]).reduce((e,{icon:t,href:a,title:c})=>(new URL(a,window.location.href).origin===window.location.origin&&e.push({icon:t,link:{href:a,linkType:"wp-admin"},title:c,listItemTag:"quick-links-extension-link"}),e),[]);const a=function(e){return[{title:Object(r.__)("Marketing & Merchandising",'woocommerce'),items:[{title:Object(r.__)("Marketing",'woocommerce'),link:k({type:"wc-admin",path:"marketing"}),icon:s,listItemTag:"marketing"},{title:Object(r.__)("Add products",'woocommerce'),link:k({type:"wp-admin",path:"post-new.php?post_type=product"}),icon:i.a,listItemTag:"add-products"},{title:Object(r.__)("Personalize my store",'woocommerce'),link:k({type:"wp-admin",path:"customize.php"}),icon:m,listItemTag:"personalize-store"},{title:Object(r.__)("View my store",'woocommerce'),link:k({type:"external",href:e}),icon:A,listItemTag:"view-store"}]},{title:Object(r.__)("Settings",'woocommerce'),items:[{title:Object(r.__)("Store details",'woocommerce'),link:k({type:"wc-settings",tab:"general"}),icon:d,listItemTag:"edit-store-details"},{title:Object(r.__)("Payments",'woocommerce'),link:k({type:"wc-settings",tab:"checkout"}),icon:b,listItemTag:"payment-settings"},{title:Object(r.__)("Tax",'woocommerce'),link:k({type:"wc-settings",tab:"tax"}),icon:u,listItemTag:"tax-settings"},{title:Object(r.__)("Shipping",'woocommerce'),link:k({type:"wc-settings",tab:"shipping"}),icon:p,listItemTag:"shipping-settings"}]}]}(e),l={title:Object(r.__)("Extensions",'woocommerce'),items:t},h=t.length?[...a,l]:a;return Object(c.createElement)(o.Card,{size:"medium"},Object(c.createElement)(o.CardHeader,{size:"medium"},Object(c.createElement)(w.Text,{variant:"title.small",size:"20",lineHeight:"28px"},Object(r.__)("Store management",'woocommerce'))),Object(c.createElement)(o.CardBody,{size:"custom",className:"woocommerce-store-management-links__card-body"},h.map(e=>Object(c.createElement)(f,{key:e.title,title:e.title},e.items.map(({icon:e,listItemTag:t,title:a,link:{href:r,linkType:n}})=>Object(c.createElement)(g,{icon:e,key:`${a}_${t}_${r}`,title:a,linkType:n,href:r,onClick:()=>{Object(O.recordEvent)("home_quick_links_click",{task_name:t})}}))))))}},549:function(e,t,a){},550:function(e,t,a){},551:function(e,t,a){"use strict";var c=Object.assign||function(e){for(var t,a=1;ag("orders_manage"),className:"woocommerce-layout__activity-panel-outbound-link woocommerce-layout__activity-panel-empty",type:"wp-admin"},Object(u.__)("Manage all orders",'woocommerce')));const t=e=>{const{first_name:t,last_name:a}=e.customer||{};if(!t&&!a)return"";return`{{customerLink}}${[t,a].join(" ")}{{/customerLink}}`},a=e=>{const{id:a,number:r,customer:n}=e;let o=null;return n&&n.customer_id&&(o=window.wcAdminFeatures.analytics?Object(i.getNewPath)({},"/analytics/customers",{filter:"single_customer",customers:n.customer_id}):Object(l.e)("user-edit.php?user_id="+n.customer_id)),Object(c.createElement)(c.Fragment,null,j()({mixedString:Object(u.sprintf)(Object(u.__)("{{orderLink}}Order #%(orderNumber)s{{/orderLink}} %(customerString)s",'woocommerce'),{orderNumber:r,customerString:t(e)}),components:{orderLink:Object(c.createElement)(v.Link,{href:Object(l.e)("post.php?action=edit&post="+a),onClick:()=>g("order_number"),type:"wp-admin"}),destinationFlag:n&&n.country?Object(c.createElement)(v.Flag,{code:n&&n.country,round:!1}):null,customerLink:o?Object(c.createElement)(v.Link,{href:o,onClick:()=>g("customer_name"),type:"wc-admin"}):Object(c.createElement)("span",null)}}))},r=[];return e.forEach(e=>{const{date_created_gmt:t,products:n,id:o}=e,s=n?n.length:0;r.push(Object(c.createElement)(E.a,{key:o,className:"woocommerce-order-activity-card",title:a(e),date:t,onClick:({target:e})=>{g("orders_begin_fulfillment"),e.href||(window.location.href=Object(l.e)("post.php?action=edit&post="+o))},subtitle:Object(c.createElement)("div",null,Object(c.createElement)("span",null,Object(u.sprintf)(Object(u._n)("%d product","%d products",s,'woocommerce'),s)),Object(c.createElement)("span",null,e.total_formatted))},Object(c.createElement)(v.OrderStatus,{order:e,orderStatusMap:Object(l.f)("orderStatuses",{})})))}),Object(c.createElement)(c.Fragment,null,r,Object(c.createElement)(v.Link,{href:"edit.php?post_type=shop_order",className:"woocommerce-layout__activity-panel-outbound-link",onClick:()=>g("orders_manage"),type:"wp-admin"},Object(u.__)("Manage all orders",'woocommerce')))}function B({countUnreadOrders:e,orderStatuses:t}){const a=Object(c.useMemo)(()=>({page:1,per_page:5,status:t,_fields:["id","number","status","total_formatted","customer","products","customer_id","date_created_gmt"]}),[t]),{orders:r=[],isRequesting:o,isError:i}=Object(n.useSelect)(c=>{const{getItems:r,getItemsError:n,isResolving:o}=c(s.ITEMS_STORE_NAME);if(!t.length&&0===e)return{isRequesting:!1};const l=r("orders",a,null),i=o("getItems",["orders",a]);if(i||null===e||null===l)return{isError:Boolean(n("orders",a)),isRequesting:!0,orderStatuses:t};const m=l?Array.from(l.values()):l;return{orders:m,isError:Boolean(n("orders",m)),isRequesting:i,orderStatuses:t}});if(i){if(!t.length&&window.wcAdminFeatures.analytics)return Object(c.createElement)(v.EmptyContent,{title:Object(u.__)("You currently don't have any actionable statuses. To display orders here, select orders that require further review in settings.",'woocommerce'),actionLabel:Object(u.__)("Settings",'woocommerce'),actionURL:Object(l.e)("admin.php?page=wc-admin&path=/analytics/settings")});const e=Object(u.__)("There was an error getting your orders. Please try again.",'woocommerce'),a=Object(u.__)("Reload",'woocommerce'),r=()=>{window.location.reload()};return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(v.EmptyContent,{title:e,actionLabel:a,actionURL:null,actionCallback:r}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(v.Section,null,o?Object(c.createElement)(E.b,{className:"woocommerce-order-activity-card",hasAction:!0,hasDate:!0,lines:1}):k(r)))}B.propTypes={isError:b.a.bool,isRequesting:b.a.bool,countUnreadOrders:b.a.number,orders:b.a.array.isRequired,orderStatuses:b.a.array},B.defaultProps={orders:[],isError:!1,isRequesting:!1};var S=B,y=a(27),N=a(9),C=a.n(N);class q extends c.Component{constructor(e){super(e),this.state={quantity:e.product.stock_quantity,editing:!1,edited:!1},this.beginEdit=this.beginEdit.bind(this),this.cancelEdit=this.cancelEdit.bind(this),this.onQuantityChange=this.onQuantityChange.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.onSubmit=this.onSubmit.bind(this)}recordStockEvent(e,t={}){Object(w.recordEvent)("activity_panel_stock_"+e,t)}beginEdit(){const{product:e}=this.props;this.setState({editing:!0,quantity:e.stock_quantity},()=>{this.quantityInput&&this.quantityInput.focus()}),this.recordStockEvent("update_stock")}cancelEdit(){const{product:e}=this.props;this.setState({editing:!1,quantity:e.stock_quantity}),this.recordStockEvent("cancel")}handleKeyDown(e){e.keyCode===y.ESCAPE&&this.cancelEdit()}onQuantityChange(e){this.setState({quantity:e.target.value})}async onSubmit(){const{product:e,updateProductStock:t,createNotice:a}=this.props,c=parseInt(this.state.quantity,10);if(e.stock_quantity===c)return void this.setState({editing:!1});this.setState({editing:!1,edited:!0});await t(e,c)?a("success",Object(u.sprintf)(Object(u.__)("%s stock updated",'woocommerce'),e.name),{actions:[{label:Object(u.__)("Undo",'woocommerce'),onClick:()=>{t(e,e.stock_quantity),this.recordStockEvent("undo")}}]}):a("error",Object(u.sprintf)(Object(u.__)("%s stock could not be updated",'woocommerce'),e.name)),this.recordStockEvent("save",{quantity:c})}getActions(){const{editing:e}=this.state;return e?[Object(c.createElement)(O.Button,{key:"save",type:"submit",isPrimary:!0},Object(u.__)("Save",'woocommerce')),Object(c.createElement)(O.Button,{key:"cancel",type:"reset"},Object(u.__)("Cancel",'woocommerce'))]:[Object(c.createElement)(O.Button,{key:"update",isSecondary:!0,onClick:this.beginEdit},Object(u.__)("Update stock",'woocommerce'))]}getBody(){const{product:e}=this.props,{editing:t,quantity:a}=this.state;return t?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(O.BaseControl,{className:"woocommerce-stock-activity-card__edit-quantity"},Object(c.createElement)("input",{className:"components-text-control__input",type:"number",value:a,onKeyDown:this.handleKeyDown,onChange:this.onQuantityChange,ref:e=>{this.quantityInput=e}})),Object(c.createElement)("span",null,Object(u.__)("in stock",'woocommerce'))):Object(c.createElement)("span",{className:A()("woocommerce-stock-activity-card__stock-quantity",{"out-of-stock":e.stock_quantity<1})},Object(u.sprintf)(Object(u.__)("%d in stock",'woocommerce'),e.stock_quantity))}render(){const{product:e}=this.props,{edited:t,editing:a}=this.state,r=Object(l.f)("notifyLowStockAmount",0),n=Number.isFinite(e.low_stock_amount)?e.low_stock_amount:r,s=e.stock_quantity<=n,i=e.last_order_date?Object(u.sprintf)(Object(u.__)("Last ordered %s",'woocommerce'),C.a.utc(e.last_order_date).fromNow()):null;if(!s&&!t)return null;const m=Object(c.createElement)(v.Link,{href:"post.php?action=edit&post="+(e.parent_id||e.id),onClick:()=>this.recordStockEvent("product_name"),type:"wp-admin"},e.name);let d=null;"variation"===e.type&&(d=Object.values(e.attributes).map(e=>e.option).join(", "));const b=Object(o.get)(e,["images",0])||Object(o.get)(e,["image"]),p=A()("woocommerce-stock-activity-card__image-overlay__product",{"is-placeholder":!b||!b.src}),O=Object(c.createElement)("div",{className:"woocommerce-stock-activity-card__image-overlay"},Object(c.createElement)("div",{className:p},Object(c.createElement)(v.ProductImage,{product:e}))),w=A()("woocommerce-stock-activity-card",{"is-dimmed":!a&&!s}),f=Object(c.createElement)(E.a,{className:w,title:m,subtitle:d,icon:O,date:i,actions:this.getActions()},this.getBody());return a?Object(c.createElement)("form",{onReset:this.cancelEdit,onSubmit:this.onSubmit},f):f}}const V={page:1,per_page:5,status:"publish",_fields:["attributes","id","images","last_order_date","low_stock_amount","name","parent_id","stock_quantity","type"]};class z extends c.Component{constructor(e){super(e),this.updateStock=this.updateStock.bind(this)}async updateStock(e,t){const{invalidateResolution:a,updateProductStock:c,products:r}=this.props,n=await c(e,t);return n&&(a("getItems",["products/low-in-stock",V]),r.length<2&&a("getItemsTotalCount",["products",f.b,null])),n}renderProducts(){const{products:e,createNotice:t}=this.props;return e.map(e=>Object(c.createElement)(q,{key:e.id,product:e,updateProductStock:this.updateStock,createNotice:t}))}render(){const{countLowStockProducts:e,isError:t,isRequesting:a,products:r}=this.props;if(t){const e=Object(u.__)("There was an error getting your low stock products. Please try again.",'woocommerce'),t=Object(u.__)("Reload",'woocommerce'),a=()=>{window.location.reload()};return Object(c.createElement)(v.EmptyContent,{title:e,actionLabel:t,actionURL:null,actionCallback:a})}if(a||!r.length){const t=Math.min(5,null!=e?e:1),a=Array.from(new Array(t)).map((e,t)=>Object(c.createElement)(E.b,{key:t,className:"woocommerce-stock-activity-card",hasAction:!0,lines:1}));return Object(c.createElement)(v.Section,null,a)}return Object(c.createElement)(v.Section,null,this.renderProducts())}}z.propTypes={countLowStockProducts:b.a.number,products:b.a.array.isRequired,isError:b.a.bool,isRequesting:b.a.bool},z.defaultProps={products:[],isError:!1,isRequesting:!1};var U=Object(r.compose)(Object(n.withSelect)(e=>{const{getItems:t,getItemsError:a,isResolving:c}=e(s.ITEMS_STORE_NAME);return{products:Array.from(t("products/low-in-stock",V).values()),isError:Boolean(a("products/low-in-stock",V)),isRequesting:c("getItems",["products/low-in-stock",V])}}),Object(n.withDispatch)(e=>{const{invalidateResolution:t,updateProductStock:a}=e(s.ITEMS_STORE_NAME),{createNotice:c}=e("core/notices");return{createNotice:c,invalidateResolution:t,updateProductStock:a}}))(z),M=a(167),Q=a.n(M),X=a(551),T=a.n(X),P=(a(552),()=>Object(c.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"14"},Object(c.createElement)("path",{d:"M7.99992 1.33301C4.31992 1.33301 1.33325 4.31967 1.33325 7.99967C1.33325 11.6797 4.31992 14.6663 7.99992 14.6663C11.6799 14.6663 14.6666 11.6797 14.6666 7.99967C14.6666 4.31967 11.6799 1.33301 7.99992 1.33301ZM7.99992 13.333C5.05992 13.333 2.66659 10.9397 2.66659 7.99967C2.66659 5.05967 5.05992 2.66634 7.99992 2.66634C10.9399 2.66634 13.3333 5.05967 13.3333 7.99967C13.3333 10.9397 10.9399 13.333 7.99992 13.333ZM6.66658 9.44634L11.0599 5.05301L11.9999 5.99967L6.66658 11.333L3.99992 8.66634L4.93992 7.72634L6.66658 9.44634Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#mask0)"},Object(c.createElement)("rect",{width:"16",height:"16",fill:"#4AB866"})))),J=a(501),I=a(509),H=a(103);const W={page:1,per_page:H.a,status:"hold",_embed:1};class D extends c.Component{recordReviewEvent(e,t){Object(w.recordEvent)("reviews_"+e,t||{})}deleteReview(e){const{deleteReview:t,createNotice:a,updateReview:c,clearReviewsCache:r}=this.props;e&&t(e).then(()=>{r(),a("success",Object(u.__)("Review successfully deleted.",'woocommerce'),{actions:[{label:Object(u.__)("Undo",'woocommerce'),onClick:()=>{c(e,{status:"untrash"},{_embed:1}).then(()=>r())}}]})}).catch(()=>{a("error",Object(u.__)("Review could not be deleted.",'woocommerce'))})}updateReviewStatus(e,t,a){const{createNotice:c,updateReview:r,clearReviewsCache:n}=this.props;e&&r(e,{status:t}).then(()=>{n(),c("success",Object(u.__)("Review successfully updated.",'woocommerce'),{actions:[{label:Object(u.__)("Undo",'woocommerce'),onClick:()=>{r(e,{status:a},{_embed:1}).then(()=>n())}}]})}).catch(()=>{c("error",Object(u.__)("Review could not be updated.",'woocommerce'))})}renderReview(e){const t=e&&e._embedded&&e._embedded.up&&e._embedded.up[0]||null;if(e.isUpdating)return Object(c.createElement)(E.b,{key:e.id,className:"woocommerce-review-activity-card",hasAction:!0,hasDate:!0,lines:1});if(Object(o.isNull)(t)||e.status!==W.status)return null;const a=j()({mixedString:Object(u.sprintf)(Object(u.__)("{{authorLink}}%s{{/authorLink}}{{verifiedCustomerIcon/}} reviewed {{productLink}}%s{{/productLink}}",'woocommerce'),e.reviewer,t.name),components:{productLink:Object(c.createElement)(v.Link,{href:t.permalink,onClick:()=>this.recordReviewEvent("product"),type:"external"}),authorLink:Object(c.createElement)(v.Link,{href:Object(l.e)("admin.php?page=wc-admin&path=%2Fcustomers&search="+e.reviewer),onClick:()=>this.recordReviewEvent("customer"),type:"external"}),verifiedCustomerIcon:e.verified?Object(c.createElement)("span",{className:"woocommerce-review-activity-card__verified"},Object(c.createElement)(O.Tooltip,{text:Object(u.__)("Verified owner",'woocommerce')},Object(c.createElement)("span",null,Object(c.createElement)(P,null)))):null}}),r=Object(c.createElement)(c.Fragment,null,Object(c.createElement)(v.ReviewRating,{review:e,icon:T.a,outlineIcon:Q.a,size:13})),n=Object(o.get)(t,["images",0])||Object(o.get)(t,["image"]),s=A()("woocommerce-review-activity-card__image-overlay__product",{"is-placeholder":!n||!n.src}),i=Object(c.createElement)("div",{className:"woocommerce-review-activity-card__image-overlay"},Object(c.createElement)("div",{className:s},Object(c.createElement)(v.ProductImage,{product:t,width:33,height:33}))),m={date:e.date_created_gmt,status:e.status},d=[Object(c.createElement)(O.Button,{key:"approve-action",isSecondary:!0,onClick:()=>{this.recordReviewEvent("approve",m),this.updateReviewStatus(e.id,"approved",e.status)}},Object(u.__)("Approve",'woocommerce')),Object(c.createElement)(O.Button,{key:"spam-action",isTertiary:!0,onClick:()=>{this.recordReviewEvent("mark_as_spam",m),this.updateReviewStatus(e.id,"spam",e.status)}},Object(u.__)("Mark as spam",'woocommerce')),Object(c.createElement)(O.Button,{key:"delete-action",isDestructive:!0,isTertiary:!0,onClick:()=>{this.recordReviewEvent("delete",m),this.deleteReview(e.id)}},Object(u.__)("Delete",'woocommerce'))];return Object(c.createElement)(E.a,{className:"woocommerce-review-activity-card",key:e.id,title:a,subtitle:r,date:e.date_created_gmt,icon:i,actions:d},Object(c.createElement)("span",{dangerouslySetInnerHTML:Object(I.a)(e.review)}))}renderReviews(e){const t=e.map(e=>this.renderReview(e,this.props));return 0===t.filter(Boolean).length?Object(c.createElement)(c.Fragment,null):Object(c.createElement)(c.Fragment,null,t,Object(c.createElement)(v.Link,{href:Object(l.e)("edit-comments.php?comment_type=review"),onClick:()=>this.recordReviewEvent("reviews_manage"),className:"woocommerce-layout__activity-panel-outbound-link woocommerce-layout__activity-panel-empty",type:"wp-admin"},Object(u.__)("Manage all reviews",'woocommerce')))}render(){const{isRequesting:e,isError:t,reviews:a}=this.props;if(t){const e=Object(u.__)("There was an error getting your reviews. Please try again.",'woocommerce'),t=Object(u.__)("Reload",'woocommerce'),a=()=>{window.location.reload()};return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(v.EmptyContent,{title:e,actionLabel:t,actionURL:null,actionCallback:a}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(v.Section,null,e||!a.length?Object(c.createElement)(E.b,{className:"woocommerce-review-activity-card",hasAction:!0,hasDate:!0,lines:1}):Object(c.createElement)(c.Fragment,null,this.renderReviews(a))))}}D.propTypes={reviews:b.a.array.isRequired,isError:b.a.bool,isRequesting:b.a.bool},D.defaultProps={reviews:[],isError:!1,isRequesting:!1},D.contextType=J.a;var x=Object(r.compose)([Object(n.withSelect)((e,t)=>{const{hasUnapprovedReviews:a}=t,{getReviews:c,getReviewsError:r,isResolving:n}=e(s.REVIEWS_STORE_NAME);let o=[],l=!1,i=!1;return a&&(o=c(W),l=Boolean(r(W)),i=n("getReviews",[W])),{reviews:o,isError:l,isRequesting:i}}),Object(n.withDispatch)((e,t)=>{const{deleteReview:a,updateReview:c,invalidateResolution:r}=e(s.REVIEWS_STORE_NAME),{createNotice:n}=e("core/notices");return{deleteReview:a,createNotice:n,updateReview:c,clearReviewsCache:()=>{r("getReviews",[W]),t.reviews&&t.reviews.length<2&&r("getReviewsTotalCount",[H.c])}}})])(D);var F=a(517);const L=()=>{const e=Object(n.useSelect)(e=>{const t=Object(l.f)("orderCount",0),a=Object(f.c)(e),c=Object(l.f)("reviewsEnabled","no"),r=Object(f.d)(e,a),n=Object(l.f)("manageStock","no"),o=Object(f.a)(e),i=Object(H.b)(e),m=Object(l.f)("publishedProductCount",0),{getOption:A}=e(s.OPTIONS_STORE_NAME);return{countLowStockProducts:o,countUnapprovedReviews:i,countUnreadOrders:r,isTaskListHidden:A("woocommerce_task_list_hidden"),manageStock:n,publishedProductCount:m,reviewsEnabled:c,totalOrderCount:t,orderStatuses:a}}),t=function({countLowStockProducts:e,countUnapprovedReviews:t,countUnreadOrders:a,isTaskListHidden:r,manageStock:n,orderStatuses:o,publishedProductCount:l,reviewsEnabled:s,totalOrderCount:i}){return"yes"!==r?[]:[i>0&&{className:"woocommerce-homescreen-card",count:a,collapsible:!0,id:"orders-panel",initialOpen:!1,panel:Object(c.createElement)(S,{countUnreadOrders:a,orderStatuses:o}),title:Object(u.__)("Orders",'woocommerce')},i>0&&l>0&&"yes"===n&&{className:"woocommerce-homescreen-card",count:e,id:"stock-panel",initialOpen:!1,collapsible:0!==e,panel:Object(c.createElement)(U,{countLowStockProducts:e}),title:Object(u.__)("Stock",'woocommerce')},l>0&&"yes"===s&&{className:"woocommerce-homescreen-card",id:"reviews-panel",count:t,initialOpen:!1,collapsible:0!==t,panel:Object(c.createElement)(x,{hasUnapprovedReviews:t>0}),title:Object(u.__)("Reviews",'woocommerce')}].filter(Boolean)}(e);if(Object(c.useEffect)(()=>{if(void 0!==e.isTaskListHidden){const a=t.reduce((e,t)=>(e[Object(o.snakeCase)(t.id)]=!0,e),{task_list:"yes"!==e.isTaskListHidden});Object(w.recordEvent)("activity_panel_visible_panels",a)}},[e.isTaskListHidden]),0===t.length)return null;const a=e=>{const{opened_panel:t}=Object(F.b)(window.location.search);return e===t};return Object(c.createElement)(O.Panel,{className:"woocommerce-activity-panel"},t.map(e=>{const{className:t,count:r,id:n,initialOpen:o,panel:l,title:s,collapsible:i}=e;return i?Object(c.createElement)(O.PanelBody,{title:[Object(c.createElement)(O.__experimentalText,{key:s,variant:"title.small",size:"20",lineHeight:"28px"},s),null!==r&&Object(c.createElement)(v.Badge,{key:s+"-badge",count:r})],key:n,className:t,initialOpen:a(n)||o,collapsible:i,disabled:!i,onToggle:e=>{e&&Object(w.recordEvent)("activity_panel_open",{tab:n})}},Object(c.createElement)(O.PanelRow,null,l)):Object(c.createElement)("div",{className:"components-panel__body",key:n},Object(c.createElement)("h2",{className:"components-panel__body-title"},Object(c.createElement)(O.Button,{className:"components-panel__body-toggle","aria-expanded":!1,disabled:!0},Object(c.createElement)(O.__experimentalText,{variant:"title.small",size:"20",lineHeight:"28px"},s),null!==r&&Object(c.createElement)(v.Badge,{count:r}))))}))},R=({children:e,shouldStick:t=!1})=>{const[a,r]=Object(c.useState)(!1),n=Object(c.useRef)(null),o=Object(c.useRef)(null),l=Object(c.useCallback)(()=>{if(!n.current)return;const{bottom:e,top:t}=n.current.getBoundingClientRect();null===o.current&&(o.current=t);const a=e{if(t)return l(),window.addEventListener("resize",l),window.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),window.removeEventListener("scroll",l)}},[l,t]),Object(c.createElement)("div",{className:"woocommerce-homescreen-column",ref:n,style:{position:t&&a?"sticky":"static"}},e)};var _=a(523),G=a(20),K=(a(553),a(554)),Z=a.n(K),Y=a(555),$=a.n(Y),ee=a(556),te=a.n(ee);const ae=()=>{const[e,t]=Object(c.useState)(!0),{updateOptions:a}=Object(n.useDispatch)(s.OPTIONS_STORE_NAME),{isDismissed:r,isResolving:o,isWelcomeModalShown:l}=Object(n.useSelect)(e=>{const{getOption:t,isResolving:a}=e(s.OPTIONS_STORE_NAME),c=t("woocommerce_navigation_intro_modal_dismissed");return{isDismissed:"yes"===c,isWelcomeModalShown:"yes"!==t("woocommerce_task_list_welcome_modal_dismissed"),isResolving:void 0===c||a("getOption",["woocommerce_navigation_intro_modal_dismissed"])||a("getOption",["woocommerce_task_list_welcome_modal_dismissed"])}}),i=()=>{a({woocommerce_navigation_intro_modal_dismissed:"yes"}),Object(w.recordEvent)("navigation_intro_modal_close",{}),t(!1)};if(Object(c.useEffect)(()=>{o||!l||r||i()},[r,o,l]),!e||r||o||l)return null;const m=(e,t,a)=>({content:Object(c.createElement)("div",{className:"woocommerce-navigation-intro-modal__page-wrapper"},Object(c.createElement)("div",{className:"woocommerce-navigation-intro-modal__page-text"},Object(c.createElement)(G.Text,{variant:"title.large",as:"h2",size:"32",lineHeight:"40px"},e),Object(c.createElement)(G.Text,{as:"p",variant:"body.large",size:"16",lineHeight:"24px"},t)),Object(c.createElement)("div",{className:"woocommerce-navigation-intro-modal__image-wrapper"},Object(c.createElement)("img",{alt:e,src:a})))});return Object(c.createElement)(O.Guide,{className:"woocommerce-navigation-intro-modal",onFinish:i,pages:[m(Object(u.__)("A new navigation for WooCommerce",'woocommerce'),Object(u.__)("All of your store management features in one place",'woocommerce'),Z.a),m(Object(u.__)("Focus on managing your store",'woocommerce'),Object(u.__)("Give your attention to key areas of WooCommerce with little distraction",'woocommerce'),$.a),m(Object(u.__)("Easily find and favorite your extensions",'woocommerce'),Object(u.__)("They'll appear in the top level of the navigation for quick access",'woocommerce'),te.a)]})};var ce=a(122),re=(a(557),a(30));const ne=Object(re.applyFilters)("woocommerce_admin_homepage_default_stats",["revenue/total_sales","revenue/net_revenue","orders/orders_count","products/items_sold","jetpack/stats/visitors","jetpack/stats/views"]),oe=["revenue/net_revenue","products/items_sold"];var le=a(525);var se=Object(n.withSelect)((e,{stats:t,query:a})=>{if(0!==t.length)return Object(le.a)(e,t,a)})(({stats:e,primaryData:t,secondaryData:a,primaryRequesting:r,secondaryRequesting:n,primaryError:o,secondaryError:l,query:s})=>{const{formatAmount:m,getCurrencyConfig:d}=Object(c.useContext)(J.a);if(o||l)return null;const b=Object(i.getPersistedQuery)(s),p=d();return Object(c.createElement)("ul",{className:A()("woocommerce-stats-overview__stats",{"is-even":e.length%2==0})},e.map(e=>{if(r||n)return Object(c.createElement)(v.SummaryNumberPlaceholder,{key:e.stat});const{primaryValue:o,secondaryValue:l,delta:s,reportUrl:i,reportUrlType:A}=Object(le.b)({indicator:e,primaryData:t,secondaryData:a,currency:p,formatAmount:m,persistedQuery:b});return Object(c.createElement)(v.SummaryNumber,{isHomescreen:!0,key:e.stat,href:i,hrefType:A,label:e.label,value:o,prevLabel:Object(u.__)("Previous period:",'woocommerce'),prevValue:l,delta:s,onLinkClickCallback:()=>{Object(w.recordEvent)("statsoverview_indicators_click",{key:e.stat})}})}))}),ie=a(10);Object(u.__)("Facebook for WooCommerce",'woocommerce'),Object(u.__)("Jetpack",'woocommerce'),Object(u.__)("Klarna Checkout for WooCommerce",'woocommerce'),Object(u.__)("Klarna Payments for WooCommerce",'woocommerce'),Object(u.__)("Mailchimp for WooCommerce",'woocommerce'),Object(u.__)("Creative Mail for WooCommerce",'woocommerce'),Object(u.__)("WooCommerce PayPal",'woocommerce'),Object(u.__)("WooCommerce Stripe",'woocommerce'),Object(u.__)("WooCommerce PayFast",'woocommerce'),Object(u.__)("WooCommerce Payments",'woocommerce'),Object(u.__)("WooCommerce Shipping & Tax",'woocommerce'),Object(u.__)("WooCommerce Shipping & Tax",'woocommerce'),Object(u.__)("WooCommerce Shipping & Tax",'woocommerce'),Object(u.__)("WooCommerce ShipStation Gateway",'woocommerce'),Object(u.__)("Mercado Pago payments for WooCommerce",'woocommerce'),Object(u.__)("Google Listings and Ads",'woocommerce'),Object(u.__)("Razorpay",'woocommerce'),Object(u.__)("MailPoet",'woocommerce');let me;!function(e){e.UPDATE_ACTIVE_PLUGINS="UPDATE_ACTIVE_PLUGINS",e.UPDATE_INSTALLED_PLUGINS="UPDATE_INSTALLED_PLUGINS",e.SET_IS_REQUESTING="SET_IS_REQUESTING",e.SET_ERROR="SET_ERROR",e.UPDATE_JETPACK_CONNECTION="UPDATE_JETPACK_CONNECTION",e.UPDATE_JETPACK_CONNECT_URL="UPDATE_JETPACK_CONNECT_URL",e.SET_PAYPAL_ONBOARDING_STATUS="SET_PAYPAL_ONBOARDING_STATUS",e.SET_RECOMMENDED_PLUGINS="SET_RECOMMENDED_PLUGINS"}(me||(me={}));const Ae=n.controls&&n.controls.dispatch?n.controls.dispatch:ie.dispatch;n.controls&&n.controls.resolveSelect?n.controls.resolveSelect:ie.select;const de=e=>Ae("core/notices","createNotice","error",e);const be=({onClickInstall:e,onClickDismiss:t,isBusy:a,jetpackInstallState:r})=>Object(c.createElement)("article",{className:"woocommerce-stats-overview__install-jetpack-promo"},Object(c.createElement)("div",{className:"woocommerce-stats-overview__install-jetpack-promo__content"},Object(c.createElement)(v.H,null,Object(u.__)("Get traffic stats with Jetpack",'woocommerce')),Object(c.createElement)("p",null,Object(u.__)("Keep an eye on your views and visitors metrics with Jetpack. Requires Jetpack plugin and a WordPress.com account.",'woocommerce'))),Object(c.createElement)("footer",null,Object(c.createElement)(O.Button,{isSecondary:!0,onClick:()=>{Object(w.recordEvent)("statsoverview_install_jetpack"),e()},disabled:a,isBusy:a},(e=>({unavailable:Object(u.__)("Get Jetpack",'woocommerce'),installed:Object(u.__)("Activate Jetpack",'woocommerce'),activated:Object(u.__)("Connect Jetpack",'woocommerce')}[e]||""))(r)),Object(c.createElement)(O.Button,{isTertiary:!0,onClick:()=>{Object(w.recordEvent)("statsoverview_dismiss_install_jetpack"),t()},disabled:a,isBusy:a},Object(u.__)("No thanks",'woocommerce')))),ue=()=>{const{currentUserCan:e}=Object(s.useUser)(),{updateUserPreferences:t,...a}=Object(s.useUserPreferences)(),{canUserInstallPlugins:r,jetpackInstallState:o,isBusy:i}=Object(n.useSelect)(t=>{const{getPluginInstallState:a,isPluginsRequesting:c}=t(s.PLUGINS_STORE_NAME),r=a("jetpack");return{isBusy:c("getJetpackConnectUrl")||c("installPlugins")||c("activatePlugins"),jetpackInstallState:r,canUserInstallPlugins:e("install_plugins")}}),{installJetpackAndConnect:m}=Object(n.useDispatch)(s.PLUGINS_STORE_NAME);if(!r)return null;return Object(c.createElement)(be,{jetpackInstallState:o,isBusy:i,onClickInstall:()=>{m(de,l.e)},onClickDismiss:()=>{const e=a.homepage_stats||{};e.installJetpackDismissed=!0,t({homepage_stats:e})}})},{performanceIndicators:pe=[]}=Object(l.f)("dataEndpoints",{performanceIndicators:[]}),ve=pe.filter(e=>ne.includes(e.stat));var Oe=()=>{const{updateUserPreferences:e,...t}=Object(s.useUserPreferences)(),a=Object(o.get)(t,["homepage_stats","hiddenStats"],oe),r=Object(n.useSelect)(e=>e(s.PLUGINS_STORE_NAME).isJetpackConnected(),[]),l=(t.homepage_stats||{}).installJetpackDismissed,m=ve.filter(e=>!a.includes(e.stat)),A=Object(c.createElement)(G.Text,{variant:"title.small",size:"20",lineHeight:"28px"},Object(u.__)("Stats overview",'woocommerce'));return Object(c.createElement)(O.Card,{size:"large",className:"woocommerce-stats-overview woocommerce-homescreen-card"},Object(c.createElement)(O.CardHeader,{size:"medium"},Object(c.createElement)(ce.Experiment,{name:"woocommerce_test_experiment",defaultExperience:A,treatmentExperience:A,loadingExperience:A}),Object(c.createElement)(v.EllipsisMenu,{label:Object(u.__)("Choose which values to display",'woocommerce'),renderContent:()=>Object(c.createElement)(c.Fragment,null,Object(c.createElement)(v.MenuTitle,null,Object(u.__)("Display stats:",'woocommerce')),ve.map(t=>{const r=!a.includes(t.stat);return Object(c.createElement)(v.MenuItem,{checked:r,isCheckbox:!0,isClickable:!0,key:t.stat,onInvoke:()=>(t=>{const c=Object(o.xor)(a,[t]);e({homepage_stats:{hiddenStats:c}}),Object(w.recordEvent)("statsoverview_indicators_toggle",{indicator_name:t,status:c.includes(t)?"off":"on"})})(t.stat)},t.label)}))})),Object(c.createElement)(O.TabPanel,{className:"woocommerce-stats-overview__tabs",onSelect:e=>{Object(w.recordEvent)("statsoverview_date_picker_update",{period:e})},tabs:[{title:Object(u.__)("Today",'woocommerce'),name:"today"},{title:Object(u.__)("Week to date",'woocommerce'),name:"week"},{title:Object(u.__)("Month to date",'woocommerce'),name:"month"}]},e=>Object(c.createElement)(c.Fragment,null,!r&&!l&&Object(c.createElement)(ue,null),Object(c.createElement)(se,{query:{period:e.name,compare:"previous_period"},stats:m}))),Object(c.createElement)(O.CardFooter,null,Object(c.createElement)(v.Link,{className:"woocommerce-stats-overview__more-btn",href:Object(i.getNewPath)({},"/analytics/overview"),type:"wc-admin",onClick:()=>{Object(w.recordEvent)("statsoverview_indicators_click",{key:"view_detailed_stats"})}},Object(u.__)("View detailed stats",'woocommerce'))))},we=a(543),fe=a(540);const he=()=>Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"517",height:"160",fill:"none"},Object(c.createElement)("defs",null),Object(c.createElement)("g",{clipPath:"url(#clip0)"},Object(c.createElement)("path",{className:"fill-theme-color",d:"M0 0h517v160H0z"}),Object(c.createElement)("path",{fill:"#fff",fillOpacity:".65",d:"M125.85 217.924l-1.055-.321c-34.868-10.598-101.138-36.619-95.91-101.998 7.156-89.462 89.192-28.933 194.231-87.715 161.485-90.37 242.851-42.249 253.957 78.717 10.842 118.101-82.942 115.494-138.938 123.306-118.486 16.529-165.516 2.231-212.285-11.989z"}),Object(c.createElement)("path",{fill:"#F6F7F7",d:"M125 33h267v185H125z"}),Object(c.createElement)("path",{fill:"#CCC",d:"M327.367 93.974a6.417 6.417 0 00-6.285 7.671 6.418 6.418 0 005.035 5.044 6.405 6.405 0 006.579-2.73 6.427 6.427 0 00-.797-8.105 6.404 6.404 0 00-4.532-1.88zm0 11.615a5.18 5.18 0 01-3.668-1.522 5.2 5.2 0 01-1.23-5.38 5.196 5.196 0 014.168-3.447 5.18 5.18 0 014.967 2.137 5.201 5.201 0 01-1.546 7.453 5.186 5.186 0 01-2.706.75l.015.009z"}),Object(c.createElement)("path",{fill:"#CCC",d:"M329.332 103.181l.806-.811a.354.354 0 00.078-.391.365.365 0 00-.078-.116l-1.456-1.461 1.456-1.458a.363.363 0 00.105-.254.36.36 0 00-.105-.254l-.806-.81a.354.354 0 00-.254-.106.356.356 0 00-.255.106l-1.456 1.458-1.456-1.458a.35.35 0 00-.253-.105.355.355 0 00-.253.105l-.809.826a.362.362 0 00-.078.39.363.363 0 00.078.117l1.456 1.458-1.456 1.461a.369.369 0 00-.105.254.356.356 0 00.105.254l.809.81a.354.354 0 00.39.078.354.354 0 00.116-.078l1.456-1.461 1.456 1.461a.366.366 0 00.509-.015zM314.559 145.63a6.413 6.413 0 00-2.722-4.13 6.429 6.429 0 00-4.883-.957l-.192.046c-.346.08-.684.191-1.01.33a6.437 6.437 0 00-3.892 5.926 6.433 6.433 0 003.907 5.916l.183.074a6.402 6.402 0 007.999-2.997 6.423 6.423 0 00.735-3.001 6.196 6.196 0 00-.125-1.207zm-1.184 1.978a.028.028 0 010 .018v.058a5.213 5.213 0 01-.913 2.181 5.191 5.191 0 01-4.068 2.146 5.162 5.162 0 01-3.445-1.2 5.2 5.2 0 01.693-8.443 4.936 4.936 0 011.026-.464l.192-.058a5.176 5.176 0 014.527.859 5.201 5.201 0 012.058 4.129 4.906 4.906 0 01-.07.774z"}),Object(c.createElement)("path",{fill:"#CCC",d:"M310.223 149.613l.808-.81a.349.349 0 00.078-.116.348.348 0 000-.275.353.353 0 00-.078-.117l-1.455-1.458 1.455-1.458a.36.36 0 00.079-.393.36.36 0 00-.079-.117l-.808-.807a.362.362 0 00-.391-.078.349.349 0 00-.116.078l-1.455 1.464-1.465-1.464a.366.366 0 00-.254-.106.36.36 0 00-.253.106l-.809.807a.358.358 0 00-.078.393.358.358 0 00.078.117l1.459 1.458-1.459 1.458a.356.356 0 00-.078.392.382.382 0 00.078.116l.809.81a.365.365 0 00.253.106.366.366 0 00.254-.106l1.458-1.458 1.456 1.458a.353.353 0 00.513 0zM295.605 51.781l-.583-.587a.297.297 0 00-.219-.093.31.31 0 00-.22.093l-3.662 3.635-1.547-1.562a.308.308 0 00-.437 0l-.589.584a.313.313 0 00-.093.22.307.307 0 00.093.22l2.35 2.372a.31.31 0 00.339.07.297.297 0 00.1-.07l4.465-4.439a.316.316 0 00.097-.22.313.313 0 00-.094-.223zm0 0l-.583-.587a.297.297 0 00-.219-.093.31.31 0 00-.22.093l-3.662 3.635-1.547-1.562a.308.308 0 00-.437 0l-.589.584a.313.313 0 00-.093.22.307.307 0 00.093.22l2.35 2.372a.31.31 0 00.339.07.297.297 0 00.1-.07l4.465-4.439a.316.316 0 00.097-.22.313.313 0 00-.094-.223zm0 0l-.583-.587a.297.297 0 00-.219-.093.31.31 0 00-.22.093l-3.662 3.635-1.547-1.562a.308.308 0 00-.437 0l-.589.584a.313.313 0 00-.093.22.307.307 0 00.093.22l2.35 2.372a.31.31 0 00.339.07.297.297 0 00.1-.07l4.465-4.439a.316.316 0 00.097-.22.313.313 0 00-.094-.223zm0 0l-.583-.587a.297.297 0 00-.219-.093.31.31 0 00-.22.093l-3.662 3.635-1.547-1.562a.308.308 0 00-.437 0l-.589.584a.313.313 0 00-.093.22.307.307 0 00.093.22l2.35 2.372a.31.31 0 00.339.07.297.297 0 00.1-.07l4.465-4.439a.316.316 0 00.097-.22.313.313 0 00-.094-.223zm-3.628-4.619a6.402 6.402 0 00-5.921 3.963 6.432 6.432 0 001.389 6.996 6.404 6.404 0 009.86-.973 6.428 6.428 0 00-.797-8.106 6.403 6.403 0 00-4.531-1.88zm0 11.616a5.186 5.186 0 01-4.793-3.208 5.2 5.2 0 011.124-5.663 5.186 5.186 0 015.654-1.126 5.204 5.204 0 011.685 8.476 5.17 5.17 0 01-3.67 1.515v.006zm3.628-6.99l-.583-.588a.298.298 0 00-.219-.093.31.31 0 00-.22.093l-3.662 3.635-1.547-1.562a.308.308 0 00-.437 0l-.589.584a.313.313 0 00-.093.22.307.307 0 00.093.22l2.35 2.372c.029.03.063.053.1.07a.31.31 0 00.239 0 .297.297 0 00.1-.07l4.465-4.438a.304.304 0 00.075-.347.31.31 0 00-.072-.103v.006zm0 0l-.583-.588a.298.298 0 00-.219-.093.31.31 0 00-.22.093l-3.662 3.635-1.547-1.562a.308.308 0 00-.437 0l-.589.584a.313.313 0 00-.093.22.307.307 0 00.093.22l2.35 2.372c.029.03.063.053.1.07a.31.31 0 00.239 0 .297.297 0 00.1-.07l4.465-4.438a.304.304 0 00.075-.347.31.31 0 00-.072-.103v.006zm0 0l-.583-.588a.298.298 0 00-.219-.093.31.31 0 00-.22.093l-3.662 3.635-1.547-1.562a.308.308 0 00-.437 0l-.589.584a.313.313 0 00-.093.22.307.307 0 00.093.22l2.35 2.372c.029.03.063.053.1.07a.31.31 0 00.239 0 .297.297 0 00.1-.07l4.465-4.438a.304.304 0 00.075-.347.31.31 0 00-.072-.103v.006zm0 0l-.583-.588a.298.298 0 00-.219-.093.31.31 0 00-.22.093l-3.662 3.635-1.547-1.562a.308.308 0 00-.437 0l-.589.584a.313.313 0 00-.093.22.307.307 0 00.093.22l2.35 2.372c.029.03.063.053.1.07a.31.31 0 00.239 0 .297.297 0 00.1-.07l4.465-4.438a.304.304 0 00.075-.347.31.31 0 00-.072-.103v.006zm0 0l-.583-.588a.298.298 0 00-.219-.093.31.31 0 00-.22.093l-3.662 3.635-1.547-1.562a.308.308 0 00-.437 0l-.589.584a.313.313 0 00-.093.22.307.307 0 00.093.22l2.35 2.372c.029.03.063.053.1.07a.31.31 0 00.239 0 .297.297 0 00.1-.07l4.465-4.438a.304.304 0 00.075-.347.31.31 0 00-.072-.103v.006zM306.96 98.595l-.582-.59a.311.311 0 00-.22-.093.308.308 0 00-.22.093l-3.662 3.635-1.547-1.562a.31.31 0 00-.22-.094.303.303 0 00-.22.094l-.589.584a.31.31 0 000 .44l2.347 2.372c.029.03.063.053.101.069a.302.302 0 00.339-.069l4.467-4.438a.312.312 0 00.097-.22.308.308 0 00-.091-.22zm0 0l-.582-.59a.311.311 0 00-.22-.093.308.308 0 00-.22.093l-3.662 3.635-1.547-1.562a.31.31 0 00-.22-.094.303.303 0 00-.22.094l-.589.584a.31.31 0 000 .44l2.347 2.372c.029.03.063.053.101.069a.302.302 0 00.339-.069l4.467-4.438a.312.312 0 00.097-.22.308.308 0 00-.091-.22zm0 0l-.582-.59a.311.311 0 00-.22-.093.308.308 0 00-.22.093l-3.662 3.635-1.547-1.562a.31.31 0 00-.22-.094.303.303 0 00-.22.094l-.589.584a.31.31 0 000 .44l2.347 2.372c.029.03.063.053.101.069a.302.302 0 00.339-.069l4.467-4.438a.312.312 0 00.097-.22.308.308 0 00-.091-.22zm0 0l-.582-.59a.311.311 0 00-.22-.093.308.308 0 00-.22.093l-3.662 3.635-1.547-1.562a.31.31 0 00-.22-.094.303.303 0 00-.22.094l-.589.584a.31.31 0 000 .44l2.347 2.372c.029.03.063.053.101.069a.302.302 0 00.339-.069l4.467-4.438a.312.312 0 00.097-.22.308.308 0 00-.091-.22zm-3.628-4.621a6.417 6.417 0 00-6.285 7.671 6.412 6.412 0 005.035 5.044 6.401 6.401 0 006.578-2.73 6.42 6.42 0 00-.797-8.105 6.4 6.4 0 00-4.531-1.88zm0 11.615a5.18 5.18 0 01-4.793-3.208 5.201 5.201 0 013.781-7.085 5.179 5.179 0 015.326 2.21c.57.854.874 1.86.874 2.887a5.202 5.202 0 01-1.516 3.677 5.178 5.178 0 01-3.672 1.516v.003zm3.628-6.99l-.582-.59a.31.31 0 00-.22-.094.308.308 0 00-.22.093l-3.662 3.635-1.547-1.562a.31.31 0 00-.22-.094.302.302 0 00-.22.094l-.589.584a.31.31 0 000 .44l2.347 2.372c.029.03.063.053.101.069a.302.302 0 00.339-.069l4.467-4.438a.3.3 0 00.098-.22.304.304 0 00-.092-.223v.002zm0 0l-.582-.59a.31.31 0 00-.22-.094.308.308 0 00-.22.093l-3.662 3.635-1.547-1.562a.31.31 0 00-.22-.094.302.302 0 00-.22.094l-.589.584a.31.31 0 000 .44l2.347 2.372c.029.03.063.053.101.069a.302.302 0 00.339-.069l4.467-4.438a.3.3 0 00.098-.22.304.304 0 00-.092-.223v.002zm0 0l-.582-.59a.31.31 0 00-.22-.094.308.308 0 00-.22.093l-3.662 3.635-1.547-1.562a.31.31 0 00-.22-.094.302.302 0 00-.22.094l-.589.584a.31.31 0 000 .44l2.347 2.372c.029.03.063.053.101.069a.302.302 0 00.339-.069l4.467-4.438a.3.3 0 00.098-.22.304.304 0 00-.092-.223v.002zm0 0l-.582-.59a.31.31 0 00-.22-.094.308.308 0 00-.22.093l-3.662 3.635-1.547-1.562a.31.31 0 00-.22-.094.302.302 0 00-.22.094l-.589.584a.31.31 0 000 .44l2.347 2.372c.029.03.063.053.101.069a.302.302 0 00.339-.069l4.467-4.438a.3.3 0 00.098-.22.304.304 0 00-.092-.223v.002zm0 0l-.582-.59a.31.31 0 00-.22-.094.308.308 0 00-.22.093l-3.662 3.635-1.547-1.562a.31.31 0 00-.22-.094.302.302 0 00-.22.094l-.589.584a.31.31 0 000 .44l2.347 2.372c.029.03.063.053.101.069a.302.302 0 00.339-.069l4.467-4.438a.3.3 0 00.098-.22.304.304 0 00-.092-.223v.002zM287.774 145.407l-.582-.59a.303.303 0 00-.101-.069.302.302 0 00-.339.069l-3.662 3.634-1.547-1.562a.31.31 0 00-.439 0l-.589.584a.301.301 0 00-.07.34c.017.038.04.072.07.1l2.346 2.372a.301.301 0 00.339.07.321.321 0 00.101-.07l4.467-4.438a.309.309 0 00.097-.219.309.309 0 00-.091-.221zm0 0l-.582-.59a.303.303 0 00-.101-.069.302.302 0 00-.339.069l-3.662 3.634-1.547-1.562a.31.31 0 00-.439 0l-.589.584a.301.301 0 00-.07.34c.017.038.04.072.07.1l2.346 2.372a.301.301 0 00.339.07.321.321 0 00.101-.07l4.467-4.438a.309.309 0 00.097-.219.309.309 0 00-.091-.221zm0 0l-.582-.59a.303.303 0 00-.101-.069.302.302 0 00-.339.069l-3.662 3.634-1.547-1.562a.31.31 0 00-.439 0l-.589.584a.301.301 0 00-.07.34c.017.038.04.072.07.1l2.346 2.372a.301.301 0 00.339.07.321.321 0 00.101-.07l4.467-4.438a.309.309 0 00.097-.219.309.309 0 00-.091-.221zm0 0l-.582-.59a.303.303 0 00-.101-.069.302.302 0 00-.339.069l-3.662 3.634-1.547-1.562a.31.31 0 00-.439 0l-.589.584a.301.301 0 00-.07.34c.017.038.04.072.07.1l2.346 2.372a.301.301 0 00.339.07.321.321 0 00.101-.07l4.467-4.438a.309.309 0 00.097-.219.309.309 0 00-.091-.221zm-3.628-4.622a6.416 6.416 0 00-6.285 7.671 6.414 6.414 0 005.035 5.044 6.393 6.393 0 003.702-.365 6.418 6.418 0 003.957-5.931 6.43 6.43 0 00-1.877-4.539 6.403 6.403 0 00-4.532-1.88zm0 11.616a5.181 5.181 0 01-2.882-.876 5.2 5.2 0 011.87-9.418 5.186 5.186 0 015.326 2.21c.57.855.874 1.859.874 2.887a5.191 5.191 0 01-1.515 3.678 5.163 5.163 0 01-3.673 1.516v.003zm3.628-6.991l-.582-.59a.303.303 0 00-.101-.069.302.302 0 00-.339.069l-3.662 3.634-1.547-1.562a.31.31 0 00-.439 0l-.589.584a.301.301 0 00-.07.34c.017.038.04.072.07.1l2.346 2.372a.301.301 0 00.339.07.321.321 0 00.101-.07l4.467-4.438a.297.297 0 00.098-.22.293.293 0 00-.023-.121.284.284 0 00-.069-.102v.003zm0 0l-.582-.59a.303.303 0 00-.101-.069.302.302 0 00-.339.069l-3.662 3.634-1.547-1.562a.31.31 0 00-.439 0l-.589.584a.301.301 0 00-.07.34c.017.038.04.072.07.1l2.346 2.372a.301.301 0 00.339.07.321.321 0 00.101-.07l4.467-4.438a.297.297 0 00.098-.22.293.293 0 00-.023-.121.284.284 0 00-.069-.102v.003zm0 0l-.582-.59a.303.303 0 00-.101-.069.302.302 0 00-.339.069l-3.662 3.634-1.547-1.562a.31.31 0 00-.439 0l-.589.584a.301.301 0 00-.07.34c.017.038.04.072.07.1l2.346 2.372a.301.301 0 00.339.07.321.321 0 00.101-.07l4.467-4.438a.297.297 0 00.098-.22.293.293 0 00-.023-.121.284.284 0 00-.069-.102v.003zm0 0l-.582-.59a.303.303 0 00-.101-.069.302.302 0 00-.339.069l-3.662 3.634-1.547-1.562a.31.31 0 00-.439 0l-.589.584a.301.301 0 00-.07.34c.017.038.04.072.07.1l2.346 2.372a.301.301 0 00.339.07.321.321 0 00.101-.07l4.467-4.438a.297.297 0 00.098-.22.293.293 0 00-.023-.121.284.284 0 00-.069-.102v.003zm0 0l-.582-.59a.303.303 0 00-.101-.069.302.302 0 00-.339.069l-3.662 3.634-1.547-1.562a.31.31 0 00-.439 0l-.589.584a.301.301 0 00-.07.34c.017.038.04.072.07.1l2.346 2.372a.301.301 0 00.339.07.321.321 0 00.101-.07l4.467-4.438a.297.297 0 00.098-.22.293.293 0 00-.023-.121.284.284 0 00-.069-.102v.003zM349.568 75.187l-.583-.578a.298.298 0 00-.219-.093.306.306 0 00-.22.093l-1.904 1.895-.687.682-.058.055-.357.358-.638.632-1.547-1.562a.308.308 0 00-.44 0l-.589.584a.312.312 0 00-.093.22.307.307 0 00.093.22l2.216 2.241.131.132a.304.304 0 00.44.003l1.849-1.835.61-.61 2.002-1.99a.306.306 0 00-.006-.447zm0 0l-.583-.578a.298.298 0 00-.219-.093.306.306 0 00-.22.093l-1.904 1.895-.687.682-.058.055-.357.358-.638.632-1.547-1.562a.308.308 0 00-.44 0l-.589.584a.312.312 0 00-.093.22.307.307 0 00.093.22l2.216 2.241.131.132a.304.304 0 00.44.003l1.849-1.835.61-.61 2.002-1.99a.306.306 0 00-.006-.447zm0 0l-.583-.578a.298.298 0 00-.219-.093.306.306 0 00-.22.093l-1.904 1.895-.687.682-.058.055-.357.358-.638.632-1.547-1.562a.308.308 0 00-.44 0l-.589.584a.312.312 0 00-.093.22.307.307 0 00.093.22l2.216 2.241.131.132a.304.304 0 00.44.003l1.849-1.835.61-.61 2.002-1.99a.306.306 0 00-.006-.447zm0 0l-.583-.578a.298.298 0 00-.219-.093.306.306 0 00-.22.093l-1.904 1.895-.687.682-.058.055-.357.358-.638.632-1.547-1.562a.308.308 0 00-.44 0l-.589.584a.312.312 0 00-.093.22.307.307 0 00.093.22l2.216 2.241.131.132a.304.304 0 00.44.003l1.849-1.835.61-.61 2.002-1.99a.306.306 0 00-.006-.447zm-3.628-4.619a6.402 6.402 0 00-4.17 1.5 6.422 6.422 0 00-1.386 8.21 6.415 6.415 0 003.447 2.79 6.4 6.4 0 004.477-.092c.317-.126.624-.278.915-.456a6.418 6.418 0 002.93-7.236 6.422 6.422 0 00-2.309-3.413 6.4 6.4 0 00-3.904-1.303zm2.273 11.087a5.056 5.056 0 01-.665.272 5.213 5.213 0 01-3.406-.067 5.197 5.197 0 01-1.681-8.731 5.182 5.182 0 018.501 2.56 5.195 5.195 0 01-2.749 5.966zm1.355-6.468l-.583-.578a.298.298 0 00-.219-.093.306.306 0 00-.22.093l-1.904 1.895-.687.682-.058.055-.357.358-.638.632-1.547-1.562a.308.308 0 00-.44 0l-.589.584a.312.312 0 00-.093.22.307.307 0 00.093.22l2.216 2.241.131.132a.304.304 0 00.44.003l1.849-1.835.61-.61 2.002-1.99a.306.306 0 00-.006-.447zm0 0l-.583-.578a.298.298 0 00-.219-.093.306.306 0 00-.22.093l-1.904 1.895-.687.682-.058.055-.357.358-.638.632-1.547-1.562a.308.308 0 00-.44 0l-.589.584a.312.312 0 00-.093.22.307.307 0 00.093.22l2.216 2.241.131.132a.304.304 0 00.44.003l1.849-1.835.61-.61 2.002-1.99a.306.306 0 00-.006-.447zm0 0l-.583-.578a.298.298 0 00-.219-.093.306.306 0 00-.22.093l-1.904 1.895-.687.682-.058.055-.357.358-.638.632-1.547-1.562a.308.308 0 00-.44 0l-.589.584a.312.312 0 00-.093.22.307.307 0 00.093.22l2.216 2.241.131.132a.304.304 0 00.44.003l1.849-1.835.61-.61 2.002-1.99a.306.306 0 00-.006-.447zm0 0l-.583-.578a.298.298 0 00-.219-.093.306.306 0 00-.22.093l-1.904 1.895-.687.682-.058.055-.357.358-.638.632-1.547-1.562a.308.308 0 00-.44 0l-.589.584a.312.312 0 00-.093.22.307.307 0 00.093.22l2.216 2.241.131.132a.304.304 0 00.44.003l1.849-1.835.61-.61 2.002-1.99a.306.306 0 00-.006-.447zm0 0l-.583-.578a.298.298 0 00-.219-.093.306.306 0 00-.22.093l-1.904 1.895-.687.682-.058.055-.357.358-.638.632-1.547-1.562a.308.308 0 00-.44 0l-.589.584a.312.312 0 00-.093.22.307.307 0 00.093.22l2.216 2.241.131.132a.304.304 0 00.44.003l1.849-1.835.61-.61 2.002-1.99a.306.306 0 00-.006-.447z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M268.92 47H150.08c-3.358 0-6.08 2.91-6.08 6.5s2.722 6.5 6.08 6.5h118.84c3.358 0 6.08-2.91 6.08-6.5s-2.722-6.5-6.08-6.5z",opacity:".6"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M321.919 71H150.081c-3.359 0-6.081 2.686-6.081 6s2.722 6 6.081 6h171.838c3.359 0 6.081-2.686 6.081-6s-2.722-6-6.081-6z",opacity:".3"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M279.927 94H150.073c-3.354 0-6.073 2.91-6.073 6.5s2.719 6.5 6.073 6.5h129.854c3.354 0 6.073-2.91 6.073-6.5s-2.719-6.5-6.073-6.5z",opacity:".6"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M321.919 118H150.081c-3.359 0-6.081 2.686-6.081 6s2.722 6 6.081 6h171.838c3.359 0 6.081-2.686 6.081-6s-2.722-6-6.081-6z",opacity:".3"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M261.916 141H150.084c-3.36 0-6.084 2.686-6.084 6s2.724 6 6.084 6h111.832c3.36 0 6.084-2.686 6.084-6s-2.724-6-6.084-6z",opacity:".1"}),Object(c.createElement)("path",{fill:"#CCC",d:"M316.161 47.162a6.4 6.4 0 00-5.92 3.963 6.432 6.432 0 001.389 6.996 6.404 6.404 0 009.86-.973 6.428 6.428 0 00-.797-8.106 6.404 6.404 0 00-4.532-1.88zm0 11.616a5.18 5.18 0 01-2.882-.876 5.198 5.198 0 011.87-9.417 5.181 5.181 0 015.326 2.21c.57.854.874 1.859.874 2.887a5.195 5.195 0 01-3.201 4.8c-.63.26-1.305.392-1.987.39v.006z"}),Object(c.createElement)("path",{fill:"#CCC",d:"M318.127 56.366l.808-.807a.35.35 0 00.078-.117.346.346 0 000-.276.35.35 0 00-.078-.117l-1.458-1.458 1.455-1.458a.35.35 0 00.078-.117.346.346 0 000-.277.35.35 0 00-.078-.117l-.808-.807a.364.364 0 00-.254-.105.358.358 0 00-.253.105l-1.456 1.458-1.455-1.458a.361.361 0 00-.51 0l-.806.807a.365.365 0 00-.107.255.365.365 0 00.107.256l1.456 1.458-1.453 1.455a.365.365 0 00-.079.394.381.381 0 00.079.116l.806.807a.353.353 0 00.255.106.363.363 0 00.255-.106l1.455-1.458 1.456 1.458a.352.352 0 00.253.107.356.356 0 00.254-.104zM369.966 70.568a6.402 6.402 0 00-5.921 3.963 6.432 6.432 0 001.389 6.995 6.404 6.404 0 0010.94-4.539 6.403 6.403 0 00-3.953-5.935 6.383 6.383 0 00-2.455-.484zm0 11.616a5.179 5.179 0 01-3.17-1.076 5.203 5.203 0 01-1.621-6.136 5.187 5.187 0 015.512-3.13 5.186 5.186 0 012.985 1.519 5.2 5.2 0 01-1.158 8.146 5.18 5.18 0 01-2.548.674v.003z"}),Object(c.createElement)("path",{fill:"#CCC",d:"M371.925 79.772l.808-.807a.363.363 0 000-.51l-1.458-1.459 1.458-1.458a.348.348 0 00.078-.116.343.343 0 000-.275.346.346 0 00-.078-.116l-.808-.81a.358.358 0 00-.507 0l-1.452 1.458-1.456-1.458a.358.358 0 00-.507 0l-.808.81a.36.36 0 00-.078.391.348.348 0 00.078.116l1.455 1.458-1.455 1.458a.364.364 0 000 .51l.808.808a.35.35 0 00.507 0l1.456-1.458 1.458 1.458a.358.358 0 00.501 0z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M344 94h90v80h-90z"}),Object(c.createElement)("path",{fill:"#fff",fillOpacity:".65",d:"M364.607 150.419H357v25.307h7.607v-25.307zM379.317 132h-7.607v43.455h7.607V132zM394.026 136h-7.607v61.603h7.607V136zM408.736 123h-7.607v55.726h7.607V123zM423.445 132.197h-7.607v38.342h7.607v-38.342z",opacity:".2"}),Object(c.createElement)("path",{fill:"#fff",d:"M356.331 134l-.331-.495 15.486-21.052 13.65 14.005 11.039-17.456 4.84 5.868 13.168-11.268 14.625 14.021L451.763 99l.237.594-23.213 18.833-14.619-14.015-13.201 11.297-4.748-5.756-11.014 17.418-13.677-14.031L356.331 134z"})),Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"clip0"},Object(c.createElement)("path",{fill:"#fff",d:"M0 0h517v160H0z"})))),je=({title:e,body:t})=>Object(c.createElement)("div",{className:"woocommerce__welcome-modal__page-content"},Object(c.createElement)("h2",{className:"woocommerce__welcome-modal__page-content__header"},e),Object(c.createElement)("p",{className:"woocommerce__welcome-modal__page-content__body"},t));a(561);const Ee={image:Object(c.createElement)(he,null),content:Object(c.createElement)(je,{title:Object(u.__)("Welcome to your new store management experience",'woocommerce'),body:j()({mixedString:Object(u.__)("We've designed your navigation and home screen to help you focus on the things that matter most in managing your online store. {{link}}Learn more{{/link}} about these changes – or explore on your own.",'woocommerce'),components:{link:Object(c.createElement)(v.Link,{href:"https://wordpress.com/support/new-woocommerce-experience-on-wordpress-dot-com/",type:"external",target:"_blank"})}})})};function ge({onClose:e}){const[t,a]=Object(c.useState)(!0);if(Object(c.useEffect)(()=>{Object(w.recordEvent)("welcome_from_calypso_modal_open")},[]),!t)return null;const r=A()("woocommerce__welcome-modal","woocommerce__welcome-from-calypso-modal");return Object(c.createElement)(O.Guide,{onFinish:()=>{e&&e(),a(!1),Object(w.recordEvent)("welcome_from_calypso_modal_close")},className:r,finishButtonText:Object(u.__)("Let's go",'woocommerce'),pages:[Ee]})}a(562);const ke=[{image:Object(c.createElement)(he,null),content:Object(c.createElement)(je,{title:Object(u.__)("Welcome to your WooCommerce store’s online HQ!",'woocommerce'),body:Object(u.__)("Here's where you’ll find setup suggestions, tips and tools, and key data on your store’s performance and earnings — all the basics for store management and growth.",'woocommerce')})},{image:Object(c.createElement)(()=>Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"517",height:"160",fill:"none"},Object(c.createElement)("defs",null),Object(c.createElement)("g",{clipPath:"url(#clip0)"},Object(c.createElement)("path",{className:"fill-theme-color",d:"M0 0h517v160H0z"}),Object(c.createElement)("path",{fill:"#fff",fillOpacity:".65",d:"M33.576 185.926c-6.271-.911-14.742-.279-17.182 7.085-1.239 3.736-.178 7.645.98 11.08 4.89 14.682 11.49 28.444 19.643 40.954 3.897 5.965 8.253 11.884 9.592 19.504 1.34 7.619-.56 16.084-2.934 23.945-5.595 18.62-13.762 36.371-24.188 52.572 16.006 9.711 34.165 19.634 52.684 12.57 11.09-4.232 21.041-14.268 32.365-15.961 7.562-1.132 14.735 1.648 21.594 4.467a998.376 998.376 0 0195.343 45.227c13.023 7.042 26.207 14.481 40.901 16.153 14.694 1.672 31.486-3.518 41.947-17.66 1.611-2.179 3.241-4.669 5.483-5.546 2.02-.776 4.069-.045 5.952.688l113.896 44.033c6.241 2.411 12.718 4.853 19.534 3.832 6.606-.985 12.833-5.095 18.858-9.148 13.771-9.237 29.242-21.105 32.239-39.005 2.407-14.347-4.339-27.253-11.974-37.283-7.636-10.03-16.705-19.204-20.353-32.315-5.549-19.955 2.798-42.949 9.281-64.164a405.4 405.4 0 0013.244-58.574c2.588-17.377 4.004-35.179.91-51.659-3.095-16.481-11.265-31.624-24.089-38.27-16.746-8.681-38.828-2.057-54.255-13.347-13.04-9.513-17.58-29.035-25.856-44.316-14.698-27.146-41.453-40.923-67.958-50.405-28.1-10.066-58.213-16.679-88.607-10-6.962 1.527-14.047 3.833-20.152 8.649-9.36 7.388-15.196 19.616-22.986 29.33C156.104 57.468 100.341 49.156 68.22 87.48c-11.398 13.594-17.581 31.878-18.797 49.831-1.31 19.318 8.69 33.652 8.706 50.888-7.135 2.277-17.21-1.211-24.553-2.273z"}),Object(c.createElement)("path",{fill:"#F6F7F7",d:"M113 33h267v185H113z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M248.466 73.79h-114.69V47.88h114.69V73.79zm-114.015-.673h113.341V48.554H134.451v24.563z"}),Object(c.createElement)("path",{fill:"#CCC",d:"M155.702 56.63h-12.818v12.786h12.818V56.63z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M154.016 67.733h-13.493V54.274h13.493v13.46zm-12.819-.673h12.144V54.947h-12.144V67.06z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M225.267 56.966h-50v.673h50v-.673z",opacity:".7"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M235.311 61.677h-60.044v.673h60.044v-.673z",opacity:".5"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M225.267 66.387h-50v.673h50v-.673z",opacity:".2"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M248.466 147.142h-114.69v-25.909h114.69v25.909zm-114.015-.673h113.341v-24.563H134.451v24.563z"}),Object(c.createElement)("path",{fill:"#CCC",d:"M155.702 129.981h-12.818v12.786h12.818v-12.786z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M154.016 141.085h-13.493v-13.459h13.493v13.459zm-12.819-.673h12.144v-12.113h-12.144v12.113z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M235.311 130.318h-60.044v.673h60.044v-.673z",opacity:".7"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M225.267 135.028h-50v.673h50v-.673z",opacity:".5"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M215.267 139.739h-40v.673h40v-.673z",opacity:".2"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M289.62 110.465H174.93V84.557h114.69v25.908zm-114.016-.672h113.341V85.23H175.604v24.563z"}),Object(c.createElement)("path",{fill:"#CCC",d:"M267.694 106.092h12.818V93.305h-12.818v12.787z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M282.873 104.409H269.38V90.95h13.493v13.459zm-12.818-.673h12.144V91.623h-12.144v12.113z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M248.129 93.642h-60.044v.673h60.044v-.673z",opacity:".7"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M238.085 98.353h-50v.672h50v-.672z",opacity:".5"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M243.085 103.063h-55v.673h55v-.673z",opacity:".2"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M266.035 66.154a5.363 5.363 0 005.369-5.356 5.363 5.363 0 00-5.369-5.356c-2.966 0-5.37 2.398-5.37 5.356 0 2.958 2.404 5.356 5.37 5.356zM273.793 140.515c2.966 0 5.37-2.398 5.37-5.356 0-2.958-2.404-5.356-5.37-5.356a5.363 5.363 0 00-5.369 5.356 5.363 5.363 0 005.369 5.356zM153.706 102.83a5.363 5.363 0 005.37-5.356c0-2.959-2.404-5.357-5.37-5.357s-5.37 2.398-5.37 5.357a5.363 5.363 0 005.37 5.356z",opacity:".5"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M401.276 172h-70.552a8.79 8.79 0 01-6.169-2.517 8.532 8.532 0 01-2.555-6.078V131.56a3.368 3.368 0 011.078-2.471l37.386-34.915A8.113 8.113 0 01366 92c2.06 0 4.041.778 5.536 2.174l35.645 33.289a8.882 8.882 0 012.084 2.944 8.78 8.78 0 01.735 3.515v29.483c0 2.28-.919 4.466-2.555 6.078a8.79 8.79 0 01-6.169 2.517z"}),Object(c.createElement)("path",{fill:"#F0F0F0",d:"M393.267 106h-54.534c-2.614 0-4.733 2.053-4.733 4.585v52.83c0 2.532 2.119 4.585 4.733 4.585h54.534c2.614 0 4.733-2.053 4.733-4.585v-52.83c0-2.532-2.119-4.585-4.733-4.585z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M366 150.493l-41.579-20.323a1.667 1.667 0 00-1.631.091 1.695 1.695 0 00-.579.619 1.725 1.725 0 00-.211.826v34.967a5.345 5.345 0 001.543 3.767 5.261 5.261 0 003.725 1.56h77.464a5.261 5.261 0 003.725-1.56 5.345 5.345 0 001.543-3.767v-34.368c0-.352-.088-.699-.257-1.008a2.069 2.069 0 00-1.688-1.071 2.035 2.035 0 00-1.009.205L366 150.493zM390 118h-48v2h48v-2zM390 124h-48v2h48v-2z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M384 130h-42v2h42v-2z"}),Object(c.createElement)("path",{fill:"#fff",d:"M335 112a7 7 0 100-14 7 7 0 000 14z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M336 98a8.003 8.003 0 00-7.391 4.939 7.992 7.992 0 00-.455 4.622 7.993 7.993 0 006.285 6.285A8 8 0 00344 106a8.022 8.022 0 00-8-8zm-1.642 12.265l-4.1-4.1 1.15-1.15 2.954 2.954 6.234-6.234 1.15 1.15-7.388 7.38z"})),Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"clip0"},Object(c.createElement)("path",{fill:"#fff",d:"M0 0h517v160H0z"})))),null),content:Object(c.createElement)(je,{title:Object(u.__)("A personalized inbox full of relevant advice",'woocommerce'),body:Object(u.__)("Check your inbox for helpful growth tips tailored to your store and notifications about key traffic and sales milestones. We look forward to celebrating them with you!",'woocommerce')})},{image:Object(c.createElement)(()=>Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"517",height:"160",fill:"none"},Object(c.createElement)("defs",null),Object(c.createElement)("g",{clipPath:"url(#clip0)"},Object(c.createElement)("path",{className:"fill-theme-color",d:"M0 0h517v160H0z"}),Object(c.createElement)("path",{fill:"#fff",fillOpacity:".65",d:"M30.501 63.74c7.21-10.372 19.533-17.051 31.735-22.399l2.057-.888c12.774-5.469 25.944-10.008 39.27-14.127 7.129-2.21 14.285-4.313 21.448-6.389l5.615-1.62c7.29-2.106 14.596-4.21 21.916-6.315a6165.97 6165.97 0 0121.511-6.139 3346.684 3346.684 0 0127.597-7.677 2189.847 2189.847 0 0121.603-5.782c9.237-2.42 18.491-4.764 27.761-7.035 7.246-1.77 14.502-3.483 21.767-5.14a1152.381 1152.381 0 0128.025-6 940.985 940.985 0 0119.106-3.654l2.908-.52c27.416-4.852 55.724-8.222 82.193-2.775l.715.151c.355.074.71.148 1.067.23a87.181 87.181 0 0114.309 4.404c8.282 3.398 15.644 8.247 20.596 14.967 7.763 10.54 8.624 24.398 6.126 37.281-2.498 12.884-8.007 25.346-12.299 37.974-1.257 3.7-2.378 7.49-3.34 11.33-5.997 24.068-5.398 49.993 11.766 67.323a93.715 93.715 0 007.029 6.227c3.928 3.218 7.905 6.424 11.03 10.3 7.28 9.017 9.211 20.756 10.296 32.099 1.425 15.086 1.236 31.775-9.516 44.175-11.153 12.875-30.519 17.317-48.211 18.232-27.498 1.457-54.442-3.316-81.339-6.956-26.898-3.641-54.739-6.141-81.787-.263a121.18 121.18 0 00-17.082 5.062 108.9 108.9 0 00-21.21 10.677c-9.622 6.318-17.826 14.22-23.006 23.613-11.123 20.092-39.488 28.645-62.664 24.15-22.115-4.288-39.921-20.774-44.019-40.738-4.538-22.229 6.615-44.308 16.332-66.515a358.83 358.83 0 003.437-8.081 238.988 238.988 0 001.795-4.513 165.185 165.185 0 002.828-7.947c4.39-13.591 6.016-28.984-2.295-40.321-4.658-6.347-11.477-10.355-19.238-13.393-17.388-6.801-39.481-8.722-52.38-21.167C22.84 94.854 21.359 76.92 30.502 63.74z"}),Object(c.createElement)("path",{fill:"#F6F7F7",d:"M124 33h267v185H124z"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M169 152.005V229a734.947 734.947 0 01-15.628-.991l-2.372-.181v-75.823c0-.395.072-.785.212-1.15.14-.365.345-.696.604-.975.258-.279.565-.5.903-.651a2.61 2.61 0 011.066-.229h12.43c.366 0 .728.078 1.066.229.338.151.645.372.903.651.259.279.464.61.604.975.14.365.212.755.212 1.15z",opacity:".7"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M186 229.733V127.377c0-.63.31-1.235.861-1.681.551-.446 1.299-.696 2.079-.696h13.12c.386 0 .768.061 1.125.181.357.119.681.294.954.515.273.221.489.483.637.771.148.289.224.598.224.91V230l-19-.267z",opacity:".5"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M225 230.002v-97.406a2.843 2.843 0 012.843-2.845h12.689a2.844 2.844 0 012.844 2.845v97.196l-18.376.21z",opacity:".7"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M282 88.368v140.224c-6 .145-12 .281-18 .408V88.368c0-.628.293-1.23.816-1.674.522-.445 1.231-.694 1.969-.694h12.43c.738 0 1.447.25 1.969.694.523.444.816 1.046.816 1.674z",opacity:".5"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M319 112.954v115.709c-6 .12-12 .232-18 .337V112.954c0-.518.293-1.015.816-1.382.522-.366 1.231-.572 1.969-.572h12.43c.738 0 1.447.206 1.969.572.523.367.816.864.816 1.382z",opacity:".7"}),Object(c.createElement)("path",{stroke:"#CCC",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M160.125 133.501l41.91-46.767 41.91 23.545 41.91-72.248 41.909 34.511"}),Object(c.createElement)("path",{className:"fill-theme-color",d:"M160 139.005c2.761 0 5-2.24 5-5.003a5.002 5.002 0 00-5-5.002c-2.761 0-5 2.24-5 5.002a5.002 5.002 0 005 5.003zM201.5 93.007c4.142 0 7.5-3.36 7.5-7.504A7.502 7.502 0 00201.5 78c-4.142 0-7.5 3.36-7.5 7.504a7.502 7.502 0 007.5 7.503zM243.784 119.31c4.985 0 9.026-4.043 9.026-9.031s-4.041-9.031-9.026-9.031c-4.986 0-9.027 4.043-9.027 9.031s4.041 9.031 9.027 9.031zM286.027 46.062c4.985 0 9.027-4.043 9.027-9.031S291.012 28 286.027 28c-4.986 0-9.027 4.043-9.027 9.031s4.041 9.031 9.027 9.031zM327.5 80.007c4.142 0 7.5-3.36 7.5-7.504A7.502 7.502 0 00327.5 65c-4.142 0-7.5 3.36-7.5 7.504a7.502 7.502 0 007.5 7.503zM408 137l-36 2-18-30.926c5.588-3.326 12.033-5.083 18.606-5.074C392.154 103 408 118.222 408 137zM351.107 110l-.143.088c-7.887 4.836-13.573 12.518-15.859 21.429a35.211 35.211 0 003.603 26.338l.084.145L370 140.317 351.107 110zm-12.19 47.543a34.886 34.886 0 01-3.485-25.944c2.25-8.77 7.826-16.342 15.566-21.138l18.531 29.738-30.612 17.344zM408.664 138.651l-35.891 2.797 10.3 32.297.162-.046c7.808-2.265 14.585-6.957 19.211-13.301 4.626-6.344 6.824-13.96 6.23-21.588l-.012-.159zm-35.447 3.081l35.134-2.738c1.116 15.348-9.387 29.753-25.051 34.355l-10.083-31.617zM370.719 142.639l-30.714 17.335.088.131c3.977 5.942 9.926 10.554 16.982 13.165 7.056 2.61 14.849 3.083 22.245 1.349l.164-.038-8.765-31.942zm-30.249 17.435l30.034-16.951 8.57 31.234c-7.278 1.673-14.935 1.192-21.871-1.374-6.936-2.566-12.794-7.086-16.733-12.909z"}),Object(c.createElement)("path",{fill:"#fff",d:"M423 97h-17v-1h17v1zM423 101h-17v-3h17v3zM416 104h-17.979l-.05.068L384 122.821l.28.179 13.92-18.685H416V104z"})),Object(c.createElement)("defs",null,Object(c.createElement)("clipPath",{id:"clip0"},Object(c.createElement)("path",{fill:"#fff",d:"M0 0h517v160H0z"})))),null),content:Object(c.createElement)(je,{title:Object(u.__)("Good data leads to smart business decisions",'woocommerce'),body:Object(u.__)("Monitor your stats to improve performance, increase sales, and track your progress toward revenue goals. The more you know, the better you can serve your customers and grow your store.",'woocommerce')})}],Be=({onClose:e})=>{const[t,a]=Object(c.useState)(!0);return Object(c.useEffect)(()=>{Object(w.recordEvent)("task_list_welcome_modal_open")},[]),Object(c.createElement)(c.Fragment,null,t&&Object(c.createElement)(O.Guide,{onFinish:()=>{a(!1),e(),Object(w.recordEvent)("task_list_welcome_modal_close")},className:"woocommerce__welcome-modal",finishButtonText:Object(u.__)("Let's go",'woocommerce'),pages:ke}))};a(563),a(516);const Se=Object(c.lazy)(()=>Promise.all([a.e(3),a.e(51)]).then(a.bind(null,611))),ye=({defaultHomescreenLayout:e,isBatchUpdating:t,query:a,taskListComplete:r,bothTaskListsHidden:n,shouldShowWelcomeModal:o,shouldShowWelcomeFromCalypsoModal:l,isTaskListHidden:i,updateOptions:m})=>{const d=Object(s.useUserPreferences)(),b=r||i,v=b||window.wcAdminFeatures.analytics,O="two_columns"===(d.homepage_layout||e)&&v,[w,f]=Object(c.useState)(!0),h=!1===n,j=!a.task;t&&!w&&f(!0);const E=Object(c.useRef)(!0),g=Object(c.useCallback)(()=>{E.current=window.innerWidth>=782},[]);Object(c.useLayoutEffect)(()=>(g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}),[g]);const k=E.current&&O,B=()=>{const e=Boolean(a.task);return Object(c.createElement)(c.Suspense,{fallback:e?null:Object(c.createElement)(fe.a,null)},Object(c.createElement)(Se,{query:a,userPreferences:d}))};return Object(c.createElement)("div",{className:A()("woocommerce-homescreen",{"two-columns":O})},j?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(R,{shouldStick:k},Object(c.createElement)(p.a,{className:"your-store-today",title:Object(u.__)("Your store today",'woocommerce'),subtitle:Object(u.__)("To do's, tips, and insights for your business",'woocommerce')}),Object(c.createElement)(L,null),h&&B(),Object(c.createElement)(_.a,null)),Object(c.createElement)(R,{shouldStick:k},window.wcAdminFeatures.analytics&&Object(c.createElement)(Oe,null),b&&Object(c.createElement)(we.a,null))):B(),o&&Object(c.createElement)(Be,{onClose:()=>{m({woocommerce_task_list_welcome_modal_dismissed:"yes"})}}),l&&Object(c.createElement)(ge,{onClose:()=>{m({woocommerce_welcome_from_calypso_modal_dismissed:"yes"})}}),window.wcAdminFeatures.navigation&&Object(c.createElement)(ae,null))};ye.propTypes={taskListComplete:b.a.bool,bothTaskListsHidden:b.a.bool,query:b.a.object.isRequired,shouldShowWelcomeModal:b.a.bool,shouldShowWelcomeFromCalypsoModal:b.a.bool,updateOptions:b.a.func.isRequired};var Ne=Object(r.compose)(Object(n.withSelect)(e=>{const{isNotesRequesting:t}=e(s.NOTES_STORE_NAME),{getOption:a,hasFinishedResolution:c}=e(s.OPTIONS_STORE_NAME),r="yes"===a("woocommerce_welcome_from_calypso_modal_dismissed"),n=c("getOption",["woocommerce_welcome_from_calypso_modal_dismissed"]),o=!!window.location.search.match("from-calypso"),l=n&&!r&&o,i="yes"===a("woocommerce_task_list_welcome_modal_dismissed"),m=c("getOption",["woocommerce_task_list_welcome_modal_dismissed"])&&!i&&n&&!r,A=a("woocommerce_default_homepage_layout")||"single_column",d="yes"===a("woocommerce_task_list_hidden");return{defaultHomescreenLayout:A,isBatchUpdating:t("batchUpdateNotes"),shouldShowWelcomeModal:m,shouldShowWelcomeFromCalypsoModal:l,isTaskListHidden:d,bothTaskListsHidden:d&&"yes"===a("woocommerce_extended_task_list_hidden"),taskListComplete:"yes"===a("woocommerce_task_list_complete")}}),Object(n.withDispatch)(e=>({updateOptions:e(s.OPTIONS_STORE_NAME).updateOptions})))(ye);const Ce=Object(l.f)("onboarding",{});t.default=Object(r.compose)(Ce.profile||Ce.tasksStatus?Object(s.withOnboardingHydration)({profileItems:Ce.profile,tasksStatus:Ce.tasksStatus}):o.identity,Object(n.withSelect)(e=>{const{getProfileItems:t}=e(s.ONBOARDING_STORE_NAME);return{profileItems:t()}}))(({profileItems:e,query:t})=>{const{completed:a,skipped:r}=e||{};return a||r||Object(i.getHistory)().push(Object(i.getNewPath)({},"/setup-wizard",{})),Object(c.createElement)(Ne,{query:t})})}}]);