const require_objectSpread2 = require("../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
//#region src/plus/saasDevice/deviceProfile/components/ProfileSetting/utils.ts
const EMPTY_I18N = {
	original: "",
	"zh-CN": "",
	"zh-HK": "",
	en: "",
	pt: "",
	ja: ""
};
const toUpdatePayload = (basic) => {
	var _basic$icon, _basic$description, _basic$sort;
	return {
		icon: (_basic$icon = basic === null || basic === void 0 ? void 0 : basic.icon) !== null && _basic$icon !== void 0 ? _basic$icon : "",
		name: basic === null || basic === void 0 ? void 0 : basic.name,
		description: (_basic$description = basic === null || basic === void 0 ? void 0 : basic.description) !== null && _basic$description !== void 0 ? _basic$description : require_objectSpread2._objectSpread2({}, EMPTY_I18N),
		status: basic === null || basic === void 0 ? void 0 : basic.status,
		sort: (_basic$sort = basic === null || basic === void 0 ? void 0 : basic.sort) !== null && _basic$sort !== void 0 ? _basic$sort : 0,
		data: {}
	};
};
//#endregion
exports.toUpdatePayload = toUpdatePayload;
