'use strict';
import { apiPut } from '../../../../fd-toolbox/api/api-client.js';
import { combineEndpointPath } from '../../../../fd-toolbox/http/url/urls.js';
import { fetchUiResourceMeta } from '../../ui-meta-providers.js';

var __defProp=Object['defineProperty'],__name=(_0x42aa1c,_0x3016b3)=>__defProp(_0x42aa1c,'name',{'value':_0x3016b3,'configurable':!![]});async function getPropertyMeta(_0x2e37bf,_0x32061b){const _0x548365=await fetchUiResourceMeta(_0x32061b);return _0x548365['resourceMeta']['properties'][_0x2e37bf];}__name(getPropertyMeta,'getPropertyMeta');async function apiSetPropertyToUndefined(_0x4a9702,_0x432382,_0x4331a8){_0x4a9702[_0x4331a8]=void(-0x16af+0xa1b*-0x2+-0x2ae5*-0x1);const _0x468fa5={'resourceName':_0x432382,'resource':_0x4a9702};await apiPut(combineEndpointPath(_0x432382,_0x4a9702['id']),_0x468fa5);}__name(apiSetPropertyToUndefined,'apiSetPropertyToUndefined');async function apiAddRelation(_0x385e17,_0x2d4e00,_0x1fd8e9,_0x477fe8){_0x385e17[_0x1fd8e9]=_0x477fe8;const _0x525e14={'resourceName':_0x2d4e00,'resource':_0x385e17};await apiPut(combineEndpointPath(_0x2d4e00,_0x385e17['id']),_0x525e14);}__name(apiAddRelation,'apiAddRelation');

export { apiAddRelation, apiSetPropertyToUndefined, getPropertyMeta };
