import { endOfDay as n, startOfDay as a, startOfMonth as s } from "date-fns";
import { DICTIONARY as t } from "../../dictionary.js";
const r = (e, o) => o ? [
  {
    name: "createdAt",
    dictionaryId: t.LABEL_CREATED_AT,
    type: "datetime",
    multiple: !1,
    presence: "initialized",
    urlIcon: `${e}/frontend/components/object_logs/assets/icons/email.svg`,
    defaultOperand1: a(/* @__PURE__ */ new Date()),
    defaultOperand2: n(/* @__PURE__ */ new Date())
  },
  {
    name: "userId",
    dictionaryId: t.LABEL_USER,
    type: "string",
    multiple: !0,
    presence: "optional",
    urlIcon: `${e}/frontend/components/object_logs/assets/icons/email.svg`
  },
  {
    name: "logPreview",
    dictionaryId: t.LABEL_LOG_PREVIEW,
    type: "string",
    multiple: !0,
    presence: "optional",
    urlIcon: `${e}/frontend/components/object_logs/assets/icons/log_preview.svg`
  },
  {
    name: "logDetail",
    dictionaryId: t.LABEL_LOG_DETAIL,
    type: "string",
    multiple: !0,
    presence: "optional",
    urlIcon: `${e}/frontend/components/object_logs/assets/icons/log_detail.svg`
  }
] : [
  {
    name: "user_logs.created_at",
    dictionaryId: t.LABEL_CREATED_AT,
    type: "datetime",
    multiple: !1,
    presence: "fixed",
    urlIcon: `${e}/frontend/components/object_logs/assets/icons/email.svg`,
    defaultOperand1: s(/* @__PURE__ */ new Date()),
    defaultOperand2: n(/* @__PURE__ */ new Date())
  },
  {
    name: "users.email",
    dictionaryId: t.LABEL_USER,
    type: "string",
    multiple: !0,
    presence: "optional",
    urlIcon: `${e}/frontend/components/object_logs/assets/icons/email.svg`
  },
  {
    name: "user_logs.log_preview",
    dictionaryId: t.LABEL_LOG_PREVIEW,
    type: "string",
    multiple: !0,
    presence: "optional",
    urlIcon: `${e}/frontend/components/object_logs/assets/icons/log_preview.svg`
  },
  {
    name: "user_logs.log_detail",
    dictionaryId: t.LABEL_LOG_DETAIL,
    type: "string",
    multiple: !0,
    presence: "optional",
    urlIcon: `${e}/frontend/components/object_logs/assets/icons/log_detail.svg`
  }
];
export {
  r as filterFieldsGenerator
};
