@remoteoss/remote-flows 1.2.0 → 1.2.1
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/chunk-23OYALRY.js +2 -0
- package/dist/chunk-23OYALRY.js.map +1 -0
- package/dist/{chunk-MUILMUKC.js → chunk-26JXMVXY.js} +2 -2
- package/dist/chunk-2VW77NBC.js +2 -0
- package/dist/chunk-2VW77NBC.js.map +1 -0
- package/dist/{chunk-5VPMZXGU.js → chunk-3N4O7TE2.js} +2 -2
- package/dist/{chunk-O6YXA5AM.js → chunk-4ZNCIMTR.js} +2 -2
- package/dist/{chunk-KDMBZNAE.js → chunk-5KPB3KN7.js} +2 -2
- package/dist/{chunk-BP4PHE44.js → chunk-5RM36L5X.js} +2 -2
- package/dist/{chunk-COKMRJQ7.js → chunk-7Q3N2EY2.js} +2 -2
- package/dist/{chunk-KG63T7OU.js → chunk-7WVNWNM2.js} +2 -2
- package/dist/chunk-A5BCZOOQ.js +2 -0
- package/dist/chunk-A5BCZOOQ.js.map +1 -0
- package/dist/{chunk-3SAV2OEE.js → chunk-BHYFPY64.js} +2 -2
- package/dist/chunk-BIQPVUM2.js +2 -0
- package/dist/{chunk-QIZEGFKJ.js.map → chunk-BIQPVUM2.js.map} +1 -1
- package/dist/{chunk-77EBKLW6.js → chunk-C74N2AWG.js} +2 -2
- package/dist/chunk-E5PHO3SS.js +2 -0
- package/dist/chunk-E5PHO3SS.js.map +1 -0
- package/dist/{chunk-T4KJKYPC.js → chunk-EDP4HELT.js} +2 -2
- package/dist/{chunk-RNULWNWR.js → chunk-FFT7BPGS.js} +2 -2
- package/dist/chunk-FLXY4CUE.js +2 -0
- package/dist/chunk-FLXY4CUE.js.map +1 -0
- package/dist/{chunk-NCWPOV3B.js → chunk-FMDAJQPU.js} +2 -2
- package/dist/{chunk-D3YUACHO.js → chunk-FXESMDKI.js} +2 -2
- package/dist/{chunk-ASSO5FYG.js → chunk-GMQ4GITD.js} +2 -2
- package/dist/chunk-H6YNMT4M.js +2 -0
- package/dist/chunk-H6YNMT4M.js.map +1 -0
- package/dist/{chunk-L23UIJDU.js → chunk-K5P2NRJ3.js} +2 -2
- package/dist/{chunk-VUY7ZZAD.js → chunk-KJZLQ77E.js} +2 -2
- package/dist/{chunk-XEUZL7O2.js → chunk-LE4O6V7D.js} +2 -2
- package/dist/chunk-LZGN6WCB.js +2 -0
- package/dist/chunk-LZGN6WCB.js.map +1 -0
- package/dist/{chunk-LD2UDBK4.js → chunk-N4232FEQ.js} +2 -2
- package/dist/{chunk-Z47XN6ZT.js → chunk-NMHISCDF.js} +2 -2
- package/dist/{chunk-M2EKZ2FC.js → chunk-NVTGX5FY.js} +2 -2
- package/dist/{chunk-ZSX2O4ZJ.js → chunk-RJO534HJ.js} +2 -2
- package/dist/{chunk-NVZHJOA3.js → chunk-RNM46ZUE.js} +2 -2
- package/dist/{chunk-TVPY6KPQ.js → chunk-S6CCPQSN.js} +2 -2
- package/dist/{chunk-WUZ5OZ42.js → chunk-S7INFMJB.js} +2 -2
- package/dist/{chunk-DS5MV4BA.js → chunk-SLD6QFPG.js} +2 -2
- package/dist/{chunk-PTHW7GI4.js → chunk-T2URGIP3.js} +2 -2
- package/dist/{chunk-F53TRJ4K.js → chunk-TYCDD66L.js} +2 -2
- package/dist/{chunk-UVA4PFNM.js → chunk-VFZXJTBY.js} +2 -2
- package/dist/{chunk-GT6DVQEB.js → chunk-W2SYJLOE.js} +2 -2
- package/dist/{chunk-7YY7DH4I.js → chunk-W3JY7GB5.js} +2 -2
- package/dist/{chunk-OL7SFTJV.js → chunk-WKHYYISW.js} +2 -2
- package/dist/{chunk-ALRODBM2.js → chunk-X5GMCAS7.js} +2 -2
- package/dist/{chunk-BGWVXKFX.js → chunk-XRFBLWLZ.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +2 -2
- package/dist/flows/ContractAmendment/hooks.d.ts +2 -2
- package/dist/flows/ContractAmendment/index.d.ts +2 -2
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/types.d.ts +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/context.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/hooks.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/types.d.ts +4 -4
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +2 -2
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +2 -2
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +1 -1
- package/dist/flows/CostCalculator/api.d.ts +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +2 -2
- package/dist/flows/CostCalculator/hooks.d.ts +2 -2
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +2 -2
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.d.ts +2 -2
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +3 -3
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +5 -5
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +3 -3
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +3 -3
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +3 -3
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +3 -3
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +2 -2
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +3 -3
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +2 -2
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +3 -3
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +3 -3
- package/dist/flows/Onboarding/hooks.d.ts +3 -3
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +3 -3
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +3 -3
- package/dist/flows/Onboarding/utils.d.ts +3 -3
- package/dist/flows/Onboarding/utils.js +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +3 -3
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +3 -3
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +3 -3
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +3 -3
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +3 -3
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +3 -3
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.d.ts +4 -4
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +4 -4
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +4 -4
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +4 -4
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/context.d.ts +3 -3
- package/dist/flows/Termination/hooks.d.ts +3 -3
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +4 -4
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.d.ts +3 -3
- package/dist/flows/Termination/types.d.ts +3 -3
- package/dist/flows/Termination/utils.d.ts +3 -3
- package/dist/flows/types.d.ts +4 -5
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/{mutations-9qiDR92y.d.ts → mutations-B7nzyRmB.d.ts} +1 -1
- package/dist/{remoteFlows-MePlSSWv.d.ts → remoteFlows-CnmojyGF.d.ts} +5 -3
- package/dist/{types-BTxMhXje.d.ts → types-CbCzUTok.d.ts} +3 -3
- package/dist/{types-VZNnRHGB.d.ts → types-D2tc0MbF.d.ts} +1 -1
- package/dist/{types-BFDVSvVP.d.ts → types-DGKjcWLj.d.ts} +3 -4
- package/package.json +1 -1
- package/dist/chunk-26DGUFCY.js +0 -2
- package/dist/chunk-26DGUFCY.js.map +0 -1
- package/dist/chunk-3JVRFY6F.js +0 -2
- package/dist/chunk-3JVRFY6F.js.map +0 -1
- package/dist/chunk-4P5BLP5U.js +0 -2
- package/dist/chunk-4P5BLP5U.js.map +0 -1
- package/dist/chunk-7FMR3EIX.js +0 -2
- package/dist/chunk-7FMR3EIX.js.map +0 -1
- package/dist/chunk-7WTIUK53.js +0 -2
- package/dist/chunk-7WTIUK53.js.map +0 -1
- package/dist/chunk-ELXVVBRD.js +0 -2
- package/dist/chunk-ELXVVBRD.js.map +0 -1
- package/dist/chunk-MKE27NUF.js +0 -2
- package/dist/chunk-MKE27NUF.js.map +0 -1
- package/dist/chunk-QIZEGFKJ.js +0 -2
- /package/dist/{chunk-MUILMUKC.js.map → chunk-26JXMVXY.js.map} +0 -0
- /package/dist/{chunk-5VPMZXGU.js.map → chunk-3N4O7TE2.js.map} +0 -0
- /package/dist/{chunk-O6YXA5AM.js.map → chunk-4ZNCIMTR.js.map} +0 -0
- /package/dist/{chunk-KDMBZNAE.js.map → chunk-5KPB3KN7.js.map} +0 -0
- /package/dist/{chunk-BP4PHE44.js.map → chunk-5RM36L5X.js.map} +0 -0
- /package/dist/{chunk-COKMRJQ7.js.map → chunk-7Q3N2EY2.js.map} +0 -0
- /package/dist/{chunk-KG63T7OU.js.map → chunk-7WVNWNM2.js.map} +0 -0
- /package/dist/{chunk-3SAV2OEE.js.map → chunk-BHYFPY64.js.map} +0 -0
- /package/dist/{chunk-77EBKLW6.js.map → chunk-C74N2AWG.js.map} +0 -0
- /package/dist/{chunk-T4KJKYPC.js.map → chunk-EDP4HELT.js.map} +0 -0
- /package/dist/{chunk-RNULWNWR.js.map → chunk-FFT7BPGS.js.map} +0 -0
- /package/dist/{chunk-NCWPOV3B.js.map → chunk-FMDAJQPU.js.map} +0 -0
- /package/dist/{chunk-D3YUACHO.js.map → chunk-FXESMDKI.js.map} +0 -0
- /package/dist/{chunk-ASSO5FYG.js.map → chunk-GMQ4GITD.js.map} +0 -0
- /package/dist/{chunk-L23UIJDU.js.map → chunk-K5P2NRJ3.js.map} +0 -0
- /package/dist/{chunk-VUY7ZZAD.js.map → chunk-KJZLQ77E.js.map} +0 -0
- /package/dist/{chunk-XEUZL7O2.js.map → chunk-LE4O6V7D.js.map} +0 -0
- /package/dist/{chunk-LD2UDBK4.js.map → chunk-N4232FEQ.js.map} +0 -0
- /package/dist/{chunk-Z47XN6ZT.js.map → chunk-NMHISCDF.js.map} +0 -0
- /package/dist/{chunk-M2EKZ2FC.js.map → chunk-NVTGX5FY.js.map} +0 -0
- /package/dist/{chunk-ZSX2O4ZJ.js.map → chunk-RJO534HJ.js.map} +0 -0
- /package/dist/{chunk-NVZHJOA3.js.map → chunk-RNM46ZUE.js.map} +0 -0
- /package/dist/{chunk-TVPY6KPQ.js.map → chunk-S6CCPQSN.js.map} +0 -0
- /package/dist/{chunk-WUZ5OZ42.js.map → chunk-S7INFMJB.js.map} +0 -0
- /package/dist/{chunk-DS5MV4BA.js.map → chunk-SLD6QFPG.js.map} +0 -0
- /package/dist/{chunk-PTHW7GI4.js.map → chunk-T2URGIP3.js.map} +0 -0
- /package/dist/{chunk-F53TRJ4K.js.map → chunk-TYCDD66L.js.map} +0 -0
- /package/dist/{chunk-UVA4PFNM.js.map → chunk-VFZXJTBY.js.map} +0 -0
- /package/dist/{chunk-GT6DVQEB.js.map → chunk-W2SYJLOE.js.map} +0 -0
- /package/dist/{chunk-7YY7DH4I.js.map → chunk-W3JY7GB5.js.map} +0 -0
- /package/dist/{chunk-OL7SFTJV.js.map → chunk-WKHYYISW.js.map} +0 -0
- /package/dist/{chunk-ALRODBM2.js.map → chunk-X5GMCAS7.js.map} +0 -0
- /package/dist/{chunk-BGWVXKFX.js.map → chunk-XRFBLWLZ.js.map} +0 -0
|
@@ -5,22 +5,22 @@ import '@tanstack/query-core';
|
|
|
5
5
|
import '@tanstack/react-query';
|
|
6
6
|
import '../../../ContractAmendment/types.js';
|
|
7
7
|
import '../../../types.js';
|
|
8
|
-
import '../../../../remoteFlows-
|
|
8
|
+
import '../../../../remoteFlows-CnmojyGF.js';
|
|
9
9
|
import 'yup';
|
|
10
10
|
import '../../../../types-Zg1n_9wh.js';
|
|
11
11
|
import 'react-hook-form';
|
|
12
12
|
import '@remoteoss/json-schema-form-old';
|
|
13
13
|
import '@remoteoss/remote-json-schema-form-kit';
|
|
14
14
|
import '../../api.js';
|
|
15
|
-
import '../../../../types-
|
|
15
|
+
import '../../../../types-DGKjcWLj.js';
|
|
16
16
|
import 'react/jsx-runtime';
|
|
17
17
|
import '../../../Onboarding/components/OnboardingBack.js';
|
|
18
18
|
import '../../../Onboarding/components/OnboardingInvite.js';
|
|
19
|
-
import '../../../../mutations-
|
|
19
|
+
import '../../../../mutations-B7nzyRmB.js';
|
|
20
20
|
import '../../../Onboarding/components/OnboardingSubmit.js';
|
|
21
21
|
import '../../../useStepState.js';
|
|
22
22
|
import '../../../Onboarding/components/SaveDraftButton.js';
|
|
23
|
-
import '../../../../types-
|
|
23
|
+
import '../../../../types-D2tc0MbF.js';
|
|
24
24
|
import '../../TerminationBack.js';
|
|
25
25
|
import '../../TerminationSubmit.js';
|
|
26
26
|
|
|
@@ -5,21 +5,21 @@ import '@tanstack/react-query';
|
|
|
5
5
|
import '@tanstack/query-core';
|
|
6
6
|
import '../../../ContractAmendment/types.js';
|
|
7
7
|
import '../../../types.js';
|
|
8
|
-
import '../../../../remoteFlows-
|
|
8
|
+
import '../../../../remoteFlows-CnmojyGF.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'yup';
|
|
11
11
|
import '../../../../types-Zg1n_9wh.js';
|
|
12
12
|
import 'react-hook-form';
|
|
13
13
|
import '@remoteoss/json-schema-form-old';
|
|
14
14
|
import '@remoteoss/remote-json-schema-form-kit';
|
|
15
|
-
import '../../../../types-
|
|
15
|
+
import '../../../../types-DGKjcWLj.js';
|
|
16
16
|
import 'react/jsx-runtime';
|
|
17
17
|
import '../../../Onboarding/components/OnboardingBack.js';
|
|
18
18
|
import '../../../Onboarding/components/OnboardingInvite.js';
|
|
19
|
-
import '../../../../mutations-
|
|
19
|
+
import '../../../../mutations-B7nzyRmB.js';
|
|
20
20
|
import '../../../Onboarding/components/OnboardingSubmit.js';
|
|
21
21
|
import '../../../useStepState.js';
|
|
22
22
|
import '../../../Onboarding/components/SaveDraftButton.js';
|
|
23
|
-
import '../../../../types-
|
|
23
|
+
import '../../../../types-D2tc0MbF.js';
|
|
24
24
|
import '../../TerminationBack.js';
|
|
25
25
|
import '../../TerminationSubmit.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../../chunk-
|
|
1
|
+
import{a}from"../../../../chunk-C74N2AWG.js";import"../../../../chunk-BVDT43OO.js";import"../../../../chunk-MXLQEDRJ.js";import"../../../../chunk-E5PHO3SS.js";import"../../../../chunk-NFUP6BFU.js";import"../../../../chunk-ZIN2OWTH.js";import"../../../../chunk-UOOUV52J.js";import"../../../../chunk-72OH7PSF.js";import"../../../../chunk-KQPDXXG3.js";import"../../../../chunk-LJGCFFAT.js";import"../../../../chunk-PMTKQME6.js";import"../../../../chunk-L3Z2G32A.js";import"../../../../chunk-P37U34EQ.js";export{a as TerminationDialogInfoContent};
|
|
2
2
|
//# sourceMappingURL=TerminationDialogInfoContent.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { E as Employment, D as TerminationDetailsParams, O as OffboardingResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, T as TooManyRequestsResponse, B as BadRequestResponse, a as UnauthorizedResponse, R as RequestError } from '../../types.gen-UyEyxhzQ.js';
|
|
3
|
-
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-
|
|
4
|
-
import '../../remoteFlows-
|
|
3
|
+
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-B7nzyRmB.js';
|
|
4
|
+
import '../../remoteFlows-CnmojyGF.js';
|
|
5
5
|
import * as _remoteoss_json_schema_form_old from '@remoteoss/json-schema-form-old';
|
|
6
6
|
import { Step } from '../useStepState.js';
|
|
7
|
-
import { u as useTermination, S as StepTerminationKeys, T as TerminationFormValues, E as EmployeeCommunicationFormValues, c as TerminationDetailsFormValues, P as PaidTimeOffFormValues } from '../../types-
|
|
7
|
+
import { u as useTermination, S as StepTerminationKeys, T as TerminationFormValues, E as EmployeeCommunicationFormValues, c as TerminationDetailsFormValues, P as PaidTimeOffFormValues } from '../../types-D2tc0MbF.js';
|
|
8
8
|
import 'yup';
|
|
9
9
|
import '../../types-Zg1n_9wh.js';
|
|
10
10
|
import 'react-hook-form';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import '../../mutations-
|
|
1
|
+
import '../../mutations-B7nzyRmB.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@remoteoss/json-schema-form-old';
|
|
4
4
|
import '../useStepState.js';
|
|
5
|
-
export { u as useTermination } from '../../types-
|
|
5
|
+
export { u as useTermination } from '../../types-D2tc0MbF.js';
|
|
6
6
|
import '../../types.gen-UyEyxhzQ.js';
|
|
7
|
-
import '../../remoteFlows-
|
|
7
|
+
import '../../remoteFlows-CnmojyGF.js';
|
|
8
8
|
import 'yup';
|
|
9
9
|
import '../../types-Zg1n_9wh.js';
|
|
10
10
|
import 'react-hook-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-K5P2NRJ3.js";import"../../chunk-NS4FRCEH.js";import"../../chunk-IWA5B4U6.js";import"../../chunk-AT7VHJMW.js";import"../../chunk-BHYFPY64.js";import"../../chunk-EHAZWZ3O.js";import"../../chunk-2VW77NBC.js";import"../../chunk-I4XJ764Y.js";import"../../chunk-2TILNBMK.js";import"../../chunk-XOA7GG4P.js";import"../../chunk-XFD3ULUF.js";import"../../chunk-ZXGAFQXW.js";import"../../chunk-LMYJ6V44.js";import"../../chunk-RR55GUDT.js";import"../../chunk-NX7MM6XR.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-QUQLW5YW.js";import"../../chunk-DFJNVGK4.js";import"../../chunk-SGE4DLC3.js";import"../../chunk-BVDT43OO.js";import"../../chunk-MXLQEDRJ.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-JA7UP6GN.js";import"../../chunk-E5PHO3SS.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-NFUP6BFU.js";import"../../chunk-ZIN2OWTH.js";import"../../chunk-UOOUV52J.js";import"../../chunk-72OH7PSF.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-2SO4LW7V.js";import"../../chunk-PMTKQME6.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as useTermination};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { TerminationFlow } from './TerminationFlow.js';
|
|
2
2
|
export { TerminationReasonsDetailContent } from './components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js';
|
|
3
3
|
export { TerminationDialogInfoContent } from './components/TerminationDialogInfoContent/TerminationDialogInfoContent.js';
|
|
4
|
-
export { A as AdditionalDetailsFormValues, E as EmployeeCommunicationFormValues, P as PaidTimeOffFormValues, c as TerminationDetailsFormValues, a as TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from '../../types-
|
|
4
|
+
export { A as AdditionalDetailsFormValues, E as EmployeeCommunicationFormValues, P as PaidTimeOffFormValues, c as TerminationDetailsFormValues, a as TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from '../../types-D2tc0MbF.js';
|
|
5
5
|
export { PaidTimeOffProps } from './components/PaidTimeOff/PaidTimeOff.js';
|
|
6
6
|
export { AcknowledgeInformationFeesProps } from './components/AcknowledgeInformation/AcknowledgeInformationFees.js';
|
|
7
7
|
export { AcknowledgeInformationProps } from './components/AcknowledgeInformation/AcknowledgeInformation.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import '../../types.gen-UyEyxhzQ.js';
|
|
10
|
-
import '../../mutations-
|
|
11
|
-
import '../../remoteFlows-
|
|
10
|
+
import '../../mutations-B7nzyRmB.js';
|
|
11
|
+
import '../../remoteFlows-CnmojyGF.js';
|
|
12
12
|
import 'react';
|
|
13
13
|
import 'yup';
|
|
14
14
|
import '../../types-Zg1n_9wh.js';
|
|
@@ -24,7 +24,7 @@ import '@tanstack/query-core';
|
|
|
24
24
|
import '@tanstack/react-query';
|
|
25
25
|
import '../ContractAmendment/types.js';
|
|
26
26
|
import './api.js';
|
|
27
|
-
import '../../types-
|
|
27
|
+
import '../../types-DGKjcWLj.js';
|
|
28
28
|
import '../Onboarding/components/OnboardingBack.js';
|
|
29
29
|
import '../Onboarding/components/OnboardingInvite.js';
|
|
30
30
|
import '../Onboarding/components/OnboardingSubmit.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-FZ7FWFJX.js";import{a as c}from"../../chunk-
|
|
1
|
+
import"../../chunk-FZ7FWFJX.js";import{a as c}from"../../chunk-C74N2AWG.js";import{a as b}from"../../chunk-4GDEWYZC.js";import{a}from"../../chunk-7Q3N2EY2.js";import"../../chunk-QP3VWGCS.js";import"../../chunk-K5P2NRJ3.js";import"../../chunk-NS4FRCEH.js";import"../../chunk-IWA5B4U6.js";import"../../chunk-AT7VHJMW.js";import"../../chunk-BHYFPY64.js";import"../../chunk-EHAZWZ3O.js";import"../../chunk-2VW77NBC.js";import"../../chunk-I4XJ764Y.js";import"../../chunk-2TILNBMK.js";import"../../chunk-XOA7GG4P.js";import"../../chunk-XFD3ULUF.js";import"../../chunk-ZXGAFQXW.js";import"../../chunk-LMYJ6V44.js";import"../../chunk-RR55GUDT.js";import"../../chunk-NX7MM6XR.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-QUQLW5YW.js";import"../../chunk-DFJNVGK4.js";import"../../chunk-SGE4DLC3.js";import"../../chunk-FXESMDKI.js";import"../../chunk-SLD6QFPG.js";import"../../chunk-FFT7BPGS.js";import"../../chunk-STPJXT2A.js";import"../../chunk-5KPB3KN7.js";import"../../chunk-GMQ4GITD.js";import"../../chunk-MRYRNB7Y.js";import"../../chunk-BVDT43OO.js";import"../../chunk-MXLQEDRJ.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-JA7UP6GN.js";import"../../chunk-N4232FEQ.js";import"../../chunk-LNV36S6D.js";import"../../chunk-FLXY4CUE.js";import"../../chunk-E5PHO3SS.js";import"../../chunk-KGKDSOER.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-NFUP6BFU.js";import"../../chunk-ZIN2OWTH.js";import"../../chunk-UOOUV52J.js";import"../../chunk-72OH7PSF.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-66N57DKF.js";import"../../chunk-2SO4LW7V.js";import"../../chunk-PMTKQME6.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{c as TerminationDialogInfoContent,a as TerminationFlow,b as TerminationReasonsDetailContent};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as StepTerminationKeys } from '../../../types-
|
|
1
|
+
import { S as StepTerminationKeys } from '../../../types-D2tc0MbF.js';
|
|
2
2
|
import '../../../types.gen-UyEyxhzQ.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
-
import '../../../mutations-
|
|
5
|
-
import '../../../remoteFlows-
|
|
4
|
+
import '../../../mutations-B7nzyRmB.js';
|
|
5
|
+
import '../../../remoteFlows-CnmojyGF.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'yup';
|
|
8
8
|
import '../../../types-Zg1n_9wh.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '../../types.gen-UyEyxhzQ.js';
|
|
2
|
-
export { A as AdditionalDetailsFormValues, E as EmployeeCommunicationFormValues, P as PaidTimeOffFormValues, c as TerminationDetailsFormValues, a as TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from '../../types-
|
|
2
|
+
export { A as AdditionalDetailsFormValues, E as EmployeeCommunicationFormValues, P as PaidTimeOffFormValues, c as TerminationDetailsFormValues, a as TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from '../../types-D2tc0MbF.js';
|
|
3
3
|
import './TerminationBack.js';
|
|
4
4
|
import './TerminationSubmit.js';
|
|
5
5
|
import '../types.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
|
-
import '../../mutations-
|
|
8
|
-
import '../../remoteFlows-
|
|
7
|
+
import '../../mutations-B7nzyRmB.js';
|
|
8
|
+
import '../../remoteFlows-CnmojyGF.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'yup';
|
|
11
11
|
import '../../types-Zg1n_9wh.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../../types.gen-UyEyxhzQ.js';
|
|
3
3
|
import '../useStepState.js';
|
|
4
|
-
export { f as STEPS, S as StepTerminationKeys, i as buildInitialValues, g as calculateMinTerminationDate, h as calculateProposedTerminationDateStatement } from '../../types-
|
|
4
|
+
export { f as STEPS, S as StepTerminationKeys, i as buildInitialValues, g as calculateMinTerminationDate, h as calculateProposedTerminationDateStatement } from '../../types-D2tc0MbF.js';
|
|
5
5
|
import 'react-hook-form';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
|
-
import '../../mutations-
|
|
8
|
-
import '../../remoteFlows-
|
|
7
|
+
import '../../mutations-B7nzyRmB.js';
|
|
8
|
+
import '../../remoteFlows-CnmojyGF.js';
|
|
9
9
|
import 'yup';
|
|
10
10
|
import '../../types-Zg1n_9wh.js';
|
|
11
11
|
import '@remoteoss/json-schema-form-old';
|
package/dist/flows/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as JSFFieldset } from '../remoteFlows-
|
|
1
|
+
import { J as JSFFieldset } from '../remoteFlows-CnmojyGF.js';
|
|
2
2
|
import { modify } from '@remoteoss/json-schema-form-old';
|
|
3
3
|
import { ModifyConfig, FormResult } from '@remoteoss/remote-json-schema-form-kit';
|
|
4
4
|
import 'react';
|
|
@@ -44,12 +44,11 @@ type JSFModify = Parameters<typeof modify>[1];
|
|
|
44
44
|
type JSFModifyNext = ModifyConfig;
|
|
45
45
|
type FlowOptions = {
|
|
46
46
|
jsfModify?: JSFModify;
|
|
47
|
-
/**
|
|
48
|
-
* Temporarily disabled, don't use it for now.
|
|
49
|
-
* @deprecated
|
|
50
|
-
*/
|
|
51
47
|
jsonSchemaVersion?: {
|
|
52
48
|
contract_amendments?: number;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated use jsonSchemaVersionByCountry instead
|
|
51
|
+
*/
|
|
53
52
|
form_schema?: {
|
|
54
53
|
[key in JSONSchemaFormType]?: number;
|
|
55
54
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -16,23 +16,23 @@ export { useContractAmendment } from './flows/ContractAmendment/hooks.js';
|
|
|
16
16
|
export { TerminationFlow } from './flows/Termination/TerminationFlow.js';
|
|
17
17
|
export { TerminationReasonsDetailContent } from './flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js';
|
|
18
18
|
export { TerminationDialogInfoContent } from './flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js';
|
|
19
|
-
export { A as AdditionalDetailsFormValues, E as EmployeeCommunicationFormValues, P as PaidTimeOffFormValues, c as TerminationDetailsFormValues, a as TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from './types-
|
|
19
|
+
export { A as AdditionalDetailsFormValues, E as EmployeeCommunicationFormValues, P as PaidTimeOffFormValues, c as TerminationDetailsFormValues, a as TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from './types-D2tc0MbF.js';
|
|
20
20
|
export { PaidTimeOffProps } from './flows/Termination/components/PaidTimeOff/PaidTimeOff.js';
|
|
21
21
|
export { AcknowledgeInformationFeesProps } from './flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js';
|
|
22
22
|
export { AcknowledgeInformationProps } from './flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js';
|
|
23
23
|
export { OnboardingFlow } from './flows/Onboarding/OnboardingFlow.js';
|
|
24
24
|
export { OnboardingInviteProps } from './flows/Onboarding/components/OnboardingInvite.js';
|
|
25
|
-
export { B as BasicInformationFormPayload, c as BenefitsFormPayload, C as ContractDetailsFormPayload, e as CreditRiskState, d as CreditRiskStatus, E as Employment, f as OnboardingRenderProps, a as SelectCountryFormPayload, b as SelectCountrySuccess } from './types-
|
|
25
|
+
export { B as BasicInformationFormPayload, c as BenefitsFormPayload, C as ContractDetailsFormPayload, e as CreditRiskState, d as CreditRiskStatus, E as Employment, f as OnboardingRenderProps, a as SelectCountryFormPayload, b as SelectCountrySuccess } from './types-DGKjcWLj.js';
|
|
26
26
|
export { ContractorOnboardingFlow } from './flows/ContractorOnboarding/ContractorOnboarding.js';
|
|
27
|
-
export { e as ContractPreviewFormPayload, f as ContractPreviewResponse, C as ContractorOnboardingContractDetailsFormPayload, d as ContractorOnboardingContractDetailsResponse, a as ContractorOnboardingFlowProps, b as ContractorOnboardingRenderProps, P as PricingPlanFormPayload, c as PricingPlanResponse } from './types-
|
|
27
|
+
export { e as ContractPreviewFormPayload, f as ContractPreviewResponse, C as ContractorOnboardingContractDetailsFormPayload, d as ContractorOnboardingContractDetailsResponse, a as ContractorOnboardingFlowProps, b as ContractorOnboardingRenderProps, P as PricingPlanFormPayload, c as PricingPlanResponse } from './types-CbCzUTok.js';
|
|
28
28
|
export { c as PaidTimeoffBreakdownResponse, u as useEmploymentQuery, f as useMagicLink, d as usePaidTimeoffBreakdownQuery, e as useTimeOffLeavePoliciesSummaryQuery, b as useTimeOffQuery } from './types-DDcdRWu_.js';
|
|
29
29
|
export { t as transformYupErrorsIntoObject } from './utils-CjDMg_Yr.js';
|
|
30
30
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
31
31
|
import { PropsWithChildren } from 'react';
|
|
32
|
-
import { R as RemoteFlowsSDKProps } from './remoteFlows-
|
|
33
|
-
export { $ as $TSFixMe, B as ButtonComponentProps, C as Components, d as CountryComponentProps, e as DatePickerComponentProps, D as DrawerComponentProps, b as FieldComponentProps, F as FieldSetToggleComponentProps, c as FileComponentProps, M as Meta, S as StatementComponentProps, T as TextFieldComponentProps, Z as ZendeskDrawerComponentProps } from './remoteFlows-
|
|
32
|
+
import { R as RemoteFlowsSDKProps } from './remoteFlows-CnmojyGF.js';
|
|
33
|
+
export { $ as $TSFixMe, B as ButtonComponentProps, C as Components, d as CountryComponentProps, e as DatePickerComponentProps, D as DrawerComponentProps, b as FieldComponentProps, F as FieldSetToggleComponentProps, c as FileComponentProps, M as Meta, S as StatementComponentProps, T as TextFieldComponentProps, Z as ZendeskDrawerComponentProps } from './remoteFlows-CnmojyGF.js';
|
|
34
34
|
export { s as Company, C as ContractAmendmentAutomatableResponse, p as CostCalculatorEmployment, i as CostCalculatorEstimateResponse, W as Currency, r as EmploymentCreationResponse, v as EmploymentResponse, O as OffboardingResponse, S as SuccessResponse } from './types.gen-UyEyxhzQ.js';
|
|
35
|
-
export { F as FieldError, N as NormalizedFieldError } from './mutations-
|
|
35
|
+
export { F as FieldError, N as NormalizedFieldError } from './mutations-B7nzyRmB.js';
|
|
36
36
|
import 'yup';
|
|
37
37
|
import './types-Zg1n_9wh.js';
|
|
38
38
|
import 'react-hook-form';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./chunk-FZ7FWFJX.js";import{a as ur}from"./chunk-
|
|
1
|
+
import"./chunk-FZ7FWFJX.js";import{a as ur}from"./chunk-C74N2AWG.js";import{a as vr}from"./chunk-4GDEWYZC.js";import{a as gr}from"./chunk-7Q3N2EY2.js";import"./chunk-QP3VWGCS.js";import"./chunk-K5P2NRJ3.js";import"./chunk-NS4FRCEH.js";import"./chunk-IWA5B4U6.js";import"./chunk-AT7VHJMW.js";import"./chunk-BHYFPY64.js";import"./chunk-EHAZWZ3O.js";import"./chunk-2VW77NBC.js";import"./chunk-I4XJ764Y.js";import"./chunk-2TILNBMK.js";import"./chunk-XOA7GG4P.js";import"./chunk-XFD3ULUF.js";import"./chunk-ZXGAFQXW.js";import"./chunk-LMYJ6V44.js";import"./chunk-RR55GUDT.js";import"./chunk-NX7MM6XR.js";import"./chunk-VDRNNOVA.js";import"./chunk-QUQLW5YW.js";import"./chunk-DFJNVGK4.js";import"./chunk-SGE4DLC3.js";import"./chunk-FXESMDKI.js";import"./chunk-SLD6QFPG.js";import"./chunk-FFT7BPGS.js";import"./chunk-STPJXT2A.js";import"./chunk-5KPB3KN7.js";import"./chunk-GMQ4GITD.js";import"./chunk-MRYRNB7Y.js";import"./chunk-GULCZWSK.js";import{a as hr}from"./chunk-X5GMCAS7.js";import"./chunk-SGFXAOTZ.js";import"./chunk-RJO534HJ.js";import"./chunk-S6CCPQSN.js";import"./chunk-NMHISCDF.js";import"./chunk-MDDI5GLL.js";import"./chunk-NVTGX5FY.js";import"./chunk-NIGMIGF6.js";import"./chunk-Z7WBY27D.js";import"./chunk-W3JY7GB5.js";import"./chunk-LE4O6V7D.js";import"./chunk-PGWKJ6FK.js";import"./chunk-A5BCZOOQ.js";import"./chunk-VAIBLWOY.js";import"./chunk-TYCDD66L.js";import"./chunk-FGBEOUQK.js";import{a as j}from"./chunk-RNM46ZUE.js";import{a as A}from"./chunk-FZDQ7EEI.js";import"./chunk-EC7QVRRX.js";import{a as S}from"./chunk-5RM36L5X.js";import{a as I}from"./chunk-FLNGPYQ2.js";import{a as N}from"./chunk-6YXSWOKH.js";import"./chunk-DKFUZO5P.js";import{a as _}from"./chunk-XRFBLWLZ.js";import"./chunk-KSHK3ZPX.js";import{b as F,d as B}from"./chunk-W2SYJLOE.js";import"./chunk-FMDAJQPU.js";import"./chunk-VFRHMNLJ.js";import"./chunk-BIQPVUM2.js";import{d as P,e as R}from"./chunk-XQL5I2GC.js";import"./chunk-HN5HLFTB.js";import"./chunk-A7ZJQCNU.js";import{a as mr}from"./chunk-WKHYYISW.js";import"./chunk-EDP4HELT.js";import"./chunk-T2URGIP3.js";import"./chunk-KJZLQ77E.js";import"./chunk-VFZXJTBY.js";import"./chunk-FXRIYGSV.js";import"./chunk-7WVNWNM2.js";import"./chunk-OA7477F5.js";import"./chunk-26JXMVXY.js";import"./chunk-4ZNCIMTR.js";import"./chunk-TOA3JILU.js";import"./chunk-LZGN6WCB.js";import"./chunk-OAPK6TR7.js";import"./chunk-AP56UUME.js";import"./chunk-R2MHAPWD.js";import"./chunk-3UDG4IJO.js";import"./chunk-ZOTFS35J.js";import"./chunk-23OYALRY.js";import"./chunk-WVJDCDGZ.js";import"./chunk-H6YNMT4M.js";import"./chunk-BVDT43OO.js";import"./chunk-MXLQEDRJ.js";import"./chunk-Z5WMKCRJ.js";import{a as pr}from"./chunk-S7INFMJB.js";import{a as er}from"./chunk-3N4O7TE2.js";import{a as or}from"./chunk-V2L3UV7M.js";import{a as dr}from"./chunk-CDCKGIF5.js";import{a as ir,b as nr,c as sr,d as cr,e as lr}from"./chunk-JA7UP6GN.js";import"./chunk-ZPN5N6BA.js";import"./chunk-N4232FEQ.js";import"./chunk-LNV36S6D.js";import"./chunk-FLXY4CUE.js";import{a as z,b as T}from"./chunk-E5PHO3SS.js";import"./chunk-KGKDSOER.js";import"./chunk-2YTBWEC7.js";import{a as v,b as u}from"./chunk-NFUP6BFU.js";import"./chunk-ZIN2OWTH.js";import"./chunk-UOOUV52J.js";import"./chunk-72OH7PSF.js";import"./chunk-PJBAQZ6G.js";import"./chunk-BZUYUGQF.js";import{a as h,c as m}from"./chunk-KQPDXXG3.js";import"./chunk-LJGCFFAT.js";import{a as tr}from"./chunk-FUMA5UUB.js";import"./chunk-66N57DKF.js";import{b as C}from"./chunk-2SO4LW7V.js";import"./chunk-PMTKQME6.js";import"./chunk-TVZAFTPT.js";import{c as E,d as w}from"./chunk-L3Z2G32A.js";import{a as t}from"./chunk-P37U34EQ.js";import{QueryClient as Y,QueryClientProvider as Z}from"@tanstack/react-query";import{useMemo as $}from"react";function l(r){let a=document.documentElement;Object.keys(r).forEach(e=>{let n=r[e];n&&a.style.setProperty(e,n)})}t(l,"setCssProperties");function O(r){let a={};return Object.keys(r).forEach(e=>{a[`--${e}`]=r[e]}),a}t(O,"mapThemeColors");function D(r){return{"--spacing":r}}t(D,"mapThemeSpacing");function V(r){return{"--radius":r}}t(V,"mapThemeBorderRadius");function M(r){return{"--fontSizeBase":r.fontSizeBase}}t(M,"mapThemeFont");function f(r){r?.colors&&l(O(r.colors)),r?.spacing&&l(D(r.spacing)),r?.borderRadius&&l(V(r.borderRadius)),r?.font&&l(M(r.font))}t(f,"applyTheme");import{createContext as U,useEffect as W,useMemo as L}from"react";import{jsx as Q}from"react/jsx-runtime";var K=U({theme:{}});function b(r){W(()=>{r.theme&&Object.keys(r.theme).length>0&&f(r.theme)},[r.theme]);let a=L(()=>({theme:r.theme}),[r.theme]);return Q(K.Provider,{value:a,children:r.children})}t(b,"ThemeProvider");var x={local:"http://localhost:4000/api/eor",partners:"https://gateway.partners.remote-sandbox.com",production:"https://gateway.remote.com",sandbox:"https://gateway.remote-sandbox.com",staging:"https://gateway.niceremote.com"};var g="1.2.1";function q(r){try{return new URL(r),!0}catch{return!1}}t(q,"isValidUrl");function y(r,a){let e={current:null},n=a?.environment?x[a?.environment]:"https://gateway.remote.com",c=u.getConfig();a?.environment&&a?.environment!=="production"&&w(g);let s=!!a?.proxy&&q(a.proxy.url);return a?.proxy&&!s&&console.error("Invalid proxy URL provided. Using default base URL."),v({...c,headers:{...c.headers,...s?a?.proxy?.headers:{},"X-Client-Name":"remote-flows-sdk","X-Client-Version":g},baseUrl:s?a.proxy?.url:n,auth:t(async()=>{function p(o){return!o||Date.now()+6e4>o}if(t(p,"hasTokenExpired"),!e.current||p(e.current.expiresAt))try{let o=await r();e.current={accessToken:o.accessToken,expiresAt:Date.now()+o.expiresIn*1e3}}catch(o){console.error("Failed to fetch auth token:",o);return}return e.current?.accessToken},"auth")})}t(y,"createClient");import{Component as H}from"react";import{jsx as k}from"react/jsx-runtime";var X=t(()=>k("div",{style:{padding:"20px",border:"1px solid #dc2626",borderRadius:"4px",backgroundColor:"#fef2f2",color:"#991b1b"},children:"Something went wrong in RemoteFlows. Please refresh the page."}),"FallbackErrorBoundary"),d=class extends H{static{t(this,"RemoteFlowsErrorBoundary")}constructor(a){super(a),this.state={hasError:!1,error:null}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}componentDidCatch(a,e){if(console.error("[RemoteFlows] Error caught:",a,e),this.props.errorBoundary?.useParentErrorBoundary)throw a}render(){return this.state.hasError&&this.state.error?this.props.errorBoundary?.fallback?typeof this.props.errorBoundary?.fallback=="function"?this.props.errorBoundary?.fallback(this.state.error):this.props.errorBoundary?.fallback:k(X,{}):this.props.children}};import{jsx as i}from"react/jsx-runtime";var G=new Y;function J({children:r,client:a}){return i(m.Provider,{value:{client:a},children:r})}t(J,"RemoteFlowContextWrapper");function rr({children:r,components:a}){return i(h.Provider,{value:a?{components:a}:{components:{}},children:r})}t(rr,"FormFieldsProvider");function ar({auth:r,children:a,components:e,theme:n,proxy:c,environment:s,errorBoundary:p={useParentErrorBoundary:!0}}){let o=$(()=>y(r,{environment:s,proxy:c}),[r,s,c]);return i(d,{errorBoundary:p,children:i(Z,{client:G,children:i(rr,{components:e,children:i(J,{client:o,children:i(b,{theme:n,children:a})})})})})}t(ar,"RemoteFlows");export{tr as ContractAmendmentConfirmationForm,pr as ContractAmendmentFlow,er as ContractAmendmentForm,or as ContractAmendmentSubmit,mr as ContractorOnboardingFlow,_ as CostCalculatorFlow,S as CostCalculatorForm,I as CostCalculatorResetButton,N as CostCalculatorSubmitButton,j as EstimationResults,hr as OnboardingFlow,ar as RemoteFlows,A as SummaryResults,ur as TerminationDialogInfoContent,gr as TerminationFlow,vr as TerminationReasonsDetailContent,T as ZendeskTriggerButton,F as buildCostCalculatorEstimationPayload,C as convertFromCents,E as transformYupErrorsIntoObject,dr as useContractAmendment,B as useCostCalculator,R as useCostCalculatorEstimationCsv,P as useCostCalculatorEstimationPdf,ir as useEmploymentQuery,lr as useMagicLink,sr as usePaidTimeoffBreakdownQuery,cr as useTimeOffLeavePoliciesSummaryQuery,nr as useTimeOffQuery,z as zendeskArticles};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { AnySchema } from 'yup';
|
|
3
3
|
import { X as HelpCenterArticle } from './types.gen-UyEyxhzQ.js';
|
|
4
4
|
import { S as SupportedTypes } from './types-Zg1n_9wh.js';
|
|
@@ -36,10 +36,10 @@ declare const ENVIRONMENTS: {
|
|
|
36
36
|
|
|
37
37
|
type ColumnDef<T = $TSFixMe> = {
|
|
38
38
|
id: keyof T;
|
|
39
|
-
label:
|
|
39
|
+
label: React.ReactNode;
|
|
40
40
|
className?: string;
|
|
41
41
|
cellClassName?: string;
|
|
42
|
-
render?: (value: $TSFixMe, row: T, index: number) =>
|
|
42
|
+
render?: (value: $TSFixMe, row: T, index: number) => React.ReactNode;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
type FieldFileDataProps = FieldDataProps & {
|
|
@@ -164,6 +164,7 @@ type JSFField = {
|
|
|
164
164
|
meta?: Record<string, unknown>;
|
|
165
165
|
};
|
|
166
166
|
type TableComponentProps<T = $TSFixMe> = {
|
|
167
|
+
ref: React.ForwardedRef<HTMLTableElement>;
|
|
167
168
|
data: T[] | undefined;
|
|
168
169
|
columns: ColumnDef<T>[];
|
|
169
170
|
className?: string;
|
|
@@ -199,6 +200,7 @@ type DrawerComponentProps = {
|
|
|
199
200
|
trigger: React.ReactElement;
|
|
200
201
|
children?: React.ReactNode;
|
|
201
202
|
direction?: 'left' | 'right';
|
|
203
|
+
className?: string;
|
|
202
204
|
};
|
|
203
205
|
type FieldSetToggleComponentProps = {
|
|
204
206
|
isExpanded: boolean;
|
|
@@ -2,17 +2,17 @@ import { E as Employment, e as File, g as CreateContractDocumentResponse, d as S
|
|
|
2
2
|
import { OnboardingBack } from './flows/ContractorOnboarding/components/OnboardingBack.js';
|
|
3
3
|
import { OnboardingSubmit } from './flows/ContractorOnboarding/components/OnboardingSubmit.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { N as NormalizedFieldError } from './mutations-
|
|
5
|
+
import { N as NormalizedFieldError } from './mutations-B7nzyRmB.js';
|
|
6
6
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
7
7
|
import * as React$1 from 'react';
|
|
8
8
|
import { ValidationResult } from '@remoteoss/remote-json-schema-form-kit';
|
|
9
9
|
import { STEPS } from './flows/ContractorOnboarding/utils.js';
|
|
10
10
|
import { Step } from './flows/useStepState.js';
|
|
11
|
-
import { M as Meta, J as JSFFieldset, $ as $TSFixMe } from './remoteFlows-
|
|
11
|
+
import { M as Meta, J as JSFFieldset, $ as $TSFixMe } from './remoteFlows-CnmojyGF.js';
|
|
12
12
|
import { Fields } from '@remoteoss/json-schema-form-old';
|
|
13
13
|
import { FieldValues } from 'react-hook-form';
|
|
14
14
|
import { BasicInformationStep } from './flows/ContractorOnboarding/components/BasicInformationStep.js';
|
|
15
|
-
import { g as SelectCountryStep } from './types-
|
|
15
|
+
import { g as SelectCountryStep } from './types-DGKjcWLj.js';
|
|
16
16
|
import { FlowOptions, JSFModifyNext } from './flows/types.js';
|
|
17
17
|
import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { O as OffboardingResponse, Y as PayrollCalendarEor, E as Employment, D as TerminationDetailsParams, N as NotFoundResponse, U as UnprocessableEntityResponse, T as TooManyRequestsResponse, B as BadRequestResponse, a as UnauthorizedResponse, R as RequestError } from './types.gen-UyEyxhzQ.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { E as ErrorResponse, S as SuccessResponse } from './mutations-
|
|
3
|
+
import { E as ErrorResponse, S as SuccessResponse } from './mutations-B7nzyRmB.js';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import * as _remoteoss_json_schema_form_old from '@remoteoss/json-schema-form-old';
|
|
6
6
|
import { $TSFixMe } from '@remoteoss/json-schema-form-old';
|
|
@@ -2,9 +2,9 @@ import { r as EmploymentCreationResponse, v as EmploymentResponse, S as SuccessR
|
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { OnboardingBack } from './flows/Onboarding/components/OnboardingBack.js';
|
|
4
4
|
import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
|
|
5
|
-
import { N as NormalizedFieldError, S as SuccessResponse$1, E as ErrorResponse } from './mutations-
|
|
5
|
+
import { N as NormalizedFieldError, S as SuccessResponse$1, E as ErrorResponse } from './mutations-B7nzyRmB.js';
|
|
6
6
|
import { OnboardingSubmit } from './flows/Onboarding/components/OnboardingSubmit.js';
|
|
7
|
-
import { C as Components, M as Meta, J as JSFFieldset } from './remoteFlows-
|
|
7
|
+
import { C as Components, M as Meta, J as JSFFieldset } from './remoteFlows-CnmojyGF.js';
|
|
8
8
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
9
9
|
import * as React$1 from 'react';
|
|
10
10
|
import { ValidationResult } from '@remoteoss/remote-json-schema-form-kit';
|
|
@@ -78,7 +78,6 @@ declare const STEPS_WITHOUT_SELECT_COUNTRY: Record<Exclude<StepKeys, 'select_cou
|
|
|
78
78
|
declare const reviewStepAllowedEmploymentStatus: Employment['status'][];
|
|
79
79
|
declare const disabledInviteButtonEmploymentStatus: Employment['status'][];
|
|
80
80
|
declare const DEFAULT_VERSION = 1;
|
|
81
|
-
declare const BASIC_INFORMATION_SCHEMA_VERSION = 1;
|
|
82
81
|
/**
|
|
83
82
|
* Resolves the effective contract details schema version for a country
|
|
84
83
|
* Priority: country-specific > global > default by country
|
|
@@ -426,4 +425,4 @@ type Employment = Employment$1 & {
|
|
|
426
425
|
};
|
|
427
426
|
type CreditRiskState = 'deposit_required' | 'deposit_required_successful' | 'invite' | 'invite_successful' | 'referred' | null;
|
|
428
427
|
|
|
429
|
-
export { type BasicInformationFormPayload as B, type ContractDetailsFormPayload as C, DEFAULT_VERSION as D, type Employment as E, type OnboardingFlowProps as O, ReviewStep as R, STEPS as S, type SelectCountryFormPayload as a, type SelectCountrySuccess as b, type BenefitsFormPayload as c, type CreditRiskStatus as d, type CreditRiskState as e, type OnboardingRenderProps as f, SelectCountryStep as g, BasicInformationStep as h, ContractDetailsStep as i, BenefitsStep as j, STEPS_WITHOUT_SELECT_COUNTRY as k, disabledInviteButtonEmploymentStatus as l,
|
|
428
|
+
export { type BasicInformationFormPayload as B, type ContractDetailsFormPayload as C, DEFAULT_VERSION as D, type Employment as E, type OnboardingFlowProps as O, ReviewStep as R, STEPS as S, type SelectCountryFormPayload as a, type SelectCountrySuccess as b, type BenefitsFormPayload as c, type CreditRiskStatus as d, type CreditRiskState as e, type OnboardingRenderProps as f, SelectCountryStep as g, BasicInformationStep as h, ContractDetailsStep as i, BenefitsStep as j, STEPS_WITHOUT_SELECT_COUNTRY as k, disabledInviteButtonEmploymentStatus as l, getContractDetailsSchemaVersion as m, reviewStepAllowedEmploymentStatus as r, useOnboarding as u };
|
package/package.json
CHANGED
package/dist/chunk-26DGUFCY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as Q}from"./chunk-7FMR3EIX.js";import{a as H}from"./chunk-KGKDSOER.js";import{a as ye,b as Ve,c as ze,d as Ge,e as Ue,f as Je,g as qe,h as Ze,i as Ke,j as Ye,l as Xe,m as ve,n as Qe,o as xe,p as Se,r as be,t as je,u as eo,v as oo}from"./chunk-ZIN2OWTH.js";import{b as x}from"./chunk-KQPDXXG3.js";import{a as Ce,b as B}from"./chunk-LJGCFFAT.js";import{a as re,b as ne,c as v,d as Le,e as He,f as Be,g as Oe,h as b,i as P,j as k,k as N,l as D,m as w}from"./chunk-66N57DKF.js";import{g as Ae}from"./chunk-2SO4LW7V.js";import{a as y,e as ae}from"./chunk-L3Z2G32A.js";import{a as t}from"./chunk-P37U34EQ.js";import{Fragment as Gt,useEffect as Ut,useRef as tt}from"react";import{Fragment as it,jsx as A,jsxs as ie}from"react/jsx-runtime";function le({name:e,defaultValue:o,description:r,label:n,onChange:s,multiple:i,options:m,component:a,...d}){let{components:u}=x(),{control:l}=v(),f=t((p,h,g)=>{if(i&&g){let c=p.value?[...p.value]:[];h?c.includes(g)||p.onChange([...c,g]):p.onChange(c.filter(_=>_!==g))}else p.onChange(h)},"handleCheckboxChange");return A(b,{control:l,name:e,defaultValue:o,render:({field:p,fieldState:h})=>{let g=a||u?.checkbox;if(g){let c={name:e,description:r,label:n,defaultValue:o,multiple:i,options:m,...d};return A(g,{field:{...p,onChange:t((_,S)=>{f(p,_.target.checked,S),s?.(_.target.checked===!0,S)},"onChange")},fieldState:h,fieldData:c})}return ie(P,{"data-field":e,className:y(`RemoteFlows__CheckBoxField__Item__${e}`),children:[A(N,{children:ie(it,{children:[m&&i?A(k,{children:n}):null,m&&i?m.map(c=>ie("div",{className:"flex space-x-2",children:[A(ye,{id:c.value,onCheckedChange:_=>{f(p,_===!0,c.value),s?.(_===!0,c.value)},checked:p.value?.includes(c.value),className:"RemoteFlows__CheckBox__Input"}),A(k,{htmlFor:c.value,className:"mb-0 RemoteFlows__CheckBox__Label",children:c.label})]},c.value)):ie("div",{className:"flex space-x-2",children:[A(ye,{id:e,onCheckedChange:c=>{f(p,c===!0,e),s?.(c===!0,e)},checked:p.value,className:"RemoteFlows__CheckBox__Input"}),A(k,{htmlFor:e,className:"mb-0 RemoteFlows__CheckBox__Label",children:n})]})]})}),r&&A(D,{children:r}),h.error&&A(w,{})]})}})}t(le,"CheckBoxField");import{CalendarIcon as ct}from"lucide-react";import{format as no}from"date-fns";import*as O from"@radix-ui/react-popover";import{PopoverClose as to}from"@radix-ui/react-popover";import{jsx as se}from"react/jsx-runtime";function me({...e}){return se(O.Root,{"data-slot":"popover",...e})}t(me,"Popover");function de({...e}){return se(O.Trigger,{"data-slot":"popover-trigger",...e})}t(de,"PopoverTrigger");function ce({className:e,align:o="center",sideOffset:r=4,...n}){return se(O.Portal,{children:se(O.Content,{"data-slot":"popover-content",align:o,sideOffset:r,className:y("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}t(ce,"PopoverContent");import{ChevronLeft as lt,ChevronRight as st}from"lucide-react";import{DayPicker as mt}from"react-day-picker";import{jsx as ke}from"react/jsx-runtime";function ro({className:e,classNames:o,showOutsideDays:r=!0,...n}){return ke(mt,{showOutsideDays:r,className:y("p-3",e),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:y(Ce({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:y("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",n.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:y(Ce({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...o},components:{IconLeft:t(({className:s,...i})=>ke(lt,{className:y("size-4",s),...i}),"IconLeft"),IconRight:t(({className:s,...i})=>ke(st,{className:y("size-4",s),...i}),"IconRight")},...n})}t(ro,"Calendar");import{jsx as dt}from"react/jsx-runtime";function pe({helpCenter:e}){return e?dt(Q,{zendeskId:e.id,children:e.callToAction}):null}t(pe,"HelpCenter");import{Fragment as pt,jsx as E,jsxs as ue}from"react/jsx-runtime";function ao({field:e,fieldData:o,fieldState:r}){let{name:n,label:s,description:i,minDate:m,maxDate:a}=o,d=m?new Date(m):void 0,u=a?new Date(a):void 0;return ue(P,{"data-field":n,className:`flex flex-col RemoteFlows__DatePickerField__Item__${n}`,children:[E(k,{className:"RemoteFlows__DatePickerField__Label",children:s}),ue(me,{children:[E(de,{asChild:!0,children:E(N,{children:E("div",{children:ue(B,{type:"button",variant:"outline",className:y("w-full pl-3 text-left font-normal",!e.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${n}`,children:[e.value&&E(pt,{children:no(e.value,"yyyy-MM-dd")}),E(ct,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),E(ce,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:E(ro,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:e.value?new Date(e.value):void 0,onSelect:l=>{e.onChange(l?no(l,"yyyy-MM-dd"):null)},defaultMonth:d,components:{DayContent:t(l=>E(to,{children:l.date.getDate()}),"DayContent")},disabled:l=>!!(d&&l<d||u&&l>u)})})]}),i?ue(D,{children:[i," ",E(pe,{helpCenter:o.meta?.helpCenter})]}):null,r.error&&E(w,{className:"RemoteFlows__DatePickerField__Error"})]})}t(ao,"DatePickerFieldDefault");import{jsx as io}from"react/jsx-runtime";function lo({description:e,label:o,name:r,minDate:n,maxDate:s,onChange:i,component:m,...a}){let{components:d}=x(),{control:u}=v(),l;a.meta?.mot&&typeof a.meta.mot=="number"?l=Ae(a.meta.mot):n&&(l=new Date(`${n}T00:00:00`));let f;return s&&(f=new Date(`${s}T23:59:59`)),io(b,{control:u,name:r,render:({field:p,fieldState:h})=>{let c=m||d?.date||ao,_={description:e,label:o,name:r,onChange:i,...l&&{minDate:l.toISOString()},...f&&{maxDate:f.toISOString()},...a};return io(c,{field:{...p,onChange:t(S=>{p.onChange(S),i?.(S)},"onChange")},fieldState:h,fieldData:_})}})}t(lo,"DatePickerField");import{jsx as G,jsxs as ut}from"react/jsx-runtime";function so({field:e,fieldState:o,fieldData:r}){let{name:n,label:s,description:i,multiple:m,accept:a}=r;return ut(P,{"data-field":n,className:`RemoteFlows__FileUpload__Item__${n}`,children:[G(k,{className:"RemoteFlows__FileUpload__Label",children:s}),G(N,{children:G(Ve,{onChange:e.onChange,multiple:m,className:y("RemoteFlows__FileUpload__Input"),accept:a,files:e.value})}),i&&G("div",{className:"flex items-center justify-between",children:G(D,{className:"RemoteFlows__FileUpload__Description",children:i})}),o.error&&G(w,{className:"RemoteFlows__FileUpload__Error"})]})}t(so,"FileUploadFieldDefault");import{jsx as mo}from"react/jsx-runtime";var ft=t((e,o)=>{if(!o)return null;for(let r of e)if(r.size>o){let n=Math.round(o/1048576),s=Math.round(r.size/(1024*1024));return`File "${r.name}" exceeds maximum size of ${n}MB (file is ${s}MB)`}return null},"validateFileSize");function co({name:e,description:o,label:r,multiple:n,onChange:s,component:i,accept:m,maxSize:a,...d}){let{components:u}=x(),{control:l,setError:f,clearErrors:p}=v(),h=t(async(g,c)=>{let _=ft(g,a);if(_){f(e,{message:_});return}p(e),c.onChange(g),s?.(g)},"handleOnChange");return mo(b,{control:l,name:e,render:({field:g,fieldState:c})=>{let S=i||u?.file||so,R={name:e,description:o,label:r,multiple:n,accept:m,maxFileSize:a,...d};return mo(S,{field:{...g,value:g.value,onChange:t(async z=>h(z,g),"onChange")},fieldState:c,fieldData:R})}})}t(co,"FileUploadField");import{jsx as Ft}from"react/jsx-runtime";function po({field:e,fieldData:o}){return Ft(H,{type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",...e,...o})}t(po,"NumberFieldDefault");import{jsx as uo}from"react/jsx-runtime";function fe(e){let{components:o}=x(),{control:r}=v(),s=e.component||o?.number||po;return uo(b,{control:r,name:e.name,render:({field:i,fieldState:m})=>uo(s,{field:{...i,onChange:t(a=>{i.onChange(a),e.onChange?.(a)},"onChange")},fieldState:m,fieldData:e})})}t(fe,"NumberField");import{Fragment as gt}from"react";import{jsx as W,jsxs as Pe}from"react/jsx-runtime";var fo=t(({field:e,fieldData:o,fieldState:r})=>{let{name:n,label:s,description:i,options:m}=o;return W("fieldset",{className:y("space-y-3",`RemoteFlows__RadioGroupField__Item__${n}`),"data-field":n,children:Pe(P,{className:y("space-y-3",`RemoteFlows__RadioGroupField__Item__${n}`),"data-field":n,children:[W("legend",{children:s}),W(N,{children:W(ze,{"aria-label":s||n,onValueChange:a=>{e.onChange(a)},value:e.value,className:"flex flex-col space-y-3",children:m?.map(a=>W(gt,{children:Pe(P,{"data-field":n,className:"flex items-start space-x-3 space-y-0 gap-0 RemoteFlows__RadioField__Item",children:[W(N,{children:W(Ge,{value:a.value,className:"RemoteFlows__RadioField__Input",disabled:a.disabled})}),Pe("div",{children:[W(k,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:a.label}),a.description&&W(D,{className:"mt-2",children:a.description})]})]})},a.value))})}),i&&W(D,{children:i}),r.error&&W(w,{})]})})},"RadioGroupFieldDefault");import{jsx as Fo}from"react/jsx-runtime";function go({name:e,defaultValue:o,description:r,label:n,options:s,onChange:i,component:m,...a}){let{components:d}=x(),{control:u}=v();return Fo(b,{control:u,name:e,defaultValue:o,render:({field:l,fieldState:f})=>{let h=m||d?.radio||fo,g={name:e,defaultValue:o,description:r,label:n,options:s,...a};return Fo(h,{field:{...l,onChange:t(c=>{l.onChange(c),i?.(c)},"onChange")},fieldState:f,fieldData:g})}})}t(go,"RadioGroupField");import{jsx as L,jsxs as ho}from"react/jsx-runtime";function _o({field:e,fieldState:o,fieldData:r}){let{name:n,label:s,description:i,options:m}=r;return ho(P,{"data-field":n,className:`RemoteFlows__SelectField__Item__${n}`,children:[L(k,{className:"RemoteFlows__SelectField__Label",children:s}),L(N,{children:L("div",{className:"relative",children:ho(Ue,{value:e.value||"",onValueChange:a=>{e.onChange(a)},children:[L(Ze,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!o.error,"aria-label":s,children:L("span",{className:"absolute",children:L(qe,{placeholder:s})})}),L(Ke,{className:"RemoteFlows__SelectField__Content",children:L(Je,{className:"RemoteFlows__SelectField__Group",children:m?.map(a=>L(Ye,{value:a.value,className:"RemoteFlows__SelectField__SelectItem",disabled:a.disabled,children:a.label},a.value))})})]})})}),i&&L(D,{children:i}),o.error&&L(w,{})]})}t(_o,"SelectFieldDefault");import{jsx as yo}from"react/jsx-runtime";function Co({label:e,name:o,options:r,defaultValue:n,description:s,onChange:i,component:m,...a}){let{control:d}=v(),{components:u}=x();return yo(b,{defaultValue:n,control:d,name:o,render:({field:l,fieldState:f})=>{let h=m||u?.select||_o,g={label:e,name:o,options:r,defaultValue:n,description:s,onChange:i,...a};return yo(h,{field:{...l,onChange:t(c=>{let _=a.jsonType==="number"?Number(c):c;l.onChange(_),i?.(_)},"onChange")},fieldState:f,fieldData:g})}})}t(Co,"SelectField");import{useEffect as xt,useState as St}from"react";import{Fragment as ht,useState as _t}from"react";import{Check as yt,ChevronDownIcon as Ct,X as vt}from"lucide-react";import{Command as U}from"cmdk";import{SearchIcon as On}from"lucide-react";import{jsx as J,jsxs as Un}from"react/jsx-runtime";function vo({className:e,...o}){return J(U,{"data-slot":"command",className:y("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o})}t(vo,"Command");function xo({className:e,...o}){return J(U.List,{"data-slot":"command-list",className:y("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...o})}t(xo,"CommandList");function So({...e}){return J(U.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}t(So,"CommandEmpty");function bo({className:e,...o}){return J(U.Group,{"data-slot":"command-group",className:y("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...o})}t(bo,"CommandGroup");function ko({className:e,...o}){return J(U.Separator,{"data-slot":"command-separator",className:y("bg-border -mx-1 h-px",e),...o})}t(ko,"CommandSeparator");function Po({className:e,...o}){return J(U.Item,{"data-slot":"command-item",className:y("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}t(Po,"CommandItem");import{jsx as $,jsxs as q}from"react/jsx-runtime";function Fe({options:e,selected:o,onChange:r,placeholder:n,...s}){let[i,m]=_t(!1),a=t(l=>{r(o.filter(f=>f.value!==l.value))},"handleUnselect"),d=e.some(l=>l.category),u=e.reduce((l,f)=>{let p=f.category||"Uncategorized";return l[p]||(l[p]=[]),l[p].push(f),l},{});return q(me,{open:i,onOpenChange:m,...s,children:[$(de,{children:q(B,{variant:"outline",role:"combobox","aria-expanded":i,className:"w-full justify-between font-normal",type:"button",children:[$("div",{className:"flex gap-1 flex-wrap overflow-x-auto max-h-[2.5rem] items-center",children:o.length>0?o.map(l=>q(Xe,{variant:"secondary",className:"mr-1 mb-1",children:[l.label,$("div",{role:"button",tabIndex:0,"aria-label":`remove ${l.label}`,className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-pointer",onKeyDown:f=>{f.key==="Enter"&&a(l)},onMouseDown:f=>{f.preventDefault(),f.stopPropagation()},onClick:()=>a(l),children:$(vt,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},l.label)):$("span",{className:"text-foreground",children:n})}),$(Ct,{className:"size-4"})]})}),$(ce,{align:"start",className:"w-full p-0",children:$(vo,{children:q(xo,{children:[$(So,{children:"No item found."}),Object.entries(u).map(([l,f],p)=>q(ht,{children:[p>0&&$(ko,{}),$(bo,{heading:d?l:void 0,children:f.map(h=>{let g=o.some(c=>c.value===h.value);return q(Po,{onSelect:()=>{r(g?o.filter(c=>c.value!==h.value):[...o,h])},children:[$(yt,{className:y("mr-2 h-4 w-4",g?"opacity-100":"opacity-0")}),h.label]},h.label)})})]},l))]})})})]})}t(Fe,"MultiSelect");import{jsx as j,jsxs as No}from"react/jsx-runtime";function Do({field:e,fieldState:o,fieldData:r}){let[n,s]=St([]),i=t(a=>{let d=a.map(({value:u})=>u);e.onChange(d),s(a)},"handleChange");xt(()=>{e.value&&r.options&&s(e.value.map(a=>r?.options?.find(d=>d.value===a)))},[e.value,r.options]);let m=[...Object.entries(r.$meta?.regions||{}).map(([a,d])=>({value:d,label:a,category:"Regions"})),...Object.entries(r.$meta?.subregions||{}).map(([a,d])=>({value:d,label:a,category:"Subregions"})),...r.options?.map(a=>({...a,value:a.value,label:a.label,category:"Countries"}))||[]];return No(P,{"data-field":e.name,className:`RemoteFlows__CountryField__Item__${e.name}`,children:[j(k,{className:"RemoteFlows__CountryField__Label",children:r.label}),j(N,{children:j(Fe,{options:m,selected:n,onChange:i})}),r.description&&No(D,{children:[r.description," ",j(pe,{helpCenter:r.meta?.helpCenter})]}),o.error&&j(w,{})]})}t(Do,"CountryFieldDefault");import{jsx as wo}from"react/jsx-runtime";function Ro({label:e,name:o,options:r,defaultValue:n,description:s,onChange:i,$meta:m,component:a,...d}){let{control:u}=v(),{components:l}=x();return wo(b,{defaultValue:n,control:u,name:o,render:({field:f,fieldState:p})=>{let g=a||l?.countries||Do,c={label:e,name:o,options:r,defaultValue:n,description:s,onChange:i,$meta:m,...d};return wo(g,{field:{...f,onChange:t(_=>{f.onChange(_),i?.(_)},"onChange")},fieldState:p,fieldData:c})}})}t(Ro,"CountryField");import*as To from"react";import{jsx as bt}from"react/jsx-runtime";var Ne=To.forwardRef(({className:e,...o},r)=>bt("textarea",{className:y("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...o}));Ne.displayName="Textarea";import{jsx as ee,jsxs as De}from"react/jsx-runtime";function $o({field:e,fieldState:o,fieldData:r}){let{name:n,label:s,description:i,maxLength:m}=r,a=e.value?.length??0;return De(P,{"data-field":n,className:`RemoteFlows__TextArea__Item__${n}`,children:[ee(k,{className:"RemoteFlows__TextArea__Label",children:s}),ee(N,{children:ee(Ne,{...e,value:e.value??"",onChange:d=>{e.onChange(d)},className:y(o.error&&"border-red-500 focus-visible:ring-red-500","RemoteFlows__TextArea__Input"),placeholder:s})}),(i||m)&&De("div",{className:"flex items-center justify-between",children:[i&&ee(D,{className:"RemoteFlows__TextArea__Description",children:i}),m&&De("span",{className:"text-sm ml-auto RemoteFlows__TextArea__MaxLength",children:[a,"/",m]})]}),o.error&&ee(w,{className:"RemoteFlows__TextArea__Error"})]})}t($o,"TextAreaFieldDefault");import{jsx as Mo}from"react/jsx-runtime";function Io({name:e,description:o,label:r,onChange:n,maxLength:s,component:i,...m}){let{components:a}=x(),{control:d}=v();return Mo(b,{control:d,name:e,render:({field:u,fieldState:l})=>{let p=i||a?.textarea||$o,h={name:e,description:o,label:r,maxLength:s,...m};return Mo(p,{field:{...u,onChange:t(g=>{u.onChange(g),n?.(g)},"onChange")},fieldState:l,fieldData:h})}})}t(Io,"TextAreaField");import{jsx as kt}from"react/jsx-runtime";function Eo({field:e,fieldData:o}){return kt(H,{name:e.name,...o,type:"email"})}t(Eo,"EmailFieldDefault");import{jsx as Wo}from"react/jsx-runtime";function Lo(e){let{components:o}=x(),{control:r}=v(),s=e.component||o?.email||Eo;return Wo(b,{control:r,name:e.name,render:({field:i,fieldState:m})=>Wo(s,{field:{...i,onChange:t(a=>{i.onChange(a),e.onChange?.(a)},"onChange")},fieldState:m,fieldData:e})})}t(Lo,"EmailField");import{jsx as Ho}from"react/jsx-runtime";function Bo(e){let{control:o}=v();return Ho(b,{control:o,name:e.name,render:({field:r})=>Ho("input",{...r,type:"hidden"})})}t(Bo,"HiddenField");import $t,{useEffect as Mt,useState as Zo}from"react";var Ao=t((e,o,r)=>{if(e&&"reportValidity"in e){let n=re(r,o);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},"r"),we=t((e,o)=>{for(let r in o.fields){let n=o.fields[r];n&&n.ref&&"reportValidity"in n.ref?Ao(n.ref,r,e):n&&n.refs&&n.refs.forEach(s=>Ao(s,r,e))}},"o"),Vo=t((e,o)=>{o.shouldUseNativeValidation&&we(e,o);let r={};for(let n in e){let s=re(o.fields,n),i=Object.assign(e[n]||{},{ref:s&&s.ref});if(Pt(o.names||Object.keys(e),n)){let m=Object.assign({},re(r,n));ne(m,"root",i),ne(r,n,m)}else ne(r,n,i)}return r},"s"),Pt=t((e,o)=>{let r=Oo(o);return e.some(n=>Oo(n).match(`^${r}\\.\\d+`))},"i");function Oo(e){return e.replace(/\]|\[/g,"")}t(Oo,"n");function zo(e,o,r){return o===void 0&&(o={}),r===void 0&&(r={}),function(n,s,i){try{return Promise.resolve((function(m,a){try{var d=(o.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[r.mode==="sync"?"validateSync":"validate"](n,Object.assign({abortEarly:!1},o,{context:s}))).then(function(u){return i.shouldUseNativeValidation&&we({},i),{values:r.raw?Object.assign({},n):u,errors:{}}}))}catch(u){return a(u)}return d&&d.then?d.then(void 0,a):d})(0,function(m){if(!m.inner)throw m;return{values:{},errors:Vo((a=m,d=!i.shouldUseNativeValidation&&i.criteriaMode==="all",(a.inner||[]).reduce(function(u,l){if(u[l.path]||(u[l.path]={message:l.message,type:l.type}),d){var f=u[l.path].types,p=f&&f[l.type];u[l.path]=Le(l.path,d,u,l.type,p?[].concat(p,l.message):l.message)}return u},{})),i)};var a,d}))}catch(m){return Promise.reject(m)}}}t(zo,"o");import*as T from"yup";import Go from"lodash.groupby";import Z from"lodash.capitalize";var Uo=60,ge=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function Nt(e){if(e<60)return`${e}m`;let o=Math.floor(e/Uo),r=e%Uo;return r>0?`${o}h${r}m`:`${o}h`}t(Nt,"convertBreakDurationToHours");function Jo(e){let o=e.reduce((r,n)=>n.hours+r,0);return Number(o.toFixed(2))}t(Jo,"calculateTotalWorkHours");function Dt(e,o){let r=o.map(({day:i})=>i.toLowerCase()),n=r.indexOf(e),s=null;for(;n<r.length&&!s;){let i=r[n],m=r[n+1],a=ge.indexOf(i)+1;ge[a]===m||(s=i),n+=1}return s}t(Dt,"findLastConsecutiveDay");function wt(e){return e.start_time&&e.end_time&&(typeof e.hours=="number"?e.hours:Number.parseInt(e.hours))>0}t(wt,"shouldSummarizeSchedule");function Rt(e){return Number.parseInt(e.break_duration_minutes)>0}t(Rt,"shouldSummarizeBreaks");function qo(e){let o=e.filter(wt),r=Go(o,a=>`${a.start_time}|${a.end_time}`),n=e.filter(Rt),s=Go(n,"break_duration_minutes"),i=Object.keys(r).map(a=>{let d=r[a],u=d[0].day,[l,f]=a.split("|"),p=`from <span>${l.replace(":","h")}</span> to <span>${f.replace(":","h")}</span>`,h=Dt(u,d),c=(h?d.findIndex(_=>_.day===h):-1)===d.length-1;return d.length===1?`${Z(u)}, ${p}`:!c||!h?d.reduce((_,S,R)=>{let z=Z(S.day);return R===d.length-1?`${_}and ${z}, ${p}`:`${_}<span>${z}</span>, `},""):`<span>${Z(u)}</span> to <span>${Z(h)}</span>, ${p}`}),m=Object.keys(s).reverse().map((a,d)=>{let u=d===0,l=s[a],f=Nt(parseInt(a,10));if(Object.keys(s).length===1)return`With ${f} daily breaks`;if(l.length===1){let p=`${f} break on ${Z(l[0].day)}.`;return u?`With ${p}`:p}return l.reduce((p,h,g)=>{let c=Z(h.day);return g===0?`${p} ${c}`:g===l.length-1?`${p}, and ${c}.`:`${p}, ${c}`},u?`With ${f} break on`:`${f} break on`)});return{workHoursSummary:i,breakSummary:m}}t(qo,"buildWorkScheduleSummary");function Re(e){let{checked:o,start_time:r,end_time:n,break_duration_minutes:s}=e;if(!o)return 0;let[i,m]=r.split(":").map(Number),[a,d]=n.split(":").map(Number),u=i*60+m,p=(a*60+d-u-Number.parseInt(s||"0"))/60;return p===Math.floor(p)?p:Number(p.toFixed(2))}t(Re,"calculateHours");var Tt={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function he(e){return Tt[e]}t(he,"getShortWeekday");import{jsx as C,jsxs as M}from"react/jsx-runtime";var It=T.object({day:T.string().required(),checked:T.boolean().required(),start_time:T.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:t(e=>e.required("Required"),"then"),otherwise:t(e=>e.optional().nullable(),"otherwise")}),end_time:T.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:t(e=>e.required("Required"),"then"),otherwise:t(e=>e.optional().nullable(),"otherwise")}),hours:T.number().default(0),break_duration_minutes:T.string().default("0")}),Et=T.object({schedule:T.array(It)});function Wt({defaultSchedule:e,onSubmit:o}){let[r,n]=Zo(!1),s=ge.map(c=>{let _=e.find(S=>S.day.toLowerCase()===he(c).toLowerCase()||S.day.toLowerCase()===c.toLowerCase());return _?{..._,day:he(c),checked:!0}:{...e[0],checked:!1,day:he(c)}}),i=Be({defaultValues:{schedule:s},resolver:zo(Et)}),{handleSubmit:m,watch:a,reset:d,control:u,formState:l}=i,{fields:f}=He({name:"schedule",control:u}),p=a("schedule");function h(c){let _=c.schedule.filter(({checked:S})=>S).map(S=>({...S,hours:Re(S)}));o(_),n(!1)}t(h,"handleSubmitWorkingHours");function g(){d(),n(!1)}return t(g,"handleCancel"),C("div",{className:"flex items-center justify-between",children:M(ve,{open:r,onOpenChange:n,children:[C(Qe,{asChild:!0,children:C(B,{variant:"link",className:"flex items-center p-0 RemoteFlows__WorkScheduleSelectionForm__Trigger",children:"Edit Schedule"})}),M(xe,{className:"max-w-5xl max-h-[90vh] overflow-y-auto px-8 py-4 RemoteFlows__WorkScheduleSelectionForm__Content",children:[C(Se,{children:C(be,{className:"RemoteFlows__WorkScheduleSelectionForm__Title",children:"Edit employee working hours"})}),C(Oe,{...i,children:M("form",{className:"space-y-4 RemoteFlows__WorkScheduleSelectionForm__Form",children:[M("div",{className:"rounded-lg",children:[C("p",{className:"text-gray-600 text-sm mb-4 RemoteFlows__WorkScheduleSelectionForm__Description",children:"The times displayed are in the employee's time zone in the 24-hour format."}),M("div",{className:"grid grid-cols-12 gap-4 text-sm font-medium text-gray-500 uppercase tracking-wide RemoteFlows__WorkScheduleSelectionForm__Header",children:[C("div",{className:"col-span-2"}),C("div",{className:"col-span-3 text-center",children:"START"}),C("div",{className:"col-span-1 text-center"}),C("div",{className:"col-span-3 text-center",children:"END"}),C("div",{className:"col-span-2 text-center",children:"HOURS"})]}),C("div",{className:"RemoteFlows__WorkScheduleSelectionForm__Rows",children:f.map((c,_)=>{let S=p[_],R=Re(S);return M($t.Fragment,{children:[M("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Hours",children:[C("div",{className:"col-span-2 flex items-center gap-3",children:C(le,{label:c.day,name:`schedule.${_}.checked`})}),C("div",{className:"col-span-3",children:C(H,{name:`schedule.${_}.start_time`,includeErrorMessage:!1})}),C("div",{className:"col-span-1 text-center text-gray-500",children:"to"}),C("div",{className:"col-span-3",children:C(H,{name:`schedule.${_}.end_time`,includeErrorMessage:!1})}),C("div",{className:"col-span-2 text-center text-gray-600",children:isNaN(R)?"-":`${R} hours`})]}),M("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Break",children:[C("div",{className:"col-span-2 text-gray-500",children:"Break"}),C("div",{className:"col-span-2",children:C(H,{name:`schedule.${_}.break_duration_minutes`,includeErrorMessage:!1})}),C("div",{className:"col-span-2 text-gray-500",children:"minutes"}),C("div",{className:"col-span-4"})]})]},c.id)})})]}),Object.keys(l.errors).length>0&&C("p",{className:"text-destructive text-sm mb-0",children:"Invalid time format (HH:mm)"}),M("div",{className:"flex gap-4 pt-4",children:[C(B,{type:"button",className:"reset-button",variant:"outline",onClick:g,children:"Cancel"}),C(B,{type:"button",className:"submit-button",onClick:m(h),children:"Save Schedule"})]})]})})]})]})})}t(Wt,"WorkScheduleSelectionForm");function Ko(e){let{components:o}=x(),{setValue:r,control:n,watch:s}=v(),i=s(e.name),[m,a]=Zo(i),{workHoursSummary:d,breakSummary:u}=qo(m),l=Jo(m);Mt(()=>{r(e.name,m)},[m,e.name,r]);function f(h){a(h)}t(f,"onSubmit");let p=e.component||o?.["work-schedule"];return p?C(b,{control:n,name:e.name,render:({field:h,fieldState:g})=>C(p,{field:{...h,onChange:t(c=>{h.onChange(c),e.onChange?.(c)},"onChange")},fieldState:g,fieldData:{...e,defaultFormattedValue:{workHoursSummary:d,breakSummary:u,totalWorkHours:l}}})}):M("div",{className:"flex flex-col gap-3 RemoteFlows__WorkScheduleField",children:[C("p",{className:"text-sm RemoteFlows__WorkScheduleField__Title",children:"Work hours"}),M("div",{className:"flex flex-col gap-1 RemoteFlows__WorkScheduleField__Summary",children:[C("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__WorkHours",dangerouslySetInnerHTML:{__html:d.join(", ")}}),C("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Break",children:u.join()}),M("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Total",children:["Total of ",C("span",{children:l})," hours per week"]}),C(Wt,{defaultSchedule:m,onSubmit:f})]})]})}t(Ko,"WorkScheduleField");import{useEffect as Lt,useState as Ht}from"react";import{jsx as oe,jsxs as Bt}from"react/jsx-runtime";var Yo=t(({field:e,fieldState:o,fieldData:r})=>{let[n,s]=Ht([]),{name:i,label:m,description:a,options:d}=r,u=n||d?.filter(l=>e.value?.includes(l.value));return Lt(()=>{s(d?.filter(l=>e.value?.includes(l.value))||[])},[e.value,d]),Bt(P,{"data-field":i,className:`RemoteFlows__SelectField__Item__${i}`,children:[oe(k,{className:"RemoteFlows__SelectField__Label",children:m}),oe(N,{children:oe(Fe,{options:d||[],selected:u,onChange:l=>{let f=l.map(({value:p})=>p);e.onChange(f),s(l)}})}),a&&oe(D,{children:a}),o.error&&oe(w,{})]})},"MultiSelectFieldDefault");import{jsx as Xo}from"react/jsx-runtime";function Qo({label:e,name:o,options:r,defaultValue:n,description:s,onChange:i,component:m,...a}){let{control:d}=v(),{components:u}=x();return Xo(b,{defaultValue:n,control:d,name:o,render:({field:l,fieldState:f})=>{let h=m||u?.["multi-select"]||Yo,g={label:e,name:o,options:r,defaultValue:n,description:s,onChange:i,...a};return Xo(h,{field:{...l,onChange:t(c=>{l.onChange(c),i?.(c)},"onChange")},fieldState:f,fieldData:g})}})}t(Qo,"MultiSelectField");import{jsx as At}from"react/jsx-runtime";var jo=t(e=>At(fe,{maxLength:15,...e}),"MoneyField");var Te={checkbox:le,text:H,email:Lo,money:jo,select:Co,"multi-select":Qo,radio:go,number:fe,file:co,date:lo,textarea:Io,countries:Ro,hidden:Bo,"work-schedule":Ko};import{AlertCircle as Ot}from"lucide-react";import{jsx as $e,jsxs as Vt}from"react/jsx-runtime";function et({data:e}){let{title:o,description:r,severity:n}=e,i={warning:"warning",error:"destructive",info:"default",success:"warning"}[n]??"warning";return Vt(je,{variant:i,children:[$e(Ot,{className:"h-4 w-4"}),o&&$e(eo,{children:o}),r&&$e(oo,{dangerouslySetInnerHTML:{__html:r}})]})}t(et,"StatementDefault");import{jsx as zt}from"react/jsx-runtime";function ot({title:e,description:o,severity:r}){let{components:n}=x(),s=n?.statement??et;return zt(s,{data:{title:e,description:ae(o),severity:r}})}t(ot,"Statement");import{Fragment as qt,jsx as I,jsxs as V}from"react/jsx-runtime";var Jt=t(({isExpanded:e,onToggle:o,className:r,...n})=>I(B,{type:"button",className:y("RemoteFlows__Button RemoteFlows__FieldSetField__ToggleButton",r),variant:"default",onClick:o,...n,children:e?"Remove":"Define"}),"DefaultToggleButton");function rt({label:e,name:o,fields:r,description:n,components:s,statement:i,isFlatFieldset:m,extra:a,variant:d="outset",features:u,meta:l}){let{helpCenter:f}=l||{},{watch:p,setValue:h,trigger:g,formState:c}=v(),{components:_}=x(),S=u?.toggle?.stateField,R=S?p(S):u?.toggle?.defaultExpanded??!0,z=r.map(({name:F})=>`${o}.${F}`),te=p(z),Me=tt(te),K=tt(null),nt=t(()=>{S&&h(S,!R)},"toggleExpanded");Ut(()=>{let F=te,Y=Me.current,_e=c.isSubmitted||c.submitCount>0,We=!1;for(let X=0;X<F.length;X++)if(F[X]!==void 0&&Y[X]!==F[X]){We=!0;break}return We&&_e&&(K.current&&clearTimeout(K.current),K.current=setTimeout(()=>{g()},50)),Me.current=[...F],()=>{K.current&&clearTimeout(K.current)}},[te,g,c.isSubmitted,c.submitCount]);let at=_?.fieldsetToggle||Jt,Ie=`${o}-content`,Ee=`${o}-header`;return V("fieldset",{className:y("border-1 border-input p-4 rounded-xl","RemoteFlows__FieldSetField",`RemoteFlows__FieldSetField__${o}`),children:[I("legend",{className:y("text-sm font-semibold px-2",d==="inset"&&"hidden"),children:e}),f?.callToAction&&f?.id&&d==="outset"&&I(Q,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:f.id,children:f.callToAction}),d==="inset"&&V(qt,{children:[V("div",{className:"RemoteFlows__FieldSetField__Header",id:Ee,"data-state":R?"expanded":"collapsed","aria-expanded":R,children:[I("h3",{className:y("RemoteFlows__FieldSetField__Title"),children:e}),u?.toggle?.enabled&&I(at,{isExpanded:R,onToggle:nt,"aria-expanded":R,"aria-controls":Ie,"aria-label":`${R?"Hide":"Show"} ${e}`,className:y("RemoteFlows__FieldSetField__Toggle",u.toggle?.className),children:R?u.toggle.labels?.collapse??"Remove":u.toggle.labels?.expand??"Define"})]}),f?.callToAction&&f?.id&&I(Q,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:f.id,children:f.callToAction})]}),R&&V("div",{id:Ie,"aria-labelledby":Ee,role:"region",children:[n?I("div",{className:"mb-5 RemoteFlows__FieldSetField__Description",dangerouslySetInnerHTML:{__html:ae(n)}}):null,V("div",{className:"grid gap-4",children:[r.map(F=>{if(F.calculateDynamicProperties&&(F={...F,...F.calculateDynamicProperties(te,F)||{}}),F.isVisible===!1||F.deprecated)return null;if(F.inputType==="fieldset")return I(rt,{...F,name:`${m?F.name:`${o}.${F.name}`}`,components:s},`${m?F.name:`${o}.${F.name}`}`);if(F.inputType==="fieldset-flat")return I(rt,{...F,name:`${m?F.name:`${o}.${F.name}`}`,components:s,isFlatFieldset:!0},`${m?F.name:`${o}.${F.name}`}`);let Y=Te[F.inputType];if(F.Component){let{Component:_e}=F;return I(_e,{...F},F.name)}return Y?(F.inputType==="select"&&F.multiple&&(Y=Te["multi-select"]),V(Gt,{children:[I(Y,{...F,name:`${m?F.name:`${o}.${F.name}`}`,component:s?.[F.inputType]}),F.extra?F.extra:null]},`${m?F.name:`${o}.${F.name}`}`)):V("p",{className:"error",children:["Field type ",F.inputType," not supported"]})}),a||null,i?I(ot,{...i}):null]})]})]})}t(rt,"FieldSetField");export{Te as a,ot as b,rt as c};
|
|
2
|
-
//# sourceMappingURL=chunk-26DGUFCY.js.map
|