lib/libs/webforms/ABP9/v202401.ts
import { FormSchema } from "shared-types";
import { noLeadingTrailingWhitespace } from "shared-utils/regex";
export const v202401: FormSchema = {
header: "ABP 9: Employer-sponsored insurance and payment of premiums",
formId: "abp9",
sections: [
{
title: "Employer-sponsored insurance and payment of premiums",
sectionId: "employee-sponsored-insur-or-pay",
form: [
{
slots: [
{
rhf: "Select",
name: "does-state-territory-provided-abp-through-employer-sponsored-insur",
label:
"Does the state/territory provide the Alternative Benefit Plan (ABP) through the payment of employer-sponsored insurance for participants with such coverage with additional benefits and services provided through a benchmark or benchmark-equivalent benefit package?",
labelClassName: "font-bold",
rules: { required: "* Required" },
props: {
className: "w-[150px]",
options: [
{ label: "Yes", value: "yes" },
{ label: "No", value: "no" },
],
},
},
{
rhf: "Textarea",
name: "describe-employee-sponsored-insurance",
rules: {
required: "* Required",
pattern: {
value: noLeadingTrailingWhitespace,
message: "Must not have leading or trailing whitespace.",
},
},
formItemClassName:
"ml-[0.6rem] px-4 my-2 border-l-4 border-l-primary",
label:
"Describe the employer-sponsored insurance, including the population covered, amount of premium assistance by population, and employer-sponsored insurance activities, including required contribution, cost-effectiveness test requirements, and benefit information.",
labelClassName: "font-bold",
props: {
className: "h-[114px]",
},
dependency: {
conditions: [
{
name: "abp9_employee-sponsored-insur-or-pay_does-state-territory-provided-abp-through-employer-sponsored-insur",
type: "expectedValue",
expectedValue: "yes",
},
],
effect: { type: "show" },
},
},
{
rhf: "Select",
name: "does-provide-pay-of-premiums",
label:
"Does the state/territory otherwise provide for payment of premiums?",
labelClassName: "font-bold",
rules: { required: "* Required" },
props: {
className: "w-[150px]",
options: [
{ label: "Yes", value: "yes" },
{ label: "No", value: "no" },
],
},
},
{
rhf: "Textarea",
name: "abp9_employee-sponsored-insurance-or-pay_describe-include-pop-covered-assist-contribut",
rules: {
required: "* Required",
pattern: {
value: noLeadingTrailingWhitespace,
message: "Must not have leading or trailing whitespace.",
},
},
formItemClassName:
"ml-[0.6rem] px-4 my-2 border-l-4 border-l-primary",
label:
"Describe, including the population covered, amount of premium assistance by population, required contributions, cost-effectiveness test requirements, and benefit information.",
labelClassName: "font-bold",
props: {
className: "h-[114px]",
},
dependency: {
conditions: [
{
name: "abp9_employee-sponsored-insur-or-pay_does-provide-pay-of-premiums",
type: "expectedValue",
expectedValue: "yes",
},
],
effect: { type: "show" },
},
},
{
rhf: "Textarea",
name: "other-info",
label:
"Other information about employer-sponsored insurance or payment of premiums (optional)",
labelClassName: "font-bold",
props: {
className: "h-[114px]",
},
rules: {
pattern: {
value: noLeadingTrailingWhitespace,
message: "Must not have leading or trailing whitespace.",
},
},
},
],
},
],
},
],
};