'use strict';
import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
import { combineEndpointPath } from '../../../fd-toolbox/http/url/urls.js';
import { apiPut } from '../../../fd-toolbox/api/api-client.js';
import { productStatuses } from '../../common/products/product-enums.js';

var __defProp=Object['defineProperty'],__name=(_0x385c88,_0x1b0d24)=>__defProp(_0x385c88,'name',{'value':_0x1b0d24,'configurable':!![]});async function rejectProduct(_0xf8313){const _0x1783b2={..._0xf8313,'status':productStatuses['draft']};await apiPut(combineEndpointPath(resourceNames['product'],_0xf8313['id']),{'resource':_0x1783b2});}__name(rejectProduct,'rejectProduct');

export { rejectProduct };
