File "activity-panels-help.js"

Full Path: /home/vantageo/public_html/cache/cache/cache/cache/cache/.wp-cli/wp-content/plugins/woocommerce/packages/woocommerce-admin/dist/chunks/activity-panels-help.js
File size: 9.47 KB
MIME-type: text/plain
Charset: utf-8

(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[7],{649:function(e,t,o){"use strict";o(174);var c=o(13),n=o.n(c),m=o(14),r=o.n(m),a=o(16),i=o.n(a),s=o(17),l=o.n(s),u=o(7),p=o.n(u),d=o(0),_=o(9),h=o.n(_),w=o(1),g=o.n(w),b=o(58),f=o(112);o(650);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,c=p()(e);if(t){var n=p()(this).constructor;o=Reflect.construct(c,arguments,n)}else o=c.apply(this,arguments);return l()(this,o)}}var O=function(e){i()(o,e);var t=k(o);function o(){return n()(this,o),t.apply(this,arguments)}return r()(o,[{key:"render",value:function(){var e=this.props,t=e.className,o=e.menu,c=e.subtitle,n=e.title,m=e.unreadMessages,r=h()({"woocommerce-layout__inbox-panel-header":c,"woocommerce-layout__activity-panel-header":!c},t),a=m||0;return Object(d.createElement)("div",{className:r},Object(d.createElement)("div",{className:"woocommerce-layout__inbox-title"},Object(d.createElement)(b.Text,{variant:"title.small"},n),Object(d.createElement)(b.Text,{variant:"button"},a>0&&Object(d.createElement)("span",{className:"woocommerce-layout__inbox-badge"},m))),Object(d.createElement)("div",{className:"woocommerce-layout__inbox-subtitle"},c&&Object(d.createElement)(b.Text,{variant:"body.small"},c)),o&&Object(d.createElement)("div",{className:"woocommerce-layout__activity-panel-header-menu"},o))}}]),o}(d.Component);O.propTypes={className:g.a.string,unreadMessages:g.a.number,title:g.a.string.isRequired,subtitle:g.a.string,menu:g.a.shape({type:g.a.oneOf([f.EllipsisMenu])})},t.a=O},650:function(e,t,o){},746:function(e,t,o){"use strict";o.r(t),o.d(t,"SETUP_TASK_HELP_ITEMS_FILTER",(function(){return k})),o.d(t,"HelpPanel",(function(){return j}));var c=o(0),n=(o(322),o(132),o(108),o(205),o(432),o(117),o(2)),m=o(58),r=o(15),a=o(101),i=o(417),s=o(747),l=o(606),u=o(3),p=o(42),d=o(112),_=o(33),h=o(717),w=o(44),g=o(649),b=o(219),f=o(671),k="woocommerce_admin_setup_task_help_items";function O(e){var t,o,c;switch(e.taskName){case"products":return[{title:Object(n.__)("Adding and Managing Products",'woocommerce'),link:"https://docs.woocommerce.com/document/managing-products/?utm_source=help_panel"},{title:Object(n.__)("Import products using the CSV Importer and Exporter",'woocommerce'),link:"https://docs.woocommerce.com/document/product-csv-importer-exporter/?utm_source=help_panel"},{title:Object(n.__)("Migrate products using Cart2Cart",'woocommerce'),link:"https://woocommerce.com/products/cart2cart/?utm_source=help_panel"},{title:Object(n.__)("Learn more about setting up products",'woocommerce'),link:"https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/setup-products/?utm_source=help_panel"}];case"appearance":return[{title:Object(n.__)("Showcase your products and tailor your shopping experience using Blocks",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-blocks/?utm_source=help_panel"},{title:Object(n.__)("Manage Store Notice, Catalog View and Product Images",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-customizer/?utm_source=help_panel"},{title:Object(n.__)("How to choose and change a theme",'woocommerce'),link:"https://docs.woocommerce.com/document/choose-change-theme/?utm_source=help_panel"}];case"shipping":return o=(t=e).activePlugins,c="US"===t.countryCode&&!o.includes("woocommerce-services"),[{title:Object(n.__)("Setting up Shipping Zones",'woocommerce'),link:"https://docs.woocommerce.com/document/setting-up-shipping-zones/?utm_source=help_panel"},{title:Object(n.__)("Core Shipping Options",'woocommerce'),link:"https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/shipping/core-shipping-options/?utm_source=help_panel"},{title:Object(n.__)("Product Shipping Classes",'woocommerce'),link:"https://docs.woocommerce.com/document/product-shipping-classes/?utm_source=help_panel"},c&&{title:Object(n.__)("WooCommerce Shipping setup and configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-services/#section-3/?utm_source=help_panel"},{title:Object(n.__)("Learn more about configuring your shipping settings",'woocommerce'),link:"https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/shipping/?utm_source=help_panel"}].filter(Boolean);case"tax":return function(e){var t=e.countryCode,o=e.getSetting("onboarding",{}),c=o.automatedTaxSupportedCountries,m=void 0===c?[]:c,r=!o.taxJarActivated&&m.includes(t);return[{title:Object(n.__)("Setting up Taxes in WooCommerce",'woocommerce'),link:"https://docs.woocommerce.com/document/setting-up-taxes-in-woocommerce/?utm_source=help_panel"},r&&{title:Object(n.__)("Automated Tax calculation using WooCommerce Tax",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-services/?utm_source=help_panel#section-10"}].filter(Boolean)}(e);case"payments":return function(e){var t=e.countryCode,o=e.onboardingStatus,c=e.profileItems,m=e.getPaymentMethods({activePlugins:[],countryCode:t,onboardingStatus:o,options:{},profileItems:c}),r=function(e){return Boolean(m.find((function(t){return t.key===e})))},a=r("wcpay"),i=r("stripe"),s=r("klarna_checkout"),l=r("klarna_payments"),u=r("paypal"),p=r("square"),d=r("payfast"),_=r("eway");return[{title:Object(n.__)("Which Payment Option is Right for Me?",'woocommerce'),link:"https://docs.woocommerce.com/document/premium-payment-gateway-extensions/?utm_source=help_panel"},a&&{title:Object(n.__)("WooCommerce Payments Start Up Guide",'woocommerce'),link:"https://docs.woocommerce.com/document/payments//?utm_source=help_panel"},a&&{title:Object(n.__)("WooCommerce Payments FAQs",'woocommerce'),link:"https://docs.woocommerce.com/documentation/woocommerce-payments/woocommerce-payments-faqs/?utm_source=help_panel"},i&&{title:Object(n.__)("Stripe Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/stripe/?utm_source=help_panel"},u&&{title:Object(n.__)("PayPal Checkout Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/2-0/woocommerce-paypal-payments/#section-3"},p&&{title:Object(n.__)("Square - Get started",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-square/?utm_source=help_panel"},s&&{title:Object(n.__)("Klarna - Introduction",'woocommerce'),link:"https://docs.woocommerce.com/document/klarna-checkout/?utm_source=help_panel"},l&&{title:Object(n.__)("Klarna - Introduction",'woocommerce'),link:"https://docs.woocommerce.com/document/klarna-payments/?utm_source=help_panel"},d&&{title:Object(n.__)("PayFast Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/payfast-payment-gateway/?utm_source=help_panel"},_&&{title:Object(n.__)("eWAY Setup and Configuration",'woocommerce'),link:"https://docs.woocommerce.com/document/eway/?utm_source=help_panel"},{title:Object(n.__)("Direct Bank Transfer (BACS)",'woocommerce'),link:"https://docs.woocommerce.com/document/bacs/?utm_source=help_panel"},{title:Object(n.__)("Cash on Delivery",'woocommerce'),link:"https://docs.woocommerce.com/document/cash-on-delivery/?utm_source=help_panel"}].filter(Boolean)}(e);default:return[{title:Object(n.__)("Get Support",'woocommerce'),link:"https://woocommerce.com/my-account/create-a-ticket/"},{title:Object(n.__)("Home Screen",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen"},{title:Object(n.__)("Inbox",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen/#section-2"},{title:Object(n.__)("Stats Overview",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen/#section-4"},{title:Object(n.__)("Store Management",'woocommerce'),link:"https://docs.woocommerce.com/document/home-screen/#section-5"},{title:Object(n.__)("Store Setup Checklist",'woocommerce'),link:"https://docs.woocommerce.com/document/woocommerce-setup-wizard/#store-setup-checklist"}]}}function y(e,t){var o=e.taskName;t&&e.recordEvent("help_panel_click",{task_name:o||"homescreen",link:t.currentTarget.href})}var j=function(e){var t=e.taskName;Object(c.useEffect)((function(){e.recordEvent("help_panel_open",{task_name:t||"homescreen"})}),[t]);var o=function(e){var t=O(e),o={title:Object(n.__)("WooCommerce Docs",'woocommerce'),link:"https://docs.woocommerce.com/?utm_source=help_panel"};t.push(o);var r=Object(a.applyFilters)(k,t,e.taskName,e),p=Array.isArray(r)?r.filter((function(e){return e instanceof Object&&e.title&&e.link})):[];p.length||(p=[o]);var d=Object(u.partial)(y,e);return p.map((function(e){return{title:Object(c.createElement)(m.Text,{as:"div",variant:"button"},e.title),before:Object(c.createElement)(i.a,{icon:s.a}),after:Object(c.createElement)(i.a,{icon:l.a}),linkType:"external",target:"_blank",href:e.link,onClick:d}}))}(e);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(g.a,{title:Object(n.__)("Documentation",'woocommerce')}),Object(c.createElement)(d.Section,null,Object(c.createElement)(d.List,{items:o,className:"woocommerce-quick-links__list"})))};j.defaultProps={getPaymentMethods:f.a,getSetting:p.g,recordEvent:w.recordEvent},t.default=Object(h.a)(Object(r.withSelect)((function(e){var t=e(_.ONBOARDING_STORE_NAME),o=t.getProfileItems,c=t.getTasksStatus,n=e(_.SETTINGS_STORE_NAME).getSettings,m=e(_.PLUGINS_STORE_NAME).getActivePlugins,r=n("general").general,a=void 0===r?{}:r,i=m(),s=c(),l=o();return{activePlugins:i,countryCode:Object(b.b)(a.woocommerce_default_country),onboardingStatus:s,profileItems:l}})))(j)}}]);