@gusto/embedded-react-sdk 0.44.0 → 0.44.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 (170) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/components/Base/useBaseSubmit.js +6 -6
  3. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  4. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +1 -1
  5. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +1 -1
  6. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +1 -1
  7. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +1 -1
  8. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +1 -1
  9. package/dist/components/Company/AssignSignatory/TitleSelect.js +1 -1
  10. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +1 -1
  11. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +1 -1
  12. package/dist/components/Company/BankAccount/BankAccountForm/context.js +1 -1
  13. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +1 -1
  14. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +1 -1
  15. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +1 -1
  16. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +9 -9
  17. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  18. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +1 -1
  19. package/dist/components/Company/FederalTaxes/Actions.js +1 -1
  20. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +1 -1
  21. package/dist/components/Company/Industry/Actions.js +1 -1
  22. package/dist/components/Company/Industry/Context.js +1 -1
  23. package/dist/components/Company/Industry/Edit.js +1 -1
  24. package/dist/components/Company/Locations/LocationForm/Actions.js +1 -1
  25. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +1 -1
  26. package/dist/components/Company/Locations/LocationsList/Actions.js +1 -1
  27. package/dist/components/Company/Locations/LocationsList/List.js +1 -1
  28. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +1 -1
  29. package/dist/components/Company/OnboardingOverview/context.js +1 -1
  30. package/dist/components/Company/PaySchedule/PaySchedule.d.ts +2 -2
  31. package/dist/components/Company/PaySchedule/PaySchedule.js +6 -6
  32. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  33. package/dist/components/Company/PaySchedule/PayScheduleList.js +8 -8
  34. package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -1
  35. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +3 -3
  36. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +12 -12
  37. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  38. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +1 -1
  39. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +1 -1
  40. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +1 -1
  41. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +1 -1
  42. package/dist/components/Contractor/Address/Address.js +16 -16
  43. package/dist/components/Contractor/Address/Address.js.map +1 -1
  44. package/dist/components/Contractor/Address/Form.js +4 -4
  45. package/dist/components/Contractor/Address/useAddress.js +1 -1
  46. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +8 -8
  47. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  48. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
  49. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +5 -5
  50. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  51. package/dist/components/Contractor/Profile/useContractorProfile.js +1 -1
  52. package/dist/components/Contractor/Submit/Submit.js +22 -20
  53. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  54. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +1 -1
  55. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +6 -6
  56. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -1
  57. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +3 -3
  58. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -1
  59. package/dist/components/Employee/Deductions/Deductions.js +7 -7
  60. package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
  61. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +24 -24
  62. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  63. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +13 -9
  64. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  65. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +2 -2
  66. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  67. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.d.ts +1 -2
  68. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +17 -17
  69. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  70. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +30 -30
  71. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  72. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +1 -1
  73. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +8 -8
  74. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  75. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +1 -1
  76. package/dist/components/Employee/DocumentSigner/DocumentSigner.js +1 -1
  77. package/dist/components/Employee/DocumentSigner/DocumentSigner.js.map +1 -1
  78. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +12 -12
  79. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  80. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js +1 -1
  81. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -1
  82. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js +1 -1
  83. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +1 -1
  84. package/dist/components/Employee/PaymentMethod/Actions.js +1 -1
  85. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +1 -1
  86. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +1 -1
  87. package/dist/components/Employee/PaymentMethod/PaymentMethod.js +14 -14
  88. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  89. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
  90. package/dist/components/Employee/PaymentMethod/Split.js +1 -1
  91. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +1 -1
  92. package/dist/components/Employee/Profile/management/Profile.js +1 -1
  93. package/dist/components/Employee/Profile/onboarding/AdminProfile.js +1 -1
  94. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js +1 -1
  95. package/dist/components/Employee/StateTaxes/management/StateTaxes.js +1 -1
  96. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +1 -1
  97. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +19 -17
  98. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -1
  99. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.module.scss.js +8 -0
  100. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.module.scss.js.map +1 -0
  101. package/dist/components/Employee/Taxes/Actions.js +1 -1
  102. package/dist/components/Employee/Taxes/FederalForm.js +1 -1
  103. package/dist/components/Employee/Taxes/useTaxes.js +1 -1
  104. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +11 -11
  105. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  106. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +3 -3
  107. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  108. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +40 -45
  109. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  110. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +1 -1
  111. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  112. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +17 -17
  113. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  114. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +7 -7
  115. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  116. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +1 -1
  117. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +1 -1
  118. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +1 -1
  119. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +1 -1
  120. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +10 -10
  121. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  122. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.d.ts +2 -2
  123. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +21 -25
  124. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  125. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  126. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  127. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +2 -2
  128. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +1 -1
  129. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  130. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +4 -4
  131. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  132. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  133. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  134. package/dist/components/Payroll/PayrollList/PayrollList.js +4 -4
  135. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  136. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -2
  137. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  138. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +5 -5
  139. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  140. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +1 -1
  141. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  142. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +7 -7
  143. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  144. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +1 -1
  145. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +70 -53
  146. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  147. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +1 -1
  148. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
  149. package/dist/components/Payroll/helpers.d.ts +1 -1
  150. package/dist/components/Payroll/helpers.js.map +1 -1
  151. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  152. package/dist/components/Payroll/usePreparedPayrollData.js +10 -10
  153. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  154. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +1 -1
  155. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +41 -41
  156. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -1
  157. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +1 -1
  158. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +1 -1
  159. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +1 -1
  160. package/dist/helpers/dateFormatting.js +52 -56
  161. package/dist/helpers/dateFormatting.js.map +1 -1
  162. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +1 -1
  163. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +1 -1
  164. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +1 -1
  165. package/dist/partner-hook-utils/form/fields/SelectHookField.js +1 -1
  166. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +1 -1
  167. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +1 -1
  168. package/dist/style.css +1 -1
  169. package/dist/test-utils/assertions.d.ts +4 -0
  170. package/package.json +13 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.44.2](https://github.com/Gusto/embedded-react-sdk/compare/v0.44.1...v0.44.2) (2026-05-12)
4
+
5
+ ### Fixes
6
+
7
+ - Fix full-width layout of `EmployeeStateTaxesView` container ([#1782](https://github.com/Gusto/embedded-react-sdk/issues/1782))
8
+ - Prevent layout shift (skeleton flash) when `TransitionPayrollAlert` has no content to display ([#1773](https://github.com/Gusto/embedded-react-sdk/issues/1773))
9
+ - Fix UTC roundtrip bug in date picker field where dates near midnight would shift by one day ([#1767](https://github.com/Gusto/embedded-react-sdk/issues/1767))
10
+
11
+ ### Chores & Maintenance
12
+
13
+ - Bump `i18next` to `26.1.0` ([#1778](https://github.com/Gusto/embedded-react-sdk/issues/1778))
14
+ - Bump dev dependencies (`@playwright/test`, `typescript-eslint`, `vitest`)
15
+
16
+ ## 0.44.1
17
+
18
+ ### Chores & Maintenance
19
+
20
+ - Upgrade `@gusto/embedded-api` to `0.13.0` (adapts SDK to renamed error class `UnprocessableEntityError`, `PayScheduleShow` rename, typed mutation bodies, and renamed response payload keys; no public SDK API changes)
21
+ - Bump various dev dependencies (`@commitlint/cli`, `@commitlint/config-conventional`, `lint-staged`, `msw`)
22
+ - Bump `fast-uri` to `3.1.2` (transitive npm/yarn security update)
23
+
3
24
  ## 0.44.0
4
25
 
5
26
  ### Breaking Changes
@@ -1,12 +1,12 @@
1
1
  import { useState as f, useCallback as m } from "react";
2
- import { APIError as b } from "@gusto/embedded-api/models/errors/apierror";
3
- import { GustoEmbeddedError as E } from "@gusto/embedded-api/models/errors/gustoembeddederror";
2
+ import { APIError as E } from "@gusto/embedded-api/models/errors/apierror";
3
+ import { GustoEmbeddedError as b } from "@gusto/embedded-api/models/errors/gustoembeddederror";
4
4
  import { SDKValidationError as d } from "@gusto/embedded-api/models/errors/sdkvalidationerror";
5
- import { UnprocessableEntityErrorObject as p } from "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
5
+ import { UnprocessableEntityError as p } from "@gusto/embedded-api/models/errors/unprocessableentityerror";
6
6
  import { useAsyncError as y } from "../../hooks/useAsyncError.js";
7
7
  import { useObservability as D } from "../../contexts/ObservabilityProvider/useObservability.js";
8
8
  import { normalizeToSDKError as S, SDKInternalError as w } from "../../types/sdkError.js";
9
- const g = (t) => {
9
+ const x = (t) => {
10
10
  const [u, o] = f(null), a = y(), { observability: s } = D(), i = m(
11
11
  (n) => {
12
12
  const e = S(n);
@@ -23,7 +23,7 @@ const g = (t) => {
23
23
  try {
24
24
  await e(n), c = !0;
25
25
  } catch (r) {
26
- r instanceof b || r instanceof d || r instanceof p || r instanceof E || r instanceof w ? i(r) : a(r);
26
+ r instanceof E || r instanceof d || r instanceof p || r instanceof b || r instanceof w ? i(r) : a(r);
27
27
  } finally {
28
28
  const r = Date.now() - l;
29
29
  s?.onMetric?.({
@@ -45,6 +45,6 @@ const g = (t) => {
45
45
  };
46
46
  };
47
47
  export {
48
- g as useBaseSubmit
48
+ x as useBaseSubmit
49
49
  };
50
50
  //# sourceMappingURL=useBaseSubmit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useBaseSubmit.js","sources":["../../../src/components/Base/useBaseSubmit.ts"],"sourcesContent":["import { useState, useCallback } from 'react'\nimport { APIError } from '@gusto/embedded-api/models/errors/apierror'\nimport { GustoEmbeddedError } from '@gusto/embedded-api/models/errors/gustoembeddederror'\nimport { SDKValidationError } from '@gusto/embedded-api/models/errors/sdkvalidationerror'\nimport { UnprocessableEntityErrorObject } from '@gusto/embedded-api/models/errors/unprocessableentityerrorobject'\nimport { useAsyncError } from '@/hooks/useAsyncError'\nimport { useObservability } from '@/contexts/ObservabilityProvider/useObservability'\nimport { type SDKError, SDKInternalError, normalizeToSDKError } from '@/types/sdkError'\n\ntype SubmitHandler<T> = (data: T) => Promise<void>\n\nexport const useBaseSubmit = (componentName?: string) => {\n const [error, setError] = useState<SDKError | null>(null)\n const throwError = useAsyncError()\n const { observability } = useObservability()\n\n const processError = useCallback(\n (caughtError: GustoEmbeddedError | SDKValidationError | SDKInternalError) => {\n const sdkError = normalizeToSDKError(caughtError)\n\n setError(sdkError)\n\n observability?.onError?.({ ...sdkError, timestamp: Date.now(), componentName })\n },\n [observability, componentName],\n )\n\n const baseSubmitHandler = useCallback(\n async <T>(data: T, componentHandler: SubmitHandler<T>) => {\n const startTime = Date.now()\n setError(null)\n\n let success = false\n\n try {\n await componentHandler(data)\n success = true\n } catch (err) {\n if (\n err instanceof APIError ||\n err instanceof SDKValidationError ||\n err instanceof UnprocessableEntityErrorObject ||\n err instanceof GustoEmbeddedError ||\n err instanceof SDKInternalError\n ) {\n processError(err)\n } else throwError(err)\n } finally {\n const duration = Date.now() - startTime\n observability?.onMetric?.({\n name: 'sdk.form.submit_duration',\n value: duration,\n unit: 'ms',\n tags: {\n status: success ? 'success' : 'error',\n ...(componentName && { component: componentName }),\n },\n timestamp: Date.now(),\n })\n }\n },\n [setError, throwError, observability, componentName, processError],\n )\n\n return {\n baseSubmitHandler,\n error,\n setError,\n }\n}\n"],"names":["useBaseSubmit","componentName","error","setError","useState","throwError","useAsyncError","observability","useObservability","processError","useCallback","caughtError","sdkError","normalizeToSDKError","data","componentHandler","startTime","success","err","APIError","SDKValidationError","UnprocessableEntityErrorObject","GustoEmbeddedError","SDKInternalError","duration"],"mappings":";;;;;;;;AAWO,MAAMA,IAAgB,CAACC,MAA2B;AACvD,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAA0B,IAAI,GAClDC,IAAaC,EAAA,GACb,EAAE,eAAAC,EAAA,IAAkBC,EAAA,GAEpBC,IAAeC;AAAA,IACnB,CAACC,MAA4E;AAC3E,YAAMC,IAAWC,EAAoBF,CAAW;AAEhD,MAAAR,EAASS,CAAQ,GAEjBL,GAAe,UAAU,EAAE,GAAGK,GAAU,WAAW,KAAK,OAAO,eAAAX,GAAe;AAAA,IAChF;AAAA,IACA,CAACM,GAAeN,CAAa;AAAA,EAAA;AAwC/B,SAAO;AAAA,IACL,mBAtCwBS;AAAA,MACxB,OAAUI,GAASC,MAAuC;AACxD,cAAMC,IAAY,KAAK,IAAA;AACvB,QAAAb,EAAS,IAAI;AAEb,YAAIc,IAAU;AAEd,YAAI;AACF,gBAAMF,EAAiBD,CAAI,GAC3BG,IAAU;AAAA,QACZ,SAASC,GAAK;AACZ,UACEA,aAAeC,KACfD,aAAeE,KACfF,aAAeG,KACfH,aAAeI,KACfJ,aAAeK,IAEfd,EAAaS,CAAG,MACAA,CAAG;AAAA,QACvB,UAAA;AACE,gBAAMM,IAAW,KAAK,IAAA,IAAQR;AAC9B,UAAAT,GAAe,WAAW;AAAA,YACxB,MAAM;AAAA,YACN,OAAOiB;AAAA,YACP,MAAM;AAAA,YACN,MAAM;AAAA,cACJ,QAAQP,IAAU,YAAY;AAAA,cAC9B,GAAIhB,KAAiB,EAAE,WAAWA,EAAA;AAAA,YAAc;AAAA,YAElD,WAAW,KAAK,IAAA;AAAA,UAAI,CACrB;AAAA,QACH;AAAA,MACF;AAAA,MACA,CAACE,GAAUE,GAAYE,GAAeN,GAAeQ,CAAY;AAAA,IAAA;AAAA,IAKjE,OAAAP;AAAA,IACA,UAAAC;AAAA,EAAA;AAEJ;"}
1
+ {"version":3,"file":"useBaseSubmit.js","sources":["../../../src/components/Base/useBaseSubmit.ts"],"sourcesContent":["import { useState, useCallback } from 'react'\nimport { APIError } from '@gusto/embedded-api/models/errors/apierror'\nimport { GustoEmbeddedError } from '@gusto/embedded-api/models/errors/gustoembeddederror'\nimport { SDKValidationError } from '@gusto/embedded-api/models/errors/sdkvalidationerror'\nimport { UnprocessableEntityError } from '@gusto/embedded-api/models/errors/unprocessableentityerror'\nimport { useAsyncError } from '@/hooks/useAsyncError'\nimport { useObservability } from '@/contexts/ObservabilityProvider/useObservability'\nimport { type SDKError, SDKInternalError, normalizeToSDKError } from '@/types/sdkError'\n\ntype SubmitHandler<T> = (data: T) => Promise<void>\n\nexport const useBaseSubmit = (componentName?: string) => {\n const [error, setError] = useState<SDKError | null>(null)\n const throwError = useAsyncError()\n const { observability } = useObservability()\n\n const processError = useCallback(\n (caughtError: GustoEmbeddedError | SDKValidationError | SDKInternalError) => {\n const sdkError = normalizeToSDKError(caughtError)\n\n setError(sdkError)\n\n observability?.onError?.({ ...sdkError, timestamp: Date.now(), componentName })\n },\n [observability, componentName],\n )\n\n const baseSubmitHandler = useCallback(\n async <T>(data: T, componentHandler: SubmitHandler<T>) => {\n const startTime = Date.now()\n setError(null)\n\n let success = false\n\n try {\n await componentHandler(data)\n success = true\n } catch (err) {\n if (\n err instanceof APIError ||\n err instanceof SDKValidationError ||\n err instanceof UnprocessableEntityError ||\n err instanceof GustoEmbeddedError ||\n err instanceof SDKInternalError\n ) {\n processError(err)\n } else throwError(err)\n } finally {\n const duration = Date.now() - startTime\n observability?.onMetric?.({\n name: 'sdk.form.submit_duration',\n value: duration,\n unit: 'ms',\n tags: {\n status: success ? 'success' : 'error',\n ...(componentName && { component: componentName }),\n },\n timestamp: Date.now(),\n })\n }\n },\n [setError, throwError, observability, componentName, processError],\n )\n\n return {\n baseSubmitHandler,\n error,\n setError,\n }\n}\n"],"names":["useBaseSubmit","componentName","error","setError","useState","throwError","useAsyncError","observability","useObservability","processError","useCallback","caughtError","sdkError","normalizeToSDKError","data","componentHandler","startTime","success","err","APIError","SDKValidationError","UnprocessableEntityError","GustoEmbeddedError","SDKInternalError","duration"],"mappings":";;;;;;;;AAWO,MAAMA,IAAgB,CAACC,MAA2B;AACvD,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAA0B,IAAI,GAClDC,IAAaC,EAAA,GACb,EAAE,eAAAC,EAAA,IAAkBC,EAAA,GAEpBC,IAAeC;AAAA,IACnB,CAACC,MAA4E;AAC3E,YAAMC,IAAWC,EAAoBF,CAAW;AAEhD,MAAAR,EAASS,CAAQ,GAEjBL,GAAe,UAAU,EAAE,GAAGK,GAAU,WAAW,KAAK,OAAO,eAAAX,GAAe;AAAA,IAChF;AAAA,IACA,CAACM,GAAeN,CAAa;AAAA,EAAA;AAwC/B,SAAO;AAAA,IACL,mBAtCwBS;AAAA,MACxB,OAAUI,GAASC,MAAuC;AACxD,cAAMC,IAAY,KAAK,IAAA;AACvB,QAAAb,EAAS,IAAI;AAEb,YAAIc,IAAU;AAEd,YAAI;AACF,gBAAMF,EAAiBD,CAAI,GAC3BG,IAAU;AAAA,QACZ,SAASC,GAAK;AACZ,UACEA,aAAeC,KACfD,aAAeE,KACfF,aAAeG,KACfH,aAAeI,KACfJ,aAAeK,IAEfd,EAAaS,CAAG,MACAA,CAAG;AAAA,QACvB,UAAA;AACE,gBAAMM,IAAW,KAAK,IAAA,IAAQR;AAC9B,UAAAT,GAAe,WAAW;AAAA,YACxB,MAAM;AAAA,YACN,OAAOiB;AAAA,YACP,MAAM;AAAA,YACN,MAAM;AAAA,cACJ,QAAQP,IAAU,YAAY;AAAA,cAC9B,GAAIhB,KAAiB,EAAE,WAAWA,EAAA;AAAA,YAAc;AAAA,YAElD,WAAW,KAAK,IAAA;AAAA,UAAI,CACrB;AAAA,QACH;AAAA,MACF;AAAA,MACA,CAACE,GAAUE,GAAYE,GAAeN,GAAeQ,CAAY;AAAA,IAAA;AAAA,IAKjE,OAAAP;AAAA,IACA,UAAAC;AAAA,EAAA;AAEJ;"}
@@ -2,8 +2,8 @@ import { jsx as i } from "react/jsx-runtime";
2
2
  import { useTranslation as e } from "react-i18next";
3
3
  import { useAssignSignatory as s, SignatoryAssignmentMode as o } from "./useAssignSignatory.js";
4
4
  import r from "./AssignSignatorySelection.module.scss.js";
5
- import "../../../shared/constants.js";
6
5
  import "classnames";
6
+ import "../../../shared/constants.js";
7
7
  import { RadioGroupField as a } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
8
8
  const S = () => {
9
9
  const { t: n } = e("Company.AssignSignatory"), { onSignatoryAssignmentModeChange: t } = s();
@@ -1,8 +1,8 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useTranslation as r } from "react-i18next";
3
3
  import { useCreateSignatory as s } from "./useCreateSignatory.js";
4
- import "../../../../shared/constants.js";
5
4
  import "classnames";
5
+ import "../../../../shared/constants.js";
6
6
  import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
7
  import { useComponentContext as e } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
8
  const C = () => {
@@ -7,7 +7,7 @@ import "../../../Base/useBase.js";
7
7
  import "@gusto/embedded-api/models/errors/apierror";
8
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/LocaleProvider/useLocale.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useTranslation as r } from "react-i18next";
3
3
  import { useInviteSignatory as s } from "./useInviteSignatory.js";
4
- import "../../../../shared/constants.js";
5
4
  import "classnames";
5
+ import "../../../../shared/constants.js";
6
6
  import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
7
  import { useComponentContext as e } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
8
  const d = () => {
@@ -7,7 +7,7 @@ import "../../../Base/useBase.js";
7
7
  import "@gusto/embedded-api/models/errors/apierror";
8
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/LocaleProvider/useLocale.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { useTranslation as l } from "react-i18next";
3
- import { SIGNATORY_TITLES as s } from "../../../shared/constants.js";
4
3
  import "classnames";
4
+ import { SIGNATORY_TITLES as s } from "../../../shared/constants.js";
5
5
  import { SelectField as n } from "../../Common/Fields/SelectField/SelectField.js";
6
6
  const T = () => {
7
7
  const { t } = l("Company.AssignSignatory"), e = Object.entries(s).map(([i, o]) => ({
@@ -7,7 +7,7 @@ import "../../Base/useBase.js";
7
7
  import "@gusto/embedded-api/models/errors/apierror";
8
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
12
  import "dompurify";
13
13
  import "../../../contexts/LocaleProvider/useLocale.js";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import { useTranslation as s } from "react-i18next";
3
3
  import { useBankAccountForm as m } from "./context.js";
4
- import { componentEvents as a } from "../../../../shared/constants.js";
5
4
  import "classnames";
5
+ import { componentEvents as a } from "../../../../shared/constants.js";
6
6
  import { ActionsLayout as u } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
7
  import { useComponentContext as p } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
8
  function b() {
@@ -7,7 +7,7 @@ import "../../../Base/useBase.js";
7
7
  import "@gusto/embedded-api/models/errors/apierror";
8
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/LocaleProvider/useLocale.js";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { useTranslation as e } from "react-i18next";
3
3
  import { useBankAccount as a } from "./context.js";
4
- import "../../../../shared/constants.js";
5
4
  import "classnames";
5
+ import "../../../../shared/constants.js";
6
6
  import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
7
  import { useComponentContext as s } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
8
  function k() {
@@ -1,8 +1,8 @@
1
1
  import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
2
  import { useTranslation as c } from "react-i18next";
3
3
  import { useBankAccountVerify as e } from "./context.js";
4
- import "../../../../shared/constants.js";
5
4
  import "classnames";
5
+ import "../../../../shared/constants.js";
6
6
  import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
7
  import { useComponentContext as m } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
8
  function k() {
@@ -1,8 +1,8 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useTranslation as m } from "react-i18next";
3
3
  import { useDocumentList as e } from "./useDocumentList.js";
4
- import "../../../../shared/constants.js";
5
4
  import "classnames";
5
+ import "../../../../shared/constants.js";
6
6
  import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
7
  import { useComponentContext as c } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
8
  function h({ continueCtaLabel: t }) {
@@ -3,10 +3,10 @@ import { useCompanyFormsGetAllSuspense as S } from "@gusto/embedded-api/react-qu
3
3
  import { useSignatoriesListSuspense as C } from "@gusto/embedded-api/react-query/signatoriesList";
4
4
  import { Head as y } from "./Head.js";
5
5
  import { List as F } from "./List.js";
6
- import { ManageSignatories as L } from "./ManageSignatories.js";
7
- import { Actions as O } from "./Actions.js";
8
- import { DocumentListProvider as _ } from "./useDocumentList.js";
9
- import { useComponentDictionary as D, useI18n as M } from "../../../../i18n/I18n.js";
6
+ import { ManageSignatories as O } from "./ManageSignatories.js";
7
+ import { Actions as _ } from "./Actions.js";
8
+ import { DocumentListProvider as D } from "./useDocumentList.js";
9
+ import { useComponentDictionary as L, useI18n as M } from "../../../../i18n/I18n.js";
10
10
  import { BaseComponent as R } from "../../../Base/Base.js";
11
11
  import { useBase as A } from "../../../Base/useBase.js";
12
12
  import { Flex as E } from "../../../Common/Flex/Flex.js";
@@ -16,9 +16,9 @@ function J(n) {
16
16
  return /* @__PURE__ */ o(R, { ...n, children: /* @__PURE__ */ o(N, { ...n, children: n.children }) });
17
17
  }
18
18
  function N({ companyId: n, signatoryId: i, className: m, children: s, dictionary: a }) {
19
- D("Company.DocumentList", a), M("Company.DocumentList");
19
+ L("Company.DocumentList", a), M("Company.DocumentList");
20
20
  const { onEvent: t } = A(), {
21
- data: { formList: c },
21
+ data: { forms: c },
22
22
  error: u
23
23
  } = S({
24
24
  companyId: n
@@ -28,7 +28,7 @@ function N({ companyId: n, signatoryId: i, className: m, children: s, dictionary
28
28
  companyUuid: n
29
29
  }), r = l[0], f = !!i && r?.uuid === i;
30
30
  return /* @__PURE__ */ o("section", { className: m, children: /* @__PURE__ */ o(
31
- _,
31
+ D,
32
32
  {
33
33
  value: {
34
34
  companyForms: p,
@@ -47,9 +47,9 @@ function N({ companyId: n, signatoryId: i, className: m, children: s, dictionary
47
47
  },
48
48
  children: /* @__PURE__ */ o(E, { flexDirection: "column", gap: 32, children: s || /* @__PURE__ */ g(h, { children: [
49
49
  /* @__PURE__ */ o(y, {}),
50
- /* @__PURE__ */ o(L, {}),
50
+ /* @__PURE__ */ o(O, {}),
51
51
  /* @__PURE__ */ o(F, {}),
52
- /* @__PURE__ */ o(O, {})
52
+ /* @__PURE__ */ o(_, {})
53
53
  ] }) })
54
54
  }
55
55
  ) });
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/DocumentList.tsx"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { useCompanyFormsGetAllSuspense } from '@gusto/embedded-api/react-query/companyFormsGetAll'\nimport { useSignatoriesListSuspense } from '@gusto/embedded-api/react-query/signatoriesList'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { ManageSignatories } from './ManageSignatories'\nimport { Actions } from './Actions'\nimport { DocumentListProvider } from './useDocumentList'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\n\ninterface DocumentListProps extends BaseComponentInterface<'Company.DocumentList'> {\n companyId: string\n signatoryId?: string\n}\n\nexport function DocumentList(props: DocumentListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, signatoryId, className, children, dictionary }: DocumentListProps) {\n useComponentDictionary('Company.DocumentList', dictionary)\n useI18n('Company.DocumentList')\n const { onEvent } = useBase()\n\n const {\n data: { formList },\n error: documentListError,\n } = useCompanyFormsGetAllSuspense({\n companyId,\n })\n const companyForms = formList!\n\n const {\n data: { signatories: signatoryList },\n } = useSignatoriesListSuspense({\n companyUuid: companyId,\n })\n const signatories = signatoryList!\n\n // For now, this will only ever have one entry for the current signatory since companies can\n // only have one signatory. If that changes in the future, this UX will need to be revisited.\n const signatory = signatories[0]\n const isSelfSignatory = !!signatoryId && signatory?.uuid === signatoryId\n\n const handleRequestFormToSign = (form: FormSchema) => {\n onEvent(companyEvents.COMPANY_VIEW_FORM_TO_SIGN, form)\n }\n\n const handleChangeSignatory = () => {\n onEvent(companyEvents.COMPANY_FORM_EDIT_SIGNATORY, signatory)\n }\n\n const handleContinue = () => {\n onEvent(companyEvents.COMPANY_FORMS_DONE)\n }\n\n return (\n <section className={className}>\n <DocumentListProvider\n value={{\n companyForms,\n documentListError,\n handleRequestFormToSign,\n handleChangeSignatory,\n handleContinue,\n isSelfSignatory,\n signatory,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <ManageSignatories />\n <List />\n <Actions />\n </>\n )}\n </Flex>\n </DocumentListProvider>\n </section>\n )\n}\n"],"names":["DocumentList","props","jsx","BaseComponent","Root","companyId","signatoryId","className","children","dictionary","useComponentDictionary","useI18n","onEvent","useBase","formList","documentListError","useCompanyFormsGetAllSuspense","companyForms","signatoryList","useSignatoriesListSuspense","signatory","isSelfSignatory","DocumentListProvider","form","companyEvents","Flex","jsxs","Fragment","Head","ManageSignatories","List","Actions"],"mappings":";;;;;;;;;;;;;;AAmBO,SAASA,EAAaC,GAA0B;AACrD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,WAAAC,GAAW,aAAAC,GAAa,WAAAC,GAAW,UAAAC,GAAU,YAAAC,KAAiC;AAC5F,EAAAC,EAAuB,wBAAwBD,CAAU,GACzDE,EAAQ,sBAAsB;AAC9B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd;AAAA,IACJ,MAAM,EAAE,UAAAC,EAAA;AAAA,IACR,OAAOC;AAAA,EAAA,IACLC,EAA8B;AAAA,IAChC,WAAAX;AAAA,EAAA,CACD,GACKY,IAAeH,GAEf;AAAA,IACJ,MAAM,EAAE,aAAaI,EAAA;AAAA,EAAc,IACjCC,EAA2B;AAAA,IAC7B,aAAad;AAAA,EAAA,CACd,GAKKe,IAJcF,EAIU,CAAC,GACzBG,IAAkB,CAAC,CAACf,KAAec,GAAW,SAASd;AAc7D,SACE,gBAAAJ,EAAC,aAAQ,WAAAK,GACP,UAAA,gBAAAL;AAAA,IAACoB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,cAAAL;AAAA,QACA,mBAAAF;AAAA,QACA,yBAlBwB,CAACQ,MAAqB;AACpD,UAAAX,EAAQY,EAAc,2BAA2BD,CAAI;AAAA,QACvD;AAAA,QAiBQ,uBAfsB,MAAM;AAClC,UAAAX,EAAQY,EAAc,6BAA6BJ,CAAS;AAAA,QAC9D;AAAA,QAcQ,gBAZe,MAAM;AAC3B,UAAAR,EAAQY,EAAc,kBAAkB;AAAA,QAC1C;AAAA,QAWQ,iBAAAH;AAAA,QACA,WAAAD;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAlB,EAACuB,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAjB,KAGC,gBAAAkB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAzB,EAAC0B,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAkB;AAAA,0BAClBC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"DocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/DocumentList.tsx"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { useCompanyFormsGetAllSuspense } from '@gusto/embedded-api/react-query/companyFormsGetAll'\nimport { useSignatoriesListSuspense } from '@gusto/embedded-api/react-query/signatoriesList'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { ManageSignatories } from './ManageSignatories'\nimport { Actions } from './Actions'\nimport { DocumentListProvider } from './useDocumentList'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\n\ninterface DocumentListProps extends BaseComponentInterface<'Company.DocumentList'> {\n companyId: string\n signatoryId?: string\n}\n\nexport function DocumentList(props: DocumentListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, signatoryId, className, children, dictionary }: DocumentListProps) {\n useComponentDictionary('Company.DocumentList', dictionary)\n useI18n('Company.DocumentList')\n const { onEvent } = useBase()\n\n const {\n data: { forms },\n error: documentListError,\n } = useCompanyFormsGetAllSuspense({\n companyId,\n })\n const companyForms = forms!\n\n const {\n data: { signatories: signatoryList },\n } = useSignatoriesListSuspense({\n companyUuid: companyId,\n })\n const signatories = signatoryList!\n\n // For now, this will only ever have one entry for the current signatory since companies can\n // only have one signatory. If that changes in the future, this UX will need to be revisited.\n const signatory = signatories[0]\n const isSelfSignatory = !!signatoryId && signatory?.uuid === signatoryId\n\n const handleRequestFormToSign = (form: FormSchema) => {\n onEvent(companyEvents.COMPANY_VIEW_FORM_TO_SIGN, form)\n }\n\n const handleChangeSignatory = () => {\n onEvent(companyEvents.COMPANY_FORM_EDIT_SIGNATORY, signatory)\n }\n\n const handleContinue = () => {\n onEvent(companyEvents.COMPANY_FORMS_DONE)\n }\n\n return (\n <section className={className}>\n <DocumentListProvider\n value={{\n companyForms,\n documentListError,\n handleRequestFormToSign,\n handleChangeSignatory,\n handleContinue,\n isSelfSignatory,\n signatory,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <ManageSignatories />\n <List />\n <Actions />\n </>\n )}\n </Flex>\n </DocumentListProvider>\n </section>\n )\n}\n"],"names":["DocumentList","props","jsx","BaseComponent","Root","companyId","signatoryId","className","children","dictionary","useComponentDictionary","useI18n","onEvent","useBase","forms","documentListError","useCompanyFormsGetAllSuspense","companyForms","signatoryList","useSignatoriesListSuspense","signatory","isSelfSignatory","DocumentListProvider","form","companyEvents","Flex","jsxs","Fragment","Head","ManageSignatories","List","Actions"],"mappings":";;;;;;;;;;;;;;AAmBO,SAASA,EAAaC,GAA0B;AACrD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,WAAAC,GAAW,aAAAC,GAAa,WAAAC,GAAW,UAAAC,GAAU,YAAAC,KAAiC;AAC5F,EAAAC,EAAuB,wBAAwBD,CAAU,GACzDE,EAAQ,sBAAsB;AAC9B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd;AAAA,IACJ,MAAM,EAAE,OAAAC,EAAA;AAAA,IACR,OAAOC;AAAA,EAAA,IACLC,EAA8B;AAAA,IAChC,WAAAX;AAAA,EAAA,CACD,GACKY,IAAeH,GAEf;AAAA,IACJ,MAAM,EAAE,aAAaI,EAAA;AAAA,EAAc,IACjCC,EAA2B;AAAA,IAC7B,aAAad;AAAA,EAAA,CACd,GAKKe,IAJcF,EAIU,CAAC,GACzBG,IAAkB,CAAC,CAACf,KAAec,GAAW,SAASd;AAc7D,SACE,gBAAAJ,EAAC,aAAQ,WAAAK,GACP,UAAA,gBAAAL;AAAA,IAACoB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,cAAAL;AAAA,QACA,mBAAAF;AAAA,QACA,yBAlBwB,CAACQ,MAAqB;AACpD,UAAAX,EAAQY,EAAc,2BAA2BD,CAAI;AAAA,QACvD;AAAA,QAiBQ,uBAfsB,MAAM;AAClC,UAAAX,EAAQY,EAAc,6BAA6BJ,CAAS;AAAA,QAC9D;AAAA,QAcQ,gBAZe,MAAM;AAC3B,UAAAR,EAAQY,EAAc,kBAAkB;AAAA,QAC1C;AAAA,QAWQ,iBAAAH;AAAA,QACA,WAAAD;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAlB,EAACuB,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAjB,KAGC,gBAAAkB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAzB,EAAC0B,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAkB;AAAA,0BAClBC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -7,7 +7,7 @@ import "../../../Base/useBase.js";
7
7
  import "@gusto/embedded-api/models/errors/apierror";
8
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/LocaleProvider/useLocale.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useTranslation as e } from "react-i18next";
3
3
  import { useFederalTaxes as i } from "./useFederalTaxes.js";
4
- import "../../../shared/constants.js";
5
4
  import "classnames";
5
+ import "../../../shared/constants.js";
6
6
  import { ActionsLayout as s } from "../../Common/ActionsLayout/ActionsLayout.js";
7
7
  import { useComponentContext as m } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
8
  const x = () => {
@@ -9,7 +9,7 @@ import "../../Base/useBase.js";
9
9
  import "@gusto/embedded-api/models/errors/apierror";
10
10
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
11
11
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
12
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
12
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
13
13
  import "@gusto/embedded-api/models/errors/httpclienterrors";
14
14
  import "dompurify";
15
15
  import "../../../contexts/LocaleProvider/useLocale.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { useTranslation as i } from "react-i18next";
3
3
  import { useIndustryApiState as s } from "./Context.js";
4
- import "../../../shared/constants.js";
5
4
  import "classnames";
5
+ import "../../../shared/constants.js";
6
6
  import { ActionsLayout as m } from "../../Common/ActionsLayout/ActionsLayout.js";
7
7
  import { useComponentContext as e } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
8
  const C = () => {
@@ -7,7 +7,7 @@ import "../../Base/useBase.js";
7
7
  import "@gusto/embedded-api/models/errors/apierror";
8
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
12
  import "dompurify";
13
13
  import "../../../contexts/LocaleProvider/useLocale.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { useTranslation as e } from "react-i18next";
3
3
  import { useIndustryItems as m } from "./Context.js";
4
- import "../../../shared/constants.js";
5
4
  import "classnames";
5
+ import "../../../shared/constants.js";
6
6
  import { ComboBoxField as i } from "../../Common/Fields/ComboBoxField/ComboBoxField.js";
7
7
  const c = () => {
8
8
  const { t: o } = e("Company.Industry"), { items: r } = m();
@@ -1,8 +1,8 @@
1
1
  import { jsxs as r, jsx as n } from "react/jsx-runtime";
2
2
  import { useTranslation as a } from "react-i18next";
3
3
  import { useLocationsForm as e } from "./useLocationForm.js";
4
- import "../../../../shared/constants.js";
5
4
  import "classnames";
5
+ import "../../../../shared/constants.js";
6
6
  import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
7
  import { useComponentContext as c } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
8
  const x = () => {
@@ -7,7 +7,7 @@ import "../../../Base/useBase.js";
7
7
  import "@gusto/embedded-api/models/errors/apierror";
8
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/LocaleProvider/useLocale.js";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
2
  import { useTranslation as s } from "react-i18next";
3
3
  import { useLocationsList as a } from "./useLocationsList.js";
4
- import "../../../../shared/constants.js";
5
4
  import "classnames";
5
+ import "../../../../shared/constants.js";
6
6
  import { ActionsLayout as e } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
7
  import { useComponentContext as m } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
8
  function h() {
@@ -3,8 +3,8 @@ import { useTranslation as P } from "react-i18next";
3
3
  import { useLocationsList as y } from "./useLocationsList.js";
4
4
  import b from "./List.module.scss.js";
5
5
  import x from "../../../../assets/icons/pencil.svg.js";
6
- import "../../../../shared/constants.js";
7
6
  import "classnames";
7
+ import "../../../../shared/constants.js";
8
8
  import { EmptyData as T } from "../../../Common/EmptyData/EmptyData.js";
9
9
  import { useComponentContext as A } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
10
10
  import { getStreet as k, getCityStateZip as D } from "../../../../helpers/formattedStrings.js";
@@ -7,7 +7,7 @@ import "../../../Base/useBase.js";
7
7
  import "@gusto/embedded-api/models/errors/apierror";
8
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
12
  import "dompurify";
13
13
  import "../../../../contexts/LocaleProvider/useLocale.js";
@@ -7,7 +7,7 @@ import "../../Base/useBase.js";
7
7
  import "@gusto/embedded-api/models/errors/apierror";
8
8
  import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
10
+ import "@gusto/embedded-api/models/errors/unprocessableentityerror";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
12
  import "dompurify";
13
13
  import "../../../contexts/LocaleProvider/useLocale.js";
@@ -1,8 +1,8 @@
1
- import { PayScheduleCreateUpdate } from '@gusto/embedded-api/models/components/payschedulecreateupdate';
1
+ import { PayScheduleFormData } from './shared/usePayScheduleForm/payScheduleSchema';
2
2
  import { BaseComponentInterface, CommonComponentInterface } from '../../Base';
3
3
  import { RequireAtLeastOne } from '../../../types/Helpers';
4
4
  type PayScheduleDefaultFields = {
5
- [K in keyof Pick<PayScheduleCreateUpdate, 'anchorPayDate' | 'anchorEndOfPayPeriod' | 'day1' | 'day2' | 'customName' | 'frequency'>]: NonNullable<PayScheduleCreateUpdate[K]>;
5
+ [K in keyof Pick<PayScheduleFormData, 'anchorPayDate' | 'anchorEndOfPayPeriod' | 'day1' | 'day2' | 'customName' | 'frequency'>]: NonNullable<PayScheduleFormData[K]>;
6
6
  };
7
7
  export type PayScheduleDefaultValues = RequireAtLeastOne<Partial<PayScheduleDefaultFields>>;
8
8
  interface PayScheduleProps extends CommonComponentInterface<'Company.PaySchedule'> {
@@ -8,19 +8,19 @@ import { BaseComponent as f } from "../../Base/Base.js";
8
8
  import { useBase as y } from "../../Base/useBase.js";
9
9
  import { useI18n as C, useComponentDictionary as P } from "../../../i18n/I18n.js";
10
10
  import { Flow as x } from "../../Flow/Flow.js";
11
- const L = ({
11
+ const G = ({
12
12
  companyId: e,
13
13
  defaultValues: o,
14
14
  dictionary: t,
15
15
  ...n
16
16
  }) => (C("Company.PaySchedule"), P("Company.PaySchedule", t), /* @__PURE__ */ r(f, { ...n, children: /* @__PURE__ */ r(M, { companyId: e, defaultValues: o }) }));
17
17
  function M({ companyId: e, defaultValues: o }) {
18
- const { onEvent: t } = y(), { data: n } = p({ companyId: e }), m = (n.paySchedules?.length ?? 0) > 0, c = m ? "listSchedules" : "addSchedule", i = m ? S : d, a = u(
18
+ const { onEvent: t } = y(), { data: n } = p({ companyId: e }), m = (n.payScheduleShowResponse?.length ?? 0) > 0, c = m ? "listSchedules" : "addSchedule", i = m ? S : d, s = u(
19
19
  () => l(
20
20
  c,
21
21
  h,
22
- (s) => ({
23
- ...s,
22
+ (a) => ({
23
+ ...a,
24
24
  component: i,
25
25
  companyId: e,
26
26
  defaultValues: o
@@ -28,9 +28,9 @@ function M({ companyId: e, defaultValues: o }) {
28
28
  ),
29
29
  [e, o, c, i]
30
30
  );
31
- return /* @__PURE__ */ r(x, { machine: a, onEvent: t });
31
+ return /* @__PURE__ */ r(x, { machine: s, onEvent: t });
32
32
  }
33
33
  export {
34
- L as PaySchedule
34
+ G as PaySchedule
35
35
  };
36
36
  //# sourceMappingURL=PaySchedule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaySchedule.js","sources":["../../../../src/components/Company/PaySchedule/PaySchedule.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { createMachine } from 'robot3'\nimport { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api/react-query/paySchedulesGetAll'\nimport type { PayScheduleCreateUpdate } from '@gusto/embedded-api/models/components/payschedulecreateupdate'\nimport { payScheduleStateMachine } from './payScheduleStateMachine'\nimport type { PayScheduleContextInterface } from './PayScheduleComponents'\nimport { PayScheduleFormContextual, PayScheduleListContextual } from './PayScheduleComponents'\nimport type { BaseComponentInterface, CommonComponentInterface } from '@/components/Base'\nimport { BaseComponent, useBase } from '@/components/Base'\nimport { useI18n } from '@/i18n'\nimport { useComponentDictionary } from '@/i18n/I18n'\nimport { Flow } from '@/components/Flow/Flow'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\ntype PayScheduleDefaultFields = {\n [K in keyof Pick<\n PayScheduleCreateUpdate,\n 'anchorPayDate' | 'anchorEndOfPayPeriod' | 'day1' | 'day2' | 'customName' | 'frequency'\n >]: NonNullable<PayScheduleCreateUpdate[K]>\n}\n\nexport type PayScheduleDefaultValues = RequireAtLeastOne<Partial<PayScheduleDefaultFields>>\n\ninterface PayScheduleProps extends CommonComponentInterface<'Company.PaySchedule'> {\n companyId: string\n defaultValues?: PayScheduleDefaultValues\n}\n\nexport const PaySchedule = ({\n companyId,\n defaultValues,\n dictionary,\n ...props\n}: PayScheduleProps & BaseComponentInterface) => {\n useI18n('Company.PaySchedule')\n useComponentDictionary('Company.PaySchedule', dictionary)\n return (\n <BaseComponent {...props}>\n <Root companyId={companyId} defaultValues={defaultValues} />\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, defaultValues }: PayScheduleProps) {\n const { onEvent } = useBase()\n const { data: paySchedules } = usePaySchedulesGetAllSuspense({ companyId })\n\n const hasSchedules = (paySchedules.paySchedules?.length ?? 0) > 0\n const initialState = hasSchedules ? 'listSchedules' : 'addSchedule'\n const initialComponent = hasSchedules ? PayScheduleListContextual : PayScheduleFormContextual\n\n const machine = useMemo(\n () =>\n createMachine(\n initialState,\n payScheduleStateMachine,\n (initialContext: PayScheduleContextInterface) => ({\n ...initialContext,\n component: initialComponent,\n companyId,\n defaultValues,\n }),\n ),\n [companyId, defaultValues, initialState, initialComponent],\n )\n\n return <Flow machine={machine} onEvent={onEvent} />\n}\n"],"names":["PaySchedule","companyId","defaultValues","dictionary","props","useI18n","useComponentDictionary","jsx","BaseComponent","Root","onEvent","useBase","paySchedules","usePaySchedulesGetAllSuspense","hasSchedules","initialState","initialComponent","PayScheduleListContextual","PayScheduleFormContextual","machine","useMemo","createMachine","payScheduleStateMachine","initialContext","Flow"],"mappings":";;;;;;;;;;AA4BO,MAAMA,IAAc,CAAC;AAAA,EAC1B,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,YAAAC;AAAA,EACA,GAAGC;AACL,OACEC,EAAQ,qBAAqB,GAC7BC,EAAuB,uBAAuBH,CAAU,GAEtD,gBAAAI,EAACC,KAAe,GAAGJ,GACjB,4BAACK,GAAA,EAAK,WAAAR,GAAsB,eAAAC,GAA8B,EAAA,CAC5D;AAIJ,SAASO,EAAK,EAAE,WAAAR,GAAW,eAAAC,KAAmC;AAC5D,QAAM,EAAE,SAAAQ,EAAA,IAAYC,EAAA,GACd,EAAE,MAAMC,EAAA,IAAiBC,EAA8B,EAAE,WAAAZ,GAAW,GAEpEa,KAAgBF,EAAa,cAAc,UAAU,KAAK,GAC1DG,IAAeD,IAAe,kBAAkB,eAChDE,IAAmBF,IAAeG,IAA4BC,GAE9DC,IAAUC;AAAA,IACd,MACEC;AAAA,MACEN;AAAA,MACAO;AAAA,MACA,CAACC,OAAiD;AAAA,QAChD,GAAGA;AAAA,QACH,WAAWP;AAAA,QACX,WAAAf;AAAA,QACA,eAAAC;AAAA,MAAA;AAAA,IACF;AAAA,IAEJ,CAACD,GAAWC,GAAea,GAAcC,CAAgB;AAAA,EAAA;AAG3D,SAAO,gBAAAT,EAACiB,GAAA,EAAK,SAAAL,GAAkB,SAAAT,EAAA,CAAkB;AACnD;"}
1
+ {"version":3,"file":"PaySchedule.js","sources":["../../../../src/components/Company/PaySchedule/PaySchedule.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { createMachine } from 'robot3'\nimport { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api/react-query/paySchedulesGetAll'\nimport { payScheduleStateMachine } from './payScheduleStateMachine'\nimport type { PayScheduleContextInterface } from './PayScheduleComponents'\nimport { PayScheduleFormContextual, PayScheduleListContextual } from './PayScheduleComponents'\nimport type { PayScheduleFormData } from './shared/usePayScheduleForm/payScheduleSchema'\nimport type { BaseComponentInterface, CommonComponentInterface } from '@/components/Base'\nimport { BaseComponent, useBase } from '@/components/Base'\nimport { useI18n } from '@/i18n'\nimport { useComponentDictionary } from '@/i18n/I18n'\nimport { Flow } from '@/components/Flow/Flow'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\ntype PayScheduleDefaultFields = {\n [K in keyof Pick<\n PayScheduleFormData,\n 'anchorPayDate' | 'anchorEndOfPayPeriod' | 'day1' | 'day2' | 'customName' | 'frequency'\n >]: NonNullable<PayScheduleFormData[K]>\n}\n\nexport type PayScheduleDefaultValues = RequireAtLeastOne<Partial<PayScheduleDefaultFields>>\n\ninterface PayScheduleProps extends CommonComponentInterface<'Company.PaySchedule'> {\n companyId: string\n defaultValues?: PayScheduleDefaultValues\n}\n\nexport const PaySchedule = ({\n companyId,\n defaultValues,\n dictionary,\n ...props\n}: PayScheduleProps & BaseComponentInterface) => {\n useI18n('Company.PaySchedule')\n useComponentDictionary('Company.PaySchedule', dictionary)\n return (\n <BaseComponent {...props}>\n <Root companyId={companyId} defaultValues={defaultValues} />\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, defaultValues }: PayScheduleProps) {\n const { onEvent } = useBase()\n const { data: paySchedules } = usePaySchedulesGetAllSuspense({ companyId })\n\n const hasSchedules = (paySchedules.payScheduleShowResponse?.length ?? 0) > 0\n const initialState = hasSchedules ? 'listSchedules' : 'addSchedule'\n const initialComponent = hasSchedules ? PayScheduleListContextual : PayScheduleFormContextual\n\n const machine = useMemo(\n () =>\n createMachine(\n initialState,\n payScheduleStateMachine,\n (initialContext: PayScheduleContextInterface) => ({\n ...initialContext,\n component: initialComponent,\n companyId,\n defaultValues,\n }),\n ),\n [companyId, defaultValues, initialState, initialComponent],\n )\n\n return <Flow machine={machine} onEvent={onEvent} />\n}\n"],"names":["PaySchedule","companyId","defaultValues","dictionary","props","useI18n","useComponentDictionary","jsx","BaseComponent","Root","onEvent","useBase","paySchedules","usePaySchedulesGetAllSuspense","hasSchedules","initialState","initialComponent","PayScheduleListContextual","PayScheduleFormContextual","machine","useMemo","createMachine","payScheduleStateMachine","initialContext","Flow"],"mappings":";;;;;;;;;;AA4BO,MAAMA,IAAc,CAAC;AAAA,EAC1B,WAAAC;AAAA,EACA,eAAAC;AAAA,EACA,YAAAC;AAAA,EACA,GAAGC;AACL,OACEC,EAAQ,qBAAqB,GAC7BC,EAAuB,uBAAuBH,CAAU,GAEtD,gBAAAI,EAACC,KAAe,GAAGJ,GACjB,4BAACK,GAAA,EAAK,WAAAR,GAAsB,eAAAC,GAA8B,EAAA,CAC5D;AAIJ,SAASO,EAAK,EAAE,WAAAR,GAAW,eAAAC,KAAmC;AAC5D,QAAM,EAAE,SAAAQ,EAAA,IAAYC,EAAA,GACd,EAAE,MAAMC,EAAA,IAAiBC,EAA8B,EAAE,WAAAZ,GAAW,GAEpEa,KAAgBF,EAAa,yBAAyB,UAAU,KAAK,GACrEG,IAAeD,IAAe,kBAAkB,eAChDE,IAAmBF,IAAeG,IAA4BC,GAE9DC,IAAUC;AAAA,IACd,MACEC;AAAA,MACEN;AAAA,MACAO;AAAA,MACA,CAACC,OAAiD;AAAA,QAChD,GAAGA;AAAA,QACH,WAAWP;AAAA,QACX,WAAAf;AAAA,QACA,eAAAC;AAAA,MAAA;AAAA,IACF;AAAA,IAEJ,CAACD,GAAWC,GAAea,GAAcC,CAAgB;AAAA,EAAA;AAG3D,SAAO,gBAAAT,EAACiB,GAAA,EAAK,SAAAL,GAAkB,SAAAT,EAAA,CAAkB;AACnD;"}
@@ -1,8 +1,8 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
2
  import { useTranslation as f, Trans as m } from "react-i18next";
3
3
  import { usePaySchedulesGetAllSuspense as S } from "@gusto/embedded-api/react-query/paySchedulesGetAll";
4
4
  import d from "./PayScheduleList.module.scss.js";
5
- import { Flex as o } from "../../Common/Flex/Flex.js";
5
+ import { Flex as r } from "../../Common/Flex/Flex.js";
6
6
  import "classnames";
7
7
  import { componentEvents as s } from "../../../shared/constants.js";
8
8
  import { ActionsLayout as C } from "../../Common/ActionsLayout/ActionsLayout.js";
@@ -14,7 +14,7 @@ import { useDataView as P } from "../../Common/DataView/useDataView.js";
14
14
  import { DataView as x } from "../../Common/DataView/DataView.js";
15
15
  function F({ companyId: u, onEvent: c }) {
16
16
  const { t } = f("Company.PaySchedule"), i = g(), { data: p } = S({ companyId: u }), h = P({
17
- data: p.paySchedules || [],
17
+ data: p.payScheduleShowResponse || [],
18
18
  columns: [
19
19
  {
20
20
  title: t("payScheduleList.name"),
@@ -24,7 +24,7 @@ function F({ companyId: u, onEvent: c }) {
24
24
  let a = l ? n.name : n.customName;
25
25
  a && a.length > 1 ? a = a.charAt(0).toUpperCase() + a.slice(1) : a = n.customName;
26
26
  const y = n.customName;
27
- return /* @__PURE__ */ e(o, { flexDirection: "column", gap: 0, children: /* @__PURE__ */ r("div", { className: d.content, children: [
27
+ return /* @__PURE__ */ e(r, { flexDirection: "column", gap: 0, children: /* @__PURE__ */ o("div", { className: d.content, children: [
28
28
  /* @__PURE__ */ e("div", { children: a }),
29
29
  l && /* @__PURE__ */ e("div", { children: y })
30
30
  ] }) });
@@ -33,7 +33,7 @@ function F({ companyId: u, onEvent: c }) {
33
33
  {
34
34
  title: /* @__PURE__ */ e(D, { children: t("payScheduleList.active") }),
35
35
  key: "active",
36
- render: (n) => /* @__PURE__ */ e(o, { alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ e("div", { className: d.content, children: n.active ? /* @__PURE__ */ e(i.Badge, { status: "success", children: t("payScheduleList.active") }) : /* @__PURE__ */ e(i.Badge, { status: "info", children: t("payScheduleList.inactive") }) }) })
36
+ render: (n) => /* @__PURE__ */ e(r, { alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ e("div", { className: d.content, children: n.active ? /* @__PURE__ */ e(i.Badge, { status: "success", children: t("payScheduleList.active") }) : /* @__PURE__ */ e(i.Badge, { status: "info", children: t("payScheduleList.inactive") }) }) })
37
37
  }
38
38
  ],
39
39
  itemMenu: (n) => /* @__PURE__ */ e(
@@ -52,8 +52,8 @@ function F({ companyId: u, onEvent: c }) {
52
52
  }
53
53
  )
54
54
  });
55
- return /* @__PURE__ */ r(o, { flexDirection: "column", children: [
56
- /* @__PURE__ */ e(o, { justifyContent: "space-between", flexDirection: "column", gap: 4, children: /* @__PURE__ */ r("header", { children: [
55
+ return /* @__PURE__ */ o(r, { flexDirection: "column", children: [
56
+ /* @__PURE__ */ e(r, { justifyContent: "space-between", flexDirection: "column", gap: 4, children: /* @__PURE__ */ o("header", { children: [
57
57
  /* @__PURE__ */ e(i.Heading, { as: "h2", children: t("headings.pageTitle") }),
58
58
  /* @__PURE__ */ e(i.Text, { children: /* @__PURE__ */ e(
59
59
  m,
@@ -73,7 +73,7 @@ function F({ companyId: u, onEvent: c }) {
73
73
  ) })
74
74
  ] }) }),
75
75
  /* @__PURE__ */ e(x, { label: "test", ...h }),
76
- /* @__PURE__ */ r(C, { children: [
76
+ /* @__PURE__ */ o(C, { children: [
77
77
  /* @__PURE__ */ e(
78
78
  i.Button,
79
79
  {
@@ -1 +1 @@
1
- {"version":3,"file":"PayScheduleList.js","sources":["../../../../src/components/Company/PaySchedule/PayScheduleList.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api/react-query/paySchedulesGetAll'\nimport styles from './PayScheduleList.module.scss'\nimport { useDataView, DataView, Flex, VisuallyHidden, ActionsLayout } from '@/components/Common'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\nimport { componentEvents, type EventType } from '@/shared/constants'\nimport type { OnEventType } from '@/components/Base/useBase'\n\ninterface PayScheduleListProps {\n companyId: string\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport function PayScheduleList({ companyId, onEvent }: PayScheduleListProps) {\n const { t } = useTranslation('Company.PaySchedule')\n const Components = useComponentContext()\n\n const { data: paySchedules } = usePaySchedulesGetAllSuspense({ companyId })\n\n const dataViewProps = useDataView({\n data: paySchedules.paySchedules || [],\n columns: [\n {\n title: t('payScheduleList.name'),\n key: 'customName',\n render: schedule => {\n const hasName = !!schedule.name\n let displayName = hasName ? schedule.name : schedule.customName\n if (displayName && displayName.length > 1) {\n displayName = displayName.charAt(0).toUpperCase() + displayName.slice(1)\n } else {\n displayName = schedule.customName\n }\n const displayFrequency = schedule.customName\n return (\n <Flex flexDirection=\"column\" gap={0}>\n <div className={styles.content}>\n <div>{displayName}</div>\n {hasName && <div>{displayFrequency}</div>}\n </div>\n </Flex>\n )\n },\n },\n {\n title: <VisuallyHidden>{t('payScheduleList.active')}</VisuallyHidden>,\n key: 'active',\n render: schedule => (\n <Flex alignItems=\"center\" justifyContent=\"center\">\n <div className={styles.content}>\n {schedule.active ? (\n <Components.Badge status=\"success\">{t('payScheduleList.active')}</Components.Badge>\n ) : (\n <Components.Badge status=\"info\">{t('payScheduleList.inactive')}</Components.Badge>\n )}\n </div>\n </Flex>\n ),\n },\n ],\n itemMenu: schedule => (\n <HamburgerMenu\n triggerLabel=\"Actions\"\n items={[\n {\n label: t('payScheduleList.edit'),\n onClick: () => {\n onEvent(componentEvents.PAY_SCHEDULE_UPDATE, { uuid: schedule.uuid })\n },\n icon: <PencilSvg aria-hidden />,\n },\n ]}\n />\n ),\n })\n\n return (\n <Flex flexDirection=\"column\">\n <Flex justifyContent=\"space-between\" flexDirection=\"column\" gap={4}>\n <header>\n <Components.Heading as=\"h2\">{t('headings.pageTitle')}</Components.Heading>\n <Components.Text>\n <Trans\n i18nKey=\"listDescription\"\n t={t}\n components={{ ScheduleLink: <Components.Link /> }}\n />\n </Components.Text>\n <Components.Text>\n <Trans\n i18nKey=\"listDescription2\"\n t={t}\n components={{ PaymentLawLink: <Components.Link /> }}\n />\n </Components.Text>\n </header>\n </Flex>\n <DataView label=\"test\" {...dataViewProps} />\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n onClick={() => {\n onEvent(componentEvents.PAY_SCHEDULE_CREATE)\n }}\n >\n {t('addAnotherPayScheduleCta')}\n </Components.Button>\n <Components.Button\n variant=\"primary\"\n onClick={() => {\n onEvent(componentEvents.PAY_SCHEDULE_DONE)\n }}\n >\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n )\n}\n"],"names":["PayScheduleList","companyId","onEvent","useTranslation","Components","useComponentContext","paySchedules","usePaySchedulesGetAllSuspense","dataViewProps","useDataView","schedule","hasName","displayName","displayFrequency","jsx","Flex","jsxs","styles","VisuallyHidden","HamburgerMenu","componentEvents","PencilSvg","Trans","DataView","ActionsLayout"],"mappings":"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"}
1
+ {"version":3,"file":"PayScheduleList.js","sources":["../../../../src/components/Company/PaySchedule/PayScheduleList.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { usePaySchedulesGetAllSuspense } from '@gusto/embedded-api/react-query/paySchedulesGetAll'\nimport styles from './PayScheduleList.module.scss'\nimport { useDataView, DataView, Flex, VisuallyHidden, ActionsLayout } from '@/components/Common'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\nimport { componentEvents, type EventType } from '@/shared/constants'\nimport type { OnEventType } from '@/components/Base/useBase'\n\ninterface PayScheduleListProps {\n companyId: string\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport function PayScheduleList({ companyId, onEvent }: PayScheduleListProps) {\n const { t } = useTranslation('Company.PaySchedule')\n const Components = useComponentContext()\n\n const { data: paySchedules } = usePaySchedulesGetAllSuspense({ companyId })\n\n const dataViewProps = useDataView({\n data: paySchedules.payScheduleShowResponse || [],\n columns: [\n {\n title: t('payScheduleList.name'),\n key: 'customName',\n render: schedule => {\n const hasName = !!schedule.name\n let displayName = hasName ? schedule.name : schedule.customName\n if (displayName && displayName.length > 1) {\n displayName = displayName.charAt(0).toUpperCase() + displayName.slice(1)\n } else {\n displayName = schedule.customName\n }\n const displayFrequency = schedule.customName\n return (\n <Flex flexDirection=\"column\" gap={0}>\n <div className={styles.content}>\n <div>{displayName}</div>\n {hasName && <div>{displayFrequency}</div>}\n </div>\n </Flex>\n )\n },\n },\n {\n title: <VisuallyHidden>{t('payScheduleList.active')}</VisuallyHidden>,\n key: 'active',\n render: schedule => (\n <Flex alignItems=\"center\" justifyContent=\"center\">\n <div className={styles.content}>\n {schedule.active ? (\n <Components.Badge status=\"success\">{t('payScheduleList.active')}</Components.Badge>\n ) : (\n <Components.Badge status=\"info\">{t('payScheduleList.inactive')}</Components.Badge>\n )}\n </div>\n </Flex>\n ),\n },\n ],\n itemMenu: schedule => (\n <HamburgerMenu\n triggerLabel=\"Actions\"\n items={[\n {\n label: t('payScheduleList.edit'),\n onClick: () => {\n onEvent(componentEvents.PAY_SCHEDULE_UPDATE, { uuid: schedule.uuid })\n },\n icon: <PencilSvg aria-hidden />,\n },\n ]}\n />\n ),\n })\n\n return (\n <Flex flexDirection=\"column\">\n <Flex justifyContent=\"space-between\" flexDirection=\"column\" gap={4}>\n <header>\n <Components.Heading as=\"h2\">{t('headings.pageTitle')}</Components.Heading>\n <Components.Text>\n <Trans\n i18nKey=\"listDescription\"\n t={t}\n components={{ ScheduleLink: <Components.Link /> }}\n />\n </Components.Text>\n <Components.Text>\n <Trans\n i18nKey=\"listDescription2\"\n t={t}\n components={{ PaymentLawLink: <Components.Link /> }}\n />\n </Components.Text>\n </header>\n </Flex>\n <DataView label=\"test\" {...dataViewProps} />\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n onClick={() => {\n onEvent(componentEvents.PAY_SCHEDULE_CREATE)\n }}\n >\n {t('addAnotherPayScheduleCta')}\n </Components.Button>\n <Components.Button\n variant=\"primary\"\n onClick={() => {\n onEvent(componentEvents.PAY_SCHEDULE_DONE)\n }}\n >\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n </Flex>\n )\n}\n"],"names":["PayScheduleList","companyId","onEvent","useTranslation","Components","useComponentContext","paySchedules","usePaySchedulesGetAllSuspense","dataViewProps","useDataView","schedule","hasName","displayName","displayFrequency","jsx","Flex","jsxs","styles","VisuallyHidden","HamburgerMenu","componentEvents","PencilSvg","Trans","DataView","ActionsLayout"],"mappings":"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"}