"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { Sparkles } from "lucide-react";
import { DealSectionCard } from "./DealSectionCard.js";
import { DealTipsCard } from "./DealTipsCard.js";
import {
  DealCustomAttributes
} from "./DealCustomAttributes.js";
function DealCreateSidebar({
  tr,
  customValues,
  onCustomChange,
  errors,
  disabled,
  customCount,
  manageHref,
  onCustomLoaded
}) {
  return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
    /* @__PURE__ */ jsx(
      DealSectionCard,
      {
        icon: Sparkles,
        title: tr("customers.deals.create.sections.custom.title", "Custom attributes"),
        subtitle: tr("customers.deals.create.sections.custom.subtitle", "{count} fields defined for this tenant", {
          count: customCount
        }),
        children: /* @__PURE__ */ jsx(
          DealCustomAttributes,
          {
            values: customValues,
            onChange: onCustomChange,
            errors,
            disabled,
            manageHref,
            labels: {
              manage: tr("customers.deals.create.sections.custom.manage", "Manage fields"),
              empty: tr("customers.deals.create.sections.custom.empty", "No custom fields defined for deals yet."),
              loading: tr("customers.deals.create.sections.custom.loading", "Loading custom fields\u2026")
            },
            onLoaded: onCustomLoaded
          }
        )
      }
    ),
    /* @__PURE__ */ jsx(
      DealTipsCard,
      {
        title: tr("customers.deals.create.tips.title", "Tips for better deals"),
        tips: [
          tr(
            "customers.deals.create.tips.item1",
            'Use the company name + short deliverable format in the title (e.g. "Copperleaf \u2014 Q3 Renewal")'
          ),
          tr(
            "customers.deals.create.tips.item2",
            "Set probability based on pipeline stage: Qual 10-25%, Proposal 30-50%, Negotiation 50-75%, Contract 75-90%"
          ),
          tr(
            "customers.deals.create.tips.item3",
            "Link primary decision maker as first person \u2014 they get default email CC on activities"
          )
        ]
      }
    )
  ] });
}
var DealCreateSidebar_default = DealCreateSidebar;
export {
  DealCreateSidebar,
  DealCreateSidebar_default as default
};
//# sourceMappingURL=DealCreateSidebar.js.map
