import { importShared } from './__federation_fn_import-BLFDCY-V.js';
import { L as LOCAL_AUTH_MODELS } from './model-names-DrcaRxt1.js';

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

const {adminCrudActionWebSpec,adminCrudColumnWebSpec} = await importShared('@baseplate-dev/project-builder-lib/web');
const web = createPluginModule({
  name: "web",
  dependencies: {
    adminCrudActionWeb: adminCrudActionWebSpec,
    adminCrudColumnWeb: adminCrudColumnWebSpec
  },
  initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
    adminCrudActionWeb.actions.addMany([
      {
        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" })
      },
      {
        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.columns.add({
      pluginKey,
      name: "roles",
      label: "Roles",
      isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name === LOCAL_AUTH_MODELS.user,
      getNewColumn: () => ({ type: "roles", label: "Roles" })
    });
  }
});

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