@remoteoss/remote-flows 1.33.2 → 1.35.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/WorkScheduleFieldDefault-6NNTPTZ6.js +2 -0
- package/dist/ZendeskDrawerDefault-ILQM2VEO.js +2 -0
- package/dist/{chunk-N5DHVRQR.js → chunk-23HL6DQK.js} +2 -2
- package/dist/{chunk-CFCUY6VA.js → chunk-2K4N6RPD.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-XWZP4WYZ.js → chunk-3THSAI2N.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-NZXVTXZY.js → chunk-6BPEPQ3C.js} +2 -2
- package/dist/{chunk-2IIHA7AA.js → chunk-6D5IHLXV.js} +2 -2
- package/dist/{chunk-G6E7F6VD.js → chunk-6J2NNZFD.js} +2 -2
- package/dist/{chunk-CMPHQVJ3.js → chunk-6MP4UBOE.js} +2 -2
- package/dist/{chunk-B3ACYI7T.js → chunk-6N7CL2FW.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-FJUUNJHY.js → chunk-73MHNSF2.js} +2 -2
- package/dist/chunk-75SQ56WH.js +2 -0
- package/dist/{chunk-AHRG5QCS.js.map → chunk-75SQ56WH.js.map} +1 -1
- package/dist/{chunk-Z4USLCXF.js → chunk-AAFMRJIJ.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-KYNIBHVR.js → chunk-B33CFFRO.js} +2 -2
- package/dist/chunk-B5ZUJ3BW.js +2 -0
- package/dist/chunk-B5ZUJ3BW.js.map +1 -0
- package/dist/{chunk-EJWKMMZV.js → chunk-BJPP76IU.js} +2 -2
- package/dist/{chunk-CQQCOU57.js → chunk-BPHP4644.js} +2 -2
- package/dist/{chunk-N2MBTATE.js → chunk-BYUVUCEV.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-ZAVH2YKN.js → chunk-D4ICAFJT.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-TVBZT6FA.js → chunk-D6MFIXSJ.js} +2 -2
- package/dist/chunk-D6MFIXSJ.js.map +1 -0
- package/dist/{chunk-TXP3DGU6.js → chunk-DA6F2YHP.js} +2 -2
- package/dist/{chunk-FFOTUKBN.js → chunk-DACZVIVC.js} +2 -2
- package/dist/{chunk-5CYUZQSB.js → chunk-DKQBNCS2.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-J2G2I3PX.js → chunk-DVA6ZFFO.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-3JXNNFJV.js → chunk-ETHDBZ36.js} +2 -2
- package/dist/chunk-FBY4CWF3.js +2 -0
- package/dist/chunk-FBY4CWF3.js.map +1 -0
- package/dist/{chunk-VZEIJSTF.js → chunk-FP7WMKYE.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-ZSCJ6CT5.js → chunk-H7SQIYSJ.js} +2 -2
- package/dist/{chunk-MXARM6PV.js → chunk-IUSNP2RM.js} +2 -2
- package/dist/{chunk-LDI7E3ZK.js → chunk-IWLTCLND.js} +2 -2
- package/dist/{chunk-5BGNKOPP.js → chunk-JSFVJCPK.js} +2 -2
- package/dist/{chunk-U3PQEGSV.js → chunk-JSSCFAYO.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-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-L5SNHVLU.js → chunk-LZZVBUCD.js} +2 -2
- package/dist/{chunk-ZE37CBDF.js → chunk-M4RIGLB4.js} +2 -2
- package/dist/{chunk-4FQCB4LB.js → chunk-MNDI2GCD.js} +2 -2
- package/dist/chunk-MXI6VPRG.js +2 -0
- package/dist/{chunk-IQRJNJQ7.js.map → chunk-MXI6VPRG.js.map} +1 -1
- package/dist/{chunk-C7GJUNNC.js → chunk-NHLUPT2E.js} +2 -2
- package/dist/{chunk-PSN4ZR5Y.js → chunk-NHRV7Y2J.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-DUJVDBY4.js → chunk-NQUXKKDJ.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-33NHO3CG.js → chunk-OO3ZIFMK.js} +2 -2
- package/dist/chunk-ORJZEO4M.js +2 -0
- package/dist/chunk-ORJZEO4M.js.map +1 -0
- package/dist/{chunk-U5QVIJOS.js → chunk-OVIOWKNG.js} +2 -2
- package/dist/{chunk-QHZPSH52.js → chunk-OXKDKDSH.js} +2 -2
- package/dist/{chunk-5KTF4QMV.js → chunk-OXNPFA6L.js} +2 -2
- package/dist/{chunk-2LUPUTP6.js → chunk-P4JZMXRV.js} +2 -2
- package/dist/{chunk-R63ZJMJA.js → chunk-PCNT5L6Q.js} +2 -2
- package/dist/{chunk-ND66GS24.js → chunk-PJPTFKXG.js} +2 -2
- package/dist/{chunk-CDX5QDO3.js → chunk-PWU5T5XH.js} +2 -2
- package/dist/{chunk-RQGYSZOO.js → chunk-QF4K5JBQ.js} +2 -2
- package/dist/{chunk-6PXDRES5.js → chunk-QKEC26QD.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-ZAZ24JS2.js → chunk-RCGOP7XI.js} +2 -2
- package/dist/{chunk-3TLNWNFZ.js → chunk-S2KYDG6K.js} +2 -2
- package/dist/{chunk-JFSM3EOC.js → chunk-S6FPUDIB.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-DU55JKPB.js → chunk-TLW6RBWW.js} +2 -2
- package/dist/{chunk-W4YDSTXA.js → chunk-TUJZUC3C.js} +2 -2
- package/dist/{chunk-VAYKULUJ.js → chunk-TV4OM2K6.js} +2 -2
- package/dist/{chunk-QWIPKY24.js → chunk-TXUUBPHA.js} +2 -2
- package/dist/{chunk-VLWFSFRL.js → chunk-TYMZUQP5.js} +2 -2
- package/dist/{chunk-VYBMEFCQ.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-A7IG7GGK.js → chunk-UKEDOJJY.js} +2 -2
- package/dist/{chunk-2HREQZP4.js → chunk-VGCRMNT3.js} +2 -2
- package/dist/{chunk-XK24ZBGA.js → chunk-VLIF5NL3.js} +2 -2
- package/dist/{chunk-YPVZUXVH.js → chunk-VPCAVFRX.js} +2 -2
- package/dist/{chunk-VBP6CRNM.js → chunk-WGXANFZD.js} +2 -2
- package/dist/{chunk-IKZZOOWO.js → chunk-WH26FC23.js} +2 -2
- package/dist/{chunk-RS25IVTP.js → chunk-WH422OER.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-FIVDMRET.js → chunk-YFGM5OOK.js} +2 -2
- package/dist/{chunk-B3KDZREG.js → chunk-YIPQZRQ7.js} +2 -2
- package/dist/{chunk-BQA2DJF2.js → chunk-Z3N32RAC.js} +2 -2
- package/dist/{chunk-4MW7KA47.js → chunk-ZLZAHVV5.js} +2 -2
- package/dist/{chunk-JLFYJT3K.js → chunk-ZONDSFHH.js} +2 -2
- package/dist/{chunk-YLHYARJK.js → chunk-ZQE3SMB2.js} +2 -2
- package/dist/default-components.d.ts +2 -2
- package/dist/default-components.js +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/Onboarding/utils.js +1 -1
- 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/internals.d.ts +3 -3
- package/dist/internals.js +1 -1
- package/dist/{mutations-tMusyGqR.d.ts → mutations-5jtxzMHI.d.ts} +1 -1
- package/dist/{remoteFlows-1ODSR6M5.d.ts → remoteFlows-D20C-bbv.d.ts} +1 -1
- package/dist/{types-CY31SALf.d.ts → types-BF8TR6q-.d.ts} +1 -1
- package/dist/{types-B3ZY2CHC.d.ts → types-D3RLWSIc.d.ts} +2 -2
- package/dist/{types-BADwm0IP.d.ts → types-DXcPPAIH.d.ts} +4 -4
- package/dist/{types-BdaVhuNW.d.ts → types-YWOtp-jl.d.ts} +3 -3
- package/dist/{types-B3zSOF4R.d.ts → types-iHnxMh8R.d.ts} +3 -3
- package/dist/{types.gen-D39CBKLR.d.ts → types.gen-SftwpQjb.d.ts} +1 -1
- package/dist/{utils-BwkOqPg_.d.ts → utils-CGGtw1aC.d.ts} +1 -1
- package/package.json +2 -2
- 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-AHRG5QCS.js +0 -2
- package/dist/chunk-G247NY7P.js +0 -2
- package/dist/chunk-G247NY7P.js.map +0 -1
- package/dist/chunk-IQRJNJQ7.js +0 -2
- package/dist/chunk-JXAAON7I.js +0 -2
- package/dist/chunk-PMAIML44.js +0 -2
- package/dist/chunk-PMAIML44.js.map +0 -1
- package/dist/chunk-T35SZZ74.js +0 -2
- package/dist/chunk-T35SZZ74.js.map +0 -1
- package/dist/chunk-TVBZT6FA.js.map +0 -1
- package/dist/chunk-TXSUZLOI.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 → WorkScheduleFieldDefault-6NNTPTZ6.js.map} +0 -0
- /package/dist/{ZendeskDrawerDefault-NQP7CBPW.js.map → ZendeskDrawerDefault-ILQM2VEO.js.map} +0 -0
- /package/dist/{chunk-N5DHVRQR.js.map → chunk-23HL6DQK.js.map} +0 -0
- /package/dist/{chunk-CFCUY6VA.js.map → chunk-2K4N6RPD.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-XWZP4WYZ.js.map → chunk-3THSAI2N.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-NZXVTXZY.js.map → chunk-6BPEPQ3C.js.map} +0 -0
- /package/dist/{chunk-2IIHA7AA.js.map → chunk-6D5IHLXV.js.map} +0 -0
- /package/dist/{chunk-G6E7F6VD.js.map → chunk-6J2NNZFD.js.map} +0 -0
- /package/dist/{chunk-CMPHQVJ3.js.map → chunk-6MP4UBOE.js.map} +0 -0
- /package/dist/{chunk-B3ACYI7T.js.map → chunk-6N7CL2FW.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-FJUUNJHY.js.map → chunk-73MHNSF2.js.map} +0 -0
- /package/dist/{chunk-Z4USLCXF.js.map → chunk-AAFMRJIJ.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-KYNIBHVR.js.map → chunk-B33CFFRO.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-N2MBTATE.js.map → chunk-BYUVUCEV.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-ZAVH2YKN.js.map → chunk-D4ICAFJT.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-TXP3DGU6.js.map → chunk-DA6F2YHP.js.map} +0 -0
- /package/dist/{chunk-FFOTUKBN.js.map → chunk-DACZVIVC.js.map} +0 -0
- /package/dist/{chunk-5CYUZQSB.js.map → chunk-DKQBNCS2.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-J2G2I3PX.js.map → chunk-DVA6ZFFO.js.map} +0 -0
- /package/dist/{chunk-5FHNCDLU.js.map → chunk-ELOOP66L.js.map} +0 -0
- /package/dist/{chunk-3JXNNFJV.js.map → chunk-ETHDBZ36.js.map} +0 -0
- /package/dist/{chunk-VZEIJSTF.js.map → chunk-FP7WMKYE.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-ZSCJ6CT5.js.map → chunk-H7SQIYSJ.js.map} +0 -0
- /package/dist/{chunk-MXARM6PV.js.map → chunk-IUSNP2RM.js.map} +0 -0
- /package/dist/{chunk-LDI7E3ZK.js.map → chunk-IWLTCLND.js.map} +0 -0
- /package/dist/{chunk-5BGNKOPP.js.map → chunk-JSFVJCPK.js.map} +0 -0
- /package/dist/{chunk-U3PQEGSV.js.map → chunk-JSSCFAYO.js.map} +0 -0
- /package/dist/{chunk-ED7I5OM2.js.map → chunk-K44B6MQA.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-L5SNHVLU.js.map → chunk-LZZVBUCD.js.map} +0 -0
- /package/dist/{chunk-ZE37CBDF.js.map → chunk-M4RIGLB4.js.map} +0 -0
- /package/dist/{chunk-4FQCB4LB.js.map → chunk-MNDI2GCD.js.map} +0 -0
- /package/dist/{chunk-C7GJUNNC.js.map → chunk-NHLUPT2E.js.map} +0 -0
- /package/dist/{chunk-PSN4ZR5Y.js.map → chunk-NHRV7Y2J.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-DUJVDBY4.js.map → chunk-NQUXKKDJ.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-33NHO3CG.js.map → chunk-OO3ZIFMK.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-5KTF4QMV.js.map → chunk-OXNPFA6L.js.map} +0 -0
- /package/dist/{chunk-2LUPUTP6.js.map → chunk-P4JZMXRV.js.map} +0 -0
- /package/dist/{chunk-R63ZJMJA.js.map → chunk-PCNT5L6Q.js.map} +0 -0
- /package/dist/{chunk-ND66GS24.js.map → chunk-PJPTFKXG.js.map} +0 -0
- /package/dist/{chunk-CDX5QDO3.js.map → chunk-PWU5T5XH.js.map} +0 -0
- /package/dist/{chunk-RQGYSZOO.js.map → chunk-QF4K5JBQ.js.map} +0 -0
- /package/dist/{chunk-6PXDRES5.js.map → chunk-QKEC26QD.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-ZAZ24JS2.js.map → chunk-RCGOP7XI.js.map} +0 -0
- /package/dist/{chunk-3TLNWNFZ.js.map → chunk-S2KYDG6K.js.map} +0 -0
- /package/dist/{chunk-JFSM3EOC.js.map → chunk-S6FPUDIB.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-DU55JKPB.js.map → chunk-TLW6RBWW.js.map} +0 -0
- /package/dist/{chunk-W4YDSTXA.js.map → chunk-TUJZUC3C.js.map} +0 -0
- /package/dist/{chunk-VAYKULUJ.js.map → chunk-TV4OM2K6.js.map} +0 -0
- /package/dist/{chunk-QWIPKY24.js.map → chunk-TXUUBPHA.js.map} +0 -0
- /package/dist/{chunk-VLWFSFRL.js.map → chunk-TYMZUQP5.js.map} +0 -0
- /package/dist/{chunk-VYBMEFCQ.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-A7IG7GGK.js.map → chunk-UKEDOJJY.js.map} +0 -0
- /package/dist/{chunk-2HREQZP4.js.map → chunk-VGCRMNT3.js.map} +0 -0
- /package/dist/{chunk-XK24ZBGA.js.map → chunk-VLIF5NL3.js.map} +0 -0
- /package/dist/{chunk-YPVZUXVH.js.map → chunk-VPCAVFRX.js.map} +0 -0
- /package/dist/{chunk-VBP6CRNM.js.map → chunk-WGXANFZD.js.map} +0 -0
- /package/dist/{chunk-IKZZOOWO.js.map → chunk-WH26FC23.js.map} +0 -0
- /package/dist/{chunk-RS25IVTP.js.map → chunk-WH422OER.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-FIVDMRET.js.map → chunk-YFGM5OOK.js.map} +0 -0
- /package/dist/{chunk-B3KDZREG.js.map → chunk-YIPQZRQ7.js.map} +0 -0
- /package/dist/{chunk-BQA2DJF2.js.map → chunk-Z3N32RAC.js.map} +0 -0
- /package/dist/{chunk-4MW7KA47.js.map → chunk-ZLZAHVV5.js.map} +0 -0
- /package/dist/{chunk-JLFYJT3K.js.map → chunk-ZONDSFHH.js.map} +0 -0
- /package/dist/{chunk-YLHYARJK.js.map → chunk-ZQE3SMB2.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-YIPQZRQ7.js";import{j as a,k as n,l as s,n as F,o as _}from"./chunk-UGPYPGVV.js";import{a as l}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as u}from"react/jsx-runtime";function I({field:o,fieldState:p,fieldData:c}){let{name:r,label:t,description:m,maxLength:d,includeErrorMessage:x}=c;return u(a,{"data-field":r,className:`RemoteFlows__TextField__Item__${r}`,children:[t&&e(n,{className:"RemoteFlows__TextField__Label",children:t}),e(s,{children:e(i,{...o,value:o.value??"",onChange:T=>{o.onChange(T)},className:"RemoteFlows__TextField__Input",placeholder:t,maxLength:d})}),m&&e(F,{className:"RemoteFlows__TextField__Description",children:m}),x&&p.error&&e(_,{className:"RemoteFlows__TextField__Error"})]})}l(I,"TextFieldDefault");export{I as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NLC63NKD.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as Z}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as Z}from"./chunk-DACZVIVC.js";import{a as I}from"./chunk-VFRHMNLJ.js";import{a as Q,b as W,c as X,f as Y}from"./chunk-VGCRMNT3.js";import{a as C}from"./chunk-HN5HLFTB.js";import{a as G}from"./chunk-KFYWUBRS.js";import{c as ee}from"./chunk-B5ZUJ3BW.js";import{a as z}from"./chunk-OXKDKDSH.js";import{b as K,h as M}from"./chunk-EFL7QFFN.js";import{a as o}from"./chunk-P37U34EQ.js";import{number as Be,object as se}from"yup";import{useCallback as je,useEffect as te,useMemo as we,useRef as Re,useState as j}from"react";import{string as ne,ValidationError as re}from"yup";import{jsx as ie}from"react/jsx-runtime";var O={title:"Estimation",includeBenefits:!1,includeCostBreakdowns:!1,includePremiumBenefits:!1,enableCurrencyConversion:!1,includeEstimationTitle:!1,includeManagementFee:!1},Pe=o(t=>z(I.data.schema,void 0,t),"useStaticSchema");function xe(t,i){if(typeof t=="object"&&t!==null&&"title"in t){let l=t.title;if(l)return l}return i==="my_hiring_budget"?"Hiring budget":"Employee's annual salary"}o(xe,"getSalaryTitle");var ze=o(({defaultRegion:t,defaultCurrency:i,defaultSalary:l,estimationOptions:s,options:n,version:a}={estimationOptions:O})=>{let u=Re({fields:{}}),[k,h]=j(t),[w,R]=j(),[m,q]=j(),[H,le]=j(),{data:_,isLoading:ue}=Q({includePremiumBenefits:s.includePremiumBenefits}),{data:d,isLoading:ce}=W(),me=k||w?.value,{data:P,isLoading:de}=Y(me,{includePremiumBenefits:s.includePremiumBenefits,options:n}),U=X(),{mutateAsync:fe}=K(U),b=w?.currency,p=n?.jsfModify?.fields?.salary,F=p&&typeof p=="object"&&"presentation"in p?p.presentation:void 0,L=je(()=>{let e=b&&m?b!==m:!1;return b!==m?{from:m,to:b,shouldSwapOrder:e}:{from:b,to:m,shouldSwapOrder:e}},[b,m]),J=s.showManagementFee,$=s.includeEstimationTitle,ge=we(()=>{let{from:e,to:r,shouldSwapOrder:c}=L(),g=xe(p,H);return{fields:{salary:{...p,title:g,presentation:{salary_conversion_properties:{label:F?.salary_conversion_properties?.label,description:F?.salary_conversion_properties?.description},currencies:{from:e,to:r},Component:o(y=>ie(Z,{...y,shouldSwapOrder:c,conversionType:a==="marketing"?"no_spread":"spread",defaultValue:l}),"Component")}},hiring_budget:{...n?.jsfModify?.fields?.hiring_budget,presentation:{hidden:a=="marketing"}},management:{...n?.jsfModify?.fields?.management,properties:{...n?.jsfModify?.fields?.management?.properties,management_fee:{...n?.jsfModify?.fields?.management?.properties?.management_fee,"x-jsf-presentation":{inputType:"money",additionalProps:{currency:m||"USD"}}}},presentation:{...typeof n?.jsfModify?.fields?.management=="object"?(n?.jsfModify?.fields?.management)["x-jsf-presentation"]:{},hidden:!J,Component:o(y=>ie(ee,{...y,variant:"inset",features:{toggle:{enabled:!0,stateField:"management._expanded",labels:{expand:"Define",collapse:"Remove"}}}}),"Component")}},estimation_title:{...n?.jsfModify?.fields?.estimation_title,"x-jsf-presentation":{hidden:!$}}}}},[L,p,H,F?.salary_conversion_properties?.label,F?.salary_conversion_properties?.description,n?.jsfModify?.fields?.hiring_budget,n?.jsfModify?.fields?.management,n?.jsfModify?.fields?.estimation_title,a,m,J,$,l]),f=Pe({jsfModify:{fields:{...n?.jsfModify?.fields,...ge?.fields}}});te(()=>{if(t&&_){let e=_.find(({value:r})=>r===t);e&&R(e)}},[t,_]),te(()=>{if(i&&d){let e=d.find(({value:r})=>r===i);e&&q(e.label)}},[i,d]);async function ye(e){return fe(oe(e,s,a))}o(ye,"onSubmit");function pe(e){let r=_?.find(({value:c})=>c===e);r&&r.childRegions.length===0&&r.hasAdditionalFields?h(r.regionSlug):h(void 0),R(r)}o(pe,"onCountryChange");function Ce(e){h(e)}o(Ce,"onRegionChange");function _e(e){le(e.target.value)}o(_e,"onHiringBudgetChange");function be(e){let r=d?.find(c=>c.value===e)?.label;q(r),n?.onCurrencyChange?.(r||"")}o(be,"onChangeCurrency");let E=f.fields.find(e=>e.name==="region");if(E){let e=w?.childRegions.map(r=>({value:r.slug,label:r.name}))??[];E.options=e,E.isVisible=e.length>0,E.required=e.length>0,E.onChange=Ce,E.schema=e.length>0?ne().transform(r=>typeof r=="string"?r:"").required("Region is required"):ne()}if(d){let e=f.fields.find(r=>r.name==="currency");e&&(e.options=d,e.onChange=be)}let v=f.fields.find(e=>e.name==="hiring_budget");if(v&&(v.onChange=_e),_){let e=f.fields.find(r=>r.name==="country");e&&(e.options=_,e.onChange=pe)}let Ee=o(()=>{R(void 0),h(t)},"resetForm"),D=[...f.fields.filter(e=>e.name!=="management"),...P?.fields||[],...f.fields.filter(e=>e.name==="management")],N=ae(f.fields,m||"USD",s.includeEstimationTitle);async function Se(e){let r=null;n?.onValidation?.(e);let c=await M(e,D);try{await N.validate(c,{abortEarly:!1}),r={formErrors:{},yupError:new re([],e)}}catch(S){let B=G(S);r={formErrors:Object.entries(B).reduce((T,[A,V])=>({...T,[A]:V.message}),{}),yupError:S}}let g=P?.handleValidation(c),y=[...r?.yupError.inner||[],...g?.yupError?.inner||[]],x={...r?.yupError?.value||{},...g?.yupError?.value||{}};return{formErrors:{...r?.formErrors||{},...g?.formErrors||{}},yupError:new re(y,x)}}return o(Se,"handleValidation"),{stepState:{current:0,total:1,isLastStep:!0},fields:D,validationSchema:N,parseFormValues:o(async e=>{let{country:r,region:c,currency:g,salary_converted:y,hiring_budget:x,salary_conversion:S,management:B,estimation_title:T,...A}=e,V=e.salary;y==="salary_conversion"&&(V=S);let he=await M({country:r,region:c,salary:V,salary_converted:y,salary_conversion:S,hiring_budget:x,currency:g,management:B,estimation_title:T},f.fields),Fe=await M(A,P?.fields||[]),Ve={currency_code:d?.find(Me=>Me.value===g)?.label};return{...he,...Fe,...Ve}},"parseFormValues"),handleValidation:Se,isSubmitting:U.isPending,isLoading:ue&&ce&&de,onSubmit:ye,resetForm:Ee,currencies:d,meta:{fields:u.current?.fields}}},"useCostCalculator");function ae(t,i,l){let s=t.reduce((n,a)=>(a.name==="salary"||a.name==="salary_conversion"?n[a.name]=a.schema.when("salary_converted",{is:o(u=>u===a.name,"is"),then:o(u=>u.required("Required field"),"then"),otherwise:o(u=>u.optional(),"otherwise")}):a.name==="management"?n[a.name]=se({management_fee:Be().transform(u=>isNaN(u)?void 0:u).min(0,"Management fee must be greater than or equal to 0").max(i?C[i]:C.USD,()=>`Management fee cannot exceed ${(i?C[i]:C.USD)/100} ${i}`)}):a.name==="estimation_title"&&l?n[a.name]=a.schema.required("Required field"):n[a.name]=a.schema,n),{});return se(s)}o(ae,"buildValidationSchema");function Te(t){let i="benefit-";return Object.keys(t).reduce((l,s)=>{let n=t[s];if(n==="none")return l;let u={benefit_group_slug:s.replace(i,""),benefit_tier_slug:n};return[...l,u]},[])}o(Te,"formatBenefits");function Ae(t,i,l){let s=Number(t.management?.management_fee),n=t.currency_code;return{...{region_slug:t.region||t.country,employment_term:t.contract_duration_type??"fixed",title:t.estimation_title||i.title,age:t.age??void 0,...t.benefits&&{benefits:Te(t.benefits)},...i.includeManagementFee&&s&&{discount:{quoted_amount:i.showManagementFee?s:C[n]||C.USD,text:""}}},...Oe(t,l)}}o(Ae,"mapValueToEmployment");function Oe(t,i){let l=i==="marketing"||t.salary_converted==="salary_conversion",s=i==="standard"&&t.salary_converted==="salary",n=t.hiring_budget==="my_hiring_budget";if(l){let a=t.salary_converted==="salary_conversion";return n?{annual_total_cost_in_employer_currency:t.salary}:{[a?"annual_gross_salary_in_employer_currency":"annual_gross_salary"]:t.salary}}return s?n?{annual_total_cost:t.salary}:{annual_gross_salary:t.salary}:{}}o(Oe,"getSalaryFields");function oe(t,i=O,l="standard"){let s=Array.isArray(t)?t:[t];if(s.length===0)throw new Error("At least one employment value is required");return s.length>1&&new Set(s.map(a=>a.currency)).size>1&&console.warn("Multiple currencies detected in array. Using currency from first employment."),{employer_currency_slug:s[0].currency,include_benefits:i.includeBenefits,include_cost_breakdowns:i.includeCostBreakdowns,include_premium_benefits:i.includePremiumBenefits,include_management_fee:i.includeManagementFee,employments:s.map(n=>Ae(n,i,l))}}o(oe,"buildPayload");export{ae as a,oe as b,O as c,ze as d};
|
|
2
|
+
//# sourceMappingURL=chunk-NQUXKKDJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as n}from"./chunk-P37U34EQ.js";var o=n(t=>{let[e,r,a]=t.split("-").map(Number);return new Date(e,r-1,a)},"parseLocalDate");function g(){let t=new Date,e=n(r=>String(r).padStart(2,"0"),"pad");return`${t.getUTCFullYear()}-${e(t.getUTCMonth()+1)}-${e(t.getUTCDate())} ${e(t.getUTCHours())}:${e(t.getUTCMinutes())}:${e(t.getUTCSeconds())}Z`}n(g,"nowUtcFormatted");export{o as a,g as b};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-NW3D7CPK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/dates.ts"],"sourcesContent":["export function getYearMonthDate(date: Date) {\n const year = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n\n return {\n year,\n month,\n day,\n };\n}\n\n/**\n * Parses a date-only string (YYYY-MM-DD) as local time, avoiding timezone issues.\n *\n * Using `new Date('2025-01-15')` parses as UTC midnight, which becomes the previous\n * day in UTC-negative timezones (Americas). This function parses the date components\n * directly to create a Date at local midnight, ensuring the same calendar day\n * regardless of timezone.\n *\n * Use this for date-only strings from forms, API responses, or anywhere you need\n * calendar dates without time/timezone considerations.\n *\n * @example\n * // In New York (UTC-5):\n * new Date('2025-01-15') // → 2025-01-14T19:00:00 (previous day!)\n * parseLocalDate('2025-01-15') // → 2025-01-15T00:00:00 (correct day)\n */\nexport const parseLocalDate = (dateString: string) => {\n const [year, month, day] = dateString.split('-').map(Number);\n return new Date(year, month - 1, day);\n};\n\n/**\n * Formats current UTC date/time as ISO string for terms of service acceptance\n * @returns Formatted UTC datetime string (YYYY-MM-DD HH:mm:ssZ)\n */\nexport function nowUtcFormatted(): string {\n const now = new Date();\n const pad = (n: number) => String(n).padStart(2, '0');\n\n return (\n `${now.getUTCFullYear()}-${pad(now.getUTCMonth() + 1)}-${pad(now.getUTCDate())} ` +\n `${pad(now.getUTCHours())}:${pad(now.getUTCMinutes())}:${pad(now.getUTCSeconds())}Z`\n );\n}\n"],"mappings":"wCA4BO,IAAMA,EAAiBC,EAACC,GAAuB,CACpD,GAAM,CAACC,EAAMC,EAAOC,CAAG,EAAIH,EAAW,MAAM,GAAG,EAAE,IAAI,MAAM,EAC3D,OAAO,IAAI,KAAKC,EAAMC,EAAQ,EAAGC,CAAG,CACtC,EAH8B,kBASvB,SAASC,GAA0B,CACxC,IAAMC,EAAM,IAAI,KACVC,EAAMP,EAACQ,GAAc,OAAOA,CAAC,EAAE,SAAS,EAAG,GAAG,EAAxC,OAEZ,MACE,GAAGF,EAAI,eAAe,CAAC,IAAIC,EAAID,EAAI,YAAY,EAAI,CAAC,CAAC,IAAIC,EAAID,EAAI,WAAW,CAAC,CAAC,IAC3EC,EAAID,EAAI,YAAY,CAAC,CAAC,IAAIC,EAAID,EAAI,cAAc,CAAC,CAAC,IAAIC,EAAID,EAAI,cAAc,CAAC,CAAC,GAErF,CARgBN,EAAAK,EAAA","names":["parseLocalDate","__name","dateString","year","month","day","nowUtcFormatted","now","pad","n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as i,c as m,d as s,e as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as i,c as m,d as s,e as f}from"./chunk-DL5NWXSY.js";import{a as n}from"./chunk-NW3D7CPK.js";import{a}from"./chunk-P37U34EQ.js";import{useState as O}from"react";var B=a(({proposedTerminationDate:e,employeeName:y,employmentId:o,employment:r,render:d})=>{let[t,u]=O(!1),l=m({employmentId:o}),p=n(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=i({employmentId:o,options:{enabled:t}}),D=s({employmentId:o,date:e}),P=f({employmentId:o,proposedTerminationDate:e,employment:r});return d({leavePoliciesSummaryQuery:l,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:D,formattedProposedTerminationDate:p,employeeName:y,proposedTerminationDate:e,summaryData:P??{data:{entitledDays:"0 days",bookedDays:"0 days",usedDays:"0 days",approvedDaysBeforeTermination:"0 days",approvedDaysAfterTermination:"0 days",remainingDays:"0 days",isUnlimitedPto:!1},isLoading:!1,isError:!1,error:null},employment:r,open:t,onOpenChange:a(()=>{u(T=>!T)},"onOpenChange")})},"PaidTimeOffContainer");export{B as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NXSKHM4K.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{n}from"./chunk-EFL7QFFN.js";import{a as i}from"./chunk-P37U34EQ.js";import*as o from"@radix-ui/react-dialog";import{XIcon as s}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function p({...t}){return a(o.Root,{"data-slot":"dialog",...t})}i(p,"Dialog");function f({...t}){return a(o.Trigger,{"data-slot":"dialog-trigger",...t})}i(f,"DialogTrigger");function g({...t}){return a(o.Portal,{"data-slot":"dialog-portal",...t})}i(g,"DialogPortal");function d({className:t,...e}){return a(o.Overlay,{"data-slot":"dialog-overlay",className:n("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}i(d,"DialogOverlay");function u({className:t,children:e,...r}){return l(g,{"data-slot":"dialog-portal",children:[a(d,{}),l(o.Content,{"data-slot":"dialog-content",className:n("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...r,children:[e,l(o.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 RemoteFlows__Dialog__Close",children:[a(s,{}),a("span",{className:"sr-only",children:"Close"})]})]})]})}i(u,"DialogContent");function v({className:t,...e}){return a("div",{"data-slot":"dialog-header",className:n("flex flex-col gap-2 text-center sm:text-left",t),...e})}i(v,"DialogHeader");function D({className:t,...e}){return a("div",{"data-slot":"dialog-footer",className:n("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}i(D,"DialogFooter");function P({className:t,...e}){return a(o.Title,{"data-slot":"dialog-title",className:n("text-lg leading-none font-semibold",t),...e})}i(P,"DialogTitle");function C({className:t,...e}){return a(o.Description,{"data-slot":"dialog-description",className:n("text-muted-foreground text-sm",t),...e})}i(C,"DialogDescription");export{p as a,f as b,u as c,v as d,D as e,P as f,C as g};
|
|
2
|
+
//# sourceMappingURL=chunk-O534T74D.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-LZZVBUCD.js";import{a as n}from"./chunk-MNDI2GCD.js";import{a as s}from"./chunk-WGXANFZD.js";import{a as p}from"./chunk-ETHDBZ36.js";import{a as d}from"./chunk-TYMZUQP5.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-OO3ZIFMK.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as h}from"./chunk-3UDRMQNE.js";import{a as E}from"./chunk-AX7YWH45.js";import{b as p}from"./chunk-QOH4BNEZ.js";import{a as g}from"./chunk-VDRNNOVA.js";import{d as w}from"./chunk-75SQ56WH.js";import{a as b,h as S,i as C}from"./chunk-K5RHOXWA.js";import{a as y}from"./chunk-NW3D7CPK.js";import{a as f,b as v}from"./chunk-TUJZUC3C.js";import{a as t}from"./chunk-P37U34EQ.js";import{addYears as I,format as u}from"date-fns";import{Fragment as D,jsx as _,jsxs as F}from"react/jsx-runtime";var x=t(n=>n===b,"isStandardPricingPlan"),M=t((n,i)=>{let e=i&&i<u(new Date,"yyyy-MM-dd");if(!n&&e)return p({severity:"warning",description:"Backdating the service start date is not supported in the selected Contractor Management plan."})},"showBackDateWarning");function R(n,i,e){e({...i,services_and_deliverables_ai_warning:"",services_and_deliverables_error_skippable:!1})}t(R,"onServicesAndDeliverablesChange");var $=t((n,i,e,r,a)=>{let d=x(e),c=r?.service_duration?.provisional_start_date,l=M(d,c),o=p({severity:"warning",title:"Possible misclassification risk",description:a?C:S});return{...n,create:{...n?.create,services_and_deliverables_ai_warning:{type:"string","x-jsf-presentation":{inputType:"hidden"}},services_and_deliverables_error_skippable:{type:"boolean","x-jsf-presentation":{inputType:"hidden"}}},fields:{...n?.fields,"service_duration.provisional_start_date":{description:i,"x-jsf-presentation":{minDate:d?void 0:u(new Date,"yyyy-MM-dd"),...l}},"service_duration.expiration_date":{"x-jsf-presentation":{calculateDynamicProperties:t(s=>{let m=a&&s.service_duration?.provisional_start_date?I(y(s.service_duration.provisional_start_date),1):void 0;return{maxDate:m?u(m,"yyyy-MM-dd"):void 0}},"calculateDynamicProperties")}},services_and_deliverables:{onChange:R,"x-jsf-presentation":{calculateDynamicProperties:t(s=>({statement:s.services_and_deliverables_ai_warning?o.statement:void 0}),"calculateDynamicProperties")}}}}},"buildContractDetailsJsfModify"),z=t((n,i,e)=>{let r=n==="SAU",a=n==="GBR",d=w(n);if(!r&&!a&&!d)return e?.jsfModify?.basic_information;if(a)return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,ir35:{title:"IR35 Status",description:t(()=>F(D,{children:["What's your contractor's employment status?"," ",_(v,{zendeskId:f.ir35Status,children:"Learn more about IR35"})]}),"description"),oneOf:[{const:"inside",title:"Inside IR35 (deemed employee)"},{const:"outside",title:"Outside IR35"},{const:"exempt",title:"Exempt from IR35"}],"x-jsf-presentation":{inputType:"select"}},ir35_sds_file:{title:"Upload SDS",description:"Status determination statement",type:"string","x-jsf-presentation":{inputType:"file",accept:g.document,multiple:!1,maxSize:20971520,calculateDynamicProperties:t(o=>{let s=o.ir35;return{isVisible:s==="inside"||s==="outside"}},"calculateDynamicProperties")}}},allOf:[{if:{properties:{ir35:{enum:["inside","outside"]}}},then:{required:["ir35_sds_file"]},else:{properties:{ir35_sds_file:!1}}}],required:["ir35"],orderRoot:t(o=>[...o,"ir35","ir35_sds_file"],"orderRoot")};let c=r?"Is your contractor a Saudi Arabia national, or a non-Saudi national contracting via a local business entity or under a Special Privilege Iqama visa?":`Is the contractor a ${i??"selected country"} national, or a non-${i??"selected country"} national contracting through their local business entity?`,l=r?"Please be aware that contracting with non-Saudi Arabia nationals that are not operating as a company or under a Special Privilege Iqama visa can lead to fines for operating without proper work authorization. If you are concerned, please speak with the Contractor and/or local Saudi Arabia counsel to ensure compliance.":`Be aware that the Contractor must be a ${i??"selected country"} national, or a non-${i??"selected country"} national operating through their company to comply with the legal requirements for performing services and deliverables as a contractor in ${i??"selected country"}. If you are concerned, speak with the Contractor and/or local counsel to ensure compliance.`;return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,nationality_status:{title:c,description:"",type:"string",oneOf:[{const:"national",description:"",title:"Yes"},{const:"non_national",description:l,title:"No"}],"x-jsf-presentation":{inputType:"radio"}}},required:["nationality_status"],orderRoot:t(o=>[...o,"nationality_status"],"orderRoot")}},"buildBasicInformationJsfModify"),G=t((n,i)=>{let e=n?.jsfModify?.contract_preview?.fields;return{fields:{contract_preview_header:{...e?.contract_preview_header,"x-jsf-presentation":{Component:t(r=>{let a=e?.contract_preview_header?.["x-jsf-presentation"]?.Component||h;return _(a,{...r})},"Component")}},contract_preview_statement:{...e?.contract_preview_statement,"x-jsf-presentation":{Component:t(r=>{let a=e?.contract_preview_statement?.["x-jsf-presentation"]?.Component||E;return _(a,{reviewCompleted:!!i?.review_completed,...r})},"Component")}},signature:{...e?.signature,"x-jsf-presentation":{calculateDynamicProperties:t(r=>({isVisible:!!r.review_completed}),"calculateDynamicProperties"),...e?.signature?.["x-jsf-presentation"]}}}}},"buildContractPreviewJsfModify");export{$ as a,z as b,G as c};
|
|
2
|
+
//# sourceMappingURL=chunk-ORJZEO4M.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/ContractorOnboarding/jsfModify.tsx"],"sourcesContent":["import { addYears, format } from 'date-fns';\nimport { FieldValues } from 'react-hook-form';\nimport { ChangeEvent } from 'react';\n\nimport { parseLocalDate } from '@/src/common/dates';\nimport { createStatementProperty } from '@/src/components/form/jsf-utils/createFields';\nimport { zendeskArticles } from '@/src/components/shared/zendesk-drawer/utils';\nimport { ZendeskTriggerButton } from '@/src/components/shared/zendesk-drawer/ZendeskTriggerButton';\nimport { ContractPreviewHeader } from '@/src/flows/ContractorOnboarding/components/ContractPreviewHeader';\nimport { ContractPreviewStatement } from '@/src/flows/ContractorOnboarding/components/ContractPreviewStatement';\nimport {\n contractorStandardProductIdentifier,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE,\n} from '@/src/flows/ContractorOnboarding/constants';\nimport {\n ContractorOnboardingFlowProps,\n ContractorOnboardingContractDetailsFormPayload,\n} from '@/src/flows/ContractorOnboarding/types';\nimport { isNationalityCountryCode } from '@/src/flows/ContractorOnboarding/utils';\nimport { JSFModify } from '@/src/flows/types';\nimport { FILE_TYPES, MAX_FILE_SIZE } from '@/src/lib/uploadConfig';\nimport { JSFCustomComponentProps } from '@/src/types/remoteFlows';\n\nconst isStandardPricingPlan = (pricingPlan: string | undefined) => {\n return pricingPlan === contractorStandardProductIdentifier;\n};\n\nconst showBackDateWarning = (\n isStandardPricingPlanSelected: boolean,\n provisionalStartDate: string | undefined,\n) => {\n const isStartDateBackdated =\n provisionalStartDate &&\n // Compare full days omitting time of the day\n provisionalStartDate < format(new Date(), 'yyyy-MM-dd');\n\n if (!isStandardPricingPlanSelected && isStartDateBackdated) {\n return createStatementProperty({\n severity: 'warning',\n description:\n 'Backdating the service start date is not supported in the selected Contractor Management plan.',\n });\n }\n\n return undefined;\n};\n\n/**\n * Handles changes to the services_and_deliverables field to clear AI warning state\n */\nfunction onServicesAndDeliverablesChange(\n _event: ChangeEvent<HTMLTextAreaElement>,\n values: ContractorOnboardingContractDetailsFormPayload & {\n services_and_deliverables_ai_warning: string;\n services_and_deliverables_error_skippable: boolean;\n },\n setValues: (\n formValues: Partial<\n ContractorOnboardingContractDetailsFormPayload & {\n services_and_deliverables_ai_warning: string;\n services_and_deliverables_error_skippable: boolean;\n }\n >,\n ) => void,\n) {\n setValues({\n ...values,\n services_and_deliverables_ai_warning: '',\n services_and_deliverables_error_skippable: false,\n });\n}\n\n/**\n * Merges internal jsfModify modifications with user-provided options for contract_details step\n * This abstracts the logic of applying internal field modifications (like dynamic descriptions)\n * while preserving user customizations\n */\nexport const buildContractDetailsJsfModify = (\n userJsfModify: JSFModify | undefined,\n provisionalStartDateDescription: string | undefined,\n selectedPricingPlan: string | undefined,\n fieldValues: FieldValues,\n isContractorOfRecord: boolean,\n): JSFModify => {\n const isStandardPricingPlanSelected =\n isStandardPricingPlan(selectedPricingPlan);\n const provisionalStartDate =\n fieldValues?.service_duration?.provisional_start_date;\n const statement = showBackDateWarning(\n isStandardPricingPlanSelected,\n provisionalStartDate,\n );\n const AiStatementWarning = createStatementProperty({\n severity: 'warning',\n title: 'Possible misclassification risk',\n description: isContractorOfRecord\n ? REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE\n : REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE,\n });\n return {\n ...userJsfModify,\n create: {\n ...userJsfModify?.create,\n services_and_deliverables_ai_warning: {\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n services_and_deliverables_error_skippable: {\n type: 'boolean',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n },\n fields: {\n ...userJsfModify?.fields,\n ...{\n 'service_duration.provisional_start_date': {\n description: provisionalStartDateDescription,\n 'x-jsf-presentation': {\n minDate: !isStandardPricingPlanSelected\n ? format(new Date(), 'yyyy-MM-dd')\n : undefined,\n ...statement,\n },\n },\n 'service_duration.expiration_date': {\n 'x-jsf-presentation': {\n calculateDynamicProperties: (formValues: FieldValues) => {\n const maxDate =\n isContractorOfRecord &&\n formValues.service_duration?.provisional_start_date\n ? addYears(\n parseLocalDate(\n formValues.service_duration.provisional_start_date,\n ),\n 1,\n )\n : undefined;\n return {\n maxDate: maxDate ? format(maxDate, 'yyyy-MM-dd') : undefined,\n };\n },\n },\n },\n services_and_deliverables: {\n onChange: onServicesAndDeliverablesChange,\n 'x-jsf-presentation': {\n calculateDynamicProperties: (formValues: FieldValues) => ({\n statement: formValues.services_and_deliverables_ai_warning\n ? AiStatementWarning.statement\n : undefined,\n }),\n },\n },\n },\n },\n };\n};\n\n/**\n * Builds the basic information jsf modify for the contractor onboarding flow\n * @param countryCode - The country code to use for the onboarding.\n * @param countryName - The name of the country to use for the onboarding.\n * @param options - The options to use for the onboarding.\n * @returns The basic information jsf modify for the contractor onboarding flow\n */\nexport const buildBasicInformationJsfModify = (\n countryCode: string,\n countryName: string | undefined,\n options: ContractorOnboardingFlowProps['options'] | undefined,\n) => {\n const isSaudiArabia = countryCode === 'SAU';\n const isUk = countryCode === 'GBR';\n const hasNationalityStatusField = isNationalityCountryCode(countryCode);\n\n if (!isSaudiArabia && !isUk && !hasNationalityStatusField) {\n return options?.jsfModify?.basic_information;\n }\n\n if (isUk) {\n return {\n ...options?.jsfModify?.basic_information,\n create: {\n ...options?.jsfModify?.basic_information?.create,\n ir35: {\n title: 'IR35 Status',\n description: () => (\n <>\n What's your contractor's employment status?{' '}\n <ZendeskTriggerButton zendeskId={zendeskArticles.ir35Status}>\n Learn more about IR35\n </ZendeskTriggerButton>\n </>\n ),\n oneOf: [\n {\n const: 'inside',\n title: 'Inside IR35 (deemed employee)',\n },\n {\n const: 'outside',\n title: 'Outside IR35',\n },\n {\n const: 'exempt',\n title: 'Exempt from IR35',\n },\n ],\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n ir35_sds_file: {\n title: 'Upload SDS',\n description: 'Status determination statement',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: FILE_TYPES.document,\n multiple: false,\n maxSize: MAX_FILE_SIZE,\n calculateDynamicProperties: (\n fieldValues: Record<string, unknown>,\n ) => {\n const ir35Status = fieldValues.ir35;\n return {\n isVisible: ir35Status === 'inside' || ir35Status === 'outside',\n };\n },\n },\n },\n },\n allOf: [\n {\n if: {\n properties: {\n ir35: {\n enum: ['inside', 'outside'],\n },\n },\n },\n then: {\n required: ['ir35_sds_file'],\n },\n else: {\n properties: {\n ir35_sds_file: false,\n },\n },\n },\n ],\n required: ['ir35'],\n orderRoot: (originalOrder: string[]) => {\n return [...originalOrder, 'ir35', 'ir35_sds_file'];\n },\n };\n }\n\n const label = isSaudiArabia\n ? 'Is your contractor a Saudi Arabia national, or a non-Saudi national contracting via a local business entity or under a Special Privilege Iqama visa?'\n : `Is the contractor a ${countryName ?? 'selected country'} national, or a non-${countryName ?? 'selected country'} national contracting through their local business entity?`;\n\n const descriptionNonNationalRadio = isSaudiArabia\n ? `Please be aware that contracting with non-Saudi Arabia nationals that are not operating as a company or under a Special Privilege Iqama visa can lead to fines for operating without proper work authorization. If you are concerned, please speak with the Contractor and/or local Saudi Arabia counsel to ensure compliance.`\n : `Be aware that the Contractor must be a ${countryName ?? 'selected country'} national, or a non-${countryName ?? 'selected country'} national operating through their company to comply with the legal requirements for performing services and deliverables as a contractor in ${countryName ?? 'selected country'}. If you are concerned, speak with the Contractor and/or local counsel to ensure compliance.`;\n\n return {\n ...options?.jsfModify?.basic_information,\n create: {\n ...options?.jsfModify?.basic_information?.create,\n nationality_status: {\n title: label,\n description: '',\n type: 'string',\n oneOf: [\n {\n const: 'national',\n description: '',\n title: 'Yes',\n },\n {\n const: 'non_national',\n description: descriptionNonNationalRadio,\n title: 'No',\n },\n ],\n 'x-jsf-presentation': {\n inputType: 'radio',\n },\n },\n },\n required: ['nationality_status'],\n orderRoot: (originalOrder: string[]) => {\n return [...originalOrder, 'nationality_status'];\n },\n };\n};\n\nexport const buildContractPreviewJsfModify = (\n options: ContractorOnboardingFlowProps['options'] | undefined,\n fieldValues: FieldValues,\n) => {\n const userFields = options?.jsfModify?.contract_preview?.fields;\n\n return {\n fields: {\n contract_preview_header: {\n ...userFields?.contract_preview_header,\n 'x-jsf-presentation': {\n Component: (props: JSFCustomComponentProps) => {\n const CustomComponent =\n userFields?.contract_preview_header?.['x-jsf-presentation']\n ?.Component || ContractPreviewHeader;\n return <CustomComponent {...props} />;\n },\n },\n },\n contract_preview_statement: {\n ...userFields?.contract_preview_statement,\n 'x-jsf-presentation': {\n Component: (props: JSFCustomComponentProps) => {\n const CustomComponent =\n userFields?.contract_preview_statement?.['x-jsf-presentation']\n ?.Component || ContractPreviewStatement;\n\n return (\n <CustomComponent\n reviewCompleted={Boolean(fieldValues?.review_completed)}\n {...props}\n />\n );\n },\n },\n },\n signature: {\n ...userFields?.signature,\n 'x-jsf-presentation': {\n calculateDynamicProperties: (\n fieldValuesDynamicProperties: Record<string, unknown>,\n ) => {\n return {\n isVisible: Boolean(fieldValuesDynamicProperties.review_completed),\n };\n },\n // Merge any user-provided signature customizations\n ...userFields?.signature?.['x-jsf-presentation'],\n },\n },\n },\n };\n};\n"],"mappings":"6XAAA,OAAS,YAAAA,EAAU,UAAAC,MAAc,WA+LrB,mBAAAC,EAEE,OAAAC,EAFF,QAAAC,MAAA,oBAvKZ,IAAMC,EAAwBC,EAACC,GACtBA,IAAgBC,EADK,yBAIxBC,EAAsBH,EAAA,CAC1BI,EACAC,IACG,CACH,IAAMC,EACJD,GAEAA,EAAuBE,EAAO,IAAI,KAAQ,YAAY,EAExD,GAAI,CAACH,GAAiCE,EACpC,OAAOE,EAAwB,CAC7B,SAAU,UACV,YACE,gGACJ,CAAC,CAIL,EAlB4B,uBAuB5B,SAASC,EACPC,EACAC,EAIAC,EAQA,CACAA,EAAU,CACR,GAAGD,EACH,qCAAsC,GACtC,0CAA2C,EAC7C,CAAC,CACH,CApBSX,EAAAS,EAAA,mCA2BF,IAAMI,EAAgCb,EAAA,CAC3Cc,EACAC,EACAC,EACAC,EACAC,IACc,CACd,IAAMd,EACJL,EAAsBiB,CAAmB,EACrCX,EACJY,GAAa,kBAAkB,uBAC3BE,EAAYhB,EAChBC,EACAC,CACF,EACMe,EAAqBZ,EAAwB,CACjD,SAAU,UACV,MAAO,kCACP,YAAaU,EACTG,EACAC,CACN,CAAC,EACD,MAAO,CACL,GAAGR,EACH,OAAQ,CACN,GAAGA,GAAe,OAClB,qCAAsC,CACpC,KAAM,SACN,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,0CAA2C,CACzC,KAAM,UACN,qBAAsB,CACpB,UAAW,QACb,CACF,CACF,EACA,OAAQ,CACN,GAAGA,GAAe,OAEhB,0CAA2C,CACzC,YAAaC,EACb,qBAAsB,CACpB,QAAUX,EAEN,OADAG,EAAO,IAAI,KAAQ,YAAY,EAEnC,GAAGY,CACL,CACF,EACA,mCAAoC,CAClC,qBAAsB,CACpB,2BAA4BnB,EAACuB,GAA4B,CACvD,IAAMC,EACJN,GACAK,EAAW,kBAAkB,uBACzBE,EACEC,EACEH,EAAW,iBAAiB,sBAC9B,EACA,CACF,EACA,OACN,MAAO,CACL,QAASC,EAAUjB,EAAOiB,EAAS,YAAY,EAAI,MACrD,CACF,EAd4B,6BAe9B,CACF,EACA,0BAA2B,CACzB,SAAUf,EACV,qBAAsB,CACpB,2BAA4BT,EAACuB,IAA6B,CACxD,UAAWA,EAAW,qCAClBH,EAAmB,UACnB,MACN,GAJ4B,6BAK9B,CACF,CAEJ,CACF,CACF,EAnF6C,iCA4FhCO,EAAiC3B,EAAA,CAC5C4B,EACAC,EACAC,IACG,CACH,IAAMC,EAAgBH,IAAgB,MAChCI,EAAOJ,IAAgB,MACvBK,EAA4BC,EAAyBN,CAAW,EAEtE,GAAI,CAACG,GAAiB,CAACC,GAAQ,CAACC,EAC9B,OAAOH,GAAS,WAAW,kBAG7B,GAAIE,EACF,MAAO,CACL,GAAGF,GAAS,WAAW,kBACvB,OAAQ,CACN,GAAGA,GAAS,WAAW,mBAAmB,OAC1C,KAAM,CACJ,MAAO,cACP,YAAa9B,EAAA,IACXF,EAAAF,EAAA,CAAE,wDAC4C,IAC5CC,EAACsC,EAAA,CAAqB,UAAWC,EAAgB,WAAY,iCAE7D,GACF,EANW,eAQb,MAAO,CACL,CACE,MAAO,SACP,MAAO,+BACT,EACA,CACE,MAAO,UACP,MAAO,cACT,EACA,CACE,MAAO,SACP,MAAO,kBACT,CACF,EACA,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,cAAe,CACb,MAAO,aACP,YAAa,iCACb,KAAM,SACN,qBAAsB,CACpB,UAAW,OACX,OAAQC,EAAW,SACnB,SAAU,GACV,QAAS,SACT,2BAA4BrC,EAC1BiB,GACG,CACH,IAAMqB,EAAarB,EAAY,KAC/B,MAAO,CACL,UAAWqB,IAAe,UAAYA,IAAe,SACvD,CACF,EAP4B,6BAQ9B,CACF,CACF,EACA,MAAO,CACL,CACE,GAAI,CACF,WAAY,CACV,KAAM,CACJ,KAAM,CAAC,SAAU,SAAS,CAC5B,CACF,CACF,EACA,KAAM,CACJ,SAAU,CAAC,eAAe,CAC5B,EACA,KAAM,CACJ,WAAY,CACV,cAAe,EACjB,CACF,CACF,CACF,EACA,SAAU,CAAC,MAAM,EACjB,UAAWtC,EAACuC,GACH,CAAC,GAAGA,EAAe,OAAQ,eAAe,EADxC,YAGb,EAGF,IAAMC,EAAQT,EACV,uJACA,uBAAuBF,GAAe,kBAAkB,uBAAuBA,GAAe,kBAAkB,6DAE9GY,EAA8BV,EAChC,iUACA,0CAA0CF,GAAe,kBAAkB,uBAAuBA,GAAe,kBAAkB,+IAA+IA,GAAe,kBAAkB,+FAEvT,MAAO,CACL,GAAGC,GAAS,WAAW,kBACvB,OAAQ,CACN,GAAGA,GAAS,WAAW,mBAAmB,OAC1C,mBAAoB,CAClB,MAAOU,EACP,YAAa,GACb,KAAM,SACN,MAAO,CACL,CACE,MAAO,WACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,eACP,YAAaC,EACb,MAAO,IACT,CACF,EACA,qBAAsB,CACpB,UAAW,OACb,CACF,CACF,EACA,SAAU,CAAC,oBAAoB,EAC/B,UAAWzC,EAACuC,GACH,CAAC,GAAGA,EAAe,oBAAoB,EADrC,YAGb,CACF,EAlI8C,kCAoIjCG,EAAgC1C,EAAA,CAC3C8B,EACAb,IACG,CACH,IAAM0B,EAAab,GAAS,WAAW,kBAAkB,OAEzD,MAAO,CACL,OAAQ,CACN,wBAAyB,CACvB,GAAGa,GAAY,wBACf,qBAAsB,CACpB,UAAW3C,EAAC4C,GAAmC,CAC7C,IAAMC,EACJF,GAAY,0BAA0B,oBAAoB,GACtD,WAAaG,EACnB,OAAOjD,EAACgD,EAAA,CAAiB,GAAGD,EAAO,CACrC,EALW,YAMb,CACF,EACA,2BAA4B,CAC1B,GAAGD,GAAY,2BACf,qBAAsB,CACpB,UAAW3C,EAAC4C,GAAmC,CAC7C,IAAMC,EACJF,GAAY,6BAA6B,oBAAoB,GACzD,WAAaI,EAEnB,OACElD,EAACgD,EAAA,CACC,gBAAiB,EAAQ5B,GAAa,iBACrC,GAAG2B,EACN,CAEJ,EAXW,YAYb,CACF,EACA,UAAW,CACT,GAAGD,GAAY,UACf,qBAAsB,CACpB,2BAA4B3C,EAC1BgD,IAEO,CACL,UAAW,EAAQA,EAA6B,gBAClD,GAL0B,8BAQ5B,GAAGL,GAAY,YAAY,oBAAoB,CACjD,CACF,CACF,CACF,CACF,EApD6C","names":["addYears","format","Fragment","jsx","jsxs","isStandardPricingPlan","__name","pricingPlan","contractorStandardProductIdentifier","showBackDateWarning","isStandardPricingPlanSelected","provisionalStartDate","isStartDateBackdated","format","createStatementProperty","onServicesAndDeliverablesChange","_event","values","setValues","buildContractDetailsJsfModify","userJsfModify","provisionalStartDateDescription","selectedPricingPlan","fieldValues","isContractorOfRecord","statement","AiStatementWarning","REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE","REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE","formValues","maxDate","addYears","parseLocalDate","buildBasicInformationJsfModify","countryCode","countryName","options","isSaudiArabia","isUk","hasNationalityStatusField","isNationalityCountryCode","ZendeskTriggerButton","zendeskArticles","FILE_TYPES","ir35Status","originalOrder","label","descriptionNonNationalRadio","buildContractPreviewJsfModify","userFields","props","CustomComponent","ContractPreviewHeader","ContractPreviewStatement","fieldValuesDynamicProperties"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as i}from"./chunk-KFYWUBRS.js";import{f as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as i}from"./chunk-KFYWUBRS.js";import{f as t}from"./chunk-UGPYPGVV.js";import{a as n}from"./chunk-P37U34EQ.js";import{useEffect as c,useRef as d}from"react";import f from"fast-deep-equal";function U({handleValidation:a,defaultValues:o,checkFieldUpdates:m}){let u=i(a),r=d(o),s=t({resolver:u,defaultValues:o,shouldUnregister:!1,mode:"onBlur"});return c(()=>{let l=s?.watch(e=>{!f(e,r.current)&&(m(e),r.current=JSON.parse(JSON.stringify(e)))});return()=>l?.unsubscribe()},[]),s}n(U,"useJSONSchemaForm");export{U as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OVIOWKNG.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{f as a}from"./chunk-EFL7QFFN.js";import{b as m}from"./chunk-626FTNKA.js";import{a as f}from"./chunk-P37U34EQ.js";import{createHeadlessForm as y,modify as F}from"@remoteoss/remote-json-schema-form-kit";var O=f((e,t,n)=>{if(n&&n.jsfModify){let{required:r,allOf:i,...s}=n.jsfModify,{schema:o}=F(e,s);if(e=o,r){let l=Array.isArray(o.required)?o.required:[];typeof r=="function"?e.required=r(l):e.required=[...l,...r]}i&&(e.allOf=[...Array.isArray(o.allOf)?o.allOf:[],...i])}let d={};t&&(d=m(e.properties||{},"money").reduce((i,s)=>(i[s]=a(t[s]),i),{}));let u=JSON.parse(JSON.stringify({...t,...d}));return{meta:{"x-jsf-fieldsets":e["x-jsf-fieldsets"],"x-jsf-presentation":e["x-jsf-presentation"]},...y(e,{initialValues:u})}},"createHeadlessForm");export{O as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OXKDKDSH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-UKEDOJJY.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-OXNPFA6L.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-UKEDOJJY.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-EFL7QFFN.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as g}from"react/jsx-runtime";function E({components:m,onSubmit:p,onSuccess:l,onError:c}){let{contractorOnboardingBag:r}=e(),d=i(async(t,P)=>{try{let n=await r.parseFormValues(t);await p?.(n);let o=await r.onSubmit(t);if(o?.data){await l?.(o?.data),r?.next();return}}catch(n){let o=a(n,r.meta?.fields?.pricing_plan,P);c?.(o)}},"handleSubmit"),u=r.stepState.values?.pricing_plan||r.initialValues.pricing_plan;return g(s,{components:m,defaultValues:u,onSubmit:d})}i(E,"PricingPlanStep");export{E as a};
|
|
2
|
+
//# sourceMappingURL=chunk-P4JZMXRV.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-D4ZTTILZ.js";import{a as Y}from"./chunk-CTARNWJJ.js";import{a as Q}from"./chunk-JSFVJCPK.js";import{a as J}from"./chunk-NXSKHM4K.js";import{a as H}from"./chunk-IF42CZJH.js";import{a as q,b as B,c as L,d as z}from"./chunk-BPHP4644.js";import{f as Z,g as K}from"./chunk-DL5NWXSY.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as S}from"./chunk-QOH4BNEZ.js";import{a as N}from"./chunk-Q65JWWKR.js";import{a as E}from"./chunk-OXKDKDSH.js";import{a as _,b as v}from"./chunk-TUJZUC3C.js";import{q as O}from"./chunk-ER46UFIU.js";import{b as w,h as u,n as D}from"./chunk-EFL7QFFN.js";import{a as A}from"./chunk-JDIKYCN6.js";import{a as I}from"./chunk-626FTNKA.js";import{e as $}from"./chunk-H2O4CVKF.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=$();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>O({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:_.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:_.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:_.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await u(s,me.fields,{isPartialValidation:!0}):f?await u(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await u(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
|
|
2
|
+
//# sourceMappingURL=chunk-PCNT5L6Q.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-AROUKJ3F.js";import{a as c}from"./chunk-UKEDOJJY.js";import{c as l}from"./chunk-75SQ56WH.js";import{b as s}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-EFL7QFFN.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as m,jsxs as g}from"react/jsx-runtime";function x({onSubmit:p,onSuccess:u,onError:S}){let{contractorOnboardingBag:r}=s(),f=a(async(e,F)=>{try{let t=await r.parseFormValues(e);await p?.(t);let o=await r.onSubmit(e);if(o?.data){await u?.(o?.data),r?.next();return}}catch(t){let o=n(t,r.meta?.fields?.contract_details,F);S?.(o)}},"handleSubmit"),C=r.stepState.values?.contract_details||r.initialValues.contract_details,i=r.stepState.values?.pricing_plan?.subscription,b=l(i);return g("div",{className:"space-y-4",children:[m(c,{defaultValues:C,onSubmit:f}),b&&m(d,{subscription:i})]})}a(x,"ContractDetailsStep");export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-PJPTFKXG.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-B33CFFRO.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function F({onSubmit:t,onSuccess:s,onError:m}){let{terminationBag:o}=e(),d=r(async a=>{let l=await o?.parseFormValues(a,!0);await t?.(l);let i=await o?.onSubmit(a);i?.error?m?.(i.rawError):i?.data&&await s?.(i.data)},"handleSubmit");return u(n,{defaultValues:o.fieldValues,fields:o?.fields,onSubmit:d})}r(F,"AdditionalDetailsForm");export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-PWU5T5XH.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-BYUVUCEV.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-QF4K5JBQ.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-BYUVUCEV.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-QKEC26QD.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{n as t}from"./chunk-EFL7QFFN.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as a,jsxs as r}from"react/jsx-runtime";function m(n,o,i){return{"x-jsf-presentation":{inputType:"hidden",Component:e(()=>r("div",{className:t("RemoteFlows__InformationStatement",i?.className),children:[a("h3",{className:t("RemoteFlows__InformationStatement__Title"),children:n}),a("p",{className:t("RemoteFlows__InformationStatement__Description"),children:o})]}),"Component")}}}e(m,"createInformationField");function c({title:n,description:o,severity:i}){return{statement:{title:n,description:o,severity:i}}}e(c,"createStatementProperty");export{m as a,c as b};
|
|
2
|
+
//# sourceMappingURL=chunk-QOH4BNEZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{r as t}from"./chunk-EFL7QFFN.js";import{b as m}from"./chunk-H2O4CVKF.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function f({title:o,description:r,severity:p}){let{components:a}=m(),n=a.statement;if(!n)throw new Error("Statement component not found");return s(n,{data:{title:o?t(o):void 0,description:t(r),severity:p}})}e(f,"Statement");export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QPAABSI5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as _}from"./chunk-5WIBTOCI.js";import{a as h}from"./chunk-F2ENM2JE.js";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as _}from"./chunk-5WIBTOCI.js";import{a as h}from"./chunk-F2ENM2JE.js";import{a as l}from"./chunk-OXKDKDSH.js";import{A as y,S as f,_ as C,y as p}from"./chunk-ER46UFIU.js";import{e as c}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useMutation as F}from"@tanstack/react-query";import{useQuery as u}from"@tanstack/react-query";var b=n(e=>{let{client:o}=c();return u({...e,queryKey:["company-currencies"],retry:!1,queryFn:n(async()=>{let r=await f({client:o});if(r.error||!r.data)throw new Error("Failed to fetch company currencies");return r},"queryFn"),select:n(({data:r})=>r?.data?.company_currencies.map(t=>({value:t.code,label:t.code}))||[],"select")})},"useCompanyCurrencies"),A=n(()=>{let{client:e}=c();return F({mutationFn:n(o=>C({client:e,headers:{Authorization:""},body:o,query:{action:"send_create_password_email"}}),"mutationFn")})},"useCreateCompanyRequest"),I=n(()=>{let{client:e}=c();return F({mutationFn:n(({companyId:o,payload:r,jsonSchemaVersion:t})=>p({client:e,headers:{Authorization:""},path:{company_id:o},body:r,query:{address_details_json_schema_version:t}}),"mutationFn")})},"useUpdateCompanyRequest"),P=n(e=>{let{client:o}=c(),{data:r,isLoading:t}=u({...h(o,"create-company-countries"),select:n(i=>i.data?.data?.filter(s=>s.eor_onboarding).map(s=>({label:s.name,value:s.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),{data:a,isLoading:m}=b(e?.queryOptions),d=l(_.data.schema,{},e);if(r){let i=d.fields.find(s=>s.name==="country_code");i&&(i.options=r)}if(a){let i=d.fields.find(s=>s.name==="desired_currency");i&&(i.options=a)}return{isLoading:t||m,companyBasicInformationForm:d}},"useCountriesSchemaField"),z=n(({countryCode:e,fieldValues:o,options:r})=>{let{client:t}=c();return u({queryKey:["company-address-details-schema",e],retry:!1,queryFn:n(async()=>{if(!e)throw new Error("Country code is required");let a=await y({client:t,headers:{Authorization:""},path:{country_code:e,form:"address_details"},query:{json_schema_version:r?.jsonSchemaVersion?.form_schema?.address_details||"latest"}});if(a.error||!a.data)throw new Error("Failed to fetch address details schema");return a},"queryFn"),enabled:r?.queryOptions?.enabled&&!!e,select:n(({data:a})=>{let m=a?.data||{};return l(m,o,r)},"select")})},"useAddressDetailsSchema");export{A as a,I as b,P as c,z as d};
|
|
2
|
+
//# sourceMappingURL=chunk-RCGOP7XI.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as t}from"./chunk-KMANQZL4.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";var u=n(p=>{let{"data-type":e,...o}=p;return e==="inline"?r(t,{size:"link",variant:"link",...o}):r(t,{...o})},"ButtonDefault");export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-S2KYDG6K.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-UKEDOJJY.js";import{b as i}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-EFL7QFFN.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as y}from"react/jsx-runtime";function E({onSubmit:c,onSuccess:s,onError:u}){let{contractorOnboardingBag:r}=i(),l=t(async(e,d)=>{try{await c?.({countryCode:e.country});let o=await r.onSubmit(e);if(o?.data){await s?.(o?.data),r?.next();return}}catch(o){let S=n(o,r.meta?.fields?.select_country,d);u?.(S)}},"handleSubmit"),m=r.stepState.values?.select_country||r.initialValues.select_country;return y(a,{defaultValues:m,onSubmit:l})}t(E,"SelectCountryStep");export{E as a};
|
|
2
|
+
//# sourceMappingURL=chunk-S6FPUDIB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{n as e}from"./chunk-EFL7QFFN.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as o,jsxs as t}from"react/jsx-runtime";var a=[{label:"Misconduct",description:"The employee is being dismissed due to unacceptable or improper behavior."},{label:"Performance",description:"When dismissing an employee for poor performance, employers are required by law to do so fairly. This means giving the employee reasonable opportunity to improve their performance prior to termination."},{label:"Workforce reduction",description:"The employee\u2019s position is being made redundant, and a layoff is underway."},{label:"Values",description:"The employee is misaligned with the company\u2019s values."},{label:"Compliance issue",description:"Use this option if the employee violated key policies, processes or procedures. For example, they failed to comply with their employment agreement\u2019s confidentiality clause."},{label:"Incapacity to perform inherent duties",description:"Use this option if the employee is physically or mentally unable to fulfill the work requirements of their role."},{label:"Mutual agreement",description:"Employee and employer made a mutual decision to end the relationship."},{label:"Decision to cancel hiring before the employee started",description:"Use this option only if the employee has not started work yet."},{label:"Job abandonment",description:"The employee has failed to appear for work; the Employer has been unsuccessful in establishing communications with the employee and does not know the employee\u2019s whereabouts."},{label:"Dissatisfaction with EOR service",description:t("span",{children:["We\u2019re sorry to see you go. If there is anything we can do to improve or if there is any remaining feedback you want to give us, please reach out to"," ",o("a",{href:"mailto:help@remote.com",target:"_blank",rel:"noopener noreferrer",children:"help@remote.com"}),"."]})},{label:"End of fixed-term contract",description:"Use this option when the employee fixed-term contract is coming to an end and will not be renewed or extended."}],r=n(()=>t(s,{children:[t("h3",{className:e("RemoteFlows__TerminationReasonsDetailContent__Title"),children:[" ","Why is this important?"]}),o("p",{className:e("RemoteFlows__TerminationReasonsDetailContent__Description"),children:"We're here to help you follow all applicable labor laws when terminating an employee. Here are all the legal reasons for termination. Please read them to make sure you enter the correct reason in the platform."}),o("h4",{className:e("RemoteFlows__TerminationReasonsDetailContent__Subtitle"),children:"Termination Reasons"}),o("ul",{className:e("RemoteFlows__TerminationReasonsDetailContent__List list-disc list-inside"),children:a.map(i=>t("li",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItem"),children:[o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemLabel"),children:i.label}),o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemDescription"),children:i.description})]},i.label))})]}),"TerminationReasonsDetailContent");export{r as a};
|
|
2
|
+
//# sourceMappingURL=chunk-SIRRTEWC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f,b as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f,b as g}from"./chunk-TKENZ25F.js";import{b as R}from"./chunk-KHX2XRJF.js";import{a as u}from"./chunk-NHLUPT2E.js";import{j as l,k as F,l as t,n as s,o as _}from"./chunk-UGPYPGVV.js";import{n as a}from"./chunk-EFL7QFFN.js";import{a as c}from"./chunk-P37U34EQ.js";import{Fragment as v}from"react";import{jsx as e,jsxs as r}from"react/jsx-runtime";var y=c(({field:d,fieldData:i,fieldState:C})=>{let{name:m,label:n,description:p,options:b}=i;return e("fieldset",{className:a("space-y-3",`RemoteFlows__RadioGroupField__Item__${m}`),"data-field":m,children:r(l,{children:[e("legend",{children:n}),p&&e(s,{helpCenter:e(u,{helpCenter:i.meta?.helpCenter}),children:p}),e(t,{children:e(f,{"aria-label":n||m,onValueChange:o=>{d.onChange(o)},value:d.value,className:"flex flex-col",children:b?.map(o=>e(v,{children:r(l,{"data-field":m,className:"flex items-start space-x-3 space-y-0 gap-0 min-h-[24px] RemoteFlows__RadioField__Item",children:[e(t,{children:e(g,{value:o.value,className:a("RemoteFlows__RadioField__Input",o.recommended&&"mt-1"),disabled:o.disabled})}),r("div",{children:[r(F,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:[o.label," ",o.recommended&&e(R,{variant:"secondary",className:"ml-2",children:"Recommended"})]}),o.description&&e(s,{className:"mt-2",children:o.description})]})]})},o.value))})}),C.error&&e(_,{})]})})},"RadioGroupFieldDefault");export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-T2BRDPOR.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{n as e}from"./chunk-EFL7QFFN.js";import{a}from"./chunk-P37U34EQ.js";import*as i from"@radix-ui/react-radio-group";import{CircleIcon as d}from"lucide-react";import{jsx as o}from"react/jsx-runtime";function p({className:r,...t}){return o(i.Root,{"data-slot":"radio-group",className:e("grid gap-3",r),...t})}a(p,"RadioGroup");function l({className:r,...t}){return o(i.Item,{"data-slot":"radio-group-item",className:e("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),...t,children:o(i.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:o(d,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}a(l,"RadioGroupItem");export{p as a,l as b};
|
|
2
|
+
//# sourceMappingURL=chunk-TKENZ25F.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-Q65JWWKR.js";import{a as d,b as w}from"./chunk-6BPEPQ3C.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-TLW6RBWW.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{k as b}from"./chunk-ER46UFIU.js";import{n as m,s as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{k as b}from"./chunk-ER46UFIU.js";import{n as m,s as u}from"./chunk-EFL7QFFN.js";import{b as g,e as f}from"./chunk-H2O4CVKF.js";import{a as e}from"./chunk-P37U34EQ.js";var L={disclaimerCostCalculator:4668194326797,engagingContractors:43161434169613,employeeOnboardingTimeline:4411262104589,extraPayments:4466822781709,germanyLaborLeasing:43002165606541,internationalPricing:4410698586893,pricingPlanOptions:43161720465421,ir35Status:42810224523917,remoteFxRate:33271144977421,terminationEmployeeCommunication:4411585179661,terminationNoticePeriods:5831900985613,involuntaryOffboardingServiceCharge:4406932229133,reconciliationInvoice:17604014808589},l=e(r=>`https://support.remote.com/hc/en-us/articles/${r}`,"buildZendeskURL");import{useQuery as w}from"@tanstack/react-query";var k=e((r,t)=>{let{client:i}=f();return w({queryKey:["zendesk-article",r],queryFn:e(async()=>{let n=await b({client:i,path:{id:Number(r)}});if(n.error)throw new Error(n.error.message||"Failed to fetch article");return n},"queryFn"),select:e(n=>{let o=n.data?.data.help_center_article;return o&&{...o,body:u(o.body||"")}},"select"),retry:!1,...t})},"useZendeskArticle");import{jsx as R}from"react/jsx-runtime";var C=e(({Trigger:r,zendeskId:t,open:i,onClose:n})=>{let{components:o}=g(),c=l(t),s=e(()=>{n?.()},"handleClose"),{data:a,isLoading:y,error:h}=k(t,{enabled:i}),p=o?.zendeskDrawer;if(!p)throw new Error("Zendesk drawer component not found");return R(p,{open:i,onClose:s,data:a,isLoading:y,error:h,zendeskURL:c,Trigger:r})},"ZendeskDrawer");import{useState as x}from"react";import{jsx as d}from"react/jsx-runtime";var Z="RemoteFlows__ZendeskTriggerButton text-blue-500 hover:underline inline-block text-xs bg-transparent border-none cursor-pointer p-0";function Q({zendeskId:r,className:t,onClick:i,children:n,external:o=!1}){let[c,s]=x(!1),a=e(()=>{o||s(!0),i?.(r)},"handleClick");return o?d("a",{href:l(r),target:"_blank",rel:"noopener noreferrer",onClick:a,className:m(Z,t),children:n}):d(C,{zendeskId:r,open:c,onClose:()=>s(!1),Trigger:d("button",{onClick:a,className:m(Z,t),children:n})})}e(Q,"ZendeskTriggerButton");export{L as a,Q as b};
|
|
2
|
+
//# sourceMappingURL=chunk-TUJZUC3C.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-BJPP76IU.js";import{a as r}from"./chunk-VPCAVFRX.js";import{a}from"./chunk-H66IKMI4.js";import{a as c}from"./chunk-TLW6RBWW.js";import{a as e}from"./chunk-SWCZJY6I.js";import{a as o}from"./chunk-TVZAFTPT.js";import{a as n}from"./chunk-P37U34EQ.js";import{useId as f}from"react";import{jsx as s}from"react/jsx-runtime";function k({employmentId:d,countryCode:C,options:p,render:A}){let t=c({employmentId:d,countryCode:C,options:p}),i=f();return s(o.Provider,{value:{formId:i,contractAmendmentBag:t},children:A({contractAmendmentBag:t,components:{Form:r,SubmitButton:a,ConfirmationForm:m,BackButton:e}})})}n(k,"ContractAmendmentFlow");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TV4OM2K6.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d,b as S,c as p,d as u,e as g,f as b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d,b as S,c as p,d as u,e as g,f as b}from"./chunk-K44B6MQA.js";import{j as c,k as i,l as n,n as _,o as F}from"./chunk-UGPYPGVV.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as v}from"react/jsx-runtime";function R({field:t,fieldState:a,fieldData:C}){let{name:r,label:o,description:m,options:N}=C;return v(c,{"data-field":r,className:`RemoteFlows__SelectField__Item__${r}`,children:[e(i,{className:"RemoteFlows__SelectField__Label",children:o}),e(n,{children:e("div",{className:"relative",children:v(d,{value:t.value||"",onValueChange:l=>{t.onChange(l)},children:[e(u,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!a.error,"aria-label":o,children:e("span",{className:"absolute",children:e(p,{placeholder:o})})}),e(g,{className:"RemoteFlows__SelectField__Content",children:e(S,{className:"RemoteFlows__SelectField__Group",children:N?.map(l=>e(b,{value:l.value,className:"RemoteFlows__SelectField__SelectItem",disabled:l.disabled,children:l.label},l.value))})})]})})}),m&&e(_,{children:m}),a.error&&e(F,{})]})}s(R,"SelectFieldDefault");export{R as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TXUUBPHA.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-QF4K5JBQ.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as i}from"./chunk-EFL7QFFN.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function F({onSubmit:d,onSuccess:l,onError:n}){let{onboardingBag:r}=s(),g=a(async t=>{try{let o=await r.parseFormValues(t);await d?.(o);let e=await r.onSubmit(t);if(e?.data){await l?.(e?.data),r?.next();return}if(e?.error){let E=i(e?.fieldErrors||[],r.meta?.fields?.engagement_agreement_details);n?.({error:e?.error,rawError:e?.rawError,fieldErrors:E})}}catch(o){n?.({error:o,rawError:o,fieldErrors:[]})}},"handleSubmit"),u=r.stepState.values?.engagement_agreement_details||r.initialValues.engagement_agreement_details;return c(m,{defaultValues:u,onSubmit:g})}a(F,"EngagementAgreementDetailsStep");export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TYMZUQP5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as y}from"./chunk-Q3ALCPJN.js";import{d as p,e as v}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as y}from"./chunk-Q3ALCPJN.js";import{d as p,e as v}from"./chunk-73MHNSF2.js";import{b as n,w as u}from"./chunk-EFL7QFFN.js";import{b as l}from"./chunk-H2O4CVKF.js";import{a as r}from"./chunk-P37U34EQ.js";import O from"lodash.omit";import{jsx as C}from"react/jsx-runtime";function T({onSubmit:f,onSuccess:i,onError:s,render:w,...o}){let{components:E}=l(),{contractorOnboardingBag:e}=y(),a=p(),m=v(),{mutateAsyncOrThrow:g}=n(a),{mutateAsyncOrThrow:I}=n(m),c=e.employment?.contractor_type==="cor"&&!e.isEmploymentReadOnly,R=r(async()=>{try{if(await f?.(),c&&e.employmentId){let t=await I({employment_slug:e.employmentId});if(t?.data){await i?.({data:t,employmentStatus:"created_awaiting_reserve"}),e.refetchEmployment();return}}else if(e.employmentId){let t=await g({employment_id:e.employmentId});t&&(await i?.({data:t,employmentStatus:"invited"}),e.refetchEmployment())}}catch(t){u(t)?s?.(O(t,"response")):s?.({error:t,rawError:t,fieldErrors:[]})}},"handleSubmit"),d=E?.button;if(!d)throw new Error("Button component not found");let b=a.isPending||m.isPending||!e.canInvite||o.disabled;return C(d,{...o,disabled:b,onClick:t=>{R(),o.onClick?.(t)},children:w({status:c?"create_reserve":"invite"})})}r(T,"OnboardingInvite");export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UD7WWKMC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{n as l}from"./chunk-EFL7QFFN.js";import{a as d}from"./chunk-P37U34EQ.js";import*as r from"react";import{jsx as o}from"react/jsx-runtime";var i=r.forwardRef(({className:a,...e},t)=>o("div",{className:"relative w-full overflow-auto",children:o("table",{ref:t,className:l("w-full caption-bottom text-sm",a),...e})}));i.displayName="Table";var c=r.forwardRef(({className:a,...e},t)=>o("thead",{ref:t,className:l("[&_tr]:border-b",a),...e}));c.displayName="TableHeader";var n=r.forwardRef(({className:a,...e},t)=>o("tbody",{ref:t,className:l("[&_tr:last-child]:border-0",a),...e}));n.displayName="TableBody";var M=r.forwardRef(({className:a,...e},t)=>o("tfoot",{ref:t,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...e}));M.displayName="TableFooter";var m=r.forwardRef(({className:a,...e},t)=>o("tr",{ref:t,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...e}));m.displayName="TableRow";var f=r.forwardRef(({className:a,...e},t)=>o("th",{ref:t,className:l("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));f.displayName="TableHead";var p=r.forwardRef(({className:a,...e},t)=>o("td",{ref:t,className:l("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));p.displayName="TableCell";var L=r.forwardRef(({className:a,...e},t)=>o("caption",{ref:t,className:l("mt-4 text-sm text-muted-foreground",a),...e}));L.displayName="TableCaption";import{jsx as s,jsxs as N}from"react/jsx-runtime";var g=d(({data:a,columns:e,className:t,ref:H})=>N(i,{ref:H,className:l("RemoteFlows__Table",t),children:[s(c,{children:s(m,{children:e.map(b=>s(f,{className:l("RemoteFlows__TableHead",b.className),children:b.label},String(b.id)))})}),s(n,{children:a?.map((b,R)=>s(m,{children:e.map(T=>s(p,{className:l("RemoteFlows__TableCell",T.className,T.cellClassName),children:T.render?T.render(b[T.id],b,R):b[T.id]},String(T.id)))},y(b,R)))})]}),"TableFieldDefault");function y(a,e){return String(a.id??e)}d(y,"getRowKey");export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UFB5CJCQ.js.map
|