@remoteoss/remote-flows 1.25.0 → 1.27.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-EPOEMC2J.js +2 -0
- package/dist/CheckboxFieldDefault-QLUSGCSO.js +2 -0
- package/dist/CountryFieldDefault-BNXTXEWS.js +2 -0
- package/dist/DatePickerFieldDefault-FJ7HVEV5.js +2 -0
- package/dist/DrawerDefault-WN7Z4LY7.js +2 -0
- package/dist/EmailFieldDefault-LTDNKVUW.js +2 -0
- package/dist/FieldsetToggleButtonDefault-4RZ3GTDF.js +2 -0
- package/dist/FileUploadFieldDefault-HSLW6SHB.js +2 -0
- package/dist/MultiSelectFieldDefault-GSJWVA5H.js +2 -0
- package/dist/NumberFieldDefault-NVOVVUNK.js +2 -0
- package/dist/RadioGroupFieldDefault-ZLKZ4B4D.js +2 -0
- package/dist/SelectFieldDefault-WU4CDEZD.js +2 -0
- package/dist/StatementDefault-T3RCCUE5.js +2 -0
- package/dist/TableFieldDefault-S5XRYF36.js +2 -0
- package/dist/TelFieldDefault-D5EW44ZU.js +2 -0
- package/dist/TextAreaFieldDefault-G5AIZNH7.js +2 -0
- package/dist/TextFieldDefault-FCVIHZTV.js +2 -0
- package/dist/WorkScheduleFieldDefault-5JZPKI2P.js +2 -0
- package/dist/ZendeskDrawerDefault-WQ32QQVE.js +2 -0
- package/dist/{chunk-R4PLUUI3.js → chunk-2OGPILJM.js} +2 -2
- package/dist/{chunk-RAVJ3LMO.js → chunk-2P4RPBIO.js} +2 -2
- package/dist/{chunk-MEOD4UGO.js → chunk-2UZ72KAQ.js} +2 -2
- package/dist/chunk-3DQ5RNLK.js +2 -0
- package/dist/chunk-3DQ5RNLK.js.map +1 -0
- package/dist/{chunk-IJDBUKEM.js → chunk-4Y2DWXQB.js} +2 -2
- package/dist/{chunk-FHGQELT7.js → chunk-5EDCZGZV.js} +2 -2
- package/dist/{chunk-HLR7IUW7.js → chunk-5QHQT6DL.js} +2 -2
- package/dist/{chunk-N4TAXXWW.js → chunk-5TGKHA2W.js} +2 -2
- package/dist/{chunk-QMPXBDDO.js → chunk-64AJX2DH.js} +2 -2
- package/dist/{chunk-YQMALPDQ.js → chunk-65K5T3GC.js} +2 -2
- package/dist/{chunk-3HAKPYWK.js → chunk-6K3ISPZ3.js} +2 -2
- package/dist/{chunk-5MJH36G3.js → chunk-6QJZMW6S.js} +2 -2
- package/dist/chunk-6S566ZMF.js +2 -0
- package/dist/chunk-6S566ZMF.js.map +1 -0
- package/dist/{chunk-5BGETBLF.js → chunk-6SDLOAEO.js} +2 -2
- package/dist/{chunk-JJDAJQG4.js → chunk-6Y4QJ7WK.js} +2 -2
- package/dist/{chunk-RXNDKUY6.js → chunk-72RFYT5Y.js} +2 -2
- package/dist/{chunk-74U3UMRA.js → chunk-75P5LUKA.js} +2 -2
- package/dist/chunk-7DQY3SRL.js +2 -0
- package/dist/chunk-7DQY3SRL.js.map +1 -0
- package/dist/{chunk-43MCQDBU.js → chunk-7N2A2ZJ5.js} +2 -2
- package/dist/chunk-7SRRP2D6.js +2 -0
- package/dist/chunk-7SRRP2D6.js.map +1 -0
- package/dist/{chunk-3HZOTQHD.js → chunk-7X56CYUV.js} +2 -2
- package/dist/chunk-7ZBLKUKE.js +2 -0
- package/dist/chunk-7ZBLKUKE.js.map +1 -0
- package/dist/{chunk-UB5WD4YM.js → chunk-ACKYD4QC.js} +2 -2
- package/dist/{chunk-3BEEU2N4.js → chunk-AL37BOFX.js} +2 -2
- package/dist/{chunk-WI6ZYN4S.js → chunk-ALF55LF2.js} +2 -2
- package/dist/{chunk-S3YIFNST.js → chunk-B5UGFNCU.js} +2 -2
- package/dist/{chunk-LZL5KK3N.js → chunk-B7HGVWIT.js} +2 -2
- package/dist/{chunk-OOEKN64P.js → chunk-BAE2OWEH.js} +2 -2
- package/dist/{chunk-VSBNYQZM.js → chunk-BC2H7WGB.js} +2 -2
- package/dist/{chunk-ZR6AKRA3.js → chunk-BFSBZTDB.js} +2 -2
- package/dist/{chunk-5EYREHAZ.js → chunk-BTP3NN3N.js} +2 -2
- package/dist/{chunk-R3HLTYHX.js → chunk-CLAVZQBC.js} +2 -2
- package/dist/{chunk-S6MU4NHQ.js → chunk-CMR5CIYN.js} +2 -2
- package/dist/chunk-CODZ7A6U.js +2 -0
- package/dist/chunk-CODZ7A6U.js.map +1 -0
- package/dist/{chunk-JHH66SSM.js → chunk-CUSAI2ZT.js} +2 -2
- package/dist/{chunk-DXHWEBVC.js → chunk-DHLSO7BU.js} +2 -2
- package/dist/{chunk-WVND2FCE.js → chunk-DR25AW5C.js} +2 -2
- package/dist/{chunk-OABRM5LK.js → chunk-DYNVJFJH.js} +2 -2
- package/dist/{chunk-LBNA4RGS.js → chunk-EC6ZM3SX.js} +2 -2
- package/dist/{chunk-7NZH3TF3.js → chunk-EN5ZMAYF.js} +2 -2
- package/dist/{chunk-IFD3RW53.js → chunk-ET4QWXWY.js} +2 -2
- package/dist/{chunk-552XBDTE.js → chunk-FFVTWWGX.js} +2 -2
- package/dist/{chunk-2Y7QAG2Q.js → chunk-FOBUW3RN.js} +2 -2
- package/dist/{chunk-L3XWJ35V.js → chunk-FTC4EFBO.js} +2 -2
- package/dist/{chunk-6PRPMEWS.js → chunk-GFM747IZ.js} +2 -2
- package/dist/{chunk-FYBXLFMI.js → chunk-GLJV3B55.js} +2 -2
- package/dist/{chunk-FZVUO3UU.js → chunk-HBX37YK2.js} +2 -2
- package/dist/{chunk-YTWEXSYT.js → chunk-HGBOZH6Q.js} +2 -2
- package/dist/{chunk-E3HFSANG.js → chunk-HGETJXZZ.js} +2 -2
- package/dist/{chunk-LBGZYTNR.js → chunk-HI7TK62N.js} +2 -2
- package/dist/{chunk-AGZHFGBR.js → chunk-INV4YWPR.js} +2 -2
- package/dist/{chunk-DA3D7BEQ.js → chunk-JBOUDOIM.js} +2 -2
- package/dist/chunk-JR6VISHQ.js +2 -0
- package/dist/chunk-JR6VISHQ.js.map +1 -0
- package/dist/{chunk-UFLWSKNE.js → chunk-JXWFFVQO.js} +2 -2
- package/dist/chunk-KFNCHTUX.js +2 -0
- package/dist/{chunk-5ISPVKB4.js.map → chunk-KFNCHTUX.js.map} +1 -1
- package/dist/{chunk-5XNFVJNM.js → chunk-KIUI7FHF.js} +2 -2
- package/dist/{chunk-766AUWUO.js → chunk-KMBA73YG.js} +2 -2
- package/dist/{chunk-237RQGWE.js → chunk-KVMWDA6O.js} +2 -2
- package/dist/{chunk-VJMCAVOL.js → chunk-L6V2G5TE.js} +2 -2
- package/dist/{chunk-Q6NTGZUW.js → chunk-L7TAT462.js} +2 -2
- package/dist/{chunk-ZZPQGX7X.js → chunk-LBJAKZ6V.js} +2 -2
- package/dist/{chunk-FUOTJMAO.js → chunk-M64UJF3B.js} +2 -2
- package/dist/chunk-MGVJ2TKE.js +2 -0
- package/dist/chunk-MGVJ2TKE.js.map +1 -0
- package/dist/{chunk-AEKGVWE5.js → chunk-MMIHT4V6.js} +2 -2
- package/dist/{chunk-UJJ5576U.js → chunk-MVPXUUUE.js} +2 -2
- package/dist/{chunk-Y4P3ZYQK.js → chunk-NORWRQQM.js} +2 -2
- package/dist/chunk-NTRKVVLQ.js +2 -0
- package/dist/chunk-NTRKVVLQ.js.map +1 -0
- package/dist/{chunk-R47Q7R6C.js → chunk-O5XQUEB5.js} +6 -6
- package/dist/chunk-O5XQUEB5.js.map +1 -0
- package/dist/{chunk-IKSPEKDA.js → chunk-O7TCU5D2.js} +2 -2
- package/dist/{chunk-7WV3GBEI.js → chunk-OGKH4RJL.js} +2 -2
- package/dist/{chunk-ZBJ4VEDO.js → chunk-OJTYP5W7.js} +2 -2
- package/dist/chunk-OSQ6VUDM.js +2 -0
- package/dist/chunk-OSQ6VUDM.js.map +1 -0
- package/dist/{chunk-MOM5PCKI.js → chunk-OVA2X5BB.js} +2 -2
- package/dist/{chunk-TPH6YQRJ.js → chunk-OXCSFW3F.js} +2 -2
- package/dist/{chunk-SHXQGRNL.js → chunk-PK2E2DJH.js} +2 -2
- package/dist/{chunk-SSBGIR74.js → chunk-PLKF2BTI.js} +2 -2
- package/dist/{chunk-RWMNB4RJ.js → chunk-PX6B2DBO.js} +2 -2
- package/dist/{chunk-32M6SNGV.js → chunk-PZFFXEI3.js} +2 -2
- package/dist/{chunk-COZWEBRG.js → chunk-QV4FEP6W.js} +2 -2
- package/dist/{chunk-QEIHXZIK.js → chunk-QV7CVQDJ.js} +2 -2
- package/dist/{chunk-PSBC73OL.js → chunk-R5WFXN2Z.js} +2 -2
- package/dist/{chunk-A3NABWR7.js → chunk-RRZ2GPQS.js} +2 -2
- package/dist/{chunk-YRAIYQ2K.js → chunk-RUYVQ6R6.js} +2 -2
- package/dist/{chunk-BTGWCFHJ.js → chunk-SBTZUZDR.js} +2 -2
- package/dist/{chunk-5FOI6SK4.js → chunk-SW7DKXXK.js} +2 -2
- package/dist/chunk-T5U7ZIBV.js +2 -0
- package/dist/chunk-T5U7ZIBV.js.map +1 -0
- package/dist/chunk-TVBZT6FA.js +2 -0
- package/dist/chunk-TVBZT6FA.js.map +1 -0
- package/dist/{chunk-K5XSOKKX.js → chunk-TXU6EUWN.js} +2 -2
- package/dist/{chunk-EVJ77XIZ.js → chunk-U4344VZW.js} +2 -2
- package/dist/{chunk-4Z2DLHAT.js → chunk-UBNSYRKM.js} +2 -2
- package/dist/{chunk-X5TMQDWS.js → chunk-UN4RAIAR.js} +2 -2
- package/dist/{chunk-R4F5WRKC.js → chunk-UOZUG2KL.js} +2 -2
- package/dist/{chunk-R3NDFTIM.js → chunk-UZNF4JV3.js} +2 -2
- package/dist/{chunk-GPXETIKG.js → chunk-V5OIMFSH.js} +2 -2
- package/dist/{chunk-S62HZDF7.js → chunk-VDVWAYXP.js} +2 -2
- package/dist/{chunk-DJOLLEOJ.js → chunk-VHAJRKCI.js} +2 -2
- package/dist/{chunk-TFJOJCCS.js → chunk-VKKORLLM.js} +2 -2
- package/dist/{chunk-AVJEDFND.js → chunk-VSXPCSKU.js} +2 -2
- package/dist/{chunk-GBQPG5OU.js → chunk-VZXZ7ELU.js} +2 -2
- package/dist/{chunk-JOHNIKN6.js → chunk-W2ZXKNL4.js} +2 -2
- package/dist/{chunk-LRPDJWIO.js → chunk-WXEBBNWP.js} +2 -2
- package/dist/{chunk-DJYO6IIO.js → chunk-XADVV6OP.js} +2 -2
- package/dist/{chunk-XULW2ME7.js → chunk-XK77JKBO.js} +2 -2
- package/dist/chunk-XO4DAKV7.js +2 -0
- package/dist/chunk-XO4DAKV7.js.map +1 -0
- package/dist/{chunk-65KMTRFL.js → chunk-XYV6WN5C.js} +2 -2
- package/dist/{chunk-423VHE7M.js → chunk-YYMGZZTO.js} +2 -2
- package/dist/{chunk-E37JLKX4.js → chunk-ZIFQZ33N.js} +2 -2
- package/dist/{chunk-YNMQONDL.js → chunk-ZNGMRPG6.js} +2 -2
- package/dist/{chunk-D3EUFZXJ.js → chunk-ZQZWWNXL.js} +2 -2
- package/dist/chunk-ZQZWWNXL.js.map +1 -0
- package/dist/{chunk-OOSCL4WD.js → chunk-ZSBQDVXM.js} +2 -2
- package/dist/{chunk-CHRRWZHW.js → chunk-ZX3JVVRL.js} +2 -2
- package/dist/default-components.d.ts +2 -2
- package/dist/default-components.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +3 -3
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/types.d.ts +2 -2
- package/dist/flows/ContractAmendment/utils.d.ts +2 -2
- package/dist/flows/ContractAmendment/utils.js +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +8 -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 -5
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
- package/dist/flows/ContractorOnboarding/context.d.ts +8 -7
- package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/utils.d.ts +4 -4
- package/dist/flows/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 +5 -9
- 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 +4 -4
- 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 +6 -14
- 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 +7 -6
- 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 +9 -17
- 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 +17 -9
- package/dist/flows/Onboarding/hooks.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +4 -4
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +4 -4
- package/dist/flows/Onboarding/utils.d.ts +4 -4
- package/dist/flows/Onboarding/utils.js +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +5 -5
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.d.ts +8 -12
- 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 +7 -7
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +7 -7
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +7 -7
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
- package/dist/flows/Termination/context.d.ts +4 -4
- package/dist/flows/Termination/hooks.d.ts +4 -4
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +6 -6
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
- package/dist/flows/Termination/types.d.ts +4 -4
- package/dist/flows/Termination/utils.d.ts +4 -4
- package/dist/flows/Termination/utils.js +1 -1
- package/dist/flows/types.d.ts +4 -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 +11 -11
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +3 -3
- package/dist/internals.js +1 -1
- package/dist/{mutations-k1bkfjOU.d.ts → mutations-B8Mignyp.d.ts} +1 -1
- package/dist/{remoteFlows-CizrXXw-.d.ts → remoteFlows-B_Qw-y-E.d.ts} +14 -2
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/{types-DWSLcaDI.d.ts → types-B5J_4wyN.d.ts} +41 -11
- package/dist/{types-Cg4eblxv.d.ts → types-BkwrqJ5I.d.ts} +4 -4
- package/dist/{types-CRnEmzMD.d.ts → types-D8HNn_KX.d.ts} +1 -1
- package/dist/{types-DoYYKUID.d.ts → types-XM7RZKic.d.ts} +3 -3
- package/dist/{types-VJHlrVxd.d.ts → types-b3-hzr00.d.ts} +2 -2
- package/dist/{types.gen-Dgw1W-SB.d.ts → types.gen-DowXAxCF.d.ts} +660 -20
- package/dist/{utils-DaoVOrzw.d.ts → utils-CqFJ189L.d.ts} +1 -1
- package/package.json +62 -62
- package/dist/ButtonDefault-A5JWQEZF.js +0 -2
- package/dist/CheckboxFieldDefault-2YCVL3MM.js +0 -2
- package/dist/CountryFieldDefault-IY664WKC.js +0 -2
- package/dist/DatePickerFieldDefault-UZ3W2B3R.js +0 -2
- package/dist/DrawerDefault-HQGPEMMY.js +0 -2
- package/dist/EmailFieldDefault-6GQMGBQV.js +0 -2
- package/dist/FieldsetToggleButtonDefault-NQCXWGRK.js +0 -2
- package/dist/FileUploadFieldDefault-L3LOK4A5.js +0 -2
- package/dist/MultiSelectFieldDefault-OE5NHM6A.js +0 -2
- package/dist/NumberFieldDefault-MV3FSZOG.js +0 -2
- package/dist/RadioGroupFieldDefault-J3ESFNPW.js +0 -2
- package/dist/SelectFieldDefault-F2MAJW7S.js +0 -2
- package/dist/StatementDefault-FTAOOAL4.js +0 -2
- package/dist/TableFieldDefault-LXHWAWPG.js +0 -2
- package/dist/TelFieldDefault-EHHOHIQD.js +0 -2
- package/dist/TextAreaFieldDefault-VXPH3YGT.js +0 -2
- package/dist/TextFieldDefault-QWGENVEE.js +0 -2
- package/dist/WorkScheduleFieldDefault-SJSAWRYV.js +0 -2
- package/dist/ZendeskDrawerDefault-SUUZWWY2.js +0 -2
- package/dist/chunk-3VALWCZ5.js +0 -2
- package/dist/chunk-3VALWCZ5.js.map +0 -1
- package/dist/chunk-5ISPVKB4.js +0 -2
- package/dist/chunk-D3EUFZXJ.js.map +0 -1
- package/dist/chunk-EARN6G25.js +0 -2
- package/dist/chunk-EARN6G25.js.map +0 -1
- package/dist/chunk-EJCCWBLQ.js +0 -2
- package/dist/chunk-EJCCWBLQ.js.map +0 -1
- package/dist/chunk-KQUKUR4T.js +0 -2
- package/dist/chunk-KQUKUR4T.js.map +0 -1
- package/dist/chunk-LXOYWRNU.js +0 -2
- package/dist/chunk-LXOYWRNU.js.map +0 -1
- package/dist/chunk-NZ7BAZNH.js +0 -2
- package/dist/chunk-NZ7BAZNH.js.map +0 -1
- package/dist/chunk-OORPUQ3N.js +0 -2
- package/dist/chunk-OORPUQ3N.js.map +0 -1
- package/dist/chunk-R47Q7R6C.js.map +0 -1
- package/dist/chunk-U7S4TUFV.js +0 -2
- package/dist/chunk-U7S4TUFV.js.map +0 -1
- package/dist/chunk-UITO344H.js +0 -2
- package/dist/chunk-UITO344H.js.map +0 -1
- package/dist/chunk-VJNTRMOS.js +0 -2
- package/dist/chunk-VJNTRMOS.js.map +0 -1
- package/dist/chunk-YZKXKNDS.js +0 -2
- package/dist/chunk-YZKXKNDS.js.map +0 -1
- package/dist/chunk-ZAQUO2SM.js +0 -2
- package/dist/chunk-ZAQUO2SM.js.map +0 -1
- /package/dist/{ButtonDefault-A5JWQEZF.js.map → ButtonDefault-EPOEMC2J.js.map} +0 -0
- /package/dist/{CheckboxFieldDefault-2YCVL3MM.js.map → CheckboxFieldDefault-QLUSGCSO.js.map} +0 -0
- /package/dist/{CountryFieldDefault-IY664WKC.js.map → CountryFieldDefault-BNXTXEWS.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-UZ3W2B3R.js.map → DatePickerFieldDefault-FJ7HVEV5.js.map} +0 -0
- /package/dist/{DrawerDefault-HQGPEMMY.js.map → DrawerDefault-WN7Z4LY7.js.map} +0 -0
- /package/dist/{EmailFieldDefault-6GQMGBQV.js.map → EmailFieldDefault-LTDNKVUW.js.map} +0 -0
- /package/dist/{FieldsetToggleButtonDefault-NQCXWGRK.js.map → FieldsetToggleButtonDefault-4RZ3GTDF.js.map} +0 -0
- /package/dist/{FileUploadFieldDefault-L3LOK4A5.js.map → FileUploadFieldDefault-HSLW6SHB.js.map} +0 -0
- /package/dist/{MultiSelectFieldDefault-OE5NHM6A.js.map → MultiSelectFieldDefault-GSJWVA5H.js.map} +0 -0
- /package/dist/{NumberFieldDefault-MV3FSZOG.js.map → NumberFieldDefault-NVOVVUNK.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-J3ESFNPW.js.map → RadioGroupFieldDefault-ZLKZ4B4D.js.map} +0 -0
- /package/dist/{SelectFieldDefault-F2MAJW7S.js.map → SelectFieldDefault-WU4CDEZD.js.map} +0 -0
- /package/dist/{StatementDefault-FTAOOAL4.js.map → StatementDefault-T3RCCUE5.js.map} +0 -0
- /package/dist/{TableFieldDefault-LXHWAWPG.js.map → TableFieldDefault-S5XRYF36.js.map} +0 -0
- /package/dist/{TelFieldDefault-EHHOHIQD.js.map → TelFieldDefault-D5EW44ZU.js.map} +0 -0
- /package/dist/{TextAreaFieldDefault-VXPH3YGT.js.map → TextAreaFieldDefault-G5AIZNH7.js.map} +0 -0
- /package/dist/{TextFieldDefault-QWGENVEE.js.map → TextFieldDefault-FCVIHZTV.js.map} +0 -0
- /package/dist/{WorkScheduleFieldDefault-SJSAWRYV.js.map → WorkScheduleFieldDefault-5JZPKI2P.js.map} +0 -0
- /package/dist/{ZendeskDrawerDefault-SUUZWWY2.js.map → ZendeskDrawerDefault-WQ32QQVE.js.map} +0 -0
- /package/dist/{chunk-R4PLUUI3.js.map → chunk-2OGPILJM.js.map} +0 -0
- /package/dist/{chunk-RAVJ3LMO.js.map → chunk-2P4RPBIO.js.map} +0 -0
- /package/dist/{chunk-MEOD4UGO.js.map → chunk-2UZ72KAQ.js.map} +0 -0
- /package/dist/{chunk-IJDBUKEM.js.map → chunk-4Y2DWXQB.js.map} +0 -0
- /package/dist/{chunk-FHGQELT7.js.map → chunk-5EDCZGZV.js.map} +0 -0
- /package/dist/{chunk-HLR7IUW7.js.map → chunk-5QHQT6DL.js.map} +0 -0
- /package/dist/{chunk-N4TAXXWW.js.map → chunk-5TGKHA2W.js.map} +0 -0
- /package/dist/{chunk-QMPXBDDO.js.map → chunk-64AJX2DH.js.map} +0 -0
- /package/dist/{chunk-YQMALPDQ.js.map → chunk-65K5T3GC.js.map} +0 -0
- /package/dist/{chunk-3HAKPYWK.js.map → chunk-6K3ISPZ3.js.map} +0 -0
- /package/dist/{chunk-5MJH36G3.js.map → chunk-6QJZMW6S.js.map} +0 -0
- /package/dist/{chunk-5BGETBLF.js.map → chunk-6SDLOAEO.js.map} +0 -0
- /package/dist/{chunk-JJDAJQG4.js.map → chunk-6Y4QJ7WK.js.map} +0 -0
- /package/dist/{chunk-RXNDKUY6.js.map → chunk-72RFYT5Y.js.map} +0 -0
- /package/dist/{chunk-74U3UMRA.js.map → chunk-75P5LUKA.js.map} +0 -0
- /package/dist/{chunk-43MCQDBU.js.map → chunk-7N2A2ZJ5.js.map} +0 -0
- /package/dist/{chunk-3HZOTQHD.js.map → chunk-7X56CYUV.js.map} +0 -0
- /package/dist/{chunk-UB5WD4YM.js.map → chunk-ACKYD4QC.js.map} +0 -0
- /package/dist/{chunk-3BEEU2N4.js.map → chunk-AL37BOFX.js.map} +0 -0
- /package/dist/{chunk-WI6ZYN4S.js.map → chunk-ALF55LF2.js.map} +0 -0
- /package/dist/{chunk-S3YIFNST.js.map → chunk-B5UGFNCU.js.map} +0 -0
- /package/dist/{chunk-LZL5KK3N.js.map → chunk-B7HGVWIT.js.map} +0 -0
- /package/dist/{chunk-OOEKN64P.js.map → chunk-BAE2OWEH.js.map} +0 -0
- /package/dist/{chunk-VSBNYQZM.js.map → chunk-BC2H7WGB.js.map} +0 -0
- /package/dist/{chunk-ZR6AKRA3.js.map → chunk-BFSBZTDB.js.map} +0 -0
- /package/dist/{chunk-5EYREHAZ.js.map → chunk-BTP3NN3N.js.map} +0 -0
- /package/dist/{chunk-R3HLTYHX.js.map → chunk-CLAVZQBC.js.map} +0 -0
- /package/dist/{chunk-S6MU4NHQ.js.map → chunk-CMR5CIYN.js.map} +0 -0
- /package/dist/{chunk-JHH66SSM.js.map → chunk-CUSAI2ZT.js.map} +0 -0
- /package/dist/{chunk-DXHWEBVC.js.map → chunk-DHLSO7BU.js.map} +0 -0
- /package/dist/{chunk-WVND2FCE.js.map → chunk-DR25AW5C.js.map} +0 -0
- /package/dist/{chunk-OABRM5LK.js.map → chunk-DYNVJFJH.js.map} +0 -0
- /package/dist/{chunk-LBNA4RGS.js.map → chunk-EC6ZM3SX.js.map} +0 -0
- /package/dist/{chunk-7NZH3TF3.js.map → chunk-EN5ZMAYF.js.map} +0 -0
- /package/dist/{chunk-IFD3RW53.js.map → chunk-ET4QWXWY.js.map} +0 -0
- /package/dist/{chunk-552XBDTE.js.map → chunk-FFVTWWGX.js.map} +0 -0
- /package/dist/{chunk-2Y7QAG2Q.js.map → chunk-FOBUW3RN.js.map} +0 -0
- /package/dist/{chunk-L3XWJ35V.js.map → chunk-FTC4EFBO.js.map} +0 -0
- /package/dist/{chunk-6PRPMEWS.js.map → chunk-GFM747IZ.js.map} +0 -0
- /package/dist/{chunk-FYBXLFMI.js.map → chunk-GLJV3B55.js.map} +0 -0
- /package/dist/{chunk-FZVUO3UU.js.map → chunk-HBX37YK2.js.map} +0 -0
- /package/dist/{chunk-YTWEXSYT.js.map → chunk-HGBOZH6Q.js.map} +0 -0
- /package/dist/{chunk-E3HFSANG.js.map → chunk-HGETJXZZ.js.map} +0 -0
- /package/dist/{chunk-LBGZYTNR.js.map → chunk-HI7TK62N.js.map} +0 -0
- /package/dist/{chunk-AGZHFGBR.js.map → chunk-INV4YWPR.js.map} +0 -0
- /package/dist/{chunk-DA3D7BEQ.js.map → chunk-JBOUDOIM.js.map} +0 -0
- /package/dist/{chunk-UFLWSKNE.js.map → chunk-JXWFFVQO.js.map} +0 -0
- /package/dist/{chunk-5XNFVJNM.js.map → chunk-KIUI7FHF.js.map} +0 -0
- /package/dist/{chunk-766AUWUO.js.map → chunk-KMBA73YG.js.map} +0 -0
- /package/dist/{chunk-237RQGWE.js.map → chunk-KVMWDA6O.js.map} +0 -0
- /package/dist/{chunk-VJMCAVOL.js.map → chunk-L6V2G5TE.js.map} +0 -0
- /package/dist/{chunk-Q6NTGZUW.js.map → chunk-L7TAT462.js.map} +0 -0
- /package/dist/{chunk-ZZPQGX7X.js.map → chunk-LBJAKZ6V.js.map} +0 -0
- /package/dist/{chunk-FUOTJMAO.js.map → chunk-M64UJF3B.js.map} +0 -0
- /package/dist/{chunk-AEKGVWE5.js.map → chunk-MMIHT4V6.js.map} +0 -0
- /package/dist/{chunk-UJJ5576U.js.map → chunk-MVPXUUUE.js.map} +0 -0
- /package/dist/{chunk-Y4P3ZYQK.js.map → chunk-NORWRQQM.js.map} +0 -0
- /package/dist/{chunk-IKSPEKDA.js.map → chunk-O7TCU5D2.js.map} +0 -0
- /package/dist/{chunk-7WV3GBEI.js.map → chunk-OGKH4RJL.js.map} +0 -0
- /package/dist/{chunk-ZBJ4VEDO.js.map → chunk-OJTYP5W7.js.map} +0 -0
- /package/dist/{chunk-MOM5PCKI.js.map → chunk-OVA2X5BB.js.map} +0 -0
- /package/dist/{chunk-TPH6YQRJ.js.map → chunk-OXCSFW3F.js.map} +0 -0
- /package/dist/{chunk-SHXQGRNL.js.map → chunk-PK2E2DJH.js.map} +0 -0
- /package/dist/{chunk-SSBGIR74.js.map → chunk-PLKF2BTI.js.map} +0 -0
- /package/dist/{chunk-RWMNB4RJ.js.map → chunk-PX6B2DBO.js.map} +0 -0
- /package/dist/{chunk-32M6SNGV.js.map → chunk-PZFFXEI3.js.map} +0 -0
- /package/dist/{chunk-COZWEBRG.js.map → chunk-QV4FEP6W.js.map} +0 -0
- /package/dist/{chunk-QEIHXZIK.js.map → chunk-QV7CVQDJ.js.map} +0 -0
- /package/dist/{chunk-PSBC73OL.js.map → chunk-R5WFXN2Z.js.map} +0 -0
- /package/dist/{chunk-A3NABWR7.js.map → chunk-RRZ2GPQS.js.map} +0 -0
- /package/dist/{chunk-YRAIYQ2K.js.map → chunk-RUYVQ6R6.js.map} +0 -0
- /package/dist/{chunk-BTGWCFHJ.js.map → chunk-SBTZUZDR.js.map} +0 -0
- /package/dist/{chunk-5FOI6SK4.js.map → chunk-SW7DKXXK.js.map} +0 -0
- /package/dist/{chunk-K5XSOKKX.js.map → chunk-TXU6EUWN.js.map} +0 -0
- /package/dist/{chunk-EVJ77XIZ.js.map → chunk-U4344VZW.js.map} +0 -0
- /package/dist/{chunk-4Z2DLHAT.js.map → chunk-UBNSYRKM.js.map} +0 -0
- /package/dist/{chunk-X5TMQDWS.js.map → chunk-UN4RAIAR.js.map} +0 -0
- /package/dist/{chunk-R4F5WRKC.js.map → chunk-UOZUG2KL.js.map} +0 -0
- /package/dist/{chunk-R3NDFTIM.js.map → chunk-UZNF4JV3.js.map} +0 -0
- /package/dist/{chunk-GPXETIKG.js.map → chunk-V5OIMFSH.js.map} +0 -0
- /package/dist/{chunk-S62HZDF7.js.map → chunk-VDVWAYXP.js.map} +0 -0
- /package/dist/{chunk-DJOLLEOJ.js.map → chunk-VHAJRKCI.js.map} +0 -0
- /package/dist/{chunk-TFJOJCCS.js.map → chunk-VKKORLLM.js.map} +0 -0
- /package/dist/{chunk-AVJEDFND.js.map → chunk-VSXPCSKU.js.map} +0 -0
- /package/dist/{chunk-GBQPG5OU.js.map → chunk-VZXZ7ELU.js.map} +0 -0
- /package/dist/{chunk-JOHNIKN6.js.map → chunk-W2ZXKNL4.js.map} +0 -0
- /package/dist/{chunk-LRPDJWIO.js.map → chunk-WXEBBNWP.js.map} +0 -0
- /package/dist/{chunk-DJYO6IIO.js.map → chunk-XADVV6OP.js.map} +0 -0
- /package/dist/{chunk-XULW2ME7.js.map → chunk-XK77JKBO.js.map} +0 -0
- /package/dist/{chunk-65KMTRFL.js.map → chunk-XYV6WN5C.js.map} +0 -0
- /package/dist/{chunk-423VHE7M.js.map → chunk-YYMGZZTO.js.map} +0 -0
- /package/dist/{chunk-E37JLKX4.js.map → chunk-ZIFQZ33N.js.map} +0 -0
- /package/dist/{chunk-YNMQONDL.js.map → chunk-ZNGMRPG6.js.map} +0 -0
- /package/dist/{chunk-OOSCL4WD.js.map → chunk-ZSBQDVXM.js.map} +0 -0
- /package/dist/{chunk-CHRRWZHW.js.map → chunk-ZX3JVVRL.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as o}from"./chunk-ET4QWXWY.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as t}from"react/jsx-runtime";function p({helpCenter:r}){return!r||!r.id||!r.callToAction?null:t(o,{zendeskId:r.id,children:r.callToAction})}e(p,"HelpCenter");export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AL37BOFX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d,b as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d,b as w}from"./chunk-5EDCZGZV.js";import{a as g}from"./chunk-VKKORLLM.js";import{a as E}from"./chunk-JR6VISHQ.js";import{e as C}from"./chunk-FFVTWWGX.js";import{P as F,e as _,z as P}from"./chunk-O5XQUEB5.js";import{a as h}from"./chunk-OSQ6VUDM.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-ALF55LF2.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as t}from"./chunk-XADVV6OP.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";var u=n(p=>{let{"data-type":e,...o}=p;return e==="inline"?r(t,{size:"link",variant:"link",...o}):r(t,{...o})},"ButtonDefault");export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-B5UGFNCU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-3UDRMQNE.js";import{a as C}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-3UDRMQNE.js";import{a as C}from"./chunk-64AJX2DH.js";import{b as p}from"./chunk-OJTYP5W7.js";import{a as m}from"./chunk-VDRNNOVA.js";import{d as b}from"./chunk-AHRG5QCS.js";import{a as g,h as v,i as y}from"./chunk-PX5PE6GX.js";import{a as f,b as _}from"./chunk-ET4QWXWY.js";import{a as t}from"./chunk-P37U34EQ.js";import{format as w}from"date-fns";import{Fragment as R,jsx as u,jsxs as M}from"react/jsx-runtime";var E=t(n=>n===g,"isStandardPricingPlan"),P=t((n,i)=>{let e=i&&i<w(new Date,"yyyy-MM-dd");if(!n&&e)return p({severity:"warning",description:"Backdating the service start date is not supported in the selected Contractor Management plan."})},"showBackDateWarning");function I(n,i,e){e({...i,services_and_deliverables_ai_warning:"",services_and_deliverables_error_skippable:!1})}t(I,"onServicesAndDeliverablesChange");var V=t((n,i,e,r,o)=>{let s=E(e),c=r?.service_duration?.provisional_start_date,l=P(s,c),a=p({severity:"warning",title:"Possible misclassification risk",description:o?y:v});return{...n,create:{...n?.create,services_and_deliverables_ai_warning:{type:"string","x-jsf-presentation":{inputType:"hidden"}},services_and_deliverables_error_skippable:{type:"boolean","x-jsf-presentation":{inputType:"hidden"}}},fields:{...n?.fields,"service_duration.provisional_start_date":{description:i,"x-jsf-presentation":{minDate:s?void 0:w(new Date,"yyyy-MM-dd"),...l}},services_and_deliverables:{onChange:I,"x-jsf-presentation":{calculateDynamicProperties:t(d=>({statement:d.services_and_deliverables_ai_warning?a.statement:void 0}),"calculateDynamicProperties")}}}}},"buildContractDetailsJsfModify"),L=t((n,i,e)=>{let r=n==="SAU",o=n==="GBR",s=b(n);if(!r&&!o&&!s)return e?.jsfModify?.basic_information;if(o)return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,ir35:{title:"IR35 Status",description:t(()=>M(R,{children:["What's your contractor's employment status?"," ",u(_,{zendeskId:f.ir35Status,children:"Learn more about IR35"})]}),"description"),oneOf:[{const:"inside",title:"Inside IR35 (deemed employee)"},{const:"outside",title:"Outside IR35"},{const:"exempt",title:"Exempt from IR35"}],"x-jsf-presentation":{inputType:"select"}},ir35_sds_file:{title:"Upload SDS",description:"Status determination statement",type:"string","x-jsf-presentation":{inputType:"file",accept:m.document,multiple:!1,maxSize:20971520,calculateDynamicProperties:t(a=>{let d=a.ir35;return{isVisible:d==="inside"||d==="outside"}},"calculateDynamicProperties")}}},allOf:[{if:{properties:{ir35:{enum:["inside","outside"]}}},then:{required:["ir35_sds_file"]},else:{properties:{ir35_sds_file:!1}}}],required:["ir35"],orderRoot:t(a=>[...a,"ir35","ir35_sds_file"],"orderRoot")};let c=r?"Is your contractor a Saudi Arabia national, or a non-Saudi national contracting via a local business entity or under a Special Privilege Iqama visa?":`Is the contractor a ${i??"selected country"} national, or a non-${i??"selected country"} national contracting through their local business entity?`,l=r?"Please be aware that contracting with non-Saudi Arabia nationals that are not operating as a company or under a Special Privilege Iqama visa can lead to fines for operating without proper work authorization. If you are concerned, please speak with the Contractor and/or local Saudi Arabia counsel to ensure compliance.":`Be aware that the Contractor must be a ${i??"selected country"} national, or a non-${i??"selected country"} national operating through their company to comply with the legal requirements for performing services and deliverables as a contractor in ${i??"selected country"}. If you are concerned, speak with the Contractor and/or local counsel to ensure compliance.`;return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,nationality_status:{title:c,description:"",type:"string",oneOf:[{const:"national",description:"",title:"Yes"},{const:"non-national",description:l,title:"No"}],"x-jsf-presentation":{inputType:"radio"}}},required:["nationality_status"],orderRoot:t(a=>[...a,"nationality_status"],"orderRoot")}},"buildBasicInformationJsfModify"),J=t((n,i)=>{let e=n?.jsfModify?.contract_preview?.fields;return{fields:{contract_preview_header:{...e?.contract_preview_header,"x-jsf-presentation":{Component:t(r=>{let o=e?.contract_preview_header?.["x-jsf-presentation"]?.Component||S;return u(o,{...r})},"Component")}},contract_preview_statement:{...e?.contract_preview_statement,"x-jsf-presentation":{Component:t(r=>{let o=e?.contract_preview_statement?.["x-jsf-presentation"]?.Component||C;return u(o,{reviewCompleted:!!i?.review_completed,...r})},"Component")}},signature:{...e?.signature,"x-jsf-presentation":{calculateDynamicProperties:t(r=>({isVisible:!!r.review_completed}),"calculateDynamicProperties"),...e?.signature?.["x-jsf-presentation"]}}}}},"buildContractPreviewJsfModify");export{V as a,L as b,J as c};
|
|
2
|
+
//# sourceMappingURL=chunk-B7HGVWIT.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s}from"./chunk-KSHK3ZPX.js";import{c as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s}from"./chunk-KSHK3ZPX.js";import{c as r}from"./chunk-OSQ6VUDM.js";import{b as e}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function p({children:u,...t}){let{form:m,formId:l,costCalculatorBag:c}=s(),{components:i}=e(),o=i?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:r("RemoteFlows__CostCalculatorForm__ResetButton",t.className),form:l,onClick:C=>{c?.resetForm(),m.reset(),t.onClick?.(C)},children:u})}n(p,"CostCalculatorResetButton");export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BAE2OWEH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-7SRRP2D6.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{m as n}from"./chunk-OSQ6VUDM.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as f}from"react/jsx-runtime";function b({onSubmit:m,onSuccess:d,onError:c}){let{contractorOnboardingBag:o}=e(),p=t(async i=>{try{let a=await o.parseFormValues(i);await m?.(a);let r=await o.onSubmit(i);if(r?.data){await d?.(r?.data),o?.next();return}}catch(a){let r=n(a,o.meta?.fields?.basic_information);c?.(r)}},"handleSubmit"),l=o.stepState.values?.basic_information||o.initialValues.basic_information;return f(s,{defaultValues:l,onSubmit:p})}t(b,"BasicInformationStep");export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BC2H7WGB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o,b as i,c as t,d as l,e as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o,b as i,c as t,d as l,e as w}from"./chunk-7N2A2ZJ5.js";import{c as a}from"./chunk-OSQ6VUDM.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";function C({open:D,onOpenChange:m,direction:p,className:f,title:s,trigger:d,children:v}){return n(o,{open:D,onOpenChange:m,direction:p,children:[r(i,{asChild:!0,children:d}),r(t,{className:a("RemoteFlows__Drawer h-full w-[540px] mt-0 ml-auto px-4",f),children:n("div",{className:"h-full flex flex-col",children:[r(l,{children:r(w,{children:s})}),r("div",{className:"flex-1 overflow-y-auto",children:v})]})})]})}e(C,"DrawerDefault");export{C as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BFSBZTDB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-KMBA73YG.js";import{j as a,k as i,l as s,m as p,n as F}from"./chunk-72RFYT5Y.js";import{c as t}from"./chunk-OSQ6VUDM.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as U}from"react/jsx-runtime";function b({field:o,fieldState:_,fieldData:c}){let{name:l,label:d,description:m,multiple:f,accept:u}=c;return U(a,{"data-field":l,className:`RemoteFlows__FileUpload__Item__${l}`,children:[e(i,{className:"RemoteFlows__FileUpload__Label",children:d}),e(s,{children:e(n,{onChange:o.onChange,multiple:f,className:t("RemoteFlows__FileUpload__Input"),accept:u,files:o.value})}),m&&e("div",{className:"flex items-center justify-between",children:e(p,{className:"RemoteFlows__FileUpload__Description",children:m})}),_.error&&e(F,{className:"RemoteFlows__FileUpload__Error"})]})}r(b,"FileUploadFieldDefault");export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BTP3NN3N.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as p,i as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as p,i as s}from"./chunk-72RFYT5Y.js";import{b as m}from"./chunk-KQPDXXG3.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function v({name:o,description:a,label:l,type:F,onChange:t,component:x,includeErrorMessage:c=!0,additionalProps:f={},maxLength:u,...T}){let{components:C}=m(),{control:P}=p();return d(s,{control:P,name:o,render:({field:r,fieldState:S})=>{let n=x||C?.text;if(!n)throw new Error(`Text component not found for field ${o}`);let g={name:o,description:a,label:l,type:F,onChange:t,metadata:f,maxLength:u,includeErrorMessage:c,...T};return d(n,{field:{...r,onChange:e(i=>{r.onChange(i),t?.(i)},"onChange")},fieldState:S,fieldData:g})}})}e(v,"TextField");export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CLAVZQBC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n,b as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n,b as i}from"./chunk-ET4QWXWY.js";import{c as e}from"./chunk-OSQ6VUDM.js";import{a as o}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as t,jsxs as r}from"react/jsx-runtime";var l=["You submit your termination request.","Remote reviews your request along with the employment agreement, local labor laws, and any collective bargaining agreements in place.","A lifecycle specialist contacts you if they need additional details. Sometimes they will request a call.","Depending on the country-specific laws and the terms of the employment agreement, Remote may need to seek additional legal advice. We\u2019ll let you know if there are additional charges before proceeding.","Terms and conditions for the termination are finalized.","You verbally communicate the termination to the employee.","Remote shares termination documents with the employee.","The employee signs the termination documents if required.","Remote processes the final salary and offboards the employee."],f=o(()=>r(s,{children:[t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__Title"),children:"Please read carefully before you continue"}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description"),children:"Please do not inform the employee of the termination. Remote will lead communication with them after you submit this form and they finalize the termination terms."}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description RemoteFlows__TerminationDialogInfoContent__FollowUpDescription"),children:"If you already informed them, that's okay. Remote will ask for the details regarding that communication and they'll take it from there."}),t(i,{className:e("RemoteFlows__TerminationDialogInfoContent__ZendeskTriggerButton text-sm"),zendeskId:n.terminationEmployeeCommunication,children:"Learn more about employee communication"}),t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessTitle"),children:"The termination process"}),t("ul",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessList list-disc list-inside"),children:l.map((a,m)=>t("li",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessListItem"),children:a},m))})]}),"TerminationDialogInfoContent");export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CMR5CIYN.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as g,b as k,c as b}from"./chunk-6SDLOAEO.js";import{a as P}from"./chunk-AL37BOFX.js";import{b as F}from"./chunk-XADVV6OP.js";import{j as D,k as w,l as v,m as x,n as h}from"./chunk-72RFYT5Y.js";import{c as m}from"./chunk-OSQ6VUDM.js";import{a}from"./chunk-P37U34EQ.js";import{CalendarIcon as B}from"lucide-react";import{format as N}from"date-fns";import{ChevronLeft as I,ChevronRight as L}from"lucide-react";import{DayPicker as O}from"react-day-picker";import{jsx as f}from"react/jsx-runtime";function c({className:t,classNames:n,showOutsideDays:i=!0,...o}){return f(O,{showOutsideDays:i,className:m("p-3",t),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-y-4",month_caption:"flex h-8 w-full items-center justify-center relative",caption_label:"font-medium text-sm mt-1",nav:"flex items-center justify-between absolute left-0 right-0 z-10",month_grid:"w-full border-collapse mt-1",weekdays:"flex",weekday:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",week:"flex w-full mt-2",day:"h-9 w-9 text-center text-sm p-0 relative",...n},components:{Chevron:a(({orientation:s,...r})=>s==="left"?f(I,{...r}):f(L,{...r}),"Chevron")},...o})}a(c,"Calendar");c.displayName="Calendar";import{useState as T}from"react";import{Fragment as V,jsx as e,jsxs as d}from"react/jsx-runtime";function Y({field:t,fieldData:n,fieldState:i}){let{name:o,label:s,description:r,minDate:u,maxDate:C}=n,p=u?new Date(u):void 0,_=C?new Date(C):void 0,[R,y]=T(!1);return d(D,{"data-field":o,className:`flex flex-col RemoteFlows__DatePickerField__Item__${o}`,children:[e(w,{className:"RemoteFlows__DatePickerField__Label",children:s}),d(g,{open:R,onOpenChange:y,children:[e(k,{asChild:!0,children:e(v,{children:e("div",{children:d(F,{type:"button",variant:"outline",className:m("w-full pl-3 text-left font-normal",!t.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${o}`,children:[t.value&&e(V,{children:N(t.value,"yyyy-MM-dd")}),e(B,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(b,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(c,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:t.value?new Date(t.value):void 0,onDayClick:l=>{let M=N(l,"yyyy-MM-dd");t.onChange(M),y(!1)},defaultMonth:p,disabled:l=>!!(p&&l<p||_&&l>_)})})]}),r?e(x,{helpCenter:e(P,{helpCenter:n.meta?.helpCenter}),children:r}):null,i.error&&e(h,{className:"RemoteFlows__DatePickerField__Error"})]})}a(Y,"DatePickerFieldDefault");export{Y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CODZ7A6U.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/form/fields/default/DatePickerFieldDefault.tsx","../src/components/ui/calendar.tsx"],"sourcesContent":["import { Button } from '@/src/components/ui/button';\nimport {\n FormControl,\n FormDescription,\n FormItem,\n FormLabel,\n FormMessage,\n} from '@/src/components/ui/form';\nimport { DatePickerComponentProps } from '@/src/types/fields';\nimport { CalendarIcon } from 'lucide-react';\nimport { format } from 'date-fns';\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from '@/src/components/ui/popover';\nimport { cn } from '@/src/lib/utils';\nimport { Calendar } from '@/src/components/ui/calendar';\nimport { HelpCenter } from '@/src/components/shared/zendesk-drawer/HelpCenter';\nimport { useState } from 'react';\n\nexport function DatePickerFieldDefault({\n field,\n fieldData,\n fieldState,\n}: DatePickerComponentProps) {\n const { name, label, description, minDate, maxDate } = fieldData;\n const minDateValue = minDate ? new Date(minDate) : undefined;\n const maxDateValue = maxDate ? new Date(maxDate) : undefined;\n const [open, setOpen] = useState(false);\n\n return (\n <FormItem\n data-field={name}\n className={`flex flex-col RemoteFlows__DatePickerField__Item__${name}`}\n >\n <FormLabel className='RemoteFlows__DatePickerField__Label'>\n {label}\n </FormLabel>\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <FormControl>\n <div>\n <Button\n type='button'\n variant={'outline'}\n className={cn(\n 'w-full pl-3 text-left font-normal',\n !field.value && 'text-muted-foreground',\n )}\n data-testid={`date-picker-button-${name}`}\n >\n {field.value && <>{format(field.value, 'yyyy-MM-dd')}</>}\n <CalendarIcon className='ml-auto h-4 w-4 opacity-50' />\n </Button>\n </div>\n </FormControl>\n </PopoverTrigger>\n <PopoverContent\n className={`w-auto p-0 RemoteFlows__DatepickerField__PopoverContent`}\n align='start'\n >\n <Calendar\n mode='single'\n className='RemoteFlows__DatepickerField__Calendar'\n selected={field.value ? new Date(field.value) : undefined}\n onDayClick={(day) => {\n const formattedDate = format(day, 'yyyy-MM-dd');\n field.onChange(formattedDate);\n setOpen(false);\n }}\n defaultMonth={minDateValue}\n disabled={(date: Date) => {\n if (minDateValue && date < minDateValue) return true;\n if (maxDateValue && date > maxDateValue) return true;\n return false;\n }}\n />\n </PopoverContent>\n </Popover>\n {description ? (\n <FormDescription\n helpCenter={<HelpCenter helpCenter={fieldData.meta?.helpCenter} />}\n >\n {description}\n </FormDescription>\n ) : null}\n {fieldState.error && (\n <FormMessage className='RemoteFlows__DatePickerField__Error' />\n )}\n </FormItem>\n );\n}\n","import * as React from 'react';\nimport { ChevronLeft, ChevronRight } from 'lucide-react';\nimport { DayPicker } from 'react-day-picker';\n\nimport { cn } from '@/src/lib/utils';\n\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>;\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n ...props\n}: CalendarProps) {\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn('p-3', className)}\n classNames={{\n months: 'flex flex-col sm:flex-row gap-4',\n month: 'flex flex-col gap-y-4',\n month_caption: 'flex h-8 w-full items-center justify-center relative',\n caption_label: 'font-medium text-sm mt-1',\n nav: 'flex items-center justify-between absolute left-0 right-0 z-10',\n month_grid: 'w-full border-collapse mt-1',\n weekdays: 'flex',\n weekday:\n 'text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]',\n week: 'flex w-full mt-2',\n day: 'h-9 w-9 text-center text-sm p-0 relative',\n ...classNames,\n }}\n components={{\n Chevron: ({ orientation, ...props }) => {\n if (orientation === 'left') {\n return <ChevronLeft {...props} />;\n }\n return <ChevronRight {...props} />;\n },\n }}\n {...props}\n />\n );\n}\nCalendar.displayName = 'Calendar';\n\nexport { Calendar };\n"],"mappings":"qRASA,OAAS,gBAAAA,MAAoB,eAC7B,OAAS,UAAAC,MAAc,WCTvB,OAAS,eAAAC,EAAa,gBAAAC,MAAoB,eAC1C,OAAS,aAAAC,MAAiB,mBAiCP,cAAAC,MAAA,oBA3BnB,SAASC,EAAS,CAChB,UAAAC,EACA,WAAAC,EACA,gBAAAC,EAAkB,GAClB,GAAGC,CACL,EAAkB,CAChB,OACEL,EAACM,EAAA,CACC,gBAAiBF,EACjB,UAAWG,EAAG,MAAOL,CAAS,EAC9B,WAAY,CACV,OAAQ,kCACR,MAAO,wBACP,cAAe,uDACf,cAAe,2BACf,IAAK,iEACL,WAAY,8BACZ,SAAU,OACV,QACE,iEACF,KAAM,mBACN,IAAK,2CACL,GAAGC,CACL,EACA,WAAY,CACV,QAASK,EAAA,CAAC,CAAE,YAAAC,EAAa,GAAGJ,CAAM,IAC5BI,IAAgB,OACXT,EAACU,EAAA,CAAa,GAAGL,EAAO,EAE1BL,EAACW,EAAA,CAAc,GAAGN,EAAO,EAJzB,UAMX,EACC,GAAGA,EACN,CAEJ,CAnCSG,EAAAP,EAAA,YAoCTA,EAAS,YAAc,WDzBvB,OAAS,YAAAW,MAAgB,QAiBnB,OAgB0B,YAAAC,EAhB1B,OAAAC,EAOQ,QAAAC,MAPR,oBAfC,SAASC,EAAuB,CACrC,MAAAC,EACA,UAAAC,EACA,WAAAC,CACF,EAA6B,CAC3B,GAAM,CAAE,KAAAC,EAAM,MAAAC,EAAO,YAAAC,EAAa,QAAAC,EAAS,QAAAC,CAAQ,EAAIN,EACjDO,EAAeF,EAAU,IAAI,KAAKA,CAAO,EAAI,OAC7CG,EAAeF,EAAU,IAAI,KAAKA,CAAO,EAAI,OAC7C,CAACG,EAAMC,CAAO,EAAIC,EAAS,EAAK,EAEtC,OACEd,EAACe,EAAA,CACC,aAAYV,EACZ,UAAW,qDAAqDA,CAAI,GAEpE,UAAAN,EAACiB,EAAA,CAAU,UAAU,sCAClB,SAAAV,EACH,EACAN,EAACiB,EAAA,CAAQ,KAAML,EAAM,aAAcC,EACjC,UAAAd,EAACmB,EAAA,CAAe,QAAO,GACrB,SAAAnB,EAACoB,EAAA,CACC,SAAApB,EAAC,OACC,SAAAC,EAACoB,EAAA,CACC,KAAK,SACL,QAAS,UACT,UAAWC,EACT,oCACA,CAACnB,EAAM,OAAS,uBAClB,EACA,cAAa,sBAAsBG,CAAI,GAEtC,UAAAH,EAAM,OAASH,EAAAD,EAAA,CAAG,SAAAwB,EAAOpB,EAAM,MAAO,YAAY,EAAE,EACrDH,EAACwB,EAAA,CAAa,UAAU,6BAA6B,GACvD,EACF,EACF,EACF,EACAxB,EAACyB,EAAA,CACC,UAAW,0DACX,MAAM,QAEN,SAAAzB,EAAC0B,EAAA,CACC,KAAK,SACL,UAAU,yCACV,SAAUvB,EAAM,MAAQ,IAAI,KAAKA,EAAM,KAAK,EAAI,OAChD,WAAawB,GAAQ,CACnB,IAAMC,EAAgBL,EAAOI,EAAK,YAAY,EAC9CxB,EAAM,SAASyB,CAAa,EAC5Bd,EAAQ,EAAK,CACf,EACA,aAAcH,EACd,SAAWkB,GACL,GAAAlB,GAAgBkB,EAAOlB,GACvBC,GAAgBiB,EAAOjB,GAG/B,EACF,GACF,EACCJ,EACCR,EAAC8B,EAAA,CACC,WAAY9B,EAAC+B,EAAA,CAAW,WAAY3B,EAAU,MAAM,WAAY,EAE/D,SAAAI,EACH,EACE,KACHH,EAAW,OACVL,EAACgC,EAAA,CAAY,UAAU,sCAAsC,GAEjE,CAEJ,CAvEgBC,EAAA/B,EAAA","names":["CalendarIcon","format","ChevronLeft","ChevronRight","DayPicker","jsx","Calendar","className","classNames","showOutsideDays","props","DayPicker","cn","__name","orientation","ChevronLeft","ChevronRight","useState","Fragment","jsx","jsxs","DatePickerFieldDefault","field","fieldData","fieldState","name","label","description","minDate","maxDate","minDateValue","maxDateValue","open","setOpen","useState","FormItem","FormLabel","Popover","PopoverTrigger","FormControl","Button","cn","format","CalendarIcon","PopoverContent","Calendar","day","formattedDate","date","FormDescription","HelpCenter","FormMessage","__name"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-VHAJRKCI.js";import{a as y,b,c as N,d as T,e as $,f as v}from"./chunk-LBJAKZ6V.js";import{j as _,k as C,m as p,n as F}from"./chunk-72RFYT5Y.js";import{a as u}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as t}from"react/jsx-runtime";function G({field:f,fieldState:r,fieldData:g}){let{name:n,label:m,description:s,options:c,onChangeCountryCode:i,onChangePhoneNumber:h,currentCountry:o,nationalPhoneNumber:w}=g,I=o?`${o.name}-${o.dialCode}`:"";return t(_,{"data-field":n,className:`RemoteFlows__TelField__Item__${n}`,children:[m&&e(C,{className:"RemoteFlows__TelField__Label",children:m}),t("div",{className:"flex gap-2",children:[e("div",{className:"w-[180px]",children:t(y,{value:I,onValueChange:l=>{let a=c?.find(d=>`${d.label}-${d.meta?.countryCode}`===l);a&&i&&i({name:a.label,dialCode:a.meta?.countryCode||"",pattern:a.pattern||""})},children:[e(T,{className:"RemoteFlows__TelField__CountrySelect","aria-invalid":!!r.error,"aria-label":"Country code",children:e("span",{className:"absolute",children:e(N,{placeholder:"Country code *",children:o&&`${o.name} +${o.dialCode}`})})}),e($,{className:"RemoteFlows__TelField__CountryContent",children:e(b,{className:"RemoteFlows__TelField__CountryGroup",children:c?.map((l,a)=>t(v,{value:`${l.label}-${l.meta?.countryCode}`,className:"RemoteFlows__TelField__CountryItem",children:[l.label," +",l.meta?.countryCode]},`${l.label}-${l.meta?.countryCode}-${a}`))})})]})}),e("div",{className:"flex-1",children:e(S,{...f,type:"tel",value:w||"",onChange:h,className:"RemoteFlows__TelField__Input",placeholder:"Employee's phone number *","aria-invalid":!!r.error,"aria-label":"Phone number"})})]}),s&&e(p,{className:"RemoteFlows__TelField__Description",children:s}),r.error&&e(F,{})]})}u(G,"TelFieldDefault");export{G as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CUSAI2ZT.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-VDVWAYXP.js";import{a as r}from"./chunk-SW7DKXXK.js";import{a}from"./chunk-U6LRMWRI.js";import{a as c}from"./chunk-ALF55LF2.js";import{a as e}from"./chunk-D5AR26AI.js";import{a as o}from"./chunk-TVZAFTPT.js";import{a as n}from"./chunk-P37U34EQ.js";import{useId as f}from"react";import{jsx as s}from"react/jsx-runtime";function k({employmentId:d,countryCode:C,options:p,render:A}){let t=c({employmentId:d,countryCode:C,options:p}),i=f();return s(o.Provider,{value:{formId:i,contractAmendmentBag:t},children:A({contractAmendmentBag:t,components:{Form:r,SubmitButton:a,ConfirmationForm:m,BackButton:e}})})}n(k,"ContractAmendmentFlow");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DHLSO7BU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-KRJETP7I.js";import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-KRJETP7I.js";import{a}from"./chunk-ZSBQDVXM.js";import{a as i}from"./chunk-W7YC2IO2.js";import{a as c}from"./chunk-FHYOWPXB.js";import{a as S}from"./chunk-YIMWF5GR.js";import{a as f}from"./chunk-HI7TK62N.js";import{a as n}from"./chunk-6QJZMW6S.js";import{a as p}from"./chunk-OVA2X5BB.js";import{a as s}from"./chunk-MVPXUUUE.js";import{c as e}from"./chunk-MGVJ2TKE.js";import{a as r}from"./chunk-PGWKJ6FK.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as D,useState as P}from"react";import{jsx as R}from"react/jsx-runtime";var L=t(({employmentId:d,companyId:u,countryCode:b,type:l="employee",externalId:v,skipSteps:g,initialValues:B,render:I,options:O})=>{let w=D(),o=e({companyId:u,countryCode:b,employmentId:d,type:l,options:O,skipSteps:g,externalId:v,initialValues:B}),[C,h]=P({showReserveInvoice:!1,showInviteSuccessful:!1});return R(r.Provider,{value:{formId:w,onboardingBag:o,creditScore:C,setCreditScore:h},children:I({onboardingBag:o,components:{BasicInformationStep:n,ContractDetailsStep:s,BenefitsStep:p,SubmitButton:i,SaveDraftButton:S,BackButton:m,OnboardingInvite:a,SelectCountryStep:f,ReviewStep:c}})})},"OnboardingFlow");export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DR25AW5C.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as e}from"./chunk-OSQ6VUDM.js";import{a}from"./chunk-P37U34EQ.js";import*as i from"@radix-ui/react-radio-group";import{CircleIcon as d}from"lucide-react";import{jsx as o}from"react/jsx-runtime";function p({className:r,...t}){return o(i.Root,{"data-slot":"radio-group",className:e("grid gap-3",r),...t})}a(p,"RadioGroup");function l({className:r,...t}){return o(i.Item,{"data-slot":"radio-group-item",className:e("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),...t,children:o(i.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:o(d,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}a(l,"RadioGroupItem");export{p as a,l as b};
|
|
2
|
+
//# sourceMappingURL=chunk-DYNVJFJH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-VHAJRKCI.js";import{j as a,k as n,l as s,m as F,n as _}from"./chunk-72RFYT5Y.js";import{a as l}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as u}from"react/jsx-runtime";function I({field:o,fieldState:p,fieldData:c}){let{name:r,label:t,description:m,maxLength:d,includeErrorMessage:x}=c;return u(a,{"data-field":r,className:`RemoteFlows__TextField__Item__${r}`,children:[t&&e(n,{className:"RemoteFlows__TextField__Label",children:t}),e(s,{children:e(i,{...o,value:o.value??"",onChange:T=>{o.onChange(T)},className:"RemoteFlows__TextField__Input",placeholder:t,maxLength:d})}),m&&e(F,{className:"RemoteFlows__TextField__Description",children:m}),x&&p.error&&e(_,{className:"RemoteFlows__TextField__Error"})]})}l(I,"TextFieldDefault");export{I as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EC6ZM3SX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-UN4RAIAR.js";import{a as c}from"./chunk-7SRRP2D6.js";import{b as s}from"./chunk-Q3ALCPJN.js";import{c as l}from"./chunk-AHRG5QCS.js";import{m as e}from"./chunk-OSQ6VUDM.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-EN5ZMAYF.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{k as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{k as g}from"./chunk-O5XQUEB5.js";import{c as m,h as u}from"./chunk-OSQ6VUDM.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-ET4QWXWY.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{n as f}from"./chunk-OSQ6VUDM.js";import{a}from"./chunk-P37U34EQ.js";var w=a(e=>new Promise((n,r)=>{let s=new FileReader;s.readAsDataURL(e),s.onload=()=>n(s.result),s.onerror=t=>r(t)}),"toBase64"),x=a(async e=>await Promise.all(e.map(async r=>{let s=await w(r);return{...r,name:r.name,size:r.size,type:r.type,content:s.split(",")[1]}})),"convertFilesToBase64");function _(e,n){let r=e.split(","),s=r[0].match(/:(.*?);/)?.[1],t=atob(r[1]),i=Uint8Array.from(t,o=>o.charCodeAt(0));return new File([i],n,{type:s})}a(_,"dataURLtoFile");import{addBusinessDays as P,isWeekend as h,nextMonday as k}from"date-fns";var N={TEXT:"text",TEXTAREA:"textarea",NUMBER:"number",SELECT:"select",COUNTRIES:"countries",TEL:"tel",EMAIL:"email",MONEY:"money",DATE:"date",DATE_RANGE:"date-range",CURRENCIES:"currencies",TIME:"time"},L={CHECKBOX:"checkbox",ACK_CHECK:"ack-check"},l={FILE:"file",RADIO:"radio",RADIO_CARD:"radio-card",GROUP_ARRAY:"group-array",EXTRA:"extra",STATEMENT:"statement",HIDDEN:"hidden",FIELDSET:"fieldset",FIELDSET_FLAT:"fieldset-flat",WORK_SCHEDULE:"work-schedule",WORK_WEEK_SCHEDULE:"work-week-schedule",BENEFITS:"benefits",SIGNATURE:"signature",SELECT_MULTIPLE:"select-multiple",...N,...L};function V(e){return Math.round((e+Number.EPSILON)*100)/100}a(V,"round");function A(e){return parseFloat(e.replace(/,/g,""))}a(A,"convertToValidCost");function C(e){if(e==null||e===""||Number.isNaN(e)||Array.isArray(e)||typeof e=="boolean")return null;let n;return typeof e=="string"?n=A(e):n=e,V(n*100)}a(C,"convertToCents");function j(e){if(e==null||Number.isNaN(e))return null;let n;return typeof e=="string"?n=A(e||"0"):n=e,V(n/100)}a(j,"convertFromCents");var g=a(e=>Object.entries(e||{}).reduce((n,[r,s])=>(Array.isArray(s)?n[r]=s.map(t=>typeof t=="object"&&t!==null?g(t):typeof t=="string"?t.trim():t):typeof s=="object"&&s!==null?n[r]=g(s):n[r]=typeof s=="string"?s.trim():s,n),{}),"trimStringValues");function R(e,n){let r={};return n.forEach(s=>{let t=s.name;if(!(!Object.prototype.hasOwnProperty.call(e,t)&&!(s.type===l.FIELDSET&&s.valueGroupingDisabled))){if(s.type===l.FIELDSET&&s.valueGroupingDisabled){Object.assign(r,R(e,s.fields));return}s.readOnly&&s.defaultValue?r[t]=s.defaultValue:r[t]=e[t]}}),r}a(R,"prefillReadOnlyFields");function M(e,n){return e.reduce((r,s)=>(s.type===l.FIELDSET&&s.valueGroupingDisabled?Object.assign(r,M(s.fields,n)):Object.prototype.hasOwnProperty.call(n,s.name)&&(r[s.name]=n[s.name]),r),{})}a(M,"extractFieldsetFieldsValues");var b={[l.COUNTRIES]:{transformValueToAPI:a(e=>n=>!e.multiple||typeof n=="string"?n:n.map(r=>typeof r=="string"?r:r.name),"transformValueToAPI"),transformValue:a(e=>{let n=a(r=>r?.name||r?.value||r?.label,"getCountryValue");return Array.isArray(e)?e.map(n):n(e)||""},"transformValue")},[l.NUMBER]:{transformValueToAPI:a(()=>e=>{let n=Number(e);return Number.isNaN(n)?e:n},"transformValueToAPI")},[l.MONEY]:{transformValueFromAPI:a(()=>e=>j(e)??"","transformValueFromAPI"),transformValueToAPI:a(()=>C,"transformValueToAPI")},[l.RADIO]:{transformValueToAPI:a(e=>n=>e.transformToBool?n==="yes":n,"transformValueToAPI")},[l.CHECKBOX]:{transformValueToAPI:a(e=>n=>n===void 0?!1:e.const&&n===!0?e.const:n,"transformValueToAPI")},[l.SELECT]:{transformValue:a(e=>Array.isArray(e)?e.map(n=>n.value):e?.value??"","transformValue")},[l.FILE]:{transformValueToAPI:a(()=>async e=>e?await x(e):null,"transformValueToAPI")}};async function F(e={},n){let r=n.filter(t=>e[t.name]||t.type===l.FIELDSET&&t.valueGroupingDisabled);return(await Promise.all(r.map(async t=>{let i={};switch(t.type){case l.FIELDSET:{let o=t;if(o.valueGroupingDisabled){let u=M(o.fields,e);Object.assign(i,await F(u,o.fields))}else{let u=e[t.name];if(u&&typeof u=="object"&&!Array.isArray(u)){let c=Object.fromEntries(Object.entries(u).filter(([,m])=>m!==""&&m!==null&&m!==void 0));i[t.name]=Object.keys(c).length>0?await F(c,o.fields):void 0}else i[t.name]=await F(u,o.fields)}break}case l.TEXTAREA:case l.TEXT:i[t.name]=e[t.name].replace(/\0/g,"");break;case l.GROUP_ARRAY:{let o=t?.fields?.().map(c=>({...c,name:c.nameKey||""})),u=await Promise.all(e[t.name]?.map(c=>F(c,o))||[]);i[t.name]=u;break}case l.EXTRA:{let o=t;if(o.includeValueToApi!==!1){let u=e[o.name],c=o?.transformValueToAPI||b[o.type]?.transformValueToAPI;if(c){let m=c(t)(u);i[o.name]=m instanceof Promise?await m:m;break}i[o.name]=u;break}i[o.name]=void 0;break}default:{let o=e[t.name],u=t?.transformValueToAPI||b[t.type]?.transformValueToAPI;if(u){let c=u(t)(o);i[t.name]=c instanceof Promise?await c:c;break}i[t.name]=o;break}}return t.forcedValue!==void 0&&(i[t.name]=t.forcedValue),i}))).reduce((t,i)=>({...t,...i}),{...e})}a(F,"parseFormValuesToAPI");function I(e,n){return e.visibilityCondition?e.visibilityCondition(n):typeof e.isVisible<"u"?!!e.isVisible:!0}a(I,"isFieldVisible");function E(e,n){return e.calculateDynamicProperties?{...e,...e.calculateDynamicProperties(n)||{}}:e}a(E,"applyFieldDynamicProperties");function y(e,n,r,s){let t={};return n.map(i=>E(i,e)).forEach(i=>{let o=i.name;s&&(o=o?`${s}.${i.name}`:s);let u=f(e,o);if(!(!I(i,e)&&!(r&&u))&&!i.meta?.ignoreValue)if(i.type==="fieldset"&&i.valueGroupingDisabled)Object.assign(t,y(e,i.fields,r,o));else if(Array.isArray(i.fields))t[i.name]=y(e,i.fields,r,o);else{if(u===void 0)return;t[i.name]=u}}),t}a(y,"excludeValuesInvisible");function U(e){return Object.fromEntries(Object.entries(e).filter(([,n])=>n!=null&&n!==""))}a(U,"removeEmptyValues");function S(e){return Array.isArray(e)?e.map(S):e&&typeof e=="object"?Object.entries(e).reduce((n,[r,s])=>(r.startsWith("_")||(n[r]=S(s)),n),{}):e}a(S,"cleanUnderscoreFields");async function B(e,n,r){let s=r?.keepInvisibleValues?e:y(e,n),t=await F(s,n),i=g(t),o=U(i),u=R(o,n);return S(u)}a(B,"parseSubmitValues");async function Y(e,n,r={isPartialValidation:!1}){return await B(e,n,{keepInvisibleValues:r?.isPartialValidation})}a(Y,"parseJSFToValidate");function G(e){if(e!==l.FILE)return""}a(G,"getDefaultValueForType");function $(e,n){let r=f(e,n.name),s=n?.transformValueFromAPI||b[n.type]?.transformValueFromAPI;if(s)return s(n)(r);let t=typeof n.value=="function"?n.value(r,e):null,i=typeof n.value!="function"?n.value:null,o=n.checkboxValue===!0?r||!1:null,u=a(c=>c===""?void 0:c,"excludeString");return u(t)??u(r)??u(i)??u(n.default)??o??G(n.type)}a($,"getInitialDefaultValue");function D(e,n,r){let s={},t=e.name;r&&(t=t?`${r}.${t}`:r);let i=e.fields;if(Array.isArray(i)){let o={};i.forEach(u=>{Object.assign(o,D(u,n,t))}),e.type===l.FIELDSET&&e.valueGroupingDisabled?Object.assign(s,o):s[e.name]=o}else s[e.name]=$(n,{...e,name:t});return s}a(D,"getInitialSubFieldValues");function W(e,n){let r={},s=n;return e.map(t=>E(t,s)).forEach(t=>{switch(t.type){case l.FIELDSET:{if(t.valueGroupingDisabled)Object.assign(r,W(t.fields,s));else{let i=D(t,s);Object.assign(r,i)}break}default:{r[t.name]||(r[t.name]=$(s,t));break}}}),r}a(W,"getInitialValues");function z({fields:e=[],fieldsets:n={},values:r}){let s=Object.keys(n);if(!s?.length)return e;let t=new Set(s.flatMap(c=>n[c]?.propertiesByName??[]));return s.map(c=>{let{propertiesByName:m=[],...p}=n[c],T=m.map(d=>e.find(O=>O.name===d)).filter(d=>!!d);return{...p,name:c,type:"fieldset-flat",inputType:"fieldset-flat",fields:T,label:n[c].title,isVisible:T.map(d=>E(d,r)).some(d=>I(d,r))}}).reduce((c,m)=>{let p=[...c],T=m.fields[0]?c.findIndex(d=>d.name===m.fields[0].name):c.length;return p.splice(T,0,m),p},e).filter(c=>c.type==="fieldset-flat"?!0:!t.has(c.name))}a(z,"getFieldsWithFlatFieldsets");function q(e,n){let r=n;return e.forEach(s=>{"const"in s&&(r=Object.fromEntries(Object.entries(n).map(([t,i])=>t===s.name?[t,s.const]:[t,i])))}),r}a(q,"enableAckFields");function Q(e){let n=new Date;n.setDate(n.getUTCDate()),n.setHours(0,0,0,0);let r=P(n,e+1);return h(r)?k(r):r}a(Q,"getMinStartDate");function Z(e){return e.const!==void 0&&e.const===e.default&&e.type!=="checkbox"&&e.type!=="hidden"}a(Z,"checkFieldHasForcedValue");export{_ as a,V as b,C as c,j as d,Y as e,W as f,z as g,q as h,Q as i,Z as j};
|
|
2
|
+
//# sourceMappingURL=chunk-FFVTWWGX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as r}from"./chunk-OSQ6VUDM.js";import{a as e}from"./chunk-P37U34EQ.js";import{cva as i}from"class-variance-authority";import{jsx as d}from"react/jsx-runtime";var o=i("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-badge text-badge-foreground rounded-full [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground rounded-full [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white rounded-full [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",outline:"text-foreground rounded-full [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function c({className:t,variant:a,...n}){return d("span",{"data-slot":"badge",className:r(o({variant:a}),t),...n})}e(c,"Badge");export{o as a,c as b};
|
|
2
|
+
//# sourceMappingURL=chunk-FOBUW3RN.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as l}from"./chunk-OSQ6VUDM.js";import{a as d}from"./chunk-P37U34EQ.js";import*as r from"react";import{jsx as o}from"react/jsx-runtime";var i=r.forwardRef(({className:a,...e},t)=>o("div",{className:"relative w-full overflow-auto",children:o("table",{ref:t,className:l("w-full caption-bottom text-sm",a),...e})}));i.displayName="Table";var c=r.forwardRef(({className:a,...e},t)=>o("thead",{ref:t,className:l("[&_tr]:border-b",a),...e}));c.displayName="TableHeader";var n=r.forwardRef(({className:a,...e},t)=>o("tbody",{ref:t,className:l("[&_tr:last-child]:border-0",a),...e}));n.displayName="TableBody";var M=r.forwardRef(({className:a,...e},t)=>o("tfoot",{ref:t,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...e}));M.displayName="TableFooter";var m=r.forwardRef(({className:a,...e},t)=>o("tr",{ref:t,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...e}));m.displayName="TableRow";var f=r.forwardRef(({className:a,...e},t)=>o("th",{ref:t,className:l("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));f.displayName="TableHead";var p=r.forwardRef(({className:a,...e},t)=>o("td",{ref:t,className:l("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));p.displayName="TableCell";var L=r.forwardRef(({className:a,...e},t)=>o("caption",{ref:t,className:l("mt-4 text-sm text-muted-foreground",a),...e}));L.displayName="TableCaption";import{jsx as s,jsxs as N}from"react/jsx-runtime";var g=d(({data:a,columns:e,className:t,ref:H})=>N(i,{ref:H,className:l("RemoteFlows__Table",t),children:[s(c,{children:s(m,{children:e.map(b=>s(f,{className:l("RemoteFlows__TableHead",b.className),children:b.label},String(b.id)))})}),s(n,{children:a?.map((b,R)=>s(m,{children:e.map(T=>s(p,{className:l("RemoteFlows__TableCell",T.className,T.cellClassName),children:T.render?T.render(b[T.id],b,R):b[T.id]},String(T.id)))},y(b,R)))})]}),"TableFieldDefault");function y(a,e){return String(a.id??e)}d(y,"getRowKey");export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FTC4EFBO.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-JBOUDOIM.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";var l=e(({currency:n,desiredCurrency:o,annual_gross_salary_conversion_properties:r,...a})=>i(s,{...a,sourceCurrency:n,targetCurrency:o,conversionFieldName:"annual_gross_salary_conversion",conversionProperties:{...r,description:r?.description||"Estimated amount. This is an estimation. We calculate conversions based on spot rates that are subject to fluctuation over time."},classNamePrefix:"RemoteFlows-AnnualGrossSalary",conversionType:"no_spread"}),"AnnualGrossSalary");export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-GFM747IZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-2OGPILJM.js";import{b as m}from"./chunk-76ZDXC2T.js";import{m as i}from"./chunk-OSQ6VUDM.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function l({onSubmit:c,onSuccess:p,onError:t}){let{createCompanyBag:o}=m(),u=a(async r=>{try{await c?.({countryCode:r.country_code,companyOwnerEmail:r.company_owner_email,companyOwnerName:r.company_owner_name,desiredCurrency:r.desired_currency,name:r.name,phoneNumber:r.phone_number,taxNumber:r.tax_number});let n=await o.onSubmit(r);if(n?.data){await p?.(n?.data),o?.next();return}if(n?.error){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}}catch(n){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}},"handleSubmit"),f=o.stepState.values?.company_basic_information||o.initialValues.company_basic_information;return d(s,{defaultValues:f,onSubmit:u})}a(l,"CompanyBasicInformationStep");export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-GLJV3B55.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{K as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{K as e}from"./chunk-O5XQUEB5.js";import{a as t}from"./chunk-P37U34EQ.js";import{queryOptions as i}from"@tanstack/react-query";var a=t((o,n="default")=>i({queryKey:["countries",n],retry:!1,queryFn:t(async()=>{let r=await e({client:o,headers:{Authorization:""}});if(r.error||!r.data)throw new Error("Failed to fetch supported countries");return r},"queryFn")}),"countriesOptions");export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-HBX37YK2.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-XO4DAKV7.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-HGBOZH6Q.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as I}from"./chunk-TXSUZLOI.js";import{a as N}from"./chunk-A3LRPGV3.js";import{a as j,b as v,c as D,d as O}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as I}from"./chunk-TXSUZLOI.js";import{a as N}from"./chunk-A3LRPGV3.js";import{a as j,b as v,c as D,d as O}from"./chunk-SBTZUZDR.js";import{e as p,f as F}from"./chunk-FFVTWWGX.js";import{a as C,j as R,k as b}from"./chunk-OSQ6VUDM.js";import{a as k}from"./chunk-TSPDJUGG.js";import{a as c}from"./chunk-P37U34EQ.js";import{useMemo as S,useRef as ee,useState as A}from"react";var pe=c(({countryCode:L,options:u,initialValues:l})=>{let P=j(),g=v(),{mutateAsync:q}=C(P),{mutateAsync:J}=C(g),[y,U]=A(L||null),[f,B]=A(null),w=ee({company_basic_information:{},address_details:{}}),{fieldValues:V,stepState:a,setFieldValues:W,previousStep:z,nextStep:G,goToStep:H}=k(N),{companyBasicInformationForm:d,isLoading:K}=D({jsfModify:u?.jsfModify?.company_basic_information,queryOptions:{enabled:a.currentStep.name==="company_basic_information"}}),{data:s,isLoading:Q}=O({countryCode:y,fieldValues:a.currentStep.name==="address_details"?{...a.values?.address_details||{},...V}:a.values?.address_details||{},options:{...u,jsfModify:u?.jsfModify?.address_details,queryOptions:{enabled:a.currentStep.name==="address_details"&&!!y&&!!f}}}),i=S(()=>({company_basic_information:d?.fields||[],address_details:s?.fields||[]}),[d?.fields,s?.fields]),X={company_basic_information:null,address_details:s?.meta?.["x-jsf-fieldsets"]||null},h=S(()=>F(i.company_basic_information,{...l,country_code:y||l?.country_code||""}),[i.company_basic_information,y,l]),E=S(()=>F(i.address_details,l||{}),[i.address_details,l]),Y=S(()=>({company_basic_information:h,address_details:E}),[h,E]),Z=c(t=>{H(t)},"goTo"),M=c(async t=>{let r=a.currentStep.name,e=i[r];return d&&r==="company_basic_information"?await p(t,e,{isPartialValidation:!1}):s&&r==="address_details"?await p(t,e,{isPartialValidation:!1}):{}},"parseFormValues");async function $(t){let r=a.currentStep.name;r in w.current&&(w.current[r]=R(t,i[r]));let e=await M(t);switch(a.currentStep.name){case"company_basic_information":{if(U(e.country_code),f)return Promise.resolve({data:{countryCode:e.country_code??"",companyOwnerEmail:e.company_owner_email??"",companyOwnerName:e.company_owner_name??"",desiredCurrency:e.desired_currency??"",name:e.name??"",phoneNumber:e.phone_number??"",taxNumber:e.tax_number??""}});let x={country_code:e.country_code,company_owner_email:e.company_owner_email,company_owner_name:e.company_owner_name,desired_currency:e.desired_currency,name:e.name,phone_number:e.phone_number,tax_number:e.tax_number,terms_of_service_accepted_at:I()},n=await q(x);if(n.error)return Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors});let m=n.data?.data,_,o;if(m)if("data"in m&&m.data){let T=m.data.company;o=T,_=T?.id}else"company"in m&&(o=m.company,_=o?.id);return _&&B(_),Promise.resolve({data:{countryCode:o?.country_code??e.country_code??"",companyOwnerEmail:o?.company_owner_email??e.company_owner_email??"",companyOwnerName:o?.company_owner_name??e.company_owner_name??"",desiredCurrency:o?.desired_currency??e.desired_currency??"",name:o?.name??e.name??"",phoneNumber:o?.phone_number??e.phone_number??"",taxNumber:o?.tax_number??e.tax_number??""}})}case"address_details":{if(!f)throw b("Company ID is required to update address details");let n=await J({companyId:f,payload:{address_details:e},jsonSchemaVersion:u?.jsonSchemaVersion?.form_schema?.address_details});return n.error?Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors}):Promise.resolve({data:n.data})}default:throw b("Invalid step state")}}return c($,"onSubmit"),{isLoading:K||Q,isSubmitting:P.isPending||g.isPending,fieldValues:V,stepState:a,checkFieldUpdates:W,back:z,next:G,goTo:Z,onSubmit:$,fields:i[a.currentStep.name],meta:{fields:w.current,fieldsets:X[a.currentStep.name]},parseFormValues:M,handleValidation:c(async t=>{if(a.currentStep.name==="company_basic_information"&&d){let r=await p(t,d.fields,{isPartialValidation:!1});return d.handleValidation(r)}if(a.currentStep.name==="address_details"&&s){let r=await p(t,s.fields,{isPartialValidation:!1});return s.handleValidation(r)}return null},"handleValidation"),initialValues:Y}},"useCreateCompany");export{pe as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HGETJXZZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-7DQY3SRL.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-HI7TK62N.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d,b as S,c as p,d as u,e as g,f as b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d,b as S,c as p,d as u,e as g,f as b}from"./chunk-LBJAKZ6V.js";import{j as c,k as i,l as n,m as _,n as F}from"./chunk-72RFYT5Y.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-INV4YWPR.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{k as J}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{k as J}from"./chunk-KIUI7FHF.js";import{b as G,c as M,d as L}from"./chunk-FFVTWWGX.js";import{a as k}from"./chunk-CLAVZQBC.js";import{c as B,m as A}from"./chunk-72RFYT5Y.js";import{b as H}from"./chunk-KQPDXXG3.js";import{a as n,b as d,c as qe}from"./chunk-P37U34EQ.js";var D=d((En,U)=>{"use strict";function we(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}n(we,"isObject");U.exports=we});var X=d((In,V)=>{"use strict";var Fe=typeof global=="object"&&global&&global.Object===Object&&global;V.exports=Fe});var _=d((qn,z)=>{"use strict";var Pe=X(),ke=typeof self=="object"&&self&&self.Object===Object&&self,Me=Pe||ke||Function("return this")();z.exports=Me});var Q=d((wn,K)=>{"use strict";var Le=_(),De=n(function(){return Le.Date.now()},"now");K.exports=De});var Z=d((Pn,Y)=>{"use strict";var _e=/\s/;function $e(e){for(var t=e.length;t--&&_e.test(e.charAt(t)););return t}n($e,"trimmedEndIndex");Y.exports=$e});var ne=d((Mn,ee)=>{"use strict";var Ne=Z(),We=/^\s+/;function Be(e){return e&&e.slice(0,Ne(e)+1).replace(We,"")}n(Be,"baseTrim");ee.exports=Be});var $=d((Dn,te)=>{"use strict";var Ae=_(),He=Ae.Symbol;te.exports=He});var se=d((_n,ie)=>{"use strict";var re=$(),oe=Object.prototype,Ge=oe.hasOwnProperty,Je=oe.toString,O=re?re.toStringTag:void 0;function Ue(e){var t=Ge.call(e,O),r=e[O];try{e[O]=void 0;var i=!0}catch{}var u=Je.call(e);return i&&(t?e[O]=r:delete e[O]),u}n(Ue,"getRawTag");ie.exports=Ue});var ce=d((Nn,ae)=>{"use strict";var Ve=Object.prototype,Xe=Ve.toString;function ze(e){return Xe.call(e)}n(ze,"objectToString");ae.exports=ze});var le=d((Bn,de)=>{"use strict";var ue=$(),Ke=se(),Qe=ce(),Ye="[object Null]",Ze="[object Undefined]",fe=ue?ue.toStringTag:void 0;function en(e){return e==null?e===void 0?Ze:Ye:fe&&fe in Object(e)?Ke(e):Qe(e)}n(en,"baseGetTag");de.exports=en});var pe=d((Hn,me)=>{"use strict";function nn(e){return e!=null&&typeof e=="object"}n(nn,"isObjectLike");me.exports=nn});var be=d((Jn,ge)=>{"use strict";var tn=le(),rn=pe(),on="[object Symbol]";function sn(e){return typeof e=="symbol"||rn(e)&&tn(e)==on}n(sn,"isSymbol");ge.exports=sn});var Ce=d((Vn,xe)=>{"use strict";var an=ne(),ve=D(),cn=be(),ye=NaN,un=/^[-+]0x[0-9a-f]+$/i,fn=/^0b[01]+$/i,dn=/^0o[0-7]+$/i,ln=parseInt;function mn(e){if(typeof e=="number")return e;if(cn(e))return ye;if(ve(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ve(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=an(e);var r=fn.test(e);return r||dn.test(e)?ln(e.slice(2),r?2:8):un.test(e)?ye:+e}n(mn,"toNumber");xe.exports=mn});var Se=d((zn,Te)=>{"use strict";var pn=D(),N=Q(),he=Ce(),gn="Expected a function",bn=Math.max,vn=Math.min;function yn(e,t,r){var i,u,b,l,s,a,p=0,E=!1,f=!1,x=!0;if(typeof e!="function")throw new TypeError(gn);t=he(t)||0,pn(r)&&(E=!!r.leading,f="maxWait"in r,b=f?bn(he(r.maxWait)||0,t):b,x="trailing"in r?!!r.trailing:x);function C(o){var g=i,y=u;return i=u=void 0,p=o,l=e.apply(y,g),l}n(C,"invokeFunc");function R(o){return p=o,s=setTimeout(m,t),E?C(o):l}n(R,"leadingEdge");function q(o){var g=o-a,y=o-p,c=t-g;return f?vn(c,b-y):c}n(q,"remainingWait");function T(o){var g=o-a,y=o-p;return a===void 0||g>=t||g<0||f&&y>=b}n(T,"shouldInvoke");function m(){var o=N();if(T(o))return S(o);s=setTimeout(m,q(o))}n(m,"timerExpired");function S(o){return s=void 0,x&&i?C(o):(i=u=void 0,l)}n(S,"trailingEdge");function I(){s!==void 0&&clearTimeout(s),p=0,i=a=u=s=void 0}n(I,"cancel");function w(){return s===void 0?l:S(N())}n(w,"flush");function j(){var o=N(),g=T(o);if(i=arguments,u=this,a=o,g){if(s===void 0)return R(a);if(f)return clearTimeout(s),s=setTimeout(m,t),C(a)}return s===void 0&&(s=setTimeout(m,t)),l}return n(j,"debounced"),j.cancel=I,j.flush=w,j}n(yn,"debounce");Te.exports=yn});import{useState as hn,useCallback as Tn,useEffect as Ee,useRef as Sn}from"react";var Oe=qe(Se(),1);import{useCallback as xn,useEffect as Cn,useRef as je}from"react";function W(e,t){let r=je(e);Cn(()=>{r.current=e},[e]);let i=je((0,Oe.default)(u=>{r.current(u)},t)).current;return xn(u=>{i(u)},[i])}n(W,"useDebounce");import{Fragment as On,jsx as h,jsxs as Re}from"react/jsx-runtime";var jn=n(({description:e,showConversion:t,targetCurrency:r,className:i,onClick:u})=>{let{components:b}=H(),l=t?`Hide ${r} conversion`:`Show ${r} conversion`,s=b?.button;if(!s)throw new Error("Button component not found");return Re("span",{className:i,children:[h(A,{as:"span",children:e})," ",h(s,{className:`${i.replace("-description","-button")}`,"data-type":"inline",onClick:u,children:l})]})},"DescriptionWithConversion"),ut=n(({sourceCurrency:e,targetCurrency:t,mainFieldName:r,conversionFieldName:i,conversionProperties:u,classNamePrefix:b,description:l,conversionType:s="spread",...a})=>{let[p,E]=hn(!1),{setValue:f,watch:x}=B(),C=x(r||a.name),R=Sn(!0),q=e&&t&&e!==t,{mutateAsync:T}=J({type:s}),m=`${a.name}_converted`;Ee(()=>{f(m,r||a.name)},[f,r,a.name,m]),Ee(()=>{if(R.current){R.current=!1;return}f(i,"")},[e,i,f]);let S=Tn(async(c,v,F)=>{if(!(!c||isNaN(c)||c<=0))return T({source_currency:v,target_currency:F,amount:c})},[T]),I=W(async c=>{let v=M(c),P=1/((await S(v,t,e))?.data?.data.conversion_data?.exchange_rate??1),Ie=G(Number(v)*P);f(i,L(Ie))},500),w=W(async c=>{let v=M(c),P=(await S(v,t,e))?.data?.data.conversion_data.target_amount;f(r||a.name,L(P))},500),j=n(c=>{f(m,r||a.name),p&&I(c.target.value)},"handleMainFieldChange"),o=n(c=>{f(m,i),w(c.target.value)},"handleConversionFieldChange"),g=n(c=>{c.preventDefault(),E(v=>!v),!p&&C&&I(C)},"toggleConversion"),y=q?h(jn,{targetCurrency:t,description:l,showConversion:p,className:`${b}-description`,onClick:g}):l;return Re(On,{children:[h(k,{...a,name:r||a.name,additionalProps:{currency:e},description:y,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:j}),p&&h(k,{additionalProps:{currency:t},name:i,label:u?.label||"Conversion",description:u?.description,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:o}),h("input",{type:"hidden",name:m,value:x(m)||r||a.name})]})},"CurrencyConversionField");export{ut as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JBOUDOIM.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as m}from"./chunk-FFVTWWGX.js";import{b as f}from"./chunk-626FTNKA.js";import{a as n}from"./chunk-P37U34EQ.js";import{createHeadlessForm as F,modify as y}from"@remoteoss/remote-json-schema-form-kit";var O=n((e,s,t)=>{if(t&&t.jsfModify){let{required:l,allOf:r,...o}=t.jsfModify,{schema:i}=y(e,o);e=i,l&&(e.required=[...Array.isArray(i.required)?i.required:[],...l]),r&&(e.allOf=[...Array.isArray(i.allOf)?i.allOf:[],...r])}let d={};s&&(d=f(e.properties||{},"money").reduce((r,o)=>(r[o]=m(s[o]),r),{}));let a=JSON.parse(JSON.stringify({...s,...d}));return{meta:{"x-jsf-fieldsets":e["x-jsf-fieldsets"]},...F(e,{initialValues:a})}},"createHeadlessForm");export{O as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JR6VISHQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common/createHeadlessForm.tsx"],"sourcesContent":["import { FieldValues } from 'react-hook-form';\nimport {\n createHeadlessForm as baseCreateHeadlessForm,\n modify,\n} from '@remoteoss/remote-json-schema-form-kit';\nimport { convertToCents } from '@/src/components/form/utils';\nimport {\n JSFModify,\n JSONSchemaFormResultWithFieldsets,\n} from '@/src/flows/types';\nimport { findFieldsByType } from '@/src/flows/utils';\nimport { JSFFieldset } from '@/src/types/remoteFlows';\n\n/*\n * Creates a headless form from a JSON Schema, useful to avoid code duplication when creating headless forms.\n * @param jsfSchema - The JSON Schema\n * @param fieldValues - The field values\n * @param options - The options\n * @returns The headless form\n */\nexport const createHeadlessForm = (\n jsfSchema: Record<string, unknown>,\n fieldValues?: FieldValues,\n options?: { jsfModify?: JSFModify },\n): JSONSchemaFormResultWithFieldsets => {\n if (options && options.jsfModify) {\n const { required, allOf, ...modifyConfig } = options.jsfModify;\n const { schema } = modify(jsfSchema, modifyConfig);\n jsfSchema = schema;\n\n if (required) {\n jsfSchema.required = [\n ...(Array.isArray(schema.required) ? schema.required : []),\n ...required,\n ];\n }\n\n if (allOf) {\n jsfSchema.allOf = [\n ...(Array.isArray(schema.allOf) ? schema.allOf : []),\n ...allOf,\n ];\n }\n }\n\n let moneyFieldsData: Record<string, number | null> = {};\n\n if (fieldValues) {\n const moneyFields = findFieldsByType(jsfSchema.properties || {}, 'money');\n moneyFieldsData = moneyFields.reduce<Record<string, number | null>>(\n (acc, field) => {\n acc[field] = convertToCents(fieldValues[field]);\n return acc;\n },\n {},\n );\n }\n\n /**\n * We create a deep copy of the field values to avoid modifying the original object.\n * This problem is caused by json-schema-form-v0.\n */\n const initialValues = JSON.parse(\n JSON.stringify({\n ...fieldValues,\n ...moneyFieldsData,\n }),\n );\n\n return {\n meta: {\n 'x-jsf-fieldsets': jsfSchema['x-jsf-fieldsets'] as JSFFieldset,\n },\n ...baseCreateHeadlessForm(jsfSchema, {\n initialValues,\n }),\n };\n};\n"],"mappings":"wHACA,OACE,sBAAsBA,EACtB,UAAAC,MACK,yCAgBA,IAAMC,EAAqBC,EAAA,CAChCC,EACAC,EACAC,IACsC,CACtC,GAAIA,GAAWA,EAAQ,UAAW,CAChC,GAAM,CAAE,SAAAC,EAAU,MAAAC,EAAO,GAAGC,CAAa,EAAIH,EAAQ,UAC/C,CAAE,OAAAI,CAAO,EAAIC,EAAOP,EAAWK,CAAY,EACjDL,EAAYM,EAERH,IACFH,EAAU,SAAW,CACnB,GAAI,MAAM,QAAQM,EAAO,QAAQ,EAAIA,EAAO,SAAW,CAAC,EACxD,GAAGH,CACL,GAGEC,IACFJ,EAAU,MAAQ,CAChB,GAAI,MAAM,QAAQM,EAAO,KAAK,EAAIA,EAAO,MAAQ,CAAC,EAClD,GAAGF,CACL,EAEJ,CAEA,IAAII,EAAiD,CAAC,EAElDP,IAEFO,EADoBC,EAAiBT,EAAU,YAAc,CAAC,EAAG,OAAO,EAC1C,OAC5B,CAACU,EAAKC,KACJD,EAAIC,CAAK,EAAIC,EAAeX,EAAYU,CAAK,CAAC,EACvCD,GAET,CAAC,CACH,GAOF,IAAMG,EAAgB,KAAK,MACzB,KAAK,UAAU,CACb,GAAGZ,EACH,GAAGO,CACL,CAAC,CACH,EAEA,MAAO,CACL,KAAM,CACJ,kBAAmBR,EAAU,iBAAiB,CAChD,EACA,GAAGc,EAAuBd,EAAW,CACnC,cAAAa,CACF,CAAC,CACH,CACF,EAzDkC","names":["baseCreateHeadlessForm","modify","createHeadlessForm","__name","jsfSchema","fieldValues","options","required","allOf","modifyConfig","schema","modify","moneyFieldsData","findFieldsByType","acc","field","convertToCents","initialValues","baseCreateHeadlessForm"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as o}from"./chunk-OSQ6VUDM.js";import*as t from"react";import*as e from"@radix-ui/react-checkbox";import{Check as s}from"lucide-react";import{jsx as i}from"react/jsx-runtime";var m=t.forwardRef(({className:r,...c},a)=>i(e.Root,{ref:a,className:o("peer h-4 w-4 shrink-0 rounded-sm border border-input ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-checkbox data-[state=checked]:text-primary",r),...c,children:i(e.Indicator,{className:o("flex items-center justify-center text-current"),children:i(s,{className:"h-4 w-4"})})}));m.displayName=e.Root.displayName;export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JXWFFVQO.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as k}from"./chunk-AL37BOFX.js";import{a as c}from"./chunk-JXWFFVQO.js";import{j as p,k as a,l as d,m as i,n as u}from"./chunk-72RFYT5Y.js";import{c as _}from"./chunk-OSQ6VUDM.js";import{a as F}from"./chunk-P37U34EQ.js";import{Fragment as x,jsx as e,jsxs as r}from"react/jsx-runtime";var w=F(({field:l,fieldState:b,fieldData:s})=>{let{name:m,label:n,description:C,options:t,multiple:h}=s;return r(p,{"data-field":m,className:_(`RemoteFlows__CheckBoxField__Item__${m}`),children:[e(d,{children:r(x,{children:[t&&h?e(a,{children:n}):null,t&&h?t.map(o=>r("div",{className:"flex space-x-2",children:[e(c,{id:o.value,onCheckedChange:v=>{l.onChange(v===!0,o.value)},checked:l.value?.includes(o.value),className:"RemoteFlows__CheckBox__Input"}),e(a,{htmlFor:o.value,className:"mb-0 RemoteFlows__CheckBox__Label",children:o.label})]},o.value)):r("div",{className:"flex space-x-2",children:[e(c,{id:m,onCheckedChange:o=>{l.onChange(o===!0,null)},checked:l.value,className:"RemoteFlows__CheckBox__Input"}),e(a,{htmlFor:m,className:"mb-0 RemoteFlows__CheckBox__Label",children:n})]})]})}),C&&e(i,{helpCenter:e(k,{helpCenter:s.meta?.helpCenter}),children:C}),b.error&&e(u,{})]})},"CheckboxFieldDefault");export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KFNCHTUX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/form/fields/default/CheckboxFieldDefault.tsx"],"sourcesContent":["import { HelpCenter } from '@/src/components/shared/zendesk-drawer/HelpCenter';\nimport { Checkbox } from '@/src/components/ui/checkbox';\nimport {\n FormControl,\n FormDescription,\n FormItem,\n FormLabel,\n FormMessage,\n} from '@/src/components/ui/form';\nimport { cn } from '@/src/lib/utils';\nimport { FieldComponentProps } from '@/src/types/fields';\nimport { CheckedState } from '@radix-ui/react-checkbox';\n\nexport const CheckboxFieldDefault = ({\n field,\n fieldState,\n fieldData,\n}: FieldComponentProps) => {\n const { name, label, description, options, multiple } = fieldData;\n\n return (\n <FormItem\n data-field={name}\n className={cn(`RemoteFlows__CheckBoxField__Item__${name}`)}\n >\n <FormControl>\n <>\n {options && multiple ? <FormLabel>{label}</FormLabel> : null}\n\n {options && multiple ? (\n options.map((option) => (\n <div key={option.value} className='flex space-x-2'>\n <Checkbox\n id={option.value}\n onCheckedChange={(checked: CheckedState) => {\n field.onChange(checked === true, option.value);\n }}\n checked={field.value?.includes(option.value)}\n className='RemoteFlows__CheckBox__Input'\n />\n <FormLabel\n htmlFor={option.value}\n className='mb-0 RemoteFlows__CheckBox__Label'\n >\n {option.label}\n </FormLabel>\n </div>\n ))\n ) : (\n <div className='flex space-x-2'>\n <Checkbox\n id={name}\n onCheckedChange={(checked: CheckedState) => {\n field.onChange(checked === true, null);\n }}\n checked={field.value}\n className='RemoteFlows__CheckBox__Input'\n />\n <FormLabel\n htmlFor={name}\n className='mb-0 RemoteFlows__CheckBox__Label'\n >\n {label}\n </FormLabel>\n </div>\n )}\n </>\n </FormControl>\n {description && (\n <FormDescription
|
|
1
|
+
{"version":3,"sources":["../src/components/form/fields/default/CheckboxFieldDefault.tsx"],"sourcesContent":["import { HelpCenter } from '@/src/components/shared/zendesk-drawer/HelpCenter';\nimport { Checkbox } from '@/src/components/ui/checkbox';\nimport {\n FormControl,\n FormDescription,\n FormItem,\n FormLabel,\n FormMessage,\n} from '@/src/components/ui/form';\nimport { cn } from '@/src/lib/utils';\nimport { FieldComponentProps } from '@/src/types/fields';\nimport { CheckedState } from '@radix-ui/react-checkbox';\n\nexport const CheckboxFieldDefault = ({\n field,\n fieldState,\n fieldData,\n}: FieldComponentProps) => {\n const { name, label, description, options, multiple } = fieldData;\n\n return (\n <FormItem\n data-field={name}\n className={cn(`RemoteFlows__CheckBoxField__Item__${name}`)}\n >\n <FormControl>\n <>\n {options && multiple ? <FormLabel>{label}</FormLabel> : null}\n\n {options && multiple ? (\n options.map((option) => (\n <div key={option.value} className='flex space-x-2'>\n <Checkbox\n id={option.value}\n onCheckedChange={(checked: CheckedState) => {\n field.onChange(checked === true, option.value);\n }}\n checked={field.value?.includes(option.value)}\n className='RemoteFlows__CheckBox__Input'\n />\n <FormLabel\n htmlFor={option.value}\n className='mb-0 RemoteFlows__CheckBox__Label'\n >\n {option.label}\n </FormLabel>\n </div>\n ))\n ) : (\n <div className='flex space-x-2'>\n <Checkbox\n id={name}\n onCheckedChange={(checked: CheckedState) => {\n field.onChange(checked === true, null);\n }}\n checked={field.value}\n className='RemoteFlows__CheckBox__Input'\n />\n <FormLabel\n htmlFor={name}\n className='mb-0 RemoteFlows__CheckBox__Label'\n >\n {label}\n </FormLabel>\n </div>\n )}\n </>\n </FormControl>\n {description && (\n <FormDescription\n helpCenter={<HelpCenter helpCenter={fieldData.meta?.helpCenter} />}\n >\n {description}\n </FormDescription>\n )}\n {fieldState.error && <FormMessage />}\n </FormItem>\n );\n};\n"],"mappings":"oOA0BQ,mBAAAA,EACyB,OAAAC,EAInB,QAAAC,MALN,oBAbD,IAAMC,EAAuBC,EAAA,CAAC,CACnC,MAAAC,EACA,WAAAC,EACA,UAAAC,CACF,IAA2B,CACzB,GAAM,CAAE,KAAAC,EAAM,MAAAC,EAAO,YAAAC,EAAa,QAAAC,EAAS,SAAAC,CAAS,EAAIL,EAExD,OACEL,EAACW,EAAA,CACC,aAAYL,EACZ,UAAWM,EAAG,qCAAqCN,CAAI,EAAE,EAEzD,UAAAP,EAACc,EAAA,CACC,SAAAb,EAAAF,EAAA,CACG,UAAAW,GAAWC,EAAWX,EAACe,EAAA,CAAW,SAAAP,EAAM,EAAe,KAEvDE,GAAWC,EACVD,EAAQ,IAAKM,GACXf,EAAC,OAAuB,UAAU,iBAChC,UAAAD,EAACiB,EAAA,CACC,GAAID,EAAO,MACX,gBAAkBE,GAA0B,CAC1Cd,EAAM,SAASc,IAAY,GAAMF,EAAO,KAAK,CAC/C,EACA,QAASZ,EAAM,OAAO,SAASY,EAAO,KAAK,EAC3C,UAAU,+BACZ,EACAhB,EAACe,EAAA,CACC,QAASC,EAAO,MAChB,UAAU,oCAET,SAAAA,EAAO,MACV,IAdQA,EAAO,KAejB,CACD,EAEDf,EAAC,OAAI,UAAU,iBACb,UAAAD,EAACiB,EAAA,CACC,GAAIV,EACJ,gBAAkBW,GAA0B,CAC1Cd,EAAM,SAASc,IAAY,GAAM,IAAI,CACvC,EACA,QAASd,EAAM,MACf,UAAU,+BACZ,EACAJ,EAACe,EAAA,CACC,QAASR,EACT,UAAU,oCAET,SAAAC,EACH,GACF,GAEJ,EACF,EACCC,GACCT,EAACmB,EAAA,CACC,WAAYnB,EAACoB,EAAA,CAAW,WAAYd,EAAU,MAAM,WAAY,EAE/D,SAAAG,EACH,EAEDJ,EAAW,OAASL,EAACqB,EAAA,EAAY,GACpC,CAEJ,EAjEoC","names":["Fragment","jsx","jsxs","CheckboxFieldDefault","__name","field","fieldState","fieldData","name","label","description","options","multiple","FormItem","cn","FormControl","FormLabel","option","Checkbox","checked","FormDescription","HelpCenter","FormMessage"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as j,f as d,g as y}from"./chunk-TVBZT6FA.js";import{a as P}from"./chunk-WVJDCDGZ.js";import{a as x}from"./chunk-HBX37YK2.js";import{a as p}from"./chunk-JR6VISHQ.js";import{A as S,E as v,H as O,J as w,O as E,T as q,g as f,i as h,j as g,n as b,o as C,w as F,x as _}from"./chunk-O5XQUEB5.js";import{d as i}from"./chunk-KQPDXXG3.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as c,useQuery as u}from"@tanstack/react-query";var H=t(e=>{let{client:r}=i();return u({queryKey:["company",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let n=await _({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"),L=t(e=>{let{client:r}=i();return u({queryKey:["benefit-offers",e],retry:!1,enabled:!!e,queryFn:t(async()=>b({client:r,path:{employment_id:e}}).then(n=>{if(n.error||!n.data)throw new Error("Failed to fetch benefit offers data");return n}),"queryFn"),select:t(({data:n})=>n?.data?.reduce((s,o)=>({...s,[o.benefit_group.slug]:{value:o.benefit_tier?.slug??"no",...o.benefit_group?.filter?.slug?{filter:o.benefit_group?.filter?.slug}:{}}}),{}),"select")})},"useBenefitOffers"),G=t(()=>{let{client:e}=i();return c({mutationFn:t(r=>q({client:e,headers:{Authorization:""},path:r}),"mutationFn")})},"useEmploymentInvite"),X=t(()=>{let{client:e}=i();return c({mutationFn:t(r=>F({client:e,body:r}),"mutationFn")})},"useCreateReserveInvoice"),Y=t(({countryCode:e,form:r,fieldValues:n,options:s,query:o={},jsonSchemaVersion:a})=>{let{client:l}=i(),R=a?{json_schema_version:a}:{};return u({queryKey:["onboarding-json-schema-form",e,r,a],retry:!1,queryFn:t(async()=>{let m=await S({client:l,headers:{Authorization:""},path:{country_code:e,form:r},query:{skip_benefits:!0,...o,...R}});if(m.error||!m.data)throw new Error("Failed to fetch onboarding schema");return m},"queryFn"),enabled:s?.queryOptions?.enabled,select:t(({data:m})=>{let U=m?.data||{};return p(U,n,s)},"select")})},"useJSONSchemaForm"),Z=t((e,r,n)=>{let{client:s}=i(),o={json_schema_version:y(n)};return u({queryKey:["benefit-offers-schema",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let a=await v({client:s,path:{employment_id:e},query:o});if(a.error||!a.data)throw new Error("Failed to fetch benefit offers schema");return a},"queryFn"),select:t(({data:a})=>{let l=a?.data?.schema||{};return p(l,r,{jsfModify:n?.jsfModify?.benefits})},"select")})},"useBenefitOffersSchema"),$=t(e=>{let{client:r}=i(),n={json_schema_version:d(e)};return c({mutationFn:t(s=>h({client:r,headers:{Authorization:""},body:s,query:{...n}}),"mutationFn")})},"useCreateEmployment"),ee=t((e,r)=>{let{client:n}=i(),s={employment_basic_information_json_schema_version:d(r),contract_details_json_schema_version:j(r,e)||1};return c({mutationFn:t(({employmentId:o,...a})=>O({client:n,headers:{Authorization:""},body:a,path:{employment_id:o},query:{skip_benefits:!0,...s}}),"mutationFn")})},"useUpdateEmployment"),te=t(e=>{let{client:r}=i();return c({mutationFn:t(({employmentId:n,...s})=>{let o={json_schema_version:y(e)};return C({client:r,body:s,path:{employment_id:n},query:o})},"mutationFn")})},"useUpdateBenefitsOffers"),ne=t(e=>{let{client:r}=i(),{data:n,isLoading:s}=u({...x(r,"onboarding-countries"),select:t(a=>a.data?.data?.filter(l=>l.eor_onboarding).map(l=>({label:l.name,value:l.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),o=p(P.data.schema,{},e);if(n){let a=o.fields.find(l=>l.name==="country");a&&(a.options=n)}return{isLoading:s,selectCountryForm:o}},"useCountriesSchemaField"),re=t(({type:e="spread"})=>{let{client:r}=i();return c({mutationFn:t(n=>(e==="no_spread"?f:E)({client:r,body:n}),"mutationFn")})},"useConvertCurrency"),oe=t(()=>{let{client:e}=i();return c({mutationFn:t(({employmentId:r,...n})=>w({client:e,path:{employment_id:r},body:n}),"mutationFn")})},"useUpsertContractEligibility"),se=t((e,r,n=!0)=>{let{client:s}=i();return u({queryKey:["employment-onboarding-reserves-status",e,r],retry:!1,enabled:n&&!!e&&!!r,queryFn:t(async()=>{let o=await g({client:s,headers:{Authorization:""},path:{company_id:e,employment_id:r}});if(o.error||!o.data)throw new Error("Failed to fetch employment onboarding reserves status");return o},"queryFn"),select:t(({data:o})=>o?.data?.status,"select")})},"useEmploymentOnboardingReservesStatus");export{H as a,L as b,G as c,X as d,Y as e,Z as f,$ as g,ee as h,te as i,ne as j,re as k,oe as l,se as m};
|
|
2
|
+
//# sourceMappingURL=chunk-KIUI7FHF.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as r}from"./chunk-XADVV6OP.js";import{c as v}from"./chunk-OSQ6VUDM.js";import{a as i}from"./chunk-P37U34EQ.js";import{useState as E,useRef as N,useEffect as k}from"react";import{Upload as B,X as M}from"lucide-react";import{jsx as t,jsxs as o}from"react/jsx-runtime";var U=i(l=>l?l.split(",").map(m=>m.trim().toUpperCase()).join(", "):null,"getAcceptedFormats");function w({onChange:l,className:m,multiple:p,accept:f,files:s,id:h}){let d=N(void 0),[a,c]=E(s||[]),u=N(null);k(()=>{s&&s!==d.current&&(d.current=s,c(s))},[s]);let F=i(e=>{e.preventDefault(),u.current?.click()},"handleClick"),y=i(e=>{if(e.target.files&&e.target.files.length>0){let n=Array.from(e.target.files);c([...a,...n]),l([...a,...n])}},"handleChange"),C=i(e=>{c(n=>n.filter(R=>R.name!==e.name)),l(a.filter(n=>n.name!==e.name))},"onRemoveFile"),g=U(f);return o("div",{className:v("flex flex-col items-start gap-4",m),children:[t("input",{type:"file",ref:u,id:h,onChange:y,className:"hidden","aria-label":"File upload",multiple:p,accept:f}),o(r,{type:"button",onClick:F,className:"gap-2",children:[t(B,{className:"h-4 w-4"}),"Choose File"]}),g&&o("div",{className:"text-sm text-gray-600",children:["Accepted formats:"," ",t("span",{className:"font-medium",children:g})]}),a.length===0&&t("div",{className:"text-sm",children:p?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,n)=>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(r,{type:"button",variant:"ghost",onClick:()=>C(e),children:t(M,{})})]},n))]})}i(w,"FileUploader");export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KMBA73YG.js.map
|