@gusto/embedded-react-sdk 0.30.0 → 0.31.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 (318) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +2 -1
  3. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +48 -36
  4. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
  5. package/dist/components/Common/SignatureForm/SignatureForm.js +12 -11
  6. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  7. package/dist/components/Common/SignatureForm/SignatureFormActions.js +1 -1
  8. package/dist/components/Common/SignatureForm/SignatureFormFields.js +2 -2
  9. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
  10. package/dist/components/Common/UI/ComboBox/ComboBox.d.ts +1 -1
  11. package/dist/components/Common/UI/ComboBox/ComboBox.js +73 -66
  12. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  13. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +5 -0
  14. package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
  15. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  16. package/dist/components/Company/AssignSignatory/AssignSignatory.js +1 -1
  17. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +1 -1
  18. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +1 -1
  19. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +16 -17
  20. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  21. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  22. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  23. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +1 -1
  24. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +5 -6
  25. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  26. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  27. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  28. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  29. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  30. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +6 -5
  31. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  32. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  33. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  34. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +6 -5
  35. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  36. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +2 -2
  37. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  38. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  39. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +2 -2
  40. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  41. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  42. package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -2
  43. package/dist/components/Company/FederalTaxes/Form.js +4 -3
  44. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  45. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -5
  46. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  47. package/dist/components/Company/Industry/Context.js +7 -6
  48. package/dist/components/Company/Industry/Context.js.map +1 -1
  49. package/dist/components/Company/Industry/Industry.js +1 -1
  50. package/dist/components/Company/Industry/Industry.js.map +1 -1
  51. package/dist/components/Company/Locations/LocationForm/Form.js +5 -6
  52. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  53. package/dist/components/Company/Locations/LocationForm/LocationForm.js +14 -14
  54. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  55. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  56. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  57. package/dist/components/Company/Locations/LocationsList/LocationsList.js +31 -31
  58. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  59. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  60. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  61. package/dist/components/Company/OnboardingOverview/Completed.js +3 -2
  62. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  63. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +3 -2
  64. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  65. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +2 -2
  66. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  67. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  68. package/dist/components/Company/PaySchedule/PaySchedule.js +2 -2
  69. package/dist/components/Company/PaySchedule/_parts/Edit.js +23 -24
  70. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  71. package/dist/components/Company/PaySchedule/_parts/Head.js +9 -8
  72. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  73. package/dist/components/Company/PaySchedule/_parts/List.js +12 -11
  74. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  75. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
  76. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  77. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  78. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  79. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  80. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  81. package/dist/components/Contractor/Address/Address.js +2 -2
  82. package/dist/components/Contractor/Address/Form.js +7 -8
  83. package/dist/components/Contractor/Address/Form.js.map +1 -1
  84. package/dist/components/Contractor/Address/useAddress.js +6 -5
  85. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  86. package/dist/components/Contractor/ContractorList/index.js +17 -17
  87. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +2 -2
  88. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
  89. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +102 -99
  90. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  91. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +3 -1
  92. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +35 -31
  93. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  94. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +22 -23
  95. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  96. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +8 -7
  97. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  98. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +51 -48
  99. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  100. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +58 -66
  101. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  102. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +7 -6
  103. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  104. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +3 -2
  105. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  106. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +3 -2
  107. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  108. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  109. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
  110. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  111. package/dist/components/Contractor/Submit/Submit.js +1 -1
  112. package/dist/components/Contractor/index.d.ts +5 -0
  113. package/dist/components/Contractor/index.js +21 -11
  114. package/dist/components/Contractor/index.js.map +1 -1
  115. package/dist/components/Employee/Compensation/Edit.js +14 -14
  116. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +11 -10
  117. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  118. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +12 -11
  119. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  120. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +12 -11
  121. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  122. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +1 -1
  123. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +2 -3
  124. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  125. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +7 -7
  126. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  127. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +24 -24
  128. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  129. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +3 -2
  130. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  131. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.d.ts +0 -1
  132. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  133. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  134. package/dist/components/Employee/DocumentSigner/DocumentSigner.d.ts +2 -1
  135. package/dist/components/Employee/DocumentSigner/DocumentSigner.js +42 -21
  136. package/dist/components/Employee/DocumentSigner/DocumentSigner.js.map +1 -1
  137. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.d.ts +5 -0
  138. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +65 -0
  139. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -0
  140. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +10 -0
  141. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +120 -0
  142. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -0
  143. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.d.ts +43 -0
  144. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js +51 -0
  145. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.js.map +1 -0
  146. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.test.d.ts +1 -0
  147. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/countries.d.ts +4 -0
  148. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/countries.js +199 -0
  149. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/countries.js.map +1 -0
  150. package/dist/components/Employee/{EmploymentEligibility → DocumentSigner/EmploymentEligibility}/index.d.ts +0 -1
  151. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.d.ts +107 -0
  152. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +284 -0
  153. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -0
  154. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.module.scss.js +10 -0
  155. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.module.scss.js.map +1 -0
  156. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +1 -1
  157. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  158. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  159. package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.d.ts +6 -0
  160. package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.js +33 -14
  161. package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  162. package/dist/components/Employee/DocumentSigner/stateMachine.d.ts +1 -0
  163. package/dist/components/Employee/DocumentSigner/stateMachine.js +41 -23
  164. package/dist/components/Employee/DocumentSigner/stateMachine.js.map +1 -1
  165. package/dist/components/Employee/EmployeeDocuments/EmployeeDocuments.d.ts +10 -0
  166. package/dist/components/Employee/EmployeeDocuments/EmployeeDocuments.js +55 -0
  167. package/dist/components/Employee/EmployeeDocuments/EmployeeDocuments.js.map +1 -0
  168. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.d.ts +18 -0
  169. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +116 -0
  170. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -0
  171. package/dist/components/Employee/EmployeeDocuments/index.d.ts +2 -0
  172. package/dist/components/Employee/EmployeeList/EmployeeList.js +4 -3
  173. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  174. package/dist/components/Employee/EmployeeList/Head.js +3 -2
  175. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  176. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
  177. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  178. package/dist/components/Employee/FederalTaxes/FederalForm.js +7 -7
  179. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
  180. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  181. package/dist/components/Employee/Landing/Landing.js +31 -26
  182. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  183. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.d.ts +2 -1
  184. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js +23 -21
  185. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
  186. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -0
  187. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  188. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.d.ts +1 -0
  189. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +68 -49
  190. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  191. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  192. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -2
  193. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
  194. package/dist/components/Employee/PaymentMethod/Split.js +8 -8
  195. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  196. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  197. package/dist/components/Employee/Profile/AdminPersonalDetails.js +1 -1
  198. package/dist/components/Employee/Profile/HomeAddress.js +9 -10
  199. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  200. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -11
  201. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  202. package/dist/components/Employee/Profile/Profile.js +11 -11
  203. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  204. package/dist/components/Employee/Profile/useProfile.js +4 -3
  205. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  206. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.d.ts +3 -0
  207. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +43 -30
  208. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  209. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.d.ts +1 -1
  210. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js +23 -17
  211. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -1
  212. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js +36 -46
  213. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -1
  214. package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
  215. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  216. package/dist/components/Employee/Taxes/FederalForm.js +7 -7
  217. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  218. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  219. package/dist/components/Employee/index.d.ts +3 -0
  220. package/dist/components/Employee/index.js +20 -16
  221. package/dist/components/Employee/index.js.map +1 -1
  222. package/dist/components/Flow/Flow.js +3 -2
  223. package/dist/components/Flow/Flow.js.map +1 -1
  224. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +63 -52
  225. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  226. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +4 -4
  227. package/dist/components/InformationRequests/InformationRequests.js +1 -1
  228. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +9 -9
  229. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +2 -0
  230. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +29 -0
  231. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -0
  232. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +13 -0
  233. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +45 -0
  234. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -0
  235. package/dist/components/Payroll/OffCycle/index.d.ts +3 -0
  236. package/dist/components/Payroll/OffCycle/offCycleStateMachine.d.ts +6 -0
  237. package/dist/components/Payroll/OffCycle/offCycleStateMachine.js +58 -0
  238. package/dist/components/Payroll/OffCycle/offCycleStateMachine.js.map +1 -0
  239. package/dist/components/Payroll/OffCycle/offCycleStateMachine.test.d.ts +1 -0
  240. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.d.ts +2 -0
  241. package/dist/components/Payroll/{PayPeriodDateForm/PayPeriodDateFormTypes.d.ts → OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts} +5 -19
  242. package/dist/components/Payroll/OffCyclePayPeriodDateForm/index.d.ts +2 -0
  243. package/dist/components/Payroll/{PayPeriodDateForm/usePayPeriodDateValidation.d.ts → OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts} +1 -1
  244. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +2 -1
  245. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  246. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +3 -2
  247. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  248. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  249. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +51 -49
  250. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  251. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +2 -1
  252. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +93 -90
  253. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  254. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +1 -0
  255. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +26 -25
  256. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  257. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +38 -39
  258. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  259. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +18 -17
  260. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  261. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +3 -2
  262. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  263. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +3 -2
  264. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  265. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +23 -21
  266. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  267. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +3 -2
  268. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  269. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  270. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  271. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +1 -1
  272. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +6 -6
  273. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +3 -2
  274. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  275. package/dist/components/Payroll/helpers.d.ts +5 -0
  276. package/dist/components/Payroll/helpers.js +41 -40
  277. package/dist/components/Payroll/helpers.js.map +1 -1
  278. package/dist/components/Payroll/index.d.ts +3 -2
  279. package/dist/components/Payroll/index.js +16 -16
  280. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  281. package/dist/components/Payroll/usePreparedPayrollData.js +3 -2
  282. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  283. package/dist/contexts/ApiProvider/ApiProvider.js +6 -6
  284. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  285. package/dist/i18n/I18n.js +5 -5
  286. package/dist/i18n/I18n.js.map +1 -1
  287. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +1 -1
  288. package/dist/i18n/en/Employee.EmployeeDocuments.json.js +12 -0
  289. package/dist/i18n/en/Employee.EmployeeDocuments.json.js.map +1 -0
  290. package/dist/i18n/en/Employee.EmploymentEligibility.json.js +15 -19
  291. package/dist/i18n/en/Employee.EmploymentEligibility.json.js.map +1 -1
  292. package/dist/i18n/en/Employee.I9SignatureForm.json.js +78 -0
  293. package/dist/i18n/en/Employee.I9SignatureForm.json.js.map +1 -0
  294. package/dist/i18n/en/Payroll.OffCycle.json.js +8 -0
  295. package/dist/i18n/en/Payroll.OffCycle.json.js.map +1 -0
  296. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +18 -0
  297. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js.map +1 -0
  298. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +1 -1
  299. package/dist/i18n/en/Payroll.PayrollOverview.json.js +1 -1
  300. package/dist/shared/constants.d.ts +9 -0
  301. package/dist/shared/constants.js +60 -53
  302. package/dist/shared/constants.js.map +1 -1
  303. package/dist/style.css +1 -1
  304. package/dist/types/i18next.d.ts +110 -41
  305. package/package.json +14 -14
  306. package/dist/components/Employee/EmploymentEligibility/EmploymentEligibility.d.ts +0 -3
  307. package/dist/components/Employee/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +0 -37
  308. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.d.ts +0 -2
  309. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js +0 -35
  310. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js.map +0 -1
  311. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.d.ts +0 -2
  312. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js +0 -65
  313. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js.map +0 -1
  314. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js +0 -18
  315. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js.map +0 -1
  316. package/dist/components/Payroll/PayPeriodDateForm/index.d.ts +0 -3
  317. package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js +0 -32
  318. package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js.map +0 -1
@@ -0,0 +1,65 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { APIError as I } from "@gusto/embedded-api/models/errors/apierror";
3
+ import { useI9VerificationGetAuthorization as A } from "@gusto/embedded-api/react-query/i9VerificationGetAuthorization";
4
+ import { useI9VerificationUpdateMutation as _ } from "@gusto/embedded-api/react-query/i9VerificationUpdate";
5
+ import { EmploymentEligibilityPresentation as v } from "./EmploymentEligibilityPresentation.js";
6
+ import { BaseComponent as x } from "../../../Base/Base.js";
7
+ import { useBase as z } from "../../../Base/useBase.js";
8
+ import { useComponentDictionary as L, useI18n as S } from "../../../../i18n/I18n.js";
9
+ import { componentEvents as T } from "../../../../shared/constants.js";
10
+ function G(o) {
11
+ return /* @__PURE__ */ r(x, { ...o, children: /* @__PURE__ */ r(M, { ...o }) });
12
+ }
13
+ const M = ({ employeeId: o, dictionary: s }) => {
14
+ L("Employee.EmploymentEligibility", s), S("Employee.EmploymentEligibility");
15
+ const { onEvent: m, baseSubmitHandler: c, LoadingIndicator: p } = z(), { data: l, isLoading: y } = A(
16
+ { employeeId: o },
17
+ {
18
+ retry: !1,
19
+ throwOnError: (i) => !(i instanceof I && i.httpMeta.response.status === 404)
20
+ }
21
+ ), t = l?.i9Authorization, { mutateAsync: d, isPending: u } = _(), E = async (i) => {
22
+ await c(i, async (h) => {
23
+ const { authorizationStatus: n, documentType: a, documentNumber: e, expirationDate: b, country: g } = h;
24
+ if (!n) return;
25
+ const D = await d({
26
+ request: {
27
+ employeeId: o,
28
+ requestBody: {
29
+ authorizationStatus: n,
30
+ version: t?.version,
31
+ ...n === "permanent_resident" && e && {
32
+ documentType: "uscis_alien_registration_number",
33
+ documentNumber: e
34
+ },
35
+ ...n === "alien" && {
36
+ ...e && a && { documentType: a, documentNumber: e },
37
+ expirationDate: b,
38
+ ...a === "foreign_passport" && { country: g }
39
+ }
40
+ }
41
+ }
42
+ });
43
+ m(T.EMPLOYEE_EMPLOYMENT_ELIGIBILITY_DONE, D.i9Authorization);
44
+ });
45
+ }, f = t ? {
46
+ authorizationStatus: t.authorizationStatus,
47
+ documentType: t.documentType ?? void 0,
48
+ expirationDate: t.expirationDate ? new Date(t.expirationDate) : void 0,
49
+ country: t.country ?? void 0
50
+ } : {};
51
+ return !u && y ? /* @__PURE__ */ r(p, {}) : /* @__PURE__ */ r(
52
+ v,
53
+ {
54
+ onSubmit: E,
55
+ defaultValues: f,
56
+ hasDocumentNumber: t?.hasDocumentNumber,
57
+ isPending: u
58
+ },
59
+ t?.uuid
60
+ );
61
+ };
62
+ export {
63
+ G as EmploymentEligibility
64
+ };
65
+ //# sourceMappingURL=EmploymentEligibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmploymentEligibility.js","sources":["../../../../../src/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.tsx"],"sourcesContent":["import { APIError } from '@gusto/embedded-api/models/errors/apierror'\nimport { useI9VerificationGetAuthorization } from '@gusto/embedded-api/react-query/i9VerificationGetAuthorization'\nimport { useI9VerificationUpdateMutation } from '@gusto/embedded-api/react-query/i9VerificationUpdate'\nimport { EmploymentEligibilityPresentation } from './EmploymentEligibilityPresentation'\nimport type {\n EmploymentEligibilityInputs,\n EmploymentEligibilityPayload,\n} from './EmploymentEligibilitySchema'\nimport type { BaseComponentInterface } from '@/components/Base/Base'\nimport { BaseComponent } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\n\nexport interface EmploymentEligibilityProps extends BaseComponentInterface<'Employee.EmploymentEligibility'> {\n employeeId: string\n}\n\nexport function EmploymentEligibility(props: EmploymentEligibilityProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props} />\n </BaseComponent>\n )\n}\n\nconst Root = ({ employeeId, dictionary }: EmploymentEligibilityProps) => {\n useComponentDictionary('Employee.EmploymentEligibility', dictionary)\n useI18n('Employee.EmploymentEligibility')\n const { onEvent, baseSubmitHandler, LoadingIndicator } = useBase()\n\n const { data: i9AuthData, isLoading } = useI9VerificationGetAuthorization(\n { employeeId },\n {\n retry: false,\n throwOnError: (error: Error) => {\n return !(error instanceof APIError && error.httpMeta.response.status === 404)\n },\n },\n )\n\n const existingAuth = i9AuthData?.i9Authorization\n\n const { mutateAsync: updateI9Authorization, isPending } = useI9VerificationUpdateMutation()\n\n const handleSubmit = async (data: EmploymentEligibilityPayload) => {\n await baseSubmitHandler(data, async payload => {\n const { authorizationStatus, documentType, documentNumber, expirationDate, country } = payload\n\n if (!authorizationStatus) return\n\n const result = await updateI9Authorization({\n request: {\n employeeId,\n requestBody: {\n authorizationStatus,\n version: existingAuth?.version,\n ...(authorizationStatus === 'permanent_resident' &&\n documentNumber && {\n documentType: 'uscis_alien_registration_number',\n documentNumber,\n }),\n ...(authorizationStatus === 'alien' && {\n ...(documentNumber && documentType && { documentType, documentNumber }),\n expirationDate,\n ...(documentType === 'foreign_passport' && { country }),\n }),\n },\n },\n })\n\n onEvent(componentEvents.EMPLOYEE_EMPLOYMENT_ELIGIBILITY_DONE, result.i9Authorization)\n })\n }\n\n const defaultValues: Partial<EmploymentEligibilityInputs> = existingAuth\n ? {\n authorizationStatus: existingAuth.authorizationStatus,\n documentType: existingAuth.documentType ?? undefined,\n expirationDate: existingAuth.expirationDate\n ? new Date(existingAuth.expirationDate)\n : undefined,\n country: existingAuth.country ?? undefined,\n }\n : {}\n\n if (!isPending && isLoading) return <LoadingIndicator />\n\n return (\n <EmploymentEligibilityPresentation\n key={existingAuth?.uuid}\n onSubmit={handleSubmit}\n defaultValues={defaultValues}\n hasDocumentNumber={existingAuth?.hasDocumentNumber}\n isPending={isPending}\n />\n )\n}\n"],"names":["EmploymentEligibility","props","jsx","BaseComponent","Root","employeeId","dictionary","useComponentDictionary","useI18n","onEvent","baseSubmitHandler","LoadingIndicator","useBase","i9AuthData","isLoading","useI9VerificationGetAuthorization","error","APIError","existingAuth","updateI9Authorization","isPending","useI9VerificationUpdateMutation","handleSubmit","data","payload","authorizationStatus","documentType","documentNumber","expirationDate","country","result","componentEvents","defaultValues","EmploymentEligibilityPresentation"],"mappings":";;;;;;;;;AAkBO,SAASA,EAAsBC,GAAmC;AACvE,SACE,gBAAAC,EAACC,KAAe,GAAGF,GACjB,4BAACG,GAAA,EAAM,GAAGH,GAAO,EAAA,CACnB;AAEJ;AAEA,MAAMG,IAAO,CAAC,EAAE,YAAAC,GAAY,YAAAC,QAA6C;AACvE,EAAAC,EAAuB,kCAAkCD,CAAU,GACnEE,EAAQ,gCAAgC;AACxC,QAAM,EAAE,SAAAC,GAAS,mBAAAC,GAAmB,kBAAAC,EAAA,IAAqBC,EAAA,GAEnD,EAAE,MAAMC,GAAY,WAAAC,EAAA,IAAcC;AAAA,IACt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AAAA,IAAA;AAAA,MAEC,UAAUX;AAAA,MACV,eAAAU;AAAA,MACA,mBAAmBd,GAAc;AAAA,MACjC,WAAAE;AAAA,IAAA;AAAA,IAJKF,GAAc;AAAA,EAAA;AAOzB;"}
@@ -0,0 +1,10 @@
1
+ import { SubmitHandler } from 'react-hook-form';
2
+ import { EmploymentEligibilityInputs, EmploymentEligibilityPayload } from './EmploymentEligibilitySchema';
3
+ interface EmploymentEligibilityPresentationProps {
4
+ onSubmit: SubmitHandler<EmploymentEligibilityPayload>;
5
+ defaultValues?: Partial<EmploymentEligibilityInputs>;
6
+ hasDocumentNumber?: boolean | null;
7
+ isPending?: boolean;
8
+ }
9
+ export declare const EmploymentEligibilityPresentation: ({ onSubmit, defaultValues, hasDocumentNumber, isPending, }: EmploymentEligibilityPresentationProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,120 @@
1
+ import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
+ import { useState as v } from "react";
3
+ import { useTranslation as I, Trans as A } from "react-i18next";
4
+ import { useForm as O, useWatch as d, FormProvider as $ } from "react-hook-form";
5
+ import { zodResolver as j } from "@hookform/resolvers/zod";
6
+ import { AuthorizationStatus as q, I9AuthorizationDocumentType as w } from "@gusto/embedded-api/models/components/i9authorization";
7
+ import { generateEmploymentEligibilitySchema as L } from "./EmploymentEligibilitySchema.js";
8
+ import { COUNTRIES as k } from "./countries.js";
9
+ import { Flex as b } from "../../../Common/Flex/Flex.js";
10
+ import "classnames";
11
+ import "../../../../shared/constants.js";
12
+ import { RadioGroupField as P } from "../../../Common/Fields/RadioGroupField/RadioGroupField.js";
13
+ import { TextInputField as V } from "../../../Common/Fields/TextInputField/TextInputField.js";
14
+ import { ActionsLayout as B } from "../../../Common/ActionsLayout/ActionsLayout.js";
15
+ import { DatePickerField as H } from "../../../Common/Fields/DatePickerField/DatePickerField.js";
16
+ import { useComponentContext as K } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
17
+ import { ComboBoxField as G } from "../../../Common/Fields/ComboBoxField/ComboBoxField.js";
18
+ import { Form as M } from "../../../Common/Form/Form.js";
19
+ import { useI18n as U } from "../../../../i18n/I18n.js";
20
+ import { SelectField as W } from "../../../Common/Fields/SelectField/SelectField.js";
21
+ const J = {
22
+ citizen: "statusDescriptions.citizen",
23
+ permanent_resident: "statusDescriptions.permanent_resident",
24
+ noncitizen: "statusDescriptions.noncitizen",
25
+ alien: "statusDescriptions.alien"
26
+ }, fe = ({
27
+ onSubmit: h,
28
+ defaultValues: f,
29
+ hasDocumentNumber: y,
30
+ isPending: D
31
+ }) => {
32
+ U("Employee.EmploymentEligibility");
33
+ const { Heading: g, Text: x, Alert: z, Button: E, Link: N } = K(), { t: e } = I("Employee.EmploymentEligibility"), [m, a] = v(!!y), r = O({
34
+ resolver: j(L(m)),
35
+ defaultValues: f
36
+ }), { control: l, setValue: u, clearErrors: c } = r, o = d({ control: l, name: "authorizationStatus" }), s = d({ control: l, name: "documentType" }), S = Object.values(q).map((n) => ({
37
+ value: n,
38
+ label: e(`select.options.${n}`)
39
+ })), T = Object.values(w).map((n) => ({
40
+ value: n,
41
+ label: e(`authorizationDocument.options.${n}`)
42
+ })), C = () => {
43
+ u("documentNumber", ""), c("documentNumber"), a(!1);
44
+ }, F = () => {
45
+ u("documentNumber", ""), c("documentNumber"), a(!1);
46
+ }, _ = o === "alien", R = o === "permanent_resident" || o === "alien" && !!s, i = o === "permanent_resident" ? "uscis_alien_registration_number" : s;
47
+ return /* @__PURE__ */ t($, { ...r, children: /* @__PURE__ */ t(M, { onSubmit: r.handleSubmit(h), children: /* @__PURE__ */ p(b, { flexDirection: "column", gap: 16, children: [
48
+ /* @__PURE__ */ p(b, { flexDirection: "column", gap: 2, children: [
49
+ /* @__PURE__ */ t(g, { as: "h2", children: e("title") }),
50
+ /* @__PURE__ */ t(x, { variant: "supporting", children: /* @__PURE__ */ t(
51
+ A,
52
+ {
53
+ i18nKey: "subtitle",
54
+ t: e,
55
+ components: {
56
+ formI9Link: /* @__PURE__ */ t(N, {})
57
+ }
58
+ }
59
+ ) })
60
+ ] }),
61
+ /* @__PURE__ */ t(
62
+ W,
63
+ {
64
+ name: "authorizationStatus",
65
+ label: e("select.label"),
66
+ description: e("select.description"),
67
+ placeholder: e("select.placeholder"),
68
+ options: S,
69
+ isRequired: !0,
70
+ onChange: C
71
+ }
72
+ ),
73
+ o && /* @__PURE__ */ t(
74
+ z,
75
+ {
76
+ status: "info",
77
+ label: e(J[o]),
78
+ disableScrollIntoView: !0
79
+ }
80
+ ),
81
+ o === "alien" && /* @__PURE__ */ t(H, { name: "expirationDate", label: e("expirationDate.label") }),
82
+ _ && /* @__PURE__ */ t(
83
+ P,
84
+ {
85
+ name: "documentType",
86
+ label: e("authorizationDocument.label"),
87
+ options: T,
88
+ isRequired: !0,
89
+ onChange: F
90
+ }
91
+ ),
92
+ R && i && /* @__PURE__ */ t(
93
+ V,
94
+ {
95
+ name: "documentNumber",
96
+ label: e(`documentNumber.${i}.label`),
97
+ description: i !== "foreign_passport" ? e(`documentNumber.${i}.description`) : void 0,
98
+ placeholder: m ? e(`documentNumber.${i}.placeholder`) : void 0,
99
+ isRequired: !0
100
+ }
101
+ ),
102
+ s === "foreign_passport" && o === "alien" && /* @__PURE__ */ t(
103
+ G,
104
+ {
105
+ name: "country",
106
+ label: e("country.label"),
107
+ description: e("country.description"),
108
+ options: k,
109
+ placeholder: e("country.placeholder"),
110
+ allowsCustomValue: !0,
111
+ isRequired: !0
112
+ }
113
+ ),
114
+ /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(E, { type: "submit", isLoading: D, children: e("submit") }) })
115
+ ] }) }) });
116
+ };
117
+ export {
118
+ fe as EmploymentEligibilityPresentation
119
+ };
120
+ //# sourceMappingURL=EmploymentEligibilityPresentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmploymentEligibilityPresentation.js","sources":["../../../../../src/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.tsx"],"sourcesContent":["import { useState } from 'react'\nimport { useTranslation, Trans } from 'react-i18next'\nimport { FormProvider, useForm, useWatch, type SubmitHandler } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport {\n AuthorizationStatus,\n I9AuthorizationDocumentType,\n} from '@gusto/embedded-api/models/components/i9authorization'\nimport {\n generateEmploymentEligibilitySchema,\n type EmploymentEligibilityInputs,\n type EmploymentEligibilityPayload,\n} from './EmploymentEligibilitySchema'\nimport { COUNTRIES } from './countries'\nimport {\n Flex,\n SelectField,\n RadioGroupField,\n TextInputField,\n DatePickerField,\n ActionsLayout,\n} from '@/components/Common'\nimport { ComboBoxField } from '@/components/Common/Fields/ComboBoxField/ComboBoxField'\nimport { Form } from '@/components/Common/Form'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\n\ninterface EmploymentEligibilityPresentationProps {\n onSubmit: SubmitHandler<EmploymentEligibilityPayload>\n defaultValues?: Partial<EmploymentEligibilityInputs>\n hasDocumentNumber?: boolean | null\n isPending?: boolean\n}\n\nconst statusDescriptionKeys = {\n citizen: 'statusDescriptions.citizen',\n permanent_resident: 'statusDescriptions.permanent_resident',\n noncitizen: 'statusDescriptions.noncitizen',\n alien: 'statusDescriptions.alien',\n} as const satisfies Record<AuthorizationStatus, string>\n\nexport const EmploymentEligibilityPresentation = ({\n onSubmit,\n defaultValues,\n hasDocumentNumber,\n isPending,\n}: EmploymentEligibilityPresentationProps) => {\n useI18n('Employee.EmploymentEligibility')\n const { Heading, Text, Alert, Button, Link } = useComponentContext()\n const { t } = useTranslation('Employee.EmploymentEligibility')\n\n const [hasExistingDocumentNumber, setHasExistingDocumentNumber] = useState(!!hasDocumentNumber)\n\n const formMethods = useForm<EmploymentEligibilityInputs, unknown, EmploymentEligibilityPayload>({\n resolver: zodResolver(generateEmploymentEligibilitySchema(hasExistingDocumentNumber)),\n defaultValues,\n })\n\n const { control, setValue, clearErrors } = formMethods\n const authorizationStatus = useWatch({ control, name: 'authorizationStatus' })\n const documentType = useWatch({ control, name: 'documentType' })\n\n const statusOptions = Object.values(AuthorizationStatus).map(value => ({\n value,\n label: t(`select.options.${value}`),\n }))\n\n const authorizationDocumentOptions = Object.values(I9AuthorizationDocumentType).map(value => ({\n value,\n label: t(`authorizationDocument.options.${value}`),\n }))\n\n const handleAuthorizationStatusChange = () => {\n setValue('documentNumber', '')\n clearErrors('documentNumber')\n setHasExistingDocumentNumber(false)\n }\n\n const handleDocumentTypeChange = () => {\n setValue('documentNumber', '')\n clearErrors('documentNumber')\n setHasExistingDocumentNumber(false)\n }\n\n const showDocumentTypeRadio = authorizationStatus === 'alien'\n const showDocumentNumberInput =\n authorizationStatus === 'permanent_resident' ||\n (authorizationStatus === 'alien' && !!documentType)\n const activeDocumentType =\n authorizationStatus === 'permanent_resident' ? 'uscis_alien_registration_number' : documentType\n\n return (\n <FormProvider {...formMethods}>\n <Form onSubmit={formMethods.handleSubmit(onSubmit)}>\n <Flex flexDirection=\"column\" gap={16}>\n <Flex flexDirection=\"column\" gap={2}>\n <Heading as=\"h2\">{t('title')}</Heading>\n <Text variant=\"supporting\">\n <Trans\n i18nKey={'subtitle'}\n t={t}\n components={{\n formI9Link: <Link />,\n }}\n />\n </Text>\n </Flex>\n\n <SelectField\n name=\"authorizationStatus\"\n label={t('select.label')}\n description={t('select.description')}\n placeholder={t('select.placeholder')}\n options={statusOptions}\n isRequired\n onChange={handleAuthorizationStatusChange}\n />\n\n {authorizationStatus && (\n <Alert\n status=\"info\"\n label={t(statusDescriptionKeys[authorizationStatus])}\n disableScrollIntoView\n />\n )}\n\n {authorizationStatus === 'alien' && (\n <DatePickerField name=\"expirationDate\" label={t('expirationDate.label')} />\n )}\n\n {showDocumentTypeRadio && (\n <RadioGroupField\n name=\"documentType\"\n label={t('authorizationDocument.label')}\n options={authorizationDocumentOptions}\n isRequired\n onChange={handleDocumentTypeChange}\n />\n )}\n\n {showDocumentNumberInput && activeDocumentType && (\n <TextInputField\n name=\"documentNumber\"\n label={t(`documentNumber.${activeDocumentType}.label`)}\n description={\n activeDocumentType !== 'foreign_passport'\n ? t(`documentNumber.${activeDocumentType}.description`)\n : undefined\n }\n placeholder={\n hasExistingDocumentNumber\n ? t(`documentNumber.${activeDocumentType}.placeholder`)\n : undefined\n }\n isRequired\n />\n )}\n\n {documentType === 'foreign_passport' && authorizationStatus === 'alien' && (\n <ComboBoxField\n name=\"country\"\n label={t('country.label')}\n description={t('country.description')}\n options={COUNTRIES}\n placeholder={t('country.placeholder')}\n allowsCustomValue\n isRequired\n />\n )}\n\n <ActionsLayout>\n <Button type=\"submit\" isLoading={isPending}>\n {t('submit')}\n </Button>\n </ActionsLayout>\n </Flex>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["statusDescriptionKeys","EmploymentEligibilityPresentation","onSubmit","defaultValues","hasDocumentNumber","isPending","useI18n","Heading","Text","Alert","Button","Link","useComponentContext","t","useTranslation","hasExistingDocumentNumber","setHasExistingDocumentNumber","useState","formMethods","useForm","zodResolver","generateEmploymentEligibilitySchema","control","setValue","clearErrors","authorizationStatus","useWatch","documentType","statusOptions","AuthorizationStatus","value","authorizationDocumentOptions","I9AuthorizationDocumentType","handleAuthorizationStatusChange","handleDocumentTypeChange","showDocumentTypeRadio","showDocumentNumberInput","activeDocumentType","FormProvider","jsx","Form","jsxs","Flex","Trans","SelectField","DatePickerField","RadioGroupField","TextInputField","ComboBoxField","COUNTRIES","ActionsLayout"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkCA,MAAMA,IAAwB;AAAA,EAC5B,SAAS;AAAA,EACT,oBAAoB;AAAA,EACpB,YAAY;AAAA,EACZ,OAAO;AACT,GAEaC,KAAoC,CAAC;AAAA,EAChD,UAAAC;AAAA,EACA,eAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,WAAAC;AACF,MAA8C;AAC5C,EAAAC,EAAQ,gCAAgC;AACxC,QAAM,EAAE,SAAAC,GAAS,MAAAC,GAAM,OAAA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MAAuB,qBACnBxB,EAAE,kBAAkBwB,CAAkB,cAAc,IACpD;AAAA,QAEN,aACEtB,IACIF,EAAE,kBAAkBwB,CAAkB,cAAc,IACpD;AAAA,QAEN,YAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAIbV,MAAiB,sBAAsBF,MAAwB,WAC9D,gBAAAc;AAAA,MAACS;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOnC,EAAE,eAAe;AAAA,QACxB,aAAaA,EAAE,qBAAqB;AAAA,QACpC,SAASoC;AAAA,QACT,aAAapC,EAAE,qBAAqB;AAAA,QACpC,mBAAiB;AAAA,QACjB,YAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAId,gBAAA0B,EAACW,GAAA,EACC,UAAA,gBAAAX,EAAC7B,GAAA,EAAO,MAAK,UAAS,WAAWL,GAC9B,UAAAQ,EAAE,QAAQ,EAAA,CACb,EAAA,CACF;AAAA,EAAA,EAAA,CACF,GACF,GACF;AAEJ;"}
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ export declare const generateEmploymentEligibilitySchema: (hasDocumentNumber?: boolean | null) => z.ZodEffects<z.ZodObject<{
3
+ authorizationStatus: z.ZodOptional<z.ZodNativeEnum<{
4
+ readonly Citizen: "citizen";
5
+ readonly Noncitizen: "noncitizen";
6
+ readonly PermanentResident: "permanent_resident";
7
+ readonly Alien: "alien";
8
+ }>>;
9
+ documentType: z.ZodOptional<z.ZodNativeEnum<{
10
+ readonly UscisAlienRegistrationNumber: "uscis_alien_registration_number";
11
+ readonly FormI94: "form_i94";
12
+ readonly ForeignPassport: "foreign_passport";
13
+ }>>;
14
+ documentNumber: z.ZodOptional<z.ZodString>;
15
+ expirationDate: z.ZodOptional<z.ZodEffects<z.ZodDate, string | undefined, Date>>;
16
+ country: z.ZodOptional<z.ZodString>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ expirationDate?: string | undefined;
19
+ documentNumber?: string | undefined;
20
+ country?: string | undefined;
21
+ authorizationStatus?: "citizen" | "permanent_resident" | "noncitizen" | "alien" | undefined;
22
+ documentType?: "uscis_alien_registration_number" | "form_i94" | "foreign_passport" | undefined;
23
+ }, {
24
+ expirationDate?: Date | undefined;
25
+ documentNumber?: string | undefined;
26
+ country?: string | undefined;
27
+ authorizationStatus?: "citizen" | "permanent_resident" | "noncitizen" | "alien" | undefined;
28
+ documentType?: "uscis_alien_registration_number" | "form_i94" | "foreign_passport" | undefined;
29
+ }>, {
30
+ expirationDate?: string | undefined;
31
+ documentNumber?: string | undefined;
32
+ country?: string | undefined;
33
+ authorizationStatus?: "citizen" | "permanent_resident" | "noncitizen" | "alien" | undefined;
34
+ documentType?: "uscis_alien_registration_number" | "form_i94" | "foreign_passport" | undefined;
35
+ }, {
36
+ expirationDate?: Date | undefined;
37
+ documentNumber?: string | undefined;
38
+ country?: string | undefined;
39
+ authorizationStatus?: "citizen" | "permanent_resident" | "noncitizen" | "alien" | undefined;
40
+ documentType?: "uscis_alien_registration_number" | "form_i94" | "foreign_passport" | undefined;
41
+ }>;
42
+ export type EmploymentEligibilityInputs = z.input<ReturnType<typeof generateEmploymentEligibilitySchema>>;
43
+ export type EmploymentEligibilityPayload = z.infer<ReturnType<typeof generateEmploymentEligibilitySchema>>;
@@ -0,0 +1,51 @@
1
+ import { z as o } from "zod";
2
+ import { I9AuthorizationDocumentType as i, AuthorizationStatus as r } from "@gusto/embedded-api/models/components/i9authorization";
3
+ const u = (t) => /^[Aa]?\d{7,9}$/.test(t), n = (t) => /^\d{9} ?[A-Za-z\d]\d$/.test(t), a = (t) => o.object({
4
+ authorizationStatus: o.nativeEnum(r).optional(),
5
+ documentType: o.nativeEnum(i).optional(),
6
+ documentNumber: o.string().optional(),
7
+ expirationDate: o.date().transform((e) => e.toISOString().split("T")[0]).optional(),
8
+ country: o.string().optional()
9
+ }).superRefine((e, s) => {
10
+ if (!e.authorizationStatus) {
11
+ s.addIssue({
12
+ code: o.ZodIssueCode.custom,
13
+ message: "Authorization status is required",
14
+ path: ["authorizationStatus"]
15
+ });
16
+ return;
17
+ }
18
+ e.authorizationStatus === "permanent_resident" && (e.documentNumber ? u(e.documentNumber) || s.addIssue({
19
+ code: o.ZodIssueCode.custom,
20
+ message: "Enter a 7-9 digit USCIS number or A-Number (e.g. A123456789)",
21
+ path: ["documentNumber"]
22
+ }) : t || s.addIssue({
23
+ code: o.ZodIssueCode.custom,
24
+ message: "Document number is required",
25
+ path: ["documentNumber"]
26
+ })), e.authorizationStatus === "alien" && (e.documentType || s.addIssue({
27
+ code: o.ZodIssueCode.custom,
28
+ message: "Authorization document is required",
29
+ path: ["documentType"]
30
+ }), e.documentNumber ? e.documentType === "uscis_alien_registration_number" && !u(e.documentNumber) ? s.addIssue({
31
+ code: o.ZodIssueCode.custom,
32
+ message: "Enter a 7-9 digit USCIS number or A-Number (e.g. A123456789)",
33
+ path: ["documentNumber"]
34
+ }) : e.documentType === "form_i94" && !n(e.documentNumber) && s.addIssue({
35
+ code: o.ZodIssueCode.custom,
36
+ message: "Enter a valid 11-character Form I-94 admission number",
37
+ path: ["documentNumber"]
38
+ }) : t || s.addIssue({
39
+ code: o.ZodIssueCode.custom,
40
+ message: "Document number is required",
41
+ path: ["documentNumber"]
42
+ }), e.documentType === "foreign_passport" && !e.country && s.addIssue({
43
+ code: o.ZodIssueCode.custom,
44
+ message: "Country of issuance is required",
45
+ path: ["country"]
46
+ }));
47
+ });
48
+ export {
49
+ a as generateEmploymentEligibilitySchema
50
+ };
51
+ //# sourceMappingURL=EmploymentEligibilitySchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmploymentEligibilitySchema.js","sources":["../../../../../src/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.ts"],"sourcesContent":["import { z } from 'zod'\nimport {\n AuthorizationStatus,\n I9AuthorizationDocumentType,\n} from '@gusto/embedded-api/models/components/i9authorization'\n\nconst isValidUscisNumber = (value: string) => /^[Aa]?\\d{7,9}$/.test(value)\nconst isValidI94Number = (value: string) => /^\\d{9} ?[A-Za-z\\d]\\d$/.test(value)\n\nexport const generateEmploymentEligibilitySchema = (hasDocumentNumber?: boolean | null) =>\n z\n .object({\n authorizationStatus: z.nativeEnum(AuthorizationStatus).optional(),\n documentType: z.nativeEnum(I9AuthorizationDocumentType).optional(),\n documentNumber: z.string().optional(),\n expirationDate: z\n .date()\n .transform(date => date.toISOString().split('T')[0])\n .optional(),\n country: z.string().optional(),\n })\n .superRefine((data, ctx) => {\n if (!data.authorizationStatus) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Authorization status is required',\n path: ['authorizationStatus'],\n })\n return\n }\n if (data.authorizationStatus === 'permanent_resident') {\n if (!data.documentNumber) {\n if (!hasDocumentNumber) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Document number is required',\n path: ['documentNumber'],\n })\n }\n } else if (!isValidUscisNumber(data.documentNumber)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Enter a 7-9 digit USCIS number or A-Number (e.g. A123456789)',\n path: ['documentNumber'],\n })\n }\n }\n if (data.authorizationStatus === 'alien') {\n if (!data.documentType) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Authorization document is required',\n path: ['documentType'],\n })\n }\n if (!data.documentNumber) {\n if (!hasDocumentNumber) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Document number is required',\n path: ['documentNumber'],\n })\n }\n } else if (\n data.documentType === 'uscis_alien_registration_number' &&\n !isValidUscisNumber(data.documentNumber)\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Enter a 7-9 digit USCIS number or A-Number (e.g. A123456789)',\n path: ['documentNumber'],\n })\n } else if (data.documentType === 'form_i94' && !isValidI94Number(data.documentNumber)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Enter a valid 11-character Form I-94 admission number',\n path: ['documentNumber'],\n })\n }\n if (data.documentType === 'foreign_passport' && !data.country) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'Country of issuance is required',\n path: ['country'],\n })\n }\n }\n })\n\nexport type EmploymentEligibilityInputs = z.input<\n ReturnType<typeof generateEmploymentEligibilitySchema>\n>\nexport type EmploymentEligibilityPayload = z.infer<\n ReturnType<typeof generateEmploymentEligibilitySchema>\n>\n"],"names":["isValidUscisNumber","value","isValidI94Number","generateEmploymentEligibilitySchema","hasDocumentNumber","z","AuthorizationStatus","I9AuthorizationDocumentType","date","data","ctx"],"mappings":";;AAMA,MAAMA,IAAqB,CAACC,MAAkB,iBAAiB,KAAKA,CAAK,GACnEC,IAAmB,CAACD,MAAkB,wBAAwB,KAAKA,CAAK,GAEjEE,IAAsC,CAACC,MAClDC,EACG,OAAO;AAAA,EACN,qBAAqBA,EAAE,WAAWC,CAAmB,EAAE,SAAA;AAAA,EACvD,cAAcD,EAAE,WAAWE,CAA2B,EAAE,SAAA;AAAA,EACxD,gBAAgBF,EAAE,OAAA,EAAS,SAAA;AAAA,EAC3B,gBAAgBA,EACb,KAAA,EACA,UAAU,CAAAG,MAAQA,EAAK,YAAA,EAAc,MAAM,GAAG,EAAE,CAAC,CAAC,EAClD,SAAA;AAAA,EACH,SAASH,EAAE,OAAA,EAAS,SAAA;AACtB,CAAC,EACA,YAAY,CAACI,GAAMC,MAAQ;AAC1B,MAAI,CAACD,EAAK,qBAAqB;AAC7B,IAAAC,EAAI,SAAS;AAAA,MACX,MAAML,EAAE,aAAa;AAAA,MACrB,SAAS;AAAA,MACT,MAAM,CAAC,qBAAqB;AAAA,IAAA,CAC7B;AACD;AAAA,EACF;AACA,EAAII,EAAK,wBAAwB,yBAC1BA,EAAK,iBAQET,EAAmBS,EAAK,cAAc,KAChDC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IAZID,KACHM,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IAUHI,EAAK,wBAAwB,YAC1BA,EAAK,gBACRC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,cAAc;AAAA,EAAA,CACtB,GAEEI,EAAK,iBASRA,EAAK,iBAAiB,qCACtB,CAACT,EAAmBS,EAAK,cAAc,IAEvCC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IACQI,EAAK,iBAAiB,cAAc,CAACP,EAAiBO,EAAK,cAAc,KAClFC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,IArBID,KACHM,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,gBAAgB;AAAA,EAAA,CACxB,GAkBDI,EAAK,iBAAiB,sBAAsB,CAACA,EAAK,WACpDC,EAAI,SAAS;AAAA,IACX,MAAML,EAAE,aAAa;AAAA,IACrB,SAAS;AAAA,IACT,MAAM,CAAC,SAAS;AAAA,EAAA,CACjB;AAGP,CAAC;"}
@@ -0,0 +1,4 @@
1
+ export declare const COUNTRIES: {
2
+ value: string;
3
+ label: string;
4
+ }[];
@@ -0,0 +1,199 @@
1
+ const a = [
2
+ { value: "United States", label: "United States" },
3
+ { value: "Afghanistan", label: "Afghanistan" },
4
+ { value: "Albania", label: "Albania" },
5
+ { value: "Algeria", label: "Algeria" },
6
+ { value: "Andorra", label: "Andorra" },
7
+ { value: "Angola", label: "Angola" },
8
+ { value: "Antigua and Barbuda", label: "Antigua and Barbuda" },
9
+ { value: "Argentina", label: "Argentina" },
10
+ { value: "Armenia", label: "Armenia" },
11
+ { value: "Australia", label: "Australia" },
12
+ { value: "Austria", label: "Austria" },
13
+ { value: "Azerbaijan", label: "Azerbaijan" },
14
+ { value: "Bahamas", label: "Bahamas" },
15
+ { value: "Bahrain", label: "Bahrain" },
16
+ { value: "Bangladesh", label: "Bangladesh" },
17
+ { value: "Barbados", label: "Barbados" },
18
+ { value: "Belarus", label: "Belarus" },
19
+ { value: "Belgium", label: "Belgium" },
20
+ { value: "Belize", label: "Belize" },
21
+ { value: "Benin", label: "Benin" },
22
+ { value: "Bhutan", label: "Bhutan" },
23
+ { value: "Bolivia", label: "Bolivia" },
24
+ { value: "Bosnia and Herzegovina", label: "Bosnia and Herzegovina" },
25
+ { value: "Botswana", label: "Botswana" },
26
+ { value: "Brazil", label: "Brazil" },
27
+ { value: "Brunei", label: "Brunei" },
28
+ { value: "Bulgaria", label: "Bulgaria" },
29
+ { value: "Burkina Faso", label: "Burkina Faso" },
30
+ { value: "Burundi", label: "Burundi" },
31
+ { value: "Cabo Verde", label: "Cabo Verde" },
32
+ { value: "Cambodia", label: "Cambodia" },
33
+ { value: "Cameroon", label: "Cameroon" },
34
+ { value: "Canada", label: "Canada" },
35
+ { value: "Central African Republic", label: "Central African Republic" },
36
+ { value: "Chad", label: "Chad" },
37
+ { value: "Chile", label: "Chile" },
38
+ { value: "China", label: "China" },
39
+ { value: "Colombia", label: "Colombia" },
40
+ { value: "Comoros", label: "Comoros" },
41
+ { value: "Congo", label: "Congo" },
42
+ { value: "Congo, Democratic Republic of the", label: "Congo, Democratic Republic of the" },
43
+ { value: "Costa Rica", label: "Costa Rica" },
44
+ { value: "Croatia", label: "Croatia" },
45
+ { value: "Cuba", label: "Cuba" },
46
+ { value: "Cyprus", label: "Cyprus" },
47
+ { value: "Czech Republic", label: "Czech Republic" },
48
+ { value: "Denmark", label: "Denmark" },
49
+ { value: "Djibouti", label: "Djibouti" },
50
+ { value: "Dominica", label: "Dominica" },
51
+ { value: "Dominican Republic", label: "Dominican Republic" },
52
+ { value: "Ecuador", label: "Ecuador" },
53
+ { value: "Egypt", label: "Egypt" },
54
+ { value: "El Salvador", label: "El Salvador" },
55
+ { value: "Equatorial Guinea", label: "Equatorial Guinea" },
56
+ { value: "Eritrea", label: "Eritrea" },
57
+ { value: "Estonia", label: "Estonia" },
58
+ { value: "Eswatini", label: "Eswatini" },
59
+ { value: "Ethiopia", label: "Ethiopia" },
60
+ { value: "Fiji", label: "Fiji" },
61
+ { value: "Finland", label: "Finland" },
62
+ { value: "France", label: "France" },
63
+ { value: "Gabon", label: "Gabon" },
64
+ { value: "Gambia", label: "Gambia" },
65
+ { value: "Georgia", label: "Georgia" },
66
+ { value: "Germany", label: "Germany" },
67
+ { value: "Ghana", label: "Ghana" },
68
+ { value: "Greece", label: "Greece" },
69
+ { value: "Grenada", label: "Grenada" },
70
+ { value: "Guatemala", label: "Guatemala" },
71
+ { value: "Guinea", label: "Guinea" },
72
+ { value: "Guinea-Bissau", label: "Guinea-Bissau" },
73
+ { value: "Guyana", label: "Guyana" },
74
+ { value: "Haiti", label: "Haiti" },
75
+ { value: "Honduras", label: "Honduras" },
76
+ { value: "Hungary", label: "Hungary" },
77
+ { value: "Iceland", label: "Iceland" },
78
+ { value: "India", label: "India" },
79
+ { value: "Indonesia", label: "Indonesia" },
80
+ { value: "Iran", label: "Iran" },
81
+ { value: "Iraq", label: "Iraq" },
82
+ { value: "Ireland", label: "Ireland" },
83
+ { value: "Israel", label: "Israel" },
84
+ { value: "Italy", label: "Italy" },
85
+ { value: "Jamaica", label: "Jamaica" },
86
+ { value: "Japan", label: "Japan" },
87
+ { value: "Jordan", label: "Jordan" },
88
+ { value: "Kazakhstan", label: "Kazakhstan" },
89
+ { value: "Kenya", label: "Kenya" },
90
+ { value: "Kiribati", label: "Kiribati" },
91
+ { value: "Korea, North", label: "Korea, North" },
92
+ { value: "Korea, South", label: "Korea, South" },
93
+ { value: "Kuwait", label: "Kuwait" },
94
+ { value: "Kyrgyzstan", label: "Kyrgyzstan" },
95
+ { value: "Laos", label: "Laos" },
96
+ { value: "Latvia", label: "Latvia" },
97
+ { value: "Lebanon", label: "Lebanon" },
98
+ { value: "Lesotho", label: "Lesotho" },
99
+ { value: "Liberia", label: "Liberia" },
100
+ { value: "Libya", label: "Libya" },
101
+ { value: "Liechtenstein", label: "Liechtenstein" },
102
+ { value: "Lithuania", label: "Lithuania" },
103
+ { value: "Luxembourg", label: "Luxembourg" },
104
+ { value: "Madagascar", label: "Madagascar" },
105
+ { value: "Malawi", label: "Malawi" },
106
+ { value: "Malaysia", label: "Malaysia" },
107
+ { value: "Maldives", label: "Maldives" },
108
+ { value: "Mali", label: "Mali" },
109
+ { value: "Malta", label: "Malta" },
110
+ { value: "Marshall Islands", label: "Marshall Islands" },
111
+ { value: "Mauritania", label: "Mauritania" },
112
+ { value: "Mauritius", label: "Mauritius" },
113
+ { value: "Mexico", label: "Mexico" },
114
+ { value: "Micronesia", label: "Micronesia" },
115
+ { value: "Moldova", label: "Moldova" },
116
+ { value: "Monaco", label: "Monaco" },
117
+ { value: "Mongolia", label: "Mongolia" },
118
+ { value: "Montenegro", label: "Montenegro" },
119
+ { value: "Morocco", label: "Morocco" },
120
+ { value: "Mozambique", label: "Mozambique" },
121
+ { value: "Myanmar", label: "Myanmar" },
122
+ { value: "Namibia", label: "Namibia" },
123
+ { value: "Nauru", label: "Nauru" },
124
+ { value: "Nepal", label: "Nepal" },
125
+ { value: "Netherlands", label: "Netherlands" },
126
+ { value: "New Zealand", label: "New Zealand" },
127
+ { value: "Nicaragua", label: "Nicaragua" },
128
+ { value: "Niger", label: "Niger" },
129
+ { value: "Nigeria", label: "Nigeria" },
130
+ { value: "North Macedonia", label: "North Macedonia" },
131
+ { value: "Norway", label: "Norway" },
132
+ { value: "Oman", label: "Oman" },
133
+ { value: "Pakistan", label: "Pakistan" },
134
+ { value: "Palau", label: "Palau" },
135
+ { value: "Panama", label: "Panama" },
136
+ { value: "Papua New Guinea", label: "Papua New Guinea" },
137
+ { value: "Paraguay", label: "Paraguay" },
138
+ { value: "Peru", label: "Peru" },
139
+ { value: "Philippines", label: "Philippines" },
140
+ { value: "Poland", label: "Poland" },
141
+ { value: "Portugal", label: "Portugal" },
142
+ { value: "Qatar", label: "Qatar" },
143
+ { value: "Romania", label: "Romania" },
144
+ { value: "Russia", label: "Russia" },
145
+ { value: "Rwanda", label: "Rwanda" },
146
+ { value: "Saint Kitts and Nevis", label: "Saint Kitts and Nevis" },
147
+ { value: "Saint Lucia", label: "Saint Lucia" },
148
+ { value: "Saint Vincent and the Grenadines", label: "Saint Vincent and the Grenadines" },
149
+ { value: "Samoa", label: "Samoa" },
150
+ { value: "San Marino", label: "San Marino" },
151
+ { value: "Sao Tome and Principe", label: "Sao Tome and Principe" },
152
+ { value: "Saudi Arabia", label: "Saudi Arabia" },
153
+ { value: "Senegal", label: "Senegal" },
154
+ { value: "Serbia", label: "Serbia" },
155
+ { value: "Seychelles", label: "Seychelles" },
156
+ { value: "Sierra Leone", label: "Sierra Leone" },
157
+ { value: "Singapore", label: "Singapore" },
158
+ { value: "Slovakia", label: "Slovakia" },
159
+ { value: "Slovenia", label: "Slovenia" },
160
+ { value: "Solomon Islands", label: "Solomon Islands" },
161
+ { value: "Somalia", label: "Somalia" },
162
+ { value: "South Africa", label: "South Africa" },
163
+ { value: "South Sudan", label: "South Sudan" },
164
+ { value: "Spain", label: "Spain" },
165
+ { value: "Sri Lanka", label: "Sri Lanka" },
166
+ { value: "Sudan", label: "Sudan" },
167
+ { value: "Suriname", label: "Suriname" },
168
+ { value: "Sweden", label: "Sweden" },
169
+ { value: "Switzerland", label: "Switzerland" },
170
+ { value: "Syria", label: "Syria" },
171
+ { value: "Taiwan", label: "Taiwan" },
172
+ { value: "Tajikistan", label: "Tajikistan" },
173
+ { value: "Tanzania", label: "Tanzania" },
174
+ { value: "Thailand", label: "Thailand" },
175
+ { value: "Timor-Leste", label: "Timor-Leste" },
176
+ { value: "Togo", label: "Togo" },
177
+ { value: "Tonga", label: "Tonga" },
178
+ { value: "Trinidad and Tobago", label: "Trinidad and Tobago" },
179
+ { value: "Tunisia", label: "Tunisia" },
180
+ { value: "Turkey", label: "Turkey" },
181
+ { value: "Turkmenistan", label: "Turkmenistan" },
182
+ { value: "Tuvalu", label: "Tuvalu" },
183
+ { value: "Uganda", label: "Uganda" },
184
+ { value: "Ukraine", label: "Ukraine" },
185
+ { value: "United Arab Emirates", label: "United Arab Emirates" },
186
+ { value: "United Kingdom", label: "United Kingdom" },
187
+ { value: "Uruguay", label: "Uruguay" },
188
+ { value: "Uzbekistan", label: "Uzbekistan" },
189
+ { value: "Vanuatu", label: "Vanuatu" },
190
+ { value: "Venezuela", label: "Venezuela" },
191
+ { value: "Vietnam", label: "Vietnam" },
192
+ { value: "Yemen", label: "Yemen" },
193
+ { value: "Zambia", label: "Zambia" },
194
+ { value: "Zimbabwe", label: "Zimbabwe" }
195
+ ];
196
+ export {
197
+ a as COUNTRIES
198
+ };
199
+ //# sourceMappingURL=countries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countries.js","sources":["../../../../../src/components/Employee/DocumentSigner/EmploymentEligibility/countries.ts"],"sourcesContent":["export const COUNTRIES: { value: string; label: string }[] = [\n { value: 'United States', label: 'United States' },\n { value: 'Afghanistan', label: 'Afghanistan' },\n { value: 'Albania', label: 'Albania' },\n { value: 'Algeria', label: 'Algeria' },\n { value: 'Andorra', label: 'Andorra' },\n { value: 'Angola', label: 'Angola' },\n { value: 'Antigua and Barbuda', label: 'Antigua and Barbuda' },\n { value: 'Argentina', label: 'Argentina' },\n { value: 'Armenia', label: 'Armenia' },\n { value: 'Australia', label: 'Australia' },\n { value: 'Austria', label: 'Austria' },\n { value: 'Azerbaijan', label: 'Azerbaijan' },\n { value: 'Bahamas', label: 'Bahamas' },\n { value: 'Bahrain', label: 'Bahrain' },\n { value: 'Bangladesh', label: 'Bangladesh' },\n { value: 'Barbados', label: 'Barbados' },\n { value: 'Belarus', label: 'Belarus' },\n { value: 'Belgium', label: 'Belgium' },\n { value: 'Belize', label: 'Belize' },\n { value: 'Benin', label: 'Benin' },\n { value: 'Bhutan', label: 'Bhutan' },\n { value: 'Bolivia', label: 'Bolivia' },\n { value: 'Bosnia and Herzegovina', label: 'Bosnia and Herzegovina' },\n { value: 'Botswana', label: 'Botswana' },\n { value: 'Brazil', label: 'Brazil' },\n { value: 'Brunei', label: 'Brunei' },\n { value: 'Bulgaria', label: 'Bulgaria' },\n { value: 'Burkina Faso', label: 'Burkina Faso' },\n { value: 'Burundi', label: 'Burundi' },\n { value: 'Cabo Verde', label: 'Cabo Verde' },\n { value: 'Cambodia', label: 'Cambodia' },\n { value: 'Cameroon', label: 'Cameroon' },\n { value: 'Canada', label: 'Canada' },\n { value: 'Central African Republic', label: 'Central African Republic' },\n { value: 'Chad', label: 'Chad' },\n { value: 'Chile', label: 'Chile' },\n { value: 'China', label: 'China' },\n { value: 'Colombia', label: 'Colombia' },\n { value: 'Comoros', label: 'Comoros' },\n { value: 'Congo', label: 'Congo' },\n { value: 'Congo, Democratic Republic of the', label: 'Congo, Democratic Republic of the' },\n { value: 'Costa Rica', label: 'Costa Rica' },\n { value: 'Croatia', label: 'Croatia' },\n { value: 'Cuba', label: 'Cuba' },\n { value: 'Cyprus', label: 'Cyprus' },\n { value: 'Czech Republic', label: 'Czech Republic' },\n { value: 'Denmark', label: 'Denmark' },\n { value: 'Djibouti', label: 'Djibouti' },\n { value: 'Dominica', label: 'Dominica' },\n { value: 'Dominican Republic', label: 'Dominican Republic' },\n { value: 'Ecuador', label: 'Ecuador' },\n { value: 'Egypt', label: 'Egypt' },\n { value: 'El Salvador', label: 'El Salvador' },\n { value: 'Equatorial Guinea', label: 'Equatorial Guinea' },\n { value: 'Eritrea', label: 'Eritrea' },\n { value: 'Estonia', label: 'Estonia' },\n { value: 'Eswatini', label: 'Eswatini' },\n { value: 'Ethiopia', label: 'Ethiopia' },\n { value: 'Fiji', label: 'Fiji' },\n { value: 'Finland', label: 'Finland' },\n { value: 'France', label: 'France' },\n { value: 'Gabon', label: 'Gabon' },\n { value: 'Gambia', label: 'Gambia' },\n { value: 'Georgia', label: 'Georgia' },\n { value: 'Germany', label: 'Germany' },\n { value: 'Ghana', label: 'Ghana' },\n { value: 'Greece', label: 'Greece' },\n { value: 'Grenada', label: 'Grenada' },\n { value: 'Guatemala', label: 'Guatemala' },\n { value: 'Guinea', label: 'Guinea' },\n { value: 'Guinea-Bissau', label: 'Guinea-Bissau' },\n { value: 'Guyana', label: 'Guyana' },\n { value: 'Haiti', label: 'Haiti' },\n { value: 'Honduras', label: 'Honduras' },\n { value: 'Hungary', label: 'Hungary' },\n { value: 'Iceland', label: 'Iceland' },\n { value: 'India', label: 'India' },\n { value: 'Indonesia', label: 'Indonesia' },\n { value: 'Iran', label: 'Iran' },\n { value: 'Iraq', label: 'Iraq' },\n { value: 'Ireland', label: 'Ireland' },\n { value: 'Israel', label: 'Israel' },\n { value: 'Italy', label: 'Italy' },\n { value: 'Jamaica', label: 'Jamaica' },\n { value: 'Japan', label: 'Japan' },\n { value: 'Jordan', label: 'Jordan' },\n { value: 'Kazakhstan', label: 'Kazakhstan' },\n { value: 'Kenya', label: 'Kenya' },\n { value: 'Kiribati', label: 'Kiribati' },\n { value: 'Korea, North', label: 'Korea, North' },\n { value: 'Korea, South', label: 'Korea, South' },\n { value: 'Kuwait', label: 'Kuwait' },\n { value: 'Kyrgyzstan', label: 'Kyrgyzstan' },\n { value: 'Laos', label: 'Laos' },\n { value: 'Latvia', label: 'Latvia' },\n { value: 'Lebanon', label: 'Lebanon' },\n { value: 'Lesotho', label: 'Lesotho' },\n { value: 'Liberia', label: 'Liberia' },\n { value: 'Libya', label: 'Libya' },\n { value: 'Liechtenstein', label: 'Liechtenstein' },\n { value: 'Lithuania', label: 'Lithuania' },\n { value: 'Luxembourg', label: 'Luxembourg' },\n { value: 'Madagascar', label: 'Madagascar' },\n { value: 'Malawi', label: 'Malawi' },\n { value: 'Malaysia', label: 'Malaysia' },\n { value: 'Maldives', label: 'Maldives' },\n { value: 'Mali', label: 'Mali' },\n { value: 'Malta', label: 'Malta' },\n { value: 'Marshall Islands', label: 'Marshall Islands' },\n { value: 'Mauritania', label: 'Mauritania' },\n { value: 'Mauritius', label: 'Mauritius' },\n { value: 'Mexico', label: 'Mexico' },\n { value: 'Micronesia', label: 'Micronesia' },\n { value: 'Moldova', label: 'Moldova' },\n { value: 'Monaco', label: 'Monaco' },\n { value: 'Mongolia', label: 'Mongolia' },\n { value: 'Montenegro', label: 'Montenegro' },\n { value: 'Morocco', label: 'Morocco' },\n { value: 'Mozambique', label: 'Mozambique' },\n { value: 'Myanmar', label: 'Myanmar' },\n { value: 'Namibia', label: 'Namibia' },\n { value: 'Nauru', label: 'Nauru' },\n { value: 'Nepal', label: 'Nepal' },\n { value: 'Netherlands', label: 'Netherlands' },\n { value: 'New Zealand', label: 'New Zealand' },\n { value: 'Nicaragua', label: 'Nicaragua' },\n { value: 'Niger', label: 'Niger' },\n { value: 'Nigeria', label: 'Nigeria' },\n { value: 'North Macedonia', label: 'North Macedonia' },\n { value: 'Norway', label: 'Norway' },\n { value: 'Oman', label: 'Oman' },\n { value: 'Pakistan', label: 'Pakistan' },\n { value: 'Palau', label: 'Palau' },\n { value: 'Panama', label: 'Panama' },\n { value: 'Papua New Guinea', label: 'Papua New Guinea' },\n { value: 'Paraguay', label: 'Paraguay' },\n { value: 'Peru', label: 'Peru' },\n { value: 'Philippines', label: 'Philippines' },\n { value: 'Poland', label: 'Poland' },\n { value: 'Portugal', label: 'Portugal' },\n { value: 'Qatar', label: 'Qatar' },\n { value: 'Romania', label: 'Romania' },\n { value: 'Russia', label: 'Russia' },\n { value: 'Rwanda', label: 'Rwanda' },\n { value: 'Saint Kitts and Nevis', label: 'Saint Kitts and Nevis' },\n { value: 'Saint Lucia', label: 'Saint Lucia' },\n { value: 'Saint Vincent and the Grenadines', label: 'Saint Vincent and the Grenadines' },\n { value: 'Samoa', label: 'Samoa' },\n { value: 'San Marino', label: 'San Marino' },\n { value: 'Sao Tome and Principe', label: 'Sao Tome and Principe' },\n { value: 'Saudi Arabia', label: 'Saudi Arabia' },\n { value: 'Senegal', label: 'Senegal' },\n { value: 'Serbia', label: 'Serbia' },\n { value: 'Seychelles', label: 'Seychelles' },\n { value: 'Sierra Leone', label: 'Sierra Leone' },\n { value: 'Singapore', label: 'Singapore' },\n { value: 'Slovakia', label: 'Slovakia' },\n { value: 'Slovenia', label: 'Slovenia' },\n { value: 'Solomon Islands', label: 'Solomon Islands' },\n { value: 'Somalia', label: 'Somalia' },\n { value: 'South Africa', label: 'South Africa' },\n { value: 'South Sudan', label: 'South Sudan' },\n { value: 'Spain', label: 'Spain' },\n { value: 'Sri Lanka', label: 'Sri Lanka' },\n { value: 'Sudan', label: 'Sudan' },\n { value: 'Suriname', label: 'Suriname' },\n { value: 'Sweden', label: 'Sweden' },\n { value: 'Switzerland', label: 'Switzerland' },\n { value: 'Syria', label: 'Syria' },\n { value: 'Taiwan', label: 'Taiwan' },\n { value: 'Tajikistan', label: 'Tajikistan' },\n { value: 'Tanzania', label: 'Tanzania' },\n { value: 'Thailand', label: 'Thailand' },\n { value: 'Timor-Leste', label: 'Timor-Leste' },\n { value: 'Togo', label: 'Togo' },\n { value: 'Tonga', label: 'Tonga' },\n { value: 'Trinidad and Tobago', label: 'Trinidad and Tobago' },\n { value: 'Tunisia', label: 'Tunisia' },\n { value: 'Turkey', label: 'Turkey' },\n { value: 'Turkmenistan', label: 'Turkmenistan' },\n { value: 'Tuvalu', label: 'Tuvalu' },\n { value: 'Uganda', label: 'Uganda' },\n { value: 'Ukraine', label: 'Ukraine' },\n { value: 'United Arab Emirates', label: 'United Arab Emirates' },\n { value: 'United Kingdom', label: 'United Kingdom' },\n { value: 'Uruguay', label: 'Uruguay' },\n { value: 'Uzbekistan', label: 'Uzbekistan' },\n { value: 'Vanuatu', label: 'Vanuatu' },\n { value: 'Venezuela', label: 'Venezuela' },\n { value: 'Vietnam', label: 'Vietnam' },\n { value: 'Yemen', label: 'Yemen' },\n { value: 'Zambia', label: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AA;AAAA,EAC/B,EAAE,OAAO,SAAS,OAAO,QAAA;AAAA,EACzB,EAAE,OAAO,UAAU,OAAO,SAAA;AAAA,EAC1B,EAAE,OAAO,cAAc,OAAO,aAAA;AAAA,EAC9B,EAAE,OAAO,YAAY,OAAO,WAAA;AAAA,EAC5B,EAAE,OAAO,YAAY,OAAO,WAAA;AAAA,EAC5B,EAAE,OAAO,eAAe,OAAO,cAAA;AAAA,EAC/B,EAAE,OAAO,QAAQ,OAAO,OAAA;AAAA,EACxB,EAAE,OAAO,SAAS,OAAO,QAAA;AAAA,EACzB,EAAE,OAAO,uBAAuB,OAAO,sBAAA;AAAA,EACvC,EAAE,OAAO,WAAW,OAAO,UAAA;AAAA,EAC3B,EAAE,OAAO,UAAU,OAAO,SAAA;AAAA,EAC1B,EAAE,OAAO,gBAAgB,OAAO,eAAA;AAAA,EAChC,EAAE,OAAO,UAAU,OAAO,SAAA;AAAA,EAC1B,EAAE,OAAO,UAAU,OAAO,SAAA;AAAA,EAC1B,EAAE,OAAO,WAAW,OAAO,UAAA;AAAA,EAC3B,EAAE,OAAO,wBAAwB,OAAO,uBAAA;AAAA,EACxC,EAAE,OAAO,kBAAkB,OAAO,iBAAA;AAAA,EAClC,EAAE,OAAO,WAAW,OAAO,UAAA;AAAA,EAC3B,EAAE,OAAO,cAAc,OAAO,aAAA;AAAA,EAC9B,EAAE,OAAO,WAAW,OAAO,UAAA;AAAA,EAC3B,EAAE,OAAO,aAAa,OAAO,YAAA;AAAA,EAC7B,EAAE,OAAO,WAAW,OAAO,UAAA;AAAA,EAC3B,EAAE,OAAO,SAAS,OAAO,QAAA;AAAA,EACzB,EAAE,OAAO,UAAU,OAAO,SAAA;AAAA,EAC1B,EAAE,OAAO,YAAY,OAAO,WAAA;AAC9B;"}
@@ -1,4 +1,3 @@
1
1
  import "./types/i18next.d.ts"
2
2
  export { EmploymentEligibility } from './EmploymentEligibility';
3
3
  export type { EmploymentEligibilityProps } from './EmploymentEligibility';
4
- export type { EligibilityStatus } from './EmploymentEligibilityPresentation';