@remoteoss/remote-flows 1.39.0 → 1.40.1
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/README.md +2 -0
- package/dist/CheckboxFieldDefault-H6DFZZRM.js +2 -0
- package/dist/CountryFieldDefault-ZPDRAEWF.js +2 -0
- package/dist/DatePickerFieldDefault-BSMELDX2.js +2 -0
- package/dist/RadioGroupFieldDefault-SGZXCPSL.js +2 -0
- package/dist/TextAreaFieldDefault-TTCPVIBZ.js +2 -0
- package/dist/{WorkScheduleFieldDefault-6DC7RDII.js → WorkScheduleFieldDefault-D6TGVPHC.js} +2 -2
- package/dist/chunk-2Q462FT7.js +2 -0
- package/dist/chunk-2Q462FT7.js.map +1 -0
- package/dist/{chunk-Q5HDUQPX.js → chunk-33VF3QHP.js} +2 -2
- package/dist/{chunk-NFIMSJPH.js → chunk-34U3WJ75.js} +2 -2
- package/dist/{chunk-VQ5PL5E3.js → chunk-36IU27QH.js} +2 -2
- package/dist/{chunk-53TM77OU.js → chunk-3EYFXA3W.js} +2 -2
- package/dist/chunk-3GCJILCE.js +2 -0
- package/dist/chunk-3GCJILCE.js.map +1 -0
- package/dist/{chunk-6HAWSFOM.js → chunk-3YTML5RG.js} +2 -2
- package/dist/{chunk-GKYQ3GAF.js → chunk-4VEUIX5E.js} +2 -2
- package/dist/{chunk-QSCW4IHJ.js → chunk-5DGTMYWR.js} +2 -2
- package/dist/{chunk-2DNWLRNL.js → chunk-6P536SW2.js} +2 -2
- package/dist/{chunk-MDOVS5WS.js → chunk-6Y5WCCMH.js} +2 -2
- package/dist/{chunk-Q6GJJRYG.js → chunk-75XZ4KIX.js} +2 -2
- package/dist/{chunk-BRI2ESJ3.js → chunk-7FCKRGGD.js} +2 -2
- package/dist/{chunk-BRN6MO77.js → chunk-AC4MDLIM.js} +2 -2
- package/dist/{chunk-G556HMVA.js → chunk-COAJUZSE.js} +2 -2
- package/dist/{chunk-UD3YR4VQ.js → chunk-DPXSK2UQ.js} +2 -2
- package/dist/{chunk-25PGBGEV.js → chunk-ELM6CPRT.js} +2 -2
- package/dist/{chunk-OR6ZPNF6.js → chunk-ENV2K73V.js} +2 -2
- package/dist/{chunk-H3JUXG2J.js → chunk-HSVLNS27.js} +2 -2
- package/dist/{chunk-GGLJSAPH.js → chunk-ITDU6XPR.js} +2 -2
- package/dist/{chunk-XYCFKCVZ.js → chunk-IZIKQFAC.js} +2 -2
- package/dist/{chunk-HJOT7JXK.js → chunk-JBQOE3XL.js} +2 -2
- package/dist/{chunk-A2WWDGJJ.js → chunk-KN2Q5NOL.js} +2 -2
- package/dist/{chunk-LXKLBMHD.js → chunk-KXQVUSLI.js} +2 -2
- package/dist/{chunk-ASTB4YJL.js → chunk-KY4PEPYW.js} +2 -2
- package/dist/{chunk-YVS5MBND.js → chunk-LLHJODMO.js} +2 -2
- package/dist/{chunk-MHOV3CQN.js → chunk-M5ARBNKW.js} +2 -2
- package/dist/{chunk-SFJV4CFP.js → chunk-MF3W2PJ7.js} +2 -2
- package/dist/{chunk-XGECMN4V.js → chunk-NEKE5PRJ.js} +2 -2
- package/dist/{chunk-OEVMCP42.js → chunk-NG562U46.js} +2 -2
- package/dist/{chunk-I3P3NKFG.js → chunk-ODXNPBKO.js} +2 -2
- package/dist/{chunk-Q2OGLLBA.js → chunk-PB6UQ4A4.js} +2 -2
- package/dist/{chunk-Q2OGLLBA.js.map → chunk-PB6UQ4A4.js.map} +1 -1
- package/dist/{chunk-PIHCHWI7.js → chunk-PTPNWD53.js} +2 -2
- package/dist/{chunk-OBZMQWQA.js → chunk-QI4MWDJS.js} +2 -2
- package/dist/{chunk-SMBP7A4F.js → chunk-QIAK5VU7.js} +2 -2
- package/dist/{chunk-R3HBG6VK.js → chunk-QZFKUU4A.js} +2 -2
- package/dist/{chunk-VDH46ZCF.js → chunk-R2JJUSD3.js} +2 -2
- package/dist/chunk-SC7YWKOW.js +2 -0
- package/dist/{chunk-TLNE6GTG.js → chunk-TCFTRE7G.js} +2 -2
- package/dist/{chunk-VEMUIRKC.js → chunk-TOOCSXXQ.js} +2 -2
- package/dist/chunk-UEPT6OBL.js +2 -0
- package/dist/chunk-UEPT6OBL.js.map +1 -0
- package/dist/{chunk-TSZLYFYT.js → chunk-UOYIAURS.js} +2 -2
- package/dist/{chunk-27TI6URK.js → chunk-UQMZU7HM.js} +2 -2
- package/dist/{chunk-QFXZTQL7.js → chunk-UW3TUDJR.js} +2 -2
- package/dist/{chunk-UHN3ELBL.js → chunk-V5EBEJON.js} +2 -2
- package/dist/{chunk-2A25NRQT.js → chunk-V62JQXIC.js} +2 -2
- package/dist/{chunk-TMBDUFOH.js → chunk-VNHXMVTF.js} +2 -2
- package/dist/{chunk-L2V4ZYCZ.js → chunk-VYZOGC65.js} +2 -2
- package/dist/{chunk-DJGO6WYW.js → chunk-W2WHWA5J.js} +2 -2
- package/dist/{chunk-KUKZNLCF.js → chunk-W5MWHAAI.js} +2 -2
- package/dist/{chunk-LTJSD2MC.js → chunk-W7MCRAQ4.js} +2 -2
- package/dist/{chunk-7BPB4PXN.js → chunk-WIFDQWVX.js} +2 -2
- package/dist/{chunk-XEVHWVBT.js → chunk-XNDOPTDJ.js} +2 -2
- package/dist/{chunk-CFOXBJRN.js → chunk-Y34DKDJI.js} +2 -2
- package/dist/{chunk-3CLZOKEI.js → chunk-YD54NZIX.js} +2 -2
- package/dist/{chunk-5XVYIBJD.js → chunk-YQOONCKH.js} +2 -2
- package/dist/{chunk-PPRAWJMR.js → chunk-YWJS3RL5.js} +2 -2
- package/dist/{chunk-ZEC5X3RH.js → chunk-YYJH3TPJ.js} +2 -2
- package/dist/chunk-Z23FQVGN.js +1 -0
- package/dist/default-components.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentBack.d.ts +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +2 -3
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentSubmit.d.ts +2 -2
- package/dist/flows/ContractAmendment/index.d.ts +1 -2
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +4 -5
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +40 -40
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -3
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -3
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractReviewButton.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +4 -5
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingBack.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/OnboardingSubmit.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
- package/dist/flows/ContractorOnboarding/constants.js +1 -1
- package/dist/flows/ContractorOnboarding/context.d.ts +4 -5
- package/dist/flows/ContractorOnboarding/hooks.d.ts +2 -3
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/jsfModify.d.ts +2 -3
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/ContractorOnboarding/types.d.ts +2 -3
- package/dist/flows/ContractorOnboarding/utils.d.ts +1 -2
- package/dist/flows/ContractorOnboarding/utils.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +1 -2
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +2 -3
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorResetButton.d.ts +2 -2
- package/dist/flows/CostCalculator/CostCalculatorSubmitButton.d.ts +2 -2
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -3
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -3
- package/dist/flows/CostCalculator/api.d.ts +5 -5
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -3
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +2 -2
- package/dist/flows/CostCalculator/hooks.d.ts +2 -2
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +0 -1
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/CreateCompany/CreateCompany.d.ts +3 -4
- package/dist/flows/CreateCompany/CreateCompany.js +1 -1
- package/dist/flows/CreateCompany/api.d.ts +1 -1
- package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +2 -3
- package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +2 -3
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
- package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -3
- package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
- package/dist/flows/CreateCompany/components/CreateCompanySubmit.d.ts +2 -2
- package/dist/flows/CreateCompany/context.d.ts +1 -2
- package/dist/flows/CreateCompany/hooks.d.ts +1 -2
- package/dist/flows/CreateCompany/index.d.ts +2 -3
- package/dist/flows/CreateCompany/index.js +1 -1
- package/dist/flows/CreateCompany/types.d.ts +1 -2
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +5 -6
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +16 -17
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -3
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +2 -3
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +2 -3
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +2 -3
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.d.ts +5 -0
- package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.js +2 -0
- package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.js.map +1 -0
- package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +2 -3
- package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/EquityPriceDetails.d.ts +2 -2
- package/dist/flows/Onboarding/components/OnboardingBack.d.ts +2 -2
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +3 -4
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +2 -2
- package/dist/flows/Onboarding/components/OnboardingSubmit.d.ts +2 -2
- package/dist/flows/Onboarding/components/PreOnboardingRequirements.d.ts +3 -3
- package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.d.ts +2 -2
- package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +1 -2
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +2 -2
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +2 -3
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +3 -4
- package/dist/flows/Onboarding/hooks.d.ts +1 -2
- package/dist/flows/Onboarding/index.d.ts +4 -4
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +2 -3
- package/dist/flows/Onboarding/utils.d.ts +2 -3
- package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +3 -4
- package/dist/flows/PayrollAdminOnboarding/context.d.ts +1 -1
- package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +1 -1
- package/dist/flows/PayrollAdminOnboarding/index.d.ts +2 -3
- package/dist/flows/PayrollAdminOnboarding/types.d.ts +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +3 -4
- package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +2 -3
- package/dist/flows/PayrollEmployeeOnboarding/types.d.ts +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +2 -3
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +2 -3
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +2 -3
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationBack.d.ts +2 -2
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +2 -3
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +3 -4
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +3 -4
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/TerminationSubmit.d.ts +2 -2
- package/dist/flows/Termination/api.d.ts +4 -5
- package/dist/flows/Termination/api.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.d.ts +2 -2
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.d.ts +2 -2
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -7
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +4 -5
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +4 -5
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.d.ts +2 -2
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.d.ts +2 -2
- package/dist/flows/Termination/context.d.ts +1 -2
- package/dist/flows/Termination/hooks.d.ts +1 -2
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +5 -6
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.d.ts +2 -3
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/types.d.ts +2 -3
- package/dist/flows/Termination/utils.d.ts +1 -2
- package/dist/index.d.ts +21 -14
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +45 -45
- package/dist/internals.js +1 -1
- package/dist/{types-Bptye63R.d.ts → types-BcjbPv3W.d.ts} +8 -9
- package/dist/{types-Cjy498SD.d.ts → types-BydTmx76.d.ts} +2 -2
- package/dist/{types-HUdcwxhs.d.ts → types-CBE9Gstk.d.ts} +9 -10
- package/dist/{types---jTQSYP.d.ts → types-CTjgSFHY.d.ts} +2 -2
- package/dist/{types-5jgrwYf3.d.ts → types-CgDgP-h7.d.ts} +5 -6
- package/dist/{types-STTuXABa.d.ts → types-DS-m0rPG.d.ts} +3 -4
- package/dist/{types-Buo22VR2.d.ts → types-De7SaR2_.d.ts} +2 -3
- package/package.json +20 -20
- package/dist/CheckboxFieldDefault-O6OH63GG.js +0 -2
- package/dist/CountryFieldDefault-DVWWTDEO.js +0 -2
- package/dist/DatePickerFieldDefault-XY2SCOWG.js +0 -2
- package/dist/RadioGroupFieldDefault-4P4DRXR2.js +0 -2
- package/dist/TextAreaFieldDefault-A2LOPUE3.js +0 -2
- package/dist/chunk-5MPW7QWT.js +0 -2
- package/dist/chunk-GULCZWSK.js +0 -1
- package/dist/chunk-LOPZZUAF.js +0 -2
- package/dist/chunk-LOPZZUAF.js.map +0 -1
- package/dist/chunk-OQIJAVBT.js +0 -2
- package/dist/chunk-OQIJAVBT.js.map +0 -1
- /package/dist/{CheckboxFieldDefault-O6OH63GG.js.map → CheckboxFieldDefault-H6DFZZRM.js.map} +0 -0
- /package/dist/{CountryFieldDefault-DVWWTDEO.js.map → CountryFieldDefault-ZPDRAEWF.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-XY2SCOWG.js.map → DatePickerFieldDefault-BSMELDX2.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-4P4DRXR2.js.map → RadioGroupFieldDefault-SGZXCPSL.js.map} +0 -0
- /package/dist/{TextAreaFieldDefault-A2LOPUE3.js.map → TextAreaFieldDefault-TTCPVIBZ.js.map} +0 -0
- /package/dist/{WorkScheduleFieldDefault-6DC7RDII.js.map → WorkScheduleFieldDefault-D6TGVPHC.js.map} +0 -0
- /package/dist/{chunk-Q5HDUQPX.js.map → chunk-33VF3QHP.js.map} +0 -0
- /package/dist/{chunk-NFIMSJPH.js.map → chunk-34U3WJ75.js.map} +0 -0
- /package/dist/{chunk-VQ5PL5E3.js.map → chunk-36IU27QH.js.map} +0 -0
- /package/dist/{chunk-53TM77OU.js.map → chunk-3EYFXA3W.js.map} +0 -0
- /package/dist/{chunk-6HAWSFOM.js.map → chunk-3YTML5RG.js.map} +0 -0
- /package/dist/{chunk-GKYQ3GAF.js.map → chunk-4VEUIX5E.js.map} +0 -0
- /package/dist/{chunk-QSCW4IHJ.js.map → chunk-5DGTMYWR.js.map} +0 -0
- /package/dist/{chunk-2DNWLRNL.js.map → chunk-6P536SW2.js.map} +0 -0
- /package/dist/{chunk-MDOVS5WS.js.map → chunk-6Y5WCCMH.js.map} +0 -0
- /package/dist/{chunk-Q6GJJRYG.js.map → chunk-75XZ4KIX.js.map} +0 -0
- /package/dist/{chunk-BRI2ESJ3.js.map → chunk-7FCKRGGD.js.map} +0 -0
- /package/dist/{chunk-BRN6MO77.js.map → chunk-AC4MDLIM.js.map} +0 -0
- /package/dist/{chunk-G556HMVA.js.map → chunk-COAJUZSE.js.map} +0 -0
- /package/dist/{chunk-UD3YR4VQ.js.map → chunk-DPXSK2UQ.js.map} +0 -0
- /package/dist/{chunk-25PGBGEV.js.map → chunk-ELM6CPRT.js.map} +0 -0
- /package/dist/{chunk-OR6ZPNF6.js.map → chunk-ENV2K73V.js.map} +0 -0
- /package/dist/{chunk-H3JUXG2J.js.map → chunk-HSVLNS27.js.map} +0 -0
- /package/dist/{chunk-GGLJSAPH.js.map → chunk-ITDU6XPR.js.map} +0 -0
- /package/dist/{chunk-XYCFKCVZ.js.map → chunk-IZIKQFAC.js.map} +0 -0
- /package/dist/{chunk-HJOT7JXK.js.map → chunk-JBQOE3XL.js.map} +0 -0
- /package/dist/{chunk-A2WWDGJJ.js.map → chunk-KN2Q5NOL.js.map} +0 -0
- /package/dist/{chunk-LXKLBMHD.js.map → chunk-KXQVUSLI.js.map} +0 -0
- /package/dist/{chunk-ASTB4YJL.js.map → chunk-KY4PEPYW.js.map} +0 -0
- /package/dist/{chunk-YVS5MBND.js.map → chunk-LLHJODMO.js.map} +0 -0
- /package/dist/{chunk-MHOV3CQN.js.map → chunk-M5ARBNKW.js.map} +0 -0
- /package/dist/{chunk-SFJV4CFP.js.map → chunk-MF3W2PJ7.js.map} +0 -0
- /package/dist/{chunk-XGECMN4V.js.map → chunk-NEKE5PRJ.js.map} +0 -0
- /package/dist/{chunk-OEVMCP42.js.map → chunk-NG562U46.js.map} +0 -0
- /package/dist/{chunk-I3P3NKFG.js.map → chunk-ODXNPBKO.js.map} +0 -0
- /package/dist/{chunk-PIHCHWI7.js.map → chunk-PTPNWD53.js.map} +0 -0
- /package/dist/{chunk-OBZMQWQA.js.map → chunk-QI4MWDJS.js.map} +0 -0
- /package/dist/{chunk-SMBP7A4F.js.map → chunk-QIAK5VU7.js.map} +0 -0
- /package/dist/{chunk-R3HBG6VK.js.map → chunk-QZFKUU4A.js.map} +0 -0
- /package/dist/{chunk-VDH46ZCF.js.map → chunk-R2JJUSD3.js.map} +0 -0
- /package/dist/{chunk-5MPW7QWT.js.map → chunk-SC7YWKOW.js.map} +0 -0
- /package/dist/{chunk-TLNE6GTG.js.map → chunk-TCFTRE7G.js.map} +0 -0
- /package/dist/{chunk-VEMUIRKC.js.map → chunk-TOOCSXXQ.js.map} +0 -0
- /package/dist/{chunk-TSZLYFYT.js.map → chunk-UOYIAURS.js.map} +0 -0
- /package/dist/{chunk-27TI6URK.js.map → chunk-UQMZU7HM.js.map} +0 -0
- /package/dist/{chunk-QFXZTQL7.js.map → chunk-UW3TUDJR.js.map} +0 -0
- /package/dist/{chunk-UHN3ELBL.js.map → chunk-V5EBEJON.js.map} +0 -0
- /package/dist/{chunk-2A25NRQT.js.map → chunk-V62JQXIC.js.map} +0 -0
- /package/dist/{chunk-TMBDUFOH.js.map → chunk-VNHXMVTF.js.map} +0 -0
- /package/dist/{chunk-L2V4ZYCZ.js.map → chunk-VYZOGC65.js.map} +0 -0
- /package/dist/{chunk-DJGO6WYW.js.map → chunk-W2WHWA5J.js.map} +0 -0
- /package/dist/{chunk-KUKZNLCF.js.map → chunk-W5MWHAAI.js.map} +0 -0
- /package/dist/{chunk-LTJSD2MC.js.map → chunk-W7MCRAQ4.js.map} +0 -0
- /package/dist/{chunk-7BPB4PXN.js.map → chunk-WIFDQWVX.js.map} +0 -0
- /package/dist/{chunk-XEVHWVBT.js.map → chunk-XNDOPTDJ.js.map} +0 -0
- /package/dist/{chunk-CFOXBJRN.js.map → chunk-Y34DKDJI.js.map} +0 -0
- /package/dist/{chunk-3CLZOKEI.js.map → chunk-YD54NZIX.js.map} +0 -0
- /package/dist/{chunk-5XVYIBJD.js.map → chunk-YQOONCKH.js.map} +0 -0
- /package/dist/{chunk-PPRAWJMR.js.map → chunk-YWJS3RL5.js.map} +0 -0
- /package/dist/{chunk-ZEC5X3RH.js.map → chunk-YYJH3TPJ.js.map} +0 -0
- /package/dist/{chunk-GULCZWSK.js.map → chunk-Z23FQVGN.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as Z}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as Z}from"./chunk-TOOCSXXQ.js";import{a as I}from"./chunk-VFRHMNLJ.js";import{a as Q,b as W,c as X,f as Y}from"./chunk-VTWVHO4F.js";import{a as C}from"./chunk-HN5HLFTB.js";import{a as G}from"./chunk-KFYWUBRS.js";import{c as ee}from"./chunk-3YTML5RG.js";import{a as z}from"./chunk-LKVQ32ZK.js";import{b as K,h as M}from"./chunk-G2LZFGZA.js";import{a as o}from"./chunk-P37U34EQ.js";import{number as Be,object as se}from"yup";import{useCallback as je,useEffect as te,useMemo as we,useRef as Re,useState as j}from"react";import{string as ne,ValidationError as re}from"yup";import{jsx as ie}from"react/jsx-runtime";var O={title:"Estimation",includeBenefits:!1,includeCostBreakdowns:!1,includePremiumBenefits:!1,enableCurrencyConversion:!1,includeEstimationTitle:!1,includeManagementFee:!1},Pe=o(t=>z(I.data.schema,void 0,t),"useStaticSchema");function xe(t,i){if(typeof t=="object"&&t!==null&&"title"in t){let l=t.title;if(l)return l}return i==="my_hiring_budget"?"Hiring budget":"Employee's annual salary"}o(xe,"getSalaryTitle");var ze=o(({defaultRegion:t,defaultCurrency:i,defaultSalary:l,estimationOptions:s,options:n,version:a}={estimationOptions:O})=>{let u=Re({fields:{}}),[k,h]=j(t),[w,R]=j(),[m,q]=j(),[H,le]=j(),{data:_,isLoading:ue}=Q({includePremiumBenefits:s.includePremiumBenefits}),{data:d,isLoading:ce}=W(),me=k||w?.value,{data:P,isLoading:de}=Y(me,{includePremiumBenefits:s.includePremiumBenefits,options:n}),U=X(),{mutateAsync:fe}=K(U),b=w?.currency,p=n?.jsfModify?.fields?.salary,F=p&&typeof p=="object"&&"presentation"in p?p.presentation:void 0,L=je(()=>{let e=b&&m?b!==m:!1;return b!==m?{from:m,to:b,shouldSwapOrder:e}:{from:b,to:m,shouldSwapOrder:e}},[b,m]),J=s.showManagementFee,$=s.includeEstimationTitle,ge=we(()=>{let{from:e,to:r,shouldSwapOrder:c}=L(),g=xe(p,H);return{fields:{salary:{...p,title:g,presentation:{salary_conversion_properties:{label:F?.salary_conversion_properties?.label,description:F?.salary_conversion_properties?.description},currencies:{from:e,to:r},Component:o(y=>ie(Z,{...y,shouldSwapOrder:c,conversionType:a==="marketing"?"no_spread":"spread",defaultValue:l}),"Component")}},hiring_budget:{...n?.jsfModify?.fields?.hiring_budget,presentation:{hidden:a=="marketing"}},management:{...n?.jsfModify?.fields?.management,properties:{...n?.jsfModify?.fields?.management?.properties,management_fee:{...n?.jsfModify?.fields?.management?.properties?.management_fee,"x-jsf-presentation":{inputType:"money",additionalProps:{currency:m||"USD"}}}},presentation:{...typeof n?.jsfModify?.fields?.management=="object"?(n?.jsfModify?.fields?.management)["x-jsf-presentation"]:{},hidden:!J,Component:o(y=>ie(ee,{...y,variant:"inset",features:{toggle:{enabled:!0,stateField:"management._expanded",labels:{expand:"Define",collapse:"Remove"}}}}),"Component")}},estimation_title:{...n?.jsfModify?.fields?.estimation_title,"x-jsf-presentation":{hidden:!$}}}}},[L,p,H,F?.salary_conversion_properties?.label,F?.salary_conversion_properties?.description,n?.jsfModify?.fields?.hiring_budget,n?.jsfModify?.fields?.management,n?.jsfModify?.fields?.estimation_title,a,m,J,$,l]),f=Pe({jsfModify:{fields:{...n?.jsfModify?.fields,...ge?.fields}}});te(()=>{if(t&&_){let e=_.find(({value:r})=>r===t);e&&R(e)}},[t,_]),te(()=>{if(i&&d){let e=d.find(({value:r})=>r===i);e&&q(e.label)}},[i,d]);async function ye(e){return fe(oe(e,s,a))}o(ye,"onSubmit");function pe(e){let r=_?.find(({value:c})=>c===e);r&&r.childRegions.length===0&&r.hasAdditionalFields?h(r.regionSlug):h(void 0),R(r)}o(pe,"onCountryChange");function Ce(e){h(e)}o(Ce,"onRegionChange");function _e(e){le(e.target.value)}o(_e,"onHiringBudgetChange");function be(e){let r=d?.find(c=>c.value===e)?.label;q(r),n?.onCurrencyChange?.(r||"")}o(be,"onChangeCurrency");let E=f.fields.find(e=>e.name==="region");if(E){let e=w?.childRegions.map(r=>({value:r.slug,label:r.name}))??[];E.options=e,E.isVisible=e.length>0,E.required=e.length>0,E.onChange=Ce,E.schema=e.length>0?ne().transform(r=>typeof r=="string"?r:"").required("Region is required"):ne()}if(d){let e=f.fields.find(r=>r.name==="currency");e&&(e.options=d,e.onChange=be)}let v=f.fields.find(e=>e.name==="hiring_budget");if(v&&(v.onChange=_e),_){let e=f.fields.find(r=>r.name==="country");e&&(e.options=_,e.onChange=pe)}let Ee=o(()=>{R(void 0),h(t)},"resetForm"),D=[...f.fields.filter(e=>e.name!=="management"),...P?.fields||[],...f.fields.filter(e=>e.name==="management")],N=ae(f.fields,m||"USD",s.includeEstimationTitle);async function Se(e){let r=null;n?.onValidation?.(e);let c=await M(e,D);try{await N.validate(c,{abortEarly:!1}),r={formErrors:{},yupError:new re([],e)}}catch(S){let B=G(S);r={formErrors:Object.entries(B).reduce((T,[A,V])=>({...T,[A]:V.message}),{}),yupError:S}}let g=P?.handleValidation(c),y=[...r?.yupError.inner||[],...g?.yupError?.inner||[]],x={...r?.yupError?.value||{},...g?.yupError?.value||{}};return{formErrors:{...r?.formErrors||{},...g?.formErrors||{}},yupError:new re(y,x)}}return o(Se,"handleValidation"),{stepState:{current:0,total:1,isLastStep:!0},fields:D,validationSchema:N,parseFormValues:o(async e=>{let{country:r,region:c,currency:g,salary_converted:y,hiring_budget:x,salary_conversion:S,management:B,estimation_title:T,...A}=e,V=e.salary;y==="salary_conversion"&&(V=S);let he=await M({country:r,region:c,salary:V,salary_converted:y,salary_conversion:S,hiring_budget:x,currency:g,management:B,estimation_title:T},f.fields),Fe=await M(A,P?.fields||[]),Ve={currency_code:d?.find(Me=>Me.value===g)?.label};return{...he,...Fe,...Ve}},"parseFormValues"),handleValidation:Se,isSubmitting:U.isPending,isLoading:ue&&ce&&de,onSubmit:ye,resetForm:Ee,currencies:d,meta:{fields:u.current?.fields}}},"useCostCalculator");function ae(t,i,l){let s=t.reduce((n,a)=>(a.name==="salary"||a.name==="salary_conversion"?n[a.name]=a.schema.when("salary_converted",{is:o(u=>u===a.name,"is"),then:o(u=>u.required("Required field"),"then"),otherwise:o(u=>u.optional(),"otherwise")}):a.name==="management"?n[a.name]=se({management_fee:Be().transform(u=>isNaN(u)?void 0:u).min(0,"Management fee must be greater than or equal to 0").max(i?C[i]:C.USD,()=>`Management fee cannot exceed ${(i?C[i]:C.USD)/100} ${i}`)}):a.name==="estimation_title"&&l?n[a.name]=a.schema.required("Required field"):n[a.name]=a.schema,n),{});return se(s)}o(ae,"buildValidationSchema");function Te(t){let i="benefit-";return Object.keys(t).reduce((l,s)=>{let n=t[s];if(n==="none")return l;let u={benefit_group_slug:s.replace(i,""),benefit_tier_slug:n};return[...l,u]},[])}o(Te,"formatBenefits");function Ae(t,i,l){let s=Number(t.management?.management_fee),n=t.currency_code;return{...{region_slug:t.region||t.country,employment_term:t.contract_duration_type??"fixed",title:t.estimation_title||i.title,age:t.age??void 0,...t.benefits&&{benefits:Te(t.benefits)},...i.includeManagementFee&&s&&{discount:{quoted_amount:i.showManagementFee?s:C[n]||C.USD,text:""}}},...Oe(t,l)}}o(Ae,"mapValueToEmployment");function Oe(t,i){let l=i==="marketing"||t.salary_converted==="salary_conversion",s=i==="standard"&&t.salary_converted==="salary",n=t.hiring_budget==="my_hiring_budget";if(l){let a=t.salary_converted==="salary_conversion";return n?{annual_total_cost_in_employer_currency:t.salary}:{[a?"annual_gross_salary_in_employer_currency":"annual_gross_salary"]:t.salary}}return s?n?{annual_total_cost:t.salary}:{annual_gross_salary:t.salary}:{}}o(Oe,"getSalaryFields");function oe(t,i=O,l="standard"){let s=Array.isArray(t)?t:[t];if(s.length===0)throw new Error("At least one employment value is required");return s.length>1&&new Set(s.map(a=>a.currency)).size>1&&console.warn("Multiple currencies detected in array. Using currency from first employment."),{employer_currency_slug:s[0].currency,include_benefits:i.includeBenefits,include_cost_breakdowns:i.includeCostBreakdowns,include_premium_benefits:i.includePremiumBenefits,include_management_fee:i.includeManagementFee,employments:s.map(n=>Ae(n,i,l))}}o(oe,"buildPayload");export{ae as a,oe as b,O as c,ze as d};
|
|
2
|
+
//# sourceMappingURL=chunk-V5EBEJON.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-Y34DKDJI.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function b({onSubmit:m,onSuccess:d,onError:c}){let{contractorOnboardingBag:o}=e(),p=t(async(i,f)=>{try{let a=await o.parseFormValues(i);await m?.(a);let r=await o.onSubmit(i);if(r?.data){await d?.(r?.data),o?.next();return}}catch(a){let r=n(a,o.meta?.fields?.basic_information,f);c?.(r)}},"handleSubmit"),l=o.stepState.values?.basic_information||o.initialValues.basic_information;return u(s,{defaultValues:l,onSubmit:p})}t(b,"BasicInformationStep");export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-V62JQXIC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as Q}from"./chunk-4MB3FE3T.js";import{a as J}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as Q}from"./chunk-4MB3FE3T.js";import{a as J}from"./chunk-ELM6CPRT.js";import{a as H}from"./chunk-NEKE5PRJ.js";import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-PQG6KZIO.js";import{a as Y}from"./chunk-QI4MWDJS.js";import{a as q,b as B,c as L,d as z}from"./chunk-WLPWXK7I.js";import{f as Z,g as K}from"./chunk-7FCKRGGD.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as S}from"./chunk-6PWZ4TBI.js";import{a as N}from"./chunk-PJ6KPGIE.js";import{a as E}from"./chunk-LKVQ32ZK.js";import{a as _,c as v}from"./chunk-2Q462FT7.js";import{s as O}from"./chunk-GZUP2IE6.js";import{b as w,h as u,n as D}from"./chunk-G2LZFGZA.js";import{a as A}from"./chunk-JDIKYCN6.js";import{a as I}from"./chunk-626FTNKA.js";import{e as $}from"./chunk-H2O4CVKF.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=$();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>O({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:_.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:_.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:_.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await u(s,me.fields,{isPartialValidation:!0}):f?await u(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await u(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VNHXMVTF.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-KN2Q5NOL.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function F({onSubmit:t,onSuccess:s,onError:m}){let{terminationBag:o}=e(),d=r(async a=>{let l=await o?.parseFormValues(a,!0);await t?.(l);let i=await o?.onSubmit(a);i?.error?m?.(i.rawError):i?.data&&await s?.(i.data)},"handleSubmit");return u(n,{defaultValues:o.fieldValues,fields:o?.fields,onSubmit:d})}r(F,"AdditionalDetailsForm");export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VYZOGC65.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-AC4MDLIM.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as n}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function S({onSubmit:d,onError:a,onSuccess:m}){let{onboardingBag:r}=s(),c=t(async i=>{try{let e=await r.parseFormValues(i);await d?.(e);let o=await r.onSubmit(i);if(o?.data){await m?.(o.data),r?.next();return}if(o?.error){let p=n(o?.fieldErrors||[],r.meta?.fields?.contract_details);a?.({error:o.error,rawError:o.rawError,fieldErrors:p})}}catch(e){a?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit");return E(l,{defaultValues:r.stepState.values?.contract_details||r.initialValues.contract_details,onSubmit:c})}t(S,"ContractDetailsStep");export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-W2WHWA5J.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as P,b as W,c as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as P,b as W,c as u}from"./chunk-3YTML5RG.js";import{a as l}from"./chunk-OXTA4W4J.js";import{c as y}from"./chunk-Y3CJRZLA.js";import{j as h,m as x}from"./chunk-G2LZFGZA.js";import{a as c}from"./chunk-P37U34EQ.js";import{Fragment as $}from"react";import a from"lodash.omit";var C={...P,fieldset:u,"fieldset-flat":u};import{Fragment as S,jsx as n,jsxs as g}from"react/jsx-runtime";var B=c(({fields:p,fieldsets:d,fieldValues:i,components:m})=>{let{setValue:T,watch:M}=y();if(!p||p.length===0)return null;let J=d&&i?h({fields:p,fieldsets:d,values:i}):p,r=c((e,F,o)=>F.WrapperComponent?n(F.WrapperComponent,{children:e},o):n($,{children:e},o),"wrapWithCustomWrapper");return n(S,{children:J.map(e=>{if(e.calculateDynamicProperties&&(e={...e,...e.calculateDynamicProperties(i,e)||{}}),e.isVisible===!1||e.deprecated||e.hidden)return null;if(x(e)){let t=a(e,"WrapperComponent");return r(n(W,{name:t.name,description:t.description,value:t.const,statement:t.statement,label:t.label,helpCenter:t.meta?.helpCenter}),e,e.name)}if(e.Component){let{Component:t}=e,R=a(e,["Component","WrapperComponent"]);return r(g(S,{children:[n(t,{...R,value:M(e.name),setValue:V=>T(e.name,V)}),e.statement?n(l,{...e.statement}):null,e.extra?e.extra:null]}),e,e.name)}let o=e.type,s=C[o];if(!s)return g("p",{className:"error",children:["Field type ",o," not supported"]});if(o==="fieldset"){let t=a(e,"WrapperComponent");return r(n(s,{...t,components:m}),e,e.name)}if(o==="fieldset-flat"){let t=a(e,"WrapperComponent");return r(n(s,{...t,components:m,isFlatFieldset:!0}),e,e.name)}o==="select"&&e.multiple&&(s=C["multi-select"]);let k=a(e,"WrapperComponent");return r(g(S,{children:[n(s,{...k,component:m&&m[o]}),e.statement?n(l,{...e.statement}):null,e.extra?e.extra:null]}),e,e.name)})})},"JSONSchemaFormFields");export{B as a};
|
|
2
|
+
//# sourceMappingURL=chunk-W5MWHAAI.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-Y34DKDJI.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-G2LZFGZA.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as g}from"react/jsx-runtime";function E({components:m,onSubmit:p,onSuccess:l,onError:c}){let{contractorOnboardingBag:r}=e(),d=i(async(t,P)=>{try{let n=await r.parseFormValues(t);await p?.(n);let o=await r.onSubmit(t);if(o?.data){await l?.(o?.data),r?.next();return}}catch(n){let o=a(n,r.meta?.fields?.pricing_plan,P);c?.(o)}},"handleSubmit"),u=r.stepState.values?.pricing_plan||r.initialValues.pricing_plan;return g(s,{components:m,defaultValues:u,onSubmit:d})}i(E,"PricingPlanStep");export{E as a};
|
|
2
|
+
//# sourceMappingURL=chunk-W7MCRAQ4.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o,b as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o,b as r}from"./chunk-PB6UQ4A4.js";import{a as t}from"./chunk-OXTA4W4J.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";var n={[o]:" Remote provides its Contractor Services Agreement (CSA) \u201Cas is\u201D; it does not constitute legal advice or create an attorney-client relationship with Remote. Remote is not liable for the content You enter herein and You are encouraged to seek independent legal advice tailored to the specific relationship between You and Your Contractor. By use of the CSA, You release Remote from liability for any claim for damages or losses which may arise related to Your use thereof.",[r]:"Remote provides its Contractor Services Agreement (CSA) \u201Cas is\u201D; it does not constitute legal advice or create an attorney-client relationship with Remote. Remote is not liable for the content You enter herein and You are encouraged to seek independent legal advice tailored to the specific relationship between You and Your Contractor."},d=e(({subscription:i})=>a(t,{title:"Contractor Services Agreement",description:n[i],severity:"info"}),"StatementOfWorkDisclaimer");export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WIFDQWVX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-KN2Q5NOL.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function p({onSubmit:t}){let{terminationBag:o}=a(),n=i(async r=>{let m=await o?.parseFormValues(r);await t?.(m),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:n})}i(p,"TerminationDetailsForm");export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XNDOPTDJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-J2ARI3NQ.js";import{b as c}from"./chunk-Q3ALCPJN.js";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-J2ARI3NQ.js";import{b as c}from"./chunk-Q3ALCPJN.js";import{a as l}from"./chunk-W5MWHAAI.js";import{h as m}from"./chunk-Y3CJRZLA.js";import{c as s}from"./chunk-G2LZFGZA.js";import{a}from"./chunk-P37U34EQ.js";import{useEffect as f}from"react";import{jsx as F}from"react/jsx-runtime";import{createElement as V}from"react";function B({defaultValues:p,onSubmit:u,components:S}){let{formId:y,contractorOnboardingBag:o,formRef:t}=c(),r=d({handleValidation:o.handleValidation,defaultValues:p,checkFieldUpdates:o.checkFieldUpdates});f(()=>{t?.setValue&&(t.setValue.current=r.setValue)},[r.setValue,t]),f(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]);let g=a(async(n,b)=>{let i=b?.nativeEvent;if(i?.isDraftSubmission){let{onSuccess:P,onError:E}=i.draftCallbacks;try{await o.onSubmit(n),P?.()}catch(e){let C=o.stepState.currentStep.name,h=o.meta?.fields?.[C],O=s(e?.fieldErrors||[],h);E?.({error:e?.error||e,rawError:e?.rawError||e,fieldErrors:O})}}else await u(n,r)},"handleSubmit");return V(m,{...r,key:`form-${o.stepState.currentStep.name}`},F("form",{id:y,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:F(l,{components:S,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}a(B,"ContractorOnboardingForm");export{B as a};
|
|
2
|
+
//# sourceMappingURL=chunk-Y34DKDJI.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as p}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as p}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-W5MWHAAI.js";import{h as C}from"./chunk-Y3CJRZLA.js";import{c as f,u as E}from"./chunk-G2LZFGZA.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as n}from"react/jsx-runtime";function T({onSubmit:S,onError:w,onSuccess:y,onErrorWithFields:u,shouldResetForm:c,resetFields:a}){let{form:e,formId:V,costCalculatorBag:o}=p(),{formState:{isSubmitSuccessful:s}}=e;R(()=>{if(s&&c){o?.resetForm(),e.reset();return}if(s&&a){let t={...e.getValues()};a.forEach(r=>{t[r]=""}),o?.resetForm(),e.reset(t)}},[s,e,c,o,a]);let b=m(async d=>{try{let t=await o?.parseFormValues(d);o?.meta?.fields&&(o.meta.fields=E(t,o.fields),o.meta.fields.employer_currency_slug=o.meta.fields.currency);let r=await o?.onSubmit(t);if(await S?.(t),r?.data&&!r.error){let i={data:{...r.data.data,employments:r.data.data.employments?.map(l=>({...l,title:t.estimation_title}))}};await y?.(i)}else throw{data:null,error:r?.error,fieldErrors:r?.fieldErrors,rawError:r?.rawError}}catch(t){let r=t,i=r.fieldErrors;if(u){let l=o?.meta?.fields,h=f(i,l);u({error:r.error,rawError:r.rawError,fieldErrors:h})}else w?.(r.error)}},"handleSubmit");return n(C,{...e,children:n("form",{id:V,onSubmit:e.handleSubmit(b),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:n(F,{fields:o?.fields??[]})})})}m(T,"CostCalculatorForm");export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YD54NZIX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-KN2Q5NOL.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function d({onSubmit:m}){let{terminationBag:o}=a(),r=i(async t=>{let n=await o?.parseFormValues(t);await m?.(n),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:r})}i(d,"PaidTimeOffForm");export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YQOONCKH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-AC4MDLIM.js";import{b as o}from"./chunk-PGWKJ6FK.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function u(){let{onboardingBag:e}=o();return r(t,{defaultValues:{},onSubmit:n(async()=>{e?.next()},"handleSubmit")})}n(u,"PreviewEmploymentAgreementStep");export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YWJS3RL5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as R,b as x,c as N,d as A}from"./chunk-DMNKKWLY.js";import{a as T}from"./chunk-ZE3YT3Q6.js";import{a as C}from"./chunk-N6XLGYRK.js";import{b as B}from"./chunk-T5J2Z6ZR.js";import{a as w,b as f}from"./chunk-LOPZZUAF.js";import{n as i,o as n,r as F}from"./chunk-G2LZFGZA.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as G}from"lucide-react";import{useState as P}from"react";import{Fragment as U,jsx as g,jsxs as E}from"react/jsx-runtime";function L({actions:e=[],className:r,label:a,"data-testid":l}){let[_,d]=P(!1);return E("div",{className:i("relative",r),children:[g(B,{"data-testid":l,variant:"ghost","aria-label":a,className:"h-8 w-8 p-0",onClick:()=>d(!_),children:g(G,{className:"h-4 w-4"})}),_&&E(U,{children:[g("div",{className:"fixed inset-0 z-40",onClick:()=>d(!1)}),g("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((c,u)=>g("button",{"data-testid":`${l}-${c.label.toLowerCase().replace(" ","-")}`,className:i("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",c.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{c.onClick(),d(!1)},disabled:c.disabled,children:c.label},u))})]})]})}m(L,"ActionsDropdown");import{ChevronDown as S,Info as $}from"lucide-react";import j from"react-flagpack";import{useState as O}from"react";import{Fragment as b,jsx as o,jsxs as t}from"react/jsx-runtime";var Z={GB:"GB-UKM"},K=m(({title:e,country:r,region:a,annualGrossSalary:l,onDelete:_,onExportPdf:d,onEdit:c})=>{let u=[{label:"Edit",onClick:c},{label:"Export",onClick:d},{label:"Delete",onClick:_}];return t("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[t("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(j,{code:Z[r.alpha_2_code]||r.alpha_2_code})}),t("div",{className:"space-y-1",children:[o("h2",{"data-testid":"estimation-results-header-title",className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),t("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[r.name," ",a?` (${a.name})`:""]}),t("p",{"data-testid":"estimation-results-header-annual-gross-salary",className:"RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]",children:[o("span",{className:"text-[#181818]",children:"Employee annual gross salary:"})," ",l]})]})]}),o(L,{label:"Actions",className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:u})]})},"EstimationResultsHeader"),V=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.",zendeskArticleId:w.employeeOnboardingTimeline}),"getOnboardingTimelineData");function Y({minimumOnboardingDays:e,data:r,className:a}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:t(x,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:t("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),e!=null&&t("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),t(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:r.steps.map(l=>t("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),t("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[r.helpText,r.zendeskArticleId&&o(f,{zendeskId:r.zendeskArticleId,children:"Learn more"})]})]})]})})}m(Y,"OnboardingTimeline");function q({className:e,countryBenefitsUrl:r,countryGuideUrl:a,country:l}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__HiringSection w-full",e),children:t(x,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:t("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:t("div",{className:"flex flex-col gap-1",children:[a&&o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),r&&o("a",{href:r,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(q,"HiringSection");function J({isMultipleCurrency:e,className:r}){return t("div",{className:i("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",r),children:[o("span",{"aria-hidden":!0}),e?t(b,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):t(b,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m(J,"EstimationHeaders");function I({label:e,amounts:r,className:a,children:l}){let[_,d]=O(!0);return t("div",{className:i("RemoteFlows__EstimationResults__Row",a),children:[t("div",{className:"RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center",children:[t("div",{className:"RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2",children:[o("span",{className:i("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>d(!_),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(S,{className:`h-4 w-4 text-muted-foreground transition-transform ${_?"rotate-180":""}`})})]}),Array.isArray(r)?r.map((c,u)=>o("span",{className:i("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:c},u)):t(b,{children:[o("span",{}),o("span",{className:i("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:r})]})]}),_&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(I,"EstimationRow");function Q({item:e,isMultipleCurrency:r,level:a=0}){let[l,_]=O(!1),d=e.children&&e.children.length>0,c=a>0,u=e.isCollapsible||d;return t("li",{className:i("RemoteFlows__BreakdownList__Item pb-3",c&&"pb-1"),children:[t("div",{className:i(r?"RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between":"RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between"),children:[t("div",{className:i("RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2",c&&"pl-3"),children:[!c&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),u?t("button",{onClick:()=>_(!l),className:"RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1",children:[o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),o(S,{className:`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})]}):o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1"),children:e.label}),e.tooltip&&o(T,{content:t(b,{children:[o("span",{dangerouslySetInnerHTML:{__html:F(e.tooltip)}})," ",e.zendeskId&&o(f,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o($,{className:i("RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground",c?"h-3 w-3":"h-4 w-4")})})})]}),r?t(b,{children:[o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employee-amount",className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employer-amount",className:i("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{"data-testid":e.dataSelector,className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),d&&l&&o("div",{className:"mt-1",children:o(k,{items:e.children,isMultipleCurrency:r,level:a+1})})]})}m(Q,"BreakdownListItem");function k({items:e,isMultipleCurrency:r,className:a,level:l}){return o("ul",{className:i("RemoteFlows__BreakdownList list-none",a),children:e.map((_,d)=>o(Q,{item:_,isMultipleCurrency:r,level:l},d))})}m(k,"BreakdownList");var pe=m(({estimation:e,title:r,components:a,onDelete:l,onExportPdf:_,onEdit:d})=>{let c=a?.HiringSection||q,u=a?.OnboardingTimeline||Y,z=a?.Header||K,h=a?.Footer,H=V(),p=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,v=e.employer_currency_costs.monthly_management_fee,D=e.region.code!==e.country.code,M=n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code);return t(C,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(z,{title:r,annualGrossSalary:M,region:D?e.region:void 0,country:e.country,onDelete:l,onExportPdf:_,onEdit:d})}),t("div",{className:"RemoteFlows__Separator",children:[o(J,{isMultipleCurrency:p,className:"mb-3"}),o(I,{label:"Monthly total cost",amounts:p?[n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross monthly salary",regionalAmount:n(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.code),zendeskId:w.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Monthly fee",regionalAmount:n(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})]}),o("div",{className:"RemoteFlows__Separator",children:o(I,{label:"Annual total cost",amounts:p?[n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross annual salary",dataSelector:"annual-gross-salary",regionalAmount:n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.code)},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Annual fee",regionalAmount:n(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:H})}),o(c,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),h&&o(h,{})]})},"EstimationResults");export{pe as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as R,b as x,c as N,d as A}from"./chunk-DMNKKWLY.js";import{a as T}from"./chunk-ZE3YT3Q6.js";import{a as C}from"./chunk-N6XLGYRK.js";import{b as B}from"./chunk-T5J2Z6ZR.js";import{a as w,c as f}from"./chunk-2Q462FT7.js";import{n as i,o as n,r as F}from"./chunk-G2LZFGZA.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as G}from"lucide-react";import{useState as P}from"react";import{Fragment as U,jsx as g,jsxs as E}from"react/jsx-runtime";function L({actions:e=[],className:r,label:a,"data-testid":l}){let[_,d]=P(!1);return E("div",{className:i("relative",r),children:[g(B,{"data-testid":l,variant:"ghost","aria-label":a,className:"h-8 w-8 p-0",onClick:()=>d(!_),children:g(G,{className:"h-4 w-4"})}),_&&E(U,{children:[g("div",{className:"fixed inset-0 z-40",onClick:()=>d(!1)}),g("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((c,u)=>g("button",{"data-testid":`${l}-${c.label.toLowerCase().replace(" ","-")}`,className:i("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",c.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{c.onClick(),d(!1)},disabled:c.disabled,children:c.label},u))})]})]})}m(L,"ActionsDropdown");import{ChevronDown as S,Info as $}from"lucide-react";import j from"react-flagpack";import{useState as O}from"react";import{Fragment as b,jsx as o,jsxs as t}from"react/jsx-runtime";var Z={GB:"GB-UKM"},K=m(({title:e,country:r,region:a,annualGrossSalary:l,onDelete:_,onExportPdf:d,onEdit:c})=>{let u=[{label:"Edit",onClick:c},{label:"Export",onClick:d},{label:"Delete",onClick:_}];return t("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[t("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(j,{code:Z[r.alpha_2_code]||r.alpha_2_code})}),t("div",{className:"space-y-1",children:[o("h2",{"data-testid":"estimation-results-header-title",className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),t("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[r.name," ",a?` (${a.name})`:""]}),t("p",{"data-testid":"estimation-results-header-annual-gross-salary",className:"RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]",children:[o("span",{className:"text-[#181818]",children:"Employee annual gross salary:"})," ",l]})]})]}),o(L,{label:"Actions",className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:u})]})},"EstimationResultsHeader"),V=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.",zendeskArticleId:w.employeeOnboardingTimeline}),"getOnboardingTimelineData");function Y({minimumOnboardingDays:e,data:r,className:a}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:t(x,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:t("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),e!=null&&t("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),t(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:r.steps.map(l=>t("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),t("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[r.helpText,r.zendeskArticleId&&o(f,{zendeskId:r.zendeskArticleId,children:"Learn more"})]})]})]})})}m(Y,"OnboardingTimeline");function q({className:e,countryBenefitsUrl:r,countryGuideUrl:a,country:l}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__HiringSection w-full",e),children:t(x,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:t("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:t("div",{className:"flex flex-col gap-1",children:[a&&o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),r&&o("a",{href:r,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(q,"HiringSection");function J({isMultipleCurrency:e,className:r}){return t("div",{className:i("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",r),children:[o("span",{"aria-hidden":!0}),e?t(b,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):t(b,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m(J,"EstimationHeaders");function I({label:e,amounts:r,className:a,children:l}){let[_,d]=O(!0);return t("div",{className:i("RemoteFlows__EstimationResults__Row",a),children:[t("div",{className:"RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center",children:[t("div",{className:"RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2",children:[o("span",{className:i("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>d(!_),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(S,{className:`h-4 w-4 text-muted-foreground transition-transform ${_?"rotate-180":""}`})})]}),Array.isArray(r)?r.map((c,u)=>o("span",{className:i("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:c},u)):t(b,{children:[o("span",{}),o("span",{className:i("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:r})]})]}),_&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(I,"EstimationRow");function Q({item:e,isMultipleCurrency:r,level:a=0}){let[l,_]=O(!1),d=e.children&&e.children.length>0,c=a>0,u=e.isCollapsible||d;return t("li",{className:i("RemoteFlows__BreakdownList__Item pb-3",c&&"pb-1"),children:[t("div",{className:i(r?"RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between":"RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between"),children:[t("div",{className:i("RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2",c&&"pl-3"),children:[!c&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),u?t("button",{onClick:()=>_(!l),className:"RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1",children:[o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),o(S,{className:`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})]}):o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1"),children:e.label}),e.tooltip&&o(T,{content:t(b,{children:[o("span",{dangerouslySetInnerHTML:{__html:F(e.tooltip)}})," ",e.zendeskId&&o(f,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o($,{className:i("RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground",c?"h-3 w-3":"h-4 w-4")})})})]}),r?t(b,{children:[o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employee-amount",className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employer-amount",className:i("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{"data-testid":e.dataSelector,className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),d&&l&&o("div",{className:"mt-1",children:o(k,{items:e.children,isMultipleCurrency:r,level:a+1})})]})}m(Q,"BreakdownListItem");function k({items:e,isMultipleCurrency:r,className:a,level:l}){return o("ul",{className:i("RemoteFlows__BreakdownList list-none",a),children:e.map((_,d)=>o(Q,{item:_,isMultipleCurrency:r,level:l},d))})}m(k,"BreakdownList");var pe=m(({estimation:e,title:r,components:a,onDelete:l,onExportPdf:_,onEdit:d})=>{let c=a?.HiringSection||q,u=a?.OnboardingTimeline||Y,z=a?.Header||K,h=a?.Footer,H=V(),p=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,v=e.employer_currency_costs.monthly_management_fee,D=e.region.code!==e.country.code,M=n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code);return t(C,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(z,{title:r,annualGrossSalary:M,region:D?e.region:void 0,country:e.country,onDelete:l,onExportPdf:_,onEdit:d})}),t("div",{className:"RemoteFlows__Separator",children:[o(J,{isMultipleCurrency:p,className:"mb-3"}),o(I,{label:"Monthly total cost",amounts:p?[n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross monthly salary",regionalAmount:n(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.code),zendeskId:w.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Monthly fee",regionalAmount:n(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})]}),o("div",{className:"RemoteFlows__Separator",children:o(I,{label:"Annual total cost",amounts:p?[n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross annual salary",dataSelector:"annual-gross-salary",regionalAmount:n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.code)},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Annual fee",regionalAmount:n(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:H})}),o(c,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),h&&o(h,{})]})},"EstimationResults");export{pe as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YYJH3TPJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-Z23FQVGN.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-IHGCXP2X.js";import{a as w}from"./chunk-GSB44SSJ.js";import{a as x}from"./chunk-343R3QEG.js";import{a as p}from"./chunk-KAX6IHET.js";import{a as D}from"./chunk-V3J5DAMB.js";import{a as F}from"./chunk-WYUPZMPN.js";import{a as n}from"./chunk-YS6VDGFW.js";import{a as s}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-F35ALUPA.js";import{a as k}from"./chunk-IHGCXP2X.js";import{a as w}from"./chunk-GSB44SSJ.js";import{a as x}from"./chunk-343R3QEG.js";import{a as u}from"./chunk-Q6PTVBDS.js";import{a as p}from"./chunk-KAX6IHET.js";import{a as D}from"./chunk-V3J5DAMB.js";import{a as F}from"./chunk-WYUPZMPN.js";import{a as n}from"./chunk-YS6VDGFW.js";import{a as s}from"./chunk-KY4PEPYW.js";import{a as c}from"./chunk-3GCJILCE.js";import{a as t}from"./chunk-ITDU6XPR.js";import{a as o}from"./chunk-ZYIEPPSE.js";import{a as r}from"./chunk-UOYIAURS.js";import"./chunk-DJIQISA2.js";import{a as l}from"./chunk-2BCZXNBX.js";import{a as m}from"./chunk-HSVLNS27.js";import"./chunk-3B6BHFDV.js";import{a as i}from"./chunk-ECGNGVSC.js";import{a as f}from"./chunk-7D4XFAQR.js";import{a}from"./chunk-MF3W2PJ7.js";import{a as e}from"./chunk-MEPIOKJQ.js";import"./chunk-JXZX66MM.js";import"./chunk-S3EXF5DV.js";import"./chunk-QJJZTAG2.js";import"./chunk-LJUWER2H.js";import"./chunk-MHIY35CK.js";import"./chunk-3UBFABDS.js";import"./chunk-ZOTY3CAM.js";import"./chunk-R4TM2Y3K.js";import"./chunk-BUOHZMK6.js";import{a as d}from"./chunk-RR57VT45.js";import"./chunk-FQFLC6YA.js";import"./chunk-LLHJODMO.js";import"./chunk-T5J2Z6ZR.js";import"./chunk-OV6PV4N5.js";import"./chunk-2Q462FT7.js";import"./chunk-Y3CJRZLA.js";import"./chunk-GZUP2IE6.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";var q={button:b,checkbox:s,countries:r,date:m,drawer:D,email:f,fieldsetToggle:d,file:e,"multi-select":u,number:i,radio:a,select:o,statement:l,textarea:t,text:p,zendeskDrawer:F,table:n,"work-schedule":c,pdfViewer:k,tel:w,time:x};export{q as defaultComponents};
|
|
2
2
|
//# sourceMappingURL=default-components.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { PropsWithChildren, ButtonHTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
|
-
declare function ContractAmendmentBack({ children, ...props }: PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> & Record<string, unknown>):
|
|
4
|
+
declare function ContractAmendmentBack({ children, ...props }: PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> & Record<string, unknown>): React.JSX.Element;
|
|
5
5
|
|
|
6
6
|
export { ContractAmendmentBack };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { P as PostV1ContractAmendmentsError, b as ContractAmendmentResponse } from '../../types.gen-CTQ9C-mR.js';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
|
|
@@ -25,6 +25,6 @@ type ContractAmendmentConfirmationFormProps = {
|
|
|
25
25
|
*/
|
|
26
26
|
onSuccess?: (data: ContractAmendmentResponse) => void | Promise<void>;
|
|
27
27
|
};
|
|
28
|
-
declare function ContractAmendmentConfirmationForm({ onSubmit, onError, onSuccess, }: ContractAmendmentConfirmationFormProps):
|
|
28
|
+
declare function ContractAmendmentConfirmationForm({ onSubmit, onError, onSuccess, }: ContractAmendmentConfirmationFormProps): React.JSX.Element | null;
|
|
29
29
|
|
|
30
30
|
export { ContractAmendmentConfirmationForm };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContractAmendmentConfirmationForm } from './ContractAmendmentConfirmationForm.js';
|
|
2
|
-
import * as
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
3
|
import { ContractAmendmentBack } from './ContractAmendmentBack.js';
|
|
4
4
|
import { ContractAmendmentForm } from './ContractAmendmentForm.js';
|
|
5
5
|
import { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
|
|
@@ -7,7 +7,6 @@ import { useContractAmendment } from './hooks.js';
|
|
|
7
7
|
import { ContractAmendmentParams } from './types.js';
|
|
8
8
|
import '../../types.gen-CTQ9C-mR.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
|
-
import 'react';
|
|
11
10
|
import '../../mutations-DZjKx4tI.js';
|
|
12
11
|
import '../../remoteFlows-C4Vv3_7t.js';
|
|
13
12
|
import 'yup';
|
|
@@ -42,6 +41,6 @@ type ContractAmendmentRenderProps = {
|
|
|
42
41
|
type ContractAmendmentFlowProps = ContractAmendmentParams & {
|
|
43
42
|
render: ({ contractAmendmentBag, components, }: ContractAmendmentRenderProps) => React.ReactNode;
|
|
44
43
|
};
|
|
45
|
-
declare function ContractAmendmentFlow({ employmentId, countryCode, options, render, }: ContractAmendmentFlowProps):
|
|
44
|
+
declare function ContractAmendmentFlow({ employmentId, countryCode, options, render, }: ContractAmendmentFlowProps): React$1.JSX.Element;
|
|
46
45
|
|
|
47
46
|
export { ContractAmendmentFlow, type ContractAmendmentRenderProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-M5ARBNKW.js";import"../../chunk-74ICDGQK.js";import"../../chunk-UW3TUDJR.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-H66IKMI4.js";import"../../chunk-WMJP2BO5.js";import"../../chunk-WMBHCIFS.js";import"../../chunk-PJ6KPGIE.js";import"../../chunk-W5MWHAAI.js";import"../../chunk-3YTML5RG.js";import"../../chunk-OXTA4W4J.js";import"../../chunk-LKVQ32ZK.js";import"../../chunk-RR57VT45.js";import"../../chunk-FQFLC6YA.js";import"../../chunk-LLHJODMO.js";import"../../chunk-T5J2Z6ZR.js";import"../../chunk-OV6PV4N5.js";import"../../chunk-2Q462FT7.js";import"../../chunk-Y3CJRZLA.js";import"../../chunk-GZUP2IE6.js";import"../../chunk-G2LZFGZA.js";import"../../chunk-JDIKYCN6.js";import"../../chunk-626FTNKA.js";import"../../chunk-SWCZJY6I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentFlow.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { c as PostV1ContractAmendmentsAutomatableError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-CTQ9C-mR.js';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
|
|
@@ -28,6 +28,6 @@ type ContractAmendmentFormProps = {
|
|
|
28
28
|
*/
|
|
29
29
|
onSuccess?: (data: ContractAmendmentAutomatableResponse) => void | Promise<void>;
|
|
30
30
|
};
|
|
31
|
-
declare function ContractAmendmentForm({ onSubmit, onError, onSuccess, }: ContractAmendmentFormProps):
|
|
31
|
+
declare function ContractAmendmentForm({ onSubmit, onError, onSuccess, }: ContractAmendmentFormProps): React.JSX.Element;
|
|
32
32
|
|
|
33
33
|
export { ContractAmendmentForm };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-UW3TUDJR.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-W5MWHAAI.js";import"../../chunk-3YTML5RG.js";import"../../chunk-OXTA4W4J.js";import"../../chunk-RR57VT45.js";import"../../chunk-FQFLC6YA.js";import"../../chunk-LLHJODMO.js";import"../../chunk-T5J2Z6ZR.js";import"../../chunk-OV6PV4N5.js";import"../../chunk-2Q462FT7.js";import"../../chunk-Y3CJRZLA.js";import"../../chunk-GZUP2IE6.js";import"../../chunk-G2LZFGZA.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentForm.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { PropsWithChildren, ButtonHTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
|
-
declare function ContractAmendmentSubmit({ children, ...props }: PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> & Record<string, unknown>):
|
|
4
|
+
declare function ContractAmendmentSubmit({ children, ...props }: PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> & Record<string, unknown>): React.JSX.Element;
|
|
5
5
|
|
|
6
6
|
export { ContractAmendmentSubmit };
|
|
@@ -3,11 +3,10 @@ export { ContractAmendmentFlow, ContractAmendmentRenderProps } from './ContractA
|
|
|
3
3
|
export { ContractAmendmentForm } from './ContractAmendmentForm.js';
|
|
4
4
|
export { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
|
|
5
5
|
export { useContractAmendment } from './hooks.js';
|
|
6
|
-
import 'react
|
|
6
|
+
import 'react';
|
|
7
7
|
import '../../types.gen-CTQ9C-mR.js';
|
|
8
8
|
import 'react-hook-form';
|
|
9
9
|
import './ContractAmendmentBack.js';
|
|
10
|
-
import 'react';
|
|
11
10
|
import './types.js';
|
|
12
11
|
import '../types.js';
|
|
13
12
|
import '../../remoteFlows-C4Vv3_7t.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-
|
|
1
|
+
import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-M5ARBNKW.js";import{a}from"../../chunk-74ICDGQK.js";import{a as b}from"../../chunk-UW3TUDJR.js";import"../../chunk-KFYWUBRS.js";import{a as c}from"../../chunk-H66IKMI4.js";import{a as d}from"../../chunk-WMJP2BO5.js";import"../../chunk-WMBHCIFS.js";import"../../chunk-PJ6KPGIE.js";import"../../chunk-W5MWHAAI.js";import"../../chunk-3YTML5RG.js";import"../../chunk-OXTA4W4J.js";import"../../chunk-LKVQ32ZK.js";import"../../chunk-RR57VT45.js";import"../../chunk-FQFLC6YA.js";import"../../chunk-LLHJODMO.js";import"../../chunk-T5J2Z6ZR.js";import"../../chunk-OV6PV4N5.js";import"../../chunk-2Q462FT7.js";import"../../chunk-Y3CJRZLA.js";import"../../chunk-GZUP2IE6.js";import"../../chunk-G2LZFGZA.js";import"../../chunk-JDIKYCN6.js";import"../../chunk-626FTNKA.js";import"../../chunk-SWCZJY6I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { C as ContractorOnboardingFlowProps } from '../../types-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { C as ContractorOnboardingFlowProps } from '../../types-BcjbPv3W.js';
|
|
3
3
|
import './constants.js';
|
|
4
4
|
import '../../types.gen-CTQ9C-mR.js';
|
|
5
5
|
import './components/OnboardingBack.js';
|
|
6
|
-
import 'react';
|
|
7
6
|
import './components/OnboardingSubmit.js';
|
|
8
7
|
import '../../remoteFlows-C4Vv3_7t.js';
|
|
9
8
|
import 'yup';
|
|
@@ -13,7 +12,7 @@ import '@tanstack/query-core';
|
|
|
13
12
|
import '../useStepState.js';
|
|
14
13
|
import '@remoteoss/remote-json-schema-form-kit';
|
|
15
14
|
import './utils.js';
|
|
16
|
-
import '../../types-
|
|
15
|
+
import '../../types-CBE9Gstk.js';
|
|
17
16
|
import '../Onboarding/components/OnboardingBack.js';
|
|
18
17
|
import '../Onboarding/components/OnboardingInvite.js';
|
|
19
18
|
import '../Onboarding/components/OnboardingSubmit.js';
|
|
@@ -26,6 +25,6 @@ import './components/OnboardingInvite.js';
|
|
|
26
25
|
import './components/ContractReviewButton.js';
|
|
27
26
|
import './components/SaveDraftButton.js';
|
|
28
27
|
|
|
29
|
-
declare const ContractorOnboardingFlow: ({ render, employmentId, externalId, countryCode, skipSteps, initialValues, options, }: ContractorOnboardingFlowProps) =>
|
|
28
|
+
declare const ContractorOnboardingFlow: ({ render, employmentId, externalId, countryCode, skipSteps, initialValues, options, }: ContractorOnboardingFlowProps) => React.JSX.Element;
|
|
30
29
|
|
|
31
30
|
export { ContractorOnboardingFlow };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-4VEUIX5E.js";import"../../chunk-KVUKJU5U.js";import"../../chunk-6P536SW2.js";import"../../chunk-34U3WJ75.js";import"../../chunk-SVVZOMLQ.js";import"../../chunk-QIAK5VU7.js";import"../../chunk-CW7CHRMN.js";import"../../chunk-DNAPYU5I.js";import"../../chunk-DB4JHJ3Z.js";import"../../chunk-W7MCRAQ4.js";import"../../chunk-V62JQXIC.js";import"../../chunk-33VF3QHP.js";import"../../chunk-WIFDQWVX.js";import"../../chunk-Y34DKDJI.js";import"../../chunk-OL5C4QEH.js";import"../../chunk-J2ARI3NQ.js";import"../../chunk-Q3ALCPJN.js";import"../../chunk-36IU27QH.js";import"../../chunk-IZIKQFAC.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-UQMZU7HM.js";import"../../chunk-3UDRMQNE.js";import"../../chunk-Y3YYLANJ.js";import"../../chunk-6PWZ4TBI.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-NW3D7CPK.js";import"../../chunk-COAJUZSE.js";import"../../chunk-PB6UQ4A4.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-PJ6KPGIE.js";import"../../chunk-UYGDMJF2.js";import"../../chunk-TJLXZ2ZK.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-54Z4QJ3Q.js";import"../../chunk-W5MWHAAI.js";import"../../chunk-3YTML5RG.js";import"../../chunk-OXTA4W4J.js";import"../../chunk-LKVQ32ZK.js";import"../../chunk-BUOHZMK6.js";import"../../chunk-RR57VT45.js";import"../../chunk-FQFLC6YA.js";import"../../chunk-LLHJODMO.js";import"../../chunk-T5J2Z6ZR.js";import"../../chunk-OV6PV4N5.js";import"../../chunk-2Q462FT7.js";import"../../chunk-Y3CJRZLA.js";import"../../chunk-GZUP2IE6.js";import"../../chunk-G2LZFGZA.js";import"../../chunk-JDIKYCN6.js";import"../../chunk-626FTNKA.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
|
|
2
2
|
//# sourceMappingURL=ContractorOnboarding.js.map
|