"use client";
import { j as a } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import { Flex as P } from "@mantine/core";
import { platformLabels as g } from "../../common/types.mjs";
import { PlatformContainer as v } from "../PlatformContainer/index.mjs";
import w from "./NativePlatformInput.module.scss.mjs";
import n from "./components/PlatformUpload/index.mjs";
function A({
  platformName: t,
  fileNameAmd64: i,
  fileNameArm64: f,
  clearFile: r,
  updateFile: l,
  exeInputProps: s,
  i18n: o,
  exeListAmd64: x,
  exeListArm64: c
}) {
  const p = g[t], u = `${p} (Intel / amd64)`, h = /* @__PURE__ */ a.jsx(
    n,
    {
      platformName: u,
      uploaded: !!i,
      onExePathChanged: (e) => {
        e && l(e, "amd64");
      },
      onRemoveUpload: () => {
        r("amd64");
      },
      exeInputProps: s.amd64,
      exeList: x,
      i18n: o == null ? void 0 : o.upload
    }
  );
  let m = null;
  if (t !== "windows") {
    const e = `${p} ${t === "darwin" ? "(Apple Silicon / arm64)" : "(ARM / arm64)"}`;
    m = /* @__PURE__ */ a.jsx(
      n,
      {
        platformName: e,
        uploaded: !!f,
        onExePathChanged: (d) => {
          d && l(d, "arm64");
        },
        onRemoveUpload: () => {
          r("arm64");
        },
        exeInputProps: s.arm64,
        i18n: o == null ? void 0 : o.upload,
        exeList: c
      }
    );
  }
  const j = /* @__PURE__ */ a.jsx(
    P,
    {
      justify: "space-between",
      align: "stretch",
      p: "lg",
      style: { width: "100%", height: 78 }
    }
  );
  return /* @__PURE__ */ a.jsx(v, { platformName: t, children: /* @__PURE__ */ a.jsxs("div", { className: w.uploadActionsContainer, children: [
    h,
    m || j
  ] }) });
}
export {
  A as NativePlatformInput
};
//# sourceMappingURL=index.mjs.map
