2021-09-21 19:33:44 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2022-12-28 08:08:54 +00:00
|
|
|
import { isImportProduct } from './utils';
|
2021-09-21 19:33:44 +00:00
|
|
|
import './PaymentGatewaySuggestions';
|
|
|
|
import './shipping';
|
|
|
|
import './Marketing';
|
|
|
|
import './appearance';
|
|
|
|
import './tax';
|
|
|
|
import './woocommerce-payments';
|
|
|
|
import './purchase';
|
2022-04-26 05:28:15 +00:00
|
|
|
|
2022-12-28 08:08:54 +00:00
|
|
|
const possiblyImportProductTask = async () => {
|
|
|
|
if ( isImportProduct() ) {
|
|
|
|
import( './import-products' );
|
2022-05-10 08:58:02 +00:00
|
|
|
} else {
|
|
|
|
import( './products' );
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2022-12-28 08:08:54 +00:00
|
|
|
possiblyImportProductTask();
|
2022-06-28 05:53:03 +00:00
|
|
|
|
|
|
|
if (
|
|
|
|
window.wcAdminFeatures &&
|
|
|
|
window.wcAdminFeatures[ 'shipping-smart-defaults' ]
|
|
|
|
) {
|
|
|
|
import( './experimental-shipping-recommendation' );
|
|
|
|
}
|