@remoteoss/remote-flows 1.49.1 → 1.51.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 (679) hide show
  1. package/README.md +1 -0
  2. package/dist/CheckboxFieldDefault-23VE43PP.js +2 -0
  3. package/dist/CountryFieldDefault-FVAAL55P.js +2 -0
  4. package/dist/DatePickerFieldDefault-KXEMGK5B.js +2 -0
  5. package/dist/EmailFieldDefault-OFHDLOOT.js +2 -0
  6. package/dist/FileUploadFieldDefault-GX22C22E.js +2 -0
  7. package/dist/ForcedValueFieldDefault-ESITCZWK.js +2 -0
  8. package/dist/MultiSelectFieldDefault-DAUBH5JV.js +2 -0
  9. package/dist/NumberFieldDefault-MXZD7YVE.js +2 -0
  10. package/dist/PDFPreviewDefault-T6YPWXGY.js +2 -0
  11. package/dist/RadioGroupFieldDefault-QFUUJGSR.js +2 -0
  12. package/dist/SelectFieldDefault-3QTJE222.js +2 -0
  13. package/dist/TelFieldDefault-5U5X37LI.js +2 -0
  14. package/dist/TextAreaFieldDefault-JX2MVJVY.js +2 -0
  15. package/dist/TextFieldDefault-WCUD6XYS.js +2 -0
  16. package/dist/TimeFieldDefault-UNF7PKLT.js +2 -0
  17. package/dist/WorkScheduleFieldDefault-2A2RCDXV.js +2 -0
  18. package/dist/{chunk-C2HZNBMZ.js → chunk-235XZBTZ.js} +2 -2
  19. package/dist/chunk-2EXX7BNU.js +2 -0
  20. package/dist/{chunk-PUK2TIQX.js.map → chunk-2EXX7BNU.js.map} +1 -1
  21. package/dist/chunk-2KA6NZOQ.js +2 -0
  22. package/dist/chunk-2KA6NZOQ.js.map +1 -0
  23. package/dist/chunk-2L6AB46E.js +2 -0
  24. package/dist/{chunk-A7U3KJIP.js.map → chunk-2L6AB46E.js.map} +1 -1
  25. package/dist/{chunk-IRUWMZVH.js → chunk-2SD75ZFL.js} +2 -2
  26. package/dist/{chunk-3RQSRU7O.js → chunk-335N2CVQ.js} +2 -2
  27. package/dist/chunk-36DZMQHH.js +2 -0
  28. package/dist/chunk-36DZMQHH.js.map +1 -0
  29. package/dist/{chunk-5MH23AST.js → chunk-3BDWVNHX.js} +2 -2
  30. package/dist/chunk-3CGFAN3F.js +2 -0
  31. package/dist/{chunk-C5T75DEZ.js.map → chunk-3CGFAN3F.js.map} +1 -1
  32. package/dist/{chunk-BYTVIOOL.js → chunk-3DOSHTJS.js} +2 -2
  33. package/dist/{chunk-3VTHNE4H.js → chunk-3HMBTPH7.js} +2 -2
  34. package/dist/{chunk-6S5Q2OKC.js → chunk-3NC2JJM3.js} +2 -2
  35. package/dist/{chunk-5TOSVOLY.js → chunk-3OHORFIX.js} +2 -2
  36. package/dist/{chunk-FT4ZNBTA.js → chunk-3WRO57UF.js} +2 -2
  37. package/dist/{chunk-VYAJQ25J.js → chunk-4AQMMGXK.js} +2 -2
  38. package/dist/{chunk-JLM4O7ZW.js → chunk-4BFGSBOK.js} +2 -2
  39. package/dist/{chunk-R2D32OB6.js → chunk-57QHHIWL.js} +2 -2
  40. package/dist/{chunk-UU2IFOXR.js → chunk-57Y5XQ3D.js} +2 -2
  41. package/dist/{chunk-3LMZ3SOP.js → chunk-5DPOL3DT.js} +2 -2
  42. package/dist/{chunk-7XDU2VWN.js → chunk-5FST4WDH.js} +2 -2
  43. package/dist/chunk-5NN5RWBG.js +2 -0
  44. package/dist/chunk-5NN5RWBG.js.map +1 -0
  45. package/dist/{chunk-ANZ2YYUE.js → chunk-6OLV37C2.js} +2 -2
  46. package/dist/{chunk-RKP7EEAB.js → chunk-6UCTTR3O.js} +2 -2
  47. package/dist/{chunk-CHIWBD6E.js → chunk-6X4SQPQF.js} +2 -2
  48. package/dist/{chunk-F3DZUA7W.js → chunk-72EMS5WI.js} +2 -2
  49. package/dist/chunk-72ZOHLOK.js +2 -0
  50. package/dist/chunk-72ZOHLOK.js.map +1 -0
  51. package/dist/chunk-74ZX4KQG.js +2 -0
  52. package/dist/chunk-74ZX4KQG.js.map +1 -0
  53. package/dist/{chunk-JKHJR6HK.js → chunk-753FEV2S.js} +2 -2
  54. package/dist/{chunk-JKHJR6HK.js.map → chunk-753FEV2S.js.map} +1 -1
  55. package/dist/{chunk-3BQVEYHE.js → chunk-77LDJPXF.js} +2 -2
  56. package/dist/chunk-7UVH4WE2.js +2 -0
  57. package/dist/chunk-7UVH4WE2.js.map +1 -0
  58. package/dist/{chunk-BWM2MYPE.js → chunk-7Y4NHODP.js} +2 -2
  59. package/dist/{chunk-F3UUYQGY.js → chunk-AAHPOX44.js} +2 -2
  60. package/dist/{chunk-GBVBMT3H.js → chunk-ADL2ZH54.js} +2 -2
  61. package/dist/{chunk-UZFEJMO6.js → chunk-AFTFDGSD.js} +2 -2
  62. package/dist/chunk-ANPNVWCB.js +2 -0
  63. package/dist/{chunk-TC7EQZJK.js → chunk-AOE6FXVP.js} +2 -2
  64. package/dist/{chunk-TC7EQZJK.js.map → chunk-AOE6FXVP.js.map} +1 -1
  65. package/dist/{chunk-ORP6DY5I.js → chunk-APSKAXM2.js} +2 -2
  66. package/dist/chunk-AXZ4IDY7.js +2 -0
  67. package/dist/chunk-AXZ4IDY7.js.map +1 -0
  68. package/dist/chunk-BHHK7QQZ.js +2 -0
  69. package/dist/chunk-BHHK7QQZ.js.map +1 -0
  70. package/dist/chunk-BQGTMOIQ.js +2 -0
  71. package/dist/{chunk-PYNHR7NL.js.map → chunk-BQGTMOIQ.js.map} +1 -1
  72. package/dist/chunk-BQVCM5DQ.js +2 -0
  73. package/dist/chunk-BQVCM5DQ.js.map +1 -0
  74. package/dist/{chunk-TLJXBZII.js → chunk-BYD4TSDD.js} +2 -2
  75. package/dist/{chunk-F2SGCGXL.js → chunk-C3MUUZC6.js} +2 -2
  76. package/dist/chunk-C7KVPEVX.js +2 -0
  77. package/dist/chunk-C7KVPEVX.js.map +1 -0
  78. package/dist/{chunk-D737GUYZ.js → chunk-CWKXQZRT.js} +2 -2
  79. package/dist/chunk-D7F3QKN5.js +2 -0
  80. package/dist/chunk-D7F3QKN5.js.map +1 -0
  81. package/dist/{chunk-VNMUML3T.js → chunk-DAUDKN32.js} +5 -5
  82. package/dist/chunk-DAUDKN32.js.map +1 -0
  83. package/dist/{chunk-QHJ3BYJN.js → chunk-DIPYFRXX.js} +2 -2
  84. package/dist/chunk-DSJXT5ZP.js +2 -0
  85. package/dist/chunk-DSJXT5ZP.js.map +1 -0
  86. package/dist/{chunk-WGDZTF7Y.js → chunk-E7Y3YBZH.js} +2 -2
  87. package/dist/chunk-EOV3JMUQ.js +2 -0
  88. package/dist/chunk-EOV3JMUQ.js.map +1 -0
  89. package/dist/chunk-EP3BNRH3.js +2 -0
  90. package/dist/chunk-EP3BNRH3.js.map +1 -0
  91. package/dist/{chunk-BTZ57COZ.js → chunk-EQOOVJ7K.js} +2 -2
  92. package/dist/{chunk-IAR6BWUY.js → chunk-ESXBCNJM.js} +2 -2
  93. package/dist/chunk-EUQLCVA5.js +2 -0
  94. package/dist/chunk-EUQLCVA5.js.map +1 -0
  95. package/dist/chunk-F37FQXEZ.js +2 -0
  96. package/dist/chunk-F37FQXEZ.js.map +1 -0
  97. package/dist/{chunk-ZQVVHVAG.js → chunk-FF5OB2GF.js} +2 -2
  98. package/dist/{chunk-WYIU74JN.js → chunk-FFRROEPQ.js} +2 -2
  99. package/dist/chunk-FYCOEJEZ.js +2 -0
  100. package/dist/chunk-FYCOEJEZ.js.map +1 -0
  101. package/dist/{chunk-UAEQLFPK.js → chunk-G3BWBRCE.js} +2 -2
  102. package/dist/{chunk-LCUYP6VW.js → chunk-GGTV6IQ3.js} +2 -2
  103. package/dist/chunk-GGVW6SG6.js +2 -0
  104. package/dist/chunk-GGVW6SG6.js.map +1 -0
  105. package/dist/{chunk-6IDUDCVS.js → chunk-GIBD2ZCJ.js} +2 -2
  106. package/dist/{chunk-LCUURLXS.js → chunk-GNVGW65D.js} +2 -2
  107. package/dist/{chunk-QSF4XFSV.js → chunk-GRLZH65T.js} +2 -2
  108. package/dist/chunk-GSUGHAHA.js +2 -0
  109. package/dist/{chunk-4BHEQMZV.js.map → chunk-GSUGHAHA.js.map} +1 -1
  110. package/dist/{chunk-WDPJIOLG.js → chunk-H4NJGAN4.js} +2 -2
  111. package/dist/chunk-H6XROFQT.js +2 -0
  112. package/dist/chunk-H6XROFQT.js.map +1 -0
  113. package/dist/{chunk-EYZVDP6A.js → chunk-HRVJCCWJ.js} +2 -2
  114. package/dist/{chunk-2LSLWFZS.js → chunk-I53YCEOC.js} +2 -2
  115. package/dist/{chunk-SUVBETJS.js → chunk-I5NW7AQZ.js} +2 -2
  116. package/dist/{chunk-PJTMFMRJ.js → chunk-I65OXH33.js} +2 -2
  117. package/dist/chunk-IBQVGZMF.js +2 -0
  118. package/dist/{chunk-XFD3ULUF.js.map → chunk-IBQVGZMF.js.map} +1 -1
  119. package/dist/{chunk-WHDUZGVW.js → chunk-IJS67A57.js} +2 -2
  120. package/dist/{chunk-B3ESNTKY.js → chunk-ILPI4AFS.js} +2 -2
  121. package/dist/chunk-J244N33S.js +2 -0
  122. package/dist/chunk-J244N33S.js.map +1 -0
  123. package/dist/chunk-JKNE2D47.js +2 -0
  124. package/dist/{chunk-XTLTKB3S.js.map → chunk-JKNE2D47.js.map} +1 -1
  125. package/dist/{chunk-7NDAFJXR.js → chunk-JUSQGITN.js} +2 -2
  126. package/dist/{chunk-GMSYO53D.js → chunk-KD7UBTZG.js} +2 -2
  127. package/dist/chunk-KF52YXGI.js +2 -0
  128. package/dist/chunk-KF52YXGI.js.map +1 -0
  129. package/dist/{chunk-SNGQ2MKL.js → chunk-KFIUXU6I.js} +2 -2
  130. package/dist/chunk-KJRHRVFI.js +2 -0
  131. package/dist/chunk-KJRHRVFI.js.map +1 -0
  132. package/dist/chunk-KSSQR2CS.js +2 -0
  133. package/dist/chunk-KSSQR2CS.js.map +1 -0
  134. package/dist/{chunk-YUUUI4FY.js → chunk-L7FN3XPX.js} +2 -2
  135. package/dist/{chunk-4Y2INBAI.js → chunk-LJ32QPJF.js} +2 -2
  136. package/dist/chunk-LXABE3VR.js +2 -0
  137. package/dist/chunk-LXABE3VR.js.map +1 -0
  138. package/dist/chunk-LY5PCHQ2.js +2 -0
  139. package/dist/{chunk-B4O5YUYL.js.map → chunk-LY5PCHQ2.js.map} +1 -1
  140. package/dist/{chunk-5FGYC2RF.js → chunk-M7PZAJTR.js} +2 -2
  141. package/dist/{chunk-KZ5ZQTBF.js → chunk-NVOUXFGX.js} +2 -2
  142. package/dist/chunk-OEKL7QGO.js +2 -0
  143. package/dist/{chunk-V3C32X6R.js.map → chunk-OEKL7QGO.js.map} +1 -1
  144. package/dist/{chunk-5FJ64F6D.js → chunk-OFFUVHQJ.js} +2 -2
  145. package/dist/chunk-OHVXJXF4.js +1 -0
  146. package/dist/chunk-OHVXJXF4.js.map +1 -0
  147. package/dist/{chunk-WZOVZYNI.js → chunk-OJ4TXF6G.js} +2 -2
  148. package/dist/{chunk-5WTCN4WO.js → chunk-OT5JE2SM.js} +2 -2
  149. package/dist/{chunk-6L77BWCI.js → chunk-P3TTGECC.js} +2 -2
  150. package/dist/{chunk-2LR5N626.js → chunk-PAYZRCKY.js} +2 -2
  151. package/dist/{chunk-CFPKRLGM.js → chunk-PJAHLEOR.js} +2 -2
  152. package/dist/{chunk-Z7VNXKWB.js → chunk-PKORRCMX.js} +2 -2
  153. package/dist/chunk-QATHYZUV.js +2 -0
  154. package/dist/chunk-QATHYZUV.js.map +1 -0
  155. package/dist/chunk-QIV5OKOI.js +2 -0
  156. package/dist/chunk-QIV5OKOI.js.map +1 -0
  157. package/dist/{chunk-QEHEOSJT.js → chunk-QUJBIRNY.js} +2 -2
  158. package/dist/{chunk-POWC7LZN.js → chunk-R23HFBV4.js} +2 -2
  159. package/dist/{chunk-3LELUHRO.js → chunk-R2XDTYPZ.js} +2 -2
  160. package/dist/chunk-R4E37FVX.js +2 -0
  161. package/dist/chunk-R4E37FVX.js.map +1 -0
  162. package/dist/{chunk-FDTOQHOJ.js → chunk-R6VNUDBK.js} +2 -2
  163. package/dist/{chunk-WB52GW3H.js → chunk-ROVMQ5NT.js} +2 -2
  164. package/dist/{chunk-6IQJJCQ3.js → chunk-SDPYDCS7.js} +2 -2
  165. package/dist/chunk-SRLBVFNQ.js +2 -0
  166. package/dist/chunk-SRLBVFNQ.js.map +1 -0
  167. package/dist/{chunk-5WIBTOCI.js → chunk-SRNXXOUH.js} +2 -2
  168. package/dist/{chunk-5WIBTOCI.js.map → chunk-SRNXXOUH.js.map} +1 -1
  169. package/dist/{chunk-JRRPMAUO.js → chunk-SUGZPBET.js} +2 -2
  170. package/dist/{chunk-ZXGAFQXW.js → chunk-SYZIGZ2F.js} +2 -2
  171. package/dist/{chunk-ZXGAFQXW.js.map → chunk-SYZIGZ2F.js.map} +1 -1
  172. package/dist/chunk-TDKKCSKV.js +2 -0
  173. package/dist/{chunk-7IIQUZTH.js.map → chunk-TDKKCSKV.js.map} +1 -1
  174. package/dist/{chunk-J4CHUIPC.js → chunk-UNBTPLJ6.js} +2 -2
  175. package/dist/{chunk-TXOCMI5I.js → chunk-URNFXEOZ.js} +2 -2
  176. package/dist/{chunk-WH3QR2W5.js → chunk-UWIUECXU.js} +2 -2
  177. package/dist/{chunk-BFXBFGBH.js → chunk-UYOKK4QW.js} +2 -2
  178. package/dist/{chunk-BFXBFGBH.js.map → chunk-UYOKK4QW.js.map} +1 -1
  179. package/dist/{chunk-IJCTN52C.js → chunk-VDJJEIOD.js} +2 -2
  180. package/dist/{chunk-IJCTN52C.js.map → chunk-VDJJEIOD.js.map} +1 -1
  181. package/dist/{chunk-LMYJ6V44.js → chunk-VEQWK7QQ.js} +2 -2
  182. package/dist/{chunk-LMYJ6V44.js.map → chunk-VEQWK7QQ.js.map} +1 -1
  183. package/dist/chunk-VKORYYED.js +2 -0
  184. package/dist/{chunk-DLIVHNTT.js.map → chunk-VKORYYED.js.map} +1 -1
  185. package/dist/chunk-VSK4KV55.js +2 -0
  186. package/dist/chunk-VSK4KV55.js.map +1 -0
  187. package/dist/{chunk-PNNOU6BC.js → chunk-WHY2WNWH.js} +2 -2
  188. package/dist/{chunk-YRC6EEM3.js → chunk-WNOQNNRR.js} +2 -2
  189. package/dist/{chunk-YRC6EEM3.js.map → chunk-WNOQNNRR.js.map} +1 -1
  190. package/dist/{chunk-IUBHVGVV.js → chunk-WU66SHVJ.js} +2 -2
  191. package/dist/{chunk-MZK2U65W.js → chunk-XLHTMWJ3.js} +2 -2
  192. package/dist/{chunk-5J7DLDLW.js → chunk-XPLWBO73.js} +2 -2
  193. package/dist/{chunk-OTBCLDGR.js → chunk-XS5NKKW4.js} +2 -2
  194. package/dist/chunk-XTZJKL3C.js +2 -0
  195. package/dist/chunk-XTZJKL3C.js.map +1 -0
  196. package/dist/chunk-XWCE5BU6.js +2 -0
  197. package/dist/{chunk-4YFJOHSM.js.map → chunk-XWCE5BU6.js.map} +1 -1
  198. package/dist/{chunk-A5XRBDDO.js → chunk-XXBQQH47.js} +2 -2
  199. package/dist/{chunk-AP56UUME.js → chunk-Y2NCUO3F.js} +2 -2
  200. package/dist/{chunk-AP56UUME.js.map → chunk-Y2NCUO3F.js.map} +1 -1
  201. package/dist/{chunk-JQ3SLOUP.js → chunk-Y6FOZXIU.js} +2 -2
  202. package/dist/{chunk-K67Q5476.js → chunk-YANQP45B.js} +2 -2
  203. package/dist/{chunk-NX7MM6XR.js → chunk-YE6NRJ2L.js} +2 -2
  204. package/dist/{chunk-NX7MM6XR.js.map → chunk-YE6NRJ2L.js.map} +1 -1
  205. package/dist/{chunk-JMFCG5KA.js → chunk-YWLAZIIO.js} +2 -2
  206. package/dist/{chunk-S2QXSX4Q.js → chunk-YYIAA47F.js} +2 -2
  207. package/dist/{chunk-2GTY2DMO.js → chunk-ZHFGV2GB.js} +2 -2
  208. package/dist/{chunk-2GTY2DMO.js.map → chunk-ZHFGV2GB.js.map} +1 -1
  209. package/dist/{chunk-EQIWABAZ.js → chunk-ZJ55AKB6.js} +2 -2
  210. package/dist/{chunk-ILX6RI7K.js → chunk-ZRD3M74X.js} +2 -2
  211. package/dist/{chunk-H5OZSXSY.js → chunk-ZULOHKU6.js} +2 -2
  212. package/dist/default-components.d.ts +2 -2
  213. package/dist/default-components.js +1 -1
  214. package/dist/default-components.js.map +1 -1
  215. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  216. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  217. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  218. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  219. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  220. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  221. package/dist/flows/ContractAmendment/context.d.ts +4 -4
  222. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  223. package/dist/flows/ContractAmendment/hooks.js +1 -1
  224. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  225. package/dist/flows/ContractAmendment/index.js +1 -1
  226. package/dist/flows/ContractAmendment/types.d.ts +3 -3
  227. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  228. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +8 -5
  229. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  230. package/dist/flows/ContractorOnboarding/api.d.ts +180 -123
  231. package/dist/flows/ContractorOnboarding/api.js +1 -1
  232. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  233. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  234. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +8 -5
  235. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  236. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.d.ts +3 -3
  237. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.js +1 -1
  238. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  239. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  240. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +8 -5
  241. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  242. package/dist/flows/ContractorOnboarding/components/ContractReviewButton.js +1 -1
  243. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +8 -5
  244. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  245. package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.d.ts +3 -3
  246. package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.js +1 -1
  247. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +8 -5
  248. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  249. package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.d.ts +8 -5
  250. package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.js +1 -1
  251. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  252. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  253. package/dist/flows/ContractorOnboarding/components/PreviewInvoiceButton.d.ts +31 -0
  254. package/dist/flows/ContractorOnboarding/components/PreviewInvoiceButton.js +2 -0
  255. package/dist/flows/ContractorOnboarding/components/PreviewInvoiceButton.js.map +1 -0
  256. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +8 -5
  257. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  258. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
  259. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  260. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  261. package/dist/flows/ContractorOnboarding/components/SkipInvoiceScheduleButton.d.ts +24 -0
  262. package/dist/flows/ContractorOnboarding/components/SkipInvoiceScheduleButton.js +2 -0
  263. package/dist/flows/ContractorOnboarding/components/SkipInvoiceScheduleButton.js.map +1 -0
  264. package/dist/flows/ContractorOnboarding/context.d.ts +16 -5
  265. package/dist/flows/ContractorOnboarding/hooks.d.ts +8 -5
  266. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  267. package/dist/flows/ContractorOnboarding/index.d.ts +8 -5
  268. package/dist/flows/ContractorOnboarding/index.js +1 -1
  269. package/dist/flows/ContractorOnboarding/invoiceScheduleConstants.d.ts +1 -0
  270. package/dist/flows/ContractorOnboarding/invoiceScheduleConstants.js +1 -1
  271. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +8 -5
  272. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  273. package/dist/flows/ContractorOnboarding/json-schemas/contractOrigin.d.ts +3 -0
  274. package/dist/flows/ContractorOnboarding/json-schemas/contractOrigin.js +1 -1
  275. package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.d.ts +80 -6
  276. package/dist/flows/ContractorOnboarding/json-schemas/createInvoiceSchedule.js +1 -1
  277. package/dist/flows/ContractorOnboarding/json-schemas/invoiceSchedule.d.ts +3 -0
  278. package/dist/flows/ContractorOnboarding/json-schemas/invoiceSchedule.js +1 -1
  279. package/dist/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.d.ts +3 -0
  280. package/dist/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.js +1 -1
  281. package/dist/flows/ContractorOnboarding/json-schemas/signature.d.ts +3 -0
  282. package/dist/flows/ContractorOnboarding/json-schemas/signature.js +1 -1
  283. package/dist/flows/ContractorOnboarding/types.d.ts +8 -5
  284. package/dist/flows/ContractorOnboarding/utils.d.ts +31 -21
  285. package/dist/flows/ContractorOnboarding/utils.js +1 -1
  286. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  287. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  288. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  289. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  290. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +3 -3
  291. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  292. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +3 -3
  293. package/dist/flows/CostCalculator/api.d.ts +3 -3
  294. package/dist/flows/CostCalculator/api.js +1 -1
  295. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  296. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  297. package/dist/flows/CostCalculator/context.d.ts +3 -3
  298. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  299. package/dist/flows/CostCalculator/hooks.js +1 -1
  300. package/dist/flows/CostCalculator/index.d.ts +3 -3
  301. package/dist/flows/CostCalculator/index.js +1 -1
  302. package/dist/flows/CostCalculator/jsonSchema.d.ts +3 -0
  303. package/dist/flows/CostCalculator/jsonSchema.js +1 -1
  304. package/dist/flows/CostCalculator/types.d.ts +3 -3
  305. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  306. package/dist/flows/CostCalculator/utils.js +1 -1
  307. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  308. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  309. package/dist/flows/CreateCompany/api.d.ts +3 -3
  310. package/dist/flows/CreateCompany/api.js +1 -1
  311. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  312. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  313. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  314. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  315. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  316. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  317. package/dist/flows/CreateCompany/context.d.ts +4 -4
  318. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  319. package/dist/flows/CreateCompany/hooks.js +1 -1
  320. package/dist/flows/CreateCompany/index.d.ts +4 -4
  321. package/dist/flows/CreateCompany/index.js +1 -1
  322. package/dist/flows/CreateCompany/json-schemas/companyBasicInformationStep.d.ts +3 -0
  323. package/dist/flows/CreateCompany/json-schemas/companyBasicInformationStep.js +1 -1
  324. package/dist/flows/CreateCompany/types.d.ts +4 -4
  325. package/dist/flows/InvoiceSchedule/InvoiceScheduleFlow.d.ts +36 -0
  326. package/dist/flows/InvoiceSchedule/InvoiceScheduleFlow.js +2 -0
  327. package/dist/flows/InvoiceSchedule/InvoiceScheduleFlow.js.map +1 -0
  328. package/dist/flows/InvoiceSchedule/InvoiceScheduleForm.d.ts +31 -0
  329. package/dist/flows/InvoiceSchedule/InvoiceScheduleForm.js +2 -0
  330. package/dist/flows/InvoiceSchedule/InvoiceScheduleForm.js.map +1 -0
  331. package/dist/flows/InvoiceSchedule/InvoiceSchedulePreviewButton.d.ts +33 -0
  332. package/dist/flows/InvoiceSchedule/InvoiceSchedulePreviewButton.js +2 -0
  333. package/dist/flows/InvoiceSchedule/InvoiceSchedulePreviewButton.js.map +1 -0
  334. package/dist/flows/InvoiceSchedule/InvoiceScheduleSubmitButton.d.ts +6 -0
  335. package/dist/flows/InvoiceSchedule/InvoiceScheduleSubmitButton.js +2 -0
  336. package/dist/flows/InvoiceSchedule/InvoiceScheduleSubmitButton.js.map +1 -0
  337. package/dist/flows/InvoiceSchedule/context.d.ts +51 -0
  338. package/dist/flows/InvoiceSchedule/context.js +2 -0
  339. package/dist/flows/InvoiceSchedule/context.js.map +1 -0
  340. package/dist/flows/InvoiceSchedule/hooks.d.ts +100 -0
  341. package/dist/flows/InvoiceSchedule/hooks.js +2 -0
  342. package/dist/flows/InvoiceSchedule/hooks.js.map +1 -0
  343. package/dist/flows/InvoiceSchedule/index.d.ts +16 -0
  344. package/dist/flows/InvoiceSchedule/index.js +2 -0
  345. package/dist/flows/InvoiceSchedule/index.js.map +1 -0
  346. package/dist/flows/InvoiceSchedule/types.d.ts +51 -0
  347. package/dist/flows/InvoiceSchedule/types.js +1 -0
  348. package/dist/flows/InvoiceSchedule/types.js.map +1 -0
  349. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.d.ts +3 -3
  350. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js +1 -1
  351. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.d.ts +3 -3
  352. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js +1 -1
  353. package/dist/flows/JsonSchemaPlayground/context.d.ts +3 -3
  354. package/dist/flows/JsonSchemaPlayground/hooks.d.ts +3 -3
  355. package/dist/flows/JsonSchemaPlayground/hooks.js +1 -1
  356. package/dist/flows/JsonSchemaPlayground/index.d.ts +3 -3
  357. package/dist/flows/JsonSchemaPlayground/index.js +1 -1
  358. package/dist/flows/JsonSchemaPlayground/types.d.ts +3 -3
  359. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  360. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  361. package/dist/flows/Onboarding/api.d.ts +4 -4
  362. package/dist/flows/Onboarding/api.js +1 -1
  363. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  364. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  365. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  366. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  367. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  368. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  369. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  370. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  371. package/dist/flows/Onboarding/components/DailySchedule/DailySchedule.d.ts +11 -0
  372. package/dist/flows/Onboarding/components/DailySchedule/DailySchedule.js +2 -0
  373. package/dist/flows/Onboarding/components/DailySchedule/DailySchedule.js.map +1 -0
  374. package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleContainer.d.ts +16 -0
  375. package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleContainer.js +2 -0
  376. package/dist/flows/Onboarding/components/DailySchedule/DailyScheduleContainer.js.map +1 -0
  377. package/dist/flows/Onboarding/components/DailySchedule/types.d.ts +68 -0
  378. package/dist/flows/Onboarding/components/DailySchedule/types.js +1 -0
  379. package/dist/flows/Onboarding/components/DailySchedule/types.js.map +1 -0
  380. package/dist/flows/Onboarding/components/DailySchedule/utils.d.ts +21 -0
  381. package/dist/flows/Onboarding/components/DailySchedule/utils.js +2 -0
  382. package/dist/flows/Onboarding/components/DailySchedule/utils.js.map +1 -0
  383. package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.js +1 -1
  384. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +4 -4
  385. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  386. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  387. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  388. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  389. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  390. package/dist/flows/Onboarding/components/PreOnboardingRequirements.d.ts +4 -4
  391. package/dist/flows/Onboarding/components/PreOnboardingRequirements.js +1 -1
  392. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js +1 -1
  393. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  394. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  395. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  396. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  397. package/dist/flows/Onboarding/context.d.ts +6 -6
  398. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  399. package/dist/flows/Onboarding/hooks.js +1 -1
  400. package/dist/flows/Onboarding/index.d.ts +4 -4
  401. package/dist/flows/Onboarding/index.js +1 -1
  402. package/dist/flows/Onboarding/json-schemas/selectCountryStep.d.ts +3 -0
  403. package/dist/flows/Onboarding/json-schemas/selectCountryStep.js +1 -1
  404. package/dist/flows/Onboarding/types.d.ts +4 -4
  405. package/dist/flows/Onboarding/utils.d.ts +4 -4
  406. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +4 -4
  407. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +1 -1
  408. package/dist/flows/PayrollAdminOnboarding/api.d.ts +2 -2
  409. package/dist/flows/PayrollAdminOnboarding/api.js +1 -1
  410. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.d.ts +3 -3
  411. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js +1 -1
  412. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.d.ts +3 -3
  413. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js +1 -1
  414. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.d.ts +3 -3
  415. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.js +1 -1
  416. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.d.ts +2 -2
  417. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js +1 -1
  418. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.d.ts +3 -3
  419. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js +1 -1
  420. package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.d.ts +3 -3
  421. package/dist/flows/PayrollAdminOnboarding/context.d.ts +4 -4
  422. package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +5 -5
  423. package/dist/flows/PayrollAdminOnboarding/hooks.js +1 -1
  424. package/dist/flows/PayrollAdminOnboarding/index.d.ts +4 -4
  425. package/dist/flows/PayrollAdminOnboarding/index.js +1 -1
  426. package/dist/flows/PayrollAdminOnboarding/json-schemas/selectCountryStep.d.ts +3 -0
  427. package/dist/flows/PayrollAdminOnboarding/json-schemas/selectCountryStep.js +1 -1
  428. package/dist/flows/PayrollAdminOnboarding/types.d.ts +4 -4
  429. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +4 -4
  430. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +1 -1
  431. package/dist/flows/PayrollEmployeeOnboarding/api.d.ts +3 -3
  432. package/dist/flows/PayrollEmployeeOnboarding/api.js +1 -1
  433. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.d.ts +3 -3
  434. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js +1 -1
  435. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.d.ts +3 -3
  436. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js +1 -1
  437. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.d.ts +3 -3
  438. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js +1 -1
  439. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.d.ts +2 -2
  440. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js +1 -1
  441. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.d.ts +3 -3
  442. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js +1 -1
  443. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.d.ts +3 -3
  444. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js +1 -1
  445. package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.d.ts +3 -3
  446. package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +4 -4
  447. package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +5 -5
  448. package/dist/flows/PayrollEmployeeOnboarding/hooks.js +1 -1
  449. package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +4 -4
  450. package/dist/flows/PayrollEmployeeOnboarding/index.js +1 -1
  451. package/dist/flows/PayrollEmployeeOnboarding/types.d.ts +4 -4
  452. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  453. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  454. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  455. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  456. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  457. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  458. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  459. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  460. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  461. package/dist/flows/Termination/TerminationFlow.js +1 -1
  462. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  463. package/dist/flows/Termination/TerminationForm.js +1 -1
  464. package/dist/flows/Termination/api.d.ts +5 -5
  465. package/dist/flows/Termination/api.js +1 -1
  466. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  467. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  468. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  469. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  470. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  471. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  472. package/dist/flows/Termination/context.d.ts +4 -4
  473. package/dist/flows/Termination/hooks.d.ts +4 -4
  474. package/dist/flows/Termination/hooks.js +1 -1
  475. package/dist/flows/Termination/index.d.ts +6 -6
  476. package/dist/flows/Termination/index.js +1 -1
  477. package/dist/flows/Termination/json-schemas/additionalInformation.d.ts +3 -0
  478. package/dist/flows/Termination/json-schemas/additionalInformation.js +1 -1
  479. package/dist/flows/Termination/json-schemas/defaultSchema.d.ts +3 -0
  480. package/dist/flows/Termination/json-schemas/defaultSchema.js +1 -1
  481. package/dist/flows/Termination/json-schemas/employeeComunication.d.ts +3 -0
  482. package/dist/flows/Termination/json-schemas/employeeComunication.js +1 -1
  483. package/dist/flows/Termination/json-schemas/jsonSchema.d.ts +3 -0
  484. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  485. package/dist/flows/Termination/json-schemas/paidTimeOff.d.ts +3 -0
  486. package/dist/flows/Termination/json-schemas/paidTimeOff.js +1 -1
  487. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  488. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  489. package/dist/flows/Termination/json-schemas/terminationDetails.d.ts +3 -0
  490. package/dist/flows/Termination/json-schemas/terminationDetails.js +1 -1
  491. package/dist/flows/Termination/types.d.ts +4 -4
  492. package/dist/flows/Termination/utils.d.ts +4 -4
  493. package/dist/flows/types.d.ts +3 -3
  494. package/dist/flows/utils.d.ts +2 -2
  495. package/dist/index.css +1 -1
  496. package/dist/index.css.map +1 -1
  497. package/dist/index.d.ts +23 -14
  498. package/dist/index.js +2 -2
  499. package/dist/index.js.map +1 -1
  500. package/dist/internals.d.ts +4 -4
  501. package/dist/internals.js +1 -1
  502. package/dist/{mutations-DQjVuza-.d.ts → mutations-BGNKrV99.d.ts} +1 -1
  503. package/dist/{remoteFlows-B_JbhzWp.d.ts → remoteFlows-2MK_3sLb.d.ts} +2 -2
  504. package/dist/styles.css +1 -1
  505. package/dist/styles.css.map +1 -1
  506. package/dist/{types-D3U8Wi3X.d.ts → types-B2bPNE86.d.ts} +3 -3
  507. package/dist/{types-1mH_uuoA.d.ts → types-BOB-WNJe.d.ts} +2 -2
  508. package/dist/{types-CdC2MYpf.d.ts → types-BPLbQPfI.d.ts} +3 -3
  509. package/dist/{types-B0iYt6RL.d.ts → types-BZ58yiMu.d.ts} +37 -4
  510. package/dist/{types-Clzf4xjV.d.ts → types-CJocMMvX.d.ts} +6 -8
  511. package/dist/{types-CoYsxVTI.d.ts → types-DvJ4fXde.d.ts} +1 -1
  512. package/dist/types-DvsjrBmu.d.ts +15 -0
  513. package/dist/{types-BFzhRUSU.d.ts → types-Ke3uSWQH.d.ts} +3 -3
  514. package/dist/{types-B93nzmoE.d.ts → types-g4Cxg_cb.d.ts} +1 -1
  515. package/dist/{types.gen-BmtA4XNd.d.ts → types.gen-ByX93X_n.d.ts} +216 -17
  516. package/dist/{utils-DJgzqxq4.d.ts → utils-Douv08HR.d.ts} +1 -1
  517. package/package.json +6 -5
  518. package/dist/CheckboxFieldDefault-JXNMWIRK.js +0 -2
  519. package/dist/CountryFieldDefault-SO4WS7KE.js +0 -2
  520. package/dist/DatePickerFieldDefault-AZHJN2U6.js +0 -2
  521. package/dist/EmailFieldDefault-QVKXB67I.js +0 -2
  522. package/dist/FileUploadFieldDefault-K6PF6RP7.js +0 -2
  523. package/dist/ForcedValueFieldDefault-BEOC4MYU.js +0 -2
  524. package/dist/MultiSelectFieldDefault-QKXVTGF2.js +0 -2
  525. package/dist/NumberFieldDefault-O7OKTFG4.js +0 -2
  526. package/dist/PDFPreviewDefault-HSSMYKV5.js +0 -2
  527. package/dist/RadioGroupFieldDefault-ZHHXDUUU.js +0 -2
  528. package/dist/SelectFieldDefault-FWQ7D6DU.js +0 -2
  529. package/dist/TelFieldDefault-RA7IBELJ.js +0 -2
  530. package/dist/TextAreaFieldDefault-NEFWXEE2.js +0 -2
  531. package/dist/TextFieldDefault-RXNU36AX.js +0 -2
  532. package/dist/TimeFieldDefault-KIJNBWYF.js +0 -2
  533. package/dist/WorkScheduleFieldDefault-23WY3SVD.js +0 -2
  534. package/dist/chunk-4BHEQMZV.js +0 -2
  535. package/dist/chunk-4YFJOHSM.js +0 -2
  536. package/dist/chunk-7IIQUZTH.js +0 -2
  537. package/dist/chunk-A7U3KJIP.js +0 -2
  538. package/dist/chunk-ALHHN2LG.js +0 -2
  539. package/dist/chunk-ALHHN2LG.js.map +0 -1
  540. package/dist/chunk-AUPAAQUT.js +0 -2
  541. package/dist/chunk-AUPAAQUT.js.map +0 -1
  542. package/dist/chunk-B4O5YUYL.js +0 -2
  543. package/dist/chunk-C5T75DEZ.js +0 -2
  544. package/dist/chunk-DLIVHNTT.js +0 -2
  545. package/dist/chunk-FGYOG6XG.js +0 -2
  546. package/dist/chunk-FGYOG6XG.js.map +0 -1
  547. package/dist/chunk-G3KQCVQQ.js +0 -2
  548. package/dist/chunk-G3KQCVQQ.js.map +0 -1
  549. package/dist/chunk-HMJ4PIDI.js +0 -2
  550. package/dist/chunk-HMJ4PIDI.js.map +0 -1
  551. package/dist/chunk-IHGCXP2X.js +0 -2
  552. package/dist/chunk-IHGCXP2X.js.map +0 -1
  553. package/dist/chunk-IXS65MGJ.js +0 -2
  554. package/dist/chunk-IXS65MGJ.js.map +0 -1
  555. package/dist/chunk-KPDYUFCB.js +0 -2
  556. package/dist/chunk-KPDYUFCB.js.map +0 -1
  557. package/dist/chunk-NPVSJYM6.js +0 -2
  558. package/dist/chunk-NPVSJYM6.js.map +0 -1
  559. package/dist/chunk-PUK2TIQX.js +0 -2
  560. package/dist/chunk-PYNHR7NL.js +0 -2
  561. package/dist/chunk-QQPF2DUF.js +0 -2
  562. package/dist/chunk-QQPF2DUF.js.map +0 -1
  563. package/dist/chunk-QSBXRKYE.js +0 -2
  564. package/dist/chunk-SVVZOMLQ.js +0 -2
  565. package/dist/chunk-SVVZOMLQ.js.map +0 -1
  566. package/dist/chunk-UOJOO2DM.js +0 -2
  567. package/dist/chunk-UOJOO2DM.js.map +0 -1
  568. package/dist/chunk-V3C32X6R.js +0 -2
  569. package/dist/chunk-VFRHMNLJ.js +0 -2
  570. package/dist/chunk-VFRHMNLJ.js.map +0 -1
  571. package/dist/chunk-VNMUML3T.js.map +0 -1
  572. package/dist/chunk-VQRE3YLW.js +0 -2
  573. package/dist/chunk-VQRE3YLW.js.map +0 -1
  574. package/dist/chunk-WVJDCDGZ.js +0 -2
  575. package/dist/chunk-WVJDCDGZ.js.map +0 -1
  576. package/dist/chunk-XFD3ULUF.js +0 -2
  577. package/dist/chunk-XTLTKB3S.js +0 -2
  578. package/dist/chunk-XXQBX7ND.js +0 -2
  579. package/dist/chunk-XXQBX7ND.js.map +0 -1
  580. /package/dist/{CheckboxFieldDefault-JXNMWIRK.js.map → CheckboxFieldDefault-23VE43PP.js.map} +0 -0
  581. /package/dist/{CountryFieldDefault-SO4WS7KE.js.map → CountryFieldDefault-FVAAL55P.js.map} +0 -0
  582. /package/dist/{DatePickerFieldDefault-AZHJN2U6.js.map → DatePickerFieldDefault-KXEMGK5B.js.map} +0 -0
  583. /package/dist/{EmailFieldDefault-QVKXB67I.js.map → EmailFieldDefault-OFHDLOOT.js.map} +0 -0
  584. /package/dist/{FileUploadFieldDefault-K6PF6RP7.js.map → FileUploadFieldDefault-GX22C22E.js.map} +0 -0
  585. /package/dist/{ForcedValueFieldDefault-BEOC4MYU.js.map → ForcedValueFieldDefault-ESITCZWK.js.map} +0 -0
  586. /package/dist/{MultiSelectFieldDefault-QKXVTGF2.js.map → MultiSelectFieldDefault-DAUBH5JV.js.map} +0 -0
  587. /package/dist/{NumberFieldDefault-O7OKTFG4.js.map → NumberFieldDefault-MXZD7YVE.js.map} +0 -0
  588. /package/dist/{PDFPreviewDefault-HSSMYKV5.js.map → PDFPreviewDefault-T6YPWXGY.js.map} +0 -0
  589. /package/dist/{RadioGroupFieldDefault-ZHHXDUUU.js.map → RadioGroupFieldDefault-QFUUJGSR.js.map} +0 -0
  590. /package/dist/{SelectFieldDefault-FWQ7D6DU.js.map → SelectFieldDefault-3QTJE222.js.map} +0 -0
  591. /package/dist/{TelFieldDefault-RA7IBELJ.js.map → TelFieldDefault-5U5X37LI.js.map} +0 -0
  592. /package/dist/{TextAreaFieldDefault-NEFWXEE2.js.map → TextAreaFieldDefault-JX2MVJVY.js.map} +0 -0
  593. /package/dist/{TextFieldDefault-RXNU36AX.js.map → TextFieldDefault-WCUD6XYS.js.map} +0 -0
  594. /package/dist/{TimeFieldDefault-KIJNBWYF.js.map → TimeFieldDefault-UNF7PKLT.js.map} +0 -0
  595. /package/dist/{WorkScheduleFieldDefault-23WY3SVD.js.map → WorkScheduleFieldDefault-2A2RCDXV.js.map} +0 -0
  596. /package/dist/{chunk-C2HZNBMZ.js.map → chunk-235XZBTZ.js.map} +0 -0
  597. /package/dist/{chunk-IRUWMZVH.js.map → chunk-2SD75ZFL.js.map} +0 -0
  598. /package/dist/{chunk-3RQSRU7O.js.map → chunk-335N2CVQ.js.map} +0 -0
  599. /package/dist/{chunk-5MH23AST.js.map → chunk-3BDWVNHX.js.map} +0 -0
  600. /package/dist/{chunk-BYTVIOOL.js.map → chunk-3DOSHTJS.js.map} +0 -0
  601. /package/dist/{chunk-3VTHNE4H.js.map → chunk-3HMBTPH7.js.map} +0 -0
  602. /package/dist/{chunk-6S5Q2OKC.js.map → chunk-3NC2JJM3.js.map} +0 -0
  603. /package/dist/{chunk-5TOSVOLY.js.map → chunk-3OHORFIX.js.map} +0 -0
  604. /package/dist/{chunk-FT4ZNBTA.js.map → chunk-3WRO57UF.js.map} +0 -0
  605. /package/dist/{chunk-VYAJQ25J.js.map → chunk-4AQMMGXK.js.map} +0 -0
  606. /package/dist/{chunk-JLM4O7ZW.js.map → chunk-4BFGSBOK.js.map} +0 -0
  607. /package/dist/{chunk-R2D32OB6.js.map → chunk-57QHHIWL.js.map} +0 -0
  608. /package/dist/{chunk-UU2IFOXR.js.map → chunk-57Y5XQ3D.js.map} +0 -0
  609. /package/dist/{chunk-3LMZ3SOP.js.map → chunk-5DPOL3DT.js.map} +0 -0
  610. /package/dist/{chunk-7XDU2VWN.js.map → chunk-5FST4WDH.js.map} +0 -0
  611. /package/dist/{chunk-ANZ2YYUE.js.map → chunk-6OLV37C2.js.map} +0 -0
  612. /package/dist/{chunk-RKP7EEAB.js.map → chunk-6UCTTR3O.js.map} +0 -0
  613. /package/dist/{chunk-CHIWBD6E.js.map → chunk-6X4SQPQF.js.map} +0 -0
  614. /package/dist/{chunk-F3DZUA7W.js.map → chunk-72EMS5WI.js.map} +0 -0
  615. /package/dist/{chunk-3BQVEYHE.js.map → chunk-77LDJPXF.js.map} +0 -0
  616. /package/dist/{chunk-BWM2MYPE.js.map → chunk-7Y4NHODP.js.map} +0 -0
  617. /package/dist/{chunk-F3UUYQGY.js.map → chunk-AAHPOX44.js.map} +0 -0
  618. /package/dist/{chunk-GBVBMT3H.js.map → chunk-ADL2ZH54.js.map} +0 -0
  619. /package/dist/{chunk-UZFEJMO6.js.map → chunk-AFTFDGSD.js.map} +0 -0
  620. /package/dist/{chunk-QSBXRKYE.js.map → chunk-ANPNVWCB.js.map} +0 -0
  621. /package/dist/{chunk-ORP6DY5I.js.map → chunk-APSKAXM2.js.map} +0 -0
  622. /package/dist/{chunk-TLJXBZII.js.map → chunk-BYD4TSDD.js.map} +0 -0
  623. /package/dist/{chunk-F2SGCGXL.js.map → chunk-C3MUUZC6.js.map} +0 -0
  624. /package/dist/{chunk-D737GUYZ.js.map → chunk-CWKXQZRT.js.map} +0 -0
  625. /package/dist/{chunk-QHJ3BYJN.js.map → chunk-DIPYFRXX.js.map} +0 -0
  626. /package/dist/{chunk-WGDZTF7Y.js.map → chunk-E7Y3YBZH.js.map} +0 -0
  627. /package/dist/{chunk-BTZ57COZ.js.map → chunk-EQOOVJ7K.js.map} +0 -0
  628. /package/dist/{chunk-IAR6BWUY.js.map → chunk-ESXBCNJM.js.map} +0 -0
  629. /package/dist/{chunk-ZQVVHVAG.js.map → chunk-FF5OB2GF.js.map} +0 -0
  630. /package/dist/{chunk-WYIU74JN.js.map → chunk-FFRROEPQ.js.map} +0 -0
  631. /package/dist/{chunk-UAEQLFPK.js.map → chunk-G3BWBRCE.js.map} +0 -0
  632. /package/dist/{chunk-LCUYP6VW.js.map → chunk-GGTV6IQ3.js.map} +0 -0
  633. /package/dist/{chunk-6IDUDCVS.js.map → chunk-GIBD2ZCJ.js.map} +0 -0
  634. /package/dist/{chunk-LCUURLXS.js.map → chunk-GNVGW65D.js.map} +0 -0
  635. /package/dist/{chunk-QSF4XFSV.js.map → chunk-GRLZH65T.js.map} +0 -0
  636. /package/dist/{chunk-WDPJIOLG.js.map → chunk-H4NJGAN4.js.map} +0 -0
  637. /package/dist/{chunk-EYZVDP6A.js.map → chunk-HRVJCCWJ.js.map} +0 -0
  638. /package/dist/{chunk-2LSLWFZS.js.map → chunk-I53YCEOC.js.map} +0 -0
  639. /package/dist/{chunk-SUVBETJS.js.map → chunk-I5NW7AQZ.js.map} +0 -0
  640. /package/dist/{chunk-PJTMFMRJ.js.map → chunk-I65OXH33.js.map} +0 -0
  641. /package/dist/{chunk-WHDUZGVW.js.map → chunk-IJS67A57.js.map} +0 -0
  642. /package/dist/{chunk-B3ESNTKY.js.map → chunk-ILPI4AFS.js.map} +0 -0
  643. /package/dist/{chunk-7NDAFJXR.js.map → chunk-JUSQGITN.js.map} +0 -0
  644. /package/dist/{chunk-GMSYO53D.js.map → chunk-KD7UBTZG.js.map} +0 -0
  645. /package/dist/{chunk-SNGQ2MKL.js.map → chunk-KFIUXU6I.js.map} +0 -0
  646. /package/dist/{chunk-YUUUI4FY.js.map → chunk-L7FN3XPX.js.map} +0 -0
  647. /package/dist/{chunk-4Y2INBAI.js.map → chunk-LJ32QPJF.js.map} +0 -0
  648. /package/dist/{chunk-5FGYC2RF.js.map → chunk-M7PZAJTR.js.map} +0 -0
  649. /package/dist/{chunk-KZ5ZQTBF.js.map → chunk-NVOUXFGX.js.map} +0 -0
  650. /package/dist/{chunk-5FJ64F6D.js.map → chunk-OFFUVHQJ.js.map} +0 -0
  651. /package/dist/{chunk-WZOVZYNI.js.map → chunk-OJ4TXF6G.js.map} +0 -0
  652. /package/dist/{chunk-5WTCN4WO.js.map → chunk-OT5JE2SM.js.map} +0 -0
  653. /package/dist/{chunk-6L77BWCI.js.map → chunk-P3TTGECC.js.map} +0 -0
  654. /package/dist/{chunk-2LR5N626.js.map → chunk-PAYZRCKY.js.map} +0 -0
  655. /package/dist/{chunk-CFPKRLGM.js.map → chunk-PJAHLEOR.js.map} +0 -0
  656. /package/dist/{chunk-Z7VNXKWB.js.map → chunk-PKORRCMX.js.map} +0 -0
  657. /package/dist/{chunk-QEHEOSJT.js.map → chunk-QUJBIRNY.js.map} +0 -0
  658. /package/dist/{chunk-POWC7LZN.js.map → chunk-R23HFBV4.js.map} +0 -0
  659. /package/dist/{chunk-3LELUHRO.js.map → chunk-R2XDTYPZ.js.map} +0 -0
  660. /package/dist/{chunk-FDTOQHOJ.js.map → chunk-R6VNUDBK.js.map} +0 -0
  661. /package/dist/{chunk-WB52GW3H.js.map → chunk-ROVMQ5NT.js.map} +0 -0
  662. /package/dist/{chunk-6IQJJCQ3.js.map → chunk-SDPYDCS7.js.map} +0 -0
  663. /package/dist/{chunk-JRRPMAUO.js.map → chunk-SUGZPBET.js.map} +0 -0
  664. /package/dist/{chunk-J4CHUIPC.js.map → chunk-UNBTPLJ6.js.map} +0 -0
  665. /package/dist/{chunk-TXOCMI5I.js.map → chunk-URNFXEOZ.js.map} +0 -0
  666. /package/dist/{chunk-WH3QR2W5.js.map → chunk-UWIUECXU.js.map} +0 -0
  667. /package/dist/{chunk-PNNOU6BC.js.map → chunk-WHY2WNWH.js.map} +0 -0
  668. /package/dist/{chunk-IUBHVGVV.js.map → chunk-WU66SHVJ.js.map} +0 -0
  669. /package/dist/{chunk-MZK2U65W.js.map → chunk-XLHTMWJ3.js.map} +0 -0
  670. /package/dist/{chunk-5J7DLDLW.js.map → chunk-XPLWBO73.js.map} +0 -0
  671. /package/dist/{chunk-OTBCLDGR.js.map → chunk-XS5NKKW4.js.map} +0 -0
  672. /package/dist/{chunk-A5XRBDDO.js.map → chunk-XXBQQH47.js.map} +0 -0
  673. /package/dist/{chunk-JQ3SLOUP.js.map → chunk-Y6FOZXIU.js.map} +0 -0
  674. /package/dist/{chunk-K67Q5476.js.map → chunk-YANQP45B.js.map} +0 -0
  675. /package/dist/{chunk-JMFCG5KA.js.map → chunk-YWLAZIIO.js.map} +0 -0
  676. /package/dist/{chunk-S2QXSX4Q.js.map → chunk-YYIAA47F.js.map} +0 -0
  677. /package/dist/{chunk-EQIWABAZ.js.map → chunk-ZJ55AKB6.js.map} +0 -0
  678. /package/dist/{chunk-ILX6RI7K.js.map → chunk-ZRD3M74X.js.map} +0 -0
  679. /package/dist/{chunk-H5OZSXSY.js.map → chunk-ZULOHKU6.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-VDRNNOVA.js";var n={data:{version:7,schema:{additionalProperties:!1,allOf:[{if:{properties:{will_challenge_termination:{const:"yes"}},required:["will_challenge_termination"]},then:{properties:{will_challenge_termination_description:{type:"string"}},required:["will_challenge_termination_description"]},else:{properties:{will_challenge_termination_description:!1}}}],properties:{termination_reason:{title:"Termination reason",description:"Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.",type:"string",oneOf:[{const:"gross_misconduct",title:"Gross misconduct"},{const:"performance",title:"Performance"},{const:"workforce_reduction",title:"Workforce Reduction"},{const:"values",title:"Values"},{const:"compliance_issue",title:"Compliance issue"},{const:"incapacity_to_perform_inherent_duties",title:"Incapacity To perform inherent duties"},{const:"mutual_agreement",title:"Mutual agreement"},{const:"cancellation_before_start_date",title:"Decision to cancel hiring before the employee starts"},{const:"job_abandonment",title:"Job abandonment"},{const:"dissatisfaction_with_remote_service",title:"Dissatisfaction with EOR service"},{const:"end_of_fixed_term_contract_compliance_issue",title:"End of fixed-term contract"},{const:"other",title:"Other"}],"x-jsf-presentation":{inputType:"select"}},reason_description:{description:"",maxLength:1e3,title:"Termination reason details",type:"string","x-jsf-presentation":{inputType:"textarea"}},additional_comments:{description:"",maxLength:1e3,title:"Additional details regarding this termination process.",type:"string","x-jsf-presentation":{inputType:"textarea"}},termination_reason_files:{description:"Please upload any supporting documents regarding the termination reason.",title:"Termination reason files",type:"string","x-jsf-presentation":{inputType:"file",accept:e.document,multiple:!0,maxSize:20971520}},risk_assesment_info:{description:"",title:"Risk assessment info",type:"null","x-jsf-presentation":{inputType:"hidden"}},risk_assessment_reasons:{description:"",title:"This employee is...",type:"array",items:{anyOf:[{const:"sick_leave",title:"Currently on or recently returned from sick leave"},{const:"family_leave",title:"Currently on or recently returned from maternity, paternity, or other family leave"},{const:"pregnant_or_breastfeeding",title:"Pregnant or breastfeeding"},{const:"requested_medical_or_family_leave",title:"Requested medical or family leave"},{const:"disabled_or_health_condition",title:"Disabled or has a health condition"},{const:"member_of_union_or_works_council",title:"A member of a union or works council"},{const:"caring_responsibilities",title:"Caring responsibilities"},{const:"reported_concerns_with_workplace",title:"Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions"},{const:"none_of_these",title:"To the best of my knowledge, I am not aware of any of these"}]},"x-jsf-presentation":{inputType:"checkbox",direction:"column"}},will_challenge_termination:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Do you consider it is likely that the employee will challenge their termination?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},will_challenge_termination_description:{description:"",maxLength:1e3,title:"Please explain how the employee will challenge their termination",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},proposed_termination_date_info:{description:"",title:"Proposed termination date info",type:"null","x-jsf-presentation":{inputType:"hidden"}},proposed_termination_date:{description:"Please note that we cannot commit to a termination date until we conduct a full review of the information you submit.",format:"date",maxLength:255,title:"Proposed termination date",type:"string","x-jsf-presentation":{inputType:"date"}}},required:["termination_reason","reason_description","risk_assessment_reasons","will_challenge_termination","proposed_termination_date"],type:"object","x-jsf-order":["termination_reason","reason_description","additional_comments","termination_reason_files","risk_assesment_info","risk_assessment_reasons","will_challenge_termination","will_challenge_termination_description","proposed_termination_date_info","proposed_termination_date"]}}};export{n as a};
2
- //# sourceMappingURL=chunk-ZXGAFQXW.js.map
1
+ import{a as e}from"./chunk-VDRNNOVA.js";var n={data:{version:7,schema:{additionalProperties:!1,allOf:[{if:{properties:{will_challenge_termination:{const:"yes"}},required:["will_challenge_termination"]},then:{properties:{will_challenge_termination_description:{type:"string"}},required:["will_challenge_termination_description"]},else:{properties:{will_challenge_termination_description:!1}}}],properties:{termination_reason:{title:"Termination reason",description:"Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.",type:"string",oneOf:[{const:"gross_misconduct",title:"Gross misconduct"},{const:"performance",title:"Performance"},{const:"workforce_reduction",title:"Workforce Reduction"},{const:"values",title:"Values"},{const:"compliance_issue",title:"Compliance issue"},{const:"incapacity_to_perform_inherent_duties",title:"Incapacity To perform inherent duties"},{const:"mutual_agreement",title:"Mutual agreement"},{const:"cancellation_before_start_date",title:"Decision to cancel hiring before the employee starts"},{const:"job_abandonment",title:"Job abandonment"},{const:"dissatisfaction_with_remote_service",title:"Dissatisfaction with EOR service"},{const:"end_of_fixed_term_contract_compliance_issue",title:"End of fixed-term contract"},{const:"other",title:"Other"}],"x-jsf-presentation":{inputType:"select"}},reason_description:{description:"",maxLength:1e3,title:"Termination reason details",type:"string","x-jsf-presentation":{inputType:"textarea"}},additional_comments:{description:"",maxLength:1e3,title:"Additional details regarding this termination process.",type:"string","x-jsf-presentation":{inputType:"textarea"}},termination_reason_files:{description:"Please upload any supporting documents regarding the termination reason.",title:"Termination reason files",type:"string","x-jsf-presentation":{inputType:"file",accept:e.document,multiple:!0,maxSize:20971520}},risk_assesment_info:{description:"",title:"Risk assessment info",type:"null","x-jsf-presentation":{inputType:"hidden"}},risk_assessment_reasons:{description:"",title:"This employee is...",type:"array",items:{anyOf:[{const:"sick_leave",title:"Currently on or recently returned from sick leave"},{const:"family_leave",title:"Currently on or recently returned from maternity, paternity, or other family leave"},{const:"pregnant_or_breastfeeding",title:"Pregnant or breastfeeding"},{const:"requested_medical_or_family_leave",title:"Requested medical or family leave"},{const:"disabled_or_health_condition",title:"Disabled or has a health condition"},{const:"member_of_union_or_works_council",title:"A member of a union or works council"},{const:"caring_responsibilities",title:"Caring responsibilities"},{const:"reported_concerns_with_workplace",title:"Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions"},{const:"none_of_these",title:"To the best of my knowledge, I am not aware of any of these"}]},"x-jsf-presentation":{inputType:"checkbox",direction:"column"}},will_challenge_termination:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Do you consider it is likely that the employee will challenge their termination?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},will_challenge_termination_description:{description:"",maxLength:1e3,title:"Please explain how the employee will challenge their termination",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},proposed_termination_date_info:{description:"",title:"Proposed termination date info",type:"null","x-jsf-presentation":{inputType:"hidden"}},proposed_termination_date:{description:"Please note that we cannot commit to a termination date until we conduct a full review of the information you submit.",format:"date",maxLength:255,title:"Proposed termination date",type:"string","x-jsf-presentation":{inputType:"date"}}},required:["termination_reason","reason_description","risk_assessment_reasons","will_challenge_termination","proposed_termination_date"],type:"object","x-jsf-order":["termination_reason","reason_description","additional_comments","termination_reason_files","risk_assesment_info","risk_assessment_reasons","will_challenge_termination","will_challenge_termination_description","proposed_termination_date_info","proposed_termination_date"],"x-rmt-meta":{jsfOldVersion:!0}}}};export{n as a};
2
+ //# sourceMappingURL=chunk-SYZIGZ2F.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/flows/Termination/json-schemas/terminationDetails.ts"],"sourcesContent":["import { FILE_TYPES, MAX_FILE_SIZE } from '@/src/lib/uploadConfig';\n\nexport const terminationDetailsSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n {\n if: {\n properties: {\n will_challenge_termination: {\n const: 'yes',\n },\n },\n required: ['will_challenge_termination'],\n },\n then: {\n properties: {\n will_challenge_termination_description: {\n type: 'string',\n },\n },\n required: ['will_challenge_termination_description'],\n },\n else: {\n properties: {\n will_challenge_termination_description: false,\n },\n },\n },\n ],\n properties: {\n termination_reason: {\n title: 'Termination reason',\n description:\n 'Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.',\n type: 'string',\n oneOf: [\n {\n const: 'gross_misconduct',\n title: 'Gross misconduct',\n },\n {\n const: 'performance',\n title: 'Performance',\n },\n {\n const: 'workforce_reduction',\n title: 'Workforce Reduction',\n },\n {\n const: 'values',\n title: 'Values',\n },\n {\n const: 'compliance_issue',\n title: 'Compliance issue',\n },\n {\n const: 'incapacity_to_perform_inherent_duties',\n title: 'Incapacity To perform inherent duties',\n },\n {\n const: 'mutual_agreement',\n title: 'Mutual agreement',\n },\n {\n const: 'cancellation_before_start_date',\n title: 'Decision to cancel hiring before the employee starts',\n },\n {\n const: 'job_abandonment',\n title: 'Job abandonment',\n },\n {\n const: 'dissatisfaction_with_remote_service',\n title: 'Dissatisfaction with EOR service',\n },\n {\n const: 'end_of_fixed_term_contract_compliance_issue',\n title: 'End of fixed-term contract',\n },\n {\n const: 'other',\n title: 'Other',\n },\n ],\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n reason_description: {\n description: '',\n maxLength: 1000,\n title: 'Termination reason details',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n additional_comments: {\n description: '',\n maxLength: 1000,\n title: 'Additional details regarding this termination process.',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n termination_reason_files: {\n description:\n 'Please upload any supporting documents regarding the termination reason.',\n title: 'Termination reason files',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: FILE_TYPES.document,\n multiple: true,\n maxSize: MAX_FILE_SIZE, // maxFileSize doesn't seem to work for some reason, found that this was fixed in @remoteoss/json-schema-form v1\n },\n },\n risk_assesment_info: {\n description: '',\n title: 'Risk assessment info',\n type: 'null',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n risk_assessment_reasons: {\n description: '',\n title: 'This employee is...',\n type: 'array',\n items: {\n anyOf: [\n {\n const: 'sick_leave',\n title: 'Currently on or recently returned from sick leave',\n },\n {\n const: 'family_leave',\n title:\n 'Currently on or recently returned from maternity, paternity, or other family leave',\n },\n {\n const: 'pregnant_or_breastfeeding',\n title: 'Pregnant or breastfeeding',\n },\n {\n const: 'requested_medical_or_family_leave',\n title: 'Requested medical or family leave',\n },\n {\n const: 'disabled_or_health_condition',\n title: 'Disabled or has a health condition',\n },\n {\n const: 'member_of_union_or_works_council',\n title: 'A member of a union or works council',\n },\n {\n const: 'caring_responsibilities',\n title: 'Caring responsibilities',\n },\n {\n const: 'reported_concerns_with_workplace',\n title:\n 'Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions',\n },\n {\n const: 'none_of_these',\n title:\n 'To the best of my knowledge, I am not aware of any of these',\n },\n ],\n },\n 'x-jsf-presentation': {\n inputType: 'checkbox',\n direction: 'column',\n },\n },\n will_challenge_termination: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title:\n 'Do you consider it is likely that the employee will challenge their termination?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n will_challenge_termination_description: {\n description: '',\n maxLength: 1000,\n title:\n 'Please explain how the employee will challenge their termination',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n proposed_termination_date_info: {\n description: '',\n title: 'Proposed termination date info',\n type: 'null',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n proposed_termination_date: {\n description:\n 'Please note that we cannot commit to a termination date until we conduct a full review of the information you submit.',\n format: 'date',\n maxLength: 255,\n title: 'Proposed termination date',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'date',\n },\n },\n },\n required: [\n 'termination_reason',\n 'reason_description',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'proposed_termination_date',\n ],\n type: 'object',\n 'x-jsf-order': [\n 'termination_reason',\n 'reason_description',\n 'additional_comments',\n 'termination_reason_files',\n 'risk_assesment_info',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'will_challenge_termination_description',\n 'proposed_termination_date_info',\n 'proposed_termination_date',\n ],\n },\n },\n};\n"],"mappings":"wCAEO,IAAMA,EAA2B,CACtC,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CACL,CACE,GAAI,CACF,WAAY,CACV,2BAA4B,CAC1B,MAAO,KACT,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,CACtC,KAAM,QACR,CACF,EACA,SAAU,CAAC,wCAAwC,CACrD,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,EAC1C,CACF,CACF,CACF,EACA,WAAY,CACV,mBAAoB,CAClB,MAAO,qBACP,YACE,oGACF,KAAM,SACN,MAAO,CACL,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,cACP,MAAO,aACT,EACA,CACE,MAAO,sBACP,MAAO,qBACT,EACA,CACE,MAAO,SACP,MAAO,QACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,wCACP,MAAO,uCACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,iCACP,MAAO,sDACT,EACA,CACE,MAAO,kBACP,MAAO,iBACT,EACA,CACE,MAAO,sCACP,MAAO,kCACT,EACA,CACE,MAAO,8CACP,MAAO,4BACT,EACA,CACE,MAAO,QACP,MAAO,OACT,CACF,EACA,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,mBAAoB,CAClB,YAAa,GACb,UAAW,IACX,MAAO,6BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,oBAAqB,CACnB,YAAa,GACb,UAAW,IACX,MAAO,yDACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,yBAA0B,CACxB,YACE,2EACF,MAAO,2BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,OACX,OAAQC,EAAW,SACnB,SAAU,GACV,QAAS,QACX,CACF,EACA,oBAAqB,CACnB,YAAa,GACb,MAAO,uBACP,KAAM,OACN,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,wBAAyB,CACvB,YAAa,GACb,MAAO,sBACP,KAAM,QACN,MAAO,CACL,MAAO,CACL,CACE,MAAO,aACP,MAAO,mDACT,EACA,CACE,MAAO,eACP,MACE,oFACJ,EACA,CACE,MAAO,4BACP,MAAO,2BACT,EACA,CACE,MAAO,oCACP,MAAO,mCACT,EACA,CACE,MAAO,+BACP,MAAO,oCACT,EACA,CACE,MAAO,mCACP,MAAO,sCACT,EACA,CACE,MAAO,0BACP,MAAO,yBACT,EACA,CACE,MAAO,mCACP,MACE,2LACJ,EACA,CACE,MAAO,gBACP,MACE,6DACJ,CACF,CACF,EACA,qBAAsB,CACpB,UAAW,WACX,UAAW,QACb,CACF,EACA,2BAA4B,CAC1B,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MACE,mFACF,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,uCAAwC,CACtC,YAAa,GACb,UAAW,IACX,MACE,mEACF,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,+BAAgC,CAC9B,YAAa,GACb,MAAO,iCACP,KAAM,OACN,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,0BAA2B,CACzB,YACE,wHACF,OAAQ,OACR,UAAW,IACX,MAAO,4BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,CACF,EACA,SAAU,CACR,qBACA,qBACA,0BACA,6BACA,2BACF,EACA,KAAM,SACN,cAAe,CACb,qBACA,qBACA,sBACA,2BACA,sBACA,0BACA,6BACA,yCACA,iCACA,2BACF,CACF,CACF,CACF","names":["terminationDetailsSchema","FILE_TYPES"]}
1
+ {"version":3,"sources":["../src/flows/Termination/json-schemas/terminationDetails.ts"],"sourcesContent":["import { FILE_TYPES, MAX_FILE_SIZE } from '@/src/lib/uploadConfig';\n\nexport const terminationDetailsSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n {\n if: {\n properties: {\n will_challenge_termination: {\n const: 'yes',\n },\n },\n required: ['will_challenge_termination'],\n },\n then: {\n properties: {\n will_challenge_termination_description: {\n type: 'string',\n },\n },\n required: ['will_challenge_termination_description'],\n },\n else: {\n properties: {\n will_challenge_termination_description: false,\n },\n },\n },\n ],\n properties: {\n termination_reason: {\n title: 'Termination reason',\n description:\n 'Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.',\n type: 'string',\n oneOf: [\n {\n const: 'gross_misconduct',\n title: 'Gross misconduct',\n },\n {\n const: 'performance',\n title: 'Performance',\n },\n {\n const: 'workforce_reduction',\n title: 'Workforce Reduction',\n },\n {\n const: 'values',\n title: 'Values',\n },\n {\n const: 'compliance_issue',\n title: 'Compliance issue',\n },\n {\n const: 'incapacity_to_perform_inherent_duties',\n title: 'Incapacity To perform inherent duties',\n },\n {\n const: 'mutual_agreement',\n title: 'Mutual agreement',\n },\n {\n const: 'cancellation_before_start_date',\n title: 'Decision to cancel hiring before the employee starts',\n },\n {\n const: 'job_abandonment',\n title: 'Job abandonment',\n },\n {\n const: 'dissatisfaction_with_remote_service',\n title: 'Dissatisfaction with EOR service',\n },\n {\n const: 'end_of_fixed_term_contract_compliance_issue',\n title: 'End of fixed-term contract',\n },\n {\n const: 'other',\n title: 'Other',\n },\n ],\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n reason_description: {\n description: '',\n maxLength: 1000,\n title: 'Termination reason details',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n additional_comments: {\n description: '',\n maxLength: 1000,\n title: 'Additional details regarding this termination process.',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n termination_reason_files: {\n description:\n 'Please upload any supporting documents regarding the termination reason.',\n title: 'Termination reason files',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: FILE_TYPES.document,\n multiple: true,\n maxSize: MAX_FILE_SIZE, // maxFileSize doesn't seem to work for some reason, found that this was fixed in @remoteoss/json-schema-form v1\n },\n },\n risk_assesment_info: {\n description: '',\n title: 'Risk assessment info',\n type: 'null',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n risk_assessment_reasons: {\n description: '',\n title: 'This employee is...',\n type: 'array',\n items: {\n anyOf: [\n {\n const: 'sick_leave',\n title: 'Currently on or recently returned from sick leave',\n },\n {\n const: 'family_leave',\n title:\n 'Currently on or recently returned from maternity, paternity, or other family leave',\n },\n {\n const: 'pregnant_or_breastfeeding',\n title: 'Pregnant or breastfeeding',\n },\n {\n const: 'requested_medical_or_family_leave',\n title: 'Requested medical or family leave',\n },\n {\n const: 'disabled_or_health_condition',\n title: 'Disabled or has a health condition',\n },\n {\n const: 'member_of_union_or_works_council',\n title: 'A member of a union or works council',\n },\n {\n const: 'caring_responsibilities',\n title: 'Caring responsibilities',\n },\n {\n const: 'reported_concerns_with_workplace',\n title:\n 'Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions',\n },\n {\n const: 'none_of_these',\n title:\n 'To the best of my knowledge, I am not aware of any of these',\n },\n ],\n },\n 'x-jsf-presentation': {\n inputType: 'checkbox',\n direction: 'column',\n },\n },\n will_challenge_termination: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title:\n 'Do you consider it is likely that the employee will challenge their termination?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n will_challenge_termination_description: {\n description: '',\n maxLength: 1000,\n title:\n 'Please explain how the employee will challenge their termination',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n proposed_termination_date_info: {\n description: '',\n title: 'Proposed termination date info',\n type: 'null',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n proposed_termination_date: {\n description:\n 'Please note that we cannot commit to a termination date until we conduct a full review of the information you submit.',\n format: 'date',\n maxLength: 255,\n title: 'Proposed termination date',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'date',\n },\n },\n },\n required: [\n 'termination_reason',\n 'reason_description',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'proposed_termination_date',\n ],\n type: 'object',\n 'x-jsf-order': [\n 'termination_reason',\n 'reason_description',\n 'additional_comments',\n 'termination_reason_files',\n 'risk_assesment_info',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'will_challenge_termination_description',\n 'proposed_termination_date_info',\n 'proposed_termination_date',\n ],\n 'x-rmt-meta': {\n jsfOldVersion: true,\n },\n },\n },\n};\n"],"mappings":"wCAEO,IAAMA,EAA2B,CACtC,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CACL,CACE,GAAI,CACF,WAAY,CACV,2BAA4B,CAC1B,MAAO,KACT,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,CACtC,KAAM,QACR,CACF,EACA,SAAU,CAAC,wCAAwC,CACrD,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,EAC1C,CACF,CACF,CACF,EACA,WAAY,CACV,mBAAoB,CAClB,MAAO,qBACP,YACE,oGACF,KAAM,SACN,MAAO,CACL,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,cACP,MAAO,aACT,EACA,CACE,MAAO,sBACP,MAAO,qBACT,EACA,CACE,MAAO,SACP,MAAO,QACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,wCACP,MAAO,uCACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,iCACP,MAAO,sDACT,EACA,CACE,MAAO,kBACP,MAAO,iBACT,EACA,CACE,MAAO,sCACP,MAAO,kCACT,EACA,CACE,MAAO,8CACP,MAAO,4BACT,EACA,CACE,MAAO,QACP,MAAO,OACT,CACF,EACA,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,mBAAoB,CAClB,YAAa,GACb,UAAW,IACX,MAAO,6BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,oBAAqB,CACnB,YAAa,GACb,UAAW,IACX,MAAO,yDACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,yBAA0B,CACxB,YACE,2EACF,MAAO,2BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,OACX,OAAQC,EAAW,SACnB,SAAU,GACV,QAAS,QACX,CACF,EACA,oBAAqB,CACnB,YAAa,GACb,MAAO,uBACP,KAAM,OACN,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,wBAAyB,CACvB,YAAa,GACb,MAAO,sBACP,KAAM,QACN,MAAO,CACL,MAAO,CACL,CACE,MAAO,aACP,MAAO,mDACT,EACA,CACE,MAAO,eACP,MACE,oFACJ,EACA,CACE,MAAO,4BACP,MAAO,2BACT,EACA,CACE,MAAO,oCACP,MAAO,mCACT,EACA,CACE,MAAO,+BACP,MAAO,oCACT,EACA,CACE,MAAO,mCACP,MAAO,sCACT,EACA,CACE,MAAO,0BACP,MAAO,yBACT,EACA,CACE,MAAO,mCACP,MACE,2LACJ,EACA,CACE,MAAO,gBACP,MACE,6DACJ,CACF,CACF,EACA,qBAAsB,CACpB,UAAW,WACX,UAAW,QACb,CACF,EACA,2BAA4B,CAC1B,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MACE,mFACF,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,uCAAwC,CACtC,YAAa,GACb,UAAW,IACX,MACE,mEACF,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,+BAAgC,CAC9B,YAAa,GACb,MAAO,iCACP,KAAM,OACN,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,0BAA2B,CACzB,YACE,wHACF,OAAQ,OACR,UAAW,IACX,MAAO,4BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,CACF,EACA,SAAU,CACR,qBACA,qBACA,0BACA,6BACA,2BACF,EACA,KAAM,SACN,cAAe,CACb,qBACA,qBACA,sBACA,2BACA,sBACA,0BACA,6BACA,yCACA,iCACA,2BACF,EACA,aAAc,CACZ,cAAe,EACjB,CACF,CACF,CACF","names":["terminationDetailsSchema","FILE_TYPES"]}
@@ -0,0 +1,2 @@
1
+ import{a,b as l,e as c,h as s,i as d}from"./chunk-PB6UQ4A4.js";import{a as t}from"./chunk-P37U34EQ.js";function y(e={}){let r=[{name:"select_country",label:"Select Country",visible:!!e?.includeSelectCountry},{name:"basic_information",label:"Basic Information",visible:!0},{name:"pricing_plan",label:"Pricing Plan",visible:!0},{name:"eligibility_questionnaire",label:"Eligibility Questionnaire",visible:!!e?.includeEligibilityQuestionnaire},{name:"contract_origin",label:"Contract Options",visible:!!(e?.includeContractOrigin??!0)},{name:"contract_details",label:"Contract Details",visible:!!(e?.includeContractDetails??!0)},{name:"contract_preview",label:"Contract Preview",visible:!!e?.includeContractPreview},{name:"invoice_schedule",label:"Invoice schedule",visible:!!e?.includeInvoiceSchedule},{name:"create_invoice_schedule",label:"Create Invoice Schedule",visible:!!e?.includeCreateInvoiceSchedule},{name:"review",label:"Review",visible:!0}].map((i,o)=>({name:i.name,index:o,label:i.label,visible:i.visible}));return{steps:r.reduce((i,o)=>(i[o.name]={index:o.index,name:o.name,visible:o.visible},i),{}),stepsArray:r}}t(y,"buildSteps");var h=t((e,n)=>{if(e&&n&&e!==n)return`When the contractor will start providing service to your company. ${`This date does not match the date you provided in the Basic Information step - ${e} - and will override it only when both parties have signed the contract.`}`},"calculateProvisionalStartDateDescription"),g=t(e=>e===a||e===l,"isCMOrCMPlus"),b=["SAU","KWT","OMN","QAT","BHR"],I=t(e=>b.includes(e),"isNationalityCountryCode"),C=t((e,n)=>!n||n.length===0?!0:!n.some(r=>c[r]===e),"shouldIncludeProduct"),R=["initiated","invited","created_awaiting_reserve","created_reserve_paid","active"],f=["initiated","created_awaiting_reserve","invited","active"];function A(e){return e?d:s}t(A,"transformAiErrorResponse");var m=1,w=t(e=>e?.jsonSchemaVersion?.employment_basic_information||m,"getBasicInformationSchemaVersion");export{y as a,h as b,g as c,I as d,C as e,R as f,f as g,A as h,w as i};
2
+ //# sourceMappingURL=chunk-TDKKCSKV.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/flows/ContractorOnboarding/utils.ts"],"sourcesContent":["import { Step } from '@/src/flows/useStepState';\nimport {\n contractorStandardProductIdentifier,\n contractorPlusProductIdentifier,\n ProductType,\n PRODUCT_IDENTIFIER_MAP,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE,\n} from '@/src/flows/ContractorOnboarding/constants';\nimport { Employment } from '@/src/flows/Onboarding/types';\n\nexport type StepKeys =\n | 'select_country'\n | 'basic_information'\n | 'contract_origin'\n | 'invoice_schedule'\n | 'create_invoice_schedule'\n | 'contract_details'\n | 'eligibility_questionnaire'\n | 'contract_preview'\n | 'pricing_plan'\n | 'review';\n\ntype StepConfig = {\n includeSelectCountry?: boolean;\n includeContractOrigin?: boolean;\n includeInvoiceSchedule?: boolean;\n includeCreateInvoiceSchedule?: boolean;\n includeEligibilityQuestionnaire?: boolean;\n includeContractDetails?: boolean;\n includeContractPreview?: boolean;\n};\n\nexport function buildSteps(config: StepConfig = {}) {\n const stepDefinitions: Array<{\n name: StepKeys;\n label: string;\n visible: boolean;\n }> = [\n {\n name: 'select_country',\n label: 'Select Country',\n visible: Boolean(config?.includeSelectCountry),\n },\n {\n name: 'basic_information',\n label: 'Basic Information',\n visible: true,\n },\n {\n name: 'pricing_plan',\n label: 'Pricing Plan',\n visible: true,\n },\n {\n name: 'eligibility_questionnaire',\n label: 'Eligibility Questionnaire',\n visible: Boolean(config?.includeEligibilityQuestionnaire),\n },\n {\n name: 'contract_origin',\n label: 'Contract Options',\n visible: Boolean(config?.includeContractOrigin ?? true),\n },\n {\n name: 'contract_details',\n label: 'Contract Details',\n visible: Boolean(config?.includeContractDetails ?? true),\n },\n {\n name: 'contract_preview',\n label: 'Contract Preview',\n visible: Boolean(config?.includeContractPreview),\n },\n {\n name: 'invoice_schedule',\n label: 'Invoice schedule',\n visible: Boolean(config?.includeInvoiceSchedule),\n },\n {\n name: 'create_invoice_schedule',\n label: 'Create Invoice Schedule',\n visible: Boolean(config?.includeCreateInvoiceSchedule),\n },\n {\n name: 'review',\n label: 'Review',\n visible: true,\n },\n ];\n\n const stepsArray = stepDefinitions.map((step, index) => ({\n name: step.name,\n index,\n label: step.label,\n visible: step.visible,\n }));\n\n const steps = stepsArray.reduce(\n (acc, step) => {\n acc[step.name] = {\n index: step.index,\n name: step.name,\n visible: step.visible,\n };\n return acc;\n },\n {} as Record<string, Step<StepKeys>>,\n );\n\n return { steps, stepsArray };\n}\n\n/**\n * Calculates the description for the provisional start date field\n * based on whether the dates match between basic information and contract details steps\n */\nexport const calculateProvisionalStartDateDescription = (\n employmentProvisionalStartDate: string | undefined,\n fieldProvisionalStartDate: string | undefined,\n): string | undefined => {\n const datesNotMatching =\n employmentProvisionalStartDate &&\n fieldProvisionalStartDate &&\n employmentProvisionalStartDate !== fieldProvisionalStartDate;\n\n if (datesNotMatching) {\n const datesDontMatchWarning = `This date does not match the date you provided in the Basic Information step - ${\n employmentProvisionalStartDate\n } - and will override it only when both parties have signed the contract.`;\n return `When the contractor will start providing service to your company. ${datesDontMatchWarning}`;\n }\n return undefined;\n};\n\n/**\n * Checks if the selected pricing plan is CM (standard) or CM+ (plus)\n */\nexport const isCMOrCMPlus = (subscription: string | undefined): boolean => {\n return (\n subscription === contractorStandardProductIdentifier ||\n subscription === contractorPlusProductIdentifier\n );\n};\n\nconst NATIONALITY_COUNTRY_CODES = ['SAU', 'KWT', 'OMN', 'QAT', 'BHR'];\n\n/**\n * Checks if the country code is a country code that requires nationality status field\n */\nexport const isNationalityCountryCode = (countryCode: string) => {\n return NATIONALITY_COUNTRY_CODES.includes(countryCode);\n};\n\n/**\n * Checks if a product should be included based on the excludeProducts list\n * @param productIdentifier - The product identifier to check\n * @param excludeProducts - Array of products to exclude\n * @returns true if the product should be included, false otherwise\n */\nexport const shouldIncludeProduct = (\n productIdentifier: string,\n excludeProducts?: ProductType[],\n): boolean => {\n if (!excludeProducts || excludeProducts.length === 0) {\n return true;\n }\n\n return !excludeProducts.some(\n (excluded) => PRODUCT_IDENTIFIER_MAP[excluded] === productIdentifier,\n );\n};\n\n/**\n * Array of employment statuses that are allowed to proceed to the review step.\n * These statuses indicate that the employment is in a final state and the employment cannot be modified further.\n * @type {Employment['status'][]}\n * @constant\n */\nexport const reviewStepAllowedEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'invited',\n 'created_awaiting_reserve',\n 'created_reserve_paid',\n 'active',\n];\n\nexport const disabledInviteButtonEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'created_awaiting_reserve',\n 'invited',\n 'active',\n];\n\n/**\n * Transforms AI error messages to use default localized messages\n * @param isContractorOfRecord - Whether the contractor is a Contractor of Record\n * @param errors - Array of error messages from the API\n * @returns Array containing the appropriate default error message\n */\nexport function transformAiErrorResponse(\n isContractorOfRecord: boolean,\n): string {\n const remoteAiErrorMessage = isContractorOfRecord\n ? REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE\n : REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE;\n return remoteAiErrorMessage;\n}\n\nconst DEFAULT_VERSION = 1;\n\n/**\n * Gets the basic information schema version from options\n * @param options - The flow options containing version configurations\n * @returns The jsonSchemaVersion for basic information or default (1)\n */\nexport const getBasicInformationSchemaVersion = (options?: {\n jsonSchemaVersion?: { employment_basic_information?: number | 'latest' };\n}): number | 'latest' => {\n return (\n options?.jsonSchemaVersion?.employment_basic_information || DEFAULT_VERSION\n );\n};\n\n/**\n * Builds invoice items array from form values\n * Collects up to 10 invoice items (item_1 through item_10)\n * @param values - Form values containing item_N_description and item_N_amount fields\n * @returns Array of invoice items with description and amount\n */\nexport function buildInvoiceItems(values: Record<string, unknown>) {\n const items = [];\n for (let i = 1; i <= 10; i++) {\n const description = values[`item_${i}_description`];\n const amount = values[`item_${i}_amount`];\n if (typeof description === 'string' && typeof amount === 'number') {\n items.push({\n description,\n amount: amount,\n });\n }\n }\n return items;\n}\n\n/**\n * Builds the base invoice schedule payload from form values\n * @param values - Form values containing invoice schedule data\n * @returns Invoice schedule payload object\n */\nexport function buildInvoiceSchedulePayload(\n values: Record<string, unknown>,\n): Record<string, unknown> {\n const payload: Record<string, unknown> = {\n currency: values.currency,\n periodicity: values.periodicity,\n start_date: values.start_date,\n items: buildInvoiceItems(values),\n };\n\n if (values.number) {\n payload.number = String(values.number);\n }\n\n if (values.note) {\n payload.note = values.note;\n }\n\n if (values.nr_occurrences) {\n payload.nr_occurrences = Number(values.nr_occurrences);\n }\n\n return payload;\n}\n"],"mappings":"4GAiCO,SAASA,EAAWC,EAAqB,CAAC,EAAG,CA0DlD,IAAMC,EArDD,CACH,CACE,KAAM,iBACN,MAAO,iBACP,QAAS,EAAQD,GAAQ,oBAC3B,EACA,CACE,KAAM,oBACN,MAAO,oBACP,QAAS,EACX,EACA,CACE,KAAM,eACN,MAAO,eACP,QAAS,EACX,EACA,CACE,KAAM,4BACN,MAAO,4BACP,QAAS,EAAQA,GAAQ,+BAC3B,EACA,CACE,KAAM,kBACN,MAAO,mBACP,QAAS,GAAQA,GAAQ,uBAAyB,GACpD,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,GAAQA,GAAQ,wBAA0B,GACrD,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EAAQA,GAAQ,sBAC3B,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EAAQA,GAAQ,sBAC3B,EACA,CACE,KAAM,0BACN,MAAO,0BACP,QAAS,EAAQA,GAAQ,4BAC3B,EACA,CACE,KAAM,SACN,MAAO,SACP,QAAS,EACX,CACF,EAEmC,IAAI,CAACE,EAAMC,KAAW,CACvD,KAAMD,EAAK,KACX,MAAAC,EACA,MAAOD,EAAK,MACZ,QAASA,EAAK,OAChB,EAAE,EAcF,MAAO,CAAE,MAZKD,EAAW,OACvB,CAACG,EAAKF,KACJE,EAAIF,EAAK,IAAI,EAAI,CACf,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,QAASA,EAAK,OAChB,EACOE,GAET,CAAC,CACH,EAEgB,WAAAH,CAAW,CAC7B,CA9EgBI,EAAAN,EAAA,cAoFT,IAAMO,EAA2CD,EAAA,CACtDE,EACAC,IACuB,CAMvB,GAJED,GACAC,GACAD,IAAmCC,EAMnC,MAAO,qEAHuB,kFAC5BD,CACF,0EACiG,EAGrG,EAhBwD,4CAqB3CE,EAAeJ,EAACK,GAEzBA,IAAiBC,GACjBD,IAAiBE,EAHO,gBAOtBC,EAA4B,CAAC,MAAO,MAAO,MAAO,MAAO,KAAK,EAKvDC,EAA2BT,EAACU,GAChCF,EAA0B,SAASE,CAAW,EADf,4BAU3BC,EAAuBX,EAAA,CAClCY,EACAC,IAEI,CAACA,GAAmBA,EAAgB,SAAW,EAC1C,GAGF,CAACA,EAAgB,KACrBC,GAAaC,EAAuBD,CAAQ,IAAMF,CACrD,EAVkC,wBAmBvBI,EAA4D,CACvE,YACA,UACA,2BACA,uBACA,QACF,EAEaC,EAA+D,CAC1E,YACA,2BACA,UACA,QACF,EAQO,SAASC,EACdC,EACQ,CAIR,OAH6BA,EACzBC,EACAC,CAEN,CAPgBrB,EAAAkB,EAAA,4BAShB,IAAMI,EAAkB,EAOXC,EAAmCvB,EAACwB,GAI7CA,GAAS,mBAAmB,8BAAgCF,EAJhB,oCAczC,SAASG,EAAkBC,EAAiC,CACjE,IAAMC,EAAQ,CAAC,EACf,QAASC,EAAI,EAAGA,GAAK,GAAIA,IAAK,CAC5B,IAAMC,EAAcH,EAAO,QAAQE,CAAC,cAAc,EAC5CE,EAASJ,EAAO,QAAQE,CAAC,SAAS,EACpC,OAAOC,GAAgB,UAAY,OAAOC,GAAW,UACvDH,EAAM,KAAK,CACT,YAAAE,EACA,OAAQC,CACV,CAAC,CAEL,CACA,OAAOH,CACT,CAbgB3B,EAAAyB,EAAA,qBAoBT,SAASM,EACdL,EACyB,CACzB,IAAMM,EAAmC,CACvC,SAAUN,EAAO,SACjB,YAAaA,EAAO,YACpB,WAAYA,EAAO,WACnB,MAAOD,EAAkBC,CAAM,CACjC,EAEA,OAAIA,EAAO,SACTM,EAAQ,OAAS,OAAON,EAAO,MAAM,GAGnCA,EAAO,OACTM,EAAQ,KAAON,EAAO,MAGpBA,EAAO,iBACTM,EAAQ,eAAiB,OAAON,EAAO,cAAc,GAGhDM,CACT,CAvBgBhC,EAAA+B,EAAA","names":["buildSteps","config","stepsArray","step","index","acc","__name","calculateProvisionalStartDateDescription","employmentProvisionalStartDate","fieldProvisionalStartDate","isCMOrCMPlus","subscription","contractorStandardProductIdentifier","contractorPlusProductIdentifier","NATIONALITY_COUNTRY_CODES","isNationalityCountryCode","countryCode","shouldIncludeProduct","productIdentifier","excludeProducts","excluded","PRODUCT_IDENTIFIER_MAP","reviewStepAllowedEmploymentStatus","disabledInviteButtonEmploymentStatus","transformAiErrorResponse","isContractorOfRecord","REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE","REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE","DEFAULT_VERSION","getBasicInformationSchemaVersion","options","buildInvoiceItems","values","items","i","description","amount","buildInvoiceSchedulePayload","payload"]}
1
+ {"version":3,"sources":["../src/flows/ContractorOnboarding/utils.ts"],"sourcesContent":["import { Step } from '@/src/flows/useStepState';\nimport {\n contractorStandardProductIdentifier,\n contractorPlusProductIdentifier,\n ProductType,\n PRODUCT_IDENTIFIER_MAP,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE,\n} from '@/src/flows/ContractorOnboarding/constants';\nimport { Employment } from '@/src/flows/Onboarding/types';\n\nexport type StepKeys =\n | 'select_country'\n | 'basic_information'\n | 'contract_origin'\n | 'invoice_schedule'\n | 'create_invoice_schedule'\n | 'contract_details'\n | 'eligibility_questionnaire'\n | 'contract_preview'\n | 'pricing_plan'\n | 'review';\n\ntype StepConfig = {\n includeSelectCountry?: boolean;\n includeContractOrigin?: boolean;\n includeInvoiceSchedule?: boolean;\n includeCreateInvoiceSchedule?: boolean;\n includeEligibilityQuestionnaire?: boolean;\n includeContractDetails?: boolean;\n includeContractPreview?: boolean;\n};\n\nexport function buildSteps(config: StepConfig = {}) {\n const stepDefinitions: Array<{\n name: StepKeys;\n label: string;\n visible: boolean;\n }> = [\n {\n name: 'select_country',\n label: 'Select Country',\n visible: Boolean(config?.includeSelectCountry),\n },\n {\n name: 'basic_information',\n label: 'Basic Information',\n visible: true,\n },\n {\n name: 'pricing_plan',\n label: 'Pricing Plan',\n visible: true,\n },\n {\n name: 'eligibility_questionnaire',\n label: 'Eligibility Questionnaire',\n visible: Boolean(config?.includeEligibilityQuestionnaire),\n },\n {\n name: 'contract_origin',\n label: 'Contract Options',\n visible: Boolean(config?.includeContractOrigin ?? true),\n },\n {\n name: 'contract_details',\n label: 'Contract Details',\n visible: Boolean(config?.includeContractDetails ?? true),\n },\n {\n name: 'contract_preview',\n label: 'Contract Preview',\n visible: Boolean(config?.includeContractPreview),\n },\n {\n name: 'invoice_schedule',\n label: 'Invoice schedule',\n visible: Boolean(config?.includeInvoiceSchedule),\n },\n {\n name: 'create_invoice_schedule',\n label: 'Create Invoice Schedule',\n visible: Boolean(config?.includeCreateInvoiceSchedule),\n },\n {\n name: 'review',\n label: 'Review',\n visible: true,\n },\n ];\n\n const stepsArray = stepDefinitions.map((step, index) => ({\n name: step.name,\n index,\n label: step.label,\n visible: step.visible,\n }));\n\n const steps = stepsArray.reduce(\n (acc, step) => {\n acc[step.name] = {\n index: step.index,\n name: step.name,\n visible: step.visible,\n };\n return acc;\n },\n {} as Record<string, Step<StepKeys>>,\n );\n\n return { steps, stepsArray };\n}\n\n/**\n * Calculates the description for the provisional start date field\n * based on whether the dates match between basic information and contract details steps\n */\nexport const calculateProvisionalStartDateDescription = (\n employmentProvisionalStartDate: string | undefined,\n fieldProvisionalStartDate: string | undefined,\n): string | undefined => {\n const datesNotMatching =\n employmentProvisionalStartDate &&\n fieldProvisionalStartDate &&\n employmentProvisionalStartDate !== fieldProvisionalStartDate;\n\n if (datesNotMatching) {\n const datesDontMatchWarning = `This date does not match the date you provided in the Basic Information step - ${\n employmentProvisionalStartDate\n } - and will override it only when both parties have signed the contract.`;\n return `When the contractor will start providing service to your company. ${datesDontMatchWarning}`;\n }\n return undefined;\n};\n\n/**\n * Checks if the selected pricing plan is CM (standard) or CM+ (plus)\n */\nexport const isCMOrCMPlus = (subscription: string | undefined): boolean => {\n return (\n subscription === contractorStandardProductIdentifier ||\n subscription === contractorPlusProductIdentifier\n );\n};\n\nconst NATIONALITY_COUNTRY_CODES = ['SAU', 'KWT', 'OMN', 'QAT', 'BHR'];\n\n/**\n * Checks if the country code is a country code that requires nationality status field\n */\nexport const isNationalityCountryCode = (countryCode: string) => {\n return NATIONALITY_COUNTRY_CODES.includes(countryCode);\n};\n\n/**\n * Checks if a product should be included based on the excludeProducts list\n * @param productIdentifier - The product identifier to check\n * @param excludeProducts - Array of products to exclude\n * @returns true if the product should be included, false otherwise\n */\nexport const shouldIncludeProduct = (\n productIdentifier: string,\n excludeProducts?: ProductType[],\n): boolean => {\n if (!excludeProducts || excludeProducts.length === 0) {\n return true;\n }\n\n return !excludeProducts.some(\n (excluded) => PRODUCT_IDENTIFIER_MAP[excluded] === productIdentifier,\n );\n};\n\n/**\n * Array of employment statuses that are allowed to proceed to the review step.\n * These statuses indicate that the employment is in a final state and the employment cannot be modified further.\n * @type {Employment['status'][]}\n * @constant\n */\nexport const reviewStepAllowedEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'invited',\n 'created_awaiting_reserve',\n 'created_reserve_paid',\n 'active',\n];\n\nexport const disabledInviteButtonEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'created_awaiting_reserve',\n 'invited',\n 'active',\n];\n\n/**\n * Transforms AI error messages to use default localized messages\n * @param isContractorOfRecord - Whether the contractor is a Contractor of Record\n * @param errors - Array of error messages from the API\n * @returns Array containing the appropriate default error message\n */\nexport function transformAiErrorResponse(\n isContractorOfRecord: boolean,\n): string {\n const remoteAiErrorMessage = isContractorOfRecord\n ? REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE\n : REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE;\n return remoteAiErrorMessage;\n}\n\nconst DEFAULT_VERSION = 1;\n\n/**\n * Gets the basic information schema version from options\n * @param options - The flow options containing version configurations\n * @returns The jsonSchemaVersion for basic information or default (1)\n */\nexport const getBasicInformationSchemaVersion = (options?: {\n jsonSchemaVersion?: { employment_basic_information?: number | 'latest' };\n}): number | 'latest' => {\n return (\n options?.jsonSchemaVersion?.employment_basic_information || DEFAULT_VERSION\n );\n};\n\n// Invoice-schedule payload builders are shared with the standalone InvoiceSchedule flow and\n// live in src/common/invoice-schedules. Re-exported here so existing imports keep resolving.\nexport {\n buildInvoiceItems,\n buildInvoicePreviewPayload,\n buildInvoiceSchedulePayload,\n} from '@/src/common/invoice-schedules/utils';\n"],"mappings":"uGAiCO,SAASA,EAAWC,EAAqB,CAAC,EAAG,CA0DlD,IAAMC,EArDD,CACH,CACE,KAAM,iBACN,MAAO,iBACP,QAAS,EAAQD,GAAQ,oBAC3B,EACA,CACE,KAAM,oBACN,MAAO,oBACP,QAAS,EACX,EACA,CACE,KAAM,eACN,MAAO,eACP,QAAS,EACX,EACA,CACE,KAAM,4BACN,MAAO,4BACP,QAAS,EAAQA,GAAQ,+BAC3B,EACA,CACE,KAAM,kBACN,MAAO,mBACP,QAAS,GAAQA,GAAQ,uBAAyB,GACpD,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,GAAQA,GAAQ,wBAA0B,GACrD,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EAAQA,GAAQ,sBAC3B,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EAAQA,GAAQ,sBAC3B,EACA,CACE,KAAM,0BACN,MAAO,0BACP,QAAS,EAAQA,GAAQ,4BAC3B,EACA,CACE,KAAM,SACN,MAAO,SACP,QAAS,EACX,CACF,EAEmC,IAAI,CAACE,EAAMC,KAAW,CACvD,KAAMD,EAAK,KACX,MAAAC,EACA,MAAOD,EAAK,MACZ,QAASA,EAAK,OAChB,EAAE,EAcF,MAAO,CAAE,MAZKD,EAAW,OACvB,CAACG,EAAKF,KACJE,EAAIF,EAAK,IAAI,EAAI,CACf,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,QAASA,EAAK,OAChB,EACOE,GAET,CAAC,CACH,EAEgB,WAAAH,CAAW,CAC7B,CA9EgBI,EAAAN,EAAA,cAoFT,IAAMO,EAA2CD,EAAA,CACtDE,EACAC,IACuB,CAMvB,GAJED,GACAC,GACAD,IAAmCC,EAMnC,MAAO,qEAHuB,kFAC5BD,CACF,0EACiG,EAGrG,EAhBwD,4CAqB3CE,EAAeJ,EAACK,GAEzBA,IAAiBC,GACjBD,IAAiBE,EAHO,gBAOtBC,EAA4B,CAAC,MAAO,MAAO,MAAO,MAAO,KAAK,EAKvDC,EAA2BT,EAACU,GAChCF,EAA0B,SAASE,CAAW,EADf,4BAU3BC,EAAuBX,EAAA,CAClCY,EACAC,IAEI,CAACA,GAAmBA,EAAgB,SAAW,EAC1C,GAGF,CAACA,EAAgB,KACrBC,GAAaC,EAAuBD,CAAQ,IAAMF,CACrD,EAVkC,wBAmBvBI,EAA4D,CACvE,YACA,UACA,2BACA,uBACA,QACF,EAEaC,EAA+D,CAC1E,YACA,2BACA,UACA,QACF,EAQO,SAASC,EACdC,EACQ,CAIR,OAH6BA,EACzBC,EACAC,CAEN,CAPgBrB,EAAAkB,EAAA,4BAShB,IAAMI,EAAkB,EAOXC,EAAmCvB,EAACwB,GAI7CA,GAAS,mBAAmB,8BAAgCF,EAJhB","names":["buildSteps","config","stepsArray","step","index","acc","__name","calculateProvisionalStartDateDescription","employmentProvisionalStartDate","fieldProvisionalStartDate","isCMOrCMPlus","subscription","contractorStandardProductIdentifier","contractorPlusProductIdentifier","NATIONALITY_COUNTRY_CODES","isNationalityCountryCode","countryCode","shouldIncludeProduct","productIdentifier","excludeProducts","excluded","PRODUCT_IDENTIFIER_MAP","reviewStepAllowedEmploymentStatus","disabledInviteButtonEmploymentStatus","transformAiErrorResponse","isContractorOfRecord","REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE","REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE","DEFAULT_VERSION","getBasicInformationSchemaVersion","options"]}
@@ -1,2 +1,2 @@
1
- import{a as ee}from"./chunk-4YFJOHSM.js";import{a as C}from"./chunk-HN5HLFTB.js";import{a as z}from"./chunk-VFRHMNLJ.js";import{a as W,b as X,c as Y,f as Z}from"./chunk-ILX6RI7K.js";import{a as I}from"./chunk-KFYWUBRS.js";import{c as te}from"./chunk-ALHHN2LG.js";import{a as Q}from"./chunk-XFVXRCMH.js";import{b as G,h as M}from"./chunk-C4HFMTSB.js";import{a as o}from"./chunk-P37U34EQ.js";import{number as Te,object as le}from"yup";import{useCallback as we,useEffect as ne,useMemo as Re,useRef as Pe,useState as j}from"react";import{string as re,ValidationError as ie}from"yup";import{jsx as ae}from"react/jsx-runtime";var O={title:"Estimation",includeBenefits:!1,includeCostBreakdowns:!1,includePremiumBenefits:!1,enableCurrencyConversion:!1,includeEstimationTitle:!1,includeManagementFee:!1},xe=o(t=>Q(z.data.schema,void 0,t),"useStaticSchema");function Be(t,i){if(typeof t=="object"&&t!==null&&"title"in t){let l=t.title;if(l)return l}return i==="my_hiring_budget"?"Hiring budget":"Employee's annual salary"}o(Be,"getSalaryTitle");var Qe=o(({defaultRegion:t,defaultCurrency:i,defaultSalary:l,estimationOptions:s,options:n,version:a}={estimationOptions:O})=>{let c=Pe({fields:{}}),[k,h]=j(t),[w,R]=j(),[m,q]=j(),[H,ce]=j(),{data:_,isLoading:ue}=W({includePremiumBenefits:s.includePremiumBenefits}),{data:d,isLoading:me}=X(),de=k||w?.value,{data:P,isLoading:fe}=Z(de,{includePremiumBenefits:s.includePremiumBenefits,options:n}),U=Y(),{mutateAsync:ge}=G(U),b=w?.currency,p=n?.jsfModify?.fields?.salary,F=p&&typeof p=="object"&&"presentation"in p?p.presentation:void 0,L=we(()=>{let e=b&&m?b!==m:!1;return b!==m?{from:m,to:b,shouldSwapOrder:e}:{from:b,to:m,shouldSwapOrder:e}},[b,m]),D=s.showManagementFee,J=s.includeEstimationTitle,$=n?.features?.includes("split_salary_description")??!1,ye=Re(()=>{let{from:e,to:r,shouldSwapOrder:u}=L(),g=Be(p,H);return{fields:{salary:{...p,title:g,presentation:{salary_conversion_properties:{label:F?.salary_conversion_properties?.label,description:F?.salary_conversion_properties?.description},currencies:{from:e,to:r},Component:o(y=>ae(ee,{...y,shouldSwapOrder:u,conversionType:a==="marketing"?"no_spread":"spread",defaultValue:l,splitDescription:$}),"Component")}},hiring_budget:{...n?.jsfModify?.fields?.hiring_budget,presentation:{hidden:a=="marketing"}},management:{...n?.jsfModify?.fields?.management,properties:{...n?.jsfModify?.fields?.management?.properties,management_fee:{...n?.jsfModify?.fields?.management?.properties?.management_fee,"x-jsf-presentation":{inputType:"money",additionalProps:{currency:m||"USD"}}}},presentation:{...typeof n?.jsfModify?.fields?.management=="object"?(n?.jsfModify?.fields?.management)["x-jsf-presentation"]:{},hidden:!D,Component:o(y=>ae(te,{...y,variant:"inset",features:{toggle:{enabled:!0,stateField:"management._expanded",labels:{expand:"Define",collapse:"Remove"}}}}),"Component")}},estimation_title:{...n?.jsfModify?.fields?.estimation_title,"x-jsf-presentation":{hidden:!J}}}}},[L,p,H,F?.salary_conversion_properties?.label,F?.salary_conversion_properties?.description,n?.jsfModify?.fields?.hiring_budget,n?.jsfModify?.fields?.management,n?.jsfModify?.fields?.estimation_title,a,m,D,J,l,$]),f=xe({jsfModify:{fields:{...n?.jsfModify?.fields,...ye?.fields}}});ne(()=>{if(t&&_){let e=_.find(({value:r})=>r===t);e&&R(e)}},[t,_]),ne(()=>{if(i&&d){let e=d.find(({value:r})=>r===i);e&&q(e.label)}},[i,d]);async function pe(e){return ge(se(e,s,a))}o(pe,"onSubmit");function Ce(e){let r=_?.find(({value:u})=>u===e);r&&r.childRegions.length===0&&r.hasAdditionalFields?h(r.regionSlug):h(void 0),R(r)}o(Ce,"onCountryChange");function _e(e){h(e)}o(_e,"onRegionChange");function be(e){ce(e.target.value)}o(be,"onHiringBudgetChange");function Se(e){let r=d?.find(u=>u.value===e)?.label;q(r),n?.onCurrencyChange?.(r||"")}o(Se,"onChangeCurrency");let S=f.fields.find(e=>e.name==="region");if(S){let e=w?.childRegions.map(r=>({value:r.slug,label:r.name}))??[];S.options=e,S.isVisible=e.length>0,S.required=e.length>0,S.onChange=_e,S.schema=e.length>0?re().transform(r=>typeof r=="string"?r:"").required("Region is required"):re()}if(d){let e=f.fields.find(r=>r.name==="currency");e&&(e.options=d,e.onChange=Se)}let v=f.fields.find(e=>e.name==="hiring_budget");if(v&&(v.onChange=be),_){let e=f.fields.find(r=>r.name==="country");e&&(e.options=_,e.onChange=Ce)}let Ee=o(()=>{R(void 0),h(t)},"resetForm"),N=[...f.fields.filter(e=>e.name!=="management"),...P?.fields||[],...f.fields.filter(e=>e.name==="management")],K=oe(f.fields,m||"USD",s.includeEstimationTitle);async function he(e){let r=null;n?.onValidation?.(e);let u=await M(e,N);try{await K.validate(u,{abortEarly:!1}),r={formErrors:{},yupError:new ie([],e)}}catch(E){let B=I(E);r={formErrors:Object.entries(B).reduce((T,[A,V])=>({...T,[A]:V.message}),{}),yupError:E}}let g=P?.handleValidation(u),y=[...r?.yupError.inner||[],...g?.yupError?.inner||[]],x={...r?.yupError?.value||{},...g?.yupError?.value||{}};return{formErrors:{...r?.formErrors||{},...g?.formErrors||{}},yupError:new ie(y,x)}}return o(he,"handleValidation"),{stepState:{current:0,total:1,isLastStep:!0},fields:N,validationSchema:K,parseFormValues:o(async e=>{let{country:r,region:u,currency:g,salary_converted:y,hiring_budget:x,salary_conversion:E,management:B,estimation_title:T,...A}=e,V=e.salary;y==="salary_conversion"&&(V=E);let Fe=await M({country:r,region:u,salary:V,salary_converted:y,salary_conversion:E,hiring_budget:x,currency:g,management:B,estimation_title:T},f.fields),Ve=await M(A,P?.fields||[]),Me={currency_code:d?.find(je=>je.value===g)?.label};return{...Fe,...Ve,...Me}},"parseFormValues"),handleValidation:he,isSubmitting:U.isPending,isLoading:ue&&me&&fe,onSubmit:pe,resetForm:Ee,currencies:d,meta:{fields:c.current?.fields}}},"useCostCalculator");function oe(t,i,l){let s=t.reduce((n,a)=>(a.name==="salary"||a.name==="salary_conversion"?n[a.name]=a.schema.when("salary_converted",{is:o(c=>c===a.name,"is"),then:o(c=>c.required("Required field"),"then"),otherwise:o(c=>c.optional(),"otherwise")}):a.name==="management"?n[a.name]=le({management_fee:Te().transform(c=>isNaN(c)?void 0:c).min(0,"Management fee must be greater than or equal to 0").max(i?C[i]:C.USD,()=>`Management fee cannot exceed ${(i?C[i]:C.USD)/100} ${i}`)}):a.name==="estimation_title"&&l?n[a.name]=a.schema.required("Required field"):n[a.name]=a.schema,n),{});return le(s)}o(oe,"buildValidationSchema");function Ae(t){let i="benefit-";return Object.keys(t).reduce((l,s)=>{let n=t[s];if(n==="none")return l;let c={benefit_group_slug:s.replace(i,""),benefit_tier_slug:n};return[...l,c]},[])}o(Ae,"formatBenefits");function Oe(t,i,l){let s=Number(t.management?.management_fee),n=t.currency_code;return{...{region_slug:t.region||t.country,employment_term:t.contract_duration_type??"fixed",title:t.estimation_title||i.title,age:t.age??void 0,...t.benefits&&{benefits:Ae(t.benefits)},...i.includeManagementFee&&s&&{discount:{quoted_amount:i.showManagementFee?s:C[n]||C.USD,text:""}}},...ke(t,l)}}o(Oe,"mapValueToEmployment");function ke(t,i){let l=i==="marketing"||t.salary_converted==="salary_conversion",s=i==="standard"&&t.salary_converted==="salary",n=t.hiring_budget==="my_hiring_budget";if(l){let a=t.salary_converted==="salary_conversion";return n?{annual_total_cost_in_employer_currency:t.salary}:{[a?"annual_gross_salary_in_employer_currency":"annual_gross_salary"]:t.salary}}return s?n?{annual_total_cost:t.salary}:{annual_gross_salary:t.salary}:{}}o(ke,"getSalaryFields");function se(t,i=O,l="standard"){let s=Array.isArray(t)?t:[t];if(s.length===0)throw new Error("At least one employment value is required");return s.length>1&&new Set(s.map(a=>a.currency)).size>1&&console.warn("Multiple currencies detected in array. Using currency from first employment."),{employer_currency_slug:s[0].currency,include_benefits:i.includeBenefits,include_cost_breakdowns:i.includeCostBreakdowns,include_premium_benefits:i.includePremiumBenefits,include_management_fee:i.includeManagementFee,employments:s.map(n=>Oe(n,i,l))}}o(se,"buildPayload");export{oe as a,se as b,O as c,Qe as d};
2
- //# sourceMappingURL=chunk-J4CHUIPC.js.map
1
+ import{a as ee}from"./chunk-XWCE5BU6.js";import{a as z}from"./chunk-QATHYZUV.js";import{a as W,b as X,c as Y,f as Z}from"./chunk-ZRD3M74X.js";import{a as C}from"./chunk-HN5HLFTB.js";import{a as I}from"./chunk-KFYWUBRS.js";import{c as te}from"./chunk-KSSQR2CS.js";import{a as Q}from"./chunk-XFVXRCMH.js";import{b as G,h as M}from"./chunk-C4HFMTSB.js";import{a as o}from"./chunk-P37U34EQ.js";import{number as Te,object as le}from"yup";import{useCallback as we,useEffect as ne,useMemo as Re,useRef as Pe,useState as j}from"react";import{string as re,ValidationError as ie}from"yup";import{jsx as ae}from"react/jsx-runtime";var O={title:"Estimation",includeBenefits:!1,includeCostBreakdowns:!1,includePremiumBenefits:!1,enableCurrencyConversion:!1,includeEstimationTitle:!1,includeManagementFee:!1},xe=o(t=>Q(z.data.schema,void 0,t),"useStaticSchema");function Be(t,i){if(typeof t=="object"&&t!==null&&"title"in t){let l=t.title;if(l)return l}return i==="my_hiring_budget"?"Hiring budget":"Employee's annual salary"}o(Be,"getSalaryTitle");var Qe=o(({defaultRegion:t,defaultCurrency:i,defaultSalary:l,estimationOptions:s,options:n,version:a}={estimationOptions:O})=>{let c=Pe({fields:{}}),[k,h]=j(t),[w,R]=j(),[m,q]=j(),[H,ce]=j(),{data:_,isLoading:ue}=W({includePremiumBenefits:s.includePremiumBenefits}),{data:d,isLoading:me}=X(),de=k||w?.value,{data:P,isLoading:fe}=Z(de,{includePremiumBenefits:s.includePremiumBenefits,options:n}),U=Y(),{mutateAsync:ge}=G(U),b=w?.currency,p=n?.jsfModify?.fields?.salary,F=p&&typeof p=="object"&&"presentation"in p?p.presentation:void 0,L=we(()=>{let e=b&&m?b!==m:!1;return b!==m?{from:m,to:b,shouldSwapOrder:e}:{from:b,to:m,shouldSwapOrder:e}},[b,m]),D=s.showManagementFee,J=s.includeEstimationTitle,$=n?.features?.includes("split_salary_description")??!1,ye=Re(()=>{let{from:e,to:r,shouldSwapOrder:u}=L(),g=Be(p,H);return{fields:{salary:{...p,title:g,presentation:{salary_conversion_properties:{label:F?.salary_conversion_properties?.label,description:F?.salary_conversion_properties?.description},currencies:{from:e,to:r},Component:o(y=>ae(ee,{...y,shouldSwapOrder:u,conversionType:a==="marketing"?"no_spread":"spread",defaultValue:l,splitDescription:$}),"Component")}},hiring_budget:{...n?.jsfModify?.fields?.hiring_budget,presentation:{hidden:a=="marketing"}},management:{...n?.jsfModify?.fields?.management,properties:{...n?.jsfModify?.fields?.management?.properties,management_fee:{...n?.jsfModify?.fields?.management?.properties?.management_fee,"x-jsf-presentation":{inputType:"money",additionalProps:{currency:m||"USD"}}}},presentation:{...typeof n?.jsfModify?.fields?.management=="object"?(n?.jsfModify?.fields?.management)["x-jsf-presentation"]:{},hidden:!D,Component:o(y=>ae(te,{...y,variant:"inset",features:{toggle:{enabled:!0,stateField:"management._expanded",labels:{expand:"Define",collapse:"Remove"}}}}),"Component")}},estimation_title:{...n?.jsfModify?.fields?.estimation_title,"x-jsf-presentation":{hidden:!J}}}}},[L,p,H,F?.salary_conversion_properties?.label,F?.salary_conversion_properties?.description,n?.jsfModify?.fields?.hiring_budget,n?.jsfModify?.fields?.management,n?.jsfModify?.fields?.estimation_title,a,m,D,J,l,$]),f=xe({jsfModify:{fields:{...n?.jsfModify?.fields,...ye?.fields}}});ne(()=>{if(t&&_){let e=_.find(({value:r})=>r===t);e&&R(e)}},[t,_]),ne(()=>{if(i&&d){let e=d.find(({value:r})=>r===i);e&&q(e.label)}},[i,d]);async function pe(e){return ge(se(e,s,a))}o(pe,"onSubmit");function Ce(e){let r=_?.find(({value:u})=>u===e);r&&r.childRegions.length===0&&r.hasAdditionalFields?h(r.regionSlug):h(void 0),R(r)}o(Ce,"onCountryChange");function _e(e){h(e)}o(_e,"onRegionChange");function be(e){ce(e.target.value)}o(be,"onHiringBudgetChange");function Se(e){let r=d?.find(u=>u.value===e)?.label;q(r),n?.onCurrencyChange?.(r||"")}o(Se,"onChangeCurrency");let S=f.fields.find(e=>e.name==="region");if(S){let e=w?.childRegions.map(r=>({value:r.slug,label:r.name}))??[];S.options=e,S.isVisible=e.length>0,S.required=e.length>0,S.onChange=_e,S.schema=e.length>0?re().transform(r=>typeof r=="string"?r:"").required("Region is required"):re()}if(d){let e=f.fields.find(r=>r.name==="currency");e&&(e.options=d,e.onChange=Se)}let v=f.fields.find(e=>e.name==="hiring_budget");if(v&&(v.onChange=be),_){let e=f.fields.find(r=>r.name==="country");e&&(e.options=_,e.onChange=Ce)}let Ee=o(()=>{R(void 0),h(t)},"resetForm"),N=[...f.fields.filter(e=>e.name!=="management"),...P?.fields||[],...f.fields.filter(e=>e.name==="management")],K=oe(f.fields,m||"USD",s.includeEstimationTitle);async function he(e){let r=null;n?.onValidation?.(e);let u=await M(e,N);try{await K.validate(u,{abortEarly:!1}),r={formErrors:{},yupError:new ie([],e)}}catch(E){let B=I(E);r={formErrors:Object.entries(B).reduce((T,[A,V])=>({...T,[A]:V.message}),{}),yupError:E}}let g=P?.handleValidation(u),y=[...r?.yupError.inner||[],...g?.yupError?.inner||[]],x={...r?.yupError?.value||{},...g?.yupError?.value||{}};return{formErrors:{...r?.formErrors||{},...g?.formErrors||{}},yupError:new ie(y,x)}}return o(he,"handleValidation"),{stepState:{current:0,total:1,isLastStep:!0},fields:N,validationSchema:K,parseFormValues:o(async e=>{let{country:r,region:u,currency:g,salary_converted:y,hiring_budget:x,salary_conversion:E,management:B,estimation_title:T,...A}=e,V=e.salary;y==="salary_conversion"&&(V=E);let Fe=await M({country:r,region:u,salary:V,salary_converted:y,salary_conversion:E,hiring_budget:x,currency:g,management:B,estimation_title:T},f.fields),Ve=await M(A,P?.fields||[]),Me={currency_code:d?.find(je=>je.value===g)?.label};return{...Fe,...Ve,...Me}},"parseFormValues"),handleValidation:he,isSubmitting:U.isPending,isLoading:ue&&me&&fe,onSubmit:pe,resetForm:Ee,currencies:d,meta:{fields:c.current?.fields}}},"useCostCalculator");function oe(t,i,l){let s=t.reduce((n,a)=>(a.name==="salary"||a.name==="salary_conversion"?n[a.name]=a.schema.when("salary_converted",{is:o(c=>c===a.name,"is"),then:o(c=>c.required("Required field"),"then"),otherwise:o(c=>c.optional(),"otherwise")}):a.name==="management"?n[a.name]=le({management_fee:Te().transform(c=>isNaN(c)?void 0:c).min(0,"Management fee must be greater than or equal to 0").max(i?C[i]:C.USD,()=>`Management fee cannot exceed ${(i?C[i]:C.USD)/100} ${i}`)}):a.name==="estimation_title"&&l?n[a.name]=a.schema.required("Required field"):n[a.name]=a.schema,n),{});return le(s)}o(oe,"buildValidationSchema");function Ae(t){let i="benefit-";return Object.keys(t).reduce((l,s)=>{let n=t[s];if(n==="none")return l;let c={benefit_group_slug:s.replace(i,""),benefit_tier_slug:n};return[...l,c]},[])}o(Ae,"formatBenefits");function Oe(t,i,l){let s=Number(t.management?.management_fee),n=t.currency_code;return{...{region_slug:t.region||t.country,employment_term:t.contract_duration_type??"fixed",title:t.estimation_title||i.title,age:t.age??void 0,...t.benefits&&{benefits:Ae(t.benefits)},...i.includeManagementFee&&s&&{discount:{quoted_amount:i.showManagementFee?s:C[n]||C.USD,text:""}}},...ke(t,l)}}o(Oe,"mapValueToEmployment");function ke(t,i){let l=i==="marketing"||t.salary_converted==="salary_conversion",s=i==="standard"&&t.salary_converted==="salary",n=t.hiring_budget==="my_hiring_budget";if(l){let a=t.salary_converted==="salary_conversion";return n?{annual_total_cost_in_employer_currency:t.salary}:{[a?"annual_gross_salary_in_employer_currency":"annual_gross_salary"]:t.salary}}return s?n?{annual_total_cost:t.salary}:{annual_gross_salary:t.salary}:{}}o(ke,"getSalaryFields");function se(t,i=O,l="standard"){let s=Array.isArray(t)?t:[t];if(s.length===0)throw new Error("At least one employment value is required");return s.length>1&&new Set(s.map(a=>a.currency)).size>1&&console.warn("Multiple currencies detected in array. Using currency from first employment."),{employer_currency_slug:s[0].currency,include_benefits:i.includeBenefits,include_cost_breakdowns:i.includeCostBreakdowns,include_premium_benefits:i.includePremiumBenefits,include_management_fee:i.includeManagementFee,employments:s.map(n=>Oe(n,i,l))}}o(se,"buildPayload");export{oe as a,se as b,O as c,Qe as d};
2
+ //# sourceMappingURL=chunk-UNBTPLJ6.js.map
@@ -1,2 +1,2 @@
1
- import{a as R,b as x,c as N,d as A}from"./chunk-OV4ARZIX.js";import{a as T}from"./chunk-ZE3YT3Q6.js";import{a as C}from"./chunk-SWLNTVAX.js";import{b as B}from"./chunk-LKHRHBFP.js";import{a as f}from"./chunk-5TOSVOLY.js";import{a as w}from"./chunk-GPWQPJQ7.js";import{n as i,o as n,r as F}from"./chunk-C4HFMTSB.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as G}from"lucide-react";import{useState as P}from"react";import{Fragment as U,jsx as g,jsxs as E}from"react/jsx-runtime";function L({actions:e=[],className:r,label:a,"data-testid":l}){let[_,d]=P(!1);return E("div",{className:i("relative",r),children:[g(B,{"data-testid":l,variant:"ghost","aria-label":a,className:"h-8 w-8 p-0",onClick:()=>d(!_),children:g(G,{className:"h-4 w-4"})}),_&&E(U,{children:[g("div",{className:"fixed inset-0 z-40",onClick:()=>d(!1)}),g("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((c,u)=>g("button",{"data-testid":`${l}-${c.label.toLowerCase().replace(" ","-")}`,className:i("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",c.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{c.onClick(),d(!1)},disabled:c.disabled,children:c.label},u))})]})]})}m(L,"ActionsDropdown");import{ChevronDown as S,Info as $}from"lucide-react";import j from"react-flagpack";import{useState as O}from"react";import{Fragment as b,jsx as o,jsxs as t}from"react/jsx-runtime";var Z={GB:"GB-UKM"},K=m(({title:e,country:r,region:a,annualGrossSalary:l,onDelete:_,onExportPdf:d,onEdit:c})=>{let u=[{label:"Edit",onClick:c},{label:"Export",onClick:d},{label:"Delete",onClick:_}];return t("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[t("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(j,{code:Z[r.alpha_2_code]||r.alpha_2_code})}),t("div",{className:"space-y-1",children:[o("h2",{"data-testid":"estimation-results-header-title",className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),t("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[r.name," ",a?` (${a.name})`:""]}),t("p",{"data-testid":"estimation-results-header-annual-gross-salary",className:"RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]",children:[o("span",{className:"text-[#181818]",children:"Employee annual gross salary:"})," ",l]})]})]}),o(L,{label:"Actions",className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:u})]})},"EstimationResultsHeader"),V=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.",zendeskArticleId:w.employeeOnboardingTimeline}),"getOnboardingTimelineData");function Y({minimumOnboardingDays:e,data:r,className:a}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:t(x,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:t("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),e!=null&&t("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),t(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:r.steps.map(l=>t("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),t("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[r.helpText,r.zendeskArticleId&&o(f,{zendeskId:r.zendeskArticleId,children:"Learn more"})]})]})]})})}m(Y,"OnboardingTimeline");function q({className:e,countryBenefitsUrl:r,countryGuideUrl:a,country:l}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__HiringSection w-full",e),children:t(x,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:t("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:t("div",{className:"flex flex-col gap-1",children:[a&&o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),r&&o("a",{href:r,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(q,"HiringSection");function J({isMultipleCurrency:e,className:r}){return t("div",{className:i("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",r),children:[o("span",{"aria-hidden":!0}),e?t(b,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):t(b,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m(J,"EstimationHeaders");function I({label:e,amounts:r,className:a,children:l}){let[_,d]=O(!0);return t("div",{className:i("RemoteFlows__EstimationResults__Row",a),children:[t("div",{className:"RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center",children:[t("div",{className:"RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2",children:[o("span",{className:i("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>d(!_),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(S,{className:`h-4 w-4 text-muted-foreground transition-transform ${_?"rotate-180":""}`})})]}),Array.isArray(r)?r.map((c,u)=>o("span",{className:i("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:c},u)):t(b,{children:[o("span",{}),o("span",{className:i("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:r})]})]}),_&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(I,"EstimationRow");function Q({item:e,isMultipleCurrency:r,level:a=0}){let[l,_]=O(!1),d=e.children&&e.children.length>0,c=a>0,u=e.isCollapsible||d;return t("li",{className:i("RemoteFlows__BreakdownList__Item pb-3",c&&"pb-1"),children:[t("div",{className:i(r?"RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between":"RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between"),children:[t("div",{className:i("RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2",c&&"pl-3"),children:[!c&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),u?t("button",{onClick:()=>_(!l),className:"RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1",children:[o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),o(S,{className:`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})]}):o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1"),children:e.label}),e.tooltip&&o(T,{content:t(b,{children:[o("span",{dangerouslySetInnerHTML:{__html:F(e.tooltip)}})," ",e.zendeskId&&o(f,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o($,{className:i("RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground",c?"h-3 w-3":"h-4 w-4")})})})]}),r?t(b,{children:[o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employee-amount",className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employer-amount",className:i("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{"data-testid":e.dataSelector,className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),d&&l&&o("div",{className:"mt-1",children:o(k,{items:e.children,isMultipleCurrency:r,level:a+1})})]})}m(Q,"BreakdownListItem");function k({items:e,isMultipleCurrency:r,className:a,level:l}){return o("ul",{className:i("RemoteFlows__BreakdownList list-none",a),children:e.map((_,d)=>o(Q,{item:_,isMultipleCurrency:r,level:l},d))})}m(k,"BreakdownList");var pe=m(({estimation:e,title:r,components:a,onDelete:l,onExportPdf:_,onEdit:d})=>{let c=a?.HiringSection||q,u=a?.OnboardingTimeline||Y,z=a?.Header||K,h=a?.Footer,H=V(),p=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,v=e.employer_currency_costs.monthly_management_fee,D=e.region.code!==e.country.code,M=n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code);return t(C,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(z,{title:r,annualGrossSalary:M,region:D?e.region:void 0,country:e.country,onDelete:l,onExportPdf:_,onEdit:d})}),t("div",{className:"RemoteFlows__Separator",children:[o(J,{isMultipleCurrency:p,className:"mb-3"}),o(I,{label:"Monthly total cost",amounts:p?[n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross monthly salary",regionalAmount:n(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.code),zendeskId:w.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Monthly fee",regionalAmount:n(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})]}),o("div",{className:"RemoteFlows__Separator",children:o(I,{label:"Annual total cost",amounts:p?[n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross annual salary",dataSelector:"annual-gross-salary",regionalAmount:n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.code)},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Annual fee",regionalAmount:n(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:H})}),o(c,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),h&&o(h,{})]})},"EstimationResults");export{pe as a};
2
- //# sourceMappingURL=chunk-TXOCMI5I.js.map
1
+ import{a as R,b as x,c as N,d as A}from"./chunk-OV4ARZIX.js";import{a as T}from"./chunk-ZE3YT3Q6.js";import{a as C}from"./chunk-SWLNTVAX.js";import{b as B}from"./chunk-LKHRHBFP.js";import{a as f}from"./chunk-3OHORFIX.js";import{a as w}from"./chunk-GPWQPJQ7.js";import{n as i,o as n,r as F}from"./chunk-C4HFMTSB.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as G}from"lucide-react";import{useState as P}from"react";import{Fragment as U,jsx as g,jsxs as E}from"react/jsx-runtime";function L({actions:e=[],className:r,label:a,"data-testid":l}){let[_,d]=P(!1);return E("div",{className:i("relative",r),children:[g(B,{"data-testid":l,variant:"ghost","aria-label":a,className:"h-8 w-8 p-0",onClick:()=>d(!_),children:g(G,{className:"h-4 w-4"})}),_&&E(U,{children:[g("div",{className:"fixed inset-0 z-40",onClick:()=>d(!1)}),g("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((c,u)=>g("button",{"data-testid":`${l}-${c.label.toLowerCase().replace(" ","-")}`,className:i("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",c.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{c.onClick(),d(!1)},disabled:c.disabled,children:c.label},u))})]})]})}m(L,"ActionsDropdown");import{ChevronDown as S,Info as $}from"lucide-react";import j from"react-flagpack";import{useState as O}from"react";import{Fragment as b,jsx as o,jsxs as t}from"react/jsx-runtime";var Z={GB:"GB-UKM"},K=m(({title:e,country:r,region:a,annualGrossSalary:l,onDelete:_,onExportPdf:d,onEdit:c})=>{let u=[{label:"Edit",onClick:c},{label:"Export",onClick:d},{label:"Delete",onClick:_}];return t("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[t("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(j,{code:Z[r.alpha_2_code]||r.alpha_2_code})}),t("div",{className:"space-y-1",children:[o("h2",{"data-testid":"estimation-results-header-title",className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),t("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[r.name," ",a?` (${a.name})`:""]}),t("p",{"data-testid":"estimation-results-header-annual-gross-salary",className:"RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]",children:[o("span",{className:"text-[#181818]",children:"Employee annual gross salary:"})," ",l]})]})]}),o(L,{label:"Actions",className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:u})]})},"EstimationResultsHeader"),V=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.",zendeskArticleId:w.employeeOnboardingTimeline}),"getOnboardingTimelineData");function Y({minimumOnboardingDays:e,data:r,className:a}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:t(x,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:t("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),e!=null&&t("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),t(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:r.steps.map(l=>t("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),t("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[r.helpText,r.zendeskArticleId&&o(f,{zendeskId:r.zendeskArticleId,children:"Learn more"})]})]})]})})}m(Y,"OnboardingTimeline");function q({className:e,countryBenefitsUrl:r,countryGuideUrl:a,country:l}){return o(R,{collapsible:!0,className:i("RemoteFlows__EstimationResults__HiringSection w-full",e),children:t(x,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:t("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:t("div",{className:"flex flex-col gap-1",children:[a&&o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),r&&o("a",{href:r,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(q,"HiringSection");function J({isMultipleCurrency:e,className:r}){return t("div",{className:i("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",r),children:[o("span",{"aria-hidden":!0}),e?t(b,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):t(b,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m(J,"EstimationHeaders");function I({label:e,amounts:r,className:a,children:l}){let[_,d]=O(!0);return t("div",{className:i("RemoteFlows__EstimationResults__Row",a),children:[t("div",{className:"RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center",children:[t("div",{className:"RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2",children:[o("span",{className:i("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>d(!_),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(S,{className:`h-4 w-4 text-muted-foreground transition-transform ${_?"rotate-180":""}`})})]}),Array.isArray(r)?r.map((c,u)=>o("span",{className:i("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:c},u)):t(b,{children:[o("span",{}),o("span",{className:i("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:r})]})]}),_&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(I,"EstimationRow");function Q({item:e,isMultipleCurrency:r,level:a=0}){let[l,_]=O(!1),d=e.children&&e.children.length>0,c=a>0,u=e.isCollapsible||d;return t("li",{className:i("RemoteFlows__BreakdownList__Item pb-3",c&&"pb-1"),children:[t("div",{className:i(r?"RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between":"RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between"),children:[t("div",{className:i("RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2",c&&"pl-3"),children:[!c&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),u?t("button",{onClick:()=>_(!l),className:"RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1",children:[o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),o(S,{className:`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})]}):o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1"),children:e.label}),e.tooltip&&o(T,{content:t(b,{children:[o("span",{dangerouslySetInnerHTML:{__html:F(e.tooltip)}})," ",e.zendeskId&&o(f,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o($,{className:i("RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground",c?"h-3 w-3":"h-4 w-4")})})})]}),r?t(b,{children:[o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employee-amount",className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employer-amount",className:i("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{"data-testid":e.dataSelector,className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),d&&l&&o("div",{className:"mt-1",children:o(k,{items:e.children,isMultipleCurrency:r,level:a+1})})]})}m(Q,"BreakdownListItem");function k({items:e,isMultipleCurrency:r,className:a,level:l}){return o("ul",{className:i("RemoteFlows__BreakdownList list-none",a),children:e.map((_,d)=>o(Q,{item:_,isMultipleCurrency:r,level:l},d))})}m(k,"BreakdownList");var pe=m(({estimation:e,title:r,components:a,onDelete:l,onExportPdf:_,onEdit:d})=>{let c=a?.HiringSection||q,u=a?.OnboardingTimeline||Y,z=a?.Header||K,h=a?.Footer,H=V(),p=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,v=e.employer_currency_costs.monthly_management_fee,D=e.region.code!==e.country.code,M=n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code);return t(C,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(z,{title:r,annualGrossSalary:M,region:D?e.region:void 0,country:e.country,onDelete:l,onExportPdf:_,onEdit:d})}),t("div",{className:"RemoteFlows__Separator",children:[o(J,{isMultipleCurrency:p,className:"mb-3"}),o(I,{label:"Monthly total cost",amounts:p?[n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross monthly salary",regionalAmount:n(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.code),zendeskId:w.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.monthly_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Monthly fee",regionalAmount:n(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})]}),o("div",{className:"RemoteFlows__Separator",children:o(I,{label:"Annual total cost",amounts:p?[n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),n(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.code)]:n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),children:o(k,{items:[{label:"Gross annual salary",dataSelector:"annual-gross-salary",regionalAmount:n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.code)},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:n(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.annual_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map((s,y)=>({label:s.name,regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:n(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...v?[{label:"Annual fee",regionalAmount:n(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.code),employerAmount:n(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:H})}),o(c,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),h&&o(h,{})]})},"EstimationResults");export{pe as a};
2
+ //# sourceMappingURL=chunk-URNFXEOZ.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-VQRE3YLW.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-WH3QR2W5.js.map
1
+ import{b as f}from"./chunk-PGWKJ6FK.js";import{a as l}from"./chunk-AFTFDGSD.js";import{a as d}from"./chunk-5NN5RWBG.js";import{b as m}from"./chunk-C7KVPEVX.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-UWIUECXU.js.map
@@ -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
- 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"]}
@@ -1,2 +1,2 @@
1
- var e={data:{version:7,schema:{additionalProperties:!1,allOf:[],properties:{acknowledge_termination_procedure_info:{type:"null",title:"Acknowledge termination procedure info","x-jsf-presentation":{inputType:"hidden"},meta:{ignoreValue:!0}},acknowledge_termination_procedure:{description:"",title:"I agree to the procedures in this form",type:"boolean","x-jsf-presentation":{direction:"column",inputType:"checkbox"}},acknowledge_termination_procedure_fees_info:{type:"null",title:"Acknowledge termination procedure fees info","x-jsf-presentation":{inputType:"hidden"}}},required:["acknowledge_termination_procedure"],type:"object","x-jsf-order":["acknowledge_termination_procedure_info","acknowledge_termination_procedure","acknowledge_termination_procedure_fees_info"]}}};export{e as a};
2
- //# sourceMappingURL=chunk-LMYJ6V44.js.map
1
+ var e={data:{version:7,schema:{additionalProperties:!1,allOf:[],properties:{acknowledge_termination_procedure_info:{type:"null",title:"Acknowledge termination procedure info","x-jsf-presentation":{inputType:"hidden"},meta:{ignoreValue:!0}},acknowledge_termination_procedure:{description:"",title:"I agree to the procedures in this form",type:"boolean","x-jsf-presentation":{direction:"column",inputType:"checkbox"}},acknowledge_termination_procedure_fees_info:{type:"null",title:"Acknowledge termination procedure fees info","x-jsf-presentation":{inputType:"hidden"}}},required:["acknowledge_termination_procedure"],type:"object","x-jsf-order":["acknowledge_termination_procedure_info","acknowledge_termination_procedure","acknowledge_termination_procedure_fees_info"],"x-rmt-meta":{jsfOldVersion:!0}}}};export{e as a};
2
+ //# sourceMappingURL=chunk-VEQWK7QQ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/flows/Termination/json-schemas/additionalInformation.ts"],"sourcesContent":["export const additionalInformationSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [],\n properties: {\n acknowledge_termination_procedure_info: {\n type: 'null',\n title: 'Acknowledge termination procedure info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n meta: {\n ignoreValue: true,\n },\n },\n acknowledge_termination_procedure: {\n description: '',\n title: 'I agree to the procedures in this form',\n type: 'boolean',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'checkbox',\n },\n },\n acknowledge_termination_procedure_fees_info: {\n type: 'null',\n title: 'Acknowledge termination procedure fees info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n },\n required: ['acknowledge_termination_procedure'],\n type: 'object',\n 'x-jsf-order': [\n 'acknowledge_termination_procedure_info',\n 'acknowledge_termination_procedure',\n 'acknowledge_termination_procedure_fees_info',\n ],\n },\n },\n};\n"],"mappings":"AAAO,IAAMA,EAA8B,CACzC,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CAAC,EACR,WAAY,CACV,uCAAwC,CACtC,KAAM,OACN,MAAO,yCACP,qBAAsB,CACpB,UAAW,QACb,EACA,KAAM,CACJ,YAAa,EACf,CACF,EACA,kCAAmC,CACjC,YAAa,GACb,MAAO,yCACP,KAAM,UACN,qBAAsB,CACpB,UAAW,SACX,UAAW,UACb,CACF,EACA,4CAA6C,CAC3C,KAAM,OACN,MAAO,8CACP,qBAAsB,CACpB,UAAW,QACb,CACF,CACF,EACA,SAAU,CAAC,mCAAmC,EAC9C,KAAM,SACN,cAAe,CACb,yCACA,oCACA,6CACF,CACF,CACF,CACF","names":["additionalInformationSchema"]}
1
+ {"version":3,"sources":["../src/flows/Termination/json-schemas/additionalInformation.ts"],"sourcesContent":["export const additionalInformationSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [],\n properties: {\n acknowledge_termination_procedure_info: {\n type: 'null',\n title: 'Acknowledge termination procedure info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n meta: {\n ignoreValue: true,\n },\n },\n acknowledge_termination_procedure: {\n description: '',\n title: 'I agree to the procedures in this form',\n type: 'boolean',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'checkbox',\n },\n },\n acknowledge_termination_procedure_fees_info: {\n type: 'null',\n title: 'Acknowledge termination procedure fees info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n },\n },\n required: ['acknowledge_termination_procedure'],\n type: 'object',\n 'x-jsf-order': [\n 'acknowledge_termination_procedure_info',\n 'acknowledge_termination_procedure',\n 'acknowledge_termination_procedure_fees_info',\n ],\n 'x-rmt-meta': {\n jsfOldVersion: true,\n },\n },\n },\n};\n"],"mappings":"AAAO,IAAMA,EAA8B,CACzC,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CAAC,EACR,WAAY,CACV,uCAAwC,CACtC,KAAM,OACN,MAAO,yCACP,qBAAsB,CACpB,UAAW,QACb,EACA,KAAM,CACJ,YAAa,EACf,CACF,EACA,kCAAmC,CACjC,YAAa,GACb,MAAO,yCACP,KAAM,UACN,qBAAsB,CACpB,UAAW,SACX,UAAW,UACb,CACF,EACA,4CAA6C,CAC3C,KAAM,OACN,MAAO,8CACP,qBAAsB,CACpB,UAAW,QACb,CACF,CACF,EACA,SAAU,CAAC,mCAAmC,EAC9C,KAAM,SACN,cAAe,CACb,yCACA,oCACA,6CACF,EACA,aAAc,CACZ,cAAe,EACjB,CACF,CACF,CACF","names":["additionalInformationSchema"]}
@@ -0,0 +1,2 @@
1
+ import{a as V}from"./chunk-E7Y3YBZH.js";import{n as X}from"./chunk-ZHFGV2GB.js";import{a as L}from"./chunk-2L6AB46E.js";import{i as U}from"./chunk-C7KVPEVX.js";import{e as A}from"./chunk-SRLBVFNQ.js";import{e as G,f as N,g as D}from"./chunk-C4HFMTSB.js";import{b as J}from"./chunk-H2O4CVKF.js";import{a as n,b as u,c as ke}from"./chunk-P37U34EQ.js";var _=u((Fn,z)=>{"use strict";function Me(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}n(Me,"isObject");z.exports=Me});var Q=u((Mn,K)=>{"use strict";var Ne=typeof global=="object"&&global&&global.Object===Object&&global;K.exports=Ne});var $=u((Nn,Y)=>{"use strict";var De=Q(),Le=typeof self=="object"&&self&&self.Object===Object&&self,_e=De||Le||Function("return this")();Y.exports=_e});var ee=u((Dn,Z)=>{"use strict";var $e=$(),He=n(function(){return $e.Date.now()},"now");Z.exports=He});var te=u((_n,ne)=>{"use strict";var We=/\s/;function Be(e){for(var t=e.length;t--&&We.test(e.charAt(t)););return t}n(Be,"trimmedEndIndex");ne.exports=Be});var oe=u((Hn,re)=>{"use strict";var Ae=te(),Ge=/^\s+/;function Je(e){return e&&e.slice(0,Ae(e)+1).replace(Ge,"")}n(Je,"baseTrim");re.exports=Je});var H=u((Bn,ie)=>{"use strict";var Ue=$(),Ve=Ue.Symbol;ie.exports=Ve});var ue=u((An,ce)=>{"use strict";var se=H(),ae=Object.prototype,Xe=ae.hasOwnProperty,ze=ae.toString,R=se?se.toStringTag:void 0;function Ke(e){var t=Xe.call(e,R),r=e[R];try{e[R]=void 0;var o=!0}catch{}var s=ze.call(e);return o&&(t?e[R]=r:delete e[R]),s}n(Ke,"getRawTag");ce.exports=Ke});var fe=u((Jn,le)=>{"use strict";var Qe=Object.prototype,Ye=Qe.toString;function Ze(e){return Ye.call(e)}n(Ze,"objectToString");le.exports=Ze});var ge=u((Vn,pe)=>{"use strict";var de=H(),en=ue(),nn=fe(),tn="[object Null]",rn="[object Undefined]",me=de?de.toStringTag:void 0;function on(e){return e==null?e===void 0?rn:tn:me&&me in Object(e)?en(e):nn(e)}n(on,"baseGetTag");pe.exports=on});var be=u((zn,ve)=>{"use strict";function sn(e){return e!=null&&typeof e=="object"}n(sn,"isObjectLike");ve.exports=sn});var ye=u((Qn,Ce)=>{"use strict";var an=ge(),cn=be(),un="[object Symbol]";function ln(e){return typeof e=="symbol"||cn(e)&&an(e)==un}n(ln,"isSymbol");Ce.exports=ln});var Se=u((Zn,xe)=>{"use strict";var fn=oe(),he=_(),dn=ye(),Te=NaN,mn=/^[-+]0x[0-9a-f]+$/i,pn=/^0b[01]+$/i,gn=/^0o[0-7]+$/i,vn=parseInt;function bn(e){if(typeof e=="number")return e;if(dn(e))return Te;if(he(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=he(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fn(e);var r=pn.test(e);return r||gn.test(e)?vn(e.slice(2),r?2:8):mn.test(e)?Te:+e}n(bn,"toNumber");xe.exports=bn});var Ee=u((nt,Oe)=>{"use strict";var Cn=_(),W=ee(),je=Se(),yn="Expected a function",hn=Math.max,Tn=Math.min;function xn(e,t,r){var o,s,p,l,a,f,h=0,d=!1,g=!1,j=!0;if(typeof e!="function")throw new TypeError(yn);t=je(t)||0,Cn(r)&&(d=!!r.leading,g="maxWait"in r,p=g?hn(je(r.maxWait)||0,t):p,j="trailing"in r?!!r.trailing:j);function m(i){var v=o,T=s;return o=s=void 0,h=i,l=e.apply(T,v),l}n(m,"invokeFunc");function P(i){return h=i,a=setTimeout(x,t),d?m(i):l}n(P,"leadingEdge");function I(i){var v=i-f,T=i-h,w=t-v;return g?Tn(w,p-T):w}n(I,"remainingWait");function O(i){var v=i-f,T=i-h;return f===void 0||v>=t||v<0||g&&T>=p}n(O,"shouldInvoke");function x(){var i=W();if(O(i))return E(i);a=setTimeout(x,I(i))}n(x,"timerExpired");function E(i){return a=void 0,j&&o?m(i):(o=s=void 0,l)}n(E,"trailingEdge");function b(){a!==void 0&&clearTimeout(a),h=0,o=f=s=a=void 0}n(b,"cancel");function q(){return a===void 0?l:E(W())}n(q,"flush");function S(){var i=W(),v=O(i);if(o=arguments,s=this,f=i,v){if(a===void 0)return P(f);if(g)return clearTimeout(a),a=setTimeout(x,t),m(f)}return a===void 0&&(a=setTimeout(x,t)),l}return n(S,"debounced"),S.cancel=b,S.flush=q,S}n(xn,"debounce");Oe.exports=xn});import{useState as On,useCallback as En,useEffect as Ie,useRef as Rn}from"react";import Pn from"lodash.omit";var Pe=ke(Ee(),1);import{useCallback as Sn,useEffect as jn,useRef as Re}from"react";function B(e,t){let r=Re(e);jn(()=>{r.current=e},[e]);let o=Re((0,Pe.default)(s=>{r.current(s)},t)).current;return Sn(s=>{o(s)},[o])}n(B,"useDebounce");import{Fragment as wn,jsx as y,jsxs as qe}from"react/jsx-runtime";var In=n(({description:e,helpCenter:t,toggle:r,className:o})=>qe("span",{className:o,children:[y(U,{as:"span",helpCenter:t,children:e})," ",r]}),"DescriptionWithConversion"),qn=n(({showConversion:e,targetCurrency:t,className:r,onClick:o})=>{let{components:s}=J(),p=e?`Hide ${t} conversion`:`Show ${t} conversion`,l=s?.button;if(!l)throw new Error("Button component not found");return y(l,{className:r,"data-type":"inline",onClick:o,children:p})},"ConversionToggle"),bt=n(({sourceCurrency:e,targetCurrency:t,mainFieldName:r,conversionFieldName:o,conversionProperties:s,classNamePrefix:p,description:l,conversionType:a="spread",meta:f,splitDescription:h=!1,...d})=>{let[g,j]=On(!1),{setValue:m,watch:P}=A(),I=P(r||d.name),O=Rn(!0),x=e&&t&&e!==t,{mutateAsync:E}=X({type:a}),b=`${d.name}_converted`;Ie(()=>{m(b,r||d.name)},[m,r,d.name,b]),Ie(()=>{if(O.current){O.current=!1;return}m(o,"")},[e,o,m]);let q=En(async(c,C,k)=>{if(!(!c||isNaN(c)||c<=0))return E({source_currency:C,target_currency:k,amount:c})},[E]),S=B(async c=>{let C=N(c),M=1/((await q(C,t,e))?.data?.data.conversion_data?.exchange_rate??1),Fe=G(Number(C)*M);m(o,D(Fe))},500),i=B(async c=>{let C=N(c),M=(await q(C,t,e))?.data?.data.conversion_data.target_amount;m(r||d.name,D(M))},500),v=n(c=>{m(b,r||d.name),g&&S(c.target.value)},"handleMainFieldChange"),T=n(c=>{m(b,o),i(c.target.value)},"handleConversionFieldChange"),w=n(c=>{c.preventDefault(),j(C=>!C),!g&&I&&S(I)},"toggleConversion"),F=x?y(qn,{targetCurrency:t,showConversion:g,className:`${p}-button`,onClick:w}):null,we=h?{meta:f,description:l,descriptionSuffix:F}:{meta:F?Pn(f,"helpCenter"):f,description:F?y(In,{description:l,helpCenter:y(V,{helpCenter:f?.helpCenter}),toggle:F,className:`${p}-description`}):l};return qe(wn,{children:[y(L,{...d,...we,name:r||d.name,additionalProps:{currency:e},type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:v}),g&&y(L,{additionalProps:{currency:t},name:o,label:s?.label||"Conversion",description:s?.description,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:T}),y("input",{type:"hidden",name:b,value:P(b)||r||d.name})]})},"CurrencyConversionField");export{bt as a};
2
+ //# sourceMappingURL=chunk-VKORYYED.js.map