@remoteoss/remote-flows 1.42.2 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. package/dist/CheckboxFieldDefault-VKVKDNK4.js +2 -0
  2. package/dist/CountryFieldDefault-N7P5V5NR.js +2 -0
  3. package/dist/DatePickerFieldDefault-V3F2DLPV.js +2 -0
  4. package/dist/RadioGroupFieldDefault-UMDJEJZU.js +2 -0
  5. package/dist/TextAreaFieldDefault-5CV4XTOT.js +2 -0
  6. package/dist/chunk-34JOEA4E.js +2 -0
  7. package/dist/{chunk-3DD3UNKM.js.map → chunk-34JOEA4E.js.map} +1 -1
  8. package/dist/chunk-3AMTQ2DH.js +2 -0
  9. package/dist/chunk-3AMTQ2DH.js.map +1 -0
  10. package/dist/{chunk-TWBTRW4Z.js → chunk-3BAVRWSN.js} +2 -2
  11. package/dist/{chunk-ZVNUZW4X.js → chunk-3CJB74UF.js} +2 -2
  12. package/dist/chunk-3ID3UX2Q.js +2 -0
  13. package/dist/{chunk-GYSU3LLC.js.map → chunk-3ID3UX2Q.js.map} +1 -1
  14. package/dist/{chunk-A5SRPVT2.js → chunk-43FMKELR.js} +2 -2
  15. package/dist/{chunk-GHHMGTM4.js → chunk-43NIG25S.js} +2 -2
  16. package/dist/chunk-4MI7BMM5.js +2 -0
  17. package/dist/chunk-4MI7BMM5.js.map +1 -0
  18. package/dist/chunk-66DSJTDZ.js +2 -0
  19. package/dist/chunk-66DSJTDZ.js.map +1 -0
  20. package/dist/{chunk-YW4FHEYJ.js → chunk-6JOMJADW.js} +2 -2
  21. package/dist/{chunk-Q7SMO5VI.js → chunk-6OHLLH6W.js} +2 -2
  22. package/dist/{chunk-G7N6QIOB.js → chunk-6Z4U4GYV.js} +2 -2
  23. package/dist/{chunk-C3J4KQEW.js → chunk-746NEWTS.js} +2 -2
  24. package/dist/{chunk-EI44AIUW.js → chunk-7NFCUTWO.js} +2 -2
  25. package/dist/{chunk-FMP4J4GT.js → chunk-7O4Y3DAM.js} +2 -2
  26. package/dist/chunk-7ULM6AZK.js +1 -0
  27. package/dist/chunk-7ULM6AZK.js.map +1 -0
  28. package/dist/chunk-A2TY3VWL.js +2 -0
  29. package/dist/chunk-A2TY3VWL.js.map +1 -0
  30. package/dist/{chunk-X4IJ52GQ.js → chunk-A7D2NNLM.js} +2 -2
  31. package/dist/{chunk-H6Z54SNM.js → chunk-ARVKTD3V.js} +2 -2
  32. package/dist/chunk-AS7SJDU5.js +8 -0
  33. package/dist/chunk-AS7SJDU5.js.map +1 -0
  34. package/dist/chunk-AVIZTG4K.js +2 -0
  35. package/dist/chunk-AVIZTG4K.js.map +1 -0
  36. package/dist/chunk-B36HI2TD.js +2 -0
  37. package/dist/chunk-B36HI2TD.js.map +1 -0
  38. package/dist/{chunk-KSJLZDGY.js → chunk-BB5K57D4.js} +2 -2
  39. package/dist/{chunk-6JW4ERRK.js → chunk-BIL7ERK6.js} +2 -2
  40. package/dist/{chunk-IVDF2PMA.js → chunk-BOE6NL6T.js} +2 -2
  41. package/dist/{chunk-7XZP24UE.js → chunk-CPRWWJYQ.js} +2 -2
  42. package/dist/{chunk-ZQWAUPIL.js → chunk-CRDG62ZJ.js} +2 -2
  43. package/dist/chunk-CZY6KI75.js +2 -0
  44. package/dist/chunk-CZY6KI75.js.map +1 -0
  45. package/dist/chunk-D2MZKYRH.js +2 -0
  46. package/dist/chunk-D2MZKYRH.js.map +1 -0
  47. package/dist/{chunk-L3ZVE4JS.js → chunk-D4XBTJOV.js} +2 -2
  48. package/dist/chunk-DIH7KHWI.js +2 -0
  49. package/dist/chunk-DIH7KHWI.js.map +1 -0
  50. package/dist/{chunk-OPDKYPYM.js → chunk-DSGQZDY6.js} +2 -2
  51. package/dist/{chunk-YRNO7X3H.js → chunk-ERDNYHQO.js} +2 -2
  52. package/dist/{chunk-LWTE6DD4.js → chunk-F5WNUYFP.js} +2 -2
  53. package/dist/chunk-F6NFCJYW.js +2 -0
  54. package/dist/chunk-F6NFCJYW.js.map +1 -0
  55. package/dist/{chunk-TNGJKUUV.js → chunk-F7QTO3NU.js} +2 -2
  56. package/dist/{chunk-4QJUNKBR.js → chunk-FCY5FJMC.js} +2 -2
  57. package/dist/chunk-FG2DNTDR.js +2 -0
  58. package/dist/chunk-FG2DNTDR.js.map +1 -0
  59. package/dist/chunk-FHIMDCMT.js +2 -0
  60. package/dist/{chunk-2TAVZJPX.js.map → chunk-FHIMDCMT.js.map} +1 -1
  61. package/dist/chunk-FJC6IGXJ.js +2 -0
  62. package/dist/{chunk-3GB6QH7W.js.map → chunk-FJC6IGXJ.js.map} +1 -1
  63. package/dist/chunk-FSGFBJJF.js +2 -0
  64. package/dist/{chunk-626FTNKA.js.map → chunk-FSGFBJJF.js.map} +1 -1
  65. package/dist/{chunk-QZMSDP2S.js → chunk-GGDVTGHG.js} +2 -2
  66. package/dist/chunk-HBOMEPXQ.js +2 -0
  67. package/dist/chunk-HBOMEPXQ.js.map +1 -0
  68. package/dist/{chunk-TM2GTPUI.js → chunk-HFHQDWJN.js} +2 -2
  69. package/dist/{chunk-HGY2ZKJN.js → chunk-HGFJTAEM.js} +2 -2
  70. package/dist/{chunk-NRGNFMIO.js → chunk-HHFGG3RU.js} +2 -2
  71. package/dist/{chunk-6NKXOUJW.js → chunk-HXEOVMUT.js} +2 -2
  72. package/dist/chunk-I363AG3E.js +2 -0
  73. package/dist/chunk-I363AG3E.js.map +1 -0
  74. package/dist/{chunk-RFVHV6RE.js → chunk-J2L3CYIS.js} +2 -2
  75. package/dist/{chunk-WKAVKFP6.js → chunk-JVLARDTF.js} +2 -2
  76. package/dist/{chunk-PDQ5GZSE.js → chunk-KT4Y4UPD.js} +2 -2
  77. package/dist/chunk-KTPIKOUV.js +2 -0
  78. package/dist/chunk-KTPIKOUV.js.map +1 -0
  79. package/dist/{chunk-IOGX6GAZ.js → chunk-LBQQSYCG.js} +2 -2
  80. package/dist/{chunk-PSCFVUJB.js → chunk-LFHFZU6X.js} +2 -2
  81. package/dist/{chunk-BJZXTS47.js → chunk-LNR6TGLQ.js} +2 -2
  82. package/dist/{chunk-PXU2LCFW.js → chunk-LS4CLDLI.js} +2 -2
  83. package/dist/{chunk-S4QKVG2B.js → chunk-LSC6NTXD.js} +2 -2
  84. package/dist/{chunk-4KKA35AX.js → chunk-MC6VR4AZ.js} +2 -2
  85. package/dist/{chunk-V7YF7ICV.js → chunk-MGDYS2EY.js} +2 -2
  86. package/dist/{chunk-ID4S6FWD.js → chunk-MKO33XZ5.js} +2 -2
  87. package/dist/{chunk-IF42CZJH.js → chunk-NEKE5PRJ.js} +2 -2
  88. package/dist/{chunk-LVTBMTOU.js → chunk-NRWIGTY2.js} +2 -2
  89. package/dist/chunk-NXSRNOBC.js +2 -0
  90. package/dist/chunk-NXSRNOBC.js.map +1 -0
  91. package/dist/{chunk-RLFV5DLC.js → chunk-OETKBT6P.js} +2 -2
  92. package/dist/{chunk-A675PPWA.js → chunk-OK4RV6ZT.js} +2 -2
  93. package/dist/chunk-OPX7E3W2.js +2 -0
  94. package/dist/chunk-OPX7E3W2.js.map +1 -0
  95. package/dist/chunk-PFQB3V2U.js +2 -0
  96. package/dist/chunk-PFQB3V2U.js.map +1 -0
  97. package/dist/{chunk-UZBAOB4W.js → chunk-PGCS6HUO.js} +2 -2
  98. package/dist/{chunk-YYX3OX7N.js → chunk-PRXJRF7V.js} +2 -2
  99. package/dist/{chunk-ZF3JITFM.js → chunk-PSU2AEFU.js} +2 -2
  100. package/dist/chunk-PYXLDOXH.js +2 -0
  101. package/dist/chunk-PYXLDOXH.js.map +1 -0
  102. package/dist/chunk-QO7Y6QRE.js +2 -0
  103. package/dist/chunk-QO7Y6QRE.js.map +1 -0
  104. package/dist/chunk-QQPF2DUF.js +2 -0
  105. package/dist/chunk-QQPF2DUF.js.map +1 -0
  106. package/dist/{chunk-BS2B4OOE.js → chunk-R744BZN2.js} +2 -2
  107. package/dist/{chunk-DAFIBCX4.js → chunk-RFEF2B5D.js} +2 -2
  108. package/dist/{chunk-O4CLVNOP.js → chunk-RJXRGUNB.js} +2 -2
  109. package/dist/{chunk-3QSHWQS3.js → chunk-RKRYZZ3R.js} +2 -2
  110. package/dist/{chunk-SRGB5JQU.js → chunk-RYUBFXSX.js} +2 -2
  111. package/dist/chunk-S4JJIDWH.js +2 -0
  112. package/dist/chunk-S4JJIDWH.js.map +1 -0
  113. package/dist/chunk-SC7YWKOW.js +2 -0
  114. package/dist/chunk-SQCTVURR.js +2 -0
  115. package/dist/{chunk-XT6WMFV5.js.map → chunk-SQCTVURR.js.map} +1 -1
  116. package/dist/{chunk-SRXYQVLN.js → chunk-STKY674N.js} +2 -2
  117. package/dist/{chunk-J3HIQRZO.js → chunk-TQH4OKHR.js} +2 -2
  118. package/dist/{chunk-3QG44XYC.js → chunk-UT3CQ2DH.js} +2 -2
  119. package/dist/{chunk-X25ZOPO6.js → chunk-V557KUHJ.js} +2 -2
  120. package/dist/{chunk-3YP27SZK.js → chunk-VVEBSBQ3.js} +2 -2
  121. package/dist/{chunk-DS6URMR3.js → chunk-VZ3JCO23.js} +2 -2
  122. package/dist/{chunk-QK3FQD6C.js → chunk-W4LHXUIX.js} +2 -2
  123. package/dist/chunk-WSRH5UQP.js +2 -0
  124. package/dist/chunk-WSRH5UQP.js.map +1 -0
  125. package/dist/chunk-XLA5Z35M.js +2 -0
  126. package/dist/chunk-XLA5Z35M.js.map +1 -0
  127. package/dist/chunk-XPVYX7LE.js +2 -0
  128. package/dist/chunk-XPVYX7LE.js.map +1 -0
  129. package/dist/chunk-XYF4TIRU.js +2 -0
  130. package/dist/chunk-XYF4TIRU.js.map +1 -0
  131. package/dist/{chunk-GNDFT5KG.js → chunk-Y2K74EBE.js} +2 -2
  132. package/dist/{chunk-TZGC6PWQ.js → chunk-YJFRQSTA.js} +2 -2
  133. package/dist/chunk-YMBVMMUS.js +2 -0
  134. package/dist/chunk-YMBVMMUS.js.map +1 -0
  135. package/dist/chunk-YWLRVUE3.js +2 -0
  136. package/dist/chunk-YWLRVUE3.js.map +1 -0
  137. package/dist/chunk-Z4Q2UO2Y.js +2 -0
  138. package/dist/chunk-Z4Q2UO2Y.js.map +1 -0
  139. package/dist/{chunk-BSOKKYGH.js → chunk-Z5LVLVTU.js} +2 -2
  140. package/dist/chunk-ZC47WDFG.js +2 -0
  141. package/dist/chunk-ZC47WDFG.js.map +1 -0
  142. package/dist/chunk-ZFF6E44S.js +2 -0
  143. package/dist/chunk-ZFF6E44S.js.map +1 -0
  144. package/dist/chunk-ZT4OC3OB.js +2 -0
  145. package/dist/chunk-ZT4OC3OB.js.map +1 -0
  146. package/dist/default-components.d.ts +2 -2
  147. package/dist/default-components.js +1 -1
  148. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  149. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  150. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  151. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  152. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  153. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  154. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  155. package/dist/flows/ContractAmendment/hooks.js +1 -1
  156. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  157. package/dist/flows/ContractAmendment/index.js +1 -1
  158. package/dist/flows/ContractAmendment/types.d.ts +3 -2
  159. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  160. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
  161. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  162. package/dist/flows/ContractorOnboarding/api.d.ts +3 -2
  163. package/dist/flows/ContractorOnboarding/api.js +1 -1
  164. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  165. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  166. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
  167. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  168. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.d.ts +3 -3
  169. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.js +1 -1
  170. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  171. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  172. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
  173. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  174. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
  175. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  176. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -5
  177. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  178. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  179. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  180. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
  181. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  182. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
  183. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  184. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  185. package/dist/flows/ContractorOnboarding/context.d.ts +5 -5
  186. package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
  187. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  188. package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
  189. package/dist/flows/ContractorOnboarding/index.js +1 -1
  190. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -5
  191. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  192. package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
  193. package/dist/flows/ContractorOnboarding/utils.d.ts +4 -4
  194. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  195. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  196. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  197. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  198. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +3 -2
  199. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  200. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +3 -2
  201. package/dist/flows/CostCalculator/api.d.ts +3 -2
  202. package/dist/flows/CostCalculator/api.js +1 -1
  203. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  204. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  205. package/dist/flows/CostCalculator/context.d.ts +3 -3
  206. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  207. package/dist/flows/CostCalculator/hooks.js +1 -1
  208. package/dist/flows/CostCalculator/index.d.ts +3 -3
  209. package/dist/flows/CostCalculator/index.js +1 -1
  210. package/dist/flows/CostCalculator/types.d.ts +3 -2
  211. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  212. package/dist/flows/CostCalculator/utils.js +1 -1
  213. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  214. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  215. package/dist/flows/CreateCompany/api.d.ts +3 -2
  216. package/dist/flows/CreateCompany/api.js +1 -1
  217. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  218. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  219. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  220. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  221. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  222. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  223. package/dist/flows/CreateCompany/context.d.ts +4 -4
  224. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  225. package/dist/flows/CreateCompany/hooks.js +1 -1
  226. package/dist/flows/CreateCompany/index.d.ts +4 -4
  227. package/dist/flows/CreateCompany/index.js +1 -1
  228. package/dist/flows/CreateCompany/types.d.ts +4 -4
  229. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.d.ts +18 -0
  230. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js +2 -0
  231. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js.map +1 -0
  232. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.d.ts +15 -0
  233. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js +2 -0
  234. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js.map +1 -0
  235. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundResetButton.d.ts +6 -0
  236. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundResetButton.js +2 -0
  237. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundResetButton.js.map +1 -0
  238. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundSubmitButton.d.ts +6 -0
  239. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundSubmitButton.js +2 -0
  240. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundSubmitButton.js.map +1 -0
  241. package/dist/flows/JsonSchemaPlayground/context.d.ts +20 -0
  242. package/dist/flows/JsonSchemaPlayground/context.js +2 -0
  243. package/dist/flows/JsonSchemaPlayground/context.js.map +1 -0
  244. package/dist/flows/JsonSchemaPlayground/hooks.d.ts +11 -0
  245. package/dist/flows/JsonSchemaPlayground/hooks.js +2 -0
  246. package/dist/flows/JsonSchemaPlayground/hooks.js.map +1 -0
  247. package/dist/flows/JsonSchemaPlayground/index.d.ts +14 -0
  248. package/dist/flows/JsonSchemaPlayground/index.js +2 -0
  249. package/dist/flows/JsonSchemaPlayground/index.js.map +1 -0
  250. package/dist/flows/JsonSchemaPlayground/initialValues.d.ts +15 -0
  251. package/dist/flows/JsonSchemaPlayground/initialValues.js +2 -0
  252. package/dist/flows/JsonSchemaPlayground/initialValues.js.map +1 -0
  253. package/dist/flows/JsonSchemaPlayground/schemas.d.ts +1957 -0
  254. package/dist/flows/JsonSchemaPlayground/schemas.js +2 -0
  255. package/dist/flows/JsonSchemaPlayground/schemas.js.map +1 -0
  256. package/dist/flows/JsonSchemaPlayground/types.d.ts +11 -0
  257. package/dist/flows/JsonSchemaPlayground/types.js +1 -0
  258. package/dist/flows/JsonSchemaPlayground/types.js.map +1 -0
  259. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  260. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  261. package/dist/flows/Onboarding/api.d.ts +4 -4
  262. package/dist/flows/Onboarding/api.js +1 -1
  263. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  264. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  265. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  266. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  267. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  268. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  269. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  270. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  271. package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.js +1 -1
  272. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +4 -4
  273. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  274. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  275. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  276. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  277. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  278. package/dist/flows/Onboarding/components/PreOnboardingRequirements.d.ts +6 -6
  279. package/dist/flows/Onboarding/components/PreOnboardingRequirements.js +1 -1
  280. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js +1 -1
  281. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  282. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  283. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  284. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  285. package/dist/flows/Onboarding/context.d.ts +4 -4
  286. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  287. package/dist/flows/Onboarding/hooks.js +1 -1
  288. package/dist/flows/Onboarding/index.d.ts +4 -4
  289. package/dist/flows/Onboarding/index.js +1 -1
  290. package/dist/flows/Onboarding/types.d.ts +4 -4
  291. package/dist/flows/Onboarding/utils.d.ts +4 -4
  292. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +8 -5
  293. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +1 -1
  294. package/dist/flows/PayrollAdminOnboarding/api.d.ts +82 -0
  295. package/dist/flows/PayrollAdminOnboarding/api.js +2 -0
  296. package/dist/flows/PayrollAdminOnboarding/api.js.map +1 -0
  297. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.d.ts +12 -0
  298. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js +2 -0
  299. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js.map +1 -0
  300. package/dist/flows/PayrollAdminOnboarding/components/BackButton.d.ts +6 -0
  301. package/dist/flows/PayrollAdminOnboarding/components/BackButton.js +2 -0
  302. package/dist/flows/PayrollAdminOnboarding/components/BackButton.js.map +1 -0
  303. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.d.ts +12 -0
  304. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js +2 -0
  305. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js.map +1 -0
  306. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.d.ts +16 -0
  307. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.js +2 -0
  308. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.js.map +1 -0
  309. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.d.ts +13 -0
  310. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js +2 -0
  311. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js.map +1 -0
  312. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.d.ts +12 -0
  313. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js +2 -0
  314. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js.map +1 -0
  315. package/dist/flows/PayrollAdminOnboarding/components/SubmitButton.d.ts +6 -0
  316. package/dist/flows/PayrollAdminOnboarding/components/SubmitButton.js +2 -0
  317. package/dist/flows/PayrollAdminOnboarding/components/SubmitButton.js.map +1 -0
  318. package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.d.ts +12 -0
  319. package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.js +2 -0
  320. package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.js.map +1 -0
  321. package/dist/flows/PayrollAdminOnboarding/context.d.ts +7 -4
  322. package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +7 -4
  323. package/dist/flows/PayrollAdminOnboarding/hooks.js +1 -1
  324. package/dist/flows/PayrollAdminOnboarding/index.d.ts +9 -6
  325. package/dist/flows/PayrollAdminOnboarding/index.js +1 -1
  326. package/dist/flows/PayrollAdminOnboarding/json-schemas/selectCountryStep.d.ts +22 -0
  327. package/dist/flows/PayrollAdminOnboarding/json-schemas/selectCountryStep.js +2 -0
  328. package/dist/flows/PayrollAdminOnboarding/json-schemas/selectCountryStep.js.map +1 -0
  329. package/dist/flows/PayrollAdminOnboarding/types.d.ts +8 -5
  330. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +9 -6
  331. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +1 -1
  332. package/dist/flows/PayrollEmployeeOnboarding/api.d.ts +69 -0
  333. package/dist/flows/PayrollEmployeeOnboarding/api.js +2 -0
  334. package/dist/flows/PayrollEmployeeOnboarding/api.js.map +1 -0
  335. package/dist/flows/PayrollEmployeeOnboarding/components/BackButton.d.ts +6 -0
  336. package/dist/flows/PayrollEmployeeOnboarding/components/BackButton.js +2 -0
  337. package/dist/flows/PayrollEmployeeOnboarding/components/BackButton.js.map +1 -0
  338. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.d.ts +17 -0
  339. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js +2 -0
  340. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js.map +1 -0
  341. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.d.ts +18 -0
  342. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js +2 -0
  343. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js.map +1 -0
  344. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.d.ts +12 -0
  345. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js +2 -0
  346. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js.map +1 -0
  347. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.d.ts +13 -0
  348. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js +2 -0
  349. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js.map +1 -0
  350. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.d.ts +12 -0
  351. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js +2 -0
  352. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js.map +1 -0
  353. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.d.ts +18 -0
  354. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js +2 -0
  355. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js.map +1 -0
  356. package/dist/flows/PayrollEmployeeOnboarding/components/SubmitButton.d.ts +6 -0
  357. package/dist/flows/PayrollEmployeeOnboarding/components/SubmitButton.js +2 -0
  358. package/dist/flows/PayrollEmployeeOnboarding/components/SubmitButton.js.map +1 -0
  359. package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.d.ts +12 -0
  360. package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.js +2 -0
  361. package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.js.map +1 -0
  362. package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +7 -4
  363. package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +8 -5
  364. package/dist/flows/PayrollEmployeeOnboarding/hooks.js +1 -1
  365. package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +9 -6
  366. package/dist/flows/PayrollEmployeeOnboarding/index.js +1 -1
  367. package/dist/flows/PayrollEmployeeOnboarding/taxErrors.d.ts +12 -0
  368. package/dist/flows/PayrollEmployeeOnboarding/taxErrors.js +2 -0
  369. package/dist/flows/PayrollEmployeeOnboarding/taxErrors.js.map +1 -0
  370. package/dist/flows/PayrollEmployeeOnboarding/types.d.ts +8 -5
  371. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  372. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  373. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  374. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  375. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  376. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  377. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  378. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  379. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  380. package/dist/flows/Termination/TerminationFlow.js +1 -1
  381. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  382. package/dist/flows/Termination/TerminationForm.js +1 -1
  383. package/dist/flows/Termination/api.d.ts +5 -5
  384. package/dist/flows/Termination/api.js +1 -1
  385. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  386. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  387. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  388. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  389. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  390. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  391. package/dist/flows/Termination/context.d.ts +4 -4
  392. package/dist/flows/Termination/hooks.d.ts +4 -4
  393. package/dist/flows/Termination/hooks.js +1 -1
  394. package/dist/flows/Termination/index.d.ts +6 -6
  395. package/dist/flows/Termination/index.js +1 -1
  396. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  397. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  398. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  399. package/dist/flows/Termination/types.d.ts +4 -4
  400. package/dist/flows/Termination/utils.d.ts +4 -4
  401. package/dist/flows/types.d.ts +18 -3
  402. package/dist/flows/useStepState.js +1 -1
  403. package/dist/flows/utils.d.ts +2 -2
  404. package/dist/flows/utils.js +1 -1
  405. package/dist/index.css +1 -1
  406. package/dist/index.css.map +1 -1
  407. package/dist/index.d.ts +14 -14
  408. package/dist/index.js +2 -2
  409. package/dist/index.js.map +1 -1
  410. package/dist/internals.d.ts +11 -3
  411. package/dist/internals.js +1 -1
  412. package/dist/{mutations-Bb4S8J29.d.ts → mutations-CCbGTxuw.d.ts} +1 -1
  413. package/dist/{remoteFlows-CZEN0YS9.d.ts → remoteFlows-BTGwzbVQ.d.ts} +1 -1
  414. package/dist/styles.css +1 -1
  415. package/dist/styles.css.map +1 -1
  416. package/dist/types-BAQL-xPU.d.ts +117 -0
  417. package/dist/{types-CBkHhvbz.d.ts → types-BQUdy5l7.d.ts} +4 -4
  418. package/dist/{types-BjDBV8pu.d.ts → types-BUCAIjdm.d.ts} +1 -1
  419. package/dist/{types-cBDclXLf.d.ts → types-BtrEXSWH.d.ts} +3 -3
  420. package/dist/{types-DvNZcY-b.d.ts → types-CvqFd-l3.d.ts} +44 -11
  421. package/dist/{types-QvgO54zG.d.ts → types-DRIJcxE-.d.ts} +39 -20
  422. package/dist/{types-DuPw8mPr.d.ts → types-DoWlYF_Q.d.ts} +2 -2
  423. package/dist/types-Im-AaNUG.d.ts +2033 -0
  424. package/dist/{types.gen-rKTincuW.d.ts → types.gen-Bn3elzBI.d.ts} +171 -61
  425. package/dist/{utils-Cexn9XOb.d.ts → utils-Dc_Eq2Vm.d.ts} +1 -1
  426. package/package.json +5 -5
  427. package/dist/CheckboxFieldDefault-OK7JODEG.js +0 -2
  428. package/dist/CountryFieldDefault-ORC6XVVK.js +0 -2
  429. package/dist/DatePickerFieldDefault-XMG6ZDVQ.js +0 -2
  430. package/dist/RadioGroupFieldDefault-X3HP3BDR.js +0 -2
  431. package/dist/TextAreaFieldDefault-5YJYIBAO.js +0 -2
  432. package/dist/chunk-2TAVZJPX.js +0 -2
  433. package/dist/chunk-3BRO52TO.js +0 -2
  434. package/dist/chunk-3BRO52TO.js.map +0 -1
  435. package/dist/chunk-3DD3UNKM.js +0 -2
  436. package/dist/chunk-3GB6QH7W.js +0 -2
  437. package/dist/chunk-5LJ5IFXF.js +0 -2
  438. package/dist/chunk-5LJ5IFXF.js.map +0 -1
  439. package/dist/chunk-626FTNKA.js +0 -2
  440. package/dist/chunk-6TKWWM5A.js +0 -2
  441. package/dist/chunk-6TKWWM5A.js.map +0 -1
  442. package/dist/chunk-ARNYUYFG.js +0 -2
  443. package/dist/chunk-ARNYUYFG.js.map +0 -1
  444. package/dist/chunk-BYDNNJHZ.js +0 -8
  445. package/dist/chunk-BYDNNJHZ.js.map +0 -1
  446. package/dist/chunk-DN6BXTAC.js +0 -2
  447. package/dist/chunk-GYSU3LLC.js +0 -2
  448. package/dist/chunk-JDIKYCN6.js +0 -2
  449. package/dist/chunk-JDIKYCN6.js.map +0 -1
  450. package/dist/chunk-RU5E42WN.js +0 -2
  451. package/dist/chunk-RU5E42WN.js.map +0 -1
  452. package/dist/chunk-TMBL5YM4.js +0 -2
  453. package/dist/chunk-TMBL5YM4.js.map +0 -1
  454. package/dist/chunk-UOWQ7UKA.js +0 -2
  455. package/dist/chunk-UOWQ7UKA.js.map +0 -1
  456. package/dist/chunk-XT6WMFV5.js +0 -2
  457. package/dist/types-CBDzsY3a.d.ts +0 -53
  458. /package/dist/{CheckboxFieldDefault-OK7JODEG.js.map → CheckboxFieldDefault-VKVKDNK4.js.map} +0 -0
  459. /package/dist/{CountryFieldDefault-ORC6XVVK.js.map → CountryFieldDefault-N7P5V5NR.js.map} +0 -0
  460. /package/dist/{DatePickerFieldDefault-XMG6ZDVQ.js.map → DatePickerFieldDefault-V3F2DLPV.js.map} +0 -0
  461. /package/dist/{RadioGroupFieldDefault-X3HP3BDR.js.map → RadioGroupFieldDefault-UMDJEJZU.js.map} +0 -0
  462. /package/dist/{TextAreaFieldDefault-5YJYIBAO.js.map → TextAreaFieldDefault-5CV4XTOT.js.map} +0 -0
  463. /package/dist/{chunk-TWBTRW4Z.js.map → chunk-3BAVRWSN.js.map} +0 -0
  464. /package/dist/{chunk-ZVNUZW4X.js.map → chunk-3CJB74UF.js.map} +0 -0
  465. /package/dist/{chunk-A5SRPVT2.js.map → chunk-43FMKELR.js.map} +0 -0
  466. /package/dist/{chunk-GHHMGTM4.js.map → chunk-43NIG25S.js.map} +0 -0
  467. /package/dist/{chunk-YW4FHEYJ.js.map → chunk-6JOMJADW.js.map} +0 -0
  468. /package/dist/{chunk-Q7SMO5VI.js.map → chunk-6OHLLH6W.js.map} +0 -0
  469. /package/dist/{chunk-G7N6QIOB.js.map → chunk-6Z4U4GYV.js.map} +0 -0
  470. /package/dist/{chunk-C3J4KQEW.js.map → chunk-746NEWTS.js.map} +0 -0
  471. /package/dist/{chunk-EI44AIUW.js.map → chunk-7NFCUTWO.js.map} +0 -0
  472. /package/dist/{chunk-FMP4J4GT.js.map → chunk-7O4Y3DAM.js.map} +0 -0
  473. /package/dist/{chunk-X4IJ52GQ.js.map → chunk-A7D2NNLM.js.map} +0 -0
  474. /package/dist/{chunk-H6Z54SNM.js.map → chunk-ARVKTD3V.js.map} +0 -0
  475. /package/dist/{chunk-KSJLZDGY.js.map → chunk-BB5K57D4.js.map} +0 -0
  476. /package/dist/{chunk-6JW4ERRK.js.map → chunk-BIL7ERK6.js.map} +0 -0
  477. /package/dist/{chunk-IVDF2PMA.js.map → chunk-BOE6NL6T.js.map} +0 -0
  478. /package/dist/{chunk-7XZP24UE.js.map → chunk-CPRWWJYQ.js.map} +0 -0
  479. /package/dist/{chunk-ZQWAUPIL.js.map → chunk-CRDG62ZJ.js.map} +0 -0
  480. /package/dist/{chunk-L3ZVE4JS.js.map → chunk-D4XBTJOV.js.map} +0 -0
  481. /package/dist/{chunk-OPDKYPYM.js.map → chunk-DSGQZDY6.js.map} +0 -0
  482. /package/dist/{chunk-YRNO7X3H.js.map → chunk-ERDNYHQO.js.map} +0 -0
  483. /package/dist/{chunk-LWTE6DD4.js.map → chunk-F5WNUYFP.js.map} +0 -0
  484. /package/dist/{chunk-TNGJKUUV.js.map → chunk-F7QTO3NU.js.map} +0 -0
  485. /package/dist/{chunk-4QJUNKBR.js.map → chunk-FCY5FJMC.js.map} +0 -0
  486. /package/dist/{chunk-QZMSDP2S.js.map → chunk-GGDVTGHG.js.map} +0 -0
  487. /package/dist/{chunk-TM2GTPUI.js.map → chunk-HFHQDWJN.js.map} +0 -0
  488. /package/dist/{chunk-HGY2ZKJN.js.map → chunk-HGFJTAEM.js.map} +0 -0
  489. /package/dist/{chunk-NRGNFMIO.js.map → chunk-HHFGG3RU.js.map} +0 -0
  490. /package/dist/{chunk-6NKXOUJW.js.map → chunk-HXEOVMUT.js.map} +0 -0
  491. /package/dist/{chunk-RFVHV6RE.js.map → chunk-J2L3CYIS.js.map} +0 -0
  492. /package/dist/{chunk-WKAVKFP6.js.map → chunk-JVLARDTF.js.map} +0 -0
  493. /package/dist/{chunk-PDQ5GZSE.js.map → chunk-KT4Y4UPD.js.map} +0 -0
  494. /package/dist/{chunk-IOGX6GAZ.js.map → chunk-LBQQSYCG.js.map} +0 -0
  495. /package/dist/{chunk-PSCFVUJB.js.map → chunk-LFHFZU6X.js.map} +0 -0
  496. /package/dist/{chunk-BJZXTS47.js.map → chunk-LNR6TGLQ.js.map} +0 -0
  497. /package/dist/{chunk-PXU2LCFW.js.map → chunk-LS4CLDLI.js.map} +0 -0
  498. /package/dist/{chunk-S4QKVG2B.js.map → chunk-LSC6NTXD.js.map} +0 -0
  499. /package/dist/{chunk-4KKA35AX.js.map → chunk-MC6VR4AZ.js.map} +0 -0
  500. /package/dist/{chunk-V7YF7ICV.js.map → chunk-MGDYS2EY.js.map} +0 -0
  501. /package/dist/{chunk-ID4S6FWD.js.map → chunk-MKO33XZ5.js.map} +0 -0
  502. /package/dist/{chunk-IF42CZJH.js.map → chunk-NEKE5PRJ.js.map} +0 -0
  503. /package/dist/{chunk-LVTBMTOU.js.map → chunk-NRWIGTY2.js.map} +0 -0
  504. /package/dist/{chunk-RLFV5DLC.js.map → chunk-OETKBT6P.js.map} +0 -0
  505. /package/dist/{chunk-A675PPWA.js.map → chunk-OK4RV6ZT.js.map} +0 -0
  506. /package/dist/{chunk-UZBAOB4W.js.map → chunk-PGCS6HUO.js.map} +0 -0
  507. /package/dist/{chunk-YYX3OX7N.js.map → chunk-PRXJRF7V.js.map} +0 -0
  508. /package/dist/{chunk-ZF3JITFM.js.map → chunk-PSU2AEFU.js.map} +0 -0
  509. /package/dist/{chunk-BS2B4OOE.js.map → chunk-R744BZN2.js.map} +0 -0
  510. /package/dist/{chunk-DAFIBCX4.js.map → chunk-RFEF2B5D.js.map} +0 -0
  511. /package/dist/{chunk-O4CLVNOP.js.map → chunk-RJXRGUNB.js.map} +0 -0
  512. /package/dist/{chunk-3QSHWQS3.js.map → chunk-RKRYZZ3R.js.map} +0 -0
  513. /package/dist/{chunk-SRGB5JQU.js.map → chunk-RYUBFXSX.js.map} +0 -0
  514. /package/dist/{chunk-DN6BXTAC.js.map → chunk-SC7YWKOW.js.map} +0 -0
  515. /package/dist/{chunk-SRXYQVLN.js.map → chunk-STKY674N.js.map} +0 -0
  516. /package/dist/{chunk-J3HIQRZO.js.map → chunk-TQH4OKHR.js.map} +0 -0
  517. /package/dist/{chunk-3QG44XYC.js.map → chunk-UT3CQ2DH.js.map} +0 -0
  518. /package/dist/{chunk-X25ZOPO6.js.map → chunk-V557KUHJ.js.map} +0 -0
  519. /package/dist/{chunk-3YP27SZK.js.map → chunk-VVEBSBQ3.js.map} +0 -0
  520. /package/dist/{chunk-DS6URMR3.js.map → chunk-VZ3JCO23.js.map} +0 -0
  521. /package/dist/{chunk-QK3FQD6C.js.map → chunk-W4LHXUIX.js.map} +0 -0
  522. /package/dist/{chunk-GNDFT5KG.js.map → chunk-Y2K74EBE.js.map} +0 -0
  523. /package/dist/{chunk-TZGC6PWQ.js.map → chunk-YJFRQSTA.js.map} +0 -0
  524. /package/dist/{chunk-BSOKKYGH.js.map → chunk-Z5LVLVTU.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as R,b as x,c as N,d as A}from"./chunk-DMNKKWLY.js";import{a as T}from"./chunk-ZE3YT3Q6.js";import{a as C}from"./chunk-N6XLGYRK.js";import{b as B}from"./chunk-T5J2Z6ZR.js";import{a as w,c as f}from"./chunk-RFVHV6RE.js";import{n as i,o as n,r as F}from"./chunk-G2LZFGZA.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-S4QKVG2B.js.map
1
+ import{a as R,b as x,c as N,d as A}from"./chunk-DMNKKWLY.js";import{a as T}from"./chunk-ZE3YT3Q6.js";import{a as C}from"./chunk-N6XLGYRK.js";import{b as B}from"./chunk-T5J2Z6ZR.js";import{a as w,c as f}from"./chunk-J2L3CYIS.js";import{n as i,o as n,r as F}from"./chunk-G2LZFGZA.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-LSC6NTXD.js.map
@@ -1,2 +1,2 @@
1
- import{b as n}from"./chunk-MRYRNB7Y.js";import{a as l}from"./chunk-J2ARI3NQ.js";import{a as t}from"./chunk-X4IJ52GQ.js";import{h as a}from"./chunk-Y3CJRZLA.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e}from"react/jsx-runtime";function S({defaultValues:s,fields:i,onSubmit:d}){let{formId:F,terminationBag:o}=n(),m=l({handleValidation:o.handleValidation,defaultValues:s,checkFieldUpdates:o.checkFieldUpdates}),u=i||(o?.fields??[]);return e(a,{...m,children:e("form",{id:F,onSubmit:m.handleSubmit(d),className:"space-y-4 RemoteFlows__TerminationForm",children:e(t,{fields:u})})})}r(S,"TerminationForm");export{S as a};
2
- //# sourceMappingURL=chunk-4KKA35AX.js.map
1
+ import{b as n}from"./chunk-MRYRNB7Y.js";import{a as l}from"./chunk-J2ARI3NQ.js";import{a as t}from"./chunk-A7D2NNLM.js";import{h as a}from"./chunk-Y3CJRZLA.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e}from"react/jsx-runtime";function S({defaultValues:s,fields:i,onSubmit:d}){let{formId:F,terminationBag:o}=n(),m=l({handleValidation:o.handleValidation,defaultValues:s,checkFieldUpdates:o.checkFieldUpdates}),u=i||(o?.fields??[]);return e(a,{...m,children:e("form",{id:F,onSubmit:m.handleSubmit(d),className:"space-y-4 RemoteFlows__TerminationForm",children:e(t,{fields:u})})})}r(S,"TerminationForm");export{S as a};
2
+ //# sourceMappingURL=chunk-MC6VR4AZ.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-4KKA35AX.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function F({onSubmit:t,onSuccess:s,onError:m}){let{terminationBag:o}=e(),d=r(async a=>{let l=await o?.parseFormValues(a,!0);await t?.(l);let i=await o?.onSubmit(a);i?.error?m?.(i.rawError):i?.data&&await s?.(i.data)},"handleSubmit");return u(n,{defaultValues:o.fieldValues,fields:o?.fields,onSubmit:d})}r(F,"AdditionalDetailsForm");export{F as a};
2
- //# sourceMappingURL=chunk-V7YF7ICV.js.map
1
+ import{a as n}from"./chunk-MC6VR4AZ.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function F({onSubmit:t,onSuccess:s,onError:m}){let{terminationBag:o}=e(),d=r(async a=>{let l=await o?.parseFormValues(a,!0);await t?.(l);let i=await o?.onSubmit(a);i?.error?m?.(i.rawError):i?.data&&await s?.(i.data)},"handleSubmit");return u(n,{defaultValues:o.fieldValues,fields:o?.fields,onSubmit:d})}r(F,"AdditionalDetailsForm");export{F as a};
2
+ //# sourceMappingURL=chunk-MGDYS2EY.js.map
@@ -1,2 +1,2 @@
1
- import{P as e}from"./chunk-BYDNNJHZ.js";import{a as t}from"./chunk-P37U34EQ.js";import{queryOptions as i}from"@tanstack/react-query";var a=t((o,n="default")=>i({queryKey:["countries",n],retry:!1,queryFn:t(async()=>{let r=await e({client:o,headers:{Authorization:""}});if(r.error||!r.data)throw new Error("Failed to fetch supported countries");return r},"queryFn")}),"countriesOptions");export{a};
2
- //# sourceMappingURL=chunk-ID4S6FWD.js.map
1
+ import{V as e}from"./chunk-AS7SJDU5.js";import{a as t}from"./chunk-P37U34EQ.js";import{queryOptions as i}from"@tanstack/react-query";var a=t((o,n="default")=>i({queryKey:["countries",n],retry:!1,queryFn:t(async()=>{let r=await e({client:o,headers:{Authorization:""}});if(r.error||!r.data)throw new Error("Failed to fetch supported countries");return r},"queryFn")}),"countriesOptions");export{a};
2
+ //# sourceMappingURL=chunk-MKO33XZ5.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-LMYJ6V44.js";import{a as e}from"./chunk-TC7EQZJK.js";import{a as r}from"./chunk-NX7MM6XR.js";import{a as t}from"./chunk-ZXGAFQXW.js";var i={data:{version:7,schema:{additionalProperties:!1,allOf:[...e.data.schema.allOf,...t.data.schema.allOf,...r.data.schema.allOf,...a.data.schema.allOf],properties:{...e.data.schema.properties,...t.data.schema.properties,...r.data.schema.properties,...a.data.schema.properties},required:[...e.data.schema.required,...t.data.schema.required,...r.data.schema.required,...a.data.schema.required],type:"object","x-jsf-order":[...e.data.schema["x-jsf-order"],...t.data.schema["x-jsf-order"],...r.data.schema["x-jsf-order"],...a.data.schema["x-jsf-order"]]}}};export{i as a};
2
- //# sourceMappingURL=chunk-IF42CZJH.js.map
1
+ import{a as e}from"./chunk-TC7EQZJK.js";import{a as r}from"./chunk-NX7MM6XR.js";import{a as t}from"./chunk-ZXGAFQXW.js";import{a}from"./chunk-LMYJ6V44.js";var i={data:{version:7,schema:{additionalProperties:!1,allOf:[...e.data.schema.allOf,...t.data.schema.allOf,...r.data.schema.allOf,...a.data.schema.allOf],properties:{...e.data.schema.properties,...t.data.schema.properties,...r.data.schema.properties,...a.data.schema.properties},required:[...e.data.schema.required,...t.data.schema.required,...r.data.schema.required,...a.data.schema.required],type:"object","x-jsf-order":[...e.data.schema["x-jsf-order"],...t.data.schema["x-jsf-order"],...r.data.schema["x-jsf-order"],...a.data.schema["x-jsf-order"]]}}};export{i as a};
2
+ //# sourceMappingURL=chunk-NEKE5PRJ.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-4QJUNKBR.js";import{b as i}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as y}from"react/jsx-runtime";function E({onSubmit:c,onSuccess:s,onError:u}){let{contractorOnboardingBag:r}=i(),l=t(async(e,d)=>{try{await c?.({countryCode:e.country});let o=await r.onSubmit(e);if(o?.data){await s?.(o?.data),r?.next();return}}catch(o){let S=n(o,r.meta?.fields?.select_country,d);u?.(S)}},"handleSubmit"),m=r.stepState.values?.select_country||r.initialValues.select_country;return y(a,{defaultValues:m,onSubmit:l})}t(E,"SelectCountryStep");export{E as a};
2
- //# sourceMappingURL=chunk-LVTBMTOU.js.map
1
+ import{a}from"./chunk-FCY5FJMC.js";import{b as i}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as y}from"react/jsx-runtime";function E({onSubmit:c,onSuccess:s,onError:u}){let{contractorOnboardingBag:r}=i(),l=t(async(e,d)=>{try{await c?.({countryCode:e.country});let o=await r.onSubmit(e);if(o?.data){await s?.(o?.data),r?.next();return}}catch(o){let S=n(o,r.meta?.fields?.select_country,d);u?.(S)}},"handleSubmit"),m=r.stepState.values?.select_country||r.initialValues.select_country;return y(a,{defaultValues:m,onSubmit:l})}t(E,"SelectCountryStep");export{E as a};
2
+ //# sourceMappingURL=chunk-NRWIGTY2.js.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-P37U34EQ.js";var r=class extends Error{static{e(this,"TaxPendingEnrollmentError")}constructor(){super("Tax step is pending enrollment"),this.name="TaxPendingEnrollmentError"}};export{r as a};
2
+ //# sourceMappingURL=chunk-NXSRNOBC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/PayrollEmployeeOnboarding/taxErrors.ts"],"sourcesContent":["/**\n * Thrown by the flow's `onSubmit` when a tax-step PUT fails because the tax\n * task isn't provisioned yet (pending enrollment). The submit handler treats\n * this as an availability change — it neither advances nor surfaces a raw error\n * via `onError` — because the flow already reflects it through\n * `taxStepsAvailability`.\n */\nexport class TaxPendingEnrollmentError extends Error {\n constructor() {\n super('Tax step is pending enrollment');\n this.name = 'TaxPendingEnrollmentError';\n }\n}\n"],"mappings":"wCAOO,IAAMA,EAAN,cAAwC,KAAM,CAPrD,MAOqD,CAAAC,EAAA,kCACnD,aAAc,CACZ,MAAM,gCAAgC,EACtC,KAAK,KAAO,2BACd,CACF","names":["TaxPendingEnrollmentError","__name"]}
@@ -1,2 +1,2 @@
1
- import{a as I}from"./chunk-A3LRPGV3.js";import{a as N,b as j,c as D,d as O}from"./chunk-3DD3UNKM.js";import{b as v}from"./chunk-NW3D7CPK.js";import{b as C,h as p,i as b,u as R,v as F}from"./chunk-G2LZFGZA.js";import{a as k}from"./chunk-JDIKYCN6.js";import{a as c}from"./chunk-P37U34EQ.js";import{useMemo as S,useRef as ee,useState as A}from"react";var pe=c(({countryCode:L,options:u,initialValues:l})=>{let P=N(),g=j(),{mutateAsync:q}=C(P),{mutateAsync:J}=C(g),[y,U]=A(L||null),[f,B]=A(null),w=ee({company_basic_information:{},address_details:{}}),{fieldValues:V,stepState:a,setFieldValues:W,previousStep:z,nextStep:G,goToStep:H}=k(I),{companyBasicInformationForm:d,isLoading:K}=D({jsfModify:u?.jsfModify?.company_basic_information,queryOptions:{enabled:a.currentStep.name==="company_basic_information"}}),{data:s,isLoading:Q}=O({countryCode:y,fieldValues:a.currentStep.name==="address_details"?{...a.values?.address_details||{},...V}:a.values?.address_details||{},options:{...u,jsfModify:u?.jsfModify?.address_details,queryOptions:{enabled:a.currentStep.name==="address_details"&&!!y&&!!f}}}),i=S(()=>({company_basic_information:d?.fields||[],address_details:s?.fields||[]}),[d?.fields,s?.fields]),X={company_basic_information:null,address_details:s?.meta?.["x-jsf-fieldsets"]||null},h=S(()=>b(i.company_basic_information,{...l,country_code:y||l?.country_code||""}),[i.company_basic_information,y,l]),E=S(()=>b(i.address_details,l||{}),[i.address_details,l]),Y=S(()=>({company_basic_information:h,address_details:E}),[h,E]),Z=c(o=>{H(o)},"goTo"),M=c(async o=>{let r=a.currentStep.name,e=i[r];return d&&r==="company_basic_information"?await p(o,e,{isPartialValidation:!1}):s&&r==="address_details"?await p(o,e,{isPartialValidation:!1}):{}},"parseFormValues");async function $(o){let r=a.currentStep.name,e=await M(o);switch(r in w.current&&(w.current[r]=R(e,i[r])),a.currentStep.name){case"company_basic_information":{if(U(e.country_code),f)return Promise.resolve({data:{countryCode:e.country_code??"",companyOwnerEmail:e.company_owner_email??"",companyOwnerName:e.company_owner_name??"",desiredCurrency:e.desired_currency??"",name:e.name??"",phoneNumber:e.phone_number??"",taxNumber:e.tax_number??""}});let x={country_code:e.country_code,company_owner_email:e.company_owner_email,company_owner_name:e.company_owner_name,desired_currency:e.desired_currency,name:e.name,phone_number:e.phone_number,tax_number:e.tax_number,terms_of_service_accepted_at:v()},n=await q(x);if(n.error)return Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors});let m=n.data?.data,_,t;if(m)if("data"in m&&m.data){let T=m.data.company;t=T,_=T?.id}else"company"in m&&(t=m.company,_=t?.id);return _&&B(_),Promise.resolve({data:{countryCode:t?.country_code??e.country_code??"",companyOwnerEmail:t?.company_owner_email??e.company_owner_email??"",companyOwnerName:t?.company_owner_name??e.company_owner_name??"",desiredCurrency:t?.desired_currency??e.desired_currency??"",name:t?.name??e.name??"",phoneNumber:t?.phone_number??e.phone_number??"",taxNumber:t?.tax_number??e.tax_number??""}})}case"address_details":{if(!f)throw F("Company ID is required to update address details");let n=await J({companyId:f,payload:{address_details:e},jsonSchemaVersion:u?.jsonSchemaVersion?.form_schema?.address_details});return n.error?Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors}):Promise.resolve({data:n.data})}default:throw F("Invalid step state")}}return c($,"onSubmit"),{isLoading:K||Q,isSubmitting:P.isPending||g.isPending,fieldValues:V,stepState:a,checkFieldUpdates:W,back:z,next:G,goTo:Z,onSubmit:$,fields:i[a.currentStep.name],meta:{fields:w.current,fieldsets:X[a.currentStep.name]},parseFormValues:M,handleValidation:c(async o=>{if(a.currentStep.name==="company_basic_information"&&d){let r=await p(o,d.fields,{isPartialValidation:!1});return d.handleValidation(r)}if(a.currentStep.name==="address_details"&&s){let r=await p(o,s.fields,{isPartialValidation:!1});return s.handleValidation(r)}return null},"handleValidation"),initialValues:Y}},"useCreateCompany");export{pe as a};
2
- //# sourceMappingURL=chunk-RLFV5DLC.js.map
1
+ import{a as I}from"./chunk-A3LRPGV3.js";import{a as N,b as j,c as D,d as O}from"./chunk-34JOEA4E.js";import{b as v}from"./chunk-NW3D7CPK.js";import{b as C,h as p,i as b,u as R,v as F}from"./chunk-G2LZFGZA.js";import{a as k}from"./chunk-XPVYX7LE.js";import{a as c}from"./chunk-P37U34EQ.js";import{useMemo as S,useRef as ee,useState as A}from"react";var pe=c(({countryCode:L,options:u,initialValues:l})=>{let P=N(),g=j(),{mutateAsync:q}=C(P),{mutateAsync:J}=C(g),[y,U]=A(L||null),[f,B]=A(null),w=ee({company_basic_information:{},address_details:{}}),{fieldValues:V,stepState:a,setFieldValues:W,previousStep:z,nextStep:G,goToStep:H}=k(I),{companyBasicInformationForm:d,isLoading:K}=D({jsfModify:u?.jsfModify?.company_basic_information,queryOptions:{enabled:a.currentStep.name==="company_basic_information"}}),{data:s,isLoading:Q}=O({countryCode:y,fieldValues:a.currentStep.name==="address_details"?{...a.values?.address_details||{},...V}:a.values?.address_details||{},options:{...u,jsfModify:u?.jsfModify?.address_details,queryOptions:{enabled:a.currentStep.name==="address_details"&&!!y&&!!f}}}),i=S(()=>({company_basic_information:d?.fields||[],address_details:s?.fields||[]}),[d?.fields,s?.fields]),X={company_basic_information:null,address_details:s?.meta?.["x-jsf-fieldsets"]||null},h=S(()=>b(i.company_basic_information,{...l,country_code:y||l?.country_code||""}),[i.company_basic_information,y,l]),E=S(()=>b(i.address_details,l||{}),[i.address_details,l]),Y=S(()=>({company_basic_information:h,address_details:E}),[h,E]),Z=c(o=>{H(o)},"goTo"),M=c(async o=>{let r=a.currentStep.name,e=i[r];return d&&r==="company_basic_information"?await p(o,e,{isPartialValidation:!1}):s&&r==="address_details"?await p(o,e,{isPartialValidation:!1}):{}},"parseFormValues");async function $(o){let r=a.currentStep.name,e=await M(o);switch(r in w.current&&(w.current[r]=R(e,i[r])),a.currentStep.name){case"company_basic_information":{if(U(e.country_code),f)return Promise.resolve({data:{countryCode:e.country_code??"",companyOwnerEmail:e.company_owner_email??"",companyOwnerName:e.company_owner_name??"",desiredCurrency:e.desired_currency??"",name:e.name??"",phoneNumber:e.phone_number??"",taxNumber:e.tax_number??""}});let x={country_code:e.country_code,company_owner_email:e.company_owner_email,company_owner_name:e.company_owner_name,desired_currency:e.desired_currency,name:e.name,phone_number:e.phone_number,tax_number:e.tax_number,terms_of_service_accepted_at:v()},n=await q(x);if(n.error)return Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors});let m=n.data?.data,_,t;if(m)if("data"in m&&m.data){let T=m.data.company;t=T,_=T?.id}else"company"in m&&(t=m.company,_=t?.id);return _&&B(_),Promise.resolve({data:{countryCode:t?.country_code??e.country_code??"",companyOwnerEmail:t?.company_owner_email??e.company_owner_email??"",companyOwnerName:t?.company_owner_name??e.company_owner_name??"",desiredCurrency:t?.desired_currency??e.desired_currency??"",name:t?.name??e.name??"",phoneNumber:t?.phone_number??e.phone_number??"",taxNumber:t?.tax_number??e.tax_number??""}})}case"address_details":{if(!f)throw F("Company ID is required to update address details");let n=await J({companyId:f,payload:{address_details:e},jsonSchemaVersion:u?.jsonSchemaVersion?.form_schema?.address_details});return n.error?Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors}):Promise.resolve({data:n.data})}default:throw F("Invalid step state")}}return c($,"onSubmit"),{isLoading:K||Q,isSubmitting:P.isPending||g.isPending,fieldValues:V,stepState:a,checkFieldUpdates:W,back:z,next:G,goTo:Z,onSubmit:$,fields:i[a.currentStep.name],meta:{fields:w.current,fieldsets:X[a.currentStep.name]},parseFormValues:M,handleValidation:c(async o=>{if(a.currentStep.name==="company_basic_information"&&d){let r=await p(o,d.fields,{isPartialValidation:!1});return d.handleValidation(r)}if(a.currentStep.name==="address_details"&&s){let r=await p(o,s.fields,{isPartialValidation:!1});return s.handleValidation(r)}return null},"handleValidation"),initialValues:Y}},"useCreateCompany");export{pe as a};
2
+ //# sourceMappingURL=chunk-OETKBT6P.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-QK3FQD6C.js";import{b as i}from"./chunk-76ZDXC2T.js";import{x as a}from"./chunk-G2LZFGZA.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function C({onSubmit:m,onSuccess:l,onError:t}){let{createCompanyBag:e}=i(),p=o(async d=>{try{await m?.(d);let r=await e.onSubmit(d);if(r?.data){await l?.(r?.data);return}if(r?.error){let s=a(r,e.meta?.fields?.address_details);t?.(s)}}catch(r){let s=a(r,e.meta?.fields?.address_details);t?.(s)}},"handleSubmit"),u=e.stepState.values?.address_details||e.initialValues.address_details;return c(n,{defaultValues:u,onSubmit:p})}o(C,"AddressDetailsStep");export{C as a};
2
- //# sourceMappingURL=chunk-A675PPWA.js.map
1
+ import{a as n}from"./chunk-W4LHXUIX.js";import{b as i}from"./chunk-76ZDXC2T.js";import{x as a}from"./chunk-G2LZFGZA.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function C({onSubmit:m,onSuccess:l,onError:t}){let{createCompanyBag:e}=i(),p=o(async d=>{try{await m?.(d);let r=await e.onSubmit(d);if(r?.data){await l?.(r?.data);return}if(r?.error){let s=a(r,e.meta?.fields?.address_details);t?.(s)}}catch(r){let s=a(r,e.meta?.fields?.address_details);t?.(s)}},"handleSubmit"),u=e.stepState.values?.address_details||e.initialValues.address_details;return c(n,{defaultValues:u,onSubmit:p})}o(C,"AddressDetailsStep");export{C as a};
2
+ //# sourceMappingURL=chunk-OK4RV6ZT.js.map
@@ -0,0 +1,2 @@
1
+ import{a as f,b as g}from"./chunk-3UBFABDS.js";import{b as R}from"./chunk-ZOTY3CAM.js";import{a as u}from"./chunk-DSGQZDY6.js";import{j as t,k as F,l as s,n as d,o as _}from"./chunk-Y3CJRZLA.js";import{n as l}from"./chunk-G2LZFGZA.js";import{a as c}from"./chunk-P37U34EQ.js";import{Fragment as h}from"react";import{jsx as e,jsxs as m}from"react/jsx-runtime";var w=c(({field:n,fieldData:a,fieldState:C})=>{let{name:r,label:i,description:p,options:b}=a;return e("fieldset",{className:l("space-y-3",`RemoteFlows__RadioGroupField__Item__${r}`),"data-field":r,children:m(t,{children:[e("legend",{children:i}),(p||a.meta?.helpCenter)&&e(d,{helpCenter:e(u,{helpCenter:a.meta?.helpCenter}),children:p}),e(s,{children:e(f,{"aria-label":i||r,onValueChange:o=>{n.onChange(o)},value:n.value,className:"flex flex-col",children:b?.map(o=>e(h,{children:m(t,{"data-field":r,className:"flex items-start space-x-3 space-y-0 gap-0 min-h-[24px] RemoteFlows__RadioField__Item",children:[e(s,{children:e(g,{value:o.value,className:l("RemoteFlows__RadioField__Input",o.recommended&&"mt-1"),disabled:o.disabled})}),m("div",{children:[m(F,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:[e("span",{dangerouslySetInnerHTML:{__html:o.label}})," ",o.recommended&&e(R,{variant:"secondary",className:"ml-2",children:"Recommended"})]}),o.description&&e(d,{className:"mt-2",children:o.description})]})]})},o.value))})}),C.error&&e(_,{})]})})},"RadioGroupFieldDefault");export{w as a};
2
+ //# sourceMappingURL=chunk-OPX7E3W2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/form/fields/default/RadioGroupFieldDefault.tsx"],"sourcesContent":["import { Fragment } from 'react';\nimport {\n FormControl,\n FormDescription,\n FormItem,\n FormLabel,\n FormMessage,\n} from '@/src/components/ui/form';\nimport { RadioGroup, RadioGroupItem } from '@/src/components/ui/radio-group';\nimport { cn } from '@/src/lib/utils';\nimport { RadioGroupComponentProps } from '@/src/types/fields';\nimport { HelpCenter } from '@/src/components/shared/zendesk-drawer/HelpCenter';\nimport { Badge } from '@/src/components/ui/badge';\n\nexport const RadioGroupFieldDefault = ({\n field,\n fieldData,\n fieldState,\n}: RadioGroupComponentProps) => {\n const { name, label, description, options } = fieldData;\n return (\n <fieldset\n className={cn('space-y-3', `RemoteFlows__RadioGroupField__Item__${name}`)}\n data-field={name}\n >\n <FormItem>\n <legend>{label}</legend>\n {(description || fieldData.meta?.helpCenter) && (\n <FormDescription\n helpCenter={<HelpCenter helpCenter={fieldData.meta?.helpCenter} />}\n >\n {description}\n </FormDescription>\n )}\n <FormControl>\n <RadioGroup\n aria-label={label || name}\n onValueChange={(value: string) => {\n field.onChange(value);\n }}\n value={field.value}\n className='flex flex-col'\n >\n {options?.map((option) => (\n <Fragment key={option.value}>\n <FormItem\n data-field={name}\n className='flex items-start space-x-3 space-y-0 gap-0 min-h-[24px] RemoteFlows__RadioField__Item'\n >\n <FormControl>\n <RadioGroupItem\n value={option.value}\n className={cn(\n 'RemoteFlows__RadioField__Input',\n option.recommended && 'mt-1',\n )}\n disabled={option.disabled}\n />\n </FormControl>\n <div>\n <FormLabel className='font-normal mb-0 RemoteFlows__RadioField__Label'>\n <span\n dangerouslySetInnerHTML={{ __html: option.label }}\n />{' '}\n {option.recommended && (\n <Badge variant='secondary' className='ml-2'>\n Recommended\n </Badge>\n )}\n </FormLabel>\n {option.description && (\n <FormDescription className='mt-2'>\n {option.description}\n </FormDescription>\n )}\n </div>\n </FormItem>\n </Fragment>\n ))}\n </RadioGroup>\n </FormControl>\n {fieldState.error && <FormMessage />}\n </FormItem>\n </fieldset>\n );\n};\n"],"mappings":"mRAAA,OAAS,YAAAA,MAAgB,QA0BjB,cAAAC,EAkCY,QAAAC,MAlCZ,oBAZD,IAAMC,EAAyBC,EAAA,CAAC,CACrC,MAAAC,EACA,UAAAC,EACA,WAAAC,CACF,IAAgC,CAC9B,GAAM,CAAE,KAAAC,EAAM,MAAAC,EAAO,YAAAC,EAAa,QAAAC,CAAQ,EAAIL,EAC9C,OACEL,EAAC,YACC,UAAWW,EAAG,YAAa,uCAAuCJ,CAAI,EAAE,EACxE,aAAYA,EAEZ,SAAAN,EAACW,EAAA,CACC,UAAAZ,EAAC,UAAQ,SAAAQ,EAAM,GACbC,GAAeJ,EAAU,MAAM,aAC/BL,EAACa,EAAA,CACC,WAAYb,EAACc,EAAA,CAAW,WAAYT,EAAU,MAAM,WAAY,EAE/D,SAAAI,EACH,EAEFT,EAACe,EAAA,CACC,SAAAf,EAACgB,EAAA,CACC,aAAYR,GAASD,EACrB,cAAgBU,GAAkB,CAChCb,EAAM,SAASa,CAAK,CACtB,EACA,MAAOb,EAAM,MACb,UAAU,gBAET,SAAAM,GAAS,IAAKQ,GACblB,EAACmB,EAAA,CACC,SAAAlB,EAACW,EAAA,CACC,aAAYL,EACZ,UAAU,wFAEV,UAAAP,EAACe,EAAA,CACC,SAAAf,EAACoB,EAAA,CACC,MAAOF,EAAO,MACd,UAAWP,EACT,iCACAO,EAAO,aAAe,MACxB,EACA,SAAUA,EAAO,SACnB,EACF,EACAjB,EAAC,OACC,UAAAA,EAACoB,EAAA,CAAU,UAAU,kDACnB,UAAArB,EAAC,QACC,wBAAyB,CAAE,OAAQkB,EAAO,KAAM,EAClD,EAAG,IACFA,EAAO,aACNlB,EAACsB,EAAA,CAAM,QAAQ,YAAY,UAAU,OAAO,uBAE5C,GAEJ,EACCJ,EAAO,aACNlB,EAACa,EAAA,CAAgB,UAAU,OACxB,SAAAK,EAAO,YACV,GAEJ,GACF,GAhCaA,EAAO,KAiCtB,CACD,EACH,EACF,EACCZ,EAAW,OAASN,EAACuB,EAAA,EAAY,GACpC,EACF,CAEJ,EAvEsC","names":["Fragment","jsx","jsxs","RadioGroupFieldDefault","__name","field","fieldData","fieldState","name","label","description","options","cn","FormItem","FormDescription","HelpCenter","FormControl","RadioGroup","value","option","Fragment","RadioGroupItem","FormLabel","Badge","FormMessage"]}
@@ -0,0 +1,2 @@
1
+ import{b as w}from"./chunk-PGWKJ6FK.js";import{q as k,r as A,s as y,t as D,u as _,v as M}from"./chunk-ZT4OC3OB.js";import{b as d}from"./chunk-G2LZFGZA.js";import{a as r}from"./chunk-P37U34EQ.js";import{useState as E}from"react";var H=r(({employmentId:t})=>{let{onboardingBag:m}=w(),[i,v]=E({}),[s,B]=E(),C=!!(m.options?.features?.includes("pre_onboarding_requirements")&&t),{data:a,isLoading:L,refetch:b}=k(t,{queryOptions:{enabled:C}}),q=new Map;for(let e of a??[])e.depends_on_requirement&&q.set(e.depends_on_requirement.slug,e);let f=s?i[s]:void 0,{data:T,isLoading:x}=y(t,f,{queryOptions:{enabled:!!f}}),p=A(),l=D(),R=_(),O=M(),{mutateAsyncOrThrow:N}=d(p),{mutateAsyncOrThrow:$}=d(l),{mutateAsyncOrThrow:G}=d(R),{mutateAsyncOrThrow:F}=d(O),I=r(async e=>{let o=a?.find(n=>n.slug===e);if(o?.status==="blocked"){let n=o.depends_on_requirement?.name;throw new Error(`Cannot create document for blocked requirement. ${n?`${n} must be completed first.`:"A dependent requirement must be completed first."}`)}let c=i[e];if(B(e),c)return null;let u=await N({employmentId:t,body:{requirement_slug:e,employment_id:t}}),g=u?.data.pre_onboarding_document.id;return g&&v(n=>({...n,[e]:g})),u},"onCreateDocument"),S=r(async e=>{let o=a?.find(n=>n.slug===e),c=o?.status==="blocked",u=P(e);if(c){let n=o?.depends_on_requirement?.name;throw new Error(`Cannot acknowledge blocked requirement. ${n?`${n} must be completed first.`:"A dependent requirement must be completed first."}`)}if(u)throw new Error("Cannot uncheck this acknowledgement because other requirements depend on it and are already in progress or completed.");if(h)throw new Error("Cannot acknowledge requirement while pending acknowledgement");o?.status==="finished"?await F({employmentId:t,requirementSlug:e}):await G({employmentId:t,requirementSlug:e}),await b()},"onAcknowledgeRequirement"),j=r(async e=>{if(!s)throw new Error("No active requirement selected");let o=i[s];if(!o)throw new Error("No document to sign");if(!e)throw new Error("Signature is required");let c=await $({employmentId:t,documentId:o,signature:e});return await b(),c},"onSignDocument"),P=r(e=>q.get(e)?.status==="finished","isAckLocked"),z=r(e=>s===e&&(p.isPending||x),"isRequirementLoading"),h=R.isPending||O.isPending;return{requirements:a,isLoadingRequirements:L,documentPreview:T,isSigning:l.isPending,onCreateDocument:I,onSignDocument:j,onAcknowledgeRequirement:S,isPendingAcknowledgement:h,isAckLocked:P,isRequirementLoading:z}},"usePreOnboardingRequirements"),V=r(({render:t})=>{let{onboardingBag:m}=w(),i=H({employmentId:m.employmentId});return t(i)},"PreOnboardingRequirements");export{H as a,V as b};
2
+ //# sourceMappingURL=chunk-PFQB3V2U.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/Onboarding/components/PreOnboardingRequirements.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useOnboardingContext } from '@/src/flows/Onboarding/context';\nimport {\n useGetPreOnboardingRequirements,\n useCreatePreOnboardingDocument,\n useGetPreOnboardingDocument,\n useSignPreOnboardingDocument,\n useAcknowledgePreOnboardingRequirement,\n useRemoveAcknowledgePreOnboardingRequirement,\n} from '@/src/flows/Onboarding/api';\nimport { mutationToPromise } from '@/src/lib/mutations';\nimport { PreOnboardingRequirement } from '@/src/client';\n\nexport const usePreOnboardingRequirements = ({\n employmentId,\n}: {\n employmentId: string;\n options?: Parameters<typeof useGetPreOnboardingRequirements>[1];\n}) => {\n const { onboardingBag } = useOnboardingContext();\n const [documentIds, setDocumentIds] = useState<Record<string, string>>({});\n const [activeRequirementSlug, setActiveRequirementSlug] = useState<\n string | undefined\n >();\n\n const isPreOnboardingRequirementsEnabled = Boolean(\n onboardingBag.options?.features?.includes('pre_onboarding_requirements') &&\n !!employmentId,\n );\n\n const {\n data: requirements,\n isLoading: isLoadingRequirements,\n refetch: refetchRequirements,\n } = useGetPreOnboardingRequirements(employmentId, {\n queryOptions: {\n enabled: isPreOnboardingRequirementsEnabled,\n },\n });\n\n const dependentBySlug = new Map<string, PreOnboardingRequirement>();\n for (const req of requirements ?? []) {\n if (req.depends_on_requirement) {\n dependentBySlug.set(req.depends_on_requirement.slug, req);\n }\n }\n\n const activeDocumentId = activeRequirementSlug\n ? documentIds[activeRequirementSlug]\n : undefined;\n\n const { data: documentPreview, isLoading: isLoadingDocumentPreview } =\n useGetPreOnboardingDocument(employmentId, activeDocumentId, {\n queryOptions: { enabled: !!activeDocumentId },\n });\n\n const createDocumentMutation = useCreatePreOnboardingDocument();\n const signDocumentMutation = useSignPreOnboardingDocument();\n const acknowledgeRequirementMutation =\n useAcknowledgePreOnboardingRequirement();\n const deleteAcknowledgeRequirementMutation =\n useRemoveAcknowledgePreOnboardingRequirement();\n\n const { mutateAsyncOrThrow: createDocumentMutationAsync } = mutationToPromise(\n createDocumentMutation,\n );\n const { mutateAsyncOrThrow: signDocumentMutationAsync } =\n mutationToPromise(signDocumentMutation);\n const { mutateAsyncOrThrow: acknowledgeRequirementMutationAsync } =\n mutationToPromise(acknowledgeRequirementMutation);\n const { mutateAsyncOrThrow: deleteAcknowledgeRequirementMutationAsync } =\n mutationToPromise(deleteAcknowledgeRequirementMutation);\n\n const onCreateDocument = async (requirementSlug: string) => {\n const requirement = requirements?.find(\n (req) => req.slug === requirementSlug,\n );\n\n if (requirement?.status === 'blocked') {\n const dependsOnName = requirement.depends_on_requirement?.name;\n throw new Error(\n `Cannot create document for blocked requirement. ${dependsOnName ? `${dependsOnName} must be completed first.` : 'A dependent requirement must be completed first.'}`,\n );\n }\n\n const existingDocumentId = documentIds[requirementSlug];\n setActiveRequirementSlug(requirementSlug);\n\n if (existingDocumentId) {\n return null;\n }\n\n const result = await createDocumentMutationAsync({\n employmentId,\n body: {\n requirement_slug: requirementSlug,\n employment_id: employmentId,\n },\n });\n const newDocumentId = result?.data.pre_onboarding_document.id;\n if (newDocumentId) {\n setDocumentIds((prev) => ({ ...prev, [requirementSlug]: newDocumentId }));\n }\n return result;\n };\n\n const onAcknowledgeRequirement = async (requirementSlug: string) => {\n const requirement = requirements?.find(\n (req) => req.slug === requirementSlug,\n );\n\n const isBlocked = requirement?.status === 'blocked';\n const isLocked = isAckLocked(requirementSlug);\n if (isBlocked) {\n const dependsOnName = requirement?.depends_on_requirement?.name;\n throw new Error(\n `Cannot acknowledge blocked requirement. ${dependsOnName ? `${dependsOnName} must be completed first.` : 'A dependent requirement must be completed first.'}`,\n );\n }\n\n if (isLocked) {\n throw new Error(\n 'Cannot uncheck this acknowledgement because other requirements depend on it and are already in progress or completed.',\n );\n }\n\n if (isPendingAcknowledgement) {\n throw new Error(\n 'Cannot acknowledge requirement while pending acknowledgement',\n );\n }\n\n const isFinished = requirement?.status === 'finished';\n\n if (!isFinished) {\n await acknowledgeRequirementMutationAsync({\n employmentId,\n requirementSlug,\n });\n } else {\n await deleteAcknowledgeRequirementMutationAsync({\n employmentId,\n requirementSlug,\n });\n }\n\n await refetchRequirements();\n };\n\n const onSignDocument = async (signature: string) => {\n if (!activeRequirementSlug) {\n throw new Error('No active requirement selected');\n }\n\n const documentId = documentIds[activeRequirementSlug];\n if (!documentId) {\n throw new Error('No document to sign');\n }\n\n if (!signature) {\n throw new Error('Signature is required');\n }\n\n const responnse = await signDocumentMutationAsync({\n employmentId,\n documentId,\n signature,\n });\n await refetchRequirements();\n return responnse;\n };\n\n const isAckLocked = (requirementSlug: string) => {\n return dependentBySlug.get(requirementSlug)?.status === 'finished';\n };\n\n const isRequirementLoading = (requirementSlug: string) => {\n return (\n activeRequirementSlug === requirementSlug &&\n (createDocumentMutation.isPending || isLoadingDocumentPreview)\n );\n };\n\n const isPendingAcknowledgement =\n acknowledgeRequirementMutation.isPending ||\n deleteAcknowledgeRequirementMutation.isPending;\n\n return {\n requirements,\n isLoadingRequirements,\n documentPreview,\n isSigning: signDocumentMutation.isPending,\n onCreateDocument,\n onSignDocument,\n onAcknowledgeRequirement,\n isPendingAcknowledgement,\n isAckLocked,\n isRequirementLoading,\n };\n};\n\nexport type PreOnboardingRequirementsBag = ReturnType<\n typeof usePreOnboardingRequirements\n>;\n\nexport const PreOnboardingRequirements = ({\n render,\n}: {\n render: (bag: PreOnboardingRequirementsBag) => React.ReactNode;\n}) => {\n const { onboardingBag } = useOnboardingContext();\n\n const bag = usePreOnboardingRequirements({\n employmentId: onboardingBag.employmentId as string,\n });\n\n return render(bag);\n};\n"],"mappings":"mMAAA,OAAS,YAAAA,MAAgB,QAalB,IAAMC,EAA+BC,EAAA,CAAC,CAC3C,aAAAC,CACF,IAGM,CACJ,GAAM,CAAE,cAAAC,CAAc,EAAIC,EAAqB,EACzC,CAACC,EAAaC,CAAc,EAAIC,EAAiC,CAAC,CAAC,EACnE,CAACC,EAAuBC,CAAwB,EAAIF,EAExD,EAEIG,EAAqC,GACzCP,EAAc,SAAS,UAAU,SAAS,6BAA6B,GACrED,GAGE,CACJ,KAAMS,EACN,UAAWC,EACX,QAASC,CACX,EAAIC,EAAgCZ,EAAc,CAChD,aAAc,CACZ,QAASQ,CACX,CACF,CAAC,EAEKK,EAAkB,IAAI,IAC5B,QAAWC,KAAOL,GAAgB,CAAC,EAC7BK,EAAI,wBACND,EAAgB,IAAIC,EAAI,uBAAuB,KAAMA,CAAG,EAI5D,IAAMC,EAAmBT,EACrBH,EAAYG,CAAqB,EACjC,OAEE,CAAE,KAAMU,EAAiB,UAAWC,CAAyB,EACjEC,EAA4BlB,EAAce,EAAkB,CAC1D,aAAc,CAAE,QAAS,CAAC,CAACA,CAAiB,CAC9C,CAAC,EAEGI,EAAyBC,EAA+B,EACxDC,EAAuBC,EAA6B,EACpDC,EACJC,EAAuC,EACnCC,EACJC,EAA6C,EAEzC,CAAE,mBAAoBC,CAA4B,EAAIC,EAC1DT,CACF,EACM,CAAE,mBAAoBU,CAA0B,EACpDD,EAAkBP,CAAoB,EAClC,CAAE,mBAAoBS,CAAoC,EAC9DF,EAAkBL,CAA8B,EAC5C,CAAE,mBAAoBQ,CAA0C,EACpEH,EAAkBH,CAAoC,EAElDO,EAAmBjC,EAAA,MAAOkC,GAA4B,CAC1D,IAAMC,EAAczB,GAAc,KAC/BK,GAAQA,EAAI,OAASmB,CACxB,EAEA,GAAIC,GAAa,SAAW,UAAW,CACrC,IAAMC,EAAgBD,EAAY,wBAAwB,KAC1D,MAAM,IAAI,MACR,mDAAmDC,EAAgB,GAAGA,CAAa,4BAA8B,kDAAkD,EACrK,CACF,CAEA,IAAMC,EAAqBjC,EAAY8B,CAAe,EAGtD,GAFA1B,EAAyB0B,CAAe,EAEpCG,EACF,OAAO,KAGT,IAAMC,EAAS,MAAMV,EAA4B,CAC/C,aAAA3B,EACA,KAAM,CACJ,iBAAkBiC,EAClB,cAAejC,CACjB,CACF,CAAC,EACKsC,EAAgBD,GAAQ,KAAK,wBAAwB,GAC3D,OAAIC,GACFlC,EAAgBmC,IAAU,CAAE,GAAGA,EAAM,CAACN,CAAe,EAAGK,CAAc,EAAE,EAEnED,CACT,EA/ByB,oBAiCnBG,EAA2BzC,EAAA,MAAOkC,GAA4B,CAClE,IAAMC,EAAczB,GAAc,KAC/BK,GAAQA,EAAI,OAASmB,CACxB,EAEMQ,EAAYP,GAAa,SAAW,UACpCQ,EAAWC,EAAYV,CAAe,EAC5C,GAAIQ,EAAW,CACb,IAAMN,EAAgBD,GAAa,wBAAwB,KAC3D,MAAM,IAAI,MACR,2CAA2CC,EAAgB,GAAGA,CAAa,4BAA8B,kDAAkD,EAC7J,CACF,CAEA,GAAIO,EACF,MAAM,IAAI,MACR,uHACF,EAGF,GAAIE,EACF,MAAM,IAAI,MACR,8DACF,EAGiBV,GAAa,SAAW,WAQzC,MAAMH,EAA0C,CAC9C,aAAA/B,EACA,gBAAAiC,CACF,CAAC,EARD,MAAMH,EAAoC,CACxC,aAAA9B,EACA,gBAAAiC,CACF,CAAC,EAQH,MAAMtB,EAAoB,CAC5B,EAzCiC,4BA2C3BkC,EAAiB9C,EAAA,MAAO+C,GAAsB,CAClD,GAAI,CAACxC,EACH,MAAM,IAAI,MAAM,gCAAgC,EAGlD,IAAMyC,EAAa5C,EAAYG,CAAqB,EACpD,GAAI,CAACyC,EACH,MAAM,IAAI,MAAM,qBAAqB,EAGvC,GAAI,CAACD,EACH,MAAM,IAAI,MAAM,uBAAuB,EAGzC,IAAME,EAAY,MAAMnB,EAA0B,CAChD,aAAA7B,EACA,WAAA+C,EACA,UAAAD,CACF,CAAC,EACD,aAAMnC,EAAoB,EACnBqC,CACT,EArBuB,kBAuBjBL,EAAc5C,EAACkC,GACZpB,EAAgB,IAAIoB,CAAe,GAAG,SAAW,WADtC,eAIdgB,EAAuBlD,EAACkC,GAE1B3B,IAA0B2B,IACzBd,EAAuB,WAAaF,GAHZ,wBAOvB2B,EACJrB,EAA+B,WAC/BE,EAAqC,UAEvC,MAAO,CACL,aAAAhB,EACA,sBAAAC,EACA,gBAAAM,EACA,UAAWK,EAAqB,UAChC,iBAAAW,EACA,eAAAa,EACA,yBAAAL,EACA,yBAAAI,EACA,YAAAD,EACA,qBAAAM,CACF,CACF,EA1L4C,gCAgM/BC,EAA4BnD,EAAA,CAAC,CACxC,OAAAoD,CACF,IAEM,CACJ,GAAM,CAAE,cAAAlD,CAAc,EAAIC,EAAqB,EAEzCkD,EAAMtD,EAA6B,CACvC,aAAcG,EAAc,YAC9B,CAAC,EAED,OAAOkD,EAAOC,CAAG,CACnB,EAZyC","names":["useState","usePreOnboardingRequirements","__name","employmentId","onboardingBag","useOnboardingContext","documentIds","setDocumentIds","useState","activeRequirementSlug","setActiveRequirementSlug","isPreOnboardingRequirementsEnabled","requirements","isLoadingRequirements","refetchRequirements","useGetPreOnboardingRequirements","dependentBySlug","req","activeDocumentId","documentPreview","isLoadingDocumentPreview","useGetPreOnboardingDocument","createDocumentMutation","useCreatePreOnboardingDocument","signDocumentMutation","useSignPreOnboardingDocument","acknowledgeRequirementMutation","useAcknowledgePreOnboardingRequirement","deleteAcknowledgeRequirementMutation","useRemoveAcknowledgePreOnboardingRequirement","createDocumentMutationAsync","mutationToPromise","signDocumentMutationAsync","acknowledgeRequirementMutationAsync","deleteAcknowledgeRequirementMutationAsync","onCreateDocument","requirementSlug","requirement","dependsOnName","existingDocumentId","result","newDocumentId","prev","onAcknowledgeRequirement","isBlocked","isLocked","isAckLocked","isPendingAcknowledgement","onSignDocument","signature","documentId","responnse","isRequirementLoading","PreOnboardingRequirements","render","bag"]}
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-4QJUNKBR.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-G2LZFGZA.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as g}from"react/jsx-runtime";function E({components:m,onSubmit:p,onSuccess:l,onError:c}){let{contractorOnboardingBag:r}=e(),d=i(async(t,P)=>{try{let n=await r.parseFormValues(t);await p?.(n);let o=await r.onSubmit(t);if(o?.data){await l?.(o?.data),r?.next();return}}catch(n){let o=a(n,r.meta?.fields?.pricing_plan,P);c?.(o)}},"handleSubmit"),u=r.stepState.values?.pricing_plan||r.initialValues.pricing_plan;return g(s,{components:m,defaultValues:u,onSubmit:d})}i(E,"PricingPlanStep");export{E as a};
2
- //# sourceMappingURL=chunk-UZBAOB4W.js.map
1
+ import{a as s}from"./chunk-FCY5FJMC.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-G2LZFGZA.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as g}from"react/jsx-runtime";function E({components:m,onSubmit:p,onSuccess:l,onError:c}){let{contractorOnboardingBag:r}=e(),d=i(async(t,P)=>{try{let n=await r.parseFormValues(t);await p?.(n);let o=await r.onSubmit(t);if(o?.data){await l?.(o?.data),r?.next();return}}catch(n){let o=a(n,r.meta?.fields?.pricing_plan,P);c?.(o)}},"handleSubmit"),u=r.stepState.values?.pricing_plan||r.initialValues.pricing_plan;return g(s,{components:m,defaultValues:u,onSubmit:d})}i(E,"PricingPlanStep");export{E as a};
2
+ //# sourceMappingURL=chunk-PGCS6HUO.js.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-X25ZOPO6.js";import{a as S}from"./chunk-FHYOWPXB.js";import{a as c}from"./chunk-QXW2MAFG.js";import{a as f}from"./chunk-NRGNFMIO.js";import{a as g}from"./chunk-TZGC6PWQ.js";import{a as m}from"./chunk-B7BJXPGT.js";import{a}from"./chunk-ZVNUZW4X.js";import{a as i}from"./chunk-G6F6ZZES.js";import{b as d}from"./chunk-RU5E42WN.js";import{a as n}from"./chunk-EI44AIUW.js";import{a as s}from"./chunk-GHHMGTM4.js";import{a as p}from"./chunk-BS2B4OOE.js";import{a as r}from"./chunk-PGWKJ6FK.js";import{a as t}from"./chunk-5LJ5IFXF.js";import{a as o}from"./chunk-P37U34EQ.js";import{useId as h,useState as A}from"react";import{jsx as E}from"react/jsx-runtime";var V=o(({employmentId:u,companyId:b,countryCode:v,type:O="employee",externalId:w,skipSteps:B,initialValues:I,render:C,options:P})=>{let D=h(),e=t({companyId:b,countryCode:v,employmentId:u,type:O,options:P,skipSteps:B,externalId:w,initialValues:I}),[R,y]=A({showReserveInvoice:!1,showInviteSuccessful:!1});return E(r.Provider,{value:{formId:D,onboardingBag:e,creditScore:R,setCreditScore:y},children:C({onboardingBag:e,components:{BasicInformationStep:n,EngagementAgreementDetailsStep:g,ContractDetailsStep:p,BenefitsStep:s,SubmitButton:i,SaveDraftButton:c,BackButton:m,OnboardingInvite:a,SelectCountryStep:f,ReviewStep:S,PreOnboardingRequirements:d,PreviewEmploymentAgreementStep:l}})})},"OnboardingFlow");export{V as a};
2
- //# sourceMappingURL=chunk-YYX3OX7N.js.map
1
+ import{a as l}from"./chunk-V557KUHJ.js";import{a as S}from"./chunk-FHYOWPXB.js";import{a as c}from"./chunk-QXW2MAFG.js";import{a as f}from"./chunk-HHFGG3RU.js";import{a as g}from"./chunk-YJFRQSTA.js";import{a as m}from"./chunk-B7BJXPGT.js";import{a}from"./chunk-3CJB74UF.js";import{a as i}from"./chunk-G6F6ZZES.js";import{b as d}from"./chunk-PFQB3V2U.js";import{a as n}from"./chunk-7NFCUTWO.js";import{a as s}from"./chunk-43NIG25S.js";import{a as p}from"./chunk-R744BZN2.js";import{a as r}from"./chunk-PGWKJ6FK.js";import{a as t}from"./chunk-YMBVMMUS.js";import{a as o}from"./chunk-P37U34EQ.js";import{useId as h,useState as A}from"react";import{jsx as E}from"react/jsx-runtime";var V=o(({employmentId:u,companyId:b,countryCode:v,type:O="employee",externalId:w,skipSteps:B,initialValues:I,render:C,options:P})=>{let D=h(),e=t({companyId:b,countryCode:v,employmentId:u,type:O,options:P,skipSteps:B,externalId:w,initialValues:I}),[R,y]=A({showReserveInvoice:!1,showInviteSuccessful:!1});return E(r.Provider,{value:{formId:D,onboardingBag:e,creditScore:R,setCreditScore:y},children:C({onboardingBag:e,components:{BasicInformationStep:n,EngagementAgreementDetailsStep:g,ContractDetailsStep:p,BenefitsStep:s,SubmitButton:i,SaveDraftButton:c,BackButton:m,OnboardingInvite:a,SelectCountryStep:f,ReviewStep:S,PreOnboardingRequirements:d,PreviewEmploymentAgreementStep:l}})})},"OnboardingFlow");export{V as a};
2
+ //# sourceMappingURL=chunk-PRXJRF7V.js.map
@@ -1,2 +1,2 @@
1
- import{a as n,c as i}from"./chunk-RFVHV6RE.js";import{n as e}from"./chunk-G2LZFGZA.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-ZF3JITFM.js.map
1
+ import{a as n,c as i}from"./chunk-J2L3CYIS.js";import{n as e}from"./chunk-G2LZFGZA.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-PSU2AEFU.js.map
@@ -0,0 +1,2 @@
1
+ var e={firstName:"John",lastName:"Doe",email:"john.doe@example.com",age:30,country:"US",subscribe:!0},_={annual_gross_salary:3e4*100,contract_duration_type:"indefinite",has_wage_portage_higher_degree:"yes"};export{e as a,_ as b};
2
+ //# sourceMappingURL=chunk-PYXLDOXH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/JsonSchemaPlayground/initialValues.ts"],"sourcesContent":["export const SIMPLE_USER_PROFILE_INITIAL_VALUES = {\n firstName: 'John',\n lastName: 'Doe',\n email: 'john.doe@example.com',\n age: 30,\n country: 'US',\n subscribe: true,\n};\n\nexport const SIMPLE_SALARY_TEST_INITIAL_VALUES = {\n annual_gross_salary: 30_000 * 100,\n contract_duration_type: 'indefinite',\n has_wage_portage_higher_degree: 'yes',\n};\n"],"mappings":"AAAO,IAAMA,EAAqC,CAChD,UAAW,OACX,SAAU,MACV,MAAO,uBACP,IAAK,GACL,QAAS,KACT,UAAW,EACb,EAEaC,EAAoC,CAC/C,oBAAqB,IAAS,IAC9B,uBAAwB,aACxB,+BAAgC,KAClC","names":["SIMPLE_USER_PROFILE_INITIAL_VALUES","SIMPLE_SALARY_TEST_INITIAL_VALUES"]}
@@ -0,0 +1,2 @@
1
+ import{a as n}from"./chunk-A2TY3VWL.js";import{a as l}from"./chunk-FG2DNTDR.js";import{a as m}from"./chunk-S4JJIDWH.js";import{a}from"./chunk-ZC47WDFG.js";import{a as i}from"./chunk-Z4Q2UO2Y.js";import{a as y}from"./chunk-WSRH5UQP.js";import{a as p}from"./chunk-HBOMEPXQ.js";import{a as t}from"./chunk-SS2SYDCB.js";import{a as e}from"./chunk-66DSJTDZ.js";import{a as r}from"./chunk-P37U34EQ.js";import{useId as u}from"react";import{jsx as E}from"react/jsx-runtime";var I=r(({employmentId:s,countryCode:d,jurisdiction:f,initialValues:P,options:b,render:g})=>{let c=u(),o=e({employmentId:s,countryCode:d,jurisdiction:f,initialValues:P,options:b});return E(t.Provider,{value:{formId:c,employeeBag:o},children:g({employeeBag:o,components:{PersonalDetailsStep:m,HomeAddressStep:l,BankAccountStep:p,FederalTaxesStep:n,StateTaxesStep:a,SubmitButton:i,BackButton:y}})})},"PayrollEmployeeOnboardingFlow");export{I as a};
2
+ //# sourceMappingURL=chunk-QO7Y6QRE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.tsx"],"sourcesContent":["import { useId } from 'react';\nimport { usePayrollEmployeeOnboarding } from '@/src/flows/PayrollEmployeeOnboarding/hooks';\nimport { PayrollEmployeeOnboardingContext } from '@/src/flows/PayrollEmployeeOnboarding/context';\nimport type { PayrollEmployeeOnboardingFlowProps } from '@/src/flows/PayrollEmployeeOnboarding/types';\nimport { PersonalDetailsStep } from '@/src/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep';\nimport { HomeAddressStep } from '@/src/flows/PayrollEmployeeOnboarding/components/HomeAddressStep';\nimport { BankAccountStep } from '@/src/flows/PayrollEmployeeOnboarding/components/BankAccountStep';\nimport { FederalTaxesStep } from '@/src/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep';\nimport { StateTaxesStep } from '@/src/flows/PayrollEmployeeOnboarding/components/StateTaxesStep';\nimport { SubmitButton } from '@/src/flows/PayrollEmployeeOnboarding/components/SubmitButton';\nimport { BackButton } from '@/src/flows/PayrollEmployeeOnboarding/components/BackButton';\n\nexport const PayrollEmployeeOnboardingFlow = ({\n employmentId,\n countryCode,\n jurisdiction,\n initialValues,\n options,\n render,\n}: PayrollEmployeeOnboardingFlowProps) => {\n const formId = useId();\n const employeeBag = usePayrollEmployeeOnboarding({\n employmentId,\n countryCode,\n jurisdiction,\n initialValues,\n options,\n });\n\n return (\n <PayrollEmployeeOnboardingContext.Provider value={{ formId, employeeBag }}>\n {render({\n employeeBag,\n components: {\n PersonalDetailsStep,\n HomeAddressStep,\n BankAccountStep,\n FederalTaxesStep,\n StateTaxesStep,\n SubmitButton,\n BackButton,\n },\n })}\n </PayrollEmployeeOnboardingContext.Provider>\n );\n};\n"],"mappings":"2YAAA,OAAS,SAAAA,MAAa,QA8BlB,cAAAC,MAAA,oBAlBG,IAAMC,EAAgCC,EAAA,CAAC,CAC5C,aAAAC,EACA,YAAAC,EACA,aAAAC,EACA,cAAAC,EACA,QAAAC,EACA,OAAAC,CACF,IAA0C,CACxC,IAAMC,EAASC,EAAM,EACfC,EAAcC,EAA6B,CAC/C,aAAAT,EACA,YAAAC,EACA,aAAAC,EACA,cAAAC,EACA,QAAAC,CACF,CAAC,EAED,OACEP,EAACa,EAAiC,SAAjC,CAA0C,MAAO,CAAE,OAAAJ,EAAQ,YAAAE,CAAY,EACrE,SAAAH,EAAO,CACN,YAAAG,EACA,WAAY,CACV,oBAAAG,EACA,gBAAAC,EACA,gBAAAC,EACA,iBAAAC,EACA,eAAAC,EACA,aAAAC,EACA,WAAAC,CACF,CACF,CAAC,EACH,CAEJ,EAjC6C","names":["useId","jsx","PayrollEmployeeOnboardingFlow","__name","employmentId","countryCode","jurisdiction","initialValues","options","render","formId","useId","employeeBag","usePayrollEmployeeOnboarding","PayrollEmployeeOnboardingContext","PersonalDetailsStep","HomeAddressStep","BankAccountStep","FederalTaxesStep","StateTaxesStep","SubmitButton","BackButton"]}
@@ -0,0 +1,2 @@
1
+ var e={additionalProperties:!1,properties:{country_code:{title:"Country",description:"",type:"string",oneOf:[],"x-jsf-presentation":{inputType:"select"}}},required:["country_code"],type:"object","x-jsf-order":["country_code"]};export{e as a};
2
+ //# sourceMappingURL=chunk-QQPF2DUF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/PayrollAdminOnboarding/json-schemas/selectCountryStep.ts"],"sourcesContent":["export const gpSelectCountrySchema = {\n additionalProperties: false,\n properties: {\n country_code: {\n title: 'Country',\n description: '',\n type: 'string',\n oneOf: [] as Array<{ const: string; title: string }>,\n 'x-jsf-presentation': { inputType: 'select' },\n },\n },\n required: ['country_code'],\n type: 'object',\n 'x-jsf-order': ['country_code'],\n};\n"],"mappings":"AAAO,IAAMA,EAAwB,CACnC,qBAAsB,GACtB,WAAY,CACV,aAAc,CACZ,MAAO,UACP,YAAa,GACb,KAAM,SACN,MAAO,CAAC,EACR,qBAAsB,CAAE,UAAW,QAAS,CAC9C,CACF,EACA,SAAU,CAAC,cAAc,EACzB,KAAM,SACN,cAAe,CAAC,cAAc,CAChC","names":["gpSelectCountrySchema"]}
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-L3ZVE4JS.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as n}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function S({onSubmit:d,onError:a,onSuccess:m}){let{onboardingBag:r}=s(),c=t(async i=>{try{let e=await r.parseFormValues(i);await d?.(e);let o=await r.onSubmit(i);if(o?.data){await m?.(o.data),r?.next();return}if(o?.error){let p=n(o?.fieldErrors||[],r.meta?.fields?.contract_details);a?.({error:o.error,rawError:o.rawError,fieldErrors:p})}}catch(e){a?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit");return E(l,{defaultValues:r.stepState.values?.contract_details||r.initialValues.contract_details,onSubmit:c})}t(S,"ContractDetailsStep");export{S as a};
2
- //# sourceMappingURL=chunk-BS2B4OOE.js.map
1
+ import{a as l}from"./chunk-D4XBTJOV.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as n}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function S({onSubmit:d,onError:a,onSuccess:m}){let{onboardingBag:r}=s(),c=t(async i=>{try{let e=await r.parseFormValues(i);await d?.(e);let o=await r.onSubmit(i);if(o?.data){await m?.(o.data),r?.next();return}if(o?.error){let p=n(o?.fieldErrors||[],r.meta?.fields?.contract_details);a?.({error:o.error,rawError:o.rawError,fieldErrors:p})}}catch(e){a?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit");return E(l,{defaultValues:r.stepState.values?.contract_details||r.initialValues.contract_details,onSubmit:c})}t(S,"ContractDetailsStep");export{S as a};
2
+ //# sourceMappingURL=chunk-R744BZN2.js.map
@@ -1,2 +1,2 @@
1
- import{a as P,b as k,c as N}from"./chunk-3B6BHFDV.js";import{a as C}from"./chunk-OPDKYPYM.js";import{a as u,b as F}from"./chunk-T5J2Z6ZR.js";import{j as v,k as x,l as b,n as D,o as w}from"./chunk-Y3CJRZLA.js";import{n as a}from"./chunk-G2LZFGZA.js";import{a as n}from"./chunk-P37U34EQ.js";import{CalendarIcon as T}from"lucide-react";import{format as Y}from"date-fns";import{ChevronLeft as O,ChevronRight as V}from"lucide-react";import{DayPicker as B}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function R({className:t,classNames:m,showOutsideDays:c=!0,...r}){return p(B,{showOutsideDays:c,className:a("p-3",t),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:a(u({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:a("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:a(u({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...m},components:{IconLeft:n(({className:l,...o})=>p(O,{className:a("size-4",l),...o}),"IconLeft"),IconRight:n(({className:l,...o})=>p(V,{className:a("size-4",l),...o}),"IconRight")},...r})}n(R,"Calendar");import{useState as $}from"react";import{Fragment as E,jsx as e,jsxs as f}from"react/jsx-runtime";function re({field:t,fieldData:m,fieldState:c}){let{name:r,label:l,description:o,minDate:g,maxDate:y}=m,d=g?new Date(g):void 0,i=y?new Date(y):void 0,[M,_]=$(!1),I=new Date().getFullYear(),h=d?d.getFullYear():1900,L=Math.max(h,i?i.getFullYear():I+10);return f(v,{"data-field":r,className:`flex flex-col RemoteFlows__DatePickerField__Item__${r}`,children:[e(x,{className:"RemoteFlows__DatePickerField__Label",children:l}),f(P,{open:M,onOpenChange:_,children:[e(k,{asChild:!0,children:e(b,{children:e("div",{children:f(F,{type:"button",variant:"outline",className:a("w-full pl-3 text-left font-normal",!t.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${r}`,children:[t.value&&e(E,{children:Y(t.value,"yyyy-MM-dd")}),e(T,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(N,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(R,{mode:"single",captionLayout:"dropdown",fromYear:h,toYear:L,className:"RemoteFlows__DatepickerField__Calendar",selected:t.value?new Date(t.value):void 0,onDayClick:s=>{let z=Y(s,"yyyy-MM-dd");t.onChange(z),_(!1)},defaultMonth:t.value?new Date(t.value):i??d,disabled:s=>!!(d&&s<d||i&&s>i)})})]}),o?e(D,{helpCenter:e(C,{helpCenter:m.meta?.helpCenter}),children:o}):null,c.error&&e(w,{className:"RemoteFlows__DatePickerField__Error"})]})}n(re,"DatePickerFieldDefault");export{re as a};
2
- //# sourceMappingURL=chunk-DAFIBCX4.js.map
1
+ import{a as P,b as k,c as N}from"./chunk-3B6BHFDV.js";import{a as C}from"./chunk-DSGQZDY6.js";import{a as u,b as F}from"./chunk-T5J2Z6ZR.js";import{j as v,k as x,l as b,n as D,o as w}from"./chunk-Y3CJRZLA.js";import{n as a}from"./chunk-G2LZFGZA.js";import{a as n}from"./chunk-P37U34EQ.js";import{CalendarIcon as T}from"lucide-react";import{format as Y}from"date-fns";import{ChevronLeft as O,ChevronRight as V}from"lucide-react";import{DayPicker as B}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function R({className:t,classNames:m,showOutsideDays:c=!0,...r}){return p(B,{showOutsideDays:c,className:a("p-3",t),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:a(u({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:a("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:a(u({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...m},components:{IconLeft:n(({className:l,...o})=>p(O,{className:a("size-4",l),...o}),"IconLeft"),IconRight:n(({className:l,...o})=>p(V,{className:a("size-4",l),...o}),"IconRight")},...r})}n(R,"Calendar");import{useState as $}from"react";import{Fragment as E,jsx as e,jsxs as f}from"react/jsx-runtime";function re({field:t,fieldData:m,fieldState:c}){let{name:r,label:l,description:o,minDate:g,maxDate:y}=m,d=g?new Date(g):void 0,i=y?new Date(y):void 0,[M,_]=$(!1),I=new Date().getFullYear(),h=d?d.getFullYear():1900,L=Math.max(h,i?i.getFullYear():I+10);return f(v,{"data-field":r,className:`flex flex-col RemoteFlows__DatePickerField__Item__${r}`,children:[e(x,{className:"RemoteFlows__DatePickerField__Label",children:l}),f(P,{open:M,onOpenChange:_,children:[e(k,{asChild:!0,children:e(b,{children:e("div",{children:f(F,{type:"button",variant:"outline",className:a("w-full pl-3 text-left font-normal",!t.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${r}`,children:[t.value&&e(E,{children:Y(t.value,"yyyy-MM-dd")}),e(T,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(N,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(R,{mode:"single",captionLayout:"dropdown",fromYear:h,toYear:L,className:"RemoteFlows__DatepickerField__Calendar",selected:t.value?new Date(t.value):void 0,onDayClick:s=>{let z=Y(s,"yyyy-MM-dd");t.onChange(z),_(!1)},defaultMonth:t.value?new Date(t.value):i??d,disabled:s=>!!(d&&s<d||i&&s>i)})})]}),o?e(D,{helpCenter:e(C,{helpCenter:m.meta?.helpCenter}),children:o}):null,c.error&&e(w,{className:"RemoteFlows__DatePickerField__Error"})]})}n(re,"DatePickerFieldDefault");export{re as a};
2
+ //# sourceMappingURL=chunk-RFEF2B5D.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-4KKA35AX.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function d({onSubmit:m}){let{terminationBag:o}=a(),r=i(async t=>{let n=await o?.parseFormValues(t);await m?.(n),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:r})}i(d,"PaidTimeOffForm");export{d as a};
2
- //# sourceMappingURL=chunk-O4CLVNOP.js.map
1
+ import{a as e}from"./chunk-MC6VR4AZ.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function d({onSubmit:m}){let{terminationBag:o}=a(),r=i(async t=>{let n=await o?.parseFormValues(t);await m?.(n),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:r})}i(d,"PaidTimeOffForm");export{d as a};
2
+ //# sourceMappingURL=chunk-RJXRGUNB.js.map
@@ -1,2 +1,2 @@
1
- import{c as e}from"./chunk-RFVHV6RE.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as o,jsxs as t}from"react/jsx-runtime";var a=n(({involuntaryOffboardingServiceChargeZendeskId:r,reconciliationInvoiceZendeskId:i})=>t("p",{className:"RemoteFlows__AcknowledgeInformationFees text-xs text-[#71717A]",children:["You'll receive an"," ",o(e,{zendeskId:r,className:"align-baseline",children:"involuntary offboarding service charge \u2197"})," ","on your"," ",o(e,{zendeskId:i,children:"reconciliation invoice \u2197"})]}),"AcknowledgeInformationFees");export{a};
2
- //# sourceMappingURL=chunk-3QSHWQS3.js.map
1
+ import{c as e}from"./chunk-J2L3CYIS.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as o,jsxs as t}from"react/jsx-runtime";var a=n(({involuntaryOffboardingServiceChargeZendeskId:r,reconciliationInvoiceZendeskId:i})=>t("p",{className:"RemoteFlows__AcknowledgeInformationFees text-xs text-[#71717A]",children:["You'll receive an"," ",o(e,{zendeskId:r,className:"align-baseline",children:"involuntary offboarding service charge \u2197"})," ","on your"," ",o(e,{zendeskId:i,children:"reconciliation invoice \u2197"})]}),"AcknowledgeInformationFees");export{a};
2
+ //# sourceMappingURL=chunk-RKRYZZ3R.js.map
@@ -1,2 +1,2 @@
1
- import{b as y}from"./chunk-Q3ALCPJN.js";import{d as p,e as v}from"./chunk-ARNYUYFG.js";import{b as n,w as u}from"./chunk-G2LZFGZA.js";import{b as l}from"./chunk-H2O4CVKF.js";import{a as r}from"./chunk-P37U34EQ.js";import O from"lodash.omit";import{jsx as C}from"react/jsx-runtime";function T({onSubmit:f,onSuccess:i,onError:s,render:w,...o}){let{components:E}=l(),{contractorOnboardingBag:e}=y(),a=p(),m=v(),{mutateAsyncOrThrow:g}=n(a),{mutateAsyncOrThrow:I}=n(m),c=e.employment?.contractor_type==="cor"&&!e.isEmploymentReadOnly,R=r(async()=>{try{if(await f?.(),c&&e.employmentId){let t=await I({employment_slug:e.employmentId});if(t?.data){await i?.({data:t,employmentStatus:"created_awaiting_reserve"}),e.refetchEmployment();return}}else if(e.employmentId){let t=await g({employment_id:e.employmentId});t&&(await i?.({data:t,employmentStatus:"invited"}),e.refetchEmployment())}}catch(t){u(t)?s?.(O(t,"response")):s?.({error:t,rawError:t,fieldErrors:[]})}},"handleSubmit"),d=E?.button;if(!d)throw new Error("Button component not found");let b=a.isPending||m.isPending||!e.canInvite||o.disabled;return C(d,{...o,disabled:b,onClick:t=>{R(),o.onClick?.(t)},children:w({status:c?"create_reserve":"invite"})})}r(T,"OnboardingInvite");export{T as a};
2
- //# sourceMappingURL=chunk-SRGB5JQU.js.map
1
+ import{b as y}from"./chunk-Q3ALCPJN.js";import{d as p,e as v}from"./chunk-ZT4OC3OB.js";import{b as n,w as u}from"./chunk-G2LZFGZA.js";import{b as l}from"./chunk-H2O4CVKF.js";import{a as r}from"./chunk-P37U34EQ.js";import O from"lodash.omit";import{jsx as C}from"react/jsx-runtime";function T({onSubmit:f,onSuccess:i,onError:s,render:w,...o}){let{components:E}=l(),{contractorOnboardingBag:e}=y(),a=p(),m=v(),{mutateAsyncOrThrow:g}=n(a),{mutateAsyncOrThrow:I}=n(m),c=e.employment?.contractor_type==="cor"&&!e.isEmploymentReadOnly,R=r(async()=>{try{if(await f?.(),c&&e.employmentId){let t=await I({employment_slug:e.employmentId});if(t?.data){await i?.({data:t,employmentStatus:"created_awaiting_reserve"}),e.refetchEmployment();return}}else if(e.employmentId){let t=await g({employment_id:e.employmentId});t&&(await i?.({data:t,employmentStatus:"invited"}),e.refetchEmployment())}}catch(t){u(t)?s?.(O(t,"response")):s?.({error:t,rawError:t,fieldErrors:[]})}},"handleSubmit"),d=E?.button;if(!d)throw new Error("Button component not found");let b=a.isPending||m.isPending||!e.canInvite||o.disabled;return C(d,{...o,disabled:b,onClick:t=>{R(),o.onClick?.(t)},children:w({status:c?"create_reserve":"invite"})})}r(T,"OnboardingInvite");export{T as a};
2
+ //# sourceMappingURL=chunk-RYUBFXSX.js.map
@@ -0,0 +1,2 @@
1
+ import{a as l}from"./chunk-YWLRVUE3.js";import{a}from"./chunk-KTPIKOUV.js";import{b as t}from"./chunk-SS2SYDCB.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function u(n){let{employeeBag:e}=t(),r=a(n);return s(l,{onSubmit:r,defaultValues:{...e.initialValues?.personal_details,...e.stepState.values?.personal_details}})}o(u,"PersonalDetailsStep");export{u as a};
2
+ //# sourceMappingURL=chunk-S4JJIDWH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.tsx"],"sourcesContent":["import { usePayrollEmployeeOnboardingContext } from '@/src/flows/PayrollEmployeeOnboarding/context';\nimport { PayrollEmployeeForm } from '@/src/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm';\nimport { useEmployeeStepSubmitHandler } from '@/src/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler';\nimport type { GPStepCallbacks } from '@/src/flows/types';\n\nexport function PersonalDetailsStep(props: GPStepCallbacks) {\n const { employeeBag } = usePayrollEmployeeOnboardingContext();\n const handleSubmit = useEmployeeStepSubmitHandler(props);\n\n return (\n <PayrollEmployeeForm\n onSubmit={handleSubmit}\n defaultValues={{\n ...(employeeBag.initialValues?.personal_details as Record<\n string,\n unknown\n >),\n ...(employeeBag.stepState.values?.personal_details as Record<\n string,\n unknown\n >),\n }}\n />\n );\n}\n"],"mappings":"2JAUI,cAAAA,MAAA,oBALG,SAASC,EAAoBC,EAAwB,CAC1D,GAAM,CAAE,YAAAC,CAAY,EAAIC,EAAoC,EACtDC,EAAeC,EAA6BJ,CAAK,EAEvD,OACEF,EAACO,EAAA,CACC,SAAUF,EACV,cAAe,CACb,GAAIF,EAAY,eAAe,iBAI/B,GAAIA,EAAY,UAAU,QAAQ,gBAIpC,EACF,CAEJ,CAnBgBK,EAAAP,EAAA","names":["jsx","PersonalDetailsStep","props","employeeBag","usePayrollEmployeeOnboardingContext","handleSubmit","useEmployeeStepSubmitHandler","PayrollEmployeeForm","__name"]}
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-TC7EQZJK.js";import{a as m}from"./chunk-NX7MM6XR.js";import{a as e}from"./chunk-ZXGAFQXW.js";import{a as i}from"./chunk-LMYJ6V44.js";var p={employee_communication:o,termination_details:e,paid_time_off:m,additional_information:i};export{p as a};
2
+ //# sourceMappingURL=chunk-SC7YWKOW.js.map
@@ -0,0 +1,2 @@
1
+ import{a as te}from"./chunk-BFXBFGBH.js";import{a as ne}from"./chunk-AP56UUME.js";import{a as ee}from"./chunk-IJCTN52C.js";import{e as M}from"./chunk-E2463GRM.js";import{a as I,b as oe,c as P,d as h,f as _,m as re}from"./chunk-PB6UQ4A4.js";import{a as X}from"./chunk-WVJDCDGZ.js";import{a as Z}from"./chunk-MKO33XZ5.js";import{a as b}from"./chunk-BIL7ERK6.js";import{J as v,Q as J,_ as K,ba as N,da as k,f as w,ga as G,h as Q,ha as $,ia as B,ja as W,la as H,na as Y,oa as z,s as A,u as L,v as U,y as j}from"./chunk-AS7SJDU5.js";import{b as O,g as E,t as V}from"./chunk-G2LZFGZA.js";import{e as a}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useMemo as le}from"react";import{useMutation as g,useQuery as d}from"@tanstack/react-query";import{useMutation as ge,useQuery as ie}from"@tanstack/react-query";var we=n(()=>{let{client:e}=a();return ge({mutationFn:n(t=>k({client:e,body:t,headers:{Authorization:""}}),"mutationFn")})},"useUploadFile"),se=n(e=>{let{client:t}=a();return ie({queryKey:["download-file",e],queryFn:n(async()=>{let o=await v({client:t,path:{id:e}});if(o.error)throw o.error;return o.data},"queryFn"),select:n(({data:o})=>o?.file,"select"),enabled:!!e})},"useDownloadFile"),ae=n((e,t,o)=>{let{client:r}=a();return ie({queryKey:["employment-files",e],queryFn:n(async()=>{let i=await N({client:r,path:{employment_id:e},query:t});if(i.error)throw i.error;return i.data},"queryFn"),...o})},"useEmploymentFiles");import{useQuery as Se}from"@tanstack/react-query";import{useQuery as Fe}from"@tanstack/react-query";var q=n(()=>{let{client:e}=a();return Fe({queryKey:["identity"],queryFn:n(()=>$({client:e,headers:{Authorization:""}}),"queryFn"),select:n(t=>t.data?.data,"select")})},"useIdentity");function R(e){return e!=null&&"company"in e}n(R,"hasCompany");var ce=n((e={enabled:!0})=>{let{data:t}=q(),o=R(t)?t?.company?.id??"":"",{client:r}=a();return Se({queryKey:["pricing-plans",o],queryFn:n(()=>w({client:r,path:{company_id:o}}),"queryFn"),select:n(i=>i.data?.data?.pricing_plans,"select"),enabled:!!e?.enabled&&!!o})},"useCompanyPricingPlans");var he=n(({employmentId:e,options:t})=>{let{client:o}=a();return d({queryKey:["contractor-currencies",e],queryFn:n(async()=>j({client:o,path:{employment_id:e},query:{restrict_to_guaranteed_pay_out_currencies:!1}}),"queryFn"),enabled:t?.queryOptions?.enabled,select:n(({data:r})=>r?.data,"select")})},"useContractorCurrencies"),qt=n(({fieldValues:e,options:t})=>d({queryKey:["contract-document-signature",e.review_completed,t?.jsfModify],queryFn:n(async()=>b(ee,e,{jsfModify:t?.jsfModify}),"queryFn"),enabled:t?.queryOptions?.enabled}),"useGetContractDocumentSignatureSchema"),Ot=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t,contractDocumentId:o,payload:r})=>G({client:e,body:r,path:{employment_id:t,contract_document_id:o}}),"mutationFn")})},"useSignContractDocument"),_e=n(({employmentId:e,contractDocumentId:t,options:o})=>{let{client:r}=a();return d({queryKey:["contract-document",e,t],queryFn:n(async()=>L({client:r,path:{employment_id:e,id:t}}),"queryFn"),enabled:o?.queryOptions?.enabled,select:n(({data:i})=>({...i?.data,contract_document:{...i?.data?.contract_document,content:V(i?.data?.contract_document?.content)}}),"select")})},"useGetShowContractDocument"),Et=n(({employmentId:e,contractDocumentId:t,options:o})=>{let{data:r}=_e({employmentId:e,contractDocumentId:t,options:{queryOptions:{enabled:o?.queryOptions?.enabled}}});return{hasCompanySignedContract:r?.contract_document?.signatories?.some(s=>s.type==="company"&&s.status==="signed")}},"useHasCompanySignedContract"),qe=n(({employmentId:e,options:t})=>{let{client:o}=a();return d({queryKey:["contractor-subscriptions",e],queryFn:n(async()=>A({client:o,path:{employment_id:e}}),"queryFn"),enabled:t?.queryOptions?.enabled,select:n(({data:r})=>r?.data,"select")})},"useGetContractorSubscriptions"),It=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t,payload:o})=>W({client:e,body:o,path:{employment_id:t}}),"mutationFn")})},"usePostManageContractorSubscriptions"),Pt=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t,payload:o})=>K({client:e,body:o,path:{employment_id:t}}),"mutationFn")})},"useCreateContractorContractDocument"),Oe=n(({countryCode:e,employmentId:t,fieldValues:o,options:r})=>{let{client:i}=a();return d({queryKey:["contractor-onboarding-details-schema",e,t],retry:!1,queryFn:n(async()=>Q({client:i,path:{country_code:e},query:{json_schema_version:1,employment_id:t}}),"queryFn"),enabled:r?.queryOptions?.enabled,select:n(({data:s})=>{let c=s?.data?.schema||{};return b(c,o,r)},"select")})},"useContractorOnboardingDetailsSchema"),Ee={[I]:"Contractor Management",[oe]:"Contractor Management Plus",[P]:"Contractor of Record"},Ie=n(e=>{let{data:t,isLoading:o}=ce({enabled:e?.enabled}),r=t?.find(s=>s.product.name==="EOR Monthly");return{eorSubscription:r?{product:{identifier:h,short_name:"EOR"},currency:r.price.currency,price:{amount:E(r.price.amount)},features:["Contract between Remote and employee","Remote manages onboarding, payroll, and compliance","Manages taxes, benefits, and time-off tracking","Handles contracts, transfers, and terminations"],description:"Enables hiring in countries without a local entity",label:"Employer of Record",value:h}:null,isLoading:o}},"useEorSubscription"),Pe=n((e,t,o)=>(t&&M(h,o)&&e.push({label:t.label,value:t.value,description:t.description,meta:{features:t.features,price:{amount:t.price.amount,currencyCode:t.currency?.code??""}},disabled:!1}),e),"addEorToFieldOptions"),Mt=n((e,t,o)=>{let{data:r,isLoading:i,refetch:s}=qe({employmentId:e,options:{queryOptions:o?.queryOptions}}),c=le(()=>r?.filter(u=>M(u.product.identifier??"",o?.excludeProducts))??[],[r,o?.excludeProducts]),F=r?r?.length<3:!1,m=r?.find(u=>u.product.identifier===P)?.eligibility_questionnaire?.is_blocking,f=(F||m)&&t?.eor_onboarding&&!o?.excludeProducts?.includes("eor"),{eorSubscription:T,isLoading:ue}=Ie({enabled:f}),de=c.length>0||f&&T!==null,x=b(ne.data.schema,{},{...o,jsfModify:{...o?.jsfModify,required:de?o?.jsfModify?.required:u=>u.filter(C=>C!=="subscription")}}),D=x.fields.find(u=>u.name==="subscription");if(D){let u=c.map(S=>{let l=S.product,me=S.price.amount,pe=S.currency.code,ye=Ee[l.identifier]??"",fe=l.identifier??"",Ce=l.description??"";l.description||console.error(`[Data Integrity] Missing description for product: ${l.identifier}`,{product:l});let be={features:l.features??re[l.identifier]??[],price:{amount:E(me),currencyCode:pe}};return{label:ye,value:fe,description:Ce,meta:be,disabled:m&&l.identifier!==I}});u.sort((S,l)=>S.label.localeCompare(l.label));let C=[];f&&(Pe(C,T,o?.excludeProducts),C.length>0&&(C[0].meta={...C[0].meta,groupSeparator:{show:!0}})),D.options=[...u,...C]}return{isLoading:i||ue,form:x,contractorSubscriptions:r,filteredContractorSubscriptions:c,refetch:s,isEligibilityQuestionnaireBlocked:m}},"useContractorSubscriptionSchemaField"),Rt=n((e,t,o)=>{let{mutateAsyncOrThrow:r}=O(t),{mutateAsyncOrThrow:i}=O(e);return{mutateAsync:n(async({employmentId:s})=>{let{nationality_status:c,ir35:p,ir35_sds_file:F}=o,y={contract_document:{ir_35:p}},m={contract_document:{nationality:c}};return p?(await i({employmentId:s,payload:y}),F?r({employment_id:s,file:F,sub_type:_}):Promise.resolve()):c?i({employmentId:s,payload:m}):Promise.resolve()},"mutateAsync")}},"useUpdateUKandSaudiFields"),Tt=n((e,t)=>{let{data:o,isLoading:r}=ae(e,{sub_type:_},{...t,select:n(({data:c})=>c?.files?.filter(p=>p.sub_type===_),"select")}),i=o?.[0]?.id,s=se(i);return{...s,isLoading:r||s.isLoading}},"useGetIR35File"),xt=n((e,t)=>{let{client:o}=a();return d({queryKey:["contract-documents",e],queryFn:n(async()=>U({client:o,path:{employment_id:e}}),"queryFn"),enabled:t?.enabled,select:n(({data:r})=>r?.data?.contract_documents,"select")})},"useGetContractDocuments"),Dt=n(({options:e,fieldValues:t})=>{let{client:o}=a();return d({queryKey:["eligibility-questionnaire"],queryFn:n(async()=>{let r=await B({client:o,query:{type:"contractor_of_record",json_schema_version:1}});if(r.error)throw new Error("Failed to fetch eligibility questionnaire");return r.data.data},"queryFn"),select:n(r=>{let i=r?.schema||{};return b(i,t,{jsfModify:e?.jsfModify})},"select"),enabled:e?.queryOptions?.enabled})},"useGetEligibilityQuestionnaire"),Vt=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t,payload:o})=>J({client:e,body:{employment_slug:t,responses:o,type:"contractor_of_record"},query:{json_schema_version:1}}),"mutationFn")})},"usePostCreateEligibilityQuestionnaire"),wt=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t})=>z({client:e,path:{employment_id:t}}),"mutationFn")})},"usePostManageContractorCorSubscription"),Qt=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t})=>Y({client:e,path:{employment_id:t}}),"mutationFn")})},"useDeleteContractorCorSubscription"),At=n(()=>{let{client:e}=a();return g({mutationFn:n(async({employmentId:t,contractOrigin:o,templateType:r})=>e.post({url:"/v1/employments/{employment_id}/contract-origin",path:{employment_id:t},body:{contract_origin:o,template_type:r},security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}]}),"mutationFn")})},"useSetContractOrigin"),Lt=n(({fieldValues:e,options:t})=>d({queryKey:["contract-origin-schema",t?.jsfModify],queryFn:n(async()=>b(te,e,{jsfModify:t?.jsfModify}),"queryFn"),enabled:t?.queryOptions?.enabled}),"useGetContractOriginSchema"),Ut=n(e=>{let{client:t}=a(),{data:o,isLoading:r}=d({...Z(t,"contractor-onboarding-countries"),select:n(s=>s.data?.data?.map(c=>({label:c.name,value:c.code,eor_onboarding:c.eor_onboarding,contractor_products_available:c.contractor_products_available}))||[],"select"),enabled:e?.queryOptions?.enabled}),i=b(X.data.schema,{},e);if(o){let s=i.fields.find(c=>c.name==="country");s&&(s.options=o)}return{isLoading:r,selectCountryForm:i,countries:o}},"useCountriesSchemaField"),jt=n(({countryCode:e,employmentId:t,fieldValues:o,options:r})=>{let i=Oe({countryCode:e,employmentId:t,fieldValues:o,options:r}),{data:s,isLoading:c}=he({employmentId:t,options:{queryOptions:{enabled:r?.queryOptions?.enabled}}}),p=le(()=>!i.data||!s?i.data:{...i.data,fields:i.data.fields.map(y=>y.name!=="payment_terms"?y:{...y,fields:y.fields?.map(m=>m.name!=="compensation_currency_code"?m:{...m,options:s.map(f=>({label:f.code,value:f.code,meta:{source:f.source}}))})})},[i.data,s]);return{...i,data:p,isLoading:i.isLoading||c}},"useContractorOnboardingDetailsSchemaWithCurrencies"),vt=n(({options:e}={})=>{let{data:t}=q(),o=R(t)?t?.company?.id??"":"",{client:r}=a();return d({queryKey:["company-open-tasks",o],queryFn:n(()=>H({client:r,path:{company_id:o}}),"queryFn"),select:n(({data:i})=>i?.data?.actions??[],"select"),enabled:(e?.queryOptions?.enabled??!0)&&!!o})},"useCompanyOpenTasks");export{we as a,q as b,R as c,qt as d,Ot as e,_e as f,Et as g,qe as h,It as i,Pt as j,Ee as k,Mt as l,Rt as m,Tt as n,xt as o,Dt as p,Vt as q,wt as r,Qt as s,At as t,Lt as u,Ut as v,jt as w,vt as x};
2
+ //# sourceMappingURL=chunk-SQCTVURR.js.map