import { jsxs as c, jsx as e } from "react/jsx-runtime";
import { a as v } from "./index.CfQlFjZU.js";
import { C as f } from "./card.CVCKhKP6.js";
import { T as h } from "./Toast.D7wt-_VA.js";
import { n as _ } from "./index.B0wX8xO7.js";
const N = "creator_unsubscribeContainer_x6e0J", p = "creator_toastContainer_Y5gD3", x = "creator_cardContainer_S46Kg", y = "creator_title_P1TeH", w = "creator_body_RS-cm", s = { unsubscribeContainer: N, toastContainer: p, cardContainer: x, title: y, body: w }, T = ({
  talentName: a,
  type: r,
  alreadyUnsubscribed: t,
  isPreview: i,
  opt: n
}) => ({
  containerClassName: s.unsubscribeContainer,
  toastContainerClassName: s.toastContainer,
  cardContainerClassName: s.cardContainer,
  titleClassName: s.title,
  bodyClassName: s.body,
  talentName: a,
  alreadyUnsubscribed: t,
  type: r,
  isPreview: i,
  opt: n
}), Y = ({
  talentName: a,
  type: r,
  alreadyUnsubscribed: t,
  isPreview: i,
  containerClassName: n,
  cardContainerClassName: l,
  titleClassName: d,
  bodyClassName: u,
  toastContainerClassName: b,
  opt: o = "out"
}) => {
  const m = o === "in" ? "You're subscribed" : t ? "You’ve already unsubscribed" : "You’ve unsubscribed", C = o === "in" ? `You will receive ${r} updates from ${a}.` : `You will not receive any more ${r} updates from ${a}.`;
  return /* @__PURE__ */ c("div", { className: n, "data-testid": "unsubscribeCard", children: [
    /* @__PURE__ */ e(
      _,
      {
        value: i,
        then: /* @__PURE__ */ e("div", { className: b, children: /* @__PURE__ */ e(
          h,
          {
            semantic: "info",
            text: "This is a preview of what your fans will see.",
            dismissible: !1
          }
        ) })
      }
    ),
    /* @__PURE__ */ e("div", { className: l, children: /* @__PURE__ */ c(f, { interaction: "static", elevation: "medium", children: [
      /* @__PURE__ */ e("div", { className: d, role: "heading", children: m }),
      /* @__PURE__ */ e("div", { className: u, role: "alert", "aria-live": "polite", children: C })
    ] }) })
  ] });
}, S = v(
  Y,
  T,
  "Unsubscribe"
);
export {
  Y as U,
  S as a,
  T as u
};
