@remoteoss/remote-flows 1.50.0 → 1.52.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/CheckboxFieldDefault-23VE43PP.js +2 -0
- package/dist/CountryFieldDefault-FVAAL55P.js +2 -0
- package/dist/DatePickerFieldDefault-KXEMGK5B.js +2 -0
- package/dist/EmailFieldDefault-OFHDLOOT.js +2 -0
- package/dist/FileUploadFieldDefault-GX22C22E.js +2 -0
- package/dist/ForcedValueFieldDefault-ESITCZWK.js +2 -0
- package/dist/MultiSelectFieldDefault-DAUBH5JV.js +2 -0
- package/dist/NumberFieldDefault-MXZD7YVE.js +2 -0
- package/dist/PDFPreviewDefault-T6YPWXGY.js +2 -0
- package/dist/RadioGroupFieldDefault-QFUUJGSR.js +2 -0
- package/dist/SelectFieldDefault-3QTJE222.js +2 -0
- package/dist/TelFieldDefault-5U5X37LI.js +2 -0
- package/dist/TextAreaFieldDefault-JX2MVJVY.js +2 -0
- package/dist/TextFieldDefault-WCUD6XYS.js +2 -0
- package/dist/TimeFieldDefault-UNF7PKLT.js +2 -0
- package/dist/WorkScheduleFieldDefault-2A2RCDXV.js +2 -0
- package/dist/{chunk-SLRPDXK6.js → chunk-235XZBTZ.js} +2 -2
- package/dist/chunk-2EXX7BNU.js +2 -0
- package/dist/{chunk-PUK2TIQX.js.map → chunk-2EXX7BNU.js.map} +1 -1
- package/dist/chunk-2L6AB46E.js +2 -0
- package/dist/{chunk-A7U3KJIP.js.map → chunk-2L6AB46E.js.map} +1 -1
- package/dist/{chunk-GE74QKS6.js → chunk-335N2CVQ.js} +2 -2
- package/dist/chunk-36DZMQHH.js +2 -0
- package/dist/{chunk-DDMXUBCN.js.map → chunk-36DZMQHH.js.map} +1 -1
- package/dist/{chunk-N7HCQXUM.js → chunk-3B7FASV7.js} +2 -2
- package/dist/{chunk-STHZZZRL.js → chunk-3BDWVNHX.js} +2 -2
- package/dist/chunk-3CGFAN3F.js +2 -0
- package/dist/{chunk-DP6L72YF.js.map → chunk-3CGFAN3F.js.map} +1 -1
- package/dist/{chunk-ZREW7KZA.js → chunk-3DOSHTJS.js} +2 -2
- package/dist/{chunk-SZI67IXU.js → chunk-3HMBTPH7.js} +2 -2
- package/dist/{chunk-NTPHMYYC.js → chunk-3NC2JJM3.js} +2 -2
- package/dist/{chunk-ED35NFA6.js → chunk-3OHORFIX.js} +2 -2
- package/dist/{chunk-WGO25FWG.js → chunk-3WRO57UF.js} +2 -2
- package/dist/chunk-463G2HDA.js +2 -0
- package/dist/{chunk-CONMRDRL.js.map → chunk-463G2HDA.js.map} +1 -1
- package/dist/{chunk-4CNDASPA.js → chunk-4AQMMGXK.js} +2 -2
- package/dist/{chunk-G6EKGJBB.js → chunk-4BFGSBOK.js} +2 -2
- package/dist/{chunk-VVZTXCX2.js → chunk-4KIOOLOG.js} +2 -2
- package/dist/{chunk-SUYI33NX.js → chunk-4UN7DBEV.js} +2 -2
- package/dist/{chunk-RZL44CPH.js → chunk-57Y5XQ3D.js} +2 -2
- package/dist/{chunk-P6FFLJDP.js → chunk-5DPOL3DT.js} +2 -2
- package/dist/{chunk-FV6NNYDP.js → chunk-5FST4WDH.js} +2 -2
- package/dist/chunk-5NN5RWBG.js +2 -0
- package/dist/chunk-5NN5RWBG.js.map +1 -0
- package/dist/{chunk-46BOEYFO.js → chunk-6OLV37C2.js} +2 -2
- package/dist/{chunk-YHZZHQP5.js → chunk-6RPIMHYS.js} +2 -2
- package/dist/{chunk-MXAFJYLQ.js → chunk-6TLBBS6E.js} +2 -2
- package/dist/{chunk-EVUTX6TJ.js → chunk-77LDJPXF.js} +2 -2
- package/dist/chunk-7PEZVTSQ.js +2 -0
- package/dist/chunk-7PEZVTSQ.js.map +1 -0
- package/dist/{chunk-BTCC6PNG.js → chunk-7TELDH6M.js} +2 -2
- package/dist/{chunk-OWOIDZHI.js → chunk-7Y4NHODP.js} +2 -2
- package/dist/{chunk-GBVBMT3H.js → chunk-ADL2ZH54.js} +2 -2
- package/dist/{chunk-UZFEJMO6.js → chunk-AFTFDGSD.js} +2 -2
- package/dist/chunk-ANPNVWCB.js +2 -0
- package/dist/{chunk-E5ATCB4A.js → chunk-AOE6FXVP.js} +2 -2
- package/dist/{chunk-E5ATCB4A.js.map → chunk-AOE6FXVP.js.map} +1 -1
- package/dist/{chunk-L2YOD4GP.js → chunk-APSKAXM2.js} +2 -2
- package/dist/{chunk-5HDMU73I.js → chunk-B2WE3PSY.js} +2 -2
- package/dist/{chunk-FSCAWXCB.js → chunk-B677Q3B3.js} +2 -2
- package/dist/chunk-BQGTMOIQ.js +2 -0
- package/dist/{chunk-53QBSOMG.js.map → chunk-BQGTMOIQ.js.map} +1 -1
- package/dist/{chunk-WKWL57L6.js → chunk-BYD4TSDD.js} +2 -2
- package/dist/chunk-C7KVPEVX.js +2 -0
- package/dist/chunk-C7KVPEVX.js.map +1 -0
- package/dist/chunk-COQVI5OD.js +2 -0
- package/dist/chunk-COQVI5OD.js.map +1 -0
- package/dist/{chunk-5JXLXWTD.js → chunk-CR5J5KK6.js} +2 -2
- package/dist/chunk-D7F3QKN5.js +2 -0
- package/dist/chunk-D7F3QKN5.js.map +1 -0
- package/dist/chunk-DAUDKN32.js +8 -0
- package/dist/{chunk-QQV5REGG.js.map → chunk-DAUDKN32.js.map} +1 -1
- package/dist/{chunk-LXGL7HF5.js → chunk-DIPYFRXX.js} +2 -2
- package/dist/chunk-DSJXT5ZP.js +2 -0
- package/dist/chunk-DSJXT5ZP.js.map +1 -0
- package/dist/{chunk-ZOTKZZ67.js → chunk-DTNFGOBK.js} +2 -2
- package/dist/{chunk-JLZFNUBH.js → chunk-E7Y3YBZH.js} +2 -2
- package/dist/chunk-EP3BNRH3.js +2 -0
- package/dist/chunk-EP3BNRH3.js.map +1 -0
- package/dist/{chunk-GTS7KFEM.js → chunk-EQOOVJ7K.js} +2 -2
- package/dist/chunk-EUQLCVA5.js +2 -0
- package/dist/chunk-EUQLCVA5.js.map +1 -0
- package/dist/{chunk-R4ZUOFYN.js → chunk-FF5OB2GF.js} +2 -2
- package/dist/{chunk-H47XUL2L.js → chunk-FFRROEPQ.js} +2 -2
- package/dist/chunk-FIJSNO57.js +2 -0
- package/dist/chunk-FIJSNO57.js.map +1 -0
- package/dist/{chunk-UGQNOBQH.js → chunk-GF4MSLVP.js} +2 -2
- package/dist/{chunk-P2WUHKEU.js → chunk-GIBD2ZCJ.js} +2 -2
- package/dist/{chunk-XDLVDPQ7.js → chunk-GNVGW65D.js} +2 -2
- package/dist/{chunk-4IGLIHGF.js → chunk-GRLZH65T.js} +2 -2
- package/dist/chunk-GSUGHAHA.js +2 -0
- package/dist/{chunk-4BHEQMZV.js.map → chunk-GSUGHAHA.js.map} +1 -1
- package/dist/{chunk-CCGAAOXN.js → chunk-H4NJGAN4.js} +2 -2
- package/dist/chunk-HDFAFTHC.js +2 -0
- package/dist/chunk-HDFAFTHC.js.map +1 -0
- package/dist/{chunk-7FKNXW2I.js → chunk-HDTQOERP.js} +2 -2
- package/dist/{chunk-MEYX4D5K.js → chunk-I53YCEOC.js} +2 -2
- package/dist/{chunk-V3AVEPNA.js → chunk-I5NW7AQZ.js} +2 -2
- package/dist/{chunk-YME2HZZJ.js → chunk-I65OXH33.js} +2 -2
- package/dist/{chunk-ICYCECFS.js → chunk-IBQVGZMF.js} +2 -2
- package/dist/{chunk-ICYCECFS.js.map → chunk-IBQVGZMF.js.map} +1 -1
- package/dist/{chunk-TX6RWQUR.js → chunk-IJS67A57.js} +2 -2
- package/dist/chunk-IK2LTVOV.js +2 -0
- package/dist/chunk-IK2LTVOV.js.map +1 -0
- package/dist/{chunk-RYZ7TJVS.js → chunk-ISPN7HQ5.js} +2 -2
- package/dist/chunk-IYWSUSS2.js +2 -0
- package/dist/chunk-IYWSUSS2.js.map +1 -0
- package/dist/{chunk-FQBOMXMX.js → chunk-J244N33S.js} +2 -2
- package/dist/chunk-JKNE2D47.js +2 -0
- package/dist/{chunk-VRPZ4GHN.js.map → chunk-JKNE2D47.js.map} +1 -1
- package/dist/chunk-JO5D2522.js +2 -0
- package/dist/chunk-JO5D2522.js.map +1 -0
- package/dist/{chunk-ILMRP364.js → chunk-JUSQGITN.js} +2 -2
- package/dist/{chunk-GMSYO53D.js → chunk-KD7UBTZG.js} +2 -2
- package/dist/chunk-KF52YXGI.js +2 -0
- package/dist/chunk-KF52YXGI.js.map +1 -0
- package/dist/{chunk-VYTUM3RI.js → chunk-KFIUXU6I.js} +2 -2
- package/dist/chunk-KSSQR2CS.js +2 -0
- package/dist/chunk-KSSQR2CS.js.map +1 -0
- package/dist/{chunk-G75LPZV5.js → chunk-L7FN3XPX.js} +2 -2
- package/dist/{chunk-WVE2IOLY.js → chunk-LIZMNUQI.js} +2 -2
- package/dist/{chunk-KGNLBYM5.js → chunk-LJ32QPJF.js} +2 -2
- package/dist/chunk-LXABE3VR.js +2 -0
- package/dist/chunk-LXABE3VR.js.map +1 -0
- package/dist/chunk-LY5PCHQ2.js +2 -0
- package/dist/{chunk-B4O5YUYL.js.map → chunk-LY5PCHQ2.js.map} +1 -1
- package/dist/{chunk-BB3M25A3.js → chunk-MGCW2SS4.js} +2 -2
- package/dist/chunk-MNHXHKTE.js +2 -0
- package/dist/{chunk-EMMFAZZC.js.map → chunk-MNHXHKTE.js.map} +1 -1
- package/dist/{chunk-CUO7OGD5.js → chunk-MOOSPB2G.js} +2 -2
- package/dist/{chunk-ITCWBZDM.js → chunk-MZFT4MWM.js} +2 -2
- package/dist/chunk-NGBNHXAA.js +2 -0
- package/dist/{chunk-NYR6FVCU.js.map → chunk-NGBNHXAA.js.map} +1 -1
- package/dist/chunk-NQSJBVFL.js +2 -0
- package/dist/chunk-NQSJBVFL.js.map +1 -0
- package/dist/{chunk-V6PPOGPT.js → chunk-NVOUXFGX.js} +2 -2
- package/dist/{chunk-D6PMXNBM.js → chunk-OAX6TPIP.js} +2 -2
- package/dist/{chunk-4WSYC3Q5.js → chunk-OJ4TXF6G.js} +2 -2
- package/dist/{chunk-C7MVEDVY.js → chunk-OT5JE2SM.js} +2 -2
- package/dist/{chunk-QFTBKRUI.js → chunk-PJAHLEOR.js} +2 -2
- package/dist/{chunk-BLKWR77C.js → chunk-PJDHQ4ZQ.js} +2 -2
- package/dist/{chunk-AAXPKULB.js → chunk-PKORRCMX.js} +2 -2
- package/dist/{chunk-3G4HOZCM.js → chunk-POIDXI3T.js} +2 -2
- package/dist/chunk-QATHYZUV.js +2 -0
- package/dist/chunk-QATHYZUV.js.map +1 -0
- package/dist/{chunk-VKUGCD5J.js → chunk-QIY6K2FB.js} +2 -2
- package/dist/chunk-QMMNXGQF.js +2 -0
- package/dist/chunk-QMMNXGQF.js.map +1 -0
- package/dist/{chunk-ILEO7LN4.js → chunk-QRSMCORC.js} +2 -2
- package/dist/{chunk-TJZ5BJV3.js → chunk-QUJBIRNY.js} +2 -2
- package/dist/{chunk-OKBPMWVB.js → chunk-R23HFBV4.js} +2 -2
- package/dist/chunk-R4E37FVX.js +2 -0
- package/dist/{chunk-R5ADEPLC.js.map → chunk-R4E37FVX.js.map} +1 -1
- package/dist/chunk-RJXFAG4D.js +2 -0
- package/dist/chunk-RJXFAG4D.js.map +1 -0
- package/dist/{chunk-XEVHXHHC.js → chunk-ROVMQ5NT.js} +2 -2
- package/dist/{chunk-6CBC5OAQ.js → chunk-SDPYDCS7.js} +2 -2
- package/dist/{chunk-25MUO3XP.js → chunk-SMCLTRJW.js} +2 -2
- package/dist/chunk-SRLBVFNQ.js +2 -0
- package/dist/chunk-SRLBVFNQ.js.map +1 -0
- package/dist/{chunk-NFWKD7UR.js → chunk-SUGZPBET.js} +2 -2
- package/dist/{chunk-Z7XLK4JL.js → chunk-SV35IBBH.js} +2 -2
- package/dist/{chunk-7B3ATY3M.js → chunk-SYZIGZ2F.js} +2 -2
- package/dist/{chunk-7B3ATY3M.js.map → chunk-SYZIGZ2F.js.map} +1 -1
- package/dist/chunk-TUIEY7ZM.js +2 -0
- package/dist/chunk-TUIEY7ZM.js.map +1 -0
- package/dist/{chunk-ERBEPQJP.js → chunk-UBWNTSWS.js} +2 -2
- package/dist/chunk-UETBVQT5.js +2 -0
- package/dist/chunk-UETBVQT5.js.map +1 -0
- package/dist/{chunk-RFMYNPR7.js → chunk-URNFXEOZ.js} +2 -2
- package/dist/{chunk-5PUW4YCY.js → chunk-UTWBY65S.js} +2 -2
- package/dist/{chunk-XMVV6S77.js → chunk-UWIUECXU.js} +2 -2
- package/dist/{chunk-JVZ5LUV4.js → chunk-VEQWK7QQ.js} +2 -2
- package/dist/{chunk-JVZ5LUV4.js.map → chunk-VEQWK7QQ.js.map} +1 -1
- package/dist/{chunk-LADLAP2S.js → chunk-VRZJWJGM.js} +2 -2
- package/dist/chunk-VSK4KV55.js +2 -0
- package/dist/chunk-VSK4KV55.js.map +1 -0
- package/dist/chunk-WC7TWLA7.js +2 -0
- package/dist/chunk-WC7TWLA7.js.map +1 -0
- package/dist/{chunk-JI3PAIMV.js → chunk-WHY2WNWH.js} +2 -2
- package/dist/{chunk-77AA65OH.js → chunk-WNOQNNRR.js} +2 -2
- package/dist/{chunk-77AA65OH.js.map → chunk-WNOQNNRR.js.map} +1 -1
- package/dist/{chunk-JVXI4RZU.js → chunk-WU66SHVJ.js} +2 -2
- package/dist/{chunk-PKJZ2N4C.js → chunk-XLHTMWJ3.js} +2 -2
- package/dist/{chunk-ZODT3MJM.js → chunk-XPLWBO73.js} +2 -2
- package/dist/{chunk-DOPQK5RP.js → chunk-YANQP45B.js} +2 -2
- package/dist/{chunk-PKQG25GH.js → chunk-YE6NRJ2L.js} +2 -2
- package/dist/{chunk-PKQG25GH.js.map → chunk-YE6NRJ2L.js.map} +1 -1
- package/dist/{chunk-CD6H4MBI.js → chunk-YRRX7EOU.js} +2 -2
- package/dist/{chunk-XMIVJW5E.js → chunk-YWLAZIIO.js} +2 -2
- package/dist/{chunk-2UH6Y56R.js → chunk-ZJ55AKB6.js} +2 -2
- package/dist/{chunk-GHZABLDV.js → chunk-ZULOHKU6.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 +3 -3
- package/dist/flows/ContractAmendment/utils.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +311 -14
- 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 +7 -5
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractOriginStep.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/ContractOriginStep.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/ContractPreviewStep.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractReviewButton.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.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/PreviewInvoiceButton.d.ts +29 -27
- package/dist/flows/ContractorOnboarding/components/PreviewInvoiceButton.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +7 -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/SkipInvoiceScheduleButton.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/context.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/hooks.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/jsfModify.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.d.ts +177 -1
- package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.js +1 -1
- package/dist/flows/ContractorOnboarding/types.d.ts +7 -5
- package/dist/flows/ContractorOnboarding/utils.d.ts +4 -4
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +3 -3
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +3 -3
- package/dist/flows/CostCalculator/api.d.ts +3 -3
- 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/jsonSchema.d.ts +3 -0
- package/dist/flows/CostCalculator/jsonSchema.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +3 -3
- 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 +3 -3
- 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/InvoiceSchedule/InvoiceScheduleFlow.d.ts +8 -16
- package/dist/flows/InvoiceSchedule/InvoiceScheduleFlow.js +1 -1
- package/dist/flows/InvoiceSchedule/InvoiceScheduleForm.d.ts +3 -7
- package/dist/flows/InvoiceSchedule/InvoiceScheduleForm.js +1 -1
- package/dist/flows/InvoiceSchedule/InvoiceSchedulePreviewButton.d.ts +33 -0
- package/dist/flows/InvoiceSchedule/InvoiceSchedulePreviewButton.js +2 -0
- package/dist/flows/InvoiceSchedule/InvoiceScheduleSubmitButton.js +1 -1
- package/dist/flows/InvoiceSchedule/context.d.ts +10 -20
- package/dist/flows/InvoiceSchedule/hooks.d.ts +33 -41
- package/dist/flows/InvoiceSchedule/hooks.js +1 -1
- package/dist/flows/InvoiceSchedule/index.d.ts +6 -8
- package/dist/flows/InvoiceSchedule/index.js +1 -1
- package/dist/flows/InvoiceSchedule/types.d.ts +8 -35
- package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.d.ts +3 -3
- package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js +1 -1
- package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.d.ts +3 -3
- package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js +1 -1
- package/dist/flows/JsonSchemaPlayground/context.d.ts +3 -3
- package/dist/flows/JsonSchemaPlayground/hooks.d.ts +3 -3
- package/dist/flows/JsonSchemaPlayground/hooks.js +1 -1
- package/dist/flows/JsonSchemaPlayground/index.d.ts +3 -3
- package/dist/flows/JsonSchemaPlayground/index.js +1 -1
- package/dist/flows/JsonSchemaPlayground/types.d.ts +3 -3
- 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/DailySchedule/DailySchedule.d.ts +11 -0
- package/dist/flows/Onboarding/components/DailySchedule/DailySchedule.js +2 -0
- package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleContainer.d.ts +16 -0
- package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleContainer.js +2 -0
- package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleContainer.js.map +1 -0
- package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleHoursErrorBanner.d.ts +12 -0
- package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleHoursErrorBanner.js +2 -0
- package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleHoursErrorBanner.js.map +1 -0
- package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleSummaryBody.d.ts +13 -0
- package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleSummaryBody.js +2 -0
- package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleSummaryBody.js.map +1 -0
- package/dist/flows/Onboarding/components/DailySchedule/types.d.ts +91 -0
- package/dist/flows/Onboarding/components/DailySchedule/types.js +1 -0
- package/dist/flows/Onboarding/components/DailySchedule/types.js.map +1 -0
- package/dist/flows/Onboarding/components/DailySchedule/utils.d.ts +57 -0
- package/dist/flows/Onboarding/components/DailySchedule/utils.js +2 -0
- package/dist/flows/Onboarding/components/DailySchedule/utils.js.map +1 -0
- package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.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/PreOnboardingRequirements.d.ts +4 -4
- package/dist/flows/Onboarding/components/PreOnboardingRequirements.js +1 -1
- package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.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 +5 -5
- 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/json-schemas/selectCountryStep.d.ts +3 -0
- package/dist/flows/Onboarding/json-schemas/selectCountryStep.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +4 -4
- package/dist/flows/Onboarding/utils.d.ts +4 -4
- package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +5 -5
- package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/api.d.ts +2 -2
- package/dist/flows/PayrollAdminOnboarding/api.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.d.ts +3 -3
- package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.d.ts +3 -3
- package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.d.ts +3 -3
- package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.d.ts +2 -2
- package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.d.ts +3 -3
- package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.d.ts +3 -3
- package/dist/flows/PayrollAdminOnboarding/context.d.ts +5 -5
- package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +5 -5
- package/dist/flows/PayrollAdminOnboarding/hooks.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/index.d.ts +5 -5
- package/dist/flows/PayrollAdminOnboarding/index.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/json-schemas/selectCountryStep.d.ts +3 -0
- package/dist/flows/PayrollAdminOnboarding/json-schemas/selectCountryStep.js +1 -1
- package/dist/flows/PayrollAdminOnboarding/types.d.ts +5 -5
- package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +5 -5
- package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/api.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/api.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.d.ts +2 -2
- package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.d.ts +3 -3
- package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +5 -5
- package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +5 -5
- package/dist/flows/PayrollEmployeeOnboarding/hooks.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +5 -5
- package/dist/flows/PayrollEmployeeOnboarding/index.js +1 -1
- package/dist/flows/PayrollEmployeeOnboarding/types.d.ts +5 -5
- 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/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
- 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/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/additionalInformation.d.ts +1 -1
- package/dist/flows/Termination/json-schemas/additionalInformation.js +1 -1
- package/dist/flows/Termination/json-schemas/defaultSchema.d.ts +1 -1
- package/dist/flows/Termination/json-schemas/defaultSchema.js +1 -1
- package/dist/flows/Termination/json-schemas/employeeComunication.d.ts +1 -1
- package/dist/flows/Termination/json-schemas/employeeComunication.js +1 -1
- package/dist/flows/Termination/json-schemas/jsonSchema.d.ts +1 -1
- package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
- package/dist/flows/Termination/json-schemas/paidTimeOff.d.ts +1 -1
- package/dist/flows/Termination/json-schemas/paidTimeOff.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/json-schemas/terminationDetails.d.ts +1 -1
- package/dist/flows/Termination/json-schemas/terminationDetails.js +1 -1
- package/dist/flows/Termination/types.d.ts +4 -4
- package/dist/flows/Termination/utils.d.ts +4 -4
- package/dist/flows/types.d.ts +3 -3
- package/dist/flows/utils.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +18 -17
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +4 -4
- package/dist/internals.js +1 -1
- package/dist/{mutations-Dg60ZjS0.d.ts → mutations-DU9Ens-k.d.ts} +1 -1
- package/dist/{remoteFlows-7WBvzlJt.d.ts → remoteFlows-BlMarq2K.d.ts} +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/{types-CgNwKzZf.d.ts → types-B2hGbfw_.d.ts} +3 -3
- package/dist/{types-CJHW5xRl.d.ts → types-BFSFdXKe.d.ts} +1 -1
- package/dist/{types-DmvLgred.d.ts → types-BGoAzP0c.d.ts} +1 -1
- package/dist/{types-CT7w2kHS.d.ts → types-C3sJ1GdL.d.ts} +2 -2
- package/dist/{types-1IycaCkN.d.ts → types-CTIVW_BN.d.ts} +5 -5
- package/dist/{types--IwjF9ei.d.ts → types-Ce5Sou3Z.d.ts} +7 -37
- package/dist/{types-CI8Tx4se.d.ts → types-DKfzko2j.d.ts} +3 -3
- package/dist/types-DvsjrBmu.d.ts +15 -0
- package/dist/{types-DPlWZa2M.d.ts → types-p2MsBnGq.d.ts} +3 -3
- package/dist/{types.gen-TcbORUL-.d.ts → types.gen-CMDAS1NL.d.ts} +1 -1
- package/dist/{utils-DSHROBN2.d.ts → utils-DpJmWzrf.d.ts} +1 -1
- package/package.json +4 -3
- package/dist/CheckboxFieldDefault-JOUZXB4Y.js +0 -2
- package/dist/CountryFieldDefault-IZQOFNX5.js +0 -2
- package/dist/DatePickerFieldDefault-AWV7LUPI.js +0 -2
- package/dist/EmailFieldDefault-QVKXB67I.js +0 -2
- package/dist/FileUploadFieldDefault-NZ33IMPU.js +0 -2
- package/dist/ForcedValueFieldDefault-RY5AN7O6.js +0 -2
- package/dist/MultiSelectFieldDefault-DOZQUBEE.js +0 -2
- package/dist/NumberFieldDefault-O7OKTFG4.js +0 -2
- package/dist/PDFPreviewDefault-HSSMYKV5.js +0 -2
- package/dist/RadioGroupFieldDefault-GFDO56LK.js +0 -2
- package/dist/SelectFieldDefault-E4KFZBJ7.js +0 -2
- package/dist/TelFieldDefault-2EPAKDTW.js +0 -2
- package/dist/TextAreaFieldDefault-WZIVM4RZ.js +0 -2
- package/dist/TextFieldDefault-YVXZO4AN.js +0 -2
- package/dist/TimeFieldDefault-JN4MDIO6.js +0 -2
- package/dist/WorkScheduleFieldDefault-23WY3SVD.js +0 -2
- package/dist/chunk-3OKB5OHA.js +0 -2
- package/dist/chunk-3OKB5OHA.js.map +0 -1
- package/dist/chunk-4BHEQMZV.js +0 -2
- package/dist/chunk-53QBSOMG.js +0 -2
- package/dist/chunk-5YI7MY5T.js +0 -2
- package/dist/chunk-5YI7MY5T.js.map +0 -1
- package/dist/chunk-A7U3KJIP.js +0 -2
- package/dist/chunk-AUPAAQUT.js +0 -2
- package/dist/chunk-AUPAAQUT.js.map +0 -1
- package/dist/chunk-B4O5YUYL.js +0 -2
- package/dist/chunk-CONMRDRL.js +0 -2
- package/dist/chunk-DDMXUBCN.js +0 -2
- package/dist/chunk-DP6L72YF.js +0 -2
- package/dist/chunk-DYIMRD6T.js +0 -2
- package/dist/chunk-DYIMRD6T.js.map +0 -1
- package/dist/chunk-EMMFAZZC.js +0 -2
- package/dist/chunk-GIZQZBHB.js +0 -2
- package/dist/chunk-GIZQZBHB.js.map +0 -1
- package/dist/chunk-HMJ4PIDI.js +0 -2
- package/dist/chunk-HMJ4PIDI.js.map +0 -1
- package/dist/chunk-I4DU34BA.js +0 -2
- package/dist/chunk-I4DU34BA.js.map +0 -1
- package/dist/chunk-IHGCXP2X.js +0 -2
- package/dist/chunk-IHGCXP2X.js.map +0 -1
- package/dist/chunk-LSUBNZ64.js +0 -2
- package/dist/chunk-LSUBNZ64.js.map +0 -1
- package/dist/chunk-NAFECQWK.js +0 -2
- package/dist/chunk-NYR6FVCU.js +0 -2
- package/dist/chunk-PUK2TIQX.js +0 -2
- package/dist/chunk-QQPF2DUF.js +0 -2
- package/dist/chunk-QQPF2DUF.js.map +0 -1
- package/dist/chunk-QQV5REGG.js +0 -8
- package/dist/chunk-R5ADEPLC.js +0 -2
- package/dist/chunk-ROO2IFBF.js +0 -2
- package/dist/chunk-ROO2IFBF.js.map +0 -1
- package/dist/chunk-SVU7GWUR.js +0 -2
- package/dist/chunk-SVU7GWUR.js.map +0 -1
- package/dist/chunk-SVVZOMLQ.js +0 -2
- package/dist/chunk-SVVZOMLQ.js.map +0 -1
- package/dist/chunk-T5H35HYL.js +0 -2
- package/dist/chunk-T5H35HYL.js.map +0 -1
- package/dist/chunk-TRDNTXE7.js +0 -2
- package/dist/chunk-TRDNTXE7.js.map +0 -1
- package/dist/chunk-U4H7URYB.js +0 -2
- package/dist/chunk-U4H7URYB.js.map +0 -1
- package/dist/chunk-UWHJF45X.js +0 -2
- package/dist/chunk-UWHJF45X.js.map +0 -1
- package/dist/chunk-VFRHMNLJ.js +0 -2
- package/dist/chunk-VFRHMNLJ.js.map +0 -1
- package/dist/chunk-VRPZ4GHN.js +0 -2
- package/dist/chunk-WRTUY6K3.js +0 -2
- package/dist/chunk-WRTUY6K3.js.map +0 -1
- package/dist/chunk-WVJDCDGZ.js +0 -2
- package/dist/chunk-WVJDCDGZ.js.map +0 -1
- package/dist/chunk-XFVXRCMH.js +0 -2
- package/dist/chunk-XFVXRCMH.js.map +0 -1
- package/dist/chunk-ZD4H63AL.js +0 -2
- package/dist/chunk-ZD4H63AL.js.map +0 -1
- package/dist/createInvoiceSchedule-BweQB6DI.d.ts +0 -195
- package/dist/flows/InvoiceSchedule/api.d.ts +0 -47
- package/dist/flows/InvoiceSchedule/api.js +0 -2
- package/dist/flows/InvoiceSchedule/components/ContractorSelectField.d.ts +0 -20
- package/dist/flows/InvoiceSchedule/components/ContractorSelectField.js +0 -2
- package/dist/types.gen-Dtb8ECVb.d.ts +0 -308
- /package/dist/{CheckboxFieldDefault-JOUZXB4Y.js.map → CheckboxFieldDefault-23VE43PP.js.map} +0 -0
- /package/dist/{CountryFieldDefault-IZQOFNX5.js.map → CountryFieldDefault-FVAAL55P.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-AWV7LUPI.js.map → DatePickerFieldDefault-KXEMGK5B.js.map} +0 -0
- /package/dist/{EmailFieldDefault-QVKXB67I.js.map → EmailFieldDefault-OFHDLOOT.js.map} +0 -0
- /package/dist/{FileUploadFieldDefault-NZ33IMPU.js.map → FileUploadFieldDefault-GX22C22E.js.map} +0 -0
- /package/dist/{ForcedValueFieldDefault-RY5AN7O6.js.map → ForcedValueFieldDefault-ESITCZWK.js.map} +0 -0
- /package/dist/{MultiSelectFieldDefault-DOZQUBEE.js.map → MultiSelectFieldDefault-DAUBH5JV.js.map} +0 -0
- /package/dist/{NumberFieldDefault-O7OKTFG4.js.map → NumberFieldDefault-MXZD7YVE.js.map} +0 -0
- /package/dist/{PDFPreviewDefault-HSSMYKV5.js.map → PDFPreviewDefault-T6YPWXGY.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-GFDO56LK.js.map → RadioGroupFieldDefault-QFUUJGSR.js.map} +0 -0
- /package/dist/{SelectFieldDefault-E4KFZBJ7.js.map → SelectFieldDefault-3QTJE222.js.map} +0 -0
- /package/dist/{TelFieldDefault-2EPAKDTW.js.map → TelFieldDefault-5U5X37LI.js.map} +0 -0
- /package/dist/{TextAreaFieldDefault-WZIVM4RZ.js.map → TextAreaFieldDefault-JX2MVJVY.js.map} +0 -0
- /package/dist/{TextFieldDefault-YVXZO4AN.js.map → TextFieldDefault-WCUD6XYS.js.map} +0 -0
- /package/dist/{TimeFieldDefault-JN4MDIO6.js.map → TimeFieldDefault-UNF7PKLT.js.map} +0 -0
- /package/dist/{WorkScheduleFieldDefault-23WY3SVD.js.map → WorkScheduleFieldDefault-2A2RCDXV.js.map} +0 -0
- /package/dist/{chunk-SLRPDXK6.js.map → chunk-235XZBTZ.js.map} +0 -0
- /package/dist/{chunk-GE74QKS6.js.map → chunk-335N2CVQ.js.map} +0 -0
- /package/dist/{chunk-N7HCQXUM.js.map → chunk-3B7FASV7.js.map} +0 -0
- /package/dist/{chunk-STHZZZRL.js.map → chunk-3BDWVNHX.js.map} +0 -0
- /package/dist/{chunk-ZREW7KZA.js.map → chunk-3DOSHTJS.js.map} +0 -0
- /package/dist/{chunk-SZI67IXU.js.map → chunk-3HMBTPH7.js.map} +0 -0
- /package/dist/{chunk-NTPHMYYC.js.map → chunk-3NC2JJM3.js.map} +0 -0
- /package/dist/{chunk-ED35NFA6.js.map → chunk-3OHORFIX.js.map} +0 -0
- /package/dist/{chunk-WGO25FWG.js.map → chunk-3WRO57UF.js.map} +0 -0
- /package/dist/{chunk-4CNDASPA.js.map → chunk-4AQMMGXK.js.map} +0 -0
- /package/dist/{chunk-G6EKGJBB.js.map → chunk-4BFGSBOK.js.map} +0 -0
- /package/dist/{chunk-VVZTXCX2.js.map → chunk-4KIOOLOG.js.map} +0 -0
- /package/dist/{chunk-SUYI33NX.js.map → chunk-4UN7DBEV.js.map} +0 -0
- /package/dist/{chunk-RZL44CPH.js.map → chunk-57Y5XQ3D.js.map} +0 -0
- /package/dist/{chunk-P6FFLJDP.js.map → chunk-5DPOL3DT.js.map} +0 -0
- /package/dist/{chunk-FV6NNYDP.js.map → chunk-5FST4WDH.js.map} +0 -0
- /package/dist/{chunk-46BOEYFO.js.map → chunk-6OLV37C2.js.map} +0 -0
- /package/dist/{chunk-YHZZHQP5.js.map → chunk-6RPIMHYS.js.map} +0 -0
- /package/dist/{chunk-MXAFJYLQ.js.map → chunk-6TLBBS6E.js.map} +0 -0
- /package/dist/{chunk-EVUTX6TJ.js.map → chunk-77LDJPXF.js.map} +0 -0
- /package/dist/{chunk-BTCC6PNG.js.map → chunk-7TELDH6M.js.map} +0 -0
- /package/dist/{chunk-OWOIDZHI.js.map → chunk-7Y4NHODP.js.map} +0 -0
- /package/dist/{chunk-GBVBMT3H.js.map → chunk-ADL2ZH54.js.map} +0 -0
- /package/dist/{chunk-UZFEJMO6.js.map → chunk-AFTFDGSD.js.map} +0 -0
- /package/dist/{chunk-NAFECQWK.js.map → chunk-ANPNVWCB.js.map} +0 -0
- /package/dist/{chunk-L2YOD4GP.js.map → chunk-APSKAXM2.js.map} +0 -0
- /package/dist/{chunk-5HDMU73I.js.map → chunk-B2WE3PSY.js.map} +0 -0
- /package/dist/{chunk-FSCAWXCB.js.map → chunk-B677Q3B3.js.map} +0 -0
- /package/dist/{chunk-WKWL57L6.js.map → chunk-BYD4TSDD.js.map} +0 -0
- /package/dist/{chunk-5JXLXWTD.js.map → chunk-CR5J5KK6.js.map} +0 -0
- /package/dist/{chunk-LXGL7HF5.js.map → chunk-DIPYFRXX.js.map} +0 -0
- /package/dist/{chunk-ZOTKZZ67.js.map → chunk-DTNFGOBK.js.map} +0 -0
- /package/dist/{chunk-JLZFNUBH.js.map → chunk-E7Y3YBZH.js.map} +0 -0
- /package/dist/{chunk-GTS7KFEM.js.map → chunk-EQOOVJ7K.js.map} +0 -0
- /package/dist/{chunk-R4ZUOFYN.js.map → chunk-FF5OB2GF.js.map} +0 -0
- /package/dist/{chunk-H47XUL2L.js.map → chunk-FFRROEPQ.js.map} +0 -0
- /package/dist/{chunk-UGQNOBQH.js.map → chunk-GF4MSLVP.js.map} +0 -0
- /package/dist/{chunk-P2WUHKEU.js.map → chunk-GIBD2ZCJ.js.map} +0 -0
- /package/dist/{chunk-XDLVDPQ7.js.map → chunk-GNVGW65D.js.map} +0 -0
- /package/dist/{chunk-4IGLIHGF.js.map → chunk-GRLZH65T.js.map} +0 -0
- /package/dist/{chunk-CCGAAOXN.js.map → chunk-H4NJGAN4.js.map} +0 -0
- /package/dist/{chunk-7FKNXW2I.js.map → chunk-HDTQOERP.js.map} +0 -0
- /package/dist/{chunk-MEYX4D5K.js.map → chunk-I53YCEOC.js.map} +0 -0
- /package/dist/{chunk-V3AVEPNA.js.map → chunk-I5NW7AQZ.js.map} +0 -0
- /package/dist/{chunk-YME2HZZJ.js.map → chunk-I65OXH33.js.map} +0 -0
- /package/dist/{chunk-TX6RWQUR.js.map → chunk-IJS67A57.js.map} +0 -0
- /package/dist/{chunk-RYZ7TJVS.js.map → chunk-ISPN7HQ5.js.map} +0 -0
- /package/dist/{chunk-FQBOMXMX.js.map → chunk-J244N33S.js.map} +0 -0
- /package/dist/{chunk-ILMRP364.js.map → chunk-JUSQGITN.js.map} +0 -0
- /package/dist/{chunk-GMSYO53D.js.map → chunk-KD7UBTZG.js.map} +0 -0
- /package/dist/{chunk-VYTUM3RI.js.map → chunk-KFIUXU6I.js.map} +0 -0
- /package/dist/{chunk-G75LPZV5.js.map → chunk-L7FN3XPX.js.map} +0 -0
- /package/dist/{chunk-WVE2IOLY.js.map → chunk-LIZMNUQI.js.map} +0 -0
- /package/dist/{chunk-KGNLBYM5.js.map → chunk-LJ32QPJF.js.map} +0 -0
- /package/dist/{chunk-BB3M25A3.js.map → chunk-MGCW2SS4.js.map} +0 -0
- /package/dist/{chunk-CUO7OGD5.js.map → chunk-MOOSPB2G.js.map} +0 -0
- /package/dist/{chunk-ITCWBZDM.js.map → chunk-MZFT4MWM.js.map} +0 -0
- /package/dist/{chunk-V6PPOGPT.js.map → chunk-NVOUXFGX.js.map} +0 -0
- /package/dist/{chunk-D6PMXNBM.js.map → chunk-OAX6TPIP.js.map} +0 -0
- /package/dist/{chunk-4WSYC3Q5.js.map → chunk-OJ4TXF6G.js.map} +0 -0
- /package/dist/{chunk-C7MVEDVY.js.map → chunk-OT5JE2SM.js.map} +0 -0
- /package/dist/{chunk-QFTBKRUI.js.map → chunk-PJAHLEOR.js.map} +0 -0
- /package/dist/{chunk-BLKWR77C.js.map → chunk-PJDHQ4ZQ.js.map} +0 -0
- /package/dist/{chunk-AAXPKULB.js.map → chunk-PKORRCMX.js.map} +0 -0
- /package/dist/{chunk-3G4HOZCM.js.map → chunk-POIDXI3T.js.map} +0 -0
- /package/dist/{chunk-VKUGCD5J.js.map → chunk-QIY6K2FB.js.map} +0 -0
- /package/dist/{chunk-ILEO7LN4.js.map → chunk-QRSMCORC.js.map} +0 -0
- /package/dist/{chunk-TJZ5BJV3.js.map → chunk-QUJBIRNY.js.map} +0 -0
- /package/dist/{chunk-OKBPMWVB.js.map → chunk-R23HFBV4.js.map} +0 -0
- /package/dist/{chunk-XEVHXHHC.js.map → chunk-ROVMQ5NT.js.map} +0 -0
- /package/dist/{chunk-6CBC5OAQ.js.map → chunk-SDPYDCS7.js.map} +0 -0
- /package/dist/{chunk-25MUO3XP.js.map → chunk-SMCLTRJW.js.map} +0 -0
- /package/dist/{chunk-NFWKD7UR.js.map → chunk-SUGZPBET.js.map} +0 -0
- /package/dist/{chunk-Z7XLK4JL.js.map → chunk-SV35IBBH.js.map} +0 -0
- /package/dist/{chunk-ERBEPQJP.js.map → chunk-UBWNTSWS.js.map} +0 -0
- /package/dist/{chunk-RFMYNPR7.js.map → chunk-URNFXEOZ.js.map} +0 -0
- /package/dist/{chunk-5PUW4YCY.js.map → chunk-UTWBY65S.js.map} +0 -0
- /package/dist/{chunk-XMVV6S77.js.map → chunk-UWIUECXU.js.map} +0 -0
- /package/dist/{chunk-LADLAP2S.js.map → chunk-VRZJWJGM.js.map} +0 -0
- /package/dist/{chunk-JI3PAIMV.js.map → chunk-WHY2WNWH.js.map} +0 -0
- /package/dist/{chunk-JVXI4RZU.js.map → chunk-WU66SHVJ.js.map} +0 -0
- /package/dist/{chunk-PKJZ2N4C.js.map → chunk-XLHTMWJ3.js.map} +0 -0
- /package/dist/{chunk-ZODT3MJM.js.map → chunk-XPLWBO73.js.map} +0 -0
- /package/dist/{chunk-DOPQK5RP.js.map → chunk-YANQP45B.js.map} +0 -0
- /package/dist/{chunk-CD6H4MBI.js.map → chunk-YRRX7EOU.js.map} +0 -0
- /package/dist/{chunk-XMIVJW5E.js.map → chunk-YWLAZIIO.js.map} +0 -0
- /package/dist/{chunk-2UH6Y56R.js.map → chunk-ZJ55AKB6.js.map} +0 -0
- /package/dist/{chunk-GHZABLDV.js.map → chunk-ZULOHKU6.js.map} +0 -0
- /package/dist/flows/InvoiceSchedule/{api.js.map → InvoiceSchedulePreviewButton.js.map} +0 -0
- /package/dist/flows/{InvoiceSchedule/components/ContractorSelectField.js.map → Onboarding/components/DailySchedule/DailySchedule.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-VDRNNOVA.js";var n={data:{version:7,schema:{additionalProperties:!1,allOf:[{if:{properties:{will_challenge_termination:{const:"yes"}},required:["will_challenge_termination"]},then:{properties:{will_challenge_termination_description:{type:"string"}},required:["will_challenge_termination_description"]},else:{properties:{will_challenge_termination_description:!1}}}],properties:{termination_reason:{title:"Termination reason",description:"Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.",type:"string",oneOf:[{const:"gross_misconduct",title:"Gross misconduct"},{const:"performance",title:"Performance"},{const:"workforce_reduction",title:"Workforce Reduction"},{const:"values",title:"Values"},{const:"compliance_issue",title:"Compliance issue"},{const:"incapacity_to_perform_inherent_duties",title:"Incapacity To perform inherent duties"},{const:"mutual_agreement",title:"Mutual agreement"},{const:"cancellation_before_start_date",title:"Decision to cancel hiring before the employee starts"},{const:"job_abandonment",title:"Job abandonment"},{const:"dissatisfaction_with_remote_service",title:"Dissatisfaction with EOR service"},{const:"end_of_fixed_term_contract_compliance_issue",title:"End of fixed-term contract"},{const:"other",title:"Other"}],"x-jsf-presentation":{inputType:"select"}},reason_description:{description:"",maxLength:1e3,title:"Termination reason details",type:"string","x-jsf-presentation":{inputType:"textarea"}},additional_comments:{description:"",maxLength:1e3,title:"Additional details regarding this termination process.",type:"string","x-jsf-presentation":{inputType:"textarea"}},termination_reason_files:{description:"Please upload any supporting documents regarding the termination reason.",title:"Termination reason files",type:"string","x-jsf-presentation":{inputType:"file",accept:e.document,multiple:!0,maxSize:20971520}},risk_assesment_info:{description:"",title:"Risk assessment info",type:"null","x-jsf-presentation":{inputType:"hidden"}},risk_assessment_reasons:{description:"",title:"This employee is...",type:"array",items:{anyOf:[{const:"sick_leave",title:"Currently on or recently returned from sick leave"},{const:"family_leave",title:"Currently on or recently returned from maternity, paternity, or other family leave"},{const:"pregnant_or_breastfeeding",title:"Pregnant or breastfeeding"},{const:"requested_medical_or_family_leave",title:"Requested medical or family leave"},{const:"disabled_or_health_condition",title:"Disabled or has a health condition"},{const:"member_of_union_or_works_council",title:"A member of a union or works council"},{const:"caring_responsibilities",title:"Caring responsibilities"},{const:"reported_concerns_with_workplace",title:"Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions"},{const:"none_of_these",title:"To the best of my knowledge, I am not aware of any of these"}]},"x-jsf-presentation":{inputType:"checkbox",direction:"column"}},will_challenge_termination:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Do you consider it is likely that the employee will challenge their termination?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},will_challenge_termination_description:{description:"",maxLength:1e3,title:"Please explain how the employee will challenge their termination",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},proposed_termination_date_info:{description:"",title:"Proposed termination date info",type:"null","x-jsf-presentation":{inputType:"hidden"}},proposed_termination_date:{description:"Please note that we cannot commit to a termination date until we conduct a full review of the information you submit.",format:"date",maxLength:255,title:"Proposed termination date",type:"string","x-jsf-presentation":{inputType:"date"}}},required:["termination_reason","reason_description","risk_assessment_reasons","will_challenge_termination","proposed_termination_date"],type:"object","x-jsf-order":["termination_reason","reason_description","additional_comments","termination_reason_files","risk_assesment_info","risk_assessment_reasons","will_challenge_termination","will_challenge_termination_description","proposed_termination_date_info","proposed_termination_date"],"x-rmt-meta":{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-VDRNNOVA.js";var n={data:{version:7,schema:{additionalProperties:!1,allOf:[{if:{properties:{will_challenge_termination:{const:"yes"}},required:["will_challenge_termination"]},then:{properties:{will_challenge_termination_description:{type:"string"}},required:["will_challenge_termination_description"]},else:{properties:{will_challenge_termination_description:!1}}}],properties:{termination_reason:{title:"Termination reason",description:"Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.",type:"string",oneOf:[{const:"gross_misconduct",title:"Gross misconduct"},{const:"performance",title:"Performance"},{const:"workforce_reduction",title:"Workforce Reduction"},{const:"values",title:"Values"},{const:"compliance_issue",title:"Compliance issue"},{const:"incapacity_to_perform_inherent_duties",title:"Incapacity To perform inherent duties"},{const:"mutual_agreement",title:"Mutual agreement"},{const:"cancellation_before_start_date",title:"Decision to cancel hiring before the employee starts"},{const:"job_abandonment",title:"Job abandonment"},{const:"dissatisfaction_with_remote_service",title:"Dissatisfaction with EOR service"},{const:"end_of_fixed_term_contract_compliance_issue",title:"End of fixed-term contract"},{const:"other",title:"Other"}],"x-jsf-presentation":{inputType:"select"}},reason_description:{description:"",maxLength:1e3,title:"Termination reason details",type:"string","x-jsf-presentation":{inputType:"textarea"}},additional_comments:{description:"",maxLength:1e3,title:"Additional details regarding this termination process.",type:"string","x-jsf-presentation":{inputType:"textarea"}},termination_reason_files:{description:"Please upload any supporting documents regarding the termination reason.",title:"Termination reason files",type:"string","x-jsf-presentation":{inputType:"file",accept:e.document,multiple:!0,maxSize:20971520}},risk_assesment_info:{description:"",title:"Risk assessment info",type:"null","x-jsf-presentation":{inputType:"hidden"}},risk_assessment_reasons:{description:"",title:"This employee is...",type:"array",items:{anyOf:[{const:"sick_leave",title:"Currently on or recently returned from sick leave"},{const:"family_leave",title:"Currently on or recently returned from maternity, paternity, or other family leave"},{const:"pregnant_or_breastfeeding",title:"Pregnant or breastfeeding"},{const:"requested_medical_or_family_leave",title:"Requested medical or family leave"},{const:"disabled_or_health_condition",title:"Disabled or has a health condition"},{const:"member_of_union_or_works_council",title:"A member of a union or works council"},{const:"caring_responsibilities",title:"Caring responsibilities"},{const:"reported_concerns_with_workplace",title:"Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions"},{const:"none_of_these",title:"To the best of my knowledge, I am not aware of any of these"}]},"x-jsf-presentation":{inputType:"checkbox",direction:"column"}},will_challenge_termination:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Do you consider it is likely that the employee will challenge their termination?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},will_challenge_termination_description:{description:"",maxLength:1e3,title:"Please explain how the employee will challenge their termination",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},proposed_termination_date_info:{description:"",title:"Proposed termination date info",type:"null","x-jsf-presentation":{inputType:"hidden"}},proposed_termination_date:{description:"Please note that we cannot commit to a termination date until we conduct a full review of the information you submit.",format:"date",maxLength:255,title:"Proposed termination date",type:"string","x-jsf-presentation":{inputType:"date"}}},required:["termination_reason","reason_description","risk_assessment_reasons","will_challenge_termination","proposed_termination_date"],type:"object","x-jsf-order":["termination_reason","reason_description","additional_comments","termination_reason_files","risk_assesment_info","risk_assessment_reasons","will_challenge_termination","will_challenge_termination_description","proposed_termination_date_info","proposed_termination_date"],"x-rmt-meta":{jsfOldVersion:!0}}}};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-SYZIGZ2F.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/flows/Termination/json-schemas/terminationDetails.ts"],"sourcesContent":["import { FILE_TYPES, MAX_FILE_SIZE } from '@/src/lib/uploadConfig';\n\nexport const terminationDetailsSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n {\n if: {\n properties: {\n will_challenge_termination: {\n const: 'yes',\n },\n },\n required: ['will_challenge_termination'],\n },\n then: {\n properties: {\n will_challenge_termination_description: {\n type: 'string',\n },\n },\n required: ['will_challenge_termination_description'],\n },\n else: {\n properties: {\n will_challenge_termination_description: false,\n },\n },\n },\n ],\n properties: {\n termination_reason: {\n title: 'Termination reason',\n description:\n 'Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.',\n type: 'string',\n oneOf: [\n {\n const: 'gross_misconduct',\n title: 'Gross misconduct',\n },\n {\n const: 'performance',\n title: 'Performance',\n },\n {\n const: 'workforce_reduction',\n title: 'Workforce Reduction',\n },\n {\n const: 'values',\n title: 'Values',\n },\n {\n const: 'compliance_issue',\n title: 'Compliance issue',\n },\n {\n const: 'incapacity_to_perform_inherent_duties',\n title: 'Incapacity To perform inherent duties',\n },\n {\n const: 'mutual_agreement',\n title: 'Mutual agreement',\n },\n {\n const: 'cancellation_before_start_date',\n title: 'Decision to cancel hiring before the employee starts',\n },\n {\n const: 'job_abandonment',\n title: 'Job abandonment',\n },\n {\n const: 'dissatisfaction_with_remote_service',\n title: 'Dissatisfaction with EOR service',\n },\n {\n const: 'end_of_fixed_term_contract_compliance_issue',\n title: 'End of fixed-term contract',\n },\n {\n const: 'other',\n title: 'Other',\n },\n ],\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n reason_description: {\n description: '',\n maxLength: 1000,\n title: 'Termination reason details',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n additional_comments: {\n description: '',\n maxLength: 1000,\n title: 'Additional details regarding this termination process.',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n termination_reason_files: {\n description:\n 'Please upload any supporting documents regarding the termination reason.',\n title: 'Termination reason files',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: FILE_TYPES.document,\n multiple: true,\n maxSize: MAX_FILE_SIZE, // maxFileSize doesn't seem to work for some reason, found that this was fixed in @remoteoss/json-schema-form v1\n },\n },\n risk_assesment_info: {\n description: '',\n title: 'Risk assessment info',\n type: 'null',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n risk_assessment_reasons: {\n description: '',\n title: 'This employee is...',\n type: 'array',\n items: {\n anyOf: [\n {\n const: 'sick_leave',\n title: 'Currently on or recently returned from sick leave',\n },\n {\n const: 'family_leave',\n title:\n 'Currently on or recently returned from maternity, paternity, or other family leave',\n },\n {\n const: 'pregnant_or_breastfeeding',\n title: 'Pregnant or breastfeeding',\n },\n {\n const: 'requested_medical_or_family_leave',\n title: 'Requested medical or family leave',\n },\n {\n const: 'disabled_or_health_condition',\n title: 'Disabled or has a health condition',\n },\n {\n const: 'member_of_union_or_works_council',\n title: 'A member of a union or works council',\n },\n {\n const: 'caring_responsibilities',\n title: 'Caring responsibilities',\n },\n {\n const: 'reported_concerns_with_workplace',\n title:\n 'Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions',\n },\n {\n const: 'none_of_these',\n title:\n 'To the best of my knowledge, I am not aware of any of these',\n },\n ],\n },\n 'x-jsf-presentation': {\n inputType: 'checkbox',\n direction: 'column',\n },\n },\n will_challenge_termination: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title:\n 'Do you consider it is likely that the employee will challenge their termination?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n will_challenge_termination_description: {\n description: '',\n maxLength: 1000,\n title:\n 'Please explain how the employee will challenge their termination',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n proposed_termination_date_info: {\n description: '',\n title: 'Proposed termination date info',\n type: 'null',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n proposed_termination_date: {\n description:\n 'Please note that we cannot commit to a termination date until we conduct a full review of the information you submit.',\n format: 'date',\n maxLength: 255,\n title: 'Proposed termination date',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'date',\n },\n },\n },\n required: [\n 'termination_reason',\n 'reason_description',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'proposed_termination_date',\n ],\n type: 'object',\n 'x-jsf-order': [\n 'termination_reason',\n 'reason_description',\n 'additional_comments',\n 'termination_reason_files',\n 'risk_assesment_info',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'will_challenge_termination_description',\n 'proposed_termination_date_info',\n 'proposed_termination_date',\n ],\n 'x-rmt-meta': {\n jsfVersion: '1',\n },\n },\n },\n};\n"],"mappings":"wCAEO,IAAMA,EAA2B,CACtC,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CACL,CACE,GAAI,CACF,WAAY,CACV,2BAA4B,CAC1B,MAAO,KACT,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,CACtC,KAAM,QACR,CACF,EACA,SAAU,CAAC,wCAAwC,CACrD,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,EAC1C,CACF,CACF,CACF,EACA,WAAY,CACV,mBAAoB,CAClB,MAAO,qBACP,YACE,oGACF,KAAM,SACN,MAAO,CACL,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,cACP,MAAO,aACT,EACA,CACE,MAAO,sBACP,MAAO,qBACT,EACA,CACE,MAAO,SACP,MAAO,QACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,wCACP,MAAO,uCACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,iCACP,MAAO,sDACT,EACA,CACE,MAAO,kBACP,MAAO,iBACT,EACA,CACE,MAAO,sCACP,MAAO,kCACT,EACA,CACE,MAAO,8CACP,MAAO,4BACT,EACA,CACE,MAAO,QACP,MAAO,OACT,CACF,EACA,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,mBAAoB,CAClB,YAAa,GACb,UAAW,IACX,MAAO,6BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,oBAAqB,CACnB,YAAa,GACb,UAAW,IACX,MAAO,yDACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,yBAA0B,CACxB,YACE,2EACF,MAAO,2BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,OACX,OAAQC,EAAW,SACnB,SAAU,GACV,QAAS,QACX,CACF,EACA,oBAAqB,CACnB,YAAa,GACb,MAAO,uBACP,KAAM,OACN,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,wBAAyB,CACvB,YAAa,GACb,MAAO,sBACP,KAAM,QACN,MAAO,CACL,MAAO,CACL,CACE,MAAO,aACP,MAAO,mDACT,EACA,CACE,MAAO,eACP,MACE,oFACJ,EACA,CACE,MAAO,4BACP,MAAO,2BACT,EACA,CACE,MAAO,oCACP,MAAO,mCACT,EACA,CACE,MAAO,+BACP,MAAO,oCACT,EACA,CACE,MAAO,mCACP,MAAO,sCACT,EACA,CACE,MAAO,0BACP,MAAO,yBACT,EACA,CACE,MAAO,mCACP,MACE,2LACJ,EACA,CACE,MAAO,gBACP,MACE,6DACJ,CACF,CACF,EACA,qBAAsB,CACpB,UAAW,WACX,UAAW,QACb,CACF,EACA,2BAA4B,CAC1B,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MACE,mFACF,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,uCAAwC,CACtC,YAAa,GACb,UAAW,IACX,MACE,mEACF,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,+BAAgC,CAC9B,YAAa,GACb,MAAO,iCACP,KAAM,OACN,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,0BAA2B,CACzB,YACE,wHACF,OAAQ,OACR,UAAW,IACX,MAAO,4BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,CACF,EACA,SAAU,CACR,qBACA,qBACA,0BACA,6BACA,2BACF,EACA,KAAM,SACN,cAAe,CACb,qBACA,qBACA,sBACA,2BACA,sBACA,0BACA,6BACA,yCACA,iCACA,2BACF,EACA,aAAc,CACZ,WAAY,GACd,CACF,CACF,CACF","names":["terminationDetailsSchema","FILE_TYPES"]}
|
|
1
|
+
{"version":3,"sources":["../src/flows/Termination/json-schemas/terminationDetails.ts"],"sourcesContent":["import { FILE_TYPES, MAX_FILE_SIZE } from '@/src/lib/uploadConfig';\n\nexport const terminationDetailsSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n {\n if: {\n properties: {\n will_challenge_termination: {\n const: 'yes',\n },\n },\n required: ['will_challenge_termination'],\n },\n then: {\n properties: {\n will_challenge_termination_description: {\n type: 'string',\n },\n },\n required: ['will_challenge_termination_description'],\n },\n else: {\n properties: {\n will_challenge_termination_description: false,\n },\n },\n },\n ],\n properties: {\n termination_reason: {\n title: 'Termination reason',\n description:\n 'Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.',\n type: 'string',\n oneOf: [\n {\n const: 'gross_misconduct',\n title: 'Gross misconduct',\n },\n {\n const: 'performance',\n title: 'Performance',\n },\n {\n const: 'workforce_reduction',\n title: 'Workforce Reduction',\n },\n {\n const: 'values',\n title: 'Values',\n },\n {\n const: 'compliance_issue',\n title: 'Compliance issue',\n },\n {\n const: 'incapacity_to_perform_inherent_duties',\n title: 'Incapacity To perform inherent duties',\n },\n {\n const: 'mutual_agreement',\n title: 'Mutual agreement',\n },\n {\n const: 'cancellation_before_start_date',\n title: 'Decision to cancel hiring before the employee starts',\n },\n {\n const: 'job_abandonment',\n title: 'Job abandonment',\n },\n {\n const: 'dissatisfaction_with_remote_service',\n title: 'Dissatisfaction with EOR service',\n },\n {\n const: 'end_of_fixed_term_contract_compliance_issue',\n title: 'End of fixed-term contract',\n },\n {\n const: 'other',\n title: 'Other',\n },\n ],\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n reason_description: {\n description: '',\n maxLength: 1000,\n title: 'Termination reason details',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n additional_comments: {\n description: '',\n maxLength: 1000,\n title: 'Additional details regarding this termination process.',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n termination_reason_files: {\n description:\n 'Please upload any supporting documents regarding the termination reason.',\n title: 'Termination reason files',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: FILE_TYPES.document,\n multiple: true,\n maxSize: MAX_FILE_SIZE, // maxFileSize doesn't seem to work for some reason, found that this was fixed in @remoteoss/json-schema-form v1\n },\n },\n risk_assesment_info: {\n description: '',\n title: 'Risk assessment info',\n type: 'null',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n risk_assessment_reasons: {\n description: '',\n title: 'This employee is...',\n type: 'array',\n items: {\n anyOf: [\n {\n const: 'sick_leave',\n title: 'Currently on or recently returned from sick leave',\n },\n {\n const: 'family_leave',\n title:\n 'Currently on or recently returned from maternity, paternity, or other family leave',\n },\n {\n const: 'pregnant_or_breastfeeding',\n title: 'Pregnant or breastfeeding',\n },\n {\n const: 'requested_medical_or_family_leave',\n title: 'Requested medical or family leave',\n },\n {\n const: 'disabled_or_health_condition',\n title: 'Disabled or has a health condition',\n },\n {\n const: 'member_of_union_or_works_council',\n title: 'A member of a union or works council',\n },\n {\n const: 'caring_responsibilities',\n title: 'Caring responsibilities',\n },\n {\n const: 'reported_concerns_with_workplace',\n title:\n 'Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions',\n },\n {\n const: 'none_of_these',\n title:\n 'To the best of my knowledge, I am not aware of any of these',\n },\n ],\n },\n 'x-jsf-presentation': {\n inputType: 'checkbox',\n direction: 'column',\n },\n },\n will_challenge_termination: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title:\n 'Do you consider it is likely that the employee will challenge their termination?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n will_challenge_termination_description: {\n description: '',\n maxLength: 1000,\n title:\n 'Please explain how the employee will challenge their termination',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n proposed_termination_date_info: {\n description: '',\n title: 'Proposed termination date info',\n type: 'null',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n proposed_termination_date: {\n description:\n 'Please note that we cannot commit to a termination date until we conduct a full review of the information you submit.',\n format: 'date',\n maxLength: 255,\n title: 'Proposed termination date',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'date',\n },\n },\n },\n required: [\n 'termination_reason',\n 'reason_description',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'proposed_termination_date',\n ],\n type: 'object',\n 'x-jsf-order': [\n 'termination_reason',\n 'reason_description',\n 'additional_comments',\n 'termination_reason_files',\n 'risk_assesment_info',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'will_challenge_termination_description',\n 'proposed_termination_date_info',\n 'proposed_termination_date',\n ],\n 'x-rmt-meta': {\n jsfOldVersion: true,\n },\n },\n },\n};\n"],"mappings":"wCAEO,IAAMA,EAA2B,CACtC,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CACL,CACE,GAAI,CACF,WAAY,CACV,2BAA4B,CAC1B,MAAO,KACT,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,CACtC,KAAM,QACR,CACF,EACA,SAAU,CAAC,wCAAwC,CACrD,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,EAC1C,CACF,CACF,CACF,EACA,WAAY,CACV,mBAAoB,CAClB,MAAO,qBACP,YACE,oGACF,KAAM,SACN,MAAO,CACL,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,cACP,MAAO,aACT,EACA,CACE,MAAO,sBACP,MAAO,qBACT,EACA,CACE,MAAO,SACP,MAAO,QACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,wCACP,MAAO,uCACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,iCACP,MAAO,sDACT,EACA,CACE,MAAO,kBACP,MAAO,iBACT,EACA,CACE,MAAO,sCACP,MAAO,kCACT,EACA,CACE,MAAO,8CACP,MAAO,4BACT,EACA,CACE,MAAO,QACP,MAAO,OACT,CACF,EACA,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,mBAAoB,CAClB,YAAa,GACb,UAAW,IACX,MAAO,6BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,oBAAqB,CACnB,YAAa,GACb,UAAW,IACX,MAAO,yDACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,yBAA0B,CACxB,YACE,2EACF,MAAO,2BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,OACX,OAAQC,EAAW,SACnB,SAAU,GACV,QAAS,QACX,CACF,EACA,oBAAqB,CACnB,YAAa,GACb,MAAO,uBACP,KAAM,OACN,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,wBAAyB,CACvB,YAAa,GACb,MAAO,sBACP,KAAM,QACN,MAAO,CACL,MAAO,CACL,CACE,MAAO,aACP,MAAO,mDACT,EACA,CACE,MAAO,eACP,MACE,oFACJ,EACA,CACE,MAAO,4BACP,MAAO,2BACT,EACA,CACE,MAAO,oCACP,MAAO,mCACT,EACA,CACE,MAAO,+BACP,MAAO,oCACT,EACA,CACE,MAAO,mCACP,MAAO,sCACT,EACA,CACE,MAAO,0BACP,MAAO,yBACT,EACA,CACE,MAAO,mCACP,MACE,2LACJ,EACA,CACE,MAAO,gBACP,MACE,6DACJ,CACF,CACF,EACA,qBAAsB,CACpB,UAAW,WACX,UAAW,QACb,CACF,EACA,2BAA4B,CAC1B,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MACE,mFACF,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,uCAAwC,CACtC,YAAa,GACb,UAAW,IACX,MACE,mEACF,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,+BAAgC,CAC9B,YAAa,GACb,MAAO,iCACP,KAAM,OACN,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,0BAA2B,CACzB,YACE,wHACF,OAAQ,OACR,UAAW,IACX,MAAO,4BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,CACF,EACA,SAAU,CACR,qBACA,qBACA,0BACA,6BACA,2BACF,EACA,KAAM,SACN,cAAe,CACb,qBACA,qBACA,sBACA,2BACA,sBACA,0BACA,6BACA,yCACA,iCACA,2BACF,EACA,aAAc,CACZ,cAAe,EACjB,CACF,CACF,CACF","names":["terminationDetailsSchema","FILE_TYPES"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g as s}from"./chunk-NQSJBVFL.js";import{a as l}from"./chunk-P37U34EQ.js";import{Fragment as n,jsx as e,jsxs as o}from"react/jsx-runtime";function y({segments:a}){return e(n,{children:a.map((m,r)=>m.bold?e("strong",{children:m.text},r):m.text)})}l(y,"DailyScheduleSummarySegments");function i({days:a,subtractBreaksFromWorkHours:m}){if(a.length===0)return e("p",{className:"text-sm text-gray-500 RemoteFlows__DailySchedule__Summary__Empty",children:"No work days selected yet."});let{workHoursLines:r,breakLines:u,totalWeeklyHours:S}=s(a,m);return o("div",{className:"flex flex-col gap-1 text-sm text-gray-500 RemoteFlows__DailySchedule__Summary__Lines",children:[r.map(t=>e("p",{children:e(y,{segments:t.segments})},t.key)),u.map(t=>e("p",{children:e(y,{segments:t.segments})},t.key)),o("p",{className:"RemoteFlows__DailySchedule__Summary__Total",children:["Total of ",o("strong",{children:[S," hours"]})," per week"]})]})}l(i,"DailyScheduleSummaryBody");export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TUIEY7ZM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/Onboarding/components/DailySchedule/DailyScheduleSummaryBody.tsx"],"sourcesContent":["import {\n DailyScheduleSummaryDay,\n DailyScheduleSummarySegment,\n} from '@/src/flows/Onboarding/components/DailySchedule/types';\nimport { buildDailyScheduleSummary } from '@/src/flows/Onboarding/components/DailySchedule/utils';\n\nfunction DailyScheduleSummarySegments({\n segments,\n}: {\n segments: DailyScheduleSummarySegment[];\n}) {\n return (\n <>\n {segments.map((segment, index) =>\n segment.bold ? (\n <strong key={index}>{segment.text}</strong>\n ) : (\n segment.text\n ),\n )}\n </>\n );\n}\n\nexport function DailyScheduleSummaryBody({\n days,\n subtractBreaksFromWorkHours,\n}: {\n days: DailyScheduleSummaryDay[];\n subtractBreaksFromWorkHours: boolean;\n}) {\n if (days.length === 0) {\n return (\n <p className='text-sm text-gray-500 RemoteFlows__DailySchedule__Summary__Empty'>\n No work days selected yet.\n </p>\n );\n }\n\n const { workHoursLines, breakLines, totalWeeklyHours } =\n buildDailyScheduleSummary(days, subtractBreaksFromWorkHours);\n\n return (\n <div className='flex flex-col gap-1 text-sm text-gray-500 RemoteFlows__DailySchedule__Summary__Lines'>\n {workHoursLines.map((line) => (\n <p key={line.key}>\n <DailyScheduleSummarySegments segments={line.segments} />\n </p>\n ))}\n {breakLines.map((line) => (\n <p key={line.key}>\n <DailyScheduleSummarySegments segments={line.segments} />\n </p>\n ))}\n <p className='RemoteFlows__DailySchedule__Summary__Total'>\n Total of <strong>{totalWeeklyHours} hours</strong> per week\n </p>\n </div>\n );\n}\n"],"mappings":"gFAYI,mBAAAA,EAGM,OAAAC,EAwCO,QAAAC,MA3Cb,oBANJ,SAASC,EAA6B,CACpC,SAAAC,CACF,EAEG,CACD,OACEH,EAAAD,EAAA,CACG,SAAAI,EAAS,IAAI,CAACC,EAASC,IACtBD,EAAQ,KACNJ,EAAC,UAAoB,SAAAI,EAAQ,MAAhBC,CAAqB,EAElCD,EAAQ,IAEZ,EACF,CAEJ,CAhBSE,EAAAJ,EAAA,gCAkBF,SAASK,EAAyB,CACvC,KAAAC,EACA,4BAAAC,CACF,EAGG,CACD,GAAID,EAAK,SAAW,EAClB,OACER,EAAC,KAAE,UAAU,mEAAmE,sCAEhF,EAIJ,GAAM,CAAE,eAAAU,EAAgB,WAAAC,EAAY,iBAAAC,CAAiB,EACnDC,EAA0BL,EAAMC,CAA2B,EAE7D,OACER,EAAC,OAAI,UAAU,uFACZ,UAAAS,EAAe,IAAKI,GACnBd,EAAC,KACC,SAAAA,EAACE,EAAA,CAA6B,SAAUY,EAAK,SAAU,GADjDA,EAAK,GAEb,CACD,EACAH,EAAW,IAAKG,GACfd,EAAC,KACC,SAAAA,EAACE,EAAA,CAA6B,SAAUY,EAAK,SAAU,GADjDA,EAAK,GAEb,CACD,EACDb,EAAC,KAAE,UAAU,6CAA6C,sBAC/CA,EAAC,UAAQ,UAAAW,EAAiB,UAAM,EAAS,aACpD,GACF,CAEJ,CAnCgBN,EAAAC,EAAA","names":["Fragment","jsx","jsxs","DailyScheduleSummarySegments","segments","segment","index","__name","DailyScheduleSummaryBody","days","subtractBreaksFromWorkHours","workHoursLines","breakLines","totalWeeklyHours","buildDailyScheduleSummary","line"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as B,h as f,i as h}from"./chunk-U7JAGEOV.js";import{a as z}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{g as B,h as f,i as h}from"./chunk-U7JAGEOV.js";import{a as z}from"./chunk-EP3BNRH3.js";import{a as M}from"./chunk-3HMBTPH7.js";import{a as p}from"./chunk-JO5D2522.js";import{D as P,E as v,K as V,L as y,O as R,R as j,U as x,W as D,ca as A,g as b,ha as I,i as E,j as F,m as _,n as q,q as O,r as C,ta as k,x as w,xa as K,y as S,za as Q}from"./chunk-DAUDKN32.js";import{e as s}from"./chunk-H2O4CVKF.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as l,useQuery as u}from"@tanstack/react-query";import{useMemo as U}from"react";var se=t(e=>{let{client:r}=s();return u({queryKey:["company",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let n=await v({client:r,headers:{Authorization:""},path:{company_id:e}});if(n.error||!n.data)throw new Error("Failed to fetch employment data");return n},"queryFn"),select:t(({data:n})=>n.data.company,"select")})},"useCompany"),ie=t(e=>{let{client:r}=s();return u({queryKey:["benefit-offers",e],retry:!1,enabled:!!e,queryFn:t(async()=>O({client:r,path:{employment_id:e}}).then(n=>{if(n.error||!n.data)throw new Error("Failed to fetch benefit offers data");return n}),"queryFn"),select:t(({data:n})=>n?.data?.reduce((o,a)=>({...o,[a.benefit_group.slug]:{value:a.benefit_tier?.slug??"no",...a.benefit_group?.filter?.slug?{filter:a.benefit_group?.filter?.slug}:{}}}),{}),"select")})},"useBenefitOffers"),me=t((e,r)=>{let{client:n}=s();return u({queryKey:["employment-engagement-agreement-details",e],retry:!1,enabled:r?.enabled??!!e,queryFn:t(async()=>_({client:n,headers:{Authorization:""},path:{employment_id:e}}).then(o=>{if(o.error||!o.data)throw new Error("Failed to fetch engagement agreement details");return o}),"queryFn"),select:t(({data:o})=>o?.data?.details,"select")})},"useEmploymentEngagementAgreementDetails"),le=t(()=>{let{client:e}=s();return l({mutationFn:t(r=>I({client:e,headers:{Authorization:""},path:r}),"mutationFn")})},"useEmploymentInvite"),ue=t(()=>{let{client:e}=s();return l({mutationFn:t(r=>P({client:e,body:r}),"mutationFn")})},"useCreateReserveInvoice"),ce=t(({countryCode:e,form:r,fieldValues:n,options:o,query:a={},jsonSchemaVersion:i})=>{let{client:m}=s(),g=i?{json_schema_version:i}:{};return u({queryKey:["onboarding-json-schema-form",e,r,i],retry:!1,queryFn:t(async()=>{let d=await y({client:m,headers:{Authorization:""},path:{country_code:e,form:r},query:{skip_benefits:!0,...a,...g}});if(d.error||!d.data)throw new Error("Failed to fetch onboarding schema");return d},"queryFn"),enabled:o?.queryOptions?.enabled,select:t(({data:d})=>{let c=d?.data||{};return p(c,n,o)},"select")})},"useJSONSchemaForm"),de=t(({countryCode:e,options:r,query:n={},jsonSchemaVersion:o})=>{let{client:a}=s(),i=o?{json_schema_version:o}:{},{data:m,...g}=u({queryKey:["onboarding-contract-details-schema",e,o],retry:!1,queryFn:t(async()=>{let c=await y({client:a,headers:{Authorization:""},path:{country_code:e,form:"contract_details"},query:{skip_benefits:!0,...n,...i}});if(c.error||!c.data)throw new Error("Failed to fetch onboarding schema");return c},"queryFn"),enabled:r?.queryOptions?.enabled});return{data:U(()=>{let c=m?.data.data;return c?p(c,{},r):null},[r,m?.data]),isLoading:g.isLoading}},"useContractDetailsSchema"),pe=t((e,r,n)=>{let{client:o}=s(),a={json_schema_version:h(n)};return u({queryKey:["benefit-offers-schema",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let i=await j({client:o,path:{employment_id:e},query:a});if(i.error||!i.data)throw new Error("Failed to fetch benefit offers schema");return i},"queryFn"),select:t(({data:i})=>{let m=i?.data?.schema||{};return p(m,r,{jsfModify:n?.jsfModify?.benefits})},"select")})},"useBenefitOffersSchema"),ye=t(e=>{let{client:r}=s(),n={json_schema_version:f(e)};return l({mutationFn:t(o=>E({client:r,headers:{Authorization:""},body:o,query:{...n}}),"mutationFn")})},"useCreateEmployment"),ge=t((e,r)=>{let{client:n}=s(),o={employment_basic_information_json_schema_version:f(r),contract_details_json_schema_version:B(r,e)||1};return l({mutationFn:t(({employmentId:a,...i})=>x({client:n,headers:{Authorization:""},body:i,path:{employment_id:a},query:{skip_benefits:!0,...o}}),"mutationFn")})},"useUpdateEmployment"),fe=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,...n})=>q({client:e,headers:{Authorization:""},body:n,path:{employment_id:r}}),"mutationFn")})},"useUpdateEmploymentEngagementAgreementDetails"),he=t(e=>{let{client:r}=s();return l({mutationFn:t(({employmentId:n,...o})=>{let a={json_schema_version:h(e)};return C({client:r,body:o,path:{employment_id:n},query:a})},"mutationFn")})},"useUpdateBenefitsOffers"),be=t(e=>{let{client:r}=s(),{data:n,isLoading:o}=u({...M(r,"onboarding-countries"),select:t(i=>i.data?.data?.filter(m=>m.eor_onboarding).map(m=>({label:m.name,value:m.code,employment_agreement_preview_available:m.employment_agreement_preview_available}))||[],"select"),enabled:e?.queryOptions?.enabled}),a=p(z.data.schema,{},e);if(n){let i=a.fields.find(m=>m.name==="country");i&&(i.options=n)}return{isLoading:o,selectCountryForm:a,countries:n}},"useCountriesSchemaField"),Ee=t(({type:e="spread"})=>{let{client:r}=s();return l({mutationFn:t(n=>(e==="no_spread"?b:A)({client:r,body:n}),"mutationFn")})},"useConvertCurrency"),Fe=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,...n})=>D({client:e,path:{employment_id:r},body:n}),"mutationFn")})},"useUpsertContractEligibility"),_e=t((e,r,n=!0)=>{let{client:o}=s();return u({queryKey:["employment-onboarding-reserves-status",e,r],retry:!1,enabled:n&&!!e&&!!r,queryFn:t(async()=>{let a=await F({client:o,headers:{Authorization:""},path:{company_id:e,employment_id:r}});if(a.error||!a.data)throw new Error("Failed to fetch employment onboarding reserves status");return a},"queryFn"),select:t(({data:a})=>a?.data?.status,"select")})},"useEmploymentOnboardingReservesStatus"),qe=t((e,r,n)=>{let{client:o}=s(),a=n?.jsonSchemaVersion?{json_schema_version:n.jsonSchemaVersion}:{};return u({queryKey:["engagement-agreement-details",e,n?.jsonSchemaVersion],retry:!1,enabled:n?.queryOptions?.enabled??!!e,queryFn:t(async()=>{let i=await y({client:o,headers:{Authorization:""},path:{country_code:e,form:"engagement_agreement_details"},query:a});if(i.error||!i.data)throw new Error("Failed to fetch engagement agreement details");return i},"queryFn"),select:t(({data:i})=>{let m=i?.data||{};return p(m,r,{jsfModify:n?.jsfModify?.engagement_agreement_details})},"select")})},"useEngagementAgreementDetailsSchema"),Oe=t((e,r)=>{let{client:n}=s();return u({queryKey:["pre-onboarding-requirements",e],queryFn:t(async()=>{let o=await Q({client:n,path:{employment_id:e}});if(o.error||!o.data)throw new Error("Failed to fetch pre-onboarding requirements");return o},"queryFn"),enabled:r?.queryOptions?.enabled??!0,select:t(o=>o.data?.data,"select")})},"useGetPreOnboardingRequirements"),Ce=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,body:n})=>V({client:e,path:{employment_id:r,requirement_slug:n.requirement_slug},query:{skip_initial_signature_email:!0}}),"mutationFn")})},"useCreatePreOnboardingDocument"),we=t((e,r,n)=>{let{client:o}=s();return u({queryKey:["pre-onboarding-document",e,r],queryFn:t(async()=>{let a=await R({client:o,path:{employment_id:e,id:r}});if(a.error||!a.data)throw new Error("Failed to fetch pre-onboarding document");return a},"queryFn"),enabled:(n?.queryOptions?.enabled??!0)&&!!r,select:t(a=>a.data?.data,"select")})},"useGetPreOnboardingDocument"),Se=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,documentId:n,signature:o})=>k({client:e,path:{employment_id:r,id:n},body:{signature:o}}),"mutationFn")})},"useSignPreOnboardingDocument"),Pe=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,requirementSlug:n})=>S({client:e,path:{employment_id:r,requirement_slug:n}}),"mutationFn")})},"useAcknowledgePreOnboardingRequirement"),ve=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,requirementSlug:n})=>w({client:e,path:{employment_id:r,requirement_slug:n}}),"mutationFn")})},"useRemoveAcknowledgePreOnboardingRequirement"),Ve=t((e,r)=>{let{client:n}=s();return u({queryKey:["employment-agreement-preview",e],retry:!1,enabled:(r?.queryOptions?.enabled??!0)&&!!e,queryFn:t(async()=>{let o=await K({client:n,path:{employment_id:e}});if(o.error||!o.data)throw new Error("Failed to fetch employment agreement preview");return o},"queryFn"),select:t(o=>o.data?.data.employment_agreement,"select")})},"useEmploymentAgreementPreview");export{se as a,ie as b,me as c,le as d,ue as e,ce as f,de as g,pe as h,ye as i,ge as j,fe as k,he as l,be as m,Ee as n,Fe as o,_e as p,qe as q,Oe as r,Ce as s,we as t,Se as u,Pe as v,ve as w,Ve as x};
|
|
2
|
+
//# sourceMappingURL=chunk-UBWNTSWS.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as d}from"./chunk-IK2LTVOV.js";import{a as n}from"./chunk-F37FQXEZ.js";import{d as c}from"./chunk-H6XROFQT.js";import{a as I}from"./chunk-AFTFDGSD.js";import{a as r}from"./chunk-P37U34EQ.js";import{useEffect as p,useId as v}from"react";import{jsx as h}from"react/jsx-runtime";var V=r(({employmentId:u,jsfModify:l,defaultValues:s,render:a})=>{let S=v(),e=d({employmentId:u,jsfModify:l}),o=I({handleValidation:e.handleValidation,checkFieldUpdates:e.checkFieldUpdates,defaultValues:{currency:"",periodicity:"",start_date:"",number:"",note:"",...s}}),{isContractorOfRecord:i}=e;return p(()=>{if(!i)return;let t=o.getValues("periodicity");t&&t!==c&&o.setValue("periodicity","")},[i,o]),h(n.Provider,{value:{form:o,formId:S,invoiceScheduleBag:e},children:a(e)})},"InvoiceScheduleFlow");export{V as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UETBVQT5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/InvoiceSchedule/InvoiceScheduleFlow.tsx"],"sourcesContent":["import React, { useEffect, useId } from 'react';\nimport { useJSONSchemaForm } from '@/src/components/form/useJSONSchemaForm';\nimport { ONE_TIME_PERIODICITY } from '@/src/common/invoice-schedules';\nimport { InvoiceScheduleContext } from '@/src/flows/InvoiceSchedule/context';\nimport { useInvoiceSchedule } from '@/src/flows/InvoiceSchedule/hooks';\nimport { UseInvoiceScheduleOptions } from '@/src/flows/InvoiceSchedule/types';\n\nexport type InvoiceScheduleFlowProps = {\n /**\n * The contractor to create the schedule for. Sourcing it is yours — a picker of your own, a\n * route param, the row the user clicked; the flow only ever acts on this one contractor.\n */\n employmentId: string;\n /**\n * Modify the generated JSON-schema form fields.\n */\n jsfModify?: UseInvoiceScheduleOptions['jsfModify'];\n /**\n * Default values for the form fields.\n */\n defaultValues?: Record<string, unknown>;\n render: (\n invoiceScheduleBag: ReturnType<typeof useInvoiceSchedule>,\n ) => React.ReactNode;\n};\n\n/**\n * Standalone screen for creating a contractor invoice schedule, mirroring the platform's\n * single-screen modal. Mount it anywhere — it does not depend on the onboarding flow.\n */\nexport const InvoiceScheduleFlow = ({\n employmentId,\n jsfModify,\n defaultValues,\n render,\n}: InvoiceScheduleFlowProps) => {\n const formId = useId();\n const invoiceScheduleBag = useInvoiceSchedule({\n employmentId,\n jsfModify,\n });\n\n // `useJSONSchemaForm` subscribes to form changes and feeds them back through\n // `checkFieldUpdates`, which is what makes the schema's conditionals — the item-row\n // reveal and the semi-monthly day fields — re-evaluate as the form is filled in.\n const form = useJSONSchemaForm({\n handleValidation: invoiceScheduleBag.handleValidation,\n checkFieldUpdates: invoiceScheduleBag.checkFieldUpdates,\n defaultValues: {\n currency: '',\n periodicity: '',\n start_date: '',\n number: '',\n note: '',\n ...defaultValues,\n },\n });\n\n // Contractor of Record is only known once the employment request resolves, so the form\n // offers the recurring frequencies until then and a frequency chosen in that window\n // outlives the schema shrinking to one-off. Validation does reject it — the field's `oneOf`\n // no longer holds it — but the select renders blank in the meantime and the user only finds\n // out on submit, so drop it as soon as the restriction is known.\n const { isContractorOfRecord } = invoiceScheduleBag;\n\n useEffect(() => {\n if (!isContractorOfRecord) return;\n\n const periodicity = form.getValues('periodicity');\n if (periodicity && periodicity !== ONE_TIME_PERIODICITY) {\n form.setValue('periodicity', '');\n }\n }, [isContractorOfRecord, form]);\n\n return (\n <InvoiceScheduleContext.Provider\n value={{\n form,\n formId,\n invoiceScheduleBag,\n }}\n >\n {render(invoiceScheduleBag)}\n </InvoiceScheduleContext.Provider>\n );\n};\n"],"mappings":"wMAAA,OAAgB,aAAAA,EAAW,SAAAC,MAAa,QA2EpC,cAAAC,MAAA,oBA7CG,IAAMC,EAAsBC,EAAA,CAAC,CAClC,aAAAC,EACA,UAAAC,EACA,cAAAC,EACA,OAAAC,CACF,IAAgC,CAC9B,IAAMC,EAASC,EAAM,EACfC,EAAqBC,EAAmB,CAC5C,aAAAP,EACA,UAAAC,CACF,CAAC,EAKKO,EAAOC,EAAkB,CAC7B,iBAAkBH,EAAmB,iBACrC,kBAAmBA,EAAmB,kBACtC,cAAe,CACb,SAAU,GACV,YAAa,GACb,WAAY,GACZ,OAAQ,GACR,KAAM,GACN,GAAGJ,CACL,CACF,CAAC,EAOK,CAAE,qBAAAQ,CAAqB,EAAIJ,EAEjC,OAAAK,EAAU,IAAM,CACd,GAAI,CAACD,EAAsB,OAE3B,IAAME,EAAcJ,EAAK,UAAU,aAAa,EAC5CI,GAAeA,IAAgBC,GACjCL,EAAK,SAAS,cAAe,EAAE,CAEnC,EAAG,CAACE,EAAsBF,CAAI,CAAC,EAG7BX,EAACiB,EAAuB,SAAvB,CACC,MAAO,CACL,KAAAN,EACA,OAAAJ,EACA,mBAAAE,CACF,EAEC,SAAAH,EAAOG,CAAkB,EAC5B,CAEJ,EAvDmC","names":["useEffect","useId","jsx","InvoiceScheduleFlow","__name","employmentId","jsfModify","defaultValues","render","formId","useId","invoiceScheduleBag","useInvoiceSchedule","form","useJSONSchemaForm","isContractorOfRecord","useEffect","periodicity","ONE_TIME_PERIODICITY","InvoiceScheduleContext"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as R,b as x,c as N,d as A}from"./chunk-OV4ARZIX.js";import{a as T}from"./chunk-ZE3YT3Q6.js";import{a as C}from"./chunk-SWLNTVAX.js";import{b as B}from"./chunk-LKHRHBFP.js";import{a as f}from"./chunk-ED35NFA6.js";import{a as w}from"./chunk-GPWQPJQ7.js";import{n as i,o as n,r as F}from"./chunk-C4HFMTSB.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as G}from"lucide-react";import{useState as P}from"react";import{Fragment as U,jsx as g,jsxs as E}from"react/jsx-runtime";function L({actions:e=[],className:r,label:a,"data-testid":l}){let[_,d]=P(!1);return E("div",{className:i("relative",r),children:[g(B,{"data-testid":l,variant:"ghost","aria-label":a,className:"h-8 w-8 p-0",onClick:()=>d(!_),children:g(G,{className:"h-4 w-4"})}),_&&E(U,{children:[g("div",{className:"fixed inset-0 z-40",onClick:()=>d(!1)}),g("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((c,u)=>g("button",{"data-testid":`${l}-${c.label.toLowerCase().replace(" ","-")}`,className:i("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",c.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{c.onClick(),d(!1)},disabled:c.disabled,children:c.label},u))})]})]})}m(L,"ActionsDropdown");import{ChevronDown as S,Info as $}from"lucide-react";import j from"react-flagpack";import{useState as O}from"react";import{Fragment as b,jsx as o,jsxs as t}from"react/jsx-runtime";var Z={GB:"GB-UKM"},K=m(({title:e,country:r,region:a,annualGrossSalary:l,onDelete:_,onExportPdf:d,onEdit:c})=>{let u=[{label:"Edit",onClick:c},{label:"Export",onClick:d},{label:"Delete",onClick:_}];return t("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[t("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(j,{code:Z[r.alpha_2_code]||r.alpha_2_code})}),t("div",{className:"space-y-1",children:[o("h2",{"data-testid":"estimation-results-header-title",className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),t("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[r.name," ",a?` (${a.name})`:""]}),t("p",{"data-testid":"estimation-results-header-annual-gross-salary",className:"RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]",children:[o("span",{className:"text-[#181818]",children:"Employee annual gross salary:"})," ",l]})]})]}),o(L,{label:"Actions",className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:u})]})},"EstimationResultsHeader"),V=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.",zendeskArticleId:w.employeeOnboardingTimeline}),"getOnboardingTimelineData");function Y({minimumOnboardingDays:e,data:r,className:a}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:t(x,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:t("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),e!=null&&t("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),t(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:r.steps.map(l=>t("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),t("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[r.helpText,r.zendeskArticleId&&o(f,{zendeskId:r.zendeskArticleId,children:"Learn more"})]})]})]})})}m(Y,"OnboardingTimeline");function q({className:e,countryBenefitsUrl:r,countryGuideUrl:a,country:l}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__HiringSection w-full",e),children:t(x,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:t("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:t("div",{className:"flex flex-col gap-1",children:[a&&o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),r&&o("a",{href:r,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(q,"HiringSection");function J({isMultipleCurrency:e,className:r}){return t("div",{className:i("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",r),children:[o("span",{"aria-hidden":!0}),e?t(b,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):t(b,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m(J,"EstimationHeaders");function I({label:e,amounts:r,className:a,children:l}){let[_,d]=O(!0);return t("div",{className:i("RemoteFlows__EstimationResults__Row",a),children:[t("div",{className:"RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center",children:[t("div",{className:"RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2",children:[o("span",{className:i("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>d(!_),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(S,{className:`h-4 w-4 text-muted-foreground transition-transform ${_?"rotate-180":""}`})})]}),Array.isArray(r)?r.map((c,u)=>o("span",{className:i("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:c},u)):t(b,{children:[o("span",{}),o("span",{className:i("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:r})]})]}),_&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(I,"EstimationRow");function Q({item:e,isMultipleCurrency:r,level:a=0}){let[l,_]=O(!1),d=e.children&&e.children.length>0,c=a>0,u=e.isCollapsible||d;return t("li",{className:i("RemoteFlows__BreakdownList__Item pb-3",c&&"pb-1"),children:[t("div",{className:i(r?"RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between":"RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between"),children:[t("div",{className:i("RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2",c&&"pl-3"),children:[!c&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),u?t("button",{onClick:()=>_(!l),className:"RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1",children:[o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),o(S,{className:`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})]}):o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1"),children:e.label}),e.tooltip&&o(T,{content:t(b,{children:[o("span",{dangerouslySetInnerHTML:{__html:F(e.tooltip)}})," ",e.zendeskId&&o(f,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o($,{className:i("RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground",c?"h-3 w-3":"h-4 w-4")})})})]}),r?t(b,{children:[o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employee-amount",className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employer-amount",className:i("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{"data-testid":e.dataSelector,className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),d&&l&&o("div",{className:"mt-1",children:o(k,{items:e.children,isMultipleCurrency:r,level:a+1})})]})}m(Q,"BreakdownListItem");function k({items:e,isMultipleCurrency:r,className:a,level:l}){return o("ul",{className:i("RemoteFlows__BreakdownList list-none",a),children:e.map((_,d)=>o(Q,{item:_,isMultipleCurrency:r,level:l},d))})}m(k,"BreakdownList");var pe=m(({estimation:e,title:r,components:a,onDelete:l,onExportPdf:_,onEdit:d})=>{let c=a?.HiringSection||q,u=a?.OnboardingTimeline||Y,z=a?.Header||K,h=a?.Footer,H=V(),p=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,v=e.employer_currency_costs.monthly_management_fee,D=e.region.code!==e.country.code,M=n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code);return t(C,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(z,{title:r,annualGrossSalary:M,region:D?e.region:void 0,country:e.country,onDelete:l,onExportPdf:_,onEdit:d})}),t("div",{className:"RemoteFlows__Separator",children:[o(J,{isMultipleCurrency:p,className:"mb-3"}),o(I,{label:"Monthly total cost",amounts:p?[n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross monthly salary",regionalAmount:n(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.code),zendeskId:w.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Monthly fee",regionalAmount:n(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})]}),o("div",{className:"RemoteFlows__Separator",children:o(I,{label:"Annual total cost",amounts:p?[n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross annual salary",dataSelector:"annual-gross-salary",regionalAmount:n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.code)},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Annual fee",regionalAmount:n(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:H})}),o(c,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),h&&o(h,{})]})},"EstimationResults");export{pe as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as R,b as x,c as N,d as A}from"./chunk-OV4ARZIX.js";import{a as T}from"./chunk-ZE3YT3Q6.js";import{a as C}from"./chunk-SWLNTVAX.js";import{b as B}from"./chunk-LKHRHBFP.js";import{a as f}from"./chunk-3OHORFIX.js";import{a as w}from"./chunk-GPWQPJQ7.js";import{n as i,o as n,r as F}from"./chunk-C4HFMTSB.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as G}from"lucide-react";import{useState as P}from"react";import{Fragment as U,jsx as g,jsxs as E}from"react/jsx-runtime";function L({actions:e=[],className:r,label:a,"data-testid":l}){let[_,d]=P(!1);return E("div",{className:i("relative",r),children:[g(B,{"data-testid":l,variant:"ghost","aria-label":a,className:"h-8 w-8 p-0",onClick:()=>d(!_),children:g(G,{className:"h-4 w-4"})}),_&&E(U,{children:[g("div",{className:"fixed inset-0 z-40",onClick:()=>d(!1)}),g("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((c,u)=>g("button",{"data-testid":`${l}-${c.label.toLowerCase().replace(" ","-")}`,className:i("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",c.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{c.onClick(),d(!1)},disabled:c.disabled,children:c.label},u))})]})]})}m(L,"ActionsDropdown");import{ChevronDown as S,Info as $}from"lucide-react";import j from"react-flagpack";import{useState as O}from"react";import{Fragment as b,jsx as o,jsxs as t}from"react/jsx-runtime";var Z={GB:"GB-UKM"},K=m(({title:e,country:r,region:a,annualGrossSalary:l,onDelete:_,onExportPdf:d,onEdit:c})=>{let u=[{label:"Edit",onClick:c},{label:"Export",onClick:d},{label:"Delete",onClick:_}];return t("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[t("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(j,{code:Z[r.alpha_2_code]||r.alpha_2_code})}),t("div",{className:"space-y-1",children:[o("h2",{"data-testid":"estimation-results-header-title",className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),t("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[r.name," ",a?` (${a.name})`:""]}),t("p",{"data-testid":"estimation-results-header-annual-gross-salary",className:"RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]",children:[o("span",{className:"text-[#181818]",children:"Employee annual gross salary:"})," ",l]})]})]}),o(L,{label:"Actions",className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:u})]})},"EstimationResultsHeader"),V=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.",zendeskArticleId:w.employeeOnboardingTimeline}),"getOnboardingTimelineData");function Y({minimumOnboardingDays:e,data:r,className:a}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:t(x,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:t("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),e!=null&&t("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),t(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:r.steps.map(l=>t("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),t("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[r.helpText,r.zendeskArticleId&&o(f,{zendeskId:r.zendeskArticleId,children:"Learn more"})]})]})]})})}m(Y,"OnboardingTimeline");function q({className:e,countryBenefitsUrl:r,countryGuideUrl:a,country:l}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__HiringSection w-full",e),children:t(x,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:t("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:t("div",{className:"flex flex-col gap-1",children:[a&&o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),r&&o("a",{href:r,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(q,"HiringSection");function J({isMultipleCurrency:e,className:r}){return t("div",{className:i("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",r),children:[o("span",{"aria-hidden":!0}),e?t(b,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):t(b,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m(J,"EstimationHeaders");function I({label:e,amounts:r,className:a,children:l}){let[_,d]=O(!0);return t("div",{className:i("RemoteFlows__EstimationResults__Row",a),children:[t("div",{className:"RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center",children:[t("div",{className:"RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2",children:[o("span",{className:i("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>d(!_),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(S,{className:`h-4 w-4 text-muted-foreground transition-transform ${_?"rotate-180":""}`})})]}),Array.isArray(r)?r.map((c,u)=>o("span",{className:i("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:c},u)):t(b,{children:[o("span",{}),o("span",{className:i("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:r})]})]}),_&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(I,"EstimationRow");function Q({item:e,isMultipleCurrency:r,level:a=0}){let[l,_]=O(!1),d=e.children&&e.children.length>0,c=a>0,u=e.isCollapsible||d;return t("li",{className:i("RemoteFlows__BreakdownList__Item pb-3",c&&"pb-1"),children:[t("div",{className:i(r?"RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between":"RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between"),children:[t("div",{className:i("RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2",c&&"pl-3"),children:[!c&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),u?t("button",{onClick:()=>_(!l),className:"RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1",children:[o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),o(S,{className:`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})]}):o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1"),children:e.label}),e.tooltip&&o(T,{content:t(b,{children:[o("span",{dangerouslySetInnerHTML:{__html:F(e.tooltip)}})," ",e.zendeskId&&o(f,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o($,{className:i("RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground",c?"h-3 w-3":"h-4 w-4")})})})]}),r?t(b,{children:[o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employee-amount",className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employer-amount",className:i("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{"data-testid":e.dataSelector,className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),d&&l&&o("div",{className:"mt-1",children:o(k,{items:e.children,isMultipleCurrency:r,level:a+1})})]})}m(Q,"BreakdownListItem");function k({items:e,isMultipleCurrency:r,className:a,level:l}){return o("ul",{className:i("RemoteFlows__BreakdownList list-none",a),children:e.map((_,d)=>o(Q,{item:_,isMultipleCurrency:r,level:l},d))})}m(k,"BreakdownList");var pe=m(({estimation:e,title:r,components:a,onDelete:l,onExportPdf:_,onEdit:d})=>{let c=a?.HiringSection||q,u=a?.OnboardingTimeline||Y,z=a?.Header||K,h=a?.Footer,H=V(),p=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,v=e.employer_currency_costs.monthly_management_fee,D=e.region.code!==e.country.code,M=n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code);return t(C,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(z,{title:r,annualGrossSalary:M,region:D?e.region:void 0,country:e.country,onDelete:l,onExportPdf:_,onEdit:d})}),t("div",{className:"RemoteFlows__Separator",children:[o(J,{isMultipleCurrency:p,className:"mb-3"}),o(I,{label:"Monthly total cost",amounts:p?[n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross monthly salary",regionalAmount:n(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.code),zendeskId:w.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Monthly fee",regionalAmount:n(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})]}),o("div",{className:"RemoteFlows__Separator",children:o(I,{label:"Annual total cost",amounts:p?[n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross annual salary",dataSelector:"annual-gross-salary",regionalAmount:n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.code)},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Annual fee",regionalAmount:n(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:H})}),o(c,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),h&&o(h,{})]})},"EstimationResults");export{pe as a};
|
|
2
|
+
//# sourceMappingURL=chunk-URNFXEOZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as _}from"./chunk-SRNXXOUH.js";import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as _}from"./chunk-SRNXXOUH.js";import{a as h}from"./chunk-3HMBTPH7.js";import{a as l}from"./chunk-JO5D2522.js";import{F as p,L as y,fa as f,pa as C}from"./chunk-DAUDKN32.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-UTWBY65S.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-AFTFDGSD.js";import{a as d}from"./chunk-5NN5RWBG.js";import{b as m}from"./chunk-C7KVPEVX.js";import{c as s}from"./chunk-C4HFMTSB.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-UWIUECXU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={data:{version:7,schema:{additionalProperties:!1,allOf:[],properties:{acknowledge_termination_procedure_info:{type:"null",title:"Acknowledge termination procedure info","x-jsf-presentation":{inputType:"hidden"},meta:{ignoreValue:!0}},acknowledge_termination_procedure:{description:"",title:"I agree to the procedures in this form",type:"boolean","x-jsf-presentation":{direction:"column",inputType:"checkbox"}},acknowledge_termination_procedure_fees_info:{type:"null",title:"Acknowledge termination procedure fees info","x-jsf-presentation":{inputType:"hidden"}}},required:["acknowledge_termination_procedure"],type:"object","x-jsf-order":["acknowledge_termination_procedure_info","acknowledge_termination_procedure","acknowledge_termination_procedure_fees_info"],"x-rmt-meta":{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
var e={data:{version:7,schema:{additionalProperties:!1,allOf:[],properties:{acknowledge_termination_procedure_info:{type:"null",title:"Acknowledge termination procedure info","x-jsf-presentation":{inputType:"hidden"},meta:{ignoreValue:!0}},acknowledge_termination_procedure:{description:"",title:"I agree to the procedures in this form",type:"boolean","x-jsf-presentation":{direction:"column",inputType:"checkbox"}},acknowledge_termination_procedure_fees_info:{type:"null",title:"Acknowledge termination procedure fees info","x-jsf-presentation":{inputType:"hidden"}}},required:["acknowledge_termination_procedure"],type:"object","x-jsf-order":["acknowledge_termination_procedure_info","acknowledge_termination_procedure","acknowledge_termination_procedure_fees_info"],"x-rmt-meta":{jsfOldVersion:!0}}}};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VEQWK7QQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/flows/Termination/json-schemas/additionalInformation.ts"],"sourcesContent":["export const additionalInformationSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [],\n properties: {\n acknowledge_termination_procedure_info: {\n type: 'null',\n title: 'Acknowledge termination procedure info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n meta: {\n ignoreValue: true,\n },\n },\n acknowledge_termination_procedure: {\n description: '',\n title: 'I agree to the procedures in this form',\n type: 'boolean',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'checkbox',\n },\n },\n acknowledge_termination_procedure_fees_info: {\n type: 'null',\n title: 'Acknowledge termination procedure fees info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n },\n required: ['acknowledge_termination_procedure'],\n type: 'object',\n 'x-jsf-order': [\n 'acknowledge_termination_procedure_info',\n 'acknowledge_termination_procedure',\n 'acknowledge_termination_procedure_fees_info',\n ],\n 'x-rmt-meta': {\n
|
|
1
|
+
{"version":3,"sources":["../src/flows/Termination/json-schemas/additionalInformation.ts"],"sourcesContent":["export const additionalInformationSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [],\n properties: {\n acknowledge_termination_procedure_info: {\n type: 'null',\n title: 'Acknowledge termination procedure info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n meta: {\n ignoreValue: true,\n },\n },\n acknowledge_termination_procedure: {\n description: '',\n title: 'I agree to the procedures in this form',\n type: 'boolean',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'checkbox',\n },\n },\n acknowledge_termination_procedure_fees_info: {\n type: 'null',\n title: 'Acknowledge termination procedure fees info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n },\n required: ['acknowledge_termination_procedure'],\n type: 'object',\n 'x-jsf-order': [\n 'acknowledge_termination_procedure_info',\n 'acknowledge_termination_procedure',\n 'acknowledge_termination_procedure_fees_info',\n ],\n 'x-rmt-meta': {\n jsfOldVersion: true,\n },\n },\n },\n};\n"],"mappings":"AAAO,IAAMA,EAA8B,CACzC,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CAAC,EACR,WAAY,CACV,uCAAwC,CACtC,KAAM,OACN,MAAO,yCACP,qBAAsB,CACpB,UAAW,QACb,EACA,KAAM,CACJ,YAAa,EACf,CACF,EACA,kCAAmC,CACjC,YAAa,GACb,MAAO,yCACP,KAAM,UACN,qBAAsB,CACpB,UAAW,SACX,UAAW,UACb,CACF,EACA,4CAA6C,CAC3C,KAAM,OACN,MAAO,8CACP,qBAAsB,CACpB,UAAW,QACb,CACF,CACF,EACA,SAAU,CAAC,mCAAmC,EAC9C,KAAM,SACN,cAAe,CACb,yCACA,oCACA,6CACF,EACA,aAAc,CACZ,cAAe,EACjB,CACF,CACF,CACF","names":["additionalInformationSchema"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-ANPNVWCB.js";import{a as k}from"./chunk-IBQVGZMF.js";import{a as m,b as u,c as h,d as _}from"./chunk-DFJNVGK4.js";import{a as y}from"./chunk-NW3D7CPK.js";import{a as g}from"./chunk-JO5D2522.js";import{Q as T,c as D,na as b}from"./chunk-DAUDKN32.js";import{e as i}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useQuery as v}from"@tanstack/react-query";var c=n(({employmentId:e,status:t,timeoffType:a,options:o})=>{let{client:r}=i();return v({queryKey:["timeoff",e,t],retry:!1,queryFn:n(()=>b({client:r,headers:{Authorization:""},query:{employment_id:e,status:t,timeoff_type:a}}),"queryFn"),select:n(({data:s})=>o?.select?.(s)??s,"select"),enabled:o?.enabled})},"useTimeOffQuery"),R=n((e,t)=>{let a=y(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),o=y(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return`${a} \u2192 ${o}`},"formatDateRange"),N=n(({employmentId:e,options:t})=>c({employmentId:e,timeoffType:"paid_time_off",options:{enabled:t?.enabled,select:n(a=>({bookedDays:a?.data?.timeoffs?.reduce((o,r)=>o+(r?.timeoff_days?.filter(s=>s.hours!=null&&s.hours>0).length||0),0)||0,timeoffs:a?.data?.timeoffs?.map(o=>{let r=o?.timeoff_days?.filter(s=>s.hours>0).length||0;return{status:o?.status,duration:r,startDate:o?.start_date,endDate:o?.end_date,formattedDate:R(o?.start_date,o?.end_date)}})||[]}),"select")}}),"usePaidTimeoffBreakdownQuery"),A=n(({employmentId:e})=>{let{client:t}=i();return v({queryKey:["timeoff-balance",e],retry:!1,queryFn:n(()=>T({client:t,headers:{Authorization:""},path:{employment_id:e}}),"queryFn"),select:n(({data:a})=>a,"select")})},"useTimeOffLeavePoliciesSummaryQuery");import{useMutation as x,useQuery as Q}from"@tanstack/react-query";function V(e){return Object.entries(e).reduce((t,[a,o])=>({...t,[a]:h(o)}),{})}n(V,"formatTimeoffValues");function F(e){let t=e?.contract_details?.available_pto,a=e?.contract_details?.available_pto_type;return e?.country?.code==="USA"&&a==="unlimited"?{value:t===0?20:t}:a==="unlimited"&&t>0?{value:t}:{value:t}}n(F,"getMinimumStatutoryDays");function q(e,t){let a=0,o=0;return e.forEach(r=>{r.timeoff_days?.forEach(s=>{new Date(s.day)<=t?a+=s.hours||0:o+=s.hours||0})}),{before:a,after:o}}n(q,"getAllTimeoffHoursBeforeDate");var U=n(({employmentId:e,date:t,options:a})=>c({employmentId:e,timeoffType:"paid_time_off",status:"approved",options:{enabled:a?.enabled,select:n(o=>{let{before:r,after:s}=q(o?.data?.timeoffs||[],new Date(t));return{bookedDaysBeforeTermination:u(r),bookedDaysAfterTermination:u(s)}},"select")}}),"useBookedTimeoffBeforeAndAfterTerminationQuery"),me=n(({employmentId:e,proposedTerminationDate:t,employment:a})=>{let{value:o=0}=F(a),r=A({employmentId:e}),s=U({employmentId:e,date:t}),p=r.data?.data?.[0].annual_entitlement.type==="limited"?{days:r.data?.data?.[0].annual_entitlement.days,hours:r.data?.data?.[0].annual_entitlement.hours}:{days:o,hours:0},d={days:r.data?.data?.[0].booked.days||0,hours:r.data?.data?.[0].booked.hours||0},f=r.data?.data?.[0].current_entitlement.type==="limited"?{days:r.data?.data?.[0].current_entitlement.days||0,hours:r.data?.data?.[0].current_entitlement.hours||0}:{days:o,hours:0},l={days:r.data?.data?.[0].used.days||0,hours:r.data?.data?.[0].used.hours||0},B=s.data?.bookedDaysBeforeTermination||{days:0,hours:0},C=s.data?.bookedDaysAfterTermination||{days:0,hours:0},H=m(f.days,f.hours),P=m(l.days,l.hours),E=m(d.days,d.hours),L=H-P-E,O=_(u(L));return{data:{...V({entitledDays:p,bookedDays:d,usedDays:l,approvedDaysBeforeTermination:B,approvedDaysAfterTermination:C,remainingDays:O,currentEntitlementDays:f}),isUnlimitedPto:a?.contract_details?.available_pto_type==="unlimited"},isLoading:r.isLoading||s.isLoading,isError:r.isError||s.isError,error:r.error||s.error}},"useSummaryTimeOffDataQuery"),ue=n(()=>{let{client:e}=i();return x({mutationFn:n(t=>D({client:e,body:t}),"mutationFn")})},"useCreateTermination"),de=n(({formValues:e,jsfModify:t,step:a})=>Q({queryKey:["rmt-flows-termination-schema",a],queryFn:n(()=>S[a]??k,"queryFn"),select:n(({data:o})=>{let r=o?.schema||{};return g(r,e||{},{jsfModify:t})},"select")}),"useTerminationSchema");export{c as a,N as b,A as c,U as d,me as e,ue as f,de as g};
|
|
2
|
+
//# sourceMappingURL=chunk-VRZJWJGM.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={"x-rmt-meta":{jsfOldVersion:!0},additionalProperties:!1,properties:{country_code:{title:"Country",description:"",type:"string",oneOf:[],"x-jsf-presentation":{inputType:"select"}}},required:["country_code"],type:"object","x-jsf-order":["country_code"]};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VSK4KV55.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/PayrollAdminOnboarding/json-schemas/selectCountryStep.ts"],"sourcesContent":["export const gpSelectCountrySchema = {\n 'x-rmt-meta': { jsfOldVersion: true },\n additionalProperties: false,\n properties: {\n country_code: {\n title: 'Country',\n description: '',\n type: 'string',\n oneOf: [] as Array<{ const: string; title: string }>,\n 'x-jsf-presentation': { inputType: 'select' },\n },\n },\n required: ['country_code'],\n type: 'object',\n 'x-jsf-order': ['country_code'],\n};\n"],"mappings":"AAAO,IAAMA,EAAwB,CACnC,aAAc,CAAE,cAAe,EAAK,EACpC,qBAAsB,GACtB,WAAY,CACV,aAAc,CACZ,MAAO,UACP,YAAa,GACb,KAAM,SACN,MAAO,CAAC,EACR,qBAAsB,CAAE,UAAW,QAAS,CAC9C,CACF,EACA,SAAU,CAAC,cAAc,EACzB,KAAM,SACN,cAAe,CAAC,cAAc,CAChC","names":["gpSelectCountrySchema"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as p}from"./chunk-JO5D2522.js";import{h as V,i as R}from"./chunk-C4HFMTSB.js";import{a as S}from"./chunk-P37U34EQ.js";import{useState as I,useCallback as u,useMemo as m,useEffect as O}from"react";var k=S(F=>{let{defaultSchema:l="simple-user-profile",initialValues:h={},schemas:f={},onSubmit:g,onError:c,onSchemaChange:y}=F,[a,t]=I({selectedSchema:l,submittedResults:[],isLoading:!1,isSubmitting:!1,resetKey:0,fieldsVersion:0});O(()=>{l&&l!==a.selectedSchema&&t(e=>({...e,selectedSchema:l,resetKey:e.resetKey+1}))},[l]);let o=m(()=>({...h}),[h]),d=m(()=>f?.[a.selectedSchema],[f,a.selectedSchema]),i=m(()=>{try{t(s=>({...s,isLoading:!0}));let e=p(d.schema,o,{transformMoneyFields:!1});return t(s=>({...s,isLoading:!1})),e}catch(e){throw t(s=>({...s,isLoading:!1})),c?.(e),e}},[d.schema,o,c]),J=u(e=>{t(s=>({...s,selectedSchema:e})),y?.(e),t(s=>({...s,resetKey:s.resetKey+1}))},[y]),P=u(async e=>{t(s=>({...s,isSubmitting:!0}));try{await g?.(e);let s={success:!0,data:e,timestamp:new Date().toISOString()};return t(n=>({...n,isSubmitting:!1,submittedResults:[s,...n.submittedResults]})),s}catch(s){let n={success:!1,data:e,timestamp:new Date().toISOString()};throw t(r=>({...r,isSubmitting:!1,submittedResults:[n,...r.submittedResults]})),c?.(s),s}},[g,c]),w=u(()=>{t(e=>({...e,resetKey:e.resetKey+1}))},[]),K=u(()=>{t(e=>({...e,submittedResults:[]}))},[]),b=u(async e=>{if(!i.fields)return null;let s=await V(e,i.fields,{isPartialValidation:!0}),n=await i.handleValidation(s);return t(r=>({...r,fieldsVersion:r.fieldsVersion+1})),n},[i]),L=m(()=>R(i.fields,o),[i.fields,o]);return{selectedSchema:a.selectedSchema,resetKey:a.resetKey,isLoading:a.isLoading,isSubmitting:a.isSubmitting,submittedResults:a.submittedResults,fieldValues:o,initialValues:L,currentSchemaData:d,fields:i.fields,meta:i.meta,handleSchemaChange:J,handleSubmit:P,handleReset:w,clearResults:K,checkFieldUpdates:S(async e=>{await b(e)},"checkFieldUpdates"),handleValidation:b}},"useJsonSchemaPlayground");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WC7TWLA7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/JsonSchemaPlayground/hooks.ts"],"sourcesContent":["import { useState, useCallback, useMemo, useEffect } from 'react';\nimport { FieldValues } from 'react-hook-form';\nimport { createHeadlessForm } from '@/src/common/createHeadlessForm';\nimport {\n getInitialValues,\n parseJSFToValidate,\n} from '@/src/components/form/utils';\nimport {\n JsonSchemaPlaygroundResult,\n JsonSchemaPlaygroundState,\n UseJsonSchemaPlaygroundOptions,\n} from './types';\n\nexport const useJsonSchemaPlayground = (\n options: UseJsonSchemaPlaygroundOptions,\n) => {\n const {\n defaultSchema = 'simple-user-profile',\n initialValues: jsonSchemaInitialValues = {},\n schemas: customSchemas = {},\n onSubmit,\n onError,\n onSchemaChange,\n } = options;\n\n const [state, setState] = useState<JsonSchemaPlaygroundState>({\n selectedSchema: defaultSchema,\n submittedResults: [],\n isLoading: false,\n isSubmitting: false,\n resetKey: 0,\n fieldsVersion: 0,\n });\n\n // Sync internal state with external defaultSchema prop (for browser back/forward)\n useEffect(() => {\n if (defaultSchema && defaultSchema !== state.selectedSchema) {\n setState((prev) => ({\n ...prev,\n selectedSchema: defaultSchema,\n resetKey: prev.resetKey + 1,\n }));\n }\n // Only react to defaultSchema changes from parent, not internal state changes\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [defaultSchema]);\n\n const fieldValues = useMemo(() => {\n return {\n ...jsonSchemaInitialValues,\n };\n }, [jsonSchemaInitialValues]);\n\n // Get current schema\n const currentSchemaData = useMemo(() => {\n return customSchemas?.[state.selectedSchema];\n }, [customSchemas, state.selectedSchema]);\n\n // Create headless form from current schema\n const headlessForm = useMemo(() => {\n try {\n setState((prev) => ({ ...prev, isLoading: true }));\n const form = createHeadlessForm(currentSchemaData.schema, fieldValues, {\n transformMoneyFields: false,\n });\n setState((prev) => ({ ...prev, isLoading: false }));\n return form;\n } catch (error) {\n setState((prev) => ({ ...prev, isLoading: false }));\n onError?.(error);\n throw error;\n }\n }, [currentSchemaData.schema, fieldValues, onError]);\n\n // Handle schema selection\n const handleSchemaChange = useCallback(\n (schemaKey: string) => {\n setState((prev) => ({ ...prev, selectedSchema: schemaKey }));\n onSchemaChange?.(schemaKey);\n setState((prev) => ({ ...prev, resetKey: prev.resetKey + 1 }));\n },\n [onSchemaChange],\n );\n\n // Handle form submission\n const handleSubmit = useCallback(\n async (values: FieldValues) => {\n setState((prev) => ({ ...prev, isSubmitting: true }));\n\n try {\n await onSubmit?.(values);\n\n const result: JsonSchemaPlaygroundResult = {\n success: true,\n data: values,\n timestamp: new Date().toISOString(),\n };\n\n setState((prev) => ({\n ...prev,\n isSubmitting: false,\n submittedResults: [result, ...prev.submittedResults],\n }));\n\n return result;\n } catch (error) {\n const result: JsonSchemaPlaygroundResult = {\n success: false,\n data: values,\n timestamp: new Date().toISOString(),\n };\n\n setState((prev) => ({\n ...prev,\n isSubmitting: false,\n submittedResults: [result, ...prev.submittedResults],\n }));\n\n onError?.(error);\n throw error;\n }\n },\n [onSubmit, onError],\n );\n\n // Handle form reset\n const handleReset = useCallback(() => {\n setState((prev) => ({ ...prev, resetKey: prev.resetKey + 1 }));\n }, []);\n\n // Clear results\n const clearResults = useCallback(() => {\n setState((prev) => ({ ...prev, submittedResults: [] }));\n }, []);\n\n // Validation functions\n const handleValidation = useCallback(\n async (values: FieldValues) => {\n if (!headlessForm.fields) {\n return null;\n }\n // Invisible values are kept on purpose here, mirroring Onboarding's\n // jsfVersion-1 contract_details handling: a hidden fieldset coming\n // back would lose the values driving its own children (e.g.\n // daily_schedule's selected_days) if they were stripped before\n // handleValidation resolves visibility.\n const parsedValues = await parseJSFToValidate(\n values,\n headlessForm.fields,\n { isPartialValidation: true },\n );\n const result = await headlessForm.handleValidation(parsedValues);\n\n setState((prev) => ({ ...prev, fieldsVersion: prev.fieldsVersion + 1 }));\n\n return result;\n },\n [headlessForm],\n );\n\n const initialValues = useMemo(() => {\n return getInitialValues(headlessForm.fields, fieldValues);\n }, [headlessForm.fields, fieldValues]);\n\n return {\n // State\n selectedSchema: state.selectedSchema,\n resetKey: state.resetKey,\n isLoading: state.isLoading,\n isSubmitting: state.isSubmitting,\n submittedResults: state.submittedResults,\n fieldValues,\n initialValues,\n\n // Schema data\n currentSchemaData,\n\n // Form data from headless form\n fields: headlessForm.fields,\n meta: headlessForm.meta,\n\n // Actions\n handleSchemaChange,\n handleSubmit,\n handleReset,\n clearResults,\n\n /**\n * Function to update the current form field values\n * @param values - New form values to set\n */\n checkFieldUpdates: async (values: FieldValues) => {\n await handleValidation(values);\n },\n\n // Validation\n handleValidation,\n };\n};\n"],"mappings":"+HAAA,OAAS,YAAAA,EAAU,eAAAC,EAAa,WAAAC,EAAS,aAAAC,MAAiB,QAanD,IAAMC,EAA0BC,EACrCC,GACG,CACH,GAAM,CACJ,cAAAC,EAAgB,sBAChB,cAAeC,EAA0B,CAAC,EAC1C,QAASC,EAAgB,CAAC,EAC1B,SAAAC,EACA,QAAAC,EACA,eAAAC,CACF,EAAIN,EAEE,CAACO,EAAOC,CAAQ,EAAIC,EAAoC,CAC5D,eAAgBR,EAChB,iBAAkB,CAAC,EACnB,UAAW,GACX,aAAc,GACd,SAAU,EACV,cAAe,CACjB,CAAC,EAGDS,EAAU,IAAM,CACVT,GAAiBA,IAAkBM,EAAM,gBAC3CC,EAAUG,IAAU,CAClB,GAAGA,EACH,eAAgBV,EAChB,SAAUU,EAAK,SAAW,CAC5B,EAAE,CAIN,EAAG,CAACV,CAAa,CAAC,EAElB,IAAMW,EAAcC,EAAQ,KACnB,CACL,GAAGX,CACL,GACC,CAACA,CAAuB,CAAC,EAGtBY,EAAoBD,EAAQ,IACzBV,IAAgBI,EAAM,cAAc,EAC1C,CAACJ,EAAeI,EAAM,cAAc,CAAC,EAGlCQ,EAAeF,EAAQ,IAAM,CACjC,GAAI,CACFL,EAAUG,IAAU,CAAE,GAAGA,EAAM,UAAW,EAAK,EAAE,EACjD,IAAMK,EAAOC,EAAmBH,EAAkB,OAAQF,EAAa,CACrE,qBAAsB,EACxB,CAAC,EACD,OAAAJ,EAAUG,IAAU,CAAE,GAAGA,EAAM,UAAW,EAAM,EAAE,EAC3CK,CACT,OAASE,EAAO,CACd,MAAAV,EAAUG,IAAU,CAAE,GAAGA,EAAM,UAAW,EAAM,EAAE,EAClDN,IAAUa,CAAK,EACTA,CACR,CACF,EAAG,CAACJ,EAAkB,OAAQF,EAAaP,CAAO,CAAC,EAG7Cc,EAAqBC,EACxBC,GAAsB,CACrBb,EAAUG,IAAU,CAAE,GAAGA,EAAM,eAAgBU,CAAU,EAAE,EAC3Df,IAAiBe,CAAS,EAC1Bb,EAAUG,IAAU,CAAE,GAAGA,EAAM,SAAUA,EAAK,SAAW,CAAE,EAAE,CAC/D,EACA,CAACL,CAAc,CACjB,EAGMgB,EAAeF,EACnB,MAAOG,GAAwB,CAC7Bf,EAAUG,IAAU,CAAE,GAAGA,EAAM,aAAc,EAAK,EAAE,EAEpD,GAAI,CACF,MAAMP,IAAWmB,CAAM,EAEvB,IAAMC,EAAqC,CACzC,QAAS,GACT,KAAMD,EACN,UAAW,IAAI,KAAK,EAAE,YAAY,CACpC,EAEA,OAAAf,EAAUG,IAAU,CAClB,GAAGA,EACH,aAAc,GACd,iBAAkB,CAACa,EAAQ,GAAGb,EAAK,gBAAgB,CACrD,EAAE,EAEKa,CACT,OAASN,EAAO,CACd,IAAMM,EAAqC,CACzC,QAAS,GACT,KAAMD,EACN,UAAW,IAAI,KAAK,EAAE,YAAY,CACpC,EAEA,MAAAf,EAAUG,IAAU,CAClB,GAAGA,EACH,aAAc,GACd,iBAAkB,CAACa,EAAQ,GAAGb,EAAK,gBAAgB,CACrD,EAAE,EAEFN,IAAUa,CAAK,EACTA,CACR,CACF,EACA,CAACd,EAAUC,CAAO,CACpB,EAGMoB,EAAcL,EAAY,IAAM,CACpCZ,EAAUG,IAAU,CAAE,GAAGA,EAAM,SAAUA,EAAK,SAAW,CAAE,EAAE,CAC/D,EAAG,CAAC,CAAC,EAGCe,EAAeN,EAAY,IAAM,CACrCZ,EAAUG,IAAU,CAAE,GAAGA,EAAM,iBAAkB,CAAC,CAAE,EAAE,CACxD,EAAG,CAAC,CAAC,EAGCgB,EAAmBP,EACvB,MAAOG,GAAwB,CAC7B,GAAI,CAACR,EAAa,OAChB,OAAO,KAOT,IAAMa,EAAe,MAAMC,EACzBN,EACAR,EAAa,OACb,CAAE,oBAAqB,EAAK,CAC9B,EACMS,EAAS,MAAMT,EAAa,iBAAiBa,CAAY,EAE/D,OAAApB,EAAUG,IAAU,CAAE,GAAGA,EAAM,cAAeA,EAAK,cAAgB,CAAE,EAAE,EAEhEa,CACT,EACA,CAACT,CAAY,CACf,EAEMe,EAAgBjB,EAAQ,IACrBkB,EAAiBhB,EAAa,OAAQH,CAAW,EACvD,CAACG,EAAa,OAAQH,CAAW,CAAC,EAErC,MAAO,CAEL,eAAgBL,EAAM,eACtB,SAAUA,EAAM,SAChB,UAAWA,EAAM,UACjB,aAAcA,EAAM,aACpB,iBAAkBA,EAAM,iBACxB,YAAAK,EACA,cAAAkB,EAGA,kBAAAhB,EAGA,OAAQC,EAAa,OACrB,KAAMA,EAAa,KAGnB,mBAAAI,EACA,aAAAG,EACA,YAAAG,EACA,aAAAC,EAMA,kBAAmB3B,EAAA,MAAOwB,GAAwB,CAChD,MAAMI,EAAiBJ,CAAM,CAC/B,EAFmB,qBAKnB,iBAAAI,CACF,CACF,EAzLuC","names":["useState","useCallback","useMemo","useEffect","useJsonSchemaPlayground","__name","options","defaultSchema","jsonSchemaInitialValues","customSchemas","onSubmit","onError","onSchemaChange","state","setState","useState","useEffect","prev","fieldValues","useMemo","currentSchemaData","headlessForm","form","createHeadlessForm","error","handleSchemaChange","useCallback","schemaKey","handleSubmit","values","result","handleReset","clearResults","handleValidation","parsedValues","parseJSFToValidate","initialValues","getInitialValues"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-GNVGW65D.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function d({onSubmit:m}){let{terminationBag:o}=a(),r=i(async t=>{let n=await o?.parseFormValues(t);await m?.(n),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:r})}i(d,"PaidTimeOffForm");export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WHY2WNWH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-YE6NRJ2L.js";import{a as t}from"./chunk-SYZIGZ2F.js";import{a}from"./chunk-VEQWK7QQ.js";import{a as e}from"./chunk-AOE6FXVP.js";var i={data:{version:7,schema:{additionalProperties:!1,allOf:[...e.data.schema.allOf,...t.data.schema.allOf,...r.data.schema.allOf,...a.data.schema.allOf],properties:{...e.data.schema.properties,...t.data.schema.properties,...r.data.schema.properties,...a.data.schema.properties},required:[...e.data.schema.required,...t.data.schema.required,...r.data.schema.required,...a.data.schema.required],type:"object","x-jsf-order":[...e.data.schema["x-jsf-order"],...t.data.schema["x-jsf-order"],...r.data.schema["x-jsf-order"],...a.data.schema["x-jsf-order"]],"x-rmt-meta":{jsfOldVersion:!0}}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WNOQNNRR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/flows/Termination/json-schemas/jsonSchema.ts"],"sourcesContent":["import { additionalInformationSchema } from '@/src/flows/Termination/json-schemas/additionalInformation';\nimport { employeeComunicationSchema } from '@/src/flows/Termination/json-schemas/employeeComunication';\nimport { paidTimeOffSchema } from '@/src/flows/Termination/json-schemas/paidTimeOff';\nimport { terminationDetailsSchema } from '@/src/flows/Termination/json-schemas/terminationDetails';\n\nexport const jsonSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n ...employeeComunicationSchema.data.schema.allOf,\n ...terminationDetailsSchema.data.schema.allOf,\n ...paidTimeOffSchema.data.schema.allOf,\n ...additionalInformationSchema.data.schema.allOf,\n ],\n properties: {\n ...employeeComunicationSchema.data.schema.properties,\n ...terminationDetailsSchema.data.schema.properties,\n ...paidTimeOffSchema.data.schema.properties,\n ...additionalInformationSchema.data.schema.properties,\n },\n required: [\n ...employeeComunicationSchema.data.schema.required,\n ...terminationDetailsSchema.data.schema.required,\n ...paidTimeOffSchema.data.schema.required,\n ...additionalInformationSchema.data.schema.required,\n ],\n type: 'object',\n 'x-jsf-order': [\n ...employeeComunicationSchema.data.schema['x-jsf-order'],\n ...terminationDetailsSchema.data.schema['x-jsf-order'],\n ...paidTimeOffSchema.data.schema['x-jsf-order'],\n ...additionalInformationSchema.data.schema['x-jsf-order'],\n ],\n 'x-rmt-meta': {\n
|
|
1
|
+
{"version":3,"sources":["../src/flows/Termination/json-schemas/jsonSchema.ts"],"sourcesContent":["import { additionalInformationSchema } from '@/src/flows/Termination/json-schemas/additionalInformation';\nimport { employeeComunicationSchema } from '@/src/flows/Termination/json-schemas/employeeComunication';\nimport { paidTimeOffSchema } from '@/src/flows/Termination/json-schemas/paidTimeOff';\nimport { terminationDetailsSchema } from '@/src/flows/Termination/json-schemas/terminationDetails';\n\nexport const jsonSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n ...employeeComunicationSchema.data.schema.allOf,\n ...terminationDetailsSchema.data.schema.allOf,\n ...paidTimeOffSchema.data.schema.allOf,\n ...additionalInformationSchema.data.schema.allOf,\n ],\n properties: {\n ...employeeComunicationSchema.data.schema.properties,\n ...terminationDetailsSchema.data.schema.properties,\n ...paidTimeOffSchema.data.schema.properties,\n ...additionalInformationSchema.data.schema.properties,\n },\n required: [\n ...employeeComunicationSchema.data.schema.required,\n ...terminationDetailsSchema.data.schema.required,\n ...paidTimeOffSchema.data.schema.required,\n ...additionalInformationSchema.data.schema.required,\n ],\n type: 'object',\n 'x-jsf-order': [\n ...employeeComunicationSchema.data.schema['x-jsf-order'],\n ...terminationDetailsSchema.data.schema['x-jsf-order'],\n ...paidTimeOffSchema.data.schema['x-jsf-order'],\n ...additionalInformationSchema.data.schema['x-jsf-order'],\n ],\n 'x-rmt-meta': {\n jsfOldVersion: true,\n },\n },\n },\n};\n"],"mappings":"2JAKO,IAAMA,EAAa,CACxB,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CACL,GAAGC,EAA2B,KAAK,OAAO,MAC1C,GAAGC,EAAyB,KAAK,OAAO,MACxC,GAAGC,EAAkB,KAAK,OAAO,MACjC,GAAGC,EAA4B,KAAK,OAAO,KAC7C,EACA,WAAY,CACV,GAAGH,EAA2B,KAAK,OAAO,WAC1C,GAAGC,EAAyB,KAAK,OAAO,WACxC,GAAGC,EAAkB,KAAK,OAAO,WACjC,GAAGC,EAA4B,KAAK,OAAO,UAC7C,EACA,SAAU,CACR,GAAGH,EAA2B,KAAK,OAAO,SAC1C,GAAGC,EAAyB,KAAK,OAAO,SACxC,GAAGC,EAAkB,KAAK,OAAO,SACjC,GAAGC,EAA4B,KAAK,OAAO,QAC7C,EACA,KAAM,SACN,cAAe,CACb,GAAGH,EAA2B,KAAK,OAAO,aAAa,EACvD,GAAGC,EAAyB,KAAK,OAAO,aAAa,EACrD,GAAGC,EAAkB,KAAK,OAAO,aAAa,EAC9C,GAAGC,EAA4B,KAAK,OAAO,aAAa,CAC1D,EACA,aAAc,CACZ,cAAe,EACjB,CACF,CACF,CACF","names":["jsonSchema","employeeComunicationSchema","terminationDetailsSchema","paidTimeOffSchema","additionalInformationSchema"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s}from"./chunk-SS2SYDCB.js";import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s}from"./chunk-SS2SYDCB.js";import{a as t}from"./chunk-AFTFDGSD.js";import{a as l}from"./chunk-5NN5RWBG.js";import{b as m}from"./chunk-C7KVPEVX.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";import{createElement as p}from"react";function c({onSubmit:a,defaultValues:n}){let{formId:d,employeeBag:e}=s(),o=t({handleValidation:e.handleValidation,defaultValues:n??{},checkFieldUpdates:e.setFieldValues});return p(m,{...o,key:`form-${e.stepState.currentStep.name}`},i("form",{id:d,onSubmit:o.handleSubmit(f=>a(f,o)),className:"space-y-4 RemoteFlows__PayrollEmployeeForm",children:i(l,{fields:e.fields,fieldsets:e.meta["x-jsf-fieldsets"],fieldValues:e.fieldValues})}))}r(c,"PayrollEmployeeForm");export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WU66SHVJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-FFRROEPQ.js";import{b as i}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-C4HFMTSB.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-XLHTMWJ3.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-YPBPOUGX.js";import{a as l}from"./chunk-WU66SHVJ.js";import{b as a}from"./chunk-SS2SYDCB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function u(r){let{employeeBag:e}=a(),s=o(r);return e.taxStepsAvailability.federal_taxes.isAvailable?n(l,{onSubmit:s,defaultValues:{...e.initialValues?.federal_taxes,...e.stepState.values?.federal_taxes}}):null}t(u,"FederalTaxesStep");export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XPLWBO73.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-YPBPOUGX.js";import{a as l}from"./chunk-WU66SHVJ.js";import{b as t}from"./chunk-SS2SYDCB.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function u(n){let{employeeBag:e}=t(),r=a(n);return s(l,{onSubmit:r,defaultValues:{...e.initialValues?.personal_details,...e.stepState.values?.personal_details}})}o(u,"PersonalDetailsStep");export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YANQP45B.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-VDRNNOVA.js";var i={data:{version:7,schema:{additionalProperties:!1,allOf:[{if:{properties:{agrees_to_pto_amount:{const:"no"}},required:["agrees_to_pto_amount"]},then:{properties:{agrees_to_pto_amount_notes:{type:"string"}},required:["agrees_to_pto_amount_notes"]},else:{properties:{agrees_to_pto_amount_notes:!1,timesheet_file:!1}}}],properties:{timeoff_statement:{type:"null",title:"Timeoff statement","x-jsf-presentation":{inputType:"hidden",statement:{title:"Check remaining paid time off",description:"You must pay the employee for any unused accrued paid time off, so please check these records carefully.",inputType:"statement",severity:"warning"},meta:{ignoreValue:!0}}},paid_time_off_info:{type:"null",title:"Paid time off info","x-jsf-presentation":{inputType:"hidden"},meta:{ignoreValue:!0}},agrees_to_pto_amount:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Are these paid time off records correct?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},agrees_to_pto_amount_notes:{description:"Please provide details regarding any additional days taken, including specific dates, or any other inaccuracy in the time off data.",maxLength:1e3,title:"Provide time off details",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},timesheet_file:{description:"Upload a timesheet exported from your HR software. This way we can compare and confirm the total number of Paid time off.",title:"Timesheet document",type:["string","null"],"x-jsf-presentation":{inputType:"file",accept:e.document,maxSize:20971520}}},required:["agrees_to_pto_amount"],type:"object","x-jsf-order":["timeoff_statement","paid_time_off_info","agrees_to_pto_amount","agrees_to_pto_amount_notes","timesheet_file"],"x-rmt-meta":{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-VDRNNOVA.js";var i={data:{version:7,schema:{additionalProperties:!1,allOf:[{if:{properties:{agrees_to_pto_amount:{const:"no"}},required:["agrees_to_pto_amount"]},then:{properties:{agrees_to_pto_amount_notes:{type:"string"}},required:["agrees_to_pto_amount_notes"]},else:{properties:{agrees_to_pto_amount_notes:!1,timesheet_file:!1}}}],properties:{timeoff_statement:{type:"null",title:"Timeoff statement","x-jsf-presentation":{inputType:"hidden",statement:{title:"Check remaining paid time off",description:"You must pay the employee for any unused accrued paid time off, so please check these records carefully.",inputType:"statement",severity:"warning"},meta:{ignoreValue:!0}}},paid_time_off_info:{type:"null",title:"Paid time off info","x-jsf-presentation":{inputType:"hidden"},meta:{ignoreValue:!0}},agrees_to_pto_amount:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Are these paid time off records correct?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},agrees_to_pto_amount_notes:{description:"Please provide details regarding any additional days taken, including specific dates, or any other inaccuracy in the time off data.",maxLength:1e3,title:"Provide time off details",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},timesheet_file:{description:"Upload a timesheet exported from your HR software. This way we can compare and confirm the total number of Paid time off.",title:"Timesheet document",type:["string","null"],"x-jsf-presentation":{inputType:"file",accept:e.document,maxSize:20971520}}},required:["agrees_to_pto_amount"],type:"object","x-jsf-order":["timeoff_statement","paid_time_off_info","agrees_to_pto_amount","agrees_to_pto_amount_notes","timesheet_file"],"x-rmt-meta":{jsfOldVersion:!0}}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YE6NRJ2L.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/flows/Termination/json-schemas/paidTimeOff.ts"],"sourcesContent":["import { FILE_TYPES, MAX_FILE_SIZE } from '@/src/lib/uploadConfig';\n\nexport const paidTimeOffSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n {\n if: {\n properties: {\n agrees_to_pto_amount: {\n const: 'no',\n },\n },\n required: ['agrees_to_pto_amount'],\n },\n then: {\n properties: {\n agrees_to_pto_amount_notes: {\n type: 'string',\n },\n },\n required: ['agrees_to_pto_amount_notes'],\n },\n else: {\n properties: {\n agrees_to_pto_amount_notes: false,\n timesheet_file: false,\n },\n },\n },\n ],\n properties: {\n timeoff_statement: {\n type: 'null',\n title: 'Timeoff statement',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n statement: {\n title: 'Check remaining paid time off',\n description:\n 'You must pay the employee for any unused accrued paid time off, so please check these records carefully.',\n inputType: 'statement',\n severity: 'warning',\n },\n meta: {\n ignoreValue: true,\n },\n },\n },\n paid_time_off_info: {\n type: 'null',\n title: 'Paid time off info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n meta: {\n ignoreValue: true,\n },\n },\n agrees_to_pto_amount: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title: 'Are these paid time off records correct?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n agrees_to_pto_amount_notes: {\n description:\n 'Please provide details regarding any additional days taken, including specific dates, or any other inaccuracy in the time off data.',\n maxLength: 1000,\n title: 'Provide time off details',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n timesheet_file: {\n description:\n 'Upload a timesheet exported from your HR software. This way we can compare and confirm the total number of Paid time off.',\n title: 'Timesheet document',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: FILE_TYPES.document,\n maxSize: MAX_FILE_SIZE, // maxFileSize doesn't seem to work for some reason, found that this was fixed in @remoteoss/json-schema-form v1\n },\n },\n },\n required: ['agrees_to_pto_amount'],\n type: 'object',\n 'x-jsf-order': [\n 'timeoff_statement',\n 'paid_time_off_info',\n 'agrees_to_pto_amount',\n 'agrees_to_pto_amount_notes',\n 'timesheet_file',\n ],\n 'x-rmt-meta': {\n
|
|
1
|
+
{"version":3,"sources":["../src/flows/Termination/json-schemas/paidTimeOff.ts"],"sourcesContent":["import { FILE_TYPES, MAX_FILE_SIZE } from '@/src/lib/uploadConfig';\n\nexport const paidTimeOffSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n {\n if: {\n properties: {\n agrees_to_pto_amount: {\n const: 'no',\n },\n },\n required: ['agrees_to_pto_amount'],\n },\n then: {\n properties: {\n agrees_to_pto_amount_notes: {\n type: 'string',\n },\n },\n required: ['agrees_to_pto_amount_notes'],\n },\n else: {\n properties: {\n agrees_to_pto_amount_notes: false,\n timesheet_file: false,\n },\n },\n },\n ],\n properties: {\n timeoff_statement: {\n type: 'null',\n title: 'Timeoff statement',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n statement: {\n title: 'Check remaining paid time off',\n description:\n 'You must pay the employee for any unused accrued paid time off, so please check these records carefully.',\n inputType: 'statement',\n severity: 'warning',\n },\n meta: {\n ignoreValue: true,\n },\n },\n },\n paid_time_off_info: {\n type: 'null',\n title: 'Paid time off info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n meta: {\n ignoreValue: true,\n },\n },\n agrees_to_pto_amount: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title: 'Are these paid time off records correct?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n agrees_to_pto_amount_notes: {\n description:\n 'Please provide details regarding any additional days taken, including specific dates, or any other inaccuracy in the time off data.',\n maxLength: 1000,\n title: 'Provide time off details',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n timesheet_file: {\n description:\n 'Upload a timesheet exported from your HR software. This way we can compare and confirm the total number of Paid time off.',\n title: 'Timesheet document',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: FILE_TYPES.document,\n maxSize: MAX_FILE_SIZE, // maxFileSize doesn't seem to work for some reason, found that this was fixed in @remoteoss/json-schema-form v1\n },\n },\n },\n required: ['agrees_to_pto_amount'],\n type: 'object',\n 'x-jsf-order': [\n 'timeoff_statement',\n 'paid_time_off_info',\n 'agrees_to_pto_amount',\n 'agrees_to_pto_amount_notes',\n 'timesheet_file',\n ],\n 'x-rmt-meta': {\n jsfOldVersion: true,\n },\n },\n },\n};\n"],"mappings":"wCAEO,IAAMA,EAAoB,CAC/B,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CACL,CACE,GAAI,CACF,WAAY,CACV,qBAAsB,CACpB,MAAO,IACT,CACF,EACA,SAAU,CAAC,sBAAsB,CACnC,EACA,KAAM,CACJ,WAAY,CACV,2BAA4B,CAC1B,KAAM,QACR,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,2BAA4B,GAC5B,eAAgB,EAClB,CACF,CACF,CACF,EACA,WAAY,CACV,kBAAmB,CACjB,KAAM,OACN,MAAO,oBACP,qBAAsB,CACpB,UAAW,SACX,UAAW,CACT,MAAO,gCACP,YACE,2GACF,UAAW,YACX,SAAU,SACZ,EACA,KAAM,CACJ,YAAa,EACf,CACF,CACF,EACA,mBAAoB,CAClB,KAAM,OACN,MAAO,qBACP,qBAAsB,CACpB,UAAW,QACb,EACA,KAAM,CACJ,YAAa,EACf,CACF,EACA,qBAAsB,CACpB,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MAAO,2CACP,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,2BAA4B,CAC1B,YACE,sIACF,UAAW,IACX,MAAO,2BACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,eAAgB,CACd,YACE,4HACF,MAAO,qBACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,OACX,OAAQC,EAAW,SACnB,QAAS,QACX,CACF,CACF,EACA,SAAU,CAAC,sBAAsB,EACjC,KAAM,SACN,cAAe,CACb,oBACA,qBACA,uBACA,6BACA,gBACF,EACA,aAAc,CACZ,cAAe,EACjB,CACF,CACF,CACF","names":["paidTimeOffSchema","FILE_TYPES"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-LFUMRNDK.js";import{a}from"./chunk-F6NFCJYW.js";import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-LFUMRNDK.js";import{a}from"./chunk-F6NFCJYW.js";import{a as e}from"./chunk-WC7TWLA7.js";import{a as t}from"./chunk-LXABE3VR.js";import{a as n}from"./chunk-4MI7BMM5.js";import{a as r}from"./chunk-P37U34EQ.js";import{useId as S}from"react";import{jsx as y}from"react/jsx-runtime";var x=r(({defaultSchema:s,initialValues:d,schemas:u,onSubmit:c,onSchemaChange:P,onError:l,render:p})=>{let g=S(),o=e({defaultSchema:s,initialValues:d,schemas:u,onSubmit:c,onSchemaChange:P,onError:l});return y(n.Provider,{value:{formId:g,playgroundBag:o},children:p({playgroundBag:o,components:{Form:t,SubmitButton:a,ResetButton:m}})})},"JsonSchemaPlaygroundFlow");export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YRRX7EOU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-3OHORFIX.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as o,jsxs as t}from"react/jsx-runtime";var a=n(({involuntaryOffboardingServiceChargeZendeskId:r,reconciliationInvoiceZendeskId:i})=>t("p",{className:"RemoteFlows__AcknowledgeInformationFees text-xs text-[#71717A]",children:["You'll receive an"," ",o(e,{zendeskId:r,className:"align-baseline",children:"involuntary offboarding service charge \u2197"})," ","on your"," ",o(e,{zendeskId:i,children:"reconciliation invoice \u2197"})]}),"AcknowledgeInformationFees");export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-YWLAZIIO.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-UWIUECXU.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as n}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function S({onSubmit:d,onError:a,onSuccess:m}){let{onboardingBag:r}=s(),c=t(async i=>{try{let e=await r.parseFormValues(i);await d?.(e);let o=await r.onSubmit(i);if(o?.data){await m?.(o.data),r?.next();return}if(o?.error){let p=n(o?.fieldErrors||[],r.meta?.fields?.contract_details);a?.({error:o.error,rawError:o.rawError,fieldErrors:p})}}catch(e){a?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit");return E(l,{defaultValues:r.stepState.values?.contract_details||r.initialValues.contract_details,onSubmit:c})}t(S,"ContractDetailsStep");export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZJ55AKB6.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as k}from"./chunk-E7Y3YBZH.js";import{a as s}from"./chunk-JJUOWS3K.js";import{e as p,f as r,g as d,i as u,j as i}from"./chunk-C7KVPEVX.js";import{n as _}from"./chunk-C4HFMTSB.js";import{a as F}from"./chunk-P37U34EQ.js";import{Fragment as x,jsx as e,jsxs as a}from"react/jsx-runtime";var w=F(({field:l,fieldState:b,fieldData:t})=>{let{name:m,label:n,description:C,options:c,multiple:h}=t;return a(p,{"data-field":m,className:_(`RemoteFlows__CheckBoxField__Item__${m}`),children:[e(d,{children:a(x,{children:[c&&h?e(r,{children:n}):null,c&&h?c.map(o=>a("div",{className:"flex space-x-2",children:[e(s,{id:o.value,onCheckedChange:v=>{l.onChange(v===!0,o.value)},checked:l.value?.includes(o.value),className:"RemoteFlows__CheckBox__Input"}),e(r,{htmlFor:o.value,className:"mb-0 RemoteFlows__CheckBox__Label",children:o.label})]},o.value)):a("div",{className:"flex space-x-2",children:[e(s,{id:m,onCheckedChange:o=>{l.onChange(o===!0,null)},checked:l.value,className:"RemoteFlows__CheckBox__Input"}),e(r,{htmlFor:m,className:"mb-0 RemoteFlows__CheckBox__Label",children:n})]})]})}),(C||t.meta?.helpCenter)&&e(u,{helpCenter:e(k,{helpCenter:t.meta?.helpCenter}),children:C}),b.error&&e(i,{})]})},"CheckboxFieldDefault");export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZULOHKU6.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as Components } from './remoteFlows-
|
|
1
|
+
import { C as Components } from './remoteFlows-BlMarq2K.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'yup';
|
|
4
|
-
import './types.gen-
|
|
4
|
+
import './types.gen-CMDAS1NL.js';
|
|
5
5
|
import 'react-hook-form';
|
|
6
6
|
|
|
7
7
|
/**
|