plugin updates
This commit is contained in:
+2
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[4098],{94098:(s,a,b)=>{b.r(a),b.d(a,{PublishButton:()=>c.H});var c=b(43279)}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,6 +0,0 @@
|
||||
/*!
|
||||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||||
*
|
||||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
File diff suppressed because one or more lines are too long
+7
@@ -1,3 +1,10 @@
|
||||
/*!
|
||||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||||
*
|
||||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim.production.min.js
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-store-alerts{position:relative;margin:0 0 40px 0;margin-right:var(--large-gap);padding:24px;border:0;box-shadow:0 0 8px -2px rgba(0,0,0,.3)}.woocommerce-store-alerts::before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:rgba(0,0,0,0)}.woocommerce-store-alerts .components-card__header{margin-bottom:12px}.woocommerce-store-alerts a.components-button{min-height:36px;padding:4px 16px}@media(max-width: 782px){.woocommerce-store-alerts a.components-button{min-height:36px;font-size:16px;line-height:1.625;padding:5px 16px}}.woocommerce-store-alerts a.components-button+.components-button{margin-left:10px}.woocommerce-store-alerts a.components-button.is-button{color:#757575}@media(max-width: 782px){.woocommerce-store-alerts{margin-bottom:24px;padding:16px}.woocommerce-store-alerts .components-card__header{display:flex;flex-direction:column-reverse;align-items:flex-start}}.woocommerce-embed-page .woocommerce-store-alerts{margin:40px 20px 20px}@media(max-width: 782px){.woocommerce-embed-page .woocommerce-store-alerts{margin-top:24px}}.is-alert-error::before{background-color:#dc3232}.is-alert-error .components-card__header h2 svg{color:#dc3232}.is-alert-update::before{background-color:var(--wp-admin-theme-color, #11a0d2)}.is-alert-update .components-card__header h2 svg{color:var(--wp-admin-theme-color, #11a0d2)}.components-card__body .woocommerce-store-alerts__message{margin-bottom:16px}.woocommerce-store-alerts__pagination{display:inline-flex;align-items:center;border:1px solid #b5bfc9;border-radius:4px;background:#f0f2f4;margin-left:16px;min-width:120px}.woocommerce-store-alerts__pagination .components-button{padding:4px;/*!rtl:ignore*/}.rtl .woocommerce-store-alerts__pagination .components-button .arrow-left-icon,.rtl .woocommerce-store-alerts__pagination .components-button .arrow-right-icon{transform:scaleX(-1)}.woocommerce-store-alerts__pagination .woocommerce-store-alerts__pagination-label{padding:5px 12px;border-width:0 1px;border-color:#b5bfc9;border-style:solid;flex:1 1;font-size:14px;font-size:0.875rem}@media(max-width: 782px){.woocommerce-store-alerts__pagination{margin-left:0;margin-bottom:14px}.woocommerce-store-alerts__pagination .woocommerce-store-alerts__pagination-label{text-align:center}}.woocommerce-store-alerts__pagination button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.woocommerce-store-alerts__pagination button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.woocommerce-store-alerts.is-loading::before{animation:loading-fade 1.6s ease-in-out infinite;background-color:#f0f0f0;color:rgba(0,0,0,0)}.woocommerce-store-alerts.is-loading::before::after{content:" "}@media screen and (prefers-reduced-motion: reduce){.woocommerce-store-alerts.is-loading::before{animation:none}}.woocommerce-store-alerts.is-loading .is-placeholder{animation:loading-fade 1.6s ease-in-out infinite;background-color:#f0f0f0;color:rgba(0,0,0,0);display:inline-block;height:16px}.woocommerce-store-alerts.is-loading .is-placeholder::after{content:" "}@media screen and (prefers-reduced-motion: reduce){.woocommerce-store-alerts.is-loading .is-placeholder{animation:none}}.woocommerce-store-alerts.is-loading .components-card__header .is-placeholder:nth-child(1){width:340px;height:32px}.woocommerce-store-alerts.is-loading .components-card__header .is-placeholder:nth-child(2){width:137px;height:38px}.woocommerce-store-alerts.is-loading .components-card__footer .is-placeholder{min-width:120px;height:30px}.woocommerce-store-alerts.is-loading .components-card__body .is-placeholder:nth-child(1){width:75%}.woocommerce-store-alerts.is-loading .components-card__body .is-placeholder:nth-child(2){width:45%}.woocommerce-store-alerts.is-loading .woocommerce-store-alerts__actions .is-placeholder{width:110px;height:26px}@media(max-width: 782px){.woocommerce-store-alerts.is-loading .components-card__header h2{width:100%}.woocommerce-store-alerts.is-loading .components-card__header h2 .is-placeholder{width:50%}.woocommerce-store-alerts.is-loading .components-card__footer{margin-bottom:14px}}.woocommerce-store-alerts__snooze{display:inline-flex;margin-left:10px}.woocommerce-store-alerts__snooze .components-select-control__input{vertical-align:initial;min-height:36px}
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-store-alerts{position:relative;margin:0 0 40px 0;margin-right:var(--large-gap);padding:24px;border:0;box-shadow:0 0 8px -2px rgba(0,0,0,.3)}.woocommerce-store-alerts::before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:rgba(0,0,0,0)}.woocommerce-store-alerts .components-card__header{margin-bottom:12px}.woocommerce-store-alerts a.components-button{min-height:36px;padding:4px 16px}@media(max-width: 782px){.woocommerce-store-alerts a.components-button{min-height:36px;font-size:16px;line-height:1.625;padding:5px 16px}}.woocommerce-store-alerts a.components-button+.components-button{margin-left:10px}.woocommerce-store-alerts a.components-button.is-button{color:#757575}.woocommerce-store-alerts .woocommerce-store-alerts__close{position:absolute;top:-3px;right:-3px}.woocommerce-store-alerts .woocommerce-store-alerts__close svg{width:14px;height:14px}@media(max-width: 782px){.woocommerce-store-alerts{margin-bottom:24px;padding:16px}.woocommerce-store-alerts .components-card__header{display:flex;flex-direction:column-reverse;align-items:flex-start}}.woocommerce-embed-page .woocommerce-store-alerts{margin:40px 20px 20px}@media(max-width: 782px){.woocommerce-embed-page .woocommerce-store-alerts{margin-top:24px}}.is-alert-error::before{background-color:#dc3232}.is-alert-error .components-card__header h2 svg{color:#dc3232}.is-alert-update::before{background-color:var(--wp-admin-theme-color, #11a0d2)}.is-alert-update .components-card__header h2 svg{color:var(--wp-admin-theme-color, #11a0d2)}.components-card__body .woocommerce-store-alerts__message{margin-bottom:16px}.woocommerce-store-alerts__pagination{display:inline-flex;align-items:center;border:1px solid #b5bfc9;border-radius:4px;background:#f0f2f4;margin-left:16px;min-width:120px}.woocommerce-store-alerts__pagination .components-button{padding:4px;/*!rtl:ignore*/}.rtl .woocommerce-store-alerts__pagination .components-button .arrow-left-icon,.rtl .woocommerce-store-alerts__pagination .components-button .arrow-right-icon{transform:scaleX(-1)}.woocommerce-store-alerts__pagination .woocommerce-store-alerts__pagination-label{padding:5px 12px;border-width:0 1px;border-color:#b5bfc9;border-style:solid;flex:1 1;font-size:14px;font-size:0.875rem}@media(max-width: 782px){.woocommerce-store-alerts__pagination{margin-left:0;margin-bottom:14px}.woocommerce-store-alerts__pagination .woocommerce-store-alerts__pagination-label{text-align:center}}.woocommerce-store-alerts__pagination button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.woocommerce-store-alerts__pagination button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.woocommerce-store-alerts.is-loading::before{animation:loading-fade 1.6s ease-in-out infinite;background-color:#f0f0f0;color:rgba(0,0,0,0)}.woocommerce-store-alerts.is-loading::before::after{content:" "}@media screen and (prefers-reduced-motion: reduce){.woocommerce-store-alerts.is-loading::before{animation:none}}.woocommerce-store-alerts.is-loading .is-placeholder{animation:loading-fade 1.6s ease-in-out infinite;background-color:#f0f0f0;color:rgba(0,0,0,0);display:inline-block;height:16px}.woocommerce-store-alerts.is-loading .is-placeholder::after{content:" "}@media screen and (prefers-reduced-motion: reduce){.woocommerce-store-alerts.is-loading .is-placeholder{animation:none}}.woocommerce-store-alerts.is-loading .components-card__header .is-placeholder:nth-child(1){width:340px;height:32px}.woocommerce-store-alerts.is-loading .components-card__header .is-placeholder:nth-child(2){width:137px;height:38px}.woocommerce-store-alerts.is-loading .components-card__footer .is-placeholder{min-width:120px;height:30px}.woocommerce-store-alerts.is-loading .components-card__body .is-placeholder:nth-child(1){width:75%}.woocommerce-store-alerts.is-loading .components-card__body .is-placeholder:nth-child(2){width:45%}.woocommerce-store-alerts.is-loading .woocommerce-store-alerts__actions .is-placeholder{width:110px;height:26px}@media(max-width: 782px){.woocommerce-store-alerts.is-loading .components-card__header h2{width:100%}.woocommerce-store-alerts.is-loading .components-card__header h2 .is-placeholder{width:50%}.woocommerce-store-alerts.is-loading .components-card__footer{margin-bottom:14px}}.woocommerce-store-alerts__snooze{display:inline-flex;margin-left:10px}.woocommerce-store-alerts__snooze .components-select-control__input{vertical-align:initial;min-height:36px}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[9605],{75516:(e,t,o)=>{o.r(t),o.d(t,{Products:()=>L});var c=o(69307),r=o(65736),s=o(71310),n=o(14812),a=o(98817),i=o(55609),m=o(74617),l=o(23374),p=o(86241),d=o(73224),u=o(14599),_=o(92694),k=o(17062),w=o(73838),E=o(35231),h=o(53389),g=o(76357),C=o(86020),y=o(69987);const v=()=>{const{recordCompletionTime:e}=(0,y.Z)("products");return(0,c.createElement)("div",{className:"woocommerce-products-footer"},(0,c.createElement)(n.Text,{className:"woocommerce-products-footer__selling-somewhere-else"},(0,r.__)("Are you already selling somewhere else?","woocommerce")),(0,c.createElement)(n.Text,{className:"woocommerce-products-footer__import-options"},(0,g.Z)({mixedString:(0,r.__)("{{importCSVLink}}Import your products from a CSV file{{/importCSVLink}}.","woocommerce"),components:{importCSVLink:(0,c.createElement)(C.Link,{onClick:()=>((0,u.recordEvent)("tasklist_add_product",{method:"import"}),e(),window.location.href=(0,m.getAdminLink)("edit.php?post_type=product&page=product_importer&wc_onboarding_active_task=products"),!1),href:"",type:"wc-admin"},(0,c.createElement)(c.Fragment,null))}})))};var b=o(69359),f=o(35192),S=o(93914),Z=o(12266);const T=({isExpanded:e,onClick:t})=>(0,c.createElement)(i.Button,{className:"woocommerce-task-products__button-view-less-product-types",onClick:t},e?(0,r.__)("View less product types","woocommerce"):(0,r.__)("View more product types","woocommerce"),(0,c.createElement)(l.Z,{icon:e?p.Z:d.Z})),L=()=>{const[e,t]=(0,c.useState)(!1),[o,s]=(0,c.useState)(!1),a=(0,w.r)((()=>{const e=(0,k.O3)("onboarding");return e?.profile&&e?.profile.product_types||["physical"]})()),{productTypes:i,isRequesting:l}=(0,E.Z)((0,w.Q)(),a),{recordCompletionTime:p}=(0,y.Z)("products"),d=(0,c.useMemo)((()=>i.map((e=>({...e,onClick:()=>{e.onClick(),p()}})))),[p,i]),{loadSampleProduct:g,isLoadingSampleProducts:C}=(0,f.Z)({redirectUrlAfterSuccess:(0,m.getAdminLink)("edit.php?post_type=product&wc_onboarding_active_task=products")}),L=(0,c.useMemo)((()=>{const t=d.filter((e=>a.includes(e.key)));return e&&d.forEach((e=>!t.includes(e)&&t.push(e))),(0,_.applyFilters)(Z.x,t)}),[a,e,d]);return(0,c.createElement)("div",{className:"woocommerce-task-products"},(0,c.createElement)(n.Text,{variant:"title",as:"h2",className:"woocommerce-task-products__title"},(0,r.__)("What product do you want to add?","woocommerce")),(0,c.createElement)("div",{className:"woocommerce-product-content"},(0,c.createElement)(h.Z,{items:L,onClickLoadSampleProduct:()=>s(!0),showOtherOptions:e,isTaskListItemClicked:l}),(0,c.createElement)(T,{isExpanded:e,onClick:()=>{e||(0,u.recordEvent)("tasklist_view_more_product_types_click"),t(!e)}}),(0,c.createElement)(v,null)),C?(0,c.createElement)(b.Z,null):o&&(0,c.createElement)(S.Z,{onCancel:()=>{s(!1),(0,u.recordEvent)("tasklist_cancel_load_sample_products_click")},onImport:()=>{s(!1),g()}}))},x=()=>(0,c.createElement)(s.WooOnboardingTask,{id:"products"},(0,c.createElement)(L,null));(0,a.registerPlugin)("wc-admin-onboarding-task-products",{scope:"woocommerce-tasks",render:()=>(0,c.createElement)(x,null)})}}]);
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-task-products{display:flex;flex-direction:column;align-items:center}.woocommerce-task-products a{text-decoration:none;color:#007cba}.woocommerce-task-products .woocommerce-task-products__title{font-size:24px;text-align:center}.woocommerce-task-products .woocommerce-product-content{display:flex;flex-direction:column}.woocommerce-task-products .woocommerce-task-products__button-view-less-product-types{color:#007cba;padding:0;height:-moz-fit-content;height:fit-content;margin-top:21px;justify-content:center}.woocommerce-task-products .woocommerce-task-products__button-view-less-product-types svg{margin-left:8px}.woocommerce-task-products .woocommerce-task-products__button-view-less-product-types:focus{color:#007cba;outline:none;box-shadow:none}.woocommerce-task-products .woocommerce-products-footer{margin-top:53px;display:flex;flex-direction:column}.woocommerce-task-products .woocommerce-products-footer__selling-somewhere-else{text-transform:uppercase;color:#757575;font-weight:500;font-size:11px;line-height:16px;margin-bottom:8px}.woocommerce-task-products .woocommerce-products-stack{max-width:550px;margin-top:32px}
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-products-stack{width:550px;position:relative}@media(max-width: 550px){.woocommerce-products-stack{width:100%}}.woocommerce-products-stack a{text-decoration:none;color:#007cba}.woocommerce-products-stack .woocommerce-list__item{margin-top:8px;border-radius:3px;border:1.5px solid #dcdcde}.woocommerce-products-stack .woocommerce-list__item:hover{background-color:#fff;border:1.5px solid #007cba}.woocommerce-products-stack .woocommerce-list__item:hover .woocommerce-list__item-title{color:#1e1e1e}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-enter{transform:none}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-enter-active{transform:none}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-exit-active{display:none}.woocommerce-products-stack .woocommerce-list__item:first-child{margin-top:0}.woocommerce-products-stack .woocommerce-list__item-inner:focus{box-shadow:none}.woocommerce-products-stack .woocommerce-list__item-before{background:#f0f6fc;padding:8px;border-radius:50%}.woocommerce-products-stack .woocommerce-list__item-title{color:#1e1e1e;line-height:16px;font-weight:600}.woocommerce-products-stack .woocommerce-list__item-content{color:#757575;line-height:16px;font-weight:400}.woocommerce-products-stack .woocommerce-list__item-after svg{fill:#949494}.woocommerce-products-stack .woocommerce-stack__other-options{display:block;margin-top:20px;margin-bottom:4px;color:#757575;line-height:16px}.woocommerce-products-stack .woocommerce-stack__overlay-spinner{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(255,255,255,.8);display:flex;justify-content:center;align-items:center;z-index:999}.woocommerce-products-stack .woocommerce-stack__overlay-spinner .list-overlay{position:relative}
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-products-stack{width:550px;position:relative}@media(max-width: 550px){.woocommerce-products-stack{width:100%}}.woocommerce-products-stack a{text-decoration:none;color:#007cba}.woocommerce-products-stack .woocommerce-list__item{margin-top:8px;border-radius:3px;border:1.5px solid #dcdcde}.woocommerce-products-stack .woocommerce-list__item:hover{background-color:#fff;border:1.5px solid #007cba}.woocommerce-products-stack .woocommerce-list__item:hover .woocommerce-list__item-title{color:#1e1e1e}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-enter{transform:none}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-enter-active{transform:none}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-exit-active{display:none}.woocommerce-products-stack .woocommerce-list__item:first-child{margin-top:0}.woocommerce-products-stack .woocommerce-list__item.woocommerce-products-list__item-printful-advert .woocommerce-list__item-before{background:none;border-radius:0;padding:0}.woocommerce-products-stack .woocommerce-list__item.woocommerce-products-list__item-printful-advert .woocommerce-list__item-title span.printful-sponsored__text{display:flex;flex-direction:row;align-items:center;gap:8px}.woocommerce-products-stack .woocommerce-list__item.woocommerce-products-list__item-printful-advert .woocommerce-list__item-title span.printful-sponsored__text .woocommerce-label{background-color:rgba(var(--wp-admin-theme-color--rgb), 0.1);color:var(--wp-admin-theme-color, #000);border-radius:2px;padding:4px 8px;font-weight:400}.woocommerce-products-stack .woocommerce-list__item-inner{padding:20px}.woocommerce-products-stack .woocommerce-list__item-inner:focus{box-shadow:none}.woocommerce-products-stack .woocommerce-list__item-before{background:#f0f6fc;padding:8px;border-radius:50%}.woocommerce-products-stack .woocommerce-list__item-title{color:#1e1e1e;line-height:16px;font-weight:600}.woocommerce-products-stack .woocommerce-list__item-content{color:#757575;line-height:16px;font-weight:400}.woocommerce-products-stack .woocommerce-list__item-after svg{fill:#949494}.woocommerce-products-stack .woocommerce-stack__other-options{display:block;margin-top:20px;margin-bottom:4px;color:#757575;line-height:16px}.woocommerce-products-stack .woocommerce-stack__overlay-spinner{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(255,255,255,.8);display:flex;justify-content:center;align-items:center;z-index:999}.woocommerce-products-stack .woocommerce-stack__overlay-spinner .list-overlay{position:relative}
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-products-load-sample-product-modal-overlay{top:0;background:rgba(255,255,255,.8)}@media(min-width: 783px){.woocommerce-products-load-sample-product-modal-overlay{left:35px}}@media(min-width: 960px){.woocommerce-products-load-sample-product-modal-overlay{left:160px}}.woocommerce-products-load-sample-product-modal{background:rgba(0,0,0,0);box-shadow:none}.woocommerce-products-load-sample-product-modal .components-modal__header{display:none}.woocommerce-products-load-sample-product-modal .components-modal__content,.woocommerce-products-load-sample-product-modal .components-modal__header+div{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0}.woocommerce-products-load-sample-product-modal .woocommerce-load-sample-product-modal__title{color:#1e1e1e;font-weight:400;font-size:24px;line-height:32px;margin-top:32px}.woocommerce-products-load-sample-product-modal .woocommerce-load-sample-product-modal__description{color:#757575;font-weight:400;font-size:16px;line-height:24px;margin-top:12px}
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}@media(min-width: 783px){.woocommerce-products-load-sample-product-confirm-modal-overlay{left:35px}}@media(min-width: 960px){.woocommerce-products-load-sample-product-confirm-modal-overlay{left:160px}}.woocommerce-products-load-sample-product-confirm-modal .components-truncate.components-text.woocommerce-confirmation-modal__message{color:#50575e}.woocommerce-products-load-sample-product-confirm-modal .woocommerce-confirmation-modal-actions{display:flex;justify-content:flex-end;margin-top:16px}.woocommerce-products-load-sample-product-confirm-modal .woocommerce-confirmation-modal-actions button{margin-left:16px}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[997],{3581:(e,t,o)=>{o.r(t),o.d(t,{Products:()=>C});var r=o(69307),c=o(71310),n=o(98817),a=o(65736),l=o(23374),s=o(86241),i=o(73224),m=o(55609),d=o(74617),p=o(14599),u=o(53389),_=o(86020);const k=({items:e})=>(0,r.createElement)("div",{className:"woocommerce-products-card-list"},(0,r.createElement)(_.List,{items:e}));var v=o(17624);const g=[{key:"from-csv",title:(0,a.__)("FROM A CSV FILE","woocommerce"),content:(0,a.__)("Import all products at once by uploading a CSV file.","woocommerce"),before:(0,r.createElement)(v.Z,null),onClick:()=>{(0,p.recordEvent)("tasklist_add_product",{method:"import"}),window.location.href=(0,d.getAdminLink)("edit.php?post_type=product&page=product_importer&wc_onboarding_active_task=products")}}];var w=o(35231),h=o(73838),f=o(69359),b=o(35192),E=o(93914),y=o(69987);const C=()=>{const[e,t]=(0,r.useState)(!1),{recordCompletionTime:o}=(0,y.Z)("products"),[c,n]=(0,r.useState)(!1),_=(0,r.useMemo)((()=>g.map((e=>({...e,onClick:()=>{e.onClick(),o()}})))),[o]),{loadSampleProduct:v,isLoadingSampleProducts:C}=(0,b.Z)({redirectUrlAfterSuccess:(0,d.getAdminLink)("edit.php?post_type=product&wc_onboarding_active_task=products")}),{productTypes:O}=(0,w.Z)((0,h.Q)(),[],{onClick:o}),Z=(0,r.createElement)(u.Z,{items:O,onClickLoadSampleProduct:()=>n(!0)});return(0,r.createElement)("div",{className:"woocommerce-task-import-products"},(0,r.createElement)("h1",null,(0,a.__)("Import your products","woocommerce")),(0,r.createElement)(k,{items:_}),(0,r.createElement)("div",{className:"woocommerce-task-import-products-stacks"},(0,r.createElement)(m.Button,{onClick:()=>{(0,p.recordEvent)("tasklist_add_product_from_scratch_click"),t(!e)}},(0,a.__)("Or add your products from scratch","woocommerce"),(0,r.createElement)(l.Z,{icon:e?s.Z:i.Z})),e&&Z),C?(0,r.createElement)(f.Z,null):c&&(0,r.createElement)(E.Z,{onCancel:()=>{n(!1),(0,p.recordEvent)("tasklist_cancel_load_sample_products_click")},onImport:()=>{n(!1),v()}}))};(0,n.registerPlugin)("wc-admin-onboarding-task-products",{scope:"woocommerce-tasks",render:()=>(0,r.createElement)(c.WooOnboardingTask,{id:"products"},(0,r.createElement)(C,null))})},17624:(e,t,o)=>{t.Z=function(e){var t=e.size,o=void 0===t?24:t,r=e.onClick,l=(e.icon,e.className),s=function(e,t){if(null==e)return{};var o,r,c=function(e,t){if(null==e)return{};var o,r,c={},n=Object.keys(e);for(r=0;r<n.length;r++)o=n[r],0<=t.indexOf(o)||(c[o]=e[o]);return c}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],0<=t.indexOf(o)||Object.prototype.propertyIsEnumerable.call(e,o)&&(c[o]=e[o])}return c}(e,n),i=["gridicon","gridicons-pages",l,!1,!1,!1].filter(Boolean).join(" ");return c.default.createElement("svg",a({className:i,height:o,width:o,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),c.default.createElement("g",null,c.default.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6a2 2 0 01-2-2V4a2 2 0 012-2h12a2 2 0 012 2zm-2 10V4H6v16h6v-4a2 2 0 012-2h4z"})))};var r,c=(r=o(99196))&&r.__esModule?r:{default:r},n=["size","onClick","icon","className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t,o=1;o<arguments.length;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)}}}]);
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-products-stack{width:550px;position:relative}@media(max-width: 550px){.woocommerce-products-stack{width:100%}}.woocommerce-products-stack a{text-decoration:none;color:#007cba}.woocommerce-products-stack .woocommerce-list__item{margin-top:8px;border-radius:3px;border:1.5px solid #dcdcde}.woocommerce-products-stack .woocommerce-list__item:hover{background-color:#fff;border:1.5px solid #007cba}.woocommerce-products-stack .woocommerce-list__item:hover .woocommerce-list__item-title{color:#1e1e1e}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-enter{transform:none}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-enter-active{transform:none}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-exit-active{display:none}.woocommerce-products-stack .woocommerce-list__item:first-child{margin-top:0}.woocommerce-products-stack .woocommerce-list__item-inner:focus{box-shadow:none}.woocommerce-products-stack .woocommerce-list__item-before{background:#f0f6fc;padding:8px;border-radius:50%}.woocommerce-products-stack .woocommerce-list__item-title{color:#1e1e1e;line-height:16px;font-weight:600}.woocommerce-products-stack .woocommerce-list__item-content{color:#757575;line-height:16px;font-weight:400}.woocommerce-products-stack .woocommerce-list__item-after svg{fill:#949494}.woocommerce-products-stack .woocommerce-stack__other-options{display:block;margin-top:20px;margin-bottom:4px;color:#757575;line-height:16px}.woocommerce-products-stack .woocommerce-stack__overlay-spinner{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(255,255,255,.8);display:flex;justify-content:center;align-items:center;z-index:999}.woocommerce-products-stack .woocommerce-stack__overlay-spinner .list-overlay{position:relative}
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-products-stack{width:550px;position:relative}@media(max-width: 550px){.woocommerce-products-stack{width:100%}}.woocommerce-products-stack a{text-decoration:none;color:#007cba}.woocommerce-products-stack .woocommerce-list__item{margin-top:8px;border-radius:3px;border:1.5px solid #dcdcde}.woocommerce-products-stack .woocommerce-list__item:hover{background-color:#fff;border:1.5px solid #007cba}.woocommerce-products-stack .woocommerce-list__item:hover .woocommerce-list__item-title{color:#1e1e1e}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-enter{transform:none}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-enter-active{transform:none}.woocommerce-products-stack .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-exit-active{display:none}.woocommerce-products-stack .woocommerce-list__item:first-child{margin-top:0}.woocommerce-products-stack .woocommerce-list__item.woocommerce-products-list__item-printful-advert .woocommerce-list__item-before{background:none;border-radius:0;padding:0}.woocommerce-products-stack .woocommerce-list__item.woocommerce-products-list__item-printful-advert .woocommerce-list__item-title span.printful-sponsored__text{display:flex;flex-direction:row;align-items:center;gap:8px}.woocommerce-products-stack .woocommerce-list__item.woocommerce-products-list__item-printful-advert .woocommerce-list__item-title span.printful-sponsored__text .woocommerce-label{background-color:rgba(var(--wp-admin-theme-color--rgb), 0.1);color:var(--wp-admin-theme-color, #000);border-radius:2px;padding:4px 8px;font-weight:400}.woocommerce-products-stack .woocommerce-list__item-inner{padding:20px}.woocommerce-products-stack .woocommerce-list__item-inner:focus{box-shadow:none}.woocommerce-products-stack .woocommerce-list__item-before{background:#f0f6fc;padding:8px;border-radius:50%}.woocommerce-products-stack .woocommerce-list__item-title{color:#1e1e1e;line-height:16px;font-weight:600}.woocommerce-products-stack .woocommerce-list__item-content{color:#757575;line-height:16px;font-weight:400}.woocommerce-products-stack .woocommerce-list__item-after svg{fill:#949494}.woocommerce-products-stack .woocommerce-stack__other-options{display:block;margin-top:20px;margin-bottom:4px;color:#757575;line-height:16px}.woocommerce-products-stack .woocommerce-stack__overlay-spinner{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(255,255,255,.8);display:flex;justify-content:center;align-items:center;z-index:999}.woocommerce-products-stack .woocommerce-stack__overlay-spinner .list-overlay{position:relative}
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-products-card-list a{color:#007cba}.woocommerce-products-card-list .woocommerce-list{display:grid;grid-template-columns:auto auto;grid-column-gap:16px;grid-row-gap:24px;justify-content:center}.woocommerce-products-card-list .woocommerce-list__item{float:left;border-radius:3px;border:1.5px solid #dcdcde;width:263px;height:226px;text-align:center;align-items:start}.woocommerce-products-card-list .woocommerce-list__item:hover{background-color:#fff;border:1.5px solid #007cba}.woocommerce-products-card-list .woocommerce-list__item:hover .woocommerce-list__item-title{color:#1e1e1e}.woocommerce-products-card-list .woocommerce-list__item .woocommerce-list__item-inner{padding-top:40px;flex-flow:wrap;justify-content:center}.woocommerce-products-card-list .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-enter{transform:none;transition:none}.woocommerce-products-card-list .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-enter-active{transform:none;transition:none}.woocommerce-products-card-list .woocommerce-list__item:not(.transitions-disabled).woocommerce-list__item-exit-active{display:none}.woocommerce-products-card-list .woocommerce-list__item>.woocommerce-list__item-inner{box-shadow:none}.woocommerce-products-card-list .woocommerce-list__item-text{margin-top:16px}.woocommerce-products-card-list .woocommerce-list__item-text .woocommerce-list__item-content{margin-top:16px}.woocommerce-products-card-list .woocommerce-list__item-before{margin-right:0;background:#f0f6fc;padding:8px;border-radius:50%}.woocommerce-products-card-list .woocommerce-list__item-title{color:#1e1e1e;line-height:16px;font-weight:600;text-transform:uppercase}.woocommerce-products-card-list .woocommerce-list__item-content{color:#757575;line-height:16px;font-weight:400}
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-products-card-list .woocommerce-list__item-content a{display:block;text-decoration:none;margin-top:8px}.woocommerce-products-card-list ul li:nth-child(2) .woocommerce-list__item-inner{padding:40px 17px 16px 17px}.woocommerce-task-import-products{max-width:544px;margin:auto}.woocommerce-task-import-products h1{text-align:center;padding:0 0 32px 0}.woocommerce-task-import-products button{color:var(--wp-admin-theme-color)}.woocommerce-task-import-products button:focus:not(:disabled){outline:none;box-shadow:none}.woocommerce-task-import-products .woocommerce-task-import-products-stacks{display:flex;flex-wrap:wrap;justify-content:center;padding:25px 0 12px 0}.woocommerce-task-import-products .woocommerce-task-import-products-stacks .woocommerce-list__item .woocommerce-list__item-title{color:#1e1e1e}.woocommerce-task-import-products .woocommerce-task-import-products-stacks .woocommerce-list__item .woocommerce-list__item-content{color:#757575}.woocommerce-task-import-products .woocommerce-task-import-products-stacks .woocommerce-list__item-before{border:0;background:none}
|
||||
:root{--wp-admin-theme-color: #007cba;--wp-admin-theme-color--rgb: 0, 124, 186;--wp-admin-theme-color-darker-10: #006ba1;--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;--wp-admin-theme-color-darker-20: #005a87;--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;--wp-admin-border-width-focus: 2px}@media(min-resolution: 192dpi){:root{--wp-admin-border-width-focus: 1.5px}}.woocommerce-products-load-sample-product-modal-overlay{top:0;background:rgba(255,255,255,.8)}@media(min-width: 783px){.woocommerce-products-load-sample-product-modal-overlay{left:35px}}@media(min-width: 960px){.woocommerce-products-load-sample-product-modal-overlay{left:160px}}.woocommerce-products-load-sample-product-modal{background:rgba(0,0,0,0);box-shadow:none}.woocommerce-products-load-sample-product-modal .components-modal__header{display:none}.woocommerce-products-load-sample-product-modal .components-modal__content,.woocommerce-products-load-sample-product-modal .components-modal__header+div{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0}.woocommerce-products-load-sample-product-modal .woocommerce-load-sample-product-modal__title{color:#1e1e1e;font-weight:400;font-size:24px;line-height:32px;margin-top:32px}.woocommerce-products-load-sample-product-modal .woocommerce-load-sample-product-modal__description{color:#757575;font-weight:400;font-size:16px;line-height:24px;margin-top:12px}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[9966],{50516:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var a=t(69307),s=t(86020);const c=(0,a.lazy)((()=>t.e(8960).then(t.bind(t,54036))));class l extends a.Component{render(){const{path:e,query:n}=this.props;return(0,a.createElement)(a.Suspense,{fallback:(0,a.createElement)(s.Spinner,null)},(0,a.createElement)(c,{query:n,path:e}))}}const p=l}}]);
|
||||
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[9966],{50516:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var a=t(69307),s=t(86020);const c=(0,a.lazy)((()=>t.e(8960).then(t.bind(t,30427))));class l extends a.Component{render(){const{path:e,query:n}=this.props;return(0,a.createElement)(a.Suspense,{fallback:(0,a.createElement)(s.Spinner,null)},(0,a.createElement)(c,{query:n,path:e}))}}const p=l}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[7387],{3995:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(69307),o=r(51393),c=r(86020),l=r(14599),d=r(99196),a=r(98817),u=r(85597),i=r(46530),s=r(9818),p=r(5771);(0,o.productEditorHeaderApiFetchMiddleware)(),(0,o.productApiFetchMiddleware)();const m=(0,d.lazy)((()=>r.e(6083).then(r.bind(r,6083)))),E=(0,d.lazy)((()=>Promise.resolve().then(r.t.bind(r,51393,23)).then((e=>({default:e.__experimentalProductMVPFeedbackModalContainer})))));function _(){const{productId:e}=(0,u.UO)(),t=function(e){const{saveEntityRecord:t}=(0,s.useDispatch)("core"),[r,c]=(0,n.useState)(void 0);return(0,n.useEffect)((()=>{(e?(0,s.resolveSelect)("core").getEntityRecord("postType","product",Number.parseInt(e,10)):t("postType","product",{title:o.AUTO_DRAFT_NAME,status:"auto-draft"})).then((e=>{c(e)})).catch((e=>{throw c(void 0),e}))}),[e]),r}(e);return(0,d.useEffect)((()=>{document.body.classList.add("is-product-editor"),(0,a.registerPlugin)("wc-admin-product-editor",{scope:"woocommerce-product-block-editor",render:()=>(0,d.useContext)(o.__experimentalEditorLoadingContext)?null:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.__experimentalWooProductMoreMenuItem,null,(({onClose:e})=>(0,n.createElement)(p.e,{onClose:e}))),(0,n.createElement)(i.WooFooterItem,null,(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.__experimentalProductMVPCESFooter,{productType:"product"}),(0,n.createElement)(d.Suspense,{fallback:(0,n.createElement)(c.Spinner,null)},(0,n.createElement)(E,{productId:e?parseInt(e,10):void 0})))),(0,n.createElement)(d.Suspense,{fallback:(0,n.createElement)(c.Spinner,null)},(0,n.createElement)(m,null)))});const t=(0,o.__experimentalInitBlocks)();return()=>{document.body.classList.remove("is-product-editor"),(0,a.unregisterPlugin)("wc-admin-more-menu"),t()}}),[e]),(0,d.useEffect)((function(){e?(0,l.recordEvent)("product_edit_view",{source:o.TRACKS_SOURCE,product_id:e}):(0,l.recordEvent)("product_add_view",{source:o.TRACKS_SOURCE})}),[e]),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.__experimentalEditor,{product:t}))}}}]);
|
||||
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[7387],{3995:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var o=r(69307),n=r(51393),c=r(86020),d=r(14599),a=r(99196),l=r(98817),i=r(85597),u=r(46530),s=r(65736),p=r(9818),m=r(5771);(0,n.productEditorHeaderApiFetchMiddleware)(),(0,n.productApiFetchMiddleware)();const _=(0,a.lazy)((()=>r.e(6083).then(r.bind(r,6083)))),E=(0,a.lazy)((()=>Promise.resolve().then(r.t.bind(r,51393,23)).then((e=>({default:e.__experimentalProductMVPFeedbackModalContainer})))));function b(){const{productId:e}=(0,i.UO)();(0,a.useEffect)((()=>{document.body.classList.add("is-product-editor"),(0,l.registerPlugin)("wc-admin-product-editor",{scope:"woocommerce-product-block-editor",render:()=>(0,a.useContext)(n.__experimentalEditorLoadingContext)?null:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(n.__experimentalWooProductMoreMenuItem,null,(({onClose:e})=>(0,o.createElement)(m.e,{onClose:e}))),(0,o.createElement)(u.WooFooterItem,null,(0,o.createElement)(o.Fragment,null,(0,o.createElement)(n.__experimentalProductMVPCESFooter,{productType:"product"}),(0,o.createElement)(a.Suspense,{fallback:(0,o.createElement)(c.Spinner,null)},(0,o.createElement)(E,{productId:e?Number.parseInt(e,10):void 0})))),(0,o.createElement)(a.Suspense,{fallback:(0,o.createElement)(c.Spinner,null)},(0,o.createElement)(_,null)))});const t=(0,n.__experimentalInitBlocks)();return()=>{document.body.classList.remove("is-product-editor"),(0,l.unregisterPlugin)("wc-admin-product-editor"),t()}}),[e]),(0,a.useEffect)((function(){e?(0,d.recordEvent)("product_edit_view",{source:n.TRACKS_SOURCE,product_id:e}):(0,d.recordEvent)("product_add_view",{source:n.TRACKS_SOURCE})}),[e]);const t=function(e){const[t,r]=(0,o.useState)(void 0);return(0,o.useEffect)((()=>{e?r(Number.parseInt(e,10)):(0,p.dispatch)("core").saveEntityRecord("postType","product",{title:n.AUTO_DRAFT_NAME,status:"auto-draft"}).then((e=>r(e.id))).catch((e=>{throw r(void 0),e}))}),[e]),t}(e);return t?(0,o.createElement)(n.__experimentalEditor,{productId:t}):(0,o.createElement)("div",{className:"woocommerce-layout__loading"},(0,o.createElement)(c.Spinner,{"aria-label":(0,s.__)("Creating the product","woocommerce")}))}}}]);
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user