1133.style-rtl.css
1 month ago
1133.style.css
1 month ago
1226.style-rtl.css
2 weeks ago
1226.style.css
2 weeks ago
1438.style-rtl.css
1 month ago
1438.style.css
1 month ago
1494.style-rtl.css
2 weeks ago
1494.style.css
2 weeks ago
1497.js
1 month ago
2152.style-rtl.css
1 month ago
2152.style.css
1 month ago
225.js
1 month ago
2300.js
1 week ago
2449.js
1 week ago
2449.style-rtl.css
1 week ago
2449.style.css
1 week ago
2499.js
1 month ago
266.js
4 months ago
266.js.LICENSE.txt
4 months ago
2684.js
2 weeks ago
2981.style-rtl.css
1 month ago
2981.style.css
1 month ago
2985.style-rtl.css
1 month ago
2985.style.css
1 month ago
3132.js
2 weeks ago
3132.style-rtl.css
1 month ago
3132.style.css
1 month ago
3151.style-rtl.css
1 month ago
3151.style.css
1 month ago
3203.js
2 months ago
3203.js.LICENSE.txt
2 months ago
3256.style-rtl.css
1 month ago
3256.style.css
1 month ago
3404.style-rtl.css
1 month ago
3404.style.css
1 month ago
3501.style-rtl.css
2 weeks ago
3501.style.css
2 weeks ago
3534.style-rtl.css
2 weeks ago
3534.style.css
2 weeks ago
3663.js
1 month ago
3663.js.LICENSE.txt
1 month ago
3678.style-rtl.css
1 month ago
3678.style.css
1 month ago
4040.style-rtl.css
2 weeks ago
4040.style.css
2 weeks ago
4077.js
1 week ago
4077.style-rtl.css
1 week ago
4077.style.css
1 week ago
4379.style-rtl.css
1 month ago
4379.style.css
1 month ago
4409.style-rtl.css
1 month ago
4409.style.css
1 month ago
5113.style-rtl.css
1 month ago
5113.style.css
1 month ago
5242.js
4 months ago
5242.js.LICENSE.txt
4 months ago
5359.style-rtl.css
1 month ago
5359.style.css
1 month ago
5845.style-rtl.css
1 month ago
5845.style.css
1 month ago
592.style-rtl.css
2 weeks ago
592.style.css
2 weeks ago
5941.style-rtl.css
1 month ago
5941.style.css
1 month ago
5945.js
4 months ago
5945.js.LICENSE.txt
1 year ago
6049.js
1 month ago
6071.style-rtl.css
1 month ago
6071.style.css
1 month ago
6115.style-rtl.css
1 month ago
6115.style.css
1 month ago
6424.style-rtl.css
1 month ago
6424.style.css
1 month ago
6620.style-rtl.css
2 weeks ago
6620.style.css
2 weeks ago
7202.style-rtl.css
1 month ago
7202.style.css
1 month ago
7210.style-rtl.css
2 weeks ago
7210.style.css
2 weeks ago
7247.js
2 weeks ago
735.js
2 weeks ago
7553.js
1 month ago
7722.js
1 week ago
7722.style-rtl.css
1 week ago
7722.style.css
1 week ago
7752.style-rtl.css
1 month ago
7752.style.css
1 month ago
7956.style-rtl.css
1 month ago
7956.style.css
1 month ago
8.style-rtl.css
1 month ago
8.style.css
1 month ago
8013.style-rtl.css
1 month ago
8013.style.css
1 month ago
8039.style-rtl.css
2 weeks ago
8039.style.css
2 weeks ago
8068.style-rtl.css
1 month ago
8068.style.css
1 month ago
823.style-rtl.css
1 month ago
823.style.css
1 month ago
8286.style-rtl.css
1 month ago
8286.style.css
1 month ago
860.js
1 week ago
8783.js
1 month ago
945.style-rtl.css
1 month ago
945.style.css
1 month ago
9680.style-rtl.css
2 weeks ago
9680.style.css
2 weeks ago
9995.js
2 weeks ago
abandoned-cart-recovery-recommendations.js
2 weeks ago
activity-panels-help.js
6 days ago
activity-panels-inbox.js
2 weeks ago
activity-panels-setup.js
2 weeks ago
analytics-report-categories.js
1 month ago
analytics-report-coupons.js
2 weeks ago
analytics-report-customers.js
2 weeks ago
analytics-report-downloads.js
2 weeks ago
analytics-report-orders.js
2 weeks ago
analytics-report-products.js
1 month ago
analytics-report-revenue.js
2 weeks ago
analytics-report-stock.js
2 weeks ago
analytics-report-taxes.js
2 weeks ago
analytics-report-variations.js
2 weeks ago
analytics-report.js
1 month ago
analytics-settings.js
2 weeks ago
core-profiler.js
1 week ago
customizable-dashboard.js
2 weeks ago
customize-store.js
1 month ago
customize-store.js.LICENSE.txt
7 months ago
dashboard-charts.js
1 month ago
dashboard.js
1 month ago
homescreen.js
6 days ago
launch-store.js
1 month ago
launch-store.js.LICENSE.txt
4 months ago
leaderboards.js
1 month ago
marketplace.js
2 weeks ago
mobile-app-login.js
1 month ago
multichannel-marketing.js
1 month ago
settings-payments-bacs.js
2 weeks ago
settings-payments-cheque.js
1 month ago
settings-payments-cod.js
1 month ago
settings-payments-main.js
2 weeks ago
settings-payments-offline.js
1 month ago
settings-payments-woocommerce-payments.js
1 month ago
shipping-recommendations.js
2 weeks ago
store-alerts.js
2 weeks ago
store-performance.js
1 month ago
tax-recommendations.js
2 weeks ago
wcpay-payment-welcome-page.js
1 month ago
2449.js
1 lines
| 1 | "use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[2449],{41119:(e,s,o)=>{o.r(s),o.d(s,{Products:()=>f});var t=o(27723),i=o(4241),c=o(14908),n=o(92279),r=o(86087),a=o(56427),l=o(15703),d=o(93450),p=o(89911),u=o(55414),m=o(83306),k=o(52619),_=o(40314),g=o(47143),h=o(90212),w=o(82004),x=o(81858),C=o(58467),j=o(63042),A=o(90815),y=o(59529),b=o(39148),P=o(27883),v=o(36661),S=o(39793);const T=({isExpanded:e,onClick:s})=>(0,S.jsxs)(a.Button,{className:"woocommerce-task-products__button-view-less-product-types",onClick:s,children:[e?(0,t.__)("View less product types","woocommerce"):(0,t.__)("View more product types","woocommerce"),(0,S.jsx)(d.A,{icon:e?p.A:u.A})]}),f=()=>{const[e,s]=(0,r.useState)(!1),[o,i]=(0,r.useState)(!1),{installedPlugins:n,isRequestingPlugins:a}=(0,g.useSelect)(e=>{const{getInstalledPlugins:s,isPluginsRequesting:o}=e(_.pluginsStore);return{isRequestingPlugins:o("installPlugins"),installedPlugins:s()}},[]),d=(0,w.p)((()=>{const e=(0,h.Qk)("onboarding");return e?.profile&&e?.profile.product_types||["physical"]})()),{productTypes:p,isRequesting:u}=(0,x.A)((0,w.h)(),d),{recordCompletionTime:f}=(0,b.A)("products"),L=(0,r.useMemo)(()=>p.map(e=>({...e,onClick:()=>{e.onClick(),f()}})),[f,p]),{loadSampleProduct:N,isLoadingSampleProducts:E}=(0,A.A)({redirectUrlAfterSuccess:(0,l.getAdminLink)("edit.php?post_type=product&wc_onboarding_active_task=products")}),O=(0,r.useMemo)(()=>{const s=L.filter(e=>d.includes(e.key));return e&&L.forEach(e=>!s.includes(e)&&s.push(e)),(0,k.applyFilters)(P.j1,s)},[d,e,L]),q=(0,r.useMemo)(()=>{const e=[{...P.p3,onClick:()=>{P.p3.onClick(),f()}}];return a||n.includes("printful-shipping-for-woocommerce")||e.push(P.tF),e},[f,a,n]);return(0,S.jsxs)("div",{className:"woocommerce-task-products",children:[(0,S.jsx)(c.Text,{variant:"title",as:"h2",className:"woocommerce-task-products__title",children:(0,t.__)("What product do you want to add?","woocommerce")}),(0,S.jsxs)("div",{className:"woocommerce-product-content",children:[(0,S.jsx)(C.A,{items:O,onClickLoadSampleProduct:()=>i(!0),showOtherOptions:e,isTaskListItemClicked:u}),(0,S.jsx)(T,{isExpanded:e,onClick:()=>{e||(0,m.recordEvent)("tasklist_view_more_product_types_click"),s(!e)}}),(0,S.jsx)(C.A,{items:q,showOtherOptions:!1,isTaskListItemClicked:u}),(0,S.jsx)(v.d,{textProps:{className:"woocommerce-products-marketplace-link"},message:(0,t.__)("Visit {{Link}}the WooCommerce Marketplace{{/Link}} to enhance your store with additional options such as Subscriptions, Gift Cards, and more.","woocommerce"),eventName:"tasklist_add_product_visit_marketplace_click",targetUrl:(0,l.getAdminLink)("admin.php?page=wc-admin&tab=extensions&path=/extensions&category=merchandising"),linkType:"wc-admin"})]}),E?(0,S.jsx)(j.A,{}):o&&(0,S.jsx)(y.A,{onCancel:()=>{i(!1),(0,m.recordEvent)("tasklist_cancel_load_sample_products_click")},onImport:()=>{i(!1),N()}})]})},L=()=>(0,S.jsx)(i.WooOnboardingTask,{id:"products",children:(0,S.jsx)(f,{})});(0,n.registerPlugin)("wc-admin-onboarding-task-products",{scope:"woocommerce-tasks",render:()=>(0,S.jsx)(L,{})})}}]); |