@gusto/embedded-react-sdk 0.30.0 → 0.31.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 +37 -0
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +2 -1
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +48 -36
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureForm.js +12 -11
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +2 -2
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/ComboBox/ComboBox.d.ts +1 -1
- package/dist/components/Common/UI/ComboBox/ComboBox.js +73 -66
- package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +5 -0
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +16 -17
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +5 -6
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +6 -5
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +6 -5
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +2 -2
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +2 -2
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -2
- package/dist/components/Company/FederalTaxes/Form.js +4 -3
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -5
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +7 -6
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Industry/Industry.js +1 -1
- package/dist/components/Company/Industry/Industry.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +5 -6
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +14 -14
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +31 -31
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +3 -2
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +3 -2
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +2 -2
- package/dist/components/Company/OnboardingOverview/context.js +4 -3
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +2 -2
- package/dist/components/Company/PaySchedule/_parts/Edit.js +23 -24
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +9 -8
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +12 -11
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/Address.js +2 -2
- package/dist/components/Contractor/Address/Form.js +7 -8
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +6 -5
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.js +17 -17
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +2 -2
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +102 -99
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +3 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +35 -31
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +22 -23
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +8 -7
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +51 -48
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +58 -66
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +7 -6
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +3 -2
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +3 -2
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
- package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +1 -1
- package/dist/components/Contractor/index.d.ts +5 -0
- package/dist/components/Contractor/index.js +21 -11
- package/dist/components/Contractor/index.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +14 -14
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +11 -10
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +12 -11
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +12 -11
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +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/Actions.js +7 -7
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +24 -24
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +3 -2
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.d.ts +0 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentSigner.d.ts +2 -1
- package/dist/components/Employee/DocumentSigner/DocumentSigner.js +42 -21
- package/dist/components/Employee/DocumentSigner/DocumentSigner.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.d.ts +5 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +65 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +10 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +120 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.d.ts +43 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js +51 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.test.d.ts +1 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/countries.d.ts +4 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/countries.js +199 -0
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/countries.js.map +1 -0
- package/dist/components/Employee/{EmploymentEligibility → DocumentSigner/EmploymentEligibility}/index.d.ts +0 -1
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +107 -0
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +284 -0
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.module.scss.js +10 -0
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.module.scss.js.map +1 -0
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.d.ts +6 -0
- package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.js +33 -14
- package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/stateMachine.d.ts +1 -0
- package/dist/components/Employee/DocumentSigner/stateMachine.js +41 -23
- package/dist/components/Employee/DocumentSigner/stateMachine.js.map +1 -1
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocuments.d.ts +10 -0
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocuments.js +55 -0
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocuments.js.map +1 -0
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +18 -0
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +116 -0
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -0
- package/dist/components/Employee/EmployeeDocuments/index.d.ts +2 -0
- package/dist/components/Employee/EmployeeList/EmployeeList.js +4 -3
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Head.js +3 -2
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +7 -7
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/Landing/Landing.js +31 -26
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingFlow/OnboardingFlow.d.ts +2 -1
- package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js +23 -21
- package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
- package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -0
- package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
- package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.d.ts +1 -0
- package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +68 -49
- package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -2
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +8 -8
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +1 -1
- package/dist/components/Employee/Profile/HomeAddress.js +9 -10
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -11
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/Profile.js +11 -11
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.js +4 -3
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +3 -0
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +43 -30
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js +23 -17
- package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -1
- package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js +36 -46
- package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +7 -7
- package/dist/components/Employee/Taxes/useTaxes.js +4 -3
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Employee/index.d.ts +3 -0
- package/dist/components/Employee/index.js +20 -16
- package/dist/components/Employee/index.js.map +1 -1
- package/dist/components/Flow/Flow.js +3 -2
- package/dist/components/Flow/Flow.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +63 -52
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +4 -4
- package/dist/components/InformationRequests/InformationRequests.js +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +9 -9
- package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +2 -0
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js +29 -0
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -0
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +13 -0
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +45 -0
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -0
- package/dist/components/Payroll/OffCycle/index.d.ts +3 -0
- package/dist/components/Payroll/OffCycle/offCycleStateMachine.d.ts +6 -0
- package/dist/components/Payroll/OffCycle/offCycleStateMachine.js +58 -0
- package/dist/components/Payroll/OffCycle/offCycleStateMachine.js.map +1 -0
- package/dist/components/Payroll/OffCycle/offCycleStateMachine.test.d.ts +1 -0
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.d.ts +2 -0
- package/dist/components/Payroll/{PayPeriodDateForm/PayPeriodDateFormTypes.d.ts → OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts} +5 -19
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/index.d.ts +2 -0
- package/dist/components/Payroll/{PayPeriodDateForm/usePayPeriodDateValidation.d.ts → OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts} +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +2 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +3 -2
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +51 -49
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +2 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +93 -90
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +1 -0
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +26 -25
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +38 -39
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +18 -17
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +3 -2
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +3 -2
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +23 -21
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +3 -2
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +6 -6
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -2
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
- package/dist/components/Payroll/helpers.d.ts +5 -0
- package/dist/components/Payroll/helpers.js +41 -40
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +3 -2
- package/dist/components/Payroll/index.js +16 -16
- package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
- package/dist/components/Payroll/usePreparedPayrollData.js +3 -2
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.js +6 -6
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/i18n/I18n.js +5 -5
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +1 -1
- package/dist/i18n/en/Employee.EmployeeDocuments.json.js +12 -0
- package/dist/i18n/en/Employee.EmployeeDocuments.json.js.map +1 -0
- package/dist/i18n/en/Employee.EmploymentEligibility.json.js +15 -19
- package/dist/i18n/en/Employee.EmploymentEligibility.json.js.map +1 -1
- package/dist/i18n/en/Employee.I9SignatureForm.json.js +78 -0
- package/dist/i18n/en/Employee.I9SignatureForm.json.js.map +1 -0
- package/dist/i18n/en/Payroll.OffCycle.json.js +8 -0
- package/dist/i18n/en/Payroll.OffCycle.json.js.map +1 -0
- package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +18 -0
- package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +1 -1
- package/dist/shared/constants.d.ts +9 -0
- package/dist/shared/constants.js +60 -53
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +110 -41
- package/package.json +14 -14
- package/dist/components/Employee/EmploymentEligibility/EmploymentEligibility.d.ts +0 -3
- package/dist/components/Employee/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +0 -37
- package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.d.ts +0 -2
- package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js +0 -35
- package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js.map +0 -1
- package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.d.ts +0 -2
- package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js +0 -65
- package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js.map +0 -1
- package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js +0 -18
- package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js.map +0 -1
- package/dist/components/Payroll/PayPeriodDateForm/index.d.ts +0 -3
- package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js +0 -32
- package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js.map +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { PayrollConfiguration as e } from "./PayrollConfiguration/PayrollConfiguration.js";
|
|
2
2
|
import { PayrollEditEmployee as t } from "./PayrollEditEmployee/PayrollEditEmployee.js";
|
|
3
|
-
import { PayrollHistory as
|
|
4
|
-
import { PayrollLanding as
|
|
5
|
-
import { PayrollList as
|
|
3
|
+
import { PayrollHistory as m } from "./PayrollHistory/PayrollHistory.js";
|
|
4
|
+
import { PayrollLanding as a } from "./PayrollLanding/PayrollLanding.js";
|
|
5
|
+
import { PayrollList as y } from "./PayrollList/PayrollList.js";
|
|
6
6
|
import { PayrollOverview as P } from "./PayrollOverview/PayrollOverview.js";
|
|
7
7
|
import { PayrollFlow as s } from "./PayrollFlow/PayrollFlow.js";
|
|
8
8
|
import { PayrollReceipts as C } from "./PayrollReceipts/PayrollReceipts.js";
|
|
9
9
|
import { ConfirmWireDetails as v } from "./ConfirmWireDetails/ConfirmWireDetails.js";
|
|
10
|
-
import { RecoveryCases as
|
|
11
|
-
import { OffCycleReasonSelection as
|
|
12
|
-
import { PayrollExecutionFlow as
|
|
13
|
-
import { PayrollBlockerList as
|
|
14
|
-
import {
|
|
10
|
+
import { RecoveryCases as F } from "./RecoveryCases/RecoveryCases.js";
|
|
11
|
+
import { OffCycleReasonSelection as O } from "./OffCycleReasonSelection/OffCycleReasonSelection.js";
|
|
12
|
+
import { PayrollExecutionFlow as d } from "./PayrollExecutionFlow/PayrollExecutionFlow.js";
|
|
13
|
+
import { PayrollBlockerList as u } from "./PayrollBlocker/components/PayrollBlockerList.js";
|
|
14
|
+
import { OffCycleFlow as B } from "./OffCycle/OffCycleFlow.js";
|
|
15
15
|
export {
|
|
16
16
|
v as ConfirmWireDetails,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
B as OffCycleFlow,
|
|
18
|
+
O as OffCycleReasonSelection,
|
|
19
|
+
u as PayrollBlockerList,
|
|
20
20
|
e as PayrollConfiguration,
|
|
21
21
|
t as PayrollEditEmployee,
|
|
22
|
-
|
|
22
|
+
d as PayrollExecutionFlow,
|
|
23
23
|
s as PayrollFlow,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
m as PayrollHistory,
|
|
25
|
+
a as PayrollLanding,
|
|
26
|
+
y as PayrollList,
|
|
27
27
|
P as PayrollOverview,
|
|
28
28
|
C as PayrollReceipts,
|
|
29
|
-
|
|
29
|
+
F as RecoveryCases
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PayrollPrepared } from '@gusto/embedded-api/models/components/payroll';
|
|
2
2
|
import { PayScheduleObject } from '@gusto/embedded-api/models/components/payscheduleobject';
|
|
3
|
-
import {
|
|
3
|
+
import { QueryParamSortBy } from '@gusto/embedded-api/models/operations/putv1companiescompanyidpayrollspayrollidprepare';
|
|
4
4
|
interface UsePreparedPayrollDataParams {
|
|
5
5
|
companyId: string;
|
|
6
6
|
payrollId: string;
|
|
7
7
|
employeeUuids?: string[];
|
|
8
|
-
sortBy?:
|
|
8
|
+
sortBy?: QueryParamSortBy;
|
|
9
9
|
onDataReady?: (preparedPayroll: PayrollPrepared) => void;
|
|
10
10
|
}
|
|
11
11
|
interface UsePreparedPayrollDataReturn {
|
|
@@ -11,9 +11,10 @@ import { useBase as M } from "../Base/useBase.js";
|
|
|
11
11
|
import "../../shared/constants.js";
|
|
12
12
|
import "classnames";
|
|
13
13
|
import "../../contexts/ComponentAdapter/useComponentContext.js";
|
|
14
|
+
import "../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
|
|
14
15
|
import "dompurify";
|
|
15
16
|
import "../../contexts/LocaleProvider/useLocale.js";
|
|
16
|
-
const
|
|
17
|
+
const J = ({
|
|
17
18
|
companyId: r,
|
|
18
19
|
payrollId: s,
|
|
19
20
|
employeeUuids: a,
|
|
@@ -65,6 +66,6 @@ const F = ({
|
|
|
65
66
|
};
|
|
66
67
|
};
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
J as usePreparedPayrollData
|
|
69
70
|
};
|
|
70
71
|
//# sourceMappingURL=usePreparedPayrollData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePreparedPayrollData.js","sources":["../../../src/components/Payroll/usePreparedPayrollData.ts"],"sourcesContent":["import { useState, useEffect, useCallback, useRef, useMemo } from 'react'\nimport { usePayrollsPrepareMutation } from '@gusto/embedded-api/react-query/payrollsPrepare'\nimport { usePaySchedulesGet } from '@gusto/embedded-api/react-query/paySchedulesGet'\nimport type { PayrollPrepared } from '@gusto/embedded-api/models/components/payroll'\nimport type { PayScheduleObject } from '@gusto/embedded-api/models/components/payscheduleobject'\nimport type {
|
|
1
|
+
{"version":3,"file":"usePreparedPayrollData.js","sources":["../../../src/components/Payroll/usePreparedPayrollData.ts"],"sourcesContent":["import { useState, useEffect, useCallback, useRef, useMemo } from 'react'\nimport { usePayrollsPrepareMutation } from '@gusto/embedded-api/react-query/payrollsPrepare'\nimport { usePaySchedulesGet } from '@gusto/embedded-api/react-query/paySchedulesGet'\nimport type { PayrollPrepared } from '@gusto/embedded-api/models/components/payroll'\nimport type { PayScheduleObject } from '@gusto/embedded-api/models/components/payscheduleobject'\nimport type { QueryParamSortBy } from '@gusto/embedded-api/models/operations/putv1companiescompanyidpayrollspayrollidprepare'\nimport { useBase } from '../Base'\n\ninterface UsePreparedPayrollDataParams {\n companyId: string\n payrollId: string\n employeeUuids?: string[]\n sortBy?: QueryParamSortBy\n onDataReady?: (preparedPayroll: PayrollPrepared) => void\n}\n\ninterface UsePreparedPayrollDataReturn {\n handlePreparePayroll: () => Promise<void>\n preparedPayroll: PayrollPrepared | undefined\n paySchedule: PayScheduleObject | undefined\n isLoading: boolean\n isPaginating: boolean\n hasInitialData: boolean\n}\n\nexport const usePreparedPayrollData = ({\n companyId,\n payrollId,\n employeeUuids,\n sortBy,\n onDataReady,\n}: UsePreparedPayrollDataParams): UsePreparedPayrollDataReturn => {\n const { mutateAsync: preparePayroll, isPending: isPreparePayrollPending } =\n usePayrollsPrepareMutation()\n const [preparedPayroll, setPreparedPayroll] = useState<PayrollPrepared | undefined>()\n const hasInitialDataRef = useRef(false)\n const { baseSubmitHandler } = useBase()\n\n const employeeUuidsKey = useMemo(() => employeeUuids?.join(',') ?? '', [employeeUuids])\n\n const { data: payScheduleData, isLoading: isPayScheduleLoading } = usePaySchedulesGet(\n {\n companyId,\n payScheduleId: preparedPayroll?.payPeriod?.payScheduleUuid || '',\n },\n {\n enabled: !!preparedPayroll?.payPeriod?.payScheduleUuid,\n },\n )\n\n const handlePreparePayroll = useCallback(async () => {\n await baseSubmitHandler(null, async () => {\n const result = await preparePayroll({\n request: {\n companyId,\n payrollId,\n sortBy,\n requestBody: {\n employeeUuids,\n },\n },\n })\n setPreparedPayroll(result.payrollPrepared)\n if (result.payrollPrepared) {\n hasInitialDataRef.current = true\n onDataReady?.(result.payrollPrepared)\n }\n })\n }, [\n companyId,\n payrollId,\n preparePayroll,\n employeeUuidsKey,\n baseSubmitHandler,\n sortBy,\n onDataReady,\n ])\n\n useEffect(() => {\n void handlePreparePayroll()\n }, [handlePreparePayroll])\n\n const isInitialLoading = isPreparePayrollPending && !hasInitialDataRef.current\n const isPaginating = isPreparePayrollPending && hasInitialDataRef.current\n const isLoading = isInitialLoading || isPayScheduleLoading\n\n return {\n handlePreparePayroll,\n preparedPayroll,\n paySchedule: payScheduleData?.payScheduleObject,\n isLoading,\n isPaginating,\n hasInitialData: hasInitialDataRef.current,\n }\n}\n"],"names":["usePreparedPayrollData","companyId","payrollId","employeeUuids","sortBy","onDataReady","preparePayroll","isPreparePayrollPending","usePayrollsPrepareMutation","preparedPayroll","setPreparedPayroll","useState","hasInitialDataRef","useRef","baseSubmitHandler","useBase","employeeUuidsKey","useMemo","payScheduleData","isPayScheduleLoading","usePaySchedulesGet","handlePreparePayroll","useCallback","result","useEffect","isInitialLoading","isPaginating","isLoading"],"mappings":";;;;;;;;;;;;;;;;AAyBO,MAAMA,IAAyB,CAAC;AAAA,EACrC,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AACF,MAAkE;AAChE,QAAM,EAAE,aAAaC,GAAgB,WAAWC,EAAA,IAC9CC,EAAA,GACI,CAACC,GAAiBC,CAAkB,IAAIC,EAAA,GACxCC,IAAoBC,EAAO,EAAK,GAChC,EAAE,mBAAAC,EAAA,IAAsBC,EAAA,GAExBC,IAAmBC,EAAQ,MAAMd,GAAe,KAAK,GAAG,KAAK,IAAI,CAACA,CAAa,CAAC,GAEhF,EAAE,MAAMe,GAAiB,WAAWC,MAAyBC;AAAA,IACjE;AAAA,MACE,WAAAnB;AAAA,MACA,eAAeQ,GAAiB,WAAW,mBAAmB;AAAA,IAAA;AAAA,IAEhE;AAAA,MACE,SAAS,CAAC,CAACA,GAAiB,WAAW;AAAA,IAAA;AAAA,EACzC,GAGIY,IAAuBC,EAAY,YAAY;AACnD,UAAMR,EAAkB,MAAM,YAAY;AACxC,YAAMS,IAAS,MAAMjB,EAAe;AAAA,QAClC,SAAS;AAAA,UACP,WAAAL;AAAA,UACA,WAAAC;AAAA,UACA,QAAAE;AAAA,UACA,aAAa;AAAA,YACX,eAAAD;AAAA,UAAA;AAAA,QACF;AAAA,MACF,CACD;AACD,MAAAO,EAAmBa,EAAO,eAAe,GACrCA,EAAO,oBACTX,EAAkB,UAAU,IAC5BP,IAAckB,EAAO,eAAe;AAAA,IAExC,CAAC;AAAA,EACH,GAAG;AAAA,IACDtB;AAAA,IACAC;AAAA,IACAI;AAAA,IACAU;AAAA,IACAF;AAAA,IACAV;AAAA,IACAC;AAAA,EAAA,CACD;AAED,EAAAmB,EAAU,MAAM;AACd,IAAKH,EAAA;AAAA,EACP,GAAG,CAACA,CAAoB,CAAC;AAEzB,QAAMI,IAAmBlB,KAA2B,CAACK,EAAkB,SACjEc,IAAenB,KAA2BK,EAAkB,SAC5De,IAAYF,KAAoBN;AAEtC,SAAO;AAAA,IACL,sBAAAE;AAAA,IACA,iBAAAZ;AAAA,IACA,aAAaS,GAAiB;AAAA,IAC9B,WAAAS;AAAA,IACA,cAAAD;AAAA,IACA,gBAAgBd,EAAkB;AAAA,EAAA;AAEtC;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClient as E, QueryClientProvider as H } from "@tanstack/react-query";
|
|
3
3
|
import { GustoEmbeddedProvider as b } from "@gusto/embedded-api/react-query/_context";
|
|
4
4
|
import { GustoEmbeddedCore as R } from "@gusto/embedded-api/core";
|
|
5
5
|
import { SDKHooks as g } from "@gusto/embedded-api/hooks/hooks";
|
|
6
|
-
import { useMemo as
|
|
6
|
+
import { useMemo as a } from "react";
|
|
7
7
|
function x({
|
|
8
8
|
url: f,
|
|
9
9
|
headers: s,
|
|
@@ -11,7 +11,7 @@ function x({
|
|
|
11
11
|
children: d,
|
|
12
12
|
queryClient: i
|
|
13
13
|
}) {
|
|
14
|
-
const m =
|
|
14
|
+
const m = a(() => {
|
|
15
15
|
const r = new R({
|
|
16
16
|
serverURL: f
|
|
17
17
|
}), o = r._options.hooks || new g();
|
|
@@ -32,15 +32,15 @@ function x({
|
|
|
32
32
|
}), e?.afterError && e.afterError.forEach((t) => {
|
|
33
33
|
o.registerAfterErrorHook(t);
|
|
34
34
|
}), r._options.hooks || (r._options.hooks = o), r;
|
|
35
|
-
}, [f, s, e]), l =
|
|
35
|
+
}, [f, s, e]), l = a(() => {
|
|
36
36
|
if (i)
|
|
37
37
|
return i;
|
|
38
38
|
const r = new E(), o = async () => {
|
|
39
39
|
await r.invalidateQueries();
|
|
40
40
|
};
|
|
41
|
-
return r.setQueryDefaults(["@gusto/embedded-api"], { retry: !1 }), r.setMutationDefaults(["@gusto/embedded-api"], {
|
|
41
|
+
return r.setQueryDefaults(["@gusto/embedded-api"], { retry: !1 }), r.setMutationDefaults(["@gusto/embedded-api"], { onSuccess: o, retry: !1 }), r;
|
|
42
42
|
}, [i]);
|
|
43
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ u(H, { client: l, children: /* @__PURE__ */ u(b, { client: m, children: d }) });
|
|
44
44
|
}
|
|
45
45
|
export {
|
|
46
46
|
x as ApiProvider
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiProvider.js","sources":["../../../src/contexts/ApiProvider/ApiProvider.tsx"],"sourcesContent":["import { QueryClient, QueryClientProvider } from '@tanstack/react-query'\nimport { GustoEmbeddedProvider } from '@gusto/embedded-api/react-query/_context'\nimport { GustoEmbeddedCore } from '@gusto/embedded-api/core'\nimport { SDKHooks as NativeSDKHooks } from '@gusto/embedded-api/hooks/hooks'\nimport { useMemo } from 'react'\nimport type { SDKHooks, BeforeRequestHook } from '@/types/hooks'\n\nexport interface ApiProviderProps {\n url: string\n headers?: HeadersInit\n hooks?: SDKHooks\n children: React.ReactNode\n queryClient?: QueryClient\n}\n\nexport function ApiProvider({\n url,\n headers,\n hooks,\n children,\n queryClient: queryClientFromProps,\n}: ApiProviderProps) {\n const gustoClient = useMemo(() => {\n const client = new GustoEmbeddedCore({\n serverURL: url,\n })\n\n const sdkHooks = client._options.hooks || new NativeSDKHooks()\n\n if (headers) {\n const defaultHeaderHook: BeforeRequestHook = {\n beforeRequest: (context, request) => {\n const headersInstance = new Headers(headers)\n headersInstance.forEach((headerValue, headerName) => {\n if (headerValue) {\n request.headers.set(headerName, headerValue)\n }\n })\n return request\n },\n }\n sdkHooks.registerBeforeRequestHook(defaultHeaderHook)\n }\n\n if (hooks?.beforeCreateRequest) {\n hooks.beforeCreateRequest.forEach(hook => {\n sdkHooks.registerBeforeCreateRequestHook(hook)\n })\n }\n\n if (hooks?.beforeRequest) {\n hooks.beforeRequest.forEach(hook => {\n sdkHooks.registerBeforeRequestHook(hook)\n })\n }\n\n if (hooks?.afterSuccess) {\n hooks.afterSuccess.forEach(hook => {\n sdkHooks.registerAfterSuccessHook(hook)\n })\n }\n\n if (hooks?.afterError) {\n hooks.afterError.forEach(hook => {\n sdkHooks.registerAfterErrorHook(hook)\n })\n }\n\n if (!client._options.hooks) {\n client._options.hooks = sdkHooks\n }\n\n return client\n }, [url, headers, hooks])\n\n const queryClient = useMemo(() => {\n if (queryClientFromProps) {\n return queryClientFromProps\n }\n\n // Create and configure a new QueryClient for internal SDK use\n const client = new QueryClient()\n\n const
|
|
1
|
+
{"version":3,"file":"ApiProvider.js","sources":["../../../src/contexts/ApiProvider/ApiProvider.tsx"],"sourcesContent":["import { QueryClient, QueryClientProvider } from '@tanstack/react-query'\nimport { GustoEmbeddedProvider } from '@gusto/embedded-api/react-query/_context'\nimport { GustoEmbeddedCore } from '@gusto/embedded-api/core'\nimport { SDKHooks as NativeSDKHooks } from '@gusto/embedded-api/hooks/hooks'\nimport { useMemo } from 'react'\nimport type { SDKHooks, BeforeRequestHook } from '@/types/hooks'\n\nexport interface ApiProviderProps {\n url: string\n headers?: HeadersInit\n hooks?: SDKHooks\n children: React.ReactNode\n queryClient?: QueryClient\n}\n\nexport function ApiProvider({\n url,\n headers,\n hooks,\n children,\n queryClient: queryClientFromProps,\n}: ApiProviderProps) {\n const gustoClient = useMemo(() => {\n const client = new GustoEmbeddedCore({\n serverURL: url,\n })\n\n const sdkHooks = client._options.hooks || new NativeSDKHooks()\n\n if (headers) {\n const defaultHeaderHook: BeforeRequestHook = {\n beforeRequest: (context, request) => {\n const headersInstance = new Headers(headers)\n headersInstance.forEach((headerValue, headerName) => {\n if (headerValue) {\n request.headers.set(headerName, headerValue)\n }\n })\n return request\n },\n }\n sdkHooks.registerBeforeRequestHook(defaultHeaderHook)\n }\n\n if (hooks?.beforeCreateRequest) {\n hooks.beforeCreateRequest.forEach(hook => {\n sdkHooks.registerBeforeCreateRequestHook(hook)\n })\n }\n\n if (hooks?.beforeRequest) {\n hooks.beforeRequest.forEach(hook => {\n sdkHooks.registerBeforeRequestHook(hook)\n })\n }\n\n if (hooks?.afterSuccess) {\n hooks.afterSuccess.forEach(hook => {\n sdkHooks.registerAfterSuccessHook(hook)\n })\n }\n\n if (hooks?.afterError) {\n hooks.afterError.forEach(hook => {\n sdkHooks.registerAfterErrorHook(hook)\n })\n }\n\n if (!client._options.hooks) {\n client._options.hooks = sdkHooks\n }\n\n return client\n }, [url, headers, hooks])\n\n const queryClient = useMemo(() => {\n if (queryClientFromProps) {\n return queryClientFromProps\n }\n\n // Create and configure a new QueryClient for internal SDK use\n const client = new QueryClient()\n\n const onSuccess = async () => {\n await client.invalidateQueries()\n }\n client.setQueryDefaults(['@gusto/embedded-api'], { retry: false })\n client.setMutationDefaults(['@gusto/embedded-api'], { onSuccess, retry: false })\n\n return client\n }, [queryClientFromProps])\n\n return (\n <QueryClientProvider client={queryClient}>\n <GustoEmbeddedProvider client={gustoClient}>{children}</GustoEmbeddedProvider>\n </QueryClientProvider>\n )\n}\n"],"names":["ApiProvider","url","headers","hooks","children","queryClientFromProps","gustoClient","useMemo","client","GustoEmbeddedCore","sdkHooks","NativeSDKHooks","defaultHeaderHook","context","request","headerValue","headerName","hook","queryClient","QueryClient","onSuccess","jsx","QueryClientProvider","GustoEmbeddedProvider"],"mappings":";;;;;;AAeO,SAASA,EAAY;AAAA,EAC1B,KAAAC;AAAA,EACA,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAaC;AACf,GAAqB;AACnB,QAAMC,IAAcC,EAAQ,MAAM;AAChC,UAAMC,IAAS,IAAIC,EAAkB;AAAA,MACnC,WAAWR;AAAA,IAAA,CACZ,GAEKS,IAAWF,EAAO,SAAS,SAAS,IAAIG,EAAA;AAE9C,QAAIT,GAAS;AACX,YAAMU,IAAuC;AAAA,QAC3C,eAAe,CAACC,GAASC,OACC,IAAI,QAAQZ,CAAO,EAC3B,QAAQ,CAACa,GAAaC,MAAe;AACnD,UAAID,KACFD,EAAQ,QAAQ,IAAIE,GAAYD,CAAW;AAAA,QAE/C,CAAC,GACMD;AAAA,MACT;AAEF,MAAAJ,EAAS,0BAA0BE,CAAiB;AAAA,IACtD;AAEA,WAAIT,GAAO,uBACTA,EAAM,oBAAoB,QAAQ,CAAAc,MAAQ;AACxC,MAAAP,EAAS,gCAAgCO,CAAI;AAAA,IAC/C,CAAC,GAGCd,GAAO,iBACTA,EAAM,cAAc,QAAQ,CAAAc,MAAQ;AAClC,MAAAP,EAAS,0BAA0BO,CAAI;AAAA,IACzC,CAAC,GAGCd,GAAO,gBACTA,EAAM,aAAa,QAAQ,CAAAc,MAAQ;AACjC,MAAAP,EAAS,yBAAyBO,CAAI;AAAA,IACxC,CAAC,GAGCd,GAAO,cACTA,EAAM,WAAW,QAAQ,CAAAc,MAAQ;AAC/B,MAAAP,EAAS,uBAAuBO,CAAI;AAAA,IACtC,CAAC,GAGET,EAAO,SAAS,UACnBA,EAAO,SAAS,QAAQE,IAGnBF;AAAA,EACT,GAAG,CAACP,GAAKC,GAASC,CAAK,CAAC,GAElBe,IAAcX,EAAQ,MAAM;AAChC,QAAIF;AACF,aAAOA;AAIT,UAAMG,IAAS,IAAIW,EAAA,GAEbC,IAAY,YAAY;AAC5B,YAAMZ,EAAO,kBAAA;AAAA,IACf;AACA,WAAAA,EAAO,iBAAiB,CAAC,qBAAqB,GAAG,EAAE,OAAO,IAAO,GACjEA,EAAO,oBAAoB,CAAC,qBAAqB,GAAG,EAAE,WAAAY,GAAW,OAAO,IAAO,GAExEZ;AAAA,EACT,GAAG,CAACH,CAAoB,CAAC;AAEzB,SACE,gBAAAgB,EAACC,KAAoB,QAAQJ,GAC3B,4BAACK,GAAA,EAAsB,QAAQjB,GAAc,UAAAF,EAAA,CAAS,EAAA,CACxD;AAEJ;"}
|
package/dist/i18n/I18n.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import p from "../_virtual/dynamic-import-helper.js";
|
|
2
2
|
import { useTranslation as a } from "react-i18next";
|
|
3
3
|
import { LRUCache as y } from "../helpers/LRUCache.js";
|
|
4
|
-
const
|
|
4
|
+
const C = "common", i = new y(50), c = ({ lng: e = "en", ns: o }) => {
|
|
5
5
|
let r = !0, n = !1, t;
|
|
6
6
|
const m = (async () => {
|
|
7
7
|
try {
|
|
8
|
-
t = (await p(/* @__PURE__ */ Object.assign({ "./en/Company.Addresses.json": () => import("./en/Company.Addresses.json.js"), "./en/Company.AssignSignatory.json": () => import("./en/Company.AssignSignatory.json.js"), "./en/Company.BankAccount.json": () => import("./en/Company.BankAccount.json.js"), "./en/Company.DocumentList.json": () => import("./en/Company.DocumentList.json.js"), "./en/Company.FederalTaxes.json": () => import("./en/Company.FederalTaxes.json.js"), "./en/Company.Industry.json": () => import("./en/Company.Industry.json.js"), "./en/Company.Locations.json": () => import("./en/Company.Locations.json.js"), "./en/Company.OnboardingOverview.json": () => import("./en/Company.OnboardingOverview.json.js"), "./en/Company.PaySchedule.json": () => import("./en/Company.PaySchedule.json.js"), "./en/Company.SignatureForm.json": () => import("./en/Company.SignatureForm.json.js"), "./en/Company.StateTaxes.json": () => import("./en/Company.StateTaxes.json.js"), "./en/Contractor.Address.json": () => import("./en/Contractor.Address.json.js"), "./en/Contractor.ContractorList.json": () => import("./en/Contractor.ContractorList.json.js"), "./en/Contractor.NewHireReport.json": () => import("./en/Contractor.NewHireReport.json.js"), "./en/Contractor.PaymentMethod.json": () => import("./en/Contractor.PaymentMethod.json.js"), "./en/Contractor.Payments.CreatePayment.json": () => import("./en/Contractor.Payments.CreatePayment.json.js"), "./en/Contractor.Payments.PaymentHistory.json": () => import("./en/Contractor.Payments.PaymentHistory.json.js"), "./en/Contractor.Payments.PaymentStatement.json": () => import("./en/Contractor.Payments.PaymentStatement.json.js"), "./en/Contractor.Payments.PaymentSummary.json": () => import("./en/Contractor.Payments.PaymentSummary.json.js"), "./en/Contractor.Payments.PaymentsList.json": () => import("./en/Contractor.Payments.PaymentsList.json.js"), "./en/Contractor.Profile.json": () => import("./en/Contractor.Profile.json.js"), "./en/Contractor.Submit.json": () => import("./en/Contractor.Submit.json.js"), "./en/Employee.BankAccount.json": () => import("./en/Employee.BankAccount.json.js"), "./en/Employee.Compensation.json": () => import("./en/Employee.Compensation.json.js"), "./en/Employee.Deductions.json": () => import("./en/Employee.Deductions.json.js"), "./en/Employee.DocumentSigner.json": () => import("./en/Employee.DocumentSigner.json.js"), "./en/Employee.EmployeeList.json": () => import("./en/Employee.EmployeeList.json.js"), "./en/Employee.EmploymentEligibility.json": () => import("./en/Employee.EmploymentEligibility.json.js"), "./en/Employee.FederalTaxes.json": () => import("./en/Employee.FederalTaxes.json.js"), "./en/Employee.HomeAddress.json": () => import("./en/Employee.HomeAddress.json.js"), "./en/Employee.Landing.json": () => import("./en/Employee.Landing.json.js"), "./en/Employee.OnboardingSummary.json": () => import("./en/Employee.OnboardingSummary.json.js"), "./en/Employee.PaySchedules.json": () => import("./en/Employee.PaySchedules.json.js"), "./en/Employee.PaymentMethod.json": () => import("./en/Employee.PaymentMethod.json.js"), "./en/Employee.Profile.json": () => import("./en/Employee.Profile.json.js"), "./en/Employee.SplitPaycheck.json": () => import("./en/Employee.SplitPaycheck.json.js"), "./en/Employee.StateTaxes.json": () => import("./en/Employee.StateTaxes.json.js"), "./en/Employee.Taxes.json": () => import("./en/Employee.Taxes.json.js"), "./en/InformationRequests.InformationRequestForm.json": () => import("./en/InformationRequests.InformationRequestForm.json.js"), "./en/InformationRequests.InformationRequestList.json": () => import("./en/InformationRequests.InformationRequestList.json.js"), "./en/InformationRequests.json": () => import("./en/InformationRequests.json.js"), "./en/Payroll.Common.json": () => import("./en/Payroll.Common.json.js"), "./en/Payroll.ConfirmWireDetailsBanner.json": () => import("./en/Payroll.ConfirmWireDetailsBanner.json.js"), "./en/Payroll.ConfirmWireDetailsForm.json": () => import("./en/Payroll.ConfirmWireDetailsForm.json.js"), "./en/Payroll.
|
|
8
|
+
t = (await p(/* @__PURE__ */ Object.assign({ "./en/Company.Addresses.json": () => import("./en/Company.Addresses.json.js"), "./en/Company.AssignSignatory.json": () => import("./en/Company.AssignSignatory.json.js"), "./en/Company.BankAccount.json": () => import("./en/Company.BankAccount.json.js"), "./en/Company.DocumentList.json": () => import("./en/Company.DocumentList.json.js"), "./en/Company.FederalTaxes.json": () => import("./en/Company.FederalTaxes.json.js"), "./en/Company.Industry.json": () => import("./en/Company.Industry.json.js"), "./en/Company.Locations.json": () => import("./en/Company.Locations.json.js"), "./en/Company.OnboardingOverview.json": () => import("./en/Company.OnboardingOverview.json.js"), "./en/Company.PaySchedule.json": () => import("./en/Company.PaySchedule.json.js"), "./en/Company.SignatureForm.json": () => import("./en/Company.SignatureForm.json.js"), "./en/Company.StateTaxes.json": () => import("./en/Company.StateTaxes.json.js"), "./en/Contractor.Address.json": () => import("./en/Contractor.Address.json.js"), "./en/Contractor.ContractorList.json": () => import("./en/Contractor.ContractorList.json.js"), "./en/Contractor.NewHireReport.json": () => import("./en/Contractor.NewHireReport.json.js"), "./en/Contractor.PaymentMethod.json": () => import("./en/Contractor.PaymentMethod.json.js"), "./en/Contractor.Payments.CreatePayment.json": () => import("./en/Contractor.Payments.CreatePayment.json.js"), "./en/Contractor.Payments.PaymentHistory.json": () => import("./en/Contractor.Payments.PaymentHistory.json.js"), "./en/Contractor.Payments.PaymentStatement.json": () => import("./en/Contractor.Payments.PaymentStatement.json.js"), "./en/Contractor.Payments.PaymentSummary.json": () => import("./en/Contractor.Payments.PaymentSummary.json.js"), "./en/Contractor.Payments.PaymentsList.json": () => import("./en/Contractor.Payments.PaymentsList.json.js"), "./en/Contractor.Profile.json": () => import("./en/Contractor.Profile.json.js"), "./en/Contractor.Submit.json": () => import("./en/Contractor.Submit.json.js"), "./en/Employee.BankAccount.json": () => import("./en/Employee.BankAccount.json.js"), "./en/Employee.Compensation.json": () => import("./en/Employee.Compensation.json.js"), "./en/Employee.Deductions.json": () => import("./en/Employee.Deductions.json.js"), "./en/Employee.DocumentSigner.json": () => import("./en/Employee.DocumentSigner.json.js"), "./en/Employee.EmployeeDocuments.json": () => import("./en/Employee.EmployeeDocuments.json.js"), "./en/Employee.EmployeeList.json": () => import("./en/Employee.EmployeeList.json.js"), "./en/Employee.EmploymentEligibility.json": () => import("./en/Employee.EmploymentEligibility.json.js"), "./en/Employee.FederalTaxes.json": () => import("./en/Employee.FederalTaxes.json.js"), "./en/Employee.HomeAddress.json": () => import("./en/Employee.HomeAddress.json.js"), "./en/Employee.I9SignatureForm.json": () => import("./en/Employee.I9SignatureForm.json.js"), "./en/Employee.Landing.json": () => import("./en/Employee.Landing.json.js"), "./en/Employee.OnboardingSummary.json": () => import("./en/Employee.OnboardingSummary.json.js"), "./en/Employee.PaySchedules.json": () => import("./en/Employee.PaySchedules.json.js"), "./en/Employee.PaymentMethod.json": () => import("./en/Employee.PaymentMethod.json.js"), "./en/Employee.Profile.json": () => import("./en/Employee.Profile.json.js"), "./en/Employee.SplitPaycheck.json": () => import("./en/Employee.SplitPaycheck.json.js"), "./en/Employee.StateTaxes.json": () => import("./en/Employee.StateTaxes.json.js"), "./en/Employee.Taxes.json": () => import("./en/Employee.Taxes.json.js"), "./en/InformationRequests.InformationRequestForm.json": () => import("./en/InformationRequests.InformationRequestForm.json.js"), "./en/InformationRequests.InformationRequestList.json": () => import("./en/InformationRequests.InformationRequestList.json.js"), "./en/InformationRequests.json": () => import("./en/InformationRequests.json.js"), "./en/Payroll.Common.json": () => import("./en/Payroll.Common.json.js"), "./en/Payroll.ConfirmWireDetailsBanner.json": () => import("./en/Payroll.ConfirmWireDetailsBanner.json.js"), "./en/Payroll.ConfirmWireDetailsForm.json": () => import("./en/Payroll.ConfirmWireDetailsForm.json.js"), "./en/Payroll.OffCycle.json": () => import("./en/Payroll.OffCycle.json.js"), "./en/Payroll.OffCyclePayPeriodDateForm.json": () => import("./en/Payroll.OffCyclePayPeriodDateForm.json.js"), "./en/Payroll.OffCycleReasonSelection.json": () => import("./en/Payroll.OffCycleReasonSelection.json.js"), "./en/Payroll.PayrollBlocker.json": () => import("./en/Payroll.PayrollBlocker.json.js"), "./en/Payroll.PayrollConfiguration.json": () => import("./en/Payroll.PayrollConfiguration.json.js"), "./en/Payroll.PayrollEditEmployee.json": () => import("./en/Payroll.PayrollEditEmployee.json.js"), "./en/Payroll.PayrollFlow.json": () => import("./en/Payroll.PayrollFlow.json.js"), "./en/Payroll.PayrollHistory.json": () => import("./en/Payroll.PayrollHistory.json.js"), "./en/Payroll.PayrollLanding.json": () => import("./en/Payroll.PayrollLanding.json.js"), "./en/Payroll.PayrollList.json": () => import("./en/Payroll.PayrollList.json.js"), "./en/Payroll.PayrollOverview.json": () => import("./en/Payroll.PayrollOverview.json.js"), "./en/Payroll.PayrollReceipts.json": () => import("./en/Payroll.PayrollReceipts.json.js"), "./en/Payroll.RecoveryCasesList.json": () => import("./en/Payroll.RecoveryCasesList.json.js"), "./en/Payroll.RecoveryCasesResubmit.json": () => import("./en/Payroll.RecoveryCasesResubmit.json.js"), "./en/Payroll.WireInstructions.json": () => import("./en/Payroll.WireInstructions.json.js"), "./en/common.json": () => import("./en/common.json.js") }), `./${e}/${o}.json`, 3)).default, r = !1;
|
|
9
9
|
} catch {
|
|
10
10
|
n = !0, r = !1;
|
|
11
11
|
}
|
|
@@ -17,7 +17,7 @@ const d = "common", i = new y(50), c = ({ lng: e = "en", ns: o }) => {
|
|
|
17
17
|
throw new Error(`Error loading translation for component: ${o}`);
|
|
18
18
|
return t;
|
|
19
19
|
};
|
|
20
|
-
},
|
|
20
|
+
}, d = (e) => {
|
|
21
21
|
const { i18n: o } = a();
|
|
22
22
|
if (!e) return;
|
|
23
23
|
const r = Array.isArray(e) ? e : [e];
|
|
@@ -43,8 +43,8 @@ const d = "common", i = new y(50), c = ({ lng: e = "en", ns: o }) => {
|
|
|
43
43
|
r.addResourceBundle(n, e, o[n], !0, !0);
|
|
44
44
|
};
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
C as defaultNS,
|
|
47
47
|
f as useComponentDictionary,
|
|
48
|
-
|
|
48
|
+
d as useI18n
|
|
49
49
|
};
|
|
50
50
|
//# sourceMappingURL=I18n.js.map
|
package/dist/i18n/I18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"I18n.js","sources":["../../src/i18n/I18n.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport type { CustomTypeOptions } from 'i18next'\nimport { LRUCache } from '@/helpers/LRUCache'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\n\nexport const defaultNS = 'common'\n\n//LRU cache holding requested resources\nconst resourceCache = new LRUCache(50)\n/**\n * Dynamic loading of translation resources - works with Suspence to prevent early access to loadable strings\n * @param lng(string): resource language\n * @param ns(string): Namespace/name of the component/resource\n * @returns Promise<Translation resource>\n */\nconst loadResource = ({ lng = 'en', ns }: { ns: string; lng?: string }) => {\n let isLoading = true\n let isError = false\n let resource: Record<string, string>\n\n const importResources = async () => {\n try {\n const module = await import(`@/i18n/${lng}/${ns}.json`)\n\n resource = module.default\n isLoading = false\n } catch (err) {\n isError = true\n isLoading = false\n }\n }\n const promise = importResources()\n return () => {\n if (isLoading) {\n // eslint-disable-next-line @typescript-eslint/only-throw-error\n throw promise // Throw the promise to indicate Suspense should suspend.\n } else if (isError) {\n throw new Error(`Error loading translation for component: ${ns}`) // Handle error\n } else {\n return resource // Return the resource when loading is complete\n }\n }\n}\n\n/**\n * Hook that allows component to load custom dictionary\n * @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers\n */\nexport const useI18n = (\n namespaces:\n | keyof CustomTypeOptions['resources']\n | Array<keyof CustomTypeOptions['resources']>\n | null,\n) => {\n //Getting our instance of i18n -> supplied by the provider set in GustoApiProvider\n const { i18n: i18nInstance } = useTranslation()\n //Abort when namespace is not provided\n if (!namespaces) return\n const nsMap = Array.isArray(namespaces) ? namespaces : [namespaces]\n for (const ns of nsMap) {\n const key = `${i18nInstance.resolvedLanguage}:${ns}`\n //Skip loading default resource if it is already in cache\n if (resourceCache.get(key) === null) {\n //If resource not in cache, initiate loading and add getter to cache\n resourceCache.put(key, loadResource({ lng: i18nInstance.resolvedLanguage, ns: ns }))\n }\n //Get resourceGetter from cache\n const resourceGetter = resourceCache.get(key)\n if (resourceGetter) {\n const resource = resourceGetter()\n i18nInstance.addResourceBundle(\n i18nInstance.resolvedLanguage ?? 'en',\n ns,\n resource,\n true,\n false,\n ) //Last argument is set to false to prevent override of keys provided by partners on GustoApiProvider level through dictionary prop\n }\n }\n}\n\n//Used by individual components to override their dictionaries with partner provided resources\nexport const useComponentDictionary = <K extends keyof Resources>(\n ns: keyof CustomTypeOptions['resources'],\n resource?: ResourceDictionary<K> | null,\n) => {\n const { i18n: i18nInstance } = useTranslation()\n if (resource) {\n for (const lang in resource) {\n i18nInstance.addResourceBundle(lang, ns, resource[lang], true, true)\n }\n }\n}\n"],"names":["defaultNS","resourceCache","LRUCache","loadResource","lng","ns","isLoading","isError","resource","promise","__variableDynamicImportRuntimeHelper","useI18n","namespaces","i18nInstance","useTranslation","nsMap","key","resourceGetter","useComponentDictionary","lang"],"mappings":";;;AAKO,MAAMA,IAAY,UAGnBC,IAAgB,IAAIC,EAAS,EAAE,GAO/BC,IAAe,CAAC,EAAE,KAAAC,IAAM,MAAM,IAAAC,QAAuC;AACzE,MAAIC,IAAY,IACZC,IAAU,IACVC;AAaJ,QAAMC,KAXkB,YAAY;AAClC,QAAI;AAGF,MAAAD,KAFe,MAAME,
|
|
1
|
+
{"version":3,"file":"I18n.js","sources":["../../src/i18n/I18n.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport type { CustomTypeOptions } from 'i18next'\nimport { LRUCache } from '@/helpers/LRUCache'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\n\nexport const defaultNS = 'common'\n\n//LRU cache holding requested resources\nconst resourceCache = new LRUCache(50)\n/**\n * Dynamic loading of translation resources - works with Suspence to prevent early access to loadable strings\n * @param lng(string): resource language\n * @param ns(string): Namespace/name of the component/resource\n * @returns Promise<Translation resource>\n */\nconst loadResource = ({ lng = 'en', ns }: { ns: string; lng?: string }) => {\n let isLoading = true\n let isError = false\n let resource: Record<string, string>\n\n const importResources = async () => {\n try {\n const module = await import(`@/i18n/${lng}/${ns}.json`)\n\n resource = module.default\n isLoading = false\n } catch (err) {\n isError = true\n isLoading = false\n }\n }\n const promise = importResources()\n return () => {\n if (isLoading) {\n // eslint-disable-next-line @typescript-eslint/only-throw-error\n throw promise // Throw the promise to indicate Suspense should suspend.\n } else if (isError) {\n throw new Error(`Error loading translation for component: ${ns}`) // Handle error\n } else {\n return resource // Return the resource when loading is complete\n }\n }\n}\n\n/**\n * Hook that allows component to load custom dictionary\n * @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers\n */\nexport const useI18n = (\n namespaces:\n | keyof CustomTypeOptions['resources']\n | Array<keyof CustomTypeOptions['resources']>\n | null,\n) => {\n //Getting our instance of i18n -> supplied by the provider set in GustoApiProvider\n const { i18n: i18nInstance } = useTranslation()\n //Abort when namespace is not provided\n if (!namespaces) return\n const nsMap = Array.isArray(namespaces) ? namespaces : [namespaces]\n for (const ns of nsMap) {\n const key = `${i18nInstance.resolvedLanguage}:${ns}`\n //Skip loading default resource if it is already in cache\n if (resourceCache.get(key) === null) {\n //If resource not in cache, initiate loading and add getter to cache\n resourceCache.put(key, loadResource({ lng: i18nInstance.resolvedLanguage, ns: ns }))\n }\n //Get resourceGetter from cache\n const resourceGetter = resourceCache.get(key)\n if (resourceGetter) {\n const resource = resourceGetter()\n i18nInstance.addResourceBundle(\n i18nInstance.resolvedLanguage ?? 'en',\n ns,\n resource,\n true,\n false,\n ) //Last argument is set to false to prevent override of keys provided by partners on GustoApiProvider level through dictionary prop\n }\n }\n}\n\n//Used by individual components to override their dictionaries with partner provided resources\nexport const useComponentDictionary = <K extends keyof Resources>(\n ns: keyof CustomTypeOptions['resources'],\n resource?: ResourceDictionary<K> | null,\n) => {\n const { i18n: i18nInstance } = useTranslation()\n if (resource) {\n for (const lang in resource) {\n i18nInstance.addResourceBundle(lang, ns, resource[lang], true, true)\n }\n }\n}\n"],"names":["defaultNS","resourceCache","LRUCache","loadResource","lng","ns","isLoading","isError","resource","promise","__variableDynamicImportRuntimeHelper","useI18n","namespaces","i18nInstance","useTranslation","nsMap","key","resourceGetter","useComponentDictionary","lang"],"mappings":";;;AAKO,MAAMA,IAAY,UAGnBC,IAAgB,IAAIC,EAAS,EAAE,GAO/BC,IAAe,CAAC,EAAE,KAAAC,IAAM,MAAM,IAAAC,QAAuC;AACzE,MAAIC,IAAY,IACZC,IAAU,IACVC;AAaJ,QAAMC,KAXkB,YAAY;AAClC,QAAI;AAGF,MAAAD,KAFe,MAAME,2kLAAA,KAAAN,CAAA,IAAAC,CAAA,SAAA,CAAA,GAEH,SAClBC,IAAY;AAAA,IACd,QAAc;AACZ,MAAAC,IAAU,IACVD,IAAY;AAAA,IACd;AAAA,EACF,GACgB;AAChB,SAAO,MAAM;AACX,QAAIA;AAEF,YAAMG;QACGF;AACT,YAAM,IAAI,MAAM,4CAA4CF,CAAE,EAAE;AAEhE,WAAOG;AAAA,EAEX;AACF,GAMaG,IAAU,CACrBC,MAIG;AAEH,QAAM,EAAE,MAAMC,EAAA,IAAiBC,EAAA;AAE/B,MAAI,CAACF,EAAY;AACjB,QAAMG,IAAQ,MAAM,QAAQH,CAAU,IAAIA,IAAa,CAACA,CAAU;AAClE,aAAWP,KAAMU,GAAO;AACtB,UAAMC,IAAM,GAAGH,EAAa,gBAAgB,IAAIR,CAAE;AAElD,IAAIJ,EAAc,IAAIe,CAAG,MAAM,QAE7Bf,EAAc,IAAIe,GAAKb,EAAa,EAAE,KAAKU,EAAa,kBAAkB,IAAAR,EAAA,CAAQ,CAAC;AAGrF,UAAMY,IAAiBhB,EAAc,IAAIe,CAAG;AAC5C,QAAIC,GAAgB;AAClB,YAAMT,IAAWS,EAAA;AACjB,MAAAJ,EAAa;AAAA,QACXA,EAAa,oBAAoB;AAAA,QACjCR;AAAA,QACAG;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IAEJ;AAAA,EACF;AACF,GAGaU,IAAyB,CACpCb,GACAG,MACG;AACH,QAAM,EAAE,MAAMK,EAAA,IAAiBC,EAAA;AAC/B,MAAIN;AACF,eAAWW,KAAQX;AACjB,MAAAK,EAAa,kBAAkBM,GAAMd,GAAIG,EAASW,CAAI,GAAG,IAAM,EAAI;AAGzE;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "Pay contractors", t = "No contractors available for payment", a = "There are no active contractors with completed onboarding. Add and onboard contractors before creating payments.", o = "Pay contractors", n = "Direct deposit payments submitted before 4pm PT on a business day will take 2 business days to complete", r = "Payment date", s = "Hours and payments", i = { contractor: "Contractor", wageType: "Wage type", paymentMethod: "Payment method", hours: "Hours", wage: "Wage", bonus: "Bonus", reimbursement: "Reimbursement", total: "Total" }, c = "N/A", d = "Totals", l = "Back", u = "Continue", y = "Edit contractor", m = "/hr", p = { fixed: "Fixed", hourly: "Hourly" }, b = { directDeposit: "Direct Deposit", check: "Check", historicalPayment: "Historical Payment" }, h = { contractorPaymentUpdated: "Pay updated for {{contractorName}}", noContractorPayments: "Please add at least one contractor payment to continue." }, f = { title: "Edit contractor pay", subtitle: `Edit contractor's hours, additional earnings, and reimbursements. Inputs not applicable to this contractor are disabled. Please click "
|
|
1
|
+
const e = "Pay contractors", t = "No contractors available for payment", a = "There are no active contractors with completed onboarding. Add and onboard contractors before creating payments.", o = "Pay contractors", n = "Direct deposit payments submitted before 4pm PT on a business day will take 2 business days to complete", r = "Payment date", s = "Hours and payments", i = { contractor: "Contractor", wageType: "Wage type", paymentMethod: "Payment method", hours: "Hours", wage: "Wage", bonus: "Bonus", reimbursement: "Reimbursement", total: "Total" }, c = "N/A", d = "Totals", l = "Back", u = "Continue", y = "Edit contractor payment", m = "/hr", p = { fixed: "Fixed", hourly: "Hourly" }, b = { directDeposit: "Direct Deposit", check: "Check", historicalPayment: "Historical Payment" }, h = { contractorPaymentUpdated: "Pay updated for {{contractorName}}", noContractorPayments: "Please add at least one contractor payment to continue." }, f = { title: "Edit contractor pay", subtitle: `Edit contractor's hours, additional earnings, and reimbursements. Inputs not applicable to this contractor are disabled. Please click "Done" to apply the change.`, hoursSection: "Hours", hoursLabel: "Hours", hoursAdornment: "hrs", fixedPaySection: "Fixed pay", wageLabel: "Wage", additionalEarningsSection: "Additional earnings", bonusLabel: "Bonus", reimbursementLabel: "Reimbursement", paymentMethodLabel: "Payment Method", totalPay: "Total pay", cancelCta: "Cancel", saveCta: "Done", paymentMethods: { check: "Check", directDeposit: "Direct deposit", historicalPayment: "Historical payment" } }, g = { title: "To make payment, wire funds by {{time}} on {{date}}", titleFallback: "Wire transfer details required", description: "We can't pay your contractors until we get your wire. It may take time to get from your bank to ours, so we recommend sending it as soon as you can.", startWireTransferCta: "Start your wire transfer", confirmationDescription: "We'll notify you once we've received your wire transfer." }, P = { title: "Payment group created successfully", message: "{{count}} contractor payment has been successfully scheduled.", message_other: "{{count}} contractor payments have been successfully scheduled.", doneCta: "Done", wireDetailsSubmittedTitle: "Wire details submitted" }, w = { breadcrumbLabel: "Submit", reviewAndSubmitTitle: "Review and submit", reviewSubtitle: "We'll debit funds on {{debitDate}}", summaryTableHeaders: { totalAmount: "Total amount", debitAmount: "Debit amount", debitAccount: "Debit account", debitDate: "Debit date", contractorPayDate: "Contractor pay date" }, paymentSummaryTitle: "Payment summary", whatYourCompanyPays: "What your company pays", contractorTableHeaders: { contractor: "Contractor", wageType: "Wage type", paymentMethod: "Payment method", hours: "Hours", wage: "Wage", bonus: "Bonus", reimbursement: "Reimbursement", total: "Total" }, totalsLabel: "Totals", editButton: "Edit", submitButton: "Submit", perHour: "/hr", wageTypes: { fixed: "Fixed", hourly: "Hourly" }, paymentMethods: { directDeposit: "Direct Deposit", check: "Check", historicalPayment: "Historical Payment" }, alerts: { submitPaymentsDeadline: "To pay your contractors by {{checkDate}}, submit payments by {{debitDate}}." }, naDebitAccount: "N/A", submissionBlockers: { genericBlockerTitle: "Submission blocked", genericBlockerMessage: "This payment cannot be submitted. Please contact support for assistance.", fastAchOptions: { description: "Payment can still be funded by selecting one of the options below. The selected funding method will only be used for this payment and will not apply to future payments.", fundingOptionsLabel: "Funding options", wireLabel: "Wire funds", wireFastestBadge: "Fastest", wireDescription: "Pay your contractors on time by sending a wire transfer. We'll provide instructions on the next step.", directDepositLabel: "Switch to 4-day direct deposit", directDepositDescription: "Delay contractor pay date by four days and process using regular debits.", contractorPayDate: "Contractor pay date: {{date}}" }, fast_ach_threshold_exceeded: { title: "You have exceeded the limit at which you can process 2-day contractor payments." }, needs_earned_access_for_fast_ach: { title: "You have not yet earned access to faster contractor payments." } } }, D = {
|
|
2
2
|
title: e,
|
|
3
3
|
emptyTableTitle: t,
|
|
4
4
|
emptyTableDescription: a,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const e = { title: "Employee documents", description: "During onboarding, employees will sign these documents.", documentsIncludedLabel: "We automatically include", taxWithholdingLabel: "Tax withholding (Form W-4)", taxWithholdingDescription: "Record employee federal withholding allowance", directDepositLabel: "Direct deposit authorization", directDepositDescription: "Lets you pay the employee via direct deposit", includeI9Heading: "Include form I-9?", includeI9Label: "Employment eligibility (Form I-9)", includeI9Description: "Verifies the employee's identity and work eligibility (must be completed onsite).", alerts: { includedTitle: "Verifying Form I-9 remotely?", includedDescription: `The federal government requires remote verification through a video call. You'll need to complete the verification process outside this application. <Link href="https://support.gusto.com/article/100165395100000/Complete-Form-I-9-and-E-Verify-for-new-hires" target="_blank">Read the instructions</Link>.`, includedDescription2: "To avoid duplicate I-9 forms, deselect “employment eligibility” above.", notIncludedTitle: "Have you completed the form I-9 already?", notIncludedDescription: 'If you are verifying the employee’s identity in person, select Form I-9 above. If verifying remotely, read <Link href="https://support.gusto.com/article/100165395100000/Complete-Form-I-9-and-E-Verify-for-new-hires" target="_blank">these instructions</Link> .' } }, i = { title: "Employee documents", description: "You will sign all these forms for your employee manually.", employmentEligibilityLabel: "Employment eligibility (Form I-9)", employmentEligibilityDescription: "Verifies the employee's identity and work eligibility (must be completed onsite).", taxWithholdingLabel: "Tax withholding (Form W-4)", taxWithholdingDescription: "Record employee federal withholding allowance", directDepositLabel: "Direct deposit authorization", directDepositDescription: "Lets you pay the employee via direct deposit", alertTitle: "The government requires you to have Form I-9 and Form W-2 completed and signed." }, t = "Continue", o = {
|
|
2
|
+
selfOnboarding: e,
|
|
3
|
+
notSelfOnboarding: i,
|
|
4
|
+
continueCta: t
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
t as continueCta,
|
|
8
|
+
o as default,
|
|
9
|
+
i as notSelfOnboarding,
|
|
10
|
+
e as selfOnboarding
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Employee.EmployeeDocuments.json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Employee.EmployeeDocuments.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
const e = "Employment Eligibility",
|
|
1
|
+
const e = "Employment Eligibility", n = 'The federal government requires verification of your eligibility to work in the United States. For more information, see <formI9Link href="https://www.uscis.gov/i-9" target="_blank">Form I-9</formI9Link>', i = { label: "I am...", description: "This information will be used to fill out Form I-9, which proves you are legally allowed to work in the United States.", placeholder: "Select status...", options: { citizen: "a citizen of the United States", permanent_resident: "a lawful permanent resident", noncitizen: "a noncitizen national", alien: "a noncitizen authorized to work" } }, t = { citizen: "A citizen is someone who was born or naturalized in the U.S. or born abroad to U.S. citizen parent(s) or who has derived citizenship through a parent's naturalization based on legal requirements.", permanent_resident: "A lawful permanent resident is someone who is not a US citizen and who resides under legally recognized and lawfully recorded permanent residence as an immigrant.", noncitizen: "A noncitizen national is someone born in American Samoa, certain former citizens of the 'former Trust Territory of the Pacific Islands, and certain children of noncitizen nationals born abroad.", alien: "A noncitizen authorized to work includes anyone who is authorized to work in the United States but is not a US citizen, US national or lawful permanent resident." }, o = { label: "Authorized to work until" }, r = { label: "Authorization document", options: { uscis_alien_registration_number: "USCIS or A-Number", form_i94: "Form I-94", foreign_passport: "Foreign passport" } }, a = { uscis_alien_registration_number: { label: "USCIS or A-Number", description: 'Fill in a 7-9 digit USCIS Number or A-Number (include the "A")', placeholder: "********" }, form_i94: { label: "Form I-94 admission number", description: "Fill in your 11-character I-94 admission number", placeholder: "***********" }, foreign_passport: { label: "Foreign passport number", placeholder: "**********" } }, s = { label: "Country of Issuance", description: "The country that issues your passport", placeholder: "Search or type a country..." }, l = "Continue", c = {
|
|
2
2
|
title: e,
|
|
3
|
-
subtitle:
|
|
4
|
-
select:
|
|
3
|
+
subtitle: n,
|
|
4
|
+
select: i,
|
|
5
5
|
statusDescriptions: t,
|
|
6
|
-
|
|
6
|
+
expirationDate: o,
|
|
7
7
|
authorizationDocument: r,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
countryOfIssuance: u,
|
|
12
|
-
submit: c
|
|
8
|
+
documentNumber: a,
|
|
9
|
+
country: s,
|
|
10
|
+
submit: l
|
|
13
11
|
};
|
|
14
12
|
export {
|
|
15
13
|
r as authorizationDocument,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
n as select,
|
|
14
|
+
s as country,
|
|
15
|
+
c as default,
|
|
16
|
+
a as documentNumber,
|
|
17
|
+
o as expirationDate,
|
|
18
|
+
i as select,
|
|
22
19
|
t as statusDescriptions,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
e as title
|
|
26
|
-
a as uscisNumber
|
|
20
|
+
l as submit,
|
|
21
|
+
n as subtitle,
|
|
22
|
+
e as title
|
|
27
23
|
};
|
|
28
24
|
//# sourceMappingURL=Employee.EmploymentEligibility.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Employee.EmploymentEligibility.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Employee.EmploymentEligibility.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const e = "Sign I-9 document", r = "Form I-9 records your authorization to work in the United States. <viewFormLink>View form.</viewFormLink>", t = "View document", o = "Download document", a = "Signature", n = "Type your full, legal name.", i = "Signature is required", s = "I agree to electronically sign this form and confirm all information entered is correct to the best of my knowledge. I am aware that federal law provides for imprisonment and/or fines for false statements or use of false documents in connection with the completion of this form.", p = "You must agree to sign electronically", c = "Did you use a preparer/translator?", l = "No, I completed this myself", m = "Yes, I used a preparer/translator", u = "Your preparer/translator needs to complete the section below.", d = "Preparer and/or translator certification", f = "First name", g = "First name is required", S = "Last name", y = "Last name is required", L = "Street 1", w = "Street address is required", h = "Street 2 (optional)", b = "City", C = "City is required", E = "State", I = "State is required", V = "Zip", q = "Zip is required", F = "Signature", v = "Type your full, legal name.", N = "Signature is required", k = "I agree to electronically sign this form and confirm all information entered is correct to the best of my knowledge. I am aware that federal law provides for imprisonment and/or fines for false statements or use of false documents in connection with the completion of this form.", D = "You must agree to sign electronically", Y = "Add preparer", Z = "Remove preparer", P = "Cancel", T = "Sign", x = {
|
|
2
|
+
title: e,
|
|
3
|
+
description: r,
|
|
4
|
+
viewDocumentCta: t,
|
|
5
|
+
downloadInstructions: o,
|
|
6
|
+
signatureLabel: a,
|
|
7
|
+
signatureDescription: n,
|
|
8
|
+
signatureError: i,
|
|
9
|
+
confirmationLabel: s,
|
|
10
|
+
confirmationError: p,
|
|
11
|
+
preparerQuestion: c,
|
|
12
|
+
preparerNo: l,
|
|
13
|
+
preparerYes: m,
|
|
14
|
+
preparerNote: u,
|
|
15
|
+
preparerSectionTitle: d,
|
|
16
|
+
preparerFirstNameLabel: f,
|
|
17
|
+
preparerFirstNameError: g,
|
|
18
|
+
preparerLastNameLabel: S,
|
|
19
|
+
preparerLastNameError: y,
|
|
20
|
+
preparerStreet1Label: L,
|
|
21
|
+
preparerStreet1Error: w,
|
|
22
|
+
preparerStreet2Label: h,
|
|
23
|
+
preparerCityLabel: b,
|
|
24
|
+
preparerCityError: C,
|
|
25
|
+
preparerStateLabel: E,
|
|
26
|
+
preparerStateError: I,
|
|
27
|
+
preparerZipLabel: "Zip",
|
|
28
|
+
preparerZipError: q,
|
|
29
|
+
preparerSignatureLabel: F,
|
|
30
|
+
preparerSignatureDescription: v,
|
|
31
|
+
preparerSignatureError: N,
|
|
32
|
+
preparerConfirmationLabel: k,
|
|
33
|
+
preparerConfirmationError: D,
|
|
34
|
+
addPreparerCta: Y,
|
|
35
|
+
removePreparerCta: Z,
|
|
36
|
+
cancelCta: P,
|
|
37
|
+
signCta: T
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
Y as addPreparerCta,
|
|
41
|
+
P as cancelCta,
|
|
42
|
+
p as confirmationError,
|
|
43
|
+
s as confirmationLabel,
|
|
44
|
+
x as default,
|
|
45
|
+
r as description,
|
|
46
|
+
o as downloadInstructions,
|
|
47
|
+
C as preparerCityError,
|
|
48
|
+
b as preparerCityLabel,
|
|
49
|
+
D as preparerConfirmationError,
|
|
50
|
+
k as preparerConfirmationLabel,
|
|
51
|
+
g as preparerFirstNameError,
|
|
52
|
+
f as preparerFirstNameLabel,
|
|
53
|
+
y as preparerLastNameError,
|
|
54
|
+
S as preparerLastNameLabel,
|
|
55
|
+
l as preparerNo,
|
|
56
|
+
u as preparerNote,
|
|
57
|
+
c as preparerQuestion,
|
|
58
|
+
d as preparerSectionTitle,
|
|
59
|
+
v as preparerSignatureDescription,
|
|
60
|
+
N as preparerSignatureError,
|
|
61
|
+
F as preparerSignatureLabel,
|
|
62
|
+
I as preparerStateError,
|
|
63
|
+
E as preparerStateLabel,
|
|
64
|
+
w as preparerStreet1Error,
|
|
65
|
+
L as preparerStreet1Label,
|
|
66
|
+
h as preparerStreet2Label,
|
|
67
|
+
m as preparerYes,
|
|
68
|
+
q as preparerZipError,
|
|
69
|
+
V as preparerZipLabel,
|
|
70
|
+
Z as removePreparerCta,
|
|
71
|
+
T as signCta,
|
|
72
|
+
n as signatureDescription,
|
|
73
|
+
i as signatureError,
|
|
74
|
+
a as signatureLabel,
|
|
75
|
+
e as title,
|
|
76
|
+
t as viewDocumentCta
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=Employee.I9SignatureForm.json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Employee.I9SignatureForm.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payroll.OffCycle.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const e = "Check-only payroll", t = "Select this option if all employees will be paid by check only. This allows you to set the check date to today or any future date.", a = "Start date", o = "End date", r = "Payment date", d = { startDateRequired: "Start date is required", endDateRequired: "End date is required", checkDateRequired: "Payment date is required", endDateAfterStart: "End date must be on or after start date", startDateNotFuture: "Start date cannot be in the future for correction payrolls", checkDateAchLeadTime: "Payment date must be at least 2 business days from today for direct deposit" }, s = {
|
|
2
|
+
checkOnlyLabel: e,
|
|
3
|
+
checkOnlyDescription: t,
|
|
4
|
+
startDateLabel: a,
|
|
5
|
+
endDateLabel: o,
|
|
6
|
+
checkDateLabel: r,
|
|
7
|
+
validations: d
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
r as checkDateLabel,
|
|
11
|
+
t as checkOnlyDescription,
|
|
12
|
+
e as checkOnlyLabel,
|
|
13
|
+
s as default,
|
|
14
|
+
o as endDateLabel,
|
|
15
|
+
a as startDateLabel,
|
|
16
|
+
d as validations
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=Payroll.OffCyclePayPeriodDateForm.json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payroll.OffCyclePayPeriodDateForm.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "Edit Payroll", a = "
|
|
1
|
+
const e = "Edit Payroll", a = "{{payrollType}} payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", t = "Edit Payroll for {{startDate}} - {{endDate}}", o = "Save and exit", l = "Calculate and review", i = "Calculate and review", n = "Hours and additional earnings", s = "Review and update your employee's hours, reimbursements, and additional earnings below.", r = "Employee compensations", p = { employees: "Employees", hours: "Hours", timeOff: "Time off", additionalEarnings: "Additional earnings", reimbursements: "Reimbursements", totalPay: "Total pay" }, d = "Skipped", y = { edit: "Edit", skip: "Skip employee", unskip: "Unskip employee" }, c = { progressSaved: "Your progress has been saved", directDepositDeadline: "To pay your employees with direct deposit by {{payDate}}, you'll need to run payroll by {{time}} on {{date}}.", directDepositDeadlineText: "Make sure to submit before the deadline to ensure timely payments.", payrollLate: "Your original pay date was {{initialCheckDate}}", payrollLateText: "Run payroll before {{time}} on {{date}} to pay your employees on {{newCheckDate}}.", payrollDeadline: { label: "Payroll Deadline", message: "To pay your employees with direct deposit by the check date, you'll need to run payroll by the deadline." }, skippedEmployees: { label: "Skipped Employees", employeeAddressNotVerified: "Employee address not verified" }, employeeUpdated: { label: "{{employeeName}} updated successfully" } }, u = "Preparing payroll...", m = "This may take a minute or two. You can navigate away while this happens.", g = "Calculating payroll...", h = "This may take a minute or two. You can navigate away while this happens.", b = "Calculating payroll...", D = {
|
|
2
2
|
pageTitle: e,
|
|
3
3
|
description: a,
|
|
4
4
|
breadcrumbLabel: t,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "Submit", a = "Back", t = "Save and exit", o = "Review payroll", l = "Payroll summary", s = "
|
|
1
|
+
const e = "Submit", a = "Back", t = "Save and exit", o = "Review payroll", l = "Payroll summary", s = "{{payrollType}} payroll for <dateWrapper>{{startDate}} - {{endDate}}</dateWrapper>", n = "Submit", i = "Edit", r = "Cancel payroll", y = "Cancel {{startDate}} - {{endDate}} payroll?", c = "Any changes you have made to this payroll will be saved.", p = "Run this payroll by {{deadline}} to ensure your employees are paid on time.", d = " Yes, cancel payroll", m = "No, go back", u = "View payroll receipt", b = "Download paystub pdf", h = "Submitting payroll...", T = "This may take a minute or two. You can navigate away while this happens.", D = "Cancelling payroll...", g = "This payroll has been cancelled.", w = { payrollNotCalculated: "Payroll is not calculated", directDepositDeadline: "To pay your employees with direct deposit by {{payDate}}, you'll need to run payroll by {{time}} on {{date}}", paystubPdfError: "There was an issue generating the paystub PDF. Please try again later.", checkPaymentWarning_one: "You noted {{count}} employee who should be paid by check.", checkPaymentWarning_other: "You noted {{count}} employees who should be paid by check.", checkPaymentWarningDescription: "Employees with this payment method will need their checks delivered to them.", payrollProcessedTitle: "Payroll submitted", payrollProcessedMessage: "{{amount}} will be debited on {{date}}. Make sure you have these funds available.", payrollProcessingFailedTitle: "There was an error submitting payroll", payrollProcessingFailedCtaLabel: "Recalculate payroll", wireDetailsSubmittedTitle: "Wire details submitted", wireDetailsSubmittedMessage: "Once we receive the funds from your bank we'll pay your team on {{checkDate}}" }, f = "Payroll Summary", P = "Payroll summary (Wire funds)", k = "Payroll summary (4-day direct deposit)", x = "Payroll summary table", C = { label: "Payroll details", companyPaysTab: "Company pays", companyPaysTable: "Company pays by employee", hoursWorkedTab: "Hours worked", hoursWorkedTable: "Hours worked by employee", employeeTakeHomeTab: "Employee take home", employeeTakeHomeTable: "Employee take home by employee", taxesTab: "Taxed and debited", taxesTable: "Taxes breakdown", debitedTable: "Debited totals by company" }, v = { totalPayroll: "Total payroll", debitAmount: "Debit amount", wireAmount: "Wire amount", wireTransferDeadline: "Wire transfer deadline", employees: "Employees", grossPay: "Gross Pay", reimbursements: "Reimbursements", debitAccount: "Debit account", debitDate: "Debit date", employeePayDate: "Employee pay date", companyTaxes: "Company taxes", companyBenefits: "Company benefits", companyPays: "Company pays", compensationType: "Compensation type", regular: "Regular", overtime: "Overtime (1.5x)", doubleOT: "Overtime (2x)", timeOff: "Paid time off", totalHours: "Total hours", paymentType: "Payment type", employeeTaxes: "Employee taxes", employeeBenefits: "Employee benefits", payment: "Payment", deductions: "Deductions", taxDescription: "Tax description", byYourEmployees: "By your employees", byYourCompany: "By your company", debitedByGusto: "Debited by Gusto", taxesTotal: "Total", paystub: "Paystub", footerTotalsLabel: "Totals", footerTotalsDescription: "All employees in this payroll" }, S = "Totals", E = "Direct deposits", L = "Reimbursements", W = "Garnishments", _ = "Taxes (Employees and Employers)", B = { exempt: "Salaried / Exempt", nonexempt: "Hourly / Nonexempt" }, F = { genericBlockerTitle: "Submission blocked", genericBlockerMessage: "This payroll cannot be submitted. Please contact support for assistance.", fastAchOptions: { description: "Payroll can still be funded by selecting one of the options below. The selected funding method will only be used for this cycle and will not apply to future payroll.", fundingOptionsLabel: "Funding options", wireLabel: "Wire funds", wireFastestBadge: "Fastest", wireDescription: "Pay your employees on time by sending a wire transfer. We'll provide instructions on the next step.", directDepositLabel: "Switch to 4-day direct deposit", directDepositDescription: "Delay your employees pay date by four days and process using regular debits.", employeePayDate: "Employee pay date: {{date}}" }, fast_ach_threshold_exceeded: { title: "You have exceeded the limit at which you can process 2-day payroll." }, needs_earned_access_for_fast_ach: { title: "You have not yet earned access to faster payroll." } }, O = {
|
|
2
2
|
breadcrumbLabel: e,
|
|
3
3
|
backCta: a,
|
|
4
4
|
exitFlowCta: t,
|
|
@@ -50,6 +50,8 @@ export declare const employeeEvents: {
|
|
|
50
50
|
readonly EMPLOYEE_FORMS_DONE: "employee/forms/done";
|
|
51
51
|
readonly EMPLOYEE_ONBOARDING_STATUS_UPDATED: "employee/onboardingStatus/updated";
|
|
52
52
|
readonly EMPLOYEE_EMPLOYMENT_ELIGIBILITY_DONE: "employee/employmentEligibility/done";
|
|
53
|
+
readonly EMPLOYEE_ONBOARDING_DOCUMENTS_CONFIG_UPDATED: "employee/onboardingDocumentsConfig/updated";
|
|
54
|
+
readonly EMPLOYEE_DOCUMENTS_DONE: "employee/documents/done";
|
|
53
55
|
};
|
|
54
56
|
export declare const companyEvents: {
|
|
55
57
|
readonly COMPANY_INDUSTRY: "company/industry";
|
|
@@ -175,7 +177,11 @@ export declare const recoveryCasesEvents: {
|
|
|
175
177
|
readonly RECOVERY_CASE_RESUBMIT_CANCEL: "recoveryCase/resubmit/cancel";
|
|
176
178
|
readonly RECOVERY_CASE_RESUBMIT_DONE: "recoveryCase/resubmit/done";
|
|
177
179
|
};
|
|
180
|
+
export declare const offCycleEvents: {
|
|
181
|
+
readonly OFF_CYCLE_CREATED: "offCycle/created";
|
|
182
|
+
};
|
|
178
183
|
export declare const componentEvents: {
|
|
184
|
+
readonly OFF_CYCLE_CREATED: "offCycle/created";
|
|
179
185
|
readonly CONTRACTOR_PAYMENT_CREATE: "contractor/payments/create";
|
|
180
186
|
readonly CONTRACTOR_PAYMENT_EDIT: "contractor/payments/edit";
|
|
181
187
|
readonly CONTRACTOR_PAYMENT_UPDATE: "contractor/payments/update";
|
|
@@ -335,6 +341,8 @@ export declare const componentEvents: {
|
|
|
335
341
|
readonly EMPLOYEE_FORMS_DONE: "employee/forms/done";
|
|
336
342
|
readonly EMPLOYEE_ONBOARDING_STATUS_UPDATED: "employee/onboardingStatus/updated";
|
|
337
343
|
readonly EMPLOYEE_EMPLOYMENT_ELIGIBILITY_DONE: "employee/employmentEligibility/done";
|
|
344
|
+
readonly EMPLOYEE_ONBOARDING_DOCUMENTS_CONFIG_UPDATED: "employee/onboardingDocumentsConfig/updated";
|
|
345
|
+
readonly EMPLOYEE_DOCUMENTS_DONE: "employee/documents/done";
|
|
338
346
|
readonly ROBOT_MACHINE_DONE: "done";
|
|
339
347
|
readonly ERROR: "ERROR";
|
|
340
348
|
readonly CANCEL: "CANCEL";
|
|
@@ -389,6 +397,7 @@ export declare const HOURS_PER_PAY_PERIOD_MONTHLY = 173.333333;
|
|
|
389
397
|
export declare const HOURS_PER_PAY_PERIOD_QUARTERLY = 520;
|
|
390
398
|
export declare const HOURS_PER_PAY_PERIOD_SEMIANNUALLY = 1040;
|
|
391
399
|
export declare const HOURS_PER_PAY_PERIOD_ANNUALLY = 2080;
|
|
400
|
+
export declare const I9_FORM_NAME = "US_I-9";
|
|
392
401
|
export declare const STATES_ABBR: readonly ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"];
|
|
393
402
|
export declare const SIGNATORY_TITLES: {
|
|
394
403
|
readonly OWNER: "owner";
|