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