import { importShared } from './__federation_fn_import-C_QCk5FX.js';
import { L as LOCAL_AUTH_MODELS } from './model-names-CEoSIalq.js';

const {createPlatformPluginExport,ModelUtils} = await importShared('@baseplate-dev/project-builder-lib');

const {adminCrudActionWebSpec,adminCrudColumnWebSpec} = await importShared('@baseplate-dev/project-builder-lib/web');
const web = createPlatformPluginExport({
  dependencies: {
    adminCrudActionWeb: adminCrudActionWebSpec,
    adminCrudColumnWeb: adminCrudColumnWebSpec
  },
  exports: {},
  initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
    adminCrudActionWeb.registerActionWebConfig({
      pluginKey,
      name: "manage-roles",
      label: "Manage Roles",
      isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
      getNewAction: () => ({ type: "manage-roles", position: "dropdown" })
    });
    adminCrudActionWeb.registerActionWebConfig({
      pluginKey,
      name: "reset-password",
      label: "Reset Password",
      isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
      getNewAction: () => ({ type: "reset-password", position: "dropdown" })
    });
    adminCrudColumnWeb.registerColumnWebConfig({
      pluginKey,
      name: "roles",
      label: "Roles",
      isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
      getNewColumn: () => ({ type: "roles", label: "Roles" })
    });
    return {};
  }
});

export { web as default };
//# sourceMappingURL=__federation_expose_local-authAdminWeb-D2xGvwyL.js.map
