@gusto/embedded-react-sdk 0.37.0-rc.1 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -8
- package/README.md +6 -0
- package/dist/UNSTABLE_Hooks.d.ts +1 -1
- package/dist/UNSTABLE_Hooks.js +50 -6
- package/dist/UNSTABLE_Hooks.js.map +1 -1
- package/dist/components/Base/Base.d.ts +2 -1
- package/dist/components/Base/Base.js +78 -77
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +2 -0
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +17 -16
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +5 -3
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +46 -36
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +2 -0
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +21 -20
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +3 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +20 -19
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
- package/dist/components/Common/Fields/SelectField/SelectField.d.ts +3 -1
- package/dist/components/Common/Fields/SelectField/SelectField.js +19 -18
- package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
- package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +2 -0
- package/dist/components/Common/Fields/SwitchField/SwitchField.js +19 -18
- package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
- package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +2 -0
- package/dist/components/Common/Fields/TextInputField/TextInputField.js +10 -9
- package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +5 -6
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +9 -6
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +4 -5
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +9 -6
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +11 -8
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +9 -6
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +9 -6
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +9 -6
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +15 -12
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +12 -9
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +4 -5
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +9 -6
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +9 -6
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +9 -6
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +9 -10
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +11 -8
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +9 -6
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +9 -6
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +6 -7
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +11 -8
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +2 -3
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Profile/useContractorProfile.js +21 -16
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +14 -11
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +13 -10
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +6 -3
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +2 -3
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +9 -6
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +9 -6
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +9 -6
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +9 -6
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +11 -8
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.d.ts +3 -3
- package/dist/components/Employee/Profile/HomeAddress.js +44 -43
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +14 -15
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.js +9 -6
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +9 -6
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/useTaxes.js +9 -6
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +16 -13
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +2 -3
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +185 -177
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +2 -3
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +7 -5
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/collectErrors.d.ts +6 -0
- package/dist/components/UNSTABLE_Hooks/collectErrors.js +9 -0
- package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +1 -1
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +3 -3
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +2 -2
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js +13 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +11 -6
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js +24 -0
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +26 -0
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +24 -0
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.d.ts +53 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.test.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +14 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +29 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +12 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +40 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +10 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +40 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +10 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +40 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +11 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +38 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/index.d.ts +15 -0
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +2 -0
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js +8 -0
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.d.ts +18 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js +10 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.test.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/form/index.d.ts +6 -1
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +6 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +14 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/types.d.ts +12 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +2 -1
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +10 -8
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +2 -2
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/form/withOptions.js +7 -0
- package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +151 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +97 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +121 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +34 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js +50 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +5 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +97 -9
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +255 -3
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +114 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +39 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +45 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +23 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +46 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +7 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +77 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +153 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +71 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +10 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js +14 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +7 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +68 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +129 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +25 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +24 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/index.d.ts +8 -4
- package/dist/components/UNSTABLE_Hooks/types.d.ts +9 -6
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.js +12 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.test.d.ts +1 -0
- package/dist/helpers/requiredIf.d.ts +13 -0
- package/dist/helpers/requiredIf.js +8 -0
- package/dist/helpers/requiredIf.js.map +1 -0
- package/dist/i18n/I18n.js +5 -5
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/UNSTABLE.CompensationForm.json.js +58 -0
- package/dist/i18n/en/UNSTABLE.CompensationForm.json.js.map +1 -0
- package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js +34 -0
- package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js.map +1 -0
- package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js +24 -0
- package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js.map +1 -0
- package/dist/models/WA_RISK_CODES.d.ts +5 -2866
- package/dist/models/WA_RISK_CODES.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +117 -1
- package/dist/types/sdkError.d.ts +7 -1
- package/dist/types/sdkError.js.map +1 -1
- package/docs/reference/endpoint-inventory.json +92 -0
- package/package.json +9 -9
|
@@ -1,108 +1,114 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useForm as Z, useWatch as J, FormProvider as ee } from "react-hook-form";
|
|
3
3
|
import { useRef as ne, useMemo as te } from "react";
|
|
4
|
-
import { PayrollEmployeeCompensationsTypePaymentMethod as
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { z as
|
|
7
|
-
import { zodResolver as
|
|
8
|
-
import
|
|
9
|
-
import { TimeOffField as
|
|
10
|
-
import { Flex as
|
|
11
|
-
import { Grid as
|
|
12
|
-
import "classnames";
|
|
4
|
+
import { PayrollEmployeeCompensationsTypePaymentMethod as _ } from "@gusto/embedded-api/models/components/payrollemployeecompensationstype";
|
|
5
|
+
import { useTranslation as se } from "react-i18next";
|
|
6
|
+
import { z as i } from "zod";
|
|
7
|
+
import { zodResolver as oe } from "@hookform/resolvers/zod";
|
|
8
|
+
import l from "./PayrollEditEmployeePresentation.module.scss.js";
|
|
9
|
+
import { TimeOffField as ie } from "./TimeOffField.js";
|
|
10
|
+
import { Flex as A } from "../../Common/Flex/Flex.js";
|
|
11
|
+
import { Grid as S } from "../../Common/Grid/Grid.js";
|
|
13
12
|
import { RadioGroupField as ae } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
|
|
14
|
-
import { TextInputField as
|
|
15
|
-
import { NumberInputField as
|
|
13
|
+
import { TextInputField as k } from "../../Common/Fields/TextInputField/TextInputField.js";
|
|
14
|
+
import { NumberInputField as w } from "../../Common/Fields/NumberInputField/NumberInputField.js";
|
|
16
15
|
import { useComponentContext as re } from "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
17
16
|
import { useI18n as me } from "../../../i18n/I18n.js";
|
|
18
|
-
import { Form as
|
|
19
|
-
import { firstLastName as
|
|
20
|
-
import { getAdditionalEarningsCompensations as ce, getReimbursementCompensation as pe, calculateGrossPay as
|
|
21
|
-
import { PayrollCategory as
|
|
22
|
-
import { HOURS_COMPENSATION_NAMES as
|
|
17
|
+
import { Form as ue } from "../../Common/Form/Form.js";
|
|
18
|
+
import { firstLastName as le, formatNumberAsCurrency as de } from "../../../helpers/formattedStrings.js";
|
|
19
|
+
import { getAdditionalEarningsCompensations as ce, getReimbursementCompensation as pe, calculateGrossPay as $ } from "../helpers.js";
|
|
20
|
+
import { PayrollCategory as I } from "../payrollTypes.js";
|
|
21
|
+
import { HOURS_COMPENSATION_NAMES as q, EXCLUDED_ADDITIONAL_EARNINGS as fe, COMPENSATION_NAME_DOUBLE_OVERTIME as he, COMPENSATION_NAME_OVERTIME as Ce, COMPENSATION_NAME_REGULAR_HOURS as Ne, COMPENSATION_NAME_REIMBURSEMENT as ge, COMPENSATION_NAME_CASH_TIPS as be, COMPENSATION_NAME_COMMISSION as Ee, COMPENSATION_NAME_CORRECTION_PAYMENT as Pe, COMPENSATION_NAME_PAYCHECK_TIPS as Me, COMPENSATION_NAME_BONUS as ye } from "../../../shared/constants.js";
|
|
23
22
|
import Oe from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
|
|
24
|
-
const Te =
|
|
25
|
-
hourlyCompensations:
|
|
26
|
-
timeOffCompensations:
|
|
27
|
-
finalPayoutCompensations:
|
|
28
|
-
fixedCompensations:
|
|
29
|
-
paymentMethod:
|
|
30
|
-
}),
|
|
31
|
-
const
|
|
23
|
+
const Te = i.object({
|
|
24
|
+
hourlyCompensations: i.record(i.string(), i.record(i.string(), i.string().optional())),
|
|
25
|
+
timeOffCompensations: i.record(i.string(), i.string().optional()),
|
|
26
|
+
finalPayoutCompensations: i.record(i.string(), i.string().optional()),
|
|
27
|
+
fixedCompensations: i.record(i.string(), i.number().optional()),
|
|
28
|
+
paymentMethod: i.enum(_).optional()
|
|
29
|
+
}), B = (h, T, d, a, R = I.Regular) => {
|
|
30
|
+
const g = {
|
|
32
31
|
...T,
|
|
33
|
-
paymentMethod:
|
|
32
|
+
paymentMethod: h.paymentMethod
|
|
34
33
|
};
|
|
35
|
-
|
|
36
|
-
(
|
|
37
|
-
const
|
|
38
|
-
return
|
|
39
|
-
...
|
|
40
|
-
hours:
|
|
41
|
-
} :
|
|
34
|
+
g.hourlyCompensations = T?.hourlyCompensations?.map(
|
|
35
|
+
(o) => {
|
|
36
|
+
const r = o.jobUuid && o.name ? h.hourlyCompensations[o.jobUuid]?.[o.name] : void 0;
|
|
37
|
+
return r ? {
|
|
38
|
+
...o,
|
|
39
|
+
hours: r
|
|
40
|
+
} : o;
|
|
41
|
+
}
|
|
42
|
+
), g.paidTimeOff = d.map((o) => {
|
|
43
|
+
const r = R === I.Dismissal, { finalPayoutUnusedHoursInput: y, ...C } = o;
|
|
44
|
+
if (r) {
|
|
45
|
+
const x = h.finalPayoutCompensations[o.name] ?? o.finalPayoutUnusedHoursInput;
|
|
46
|
+
return {
|
|
47
|
+
...o,
|
|
48
|
+
hours: h.timeOffCompensations[o.name],
|
|
49
|
+
...x != null ? { finalPayoutUnusedHoursInput: x } : {}
|
|
50
|
+
};
|
|
42
51
|
}
|
|
43
|
-
), y.paidTimeOff = d.map((i) => {
|
|
44
|
-
const m = N.finalPayoutCompensations[i.name] ?? i.finalPayoutUnusedHoursInput;
|
|
45
52
|
return {
|
|
46
|
-
...
|
|
47
|
-
hours:
|
|
48
|
-
...m != null ? { finalPayoutUnusedHoursInput: m } : {}
|
|
53
|
+
...C,
|
|
54
|
+
hours: h.timeOffCompensations[o.name]
|
|
49
55
|
};
|
|
50
56
|
});
|
|
51
|
-
const
|
|
52
|
-
return Object.entries(
|
|
53
|
-
const
|
|
54
|
-
(
|
|
57
|
+
const b = [];
|
|
58
|
+
return Object.entries(h.fixedCompensations).forEach(([o, r]) => {
|
|
59
|
+
const y = T?.fixedCompensations?.find(
|
|
60
|
+
(C) => C.name?.toLowerCase() === o.toLowerCase()
|
|
55
61
|
);
|
|
56
|
-
if (
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
name:
|
|
60
|
-
jobUuid:
|
|
61
|
-
amount:
|
|
62
|
-
}) :
|
|
63
|
-
name:
|
|
62
|
+
if (r !== void 0) {
|
|
63
|
+
const C = r.toString();
|
|
64
|
+
y ? b.push({
|
|
65
|
+
name: y.name,
|
|
66
|
+
jobUuid: y.jobUuid,
|
|
67
|
+
amount: C
|
|
68
|
+
}) : r !== 0 && b.push({
|
|
69
|
+
name: o,
|
|
64
70
|
jobUuid: a,
|
|
65
|
-
amount:
|
|
71
|
+
amount: C
|
|
66
72
|
});
|
|
67
73
|
}
|
|
68
|
-
}),
|
|
69
|
-
},
|
|
70
|
-
onSave:
|
|
74
|
+
}), g.fixedCompensations = b, g;
|
|
75
|
+
}, Ke = ({
|
|
76
|
+
onSave: h,
|
|
71
77
|
onCancel: T,
|
|
72
78
|
employee: d,
|
|
73
79
|
employeeCompensation: a,
|
|
74
|
-
isPending:
|
|
75
|
-
fixedCompensationTypes:
|
|
76
|
-
payPeriodStartDate:
|
|
77
|
-
paySchedule:
|
|
78
|
-
payrollCategory:
|
|
79
|
-
withReimbursements:
|
|
80
|
-
hasDirectDepositSetup:
|
|
80
|
+
isPending: R = !1,
|
|
81
|
+
fixedCompensationTypes: g,
|
|
82
|
+
payPeriodStartDate: b,
|
|
83
|
+
paySchedule: o,
|
|
84
|
+
payrollCategory: r = I.Regular,
|
|
85
|
+
withReimbursements: y = !0,
|
|
86
|
+
hasDirectDepositSetup: C = !0
|
|
81
87
|
}) => {
|
|
82
|
-
const { Button:
|
|
88
|
+
const { Button: x, Heading: c, Text: V } = re(), { t } = se("Payroll.PayrollEditEmployee");
|
|
83
89
|
me("Payroll.PayrollEditEmployee");
|
|
84
|
-
const p = d.jobs?.find((e) => e.primary),
|
|
90
|
+
const p = d.jobs?.find((e) => e.primary), W = a?.hourlyCompensations?.some(
|
|
85
91
|
(e) => e.jobUuid === p?.uuid
|
|
86
|
-
), O = p &&
|
|
87
|
-
ref:
|
|
92
|
+
), O = p && W ? [p] : [], F = ne(null), f = Oe({
|
|
93
|
+
ref: F
|
|
88
94
|
}).includes("small");
|
|
89
95
|
a?.hourlyCompensations?.forEach((e) => {
|
|
90
|
-
const n = d.jobs?.find((
|
|
91
|
-
n && !O.find((
|
|
96
|
+
const n = d.jobs?.find((u) => u.uuid === e.jobUuid);
|
|
97
|
+
n && !O.find((u) => u.uuid === n.uuid) && O.push(n);
|
|
92
98
|
});
|
|
93
|
-
const
|
|
99
|
+
const E = (a?.paidTimeOff || []).filter((e) => e.name), v = ce({
|
|
94
100
|
flsaStatus: p?.compensations?.[0]?.flsaStatus,
|
|
95
101
|
existingFixedCompensations: a?.fixedCompensations || [],
|
|
96
102
|
primaryJobUuid: p?.uuid,
|
|
97
|
-
fixedCompensationTypes:
|
|
103
|
+
fixedCompensationTypes: g,
|
|
98
104
|
excludedTypes: fe
|
|
99
|
-
}),
|
|
105
|
+
}), P = y ? pe(
|
|
100
106
|
a?.fixedCompensations || [],
|
|
101
|
-
|
|
107
|
+
g,
|
|
102
108
|
p?.uuid
|
|
103
|
-
) : null,
|
|
104
|
-
(
|
|
105
|
-
),
|
|
109
|
+
) : null, j = (e, n) => a?.hourlyCompensations?.find(
|
|
110
|
+
(u) => u.jobUuid === e && u.name?.toLowerCase() === n.toLowerCase()
|
|
111
|
+
), z = (e) => {
|
|
106
112
|
switch (e) {
|
|
107
113
|
case Ne:
|
|
108
114
|
return t("compensationNames.regularHours");
|
|
@@ -113,17 +119,17 @@ const Te = s.object({
|
|
|
113
119
|
default:
|
|
114
120
|
return e;
|
|
115
121
|
}
|
|
116
|
-
},
|
|
122
|
+
}, L = (e) => {
|
|
117
123
|
switch (e) {
|
|
118
|
-
case
|
|
124
|
+
case ye:
|
|
119
125
|
return t("fixedCompensationNames.bonus");
|
|
120
126
|
case Me:
|
|
121
127
|
return t("fixedCompensationNames.paycheckTips");
|
|
122
|
-
case
|
|
128
|
+
case Pe:
|
|
123
129
|
return t("fixedCompensationNames.correctionPayment");
|
|
124
|
-
case be:
|
|
125
|
-
return t("fixedCompensationNames.commission");
|
|
126
130
|
case Ee:
|
|
131
|
+
return t("fixedCompensationNames.commission");
|
|
132
|
+
case be:
|
|
127
133
|
return t("fixedCompensationNames.cashTips");
|
|
128
134
|
case ge:
|
|
129
135
|
return t("fixedCompensationNames.reimbursement");
|
|
@@ -134,158 +140,160 @@ const Te = s.object({
|
|
|
134
140
|
hourlyCompensations: (() => {
|
|
135
141
|
const e = {};
|
|
136
142
|
return O.forEach((n) => {
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
|
|
143
|
+
q.forEach((u) => {
|
|
144
|
+
const N = j(n.uuid, u);
|
|
145
|
+
N && (e[n.uuid] || (e[n.uuid] = {}), e[n.uuid][N.name] = N.hours ? parseFloat(N.hours).toString() : "");
|
|
140
146
|
});
|
|
141
147
|
}), e;
|
|
142
148
|
})(),
|
|
143
149
|
timeOffCompensations: (() => {
|
|
144
150
|
const e = {};
|
|
145
|
-
return
|
|
151
|
+
return E.forEach((n) => {
|
|
146
152
|
e[n.name] = n.hours ? parseFloat(n.hours).toString() : "";
|
|
147
153
|
}), e;
|
|
148
154
|
})(),
|
|
149
155
|
finalPayoutCompensations: (() => {
|
|
150
156
|
const e = {};
|
|
151
|
-
return
|
|
157
|
+
return E.forEach((n) => {
|
|
152
158
|
e[n.name] = n.finalPayoutUnusedHoursInput ?? "0";
|
|
153
159
|
}), e;
|
|
154
160
|
})(),
|
|
155
161
|
fixedCompensations: (() => {
|
|
156
162
|
const e = {};
|
|
157
|
-
return
|
|
163
|
+
return v.forEach((n) => {
|
|
158
164
|
e[n.name] = n.amount ? parseFloat(n.amount) : void 0;
|
|
159
|
-
}),
|
|
165
|
+
}), P && (e[P.name] = P.amount ? parseFloat(P.amount) : void 0), e;
|
|
160
166
|
})(),
|
|
161
|
-
paymentMethod: a?.paymentMethod ||
|
|
162
|
-
},
|
|
163
|
-
resolver:
|
|
167
|
+
paymentMethod: a?.paymentMethod || _.DirectDeposit
|
|
168
|
+
}, U = Z({
|
|
169
|
+
resolver: oe(Te),
|
|
164
170
|
defaultValues: Y
|
|
165
|
-
}),
|
|
166
|
-
control:
|
|
171
|
+
}), M = J({
|
|
172
|
+
control: U.control
|
|
167
173
|
}), K = te(() => {
|
|
168
174
|
try {
|
|
169
175
|
const e = {};
|
|
170
|
-
|
|
171
|
-
|
|
176
|
+
M.hourlyCompensations && Object.entries(M.hourlyCompensations).forEach(([N, G]) => {
|
|
177
|
+
G && (e[N] = G);
|
|
172
178
|
});
|
|
173
179
|
const n = {
|
|
174
180
|
hourlyCompensations: e,
|
|
175
|
-
timeOffCompensations:
|
|
176
|
-
finalPayoutCompensations:
|
|
177
|
-
fixedCompensations:
|
|
178
|
-
paymentMethod:
|
|
179
|
-
},
|
|
181
|
+
timeOffCompensations: M.timeOffCompensations || {},
|
|
182
|
+
finalPayoutCompensations: M.finalPayoutCompensations || {},
|
|
183
|
+
fixedCompensations: M.fixedCompensations || {},
|
|
184
|
+
paymentMethod: M.paymentMethod
|
|
185
|
+
}, u = B(
|
|
180
186
|
n,
|
|
181
187
|
a,
|
|
182
|
-
(a?.paidTimeOff || []).filter((
|
|
183
|
-
p?.uuid
|
|
188
|
+
(a?.paidTimeOff || []).filter((N) => N.name),
|
|
189
|
+
p?.uuid,
|
|
190
|
+
r
|
|
184
191
|
);
|
|
185
|
-
return
|
|
186
|
-
|
|
192
|
+
return $(
|
|
193
|
+
u,
|
|
187
194
|
d,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
195
|
+
b,
|
|
196
|
+
o,
|
|
197
|
+
r
|
|
191
198
|
);
|
|
192
199
|
} catch {
|
|
193
|
-
return a ?
|
|
200
|
+
return a ? $(
|
|
194
201
|
a,
|
|
195
202
|
d,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
203
|
+
b,
|
|
204
|
+
o,
|
|
205
|
+
r
|
|
199
206
|
) : 0;
|
|
200
207
|
}
|
|
201
208
|
}, [
|
|
202
|
-
|
|
209
|
+
M,
|
|
203
210
|
a,
|
|
204
211
|
p?.uuid,
|
|
205
212
|
d,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
]), X =
|
|
213
|
+
b,
|
|
214
|
+
o,
|
|
215
|
+
r
|
|
216
|
+
]), X = le({
|
|
210
217
|
first_name: d.firstName,
|
|
211
218
|
last_name: d.lastName
|
|
212
219
|
}), Q = (e) => {
|
|
213
|
-
const n =
|
|
220
|
+
const n = B(
|
|
214
221
|
e,
|
|
215
222
|
a,
|
|
216
|
-
|
|
217
|
-
p?.uuid
|
|
223
|
+
E,
|
|
224
|
+
p?.uuid,
|
|
225
|
+
r
|
|
218
226
|
);
|
|
219
|
-
|
|
220
|
-
},
|
|
221
|
-
|
|
227
|
+
h(n);
|
|
228
|
+
}, D = de(K || 0), H = /* @__PURE__ */ m(
|
|
229
|
+
A,
|
|
222
230
|
{
|
|
223
231
|
flexDirection: f ? "row" : "column",
|
|
224
232
|
justifyContent: f ? "flex-end" : "normal",
|
|
225
233
|
alignItems: f ? "flex-start" : "stretch",
|
|
226
234
|
gap: 12,
|
|
227
235
|
children: [
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
|
|
236
|
+
/* @__PURE__ */ s(x, { variant: "secondary", onClick: T, title: t("cancelCta"), children: t("cancelCta") }),
|
|
237
|
+
/* @__PURE__ */ s(
|
|
238
|
+
x,
|
|
231
239
|
{
|
|
232
|
-
onClick:
|
|
240
|
+
onClick: U.handleSubmit(Q),
|
|
233
241
|
title: t("saveCta"),
|
|
234
|
-
isLoading:
|
|
242
|
+
isLoading: R,
|
|
235
243
|
children: t("saveCta")
|
|
236
244
|
}
|
|
237
245
|
)
|
|
238
246
|
]
|
|
239
247
|
}
|
|
240
248
|
);
|
|
241
|
-
return /* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
249
|
+
return /* @__PURE__ */ m("div", { ref: F, className: l.container, children: [
|
|
250
|
+
/* @__PURE__ */ s(
|
|
243
251
|
"div",
|
|
244
252
|
{
|
|
245
|
-
className: `${
|
|
246
|
-
children: /* @__PURE__ */
|
|
247
|
-
/* @__PURE__ */
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
f ? /* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
] }) : /* @__PURE__ */
|
|
253
|
+
className: `${l.headerSection} ${f ? "" : l.headerSectionSticky}`,
|
|
254
|
+
children: /* @__PURE__ */ m(A, { justifyContent: "space-between", children: [
|
|
255
|
+
/* @__PURE__ */ m(A, { flexDirection: "column", gap: f ? 8 : 2, children: [
|
|
256
|
+
/* @__PURE__ */ s(c, { as: "h1", styledAs: f ? "h2" : "h4", children: t("pageTitle", { employeeName: X }) }),
|
|
257
|
+
f ? /* @__PURE__ */ m(A, { flexDirection: "column", gap: 6, children: [
|
|
258
|
+
/* @__PURE__ */ s(c, { as: "h2", styledAs: "h3", children: D }),
|
|
259
|
+
/* @__PURE__ */ s(V, { className: l.grossPayLabel, children: t("grossPayLabel") })
|
|
260
|
+
] }) : /* @__PURE__ */ s(c, { as: "h2", styledAs: "h6", className: l.grossPayLabel, children: t("grossPayLabelMobile", { grossPay: D }) })
|
|
253
261
|
] }),
|
|
254
|
-
f &&
|
|
262
|
+
f && H
|
|
255
263
|
] })
|
|
256
264
|
}
|
|
257
265
|
),
|
|
258
|
-
/* @__PURE__ */
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
O.length > 0 && /* @__PURE__ */
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
O.map((e) => /* @__PURE__ */
|
|
263
|
-
O.length > 1 && /* @__PURE__ */
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
const
|
|
266
|
+
/* @__PURE__ */ m(ee, { ...U, children: [
|
|
267
|
+
/* @__PURE__ */ m(ue, { children: [
|
|
268
|
+
O.length > 0 && /* @__PURE__ */ m("div", { className: l.fieldGroup, children: [
|
|
269
|
+
/* @__PURE__ */ s(c, { as: "h3", children: t("regularHoursTitle") }),
|
|
270
|
+
O.map((e) => /* @__PURE__ */ m(A, { flexDirection: "column", gap: 8, children: [
|
|
271
|
+
O.length > 1 && /* @__PURE__ */ s(c, { as: "h4", children: e.title }),
|
|
272
|
+
/* @__PURE__ */ s(S, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: q.map((n) => {
|
|
273
|
+
const u = j(
|
|
266
274
|
e.uuid,
|
|
267
275
|
n
|
|
268
276
|
);
|
|
269
|
-
if (
|
|
270
|
-
return /* @__PURE__ */
|
|
271
|
-
|
|
277
|
+
if (u)
|
|
278
|
+
return /* @__PURE__ */ s(
|
|
279
|
+
k,
|
|
272
280
|
{
|
|
273
281
|
type: "number",
|
|
274
282
|
min: 0,
|
|
275
283
|
adornmentEnd: t("hoursUnit"),
|
|
276
284
|
isRequired: !0,
|
|
277
|
-
label:
|
|
278
|
-
name: `hourlyCompensations.${e.uuid}.${
|
|
285
|
+
label: z(n),
|
|
286
|
+
name: `hourlyCompensations.${e.uuid}.${u.name}`
|
|
279
287
|
},
|
|
280
288
|
n
|
|
281
289
|
);
|
|
282
290
|
}) })
|
|
283
291
|
] }, e.uuid))
|
|
284
292
|
] }),
|
|
285
|
-
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
-
|
|
293
|
+
E.length > 0 && /* @__PURE__ */ m("div", { className: l.fieldGroup, children: [
|
|
294
|
+
/* @__PURE__ */ s(c, { as: "h4", children: t("timeOffTitle") }),
|
|
295
|
+
/* @__PURE__ */ s(S, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: E.map((e) => /* @__PURE__ */ s(
|
|
296
|
+
ie,
|
|
289
297
|
{
|
|
290
298
|
timeOff: e,
|
|
291
299
|
employee: d
|
|
@@ -293,10 +301,10 @@ const Te = s.object({
|
|
|
293
301
|
e.name
|
|
294
302
|
)) })
|
|
295
303
|
] }),
|
|
296
|
-
|
|
297
|
-
/* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
-
|
|
304
|
+
r === I.Dismissal && E.length > 0 && /* @__PURE__ */ m("div", { className: l.fieldGroup, children: [
|
|
305
|
+
/* @__PURE__ */ s(c, { as: "h4", children: t("finalPayoutTitle") }),
|
|
306
|
+
/* @__PURE__ */ s(S, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: E.map((e) => /* @__PURE__ */ s(
|
|
307
|
+
k,
|
|
300
308
|
{
|
|
301
309
|
name: `finalPayoutCompensations.${e.name}`,
|
|
302
310
|
type: "number",
|
|
@@ -308,20 +316,20 @@ const Te = s.object({
|
|
|
308
316
|
`payout-${e.name}`
|
|
309
317
|
)) })
|
|
310
318
|
] }),
|
|
311
|
-
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */
|
|
314
|
-
|
|
319
|
+
v.length > 0 && /* @__PURE__ */ m("div", { className: l.fieldGroup, children: [
|
|
320
|
+
/* @__PURE__ */ s(c, { as: "h4", children: t("additionalEarningsTitle") }),
|
|
321
|
+
/* @__PURE__ */ s(
|
|
322
|
+
S,
|
|
315
323
|
{
|
|
316
324
|
gridTemplateColumns: { base: "1fr", small: [320, 320], large: [320, 320, 320] },
|
|
317
325
|
gap: 20,
|
|
318
|
-
children:
|
|
319
|
-
|
|
326
|
+
children: v.map((e) => /* @__PURE__ */ s(
|
|
327
|
+
w,
|
|
320
328
|
{
|
|
321
329
|
format: "currency",
|
|
322
330
|
min: 0,
|
|
323
331
|
isRequired: !0,
|
|
324
|
-
label:
|
|
332
|
+
label: L(e.name),
|
|
325
333
|
name: `fixedCompensations.${e.name}`
|
|
326
334
|
},
|
|
327
335
|
e.name
|
|
@@ -329,22 +337,22 @@ const Te = s.object({
|
|
|
329
337
|
}
|
|
330
338
|
)
|
|
331
339
|
] }),
|
|
332
|
-
|
|
333
|
-
/* @__PURE__ */
|
|
334
|
-
/* @__PURE__ */
|
|
335
|
-
|
|
340
|
+
P && /* @__PURE__ */ m("div", { className: l.fieldGroup, children: [
|
|
341
|
+
/* @__PURE__ */ s(c, { as: "h4", children: t("reimbursementTitle") }),
|
|
342
|
+
/* @__PURE__ */ s(S, { gridTemplateColumns: { base: "1fr", small: [320, 320] }, gap: 20, children: /* @__PURE__ */ s(
|
|
343
|
+
w,
|
|
336
344
|
{
|
|
337
345
|
format: "currency",
|
|
338
346
|
min: 0,
|
|
339
347
|
isRequired: !0,
|
|
340
|
-
label:
|
|
341
|
-
name: `fixedCompensations.${
|
|
348
|
+
label: L(P.name),
|
|
349
|
+
name: `fixedCompensations.${P.name}`
|
|
342
350
|
}
|
|
343
351
|
) })
|
|
344
352
|
] }),
|
|
345
|
-
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
/* @__PURE__ */
|
|
353
|
+
C && /* @__PURE__ */ m("div", { className: l.fieldGroup, children: [
|
|
354
|
+
/* @__PURE__ */ s(c, { as: "h4", children: t("paymentMethodTitle") }),
|
|
355
|
+
/* @__PURE__ */ s(
|
|
348
356
|
ae,
|
|
349
357
|
{
|
|
350
358
|
name: "paymentMethod",
|
|
@@ -353,11 +361,11 @@ const Te = s.object({
|
|
|
353
361
|
description: t("paymentMethodDescription"),
|
|
354
362
|
options: [
|
|
355
363
|
{
|
|
356
|
-
value:
|
|
364
|
+
value: _.DirectDeposit,
|
|
357
365
|
label: t("paymentMethodOptions.directDeposit")
|
|
358
366
|
},
|
|
359
367
|
{
|
|
360
|
-
value:
|
|
368
|
+
value: _.Check,
|
|
361
369
|
label: t("paymentMethodOptions.check")
|
|
362
370
|
}
|
|
363
371
|
]
|
|
@@ -365,12 +373,12 @@ const Te = s.object({
|
|
|
365
373
|
)
|
|
366
374
|
] })
|
|
367
375
|
] }),
|
|
368
|
-
!f &&
|
|
376
|
+
!f && H
|
|
369
377
|
] })
|
|
370
378
|
] });
|
|
371
379
|
};
|
|
372
380
|
export {
|
|
373
381
|
Te as PayrollEditEmployeeFormSchema,
|
|
374
|
-
|
|
382
|
+
Ke as PayrollEditEmployeePresentation
|
|
375
383
|
};
|
|
376
384
|
//# sourceMappingURL=PayrollEditEmployeePresentation.js.map
|