@remoteoss/remote-flows 1.34.0 → 1.36.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/ButtonDefault-4W4M55VE.js +2 -0
- package/dist/CheckboxFieldDefault-2VCAKWLA.js +2 -0
- package/dist/CountryFieldDefault-DCHHKYYJ.js +2 -0
- package/dist/DatePickerFieldDefault-NODTGDNL.js +2 -0
- package/dist/DrawerDefault-VMG6FKCD.js +2 -0
- package/dist/EmailFieldDefault-INNDIQML.js +2 -0
- package/dist/FieldsetToggleButtonDefault-2YKED23M.js +2 -0
- package/dist/FileUploadFieldDefault-AGLKTUCJ.js +2 -0
- package/dist/MultiSelectFieldDefault-OTNIDC2Q.js +2 -0
- package/dist/NumberFieldDefault-QLW7EZ4R.js +2 -0
- package/dist/RadioGroupFieldDefault-ZX4Z2EVK.js +2 -0
- package/dist/SelectFieldDefault-SNTI7KXR.js +2 -0
- package/dist/StatementDefault-YBHPHVCI.js +2 -0
- package/dist/TableFieldDefault-XTCTKLLJ.js +2 -0
- package/dist/TelFieldDefault-POAPMI5W.js +2 -0
- package/dist/TextAreaFieldDefault-JOSXKY6O.js +2 -0
- package/dist/TextFieldDefault-7HSHPHOF.js +2 -0
- package/dist/TimeFieldDefault-VIR23FMW.js +2 -0
- package/dist/WorkScheduleFieldDefault-6NNTPTZ6.js +2 -0
- package/dist/ZendeskDrawerDefault-ILQM2VEO.js +2 -0
- package/dist/ZendeskDrawerDefault-ILQM2VEO.js.map +1 -0
- package/dist/{chunk-FTRPPW6E.js → chunk-25Y7W5UH.js} +2 -2
- package/dist/{chunk-LPXJW7UB.js → chunk-2B3OMLDM.js} +2 -2
- package/dist/{chunk-CFCUY6VA.js → chunk-2K4N6RPD.js} +2 -2
- package/dist/{chunk-7N552DET.js → chunk-2OAOYM2S.js} +2 -2
- package/dist/{chunk-NN2HUS43.js → chunk-2PKH6744.js} +2 -2
- package/dist/{chunk-Y7NFXPZ2.js → chunk-3BNHBFVL.js} +2 -2
- package/dist/{chunk-Z6XIW4JQ.js → chunk-3CDKTHT5.js} +2 -2
- package/dist/{chunk-KEMKRC6N.js → chunk-3LOC5XJ5.js} +2 -2
- package/dist/{chunk-35LCD6VA.js → chunk-3P46CNLA.js} +2 -2
- package/dist/{chunk-KYQIUVYP.js → chunk-3RGEOFP5.js} +2 -2
- package/dist/{chunk-XWZP4WYZ.js → chunk-3THSAI2N.js} +2 -2
- package/dist/{chunk-DILDN6DN.js → chunk-4NU2RDSJ.js} +2 -2
- package/dist/{chunk-Q5RU76HN.js → chunk-4T66UEMY.js} +2 -2
- package/dist/{chunk-QYLLXHLO.js → chunk-547SAUNX.js} +2 -2
- package/dist/{chunk-VDHWWC4J.js → chunk-5SY73IBC.js} +2 -2
- package/dist/{chunk-NZXVTXZY.js → chunk-6BPEPQ3C.js} +2 -2
- package/dist/{chunk-2IIHA7AA.js → chunk-6D5IHLXV.js} +2 -2
- package/dist/{chunk-CMPHQVJ3.js → chunk-6MP4UBOE.js} +2 -2
- package/dist/{chunk-ZM4ZOX7B.js → chunk-6OYB7OE5.js} +2 -2
- package/dist/{chunk-TMZVJ3SQ.js → chunk-6UWJNDPG.js} +2 -2
- package/dist/{chunk-YHQYBVLS.js → chunk-73MHNSF2.js} +2 -2
- package/dist/{chunk-OJMB3357.js → chunk-75SQ56WH.js} +2 -2
- package/dist/chunk-AAGHUVZO.js +2 -0
- package/dist/chunk-AAGHUVZO.js.map +1 -0
- package/dist/{chunk-MKI4IWX6.js → chunk-ABESS75C.js} +2 -2
- package/dist/{chunk-OO3VBBVN.js → chunk-AROUKJ3F.js} +2 -2
- package/dist/{chunk-6NTCRGOD.js → chunk-AX7YWH45.js} +2 -2
- package/dist/{chunk-GIO4RGLD.js → chunk-B437XNYG.js} +2 -2
- package/dist/{chunk-YLAJZTKB.js → chunk-B7IJZJCP.js} +2 -2
- package/dist/{chunk-EJWKMMZV.js → chunk-BJPP76IU.js} +2 -2
- package/dist/{chunk-CQQCOU57.js → chunk-BPHP4644.js} +2 -2
- package/dist/{chunk-JBX6GAPY.js → chunk-BVAUKARC.js} +2 -2
- package/dist/{chunk-3PKL3V6F.js → chunk-C5PA6MLW.js} +2 -2
- package/dist/{chunk-GQACPN6J.js → chunk-C5TVWLAX.js} +2 -2
- package/dist/{chunk-UG5UQ72J.js → chunk-CTARNWJJ.js} +2 -2
- package/dist/{chunk-3YS4OWE3.js → chunk-D4ZTTILZ.js} +2 -2
- package/dist/{chunk-X4KJVXDB.js → chunk-D53TVHHK.js} +2 -2
- package/dist/{chunk-5TAAGXI6.js → chunk-DACZVIVC.js} +2 -2
- package/dist/{chunk-G7MJDZGB.js → chunk-DL5NWXSY.js} +2 -2
- package/dist/{chunk-24HG2Q5K.js → chunk-DPLUTCL6.js} +2 -2
- package/dist/chunk-EFL7QFFN.js +2 -0
- package/dist/{chunk-JXAAON7I.js.map → chunk-EFL7QFFN.js.map} +1 -1
- package/dist/{chunk-5FHNCDLU.js → chunk-ELOOP66L.js} +2 -2
- package/dist/{chunk-N5DHVRQR.js → chunk-EQH3XT6E.js} +2 -2
- package/dist/{chunk-KXGHVCV2.js → chunk-ETQGE6PJ.js} +2 -2
- package/dist/{chunk-UBIW2GE4.js → chunk-GCYQVKEN.js} +2 -2
- package/dist/{chunk-RGXG3HOB.js → chunk-GJIKWHFV.js} +2 -2
- package/dist/{chunk-QWSAKYH4.js → chunk-GZE3PWOZ.js} +2 -2
- package/dist/{chunk-OVQOV5YL.js → chunk-H3U6AOLU.js} +2 -2
- package/dist/{chunk-PURTKT5Q.js → chunk-IUSNP2RM.js} +2 -2
- package/dist/{chunk-LDI7E3ZK.js → chunk-IWLTCLND.js} +2 -2
- package/dist/{chunk-AZSD5MTJ.js → chunk-J2IE47OQ.js} +2 -2
- package/dist/{chunk-5BGNKOPP.js → chunk-JSFVJCPK.js} +2 -2
- package/dist/{chunk-ED7I5OM2.js → chunk-K44B6MQA.js} +2 -2
- package/dist/{chunk-PX5PE6GX.js → chunk-K5RHOXWA.js} +2 -2
- package/dist/{chunk-PX5PE6GX.js.map → chunk-K5RHOXWA.js.map} +1 -1
- package/dist/{chunk-KE5UI2WF.js → chunk-K7VKNGNL.js} +2 -2
- package/dist/{chunk-W5THF3XS.js → chunk-KA5M37J6.js} +2 -2
- package/dist/{chunk-XJHIF5ZE.js → chunk-KBTXSPHK.js} +2 -2
- package/dist/{chunk-4ZMRPH3M.js → chunk-KHX2XRJF.js} +2 -2
- package/dist/{chunk-R4TTPUH7.js → chunk-KMANQZL4.js} +2 -2
- package/dist/{chunk-Q5WADFQ7.js → chunk-KUMYB3ZB.js} +2 -2
- package/dist/{chunk-YGK26YJ2.js → chunk-LPC7BX6K.js} +2 -2
- package/dist/{chunk-5JFH2KYZ.js → chunk-LWKPIYNR.js} +2 -2
- package/dist/{chunk-ZE37CBDF.js → chunk-M4RIGLB4.js} +2 -2
- package/dist/{chunk-NFI74GKN.js → chunk-MXI6VPRG.js} +2 -2
- package/dist/{chunk-C7GJUNNC.js → chunk-NHLUPT2E.js} +2 -2
- package/dist/{chunk-4LF5J3KW.js → chunk-NHO3QINW.js} +2 -2
- package/dist/{chunk-DXKUARQF.js → chunk-NKVCGPK6.js} +2 -2
- package/dist/{chunk-VJPSDB7M.js → chunk-NLC63NKD.js} +2 -2
- package/dist/{chunk-TXSUZLOI.js → chunk-NW3D7CPK.js} +1 -1
- package/dist/chunk-NW3D7CPK.js.map +1 -0
- package/dist/{chunk-DTTE663D.js → chunk-NXSKHM4K.js} +2 -2
- package/dist/{chunk-242UBL3Z.js → chunk-O534T74D.js} +2 -2
- package/dist/{chunk-IPLCBEJI.js → chunk-ODWPGJF6.js} +2 -2
- package/dist/{chunk-DNTUDKSN.js → chunk-ONIYOQMH.js} +2 -2
- package/dist/{chunk-U5QVIJOS.js → chunk-OVIOWKNG.js} +2 -2
- package/dist/{chunk-QHZPSH52.js → chunk-OXKDKDSH.js} +2 -2
- package/dist/{chunk-R63ZJMJA.js → chunk-PCNT5L6Q.js} +2 -2
- package/dist/{chunk-3I4I7VH6.js → chunk-PJF6KXN6.js} +2 -2
- package/dist/{chunk-Z4TZ527J.js → chunk-QOH4BNEZ.js} +2 -2
- package/dist/{chunk-XX25MIBS.js → chunk-QPAABSI5.js} +2 -2
- package/dist/{chunk-E4VXY33I.js → chunk-QSP35X2D.js} +2 -2
- package/dist/{chunk-BDDSSFUK.js → chunk-QVMGEH5W.js} +2 -2
- package/dist/{chunk-ZAZ24JS2.js → chunk-RCGOP7XI.js} +2 -2
- package/dist/{chunk-5CFXZWQ5.js → chunk-RPOFQPG5.js} +2 -2
- package/dist/{chunk-3TLNWNFZ.js → chunk-S2KYDG6K.js} +2 -2
- package/dist/{chunk-K3LPVMXD.js → chunk-SIRRTEWC.js} +2 -2
- package/dist/{chunk-LKFGJU72.js → chunk-T2BRDPOR.js} +2 -2
- package/dist/{chunk-XWBNZAGY.js → chunk-TKENZ25F.js} +2 -2
- package/dist/{chunk-W4YDSTXA.js → chunk-TUJZUC3C.js} +2 -2
- package/dist/{chunk-QWIPKY24.js → chunk-TXUUBPHA.js} +2 -2
- package/dist/{chunk-6BTNYUKU.js → chunk-UD7WWKMC.js} +2 -2
- package/dist/{chunk-6YBH2ELN.js → chunk-UFB5CJCQ.js} +2 -2
- package/dist/{chunk-5BU3CD2P.js → chunk-UGPYPGVV.js} +2 -2
- package/dist/{chunk-3M4RT5QK.js → chunk-UP5HIO22.js} +2 -2
- package/dist/{chunk-HPO77UMT.js → chunk-UXQVHXRL.js} +2 -2
- package/dist/chunk-VBEQBO5C.js +2 -0
- package/dist/chunk-VBEQBO5C.js.map +1 -0
- package/dist/{chunk-2HREQZP4.js → chunk-VGCRMNT3.js} +2 -2
- package/dist/{chunk-DZJDM6PM.js → chunk-VRRPMJLZ.js} +2 -2
- package/dist/{chunk-5IOV4ADT.js → chunk-WH26FC23.js} +2 -2
- package/dist/{chunk-IX5SV6J2.js → chunk-WQ27VHVA.js} +2 -2
- package/dist/{chunk-TMS24RKD.js → chunk-WWFORUHG.js} +2 -2
- package/dist/{chunk-OSHTXKLJ.js → chunk-XY2X6FWI.js} +2 -2
- package/dist/{chunk-OBF27DKO.js → chunk-YEDPNGC2.js} +2 -2
- package/dist/{chunk-FIVDMRET.js → chunk-YFGM5OOK.js} +2 -2
- package/dist/{chunk-B3KDZREG.js → chunk-YIPQZRQ7.js} +2 -2
- package/dist/{chunk-B4JJN54S.js → chunk-YLYAVSJP.js} +2 -2
- package/dist/chunk-YP6NGX7S.js +2 -0
- package/dist/chunk-YP6NGX7S.js.map +1 -0
- package/dist/{chunk-KV7CBYSI.js → chunk-YVI7H5WV.js} +2 -2
- package/dist/{chunk-BQA2DJF2.js → chunk-Z3N32RAC.js} +2 -2
- package/dist/{chunk-QXQYT7IC.js → chunk-Z7BBMYLU.js} +2 -2
- package/dist/{chunk-4MW7KA47.js → chunk-ZLZAHVV5.js} +2 -2
- package/dist/{chunk-TP3B2OEW.js → chunk-ZONDSFHH.js} +2 -2
- package/dist/{chunk-4ZA3PGCP.js → chunk-ZQE3SMB2.js} +2 -2
- package/dist/default-components.d.ts +2 -2
- package/dist/default-components.js +1 -1
- package/dist/default-components.js.map +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +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/types.d.ts +2 -2
- package/dist/flows/ContractAmendment/utils.d.ts +2 -2
- package/dist/flows/ContractAmendment/utils.js +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 +2 -2
- 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/ContractPreviewHeader.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.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/EligibilityQuestionnaireStep.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.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/SaveDraftButton.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
- package/dist/flows/ContractorOnboarding/constants.d.ts +6 -0
- package/dist/flows/ContractorOnboarding/constants.js +1 -1
- package/dist/flows/ContractorOnboarding/context.d.ts +5 -5
- 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/jsfModify.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/utils.d.ts +4 -4
- 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/CostCalculatorResetButton.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
- package/dist/flows/CostCalculator/api.d.ts +2 -2
- 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 +2 -2
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
- package/dist/flows/CreateCompany/CreateCompany.js +1 -1
- package/dist/flows/CreateCompany/api.d.ts +2 -2
- package/dist/flows/CreateCompany/api.js +1 -1
- package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
- package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
- package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
- package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
- package/dist/flows/CreateCompany/context.d.ts +4 -4
- package/dist/flows/CreateCompany/hooks.d.ts +4 -4
- package/dist/flows/CreateCompany/hooks.js +1 -1
- package/dist/flows/CreateCompany/index.d.ts +4 -4
- package/dist/flows/CreateCompany/index.js +1 -1
- package/dist/flows/CreateCompany/types.d.ts +4 -4
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +4 -4
- 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/EngagementAgreementDetailsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.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/Termination/AdditionalDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.d.ts +5 -5
- package/dist/flows/Termination/api.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
- package/dist/flows/Termination/context.d.ts +4 -4
- package/dist/flows/Termination/hooks.d.ts +4 -4
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +6 -6
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
- package/dist/flows/Termination/types.d.ts +4 -4
- package/dist/flows/Termination/utils.d.ts +4 -4
- package/dist/flows/Termination/utils.js +1 -1
- package/dist/flows/types.d.ts +2 -2
- package/dist/flows/utils.d.ts +2 -2
- package/dist/index.d.ts +11 -11
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +3 -3
- package/dist/internals.js +1 -1
- package/dist/{mutations-D9HgX-Ms.d.ts → mutations-BfsmgCGD.d.ts} +1 -1
- package/dist/{remoteFlows-BY_Bq_Wn.d.ts → remoteFlows-O-Pz6K9_.d.ts} +11 -4
- package/dist/{types-DnD9HEvZ.d.ts → types-CVfjhhz9.d.ts} +3 -3
- package/dist/{types-DreSaMum.d.ts → types-CY31SALf.d.ts} +1 -1
- package/dist/{types-3T7anr5K.d.ts → types-DIU2pRZp.d.ts} +3 -3
- package/dist/{types-DaTID0Xm.d.ts → types-_A37Ga2t.d.ts} +4 -4
- package/dist/{types-DRJoYr0A.d.ts → types-pc9ukjqN.d.ts} +2 -2
- package/dist/{types.gen-N4dGBvBJ.d.ts → types.gen-D39CBKLR.d.ts} +1 -1
- package/dist/{utils-DE_uIWef.d.ts → utils-CnpKrCwn.d.ts} +1 -1
- package/package.json +9 -9
- package/dist/ButtonDefault-CB27KWFN.js +0 -2
- package/dist/CheckboxFieldDefault-5NZEGPA6.js +0 -2
- package/dist/CountryFieldDefault-GP2S2KN6.js +0 -2
- package/dist/DatePickerFieldDefault-KN4COEEO.js +0 -2
- package/dist/DrawerDefault-JR6422D5.js +0 -2
- package/dist/EmailFieldDefault-XSAEEKK7.js +0 -2
- package/dist/FieldsetToggleButtonDefault-OQ7J2T3G.js +0 -2
- package/dist/FileUploadFieldDefault-5VQDJWZV.js +0 -2
- package/dist/MultiSelectFieldDefault-BORNPHNW.js +0 -2
- package/dist/NumberFieldDefault-PRI6IHOZ.js +0 -2
- package/dist/RadioGroupFieldDefault-L3CZN2ZT.js +0 -2
- package/dist/SelectFieldDefault-EV5QGUX6.js +0 -2
- package/dist/StatementDefault-WKRJDBC7.js +0 -2
- package/dist/TableFieldDefault-75LWJ2E3.js +0 -2
- package/dist/TelFieldDefault-M5LDQMIK.js +0 -2
- package/dist/TextAreaFieldDefault-YKBNDA4U.js +0 -2
- package/dist/TextFieldDefault-RCZYNB3Z.js +0 -2
- package/dist/WorkScheduleFieldDefault-XLAFRZX2.js +0 -2
- package/dist/ZendeskDrawerDefault-NQP7CBPW.js +0 -2
- package/dist/chunk-JXAAON7I.js +0 -2
- package/dist/chunk-QSAZUS52.js +0 -2
- package/dist/chunk-QSAZUS52.js.map +0 -1
- package/dist/chunk-TXSUZLOI.js.map +0 -1
- package/dist/chunk-X5ZZPJII.js +0 -2
- package/dist/chunk-X5ZZPJII.js.map +0 -1
- /package/dist/{ButtonDefault-CB27KWFN.js.map → ButtonDefault-4W4M55VE.js.map} +0 -0
- /package/dist/{CheckboxFieldDefault-5NZEGPA6.js.map → CheckboxFieldDefault-2VCAKWLA.js.map} +0 -0
- /package/dist/{CountryFieldDefault-GP2S2KN6.js.map → CountryFieldDefault-DCHHKYYJ.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-KN4COEEO.js.map → DatePickerFieldDefault-NODTGDNL.js.map} +0 -0
- /package/dist/{DrawerDefault-JR6422D5.js.map → DrawerDefault-VMG6FKCD.js.map} +0 -0
- /package/dist/{EmailFieldDefault-XSAEEKK7.js.map → EmailFieldDefault-INNDIQML.js.map} +0 -0
- /package/dist/{FieldsetToggleButtonDefault-OQ7J2T3G.js.map → FieldsetToggleButtonDefault-2YKED23M.js.map} +0 -0
- /package/dist/{FileUploadFieldDefault-5VQDJWZV.js.map → FileUploadFieldDefault-AGLKTUCJ.js.map} +0 -0
- /package/dist/{MultiSelectFieldDefault-BORNPHNW.js.map → MultiSelectFieldDefault-OTNIDC2Q.js.map} +0 -0
- /package/dist/{NumberFieldDefault-PRI6IHOZ.js.map → NumberFieldDefault-QLW7EZ4R.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-L3CZN2ZT.js.map → RadioGroupFieldDefault-ZX4Z2EVK.js.map} +0 -0
- /package/dist/{SelectFieldDefault-EV5QGUX6.js.map → SelectFieldDefault-SNTI7KXR.js.map} +0 -0
- /package/dist/{StatementDefault-WKRJDBC7.js.map → StatementDefault-YBHPHVCI.js.map} +0 -0
- /package/dist/{TableFieldDefault-75LWJ2E3.js.map → TableFieldDefault-XTCTKLLJ.js.map} +0 -0
- /package/dist/{TelFieldDefault-M5LDQMIK.js.map → TelFieldDefault-POAPMI5W.js.map} +0 -0
- /package/dist/{TextAreaFieldDefault-YKBNDA4U.js.map → TextAreaFieldDefault-JOSXKY6O.js.map} +0 -0
- /package/dist/{TextFieldDefault-RCZYNB3Z.js.map → TextFieldDefault-7HSHPHOF.js.map} +0 -0
- /package/dist/{WorkScheduleFieldDefault-XLAFRZX2.js.map → TimeFieldDefault-VIR23FMW.js.map} +0 -0
- /package/dist/{ZendeskDrawerDefault-NQP7CBPW.js.map → WorkScheduleFieldDefault-6NNTPTZ6.js.map} +0 -0
- /package/dist/{chunk-FTRPPW6E.js.map → chunk-25Y7W5UH.js.map} +0 -0
- /package/dist/{chunk-LPXJW7UB.js.map → chunk-2B3OMLDM.js.map} +0 -0
- /package/dist/{chunk-CFCUY6VA.js.map → chunk-2K4N6RPD.js.map} +0 -0
- /package/dist/{chunk-7N552DET.js.map → chunk-2OAOYM2S.js.map} +0 -0
- /package/dist/{chunk-NN2HUS43.js.map → chunk-2PKH6744.js.map} +0 -0
- /package/dist/{chunk-Y7NFXPZ2.js.map → chunk-3BNHBFVL.js.map} +0 -0
- /package/dist/{chunk-Z6XIW4JQ.js.map → chunk-3CDKTHT5.js.map} +0 -0
- /package/dist/{chunk-KEMKRC6N.js.map → chunk-3LOC5XJ5.js.map} +0 -0
- /package/dist/{chunk-35LCD6VA.js.map → chunk-3P46CNLA.js.map} +0 -0
- /package/dist/{chunk-KYQIUVYP.js.map → chunk-3RGEOFP5.js.map} +0 -0
- /package/dist/{chunk-XWZP4WYZ.js.map → chunk-3THSAI2N.js.map} +0 -0
- /package/dist/{chunk-DILDN6DN.js.map → chunk-4NU2RDSJ.js.map} +0 -0
- /package/dist/{chunk-Q5RU76HN.js.map → chunk-4T66UEMY.js.map} +0 -0
- /package/dist/{chunk-QYLLXHLO.js.map → chunk-547SAUNX.js.map} +0 -0
- /package/dist/{chunk-VDHWWC4J.js.map → chunk-5SY73IBC.js.map} +0 -0
- /package/dist/{chunk-NZXVTXZY.js.map → chunk-6BPEPQ3C.js.map} +0 -0
- /package/dist/{chunk-2IIHA7AA.js.map → chunk-6D5IHLXV.js.map} +0 -0
- /package/dist/{chunk-CMPHQVJ3.js.map → chunk-6MP4UBOE.js.map} +0 -0
- /package/dist/{chunk-ZM4ZOX7B.js.map → chunk-6OYB7OE5.js.map} +0 -0
- /package/dist/{chunk-TMZVJ3SQ.js.map → chunk-6UWJNDPG.js.map} +0 -0
- /package/dist/{chunk-YHQYBVLS.js.map → chunk-73MHNSF2.js.map} +0 -0
- /package/dist/{chunk-OJMB3357.js.map → chunk-75SQ56WH.js.map} +0 -0
- /package/dist/{chunk-MKI4IWX6.js.map → chunk-ABESS75C.js.map} +0 -0
- /package/dist/{chunk-OO3VBBVN.js.map → chunk-AROUKJ3F.js.map} +0 -0
- /package/dist/{chunk-6NTCRGOD.js.map → chunk-AX7YWH45.js.map} +0 -0
- /package/dist/{chunk-GIO4RGLD.js.map → chunk-B437XNYG.js.map} +0 -0
- /package/dist/{chunk-YLAJZTKB.js.map → chunk-B7IJZJCP.js.map} +0 -0
- /package/dist/{chunk-EJWKMMZV.js.map → chunk-BJPP76IU.js.map} +0 -0
- /package/dist/{chunk-CQQCOU57.js.map → chunk-BPHP4644.js.map} +0 -0
- /package/dist/{chunk-JBX6GAPY.js.map → chunk-BVAUKARC.js.map} +0 -0
- /package/dist/{chunk-3PKL3V6F.js.map → chunk-C5PA6MLW.js.map} +0 -0
- /package/dist/{chunk-GQACPN6J.js.map → chunk-C5TVWLAX.js.map} +0 -0
- /package/dist/{chunk-UG5UQ72J.js.map → chunk-CTARNWJJ.js.map} +0 -0
- /package/dist/{chunk-3YS4OWE3.js.map → chunk-D4ZTTILZ.js.map} +0 -0
- /package/dist/{chunk-X4KJVXDB.js.map → chunk-D53TVHHK.js.map} +0 -0
- /package/dist/{chunk-5TAAGXI6.js.map → chunk-DACZVIVC.js.map} +0 -0
- /package/dist/{chunk-G7MJDZGB.js.map → chunk-DL5NWXSY.js.map} +0 -0
- /package/dist/{chunk-24HG2Q5K.js.map → chunk-DPLUTCL6.js.map} +0 -0
- /package/dist/{chunk-5FHNCDLU.js.map → chunk-ELOOP66L.js.map} +0 -0
- /package/dist/{chunk-N5DHVRQR.js.map → chunk-EQH3XT6E.js.map} +0 -0
- /package/dist/{chunk-KXGHVCV2.js.map → chunk-ETQGE6PJ.js.map} +0 -0
- /package/dist/{chunk-UBIW2GE4.js.map → chunk-GCYQVKEN.js.map} +0 -0
- /package/dist/{chunk-RGXG3HOB.js.map → chunk-GJIKWHFV.js.map} +0 -0
- /package/dist/{chunk-QWSAKYH4.js.map → chunk-GZE3PWOZ.js.map} +0 -0
- /package/dist/{chunk-OVQOV5YL.js.map → chunk-H3U6AOLU.js.map} +0 -0
- /package/dist/{chunk-PURTKT5Q.js.map → chunk-IUSNP2RM.js.map} +0 -0
- /package/dist/{chunk-LDI7E3ZK.js.map → chunk-IWLTCLND.js.map} +0 -0
- /package/dist/{chunk-AZSD5MTJ.js.map → chunk-J2IE47OQ.js.map} +0 -0
- /package/dist/{chunk-5BGNKOPP.js.map → chunk-JSFVJCPK.js.map} +0 -0
- /package/dist/{chunk-ED7I5OM2.js.map → chunk-K44B6MQA.js.map} +0 -0
- /package/dist/{chunk-KE5UI2WF.js.map → chunk-K7VKNGNL.js.map} +0 -0
- /package/dist/{chunk-W5THF3XS.js.map → chunk-KA5M37J6.js.map} +0 -0
- /package/dist/{chunk-XJHIF5ZE.js.map → chunk-KBTXSPHK.js.map} +0 -0
- /package/dist/{chunk-4ZMRPH3M.js.map → chunk-KHX2XRJF.js.map} +0 -0
- /package/dist/{chunk-R4TTPUH7.js.map → chunk-KMANQZL4.js.map} +0 -0
- /package/dist/{chunk-Q5WADFQ7.js.map → chunk-KUMYB3ZB.js.map} +0 -0
- /package/dist/{chunk-YGK26YJ2.js.map → chunk-LPC7BX6K.js.map} +0 -0
- /package/dist/{chunk-5JFH2KYZ.js.map → chunk-LWKPIYNR.js.map} +0 -0
- /package/dist/{chunk-ZE37CBDF.js.map → chunk-M4RIGLB4.js.map} +0 -0
- /package/dist/{chunk-NFI74GKN.js.map → chunk-MXI6VPRG.js.map} +0 -0
- /package/dist/{chunk-C7GJUNNC.js.map → chunk-NHLUPT2E.js.map} +0 -0
- /package/dist/{chunk-4LF5J3KW.js.map → chunk-NHO3QINW.js.map} +0 -0
- /package/dist/{chunk-DXKUARQF.js.map → chunk-NKVCGPK6.js.map} +0 -0
- /package/dist/{chunk-VJPSDB7M.js.map → chunk-NLC63NKD.js.map} +0 -0
- /package/dist/{chunk-DTTE663D.js.map → chunk-NXSKHM4K.js.map} +0 -0
- /package/dist/{chunk-242UBL3Z.js.map → chunk-O534T74D.js.map} +0 -0
- /package/dist/{chunk-IPLCBEJI.js.map → chunk-ODWPGJF6.js.map} +0 -0
- /package/dist/{chunk-DNTUDKSN.js.map → chunk-ONIYOQMH.js.map} +0 -0
- /package/dist/{chunk-U5QVIJOS.js.map → chunk-OVIOWKNG.js.map} +0 -0
- /package/dist/{chunk-QHZPSH52.js.map → chunk-OXKDKDSH.js.map} +0 -0
- /package/dist/{chunk-R63ZJMJA.js.map → chunk-PCNT5L6Q.js.map} +0 -0
- /package/dist/{chunk-3I4I7VH6.js.map → chunk-PJF6KXN6.js.map} +0 -0
- /package/dist/{chunk-Z4TZ527J.js.map → chunk-QOH4BNEZ.js.map} +0 -0
- /package/dist/{chunk-XX25MIBS.js.map → chunk-QPAABSI5.js.map} +0 -0
- /package/dist/{chunk-E4VXY33I.js.map → chunk-QSP35X2D.js.map} +0 -0
- /package/dist/{chunk-BDDSSFUK.js.map → chunk-QVMGEH5W.js.map} +0 -0
- /package/dist/{chunk-ZAZ24JS2.js.map → chunk-RCGOP7XI.js.map} +0 -0
- /package/dist/{chunk-5CFXZWQ5.js.map → chunk-RPOFQPG5.js.map} +0 -0
- /package/dist/{chunk-3TLNWNFZ.js.map → chunk-S2KYDG6K.js.map} +0 -0
- /package/dist/{chunk-K3LPVMXD.js.map → chunk-SIRRTEWC.js.map} +0 -0
- /package/dist/{chunk-LKFGJU72.js.map → chunk-T2BRDPOR.js.map} +0 -0
- /package/dist/{chunk-XWBNZAGY.js.map → chunk-TKENZ25F.js.map} +0 -0
- /package/dist/{chunk-W4YDSTXA.js.map → chunk-TUJZUC3C.js.map} +0 -0
- /package/dist/{chunk-QWIPKY24.js.map → chunk-TXUUBPHA.js.map} +0 -0
- /package/dist/{chunk-6BTNYUKU.js.map → chunk-UD7WWKMC.js.map} +0 -0
- /package/dist/{chunk-6YBH2ELN.js.map → chunk-UFB5CJCQ.js.map} +0 -0
- /package/dist/{chunk-5BU3CD2P.js.map → chunk-UGPYPGVV.js.map} +0 -0
- /package/dist/{chunk-3M4RT5QK.js.map → chunk-UP5HIO22.js.map} +0 -0
- /package/dist/{chunk-HPO77UMT.js.map → chunk-UXQVHXRL.js.map} +0 -0
- /package/dist/{chunk-2HREQZP4.js.map → chunk-VGCRMNT3.js.map} +0 -0
- /package/dist/{chunk-DZJDM6PM.js.map → chunk-VRRPMJLZ.js.map} +0 -0
- /package/dist/{chunk-5IOV4ADT.js.map → chunk-WH26FC23.js.map} +0 -0
- /package/dist/{chunk-IX5SV6J2.js.map → chunk-WQ27VHVA.js.map} +0 -0
- /package/dist/{chunk-TMS24RKD.js.map → chunk-WWFORUHG.js.map} +0 -0
- /package/dist/{chunk-OSHTXKLJ.js.map → chunk-XY2X6FWI.js.map} +0 -0
- /package/dist/{chunk-OBF27DKO.js.map → chunk-YEDPNGC2.js.map} +0 -0
- /package/dist/{chunk-FIVDMRET.js.map → chunk-YFGM5OOK.js.map} +0 -0
- /package/dist/{chunk-B3KDZREG.js.map → chunk-YIPQZRQ7.js.map} +0 -0
- /package/dist/{chunk-B4JJN54S.js.map → chunk-YLYAVSJP.js.map} +0 -0
- /package/dist/{chunk-KV7CBYSI.js.map → chunk-YVI7H5WV.js.map} +0 -0
- /package/dist/{chunk-BQA2DJF2.js.map → chunk-Z3N32RAC.js.map} +0 -0
- /package/dist/{chunk-QXQYT7IC.js.map → chunk-Z7BBMYLU.js.map} +0 -0
- /package/dist/{chunk-4MW7KA47.js.map → chunk-ZLZAHVV5.js.map} +0 -0
- /package/dist/{chunk-TP3B2OEW.js.map → chunk-ZONDSFHH.js.map} +0 -0
- /package/dist/{chunk-4ZA3PGCP.js.map → chunk-ZQE3SMB2.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-2K4N6RPD.js";import"./chunk-NKVCGPK6.js";import"./chunk-NHLUPT2E.js";import"./chunk-TUJZUC3C.js";import"./chunk-UGPYPGVV.js";import"./chunk-ER46UFIU.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CheckboxFieldDefault};
|
|
2
|
+
//# sourceMappingURL=CheckboxFieldDefault-2VCAKWLA.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-ELOOP66L.js";import"./chunk-IWLTCLND.js";import"./chunk-WQ27VHVA.js";import"./chunk-O534T74D.js";import"./chunk-KHX2XRJF.js";import"./chunk-NHLUPT2E.js";import"./chunk-KMANQZL4.js";import"./chunk-TUJZUC3C.js";import"./chunk-UGPYPGVV.js";import"./chunk-ER46UFIU.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CountryFieldDefault};
|
|
2
|
+
//# sourceMappingURL=CountryFieldDefault-DCHHKYYJ.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-6MP4UBOE.js";import"./chunk-WQ27VHVA.js";import"./chunk-NHLUPT2E.js";import"./chunk-KMANQZL4.js";import"./chunk-TUJZUC3C.js";import"./chunk-UGPYPGVV.js";import"./chunk-ER46UFIU.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as DatePickerFieldDefault};
|
|
2
|
+
//# sourceMappingURL=DatePickerFieldDefault-NODTGDNL.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-547SAUNX.js";import"./chunk-GJIKWHFV.js";import"./chunk-KMANQZL4.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as FileUploadFieldDefault};
|
|
2
|
+
//# sourceMappingURL=FileUploadFieldDefault-AGLKTUCJ.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-DPLUTCL6.js";import"./chunk-IWLTCLND.js";import"./chunk-WQ27VHVA.js";import"./chunk-O534T74D.js";import"./chunk-KHX2XRJF.js";import"./chunk-KMANQZL4.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as MultiSelectFieldDefault};
|
|
2
|
+
//# sourceMappingURL=MultiSelectFieldDefault-OTNIDC2Q.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-T2BRDPOR.js";import"./chunk-TKENZ25F.js";import"./chunk-KHX2XRJF.js";import"./chunk-NHLUPT2E.js";import"./chunk-TUJZUC3C.js";import"./chunk-UGPYPGVV.js";import"./chunk-ER46UFIU.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as RadioGroupFieldDefault};
|
|
2
|
+
//# sourceMappingURL=RadioGroupFieldDefault-ZX4Z2EVK.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-2PKH6744.js";import"./chunk-YIPQZRQ7.js";import"./chunk-K44B6MQA.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TelFieldDefault};
|
|
2
|
+
//# sourceMappingURL=TelFieldDefault-POAPMI5W.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-XY2X6FWI.js";import"./chunk-NHLUPT2E.js";import"./chunk-TUJZUC3C.js";import"./chunk-UGPYPGVV.js";import"./chunk-ER46UFIU.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TextAreaFieldDefault};
|
|
2
|
+
//# sourceMappingURL=TextAreaFieldDefault-JOSXKY6O.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-H3U6AOLU.js";import"./chunk-O534T74D.js";import"./chunk-Z3N32RAC.js";import"./chunk-KMANQZL4.js";import"./chunk-ZLZAHVV5.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as WorkScheduleFieldDefault};
|
|
2
|
+
//# sourceMappingURL=WorkScheduleFieldDefault-6NNTPTZ6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d,b as w}from"./chunk-6BPEPQ3C.js";import{a as g}from"./chunk-Q65JWWKR.js";import{a as E}from"./chunk-OXKDKDSH.js";import{Q as F,e as _,z as P}from"./chunk-ER46UFIU.js";import{b as h,h as C}from"./chunk-EFL7QFFN.js";import{a as j}from"./chunk-JDIKYCN6.js";import{e as c}from"./chunk-H2O4CVKF.js";import{a as e}from"./chunk-P37U34EQ.js";import{useMutation as b,useQuery as I}from"@tanstack/react-query";var B=e(({countryCode:n,employment:r,fieldValues:a,options:t})=>{let{client:u}=c(),m=t?.jsonSchemaVersion?.contract_amendments?{json_schema_version:t.jsonSchemaVersion.contract_amendments}:{};return I({queryKey:["contract-amendment-schema"],retry:!1,queryFn:e(async()=>{let o=await _({client:u,headers:{Authorization:""},query:{employment_id:r?.id,country_code:n,...m}});if(o.error||!o.data)throw new Error("Failed to fetch contract amendment schema");return o},"queryFn"),enabled:!!r,select:e(({data:o})=>{let l=o?.data||{};return E(l,a,t)},"select")})},"useContractAmendmentSchemaQuery"),J=e(n=>{let{client:r}=c(),a=n?.jsonSchemaVersion?.contract_amendments?{json_schema_version:n.jsonSchemaVersion.contract_amendments}:{};return b({mutationFn:e(t=>P({client:r,headers:{Authorization:""},body:t,query:{...a}}),"mutationFn")})},"useCreateContractAmendmentMutation"),K=e(n=>{let{client:r}=c(),a=n?.jsonSchemaVersion?.contract_amendments?{json_schema_version:n.jsonSchemaVersion.contract_amendments}:{};return b({mutationFn:e(t=>F({client:r,headers:{Authorization:""},body:t,query:{...a}}),"mutationFn")})},"useAutomatableContractAmendmentMutation"),te=e(({employmentId:n,countryCode:r,options:a})=>{let{fieldValues:t,setFieldValues:u,stepState:m,nextStep:o,previousStep:l}=j(d),{data:i,isLoading:v,isError:q,error:Q}=g({employmentId:n,queryParams:{exclude_files:!0}}),{data:s,isLoading:L,isError:M,error:T}=B({employment:i,countryCode:r,fieldValues:{...m.values?.[m.currentStep.name],...t},options:a}),k=w(i,s?.fields),S=J(a),A=K(a);async function x(p){let f=await C(p,s?.fields||[],{isPartialValidation:!1}),V={employment_id:i?.id,amendment_contract_id:i?.active_contract_id,contract_amendment:{...f}};switch(m.currentStep.name){case d.form.name:{let{mutateAsync:y}=h(A),H=await y(V);return o(),H}case d.confirmation_form.name:{let{mutateAsync:y}=h(S);return y(V)}default:throw new Error("Invalid step state")}}e(x,"onSubmit");async function z(p){if(s){let f=await C(p,s?.fields);return s?.handleValidation(f)}return null}e(z,"handleValidation");function O(){l()}return e(O,"back"),{stepState:m,fields:s?.fields||[],isLoading:v||L,isError:q||M,error:Q||T,isSubmitting:A.isPending||S.isPending,initialValues:k,values:t,handleValidation:z,checkFieldUpdates:u,onSubmit:x,back:O}},"useContractAmendment");export{te as a};
|
|
2
|
+
//# sourceMappingURL=chunk-25Y7W5UH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-3LOC5XJ5.js";import{b as i}from"./chunk-76ZDXC2T.js";import{x as a}from"./chunk-EFL7QFFN.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function C({onSubmit:m,onSuccess:l,onError:t}){let{createCompanyBag:e}=i(),p=o(async d=>{try{await m?.(d);let r=await e.onSubmit(d);if(r?.data){await l?.(r?.data);return}if(r?.error){let s=a(r,e.meta?.fields?.address_details);t?.(s)}}catch(r){let s=a(r,e.meta?.fields?.address_details);t?.(s)}},"handleSubmit"),u=e.stepState.values?.address_details||e.initialValues.address_details;return c(n,{defaultValues:u,onSubmit:p})}o(C,"AddressDetailsStep");export{C as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2B3OMLDM.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-NKVCGPK6.js";import{a as k}from"./chunk-NHLUPT2E.js";import{j as p,k as a,l as d,n as i,o as u}from"./chunk-UGPYPGVV.js";import{n as _}from"./chunk-EFL7QFFN.js";import{a as F}from"./chunk-P37U34EQ.js";import{Fragment as x,jsx as e,jsxs as r}from"react/jsx-runtime";var w=F(({field:l,fieldState:b,fieldData:s})=>{let{name:m,label:n,description:C,options:t,multiple:h}=s;return r(p,{"data-field":m,className:_(`RemoteFlows__CheckBoxField__Item__${m}`),children:[e(d,{children:r(x,{children:[t&&h?e(a,{children:n}):null,t&&h?t.map(o=>r("div",{className:"flex space-x-2",children:[e(c,{id:o.value,onCheckedChange:v=>{l.onChange(v===!0,o.value)},checked:l.value?.includes(o.value),className:"RemoteFlows__CheckBox__Input"}),e(a,{htmlFor:o.value,className:"mb-0 RemoteFlows__CheckBox__Label",children:o.label})]},o.value)):r("div",{className:"flex space-x-2",children:[e(c,{id:m,onCheckedChange:o=>{l.onChange(o===!0,null)},checked:l.value,className:"RemoteFlows__CheckBox__Input"}),e(a,{htmlFor:m,className:"mb-0 RemoteFlows__CheckBox__Label",children:n})]})]})}),C&&e(i,{helpCenter:e(k,{helpCenter:s.meta?.helpCenter}),children:C}),b.error&&e(u,{})]})},"CheckboxFieldDefault");export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2K4N6RPD.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as d,d as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as d,d as S}from"./chunk-BVAUKARC.js";import{a as f}from"./chunk-KSHK3ZPX.js";import{a as u}from"./chunk-HN5HLFTB.js";import{b as C}from"./chunk-KFYWUBRS.js";import{f as y}from"./chunk-UGPYPGVV.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2OAOYM2S.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-YIPQZRQ7.js";import{a as y,b,c as N,d as T,e as $,f as v}from"./chunk-K44B6MQA.js";import{j as _,k as C,n as p,o as F}from"./chunk-UGPYPGVV.js";import{a as u}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as t}from"react/jsx-runtime";function G({field:f,fieldState:r,fieldData:g}){let{name:n,label:m,description:s,options:c,onChangeCountryCode:i,onChangePhoneNumber:h,currentCountry:o,nationalPhoneNumber:w}=g,I=o?`${o.name}-${o.dialCode}`:"";return t(_,{"data-field":n,className:`RemoteFlows__TelField__Item__${n}`,children:[m&&e(C,{className:"RemoteFlows__TelField__Label",children:m}),t("div",{className:"flex gap-2",children:[e("div",{className:"w-[180px]",children:t(y,{value:I,onValueChange:l=>{let a=c?.find(d=>`${d.label}-${d.meta?.countryCode}`===l);a&&i&&i({name:a.label,dialCode:a.meta?.countryCode||"",pattern:a.pattern||""})},children:[e(T,{className:"RemoteFlows__TelField__CountrySelect","aria-invalid":!!r.error,"aria-label":"Country code",children:e("span",{className:"absolute",children:e(N,{placeholder:"Country code *",children:o&&`${o.name} +${o.dialCode}`})})}),e($,{className:"RemoteFlows__TelField__CountryContent",children:e(b,{className:"RemoteFlows__TelField__CountryGroup",children:c?.map((l,a)=>t(v,{value:`${l.label}-${l.meta?.countryCode}`,className:"RemoteFlows__TelField__CountryItem",children:[l.label," +",l.meta?.countryCode]},`${l.label}-${l.meta?.countryCode}-${a}`))})})]})}),e("div",{className:"flex-1",children:e(S,{...f,type:"tel",value:w||"",onChange:h,className:"RemoteFlows__TelField__Input",placeholder:"Employee's phone number *","aria-invalid":!!r.error,"aria-label":"Phone number"})})]}),s&&e(p,{className:"RemoteFlows__TelField__Description",children:s}),r.error&&e(F,{})]})}u(G,"TelFieldDefault");export{G as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2PKH6744.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-EFL7QFFN.js";import{b as u}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function b({children:m,...t}){let{formId:e,costCalculatorBag:i}=s(),{components:l}=u(),o=l?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"submit",className:r("RemoteFlows__CostCalculatorForm__SubmitButton",t.className),form:e,disabled:t.disabled||i?.isSubmitting,children:m})}n(b,"CostCalculatorSubmitButton");export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3BNHBFVL.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as he,b as ve,c as Pe}from"./chunk-QSAZUS52.js";import{a as Xt,b as ie,c as oe,d as re,e as ae,f as se,g as ce,i as le,j as ue,k as de,l as pe,m as me,n as fe,o as ye,p as _e,q as ge,r as be,s as Se,t as Ce,u as we}from"./chunk-TP3B2OEW.js";import{a as Yt,b as Zt,f as te,g as ee,h as ne}from"./chunk-OJMB3357.js";import{a as z,b as ot,c as _,d as zt,g as Wt}from"./chunk-PX5PE6GX.js";import{a as Ht}from"./chunk-Q65JWWKR.js";import{f as Ut,h as Kt,i as Gt}from"./chunk-YHQYBVLS.js";import{M as Jt}from"./chunk-ER46UFIU.js";import{a as Bt,b as w,d as Nt,h as y,i as k,u as O,v as h}from"./chunk-JXAAON7I.js";import{a as $t}from"./chunk-JDIKYCN6.js";import{e as Qt}from"./chunk-H2O4CVKF.js";import{a as u}from"./chunk-P37U34EQ.js";import{useEffect as q,useMemo as a,useRef as Fe,useState as A}from"react";import Me from"lodash.omit";import{useQuery as vn}from"@tanstack/react-query";var Pn=u(()=>{let{client:L}=Qt(),{data:T}=ie(),l=oe(T)?T?.company?.id??"":"";return vn({queryKey:["legal-entities",l],queryFn:u(()=>Jt({client:L,path:{company_id:l},query:{page_size:100}}),"queryFn"),select:u(W=>W.data?.data?.legal_entities,"select"),enabled:!!l})},"useLegalEntities"),Ee=u(()=>{let{data:L}=Pn();return L?.find(T=>T.is_default)},"useDefaultLegalEntity");var En={select_country:null,basic_information:"employment_basic_information",contract_details:null,eligibility_questionnaire:null,pricing_plan:null,contract_preview:null,review:null},Fn={employment_basic_information:"basic_information"},ei=u(({countryCode:L,externalId:T,employmentId:l,skipSteps:W,options:m,initialValues:d})=>{let Ve=m?.excludeProducts||[],yt=Fe(m?.onContractReviewed);q(()=>{yt.current=m?.onContractReviewed},[m?.onContractReviewed]);let[c,_t]=A(L||null),[o,Oe]=A(l),[g,gt]=A(void 0),X=Fe({select_country:{},basic_information:{},contract_details:{},contract_preview:{},pricing_plan:{},eligibility_questionnaire:{}}),[Y,Ie]=A(void 0),[bt,Z]=A(!1),[St,Re]=A(!0),[rt,Ct]=A(null),{steps:De,stepsArray:ke}=a(()=>Yt({includeSelectCountry:!W?.includes("select_country"),includeEligibilityQuestionnaire:bt,includeContractPreview:St}),[bt,St,W]),{fieldValues:s,stepState:e,setFieldValues:wt,previousStep:qe,nextStep:Ae,goToStep:j,setStepValues:ht}=$t(De);q(()=>{rt&&(j(rt),Ct(null))},[rt,j]);let{data:r,isLoading:Te,refetch:vt}=Ht({employmentId:o,queryParams:{exclude_files:!0}}),Le=Ee(),{status:I}=r||{},v=I&&te.includes(I),je=I&&!ee.includes(I),xe=a(()=>I&&["invited","initiated"].includes(I)?"invited":"not_invited",[I]),Pt=Kt(),Et=Gt(c,m),at=ue(),Ft=Xt(),{mutateAsync:Mt}=me(at,Ft,s),Vt=ge(),Ot=be(),{mutateAsyncOrThrow:Be}=w(Et),It=ae(),Rt=le(),Dt=Se(),{mutateAsyncOrThrow:Ne}=w(Pt),{mutateAsyncOrThrow:Qe}=w(at),{mutateAsyncOrThrow:Je}=w(It),{mutateAsyncOrThrow:kt}=w(Rt),{mutateAsyncOrThrow:Ue}=w(Vt),{mutateAsyncOrThrow:qt}=w(Ot),{mutateAsyncOrThrow:Ke}=w(Dt);l&&r?.country?.code&&!c&&_t(r.country.code);let{selectCountryForm:x,isLoading:Ge,countries:At}=Ce({jsfModify:m?.jsfModify?.select_country}),st=a(()=>At?.find(t=>t.value===c),[At,c]),He=a(()=>st?.label,[st]),$e=e.currentStep.name==="pricing_plan"||!!l&&v,{form:P,isLoading:ze,contractorSubscriptions:tt,filteredContractorSubscriptions:B,refetch:ct,isEligibilityQuestionnaireBlocked:N}=pe(o,st,{jsonSchemaVersion:m?.jsonSchemaVersion,queryOptions:{enabled:$e},excludeProducts:Ve,jsfModify:m?.jsfModify?.pricing_plan}),R=a(()=>!!tt?.find(t=>t.product.short_name==="COR")?.eligibility_questionnaire?.submitted_at,[tt]);q(()=>{if(R){Z(!1);return}else Z(Y===_)},[R,Y]),q(()=>{let t=r?.contractor_type==="cor";Re(!t)},[r?.contractor_type]);let et=a(()=>tt?.find(t=>t.product.short_name==="COR")?.eligibility_questionnaire?.responses,[tt]),We=En[e.currentStep.name]||"contractor_basic_information",Xe=Fn[We],Ye=r?.[Xe]||{},Ze=u(({form:t,options:n={},query:p={}})=>{let C=Object.keys(s).length>0?{...d,...e.values?.[e.currentStep.name],...s}:{...d,...Ye};return Ut({countryCode:c,form:t,fieldValues:C,query:p,options:{...n,queryOptions:{enabled:n.queryOptions?.enabled??!0}}})},"useJSONSchema"),tn=!!(c&&(e.currentStep.name==="basic_information"||l)),en=!!(c==="GBR"&&l&&e.currentStep.name==="basic_information"),{data:Q,isLoading:nn}=fe(l,{enabled:en}),{data:nt,isLoading:on}=ye(o,{enabled:!!o});q(()=>{nt&&nt.length>0&&!g&>(nt[0].id)},[nt,g]);let{data:b,isLoading:rn}=Ze({form:"contractor_basic_information",options:{jsfModify:ve(c,He,m),queryOptions:{enabled:tn}}}),an=a(()=>Zt(r?.basic_information?.provisional_start_date,s?.service_duration?.provisional_start_date),[r?.basic_information?.provisional_start_date,s?.service_duration?.provisional_start_date]),f=a(()=>{let t={standard:z,plus:ot,cor:_};if(s.subscription)return s.subscription;let n=e.values?.pricing_plan?.subscription;if(n&&!N)return n;if(R&&!N)return _;if(N&&R)return z;if(B&&B.length>0)return t[r?.contractor_type]||z},[s,e.values,R,r?.contractor_type,N,B]);q(()=>{f&&f!==Y&&Ie(f)},[f,Y]);let sn=a(()=>({...et,...d,...e.values?.eligibility_questionnaire,...s}),[et,d,e.values?.eligibility_questionnaire,s]),cn=a(()=>f===_&&e.currentStep.name==="eligibility_questionnaire"||!!l&&v&&f===_,[f,e.currentStep.name,l,v]),{data:E,isLoading:ln}=_e({options:{queryOptions:{enabled:cn},jsfModify:m?.jsfModify?.eligibility_questionnaire},fieldValues:sn}),un=!!(c&&e.currentStep.name==="contract_details"||v),{data:S,isLoading:dn}=we({countryCode:c,fieldValues:s,employmentId:o,options:{queryOptions:{enabled:un},jsfModify:he(m?.jsfModify?.contract_details,an,f,s,f===_)}}),pn=a(()=>e.currentStep.name==="contract_preview"||!!l&&v,[e.currentStep.name,l,v]),{data:F}=re({fieldValues:s,options:{queryOptions:{enabled:pn},jsfModify:Pe(m,s)}}),{data:lt,isLoading:mn,refetch:fn}=se({employmentId:o,contractDocumentId:g,options:{queryOptions:{enabled:!!g}}}),{hasCompanySignedContract:yn}=ce({employmentId:o,contractDocumentId:g,options:{queryOptions:{enabled:!!g}}}),i=a(()=>({select_country:x?.fields||[],basic_information:b?.fields||[],pricing_plan:P?.fields||[],eligibility_questionnaire:E?.fields||[],contract_details:S?.fields||[],contract_preview:F?.fields||[],review:[]}),[x?.fields,b?.fields,P?.fields,S?.fields,F?.fields,E?.fields]),_n={select_country:null,basic_information:b?.meta["x-jsf-fieldsets"],pricing_plan:null,contract_details:S?.meta["x-jsf-fieldsets"],eligibility_questionnaire:null,contract_preview:null,review:null},gn={select_country:x?.meta?.["x-jsf-presentation"],basic_information:b?.meta?.["x-jsf-presentation"],pricing_plan:P?.meta?.["x-jsf-presentation"],eligibility_questionnaire:E?.meta?.["x-jsf-presentation"],contract_details:S?.meta?.["x-jsf-presentation"],contract_preview:F?.meta?.["x-jsf-presentation"],review:null},{country:bn,basic_information:it={},contract_details:Tt={}}=r||{},Lt=bn?.code,J=a(()=>k(i.select_country,{country:c||Lt||""}),[i.select_country,c,Lt]),ut=a(()=>Q?.content?Nt(Q.content,Q.name):null,[Q?.content,Q?.name]),U=a(()=>{let t={...d,...it,ir35:r?.contract_details?.ir_35,nationality_status:r?.contract_details?.nationality,...ut&&{ir35_sds_file:[ut]}};return k(i.basic_information,t)},[d,it,r?.contract_details?.ir_35,r?.contract_details?.nationality,ut,i.basic_information]),K=a(()=>{let n={...{service_duration:{provisional_start_date:it.provisional_start_date}},...d,...Tt};return k(i.contract_details,n)},[i.contract_details,Tt,d,it]),G=a(()=>{let t=lt?.contract_document?.signatories?.find(p=>p.type==="company"),n={...d,signature:t?.signature};return k(i.contract_preview,n)},[i.contract_preview,d,lt]),H=a(()=>{let n={...{subscription:f},...d};return k(i.pricing_plan,n)},[i.pricing_plan,d,f]),$=a(()=>{let t={...d,...et};return k(i.eligibility_questionnaire,t)},[i.eligibility_questionnaire,d,et]),Sn=a(()=>({select_country:J,basic_information:U,contract_details:K,contract_preview:G,pricing_plan:H,eligibility_questionnaire:$}),[J,U,K,G,H,$]),dt=!!(l&&v&&e.currentStep.name!=="review"),pt=Ge||rn||Te||dn||ze||mn||nn||on||ln,jt=a(()=>{let n=r?.contractor_type==="cor"||i.contract_preview.length>0;return!!(dt&&!pt&&g&&i.basic_information.length>0&&i.contract_details.length>0&&n)},[dt,pt,g,i.basic_information.length,i.contract_details.length,i.contract_preview.length,r?.contractor_type]);q(()=>{jt&&(X.current={select_country:O(J,i.select_country,{skipMoneyConversion:!0}),basic_information:O(U,i.basic_information,{skipMoneyConversion:!0}),contract_details:O(K,i.contract_details,{skipMoneyConversion:!0}),contract_preview:O(G,i.contract_preview,{skipMoneyConversion:!0}),pricing_plan:O(H,i.pricing_plan,{skipMoneyConversion:!0}),eligibility_questionnaire:O($,i.eligibility_questionnaire,{skipMoneyConversion:!0})},ht({select_country:J,basic_information:U,contract_details:K,contract_preview:G,pricing_plan:H,eligibility_questionnaire:$,review:{}}),j("review"))},[jt,j,J,U,K,ht,i.select_country,i.basic_information,i.contract_details,i.pricing_plan,H,i.contract_preview,G,i.eligibility_questionnaire,$]);let Cn=u(t=>{j(t)},"goTo"),xt=u(async t=>x&&e.currentStep.name==="select_country"?t:b&&e.currentStep.name==="basic_information"?await y(t,b?.fields,{isPartialValidation:!1}):S&&e.currentStep.name==="contract_details"?await y(t,S?.fields,{isPartialValidation:!1}):F&&e.currentStep.name==="contract_preview"?await y(t,F?.fields,{isPartialValidation:!1}):P&&e.currentStep.name==="pricing_plan"?await y(t,P?.fields,{isPartialValidation:!1}):E&&e.currentStep.name==="eligibility_questionnaire"?await y(t,E?.fields,{isPartialValidation:!1}):{},"parseFormValues"),wn=u(t=>{if(!Bt(t))return null;let n=t.normalizedErrors.services_and_deliverables;return n?.source===Wt?{error:n.error,source:n.source,skippable:n.skippable}:null},"extractAiValidationError");async function hn(t){let n=e.currentStep.name,p=await xt(t);switch(n in X.current&&(X.current[n]=O(p,i[n])),e.currentStep.name){case"select_country":return _t(p.country),Promise.resolve({data:{countryCode:p.country}});case"basic_information":{let M=!o&&c,C=o&&c&&r?.country&&r?.country.code!==c;if(M||C){let D={basic_information:Me(p,"nationality_status","ir35","ir35_sds_file"),type:"contractor",country_code:c,external_id:T},mt=await Ne(D),ft=mt?.data?.employment?.id;if(!ft)throw h("Employment ID not found");return await Mt({employmentId:ft}),Oe(ft),mt}else if(o){let V=Me(p,"nationality_status","ir35","ir35_sds_file");return await Mt({employmentId:o}),Be({employmentId:o,basic_information:V})}return}case"contract_details":{let M=s.services_and_deliverables_error_skippable===!0,C={contract_document:p,skip_ai_checks:M};try{let V=await Qe({employmentId:o,payload:C}),D=V?.data?.contract_document?.id;if(!D)throw h("Contract document ID not found");return gt(D),V}catch(V){let D=wn(V);throw D&&wt({...t,services_and_deliverables_ai_warning:ne(f===_),services_and_deliverables_error_skippable:D.skippable}),V}}case"contract_preview":{if(yn)return Promise.resolve({data:{contract_document:{id:g}}});let M=await Je({employmentId:o,contractDocumentId:g,payload:{signature:p.signature}});return await fn(),M}case"pricing_plan":{if(t.subscription===zt)return Promise.resolve({data:{subscription:t.subscription}});if(B.length===0)throw h("No available subscriptions.");if(!t.subscription&&B.length>0)throw h("Please select a subscription plan.");if(N&&[_,ot].includes(t.subscription))throw h(`This individual is not eligible for ${de[t.subscription]}.`);if(R&&t.subscription!==_)try{await Ke({employmentId:o}),await ct()}catch(C){if(C?.response?.status!==404)throw C;await ct()}if(t.subscription==z)return kt({employmentId:o,payload:{operation:"downgrade"}});if(t.subscription==ot)return kt({employmentId:o,payload:{operation:"upgrade"}});if(t.subscription==_)return R&&r?.contractor_type!=="cor"?qt({employmentId:o}):Promise.resolve({data:{subscription:t.subscription}});throw h("invalid selection")}case"eligibility_questionnaire":try{if((await Ue({employmentId:o,payload:p}))?.data?.is_blocking)throw Z(!1),Ct("pricing_plan"),h("This individual is not eligible for Contractor of Record.");return await qt({employmentId:o})}finally{await ct()}default:throw h("Invalid step state")}}return u(hn,"onSubmit"),{isLoading:pt||dt,fieldValues:s,stepState:e,checkFieldUpdates:wt,markContractAsReviewed:u(()=>{yt.current?.()},"markContractAsReviewed"),back:qe,next:u(()=>{o&&vt(),Ae()},"handleNextStep"),goTo:Cn,onSubmit:hn,fields:i[e.currentStep.name],meta:{fields:X.current,fieldsets:_n[e.currentStep.name],presentation:gn[e.currentStep.name]},parseFormValues:xt,canSkipAiValidation:s.services_and_deliverables_error_skippable===!0,handleValidation:u(async t=>{if(e.currentStep.name==="select_country")return x.handleValidation(t);if(b&&e.currentStep.name==="basic_information"){let n=await y(t,b?.fields,{isPartialValidation:!1});return b?.handleValidation(n)}if(S&&e.currentStep.name==="contract_details"){let n=await y(t,S?.fields,{isPartialValidation:!1});return S?.handleValidation(n)}if(F&&e.currentStep.name==="contract_preview"){let n=await y(t,F?.fields,{isPartialValidation:!0});return F?.handleValidation(n)}if(P&&e.currentStep.name==="pricing_plan"){let n=await y(t,P?.fields,{isPartialValidation:!1});return P?.handleValidation(n)}if(E&&e.currentStep.name==="eligibility_questionnaire"){let n=await y(t,E?.fields,{isPartialValidation:!1});return E?.handleValidation(n)}return null},"handleValidation"),initialValues:Sn,employmentId:o,refetchEmployment:vt,isSubmitting:Pt.isPending||Et.isPending||at.isPending||It.isPending||Rt.isPending||Ft.isPending||Vt.isPending||Ot.isPending||Dt.isPending,documentPreviewPdf:lt,canInvite:je,isEmploymentReadOnly:v,invitedStatus:xe,employment:r,defaultLegalEntity:Le,steps:ke}},"useContractorOnboarding");export{ei as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as Xt,b as ie,c as oe,d as re,e as ae,f as se,g as ce,i as le,j as ue,k as de,l as pe,m as me,n as fe,o as ye,p as _e,q as ge,r as be,s as Se,t as Ce,u as we}from"./chunk-ZONDSFHH.js";import{a as he,b as ve,c as Pe}from"./chunk-VBEQBO5C.js";import{a as Yt,b as Zt,f as te,g as ee,h as ne}from"./chunk-75SQ56WH.js";import{a as z,b as ot,c as _,d as zt,g as Wt}from"./chunk-K5RHOXWA.js";import{a as Ht}from"./chunk-Q65JWWKR.js";import{f as Ut,h as Kt,i as Gt}from"./chunk-73MHNSF2.js";import{M as Jt}from"./chunk-ER46UFIU.js";import{a as Bt,b as w,d as Nt,h as y,i as k,u as O,v as h}from"./chunk-EFL7QFFN.js";import{a as $t}from"./chunk-JDIKYCN6.js";import{e as Qt}from"./chunk-H2O4CVKF.js";import{a as u}from"./chunk-P37U34EQ.js";import{useEffect as q,useMemo as a,useRef as Fe,useState as A}from"react";import Me from"lodash.omit";import{useQuery as vn}from"@tanstack/react-query";var Pn=u(()=>{let{client:L}=Qt(),{data:T}=ie(),l=oe(T)?T?.company?.id??"":"";return vn({queryKey:["legal-entities",l],queryFn:u(()=>Jt({client:L,path:{company_id:l},query:{page_size:100}}),"queryFn"),select:u(W=>W.data?.data?.legal_entities,"select"),enabled:!!l})},"useLegalEntities"),Ee=u(()=>{let{data:L}=Pn();return L?.find(T=>T.is_default)},"useDefaultLegalEntity");var En={select_country:null,basic_information:"employment_basic_information",contract_details:null,eligibility_questionnaire:null,pricing_plan:null,contract_preview:null,review:null},Fn={employment_basic_information:"basic_information"},ei=u(({countryCode:L,externalId:T,employmentId:l,skipSteps:W,options:m,initialValues:d})=>{let Ve=m?.excludeProducts||[],yt=Fe(m?.onContractReviewed);q(()=>{yt.current=m?.onContractReviewed},[m?.onContractReviewed]);let[c,_t]=A(L||null),[o,Oe]=A(l),[g,gt]=A(void 0),X=Fe({select_country:{},basic_information:{},contract_details:{},contract_preview:{},pricing_plan:{},eligibility_questionnaire:{}}),[Y,Ie]=A(void 0),[bt,Z]=A(!1),[St,Re]=A(!0),[rt,Ct]=A(null),{steps:De,stepsArray:ke}=a(()=>Yt({includeSelectCountry:!W?.includes("select_country"),includeEligibilityQuestionnaire:bt,includeContractPreview:St}),[bt,St,W]),{fieldValues:s,stepState:e,setFieldValues:wt,previousStep:qe,nextStep:Ae,goToStep:j,setStepValues:ht}=$t(De);q(()=>{rt&&(j(rt),Ct(null))},[rt,j]);let{data:r,isLoading:Te,refetch:vt}=Ht({employmentId:o,queryParams:{exclude_files:!0}}),Le=Ee(),{status:I}=r||{},v=I&&te.includes(I),je=I&&!ee.includes(I),xe=a(()=>I&&["invited","initiated"].includes(I)?"invited":"not_invited",[I]),Pt=Kt(),Et=Gt(c,m),at=ue(),Ft=Xt(),{mutateAsync:Mt}=me(at,Ft,s),Vt=ge(),Ot=be(),{mutateAsyncOrThrow:Be}=w(Et),It=ae(),Rt=le(),Dt=Se(),{mutateAsyncOrThrow:Ne}=w(Pt),{mutateAsyncOrThrow:Qe}=w(at),{mutateAsyncOrThrow:Je}=w(It),{mutateAsyncOrThrow:kt}=w(Rt),{mutateAsyncOrThrow:Ue}=w(Vt),{mutateAsyncOrThrow:qt}=w(Ot),{mutateAsyncOrThrow:Ke}=w(Dt);l&&r?.country?.code&&!c&&_t(r.country.code);let{selectCountryForm:x,isLoading:Ge,countries:At}=Ce({jsfModify:m?.jsfModify?.select_country}),st=a(()=>At?.find(t=>t.value===c),[At,c]),He=a(()=>st?.label,[st]),$e=e.currentStep.name==="pricing_plan"||!!l&&v,{form:P,isLoading:ze,contractorSubscriptions:tt,filteredContractorSubscriptions:B,refetch:ct,isEligibilityQuestionnaireBlocked:N}=pe(o,st,{jsonSchemaVersion:m?.jsonSchemaVersion,queryOptions:{enabled:$e},excludeProducts:Ve,jsfModify:m?.jsfModify?.pricing_plan}),R=a(()=>!!tt?.find(t=>t.product.short_name==="COR")?.eligibility_questionnaire?.submitted_at,[tt]);q(()=>{if(R){Z(!1);return}else Z(Y===_)},[R,Y]),q(()=>{let t=r?.contractor_type==="cor";Re(!t)},[r?.contractor_type]);let et=a(()=>tt?.find(t=>t.product.short_name==="COR")?.eligibility_questionnaire?.responses,[tt]),We=En[e.currentStep.name]||"contractor_basic_information",Xe=Fn[We],Ye=r?.[Xe]||{},Ze=u(({form:t,options:n={},query:p={}})=>{let C=Object.keys(s).length>0?{...d,...e.values?.[e.currentStep.name],...s}:{...d,...Ye};return Ut({countryCode:c,form:t,fieldValues:C,query:p,options:{...n,queryOptions:{enabled:n.queryOptions?.enabled??!0}}})},"useJSONSchema"),tn=!!(c&&(e.currentStep.name==="basic_information"||l)),en=!!(c==="GBR"&&l&&e.currentStep.name==="basic_information"),{data:Q,isLoading:nn}=fe(l,{enabled:en}),{data:nt,isLoading:on}=ye(o,{enabled:!!o});q(()=>{nt&&nt.length>0&&!g&>(nt[0].id)},[nt,g]);let{data:b,isLoading:rn}=Ze({form:"contractor_basic_information",options:{jsfModify:ve(c,He,m),queryOptions:{enabled:tn}}}),an=a(()=>Zt(r?.basic_information?.provisional_start_date,s?.service_duration?.provisional_start_date),[r?.basic_information?.provisional_start_date,s?.service_duration?.provisional_start_date]),f=a(()=>{let t={standard:z,plus:ot,cor:_};if(s.subscription)return s.subscription;let n=e.values?.pricing_plan?.subscription;if(n&&!N)return n;if(R&&!N)return _;if(N&&R)return z;if(B&&B.length>0)return t[r?.contractor_type]||z},[s,e.values,R,r?.contractor_type,N,B]);q(()=>{f&&f!==Y&&Ie(f)},[f,Y]);let sn=a(()=>({...et,...d,...e.values?.eligibility_questionnaire,...s}),[et,d,e.values?.eligibility_questionnaire,s]),cn=a(()=>f===_&&e.currentStep.name==="eligibility_questionnaire"||!!l&&v&&f===_,[f,e.currentStep.name,l,v]),{data:E,isLoading:ln}=_e({options:{queryOptions:{enabled:cn},jsfModify:m?.jsfModify?.eligibility_questionnaire},fieldValues:sn}),un=!!(c&&e.currentStep.name==="contract_details"||v),{data:S,isLoading:dn}=we({countryCode:c,fieldValues:s,employmentId:o,options:{queryOptions:{enabled:un},jsfModify:he(m?.jsfModify?.contract_details,an,f,s,f===_)}}),pn=a(()=>e.currentStep.name==="contract_preview"||!!l&&v,[e.currentStep.name,l,v]),{data:F}=re({fieldValues:s,options:{queryOptions:{enabled:pn},jsfModify:Pe(m,s)}}),{data:lt,isLoading:mn,refetch:fn}=se({employmentId:o,contractDocumentId:g,options:{queryOptions:{enabled:!!g}}}),{hasCompanySignedContract:yn}=ce({employmentId:o,contractDocumentId:g,options:{queryOptions:{enabled:!!g}}}),i=a(()=>({select_country:x?.fields||[],basic_information:b?.fields||[],pricing_plan:P?.fields||[],eligibility_questionnaire:E?.fields||[],contract_details:S?.fields||[],contract_preview:F?.fields||[],review:[]}),[x?.fields,b?.fields,P?.fields,S?.fields,F?.fields,E?.fields]),_n={select_country:null,basic_information:b?.meta["x-jsf-fieldsets"],pricing_plan:null,contract_details:S?.meta["x-jsf-fieldsets"],eligibility_questionnaire:null,contract_preview:null,review:null},gn={select_country:x?.meta?.["x-jsf-presentation"],basic_information:b?.meta?.["x-jsf-presentation"],pricing_plan:P?.meta?.["x-jsf-presentation"],eligibility_questionnaire:E?.meta?.["x-jsf-presentation"],contract_details:S?.meta?.["x-jsf-presentation"],contract_preview:F?.meta?.["x-jsf-presentation"],review:null},{country:bn,basic_information:it={},contract_details:Tt={}}=r||{},Lt=bn?.code,J=a(()=>k(i.select_country,{country:c||Lt||""}),[i.select_country,c,Lt]),ut=a(()=>Q?.content?Nt(Q.content,Q.name):null,[Q?.content,Q?.name]),U=a(()=>{let t={...d,...it,ir35:r?.contract_details?.ir_35,nationality_status:r?.contract_details?.nationality,...ut&&{ir35_sds_file:[ut]}};return k(i.basic_information,t)},[d,it,r?.contract_details?.ir_35,r?.contract_details?.nationality,ut,i.basic_information]),K=a(()=>{let n={...{service_duration:{provisional_start_date:it.provisional_start_date}},...d,...Tt};return k(i.contract_details,n)},[i.contract_details,Tt,d,it]),G=a(()=>{let t=lt?.contract_document?.signatories?.find(p=>p.type==="company"),n={...d,signature:t?.signature};return k(i.contract_preview,n)},[i.contract_preview,d,lt]),H=a(()=>{let n={...{subscription:f},...d};return k(i.pricing_plan,n)},[i.pricing_plan,d,f]),$=a(()=>{let t={...d,...et};return k(i.eligibility_questionnaire,t)},[i.eligibility_questionnaire,d,et]),Sn=a(()=>({select_country:J,basic_information:U,contract_details:K,contract_preview:G,pricing_plan:H,eligibility_questionnaire:$}),[J,U,K,G,H,$]),dt=!!(l&&v&&e.currentStep.name!=="review"),pt=Ge||rn||Te||dn||ze||mn||nn||on||ln,jt=a(()=>{let n=r?.contractor_type==="cor"||i.contract_preview.length>0;return!!(dt&&!pt&&g&&i.basic_information.length>0&&i.contract_details.length>0&&n)},[dt,pt,g,i.basic_information.length,i.contract_details.length,i.contract_preview.length,r?.contractor_type]);q(()=>{jt&&(X.current={select_country:O(J,i.select_country,{skipMoneyConversion:!0}),basic_information:O(U,i.basic_information,{skipMoneyConversion:!0}),contract_details:O(K,i.contract_details,{skipMoneyConversion:!0}),contract_preview:O(G,i.contract_preview,{skipMoneyConversion:!0}),pricing_plan:O(H,i.pricing_plan,{skipMoneyConversion:!0}),eligibility_questionnaire:O($,i.eligibility_questionnaire,{skipMoneyConversion:!0})},ht({select_country:J,basic_information:U,contract_details:K,contract_preview:G,pricing_plan:H,eligibility_questionnaire:$,review:{}}),j("review"))},[jt,j,J,U,K,ht,i.select_country,i.basic_information,i.contract_details,i.pricing_plan,H,i.contract_preview,G,i.eligibility_questionnaire,$]);let Cn=u(t=>{j(t)},"goTo"),xt=u(async t=>x&&e.currentStep.name==="select_country"?t:b&&e.currentStep.name==="basic_information"?await y(t,b?.fields,{isPartialValidation:!1}):S&&e.currentStep.name==="contract_details"?await y(t,S?.fields,{isPartialValidation:!1}):F&&e.currentStep.name==="contract_preview"?await y(t,F?.fields,{isPartialValidation:!1}):P&&e.currentStep.name==="pricing_plan"?await y(t,P?.fields,{isPartialValidation:!1}):E&&e.currentStep.name==="eligibility_questionnaire"?await y(t,E?.fields,{isPartialValidation:!1}):{},"parseFormValues"),wn=u(t=>{if(!Bt(t))return null;let n=t.normalizedErrors.services_and_deliverables;return n?.source===Wt?{error:n.error,source:n.source,skippable:n.skippable}:null},"extractAiValidationError");async function hn(t){let n=e.currentStep.name,p=await xt(t);switch(n in X.current&&(X.current[n]=O(p,i[n])),e.currentStep.name){case"select_country":return _t(p.country),Promise.resolve({data:{countryCode:p.country}});case"basic_information":{let M=!o&&c,C=o&&c&&r?.country&&r?.country.code!==c;if(M||C){let D={basic_information:Me(p,"nationality_status","ir35","ir35_sds_file"),type:"contractor",country_code:c,external_id:T},mt=await Ne(D),ft=mt?.data?.employment?.id;if(!ft)throw h("Employment ID not found");return await Mt({employmentId:ft}),Oe(ft),mt}else if(o){let V=Me(p,"nationality_status","ir35","ir35_sds_file");return await Mt({employmentId:o}),Be({employmentId:o,basic_information:V})}return}case"contract_details":{let M=s.services_and_deliverables_error_skippable===!0,C={contract_document:p,skip_ai_checks:M};try{let V=await Qe({employmentId:o,payload:C}),D=V?.data?.contract_document?.id;if(!D)throw h("Contract document ID not found");return gt(D),V}catch(V){let D=wn(V);throw D&&wt({...t,services_and_deliverables_ai_warning:ne(f===_),services_and_deliverables_error_skippable:D.skippable}),V}}case"contract_preview":{if(yn)return Promise.resolve({data:{contract_document:{id:g}}});let M=await Je({employmentId:o,contractDocumentId:g,payload:{signature:p.signature}});return await fn(),M}case"pricing_plan":{if(t.subscription===zt)return Promise.resolve({data:{subscription:t.subscription}});if(B.length===0)throw h("No available subscriptions.");if(!t.subscription&&B.length>0)throw h("Please select a subscription plan.");if(N&&[_,ot].includes(t.subscription))throw h(`This individual is not eligible for ${de[t.subscription]}.`);if(R&&t.subscription!==_)try{await Ke({employmentId:o}),await ct()}catch(C){if(C?.response?.status!==404)throw C;await ct()}if(t.subscription==z)return kt({employmentId:o,payload:{operation:"downgrade"}});if(t.subscription==ot)return kt({employmentId:o,payload:{operation:"upgrade"}});if(t.subscription==_)return R&&r?.contractor_type!=="cor"?qt({employmentId:o}):Promise.resolve({data:{subscription:t.subscription}});throw h("invalid selection")}case"eligibility_questionnaire":try{if((await Ue({employmentId:o,payload:p}))?.data?.is_blocking)throw Z(!1),Ct("pricing_plan"),h("This individual is not eligible for Contractor of Record.");return await qt({employmentId:o})}finally{await ct()}default:throw h("Invalid step state")}}return u(hn,"onSubmit"),{isLoading:pt||dt,fieldValues:s,stepState:e,checkFieldUpdates:wt,markContractAsReviewed:u(()=>{yt.current?.()},"markContractAsReviewed"),back:qe,next:u(()=>{o&&vt(),Ae()},"handleNextStep"),goTo:Cn,onSubmit:hn,fields:i[e.currentStep.name],meta:{fields:X.current,fieldsets:_n[e.currentStep.name],presentation:gn[e.currentStep.name]},parseFormValues:xt,canSkipAiValidation:s.services_and_deliverables_error_skippable===!0,handleValidation:u(async t=>{if(e.currentStep.name==="select_country")return x.handleValidation(t);if(b&&e.currentStep.name==="basic_information"){let n=await y(t,b?.fields,{isPartialValidation:!1});return b?.handleValidation(n)}if(S&&e.currentStep.name==="contract_details"){let n=await y(t,S?.fields,{isPartialValidation:!1});return S?.handleValidation(n)}if(F&&e.currentStep.name==="contract_preview"){let n=await y(t,F?.fields,{isPartialValidation:!0});return F?.handleValidation(n)}if(P&&e.currentStep.name==="pricing_plan"){let n=await y(t,P?.fields,{isPartialValidation:!1});return P?.handleValidation(n)}if(E&&e.currentStep.name==="eligibility_questionnaire"){let n=await y(t,E?.fields,{isPartialValidation:!1});return E?.handleValidation(n)}return null},"handleValidation"),initialValues:Sn,employmentId:o,refetchEmployment:vt,isSubmitting:Pt.isPending||Et.isPending||at.isPending||It.isPending||Rt.isPending||Ft.isPending||Vt.isPending||Ot.isPending||Dt.isPending,documentPreviewPdf:lt,canInvite:je,isEmploymentReadOnly:v,invitedStatus:xe,employment:r,defaultLegalEntity:Le,steps:ke}},"useContractorOnboarding");export{ei as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3CDKTHT5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-76ZDXC2T.js";import{b as p}from"./chunk-KFYWUBRS.js";import{a as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-76ZDXC2T.js";import{b as p}from"./chunk-KFYWUBRS.js";import{a as c}from"./chunk-YEDPNGC2.js";import{f as a,h as d}from"./chunk-UGPYPGVV.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as y,useRef as b}from"react";import{jsx as l}from"react/jsx-runtime";import{createElement as g}from"react";function B({defaultValues:s,onSubmit:u,components:F}){let{formId:C,createCompanyBag:o}=f(),m=b(s),h=p(o.handleValidation),r=a({resolver:h,defaultValues:s,shouldUnregister:!1,mode:"onBlur"});y(()=>{let n=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==m.current[i])&&(o?.checkFieldUpdates(e),m.current={...e})});return()=>n?.unsubscribe()},[]);let S=t(async n=>{await u(n)},"handleSubmit");return g(d,{...r,key:`form-${o.stepState.currentStep.name}`},l("form",{id:C,onSubmit:r.handleSubmit(S),className:"space-y-4 RemoteFlows__OnboardingForm",children:l(c,{components:F,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}t(B,"CreateCompanyForm");export{B as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3LOC5XJ5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-VRRPMJLZ.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as m}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function p({onSubmit:n}){let{terminationBag:o}=e(),a=m(async t=>{let r=await o?.parseFormValues(t);await n?.(r),o?.next()},"handleSubmit");return u(i,{defaultValues:o.fieldValues,onSubmit:a})}m(p,"EmployeeCommunicationForm");export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3P46CNLA.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-B7IJZJCP.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-EFL7QFFN.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-3RGEOFP5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-EFL7QFFN.js";import{b as e}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function p({children:u,...t}){let{form:m,formId:l,costCalculatorBag:c}=s(),{components:i}=e(),o=i?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:r("RemoteFlows__CostCalculatorForm__ResetButton",t.className),form:l,onClick:C=>{c?.resetForm(),m.reset(),t.onClick?.(C)},children:u})}n(p,"CostCalculatorResetButton");export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3THSAI2N.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-PGWKJ6FK.js";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-PGWKJ6FK.js";import{a as l}from"./chunk-OVIOWKNG.js";import{a as d}from"./chunk-YEDPNGC2.js";import{h as m}from"./chunk-UGPYPGVV.js";import{c as s}from"./chunk-EFL7QFFN.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as k}from"react";import{jsx as c}from"react/jsx-runtime";import{createElement as w}from"react";function R({defaultValues:p,onSubmit:F,components:u}){let{formId:S,onboardingBag:e}=f(),r=l({handleValidation:e.handleValidation,defaultValues:p,checkFieldUpdates:e.checkFieldUpdates});k(()=>{e.employmentId&&e?.checkFieldUpdates(r.getValues())},[]);let g=t(async(a,y)=>{let n=y?.nativeEvent;if(n?.isDraftSubmission){let{onSuccess:E,onError:i}=n.draftCallbacks;try{let o=await e.onSubmit(a);if(o?.data)E?.();else if(o?.error){let b=e.stepState.currentStep.name,h=e.meta?.fields?.[b],P=s(o?.fieldErrors||[],h);i?.({error:o.error,rawError:o.rawError,fieldErrors:P})}}catch(o){i?.({error:o,rawError:o,fieldErrors:[]})}}else await F(a)},"handleSubmit");return w(m,{...r,key:`form-${e.stepState.currentStep.name}`},c("form",{id:S,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:c(d,{components:u,fields:e.fields,fieldsets:e.meta.fieldsets,fieldValues:e.fieldValues})}))}t(R,"OnboardingForm");export{R as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4NU2RDSJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-ZLZAHVV5.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function t({field:m,fieldData:i}){return n(o,{name:m.name,...i,type:"email"})}e(t,"EmailFieldDefault");export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4T66UEMY.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-GJIKWHFV.js";import{j as a,k as i,l as s,n as p,o as F}from"./chunk-UGPYPGVV.js";import{n as t}from"./chunk-EFL7QFFN.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as U}from"react/jsx-runtime";function b({field:o,fieldState:_,fieldData:c}){let{name:l,label:d,description:m,multiple:f,accept:u}=c;return U(a,{"data-field":l,className:`RemoteFlows__FileUpload__Item__${l}`,children:[e(i,{className:"RemoteFlows__FileUpload__Label",children:d}),e(s,{children:e(n,{onChange:o.onChange,multiple:f,className:t("RemoteFlows__FileUpload__Input"),accept:u,files:o.value})}),m&&e("div",{className:"flex items-center justify-between",children:e(p,{className:"RemoteFlows__FileUpload__Description",children:m})}),_.error&&e(F,{className:"RemoteFlows__FileUpload__Error"})]})}r(b,"FileUploadFieldDefault");export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-547SAUNX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-B7BJXPGT.js";import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-B7BJXPGT.js";import{a}from"./chunk-MXI6VPRG.js";import{a as i}from"./chunk-G6F6ZZES.js";import{a as S}from"./chunk-FHYOWPXB.js";import{a as c}from"./chunk-QXW2MAFG.js";import{a as f}from"./chunk-KBTXSPHK.js";import{a as n}from"./chunk-LWKPIYNR.js";import{a as s}from"./chunk-PJF6KXN6.js";import{a as p}from"./chunk-UXQVHXRL.js";import{a as d}from"./chunk-ONIYOQMH.js";import{c as t}from"./chunk-WH26FC23.js";import{a as r}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{useId as P,useState as R}from"react";import{jsx as y}from"react/jsx-runtime";var N=e(({employmentId:g,companyId:l,countryCode:u,type:b="employee",externalId:v,skipSteps:B,initialValues:I,render:O,options:w})=>{let C=P(),o=t({companyId:l,countryCode:u,employmentId:g,type:b,options:w,skipSteps:B,externalId:v,initialValues:I}),[D,h]=R({showReserveInvoice:!1,showInviteSuccessful:!1});return y(r.Provider,{value:{formId:C,onboardingBag:o,creditScore:D,setCreditScore:h},children:O({onboardingBag:o,components:{BasicInformationStep:n,EngagementAgreementDetailsStep:d,ContractDetailsStep:p,BenefitsStep:s,SubmitButton:i,SaveDraftButton:c,BackButton:m,OnboardingInvite:a,SelectCountryStep:f,ReviewStep:S}})})},"OnboardingFlow");export{N as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5SY73IBC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{g as o}from"./chunk-EFL7QFFN.js";import{a as e}from"./chunk-P37U34EQ.js";var d={form:{index:0,name:"form"},confirmation_form:{index:1,name:"confirmation_form"}};function f(t,r){if(!t)return{};if(!r)return{...t.contract_details,effective_date:"",reason_for_change:"",job_title:t.job_title,additional_comments:"",annual_gross_salary:o(t.contract_details?.annual_gross_salary)};let s=r.map(n=>n.name),i=Object.keys(t?.contract_details||{});return{...s.reduce((n,a)=>{if(i.includes(a)){let c=t?.contract_details;n[a]=c[a]}return n},{}),effective_date:"",reason_for_change:"",job_title:t.job_title,additional_comments:"",annual_gross_salary:o(t.contract_details?.annual_gross_salary),additional_comments_toggle:!1}}e(f,"buildInitialValues");export{d as a,f as b};
|
|
2
|
+
//# sourceMappingURL=chunk-6BPEPQ3C.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-TUJZUC3C.js";import{n as e}from"./chunk-EFL7QFFN.js";import{a as o}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as t,jsxs as r}from"react/jsx-runtime";var l=["You submit your termination request.","Remote reviews 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, Remote 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.","Remote shares termination documents with the employee.","The employee signs the termination documents if required.","Remote processes the final salary and offboards the employee."],f=o(()=>r(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. Remote will lead communication with them after you submit this form and they finalize the termination terms."}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description RemoteFlows__TerminationDialogInfoContent__FollowUpDescription"),children:"If you already informed them, that's okay. Remote will ask for the details regarding that communication and they'll 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:l.map((a,m)=>t("li",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessListItem"),children:a},m))})]}),"TerminationDialogInfoContent");export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6D5IHLXV.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as F,b as P,c as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as F,b as P,c as k}from"./chunk-WQ27VHVA.js";import{a as w}from"./chunk-NHLUPT2E.js";import{a as c,b as C}from"./chunk-KMANQZL4.js";import{j as h,k as x,l as v,n as b,o as D}from"./chunk-UGPYPGVV.js";import{n as t}from"./chunk-EFL7QFFN.js";import{a as n}from"./chunk-P37U34EQ.js";import{CalendarIcon as V}from"lucide-react";import{format as R}from"date-fns";import{ChevronLeft as z,ChevronRight as L}from"lucide-react";import{DayPicker as O}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function N({className:r,classNames:i,showOutsideDays:m=!0,...a}){return p(O,{showOutsideDays:m,className:t("p-3",r),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:t(c({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:t("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:t(c({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...i},components:{IconLeft:n(({className:l,...o})=>p(z,{className:t("size-4",l),...o}),"IconLeft"),IconRight:n(({className:l,...o})=>p(L,{className:t("size-4",l),...o}),"IconRight")},...a})}n(N,"Calendar");import{useState as B}from"react";import{Fragment as T,jsx as e,jsxs as u}from"react/jsx-runtime";function ee({field:r,fieldData:i,fieldState:m}){let{name:a,label:l,description:o,minDate:f,maxDate:g}=i,s=f?new Date(f):void 0,y=g?new Date(g):void 0,[I,_]=B(!1);return u(h,{"data-field":a,className:`flex flex-col RemoteFlows__DatePickerField__Item__${a}`,children:[e(x,{className:"RemoteFlows__DatePickerField__Label",children:l}),u(F,{open:I,onOpenChange:_,children:[e(P,{asChild:!0,children:e(v,{children:e("div",{children:u(C,{type:"button",variant:"outline",className:t("w-full pl-3 text-left font-normal",!r.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${a}`,children:[r.value&&e(T,{children:R(r.value,"yyyy-MM-dd")}),e(V,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(k,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(N,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:r.value?new Date(r.value):void 0,onDayClick:d=>{let M=R(d,"yyyy-MM-dd");r.onChange(M),_(!1)},defaultMonth:s,disabled:d=>!!(s&&d<s||y&&d>y)})})]}),o?e(b,{helpCenter:e(w,{helpCenter:i.meta?.helpCenter}),children:o}):null,m.error&&e(D,{className:"RemoteFlows__DatePickerField__Error"})]})}n(ee,"DatePickerFieldDefault");export{ee as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6MP4UBOE.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t,b as n,c as l,d as i,e as s,f as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t,b as n,c as l,d as i,e as s,f as d}from"./chunk-GZE3PWOZ.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({open:w,onClose:D,data:o,isLoading:m,error:p,zendeskURL:f,Trigger:c}){return r(t,{open:w,onOpenChange:g=>!g&&D(),direction:"right",children:[e(n,{asChild:!0,children:c}),e(l,{className:"h-full w-[540px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:r("div",{className:"h-full flex flex-col",children:[r(i,{children:[e(s,{children:o?.title}),r(d,{children:["For more details see our"," ",e("a",{href:f,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),m&&e("div",{children:"Loading..."}),p&&e("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),e("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:o?.body||""}})]})})]})}a(h,"ZendeskDrawerDefault");export{h as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6OYB7OE5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o,b as a,c as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o,b as a,c as i}from"./chunk-KUMYB3ZB.js";import{a as n}from"./chunk-P37U34EQ.js";import{AlertCircle as p}from"lucide-react";import{jsx as t,jsxs as c}from"react/jsx-runtime";function g({data:s}){let{title:e,description:r,severity:l}=s,m={warning:"warning",error:"destructive",info:"default",success:"warning"}[l]??"warning";return c(o,{variant:m,children:[t(p,{className:"h-4 w-4"}),e&&t(a,{dangerouslySetInnerHTML:{__html:e}}),r&&t(i,{dangerouslySetInnerHTML:{__html:r}})]})}n(g,"StatementDefault");export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6UWJNDPG.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as A,f as d,g as y}from"./chunk-D6MFIXSJ.js";import{a as x}from"./chunk-WVJDCDGZ.js";import{a as R}from"./chunk-F2ENM2JE.js";import{a as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as A,f as d,g as y}from"./chunk-D6MFIXSJ.js";import{a as x}from"./chunk-WVJDCDGZ.js";import{a as R}from"./chunk-F2ENM2JE.js";import{a as p}from"./chunk-OXKDKDSH.js";import{A as _,D as O,F as w,I as S,K as q,P as v,U as V,ba as P,ca as j,g as f,i as g,j as h,n as b,o as E,w as C,x as F}from"./chunk-ER46UFIU.js";import{e as i}from"./chunk-H2O4CVKF.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as l,useQuery as c}from"@tanstack/react-query";var Y=t(e=>{let{client:r}=i();return c({queryKey:["company",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let n=await F({client:r,headers:{Authorization:""},path:{company_id:e}});if(n.error||!n.data)throw new Error("Failed to fetch employment data");return n},"queryFn"),select:t(({data:n})=>n.data.company,"select")})},"useCompany"),Z=t(e=>{let{client:r}=i();return c({queryKey:["benefit-offers",e],retry:!1,enabled:!!e,queryFn:t(async()=>b({client:r,path:{employment_id:e}}).then(n=>{if(n.error||!n.data)throw new Error("Failed to fetch benefit offers data");return n}),"queryFn"),select:t(({data:n})=>n?.data?.reduce((s,o)=>({...s,[o.benefit_group.slug]:{value:o.benefit_tier?.slug??"no",...o.benefit_group?.filter?.slug?{filter:o.benefit_group?.filter?.slug}:{}}}),{}),"select")})},"useBenefitOffers"),$=t((e,r)=>{let{client:n}=i();return c({queryKey:["employment-engagement-agreement-details",e],retry:!1,enabled:r?.enabled??!!e,queryFn:t(async()=>P({client:n,headers:{Authorization:""},path:{employment_id:e}}).then(s=>{if(s.error||!s.data)throw new Error("Failed to fetch engagement agreement details");return s}),"queryFn"),select:t(({data:s})=>s?.data?.details,"select")})},"useEmploymentEngagementAgreementDetails"),ee=t(()=>{let{client:e}=i();return l({mutationFn:t(r=>V({client:e,headers:{Authorization:""},path:r}),"mutationFn")})},"useEmploymentInvite"),te=t(()=>{let{client:e}=i();return l({mutationFn:t(r=>C({client:e,body:r}),"mutationFn")})},"useCreateReserveInvoice"),ne=t(({countryCode:e,form:r,fieldValues:n,options:s,query:o={},jsonSchemaVersion:a})=>{let{client:m}=i(),D=a?{json_schema_version:a}:{};return c({queryKey:["onboarding-json-schema-form",e,r,a],retry:!1,queryFn:t(async()=>{let u=await _({client:m,headers:{Authorization:""},path:{country_code:e,form:r},query:{skip_benefits:!0,...o,...D}});if(u.error||!u.data)throw new Error("Failed to fetch onboarding schema");return u},"queryFn"),enabled:s?.queryOptions?.enabled,select:t(({data:u})=>{let I=u?.data||{};return p(I,n,s)},"select")})},"useJSONSchemaForm"),re=t((e,r,n)=>{let{client:s}=i(),o={json_schema_version:y(n)};return c({queryKey:["benefit-offers-schema",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let a=await w({client:s,path:{employment_id:e},query:o});if(a.error||!a.data)throw new Error("Failed to fetch benefit offers schema");return a},"queryFn"),select:t(({data:a})=>{let m=a?.data?.schema||{};return p(m,r,{jsfModify:n?.jsfModify?.benefits})},"select")})},"useBenefitOffersSchema"),oe=t(e=>{let{client:r}=i(),n={json_schema_version:d(e)};return l({mutationFn:t(s=>g({client:r,headers:{Authorization:""},body:s,query:{...n}}),"mutationFn")})},"useCreateEmployment"),se=t((e,r)=>{let{client:n}=i(),s={employment_basic_information_json_schema_version:d(r),contract_details_json_schema_version:A(r,e)||1};return l({mutationFn:t(({employmentId:o,...a})=>S({client:n,headers:{Authorization:""},body:a,path:{employment_id:o},query:{skip_benefits:!0,...s}}),"mutationFn")})},"useUpdateEmployment"),ae=t(()=>{let{client:e}=i();return l({mutationFn:t(({employmentId:r,...n})=>j({client:e,headers:{Authorization:""},body:n,path:{employment_id:r}}),"mutationFn")})},"useUpdateEmploymentEngagementAgreementDetails"),ie=t(e=>{let{client:r}=i();return l({mutationFn:t(({employmentId:n,...s})=>{let o={json_schema_version:y(e)};return E({client:r,body:s,path:{employment_id:n},query:o})},"mutationFn")})},"useUpdateBenefitsOffers"),me=t(e=>{let{client:r}=i(),{data:n,isLoading:s}=c({...R(r,"onboarding-countries"),select:t(a=>a.data?.data?.filter(m=>m.eor_onboarding).map(m=>({label:m.name,value:m.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),o=p(x.data.schema,{},e);if(n){let a=o.fields.find(m=>m.name==="country");a&&(a.options=n)}return{isLoading:s,selectCountryForm:o}},"useCountriesSchemaField"),le=t(({type:e="spread"})=>{let{client:r}=i();return l({mutationFn:t(n=>(e==="no_spread"?f:v)({client:r,body:n}),"mutationFn")})},"useConvertCurrency"),ce=t(()=>{let{client:e}=i();return l({mutationFn:t(({employmentId:r,...n})=>q({client:e,path:{employment_id:r},body:n}),"mutationFn")})},"useUpsertContractEligibility"),ue=t((e,r,n=!0)=>{let{client:s}=i();return c({queryKey:["employment-onboarding-reserves-status",e,r],retry:!1,enabled:n&&!!e&&!!r,queryFn:t(async()=>{let o=await h({client:s,headers:{Authorization:""},path:{company_id:e,employment_id:r}});if(o.error||!o.data)throw new Error("Failed to fetch employment onboarding reserves status");return o},"queryFn"),select:t(({data:o})=>o?.data?.status,"select")})},"useEmploymentOnboardingReservesStatus"),pe=t((e,r,n)=>{let{client:s}=i();return c({queryKey:["engagement-agreement-details",e],retry:!1,enabled:n?.queryOptions?.enabled??!!e,queryFn:t(async()=>{let o=await O({client:s,path:{country_code:e}});if(o.error||!o.data)throw new Error("Failed to fetch engagement agreement details");return o},"queryFn"),select:t(({data:o})=>{let a=o?.data?.schema||{};return p(a,r,{jsfModify:n?.jsfModify?.engagement_agreement_details})},"select")})},"useEngagementAgreementDetailsSchema");export{Y as a,Z as b,$ as c,ee as d,te as e,ne as f,re as g,oe as h,se as i,ae as j,ie as k,me as l,le as m,ce as n,ue as o,pe as p};
|
|
2
|
+
//# sourceMappingURL=chunk-73MHNSF2.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b as s,e as l,h as c,i as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a,b as s,e as l,h as c,i as d}from"./chunk-K5RHOXWA.js";import{a as i}from"./chunk-P37U34EQ.js";function _(e={}){let o=[{name:"select_country",label:"Select Country",visible:!!e?.includeSelectCountry},{name:"basic_information",label:"Basic Information",visible:!0},{name:"pricing_plan",label:"Pricing Plan",visible:!0},{name:"eligibility_questionnaire",label:"Eligibility Questionnaire",visible:!!e?.includeEligibilityQuestionnaire},{name:"contract_details",label:"Contract Details",visible:!0},{name:"contract_preview",label:"Contract Preview",visible:!!e?.includeContractPreview},{name:"review",label:"Review",visible:!0}].map((n,r)=>({name:n.name,index:r,label:n.label,visible:n.visible}));return{steps:o.reduce((n,r)=>(n[r.name]={index:r.index,name:r.name,visible:r.visible},n),{}),stepsArray:o}}i(_,"buildSteps");var E=i((e,t)=>{if(e&&t&&e!==t)return`When the contractor will start providing service to your company. ${`This date does not match the date you provided in the Basic Information step - ${e} - and will override it only when both parties have signed the contract.`}`},"calculateProvisionalStartDateDescription"),v=i(e=>e===a||e===s,"isCMOrCMPlus"),p=["SAU","KWT","OMN","QAT","BHR"],g=i(e=>p.includes(e),"isNationalityCountryCode"),y=i((e,t)=>!t||t.length===0?!0:!t.some(o=>l[o]===e),"shouldIncludeProduct"),S=["initiated","invited","created_awaiting_reserve","created_reserve_paid"],f=["initiated","created_awaiting_reserve","invited"];function R(e){return e?d:c}i(R,"transformAiErrorResponse");export{_ as a,E as b,v as c,g as d,y as e,S as f,f as g,R as h};
|
|
2
|
+
//# sourceMappingURL=chunk-75SQ56WH.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as J}from"./chunk-QPAABSI5.js";import{b as ne,c as ie,f as le}from"./chunk-Z3N32RAC.js";import{a as re}from"./chunk-C5TVWLAX.js";import{a as oe}from"./chunk-NHLUPT2E.js";import{a as te}from"./chunk-ZLZAHVV5.js";import{b as G}from"./chunk-TUJZUC3C.js";import{c as g,i as T,m as B}from"./chunk-UGPYPGVV.js";import{l as j,m as ee,n as H,r as O}from"./chunk-EFL7QFFN.js";import{b as S,c as x}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as no,useEffect as io,useRef as We}from"react";import V from"lodash.omit";import{jsx as se}from"react/jsx-runtime";function me({description:e,label:o,name:t,minDate:r,maxDate:i,onChange:l,component:a,...s}){let{components:p}=S(),{control:u}=g(),F=x(),m;s.meta?.mot&&typeof s.meta.mot=="number"?m=j(s.meta.mot):typeof r=="string"&&(m=new Date(`${r}T00:00:00`));let f;return i&&(f=new Date(`${i}T23:59:59`)),se(T,{control:u,name:t,render:({field:C,fieldState:h})=>{let c=a||p?.date;if(!c)throw new Error(`Date picker component not found for field ${t}`);let P={description:e,label:o,name:t,onChange:l,transformHtml:F,...m&&{minDate:m.toISOString()},...f&&{maxDate:f.toISOString()},...s};return se(c,{field:{...C,onChange:n(y=>{C.onChange(y),l?.(y)},"onChange")},fieldState:h,fieldData:P})}})}n(me,"DatePickerField");import{jsx as ae}from"react/jsx-runtime";var Oe=n((e,o)=>{if(!o)return null;for(let t of e)if(t.size>o){let r=Math.round(o/1048576),i=Math.round(t.size/(1024*1024));return`File "${t.name}" exceeds maximum size of ${r}MB (file is ${i}MB)`}return null},"validateFileSize");function de({name:e,description:o,label:t,multiple:r,onChange:i,component:l,accept:a,maxSize:s,...p}){let{components:u}=S(),{control:F,setError:m,clearErrors:f}=g(),C=x(),h=n(async(c,P)=>{let y=Oe(c,s);if(y){m(e,{message:y});return}f(e),P.onChange(c),i?.(c)},"handleOnChange");return ae(T,{control:F,name:e,render:({field:c,fieldState:P})=>{let y=l||u.file;if(!y)throw new Error(`File upload component not found for field ${e}`);let b={name:e,description:o,label:t,multiple:r,accept:a,maxFileSize:s,transformHtml:C,...p};return ae(y,{field:{...c,value:c.value,onChange:n(async w=>h(w,c),"onChange")},fieldState:P,fieldData:b})}})}n(de,"FileUploadField");import{jsx as pe}from"react/jsx-runtime";function I({component:e,onChange:o,...t}){let{components:r}=S(),{control:i}=g(),l=x();return pe(T,{control:i,name:t.name,render:({field:a,fieldState:s})=>{let p=e||r.number;if(!p)throw new Error(`Number component not found for field ${t.name}`);let u={onChange:o,transformHtml:l,...t};return pe(p,{field:{...a,onChange:n(F=>{a.onChange(F),o?.(F)},"onChange")},fieldState:s,fieldData:u})}})}n(I,"NumberField");import{jsx as ce}from"react/jsx-runtime";function ue({name:e,defaultValue:o,description:t,label:r,options:i,onChange:l,component:a,...s}){let{components:p}=S(),{control:u}=g(),F=x();return ce(T,{control:u,name:e,defaultValue:o,render:({field:m,fieldState:f})=>{let C=a||p?.radio;if(!C)throw new Error(`Radio group component not found for field ${e}`);let h={name:e,defaultValue:o,description:t,label:r,options:i,transformHtml:F,...s};return ce(C,{field:{...m,onChange:n(c=>{m.onChange(c),l?.(c)},"onChange")},fieldState:f,fieldData:h})}})}n(ue,"RadioGroupField");import{jsx as Fe}from"react/jsx-runtime";function fe({label:e,name:o,options:t,defaultValue:r,description:i,onChange:l,component:a,...s}){let{control:p}=g(),{components:u}=S(),F=x();return Fe(T,{defaultValue:r,control:p,name:o,render:({field:m,fieldState:f})=>{let C=a||u?.select;if(!C)throw new Error(`Select component not found for field ${o}`);let h={label:e,name:o,options:t,defaultValue:r,description:i,onChange:l,transformHtml:F,...s};return Fe(C,{field:{...m,onChange:n(c=>{let y=(Array.isArray(s.jsonType)?s.jsonType.includes("number"):s.jsonType==="number")?Number(c):c;m.onChange(y),l?.(y)},"onChange")},fieldState:f,fieldData:h})}})}n(fe,"SelectField");import{jsx as Ce}from"react/jsx-runtime";function ge({label:e,name:o,options:t,defaultValue:r,description:i,onChange:l,$meta:a,component:s,...p}){let{control:u}=g(),{components:F}=S(),m=x();return Ce(T,{defaultValue:r,control:u,name:o,render:({field:f,fieldState:C})=>{let h=s||F.countries;if(!h)throw new Error(`Country component not found for field ${o}`);let c={label:e,name:o,options:t,defaultValue:r,description:i,onChange:l,$meta:a,transformHtml:m,...p};return Ce(h,{field:{...f,onChange:n(P=>{f.onChange(P),l?.(P)},"onChange")},fieldState:C,fieldData:c})}})}n(ge,"CountryField");import{jsx as he}from"react/jsx-runtime";function Se({name:e,description:o,label:t,onChange:r,maxLength:i,component:l,...a}){let{components:s}=S(),{control:p}=g(),u=x();return he(T,{control:p,name:e,render:({field:F,fieldState:m})=>{let f=l||s.textarea;if(!f)throw new Error(`Text area component not found for field ${e}`);let C={name:e,description:o,label:t,maxLength:i,transformHtml:u,...a};return he(f,{field:{...F,onChange:n(h=>{F.onChange(h),r?.(h)},"onChange")},fieldState:m,fieldData:C})}})}n(Se,"TextAreaField");import{jsx as Te}from"react/jsx-runtime";function xe({component:e,onChange:o,...t}){let{components:r}=S(),{control:i}=g(),l=x();return Te(T,{control:i,name:t.name,render:({field:a,fieldState:s})=>{let p=e||r.email;if(!p)throw new Error(`Email component not found for field ${t.name}`);let u={onChange:o,transformHtml:l,...t};return Te(p,{field:{...a,onChange:n(F=>{a.onChange(F),o?.(F)},"onChange")},fieldState:s,fieldData:u})}})}n(xe,"EmailField");import{useEffect as Ge}from"react";import{jsx as ye}from"react/jsx-runtime";function be(e){let{control:o,setValue:t}=g();return Ge(()=>{e.const!==void 0&&e.const===e.default&&e.name&&t(e.name,e.const)},[e.const,e.default,e.name,t]),ye(T,{control:o,name:e.name,render:({field:r})=>ye("input",{...r,type:"hidden"})})}n(be,"HiddenField");import{useEffect as Ue,useState as Ze}from"react";import{jsx as Pe}from"react/jsx-runtime";function $e(e){let{components:o}=S(),{setValue:t,control:r,watch:i}=g(),l=x(),a=i(e.name),[s,p]=Ze(a),{workHoursSummary:u,breakSummary:F}=ie(s),m=ne(s);Ue(()=>{t(e.name,s)},[s,e.name,t]);function f(c){p(c)}n(f,"onSubmit");let C=e.component||o["work-schedule"];if(!C)throw new Error(`Work schedule component not found for field ${e.name}`);let h={...e,onSubmit:f,currentSchedule:s,transformHtml:l,defaultFormattedValue:{workHoursSummary:u,breakSummary:F,totalWorkHours:m}};return Pe(T,{control:r,name:e.name,render:({field:c,fieldState:P})=>Pe(C,{field:{...c,onChange:n(y=>{c.onChange(y),e.onChange?.(y)},"onChange")},fieldState:P,fieldData:h})})}n($e,"WorkScheduleField");import{jsx as De}from"react/jsx-runtime";function Re({label:e,name:o,options:t,defaultValue:r,description:i,onChange:l,component:a,...s}){let{control:p}=g(),{components:u}=S(),F=x();return De(T,{defaultValue:r,control:p,name:o,render:({field:m,fieldState:f})=>{let C=a||u?.["multi-select"];if(!C)throw new Error(`Multi select component not found for field ${o}`);let h={label:e,name:o,options:t,defaultValue:r,description:i,onChange:l,transformHtml:F,...s};return De(C,{field:{...m,onChange:n(c=>{m.onChange(c),l?.(c)},"onChange")},fieldState:f,fieldData:h})}})}n(Re,"MultiSelectField");import{jsx as Ke}from"react/jsx-runtime";var ve=n(e=>Ke(I,{maxLength:15,...e}),"MoneyField");import{useMemo as L,useCallback as we,useState as qe,useEffect as Qe,useRef as Xe}from"react";import{jsx as U}from"react/jsx-runtime";function Ye(e){return e.replace(/\s/g,"")}n(Ye,"removeSpaces");function _e(e="",o){let t=new RegExp(`^(\\+|00)(\\d{${o?.dialCode?.length??0}})(.*)$`),r=e?.match(t);if(!r)return{prefix:"",dialCode:"",phoneNumber:e};let[,i,l,a]=r;return{prefix:i,dialCode:l,phoneNumber:a}}n(_e,"getStructuredNumberFromInternationalNumber");function Ee({dialCodes:e,dialCodeMaxLength:o},t){let{prefix:r}=_e(t);if(r)for(let i=o+r.length;i>r.length;i--){let l=t.slice(r.length,i);if(e[l])return e[l]}}n(Ee,"getCountryFromPhoneNumber");function Me(e){let o={},t=0;return e.forEach(r=>{r.areaCodes?r.areaCodes.forEach(i=>{let l=r.dialCode+i;o[l]=r,l.length>t&&(t=l.length)}):(o[r.dialCode]=r,r.dialCode.length>t&&(t=r.dialCode.length))}),{dialCodes:o,dialCodeMaxLength:t}}n(Me,"getCountryDataByCountryCode");function je(e=""){let o=/\(([^)]+)\)/g,t=e.match(o);if(t?.length===2)return t[1].replace(/\(|\)/g,"").split("|")}n(je,"getAreaCodesFromPattern");function eo(e){return e.map(o=>({name:o.label,dialCode:o.meta.countryCode,pattern:o.pattern,areaCodes:je(o.pattern)}))}n(eo,"transformSchemaToCountries");function oo({field:e,fieldState:o,fieldData:t,component:r,onChangeCountryCode:i,onChangePhoneNumber:l}){let{value:a}=e,{options:s}=t,p=L(()=>eo(s),[s]),u=L(()=>Me(p),[p]),F=Xe(!1),[m,f]=qe(()=>Ee(Me(p),a||""));Qe(()=>{if((!a||a==="+")&&(F.current=!1),F.current)return;let b=Ee(u,a||"");f(b)},[a,u]);let{prefix:C,phoneNumber:h}=L(()=>_e(a,m),[a,m]),c=we(b=>{if(!b)return;let w=`+${b.dialCode}${h}`;F.current=!0,f(b),e.onChange(w),i&&i(b)},[h,e,i]),P=we(b=>{let w=Ye(b.target.value),_;if(m?_=`${C}${m.dialCode}${w}`:_=`${C}${w}`,e.onChange(_),l){let N={target:{value:_,name:e.name}};l(N)}},[m,C,e,l]),y=L(()=>({...t,onChangeCountryCode:c,onChangePhoneNumber:P,currentCountry:m,nationalPhoneNumber:h}),[t,c,P,m,h]);return U(r,{field:e,fieldState:o,fieldData:y})}n(oo,"TelFieldRenderer");function Ne({name:e,description:o,label:t,onChangeCountryCode:r,onChangePhoneNumber:i,component:l,...a}){let{components:s}=S(),{control:p}=g(),u=x();return U(T,{control:p,name:e,render:({field:F,fieldState:m})=>{let f=l||s.tel;if(!f)throw new Error(`Tel component not found for field ${e}`);let C={name:e,description:o,label:t,transformHtml:u,...a};return U(oo,{field:F,fieldState:m,fieldData:C,component:f,onChangeCountryCode:r,onChangePhoneNumber:i})}})}n(Ne,"TelField");import{jsx as ke}from"react/jsx-runtime";function He({name:e,description:o,label:t,type:r,onChange:i,component:l,maxLength:a,...s}){let{components:p}=S(),{control:u}=g(),F=x();return ke(T,{control:u,name:e,render:({field:m,fieldState:f})=>{let C=l||p?.time;if(!C)throw new Error(`Time component not found for field ${e}`);let h={name:e,description:o,label:t,type:r,onChange:i,maxLength:a,transformHtml:F,...s};return ke(C,{field:{...m,onChange:n(c=>{m.onChange(c),i?.(c)},"onChange")},fieldState:f,fieldData:h})}})}n(He,"TimeField");var Z={checkbox:le,text:te,email:xe,money:ve,select:fe,"multi-select":Re,radio:ue,number:I,file:de,date:me,textarea:Se,countries:ge,hidden:be,tel:Ne,time:He,"work-schedule":$e};import{useEffect as to}from"react";import{jsx as K,jsxs as ro}from"react/jsx-runtime";function Ve({name:e,value:o,description:t,statement:r,label:i,helpCenter:l}){let{setValue:a}=g(),s=r?.description||t,p=r?.title?O(r?.title):O(i),u=`forced-value-${e}-title`,F=`forced-value-${e}-description`;return to(()=>{a(e,o)},[e,o,a]),!s&&!r?.title?null:ro("div",{role:"group","aria-labelledby":p?u:void 0,"aria-describedby":s?F:void 0,children:[p&&K("p",{id:u,className:`text-sm RemoteFlows__ForcedValue__Title__${e}`,dangerouslySetInnerHTML:{__html:p}}),K(B,{as:"span",id:F,className:`text-xs RemoteFlows__ForcedValue__Description__${e}`,helpCenter:K(oe,{className:"RemoteFlows__ForcedValue__HelpCenterLink",helpCenter:l}),children:s})]})}n(Ve,"ForcedValueField");import{Fragment as q,jsx as $,jsxs as M}from"react/jsx-runtime";function Ae({label:e,name:o,fields:t,description:r,components:i,statement:l,isFlatFieldset:a,extra:s,variant:p="outset",features:u,meta:F}){let{helpCenter:m}=F||{},{watch:f,setValue:C,trigger:h,formState:c}=g(),{components:P}=S(),y=u?.toggle?.stateField,b=y?f(y):u?.toggle?.defaultExpanded??!0,w=t.map(({name:d})=>`${o}.${d}`),_=t.some(d=>d.calculateDynamicProperties),N=f(w),Be=_?f():N,Q=We(N),k=We(null),Je=n(()=>{y&&C(y,!b)},"toggleExpanded");io(()=>{let d=N,E=Q.current,R=c.isSubmitted||c.submitCount>0,W=!1;for(let v=0;v<d.length;v++)if(d[v]!==void 0&&E[v]!==d[v]){W=!0;break}return W&&R&&(k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{h()},50)),Q.current=[...d],()=>{k.current&&clearTimeout(k.current)}},[N,h,c.isSubmitted,c.submitCount]);let Ie=P?.fieldsetToggle||re,X=`${o}-content`,Y=`${o}-header`;return M("fieldset",{className:H("border-1 border-input p-4 rounded-xl","RemoteFlows__FieldSetField",`RemoteFlows__FieldSetField__${o}`),children:[$("legend",{className:H("text-sm font-semibold px-2",p==="inset"&&"hidden"),children:e}),m?.callToAction&&m?.id&&p==="outset"&&$(G,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:m.id,children:m.callToAction}),p==="inset"&&M(q,{children:[M("div",{className:"RemoteFlows__FieldSetField__Header",id:Y,"data-state":b?"expanded":"collapsed","aria-expanded":b,children:[$("h3",{className:H("RemoteFlows__FieldSetField__Title"),children:e}),u?.toggle?.enabled&&$(Ie,{isExpanded:b,onToggle:Je,"aria-expanded":b,"aria-controls":X,"aria-label":`${b?"Hide":"Show"} ${e}`,className:H("RemoteFlows__FieldSetField__Toggle",u.toggle?.className),children:b?u.toggle.labels?.collapse??"Remove":u.toggle.labels?.expand??"Define"})]}),m?.callToAction&&m?.id&&$(G,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:m.id,children:m.callToAction})]}),b&&M("div",{id:X,"aria-labelledby":Y,role:"region",children:[r?$(B,{as:"div",className:"mb-5 RemoteFlows__FieldSetField__Description",children:r}):null,M("div",{className:"grid gap-4",children:[t.map(d=>{if(d.calculateDynamicProperties&&(d={...d,...d.calculateDynamicProperties(Be,d)||{}}),d.isVisible===!1||d.deprecated)return null;let E=d.type,R=`${a?d.name:`${o}.${d.name}`}`,W=ee(d),v=n((D,A)=>d.WrapperComponent?$(d.WrapperComponent,{children:D},A):$(no,{children:D},A),"wrapWithCustomWrapper");if(W){let D=V(d,"WrapperComponent");return v($(Ve,{name:R,description:D.description,value:D.const,statement:D.statement,label:D.label,helpCenter:D.meta?.helpCenter}),R)}if(E==="fieldset"){let D=V(d,"WrapperComponent");return v($(Ae,{...D,name:R,components:i}),R)}if(E==="fieldset-flat"){let D=V(d,"WrapperComponent");return v($(Ae,{...D,name:R,components:i,isFlatFieldset:!0}),R)}let z=Z[E];if(d.Component){let{Component:D}=d,A=V(d,"WrapperComponent");return v(M(q,{children:[$(D,{...A,value:f(R),setValue:ze=>{C(R,ze)}}),d.statement?$(J,{...d.statement}):null,d.extra?d.extra:null]}),R)}if(!z)return M("p",{className:"error",children:["Field type ",E," not supported"]});E==="select"&&d.multiple&&(z=Z["multi-select"]);let Le=V(d,"WrapperComponent");return v(M(q,{children:[$(z,{...Le,name:R,component:i?.[E]}),d.statement?$(J,{...d.statement}):null,d.extra?d.extra:null]}),R)}),s||null,l?$(J,{...l}):null]})]})]})}n(Ae,"FieldSetField");export{Z as a,Ve as b,Ae as c};
|
|
2
|
+
//# sourceMappingURL=chunk-AAGHUVZO.js.map
|