"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var personal_info_section_exports = {};
__export(personal_info_section_exports, {
  DOB: () => DOB,
  FirstName: () => FirstName,
  MaritalStatus: () => MaritalStatus,
  State: () => State
});
module.exports = __toCommonJS(personal_info_section_exports);
var import_jsx_runtime = require("react/jsx-runtime");
var import_input_text = require("../fields/input-text/index.js");
var import_combo_box_v3 = require("../fields/combo-box-v3/index.js");
var import_date_time_picker = require("../fields/date-time-picker/index.js");
var import_form_layout_block_item = require("../fields/form-layout-block-item/index.js");
const FirstName = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_form_layout_block_item.FormLayoutBlockItem, { label: "First Name", inputID: "firstname", required: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
  import_input_text.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__ */ (0, import_jsx_runtime.jsx)(import_form_layout_block_item.FormLayoutBlockItem, { label: "Date of Birth", inputID: "dob", required: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
  import_date_time_picker.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__ */ (0, import_jsx_runtime.jsx)(import_form_layout_block_item.FormLayoutBlockItem, { label: "State", inputID: "state", required: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
  import_combo_box_v3.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__ */ (0, import_jsx_runtime.jsx)(import_form_layout_block_item.FormLayoutBlockItem, { label: "Marital Status", inputID: "marital_status", required: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
  import_combo_box_v3.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" }
    ]
  }
) });
