geno/wp-content/plugins/woocommerce/assets/client/admin/chunks/activity-panels-help.js

1 line
9.8 KiB
JavaScript
Raw Normal View History

2024-02-01 17:24:18 +05:30
"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:"htt