@remoteoss/remote-flows 1.15.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ButtonDefault-6LBHWUQH.js +2 -0
- package/dist/CheckboxFieldDefault-X4DYVQCE.js +2 -0
- package/dist/CountryFieldDefault-JZDE75HS.js +2 -0
- package/dist/DatePickerFieldDefault-LJV4QSEP.js +2 -0
- package/dist/DrawerDefault-FLNSDSMB.js +2 -0
- package/dist/EmailFieldDefault-T6HHE5RL.js +2 -0
- package/dist/FieldsetToggleButtonDefault-MXBQJ55Q.js +2 -0
- package/dist/FileUploadFieldDefault-5NW3ZFXD.js +2 -0
- package/dist/MultiSelectFieldDefault-OQ6SNNBI.js +2 -0
- package/dist/NumberFieldDefault-IVUTWJS5.js +2 -0
- package/dist/PDFPreviewDefault-HSSMYKV5.js +2 -0
- package/dist/RadioGroupFieldDefault-CXY33ONT.js +2 -0
- package/dist/SelectFieldDefault-66GGFDX3.js +2 -0
- package/dist/StatementDefault-DORMITL7.js +2 -0
- package/dist/TableFieldDefault-URJVK7YR.js +2 -0
- package/dist/TextAreaFieldDefault-5H34RRBA.js +2 -0
- package/dist/TextFieldDefault-VHIF2KLF.js +2 -0
- package/dist/WorkScheduleFieldDefault-T7IP52VU.js +2 -0
- package/dist/ZendeskDrawerDefault-YSBMA2ZH.js +2 -0
- package/dist/chunk-246D2A55.js +2 -0
- package/dist/{chunk-47YUPC2L.js.map → chunk-246D2A55.js.map} +1 -1
- package/dist/chunk-3474OEAS.js +2 -0
- package/dist/chunk-3474OEAS.js.map +1 -0
- package/dist/{chunk-D6KO5LX6.js → chunk-37RMY44V.js} +2 -2
- package/dist/{chunk-D5YMIXK5.js → chunk-3B6XXK5H.js} +2 -2
- package/dist/{chunk-AFJIZDZG.js → chunk-3BBQDNZD.js} +2 -2
- package/dist/{chunk-CD6F3H7B.js → chunk-3DMWQJ5W.js} +2 -2
- package/dist/chunk-3NB2BN46.js +2 -0
- package/dist/chunk-3NB2BN46.js.map +1 -0
- package/dist/{chunk-UXHMIIOB.js → chunk-44RIEWXA.js} +2 -2
- package/dist/{chunk-AB3RAEMM.js → chunk-4EMAROPQ.js} +2 -2
- package/dist/{chunk-Z4STVEJE.js → chunk-4HPV2VMI.js} +2 -2
- package/dist/{chunk-3ACL4IFO.js → chunk-4N4MQECC.js} +2 -2
- package/dist/{chunk-2ZS5F6C7.js → chunk-4UO7KLRK.js} +2 -2
- package/dist/chunk-5FTC6HMG.js +2 -0
- package/dist/chunk-5FTC6HMG.js.map +1 -0
- package/dist/{chunk-BIDZO7XH.js → chunk-62O3CKKH.js} +2 -2
- package/dist/{chunk-ZIXR3VSB.js → chunk-6AAV34CT.js} +2 -2
- package/dist/{chunk-PQP3KZ7P.js → chunk-6MAQMAY5.js} +2 -2
- package/dist/{chunk-H463PCBN.js → chunk-6SSDV2GX.js} +2 -2
- package/dist/chunk-7ENB7H4E.js +6 -0
- package/dist/{chunk-KJQN6GHW.js.map → chunk-7ENB7H4E.js.map} +1 -1
- package/dist/{chunk-ZPDZ6V5R.js → chunk-7G5JSUZU.js} +2 -2
- package/dist/{chunk-T7CGGZOK.js → chunk-7RP5F62S.js} +2 -2
- package/dist/chunk-7WGZGAQY.js +2 -0
- package/dist/chunk-7WGZGAQY.js.map +1 -0
- package/dist/{chunk-XO5VURZY.js → chunk-A232PIG7.js} +2 -2
- package/dist/{chunk-FI2MVRZR.js → chunk-AJCKNHZB.js} +2 -2
- package/dist/{chunk-VOUP5SMR.js → chunk-AJIDQALB.js} +2 -2
- package/dist/{chunk-UXP2IITO.js → chunk-ALVZNFB7.js} +2 -2
- package/dist/{chunk-SZVBNL6O.js → chunk-B2CNIT3P.js} +2 -2
- package/dist/{chunk-OCTMRR2C.js → chunk-B66V5QEC.js} +2 -2
- package/dist/{chunk-DI2QNZ2O.js → chunk-B7EJ2OAA.js} +2 -2
- package/dist/{chunk-HLAKUOQB.js → chunk-BG66XH5L.js} +2 -2
- package/dist/{chunk-NOY2YNXO.js → chunk-BGRX3DBF.js} +2 -2
- package/dist/{chunk-I7JUAYNN.js → chunk-BVFQ6LFD.js} +2 -2
- package/dist/{chunk-RM7W6QA7.js → chunk-C6KWUSCU.js} +2 -2
- package/dist/{chunk-MTOXXQYK.js → chunk-CARPUKT7.js} +2 -2
- package/dist/{chunk-7TOCURKO.js → chunk-DFAY4TWC.js} +2 -2
- package/dist/{chunk-O5ENJKI6.js → chunk-DNDYXEZ6.js} +2 -2
- package/dist/{chunk-46QJ44CZ.js → chunk-DXIJUMLU.js} +2 -2
- package/dist/{chunk-RFMIAO6J.js → chunk-EDLQ3JNY.js} +2 -2
- package/dist/{chunk-TZCNONDA.js → chunk-EHD2YB5F.js} +2 -2
- package/dist/{chunk-GLKITZNI.js → chunk-ERSP6CZ3.js} +2 -2
- package/dist/{chunk-RKS3FX3C.js → chunk-FERWQW33.js} +2 -2
- package/dist/{chunk-5R66NDTQ.js → chunk-FUGPVPYX.js} +2 -2
- package/dist/{chunk-JXXZH6KH.js → chunk-G6QGYKPO.js} +2 -2
- package/dist/{chunk-ZSJ6YADQ.js → chunk-H2JFQGQJ.js} +2 -2
- package/dist/{chunk-C36VO7DO.js → chunk-HFI3LXZ2.js} +2 -2
- package/dist/{chunk-MCGUHRQL.js → chunk-HKNK5Z6N.js} +2 -2
- package/dist/{chunk-5F7FMTGE.js → chunk-HOR3KPOZ.js} +2 -2
- package/dist/{chunk-WLMHGJWB.js → chunk-HUZBKPGP.js} +2 -2
- package/dist/chunk-HYYILYKU.js +2 -0
- package/dist/chunk-HYYILYKU.js.map +1 -0
- package/dist/{chunk-7SVSJ7NG.js → chunk-I3TP6JKM.js} +2 -2
- package/dist/{chunk-D67Z4NEP.js → chunk-IGLKMXWJ.js} +2 -2
- package/dist/chunk-IHGCXP2X.js +2 -0
- package/dist/chunk-IHGCXP2X.js.map +1 -0
- package/dist/{chunk-IHVEK72X.js → chunk-IMVVZZFZ.js} +2 -2
- package/dist/chunk-IZGJP7OI.js +2 -0
- package/dist/chunk-IZGJP7OI.js.map +1 -0
- package/dist/{chunk-ZKS7DJDT.js → chunk-J2BTEUAM.js} +2 -2
- package/dist/{chunk-KUTIJABX.js → chunk-JI4CYPLW.js} +2 -2
- package/dist/{chunk-OV7TLEE6.js → chunk-KQKH3H6S.js} +2 -2
- package/dist/{chunk-6VQEAU6A.js → chunk-KRSUSMJK.js} +2 -2
- package/dist/{chunk-FBE7F5HU.js → chunk-L3LOATSG.js} +2 -2
- package/dist/{chunk-3PVZEAGI.js → chunk-L5DII4MV.js} +2 -2
- package/dist/{chunk-A37NW25N.js → chunk-LJIJ6UKB.js} +2 -2
- package/dist/{chunk-D36BZQTP.js → chunk-LVXV3GHT.js} +2 -2
- package/dist/{chunk-6DRAZSGG.js → chunk-MHAY555P.js} +2 -2
- package/dist/{chunk-37RBGAMM.js → chunk-MLVB5MYU.js} +2 -2
- package/dist/{chunk-CU3WQ2KN.js → chunk-MSBCYMSH.js} +2 -2
- package/dist/chunk-MTYN4AM3.js +2 -0
- package/dist/{chunk-NZ64KNDV.js → chunk-NAH5PAUK.js} +2 -2
- package/dist/{chunk-IF42CZJH.js → chunk-NEKE5PRJ.js} +2 -2
- package/dist/{chunk-2DCJODMR.js → chunk-NEWXVHFX.js} +2 -2
- package/dist/{chunk-MUJT3F2Q.js → chunk-NMLBGBK2.js} +2 -2
- package/dist/{chunk-DCB2H2SG.js → chunk-O6IBNOQU.js} +2 -2
- package/dist/{chunk-HU453KWI.js → chunk-OB2J5WSO.js} +2 -2
- package/dist/{chunk-XLTZ7SN3.js → chunk-OENTT2KT.js} +2 -2
- package/dist/{chunk-FKYEST54.js → chunk-PHPCCABU.js} +2 -2
- package/dist/{chunk-AS4ND5IO.js → chunk-PKK2EEXH.js} +2 -2
- package/dist/{chunk-HMMFY4PV.js → chunk-Q73675NI.js} +2 -2
- package/dist/{chunk-M4BR3FKN.js → chunk-R7BHA5RA.js} +2 -2
- package/dist/{chunk-IUCFOQAD.js → chunk-RAH453TV.js} +2 -2
- package/dist/{chunk-4YPJKEHT.js → chunk-RJY6AEJB.js} +2 -2
- package/dist/{chunk-CQ2EF32E.js → chunk-RYQQDPI7.js} +2 -2
- package/dist/chunk-SLD227LM.js +2 -0
- package/dist/chunk-SLD227LM.js.map +1 -0
- package/dist/{chunk-VSYION5R.js → chunk-SLLDKJ7K.js} +2 -2
- package/dist/{chunk-JEULZR34.js → chunk-SNBAM7SA.js} +2 -2
- package/dist/{chunk-ZPG6GRAX.js → chunk-SNECOPBD.js} +2 -2
- package/dist/{chunk-BDMCADQ6.js → chunk-SS2FAFUZ.js} +2 -2
- package/dist/{chunk-TGLB5MA2.js → chunk-TAHMDXUS.js} +2 -2
- package/dist/{chunk-JJEFWMLY.js → chunk-TFSRZOMP.js} +2 -2
- package/dist/{chunk-W5EXVAEO.js → chunk-TNN3W5TU.js} +2 -2
- package/dist/{chunk-D5NBOIPS.js → chunk-TOQPDTGG.js} +2 -2
- package/dist/chunk-TPGM3OIU.js +2 -0
- package/dist/chunk-TPGM3OIU.js.map +1 -0
- package/dist/{chunk-HN7ZP5AX.js → chunk-TPGN6QTL.js} +2 -2
- package/dist/{chunk-OJ3HJ7QL.js → chunk-TQXCLXWH.js} +2 -2
- package/dist/{chunk-RQRODRCR.js → chunk-TRBEYNRN.js} +2 -2
- package/dist/{chunk-OK3CYSHV.js → chunk-TXQWBDNF.js} +2 -2
- package/dist/chunk-UB6PYKNX.js +2 -0
- package/dist/chunk-UB6PYKNX.js.map +1 -0
- package/dist/{chunk-4ZQ7NOAL.js → chunk-ULP5B6DG.js} +2 -2
- package/dist/{chunk-OPWMRKZP.js → chunk-UMVA4SIV.js} +2 -2
- package/dist/{chunk-RNXUKKPF.js → chunk-UMVMNUPH.js} +2 -2
- package/dist/{chunk-5TBUDUEB.js → chunk-VBQVXR4U.js} +2 -2
- package/dist/{chunk-3PIJOIYR.js → chunk-VIGKOVHP.js} +2 -2
- package/dist/{chunk-3PIJOIYR.js.map → chunk-VIGKOVHP.js.map} +1 -1
- package/dist/{chunk-W2PJUNWX.js → chunk-VLSOHNT2.js} +2 -2
- package/dist/{chunk-PS5T7URZ.js → chunk-W4ECFBIA.js} +2 -2
- package/dist/{chunk-LWGNRGU3.js → chunk-WD2JGIDK.js} +2 -2
- package/dist/{chunk-BC4UT7KC.js → chunk-WEAO46EO.js} +2 -2
- package/dist/{chunk-2J4XRENJ.js → chunk-XHAJ544L.js} +2 -2
- package/dist/{chunk-KCTY6YAP.js → chunk-XU3B7N3C.js} +2 -2
- package/dist/{chunk-S63QGDMR.js → chunk-YOIXPHGR.js} +2 -2
- package/dist/chunk-YOIXPHGR.js.map +1 -0
- package/dist/{chunk-LDWPRPN4.js → chunk-YPUP5LNV.js} +2 -2
- package/dist/{chunk-I2ED6EUG.js → chunk-YWZHBXEI.js} +2 -2
- package/dist/{chunk-5GAFQRDA.js → chunk-ZAFGVOU5.js} +2 -2
- package/dist/{chunk-EPLPD54O.js → chunk-ZWIH53GL.js} +2 -2
- package/dist/default-components.d.ts +2 -2
- package/dist/default-components.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +3 -3
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/types.d.ts +2 -2
- package/dist/flows/ContractAmendment/utils.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +14 -20
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
- package/dist/flows/ContractorOnboarding/context.d.ts +5 -11
- package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/ContractorOnboarding/types.d.ts +8 -9
- package/dist/flows/ContractorOnboarding/utils.d.ts +6 -5
- package/dist/flows/ContractorOnboarding/utils.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
- package/dist/flows/CostCalculator/api.d.ts +2 -2
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +3 -3
- package/dist/flows/CostCalculator/hooks.d.ts +3 -3
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +3 -3
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +2 -2
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
- package/dist/flows/CreateCompany/CreateCompany.js +1 -1
- package/dist/flows/CreateCompany/api.d.ts +2 -2
- package/dist/flows/CreateCompany/api.js +1 -1
- package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
- package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
- package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
- package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
- package/dist/flows/CreateCompany/context.d.ts +4 -4
- package/dist/flows/CreateCompany/hooks.d.ts +4 -4
- package/dist/flows/CreateCompany/hooks.js +1 -1
- package/dist/flows/CreateCompany/index.d.ts +4 -4
- package/dist/flows/CreateCompany/index.js +1 -1
- package/dist/flows/CreateCompany/types.d.ts +4 -4
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +4 -4
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +4 -4
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +4 -4
- package/dist/flows/Onboarding/utils.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.d.ts +5 -5
- package/dist/flows/Termination/api.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
- package/dist/flows/Termination/context.d.ts +4 -4
- package/dist/flows/Termination/hooks.d.ts +4 -4
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +6 -6
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/jsonSchema.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/types.d.ts +4 -4
- package/dist/flows/Termination/utils.d.ts +4 -4
- package/dist/flows/Termination/utils.js +1 -1
- package/dist/flows/types.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +11 -12
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +3 -3
- package/dist/internals.js +1 -1
- package/dist/{mutations-B8OzuyhA.d.ts → mutations-Cqu0sBct.d.ts} +1 -1
- package/dist/{remoteFlows-Bphgh2nl.d.ts → remoteFlows-Dq_HhlrK.d.ts} +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/{types-Ck-iVGL_.d.ts → types-6I1B0MOG.d.ts} +2 -2
- package/dist/{types-Dcg5CIEH.d.ts → types-BxDv4R-M.d.ts} +3 -3
- package/dist/{types-Dr-apmY1.d.ts → types-C4ZurZsm.d.ts} +11 -15
- package/dist/{types-Bs66Ma28.d.ts → types-CpquG01D.d.ts} +3 -3
- package/dist/{types-Jy-_3Y7m.d.ts → types-Cspu8sBY.d.ts} +1 -1
- package/dist/{types.gen-Yvu8ksE5.d.ts → types.gen-DOfO2pGp.d.ts} +1 -1
- package/dist/{utils-C8T9BiQ3.d.ts → utils-DOln70Os.d.ts} +1 -1
- package/package.json +1 -3
- package/dist/ButtonDefault-C5BX67YU.js +0 -2
- package/dist/CheckboxFieldDefault-HEIDOSI7.js +0 -2
- package/dist/CountryFieldDefault-DJ7VD267.js +0 -2
- package/dist/DatePickerFieldDefault-ZWLN5P55.js +0 -2
- package/dist/DrawerDefault-I7PMYMPK.js +0 -2
- package/dist/EmailFieldDefault-T7YHR6EN.js +0 -2
- package/dist/FieldsetToggleButtonDefault-4JT4HGZ5.js +0 -2
- package/dist/FileUploadFieldDefault-66JYQDRY.js +0 -2
- package/dist/MultiSelectFieldDefault-ZECWDTTO.js +0 -2
- package/dist/NumberFieldDefault-IOL6KD5M.js +0 -2
- package/dist/PDFPreviewDefault-LVWCRQ6A.js +0 -2
- package/dist/RadioGroupFieldDefault-7SVQ7ZQQ.js +0 -2
- package/dist/SelectFieldDefault-HYT2DRK4.js +0 -2
- package/dist/StatementDefault-HUOZEIEC.js +0 -2
- package/dist/TableFieldDefault-OACG7RGJ.js +0 -2
- package/dist/TextAreaFieldDefault-KCPQWVZX.js +0 -2
- package/dist/TextFieldDefault-MUGUO7GT.js +0 -2
- package/dist/WorkScheduleFieldDefault-CHW2ODQK.js +0 -2
- package/dist/ZendeskDrawerDefault-NYESVAZM.js +0 -2
- package/dist/chunk-3FCX7SWN.js +0 -2
- package/dist/chunk-3FCX7SWN.js.map +0 -1
- package/dist/chunk-3XG2MGD3.js +0 -2
- package/dist/chunk-3XG2MGD3.js.map +0 -1
- package/dist/chunk-42R2H2DW.js +0 -2
- package/dist/chunk-47YUPC2L.js +0 -2
- package/dist/chunk-4SGUDT5K.js +0 -2
- package/dist/chunk-4SGUDT5K.js.map +0 -1
- package/dist/chunk-AJ7L3ZO3.js +0 -2
- package/dist/chunk-AJ7L3ZO3.js.map +0 -1
- package/dist/chunk-DI3XZUMY.js +0 -2
- package/dist/chunk-DI3XZUMY.js.map +0 -1
- package/dist/chunk-E6256SK7.js +0 -2
- package/dist/chunk-E6256SK7.js.map +0 -1
- package/dist/chunk-JITSAYF7.js +0 -2
- package/dist/chunk-JITSAYF7.js.map +0 -1
- package/dist/chunk-KJQN6GHW.js +0 -6
- package/dist/chunk-QORZCJSR.js +0 -2
- package/dist/chunk-QORZCJSR.js.map +0 -1
- package/dist/chunk-S63QGDMR.js.map +0 -1
- package/dist/chunk-STEDOWHX.js +0 -2
- package/dist/chunk-STEDOWHX.js.map +0 -1
- package/dist/chunk-VGIG5OUD.js +0 -2
- package/dist/chunk-VGIG5OUD.js.map +0 -1
- package/dist/chunk-VLKG3SNS.js +0 -2
- package/dist/chunk-VLKG3SNS.js.map +0 -1
- package/dist/chunk-YA2G4A3K.js +0 -2
- package/dist/chunk-YA2G4A3K.js.map +0 -1
- package/dist/flows/ContractorOnboarding/components/ChooseAlternativePlanStep.d.ts +0 -29
- package/dist/flows/ContractorOnboarding/components/ChooseAlternativePlanStep.js +0 -2
- package/dist/flows/ContractorOnboarding/components/ChooseAlternativePlanStep.js.map +0 -1
- package/dist/flows/ContractorOnboarding/json-schemas/chooseAlternativePlanStep.d.ts +0 -23
- package/dist/flows/ContractorOnboarding/json-schemas/chooseAlternativePlanStep.js +0 -2
- package/dist/flows/ContractorOnboarding/json-schemas/chooseAlternativePlanStep.js.map +0 -1
- /package/dist/{ButtonDefault-C5BX67YU.js.map → ButtonDefault-6LBHWUQH.js.map} +0 -0
- /package/dist/{CheckboxFieldDefault-HEIDOSI7.js.map → CheckboxFieldDefault-X4DYVQCE.js.map} +0 -0
- /package/dist/{CountryFieldDefault-DJ7VD267.js.map → CountryFieldDefault-JZDE75HS.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-ZWLN5P55.js.map → DatePickerFieldDefault-LJV4QSEP.js.map} +0 -0
- /package/dist/{DrawerDefault-I7PMYMPK.js.map → DrawerDefault-FLNSDSMB.js.map} +0 -0
- /package/dist/{EmailFieldDefault-T7YHR6EN.js.map → EmailFieldDefault-T6HHE5RL.js.map} +0 -0
- /package/dist/{FieldsetToggleButtonDefault-4JT4HGZ5.js.map → FieldsetToggleButtonDefault-MXBQJ55Q.js.map} +0 -0
- /package/dist/{FileUploadFieldDefault-66JYQDRY.js.map → FileUploadFieldDefault-5NW3ZFXD.js.map} +0 -0
- /package/dist/{MultiSelectFieldDefault-ZECWDTTO.js.map → MultiSelectFieldDefault-OQ6SNNBI.js.map} +0 -0
- /package/dist/{NumberFieldDefault-IOL6KD5M.js.map → NumberFieldDefault-IVUTWJS5.js.map} +0 -0
- /package/dist/{PDFPreviewDefault-LVWCRQ6A.js.map → PDFPreviewDefault-HSSMYKV5.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-7SVQ7ZQQ.js.map → RadioGroupFieldDefault-CXY33ONT.js.map} +0 -0
- /package/dist/{SelectFieldDefault-HYT2DRK4.js.map → SelectFieldDefault-66GGFDX3.js.map} +0 -0
- /package/dist/{StatementDefault-HUOZEIEC.js.map → StatementDefault-DORMITL7.js.map} +0 -0
- /package/dist/{TableFieldDefault-OACG7RGJ.js.map → TableFieldDefault-URJVK7YR.js.map} +0 -0
- /package/dist/{TextAreaFieldDefault-KCPQWVZX.js.map → TextAreaFieldDefault-5H34RRBA.js.map} +0 -0
- /package/dist/{TextFieldDefault-MUGUO7GT.js.map → TextFieldDefault-VHIF2KLF.js.map} +0 -0
- /package/dist/{WorkScheduleFieldDefault-CHW2ODQK.js.map → WorkScheduleFieldDefault-T7IP52VU.js.map} +0 -0
- /package/dist/{ZendeskDrawerDefault-NYESVAZM.js.map → ZendeskDrawerDefault-YSBMA2ZH.js.map} +0 -0
- /package/dist/{chunk-D6KO5LX6.js.map → chunk-37RMY44V.js.map} +0 -0
- /package/dist/{chunk-D5YMIXK5.js.map → chunk-3B6XXK5H.js.map} +0 -0
- /package/dist/{chunk-AFJIZDZG.js.map → chunk-3BBQDNZD.js.map} +0 -0
- /package/dist/{chunk-CD6F3H7B.js.map → chunk-3DMWQJ5W.js.map} +0 -0
- /package/dist/{chunk-UXHMIIOB.js.map → chunk-44RIEWXA.js.map} +0 -0
- /package/dist/{chunk-AB3RAEMM.js.map → chunk-4EMAROPQ.js.map} +0 -0
- /package/dist/{chunk-Z4STVEJE.js.map → chunk-4HPV2VMI.js.map} +0 -0
- /package/dist/{chunk-3ACL4IFO.js.map → chunk-4N4MQECC.js.map} +0 -0
- /package/dist/{chunk-2ZS5F6C7.js.map → chunk-4UO7KLRK.js.map} +0 -0
- /package/dist/{chunk-BIDZO7XH.js.map → chunk-62O3CKKH.js.map} +0 -0
- /package/dist/{chunk-ZIXR3VSB.js.map → chunk-6AAV34CT.js.map} +0 -0
- /package/dist/{chunk-PQP3KZ7P.js.map → chunk-6MAQMAY5.js.map} +0 -0
- /package/dist/{chunk-H463PCBN.js.map → chunk-6SSDV2GX.js.map} +0 -0
- /package/dist/{chunk-ZPDZ6V5R.js.map → chunk-7G5JSUZU.js.map} +0 -0
- /package/dist/{chunk-T7CGGZOK.js.map → chunk-7RP5F62S.js.map} +0 -0
- /package/dist/{chunk-XO5VURZY.js.map → chunk-A232PIG7.js.map} +0 -0
- /package/dist/{chunk-FI2MVRZR.js.map → chunk-AJCKNHZB.js.map} +0 -0
- /package/dist/{chunk-VOUP5SMR.js.map → chunk-AJIDQALB.js.map} +0 -0
- /package/dist/{chunk-UXP2IITO.js.map → chunk-ALVZNFB7.js.map} +0 -0
- /package/dist/{chunk-SZVBNL6O.js.map → chunk-B2CNIT3P.js.map} +0 -0
- /package/dist/{chunk-OCTMRR2C.js.map → chunk-B66V5QEC.js.map} +0 -0
- /package/dist/{chunk-DI2QNZ2O.js.map → chunk-B7EJ2OAA.js.map} +0 -0
- /package/dist/{chunk-HLAKUOQB.js.map → chunk-BG66XH5L.js.map} +0 -0
- /package/dist/{chunk-NOY2YNXO.js.map → chunk-BGRX3DBF.js.map} +0 -0
- /package/dist/{chunk-I7JUAYNN.js.map → chunk-BVFQ6LFD.js.map} +0 -0
- /package/dist/{chunk-RM7W6QA7.js.map → chunk-C6KWUSCU.js.map} +0 -0
- /package/dist/{chunk-MTOXXQYK.js.map → chunk-CARPUKT7.js.map} +0 -0
- /package/dist/{chunk-7TOCURKO.js.map → chunk-DFAY4TWC.js.map} +0 -0
- /package/dist/{chunk-O5ENJKI6.js.map → chunk-DNDYXEZ6.js.map} +0 -0
- /package/dist/{chunk-46QJ44CZ.js.map → chunk-DXIJUMLU.js.map} +0 -0
- /package/dist/{chunk-RFMIAO6J.js.map → chunk-EDLQ3JNY.js.map} +0 -0
- /package/dist/{chunk-TZCNONDA.js.map → chunk-EHD2YB5F.js.map} +0 -0
- /package/dist/{chunk-GLKITZNI.js.map → chunk-ERSP6CZ3.js.map} +0 -0
- /package/dist/{chunk-RKS3FX3C.js.map → chunk-FERWQW33.js.map} +0 -0
- /package/dist/{chunk-5R66NDTQ.js.map → chunk-FUGPVPYX.js.map} +0 -0
- /package/dist/{chunk-JXXZH6KH.js.map → chunk-G6QGYKPO.js.map} +0 -0
- /package/dist/{chunk-ZSJ6YADQ.js.map → chunk-H2JFQGQJ.js.map} +0 -0
- /package/dist/{chunk-C36VO7DO.js.map → chunk-HFI3LXZ2.js.map} +0 -0
- /package/dist/{chunk-MCGUHRQL.js.map → chunk-HKNK5Z6N.js.map} +0 -0
- /package/dist/{chunk-5F7FMTGE.js.map → chunk-HOR3KPOZ.js.map} +0 -0
- /package/dist/{chunk-WLMHGJWB.js.map → chunk-HUZBKPGP.js.map} +0 -0
- /package/dist/{chunk-7SVSJ7NG.js.map → chunk-I3TP6JKM.js.map} +0 -0
- /package/dist/{chunk-D67Z4NEP.js.map → chunk-IGLKMXWJ.js.map} +0 -0
- /package/dist/{chunk-IHVEK72X.js.map → chunk-IMVVZZFZ.js.map} +0 -0
- /package/dist/{chunk-ZKS7DJDT.js.map → chunk-J2BTEUAM.js.map} +0 -0
- /package/dist/{chunk-KUTIJABX.js.map → chunk-JI4CYPLW.js.map} +0 -0
- /package/dist/{chunk-OV7TLEE6.js.map → chunk-KQKH3H6S.js.map} +0 -0
- /package/dist/{chunk-6VQEAU6A.js.map → chunk-KRSUSMJK.js.map} +0 -0
- /package/dist/{chunk-FBE7F5HU.js.map → chunk-L3LOATSG.js.map} +0 -0
- /package/dist/{chunk-3PVZEAGI.js.map → chunk-L5DII4MV.js.map} +0 -0
- /package/dist/{chunk-A37NW25N.js.map → chunk-LJIJ6UKB.js.map} +0 -0
- /package/dist/{chunk-D36BZQTP.js.map → chunk-LVXV3GHT.js.map} +0 -0
- /package/dist/{chunk-6DRAZSGG.js.map → chunk-MHAY555P.js.map} +0 -0
- /package/dist/{chunk-37RBGAMM.js.map → chunk-MLVB5MYU.js.map} +0 -0
- /package/dist/{chunk-CU3WQ2KN.js.map → chunk-MSBCYMSH.js.map} +0 -0
- /package/dist/{chunk-42R2H2DW.js.map → chunk-MTYN4AM3.js.map} +0 -0
- /package/dist/{chunk-NZ64KNDV.js.map → chunk-NAH5PAUK.js.map} +0 -0
- /package/dist/{chunk-IF42CZJH.js.map → chunk-NEKE5PRJ.js.map} +0 -0
- /package/dist/{chunk-2DCJODMR.js.map → chunk-NEWXVHFX.js.map} +0 -0
- /package/dist/{chunk-MUJT3F2Q.js.map → chunk-NMLBGBK2.js.map} +0 -0
- /package/dist/{chunk-DCB2H2SG.js.map → chunk-O6IBNOQU.js.map} +0 -0
- /package/dist/{chunk-HU453KWI.js.map → chunk-OB2J5WSO.js.map} +0 -0
- /package/dist/{chunk-XLTZ7SN3.js.map → chunk-OENTT2KT.js.map} +0 -0
- /package/dist/{chunk-FKYEST54.js.map → chunk-PHPCCABU.js.map} +0 -0
- /package/dist/{chunk-AS4ND5IO.js.map → chunk-PKK2EEXH.js.map} +0 -0
- /package/dist/{chunk-HMMFY4PV.js.map → chunk-Q73675NI.js.map} +0 -0
- /package/dist/{chunk-M4BR3FKN.js.map → chunk-R7BHA5RA.js.map} +0 -0
- /package/dist/{chunk-IUCFOQAD.js.map → chunk-RAH453TV.js.map} +0 -0
- /package/dist/{chunk-4YPJKEHT.js.map → chunk-RJY6AEJB.js.map} +0 -0
- /package/dist/{chunk-CQ2EF32E.js.map → chunk-RYQQDPI7.js.map} +0 -0
- /package/dist/{chunk-VSYION5R.js.map → chunk-SLLDKJ7K.js.map} +0 -0
- /package/dist/{chunk-JEULZR34.js.map → chunk-SNBAM7SA.js.map} +0 -0
- /package/dist/{chunk-ZPG6GRAX.js.map → chunk-SNECOPBD.js.map} +0 -0
- /package/dist/{chunk-BDMCADQ6.js.map → chunk-SS2FAFUZ.js.map} +0 -0
- /package/dist/{chunk-TGLB5MA2.js.map → chunk-TAHMDXUS.js.map} +0 -0
- /package/dist/{chunk-JJEFWMLY.js.map → chunk-TFSRZOMP.js.map} +0 -0
- /package/dist/{chunk-W5EXVAEO.js.map → chunk-TNN3W5TU.js.map} +0 -0
- /package/dist/{chunk-D5NBOIPS.js.map → chunk-TOQPDTGG.js.map} +0 -0
- /package/dist/{chunk-HN7ZP5AX.js.map → chunk-TPGN6QTL.js.map} +0 -0
- /package/dist/{chunk-OJ3HJ7QL.js.map → chunk-TQXCLXWH.js.map} +0 -0
- /package/dist/{chunk-RQRODRCR.js.map → chunk-TRBEYNRN.js.map} +0 -0
- /package/dist/{chunk-OK3CYSHV.js.map → chunk-TXQWBDNF.js.map} +0 -0
- /package/dist/{chunk-4ZQ7NOAL.js.map → chunk-ULP5B6DG.js.map} +0 -0
- /package/dist/{chunk-OPWMRKZP.js.map → chunk-UMVA4SIV.js.map} +0 -0
- /package/dist/{chunk-RNXUKKPF.js.map → chunk-UMVMNUPH.js.map} +0 -0
- /package/dist/{chunk-5TBUDUEB.js.map → chunk-VBQVXR4U.js.map} +0 -0
- /package/dist/{chunk-W2PJUNWX.js.map → chunk-VLSOHNT2.js.map} +0 -0
- /package/dist/{chunk-PS5T7URZ.js.map → chunk-W4ECFBIA.js.map} +0 -0
- /package/dist/{chunk-LWGNRGU3.js.map → chunk-WD2JGIDK.js.map} +0 -0
- /package/dist/{chunk-BC4UT7KC.js.map → chunk-WEAO46EO.js.map} +0 -0
- /package/dist/{chunk-2J4XRENJ.js.map → chunk-XHAJ544L.js.map} +0 -0
- /package/dist/{chunk-KCTY6YAP.js.map → chunk-XU3B7N3C.js.map} +0 -0
- /package/dist/{chunk-LDWPRPN4.js.map → chunk-YPUP5LNV.js.map} +0 -0
- /package/dist/{chunk-I2ED6EUG.js.map → chunk-YWZHBXEI.js.map} +0 -0
- /package/dist/{chunk-5GAFQRDA.js.map → chunk-ZAFGVOU5.js.map} +0 -0
- /package/dist/{chunk-EPLPD54O.js.map → chunk-ZWIH53GL.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-VIGKOVHP.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as o}from"react/jsx-runtime";function a({className:i,type:r,...n}){return o("input",{type:r,"data-slot":"input",className:t("shadow-xs border-input file:text-foreground placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-xl border bg-transparent px-4 py-7 text-sm transition-[color] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-focused","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),...n})}e(a,"Input");export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-7G5JSUZU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as x,c as y,d as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as x,c as y,d as k}from"./chunk-MSBCYMSH.js";import{b as h}from"./chunk-TXQWBDNF.js";import{b as C}from"./chunk-RJY6AEJB.js";import{a as m}from"./chunk-VIGKOVHP.js";import{a as r}from"./chunk-P37U34EQ.js";import{Fragment as z,useState as G}from"react";import{Check as L,ChevronDownIcon as B,X as M}from"lucide-react";import{Command as i}from"cmdk";import{SearchIcon as H}from"lucide-react";import{jsx as d,jsxs as X}from"react/jsx-runtime";function b({className:t,...o}){return d(i,{"data-slot":"command",className:m("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...o})}r(b,"Command");function P({className:t,...o}){return d(i.List,{"data-slot":"command-list",className:m("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...o})}r(P,"CommandList");function _({...t}){return d(i.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}r(_,"CommandEmpty");function w({className:t,...o}){return d(i.Group,{"data-slot":"command-group",className:m("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...o})}r(w,"CommandGroup");function N({className:t,...o}){return d(i.Separator,{"data-slot":"command-separator",className:m("bg-border -mx-1 h-px",t),...o})}r(N,"CommandSeparator");function D({className:t,...o}){return d(i.Item,{"data-slot":"command-item",className:m("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...o})}r(D,"CommandItem");import{jsx as a,jsxs as s}from"react/jsx-runtime";function Z({options:t,selected:o,onChange:u,placeholder:S,...I}){let[g,R]=G(!1),f=r(e=>{u(o.filter(n=>n.value!==e.value))},"handleUnselect"),O=t.some(e=>e.category),E=t.reduce((e,n)=>{let p=n.category||"Uncategorized";return e[p]||(e[p]=[]),e[p].push(n),e},{});return s(x,{open:g,onOpenChange:R,...I,children:[a(y,{children:s(C,{variant:"outline",role:"combobox","aria-expanded":g,className:"w-full justify-between font-normal",type:"button",children:[a("div",{className:"flex gap-1 flex-wrap overflow-x-auto max-h-[2.5rem] items-center",children:o.length>0?o.map(e=>s(h,{variant:"secondary",className:"mr-1 mb-1",children:[e.label,a("div",{role:"button",tabIndex:0,"aria-label":`remove ${e.label}`,className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-pointer",onKeyDown:n=>{n.key==="Enter"&&f(e)},onMouseDown:n=>{n.preventDefault(),n.stopPropagation()},onClick:()=>f(e),children:a(M,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},e.label)):a("span",{className:"text-foreground",children:S})}),a(B,{className:"size-4"})]})}),a(k,{align:"start",className:"w-full p-0",children:a(b,{children:s(P,{children:[a(_,{children:"No item found."}),Object.entries(E).map(([e,n],p)=>s(z,{children:[p>0&&a(N,{}),a(w,{heading:O?e:void 0,children:n.map(l=>{let v=o.some(c=>c.value===l.value);return s(D,{onSelect:()=>{u(v?o.filter(c=>c.value!==l.value):[...o,l])},children:[a(L,{className:m("mr-2 h-4 w-4",v?"opacity-100":"opacity-0")}),l.label]},l.label)})})]},e))]})})})]})}r(Z,"MultiSelect");export{Z as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7RP5F62S.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as _}from"./chunk-5WIBTOCI.js";import{a as C}from"./chunk-UB6PYKNX.js";import{a as l}from"./chunk-EUSCQL4H.js";import{Q as f,Y as h,x as p,z as y}from"./chunk-7ENB7H4E.js";import{d as c}from"./chunk-KQPDXXG3.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:t}=c();return u({...e,queryKey:["company-currencies"],retry:!1,queryFn:n(async()=>{let r=await f({client:t});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(a=>({value:a.code,label:a.code}))||[],"select")})},"useCompanyCurrencies"),A=n(()=>{let{client:e}=c();return F({mutationFn:n(t=>h({client:e,headers:{Authorization:""},body:t,query:{action:"send_create_password_email"}}),"mutationFn")})},"useCreateCompanyRequest"),I=n(()=>{let{client:e}=c();return F({mutationFn:n(({companyId:t,payload:r,jsonSchemaVersion:a})=>p({client:e,headers:{Authorization:""},path:{company_id:t},body:r,query:{address_details_json_schema_version:a}}),"mutationFn")})},"useUpdateCompanyRequest"),P=n(e=>{let{client:t}=c(),{data:r,isLoading:a}=u({...C(t,"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:o,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(o){let i=d.fields.find(s=>s.name==="desired_currency");i&&(i.options=o)}return{isLoading:a||m,companyBasicInformationForm:d}},"useCountriesSchemaField"),U=n(({countryCode:e,fieldValues:t,options:r})=>{let{client:a}=c();return u({queryKey:["company-address-details-schema",e],retry:!1,queryFn:n(async()=>{if(!e)throw new Error("Country code is required");let o=await y({client:a,headers:{Authorization:""},path:{country_code:e,form:"address_details"},query:{json_schema_version:r?.jsonSchemaVersion?.form_schema?.address_details||"latest"}});if(o.error||!o.data)throw new Error("Failed to fetch address details schema");return o},"queryFn"),enabled:r?.queryOptions?.enabled&&!!e,select:n(({data:o})=>{let m=o?.data||{};return l(m,t,r)},"select")})},"useAddressDetailsSchema");export{A as a,I as b,P as c,U as d};
|
|
2
|
+
//# sourceMappingURL=chunk-7WGZGAQY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/CreateCompany/api.ts"],"sourcesContent":["import { useMutation } from '@tanstack/react-query';\nimport { useClient } from '@/src/context';\nimport { Client } from '@/src/client/client';\nimport { FieldValues } from 'react-hook-form';\nimport { FlowOptions } from '@/src/flows/types';\nimport { createHeadlessForm } from '@/src/common/createHeadlessForm';\nimport { companyBasicInformationStepSchema } from '@/src/flows/CreateCompany/json-schemas/companyBasicInformationStep';\nimport { useQuery } from '@tanstack/react-query';\nimport { getIndexCompanyCurrency } from '@/src/client';\nimport { countriesOptions } from '@/src/common/api/countries';\nimport {\n CreateCompanyParams,\n getShowFormCountry,\n postCreateCompany,\n patchUpdateCompany2,\n UpdateCompanyParams,\n} from '@/src/client';\n\n/**\n * Hook to fetch company currencies\n * @param queryOptions - Query options including enabled flag\n * @returns Query result with currencies formatted for select dropdown\n */\nconst useCompanyCurrencies = (queryOptions?: { enabled?: boolean }) => {\n const { client } = useClient();\n return useQuery({\n ...queryOptions,\n queryKey: ['company-currencies'],\n retry: false,\n queryFn: async () => {\n const response = await getIndexCompanyCurrency({\n client: client as Client,\n });\n\n if (response.error || !response.data) {\n throw new Error('Failed to fetch company currencies');\n }\n\n return response;\n },\n select: ({ data }) => {\n return (\n data?.data?.company_currencies.map((currency) => ({\n value: currency.code,\n label: currency.code,\n })) || []\n );\n },\n });\n};\n\n/**\n * Hook to create a company\n * @returns Mutation hook for creating a company\n */\nexport const useCreateCompanyRequest = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: (payload: CreateCompanyParams) => {\n return postCreateCompany({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n body: payload,\n query: {\n action: 'send_create_password_email',\n },\n });\n },\n });\n};\n\n/**\n * Hook to update a company\n * @returns Mutation hook for updating a company\n */\nexport const useUpdateCompanyRequest = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: ({\n companyId,\n payload,\n jsonSchemaVersion,\n }: {\n companyId: string;\n payload: UpdateCompanyParams;\n jsonSchemaVersion?: number | 'latest';\n }) => {\n return patchUpdateCompany2({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n path: {\n company_id: companyId,\n },\n body: payload,\n query: {\n address_details_json_schema_version: jsonSchemaVersion,\n },\n });\n },\n });\n};\n\n/**\n * Hook to create the select country form with populated country and currency options\n * @param options - Flow options including jsfModify and queryOptions\n * @returns Form with populated country and currency fields, and loading state\n */\nexport const useCountriesSchemaField = (\n options?: Omit<FlowOptions, 'jsonSchemaVersion'> & {\n queryOptions?: { enabled?: boolean };\n },\n) => {\n const { client } = useClient();\n const { data: countries, isLoading: isLoadingCountries } = useQuery({\n ...countriesOptions(client as Client, 'create-company-countries'),\n select: (response) => {\n return (\n response.data?.data\n ?.filter((country) => country.eor_onboarding)\n .map((country) => ({\n label: country.name,\n value: country.code,\n })) || []\n );\n },\n enabled: options?.queryOptions?.enabled,\n });\n const { data: currencies, isLoading: isLoadingCurrencies } =\n useCompanyCurrencies(options?.queryOptions);\n\n const companyBasicInformationForm = createHeadlessForm(\n companyBasicInformationStepSchema.data.schema,\n {},\n options,\n );\n\n if (countries) {\n const countryField = companyBasicInformationForm.fields.find(\n (field) => field.name === 'country_code',\n );\n if (countryField) {\n countryField.options = countries;\n }\n }\n\n if (currencies) {\n const currencyField = companyBasicInformationForm.fields.find(\n (field) => field.name === 'desired_currency',\n );\n if (currencyField) {\n currencyField.options = currencies;\n }\n }\n\n return {\n isLoading: isLoadingCountries || isLoadingCurrencies,\n companyBasicInformationForm,\n };\n};\n\n/**\n * Hook to fetch address details schema for a given country\n * @param countryCode - The country code to fetch schema for\n * @param fieldValues - Current field values for the form\n * @param options - Flow options including jsfModify and queryOptions\n * @returns Query result with address details form schema\n */\nexport const useAddressDetailsSchema = ({\n countryCode,\n fieldValues,\n options,\n}: {\n countryCode: string | null;\n fieldValues: FieldValues;\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } };\n}) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['company-address-details-schema', countryCode],\n retry: false,\n queryFn: async () => {\n if (!countryCode) {\n throw new Error('Country code is required');\n }\n const response = await getShowFormCountry({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n path: {\n country_code: countryCode,\n form: 'address_details',\n },\n query: {\n json_schema_version:\n options?.jsonSchemaVersion?.form_schema?.address_details ||\n 'latest',\n },\n });\n\n if (response.error || !response.data) {\n throw new Error('Failed to fetch address details schema');\n }\n\n return response;\n },\n enabled: options?.queryOptions?.enabled && !!countryCode,\n select: ({ data }) => {\n const jsfSchema = data?.data || {};\n return createHeadlessForm(jsfSchema, fieldValues, options);\n },\n });\n};\n"],"mappings":"qQAAA,OAAS,eAAAA,MAAmB,wBAO5B,OAAS,YAAAC,MAAgB,wBAgBzB,IAAMC,EAAuBC,EAACC,GAAyC,CACrE,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAS,CACd,GAAGH,EACH,SAAU,CAAC,oBAAoB,EAC/B,MAAO,GACP,QAASD,EAAA,SAAY,CACnB,IAAMK,EAAW,MAAMC,EAAwB,CAC7C,OAAQJ,CACV,CAAC,EAED,GAAIG,EAAS,OAAS,CAACA,EAAS,KAC9B,MAAM,IAAI,MAAM,oCAAoC,EAGtD,OAAOA,CACT,EAVS,WAWT,OAAQL,EAAA,CAAC,CAAE,KAAAO,CAAK,IAEZA,GAAM,MAAM,mBAAmB,IAAKC,IAAc,CAChD,MAAOA,EAAS,KAChB,MAAOA,EAAS,IAClB,EAAE,GAAK,CAAC,EALJ,SAQV,CAAC,CACH,EA1B6B,wBAgChBC,EAA0BT,EAAA,IAAM,CAC3C,GAAM,CAAE,OAAAE,CAAO,EAAIC,EAAU,EAC7B,OAAOO,EAAY,CACjB,WAAYV,EAACW,GACJC,EAAkB,CACvB,OAAQV,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAMS,EACN,MAAO,CACL,OAAQ,4BACV,CACF,CAAC,EAVS,aAYd,CAAC,CACH,EAhBuC,2BAsB1BE,EAA0Bb,EAAA,IAAM,CAC3C,GAAM,CAAE,OAAAE,CAAO,EAAIC,EAAU,EAC7B,OAAOO,EAAY,CACjB,WAAYV,EAAA,CAAC,CACX,UAAAc,EACA,QAAAH,EACA,kBAAAI,CACF,IAKSC,EAAoB,CACzB,OAAQd,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAM,CACJ,WAAYY,CACd,EACA,KAAMH,EACN,MAAO,CACL,oCAAqCI,CACvC,CACF,CAAC,EArBS,aAuBd,CAAC,CACH,EA3BuC,2BAkC1BE,EAA0BjB,EACrCkB,GAGG,CACH,GAAM,CAAE,OAAAhB,CAAO,EAAIC,EAAU,EACvB,CAAE,KAAMgB,EAAW,UAAWC,CAAmB,EAAIhB,EAAS,CAClE,GAAGiB,EAAiBnB,EAAkB,0BAA0B,EAChE,OAAQF,EAACK,GAELA,EAAS,MAAM,MACX,OAAQiB,GAAYA,EAAQ,cAAc,EAC3C,IAAKA,IAAa,CACjB,MAAOA,EAAQ,KACf,MAAOA,EAAQ,IACjB,EAAE,GAAK,CAAC,EAPN,UAUR,QAASJ,GAAS,cAAc,OAClC,CAAC,EACK,CAAE,KAAMK,EAAY,UAAWC,CAAoB,EACvDzB,EAAqBmB,GAAS,YAAY,EAEtCO,EAA8BC,EAClCC,EAAkC,KAAK,OACvC,CAAC,EACDT,CACF,EAEA,GAAIC,EAAW,CACb,IAAMS,EAAeH,EAA4B,OAAO,KACrDI,GAAUA,EAAM,OAAS,cAC5B,EACID,IACFA,EAAa,QAAUT,EAE3B,CAEA,GAAII,EAAY,CACd,IAAMO,EAAgBL,EAA4B,OAAO,KACtDI,GAAUA,EAAM,OAAS,kBAC5B,EACIC,IACFA,EAAc,QAAUP,EAE5B,CAEA,MAAO,CACL,UAAWH,GAAsBI,EACjC,4BAAAC,CACF,CACF,EAnDuC,2BA4D1BM,EAA0B/B,EAAA,CAAC,CACtC,YAAAgC,EACA,YAAAC,EACA,QAAAf,CACF,IAIM,CACJ,GAAM,CAAE,OAAAhB,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAS,CACd,SAAU,CAAC,iCAAkC4B,CAAW,EACxD,MAAO,GACP,QAAShC,EAAA,SAAY,CACnB,GAAI,CAACgC,EACH,MAAM,IAAI,MAAM,0BAA0B,EAE5C,IAAM3B,EAAW,MAAM6B,EAAmB,CACxC,OAAQhC,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAM,CACJ,aAAc8B,EACd,KAAM,iBACR,EACA,MAAO,CACL,oBACEd,GAAS,mBAAmB,aAAa,iBACzC,QACJ,CACF,CAAC,EAED,GAAIb,EAAS,OAAS,CAACA,EAAS,KAC9B,MAAM,IAAI,MAAM,wCAAwC,EAG1D,OAAOA,CACT,EAzBS,WA0BT,QAASa,GAAS,cAAc,SAAW,CAAC,CAACc,EAC7C,OAAQhC,EAAA,CAAC,CAAE,KAAAO,CAAK,IAAM,CACpB,IAAM4B,EAAY5B,GAAM,MAAQ,CAAC,EACjC,OAAOmB,EAAmBS,EAAWF,EAAaf,CAAO,CAC3D,EAHQ,SAIV,CAAC,CACH,EA7CuC","names":["useMutation","useQuery","useCompanyCurrencies","__name","queryOptions","client","useClient","useQuery","response","getIndexCompanyCurrency","data","currency","useCreateCompanyRequest","useMutation","payload","postCreateCompany","useUpdateCompanyRequest","companyId","jsonSchemaVersion","patchUpdateCompany2","useCountriesSchemaField","options","countries","isLoadingCountries","countriesOptions","country","currencies","isLoadingCurrencies","companyBasicInformationForm","createHeadlessForm","companyBasicInformationStepSchema","countryField","field","currencyField","useAddressDetailsSchema","countryCode","fieldValues","getShowFormCountry","jsfSchema"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{j as g}from"./chunk-7ENB7H4E.js";import{a as m,f as u}from"./chunk-VIGKOVHP.js";import{b as f,d as b}from"./chunk-KQPDXXG3.js";import{a as e}from"./chunk-P37U34EQ.js";var P={disclaimerCostCalculator:4668194326797,engagingContractors:43161434169613,employeeOnboardingTimeline:4411262104589,extraPayments:4466822781709,internationalPricing:4410698586893,pricingPlanOptions:43161720465421,ir35Status:42810224523917,remoteFxRate:33271144977421,terminationEmployeeCommunication:4411585179661,terminationNoticePeriods:5831900985613,involuntaryOffboardingServiceCharge:4406932229133,reconciliationInvoice:17604014808589},l=e(r=>`https://support.remote.com/hc/en-us/articles/${r}`,"buildZendeskURL");import{useQuery as y}from"@tanstack/react-query";var k=e((r,t)=>{let{client:i}=b();return y({queryKey:["zendesk-article",r],queryFn:e(async()=>{let n=await g({client:i,path:{id:Number(r)}});if(n.error)throw new Error(n.error.message||"Failed to fetch article");return n},"queryFn"),select:e(n=>{let o=n.data?.data.help_center_article;return o&&{...o,body:u(o.body||"")}},"select"),retry:!1,...t})},"useZendeskArticle");import{jsx as R}from"react/jsx-runtime";var C=e(({Trigger:r,zendeskId:t,open:i,onClose:n})=>{let{components:o}=f(),c=l(t),s=e(()=>{n?.()},"handleClose"),{data:a,isLoading:h,error:w}=k(t,{enabled:i}),p=o?.zendeskDrawer;if(!p)throw new Error("Zendesk drawer component not found");return R(p,{open:i,onClose:s,data:a,isLoading:h,error:w,zendeskURL:c,Trigger:r})},"ZendeskDrawer");import{useState as x}from"react";import{jsx as d}from"react/jsx-runtime";var Z="RemoteFlows__ZendeskTriggerButton text-blue-500 hover:underline inline-block text-xs bg-transparent border-none cursor-pointer p-0";function Q({zendeskId:r,className:t,onClick:i,children:n,external:o=!1}){let[c,s]=x(!1),a=e(()=>{o||s(!0),i?.(r)},"handleClick");return o?d("a",{href:l(r),target:"_blank",rel:"noopener noreferrer",onClick:a,className:m(Z,t),children:n}):d(C,{zendeskId:r,open:c,onClose:()=>s(!1),Trigger:d("button",{onClick:a,className:m(Z,t),children:n})})}e(Q,"ZendeskTriggerButton");export{P as a,Q as b};
|
|
2
|
+
//# sourceMappingURL=chunk-A232PIG7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as y}from"./chunk-SGE4DLC3.js";import{a as g}from"./chunk-4WSJ2A6Q.js";import{b as D}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as y}from"./chunk-SGE4DLC3.js";import{a as g}from"./chunk-4WSJ2A6Q.js";import{b as D}from"./chunk-RJY6AEJB.js";import{a as w}from"./chunk-VIGKOVHP.js";import{b as N}from"./chunk-KQPDXXG3.js";import{a as d}from"./chunk-P37U34EQ.js";import{forwardRef as S}from"react";import{jsx as B}from"react/jsx-runtime";var b=S(({data:a=[],columns:s,className:o=""},n)=>{let{components:m}=N(),i=m?.table;if(!i)throw new Error("Table component not found");return B(i,{ref:n,data:a,columns:s,className:o})});b.displayName="Table";import{Fragment as c,jsx as e,jsxs as t}from"react/jsx-runtime";var _="RemoteFlows__SummaryRow flex justify-between items-center py-2 text-xs",F="RemoteFlows__SummaryRowBorder border-b border-b-1 border-b-[#E4E4E7]",l=d(({children:a,withBorder:s=!1,className:o=""})=>e("div",{className:w(_,s&&F,o),children:a}),"SummaryRow"),k=d(({usedDays:a,bookedDays:s,approvedDaysBeforeTermination:o,approvedDaysAfterTermination:n,remainingDays:m,proposedTerminationDate:i,isUnlimitedPto:f,currentEntitlementDays:p})=>{let r=new Date(i).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"});return t("div",{children:[t(l,{withBorder:!0,children:[e("label",{children:"Number of days entitled to per year"}),e("p",{"data-testid":"entitled-days",className:"font-bold",children:f?"Unlimited":p})]}),t(l,{children:[e("label",{children:"Total days booked"}),e("p",{"data-testid":"booked-days",className:"font-bold",children:s})]}),t(l,{children:[e("label",{children:"Number of days already used"}),e("p",{"data-testid":"used-days",className:"font-bold",children:a})]}),t(l,{children:[t("label",{children:["Approved for use before ",r]}),e("p",{"data-testid":"approved-days-before-termination",className:"font-bold",children:o})]}),t(l,{withBorder:!0,children:[t("label",{children:["Approved for use after ",r]}),e("p",{"data-testid":"approved-days-after-termination",className:"font-bold",children:n})]}),t(l,{children:[e("label",{children:"Total days remaining unused"}),e("p",{"data-testid":"remaining-days",className:"font-bold",children:m})]}),e(l,{className:"mb-2 py-0",children:t("p",{className:"text-xs text-[#222E39]",children:["Unused days expire on ",r]})})]})},"SummaryTimeOff"),O=[{id:"formattedDate",label:"Dates",className:"w-[250px]",cellClassName:"font-medium"},{id:"duration",label:"Duration",render:d(a=>y({number:a,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!0}),"render")},{id:"status",label:"Status"}],C=d(({employeeName:a,timeoffQuery:s,entitledDays:o,countryName:n,currentEntitlementDays:m,formattedProposedTerminationDate:i,onOpenChange:f,open:p})=>{let{data:r,isLoading:u}=s;return e(g,{open:p,onOpenChange:f,title:`${a} paid time off breakdown`,trigger:e(D,{variant:"link",className:"text-xs text-[#3B82F6] font-bold p-0",children:"See detailed time off breakdown \u2197"}),className:"h-full w-[540px] mt-0 ml-auto px-4 RemoteFlows_DrawerTimeOff",children:!u&&e(c,{children:Array.isArray(r?.timeoffs)&&r?.timeoffs?.length>0?t(c,{children:[e("p",{className:"text-[#09090B] font-medium mb-4",children:"This list is for your information only."}),t("p",{className:"text-xs text-[#09090B] mb-1 flex items-center justify-between gap-2",children:[t("span",{children:["Annual entitlement for ",n]}),e("span",{className:"font-bold",children:o})]}),t("p",{className:"text-xs text-[#09090B] mb-6 flex items-center justify-between gap-2",children:[t("span",{children:["Entitlement up to ",i]}),e("span",{className:"font-bold",children:m})]}),e("div",{className:"mb-2",children:e(b,{data:r?.timeoffs,columns:O})}),t("p",{className:"text-xs",children:["Total of"," ",y({number:r?.bookedDays,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!0})," ","booked"]})]}):t(c,{children:[e("p",{className:"font-medium mb-1 text-[#09090B]",children:"No recorded time off"}),t("p",{className:"text-sm text-[#09090B]",children:["According to our records, ",a," has not taken any time off this year."]})]})})})},"DrawerTimeOff"),H=d(({employeeName:a,proposedTerminationDate:s,summaryData:o,formattedProposedTerminationDate:n,timeoffQuery:m,employment:i,onOpenChange:f,open:p})=>{let{entitledDays:r,bookedDays:u,usedDays:x,approvedDaysBeforeTermination:R,approvedDaysAfterTermination:P,remainingDays:v,currentEntitlementDays:T,isUnlimitedPto:h}=o.data;return t("div",{className:"RemoteFlows__PaidTimeOff__Container py-3",children:[e("h3",{className:"RemoteFlows__PaidTimeOff__Title mb-2",children:"Paid time off"}),t("p",{className:"RemoteFlows__PaidTimeOff__Description text-sm mb-2",children:["The proposed termination date for ",a," is"," ",n,". You will need to pay them for any unused accrued days. Below is a breakdown of their time off entitlement and usage for the current annual leave period:"]}),t("div",{className:"mb-2",children:[!o?.isLoading&&!o?.isError&&o?.data&&e(k,{usedDays:x,bookedDays:u,currentEntitlementDays:T,approvedDaysBeforeTermination:R,approvedDaysAfterTermination:P,remainingDays:v,proposedTerminationDate:s,isUnlimitedPto:h}),e(C,{employeeName:a,timeoffQuery:m,entitledDays:r,currentEntitlementDays:T,countryName:i?.country?.name??"Unknown",onOpenChange:f,formattedProposedTerminationDate:n,open:p})]})]})},"PaidTimeOff");export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AJCKNHZB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-BVFQ6LFD.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-AJIDQALB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as y,b as d,c as p,d as R}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as y,b as d,c as p,d as R}from"./chunk-KRSUSMJK.js";import{a as w}from"./chunk-TFSRZOMP.js";import{a as _,b as i}from"./chunk-VIGKOVHP.js";import{a as m}from"./chunk-P37U34EQ.js";import{ChevronDown as A,Globe as N}from"lucide-react";import{useState as h}from"react";import{Fragment as C,jsx as e,jsxs as r}from"react/jsx-runtime";var v=m(t=>{if(t.length<2)return{currency:null,costsPerCountry:[],employeesCost:null};let o=t[0]?.employer_currency_costs.currency,c=t.reduce((l,s)=>{let a=s.country.name;return l[a]={country:s.country,monthlyTotal:(l[a]?.monthlyTotal||0)+s.employer_currency_costs.monthly_total,annualTotal:(l[a]?.annualTotal||0)+s.employer_currency_costs.annual_total},l},{}),n=Object.values(c).map(({country:l,monthlyTotal:s,annualTotal:a})=>({country:l,monthlyCost:i(s,o.code),annualCost:i(a,o.code)})),u={monthlyTotal:i(t.reduce((l,s)=>l+s.employer_currency_costs.monthly_total,0),o.code),annualTotal:i(t.reduce((l,s)=>l+s.employer_currency_costs.annual_total,0),o.code)};return{currency:o,costsPerCountry:n,employeesCost:u}},"useSummaryResults"),f=m(({currency:t,title:o})=>e("div",{className:"RemoteFlows__SummaryResults__Header flex items-center justify-between w-full",children:r("div",{className:"RemoteFlows__SummaryHeader__Container flex flex-row items-center gap-6",children:[e("div",{className:"RemoteFlows__SummaryHeader__IconContainer flex h-12 w-12 items-center justify-center rounded-lg bg-[#F4F4F5]",children:e(N,{className:"RemoteFlows__SummaryHeader__Icon h-6 w-6 text-[#000000]"})}),r("div",{className:"RemoteFlows__SummaryHeader__Content space-y-1",children:[e("h2",{className:"RemoteFlows__SummaryHeader__Title text-lg font-medium leading-none text-[#181818]",children:o}),r("p",{className:"RemoteFlows__SummaryHeader__Currency text-xs text-[#71717A]",children:["Employer billing currency: ",t.code]})]})]})}),"SummaryHeader"),g=m(({label:t,columns:o,rows:c,defaultValue:n="accordion",className:u})=>{let l=o.length===1?"grid-cols-2":"grid-cols-3";return e(y,{type:"single",collapsible:!0,defaultValue:n,className:_("RemoteFlows__SummaryResults__MultiColumnAccordion w-full",u),children:r(d,{value:n,className:"RemoteFlows__SummaryResults__AccordionItem border-none",children:[e(p,{className:"RemoteFlows__SummaryResults__AccordionTrigger hover:no-underline px-0 py-3 [&>svg]:hidden group",children:r("div",{className:_("RemoteFlows__SummaryResults__AccordionHeader grid items-center w-full",l),children:[r("div",{className:"RemoteFlows__SummaryResults__AccordionHeader__LabelContainer flex items-center gap-2",children:[t,e(A,{className:"RemoteFlows__SummaryResults__ChevronDown h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:o[0]}):o.map((s,a)=>e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:s},a))]})}),e(R,{className:"RemoteFlows__SummaryResults__AccordionContent px-0 pb-4",children:e("div",{className:"RemoteFlows__SummaryResults__AccordionRows space-y-3",children:c.map((s,a)=>r("div",{className:_("RemoteFlows__SummaryResults__AccordionRow grid items-center",l),children:[e("div",{className:"flex items-center gap-2",children:s.label}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:s.values[0]}):s.values.map((F,x)=>e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:F},x))]},a))})})]})})},"MultiColumnAccordion"),S=m(({employeesCost:t})=>e(g,{label:e("span",{className:"RemoteFlows__CostForAllEmployees__Label text-sm font-medium text-[#0F172A]",children:"Cost for all employees"}),columns:["Total cost"],rows:[{label:r(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__MonthlyLabel text-sm text-[#09090B]",children:"Monthly cost"})]}),values:[t.monthlyTotal]},{label:r(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__AnnualLabel text-sm text-[#09090B]",children:"Annual cost"})]}),values:[t.annualTotal]}],defaultValue:"cost-breakdown"}),"CostForAllEmployees"),b=m(({costsPerCountry:t})=>e(g,{label:e("span",{className:"RemoteFlows__CostsPerCountry__Label text-sm font-medium text-[#0F172A]",children:"Cost per country"}),columns:["Monthly cost","Annual cost"],rows:t.map(o=>({label:r(C,{children:[e("span",{className:"RemoteFlows__CostsPerCountry__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostsPerCountry__CountryName text-sm text-[#09090B]",children:o.country.name})]}),values:[o.monthlyCost,o.annualCost]})),defaultValue:"country-breakdown"}),"CostsPerCountry"),k=m(({estimations:t})=>{let{currency:o,costsPerCountry:c,employeesCost:n}=v(t),[u,l]=h("summary");return!o||c.length===0||Object.keys(n).length===0?null:e(w,{className:"RemoteFlows__SummaryResults__Card p-10",children:e(y,{type:"single",collapsible:!0,defaultValue:u,onValueChange:l,className:"RemoteFlows__SummaryResults__Accordion w-full",children:r(d,{value:"summary",className:"RemoteFlows__SummaryResults__AccordionItem border-border",children:[e("div",{className:_("RemoteFlows__SummaryResults__AccordionTriggerContainer",{RemoteFlows__Separator:u==="summary"}),children:e(p,{iconClassName:"size-6",className:"RemoteFlows__SummaryResults__MainAccordionTrigger hover:no-underline px-0 py-4",children:e(f,{currency:o,title:"Summary Overview"})})}),r(R,{className:"RemoteFlows__SummaryResults__MainAccordionContent px-0 pb-4 mt-6",children:[e("div",{className:"RemoteFlows__Separator",children:e(S,{employeesCost:n})}),e("div",{className:"RemoteFlows__SummaryResults__CostsPerCountryContainer mt-6",children:e(b,{costsPerCountry:c})})]})]})})})},"SummaryResults");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ALVZNFB7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-YPUP5LNV.js";import{a as r}from"./chunk-MJQUJZCD.js";import{a as t}from"./chunk-HFI3LXZ2.js";import{a as f}from"./chunk-4UO7KLRK.js";import{a as e}from"./chunk-UMVMNUPH.js";import{a as p}from"./chunk-AJIDQALB.js";import{a as n}from"./chunk-WR5DSTKP.js";import{a as m}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{useId as c}from"react";import{jsx as F}from"react/jsx-runtime";var k=i(({employmentId:l,render:T,options:d,initialValues:s})=>{let u=c(),o=t({employmentId:l,options:d,initialValues:s});return F(m.Provider,{value:{formId:u,terminationBag:o},children:T({terminationBag:o,components:{SubmitButton:r,Back:n,EmployeeComunicationStep:e,TerminationDetailsStep:a,PaidTimeOffStep:p,AdditionalDetailsStep:f}})})},"TerminationFlow");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-B2CNIT3P.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-TOQPDTGG.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function n({field:t,fieldData:p}){return r(o,{type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",...t,...p})}e(n,"NumberFieldDefault");export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-B66V5QEC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as k}from"./chunk-DFAY4TWC.js";import{a as C,b as w,c as F,d as P}from"./chunk-MSBCYMSH.js";import{i as _,j as v,k as x,l as h,m as b}from"./chunk-H2JFQGQJ.js";import{a as u,b as D}from"./chunk-RJY6AEJB.js";import{a as t}from"./chunk-VIGKOVHP.js";import{a as o}from"./chunk-P37U34EQ.js";import{CalendarIcon as L}from"lucide-react";import{format as R}from"date-fns";import{ChevronLeft as I,ChevronRight as M}from"lucide-react";import{DayPicker as z}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function N({className:r,classNames:i,showOutsideDays:s=!0,...n}){return p(z,{showOutsideDays:s,className:t("p-3",r),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:t(u({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:t("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",n.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:t(u({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...i},components:{IconLeft:o(({className:d,...l})=>p(I,{className:t("size-4",d),...l}),"IconLeft"),IconRight:o(({className:d,...l})=>p(M,{className:t("size-4",d),...l}),"IconRight")},...n})}o(N,"Calendar");import{Fragment as V,jsx as e,jsxs as m}from"react/jsx-runtime";function X({field:r,fieldData:i,fieldState:s}){let{name:n,label:d,description:l,minDate:f,maxDate:g}=i,c=f?new Date(f):void 0,y=g?new Date(g):void 0;return m(_,{"data-field":n,className:`flex flex-col RemoteFlows__DatePickerField__Item__${n}`,children:[e(v,{className:"RemoteFlows__DatePickerField__Label",children:d}),m(w,{children:[e(F,{asChild:!0,children:e(x,{children:e("div",{children:m(D,{type:"button",variant:"outline",className:t("w-full pl-3 text-left font-normal",!r.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${n}`,children:[r.value&&e(V,{children:R(r.value,"yyyy-MM-dd")}),e(L,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(P,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(N,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:r.value?new Date(r.value):void 0,onSelect:a=>{r.onChange(a?R(a,"yyyy-MM-dd"):null)},defaultMonth:c,components:{DayContent:o(a=>e(C,{children:a.date.getDate()}),"DayContent")},disabled:a=>!!(c&&a<c||y&&a>y)})})]}),l?m(h,{children:[l," ",e(k,{helpCenter:i.meta?.helpCenter})]}):null,s.error&&e(b,{className:"RemoteFlows__DatePickerField__Error"})]})}o(X,"DatePickerFieldDefault");export{X as a};
|
|
2
|
+
//# sourceMappingURL=chunk-B7EJ2OAA.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-LNV36S6D.js";import{a as F}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-LNV36S6D.js";import{a as F}from"./chunk-SLLDKJ7K.js";import{e as p}from"./chunk-T7O3YYOG.js";import{f as l,g as u}from"./chunk-H2JFQGQJ.js";import{b as _}from"./chunk-TVZAFTPT.js";import{a}from"./chunk-P37U34EQ.js";import{useEffect as w}from"react";import{jsx as r}from"react/jsx-runtime";var R=["effective_date","reason_for_change","reason_for_change_description","additional_comments","additional_comments_toggle"];function x({onSubmit:b,onError:m,onSuccess:A}){let{formId:C,contractAmendment:{checkFieldUpdates:h,fields:s,onSubmit:y,stepState:S,initialValues:i,handleValidation:g}}=_(),V=f(g),e=l({resolver:V,defaultValues:S.values?.form||i,shouldUnregister:!0,mode:"onBlur"});w(()=>{let t=e?.watch(o=>{(Object.keys(e.formState.dirtyFields).length>0||e.formState.isDirty)&&h(o)});return()=>t?.unsubscribe()},[]);let v=a(async t=>{let o=!1;for(let[c,P]of Object.entries(t))if(!R.includes(c)&&i[c]!==P){o=!0;break}if(!o)return m?.({message:"no_changes_detected_contract_details"});let d=await p(t,s,{isPartialValidation:!1});await b?.(d);let n=await y(t);n.error?m?.(n.error):await A?.(n.data)},"handleSubmit");return r(u,{...e,children:r("form",{id:C,"data-testid":"contract-amendment-form",onSubmit:e.handleSubmit(v),className:"space-y-4 RemoteFlows__ContractAmendmentForm",children:r(F,{fields:s})})})}a(x,"ContractAmendmentForm");export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BG66XH5L.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d,b as w}from"./chunk-EAF6XPH6.js";import{a as g}from"./chunk-JI4CYPLW.js";import{a as E}from"./chunk-EUSCQL4H.js";import{e as C}from"./chunk-T7O3YYOG.js";import{O as F,e as _,y as P}from"./chunk-7ENB7H4E.js";import{a as h}from"./chunk-X6ZAR7ZL.js";import{a as j}from"./chunk-TSPDJUGG.js";import{d as c}from"./chunk-KQPDXXG3.js";import{a as e}from"./chunk-P37U34EQ.js";import{useMutation as b,useQuery as I}from"@tanstack/react-query";var B=e(({countryCode:n,employment:r,fieldValues:a,options:t})=>{let{client:u}=c(),m=t?.jsonSchemaVersion?.contract_amendments?{json_schema_version:t.jsonSchemaVersion.contract_amendments}:{};return I({queryKey:["contract-amendment-schema"],retry:!1,queryFn:e(async()=>{let o=await _({client:u,headers:{Authorization:""},query:{employment_id:r?.id,country_code:n,...m}});if(o.error||!o.data)throw new Error("Failed to fetch contract amendment schema");return o},"queryFn"),enabled:!!r,select:e(({data:o})=>{let l=o?.data||{};return E(l,a,t)},"select")})},"useContractAmendmentSchemaQuery"),J=e(n=>{let{client:r}=c(),a=n?.jsonSchemaVersion?.contract_amendments?{json_schema_version:n.jsonSchemaVersion.contract_amendments}:{};return b({mutationFn:e(t=>P({client:r,headers:{Authorization:""},body:t,query:{...a}}),"mutationFn")})},"useCreateContractAmendmentMutation"),K=e(n=>{let{client:r}=c(),a=n?.jsonSchemaVersion?.contract_amendments?{json_schema_version:n.jsonSchemaVersion.contract_amendments}:{};return b({mutationFn:e(t=>F({client:r,headers:{Authorization:""},body:t,query:{...a}}),"mutationFn")})},"useAutomatableContractAmendmentMutation"),te=e(({employmentId:n,countryCode:r,options:a})=>{let{fieldValues:t,setFieldValues:u,stepState:m,nextStep:o,previousStep:l}=j(d),{data:i,isLoading:v,isError:q,error:Q}=g({employmentId:n,queryParams:{exclude_files:!0}}),{data:s,isLoading:L,isError:M,error:T}=B({employment:i,countryCode:r,fieldValues:{...m.values?.[m.currentStep.name],...t},options:a}),k=w(i,s?.fields),S=J(a),A=K(a);async function x(p){let f=await C(p,s?.fields||[],{isPartialValidation:!1}),V={employment_id:i?.id,amendment_contract_id:i?.active_contract_id,contract_amendment:{...f}};switch(m.currentStep.name){case d.form.name:{let{mutateAsync:y}=h(A),H=await y(V);return o(),H}case d.confirmation_form.name:{let{mutateAsync:y}=h(S);return y(V)}default:throw new Error("Invalid step state")}}e(x,"onSubmit");async function z(p){if(s){let f=await C(p,s?.fields);return s?.handleValidation(f)}return null}e(z,"handleValidation");function O(){l()}return e(O,"back"),{stepState:m,fields:s?.fields||[],isLoading:v||L,isError:q||M,error:Q||T,isSubmitting:A.isPending||S.isPending,initialValues:k,values:t,handleValidation:z,checkFieldUpdates:u,onSubmit:x,back:O}},"useContractAmendment");export{te as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BGRX3DBF.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-MRYRNB7Y.js";import{b as l}from"./chunk-LNV36S6D.js";import{a as F}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-MRYRNB7Y.js";import{b as l}from"./chunk-LNV36S6D.js";import{a as F}from"./chunk-SLLDKJ7K.js";import{f as s,g as a}from"./chunk-H2JFQGQJ.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as y}from"react";import{jsx as r}from"react/jsx-runtime";function A({defaultValues:u,fields:m,onSubmit:d}){let{formId:c,terminationBag:o}=f(),p=l(o.handleValidation),e=s({resolver:p,defaultValues:u,shouldUnregister:!1,mode:"onBlur"});y(()=>{let V=e?.watch(i=>{Object.keys(i).some(n=>i[n]!==o?.initialValues?.[n])&&o?.checkFieldUpdates(i)});return()=>V?.unsubscribe()},[]);let T=m||(o?.fields??[]);return r(a,{...e,children:r("form",{id:c,onSubmit:e.handleSubmit(d),className:"space-y-4 RemoteFlows__TerminationForm",children:r(F,{fields:T})})})}t(A,"TerminationForm");export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BVFQ6LFD.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as c,j as i,k as n,l as _,m as F}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{i as c,j as i,k as n,l as _,m as F}from"./chunk-H2JFQGQJ.js";import{a as d,b as S,c as p,d as u,e as g,f as b}from"./chunk-DXIJUMLU.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as v}from"react/jsx-runtime";function R({field:t,fieldState:a,fieldData:C}){let{name:r,label:o,description:m,options:N}=C;return v(c,{"data-field":r,className:`RemoteFlows__SelectField__Item__${r}`,children:[e(i,{className:"RemoteFlows__SelectField__Label",children:o}),e(n,{children:e("div",{className:"relative",children:v(d,{value:t.value||"",onValueChange:l=>{t.onChange(l)},children:[e(u,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!a.error,"aria-label":o,children:e("span",{className:"absolute",children:e(p,{placeholder:o})})}),e(g,{className:"RemoteFlows__SelectField__Content",children:e(S,{className:"RemoteFlows__SelectField__Group",children:N?.map(l=>e(b,{value:l.value,className:"RemoteFlows__SelectField__SelectItem",disabled:l.disabled,children:l.label},l.value))})})]})})}),m&&e(_,{children:m}),a.error&&e(F,{})]})}s(R,"SelectFieldDefault");export{R as a};
|
|
2
|
+
//# sourceMappingURL=chunk-C6KWUSCU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as e}from"./chunk-A232PIG7.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-CARPUKT7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as t}from"./chunk-A232PIG7.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function p({helpCenter:e}){return e?n(t,{zendeskId:e.id,children:e.callToAction}):null}r(p,"HelpCenter");export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DFAY4TWC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-TOQPDTGG.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function t({field:m,fieldData:i}){return n(o,{name:m.name,...i,type:"email"})}e(t,"EmailFieldDefault");export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DNDYXEZ6.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-VIGKOVHP.js";import{a as r}from"./chunk-P37U34EQ.js";import*as e from"@radix-ui/react-select";import{CheckIcon as m,ChevronDownIcon as s,ChevronUpIcon as d}from"lucide-react";import{jsx as t,jsxs as n}from"react/jsx-runtime";function S({...i}){return t(e.Root,{"data-slot":"select",...i})}r(S,"Select");function P({...i}){return t(e.Group,{"data-slot":"select-group",...i})}r(P,"SelectGroup");function g({...i}){return t(e.Value,{"data-slot":"select-value",...i})}r(g,"SelectValue");function x({className:i,children:o,...a}){return n(e.Trigger,{"data-slot":"select-trigger",className:l("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-full items-center justify-between rounded-xl border bg-transparent px-4 py-7 text-sm whitespace-nowrap transition-[color] outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","focus-visible:border-focused",i),...a,children:[o,t(e.Icon,{asChild:!0,className:"absolute right-4",children:t(s,{className:"size-4"})})]})}r(x,"SelectTrigger");function b({className:i,children:o,position:a="popper",...c}){return t(e.Portal,{children:n(e.Content,{"data-slot":"select-content",className:l("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",i),position:a,...c,children:[t(p,{}),t(e.Viewport,{className:l(a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o}),t(u,{})]})})}r(b,"SelectContent");function y({className:i,children:o,...a}){return n(e.Item,{"data-slot":"select-item",className:l("focus:bg-accent focus:text-accent-foreground min-h-11 justify-between [&_svg:not([class*='text-'])]:text-muted-foreground flex w-full cursor-default items-center gap-2 py-2 px-4 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",i),...a,children:[t(e.ItemText,{children:o}),t("span",{className:"flex size-3.5 items-center justify-center",children:t(e.ItemIndicator,{children:t(m,{className:"size-4"})})})]})}r(y,"SelectItem");function p({className:i,...o}){return t(e.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:l("flex cursor-default items-center justify-center py-1",i),...o,children:t(d,{className:"size-4"})})}r(p,"SelectScrollUpButton");function u({className:i,...o}){return t(e.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:l("flex cursor-default items-center justify-center py-1",i),...o,children:t(s,{className:"size-4"})})}r(u,"SelectScrollDownButton");export{S as a,P as b,g as c,x as d,b as e,y as f};
|
|
2
|
+
//# sourceMappingURL=chunk-DXIJUMLU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-WEAO46EO.js";import{b as i}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:s,onSuccess:c,onError:t}){let{onboardingBag:o}=i(),u=e(async n=>{try{await s?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await c?.(r?.data),o?.next();return}r?.error&&t?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(a,{defaultValues:l,onSubmit:u})}e(y,"SelectCountryStep");export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EDLQ3JNY.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as x,h as _}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as x,h as _}from"./chunk-H2JFQGQJ.js";import{b as C}from"./chunk-KQPDXXG3.js";import{a}from"./chunk-P37U34EQ.js";import D from"lodash.groupby";import $ from"lodash.capitalize";var S=60,F=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function M(e){if(e<60)return`${e}m`;let s=Math.floor(e/S),n=e%S;return n>0?`${s}h${n}m`:`${s}h`}a(M,"convertBreakDurationToHours");function O(e){let s=e.reduce((n,u)=>u.hours+n,0);return Number(s.toFixed(2))}a(O,"calculateTotalWorkHours");function H(e,s){let n=s.map(({day:c})=>c.toLowerCase()),u=n.indexOf(e),i=null;for(;u<n.length&&!i;){let c=n[u],k=n[u+1],r=F.indexOf(c)+1;F[r]===k||(i=c),u+=1}return i}a(H,"findLastConsecutiveDay");function N(e){return e.start_time&&e.end_time&&(typeof e.hours=="number"?e.hours:Number.parseInt(e.hours))>0}a(N,"shouldSummarizeSchedule");function T(e){return Number.parseInt(e.break_duration_minutes)>0}a(T,"shouldSummarizeBreaks");function I(e){let s=e.filter(N),n=D(s,r=>`${r.start_time}|${r.end_time}`),u=e.filter(T),i=D(u,"break_duration_minutes"),c=Object.keys(n).map(r=>{let o=n[r],y=o[0].day,[p,h]=r.split("|"),t=`from <span>${p.replace(":","h")}</span> to <span>${h.replace(":","h")}</span>`,d=H(y,o),m=(d?o.findIndex(f=>f.day===d):-1)===o.length-1;return o.length===1?`${$(y)}, ${t}`:!m||!d?o.reduce((f,b,v)=>{let g=$(b.day);return v===o.length-1?`${f}and ${g}, ${t}`:`${f}<span>${g}</span>, `},""):`<span>${$(y)}</span> to <span>${$(d)}</span>, ${t}`}),k=Object.keys(i).reverse().map((r,o)=>{let y=o===0,p=i[r],h=M(parseInt(r,10));if(Object.keys(i).length===1)return`With ${h} daily breaks`;if(p.length===1){let t=`${h} break on ${$(p[0].day)}.`;return y?`With ${t}`:t}return p.reduce((t,d,l)=>{let m=$(d.day);return l===0?`${t} ${m}`:l===p.length-1?`${t}, and ${m}.`:`${t}, ${m}`},y?`With ${h} break on`:`${h} break on`)});return{workHoursSummary:c,breakSummary:k}}a(I,"buildWorkScheduleSummary");function P(e){let{checked:s,start_time:n,end_time:u,break_duration_minutes:i}=e;if(!s)return 0;let[c,k]=n.split(":").map(Number),[r,o]=u.split(":").map(Number),y=c*60+k,t=(r*60+o-y-Number.parseInt(i||"0"))/60;return t===Math.floor(t)?t:Number(t.toFixed(2))}a(P,"calculateHours");var w={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function R(e){return w[e]}a(R,"getShortWeekday");import{jsx as W}from"react/jsx-runtime";function U({name:e,defaultValue:s,description:n,label:u,onChange:i,multiple:c,options:k,component:r,...o}){let{components:y}=C(),{control:p}=x(),h=a((t,d,l)=>{if(c&&l){let m=t.value?[...t.value]:[];d?m.includes(l)||t.onChange([...m,l]):t.onChange(m.filter(f=>f!==l))}else t.onChange(d)},"handleCheckboxChange");return W(_,{control:p,name:e,defaultValue:s,render:({field:t,fieldState:d})=>{let l=r||y?.checkbox;if(!l)throw new Error(`Checkbox component not found for field ${e}`);let m={name:e,description:n,label:u,defaultValue:s,multiple:c,options:k,...o};return W(l,{field:{...t,onChange:a((f,b)=>{h(t,f,b),i?.(f,b)},"onChange")},fieldState:d,fieldData:m})}})}a(U,"CheckBoxField");export{F as a,O as b,I as c,P as d,R as e,U as f};
|
|
2
|
+
//# sourceMappingURL=chunk-EHD2YB5F.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-DFAY4TWC.js";import{i as a,j as c,k as l,l as m,m as _}from"./chunk-H2JFQGQJ.js";import{a as u,b as R}from"./chunk-SNBAM7SA.js";import{a as F}from"./chunk-VIGKOVHP.js";import{a as p}from"./chunk-P37U34EQ.js";import{Fragment as g}from"react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var w=p(({field:s,fieldData:i,fieldState:C})=>{let{name:r,label:d,description:n,options:b}=i;return e("fieldset",{className:F("space-y-3",`RemoteFlows__RadioGroupField__Item__${r}`),"data-field":r,children:t(a,{children:[e("legend",{children:d}),n&&e(m,{helpCenter:e(f,{helpCenter:i.meta?.helpCenter}),children:n}),e(l,{children:e(u,{"aria-label":d||r,onValueChange:o=>{s.onChange(o)},value:s.value,className:"flex flex-col space-y-3",children:b?.map(o=>e(g,{children:t(a,{"data-field":r,className:"flex items-start space-x-3 space-y-0 gap-0 RemoteFlows__RadioField__Item",children:[e(l,{children:e(R,{value:o.value,className:"RemoteFlows__RadioField__Input",disabled:o.disabled})}),t("div",{children:[e(c,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:o.label}),o.description&&e(m,{className:"mt-2",children:o.description})]})]})},o.value))})}),C.error&&e(_,{})]})})},"RadioGroupFieldDefault");export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ERSP6CZ3.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as _}from"./chunk-3UDRMQNE.js";import{a as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as _}from"./chunk-3UDRMQNE.js";import{a as S}from"./chunk-3DMWQJ5W.js";import{b as f}from"./chunk-RAH453TV.js";import{a as m}from"./chunk-VDRNNOVA.js";import{d as g}from"./chunk-IZGJP7OI.js";import{a as y}from"./chunk-LHEF2FN7.js";import{a as p,b as u}from"./chunk-A232PIG7.js";import{a as e}from"./chunk-P37U34EQ.js";import{format as w}from"date-fns";import{Fragment as P,jsx as d,jsxs as I}from"react/jsx-runtime";var C=e(n=>n===y,"isStandardPricingPlan"),b=e((n,i)=>{let t=i&&i<w(new Date,"yyyy-MM-dd");if(!n&&t)return f({severity:"warning",description:"Backdating the service start date is not supported in the selected Contractor Management plan."})},"showBackDateWarning"),A=e((n,i,t,o)=>{let r=C(t),s=o?.service_duration?.provisional_start_date,c=b(r,s);return{...n,fields:{...n?.fields,"service_duration.provisional_start_date":{description:i,"x-jsf-presentation":{minDate:r?void 0:w(new Date,"yyyy-MM-dd"),...c}}}}},"buildContractDetailsJsfModify"),O=e((n,i,t)=>{let o=n==="SAU",r=n==="GBR",s=g(n);if(!o&&!r&&!s)return t?.jsfModify?.basic_information;if(r)return{...t?.jsfModify?.basic_information,create:{...t?.jsfModify?.basic_information?.create,ir35:{title:"IR35 Status",description:e(()=>I(P,{children:["What's your contractor's employment status?"," ",d(u,{zendeskId:p.ir35Status,children:"Learn more about IR35"})]}),"description"),oneOf:[{const:"inside",title:"Inside IR35 (deemed employee)"},{const:"outside",title:"Outside IR35"},{const:"exempt",title:"Exempt from IR35"}],"x-jsf-presentation":{inputType:"select"}},ir35_sds_file:{title:"Upload SDS",description:"Status determination statement",type:"string","x-jsf-presentation":{inputType:"file",accept:m.document,multiple:!1,maxSize:20971520,calculateDynamicProperties:e(a=>{let l=a.ir35;return{isVisible:l==="inside"||l==="outside"}},"calculateDynamicProperties")}}},allOf:[{if:{properties:{ir35:{enum:["inside","outside"]}}},then:{required:["ir35_sds_file"]},else:{properties:{ir35_sds_file:!1}}}],required:["ir35"],orderRoot:e(a=>[...a,"ir35","ir35_sds_file"],"orderRoot")};let c=o?"Is your contractor a Saudi Arabia national, or a non-Saudi national contracting via a local business entity or under a Special Privilege Iqama visa?":`Is the contractor a ${i??"selected country"} national, or a non-${i??"selected country"} national contracting through their local business entity?`,h=o?"Please be aware that contracting with non-Saudi Arabia nationals that are not operating as a company or under a Special Privilege Iqama visa can lead to fines for operating without proper work authorization. If you are concerned, please speak with the Contractor and/or local Saudi Arabia counsel to ensure compliance.":`Be aware that the Contractor must be a ${i??"selected country"} national, or a non-${i??"selected country"} national operating through their company to comply with the legal requirements for performing services and deliverables as a contractor in ${i??"selected country"}. If you are concerned, speak with the Contractor and/or local counsel to ensure compliance.`;return{...t?.jsfModify?.basic_information,create:{...t?.jsfModify?.basic_information?.create,nationality_status:{title:c,description:"",type:"string",oneOf:[{const:"national",description:"",title:"Yes"},{const:"non-national",description:h,title:"No"}],"x-jsf-presentation":{inputType:"radio"}}},required:["nationality_status"],orderRoot:e(a=>[...a,"nationality_status"],"orderRoot")}},"buildBasicInformationJsfModify"),q=e((n,i)=>{let t=n?.jsfModify?.contract_preview?.fields;return{fields:{contract_preview_header:{...t?.contract_preview_header,"x-jsf-presentation":{Component:e(o=>{let r=t?.contract_preview_header?.["x-jsf-presentation"]?.Component||_;return d(r,{...o})},"Component")}},contract_preview_statement:{...t?.contract_preview_statement,"x-jsf-presentation":{Component:e(o=>{let r=t?.contract_preview_statement?.["x-jsf-presentation"]?.Component||S;return d(r,{reviewCompleted:!!i?.review_completed,...o})},"Component")}},signature:{...t?.signature,"x-jsf-presentation":{calculateDynamicProperties:e(o=>({isVisible:!!o.review_completed}),"calculateDynamicProperties"),...t?.signature?.["x-jsf-presentation"]}}}}},"buildContractPreviewJsfModify");export{A as a,O as b,q as c};
|
|
2
|
+
//# sourceMappingURL=chunk-FERWQW33.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as p}from"./chunk-RJY6AEJB.js";import{a as g}from"./chunk-VIGKOVHP.js";import{a as n}from"./chunk-P37U34EQ.js";import{useState as y,useRef as E,useEffect as R}from"react";import{Upload as k,X as B}from"lucide-react";import{jsx as t,jsxs as o}from"react/jsx-runtime";var M=n(l=>l?l.split(",").map(m=>m.trim().toUpperCase()).join(", "):null,"getAcceptedFormats");function L({onChange:l,className:m,multiple:r,accept:f,files:i,id:h}){let[a,c]=y(i||[]),d=E(null);R(()=>{i&&i.length>0&&c(i)},[i]);let v=n(e=>{e.preventDefault(),d.current?.click()},"handleClick"),N=n(e=>{if(e.target.files&&e.target.files.length>0){let s=Array.from(e.target.files);c([...a,...s]),l([...a,...s])}},"handleChange"),F=n(e=>{c(s=>s.filter(C=>C.name!==e.name)),l(a.filter(s=>s.name!==e.name))},"onRemoveFile"),u=M(f);return o("div",{className:g("flex flex-col items-start gap-4",m),children:[t("input",{type:"file",ref:d,id:h,onChange:N,className:"hidden","aria-label":"File upload",multiple:r,accept:f}),o(p,{type:"button",onClick:v,className:"gap-2",children:[t(k,{className:"h-4 w-4"}),"Choose File"]}),u&&o("div",{className:"text-sm text-gray-600",children:["Accepted formats:"," ",t("span",{className:"font-medium",children:u})]}),a.length===0&&t("div",{className:"text-sm",children:r?t("span",{className:"font-medium",children:"No files selected. You can select multiple files"}):t("span",{className:"font-medium",children:"No file selected."})}),a.length>0&&a.map((e,s)=>o("div",{className:"text-sm flex items-center gap-2",children:["Selected file: ",t("span",{className:"font-medium",children:e.name})," (",Math.round(e.size/1024)," KB)",t(p,{type:"button",variant:"ghost",onClick:()=>F(e),children:t(B,{})})]},s))]})}n(L,"FileUploader");export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FUGPVPYX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-ZWIH53GL.js";import{a as c}from"./chunk-YOIXPHGR.js";import{b as s}from"./chunk-Q3ALCPJN.js";import{c as l}from"./chunk-IZGJP7OI.js";import{k as e}from"./chunk-VIGKOVHP.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as m,jsxs as g}from"react/jsx-runtime";function O({onSubmit:p,onSuccess:u,onError:S}){let{contractorOnboardingBag:r}=s(),C=a(async n=>{try{let t=await r.parseFormValues(n);await p?.(t);let o=await r.onSubmit(n);if(o?.data){await u?.(o?.data),r?.next();return}}catch(t){let o=e(t,r.meta?.fields?.contract_details);S?.(o)}},"handleSubmit"),f=r.stepState.values?.contract_details||r.initialValues.contract_details,i=r.stepState.values?.pricing_plan?.subscription,b=l(i);return g("div",{className:"space-y-4",children:[m(c,{defaultValues:f,onSubmit:C}),b&&m(d,{subscription:i})]})}a(O,"ContractDetailsStep");export{O as a};
|
|
2
|
+
//# sourceMappingURL=chunk-G6QGYKPO.js.map
|