@remoteoss/remote-flows 1.24.0 → 1.25.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/README.md +0 -4
- package/dist/ButtonDefault-A5JWQEZF.js +2 -0
- package/dist/CheckboxFieldDefault-2YCVL3MM.js +2 -0
- package/dist/CountryFieldDefault-IY664WKC.js +2 -0
- package/dist/DatePickerFieldDefault-UZ3W2B3R.js +2 -0
- package/dist/DrawerDefault-HQGPEMMY.js +2 -0
- package/dist/EmailFieldDefault-6GQMGBQV.js +2 -0
- package/dist/FieldsetToggleButtonDefault-NQCXWGRK.js +2 -0
- package/dist/FileUploadFieldDefault-L3LOK4A5.js +2 -0
- package/dist/MultiSelectFieldDefault-OE5NHM6A.js +2 -0
- package/dist/NumberFieldDefault-MV3FSZOG.js +2 -0
- package/dist/RadioGroupFieldDefault-J3ESFNPW.js +2 -0
- package/dist/SelectFieldDefault-F2MAJW7S.js +2 -0
- package/dist/StatementDefault-FTAOOAL4.js +2 -0
- package/dist/TableFieldDefault-LXHWAWPG.js +2 -0
- package/dist/TelFieldDefault-EHHOHIQD.js +2 -0
- package/dist/TextAreaFieldDefault-VXPH3YGT.js +2 -0
- package/dist/TextFieldDefault-QWGENVEE.js +2 -0
- package/dist/WorkScheduleFieldDefault-SJSAWRYV.js +2 -0
- package/dist/ZendeskDrawerDefault-SUUZWWY2.js +2 -0
- package/dist/ZendeskDrawerDefault-SUUZWWY2.js.map +1 -0
- package/dist/{chunk-L5DII4MV.js → chunk-237RQGWE.js} +2 -2
- package/dist/{chunk-6JTHV4QS.js → chunk-2Y7QAG2Q.js} +2 -2
- package/dist/{chunk-BNQFPYNQ.js → chunk-32M6SNGV.js} +2 -2
- package/dist/{chunk-T4QDKI7V.js → chunk-3BEEU2N4.js} +2 -2
- package/dist/{chunk-W5YNJOSB.js → chunk-3HAKPYWK.js} +2 -2
- package/dist/{chunk-FAIEJW57.js → chunk-3HZOTQHD.js} +2 -2
- package/dist/chunk-3HZOTQHD.js.map +1 -0
- package/dist/{chunk-OELREIVJ.js → chunk-3VALWCZ5.js} +2 -2
- package/dist/{chunk-547UHEDI.js → chunk-423VHE7M.js} +2 -2
- package/dist/{chunk-56UXOD27.js → chunk-43MCQDBU.js} +2 -2
- package/dist/{chunk-WRRTZ2AL.js → chunk-4Z2DLHAT.js} +2 -2
- package/dist/chunk-552XBDTE.js +2 -0
- package/dist/chunk-552XBDTE.js.map +1 -0
- package/dist/{chunk-MSBCYMSH.js → chunk-5BGETBLF.js} +2 -2
- package/dist/{chunk-2V4CTIAG.js → chunk-5EYREHAZ.js} +2 -2
- package/dist/{chunk-PZUCONZ4.js → chunk-5FOI6SK4.js} +2 -2
- package/dist/{chunk-S6IMK3LL.js → chunk-5ISPVKB4.js} +2 -2
- package/dist/{chunk-D7W4VBSV.js → chunk-5MJH36G3.js} +2 -2
- package/dist/chunk-5XNFVJNM.js +2 -0
- package/dist/chunk-5XNFVJNM.js.map +1 -0
- package/dist/chunk-626FTNKA.js +2 -0
- package/dist/chunk-626FTNKA.js.map +1 -0
- package/dist/{chunk-VFB3RR5I.js → chunk-65KMTRFL.js} +2 -2
- package/dist/{chunk-26IIK5U2.js → chunk-6PRPMEWS.js} +2 -2
- package/dist/{chunk-L3LOATSG.js → chunk-74U3UMRA.js} +2 -2
- package/dist/chunk-766AUWUO.js +2 -0
- package/dist/chunk-766AUWUO.js.map +1 -0
- package/dist/{chunk-T2KDFAAY.js → chunk-7NZH3TF3.js} +2 -2
- package/dist/{chunk-B2BH4JUO.js → chunk-7WV3GBEI.js} +2 -2
- package/dist/{chunk-H5QXOIKS.js → chunk-A3NABWR7.js} +2 -2
- package/dist/{chunk-SPQM2TCX.js → chunk-AEKGVWE5.js} +2 -2
- package/dist/{chunk-CKVI2UDU.js → chunk-AGZHFGBR.js} +2 -2
- package/dist/{chunk-BAMGHBLT.js → chunk-AVJEDFND.js} +2 -2
- package/dist/{chunk-RVADUHPA.js → chunk-BTGWCFHJ.js} +2 -2
- package/dist/chunk-CHRRWZHW.js +2 -0
- package/dist/chunk-CHRRWZHW.js.map +1 -0
- package/dist/{chunk-J7MCWMDD.js → chunk-COZWEBRG.js} +2 -2
- package/dist/chunk-D3EUFZXJ.js +2 -0
- package/dist/{chunk-M4TBX2FU.js.map → chunk-D3EUFZXJ.js.map} +1 -1
- package/dist/{chunk-IORVZBRC.js → chunk-DA3D7BEQ.js} +2 -2
- package/dist/{chunk-IORVZBRC.js.map → chunk-DA3D7BEQ.js.map} +1 -1
- package/dist/{chunk-7G5JSUZU.js → chunk-DJOLLEOJ.js} +2 -2
- package/dist/{chunk-MP3VDCI7.js → chunk-DJYO6IIO.js} +2 -2
- package/dist/{chunk-42R2H2DW.js → chunk-DN6BXTAC.js} +1 -1
- package/dist/chunk-DN6BXTAC.js.map +1 -0
- package/dist/{chunk-6ABCDOFB.js → chunk-DXHWEBVC.js} +2 -2
- package/dist/{chunk-IFX5XLPZ.js → chunk-E37JLKX4.js} +2 -2
- package/dist/chunk-E3HFSANG.js +2 -0
- package/dist/{chunk-BK44KHBJ.js.map → chunk-E3HFSANG.js.map} +1 -1
- package/dist/chunk-EARN6G25.js +2 -0
- package/dist/chunk-EARN6G25.js.map +1 -0
- package/dist/{chunk-RYVRMH6C.js → chunk-EJCCWBLQ.js} +2 -2
- package/dist/chunk-EVJ77XIZ.js +2 -0
- package/dist/{chunk-ZO34QFKD.js.map → chunk-EVJ77XIZ.js.map} +1 -1
- package/dist/{chunk-VB6KFDBL.js → chunk-FHGQELT7.js} +2 -2
- package/dist/{chunk-VRW22LTU.js → chunk-FUOTJMAO.js} +2 -2
- package/dist/{chunk-MGZWMJMP.js → chunk-FYBXLFMI.js} +2 -2
- package/dist/{chunk-O6H66UM2.js → chunk-FZVUO3UU.js} +2 -2
- package/dist/{chunk-RGRCYSYE.js → chunk-GBQPG5OU.js} +2 -2
- package/dist/{chunk-3BBQDNZD.js → chunk-GPXETIKG.js} +2 -2
- package/dist/{chunk-HYDNZQOV.js → chunk-HLR7IUW7.js} +2 -2
- package/dist/{chunk-YUJBCOLO.js → chunk-IFD3RW53.js} +2 -2
- package/dist/chunk-IJDBUKEM.js +2 -0
- package/dist/chunk-IJDBUKEM.js.map +1 -0
- package/dist/{chunk-6MJVXTLI.js → chunk-IKSPEKDA.js} +2 -2
- package/dist/chunk-JHH66SSM.js +2 -0
- package/dist/chunk-JHH66SSM.js.map +1 -0
- package/dist/{chunk-TNN3W5TU.js → chunk-JJDAJQG4.js} +2 -2
- package/dist/{chunk-UMVA4SIV.js → chunk-JOHNIKN6.js} +2 -2
- package/dist/chunk-K5XSOKKX.js +2 -0
- package/dist/{chunk-53KG3SOU.js.map → chunk-K5XSOKKX.js.map} +1 -1
- package/dist/chunk-KFYWUBRS.js +2 -0
- package/dist/{chunk-LNV36S6D.js.map → chunk-KFYWUBRS.js.map} +1 -1
- package/dist/chunk-KQUKUR4T.js +2 -0
- package/dist/chunk-KQUKUR4T.js.map +1 -0
- package/dist/{chunk-TQXCLXWH.js → chunk-L3XWJ35V.js} +2 -2
- package/dist/{chunk-4IE7XN74.js → chunk-LBGZYTNR.js} +2 -2
- package/dist/{chunk-KXT6ACFL.js → chunk-LBNA4RGS.js} +2 -2
- package/dist/{chunk-NLBQ7CZC.js → chunk-LRPDJWIO.js} +2 -2
- package/dist/{chunk-AR5X2YWE.js → chunk-LZL5KK3N.js} +2 -2
- package/dist/{chunk-BYDQHL6O.js → chunk-MEOD4UGO.js} +2 -2
- package/dist/{chunk-WQVZXTW3.js → chunk-MOM5PCKI.js} +2 -2
- package/dist/{chunk-EP6FL2L3.js → chunk-N4TAXXWW.js} +2 -2
- package/dist/{chunk-NAF6LRSS.js → chunk-NZ7BAZNH.js} +2 -2
- package/dist/{chunk-SNBAM7SA.js → chunk-OABRM5LK.js} +2 -2
- package/dist/{chunk-WD2JGIDK.js → chunk-OOEKN64P.js} +2 -2
- package/dist/{chunk-XRN6752K.js → chunk-OORPUQ3N.js} +2 -2
- package/dist/{chunk-3LCASKDS.js → chunk-OOSCL4WD.js} +2 -2
- package/dist/{chunk-NNFWLL7F.js → chunk-PSBC73OL.js} +2 -2
- package/dist/{chunk-IYL6TSUF.js → chunk-Q6NTGZUW.js} +2 -2
- package/dist/{chunk-NUID2T57.js → chunk-QEIHXZIK.js} +2 -2
- package/dist/{chunk-NUID2T57.js.map → chunk-QEIHXZIK.js.map} +1 -1
- package/dist/{chunk-3DMWQJ5W.js → chunk-QMPXBDDO.js} +2 -2
- package/dist/chunk-R3HLTYHX.js +2 -0
- package/dist/chunk-R3HLTYHX.js.map +1 -0
- package/dist/{chunk-AS6KFUXS.js → chunk-R3NDFTIM.js} +2 -2
- package/dist/chunk-R47Q7R6C.js +8 -0
- package/dist/chunk-R47Q7R6C.js.map +1 -0
- package/dist/{chunk-CHHHYLCB.js → chunk-R4F5WRKC.js} +2 -2
- package/dist/{chunk-NOTLTHHZ.js → chunk-R4PLUUI3.js} +2 -2
- package/dist/chunk-RAVJ3LMO.js +2 -0
- package/dist/{chunk-ECGWCDC3.js.map → chunk-RAVJ3LMO.js.map} +1 -1
- package/dist/{chunk-AYC6DTFV.js → chunk-RWMNB4RJ.js} +2 -2
- package/dist/chunk-RXNDKUY6.js +2 -0
- package/dist/chunk-RXNDKUY6.js.map +1 -0
- package/dist/{chunk-NAMR4DA5.js → chunk-S3YIFNST.js} +2 -2
- package/dist/{chunk-7ZFZYZSP.js → chunk-S62HZDF7.js} +2 -2
- package/dist/{chunk-CS5TJWQM.js → chunk-S6MU4NHQ.js} +2 -2
- package/dist/{chunk-PNEB74RP.js → chunk-SHXQGRNL.js} +2 -2
- package/dist/{chunk-6ZHKAS7X.js → chunk-SSBGIR74.js} +2 -2
- package/dist/{chunk-6ZHKAS7X.js.map → chunk-SSBGIR74.js.map} +1 -1
- package/dist/{chunk-YIOLMWB5.js → chunk-TFJOJCCS.js} +2 -2
- package/dist/{chunk-VPSESR6G.js → chunk-TPH6YQRJ.js} +2 -2
- package/dist/{chunk-OWUINMZP.js → chunk-U7S4TUFV.js} +2 -2
- package/dist/{chunk-SNECOPBD.js → chunk-UB5WD4YM.js} +2 -2
- package/dist/{chunk-R4X2WQXX.js → chunk-UFLWSKNE.js} +2 -2
- package/dist/chunk-UITO344H.js +2 -0
- package/dist/chunk-UITO344H.js.map +1 -0
- package/dist/{chunk-2JVZYQ6Z.js → chunk-UJJ5576U.js} +2 -2
- package/dist/{chunk-Z7J6NJY2.js → chunk-VJMCAVOL.js} +2 -2
- package/dist/chunk-VJNTRMOS.js +2 -0
- package/dist/chunk-VJNTRMOS.js.map +1 -0
- package/dist/{chunk-X3PUZFYX.js → chunk-VSBNYQZM.js} +2 -2
- package/dist/{chunk-UNKCOOE4.js → chunk-WI6ZYN4S.js} +2 -2
- package/dist/{chunk-DJPCJ3YR.js → chunk-WVND2FCE.js} +2 -2
- package/dist/{chunk-3C6N7DK6.js → chunk-X5TMQDWS.js} +2 -2
- package/dist/{chunk-D7CBR52B.js → chunk-XULW2ME7.js} +2 -2
- package/dist/{chunk-HIFEVMKP.js → chunk-Y4P3ZYQK.js} +2 -2
- package/dist/{chunk-N4IPXHFM.js → chunk-YNMQONDL.js} +2 -2
- package/dist/chunk-YNMQONDL.js.map +1 -0
- package/dist/{chunk-TVCIAQTC.js → chunk-YQMALPDQ.js} +2 -2
- package/dist/{chunk-YWOJ4NKF.js → chunk-YRAIYQ2K.js} +2 -2
- package/dist/{chunk-AXV7YMZ3.js → chunk-YTWEXSYT.js} +2 -2
- package/dist/chunk-YZKXKNDS.js +2 -0
- package/dist/chunk-YZKXKNDS.js.map +1 -0
- package/dist/chunk-ZAQUO2SM.js +2 -0
- package/dist/chunk-ZAQUO2SM.js.map +1 -0
- package/dist/{chunk-RAH453TV.js → chunk-ZBJ4VEDO.js} +2 -2
- package/dist/chunk-ZR6AKRA3.js +2 -0
- package/dist/{chunk-EIVCBH53.js.map → chunk-ZR6AKRA3.js.map} +1 -1
- package/dist/{chunk-DXIJUMLU.js → chunk-ZZPQGX7X.js} +2 -2
- package/dist/default-components.d.ts +2 -3
- package/dist/default-components.js +1 -1
- package/dist/default-components.js.map +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -4
- 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 -4
- package/dist/flows/ContractAmendment/hooks.d.ts +3 -4
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +3 -4
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/types.d.ts +2 -3
- package/dist/flows/ContractAmendment/utils.d.ts +2 -3
- package/dist/flows/ContractAmendment/utils.js +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -5
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -3
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -3
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -5
- 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 +6 -7
- package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/ContractorOnboarding/types.d.ts +5 -6
- package/dist/flows/ContractorOnboarding/utils.d.ts +4 -5
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -4
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -4
- 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 -3
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -3
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
- package/dist/flows/CostCalculator/api.d.ts +2 -3
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -3
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +3 -4
- package/dist/flows/CostCalculator/hooks.d.ts +3 -4
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +3 -4
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +2 -3
- package/dist/flows/CostCalculator/utils.d.ts +3 -4
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -5
- package/dist/flows/CreateCompany/CreateCompany.js +1 -1
- package/dist/flows/CreateCompany/api.d.ts +2 -3
- package/dist/flows/CreateCompany/api.js +1 -1
- package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -5
- package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -5
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
- package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -3
- package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
- package/dist/flows/CreateCompany/context.d.ts +4 -5
- package/dist/flows/CreateCompany/hooks.d.ts +4 -5
- package/dist/flows/CreateCompany/hooks.js +1 -1
- package/dist/flows/CreateCompany/index.d.ts +4 -5
- package/dist/flows/CreateCompany/index.js +1 -1
- package/dist/flows/CreateCompany/types.d.ts +4 -5
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -5
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +5 -9
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -3
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -5
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -5
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -5
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -5
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -4
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -5
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -4
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -5
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +4 -5
- package/dist/flows/Onboarding/hooks.d.ts +4 -5
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +4 -5
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +4 -5
- package/dist/flows/Onboarding/utils.d.ts +4 -5
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -5
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -5
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -5
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -5
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -5
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +4 -5
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.d.ts +5 -6
- package/dist/flows/Termination/api.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -7
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -7
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -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 -5
- package/dist/flows/Termination/hooks.d.ts +4 -5
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +6 -7
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.d.ts +7 -8
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/types.d.ts +4 -5
- package/dist/flows/Termination/utils.d.ts +4 -5
- package/dist/flows/Termination/utils.js +1 -1
- package/dist/flows/types.d.ts +2 -3
- package/dist/flows/utils.d.ts +6 -2
- package/dist/flows/utils.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +11 -12
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +6 -7
- package/dist/internals.js +1 -1
- package/dist/{mutations-BsydWn3-.d.ts → mutations-k1bkfjOU.d.ts} +1 -1
- package/dist/{remoteFlows-BVt9wH8Z.d.ts → remoteFlows-CizrXXw-.d.ts} +32 -4
- package/dist/styles.css +2 -2
- package/dist/styles.css.map +1 -1
- package/dist/{types-C0ri3b3L.d.ts → types-CRnEmzMD.d.ts} +1 -1
- package/dist/{types-BUI5G3ML.d.ts → types-Cg4eblxv.d.ts} +6 -6
- package/dist/{types-C0m9mu0v.d.ts → types-DWSLcaDI.d.ts} +3 -3
- package/dist/{types-uW0BsP56.d.ts → types-DoYYKUID.d.ts} +3 -3
- package/dist/{types-BfQMv-8p.d.ts → types-VJHlrVxd.d.ts} +2 -2
- package/dist/{types.gen-Oz2Tvvr6.d.ts → types.gen-Dgw1W-SB.d.ts} +74 -21
- package/dist/{utils-Db2G1Kxo.d.ts → utils-DaoVOrzw.d.ts} +1 -1
- package/package.json +35 -41
- package/dist/ButtonDefault-2YV2Z474.js +0 -2
- package/dist/CheckboxFieldDefault-XSBJF4HQ.js +0 -2
- package/dist/CountryFieldDefault-K5X6MFP3.js +0 -2
- package/dist/DatePickerFieldDefault-G6FWA64N.js +0 -2
- package/dist/DrawerDefault-AAUS7T5W.js +0 -2
- package/dist/EmailFieldDefault-TFQ5SQVC.js +0 -2
- package/dist/FieldsetToggleButtonDefault-MFLN2WWT.js +0 -2
- package/dist/FileUploadFieldDefault-7ETO2SEZ.js +0 -2
- package/dist/MultiSelectFieldDefault-5TL5SL7W.js +0 -2
- package/dist/NumberFieldDefault-L7J22NRQ.js +0 -2
- package/dist/RadioGroupFieldDefault-XSPBKOS6.js +0 -2
- package/dist/SelectFieldDefault-AT6LLZNX.js +0 -2
- package/dist/StatementDefault-DORMITL7.js +0 -2
- package/dist/TableFieldDefault-URJVK7YR.js +0 -2
- package/dist/TextAreaFieldDefault-2TV3WHKH.js +0 -2
- package/dist/TextFieldDefault-2GEILZPU.js +0 -2
- package/dist/WorkScheduleFieldDefault-XH4AEXSM.js +0 -2
- package/dist/ZendeskDrawerDefault-A5PVWI4R.js +0 -2
- package/dist/chunk-3NESYBEJ.js +0 -2
- package/dist/chunk-3NESYBEJ.js.map +0 -1
- package/dist/chunk-42R2H2DW.js.map +0 -1
- package/dist/chunk-53KG3SOU.js +0 -2
- package/dist/chunk-5CFU6XTU.js +0 -2
- package/dist/chunk-5CFU6XTU.js.map +0 -1
- package/dist/chunk-6H4634RG.js +0 -2
- package/dist/chunk-6H4634RG.js.map +0 -1
- package/dist/chunk-BK44KHBJ.js +0 -2
- package/dist/chunk-CWAFRJAQ.js +0 -2
- package/dist/chunk-CWAFRJAQ.js.map +0 -1
- package/dist/chunk-D5AO6SOM.js +0 -2
- package/dist/chunk-D5AO6SOM.js.map +0 -1
- package/dist/chunk-ECGWCDC3.js +0 -2
- package/dist/chunk-EIVCBH53.js +0 -2
- package/dist/chunk-FAIEJW57.js.map +0 -1
- package/dist/chunk-G3HUFVSG.js +0 -2
- package/dist/chunk-G3HUFVSG.js.map +0 -1
- package/dist/chunk-HLSQCUMS.js +0 -2
- package/dist/chunk-HLSQCUMS.js.map +0 -1
- package/dist/chunk-LNV36S6D.js +0 -2
- package/dist/chunk-M4TBX2FU.js +0 -2
- package/dist/chunk-MKPKDACH.js +0 -2
- package/dist/chunk-MKPKDACH.js.map +0 -1
- package/dist/chunk-N4IPXHFM.js.map +0 -1
- package/dist/chunk-OXKAGVWK.js +0 -2
- package/dist/chunk-OXKAGVWK.js.map +0 -1
- package/dist/chunk-QB6OI74K.js +0 -2
- package/dist/chunk-QB6OI74K.js.map +0 -1
- package/dist/chunk-VIGKOVHP.js +0 -2
- package/dist/chunk-VIGKOVHP.js.map +0 -1
- package/dist/chunk-VN535FEZ.js +0 -2
- package/dist/chunk-VN535FEZ.js.map +0 -1
- package/dist/chunk-VU6C3EU2.js +0 -2
- package/dist/chunk-VU6C3EU2.js.map +0 -1
- package/dist/chunk-WQ4H5V7U.js +0 -6
- package/dist/chunk-WQ4H5V7U.js.map +0 -1
- package/dist/chunk-X6ZAR7ZL.js +0 -2
- package/dist/chunk-X6ZAR7ZL.js.map +0 -1
- package/dist/chunk-Z5WMKCRJ.js +0 -2
- package/dist/chunk-Z5WMKCRJ.js.map +0 -1
- package/dist/chunk-ZO34QFKD.js +0 -2
- package/dist/types-ZWIpiFgj.d.ts +0 -4
- /package/dist/{ButtonDefault-2YV2Z474.js.map → ButtonDefault-A5JWQEZF.js.map} +0 -0
- /package/dist/{CheckboxFieldDefault-XSBJF4HQ.js.map → CheckboxFieldDefault-2YCVL3MM.js.map} +0 -0
- /package/dist/{CountryFieldDefault-K5X6MFP3.js.map → CountryFieldDefault-IY664WKC.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-G6FWA64N.js.map → DatePickerFieldDefault-UZ3W2B3R.js.map} +0 -0
- /package/dist/{DrawerDefault-AAUS7T5W.js.map → DrawerDefault-HQGPEMMY.js.map} +0 -0
- /package/dist/{EmailFieldDefault-TFQ5SQVC.js.map → EmailFieldDefault-6GQMGBQV.js.map} +0 -0
- /package/dist/{FieldsetToggleButtonDefault-MFLN2WWT.js.map → FieldsetToggleButtonDefault-NQCXWGRK.js.map} +0 -0
- /package/dist/{FileUploadFieldDefault-7ETO2SEZ.js.map → FileUploadFieldDefault-L3LOK4A5.js.map} +0 -0
- /package/dist/{MultiSelectFieldDefault-5TL5SL7W.js.map → MultiSelectFieldDefault-OE5NHM6A.js.map} +0 -0
- /package/dist/{NumberFieldDefault-L7J22NRQ.js.map → NumberFieldDefault-MV3FSZOG.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-XSPBKOS6.js.map → RadioGroupFieldDefault-J3ESFNPW.js.map} +0 -0
- /package/dist/{SelectFieldDefault-AT6LLZNX.js.map → SelectFieldDefault-F2MAJW7S.js.map} +0 -0
- /package/dist/{StatementDefault-DORMITL7.js.map → StatementDefault-FTAOOAL4.js.map} +0 -0
- /package/dist/{TableFieldDefault-URJVK7YR.js.map → TableFieldDefault-LXHWAWPG.js.map} +0 -0
- /package/dist/{TextAreaFieldDefault-2TV3WHKH.js.map → TelFieldDefault-EHHOHIQD.js.map} +0 -0
- /package/dist/{TextFieldDefault-2GEILZPU.js.map → TextAreaFieldDefault-VXPH3YGT.js.map} +0 -0
- /package/dist/{WorkScheduleFieldDefault-XH4AEXSM.js.map → TextFieldDefault-QWGENVEE.js.map} +0 -0
- /package/dist/{ZendeskDrawerDefault-A5PVWI4R.js.map → WorkScheduleFieldDefault-SJSAWRYV.js.map} +0 -0
- /package/dist/{chunk-L5DII4MV.js.map → chunk-237RQGWE.js.map} +0 -0
- /package/dist/{chunk-6JTHV4QS.js.map → chunk-2Y7QAG2Q.js.map} +0 -0
- /package/dist/{chunk-BNQFPYNQ.js.map → chunk-32M6SNGV.js.map} +0 -0
- /package/dist/{chunk-T4QDKI7V.js.map → chunk-3BEEU2N4.js.map} +0 -0
- /package/dist/{chunk-W5YNJOSB.js.map → chunk-3HAKPYWK.js.map} +0 -0
- /package/dist/{chunk-OELREIVJ.js.map → chunk-3VALWCZ5.js.map} +0 -0
- /package/dist/{chunk-547UHEDI.js.map → chunk-423VHE7M.js.map} +0 -0
- /package/dist/{chunk-56UXOD27.js.map → chunk-43MCQDBU.js.map} +0 -0
- /package/dist/{chunk-WRRTZ2AL.js.map → chunk-4Z2DLHAT.js.map} +0 -0
- /package/dist/{chunk-MSBCYMSH.js.map → chunk-5BGETBLF.js.map} +0 -0
- /package/dist/{chunk-2V4CTIAG.js.map → chunk-5EYREHAZ.js.map} +0 -0
- /package/dist/{chunk-PZUCONZ4.js.map → chunk-5FOI6SK4.js.map} +0 -0
- /package/dist/{chunk-S6IMK3LL.js.map → chunk-5ISPVKB4.js.map} +0 -0
- /package/dist/{chunk-D7W4VBSV.js.map → chunk-5MJH36G3.js.map} +0 -0
- /package/dist/{chunk-VFB3RR5I.js.map → chunk-65KMTRFL.js.map} +0 -0
- /package/dist/{chunk-26IIK5U2.js.map → chunk-6PRPMEWS.js.map} +0 -0
- /package/dist/{chunk-L3LOATSG.js.map → chunk-74U3UMRA.js.map} +0 -0
- /package/dist/{chunk-T2KDFAAY.js.map → chunk-7NZH3TF3.js.map} +0 -0
- /package/dist/{chunk-B2BH4JUO.js.map → chunk-7WV3GBEI.js.map} +0 -0
- /package/dist/{chunk-H5QXOIKS.js.map → chunk-A3NABWR7.js.map} +0 -0
- /package/dist/{chunk-SPQM2TCX.js.map → chunk-AEKGVWE5.js.map} +0 -0
- /package/dist/{chunk-CKVI2UDU.js.map → chunk-AGZHFGBR.js.map} +0 -0
- /package/dist/{chunk-BAMGHBLT.js.map → chunk-AVJEDFND.js.map} +0 -0
- /package/dist/{chunk-RVADUHPA.js.map → chunk-BTGWCFHJ.js.map} +0 -0
- /package/dist/{chunk-J7MCWMDD.js.map → chunk-COZWEBRG.js.map} +0 -0
- /package/dist/{chunk-7G5JSUZU.js.map → chunk-DJOLLEOJ.js.map} +0 -0
- /package/dist/{chunk-MP3VDCI7.js.map → chunk-DJYO6IIO.js.map} +0 -0
- /package/dist/{chunk-6ABCDOFB.js.map → chunk-DXHWEBVC.js.map} +0 -0
- /package/dist/{chunk-IFX5XLPZ.js.map → chunk-E37JLKX4.js.map} +0 -0
- /package/dist/{chunk-RYVRMH6C.js.map → chunk-EJCCWBLQ.js.map} +0 -0
- /package/dist/{chunk-VB6KFDBL.js.map → chunk-FHGQELT7.js.map} +0 -0
- /package/dist/{chunk-VRW22LTU.js.map → chunk-FUOTJMAO.js.map} +0 -0
- /package/dist/{chunk-MGZWMJMP.js.map → chunk-FYBXLFMI.js.map} +0 -0
- /package/dist/{chunk-O6H66UM2.js.map → chunk-FZVUO3UU.js.map} +0 -0
- /package/dist/{chunk-RGRCYSYE.js.map → chunk-GBQPG5OU.js.map} +0 -0
- /package/dist/{chunk-3BBQDNZD.js.map → chunk-GPXETIKG.js.map} +0 -0
- /package/dist/{chunk-HYDNZQOV.js.map → chunk-HLR7IUW7.js.map} +0 -0
- /package/dist/{chunk-YUJBCOLO.js.map → chunk-IFD3RW53.js.map} +0 -0
- /package/dist/{chunk-6MJVXTLI.js.map → chunk-IKSPEKDA.js.map} +0 -0
- /package/dist/{chunk-TNN3W5TU.js.map → chunk-JJDAJQG4.js.map} +0 -0
- /package/dist/{chunk-UMVA4SIV.js.map → chunk-JOHNIKN6.js.map} +0 -0
- /package/dist/{chunk-TQXCLXWH.js.map → chunk-L3XWJ35V.js.map} +0 -0
- /package/dist/{chunk-4IE7XN74.js.map → chunk-LBGZYTNR.js.map} +0 -0
- /package/dist/{chunk-KXT6ACFL.js.map → chunk-LBNA4RGS.js.map} +0 -0
- /package/dist/{chunk-NLBQ7CZC.js.map → chunk-LRPDJWIO.js.map} +0 -0
- /package/dist/{chunk-AR5X2YWE.js.map → chunk-LZL5KK3N.js.map} +0 -0
- /package/dist/{chunk-BYDQHL6O.js.map → chunk-MEOD4UGO.js.map} +0 -0
- /package/dist/{chunk-WQVZXTW3.js.map → chunk-MOM5PCKI.js.map} +0 -0
- /package/dist/{chunk-EP6FL2L3.js.map → chunk-N4TAXXWW.js.map} +0 -0
- /package/dist/{chunk-NAF6LRSS.js.map → chunk-NZ7BAZNH.js.map} +0 -0
- /package/dist/{chunk-SNBAM7SA.js.map → chunk-OABRM5LK.js.map} +0 -0
- /package/dist/{chunk-WD2JGIDK.js.map → chunk-OOEKN64P.js.map} +0 -0
- /package/dist/{chunk-XRN6752K.js.map → chunk-OORPUQ3N.js.map} +0 -0
- /package/dist/{chunk-3LCASKDS.js.map → chunk-OOSCL4WD.js.map} +0 -0
- /package/dist/{chunk-NNFWLL7F.js.map → chunk-PSBC73OL.js.map} +0 -0
- /package/dist/{chunk-IYL6TSUF.js.map → chunk-Q6NTGZUW.js.map} +0 -0
- /package/dist/{chunk-3DMWQJ5W.js.map → chunk-QMPXBDDO.js.map} +0 -0
- /package/dist/{chunk-AS6KFUXS.js.map → chunk-R3NDFTIM.js.map} +0 -0
- /package/dist/{chunk-CHHHYLCB.js.map → chunk-R4F5WRKC.js.map} +0 -0
- /package/dist/{chunk-NOTLTHHZ.js.map → chunk-R4PLUUI3.js.map} +0 -0
- /package/dist/{chunk-AYC6DTFV.js.map → chunk-RWMNB4RJ.js.map} +0 -0
- /package/dist/{chunk-NAMR4DA5.js.map → chunk-S3YIFNST.js.map} +0 -0
- /package/dist/{chunk-7ZFZYZSP.js.map → chunk-S62HZDF7.js.map} +0 -0
- /package/dist/{chunk-CS5TJWQM.js.map → chunk-S6MU4NHQ.js.map} +0 -0
- /package/dist/{chunk-PNEB74RP.js.map → chunk-SHXQGRNL.js.map} +0 -0
- /package/dist/{chunk-YIOLMWB5.js.map → chunk-TFJOJCCS.js.map} +0 -0
- /package/dist/{chunk-VPSESR6G.js.map → chunk-TPH6YQRJ.js.map} +0 -0
- /package/dist/{chunk-OWUINMZP.js.map → chunk-U7S4TUFV.js.map} +0 -0
- /package/dist/{chunk-SNECOPBD.js.map → chunk-UB5WD4YM.js.map} +0 -0
- /package/dist/{chunk-R4X2WQXX.js.map → chunk-UFLWSKNE.js.map} +0 -0
- /package/dist/{chunk-2JVZYQ6Z.js.map → chunk-UJJ5576U.js.map} +0 -0
- /package/dist/{chunk-Z7J6NJY2.js.map → chunk-VJMCAVOL.js.map} +0 -0
- /package/dist/{chunk-X3PUZFYX.js.map → chunk-VSBNYQZM.js.map} +0 -0
- /package/dist/{chunk-UNKCOOE4.js.map → chunk-WI6ZYN4S.js.map} +0 -0
- /package/dist/{chunk-DJPCJ3YR.js.map → chunk-WVND2FCE.js.map} +0 -0
- /package/dist/{chunk-3C6N7DK6.js.map → chunk-X5TMQDWS.js.map} +0 -0
- /package/dist/{chunk-D7CBR52B.js.map → chunk-XULW2ME7.js.map} +0 -0
- /package/dist/{chunk-HIFEVMKP.js.map → chunk-Y4P3ZYQK.js.map} +0 -0
- /package/dist/{chunk-TVCIAQTC.js.map → chunk-YQMALPDQ.js.map} +0 -0
- /package/dist/{chunk-YWOJ4NKF.js.map → chunk-YRAIYQ2K.js.map} +0 -0
- /package/dist/{chunk-AXV7YMZ3.js.map → chunk-YTWEXSYT.js.map} +0 -0
- /package/dist/{chunk-RAH453TV.js.map → chunk-ZBJ4VEDO.js.map} +0 -0
- /package/dist/{chunk-DXIJUMLU.js.map → chunk-ZZPQGX7X.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-OORPUQ3N.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as m}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function p({onSubmit:n}){let{terminationBag:o}=e(),a=m(async t=>{let r=await o?.parseFormValues(t);await n?.(r),o?.next()},"handleSubmit");return u(i,{defaultValues:o.fieldValues,onSubmit:a})}m(p,"EmployeeCommunicationForm");export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-N4TAXXWW.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as m}from"./chunk-552XBDTE.js";import{b as f}from"./chunk-626FTNKA.js";import{a as n}from"./chunk-P37U34EQ.js";import{createHeadlessForm as a,modify as u}from"@remoteoss/remote-json-schema-form-kit";var c=n((e,o,t)=>{if(t&&t.jsfModify){let{required:i,allOf:r,...s}=t.jsfModify,{schema:l}=u(e,s);e=l,i&&(e.required=[...l.required,...i]),r&&(e.allOf=[...l.allOf||[],...r])}let d={};o&&(d=f(e.properties||{},"money").reduce((r,s)=>(r[s]=m(o[s]),r),{}));let F=JSON.parse(JSON.stringify({...o,...d}));return{meta:{"x-jsf-fieldsets":e["x-jsf-fieldsets"]},...a(e,{initialValues:F})}},"createHeadlessForm");export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NZ7BAZNH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as e}from"./chunk-EARN6G25.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-OABRM5LK.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s}from"./chunk-KSHK3ZPX.js";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s}from"./chunk-KSHK3ZPX.js";import{c as r}from"./chunk-EARN6G25.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-OOEKN64P.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-MRYRNB7Y.js";import{b as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-MRYRNB7Y.js";import{b as l}from"./chunk-KFYWUBRS.js";import{a as F}from"./chunk-KQUKUR4T.js";import{f as s,h as a}from"./chunk-RXNDKUY6.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as y}from"react";import{jsx as r}from"react/jsx-runtime";function A({defaultValues:u,fields:m,onSubmit:d}){let{formId:c,terminationBag:o}=f(),p=l(o.handleValidation),e=s({resolver:p,defaultValues:u,shouldUnregister:!1,mode:"onBlur"});y(()=>{let V=e?.watch(i=>{Object.keys(i).some(n=>i[n]!==o?.initialValues?.[n])&&o?.checkFieldUpdates(i)});return()=>V?.unsubscribe()},[]);let T=m||(o?.fields??[]);return r(a,{...e,children:r("form",{id:c,onSubmit:e.handleSubmit(d),className:"space-y-4 RemoteFlows__TerminationForm",children:r(F,{fields:T})})})}t(A,"TerminationForm");export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OORPUQ3N.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as w}from"./chunk-PGWKJ6FK.js";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as w}from"./chunk-PGWKJ6FK.js";import{c as v,d as y}from"./chunk-5XNFVJNM.js";import{a as i}from"./chunk-EARN6G25.js";import{b as l}from"./chunk-KQPDXXG3.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as _}from"react/jsx-runtime";function P({onSubmit:f,onSuccess:a,onError:t,render:E,...o}){let{components:R}=l(),{onboardingBag:r,setCreditScore:m}=w(),d=v(),u=y(),{mutateAsync:g}=i(d),{mutateAsync:S}=i(u),c=r.creditRiskStatus==="deposit_required"||r.onboardingReservesStatus==="deposit_required",I=s(async()=>{try{if(await f?.(),c&&r.employmentId&&r.employment?.status&&!r.isEmploymentReadOnly){let e=await S({employment_slug:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"created_awaiting_reserve"}),m?.(n=>({...n,showReserveInvoice:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}else if(r.employmentId){let e=await g({employment_id:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"invited"}),m?.(n=>({...n,showInviteSuccessful:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}}catch(e){t?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit"),b=c&&r.employment?.status&&!r.isEmploymentReadOnly,p=R?.button;if(!p)throw new Error("Button component not found");return _(p,{...o,disabled:d.isPending||u.isPending||o.disabled,onClick:e=>{I(),o.onClick?.(e)},children:E({employmentStatus:b?"created_awaiting_reserve":"invited"})})}s(P,"OnboardingInvite");export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OOSCL4WD.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-R3HLTYHX.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function n({field:t,fieldData:p}){return r(o,{type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",...t,...p})}e(n,"NumberFieldDefault");export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-PSBC73OL.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-3BEEU2N4.js";import{a as u,b as R}from"./chunk-OABRM5LK.js";import{j as a,k as c,l,m,n as _}from"./chunk-RXNDKUY6.js";import{c as F}from"./chunk-EARN6G25.js";import{a as p}from"./chunk-P37U34EQ.js";import{Fragment as g}from"react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var w=p(({field:s,fieldData:i,fieldState:C})=>{let{name:r,label:d,description:n,options:b}=i;return e("fieldset",{className:F("space-y-3",`RemoteFlows__RadioGroupField__Item__${r}`),"data-field":r,children:t(a,{children:[e("legend",{children:d}),n&&e(m,{helpCenter:e(f,{helpCenter:i.meta?.helpCenter}),children:n}),e(l,{children:e(u,{"aria-label":d||r,onValueChange:o=>{s.onChange(o)},value:s.value,className:"flex flex-col space-y-3",children:b?.map(o=>e(g,{children:t(a,{"data-field":r,className:"flex items-start space-x-3 space-y-0 gap-0 RemoteFlows__RadioField__Item",children:[e(l,{children:e(R,{value:o.value,className:"RemoteFlows__RadioField__Input",disabled:o.disabled})}),t("div",{children:[e(c,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:o.label}),o.description&&e(m,{className:"mt-2",children:o.description})]})]})},o.value))})}),C.error&&e(_,{})]})})},"RadioGroupFieldDefault");export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-Q6NTGZUW.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as d,d as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as d,d as S}from"./chunk-SSBGIR74.js";import{a as f}from"./chunk-KSHK3ZPX.js";import{a as u}from"./chunk-HN5HLFTB.js";import{b as C}from"./chunk-KFYWUBRS.js";import{f as y}from"./chunk-RXNDKUY6.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QEIHXZIK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/flows/CostCalculator/CostCalculatorFlow.tsx"],"sourcesContent":["import React, { useEffect, useId, useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useJsonSchemasValidationFormResolver } from '@/src/components/form/validationResolver';\nimport { CostCalculatorContext } from '@/src/flows/CostCalculator/context';\nimport {\n CostCalculatorVersion,\n defaultEstimationOptions,\n useCostCalculator,\n} from '@/src/flows/CostCalculator/hooks';\nimport {\n CostCalculatorEstimationOptions,\n CurrencyKey,\n UseCostCalculatorOptions,\n} from '@/src/flows/CostCalculator/types';\nimport { BASE_RATES } from '@/src/flows/CostCalculator/constants';\n\nexport type CostCalculatorFlowProps = {\n /**\n * Estimation params allows you to customize the parameters sent to the /cost-calculator/estimation endpoint.\n */\n estimationOptions?: CostCalculatorEstimationOptions;\n /**\n * Default values for the form fields.\n */\n defaultValues?: Partial<\n {\n /**\n * Default value for the country field.\n */\n countryRegionSlug: string;\n /**\n * Default value for the currency field.\n */\n currencySlug: string;\n /**\n * Default value for the salary field.\n */\n salary: string;\n /**\n * Default value for the benefits field.\n */\n benefits: Record<string, string>;\n /**\n * Default value for the hiring budget field\n */\n hiringBudget: string;\n /**\n * Default value for the age field.\n */\n age: number;\n /**\n * Default value for the contract duration type field.\n */\n contractDurationType: 'fixed' | 'indefinite';\n /**\n * Default value for the management fee field.\n */\n management: {\n management_fee: string;\n };\n /**\n * Default value for the region field.\n */\n regionSlug: string;\n } & Record<string, unknown>\n >;\n options?: UseCostCalculatorOptions;\n render: (\n costCalculatorBag: ReturnType<typeof useCostCalculator>,\n ) => React.ReactNode;\n /**\n * Whether to include annual_gross_salary in the estimation payload\n */\n version?: CostCalculatorVersion;\n};\n\nconst getDefaultManagementFee = (\n baseRates: Record<CurrencyKey, number>,\n currency: CurrencyKey,\n managementFees?: Partial<Record<CurrencyKey, number>>,\n) => {\n if (managementFees && managementFees[currency]) {\n return managementFees[currency];\n }\n if (baseRates[currency]) {\n return baseRates[currency] / 100;\n }\n return 0;\n};\n\nconst getManagementFee = (\n currency: CurrencyKey,\n currencySlug?: string,\n management?: { management_fee: string },\n managementFees?: Partial<Record<CurrencyKey, number>>,\n) => {\n if (!currencySlug && !management?.management_fee && currency) {\n return getDefaultManagementFee(BASE_RATES, currency, managementFees);\n }\n if (currencySlug && !management?.management_fee) {\n return '';\n }\n\n return management?.management_fee;\n};\n\nexport const CostCalculatorFlow = ({\n estimationOptions = defaultEstimationOptions,\n defaultValues = {\n countryRegionSlug: '',\n regionSlug: '',\n currencySlug: '',\n salary: '',\n benefits: {},\n management: {\n management_fee: '',\n },\n },\n options,\n render,\n version = 'standard',\n}: CostCalculatorFlowProps) => {\n const formId = useId();\n const [currency, setCurrency] = useState<CurrencyKey>('USD');\n const onCurrencyChange = (currency: string) => {\n setCurrency(currency as CurrencyKey);\n const managementFee = getDefaultManagementFee(\n BASE_RATES,\n currency as CurrencyKey,\n estimationOptions.managementFees,\n );\n if (managementFee) {\n form.setValue('management.management_fee', managementFee.toString());\n }\n };\n const costCalculatorBag = useCostCalculator({\n defaultRegion: defaultValues.countryRegionSlug,\n defaultCurrency: defaultValues.currencySlug,\n defaultSalary: defaultValues.salary,\n estimationOptions,\n version,\n options: {\n ...options,\n onCurrencyChange: onCurrencyChange,\n },\n });\n const resolver = useJsonSchemasValidationFormResolver(\n costCalculatorBag.handleValidation,\n );\n\n const defaultManagementFee = getManagementFee(\n currency,\n defaultValues.currencySlug,\n defaultValues.management,\n estimationOptions.managementFees,\n );\n\n const {\n countryRegionSlug,\n currencySlug,\n salary,\n benefits,\n hiringBudget,\n age,\n contractDurationType,\n regionSlug,\n ...formDefaultValues\n } = defaultValues;\n\n const form = useForm({\n resolver,\n defaultValues: {\n country: countryRegionSlug,\n currency: currencySlug,\n region: regionSlug,\n salary: salary,\n salary_conversion: '',\n salary_converted: undefined,\n hiring_budget: hiringBudget || 'employee_annual_salary',\n age: age,\n contract_duration_type: contractDurationType,\n management: {\n management_fee: defaultManagementFee?.toString() || '',\n },\n benefits: benefits,\n estimation_title: estimationOptions.title,\n ...formDefaultValues,\n },\n shouldUnregister: false,\n mode: 'onBlur',\n });\n\n useEffect(() => {\n if (\n defaultValues.currencySlug &&\n costCalculatorBag.currencies &&\n estimationOptions.includeManagementFee &&\n !defaultValues.management?.management_fee\n ) {\n const currencyData = costCalculatorBag.currencies.find(\n (currency) => currency.value === defaultValues.currencySlug,\n );\n const currencyCode = currencyData?.label;\n if (currencyCode) {\n setCurrency(currencyCode as CurrencyKey);\n const defaultManagementFee = getDefaultManagementFee(\n BASE_RATES,\n currencyCode as CurrencyKey,\n estimationOptions.managementFees,\n );\n form.setValue(\n 'management.management_fee',\n defaultManagementFee?.toString() || '',\n );\n }\n }\n }, [\n defaultValues.currencySlug,\n costCalculatorBag.currencies,\n estimationOptions.includeManagementFee,\n estimationOptions.managementFees,\n defaultValues.management?.management_fee,\n form,\n ]);\n\n return (\n <CostCalculatorContext.Provider\n value={{\n form,\n formId: formId,\n costCalculatorBag,\n }}\n >\n {render(costCalculatorBag)}\n </CostCalculatorContext.Provider>\n );\n};\n"],"mappings":"uPAAA,OAAgB,aAAAA,EAAW,SAAAC,EAAO,YAAAC,MAAgB,
|
|
1
|
+
{"version":3,"sources":["../src/flows/CostCalculator/CostCalculatorFlow.tsx"],"sourcesContent":["import React, { useEffect, useId, useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useJsonSchemasValidationFormResolver } from '@/src/components/form/validationResolver';\nimport { CostCalculatorContext } from '@/src/flows/CostCalculator/context';\nimport {\n CostCalculatorVersion,\n defaultEstimationOptions,\n useCostCalculator,\n} from '@/src/flows/CostCalculator/hooks';\nimport {\n CostCalculatorEstimationOptions,\n CurrencyKey,\n UseCostCalculatorOptions,\n} from '@/src/flows/CostCalculator/types';\nimport { BASE_RATES } from '@/src/flows/CostCalculator/constants';\n\nexport type CostCalculatorFlowProps = {\n /**\n * Estimation params allows you to customize the parameters sent to the /cost-calculator/estimation endpoint.\n */\n estimationOptions?: CostCalculatorEstimationOptions;\n /**\n * Default values for the form fields.\n */\n defaultValues?: Partial<\n {\n /**\n * Default value for the country field.\n */\n countryRegionSlug: string;\n /**\n * Default value for the currency field.\n */\n currencySlug: string;\n /**\n * Default value for the salary field.\n */\n salary: string;\n /**\n * Default value for the benefits field.\n */\n benefits: Record<string, string>;\n /**\n * Default value for the hiring budget field\n */\n hiringBudget: string;\n /**\n * Default value for the age field.\n */\n age: number;\n /**\n * Default value for the contract duration type field.\n */\n contractDurationType: 'fixed' | 'indefinite';\n /**\n * Default value for the management fee field.\n */\n management: {\n management_fee: string;\n };\n /**\n * Default value for the region field.\n */\n regionSlug: string;\n } & Record<string, unknown>\n >;\n options?: UseCostCalculatorOptions;\n render: (\n costCalculatorBag: ReturnType<typeof useCostCalculator>,\n ) => React.ReactNode;\n /**\n * Whether to include annual_gross_salary in the estimation payload\n */\n version?: CostCalculatorVersion;\n};\n\nconst getDefaultManagementFee = (\n baseRates: Record<CurrencyKey, number>,\n currency: CurrencyKey,\n managementFees?: Partial<Record<CurrencyKey, number>>,\n) => {\n if (managementFees && managementFees[currency]) {\n return managementFees[currency];\n }\n if (baseRates[currency]) {\n return baseRates[currency] / 100;\n }\n return 0;\n};\n\nconst getManagementFee = (\n currency: CurrencyKey,\n currencySlug?: string,\n management?: { management_fee: string },\n managementFees?: Partial<Record<CurrencyKey, number>>,\n) => {\n if (!currencySlug && !management?.management_fee && currency) {\n return getDefaultManagementFee(BASE_RATES, currency, managementFees);\n }\n if (currencySlug && !management?.management_fee) {\n return '';\n }\n\n return management?.management_fee;\n};\n\nexport const CostCalculatorFlow = ({\n estimationOptions = defaultEstimationOptions,\n defaultValues = {\n countryRegionSlug: '',\n regionSlug: '',\n currencySlug: '',\n salary: '',\n benefits: {},\n management: {\n management_fee: '',\n },\n },\n options,\n render,\n version = 'standard',\n}: CostCalculatorFlowProps) => {\n const formId = useId();\n const [currency, setCurrency] = useState<CurrencyKey>('USD');\n const onCurrencyChange = (currency: string) => {\n setCurrency(currency as CurrencyKey);\n const managementFee = getDefaultManagementFee(\n BASE_RATES,\n currency as CurrencyKey,\n estimationOptions.managementFees,\n );\n if (managementFee) {\n form.setValue('management.management_fee', managementFee.toString());\n }\n };\n const costCalculatorBag = useCostCalculator({\n defaultRegion: defaultValues.countryRegionSlug,\n defaultCurrency: defaultValues.currencySlug,\n defaultSalary: defaultValues.salary,\n estimationOptions,\n version,\n options: {\n ...options,\n onCurrencyChange: onCurrencyChange,\n },\n });\n const resolver = useJsonSchemasValidationFormResolver(\n costCalculatorBag.handleValidation,\n );\n\n const defaultManagementFee = getManagementFee(\n currency,\n defaultValues.currencySlug,\n defaultValues.management,\n estimationOptions.managementFees,\n );\n\n const {\n countryRegionSlug,\n currencySlug,\n salary,\n benefits,\n hiringBudget,\n age,\n contractDurationType,\n regionSlug,\n ...formDefaultValues\n } = defaultValues;\n\n const form = useForm({\n resolver,\n defaultValues: {\n country: countryRegionSlug,\n currency: currencySlug,\n region: regionSlug,\n salary: salary,\n salary_conversion: '',\n salary_converted: undefined,\n hiring_budget: hiringBudget || 'employee_annual_salary',\n age: age,\n contract_duration_type: contractDurationType,\n management: {\n management_fee: defaultManagementFee?.toString() || '',\n },\n benefits: benefits,\n estimation_title: estimationOptions.title,\n ...formDefaultValues,\n },\n shouldUnregister: false,\n mode: 'onBlur',\n });\n\n useEffect(() => {\n if (\n defaultValues.currencySlug &&\n costCalculatorBag.currencies &&\n estimationOptions.includeManagementFee &&\n !defaultValues.management?.management_fee\n ) {\n const currencyData = costCalculatorBag.currencies.find(\n (currency) => currency.value === defaultValues.currencySlug,\n );\n const currencyCode = currencyData?.label;\n if (currencyCode) {\n // WE NEED TO FIX: react-hooks/set-state-in-effect - Calling setState synchronously within an effect can trigger cascading renders\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setCurrency(currencyCode as CurrencyKey);\n const defaultManagementFee = getDefaultManagementFee(\n BASE_RATES,\n currencyCode as CurrencyKey,\n estimationOptions.managementFees,\n );\n form.setValue(\n 'management.management_fee',\n defaultManagementFee?.toString() || '',\n );\n }\n }\n }, [\n defaultValues.currencySlug,\n costCalculatorBag.currencies,\n estimationOptions.includeManagementFee,\n estimationOptions.managementFees,\n defaultValues.management?.management_fee,\n form,\n ]);\n\n return (\n <CostCalculatorContext.Provider\n value={{\n form,\n formId: formId,\n costCalculatorBag,\n }}\n >\n {render(costCalculatorBag)}\n </CostCalculatorContext.Provider>\n );\n};\n"],"mappings":"uPAAA,OAAgB,aAAAA,EAAW,SAAAC,EAAO,YAAAC,MAAgB,QAoO9C,cAAAC,MAAA,oBAxJJ,IAAMC,EAA0BC,EAAA,CAC9BC,EACAC,EACAC,IAEIA,GAAkBA,EAAeD,CAAQ,EACpCC,EAAeD,CAAQ,EAE5BD,EAAUC,CAAQ,EACbD,EAAUC,CAAQ,EAAI,IAExB,EAXuB,2BAc1BE,EAAmBJ,EAAA,CACvBE,EACAG,EACAC,EACAH,IAEI,CAACE,GAAgB,CAACC,GAAY,gBAAkBJ,EAC3CH,EAAwBQ,EAAYL,EAAUC,CAAc,EAEjEE,GAAgB,CAACC,GAAY,eACxB,GAGFA,GAAY,eAbI,oBAgBZE,EAAqBR,EAAA,CAAC,CACjC,kBAAAS,EAAoBC,EACpB,cAAAC,EAAgB,CACd,kBAAmB,GACnB,WAAY,GACZ,aAAc,GACd,OAAQ,GACR,SAAU,CAAC,EACX,WAAY,CACV,eAAgB,EAClB,CACF,EACA,QAAAC,EACA,OAAAC,EACA,QAAAC,EAAU,UACZ,IAA+B,CAC7B,IAAMC,EAASC,EAAM,EACf,CAACd,EAAUe,CAAW,EAAIC,EAAsB,KAAK,EACrDC,EAAmBnB,EAACE,GAAqB,CAC7Ce,EAAYf,CAAuB,EACnC,IAAMkB,EAAgBrB,EACpBQ,EACAL,EACAO,EAAkB,cACpB,EACIW,GACFC,EAAK,SAAS,4BAA6BD,EAAc,SAAS,CAAC,CAEvE,EAVyB,oBAWnBE,EAAoBC,EAAkB,CAC1C,cAAeZ,EAAc,kBAC7B,gBAAiBA,EAAc,aAC/B,cAAeA,EAAc,OAC7B,kBAAAF,EACA,QAAAK,EACA,QAAS,CACP,GAAGF,EACH,iBAAkBO,CACpB,CACF,CAAC,EACKK,EAAWC,EACfH,EAAkB,gBACpB,EAEMI,EAAuBtB,EAC3BF,EACAS,EAAc,aACdA,EAAc,WACdF,EAAkB,cACpB,EAEM,CACJ,kBAAAkB,EACA,aAAAtB,EACA,OAAAuB,EACA,SAAAC,EACA,aAAAC,EACA,IAAAC,EACA,qBAAAC,EACA,WAAAC,EACA,GAAGC,CACL,EAAIvB,EAEEU,EAAOc,EAAQ,CACnB,SAAAX,EACA,cAAe,CACb,QAASG,EACT,SAAUtB,EACV,OAAQ4B,EACR,OAAQL,EACR,kBAAmB,GACnB,iBAAkB,OAClB,cAAeE,GAAgB,yBAC/B,IAAKC,EACL,uBAAwBC,EACxB,WAAY,CACV,eAAgBN,GAAsB,SAAS,GAAK,EACtD,EACA,SAAUG,EACV,iBAAkBpB,EAAkB,MACpC,GAAGyB,CACL,EACA,iBAAkB,GAClB,KAAM,QACR,CAAC,EAED,OAAAE,EAAU,IAAM,CACd,GACEzB,EAAc,cACdW,EAAkB,YAClBb,EAAkB,sBAClB,CAACE,EAAc,YAAY,eAC3B,CAIA,IAAM0B,EAHef,EAAkB,WAAW,KAC/CpB,GAAaA,EAAS,QAAUS,EAAc,YACjD,GACmC,MACnC,GAAI0B,EAAc,CAGhBpB,EAAYoB,CAA2B,EACvC,IAAMX,EAAuB3B,EAC3BQ,EACA8B,EACA5B,EAAkB,cACpB,EACAY,EAAK,SACH,4BACAK,GAAsB,SAAS,GAAK,EACtC,CACF,CACF,CACF,EAAG,CACDf,EAAc,aACdW,EAAkB,WAClBb,EAAkB,qBAClBA,EAAkB,eAClBE,EAAc,YAAY,eAC1BU,CACF,CAAC,EAGCvB,EAACwC,EAAsB,SAAtB,CACC,MAAO,CACL,KAAAjB,EACA,OAAQN,EACR,kBAAAO,CACF,EAEC,SAAAT,EAAOS,CAAiB,EAC3B,CAEJ,EApIkC","names":["useEffect","useId","useState","jsx","getDefaultManagementFee","__name","baseRates","currency","managementFees","getManagementFee","currencySlug","management","BASE_RATES","CostCalculatorFlow","estimationOptions","defaultEstimationOptions","defaultValues","options","render","version","formId","useId","setCurrency","useState","onCurrencyChange","managementFee","form","costCalculatorBag","useCostCalculator","resolver","useJsonSchemasValidationFormResolver","defaultManagementFee","countryRegionSlug","salary","benefits","hiringBudget","age","contractDurationType","regionSlug","formDefaultValues","useForm","useEffect","currencyCode","CostCalculatorContext"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n,b as m,c as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n,b as m,c as a}from"./chunk-JJDAJQG4.js";import{a as r}from"./chunk-P37U34EQ.js";import{CheckIcon as p,FileText as s}from"lucide-react";import{jsx as t,jsxs as i}from"react/jsx-runtime";var P=r(({reviewCompleted:l,label:e,description:o})=>i(n,{variant:"default",children:[l?t(p,{className:"h-4 w-4"}):t(s,{className:"h-4 w-4"}),e&&t(m,{dangerouslySetInnerHTML:{__html:e}}),o&&t(a,{dangerouslySetInnerHTML:{__html:o}})]}),"ContractPreviewStatement");export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QMPXBDDO.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as p,i as s}from"./chunk-RXNDKUY6.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-R3HLTYHX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/form/fields/TextField.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { useFormFields } from '@/src/context';\nimport { Components, JSFField, $TSFixMe } from '@/src/types/remoteFlows';\nimport { useFormContext } from 'react-hook-form';\nimport { FormField } from '../../ui/form';\nimport { TextFieldDataProps } from '@/src/types/fields';\n\nexport type TextFieldProps = React.ComponentProps<'input'> & {\n name: string;\n} & Partial<\n JSFField & {\n onChange?: (value: $TSFixMe) => void;\n component?: Components['text'];\n includeErrorMessage?: boolean;\n additionalProps?: Record<string, unknown>;\n }\n >;\n\ntype CustomTextFieldProps = TextFieldDataProps & {\n /**\n * @deprecated avoid using this prop in custom components\n */\n onChange?: (value: $TSFixMe) => void;\n};\n\nexport function TextField({\n name,\n description,\n label,\n type,\n onChange,\n component,\n includeErrorMessage = true,\n additionalProps = {},\n maxLength,\n ...rest\n}: TextFieldProps) {\n const { components } = useFormFields();\n const { control } = useFormContext();\n\n return (\n <FormField\n control={control}\n name={name}\n render={({ field, fieldState }) => {\n const Component = component || components?.text;\n\n if (!Component) {\n throw new Error(`Text component not found for field ${name}`);\n }\n\n const customTextFieldProps: CustomTextFieldProps = {\n name,\n description,\n label,\n type,\n onChange,\n metadata: additionalProps,\n maxLength,\n includeErrorMessage,\n ...rest,\n };\n return (\n <Component\n field={{\n ...field,\n onChange: (value: $TSFixMe) => {\n field.onChange(value);\n onChange?.(value);\n },\n }}\n fieldState={fieldState}\n fieldData={customTextFieldProps}\n />\n );\n }}\n />\n );\n}\n"],"mappings":"+HAgEU,cAAAA,MAAA,oBAtCH,SAASC,EAAU,CACxB,KAAAC,EACA,YAAAC,EACA,MAAAC,EACA,KAAAC,EACA,SAAAC,EACA,UAAAC,EACA,oBAAAC,EAAsB,GACtB,gBAAAC,EAAkB,CAAC,EACnB,UAAAC,EACA,GAAGC,CACL,EAAmB,CACjB,GAAM,CAAE,WAAAC,CAAW,EAAIC,EAAc,EAC/B,CAAE,QAAAC,CAAQ,EAAIC,EAAe,EAEnC,OACEf,EAACgB,EAAA,CACC,QAASF,EACT,KAAMZ,EACN,OAAQ,CAAC,CAAE,MAAAe,EAAO,WAAAC,CAAW,IAAM,CACjC,IAAMC,EAAYZ,GAAaK,GAAY,KAE3C,GAAI,CAACO,EACH,MAAM,IAAI,MAAM,sCAAsCjB,CAAI,EAAE,EAG9D,IAAMkB,EAA6C,CACjD,KAAAlB,EACA,YAAAC,EACA,MAAAC,EACA,KAAAC,EACA,SAAAC,EACA,SAAUG,EACV,UAAAC,EACA,oBAAAF,EACA,GAAGG,CACL,EACA,OACEX,EAACmB,EAAA,CACC,MAAO,CACL,GAAGF,EACH,SAAUI,EAACC,GAAoB,CAC7BL,EAAM,SAASK,CAAK,EACpBhB,IAAWgB,CAAK,CAClB,EAHU,WAIZ,EACA,WAAYJ,EACZ,UAAWE,EACb,CAEJ,EACF,CAEJ,CArDgBC,EAAApB,EAAA","names":["jsx","TextField","name","description","label","type","onChange","component","includeErrorMessage","additionalProps","maxLength","rest","components","useFormFields","control","useFormContext","FormField","field","fieldState","Component","customTextFieldProps","__name","value"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as x,i as _}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as x,i as _}from"./chunk-RXNDKUY6.js";import{b as C}from"./chunk-KQPDXXG3.js";import{a}from"./chunk-P37U34EQ.js";import D from"lodash.groupby";import $ from"lodash.capitalize";var S=60,F=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function M(e){if(e<60)return`${e}m`;let s=Math.floor(e/S),n=e%S;return n>0?`${s}h${n}m`:`${s}h`}a(M,"convertBreakDurationToHours");function O(e){let s=e.reduce((n,u)=>u.hours+n,0);return Number(s.toFixed(2))}a(O,"calculateTotalWorkHours");function H(e,s){let n=s.map(({day:c})=>c.toLowerCase()),u=n.indexOf(e),i=null;for(;u<n.length&&!i;){let c=n[u],k=n[u+1],r=F.indexOf(c)+1;F[r]===k||(i=c),u+=1}return i}a(H,"findLastConsecutiveDay");function N(e){return e.start_time&&e.end_time&&(typeof e.hours=="number"?e.hours:Number.parseInt(e.hours))>0}a(N,"shouldSummarizeSchedule");function T(e){return Number.parseInt(e.break_duration_minutes)>0}a(T,"shouldSummarizeBreaks");function I(e){let s=e.filter(N),n=D(s,r=>`${r.start_time}|${r.end_time}`),u=e.filter(T),i=D(u,"break_duration_minutes"),c=Object.keys(n).map(r=>{let o=n[r],y=o[0].day,[p,h]=r.split("|"),t=`from <span>${p.replace(":","h")}</span> to <span>${h.replace(":","h")}</span>`,d=H(y,o),m=(d?o.findIndex(f=>f.day===d):-1)===o.length-1;return o.length===1?`${$(y)}, ${t}`:!m||!d?o.reduce((f,b,v)=>{let g=$(b.day);return v===o.length-1?`${f}and ${g}, ${t}`:`${f}<span>${g}</span>, `},""):`<span>${$(y)}</span> to <span>${$(d)}</span>, ${t}`}),k=Object.keys(i).reverse().map((r,o)=>{let y=o===0,p=i[r],h=M(parseInt(r,10));if(Object.keys(i).length===1)return`With ${h} daily breaks`;if(p.length===1){let t=`${h} break on ${$(p[0].day)}.`;return y?`With ${t}`:t}return p.reduce((t,d,l)=>{let m=$(d.day);return l===0?`${t} ${m}`:l===p.length-1?`${t}, and ${m}.`:`${t}, ${m}`},y?`With ${h} break on`:`${h} break on`)});return{workHoursSummary:c,breakSummary:k}}a(I,"buildWorkScheduleSummary");function P(e){let{checked:s,start_time:n,end_time:u,break_duration_minutes:i}=e;if(!s)return 0;let[c,k]=n.split(":").map(Number),[r,o]=u.split(":").map(Number),y=c*60+k,t=(r*60+o-y-Number.parseInt(i||"0"))/60;return t===Math.floor(t)?t:Number(t.toFixed(2))}a(P,"calculateHours");var w={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function R(e){return w[e]}a(R,"getShortWeekday");import{jsx as W}from"react/jsx-runtime";function U({name:e,defaultValue:s,description:n,label:u,onChange:i,multiple:c,options:k,component:r,...o}){let{components:y}=C(),{control:p}=x(),h=a((t,d,l)=>{if(c&&l){let m=t.value?[...t.value]:[];d?m.includes(l)||t.onChange([...m,l]):t.onChange(m.filter(f=>f!==l))}else t.onChange(d)},"handleCheckboxChange");return W(_,{control:p,name:e,defaultValue:s,render:({field:t,fieldState:d})=>{let l=r||y?.checkbox;if(!l)throw new Error(`Checkbox component not found for field ${e}`);let m={name:e,description:n,label:u,defaultValue:s,multiple:c,options:k,...o};return W(l,{field:{...t,onChange:a((f,b)=>{h(t,f,b),i?.(f,b)},"onChange")},fieldState:d,fieldData:m})}})}a(U,"CheckBoxField");export{F as a,O as b,I as c,P as d,R as e,U as f};
|
|
2
|
+
//# sourceMappingURL=chunk-R3NDFTIM.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{a as t}from"./chunk-P37U34EQ.js";var Q=t((e,r,o)=>{typeof o=="string"||o instanceof Blob?e.append(r,o):o instanceof Date?e.append(r,o.toISOString()):e.append(r,JSON.stringify(o))},"serializeFormDataPair");var q={bodySerializer:t(e=>{let r=new FormData;return Object.entries(e).forEach(([o,s])=>{s!=null&&(Array.isArray(s)?s.forEach(i=>Q(r,o,i)):Q(r,o,s))}),r},"bodySerializer")},L={bodySerializer:t(e=>JSON.stringify(e,(r,o)=>typeof o=="bigint"?o.toString():o),"bodySerializer")};var J=t(({onRequest:e,onSseError:r,onSseEvent:o,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:m,sseMaxRetryAttempts:l,sseMaxRetryDelay:p,sseSleepFn:c,url:C,...d})=>{let a,R=c??(b=>new Promise(h=>setTimeout(h,b)));return{stream:t(async function*(){let b=m??3e3,h=0,P=d.signal??new AbortController().signal;for(;!P.aborted;){h++;let O=d.headers instanceof Headers?d.headers:new Headers(d.headers);a!==void 0&&O.set("Last-Event-ID",a);try{let x={redirect:"follow",...d,body:d.serializedBody,headers:O,signal:P},T=new Request(C,x);e&&(T=await e(C,x));let y=await(d.fetch??globalThis.fetch)(T);if(!y.ok)throw new Error(`SSE failed: ${y.status} ${y.statusText}`);if(!y.body)throw new Error("No body in SSE response");let E=y.body.pipeThrough(new TextDecoderStream).getReader(),u="",j=t(()=>{try{E.cancel()}catch{}},"abortHandler");P.addEventListener("abort",j);try{for(;;){let{done:te,value:re}=await E.read();if(te)break;u+=re,u=u.replace(/\r\n/g,`
|
|
2
|
+
`).replace(/\r/g,`
|
|
3
|
+
`);let M=u.split(`
|
|
4
|
+
|
|
5
|
+
`);u=M.pop()??"";for(let oe of M){let ne=oe.split(`
|
|
6
|
+
`),k=[],_;for(let w of ne)if(w.startsWith("data:"))k.push(w.replace(/^data:\s*/,""));else if(w.startsWith("event:"))_=w.replace(/^event:\s*/,"");else if(w.startsWith("id:"))a=w.replace(/^id:\s*/,"");else if(w.startsWith("retry:")){let N=Number.parseInt(w.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(b=N)}let S,H=!1;if(k.length){let w=k.join(`
|
|
7
|
+
`);try{S=JSON.parse(w),H=!0}catch{S=w}}H&&(i&&await i(S),s&&(S=await s(S))),o?.({data:S,event:_,id:a,retry:b}),k.length&&(yield S)}}}finally{P.removeEventListener("abort",j),E.releaseLock()}break}catch(x){if(r?.(x),l!==void 0&&h>=l)break;let T=Math.min(b*2**(h-1),p??3e4);await R(T)}}},"createStream")()}},"createSseClient");var se=t(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},"separatorArrayExplode"),ae=t(e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},"separatorArrayNoExplode"),ie=t(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},"separatorObjectExplode"),U=t(({allowReserved:e,explode:r,name:o,style:s,value:i})=>{if(!r){let p=(e?i:i.map(c=>encodeURIComponent(c))).join(ae(s));switch(s){case"label":return`.${p}`;case"matrix":return`;${o}=${p}`;case"simple":return p;default:return`${o}=${p}`}}let m=se(s),l=i.map(p=>s==="label"||s==="simple"?e?p:encodeURIComponent(p):D({allowReserved:e,name:o,value:p})).join(m);return s==="label"||s==="matrix"?m+l:l},"serializeArrayParam"),D=t(({allowReserved:e,name:r,value:o})=>{if(o==null)return"";if(typeof o=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?o:encodeURIComponent(o)}`},"serializePrimitiveParam"),B=t(({allowReserved:e,explode:r,name:o,style:s,value:i,valueOnly:m})=>{if(i instanceof Date)return m?i.toISOString():`${o}=${i.toISOString()}`;if(s!=="deepObject"&&!r){let c=[];Object.entries(i).forEach(([d,a])=>{c=[...c,d,e?a:encodeURIComponent(a)]});let C=c.join(",");switch(s){case"form":return`${o}=${C}`;case"label":return`.${C}`;case"matrix":return`;${o}=${C}`;default:return C}}let l=ie(s),p=Object.entries(i).map(([c,C])=>D({allowReserved:e,name:s==="deepObject"?`${o}[${c}]`:c,value:C})).join(l);return s==="label"||s==="matrix"?l+p:p},"serializeObjectParam");var pe=/\{[^{}]+\}/g,le=t(({path:e,url:r})=>{let o=r,s=r.match(pe);if(s)for(let i of s){let m=!1,l=i.substring(1,i.length-1),p="simple";l.endsWith("*")&&(m=!0,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),p="label"):l.startsWith(";")&&(l=l.substring(1),p="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){o=o.replace(i,U({explode:m,name:l,style:p,value:c}));continue}if(typeof c=="object"){o=o.replace(i,B({explode:m,name:l,style:p,value:c,valueOnly:!0}));continue}if(p==="matrix"){o=o.replace(i,`;${D({name:l,value:c})}`);continue}let C=encodeURIComponent(p==="label"?`.${c}`:c);o=o.replace(i,C)}return o},"defaultPathSerializer"),$=t(({baseUrl:e,path:r,query:o,querySerializer:s,url:i})=>{let m=i.startsWith("/")?i:`/${i}`,l=(e??"")+m;r&&(l=le({path:r,url:l}));let p=o?s(o):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(l+=`?${p}`),l},"getUrl");function F(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}t(F,"getValidRequestBody");var K=t(async(e,r)=>{let o=typeof r=="function"?await r(e):r;if(o)return e.scheme==="bearer"?`Bearer ${o}`:e.scheme==="basic"?`Basic ${btoa(o)}`:o},"getAuthToken");var X=t(({parameters:e={},...r}={})=>t(s=>{let i=[];if(s&&typeof s=="object")for(let m in s){let l=s[m];if(l==null)continue;let p=e[m]||r;if(Array.isArray(l)){let c=U({allowReserved:p.allowReserved,explode:!0,name:m,style:"form",value:l,...p.array});c&&i.push(c)}else if(typeof l=="object"){let c=B({allowReserved:p.allowReserved,explode:!0,name:m,style:"deepObject",value:l,...p.object});c&&i.push(c)}else{let c=D({allowReserved:p.allowReserved,name:m,value:l});c&&i.push(c)}}return i.join("&")},"querySerializer"),"createQuerySerializer"),Y=t(e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>r.startsWith(o)))return"blob";if(r.startsWith("text/"))return"text"}},"getParseAs"),ce=t((e,r)=>r?!!(e.headers.has(r)||e.query?.[r]||e.headers.get("Cookie")?.includes(`${r}=`)):!1,"checkForExistence"),Z=t(async({security:e,...r})=>{for(let o of e){if(ce(r,o.name))continue;let s=await K(o,r.auth);if(!s)continue;let i=o.name??"Authorization";switch(o.in){case"query":r.query||(r.query={}),r.query[i]=s;break;case"cookie":r.headers.append("Cookie",`${i}=${s}`);break;default:r.headers.set(i,s);break}}},"setAuthParams"),W=t(e=>$({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),"buildUrl"),V=t((e,r)=>{let o={...e,...r};return o.baseUrl?.endsWith("/")&&(o.baseUrl=o.baseUrl.substring(0,o.baseUrl.length-1)),o.headers=A(e.headers,r.headers),o},"mergeConfigs"),me=t(e=>{let r=[];return e.forEach((o,s)=>{r.push([s,o])}),r},"headersEntries"),A=t((...e)=>{let r=new Headers;for(let o of e){if(!o)continue;let s=o instanceof Headers?me(o):Object.entries(o);for(let[i,m]of s)if(m===null)r.delete(i);else if(Array.isArray(m))for(let l of m)r.append(i,l);else m!==void 0&&r.set(i,typeof m=="object"?JSON.stringify(m):m)}return r},"mergeHeaders"),I=class{static{t(this,"Interceptors")}fns=[];clear(){this.fns=[]}eject(r){let o=this.getInterceptorIndex(r);this.fns[o]&&(this.fns[o]=null)}exists(r){let o=this.getInterceptorIndex(r);return!!this.fns[o]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,o){let s=this.getInterceptorIndex(r);return this.fns[s]?(this.fns[s]=o,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=t(()=>({error:new I,request:new I,response:new I}),"createInterceptors"),he=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),de={"Content-Type":"application/json"},v=t((e={})=>({...L,headers:de,parseAs:"auto",querySerializer:he,...e}),"createConfig");var z=t((e={})=>{let r=V(v(),e),o=t(()=>({...r}),"getConfig"),s=t(d=>(r=V(r,d),o()),"setConfig"),i=ee(),m=t(async d=>{let a={...r,...d,fetch:d.fetch??r.fetch??globalThis.fetch,headers:A(r.headers,d.headers),serializedBody:void 0};a.security&&await Z({...a,security:a.security}),a.requestValidator&&await a.requestValidator(a),a.body!==void 0&&a.bodySerializer&&(a.serializedBody=a.bodySerializer(a.body)),(a.body===void 0||a.serializedBody==="")&&a.headers.delete("Content-Type");let R=a,G=W(R);return{opts:R,url:G}},"beforeRequest"),l=t(async d=>{let{opts:a,url:R}=await m(d),G={redirect:"follow",...a,body:F(a)},f=new Request(R,G);for(let y of i.request.fns)y&&(f=await y(f,a));let b=a.fetch,h;try{h=await b(f)}catch(y){let E=y;for(let u of i.error.fns)u&&(E=await u(y,void 0,f,a));if(E=E||{},a.throwOnError)throw E;return a.responseStyle==="data"?void 0:{error:E,request:f,response:void 0}}for(let y of i.response.fns)y&&(h=await y(h,f,a));let P={request:f,response:h};if(h.ok){let y=(a.parseAs==="auto"?Y(h.headers.get("Content-Type")):a.parseAs)??"json";if(h.status===204||h.headers.get("Content-Length")==="0"){let u;switch(y){case"arrayBuffer":case"blob":case"text":u=await h[y]();break;case"formData":u=new FormData;break;case"stream":u=h.body;break;default:u={};break}return a.responseStyle==="data"?u:{data:u,...P}}let E;switch(y){case"arrayBuffer":case"blob":case"formData":case"text":E=await h[y]();break;case"json":{let u=await h.text();E=u?JSON.parse(u):{};break}case"stream":return a.responseStyle==="data"?h.body:{data:h.body,...P}}return y==="json"&&(a.responseValidator&&await a.responseValidator(E),a.responseTransformer&&(E=await a.responseTransformer(E))),a.responseStyle==="data"?E:{data:E,...P}}let O=await h.text(),x;try{x=JSON.parse(O)}catch{}let T=x??O,g=T;for(let y of i.error.fns)y&&(g=await y(T,h,f,a));if(g=g||{},a.throwOnError)throw g;return a.responseStyle==="data"?void 0:{error:g,...P}},"request"),p=t(d=>a=>l({...a,method:d}),"makeMethodFn"),c=t(d=>async a=>{let{opts:R,url:G}=await m(a);return J({...R,body:R.body,headers:R.headers,method:d,onRequest:t(async(f,b)=>{let h=new Request(f,b);for(let P of i.request.fns)P&&(h=await P(h,R));return h},"onRequest"),serializedBody:F(R),url:G})},"makeSseFn");return{buildUrl:t(d=>W({...r,...d}),"_buildUrl"),connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),getConfig:o,head:p("HEAD"),interceptors:i,options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),request:l,setConfig:s,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:p("TRACE")}},"createClient");var n=z(v({baseUrl:"https://gateway.remote.com/"}));var ye=t(e=>(e?.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/offboardings",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateOffboarding");var ue=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cancel-onboarding/{employment_id}",...e}),"postUpdateCancelOnboarding"),Ee=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/schema",...e}),"getShowContractAmendmentSchema");var Ce=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}/pricing-plans",...e}),"getIndexCompanyPricingPlan");var Re=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/raw",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postConvertRawCurrencyConverter"),Pe=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/contractor-contract-details",...e}),"getShowContractorContractDetailsCountry");var fe=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateEmployment2"),we=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}/employments/{employment_id}/onboarding-reserves-status",...e}),"getShowCompanyEmploymentOnboardingReservesStatus"),be=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/help-center-articles/{id}",...e}),"getShowHelpCenterArticle");var xe=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/sdk/telemetry-errors",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postReportErrorsTelemetry");var Te=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateEstimation");var Se=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e}),"getIndexBenefitOffer"),Ge=t(e=>(e.client??n).put({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e,headers:{"Content-Type":"application/json",...e.headers}}),"putUpdateBenefitOffer");var ge=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-subscriptions",...e}),"getIndexSubscription");var De=t(e=>(e?.client??n).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/payroll-calendars",...e}),"getIndexEorPayrollCalendar");var Oe=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{id}",...e}),"getShowContractDocument"),Ie=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/contract-documents",...e}),"getIndexEmploymentContractDocument");var ve=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-currencies",...e}),"getIndexContractorCurrency");var ke=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/magic-link",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postGenerateMagicLink");var Ue=t(e=>(e?.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-pdf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationPdf");var Be=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/risk-reserve",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateRiskReserve");var Ae=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}",...e}),"getShowCompany"),qe=t(e=>(e.client??n).patch({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),"patchUpdateCompany2");var Le=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractAmendment");var Fe=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/{form}",...e}),"getShowFormCountry"),We=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/files/{id}",...e}),"getShowFile");var Ve=t(e=>(e?.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/countries",...e}),"getIndexCountry");var ze=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/leave-policies/summary/{employment_id}",...e}),"getIndexLeavePoliciesSummary");var je=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers/schema",...e}),"getShowSchema"),Me=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/eligibility-questionnaire",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateEligibilityQuestionnaire");var _e=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e}),"getShowEmployment"),He=t(e=>(e.client??n).patch({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),"patchUpdateEmployment2");var Ne=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/regions/{slug}/fields",...e}),"getShowRegionField");var Qe=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/contract-eligibility",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractEligibility"),Je=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries",...e}),"getSupportedCountry");var $e=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}/legal-entities",...e}),"getIndexCompanyLegalEntities");var Ke=t(e=>(e?.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-csv",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationCsv");var Xe=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractDocument");var Ye=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/effective",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postConvertWithSpreadCurrencyConverter");var Ze=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/automatable",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postAutomatableContractAmendment");var et=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/files",...e}),"getIndexEmploymentFile");var tt=t(e=>(e?.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/company-currencies",...e}),"getIndexCompanyCurrency");var rt=t(e=>(e.client??n).post({...q,security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/documents",...e,headers:{"Content-Type":null,...e.headers}}),"postUploadEmployeeFileFile"),ot=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/invite",...e}),"postInviteEmploymentInvitation");var nt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{contract_document_id}/sign",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postSignContractDocument"),st=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/identity/current",...e}),"getCurrentIdentity");var at=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/schemas/eligibility-questionnaire",...e}),"getShowEligibilityQuestionnaire");var it=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-plus-subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postManageContractorPlusSubscriptionSubscription"),pt=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/timeoff",...e}),"getIndexTimeoff");var lt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateCompany");var ct=t(e=>(e.client??n).delete({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-cor-subscription",...e}),"deleteDeleteContractorCorSubscriptionSubscription"),mt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-cor-subscription",...e}),"postManageContractorCorSubscriptionSubscription");export{z as a,n as b,ye as c,ue as d,Ee as e,Ce as f,Re as g,Pe as h,fe as i,we as j,be as k,xe as l,Te as m,Se as n,Ge as o,ge as p,De as q,Oe as r,Ie as s,ve as t,ke as u,Ue as v,Be as w,Ae as x,qe as y,Le as z,Fe as A,We as B,Ve as C,ze as D,je as E,Me as F,_e as G,He as H,Ne as I,Qe as J,Je as K,$e as L,Ke as M,Xe as N,Ye as O,Ze as P,et as Q,tt as R,rt as S,ot as T,nt as U,st as V,at as W,it as X,pt as Y,lt as Z,ct as _,mt as $};
|
|
8
|
+
//# sourceMappingURL=chunk-R47Q7R6C.js.map
|