const FIELD_VISIBILITY = {
  meeting: /* @__PURE__ */ new Set([
    "title",
    "date",
    "startTime",
    "duration",
    "allDay",
    "timezone",
    "recurrence",
    "participants",
    "guestPermissions",
    "location",
    "linkedEntities",
    "description",
    "reminder",
    "visibility"
  ]),
  call: /* @__PURE__ */ new Set([
    "title",
    "date",
    "startTime",
    "duration",
    "participants",
    "linkedEntities",
    "description",
    "reminder",
    "visibility"
  ]),
  // Task: now also surfaces Due time (startTime) + Estimate (duration) per Figma 790:280.
  task: /* @__PURE__ */ new Set([
    "title",
    "date",
    "startTime",
    "duration",
    "linkedEntities",
    "description",
    "reminder",
    "visibility"
  ]),
  // Email: surface participants as TO recipients per Figma 790:510.
  email: /* @__PURE__ */ new Set([
    "title",
    "date",
    "startTime",
    "participants",
    "linkedEntities",
    "description",
    "reminder",
    "visibility"
  ]),
  note: /* @__PURE__ */ new Set([
    "title",
    "linkedEntities",
    "description",
    "visibility"
  ])
};
const FIELD_LABEL_OVERRIDES = {
  meeting: {
    participants: { key: "customers.schedule.attendees", fallback: "Attendees" },
    linkedEntities: { key: "customers.schedule.connections", fallback: "Connections" }
  },
  call: {
    participants: { key: "customers.schedule.contact", fallback: "Contact" },
    linkedEntities: { key: "customers.schedule.connections", fallback: "Connections" },
    description: { key: "customers.schedule.callNotes", fallback: "Call notes" }
  },
  task: {
    date: { key: "customers.schedule.dueDate", fallback: "Due date" },
    startTime: { key: "customers.schedule.dueTime", fallback: "Due time" },
    duration: { key: "customers.schedule.estimate", fallback: "Estimate" },
    linkedEntities: { key: "customers.schedule.connections", fallback: "Connections" },
    description: { key: "customers.schedule.details", fallback: "Details" }
  },
  email: {
    title: { key: "customers.schedule.subject", fallback: "Subject" },
    participants: { key: "customers.schedule.to", fallback: "To" },
    linkedEntities: { key: "customers.schedule.connections", fallback: "Connections" },
    description: { key: "customers.schedule.message", fallback: "Message" }
  },
  note: {
    linkedEntities: { key: "customers.schedule.connections", fallback: "Connections" },
    description: { key: "customers.schedule.note.content", fallback: "Note" }
  }
};
function isVisible(type, fieldId) {
  return FIELD_VISIBILITY[type].has(fieldId);
}
function getFieldLabel(type, fieldId, t, defaultKey, defaultFallback) {
  const override = FIELD_LABEL_OVERRIDES[type]?.[fieldId];
  if (override) return t(override.key, override.fallback);
  return t(defaultKey, defaultFallback);
}
export {
  FIELD_LABEL_OVERRIDES,
  FIELD_VISIBILITY,
  getFieldLabel,
  isVisible
};
//# sourceMappingURL=fieldConfig.js.map
