@gusto/embedded-react-sdk 0.24.0 → 0.25.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 +80 -0
- package/dist/assets/icons/slash-circle.svg.js +10 -0
- package/dist/assets/icons/slash-circle.svg.js.map +1 -0
- package/dist/components/Base/Base.d.ts +1 -1
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Common/Fields/FileInputField/FileInputField.d.ts +5 -0
- package/dist/components/Common/Fields/FileInputField/FileInputField.js +34 -0
- package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -0
- package/dist/components/Common/Fields/FileInputField/index.d.ts +2 -0
- package/dist/components/Common/PaginationControl/PaginationControl.js +41 -40
- package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
- package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -0
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/FileInput/FileInput.d.ts +2 -0
- package/dist/components/Common/UI/FileInput/FileInput.js +151 -0
- package/dist/components/Common/UI/FileInput/FileInput.js.map +1 -0
- package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +34 -0
- package/dist/components/Common/UI/FileInput/FileInput.module.scss.js.map +1 -0
- package/dist/components/Common/UI/FileInput/FileInputTypes.d.ts +45 -0
- package/dist/components/Common/UI/FileInput/FileInputTypes.js +8 -0
- package/dist/components/Common/UI/FileInput/FileInputTypes.js.map +1 -0
- package/dist/components/Common/UI/FileInput/index.d.ts +4 -0
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Common/UI/TextInput/TextInput.js +27 -23
- package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
- package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
- package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +12 -12
- 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/InviteSignatoryForm.js +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 +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 +1 -1
- 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/useSignatureForm.js +4 -3
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +9 -8
- 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/Locations/LocationForm/Form.js +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/List.js +35 -33
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +29 -28
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +1 -0
- 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/context.js +4 -3
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
- 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/Form.js +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 +16 -15
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- 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 +61 -59
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +24 -22
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +38 -19
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +3 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +26 -25
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +2 -0
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +25 -19
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +1 -0
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +86 -56
- package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.d.ts +1 -2
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +46 -21
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +6 -15
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +115 -99
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js +8 -0
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.d.ts +8 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +51 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +11 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +157 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +22 -0
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +40 -43
- 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/Employee/Compensation/Edit.js +14 -14
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +10 -9
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +11 -10
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +11 -10
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -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/SignatureForm/useSignatureForm.js +4 -3
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeList.js +57 -56
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +34 -32
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +1 -0
- 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/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 +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
- package/dist/components/Employee/Profile/useProfile.js +4 -3
- package/dist/components/Employee/Profile/useProfile.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/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +9 -9
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +15 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js +142 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +18 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js.map +1 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestForm/index.d.ts +2 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.d.ts +7 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js +88 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestList/index.d.ts +2 -0
- package/dist/components/Payroll/InformationRequests/InformationRequests.d.ts +6 -0
- package/dist/components/Payroll/InformationRequests/InformationRequests.js +55 -0
- package/dist/components/Payroll/InformationRequests/InformationRequests.js.map +1 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.d.ts +19 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.js +20 -0
- package/dist/components/Payroll/InformationRequests/InformationRequestsComponents.js.map +1 -0
- package/dist/components/Payroll/InformationRequests/index.d.ts +3 -0
- package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.d.ts +13 -0
- package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.js +47 -0
- package/dist/components/Payroll/InformationRequests/informationRequestsStateMachine.js.map +1 -0
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +116 -130
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +5 -2
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +107 -99
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js +2 -4
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +21 -0
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +105 -0
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -0
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +41 -37
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -4
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +137 -131
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +16 -15
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +174 -106
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +28 -28
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +2 -2
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +85 -104
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +24 -20
- package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +2 -0
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +51 -46
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.d.ts +2 -0
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +111 -45
- package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +136 -125
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +8 -4
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +117 -110
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +4 -2
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +282 -278
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.d.ts +6 -0
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js +5 -0
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +6 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +55 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.d.ts +19 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js +19 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.d.ts +7 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +73 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js +10 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/index.d.ts +2 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.d.ts +14 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +46 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -0
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/index.d.ts +2 -0
- package/dist/components/Payroll/RecoveryCases/index.d.ts +3 -0
- package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.d.ts +13 -0
- package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js +47 -0
- package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js.map +1 -0
- package/dist/components/Payroll/helpers.d.ts +12 -0
- package/dist/components/Payroll/helpers.js +129 -117
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +2 -0
- package/dist/components/Payroll/index.js +18 -14
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.d.ts +4 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +43 -31
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +27 -25
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
- package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +5 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +17 -15
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
- package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js +3 -3
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/helpers/dateFormatting.d.ts +1 -0
- package/dist/helpers/dateFormatting.js +1 -0
- package/dist/helpers/dateFormatting.js.map +1 -1
- package/dist/helpers/formattedStrings.d.ts +1 -0
- package/dist/helpers/formattedStrings.js +23 -18
- package/dist/helpers/formattedStrings.js.map +1 -1
- package/dist/helpers/responsive.js +1 -1
- package/dist/helpers/responsive.js.map +1 -1
- package/dist/i18n/I18n.js +3 -3
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +36 -32
- package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
- package/dist/i18n/en/Contractor.Payments.PaymentHistory.json.js +11 -11
- package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js +28 -0
- package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js.map +1 -0
- package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js +14 -14
- package/dist/i18n/en/Payroll.InformationRequestForm.json.js +18 -0
- package/dist/i18n/en/Payroll.InformationRequestForm.json.js.map +1 -0
- package/dist/i18n/en/Payroll.InformationRequestList.json.js +18 -0
- package/dist/i18n/en/Payroll.InformationRequestList.json.js.map +1 -0
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +27 -21
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollHistory.json.js +6 -6
- package/dist/i18n/en/Payroll.PayrollLanding.json.js +5 -3
- package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollOverview.json.js +32 -28
- package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
- package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +14 -0
- package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -0
- package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js +8 -0
- package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js.map +1 -0
- package/dist/i18n/en/common.json.d.ts +6 -0
- package/dist/i18n/en/common.json.js +4 -2
- package/dist/i18n/en/common.json.js.map +1 -1
- package/dist/shared/constants.d.ts +25 -1
- package/dist/shared/constants.js +72 -55
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +120 -3
- package/package.json +31 -20
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { state as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { state as m, transition as n, reduce as r } from "robot3";
|
|
2
|
+
import { getContractorDisplayName as y } from "../CreatePayment/helpers.js";
|
|
3
|
+
import { PaymentStatementContextual as p, PaymentListContextual as c, CreatePaymentContextual as d, PaymentHistoryContextual as i } from "./PaymentFlowComponents.js";
|
|
4
|
+
import { componentEvents as o } from "../../../../shared/constants.js";
|
|
5
|
+
import { updateBreadcrumbs as a } from "../../../../helpers/breadcrumbHelpers.js";
|
|
6
|
+
import { createBreadcrumbNavigateTransition as u } from "../../../Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js";
|
|
7
|
+
const E = {
|
|
7
8
|
landing: {
|
|
8
9
|
parent: null,
|
|
9
10
|
item: {
|
|
10
11
|
id: "landing",
|
|
11
12
|
label: "breadcrumbLabel",
|
|
12
13
|
namespace: "Contractor.Payments.PaymentsList",
|
|
13
|
-
onNavigate: ((
|
|
14
|
-
...
|
|
14
|
+
onNavigate: ((t) => ({
|
|
15
|
+
...t,
|
|
15
16
|
currentBreadcrumb: "landing",
|
|
16
17
|
progressBarType: null,
|
|
17
18
|
component: c
|
|
@@ -24,86 +25,76 @@ const v = {
|
|
|
24
25
|
id: "createPayment",
|
|
25
26
|
label: "breadcrumbLabel",
|
|
26
27
|
namespace: "Contractor.Payments.CreatePayment",
|
|
27
|
-
onNavigate: ((
|
|
28
|
-
...
|
|
29
|
-
// component: PayrollConfigurationContextual,
|
|
28
|
+
onNavigate: ((t) => ({
|
|
29
|
+
...a("createPayment", t)
|
|
30
30
|
}))
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
|
|
34
|
-
parent: "
|
|
33
|
+
history: {
|
|
34
|
+
parent: "landing",
|
|
35
35
|
item: {
|
|
36
|
-
id: "
|
|
36
|
+
id: "history",
|
|
37
37
|
label: "breadcrumbLabel",
|
|
38
|
-
namespace: "Contractor.Payments.
|
|
39
|
-
onNavigate: ((
|
|
40
|
-
...
|
|
41
|
-
|
|
42
|
-
alerts: void 0
|
|
38
|
+
namespace: "Contractor.Payments.PaymentHistory",
|
|
39
|
+
onNavigate: ((t) => ({
|
|
40
|
+
...a("history", t),
|
|
41
|
+
component: i
|
|
43
42
|
}))
|
|
44
43
|
}
|
|
45
44
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
parent: "createPayment",
|
|
49
|
-
item: {
|
|
50
|
-
id: "editPayment",
|
|
51
|
-
label: "breadcrumbLabel",
|
|
52
|
-
namespace: "Contractor.Payments.EditPayment"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
history: {
|
|
56
|
-
parent: "landing",
|
|
45
|
+
statement: {
|
|
46
|
+
parent: "history",
|
|
57
47
|
item: {
|
|
58
|
-
id: "
|
|
48
|
+
id: "statement",
|
|
59
49
|
label: "breadcrumbLabel",
|
|
60
|
-
namespace: "Contractor.Payments.
|
|
50
|
+
namespace: "Contractor.Payments.PaymentStatement"
|
|
61
51
|
}
|
|
62
52
|
}
|
|
63
|
-
},
|
|
64
|
-
landing:
|
|
53
|
+
}, s = u(), R = {
|
|
54
|
+
landing: m(
|
|
65
55
|
n(
|
|
66
|
-
|
|
56
|
+
o.CONTRACTOR_PAYMENT_CREATE,
|
|
67
57
|
"createPayment",
|
|
68
|
-
|
|
69
|
-
(
|
|
70
|
-
...
|
|
71
|
-
component:
|
|
58
|
+
r(
|
|
59
|
+
(t, e) => ({
|
|
60
|
+
...a("createPayment", t),
|
|
61
|
+
component: d,
|
|
72
62
|
progressBarType: "breadcrumbs",
|
|
73
63
|
alerts: void 0
|
|
74
64
|
})
|
|
75
65
|
)
|
|
76
66
|
),
|
|
77
67
|
n(
|
|
78
|
-
|
|
68
|
+
o.CONTRACTOR_PAYMENT_VIEW,
|
|
79
69
|
"history",
|
|
80
|
-
|
|
81
|
-
(
|
|
82
|
-
...
|
|
83
|
-
component:
|
|
84
|
-
currentPaymentId:
|
|
70
|
+
r(
|
|
71
|
+
(t, e) => ({
|
|
72
|
+
...a("history", t),
|
|
73
|
+
component: i,
|
|
74
|
+
currentPaymentId: e.payload.paymentId,
|
|
85
75
|
progressBarType: "breadcrumbs",
|
|
86
76
|
alerts: void 0
|
|
87
77
|
})
|
|
88
78
|
)
|
|
89
79
|
)
|
|
90
80
|
),
|
|
91
|
-
createPayment:
|
|
81
|
+
createPayment: m(
|
|
92
82
|
n(
|
|
93
|
-
|
|
83
|
+
o.CONTRACTOR_PAYMENT_CREATED,
|
|
94
84
|
"landing",
|
|
95
|
-
|
|
96
|
-
(
|
|
97
|
-
const
|
|
85
|
+
r(
|
|
86
|
+
(t, e) => {
|
|
87
|
+
const l = e.payload.contractorPayments?.length || 0;
|
|
98
88
|
return {
|
|
99
|
-
...
|
|
89
|
+
...a("landing", t),
|
|
90
|
+
progressBarType: null,
|
|
100
91
|
component: c,
|
|
101
92
|
alerts: [
|
|
102
93
|
{
|
|
103
94
|
type: "success",
|
|
104
95
|
title: "paymentCreatedSuccessfully",
|
|
105
96
|
translationParams: {
|
|
106
|
-
count:
|
|
97
|
+
count: l
|
|
107
98
|
}
|
|
108
99
|
}
|
|
109
100
|
]
|
|
@@ -111,12 +102,51 @@ const v = {
|
|
|
111
102
|
}
|
|
112
103
|
)
|
|
113
104
|
),
|
|
114
|
-
|
|
105
|
+
s("landing")
|
|
106
|
+
),
|
|
107
|
+
history: m(
|
|
108
|
+
n(
|
|
109
|
+
o.CONTRACTOR_PAYMENT_VIEW_DETAILS,
|
|
110
|
+
"statement",
|
|
111
|
+
r(
|
|
112
|
+
(t, e) => ({
|
|
113
|
+
...a("statement", t, {
|
|
114
|
+
contractorName: y(e.payload.contractor)
|
|
115
|
+
}),
|
|
116
|
+
component: p,
|
|
117
|
+
currentContractorUuid: e.payload.contractor?.uuid,
|
|
118
|
+
currentPaymentId: e.payload.paymentGroupId,
|
|
119
|
+
progressBarType: "breadcrumbs",
|
|
120
|
+
alerts: void 0
|
|
121
|
+
})
|
|
122
|
+
)
|
|
123
|
+
),
|
|
124
|
+
n(
|
|
125
|
+
o.CONTRACTOR_PAYMENT_CANCEL,
|
|
126
|
+
"landing",
|
|
127
|
+
r(
|
|
128
|
+
(t, e) => ({
|
|
129
|
+
...a("landing", t),
|
|
130
|
+
progressBarType: null,
|
|
131
|
+
component: c,
|
|
132
|
+
alerts: [
|
|
133
|
+
{
|
|
134
|
+
type: "success",
|
|
135
|
+
title: "paymentCancelledSuccessfully"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
})
|
|
139
|
+
)
|
|
140
|
+
),
|
|
141
|
+
s("landing")
|
|
115
142
|
),
|
|
116
|
-
|
|
143
|
+
statement: m(
|
|
144
|
+
s("landing"),
|
|
145
|
+
s("history")
|
|
146
|
+
)
|
|
117
147
|
};
|
|
118
148
|
export {
|
|
119
|
-
|
|
120
|
-
|
|
149
|
+
E as paymentFlowBreadcrumbsNodes,
|
|
150
|
+
R as paymentMachine
|
|
121
151
|
};
|
|
122
152
|
//# sourceMappingURL=paymentStateMachine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentStateMachine.js","sources":["../../../../../src/components/Contractor/Payments/PaymentFlow/paymentStateMachine.ts"],"sourcesContent":["import { reduce, state, transition } from 'robot3'\nimport type { ContractorPaymentGroup } from '@gusto/embedded-api/models/components/contractorpaymentgroup'\nimport {\n CreatePaymentContextual,\n type PaymentFlowContextInterface,\n PaymentHistoryContextual,\n PaymentListContextual,\n} from './PaymentFlowComponents'\nimport { componentEvents } from '@/shared/constants'\nimport type { MachineEventType, MachineTransition } from '@/types/Helpers'\nimport { updateBreadcrumbs } from '@/helpers/breadcrumbHelpers'\nimport type { BreadcrumbNodes } from '@/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes'\nimport { createBreadcrumbNavigateTransition } from '@/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers'\n\ntype EventPayloads = {\n [componentEvents.CONTRACTOR_PAYMENT_CREATE]: undefined\n [componentEvents.
|
|
1
|
+
{"version":3,"file":"paymentStateMachine.js","sources":["../../../../../src/components/Contractor/Payments/PaymentFlow/paymentStateMachine.ts"],"sourcesContent":["import { reduce, state, transition } from 'robot3'\nimport type { ContractorPaymentGroup } from '@gusto/embedded-api/models/components/contractorpaymentgroup'\nimport type { Contractor } from '@gusto/embedded-api/models/components/contractor'\nimport { getContractorDisplayName } from '../CreatePayment/helpers'\nimport {\n CreatePaymentContextual,\n type PaymentFlowContextInterface,\n PaymentHistoryContextual,\n PaymentListContextual,\n PaymentStatementContextual,\n} from './PaymentFlowComponents'\nimport { componentEvents } from '@/shared/constants'\nimport type { MachineEventType, MachineTransition } from '@/types/Helpers'\nimport { updateBreadcrumbs } from '@/helpers/breadcrumbHelpers'\nimport type { BreadcrumbNodes } from '@/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes'\nimport { createBreadcrumbNavigateTransition } from '@/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers'\n\ntype EventPayloads = {\n [componentEvents.CONTRACTOR_PAYMENT_CREATE]: undefined\n [componentEvents.CONTRACTOR_PAYMENT_CREATED]: ContractorPaymentGroup\n [componentEvents.CONTRACTOR_PAYMENT_VIEW]: { paymentId: string }\n [componentEvents.CONTRACTOR_PAYMENT_VIEW_DETAILS]: {\n contractor?: Contractor\n paymentGroupId: string\n }\n [componentEvents.CONTRACTOR_PAYMENT_CANCEL]: { paymentId: string }\n [componentEvents.BREADCRUMB_NAVIGATE]: {\n key: string\n onNavigate: (ctx: PaymentFlowContextInterface) => PaymentFlowContextInterface\n }\n}\n\nexport const paymentFlowBreadcrumbsNodes: BreadcrumbNodes = {\n landing: {\n parent: null,\n item: {\n id: 'landing',\n label: 'breadcrumbLabel',\n namespace: 'Contractor.Payments.PaymentsList',\n onNavigate: ((ctx: PaymentFlowContextInterface) => ({\n ...ctx,\n currentBreadcrumb: 'landing',\n progressBarType: null,\n component: PaymentListContextual,\n })) as (context: unknown) => unknown,\n },\n },\n createPayment: {\n parent: 'landing',\n item: {\n id: 'createPayment',\n label: 'breadcrumbLabel',\n namespace: 'Contractor.Payments.CreatePayment',\n onNavigate: ((ctx: PaymentFlowContextInterface) => ({\n ...updateBreadcrumbs('createPayment', ctx),\n })) as (context: unknown) => unknown,\n },\n },\n history: {\n parent: 'landing',\n item: {\n id: 'history',\n label: 'breadcrumbLabel',\n namespace: 'Contractor.Payments.PaymentHistory',\n onNavigate: ((ctx: PaymentFlowContextInterface) => ({\n ...updateBreadcrumbs('history', ctx),\n component: PaymentHistoryContextual,\n })) as (context: unknown) => unknown,\n },\n },\n statement: {\n parent: 'history',\n item: {\n id: 'statement',\n label: 'breadcrumbLabel',\n namespace: 'Contractor.Payments.PaymentStatement',\n },\n },\n} as const\n\nconst breadcrumbNavigateTransition =\n createBreadcrumbNavigateTransition<PaymentFlowContextInterface>()\n\nexport const paymentMachine = {\n landing: state<MachineTransition>(\n transition(\n componentEvents.CONTRACTOR_PAYMENT_CREATE,\n 'createPayment',\n reduce(\n (\n ctx: PaymentFlowContextInterface,\n ev: MachineEventType<EventPayloads, typeof componentEvents.CONTRACTOR_PAYMENT_CREATE>,\n ): PaymentFlowContextInterface => {\n return {\n ...updateBreadcrumbs('createPayment', ctx),\n component: CreatePaymentContextual,\n progressBarType: 'breadcrumbs',\n alerts: undefined,\n }\n },\n ),\n ),\n transition(\n componentEvents.CONTRACTOR_PAYMENT_VIEW,\n 'history',\n reduce(\n (\n ctx: PaymentFlowContextInterface,\n ev: MachineEventType<EventPayloads, typeof componentEvents.CONTRACTOR_PAYMENT_VIEW>,\n ): PaymentFlowContextInterface => {\n return {\n ...updateBreadcrumbs('history', ctx),\n component: PaymentHistoryContextual,\n currentPaymentId: ev.payload.paymentId,\n progressBarType: 'breadcrumbs',\n alerts: undefined,\n }\n },\n ),\n ),\n ),\n createPayment: state<MachineTransition>(\n transition(\n componentEvents.CONTRACTOR_PAYMENT_CREATED,\n 'landing',\n reduce(\n (\n ctx: PaymentFlowContextInterface,\n ev: MachineEventType<EventPayloads, typeof componentEvents.CONTRACTOR_PAYMENT_CREATED>,\n ): PaymentFlowContextInterface => {\n const contractorPaymentGroup = ev.payload\n const contractorCount = contractorPaymentGroup.contractorPayments?.length || 0\n\n return {\n ...updateBreadcrumbs('landing', ctx),\n progressBarType: null,\n component: PaymentListContextual,\n alerts: [\n {\n type: 'success',\n title: 'paymentCreatedSuccessfully',\n translationParams: {\n count: contractorCount,\n },\n },\n ],\n }\n },\n ),\n ),\n breadcrumbNavigateTransition('landing'),\n ),\n history: state<MachineTransition>(\n transition(\n componentEvents.CONTRACTOR_PAYMENT_VIEW_DETAILS,\n 'statement',\n reduce(\n (\n ctx: PaymentFlowContextInterface,\n ev: MachineEventType<\n EventPayloads,\n typeof componentEvents.CONTRACTOR_PAYMENT_VIEW_DETAILS\n >,\n ): PaymentFlowContextInterface => {\n return {\n ...updateBreadcrumbs('statement', ctx, {\n contractorName: getContractorDisplayName(ev.payload.contractor),\n }),\n component: PaymentStatementContextual,\n currentContractorUuid: ev.payload.contractor?.uuid,\n currentPaymentId: ev.payload.paymentGroupId,\n progressBarType: 'breadcrumbs',\n alerts: undefined,\n }\n },\n ),\n ),\n transition(\n componentEvents.CONTRACTOR_PAYMENT_CANCEL,\n 'landing',\n reduce(\n (\n ctx: PaymentFlowContextInterface,\n ev: MachineEventType<EventPayloads, typeof componentEvents.CONTRACTOR_PAYMENT_CANCEL>,\n ): PaymentFlowContextInterface => {\n return {\n ...updateBreadcrumbs('landing', ctx),\n progressBarType: null,\n component: PaymentListContextual,\n alerts: [\n {\n type: 'success',\n title: 'paymentCancelledSuccessfully',\n },\n ],\n }\n },\n ),\n ),\n breadcrumbNavigateTransition('landing'),\n ),\n statement: state<MachineTransition>(\n breadcrumbNavigateTransition('landing'),\n breadcrumbNavigateTransition('history'),\n ),\n}\n"],"names":["paymentFlowBreadcrumbsNodes","ctx","PaymentListContextual","updateBreadcrumbs","PaymentHistoryContextual","breadcrumbNavigateTransition","createBreadcrumbNavigateTransition","paymentMachine","state","transition","componentEvents","reduce","ev","CreatePaymentContextual","contractorCount","getContractorDisplayName","PaymentStatementContextual"],"mappings":";;;;;;AAgCO,MAAMA,IAA+C;AAAA,EAC1D,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,WAAW;AAAA,MACX,aAAa,CAACC,OAAsC;AAAA,QAClD,GAAGA;AAAA,QACH,mBAAmB;AAAA,QACnB,iBAAiB;AAAA,QACjB,WAAWC;AAAA,MAAA;AAAA,IACb;AAAA,EACF;AAAA,EAEF,eAAe;AAAA,IACb,QAAQ;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,WAAW;AAAA,MACX,aAAa,CAACD,OAAsC;AAAA,QAClD,GAAGE,EAAkB,iBAAiBF,CAAG;AAAA,MAAA;AAAA,IAC3C;AAAA,EACF;AAAA,EAEF,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,WAAW;AAAA,MACX,aAAa,CAACA,OAAsC;AAAA,QAClD,GAAGE,EAAkB,WAAWF,CAAG;AAAA,QACnC,WAAWG;AAAA,MAAA;AAAA,IACb;AAAA,EACF;AAAA,EAEF,WAAW;AAAA,IACT,QAAQ;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,WAAW;AAAA,IAAA;AAAA,EACb;AAEJ,GAEMC,IACJC,EAAA,GAEWC,IAAiB;AAAA,EAC5B,SAASC;AAAA,IACPC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACE,CACEV,GACAW,OAEO;AAAA,UACL,GAAGT,EAAkB,iBAAiBF,CAAG;AAAA,UACzC,WAAWY;AAAA,UACX,iBAAiB;AAAA,UACjB,QAAQ;AAAA,QAAA;AAAA,MAEZ;AAAA,IACF;AAAA,IAEFJ;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACE,CACEV,GACAW,OAEO;AAAA,UACL,GAAGT,EAAkB,WAAWF,CAAG;AAAA,UACnC,WAAWG;AAAA,UACX,kBAAkBQ,EAAG,QAAQ;AAAA,UAC7B,iBAAiB;AAAA,UACjB,QAAQ;AAAA,QAAA;AAAA,MAEZ;AAAA,IACF;AAAA,EACF;AAAA,EAEF,eAAeJ;AAAA,IACbC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACE,CACEV,GACAW,MACgC;AAEhC,gBAAME,IADyBF,EAAG,QACa,oBAAoB,UAAU;AAE7E,iBAAO;AAAA,YACL,GAAGT,EAAkB,WAAWF,CAAG;AAAA,YACnC,iBAAiB;AAAA,YACjB,WAAWC;AAAA,YACX,QAAQ;AAAA,cACN;AAAA,gBACE,MAAM;AAAA,gBACN,OAAO;AAAA,gBACP,mBAAmB;AAAA,kBACjB,OAAOY;AAAA,gBAAA;AAAA,cACT;AAAA,YACF;AAAA,UACF;AAAA,QAEJ;AAAA,MAAA;AAAA,IACF;AAAA,IAEFT,EAA6B,SAAS;AAAA,EAAA;AAAA,EAExC,SAASG;AAAA,IACPC;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACE,CACEV,GACAW,OAKO;AAAA,UACL,GAAGT,EAAkB,aAAaF,GAAK;AAAA,YACrC,gBAAgBc,EAAyBH,EAAG,QAAQ,UAAU;AAAA,UAAA,CAC/D;AAAA,UACD,WAAWI;AAAA,UACX,uBAAuBJ,EAAG,QAAQ,YAAY;AAAA,UAC9C,kBAAkBA,EAAG,QAAQ;AAAA,UAC7B,iBAAiB;AAAA,UACjB,QAAQ;AAAA,QAAA;AAAA,MAEZ;AAAA,IACF;AAAA,IAEFH;AAAA,MACEC,EAAgB;AAAA,MAChB;AAAA,MACAC;AAAA,QACE,CACEV,GACAW,OAEO;AAAA,UACL,GAAGT,EAAkB,WAAWF,CAAG;AAAA,UACnC,iBAAiB;AAAA,UACjB,WAAWC;AAAA,UACX,QAAQ;AAAA,YACN;AAAA,cACE,MAAM;AAAA,cACN,OAAO;AAAA,YAAA;AAAA,UACT;AAAA,QACF;AAAA,MAEJ;AAAA,IACF;AAAA,IAEFG,EAA6B,SAAS;AAAA,EAAA;AAAA,EAExC,WAAWG;AAAA,IACTH,EAA6B,SAAS;AAAA,IACtCA,EAA6B,SAAS;AAAA,EAAA;AAE1C;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BaseComponentInterface } from '../../../Base';
|
|
2
2
|
interface PaymentHistoryProps extends BaseComponentInterface<'Contractor.Payments.PaymentHistory'> {
|
|
3
|
-
companyId: string;
|
|
4
3
|
paymentId: string;
|
|
5
4
|
}
|
|
6
5
|
export declare function PaymentHistory(props: PaymentHistoryProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const Root: ({
|
|
6
|
+
export declare const Root: ({ paymentId, dictionary, onEvent }: PaymentHistoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,26 +1,51 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as n, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { useContractorPaymentGroupsGetSuspense as G } from "@gusto/embedded-api/react-query/contractorPaymentGroupsGet";
|
|
3
|
+
import { useContractorsListSuspense as T } from "@gusto/embedded-api/react-query/contractorsList";
|
|
4
|
+
import { useContractorPaymentsDeleteMutation as h } from "@gusto/embedded-api/react-query/contractorPaymentsDelete";
|
|
5
|
+
import { useTranslation as A } from "react-i18next";
|
|
6
|
+
import { PaymentHistoryPresentation as w } from "./PaymentHistoryPresentation.js";
|
|
7
|
+
import { useComponentDictionary as E } from "../../../../i18n/I18n.js";
|
|
8
|
+
import { BaseComponent as N } from "../../../Base/Base.js";
|
|
9
|
+
import { useBase as R } from "../../../Base/useBase.js";
|
|
10
|
+
import { componentEvents as m } from "../../../../shared/constants.js";
|
|
11
|
+
function b(t) {
|
|
12
|
+
return /* @__PURE__ */ n(N, { ...t, children: /* @__PURE__ */ n(H, { ...t, children: t.children }) });
|
|
8
13
|
}
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
const H = ({ paymentId: t, dictionary: s, onEvent: e }) => {
|
|
15
|
+
E("Contractor.Payments.PaymentHistory", s);
|
|
16
|
+
const { t: i } = A("Contractor.Payments.PaymentHistory"), { baseSubmitHandler: y } = R(), { data: r } = G({
|
|
17
|
+
contractorPaymentGroupUuid: t
|
|
18
|
+
});
|
|
19
|
+
if (!r.contractorPaymentGroup)
|
|
20
|
+
throw new Error(i("errors.paymentGroupNotFound"));
|
|
21
|
+
const a = r.contractorPaymentGroup.companyUuid, { data: u } = T({ companyUuid: a }), c = u.contractorList || [], { mutateAsync: p, isPending: P } = h(), d = (o) => {
|
|
22
|
+
e(m.CONTRACTOR_PAYMENT_VIEW_DETAILS, {
|
|
23
|
+
contractor: c.find((l) => l.uuid === o),
|
|
24
|
+
paymentGroupId: t
|
|
25
|
+
});
|
|
26
|
+
}, C = async (o) => {
|
|
27
|
+
await y(o, async () => {
|
|
28
|
+
await p({
|
|
29
|
+
request: {
|
|
30
|
+
contractorPaymentId: o,
|
|
31
|
+
companyId: a
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}), e(m.CONTRACTOR_PAYMENT_CANCEL, { paymentId: o });
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ n(f, { children: /* @__PURE__ */ n(
|
|
37
|
+
w,
|
|
38
|
+
{
|
|
39
|
+
paymentGroup: r.contractorPaymentGroup,
|
|
40
|
+
contractors: c,
|
|
41
|
+
isCancelling: P,
|
|
42
|
+
onViewPayment: d,
|
|
43
|
+
onCancelPayment: C
|
|
19
44
|
}
|
|
20
|
-
}
|
|
21
|
-
|
|
45
|
+
) });
|
|
46
|
+
};
|
|
22
47
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
48
|
+
b as PaymentHistory,
|
|
49
|
+
H as Root
|
|
25
50
|
};
|
|
26
51
|
//# sourceMappingURL=PaymentHistory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentHistory.js","sources":["../../../../../src/components/Contractor/Payments/PaymentHistory/PaymentHistory.tsx"],"sourcesContent":["import { PaymentHistoryPresentation } from './PaymentHistoryPresentation'\nimport { useComponentDictionary } from '@/i18n'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base'\n\ninterface PaymentHistoryProps extends BaseComponentInterface<'Contractor.Payments.PaymentHistory'> {\n
|
|
1
|
+
{"version":3,"file":"PaymentHistory.js","sources":["../../../../../src/components/Contractor/Payments/PaymentHistory/PaymentHistory.tsx"],"sourcesContent":["import { useContractorPaymentGroupsGetSuspense } from '@gusto/embedded-api/react-query/contractorPaymentGroupsGet'\nimport { useContractorsListSuspense } from '@gusto/embedded-api/react-query/contractorsList'\nimport { useContractorPaymentsDeleteMutation } from '@gusto/embedded-api/react-query/contractorPaymentsDelete'\nimport { useTranslation } from 'react-i18next'\nimport { PaymentHistoryPresentation } from './PaymentHistoryPresentation'\nimport { useComponentDictionary } from '@/i18n'\nimport { BaseComponent, useBase, type BaseComponentInterface } from '@/components/Base'\nimport { componentEvents } from '@/shared/constants'\n\ninterface PaymentHistoryProps extends BaseComponentInterface<'Contractor.Payments.PaymentHistory'> {\n paymentId: string\n}\n\nexport function PaymentHistory(props: PaymentHistoryProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nexport const Root = ({ paymentId, dictionary, onEvent }: PaymentHistoryProps) => {\n useComponentDictionary('Contractor.Payments.PaymentHistory', dictionary)\n const { t } = useTranslation('Contractor.Payments.PaymentHistory')\n const { baseSubmitHandler } = useBase()\n\n const { data: paymentGroupResponse } = useContractorPaymentGroupsGetSuspense({\n contractorPaymentGroupUuid: paymentId,\n })\n if (!paymentGroupResponse.contractorPaymentGroup) {\n throw new Error(t('errors.paymentGroupNotFound'))\n }\n\n const companyId = paymentGroupResponse.contractorPaymentGroup.companyUuid!\n\n const { data: contractorList } = useContractorsListSuspense({ companyUuid: companyId })\n const contractors = contractorList.contractorList || []\n\n const { mutateAsync: cancelPayment, isPending: isCancelling } =\n useContractorPaymentsDeleteMutation()\n\n const handleViewPayment = (contractorUuid: string) => {\n onEvent(componentEvents.CONTRACTOR_PAYMENT_VIEW_DETAILS, {\n contractor: contractors.find(c => c.uuid === contractorUuid),\n paymentGroupId: paymentId,\n })\n }\n\n const handleCancelPayment = async (paymentId: string) => {\n await baseSubmitHandler(paymentId, async () => {\n await cancelPayment({\n request: {\n contractorPaymentId: paymentId,\n companyId,\n },\n })\n })\n\n onEvent(componentEvents.CONTRACTOR_PAYMENT_CANCEL, { paymentId })\n }\n\n return (\n <>\n <PaymentHistoryPresentation\n paymentGroup={paymentGroupResponse.contractorPaymentGroup}\n contractors={contractors}\n isCancelling={isCancelling}\n onViewPayment={handleViewPayment}\n onCancelPayment={handleCancelPayment}\n />\n </>\n )\n}\n"],"names":["PaymentHistory","props","jsx","BaseComponent","Root","paymentId","dictionary","onEvent","useComponentDictionary","t","useTranslation","baseSubmitHandler","useBase","paymentGroupResponse","useContractorPaymentGroupsGetSuspense","companyId","contractorList","useContractorsListSuspense","contractors","cancelPayment","isCancelling","useContractorPaymentsDeleteMutation","handleViewPayment","contractorUuid","componentEvents","c","handleCancelPayment","Fragment","PaymentHistoryPresentation"],"mappings":";;;;;;;;;;AAaO,SAASA,EAAeC,GAA4B;AACzD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEO,MAAMG,IAAO,CAAC,EAAE,WAAAC,GAAW,YAAAC,GAAY,SAAAC,QAAmC;AAC/E,EAAAC,EAAuB,sCAAsCF,CAAU;AACvE,QAAM,EAAE,GAAAG,EAAA,IAAMC,EAAe,oCAAoC,GAC3D,EAAE,mBAAAC,EAAA,IAAsBC,EAAA,GAExB,EAAE,MAAMC,EAAA,IAAyBC,EAAsC;AAAA,IAC3E,4BAA4BT;AAAA,EAAA,CAC7B;AACD,MAAI,CAACQ,EAAqB;AACxB,UAAM,IAAI,MAAMJ,EAAE,6BAA6B,CAAC;AAGlD,QAAMM,IAAYF,EAAqB,uBAAuB,aAExD,EAAE,MAAMG,EAAA,IAAmBC,EAA2B,EAAE,aAAaF,GAAW,GAChFG,IAAcF,EAAe,kBAAkB,CAAA,GAE/C,EAAE,aAAaG,GAAe,WAAWC,EAAA,IAC7CC,EAAA,GAEIC,IAAoB,CAACC,MAA2B;AACpD,IAAAhB,EAAQiB,EAAgB,iCAAiC;AAAA,MACvD,YAAYN,EAAY,KAAK,CAAAO,MAAKA,EAAE,SAASF,CAAc;AAAA,MAC3D,gBAAgBlB;AAAA,IAAA,CACjB;AAAA,EACH,GAEMqB,IAAsB,OAAOrB,MAAsB;AACvD,UAAMM,EAAkBN,GAAW,YAAY;AAC7C,YAAMc,EAAc;AAAA,QAClB,SAAS;AAAA,UACP,qBAAqBd;AAAAA,UACrB,WAAAU;AAAA,QAAA;AAAA,MACF,CACD;AAAA,IACH,CAAC,GAEDR,EAAQiB,EAAgB,2BAA2B,EAAE,WAAAnB,GAAW;AAAA,EAClE;AAEA,SACE,gBAAAH,EAAAyB,GAAA,EACE,UAAA,gBAAAzB;AAAA,IAAC0B;AAAA,IAAA;AAAA,MACC,cAAcf,EAAqB;AAAA,MACnC,aAAAK;AAAA,MACA,cAAAE;AAAA,MACA,eAAeE;AAAA,MACf,iBAAiBI;AAAA,IAAA;AAAA,EAAA,GAErB;AAEJ;"}
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
name: string;
|
|
4
|
-
wageType: string;
|
|
5
|
-
paymentMethod: string;
|
|
6
|
-
hours: number;
|
|
7
|
-
wage: string;
|
|
8
|
-
bonus: number;
|
|
9
|
-
reimbursement: number;
|
|
10
|
-
total: number;
|
|
11
|
-
}
|
|
1
|
+
import { ContractorPaymentGroup } from '@gusto/embedded-api/models/components/contractorpaymentgroup';
|
|
2
|
+
import { Contractor } from '@gusto/embedded-api/models/components/contractor';
|
|
12
3
|
interface PaymentHistoryPresentationProps {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
onBack: () => void;
|
|
4
|
+
paymentGroup: ContractorPaymentGroup;
|
|
5
|
+
contractors: Contractor[];
|
|
16
6
|
onViewPayment: (paymentId: string) => void;
|
|
17
7
|
onCancelPayment: (paymentId: string) => void;
|
|
8
|
+
isCancelling: boolean;
|
|
18
9
|
}
|
|
19
|
-
export declare const PaymentHistoryPresentation: ({
|
|
10
|
+
export declare const PaymentHistoryPresentation: ({ paymentGroup, contractors, onViewPayment, onCancelPayment, isCancelling, }: PaymentHistoryPresentationProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
11
|
export {};
|
|
@@ -1,114 +1,130 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs as l, jsx as t, Fragment as D } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as N, Trans as x } from "react-i18next";
|
|
3
|
+
import { getContractorDisplayName as C } from "../CreatePayment/helpers.js";
|
|
4
|
+
import h from "./PaymentHistoryPresentation.module.scss.js";
|
|
5
|
+
import { Flex as m } from "../../../Common/Flex/Flex.js";
|
|
4
6
|
import "classnames";
|
|
5
7
|
import "../../../../shared/constants.js";
|
|
6
|
-
import { EmptyData as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { useI18n as D } from "../../../../i18n/I18n.js";
|
|
11
|
-
import { formatNumberAsCurrency as c } from "../../../../helpers/formattedStrings.js";
|
|
12
|
-
import { useLocale as P } from "../../../../contexts/LocaleProvider/useLocale.js";
|
|
8
|
+
import { EmptyData as P } from "../../../Common/EmptyData/EmptyData.js";
|
|
9
|
+
import { HamburgerMenu as F } from "../../../Common/HamburgerMenu/HamburgerMenu.js";
|
|
10
|
+
import { useComponentContext as v } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
11
|
+
import { useI18n as S } from "../../../../i18n/I18n.js";
|
|
13
12
|
import { formatHoursDisplay as k } from "../../../Payroll/helpers.js";
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
import w from "../../../../hooks/useNumberFormatter.js";
|
|
14
|
+
import { useDateFormatter as L } from "../../../../hooks/useDateFormatter.js";
|
|
15
|
+
import M from "../../../../assets/icons/eye.svg.js";
|
|
16
|
+
import T from "../../../../assets/icons/slash-circle.svg.js";
|
|
17
|
+
import { DataView as j } from "../../../Common/DataView/DataView.js";
|
|
18
|
+
const $ = ({
|
|
19
|
+
paymentGroup: s,
|
|
20
|
+
contractors: b,
|
|
21
|
+
onViewPayment: c,
|
|
22
|
+
onCancelPayment: f,
|
|
23
|
+
isCancelling: y
|
|
21
24
|
}) => {
|
|
22
|
-
const { Button:
|
|
23
|
-
|
|
24
|
-
const { t:
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
25
|
+
const { Button: g, Text: n, Heading: d } = v();
|
|
26
|
+
S("Contractor.Payments.PaymentHistory");
|
|
27
|
+
const { t: r } = N("Contractor.Payments.PaymentHistory"), o = w("currency"), { formatLongWithYear: H } = L(), p = s.contractorPayments || [];
|
|
28
|
+
return /* @__PURE__ */ l(m, { flexDirection: "column", gap: 32, children: [
|
|
29
|
+
/* @__PURE__ */ l(m, { flexDirection: "column", gap: 8, children: [
|
|
30
|
+
/* @__PURE__ */ t(d, { as: "h2", children: r("title") }),
|
|
31
|
+
/* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
32
|
+
x,
|
|
33
|
+
{
|
|
34
|
+
i18nKey: "subtitle",
|
|
35
|
+
t: r,
|
|
36
|
+
values: { date: H(s.debitDate) },
|
|
37
|
+
components: {
|
|
38
|
+
strong: /* @__PURE__ */ t(n, { weight: "bold", as: "span" })
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
) })
|
|
29
42
|
] }),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
43
|
+
/* @__PURE__ */ l(m, { flexDirection: "column", gap: 16, children: [
|
|
44
|
+
/* @__PURE__ */ t(d, { as: "h2", children: r("paymentsSection") }),
|
|
45
|
+
p.length === 0 ? /* @__PURE__ */ t(P, { title: r("noPaymentsFound"), description: r("noPaymentsDescription") }) : /* @__PURE__ */ t(D, { children: /* @__PURE__ */ t(
|
|
46
|
+
j,
|
|
47
|
+
{
|
|
48
|
+
columns: [
|
|
49
|
+
{
|
|
50
|
+
title: r("tableHeaders.contractor"),
|
|
51
|
+
render: ({ contractorUuid: e }) => /* @__PURE__ */ t(
|
|
52
|
+
g,
|
|
53
|
+
{
|
|
54
|
+
variant: "tertiary",
|
|
55
|
+
onClick: () => {
|
|
56
|
+
c(e);
|
|
57
|
+
},
|
|
58
|
+
children: C(
|
|
59
|
+
b.find((i) => i.uuid === e)
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
title: r("tableHeaders.wageType"),
|
|
66
|
+
render: ({ wageType: e }) => /* @__PURE__ */ t(n, { children: e })
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
title: r("tableHeaders.paymentMethod"),
|
|
70
|
+
render: ({ paymentMethod: e }) => /* @__PURE__ */ t(n, { children: e })
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
title: r("tableHeaders.hours"),
|
|
74
|
+
render: ({ hours: e }) => /* @__PURE__ */ t(n, { children: e ? k(Number(e)) : "–" })
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
title: r("tableHeaders.wage"),
|
|
78
|
+
render: ({ wage: e }) => /* @__PURE__ */ t(n, { children: e || "–" })
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
title: r("tableHeaders.bonus"),
|
|
82
|
+
render: ({ bonus: e }) => /* @__PURE__ */ t(n, { children: e ? o(Number(e)) : "–" })
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
title: r("tableHeaders.reimbursements"),
|
|
86
|
+
render: ({ reimbursement: e }) => /* @__PURE__ */ t(n, { children: e ? o(Number(e)) : "–" })
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
title: r("tableHeaders.total"),
|
|
90
|
+
render: ({ wageTotal: e, reimbursement: i, bonus: a }) => /* @__PURE__ */ t(n, { children: e ? o(
|
|
91
|
+
Number(e) + Number(i) + Number(a)
|
|
92
|
+
) : "–" })
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
itemMenu: ({ contractorUuid: e, mayCancel: i, uuid: a }) => {
|
|
96
|
+
const u = [
|
|
62
97
|
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
{
|
|
75
|
-
title: e("tableHeaders.total"),
|
|
76
|
-
render: ({ total: t }) => /* @__PURE__ */ r(n, { children: c(t, l) })
|
|
98
|
+
label: r("actions.view"),
|
|
99
|
+
onClick: () => {
|
|
100
|
+
c(e);
|
|
101
|
+
},
|
|
102
|
+
icon: /* @__PURE__ */ t("span", { className: h.icon, children: /* @__PURE__ */ t(M, { "aria-hidden": !0 }) })
|
|
103
|
+
}
|
|
104
|
+
];
|
|
105
|
+
return i && u.push({
|
|
106
|
+
label: r("actions.cancel"),
|
|
107
|
+
onClick: () => {
|
|
108
|
+
f(a);
|
|
77
109
|
},
|
|
110
|
+
icon: /* @__PURE__ */ t("span", { className: h.icon, children: /* @__PURE__ */ t(T, { "aria-hidden": !0 }) })
|
|
111
|
+
}), /* @__PURE__ */ t(
|
|
112
|
+
F,
|
|
78
113
|
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
{
|
|
83
|
-
items: [
|
|
84
|
-
{
|
|
85
|
-
label: e("actions.view"),
|
|
86
|
-
onClick: () => {
|
|
87
|
-
d(t);
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: e("actions.cancel"),
|
|
92
|
-
onClick: () => {
|
|
93
|
-
b(t);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
triggerLabel: e("tableHeaders.action")
|
|
98
|
-
}
|
|
99
|
-
)
|
|
114
|
+
items: u,
|
|
115
|
+
triggerLabel: r("tableHeaders.action"),
|
|
116
|
+
isLoading: y
|
|
100
117
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
] })
|
|
118
|
+
);
|
|
119
|
+
},
|
|
120
|
+
data: p,
|
|
121
|
+
label: r("title")
|
|
122
|
+
}
|
|
123
|
+
) })
|
|
108
124
|
] })
|
|
109
125
|
] });
|
|
110
126
|
};
|
|
111
127
|
export {
|
|
112
|
-
|
|
128
|
+
$ as PaymentHistoryPresentation
|
|
113
129
|
};
|
|
114
130
|
//# sourceMappingURL=PaymentHistoryPresentation.js.map
|