'use strict';
import { metas } from '../../meta/server/meta-core/constants/metas.js';
import { userFeatureProps } from '../../meta/core/resources/users/props/user-feature-props.js';
import { checkOnlyAdminAllowedToEdit } from '../users/admin-edit-admin.js';

var __defProp=Object['defineProperty'],__name=(_0xf26a6,_0x452ccc)=>__defProp(_0xf26a6,'name',{'value':_0x452ccc,'configurable':!![]});async function preUpdate(_0x1a4517){const _0x457e33=_0x1a4517['modifiedResource'];await checkOnlyAdminAllowedToEdit(_0x1a4517['crudUpdateConfig']['userId'],_0x457e33['userId']);}__name(preUpdate,'preUpdate');function getDynamicMetaConfig(){const _0x5e99af={'properties':{},'auth':void(0x107*0x14+0x4*-0x5ed+-0x4*-0xca),'allowedCrudActions':void(0x14cf+0xd9d+-0x226c)},_0x340037={'priority':metas['defaultStartingPropertyPriority']},_0x210ef0={'priority':metas['defaultStartingPropertyPriority']+(0x8bd*0x2+0x93*0x3b+0x1*-0x32f7)};return _0x5e99af['properties'][userFeatureProps['userId']]=_0x340037,_0x5e99af['properties'][userFeatureProps['featureId']]=_0x210ef0,_0x5e99af;}__name(getDynamicMetaConfig,'getDynamicMetaConfig');

export { getDynamicMetaConfig as getUserFeatureDynamicMetaConfig, preUpdate, preUpdate as preUpdateUserFeature };
