"use client";
import { j as t } from "../../../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import { useState as i } from "react";
import s from "../../../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.mjs";
import c from "../../../Dropdowns/Dropdown/index.mjs";
import "../../../Dropdowns/GenericDropdown/index.mjs";
import "@mantine/core";
import "../../../Button/Button.module.scss.mjs";
import "../../../Checkbox/index.mjs";
import "../../../Dropdowns/OptionsDropdown/OptionsDropdown.module.scss.mjs";
import { SelectCreatable as m } from "../../../SelectCreatable/index.mjs";
import p from "../../../TextInput/index.mjs";
import o from "./FormRewards.module.scss.mjs";
import { RewardERC20_721 as d } from "./components/RewardERC20_721/index.mjs";
import { RewardERC1155 as k } from "./components/RewardERC1155/index.mjs";
const P = {
  addTokenId: "Add Token ID",
  placeholder: {
    rewardType: "Reward Type",
    network: "Network",
    contractAddress: "Contract Address",
    tokenName: "Token",
    marketplaceUrl: "Marketplace URL",
    decimals: "Decimals",
    amountPerUser: "Amount Per User"
  },
  label: {
    rewardType: "Reward Type",
    network: "Network",
    contractAddress: "Contract Address",
    tokenName: "Token",
    marketplaceUrl: "Marketplace URL",
    decimals: "Decimals",
    amountPerUser: "Amount Per User"
  }
};
function U(e) {
  const [r, l] = i(
    e.rewardTypeInputProps.value
  );
  let n = null;
  return r && (r.text === "ERC721" ? n = /* @__PURE__ */ t.jsx(d, { tokenType: "ERC721", ...e }) : r.text === "ERC20" ? n = /* @__PURE__ */ t.jsx(d, { tokenType: "ERC20", ...e }) : r.text === "ERC1155" && (n = /* @__PURE__ */ t.jsx(k, { ...e }))), /* @__PURE__ */ t.jsxs("div", { className: o.root, children: [
    /* @__PURE__ */ t.jsxs("div", { children: [
      /* @__PURE__ */ t.jsx("div", { className: s("caption", o.label), children: e.i18n.label.network }),
      /* @__PURE__ */ t.jsx(
        m,
        {
          ...e.networkInputProps,
          options: e.networkOptions,
          onCreated: (a) => e.networkInputProps.onChange(a)
        }
      )
    ] }),
    /* @__PURE__ */ t.jsx(
      p,
      {
        label: e.i18n.label.contractAddress,
        placeholder: e.i18n.placeholder.contractAddress,
        ...e.contractAddressInputProps
      }
    ),
    /* @__PURE__ */ t.jsxs("div", { children: [
      /* @__PURE__ */ t.jsx("div", { className: s("caption", o.label), children: e.i18n.label.rewardType }),
      /* @__PURE__ */ t.jsx(
        c,
        {
          options: e.tokenTypeOptions,
          selected: r || { text: e.i18n.placeholder.rewardType },
          onItemChange: (a) => {
            l(a), e.rewardTypeInputProps.onChange(a);
          },
          targetWidth: 300,
          dropdownButtonDivProps: { className: o.dropdownButton },
          classNames: { item: o.dropdownItem }
        }
      )
    ] }),
    n
  ] });
}
export {
  P as DEFAULT_FORM_REWARDS_i18n,
  U as FormRewards
};
//# sourceMappingURL=index.mjs.map
