@remoteoss/remote-flows 1.48.0 → 1.49.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (516) hide show
  1. package/dist/CheckboxFieldDefault-JXNMWIRK.js +2 -0
  2. package/dist/CountryFieldDefault-SO4WS7KE.js +2 -0
  3. package/dist/DatePickerFieldDefault-AZHJN2U6.js +2 -0
  4. package/dist/FileUploadFieldDefault-K6PF6RP7.js +2 -0
  5. package/dist/ForcedValueFieldDefault-BEOC4MYU.js +2 -0
  6. package/dist/MultiSelectFieldDefault-QKXVTGF2.js +2 -0
  7. package/dist/RadioGroupFieldDefault-ZHHXDUUU.js +2 -0
  8. package/dist/SelectFieldDefault-FWQ7D6DU.js +2 -0
  9. package/dist/TelFieldDefault-RA7IBELJ.js +2 -0
  10. package/dist/TextAreaFieldDefault-NEFWXEE2.js +2 -0
  11. package/dist/TextFieldDefault-RXNU36AX.js +2 -0
  12. package/dist/TimeFieldDefault-KIJNBWYF.js +2 -0
  13. package/dist/ZendeskTriggerButtonDefault-L4BVVXHA.js +2 -0
  14. package/dist/ZendeskTriggerButtonDefault-L4BVVXHA.js.map +1 -0
  15. package/dist/chunk-2GTY2DMO.js +2 -0
  16. package/dist/{chunk-QN6OMOUW.js.map → chunk-2GTY2DMO.js.map} +1 -1
  17. package/dist/{chunk-5IMEZZMR.js → chunk-2LR5N626.js} +2 -2
  18. package/dist/{chunk-FLX72WFD.js → chunk-2LSLWFZS.js} +2 -2
  19. package/dist/chunk-3BQVEYHE.js +2 -0
  20. package/dist/chunk-3BQVEYHE.js.map +1 -0
  21. package/dist/{chunk-EACCMXD5.js → chunk-3LELUHRO.js} +2 -2
  22. package/dist/{chunk-XAIBLWDF.js → chunk-3LMZ3SOP.js} +2 -2
  23. package/dist/{chunk-KBD6W5FL.js → chunk-3RQSRU7O.js} +2 -2
  24. package/dist/{chunk-WI4YITIC.js → chunk-3VTHNE4H.js} +2 -2
  25. package/dist/{chunk-TFBJMECV.js → chunk-4Y2INBAI.js} +2 -2
  26. package/dist/chunk-4YFJOHSM.js +2 -0
  27. package/dist/{chunk-SL5WZ76A.js.map → chunk-4YFJOHSM.js.map} +1 -1
  28. package/dist/chunk-5FEJD2N7.js +2 -0
  29. package/dist/chunk-5FEJD2N7.js.map +1 -0
  30. package/dist/chunk-5FGYC2RF.js +2 -0
  31. package/dist/{chunk-GMCJXDUP.js.map → chunk-5FGYC2RF.js.map} +1 -1
  32. package/dist/{chunk-Q2MGM4I2.js → chunk-5FJ64F6D.js} +2 -2
  33. package/dist/{chunk-4F7TGLUT.js → chunk-5J7DLDLW.js} +2 -2
  34. package/dist/{chunk-Q2JINYSB.js → chunk-5MH23AST.js} +2 -2
  35. package/dist/chunk-5TOSVOLY.js +2 -0
  36. package/dist/chunk-5TOSVOLY.js.map +1 -0
  37. package/dist/{chunk-CNQXPZJB.js → chunk-5WTCN4WO.js} +2 -2
  38. package/dist/{chunk-7YACR6OA.js → chunk-6IDUDCVS.js} +2 -2
  39. package/dist/{chunk-X536XUYT.js → chunk-6IQJJCQ3.js} +2 -2
  40. package/dist/chunk-6L77BWCI.js +2 -0
  41. package/dist/{chunk-UOA3M7EJ.js.map → chunk-6L77BWCI.js.map} +1 -1
  42. package/dist/{chunk-5YOH2HJ5.js → chunk-6S5Q2OKC.js} +2 -2
  43. package/dist/chunk-7IIQUZTH.js +2 -0
  44. package/dist/chunk-7IIQUZTH.js.map +1 -0
  45. package/dist/{chunk-SNEUIWQE.js → chunk-7NDAFJXR.js} +2 -2
  46. package/dist/{chunk-OK2ZZ6NK.js → chunk-7XDU2VWN.js} +2 -2
  47. package/dist/{chunk-AFKB7Z3G.js → chunk-A5XRBDDO.js} +2 -2
  48. package/dist/chunk-ALHHN2LG.js +2 -0
  49. package/dist/chunk-ALHHN2LG.js.map +1 -0
  50. package/dist/{chunk-JP5GXWXT.js → chunk-ANZ2YYUE.js} +2 -2
  51. package/dist/{chunk-RJ7BWEDB.js → chunk-B3ESNTKY.js} +2 -2
  52. package/dist/{chunk-76TJCXAW.js → chunk-BTZ57COZ.js} +2 -2
  53. package/dist/{chunk-GTZ35W3E.js → chunk-BWM2MYPE.js} +2 -2
  54. package/dist/{chunk-7G6XS63Q.js → chunk-BYTVIOOL.js} +2 -2
  55. package/dist/{chunk-VWWVLK5C.js → chunk-C2HZNBMZ.js} +2 -2
  56. package/dist/{chunk-TVNBMBTY.js → chunk-C5T75DEZ.js} +2 -2
  57. package/dist/{chunk-32UP2UFU.js → chunk-CFPKRLGM.js} +2 -2
  58. package/dist/{chunk-7EOTDIJI.js → chunk-CHIWBD6E.js} +2 -2
  59. package/dist/{chunk-DH2NHUZU.js → chunk-D737GUYZ.js} +2 -2
  60. package/dist/{chunk-C3YSF5RT.js → chunk-DLIVHNTT.js} +2 -2
  61. package/dist/{chunk-OLBMZGOC.js → chunk-EQIWABAZ.js} +2 -2
  62. package/dist/{chunk-XCQI5O67.js → chunk-EYZVDP6A.js} +2 -2
  63. package/dist/{chunk-U74P6WCT.js → chunk-F2SGCGXL.js} +2 -2
  64. package/dist/{chunk-KFTMJ253.js → chunk-F3DZUA7W.js} +2 -2
  65. package/dist/{chunk-FJNQ64SB.js → chunk-F3UUYQGY.js} +2 -2
  66. package/dist/{chunk-2HQDOWW2.js → chunk-FB3PEQTO.js} +1 -1
  67. package/dist/chunk-FB3PEQTO.js.map +1 -0
  68. package/dist/{chunk-HNJ7ZFEU.js → chunk-FDTOQHOJ.js} +2 -2
  69. package/dist/chunk-FGYOG6XG.js +2 -0
  70. package/dist/chunk-FGYOG6XG.js.map +1 -0
  71. package/dist/{chunk-OPGC7BSY.js → chunk-FJD5GFO4.js} +2 -2
  72. package/dist/{chunk-GSGCFKOZ.js → chunk-FT4ZNBTA.js} +2 -2
  73. package/dist/{chunk-CETQLSZY.js → chunk-G3KQCVQQ.js} +2 -2
  74. package/dist/chunk-GPWQPJQ7.js +2 -0
  75. package/dist/chunk-GPWQPJQ7.js.map +1 -0
  76. package/dist/{chunk-7PWXGPXZ.js → chunk-H5OZSXSY.js} +2 -2
  77. package/dist/{chunk-364G255Q.js → chunk-IAR6BWUY.js} +2 -2
  78. package/dist/{chunk-7ZQYMDNU.js → chunk-ILX6RI7K.js} +2 -2
  79. package/dist/{chunk-VT5V3C6T.js → chunk-IRUWMZVH.js} +2 -2
  80. package/dist/{chunk-ISETCY2V.js → chunk-IUBHVGVV.js} +2 -2
  81. package/dist/chunk-IXS65MGJ.js +2 -0
  82. package/dist/chunk-IXS65MGJ.js.map +1 -0
  83. package/dist/{chunk-VBWACHT3.js → chunk-J4CHUIPC.js} +2 -2
  84. package/dist/chunk-JKHJR6HK.js +2 -0
  85. package/dist/chunk-JKHJR6HK.js.map +1 -0
  86. package/dist/{chunk-HCL7WLOR.js → chunk-JLM4O7ZW.js} +2 -2
  87. package/dist/{chunk-H3JVB7GS.js → chunk-JMFCG5KA.js} +2 -2
  88. package/dist/{chunk-2FI5CCXQ.js → chunk-JQ3SLOUP.js} +2 -2
  89. package/dist/{chunk-FXVLXN2B.js → chunk-JRRPMAUO.js} +2 -2
  90. package/dist/{chunk-ONUE4K6F.js → chunk-K67Q5476.js} +2 -2
  91. package/dist/{chunk-ZGGEJ3FD.js → chunk-KPDYUFCB.js} +2 -2
  92. package/dist/{chunk-5BJXFWKN.js → chunk-KZ5ZQTBF.js} +2 -2
  93. package/dist/{chunk-VY64RMAF.js → chunk-LCUURLXS.js} +2 -2
  94. package/dist/{chunk-DHS5QMH6.js → chunk-LCUYP6VW.js} +2 -2
  95. package/dist/chunk-M3TA5X2H.js +2 -0
  96. package/dist/chunk-M3TA5X2H.js.map +1 -0
  97. package/dist/{chunk-CHTCJQJ3.js → chunk-MZK2U65W.js} +2 -2
  98. package/dist/chunk-NPVSJYM6.js +2 -0
  99. package/dist/chunk-NPVSJYM6.js.map +1 -0
  100. package/dist/{chunk-UEJU2A57.js → chunk-ORP6DY5I.js} +2 -2
  101. package/dist/{chunk-PZWP6ZVL.js → chunk-OTBCLDGR.js} +2 -2
  102. package/dist/{chunk-5OEO67O2.js → chunk-PJTMFMRJ.js} +2 -2
  103. package/dist/{chunk-YQZ3B2CT.js → chunk-PNNOU6BC.js} +2 -2
  104. package/dist/chunk-POWC7LZN.js +2 -0
  105. package/dist/chunk-POWC7LZN.js.map +1 -0
  106. package/dist/{chunk-3YILMVSP.js → chunk-PYNHR7NL.js} +2 -2
  107. package/dist/{chunk-IN6QZASY.js → chunk-QEHEOSJT.js} +2 -2
  108. package/dist/{chunk-QA6YA4OB.js → chunk-QHJ3BYJN.js} +2 -2
  109. package/dist/chunk-QSBXRKYE.js +2 -0
  110. package/dist/chunk-QSF4XFSV.js +2 -0
  111. package/dist/{chunk-QJHSN6MG.js.map → chunk-QSF4XFSV.js.map} +1 -1
  112. package/dist/{chunk-NKGJZNXL.js → chunk-R2D32OB6.js} +2 -2
  113. package/dist/{chunk-6VEWI4G2.js → chunk-RKP7EEAB.js} +2 -2
  114. package/dist/{chunk-UTQDJNOV.js → chunk-S2QXSX4Q.js} +2 -2
  115. package/dist/{chunk-Q4X35JRA.js → chunk-SNGQ2MKL.js} +2 -2
  116. package/dist/{chunk-B7XTWLRI.js → chunk-SUVBETJS.js} +2 -2
  117. package/dist/{chunk-EP3DUVMU.js → chunk-TLJXBZII.js} +2 -2
  118. package/dist/chunk-TXOCMI5I.js +2 -0
  119. package/dist/{chunk-LWLFJAG6.js.map → chunk-TXOCMI5I.js.map} +1 -1
  120. package/dist/{chunk-HDOEUCXY.js → chunk-U7JAGEOV.js} +2 -2
  121. package/dist/chunk-U7JAGEOV.js.map +1 -0
  122. package/dist/{chunk-PQHXX3ZN.js → chunk-UAEQLFPK.js} +2 -2
  123. package/dist/chunk-UOJOO2DM.js +2 -0
  124. package/dist/chunk-UOJOO2DM.js.map +1 -0
  125. package/dist/{chunk-WXKFXIMQ.js → chunk-UU2IFOXR.js} +2 -2
  126. package/dist/{chunk-ZMBPKARZ.js → chunk-V3C32X6R.js} +2 -2
  127. package/dist/{chunk-XI55YG73.js → chunk-VNMUML3T.js} +2 -2
  128. package/dist/{chunk-XI55YG73.js.map → chunk-VNMUML3T.js.map} +1 -1
  129. package/dist/{chunk-TYCOSAU4.js → chunk-VQRE3YLW.js} +2 -2
  130. package/dist/{chunk-RDDQ5XMI.js → chunk-VYAJQ25J.js} +2 -2
  131. package/dist/chunk-WB52GW3H.js +2 -0
  132. package/dist/chunk-WB52GW3H.js.map +1 -0
  133. package/dist/{chunk-JBAKDTGM.js → chunk-WDPJIOLG.js} +2 -2
  134. package/dist/{chunk-KBYI7L5E.js → chunk-WGDZTF7Y.js} +2 -2
  135. package/dist/{chunk-WXTEP5PE.js → chunk-WH3QR2W5.js} +2 -2
  136. package/dist/{chunk-OKABTWB3.js → chunk-WHDUZGVW.js} +2 -2
  137. package/dist/{chunk-MS63VN5N.js → chunk-WYIU74JN.js} +2 -2
  138. package/dist/{chunk-4E5YP5GD.js → chunk-WZOVZYNI.js} +2 -2
  139. package/dist/{chunk-6VBUWE25.js → chunk-XTLTKB3S.js} +2 -2
  140. package/dist/chunk-XXQBX7ND.js +2 -0
  141. package/dist/chunk-XXQBX7ND.js.map +1 -0
  142. package/dist/{chunk-XGECMN4V.js → chunk-YRC6EEM3.js} +2 -2
  143. package/dist/{chunk-GVQ7UXVW.js → chunk-YUUUI4FY.js} +2 -2
  144. package/dist/{chunk-RPRRMRCO.js → chunk-Z7VNXKWB.js} +2 -2
  145. package/dist/chunk-ZQVVHVAG.js +2 -0
  146. package/dist/{chunk-WLZRAEPQ.js.map → chunk-ZQVVHVAG.js.map} +1 -1
  147. package/dist/default-components.d.ts +2 -2
  148. package/dist/default-components.js +1 -1
  149. package/dist/default-components.js.map +1 -1
  150. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  151. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  152. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  153. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  154. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  155. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  156. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  157. package/dist/flows/ContractAmendment/hooks.js +1 -1
  158. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  159. package/dist/flows/ContractAmendment/index.js +1 -1
  160. package/dist/flows/ContractAmendment/types.d.ts +3 -3
  161. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  162. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +6 -5
  163. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  164. package/dist/flows/ContractorOnboarding/api.d.ts +445 -192
  165. package/dist/flows/ContractorOnboarding/api.js +1 -1
  166. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  167. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  168. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +6 -5
  169. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  170. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.d.ts +3 -3
  171. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.js +1 -1
  172. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  173. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  174. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +6 -5
  175. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  176. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +6 -5
  177. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  178. package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.d.ts +23 -0
  179. package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.js +2 -0
  180. package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.js.map +1 -0
  181. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +6 -5
  182. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  183. package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.d.ts +28 -0
  184. package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.js +2 -0
  185. package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.js.map +1 -0
  186. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  187. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  188. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +6 -5
  189. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  190. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
  191. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  192. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  193. package/dist/flows/ContractorOnboarding/context.d.ts +32 -14
  194. package/dist/flows/ContractorOnboarding/hooks.d.ts +7 -6
  195. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  196. package/dist/flows/ContractorOnboarding/index.d.ts +6 -5
  197. package/dist/flows/ContractorOnboarding/index.js +1 -1
  198. package/dist/flows/ContractorOnboarding/invoiceScheduleConstants.d.ts +15 -0
  199. package/dist/flows/ContractorOnboarding/invoiceScheduleConstants.js +2 -0
  200. package/dist/flows/ContractorOnboarding/invoiceScheduleConstants.js.map +1 -0
  201. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +6 -5
  202. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  203. package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.d.ts +103 -0
  204. package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.js +2 -0
  205. package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.js.map +1 -0
  206. package/dist/flows/ContractorOnboarding/json-schemas/invoiceSchedule.d.ts +28 -0
  207. package/dist/flows/ContractorOnboarding/json-schemas/invoiceSchedule.js +2 -0
  208. package/dist/flows/ContractorOnboarding/json-schemas/invoiceSchedule.js.map +1 -0
  209. package/dist/flows/ContractorOnboarding/types.d.ts +6 -5
  210. package/dist/flows/ContractorOnboarding/utils.d.ts +24 -6
  211. package/dist/flows/ContractorOnboarding/utils.js +1 -1
  212. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  213. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  214. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  215. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  216. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +3 -3
  217. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  218. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +3 -3
  219. package/dist/flows/CostCalculator/api.d.ts +3 -3
  220. package/dist/flows/CostCalculator/api.js +1 -1
  221. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  222. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  223. package/dist/flows/CostCalculator/context.d.ts +3 -3
  224. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  225. package/dist/flows/CostCalculator/hooks.js +1 -1
  226. package/dist/flows/CostCalculator/index.d.ts +3 -3
  227. package/dist/flows/CostCalculator/index.js +1 -1
  228. package/dist/flows/CostCalculator/types.d.ts +3 -3
  229. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  230. package/dist/flows/CostCalculator/utils.js +1 -1
  231. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  232. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  233. package/dist/flows/CreateCompany/api.d.ts +3 -3
  234. package/dist/flows/CreateCompany/api.js +1 -1
  235. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  236. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  237. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  238. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  239. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  240. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  241. package/dist/flows/CreateCompany/context.d.ts +4 -4
  242. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  243. package/dist/flows/CreateCompany/hooks.js +1 -1
  244. package/dist/flows/CreateCompany/index.d.ts +4 -4
  245. package/dist/flows/CreateCompany/index.js +1 -1
  246. package/dist/flows/CreateCompany/types.d.ts +4 -4
  247. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.d.ts +3 -3
  248. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js +1 -1
  249. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.d.ts +2 -2
  250. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js +1 -1
  251. package/dist/flows/JsonSchemaPlayground/context.d.ts +3 -3
  252. package/dist/flows/JsonSchemaPlayground/hooks.d.ts +3 -3
  253. package/dist/flows/JsonSchemaPlayground/index.d.ts +3 -3
  254. package/dist/flows/JsonSchemaPlayground/index.js +1 -1
  255. package/dist/flows/JsonSchemaPlayground/types.d.ts +3 -3
  256. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  257. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  258. package/dist/flows/Onboarding/api.d.ts +4 -4
  259. package/dist/flows/Onboarding/api.js +1 -1
  260. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  261. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  262. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  263. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  264. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  265. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  266. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  267. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  268. package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.js +1 -1
  269. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +4 -4
  270. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  271. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  272. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  273. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  274. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  275. package/dist/flows/Onboarding/components/PreOnboardingRequirements.d.ts +4 -4
  276. package/dist/flows/Onboarding/components/PreOnboardingRequirements.js +1 -1
  277. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js +1 -1
  278. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  279. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  280. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  281. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  282. package/dist/flows/Onboarding/context.d.ts +4 -4
  283. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  284. package/dist/flows/Onboarding/hooks.js +1 -1
  285. package/dist/flows/Onboarding/index.d.ts +4 -4
  286. package/dist/flows/Onboarding/index.js +1 -1
  287. package/dist/flows/Onboarding/types.d.ts +4 -4
  288. package/dist/flows/Onboarding/utils.d.ts +4 -4
  289. package/dist/flows/Onboarding/utils.js +1 -1
  290. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +4 -4
  291. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +1 -1
  292. package/dist/flows/PayrollAdminOnboarding/api.d.ts +2 -2
  293. package/dist/flows/PayrollAdminOnboarding/api.js +1 -1
  294. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.d.ts +3 -3
  295. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js +1 -1
  296. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.d.ts +3 -3
  297. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js +1 -1
  298. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.d.ts +3 -3
  299. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.js +1 -1
  300. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.d.ts +2 -2
  301. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js +1 -1
  302. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.d.ts +3 -3
  303. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js +1 -1
  304. package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.d.ts +3 -3
  305. package/dist/flows/PayrollAdminOnboarding/context.d.ts +4 -4
  306. package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +4 -4
  307. package/dist/flows/PayrollAdminOnboarding/hooks.js +1 -1
  308. package/dist/flows/PayrollAdminOnboarding/index.d.ts +4 -4
  309. package/dist/flows/PayrollAdminOnboarding/index.js +1 -1
  310. package/dist/flows/PayrollAdminOnboarding/types.d.ts +4 -4
  311. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +4 -4
  312. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +1 -1
  313. package/dist/flows/PayrollEmployeeOnboarding/api.d.ts +3 -3
  314. package/dist/flows/PayrollEmployeeOnboarding/api.js +1 -1
  315. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.d.ts +3 -3
  316. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js +1 -1
  317. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.d.ts +3 -3
  318. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js +1 -1
  319. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.d.ts +3 -3
  320. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js +1 -1
  321. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.d.ts +2 -2
  322. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js +1 -1
  323. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.d.ts +3 -3
  324. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js +1 -1
  325. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.d.ts +3 -3
  326. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js +1 -1
  327. package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.d.ts +3 -3
  328. package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +4 -4
  329. package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +4 -4
  330. package/dist/flows/PayrollEmployeeOnboarding/hooks.js +1 -1
  331. package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +4 -4
  332. package/dist/flows/PayrollEmployeeOnboarding/index.js +1 -1
  333. package/dist/flows/PayrollEmployeeOnboarding/types.d.ts +4 -4
  334. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  335. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  336. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  337. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  338. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  339. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  340. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  341. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  342. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  343. package/dist/flows/Termination/TerminationFlow.js +1 -1
  344. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  345. package/dist/flows/Termination/TerminationForm.js +1 -1
  346. package/dist/flows/Termination/api.d.ts +5 -5
  347. package/dist/flows/Termination/api.js +1 -1
  348. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  349. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  350. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  351. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  352. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  353. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  354. package/dist/flows/Termination/context.d.ts +4 -4
  355. package/dist/flows/Termination/hooks.d.ts +4 -4
  356. package/dist/flows/Termination/hooks.js +1 -1
  357. package/dist/flows/Termination/index.d.ts +6 -6
  358. package/dist/flows/Termination/index.js +1 -1
  359. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  360. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  361. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  362. package/dist/flows/Termination/types.d.ts +4 -4
  363. package/dist/flows/Termination/utils.d.ts +4 -4
  364. package/dist/flows/types.d.ts +8 -3
  365. package/dist/flows/useStepState.js +1 -1
  366. package/dist/flows/utils.d.ts +2 -2
  367. package/dist/index.d.ts +16 -14
  368. package/dist/index.js +2 -2
  369. package/dist/index.js.map +1 -1
  370. package/dist/internals.d.ts +4 -4
  371. package/dist/internals.js +1 -1
  372. package/dist/{mutations-D7wGden5.d.ts → mutations-DQjVuza-.d.ts} +1 -1
  373. package/dist/{remoteFlows-Do_hGrKi.d.ts → remoteFlows-B_JbhzWp.d.ts} +28 -2
  374. package/dist/{types-BSn99OzF.d.ts → types-1mH_uuoA.d.ts} +2 -2
  375. package/dist/{types-CZpddZC4.d.ts → types-B0iYt6RL.d.ts} +63 -14
  376. package/dist/{types-BhMTFN9Y.d.ts → types-B93nzmoE.d.ts} +1 -1
  377. package/dist/{types-CiQ08J9g.d.ts → types-BFzhRUSU.d.ts} +2 -2
  378. package/dist/{types-aNjp47fZ.d.ts → types-CdC2MYpf.d.ts} +2 -2
  379. package/dist/{types-BpETJhdu.d.ts → types-Clzf4xjV.d.ts} +3 -3
  380. package/dist/{types-BgwIacP2.d.ts → types-CoYsxVTI.d.ts} +1 -1
  381. package/dist/{types-CzmaeZs2.d.ts → types-D3U8Wi3X.d.ts} +3 -3
  382. package/dist/{types.gen-C4K7xky-.d.ts → types.gen-BmtA4XNd.d.ts} +230 -1
  383. package/dist/{utils-BU5K1WH5.d.ts → utils-DJgzqxq4.d.ts} +1 -1
  384. package/package.json +1 -1
  385. package/dist/CheckboxFieldDefault-6B33T4XR.js +0 -2
  386. package/dist/CountryFieldDefault-TVGOKASR.js +0 -2
  387. package/dist/DatePickerFieldDefault-TH427OH5.js +0 -2
  388. package/dist/FileUploadFieldDefault-WB7ITN3G.js +0 -2
  389. package/dist/ForcedValueFieldDefault-QH76S3ZL.js +0 -2
  390. package/dist/MultiSelectFieldDefault-T26SUE3J.js +0 -2
  391. package/dist/RadioGroupFieldDefault-ZNWHLCZP.js +0 -2
  392. package/dist/SelectFieldDefault-LFXATOYZ.js +0 -2
  393. package/dist/TelFieldDefault-4FJVSZRV.js +0 -2
  394. package/dist/TextAreaFieldDefault-QRU4Z4V2.js +0 -2
  395. package/dist/TextFieldDefault-LFKGGEU3.js +0 -2
  396. package/dist/TimeFieldDefault-RU75LZ2T.js +0 -2
  397. package/dist/chunk-2HQDOWW2.js.map +0 -1
  398. package/dist/chunk-3OLZMSGR.js +0 -2
  399. package/dist/chunk-3OLZMSGR.js.map +0 -1
  400. package/dist/chunk-4IDFJ6DS.js +0 -2
  401. package/dist/chunk-4IDFJ6DS.js.map +0 -1
  402. package/dist/chunk-5MPW7QWT.js +0 -2
  403. package/dist/chunk-7RLRU3VM.js +0 -2
  404. package/dist/chunk-7RLRU3VM.js.map +0 -1
  405. package/dist/chunk-7UWA3JTM.js +0 -2
  406. package/dist/chunk-7UWA3JTM.js.map +0 -1
  407. package/dist/chunk-GMCJXDUP.js +0 -2
  408. package/dist/chunk-HDOEUCXY.js.map +0 -1
  409. package/dist/chunk-LWLFJAG6.js +0 -2
  410. package/dist/chunk-MREG2JYT.js +0 -2
  411. package/dist/chunk-MREG2JYT.js.map +0 -1
  412. package/dist/chunk-PJ2MZ6FH.js +0 -2
  413. package/dist/chunk-PJ2MZ6FH.js.map +0 -1
  414. package/dist/chunk-QJHSN6MG.js +0 -2
  415. package/dist/chunk-QN6OMOUW.js +0 -2
  416. package/dist/chunk-SL5WZ76A.js +0 -2
  417. package/dist/chunk-UOA3M7EJ.js +0 -2
  418. package/dist/chunk-WLZRAEPQ.js +0 -2
  419. package/dist/chunk-XPVYX7LE.js +0 -2
  420. package/dist/chunk-XPVYX7LE.js.map +0 -1
  421. package/dist/chunk-XZMPAJRL.js +0 -2
  422. package/dist/chunk-XZMPAJRL.js.map +0 -1
  423. /package/dist/{CheckboxFieldDefault-6B33T4XR.js.map → CheckboxFieldDefault-JXNMWIRK.js.map} +0 -0
  424. /package/dist/{CountryFieldDefault-TVGOKASR.js.map → CountryFieldDefault-SO4WS7KE.js.map} +0 -0
  425. /package/dist/{DatePickerFieldDefault-TH427OH5.js.map → DatePickerFieldDefault-AZHJN2U6.js.map} +0 -0
  426. /package/dist/{FileUploadFieldDefault-WB7ITN3G.js.map → FileUploadFieldDefault-K6PF6RP7.js.map} +0 -0
  427. /package/dist/{ForcedValueFieldDefault-QH76S3ZL.js.map → ForcedValueFieldDefault-BEOC4MYU.js.map} +0 -0
  428. /package/dist/{MultiSelectFieldDefault-T26SUE3J.js.map → MultiSelectFieldDefault-QKXVTGF2.js.map} +0 -0
  429. /package/dist/{RadioGroupFieldDefault-ZNWHLCZP.js.map → RadioGroupFieldDefault-ZHHXDUUU.js.map} +0 -0
  430. /package/dist/{SelectFieldDefault-LFXATOYZ.js.map → SelectFieldDefault-FWQ7D6DU.js.map} +0 -0
  431. /package/dist/{TelFieldDefault-4FJVSZRV.js.map → TelFieldDefault-RA7IBELJ.js.map} +0 -0
  432. /package/dist/{TextAreaFieldDefault-QRU4Z4V2.js.map → TextAreaFieldDefault-NEFWXEE2.js.map} +0 -0
  433. /package/dist/{TextFieldDefault-LFKGGEU3.js.map → TextFieldDefault-RXNU36AX.js.map} +0 -0
  434. /package/dist/{TimeFieldDefault-RU75LZ2T.js.map → TimeFieldDefault-KIJNBWYF.js.map} +0 -0
  435. /package/dist/{chunk-5IMEZZMR.js.map → chunk-2LR5N626.js.map} +0 -0
  436. /package/dist/{chunk-FLX72WFD.js.map → chunk-2LSLWFZS.js.map} +0 -0
  437. /package/dist/{chunk-EACCMXD5.js.map → chunk-3LELUHRO.js.map} +0 -0
  438. /package/dist/{chunk-XAIBLWDF.js.map → chunk-3LMZ3SOP.js.map} +0 -0
  439. /package/dist/{chunk-KBD6W5FL.js.map → chunk-3RQSRU7O.js.map} +0 -0
  440. /package/dist/{chunk-WI4YITIC.js.map → chunk-3VTHNE4H.js.map} +0 -0
  441. /package/dist/{chunk-TFBJMECV.js.map → chunk-4Y2INBAI.js.map} +0 -0
  442. /package/dist/{chunk-Q2MGM4I2.js.map → chunk-5FJ64F6D.js.map} +0 -0
  443. /package/dist/{chunk-4F7TGLUT.js.map → chunk-5J7DLDLW.js.map} +0 -0
  444. /package/dist/{chunk-Q2JINYSB.js.map → chunk-5MH23AST.js.map} +0 -0
  445. /package/dist/{chunk-CNQXPZJB.js.map → chunk-5WTCN4WO.js.map} +0 -0
  446. /package/dist/{chunk-7YACR6OA.js.map → chunk-6IDUDCVS.js.map} +0 -0
  447. /package/dist/{chunk-X536XUYT.js.map → chunk-6IQJJCQ3.js.map} +0 -0
  448. /package/dist/{chunk-5YOH2HJ5.js.map → chunk-6S5Q2OKC.js.map} +0 -0
  449. /package/dist/{chunk-SNEUIWQE.js.map → chunk-7NDAFJXR.js.map} +0 -0
  450. /package/dist/{chunk-OK2ZZ6NK.js.map → chunk-7XDU2VWN.js.map} +0 -0
  451. /package/dist/{chunk-AFKB7Z3G.js.map → chunk-A5XRBDDO.js.map} +0 -0
  452. /package/dist/{chunk-JP5GXWXT.js.map → chunk-ANZ2YYUE.js.map} +0 -0
  453. /package/dist/{chunk-RJ7BWEDB.js.map → chunk-B3ESNTKY.js.map} +0 -0
  454. /package/dist/{chunk-76TJCXAW.js.map → chunk-BTZ57COZ.js.map} +0 -0
  455. /package/dist/{chunk-GTZ35W3E.js.map → chunk-BWM2MYPE.js.map} +0 -0
  456. /package/dist/{chunk-7G6XS63Q.js.map → chunk-BYTVIOOL.js.map} +0 -0
  457. /package/dist/{chunk-VWWVLK5C.js.map → chunk-C2HZNBMZ.js.map} +0 -0
  458. /package/dist/{chunk-TVNBMBTY.js.map → chunk-C5T75DEZ.js.map} +0 -0
  459. /package/dist/{chunk-32UP2UFU.js.map → chunk-CFPKRLGM.js.map} +0 -0
  460. /package/dist/{chunk-7EOTDIJI.js.map → chunk-CHIWBD6E.js.map} +0 -0
  461. /package/dist/{chunk-DH2NHUZU.js.map → chunk-D737GUYZ.js.map} +0 -0
  462. /package/dist/{chunk-C3YSF5RT.js.map → chunk-DLIVHNTT.js.map} +0 -0
  463. /package/dist/{chunk-OLBMZGOC.js.map → chunk-EQIWABAZ.js.map} +0 -0
  464. /package/dist/{chunk-XCQI5O67.js.map → chunk-EYZVDP6A.js.map} +0 -0
  465. /package/dist/{chunk-U74P6WCT.js.map → chunk-F2SGCGXL.js.map} +0 -0
  466. /package/dist/{chunk-KFTMJ253.js.map → chunk-F3DZUA7W.js.map} +0 -0
  467. /package/dist/{chunk-FJNQ64SB.js.map → chunk-F3UUYQGY.js.map} +0 -0
  468. /package/dist/{chunk-HNJ7ZFEU.js.map → chunk-FDTOQHOJ.js.map} +0 -0
  469. /package/dist/{chunk-OPGC7BSY.js.map → chunk-FJD5GFO4.js.map} +0 -0
  470. /package/dist/{chunk-GSGCFKOZ.js.map → chunk-FT4ZNBTA.js.map} +0 -0
  471. /package/dist/{chunk-CETQLSZY.js.map → chunk-G3KQCVQQ.js.map} +0 -0
  472. /package/dist/{chunk-7PWXGPXZ.js.map → chunk-H5OZSXSY.js.map} +0 -0
  473. /package/dist/{chunk-364G255Q.js.map → chunk-IAR6BWUY.js.map} +0 -0
  474. /package/dist/{chunk-7ZQYMDNU.js.map → chunk-ILX6RI7K.js.map} +0 -0
  475. /package/dist/{chunk-VT5V3C6T.js.map → chunk-IRUWMZVH.js.map} +0 -0
  476. /package/dist/{chunk-ISETCY2V.js.map → chunk-IUBHVGVV.js.map} +0 -0
  477. /package/dist/{chunk-VBWACHT3.js.map → chunk-J4CHUIPC.js.map} +0 -0
  478. /package/dist/{chunk-HCL7WLOR.js.map → chunk-JLM4O7ZW.js.map} +0 -0
  479. /package/dist/{chunk-H3JVB7GS.js.map → chunk-JMFCG5KA.js.map} +0 -0
  480. /package/dist/{chunk-2FI5CCXQ.js.map → chunk-JQ3SLOUP.js.map} +0 -0
  481. /package/dist/{chunk-FXVLXN2B.js.map → chunk-JRRPMAUO.js.map} +0 -0
  482. /package/dist/{chunk-ONUE4K6F.js.map → chunk-K67Q5476.js.map} +0 -0
  483. /package/dist/{chunk-ZGGEJ3FD.js.map → chunk-KPDYUFCB.js.map} +0 -0
  484. /package/dist/{chunk-5BJXFWKN.js.map → chunk-KZ5ZQTBF.js.map} +0 -0
  485. /package/dist/{chunk-VY64RMAF.js.map → chunk-LCUURLXS.js.map} +0 -0
  486. /package/dist/{chunk-DHS5QMH6.js.map → chunk-LCUYP6VW.js.map} +0 -0
  487. /package/dist/{chunk-CHTCJQJ3.js.map → chunk-MZK2U65W.js.map} +0 -0
  488. /package/dist/{chunk-UEJU2A57.js.map → chunk-ORP6DY5I.js.map} +0 -0
  489. /package/dist/{chunk-PZWP6ZVL.js.map → chunk-OTBCLDGR.js.map} +0 -0
  490. /package/dist/{chunk-5OEO67O2.js.map → chunk-PJTMFMRJ.js.map} +0 -0
  491. /package/dist/{chunk-YQZ3B2CT.js.map → chunk-PNNOU6BC.js.map} +0 -0
  492. /package/dist/{chunk-3YILMVSP.js.map → chunk-PYNHR7NL.js.map} +0 -0
  493. /package/dist/{chunk-IN6QZASY.js.map → chunk-QEHEOSJT.js.map} +0 -0
  494. /package/dist/{chunk-QA6YA4OB.js.map → chunk-QHJ3BYJN.js.map} +0 -0
  495. /package/dist/{chunk-5MPW7QWT.js.map → chunk-QSBXRKYE.js.map} +0 -0
  496. /package/dist/{chunk-NKGJZNXL.js.map → chunk-R2D32OB6.js.map} +0 -0
  497. /package/dist/{chunk-6VEWI4G2.js.map → chunk-RKP7EEAB.js.map} +0 -0
  498. /package/dist/{chunk-UTQDJNOV.js.map → chunk-S2QXSX4Q.js.map} +0 -0
  499. /package/dist/{chunk-Q4X35JRA.js.map → chunk-SNGQ2MKL.js.map} +0 -0
  500. /package/dist/{chunk-B7XTWLRI.js.map → chunk-SUVBETJS.js.map} +0 -0
  501. /package/dist/{chunk-EP3DUVMU.js.map → chunk-TLJXBZII.js.map} +0 -0
  502. /package/dist/{chunk-PQHXX3ZN.js.map → chunk-UAEQLFPK.js.map} +0 -0
  503. /package/dist/{chunk-WXKFXIMQ.js.map → chunk-UU2IFOXR.js.map} +0 -0
  504. /package/dist/{chunk-ZMBPKARZ.js.map → chunk-V3C32X6R.js.map} +0 -0
  505. /package/dist/{chunk-TYCOSAU4.js.map → chunk-VQRE3YLW.js.map} +0 -0
  506. /package/dist/{chunk-RDDQ5XMI.js.map → chunk-VYAJQ25J.js.map} +0 -0
  507. /package/dist/{chunk-JBAKDTGM.js.map → chunk-WDPJIOLG.js.map} +0 -0
  508. /package/dist/{chunk-KBYI7L5E.js.map → chunk-WGDZTF7Y.js.map} +0 -0
  509. /package/dist/{chunk-WXTEP5PE.js.map → chunk-WH3QR2W5.js.map} +0 -0
  510. /package/dist/{chunk-OKABTWB3.js.map → chunk-WHDUZGVW.js.map} +0 -0
  511. /package/dist/{chunk-MS63VN5N.js.map → chunk-WYIU74JN.js.map} +0 -0
  512. /package/dist/{chunk-4E5YP5GD.js.map → chunk-WZOVZYNI.js.map} +0 -0
  513. /package/dist/{chunk-6VBUWE25.js.map → chunk-XTLTKB3S.js.map} +0 -0
  514. /package/dist/{chunk-XGECMN4V.js.map → chunk-YRC6EEM3.js.map} +0 -0
  515. /package/dist/{chunk-GVQ7UXVW.js.map → chunk-YUUUI4FY.js.map} +0 -0
  516. /package/dist/{chunk-RPRRMRCO.js.map → chunk-Z7VNXKWB.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- import{a as Q}from"./chunk-HKNQKO5Y.js";import{a as J}from"./chunk-VT5V3C6T.js";import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-W5WYIDDY.js";import{a as Y}from"./chunk-H3JVB7GS.js";import{a as H}from"./chunk-XGECMN4V.js";import{f as Z,g as K}from"./chunk-364G255Q.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as q,b as B,c as L,d as z}from"./chunk-ASKPQZY2.js";import{a as S}from"./chunk-HBONR7VY.js";import{a as N}from"./chunk-MREG2JYT.js";import{a as E}from"./chunk-XFVXRCMH.js";import{a as _,c as v}from"./chunk-3OLZMSGR.js";import{u as O}from"./chunk-XI55YG73.js";import{b as w,h as u,n as D}from"./chunk-C4HFMTSB.js";import{a as A}from"./chunk-XPVYX7LE.js";import{a as I}from"./chunk-FSGFBJJF.js";import{e as $}from"./chunk-H2O4CVKF.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=$();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>O({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:_.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:_.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:_.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await u(s,me.fields,{isPartialValidation:!0}):f?await u(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await u(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
2
- //# sourceMappingURL=chunk-GMCJXDUP.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/Onboarding/utils.ts"],"sourcesContent":["import { Employment, OnboardingFlowProps } from '@/src/flows/Onboarding/types';\nimport { Step } from '@/src/flows/useStepState';\n\nexport type StepKeys =\n | 'select_country'\n | 'basic_information'\n | 'engagement_agreement_details'\n | 'contract_details'\n | 'benefits'\n | 'employment_agreement_preview'\n | 'review';\n\ntype StepConfig = {\n includeSelectCountry?: boolean;\n includeEngagementAgreementDetails?: boolean;\n useDynamicSteps?: boolean;\n useEAPreview?: boolean;\n};\n\nexport function buildSteps(config: StepConfig = {}) {\n const stepDefinitions: Array<{\n name: StepKeys;\n label: string;\n visible: boolean;\n }> = [\n {\n name: 'select_country',\n label: 'Select Country',\n visible: Boolean(config?.includeSelectCountry),\n },\n {\n name: 'basic_information',\n label: 'Basic Information',\n visible: true,\n },\n {\n name: 'engagement_agreement_details',\n label: 'Engagement Agreement Details',\n visible: Boolean(config?.includeEngagementAgreementDetails),\n },\n {\n name: 'contract_details',\n label: 'Contract Details',\n visible: true,\n },\n {\n name: 'benefits',\n label: 'Benefits',\n visible: true,\n },\n {\n name: 'employment_agreement_preview',\n label: 'Preview Employment Agreement',\n visible: Boolean(config?.useEAPreview),\n },\n {\n name: 'review',\n label: 'Review',\n visible: true,\n },\n ];\n\n // When useDynamicSteps is false (default/legacy behavior):\n // - Filter out hidden steps first\n // - Assign sequential indices (0, 1, 2, 3...)\n // - This maintains backwards compatibility with existing implementations\n //\n // When useDynamicSteps is true (new behavior):\n // - Keep all steps including hidden ones\n // - Preserve original indices even for hidden steps\n // - Consumers must filter by `visible` property\n const stepsArray = config.useDynamicSteps\n ? stepDefinitions.map((step, index) => ({\n name: step.name,\n index,\n label: step.label,\n visible: step.visible,\n }))\n : stepDefinitions\n .filter((step) => step.visible)\n .map((step, index) => ({\n name: step.name,\n index,\n label: step.label,\n visible: step.visible,\n }));\n\n const steps = stepsArray.reduce(\n (acc, step) => {\n acc[step.name] = {\n index: step.index,\n name: step.name,\n visible: step.visible,\n };\n return acc;\n },\n {} as Record<string, Step<StepKeys>>,\n );\n\n return { steps, stepsArray };\n}\n\n/**\n * Array of employment statuses that are allowed to proceed to the review step.\n * These statuses indicate that the employment is in a final state and the employment cannot be modified further.\n * @type {Employment['status'][]}\n * @constant\n */\nexport const reviewStepAllowedEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'invited',\n 'created_awaiting_reserve',\n 'created_reserve_paid',\n 'active',\n];\n\nexport const disabledInviteButtonEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'created_awaiting_reserve',\n 'invited',\n 'active',\n];\n\n/**\n * Array of employment statuses that have already handled the reserve flow.\n * @type {Employment['status'][]}\n * @constant\n */\nexport const statusesWithReserveAlreadyHandled: Employment['status'][] = [\n 'created_awaiting_reserve',\n 'created_reserve_paid',\n 'invited',\n 'active',\n];\n\nexport const DEFAULT_VERSION = 1;\n\n/**\n * Countries whose contract details schema is served as jsfVersion 1.\n * Those forms keep their own field state, so they go through\n * useContractDetailsSchema instead of useJSONSchemaForm.\n * FRA = wage portage, ITA = APL.\n */\nconst JSF_V1_CONTRACT_DETAILS_COUNTRIES = ['FRA', 'ITA'];\n\n/**\n * Checks if a country's contract details schema is served as jsfVersion 1\n *\n * @param countryCode - The country code to check\n */\nexport const usesJsfV1ContractDetails = (countryCode: string | null) =>\n Boolean(\n countryCode && JSF_V1_CONTRACT_DETAILS_COUNTRIES.includes(countryCode),\n );\n\n/**\n * Gets the default (recommended) contract details schema version for a country\n */\nconst getDefaultContractDetailsSchemaVersion = (): number => {\n return DEFAULT_VERSION;\n};\n\n/**\n * Resolves the effective contract details schema version for a country\n *\n * @param options - The flow options containing version configurations\n * @param countryCode - The country code to resolve version for\n * @returns The effective jsonSchemaVersion configuration\n */\nexport const getContractDetailsSchemaVersion = (\n options: OnboardingFlowProps['options'],\n countryCode: string | null,\n) => {\n const jsonSchemaVersionByCountry = options?.jsonSchemaVersionByCountry;\n const countrySpecificVersion = countryCode\n ? jsonSchemaVersionByCountry?.[countryCode]?.contract_details\n : undefined;\n\n const requestedVersion = countrySpecificVersion\n ? countrySpecificVersion\n : getDefaultContractDetailsSchemaVersion();\n\n return requestedVersion;\n};\n\n/**\n * Gets the basic information schema version from options\n * @param options - The flow options containing version configurations\n * @returns The jsonSchemaVersion for basic information or default\n */\nexport const getBasicInformationSchemaVersion = (\n options: OnboardingFlowProps['options'],\n): number | 'latest' => {\n return (\n options?.jsonSchemaVersion?.employment_basic_information || DEFAULT_VERSION\n );\n};\n\n/**\n * Gets the benefit offers schema version from options\n * @param options - The flow options containing version configurations\n * @returns The jsonSchemaVersion for benefit offers or undefined if not set\n */\nexport const getBenefitOffersSchemaVersion = (\n options: OnboardingFlowProps['options'],\n): number | 'latest' => {\n return (\n options?.jsonSchemaVersion?.benefit_offers_form_schema || DEFAULT_VERSION\n );\n};\n\n/**\n * Gets the engagement agreement details schema version from options\n * @param options - The flow options containing version configurations\n * @returns The jsonSchemaVersion for engagement agreement details or default\n */\nexport const getEngagementAgreementDetailsSchemaVersion = (\n options: OnboardingFlowProps['options'],\n): number | 'latest' => {\n return (\n options?.jsonSchemaVersion?.engagement_agreement_details || DEFAULT_VERSION\n );\n};\n"],"mappings":"wCAmBO,SAASA,EAAWC,EAAqB,CAAC,EAAG,CAClD,IAAMC,EAID,CACH,CACE,KAAM,iBACN,MAAO,iBACP,QAAS,EAAQD,GAAQ,oBAC3B,EACA,CACE,KAAM,oBACN,MAAO,oBACP,QAAS,EACX,EACA,CACE,KAAM,+BACN,MAAO,+BACP,QAAS,EAAQA,GAAQ,iCAC3B,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EACX,EACA,CACE,KAAM,WACN,MAAO,WACP,QAAS,EACX,EACA,CACE,KAAM,+BACN,MAAO,+BACP,QAAS,EAAQA,GAAQ,YAC3B,EACA,CACE,KAAM,SACN,MAAO,SACP,QAAS,EACX,CACF,EAWME,EAAaF,EAAO,gBACtBC,EAAgB,IAAI,CAACE,EAAMC,KAAW,CACpC,KAAMD,EAAK,KACX,MAAAC,EACA,MAAOD,EAAK,MACZ,QAASA,EAAK,OAChB,EAAE,EACFF,EACG,OAAQE,GAASA,EAAK,OAAO,EAC7B,IAAI,CAACA,EAAMC,KAAW,CACrB,KAAMD,EAAK,KACX,MAAAC,EACA,MAAOD,EAAK,MACZ,QAASA,EAAK,OAChB,EAAE,EAcR,MAAO,CAAE,MAZKD,EAAW,OACvB,CAACG,EAAKF,KACJE,EAAIF,EAAK,IAAI,EAAI,CACf,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,QAASA,EAAK,OAChB,EACOE,GAET,CAAC,CACH,EAEgB,WAAAH,CAAW,CAC7B,CAjFgBI,EAAAP,EAAA,cAyFT,IAAMQ,EAA4D,CACvE,YACA,UACA,2BACA,uBACA,QACF,EAEaC,EAA+D,CAC1E,YACA,2BACA,UACA,QACF,EAOaC,EAA4D,CACvE,2BACA,uBACA,UACA,QACF,EAEaC,EAAkB,EAQzBC,EAAoC,CAAC,MAAO,KAAK,EAO1CC,EAA2BN,EAACO,GACvC,GACEA,GAAeF,EAAkC,SAASE,CAAW,GAFjC,4BAQlCC,EAAyCR,EAAA,IACtCI,EADsC,0CAWlCK,EAAkCT,EAAA,CAC7CU,EACAH,IACG,CACH,IAAMI,EAA6BD,GAAS,2BACtCE,EAAyBL,EAC3BI,IAA6BJ,CAAW,GAAG,iBAC3C,OAMJ,OAJyBK,GAErBJ,EAAuC,CAG7C,EAd+C,mCAqBlCK,EAAmCb,EAC9CU,GAGEA,GAAS,mBAAmB,8BAAgCN,EAJhB,oCAanCU,EAAgCd,EAC3CU,GAGEA,GAAS,mBAAmB,4BAA8BN,EAJjB,iCAahCW,EAA6Cf,EACxDU,GAGEA,GAAS,mBAAmB,8BAAgCN,EAJN","names":["buildSteps","config","stepDefinitions","stepsArray","step","index","acc","__name","reviewStepAllowedEmploymentStatus","disabledInviteButtonEmploymentStatus","statusesWithReserveAlreadyHandled","DEFAULT_VERSION","JSF_V1_CONTRACT_DETAILS_COUNTRIES","usesJsfV1ContractDetails","countryCode","getDefaultContractDetailsSchemaVersion","getContractDetailsSchemaVersion","options","jsonSchemaVersionByCountry","countrySpecificVersion","getBasicInformationSchemaVersion","getBenefitOffersSchemaVersion","getEngagementAgreementDetailsSchemaVersion"]}
@@ -1,2 +0,0 @@
1
- import{a as R,b as x,c as N,d as A}from"./chunk-OV4ARZIX.js";import{a as T}from"./chunk-ZE3YT3Q6.js";import{a as C}from"./chunk-SWLNTVAX.js";import{b as B}from"./chunk-LKHRHBFP.js";import{a as w,c as f}from"./chunk-3OLZMSGR.js";import{n as i,o as n,r as F}from"./chunk-C4HFMTSB.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as G}from"lucide-react";import{useState as P}from"react";import{Fragment as U,jsx as g,jsxs as E}from"react/jsx-runtime";function L({actions:e=[],className:r,label:a,"data-testid":l}){let[_,d]=P(!1);return E("div",{className:i("relative",r),children:[g(B,{"data-testid":l,variant:"ghost","aria-label":a,className:"h-8 w-8 p-0",onClick:()=>d(!_),children:g(G,{className:"h-4 w-4"})}),_&&E(U,{children:[g("div",{className:"fixed inset-0 z-40",onClick:()=>d(!1)}),g("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((c,u)=>g("button",{"data-testid":`${l}-${c.label.toLowerCase().replace(" ","-")}`,className:i("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",c.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{c.onClick(),d(!1)},disabled:c.disabled,children:c.label},u))})]})]})}m(L,"ActionsDropdown");import{ChevronDown as S,Info as $}from"lucide-react";import j from"react-flagpack";import{useState as O}from"react";import{Fragment as b,jsx as o,jsxs as t}from"react/jsx-runtime";var Z={GB:"GB-UKM"},K=m(({title:e,country:r,region:a,annualGrossSalary:l,onDelete:_,onExportPdf:d,onEdit:c})=>{let u=[{label:"Edit",onClick:c},{label:"Export",onClick:d},{label:"Delete",onClick:_}];return t("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[t("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(j,{code:Z[r.alpha_2_code]||r.alpha_2_code})}),t("div",{className:"space-y-1",children:[o("h2",{"data-testid":"estimation-results-header-title",className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),t("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[r.name," ",a?` (${a.name})`:""]}),t("p",{"data-testid":"estimation-results-header-annual-gross-salary",className:"RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]",children:[o("span",{className:"text-[#181818]",children:"Employee annual gross salary:"})," ",l]})]})]}),o(L,{label:"Actions",className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:u})]})},"EstimationResultsHeader"),V=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.",zendeskArticleId:w.employeeOnboardingTimeline}),"getOnboardingTimelineData");function Y({minimumOnboardingDays:e,data:r,className:a}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:t(x,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:t("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),e!=null&&t("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),t(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:r.steps.map(l=>t("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),t("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[r.helpText,r.zendeskArticleId&&o(f,{zendeskId:r.zendeskArticleId,children:"Learn more"})]})]})]})})}m(Y,"OnboardingTimeline");function q({className:e,countryBenefitsUrl:r,countryGuideUrl:a,country:l}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__HiringSection w-full",e),children:t(x,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:t("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:t("div",{className:"flex flex-col gap-1",children:[a&&o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),r&&o("a",{href:r,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(q,"HiringSection");function J({isMultipleCurrency:e,className:r}){return t("div",{className:i("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",r),children:[o("span",{"aria-hidden":!0}),e?t(b,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):t(b,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m(J,"EstimationHeaders");function I({label:e,amounts:r,className:a,children:l}){let[_,d]=O(!0);return t("div",{className:i("RemoteFlows__EstimationResults__Row",a),children:[t("div",{className:"RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center",children:[t("div",{className:"RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2",children:[o("span",{className:i("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>d(!_),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(S,{className:`h-4 w-4 text-muted-foreground transition-transform ${_?"rotate-180":""}`})})]}),Array.isArray(r)?r.map((c,u)=>o("span",{className:i("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:c},u)):t(b,{children:[o("span",{}),o("span",{className:i("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:r})]})]}),_&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(I,"EstimationRow");function Q({item:e,isMultipleCurrency:r,level:a=0}){let[l,_]=O(!1),d=e.children&&e.children.length>0,c=a>0,u=e.isCollapsible||d;return t("li",{className:i("RemoteFlows__BreakdownList__Item pb-3",c&&"pb-1"),children:[t("div",{className:i(r?"RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between":"RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between"),children:[t("div",{className:i("RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2",c&&"pl-3"),children:[!c&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),u?t("button",{onClick:()=>_(!l),className:"RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1",children:[o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),o(S,{className:`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})]}):o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1"),children:e.label}),e.tooltip&&o(T,{content:t(b,{children:[o("span",{dangerouslySetInnerHTML:{__html:F(e.tooltip)}})," ",e.zendeskId&&o(f,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o($,{className:i("RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground",c?"h-3 w-3":"h-4 w-4")})})})]}),r?t(b,{children:[o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employee-amount",className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employer-amount",className:i("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{"data-testid":e.dataSelector,className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),d&&l&&o("div",{className:"mt-1",children:o(k,{items:e.children,isMultipleCurrency:r,level:a+1})})]})}m(Q,"BreakdownListItem");function k({items:e,isMultipleCurrency:r,className:a,level:l}){return o("ul",{className:i("RemoteFlows__BreakdownList list-none",a),children:e.map((_,d)=>o(Q,{item:_,isMultipleCurrency:r,level:l},d))})}m(k,"BreakdownList");var pe=m(({estimation:e,title:r,components:a,onDelete:l,onExportPdf:_,onEdit:d})=>{let c=a?.HiringSection||q,u=a?.OnboardingTimeline||Y,z=a?.Header||K,h=a?.Footer,H=V(),p=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,v=e.employer_currency_costs.monthly_management_fee,D=e.region.code!==e.country.code,M=n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code);return t(C,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(z,{title:r,annualGrossSalary:M,region:D?e.region:void 0,country:e.country,onDelete:l,onExportPdf:_,onEdit:d})}),t("div",{className:"RemoteFlows__Separator",children:[o(J,{isMultipleCurrency:p,className:"mb-3"}),o(I,{label:"Monthly total cost",amounts:p?[n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross monthly salary",regionalAmount:n(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.code),zendeskId:w.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Monthly fee",regionalAmount:n(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})]}),o("div",{className:"RemoteFlows__Separator",children:o(I,{label:"Annual total cost",amounts:p?[n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross annual salary",dataSelector:"annual-gross-salary",regionalAmount:n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.code)},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Annual fee",regionalAmount:n(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:H})}),o(c,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),h&&o(h,{})]})},"EstimationResults");export{pe as a};
2
- //# sourceMappingURL=chunk-LWLFJAG6.js.map
@@ -1,2 +0,0 @@
1
- import{R as r,d as m}from"./chunk-XI55YG73.js";import{e as o}from"./chunk-H2O4CVKF.js";import{a as e}from"./chunk-P37U34EQ.js";import{useMutation as p,useQuery as u}from"@tanstack/react-query";var f=e(({employmentId:t,queryParams:n,enabled:s=!0})=>{let{client:l}=o();return u({queryKey:["employment",t],retry:!1,queryFn:e(()=>r({client:l,headers:{Authorization:""},path:{employment_id:t},query:n}),"queryFn"),enabled:!!t&&s,select:e(({data:i})=>i?.data?.employment,"select")})},"useEmploymentQuery"),h=e(()=>{let{client:t}=o();return p({mutationFn:e(({employmentId:n})=>m({client:t,headers:{Authorization:""},path:{employment_id:n}}),"mutationFn")})},"useDiscardEmploymentMutation");export{f as a,h as b};
2
- //# sourceMappingURL=chunk-MREG2JYT.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/common/api/employment.ts"],"sourcesContent":["import {\n getV1EmploymentsEmploymentId,\n GetV1EmploymentsEmploymentIdResponse,\n postV1CancelOnboardingEmploymentId,\n} from '@/src/client';\nimport { useClient } from '@/src/context';\nimport { $TSFixMe } from '@/src/types/remoteFlows';\nimport { useMutation, useQuery, UseQueryResult } from '@tanstack/react-query';\nimport { Client } from '@/src/client/client';\n\n/**\n * Hook to retrieve employment details for a specific employment ID.\n *\n * @param {Object} params - The parameters for the query.\n * @param {string} params.employmentId - The ID of the employment to fetch details for.\n * @returns {UseQueryResult<any, unknown>} - The result of the query, including the employment details.\n */\nexport const useEmploymentQuery = ({\n employmentId,\n queryParams,\n enabled = true,\n}: {\n employmentId: string;\n queryParams?: $TSFixMe; // TODO: we need to generate openapi-ts types but it's broken at the moment\n /** Optional. Set to `false` to skip the query, e.g. when the caller's token can't reach this endpoint. */\n enabled?: boolean;\n}): UseQueryResult<\n GetV1EmploymentsEmploymentIdResponse['data']['employment'],\n unknown\n> => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['employment', employmentId],\n retry: false,\n queryFn: () => {\n return getV1EmploymentsEmploymentId({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n path: { employment_id: employmentId },\n query: queryParams,\n });\n },\n enabled: !!employmentId && enabled,\n select: ({ data }) => data?.data?.employment,\n });\n};\n\n/**\n * Hook to discard an employment.\n *\n * @returns {UseMutationResult<void, unknown, { employmentId: string }, unknown>} - The mutation result.\n */\nexport const useDiscardEmploymentMutation = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: ({ employmentId }: { employmentId: string }) => {\n return postV1CancelOnboardingEmploymentId({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n path: { employment_id: employmentId },\n });\n },\n });\n};\n"],"mappings":"+HAOA,OAAS,eAAAA,EAAa,YAAAC,MAAgC,wBAU/C,IAAMC,EAAqBC,EAAA,CAAC,CACjC,aAAAC,EACA,YAAAC,EACA,QAAAC,EAAU,EACZ,IAQK,CACH,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAS,CACd,SAAU,CAAC,aAAcL,CAAY,EACrC,MAAO,GACP,QAASD,EAAA,IACAO,EAA6B,CAClC,OAAQH,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAM,CAAE,cAAeH,CAAa,EACpC,MAAOC,CACT,CAAC,EARM,WAUT,QAAS,CAAC,CAACD,GAAgBE,EAC3B,OAAQH,EAAA,CAAC,CAAE,KAAAQ,CAAK,IAAMA,GAAM,MAAM,WAA1B,SACV,CAAC,CACH,EA9BkC,sBAqCrBC,EAA+BT,EAAA,IAAM,CAChD,GAAM,CAAE,OAAAI,CAAO,EAAIC,EAAU,EAC7B,OAAOK,EAAY,CACjB,WAAYV,EAAA,CAAC,CAAE,aAAAC,CAAa,IACnBU,EAAmC,CACxC,OAAQP,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAM,CAAE,cAAeH,CAAa,CACtC,CAAC,EAPS,aASd,CAAC,CACH,EAb4C","names":["useMutation","useQuery","useEmploymentQuery","__name","employmentId","queryParams","enabled","client","useClient","useQuery","getV1EmploymentsEmploymentId","data","useDiscardEmploymentMutation","useMutation","postV1CancelOnboardingEmploymentId"]}
@@ -1,2 +0,0 @@
1
- import{a as e}from"./chunk-CW7CHRMN.js";import{a as s}from"./chunk-KFTMJ253.js";import{a as p}from"./chunk-DB4JHJ3Z.js";import{a as c}from"./chunk-OKABTWB3.js";import{a as g}from"./chunk-KVUKJU5U.js";import{a as i}from"./chunk-CHTCJQJ3.js";import{a as f}from"./chunk-76TJCXAW.js";import{a as l}from"./chunk-B7XTWLRI.js";import{a as u}from"./chunk-OK2ZZ6NK.js";import{a as d}from"./chunk-SVVZOMLQ.js";import{a as S}from"./chunk-KBD6W5FL.js";import{a as m}from"./chunk-4E5YP5GD.js";import{a as n}from"./chunk-Q3ALCPJN.js";import{a}from"./chunk-7RLRU3VM.js";import{a as o}from"./chunk-P37U34EQ.js";import{useId as F,useRef as y,useMemo as D}from"react";import{jsx as V}from"react/jsx-runtime";var L=o(({render:C,employmentId:b,externalId:v,countryCode:O,skipSteps:B,initialValues:w,options:P})=>{let R=F(),t=y(void 0),I=D(()=>({setValue:t}),[]),r=a({options:{...P,onContractReviewed:o(()=>{t.current&&t.current("review_completed",!0)},"onContractReviewed")},employmentId:b,externalId:v,countryCode:O,skipSteps:B,initialValues:w});return V(n.Provider,{value:{contractorOnboardingBag:r,formId:R,formRef:I},children:C({contractorOnboardingBag:r,components:{BasicInformationStep:m,SelectCountryStep:i,BackButton:e,SubmitButton:p,PricingPlanStep:c,EligibilityQuestionnaireStep:S,ContractOriginStep:l,ContractDetailsStep:f,ContractPreviewStep:u,OnboardingInvite:s,ContractReviewButton:d,SaveDraftButton:g}})})},"ContractorOnboardingFlow");export{L as a};
2
- //# sourceMappingURL=chunk-PJ2MZ6FH.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/ContractorOnboarding/ContractorOnboarding.tsx"],"sourcesContent":["import { UseFormSetValue } from 'react-hook-form';\nimport { useId, useRef, useMemo } from 'react';\nimport { OnboardingBack } from '@/src/flows/ContractorOnboarding/components/OnboardingBack';\nimport { SelectCountryStep } from '@/src/flows/ContractorOnboarding/components/SelectCountryStep';\nimport { ContractorOnboardingContext } from '@/src/flows/ContractorOnboarding/context';\nimport { useContractorOnboarding } from '@/src/flows/ContractorOnboarding/hooks';\nimport { ContractorOnboardingFlowProps } from '@/src/flows/ContractorOnboarding/types';\nimport { BasicInformationStep } from '@/src/flows/ContractorOnboarding/components/BasicInformationStep';\nimport { OnboardingSubmit } from '@/src/flows/ContractorOnboarding/components/OnboardingSubmit';\nimport { PricingPlanStep } from '@/src/flows/ContractorOnboarding/components/PricingPlan';\nimport { ContractDetailsStep } from '@/src/flows/ContractorOnboarding/components/ContractDetailsStep';\nimport { ContractPreviewStep } from '@/src/flows/ContractorOnboarding/components/ContractPreviewStep';\nimport { OnboardingInvite } from '@/src/flows/ContractorOnboarding/components/OnboardingInvite';\nimport { ContractReviewButton } from '@/src/flows/ContractorOnboarding/components/ContractReviewButton';\nimport { EligibilityQuestionnaireStep } from '@/src/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep';\nimport { SaveDraftButton } from '@/src/flows/ContractorOnboarding/components/SaveDraftButton';\nimport { ContractOriginStep } from '@/src/flows/ContractorOnboarding/components/ContractOriginStep';\n\nexport const ContractorOnboardingFlow = ({\n render,\n employmentId,\n externalId,\n countryCode,\n skipSteps,\n initialValues,\n options,\n}: ContractorOnboardingFlowProps) => {\n const formId = useId();\n // Store form's setValue method in ref to allow sibling components\n // to update form state directly (e.g., ContractReviewButton setting review_completed)\n const setValueRef = useRef<\n UseFormSetValue<Record<string, unknown>> | undefined\n >(undefined);\n const formRef = useMemo(() => ({ setValue: setValueRef }), []);\n\n const contractorOnboardingBag = useContractorOnboarding({\n options: {\n ...options,\n onContractReviewed: () => {\n // Sync with internal form when contract is marked as reviewed\n if (setValueRef.current) {\n setValueRef.current('review_completed', true);\n }\n },\n },\n employmentId,\n externalId,\n countryCode,\n skipSteps,\n initialValues,\n });\n\n return (\n <ContractorOnboardingContext.Provider\n value={{ contractorOnboardingBag, formId, formRef }}\n >\n {render({\n contractorOnboardingBag,\n components: {\n BasicInformationStep: BasicInformationStep,\n SelectCountryStep: SelectCountryStep,\n BackButton: OnboardingBack,\n SubmitButton: OnboardingSubmit,\n PricingPlanStep: PricingPlanStep,\n EligibilityQuestionnaireStep: EligibilityQuestionnaireStep,\n ContractOriginStep: ContractOriginStep,\n ContractDetailsStep: ContractDetailsStep,\n ContractPreviewStep: ContractPreviewStep,\n OnboardingInvite: OnboardingInvite,\n ContractReviewButton: ContractReviewButton,\n SaveDraftButton: SaveDraftButton,\n },\n })}\n </ContractorOnboardingContext.Provider>\n );\n};\n"],"mappings":"mlBACA,OAAS,SAAAA,EAAO,UAAAC,EAAQ,WAAAC,MAAe,QAoDnC,cAAAC,MAAA,oBAnCG,IAAMC,EAA2BC,EAAA,CAAC,CACvC,OAAAC,EACA,aAAAC,EACA,WAAAC,EACA,YAAAC,EACA,UAAAC,EACA,cAAAC,EACA,QAAAC,CACF,IAAqC,CACnC,IAAMC,EAASC,EAAM,EAGfC,EAAcC,EAElB,MAAS,EACLC,EAAUC,EAAQ,KAAO,CAAE,SAAUH,CAAY,GAAI,CAAC,CAAC,EAEvDI,EAA0BC,EAAwB,CACtD,QAAS,CACP,GAAGR,EACH,mBAAoBP,EAAA,IAAM,CAEpBU,EAAY,SACdA,EAAY,QAAQ,mBAAoB,EAAI,CAEhD,EALoB,qBAMtB,EACA,aAAAR,EACA,WAAAC,EACA,YAAAC,EACA,UAAAC,EACA,cAAAC,CACF,CAAC,EAED,OACER,EAACkB,EAA4B,SAA5B,CACC,MAAO,CAAE,wBAAAF,EAAyB,OAAAN,EAAQ,QAAAI,CAAQ,EAEjD,SAAAX,EAAO,CACN,wBAAAa,EACA,WAAY,CACV,qBAAsBG,EACtB,kBAAmBC,EACnB,WAAYC,EACZ,aAAcC,EACd,gBAAiBC,EACjB,6BAA8BC,EAC9B,mBAAoBC,EACpB,oBAAqBC,EACrB,oBAAqBC,EACrB,iBAAkBC,EAClB,qBAAsBC,EACtB,gBAAiBC,CACnB,CACF,CAAC,EACH,CAEJ,EAzDwC","names":["useId","useRef","useMemo","jsx","ContractorOnboardingFlow","__name","render","employmentId","externalId","countryCode","skipSteps","initialValues","options","formId","useId","setValueRef","useRef","formRef","useMemo","contractorOnboardingBag","useContractorOnboarding","ContractorOnboardingContext","BasicInformationStep","SelectCountryStep","OnboardingBack","OnboardingSubmit","PricingPlanStep","EligibilityQuestionnaireStep","ContractOriginStep","ContractDetailsStep","ContractPreviewStep","OnboardingInvite","ContractReviewButton","SaveDraftButton"]}
@@ -1,2 +0,0 @@
1
- import{a as n,c as i}from"./chunk-3OLZMSGR.js";import{n as e}from"./chunk-C4HFMTSB.js";import{a as o}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as t,jsxs as r}from"react/jsx-runtime";var l=["You submit your termination request.","Remote reviews your request along with the employment agreement, local labor laws, and any collective bargaining agreements in place.","A lifecycle specialist contacts you if they need additional details. Sometimes they will request a call.","Depending on the country-specific laws and the terms of the employment agreement, Remote may need to seek additional legal advice. We\u2019ll let you know if there are additional charges before proceeding.","Terms and conditions for the termination are finalized.","You verbally communicate the termination to the employee.","Remote shares termination documents with the employee.","The employee signs the termination documents if required.","Remote processes the final salary and offboards the employee."],f=o(()=>r(s,{children:[t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__Title"),children:"Please read carefully before you continue"}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description"),children:"Please do not inform the employee of the termination. Remote will lead communication with them after you submit this form and they finalize the termination terms."}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description RemoteFlows__TerminationDialogInfoContent__FollowUpDescription"),children:"If you already informed them, that's okay. Remote will ask for the details regarding that communication and they'll take it from there."}),t(i,{className:e("RemoteFlows__TerminationDialogInfoContent__ZendeskTriggerButton text-sm"),zendeskId:n.terminationEmployeeCommunication,children:"Learn more about employee communication"}),t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessTitle"),children:"The termination process"}),t("ul",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessList list-disc list-inside"),children:l.map((a,m)=>t("li",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessListItem"),children:a},m))})]}),"TerminationDialogInfoContent");export{f as a};
2
- //# sourceMappingURL=chunk-QJHSN6MG.js.map
@@ -1,2 +0,0 @@
1
- import{g as B,h as f,i as h}from"./chunk-HDOEUCXY.js";import{a as z}from"./chunk-WVJDCDGZ.js";import{a as M}from"./chunk-WI4YITIC.js";import{a as p}from"./chunk-XFVXRCMH.js";import{$ as A,C as P,D as v,I as V,J as y,M as R,P as j,S as x,U as D,ea as I,g as b,i as E,j as F,m as q,n as _,pa as K,q as O,r as C,ra as Q,ta as k,x as w,y as S}from"./chunk-XI55YG73.js";import{e as s}from"./chunk-H2O4CVKF.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as l,useQuery as u}from"@tanstack/react-query";import{useMemo as U}from"react";var se=t(e=>{let{client:r}=s();return u({queryKey:["company",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let n=await v({client:r,headers:{Authorization:""},path:{company_id:e}});if(n.error||!n.data)throw new Error("Failed to fetch employment data");return n},"queryFn"),select:t(({data:n})=>n.data.company,"select")})},"useCompany"),ie=t(e=>{let{client:r}=s();return u({queryKey:["benefit-offers",e],retry:!1,enabled:!!e,queryFn:t(async()=>O({client:r,path:{employment_id:e}}).then(n=>{if(n.error||!n.data)throw new Error("Failed to fetch benefit offers data");return n}),"queryFn"),select:t(({data:n})=>n?.data?.reduce((o,a)=>({...o,[a.benefit_group.slug]:{value:a.benefit_tier?.slug??"no",...a.benefit_group?.filter?.slug?{filter:a.benefit_group?.filter?.slug}:{}}}),{}),"select")})},"useBenefitOffers"),me=t((e,r)=>{let{client:n}=s();return u({queryKey:["employment-engagement-agreement-details",e],retry:!1,enabled:r?.enabled??!!e,queryFn:t(async()=>q({client:n,headers:{Authorization:""},path:{employment_id:e}}).then(o=>{if(o.error||!o.data)throw new Error("Failed to fetch engagement agreement details");return o}),"queryFn"),select:t(({data:o})=>o?.data?.details,"select")})},"useEmploymentEngagementAgreementDetails"),le=t(()=>{let{client:e}=s();return l({mutationFn:t(r=>I({client:e,headers:{Authorization:""},path:r}),"mutationFn")})},"useEmploymentInvite"),ue=t(()=>{let{client:e}=s();return l({mutationFn:t(r=>P({client:e,body:r}),"mutationFn")})},"useCreateReserveInvoice"),ce=t(({countryCode:e,form:r,fieldValues:n,options:o,query:a={},jsonSchemaVersion:i})=>{let{client:m}=s(),g=i?{json_schema_version:i}:{};return u({queryKey:["onboarding-json-schema-form",e,r,i],retry:!1,queryFn:t(async()=>{let d=await y({client:m,headers:{Authorization:""},path:{country_code:e,form:r},query:{skip_benefits:!0,...a,...g}});if(d.error||!d.data)throw new Error("Failed to fetch onboarding schema");return d},"queryFn"),enabled:o?.queryOptions?.enabled,select:t(({data:d})=>{let c=d?.data||{};return p(c,n,o)},"select")})},"useJSONSchemaForm"),de=t(({countryCode:e,options:r,query:n={},jsonSchemaVersion:o})=>{let{client:a}=s(),i=o?{json_schema_version:o}:{},{data:m,...g}=u({queryKey:["onboarding-contract-details-schema",e,o],retry:!1,queryFn:t(async()=>{let c=await y({client:a,headers:{Authorization:""},path:{country_code:e,form:"contract_details"},query:{skip_benefits:!0,...n,...i}});if(c.error||!c.data)throw new Error("Failed to fetch onboarding schema");return c},"queryFn"),enabled:r?.queryOptions?.enabled});return{data:U(()=>{let c=m?.data.data;return c?p(c,{},r):null},[r,m?.data]),isLoading:g.isLoading}},"useContractDetailsSchema"),pe=t((e,r,n)=>{let{client:o}=s(),a={json_schema_version:h(n)};return u({queryKey:["benefit-offers-schema",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let i=await j({client:o,path:{employment_id:e},query:a});if(i.error||!i.data)throw new Error("Failed to fetch benefit offers schema");return i},"queryFn"),select:t(({data:i})=>{let m=i?.data?.schema||{};return p(m,r,{jsfModify:n?.jsfModify?.benefits})},"select")})},"useBenefitOffersSchema"),ye=t(e=>{let{client:r}=s(),n={json_schema_version:f(e)};return l({mutationFn:t(o=>E({client:r,headers:{Authorization:""},body:o,query:{...n}}),"mutationFn")})},"useCreateEmployment"),ge=t((e,r)=>{let{client:n}=s(),o={employment_basic_information_json_schema_version:f(r),contract_details_json_schema_version:B(r,e)||1};return l({mutationFn:t(({employmentId:a,...i})=>x({client:n,headers:{Authorization:""},body:i,path:{employment_id:a},query:{skip_benefits:!0,...o}}),"mutationFn")})},"useUpdateEmployment"),fe=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,...n})=>_({client:e,headers:{Authorization:""},body:n,path:{employment_id:r}}),"mutationFn")})},"useUpdateEmploymentEngagementAgreementDetails"),he=t(e=>{let{client:r}=s();return l({mutationFn:t(({employmentId:n,...o})=>{let a={json_schema_version:h(e)};return C({client:r,body:o,path:{employment_id:n},query:a})},"mutationFn")})},"useUpdateBenefitsOffers"),be=t(e=>{let{client:r}=s(),{data:n,isLoading:o}=u({...M(r,"onboarding-countries"),select:t(i=>i.data?.data?.filter(m=>m.eor_onboarding).map(m=>({label:m.name,value:m.code,employment_agreement_preview_available:m.employment_agreement_preview_available}))||[],"select"),enabled:e?.queryOptions?.enabled}),a=p(z.data.schema,{},e);if(n){let i=a.fields.find(m=>m.name==="country");i&&(i.options=n)}return{isLoading:o,selectCountryForm:a,countries:n}},"useCountriesSchemaField"),Ee=t(({type:e="spread"})=>{let{client:r}=s();return l({mutationFn:t(n=>(e==="no_spread"?b:A)({client:r,body:n}),"mutationFn")})},"useConvertCurrency"),Fe=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,...n})=>D({client:e,path:{employment_id:r},body:n}),"mutationFn")})},"useUpsertContractEligibility"),qe=t((e,r,n=!0)=>{let{client:o}=s();return u({queryKey:["employment-onboarding-reserves-status",e,r],retry:!1,enabled:n&&!!e&&!!r,queryFn:t(async()=>{let a=await F({client:o,headers:{Authorization:""},path:{company_id:e,employment_id:r}});if(a.error||!a.data)throw new Error("Failed to fetch employment onboarding reserves status");return a},"queryFn"),select:t(({data:a})=>a?.data?.status,"select")})},"useEmploymentOnboardingReservesStatus"),_e=t((e,r,n)=>{let{client:o}=s(),a=n?.jsonSchemaVersion?{json_schema_version:n.jsonSchemaVersion}:{};return u({queryKey:["engagement-agreement-details",e,n?.jsonSchemaVersion],retry:!1,enabled:n?.queryOptions?.enabled??!!e,queryFn:t(async()=>{let i=await y({client:o,headers:{Authorization:""},path:{country_code:e,form:"engagement_agreement_details"},query:a});if(i.error||!i.data)throw new Error("Failed to fetch engagement agreement details");return i},"queryFn"),select:t(({data:i})=>{let m=i?.data||{};return p(m,r,{jsfModify:n?.jsfModify?.engagement_agreement_details})},"select")})},"useEngagementAgreementDetailsSchema"),Oe=t((e,r)=>{let{client:n}=s();return u({queryKey:["pre-onboarding-requirements",e],queryFn:t(async()=>{let o=await k({client:n,path:{employment_id:e}});if(o.error||!o.data)throw new Error("Failed to fetch pre-onboarding requirements");return o},"queryFn"),enabled:r?.queryOptions?.enabled??!0,select:t(o=>o.data?.data,"select")})},"useGetPreOnboardingRequirements"),Ce=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,body:n})=>V({client:e,path:{employment_id:r,requirement_slug:n.requirement_slug}}),"mutationFn")})},"useCreatePreOnboardingDocument"),we=t((e,r,n)=>{let{client:o}=s();return u({queryKey:["pre-onboarding-document",e,r],queryFn:t(async()=>{let a=await R({client:o,path:{employment_id:e,id:r}});if(a.error||!a.data)throw new Error("Failed to fetch pre-onboarding document");return a},"queryFn"),enabled:(n?.queryOptions?.enabled??!0)&&!!r,select:t(a=>a.data?.data,"select")})},"useGetPreOnboardingDocument"),Se=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,documentId:n,signature:o})=>K({client:e,path:{employment_id:r,id:n},body:{signature:o}}),"mutationFn")})},"useSignPreOnboardingDocument"),Pe=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,requirementSlug:n})=>S({client:e,path:{employment_id:r,requirement_slug:n}}),"mutationFn")})},"useAcknowledgePreOnboardingRequirement"),ve=t(()=>{let{client:e}=s();return l({mutationFn:t(({employmentId:r,requirementSlug:n})=>w({client:e,path:{employment_id:r,requirement_slug:n}}),"mutationFn")})},"useRemoveAcknowledgePreOnboardingRequirement"),Ve=t((e,r)=>{let{client:n}=s();return u({queryKey:["employment-agreement-preview",e],retry:!1,enabled:(r?.queryOptions?.enabled??!0)&&!!e,queryFn:t(async()=>{let o=await Q({client:n,path:{employment_id:e}});if(o.error||!o.data)throw new Error("Failed to fetch employment agreement preview");return o},"queryFn"),select:t(o=>o.data?.data.employment_agreement,"select")})},"useEmploymentAgreementPreview");export{se as a,ie as b,me as c,le as d,ue as e,ce as f,de as g,pe as h,ye as i,ge as j,fe as k,he as l,be as m,Ee as n,Fe as o,qe as p,_e as q,Oe as r,Ce as s,we as t,Se as u,Pe as v,ve as w,Ve as x};
2
- //# sourceMappingURL=chunk-QN6OMOUW.js.map
@@ -1,2 +0,0 @@
1
- import{a as y}from"./chunk-C3YSF5RT.js";import{a as l,c as m}from"./chunk-3OLZMSGR.js";import{c}from"./chunk-AUPAAQUT.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as p}from"react";import{Fragment as N,jsx as v,jsxs as C}from"react/jsx-runtime";var R=t(({currencies:{from:d,to:F},shouldSwapOrder:s,salary_conversion_properties:a,conversionType:_="no_spread",defaultValue:r,splitDescription:f,...e})=>{let{setValue:n,getValues:i}=c(),g={label:a?.label||"Salary conversion",description:a?.description||C(N,{children:["The conversion is based on the Remote FX rate."," ",v(m,{className:"text-sm",zendeskId:l.remoteFxRate,children:"Learn more \u2197"})]})},u=s?"salary_conversion":e.name,b=s?e.name:"salary_conversion";return p(()=>{if(s){let o=i(e.name);o?(n("salary_conversion",o),n("salary_converted","salary_conversion")):r&&(n("salary_conversion",r),n("salary_converted","salary_conversion"))}else{let o=i("salary_conversion");o?(n(e.name,o),n("salary_converted",e.name)):r&&(n(e.name,r),n("salary_converted",e.name))}},[s,r,n,i,e.name]),v(y,{...e,sourceCurrency:d,targetCurrency:F,mainFieldName:u,conversionFieldName:b,conversionProperties:g,classNamePrefix:"RemoteFlows-Salary",conversionType:_,splitDescription:f})},"SalaryField");export{R as a};
2
- //# sourceMappingURL=chunk-SL5WZ76A.js.map
@@ -1,2 +0,0 @@
1
- import{a as _}from"./chunk-XFVXRCMH.js";import{F as p,J as y,N as f,Z as h,k as c,qa as g}from"./chunk-XI55YG73.js";import{e as r}from"./chunk-H2O4CVKF.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as a,useQuery as F}from"@tanstack/react-query";var A=t((e,n,o,s,i)=>{let{client:x}=r(),d=s?.employmentId,u=s?.jurisdiction;return F({queryKey:["gp-employee-form-schema",e,n,d,u],enabled:!!e&&(s?.enabled??!0),retry:!1,queryFn:t(async()=>{let l={...d?{employment_id:d}:{},...u?{jurisdiction:u}:{}},m=await y({client:x,headers:{Authorization:""},path:{country_code:e,form:n},...Object.keys(l).length>0?{query:l}:{}});if(m.error||!m.data)throw new Error(`Failed to fetch ${n} schema`);return m},"queryFn"),select:t(({data:l})=>_(l?.data||{},o,i?{jsfModify:i}:void 0),"select")})},"useGPEmployeeFormSchema"),E=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>{let{name:s,...i}=o;return h({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{personal_details:i}})},"mutationFn")})},"useGPUpdatePersonalDetails"),P=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>p({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{address_details:o}}),"mutationFn")})},"useGPUpdateHomeAddress"),C=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>c({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{bank_account_details:o}}),"mutationFn")})},"useGPUpdateBankAccount"),R=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>f({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{federal_taxes:o}}),"mutationFn")})},"useGPUpdateFederalTaxes"),G=t((e,n)=>{let{client:o}=r();return a({mutationFn:t(s=>{if(!e)throw new Error("A `jurisdiction` (US state code) is required to submit state taxes.");return g({client:o,headers:{Authorization:"","x-rf-employment-id":n},path:{jurisdiction:e},body:{state_taxes:s}})},"mutationFn")})},"useGPUpdateStateTaxes");export{A as a,E as b,P as c,C as d,R as e,G as f};
2
- //# sourceMappingURL=chunk-UOA3M7EJ.js.map
@@ -1,2 +0,0 @@
1
- import{a as h}from"./chunk-3UDRMQNE.js";import{a as E}from"./chunk-36JXX3VA.js";import{a as g}from"./chunk-VDRNNOVA.js";import{b as p}from"./chunk-HBONR7VY.js";import{a as y}from"./chunk-NW3D7CPK.js";import{d as w}from"./chunk-XZMPAJRL.js";import{a as b,h as S,i as C}from"./chunk-PB6UQ4A4.js";import{a as f,c as v}from"./chunk-3OLZMSGR.js";import{a as t}from"./chunk-P37U34EQ.js";import{addYears as I,format as u}from"date-fns";import{Fragment as D,jsx as _,jsxs as F}from"react/jsx-runtime";var x=t(n=>n===b,"isStandardPricingPlan"),M=t((n,i)=>{let e=i&&i<u(new Date,"yyyy-MM-dd");if(!n&&e)return p({severity:"warning",description:"Backdating the service start date is not supported in the selected Contractor Management plan."})},"showBackDateWarning");function R(n,i,e){e({...i,services_and_deliverables_ai_warning:"",services_and_deliverables_error_skippable:!1})}t(R,"onServicesAndDeliverablesChange");var $=t((n,i,e,r,a)=>{let d=x(e),c=r?.service_duration?.provisional_start_date,l=M(d,c),o=p({severity:"warning",title:"Possible misclassification risk",description:a?C:S});return{...n,create:{...n?.create,services_and_deliverables_ai_warning:{type:"string","x-jsf-presentation":{inputType:"hidden"}},services_and_deliverables_error_skippable:{type:"boolean","x-jsf-presentation":{inputType:"hidden"}}},fields:{...n?.fields,"service_duration.provisional_start_date":{description:i,"x-jsf-presentation":{minDate:d?void 0:u(new Date,"yyyy-MM-dd"),...l}},"service_duration.expiration_date":{"x-jsf-presentation":{calculateDynamicProperties:t(s=>{let m=a&&s.service_duration?.provisional_start_date?I(y(s.service_duration.provisional_start_date),1):void 0;return{maxDate:m?u(m,"yyyy-MM-dd"):void 0}},"calculateDynamicProperties")}},services_and_deliverables:{onChange:R,"x-jsf-presentation":{calculateDynamicProperties:t(s=>({statement:s.services_and_deliverables_ai_warning?o.statement:void 0}),"calculateDynamicProperties")}}}}},"buildContractDetailsJsfModify"),z=t((n,i,e)=>{let r=n==="SAU",a=n==="GBR",d=w(n);if(!r&&!a&&!d)return e?.jsfModify?.basic_information;if(a)return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,ir35:{title:"IR35 Status",description:t(()=>F(D,{children:["What's your contractor's employment status?"," ",_(v,{zendeskId:f.ir35Status,children:"Learn more about IR35"})]}),"description"),oneOf:[{const:"inside",title:"Inside IR35 (deemed employee)"},{const:"outside",title:"Outside IR35"},{const:"exempt",title:"Exempt from IR35"}],"x-jsf-presentation":{inputType:"select"}},ir35_sds_file:{title:"Upload SDS",description:"Status determination statement",type:"string","x-jsf-presentation":{inputType:"file",accept:g.document,multiple:!1,maxSize:20971520,calculateDynamicProperties:t(o=>{let s=o.ir35;return{isVisible:s==="inside"||s==="outside"}},"calculateDynamicProperties")}}},allOf:[{if:{properties:{ir35:{enum:["inside","outside"]}}},then:{required:["ir35_sds_file"]},else:{properties:{ir35_sds_file:!1}}}],required:["ir35"],orderRoot:t(o=>[...o,"ir35","ir35_sds_file"],"orderRoot")};let c=r?"Is your contractor a Saudi Arabia national, or a non-Saudi national contracting via a local business entity or under a Special Privilege Iqama visa?":`Is the contractor a ${i??"selected country"} national, or a non-${i??"selected country"} national contracting through their local business entity?`,l=r?"Please be aware that contracting with non-Saudi Arabia nationals that are not operating as a company or under a Special Privilege Iqama visa can lead to fines for operating without proper work authorization. If you are concerned, please speak with the Contractor and/or local Saudi Arabia counsel to ensure compliance.":`Be aware that the Contractor must be a ${i??"selected country"} national, or a non-${i??"selected country"} national operating through their company to comply with the legal requirements for performing services and deliverables as a contractor in ${i??"selected country"}. If you are concerned, speak with the Contractor and/or local counsel to ensure compliance.`;return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,nationality_status:{title:c,description:"",type:"string",oneOf:[{const:"national",description:"",title:"Yes"},{const:"non_national",description:l,title:"No"}],"x-jsf-presentation":{inputType:"radio"}}},required:["nationality_status"],orderRoot:t(o=>[...o,"nationality_status"],"orderRoot")}},"buildBasicInformationJsfModify"),G=t((n,i)=>{let e=n?.jsfModify?.contract_preview?.fields;return{fields:{contract_preview_header:{...e?.contract_preview_header,"x-jsf-presentation":{Component:t(r=>{let a=e?.contract_preview_header?.["x-jsf-presentation"]?.Component||h;return _(a,{...r})},"Component")}},contract_preview_statement:{...e?.contract_preview_statement,"x-jsf-presentation":{Component:t(r=>{let a=e?.contract_preview_statement?.["x-jsf-presentation"]?.Component||E;return _(a,{reviewCompleted:!!i?.review_completed,...r})},"Component")}},signature:{...e?.signature,"x-jsf-presentation":{calculateDynamicProperties:t(r=>({isVisible:!!r.review_completed}),"calculateDynamicProperties"),...e?.signature?.["x-jsf-presentation"]}}}}},"buildContractPreviewJsfModify");export{$ as a,z as b,G as c};
2
- //# sourceMappingURL=chunk-WLZRAEPQ.js.map
@@ -1,2 +0,0 @@
1
- import{a as r}from"./chunk-P37U34EQ.js";import{useState as f,useEffect as v,useRef as x}from"react";var m=r(t=>Object.values(t).find(n=>n.visible!==!1)||t[Object.keys(t)[0]],"getInitialStep"),k=r((t,i)=>{let c=Object.keys(t);if(c.length===0)throw new Error("No steps provided to useStepState");let n=x(t);n.current=t;let[p,d]=f({}),S=m(t),[o,a]=f({currentStep:S,totalSteps:c.length,values:null});v(()=>{i?.(S)},[]);function T(){let{index:s}=o.currentStep,l=Object.values(n.current).find(e=>e.index>s&&e.visible!==!1);l&&(a(e=>({...e,currentStep:l,values:{...e.values,[e.currentStep.name]:{...e.values?.[e.currentStep.name],...p}}})),i?.(l),d({}))}r(T,"nextStep");function F(){let{index:s}=o.currentStep,l=Object.values(n.current).reverse().find(e=>e.index<s&&e.visible!==!1);l&&(a(e=>({...e,currentStep:l,values:{...e.values,[e.currentStep.name]:{...e.values?.[e.currentStep.name],...p}}})),i?.(l),d({}))}r(F,"previousStep");function b(s){a(u=>({...u,currentStep:n.current[s]})),i?.(n.current[s])}r(b,"goToStep");function V(s){a(u=>({...u,values:s}))}return r(V,"setStepValues"),{nextStep:T,previousStep:F,stepState:o,goToStep:b,fieldValues:p,setFieldValues:d,setStepValues:V}},"useStepState");export{k as a};
2
- //# sourceMappingURL=chunk-XPVYX7LE.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/useStepState.ts"],"sourcesContent":["import { useState, useEffect, useRef } from 'react';\nimport { FieldValues } from 'react-hook-form';\n\nexport type Step<T extends string> = {\n index: number;\n name: T;\n visible?: boolean;\n};\n\ntype StepState<T extends string, Fields = FieldValues> = {\n currentStep: Step<T>;\n totalSteps: number;\n values:\n | {\n [key in T]: Fields;\n }\n | null;\n};\n\nconst getInitialStep = <T extends string>(steps: Record<T, Step<T>>) => {\n const stepValues = Object.values(steps) as Step<T>[];\n const firstVisibleStep = stepValues.find((step) => step.visible !== false);\n return firstVisibleStep || steps[Object.keys(steps)[0] as T]; // Fallback to first if none found\n};\n\nexport const useStepState = <T extends string, Fields = FieldValues>(\n steps: Record<T, Step<T>>,\n onStepChange?: (step: Step<T>) => void,\n) => {\n const stepKeys = Object.keys(steps) as Array<keyof typeof steps>;\n\n if (stepKeys.length === 0) {\n throw new Error('No steps provided to useStepState');\n }\n\n // Keep the latest steps in a ref so nextStep/previousStep/goToStep resolve\n // visibility against current data even when invoked from a callback that\n // closed over an earlier render — e.g. right after an async refetch flips a\n // step's visibility but before the component has re-rendered.\n const stepsRef = useRef(steps);\n stepsRef.current = steps;\n\n const [fieldValues, setFieldValues] = useState<Fields>({} as Fields);\n const initialStep = getInitialStep(steps);\n const [stepState, setStepState] = useState<StepState<T, Fields>>({\n currentStep: initialStep,\n totalSteps: stepKeys.length,\n values: null,\n });\n\n // Call onStepChange once when the hook initializes\n // Note: intentionally no deps to only run on mount and avoid re-renders\n // when onStepChange/steps references change\n useEffect(() => {\n onStepChange?.(initialStep);\n // oxlint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n function nextStep() {\n const { index } = stepState.currentStep;\n const stepValues = Object.values<Step<T>>(stepsRef.current);\n const nextStep = stepValues.find(\n (step) => step.index > index && step.visible !== false,\n );\n\n if (nextStep) {\n setStepState((previousState) => ({\n ...previousState,\n currentStep: nextStep,\n values: {\n ...previousState.values,\n [previousState.currentStep.name]: {\n ...previousState.values?.[previousState.currentStep.name as T],\n ...fieldValues,\n },\n } as { [key in T]: Fields },\n }));\n onStepChange?.(nextStep);\n setFieldValues({} as Fields);\n }\n }\n\n function previousStep() {\n const { index } = stepState.currentStep;\n const stepValues = Object.values<Step<T>>(stepsRef.current);\n const previousStep = stepValues\n .reverse()\n .find((step) => step.index < index && step.visible !== false);\n\n if (previousStep) {\n setStepState((previousState) => ({\n ...previousState,\n currentStep: previousStep,\n values: {\n ...previousState.values,\n [previousState.currentStep.name]: {\n ...previousState.values?.[previousState.currentStep.name as T],\n ...fieldValues,\n },\n } as { [key in T]: Fields },\n }));\n onStepChange?.(previousStep);\n setFieldValues({} as Fields);\n }\n }\n\n function goToStep(step: T) {\n setStepState((previousState) => ({\n ...previousState,\n currentStep: stepsRef.current[step],\n }));\n onStepChange?.(stepsRef.current[step]);\n }\n\n function setStepValues(values: Record<T, Fields>) {\n setStepState((previousState) => ({\n ...previousState,\n values: values,\n }));\n }\n\n return {\n /**\n * Moves to the next step in the step state.\n * It updates the current step and resets the field values for the next step.\n * The field values for the current step are stored in the step state.\n * @returns {void}\n */\n nextStep,\n /**\n * Moves to the previous step in the step state.\n * It updates the current step and resets the field values for the previous step.\n * The field values for the current step are stored in the step state.\n * @returns {void}\n */\n previousStep,\n /**\n * The current step state containing the current step, total number of steps and\n * the form values for each step.\n * @returns {StepState<T>} The current step state.\n */\n stepState,\n /**\n * Goes to a specific step in the step state.\n * @param step The step to go to.\n * @returns {void}\n */\n goToStep,\n /**\n * The field values for the current step.\n * @returns {FieldValues} The field values for the current step.\n */\n fieldValues,\n /**\n * Sets the field values for the current step.\n * @param values The field values to set.\n * @returns {void}\n */\n setFieldValues,\n /**\n * Sets the step values for the step state.\n * This is used to update all values in the step state.\n * @param values The values to set for the all steps.\n * @returns {void}\n */\n setStepValues,\n };\n};\n"],"mappings":"wCAAA,OAAS,YAAAA,EAAU,aAAAC,EAAW,UAAAC,MAAc,QAmB5C,IAAMC,EAAiBC,EAAmBC,GACrB,OAAO,OAAOA,CAAK,EACF,KAAMC,GAASA,EAAK,UAAY,EAAK,GAC9CD,EAAM,OAAO,KAAKA,CAAK,EAAE,CAAC,CAAM,EAHtC,kBAMVE,EAAeH,EAAA,CAC1BC,EACAG,IACG,CACH,IAAMC,EAAW,OAAO,KAAKJ,CAAK,EAElC,GAAII,EAAS,SAAW,EACtB,MAAM,IAAI,MAAM,mCAAmC,EAOrD,IAAMC,EAAWC,EAAON,CAAK,EAC7BK,EAAS,QAAUL,EAEnB,GAAM,CAACO,EAAaC,CAAc,EAAIC,EAAiB,CAAC,CAAW,EAC7DC,EAAcZ,EAAeE,CAAK,EAClC,CAACW,EAAWC,CAAY,EAAIH,EAA+B,CAC/D,YAAaC,EACb,WAAYN,EAAS,OACrB,OAAQ,IACV,CAAC,EAKDS,EAAU,IAAM,CACdV,IAAeO,CAAW,CAE5B,EAAG,CAAC,CAAC,EAEL,SAASI,GAAW,CAClB,GAAM,CAAE,MAAAC,CAAM,EAAIJ,EAAU,YAEtBG,EADa,OAAO,OAAgBT,EAAS,OAAO,EAC9B,KACzBJ,GAASA,EAAK,MAAQc,GAASd,EAAK,UAAY,EACnD,EAEIa,IACFF,EAAcI,IAAmB,CAC/B,GAAGA,EACH,YAAaF,EACb,OAAQ,CACN,GAAGE,EAAc,OACjB,CAACA,EAAc,YAAY,IAAI,EAAG,CAChC,GAAGA,EAAc,SAASA,EAAc,YAAY,IAAS,EAC7D,GAAGT,CACL,CACF,CACF,EAAE,EACFJ,IAAeW,CAAQ,EACvBN,EAAe,CAAC,CAAW,EAE/B,CAtBST,EAAAe,EAAA,YAwBT,SAASG,GAAe,CACtB,GAAM,CAAE,MAAAF,CAAM,EAAIJ,EAAU,YAEtBM,EADa,OAAO,OAAgBZ,EAAS,OAAO,EAEvD,QAAQ,EACR,KAAMJ,GAASA,EAAK,MAAQc,GAASd,EAAK,UAAY,EAAK,EAE1DgB,IACFL,EAAcI,IAAmB,CAC/B,GAAGA,EACH,YAAaC,EACb,OAAQ,CACN,GAAGD,EAAc,OACjB,CAACA,EAAc,YAAY,IAAI,EAAG,CAChC,GAAGA,EAAc,SAASA,EAAc,YAAY,IAAS,EAC7D,GAAGT,CACL,CACF,CACF,EAAE,EACFJ,IAAec,CAAY,EAC3BT,EAAe,CAAC,CAAW,EAE/B,CAtBST,EAAAkB,EAAA,gBAwBT,SAASC,EAASjB,EAAS,CACzBW,EAAcI,IAAmB,CAC/B,GAAGA,EACH,YAAaX,EAAS,QAAQJ,CAAI,CACpC,EAAE,EACFE,IAAeE,EAAS,QAAQJ,CAAI,CAAC,CACvC,CANSF,EAAAmB,EAAA,YAQT,SAASC,EAAcC,EAA2B,CAChDR,EAAcI,IAAmB,CAC/B,GAAGA,EACH,OAAQI,CACV,EAAE,CACJ,CALS,OAAArB,EAAAoB,EAAA,iBAOF,CAOL,SAAAL,EAOA,aAAAG,EAMA,UAAAN,EAMA,SAAAO,EAKA,YAAAX,EAMA,eAAAC,EAOA,cAAAW,CACF,CACF,EA9I4B","names":["useState","useEffect","useRef","getInitialStep","__name","steps","step","useStepState","onStepChange","stepKeys","stepsRef","useRef","fieldValues","setFieldValues","useState","initialStep","stepState","setStepState","useEffect","nextStep","index","previousState","previousStep","goToStep","setStepValues","values"]}
@@ -1,2 +0,0 @@
1
- import{a,b as s,e as l,h as c,i as u}from"./chunk-PB6UQ4A4.js";import{a as n}from"./chunk-P37U34EQ.js";function E(e={}){let o=[{name:"select_country",label:"Select Country",visible:!!e?.includeSelectCountry},{name:"basic_information",label:"Basic Information",visible:!0},{name:"pricing_plan",label:"Pricing Plan",visible:!0},{name:"eligibility_questionnaire",label:"Eligibility Questionnaire",visible:!!e?.includeEligibilityQuestionnaire},{name:"contract_origin",label:"Contract Options",visible:!!(e?.includeContractOrigin??!0)},{name:"contract_details",label:"Contract Details",visible:!!(e?.includeContractDetails??!0)},{name:"contract_preview",label:"Contract Preview",visible:!!e?.includeContractPreview},{name:"review",label:"Review",visible:!0}].map((i,r)=>({name:i.name,index:r,label:i.label,visible:i.visible}));return{steps:o.reduce((i,r)=>(i[r.name]={index:r.index,name:r.name,visible:r.visible},i),{}),stepsArray:o}}n(E,"buildSteps");var v=n((e,t)=>{if(e&&t&&e!==t)return`When the contractor will start providing service to your company. ${`This date does not match the date you provided in the Basic Information step - ${e} - and will override it only when both parties have signed the contract.`}`},"calculateProvisionalStartDateDescription"),g=n(e=>e===a||e===s,"isCMOrCMPlus"),m=["SAU","KWT","OMN","QAT","BHR"],y=n(e=>m.includes(e),"isNationalityCountryCode"),S=n((e,t)=>!t||t.length===0?!0:!t.some(o=>l[o]===e),"shouldIncludeProduct"),C=["initiated","invited","created_awaiting_reserve","created_reserve_paid","active"],f=["initiated","created_awaiting_reserve","invited","active"];function R(e){return e?u:c}n(R,"transformAiErrorResponse");var b=1,A=n(e=>e?.jsonSchemaVersion?.employment_basic_information||b,"getBasicInformationSchemaVersion");export{E as a,v as b,g as c,y as d,S as e,C as f,f as g,R as h,A as i};
2
- //# sourceMappingURL=chunk-XZMPAJRL.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/ContractorOnboarding/utils.ts"],"sourcesContent":["import { Step } from '@/src/flows/useStepState';\nimport {\n contractorStandardProductIdentifier,\n contractorPlusProductIdentifier,\n ProductType,\n PRODUCT_IDENTIFIER_MAP,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE,\n} from '@/src/flows/ContractorOnboarding/constants';\nimport { Employment } from '@/src/flows/Onboarding/types';\n\nexport type StepKeys =\n | 'select_country'\n | 'basic_information'\n | 'contract_origin'\n | 'contract_details'\n | 'eligibility_questionnaire'\n | 'contract_preview'\n | 'pricing_plan'\n | 'review';\n\ntype StepConfig = {\n includeSelectCountry?: boolean;\n includeContractOrigin?: boolean;\n includeEligibilityQuestionnaire?: boolean;\n includeContractDetails?: boolean;\n includeContractPreview?: boolean;\n};\n\nexport function buildSteps(config: StepConfig = {}) {\n const stepDefinitions: Array<{\n name: StepKeys;\n label: string;\n visible: boolean;\n }> = [\n {\n name: 'select_country',\n label: 'Select Country',\n visible: Boolean(config?.includeSelectCountry),\n },\n {\n name: 'basic_information',\n label: 'Basic Information',\n visible: true,\n },\n {\n name: 'pricing_plan',\n label: 'Pricing Plan',\n visible: true,\n },\n {\n name: 'eligibility_questionnaire',\n label: 'Eligibility Questionnaire',\n visible: Boolean(config?.includeEligibilityQuestionnaire),\n },\n {\n name: 'contract_origin',\n label: 'Contract Options',\n visible: Boolean(config?.includeContractOrigin ?? true),\n },\n {\n name: 'contract_details',\n label: 'Contract Details',\n visible: Boolean(config?.includeContractDetails ?? true),\n },\n {\n name: 'contract_preview',\n label: 'Contract Preview',\n visible: Boolean(config?.includeContractPreview),\n },\n {\n name: 'review',\n label: 'Review',\n visible: true,\n },\n ];\n\n const stepsArray = stepDefinitions.map((step, index) => ({\n name: step.name,\n index,\n label: step.label,\n visible: step.visible,\n }));\n\n const steps = stepsArray.reduce(\n (acc, step) => {\n acc[step.name] = {\n index: step.index,\n name: step.name,\n visible: step.visible,\n };\n return acc;\n },\n {} as Record<string, Step<StepKeys>>,\n );\n\n return { steps, stepsArray };\n}\n\n/**\n * Calculates the description for the provisional start date field\n * based on whether the dates match between basic information and contract details steps\n */\nexport const calculateProvisionalStartDateDescription = (\n employmentProvisionalStartDate: string | undefined,\n fieldProvisionalStartDate: string | undefined,\n): string | undefined => {\n const datesNotMatching =\n employmentProvisionalStartDate &&\n fieldProvisionalStartDate &&\n employmentProvisionalStartDate !== fieldProvisionalStartDate;\n\n if (datesNotMatching) {\n const datesDontMatchWarning = `This date does not match the date you provided in the Basic Information step - ${\n employmentProvisionalStartDate\n } - and will override it only when both parties have signed the contract.`;\n return `When the contractor will start providing service to your company. ${datesDontMatchWarning}`;\n }\n return undefined;\n};\n\n/**\n * Checks if the selected pricing plan is CM (standard) or CM+ (plus)\n */\nexport const isCMOrCMPlus = (subscription: string | undefined): boolean => {\n return (\n subscription === contractorStandardProductIdentifier ||\n subscription === contractorPlusProductIdentifier\n );\n};\n\nconst NATIONALITY_COUNTRY_CODES = ['SAU', 'KWT', 'OMN', 'QAT', 'BHR'];\n\n/**\n * Checks if the country code is a country code that requires nationality status field\n */\nexport const isNationalityCountryCode = (countryCode: string) => {\n return NATIONALITY_COUNTRY_CODES.includes(countryCode);\n};\n\n/**\n * Checks if a product should be included based on the excludeProducts list\n * @param productIdentifier - The product identifier to check\n * @param excludeProducts - Array of products to exclude\n * @returns true if the product should be included, false otherwise\n */\nexport const shouldIncludeProduct = (\n productIdentifier: string,\n excludeProducts?: ProductType[],\n): boolean => {\n if (!excludeProducts || excludeProducts.length === 0) {\n return true;\n }\n\n return !excludeProducts.some(\n (excluded) => PRODUCT_IDENTIFIER_MAP[excluded] === productIdentifier,\n );\n};\n\n/**\n * Array of employment statuses that are allowed to proceed to the review step.\n * These statuses indicate that the employment is in a final state and the employment cannot be modified further.\n * @type {Employment['status'][]}\n * @constant\n */\nexport const reviewStepAllowedEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'invited',\n 'created_awaiting_reserve',\n 'created_reserve_paid',\n 'active',\n];\n\nexport const disabledInviteButtonEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'created_awaiting_reserve',\n 'invited',\n 'active',\n];\n\n/**\n * Transforms AI error messages to use default localized messages\n * @param isContractorOfRecord - Whether the contractor is a Contractor of Record\n * @param errors - Array of error messages from the API\n * @returns Array containing the appropriate default error message\n */\nexport function transformAiErrorResponse(\n isContractorOfRecord: boolean,\n): string {\n const remoteAiErrorMessage = isContractorOfRecord\n ? REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE\n : REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE;\n return remoteAiErrorMessage;\n}\n\nconst DEFAULT_VERSION = 1;\n\n/**\n * Gets the basic information schema version from options\n * @param options - The flow options containing version configurations\n * @returns The jsonSchemaVersion for basic information or default (1)\n */\nexport const getBasicInformationSchemaVersion = (options?: {\n jsonSchemaVersion?: { employment_basic_information?: number | 'latest' };\n}): number | 'latest' => {\n return (\n options?.jsonSchemaVersion?.employment_basic_information || DEFAULT_VERSION\n );\n};\n"],"mappings":"uGA6BO,SAASA,EAAWC,EAAqB,CAAC,EAAG,CAgDlD,IAAMC,EA3CD,CACH,CACE,KAAM,iBACN,MAAO,iBACP,QAAS,EAAQD,GAAQ,oBAC3B,EACA,CACE,KAAM,oBACN,MAAO,oBACP,QAAS,EACX,EACA,CACE,KAAM,eACN,MAAO,eACP,QAAS,EACX,EACA,CACE,KAAM,4BACN,MAAO,4BACP,QAAS,EAAQA,GAAQ,+BAC3B,EACA,CACE,KAAM,kBACN,MAAO,mBACP,QAAS,GAAQA,GAAQ,uBAAyB,GACpD,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,GAAQA,GAAQ,wBAA0B,GACrD,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EAAQA,GAAQ,sBAC3B,EACA,CACE,KAAM,SACN,MAAO,SACP,QAAS,EACX,CACF,EAEmC,IAAI,CAACE,EAAMC,KAAW,CACvD,KAAMD,EAAK,KACX,MAAAC,EACA,MAAOD,EAAK,MACZ,QAASA,EAAK,OAChB,EAAE,EAcF,MAAO,CAAE,MAZKD,EAAW,OACvB,CAACG,EAAKF,KACJE,EAAIF,EAAK,IAAI,EAAI,CACf,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,QAASA,EAAK,OAChB,EACOE,GAET,CAAC,CACH,EAEgB,WAAAH,CAAW,CAC7B,CApEgBI,EAAAN,EAAA,cA0ET,IAAMO,EAA2CD,EAAA,CACtDE,EACAC,IACuB,CAMvB,GAJED,GACAC,GACAD,IAAmCC,EAMnC,MAAO,qEAHuB,kFAC5BD,CACF,0EACiG,EAGrG,EAhBwD,4CAqB3CE,EAAeJ,EAACK,GAEzBA,IAAiBC,GACjBD,IAAiBE,EAHO,gBAOtBC,EAA4B,CAAC,MAAO,MAAO,MAAO,MAAO,KAAK,EAKvDC,EAA2BT,EAACU,GAChCF,EAA0B,SAASE,CAAW,EADf,4BAU3BC,EAAuBX,EAAA,CAClCY,EACAC,IAEI,CAACA,GAAmBA,EAAgB,SAAW,EAC1C,GAGF,CAACA,EAAgB,KACrBC,GAAaC,EAAuBD,CAAQ,IAAMF,CACrD,EAVkC,wBAmBvBI,EAA4D,CACvE,YACA,UACA,2BACA,uBACA,QACF,EAEaC,EAA+D,CAC1E,YACA,2BACA,UACA,QACF,EAQO,SAASC,EACdC,EACQ,CAIR,OAH6BA,EACzBC,EACAC,CAEN,CAPgBrB,EAAAkB,EAAA,4BAShB,IAAMI,EAAkB,EAOXC,EAAmCvB,EAACwB,GAI7CA,GAAS,mBAAmB,8BAAgCF,EAJhB","names":["buildSteps","config","stepsArray","step","index","acc","__name","calculateProvisionalStartDateDescription","employmentProvisionalStartDate","fieldProvisionalStartDate","isCMOrCMPlus","subscription","contractorStandardProductIdentifier","contractorPlusProductIdentifier","NATIONALITY_COUNTRY_CODES","isNationalityCountryCode","countryCode","shouldIncludeProduct","productIdentifier","excludeProducts","excluded","PRODUCT_IDENTIFIER_MAP","reviewStepAllowedEmploymentStatus","disabledInviteButtonEmploymentStatus","transformAiErrorResponse","isContractorOfRecord","REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE","REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE","DEFAULT_VERSION","getBasicInformationSchemaVersion","options"]}