import { computed as t } from "vue";
import { af as e, a1 as l, a2 as d } from "./start-CE9SawgU.js";
import "vue-i18n";
import "pinia";
import "./header-Bn1EKnBE.js";
import { T as i, I as r } from "./topBarRoutes-CBd5qLxn.js";
const m = {
  hideGlobalSearch: !0,
  minRowCount: 1,
  canReorderRows: !1,
  hidePagination: !0,
  canReorderHeaders: !1,
  columns: [
    {
      id: "attributeId",
      header: "datahub-ui.dh-table.name"
    },
    {
      id: "requireFlag",
      header: "datahub-ui.dh-table.requiredFlag"
    }
  ]
}, f = {
  gridId: "datahub-attribute-sets",
  rowSelection: d.NONE,
  // @todo TASK-78 BE can't delete it, so no actions there. rowSelection: ROW_SELECTION.MULTI
  hideGlobalSearch: !1,
  hideFilters: !1,
  hideColumnCustomization: !1,
  hidePagination: !1,
  sortType: l.SINGLE,
  createActions: !0,
  routableId: "attributeSetId",
  reloadOnLocaleChange: !0,
  // tableActions: [
  //   {
  //     // @todo TASK-78 BE returns "Actindo.Modules.Actindo.DataHub.AttributeSets.delete" - method not found (old UI too)
  //     icon: "lucide:trash",
  //     title: "common.delete",
  // variant: "outlined",
  // color: "secondary",
  // destructive: true,
  //     event: TABLE_ACTION.DELETE,
  //     prepareIsDisabled: ({ selectedRows }) =>
  //       computed(() => !selectedRows.value.length),
  //   },
  // ],
  columns: [
    {
      id: "id",
      header: "common.id",
      isVisible: !1,
      minWidth: 200,
      filterable: e.NUMERIC,
      sortable: !0
    },
    {
      id: "active",
      header: "datahub-ui.dh-table.status",
      renderer: "IsActiveStatusCell",
      minWidth: 100,
      width: 150,
      ...r,
      sortable: !0
    },
    {
      id: "name",
      header: "datahub-ui.dh-table.name",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "key",
      header: "datahub-ui.dh-table.key",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0,
      className: "monospaced"
    },
    {
      id: "description",
      header: "datahub-ui.dh-table.description",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "readOnly",
      header: "datahub-ui.dh-table.readOnly",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "ownerPluginName",
      header: "datahub-ui.dh-table.ownerPluginName",
      minWidth: 200,
      filterable: !1,
      sortable: !1
    },
    {
      id: "created",
      header: "datahub-ui.dh-table.created",
      minWidth: 200,
      filterable: e.DATE,
      sortable: !0,
      renderer: "CellDateTime"
    },
    {
      id: "createdByUsername",
      header: "datahub-ui.dh-table.createdByUsername",
      minWidth: 200,
      isVisible: !1,
      filterable: !1,
      sortable: !1
    },
    {
      id: "modified",
      header: "datahub-ui.dh-table.modified",
      minWidth: 200,
      isVisible: !1,
      filterable: e.DATE,
      sortable: !0,
      renderer: "CellDateTime"
    },
    {
      id: "modifiedByUsername",
      header: "datahub-ui.dh-table.modifiedByUsername",
      minWidth: 200,
      isVisible: !1,
      filterable: !1,
      sortable: !1
    }
  ]
}, c = {
  // data: attributeSetsApi.getAttributes,
  gridId: "datahub-assigned-attributes",
  rowSelection: d.MULTI,
  hideGlobalSearch: !0,
  hideFilters: !1,
  hideColumnCustomization: !1,
  hidePagination: !1,
  sortType: l.SINGLE,
  createActions: !0,
  routable: !1,
  reloadOnLocaleChange: !0,
  tableActions: [
    {
      title: "datahub-ui.dh-table.addMapping",
      event: i.ADD_MAPPING,
      color: "primary",
      variant: "flat",
      prepareIsHidden: ({ selectedRows: a }) => t(
        () => a.value.length !== 1 || !!a.value[0].calculatedFromFields
      )
    },
    {
      title: "datahub-ui.dh-table.editMapping",
      event: i.EDIT_MAPPING,
      variant: "outlined",
      color: "secondary",
      prepareIsHidden: ({ selectedRows: a }) => t(
        () => a.value.length !== 1 || !a.value[0].calculatedFromFields
      )
    },
    {
      title: "datahub-ui.dh-table.deleteMapping",
      event: i.DELETE_MAPPING,
      prepareIsHidden: ({ selectedRows: a }) => t(
        () => a.value.length !== 1 || !a.value[0].calculatedFromFields
      )
    },
    {
      icon: "lucide:trash",
      title: "common.remove",
      variant: "outlined",
      color: "secondary",
      destructive: !0,
      event: i.DELETE,
      prepareIsDisabled: ({ selectedRows: a }) => t(() => !a.value.length)
    }
  ],
  columns: [
    {
      id: "id",
      header: "common.id",
      isVisible: !1,
      minWidth: 200,
      filterable: e.NUMERIC,
      sortable: !0
    },
    {
      id: "dhAttribute.name",
      header: "datahub-ui.dh-table.name",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0
    },
    {
      id: "dhAttribute.key",
      header: "datahub-ui.dh-table.key",
      minWidth: 200,
      filterable: e.STRING,
      sortable: !0,
      className: "monospaced"
    },
    {
      id: "parentSetName",
      header: "datahub-ui.dh-table.parentSetName",
      minWidth: 200,
      isVisible: !1,
      filterable: !1,
      sortable: !1
    },
    {
      id: "calculatedFromFields",
      header: "datahub-ui.dh-table.calculatedFromFields",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: !1,
      sortable: !1
    },
    {
      id: "configTextSet",
      header: "datahub-ui.dh-table.configTextSet",
      minWidth: 200,
      isVisible: !1,
      filterable: !1,
      sortable: !1
    },
    {
      id: "inherited",
      header: "datahub-ui.dh-table.inherited",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: !1,
      sortable: !1
    },
    {
      id: "readOnly",
      header: "datahub-ui.dh-table.readOnly",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "requiredFlag",
      header: "datahub-ui.dh-table.requiredFlag",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "uniqueFlag",
      header: "datahub-ui.dh-table.uniqueFlag",
      renderer: "CheckboxCell",
      minWidth: 200,
      filterable: e.BOOLEAN,
      sortable: !0
    },
    {
      id: "ownerPluginName",
      header: "datahub-ui.dh-table.ownerPluginName",
      minWidth: 200,
      filterable: !1,
      sortable: !1
    },
    {
      id: "created",
      header: "datahub-ui.dh-table.created",
      minWidth: 200,
      filterable: e.DATE,
      sortable: !0,
      renderer: "CellDateTime"
    },
    {
      id: "modified",
      header: "datahub-ui.dh-table.modified",
      minWidth: 200,
      isVisible: !1,
      filterable: e.DATE,
      sortable: !0,
      renderer: "CellDateTime"
    }
  ]
};
export {
  m as A,
  c as a,
  f as b
};
