@gusto/embedded-react-sdk 0.41.0 → 0.43.0

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 (427) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/assets/icons/house.svg.js +10 -0
  3. package/dist/assets/icons/house.svg.js.map +1 -0
  4. package/dist/assets/icons/search-lg.svg.js +10 -0
  5. package/dist/assets/icons/search-lg.svg.js.map +1 -0
  6. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +3 -1
  7. package/dist/components/Common/DataView/DataCards/DataCards.js +55 -45
  8. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  9. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +16 -10
  10. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  11. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +1 -1
  12. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
  13. package/dist/components/Common/EmptyData/EmptyData.d.ts +3 -0
  14. package/dist/components/Common/EmptyData/EmptyData.js +11 -11
  15. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  16. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +8 -6
  17. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  18. package/dist/components/Common/UI/Box/Box.module.scss.js +4 -4
  19. package/dist/components/Common/UI/ComboBox/ComboBox.d.ts +1 -1
  20. package/dist/components/Common/UI/ComboBox/ComboBox.js +26 -25
  21. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  22. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +5 -0
  23. package/dist/components/Common/UI/DatePicker/DatePicker.js +4 -4
  24. package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
  25. package/dist/components/Common/UI/Input/InputTypes.d.ts +1 -1
  26. package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
  27. package/dist/components/Common/UI/Menu/Menu.js +18 -17
  28. package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
  29. package/dist/components/Common/UI/Menu/MenuTypes.d.ts +5 -0
  30. package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
  31. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +1 -1
  32. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  33. package/dist/components/Common/UI/Select/Select.js +9 -9
  34. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  35. package/dist/components/Common/UI/TextInput/TextInput.js +37 -35
  36. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  37. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
  38. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  39. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -3
  40. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  41. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
  42. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  43. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
  44. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  45. package/dist/components/Company/AssignSignatory/TitleSelect.js +1 -1
  46. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +6 -6
  47. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +8 -9
  48. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  49. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +7 -8
  50. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  51. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
  52. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  53. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.d.ts +0 -1
  54. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +7 -8
  55. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  56. package/dist/components/Company/FederalTaxes/Actions.js +5 -6
  57. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  58. package/dist/components/Company/Industry/Actions.js +2 -3
  59. package/dist/components/Company/Industry/Actions.js.map +1 -1
  60. package/dist/components/Company/Industry/Edit.js +4 -5
  61. package/dist/components/Company/Industry/Edit.js.map +1 -1
  62. package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
  63. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  64. package/dist/components/Company/Locations/LocationForm/Form.d.ts +6 -1
  65. package/dist/components/Company/Locations/LocationForm/Form.js +29 -27
  66. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  67. package/dist/components/Company/Locations/LocationForm/LocationForm.js +59 -55
  68. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  69. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -7
  70. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  71. package/dist/components/Company/Locations/LocationsList/List.js +33 -33
  72. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  73. package/dist/components/Company/Locations/LocationsList/List.module.scss.js +8 -0
  74. package/dist/components/Company/Locations/LocationsList/List.module.scss.js.map +1 -0
  75. package/dist/components/Company/OnboardingFlow/OnboardingFlow.js +11 -15
  76. package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -1
  77. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js +37 -35
  78. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  79. package/dist/components/Company/PaySchedule/PayScheduleForm.js +87 -99
  80. package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
  81. package/dist/components/Company/PaySchedule/PayScheduleForm.module.scss.js +8 -10
  82. package/dist/components/Company/PaySchedule/PayScheduleForm.module.scss.js.map +1 -1
  83. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +11 -1
  84. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  85. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
  86. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  87. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
  88. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  89. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -6
  90. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  91. package/dist/components/Contractor/Address/Address.js +6 -6
  92. package/dist/components/Contractor/Address/Address.js.map +1 -1
  93. package/dist/components/Contractor/Address/Form.js +4 -4
  94. package/dist/components/Contractor/Address/Head.js +10 -8
  95. package/dist/components/Contractor/Address/Head.js.map +1 -1
  96. package/dist/components/Contractor/NewHireReport/NewHireReport.js +39 -39
  97. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  98. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js +13 -16
  99. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js.map +1 -1
  100. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js +61 -63
  101. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  102. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +9 -9
  103. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  104. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +14 -15
  105. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  106. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
  107. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.js +11 -11
  108. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlow.js.map +1 -1
  109. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +88 -111
  110. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  111. package/dist/components/Contractor/Profile/ContractorProfileForm.js +48 -49
  112. package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
  113. package/dist/components/Contractor/Submit/SubmitDone.js +14 -12
  114. package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
  115. package/dist/components/Employee/Compensation/Actions.js +1 -1
  116. package/dist/components/Employee/Compensation/List.js +22 -23
  117. package/dist/components/Employee/Compensation/List.js.map +1 -1
  118. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +2 -0
  119. package/dist/components/Employee/Dashboard/DashboardComponents.js +18 -6
  120. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  121. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +2 -0
  122. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +55 -4
  123. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  124. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +26 -26
  125. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  126. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -7
  127. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  128. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +0 -33
  129. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +129 -212
  130. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  131. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +79 -57
  132. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  133. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.d.ts +3 -4
  134. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.js.map +1 -1
  135. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/index.d.ts +2 -2
  136. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +0 -1
  137. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.js +33 -49
  138. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -1
  139. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.d.ts +12 -3
  140. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js +98 -98
  141. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  142. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeList.js.map +1 -0
  143. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -0
  144. package/dist/components/Employee/EmployeeList/onboarding/EmployeeList.js.map +1 -0
  145. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -0
  146. package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -0
  147. package/dist/components/Employee/FederalTaxes/Actions.js +6 -7
  148. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  149. package/dist/components/Employee/FederalTaxes/FederalForm.js +4 -5
  150. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  151. package/dist/components/Employee/HomeAddress/management/HomeAddress.d.ts +6 -0
  152. package/dist/components/Employee/HomeAddress/management/HomeAddress.js +48 -0
  153. package/dist/components/Employee/HomeAddress/management/HomeAddress.js.map +1 -0
  154. package/dist/components/Employee/HomeAddress/management/HomeAddressView.d.ts +18 -0
  155. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js +477 -0
  156. package/dist/components/Employee/HomeAddress/management/HomeAddressView.js.map +1 -0
  157. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.d.ts +8 -0
  158. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js +36 -0
  159. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.js.map +1 -0
  160. package/dist/components/Employee/HomeAddress/management/getPendingFutureHomeAddress.test.d.ts +1 -0
  161. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.d.ts +45 -0
  162. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +112 -0
  163. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -0
  164. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +1 -1
  165. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  166. package/dist/components/Employee/PaymentMethod/Actions.js +5 -6
  167. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  168. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +1 -1
  169. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +4 -4
  170. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
  171. package/dist/components/Employee/PaymentMethod/Split.js +23 -22
  172. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  173. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +1 -1
  174. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  175. package/dist/components/Employee/Profile/AdminProfile.js +94 -100
  176. package/dist/components/Employee/Profile/AdminProfile.js.map +1 -1
  177. package/dist/components/Employee/Profile/EmployeeProfile.js +63 -65
  178. package/dist/components/Employee/Profile/EmployeeProfile.js.map +1 -1
  179. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +37 -36
  180. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  181. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +1 -1
  182. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js.map +1 -1
  183. package/dist/components/Employee/Profile/shared/useHomeAddressForm/index.d.ts +2 -0
  184. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.d.ts +3 -0
  185. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js +24 -0
  186. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useCurrentHomeAddressForm.js.map +1 -0
  187. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +9 -3
  188. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +105 -105
  189. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  190. package/dist/components/Employee/Profile/shared/useWorkAddressForm/index.d.ts +2 -0
  191. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.d.ts +3 -0
  192. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js +24 -0
  193. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useCurrentWorkAddressForm.js.map +1 -0
  194. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.d.ts +10 -4
  195. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +95 -84
  196. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  197. package/dist/components/Employee/StateTaxes/Actions.js +7 -8
  198. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  199. package/dist/components/Employee/Taxes/Actions.js +8 -9
  200. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  201. package/dist/components/Employee/Taxes/FederalForm.js +4 -5
  202. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  203. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js +11 -9
  204. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -1
  205. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +71 -89
  206. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
  207. package/dist/components/Employee/WorkAddress/management/WorkAddress.d.ts +6 -0
  208. package/dist/components/Employee/WorkAddress/management/WorkAddress.js +48 -0
  209. package/dist/components/Employee/WorkAddress/management/WorkAddress.js.map +1 -0
  210. package/dist/components/Employee/WorkAddress/management/WorkAddressView.d.ts +16 -0
  211. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js +368 -0
  212. package/dist/components/Employee/WorkAddress/management/WorkAddressView.js.map +1 -0
  213. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.d.ts +4 -0
  214. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js +35 -0
  215. package/dist/components/Employee/WorkAddress/management/getPendingFutureWorkAddress.js.map +1 -0
  216. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.d.ts +45 -0
  217. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +143 -0
  218. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -0
  219. package/dist/components/Employee/exports/employeeManagement.d.ts +3 -1
  220. package/dist/components/Employee/exports/employeeManagement.js +12 -10
  221. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  222. package/dist/components/Employee/exports/employeeOnboarding.d.ts +1 -1
  223. package/dist/components/Employee/exports/employeeOnboarding.js +1 -1
  224. package/dist/components/Employee/index.d.ts +5 -1
  225. package/dist/components/Employee/index.js +37 -33
  226. package/dist/components/Employee/index.js.map +1 -1
  227. package/dist/components/Flow/Flow.js +23 -51
  228. package/dist/components/Flow/Flow.js.map +1 -1
  229. package/dist/components/Flow/FlowHeader.d.ts +16 -0
  230. package/dist/components/Flow/FlowHeader.js +90 -0
  231. package/dist/components/Flow/FlowHeader.js.map +1 -0
  232. package/dist/components/Flow/useFlow.d.ts +33 -6
  233. package/dist/components/Flow/useFlow.js.map +1 -1
  234. package/dist/components/Payroll/Dismissal/DismissalFlow.js +20 -18
  235. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
  236. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +10 -10
  237. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
  238. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js +17 -19
  239. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -1
  240. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +13 -11
  241. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  242. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +9 -9
  243. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  244. package/dist/components/Payroll/OffCycle/offCycleStateMachine.js +25 -29
  245. package/dist/components/Payroll/OffCycle/offCycleStateMachine.js.map +1 -1
  246. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +0 -1
  247. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  248. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -7
  249. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  250. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +2 -3
  251. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  252. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js +43 -42
  253. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  254. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +38 -42
  255. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  256. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js +18 -17
  257. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
  258. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +69 -78
  259. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  260. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +13 -12
  261. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  262. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +51 -82
  263. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
  264. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +45 -43
  265. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  266. package/dist/components/Payroll/Transition/TransitionFlow.js +17 -15
  267. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
  268. package/dist/components/Payroll/Transition/TransitionFlowComponents.js +24 -24
  269. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
  270. package/dist/components/Payroll/Transition/transitionStateMachine.js +25 -29
  271. package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -1
  272. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +6 -41
  273. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -1
  274. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +1 -0
  275. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +12 -40
  276. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -1
  277. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +61 -41
  278. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +1 -1
  279. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js +6 -8
  280. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js.map +1 -1
  281. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js +32 -44
  282. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -1
  283. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +36 -29
  284. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -1
  285. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +50 -23
  286. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -1
  287. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +26 -25
  288. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -1
  289. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +52 -38
  290. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -1
  291. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployees.d.ts +2 -0
  292. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +6 -0
  293. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +66 -0
  294. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -0
  295. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +2 -0
  296. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +82 -0
  297. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -0
  298. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +24 -0
  299. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +7 -0
  300. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +70 -0
  301. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -0
  302. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTypes.d.ts +24 -0
  303. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +11 -0
  304. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +56 -0
  305. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -0
  306. package/dist/components/UNSTABLE_TimeOff/index.d.ts +2 -4
  307. package/dist/components/UNSTABLE_TimeOff/index.js +19 -21
  308. package/dist/components/UNSTABLE_TimeOff/index.js.map +1 -1
  309. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js +90 -0
  310. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -0
  311. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.module.scss.js +10 -0
  312. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.module.scss.js.map +1 -0
  313. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +1 -0
  314. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +1 -0
  315. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +31 -31
  316. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  317. package/dist/contexts/ThemeProvider/ThemeProvider.d.ts +8 -0
  318. package/dist/contexts/ThemeProvider/ThemeProvider.js +26 -21
  319. package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
  320. package/dist/contexts/ThemeProvider/useTheme.d.ts +1 -1
  321. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  322. package/dist/helpers/breadcrumbHelpers.d.ts +35 -22
  323. package/dist/helpers/breadcrumbHelpers.js +45 -35
  324. package/dist/helpers/breadcrumbHelpers.js.map +1 -1
  325. package/dist/helpers/dateFormatting.d.ts +12 -0
  326. package/dist/helpers/dateFormatting.js +72 -65
  327. package/dist/helpers/dateFormatting.js.map +1 -1
  328. package/dist/helpers/formattedStrings.d.ts +2 -0
  329. package/dist/helpers/formattedStrings.js +30 -27
  330. package/dist/helpers/formattedStrings.js.map +1 -1
  331. package/dist/i18n/I18n.js +131 -35
  332. package/dist/i18n/I18n.js.map +1 -1
  333. package/dist/i18n/en/Company.Locations.json.js +43 -39
  334. package/dist/i18n/en/Company.Locations.json.js.map +1 -1
  335. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +5 -5
  336. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +22 -0
  337. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -0
  338. package/dist/i18n/en/Employee.HomeAddress.Management.json.js +60 -0
  339. package/dist/i18n/en/Employee.HomeAddress.Management.json.js.map +1 -0
  340. package/dist/i18n/en/Employee.HomeAddress.json.js +22 -20
  341. package/dist/i18n/en/Employee.HomeAddress.json.js.map +1 -1
  342. package/dist/i18n/en/Employee.I9SignatureForm.json.js +79 -75
  343. package/dist/i18n/en/Employee.I9SignatureForm.json.js.map +1 -1
  344. package/dist/i18n/en/Employee.PaymentMethod.json.js +13 -13
  345. package/dist/i18n/en/Employee.WorkAddress.Management.json.js +62 -0
  346. package/dist/i18n/en/Employee.WorkAddress.Management.json.js.map +1 -0
  347. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +14 -10
  348. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -1
  349. package/dist/i18n/en/common.json.d.ts +1 -0
  350. package/dist/i18n/en/common.json.js +28 -26
  351. package/dist/i18n/en/common.json.js.map +1 -1
  352. package/dist/index.d.ts +5 -5
  353. package/dist/index.js +72 -68
  354. package/dist/index.js.map +1 -1
  355. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +13 -14
  356. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  357. package/dist/partner-hook-utils/form/fields/DatePickerHookField.d.ts +4 -2
  358. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +19 -13
  359. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  360. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +16 -17
  361. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  362. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +10 -11
  363. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  364. package/dist/partner-hook-utils/form/fields/SelectHookField.d.ts +5 -2
  365. package/dist/partner-hook-utils/form/fields/SelectHookField.js +21 -18
  366. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  367. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +12 -13
  368. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  369. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +14 -15
  370. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  371. package/dist/partner-hook-utils/form/withOptions.d.ts +1 -1
  372. package/dist/partner-hook-utils/form/withOptions.js.map +1 -1
  373. package/dist/partner-hook-utils/types.d.ts +1 -1
  374. package/dist/shared/constants.d.ts +6 -0
  375. package/dist/shared/constants.js +17 -14
  376. package/dist/shared/constants.js.map +1 -1
  377. package/dist/style.css +1 -1
  378. package/dist/types/i18next.d.ts +109 -1
  379. package/docs/reference/endpoint-inventory.json +241 -38
  380. package/package.json +11 -11
  381. package/dist/_virtual/dynamic-import-helper.js +0 -17
  382. package/dist/_virtual/dynamic-import-helper.js.map +0 -1
  383. package/dist/components/Common/SignatureForm/SignatureForm.d.ts +0 -14
  384. package/dist/components/Common/SignatureForm/SignatureForm.js +0 -28
  385. package/dist/components/Common/SignatureForm/SignatureForm.js.map +0 -1
  386. package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js +0 -10
  387. package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js.map +0 -1
  388. package/dist/components/Common/SignatureForm/SignatureFormActions.d.ts +0 -8
  389. package/dist/components/Common/SignatureForm/SignatureFormActions.js +0 -22
  390. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +0 -1
  391. package/dist/components/Common/SignatureForm/SignatureFormFields.d.ts +0 -9
  392. package/dist/components/Common/SignatureForm/SignatureFormFields.js +0 -39
  393. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +0 -1
  394. package/dist/components/Common/SignatureForm/index.d.ts +0 -5
  395. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js +0 -8
  396. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js.map +0 -1
  397. package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.d.ts +0 -1
  398. package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.js +0 -20
  399. package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.js.map +0 -1
  400. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.d.ts +0 -1
  401. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js +0 -20
  402. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js.map +0 -1
  403. package/dist/components/Employee/DocumentSigner/SignatureForm/Head.d.ts +0 -1
  404. package/dist/components/Employee/DocumentSigner/SignatureForm/Head.js +0 -35
  405. package/dist/components/Employee/DocumentSigner/SignatureForm/Head.js.map +0 -1
  406. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.d.ts +0 -1
  407. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js +0 -20
  408. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js.map +0 -1
  409. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.d.ts +0 -9
  410. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +0 -21
  411. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +0 -1
  412. package/dist/components/Employee/employee-list/management/ManagementEmployeeList.js.map +0 -1
  413. package/dist/components/Employee/employee-list/management/ManagementEmployeeListView.js.map +0 -1
  414. package/dist/components/Employee/employee-list/onboarding/EmployeeList.js.map +0 -1
  415. package/dist/components/Employee/employee-list/onboarding/EmployeeListView.js.map +0 -1
  416. package/dist/components/Employee/employee-list/shared/useEmployeeList.js.map +0 -1
  417. /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeList.d.ts +0 -0
  418. /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeList.js +0 -0
  419. /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeListView.d.ts +0 -0
  420. /package/dist/components/Employee/{employee-list → EmployeeList}/management/ManagementEmployeeListView.js +0 -0
  421. /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeList.d.ts +0 -0
  422. /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeList.js +0 -0
  423. /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeListView.d.ts +0 -0
  424. /package/dist/components/Employee/{employee-list → EmployeeList}/onboarding/EmployeeListView.js +0 -0
  425. /package/dist/components/Employee/{employee-list → EmployeeList}/shared/index.d.ts +0 -0
  426. /package/dist/components/Employee/{employee-list → EmployeeList}/shared/useEmployeeList.d.ts +0 -0
  427. /package/dist/components/Employee/{employee-list → EmployeeList}/shared/useEmployeeList.js +0 -0
@@ -1,15 +1,14 @@
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";
6
5
  import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
6
  import { useComponentContext as e } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
- const C = () => {
7
+ const y = () => {
9
8
  const { t } = r("Company.AssignSignatory"), { isPending: n } = s(), i = e();
10
9
  return /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(i.Button, { type: "submit", isLoading: n, children: t("buttons.signDocuments") }) });
11
10
  };
12
11
  export {
13
- C as Actions
12
+ y as Actions
14
13
  };
15
14
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/AssignSignatory/CreateSignatory/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useCreateSignatory } from './useCreateSignatory'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.AssignSignatory')\n const { isPending } = useCreateSignatory()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('buttons.signDocuments')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","useCreateSignatory","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,EAAA,IAAMC,EAAe,yBAAyB,GAChD,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAA,EAAE,uBAAuB,GAC5B,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/AssignSignatory/CreateSignatory/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useCreateSignatory } from './useCreateSignatory'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.AssignSignatory')\n const { isPending } = useCreateSignatory()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('buttons.signDocuments')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","useCreateSignatory","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,EAAA,IAAMC,EAAe,yBAAyB,GAChD,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAA,EAAE,uBAAuB,GAC5B,GACF;AAEJ;"}
@@ -1,15 +1,14 @@
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";
6
5
  import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
6
  import { useComponentContext as e } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
- const d = () => {
7
+ const f = () => {
9
8
  const { t } = r("Company.AssignSignatory"), { isPending: n } = s(), i = e();
10
9
  return /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(i.Button, { type: "submit", isLoading: n, children: t("buttons.inviteSignatory") }) });
11
10
  };
12
11
  export {
13
- d as Actions
12
+ f as Actions
14
13
  };
15
14
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/AssignSignatory/InviteSignatory/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useInviteSignatory } from './useInviteSignatory'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.AssignSignatory')\n const { isPending } = useInviteSignatory()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('buttons.inviteSignatory')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","useInviteSignatory","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,EAAA,IAAMC,EAAe,yBAAyB,GAChD,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAA,EAAE,yBAAyB,GAC9B,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/AssignSignatory/InviteSignatory/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useInviteSignatory } from './useInviteSignatory'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.AssignSignatory')\n const { isPending } = useInviteSignatory()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('buttons.inviteSignatory')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","useInviteSignatory","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,EAAA,IAAMC,EAAe,yBAAyB,GAChD,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAA,EAAE,yBAAyB,GAC9B,GACF;AAEJ;"}
@@ -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]) => ({
@@ -1,20 +1,20 @@
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";
6
- import { ActionsLayout as u } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
- import { useComponentContext as p } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
5
+ import { ActionsLayout as a } from "../../../Common/ActionsLayout/ActionsLayout.js";
6
+ import { useComponentContext as u } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ import { componentEvents as p } from "../../../../shared/constants.js";
8
8
  function b() {
9
- const { t } = s("Company.BankAccount"), { isPending: i, isEditing: r, onEvent: c } = m(), n = p();
10
- return /* @__PURE__ */ e(u, { children: [
9
+ const { t } = s("Company.BankAccount"), { isPending: i, isEditing: r, onEvent: c } = m(), n = u();
10
+ return /* @__PURE__ */ e(a, { children: [
11
11
  r && /* @__PURE__ */ o(
12
12
  n.Button,
13
13
  {
14
14
  type: "button",
15
15
  variant: "secondary",
16
16
  onClick: () => {
17
- c(a.COMPANY_BANK_ACCOUNT_CANCEL);
17
+ c(p.COMPANY_BANK_ACCOUNT_CANCEL);
18
18
  },
19
19
  children: t("cancelCta")
20
20
  }
@@ -1,18 +1,17 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { useTranslation as e } from "react-i18next";
1
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
+ import { useTranslation as i } from "react-i18next";
3
3
  import { useBankAccount as a } from "./context.js";
4
- import "../../../../shared/constants.js";
5
4
  import "classnames";
6
5
  import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
6
  import { useComponentContext as s } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
- function k() {
9
- const { handleContinue: r, handleChange: c } = a(), { t: n } = e("Company.BankAccount"), o = s();
10
- return /* @__PURE__ */ i(m, { children: [
11
- /* @__PURE__ */ t(o.Button, { variant: "secondary", onClick: c, children: n("changeBankAccountCta") }),
12
- /* @__PURE__ */ t(o.Button, { onClick: r, children: n("continueCta") })
7
+ function f() {
8
+ const { handleContinue: c, handleChange: r } = a(), { t: n } = i("Company.BankAccount"), o = s();
9
+ return /* @__PURE__ */ e(m, { children: [
10
+ /* @__PURE__ */ t(o.Button, { variant: "secondary", onClick: r, children: n("changeBankAccountCta") }),
11
+ /* @__PURE__ */ t(o.Button, { onClick: c, children: n("continueCta") })
13
12
  ] });
14
13
  }
15
14
  export {
16
- k as Actions
15
+ f as Actions
17
16
  };
18
17
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccount } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { handleContinue, handleChange } = useBankAccount()\n const { t } = useTranslation('Company.BankAccount')\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleChange}>\n {t('changeBankAccountCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","handleContinue","handleChange","useBankAccount","t","useTranslation","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,gBAAAC,GAAgB,cAAAC,EAAA,IAAiBC,EAAA,GACnC,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASJ,GAC7C,UAAAE,EAAE,sBAAsB,EAAA,CAC3B;AAAA,IACA,gBAAAK,EAACH,EAAW,QAAX,EAAkB,SAASL,GAAiB,UAAAG,EAAE,aAAa,EAAA,CAAE;AAAA,EAAA,GAChE;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccount } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { handleContinue, handleChange } = useBankAccount()\n const { t } = useTranslation('Company.BankAccount')\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleChange}>\n {t('changeBankAccountCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","handleContinue","handleChange","useBankAccount","t","useTranslation","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,gBAAAC,GAAgB,cAAAC,EAAA,IAAiBC,EAAA,GACnC,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASJ,GAC7C,UAAAE,EAAE,sBAAsB,EAAA,CAC3B;AAAA,IACA,gBAAAK,EAACH,EAAW,QAAX,EAAkB,SAASL,GAAiB,UAAAG,EAAE,aAAa,EAAA,CAAE;AAAA,EAAA,GAChE;AAEJ;"}
@@ -1,13 +1,12 @@
1
- import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
- import { useTranslation as c } from "react-i18next";
3
- import { useBankAccountVerify as e } from "./context.js";
4
- import "../../../../shared/constants.js";
1
+ import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
+ import { useTranslation as e } from "react-i18next";
3
+ import { useBankAccountVerify as r } from "./context.js";
5
4
  import "classnames";
6
5
  import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
6
  import { useComponentContext as m } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
- function k() {
9
- const { t } = c("Company.BankAccount"), { isPending: n, handleCancel: a } = e(), o = m();
10
- return /* @__PURE__ */ r(s, { children: [
7
+ function C() {
8
+ const { t } = e("Company.BankAccount"), { isPending: n, handleCancel: a } = r(), o = m();
9
+ return /* @__PURE__ */ c(s, { children: [
11
10
  /* @__PURE__ */ i(
12
11
  o.Button,
13
12
  {
@@ -30,6 +29,6 @@ function k() {
30
29
  ] });
31
30
  }
32
31
  export {
33
- k as Actions
32
+ C as Actions
34
33
  };
35
34
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountVerify/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccountVerify } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Company.BankAccount')\n const { isPending, handleCancel } = useBankAccountVerify()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n isLoading={isPending}\n onClick={handleCancel}\n data-testid=\"bank-account-verify-cancel\"\n >\n {t('cancelCta')}\n </Components.Button>\n <Components.Button\n type=\"submit\"\n isLoading={isPending}\n data-testid=\"bank-account-verify-submit\"\n >\n {t('verifyCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","handleCancel","useBankAccountVerify","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,WAAAC,GAAW,cAAAC,EAAA,IAAiBC,EAAA,GAC9BC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,SAAQ;AAAA,QACR,WAAWH;AAAA,QACX,SAASC;AAAA,QACT,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,IAEhB,gBAAAK;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,MAAK;AAAA,QACL,WAAWH;AAAA,QACX,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountVerify/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccountVerify } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Company.BankAccount')\n const { isPending, handleCancel } = useBankAccountVerify()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n isLoading={isPending}\n onClick={handleCancel}\n data-testid=\"bank-account-verify-cancel\"\n >\n {t('cancelCta')}\n </Components.Button>\n <Components.Button\n type=\"submit\"\n isLoading={isPending}\n data-testid=\"bank-account-verify-submit\"\n >\n {t('verifyCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","handleCancel","useBankAccountVerify","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,WAAAC,GAAW,cAAAC,EAAA,IAAiBC,EAAA,GAC9BC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,SAAQ;AAAA,QACR,WAAWH;AAAA,QACX,SAASC;AAAA,QACT,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,IAEhB,gBAAAK;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,MAAK;AAAA,QACL,WAAWH;AAAA,QACX,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
@@ -1,15 +1,14 @@
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";
6
5
  import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
6
  import { useComponentContext as c } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
- function h({ continueCtaLabel: t }) {
7
+ function d({ continueCtaLabel: t }) {
9
8
  const { t: n } = m("Company.DocumentList"), { handleContinue: i } = e(), r = c();
10
9
  return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(r.Button, { onClick: i, children: t || n("continueCta") }) });
11
10
  }
12
11
  export {
13
- h as Actions
12
+ d as Actions
14
13
  };
15
14
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDocumentList } from './useDocumentList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface ActionsProps {\n continueCtaLabel?: string\n}\n\nexport function Actions({ continueCtaLabel }: ActionsProps) {\n const { t } = useTranslation('Company.DocumentList')\n const { handleContinue } = useDocumentList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button onClick={handleContinue}>\n {continueCtaLabel || t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","continueCtaLabel","t","useTranslation","handleContinue","useDocumentList","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;AASO,SAASA,EAAQ,EAAE,kBAAAC,KAAkC;AAC1D,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,gBAAAC,EAAA,IAAmBC,EAAA,GACrBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,SAASF,GACzB,UAAAH,KAAoBC,EAAE,aAAa,EAAA,CACtC,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDocumentList } from './useDocumentList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface ActionsProps {\n continueCtaLabel?: string\n}\n\nexport function Actions({ continueCtaLabel }: ActionsProps) {\n const { t } = useTranslation('Company.DocumentList')\n const { handleContinue } = useDocumentList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button onClick={handleContinue}>\n {continueCtaLabel || t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","continueCtaLabel","t","useTranslation","handleContinue","useDocumentList","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;AASO,SAASA,EAAQ,EAAE,kBAAAC,KAAkC;AAC1D,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,gBAAAC,EAAA,IAAmBC,EAAA,GACrBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,SAASF,GACzB,UAAAH,KAAoBC,EAAE,aAAa,EAAA,CACtC,GACF;AAEJ;"}
@@ -4,5 +4,4 @@ interface SignatureFormProps extends BaseComponentInterface<'Company.SignatureFo
4
4
  companyId: string;
5
5
  }
6
6
  export declare function SignatureForm(props: SignatureFormProps): import("react/jsx-runtime").JSX.Element;
7
- export declare function Root({ formId, children, dictionary }: SignatureFormProps): import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -7,17 +7,17 @@ import { useBase as w } from "../../../Base/useBase.js";
7
7
  import { Flex as E } from "../../../Common/Flex/Flex.js";
8
8
  import "classnames";
9
9
  import { ActionsLayout as _ } from "../../../Common/ActionsLayout/ActionsLayout.js";
10
- import { DocumentViewer as k } from "../../../Common/DocumentViewer/DocumentViewer.js";
11
- import { Form as I } from "../../../Common/Form/Form.js";
12
- import { SDKFormProvider as M } from "../../../../partner-hook-utils/form/SDKFormProvider.js";
10
+ import { Form as k } from "../../../Common/Form/Form.js";
11
+ import { SDKFormProvider as I } from "../../../../partner-hook-utils/form/SDKFormProvider.js";
13
12
  import { companyEvents as l } from "../../../../shared/constants.js";
14
- import { useComponentContext as x } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
+ import { useComponentContext as M } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
+ import { DocumentViewer as x } from "../../../Common/DocumentViewer/DocumentViewer.js";
15
15
  function q(t) {
16
16
  return /* @__PURE__ */ o(v, { ...t, children: /* @__PURE__ */ o(B, { ...t, children: t.children }) });
17
17
  }
18
18
  function B({ formId: t, children: u, dictionary: p }) {
19
19
  L("Company.SignatureForm", p), R("Company.SignatureForm");
20
- const { t: r } = S("Company.SignatureForm"), { onEvent: a } = w(), e = x(), n = D({ formId: t });
20
+ const { t: r } = S("Company.SignatureForm"), { onEvent: a } = w(), e = M(), n = D({ formId: t });
21
21
  if (n.isLoading)
22
22
  return /* @__PURE__ */ o(d, { isLoading: !0, error: n.errorHandling.errors });
23
23
  const { companyForm: i, pdfUrl: m } = n.data, { isPending: f } = n.status, { Signature: g, ConfirmSignature: h } = n.form.Fields, C = async () => {
@@ -26,7 +26,7 @@ function B({ formId: t, children: u, dictionary: p }) {
26
26
  }, F = () => {
27
27
  a(l.COMPANY_SIGN_FORM_BACK);
28
28
  };
29
- return /* @__PURE__ */ o(d, { error: n.errorHandling.errors, children: /* @__PURE__ */ o(M, { formHookResult: n, children: /* @__PURE__ */ o(I, { onSubmit: C, children: /* @__PURE__ */ o(E, { flexDirection: "column", gap: 32, children: u ?? /* @__PURE__ */ s(y, { children: [
29
+ return /* @__PURE__ */ o(d, { error: n.errorHandling.errors, children: /* @__PURE__ */ o(I, { formHookResult: n, children: /* @__PURE__ */ o(k, { onSubmit: C, children: /* @__PURE__ */ o(E, { flexDirection: "column", gap: 32, children: u ?? /* @__PURE__ */ s(y, { children: [
30
30
  /* @__PURE__ */ s("section", { children: [
31
31
  /* @__PURE__ */ o(e.Heading, { as: "h2", children: r("signatureFormTitle", { formTitle: i.title }) }),
32
32
  m && /* @__PURE__ */ o(e.Text, { children: /* @__PURE__ */ o(
@@ -50,7 +50,7 @@ function B({ formId: t, children: u, dictionary: p }) {
50
50
  ) })
51
51
  ] }),
52
52
  /* @__PURE__ */ o(
53
- k,
53
+ x,
54
54
  {
55
55
  url: m,
56
56
  title: i.title,
@@ -80,7 +80,6 @@ function B({ formId: t, children: u, dictionary: p }) {
80
80
  ] }) }) }) }) });
81
81
  }
82
82
  export {
83
- B as Root,
84
83
  q as SignatureForm
85
84
  };
86
85
  //# sourceMappingURL=SignatureForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { useSignCompanyForm } from '../shared/useSignCompanyForm'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport type { BaseComponentInterface } from '@/components/Base/Base'\nimport { BaseComponent, BaseLayout } from '@/components/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { Form as FormLayout } from '@/components/Common/Form'\nimport { DocumentViewer } from '@/components/Common/DocumentViewer'\nimport { SDKFormProvider } from '@/partner-hook-utils/form/SDKFormProvider'\nimport { companyEvents } from '@/shared/constants'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface SignatureFormProps extends BaseComponentInterface<'Company.SignatureForm'> {\n formId: string\n companyId: string\n}\n\nexport function SignatureForm(props: SignatureFormProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nexport function Root({ formId, children, dictionary }: SignatureFormProps) {\n useComponentDictionary('Company.SignatureForm', dictionary)\n useI18n('Company.SignatureForm')\n const { t } = useTranslation('Company.SignatureForm')\n const { onEvent } = useBase()\n const Components = useComponentContext()\n\n const hookResult = useSignCompanyForm({ formId })\n\n if (hookResult.isLoading) {\n return <BaseLayout isLoading error={hookResult.errorHandling.errors} />\n }\n\n const { companyForm: form, pdfUrl } = hookResult.data\n const { isPending } = hookResult.status\n const { Signature, ConfirmSignature } = hookResult.form.Fields\n\n const handleFormSubmit = async () => {\n const result = await hookResult.actions.onSubmit()\n if (result) {\n onEvent(companyEvents.COMPANY_SIGN_FORM, result.data)\n onEvent(companyEvents.COMPANY_SIGN_FORM_DONE)\n }\n }\n\n const handleBack = () => {\n onEvent(companyEvents.COMPANY_SIGN_FORM_BACK)\n }\n\n return (\n <BaseLayout error={hookResult.errorHandling.errors}>\n <SDKFormProvider formHookResult={hookResult}>\n <FormLayout onSubmit={handleFormSubmit}>\n <Flex flexDirection=\"column\" gap={32}>\n {children ?? (\n <>\n <section>\n <Components.Heading as=\"h2\">\n {t('signatureFormTitle', { formTitle: form.title })}\n </Components.Heading>\n {pdfUrl && (\n <Components.Text>\n <Trans\n t={t}\n i18nKey=\"downloadPrompt\"\n values={{ description: form.description }}\n components={{\n downloadLink: (\n <Components.Link\n href={pdfUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n download={`${form.title || 'form'}.pdf`}\n />\n ),\n }}\n />\n </Components.Text>\n )}\n </section>\n <DocumentViewer\n url={pdfUrl}\n title={form.title}\n downloadInstructions={t('downloadInstructions')}\n viewDocumentLabel={t('viewDocumentCta')}\n />\n <Signature\n label={t('signatureLabel')}\n description={t('signatureDescription')}\n validationMessages={{ REQUIRED: t('signatureError') }}\n />\n <ConfirmSignature\n label={t('confirmationLabel')}\n validationMessages={{ REQUIRED: t('confirmationError') }}\n />\n <ActionsLayout>\n <Components.Button variant=\"secondary\" type=\"button\" onClick={handleBack}>\n {t('backCta')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n </>\n )}\n </Flex>\n </FormLayout>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n"],"names":["SignatureForm","props","jsx","BaseComponent","Root","formId","children","dictionary","useComponentDictionary","useI18n","t","useTranslation","onEvent","useBase","Components","useComponentContext","hookResult","useSignCompanyForm","BaseLayout","form","pdfUrl","isPending","Signature","ConfirmSignature","handleFormSubmit","result","companyEvents","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AX,EAAkB,SAAQ,aAAY,MAAK,UAAS,SAASa,GAC3D,UAAAjB,EAAE,SAAS,EAAA,CACd;AAAA,MACA,gBAAAR,EAACY,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWO,GACzC,UAAAX,EAAE,WAAW,EAAA,CAChB;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CAEJ,GACF,EAAA,CACF,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"SignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { useSignCompanyForm } from '../shared/useSignCompanyForm'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport type { BaseComponentInterface } from '@/components/Base/Base'\nimport { BaseComponent, BaseLayout } from '@/components/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { Form as FormLayout } from '@/components/Common/Form'\nimport { DocumentViewer } from '@/components/Common/DocumentViewer'\nimport { SDKFormProvider } from '@/partner-hook-utils/form/SDKFormProvider'\nimport { companyEvents } from '@/shared/constants'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface SignatureFormProps extends BaseComponentInterface<'Company.SignatureForm'> {\n formId: string\n companyId: string\n}\n\nexport function SignatureForm(props: SignatureFormProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ formId, children, dictionary }: SignatureFormProps) {\n useComponentDictionary('Company.SignatureForm', dictionary)\n useI18n('Company.SignatureForm')\n const { t } = useTranslation('Company.SignatureForm')\n const { onEvent } = useBase()\n const Components = useComponentContext()\n\n const hookResult = useSignCompanyForm({ formId })\n\n if (hookResult.isLoading) {\n return <BaseLayout isLoading error={hookResult.errorHandling.errors} />\n }\n\n const { companyForm: form, pdfUrl } = hookResult.data\n const { isPending } = hookResult.status\n const { Signature, ConfirmSignature } = hookResult.form.Fields\n\n const handleFormSubmit = async () => {\n const result = await hookResult.actions.onSubmit()\n if (result) {\n onEvent(companyEvents.COMPANY_SIGN_FORM, result.data)\n onEvent(companyEvents.COMPANY_SIGN_FORM_DONE)\n }\n }\n\n const handleBack = () => {\n onEvent(companyEvents.COMPANY_SIGN_FORM_BACK)\n }\n\n return (\n <BaseLayout error={hookResult.errorHandling.errors}>\n <SDKFormProvider formHookResult={hookResult}>\n <FormLayout onSubmit={handleFormSubmit}>\n <Flex flexDirection=\"column\" gap={32}>\n {children ?? (\n <>\n <section>\n <Components.Heading as=\"h2\">\n {t('signatureFormTitle', { formTitle: form.title })}\n </Components.Heading>\n {pdfUrl && (\n <Components.Text>\n <Trans\n t={t}\n i18nKey=\"downloadPrompt\"\n values={{ description: form.description }}\n components={{\n downloadLink: (\n <Components.Link\n href={pdfUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n download={`${form.title || 'form'}.pdf`}\n />\n ),\n }}\n />\n </Components.Text>\n )}\n </section>\n <DocumentViewer\n url={pdfUrl}\n title={form.title}\n downloadInstructions={t('downloadInstructions')}\n viewDocumentLabel={t('viewDocumentCta')}\n />\n <Signature\n label={t('signatureLabel')}\n description={t('signatureDescription')}\n validationMessages={{ REQUIRED: t('signatureError') }}\n />\n <ConfirmSignature\n label={t('confirmationLabel')}\n validationMessages={{ REQUIRED: t('confirmationError') }}\n />\n <ActionsLayout>\n <Components.Button variant=\"secondary\" type=\"button\" onClick={handleBack}>\n {t('backCta')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n </>\n )}\n </Flex>\n </FormLayout>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n"],"names":["SignatureForm","props","jsx","BaseComponent","Root","formId","children","dictionary","useComponentDictionary","useI18n","t","useTranslation","onEvent","useBase","Components","useComponentContext","hookResult","useSignCompanyForm","BaseLayout","form","pdfUrl","isPending","Signature","ConfirmSignature","handleFormSubmit","result","companyEvents","handleBack","SDKFormProvider","FormLayout","Flex","jsxs","Fragment","Trans","DocumentViewer","ActionsLayout"],"mappings":";;;;;;;;;;;;;;AAkBO,SAASA,EAAcC,GAA2B;AACvD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,QAAAC,GAAQ,UAAAC,GAAU,YAAAC,KAAkC;AAClE,EAAAC,EAAuB,yBAAyBD,CAAU,GAC1DE,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB,GAC9C,EAAE,SAAAC,EAAA,IAAYC,EAAA,GACdC,IAAaC,EAAA,GAEbC,IAAaC,EAAmB,EAAE,QAAAZ,GAAQ;AAEhD,MAAIW,EAAW;AACb,6BAAQE,GAAA,EAAW,WAAS,IAAC,OAAOF,EAAW,cAAc,QAAQ;AAGvE,QAAM,EAAE,aAAaG,GAAM,QAAAC,EAAA,IAAWJ,EAAW,MAC3C,EAAE,WAAAK,MAAcL,EAAW,QAC3B,EAAE,WAAAM,GAAW,kBAAAC,EAAA,IAAqBP,EAAW,KAAK,QAElDQ,IAAmB,YAAY;AACnC,UAAMC,IAAS,MAAMT,EAAW,QAAQ,SAAA;AACxC,IAAIS,MACFb,EAAQc,EAAc,mBAAmBD,EAAO,IAAI,GACpDb,EAAQc,EAAc,sBAAsB;AAAA,EAEhD,GAEMC,IAAa,MAAM;AACvB,IAAAf,EAAQc,EAAc,sBAAsB;AAAA,EAC9C;AAEA,SACE,gBAAAxB,EAACgB,KAAW,OAAOF,EAAW,cAAc,QAC1C,UAAA,gBAAAd,EAAC0B,KAAgB,gBAAgBZ,GAC/B,4BAACa,GAAA,EAAW,UAAUL,GACpB,UAAA,gBAAAtB,EAAC4B,GAAA,EAAK,eAAc,UAAS,KAAK,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,MAAA,gBAAAjC,EAACY,EAAW,QAAX,EAAkB,SAAQ,aAAY,MAAK,UAAS,SAASa,GAC3D,UAAAjB,EAAE,SAAS,EAAA,CACd;AAAA,MACA,gBAAAR,EAACY,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWO,GACzC,UAAAX,EAAE,WAAW,EAAA,CAChB;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CAEJ,GACF,EAAA,CACF,EAAA,CACF;AAEJ;"}
@@ -1,15 +1,14 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as e } from "react-i18next";
2
+ import { useTranslation as r } from "react-i18next";
3
3
  import { useFederalTaxes as i } from "./useFederalTaxes.js";
4
- import "../../../shared/constants.js";
5
4
  import "classnames";
6
5
  import { ActionsLayout as s } from "../../Common/ActionsLayout/ActionsLayout.js";
7
6
  import { useComponentContext as m } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
- const x = () => {
9
- const { t } = e("Company.FederalTaxes"), { isPending: n } = i(), r = m();
10
- return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(r.Button, { type: "submit", isLoading: n, children: t("continueCta") }) });
7
+ const l = () => {
8
+ const { t } = r("Company.FederalTaxes"), { isPending: n } = i(), e = m();
9
+ return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(e.Button, { type: "submit", isLoading: n, children: t("continueCta") }) });
11
10
  };
12
11
  export {
13
- x as Actions
12
+ l as Actions
14
13
  };
15
14
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../src/components/Company/FederalTaxes/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useFederalTaxes } from './useFederalTaxes'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.FederalTaxes')\n const { isPending } = useFederalTaxes()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","useFederalTaxes","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAA,EAAE,aAAa,GAClB,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../src/components/Company/FederalTaxes/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useFederalTaxes } from './useFederalTaxes'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.FederalTaxes')\n const { isPending } = useFederalTaxes()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","useFederalTaxes","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAA,EAAE,aAAa,GAClB,GACF;AAEJ;"}
@@ -1,15 +1,14 @@
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";
6
5
  import { ActionsLayout as m } from "../../Common/ActionsLayout/ActionsLayout.js";
7
6
  import { useComponentContext as e } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
- const C = () => {
7
+ const y = () => {
9
8
  const { t: o } = i("Company.Industry"), { isPending: n } = s(), r = e();
10
9
  return /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t(r.Button, { type: "submit", isLoading: n, children: o("submitCta") }) });
11
10
  };
12
11
  export {
13
- C as Actions
12
+ y as Actions
14
13
  };
15
14
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../src/components/Company/Industry/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useIndustryApiState } from './Context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.Industry')\n const { isPending } = useIndustryApiState()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","isPending","useIndustryApiState","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,kBAAkB,GACzC,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAAF,EAAE,WAAW,GAChB,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../src/components/Company/Industry/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useIndustryApiState } from './Context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.Industry')\n const { isPending } = useIndustryApiState()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","isPending","useIndustryApiState","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,kBAAkB,GACzC,EAAE,WAAAC,EAAA,IAAcC,EAAA,GAChBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GACzC,UAAAF,EAAE,WAAW,GAChB,GACF;AAEJ;"}
@@ -1,13 +1,12 @@
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";
6
- import { ComboBoxField as i } from "../../Common/Fields/ComboBoxField/ComboBoxField.js";
7
- const c = () => {
5
+ import { ComboBoxField as s } from "../../Common/Fields/ComboBoxField/ComboBoxField.js";
6
+ const d = () => {
8
7
  const { t: o } = e("Company.Industry"), { items: r } = m();
9
8
  return /* @__PURE__ */ t(
10
- i,
9
+ s,
11
10
  {
12
11
  isRequired: !0,
13
12
  options: r,
@@ -18,6 +17,6 @@ const c = () => {
18
17
  );
19
18
  };
20
19
  export {
21
- c as Edit
20
+ d as Edit
22
21
  };
23
22
  //# sourceMappingURL=Edit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Edit.js","sources":["../../../../src/components/Company/Industry/Edit.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useIndustryItems } from './Context'\nimport { ComboBoxField } from '@/components/Common'\n\nexport interface IndustryFormFields {\n naics_code: string\n}\n\nexport const Edit = () => {\n const { t } = useTranslation('Company.Industry')\n const { items } = useIndustryItems()\n\n return (\n <ComboBoxField\n isRequired\n options={items}\n label={t('label')}\n name=\"naics_code\"\n placeholder={t('placeholder')}\n />\n )\n}\n"],"names":["Edit","t","useTranslation","items","useIndustryItems","jsx","ComboBoxField"],"mappings":";;;;;;AAQO,MAAMA,IAAO,MAAM;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,kBAAkB,GACzC,EAAE,OAAAC,EAAA,IAAUC,EAAA;AAElB,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAU;AAAA,MACV,SAASH;AAAA,MACT,OAAOF,EAAE,OAAO;AAAA,MAChB,MAAK;AAAA,MACL,aAAaA,EAAE,aAAa;AAAA,IAAA;AAAA,EAAA;AAGlC;"}
1
+ {"version":3,"file":"Edit.js","sources":["../../../../src/components/Company/Industry/Edit.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useIndustryItems } from './Context'\nimport { ComboBoxField } from '@/components/Common'\n\nexport interface IndustryFormFields {\n naics_code: string\n}\n\nexport const Edit = () => {\n const { t } = useTranslation('Company.Industry')\n const { items } = useIndustryItems()\n\n return (\n <ComboBoxField\n isRequired\n options={items}\n label={t('label')}\n name=\"naics_code\"\n placeholder={t('placeholder')}\n />\n )\n}\n"],"names":["Edit","t","useTranslation","items","useIndustryItems","jsx","ComboBoxField"],"mappings":";;;;;AAQO,MAAMA,IAAO,MAAM;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,kBAAkB,GACzC,EAAE,OAAAC,EAAA,IAAUC,EAAA;AAElB,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAU;AAAA,MACV,SAASH;AAAA,MACT,OAAOF,EAAE,OAAO;AAAA,MAChB,MAAK;AAAA,MACL,aAAaA,EAAE,aAAa;AAAA,IAAA;AAAA,EAAA;AAGlC;"}
@@ -1,18 +1,17 @@
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";
6
- import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
- import { useComponentContext as c } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
- const x = () => {
9
- const { t: o } = a("Company.Locations"), { handleCancel: i, isPending: s } = e(), t = c();
10
- return /* @__PURE__ */ r(m, { children: [
5
+ import { ActionsLayout as c } from "../../../Common/ActionsLayout/ActionsLayout.js";
6
+ import { useComponentContext as m } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
+ const h = () => {
8
+ const { t: o } = a("Company.Locations"), { handleCancel: i, isPending: s } = e(), t = m();
9
+ return /* @__PURE__ */ r(c, { children: [
11
10
  /* @__PURE__ */ n(t.Button, { variant: "secondary", onClick: i, children: o("cancelCta") }),
12
11
  /* @__PURE__ */ n(t.Button, { type: "submit", isLoading: s, "data-testid": "location-submit", children: o("saveCta") })
13
12
  ] });
14
13
  };
15
14
  export {
16
- x as Actions
15
+ h as Actions
17
16
  };
18
17
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/Locations/LocationForm/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsForm } from './useLocationForm'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.Locations')\n const { handleCancel, isPending } = useLocationsForm()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleCancel}>\n {t('cancelCta')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={isPending} data-testid=\"location-submit\">\n {t('saveCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","handleCancel","isPending","useLocationsForm","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,cAAAC,GAAc,WAAAC,EAAA,IAAcC,EAAA,GAC9BC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASH,GAC7C,UAAAF,EAAE,WAAW,EAAA,CAChB;AAAA,IACA,gBAAAQ,EAACH,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GAAW,eAAY,mBAChE,UAAAH,EAAE,SAAS,EAAA,CACd;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/Locations/LocationForm/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsForm } from './useLocationForm'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { t } = useTranslation('Company.Locations')\n const { handleCancel, isPending } = useLocationsForm()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleCancel}>\n {t('cancelCta')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={isPending} data-testid=\"location-submit\">\n {t('saveCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","handleCancel","isPending","useLocationsForm","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,cAAAC,GAAc,WAAAC,EAAA,IAAcC,EAAA,GAC9BC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASH,GAC7C,UAAAF,EAAE,WAAW,EAAA,CAChB;AAAA,IACA,gBAAAQ,EAACH,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWF,GAAW,eAAY,mBAChE,UAAAH,EAAE,SAAS,EAAA,CACd;AAAA,EAAA,GACF;AAEJ;"}
@@ -12,4 +12,9 @@ export declare const LocationFormSchema: z.ZodObject<{
12
12
  }>>>;
13
13
  }, z.core.$strip>;
14
14
  export type LocationFormInputs = z.infer<typeof LocationFormSchema>;
15
- export declare function Form(): import("react/jsx-runtime").JSX.Element;
15
+ interface FormProps {
16
+ isMailingLocked?: boolean;
17
+ isFilingLocked?: boolean;
18
+ }
19
+ export declare function Form({ isMailingLocked, isFilingLocked }?: FormProps): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -1,29 +1,29 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
2
  import { z as i } from "zod";
3
- import { useTranslation as l } from "react-i18next";
4
- import { zipValidation as n, phoneValidation as m } from "../../../../helpers/validations.js";
5
- import { Flex as d } from "../../../Common/Flex/Flex.js";
6
- import { Grid as p } from "../../../Common/Grid/Grid.js";
3
+ import { useTranslation as m } from "react-i18next";
4
+ import { zipValidation as d, phoneValidation as p } from "../../../../helpers/validations.js";
5
+ import { Flex as c } from "../../../Common/Flex/Flex.js";
6
+ import { Grid as b } from "../../../Common/Grid/Grid.js";
7
7
  import "classnames";
8
- import { STATES_ABBR as c } from "../../../../shared/constants.js";
9
- import { useMaskedTransform as u, commonMasks as b } from "../../../../helpers/mask.js";
8
+ import { STATES_ABBR as f } from "../../../../shared/constants.js";
9
+ import { useMaskedTransform as u, commonMasks as g } from "../../../../helpers/mask.js";
10
10
  import { TextInputField as s } from "../../../Common/Fields/TextInputField/TextInputField.js";
11
- import { SelectField as f } from "../../../Common/Fields/SelectField/SelectField.js";
12
- import { CheckboxGroupField as g } from "../../../Common/Fields/CheckboxGroupField/CheckboxGroupField.js";
13
- const k = i.object({
14
- phoneNumber: m,
11
+ import { SelectField as h } from "../../../Common/Fields/SelectField/SelectField.js";
12
+ import { CheckboxGroupField as A } from "../../../Common/Fields/CheckboxGroupField/CheckboxGroupField.js";
13
+ const S = i.object({
14
+ phoneNumber: p,
15
15
  street1: i.string().min(1),
16
16
  street2: i.string().optional(),
17
17
  city: i.string().min(1),
18
18
  state: i.string().min(1),
19
- zip: n,
19
+ zip: d,
20
20
  addressType: i.array(i.enum(["mailingAddress", "filingAddress"])).optional()
21
21
  });
22
- function S() {
23
- const { t: e } = l("Company.Locations"), o = u(b.phoneMask);
24
- return /* @__PURE__ */ t(d, { flexDirection: "column", gap: 20, children: [
25
- /* @__PURE__ */ t(
26
- p,
22
+ function j({ isMailingLocked: a = !1, isFilingLocked: t = !1 } = {}) {
23
+ const { t: e } = m("Company.Locations"), n = u(g.phoneMask);
24
+ return /* @__PURE__ */ l(c, { flexDirection: "column", gap: 20, children: [
25
+ /* @__PURE__ */ l(
26
+ b,
27
27
  {
28
28
  gap: { base: 20, small: 8 },
29
29
  gridTemplateColumns: { base: "1fr", small: ["1fr", "1fr"] },
@@ -48,12 +48,12 @@ function S() {
48
48
  }
49
49
  ),
50
50
  /* @__PURE__ */ r(
51
- f,
51
+ h,
52
52
  {
53
53
  name: "state",
54
- options: c.map((a) => ({
55
- label: e(`statesHash.${a}`, { ns: "common" }),
56
- value: a
54
+ options: f.map((o) => ({
55
+ label: e(`statesHash.${o}`, { ns: "common" }),
56
+ value: o
57
57
  })),
58
58
  label: e("stateLabel"),
59
59
  placeholder: e("statePlaceholder"),
@@ -77,14 +77,14 @@ function S() {
77
77
  isRequired: !0,
78
78
  label: e("phoneNumberLabel"),
79
79
  errorMessage: e("validations.phone"),
80
- transform: o
80
+ transform: n
81
81
  }
82
82
  )
83
83
  ]
84
84
  }
85
85
  ),
86
86
  /* @__PURE__ */ r(
87
- g,
87
+ A,
88
88
  {
89
89
  name: "addressType",
90
90
  label: e("addressTypeLabel"),
@@ -92,12 +92,14 @@ function S() {
92
92
  {
93
93
  value: "mailingAddress",
94
94
  label: e("mailingAddressLabel"),
95
- description: e("mailingAddressDescription")
95
+ description: e(a ? "mailingAddressDescriptionLocked" : "mailingAddressDescription"),
96
+ isDisabled: a
96
97
  },
97
98
  {
98
99
  value: "filingAddress",
99
100
  label: e("filingAddressLabel"),
100
- description: e("filingAddressDescription")
101
+ description: e(t ? "filingAddressDescriptionLocked" : "filingAddressDescription"),
102
+ isDisabled: t
101
103
  }
102
104
  ]
103
105
  }
@@ -105,7 +107,7 @@ function S() {
105
107
  ] });
106
108
  }
107
109
  export {
108
- S as Form,
109
- k as LocationFormSchema
110
+ j as Form,
111
+ S as LocationFormSchema
110
112
  };
111
113
  //# sourceMappingURL=Form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/Locations/LocationForm/Form.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { useTranslation } from 'react-i18next'\nimport { phoneValidation, zipValidation } from '@/helpers/validations'\nimport { CheckboxGroupField, Flex, Grid, SelectField, TextInputField } from '@/components/Common'\nimport { STATES_ABBR } from '@/shared/constants'\nimport { commonMasks, useMaskedTransform } from '@/helpers/mask'\n\nexport const LocationFormSchema = z.object({\n phoneNumber: phoneValidation,\n street1: z.string().min(1),\n street2: z.string().optional(),\n city: z.string().min(1),\n state: z.string().min(1),\n zip: zipValidation,\n addressType: z.array(z.enum(['mailingAddress', 'filingAddress'])).optional(),\n})\n\nexport type LocationFormInputs = z.infer<typeof LocationFormSchema>\n\nexport function Form() {\n const { t } = useTranslation('Company.Locations')\n const transform = useMaskedTransform(commonMasks.phoneMask)\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <Grid\n gap={{ base: 20, small: 8 }}\n gridTemplateColumns={{ base: '1fr', small: ['1fr', '1fr'] }}\n >\n <TextInputField\n name=\"street1\"\n isRequired\n label={t('street1Label')}\n errorMessage={t('validations.street1')}\n />\n <TextInputField name=\"street2\" label={t('street2Label')} />\n <TextInputField\n name=\"city\"\n label={t('cityLabel')}\n isRequired\n errorMessage={t('validations.city')}\n />\n <SelectField\n name=\"state\"\n options={STATES_ABBR.map((stateAbbr: (typeof STATES_ABBR)[number]) => ({\n label: t(`statesHash.${stateAbbr}`, { ns: 'common' }),\n value: stateAbbr,\n }))}\n label={t('stateLabel')}\n placeholder={t('statePlaceholder')}\n errorMessage={t('validations.state')}\n isRequired\n />\n <TextInputField\n name=\"zip\"\n isRequired\n label={t('zipLabel')}\n errorMessage={t('validations.zip')}\n />\n <TextInputField\n name=\"phoneNumber\"\n isRequired\n label={t('phoneNumberLabel')}\n errorMessage={t('validations.phone')}\n transform={transform}\n />\n </Grid>\n <CheckboxGroupField\n name=\"addressType\"\n label={t('addressTypeLabel')}\n options={[\n {\n value: 'mailingAddress',\n label: t('mailingAddressLabel'),\n description: t('mailingAddressDescription'),\n },\n {\n value: 'filingAddress',\n label: t('filingAddressLabel'),\n description: t('filingAddressDescription'),\n },\n ]}\n />\n </Flex>\n )\n}\n"],"names":["LocationFormSchema","z","phoneValidation","zipValidation","Form","t","useTranslation","transform","useMaskedTransform","commonMasks","jsxs","Flex","Grid","jsx","TextInputField","SelectField","STATES_ABBR","stateAbbr","CheckboxGroupField"],"mappings":";;;;;;;;;;;;AAOO,MAAMA,IAAqBC,EAAE,OAAO;AAAA,EACzC,aAAaC;AAAA,EACb,SAASD,EAAE,SAAS,IAAI,CAAC;AAAA,EACzB,SAASA,EAAE,OAAA,EAAS,SAAA;AAAA,EACpB,MAAMA,EAAE,SAAS,IAAI,CAAC;AAAA,EACtB,OAAOA,EAAE,SAAS,IAAI,CAAC;AAAA,EACvB,KAAKE;AAAA,EACL,aAAaF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AAA,cACC,MAAK;AAAA,cACL,YAAU;AAAA,cACV,OAAOT,EAAE,UAAU;AAAA,cACnB,cAAcA,EAAE,iBAAiB;AAAA,YAAA;AAAA,UAAA;AAAA,UAEnC,gBAAAQ;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,YAAU;AAAA,cACV,OAAOT,EAAE,kBAAkB;AAAA,cAC3B,cAAcA,EAAE,mBAAmB;AAAA,cACnC,WAAAE;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,IAEF,gBAAAM;AAAA,MAACK;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOb,EAAE,kBAAkB;AAAA,QAC3B,SAAS;AAAA,UACP;AAAA,YACE,OAAO;AAAA,YACP,OAAOA,EAAE,qBAAqB;AAAA,YAC9B,aAAaA,EAAE,2BAA2B;AAAA,UAAA;AAAA,UAE5C;AAAA,YACE,OAAO;AAAA,YACP,OAAOA,EAAE,oBAAoB;AAAA,YAC7B,aAAaA,EAAE,0BAA0B;AAAA,UAAA;AAAA,QAC3C;AAAA,MACF;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/Locations/LocationForm/Form.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { useTranslation } from 'react-i18next'\nimport { phoneValidation, zipValidation } from '@/helpers/validations'\nimport { CheckboxGroupField, Flex, Grid, SelectField, TextInputField } from '@/components/Common'\nimport { STATES_ABBR } from '@/shared/constants'\nimport { commonMasks, useMaskedTransform } from '@/helpers/mask'\n\nexport const LocationFormSchema = z.object({\n phoneNumber: phoneValidation,\n street1: z.string().min(1),\n street2: z.string().optional(),\n city: z.string().min(1),\n state: z.string().min(1),\n zip: zipValidation,\n addressType: z.array(z.enum(['mailingAddress', 'filingAddress'])).optional(),\n})\n\nexport type LocationFormInputs = z.infer<typeof LocationFormSchema>\n\ninterface FormProps {\n isMailingLocked?: boolean\n isFilingLocked?: boolean\n}\n\nexport function Form({ isMailingLocked = false, isFilingLocked = false }: FormProps = {}) {\n const { t } = useTranslation('Company.Locations')\n const transform = useMaskedTransform(commonMasks.phoneMask)\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <Grid\n gap={{ base: 20, small: 8 }}\n gridTemplateColumns={{ base: '1fr', small: ['1fr', '1fr'] }}\n >\n <TextInputField\n name=\"street1\"\n isRequired\n label={t('street1Label')}\n errorMessage={t('validations.street1')}\n />\n <TextInputField name=\"street2\" label={t('street2Label')} />\n <TextInputField\n name=\"city\"\n label={t('cityLabel')}\n isRequired\n errorMessage={t('validations.city')}\n />\n <SelectField\n name=\"state\"\n options={STATES_ABBR.map((stateAbbr: (typeof STATES_ABBR)[number]) => ({\n label: t(`statesHash.${stateAbbr}`, { ns: 'common' }),\n value: stateAbbr,\n }))}\n label={t('stateLabel')}\n placeholder={t('statePlaceholder')}\n errorMessage={t('validations.state')}\n isRequired\n />\n <TextInputField\n name=\"zip\"\n isRequired\n label={t('zipLabel')}\n errorMessage={t('validations.zip')}\n />\n <TextInputField\n name=\"phoneNumber\"\n isRequired\n label={t('phoneNumberLabel')}\n errorMessage={t('validations.phone')}\n transform={transform}\n />\n </Grid>\n <CheckboxGroupField\n name=\"addressType\"\n label={t('addressTypeLabel')}\n options={[\n {\n value: 'mailingAddress',\n label: t('mailingAddressLabel'),\n description: isMailingLocked\n ? t('mailingAddressDescriptionLocked')\n : t('mailingAddressDescription'),\n isDisabled: isMailingLocked,\n },\n {\n value: 'filingAddress',\n label: t('filingAddressLabel'),\n description: isFilingLocked\n ? t('filingAddressDescriptionLocked')\n : t('filingAddressDescription'),\n isDisabled: isFilingLocked,\n },\n ]}\n />\n </Flex>\n )\n}\n"],"names":["LocationFormSchema","z","phoneValidation","zipValidation","Form","isMailingLocked","isFilingLocked","t","useTranslation","transform","useMaskedTransform","commonMasks","jsxs","Flex","Grid","jsx","TextInputField","SelectField","STATES_ABBR","stateAbbr","C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