@remoteoss/remote-flows 1.49.0 → 1.50.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 (606) hide show
  1. package/README.md +1 -0
  2. package/dist/CheckboxFieldDefault-JOUZXB4Y.js +2 -0
  3. package/dist/CountryFieldDefault-IZQOFNX5.js +2 -0
  4. package/dist/DatePickerFieldDefault-AWV7LUPI.js +2 -0
  5. package/dist/FileUploadFieldDefault-NZ33IMPU.js +2 -0
  6. package/dist/ForcedValueFieldDefault-RY5AN7O6.js +2 -0
  7. package/dist/MultiSelectFieldDefault-DOZQUBEE.js +2 -0
  8. package/dist/RadioGroupFieldDefault-GFDO56LK.js +2 -0
  9. package/dist/SelectFieldDefault-E4KFZBJ7.js +2 -0
  10. package/dist/TelFieldDefault-2EPAKDTW.js +2 -0
  11. package/dist/TextAreaFieldDefault-WZIVM4RZ.js +2 -0
  12. package/dist/TextFieldDefault-YVXZO4AN.js +2 -0
  13. package/dist/TimeFieldDefault-JN4MDIO6.js +2 -0
  14. package/dist/chunk-25MUO3XP.js +2 -0
  15. package/dist/chunk-25MUO3XP.js.map +1 -0
  16. package/dist/{chunk-X7HD2YL7.js → chunk-2UH6Y56R.js} +2 -2
  17. package/dist/{chunk-TZRUHUW5.js → chunk-3G4HOZCM.js} +2 -2
  18. package/dist/{chunk-OUUH3EQY.js → chunk-3OKB5OHA.js} +2 -2
  19. package/dist/{chunk-PRFHWAQZ.js → chunk-46BOEYFO.js} +2 -2
  20. package/dist/{chunk-J5BG6GTH.js → chunk-4CNDASPA.js} +2 -2
  21. package/dist/{chunk-QSF4XFSV.js → chunk-4IGLIHGF.js} +2 -2
  22. package/dist/{chunk-36GVXD2Z.js → chunk-4WSYC3Q5.js} +2 -2
  23. package/dist/{chunk-7GO4BHOI.js → chunk-53QBSOMG.js} +2 -2
  24. package/dist/{chunk-YLSASLPB.js → chunk-5HDMU73I.js} +2 -2
  25. package/dist/{chunk-JQ3SLOUP.js → chunk-5JXLXWTD.js} +2 -2
  26. package/dist/{chunk-F3UUYQGY.js → chunk-5PUW4YCY.js} +2 -2
  27. package/dist/chunk-5YI7MY5T.js +2 -0
  28. package/dist/chunk-5YI7MY5T.js.map +1 -0
  29. package/dist/{chunk-6IQJJCQ3.js → chunk-6CBC5OAQ.js} +2 -2
  30. package/dist/{chunk-JKHJR6HK.js → chunk-753FEV2S.js} +2 -2
  31. package/dist/{chunk-JKHJR6HK.js.map → chunk-753FEV2S.js.map} +1 -1
  32. package/dist/{chunk-IF42CZJH.js → chunk-77AA65OH.js} +2 -2
  33. package/dist/{chunk-IF42CZJH.js.map → chunk-77AA65OH.js.map} +1 -1
  34. package/dist/{chunk-ZXGAFQXW.js → chunk-7B3ATY3M.js} +2 -2
  35. package/dist/{chunk-ZXGAFQXW.js.map → chunk-7B3ATY3M.js.map} +1 -1
  36. package/dist/{chunk-GKSG4TTI.js → chunk-7FKNXW2I.js} +2 -2
  37. package/dist/{chunk-6WO4PRGN.js → chunk-AAXPKULB.js} +2 -2
  38. package/dist/chunk-AXZ4IDY7.js +2 -0
  39. package/dist/chunk-AXZ4IDY7.js.map +1 -0
  40. package/dist/{chunk-FDTOQHOJ.js → chunk-BB3M25A3.js} +2 -2
  41. package/dist/chunk-BHHK7QQZ.js +2 -0
  42. package/dist/chunk-BHHK7QQZ.js.map +1 -0
  43. package/dist/{chunk-VQVE3QA2.js → chunk-BLKWR77C.js} +2 -2
  44. package/dist/chunk-BTCC6PNG.js +2 -0
  45. package/dist/chunk-BTCC6PNG.js.map +1 -0
  46. package/dist/{chunk-6THYSEJ7.js → chunk-C7MVEDVY.js} +2 -2
  47. package/dist/{chunk-NF2WEMTU.js → chunk-CCGAAOXN.js} +2 -2
  48. package/dist/{chunk-ZYDBHR63.js → chunk-CD6H4MBI.js} +2 -2
  49. package/dist/{chunk-MXF3IXNU.js → chunk-CONMRDRL.js} +2 -2
  50. package/dist/{chunk-I4CKTODX.js → chunk-CUO7OGD5.js} +2 -2
  51. package/dist/{chunk-KX4JZXZV.js → chunk-D6PMXNBM.js} +2 -2
  52. package/dist/chunk-DDMXUBCN.js +2 -0
  53. package/dist/chunk-DDMXUBCN.js.map +1 -0
  54. package/dist/{chunk-SXPBC2FP.js → chunk-DOPQK5RP.js} +2 -2
  55. package/dist/{chunk-TWLFK7DD.js → chunk-DP6L72YF.js} +2 -2
  56. package/dist/chunk-DYIMRD6T.js +2 -0
  57. package/dist/chunk-DYIMRD6T.js.map +1 -0
  58. package/dist/{chunk-TC7EQZJK.js → chunk-E5ATCB4A.js} +2 -2
  59. package/dist/{chunk-TC7EQZJK.js.map → chunk-E5ATCB4A.js.map} +1 -1
  60. package/dist/{chunk-5TOSVOLY.js → chunk-ED35NFA6.js} +2 -2
  61. package/dist/{chunk-IUY4BDUY.js → chunk-EMMFAZZC.js} +2 -2
  62. package/dist/{chunk-KPJ5YKXS.js → chunk-ERBEPQJP.js} +2 -2
  63. package/dist/{chunk-KPJ5YKXS.js.map → chunk-ERBEPQJP.js.map} +1 -1
  64. package/dist/{chunk-MYO3DIES.js → chunk-EVUTX6TJ.js} +2 -2
  65. package/dist/chunk-F37FQXEZ.js +2 -0
  66. package/dist/chunk-F37FQXEZ.js.map +1 -0
  67. package/dist/{chunk-2HQDOWW2.js → chunk-FB3PEQTO.js} +1 -1
  68. package/dist/chunk-FB3PEQTO.js.map +1 -0
  69. package/dist/chunk-FQBOMXMX.js +2 -0
  70. package/dist/chunk-FQBOMXMX.js.map +1 -0
  71. package/dist/{chunk-4XK4QHOA.js → chunk-FSCAWXCB.js} +2 -2
  72. package/dist/{chunk-V2KDZU2F.js → chunk-FV6NNYDP.js} +2 -2
  73. package/dist/{chunk-JLM4O7ZW.js → chunk-G6EKGJBB.js} +2 -2
  74. package/dist/{chunk-BVMAUJC2.js → chunk-G75LPZV5.js} +2 -2
  75. package/dist/{chunk-KJCCB44M.js → chunk-GE74QKS6.js} +2 -2
  76. package/dist/{chunk-H5OZSXSY.js → chunk-GHZABLDV.js} +2 -2
  77. package/dist/chunk-GIZQZBHB.js +2 -0
  78. package/dist/chunk-GIZQZBHB.js.map +1 -0
  79. package/dist/{chunk-RK5ZEDOE.js → chunk-GTS7KFEM.js} +2 -2
  80. package/dist/{chunk-MZUPTP2B.js → chunk-H47XUL2L.js} +2 -2
  81. package/dist/chunk-H6XROFQT.js +2 -0
  82. package/dist/chunk-H6XROFQT.js.map +1 -0
  83. package/dist/{chunk-TO2GYQR2.js → chunk-I4DU34BA.js} +2 -2
  84. package/dist/chunk-ICYCECFS.js +2 -0
  85. package/dist/{chunk-XFD3ULUF.js.map → chunk-ICYCECFS.js.map} +1 -1
  86. package/dist/{chunk-S2QXSX4Q.js → chunk-ILEO7LN4.js} +2 -2
  87. package/dist/{chunk-XTVXWH3Q.js → chunk-ILMRP364.js} +2 -2
  88. package/dist/{chunk-BQNZUM27.js → chunk-ITCWBZDM.js} +2 -2
  89. package/dist/{chunk-B5GH36QL.js → chunk-JI3PAIMV.js} +2 -2
  90. package/dist/{chunk-WGDZTF7Y.js → chunk-JLZFNUBH.js} +2 -2
  91. package/dist/{chunk-4O5HJBUC.js → chunk-JVXI4RZU.js} +2 -2
  92. package/dist/{chunk-LMYJ6V44.js → chunk-JVZ5LUV4.js} +2 -2
  93. package/dist/{chunk-LMYJ6V44.js.map → chunk-JVZ5LUV4.js.map} +1 -1
  94. package/dist/{chunk-4Y2INBAI.js → chunk-KGNLBYM5.js} +2 -2
  95. package/dist/{chunk-EEZFRK2I.js → chunk-L2YOD4GP.js} +2 -2
  96. package/dist/{chunk-2IL6T6EB.js → chunk-LADLAP2S.js} +2 -2
  97. package/dist/chunk-LSUBNZ64.js +2 -0
  98. package/dist/chunk-LSUBNZ64.js.map +1 -0
  99. package/dist/{chunk-QHJ3BYJN.js → chunk-LXGL7HF5.js} +2 -2
  100. package/dist/{chunk-OU2JUD4J.js → chunk-MEYX4D5K.js} +2 -2
  101. package/dist/{chunk-D5LOZT54.js → chunk-MXAFJYLQ.js} +2 -2
  102. package/dist/{chunk-LF3FMXGV.js → chunk-N7HCQXUM.js} +2 -2
  103. package/dist/chunk-NAFECQWK.js +2 -0
  104. package/dist/{chunk-5BIMRKQB.js → chunk-NFWKD7UR.js} +2 -2
  105. package/dist/{chunk-6S5Q2OKC.js → chunk-NTPHMYYC.js} +2 -2
  106. package/dist/chunk-NYR6FVCU.js +2 -0
  107. package/dist/{chunk-ILX6RI7K.js.map → chunk-NYR6FVCU.js.map} +1 -1
  108. package/dist/chunk-OHVXJXF4.js +1 -0
  109. package/dist/chunk-OHVXJXF4.js.map +1 -0
  110. package/dist/{chunk-POWC7LZN.js → chunk-OKBPMWVB.js} +2 -2
  111. package/dist/{chunk-BWM2MYPE.js → chunk-OWOIDZHI.js} +2 -2
  112. package/dist/{chunk-6IDUDCVS.js → chunk-P2WUHKEU.js} +2 -2
  113. package/dist/{chunk-SH35XDFY.js → chunk-P6FFLJDP.js} +2 -2
  114. package/dist/{chunk-4ONGXCN3.js → chunk-PKJZ2N4C.js} +2 -2
  115. package/dist/{chunk-NX7MM6XR.js → chunk-PKQG25GH.js} +2 -2
  116. package/dist/{chunk-NX7MM6XR.js.map → chunk-PKQG25GH.js.map} +1 -1
  117. package/dist/{chunk-RRZRQAIT.js → chunk-QFTBKRUI.js} +2 -2
  118. package/dist/chunk-QQV5REGG.js +8 -0
  119. package/dist/chunk-QQV5REGG.js.map +1 -0
  120. package/dist/{chunk-ZZLLPFLS.js → chunk-R4ZUOFYN.js} +2 -2
  121. package/dist/chunk-R5ADEPLC.js +2 -0
  122. package/dist/chunk-R5ADEPLC.js.map +1 -0
  123. package/dist/{chunk-TXOCMI5I.js → chunk-RFMYNPR7.js} +2 -2
  124. package/dist/chunk-ROO2IFBF.js +2 -0
  125. package/dist/chunk-ROO2IFBF.js.map +1 -0
  126. package/dist/{chunk-2LR5N626.js → chunk-RYZ7TJVS.js} +2 -2
  127. package/dist/{chunk-U6SMLAQI.js → chunk-RZL44CPH.js} +2 -2
  128. package/dist/{chunk-C2HZNBMZ.js → chunk-SLRPDXK6.js} +2 -2
  129. package/dist/{chunk-5WIBTOCI.js → chunk-SRNXXOUH.js} +2 -2
  130. package/dist/{chunk-5WIBTOCI.js.map → chunk-SRNXXOUH.js.map} +1 -1
  131. package/dist/{chunk-5MH23AST.js → chunk-STHZZZRL.js} +2 -2
  132. package/dist/{chunk-F7ZDULRC.js → chunk-SUYI33NX.js} +2 -2
  133. package/dist/chunk-SVU7GWUR.js +2 -0
  134. package/dist/chunk-SVU7GWUR.js.map +1 -0
  135. package/dist/{chunk-3VTHNE4H.js → chunk-SZI67IXU.js} +2 -2
  136. package/dist/chunk-T5H35HYL.js +2 -0
  137. package/dist/{chunk-CSXL7LMW.js.map → chunk-T5H35HYL.js.map} +1 -1
  138. package/dist/chunk-TDKKCSKV.js +2 -0
  139. package/dist/{chunk-7IIQUZTH.js.map → chunk-TDKKCSKV.js.map} +1 -1
  140. package/dist/{chunk-QEHEOSJT.js → chunk-TJZ5BJV3.js} +2 -2
  141. package/dist/chunk-TRDNTXE7.js +2 -0
  142. package/dist/chunk-TRDNTXE7.js.map +1 -0
  143. package/dist/{chunk-UUN3PLDE.js → chunk-TX6RWQUR.js} +2 -2
  144. package/dist/chunk-U4H7URYB.js +2 -0
  145. package/dist/chunk-U4H7URYB.js.map +1 -0
  146. package/dist/{chunk-HDOEUCXY.js → chunk-U7JAGEOV.js} +2 -2
  147. package/dist/chunk-U7JAGEOV.js.map +1 -0
  148. package/dist/{chunk-RKP7EEAB.js → chunk-UGQNOBQH.js} +2 -2
  149. package/dist/chunk-UWHJF45X.js +2 -0
  150. package/dist/chunk-UWHJF45X.js.map +1 -0
  151. package/dist/{chunk-BFXBFGBH.js → chunk-UYOKK4QW.js} +2 -2
  152. package/dist/{chunk-BFXBFGBH.js.map → chunk-UYOKK4QW.js.map} +1 -1
  153. package/dist/{chunk-LBNS4VT7.js → chunk-V3AVEPNA.js} +2 -2
  154. package/dist/{chunk-KZ5ZQTBF.js → chunk-V6PPOGPT.js} +2 -2
  155. package/dist/{chunk-IJCTN52C.js → chunk-VDJJEIOD.js} +2 -2
  156. package/dist/{chunk-IJCTN52C.js.map → chunk-VDJJEIOD.js.map} +1 -1
  157. package/dist/chunk-VKUGCD5J.js +2 -0
  158. package/dist/chunk-VKUGCD5J.js.map +1 -0
  159. package/dist/{chunk-DSYQY3K6.js → chunk-VRPZ4GHN.js} +2 -2
  160. package/dist/{chunk-PFNDDLHG.js → chunk-VVZTXCX2.js} +2 -2
  161. package/dist/{chunk-FORYAPUZ.js → chunk-VYTUM3RI.js} +2 -2
  162. package/dist/{chunk-GM3UWUVL.js → chunk-WGO25FWG.js} +2 -2
  163. package/dist/{chunk-QYKJU45J.js → chunk-WKWL57L6.js} +2 -2
  164. package/dist/chunk-WRTUY6K3.js +2 -0
  165. package/dist/chunk-WRTUY6K3.js.map +1 -0
  166. package/dist/{chunk-X7FILZJH.js → chunk-WVE2IOLY.js} +2 -2
  167. package/dist/{chunk-5IRUNNZB.js → chunk-XDLVDPQ7.js} +2 -2
  168. package/dist/{chunk-6AHENEHD.js → chunk-XEVHXHHC.js} +2 -2
  169. package/dist/{chunk-JMFCG5KA.js → chunk-XMIVJW5E.js} +2 -2
  170. package/dist/{chunk-CNSE26GY.js → chunk-XMVV6S77.js} +2 -2
  171. package/dist/{chunk-AP56UUME.js → chunk-Y2NCUO3F.js} +2 -2
  172. package/dist/{chunk-AP56UUME.js.map → chunk-Y2NCUO3F.js.map} +1 -1
  173. package/dist/{chunk-AP6MKHTF.js → chunk-YHZZHQP5.js} +2 -2
  174. package/dist/{chunk-ZAOE2DGD.js → chunk-YME2HZZJ.js} +2 -2
  175. package/dist/{chunk-5AF5WV3R.js → chunk-Z7XLK4JL.js} +2 -2
  176. package/dist/chunk-ZD4H63AL.js +2 -0
  177. package/dist/chunk-ZD4H63AL.js.map +1 -0
  178. package/dist/{chunk-64C6G646.js → chunk-ZODT3MJM.js} +2 -2
  179. package/dist/{chunk-6L77BWCI.js → chunk-ZOTKZZ67.js} +2 -2
  180. package/dist/{chunk-GJJFAGAC.js → chunk-ZREW7KZA.js} +2 -2
  181. package/dist/createInvoiceSchedule-BweQB6DI.d.ts +195 -0
  182. package/dist/default-components.d.ts +2 -2
  183. package/dist/default-components.js +1 -1
  184. package/dist/default-components.js.map +1 -1
  185. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  186. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  187. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  188. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  189. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  190. package/dist/flows/ContractAmendment/context.d.ts +4 -4
  191. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  192. package/dist/flows/ContractAmendment/hooks.js +1 -1
  193. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  194. package/dist/flows/ContractAmendment/index.js +1 -1
  195. package/dist/flows/ContractAmendment/types.d.ts +3 -3
  196. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  197. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +6 -5
  198. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  199. package/dist/flows/ContractorOnboarding/api.d.ts +173 -413
  200. package/dist/flows/ContractorOnboarding/api.js +1 -1
  201. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  202. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  203. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +6 -5
  204. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  205. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.d.ts +3 -3
  206. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.js +1 -1
  207. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  208. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  209. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +6 -5
  210. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  211. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +6 -5
  212. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  213. package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.d.ts +3 -3
  214. package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.js +1 -1
  215. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +6 -5
  216. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  217. package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.d.ts +6 -5
  218. package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.js +1 -1
  219. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  220. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  221. package/dist/flows/ContractorOnboarding/components/PreviewInvoiceButton.d.ts +29 -0
  222. package/dist/flows/ContractorOnboarding/components/PreviewInvoiceButton.js +2 -0
  223. package/dist/flows/ContractorOnboarding/components/PreviewInvoiceButton.js.map +1 -0
  224. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +6 -5
  225. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  226. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
  227. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  228. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  229. package/dist/flows/ContractorOnboarding/components/SkipInvoiceScheduleButton.d.ts +24 -0
  230. package/dist/flows/ContractorOnboarding/components/SkipInvoiceScheduleButton.js +2 -0
  231. package/dist/flows/ContractorOnboarding/components/SkipInvoiceScheduleButton.js.map +1 -0
  232. package/dist/flows/ContractorOnboarding/context.d.ts +14 -5
  233. package/dist/flows/ContractorOnboarding/hooks.d.ts +6 -5
  234. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  235. package/dist/flows/ContractorOnboarding/index.d.ts +6 -5
  236. package/dist/flows/ContractorOnboarding/index.js +1 -1
  237. package/dist/flows/ContractorOnboarding/invoiceScheduleConstants.d.ts +1 -0
  238. package/dist/flows/ContractorOnboarding/invoiceScheduleConstants.js +1 -1
  239. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +6 -5
  240. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  241. package/dist/flows/ContractorOnboarding/json-schemas/contractOrigin.d.ts +3 -0
  242. package/dist/flows/ContractorOnboarding/json-schemas/contractOrigin.js +1 -1
  243. package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.d.ts +1 -103
  244. package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.js +1 -1
  245. package/dist/flows/ContractorOnboarding/json-schemas/invoiceSchedule.d.ts +3 -0
  246. package/dist/flows/ContractorOnboarding/json-schemas/invoiceSchedule.js +1 -1
  247. package/dist/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.d.ts +3 -0
  248. package/dist/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.js +1 -1
  249. package/dist/flows/ContractorOnboarding/json-schemas/signature.d.ts +3 -0
  250. package/dist/flows/ContractorOnboarding/json-schemas/signature.js +1 -1
  251. package/dist/flows/ContractorOnboarding/types.d.ts +6 -5
  252. package/dist/flows/ContractorOnboarding/utils.d.ts +31 -21
  253. package/dist/flows/ContractorOnboarding/utils.js +1 -1
  254. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  255. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  256. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  257. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  258. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +3 -3
  259. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  260. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +3 -3
  261. package/dist/flows/CostCalculator/api.d.ts +3 -3
  262. package/dist/flows/CostCalculator/api.js +1 -1
  263. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  264. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  265. package/dist/flows/CostCalculator/context.d.ts +3 -3
  266. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  267. package/dist/flows/CostCalculator/hooks.js +1 -1
  268. package/dist/flows/CostCalculator/index.d.ts +3 -3
  269. package/dist/flows/CostCalculator/index.js +1 -1
  270. package/dist/flows/CostCalculator/types.d.ts +3 -3
  271. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  272. package/dist/flows/CostCalculator/utils.js +1 -1
  273. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  274. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  275. package/dist/flows/CreateCompany/api.d.ts +3 -3
  276. package/dist/flows/CreateCompany/api.js +1 -1
  277. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  278. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  279. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  280. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  281. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  282. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  283. package/dist/flows/CreateCompany/context.d.ts +4 -4
  284. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  285. package/dist/flows/CreateCompany/hooks.js +1 -1
  286. package/dist/flows/CreateCompany/index.d.ts +4 -4
  287. package/dist/flows/CreateCompany/index.js +1 -1
  288. package/dist/flows/CreateCompany/json-schemas/companyBasicInformationStep.d.ts +3 -0
  289. package/dist/flows/CreateCompany/json-schemas/companyBasicInformationStep.js +1 -1
  290. package/dist/flows/CreateCompany/types.d.ts +4 -4
  291. package/dist/flows/InvoiceSchedule/InvoiceScheduleFlow.d.ts +44 -0
  292. package/dist/flows/InvoiceSchedule/InvoiceScheduleFlow.js +2 -0
  293. package/dist/flows/InvoiceSchedule/InvoiceScheduleFlow.js.map +1 -0
  294. package/dist/flows/InvoiceSchedule/InvoiceScheduleForm.d.ts +35 -0
  295. package/dist/flows/InvoiceSchedule/InvoiceScheduleForm.js +2 -0
  296. package/dist/flows/InvoiceSchedule/InvoiceScheduleForm.js.map +1 -0
  297. package/dist/flows/InvoiceSchedule/InvoiceScheduleSubmitButton.d.ts +6 -0
  298. package/dist/flows/InvoiceSchedule/InvoiceScheduleSubmitButton.js +2 -0
  299. package/dist/flows/InvoiceSchedule/InvoiceScheduleSubmitButton.js.map +1 -0
  300. package/dist/flows/InvoiceSchedule/api.d.ts +47 -0
  301. package/dist/flows/InvoiceSchedule/api.js +2 -0
  302. package/dist/flows/InvoiceSchedule/api.js.map +1 -0
  303. package/dist/flows/InvoiceSchedule/components/ContractorSelectField.d.ts +20 -0
  304. package/dist/flows/InvoiceSchedule/components/ContractorSelectField.js +2 -0
  305. package/dist/flows/InvoiceSchedule/components/ContractorSelectField.js.map +1 -0
  306. package/dist/flows/InvoiceSchedule/context.d.ts +61 -0
  307. package/dist/flows/InvoiceSchedule/context.js +2 -0
  308. package/dist/flows/InvoiceSchedule/context.js.map +1 -0
  309. package/dist/flows/InvoiceSchedule/hooks.d.ts +108 -0
  310. package/dist/flows/InvoiceSchedule/hooks.js +2 -0
  311. package/dist/flows/InvoiceSchedule/hooks.js.map +1 -0
  312. package/dist/flows/InvoiceSchedule/index.d.ts +18 -0
  313. package/dist/flows/InvoiceSchedule/index.js +2 -0
  314. package/dist/flows/InvoiceSchedule/index.js.map +1 -0
  315. package/dist/flows/InvoiceSchedule/types.d.ts +78 -0
  316. package/dist/flows/InvoiceSchedule/types.js +1 -0
  317. package/dist/flows/InvoiceSchedule/types.js.map +1 -0
  318. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.d.ts +3 -3
  319. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js +1 -1
  320. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.d.ts +2 -2
  321. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js +1 -1
  322. package/dist/flows/JsonSchemaPlayground/context.d.ts +3 -3
  323. package/dist/flows/JsonSchemaPlayground/hooks.d.ts +3 -3
  324. package/dist/flows/JsonSchemaPlayground/index.d.ts +3 -3
  325. package/dist/flows/JsonSchemaPlayground/index.js +1 -1
  326. package/dist/flows/JsonSchemaPlayground/types.d.ts +3 -3
  327. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  328. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  329. package/dist/flows/Onboarding/api.d.ts +4 -4
  330. package/dist/flows/Onboarding/api.js +1 -1
  331. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  332. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  333. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  334. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  335. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  336. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  337. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  338. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  339. package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.js +1 -1
  340. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +4 -4
  341. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  342. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  343. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  344. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  345. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  346. package/dist/flows/Onboarding/components/PreOnboardingRequirements.d.ts +4 -4
  347. package/dist/flows/Onboarding/components/PreOnboardingRequirements.js +1 -1
  348. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js +1 -1
  349. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  350. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  351. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  352. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  353. package/dist/flows/Onboarding/context.d.ts +5 -5
  354. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  355. package/dist/flows/Onboarding/hooks.js +1 -1
  356. package/dist/flows/Onboarding/index.d.ts +4 -4
  357. package/dist/flows/Onboarding/index.js +1 -1
  358. package/dist/flows/Onboarding/types.d.ts +4 -4
  359. package/dist/flows/Onboarding/utils.d.ts +4 -4
  360. package/dist/flows/Onboarding/utils.js +1 -1
  361. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +5 -5
  362. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +1 -1
  363. package/dist/flows/PayrollAdminOnboarding/api.d.ts +2 -2
  364. package/dist/flows/PayrollAdminOnboarding/api.js +1 -1
  365. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.d.ts +3 -3
  366. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js +1 -1
  367. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.d.ts +3 -3
  368. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js +1 -1
  369. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.d.ts +3 -3
  370. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.js +1 -1
  371. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.d.ts +2 -2
  372. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js +1 -1
  373. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.d.ts +3 -3
  374. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js +1 -1
  375. package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.d.ts +3 -3
  376. package/dist/flows/PayrollAdminOnboarding/context.d.ts +5 -5
  377. package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +6 -6
  378. package/dist/flows/PayrollAdminOnboarding/hooks.js +1 -1
  379. package/dist/flows/PayrollAdminOnboarding/index.d.ts +5 -5
  380. package/dist/flows/PayrollAdminOnboarding/index.js +1 -1
  381. package/dist/flows/PayrollAdminOnboarding/types.d.ts +5 -5
  382. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +5 -5
  383. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +1 -1
  384. package/dist/flows/PayrollEmployeeOnboarding/api.d.ts +3 -3
  385. package/dist/flows/PayrollEmployeeOnboarding/api.js +1 -1
  386. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.d.ts +3 -3
  387. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js +1 -1
  388. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.d.ts +3 -3
  389. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js +1 -1
  390. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.d.ts +3 -3
  391. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js +1 -1
  392. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.d.ts +2 -2
  393. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js +1 -1
  394. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.d.ts +3 -3
  395. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js +1 -1
  396. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.d.ts +3 -3
  397. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js +1 -1
  398. package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.d.ts +3 -3
  399. package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +5 -5
  400. package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +6 -6
  401. package/dist/flows/PayrollEmployeeOnboarding/hooks.js +1 -1
  402. package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +5 -5
  403. package/dist/flows/PayrollEmployeeOnboarding/index.js +1 -1
  404. package/dist/flows/PayrollEmployeeOnboarding/types.d.ts +5 -5
  405. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  406. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  407. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  408. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  409. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  410. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  411. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  412. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  413. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  414. package/dist/flows/Termination/TerminationFlow.js +1 -1
  415. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  416. package/dist/flows/Termination/TerminationForm.js +1 -1
  417. package/dist/flows/Termination/api.d.ts +5 -5
  418. package/dist/flows/Termination/api.js +1 -1
  419. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  420. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  421. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  422. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  423. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  424. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  425. package/dist/flows/Termination/context.d.ts +4 -4
  426. package/dist/flows/Termination/hooks.d.ts +4 -4
  427. package/dist/flows/Termination/hooks.js +1 -1
  428. package/dist/flows/Termination/index.d.ts +6 -6
  429. package/dist/flows/Termination/index.js +1 -1
  430. package/dist/flows/Termination/json-schemas/additionalInformation.d.ts +3 -0
  431. package/dist/flows/Termination/json-schemas/additionalInformation.js +1 -1
  432. package/dist/flows/Termination/json-schemas/defaultSchema.d.ts +3 -0
  433. package/dist/flows/Termination/json-schemas/defaultSchema.js +1 -1
  434. package/dist/flows/Termination/json-schemas/employeeComunication.d.ts +3 -0
  435. package/dist/flows/Termination/json-schemas/employeeComunication.js +1 -1
  436. package/dist/flows/Termination/json-schemas/jsonSchema.d.ts +3 -0
  437. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  438. package/dist/flows/Termination/json-schemas/paidTimeOff.d.ts +3 -0
  439. package/dist/flows/Termination/json-schemas/paidTimeOff.js +1 -1
  440. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  441. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  442. package/dist/flows/Termination/json-schemas/terminationDetails.d.ts +3 -0
  443. package/dist/flows/Termination/json-schemas/terminationDetails.js +1 -1
  444. package/dist/flows/Termination/types.d.ts +4 -4
  445. package/dist/flows/Termination/utils.d.ts +4 -4
  446. package/dist/flows/types.d.ts +3 -3
  447. package/dist/flows/utils.d.ts +2 -2
  448. package/dist/index.css +1 -1
  449. package/dist/index.css.map +1 -1
  450. package/dist/index.d.ts +23 -15
  451. package/dist/index.js +2 -2
  452. package/dist/index.js.map +1 -1
  453. package/dist/internals.d.ts +4 -4
  454. package/dist/internals.js +1 -1
  455. package/dist/{mutations-DQjVuza-.d.ts → mutations-Dg60ZjS0.d.ts} +1 -1
  456. package/dist/{remoteFlows-B_JbhzWp.d.ts → remoteFlows-7WBvzlJt.d.ts} +1 -1
  457. package/dist/styles.css +1 -1
  458. package/dist/styles.css.map +1 -1
  459. package/dist/{types-B0iYt6RL.d.ts → types--IwjF9ei.d.ts} +68 -5
  460. package/dist/{types-Clzf4xjV.d.ts → types-1IycaCkN.d.ts} +4 -6
  461. package/dist/{types-D3U8Wi3X.d.ts → types-CI8Tx4se.d.ts} +3 -3
  462. package/dist/{types-B93nzmoE.d.ts → types-CJHW5xRl.d.ts} +1 -1
  463. package/dist/{types-1mH_uuoA.d.ts → types-CT7w2kHS.d.ts} +2 -2
  464. package/dist/{types-CdC2MYpf.d.ts → types-CgNwKzZf.d.ts} +4 -4
  465. package/dist/{types-BFzhRUSU.d.ts → types-DPlWZa2M.d.ts} +4 -4
  466. package/dist/{types-CoYsxVTI.d.ts → types-DmvLgred.d.ts} +1 -1
  467. package/dist/types.gen-Dtb8ECVb.d.ts +308 -0
  468. package/dist/{types.gen-BmtA4XNd.d.ts → types.gen-TcbORUL-.d.ts} +216 -17
  469. package/dist/{utils-DJgzqxq4.d.ts → utils-DSHROBN2.d.ts} +1 -1
  470. package/package.json +3 -3
  471. package/dist/CheckboxFieldDefault-JXNMWIRK.js +0 -2
  472. package/dist/CountryFieldDefault-SO4WS7KE.js +0 -2
  473. package/dist/DatePickerFieldDefault-AZHJN2U6.js +0 -2
  474. package/dist/FileUploadFieldDefault-QHOKNCU2.js +0 -2
  475. package/dist/ForcedValueFieldDefault-BEOC4MYU.js +0 -2
  476. package/dist/MultiSelectFieldDefault-QKXVTGF2.js +0 -2
  477. package/dist/RadioGroupFieldDefault-ZHHXDUUU.js +0 -2
  478. package/dist/SelectFieldDefault-FWQ7D6DU.js +0 -2
  479. package/dist/TelFieldDefault-RA7IBELJ.js +0 -2
  480. package/dist/TextAreaFieldDefault-NEFWXEE2.js +0 -2
  481. package/dist/TextFieldDefault-RXNU36AX.js +0 -2
  482. package/dist/TimeFieldDefault-KIJNBWYF.js +0 -2
  483. package/dist/chunk-2HQDOWW2.js.map +0 -1
  484. package/dist/chunk-7HGU72GB.js +0 -2
  485. package/dist/chunk-7HGU72GB.js.map +0 -1
  486. package/dist/chunk-7IIQUZTH.js +0 -2
  487. package/dist/chunk-CQVOBIXJ.js +0 -2
  488. package/dist/chunk-CQVOBIXJ.js.map +0 -1
  489. package/dist/chunk-CRH5V5JI.js +0 -2
  490. package/dist/chunk-CRH5V5JI.js.map +0 -1
  491. package/dist/chunk-CSXL7LMW.js +0 -2
  492. package/dist/chunk-DN6BXTAC.js +0 -2
  493. package/dist/chunk-HDFAFTHC.js +0 -2
  494. package/dist/chunk-HDFAFTHC.js.map +0 -1
  495. package/dist/chunk-HDOEUCXY.js.map +0 -1
  496. package/dist/chunk-ILX6RI7K.js +0 -2
  497. package/dist/chunk-IXS65MGJ.js +0 -2
  498. package/dist/chunk-IXS65MGJ.js.map +0 -1
  499. package/dist/chunk-NPVSJYM6.js +0 -2
  500. package/dist/chunk-NPVSJYM6.js.map +0 -1
  501. package/dist/chunk-R4J4TF5F.js +0 -2
  502. package/dist/chunk-R4J4TF5F.js.map +0 -1
  503. package/dist/chunk-VNMUML3T.js +0 -8
  504. package/dist/chunk-VNMUML3T.js.map +0 -1
  505. package/dist/chunk-XFD3ULUF.js +0 -2
  506. package/dist/chunk-XXQBX7ND.js +0 -2
  507. package/dist/chunk-XXQBX7ND.js.map +0 -1
  508. /package/dist/{CheckboxFieldDefault-JXNMWIRK.js.map → CheckboxFieldDefault-JOUZXB4Y.js.map} +0 -0
  509. /package/dist/{CountryFieldDefault-SO4WS7KE.js.map → CountryFieldDefault-IZQOFNX5.js.map} +0 -0
  510. /package/dist/{DatePickerFieldDefault-AZHJN2U6.js.map → DatePickerFieldDefault-AWV7LUPI.js.map} +0 -0
  511. /package/dist/{FileUploadFieldDefault-QHOKNCU2.js.map → FileUploadFieldDefault-NZ33IMPU.js.map} +0 -0
  512. /package/dist/{ForcedValueFieldDefault-BEOC4MYU.js.map → ForcedValueFieldDefault-RY5AN7O6.js.map} +0 -0
  513. /package/dist/{MultiSelectFieldDefault-QKXVTGF2.js.map → MultiSelectFieldDefault-DOZQUBEE.js.map} +0 -0
  514. /package/dist/{RadioGroupFieldDefault-ZHHXDUUU.js.map → RadioGroupFieldDefault-GFDO56LK.js.map} +0 -0
  515. /package/dist/{SelectFieldDefault-FWQ7D6DU.js.map → SelectFieldDefault-E4KFZBJ7.js.map} +0 -0
  516. /package/dist/{TelFieldDefault-RA7IBELJ.js.map → TelFieldDefault-2EPAKDTW.js.map} +0 -0
  517. /package/dist/{TextAreaFieldDefault-NEFWXEE2.js.map → TextAreaFieldDefault-WZIVM4RZ.js.map} +0 -0
  518. /package/dist/{TextFieldDefault-RXNU36AX.js.map → TextFieldDefault-YVXZO4AN.js.map} +0 -0
  519. /package/dist/{TimeFieldDefault-KIJNBWYF.js.map → TimeFieldDefault-JN4MDIO6.js.map} +0 -0
  520. /package/dist/{chunk-X7HD2YL7.js.map → chunk-2UH6Y56R.js.map} +0 -0
  521. /package/dist/{chunk-TZRUHUW5.js.map → chunk-3G4HOZCM.js.map} +0 -0
  522. /package/dist/{chunk-OUUH3EQY.js.map → chunk-3OKB5OHA.js.map} +0 -0
  523. /package/dist/{chunk-PRFHWAQZ.js.map → chunk-46BOEYFO.js.map} +0 -0
  524. /package/dist/{chunk-J5BG6GTH.js.map → chunk-4CNDASPA.js.map} +0 -0
  525. /package/dist/{chunk-QSF4XFSV.js.map → chunk-4IGLIHGF.js.map} +0 -0
  526. /package/dist/{chunk-36GVXD2Z.js.map → chunk-4WSYC3Q5.js.map} +0 -0
  527. /package/dist/{chunk-7GO4BHOI.js.map → chunk-53QBSOMG.js.map} +0 -0
  528. /package/dist/{chunk-YLSASLPB.js.map → chunk-5HDMU73I.js.map} +0 -0
  529. /package/dist/{chunk-JQ3SLOUP.js.map → chunk-5JXLXWTD.js.map} +0 -0
  530. /package/dist/{chunk-F3UUYQGY.js.map → chunk-5PUW4YCY.js.map} +0 -0
  531. /package/dist/{chunk-6IQJJCQ3.js.map → chunk-6CBC5OAQ.js.map} +0 -0
  532. /package/dist/{chunk-GKSG4TTI.js.map → chunk-7FKNXW2I.js.map} +0 -0
  533. /package/dist/{chunk-6WO4PRGN.js.map → chunk-AAXPKULB.js.map} +0 -0
  534. /package/dist/{chunk-FDTOQHOJ.js.map → chunk-BB3M25A3.js.map} +0 -0
  535. /package/dist/{chunk-VQVE3QA2.js.map → chunk-BLKWR77C.js.map} +0 -0
  536. /package/dist/{chunk-6THYSEJ7.js.map → chunk-C7MVEDVY.js.map} +0 -0
  537. /package/dist/{chunk-NF2WEMTU.js.map → chunk-CCGAAOXN.js.map} +0 -0
  538. /package/dist/{chunk-ZYDBHR63.js.map → chunk-CD6H4MBI.js.map} +0 -0
  539. /package/dist/{chunk-MXF3IXNU.js.map → chunk-CONMRDRL.js.map} +0 -0
  540. /package/dist/{chunk-I4CKTODX.js.map → chunk-CUO7OGD5.js.map} +0 -0
  541. /package/dist/{chunk-KX4JZXZV.js.map → chunk-D6PMXNBM.js.map} +0 -0
  542. /package/dist/{chunk-SXPBC2FP.js.map → chunk-DOPQK5RP.js.map} +0 -0
  543. /package/dist/{chunk-TWLFK7DD.js.map → chunk-DP6L72YF.js.map} +0 -0
  544. /package/dist/{chunk-5TOSVOLY.js.map → chunk-ED35NFA6.js.map} +0 -0
  545. /package/dist/{chunk-IUY4BDUY.js.map → chunk-EMMFAZZC.js.map} +0 -0
  546. /package/dist/{chunk-MYO3DIES.js.map → chunk-EVUTX6TJ.js.map} +0 -0
  547. /package/dist/{chunk-4XK4QHOA.js.map → chunk-FSCAWXCB.js.map} +0 -0
  548. /package/dist/{chunk-V2KDZU2F.js.map → chunk-FV6NNYDP.js.map} +0 -0
  549. /package/dist/{chunk-JLM4O7ZW.js.map → chunk-G6EKGJBB.js.map} +0 -0
  550. /package/dist/{chunk-BVMAUJC2.js.map → chunk-G75LPZV5.js.map} +0 -0
  551. /package/dist/{chunk-KJCCB44M.js.map → chunk-GE74QKS6.js.map} +0 -0
  552. /package/dist/{chunk-H5OZSXSY.js.map → chunk-GHZABLDV.js.map} +0 -0
  553. /package/dist/{chunk-RK5ZEDOE.js.map → chunk-GTS7KFEM.js.map} +0 -0
  554. /package/dist/{chunk-MZUPTP2B.js.map → chunk-H47XUL2L.js.map} +0 -0
  555. /package/dist/{chunk-TO2GYQR2.js.map → chunk-I4DU34BA.js.map} +0 -0
  556. /package/dist/{chunk-S2QXSX4Q.js.map → chunk-ILEO7LN4.js.map} +0 -0
  557. /package/dist/{chunk-XTVXWH3Q.js.map → chunk-ILMRP364.js.map} +0 -0
  558. /package/dist/{chunk-BQNZUM27.js.map → chunk-ITCWBZDM.js.map} +0 -0
  559. /package/dist/{chunk-B5GH36QL.js.map → chunk-JI3PAIMV.js.map} +0 -0
  560. /package/dist/{chunk-WGDZTF7Y.js.map → chunk-JLZFNUBH.js.map} +0 -0
  561. /package/dist/{chunk-4O5HJBUC.js.map → chunk-JVXI4RZU.js.map} +0 -0
  562. /package/dist/{chunk-4Y2INBAI.js.map → chunk-KGNLBYM5.js.map} +0 -0
  563. /package/dist/{chunk-EEZFRK2I.js.map → chunk-L2YOD4GP.js.map} +0 -0
  564. /package/dist/{chunk-2IL6T6EB.js.map → chunk-LADLAP2S.js.map} +0 -0
  565. /package/dist/{chunk-QHJ3BYJN.js.map → chunk-LXGL7HF5.js.map} +0 -0
  566. /package/dist/{chunk-OU2JUD4J.js.map → chunk-MEYX4D5K.js.map} +0 -0
  567. /package/dist/{chunk-D5LOZT54.js.map → chunk-MXAFJYLQ.js.map} +0 -0
  568. /package/dist/{chunk-LF3FMXGV.js.map → chunk-N7HCQXUM.js.map} +0 -0
  569. /package/dist/{chunk-DN6BXTAC.js.map → chunk-NAFECQWK.js.map} +0 -0
  570. /package/dist/{chunk-5BIMRKQB.js.map → chunk-NFWKD7UR.js.map} +0 -0
  571. /package/dist/{chunk-6S5Q2OKC.js.map → chunk-NTPHMYYC.js.map} +0 -0
  572. /package/dist/{chunk-POWC7LZN.js.map → chunk-OKBPMWVB.js.map} +0 -0
  573. /package/dist/{chunk-BWM2MYPE.js.map → chunk-OWOIDZHI.js.map} +0 -0
  574. /package/dist/{chunk-6IDUDCVS.js.map → chunk-P2WUHKEU.js.map} +0 -0
  575. /package/dist/{chunk-SH35XDFY.js.map → chunk-P6FFLJDP.js.map} +0 -0
  576. /package/dist/{chunk-4ONGXCN3.js.map → chunk-PKJZ2N4C.js.map} +0 -0
  577. /package/dist/{chunk-RRZRQAIT.js.map → chunk-QFTBKRUI.js.map} +0 -0
  578. /package/dist/{chunk-ZZLLPFLS.js.map → chunk-R4ZUOFYN.js.map} +0 -0
  579. /package/dist/{chunk-TXOCMI5I.js.map → chunk-RFMYNPR7.js.map} +0 -0
  580. /package/dist/{chunk-2LR5N626.js.map → chunk-RYZ7TJVS.js.map} +0 -0
  581. /package/dist/{chunk-U6SMLAQI.js.map → chunk-RZL44CPH.js.map} +0 -0
  582. /package/dist/{chunk-C2HZNBMZ.js.map → chunk-SLRPDXK6.js.map} +0 -0
  583. /package/dist/{chunk-5MH23AST.js.map → chunk-STHZZZRL.js.map} +0 -0
  584. /package/dist/{chunk-F7ZDULRC.js.map → chunk-SUYI33NX.js.map} +0 -0
  585. /package/dist/{chunk-3VTHNE4H.js.map → chunk-SZI67IXU.js.map} +0 -0
  586. /package/dist/{chunk-QEHEOSJT.js.map → chunk-TJZ5BJV3.js.map} +0 -0
  587. /package/dist/{chunk-UUN3PLDE.js.map → chunk-TX6RWQUR.js.map} +0 -0
  588. /package/dist/{chunk-RKP7EEAB.js.map → chunk-UGQNOBQH.js.map} +0 -0
  589. /package/dist/{chunk-LBNS4VT7.js.map → chunk-V3AVEPNA.js.map} +0 -0
  590. /package/dist/{chunk-KZ5ZQTBF.js.map → chunk-V6PPOGPT.js.map} +0 -0
  591. /package/dist/{chunk-DSYQY3K6.js.map → chunk-VRPZ4GHN.js.map} +0 -0
  592. /package/dist/{chunk-PFNDDLHG.js.map → chunk-VVZTXCX2.js.map} +0 -0
  593. /package/dist/{chunk-FORYAPUZ.js.map → chunk-VYTUM3RI.js.map} +0 -0
  594. /package/dist/{chunk-GM3UWUVL.js.map → chunk-WGO25FWG.js.map} +0 -0
  595. /package/dist/{chunk-QYKJU45J.js.map → chunk-WKWL57L6.js.map} +0 -0
  596. /package/dist/{chunk-X7FILZJH.js.map → chunk-WVE2IOLY.js.map} +0 -0
  597. /package/dist/{chunk-5IRUNNZB.js.map → chunk-XDLVDPQ7.js.map} +0 -0
  598. /package/dist/{chunk-6AHENEHD.js.map → chunk-XEVHXHHC.js.map} +0 -0
  599. /package/dist/{chunk-JMFCG5KA.js.map → chunk-XMIVJW5E.js.map} +0 -0
  600. /package/dist/{chunk-CNSE26GY.js.map → chunk-XMVV6S77.js.map} +0 -0
  601. /package/dist/{chunk-AP6MKHTF.js.map → chunk-YHZZHQP5.js.map} +0 -0
  602. /package/dist/{chunk-ZAOE2DGD.js.map → chunk-YME2HZZJ.js.map} +0 -0
  603. /package/dist/{chunk-5AF5WV3R.js.map → chunk-Z7XLK4JL.js.map} +0 -0
  604. /package/dist/{chunk-64C6G646.js.map → chunk-ZODT3MJM.js.map} +0 -0
  605. /package/dist/{chunk-6L77BWCI.js.map → chunk-ZOTKZZ67.js.map} +0 -0
  606. /package/dist/{chunk-GJJFAGAC.js.map → chunk-ZREW7KZA.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{g as p}from"./chunk-2LR5N626.js";import{b as a}from"./chunk-WCJZAOZR.js";import{b as r,x as s}from"./chunk-C4HFMTSB.js";import{b as m}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as h}from"react/jsx-runtime";function C({onSuccess:c,onError:l,children:d}){let{adminBag:t}=a(),{components:u}=m(),e=p(),{mutateAsyncOrThrow:f}=r(e),i=u?.button;if(!i)throw new Error("Button component not found");return h(i,{onClick:n(async()=>{try{if(!t.employmentId)throw new Error("Employment ID is missing. Complete the previous steps first.");let o=await f({employmentId:t.employmentId});await t.refetchSteps(),await c?.(o),t.next()}catch(o){l?.(s(o))}},"handleInvite"),disabled:e.isPending||t.isSubmitting,children:d??"Send invitation"})}n(C,"InvitationStep");export{C as a};
2
- //# sourceMappingURL=chunk-RKP7EEAB.js.map
1
+ import{g as p}from"./chunk-RYZ7TJVS.js";import{b as a}from"./chunk-WCJZAOZR.js";import{b as r,x as s}from"./chunk-C4HFMTSB.js";import{b as m}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as h}from"react/jsx-runtime";function C({onSuccess:c,onError:l,children:d}){let{adminBag:t}=a(),{components:u}=m(),e=p(),{mutateAsyncOrThrow:f}=r(e),i=u?.button;if(!i)throw new Error("Button component not found");return h(i,{onClick:n(async()=>{try{if(!t.employmentId)throw new Error("Employment ID is missing. Complete the previous steps first.");let o=await f({employmentId:t.employmentId});await t.refetchSteps(),await c?.(o),t.next()}catch(o){l?.(s(o))}},"handleInvite"),disabled:e.isPending||t.isSubmitting,children:d??"Send invitation"})}n(C,"InvitationStep");export{C as a};
2
+ //# sourceMappingURL=chunk-UGQNOBQH.js.map
@@ -0,0 +1,2 @@
1
+ import{i as m}from"./chunk-QQV5REGG.js";import{e as c}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useQuery as u,queryOptions as p}from"@tanstack/react-query";var y=10,d=100,C=n(t=>({id:t.id,fullName:t.full_name}),"toContractor"),g=n((t,e)=>p({queryKey:["invoice-schedule-contractors",e??null],queryFn:n(async()=>{let o=[],r=1,i=1,a=0;for(;r<=Math.min(i,y);){let s=await m({client:t,headers:{Authorization:""},query:{employment_type:"contractor",status:"active",...e?{name:e}:{},page:r,page_size:d}});if(s.error||!s.data)throw new Error("Failed to fetch contractors");let l=s.data.data;o.push(...l?.employments??[]),i=l?.total_pages??1,a=l?.total_count??o.length,r+=1}return{contractors:o.map(C),totalCount:a,isTruncated:o.length<a}},"queryFn")}),"contractorsOptions"),b=n(({search:t,options:e}={})=>{let{client:o}=c();return u({...g(o,t),enabled:e?.queryOptions?.enabled??!0})},"useContractors");export{g as a,b};
2
+ //# sourceMappingURL=chunk-UWHJF45X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/InvoiceSchedule/api.ts"],"sourcesContent":["import { useQuery, queryOptions } from '@tanstack/react-query';\nimport { getV1Employments, MinimalEmployment } from '@/src/client';\nimport { Client } from '@/src/client/client';\nimport { useClient } from '@/src/context';\n\n/**\n * Pages to walk when loading contractors for the picker. `GET /v1/employments` is paginated,\n * so the picker loads pages up front to populate a plain select.\n *\n * Pass a `search` term to have the API filter by name instead — matched per word, ignoring\n * case and accents — which keeps the response small enough that the walk rarely runs past\n * the first page.\n */\nconst MAX_PAGES = 10;\nconst PAGE_SIZE = 100;\n\nexport type Contractor = {\n id: string;\n fullName: string;\n};\n\nexport type ContractorsResult = {\n contractors: Contractor[];\n /**\n * Total contractors the API reports. Larger than `contractors.length` when the walk hit\n * `MAX_PAGES`, in which case the picker is showing a subset.\n */\n totalCount: number;\n /**\n * True when the walk stopped early, so the list is incomplete.\n */\n isTruncated: boolean;\n};\n\nconst toContractor = (employment: MinimalEmployment): Contractor => ({\n id: employment.id,\n fullName: employment.full_name,\n});\n\n/**\n * Query options factory for the active contractors of the authenticated company.\n */\nexport const contractorsOptions = (client: Client, search?: string) =>\n queryOptions({\n queryKey: ['invoice-schedule-contractors', search ?? null] as const,\n queryFn: async (): Promise<ContractorsResult> => {\n const collected: MinimalEmployment[] = [];\n let page = 1;\n let totalPages = 1;\n let totalCount = 0;\n\n while (page <= Math.min(totalPages, MAX_PAGES)) {\n const response = await getV1Employments({\n client,\n // The client supplies the real credentials; the generated type only requires the key.\n headers: { Authorization: `` },\n query: {\n employment_type: 'contractor',\n status: 'active',\n // `name` is not in the generated client's query type yet — it arrives with the\n // next `npm run openapi-ts` once the API change adding it is deployed. Spread\n // rather than an inline key so this type-checks against the current client; the\n // parameter is forwarded either way, and ignored by the API until then.\n ...(search ? { name: search } : {}),\n page,\n page_size: PAGE_SIZE,\n },\n });\n\n if (response.error || !response.data) {\n throw new Error('Failed to fetch contractors');\n }\n\n const data = response.data.data;\n collected.push(...(data?.employments ?? []));\n totalPages = data?.total_pages ?? 1;\n totalCount = data?.total_count ?? collected.length;\n page += 1;\n }\n\n return {\n contractors: collected.map(toContractor),\n totalCount,\n isTruncated: collected.length < totalCount,\n };\n },\n });\n\n/**\n * Active contractors for the invoice-schedule contractor picker.\n */\nexport const useContractors = ({\n search,\n options,\n}: {\n /**\n * Filter contractors by name, server-side. Omit to load the company's active contractors.\n */\n search?: string;\n options?: { queryOptions?: { enabled?: boolean } };\n} = {}) => {\n const { client } = useClient();\n return useQuery({\n ...contractorsOptions(client as Client, search),\n enabled: options?.queryOptions?.enabled ?? true,\n });\n};\n"],"mappings":"wHAAA,OAAS,YAAAA,EAAU,gBAAAC,MAAoB,wBAavC,IAAMC,EAAY,GACZC,EAAY,IAoBZC,EAAeC,EAACC,IAA+C,CACnE,GAAIA,EAAW,GACf,SAAUA,EAAW,SACvB,GAHqB,gBAQRC,EAAqBF,EAAA,CAACG,EAAgBC,IACjDC,EAAa,CACX,SAAU,CAAC,+BAAgCD,GAAU,IAAI,EACzD,QAASJ,EAAA,SAAwC,CAC/C,IAAMM,EAAiC,CAAC,EACpCC,EAAO,EACPC,EAAa,EACbC,EAAa,EAEjB,KAAOF,GAAQ,KAAK,IAAIC,EAAYX,CAAS,GAAG,CAC9C,IAAMa,EAAW,MAAMC,EAAiB,CACtC,OAAAR,EAEA,QAAS,CAAE,cAAe,EAAG,EAC7B,MAAO,CACL,gBAAiB,aACjB,OAAQ,SAKR,GAAIC,EAAS,CAAE,KAAMA,CAAO,EAAI,CAAC,EACjC,KAAAG,EACA,UAAWT,CACb,CACF,CAAC,EAED,GAAIY,EAAS,OAAS,CAACA,EAAS,KAC9B,MAAM,IAAI,MAAM,6BAA6B,EAG/C,IAAME,EAAOF,EAAS,KAAK,KAC3BJ,EAAU,KAAK,GAAIM,GAAM,aAAe,CAAC,CAAE,EAC3CJ,EAAaI,GAAM,aAAe,EAClCH,EAAaG,GAAM,aAAeN,EAAU,OAC5CC,GAAQ,CACV,CAEA,MAAO,CACL,YAAaD,EAAU,IAAIP,CAAY,EACvC,WAAAU,EACA,YAAaH,EAAU,OAASG,CAClC,CACF,EAxCS,UAyCX,CAAC,EA5C+B,sBAiDrBI,EAAiBb,EAAA,CAAC,CAC7B,OAAAI,EACA,QAAAU,CACF,EAMI,CAAC,IAAM,CACT,GAAM,CAAE,OAAAX,CAAO,EAAIY,EAAU,EAC7B,OAAOC,EAAS,CACd,GAAGd,EAAmBC,EAAkBC,CAAM,EAC9C,QAASU,GAAS,cAAc,SAAW,EAC7C,CAAC,CACH,EAf8B","names":["useQuery","queryOptions","MAX_PAGES","PAGE_SIZE","toContractor","__name","employment","contractorsOptions","client","search","queryOptions","collected","page","totalPages","totalCount","response","getV1Employments","data","useContractors","options","useClient","useQuery"]}
@@ -1,2 +1,2 @@
1
- var e={type:"object",properties:{contract_origin:{description:"",oneOf:[{const:"provided_by_remote",description:"Create a new terms and conditions and statement of work. This should only be used if you do not have an agreement in place with a contractor or want to renegotiate an agreement.",title:"Contractor services agreement"},{const:"provided_by_customer",description:"Use your own agreement outside Remote.",title:"Without an agreement"}],title:"Contract options",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}}},required:["contract_origin"]};export{e as a};
2
- //# sourceMappingURL=chunk-BFXBFGBH.js.map
1
+ var e={type:"object",properties:{contract_origin:{description:"",oneOf:[{const:"provided_by_remote",description:"Create a new terms and conditions and statement of work. This should only be used if you do not have an agreement in place with a contractor or want to renegotiate an agreement.",title:"Contractor services agreement"},{const:"provided_by_customer",description:"Use your own agreement outside Remote.",title:"Without an agreement"}],title:"Contract options",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}}},required:["contract_origin"],"x-rmt-meta":{jsfVersion:"1"}};export{e as a};
2
+ //# sourceMappingURL=chunk-UYOKK4QW.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/flows/ContractorOnboarding/json-schemas/contractOrigin.ts"],"sourcesContent":["export const contractOriginSchema = {\n type: 'object',\n properties: {\n contract_origin: {\n description: '',\n oneOf: [\n {\n const: 'provided_by_remote',\n description:\n 'Create a new terms and conditions and statement of work. This should only be used if you do not have an agreement in place with a contractor or want to renegotiate an agreement.',\n title: 'Contractor services agreement',\n },\n {\n const: 'provided_by_customer',\n description: 'Use your own agreement outside Remote.',\n title: 'Without an agreement',\n },\n ],\n title: 'Contract options',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n },\n required: ['contract_origin'],\n};\n"],"mappings":"AAAO,IAAMA,EAAuB,CAClC,KAAM,SACN,WAAY,CACV,gBAAiB,CACf,YAAa,GACb,MAAO,CACL,CACE,MAAO,qBACP,YACE,oLACF,MAAO,+BACT,EACA,CACE,MAAO,uBACP,YAAa,yCACb,MAAO,sBACT,CACF,EACA,MAAO,mBACP,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,CACF,EACA,SAAU,CAAC,iBAAiB,CAC9B","names":["contractOriginSchema"]}
1
+ {"version":3,"sources":["../src/flows/ContractorOnboarding/json-schemas/contractOrigin.ts"],"sourcesContent":["export const contractOriginSchema = {\n type: 'object',\n properties: {\n contract_origin: {\n description: '',\n oneOf: [\n {\n const: 'provided_by_remote',\n description:\n 'Create a new terms and conditions and statement of work. This should only be used if you do not have an agreement in place with a contractor or want to renegotiate an agreement.',\n title: 'Contractor services agreement',\n },\n {\n const: 'provided_by_customer',\n description: 'Use your own agreement outside Remote.',\n title: 'Without an agreement',\n },\n ],\n title: 'Contract options',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n },\n required: ['contract_origin'],\n 'x-rmt-meta': {\n jsfVersion: '1',\n },\n};\n"],"mappings":"AAAO,IAAMA,EAAuB,CAClC,KAAM,SACN,WAAY,CACV,gBAAiB,CACf,YAAa,GACb,MAAO,CACL,CACE,MAAO,qBACP,YACE,oLACF,MAAO,+BACT,EACA,CACE,MAAO,uBACP,YAAa,yCACb,MAAO,sBACT,CACF,EACA,MAAO,mBACP,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,CACF,EACA,SAAU,CAAC,iBAAiB,EAC5B,aAAc,CACZ,WAAY,GACd,CACF","names":["contractOriginSchema"]}
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-MZUPTP2B.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-C4HFMTSB.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as S}from"react/jsx-runtime";function w({components:c,onSubmit:m,onSuccess:d,onError:p}){let{contractorOnboardingBag:r}=e(),u=n(async(i,l)=>{try{let t=await r.parseFormValues(i);await m?.(t);let o=await r.onSubmit(i);if(o?.data){await d?.(o.data),r?.next();return}}catch(t){let o=a(t,r.meta?.fields?.contract_origin,l);p?.(o)}},"handleSubmit"),g=r.stepState.values?.contract_origin||r.initialValues.contract_origin;return S(s,{components:c,defaultValues:g,onSubmit:u})}n(w,"ContractOriginStep");export{w as a};
2
- //# sourceMappingURL=chunk-LBNS4VT7.js.map
1
+ import{a as s}from"./chunk-H47XUL2L.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-C4HFMTSB.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as S}from"react/jsx-runtime";function w({components:c,onSubmit:m,onSuccess:d,onError:p}){let{contractorOnboardingBag:r}=e(),u=n(async(i,l)=>{try{let t=await r.parseFormValues(i);await m?.(t);let o=await r.onSubmit(i);if(o?.data){await d?.(o.data),r?.next();return}}catch(t){let o=a(t,r.meta?.fields?.contract_origin,l);p?.(o)}},"handleSubmit"),g=r.stepState.values?.contract_origin||r.initialValues.contract_origin;return S(s,{components:c,defaultValues:g,onSubmit:u})}n(w,"ContractOriginStep");export{w as a};
2
+ //# sourceMappingURL=chunk-V3AVEPNA.js.map
@@ -1,2 +1,2 @@
1
- import{a as _}from"./chunk-WGDZTF7Y.js";import{a as c}from"./chunk-2QVO3BVI.js";import{j as i,k as p,l as a,n as s,o as F}from"./chunk-AUPAAQUT.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as d}from"react/jsx-runtime";function w({field:o,fieldState:C,fieldData:m}){let{name:t,label:r,description:l}=m;return d(i,{"data-field":t,className:`RemoteFlows__TimeField__Item__${t}`,children:[r&&e(p,{className:"RemoteFlows__TimeField__Label",children:r}),e(a,{children:e(c,{...o,type:"time",value:o.value??"",onChange:T=>{o.onChange(T)},className:"RemoteFlows__TimeField__Input",placeholder:r})}),(l||m.meta?.helpCenter)&&e(s,{className:"RemoteFlows__TimeField__Description",helpCenter:e(_,{helpCenter:m.meta?.helpCenter}),children:l}),C.error&&e(F,{className:"RemoteFlows__TimeField__Error"})]})}n(w,"TimeFieldDefault");export{w as a};
2
- //# sourceMappingURL=chunk-KZ5ZQTBF.js.map
1
+ import{a as _}from"./chunk-JLZFNUBH.js";import{a as c}from"./chunk-2QVO3BVI.js";import{j as i,k as p,l as a,n as s,o as F}from"./chunk-AUPAAQUT.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as d}from"react/jsx-runtime";function w({field:o,fieldState:C,fieldData:m}){let{name:t,label:r,description:l}=m;return d(i,{"data-field":t,className:`RemoteFlows__TimeField__Item__${t}`,children:[r&&e(p,{className:"RemoteFlows__TimeField__Label",children:r}),e(a,{children:e(c,{...o,type:"time",value:o.value??"",onChange:T=>{o.onChange(T)},className:"RemoteFlows__TimeField__Input",placeholder:r})}),(l||m.meta?.helpCenter)&&e(s,{className:"RemoteFlows__TimeField__Description",helpCenter:e(_,{helpCenter:m.meta?.helpCenter}),children:l}),C.error&&e(F,{className:"RemoteFlows__TimeField__Error"})]})}n(w,"TimeFieldDefault");export{w as a};
2
+ //# sourceMappingURL=chunk-V6PPOGPT.js.map
@@ -1,2 +1,2 @@
1
- var e={type:"object",properties:{contract_preview_header:{type:"null",title:"Sign contractor services agreement",description:"Before we can move forward, we'll need you to sign the contractor Service Agreement.","x-jsf-presentation":{inputType:"hidden",meta:{ignoreValue:!0}}},contract_preview_statement:{type:"null",title:"Review document here",description:"Preview or download the agreement before signing. Once signed, you\u2019ll be able to view the fully signed document under the contractor profile.","x-jsf-presentation":{inputType:"hidden",meta:{ignoreValue:!0}}},review_completed:{type:"boolean","x-jsf-presentation":{inputType:"hidden"},default:!1},signature:{type:"string","x-jsf-presentation":{inputType:"text"},title:"Enter full name",description:"By signing, you agree to this legally binding document and acknowledge the information within is accurate to the best of your knowledge. After you sign, this document will be sent to the recipient to collect their signature."}},required:["signature"]};export{e as a};
2
- //# sourceMappingURL=chunk-IJCTN52C.js.map
1
+ var e={type:"object",properties:{contract_preview_header:{type:"null",title:"Sign contractor services agreement",description:"Before we can move forward, we'll need you to sign the contractor Service Agreement.","x-jsf-presentation":{inputType:"hidden",meta:{ignoreValue:!0}}},contract_preview_statement:{type:"null",title:"Review document here",description:"Preview or download the agreement before signing. Once signed, you\u2019ll be able to view the fully signed document under the contractor profile.","x-jsf-presentation":{inputType:"hidden",meta:{ignoreValue:!0}}},review_completed:{type:"boolean","x-jsf-presentation":{inputType:"hidden"},default:!1},signature:{type:"string","x-jsf-presentation":{inputType:"text"},title:"Enter full name",description:"By signing, you agree to this legally binding document and acknowledge the information within is accurate to the best of your knowledge. After you sign, this document will be sent to the recipient to collect their signature."}},required:["signature"],"x-rmt-meta":{jsfVersion:"1"}};export{e as a};
2
+ //# sourceMappingURL=chunk-VDJJEIOD.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/flows/ContractorOnboarding/json-schemas/signature.ts"],"sourcesContent":["export const signatureSchema = {\n type: 'object',\n properties: {\n contract_preview_header: {\n type: 'null',\n title: 'Sign contractor services agreement',\n description:\n \"Before we can move forward, we'll need you to sign the contractor Service Agreement.\",\n 'x-jsf-presentation': {\n inputType: 'hidden',\n meta: {\n ignoreValue: true,\n },\n },\n },\n contract_preview_statement: {\n type: 'null',\n title: 'Review document here',\n description:\n 'Preview or download the agreement before signing. Once signed, you’ll be able to view the fully signed document under the contractor profile.',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n meta: {\n ignoreValue: true,\n },\n },\n },\n review_completed: {\n type: 'boolean',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n default: false,\n },\n signature: {\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'text',\n },\n title: 'Enter full name',\n description:\n 'By signing, you agree to this legally binding document and acknowledge the information within is accurate to the best of your knowledge. After you sign, this document will be sent to the recipient to collect their signature.',\n },\n },\n required: ['signature'],\n};\n"],"mappings":"AAAO,IAAMA,EAAkB,CAC7B,KAAM,SACN,WAAY,CACV,wBAAyB,CACvB,KAAM,OACN,MAAO,qCACP,YACE,uFACF,qBAAsB,CACpB,UAAW,SACX,KAAM,CACJ,YAAa,EACf,CACF,CACF,EACA,2BAA4B,CAC1B,KAAM,OACN,MAAO,uBACP,YACE,qJACF,qBAAsB,CACpB,UAAW,SACX,KAAM,CACJ,YAAa,EACf,CACF,CACF,EACA,iBAAkB,CAChB,KAAM,UACN,qBAAsB,CACpB,UAAW,QACb,EACA,QAAS,EACX,EACA,UAAW,CACT,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,EACA,MAAO,kBACP,YACE,kOACJ,CACF,EACA,SAAU,CAAC,WAAW,CACxB","names":["signatureSchema"]}
1
+ {"version":3,"sources":["../src/flows/ContractorOnboarding/json-schemas/signature.ts"],"sourcesContent":["export const signatureSchema = {\n type: 'object',\n properties: {\n contract_preview_header: {\n type: 'null',\n title: 'Sign contractor services agreement',\n description:\n \"Before we can move forward, we'll need you to sign the contractor Service Agreement.\",\n 'x-jsf-presentation': {\n inputType: 'hidden',\n meta: {\n ignoreValue: true,\n },\n },\n },\n contract_preview_statement: {\n type: 'null',\n title: 'Review document here',\n description:\n 'Preview or download the agreement before signing. Once signed, you’ll be able to view the fully signed document under the contractor profile.',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n meta: {\n ignoreValue: true,\n },\n },\n },\n review_completed: {\n type: 'boolean',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n default: false,\n },\n signature: {\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'text',\n },\n title: 'Enter full name',\n description:\n 'By signing, you agree to this legally binding document and acknowledge the information within is accurate to the best of your knowledge. After you sign, this document will be sent to the recipient to collect their signature.',\n },\n },\n required: ['signature'],\n 'x-rmt-meta': {\n jsfVersion: '1',\n },\n};\n"],"mappings":"AAAO,IAAMA,EAAkB,CAC7B,KAAM,SACN,WAAY,CACV,wBAAyB,CACvB,KAAM,OACN,MAAO,qCACP,YACE,uFACF,qBAAsB,CACpB,UAAW,SACX,KAAM,CACJ,YAAa,EACf,CACF,CACF,EACA,2BAA4B,CAC1B,KAAM,OACN,MAAO,uBACP,YACE,qJACF,qBAAsB,CACpB,UAAW,SACX,KAAM,CACJ,YAAa,EACf,CACF,CACF,EACA,iBAAkB,CAChB,KAAM,UACN,qBAAsB,CACpB,UAAW,QACb,EACA,QAAS,EACX,EACA,UAAW,CACT,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,EACA,MAAO,kBACP,YACE,kOACJ,CACF,EACA,SAAU,CAAC,WAAW,EACtB,aAAc,CACZ,WAAY,GACd,CACF","names":["signatureSchema"]}
@@ -0,0 +1,2 @@
1
+ import{a as s}from"./chunk-KVUKJU5U.js";import{a as i}from"./chunk-PKJZ2N4C.js";import{a as v}from"./chunk-BHHK7QQZ.js";import{a as B}from"./chunk-XEVHXHHC.js";import{a as l}from"./chunk-GE74QKS6.js";import{a as b}from"./chunk-EVUTX6TJ.js";import{a as n}from"./chunk-CW7CHRMN.js";import{a as f}from"./chunk-D6PMXNBM.js";import{a as c}from"./chunk-DB4JHJ3Z.js";import{a as C}from"./chunk-DDMXUBCN.js";import{a as p}from"./chunk-TX6RWQUR.js";import{a}from"./chunk-4WSYC3Q5.js";import{a as u}from"./chunk-GTS7KFEM.js";import{a as g}from"./chunk-V3AVEPNA.js";import{a as S}from"./chunk-FV6NNYDP.js";import{a as d}from"./chunk-SVVZOMLQ.js";import{a as e}from"./chunk-Q3ALCPJN.js";import{a as m}from"./chunk-25MUO3XP.js";import{a as o}from"./chunk-P37U34EQ.js";import{useId as D,useRef as V,useMemo as x}from"react";import{jsx as E}from"react/jsx-runtime";var j=o(({render:I,employmentId:O,externalId:w,countryCode:P,skipSteps:R,initialValues:h,options:k})=>{let F=D(),t=V(void 0),y=x(()=>({setValue:t}),[]),r=m({options:{...k,onContractReviewed:o(()=>{t.current&&t.current("review_completed",!0)},"onContractReviewed")},employmentId:O,externalId:w,countryCode:P,skipSteps:R,initialValues:h});return E(e.Provider,{value:{contractorOnboardingBag:r,formId:F,formRef:y},children:I({contractorOnboardingBag:r,components:{BasicInformationStep:a,SelectCountryStep:i,BackButton:n,SubmitButton:c,PricingPlanStep:p,EligibilityQuestionnaireStep:l,ContractOriginStep:g,InvoiceScheduleStep:b,CreateInvoiceScheduleStep:B,ContractDetailsStep:u,ContractPreviewStep:S,OnboardingInvite:f,ContractReviewButton:d,SaveDraftButton:s,SkipInvoiceScheduleButton:v,PreviewInvoiceButton:C}})})},"ContractorOnboardingFlow");export{j as a};
2
+ //# sourceMappingURL=chunk-VKUGCD5J.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/ContractorOnboarding/ContractorOnboarding.tsx"],"sourcesContent":["import { UseFormSetValue } from 'react-hook-form';\nimport { useId, useRef, useMemo } from 'react';\nimport { OnboardingBack } from '@/src/flows/ContractorOnboarding/components/OnboardingBack';\nimport { SelectCountryStep } from '@/src/flows/ContractorOnboarding/components/SelectCountryStep';\nimport { ContractorOnboardingContext } from '@/src/flows/ContractorOnboarding/context';\nimport { useContractorOnboarding } from '@/src/flows/ContractorOnboarding/hooks';\nimport { ContractorOnboardingFlowProps } from '@/src/flows/ContractorOnboarding/types';\nimport { BasicInformationStep } from '@/src/flows/ContractorOnboarding/components/BasicInformationStep';\nimport { OnboardingSubmit } from '@/src/flows/ContractorOnboarding/components/OnboardingSubmit';\nimport { PricingPlanStep } from '@/src/flows/ContractorOnboarding/components/PricingPlan';\nimport { ContractDetailsStep } from '@/src/flows/ContractorOnboarding/components/ContractDetailsStep';\nimport { ContractPreviewStep } from '@/src/flows/ContractorOnboarding/components/ContractPreviewStep';\nimport { OnboardingInvite } from '@/src/flows/ContractorOnboarding/components/OnboardingInvite';\nimport { ContractReviewButton } from '@/src/flows/ContractorOnboarding/components/ContractReviewButton';\nimport { EligibilityQuestionnaireStep } from '@/src/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep';\nimport { SaveDraftButton } from '@/src/flows/ContractorOnboarding/components/SaveDraftButton';\nimport { SkipInvoiceScheduleButton } from '@/src/flows/ContractorOnboarding/components/SkipInvoiceScheduleButton';\nimport { PreviewInvoiceButton } from '@/src/flows/ContractorOnboarding/components/PreviewInvoiceButton';\nimport { ContractOriginStep } from '@/src/flows/ContractorOnboarding/components/ContractOriginStep';\nimport { InvoiceScheduleStep } from '@/src/flows/ContractorOnboarding/components/InvoiceScheduleStep';\nimport { CreateInvoiceScheduleStep } from '@/src/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep';\n\nexport const ContractorOnboardingFlow = ({\n render,\n employmentId,\n externalId,\n countryCode,\n skipSteps,\n initialValues,\n options,\n}: ContractorOnboardingFlowProps) => {\n const formId = useId();\n // Store form's setValue method in ref to allow sibling components\n // to update form state directly (e.g., ContractReviewButton setting review_completed)\n const setValueRef = useRef<\n UseFormSetValue<Record<string, unknown>> | undefined\n >(undefined);\n const formRef = useMemo(() => ({ setValue: setValueRef }), []);\n\n const contractorOnboardingBag = useContractorOnboarding({\n options: {\n ...options,\n onContractReviewed: () => {\n // Sync with internal form when contract is marked as reviewed\n if (setValueRef.current) {\n setValueRef.current('review_completed', true);\n }\n },\n },\n employmentId,\n externalId,\n countryCode,\n skipSteps,\n initialValues,\n });\n\n return (\n <ContractorOnboardingContext.Provider\n value={{ contractorOnboardingBag, formId, formRef }}\n >\n {render({\n contractorOnboardingBag,\n components: {\n BasicInformationStep: BasicInformationStep,\n SelectCountryStep: SelectCountryStep,\n BackButton: OnboardingBack,\n SubmitButton: OnboardingSubmit,\n PricingPlanStep: PricingPlanStep,\n EligibilityQuestionnaireStep: EligibilityQuestionnaireStep,\n ContractOriginStep: ContractOriginStep,\n InvoiceScheduleStep: InvoiceScheduleStep,\n CreateInvoiceScheduleStep: CreateInvoiceScheduleStep,\n ContractDetailsStep: ContractDetailsStep,\n ContractPreviewStep: ContractPreviewStep,\n OnboardingInvite: OnboardingInvite,\n ContractReviewButton: ContractReviewButton,\n SaveDraftButton: SaveDraftButton,\n SkipInvoiceScheduleButton: SkipInvoiceScheduleButton,\n PreviewInvoiceButton: PreviewInvoiceButton,\n },\n })}\n </ContractorOnboardingContext.Provider>\n );\n};\n"],"mappings":"mvBACA,OAAS,SAAAA,EAAO,UAAAC,EAAQ,WAAAC,MAAe,QAwDnC,cAAAC,MAAA,oBAnCG,IAAMC,EAA2BC,EAAA,CAAC,CACvC,OAAAC,EACA,aAAAC,EACA,WAAAC,EACA,YAAAC,EACA,UAAAC,EACA,cAAAC,EACA,QAAAC,CACF,IAAqC,CACnC,IAAMC,EAASC,EAAM,EAGfC,EAAcC,EAElB,MAAS,EACLC,EAAUC,EAAQ,KAAO,CAAE,SAAUH,CAAY,GAAI,CAAC,CAAC,EAEvDI,EAA0BC,EAAwB,CACtD,QAAS,CACP,GAAGR,EACH,mBAAoBP,EAAA,IAAM,CAEpBU,EAAY,SACdA,EAAY,QAAQ,mBAAoB,EAAI,CAEhD,EALoB,qBAMtB,EACA,aAAAR,EACA,WAAAC,EACA,YAAAC,EACA,UAAAC,EACA,cAAAC,CACF,CAAC,EAED,OACER,EAACkB,EAA4B,SAA5B,CACC,MAAO,CAAE,wBAAAF,EAAyB,OAAAN,EAAQ,QAAAI,CAAQ,EAEjD,SAAAX,EAAO,CACN,wBAAAa,EACA,WAAY,CACV,qBAAsBG,EACtB,kBAAmBC,EACnB,WAAYC,EACZ,aAAcC,EACd,gBAAiBC,EACjB,6BAA8BC,EAC9B,mBAAoBC,EACpB,oBAAqBC,EACrB,0BAA2BC,EAC3B,oBAAqBC,EACrB,oBAAqBC,EACrB,iBAAkBC,EAClB,qBAAsBC,EACtB,gBAAiBC,EACjB,0BAA2BC,EAC3B,qBAAsBC,CACxB,CACF,CAAC,EACH,CAEJ,EA7DwC","names":["useId","useRef","useMemo","jsx","ContractorOnboardingFlow","__name","render","employmentId","externalId","countryCode","skipSteps","initialValues","options","formId","useId","setValueRef","useRef","formRef","useMemo","contractorOnboardingBag","useContractorOnboarding","ContractorOnboardingContext","BasicInformationStep","SelectCountryStep","OnboardingBack","OnboardingSubmit","PricingPlanStep","EligibilityQuestionnaireStep","ContractOriginStep","InvoiceScheduleStep","CreateInvoiceScheduleStep","ContractDetailsStep","ContractPreviewStep","OnboardingInvite","ContractReviewButton","SaveDraftButton","SkipInvoiceScheduleButton","PreviewInvoiceButton"]}
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-WGDZTF7Y.js";import{a as _}from"./chunk-2HQDOWW2.js";import{j as a,k as i,l as s,n,o as F}from"./chunk-AUPAAQUT.js";import{n as p}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as U}from"react/jsx-runtime";function R({field:l,fieldState:C,fieldData:o}){let{name:r,label:d,description:m,multiple:f,accept:u}=o;return U(a,{"data-field":r,className:`RemoteFlows__FileUpload__Item__${r}`,children:[e(i,{className:"RemoteFlows__FileUpload__Label",children:d}),e(s,{children:e(_,{onChange:l.onChange,multiple:f,className:p("RemoteFlows__FileUpload__Input"),accept:u,files:l.value})}),(m||o.meta?.helpCenter)&&e("div",{className:"flex items-center justify-between",children:e(n,{className:"RemoteFlows__FileUpload__Description",helpCenter:e(c,{helpCenter:o.meta?.helpCenter}),children:m})}),C.error&&e(F,{className:"RemoteFlows__FileUpload__Error"})]})}t(R,"FileUploadFieldDefault");export{R as a};
2
- //# sourceMappingURL=chunk-DSYQY3K6.js.map
1
+ import{a as c}from"./chunk-JLZFNUBH.js";import{a as _}from"./chunk-FB3PEQTO.js";import{j as a,k as i,l as s,n,o as F}from"./chunk-AUPAAQUT.js";import{n as p}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as U}from"react/jsx-runtime";function R({field:l,fieldState:C,fieldData:o}){let{name:r,label:d,description:m,multiple:f,accept:u}=o;return U(a,{"data-field":r,className:`RemoteFlows__FileUpload__Item__${r}`,children:[e(i,{className:"RemoteFlows__FileUpload__Label",children:d}),e(s,{children:e(_,{onChange:l.onChange,multiple:f,className:p("RemoteFlows__FileUpload__Input"),accept:u,files:l.value})}),(m||o.meta?.helpCenter)&&e("div",{className:"flex items-center justify-between",children:e(n,{className:"RemoteFlows__FileUpload__Description",helpCenter:e(c,{helpCenter:o.meta?.helpCenter}),children:m})}),C.error&&e(F,{className:"RemoteFlows__FileUpload__Error"})]})}t(R,"FileUploadFieldDefault");export{R as a};
2
+ //# sourceMappingURL=chunk-VRPZ4GHN.js.map
@@ -1,2 +1,2 @@
1
- import{b as i,c as m,d as s,e as f}from"./chunk-2IL6T6EB.js";import{a as n}from"./chunk-NW3D7CPK.js";import{a}from"./chunk-P37U34EQ.js";import{useState as O}from"react";var B=a(({proposedTerminationDate:e,employeeName:y,employmentId:o,employment:r,render:d})=>{let[t,u]=O(!1),l=m({employmentId:o}),p=n(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=i({employmentId:o,options:{enabled:t}}),D=s({employmentId:o,date:e}),P=f({employmentId:o,proposedTerminationDate:e,employment:r});return d({leavePoliciesSummaryQuery:l,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:D,formattedProposedTerminationDate:p,employeeName:y,proposedTerminationDate:e,summaryData:P??{data:{entitledDays:"0 days",bookedDays:"0 days",usedDays:"0 days",approvedDaysBeforeTermination:"0 days",approvedDaysAfterTermination:"0 days",remainingDays:"0 days",isUnlimitedPto:!1},isLoading:!1,isError:!1,error:null},employment:r,open:t,onOpenChange:a(()=>{u(T=>!T)},"onOpenChange")})},"PaidTimeOffContainer");export{B as a};
2
- //# sourceMappingURL=chunk-PFNDDLHG.js.map
1
+ import{b as i,c as m,d as s,e as f}from"./chunk-LADLAP2S.js";import{a as n}from"./chunk-NW3D7CPK.js";import{a}from"./chunk-P37U34EQ.js";import{useState as O}from"react";var B=a(({proposedTerminationDate:e,employeeName:y,employmentId:o,employment:r,render:d})=>{let[t,u]=O(!1),l=m({employmentId:o}),p=n(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=i({employmentId:o,options:{enabled:t}}),D=s({employmentId:o,date:e}),P=f({employmentId:o,proposedTerminationDate:e,employment:r});return d({leavePoliciesSummaryQuery:l,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:D,formattedProposedTerminationDate:p,employeeName:y,proposedTerminationDate:e,summaryData:P??{data:{entitledDays:"0 days",bookedDays:"0 days",usedDays:"0 days",approvedDaysBeforeTermination:"0 days",approvedDaysAfterTermination:"0 days",remainingDays:"0 days",isUnlimitedPto:!1},isLoading:!1,isError:!1,error:null},employment:r,open:t,onOpenChange:a(()=>{u(T=>!T)},"onOpenChange")})},"PaidTimeOffContainer");export{B as a};
2
+ //# sourceMappingURL=chunk-VVZTXCX2.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-CNSE26GY.js";import{b as o}from"./chunk-PGWKJ6FK.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function u(){let{onboardingBag:e}=o();return r(t,{defaultValues:{},onSubmit:n(async()=>{e?.next()},"handleSubmit")})}n(u,"PreviewEmploymentAgreementStep");export{u as a};
2
- //# sourceMappingURL=chunk-FORYAPUZ.js.map
1
+ import{a as t}from"./chunk-XMVV6S77.js";import{b as o}from"./chunk-PGWKJ6FK.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function u(){let{onboardingBag:e}=o();return r(t,{defaultValues:{},onSubmit:n(async()=>{e?.next()},"handleSubmit")})}n(u,"PreviewEmploymentAgreementStep");export{u as a};
2
+ //# sourceMappingURL=chunk-VYTUM3RI.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-7GO4BHOI.js";import{b as i}from"./chunk-76ZDXC2T.js";import{x as a}from"./chunk-C4HFMTSB.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-GM3UWUVL.js.map
1
+ import{a as n}from"./chunk-53QBSOMG.js";import{b as i}from"./chunk-76ZDXC2T.js";import{x as a}from"./chunk-C4HFMTSB.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-WGO25FWG.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-5IRUNNZB.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-QYKJU45J.js.map
1
+ import{a as n}from"./chunk-XDLVDPQ7.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-WKWL57L6.js.map
@@ -0,0 +1,2 @@
1
+ import{b as L}from"./chunk-UWHJF45X.js";import{a as P}from"./chunk-U4H7URYB.js";import{a as h,b,c as S,d as v,e as w,g as N}from"./chunk-ROO2IFBF.js";import{a as y,b as x,c as I}from"./chunk-B3MEKP45.js";import{j as C,k as f,l as _,n as g,o as F}from"./chunk-AUPAAQUT.js";import{n as i}from"./chunk-C4HFMTSB.js";import{a as u}from"./chunk-P37U34EQ.js";import{useMemo as J,useState as n}from"react";import{CheckIcon as j,ChevronDownIcon as A}from"lucide-react";import{jsx as o,jsxs as t}from"react/jsx-runtime";var B=300;function Z({value:s,setValue:R,label:a,description:c,name:l}){let[d,p]=n(!1),[D,E]=n(""),[k,z]=n(""),T=P(async e=>{z(e)},B),{data:r,isFetching:M}=L({search:k}),m=J(()=>r?.contractors??[],[r]),[O,$]=n(null),G=m.find(e=>e.id===s)?.fullName??O??a;return t(C,{"data-field":l,className:`RemoteFlows__ContractorSelectField__Item__${l}`,children:[o(f,{className:"RemoteFlows__ContractorSelectField__Label",children:a}),o(_,{children:t(y,{open:d,onOpenChange:p,children:[t(x,{type:"button",role:"combobox","aria-expanded":d,"aria-label":a,"data-testid":l,className:i("border-input aria-invalid:ring-destructive/20 aria-invalid:border-destructive relative flex w-full items-center justify-between rounded-xl border bg-transparent px-4 py-7 text-sm whitespace-nowrap transition-[color] outline-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","focus-visible:border-focused","RemoteFlows__ContractorSelectField__Trigger"),children:[o("span",{className:i("line-clamp-1 text-left",s?"font-medium":"text-muted-foreground RemoteFlows__ContractorSelectField__Placeholder"),children:G}),o(A,{className:"size-4 opacity-50"})]}),o(I,{align:"start",className:"w-(--radix-popover-trigger-width) p-0 RemoteFlows__ContractorSelectField__Content",children:t(h,{shouldFilter:!1,children:[o(b,{placeholder:"Search contractors\u2026",value:D,onValueChange:e=>{E(e),T(e)}}),t(S,{children:[o(v,{children:M?"Searching\u2026":"No contractors found."}),o(w,{children:m.map(e=>o(N,{value:e.id,className:"RemoteFlows__ContractorSelectField__Item",onSelect:()=>{R(e.id),$(e.fullName),p(!1)},children:t("span",{className:"flex w-full items-center justify-between gap-2",children:[e.fullName,e.id===s&&o(j,{className:"size-4 shrink-0"})]})},e.id))})]})]})})]})}),c&&t(g,{children:[c,r?.isTruncated?` Showing ${m.length} of ${r.totalCount}; type to narrow the list.`:""]}),o(F,{})]})}u(Z,"ContractorSelectField");export{Z as a};
2
+ //# sourceMappingURL=chunk-WRTUY6K3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/InvoiceSchedule/components/ContractorSelectField.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport { CheckIcon, ChevronDownIcon } from 'lucide-react';\nimport {\n FormControl,\n FormDescription,\n FormItem,\n FormLabel,\n FormMessage,\n} from '@/src/components/ui/form';\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from '@/src/components/ui/command';\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from '@/src/components/ui/popover';\nimport { useDebounce } from '@/src/common/hooks';\nimport { useContractors } from '@/src/flows/InvoiceSchedule/api';\nimport { cn } from '@/src/lib/utils';\nimport { JSFCustomComponentProps } from '@/src/types/remoteFlows';\n\nconst SEARCH_DEBOUNCE_MS = 300;\n\n/**\n * Searchable contractor picker for the standalone invoice-schedule screen.\n *\n * A plain select would need every contractor loaded up front, which does not scale for the\n * companies that need this screen most. This queries `GET /v1/employments?name=` as the user\n * types instead — matched per word, ignoring case and accents — so the list stays small.\n *\n * Filtering is left to the API (`shouldFilter={false}`): cmdk's own client-side filter would\n * otherwise re-filter the already-filtered results against the raw input and hide valid\n * matches, since the API matches each word independently while cmdk matches the whole string.\n */\nexport function ContractorSelectField({\n value,\n setValue,\n label,\n description,\n name,\n}: JSFCustomComponentProps) {\n const [open, setOpen] = useState(false);\n const [search, setSearch] = useState('');\n const [debouncedSearch, setDebouncedSearch] = useState('');\n\n const onSearchChange = useDebounce(async (next: string) => {\n setDebouncedSearch(next);\n }, SEARCH_DEBOUNCE_MS);\n\n const { data, isFetching } = useContractors({ search: debouncedSearch });\n\n const contractors = useMemo(() => data?.contractors ?? [], [data]);\n\n // Keep the chosen contractor's name visible on the trigger even once the search that\n // surfaced them has been narrowed away.\n const [selectedLabel, setSelectedLabel] = useState<string | null>(null);\n const selected = contractors.find((c) => c.id === value);\n const triggerLabel = selected?.fullName ?? selectedLabel ?? label;\n\n return (\n <FormItem\n data-field={name}\n className={`RemoteFlows__ContractorSelectField__Item__${name}`}\n >\n <FormLabel className='RemoteFlows__ContractorSelectField__Label'>\n {label}\n </FormLabel>\n <FormControl>\n <Popover open={open} onOpenChange={setOpen}>\n {/* PopoverTrigger ships unstyled, so it borrows SelectTrigger's classes verbatim\n to sit flush with the other inputs on the form. */}\n <PopoverTrigger\n type='button'\n role='combobox'\n aria-expanded={open}\n aria-label={label}\n data-testid={name}\n className={cn(\n \"border-input aria-invalid:ring-destructive/20 aria-invalid:border-destructive relative flex w-full items-center justify-between rounded-xl border bg-transparent px-4 py-7 text-sm whitespace-nowrap transition-[color] outline-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n 'focus-visible:border-focused',\n 'RemoteFlows__ContractorSelectField__Trigger',\n )}\n >\n <span\n className={cn(\n 'line-clamp-1 text-left',\n // A chosen contractor reads as a value; the untouched field reads as a\n // placeholder, matching how the other selects distinguish the two.\n value\n ? 'font-medium'\n : 'text-muted-foreground RemoteFlows__ContractorSelectField__Placeholder',\n )}\n >\n {triggerLabel}\n </span>\n <ChevronDownIcon className='size-4 opacity-50' />\n </PopoverTrigger>\n <PopoverContent\n align='start'\n className='w-(--radix-popover-trigger-width) p-0 RemoteFlows__ContractorSelectField__Content'\n >\n <Command shouldFilter={false}>\n <CommandInput\n placeholder='Search contractors…'\n value={search}\n onValueChange={(next: string) => {\n setSearch(next);\n onSearchChange(next);\n }}\n />\n <CommandList>\n <CommandEmpty>\n {isFetching ? 'Searching…' : 'No contractors found.'}\n </CommandEmpty>\n <CommandGroup>\n {contractors.map((contractor) => (\n <CommandItem\n key={contractor.id}\n value={contractor.id}\n className='RemoteFlows__ContractorSelectField__Item'\n onSelect={() => {\n setValue(contractor.id);\n setSelectedLabel(contractor.fullName);\n setOpen(false);\n }}\n >\n <span className='flex w-full items-center justify-between gap-2'>\n {contractor.fullName}\n {contractor.id === value && (\n <CheckIcon className='size-4 shrink-0' />\n )}\n </span>\n </CommandItem>\n ))}\n </CommandGroup>\n </CommandList>\n </Command>\n </PopoverContent>\n </Popover>\n </FormControl>\n {description && (\n <FormDescription>\n {description}\n {data?.isTruncated\n ? ` Showing ${contractors.length} of ${data.totalCount}; type to narrow the list.`\n : ''}\n </FormDescription>\n )}\n <FormMessage />\n </FormItem>\n );\n}\n"],"mappings":"gWAAA,OAAS,WAAAA,EAAS,YAAAC,MAAgB,QAClC,OAAS,aAAAC,EAAW,mBAAAC,MAAuB,eAqErC,cAAAC,EAOI,QAAAC,MAPJ,oBA3CN,IAAMC,EAAqB,IAapB,SAASC,EAAsB,CACpC,MAAAC,EACA,SAAAC,EACA,MAAAC,EACA,YAAAC,EACA,KAAAC,CACF,EAA4B,CAC1B,GAAM,CAACC,EAAMC,CAAO,EAAIC,EAAS,EAAK,EAChC,CAACC,EAAQC,CAAS,EAAIF,EAAS,EAAE,EACjC,CAACG,EAAiBC,CAAkB,EAAIJ,EAAS,EAAE,EAEnDK,EAAiBC,EAAY,MAAOC,GAAiB,CACzDH,EAAmBG,CAAI,CACzB,EAAGhB,CAAkB,EAEf,CAAE,KAAAiB,EAAM,WAAAC,CAAW,EAAIC,EAAe,CAAE,OAAQP,CAAgB,CAAC,EAEjEQ,EAAcC,EAAQ,IAAMJ,GAAM,aAAe,CAAC,EAAG,CAACA,CAAI,CAAC,EAI3D,CAACK,EAAeC,CAAgB,EAAId,EAAwB,IAAI,EAEhEe,EADWJ,EAAY,KAAMK,GAAMA,EAAE,KAAOvB,CAAK,GACxB,UAAYoB,GAAiBlB,EAE5D,OACEL,EAAC2B,EAAA,CACC,aAAYpB,EACZ,UAAW,6CAA6CA,CAAI,GAE5D,UAAAR,EAAC6B,EAAA,CAAU,UAAU,4CAClB,SAAAvB,EACH,EACAN,EAAC8B,EAAA,CACC,SAAA7B,EAAC8B,EAAA,CAAQ,KAAMtB,EAAM,aAAcC,EAGjC,UAAAT,EAAC+B,EAAA,CACC,KAAK,SACL,KAAK,WACL,gBAAevB,EACf,aAAYH,EACZ,cAAaE,EACb,UAAWyB,EACT,yWACA,+BACA,6CACF,EAEA,UAAAjC,EAAC,QACC,UAAWiC,EACT,yBAGA7B,EACI,cACA,uEACN,EAEC,SAAAsB,EACH,EACA1B,EAACkC,EAAA,CAAgB,UAAU,oBAAoB,GACjD,EACAlC,EAACmC,EAAA,CACC,MAAM,QACN,UAAU,oFAEV,SAAAlC,EAACmC,EAAA,CAAQ,aAAc,GACrB,UAAApC,EAACqC,EAAA,CACC,YAAY,2BACZ,MAAOzB,EACP,cAAgBM,GAAiB,CAC/BL,EAAUK,CAAI,EACdF,EAAeE,CAAI,CACrB,EACF,EACAjB,EAACqC,EAAA,CACC,UAAAtC,EAACuC,EAAA,CACE,SAAAnB,EAAa,kBAAe,wBAC/B,EACApB,EAACwC,EAAA,CACE,SAAAlB,EAAY,IAAKmB,GAChBzC,EAAC0C,EAAA,CAEC,MAAOD,EAAW,GAClB,UAAU,2CACV,SAAU,IAAM,CACdpC,EAASoC,EAAW,EAAE,EACtBhB,EAAiBgB,EAAW,QAAQ,EACpC/B,EAAQ,EAAK,CACf,EAEA,SAAAT,EAAC,QAAK,UAAU,iDACb,UAAAwC,EAAW,SACXA,EAAW,KAAOrC,GACjBJ,EAAC2C,EAAA,CAAU,UAAU,kBAAkB,GAE3C,GAdKF,EAAW,EAelB,CACD,EACH,GACF,GACF,EACF,GACF,EACF,EACClC,GACCN,EAAC2C,EAAA,CACE,UAAArC,EACAY,GAAM,YACH,YAAYG,EAAY,MAAM,OAAOH,EAAK,UAAU,6BACpD,IACN,EAEFnB,EAAC6C,EAAA,EAAY,GACf,CAEJ,CArHgBC,EAAA3C,EAAA","names":["useMemo","useState","CheckIcon","ChevronDownIcon","jsx","jsxs","SEARCH_DEBOUNCE_MS","ContractorSelectField","value","setValue","label","description","name","open","setOpen","useState","search","setSearch","debouncedSearch","setDebouncedSearch","onSearchChange","useDebounce","next","data","isFetching","useContractors","contractors","useMemo","selectedLabel","setSelectedLabel","triggerLabel","c","FormItem","FormLabel","FormControl","Popover","PopoverTrigger","cn","ChevronDownIcon","PopoverContent","Command","CommandInput","CommandList","CommandEmpty","CommandGroup","contractor","CommandItem","CheckIcon","FormDescription","FormMessage","__name"]}
@@ -1,2 +1,2 @@
1
- import{a as y}from"./chunk-WSRH5UQP.js";import{a as p}from"./chunk-5BIMRKQB.js";import{a as n}from"./chunk-64C6G646.js";import{a as l}from"./chunk-RRZRQAIT.js";import{a as m}from"./chunk-SXPBC2FP.js";import{a}from"./chunk-SH35XDFY.js";import{a as i}from"./chunk-Z4Q2UO2Y.js";import{a as t}from"./chunk-SS2SYDCB.js";import{a as e}from"./chunk-5AF5WV3R.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-X7FILZJH.js.map
1
+ import{a as m}from"./chunk-DOPQK5RP.js";import{a}from"./chunk-P6FFLJDP.js";import{a as i}from"./chunk-Z4Q2UO2Y.js";import{a as y}from"./chunk-WSRH5UQP.js";import{a as p}from"./chunk-NFWKD7UR.js";import{a as n}from"./chunk-ZODT3MJM.js";import{a as l}from"./chunk-QFTBKRUI.js";import{a as t}from"./chunk-SS2SYDCB.js";import{a as e}from"./chunk-Z7XLK4JL.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-WVE2IOLY.js.map
@@ -1,2 +1,2 @@
1
- import{b as n}from"./chunk-MRYRNB7Y.js";import{a as l}from"./chunk-UZFEJMO6.js";import{a as t}from"./chunk-TO2GYQR2.js";import{h as a}from"./chunk-AUPAAQUT.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-5IRUNNZB.js.map
1
+ import{b as l}from"./chunk-MRYRNB7Y.js";import{a as n}from"./chunk-UZFEJMO6.js";import{a as t}from"./chunk-I4DU34BA.js";import{h as a}from"./chunk-AUPAAQUT.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}=l(),m=n({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-XDLVDPQ7.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-MZUPTP2B.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{x as i}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as f}from"react/jsx-runtime";function h({components:c,onSubmit:d,onSuccess:m,onError:u}){let{contractorOnboardingBag:r}=a(),l=t(async(n,S)=>{try{let o=await r.parseFormValues(n);await d?.(o);let e=await r.onSubmit(n);if(e?.data){await m?.(e.data),r?.next();return}}catch(o){let e=i(o,r.meta?.fields?.create_invoice_schedule,S);u?.(e)}},"handleSubmit"),p=r.stepState.values?.create_invoice_schedule||r.initialValues.create_invoice_schedule;return f(s,{components:c,defaultValues:p,onSubmit:l})}t(h,"CreateInvoiceScheduleStep");export{h as a};
2
- //# sourceMappingURL=chunk-6AHENEHD.js.map
1
+ import{a as s}from"./chunk-H47XUL2L.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{x as i}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as f}from"react/jsx-runtime";function h({components:c,onSubmit:d,onSuccess:m,onError:u}){let{contractorOnboardingBag:r}=a(),l=t(async(n,S)=>{try{let o=await r.parseFormValues(n);await d?.(o);let e=await r.onSubmit(n);if(e?.data){await m?.(e.data),r?.next();return}}catch(o){let e=i(o,r.meta?.fields?.create_invoice_schedule,S);u?.(e)}},"handleSubmit"),p=r.stepState.values?.create_invoice_schedule||r.initialValues.create_invoice_schedule;return f(s,{components:c,defaultValues:p,onSubmit:l})}t(h,"CreateInvoiceScheduleStep");export{h as a};
2
+ //# sourceMappingURL=chunk-XEVHXHHC.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-5TOSVOLY.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-JMFCG5KA.js.map
1
+ import{a as e}from"./chunk-ED35NFA6.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-XMIVJW5E.js.map
@@ -1,2 +1,2 @@
1
- import{b as f}from"./chunk-PGWKJ6FK.js";import{a as l}from"./chunk-UZFEJMO6.js";import{a as d}from"./chunk-TO2GYQR2.js";import{h as m}from"./chunk-AUPAAQUT.js";import{c as s}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as k}from"react";import{jsx as c}from"react/jsx-runtime";import{createElement as w}from"react";function R({defaultValues:p,onSubmit:F,components:u}){let{formId:S,onboardingBag:e}=f(),r=l({handleValidation:e.handleValidation,defaultValues:p,checkFieldUpdates:e.checkFieldUpdates});k(()=>{e.employmentId&&e?.checkFieldUpdates(r.getValues())},[]);let g=t(async(a,y)=>{let n=y?.nativeEvent;if(n?.isDraftSubmission){let{onSuccess:E,onError:i}=n.draftCallbacks;try{let o=await e.onSubmit(a);if(o?.data)E?.();else if(o?.error){let b=e.stepState.currentStep.name,h=e.meta?.fields?.[b],P=s(o?.fieldErrors||[],h);i?.({error:o.error,rawError:o.rawError,fieldErrors:P})}}catch(o){i?.({error:o,rawError:o,fieldErrors:[]})}}else await F(a)},"handleSubmit");return w(m,{...r,key:`form-${e.stepState.currentStep.name}`},c("form",{id:S,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:c(d,{components:u,fields:e.fields,fieldsets:e.meta.fieldsets,fieldValues:e.fieldValues})}))}t(R,"OnboardingForm");export{R as a};
2
- //# sourceMappingURL=chunk-CNSE26GY.js.map
1
+ import{b as f}from"./chunk-PGWKJ6FK.js";import{a as l}from"./chunk-UZFEJMO6.js";import{a as d}from"./chunk-I4DU34BA.js";import{h as m}from"./chunk-AUPAAQUT.js";import{c as s}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as k}from"react";import{jsx as c}from"react/jsx-runtime";import{createElement as w}from"react";function R({defaultValues:p,onSubmit:F,components:u}){let{formId:S,onboardingBag:e}=f(),r=l({handleValidation:e.handleValidation,defaultValues:p,checkFieldUpdates:e.checkFieldUpdates});k(()=>{e.employmentId&&e?.checkFieldUpdates(r.getValues())},[]);let g=t(async(a,y)=>{let n=y?.nativeEvent;if(n?.isDraftSubmission){let{onSuccess:E,onError:i}=n.draftCallbacks;try{let o=await e.onSubmit(a);if(o?.data)E?.();else if(o?.error){let b=e.stepState.currentStep.name,h=e.meta?.fields?.[b],P=s(o?.fieldErrors||[],h);i?.({error:o.error,rawError:o.rawError,fieldErrors:P})}}catch(o){i?.({error:o,rawError:o,fieldErrors:[]})}}else await F(a)},"handleSubmit");return w(m,{...r,key:`form-${e.stepState.currentStep.name}`},c("form",{id:S,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:c(d,{components:u,fields:e.fields,fieldsets:e.meta.fieldsets,fieldValues:e.fieldValues})}))}t(R,"OnboardingForm");export{R as a};
2
+ //# sourceMappingURL=chunk-XMVV6S77.js.map
@@ -1,2 +1,2 @@
1
- var e={data:{version:7,schema:{additionalProperties:!1,properties:{subscription:{title:"Payment terms",type:"string",oneOf:[],"x-jsf-presentation":{inputType:"radio"}}},required:["subscription"],type:"object","x-jsf-order":["subscription"]}}};export{e as a};
2
- //# sourceMappingURL=chunk-AP56UUME.js.map
1
+ var e={data:{version:7,schema:{additionalProperties:!1,properties:{subscription:{title:"Payment terms",type:"string",oneOf:[],"x-jsf-presentation":{inputType:"radio"}}},required:["subscription"],type:"object","x-jsf-order":["subscription"],"x-rmt-meta":{jsfVersion:"1"}}}};export{e as a};
2
+ //# sourceMappingURL=chunk-Y2NCUO3F.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.ts"],"sourcesContent":["export const selectContractorSubscriptionStepSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n properties: {\n subscription: {\n title: 'Payment terms',\n type: 'string',\n oneOf: [],\n 'x-jsf-presentation': {\n inputType: 'radio',\n },\n },\n },\n required: ['subscription'],\n type: 'object',\n 'x-jsf-order': ['subscription'],\n },\n },\n};\n"],"mappings":"AAAO,IAAMA,EAAyC,CACpD,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,WAAY,CACV,aAAc,CACZ,MAAO,gBACP,KAAM,SACN,MAAO,CAAC,EACR,qBAAsB,CACpB,UAAW,OACb,CACF,CACF,EACA,SAAU,CAAC,cAAc,EACzB,KAAM,SACN,cAAe,CAAC,cAAc,CAChC,CACF,CACF","names":["selectContractorSubscriptionStepSchema"]}
1
+ {"version":3,"sources":["../src/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.ts"],"sourcesContent":["export const selectContractorSubscriptionStepSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n properties: {\n subscription: {\n title: 'Payment terms',\n type: 'string',\n oneOf: [],\n 'x-jsf-presentation': {\n inputType: 'radio',\n },\n },\n },\n required: ['subscription'],\n type: 'object',\n 'x-jsf-order': ['subscription'],\n 'x-rmt-meta': {\n jsfVersion: '1',\n },\n },\n },\n};\n"],"mappings":"AAAO,IAAMA,EAAyC,CACpD,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,WAAY,CACV,aAAc,CACZ,MAAO,gBACP,KAAM,SACN,MAAO,CAAC,EACR,qBAAsB,CACpB,UAAW,OACb,CACF,CACF,EACA,SAAU,CAAC,cAAc,EACzB,KAAM,SACN,cAAe,CAAC,cAAc,EAC9B,aAAc,CACZ,WAAY,GACd,CACF,CACF,CACF","names":["selectContractorSubscriptionStepSchema"]}
@@ -1,2 +1,2 @@
1
- import{c as d,d as S}from"./chunk-BQNZUM27.js";import{a as u}from"./chunk-HN5HLFTB.js";import{a as f}from"./chunk-KSHK3ZPX.js";import{b as C}from"./chunk-KFYWUBRS.js";import{f as y}from"./chunk-AUPAAQUT.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
2
- //# sourceMappingURL=chunk-AP6MKHTF.js.map
1
+ import{c as d,d as S}from"./chunk-ITCWBZDM.js";import{a as u}from"./chunk-HN5HLFTB.js";import{a as f}from"./chunk-KSHK3ZPX.js";import{b as C}from"./chunk-KFYWUBRS.js";import{f as y}from"./chunk-AUPAAQUT.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
2
+ //# sourceMappingURL=chunk-YHZZHQP5.js.map
@@ -1,2 +1,2 @@
1
- import{b as l}from"./chunk-WCJZAOZR.js";import{a as i}from"./chunk-UZFEJMO6.js";import{a as t}from"./chunk-TO2GYQR2.js";import{h as m}from"./chunk-AUPAAQUT.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";import{createElement as u}from"react";function S({onSubmit:n,defaultValues:a}){let{formId:d,adminBag:o}=l(),e=i({handleValidation:o.handleValidation,defaultValues:a??{},checkFieldUpdates:o.setFieldValues});return u(m,{...e,key:`form-${o.stepState.currentStep.name}`},s("form",{id:d,onSubmit:e.handleSubmit(f=>n(f,e)),className:"space-y-4 RemoteFlows__PayrollAdminForm",children:s(t,{fields:o.fields,fieldsets:o.meta["x-jsf-fieldsets"],fieldValues:o.fieldValues})}))}r(S,"PayrollAdminForm");export{S as a};
2
- //# sourceMappingURL=chunk-ZAOE2DGD.js.map
1
+ import{b as l}from"./chunk-WCJZAOZR.js";import{a as i}from"./chunk-UZFEJMO6.js";import{a as t}from"./chunk-I4DU34BA.js";import{h as m}from"./chunk-AUPAAQUT.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";import{createElement as u}from"react";function S({onSubmit:n,defaultValues:a}){let{formId:d,adminBag:o}=l(),e=i({handleValidation:o.handleValidation,defaultValues:a??{},checkFieldUpdates:o.setFieldValues});return u(m,{...e,key:`form-${o.stepState.currentStep.name}`},s("form",{id:d,onSubmit:e.handleSubmit(f=>n(f,e)),className:"space-y-4 RemoteFlows__PayrollAdminForm",children:s(t,{fields:o.fields,fieldsets:o.meta["x-jsf-fieldsets"],fieldValues:o.fieldValues})}))}r(S,"PayrollAdminForm");export{S as a};
2
+ //# sourceMappingURL=chunk-YME2HZZJ.js.map
@@ -1,2 +1,2 @@
1
- import{a as m,b as $,c as I,d as ee,e as ae,f as te}from"./chunk-6L77BWCI.js";import{a as R}from"./chunk-NXSRNOBC.js";import{a as Z}from"./chunk-QEHEOSJT.js";import{c as z}from"./chunk-KMLI4ISS.js";import{a as Q}from"./chunk-POWC7LZN.js";import{a as Y,b as p,h as O}from"./chunk-C4HFMTSB.js";import{a as q}from"./chunk-M3TA5X2H.js";import{a as g}from"./chunk-P37U34EQ.js";import{useMemo as h,useCallback as b,useState as Te,useEffect as we}from"react";var se={name:{"x-jsf-presentation":{inputType:"hidden"}}},Ae={fields:{...se,mobile_number:{description:"Enter 10 digits, no country code (e.g. 5389274785)"}}},Pe={fields:{...se,mobile_number:{"x-jsf-presentation":{inputType:"tel"}}}};function Fe(t){return t==="USA"?Ae:Pe}g(Fe,"getPersonalDetailsJsfModify");var ke=g(({hasBankSubstep:t,federalTaxesVisible:y,stateTaxesVisible:E})=>({personal_details:{index:0,name:"personal_details"},home_address:{index:1,name:"home_address"},bank_account:{index:2,name:"bank_account",visible:t},federal_taxes:{index:3,name:"federal_taxes",visible:y},state_taxes:{index:4,name:"state_taxes",visible:E}}),"buildEmployeeSteps");var Ke=g(({employmentId:t,countryCode:y,jurisdiction:E,initialValues:ne,options:oe})=>{let[f,V]=Te({}),{updateErrorContext:L}=z({flow:"payroll_employee_onboarding"}),{data:T,isLoading:re}=Q({employmentId:t,enabled:!y}),r=y??T?.country?.code,ie=T?.work_address_details?.state,le=T?.address_details?.state,i=E??(ie||le),de=b(e=>{L({step:e.name})},[L]),{data:x,isLoading:ce,refetch:c}=Z(t),M=h(()=>x?.find(a=>a.type==="self_onboarding")?.sub_steps??[],[x]),v=x?.find(e=>e.type==="completion")?.sub_steps?.[0]?.status==="completed",l=r==="USA",d=v??!1,U=M.some(e=>e.type==="employee_provides_bank_details"),ue=h(()=>ke({hasBankSubstep:U,federalTaxesVisible:l&&d,stateTaxesVisible:l&&!!i&&d}),[U,l,d,i]),{stepState:D,nextStep:pe,previousStep:me,goToStep:fe,setStepValues:_e,fieldValues:u,setFieldValues:Se}=q(ue,de),n=D.currentStep.name;we(()=>{n!=="federal_taxes"&&n!=="state_taxes"||V(e=>{if(!e[n])return e;let a={...e};return delete a[n],a})},[n]);let w=m(r,"global_payroll_personal_details",u,{enabled:n==="personal_details",employmentId:t},Fe(r)),A=m(r,"address_details",u,{enabled:n==="home_address",employmentId:t}),P=m(r,"global_payroll_bank_account_details",u,{enabled:n==="bank_account",employmentId:t}),_=m(r,"global_payroll_federal_taxes",u,{enabled:l&&d&&n==="federal_taxes",employmentId:t}),S=m(r,"global_payroll_state_taxes",u,{enabled:l&&!!i&&d&&n==="state_taxes",employmentId:t,jurisdiction:i}),o=h(()=>({personal_details:w.data,home_address:A.data,bank_account:P.data,federal_taxes:_.data,state_taxes:S.data})[n],[n,w.data,A.data,P.data,_.data,S.data]),be=h(()=>{let e=l?f.federal_taxes?f.federal_taxes:d?_.isError?"schema_unavailable":null:"pending_enrollment":"unsupported_country",a=l?i?f.state_taxes?f.state_taxes:d?S.isError?"schema_unavailable":null:"pending_enrollment":"no_jurisdiction":"unsupported_country";return{federal_taxes:{isAvailable:e===null,unavailableReason:e},state_taxes:{isAvailable:a===null,unavailableReason:a}}},[l,d,i,f,_.isError,S.isError]),ye=w.isLoading||A.isLoading||P.isLoading||_.isLoading||S.isLoading,J=$(t),K=I(t),B=ee(t),G=ae(t),N=te(i,t),{mutateAsyncOrThrow:j}=p(J),{mutateAsyncOrThrow:C}=p(K),{mutateAsyncOrThrow:H}=p(B),{mutateAsyncOrThrow:W}=p(G),{mutateAsyncOrThrow:X}=p(N),xe=J.isPending||K.isPending||B.isPending||G.isPending||N.isPending,ge=b(async e=>{if(!o)return null;let a=await O(e,o.fields,{isPartialValidation:!1});return o.handleValidation(a)},[o]),F=b(async e=>o?O(e,o.fields,{isPartialValidation:!1}):e,[o]),k=b((e,a)=>{if(!Y(a))return!1;let s=typeof a.rawError=="object"&&a.rawError!==null&&"message"in a.rawError?String(a.rawError.message??""):"";return/tax task not found/i.test(s)?(V(Ee=>({...Ee,[e]:"pending_enrollment"})),!0):!1},[]),he=b(async e=>{let a=await F(e);switch(n){case"personal_details":{let s=await j(a);return await c(),s}case"home_address":{let s=await C(a);return await c(),s}case"bank_account":{let s=await H(a);return await c(),s}case"federal_taxes":try{let s=await W(a);return await c(),s}catch(s){throw k("federal_taxes",s)?new R:s}case"state_taxes":try{let s=await X(a);return await c(),s}catch(s){throw k("state_taxes",s)?new R:s}default:return}},[n,F,j,C,H,W,X,c,k]);return{stepState:D,isLoading:re||ce||ye,isSubmitting:xe,isComplete:v??!1,employmentId:t,countryCode:r,jurisdiction:i,initialValues:ne,options:oe,apiSteps:x,selfOnboardingSubsteps:M,taxStepsAvailability:be,refetchSteps:c,fields:o?.fields??[],meta:o?.meta??{},fieldValues:u,setFieldValues:Se,handleValidation:ge,parseFormValues:F,onSubmit:he,next:pe,back:me,goToStep:fe,setStepValues:_e}},"usePayrollEmployeeOnboarding");export{Ke as a};
2
- //# sourceMappingURL=chunk-5AF5WV3R.js.map
1
+ import{a as R}from"./chunk-NXSRNOBC.js";import{a as m,b as $,c as I,d as ee,e as ae,f as te}from"./chunk-ZOTKZZ67.js";import{a as Z}from"./chunk-TJZ5BJV3.js";import{c as z}from"./chunk-KMLI4ISS.js";import{a as Q}from"./chunk-OKBPMWVB.js";import{a as Y,b as p,h as O}from"./chunk-C4HFMTSB.js";import{a as q}from"./chunk-M3TA5X2H.js";import{a as g}from"./chunk-P37U34EQ.js";import{useMemo as h,useCallback as b,useState as Te,useEffect as we}from"react";var se={name:{"x-jsf-presentation":{inputType:"hidden"}}},Ae={fields:{...se,mobile_number:{description:"Enter 10 digits, no country code (e.g. 5389274785)"}}},Pe={fields:{...se,mobile_number:{"x-jsf-presentation":{inputType:"tel"}}}};function Fe(t){return t==="USA"?Ae:Pe}g(Fe,"getPersonalDetailsJsfModify");var ke=g(({hasBankSubstep:t,federalTaxesVisible:y,stateTaxesVisible:E})=>({personal_details:{index:0,name:"personal_details"},home_address:{index:1,name:"home_address"},bank_account:{index:2,name:"bank_account",visible:t},federal_taxes:{index:3,name:"federal_taxes",visible:y},state_taxes:{index:4,name:"state_taxes",visible:E}}),"buildEmployeeSteps");var Ke=g(({employmentId:t,countryCode:y,jurisdiction:E,initialValues:ne,options:oe})=>{let[f,V]=Te({}),{updateErrorContext:L}=z({flow:"payroll_employee_onboarding"}),{data:T,isLoading:re}=Q({employmentId:t,enabled:!y}),r=y??T?.country?.code,ie=T?.work_address_details?.state,le=T?.address_details?.state,i=E??(ie||le),de=b(e=>{L({step:e.name})},[L]),{data:x,isLoading:ce,refetch:c}=Z(t),M=h(()=>x?.find(a=>a.type==="self_onboarding")?.sub_steps??[],[x]),v=x?.find(e=>e.type==="completion")?.sub_steps?.[0]?.status==="completed",l=r==="USA",d=v??!1,U=M.some(e=>e.type==="employee_provides_bank_details"),ue=h(()=>ke({hasBankSubstep:U,federalTaxesVisible:l&&d,stateTaxesVisible:l&&!!i&&d}),[U,l,d,i]),{stepState:D,nextStep:pe,previousStep:me,goToStep:fe,setStepValues:_e,fieldValues:u,setFieldValues:Se}=q(ue,de),n=D.currentStep.name;we(()=>{n!=="federal_taxes"&&n!=="state_taxes"||V(e=>{if(!e[n])return e;let a={...e};return delete a[n],a})},[n]);let w=m(r,"global_payroll_personal_details",u,{enabled:n==="personal_details",employmentId:t},Fe(r)),A=m(r,"address_details",u,{enabled:n==="home_address",employmentId:t}),P=m(r,"global_payroll_bank_account_details",u,{enabled:n==="bank_account",employmentId:t}),_=m(r,"global_payroll_federal_taxes",u,{enabled:l&&d&&n==="federal_taxes",employmentId:t}),S=m(r,"global_payroll_state_taxes",u,{enabled:l&&!!i&&d&&n==="state_taxes",employmentId:t,jurisdiction:i}),o=h(()=>({personal_details:w.data,home_address:A.data,bank_account:P.data,federal_taxes:_.data,state_taxes:S.data})[n],[n,w.data,A.data,P.data,_.data,S.data]),be=h(()=>{let e=l?f.federal_taxes?f.federal_taxes:d?_.isError?"schema_unavailable":null:"pending_enrollment":"unsupported_country",a=l?i?f.state_taxes?f.state_taxes:d?S.isError?"schema_unavailable":null:"pending_enrollment":"no_jurisdiction":"unsupported_country";return{federal_taxes:{isAvailable:e===null,unavailableReason:e},state_taxes:{isAvailable:a===null,unavailableReason:a}}},[l,d,i,f,_.isError,S.isError]),ye=w.isLoading||A.isLoading||P.isLoading||_.isLoading||S.isLoading,J=$(t),K=I(t),B=ee(t),G=ae(t),N=te(i,t),{mutateAsyncOrThrow:j}=p(J),{mutateAsyncOrThrow:C}=p(K),{mutateAsyncOrThrow:H}=p(B),{mutateAsyncOrThrow:W}=p(G),{mutateAsyncOrThrow:X}=p(N),xe=J.isPending||K.isPending||B.isPending||G.isPending||N.isPending,ge=b(async e=>{if(!o)return null;let a=await O(e,o.fields,{isPartialValidation:!1});return o.handleValidation(a)},[o]),F=b(async e=>o?O(e,o.fields,{isPartialValidation:!1}):e,[o]),k=b((e,a)=>{if(!Y(a))return!1;let s=typeof a.rawError=="object"&&a.rawError!==null&&"message"in a.rawError?String(a.rawError.message??""):"";return/tax task not found/i.test(s)?(V(Ee=>({...Ee,[e]:"pending_enrollment"})),!0):!1},[]),he=b(async e=>{let a=await F(e);switch(n){case"personal_details":{let s=await j(a);return await c(),s}case"home_address":{let s=await C(a);return await c(),s}case"bank_account":{let s=await H(a);return await c(),s}case"federal_taxes":try{let s=await W(a);return await c(),s}catch(s){throw k("federal_taxes",s)?new R:s}case"state_taxes":try{let s=await X(a);return await c(),s}catch(s){throw k("state_taxes",s)?new R:s}default:return}},[n,F,j,C,H,W,X,c,k]);return{stepState:D,isLoading:re||ce||ye,isSubmitting:xe,isComplete:v??!1,employmentId:t,countryCode:r,jurisdiction:i,initialValues:ne,options:oe,apiSteps:x,selfOnboardingSubsteps:M,taxStepsAvailability:be,refetchSteps:c,fields:o?.fields??[],meta:o?.meta??{},fieldValues:u,setFieldValues:Se,handleValidation:ge,parseFormValues:F,onSubmit:he,next:pe,back:me,goToStep:fe,setStepValues:_e}},"usePayrollEmployeeOnboarding");export{Ke as a};
2
+ //# sourceMappingURL=chunk-Z7XLK4JL.js.map
@@ -0,0 +1,2 @@
1
+ import{b as s,c as p,f as c,h as u}from"./chunk-H6XROFQT.js";import{a as i}from"./chunk-P37U34EQ.js";function m(){let t={};for(let e=1;e<=s;e++)t[`item_${e}_description`]={title:`Item ${e} description`,type:"string","x-jsf-presentation":{inputType:"text"}},t[`item_${e}_amount`]={title:`Item ${e} amount`,type:"integer","x-jsf-presentation":{inputType:"money"},"x-jsf-logic-computedAttrs":{"x-jsf-presentation":{additionalProps:{currency:"currency_selected"}}}};return t}i(m,"invoiceItemProperties");function y(){let t=[];for(let e=2;e<=s;e++){let n=e-1;t.push({if:{properties:{[`item_${n}_description`]:{type:"string",minLength:1},[`item_${n}_amount`]:{type:"integer",minimum:1}},required:[`item_${n}_description`,`item_${n}_amount`]},then:{},else:{properties:{[`item_${e}_description`]:!1,[`item_${e}_amount`]:!1}}})}return t}i(y,"invoiceItemRevealConditionals");function f(){return{custom_day_1:{description:"First day of the month an invoice is generated. Leave both days blank to use the cycle derived from the start date. One of the two days must be the start date\u2019s day.",title:"First invoice day",type:"integer",minimum:1,maximum:31,"x-jsf-presentation":{inputType:"number"}},custom_day_2:{description:"Second day of the month an invoice is generated.",title:"Second invoice day",type:"integer",minimum:1,maximum:31,"x-jsf-presentation":{inputType:"number"}}}}i(f,"semiMonthlyDayProperties");function _(){return{if:{properties:{periodicity:{const:"semi_monthly"}},required:["periodicity"]},then:{},else:{properties:{custom_day_1:!1,custom_day_2:!1}}}}i(_,"semiMonthlyConditional");function h(){return{if:{properties:{periodicity:{const:c.const}},required:["periodicity"]},then:{properties:{nr_occurrences:!1}},else:{}}}i(h,"occurrencesConditional");var g=Array.from({length:s},(t,e)=>e+1).flatMap(t=>[`item_${t}_description`,`item_${t}_amount`]);function v({includeOneTime:t,isContractorOfRecord:e}){return e?[c]:t?[c,...p]:[...p]}i(v,"periodicityOptions");function x({currencies:t,includeOneTime:e=!1,isContractorOfRecord:n=!1,includeContractorSelect:o=!1,includeCustomDays:a=!1,contractors:d}={}){return{type:"object","x-jsf-presentation":{title:"Create invoice schedule",description:"Fill out the invoice details and specify the recurrence options."},properties:{...o?{employment_id:{description:"Who would you like to set up automatic invoicing with?",title:"Contractor",type:"string","x-jsf-presentation":{inputType:"select",options:d?.map(({value:r,label:l})=>({value:r,label:l}))}}}:{},currency:{description:"The currency this invoice schedule will be issued in.",title:"Invoice currency",type:"string",oneOf:t?.length?t.map(r=>({const:r,title:r})):[{const:u,title:o?"Select a contractor first":"Loading currencies\u2026",disabled:!0}],"x-jsf-presentation":{inputType:"select"}},periodicity:{description:"How often invoices are generated for this schedule.",title:"Frequency",type:"string",oneOf:v({includeOneTime:e,isContractorOfRecord:n}),"x-jsf-presentation":{inputType:"select"}},start_date:{description:"Date the first invoice will be generated.",title:"Start date",type:"string",format:"date","x-jsf-presentation":{inputType:"date"}},...a?f():{},...m(),number:{description:"Optional identifier shown on generated invoices.",title:"Invoice number",type:"string",maxLength:10,"x-jsf-presentation":{inputType:"text"}},note:{description:"Shown on generated invoices.",title:"Additional notes",type:"string","x-jsf-presentation":{inputType:"textarea"}},nr_occurrences:{description:"Number of invoices to generate. Leave blank for the schedule to repeat indefinitely.",title:"Number of occurrences",type:"integer",minimum:1,"x-jsf-presentation":{inputType:"number"}}},required:[...o?["employment_id"]:[],"currency","periodicity","start_date","item_1_description","item_1_amount"],"x-jsf-order":[...o?["employment_id"]:[],"currency","periodicity","start_date",...a?["custom_day_1","custom_day_2"]:[],...g,"number","note","nr_occurrences"],"x-jsf-logic":{computedValues:{currency_selected:{rule:{var:"currency"}}}},"x-rmt-meta":{jsfVersion:"1"},allOf:[...y(),...a?[_()]:[],...e||n?[h()]:[]]}}i(x,"buildCreateInvoiceScheduleSchema");var O=x();export{x as a,O as b};
2
+ //# sourceMappingURL=chunk-ZD4H63AL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/common/invoice-schedules/json-schema.ts"],"sourcesContent":["import {\n INVOICE_ITEM_SLOTS,\n ONE_TIME_PERIODICITY_OPTION,\n PLACEHOLDER_OPTION,\n RECURRING_PERIODICITY_OPTIONS,\n} from '@/src/common/invoice-schedules/constants';\n\nfunction invoiceItemProperties() {\n const properties: Record<string, object> = {};\n\n for (let slot = 1; slot <= INVOICE_ITEM_SLOTS; slot++) {\n properties[`item_${slot}_description`] = {\n title: `Item ${slot} description`,\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'text',\n },\n };\n properties[`item_${slot}_amount`] = {\n title: `Item ${slot} amount`,\n type: 'integer',\n 'x-jsf-presentation': {\n inputType: 'money',\n },\n 'x-jsf-logic-computedAttrs': {\n 'x-jsf-presentation': {\n additionalProps: {\n currency: 'currency_selected',\n },\n },\n },\n };\n }\n\n return properties;\n}\n\n// Slot 1 is required (see the base required array below).\n// Slots 2..N are optional and only revealed once the previous slot has been filled in,\n// since the form-kit has no built-in \"add another row\" renderer for a true items array.\nfunction invoiceItemRevealConditionals() {\n const conditionals = [];\n\n for (let slot = 2; slot <= INVOICE_ITEM_SLOTS; slot++) {\n const previousSlot = slot - 1;\n\n conditionals.push({\n if: {\n properties: {\n [`item_${previousSlot}_description`]: {\n type: 'string',\n minLength: 1,\n },\n // Integer cents, like the slot itself — `createHeadlessForm` converts the money\n // input's major units before the conditionals are evaluated. `minimum: 1` is\n // therefore one cent, so any non-zero amount reveals the next row.\n [`item_${previousSlot}_amount`]: { type: 'integer', minimum: 1 },\n },\n required: [\n `item_${previousSlot}_description`,\n `item_${previousSlot}_amount`,\n ],\n },\n then: {},\n else: {\n properties: {\n [`item_${slot}_description`]: false,\n [`item_${slot}_amount`]: false,\n },\n },\n });\n }\n\n return conditionals;\n}\n\n// Only offered when asked for, so the in-flow onboarding step keeps the field set it\n// shipped with — the same reason `includeOneTime` is opt-in.\nfunction semiMonthlyDayProperties() {\n return {\n custom_day_1: {\n description:\n 'First day of the month an invoice is generated. Leave both days blank to use the cycle derived from the start date. One of the two days must be the start date\\u2019s day.',\n title: 'First invoice day',\n type: 'integer',\n minimum: 1,\n maximum: 31,\n 'x-jsf-presentation': {\n inputType: 'number',\n },\n },\n custom_day_2: {\n description: 'Second day of the month an invoice is generated.',\n title: 'Second invoice day',\n type: 'integer',\n minimum: 1,\n maximum: 31,\n 'x-jsf-presentation': {\n inputType: 'number',\n },\n },\n };\n}\n\n// The two custom-day fields only mean anything for a semi-monthly schedule; the API rejects\n// them for any other periodicity. Hide them unless semi-monthly is selected.\nfunction semiMonthlyConditional() {\n return {\n if: {\n properties: { periodicity: { const: 'semi_monthly' } },\n required: ['periodicity'],\n },\n then: {},\n else: {\n properties: {\n custom_day_1: false,\n custom_day_2: false,\n },\n },\n };\n}\n\n// `nr_occurrences` is meaningless for a one-off — the payload builder pins it to 1 — so\n// hide the field rather than letting a user contradict their own choice.\nfunction occurrencesConditional() {\n return {\n if: {\n properties: {\n periodicity: { const: ONE_TIME_PERIODICITY_OPTION.const },\n },\n required: ['periodicity'],\n },\n then: {\n properties: {\n nr_occurrences: false,\n },\n },\n else: {},\n };\n}\n\nconst itemFieldOrder = Array.from(\n { length: INVOICE_ITEM_SLOTS },\n (_, index) => index + 1,\n).flatMap((slot) => [`item_${slot}_description`, `item_${slot}_amount`]);\n\n/**\n * Options offered for `periodicity`.\n *\n * Contractor of Record only supports one-off invoicing, so a CoR contractor is offered\n * nothing else — matching the Remote platform. See the \"How invoice scheduling works for\n * Contractor of Record\" help centre article.\n *\n * Note this is a client-side restriction only: the public API does not currently reject a\n * recurring schedule for a CoR employment on the single-create path (the bulk CSV importer\n * does). Surfacing it here matches the platform; it is not a substitute for the API check.\n */\nfunction periodicityOptions({\n includeOneTime,\n isContractorOfRecord,\n}: {\n includeOneTime: boolean;\n isContractorOfRecord: boolean;\n}) {\n if (isContractorOfRecord) {\n return [ONE_TIME_PERIODICITY_OPTION];\n }\n\n return includeOneTime\n ? [ONE_TIME_PERIODICITY_OPTION, ...RECURRING_PERIODICITY_OPTIONS]\n : [...RECURRING_PERIODICITY_OPTIONS];\n}\n\nexport type ContractorOption = {\n /** Employment id, submitted as `employment_id`. */\n value: string;\n /** Contractor's name. */\n label: string;\n};\n\ntype CreateInvoiceScheduleSchemaOptions = {\n /**\n * Currency codes the contractor can be invoiced in. Replaces the placeholder `oneOf`.\n */\n currencies?: string[];\n /**\n * Offer \"One time\" alongside the recurring cadences. Off by default so the in-flow\n * onboarding step keeps the field set it shipped with.\n */\n includeOneTime?: boolean;\n /**\n * Restrict to one-off only. Derive from the employment's `contractor_type === 'cor'`.\n */\n isContractorOfRecord?: boolean;\n /**\n * Offer the two semi-monthly day fields, which map to `custom_days`. Off by default so\n * the in-flow onboarding step keeps the field set it shipped with.\n */\n includeCustomDays?: boolean;\n /**\n * Prepend a contractor picker. This is the only structural difference between the in-flow\n * onboarding step, which already knows its employment, and the standalone screen, which\n * chooses the contractor in the form itself.\n */\n includeContractorSelect?: boolean;\n /**\n * Contractors to offer in the picker. Only read when `includeContractorSelect` is set.\n */\n contractors?: ContractorOption[];\n};\n\n/**\n * Builds the create-invoice-schedule JSON schema.\n *\n * Hardcoded rather than fetched: there is no JSON-schema endpoint for invoice schedules,\n * so this mirrors the shape the platform renders and the fields\n * `POST /v1/contractor-invoice-schedules` accepts.\n */\nexport function buildCreateInvoiceScheduleSchema({\n currencies,\n includeOneTime = false,\n isContractorOfRecord = false,\n includeContractorSelect = false,\n includeCustomDays = false,\n contractors,\n}: CreateInvoiceScheduleSchemaOptions = {}) {\n return {\n type: 'object',\n 'x-jsf-presentation': {\n title: 'Create invoice schedule',\n description:\n 'Fill out the invoice details and specify the recurrence options.',\n },\n properties: {\n ...(includeContractorSelect\n ? {\n employment_id: {\n description:\n 'Who would you like to set up automatic invoicing with?',\n title: 'Contractor',\n type: 'string',\n // Deliberately unconstrained by a `oneOf`. The picker queries the API by name\n // as the user types, so it can legitimately surface a contractor that is not\n // in whatever page of results happened to be loaded here — enumerating them\n // would reject a valid selection, which is exactly the large-company case the\n // search exists for. Existence is the API's to enforce on submit.\n 'x-jsf-presentation': {\n inputType: 'select',\n options: contractors?.map(({ value, label }) => ({\n value,\n label,\n })),\n },\n },\n }\n : {}),\n currency: {\n description: 'The currency this invoice schedule will be issued in.',\n title: 'Invoice currency',\n type: 'string',\n oneOf: currencies?.length\n ? currencies.map((code) => ({ const: code, title: code }))\n : [\n {\n const: PLACEHOLDER_OPTION,\n title: includeContractorSelect\n ? 'Select a contractor first'\n : 'Loading currencies…',\n // Unselectable, so it cannot be submitted as a real currency if the list\n // never arrives. Nothing is then selected, so the field's `required` rule\n // reports a normal error on submit.\n disabled: true,\n },\n ],\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n periodicity: {\n description: 'How often invoices are generated for this schedule.',\n title: 'Frequency',\n type: 'string',\n oneOf: periodicityOptions({ includeOneTime, isContractorOfRecord }),\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n start_date: {\n description: 'Date the first invoice will be generated.',\n title: 'Start date',\n type: 'string',\n format: 'date',\n 'x-jsf-presentation': {\n inputType: 'date',\n },\n },\n ...(includeCustomDays ? semiMonthlyDayProperties() : {}),\n ...invoiceItemProperties(),\n number: {\n description: 'Optional identifier shown on generated invoices.',\n title: 'Invoice number',\n type: 'string',\n maxLength: 10,\n 'x-jsf-presentation': {\n inputType: 'text',\n },\n },\n note: {\n description: 'Shown on generated invoices.',\n title: 'Additional notes',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n nr_occurrences: {\n description:\n 'Number of invoices to generate. Leave blank for the schedule to repeat indefinitely.',\n title: 'Number of occurrences',\n type: 'integer',\n minimum: 1,\n 'x-jsf-presentation': {\n inputType: 'number',\n },\n },\n },\n required: [\n ...(includeContractorSelect ? ['employment_id'] : []),\n 'currency',\n 'periodicity',\n 'start_date',\n 'item_1_description',\n 'item_1_amount',\n ],\n 'x-jsf-order': [\n ...(includeContractorSelect ? ['employment_id'] : []),\n 'currency',\n 'periodicity',\n 'start_date',\n ...(includeCustomDays ? ['custom_day_1', 'custom_day_2'] : []),\n ...itemFieldOrder,\n 'number',\n 'note',\n 'nr_occurrences',\n ],\n 'x-jsf-logic': {\n computedValues: {\n currency_selected: {\n rule: { var: 'currency' },\n },\n },\n },\n // Carried over when this schema moved here: the static ContractorOnboarding schemas\n // were migrated to JSF v1 on main.\n 'x-rmt-meta': {\n jsfVersion: '1',\n },\n allOf: [\n ...invoiceItemRevealConditionals(),\n ...(includeCustomDays ? [semiMonthlyConditional()] : []),\n ...(includeOneTime || isContractorOfRecord\n ? [occurrencesConditional()]\n : []),\n ],\n };\n}\n\n/**\n * The schema as the in-flow onboarding step renders it (no one-off option).\n * Currencies are substituted at runtime — see `useGetCreateInvoiceScheduleSchema`.\n */\nexport const createInvoiceScheduleSchema = buildCreateInvoiceScheduleSchema();\n"],"mappings":"qGAOA,SAASA,GAAwB,CAC/B,IAAMC,EAAqC,CAAC,EAE5C,QAASC,EAAO,EAAGA,GAAQC,EAAoBD,IAC7CD,EAAW,QAAQC,CAAI,cAAc,EAAI,CACvC,MAAO,QAAQA,CAAI,eACnB,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,EACAD,EAAW,QAAQC,CAAI,SAAS,EAAI,CAClC,MAAO,QAAQA,CAAI,UACnB,KAAM,UACN,qBAAsB,CACpB,UAAW,OACb,EACA,4BAA6B,CAC3B,qBAAsB,CACpB,gBAAiB,CACf,SAAU,mBACZ,CACF,CACF,CACF,EAGF,OAAOD,CACT,CA5BSG,EAAAJ,EAAA,yBAiCT,SAASK,GAAgC,CACvC,IAAMC,EAAe,CAAC,EAEtB,QAASJ,EAAO,EAAGA,GAAQC,EAAoBD,IAAQ,CACrD,IAAMK,EAAeL,EAAO,EAE5BI,EAAa,KAAK,CAChB,GAAI,CACF,WAAY,CACV,CAAC,QAAQC,CAAY,cAAc,EAAG,CACpC,KAAM,SACN,UAAW,CACb,EAIA,CAAC,QAAQA,CAAY,SAAS,EAAG,CAAE,KAAM,UAAW,QAAS,CAAE,CACjE,EACA,SAAU,CACR,QAAQA,CAAY,eACpB,QAAQA,CAAY,SACtB,CACF,EACA,KAAM,CAAC,EACP,KAAM,CACJ,WAAY,CACV,CAAC,QAAQL,CAAI,cAAc,EAAG,GAC9B,CAAC,QAAQA,CAAI,SAAS,EAAG,EAC3B,CACF,CACF,CAAC,CACH,CAEA,OAAOI,CACT,CAlCSF,EAAAC,EAAA,iCAsCT,SAASG,GAA2B,CAClC,MAAO,CACL,aAAc,CACZ,YACE,6KACF,MAAO,oBACP,KAAM,UACN,QAAS,EACT,QAAS,GACT,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,aAAc,CACZ,YAAa,mDACb,MAAO,qBACP,KAAM,UACN,QAAS,EACT,QAAS,GACT,qBAAsB,CACpB,UAAW,QACb,CACF,CACF,CACF,CAxBSJ,EAAAI,EAAA,4BA4BT,SAASC,GAAyB,CAChC,MAAO,CACL,GAAI,CACF,WAAY,CAAE,YAAa,CAAE,MAAO,cAAe,CAAE,EACrD,SAAU,CAAC,aAAa,CAC1B,EACA,KAAM,CAAC,EACP,KAAM,CACJ,WAAY,CACV,aAAc,GACd,aAAc,EAChB,CACF,CACF,CACF,CAdSL,EAAAK,EAAA,0BAkBT,SAASC,GAAyB,CAChC,MAAO,CACL,GAAI,CACF,WAAY,CACV,YAAa,CAAE,MAAOC,EAA4B,KAAM,CAC1D,EACA,SAAU,CAAC,aAAa,CAC1B,EACA,KAAM,CACJ,WAAY,CACV,eAAgB,EAClB,CACF,EACA,KAAM,CAAC,CACT,CACF,CAfSP,EAAAM,EAAA,0BAiBT,IAAME,EAAiB,MAAM,KAC3B,CAAE,OAAQT,CAAmB,EAC7B,CAACU,EAAGC,IAAUA,EAAQ,CACxB,EAAE,QAASZ,GAAS,CAAC,QAAQA,CAAI,eAAgB,QAAQA,CAAI,SAAS,CAAC,EAavE,SAASa,EAAmB,CAC1B,eAAAC,EACA,qBAAAC,CACF,EAGG,CACD,OAAIA,EACK,CAACN,CAA2B,EAG9BK,EACH,CAACL,EAA6B,GAAGO,CAA6B,EAC9D,CAAC,GAAGA,CAA6B,CACvC,CAdSd,EAAAW,EAAA,sBA6DF,SAASI,EAAiC,CAC/C,WAAAC,EACA,eAAAJ,EAAiB,GACjB,qBAAAC,EAAuB,GACvB,wBAAAI,EAA0B,GAC1B,kBAAAC,EAAoB,GACpB,YAAAC,CACF,EAAwC,CAAC,EAAG,CAC1C,MAAO,CACL,KAAM,SACN,qBAAsB,CACpB,MAAO,0BACP,YACE,kEACJ,EACA,WAAY,CACV,GAAIF,EACA,CACE,cAAe,CACb,YACE,yDACF,MAAO,aACP,KAAM,SAMN,qBAAsB,CACpB,UAAW,SACX,QAASE,GAAa,IAAI,CAAC,CAAE,MAAAC,EAAO,MAAAC,CAAM,KAAO,CAC/C,MAAAD,EACA,MAAAC,CACF,EAAE,CACJ,CACF,CACF,EACA,CAAC,EACL,SAAU,CACR,YAAa,wDACb,MAAO,mBACP,KAAM,SACN,MAAOL,GAAY,OACfA,EAAW,IAAKM,IAAU,CAAE,MAAOA,EAAM,MAAOA,CAAK,EAAE,EACvD,CACE,CACE,MAAOC,EACP,MAAON,EACH,4BACA,2BAIJ,SAAU,EACZ,CACF,EACJ,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,YAAa,CACX,YAAa,sDACb,MAAO,YACP,KAAM,SACN,MAAON,EAAmB,CAAE,eAAAC,EAAgB,qBAAAC,CAAqB,CAAC,EAClE,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,WAAY,CACV,YAAa,4CACb,MAAO,aACP,KAAM,SACN,OAAQ,OACR,qBAAsB,CACpB,UAAW,MACb,CACF,EACA,GAAIK,EAAoBd,EAAyB,EAAI,CAAC,EACtD,GAAGR,EAAsB,EACzB,OAAQ,CACN,YAAa,mDACb,MAAO,iBACP,KAAM,SACN,UAAW,GACX,qBAAsB,CACpB,UAAW,MACb,CACF,EACA,KAAM,CACJ,YAAa,+BACb,MAAO,mBACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,eAAgB,CACd,YACE,uFACF,MAAO,wBACP,KAAM,UACN,QAAS,EACT,qBAAsB,CACpB,UAAW,QACb,CACF,CACF,EACA,SAAU,CACR,GAAIqB,EAA0B,CAAC,eAAe,EAAI,CAAC,EACnD,WACA,cACA,aACA,qBACA,eACF,EACA,cAAe,CACb,GAAIA,EAA0B,CAAC,eAAe,EAAI,CAAC,EACnD,WACA,cACA,aACA,GAAIC,EAAoB,CAAC,eAAgB,cAAc,EAAI,CAAC,EAC5D,GAAGV,EACH,SACA,OACA,gBACF,EACA,cAAe,CACb,eAAgB,CACd,kBAAmB,CACjB,KAAM,CAAE,IAAK,UAAW,CAC1B,CACF,CACF,EAGA,aAAc,CACZ,WAAY,GACd,EACA,MAAO,CACL,GAAGP,EAA8B,EACjC,GAAIiB,EAAoB,CAACb,EAAuB,CAAC,EAAI,CAAC,EACtD,GAAIO,GAAkBC,EAClB,CAACP,EAAuB,CAAC,EACzB,CAAC,CACP,CACF,CACF,CAnJgBN,EAAAe,EAAA,oCAyJT,IAAMS,EAA8BT,EAAiC","names":["invoiceItemProperties","properties","slot","INVOICE_ITEM_SLOTS","__name","invoiceItemRevealConditionals","conditionals","previousSlot","semiMonthlyDayProperties","semiMonthlyConditional","occurrencesConditional","ONE_TIME_PERIODICITY_OPTION","itemFieldOrder","_","index","periodicityOptions","includeOneTime","isContractorOfRecord","RECURRING_PERIODICITY_OPTIONS","buildCreateInvoiceScheduleSchema","currencies","includeContractorSelect","includeCustomDays","contractors","value","label","code","PLACEHOLDER_OPTION","createInvoiceScheduleSchema"]}
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-YPBPOUGX.js";import{a as l}from"./chunk-4O5HJBUC.js";import{b as a}from"./chunk-SS2SYDCB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function u(r){let{employeeBag:e}=a(),s=o(r);return e.taxStepsAvailability.federal_taxes.isAvailable?n(l,{onSubmit:s,defaultValues:{...e.initialValues?.federal_taxes,...e.stepState.values?.federal_taxes}}):null}t(u,"FederalTaxesStep");export{u as a};
2
- //# sourceMappingURL=chunk-64C6G646.js.map
1
+ import{a as l}from"./chunk-JVXI4RZU.js";import{a as o}from"./chunk-YPBPOUGX.js";import{b as a}from"./chunk-SS2SYDCB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function u(r){let{employeeBag:e}=a(),s=o(r);return e.taxStepsAvailability.federal_taxes.isAvailable?n(l,{onSubmit:s,defaultValues:{...e.initialValues?.federal_taxes,...e.stepState.values?.federal_taxes}}):null}t(u,"FederalTaxesStep");export{u as a};
2
+ //# sourceMappingURL=chunk-ZODT3MJM.js.map
@@ -1,2 +1,2 @@
1
- import{a as _}from"./chunk-XFVXRCMH.js";import{G as p,L as y,P as f,aa as h,k as c,va as g}from"./chunk-VNMUML3T.js";import{e as r}from"./chunk-H2O4CVKF.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as a,useQuery as F}from"@tanstack/react-query";var A=t((e,n,o,s,i)=>{let{client:x}=r(),d=s?.employmentId,u=s?.jurisdiction;return F({queryKey:["gp-employee-form-schema",e,n,d,u],enabled:!!e&&(s?.enabled??!0),retry:!1,queryFn:t(async()=>{let l={...d?{employment_id:d}:{},...u?{jurisdiction:u}:{}},m=await y({client:x,headers:{Authorization:""},path:{country_code:e,form:n},...Object.keys(l).length>0?{query:l}:{}});if(m.error||!m.data)throw new Error(`Failed to fetch ${n} schema`);return m},"queryFn"),select:t(({data:l})=>_(l?.data||{},o,i?{jsfModify:i}:void 0),"select")})},"useGPEmployeeFormSchema"),E=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>{let{name:s,...i}=o;return h({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{personal_details:i}})},"mutationFn")})},"useGPUpdatePersonalDetails"),P=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>p({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{address_details:o}}),"mutationFn")})},"useGPUpdateHomeAddress"),C=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>c({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{bank_account_details:o}}),"mutationFn")})},"useGPUpdateBankAccount"),R=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>f({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{federal_taxes:o}}),"mutationFn")})},"useGPUpdateFederalTaxes"),G=t((e,n)=>{let{client:o}=r();return a({mutationFn:t(s=>{if(!e)throw new Error("A `jurisdiction` (US state code) is required to submit state taxes.");return g({client:o,headers:{Authorization:"","x-rf-employment-id":n},path:{jurisdiction:e},body:{state_taxes:s}})},"mutationFn")})},"useGPUpdateStateTaxes");export{A as a,E as b,P as c,C as d,R as e,G as f};
2
- //# sourceMappingURL=chunk-6L77BWCI.js.map
1
+ import{a as _}from"./chunk-XFVXRCMH.js";import{H as p,M as y,Q as f,ba as h,l as c,xa as g}from"./chunk-QQV5REGG.js";import{e as r}from"./chunk-H2O4CVKF.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as a,useQuery as F}from"@tanstack/react-query";var A=t((e,n,o,s,i)=>{let{client:x}=r(),d=s?.employmentId,u=s?.jurisdiction;return F({queryKey:["gp-employee-form-schema",e,n,d,u],enabled:!!e&&(s?.enabled??!0),retry:!1,queryFn:t(async()=>{let l={...d?{employment_id:d}:{},...u?{jurisdiction:u}:{}},m=await y({client:x,headers:{Authorization:""},path:{country_code:e,form:n},...Object.keys(l).length>0?{query:l}:{}});if(m.error||!m.data)throw new Error(`Failed to fetch ${n} schema`);return m},"queryFn"),select:t(({data:l})=>_(l?.data||{},o,i?{jsfModify:i}:void 0),"select")})},"useGPEmployeeFormSchema"),E=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>{let{name:s,...i}=o;return h({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{personal_details:i}})},"mutationFn")})},"useGPUpdatePersonalDetails"),P=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>p({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{address_details:o}}),"mutationFn")})},"useGPUpdateHomeAddress"),C=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>c({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{bank_account_details:o}}),"mutationFn")})},"useGPUpdateBankAccount"),R=t(e=>{let{client:n}=r();return a({mutationFn:t(o=>f({client:n,headers:{Authorization:"","x-rf-employment-id":e},body:{federal_taxes:o}}),"mutationFn")})},"useGPUpdateFederalTaxes"),G=t((e,n)=>{let{client:o}=r();return a({mutationFn:t(s=>{if(!e)throw new Error("A `jurisdiction` (US state code) is required to submit state taxes.");return g({client:o,headers:{Authorization:"","x-rf-employment-id":n},path:{jurisdiction:e},body:{state_taxes:s}})},"mutationFn")})},"useGPUpdateStateTaxes");export{A as a,E as b,P as c,C as d,R as e,G as f};
2
+ //# sourceMappingURL=chunk-ZOTKZZ67.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-CNSE26GY.js";import{b as a}from"./chunk-PGWKJ6FK.js";import{c as s,i as t}from"./chunk-C4HFMTSB.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function P({components:d,onSubmit:l,onError:i,onSuccess:f}){let{onboardingBag:o}=a(),p=o.fields??[],c=t(p,o.initialValues.benefits);return E(m,{defaultValues:c,components:d,onSubmit:e(async n=>{try{await l?.(n);let r=await o.onSubmit(n);if(r?.data){await f?.(r.data),o?.next();return}if(r?.error){let u=s(r?.fieldErrors||[],o.meta?.fields?.benefits);i?.({error:r.error,rawError:r.rawError,fieldErrors:u})}}catch(r){i?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit")})}e(P,"BenefitsStep");export{P as a};
2
- //# sourceMappingURL=chunk-GJJFAGAC.js.map
1
+ import{a as m}from"./chunk-XMVV6S77.js";import{b as a}from"./chunk-PGWKJ6FK.js";import{c as s,i as t}from"./chunk-C4HFMTSB.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function P({components:d,onSubmit:l,onError:i,onSuccess:f}){let{onboardingBag:o}=a(),p=o.fields??[],c=t(p,o.initialValues.benefits);return E(m,{defaultValues:c,components:d,onSubmit:e(async n=>{try{await l?.(n);let r=await o.onSubmit(n);if(r?.data){await f?.(r.data),o?.next();return}if(r?.error){let u=s(r?.fieldErrors||[],o.meta?.fields?.benefits);i?.({error:r.error,rawError:r.rawError,fieldErrors:u})}}catch(r){i?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit")})}e(P,"BenefitsStep");export{P as a};
2
+ //# sourceMappingURL=chunk-ZREW7KZA.js.map