@remoteoss/remote-flows 0.0.3 → 0.0.4

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.
Files changed (71) hide show
  1. package/README.md +4 -460
  2. package/dist/chunk-6RRSUL7Q.js +2 -0
  3. package/dist/{chunk-K44YP7ZG.js.map → chunk-6RRSUL7Q.js.map} +1 -1
  4. package/dist/chunk-DARQDP44.js +2 -0
  5. package/dist/chunk-DARQDP44.js.map +1 -0
  6. package/dist/chunk-DYB3RWP7.js +20 -0
  7. package/dist/chunk-DYB3RWP7.js.map +1 -0
  8. package/dist/chunk-EEWCEZ3D.js +2 -0
  9. package/dist/chunk-EEWCEZ3D.js.map +1 -0
  10. package/dist/chunk-FGBEOUQK.js +1 -0
  11. package/dist/chunk-KEV7VRZ5.js +2 -0
  12. package/dist/chunk-KEV7VRZ5.js.map +1 -0
  13. package/dist/{chunk-DHJSRW7Y.js → chunk-LT4TLUWZ.js} +2 -2
  14. package/dist/chunk-OLJ2S6A6.js +2 -0
  15. package/dist/chunk-OLJ2S6A6.js.map +1 -0
  16. package/dist/chunk-P5PQMJ4T.js +2 -0
  17. package/dist/chunk-P5PQMJ4T.js.map +1 -0
  18. package/dist/chunk-ZEGD25G2.js +2 -0
  19. package/dist/chunk-ZEGD25G2.js.map +1 -0
  20. package/dist/flows/CostCalculator/CostCalculatorDisclaimer.d.ts +8 -0
  21. package/dist/flows/CostCalculator/CostCalculatorDisclaimer.js +2 -0
  22. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +36 -0
  23. package/dist/flows/CostCalculator/CostCalculatorFlow.js +2 -0
  24. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +29 -0
  25. package/dist/flows/CostCalculator/CostCalculatorForm.js +2 -0
  26. package/dist/flows/CostCalculator/CostCalculatorResetButton.d.ts +5 -0
  27. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +2 -0
  28. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.d.ts +5 -0
  29. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +2 -0
  30. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js.map +1 -0
  31. package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.d.ts +2 -2
  32. package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.d.ts +2 -2
  33. package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.d.ts +2 -2
  34. package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +2 -2
  35. package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
  36. package/dist/flows/CostCalculator/Results/CostCalculatorResultsChart.d.ts +2 -2
  37. package/dist/flows/CostCalculator/Results/CostCalculatorTotalCost.d.ts +2 -2
  38. package/dist/flows/CostCalculator/context.d.ts +38 -0
  39. package/dist/flows/CostCalculator/context.js +2 -0
  40. package/dist/flows/CostCalculator/context.js.map +1 -0
  41. package/dist/flows/CostCalculator/disclaimerUtils.d.ts +10 -0
  42. package/dist/flows/CostCalculator/disclaimerUtils.js +2 -0
  43. package/dist/flows/CostCalculator/disclaimerUtils.js.map +1 -0
  44. package/dist/flows/CostCalculator/hooks.d.ts +2 -17
  45. package/dist/flows/CostCalculator/hooks.js +1 -1
  46. package/dist/flows/CostCalculator/index.d.ts +9 -4
  47. package/dist/flows/CostCalculator/index.js +1 -1
  48. package/dist/flows/CostCalculator/types.d.ts +1 -1
  49. package/dist/flows/CostCalculator/utils.js +1 -1
  50. package/dist/index.d.ts +9 -4
  51. package/dist/index.js +1 -1
  52. package/package.json +1 -1
  53. package/dist/chunk-32G7XF2D.js +0 -2
  54. package/dist/chunk-32G7XF2D.js.map +0 -1
  55. package/dist/chunk-56PULCHS.js +0 -2
  56. package/dist/chunk-56PULCHS.js.map +0 -1
  57. package/dist/chunk-FX6BYIQS.js +0 -1
  58. package/dist/chunk-HMDVBCX2.js +0 -1
  59. package/dist/chunk-K44YP7ZG.js +0 -20
  60. package/dist/flows/CostCalculator/CostCalculator.d.ts +0 -65
  61. package/dist/flows/CostCalculator/CostCalculator.js +0 -2
  62. package/dist/flows/CostCalculator/Disclaimer/Disclaimer.d.ts +0 -8
  63. package/dist/flows/CostCalculator/Disclaimer/Disclaimer.js +0 -2
  64. package/dist/flows/CostCalculator/Disclaimer/index.d.ts +0 -2
  65. package/dist/flows/CostCalculator/Disclaimer/index.js +0 -2
  66. /package/dist/{chunk-FX6BYIQS.js.map → chunk-FGBEOUQK.js.map} +0 -0
  67. /package/dist/{chunk-DHJSRW7Y.js.map → chunk-LT4TLUWZ.js.map} +0 -0
  68. /package/dist/{chunk-HMDVBCX2.js.map → flows/CostCalculator/CostCalculatorDisclaimer.js.map} +0 -0
  69. /package/dist/flows/CostCalculator/{CostCalculator.js.map → CostCalculatorFlow.js.map} +0 -0
  70. /package/dist/flows/CostCalculator/{Disclaimer/Disclaimer.js.map → CostCalculatorForm.js.map} +0 -0
  71. /package/dist/flows/CostCalculator/{Disclaimer/index.js.map → CostCalculatorResetButton.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-DHJSRW7Y.js";import"../../../chunk-HGBJ3RNH.js";import"../../../chunk-BY2NZ5QF.js";import"../../../chunk-Z5SEXEAZ.js";import"../../../chunk-Q2ZB5MOF.js";import"../../../chunk-DE6ICD4X.js";import"../../../chunk-JEULWBZA.js";import"../../../chunk-BIWKEH5R.js";import"../../../chunk-HHNKZK2V.js";import"../../../chunk-ATKR5HCM.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorResults};
1
+ import{a}from"../../../chunk-LT4TLUWZ.js";import"../../../chunk-Q2ZB5MOF.js";import"../../../chunk-JEULWBZA.js";import"../../../chunk-BIWKEH5R.js";import"../../../chunk-HGBJ3RNH.js";import"../../../chunk-BY2NZ5QF.js";import"../../../chunk-Z5SEXEAZ.js";import"../../../chunk-DE6ICD4X.js";import"../../../chunk-HHNKZK2V.js";import"../../../chunk-ATKR5HCM.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorResults};
2
2
  //# sourceMappingURL=CostCalculatorResults.js.map
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
 
3
3
  type VisualBreakDownProps = {
4
4
  chartData: {
@@ -8,6 +8,6 @@ type VisualBreakDownProps = {
8
8
  }[];
9
9
  currency: string;
10
10
  };
11
- declare function CostCalculatorResultsChart({ chartData, currency, }: VisualBreakDownProps): React.JSX.Element;
11
+ declare function CostCalculatorResultsChart({ chartData, currency, }: VisualBreakDownProps): React__default.JSX.Element;
12
12
 
13
13
  export { CostCalculatorResultsChart as default };
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
 
3
3
  type CostCalculatorTotalCostProps = {
4
4
  totalCost: number;
5
5
  currency: string;
6
6
  };
7
- declare function CostCalculatorTotalCost({ totalCost, currency, }: CostCalculatorTotalCostProps): React.JSX.Element;
7
+ declare function CostCalculatorTotalCost({ totalCost, currency, }: CostCalculatorTotalCostProps): React__default.JSX.Element;
8
8
 
9
9
  export { CostCalculatorTotalCost };
@@ -0,0 +1,38 @@
1
+ import { Result } from '../types.js';
2
+ import { useCostCalculator, EstimationError } from './hooks.js';
3
+ import { Field, CostCalculatorEstimationFormValues } from './types.js';
4
+ import * as React from 'react';
5
+ import { C as CostCalculatorEstimateResponse } from '../../types.gen-dIMXHE0Y.js';
6
+ import * as yup from 'yup';
7
+ import { $TSFixMe } from '@remoteoss/json-schema-form';
8
+ import { UseFormReturn } from 'react-hook-form';
9
+ import '@tanstack/react-query';
10
+
11
+ declare const CostCalculatorContext: React.Context<{
12
+ form: UseFormReturn<$TSFixMe> | null;
13
+ formId: string | undefined;
14
+ costCalculatorBag?: ReturnType<typeof useCostCalculator>;
15
+ }>;
16
+ declare const useCostCalculatorContext: () => {
17
+ readonly form: UseFormReturn<any>;
18
+ readonly formId: string | undefined;
19
+ readonly costCalculatorBag: {
20
+ stepState: {
21
+ current: number;
22
+ total: number;
23
+ isLastStep: boolean;
24
+ };
25
+ fields: Field[];
26
+ validationSchema: yup.AnyObjectSchema;
27
+ handleValidation: ((values: Record<string, unknown>) => {
28
+ yupError: $TSFixMe;
29
+ formErrors: $TSFixMe;
30
+ }) | undefined;
31
+ isSubmitting: boolean;
32
+ isLoading: boolean;
33
+ onSubmit: (values: CostCalculatorEstimationFormValues) => Promise<Result<CostCalculatorEstimateResponse, EstimationError>>;
34
+ resetForm: () => void;
35
+ } | undefined;
36
+ };
37
+
38
+ export { CostCalculatorContext, useCostCalculatorContext };
@@ -0,0 +1,2 @@
1
+ import{a,b}from"../../chunk-OLJ2S6A6.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorContext,b as useCostCalculatorContext};
2
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,10 @@
1
+ declare const disclaimerData: {
2
+ data: {
3
+ id: number;
4
+ title: string;
5
+ body: string;
6
+ html_url: string;
7
+ };
8
+ };
9
+
10
+ export { disclaimerData };
@@ -0,0 +1,2 @@
1
+ import{a}from"../../chunk-DYB3RWP7.js";import"../../chunk-AYDF3IFZ.js";export{a as disclaimerData};
2
+ //# sourceMappingURL=disclaimerUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -2,7 +2,7 @@ import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
2
2
  import * as yup from 'yup';
3
3
  import { ValidationError } from 'yup';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
- import { P as PostCreateEstimationError, C as CostCalculatorEstimateResponse, a as CostCalculatorEstimatePdfResponse, b as PostCreateEstimationPdfError, c as CostCalculatorEstimateParams } from '../../types.gen-dIMXHE0Y.js';
5
+ import { C as CostCalculatorEstimateResponse, P as PostCreateEstimationError, a as CostCalculatorEstimatePdfResponse, b as PostCreateEstimationPdfError, c as CostCalculatorEstimateParams } from '../../types.gen-dIMXHE0Y.js';
6
6
  import { CostCalculatorEstimationOptions, Field, CostCalculatorEstimationFormValues } from './types.js';
7
7
  import { Result } from '../types.js';
8
8
 
@@ -53,20 +53,5 @@ declare const useCostCalculator: ({ defaultRegion, estimationOptions }?: UseCost
53
53
  onSubmit: (values: CostCalculatorEstimationFormValues) => Promise<Result<CostCalculatorEstimateResponse, EstimationError>>;
54
54
  resetForm: () => void;
55
55
  };
56
- /**
57
- * Custom hook to fetch disclaimer information.
58
- *
59
- * This hooks returns the disclaimer html content.
60
- *
61
- * @returns {object} - The query object containing the disclaimer data.
62
- */
63
- declare const useCostCalculatorDisclaimer: () => _tanstack_react_query.UseQueryResult<{
64
- data: {
65
- id: number;
66
- title: string;
67
- body: string;
68
- html_url: string;
69
- };
70
- }, Error>;
71
56
 
72
- export { type EstimationError, defaultEstimationOptions, useCostCalculator, useCostCalculatorDisclaimer, useCostCalculatorEstimationPdf };
57
+ export { type EstimationError, defaultEstimationOptions, useCostCalculator, useCostCalculatorEstimationPdf };
@@ -1,2 +1,2 @@
1
- import{d as a,e as b,f as c,g as d}from"../../chunk-K44YP7ZG.js";import"../../chunk-ATKR5HCM.js";import"../../chunk-2AGPO366.js";import"../../chunk-AYDF3IFZ.js";export{b as defaultEstimationOptions,c as useCostCalculator,d as useCostCalculatorDisclaimer,a as useCostCalculatorEstimationPdf};
1
+ import{d as a,e as b,f as c}from"../../chunk-6RRSUL7Q.js";import"../../chunk-2AGPO366.js";import"../../chunk-ATKR5HCM.js";import"../../chunk-AYDF3IFZ.js";export{b as defaultEstimationOptions,c as useCostCalculator,a as useCostCalculatorEstimationPdf};
2
2
  //# sourceMappingURL=hooks.js.map
@@ -1,10 +1,15 @@
1
- export { CostCalculator } from './CostCalculator.js';
2
- export { useCostCalculator, useCostCalculatorDisclaimer, useCostCalculatorEstimationPdf } from './hooks.js';
1
+ export { CostCalculatorFlow } from './CostCalculatorFlow.js';
2
+ export { CostCalculatorForm } from './CostCalculatorForm.js';
3
+ export { CostCalculatorSubmitButton } from './CostCalculatorSubmitButton.js';
4
+ export { CostCalculatorResetButton } from './CostCalculatorResetButton.js';
5
+ export { CostCalculatorDisclaimer } from './CostCalculatorDisclaimer.js';
6
+ export { useCostCalculator, useCostCalculatorEstimationPdf } from './hooks.js';
7
+ export { disclaimerData } from './disclaimerUtils.js';
3
8
  export { CostCalculatorResults } from './Results/CostCalculatorResults.js';
4
9
  export { buildPayload as buildCostCalculatorEstimationPayload } from './utils.js';
5
- import 'react';
6
- import '../../types.gen-dIMXHE0Y.js';
7
10
  import './types.js';
11
+ import '../../types.gen-dIMXHE0Y.js';
12
+ import 'react';
8
13
  import '@remoteoss/json-schema-form';
9
14
  import 'yup';
10
15
  import '@tanstack/react-query';
@@ -1,2 +1,2 @@
1
- import"../../chunk-HMDVBCX2.js";import{a as f}from"../../chunk-DHJSRW7Y.js";import"../../chunk-HGBJ3RNH.js";import"../../chunk-BY2NZ5QF.js";import"../../chunk-Z5SEXEAZ.js";import"../../chunk-Q2ZB5MOF.js";import"../../chunk-DE6ICD4X.js";import"../../chunk-JEULWBZA.js";import"../../chunk-BIWKEH5R.js";import{a as e}from"../../chunk-32G7XF2D.js";import"../../chunk-FX6BYIQS.js";import"../../chunk-56PULCHS.js";import"../../chunk-HHNKZK2V.js";import{c as a,d as b,f as c,g as d}from"../../chunk-K44YP7ZG.js";import"../../chunk-ATKR5HCM.js";import"../../chunk-2AGPO366.js";import"../../chunk-AYDF3IFZ.js";export{e as CostCalculator,f as CostCalculatorResults,a as buildCostCalculatorEstimationPayload,c as useCostCalculator,d as useCostCalculatorDisclaimer,b as useCostCalculatorEstimationPdf};
1
+ import"../../chunk-FGBEOUQK.js";import{a as j}from"../../chunk-LT4TLUWZ.js";import"../../chunk-Q2ZB5MOF.js";import"../../chunk-JEULWBZA.js";import"../../chunk-BIWKEH5R.js";import"../../chunk-HGBJ3RNH.js";import"../../chunk-BY2NZ5QF.js";import"../../chunk-Z5SEXEAZ.js";import"../../chunk-DE6ICD4X.js";import{a as i}from"../../chunk-P5PQMJ4T.js";import{a as h}from"../../chunk-DYB3RWP7.js";import{a as d}from"../../chunk-KEV7VRZ5.js";import{c as a,d as b,f as c}from"../../chunk-6RRSUL7Q.js";import"../../chunk-2AGPO366.js";import{a as e}from"../../chunk-EEWCEZ3D.js";import{a as g}from"../../chunk-DARQDP44.js";import{a as f}from"../../chunk-ZEGD25G2.js";import"../../chunk-HHNKZK2V.js";import"../../chunk-ATKR5HCM.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-AYDF3IFZ.js";export{i as CostCalculatorDisclaimer,d as CostCalculatorFlow,e as CostCalculatorForm,g as CostCalculatorResetButton,j as CostCalculatorResults,f as CostCalculatorSubmitButton,a as buildCostCalculatorEstimationPayload,h as disclaimerData,c as useCostCalculator,b as useCostCalculatorEstimationPdf};
2
2
  //# sourceMappingURL=index.js.map
@@ -16,7 +16,7 @@ type Field = {
16
16
  description?: string;
17
17
  fields?: Field[];
18
18
  type: 'string' | 'integer' | 'number' | 'object' | 'boolean';
19
- inputType: 'text' | 'textarea' | 'number' | 'select' | 'money' | 'radio' | 'checkbox' | 'date' | 'hidden';
19
+ inputType: 'text' | 'textarea' | 'number' | 'select' | 'money' | 'radio' | 'checkbox' | 'date' | 'hidden' | 'file';
20
20
  required: boolean;
21
21
  jsonType?: string;
22
22
  isVisible: boolean;
@@ -1,2 +1,2 @@
1
- import{b as a,c as b}from"../../chunk-K44YP7ZG.js";import"../../chunk-ATKR5HCM.js";import"../../chunk-2AGPO366.js";import"../../chunk-AYDF3IFZ.js";export{b as buildPayload,a as buildValidationSchema};
1
+ import{b as a,c as b}from"../../chunk-6RRSUL7Q.js";import"../../chunk-2AGPO366.js";import"../../chunk-ATKR5HCM.js";import"../../chunk-AYDF3IFZ.js";export{b as buildPayload,a as buildValidationSchema};
2
2
  //# sourceMappingURL=utils.js.map
package/dist/index.d.ts CHANGED
@@ -1,10 +1,15 @@
1
- export { CostCalculator } from './flows/CostCalculator/CostCalculator.js';
2
- export { useCostCalculator, useCostCalculatorDisclaimer, useCostCalculatorEstimationPdf } from './flows/CostCalculator/hooks.js';
1
+ export { CostCalculatorFlow } from './flows/CostCalculator/CostCalculatorFlow.js';
2
+ export { CostCalculatorForm } from './flows/CostCalculator/CostCalculatorForm.js';
3
+ export { CostCalculatorSubmitButton } from './flows/CostCalculator/CostCalculatorSubmitButton.js';
4
+ export { CostCalculatorResetButton } from './flows/CostCalculator/CostCalculatorResetButton.js';
5
+ export { CostCalculatorDisclaimer } from './flows/CostCalculator/CostCalculatorDisclaimer.js';
6
+ export { useCostCalculator, useCostCalculatorEstimationPdf } from './flows/CostCalculator/hooks.js';
7
+ export { disclaimerData } from './flows/CostCalculator/disclaimerUtils.js';
3
8
  export { CostCalculatorResults } from './flows/CostCalculator/Results/CostCalculatorResults.js';
4
9
  export { buildPayload as buildCostCalculatorEstimationPayload } from './flows/CostCalculator/utils.js';
5
10
  export { CostCalculatorEstimationFormValues, CostCalculatorEstimationOptions, Field } from './flows/CostCalculator/types.js';
6
11
  import { ValidationError } from 'yup';
7
- import React, { PropsWithChildren } from 'react';
12
+ import React__default, { PropsWithChildren } from 'react';
8
13
  export { N as ActionError, d_ as ActionErrors, c1 as AmountTaxType, a1 as ApproveExpenseParams, eD as ApproveTimeoffParams, c3 as ApprovedTravelLetter, br as ApprovedWorkAuthozation, ey as AuthorizationCodeParams, af as AuthorizationCodeResponse, dz as BadRequestResponse, k as Base64File, cQ as BaseTokenResponse, cP as Benefit, aD as BenefitGroup, cp as BenefitOffer, Q as BenefitOfferByEmploymentResponse, aF as BenefitOffersByEmployment, z as BenefitOffersEmployment, B as BenefitProvider, a6 as BenefitRenewalRequestsBenefitRenewalRequest, cT as BenefitRenewalRequestsBenefitRenewalRequestFormResponse, be as BenefitRenewalRequestsBenefitRenewalRequestResponse, ee as BenefitRenewalRequestsCreateBenefitRenewalRequest, eG as BenefitRenewalRequestsCreateBenefitRenewalRequestResponse, em as BenefitRenewalRequestsListBenefitRenewalRequestResponse, bh as BenefitRenewalRequestsMinimalBenefitGroup, cJ as BenefitRenewalRequestsMinimalBenefitRenewalResponse, a9 as BenefitRenewalRequestsUpdateBenefitRenewalRequest, e5 as BenefitTier, bS as BillingDocument, eP as BillingDocumentAmountItem, t as BillingDocumentBreakdownItem, u as BillingDocumentBreakdownResponse, aH as BillingDocumentResponse, bK as BillingDocumentsResponse, av as BulkContractorInvoiceScheduleCreateParams, dJ as BulkContractorInvoiceScheduleCreateResponse, e0 as CancelTimeoffParams, aX as ClientCredentialsParams, ab as ClientCredentialsResponse, p$ as ClientOptions, bM as CommonIncentiveParams, dZ as CompaniesResponse, de as Company, ah as CompanyAlreadyExistsErrorResponse, eK as CompanyCreationConflictErrorResponse, aB as CompanyCreationResponse, Y as CompanyCurrenciesResponse, dD as CompanyCurrency, aa as CompanyDepartment, n as CompanyDepartmentCreatedResponse, dX as CompanyFormResponse, dc as CompanyManager, aK as CompanyManagerData, bC as CompanyManagerParams, al as CompanyManagerResponse, ac as CompanyManagersResponse, et as CompanyNotEligibleForCreationErrorResponse, bA as CompanyResponse, a$ as CompanyStructureNode, dO as CompanyStructureNodesResponse, bE as CompanyWithTokensResponse, ae as Compensation, cC as CompleteOnboarding, $ as ConflictErrorResponse, du as ConflictResponse, c2 as ContractAmendment, co as ContractAmendmentAutomatableResponse, cv as ContractAmendmentFormResponse, eR as ContractAmendmentResponse, dQ as ContractAmendmentStatus, b7 as ContractPendingChanges, eO as ContractorInvoice, ap as ContractorInvoiceId, aL as ContractorInvoiceItem, e as ContractorInvoiceItemType, x as ContractorInvoiceResponse, aS as ContractorInvoiceSchedule, bF as ContractorInvoiceScheduleCreateParams, dN as ContractorInvoiceScheduleCreateResponseFailure, eS as ContractorInvoiceScheduleCreateResponseSuccess, eH as ContractorInvoiceScheduleItem, dR as ContractorInvoiceSchedulePeriodicity, cH as ContractorInvoiceScheduleResponse, bN as ContractorInvoiceScheduleStatus, ad as ContractorInvoiceStatus, e4 as CostCalculatorBenefitParam, bo as CostCalculatorCost, bx as CostCalculatorCosts, bR as CostCalculatorCountryAvailability, b3 as CostCalculatorCountryLevelRegion, cE as CostCalculatorEmployment, aj as CostCalculatorEmploymentParam, c as CostCalculatorEstimateParams, a as CostCalculatorEstimatePdfResponse, C as CostCalculatorEstimateResponse, bQ as CostCalculatorListCountryResponse, c9 as Costs, ba as CountriesResponse, au as Country, f as CountryCode, cr as CountryFormResponse, cb as CountrySubdivision, dv as CountrySummariesResponse, aQ as CountrySummary, cU as CreateApprovedTimeoffParams, el as CreateCompanyDepartmentParams, cF as CreateCompanyParams, er as CreateContractAmendmentParams, d as CreateCurrencyCustomFieldDefinitionParams, e3 as CreateCustomFieldDefinitionParams, o as CreateDataSyncParams, d9 as CreateEmploymentCustomFieldResponse, dt as CreateGeneralCustomFieldDefinitionParams, aw as CreateOffboardingParams, aA as CreateOneTimeIncentiveParams, bw as CreateParams, bs as CreateParamsDeprecated, dV as CreateProbationCompletionLetterParams, ef as CreateProbationExtensionParams, dq as CreateRecurringIncentiveParams, df as CreateSingleSelectCustomFieldDefinitionParams, d6 as CreateSsoConfigurationParams, j as CreateSsoConfigurationResponse, ed as CreateSsoConfigurationResult, ar as CreateTimeoffParams, cL as CreateTimesheetParams, b4 as CreateWebhookCallbackParams, bg as Currency, A as CurrencyCode, dw as CurrencyDefinition, cx as CustomFieldDataEntryAccess, aV as CustomFieldDataType, aI as CustomFieldSimpleDataType, c_ as CustomFieldVisibilityScope, ea as Cycle, s as CycleFrequency, bb as DataSyncEvent, D as DateTime, dY as DateTimeIso8601, ez as DeclineExpenseParams, c4 as DeclineTimeoffParams, ct as DeclinedTravelLetter, i as DeclinedWorkAuthozation, pn as DeleteDeleteCompanyManagerData, pp as DeleteDeleteCompanyManagerError, po as DeleteDeleteCompanyManagerErrors, pr as DeleteDeleteCompanyManagerResponse, pq as DeleteDeleteCompanyManagerResponses, nZ as DeleteDeleteIncentiveData, n$ as DeleteDeleteIncentiveError, n_ as DeleteDeleteIncentiveErrors, o1 as DeleteDeleteIncentiveResponse, o0 as DeleteDeleteIncentiveResponses, hq as DeleteDeleteRecurringIncentiveData, hs as DeleteDeleteRecurringIncentiveError, hr as DeleteDeleteRecurringIncentiveErrors, hu as DeleteDeleteRecurringIncentiveResponse, ht as DeleteDeleteRecurringIncentiveResponses, jV as DeleteDeleteWebhookCallbackData, jX as DeleteDeleteWebhookCallbackError, jW as DeleteDeleteWebhookCallbackErrors, jZ as DeleteDeleteWebhookCallbackResponse, jY as DeleteDeleteWebhookCallbackResponses, ay as DeleteRecurringIncentiveResponse, dU as DepartmentId, Z as DownloadFileResponse, dI as DraftExpense, d5 as EmployeeLeavePolicy, cM as EmployeeStats, w as Employment, aN as EmploymentBasicParams, a4 as EmploymentBasicResponse, p as EmploymentContract, F as EmploymentContractPendingChangesResponse, dd as EmploymentContractStatus, cB as EmploymentCreationResponse, l as EmploymentCustomField, eA as EmploymentCustomFieldValue, r as EmploymentCustomFieldValueJsonValue, h as EmploymentCustomFieldValueResponse, aZ as EmploymentDocument, b1 as EmploymentFullParams, eQ as EmploymentId, b5 as EmploymentImage, dM as EmploymentJobResponse, cj as EmploymentLifecycleStage, eM as EmploymentResponse, bl as EmploymentSeniorityDate, S as EmploymentShowResponse, cD as EmploymentStatus, E as EmploymentTermType, bO as EmploymentUpdateParams, eN as Expense, cg as ExpenseOrDraft, J as ExpenseResponse, aW as File, cz as FileParams, eI as ForbiddenResponse, db as FullParams, aT as FullParamsDeprecated, ei as GenericFile, nU as GetCurrentIdentityData, nW as GetCurrentIdentityError, nV as GetCurrentIdentityErrors, nY as GetCurrentIdentityResponse, nX as GetCurrentIdentityResponses, fO as GetDetailsSsoConfigurationData, fQ as GetDetailsSsoConfigurationError, fP as GetDetailsSsoConfigurationErrors, fS as GetDetailsSsoConfigurationResponse, fR as GetDetailsSsoConfigurationResponses, oL as GetDownloadByIdExpenseReceiptData, oN as GetDownloadByIdExpenseReceiptError, oM as GetDownloadByIdExpenseReceiptErrors, oP as GetDownloadByIdExpenseReceiptResponse, oO as GetDownloadByIdExpenseReceiptResponses, iW as GetDownloadExpenseReceiptData, iY as GetDownloadExpenseReceiptError, iX as GetDownloadExpenseReceiptErrors, i_ as GetDownloadExpenseReceiptResponse, iZ as GetDownloadExpenseReceiptResponses, lN as GetDownloadPayslipPayslipData, lP as GetDownloadPayslipPayslipError, lO as GetDownloadPayslipPayslipErrors, lR as GetDownloadPayslipPayslipResponse, lQ as GetDownloadPayslipPayslipResponses, pW as GetDownloadPdfBillingDocumentData, pY as GetDownloadPdfBillingDocumentError, pX as GetDownloadPdfBillingDocumentErrors, p_ as GetDownloadPdfBillingDocumentResponse, pZ as GetDownloadPdfBillingDocumentResponses, iH as GetDownloadResignationLetterData, iJ as GetDownloadResignationLetterError, iI as GetDownloadResignationLetterErrors, iL as GetDownloadResignationLetterResponse, iK as GetDownloadResignationLetterResponses, pH as GetGetBreakdownBillingDocumentData, pJ as GetGetBreakdownBillingDocumentError, pI as GetGetBreakdownBillingDocumentErrors, pL as GetGetBreakdownBillingDocumentResponse, pK as GetGetBreakdownBillingDocumentResponses, ga as GetGetIdentityVerificationDataIdentityVerificationData, gc as GetGetIdentityVerificationDataIdentityVerificationError, gb as GetGetIdentityVerificationDataIdentityVerificationErrors, ge as GetGetIdentityVerificationDataIdentityVerificationResponse, gd as GetGetIdentityVerificationDataIdentityVerificationResponses, g0 as GetIndexBenefitOfferData, g2 as GetIndexBenefitOfferError, g1 as GetIndexBenefitOfferErrors, g4 as GetIndexBenefitOfferResponse, g3 as GetIndexBenefitOfferResponses, or as GetIndexBenefitOffersByEmploymentData, ot as GetIndexBenefitOffersByEmploymentError, os as GetIndexBenefitOffersByEmploymentErrors, ov as GetIndexBenefitOffersByEmploymentResponse, ou as GetIndexBenefitOffersByEmploymentResponses, om as GetIndexBenefitOffersCountrySummaryData, oo as GetIndexBenefitOffersCountrySummaryError, on as GetIndexBenefitOffersCountrySummaryErrors, oq as GetIndexBenefitOffersCountrySummaryResponse, op as GetIndexBenefitOffersCountrySummaryResponses, k8 as GetIndexBenefitRenewalRequestData, ka as GetIndexBenefitRenewalRequestError, k9 as GetIndexBenefitRenewalRequestErrors, kc as GetIndexBenefitRenewalRequestResponse, kb as GetIndexBenefitRenewalRequestResponses, jQ as GetIndexBillingDocumentData, jS as GetIndexBillingDocumentError, jR as GetIndexBillingDocumentErrors, jU as GetIndexBillingDocumentResponse, jT as GetIndexBillingDocumentResponses, mu as GetIndexCompanyCurrencyData, mw as GetIndexCompanyCurrencyError, mv as GetIndexCompanyCurrencyErrors, my as GetIndexCompanyCurrencyResponse, mx as GetIndexCompanyCurrencyResponses, p8 as GetIndexCompanyData, kx as GetIndexCompanyDepartmentData, kz as GetIndexCompanyDepartmentError, ky as GetIndexCompanyDepartmentErrors, kB as GetIndexCompanyDepartmentResponse, kA as GetIndexCompanyDepartmentResponses, pa as GetIndexCompanyError, p9 as GetIndexCompanyErrors, jy as GetIndexCompanyManagerData, jA as GetIndexCompanyManagerError, jz as GetIndexCompanyManagerErrors, jC as GetIndexCompanyManagerResponse, jB as GetIndexCompanyManagerResponses, pc as GetIndexCompanyResponse, pb as GetIndexCompanyResponses, iM as GetIndexContractAmendmentData, iO as GetIndexContractAmendmentError, iN as GetIndexContractAmendmentErrors, iQ as GetIndexContractAmendmentResponse, iP as GetIndexContractAmendmentResponses, fJ as GetIndexContractorInvoiceData, fL as GetIndexContractorInvoiceError, fK as GetIndexContractorInvoiceErrors, fN as GetIndexContractorInvoiceResponse, fM as GetIndexContractorInvoiceResponses, jI as GetIndexCountryData, jK as GetIndexCountryResponse, jJ as GetIndexCountryResponses, fg as GetIndexDataSyncData, fi as GetIndexDataSyncError, fh as GetIndexDataSyncErrors, fk as GetIndexDataSyncResponse, fj as GetIndexDataSyncResponses, nq as GetIndexEmploymentCompanyStructureNodeData, ns as GetIndexEmploymentCompanyStructureNodeError, nr as GetIndexEmploymentCompanyStructureNodeErrors, nu as GetIndexEmploymentCompanyStructureNodeResponse, nt as GetIndexEmploymentCompanyStructureNodeResponses, p3 as GetIndexEmploymentContractData, p5 as GetIndexEmploymentContractError, p4 as GetIndexEmploymentContractErrors, p7 as GetIndexEmploymentContractResponse, p6 as GetIndexEmploymentContractResponses, mk as GetIndexEmploymentCustomFieldData, mm as GetIndexEmploymentCustomFieldError, ml as GetIndexEmploymentCustomFieldErrors, mo as GetIndexEmploymentCustomFieldResponse, mn as GetIndexEmploymentCustomFieldResponses, nv as GetIndexEmploymentCustomFieldValueData, nx as GetIndexEmploymentCustomFieldValueError, nw as GetIndexEmploymentCustomFieldValueErrors, nz as GetIndexEmploymentCustomFieldValueResponse, ny as GetIndexEmploymentCustomFieldValueResponses, fz as GetIndexEmploymentData, fB as GetIndexEmploymentError, fA as GetIndexEmploymentErrors, gu as GetIndexEmploymentJobData, gw as GetIndexEmploymentJobError, gv as GetIndexEmploymentJobErrors, gy as GetIndexEmploymentJobResponse, gx as GetIndexEmploymentJobResponses, fD as GetIndexEmploymentResponse, fC as GetIndexEmploymentResponses, gz as GetIndexEorPayrollCalendarData, gB as GetIndexEorPayrollCalendarError, gA as GetIndexEorPayrollCalendarErrors, gD as GetIndexEorPayrollCalendarResponse, gC as GetIndexEorPayrollCalendarResponses, gT as GetIndexExpenseData, gV as GetIndexExpenseError, gU as GetIndexExpenseErrors, gX as GetIndexExpenseResponse, gW as GetIndexExpenseResponses, gk as GetIndexHolidayData, gm as GetIndexHolidayError, gl as GetIndexHolidayErrors, go as GetIndexHolidayResponse, gn as GetIndexHolidayResponses, hv as GetIndexIncentiveData, hx as GetIndexIncentiveError, hw as GetIndexIncentiveErrors, hz as GetIndexIncentiveResponse, hy as GetIndexIncentiveResponses, ks as GetIndexLeavePoliciesSummaryData, ku as GetIndexLeavePoliciesSummaryError, kt as GetIndexLeavePoliciesSummaryErrors, kw as GetIndexLeavePoliciesSummaryResponse, kv as GetIndexLeavePoliciesSummaryResponses, eT as GetIndexOffboardingData, eV as GetIndexOffboardingError, eU as GetIndexOffboardingErrors, eX as GetIndexOffboardingResponse, eW as GetIndexOffboardingResponses, l9 as GetIndexPayrollCalendarData, lb as GetIndexPayrollCalendarError, la as GetIndexPayrollCalendarErrors, ld as GetIndexPayrollCalendarResponse, lc as GetIndexPayrollCalendarResponses, oG as GetIndexPayslipData, oI as GetIndexPayslipError, oH as GetIndexPayslipErrors, oK as GetIndexPayslipResponse, oJ as GetIndexPayslipResponses, gE as GetIndexRecurringIncentiveData, gG as GetIndexRecurringIncentiveError, gF as GetIndexRecurringIncentiveErrors, gI as GetIndexRecurringIncentiveResponse, gH as GetIndexRecurringIncentiveResponses, px as GetIndexScheduledContractorInvoiceData, pz as GetIndexScheduledContractorInvoiceError, py as GetIndexScheduledContractorInvoiceErrors, pB as GetIndexScheduledContractorInvoiceResponse, pA as GetIndexScheduledContractorInvoiceResponses, oV as GetIndexTimeoffData, oX as GetIndexTimeoffError, oW as GetIndexTimeoffErrors, oZ as GetIndexTimeoffResponse, oY as GetIndexTimeoffResponses, kR as GetIndexTimesheetData, kT as GetIndexTimesheetError, kS as GetIndexTimesheetErrors, kV as GetIndexTimesheetResponse, kU as GetIndexTimesheetResponses, k3 as GetIndexTravelLetterRequestData, k5 as GetIndexTravelLetterRequestError, k4 as GetIndexTravelLetterRequestErrors, k7 as GetIndexTravelLetterRequestResponse, k6 as GetIndexTravelLetterRequestResponses, oh as GetIndexWorkAuthorizationRequestData, oj as GetIndexWorkAuthorizationRequestError, oi as GetIndexWorkAuthorizationRequestErrors, ol as GetIndexWorkAuthorizationRequestResponse, ok as GetIndexWorkAuthorizationRequestResponses, mJ as GetPendingChangesEmploymentContractData, mL as GetPendingChangesEmploymentContractError, mK as GetPendingChangesEmploymentContractErrors, mN as GetPendingChangesEmploymentContractResponse, mM as GetPendingChangesEmploymentContractResponses, hg as GetSchemaBenefitRenewalRequestData, hi as GetSchemaBenefitRenewalRequestError, hh as GetSchemaBenefitRenewalRequestErrors, hk as GetSchemaBenefitRenewalRequestResponse, hj as GetSchemaBenefitRenewalRequestResponses, ng as GetShowBenefitRenewalRequestData, ni as GetShowBenefitRenewalRequestError, nh as GetShowBenefitRenewalRequestErrors, nk as GetShowBenefitRenewalRequestResponse, nj as GetShowBenefitRenewalRequestResponses, hZ as GetShowBillingDocumentData, h$ as GetShowBillingDocumentError, h_ as GetShowBillingDocumentErrors, i1 as GetShowBillingDocumentResponse, i0 as GetShowBillingDocumentResponses, is as GetShowCompanyData, iu as GetShowCompanyError, it as GetShowCompanyErrors, ps as GetShowCompanyManagerData, pu as GetShowCompanyManagerError, pt as GetShowCompanyManagerErrors, pw as GetShowCompanyManagerResponse, pv as GetShowCompanyManagerResponses, iw as GetShowCompanyResponse, iv as GetShowCompanyResponses, fX as GetShowCompanySchemaData, fZ as GetShowCompanySchemaError, fY as GetShowCompanySchemaErrors, f$ as GetShowCompanySchemaResponse, f_ as GetShowCompanySchemaResponses, jt as GetShowContractAmendmentData, jv as GetShowContractAmendmentError, ju as GetShowContractAmendmentErrors, jx as GetShowContractAmendmentResponse, jw as GetShowContractAmendmentResponses, fb as GetShowContractAmendmentSchemaData, fd as GetShowContractAmendmentSchemaError, fc as GetShowContractAmendmentSchemaErrors, ff as GetShowContractAmendmentSchemaResponse, fe as GetShowContractAmendmentSchemaResponses, fu as GetShowContractorInvoiceData, fw as GetShowContractorInvoiceError, fv as GetShowContractorInvoiceErrors, fy as GetShowContractorInvoiceResponse, fx as GetShowContractorInvoiceResponses, nF as GetShowEmploymentCustomFieldValueData, nH as GetShowEmploymentCustomFieldValueError, nG as GetShowEmploymentCustomFieldValueErrors, nJ as GetShowEmploymentCustomFieldValueResponse, nI as GetShowEmploymentCustomFieldValueResponses, kW as GetShowEmploymentData, kY as GetShowEmploymentError, kX as GetShowEmploymentErrors, k_ as GetShowEmploymentResponse, kZ as GetShowEmploymentResponses, n1 as GetShowExpenseData, n3 as GetShowExpenseError, n2 as GetShowExpenseErrors, n5 as GetShowExpenseResponse, n4 as GetShowExpenseResponses, jo as GetShowFileData, jq as GetShowFileError, jp as GetShowFileErrors, js as GetShowFileResponse, jr as GetShowFileResponses, jj as GetShowFormCountryData, jl as GetShowFormCountryError, jk as GetShowFormCountryErrors, jn as GetShowFormCountryResponse, jm as GetShowFormCountryResponses, o2 as GetShowIncentiveData, o4 as GetShowIncentiveError, o3 as GetShowIncentiveErrors, o6 as GetShowIncentiveResponse, o5 as GetShowIncentiveResponses, lj as GetShowOffboardingData, ll as GetShowOffboardingError, lk as GetShowOffboardingErrors, ln as GetShowOffboardingResponse, lm as GetShowOffboardingResponses, kn as GetShowPayslipData, kp as GetShowPayslipError, ko as GetShowPayslipErrors, kr as GetShowPayslipResponse, kq as GetShowPayslipResponses, fp as GetShowProbationCompletionLetterData, fr as GetShowProbationCompletionLetterError, fq as GetShowProbationCompletionLetterErrors, ft as GetShowProbationCompletionLetterResponse, fs as GetShowProbationCompletionLetterResponses, oB as GetShowProbationExtensionData, oD as GetShowProbationExtensionError, oC as GetShowProbationExtensionErrors, oF as GetShowProbationExtensionResponse, oE as GetShowProbationExtensionResponses, le as GetShowRegionFieldData, lg as GetShowRegionFieldError, lf as GetShowRegionFieldErrors, li as GetShowRegionFieldResponse, lh as GetShowRegionFieldResponses, mO as GetShowResignationData, mQ as GetShowResignationError, mP as GetShowResignationErrors, mS as GetShowResignationResponse, mR as GetShowResignationResponses, hK as GetShowScheduledContractorInvoiceData, hM as GetShowScheduledContractorInvoiceError, hL as GetShowScheduledContractorInvoiceErrors, hO as GetShowScheduledContractorInvoiceResponse, hN as GetShowScheduledContractorInvoiceResponses, kM as GetShowSchemaData, kO as GetShowSchemaError, kN as GetShowSchemaErrors, kQ as GetShowSchemaResponse, kP as GetShowSchemaResponses, h1 as GetShowSsoConfigurationData, h3 as GetShowSsoConfigurationError, h2 as GetShowSsoConfigurationErrors, h5 as GetShowSsoConfigurationResponse, h4 as GetShowSsoConfigurationResponses, je as GetShowTimeoffBalanceData, jg as GetShowTimeoffBalanceError, jf as GetShowTimeoffBalanceErrors, ji as GetShowTimeoffBalanceResponse, jh as GetShowTimeoffBalanceResponses, lS as GetShowTimeoffData, lU as GetShowTimeoffError, lT as GetShowTimeoffErrors, lW as GetShowTimeoffResponse, lV as GetShowTimeoffResponses, f1 as GetShowTimesheetData, f3 as GetShowTimesheetError, f2 as GetShowTimesheetErrors, f5 as GetShowTimesheetResponse, f4 as GetShowTimesheetResponses, i$ as GetShowTravelLetterRequestData, j1 as GetShowTravelLetterRequestError, j0 as GetShowTravelLetterRequestErrors, j3 as GetShowTravelLetterRequestResponse, j2 as GetShowTravelLetterRequestResponses, i6 as GetShowWorkAuthorizationRequestData, i8 as GetShowWorkAuthorizationRequestError, i7 as GetShowWorkAuthorizationRequestErrors, ia as GetShowWorkAuthorizationRequestResponse, i9 as GetShowWorkAuthorizationRequestResponses, lt as GetSupportedCountryData, lv as GetSupportedCountryError, lu as GetSupportedCountryErrors, lx as GetSupportedCountryResponse, lw as GetSupportedCountryResponses, lD as GetTimeoffTypesTimeoffData, lF as GetTimeoffTypesTimeoffError, lE as GetTimeoffTypesTimeoffErrors, lH as GetTimeoffTypesTimeoffResponse, lG as GetTimeoffTypesTimeoffResponses, H as Holiday, y as HolidaysResponse, cs as HoursAndMinutes, eq as IdentityClientCredentialsResponse, ds as IdentityCompany, dg as IdentityCompanyAccessTokenResponse, a0 as IdentityCurrentResponse, cl as IdentityCustomerAccessTokenResponse, dK as IdentityIntegration, bv as IdentityUser, I as IdentityVerification, K as IdentityVerificationResponse, cq as Incentive, G as IncentiveResponse, aG as InternalServerErrorResponse, cN as Job, as as JobAssociation, bk as JsonSchema, ew as JsonSchemaResponse, da as LeavePolicy, cA as LeavePolicySummary, ao as LimitedDaysandHoursResponse, ch as ListCompanyDepartmentsPaginatedResponse, ex as ListContractAmendmentResponse, bf as ListContractorInvoiceSchedulesResponse, ai as ListContractorInvoicesResponse, at as ListDataSyncEventsResponse, eo as ListEmploymentContractResponse, cW as ListEmploymentCustomFieldValuePaginatedResponse, dS as ListEmploymentCustomFieldValueResponse, b2 as ListEmploymentCustomFieldsResponse, dA as ListEmploymentsResponse, cR as ListExpenseResponse, eg as ListIncentivesResponse, bH as ListLeavePoliciesSummaryResponse, bG as ListOffboardingResponse, dB as ListPayslipsResponse, L as ListRecurringIncentivesResponse, cf as ListTimeoffResponse, e1 as ListTimeoffTypesResponse, c7 as ListTimesheetsResponse, bD as ListTravelLettersResponse, d8 as ListWorkAuthorizationRequestsResponse, d7 as MagicLinkParams, ci as MagicLinkResponse, ag as MaybeBenefitRenewalRequestsMinimalBenefitRenewalResponse, a3 as MaybeBenefitTier, aC as MaybeCurrencyDefinition, ca as MaybeUnifiedEmploymentBenefitTier, bp as MaybeUnifiedMinimalBenefitGroup, ep as MessageResponse, eu as MinimalContractAmendment, v as MinimalCountry, bZ as MinimalEmployment, M as MinimalRegion, _ as MinimalTimesheet, aE as MinimalTimesheetResponse, aO as NotFoundResponse, b0 as NullableApproverId, a7 as NullableDateTime, aq as NullableMinimalBenefitTier, V as OAuth2TokenParams, bq as OAuth2Tokens, aJ as Offboarding, b6 as OffboardingFile, aY as OffboardingResponse, bI as OfferedBenefitGroup, O as OfferedBenefitTier, cw as OnboardingTasks, bj as OptionValue, ec as ParameterError, di as ParameterErrors, dT as ParamsToCreateExpense, ix as PatchUpdateCompany2Data, iz as PatchUpdateCompany2Error, iy as PatchUpdateCompany2Errors, iB as PatchUpdateCompany2Response, iA as PatchUpdateCompany2Responses, iC as PatchUpdateCompanyData, iE as PatchUpdateCompanyError, iD as PatchUpdateCompanyErrors, iG as PatchUpdateCompanyResponse, iF as PatchUpdateCompanyResponses, k$ as PatchUpdateEmployment2Data, l1 as PatchUpdateEmployment2Error, l0 as PatchUpdateEmployment2Errors, l3 as PatchUpdateEmployment2Response, l2 as PatchUpdateEmployment2Responses, mE as PatchUpdateEmployment3Data, mG as PatchUpdateEmployment3Error, mF as PatchUpdateEmployment3Errors, mI as PatchUpdateEmployment3Response, mH as PatchUpdateEmployment3Responses, mz as PatchUpdateEmployment4Data, mB as PatchUpdateEmployment4Error, mA as PatchUpdateEmployment4Errors, mD as PatchUpdateEmployment4Response, mC as PatchUpdateEmployment4Responses, nK as PatchUpdateEmploymentCustomFieldValue2Data, nM as PatchUpdateEmploymentCustomFieldValue2Error, nL as PatchUpdateEmploymentCustomFieldValue2Errors, nO as PatchUpdateEmploymentCustomFieldValue2Response, nN as PatchUpdateEmploymentCustomFieldValue2Responses, nP as PatchUpdateEmploymentCustomFieldValueData, nR as PatchUpdateEmploymentCustomFieldValueError, nQ as PatchUpdateEmploymentCustomFieldValueErrors, nT as PatchUpdateEmploymentCustomFieldValueResponse, nS as PatchUpdateEmploymentCustomFieldValueResponses, l4 as PatchUpdateEmploymentData, l6 as PatchUpdateEmploymentError, l5 as PatchUpdateEmploymentErrors, l8 as PatchUpdateEmploymentResponse, l7 as PatchUpdateEmploymentResponses, n6 as PatchUpdateExpense2Data, n8 as PatchUpdateExpense2Error, n7 as PatchUpdateExpense2Errors, na as PatchUpdateExpense2Response, n9 as PatchUpdateExpense2Responses, nb as PatchUpdateExpenseData, nd as PatchUpdateExpenseError, nc as PatchUpdateExpenseErrors, nf as PatchUpdateExpenseResponse, ne as PatchUpdateExpenseResponses, o7 as PatchUpdateIncentive2Data, o9 as PatchUpdateIncentive2Error, o8 as PatchUpdateIncentive2Errors, ob as PatchUpdateIncentive2Response, oa as PatchUpdateIncentive2Responses, oc as PatchUpdateIncentiveData, oe as PatchUpdateIncentiveError, od as PatchUpdateIncentiveErrors, og as PatchUpdateIncentiveResponse, of as PatchUpdateIncentiveResponses, hP as PatchUpdateScheduledContractorInvoice2Data, hR as PatchUpdateScheduledContractorInvoice2Error, hQ as PatchUpdateScheduledContractorInvoice2Errors, hT as PatchUpdateScheduledContractorInvoice2Response, hS as PatchUpdateScheduledContractorInvoice2Responses, hU as PatchUpdateScheduledContractorInvoiceData, hW as PatchUpdateScheduledContractorInvoiceError, hV as PatchUpdateScheduledContractorInvoiceErrors, hY as PatchUpdateScheduledContractorInvoiceResponse, hX as PatchUpdateScheduledContractorInvoiceResponses, lX as PatchUpdateTimeoff2Data, lZ as PatchUpdateTimeoff2Error, lY as PatchUpdateTimeoff2Errors, l$ as PatchUpdateTimeoff2Response, l_ as PatchUpdateTimeoff2Responses, m0 as PatchUpdateTimeoffData, m2 as PatchUpdateTimeoffError, m1 as PatchUpdateTimeoffErrors, m4 as PatchUpdateTimeoffResponse, m3 as PatchUpdateTimeoffResponses, j4 as PatchUpdateTravelLetterRequest2Data, j6 as PatchUpdateTravelLetterRequest2Error, j5 as PatchUpdateTravelLetterRequest2Errors, j8 as PatchUpdateTravelLetterRequest2Response, j7 as PatchUpdateTravelLetterRequest2Responses, j9 as PatchUpdateTravelLetterRequestData, jb as PatchUpdateTravelLetterRequestError, ja as PatchUpdateTravelLetterRequestErrors, jd as PatchUpdateTravelLetterRequestResponse, jc as PatchUpdateTravelLetterRequestResponses, j_ as PatchUpdateWebhookCallbackData, k0 as PatchUpdateWebhookCallbackError, j$ as PatchUpdateWebhookCallbackErrors, k2 as PatchUpdateWebhookCallbackResponse, k1 as PatchUpdateWebhookCallbackResponses, ib as PatchUpdateWorkAuthorizationRequest2Data, id as PatchUpdateWorkAuthorizationRequest2Error, ic as PatchUpdateWorkAuthorizationRequest2Errors, ig as PatchUpdateWorkAuthorizationRequest2Response, ie as PatchUpdateWorkAuthorizationRequest2Responses, ih as PatchUpdateWorkAuthorizationRequestData, ij as PatchUpdateWorkAuthorizationRequestError, ii as PatchUpdateWorkAuthorizationRequestErrors, il as PatchUpdateWorkAuthorizationRequestResponse, ik as PatchUpdateWorkAuthorizationRequestResponses, d0 as PayrollCalendar, bi as PayrollCalendarEor, a5 as PayrollCalendarsEorResponse, cG as PayrollCalendarsResponse, bX as Payslip, d1 as PayslipDownloadResponse, aM as PayslipResponse, pM as PostApproveCancellationRequestData, pO as PostApproveCancellationRequestError, pN as PostApproveCancellationRequestErrors, pQ as PostApproveCancellationRequestResponse, pP as PostApproveCancellationRequestResponses, ki as PostApproveTimesheetData, kk as PostApproveTimesheetError, kj as PostApproveTimesheetErrors, km as PostApproveTimesheetResponse, kl as PostApproveTimesheetResponses, ma as PostAutomatableContractAmendmentData, mc as PostAutomatableContractAmendmentError, mb as PostAutomatableContractAmendmentErrors, me as PostAutomatableContractAmendmentResponse, md as PostAutomatableContractAmendmentResponses, pC as PostBulkCreateScheduledContractorInvoiceData, pE as PostBulkCreateScheduledContractorInvoiceError, pD as PostBulkCreateScheduledContractorInvoiceErrors, pG as PostBulkCreateScheduledContractorInvoiceResponse, pF as PostBulkCreateScheduledContractorInvoiceResponses, gf as PostBypassEligibilityChecksCompanyData, gh as PostBypassEligibilityChecksCompanyError, gg as PostBypassEligibilityChecksCompanyErrors, gj as PostBypassEligibilityChecksCompanyResponse, gi as PostBypassEligibilityChecksCompanyResponses, ly as PostCompleteOnboardingEmploymentData, lA as PostCompleteOnboardingEmploymentError, lz as PostCompleteOnboardingEmploymentErrors, lC as PostCompleteOnboardingEmploymentResponse, lB as PostCompleteOnboardingEmploymentResponses, mf as PostCreateApprovalData, mh as PostCreateApprovalError, mg as PostCreateApprovalErrors, mj as PostCreateApprovalResponse, mi as PostCreateApprovalResponses, gO as PostCreateBenefitRenewalRequestData, gQ as PostCreateBenefitRenewalRequestError, gP as PostCreateBenefitRenewalRequestErrors, gS as PostCreateBenefitRenewalRequestResponse, gR as PostCreateBenefitRenewalRequestResponses, gp as PostCreateCancellationData, gr as PostCreateCancellationError, gq as PostCreateCancellationErrors, gt as PostCreateCancellationResponse, gs as PostCreateCancellationResponses, pd as PostCreateCompanyData, kC as PostCreateCompanyDepartmentData, kE as PostCreateCompanyDepartmentError, kD as PostCreateCompanyDepartmentErrors, kG as PostCreateCompanyDepartmentResponse, kF as PostCreateCompanyDepartmentResponses, pf as PostCreateCompanyError, pe as PostCreateCompanyErrors, jD as PostCreateCompanyManagerData, jF as PostCreateCompanyManagerError, jE as PostCreateCompanyManagerErrors, jH as PostCreateCompanyManagerResponse, jG as PostCreateCompanyManagerResponses, ph as PostCreateCompanyResponse, pg as PostCreateCompanyResponses, iR as PostCreateContractAmendmentData, iT as PostCreateContractAmendmentError, iS as PostCreateContractAmendmentErrors, iV as PostCreateContractAmendmentResponse, iU as PostCreateContractAmendmentResponses, fl as PostCreateDataSyncData, fn as PostCreateDataSyncError, fm as PostCreateDataSyncErrors, fo as PostCreateDataSyncResponses, m5 as PostCreateDeclineData, m7 as PostCreateDeclineError, m6 as PostCreateDeclineErrors, m9 as PostCreateDeclineResponse, m8 as PostCreateDeclineResponses, fE as PostCreateEmployment2Data, fG as PostCreateEmployment2Error, fF as PostCreateEmployment2Errors, fI as PostCreateEmployment2Response, fH as PostCreateEmployment2Responses, mp as PostCreateEmploymentCustomFieldData, mr as PostCreateEmploymentCustomFieldError, mq as PostCreateEmploymentCustomFieldErrors, mt as PostCreateEmploymentCustomFieldResponse, ms as PostCreateEmploymentCustomFieldResponses, lo as PostCreateEmploymentData, lq as PostCreateEmploymentError, lp as PostCreateEmploymentErrors, ls as PostCreateEmploymentResponse, lr as PostCreateEmploymentResponses, fT as PostCreateEstimationData, P as PostCreateEstimationError, fU as PostCreateEstimationErrors, i2 as PostCreateEstimationPdfData, b as PostCreateEstimationPdfError, i3 as PostCreateEstimationPdfErrors, i5 as PostCreateEstimationPdfResponse, i4 as PostCreateEstimationPdfResponses, fW as PostCreateEstimationResponse, fV as PostCreateEstimationResponses, gY as PostCreateExpenseData, g_ as PostCreateExpenseError, gZ as PostCreateExpenseErrors, h0 as PostCreateExpenseResponse, g$ as PostCreateExpenseResponses, hA as PostCreateIncentiveData, hC as PostCreateIncentiveError, hB as PostCreateIncentiveErrors, hE as PostCreateIncentiveResponse, hD as PostCreateIncentiveResponses, eY as PostCreateOffboardingData, e_ as PostCreateOffboardingError, eZ as PostCreateOffboardingErrors, f0 as PostCreateOffboardingResponse, e$ as PostCreateOffboardingResponses, hF as PostCreateProbationCompletionLetterData, hH as PostCreateProbationCompletionLetterError, hG as PostCreateProbationCompletionLetterErrors, hJ as PostCreateProbationCompletionLetterResponse, hI as PostCreateProbationCompletionLetterResponses, im as PostCreateProbationExtensionData, ip as PostCreateProbationExtensionError, io as PostCreateProbationExtensionErrors, ir as PostCreateProbationExtensionResponse, iq as PostCreateProbationExtensionResponses, gJ as PostCreateRecurringIncentiveData, gL as PostCreateRecurringIncentiveError, gK as PostCreateRecurringIncentiveErrors, gN as PostCreateRecurringIncentiveResponse, gM as PostCreateRecurringIncentiveResponses, h6 as PostCreateSsoConfigurationData, h8 as PostCreateSsoConfigurationError, h7 as PostCreateSsoConfigurationErrors, ha as PostCreateSsoConfigurationResponse, h9 as PostCreateSsoConfigurationResponses, o_ as PostCreateTimeoffData, p0 as PostCreateTimeoffError, o$ as PostCreateTimeoffErrors, p2 as PostCreateTimeoffResponse, p1 as PostCreateTimeoffResponses, kd as PostCreateWebhookCallbackData, kf as PostCreateWebhookCallbackError, ke as PostCreateWebhookCallbackErrors, kh as PostCreateWebhookCallbackResponse, kg as PostCreateWebhookCallbackResponses, kH as PostDeclineCancellationRequestData, kJ as PostDeclineCancellationRequestError, kI as PostDeclineCancellationRequestErrors, kL as PostDeclineCancellationRequestResponse, kK as PostDeclineCancellationRequestResponses, jL as PostDeclineIdentityVerificationData, jN as PostDeclineIdentityVerificationError, jM as PostDeclineIdentityVerificationErrors, jP as PostDeclineIdentityVerificationResponse, jO as PostDeclineIdentityVerificationResponses, hl as PostGenerateMagicLinkData, hn as PostGenerateMagicLinkError, hm as PostGenerateMagicLinkErrors, hp as PostGenerateMagicLinkResponse, ho as PostGenerateMagicLinkResponses, mY as PostInviteEmploymentInvitationData, m_ as PostInviteEmploymentInvitationError, mZ as PostInviteEmploymentInvitationErrors, n0 as PostInviteEmploymentInvitationResponse, m$ as PostInviteEmploymentInvitationResponses, pi as PostSendBackTimesheetData, pk as PostSendBackTimesheetError, pj as PostSendBackTimesheetErrors, pm as PostSendBackTimesheetResponse, pl as PostSendBackTimesheetResponses, oQ as PostTokenOAuth2TokenData, oS as PostTokenOAuth2TokenError, oR as PostTokenOAuth2TokenErrors, oU as PostTokenOAuth2TokenResponse, oT as PostTokenOAuth2TokenResponses, lI as PostTriggerWebhookCallbackData, lK as PostTriggerWebhookCallbackError, lJ as PostTriggerWebhookCallbackErrors, lM as PostTriggerWebhookCallbackResponse, lL as PostTriggerWebhookCallbackResponses, nl as PostUpdateBenefitRenewalRequestData, nn as PostUpdateBenefitRenewalRequestError, nm as PostUpdateBenefitRenewalRequestErrors, np as PostUpdateBenefitRenewalRequestResponse, no as PostUpdateBenefitRenewalRequestResponses, f6 as PostUpdateCancelOnboardingData, f8 as PostUpdateCancelOnboardingError, f7 as PostUpdateCancelOnboardingErrors, fa as PostUpdateCancelOnboardingResponse, f9 as PostUpdateCancelOnboardingResponses, mT as PostUploadEmployeeFileFileData, mV as PostUploadEmployeeFileFileError, mU as PostUploadEmployeeFileFileErrors, mX as PostUploadEmployeeFileFileResponse, mW as PostUploadEmployeeFileFileResponses, pR as PostVerifyIdentityVerificationData, pT as PostVerifyIdentityVerificationError, pS as PostVerifyIdentityVerificationErrors, pV as PostVerifyIdentityVerificationResponse, pU as PostVerifyIdentityVerificationResponses, dF as PricingPlanDetails, by as ProbationCompletionLetter, eh as ProbationCompletionLetterFile, ce as ProbationCompletionLetterResponse, es as ProbationExtension, e8 as ProbationExtensionFile, en as ProbationExtensionResponse, cn as ProbationExtensionStatus, b_ as ProvisionalStartDate, hb as PutApproveContractAmendmentData, hd as PutApproveContractAmendmentError, hc as PutApproveContractAmendmentErrors, hf as PutApproveContractAmendmentResponse, he as PutApproveContractAmendmentResponses, ow as PutCancelContractAmendmentData, oy as PutCancelContractAmendmentError, ox as PutCancelContractAmendmentErrors, oA as PutCancelContractAmendmentResponse, oz as PutCancelContractAmendmentResponses, g5 as PutUpdateBenefitOfferData, g7 as PutUpdateBenefitOfferError, g6 as PutUpdateBenefitOfferErrors, g9 as PutUpdateBenefitOfferResponse, g8 as PutUpdateBenefitOfferResponses, nA as PutValidateResignationData, nC as PutValidateResignationError, nB as PutValidateResignationErrors, nE as PutValidateResignationResponse, nD as PutValidateResignationResponses, ck as RecurringIncentive, dn as RecurringIncentiveResponse, a8 as RefreshTokenParams, b8 as RefreshTokenResponse, bn as RegionStatus, bT as RequestDetails, eB as RequestError, d4 as Resignation, eJ as ResignationAfterStartDate, cc as ResignationAfterStartDateRequestParams, dH as ResignationBeforeStartDate, cX as ResignationBeforeStartDateRequestParams, e2 as ResignationFile, aR as ResignationOffboarding, R as ResignationResponse, b$ as ResourceErrorResponse, ev as SalaryDecreaseDetails, e6 as ScheduleId, dC as SendBackTimesheetParams, bc as SentBackTimesheet, W as SentBackTimesheetResponse, a_ as ShortId, az as SingleSelectMetadata, cI as Slug, cu as SsoConfiguration, cY as SsoConfigurationDetails, aU as SsoConfigurationDetailsResponse, cS as SsoConfigurationResponse, cZ as SuccessResponse, c5 as TaskDescription, bm as TaskStatus, e7 as TerminationDetailsParams, g as TerminationOffboarding, c$ as TimeBreakdown, eE as TimeTracking, bV as TimeTrackingParams, eC as Timeoff, c0 as TimeoffBalance, c6 as TimeoffBalanceNotFoundResponse, bJ as TimeoffBalanceNotSupportedResponse, dL as TimeoffBalanceResponse, dy as TimeoffDay, bz as TimeoffDaysAndHours, bu as TimeoffDaysParams, c8 as TimeoffDocumentParams, dl as TimeoffEntitlement, cV as TimeoffResponse, eF as TimeoffStatus, ek as TimeoffType, cO as Timesheet, T as TimesheetResponse, dk as TimesheetStatus, aP as Timezone, dm as TooManyRequestsResponse, d3 as TravelLetterRequest, bU as TravelLetterResponse, dh as TravelLetterUser, a2 as TypeOfDayBreakdown, dE as UnauthorizedResponse, q as UnifiedEmploymentBenefitGroup, dj as UnifiedEmploymentBenefitOffer, bB as UnifiedEmploymentBenefitTier, dW as UnifiedEmploymentListBenefitOffers, U as UnifiedEmploymentUpsertBenefitOffersRequest, X as UnifiedEmploymentsBenefitOffersJsonSchemaResponse, bW as UnifiedMinimalBenefitGroup, am as UnlimitedDaysandHoursResponse, b9 as UnprocessableEntityResponse, cd as UpdateApprovedTimeoffParams, dG as UpdateCompanyParams, m as UpdateEmploymentCustomFieldValueParams, bY as UpdateExpenseParams, cy as UpdateIncentiveParams, bP as UpdateOffboardingParams, bL as UpdateScheduleContractorInvoiceParams, d2 as UpdateTravelLetterRequestParams, ej as UpdateWebhookCallbackParams, bd as UpdateWorkAuthorizationRequestParams, dr as UploadFileResponse, ax as UserStatus, cK as UuidSlug, an as ValidateResignationRequestParams, cm as ValidationError, dx as WebhookCallback, eL as WebhookCallbackResponse, dp as WebhookTriggerBillingParams, bt as WebhookTriggerEmploymentParams, eb as WebhookTriggerParams, d$ as WorkAuthorizationRequest, ak as WorkAuthorizationRequestResponse, dP as WorkAuthorizationUser, e9 as _Date } from './types.gen-dIMXHE0Y.js';
9
14
  import '@remoteoss/json-schema-form';
10
15
  import '@tanstack/react-query';
@@ -56,6 +61,6 @@ type RemoteFlowsSDKProps = Omit<ThemeProviderProps, 'children'> & {
56
61
  isTestingMode?: boolean;
57
62
  };
58
63
 
59
- declare function RemoteFlows({ auth, children, isTestingMode, theme, }: PropsWithChildren<RemoteFlowsSDKProps>): React.JSX.Element;
64
+ declare function RemoteFlows({ auth, children, isTestingMode, theme, }: PropsWithChildren<RemoteFlowsSDKProps>): React__default.JSX.Element;
60
65
 
61
66
  export { RemoteFlows, transformYupErrorsIntoObject };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import"./chunk-HMDVBCX2.js";import{a as s}from"./chunk-DHJSRW7Y.js";import"./chunk-HGBJ3RNH.js";import"./chunk-BY2NZ5QF.js";import"./chunk-Z5SEXEAZ.js";import"./chunk-Q2ZB5MOF.js";import"./chunk-DE6ICD4X.js";import"./chunk-JEULWBZA.js";import"./chunk-BIWKEH5R.js";import{a as n}from"./chunk-32G7XF2D.js";import"./chunk-FX6BYIQS.js";import"./chunk-56PULCHS.js";import"./chunk-HHNKZK2V.js";import{a as r,c as t,d as e,f as i,g as o}from"./chunk-K44YP7ZG.js";import{d as a}from"./chunk-ATKR5HCM.js";import"./chunk-2AGPO366.js";import"./chunk-AYDF3IFZ.js";export{n as CostCalculator,s as CostCalculatorResults,r as RemoteFlows,t as buildCostCalculatorEstimationPayload,a as transformYupErrorsIntoObject,i as useCostCalculator,o as useCostCalculatorDisclaimer,e as useCostCalculatorEstimationPdf};
1
+ import"./chunk-FGBEOUQK.js";import{a as g}from"./chunk-LT4TLUWZ.js";import"./chunk-Q2ZB5MOF.js";import"./chunk-JEULWBZA.js";import"./chunk-BIWKEH5R.js";import"./chunk-HGBJ3RNH.js";import"./chunk-BY2NZ5QF.js";import"./chunk-Z5SEXEAZ.js";import"./chunk-DE6ICD4X.js";import{a as d}from"./chunk-P5PQMJ4T.js";import{a as l}from"./chunk-DYB3RWP7.js";import{a as o}from"./chunk-KEV7VRZ5.js";import{a,c as t,d as e,f as i}from"./chunk-6RRSUL7Q.js";import"./chunk-2AGPO366.js";import{a as n}from"./chunk-EEWCEZ3D.js";import{a as c}from"./chunk-DARQDP44.js";import{a as s}from"./chunk-ZEGD25G2.js";import"./chunk-HHNKZK2V.js";import{d as r}from"./chunk-ATKR5HCM.js";import"./chunk-OLJ2S6A6.js";import"./chunk-AYDF3IFZ.js";export{d as CostCalculatorDisclaimer,o as CostCalculatorFlow,n as CostCalculatorForm,c as CostCalculatorResetButton,g as CostCalculatorResults,s as CostCalculatorSubmitButton,a as RemoteFlows,t as buildCostCalculatorEstimationPayload,l as disclaimerData,r as transformYupErrorsIntoObject,i as useCostCalculator,e as useCostCalculatorEstimationPdf};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remoteoss/remote-flows",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "scripts": {
5
5
  "build": "NODE_ENV=production tsup",
6
6
  "ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test",
@@ -1,2 +0,0 @@
1
- import{a as Q}from"./chunk-56PULCHS.js";import{a as H,b as V}from"./chunk-HHNKZK2V.js";import{e as Y,f as K}from"./chunk-K44YP7ZG.js";import{a}from"./chunk-ATKR5HCM.js";import{a as o}from"./chunk-AYDF3IFZ.js";import w from"react";import{useForm as at}from"react-hook-form";import*as c from"react";import{Slot as ke}from"@radix-ui/react-slot";import{Controller as Ve,FormProvider as De,useFormContext as Le,useFormState as Ee}from"react-hook-form";import*as X from"react";import*as Z from"@radix-ui/react-label";function ee({className:e,...t}){return X.createElement(Z.Root,{"data-slot":"label",className:a("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),...t})}o(ee,"Label");var te=De,oe=c.createContext({}),b=o(({...e})=>c.createElement(oe.Provider,{value:{name:e.name}},c.createElement(Ve,{...e})),"FormField"),M=o(()=>{let e=c.useContext(oe),t=c.useContext(re),{getFieldState:r}=Le(),s=Ee({name:e.name}),i=r(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=t;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},"useFormField"),re=c.createContext({});function v({className:e,...t}){let r=c.useId();return c.createElement(re.Provider,{value:{id:r}},c.createElement("div",{"data-slot":"form-item",className:a("grid gap-2",e),...t}))}o(v,"FormItem");function x({className:e,...t}){let{error:r,formItemId:s}=M();return c.createElement(ee,{"data-slot":"form-label","data-error":!!r,className:a("text-base-color mb-1 data-[error=true]:text-destructive",e),htmlFor:s,...t})}o(x,"FormLabel");var g=c.forwardRef(({...e},t)=>{let{error:r,formItemId:s,formDescriptionId:i,formMessageId:n}=M();return c.createElement(ke,{"data-slot":"form-control",ref:t,id:s,"aria-describedby":r?`${i} ${n}`:`${i}`,"aria-invalid":!!r,...e})});g.displayName="FormControl";function y({className:e,...t}){let{formDescriptionId:r}=M();return c.createElement("p",{"data-slot":"form-description",id:r,className:a("text-base-color text-sm",e),...t})}o(y,"FormDescription");function C({className:e,...t}){let{error:r,formMessageId:s}=M(),i=r?String(r?.message??""):t.children;return i?c.createElement("p",{"data-slot":"form-message",id:s,className:a("text-destructive text-sm",e),...t},i):null}o(C,"FormMessage");import O from"react";import tt from"react";import{CalendarIcon as Ge}from"lucide-react";import*as d from"react";import{useFormContext as ze}from"react-hook-form";import*as A from"react";import{ChevronLeft as Be,ChevronRight as Me}from"lucide-react";import{DayPicker as Ae}from"react-day-picker";function ae({className:e,classNames:t,showOutsideDays:r=!0,...s}){return A.createElement(Ae,{showOutsideDays:r,className:a("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:a(H({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:a("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",s.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:a(H({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",...t},components:{IconLeft:o(({className:i,...n})=>A.createElement(Be,{className:a("size-4",i),...n}),"IconLeft"),IconRight:o(({className:i,...n})=>A.createElement(Me,{className:a("size-4",i),...n}),"IconRight")},...s})}o(ae,"Calendar");import*as D from"react";import*as R from"@radix-ui/react-popover";function ie({...e}){return D.createElement(R.Root,{"data-slot":"popover",...e})}o(ie,"Popover");function se({...e}){return D.createElement(R.Trigger,{"data-slot":"popover-trigger",...e})}o(se,"PopoverTrigger");function ne({className:e,align:t="center",sideOffset:r=4,...s}){return D.createElement(R.Portal,null,D.createElement(R.Content,{"data-slot":"popover-content",align:t,sideOffset:r,className:a("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),...s}))}o(ne,"PopoverContent");import{PopoverClose as Oe}from"@radix-ui/react-popover";import{format as $e}from"date-fns";function le({description:e,label:t,name:r}){let{control:s}=ze();return d.createElement(b,{control:s,name:r,render:({field:i})=>d.createElement(v,{className:`flex flex-col RemoteFlows__DatePickerField__Item__${r}`},d.createElement(x,{className:"RemoteFlows__DatePickerField__Label"},t),d.createElement(ie,null,d.createElement(se,{asChild:!0},d.createElement(g,null,d.createElement("div",null,d.createElement(V,{variant:"outline",className:a("w-full pl-3 text-left font-normal",!i.value&&"text-muted-foreground")},i.value?d.createElement(d.Fragment,null,$e(i.value,"yyyy-MM-dd")):d.createElement("span",null,"Pick a date"),d.createElement(Ge,{className:"ml-auto h-4 w-4 opacity-50"}))))),d.createElement(ne,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start"},d.createElement(ae,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:i.value,onSelect:i.onChange,components:{DayContent:o(n=>d.createElement(Oe,null,n.date.getDate()),"DayContent")},disabled:n=>n<new Date("1900-01-01")}))),e?d.createElement(y,null,e):null,d.createElement(C,null))})}o(le,"DatePickerField");import*as I from"react";function me({label:e,name:t,fields:r,description:s}){return I.createElement("fieldset",{className:a("border-1 border-input p-4 rounded-xl",`RemoteFlows__FieldSetField__${t}`)},I.createElement("legend",{className:"text-sm font-semibold px-2"},e),s?I.createElement("div",{className:"mb-5 RemoteFlows__FieldSetField__Description",dangerouslySetInnerHTML:{__html:s}}):null,I.createElement("div",{className:"grid gap-4"},r.map(i=>{let n=G[i.type];return I.createElement(n,{...i,key:i.name,name:`${t}.${i.name}`})})))}o(me,"FieldSetField");import*as T from"@radix-ui/react-radio-group";import{CircleIcon as je}from"lucide-react";import*as L from"react";function ce({className:e,...t}){return L.createElement(T.Root,{"data-slot":"radio-group",className:a("grid gap-3",e),...t})}o(ce,"RadioGroup");function de({className:e,...t}){return L.createElement(T.Item,{"data-slot":"radio-group-item",className:a("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t},L.createElement(T.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center"},L.createElement(je,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})))}o(de,"RadioGroupItem");import*as _ from"react";import{useFormContext as He}from"react-hook-form";function pe({name:e,defaultValue:t,description:r,label:s,options:i}){let{control:n}=He();return _.createElement(b,{control:n,name:e,defaultValue:t,render:({field:u,fieldState:P})=>_.createElement(v,{className:a("space-y-3",`RemoteFlows__RadioGroupField__Item__${e}`)},_.createElement(x,null,s),_.createElement(g,null,_.createElement(ce,{onValueChange:u.onChange,defaultValue:u.value,className:"flex flex-col space-y-1"},i.map(f=>_.createElement(v,{key:f.value,className:"flex items-center space-x-3 space-y-0 gap-0 RemoteFlows__RadioField__Item"},_.createElement(g,null,_.createElement(de,{value:f.value,className:"RemoteFlows__RadioField__Input"})),_.createElement(x,{className:"font-normal mb-0 RemoteFlows__RadioField__Label"},f.label))))),r&&_.createElement(y,null,r),P.error&&_.createElement(C,null))})}o(pe,"RadioGroupField");import*as p from"react";import*as m from"react";import*as l from"@radix-ui/react-select";import{CheckIcon as Ue,ChevronDownIcon as ue,ChevronUpIcon as We}from"lucide-react";function fe({...e}){return m.createElement(l.Root,{"data-slot":"select",...e})}o(fe,"Select");function ge({...e}){return m.createElement(l.Group,{"data-slot":"select-group",...e})}o(ge,"SelectGroup");function Fe({...e}){return m.createElement(l.Value,{"data-slot":"select-value",...e})}o(Fe,"SelectValue");function ve({className:e,children:t,...r}){return m.createElement(l.Trigger,{"data-slot":"select-trigger",className:a("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-full items-center justify-between rounded-xl border bg-transparent px-4 py-7 text-sm whitespace-nowrap transition-[color] outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","focus-visible:border-focused",e),...r},t,m.createElement(l.Icon,{asChild:!0,className:"absolute right-4"},m.createElement(ue,{className:"size-4"})))}o(ve,"SelectTrigger");function xe({className:e,children:t,position:r="popper",...s}){return m.createElement(l.Portal,null,m.createElement(l.Content,{"data-slot":"select-content",className:a("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...s},m.createElement(Je,null),m.createElement(l.Viewport,{className:a(r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1")},t),m.createElement(qe,null)))}o(xe,"SelectContent");function be({className:e,children:t,...r}){return m.createElement(l.Item,{"data-slot":"select-item",className:a("focus:bg-accent focus:text-accent-foreground min-h-11 justify-between [&_svg:not([class*='text-'])]:text-muted-foreground flex w-full cursor-default items-center gap-2 py-2 px-4 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r},m.createElement(l.ItemText,null,t),m.createElement("span",{className:"flex size-3.5 items-center justify-center"},m.createElement(l.ItemIndicator,null,m.createElement(Ue,{className:"size-4"}))))}o(be,"SelectItem");function Je({className:e,...t}){return m.createElement(l.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:a("flex cursor-default items-center justify-center py-1",e),...t},m.createElement(We,{className:"size-4"}))}o(Je,"SelectScrollUpButton");function qe({className:e,...t}){return m.createElement(l.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:a("flex cursor-default items-center justify-center py-1",e),...t},m.createElement(ue,{className:"size-4"}))}o(qe,"SelectScrollDownButton");import{useFormContext as Ye}from"react-hook-form";function ye({label:e,name:t,options:r,defaultValue:s,description:i,onChange:n}){let{control:u}=Ye();return p.createElement(b,{defaultValue:s,control:u,name:t,render:({field:P,fieldState:f})=>p.createElement(v,{className:`RemoteFlows__SelectField__Item__${t}`},p.createElement(x,{className:"RemoteFlows__SelectField__Label"},e),p.createElement(g,null,p.createElement("div",{className:"relative"},p.createElement(fe,{value:P.value,onValueChange:F=>{P.onChange(F),n?.(F)}},p.createElement(ve,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!f.error},p.createElement("span",{className:"absolute"},p.createElement(Fe,null))),p.createElement(xe,{className:"RemoteFlows__SelectField__Content"},p.createElement(ge,{className:"RemoteFlows__SelectField__Group"},r.map(F=>p.createElement(be,{key:F.value,value:F.value,className:"RemoteFlows__SelectField__SelectItem"},F.label))))))),i&&p.createElement(y,null,i),f.error&&p.createElement(C,null))})}o(ye,"SelectField");import*as N from"react";import{useFormContext as Ke}from"react-hook-form";import*as Ce from"react";function _e({className:e,type:t,...r}){return Ce.createElement("input",{type:t,"data-slot":"input",className:a("shadow-xs border-input file:text-foreground placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-xl border bg-transparent px-4 py-7 text-sm transition-[color] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-focused","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}o(_e,"Input");var Qe={type:"text",inputMode:"decimal",pattern:"^[0-9.]*$"};function U({name:e,description:t,label:r,type:s,onChange:i}){let{control:n}=Ke(),P=s==="number"?Qe:{type:s};return N.createElement(b,{control:n,name:e,render:({field:f,fieldState:F})=>N.createElement(v,{className:`RemoteFlows__TextField__Item__${e}`},N.createElement(x,{className:"RemoteFlows__TextField__Label"},r),N.createElement(g,null,N.createElement(_e,{...f,value:f.value??"",onChange:B=>{f.onChange(B),i?.(B)},...P,className:"RemoteFlows__TextField__Input"})),t&&N.createElement(y,{className:"RemoteFlows__TextField__Description"},t),F.error&&N.createElement(C,{className:"RemoteFlows__TextField__Error"}))})}o(U,"TextField");import*as k from"react";import*as E from"@radix-ui/react-checkbox";import{Check as Xe}from"lucide-react";var W=k.forwardRef(({className:e,...t},r)=>k.createElement(E.Root,{ref:r,className:a("peer h-4 w-4 shrink-0 rounded-sm border border-input ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-checkbox data-[state=checked]:text-primary",e),...t},k.createElement(E.Indicator,{className:a("flex items-center justify-center text-current")},k.createElement(Xe,{className:"h-4 w-4"}))));W.displayName=E.Root.displayName;import*as S from"react";import{useFormContext as Ze}from"react-hook-form";function Pe({name:e,defaultValue:t,description:r,label:s}){let{control:i}=Ze();return S.createElement(b,{control:i,name:e,defaultValue:t,render:({field:n,fieldState:u})=>S.createElement(v,{className:a(`RemoteFlows__CheckBoxField__Item__${e}`)},S.createElement(g,null,S.createElement("div",{className:"flex space-x-2"},S.createElement(W,{id:e,onCheckedChange:n.onChange,checked:n.value,className:"RemoteFlows__CheckBox__Input"}),S.createElement(x,{htmlFor:e,className:"mb-0 RemoteFlows__CheckBox__Label"},s))),r&&S.createElement(y,null,r),u.error&&S.createElement(C,null))})}o(Pe,"CheckBoxField");import*as h from"react";import{useFormContext as et}from"react-hook-form";import*as z from"react";var J=z.forwardRef(({className:e,...t},r)=>z.createElement("textarea",{className:a("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,...t}));J.displayName="Textarea";function he({name:e,description:t,label:r,onChange:s,maxLength:i}){let{control:n}=et();return h.createElement(b,{control:n,name:e,render:({field:u,fieldState:P})=>{let f=u.value?.length??0;return h.createElement(v,{className:`RemoteFlows__TextArea__Item__${e}`},h.createElement(x,{className:"RemoteFlows__TextArea__Label"},r),h.createElement(g,null,h.createElement(J,{...u,value:u.value??"",onChange:F=>{u.onChange(F),s?.(F)},className:a(P.error&&"border-red-500 focus-visible:ring-red-500","RemoteFlows__TextArea__Input")})),(t||i)&&h.createElement("div",{className:"flex items-center justify-between"},t&&h.createElement(y,{className:"RemoteFlows__TextArea__Description"},t),i&&h.createElement("span",{className:"text-sm ml-auto RemoteFlows__TextArea__MaxLength"},f,"/",i)),P.error&&h.createElement(C,{className:"RemoteFlows__TextArea__Error"}))}})}o(he,"TextAreaField");var G={checkbox:Pe,text:U,select:ye,radio:pe,number:o(e=>tt.createElement(U,{...e,type:"text"}),"number"),fieldset:me,date:le,textarea:he};var Re=o(({fields:e})=>!e||e.length===0?null:O.createElement(O.Fragment,null,e.map(t=>{if(t.isVisible===!1||t.deprecated)return null;let r=G[t.inputType];return r?O.createElement(r,{key:t.name,...t}):O.createElement("p",{className:"error"},"Field type ",t.inputType," not supported")})),"JSONSchemaFormFields");import{useCallback as Se}from"react";var ot=o(e=>Se(async t=>await e.validate(t,{abortEarly:!1}),[e]),"useValidationYupResolver");function rt(e){return e.inner.reduce((r,s)=>({...r,[s.path]:{type:s.type??"validation",message:s.message}}),{})}o(rt,"iterateErrors");var we=o(e=>{let t=ot(e);return Se(async r=>{let s,i={};try{s=await t(r)}catch(n){i=rt(n)}return Object.keys(i).length>0?{values:{},errors:i}:{values:s,errors:{}}},[e])},"useValidationFormResolver");function ar({estimationOptions:e=Y,defaultValues:t={countryRegionSlug:"",currencySlug:"",salary:""},options:r,onSubmit:s,onError:i,onSuccess:n}){let{onSubmit:u,fields:P,validationSchema:f,isSubmitting:F,resetForm:B}=K({defaultRegion:t.countryRegionSlug,estimationOptions:e}),Ne=we(f),$=at({resolver:Ne,defaultValues:{country:t?.countryRegionSlug,currency:t?.currencySlug,region:"",salary:t?.salary},shouldUnregister:!0,mode:"onBlur"}),Ie=o(async q=>{await s?.(q);let j=await u(q);j.error?i?.(j.error):n?.(j.data)},"handleSubmit"),Te=o(()=>{$.reset(),B()},"handleReset");return w.createElement(w.Fragment,null,w.createElement(te,{...$},w.createElement("form",{onSubmit:$.handleSubmit(Ie),className:"space-y-4 RemoteFlows__CostCalculatorForm"},w.createElement(Re,{fields:P}),w.createElement(V,{type:"submit",className:"RemoteFlows__CostCalculatorForm__SubmitButton",disabled:F},"Get estimate"),w.createElement(V,{className:"RemoteFlows__CostCalculatorForm__ResetButton",type:"reset",onClick:Te},"Reset"))),w.createElement("div",{className:"RemoteFlows__CostCalculator__Disclaimer"},w.createElement(Q,{label:r?.disclaimer?.label})))}o(ar,"CostCalculator");export{ar as a};
2
- //# sourceMappingURL=chunk-32G7XF2D.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/CostCalculator/CostCalculator.tsx","../src/components/ui/form.tsx","../src/components/ui/label.tsx","../src/components/form/JSONSchemaForm.tsx","../src/components/form/fields/fieldsMapping.tsx","../src/components/form/fields/DatePickerField.tsx","../src/components/ui/calendar.tsx","../src/components/ui/popover.tsx","../src/components/form/fields/FieldSetField.tsx","../src/components/ui/radio-group.tsx","../src/components/form/fields/RadioGroupField.tsx","../src/components/form/fields/SelectField.tsx","../src/components/ui/select.tsx","../src/components/form/fields/TextField.tsx","../src/components/ui/input.tsx","../src/components/ui/checkbox.tsx","../src/components/form/fields/CheckBoxField.tsx","../src/components/form/fields/TextAreaField.tsx","../src/components/ui/textarea.tsx","../src/components/form/yupValidationResolver.ts"],"sourcesContent":["import React from 'react';\nimport { useForm } from 'react-hook-form';\n\nimport type { CostCalculatorEstimateResponse } from '@/src/client';\nimport { Form } from '@/src/components/ui/form';\n\nimport { JSONSchemaFormFields } from '@/src/components/form/JSONSchemaForm';\nimport { useValidationFormResolver } from '@/src/components/form/yupValidationResolver';\nimport { Button } from '@/src/components/ui/button';\nimport { Disclaimer } from '@/src/flows/CostCalculator/Disclaimer';\nimport {\n defaultEstimationOptions,\n EstimationError,\n useCostCalculator,\n} from '@/src/flows/CostCalculator/hooks';\n\nimport type {\n CostCalculatorEstimationFormValues,\n CostCalculatorEstimationOptions,\n} from './types';\n\ntype CostCalculatorProps = Partial<{\n /**\n * Estimation params allows you to customize the parameters sent to the /cost-calculator/estimation endpoint.\n */\n estimationOptions?: CostCalculatorEstimationOptions;\n /**\n * Default values for the form fields.\n */\n defaultValues: Partial<{\n /**\n * Default value for the country field.\n */\n countryRegionSlug: string;\n /**\n * Default value for the currency field.\n */\n currencySlug: string;\n /**\n * Default value for the salary field.\n */\n salary: string;\n }>;\n /**\n * Options for the CostCalculator component.\n */\n options: Partial<{\n /**\n * Disclaimer options.\n */\n disclaimer: {\n /**\n * Label for the disclaimer\n * @default 'Disclaimer'\n * */\n label: string;\n };\n }>;\n /**\n * Callback function that handles form submission. When form is submit, the form values are sent to the consumer app before behind submitted to Remote.\n * @param data - The payload sent to the /cost-calculator/estimation endpoint.\n */\n onSubmit: (data: CostCalculatorEstimationFormValues) => Promise<void> | void;\n /**\n * Callback function to handle the success when the estimation succeeds. The CostCalculatorEstimateResponse is sent back to you.\n * @param data - The response data from the /cost-calculator/estimation endpoint.\n */\n onSuccess: (data: CostCalculatorEstimateResponse) => Promise<void> | void;\n /**\n * Callback function to handle the error when the estimation fails.\n * @param error - The error object.\n */\n onError: (error: EstimationError) => void;\n}>;\n\nexport function CostCalculator({\n estimationOptions = defaultEstimationOptions,\n defaultValues = {\n countryRegionSlug: '',\n currencySlug: '',\n salary: '',\n },\n options,\n onSubmit,\n onError,\n onSuccess,\n}: CostCalculatorProps) {\n const {\n onSubmit: submitCostCalculator,\n fields,\n validationSchema,\n isSubmitting,\n resetForm,\n } = useCostCalculator({\n defaultRegion: defaultValues.countryRegionSlug,\n estimationOptions,\n });\n\n const resolver = useValidationFormResolver(validationSchema);\n const form = useForm<CostCalculatorEstimationFormValues>({\n resolver: resolver,\n defaultValues: {\n country: defaultValues?.countryRegionSlug,\n currency: defaultValues?.currencySlug,\n region: '',\n salary: defaultValues?.salary,\n },\n shouldUnregister: true,\n mode: 'onBlur',\n });\n\n const handleSubmit = async (values: CostCalculatorEstimationFormValues) => {\n await onSubmit?.(values);\n\n const estimation = await submitCostCalculator(values);\n\n if (estimation.error) {\n onError?.(estimation.error);\n } else {\n onSuccess?.(estimation.data);\n }\n };\n\n const handleReset = () => {\n form.reset();\n resetForm();\n };\n\n return (\n <>\n <Form {...form}>\n <form\n onSubmit={form.handleSubmit(handleSubmit)}\n className=\"space-y-4 RemoteFlows__CostCalculatorForm\"\n >\n <JSONSchemaFormFields fields={fields} />\n <Button\n type=\"submit\"\n className=\"RemoteFlows__CostCalculatorForm__SubmitButton\"\n disabled={isSubmitting}\n >\n Get estimate\n </Button>\n <Button\n className=\"RemoteFlows__CostCalculatorForm__ResetButton\"\n type=\"reset\"\n onClick={handleReset}\n >\n Reset\n </Button>\n </form>\n </Form>\n <div className=\"RemoteFlows__CostCalculator__Disclaimer\">\n <Disclaimer label={options?.disclaimer?.label} />\n </div>\n </>\n );\n}\n","import * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { Slot } from '@radix-ui/react-slot';\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n useFormState,\n} from 'react-hook-form';\n\nimport { cn } from '@/src/lib/utils';\nimport { Label } from '@/src/components/ui/label';\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = {\n name: TName;\n};\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>(\n {} as FormFieldContextValue,\n);\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>({\n ...props\n}: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState } = useFormContext();\n const formState = useFormState({ name: fieldContext.name });\n const fieldState = getFieldState(fieldContext.name, formState);\n\n if (!fieldContext) {\n throw new Error('useFormField should be used within <FormField>');\n }\n\n const { id } = itemContext;\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string;\n};\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue,\n);\n\nfunction FormItem({ className, ...props }: React.ComponentProps<'div'>) {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div\n data-slot=\"form-item\"\n className={cn('grid gap-2', className)}\n {...props}\n />\n </FormItemContext.Provider>\n );\n}\n\nfunction FormLabel({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n const { error, formItemId } = useFormField();\n\n return (\n <Label\n data-slot=\"form-label\"\n data-error={!!error}\n className={cn(\n 'text-base-color mb-1 data-[error=true]:text-destructive',\n className,\n )}\n htmlFor={formItemId}\n {...props}\n />\n );\n}\n\nconst FormControl = React.forwardRef<\n React.ComponentRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } =\n useFormField();\n\n return (\n <Slot\n data-slot=\"form-control\"\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n );\n});\n\nFormControl.displayName = 'FormControl';\n\nfunction FormDescription({ className, ...props }: React.ComponentProps<'p'>) {\n const { formDescriptionId } = useFormField();\n\n return (\n <p\n data-slot=\"form-description\"\n id={formDescriptionId}\n className={cn('text-base-color text-sm', className)}\n {...props}\n />\n );\n}\n\nfunction FormMessage({ className, ...props }: React.ComponentProps<'p'>) {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error?.message ?? '') : props.children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n data-slot=\"form-message\"\n id={formMessageId}\n className={cn('text-destructive text-sm', className)}\n {...props}\n >\n {body}\n </p>\n );\n}\n\nexport {\n useFormField,\n Form,\n FormItem,\n FormLabel,\n FormControl,\n FormDescription,\n FormMessage,\n FormField,\n};\n","'use client';\n\nimport * as React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\n\nimport { cn } from '@/src/lib/utils';\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'flex items-center gap-2 text-sm leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Label };\n","import React from 'react';\nimport { fieldsMap } from '@/src/components/form/fields/fieldsMapping';\nimport { Fields } from '@remoteoss/json-schema-form';\nimport { SupportedTypes } from '@/src/components/form/fields/types';\n\ntype JSONSchemaFormFieldsProps = {\n fields: Fields;\n};\n\nexport const JSONSchemaFormFields = ({ fields }: JSONSchemaFormFieldsProps) => {\n if (!fields || fields.length === 0) return null;\n\n return (\n <>\n {fields.map((field) => {\n if (field.isVisible === false || field.deprecated) {\n return null; // Skip hidden or deprecated fields\n }\n\n const FieldComponent = fieldsMap[field.inputType as SupportedTypes];\n\n return FieldComponent ? (\n <FieldComponent key={field.name} {...field} />\n ) : (\n <p className=\"error\">\n Field type {field.inputType as string} not supported\n </p>\n );\n })}\n </>\n );\n};\n","import React from 'react';\nimport { DatePickerField } from '@/src/components/form/fields/DatePickerField';\nimport { FieldSetField } from '@/src/components/form/fields/FieldSetField';\nimport { RadioGroupField } from '@/src/components/form/fields/RadioGroupField';\nimport { SelectField } from '@/src/components/form/fields/SelectField';\nimport { TextField } from '@/src/components/form/fields/TextField';\nimport { CheckBoxField } from '@/src/components/form/fields/CheckBoxField';\nimport { TextAreaField } from '@/src/components/form/fields/TextAreaField';\nimport { SupportedTypes } from '@/src/components/form/fields/types';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const fieldsMap: Record<SupportedTypes, React.ComponentType<any>> = {\n checkbox: CheckBoxField,\n text: TextField,\n select: SelectField,\n radio: RadioGroupField,\n number: (props) => <TextField {...props} type=\"text\" />,\n fieldset: FieldSetField,\n date: DatePickerField,\n textarea: TextAreaField,\n};\n","import { CalendarIcon } from 'lucide-react';\nimport * as React from 'react';\nimport { useFormContext } from 'react-hook-form';\n\nimport { Button } from '@/src/components/ui/button';\nimport { Calendar } from '@/src/components/ui/calendar';\nimport {\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from '@/src/components/ui/form';\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from '@/src/components/ui/popover';\nimport { cn } from '@/src/lib/utils';\nimport { PopoverClose } from '@radix-ui/react-popover';\nimport { format } from 'date-fns';\n\ntype DatePickerFieldProps = {\n description?: string;\n label: string;\n name: string;\n};\n\nexport function DatePickerField({\n description,\n label,\n name,\n}: DatePickerFieldProps) {\n const { control } = useFormContext();\n return (\n <FormField\n control={control}\n name={name}\n render={({ field }) => (\n <FormItem\n className={`flex flex-col RemoteFlows__DatePickerField__Item__${name}`}\n >\n <FormLabel className=\"RemoteFlows__DatePickerField__Label\">\n {label}\n </FormLabel>\n <Popover>\n <PopoverTrigger asChild>\n <FormControl>\n <div>\n <Button\n variant={'outline'}\n className={cn(\n 'w-full pl-3 text-left font-normal',\n !field.value && 'text-muted-foreground',\n )}\n >\n {field.value ? (\n <>{format(field.value, 'yyyy-MM-dd')}</>\n ) : (\n <span>Pick a date</span>\n )}\n <CalendarIcon className=\"ml-auto h-4 w-4 opacity-50\" />\n </Button>\n </div>\n </FormControl>\n </PopoverTrigger>\n <PopoverContent\n className={`w-auto p-0 RemoteFlows__DatepickerField__PopoverContent`}\n align=\"start\"\n >\n <Calendar\n mode=\"single\"\n className=\"RemoteFlows__DatepickerField__Calendar\"\n selected={field.value}\n onSelect={field.onChange}\n components={{\n DayContent: (props) => {\n return <PopoverClose>{props.date.getDate()}</PopoverClose>;\n },\n }}\n disabled={(date) => date < new Date('1900-01-01')}\n />\n </PopoverContent>\n </Popover>\n {description ? (\n <FormDescription>{description}</FormDescription>\n ) : null}\n <FormMessage />\n </FormItem>\n )}\n />\n );\n}\n","import * as React from 'react';\nimport { ChevronLeft, ChevronRight } from 'lucide-react';\nimport { DayPicker } from 'react-day-picker';\n\nimport { cn } from '@/src/lib/utils';\nimport { buttonVariants } from '@/src/components/ui/button';\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n ...props\n}: React.ComponentProps<typeof DayPicker>) {\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn('p-3', className)}\n classNames={{\n months: 'flex flex-col sm:flex-row gap-2',\n month: 'flex flex-col gap-4',\n caption: 'flex justify-center pt-1 relative items-center w-full',\n caption_label: 'text-sm font-medium',\n nav: 'flex items-center gap-1',\n nav_button: cn(\n buttonVariants({ variant: 'outline' }),\n 'size-7 bg-transparent p-0 opacity-50 hover:opacity-100',\n ),\n nav_button_previous: 'absolute left-1',\n nav_button_next: 'absolute right-1',\n table: 'w-full border-collapse space-x-1',\n head_row: 'flex',\n head_cell:\n 'text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]',\n row: 'flex w-full mt-2',\n cell: cn(\n '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 props.mode === 'range'\n ? '[&: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'\n : '[&:has([aria-selected])]:rounded-md',\n ),\n day: cn(\n buttonVariants({ variant: 'ghost' }),\n 'size-8 p-0 font-normal aria-selected:opacity-100',\n ),\n day_range_start:\n 'day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground',\n day_range_end:\n 'day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground',\n day_selected:\n 'bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground',\n day_today: 'bg-accent text-accent-foreground',\n day_outside:\n 'day-outside text-muted-foreground aria-selected:text-muted-foreground',\n day_disabled: 'text-muted-foreground opacity-50',\n day_range_middle:\n 'aria-selected:bg-accent aria-selected:text-accent-foreground',\n day_hidden: 'invisible',\n ...classNames,\n }}\n components={{\n IconLeft: ({ className, ...props }) => (\n <ChevronLeft className={cn('size-4', className)} {...props} />\n ),\n IconRight: ({ className, ...props }) => (\n <ChevronRight className={cn('size-4', className)} {...props} />\n ),\n }}\n {...props}\n />\n );\n}\n\nexport { Calendar };\n","import * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\n\nimport { cn } from '@/src/lib/utils';\n\nfunction Popover({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n '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',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };\n","import { fieldsMap } from '@/src/components/form/fields/fieldsMapping';\nimport { cn } from '@/src/lib/utils';\nimport * as React from 'react';\nimport { SupportedTypes } from './types';\n\ntype FieldBase = {\n label: string;\n name: string;\n description: string;\n};\n\ntype FieldWithOptions = FieldBase & {\n type: 'select' | 'radio';\n options: Array<{ value: string; label: string }>;\n};\n\ntype FieldWithoutOptions = FieldBase & {\n type: Exclude<SupportedTypes, 'select' | 'radio'>;\n options?: never;\n};\n\ntype Field = FieldWithOptions | FieldWithoutOptions;\n\ntype FieldSetProps = {\n label: string;\n name: string;\n description: string;\n fields: Field[];\n};\n\nexport function FieldSetField({\n label,\n name,\n fields,\n description,\n}: FieldSetProps) {\n return (\n <fieldset\n className={cn(\n 'border-1 border-input p-4 rounded-xl',\n `RemoteFlows__FieldSetField__${name}`,\n )}\n >\n <legend className=\"text-sm font-semibold px-2\">{label}</legend>\n {description ? (\n <div\n className=\"mb-5 RemoteFlows__FieldSetField__Description\"\n dangerouslySetInnerHTML={{ __html: description }}\n />\n ) : null}\n <div className=\"grid gap-4\">\n {fields.map((field) => {\n const FieldComponent = fieldsMap[field.type];\n return (\n <FieldComponent\n {...field}\n key={field.name}\n name={`${name}.${field.name}`}\n />\n );\n })}\n </div>\n </fieldset>\n );\n}\n","import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { CircleIcon } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from '@/src/lib/utils';\n\nfunction RadioGroup({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return (\n <RadioGroupPrimitive.Root\n data-slot=\"radio-group\"\n className={cn('grid gap-3', className)}\n {...props}\n />\n );\n}\n\nfunction RadioGroupItem({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n 'border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"relative flex items-center justify-center\"\n >\n <CircleIcon className=\"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n}\n\nexport { RadioGroup, RadioGroupItem };\n","import {\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from '@/src/components/ui/form';\nimport { RadioGroup, RadioGroupItem } from '@/src/components/ui/radio-group';\nimport { cn } from '@/src/lib/utils';\nimport * as React from 'react';\nimport { useFormContext } from 'react-hook-form';\n\ntype RadioGroupFieldProps = {\n name: string;\n label: string;\n description?: string;\n defaultValue?: string;\n options: Array<{ value: string; label: string }>;\n};\n\nexport function RadioGroupField({\n name,\n defaultValue,\n description,\n label,\n options,\n}: RadioGroupFieldProps) {\n const { control } = useFormContext();\n return (\n <FormField\n control={control}\n name={name}\n defaultValue={defaultValue}\n render={({ field, fieldState }) => (\n <FormItem\n className={cn(\n 'space-y-3',\n `RemoteFlows__RadioGroupField__Item__${name}`,\n )}\n >\n <FormLabel>{label}</FormLabel>\n <FormControl>\n <RadioGroup\n onValueChange={field.onChange}\n defaultValue={field.value}\n className=\"flex flex-col space-y-1\"\n >\n {options.map((option) => (\n <FormItem\n key={option.value}\n className=\"flex items-center space-x-3 space-y-0 gap-0 RemoteFlows__RadioField__Item\"\n >\n <FormControl>\n <RadioGroupItem\n value={option.value}\n className=\"RemoteFlows__RadioField__Input\"\n />\n </FormControl>\n <FormLabel className=\"font-normal mb-0 RemoteFlows__RadioField__Label\">\n {option.label}\n </FormLabel>\n </FormItem>\n ))}\n </RadioGroup>\n </FormControl>\n {description && <FormDescription>{description}</FormDescription>}\n {fieldState.error && <FormMessage />}\n </FormItem>\n )}\n />\n );\n}\n","import * as React from 'react';\n\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/src/components/ui/select';\nimport { useFormContext } from 'react-hook-form';\nimport {\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from '../../ui/form';\n\ntype SelectFieldProps = {\n label: string;\n name: string;\n placeholder?: string;\n description?: string;\n options: Array<{ value: string; label: string }>;\n defaultValue?: string;\n className?: string;\n onChange?: (value: string) => void;\n};\n\nexport function SelectField({\n label,\n name,\n options,\n defaultValue,\n description,\n onChange,\n}: SelectFieldProps) {\n const { control } = useFormContext();\n\n return (\n <FormField\n defaultValue={defaultValue}\n control={control}\n name={name}\n render={({ field, fieldState }) => (\n <FormItem className={`RemoteFlows__SelectField__Item__${name}`}>\n <FormLabel className=\"RemoteFlows__SelectField__Label\">\n {label}\n </FormLabel>\n <FormControl>\n <div className=\"relative\">\n <Select\n value={field.value}\n onValueChange={(value: string) => {\n field.onChange(value);\n onChange?.(value);\n }}\n >\n <SelectTrigger\n className=\"RemoteFlows__SelectField__Trigger\"\n aria-invalid={Boolean(fieldState.error)}\n >\n <span className=\"absolute\">\n <SelectValue />\n </span>\n </SelectTrigger>\n <SelectContent className=\"RemoteFlows__SelectField__Content\">\n <SelectGroup className=\"RemoteFlows__SelectField__Group\">\n {options.map((option) => (\n <SelectItem\n key={option.value}\n value={option.value}\n className=\"RemoteFlows__SelectField__SelectItem\"\n >\n {option.label}\n </SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n </Select>\n </div>\n </FormControl>\n {description && <FormDescription>{description}</FormDescription>}\n {fieldState.error && <FormMessage />}\n </FormItem>\n )}\n />\n );\n}\n","import * as React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\n\nimport { cn } from '@/src/lib/utils';\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />;\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />;\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />;\n}\n\nfunction SelectTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger>) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n className={cn(\n \"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-full items-center justify-between rounded-xl border bg-transparent px-4 py-7 text-sm whitespace-nowrap transition-[color] outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n 'focus-visible:border-focused',\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild className=\"absolute right-4\">\n <ChevronDownIcon className=\"size-4\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = 'popper',\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn('px-2 py-1.5 text-sm font-medium', className)}\n {...props}\n />\n );\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground min-h-11 justify-between [&_svg:not([class*='text-'])]:text-muted-foreground flex w-full cursor-default items-center gap-2 py-2 px-4 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n className,\n )}\n {...props}\n >\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n <span className=\"flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn('bg-border pointer-events-none -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-1',\n className,\n )}\n {...props}\n >\n <ChevronUpIcon className=\"size-4\" />\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-1',\n className,\n )}\n {...props}\n >\n <ChevronDownIcon className=\"size-4\" />\n </SelectPrimitive.ScrollDownButton>\n );\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n","import * as React from 'react';\n\nimport { useFormContext } from 'react-hook-form';\nimport {\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from '../../ui/form';\nimport { Input } from '../../ui/input';\n\ntype TextFieldProps = React.ComponentProps<'input'> & {\n label: string;\n description?: string;\n name: string;\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n};\n\ntype InputModeAttrsProps = Pick<\n React.ComponentProps<'input'>,\n 'type' | 'inputMode' | 'pattern'\n>;\n\nconst inputModeAttrs: InputModeAttrsProps = {\n type: 'text',\n inputMode: 'decimal',\n pattern: '^[0-9.]*$',\n};\n\nexport function TextField({\n name,\n description,\n label,\n type,\n onChange,\n}: TextFieldProps) {\n const { control } = useFormContext();\n const isTypeNumber = type === 'number';\n const typeAttrs = isTypeNumber ? inputModeAttrs : { type };\n return (\n <FormField\n control={control}\n name={name}\n render={({ field, fieldState }) => (\n <FormItem className={`RemoteFlows__TextField__Item__${name}`}>\n <FormLabel className=\"RemoteFlows__TextField__Label\">\n {label}\n </FormLabel>\n <FormControl>\n <Input\n {...field}\n value={field.value ?? ''}\n onChange={(event: React.ChangeEvent<HTMLInputElement>) => {\n field.onChange(event);\n onChange?.(event);\n }}\n {...typeAttrs}\n className=\"RemoteFlows__TextField__Input\"\n />\n </FormControl>\n {description && (\n <FormDescription className=\"RemoteFlows__TextField__Description\">\n {description}\n </FormDescription>\n )}\n {fieldState.error && (\n <FormMessage className=\"RemoteFlows__TextField__Error\" />\n )}\n </FormItem>\n )}\n />\n );\n}\n","import * as React from 'react';\n\nimport { cn } from '@/src/lib/utils';\n\nfunction Input({ className, type, ...props }: React.ComponentProps<'input'>) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n 'shadow-xs border-input file:text-foreground placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-xl border bg-transparent px-4 py-7 text-sm transition-[color] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',\n 'focus-visible:border-focused',\n 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Input };\n","'use client';\n\nimport * as React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\n\nimport { cn } from '@/src/lib/utils';\n\nconst Checkbox = React.forwardRef<\n React.ComponentRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'peer h-4 w-4 shrink-0 rounded-sm border border-input ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-checkbox data-[state=checked]:text-primary',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn('flex items-center justify-center text-current')}\n >\n <Check className=\"h-4 w-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n","import { Checkbox } from '@/src/components/ui/checkbox';\nimport {\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from '@/src/components/ui/form';\nimport { cn } from '@/src/lib/utils';\nimport * as React from 'react';\nimport { useFormContext } from 'react-hook-form';\n\ntype CheckBoxFieldProps = {\n name: string;\n label: string;\n description?: string;\n defaultValue?: string;\n};\n\nexport function CheckBoxField({\n name,\n defaultValue,\n description,\n label,\n}: CheckBoxFieldProps) {\n const { control } = useFormContext();\n return (\n <FormField\n control={control}\n name={name}\n defaultValue={defaultValue}\n render={({ field, fieldState }) => {\n return (\n <FormItem className={cn(`RemoteFlows__CheckBoxField__Item__${name}`)}>\n <FormControl>\n <div className=\"flex space-x-2\">\n <Checkbox\n id={name}\n onCheckedChange={field.onChange}\n checked={field.value}\n className=\"RemoteFlows__CheckBox__Input\"\n />\n <FormLabel\n htmlFor={name}\n className=\"mb-0 RemoteFlows__CheckBox__Label\"\n >\n {label}\n </FormLabel>\n </div>\n </FormControl>\n {description && <FormDescription>{description}</FormDescription>}\n {fieldState.error && <FormMessage />}\n </FormItem>\n );\n }}\n />\n );\n}\n","import * as React from 'react';\n\nimport { useFormContext } from 'react-hook-form';\nimport {\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n} from '../../ui/form';\nimport { Textarea } from '../../ui/textarea';\nimport { cn } from '@/src/lib/utils';\n\ntype TextAreaFieldProps = {\n label: string;\n description?: string;\n name: string;\n maxLength?: number;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n};\n\nexport function TextAreaField({\n name,\n description,\n label,\n onChange,\n maxLength,\n}: TextAreaFieldProps) {\n const { control } = useFormContext();\n return (\n <FormField\n control={control}\n name={name}\n render={({ field, fieldState }) => {\n const valueLength = field.value?.length ?? 0;\n return (\n <FormItem className={`RemoteFlows__TextArea__Item__${name}`}>\n <FormLabel className=\"RemoteFlows__TextArea__Label\">\n {label}\n </FormLabel>\n <FormControl>\n <Textarea\n {...field}\n value={field.value ?? ''}\n onChange={(event: React.ChangeEvent<HTMLTextAreaElement>) => {\n field.onChange(event);\n onChange?.(event);\n }}\n className={cn(\n fieldState.error &&\n 'border-red-500 focus-visible:ring-red-500',\n 'RemoteFlows__TextArea__Input',\n )}\n />\n </FormControl>\n {(description || maxLength) && (\n <div className=\"flex items-center justify-between\">\n {description && (\n <FormDescription className=\"RemoteFlows__TextArea__Description\">\n {description}\n </FormDescription>\n )}\n {maxLength && (\n <span className=\"text-sm ml-auto RemoteFlows__TextArea__MaxLength\">\n {valueLength}/{maxLength}\n </span>\n )}\n </div>\n )}\n {fieldState.error && (\n <FormMessage className=\"RemoteFlows__TextArea__Error\" />\n )}\n </FormItem>\n );\n }}\n />\n );\n}\n","import * as React from 'react';\n\nimport { cn } from '@/src/lib/utils';\n\nconst Textarea = React.forwardRef<\n HTMLTextAreaElement,\n React.ComponentProps<'textarea'>\n>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n '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',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\nTextarea.displayName = 'Textarea';\n\nexport { Textarea };\n","import { useCallback } from 'react';\nimport { FieldValues, Resolver } from 'react-hook-form';\nimport type { AnyObjectSchema, InferType, ValidationError } from 'yup';\n\nconst useValidationYupResolver = <T extends AnyObjectSchema>(\n validationSchema: T,\n) => {\n return useCallback(\n async (data: FieldValues) => {\n return await validationSchema.validate(data, {\n abortEarly: false,\n });\n },\n [validationSchema],\n );\n};\n\nfunction iterateErrors(error: ValidationError) {\n const errors = (error as ValidationError).inner.reduce(\n (\n allErrors: Record<string, { type: string; message: string }>,\n currentError: ValidationError,\n ) => {\n return {\n ...allErrors,\n [currentError.path as string]: {\n type: currentError.type ?? 'validation',\n message: currentError.message,\n },\n };\n },\n {} as Record<string, { type: string; message: string }>,\n );\n\n return errors;\n}\n\nexport const useValidationFormResolver = <T extends AnyObjectSchema>(\n validationSchema: T,\n): Resolver<InferType<T>> => {\n const yupValidation = useValidationYupResolver(validationSchema);\n return useCallback(\n async (data: FieldValues) => {\n let values;\n let errors = {};\n\n try {\n values = await yupValidation(data);\n } catch (error) {\n errors = iterateErrors(error as ValidationError);\n }\n\n if (Object.keys(errors).length > 0) {\n return {\n values: {},\n errors: errors,\n };\n }\n\n return {\n values,\n errors: {},\n };\n },\n [validationSchema],\n );\n};\n"],"mappings":"iNAAA,OAAOA,MAAW,QAClB,OAAS,WAAAC,OAAe,kBCDxB,UAAYC,MAAW,QAEvB,OAAS,QAAAC,OAAY,uBACrB,OACE,cAAAC,GAIA,gBAAAC,GACA,kBAAAC,GACA,gBAAAC,OACK,kBCTP,UAAYC,MAAW,QACvB,UAAYC,MAAoB,wBAIhC,SAASC,GAAM,CACb,UAAAC,EACA,GAAGC,CACL,EAAqD,CACnD,OACE,gBAAgB,OAAf,CACC,YAAU,QACV,UAAWC,EACT,gJACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAdSE,EAAAJ,GAAA,SDST,IAAMK,GAAOC,GASPC,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AMb,EAAqBY,CAAM,EAEhDC,EAAW,MACbf,IAAUe,EAAW,KAAK,EAE1Bd,IAAYc,EAAW,IAAI,CAE/B,EAVqB,gBAYfC,GAAcH,EAAA,IAAM,CACxBH,EAAK,MAAM,EACXJ,EAAU,CACZ,EAHoB,eAKpB,OACEW,EAAA,cAAAA,EAAA,cACEA,EAAA,cAACC,GAAA,CAAM,GAAGR,GACRO,EAAA,cAAC,QACC,SAAUP,EAAK,aAAaE,EAAY,EACxC,UAAU,6CAEVK,EAAA,cAACE,GAAA,CAAqB,OAAQhB,EAAQ,EACtCc,EAAA,cAACG,EAAA,CACC,KAAK,SACL,UAAU,gDACV,SAAUf,GACX,cAED,EACAY,EAAA,cAACG,EAAA,CACC,UAAU,+CACV,KAAK,QACL,QAASJ,IACV,OAED,CACF,CACF,EACAC,EAAA,cAAC,OAAI,UAAU,2CACbA,EAAA,cAACI,EAAA,CAAW,MAAOvB,GAAS,YAAY,MAAO,CACjD,CACF,CAEJ,CAlFgBe,EAAAnB,GAAA","names":["React","useForm","React","Slot","Controller","FormProvider","useFormContext","useFormState","React","LabelPrimitive","Label","className","props","cn","__name","Form","FormProvider","FormFieldContext","FormField","__name","props","Controller","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","useFormContext","formState","useFormState","fieldState","id","FormItem","className","cn","FormLabel","error","formItemId","Label","FormControl","ref","formDescriptionId","formMessageId","Slot","FormDescription","FormMessage","body","React","React","CalendarIcon","React","useFormContext","React","ChevronLeft","ChevronRight","DayPicker","Calendar","className","classNames","showOutsideDays","props","DayPicker","cn","buttonVariants","__name","ChevronLeft","ChevronRight","React","PopoverPrimitive","Popover","props","__name","PopoverTrigger","PopoverContent","className","align","sideOffset","cn","PopoverClose","format","DatePickerField","description","label","name","control","useFormContext","FormField","field","FormItem","FormLabel","Popover","PopoverTrigger","FormControl","Button","cn","format","CalendarIcon","PopoverContent","Calendar","__name","props","PopoverClose","date","FormDescription","FormMessage","React","FieldSetField","label","name","fields","description","cn","field","FieldComponent","fieldsMap","__name","RadioGroupPrimitive","CircleIcon","React","RadioGroup","className","props","cn","__name","RadioGroupItem","CircleIcon","React","useFormContext","RadioGroupField","name","defaultValue","description","label","options","control","useFormContext","FormField","field","fieldState","FormItem","cn","FormLabel","FormControl","RadioGroup","option","RadioGroupItem","FormDescription","FormMessage","__name","React","React","SelectPrimitive","CheckIcon","ChevronDownIcon","ChevronUpIcon","Select","props","__name","SelectGroup","SelectValue","SelectTrigger","className","children","cn","ChevronDownIcon","SelectContent","position","SelectScrollUpButton","SelectScrollDownButton","SelectItem","className","children","props","cn","CheckIcon","__name","SelectScrollUpButton","className","props","cn","ChevronUpIcon","__name","SelectScrollDownButton","ChevronDownIcon","useFormContext","SelectField","label","name","options","defaultValue","description","onChange","control","useFormContext","FormField","field","fieldState","FormItem","FormLabel","FormControl","Select","value","SelectTrigger","SelectValue","SelectContent","SelectGroup","option","SelectItem","FormDescription","FormMessage","__name","React","useFormContext","React","Input","className","type","props","cn","__name","inputModeAttrs","TextField","name","description","label","type","onChange","control","useFormContext","typeAttrs","FormField","field","fieldState","FormItem","FormLabel","FormControl","Input","event","FormDescription","FormMessage","__name","React","CheckboxPrimitive","Check","Checkbox","className","props","ref","cn","Check","React","useFormContext","CheckBoxField","name","defaultValue","description","label","control","useFormContext","FormField","field","fieldState","FormItem","cn","FormControl","Checkbox","FormLabel","FormDescription","FormMessage","__name","React","useFormContext","React","Textarea","className","props","ref","cn","TextAreaField","name","description","label","onChange","maxLength","control","useFormContext","FormField","field","fieldState","valueLength","FormItem","FormLabel","FormControl","Textarea","event","cn","FormDescription","FormMessage","__name","fieldsMap","CheckBoxField","TextField","SelectField","RadioGroupField","__name","props","React","FieldSetField","DatePickerField","TextAreaField","JSONSchemaFormFields","__name","fields","React","field","FieldComponent","fieldsMap","useCallback","useValidationYupResolver","__name","validationSchema","useCallback","data","iterateErrors","error","allErrors","currentError","useValidationFormResolver","yupValidation","values","errors","CostCalculator","estimationOptions","defaultEstimationOptions","defaultValues","options","onSubmit","onError","onSuccess","submitCostCalculator","fields","validationSchema","isSubmitting","resetForm","useCostCalculator","resolver","useValidationFormResolver","form","useForm","handleSubmit","__name","values","estimation","handleReset","React","Form","JSONSchemaFormFields","Button","Disclaimer"]}
@@ -1,2 +0,0 @@
1
- import{b as p}from"./chunk-HHNKZK2V.js";import{g}from"./chunk-K44YP7ZG.js";import{a as s}from"./chunk-ATKR5HCM.js";import{a as m}from"./chunk-AYDF3IFZ.js";import o from"react";import*as a from"react";import{Drawer as l}from"vaul";var d=m(({shouldScaleBackground:e=!0,...r})=>a.createElement(l.Root,{shouldScaleBackground:e,...r}),"Drawer");d.displayName="Drawer";var y=l.Trigger,h=l.Portal,P=l.Close,N=a.forwardRef(({className:e,...r},i)=>a.createElement(l.Overlay,{ref:i,className:s("fixed inset-0 z-50 bg-black/80",e),...r}));N.displayName=l.Overlay.displayName;var f=a.forwardRef(({className:e,children:r,...i},c)=>a.createElement(h,null,a.createElement(N,null),a.createElement(l.Content,{ref:c,className:s("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...i},a.createElement("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),r)));f.displayName="DrawerContent";var D=m(({className:e,...r})=>a.createElement("div",{className:s("grid gap-1.5 p-4 text-center sm:text-left",e),...r}),"DrawerHeader");D.displayName="DrawerHeader";var S=m(({className:e,...r})=>a.createElement("div",{className:s("mt-auto flex flex-col gap-2 p-4",e),...r}),"DrawerFooter");S.displayName="DrawerFooter";var w=a.forwardRef(({className:e,...r},i)=>a.createElement(l.Title,{ref:i,className:s("text-lg font-semibold leading-none tracking-tight",e),...r}));w.displayName=l.Title.displayName;var u=a.forwardRef(({className:e,...r},i)=>a.createElement(l.Description,{ref:i,className:s("text-sm text-muted-foreground",e),...r}));u.displayName=l.Description.displayName;import*as n from"react";import*as t from"@radix-ui/react-scroll-area";var v=n.forwardRef(({className:e,children:r,...i},c)=>n.createElement(t.Root,{ref:c,className:s("relative overflow-hidden",e),...i},n.createElement(t.Viewport,{className:"h-full w-full rounded-[inherit]"},r),n.createElement(b,null),n.createElement(t.Corner,null)));v.displayName=t.Root.displayName;var b=n.forwardRef(({className:e,orientation:r="vertical",...i},c)=>n.createElement(t.ScrollAreaScrollbar,{ref:c,orientation:r,className:s("flex touch-none select-none transition-colors",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...i},n.createElement(t.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})));b.displayName=t.ScrollAreaScrollbar.displayName;import{X as x}from"lucide-react";var O=m(({label:e="Disclaimer"})=>{let{data:r}=g();return o.createElement(d,null,o.createElement(y,{asChild:!0},o.createElement(p,{variant:"link",size:"link"},e)),o.createElement(f,null,o.createElement(D,null,o.createElement(P,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"},o.createElement(x,{className:"h-4 w-4"}),o.createElement("span",{className:"sr-only"},"Close")),o.createElement(w,null,r?.data.title),o.createElement(u,null,"For more details read our"," ",o.createElement(p,{variant:"link",size:"link",asChild:!0},o.createElement("a",{href:r?.data.html_url,target:"_blank",rel:"noopener noreferrer"},"Disclaimer")))),o.createElement(v,{className:"px-4 pb-4 overflow-y-auto max-h-[calc(80vh-120px)] cost-calculator-disclaimer-drawer-scroll-area"},o.createElement("div",{className:"cost-calculator-disclaimer-drawer-body",dangerouslySetInnerHTML:{__html:r?.data.body??""}}))))},"Disclaimer");export{O as a};
2
- //# sourceMappingURL=chunk-56PULCHS.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/CostCalculator/Disclaimer/Disclaimer.tsx","../src/components/ui/drawer.tsx","../src/components/ui/scroll-area.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from '@/src/components/ui/drawer';\nimport { ScrollArea } from '@/src/components/ui/scroll-area';\nimport { X } from 'lucide-react';\nimport { Button } from '@/src/components/ui/button';\nimport { useCostCalculatorDisclaimer } from '@/src/flows/CostCalculator/hooks';\n\ntype DisclaimerProps = {\n label?: string;\n};\n\nexport const Disclaimer = ({ label = 'Disclaimer' }: DisclaimerProps) => {\n const { data: disclaimer } = useCostCalculatorDisclaimer();\n return (\n <Drawer>\n <DrawerTrigger asChild>\n <Button variant=\"link\" size=\"link\">\n {label}\n </Button>\n </DrawerTrigger>\n <DrawerContent>\n <DrawerHeader>\n <DrawerClose className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DrawerClose>\n <DrawerTitle>{disclaimer?.data.title}</DrawerTitle>\n <DrawerDescription>\n For more details read our{' '}\n <Button variant=\"link\" size=\"link\" asChild>\n <a\n href={disclaimer?.data.html_url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n Disclaimer\n </a>\n </Button>\n </DrawerDescription>\n </DrawerHeader>\n <ScrollArea className=\"px-4 pb-4 overflow-y-auto max-h-[calc(80vh-120px)] cost-calculator-disclaimer-drawer-scroll-area\">\n <div\n className=\"cost-calculator-disclaimer-drawer-body\"\n dangerouslySetInnerHTML={{ __html: disclaimer?.data.body ?? '' }}\n ></div>\n </ScrollArea>\n </DrawerContent>\n </Drawer>\n );\n};\n","'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { cn } from '@/src/lib/utils';\n\nconst Drawer = ({\n shouldScaleBackground = true,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root\n shouldScaleBackground={shouldScaleBackground}\n {...props}\n />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay\n ref={ref}\n className={cn('fixed inset-0 z-50 bg-black/80', className)}\n {...props}\n />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;\n\nconst DrawerContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n 'fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background',\n className,\n )}\n {...props}\n >\n <div className=\"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)}\n {...props}\n />\n);\nDrawerHeader.displayName = 'DrawerHeader';\n\nconst DrawerFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('mt-auto flex flex-col gap-2 p-4', className)}\n {...props}\n />\n);\nDrawerFooter.displayName = 'DrawerFooter';\n\nconst DrawerTitle = React.forwardRef<\n HTMLHeadingElement,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight',\n className,\n )}\n {...props}\n />\n));\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName;\n\nconst DrawerDescription = React.forwardRef<\n HTMLParagraphElement,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n));\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName;\n\nexport {\n Drawer,\n DrawerPortal,\n DrawerOverlay,\n DrawerTrigger,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerFooter,\n DrawerTitle,\n DrawerDescription,\n};\n","import * as React from 'react';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\n\nimport { cn } from '@/src/lib/utils';\n\nconst ScrollArea = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn('relative overflow-hidden', className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n));\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = 'vertical', ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n 'flex touch-none select-none transition-colors',\n orientation === 'vertical' &&\n 'h-full w-2.5 border-l border-l-transparent p-[1px]',\n orientation === 'horizontal' &&\n 'h-2.5 flex-col border-t border-t-transparent p-[1px]',\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\n"],"mappings":"2JAAA,OAAOA,MAAW,QCElB,UAAYC,MAAW,QACvB,OAAS,UAAUC,MAAuB,OAI1C,IAAMC,EAASC,EAAA,CAAC,CACd,sBAAAC,EAAwB,GACxB,GAAGC,CACL,IACE,gBAACC,EAAgB,KAAhB,CACC,sBAAuBF,EACtB,GAAGC,EACN,EAPa,UASfH,EAAO,YAAc,SAErB,IAAMK,EAAgBD,EAAgB,QAEhCE,EAAeF,EAAgB,OAE/BG,EAAcH,EAAgB,MAE9BI,EAAsB,aAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGN,CAAM,EAAGO,IAC1B,gBAACN,EAAgB,QAAhB,CACC,IAAKM,EACL,UAAWC,EAAG,iCAAkCF,CAAS,EACxD,GAAGN,EACN,CACD,EACDK,EAAc,YAAcJ,EAAgB,QAAQ,YAEpD,IAAMQ,EAAsB,aAG1B,CAAC,CAAE,UAAAH,EAAW,SAAAI,EAAU,GAAGV,CAAM,EAAGO,IACpC,gBAACJ,EAAA,KACC,gBAACE,EAAA,IAAc,EACf,gBAACJ,EAAgB,QAAhB,CACC,IAAKM,EACL,UAAWC,EACT,iGACAF,CACF,EACC,GAAGN,GAEJ,gBAAC,OAAI,UAAU,mDAAmD,EACjEU,CACH,CACF,CACD,EACDD,EAAc,YAAc,gBAE5B,IAAME,EAAeb,EAAA,CAAC,CACpB,UAAAQ,EACA,GAAGN,CACL,IACE,gBAAC,OACC,UAAWQ,EAAG,4CAA6CF,CAAS,EACnE,GAAGN,EACN,EAPmB,gBASrBW,EAAa,YAAc,eAE3B,IAAMC,EAAed,EAAA,CAAC,CACpB,UAAAQ,EACA,GAAGN,CACL,IACE,gBAAC,OACC,UAAWQ,EAAG,kCAAmCF,CAAS,EACzD,GAAGN,EACN,EAPmB,gBASrBY,EAAa,YAAc,eAE3B,IAAMC,EAAoB,a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QAAO,IACpBF,EAAA,cAACG,EAAA,CAAO,QAAQ,OAAO,KAAK,QACzBN,CACH,CACF,EACAG,EAAA,cAACI,EAAA,KACCJ,EAAA,cAACK,EAAA,KACCL,EAAA,cAACM,EAAA,CAAY,UAAU,6MACrBN,EAAA,cAACO,EAAA,CAAE,UAAU,UAAU,EACvBP,EAAA,cAAC,QAAK,UAAU,WAAU,OAAK,CACjC,EACAA,EAAA,cAACQ,EAAA,KAAaV,GAAY,KAAK,KAAM,EACrCE,EAAA,cAACS,EAAA,KAAkB,4BACS,IAC1BT,EAAA,cAACG,EAAA,CAAO,QAAQ,OAAO,KAAK,OAAO,QAAO,IACxCH,EAAA,cAAC,KACC,KAAMF,GAAY,KAAK,SACvB,OAAO,SACP,IAAI,uBACL,YAED,CACF,CACF,CACF,EACAE,EAAA,cAACU,EAAA,CAAW,UAAU,oGACpBV,EAAA,cAAC,OACC,UAAU,yCACV,wBAAyB,CAAE,OAAQF,GAAY,KAAK,MAAQ,EAAG,EAChE,CACH,CACF,CACF,CAEJ,EAtC0B","names":["React","React","DrawerPrimitive","Drawer","__name","shouldScaleBackground","props","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","className","ref","cn","DrawerContent","children","DrawerHeader","DrawerFooter","DrawerTitle","DrawerDescription","React","ScrollAreaPrimitive","ScrollArea","className","children","props","ref","cn","ScrollBar","orientation","X","Disclaimer","__name","label","disclaimer","useCostCalculatorDisclaimer","React","Drawer","DrawerTrigger","Button","DrawerContent","DrawerHeader","DrawerClose","X","DrawerTitle","DrawerDescription","ScrollArea"]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-FX6BYIQS.js.map