@remoteoss/remote-flows 1.23.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CheckboxFieldDefault-XSBJF4HQ.js +2 -0
- package/dist/CountryFieldDefault-K5X6MFP3.js +2 -0
- package/dist/DatePickerFieldDefault-G6FWA64N.js +2 -0
- package/dist/EmailFieldDefault-TFQ5SQVC.js +2 -0
- package/dist/FileUploadFieldDefault-7ETO2SEZ.js +2 -0
- package/dist/MultiSelectFieldDefault-5TL5SL7W.js +2 -0
- package/dist/NumberFieldDefault-L7J22NRQ.js +2 -0
- package/dist/RadioGroupFieldDefault-XSPBKOS6.js +2 -0
- package/dist/SelectFieldDefault-AT6LLZNX.js +2 -0
- package/dist/TextAreaFieldDefault-2TV3WHKH.js +2 -0
- package/dist/TextFieldDefault-2GEILZPU.js +2 -0
- package/dist/WorkScheduleFieldDefault-XH4AEXSM.js +2 -0
- package/dist/{chunk-4EU3AWEX.js → chunk-26IIK5U2.js} +2 -2
- package/dist/{chunk-IN74TK34.js → chunk-2JVZYQ6Z.js} +2 -2
- package/dist/{chunk-VXMLYWZ2.js → chunk-2V4CTIAG.js} +2 -2
- package/dist/{chunk-4Q2FKKQU.js → chunk-3LCASKDS.js} +2 -2
- package/dist/{chunk-4EFT4EBW.js → chunk-4IE7XN74.js} +2 -2
- package/dist/{chunk-D5K4NBOG.js → chunk-53KG3SOU.js} +2 -2
- package/dist/chunk-5CFU6XTU.js +2 -0
- package/dist/chunk-5CFU6XTU.js.map +1 -0
- package/dist/{chunk-UEDPRIG7.js → chunk-6ABCDOFB.js} +2 -2
- package/dist/{chunk-HJ7WOTV7.js → chunk-6H4634RG.js} +2 -2
- package/dist/{chunk-H3HNBOAE.js → chunk-6MJVXTLI.js} +2 -2
- package/dist/{chunk-KEFIHTZ2.js → chunk-6ZHKAS7X.js} +2 -2
- package/dist/{chunk-6ORP3EVR.js → chunk-7ZFZYZSP.js} +2 -2
- package/dist/{chunk-ROQYHTFQ.js → chunk-AR5X2YWE.js} +2 -2
- package/dist/{chunk-AOSXULKY.js → chunk-AS6KFUXS.js} +2 -2
- package/dist/{chunk-R7G5G45H.js → chunk-AXV7YMZ3.js} +2 -2
- package/dist/{chunk-3MLYDDLK.js → chunk-B2BH4JUO.js} +2 -2
- package/dist/{chunk-TGQTFWAB.js → chunk-BK44KHBJ.js} +2 -2
- package/dist/{chunk-EFRT6C7V.js → chunk-BNQFPYNQ.js} +2 -2
- package/dist/{chunk-AKFNSADJ.js → chunk-CHHHYLCB.js} +2 -2
- package/dist/{chunk-6PYJAPM2.js → chunk-CKVI2UDU.js} +2 -2
- package/dist/{chunk-X6CON4YE.js → chunk-CS5TJWQM.js} +2 -2
- package/dist/chunk-CWAFRJAQ.js +2 -0
- package/dist/chunk-CWAFRJAQ.js.map +1 -0
- package/dist/{chunk-JEGVULKU.js → chunk-D5AO6SOM.js} +2 -2
- package/dist/{chunk-JEGVULKU.js.map → chunk-D5AO6SOM.js.map} +1 -1
- package/dist/{chunk-RKGD6XC7.js → chunk-D7CBR52B.js} +2 -2
- package/dist/{chunk-JJMBP6FU.js → chunk-D7W4VBSV.js} +2 -2
- package/dist/{chunk-TJHW5QSC.js → chunk-DJPCJ3YR.js} +2 -2
- package/dist/{chunk-MGY23P25.js → chunk-ECGWCDC3.js} +2 -2
- package/dist/{chunk-V3ZGBTES.js → chunk-EP6FL2L3.js} +2 -2
- package/dist/chunk-FAIEJW57.js +2 -0
- package/dist/{chunk-YHQQSL4Q.js.map → chunk-FAIEJW57.js.map} +1 -1
- package/dist/chunk-G3HUFVSG.js +2 -0
- package/dist/chunk-G3HUFVSG.js.map +1 -0
- package/dist/chunk-H5QXOIKS.js +2 -0
- package/dist/{chunk-TFSRZOMP.js.map → chunk-H5QXOIKS.js.map} +1 -1
- package/dist/{chunk-4J36XOH2.js → chunk-HIFEVMKP.js} +2 -2
- package/dist/{chunk-HVOYAQHI.js → chunk-HLSQCUMS.js} +2 -2
- package/dist/{chunk-JIW2JK7J.js → chunk-HYDNZQOV.js} +2 -2
- package/dist/{chunk-VL5TI4XT.js → chunk-IFX5XLPZ.js} +2 -2
- package/dist/{chunk-FXTOBTW4.js → chunk-IORVZBRC.js} +2 -2
- package/dist/chunk-IYL6TSUF.js +2 -0
- package/dist/{chunk-PVZTOW7Z.js.map → chunk-IYL6TSUF.js.map} +1 -1
- package/dist/{chunk-UVBIRNQ4.js → chunk-J7MCWMDD.js} +2 -2
- package/dist/{chunk-OIBZ7VUR.js → chunk-KXT6ACFL.js} +2 -2
- package/dist/{chunk-7DRY6YCN.js → chunk-M4TBX2FU.js} +2 -2
- package/dist/{chunk-JAZLNJM3.js → chunk-MGZWMJMP.js} +2 -2
- package/dist/{chunk-D4TLSPX5.js → chunk-MKPKDACH.js} +2 -2
- package/dist/{chunk-M7KQPXCS.js → chunk-N4IPXHFM.js} +2 -2
- package/dist/{chunk-S5VSWHJY.js → chunk-NAF6LRSS.js} +2 -2
- package/dist/{chunk-X6PTF3PD.js → chunk-NLBQ7CZC.js} +2 -2
- package/dist/{chunk-TV2NNJVO.js → chunk-NNFWLL7F.js} +2 -2
- package/dist/{chunk-KO264IE2.js → chunk-NOTLTHHZ.js} +2 -2
- package/dist/{chunk-5MDNW5H7.js → chunk-NUID2T57.js} +2 -2
- package/dist/{chunk-HNTEGDI2.js → chunk-OELREIVJ.js} +2 -2
- package/dist/{chunk-HFQAVCD2.js → chunk-OWUINMZP.js} +2 -2
- package/dist/{chunk-GRE4RCPB.js → chunk-OXKAGVWK.js} +2 -2
- package/dist/{chunk-ITTXYDGV.js → chunk-PNEB74RP.js} +2 -2
- package/dist/{chunk-JNMD7SWN.js → chunk-PZUCONZ4.js} +2 -2
- package/dist/chunk-QB6OI74K.js +2 -0
- package/dist/chunk-QB6OI74K.js.map +1 -0
- package/dist/{chunk-2PDHYTZ2.js → chunk-RGRCYSYE.js} +2 -2
- package/dist/{chunk-2MTSUYN6.js → chunk-RVADUHPA.js} +2 -2
- package/dist/{chunk-K5HZE7M6.js → chunk-RYVRMH6C.js} +2 -2
- package/dist/chunk-S6IMK3LL.js +2 -0
- package/dist/chunk-S6IMK3LL.js.map +1 -0
- package/dist/{chunk-GECXYMDU.js → chunk-SPQM2TCX.js} +2 -2
- package/dist/{chunk-VHLCM6IM.js → chunk-T2KDFAAY.js} +2 -2
- package/dist/chunk-T4QDKI7V.js +2 -0
- package/dist/chunk-T4QDKI7V.js.map +1 -0
- package/dist/{chunk-CJG77FUT.js → chunk-TVCIAQTC.js} +2 -2
- package/dist/{chunk-5QOEBELF.js → chunk-UNKCOOE4.js} +2 -2
- package/dist/{chunk-SQPCNBJC.js → chunk-VB6KFDBL.js} +2 -2
- package/dist/{chunk-D5ABWBC6.js → chunk-VFB3RR5I.js} +2 -2
- package/dist/{chunk-DPRCPBRB.js → chunk-VN535FEZ.js} +2 -2
- package/dist/{chunk-WWXX3PU7.js → chunk-VRW22LTU.js} +2 -2
- package/dist/chunk-VU6C3EU2.js +2 -0
- package/dist/chunk-VU6C3EU2.js.map +1 -0
- package/dist/{chunk-NI3CJNG3.js → chunk-W5YNJOSB.js} +2 -2
- package/dist/{chunk-S42DBWAF.js → chunk-WQVZXTW3.js} +2 -2
- package/dist/{chunk-TRBEYNRN.js → chunk-WRRTZ2AL.js} +2 -2
- package/dist/{chunk-ZEJRVVLJ.js → chunk-X3PUZFYX.js} +2 -2
- package/dist/{chunk-JVHQ5EG3.js → chunk-XRN6752K.js} +2 -2
- package/dist/{chunk-YHCH57B7.js → chunk-YUJBCOLO.js} +2 -2
- package/dist/{chunk-DNVTXLTP.js → chunk-Z7J6NJY2.js} +2 -2
- package/dist/{chunk-U33Q35CB.js → chunk-ZO34QFKD.js} +2 -2
- package/dist/default-components.js +1 -1
- package/dist/default-components.js.map +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/utils.js +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/CreateCompany/CreateCompany.js +1 -1
- package/dist/flows/CreateCompany/api.js +1 -1
- package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
- package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
- package/dist/flows/CreateCompany/hooks.js +1 -1
- package/dist/flows/CreateCompany/index.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.js +1 -1
- 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/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +4 -2
- package/dist/internals.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +4 -2
- package/dist/CheckboxFieldDefault-SZZQUVAM.js +0 -2
- package/dist/CountryFieldDefault-IBVQJVMW.js +0 -2
- package/dist/DatePickerFieldDefault-5LEOVIM2.js +0 -2
- package/dist/EmailFieldDefault-2PMSDIXF.js +0 -2
- package/dist/FileUploadFieldDefault-Y2ZYBSTV.js +0 -2
- package/dist/MultiSelectFieldDefault-UK7652MS.js +0 -2
- package/dist/NumberFieldDefault-C5V6POQ7.js +0 -2
- package/dist/RadioGroupFieldDefault-DNESPKMT.js +0 -2
- package/dist/SelectFieldDefault-4KQUV57C.js +0 -2
- package/dist/TextAreaFieldDefault-5P2MEQUR.js +0 -2
- package/dist/TextFieldDefault-PMCQSPPT.js +0 -2
- package/dist/WorkScheduleFieldDefault-SR3G37MN.js +0 -2
- package/dist/chunk-6AAV34CT.js +0 -2
- package/dist/chunk-6AAV34CT.js.map +0 -1
- package/dist/chunk-7EONM7HL.js +0 -2
- package/dist/chunk-7EONM7HL.js.map +0 -1
- package/dist/chunk-EOMVTXER.js +0 -2
- package/dist/chunk-EOMVTXER.js.map +0 -1
- package/dist/chunk-LU265KXN.js +0 -2
- package/dist/chunk-LU265KXN.js.map +0 -1
- package/dist/chunk-PVZTOW7Z.js +0 -2
- package/dist/chunk-RGLQY27T.js +0 -2
- package/dist/chunk-RGLQY27T.js.map +0 -1
- package/dist/chunk-TFSRZOMP.js +0 -2
- package/dist/chunk-U4QOJDBZ.js +0 -2
- package/dist/chunk-U4QOJDBZ.js.map +0 -1
- package/dist/chunk-UTLIN5S6.js +0 -2
- package/dist/chunk-UTLIN5S6.js.map +0 -1
- package/dist/chunk-VKQQKGGY.js +0 -2
- package/dist/chunk-VKQQKGGY.js.map +0 -1
- package/dist/chunk-YHQQSL4Q.js +0 -2
- /package/dist/{CheckboxFieldDefault-SZZQUVAM.js.map → CheckboxFieldDefault-XSBJF4HQ.js.map} +0 -0
- /package/dist/{CountryFieldDefault-IBVQJVMW.js.map → CountryFieldDefault-K5X6MFP3.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-5LEOVIM2.js.map → DatePickerFieldDefault-G6FWA64N.js.map} +0 -0
- /package/dist/{EmailFieldDefault-2PMSDIXF.js.map → EmailFieldDefault-TFQ5SQVC.js.map} +0 -0
- /package/dist/{FileUploadFieldDefault-Y2ZYBSTV.js.map → FileUploadFieldDefault-7ETO2SEZ.js.map} +0 -0
- /package/dist/{MultiSelectFieldDefault-UK7652MS.js.map → MultiSelectFieldDefault-5TL5SL7W.js.map} +0 -0
- /package/dist/{NumberFieldDefault-C5V6POQ7.js.map → NumberFieldDefault-L7J22NRQ.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-DNESPKMT.js.map → RadioGroupFieldDefault-XSPBKOS6.js.map} +0 -0
- /package/dist/{SelectFieldDefault-4KQUV57C.js.map → SelectFieldDefault-AT6LLZNX.js.map} +0 -0
- /package/dist/{TextAreaFieldDefault-5P2MEQUR.js.map → TextAreaFieldDefault-2TV3WHKH.js.map} +0 -0
- /package/dist/{TextFieldDefault-PMCQSPPT.js.map → TextFieldDefault-2GEILZPU.js.map} +0 -0
- /package/dist/{WorkScheduleFieldDefault-SR3G37MN.js.map → WorkScheduleFieldDefault-XH4AEXSM.js.map} +0 -0
- /package/dist/{chunk-4EU3AWEX.js.map → chunk-26IIK5U2.js.map} +0 -0
- /package/dist/{chunk-IN74TK34.js.map → chunk-2JVZYQ6Z.js.map} +0 -0
- /package/dist/{chunk-VXMLYWZ2.js.map → chunk-2V4CTIAG.js.map} +0 -0
- /package/dist/{chunk-4Q2FKKQU.js.map → chunk-3LCASKDS.js.map} +0 -0
- /package/dist/{chunk-4EFT4EBW.js.map → chunk-4IE7XN74.js.map} +0 -0
- /package/dist/{chunk-D5K4NBOG.js.map → chunk-53KG3SOU.js.map} +0 -0
- /package/dist/{chunk-UEDPRIG7.js.map → chunk-6ABCDOFB.js.map} +0 -0
- /package/dist/{chunk-HJ7WOTV7.js.map → chunk-6H4634RG.js.map} +0 -0
- /package/dist/{chunk-H3HNBOAE.js.map → chunk-6MJVXTLI.js.map} +0 -0
- /package/dist/{chunk-KEFIHTZ2.js.map → chunk-6ZHKAS7X.js.map} +0 -0
- /package/dist/{chunk-6ORP3EVR.js.map → chunk-7ZFZYZSP.js.map} +0 -0
- /package/dist/{chunk-ROQYHTFQ.js.map → chunk-AR5X2YWE.js.map} +0 -0
- /package/dist/{chunk-AOSXULKY.js.map → chunk-AS6KFUXS.js.map} +0 -0
- /package/dist/{chunk-R7G5G45H.js.map → chunk-AXV7YMZ3.js.map} +0 -0
- /package/dist/{chunk-3MLYDDLK.js.map → chunk-B2BH4JUO.js.map} +0 -0
- /package/dist/{chunk-TGQTFWAB.js.map → chunk-BK44KHBJ.js.map} +0 -0
- /package/dist/{chunk-EFRT6C7V.js.map → chunk-BNQFPYNQ.js.map} +0 -0
- /package/dist/{chunk-AKFNSADJ.js.map → chunk-CHHHYLCB.js.map} +0 -0
- /package/dist/{chunk-6PYJAPM2.js.map → chunk-CKVI2UDU.js.map} +0 -0
- /package/dist/{chunk-X6CON4YE.js.map → chunk-CS5TJWQM.js.map} +0 -0
- /package/dist/{chunk-RKGD6XC7.js.map → chunk-D7CBR52B.js.map} +0 -0
- /package/dist/{chunk-JJMBP6FU.js.map → chunk-D7W4VBSV.js.map} +0 -0
- /package/dist/{chunk-TJHW5QSC.js.map → chunk-DJPCJ3YR.js.map} +0 -0
- /package/dist/{chunk-MGY23P25.js.map → chunk-ECGWCDC3.js.map} +0 -0
- /package/dist/{chunk-V3ZGBTES.js.map → chunk-EP6FL2L3.js.map} +0 -0
- /package/dist/{chunk-4J36XOH2.js.map → chunk-HIFEVMKP.js.map} +0 -0
- /package/dist/{chunk-HVOYAQHI.js.map → chunk-HLSQCUMS.js.map} +0 -0
- /package/dist/{chunk-JIW2JK7J.js.map → chunk-HYDNZQOV.js.map} +0 -0
- /package/dist/{chunk-VL5TI4XT.js.map → chunk-IFX5XLPZ.js.map} +0 -0
- /package/dist/{chunk-FXTOBTW4.js.map → chunk-IORVZBRC.js.map} +0 -0
- /package/dist/{chunk-UVBIRNQ4.js.map → chunk-J7MCWMDD.js.map} +0 -0
- /package/dist/{chunk-OIBZ7VUR.js.map → chunk-KXT6ACFL.js.map} +0 -0
- /package/dist/{chunk-7DRY6YCN.js.map → chunk-M4TBX2FU.js.map} +0 -0
- /package/dist/{chunk-JAZLNJM3.js.map → chunk-MGZWMJMP.js.map} +0 -0
- /package/dist/{chunk-D4TLSPX5.js.map → chunk-MKPKDACH.js.map} +0 -0
- /package/dist/{chunk-M7KQPXCS.js.map → chunk-N4IPXHFM.js.map} +0 -0
- /package/dist/{chunk-S5VSWHJY.js.map → chunk-NAF6LRSS.js.map} +0 -0
- /package/dist/{chunk-X6PTF3PD.js.map → chunk-NLBQ7CZC.js.map} +0 -0
- /package/dist/{chunk-TV2NNJVO.js.map → chunk-NNFWLL7F.js.map} +0 -0
- /package/dist/{chunk-KO264IE2.js.map → chunk-NOTLTHHZ.js.map} +0 -0
- /package/dist/{chunk-5MDNW5H7.js.map → chunk-NUID2T57.js.map} +0 -0
- /package/dist/{chunk-HNTEGDI2.js.map → chunk-OELREIVJ.js.map} +0 -0
- /package/dist/{chunk-HFQAVCD2.js.map → chunk-OWUINMZP.js.map} +0 -0
- /package/dist/{chunk-GRE4RCPB.js.map → chunk-OXKAGVWK.js.map} +0 -0
- /package/dist/{chunk-ITTXYDGV.js.map → chunk-PNEB74RP.js.map} +0 -0
- /package/dist/{chunk-JNMD7SWN.js.map → chunk-PZUCONZ4.js.map} +0 -0
- /package/dist/{chunk-2PDHYTZ2.js.map → chunk-RGRCYSYE.js.map} +0 -0
- /package/dist/{chunk-2MTSUYN6.js.map → chunk-RVADUHPA.js.map} +0 -0
- /package/dist/{chunk-K5HZE7M6.js.map → chunk-RYVRMH6C.js.map} +0 -0
- /package/dist/{chunk-GECXYMDU.js.map → chunk-SPQM2TCX.js.map} +0 -0
- /package/dist/{chunk-VHLCM6IM.js.map → chunk-T2KDFAAY.js.map} +0 -0
- /package/dist/{chunk-CJG77FUT.js.map → chunk-TVCIAQTC.js.map} +0 -0
- /package/dist/{chunk-5QOEBELF.js.map → chunk-UNKCOOE4.js.map} +0 -0
- /package/dist/{chunk-SQPCNBJC.js.map → chunk-VB6KFDBL.js.map} +0 -0
- /package/dist/{chunk-D5ABWBC6.js.map → chunk-VFB3RR5I.js.map} +0 -0
- /package/dist/{chunk-DPRCPBRB.js.map → chunk-VN535FEZ.js.map} +0 -0
- /package/dist/{chunk-WWXX3PU7.js.map → chunk-VRW22LTU.js.map} +0 -0
- /package/dist/{chunk-NI3CJNG3.js.map → chunk-W5YNJOSB.js.map} +0 -0
- /package/dist/{chunk-S42DBWAF.js.map → chunk-WQVZXTW3.js.map} +0 -0
- /package/dist/{chunk-TRBEYNRN.js.map → chunk-WRRTZ2AL.js.map} +0 -0
- /package/dist/{chunk-ZEJRVVLJ.js.map → chunk-X3PUZFYX.js.map} +0 -0
- /package/dist/{chunk-JVHQ5EG3.js.map → chunk-XRN6752K.js.map} +0 -0
- /package/dist/{chunk-YHCH57B7.js.map → chunk-YUJBCOLO.js.map} +0 -0
- /package/dist/{chunk-DNVTXLTP.js.map → chunk-Z7J6NJY2.js.map} +0 -0
- /package/dist/{chunk-U33Q35CB.js.map → chunk-ZO34QFKD.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as y,b as d,c as p,d as R}from"./chunk-AYC6DTFV.js";import{a as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as y,b as d,c as p,d as R}from"./chunk-AYC6DTFV.js";import{a as w}from"./chunk-H5QXOIKS.js";import{a as _,b as i}from"./chunk-VIGKOVHP.js";import{a as m}from"./chunk-P37U34EQ.js";import{ChevronDown as A,Globe as N}from"lucide-react";import{useState as h}from"react";import{Fragment as C,jsx as e,jsxs as l}from"react/jsx-runtime";var v=m(s=>{if(s.length<2)return{currency:null,costsPerCountry:[],employeesCost:null};let o=s[0]?.employer_currency_costs.currency,c=s.reduce((r,t)=>{let a=t.country.name;return r[a]={country:t.country,monthlyTotal:(r[a]?.monthlyTotal||0)+t.employer_currency_costs.monthly_total,annualTotal:(r[a]?.annualTotal||0)+t.employer_currency_costs.annual_total},r},{}),n=Object.values(c).map(({country:r,monthlyTotal:t,annualTotal:a})=>({country:r,monthlyCost:i(t,o.code),annualCost:i(a,o.code)})),u={monthlyTotal:i(s.reduce((r,t)=>r+t.employer_currency_costs.monthly_total,0),o.code),annualTotal:i(s.reduce((r,t)=>r+t.employer_currency_costs.annual_total,0),o.code)};return{currency:o,costsPerCountry:n,employeesCost:u}},"useSummaryResults"),f=m(({currency:s,title:o})=>e("div",{className:"RemoteFlows__SummaryResults__Header flex items-center justify-between w-full",children:l("div",{className:"RemoteFlows__SummaryHeader__Container flex flex-row items-center gap-6",children:[e("div",{className:"RemoteFlows__SummaryHeader__IconContainer flex h-12 w-12 items-center justify-center rounded-lg bg-[#F4F4F5]",children:e(N,{className:"RemoteFlows__SummaryHeader__Icon h-6 w-6 text-[#000000]"})}),l("div",{className:"RemoteFlows__SummaryHeader__Content space-y-1",children:[e("h2",{className:"RemoteFlows__SummaryHeader__Title text-lg font-medium leading-none text-[#181818]",children:o}),l("p",{className:"RemoteFlows__SummaryHeader__Currency text-xs text-[#71717A]",children:["Employer billing currency: ",s.code]})]})]})}),"SummaryHeader"),g=m(({label:s,columns:o,rows:c,defaultValue:n="accordion",className:u})=>{let r=o.length===1?"grid-cols-2":"grid-cols-3";return e(y,{collapsible:!0,defaultValue:n,className:_("RemoteFlows__SummaryResults__MultiColumnAccordion w-full",u),children:l(d,{value:n,className:"RemoteFlows__SummaryResults__AccordionItem border-none",children:[e(p,{className:"RemoteFlows__SummaryResults__AccordionTrigger hover:no-underline px-0 py-3 [&>svg]:hidden group",children:l("div",{className:_("RemoteFlows__SummaryResults__AccordionHeader grid items-center w-full",r),children:[l("div",{className:"RemoteFlows__SummaryResults__AccordionHeader__LabelContainer flex items-center gap-2",children:[s,e(A,{className:"RemoteFlows__SummaryResults__ChevronDown h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:o[0]}):o.map((t,a)=>e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:t},a))]})}),e(R,{className:"RemoteFlows__SummaryResults__AccordionContent px-0 pb-4",children:e("div",{className:"RemoteFlows__SummaryResults__AccordionRows space-y-3",children:c.map((t,a)=>l("div",{className:_("RemoteFlows__SummaryResults__AccordionRow grid items-center",r),children:[e("div",{className:"flex items-center gap-2",children:t.label}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:t.values[0]}):t.values.map((F,x)=>e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:F},x))]},a))})})]})})},"MultiColumnAccordion"),S=m(({employeesCost:s})=>e(g,{label:e("span",{className:"RemoteFlows__CostForAllEmployees__Label text-sm font-medium text-[#0F172A]",children:"Cost for all employees"}),columns:["Total cost"],rows:[{label:l(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__MonthlyLabel text-sm text-[#09090B]",children:"Monthly cost"})]}),values:[s.monthlyTotal]},{label:l(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__AnnualLabel text-sm text-[#09090B]",children:"Annual cost"})]}),values:[s.annualTotal]}],defaultValue:"cost-breakdown"}),"CostForAllEmployees"),b=m(({costsPerCountry:s})=>e(g,{label:e("span",{className:"RemoteFlows__CostsPerCountry__Label text-sm font-medium text-[#0F172A]",children:"Cost per country"}),columns:["Monthly cost","Annual cost"],rows:s.map(o=>({label:l(C,{children:[e("span",{className:"RemoteFlows__CostsPerCountry__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostsPerCountry__CountryName text-sm text-[#09090B]",children:o.country.name})]}),values:[o.monthlyCost,o.annualCost]})),defaultValue:"country-breakdown"}),"CostsPerCountry"),k=m(({estimations:s})=>{let{currency:o,costsPerCountry:c,employeesCost:n}=v(s),[u,r]=h("summary");return!o||c.length===0||Object.keys(n).length===0?null:e(w,{className:"RemoteFlows__SummaryResults__Card p-10",children:e(y,{collapsible:!0,defaultValue:u,onValueChange:t=>r(t),className:"RemoteFlows__SummaryResults__Accordion w-full",children:l(d,{value:"summary",className:"RemoteFlows__SummaryResults__AccordionItem border-border",children:[e("div",{className:_("RemoteFlows__SummaryResults__AccordionTriggerContainer",{RemoteFlows__Separator:!!u}),children:e(p,{iconClassName:"size-6",className:"RemoteFlows__SummaryResults__MainAccordionTrigger hover:no-underline px-0 py-4",children:e(f,{currency:o,title:"Summary Overview"})})}),l(R,{className:"RemoteFlows__SummaryResults__MainAccordionContent px-0 pb-4 mt-6",children:[e("div",{className:"RemoteFlows__Separator",children:e(S,{employeesCost:n})}),e("div",{className:"RemoteFlows__SummaryResults__CostsPerCountryContainer mt-6",children:e(b,{costsPerCountry:c})})]})]})})})},"SummaryResults");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BNQFPYNQ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as p}from"./chunk-NAF6LRSS.js";import{C as c,I as m,M as C,R as d,m as l,v as u}from"./chunk-WQ4H5V7U.js";import{d as o}from"./chunk-KQPDXXG3.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as a,useQuery as r}from"@tanstack/react-query";var h=t(({includePremiumBenefits:e})=>{let{client:i}=o();return r({queryKey:["cost-calculator-countries",e],queryFn:t(()=>c({client:i,query:{include_premium_benefits:e}}),"queryFn"),select:t(s=>s.data?.data.filter(n=>n.availability==="active").map(n=>({value:n.region_slug,label:n.name,childRegions:n.child_regions,hasAdditionalFields:n.has_additional_fields,regionSlug:n.region_slug,currency:n.currency.code})),"select")})},"useCostCalculatorCountries"),q=t(()=>{let{client:e}=o();return r({queryKey:["company-currencies"],queryFn:t(()=>d({client:e}),"queryFn"),select:t(i=>i.data?.data?.company_currencies.map(s=>({value:s.slug,label:s.code})),"select")})},"useCompanyCurrencies"),x=t(()=>{let{client:e}=o();return a({mutationFn:t(i=>l({client:e,body:i}),"mutationFn")})},"useCostCalculatorEstimation"),P=t(()=>{let{client:e}=o();return a({mutationFn:t(i=>u({client:e,body:i}),"mutationFn")})},"useCostCalculatorEstimationPdf"),v=t(()=>{let{client:e}=o();return a({mutationFn:t(i=>C({client:e,body:i}),"mutationFn")})},"useCostCalculatorEstimationCsv"),S=t((e,{includePremiumBenefits:i,options:s})=>{let{client:n}=o();return r({queryKey:["cost-calculator-region-fields",e,i],queryFn:t(()=>m({client:n,path:{slug:e},query:{include_premium_benefits:i}}),"queryFn"),enabled:!!e,select:t(({data:f})=>{let y=f?.data?.schema||{};return p(y,void 0,s)},"select")})},"useRegionFields");export{h as a,q as b,x as c,P as d,v as e,S as f};
|
|
2
|
+
//# sourceMappingURL=chunk-CHHHYLCB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
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-DXIJUMLU.js";import{j as c,k as i,l as n,m as _,n as F}from"./chunk-CWAFRJAQ.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-CKVI2UDU.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-YUJBCOLO.js";import{a as e}from"./chunk-VIGKOVHP.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-CS5TJWQM.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as le,e as ct}from"./chunk-VIGKOVHP.js";import{a}from"./chunk-P37U34EQ.js";import v from"react";var Ve=a(e=>e.type==="checkbox","isCheckBoxInput"),fe=a(e=>e instanceof Date,"isDateObject"),K=a(e=>e==null,"isNullOrUndefined"),Ft=a(e=>typeof e=="object","isObjectType"),P=a(e=>!K(e)&&!Array.isArray(e)&&Ft(e)&&!fe(e),"isObject"),vt=a(e=>P(e)&&e.target?Ve(e.target)?e.target.checked:e.target.value:e,"getEventValue"),Jt=a(e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,"getNodeParentName"),bt=a((e,r)=>e.has(Jt(r)),"isNameInFieldArray"),Gt=a(e=>{let r=e.constructor&&e.constructor.prototype;return P(r)&&r.hasOwnProperty("isPrototypeOf")},"isPlainObject"),Ge=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function M(e){let r,t=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(e instanceof Set)r=new Set(e);else if(!(Ge&&(e instanceof Blob||s))&&(t||P(e)))if(r=t?[]:{},!t&&!Gt(e))r=e;else for(let o in e)e.hasOwnProperty(o)&&(r[o]=M(e[o]));else return e;return r}a(M,"cloneObject");var xe=a(e=>Array.isArray(e)?e.filter(Boolean):[],"compact"),R=a(e=>e===void 0,"isUndefined"),d=a((e,r,t)=>{if(!r||!P(e))return t;let s=xe(r.split(/[,[\].]+?/)).reduce((o,l)=>K(o)?o:o[l],e);return R(s)||s===e?R(e[r])?t:e[r]:s},"get"),Y=a(e=>typeof e=="boolean","isBoolean"),Qe=a(e=>/^\w*$/.test(e),"isKey"),pt=a(e=>xe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),"stringToPath"),D=a((e,r,t)=>{let s=-1,o=Qe(r)?[r]:pt(r),l=o.length,f=l-1;for(;++s<l;){let g=o[s],p=t;if(s!==f){let S=e[g];p=P(S)||Array.isArray(S)?S:isNaN(+o[s+1])?{}:[]}if(g==="__proto__"||g==="constructor"||g==="prototype")return;e[g]=p,e=e[g]}return e},"set"),Se={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},X={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ae={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Vt=v.createContext(null),ge=a(()=>v.useContext(Vt),"useFormContext"),xt=a(e=>{let{children:r,...t}=e;return v.createElement(Vt.Provider,{value:t},r)},"FormProvider"),At=a((e,r,t,s=!0)=>{let o={defaultValues:r._defaultValues};for(let l in e)Object.defineProperty(o,l,{get:a(()=>{let f=l;return r._proxyFormState[f]!==X.all&&(r._proxyFormState[f]=!s||X.all),t&&(t[f]=!0),e[f]},"get")});return o},"getProxyFormState"),z=a(e=>P(e)&&!Object.keys(e).length,"isEmptyObject"),St=a((e,r,t,s)=>{t(e);let{name:o,...l}=e;return z(l)||Object.keys(l).length>=Object.keys(r).length||Object.keys(l).find(f=>r[f]===(!s||X.all))},"shouldRenderFormState"),J=a(e=>Array.isArray(e)?e:[e],"convertToArrayPayload"),wt=a((e,r,t)=>!e||!r||e===r||J(e).some(s=>s&&(t?s===r:s.startsWith(r)||r.startsWith(s))),"shouldSubscribeByName");function De(e){let r=v.useRef(e);r.current=e,v.useEffect(()=>{let t=!e.disabled&&r.current.subject&&r.current.subject.subscribe({next:r.current.next});return()=>{t&&t.unsubscribe()}},[e.disabled])}a(De,"useSubscribe");function Ye(e){let r=ge(),{control:t=r.control,disabled:s,name:o,exact:l}=e||{},[f,g]=v.useState(t._formState),p=v.useRef(!0),S=v.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),w=v.useRef(o);return w.current=o,De({disabled:s,next:a(b=>p.current&&wt(w.current,b.name,l)&&St(b,S.current,t._updateFormState)&&g({...t._formState,...b}),"next"),subject:t._subjects.state}),v.useEffect(()=>(p.current=!0,S.current.isValid&&t._updateValid(!0),()=>{p.current=!1}),[t]),v.useMemo(()=>At(f,t,S.current,!1),[f,t])}a(Ye,"useFormState");var ie=a(e=>typeof e=="string","isString"),Ct=a((e,r,t,s,o)=>ie(e)?(s&&r.watch.add(e),d(t,e,o)):Array.isArray(e)?e.map(l=>(s&&r.watch.add(l),d(t,l))):(s&&(r.watchAll=!0),t),"generateWatchOutput");function Qt(e){let r=ge(),{control:t=r.control,name:s,defaultValue:o,disabled:l,exact:f}=e||{},g=v.useRef(s);g.current=s,De({disabled:l,subject:t._subjects.values,next:a(w=>{wt(g.current,w.name,f)&&S(M(Ct(g.current,t._names,w.values||t._formValues,!1,o)))},"next")});let[p,S]=v.useState(t._getWatch(s,o));return v.useEffect(()=>t._removeUnmounted()),p}a(Qt,"useWatch");function Yt(e){let r=ge(),{name:t,disabled:s,control:o=r.control,shouldUnregister:l}=e,f=bt(o._names.array,t),g=Qt({control:o,name:t,defaultValue:d(o._formValues,t,d(o._defaultValues,t,e.defaultValue)),exact:!0}),p=Ye({control:o,name:t,exact:!0}),S=v.useRef(o.register(t,{...e.rules,value:g,...Y(e.disabled)?{disabled:e.disabled}:{}})),w=v.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:a(()=>!!d(p.errors,t),"get")},isDirty:{enumerable:!0,get:a(()=>!!d(p.dirtyFields,t),"get")},isTouched:{enumerable:!0,get:a(()=>!!d(p.touchedFields,t),"get")},isValidating:{enumerable:!0,get:a(()=>!!d(p.validatingFields,t),"get")},error:{enumerable:!0,get:a(()=>d(p.errors,t),"get")}}),[p,t]),b=v.useMemo(()=>({name:t,value:g,...Y(s)||p.disabled?{disabled:p.disabled||s}:{},onChange:a(L=>S.current.onChange({target:{value:vt(L),name:t},type:Se.CHANGE}),"onChange"),onBlur:a(()=>S.current.onBlur({target:{value:d(o._formValues,t),name:t},type:Se.BLUR}),"onBlur"),ref:a(L=>{let k=d(o._fields,t);k&&L&&(k._f.ref={focus:a(()=>L.focus(),"focus"),select:a(()=>L.select(),"select"),setCustomValidity:a(U=>L.setCustomValidity(U),"setCustomValidity"),reportValidity:a(()=>L.reportValidity(),"reportValidity")})},"ref")}),[t,o._formValues,s,p.disabled,g,o._fields]);return v.useEffect(()=>{let L=o._options.shouldUnregister||l,k=a((U,H)=>{let q=d(o._fields,U);q&&q._f&&(q._f.mount=H)},"updateMounted");if(k(t,!0),L){let U=M(d(o._options.defaultValues,t));D(o._defaultValues,t,U),R(d(o._formValues,t))&&D(o._formValues,t,U)}return!f&&o.register(t),()=>{(f?L&&!o._state.action:L)?o.unregister(t):k(t,!1)}},[t,o,f,l]),v.useEffect(()=>{o._updateDisabledField({disabled:s,fields:o._fields,name:t})},[s,t,o]),v.useMemo(()=>({field:b,formState:p,fieldState:w}),[b,p,w])}a(Yt,"useController");var Et=a(e=>e.render(Yt(e)),"Controller");var Xt=a((e,r,t,s,o)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[s]:o||!0}}:{},"appendErrors"),ue=a(()=>{let e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{let t=(Math.random()*16+e)%16|0;return(r=="x"?t:t&3|8).toString(16)})},"generateId"),Le=a((e,r,t={})=>t.shouldFocus||R(t.shouldFocus)?t.focusName||`${e}.${R(t.focusIndex)?r:t.focusIndex}.`:"","getFocusFieldName"),pe=a(e=>({isOnSubmit:!e||e===X.onSubmit,isOnBlur:e===X.onBlur,isOnChange:e===X.onChange,isOnAll:e===X.all,isOnTouch:e===X.onTouched}),"getValidationModes"),ze=a((e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length)))),"isWatched"),me=a((e,r,t,s)=>{for(let o of t||Object.keys(e)){let l=d(e,o);if(l){let{_f:f,...g}=l;if(f){if(f.refs&&f.refs[0]&&r(f.refs[0],o)&&!s)return!0;if(f.ref&&r(f.ref,f.name)&&!s)return!0;if(me(g,r))break}else if(P(g)&&me(g,r))break}}},"iterateFieldsByAction"),Dt=a((e,r,t)=>{let s=J(d(e,t));return D(s,"root",r[t]),D(e,t,s),e},"updateFieldArrayRootError"),Xe=a(e=>e.type==="file","isFileInput"),se=a(e=>typeof e=="function","isFunction"),we=a(e=>{if(!Ge)return!1;let r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},"isHTMLElement"),Ae=a(e=>ie(e),"isMessage"),Ze=a(e=>e.type==="radio","isRadioInput"),Ce=a(e=>e instanceof RegExp,"isRegex"),dt={value:!1,isValid:!1},ft={value:!0,isValid:!0},kt=a(e=>{if(Array.isArray(e)){if(e.length>1){let r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!R(e[0].attributes.value)?R(e[0].value)||e[0].value===""?ft:{value:e[0].value,isValid:!0}:ft:dt}return dt},"getCheckboxValue"),yt={isValid:!1,value:null},Rt=a(e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,yt):yt,"getRadioValue");function mt(e,r,t="validate"){if(Ae(e)||Array.isArray(e)&&e.every(Ae)||Y(e)&&!e)return{type:t,message:Ae(e)?e:"",ref:r}}a(mt,"getValidateError");var ye=a(e=>P(e)&&!Ce(e)?e:{value:e,message:""},"getValueAndMessage"),Ke=a(async(e,r,t,s,o,l)=>{let{ref:f,refs:g,required:p,maxLength:S,minLength:w,min:b,max:L,pattern:k,validate:U,name:H,valueAsNumber:q,mount:re}=e._f,C=d(t,H);if(!re||r.has(H))return{};let Z=g?g[0]:f,ee=a(A=>{o&&Z.reportValidity&&(Z.setCustomValidity(Y(A)?"":A||""),Z.reportValidity())},"setCustomValidity"),I={},h=Ze(f),F=Ve(f),V=h||F,T=(q||Xe(f))&&R(f.value)&&R(C)||we(f)&&f.value===""||C===""||Array.isArray(C)&&!C.length,B=Xt.bind(null,H,s,I),de=a((A,E,O,W=ae.maxLength,te=ae.minLength)=>{let Q=A?E:O;I[H]={type:A?W:te,message:Q,ref:f,...B(A?W:te,Q)}},"getMinMaxMessage");if(l?!Array.isArray(C)||!C.length:p&&(!V&&(T||K(C))||Y(C)&&!C||F&&!kt(g).isValid||h&&!Rt(g).isValid)){let{value:A,message:E}=Ae(p)?{value:!!p,message:p}:ye(p);if(A&&(I[H]={type:ae.required,message:E,ref:Z,...B(ae.required,E)},!s))return ee(E),I}if(!T&&(!K(b)||!K(L))){let A,E,O=ye(L),W=ye(b);if(!K(C)&&!isNaN(C)){let te=f.valueAsNumber||C&&+C;K(O.value)||(A=te>O.value),K(W.value)||(E=te<W.value)}else{let te=f.valueAsDate||new Date(C),Q=a(Fe=>new Date(new Date().toDateString()+" "+Fe),"convertTimeToDate"),_e=f.type=="time",he=f.type=="week";ie(O.value)&&C&&(A=_e?Q(C)>Q(O.value):he?C>O.value:te>new Date(O.value)),ie(W.value)&&C&&(E=_e?Q(C)<Q(W.value):he?C<W.value:te<new Date(W.value))}if((A||E)&&(de(!!A,O.message,W.message,ae.max,ae.min),!s))return ee(I[H].message),I}if((S||w)&&!T&&(ie(C)||l&&Array.isArray(C))){let A=ye(S),E=ye(w),O=!K(A.value)&&C.length>+A.value,W=!K(E.value)&&C.length<+E.value;if((O||W)&&(de(O,A.message,E.message),!s))return ee(I[H].message),I}if(k&&!T&&ie(C)){let{value:A,message:E}=ye(k);if(Ce(A)&&!C.match(A)&&(I[H]={type:ae.pattern,message:E,ref:f,...B(ae.pattern,E)},!s))return ee(E),I}if(U){if(se(U)){let A=await U(C,t),E=mt(A,Z);if(E&&(I[H]={...E,...B(ae.validate,E.message)},!s))return ee(E.message),I}else if(P(U)){let A={};for(let E in U){if(!z(A)&&!s)break;let O=mt(await U[E](C,t),Z,E);O&&(A={...O,...B(E,O.message)},ee(O.message),s&&(I[H]=A))}if(!z(A)&&(I[H]={ref:Z,...A},!s))return I}}return ee(!0),I},"validateField"),Ne=a((e,r)=>[...e,...J(r)],"appendAt"),Oe=a(e=>Array.isArray(e)?e.map(()=>{}):void 0,"fillEmptyArray");function Me(e,r,t){return[...e.slice(0,r),...J(t),...e.slice(r)]}a(Me,"insert");var Ue=a((e,r,t)=>Array.isArray(e)?(R(e[t])&&(e[t]=void 0),e.splice(t,0,e.splice(r,1)[0]),e):[],"moveArrayAt"),Be=a((e,r)=>[...J(r),...J(e)],"prependAt");function Zt(e,r){let t=0,s=[...e];for(let o of r)s.splice(o-t,1),t++;return xe(s).length?s:[]}a(Zt,"removeAtIndexes");var $e=a((e,r)=>R(r)?[]:Zt(e,J(r).sort((t,s)=>t-s)),"removeArrayAt"),je=a((e,r,t)=>{[e[r],e[t]]=[e[t],e[r]]},"swapArrayAt");function er(e,r){let t=r.slice(0,-1).length,s=0;for(;s<t;)e=R(e)?s++:e[r[s++]];return e}a(er,"baseGet");function tr(e){for(let r in e)if(e.hasOwnProperty(r)&&!R(e[r]))return!1;return!0}a(tr,"isEmptyArray");function N(e,r){let t=Array.isArray(r)?r:Qe(r)?[r]:pt(r),s=t.length===1?e:er(e,t),o=t.length-1,l=t[o];return s&&delete s[l],o!==0&&(P(s)&&z(s)||Array.isArray(s)&&tr(s))&&N(e,t.slice(0,-1)),e}a(N,"unset");var gt=a((e,r,t)=>(e[r]=t,e),"updateAt");function _r(e){let r=ge(),{control:t=r.control,name:s,keyName:o="id",shouldUnregister:l,rules:f}=e,[g,p]=v.useState(t._getFieldArray(s)),S=v.useRef(t._getFieldArray(s).map(ue)),w=v.useRef(g),b=v.useRef(s),L=v.useRef(!1);b.current=s,w.current=g,t._names.array.add(s),f&&t.register(s,f),De({next:a(({values:h,name:F})=>{if(F===b.current||!F){let V=d(h,b.current);Array.isArray(V)&&(p(V),S.current=V.map(ue))}},"next"),subject:t._subjects.array});let k=v.useCallback(h=>{L.current=!0,t._updateFieldArray(s,h)},[t,s]),U=a((h,F)=>{let V=J(M(h)),T=Ne(t._getFieldArray(s),V);t._names.focus=Le(s,T.length-1,F),S.current=Ne(S.current,V.map(ue)),k(T),p(T),t._updateFieldArray(s,T,Ne,{argA:Oe(h)})},"append"),H=a((h,F)=>{let V=J(M(h)),T=Be(t._getFieldArray(s),V);t._names.focus=Le(s,0,F),S.current=Be(S.current,V.map(ue)),k(T),p(T),t._updateFieldArray(s,T,Be,{argA:Oe(h)})},"prepend"),q=a(h=>{let F=$e(t._getFieldArray(s),h);S.current=$e(S.current,h),k(F),p(F),!Array.isArray(d(t._fields,s))&&D(t._fields,s,void 0),t._updateFieldArray(s,F,$e,{argA:h})},"remove"),re=a((h,F,V)=>{let T=J(M(F)),B=Me(t._getFieldArray(s),h,T);t._names.focus=Le(s,h,V),S.current=Me(S.current,h,T.map(ue)),k(B),p(B),t._updateFieldArray(s,B,Me,{argA:h,argB:Oe(F)})},"insert$1"),C=a((h,F)=>{let V=t._getFieldArray(s);je(V,h,F),je(S.current,h,F),k(V),p(V),t._updateFieldArray(s,V,je,{argA:h,argB:F},!1)},"swap"),Z=a((h,F)=>{let V=t._getFieldArray(s);Ue(V,h,F),Ue(S.current,h,F),k(V),p(V),t._updateFieldArray(s,V,Ue,{argA:h,argB:F},!1)},"move"),ee=a((h,F)=>{let V=M(F),T=gt(t._getFieldArray(s),h,V);S.current=[...T].map((B,de)=>!B||de===h?ue():S.current[de]),k(T),p([...T]),t._updateFieldArray(s,T,gt,{argA:h,argB:V},!0,!1)},"update"),I=a(h=>{let F=J(M(h));S.current=F.map(ue),k([...F]),p([...F]),t._updateFieldArray(s,[...F],V=>V,{},!0,!1)},"replace");return v.useEffect(()=>{if(t._state.action=!1,ze(s,t._names)&&t._subjects.state.next({...t._formState}),L.current&&(!pe(t._options.mode).isOnSubmit||t._formState.isSubmitted))if(t._options.resolver)t._executeSchema([s]).then(h=>{let F=d(h.errors,s),V=d(t._formState.errors,s);(V?!F&&V.type||F&&(V.type!==F.type||V.message!==F.message):F&&F.type)&&(F?D(t._formState.errors,s,F):N(t._formState.errors,s),t._subjects.state.next({errors:t._formState.errors}))});else{let h=d(t._fields,s);h&&h._f&&!(pe(t._options.reValidateMode).isOnSubmit&&pe(t._options.mode).isOnSubmit)&&Ke(h,t._names.disabled,t._formValues,t._options.criteriaMode===X.all,t._options.shouldUseNativeValidation,!0).then(F=>!z(F)&&t._subjects.state.next({errors:Dt(t._formState.errors,F,s)}))}t._subjects.values.next({name:s,values:{...t._formValues}}),t._names.focus&&me(t._fields,(h,F)=>{if(t._names.focus&&F.startsWith(t._names.focus)&&h.focus)return h.focus(),1}),t._names.focus="",t._updateValid(),L.current=!1},[g,s,t]),v.useEffect(()=>(!d(t._formValues,s)&&t._updateFieldArray(s),()=>{(t._options.shouldUnregister||l)&&t.unregister(s)}),[s,t,o,l]),{swap:v.useCallback(C,[k,s,t]),move:v.useCallback(Z,[k,s,t]),prepend:v.useCallback(H,[k,s,t]),append:v.useCallback(U,[k,s,t]),remove:v.useCallback(q,[k,s,t]),insert:v.useCallback(re,[k,s,t]),update:v.useCallback(ee,[k,s,t]),replace:v.useCallback(I,[k,s,t]),fields:v.useMemo(()=>g.map((h,F)=>({...h,[o]:S.current[F]||ue()})),[g,o])}}a(_r,"useFieldArray");var He=a(()=>{let e=[];return{get observers(){return e},next:a(o=>{for(let l of e)l.next&&l.next(o)},"next"),subscribe:a(o=>(e.push(o),{unsubscribe:a(()=>{e=e.filter(l=>l!==o)},"unsubscribe")}),"subscribe"),unsubscribe:a(()=>{e=[]},"unsubscribe")}},"createSubject"),Je=a(e=>K(e)||!Ft(e),"isPrimitive");function ce(e,r){if(Je(e)||Je(r))return e===r;if(fe(e)&&fe(r))return e.getTime()===r.getTime();let t=Object.keys(e),s=Object.keys(r);if(t.length!==s.length)return!1;for(let o of t){let l=e[o];if(!s.includes(o))return!1;if(o!=="ref"){let f=r[o];if(fe(l)&&fe(f)||P(l)&&P(f)||Array.isArray(l)&&Array.isArray(f)?!ce(l,f):l!==f)return!1}}return!0}a(ce,"deepEqual");var Tt=a(e=>e.type==="select-multiple","isMultipleSelect"),rr=a(e=>Ze(e)||Ve(e),"isRadioOrCheckbox"),We=a(e=>we(e)&&e.isConnected,"live"),It=a(e=>{for(let r in e)if(se(e[r]))return!0;return!1},"objectHasFunction");function Ee(e,r={}){let t=Array.isArray(e);if(P(e)||t)for(let s in e)Array.isArray(e[s])||P(e[s])&&!It(e[s])?(r[s]=Array.isArray(e[s])?[]:{},Ee(e[s],r[s])):K(e[s])||(r[s]=!0);return r}a(Ee,"markFieldsDirty");function Pt(e,r,t){let s=Array.isArray(e);if(P(e)||s)for(let o in e)Array.isArray(e[o])||P(e[o])&&!It(e[o])?R(r)||Je(t[o])?t[o]=Array.isArray(e[o])?Ee(e[o],[]):{...Ee(e[o])}:Pt(e[o],K(r)?{}:r[o],t[o]):t[o]=!ce(e[o],r[o]);return t}a(Pt,"getDirtyFieldsFromDefaultValues");var ve=a((e,r)=>Pt(e,r,Ee(r)),"getDirtyFields"),Lt=a((e,{valueAsNumber:r,valueAsDate:t,setValueAs:s})=>R(e)?e:r?e===""?NaN:e&&+e:t&&ie(e)?new Date(e):s?s(e):e,"getFieldValueAs");function qe(e){let r=e.ref;return Xe(r)?r.files:Ze(r)?Rt(e.refs).value:Tt(r)?[...r.selectedOptions].map(({value:t})=>t):Ve(r)?kt(e.refs).value:Lt(R(r.value)?e.ref.value:r.value,e)}a(qe,"getFieldValue");var sr=a((e,r,t,s)=>{let o={};for(let l of e){let f=d(r,l);f&&D(o,l,f._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:s}},"getResolverOptions"),be=a(e=>R(e)?e:Ce(e)?e.source:P(e)?Ce(e.value)?e.value.source:e.value:e,"getRuleValue"),_t="AsyncFunction",ir=a(e=>!!e&&!!e.validate&&!!(se(e.validate)&&e.validate.constructor.name===_t||P(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===_t)),"hasPromiseValidation"),ar=a(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),"hasValidation");function ht(e,r,t){let s=d(e,t);if(s||Qe(t))return{error:s,name:t};let o=t.split(".");for(;o.length;){let l=o.join("."),f=d(r,l),g=d(e,l);if(f&&!Array.isArray(f)&&t!==l)return{name:t};if(g&&g.type)return{name:l,error:g};o.pop()}return{name:t}}a(ht,"schemaErrorLookup");var nr=a((e,r,t,s,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(r||e):(t?s.isOnBlur:o.isOnBlur)?!e:(t?s.isOnChange:o.isOnChange)?e:!0,"skipValidation"),or=a((e,r)=>!xe(d(e,r)).length&&N(e,r),"unsetEmptyArray"),lr={mode:X.onSubmit,reValidateMode:X.onChange,shouldFocusError:!0};function ur(e={}){let r={...lr,...e},t={submitCount:0,isDirty:!1,isLoading:se(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},o=P(r.defaultValues)||P(r.values)?M(r.defaultValues||r.values)||{}:{},l=r.shouldUnregister?{}:M(o),f={action:!1,mount:!1,watch:!1},g={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},p,S=0,w={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},b={values:He(),array:He(),state:He()},L=pe(r.mode),k=pe(r.reValidateMode),U=r.criteriaMode===X.all,H=a(i=>n=>{clearTimeout(S),S=setTimeout(i,n)},"debounce"),q=a(async i=>{if(!r.disabled&&(w.isValid||i)){let n=r.resolver?z((await V()).errors):await B(s,!0);n!==t.isValid&&b.state.next({isValid:n})}},"_updateValid"),re=a((i,n)=>{!r.disabled&&(w.isValidating||w.validatingFields)&&((i||Array.from(g.mount)).forEach(u=>{u&&(n?D(t.validatingFields,u,n):N(t.validatingFields,u))}),b.state.next({validatingFields:t.validatingFields,isValidating:!z(t.validatingFields)}))},"_updateIsValidating"),C=a((i,n=[],u,m,y=!0,c=!0)=>{if(m&&u&&!r.disabled){if(f.action=!0,c&&Array.isArray(d(s,i))){let _=u(d(s,i),m.argA,m.argB);y&&D(s,i,_)}if(c&&Array.isArray(d(t.errors,i))){let _=u(d(t.errors,i),m.argA,m.argB);y&&D(t.errors,i,_),or(t.errors,i)}if(w.touchedFields&&c&&Array.isArray(d(t.touchedFields,i))){let _=u(d(t.touchedFields,i),m.argA,m.argB);y&&D(t.touchedFields,i,_)}w.dirtyFields&&(t.dirtyFields=ve(o,l)),b.state.next({name:i,isDirty:A(i,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else D(l,i,n)},"_updateFieldArray"),Z=a((i,n)=>{D(t.errors,i,n),b.state.next({errors:t.errors})},"updateErrors"),ee=a(i=>{t.errors=i,b.state.next({errors:t.errors,isValid:!1})},"_setErrors"),I=a((i,n,u,m)=>{let y=d(s,i);if(y){let c=d(l,i,R(u)?d(o,i):u);R(c)||m&&m.defaultChecked||n?D(l,i,n?c:qe(y._f)):W(i,c),f.mount&&q()}},"updateValidAndValue"),h=a((i,n,u,m,y)=>{let c=!1,_=!1,x={name:i};if(!r.disabled){let $=!!(d(s,i)&&d(s,i)._f&&d(s,i)._f.disabled);if(!u||m){w.isDirty&&(_=t.isDirty,t.isDirty=x.isDirty=A(),c=_!==x.isDirty);let j=$||ce(d(o,i),n);_=!!(!$&&d(t.dirtyFields,i)),j||$?N(t.dirtyFields,i):D(t.dirtyFields,i,!0),x.dirtyFields=t.dirtyFields,c=c||w.dirtyFields&&_!==!j}if(u){let j=d(t.touchedFields,i);j||(D(t.touchedFields,i,u),x.touchedFields=t.touchedFields,c=c||w.touchedFields&&j!==u)}c&&y&&b.state.next(x)}return c?x:{}},"updateTouchAndDirty"),F=a((i,n,u,m)=>{let y=d(t.errors,i),c=w.isValid&&Y(n)&&t.isValid!==n;if(r.delayError&&u?(p=H(()=>Z(i,u)),p(r.delayError)):(clearTimeout(S),p=null,u?D(t.errors,i,u):N(t.errors,i)),(u?!ce(y,u):y)||!z(m)||c){let _={...m,...c&&Y(n)?{isValid:n}:{},errors:t.errors,name:i};t={...t,..._},b.state.next(_)}},"shouldRenderByError"),V=a(async i=>{re(i,!0);let n=await r.resolver(l,r.context,sr(i||g.mount,s,r.criteriaMode,r.shouldUseNativeValidation));return re(i),n},"_executeSchema"),T=a(async i=>{let{errors:n}=await V(i);if(i)for(let u of i){let m=d(n,u);m?D(t.errors,u,m):N(t.errors,u)}else t.errors=n;return n},"executeSchemaAndUpdateState"),B=a(async(i,n,u={valid:!0})=>{for(let m in i){let y=i[m];if(y){let{_f:c,..._}=y;if(c){let x=g.array.has(c.name),$=y._f&&ir(y._f);$&&w.validatingFields&&re([m],!0);let j=await Ke(y,g.disabled,l,U,r.shouldUseNativeValidation&&!n,x);if($&&w.validatingFields&&re([m]),j[c.name]&&(u.valid=!1,n))break;!n&&(d(j,c.name)?x?Dt(t.errors,j,c.name):D(t.errors,c.name,j[c.name]):N(t.errors,c.name))}!z(_)&&await B(_,n,u)}}return u.valid},"executeBuiltInValidation"),de=a(()=>{for(let i of g.unMount){let n=d(s,i);n&&(n._f.refs?n._f.refs.every(u=>!We(u)):!We(n._f.ref))&&Re(i)}g.unMount=new Set},"_removeUnmounted"),A=a((i,n)=>!r.disabled&&(i&&n&&D(l,i,n),!ce(et(),o)),"_getDirty"),E=a((i,n,u)=>Ct(i,g,{...f.mount?l:R(n)?o:ie(i)?{[i]:n}:n},u,n),"_getWatch"),O=a(i=>xe(d(f.mount?l:o,i,r.shouldUnregister?d(o,i,[]):[])),"_getFieldArray"),W=a((i,n,u={})=>{let m=d(s,i),y=n;if(m){let c=m._f;c&&(!c.disabled&&D(l,i,Lt(n,c)),y=we(c.ref)&&K(n)?"":n,Tt(c.ref)?[...c.ref.options].forEach(_=>_.selected=y.includes(_.value)):c.refs?Ve(c.ref)?c.refs.length>1?c.refs.forEach(_=>(!_.defaultChecked||!_.disabled)&&(_.checked=Array.isArray(y)?!!y.find(x=>x===_.value):y===_.value)):c.refs[0]&&(c.refs[0].checked=!!y):c.refs.forEach(_=>_.checked=_.value===y):Xe(c.ref)?c.ref.value="":(c.ref.value=y,c.ref.type||b.values.next({name:i,values:{...l}})))}(u.shouldDirty||u.shouldTouch)&&h(i,y,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&Fe(i)},"setFieldValue"),te=a((i,n,u)=>{for(let m in n){let y=n[m],c=`${i}.${m}`,_=d(s,c);(g.array.has(i)||P(y)||_&&!_._f)&&!fe(y)?te(c,y,u):W(c,y,u)}},"setValues"),Q=a((i,n,u={})=>{let m=d(s,i),y=g.array.has(i),c=M(n);D(l,i,c),y?(b.array.next({name:i,values:{...l}}),(w.isDirty||w.dirtyFields)&&u.shouldDirty&&b.state.next({name:i,dirtyFields:ve(o,l),isDirty:A(i,c)})):m&&!m._f&&!K(c)?te(i,c,u):W(i,c,u),ze(i,g)&&b.state.next({...t}),b.values.next({name:f.mount?i:void 0,values:{...l}})},"setValue"),_e=a(async i=>{f.mount=!0;let n=i.target,u=n.name,m=!0,y=d(s,u),c=a(()=>n.type?qe(y._f):vt(i),"getCurrentFieldValue"),_=a(x=>{m=Number.isNaN(x)||fe(x)&&isNaN(x.getTime())||ce(x,d(l,u,x))},"_updateIsFieldValueUpdated");if(y){let x,$,j=c(),oe=i.type===Se.BLUR||i.type===Se.FOCUS_OUT,qt=!ar(y._f)&&!r.resolver&&!d(t.errors,u)&&!y._f.deps||nr(oe,d(t.touchedFields,u),t.isSubmitted,k,L),Ie=ze(u,g,oe);D(l,u,j),oe?(y._f.onBlur&&y._f.onBlur(i),p&&p(0)):y._f.onChange&&y._f.onChange(i);let Pe=h(u,j,oe,!1),zt=!z(Pe)||Ie;if(!oe&&b.values.next({name:u,type:i.type,values:{...l}}),qt)return w.isValid&&(r.mode==="onBlur"&&oe?q():oe||q()),zt&&b.state.next({name:u,...Ie?{}:Pe});if(!oe&&Ie&&b.state.next({...t}),r.resolver){let{errors:lt}=await V([u]);if(_(j),m){let Kt=ht(t.errors,s,u),ut=ht(lt,s,Kt.name||u);x=ut.error,u=ut.name,$=z(lt)}}else re([u],!0),x=(await Ke(y,g.disabled,l,U,r.shouldUseNativeValidation))[u],re([u]),_(j),m&&(x?$=!1:w.isValid&&($=await B(s,!0)));m&&(y._f.deps&&Fe(y._f.deps),F(u,$,x,Pe))}},"onChange"),he=a((i,n)=>{if(d(t.errors,n)&&i.focus)return i.focus(),1},"_focusInput"),Fe=a(async(i,n={})=>{let u,m,y=J(i);if(r.resolver){let c=await T(R(i)?i:y);u=z(c),m=i?!y.some(_=>d(c,_)):u}else i?(m=(await Promise.all(y.map(async c=>{let _=d(s,c);return await B(_&&_._f?{[c]:_}:_)}))).every(Boolean),!(!m&&!t.isValid)&&q()):m=u=await B(s);return b.state.next({...!ie(i)||w.isValid&&u!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:u}:{},errors:t.errors}),n.shouldFocus&&!m&&me(s,he,i?y:g.mount),m},"trigger"),et=a(i=>{let n={...f.mount?l:o};return R(i)?n:ie(i)?d(n,i):i.map(u=>d(n,u))},"getValues"),tt=a((i,n)=>({invalid:!!d((n||t).errors,i),isDirty:!!d((n||t).dirtyFields,i),error:d((n||t).errors,i),isValidating:!!d(t.validatingFields,i),isTouched:!!d((n||t).touchedFields,i)}),"getFieldState"),$t=a(i=>{i&&J(i).forEach(n=>N(t.errors,n)),b.state.next({errors:i?t.errors:{}})},"clearErrors"),rt=a((i,n,u)=>{let m=(d(s,i,{_f:{}})._f||{}).ref,y=d(t.errors,i)||{},{ref:c,message:_,type:x,...$}=y;D(t.errors,i,{...$,...n,ref:m}),b.state.next({name:i,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&m&&m.focus&&m.focus()},"setError"),jt=a((i,n)=>se(i)?b.values.subscribe({next:a(u=>i(E(void 0,n),u),"next")}):E(i,n,!0),"watch"),Re=a((i,n={})=>{for(let u of i?J(i):g.mount)g.mount.delete(u),g.array.delete(u),n.keepValue||(N(s,u),N(l,u)),!n.keepError&&N(t.errors,u),!n.keepDirty&&N(t.dirtyFields,u),!n.keepTouched&&N(t.touchedFields,u),!n.keepIsValidating&&N(t.validatingFields,u),!r.shouldUnregister&&!n.keepDefaultValue&&N(o,u);b.values.next({values:{...l}}),b.state.next({...t,...n.keepDirty?{isDirty:A()}:{}}),!n.keepIsValid&&q()},"unregister"),st=a(({disabled:i,name:n,field:u,fields:m})=>{(Y(i)&&f.mount||i||g.disabled.has(n))&&(i?g.disabled.add(n):g.disabled.delete(n),h(n,qe(u?u._f:d(m,n)._f),!1,!1,!0))},"_updateDisabledField"),Te=a((i,n={})=>{let u=d(s,i),m=Y(n.disabled)||Y(r.disabled);return D(s,i,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:i}},name:i,mount:!0,...n}}),g.mount.add(i),u?st({field:u,disabled:Y(n.disabled)?n.disabled:r.disabled,name:i}):I(i,!0,n.value),{...m?{disabled:n.disabled||r.disabled}:{},...r.progressive?{required:!!n.required,min:be(n.min),max:be(n.max),minLength:be(n.minLength),maxLength:be(n.maxLength),pattern:be(n.pattern)}:{},name:i,onChange:_e,onBlur:_e,ref:a(y=>{if(y){Te(i,n),u=d(s,i);let c=R(y.value)&&y.querySelectorAll&&y.querySelectorAll("input,select,textarea")[0]||y,_=rr(c),x=u._f.refs||[];if(_?x.find($=>$===c):c===u._f.ref)return;D(s,i,{_f:{...u._f,..._?{refs:[...x.filter(We),c,...Array.isArray(d(o,i))?[{}]:[]],ref:{type:c.type,name:i}}:{ref:c}}}),I(i,!1,void 0,c)}else u=d(s,i,{}),u._f&&(u._f.mount=!1),(r.shouldUnregister||n.shouldUnregister)&&!(bt(g.array,i)&&f.action)&&g.unMount.add(i)},"ref")}},"register"),it=a(()=>r.shouldFocusError&&me(s,he,g.mount),"_focusError"),Ht=a(i=>{Y(i)&&(b.state.next({disabled:i}),me(s,(n,u)=>{let m=d(s,u);m&&(n.disabled=m._f.disabled||i,Array.isArray(m._f.refs)&&m._f.refs.forEach(y=>{y.disabled=m._f.disabled||i}))},0,!1))},"_disableForm"),at=a((i,n)=>async u=>{let m;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let y=M(l);if(g.disabled.size)for(let c of g.disabled)D(y,c,void 0);if(b.state.next({isSubmitting:!0}),r.resolver){let{errors:c,values:_}=await V();t.errors=c,y=_}else await B(s);if(N(t.errors,"root"),z(t.errors)){b.state.next({errors:{}});try{await i(y,u)}catch(c){m=c}}else n&&await n({...t.errors},u),it(),setTimeout(it);if(b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:z(t.errors)&&!m,submitCount:t.submitCount+1,errors:t.errors}),m)throw m},"handleSubmit"),Wt=a((i,n={})=>{d(s,i)&&(R(n.defaultValue)?Q(i,M(d(o,i))):(Q(i,n.defaultValue),D(o,i,M(n.defaultValue))),n.keepTouched||N(t.touchedFields,i),n.keepDirty||(N(t.dirtyFields,i),t.isDirty=n.defaultValue?A(i,M(d(o,i))):A()),n.keepError||(N(t.errors,i),w.isValid&&q()),b.state.next({...t}))},"resetField"),nt=a((i,n={})=>{let u=i?M(i):o,m=M(u),y=z(i),c=y?o:m;if(n.keepDefaultValues||(o=u),!n.keepValues){if(n.keepDirtyValues){let _=new Set([...g.mount,...Object.keys(ve(o,l))]);for(let x of Array.from(_))d(t.dirtyFields,x)?D(c,x,d(l,x)):Q(x,d(c,x))}else{if(Ge&&R(i))for(let _ of g.mount){let x=d(s,_);if(x&&x._f){let $=Array.isArray(x._f.refs)?x._f.refs[0]:x._f.ref;if(we($)){let j=$.closest("form");if(j){j.reset();break}}}}s={}}l=r.shouldUnregister?n.keepDefaultValues?M(o):{}:M(c),b.array.next({values:{...c}}),b.values.next({values:{...c}})}g={mount:n.keepDirtyValues?g.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!w.isValid||!!n.keepIsValid||!!n.keepDirtyValues,f.watch=!!r.shouldUnregister,b.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:y?!1:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!ce(i,o)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:y?{}:n.keepDirtyValues?n.keepDefaultValues&&l?ve(o,l):t.dirtyFields:n.keepDefaultValues&&i?ve(o,i):n.keepDirty?t.dirtyFields:{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},"_reset"),ot=a((i,n)=>nt(se(i)?i(l):i,n),"reset");return{control:{register:Te,unregister:Re,getFieldState:tt,handleSubmit:at,setError:rt,_executeSchema:V,_getWatch:E,_getDirty:A,_updateValid:q,_removeUnmounted:de,_updateFieldArray:C,_updateDisabledField:st,_getFieldArray:O,_reset:nt,_resetDefaultValues:a(()=>se(r.defaultValues)&&r.defaultValues().then(i=>{ot(i,r.resetOptions),b.state.next({isLoading:!1})}),"_resetDefaultValues"),_updateFormState:a(i=>{t={...t,...i}},"_updateFormState"),_disableForm:Ht,_subjects:b,_proxyFormState:w,_setErrors:ee,get _fields(){return s},get _formValues(){return l},get _state(){return f},set _state(i){f=i},get _defaultValues(){return o},get _names(){return g},set _names(i){g=i},get _formState(){return t},set _formState(i){t=i},get _options(){return r},set _options(i){r={...r,...i}}},trigger:Fe,register:Te,handleSubmit:at,watch:jt,setValue:Q,getValues:et,reset:ot,resetField:Wt,clearErrors:$t,unregister:Re,setError:rt,setFocus:a((i,n={})=>{let u=d(s,i),m=u&&u._f;if(m){let y=m.refs?m.refs[0]:m.ref;y.focus&&(y.focus(),n.shouldSelect&&se(y.select)&&y.select())}},"setFocus"),getFieldState:tt}}a(ur,"createFormControl");function hr(e={}){let r=v.useRef(void 0),t=v.useRef(void 0),[s,o]=v.useState({isDirty:!1,isValidating:!1,isLoading:se(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:se(e.defaultValues)?void 0:e.defaultValues});r.current||(r.current={...ur(e),formState:s});let l=r.current.control;return l._options=e,De({subject:l._subjects.state,next:a(f=>{St(f,l._proxyFormState,l._updateFormState,!0)&&o({...l._formState})},"next")}),v.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),v.useEffect(()=>{if(l._proxyFormState.isDirty){let f=l._getDirty();f!==s.isDirty&&l._subjects.state.next({isDirty:f})}},[l,s.isDirty]),v.useEffect(()=>{e.values&&!ce(e.values,t.current)?(l._reset(e.values,l._options.resetOptions),t.current=e.values,o(f=>({...f}))):l._resetDefaultValues()},[e.values,l]),v.useEffect(()=>{e.errors&&l._setErrors(e.errors)},[e.errors,l]),v.useEffect(()=>{l._state.mount||(l._updateValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),v.useEffect(()=>{e.shouldUnregister&&l._subjects.values.next({values:l._getWatch()})},[e.shouldUnregister,l]),r.current.formState=At(s,l),r.current}a(hr,"useForm");import{jsx as cr}from"react/jsx-runtime";function Nt({className:e,...r}){return cr("label",{"data-slot":"label",className:le("flex items-center gap-2 text-sm leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",e),...r})}a(Nt,"Label");import*as G from"react";import{Fragment as Bt,jsx as ne,jsxs as Ot}from"react/jsx-runtime";var kr=xt,Mt=G.createContext({}),Rr=a(({...e})=>ne(Mt.Provider,{value:{name:e.name},children:ne(Et,{...e})}),"FormField"),ke=a(()=>{let e=G.useContext(Mt),r=G.useContext(Ut),{getFieldState:t}=ge(),s=Ye({name:e.name}),o=t(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:l}=r;return{id:l,name:e.name,formItemId:`${l}-form-item`,formDescriptionId:`${l}-form-item-description`,formMessageId:`${l}-form-item-message`,...o}},"useFormField"),Ut=G.createContext({});function Tr({className:e,...r}){let t=G.useId();return ne(Ut.Provider,{value:{id:t},children:ne("div",{"data-slot":"form-item",...r,className:le("grid gap-2",e)})})}a(Tr,"FormItem");function Ir({className:e,...r}){let{error:t,formItemId:s}=ke();return ne(Nt,{"data-slot":"form-label","data-error":!!t,className:le("text-base-color mb-1 data-[error=true]:text-destructive",e),htmlFor:s,...r})}a(Ir,"FormLabel");var dr=G.forwardRef(({children:e,...r},t)=>{let{error:s,formItemId:o,formDescriptionId:l,formMessageId:f}=ke(),g={"data-slot":"form-control",id:o,"aria-describedby":s?`${l} ${f}`:`${l}`,"aria-invalid":!!s,...r};return G.isValidElement(e)?G.cloneElement(e,{...e.props,...g,ref:t}):ne(Bt,{children:e})});dr.displayName="FormControl";function Pr({helpCenter:e,className:r,children:t,as:s,...o}){let{formDescriptionId:l}=ke(),f=s||"p";return typeof t=="string"?ne(Bt,{children:Ot(f,{"data-slot":"form-description",id:l,className:le("text-base-color text-xs",r),"data-sanitized":"true",...o,children:[ne("span",{dangerouslySetInnerHTML:{__html:ct(t)}})," ",e&&e]})}):Ot(f,{"data-slot":"form-description",id:l,"data-sanitized":"false",className:le("text-base-color text-xs",r),...o,children:[typeof t=="function"?t():t,e&&e]})}a(Pr,"FormDescription");function Lr({className:e,...r}){let{error:t,formMessageId:s}=ke(),o=t?String(t?.message??""):r.children;return o?ne("p",{"data-slot":"form-message",id:s,className:le("text-destructive text-sm",e),...r,children:o}):null}a(Lr,"FormMessage");export{d as a,D as b,ge as c,Xt as d,_r as e,hr as f,Nt as g,kr as h,Rr as i,Tr as j,Ir as k,dr as l,Pr as m,Lr as n};
|
|
2
|
+
//# sourceMappingURL=chunk-CWAFRJAQ.js.map
|