import { jsx as t } from "react/jsx-runtime";
import { J as l, k as m } from "./index-_1f6rhg6.js";
import { A as u } from "./AppCard-vvom7JzI.js";
import { u as h } from "./useIsAppEnabled-EWMW2qIQ.js";
const D = function({ app: a, eventType: d }) {
  var s;
  const { getAppData: n, setAppData: r, disabled: p } = l(), i = n("SITE_ID"), { enabled: o, updateEnabled: c } = h(a);
  return /* @__PURE__ */ t(
    u,
    {
      app: a,
      switchOnClick: (e) => {
        c(e);
      },
      switchChecked: o,
      teamId: ((s = d.team) == null ? void 0 : s.id) || void 0,
      children: /* @__PURE__ */ t("fieldset", { className: "space-y-2", disabled: p, children: /* @__PURE__ */ t(
        m,
        {
          disabled: p,
          name: "Site ID",
          value: i,
          placeholder: "Enter your Site ID",
          onChange: (e) => {
            r("SITE_ID", e.target.value);
          }
        }
      ) })
    }
  );
};
export {
  D as default
};
