"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[6732],{15482:(e,t,o)=>{o.d(t,{Z:()=>l});var c=o(69307),m=o(83849),n=o.n(m),r=o(7862),i=o.n(r),u=o(14812),a=o(86020);class s extends c.Component{render(){const{className:e,menu:t,subtitle:o,title:m,unreadMessages:r}=this.props,i=n()({"woocommerce-layout__inbox-panel-header":o,"woocommerce-layout__activity-panel-header":!o},e),a=r||0;return(0,c.createElement)("div",{className:i},(0,c.createElement)("div",{className:"woocommerce-layout__inbox-title"},(0,c.createElement)(u.Text,{size:16,weight:600,color:"#23282d"},m),(0,c.createElement)(u.Text,{variant:"button",weight:"600",size:"14",lineHeight:"20px"},a>0&&(0,c.createElement)("span",{className:"woocommerce-layout__inbox-badge"},r))),(0,c.createElement)("div",{className:"woocommerce-layout__inbox-subtitle"},o&&(0,c.createElement)(u.Text,{variant:"body.small",size:"14",lineHeight:"20px"},o)),t&&(0,c.createElement)("div",{className:"woocommerce-layout__activity-panel-header-menu"},t))}}s.propTypes={className:i().string,unreadMessages:i().number,title:i().string.isRequired,subtitle:i().string,menu:i().shape({type:i().oneOf([a.EllipsisMenu])})};const l=s},37015:(e,t,o)=>{o.r(t),o.d(t,{HelpPanel:()=>f,SETUP_TASK_HELP_ITEMS_FILTER:()=>k,default:()=>S});var c=o(69307),m=o(65736),n=o(14812),r=o(9818),i=o(92694),u=o(23374),a=o(89015),s=o(83619),l=o(92819),p=o(86020),_=o(67221),d=o(82422),h=o(14599),w=o(15482),g=o(82580);const k="woocommerce_admin_setup_task_help_items";function y(e,t){const{taskName:o}=e;t&&e.recordEvent("help_panel_click",{task_name:o||"homescreen",link:t.currentTarget.href})}const f=e=>{const{taskName:t}=e;(0,c.useEffect)((()=>{e.recordEvent("help_panel_open",{task_name:t||"homescreen"})}),[t]);const o=function(e){const t=function(e){const{taskName:t}=e;switch(t){case"products":return[{title:(0,m.__)("Adding and Managing Products","woocommerce"),link:"https://woo.com/document/managing-products/?utm_source=help_panel&utm_medium=product"},{title:(0,m.__)("Import products using the CSV Importer and Exporter","woocommerce"),link:"https://woo.com/document/product-csv-importer-exporter/?utm_source=help_panel&utm_medium=product"},{title:(0,m.__)("Migrate products using Cart2Cart","woocommerce"),link:"https://woo.com/products/cart2cart/?utm_source=help_panel&utm_medium=product"},{title:(0,m.__)("Learn more about setting up products","woocommerce"),link:"https://woo.com/documentation/plugins/woocommerce/getting-started/setup-products/?utm_source=help_panel&utm_medium=product"}];case"appearance":return[{title:(0,m.__)("Showcase your products and tailor your shopping experience using Blocks","woocommerce"),link:"https://woo.com/document/woocommerce-blocks/?utm_source=help_panel&utm_medium=product"},{title:(0,m.__)("Manage Store Notice, Catalog View and Product Images","woocommerce"),link:"https://woo.com/document/woocommerce-customizer/?utm_source=help_panel&utm_medium=product"},{title:(0,m.__)("How to choose and change a theme","woocommerce"),link:"https://woo.com/document/choose-change-theme/?utm_source=help_panel&utm_medium=product"}];case"shipping":return function(e){let{activePlugins:t,countryCode:o}=e;const c="US"===o&&!t.includes("woocommerce-services");return[{title:(0,m.__)("Setting up Shipping Zones","woocommerce"),link:"https://woo.com/document/setting-up-shipping-zones/?utm_source=help_panel&utm_medium=product"},{title:(0,m.__)("Core Shipping Options","woocommerce"),link:"https://woo.com/documentation/plugins/woocommerce/getting-started/shipping/core-shipping-options/?utm_source=help_panel&utm_medium=product"},{title:(0,m.__)("Product Shipping Classes","woocommerce"),link:"https://woo.com/document/product-shipping-classes/?utm_source=help_panel&utm_medium=product"},c&&{title:(0,m.__)("WooCommerce Shipping setup and configuration","woocommerce"),link:"https://woo.com/document/woocommerce-shipping-and-tax/?utm_source=help_panel&utm_medium=product#section-3"},{title:(0,m.__)("Learn more about configuring your shipping settings","woocommerce"),link:"https://woo.com/document/plugins/woocommerce/getting-started/shipping/?utm_source=help_panel&utm_medium=product"}].filter(Boolean)}(e);case"tax":return function(e){const{countryCode:t,taskLists:o}=e,c=o.reduce(((e,t)=>[...e,...t.tasks]),[]).find((e=>"tax"===e.id));if(!c)return;const{additionalData:n}=c,{woocommerceTaxCountries:r=[],taxJarActivated:i}=n,u=!i&&r.includes(t);return[{title:(0,m.__)("Setting up Taxes in WooCommerce","woocommerce"),link:"https://woo.com/document/setting-up-taxes-in-woocommerce/?utm_source=help_panel&utm_medium=product"},u&&{title:(0,m.__)("Automated Tax calculation using WooCommerce Tax","woocommerce"),link:"https://woo.com/document/woocommerce-services/?utm_source=help_panel&utm_medium=product#section-10"}].filter(Boolean)}(e);case"payments":return function(e){const{paymentGatewaySuggestions:t}=e;return[{title:(0,m.__)("Which Payment Option is Right for Me?","woocommerce"),link:"https://woo.com/document/premium-payment-gateway-extensions/?utm_source=help_panel&utm_medium=product"},t.woocommerce_payments&&{title:(0,m.__)("WooPayments Start Up Guide","woocommerce"),link:"https://woo.com/document/payments/?utm_source=help_panel&utm_medium=product"},t.woocommerce_payments&&{title:(0,m.__)("WooPayments FAQs","woocommerce"),link:"https://woo.com/documentation/woocommerce-payments/woocommerce-payments-faqs/?utm_source=help_panel&utm_medium=product"},t.stripe&&{title:(0,m.__)("Stripe Setup and Configuration","woocommerce"),link:"https://woo.com/document/stripe/?utm_source=help_panel&utm_medium=product"},t["ppcp-gateway"]&&{title:(0,m.__)("PayPal Checkout Setup and Configuration","woocommerce"),link:"https://woo.com/document/2-0/woocommerce-paypal-payments/?utm_medium=product#section-3"},t.square_credit_card&&{title:(0,m.__)("Square - Get started","woocommerce"),link:"https://woo.com/document/woocommerce-square/?utm_source=help_panel&utm_medium=product"},t.kco&&{title:(0,m.__)("Klarna - Introduction","woocommerce"),link:"https://woo.com/document/klarna-checkout/?utm_source=help_panel&utm_medium=product"},t.klarna_payments&&{title:(0,m.__)("Klarna - Introduction","woocommerce"),link:"https://woo.com/document/klarna-payments/?utm_source=help_panel&utm_medium=product"},t.payfast&&{title:(0,m.__)("Payfast Setup and Configuration","woocommerce"),link:"https://woo.com/document/payfast-payment-gateway/?utm_source=help_panel&utm_medium=product"},t.eway&&{title:(0,m.__)("Eway Setup and Configuration","woocommerce"),link:"https://woo.com/document/eway/?utm_source=help_panel&utm_medium=product"},{title:(0,m.__)("Direct Bank Transfer (BACS)","woocommerce"),link:"https://woo.com/document/bacs/?utm_source=help_panel&utm_medium=product"},{title:(0,m.__)("Cash on Delivery","woocommerce"),link:"https://woo.com/document/cash-on-delivery/?utm_source=help_panel&utm_medium=product"}].filter(Boolean)}(e);case"marketing":return function(e){const{activePlugins:t}=e;return[t.includes("mailpoet")&&{title:(0,m.__)("Get started with Mailpoet","woocommerce"),link:"https://kb.mailpoet.com/category/114-getting-started"},t.includes("google-listings-and-ads")&&{title:(0,m.__)("Set up Google Listing & Ads","woocommerce"),link:"https://woo.com/document/google-listings-and-ads/?utm_medium=product#get-started"},t.includes("pinterest-for-woocommerce")&&{title:(0,m.__)("Set up Pinterest for WooCommerce","woocommerce"),link:"https://woo.com/products/pinterest-for-woocommerce/"},t.includes("mailchimp-for-woocommerce")&&{title:(0,m.__)("Connect Mailchimp for WooCommerce","woocommerce"),link:"https://mailchimp.com/help/connect-or-disconnect-mailchimp-for-woocommerce/"},t.includes("creative-mail-by-constant-contact")&&{title:(0,m.__)("Set up Creative Mail for WooCommerce","woocommerce"),link:"https://app.creativemail.com/kb/help/WooCommerce"}].filter(Boolean)}(e);default:return[{title:(0,m.__)("Get Support","woocommerce"),link:"https://woo.com/my-account/create-a-ticket/?utm_medium=product"},{title:(0,m.__)("Home Screen","woocommerce"),link:"https://woo.com/document/home-screen/?utm_medium=product"},{title:(0,m.__)("Inbox","woocommerce"),link:"https://woo.com/document/home-screen/?utm_medium=product#section-4"},{title:(0,m.__)("Stats Overview","woocommerce"),link:"https://woo.com/document/home-screen/?utm_medium=product#section-5"},{title:(0,m.__)("Store Management","woocommerce"),link:"https://woo.com/document/home-screen/?utm_medium=product#section-10"},{title:(0,m.__)("Store Setup Checklist","woocommerce"),link:"https://woo.com/document/woocommerce-setup-wizard?utm_medium=product#store-setup-checklist"}]}}(e),o={title:(0,m.__)("WooCommerce Docs","woocommerce"),link:"https://woo.com/documentation/?utm_source=help_panel&utm_medium=product"};t.push(o);const r=(0,i.applyFilters)(k,t,e.taskName,e);let p=Array.isArray(r)?r.filter((e=>e instanceof Object&&e.title&&e.link)):[];p.length||(p=[o]);const _=(0,l.partial)(y,e);return p.map((e=>{var t,o;return{title:(0,c.createElement)(n.Text,{as:"div",variant:"button",weight:"600",size:"14",lineHeight:"20px"},e.title),before:(0,c.createElement)(u.Z,{icon:a.Z}),after:(0,c.createElement)(u.Z,{icon:s.Z}),linkType:null!==(t=e.linkType)&&void 0!==t?t:"external",target:null!==(o=e.target)&&void 0!==o?o:"_blank",href:e.link,onClick:_}}))}(e);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(w.Z,{title:(0,m.__)("Documentation","woocommerce")}),(0,c.createElement)(p.Section,null,(0,c.createElement)(p.List,{items:o,className:"woocommerce-quick-links__list"})))};f.defaultProps={recordEvent:h.recordEvent};const S=(0,d.qC)((0,r.withSelect)((e=>{const{getSettings:t}=e(_.SETTINGS_STORE_NAME),{getActivePlugins:o}=e(_.PLUGINS_STORE_NAME),{general:c={}}=t("general"),m=o(),n=e(_.ONBOARDING_STORE_NAME).getPaymentGatewaySuggestions().reduce(((e,t)=>{const{id:o}=t;return e[o]=!0,e}),{}),r=e(_.ONBOARDING_STORE_NAME).getTaskLists();return{activePlugins:m,countryCode:(0,g.so)(c.woocommerce_default_country),paymentGatewaySuggestions:n,taskLists:r}})))(f)}}]);