@gusto/embedded-react-sdk 0.10.7-rc.1 → 0.10.7-rc.2

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 (57) hide show
  1. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  2. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  3. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  4. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  5. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  6. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  7. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  8. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  9. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  10. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  11. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  12. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  13. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +9 -8
  14. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  15. package/dist/components/Company/Industry/Context.js +7 -6
  16. package/dist/components/Company/Industry/Context.js.map +1 -1
  17. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  18. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  19. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  20. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  21. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  22. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  23. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
  24. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  25. package/dist/components/Company/StateTaxes/StateTaxes.js +23 -44
  26. package/dist/components/Company/StateTaxes/StateTaxes.js.map +1 -1
  27. package/dist/components/Company/StateTaxes/StateTaxesComponents.d.ts +6 -8
  28. package/dist/components/Company/StateTaxes/StateTaxesComponents.js +15 -16
  29. package/dist/components/Company/StateTaxes/StateTaxesComponents.js.map +1 -1
  30. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  31. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  32. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  33. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  34. package/dist/components/Company/StateTaxes/stateTaxesStateMachine.d.ts +5 -0
  35. package/dist/components/Company/StateTaxes/stateTaxesStateMachine.js +48 -0
  36. package/dist/components/Company/StateTaxes/stateTaxesStateMachine.js.map +1 -0
  37. package/dist/components/Contractor/Address/useAddress.js +6 -5
  38. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  39. package/dist/components/Employee/Deductions/useDeductions.js +6 -5
  40. package/dist/components/Employee/Deductions/useDeductions.js.map +1 -1
  41. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  42. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  43. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  44. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  45. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
  46. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  47. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  48. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  49. package/dist/components/Employee/Profile/useProfile.js +4 -3
  50. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  51. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  52. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  53. package/dist/style.css +1 -1
  54. package/package.json +4 -4
  55. package/dist/components/Company/StateTaxes/stateTaxesReducer.d.ts +0 -20
  56. package/dist/components/Company/StateTaxes/stateTaxesReducer.js +0 -40
  57. package/dist/components/Company/StateTaxes/stateTaxesReducer.js.map +0 -1
@@ -10,10 +10,11 @@ import "../../../Base/useBase.js";
10
10
  import "../../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
14
- const [c, d] = t("CreateSignatoryContext");
15
+ const [d, s] = t("CreateSignatoryContext");
15
16
  export {
16
- d as CreateSignatoryProvider,
17
- c as useCreateSignatory
17
+ s as CreateSignatoryProvider,
18
+ d as useCreateSignatory
18
19
  };
19
20
  //# sourceMappingURL=useCreateSignatory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport type CreateSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title' | 'phone' | 'birthday'> &\n Pick<\n NonNullable<Signatory['homeAddress']>,\n 'street1' | 'street2' | 'city' | 'state' | 'zip'\n > & {\n ssn?: string\n }\n>\ntype CreateSignatoryContextType = {\n isPending: boolean\n currentSignatory?: Signatory\n}\n\nconst [useCreateSignatory, CreateSignatoryProvider] =\n createCompoundContext<CreateSignatoryContextType>('CreateSignatoryContext')\n\nexport { useCreateSignatory, CreateSignatoryProvider }\n"],"names":["useCreateSignatory","CreateSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAkBA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
1
+ {"version":3,"file":"useCreateSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport type CreateSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title' | 'phone' | 'birthday'> &\n Pick<\n NonNullable<Signatory['homeAddress']>,\n 'street1' | 'street2' | 'city' | 'state' | 'zip'\n > & {\n ssn?: string\n }\n>\ntype CreateSignatoryContextType = {\n isPending: boolean\n currentSignatory?: Signatory\n}\n\nconst [useCreateSignatory, CreateSignatoryProvider] =\n createCompoundContext<CreateSignatoryContextType>('CreateSignatoryContext')\n\nexport { useCreateSignatory, CreateSignatoryProvider }\n"],"names":["useCreateSignatory","CreateSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAkBA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
@@ -10,10 +10,11 @@ import "../../../Base/useBase.js";
10
10
  import "../../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
14
- const [I, S] = t("InviteSignatoryContext");
15
+ const [S, c] = t("InviteSignatoryContext");
15
16
  export {
16
- S as InviteSignatoryProvider,
17
- I as useInviteSignatory
17
+ c as InviteSignatoryProvider,
18
+ S as useInviteSignatory
18
19
  };
19
20
  //# sourceMappingURL=useInviteSignatory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useInviteSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\ntype InviteSignatoryContextType = {\n isPending: boolean\n}\n\nexport type InviteSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title'> & {\n confirmEmail: string\n }\n>\n\nconst [useInviteSignatory, InviteSignatoryProvider] =\n createCompoundContext<InviteSignatoryContextType>('InviteSignatoryContext')\n\nexport { useInviteSignatory, InviteSignatoryProvider }\n"],"names":["useInviteSignatory","InviteSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
1
+ {"version":3,"file":"useInviteSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\ntype InviteSignatoryContextType = {\n isPending: boolean\n}\n\nexport type InviteSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title'> & {\n confirmEmail: string\n }\n>\n\nconst [useInviteSignatory, InviteSignatoryProvider] =\n createCompoundContext<InviteSignatoryContextType>('InviteSignatoryContext')\n\nexport { useInviteSignatory, InviteSignatoryProvider }\n"],"names":["useInviteSignatory","InviteSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
@@ -10,14 +10,15 @@ import "../../Base/useBase.js";
10
10
  import "../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
14
- const A = {
15
+ const d = {
15
16
  createSignatory: "createSignatory",
16
17
  inviteSignatory: "inviteSignatory"
17
- }, [d, v] = t("AssignSignatoryContext");
18
+ }, [v, x] = t("AssignSignatoryContext");
18
19
  export {
19
- v as AssignSignatoryProvider,
20
- A as SignatoryAssignmentMode,
21
- d as useAssignSignatory
20
+ x as AssignSignatoryProvider,
21
+ d as SignatoryAssignmentMode,
22
+ v as useAssignSignatory
22
23
  };
23
24
  //# sourceMappingURL=useAssignSignatory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAssignSignatory.js","sources":["../../../../src/components/Company/AssignSignatory/useAssignSignatory.ts"],"sourcesContent":["import { type CreateSignatoryDefaultValues } from './CreateSignatory'\nimport { type InviteSignatoryDefaultValues } from './InviteSignatory'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport const SignatoryAssignmentMode = {\n createSignatory: 'createSignatory',\n inviteSignatory: 'inviteSignatory',\n} as const\n\nexport type AssignSignatoryDefaultValues = RequireAtLeastOne<{\n create?: CreateSignatoryDefaultValues\n invite?: InviteSignatoryDefaultValues\n}>\n\ntype AssignSignatoryContextType = {\n companyId: string\n signatoryId?: string\n defaultValues?: AssignSignatoryDefaultValues\n onSignatoryAssignmentModeChange: (mode: string) => void\n onSignatoryFormEvent: BaseComponentInterface['onEvent']\n}\n\nconst [useAssignSignatory, AssignSignatoryProvider] =\n createCompoundContext<AssignSignatoryContextType>('AssignSignatoryContext')\n\nexport { useAssignSignatory, AssignSignatoryProvider }\n"],"names":["SignatoryAssignmentMode","useAssignSignatory","AssignSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAMO,MAAMA,IAA0B;AAAA,EACrC,iBAAiB;AAAA,EACjB,iBAAiB;AACnB,GAeM,CAACC,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
1
+ {"version":3,"file":"useAssignSignatory.js","sources":["../../../../src/components/Company/AssignSignatory/useAssignSignatory.ts"],"sourcesContent":["import { type CreateSignatoryDefaultValues } from './CreateSignatory'\nimport { type InviteSignatoryDefaultValues } from './InviteSignatory'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport const SignatoryAssignmentMode = {\n createSignatory: 'createSignatory',\n inviteSignatory: 'inviteSignatory',\n} as const\n\nexport type AssignSignatoryDefaultValues = RequireAtLeastOne<{\n create?: CreateSignatoryDefaultValues\n invite?: InviteSignatoryDefaultValues\n}>\n\ntype AssignSignatoryContextType = {\n companyId: string\n signatoryId?: string\n defaultValues?: AssignSignatoryDefaultValues\n onSignatoryAssignmentModeChange: (mode: string) => void\n onSignatoryFormEvent: BaseComponentInterface['onEvent']\n}\n\nconst [useAssignSignatory, AssignSignatoryProvider] =\n createCompoundContext<AssignSignatoryContextType>('AssignSignatoryContext')\n\nexport { useAssignSignatory, AssignSignatoryProvider }\n"],"names":["SignatoryAssignmentMode","useAssignSignatory","AssignSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAMO,MAAMA,IAA0B;AAAA,EACrC,iBAAiB;AAAA,EACjB,iBAAiB;AACnB,GAeM,CAACC,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
@@ -10,10 +10,11 @@ import "../../../Base/useBase.js";
10
10
  import "../../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
14
- const [B, C] = o("BankAccountContext");
15
+ const [C, d] = o("BankAccountContext");
15
16
  export {
16
- C as BankAccountFormProvider,
17
- B as useBankAccountForm
17
+ d as BankAccountFormProvider,
18
+ C as useBankAccountForm
18
19
  };
19
20
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport { type OnEventType } from '@/components/Base/useBase'\nimport { type EventType } from '@/shared/constants'\n\ntype BankAccountFormContextType = {\n isPending: boolean\n isEditing: boolean\n onEvent: OnEventType<EventType, unknown>\n}\n\nconst [useBankAccountForm, BankAccountFormProvider] =\n createCompoundContext<BankAccountFormContextType>('BankAccountContext')\n\nexport { useBankAccountForm, BankAccountFormProvider }\n"],"names":["useBankAccountForm","BankAccountFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,oBAAoB;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport { type OnEventType } from '@/components/Base/useBase'\nimport { type EventType } from '@/shared/constants'\n\ntype BankAccountFormContextType = {\n isPending: boolean\n isEditing: boolean\n onEvent: OnEventType<EventType, unknown>\n}\n\nconst [useBankAccountForm, BankAccountFormProvider] =\n createCompoundContext<BankAccountFormContextType>('BankAccountContext')\n\nexport { useBankAccountForm, BankAccountFormProvider }\n"],"names":["useBankAccountForm","BankAccountFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,oBAAoB;"}
@@ -10,12 +10,13 @@ import "../../../Base/useBase.js";
10
10
  import "../../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
14
- const [L, a] = t(
15
+ const [a, d] = t(
15
16
  "CompanyDocumentListContext"
16
17
  );
17
18
  export {
18
- a as DocumentListProvider,
19
- L as useDocumentList
19
+ d as DocumentListProvider,
20
+ a as useDocumentList
20
21
  };
21
22
  //# sourceMappingURL=useDocumentList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n companyForms: FormSchema[]\n documentListError: Error | null\n handleRequestFormToSign: (form: FormSchema) => void\n handleChangeSignatory: () => void\n handleContinue: () => void\n isSelfSignatory: boolean\n signatory?: Signatory\n}\n\nconst [useDocumentList, DocumentListProvider] = createCompoundContext<DocumentListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAcM,MAAA,CAACA,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
1
+ {"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n companyForms: FormSchema[]\n documentListError: Error | null\n handleRequestFormToSign: (form: FormSchema) => void\n handleChangeSignatory: () => void\n handleContinue: () => void\n isSelfSignatory: boolean\n signatory?: Signatory\n}\n\nconst [useDocumentList, DocumentListProvider] = createCompoundContext<DocumentListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAcM,MAAA,CAACA,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
@@ -10,12 +10,13 @@ import "../../../Base/useBase.js";
10
10
  import "../../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
14
- const [S, c] = o(
15
+ const [c, d] = o(
15
16
  "CompanySignatureFormContext"
16
17
  );
17
18
  export {
18
- c as SignatureFormProvider,
19
- S as useSignatureForm
19
+ d as SignatureFormProvider,
20
+ c as useSignatureForm
20
21
  };
21
22
  //# sourceMappingURL=useSignatureForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/useSignatureForm.ts"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype SignatureFormContextType = {\n form: FormSchema\n pdfUrl?: string | null\n isPending: boolean\n onBack: () => void\n}\n\nconst [useSignatureForm, SignatureFormProvider] = createCompoundContext<SignatureFormContextType>(\n 'CompanySignatureFormContext',\n)\n\nexport { useSignatureForm, SignatureFormProvider }\n"],"names":["useSignatureForm","SignatureFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAUM,MAAA,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
1
+ {"version":3,"file":"useSignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/useSignatureForm.ts"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype SignatureFormContextType = {\n form: FormSchema\n pdfUrl?: string | null\n isPending: boolean\n onBack: () => void\n}\n\nconst [useSignatureForm, SignatureFormProvider] = createCompoundContext<SignatureFormContextType>(\n 'CompanySignatureFormContext',\n)\n\nexport { useSignatureForm, SignatureFormProvider }\n"],"names":["useSignatureForm","SignatureFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUM,MAAA,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -1,5 +1,5 @@
1
1
  import { z as o } from "zod";
2
- import { FilingForm as e, TaxPayerType as r } from "@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails";
2
+ import { FilingForm as r, TaxPayerType as e } from "@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "react-error-boundary";
@@ -12,18 +12,19 @@ import "../../Base/useBase.js";
12
12
  import "../../../shared/constants.js";
13
13
  import "dompurify";
14
14
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
15
+ import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
15
16
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
16
- const y = o.object({
17
+ const C = o.object({
17
18
  federalEin: o.string().optional(),
18
- taxPayerType: o.enum(Object.values(r)).optional(),
19
- filingForm: o.enum(Object.values(e)).optional(),
19
+ taxPayerType: o.enum(Object.values(e)).optional(),
20
+ filingForm: o.enum(Object.values(r)).optional(),
20
21
  legalName: o.string().min(1)
21
- }), [C, b] = t(
22
+ }), [b, j] = t(
22
23
  "CompanyFederalTaxesContext"
23
24
  );
24
25
  export {
25
- y as FederalTaxFormSchema,
26
- b as FederalTaxesProvider,
27
- C as useFederalTaxes
26
+ C as FederalTaxFormSchema,
27
+ j as FederalTaxesProvider,
28
+ b as useFederalTaxes
28
29
  };
29
30
  //# sourceMappingURL=useFederalTaxes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFederalTaxes.js","sources":["../../../../src/components/Company/FederalTaxes/useFederalTaxes.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { FederalTaxDetails } from '@gusto/embedded-api/models/components/federaltaxdetails'\nimport {\n FilingForm,\n TaxPayerType,\n} from '@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport const FederalTaxFormSchema = z.object({\n federalEin: z.string().optional(),\n taxPayerType: z.enum(Object.values(TaxPayerType) as [string, ...string[]]).optional(),\n filingForm: z.enum(Object.values(FilingForm) as [string, ...string[]]).optional(),\n legalName: z.string().min(1),\n})\n\nexport type FederalTaxFormInputs = z.input<typeof FederalTaxFormSchema>\n\nexport type FederalTaxesDefaultValues = RequireAtLeastOne<{\n taxPayerType?: FederalTaxFormInputs['taxPayerType']\n filingForm?: FederalTaxFormInputs['filingForm']\n legalName?: FederalTaxFormInputs['legalName']\n}>\n\ntype FederalTaxesContextType = {\n isPending: boolean\n federalTaxDetails?: FederalTaxDetails\n}\n\nconst [useFederalTaxes, FederalTaxesProvider] = createCompoundContext<FederalTaxesContextType>(\n 'CompanyFederalTaxesContext',\n)\n\nexport { useFederalTaxes, FederalTaxesProvider }\n"],"names":["FederalTaxFormSchema","z","TaxPayerType","FilingForm","useFederalTaxes","FederalTaxesProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AASa,MAAAA,IAAuBC,EAAE,OAAO;AAAA,EAC3C,YAAYA,EAAE,OAAO,EAAE,SAAS;AAAA,EAChC,cAAcA,EAAE,KAAK,OAAO,OAAOC,CAAY,CAA0B,EAAE,SAAS;AAAA,EACpF,YAAYD,EAAE,KAAK,OAAO,OAAOE,CAAU,CAA0B,EAAE,SAAS;AAAA,EAChF,WAAWF,EAAE,OAAO,EAAE,IAAI,CAAC;AAC7B,CAAC,GAeK,CAACG,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
1
+ {"version":3,"file":"useFederalTaxes.js","sources":["../../../../src/components/Company/FederalTaxes/useFederalTaxes.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { FederalTaxDetails } from '@gusto/embedded-api/models/components/federaltaxdetails'\nimport {\n FilingForm,\n TaxPayerType,\n} from '@gusto/embedded-api/models/operations/putv1companiescompanyidfederaltaxdetails'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport const FederalTaxFormSchema = z.object({\n federalEin: z.string().optional(),\n taxPayerType: z.enum(Object.values(TaxPayerType) as [string, ...string[]]).optional(),\n filingForm: z.enum(Object.values(FilingForm) as [string, ...string[]]).optional(),\n legalName: z.string().min(1),\n})\n\nexport type FederalTaxFormInputs = z.input<typeof FederalTaxFormSchema>\n\nexport type FederalTaxesDefaultValues = RequireAtLeastOne<{\n taxPayerType?: FederalTaxFormInputs['taxPayerType']\n filingForm?: FederalTaxFormInputs['filingForm']\n legalName?: FederalTaxFormInputs['legalName']\n}>\n\ntype FederalTaxesContextType = {\n isPending: boolean\n federalTaxDetails?: FederalTaxDetails\n}\n\nconst [useFederalTaxes, FederalTaxesProvider] = createCompoundContext<FederalTaxesContextType>(\n 'CompanyFederalTaxesContext',\n)\n\nexport { useFederalTaxes, FederalTaxesProvider }\n"],"names":["FederalTaxFormSchema","z","TaxPayerType","FilingForm","useFederalTaxes","FederalTaxesProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AASa,MAAAA,IAAuBC,EAAE,OAAO;AAAA,EAC3C,YAAYA,EAAE,OAAO,EAAE,SAAS;AAAA,EAChC,cAAcA,EAAE,KAAK,OAAO,OAAOC,CAAY,CAA0B,EAAE,SAAS;AAAA,EACpF,YAAYD,EAAE,KAAK,OAAO,OAAOE,CAAU,CAA0B,EAAE,SAAS;AAAA,EAChF,WAAWF,EAAE,OAAO,EAAE,IAAI,CAAC;AAC7B,CAAC,GAeK,CAACG,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
@@ -10,16 +10,17 @@ import "../../Base/useBase.js";
10
10
  import "../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
14
- const [c, A] = t("IndustryItems", {
15
+ const [A, P] = t("IndustryItems", {
15
16
  items: []
16
- }), [P, f] = t("IndustryApi", {
17
+ }), [f, v] = t("IndustryApi", {
17
18
  isPending: !1
18
19
  });
19
20
  export {
20
- f as IndustryApiStateProvider,
21
- A as IndustryItemsProvider,
22
- P as useIndustryApiState,
23
- c as useIndustryItems
21
+ v as IndustryApiStateProvider,
22
+ P as IndustryItemsProvider,
23
+ f as useIndustryApiState,
24
+ A as useIndustryItems
24
25
  };
25
26
  //# sourceMappingURL=Context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Context.js","sources":["../../../../src/components/Company/Industry/Context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport type { ComboBoxOption } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\n\nconst [useIndustryItems, IndustryItemsProvider] = createCompoundContext('IndustryItems', {\n items: [] as ComboBoxOption[],\n})\n\nconst [useIndustryApiState, IndustryApiStateProvider] = createCompoundContext('IndustryApi', {\n isPending: false,\n})\n\nexport { IndustryApiStateProvider, IndustryItemsProvider, useIndustryItems, useIndustryApiState }\n"],"names":["useIndustryItems","IndustryItemsProvider","createCompoundContext","useIndustryApiState","IndustryApiStateProvider"],"mappings":";;;;;;;;;;;;;AAGA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC,EAAsB,iBAAiB;AAAA,EACvF,OAAO,CAAA;AACT,CAAC,GAEK,CAACC,GAAqBC,CAAwB,IAAIF,EAAsB,eAAe;AAAA,EAC3F,WAAW;AACb,CAAC;"}
1
+ {"version":3,"file":"Context.js","sources":["../../../../src/components/Company/Industry/Context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport type { ComboBoxOption } from '@/components/Common/UI/ComboBox/ComboBoxTypes'\n\nconst [useIndustryItems, IndustryItemsProvider] = createCompoundContext('IndustryItems', {\n items: [] as ComboBoxOption[],\n})\n\nconst [useIndustryApiState, IndustryApiStateProvider] = createCompoundContext('IndustryApi', {\n isPending: false,\n})\n\nexport { IndustryApiStateProvider, IndustryItemsProvider, useIndustryItems, useIndustryApiState }\n"],"names":["useIndustryItems","IndustryItemsProvider","createCompoundContext","useIndustryApiState","IndustryApiStateProvider"],"mappings":";;;;;;;;;;;;;;AAGA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC,EAAsB,iBAAiB;AAAA,EACvF,OAAO,CAAA;AACT,CAAC,GAEK,CAACC,GAAqBC,CAAwB,IAAIF,EAAsB,eAAe;AAAA,EAC3F,WAAW;AACb,CAAC;"}
@@ -10,12 +10,13 @@ import "../../../Base/useBase.js";
10
10
  import "../../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
14
- const [F, d] = o(
15
+ const [d, L] = o(
15
16
  "CompanyDocumentFormContext"
16
17
  );
17
18
  export {
18
- d as LocationsFormProvider,
19
- F as useLocationsForm
19
+ L as LocationsFormProvider,
20
+ d as useLocationsForm
20
21
  };
21
22
  //# sourceMappingURL=useLocationForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocationForm.js","sources":["../../../../../src/components/Company/Locations/LocationForm/useLocationForm.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\n\ntype LocationsFormContextType = {\n isPending: boolean\n handleCancel: () => void\n}\n\nconst [useLocationsForm, LocationsFormProvider] = createCompoundContext<LocationsFormContextType>(\n 'CompanyDocumentFormContext',\n)\n\nexport { useLocationsForm, LocationsFormProvider }\n"],"names":["useLocationsForm","LocationsFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAOM,MAAA,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
1
+ {"version":3,"file":"useLocationForm.js","sources":["../../../../../src/components/Company/Locations/LocationForm/useLocationForm.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\n\ntype LocationsFormContextType = {\n isPending: boolean\n handleCancel: () => void\n}\n\nconst [useLocationsForm, LocationsFormProvider] = createCompoundContext<LocationsFormContextType>(\n 'CompanyDocumentFormContext',\n)\n\nexport { useLocationsForm, LocationsFormProvider }\n"],"names":["useLocationsForm","LocationsFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAOM,MAAA,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -10,12 +10,13 @@ import "../../../Base/useBase.js";
10
10
  import "../../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
14
- const [x, d] = o(
15
+ const [d, f] = o(
15
16
  "CompanyDocumentListContext"
16
17
  );
17
18
  export {
18
- d as LocationsListProvider,
19
- x as useLocationsList
19
+ f as LocationsListProvider,
20
+ d as useLocationsList
20
21
  };
21
22
  //# sourceMappingURL=useLocationsList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocationsList.js","sources":["../../../../../src/components/Company/Locations/LocationsList/useLocationsList.ts"],"sourcesContent":["import { type Location } from '@gusto/embedded-api/models/components/location'\nimport { createCompoundContext } from '@/components/Base'\n\ntype LocationsListContextType = {\n locationList: Location[]\n totalPages: number\n currentPage: number\n handleItemsPerPageChange: (n: number) => void\n handleFirstPage: () => void\n handlePreviousPage: () => void\n handleNextPage: () => void\n handleLastPage: () => void\n handleEditLocation: (uuid: string) => void\n handleAddLocation: () => void\n handleContinue: () => void\n}\n\nconst [useLocationsList, LocationsListProvider] = createCompoundContext<LocationsListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useLocationsList, LocationsListProvider }\n"],"names":["useLocationsList","LocationsListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAiBM,MAAA,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
1
+ {"version":3,"file":"useLocationsList.js","sources":["../../../../../src/components/Company/Locations/LocationsList/useLocationsList.ts"],"sourcesContent":["import { type Location } from '@gusto/embedded-api/models/components/location'\nimport { createCompoundContext } from '@/components/Base'\n\ntype LocationsListContextType = {\n locationList: Location[]\n totalPages: number\n currentPage: number\n handleItemsPerPageChange: (n: number) => void\n handleFirstPage: () => void\n handlePreviousPage: () => void\n handleNextPage: () => void\n handleLastPage: () => void\n handleEditLocation: (uuid: string) => void\n handleAddLocation: () => void\n handleContinue: () => void\n}\n\nconst [useLocationsList, LocationsListProvider] = createCompoundContext<LocationsListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useLocationsList, LocationsListProvider }\n"],"names":["useLocationsList","LocationsListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAiBM,MAAA,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -10,10 +10,11 @@ import "../../Base/useBase.js";
10
10
  import "../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as o } from "../../Base/createCompoundContext.js";
14
- const [w, x] = o("OnboardingOverviewContext");
15
+ const [x, C] = o("OnboardingOverviewContext");
15
16
  export {
16
- x as OnboardingOverviewProvider,
17
- w as useOnboardingOverview
17
+ C as OnboardingOverviewProvider,
18
+ x as useOnboardingOverview
18
19
  };
19
20
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../src/components/Company/OnboardingOverview/context.ts"],"sourcesContent":["import type { OnboardingStep } from '@gusto/embedded-api/models/components/companyonboardingstatus'\nimport { createCompoundContext } from '@/components/Base'\n\ntype OnboardingOverviewContextType = {\n onboardingCompleted?: boolean\n onboardingSteps?: OnboardingStep[]\n handleDone: () => void\n handleContinue: () => void\n}\n\nconst [useOnboardingOverview, OnboardingOverviewProvider] =\n createCompoundContext<OnboardingOverviewContextType>('OnboardingOverviewContext')\n\nexport { useOnboardingOverview, OnboardingOverviewProvider }\n"],"names":["useOnboardingOverview","OnboardingOverviewProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAuBC,CAA0B,IACtDC,EAAqD,2BAA2B;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../src/components/Company/OnboardingOverview/context.ts"],"sourcesContent":["import type { OnboardingStep } from '@gusto/embedded-api/models/components/companyonboardingstatus'\nimport { createCompoundContext } from '@/components/Base'\n\ntype OnboardingOverviewContextType = {\n onboardingCompleted?: boolean\n onboardingSteps?: OnboardingStep[]\n handleDone: () => void\n handleContinue: () => void\n}\n\nconst [useOnboardingOverview, OnboardingOverviewProvider] =\n createCompoundContext<OnboardingOverviewContextType>('OnboardingOverviewContext')\n\nexport { useOnboardingOverview, OnboardingOverviewProvider }\n"],"names":["useOnboardingOverview","OnboardingOverviewProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAuBC,CAA0B,IACtDC,EAAqD,2BAA2B;"}
@@ -11,8 +11,9 @@ import "../../Base/useBase.js";
11
11
  import "../../../shared/constants.js";
12
12
  import "dompurify";
13
13
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as e } from "../../Base/createCompoundContext.js";
15
- const s = o.object({
16
+ const w = o.object({
16
17
  frequency: o.enum(["Every week", "Every other week", "Twice per month", "Monthly"]),
17
18
  anchorPayDate: o.date().optional(),
18
19
  anchorEndOfPayPeriod: o.date().optional(),
@@ -21,10 +22,10 @@ const s = o.object({
21
22
  customName: o.string().optional(),
22
23
  customTwicePerMonth: o.string().optional(),
23
24
  payPeriodPreviewRange: o.number().optional()
24
- }), [w, x] = e("PayScheduleContext");
25
+ }), [x, S] = e("PayScheduleContext");
25
26
  export {
26
- x as PayScheduleProvider,
27
- s as PayScheduleSchema,
28
- w as usePaySchedule
27
+ S as PayScheduleProvider,
28
+ w as PayScheduleSchema,
29
+ x as usePaySchedule
29
30
  };
30
31
  //# sourceMappingURL=usePaySchedule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePaySchedule.js","sources":["../../../../src/components/Company/PaySchedule/usePaySchedule.ts"],"sourcesContent":["import type { PayScheduleCreateUpdate } from '@gusto/embedded-api/models/components/payschedulecreateupdate'\nimport type { PayScheduleList } from '@gusto/embedded-api/models/components/payschedulelist'\nimport type { PayScheduleObject as PayScheduleType } from '@gusto/embedded-api/models/components/payscheduleobject'\nimport type { PayPeriods } from '@gusto/embedded-api/models/operations/getv1companiescompanyidpayschedulespreview'\nimport { z } from 'zod'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\nimport { createCompoundContext } from '@/components/Base'\n\nexport type MODE =\n | 'LIST_PAY_SCHEDULES'\n | 'ADD_PAY_SCHEDULE'\n | 'EDIT_PAY_SCHEDULE'\n | 'PREVIEW_PAY_SCHEDULE'\n\ntype PayScheduleContextType = {\n companyId: string\n handleAdd: () => void\n handleEdit: (schedule: PayScheduleType) => void\n handleCancel: () => void\n handleContinue: () => void\n mode: MODE\n paySchedules: PayScheduleList[] | undefined | null\n currentPaySchedule: PayScheduleType | undefined | null\n payPeriodPreview?: PayPeriods[]\n payPreviewLoading?: boolean\n}\n\nexport const PayScheduleSchema = z.object({\n frequency: z.enum(['Every week', 'Every other week', 'Twice per month', 'Monthly']),\n anchorPayDate: z.date().optional(),\n anchorEndOfPayPeriod: z.date().optional(),\n day1: z.number().min(1).max(31).optional(),\n day2: z.number().min(1).max(31).optional(),\n customName: z.string().optional(),\n customTwicePerMonth: z.string().optional(),\n payPeriodPreviewRange: z.number().optional(),\n})\n\nexport type PayScheduleInputs = z.input<typeof PayScheduleSchema>\nexport type PayScheduleOutputs = z.output<typeof PayScheduleSchema>\n\nexport type PayScheduleDefaultValues = RequireAtLeastOne<\n Partial<\n Pick<\n PayScheduleCreateUpdate,\n 'anchorPayDate' | 'anchorEndOfPayPeriod' | 'day1' | 'day2' | 'customName' | 'frequency'\n >\n >\n>\n\nconst [usePaySchedule, PayScheduleProvider] =\n createCompoundContext<PayScheduleContextType>('PayScheduleContext')\nexport { usePaySchedule, PayScheduleProvider }\n"],"names":["PayScheduleSchema","z","usePaySchedule","PayScheduleProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AA2Ba,MAAAA,IAAoBC,EAAE,OAAO;AAAA,EACxC,WAAWA,EAAE,KAAK,CAAC,cAAc,oBAAoB,mBAAmB,SAAS,CAAC;AAAA,EAClF,eAAeA,EAAE,KAAK,EAAE,SAAS;AAAA,EACjC,sBAAsBA,EAAE,KAAK,EAAE,SAAS;AAAA,EACxC,MAAMA,EAAE,OAAA,EAAS,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EACzC,MAAMA,EAAE,OAAA,EAAS,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EACzC,YAAYA,EAAE,OAAO,EAAE,SAAS;AAAA,EAChC,qBAAqBA,EAAE,OAAO,EAAE,SAAS;AAAA,EACzC,uBAAuBA,EAAE,OAAO,EAAE,SAAS;AAC7C,CAAC,GAcK,CAACC,GAAgBC,CAAmB,IACxCC,EAA8C,oBAAoB;"}
1
+ {"version":3,"file":"usePaySchedule.js","sources":["../../../../src/components/Company/PaySchedule/usePaySchedule.ts"],"sourcesContent":["import type { PayScheduleCreateUpdate } from '@gusto/embedded-api/models/components/payschedulecreateupdate'\nimport type { PayScheduleList } from '@gusto/embedded-api/models/components/payschedulelist'\nimport type { PayScheduleObject as PayScheduleType } from '@gusto/embedded-api/models/components/payscheduleobject'\nimport type { PayPeriods } from '@gusto/embedded-api/models/operations/getv1companiescompanyidpayschedulespreview'\nimport { z } from 'zod'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\nimport { createCompoundContext } from '@/components/Base'\n\nexport type MODE =\n | 'LIST_PAY_SCHEDULES'\n | 'ADD_PAY_SCHEDULE'\n | 'EDIT_PAY_SCHEDULE'\n | 'PREVIEW_PAY_SCHEDULE'\n\ntype PayScheduleContextType = {\n companyId: string\n handleAdd: () => void\n handleEdit: (schedule: PayScheduleType) => void\n handleCancel: () => void\n handleContinue: () => void\n mode: MODE\n paySchedules: PayScheduleList[] | undefined | null\n currentPaySchedule: PayScheduleType | undefined | null\n payPeriodPreview?: PayPeriods[]\n payPreviewLoading?: boolean\n}\n\nexport const PayScheduleSchema = z.object({\n frequency: z.enum(['Every week', 'Every other week', 'Twice per month', 'Monthly']),\n anchorPayDate: z.date().optional(),\n anchorEndOfPayPeriod: z.date().optional(),\n day1: z.number().min(1).max(31).optional(),\n day2: z.number().min(1).max(31).optional(),\n customName: z.string().optional(),\n customTwicePerMonth: z.string().optional(),\n payPeriodPreviewRange: z.number().optional(),\n})\n\nexport type PayScheduleInputs = z.input<typeof PayScheduleSchema>\nexport type PayScheduleOutputs = z.output<typeof PayScheduleSchema>\n\nexport type PayScheduleDefaultValues = RequireAtLeastOne<\n Partial<\n Pick<\n PayScheduleCreateUpdate,\n 'anchorPayDate' | 'anchorEndOfPayPeriod' | 'day1' | 'day2' | 'customName' | 'frequency'\n >\n >\n>\n\nconst [usePaySchedule, PayScheduleProvider] =\n createCompoundContext<PayScheduleContextType>('PayScheduleContext')\nexport { usePaySchedule, PayScheduleProvider }\n"],"names":["PayScheduleSchema","z","usePaySchedule","PayScheduleProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AA2Ba,MAAAA,IAAoBC,EAAE,OAAO;AAAA,EACxC,WAAWA,EAAE,KAAK,CAAC,cAAc,oBAAoB,mBAAmB,SAAS,CAAC;AAAA,EAClF,eAAeA,EAAE,KAAK,EAAE,SAAS;AAAA,EACjC,sBAAsBA,EAAE,KAAK,EAAE,SAAS;AAAA,EACxC,MAAMA,EAAE,OAAA,EAAS,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EACzC,MAAMA,EAAE,OAAA,EAAS,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EACzC,YAAYA,EAAE,OAAO,EAAE,SAAS;AAAA,EAChC,qBAAqBA,EAAE,OAAO,EAAE,SAAS;AAAA,EACzC,uBAAuBA,EAAE,OAAO,EAAE,SAAS;AAC7C,CAAC,GAcK,CAACC,GAAgBC,CAAmB,IACxCC,EAA8C,oBAAoB;"}
@@ -1,48 +1,27 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { useReducer as T } from "react";
3
- import { stateTaxesReducer as S, initialState as p } from "./stateTaxesReducer.js";
4
- import { StateTaxesListContextual as f, StateTaxesFormContextual as u } from "./StateTaxesComponents.js";
5
- import { StateTaxesList as A } from "./StateTaxesList/StateTaxesList.js";
6
- import { StateTaxesForm as E } from "./StateTaxesForm/StateTaxesForm.js";
7
- import { useComponentDictionary as C } from "../../../i18n/I18n.js";
8
- import { componentEvents as e } from "../../../shared/constants.js";
9
- function c({ companyId: n, onEvent: s, dictionary: x }) {
10
- C("Company.StateTaxes", x);
11
- const [r, a] = T(S, p), i = {
12
- companyId: n,
13
- stateData: r,
14
- onEvent: (t, o) => {
15
- switch (t) {
16
- case e.COMPANY_STATE_TAX_EDIT:
17
- a({ type: t, payload: o });
18
- break;
19
- case e.COMPANY_STATE_TAX_UPDATED:
20
- a({ type: t });
21
- break;
22
- case e.COMPANY_STATE_TAX_DONE:
23
- a({ type: t });
24
- break;
25
- case e.CANCEL:
26
- a({ type: t });
27
- break;
28
- default:
29
- s(t, o);
30
- break;
31
- }
32
- s(t, o);
33
- }
34
- };
35
- switch (r.state) {
36
- case "editStateTaxes":
37
- return /* @__PURE__ */ m(u, { ...i });
38
- case "viewStateTaxes":
39
- default:
40
- return /* @__PURE__ */ m(f, { ...i });
41
- }
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { createMachine as s } from "robot3";
3
+ import { stateTaxesStateMachine as n } from "./stateTaxesStateMachine.js";
4
+ import { StateTaxesListContextual as x } from "./StateTaxesComponents.js";
5
+ import { StateTaxesList as p } from "./StateTaxesList/StateTaxesList.js";
6
+ import { StateTaxesForm as S } from "./StateTaxesForm/StateTaxesForm.js";
7
+ import { Flow as T } from "../../Flow/Flow.js";
8
+ import { useComponentDictionary as f } from "../../../i18n/I18n.js";
9
+ function t({ companyId: e, onEvent: a, dictionary: o }) {
10
+ f("Company.StateTaxes", o);
11
+ const m = s(
12
+ "viewStateTaxes",
13
+ n,
14
+ (r) => ({
15
+ ...r,
16
+ component: x,
17
+ companyId: e
18
+ })
19
+ );
20
+ return /* @__PURE__ */ i(T, { machine: m, onEvent: a });
42
21
  }
43
- c.StateTaxesList = A;
44
- c.StateTaxesForm = E;
22
+ t.StateTaxesList = p;
23
+ t.StateTaxesForm = S;
45
24
  export {
46
- c as StateTaxes
25
+ t as StateTaxes
47
26
  };
48
27
  //# sourceMappingURL=StateTaxes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StateTaxes.js","sources":["../../../../src/components/Company/StateTaxes/StateTaxes.tsx"],"sourcesContent":["import { useReducer } from 'react'\nimport { stateTaxesReducer, initialState } from './stateTaxesReducer'\nimport type { StateTaxesContextInterface } from './StateTaxesComponents'\nimport { StateTaxesListContextual, StateTaxesFormContextual } from './StateTaxesComponents'\nimport { StateTaxesList } from './StateTaxesList/StateTaxesList'\nimport { StateTaxesForm } from './StateTaxesForm/StateTaxesForm'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { useComponentDictionary } from '@/i18n/I18n'\nimport { componentEvents } from '@/shared/constants'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport type { EventType } from '@/shared/constants'\n\nexport interface StateTaxesProps extends BaseComponentInterface<'Company.StateTaxes'> {\n companyId: string\n}\n\nexport function StateTaxes({ companyId, onEvent, dictionary }: StateTaxesProps) {\n useComponentDictionary('Company.StateTaxes', dictionary)\n\n const [stateData, dispatch] = useReducer(stateTaxesReducer, initialState)\n\n const handleEvent: OnEventType<EventType, unknown> = (eventType, data) => {\n // Handle the event and dispatch to reducer\n switch (eventType) {\n case componentEvents.COMPANY_STATE_TAX_EDIT:\n dispatch({ type: eventType, payload: data as { state: string } })\n break\n case componentEvents.COMPANY_STATE_TAX_UPDATED:\n dispatch({ type: eventType })\n break\n case componentEvents.COMPANY_STATE_TAX_DONE:\n dispatch({ type: eventType })\n break\n case componentEvents.CANCEL:\n dispatch({ type: eventType })\n break\n default:\n // Pass through other events to parent\n onEvent(eventType, data)\n break\n }\n\n onEvent(eventType, data)\n }\n\n const contextProps: StateTaxesContextInterface = {\n companyId,\n stateData,\n onEvent: handleEvent,\n }\n\n // Render the appropriate component based on state\n switch (stateData.state) {\n case 'editStateTaxes':\n return <StateTaxesFormContextual {...contextProps} />\n case 'viewStateTaxes':\n default:\n return <StateTaxesListContextual {...contextProps} />\n }\n}\n\nStateTaxes.StateTaxesList = StateTaxesList\nStateTaxes.StateTaxesForm = StateTaxesForm\n"],"names":["StateTaxes","companyId","onEvent","dictionary","useComponentDictionary","stateData","dispatch","useReducer","stateTaxesReducer","initialState","contextProps","eventType","data","componentEvents","jsx","StateTaxesFormContextual","StateTaxesListContextual","StateTaxesList","StateTaxesForm"],"mappings":";;;;;;;;AAgBO,SAASA,EAAW,EAAE,WAAAC,GAAW,SAAAC,GAAS,YAAAC,KAA+B;AAC9E,EAAAC,EAAuB,sBAAsBD,CAAU;AAEvD,QAAM,CAACE,GAAWC,CAAQ,IAAIC,EAAWC,GAAmBC,CAAY,GA0BlEC,IAA2C;AAAA,IAC/C,WAAAT;AAAA,IACA,WAAAI;AAAA,IACA,SA3BmD,CAACM,GAAWC,MAAS;AAExE,cAAQD,GAAW;AAAA,QACjB,KAAKE,EAAgB;AACnB,UAAAP,EAAS,EAAE,MAAMK,GAAW,SAASC,GAA2B;AAChE;AAAA,QACF,KAAKC,EAAgB;AACV,UAAAP,EAAA,EAAE,MAAMK,GAAW;AAC5B;AAAA,QACF,KAAKE,EAAgB;AACV,UAAAP,EAAA,EAAE,MAAMK,GAAW;AAC5B;AAAA,QACF,KAAKE,EAAgB;AACV,UAAAP,EAAA,EAAE,MAAMK,GAAW;AAC5B;AAAA,QACF;AAEE,UAAAT,EAAQS,GAAWC,CAAI;AACvB;AAAA,MAAA;AAGJ,MAAAV,EAAQS,GAAWC,CAAI;AAAA,IACzB;AAAA,EAMA;AAGA,UAAQP,EAAU,OAAO;AAAA,IACvB,KAAK;AACI,aAAA,gBAAAS,EAACC,GAA0B,EAAA,GAAGL,EAAc,CAAA;AAAA,IACrD,KAAK;AAAA,IACL;AACS,aAAA,gBAAAI,EAACE,GAA0B,EAAA,GAAGN,EAAc,CAAA;AAAA,EAAA;AAEzD;AAEAV,EAAW,iBAAiBiB;AAC5BjB,EAAW,iBAAiBkB;"}
1
+ {"version":3,"file":"StateTaxes.js","sources":["../../../../src/components/Company/StateTaxes/StateTaxes.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { stateTaxesStateMachine } from './stateTaxesStateMachine'\nimport type { StateTaxesContextInterface } from './StateTaxesComponents'\nimport { StateTaxesListContextual } from './StateTaxesComponents'\nimport { StateTaxesList } from './StateTaxesList/StateTaxesList'\nimport { StateTaxesForm } from './StateTaxesForm/StateTaxesForm'\nimport { Flow } from '@/components/Flow/Flow'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { useComponentDictionary } from '@/i18n/I18n'\n\nexport interface StateTaxesProps extends BaseComponentInterface<'Company.StateTaxes'> {\n companyId: string\n}\n\nexport function StateTaxes({ companyId, onEvent, dictionary }: StateTaxesProps) {\n useComponentDictionary('Company.StateTaxes', dictionary)\n const manageStateTaxes = createMachine(\n 'viewStateTaxes',\n stateTaxesStateMachine,\n (initialContext: StateTaxesContextInterface) => ({\n ...initialContext,\n component: StateTaxesListContextual,\n companyId,\n }),\n )\n return <Flow machine={manageStateTaxes} onEvent={onEvent} />\n}\n\nStateTaxes.StateTaxesList = StateTaxesList\nStateTaxes.StateTaxesForm = StateTaxesForm\n"],"names":["StateTaxes","companyId","onEvent","dictionary","useComponentDictionary","manageStateTaxes","createMachine","stateTaxesStateMachine","initialContext","StateTaxesListContextual","jsx","Flow","StateTaxesList","StateTaxesForm"],"mappings":";;;;;;;;AAcO,SAASA,EAAW,EAAE,WAAAC,GAAW,SAAAC,GAAS,YAAAC,KAA+B;AAC9E,EAAAC,EAAuB,sBAAsBD,CAAU;AACvD,QAAME,IAAmBC;AAAA,IACvB;AAAA,IACAC;AAAA,IACA,CAACC,OAAgD;AAAA,MAC/C,GAAGA;AAAA,MACH,WAAWC;AAAA,MACX,WAAAR;AAAA,IACF;AAAA,EACF;AACA,SAAQ,gBAAAS,EAAAC,GAAA,EAAK,SAASN,GAAkB,SAAAH,EAAkB,CAAA;AAC5D;AAEAF,EAAW,iBAAiBY;AAC5BZ,EAAW,iBAAiBa;"}
@@ -1,10 +1,8 @@
1
- import { StateTaxesStateData } from './stateTaxesReducer';
2
- import { OnEventType } from '../../Base/useBase';
3
- import { EventType } from '../../../shared/constants';
4
- export interface StateTaxesContextInterface {
1
+ import { FlowContextInterface } from '../../Flow/useFlow';
2
+ export interface StateTaxesContextInterface extends FlowContextInterface {
5
3
  companyId: string;
6
- stateData: StateTaxesStateData;
7
- onEvent: OnEventType<EventType, unknown>;
4
+ state?: string;
5
+ component: React.ComponentType | null;
8
6
  }
9
- export declare function StateTaxesListContextual({ companyId, onEvent }: StateTaxesContextInterface): import("react/jsx-runtime").JSX.Element;
10
- export declare function StateTaxesFormContextual({ companyId, stateData, onEvent, }: StateTaxesContextInterface): import("react/jsx-runtime").JSX.Element;
7
+ export declare function StateTaxesListContextual(): import("react/jsx-runtime").JSX.Element;
8
+ export declare function StateTaxesFormContextual(): import("react/jsx-runtime").JSX.Element;
@@ -1,26 +1,25 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
2
  import { StateTaxesList as m } from "./StateTaxesList/StateTaxesList.js";
3
- import { StateTaxesForm as n } from "./StateTaxesForm/StateTaxesForm.js";
4
- import { ensureRequired as o } from "../../../helpers/ensureRequired.js";
5
- function p({ companyId: t, onEvent: e }) {
6
- return /* @__PURE__ */ r(m, { onEvent: e, companyId: o(t) });
3
+ import { StateTaxesForm as s } from "./StateTaxesForm/StateTaxesForm.js";
4
+ import { useFlow as r } from "../../Flow/useFlow.js";
5
+ import { ensureRequired as e } from "../../../helpers/ensureRequired.js";
6
+ function f() {
7
+ const { companyId: t, onEvent: o } = r();
8
+ return /* @__PURE__ */ n(m, { onEvent: o, companyId: e(t) });
7
9
  }
8
- function f({
9
- companyId: t,
10
- stateData: e,
11
- onEvent: a
12
- }) {
13
- return /* @__PURE__ */ r(
14
- n,
10
+ function d() {
11
+ const { companyId: t, state: o, onEvent: a } = r();
12
+ return /* @__PURE__ */ n(
13
+ s,
15
14
  {
16
- companyId: o(t),
17
- state: o(e.selectedState),
15
+ companyId: e(t),
16
+ state: e(o),
18
17
  onEvent: a
19
18
  }
20
19
  );
21
20
  }
22
21
  export {
23
- f as StateTaxesFormContextual,
24
- p as StateTaxesListContextual
22
+ d as StateTaxesFormContextual,
23
+ f as StateTaxesListContextual
25
24
  };
26
25
  //# sourceMappingURL=StateTaxesComponents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StateTaxesComponents.js","sources":["../../../../src/components/Company/StateTaxes/StateTaxesComponents.tsx"],"sourcesContent":["import { StateTaxesList } from './StateTaxesList/StateTaxesList'\nimport { StateTaxesForm } from './StateTaxesForm/StateTaxesForm'\nimport type { StateTaxesStateData } from './stateTaxesReducer'\nimport { ensureRequired } from '@/helpers/ensureRequired'\nimport type { OnEventType } from '@/components/Base/useBase'\nimport type { EventType } from '@/shared/constants'\n\nexport interface StateTaxesContextInterface {\n companyId: string\n stateData: StateTaxesStateData\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport function StateTaxesListContextual({ companyId, onEvent }: StateTaxesContextInterface) {\n return <StateTaxesList onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n\nexport function StateTaxesFormContextual({\n companyId,\n stateData,\n onEvent,\n}: StateTaxesContextInterface) {\n return (\n <StateTaxesForm\n companyId={ensureRequired(companyId)}\n state={ensureRequired(stateData.selectedState)}\n onEvent={onEvent}\n />\n )\n}\n"],"names":["StateTaxesListContextual","companyId","onEvent","StateTaxesList","ensureRequired","StateTaxesFormContextual","stateData","jsx","StateTaxesForm"],"mappings":";;;;AAaO,SAASA,EAAyB,EAAE,WAAAC,GAAW,SAAAC,KAAuC;AAC3F,2BAAQC,GAAe,EAAA,SAAAD,GAAkB,WAAWE,EAAeH,CAAS,GAAG;AACjF;AAEO,SAASI,EAAyB;AAAA,EACvC,WAAAJ;AAAA,EACA,WAAAK;AAAA,EACA,SAAAJ;AACF,GAA+B;AAE3B,SAAA,gBAAAK;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWJ,EAAeH,CAAS;AAAA,MACnC,OAAOG,EAAeE,EAAU,aAAa;AAAA,MAC7C,SAAAJ;AAAA,IAAA;AAAA,EACF;AAEJ;"}
1
+ {"version":3,"file":"StateTaxesComponents.js","sources":["../../../../src/components/Company/StateTaxes/StateTaxesComponents.tsx"],"sourcesContent":["import { StateTaxesList } from './StateTaxesList/StateTaxesList'\nimport { StateTaxesForm } from './StateTaxesForm/StateTaxesForm'\nimport { useFlow, type FlowContextInterface } from '@/components/Flow/useFlow'\nimport { ensureRequired } from '@/helpers/ensureRequired'\n\nexport interface StateTaxesContextInterface extends FlowContextInterface {\n companyId: string\n state?: string\n component: React.ComponentType | null\n}\n\nexport function StateTaxesListContextual() {\n const { companyId, onEvent } = useFlow<StateTaxesContextInterface>()\n return <StateTaxesList onEvent={onEvent} companyId={ensureRequired(companyId)} />\n}\n\nexport function StateTaxesFormContextual() {\n const { companyId, state, onEvent } = useFlow<StateTaxesContextInterface>()\n return (\n <StateTaxesForm\n companyId={ensureRequired(companyId)}\n state={ensureRequired(state)}\n onEvent={onEvent}\n />\n )\n}\n"],"names":["StateTaxesListContextual","companyId","onEvent","useFlow","StateTaxesList","ensureRequired","StateTaxesFormContextual","state","jsx","StateTaxesForm"],"mappings":";;;;;AAWO,SAASA,IAA2B;AACzC,QAAM,EAAE,WAAAC,GAAW,SAAAC,EAAQ,IAAIC,EAAoC;AACnE,2BAAQC,GAAe,EAAA,SAAAF,GAAkB,WAAWG,EAAeJ,CAAS,GAAG;AACjF;AAEO,SAASK,IAA2B;AACzC,QAAM,EAAE,WAAAL,GAAW,OAAAM,GAAO,SAAAL,EAAA,IAAYC,EAAoC;AAExE,SAAA,gBAAAK;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWJ,EAAeJ,CAAS;AAAA,MACnC,OAAOI,EAAeE,CAAK;AAAA,MAC3B,SAAAL;AAAA,IAAA;AAAA,EACF;AAEJ;"}
@@ -10,10 +10,11 @@ import "../../../Base/useBase.js";
10
10
  import "../../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
14
- const [T, c] = t("StateTaxesFormContext");
15
+ const [c, d] = t("StateTaxesFormContext");
15
16
  export {
16
- c as StateTaxesFormProvider,
17
- T as useStateTaxesForm
17
+ d as StateTaxesFormProvider,
18
+ c as useStateTaxesForm
18
19
  };
19
20
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/StateTaxes/StateTaxesForm/context.ts"],"sourcesContent":["import type { TaxRequirementsState } from '@gusto/embedded-api/models/components/taxrequirementsstate'\nimport { createCompoundContext } from '@/components/Base'\n\ninterface StateTaxFormContext {\n isPending: boolean\n state: string\n stateTaxRequirements: TaxRequirementsState\n handleCancel: () => void\n}\n\nconst [useStateTaxesForm, StateTaxesFormProvider] =\n createCompoundContext<StateTaxFormContext>('StateTaxesFormContext')\n\nexport { useStateTaxesForm, StateTaxesFormProvider }\n"],"names":["useStateTaxesForm","StateTaxesFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAmBC,CAAsB,IAC9CC,EAA2C,uBAAuB;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/StateTaxes/StateTaxesForm/context.ts"],"sourcesContent":["import type { TaxRequirementsState } from '@gusto/embedded-api/models/components/taxrequirementsstate'\nimport { createCompoundContext } from '@/components/Base'\n\ninterface StateTaxFormContext {\n isPending: boolean\n state: string\n stateTaxRequirements: TaxRequirementsState\n handleCancel: () => void\n}\n\nconst [useStateTaxesForm, StateTaxesFormProvider] =\n createCompoundContext<StateTaxFormContext>('StateTaxesFormContext')\n\nexport { useStateTaxesForm, StateTaxesFormProvider }\n"],"names":["useStateTaxesForm","StateTaxesFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAmBC,CAAsB,IAC9CC,EAA2C,uBAAuB;"}
@@ -10,10 +10,11 @@ import "../../../Base/useBase.js";
10
10
  import "../../../../shared/constants.js";
11
11
  import "dompurify";
12
12
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
14
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
14
- const [T, c] = t("StateTaxesListContext");
15
+ const [c, d] = t("StateTaxesListContext");
15
16
  export {
16
- c as StateTaxesListProvider,
17
- T as useStateTaxesList
17
+ d as StateTaxesListProvider,
18
+ c as useStateTaxesList
18
19
  };
19
20
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/StateTaxes/StateTaxesList/context.ts"],"sourcesContent":["import type { ResponseBody } from '@gusto/embedded-api/models/operations/getv1companiescompanyuuidtaxrequirements'\nimport { createCompoundContext } from '@/components/Base'\n\ntype StateTaxesListContextType = {\n isPending: boolean\n stateTaxRequirements: ResponseBody[]\n handleContinue: () => void\n handleChange: (state: string) => void\n}\n\nconst [useStateTaxesList, StateTaxesListProvider] =\n createCompoundContext<StateTaxesListContextType>('StateTaxesListContext')\n\nexport { useStateTaxesList, StateTaxesListProvider }\n"],"names":["useStateTaxesList","StateTaxesListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAmBC,CAAsB,IAC9CC,EAAiD,uBAAuB;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/StateTaxes/StateTaxesList/context.ts"],"sourcesContent":["import type { ResponseBody } from '@gusto/embedded-api/models/operations/getv1companiescompanyuuidtaxrequirements'\nimport { createCompoundContext } from '@/components/Base'\n\ntype StateTaxesListContextType = {\n isPending: boolean\n stateTaxRequirements: ResponseBody[]\n handleContinue: () => void\n handleChange: (state: string) => void\n}\n\nconst [useStateTaxesList, StateTaxesListProvider] =\n createCompoundContext<StateTaxesListContextType>('StateTaxesListContext')\n\nexport { useStateTaxesList, StateTaxesListProvider }\n"],"names":["useStateTaxesList","StateTaxesListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAmBC,CAAsB,IAC9CC,EAAiD,uBAAuB;"}
@@ -0,0 +1,5 @@
1
+ export declare const stateTaxesStateMachine: {
2
+ viewStateTaxes: import('robot3').MachineState<"company/stateTaxes/done" | "company/stateTaxes/edit">;
3
+ editStateTaxes: import('robot3').MachineState<"company/stateTaxes/updated" | "CANCEL">;
4
+ done: import('robot3').MachineState<string>;
5
+ };