@gusto/embedded-react-sdk 0.11.2 → 0.11.3-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +1 -1
  3. package/dist/components/Common/DocumentList/DocumentList.module.scss.js +1 -1
  4. package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +1 -1
  5. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +1 -1
  6. package/dist/components/Common/FieldErrorMessage/FieldErrorMessage.module.scss.js +1 -1
  7. package/dist/components/Common/FieldLayout/FieldLayout.module.scss.js +6 -6
  8. package/dist/components/Common/Flex/Flex.d.ts +2 -2
  9. package/dist/components/Common/Flex/Flex.js +5 -5
  10. package/dist/components/Common/Flex/Flex.js.map +1 -1
  11. package/dist/components/Common/Form/Form.module.scss.js +2 -2
  12. package/dist/components/Common/Grid/Grid.d.ts +2 -2
  13. package/dist/components/Common/Grid/Grid.js +13 -13
  14. package/dist/components/Common/Grid/Grid.js.map +1 -1
  15. package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayout.module.scss.js +12 -12
  16. package/dist/components/Common/InternalError/InternalError.module.scss.js +1 -1
  17. package/dist/components/Common/Loading/Loading.module.scss.js +1 -1
  18. package/dist/components/Common/PaginationControl/PaginationControl.module.scss.js +1 -1
  19. package/dist/components/Common/ReorderableList/ReorderableList.module.scss.js +15 -15
  20. package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js +1 -1
  21. package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js +6 -6
  22. package/dist/components/Common/UI/Alert/Alert.module.scss.js +1 -1
  23. package/dist/components/Common/UI/Badge/Badge.module.scss.js +1 -1
  24. package/dist/components/Common/UI/Button/Button.module.scss.js +1 -1
  25. package/dist/components/Common/UI/Button/ButtonIcon.module.scss.js +1 -1
  26. package/dist/components/Common/UI/CalendarPreview/CalendarPreview.module.scss.js +5 -5
  27. package/dist/components/Common/UI/Card/Card.module.scss.js +1 -1
  28. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +8 -8
  29. package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.module.scss.js +1 -1
  30. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +1 -1
  31. package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +5 -5
  32. package/dist/components/Common/UI/Input/Input.module.scss.js +7 -7
  33. package/dist/components/Common/UI/Link/Link.module.scss.js +1 -1
  34. package/dist/components/Common/UI/List/List.module.scss.js +1 -1
  35. package/dist/components/Common/UI/Menu/Menu.module.scss.js +5 -5
  36. package/dist/components/Common/UI/NumberInput/NumberInput.js +36 -38
  37. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  38. package/dist/components/Common/UI/ProgressBar/ProgressBar.module.scss.js +1 -1
  39. package/dist/components/Common/UI/Radio/Radio.module.scss.js +1 -1
  40. package/dist/components/Common/UI/RadioGroup/RadioGroup.module.scss.js +1 -1
  41. package/dist/components/Common/UI/Select/Select.module.scss.js +1 -1
  42. package/dist/components/Common/UI/Switch/Switch.module.scss.js +4 -4
  43. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  44. package/dist/components/Common/UI/Text/Text.module.scss.js +14 -14
  45. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  46. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  47. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  48. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  49. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  50. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  51. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  52. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  53. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  54. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  55. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  56. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  57. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -5
  58. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  59. package/dist/components/Company/Industry/Context.js +7 -6
  60. package/dist/components/Company/Industry/Context.js.map +1 -1
  61. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  62. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  63. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  64. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  65. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  66. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  67. package/dist/components/Company/PaySchedule/_parts/Edit.module.scss.js +1 -1
  68. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
  69. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  70. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +8 -8
  71. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
  72. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  73. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  74. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  75. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  76. package/dist/components/Contractor/Address/useAddress.js +6 -5
  77. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  78. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
  79. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  80. package/dist/components/Contractor/Submit/index.module.scss.js +2 -2
  81. package/dist/components/Employee/Deductions/Deductions.d.ts +8 -14
  82. package/dist/components/Employee/Deductions/Deductions.js +47 -140
  83. package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
  84. package/dist/components/Employee/Deductions/DeductionsComponents.d.ts +23 -0
  85. package/dist/components/Employee/Deductions/DeductionsComponents.js +31 -0
  86. package/dist/components/Employee/Deductions/DeductionsComponents.js.map +1 -0
  87. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.d.ts +41 -0
  88. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +135 -0
  89. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -0
  90. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.d.ts +6 -0
  91. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +99 -0
  92. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -0
  93. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.d.ts +15 -0
  94. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +49 -0
  95. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js.map +1 -0
  96. package/dist/components/Employee/Deductions/stateMachine.d.ts +7 -0
  97. package/dist/components/Employee/Deductions/stateMachine.js +107 -0
  98. package/dist/components/Employee/Deductions/stateMachine.js.map +1 -0
  99. package/dist/components/Employee/Deductions/useDeductions.d.ts +2 -2
  100. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  101. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  102. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  103. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  104. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
  105. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  106. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.module.scss.js +6 -6
  107. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  108. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  109. package/dist/components/Employee/Profile/useProfile.js +4 -3
  110. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  111. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  112. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  113. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +3 -3
  114. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  115. package/dist/contexts/ThemeProvider/ThemeProvider.d.ts +1 -5
  116. package/dist/contexts/ThemeProvider/ThemeProvider.js +18 -60
  117. package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
  118. package/dist/contexts/ThemeProvider/theme.d.ts +42 -11
  119. package/dist/contexts/ThemeProvider/theme.js +31 -15
  120. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  121. package/dist/helpers/responsive.d.ts +0 -3
  122. package/dist/helpers/responsive.js +20 -34
  123. package/dist/helpers/responsive.js.map +1 -1
  124. package/dist/i18n/en/Employee.Deductions.json.js +49 -51
  125. package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
  126. package/dist/shared/constants.d.ts +8 -0
  127. package/dist/shared/constants.js +9 -5
  128. package/dist/shared/constants.js.map +1 -1
  129. package/dist/style.css +1 -1
  130. package/dist/types/i18next.d.ts +0 -1
  131. package/package.json +1 -1
  132. package/dist/components/Common/UI/NumberInput/NumberInput.module.scss.js +0 -8
  133. package/dist/components/Common/UI/NumberInput/NumberInput.module.scss.js.map +0 -1
  134. package/dist/components/Employee/Deductions/Actions.js +0 -27
  135. package/dist/components/Employee/Deductions/Actions.js.map +0 -1
  136. package/dist/components/Employee/Deductions/DeductionForm.d.ts +0 -1
  137. package/dist/components/Employee/Deductions/DeductionForm.js +0 -78
  138. package/dist/components/Employee/Deductions/DeductionForm.js.map +0 -1
  139. package/dist/components/Employee/Deductions/DeductionsList.d.ts +0 -2
  140. package/dist/components/Employee/Deductions/DeductionsList.js +0 -60
  141. package/dist/components/Employee/Deductions/DeductionsList.js.map +0 -1
  142. package/dist/components/Employee/Deductions/Head.js +0 -13
  143. package/dist/components/Employee/Deductions/Head.js.map +0 -1
  144. package/dist/components/Employee/Deductions/IncludeDeductionsForm.d.ts +0 -1
  145. package/dist/components/Employee/Deductions/IncludeDeductionsForm.js +0 -27
  146. package/dist/components/Employee/Deductions/IncludeDeductionsForm.js.map +0 -1
  147. package/dist/components/Employee/Deductions/useDeductions.js +0 -33
  148. package/dist/components/Employee/Deductions/useDeductions.js.map +0 -1
  149. package/dist/contexts/ThemeProvider/createTheme.d.ts +0 -21
  150. package/dist/contexts/ThemeProvider/createTheme.js +0 -269
  151. package/dist/contexts/ThemeProvider/createTheme.js.map +0 -1
  152. package/dist/types/GTheme.d.ts +0 -254
  153. /package/dist/contexts/ThemeProvider/{createTheme.test.d.ts → theme.test.d.ts} +0 -0
@@ -1,91 +1,89 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { useMemo as O } from "react";
3
3
  import { NumberField as P, Group as T } from "react-aria-components";
4
- import k from "classnames";
5
- import { useFieldIds as z } from "../hooks/useFieldIds.js";
6
- import A from "./NumberInput.module.scss.js";
7
- import { FieldLayout as C } from "../../FieldLayout/FieldLayout.js";
8
- import { useLocale as H } from "../../../../contexts/LocaleProvider/useLocale.js";
9
- import { Input as J } from "../Input/Input.js";
10
- function q({
4
+ import { useFieldIds as k } from "../hooks/useFieldIds.js";
5
+ import { FieldLayout as z } from "../../FieldLayout/FieldLayout.js";
6
+ import { useLocale as A } from "../../../../contexts/LocaleProvider/useLocale.js";
7
+ import { Input as C } from "../Input/Input.js";
8
+ function Y({
11
9
  name: y,
12
10
  format: r,
13
- inputRef: d,
11
+ inputRef: s,
14
12
  id: p,
15
- value: f,
13
+ value: b,
16
14
  description: i,
17
15
  errorMessage: c,
18
- isRequired: m,
19
- placeholder: b,
16
+ isRequired: u,
17
+ placeholder: f,
20
18
  isInvalid: I,
21
- isDisabled: l,
19
+ isDisabled: m,
22
20
  onChange: F,
23
- onBlur: N,
24
- label: h,
21
+ onBlur: h,
22
+ label: N,
25
23
  min: t,
26
- max: o,
24
+ max: n,
27
25
  shouldVisuallyHideLabel: g,
28
26
  adornmentStart: v,
29
27
  adornmentEnd: D,
30
28
  className: w,
31
29
  maximumFractionDigits: x,
32
30
  minimumFractionDigits: B,
33
- ...u
31
+ ...l
34
32
  }) {
35
- const { locale: a, currency: n } = H(), { inputId: s, errorMessageId: E, descriptionId: L, ariaDescribedBy: S } = z({
33
+ const { locale: a, currency: o } = A(), { inputId: d, errorMessageId: E, descriptionId: L, ariaDescribedBy: S } = k({
36
34
  inputId: p,
37
35
  errorMessage: c,
38
36
  description: i
39
- }), V = typeof t == "string" ? Number(t) : t, j = typeof o == "string" ? Number(o) : o, G = O(() => new Intl.NumberFormat(a, {
37
+ }), V = typeof t == "string" ? Number(t) : t, j = typeof n == "string" ? Number(n) : n, G = O(() => new Intl.NumberFormat(a, {
40
38
  style: "currency",
41
- currency: n
42
- }).formatToParts(0).find((M) => M.type === "currency")?.value, [n, a]);
39
+ currency: o
40
+ }).formatToParts(0).find((M) => M.type === "currency")?.value, [o, a]);
43
41
  return /* @__PURE__ */ e(
44
- C,
42
+ z,
45
43
  {
46
- label: h,
44
+ label: N,
47
45
  description: i,
48
46
  errorMessage: c,
49
- isRequired: m,
50
- htmlFor: s,
47
+ isRequired: u,
48
+ htmlFor: d,
51
49
  errorMessageId: E,
52
50
  descriptionId: L,
53
51
  shouldVisuallyHideLabel: g,
54
- className: k(A.root, w),
52
+ className: w,
55
53
  withErrorIcon: !1,
56
- ...u,
54
+ ...l,
57
55
  children: /* @__PURE__ */ e(
58
56
  P,
59
57
  {
60
- value: f,
58
+ value: b,
61
59
  name: y,
62
60
  formatOptions: {
63
61
  style: "decimal",
64
62
  minimumFractionDigits: r === "currency" ? 2 : B,
65
63
  maximumFractionDigits: r === "currency" ? 2 : x,
66
- currency: n,
64
+ currency: o,
67
65
  currencyDisplay: "symbol"
68
66
  },
69
67
  isInvalid: I,
70
- isDisabled: l,
71
- isRequired: m,
68
+ isDisabled: m,
69
+ isRequired: u,
72
70
  validationBehavior: "aria",
73
71
  onChange: F,
74
72
  "aria-labelledby": " ",
75
73
  minValue: V,
76
74
  maxValue: j,
77
- ...u,
75
+ ...l,
78
76
  children: /* @__PURE__ */ e(T, { children: /* @__PURE__ */ e(
79
- J,
77
+ C,
80
78
  {
81
79
  adornmentStart: v || (r === "currency" ? G : null),
82
80
  adornmentEnd: D || (r === "percent" ? "%" : null),
83
- id: s,
84
- inputRef: d,
85
- onBlur: N,
86
- placeholder: b,
81
+ id: d,
82
+ inputRef: s,
83
+ onBlur: h,
84
+ placeholder: f,
87
85
  "aria-describedby": S,
88
- isDisabled: l
86
+ isDisabled: m
89
87
  }
90
88
  ) })
91
89
  }
@@ -94,6 +92,6 @@ function q({
94
92
  );
95
93
  }
96
94
  export {
97
- q as NumberInput
95
+ Y as NumberInput
98
96
  };
99
97
  //# sourceMappingURL=NumberInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.js","sources":["../../../../../src/components/Common/UI/NumberInput/NumberInput.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { Group, NumberField as AriaNumberField } from 'react-aria-components'\nimport classNames from 'classnames'\nimport { Input } from '../Input'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport styles from './NumberInput.module.scss'\nimport type { NumberInputProps } from './NumberInputTypes'\nimport { FieldLayout } from '@/components/Common/FieldLayout'\nimport { useLocale } from '@/contexts/LocaleProvider'\n\nexport function NumberInput({\n name,\n format,\n inputRef,\n id,\n value,\n description,\n errorMessage,\n isRequired,\n placeholder,\n isInvalid,\n isDisabled,\n onChange,\n onBlur,\n label,\n min,\n max,\n shouldVisuallyHideLabel,\n adornmentStart,\n adornmentEnd,\n className,\n maximumFractionDigits,\n minimumFractionDigits,\n ...props\n}: NumberInputProps) {\n const { locale, currency } = useLocale()\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n })\n\n const minValue = typeof min === 'string' ? Number(min) : min\n const maxValue = typeof max === 'string' ? Number(max) : max\n\n const currencySymbol = useMemo(() => {\n return new Intl.NumberFormat(locale, {\n style: 'currency',\n currency,\n })\n .formatToParts(0)\n .find(part => part.type === 'currency')?.value\n }, [currency, locale])\n\n return (\n <FieldLayout\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={isRequired}\n htmlFor={inputId}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n shouldVisuallyHideLabel={shouldVisuallyHideLabel}\n className={classNames(styles.root, className)}\n withErrorIcon={false}\n {...props}\n >\n <AriaNumberField\n value={value}\n name={name}\n formatOptions={{\n style: 'decimal',\n minimumFractionDigits: format === 'currency' ? 2 : minimumFractionDigits,\n maximumFractionDigits: format === 'currency' ? 2 : maximumFractionDigits,\n currency,\n currencyDisplay: 'symbol',\n }}\n isInvalid={isInvalid}\n isDisabled={isDisabled}\n isRequired={isRequired}\n validationBehavior=\"aria\"\n onChange={onChange}\n // This is a hack to silence an unnecessary react-aria warning. The FieldLayout component\n // already associates the label and input with htmlFor + ID. If we include a label id here,\n // the label will get read twice by assistive tech. This evaluates to an empty string which\n // does not get associated with any elements and does not get read.\n aria-labelledby=\" \"\n minValue={minValue}\n maxValue={maxValue}\n {...props}\n >\n <Group>\n <Input\n adornmentStart={adornmentStart || (format === 'currency' ? currencySymbol : null)}\n adornmentEnd={adornmentEnd || (format === 'percent' ? '%' : null)}\n id={inputId}\n inputRef={inputRef}\n onBlur={onBlur}\n placeholder={placeholder}\n aria-describedby={ariaDescribedBy}\n isDisabled={isDisabled}\n />\n </Group>\n </AriaNumberField>\n </FieldLayout>\n )\n}\n"],"names":["NumberInput","name","format","inputRef","id","value","description","errorMessage","isRequired","placeholder","isInvalid","isDisabled","onChange","onBlur","label","min","max","shouldVisuallyHideLabel","adornmentStart","adornmentEnd","className","maximumFractionDigits","minimumFractionDigits","props","locale","currency","useLocale","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","minValue","maxValue","currencySymbol","useMemo","part","jsx","FieldLayout","classNames","styles","AriaNumberField","Group","Input"],"mappings":";;;;;;;;;AAUO,SAASA,EAAY;AAAA,EAC1B,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,KAAAC;AAAA,EACA,KAAAC;AAAA,EACA,yBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,GAAGC;AACL,GAAqB;AACnB,QAAM,EAAE,QAAAC,GAAQ,UAAAC,EAAA,IAAaC,EAAA,GACvB,EAAE,SAAAC,GAAS,gBAAAC,GAAgB,eAAAC,GAAe,iBAAAC,EAAA,IAAoBC,EAAY;AAAA,IAC9E,SAAS3B;AAAA,IACT,cAAAG;AAAA,IACA,aAAAD;AAAA,EAAA,CACD,GAEK0B,IAAW,OAAOjB,KAAQ,WAAW,OAAOA,CAAG,IAAIA,GACnDkB,IAAW,OAAOjB,KAAQ,WAAW,OAAOA,CAAG,IAAIA,GAEnDkB,IAAiBC,EAAQ,MACtB,IAAI,KAAK,aAAaX,GAAQ;AAAA,IACnC,OAAO;AAAA,IACP,UAAAC;AAAA,EAAA,CACD,EACE,cAAc,CAAC,EACf,KAAK,CAAAW,MAAQA,EAAK,SAAS,UAAU,GAAG,OAC1C,CAACX,GAAUD,CAAM,CAAC;AAErB,SACE,gBAAAa;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAxB;AAAA,MACA,aAAAR;AAAA,MACA,cAAAC;AAAA,MACA,YAAAC;AAAA,MACA,SAASmB;AAAA,MACT,gBAAAC;AAAA,MACA,eAAAC;AAAA,MACA,yBAAAZ;AAAA,MACA,WAAWsB,EAAWC,EAAO,MAAMpB,CAAS;AAAA,MAC5C,eAAe;AAAA,MACd,GAAGG;AAAA,MAEJ,UAAA,gBAAAc;AAAA,QAACI;AAAAA,QAAA;AAAA,UACC,OAAApC;AAAA,UACA,MAAAJ;AAAA,UACA,eAAe;AAAA,YACb,OAAO;AAAA,YACP,uBAAuBC,MAAW,aAAa,IAAIoB;AAAA,YACnD,uBAAuBpB,MAAW,aAAa,IAAImB;AAAA,YACnD,UAAAI;AAAA,YACA,iBAAiB;AAAA,UAAA;AAAA,UAEnB,WAAAf;AAAA,UACA,YAAAC;AAAA,UACA,YAAAH;AAAA,UACA,oBAAmB;AAAA,UACnB,UAAAI;AAAA,UAKA,mBAAgB;AAAA,UAChB,UAAAoB;AAAA,UACA,UAAAC;AAAA,UACC,GAAGV;AAAA,UAEJ,4BAACmB,GAAA,EACC,UAAA,gBAAAL;AAAA,YAACM;AAAA,YAAA;AAAA,cACC,gBAAgBzB,MAAmBhB,MAAW,aAAagC,IAAiB;AAAA,cAC5E,cAAcf,MAAiBjB,MAAW,YAAY,MAAM;AAAA,cAC5D,IAAIyB;AAAA,cACJ,UAAAxB;AAAA,cACA,QAAAU;AAAA,cACA,aAAAJ;AAAA,cACA,oBAAkBqB;AAAA,cAClB,YAAAnB;AAAA,YAAA;AAAA,UAAA,EACF,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"NumberInput.js","sources":["../../../../../src/components/Common/UI/NumberInput/NumberInput.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { Group, NumberField as AriaNumberField } from 'react-aria-components'\nimport { Input } from '../Input'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport type { NumberInputProps } from './NumberInputTypes'\nimport { FieldLayout } from '@/components/Common/FieldLayout'\nimport { useLocale } from '@/contexts/LocaleProvider'\n\nexport function NumberInput({\n name,\n format,\n inputRef,\n id,\n value,\n description,\n errorMessage,\n isRequired,\n placeholder,\n isInvalid,\n isDisabled,\n onChange,\n onBlur,\n label,\n min,\n max,\n shouldVisuallyHideLabel,\n adornmentStart,\n adornmentEnd,\n className,\n maximumFractionDigits,\n minimumFractionDigits,\n ...props\n}: NumberInputProps) {\n const { locale, currency } = useLocale()\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n })\n\n const minValue = typeof min === 'string' ? Number(min) : min\n const maxValue = typeof max === 'string' ? Number(max) : max\n\n const currencySymbol = useMemo(() => {\n return new Intl.NumberFormat(locale, {\n style: 'currency',\n currency,\n })\n .formatToParts(0)\n .find(part => part.type === 'currency')?.value\n }, [currency, locale])\n\n return (\n <FieldLayout\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={isRequired}\n htmlFor={inputId}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n shouldVisuallyHideLabel={shouldVisuallyHideLabel}\n className={className}\n withErrorIcon={false}\n {...props}\n >\n <AriaNumberField\n value={value}\n name={name}\n formatOptions={{\n style: 'decimal',\n minimumFractionDigits: format === 'currency' ? 2 : minimumFractionDigits,\n maximumFractionDigits: format === 'currency' ? 2 : maximumFractionDigits,\n currency,\n currencyDisplay: 'symbol',\n }}\n isInvalid={isInvalid}\n isDisabled={isDisabled}\n isRequired={isRequired}\n validationBehavior=\"aria\"\n onChange={onChange}\n // This is a hack to silence an unnecessary react-aria warning. The FieldLayout component\n // already associates the label and input with htmlFor + ID. If we include a label id here,\n // the label will get read twice by assistive tech. This evaluates to an empty string which\n // does not get associated with any elements and does not get read.\n aria-labelledby=\" \"\n minValue={minValue}\n maxValue={maxValue}\n {...props}\n >\n <Group>\n <Input\n adornmentStart={adornmentStart || (format === 'currency' ? currencySymbol : null)}\n adornmentEnd={adornmentEnd || (format === 'percent' ? '%' : null)}\n id={inputId}\n inputRef={inputRef}\n onBlur={onBlur}\n placeholder={placeholder}\n aria-describedby={ariaDescribedBy}\n isDisabled={isDisabled}\n />\n </Group>\n </AriaNumberField>\n </FieldLayout>\n )\n}\n"],"names":["NumberInput","name","format","inputRef","id","value","description","errorMessage","isRequired","placeholder","isInvalid","isDisabled","onChange","onBlur","label","min","max","shouldVisuallyHideLabel","adornmentStart","adornmentEnd","className","maximumFractionDigits","minimumFractionDigits","props","locale","currency","useLocale","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","minValue","maxValue","currencySymbol","useMemo","part","jsx","FieldLayout","AriaNumberField","Group","Input"],"mappings":";;;;;;;AAQO,SAASA,EAAY;AAAA,EAC1B,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,KAAAC;AAAA,EACA,KAAAC;AAAA,EACA,yBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,GAAGC;AACL,GAAqB;AACnB,QAAM,EAAE,QAAAC,GAAQ,UAAAC,EAAA,IAAaC,EAAA,GACvB,EAAE,SAAAC,GAAS,gBAAAC,GAAgB,eAAAC,GAAe,iBAAAC,EAAA,IAAoBC,EAAY;AAAA,IAC9E,SAAS3B;AAAA,IACT,cAAAG;AAAA,IACA,aAAAD;AAAA,EAAA,CACD,GAEK0B,IAAW,OAAOjB,KAAQ,WAAW,OAAOA,CAAG,IAAIA,GACnDkB,IAAW,OAAOjB,KAAQ,WAAW,OAAOA,CAAG,IAAIA,GAEnDkB,IAAiBC,EAAQ,MACtB,IAAI,KAAK,aAAaX,GAAQ;AAAA,IACnC,OAAO;AAAA,IACP,UAAAC;AAAA,EAAA,CACD,EACE,cAAc,CAAC,EACf,KAAK,CAAAW,MAAQA,EAAK,SAAS,UAAU,GAAG,OAC1C,CAACX,GAAUD,CAAM,CAAC;AAErB,SACE,gBAAAa;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAxB;AAAA,MACA,aAAAR;AAAA,MACA,cAAAC;AAAA,MACA,YAAAC;AAAA,MACA,SAASmB;AAAA,MACT,gBAAAC;AAAA,MACA,eAAAC;AAAA,MACA,yBAAAZ;AAAA,MACA,WAAAG;AAAA,MACA,eAAe;AAAA,MACd,GAAGG;AAAA,MAEJ,UAAA,gBAAAc;AAAA,QAACE;AAAAA,QAAA;AAAA,UACC,OAAAlC;AAAA,UACA,MAAAJ;AAAA,UACA,eAAe;AAAA,YACb,OAAO;AAAA,YACP,uBAAuBC,MAAW,aAAa,IAAIoB;AAAA,YACnD,uBAAuBpB,MAAW,aAAa,IAAImB;AAAA,YACnD,UAAAI;AAAA,YACA,iBAAiB;AAAA,UAAA;AAAA,UAEnB,WAAAf;AAAA,UACA,YAAAC;AAAA,UACA,YAAAH;AAAA,UACA,oBAAmB;AAAA,UACnB,UAAAI;AAAA,UAKA,mBAAgB;AAAA,UAChB,UAAAoB;AAAA,UACA,UAAAC;AAAA,UACC,GAAGV;AAAA,UAEJ,4BAACiB,GAAA,EACC,UAAA,gBAAAH;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,gBAAgBvB,MAAmBhB,MAAW,aAAagC,IAAiB;AAAA,cAC5E,cAAcf,MAAiBjB,MAAW,YAAY,MAAM;AAAA,cAC5D,IAAIyB;AAAA,cACJ,UAAAxB;AAAA,cACA,QAAAU;AAAA,cACA,aAAAJ;AAAA,cACA,oBAAkBqB;AAAA,cAClB,YAAAnB;AAAA,YAAA;AAAA,UAAA,EACF,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}
@@ -1,4 +1,4 @@
1
- const o = "_root_x6ixa_1", t = {
1
+ const o = "_root_16byn_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_radioWrapper_1gv6h_1", r = "_radio_1gv6h_1", a = "_checked_1gv6h_21", d = "_radioDot_1gv6h_25", t = "_radioInput_1gv6h_32", _ = {
1
+ const o = "_radioWrapper_1nzs4_1", r = "_radio_1nzs4_1", a = "_checked_1nzs4_21", d = "_radioDot_1nzs4_25", t = "_radioInput_1nzs4_32", _ = {
2
2
  radioWrapper: o,
3
3
  radio: r,
4
4
  checked: a,
@@ -1,4 +1,4 @@
1
- const o = "_root_yubia_1", t = {
1
+ const o = "_root_11w4w_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_root_197so_1", s = "_icons_197so_17", t = "_popover_197so_92", _ = {
1
+ const o = "_root_lmlas_1", s = "_icons_lmlas_17", t = "_popover_lmlas_67", _ = {
2
2
  root: o,
3
3
  icons: s,
4
4
  popover: t
@@ -1,12 +1,12 @@
1
- const o = "_root_x5ly8_1", t = "_body_x5ly8_10", _ = "_indicator_x5ly8_21", c = {
1
+ const o = "_root_1b3s4_1", t = "_body_1b3s4_7", s = "_indicator_1b3s4_18", _ = {
2
2
  root: o,
3
3
  body: t,
4
- indicator: _
4
+ indicator: s
5
5
  };
6
6
  export {
7
7
  t as body,
8
- c as default,
9
- _ as indicator,
8
+ _ as default,
9
+ s as indicator,
10
10
  o as root
11
11
  };
12
12
  //# sourceMappingURL=Switch.module.scss.js.map
@@ -1,4 +1,4 @@
1
- const o = "_root_197gq_1", t = {
1
+ const o = "_root_1bvng_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1,21 +1,21 @@
1
- const t = "_root_11hq5_1", _ = "_sm_11hq5_6", e = "_md_11hq5_9", i = "_lg_11hq5_12", g = {
1
+ const t = "_root_1hbwh_1", _ = "_sm_1hbwh_6", h = "_md_1hbwh_9", e = "_lg_1hbwh_12", i = {
2
2
  root: t,
3
3
  sm: _,
4
- md: e,
5
- lg: i,
6
- "weight-regular": "_weight-regular_11hq5_15",
7
- "weight-medium": "_weight-medium_11hq5_18",
8
- "weight-semibold": "_weight-semibold_11hq5_21",
9
- "weight-bold": "_weight-bold_11hq5_24",
10
- "textAlign-start": "_textAlign-start_11hq5_27",
11
- "textAlign-center": "_textAlign-center_11hq5_30",
12
- "textAlign-end": "_textAlign-end_11hq5_33",
13
- "variant-supporting": "_variant-supporting_11hq5_36"
4
+ md: h,
5
+ lg: e,
6
+ "weight-regular": "_weight-regular_1hbwh_15",
7
+ "weight-medium": "_weight-medium_1hbwh_18",
8
+ "weight-semibold": "_weight-semibold_1hbwh_21",
9
+ "weight-bold": "_weight-bold_1hbwh_24",
10
+ "textAlign-start": "_textAlign-start_1hbwh_27",
11
+ "textAlign-center": "_textAlign-center_1hbwh_30",
12
+ "textAlign-end": "_textAlign-end_1hbwh_33",
13
+ "variant-supporting": "_variant-supporting_1hbwh_36"
14
14
  };
15
15
  export {
16
- g as default,
17
- i as lg,
18
- e as md,
16
+ i as default,
17
+ e as lg,
18
+ h as md,
19
19
  t as root,
20
20
  _ as sm
21
21
  };
@@ -11,10 +11,11 @@ import "../../../../shared/constants.js";
11
11
  import "classnames";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
15
- const [d, s] = t("CreateSignatoryContext");
16
+ const [s, u] = t("CreateSignatoryContext");
16
17
  export {
17
- s as CreateSignatoryProvider,
18
- d as useCreateSignatory
18
+ u as CreateSignatoryProvider,
19
+ s as useCreateSignatory
19
20
  };
20
21
  //# 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;"}
@@ -11,10 +11,11 @@ import "../../../../shared/constants.js";
11
11
  import "classnames";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
15
- const [S, c] = t("InviteSignatoryContext");
16
+ const [c, d] = t("InviteSignatoryContext");
16
17
  export {
17
- c as InviteSignatoryProvider,
18
- S as useInviteSignatory
18
+ d as InviteSignatoryProvider,
19
+ c as useInviteSignatory
19
20
  };
20
21
  //# 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;"}
@@ -11,14 +11,15 @@ import "../../../shared/constants.js";
11
11
  import "classnames";
12
12
  import "dompurify";
13
13
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
15
- const d = {
16
+ const v = {
16
17
  createSignatory: "createSignatory",
17
18
  inviteSignatory: "inviteSignatory"
18
- }, [v, x] = t("AssignSignatoryContext");
19
+ }, [x, C] = t("AssignSignatoryContext");
19
20
  export {
20
- x as AssignSignatoryProvider,
21
- d as SignatoryAssignmentMode,
22
- v as useAssignSignatory
21
+ C as AssignSignatoryProvider,
22
+ v as SignatoryAssignmentMode,
23
+ x as useAssignSignatory
23
24
  };
24
25
  //# 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;"}
@@ -11,10 +11,11 @@ import "../../../../shared/constants.js";
11
11
  import "classnames";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
15
- const [C, d] = o("BankAccountContext");
16
+ const [d, s] = o("BankAccountContext");
16
17
  export {
17
- d as BankAccountFormProvider,
18
- C as useBankAccountForm
18
+ s as BankAccountFormProvider,
19
+ d as useBankAccountForm
19
20
  };
20
21
  //# 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;"}
@@ -11,12 +11,13 @@ import "../../../../shared/constants.js";
11
11
  import "classnames";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
15
- const [a, d] = t(
16
+ const [d, f] = t(
16
17
  "CompanyDocumentListContext"
17
18
  );
18
19
  export {
19
- d as DocumentListProvider,
20
- a as useDocumentList
20
+ f as DocumentListProvider,
21
+ d as useDocumentList
21
22
  };
22
23
  //# 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":";;;;;;;;;;;;;;AAcA,MAAM,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":";;;;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
@@ -11,12 +11,13 @@ import "../../../../shared/constants.js";
11
11
  import "classnames";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
15
- const [c, d] = o(
16
+ const [d, s] = o(
16
17
  "CompanySignatureFormContext"
17
18
  );
18
19
  export {
19
- d as SignatureFormProvider,
20
- c as useSignatureForm
20
+ s as SignatureFormProvider,
21
+ d as useSignatureForm
21
22
  };
22
23
  //# 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":";;;;;;;;;;;;;;AAUA,MAAM,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":";;;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -13,18 +13,19 @@ import "../../../shared/constants.js";
13
13
  import "classnames";
14
14
  import "dompurify";
15
15
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
16
+ import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
16
17
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
17
- const C = o.object({
18
+ const b = o.object({
18
19
  federalEin: o.string().optional(),
19
20
  taxPayerType: o.enum(Object.values(e)).optional(),
20
21
  filingForm: o.enum(Object.values(r)).optional(),
21
22
  legalName: o.string().min(1)
22
- }), [b, j] = t(
23
+ }), [j, v] = t(
23
24
  "CompanyFederalTaxesContext"
24
25
  );
25
26
  export {
26
- C as FederalTaxFormSchema,
27
- j as FederalTaxesProvider,
28
- b as useFederalTaxes
27
+ b as FederalTaxFormSchema,
28
+ v as FederalTaxesProvider,
29
+ j as useFederalTaxes
29
30
  };
30
31
  //# 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":";;;;;;;;;;;;;;;;AASO,MAAMA,IAAuBC,EAAE,OAAO;AAAA,EAC3C,YAAYA,EAAE,OAAA,EAAS,SAAA;AAAA,EACvB,cAAcA,EAAE,KAAK,OAAO,OAAOC,CAAY,CAA0B,EAAE,SAAA;AAAA,EAC3E,YAAYD,EAAE,KAAK,OAAO,OAAOE,CAAU,CAA0B,EAAE,SAAA;AAAA,EACvE,WAAWF,EAAE,OAAA,EAAS,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":";;;;;;;;;;;;;;;;;AASO,MAAMA,IAAuBC,EAAE,OAAO;AAAA,EAC3C,YAAYA,EAAE,OAAA,EAAS,SAAA;AAAA,EACvB,cAAcA,EAAE,KAAK,OAAO,OAAOC,CAAY,CAA0B,EAAE,SAAA;AAAA,EAC3E,YAAYD,EAAE,KAAK,OAAO,OAAOE,CAAU,CAA0B,EAAE,SAAA;AAAA,EACvE,WAAWF,EAAE,OAAA,EAAS,IAAI,CAAC;AAC7B,CAAC,GAeK,CAACG,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
@@ -11,16 +11,17 @@ import "../../../shared/constants.js";
11
11
  import "classnames";
12
12
  import "dompurify";
13
13
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
15
- const [A, P] = t("IndustryItems", {
16
+ const [P, f] = t("IndustryItems", {
16
17
  items: []
17
- }), [f, v] = t("IndustryApi", {
18
+ }), [v, x] = t("IndustryApi", {
18
19
  isPending: !1
19
20
  });
20
21
  export {
21
- v as IndustryApiStateProvider,
22
- P as IndustryItemsProvider,
23
- f as useIndustryApiState,
24
- A as useIndustryItems
22
+ x as IndustryApiStateProvider,
23
+ f as IndustryItemsProvider,
24
+ v as useIndustryApiState,
25
+ P as useIndustryItems
25
26
  };
26
27
  //# 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;"}
@@ -11,12 +11,13 @@ import "../../../../shared/constants.js";
11
11
  import "classnames";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
15
- const [d, L] = o(
16
+ const [L, f] = o(
16
17
  "CompanyDocumentFormContext"
17
18
  );
18
19
  export {
19
- L as LocationsFormProvider,
20
- d as useLocationsForm
20
+ f as LocationsFormProvider,
21
+ L as useLocationsForm
21
22
  };
22
23
  //# 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":";;;;;;;;;;;;;;AAOA,MAAM,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":";;;;;;;;;;;;;;;AAOA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -11,12 +11,13 @@ import "../../../../shared/constants.js";
11
11
  import "classnames";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
15
- const [d, f] = o(
16
+ const [f, v] = o(
16
17
  "CompanyDocumentListContext"
17
18
  );
18
19
  export {
19
- f as LocationsListProvider,
20
- d as useLocationsList
20
+ v as LocationsListProvider,
21
+ f as useLocationsList
21
22
  };
22
23
  //# 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":";;;;;;;;;;;;;;AAiBA,MAAM,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":";;;;;;;;;;;;;;;AAiBA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -11,10 +11,11 @@ import "../../../shared/constants.js";
11
11
  import "classnames";
12
12
  import "dompurify";
13
13
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
15
  import { createCompoundContext as o } from "../../Base/createCompoundContext.js";
15
- const [x, C] = o("OnboardingOverviewContext");
16
+ const [C, c] = o("OnboardingOverviewContext");
16
17
  export {
17
- C as OnboardingOverviewProvider,
18
- x as useOnboardingOverview
18
+ c as OnboardingOverviewProvider,
19
+ C as useOnboardingOverview
19
20
  };
20
21
  //# 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;"}
@@ -1,4 +1,4 @@
1
- const a = "_payScheduleContainer_15aaq_1", e = "_payScheduleForm_15aaq_5", n = "_visuallyHidden_15aaq_9", l = "_calendarContainer_15aaq_13", d = {
1
+ const a = "_payScheduleContainer_masn5_1", e = "_payScheduleForm_masn5_5", n = "_visuallyHidden_masn5_9", l = "_calendarContainer_masn5_13", d = {
2
2
  payScheduleContainer: a,
3
3
  payScheduleForm: e,
4
4
  visuallyHidden: n,
@@ -12,8 +12,9 @@ import "../../../shared/constants.js";
12
12
  import "classnames";
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 x = o.object({
17
+ const S = o.object({
17
18
  frequency: o.enum(["Every week", "Every other week", "Twice per month", "Monthly"]),
18
19
  anchorPayDate: o.date().optional(),
19
20
  anchorEndOfPayPeriod: o.date().optional(),
@@ -21,10 +22,10 @@ const x = o.object({
21
22
  day2: o.number().min(1).max(31).optional(),
22
23
  customName: o.string().optional(),
23
24
  customTwicePerMonth: o.string().optional()
24
- }), [S, f] = t("PayScheduleContext");
25
+ }), [f, w] = t("PayScheduleContext");
25
26
  export {
26
- f as PayScheduleProvider,
27
- x as PayScheduleSchema,
28
- S as usePaySchedule
27
+ w as PayScheduleProvider,
28
+ S as PayScheduleSchema,
29
+ f as usePaySchedule
29
30
  };
30
31
  //# sourceMappingURL=usePaySchedule.js.map