관리-도구
편집 파일: activity-panels-help.js
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[10],{774:function(e,t,o){"use strict";var c=o(17),n=o.n(c),r=o(15),m=o.n(r),a=o(18),i=o.n(a),s=o(19),u=o.n(s),l=o(9),p=o.n(l),d=o(0),_=o(4),h=o.n(_),w=o(1),g=o.n(w),b=o(190),f=o(77);o(775);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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 u()(this,o)}}var y=function(e){i()(o,e);var t=k(o);function o(){return n()(this,o),t.apply(this,arguments)}return m()(o,[{key:"render",value:function(){var e=this.props,t=e.className,o=e.menu,c=e.subtitle,n=e.title,r=e.unreadMessages,m=h()({"kkart-layout__inbox-panel-header":c,"kkart-layout__activity-panel-header":!c},t),a=r||0;return Object(d.createElement)("div",{className:m},Object(d.createElement)("div",{className:"kkart-layout__inbox-title"},Object(d.createElement)(b.a,{variant:"title.small"},n),Object(d.createElement)(b.a,{variant:"button"},a>0&&Object(d.createElement)("span",{className:"kkart-layout__inbox-badge"},r))),Object(d.createElement)("div",{className:"kkart-layout__inbox-subtitle"},c&&Object(d.createElement)(b.a,{variant:"body.small"},c)),o&&Object(d.createElement)("div",{className:"kkart-layout__activity-panel-header-menu"},o))}}]),o}(d.Component);y.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=y},775:function(e,t,o){},843: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(3),r=o(190),m=o(20),a=o(55),i=o(570),s=o(844),u=o(800),l=o(2),p=o(36),d=o(77),_=o(35),h=o(830),w=o(64),g=o(774),b=o(191),f=o(792),k="kkart_admin_setup_task_help_items";function y(e){var t,o,c;switch(e.taskName){case"products":return[{title:Object(n.__)("Adding and Managing Products",'kkart'),link:"https://docs.kkart.com/document/managing-products/?utm_source=help_panel"},{title:Object(n.__)("Import products using the CSV Importer and Exporter",'kkart'),link:"https://docs.kkart.com/document/product-csv-importer-exporter/?utm_source=help_panel"},{title:Object(n.__)("Migrate products using Cart2Cart",'kkart'),link:"https://kkart.com/products/cart2cart/?utm_source=help_panel"},{title:Object(n.__)("Learn more about setting up products",'kkart'),link:"https://docs.kkart.com/documentation/plugins/kkart/getting-started/setup-products/?utm_source=help_panel"}];case"appearance":return[{title:Object(n.__)("Showcase your products and tailor your shopping experience using Blocks",'kkart'),link:"https://docs.kkart.com/document/kkart-blocks/?utm_source=help_panel"},{title:Object(n.__)("Manage Store Notice, Catalog View and Product Images",'kkart'),link:"https://docs.kkart.com/document/kkart-customizer/?utm_source=help_panel"},{title:Object(n.__)("How to choose and change a theme",'kkart'),link:"https://docs.kkart.com/document/choose-change-theme/?utm_source=help_panel"}];case"shipping":return o=(t=e).activePlugins,c="US"===t.countryCode&&!o.includes("kkart-services"),[{title:Object(n.__)("Setting up Shipping Zones",'kkart'),link:"https://docs.kkart.com/document/setting-up-shipping-zones/?utm_source=help_panel"},{title:Object(n.__)("Core Shipping Options",'kkart'),link:"https://docs.kkart.com/documentation/plugins/kkart/getting-started/shipping/core-shipping-options/?utm_source=help_panel"},{title:Object(n.__)("Product Shipping Classes",'kkart'),link:"https://docs.kkart.com/document/product-shipping-classes/?utm_source=help_panel"},c&&{title:Object(n.__)("Kkart Shipping setup and configuration",'kkart'),link:"https://docs.kkart.com/document/kkart-services/#section-3/?utm_source=help_panel"},{title:Object(n.__)("Learn more about configuring your shipping settings",'kkart'),link:"https://docs.kkart.com/documentation/plugins/kkart/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,r=void 0===c?[]:c,m=!o.taxJarActivated&&r.includes(t);return[{title:Object(n.__)("Setting up Taxes in Kkart",'kkart'),link:"https://docs.kkart.com/document/setting-up-taxes-in-kkart/?utm_source=help_panel"},m&&{title:Object(n.__)("Automated Tax calculation using Kkart Tax",'kkart'),link:"https://docs.kkart.com/document/kkart-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,r=e.getPaymentMethods({activePlugins:[],countryCode:t,onboardingStatus:o,options:{},profileItems:c}),m=function(e){return Boolean(r.find((function(t){return t.key===e})))},a=m("wcpay"),i=m("stripe"),s=m("klarna_checkout"),u=m("klarna_payments"),l=m("paypal"),p=m("square"),d=m("payfast"),_=m("eway");return[{title:Object(n.__)("Which Payment Option is Right for Me?",'kkart'),link:"https://docs.kkart.com/document/premium-payment-gateway-extensions/?utm_source=help_panel"},a&&{title:Object(n.__)("Kkart Payments Start Up Guide",'kkart'),link:"https://docs.kkart.com/document/payments//?utm_source=help_panel"},a&&{title:Object(n.__)("Kkart Payments FAQs",'kkart'),link:"https://docs.kkart.com/documentation/kkart-payments/kkart-payments-faqs/?utm_source=help_panel"},i&&{title:Object(n.__)("Stripe Setup and Configuration",'kkart'),link:"https://docs.kkart.com/document/stripe/?utm_source=help_panel"},l&&{title:Object(n.__)("PayPal Checkout Setup and Configuration",'kkart'),link:"https://docs.kkart.com/document/paypal-express-checkout/?utm_source=help_panel"},p&&{title:Object(n.__)("Square - Get started",'kkart'),link:"https://docs.kkart.com/document/kkart-square/?utm_source=help_panel"},s&&{title:Object(n.__)("Klarna - Introduction",'kkart'),link:"https://docs.kkart.com/document/klarna-checkout/?utm_source=help_panel"},u&&{title:Object(n.__)("Klarna - Introduction",'kkart'),link:"https://docs.kkart.com/document/klarna-payments/?utm_source=help_panel"},d&&{title:Object(n.__)("PayFast Setup and Configuration",'kkart'),link:"https://docs.kkart.com/document/payfast-payment-gateway/?utm_source=help_panel"},_&&{title:Object(n.__)("eWAY Setup and Configuration",'kkart'),link:"https://docs.kkart.com/document/eway/?utm_source=help_panel"},{title:Object(n.__)("Direct Bank Transfer (BACS)",'kkart'),link:"https://docs.kkart.com/document/bacs/?utm_source=help_panel"},{title:Object(n.__)("Cash on Delivery",'kkart'),link:"https://docs.kkart.com/document/cash-on-delivery/?utm_source=help_panel"}].filter(Boolean)}(e);default:return[]}}function O(e,t){var o=e.taskName;t&&e.recordEvent("help_panel_click",{task_name:o,link:t.currentTarget.href})}var j=function(e){var t=e.taskName;Object(c.useEffect)((function(){e.recordEvent("help_panel_open",{task_name:t})}),[t]);var o=function(e){var t=y(e),o={title:Object(n.__)("Kkart Docs",'kkart'),link:"https://docs.kkart.com/?utm_source=help_panel"};t.push(o);var m=Object(a.applyFilters)(k,t,e.taskName,e),p=Array.isArray(m)?m.filter((function(e){return e instanceof Object&&e.title&&e.link})):[];p.length||(p=[o]);var d=Object(l.partial)(O,e);return p.map((function(e){return{title:Object(c.createElement)(r.a,{as:"div",variant:"button"},e.title),before:Object(c.createElement)(i.a,{icon:s.a}),after:Object(c.createElement)(i.a,{icon:u.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",'kkart')}),Object(c.createElement)(d.Section,null,Object(c.createElement)(d.List,{items:o,className:"kkart-quick-links__list"})))};j.defaultProps={getPaymentMethods:f.a,getSetting:p.g,recordEvent:w.recordEvent},t.default=Object(h.a)(Object(m.withSelect)((function(e){var t=e(_.ONBOARDING_STORE_NAME),o=t.getProfileItems,c=t.getTasksStatus,n=e(_.SETTINGS_STORE_NAME).getSettings,r=e(_.PLUGINS_STORE_NAME).getActivePlugins,m=n("general").general,a=void 0===m?{}:m,i=r(),s=c(),u=o();return{activePlugins:i,countryCode:Object(b.b)(a.kkart_default_country),onboardingStatus:s,profileItems:u}})))(j)}}]);