@remoteoss/remote-flows 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-RC3XP5WU.js → chunk-26ZOPH2I.js} +2 -2
- package/dist/{chunk-25U3HC77.js → chunk-2L3ISQJL.js} +2 -2
- package/dist/chunk-2MG7YOPU.js +2 -0
- package/dist/chunk-2MG7YOPU.js.map +1 -0
- package/dist/chunk-3UDG4IJO.js +2 -0
- package/dist/chunk-3UDG4IJO.js.map +1 -0
- package/dist/{chunk-43IIMISK.js → chunk-4OAWZYH7.js} +2 -2
- package/dist/chunk-4X77DTSW.js +2 -0
- package/dist/chunk-4X77DTSW.js.map +1 -0
- package/dist/{chunk-IJQDK7KG.js → chunk-5ENAY65Y.js} +2 -2
- package/dist/{chunk-5Y2RV54X.js → chunk-5PPUPDYP.js} +2 -2
- package/dist/{chunk-PJY4TN7I.js → chunk-6TY7IKSG.js} +2 -2
- package/dist/chunk-7FAT6WCC.js +2 -0
- package/dist/chunk-7FAT6WCC.js.map +1 -0
- package/dist/chunk-7WDO47KQ.js +2 -0
- package/dist/chunk-7WDO47KQ.js.map +1 -0
- package/dist/chunk-7XDJV7LA.js +2 -0
- package/dist/chunk-7XDJV7LA.js.map +1 -0
- package/dist/{chunk-CCL5LNHC.js → chunk-A2KMKSSC.js} +2 -2
- package/dist/{chunk-GEHM46QD.js → chunk-ACQ3OEOE.js} +2 -2
- package/dist/{chunk-CEJ24TSW.js → chunk-ANHUECRI.js} +2 -2
- package/dist/chunk-AP56UUME.js +2 -0
- package/dist/chunk-AP56UUME.js.map +1 -0
- package/dist/{chunk-2RBD2MJR.js → chunk-AVX6IOGC.js} +2 -2
- package/dist/chunk-BWJAHRV6.js +2 -0
- package/dist/chunk-BWJAHRV6.js.map +1 -0
- package/dist/{chunk-3WE5QB4I.js → chunk-CYDWBHAA.js} +2 -2
- package/dist/chunk-DFJNVGK4.js +2 -0
- package/dist/chunk-DFJNVGK4.js.map +1 -0
- package/dist/{chunk-T2UJOEUA.js → chunk-E76DWINZ.js} +2 -2
- package/dist/{chunk-E5VV7WAZ.js → chunk-EGSRN2CQ.js} +2 -2
- package/dist/{chunk-MAVVGCUM.js → chunk-FJPQPOK3.js} +2 -2
- package/dist/{chunk-K2I7ZL3Z.js → chunk-FPJLWY23.js} +2 -2
- package/dist/{chunk-LA6ZJLTB.js → chunk-FQYK5BJV.js} +2 -2
- package/dist/{chunk-MB6ZGX2O.js → chunk-GD425MMM.js} +2 -2
- package/dist/{chunk-ZJ7524CZ.js → chunk-GHV4Q4MB.js} +2 -2
- package/dist/{chunk-BSUVUGJG.js → chunk-GWICTLVR.js} +2 -2
- package/dist/{chunk-FHQWEM5E.js → chunk-H3ZR4EW5.js} +2 -2
- package/dist/{chunk-LAYZ6XET.js → chunk-H7L735T7.js} +2 -2
- package/dist/{chunk-6IKJCDQU.js → chunk-HS4VEURD.js} +2 -2
- package/dist/chunk-HWEJIPSK.js +2 -0
- package/dist/{chunk-3O3Q24JL.js.map → chunk-HWEJIPSK.js.map} +1 -1
- package/dist/{chunk-I4XJ764Y.js → chunk-IJR44ISO.js} +2 -2
- package/dist/chunk-JCKQQFA4.js +2 -0
- package/dist/{chunk-CHAHQRMM.js → chunk-LGJYIUSH.js} +2 -2
- package/dist/{chunk-GWJZTMF4.js → chunk-LYK6PNAY.js} +2 -2
- package/dist/{chunk-7JPHJ7SQ.js → chunk-NBFJOIV2.js} +2 -2
- package/dist/chunk-NCNXUNBB.js +2 -0
- package/dist/chunk-NCNXUNBB.js.map +1 -0
- package/dist/{chunk-3PTV5YSQ.js → chunk-OIVWGY5Z.js} +2 -2
- package/dist/{chunk-WHVPDECD.js → chunk-OLRZ3U4A.js} +2 -2
- package/dist/{chunk-QM7J43SC.js → chunk-OOCCLRPH.js} +2 -2
- package/dist/{chunk-CDRDLO4A.js → chunk-OQJWLV7V.js} +2 -2
- package/dist/{chunk-M22INAKM.js → chunk-OUSDXTNH.js} +2 -2
- package/dist/chunk-PEHK6NHL.js +2 -0
- package/dist/chunk-PEHK6NHL.js.map +1 -0
- package/dist/{chunk-I5XGKYJR.js → chunk-PNAZ6US5.js} +2 -2
- package/dist/chunk-Q2N5SOKO.js +2 -0
- package/dist/chunk-Q2N5SOKO.js.map +1 -0
- package/dist/{chunk-NW5EBNKN.js → chunk-QFOYD5Q4.js} +2 -2
- package/dist/{chunk-2FZWM6RV.js → chunk-QW322WRX.js} +2 -2
- package/dist/{chunk-QFK2SD24.js → chunk-R7W3BT6P.js} +2 -2
- package/dist/{chunk-CYPGWEOO.js → chunk-SQENUVY5.js} +2 -2
- package/dist/{chunk-UYHBV7QJ.js → chunk-SXN63FPH.js} +2 -2
- package/dist/{chunk-S3KOROEZ.js → chunk-T2FGDQSU.js} +2 -2
- package/dist/{chunk-QU4ZTSMT.js → chunk-UBN6O7B5.js} +2 -2
- package/dist/chunk-UZXTPQ47.js +2 -0
- package/dist/chunk-UZXTPQ47.js.map +1 -0
- package/dist/{chunk-SRYUZSIK.js → chunk-VSMVVIBA.js} +2 -2
- package/dist/{chunk-FTCLM4RE.js → chunk-WBN4ZSGC.js} +2 -2
- package/dist/{chunk-LWZIOOPO.js → chunk-XDNUJY3V.js} +2 -2
- package/dist/chunk-XNOLBKZC.js +2 -0
- package/dist/chunk-XNOLBKZC.js.map +1 -0
- package/dist/{chunk-PXX2JSFI.js → chunk-YXXCHMX3.js} +2 -2
- package/dist/chunk-ZOTFS35J.js +2 -0
- package/dist/{chunk-U6RM2N4A.js.map → chunk-ZOTFS35J.js.map} +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +3 -3
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/utils.d.ts +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +40 -3
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/constants.d.ts +5 -0
- package/dist/flows/ContractorOnboarding/constants.js +2 -0
- package/dist/flows/ContractorOnboarding/constants.js.map +1 -0
- package/dist/flows/ContractorOnboarding/context.d.ts +6 -6
- package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.d.ts +23 -0
- package/dist/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.js +2 -0
- package/dist/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/utils.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +1 -1
- package/dist/flows/CostCalculator/api.d.ts +1 -1
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +3 -3
- package/dist/flows/CostCalculator/hooks.d.ts +3 -3
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +3 -3
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +5 -15
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +4 -4
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +4 -4
- package/dist/flows/Onboarding/utils.d.ts +4 -4
- package/dist/flows/Onboarding/utils.js +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -5
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -5
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -5
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -5
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -5
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +4 -5
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.d.ts +87 -0
- package/dist/flows/Termination/api.js +2 -0
- package/dist/flows/Termination/api.js.map +1 -0
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -5
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -5
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -5
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/context.d.ts +27 -5
- package/dist/flows/Termination/hooks.d.ts +4 -5
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +7 -7
- 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 +13 -3
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/types.d.ts +4 -5
- package/dist/flows/Termination/utils.d.ts +12 -6
- package/dist/flows/Termination/utils.js +1 -1
- package/dist/flows/api.d.ts +4 -5
- package/dist/flows/api.js +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internals.js +1 -1
- package/dist/{mutations-B3zY0Z8j.d.ts → mutations-poZZkLvk.d.ts} +1 -1
- package/dist/{remoteFlows-C6LQCoUj.d.ts → remoteFlows-DzRZRhQq.d.ts} +2 -1
- package/dist/{types-DRI6kPSl.d.ts → types-6uSA0-an.d.ts} +5 -5
- package/dist/{types-CXFW77uu.d.ts → types-BNjv7eD0.d.ts} +13 -69
- package/dist/{types-D0Gtn_LU.d.ts → types-CTSYWNx-.d.ts} +51 -4
- package/dist/{types-C_aEj_4p.d.ts → types-CpgnTLWW.d.ts} +4 -4
- package/dist/{types.gen-B1wPsyg7.d.ts → types.gen-B2u-cOXI.d.ts} +64 -1
- package/package.json +1 -1
- package/dist/chunk-3O3Q24JL.js +0 -2
- package/dist/chunk-6IL4TB7S.js +0 -2
- package/dist/chunk-6IL4TB7S.js.map +0 -1
- package/dist/chunk-AWJUS6JD.js +0 -2
- package/dist/chunk-AWJUS6JD.js.map +0 -1
- package/dist/chunk-BDPCUDJB.js +0 -2
- package/dist/chunk-BDPCUDJB.js.map +0 -1
- package/dist/chunk-EHS4ERDW.js +0 -2
- package/dist/chunk-EHS4ERDW.js.map +0 -1
- package/dist/chunk-KDUM4EZJ.js +0 -2
- package/dist/chunk-KDUM4EZJ.js.map +0 -1
- package/dist/chunk-NZHJMUIX.js +0 -2
- package/dist/chunk-NZHJMUIX.js.map +0 -1
- package/dist/chunk-S4XU4SE7.js +0 -2
- package/dist/chunk-S4XU4SE7.js.map +0 -1
- package/dist/chunk-TKAZTT3M.js +0 -2
- package/dist/chunk-TKAZTT3M.js.map +0 -1
- package/dist/chunk-U6RM2N4A.js +0 -2
- package/dist/chunk-UXVCNSHK.js +0 -2
- package/dist/chunk-UXVCNSHK.js.map +0 -1
- package/dist/chunk-XOA7GG4P.js +0 -2
- package/dist/chunk-ZPBKMAKR.js +0 -2
- package/dist/chunk-ZPBKMAKR.js.map +0 -1
- /package/dist/{chunk-RC3XP5WU.js.map → chunk-26ZOPH2I.js.map} +0 -0
- /package/dist/{chunk-25U3HC77.js.map → chunk-2L3ISQJL.js.map} +0 -0
- /package/dist/{chunk-43IIMISK.js.map → chunk-4OAWZYH7.js.map} +0 -0
- /package/dist/{chunk-IJQDK7KG.js.map → chunk-5ENAY65Y.js.map} +0 -0
- /package/dist/{chunk-5Y2RV54X.js.map → chunk-5PPUPDYP.js.map} +0 -0
- /package/dist/{chunk-PJY4TN7I.js.map → chunk-6TY7IKSG.js.map} +0 -0
- /package/dist/{chunk-CCL5LNHC.js.map → chunk-A2KMKSSC.js.map} +0 -0
- /package/dist/{chunk-GEHM46QD.js.map → chunk-ACQ3OEOE.js.map} +0 -0
- /package/dist/{chunk-CEJ24TSW.js.map → chunk-ANHUECRI.js.map} +0 -0
- /package/dist/{chunk-2RBD2MJR.js.map → chunk-AVX6IOGC.js.map} +0 -0
- /package/dist/{chunk-3WE5QB4I.js.map → chunk-CYDWBHAA.js.map} +0 -0
- /package/dist/{chunk-T2UJOEUA.js.map → chunk-E76DWINZ.js.map} +0 -0
- /package/dist/{chunk-E5VV7WAZ.js.map → chunk-EGSRN2CQ.js.map} +0 -0
- /package/dist/{chunk-MAVVGCUM.js.map → chunk-FJPQPOK3.js.map} +0 -0
- /package/dist/{chunk-K2I7ZL3Z.js.map → chunk-FPJLWY23.js.map} +0 -0
- /package/dist/{chunk-LA6ZJLTB.js.map → chunk-FQYK5BJV.js.map} +0 -0
- /package/dist/{chunk-MB6ZGX2O.js.map → chunk-GD425MMM.js.map} +0 -0
- /package/dist/{chunk-ZJ7524CZ.js.map → chunk-GHV4Q4MB.js.map} +0 -0
- /package/dist/{chunk-BSUVUGJG.js.map → chunk-GWICTLVR.js.map} +0 -0
- /package/dist/{chunk-FHQWEM5E.js.map → chunk-H3ZR4EW5.js.map} +0 -0
- /package/dist/{chunk-LAYZ6XET.js.map → chunk-H7L735T7.js.map} +0 -0
- /package/dist/{chunk-6IKJCDQU.js.map → chunk-HS4VEURD.js.map} +0 -0
- /package/dist/{chunk-I4XJ764Y.js.map → chunk-IJR44ISO.js.map} +0 -0
- /package/dist/{chunk-XOA7GG4P.js.map → chunk-JCKQQFA4.js.map} +0 -0
- /package/dist/{chunk-CHAHQRMM.js.map → chunk-LGJYIUSH.js.map} +0 -0
- /package/dist/{chunk-GWJZTMF4.js.map → chunk-LYK6PNAY.js.map} +0 -0
- /package/dist/{chunk-7JPHJ7SQ.js.map → chunk-NBFJOIV2.js.map} +0 -0
- /package/dist/{chunk-3PTV5YSQ.js.map → chunk-OIVWGY5Z.js.map} +0 -0
- /package/dist/{chunk-WHVPDECD.js.map → chunk-OLRZ3U4A.js.map} +0 -0
- /package/dist/{chunk-QM7J43SC.js.map → chunk-OOCCLRPH.js.map} +0 -0
- /package/dist/{chunk-CDRDLO4A.js.map → chunk-OQJWLV7V.js.map} +0 -0
- /package/dist/{chunk-M22INAKM.js.map → chunk-OUSDXTNH.js.map} +0 -0
- /package/dist/{chunk-I5XGKYJR.js.map → chunk-PNAZ6US5.js.map} +0 -0
- /package/dist/{chunk-NW5EBNKN.js.map → chunk-QFOYD5Q4.js.map} +0 -0
- /package/dist/{chunk-2FZWM6RV.js.map → chunk-QW322WRX.js.map} +0 -0
- /package/dist/{chunk-QFK2SD24.js.map → chunk-R7W3BT6P.js.map} +0 -0
- /package/dist/{chunk-CYPGWEOO.js.map → chunk-SQENUVY5.js.map} +0 -0
- /package/dist/{chunk-UYHBV7QJ.js.map → chunk-SXN63FPH.js.map} +0 -0
- /package/dist/{chunk-S3KOROEZ.js.map → chunk-T2FGDQSU.js.map} +0 -0
- /package/dist/{chunk-QU4ZTSMT.js.map → chunk-UBN6O7B5.js.map} +0 -0
- /package/dist/{chunk-SRYUZSIK.js.map → chunk-VSMVVIBA.js.map} +0 -0
- /package/dist/{chunk-FTCLM4RE.js.map → chunk-WBN4ZSGC.js.map} +0 -0
- /package/dist/{chunk-LWZIOOPO.js.map → chunk-XDNUJY3V.js.map} +0 -0
- /package/dist/{chunk-PXX2JSFI.js.map → chunk-YXXCHMX3.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-SGE4DLC3.js";import{a as t}from"./chunk-P37U34EQ.js";import{format as m}from"date-fns";var i="long",f=.01,u=8,l=3;function c(r){return Math.abs(r)<f&&r!==0}t(c,"shouldDisplayAsHours");function D({days:r,hours:o}){return r+o/u}t(D,"getDaysAndHoursAsDecimal");function e(r){let o=10**l,n=Math.round(Math.abs(r)*o)/o;return r<0?-n:n}t(e,"roundToDecimals");function d(r,o){let n=e(r);if(o==="short")return`${n}h`;let s=a({number:r,singular:"hour",plural:"hours",followCopyGuidelines:!1,showNumber:!1});return`${n} ${s}`}t(d,"formatAsHours");function y(r,o){return r*u+o}t(y,"convertToTotalHours");function p(r){return{days:Math.floor(r/u),hours:r%u}}t(p,"convertTotalHoursToDaysAndHours");function A(r,o){let n=e(r);if(o==="short")return`${n}d`;let s=a({number:r,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!1});return`${n} ${s}`}t(A,"formatAsDays");function H(r,o=i){let n=D(r);return c(n)?d(y(r.days,r.hours),o):A(n,o)}t(H,"formatAsDecimal");function F(r){return{days:Math.max(r.days,0),hours:Math.max(r.hours,0)}}t(F,"clampNegativeValuesIfApplicable");var x=t(r=>m(r,"MMM d"),"formatMonthDayInLocalTime");export{y as a,p as b,H as c,F as d,x as e};
|
|
2
|
+
//# sourceMappingURL=chunk-DFJNVGK4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/time.ts"],"sourcesContent":["import { getSingularPluralUnit } from '@/src/lib/i18n';\nimport { format } from 'date-fns';\n\nexport type DaysAndHours = {\n hours: number;\n days: number;\n};\ntype FormatDaysAndHoursSuffixFormat = 'short' | 'long';\n\nconst DEFAULT_SUFFIX_FORMAT: FormatDaysAndHoursSuffixFormat = 'long';\n\n/**\n * Threshold below which decimal day values should be displayed in hours instead\n * of days. Very small day values are more meaningful when shown as hours.\n */\nconst DECIMAL_DAYS_DISPLAY_THRESHOLD = 0.01;\n\n/**\n * Default number of hours in a work day.\n */\nconst DEFAULT_WORK_HOURS = 8;\n\n/**\n * Default number of decimal places to round to.\n */\nconst DEFAULT_DECIMAL_PLACES = 3;\n\n/**\n * Determines whether a decimal day value should be displayed as hours for\n * better readability.\n */\nfunction shouldDisplayAsHours(decimal: number): boolean {\n return Math.abs(decimal) < DECIMAL_DAYS_DISPLAY_THRESHOLD && decimal !== 0;\n}\n\n/**\n * Converts days and hours into a decimal representation.\n * Designed to handle integer hours (-7 to 7) and future integer minutes (-59 to 59).\n *\n * @example\n * getDaysAndHoursAsDecimal({ days: 1, hours: 4 }) // 1.5\n * getDaysAndHoursAsDecimal({ days: 0, hours: 3 }) // 0.375\n */\nfunction getDaysAndHoursAsDecimal({ days, hours }: DaysAndHours): number {\n return days + hours / DEFAULT_WORK_HOURS;\n}\n\n/**\n * Rounds a number to 2 decimal places using symmetric rounding (away from zero).\n */\nfunction roundToDecimals(value: number): number {\n const multiplier = 10 ** DEFAULT_DECIMAL_PLACES;\n\n // Math.round() uses \"Round half toward positive infinity\", so we round using\n // absolute value to achieve symmetric rounding\n const rounded = Math.round(Math.abs(value) * multiplier) / multiplier;\n // preserve original sign\n return value < 0 ? -rounded : rounded;\n}\n\n/**\n * Formats a time duration as hours with the specified suffix format.\n */\nfunction formatAsHours(\n hours: number,\n suffixFormat: FormatDaysAndHoursSuffixFormat,\n): string {\n const roundedHours = roundToDecimals(hours);\n\n if (suffixFormat === 'short') return `${roundedHours}h`;\n\n const hoursText = getSingularPluralUnit({\n number: hours,\n singular: 'hour',\n plural: 'hours',\n followCopyGuidelines: false,\n showNumber: false,\n });\n return `${roundedHours} ${hoursText}`;\n}\n\n/**\n * Converts days and hours into total hours based on standard work day\n */\nexport function convertToTotalHours(days: number, hours: number): number {\n return days * DEFAULT_WORK_HOURS + hours;\n}\n\nexport function convertTotalHoursToDaysAndHours(\n totalHours: number,\n): DaysAndHours {\n return {\n days: Math.floor(totalHours / DEFAULT_WORK_HOURS),\n hours: totalHours % DEFAULT_WORK_HOURS,\n };\n}\n\n/**\n * Formats a time duration as decimal days with the specified suffix format.\n */\nfunction formatAsDays(\n decimal: number,\n suffixFormat: FormatDaysAndHoursSuffixFormat,\n): string {\n const roundedDecimal = roundToDecimals(decimal);\n\n if (suffixFormat === 'short') return `${roundedDecimal}d`;\n\n const daysText = getSingularPluralUnit({\n number: decimal,\n singular: 'day',\n plural: 'days',\n followCopyGuidelines: false,\n showNumber: false,\n });\n return `${roundedDecimal} ${daysText}`;\n}\n\n/**\n * Converts time off quantities into decimal format for display.\n *\n * Always returns a formatted decimal string with appropriate units.\n * Useful when you need a precise decimal representation of any time duration.\n *\n * @example\n * formatAsDecimal({ days: 1, hours: 4 }) // \"1.5 days\"\n * formatAsDecimal({ days: 2, hours: 0 }) // \"2 days\"\n * formatAsDecimal({ days: 0, hours: -3 }) // \"-0.38 days\"\n */\nexport function formatAsDecimal(\n daysAndHours: DaysAndHours,\n suffixFormat: FormatDaysAndHoursSuffixFormat = DEFAULT_SUFFIX_FORMAT,\n): string {\n const decimal = getDaysAndHoursAsDecimal(daysAndHours);\n\n if (shouldDisplayAsHours(decimal)) {\n return formatAsHours(\n convertToTotalHours(daysAndHours.days, daysAndHours.hours),\n suffixFormat,\n );\n }\n\n return formatAsDays(decimal, suffixFormat);\n}\n\nexport function clampNegativeValuesIfApplicable(\n daysAndHours: DaysAndHours,\n): DaysAndHours {\n return {\n days: Math.max(daysAndHours.days, 0),\n hours: Math.max(daysAndHours.hours, 0),\n };\n}\n\nexport const formatMonthDayInLocalTime = (datetime: Date) =>\n format(datetime, 'MMM d');\n"],"mappings":"2EACA,OAAS,UAAAA,MAAc,WAQvB,IAAMC,EAAwD,OAMxDC,EAAiC,IAKjCC,EAAqB,EAKrBC,EAAyB,EAM/B,SAASC,EAAqBC,EAA0B,CACtD,OAAO,KAAK,IAAIA,CAAO,EAAIJ,GAAkCI,IAAY,CAC3E,CAFSC,EAAAF,EAAA,wBAYT,SAASG,EAAyB,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAyB,CACvE,OAAOD,EAAOC,EAAQP,CACxB,CAFSI,EAAAC,EAAA,4BAOT,SAASG,EAAgBC,EAAuB,CAC9C,IAAMC,EAAa,IAAMT,EAInBU,EAAU,KAAK,MAAM,KAAK,IAAIF,CAAK,EAAIC,CAAU,EAAIA,EAE3D,OAAOD,EAAQ,EAAI,CAACE,EAAUA,CAChC,CARSP,EAAAI,EAAA,mBAaT,SAASI,EACPL,EACAM,EACQ,CACR,IAAMC,EAAeN,EAAgBD,CAAK,EAE1C,GAAIM,IAAiB,QAAS,MAAO,GAAGC,CAAY,IAEpD,IAAMC,EAAYC,EAAsB,CACtC,OAAQT,EACR,SAAU,OACV,OAAQ,QACR,qBAAsB,GACtB,WAAY,EACd,CAAC,EACD,MAAO,GAAGO,CAAY,IAAIC,CAAS,EACrC,CAhBSX,EAAAQ,EAAA,iBAqBF,SAASK,EAAoBX,EAAcC,EAAuB,CACvE,OAAOD,EAAON,EAAqBO,CACrC,CAFgBH,EAAAa,EAAA,uBAIT,SAASC,EACdC,EACc,CACd,MAAO,CACL,KAAM,KAAK,MAAMA,EAAanB,CAAkB,EAChD,MAAOmB,EAAanB,CACtB,CACF,CAPgBI,EAAAc,EAAA,mCAYhB,SAASE,EACPjB,EACAU,EACQ,CACR,IAAMQ,EAAiBb,EAAgBL,CAAO,EAE9C,GAAIU,IAAiB,QAAS,MAAO,GAAGQ,CAAc,IAEtD,IAAMC,EAAWN,EAAsB,CACrC,OAAQb,EACR,SAAU,MACV,OAAQ,OACR,qBAAsB,GACtB,WAAY,EACd,CAAC,EACD,MAAO,GAAGkB,CAAc,IAAIC,CAAQ,EACtC,CAhBSlB,EAAAgB,EAAA,gBA6BF,SAASG,EACdC,EACAX,EAA+Cf,EACvC,CACR,IAAMK,EAAUE,EAAyBmB,CAAY,EAErD,OAAItB,EAAqBC,CAAO,EACvBS,EACLK,EAAoBO,EAAa,KAAMA,EAAa,KAAK,EACzDX,CACF,EAGKO,EAAajB,EAASU,CAAY,CAC3C,CAdgBT,EAAAmB,EAAA,mBAgBT,SAASE,EACdD,EACc,CACd,MAAO,CACL,KAAM,KAAK,IAAIA,EAAa,KAAM,CAAC,EACnC,MAAO,KAAK,IAAIA,EAAa,MAAO,CAAC,CACvC,CACF,CAPgBpB,EAAAqB,EAAA,mCAST,IAAMC,EAA4BtB,EAACuB,GACxCC,EAAOD,EAAU,OAAO,EADe","names":["format","DEFAULT_SUFFIX_FORMAT","DECIMAL_DAYS_DISPLAY_THRESHOLD","DEFAULT_WORK_HOURS","DEFAULT_DECIMAL_PLACES","shouldDisplayAsHours","decimal","__name","getDaysAndHoursAsDecimal","days","hours","roundToDecimals","value","multiplier","rounded","formatAsHours","suffixFormat","roundedHours","hoursText","getSingularPluralUnit","convertToTotalHours","convertTotalHoursToDaysAndHours","totalHours","formatAsDays","roundedDecimal","daysText","formatAsDecimal","daysAndHours","clampNegativeValuesIfApplicable","formatMonthDayInLocalTime","datetime","format"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-OUSDXTNH.js";import{b as a}from"./chunk-TOA3JILU.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:c,onSuccess:s,onError:e}){let{contractorOnboardingBag:o}=a(),u=t(async n=>{try{await c?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await s?.(r?.data),o?.next();return}r?.error&&e?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){e?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(i,{defaultValues:l,onSubmit:u})}t(y,"SelectCountryStep");export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-E76DWINZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as p}from"./chunk-TOA3JILU.js";import{d as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as p}from"./chunk-TOA3JILU.js";import{d as u}from"./chunk-BWJAHRV6.js";import{a as l}from"./chunk-2YTBWEC7.js";import{b as c}from"./chunk-WVDTHFGS.js";import{b as d}from"./chunk-3ZWDIEEM.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as y}from"react/jsx-runtime";function k({onSubmit:f,onSuccess:E,onError:i,render:s,...o}){let{components:v}=d(),{contractorOnboardingBag:r}=p(),n=u(),{mutateAsync:b}=l(n),m=e(async()=>{try{if(await f?.(),r.employmentId){let t=await b({employment_id:r.employmentId});if(t.data){await E?.({data:t.data,employmentStatus:"invited"}),r.refetchEmployment();return}t.error&&i?.({error:t.error,rawError:t.rawError,fieldErrors:[]})}}catch(t){i?.({error:t,rawError:t,fieldErrors:[]})}},"handleSubmit"),a=v?.button;return a?y(a,{...o,disabled:n.isPending||o.disabled,onClick:t=>{m(),o.onClick?.(t)},children:s({employmentStatus:"invited"})}):y(c,{...o,disabled:n.isPending||o.disabled,onClick:()=>{m()},children:s({employmentStatus:"invited"})})}e(k,"OnboardingInvite");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EGSRN2CQ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-EGSRN2CQ.js";import{a as m}from"./chunk-DPY77ASH.js";import{a as p}from"./chunk-FPJLWY23.js";import{a as i}from"./chunk-E76DWINZ.js";import{a as e}from"./chunk-ANHUECRI.js";import{a as c}from"./chunk-VSMVVIBA.js";import{a as d}from"./chunk-NBFJOIV2.js";import{a as n}from"./chunk-5ZR7EFPY.js";import{a as t}from"./chunk-TOA3JILU.js";import{a}from"./chunk-7FAT6WCC.js";import{a as r}from"./chunk-P37U34EQ.js";import{useId as u}from"react";import{jsx as v}from"react/jsx-runtime";var A=r(({render:g,employmentId:C,externalId:S,countryCode:b,skipSteps:s,initialValues:O,options:l})=>{let o=a({options:l,employmentId:C,externalId:S,countryCode:b,skipSteps:s,initialValues:O}),P=u();return v(t.Provider,{value:{contractorOnboardingBag:o,formId:P},children:g({contractorOnboardingBag:o,components:{BasicInformationStep:e,SelectCountryStep:i,BackButton:n,SubmitButton:m,PricingPlanStep:p,ContractDetailsStep:c,ContractPreviewStep:d,OnboardingInvite:f}})})},"ContractorOnboardingFlow");export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FJPQPOK3.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-OUSDXTNH.js";import{b as t}from"./chunk-TOA3JILU.js";import{b as e}from"./chunk-2YTBWEC7.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as P}from"react/jsx-runtime";function S({onSubmit:l,onSuccess:d,onError:n}){let{contractorOnboardingBag:o}=t(),c=i(async a=>{try{await l?.(o.parseFormValues(a));let r=await o.onSubmit(a);if(r?.data){await d?.(r?.data),o?.next();return}if(r?.error){let p=e(r?.fieldErrors||[],o.meta?.fields?.pricing_plan);n?.({error:r?.error,rawError:r?.rawError,fieldErrors:p})}}catch(r){n?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),m=o.stepState.values?.pricing_plan||o.initialValues.pricing_plan;return P(s,{defaultValues:m,onSubmit:c})}i(S,"PricingPlanStep");export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FPJLWY23.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as d}from"./chunk-MRYRNB7Y.js";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as d}from"./chunk-MRYRNB7Y.js";import{b as a}from"./chunk-CFIJKJXD.js";import{a as f}from"./chunk-A2KMKSSC.js";import{f as s,g as l}from"./chunk-CNDSIADP.js";import{a as n}from"./chunk-P37U34EQ.js";import{useEffect as T}from"react";import{jsx as e}from"react/jsx-runtime";function A({fields:m,onSubmit:F}){let{formId:u,terminationBag:o}=d(),c=a(o.handleValidation),i=s({resolver:c,defaultValues:o?.initialValues,shouldUnregister:!1,mode:"onBlur"});T(()=>{let y=i?.watch(r=>{Object.keys(r).some(t=>r[t]!==o?.initialValues?.[t])&&o?.checkFieldUpdates(r)});return()=>y?.unsubscribe()},[]);let p=m||(o?.fields??[]);return e(l,{...i,children:e("form",{id:u,onSubmit:i.handleSubmit(F),className:"space-y-4 RemoteFlows__TerminationForm",children:e(f,{fields:p})})})}n(A,"TerminationForm");export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FQYK5BJV.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-QFOYD5Q4.js";import{b as n}from"./chunk-PGWKJ6FK.js";import{b as i}from"./chunk-2YTBWEC7.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as p}from"react/jsx-runtime";function F({onSubmit:l,onError:t,onSuccess:d}){let{onboardingBag:o}=n(),m=e(async a=>{try{await l?.(o.parseFormValues(a));let r=await o.onSubmit(a);if(r?.data){await d?.(r.data),o?.next();return}if(r?.error){let c=i(r?.fieldErrors||[],o.meta?.fields?.contract_details);t?.({error:r.error,rawError:r.rawError,fieldErrors:c})}}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit");return p(s,{defaultValues:o.stepState.values?.contract_details||o.initialValues.contract_details,onSubmit:m})}e(F,"ContractDetailsStep");export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-GD425MMM.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as p}from"./chunk-ZSCKSEAA.js";import{a as l}from"./chunk-ZE3YT3Q6.js";import{b as i}from"./chunk-OQJWLV7V.js";import{b as m}from"./chunk-WVDTHFGS.js";import{b as a}from"./chunk-43WMZDDH.js";import{a as o}from"./chunk-P37U34EQ.js";import{Info as f}from"lucide-react";import{Fragment as d,jsx as e,jsxs as s}from"react/jsx-runtime";function B({contributionsTotal:u,currency:n,contributionsBreakdown:r}){return s("div",{children:[s("div",{className:"flex justify-between items-center mb-2",children:[e("h3",{className:"font-medium text-primary-foreground",children:"Employer Contributions"}),e("span",{className:"font-semibold text-lg",children:a(u,n)})]}),r?s(d,{children:[e(p,{className:"mb-3"}),e("div",{className:"space-y-3 pl-2",children:r.map((t,c)=>s("div",{className:"flex justify-between items-start text-sm",children:[s("div",{className:"flex items-start gap-2",children:[e("span",{children:t.name}),t.description&&e(l,{content:s(d,{children:[e("span",{children:t.description})," ",t.zendesk_article_url&&e(i,{zendeskId:Number(t.zendesk_article_id),children:"Learn more"})]}),children:s(m,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0",children:[e(f,{className:"h-3 w-3 text-gray-400"}),e("span",{className:"sr-only",children:"Info"})]})})]}),e("span",{children:a(t.amount,n)})]},c))})]}):null]})}o(B,"CostCalculatorContributionsBreakdown");export{B as a};
|
|
2
|
+
//# sourceMappingURL=chunk-GHV4Q4MB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-CYDWBHAA.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";var l=e(({currency:n,desiredCurrency:o,annual_gross_salary_conversion_properties:r,...a})=>i(s,{...a,sourceCurrency:n,targetCurrency:o,conversionFieldName:"annual_gross_salary_conversion",conversionProperties:{...r,description:r?.description||"Estimated amount. This is an estimation. We calculate conversions based on spot rates that are subject to fluctuation over time."},classNamePrefix:"RemoteFlows-AnnualGrossSalary",conversionType:"no_spread"}),"AnnualGrossSalary");export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-GWICTLVR.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n,b as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n,b as i}from"./chunk-OQJWLV7V.js";import{a as e}from"./chunk-43WMZDDH.js";import{a as o}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as t,jsxs as m}from"react/jsx-runtime";var r=["You submit your termination request.","We review your request along with the employment agreement, local labor laws, and any collective bargaining agreements in place.","A lifecycle specialist contacts you if they need additional details. Sometimes they will request a call.","Depending on the country-specific laws and the terms of the employment agreement, we may need to seek additional legal advice. We\u2019ll let you know if there are additional charges before proceeding.","Terms and conditions for the termination are finalized.","You verbally communicate the termination to the employee.","We share termination documents with the employee.","The employee signs the termination documents if required.","We process the final salary and offboard the employee."],h=o(()=>m(s,{children:[t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__Title"),children:"Please read carefully before you continue"}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description"),children:"Please do not inform the employee of the termination. We'll lead communication with them after you submit this form and we finalize the termination terms."}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description RemoteFlows__TerminationDialogInfoContent__FollowUpDescription"),children:"If you already informed them, that's okay. We'll ask for the details regarding that communication and take it from there."}),t(i,{className:e("RemoteFlows__TerminationDialogInfoContent__ZendeskTriggerButton text-sm"),zendeskId:n.terminationEmployeeCommunication,children:"Learn more about employee communication"}),t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessTitle"),children:"The termination process"}),t("ul",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessList list-disc list-inside"),children:r.map((a,l)=>t("li",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessListItem"),children:a},l))})]}),"TerminationDialogInfoContent");export{h as a};
|
|
2
|
+
//# sourceMappingURL=chunk-H3ZR4EW5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as g}from"./chunk-PGWKJ6FK.js";import{d as f,e as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as g}from"./chunk-PGWKJ6FK.js";import{d as f,e as w}from"./chunk-BWJAHRV6.js";import{a as m}from"./chunk-2YTBWEC7.js";import{b as E}from"./chunk-WVDTHFGS.js";import{b as y}from"./chunk-3ZWDIEEM.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as R}from"react/jsx-runtime";function A({onSubmit:S,onSuccess:d,onError:o,render:u,...r}){let{components:I}=y(),{onboardingBag:t,setCreditScore:c}=g(),n=f(),i=w(),{mutateAsync:b}=m(n),{mutateAsync:_}=m(i),l=a(async()=>{try{if(await S?.(),t.creditRiskStatus==="deposit_required"&&t.employmentId&&t.employment?.status&&!t.isEmploymentReadOnly){let e=await _({employment_slug:t.employmentId});if(e.data){await d?.({data:e.data,employmentStatus:"created_awaiting_reserve"}),c?.(s=>({...s,showReserveInvoice:!0})),t.refetchEmployment();return}e.error&&o?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}else if(t.employmentId){let e=await b({employment_id:t.employmentId});if(e.data){await d?.({data:e.data,employmentStatus:"invited"}),c?.(s=>({...s,showInviteSuccessful:!0})),t.refetchEmployment();return}e.error&&o?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}}catch(e){o?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit"),p=t.creditRiskStatus==="deposit_required"&&t.employment?.status&&!t.isEmploymentReadOnly,v=I?.button;return v?R(v,{...r,disabled:n.isPending||i.isPending||r.disabled,onClick:e=>{l(),r.onClick?.(e)},children:u({employmentStatus:p?"created_awaiting_reserve":"invited"})}):R(E,{...r,disabled:n.isPending||i.isPending||r.disabled,onClick:()=>{l()},children:u({employmentStatus:p?"created_awaiting_reserve":"invited"})})}a(A,"OnboardingInvite");export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-H7L735T7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-A2KMKSSC.js";import{b as p}from"./chunk-2YTBWEC7.js";import{g as C}from"./chunk-CNDSIADP.js";import{g as E}from"./chunk-43WMZDDH.js";import{a as n}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as u}from"react/jsx-runtime";function T({onSubmit:S,onError:w,onSuccess:y,onErrorWithFields:c,shouldResetForm:d,resetFields:a}){let{form:e,formId:V,costCalculatorBag:o}=f(),{formState:{isSubmitSuccessful:s}}=e;R(()=>{if(s&&d){o?.resetForm(),e.reset();return}if(s&&a){let t={...e.getValues()};a.forEach(r=>{t[r]=""}),o?.resetForm(),e.reset(t)}},[s,e,d,o,a]);let b=n(async i=>{try{let t=o?.parseFormValues(i);o?.meta?.fields&&(o.meta.fields=E(i,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 l={data:{...r.data.data,employments:r.data.data.employments?.map(m=>({...m,title:t.estimation_title}))}};await y?.(l)}else throw{data:null,error:r?.error,fieldErrors:r?.fieldErrors,rawError:r?.rawError}}catch(t){let r=t,l=r.fieldErrors;if(c){let m=o?.meta?.fields,h=p(l,m);c({error:r.error,rawError:r.rawError,fieldErrors:h})}else w?.(r.error)}},"handleSubmit");return u(C,{...e,children:u("form",{id:V,onSubmit:e.handleSubmit(b),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:u(F,{fields:o?.fields??[]})})})}n(T,"CostCalculatorForm");export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HS4VEURD.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-P37U34EQ.js";import{formDataBodySerializer as i}from"@hey-api/client-fetch";import{createClient as o,createConfig as n}from"@hey-api/client-fetch";var r=o(n({baseUrl:"https://gateway.remote.com/"}));var l=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/offboardings",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateOffboarding");var h=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/schema",...e}),"getShowContractAmendmentSchema");var m=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/raw",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postConvertRawCurrencyConverter"),d=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/contractor-contract-details",...e}),"getShowContractorContractDetailsCountry");var y=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEmployment2"),u=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/help-center-articles/{id}",...e}),"getShowHelpCenterArticle");var E=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimation");var C=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e}),"getIndexBenefitOffer"),w=t(e=>(e.client??r).put({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"putUpdateBenefitOffer");var T=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-subscriptions",...e}),"getIndexSubscription");var O=t(e=>(e?.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/payroll-calendars",...e}),"getIndexEorPayrollCalendar");var x=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{id}",...e}),"getShowContractDocument");var b=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/magic-link",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postGenerateMagicLink");var f=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-pdf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationPdf");var P=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/risk-reserve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateRiskReserve");var R=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}",...e}),"getShowCompany");var D=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractAmendment");var G=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/{form}",...e}),"getShowFormCountry");var v=t(e=>(e?.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/countries",...e}),"getIndexCountry");var g=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/leave-policies/summary/{employment_id}",...e}),"getIndexLeavePoliciesSummary");var I=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers/schema",...e}),"getShowSchema");var S=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e}),"getShowEmployment"),k=t(e=>(e.client??r).patch({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"patchUpdateEmployment2");var U=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/regions/{slug}/fields",...e}),"getShowRegionField");var B=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/contract-eligibility",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractEligibility"),q=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/countries",...e}),"getSupportedCountry");var A=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-csv",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationCsv"),_=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractDocument");var W=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/effective",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postConvertWithSpreadCurrencyConverter");var F=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/automatable",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postAutomatableContractAmendment");var j=t(e=>(e?.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/company-currencies",...e}),"getIndexCompanyCurrency");var L=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/invite",...e}),"postInviteEmploymentInvitation");var V=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{contract_document_id}/sign",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postSignContractDocument");var M=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-plus-subscription",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postManageContractorPlusSubscriptionSubscription"),z=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/timeoff",...e}),"getIndexTimeoff");export{r as a,l as b,h as c,m as d,d as e,y as f,u as g,E as h,C as i,w as j,T as k,O as l,x as m,b as n,f as o,P as p,R as q,D as r,G as s,v as t,g as u,I as v,S as w,k as x,U as y,B as z,q as A,A as B,_ as C,W as D,F as E,j as F,L as G,V as H,M as I,z as J};
|
|
2
|
+
//# sourceMappingURL=chunk-HWEJIPSK.js.map
|