import { jsx } from "react/jsx-runtime";
import { InputText } from "../fields/input-text/index.js";
import { ComboBoxV3 } from "../fields/combo-box-v3/index.js";
import { DateTimePicker } from "../fields/date-time-picker/index.js";
import { FormLayoutBlockItem } from "../fields/form-layout-block-item/index.js";
const FirstName = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "First Name", inputID: "firstname", required: true, children: /* @__PURE__ */ jsx(
  InputText,
  {
    id: "firstname",
    name: "firstname",
    rules: {
      required: { value: true, message: "First Name is required" },
      minLength: { value: 2, message: "Minimum 2 characters" },
      maxLength: { value: 50, message: "Maximum 50 characters" }
    }
  }
) });
const DOB = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "Date of Birth", inputID: "dob", required: true, children: /* @__PURE__ */ jsx(
  DateTimePicker,
  {
    id: "dob",
    name: "dob",
    type: "date-inputs",
    rules: {
      required: { value: true, message: "Date of Birth is required" },
      validate: (value) => value !== "12/25/1990" || "Date of Birth can not be 12/25/1990"
    }
  }
) });
const State = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "State", inputID: "state", required: true, children: /* @__PURE__ */ jsx(
  ComboBoxV3,
  {
    id: "state",
    name: "state",
    rules: { required: { value: true, message: "State is required" } },
    allOptions: [
      { dsId: "1", type: "option", value: "--select--", label: "--Select--" },
      { dsId: "2", type: "option", value: "ca", label: "California" },
      { dsId: "3", type: "option", value: "nj", label: "New Jersey" }
    ]
  }
) });
const MaritalStatus = () => /* @__PURE__ */ jsx(FormLayoutBlockItem, { label: "Marital Status", inputID: "marital_status", required: true, children: /* @__PURE__ */ jsx(
  ComboBoxV3,
  {
    id: "marital_status",
    name: "marital_status",
    rules: {
      required: { value: true, message: "Marital Status is required" }
    },
    allOptions: [
      { dsId: "1", type: "option", value: "--select--", label: "--Select--" },
      { dsId: "2", type: "option", value: "married", label: "Married" },
      { dsId: "3", type: "option", value: "unmarried", label: "Unmarried" },
      { dsId: "4", type: "option", value: "separated", label: "Separated" }
    ]
  }
) });
export {
  DOB,
  FirstName,
  MaritalStatus,
  State
};
