@remoteoss/remote-flows 1.2.1 → 1.3.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 (319) hide show
  1. package/README.md +4 -80
  2. package/dist/chunk-2FQ2KNP4.js +2 -0
  3. package/dist/chunk-2FQ2KNP4.js.map +1 -0
  4. package/dist/chunk-2Y3SXQ5B.js +2 -0
  5. package/dist/chunk-2Y3SXQ5B.js.map +1 -0
  6. package/dist/{chunk-W3JY7GB5.js → chunk-35RMJMSH.js} +2 -2
  7. package/dist/{chunk-7Q3N2EY2.js → chunk-3CFU6LKQ.js} +2 -2
  8. package/dist/{chunk-2TILNBMK.js → chunk-3F77NXWU.js} +2 -2
  9. package/dist/{chunk-S7INFMJB.js → chunk-3Z6AFLXW.js} +2 -2
  10. package/dist/{chunk-RNM46ZUE.js → chunk-44IOQYR2.js} +2 -2
  11. package/dist/chunk-5C3NU7R3.js +2 -0
  12. package/dist/chunk-5C3NU7R3.js.map +1 -0
  13. package/dist/{chunk-WKHYYISW.js → chunk-5DKNCKV7.js} +2 -2
  14. package/dist/{chunk-WKHYYISW.js.map → chunk-5DKNCKV7.js.map} +1 -1
  15. package/dist/{chunk-23OYALRY.js → chunk-5LSHRCAR.js} +2 -2
  16. package/dist/chunk-6GTRAHWJ.js +2 -0
  17. package/dist/chunk-6GTRAHWJ.js.map +1 -0
  18. package/dist/chunk-6P4DTWYK.js +2 -0
  19. package/dist/chunk-6P4DTWYK.js.map +1 -0
  20. package/dist/{chunk-SLD6QFPG.js → chunk-6S6H4NAQ.js} +2 -2
  21. package/dist/{chunk-4ZNCIMTR.js → chunk-7COHIUGW.js} +2 -2
  22. package/dist/{chunk-S6CCPQSN.js → chunk-A3GZSC5Z.js} +2 -2
  23. package/dist/{chunk-RJO534HJ.js → chunk-A65WMO6K.js} +2 -2
  24. package/dist/{chunk-2SO4LW7V.js → chunk-ARTSDUSS.js} +2 -2
  25. package/dist/chunk-ARTSDUSS.js.map +1 -0
  26. package/dist/{chunk-EDP4HELT.js → chunk-BL7OYWNX.js} +2 -2
  27. package/dist/{chunk-NVTGX5FY.js → chunk-C4DLDK36.js} +2 -2
  28. package/dist/chunk-C4DLDK36.js.map +1 -0
  29. package/dist/{chunk-CDCKGIF5.js → chunk-DV6PCBAX.js} +2 -2
  30. package/dist/chunk-EDVJBPCB.js +2 -0
  31. package/dist/chunk-EDVJBPCB.js.map +1 -0
  32. package/dist/chunk-EGRGQWIY.js +2 -0
  33. package/dist/chunk-EGRGQWIY.js.map +1 -0
  34. package/dist/{chunk-FFT7BPGS.js → chunk-EQOU2VPX.js} +2 -2
  35. package/dist/chunk-ERRQIROU.js +2 -0
  36. package/dist/chunk-ERRQIROU.js.map +1 -0
  37. package/dist/{chunk-GMQ4GITD.js → chunk-ETYRNQJJ.js} +2 -2
  38. package/dist/chunk-EYQ4PYUT.js +2 -0
  39. package/dist/chunk-EYQ4PYUT.js.map +1 -0
  40. package/dist/chunk-F3KEIVSE.js +2 -0
  41. package/dist/chunk-F3KEIVSE.js.map +1 -0
  42. package/dist/{chunk-OAPK6TR7.js → chunk-GCTHZSIN.js} +2 -2
  43. package/dist/{chunk-NMHISCDF.js → chunk-GE5DH3UF.js} +2 -2
  44. package/dist/{chunk-A5BCZOOQ.js → chunk-GHJBEQIR.js} +2 -2
  45. package/dist/{chunk-XQL5I2GC.js → chunk-GP6PRZVX.js} +2 -2
  46. package/dist/{chunk-KJZLQ77E.js → chunk-HDNBZ6CB.js} +2 -2
  47. package/dist/{chunk-K5P2NRJ3.js → chunk-HZVYZQ3Z.js} +2 -2
  48. package/dist/{chunk-FMDAJQPU.js → chunk-IBHNWMMB.js} +2 -2
  49. package/dist/{chunk-FUMA5UUB.js → chunk-KKGRYDZA.js} +2 -2
  50. package/dist/{chunk-3N4O7TE2.js → chunk-LG2LVO4C.js} +2 -2
  51. package/dist/{chunk-X5GMCAS7.js → chunk-LJVV6MMB.js} +2 -2
  52. package/dist/{chunk-E5PHO3SS.js → chunk-LKMPZJIW.js} +2 -2
  53. package/dist/chunk-LQBVRVXH.js +2 -0
  54. package/dist/chunk-LQBVRVXH.js.map +1 -0
  55. package/dist/chunk-LWGSXQKI.js +1 -0
  56. package/dist/chunk-LWGSXQKI.js.map +1 -0
  57. package/dist/chunk-M2TLNSTK.js +2 -0
  58. package/dist/chunk-M2TLNSTK.js.map +1 -0
  59. package/dist/{chunk-5RM36L5X.js → chunk-MEZ7LYUK.js} +2 -2
  60. package/dist/{chunk-NS4FRCEH.js → chunk-N6BBMT7W.js} +2 -2
  61. package/dist/{chunk-T2URGIP3.js → chunk-NABPCULM.js} +2 -2
  62. package/dist/{chunk-FXESMDKI.js → chunk-NDQ6UQFG.js} +2 -2
  63. package/dist/{chunk-W2SYJLOE.js → chunk-OFI5KLQ4.js} +2 -2
  64. package/dist/chunk-OKM7DRCF.js +2 -0
  65. package/dist/{chunk-TYCDD66L.js → chunk-OP72BS23.js} +2 -2
  66. package/dist/{chunk-ZPN5N6BA.js → chunk-OXL3QGHT.js} +2 -2
  67. package/dist/{chunk-VFZXJTBY.js → chunk-PZNXAOZH.js} +2 -2
  68. package/dist/{chunk-I4XJ764Y.js → chunk-QIVDIOJG.js} +2 -2
  69. package/dist/chunk-SIYKTLFS.js +2 -0
  70. package/dist/chunk-SIYKTLFS.js.map +1 -0
  71. package/dist/{chunk-JA7UP6GN.js → chunk-SXR333SU.js} +2 -2
  72. package/dist/chunk-T6HCUFYI.js +2 -0
  73. package/dist/chunk-T6HCUFYI.js.map +1 -0
  74. package/dist/{chunk-FLNGPYQ2.js → chunk-TVJYCR33.js} +2 -2
  75. package/dist/chunk-TVJYCR33.js.map +1 -0
  76. package/dist/{chunk-C74N2AWG.js → chunk-UA6MNQLD.js} +2 -2
  77. package/dist/{chunk-26JXMVXY.js → chunk-VBO75DXV.js} +2 -2
  78. package/dist/{chunk-XRFBLWLZ.js → chunk-VXA6RPA5.js} +2 -2
  79. package/dist/{chunk-NFUP6BFU.js → chunk-W3YE53JN.js} +5 -5
  80. package/dist/chunk-W3YE53JN.js.map +1 -0
  81. package/dist/chunk-WCEHP5N7.js +2 -0
  82. package/dist/chunk-WCEHP5N7.js.map +1 -0
  83. package/dist/{chunk-2VW77NBC.js → chunk-XRI6PRXK.js} +2 -2
  84. package/dist/chunk-Y2NSR2N6.js +2 -0
  85. package/dist/chunk-Y2NSR2N6.js.map +1 -0
  86. package/dist/chunk-Y5P5IJRN.js +2 -0
  87. package/dist/chunk-Y5P5IJRN.js.map +1 -0
  88. package/dist/{chunk-5KPB3KN7.js → chunk-Z2WV73EX.js} +2 -2
  89. package/dist/{chunk-BHYFPY64.js → chunk-Z6TCBVRG.js} +2 -2
  90. package/dist/{chunk-LE4O6V7D.js → chunk-ZYRGEEPU.js} +2 -2
  91. package/dist/flows/ContractAmendment/ContractAmendmentBack.js +1 -1
  92. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  93. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  94. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +4 -4
  95. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  96. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  97. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  98. package/dist/flows/ContractAmendment/ContractAmendmentSubmit.js +1 -1
  99. package/dist/flows/ContractAmendment/context.d.ts +4 -4
  100. package/dist/flows/ContractAmendment/hooks.d.ts +4 -4
  101. package/dist/flows/ContractAmendment/hooks.js +1 -1
  102. package/dist/flows/ContractAmendment/index.d.ts +4 -4
  103. package/dist/flows/ContractAmendment/index.js +1 -1
  104. package/dist/flows/ContractAmendment/types.d.ts +3 -3
  105. package/dist/flows/ContractAmendment/utils.d.ts +1 -1
  106. package/dist/flows/ContractAmendment/utils.js +1 -1
  107. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +8 -8
  108. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  109. package/dist/flows/ContractorOnboarding/api.d.ts +3 -3
  110. package/dist/flows/ContractorOnboarding/api.js +1 -1
  111. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +5 -5
  112. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  113. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +8 -8
  114. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  115. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +8 -8
  116. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  117. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +6 -6
  118. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  119. package/dist/flows/ContractorOnboarding/components/OnboardingBack.js +1 -1
  120. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +4 -4
  121. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  122. package/dist/flows/ContractorOnboarding/components/OnboardingSubmit.js +1 -1
  123. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +8 -8
  124. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  125. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +5 -5
  126. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  127. package/dist/flows/ContractorOnboarding/context.d.ts +6 -6
  128. package/dist/flows/ContractorOnboarding/hooks.d.ts +8 -8
  129. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  130. package/dist/flows/ContractorOnboarding/index.d.ts +8 -8
  131. package/dist/flows/ContractorOnboarding/index.js +1 -1
  132. package/dist/flows/ContractorOnboarding/types.d.ts +9 -9
  133. package/dist/flows/ContractorOnboarding/utils.d.ts +19 -1
  134. package/dist/flows/ContractorOnboarding/utils.js +1 -1
  135. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +4 -4
  136. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  137. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +4 -4
  138. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  139. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  140. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  141. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +3 -3
  142. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  143. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +3 -3
  144. package/dist/flows/CostCalculator/api.d.ts +3 -3
  145. package/dist/flows/CostCalculator/api.js +1 -1
  146. package/dist/flows/CostCalculator/components/SalaryField.d.ts +3 -3
  147. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  148. package/dist/flows/CostCalculator/context.d.ts +4 -4
  149. package/dist/flows/CostCalculator/hooks.d.ts +4 -4
  150. package/dist/flows/CostCalculator/hooks.js +1 -1
  151. package/dist/flows/CostCalculator/index.d.ts +4 -4
  152. package/dist/flows/CostCalculator/index.js +1 -1
  153. package/dist/flows/CostCalculator/types.d.ts +3 -3
  154. package/dist/flows/CostCalculator/utils.d.ts +4 -4
  155. package/dist/flows/CostCalculator/utils.js +1 -1
  156. package/dist/flows/Onboarding/OnboardingFlow.d.ts +5 -5
  157. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  158. package/dist/flows/Onboarding/api.d.ts +5 -5
  159. package/dist/flows/Onboarding/api.js +1 -1
  160. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +3 -3
  161. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  162. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +5 -5
  163. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  164. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +5 -5
  165. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  166. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +5 -5
  167. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  168. package/dist/flows/Onboarding/components/OnboardingBack.js +1 -1
  169. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +5 -5
  170. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  171. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +4 -4
  172. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  173. package/dist/flows/Onboarding/components/OnboardingSubmit.js +1 -1
  174. package/dist/flows/Onboarding/components/ReviewStep.d.ts +5 -5
  175. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +4 -4
  176. package/dist/flows/Onboarding/components/SaveDraftButton.js +1 -1
  177. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +5 -5
  178. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  179. package/dist/flows/Onboarding/context.d.ts +5 -5
  180. package/dist/flows/Onboarding/hooks.d.ts +5 -5
  181. package/dist/flows/Onboarding/hooks.js +1 -1
  182. package/dist/flows/Onboarding/index.d.ts +5 -5
  183. package/dist/flows/Onboarding/index.js +1 -1
  184. package/dist/flows/Onboarding/types.d.ts +5 -5
  185. package/dist/flows/Onboarding/utils.d.ts +5 -5
  186. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +5 -5
  187. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  188. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +5 -5
  189. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  190. package/dist/flows/Termination/PaidTimeOffForm.d.ts +5 -5
  191. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  192. package/dist/flows/Termination/TerminationBack.js +1 -1
  193. package/dist/flows/Termination/TerminationDetailsForm.d.ts +5 -5
  194. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  195. package/dist/flows/Termination/TerminationFlow.d.ts +5 -5
  196. package/dist/flows/Termination/TerminationFlow.js +1 -1
  197. package/dist/flows/Termination/TerminationForm.d.ts +5 -5
  198. package/dist/flows/Termination/TerminationForm.js +1 -1
  199. package/dist/flows/Termination/TerminationSubmit.js +1 -1
  200. package/dist/flows/Termination/api.d.ts +6 -6
  201. package/dist/flows/Termination/api.js +1 -1
  202. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  203. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +7 -7
  204. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  205. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +7 -7
  206. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  207. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +7 -7
  208. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  209. package/dist/flows/Termination/context.d.ts +5 -5
  210. package/dist/flows/Termination/hooks.d.ts +5 -5
  211. package/dist/flows/Termination/hooks.js +1 -1
  212. package/dist/flows/Termination/index.d.ts +7 -7
  213. package/dist/flows/Termination/index.js +1 -1
  214. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  215. package/dist/flows/Termination/json-schemas/schema.d.ts +5 -5
  216. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  217. package/dist/flows/Termination/types.d.ts +5 -5
  218. package/dist/flows/Termination/utils.d.ts +5 -5
  219. package/dist/flows/types.d.ts +3 -3
  220. package/dist/flows/utils.d.ts +1 -1
  221. package/dist/index.d.ts +9 -9
  222. package/dist/index.js +1 -1
  223. package/dist/index.js.map +1 -1
  224. package/dist/internals.js +1 -1
  225. package/dist/{mutations-B7nzyRmB.d.ts → mutations-C051uRcC.d.ts} +1 -1
  226. package/dist/{remoteFlows-CnmojyGF.d.ts → remoteFlows-B9Nl1qjN.d.ts} +42 -18
  227. package/dist/styles.css +3 -0
  228. package/dist/styles.css.map +1 -0
  229. package/dist/styles.d.ts +2 -0
  230. package/dist/styles.js +2 -0
  231. package/dist/styles.js.map +1 -0
  232. package/dist/{types-DGKjcWLj.d.ts → types-Ci-EdBDb.d.ts} +3 -3
  233. package/dist/{types-DDcdRWu_.d.ts → types-Ckh2r3F3.d.ts} +2 -2
  234. package/dist/{types-D2tc0MbF.d.ts → types-DqaKYRUE.d.ts} +2 -2
  235. package/dist/{types-CbCzUTok.d.ts → types-Dx-2ocvG.d.ts} +6 -6
  236. package/dist/types-ZWIpiFgj.d.ts +4 -0
  237. package/dist/{types.gen-UyEyxhzQ.d.ts → types.gen-D2nbxMA0.d.ts} +1 -1
  238. package/package.json +18 -3
  239. package/dist/chunk-2SO4LW7V.js.map +0 -1
  240. package/dist/chunk-6YXSWOKH.js +0 -2
  241. package/dist/chunk-6YXSWOKH.js.map +0 -1
  242. package/dist/chunk-7WVNWNM2.js +0 -2
  243. package/dist/chunk-7WVNWNM2.js.map +0 -1
  244. package/dist/chunk-BIQPVUM2.js +0 -2
  245. package/dist/chunk-BIQPVUM2.js.map +0 -1
  246. package/dist/chunk-BZUYUGQF.js +0 -2
  247. package/dist/chunk-BZUYUGQF.js.map +0 -1
  248. package/dist/chunk-FLNGPYQ2.js.map +0 -1
  249. package/dist/chunk-FLXY4CUE.js +0 -2
  250. package/dist/chunk-FLXY4CUE.js.map +0 -1
  251. package/dist/chunk-FXRIYGSV.js +0 -2
  252. package/dist/chunk-FXRIYGSV.js.map +0 -1
  253. package/dist/chunk-LZGN6WCB.js +0 -2
  254. package/dist/chunk-LZGN6WCB.js.map +0 -1
  255. package/dist/chunk-MDDI5GLL.js +0 -2
  256. package/dist/chunk-MDDI5GLL.js.map +0 -1
  257. package/dist/chunk-N4232FEQ.js +0 -2
  258. package/dist/chunk-N4232FEQ.js.map +0 -1
  259. package/dist/chunk-NFUP6BFU.js.map +0 -1
  260. package/dist/chunk-NIGMIGF6.js +0 -2
  261. package/dist/chunk-NIGMIGF6.js.map +0 -1
  262. package/dist/chunk-NVTGX5FY.js.map +0 -1
  263. package/dist/chunk-OA7477F5.js +0 -2
  264. package/dist/chunk-OA7477F5.js.map +0 -1
  265. package/dist/chunk-QP3VWGCS.js +0 -2
  266. package/dist/chunk-QP3VWGCS.js.map +0 -1
  267. package/dist/chunk-SGFXAOTZ.js +0 -2
  268. package/dist/chunk-SGFXAOTZ.js.map +0 -1
  269. package/dist/chunk-STPJXT2A.js +0 -2
  270. package/dist/chunk-STPJXT2A.js.map +0 -1
  271. package/dist/chunk-V2L3UV7M.js +0 -2
  272. package/dist/chunk-V2L3UV7M.js.map +0 -1
  273. package/dist/chunk-XOA7GG4P.js +0 -2
  274. package/dist/chunk-ZOTFS35J.js +0 -2
  275. package/dist/chunk-ZOTFS35J.js.map +0 -1
  276. package/dist/types-Zg1n_9wh.d.ts +0 -3
  277. /package/dist/{chunk-W3JY7GB5.js.map → chunk-35RMJMSH.js.map} +0 -0
  278. /package/dist/{chunk-7Q3N2EY2.js.map → chunk-3CFU6LKQ.js.map} +0 -0
  279. /package/dist/{chunk-2TILNBMK.js.map → chunk-3F77NXWU.js.map} +0 -0
  280. /package/dist/{chunk-S7INFMJB.js.map → chunk-3Z6AFLXW.js.map} +0 -0
  281. /package/dist/{chunk-RNM46ZUE.js.map → chunk-44IOQYR2.js.map} +0 -0
  282. /package/dist/{chunk-23OYALRY.js.map → chunk-5LSHRCAR.js.map} +0 -0
  283. /package/dist/{chunk-SLD6QFPG.js.map → chunk-6S6H4NAQ.js.map} +0 -0
  284. /package/dist/{chunk-4ZNCIMTR.js.map → chunk-7COHIUGW.js.map} +0 -0
  285. /package/dist/{chunk-S6CCPQSN.js.map → chunk-A3GZSC5Z.js.map} +0 -0
  286. /package/dist/{chunk-RJO534HJ.js.map → chunk-A65WMO6K.js.map} +0 -0
  287. /package/dist/{chunk-EDP4HELT.js.map → chunk-BL7OYWNX.js.map} +0 -0
  288. /package/dist/{chunk-CDCKGIF5.js.map → chunk-DV6PCBAX.js.map} +0 -0
  289. /package/dist/{chunk-FFT7BPGS.js.map → chunk-EQOU2VPX.js.map} +0 -0
  290. /package/dist/{chunk-GMQ4GITD.js.map → chunk-ETYRNQJJ.js.map} +0 -0
  291. /package/dist/{chunk-OAPK6TR7.js.map → chunk-GCTHZSIN.js.map} +0 -0
  292. /package/dist/{chunk-NMHISCDF.js.map → chunk-GE5DH3UF.js.map} +0 -0
  293. /package/dist/{chunk-A5BCZOOQ.js.map → chunk-GHJBEQIR.js.map} +0 -0
  294. /package/dist/{chunk-XQL5I2GC.js.map → chunk-GP6PRZVX.js.map} +0 -0
  295. /package/dist/{chunk-KJZLQ77E.js.map → chunk-HDNBZ6CB.js.map} +0 -0
  296. /package/dist/{chunk-K5P2NRJ3.js.map → chunk-HZVYZQ3Z.js.map} +0 -0
  297. /package/dist/{chunk-FMDAJQPU.js.map → chunk-IBHNWMMB.js.map} +0 -0
  298. /package/dist/{chunk-FUMA5UUB.js.map → chunk-KKGRYDZA.js.map} +0 -0
  299. /package/dist/{chunk-3N4O7TE2.js.map → chunk-LG2LVO4C.js.map} +0 -0
  300. /package/dist/{chunk-X5GMCAS7.js.map → chunk-LJVV6MMB.js.map} +0 -0
  301. /package/dist/{chunk-E5PHO3SS.js.map → chunk-LKMPZJIW.js.map} +0 -0
  302. /package/dist/{chunk-5RM36L5X.js.map → chunk-MEZ7LYUK.js.map} +0 -0
  303. /package/dist/{chunk-NS4FRCEH.js.map → chunk-N6BBMT7W.js.map} +0 -0
  304. /package/dist/{chunk-T2URGIP3.js.map → chunk-NABPCULM.js.map} +0 -0
  305. /package/dist/{chunk-FXESMDKI.js.map → chunk-NDQ6UQFG.js.map} +0 -0
  306. /package/dist/{chunk-W2SYJLOE.js.map → chunk-OFI5KLQ4.js.map} +0 -0
  307. /package/dist/{chunk-XOA7GG4P.js.map → chunk-OKM7DRCF.js.map} +0 -0
  308. /package/dist/{chunk-TYCDD66L.js.map → chunk-OP72BS23.js.map} +0 -0
  309. /package/dist/{chunk-ZPN5N6BA.js.map → chunk-OXL3QGHT.js.map} +0 -0
  310. /package/dist/{chunk-VFZXJTBY.js.map → chunk-PZNXAOZH.js.map} +0 -0
  311. /package/dist/{chunk-I4XJ764Y.js.map → chunk-QIVDIOJG.js.map} +0 -0
  312. /package/dist/{chunk-JA7UP6GN.js.map → chunk-SXR333SU.js.map} +0 -0
  313. /package/dist/{chunk-C74N2AWG.js.map → chunk-UA6MNQLD.js.map} +0 -0
  314. /package/dist/{chunk-26JXMVXY.js.map → chunk-VBO75DXV.js.map} +0 -0
  315. /package/dist/{chunk-XRFBLWLZ.js.map → chunk-VXA6RPA5.js.map} +0 -0
  316. /package/dist/{chunk-2VW77NBC.js.map → chunk-XRI6PRXK.js.map} +0 -0
  317. /package/dist/{chunk-5KPB3KN7.js.map → chunk-Z2WV73EX.js.map} +0 -0
  318. /package/dist/{chunk-BHYFPY64.js.map → chunk-Z6TCBVRG.js.map} +0 -0
  319. /package/dist/{chunk-LE4O6V7D.js.map → chunk-ZYRGEEPU.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../node_modules/lodash/isObject.js","../node_modules/lodash/_freeGlobal.js","../node_modules/lodash/_root.js","../node_modules/lodash/now.js","../node_modules/lodash/_trimmedEndIndex.js","../node_modules/lodash/_baseTrim.js","../node_modules/lodash/_Symbol.js","../node_modules/lodash/_getRawTag.js","../node_modules/lodash/_objectToString.js","../node_modules/lodash/_baseGetTag.js","../node_modules/lodash/isObjectLike.js","../node_modules/lodash/isSymbol.js","../node_modules/lodash/toNumber.js","../node_modules/lodash/debounce.js","../src/components/form/fields/CurrencyConversionField.tsx","../src/common/hooks.ts"],"sourcesContent":["/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","import { ReactNode, useState, useCallback, useEffect, useRef } from 'react';\nimport { useFormContext } from 'react-hook-form';\nimport { TextField } from '@/src/components/form/fields/TextField';\nimport { useConvertCurrency } from '@/src/flows/Onboarding/api';\nimport { JSFField } from '@/src/types/remoteFlows';\nimport { useFormFields } from '@/src/context';\nimport { useDebounce } from '@/src/common/hooks';\nimport { FormDescription } from '@/src/components/ui/form';\nimport { ButtonDefault } from '@/src/components/form/fields/default/ButtonDefault';\nimport {\n convertFromCents,\n convertToCents,\n round,\n} from '@/src/components/form/utils';\n\ntype DescriptionWithConversionProps = {\n description: ReactNode;\n showConversion: boolean;\n targetCurrency: string;\n className: string;\n onClick: (evt: React.MouseEvent<HTMLButtonElement>) => void;\n};\n\nconst DescriptionWithConversion = ({\n description,\n showConversion,\n targetCurrency,\n className,\n onClick,\n}: DescriptionWithConversionProps) => {\n const { components } = useFormFields();\n const label = showConversion\n ? `Hide ${targetCurrency} conversion`\n : `Show ${targetCurrency} conversion`;\n\n const CustomButton = components?.button || ButtonDefault;\n return (\n <span className={className}>\n <FormDescription as='span'>{description}</FormDescription>{' '}\n <CustomButton\n className={`${className.replace('-description', '-button')}`}\n data-type='inline'\n onClick={onClick}\n >\n {label}\n </CustomButton>\n </span>\n );\n};\n\nexport type CurrencyConversionFieldProps = JSFField & {\n sourceCurrency: string;\n targetCurrency: string;\n mainFieldName?: string;\n conversionFieldName: string;\n conversionProperties?: {\n label?: string;\n description?: ReactNode;\n };\n useProxy?: boolean;\n classNamePrefix: string;\n conversionType?: 'spread' | 'no_spread';\n};\n\nexport const CurrencyConversionField = ({\n sourceCurrency,\n targetCurrency,\n mainFieldName,\n conversionFieldName,\n conversionProperties,\n classNamePrefix,\n description,\n conversionType = 'spread',\n ...props\n}: CurrencyConversionFieldProps) => {\n const [showConversion, setShowConversion] = useState(false);\n const { setValue, watch } = useFormContext();\n const fieldValue = watch(mainFieldName || props.name);\n const isFirstRender = useRef(true);\n\n const canShowConversion =\n sourceCurrency && targetCurrency && sourceCurrency !== targetCurrency;\n\n const { mutateAsync: convertCurrency } = useConvertCurrency({\n type: conversionType,\n });\n\n // we keep track of the last input the user used, so we can make sure\n // we keep consistent currency rates\n const lastInputFieldName = `${props.name}_converted`;\n useEffect(() => {\n setValue(lastInputFieldName, mainFieldName || props.name);\n }, [setValue, mainFieldName, props.name, lastInputFieldName]);\n\n useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n return;\n }\n\n // when source currency changes, reset the conversion field\n setValue(conversionFieldName, '');\n }, [sourceCurrency, conversionFieldName, setValue]);\n\n const convertCurrencyCallback = useCallback(\n async (amount: number | null, fromCurrency: string, toCurrency: string) => {\n if (!amount || isNaN(amount) || amount <= 0) return;\n\n return convertCurrency({\n source_currency: fromCurrency,\n target_currency: toCurrency,\n amount,\n });\n },\n [convertCurrency],\n );\n\n const debouncedConvertCurrency = useDebounce(async (value: string) => {\n // The SDK sets the employer billing currency in the salary field, but internally we don't do it like this, is set based on the employee billing currency\n // That's why we need to do 1 / exchange rate to get the correct amount, if currencies were different, it would be done in the debouncedConvertCurrencyReverse\n // THE BE always transforms from the target currency to the source currency\n const amountInCents = convertToCents(value);\n const conversion = await convertCurrencyCallback(\n amountInCents,\n targetCurrency,\n sourceCurrency,\n );\n\n const exchangeRate =\n 1 / (conversion?.data?.data.conversion_data?.exchange_rate ?? 1);\n\n const amount = round(Number(amountInCents) * exchangeRate);\n\n setValue(conversionFieldName, convertFromCents(amount));\n }, 500);\n\n const debouncedConvertCurrencyReverse = useDebounce(async (value: string) => {\n const amount = convertToCents(value);\n const conversion = await convertCurrencyCallback(\n amount,\n targetCurrency,\n sourceCurrency,\n );\n\n const conversionAmount =\n conversion?.data?.data.conversion_data.target_amount;\n\n setValue(mainFieldName || props.name, convertFromCents(conversionAmount));\n }, 500);\n\n const handleMainFieldChange = (evt: React.ChangeEvent<HTMLInputElement>) => {\n setValue(lastInputFieldName, mainFieldName || props.name);\n if (showConversion) {\n debouncedConvertCurrency(evt.target.value);\n }\n };\n\n const handleConversionFieldChange = (\n evt: React.ChangeEvent<HTMLInputElement>,\n ) => {\n setValue(lastInputFieldName, conversionFieldName);\n debouncedConvertCurrencyReverse(evt.target.value);\n };\n\n const toggleConversion = (evt: React.MouseEvent<HTMLButtonElement>) => {\n evt.preventDefault();\n setShowConversion((prev) => !prev);\n\n if (!showConversion && fieldValue) {\n debouncedConvertCurrency(fieldValue);\n }\n };\n\n const extraDescription = canShowConversion ? (\n <DescriptionWithConversion\n targetCurrency={targetCurrency}\n description={description}\n showConversion={showConversion}\n className={`${classNamePrefix}-description`}\n onClick={toggleConversion}\n />\n ) : (\n description\n );\n\n return (\n <>\n <TextField\n {...props}\n name={mainFieldName || props.name}\n additionalProps={{ currency: sourceCurrency }}\n description={extraDescription}\n type='text'\n inputMode='decimal'\n pattern='^[0-9.]*$'\n maxLength={15}\n onChange={handleMainFieldChange}\n />\n {showConversion && (\n <TextField\n additionalProps={{ currency: targetCurrency }}\n name={conversionFieldName}\n label={conversionProperties?.label || 'Conversion'}\n description={conversionProperties?.description}\n type='text'\n inputMode='decimal'\n pattern='^[0-9.]*$'\n maxLength={15}\n onChange={handleConversionFieldChange}\n />\n )}\n <input\n type='hidden'\n name={lastInputFieldName}\n value={watch(lastInputFieldName) || mainFieldName || props.name}\n />\n </>\n );\n};\n","import { useCallback, useEffect, useRef } from 'react';\nimport debounce from 'lodash/debounce';\n\nexport function useDebounce(\n callback: (value: string) => Promise<void>,\n delay: number,\n) {\n const callbackRef = useRef(callback);\n\n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n const debouncedFn = useRef(\n debounce((value: string) => {\n callbackRef.current(value);\n }, delay),\n ).current;\n\n return useCallback(\n (value: string) => {\n debouncedFn(value);\n },\n [debouncedFn],\n );\n}\n"],"mappings":"4TAAA,IAAAA,EAAAC,EAAA,CAAAC,GAAAC,IAAA,cAyBA,SAASC,GAASC,EAAO,CACvB,IAAIC,EAAO,OAAOD,EAClB,OAAOA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ACE,UAAAC,EAACyD,EAAA,CACE,GAAGnC,EACJ,KAAML,GAAiBK,EAAM,KAC7B,gBAAiB,CAAE,SAAUN,CAAe,EAC5C,YAAawC,EACb,KAAK,OACL,UAAU,UACV,QAAQ,YACR,UAAW,GACX,SAAUL,EACZ,EACC9C,GACCL,EAACyD,EAAA,CACC,gBAAiB,CAAE,SAAUnD,CAAe,EAC5C,KAAMY,EACN,MAAOC,GAAsB,OAAS,aACtC,YAAaA,GAAsB,YACnC,KAAK,OACL,UAAU,UACV,QAAQ,YACR,UAAW,GACX,SAAUkC,EACZ,EAEFrD,EAAC,SACC,KAAK,SACL,KAAMkC,EACN,MAAOR,EAAMQ,CAAkB,GAAKjB,GAAiBK,EAAM,KAC7D,GACF,CAEJ,EA1JuC","names":["require_isObject","__commonJSMin","exports","module","isObject","value","type","__name","require_freeGlobal","__commonJSMin","exports","module","freeGlobal","require_root","__commonJSMin","exports","module","freeGlobal","freeSelf","root","require_now","__commonJSMin","exports","module","root","now","__name","require_trimmedEndIndex","__commonJSMin","exports","module","reWhitespace","trimmedEndIndex","string","index","__name","require_baseTrim","__commonJSMin","exports","module","trimmedEndIndex","reTrimStart","baseTrim","string","__name","require_Symbol","__commonJSMin","exports","module","root","Symbol","require_getRawTag","__commonJSMin","exports","module","Symbol","objectProto","hasOwnProperty","nativeObjectToString","symToStringTag","getRawTag","value","isOwn","tag","unmasked","result","__name","require_objectToString","__commonJSMin","exports","module","objectProto","nativeObjectToString","objectToString","value","__name","require_baseGetTag","__commonJSMin","exports","module","Symbol","getRawTag","objectToString","nullTag","undefinedTag","symToStringTag","baseGetTag","value","__name","require_isObjectLike","__commonJSMin","exports","module","isObjectLike","value","__name","require_isSymbol","__commonJSMin","exports","module","baseGetTag","isObjectLike","symbolTag","isSymbol","value","__name","require_toNumber","__commonJSMin","exports","module","baseTrim","isObject","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","value","other","isBinary","__name","require_debounce","__commonJSMin","exports","module","isObject","now","toNumber","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","thisArg","__name","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","useState","useCallback","useEffect","useRef","import_debounce","useCallback","useEffect","useRef","useDebounce","callback","delay","callbackRef","useRef","useEffect","debouncedFn","debounce","value","useCallback","__name","Fragment","jsx","jsxs","DescriptionWithConversion","__name","description","showConversion","targetCurrency","className","onClick","components","useFormFields","label","CustomButton","ButtonDefault","FormDescription","CurrencyConversionField","sourceCurrency","mainFieldName","conversionFieldName","conversionProperties","classNamePrefix","conversionType","props","setShowConversion","useState","setValue","watch","useFormContext","fieldValue","isFirstRender","useRef","canShowConversion","convertCurrency","useConvertCurrency","lastInputFieldName","useEffect","convertCurrencyCallback","useCallback","amount","fromCurrency","toCurrency","debouncedConvertCurrency","useDebounce","value","amountInCents","convertToCents","exchangeRate","round","convertFromCents","debouncedConvertCurrencyReverse","conversionAmount","handleMainFieldChange","evt","handleConversionFieldChange","toggleConversion","prev","extraDescription","TextField"]}
@@ -1,2 +1,2 @@
1
- import{a as R}from"./chunk-SGE4DLC3.js";import{a as S,b as E,c as F,d as L,e as _}from"./chunk-UOOUV52J.js";import{b as w}from"./chunk-KQPDXXG3.js";import{b as k}from"./chunk-LJGCFFAT.js";import{a as n}from"./chunk-L3Z2G32A.js";import{a as d}from"./chunk-P37U34EQ.js";import{jsx as y,jsxs as B}from"react/jsx-runtime";function O({open:e,onOpenChange:a,direction:t,className:i,title:s,trigger:m,children:l}){return B(S,{open:e,onOpenChange:a,direction:t,children:[y(E,{asChild:!0,children:m}),y(F,{className:n(i,"RemoteFlows__Drawer h-full w-[540px] mt-0 ml-auto px-4"),children:B("div",{className:"h-full flex flex-col",children:[y(L,{children:y(_,{children:s})}),y("div",{className:"flex-1 overflow-y-auto",children:l})]})})]})}d(O,"DrawerDefault");import{jsx as q}from"react/jsx-runtime";var A=d(({open:e,onOpenChange:a,title:t,trigger:i,children:s,className:m="",direction:l="right"})=>{let{components:T}=w(),p=T?.drawer||O;return q(p,{open:e,onOpenChange:a,title:t,trigger:i,direction:l,className:m,children:s})},"Drawer");import{forwardRef as W}from"react";import*as b from"react";import{jsx as f}from"react/jsx-runtime";var g=b.forwardRef(({className:e,...a},t)=>f("div",{className:"relative w-full overflow-auto",children:f("table",{ref:t,className:n("w-full caption-bottom text-sm",e),...a})}));g.displayName="Table";var x=b.forwardRef(({className:e,...a},t)=>f("thead",{ref:t,className:n("[&_tr]:border-b",e),...a}));x.displayName="TableHeader";var C=b.forwardRef(({className:e,...a},t)=>f("tbody",{ref:t,className:n("[&_tr:last-child]:border-0",e),...a}));C.displayName="TableBody";var z=b.forwardRef(({className:e,...a},t)=>f("tfoot",{ref:t,className:n("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a}));z.displayName="TableFooter";var D=b.forwardRef(({className:e,...a},t)=>f("tr",{ref:t,className:n("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...a}));D.displayName="TableRow";var h=b.forwardRef(({className:e,...a},t)=>f("th",{ref:t,className:n("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...a}));h.displayName="TableHead";var v=b.forwardRef(({className:e,...a},t)=>f("td",{ref:t,className:n("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...a}));v.displayName="TableCell";var I=b.forwardRef(({className:e,...a},t)=>f("caption",{ref:t,className:n("mt-4 text-sm text-muted-foreground",e),...a}));I.displayName="TableCaption";import{jsx as u,jsxs as V}from"react/jsx-runtime";var U=d(({data:e,columns:a,className:t,ref:i})=>V(g,{ref:i,className:n("RemoteFlows__Table",t),children:[u(x,{children:u(D,{children:a.map(s=>u(h,{className:n("RemoteFlows__TableHead",s.className),children:s.label},String(s.id)))})}),u(C,{children:e?.map((s,m)=>u(D,{children:a.map(l=>u(v,{className:n("RemoteFlows__TableCell",l.className,l.cellClassName),children:l.render?l.render(s[l.id],s,m):s[l.id]},String(l.id)))},J(s,m)))})]}),"TableFieldDefault");function J(e,a){return String(e.id??a)}d(J,"getRowKey");import{jsx as X}from"react/jsx-runtime";var P=W(({data:e=[],columns:a,className:t=""},i)=>{let{components:s}=w(),m=s?.table||U;return X(m,{ref:i,data:e,columns:a,className:t})});P.displayName="Table";import{Fragment as H,jsx as o,jsxs as r}from"react/jsx-runtime";var Z="RemoteFlows__SummaryRow flex justify-between items-center py-2 text-xs",j="RemoteFlows__SummaryRowBorder border-b border-b-1 border-b-[#E4E4E7]",c=d(({children:e,withBorder:a=!1,className:t=""})=>o("div",{className:n(Z,a&&j,t),children:e}),"SummaryRow"),ee=d(({usedDays:e,bookedDays:a,approvedDaysBeforeTermination:t,approvedDaysAfterTermination:i,remainingDays:s,proposedTerminationDate:m,isUnlimitedPto:l,currentEntitlementDays:T})=>{let p=new Date(m).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"});return r("div",{children:[r(c,{withBorder:!0,children:[o("label",{children:"Number of days entitled to per year"}),o("p",{"data-testid":"entitled-days",className:"font-bold",children:l?"Unlimited":T})]}),r(c,{children:[o("label",{children:"Total days booked"}),o("p",{"data-testid":"booked-days",className:"font-bold",children:a})]}),r(c,{children:[o("label",{children:"Number of days already used"}),o("p",{"data-testid":"used-days",className:"font-bold",children:e})]}),r(c,{children:[r("label",{children:["Approved for use before ",p]}),o("p",{"data-testid":"approved-days-before-termination",className:"font-bold",children:t})]}),r(c,{withBorder:!0,children:[r("label",{children:["Approved for use after ",p]}),o("p",{"data-testid":"approved-days-after-termination",className:"font-bold",children:i})]}),r(c,{children:[o("label",{children:"Total days remaining unused"}),o("p",{"data-testid":"remaining-days",className:"font-bold",children:s})]}),o(c,{className:"mb-2 py-0",children:r("p",{className:"text-xs text-[#222E39]",children:["Unused days expire on ",p]})})]})},"SummaryTimeOff"),ae=[{id:"formattedDate",label:"Dates",className:"w-[250px]",cellClassName:"font-medium"},{id:"duration",label:"Duration",render:d(e=>R({number:e,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!0}),"render")},{id:"status",label:"Status"}],te=d(({employeeName:e,timeoffQuery:a,entitledDays:t,countryName:i,currentEntitlementDays:s,formattedProposedTerminationDate:m,onOpenChange:l,open:T})=>{let{data:p,isLoading:N}=a;return o(A,{open:T,onOpenChange:l,title:`${e} paid time off breakdown`,trigger:o(k,{variant:"link",className:"text-xs text-[#3B82F6] font-bold p-0",children:"See detailed time off breakdown \u2197"}),className:"h-full w-[540px] mt-0 ml-auto px-4 RemoteFlows_DrawerTimeOff",children:!N&&o(H,{children:Array.isArray(p?.timeoffs)&&p?.timeoffs?.length>0?r(H,{children:[o("p",{className:"text-[#09090B] font-medium mb-4",children:"This list is for your information only."}),r("p",{className:"text-xs text-[#09090B] mb-1 flex items-center justify-between gap-2",children:[r("span",{children:["Annual entitlement for ",i]}),o("span",{className:"font-bold",children:t})]}),r("p",{className:"text-xs text-[#09090B] mb-6 flex items-center justify-between gap-2",children:[r("span",{children:["Entitlement up to ",m]}),o("span",{className:"font-bold",children:s})]}),o("div",{className:"mb-2",children:o(P,{data:p?.timeoffs,columns:ae})}),r("p",{className:"text-xs",children:["Total of"," ",R({number:p?.bookedDays,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!0})," ","booked"]})]}):r(H,{children:[o("p",{className:"font-medium mb-1 text-[#09090B]",children:"No recorded time off"}),r("p",{className:"text-sm text-[#09090B]",children:["According to our records, ",e," has not taken any time off this year."]})]})})})},"DrawerTimeOff"),Ee=d(({employeeName:e,proposedTerminationDate:a,summaryData:t,formattedProposedTerminationDate:i,timeoffQuery:s,employment:m,onOpenChange:l,open:T})=>{let{entitledDays:p,bookedDays:N,usedDays:$,approvedDaysBeforeTermination:Q,approvedDaysAfterTermination:G,remainingDays:K,currentEntitlementDays:M,isUnlimitedPto:Y}=t.data;return r("div",{className:"RemoteFlows__PaidTimeOff__Container py-3",children:[o("h3",{className:"RemoteFlows__PaidTimeOff__Title mb-2",children:"Paid time off"}),r("p",{className:"RemoteFlows__PaidTimeOff__Description text-sm mb-2",children:["The proposed termination date for ",e," is"," ",i,". You will need to pay them for any unused accrued days. Below is a breakdown of their time off entitlement and usage for the current annual leave period:"]}),r("div",{className:"mb-2",children:[!t?.isLoading&&!t?.isError&&t?.data&&o(ee,{usedDays:$,bookedDays:N,currentEntitlementDays:M,approvedDaysBeforeTermination:Q,approvedDaysAfterTermination:G,remainingDays:K,proposedTerminationDate:a,isUnlimitedPto:Y}),o(te,{employeeName:e,timeoffQuery:s,entitledDays:p,currentEntitlementDays:M,countryName:m?.country?.name??"Unknown",onOpenChange:l,formattedProposedTerminationDate:i,open:T})]})]})},"PaidTimeOff");export{Ee as a};
2
- //# sourceMappingURL=chunk-2VW77NBC.js.map
1
+ import{a as R}from"./chunk-SGE4DLC3.js";import{a as E,b as F,c as L,d as _,e as k}from"./chunk-UOOUV52J.js";import{b as w}from"./chunk-KQPDXXG3.js";import{b as S}from"./chunk-LJGCFFAT.js";import{a as n}from"./chunk-L3Z2G32A.js";import{a as d}from"./chunk-P37U34EQ.js";import{jsx as y,jsxs as B}from"react/jsx-runtime";function O({open:e,onOpenChange:a,direction:t,className:i,title:s,trigger:m,children:l}){return B(E,{open:e,onOpenChange:a,direction:t,children:[y(F,{asChild:!0,children:m}),y(L,{className:n(i,"RemoteFlows__Drawer h-full w-[540px] mt-0 ml-auto px-4"),children:B("div",{className:"h-full flex flex-col",children:[y(_,{children:y(k,{children:s})}),y("div",{className:"flex-1 overflow-y-auto",children:l})]})})]})}d(O,"DrawerDefault");import{jsx as q}from"react/jsx-runtime";var A=d(({open:e,onOpenChange:a,title:t,trigger:i,children:s,className:m="",direction:l="right"})=>{let{components:T}=w(),p=T?.drawer||O;return q(p,{open:e,onOpenChange:a,title:t,trigger:i,direction:l,className:m,children:s})},"Drawer");import{forwardRef as W}from"react";import*as b from"react";import{jsx as f}from"react/jsx-runtime";var g=b.forwardRef(({className:e,...a},t)=>f("div",{className:"relative w-full overflow-auto",children:f("table",{ref:t,className:n("w-full caption-bottom text-sm",e),...a})}));g.displayName="Table";var x=b.forwardRef(({className:e,...a},t)=>f("thead",{ref:t,className:n("[&_tr]:border-b",e),...a}));x.displayName="TableHeader";var C=b.forwardRef(({className:e,...a},t)=>f("tbody",{ref:t,className:n("[&_tr:last-child]:border-0",e),...a}));C.displayName="TableBody";var z=b.forwardRef(({className:e,...a},t)=>f("tfoot",{ref:t,className:n("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a}));z.displayName="TableFooter";var D=b.forwardRef(({className:e,...a},t)=>f("tr",{ref:t,className:n("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...a}));D.displayName="TableRow";var h=b.forwardRef(({className:e,...a},t)=>f("th",{ref:t,className:n("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...a}));h.displayName="TableHead";var v=b.forwardRef(({className:e,...a},t)=>f("td",{ref:t,className:n("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...a}));v.displayName="TableCell";var I=b.forwardRef(({className:e,...a},t)=>f("caption",{ref:t,className:n("mt-4 text-sm text-muted-foreground",e),...a}));I.displayName="TableCaption";import{jsx as u,jsxs as V}from"react/jsx-runtime";var U=d(({data:e,columns:a,className:t,ref:i})=>V(g,{ref:i,className:n("RemoteFlows__Table",t),children:[u(x,{children:u(D,{children:a.map(s=>u(h,{className:n("RemoteFlows__TableHead",s.className),children:s.label},String(s.id)))})}),u(C,{children:e?.map((s,m)=>u(D,{children:a.map(l=>u(v,{className:n("RemoteFlows__TableCell",l.className,l.cellClassName),children:l.render?l.render(s[l.id],s,m):s[l.id]},String(l.id)))},J(s,m)))})]}),"TableFieldDefault");function J(e,a){return String(e.id??a)}d(J,"getRowKey");import{jsx as X}from"react/jsx-runtime";var P=W(({data:e=[],columns:a,className:t=""},i)=>{let{components:s}=w(),m=s?.table||U;return X(m,{ref:i,data:e,columns:a,className:t})});P.displayName="Table";import{Fragment as H,jsx as o,jsxs as r}from"react/jsx-runtime";var Z="RemoteFlows__SummaryRow flex justify-between items-center py-2 text-xs",j="RemoteFlows__SummaryRowBorder border-b border-b-1 border-b-[#E4E4E7]",c=d(({children:e,withBorder:a=!1,className:t=""})=>o("div",{className:n(Z,a&&j,t),children:e}),"SummaryRow"),ee=d(({usedDays:e,bookedDays:a,approvedDaysBeforeTermination:t,approvedDaysAfterTermination:i,remainingDays:s,proposedTerminationDate:m,isUnlimitedPto:l,currentEntitlementDays:T})=>{let p=new Date(m).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"});return r("div",{children:[r(c,{withBorder:!0,children:[o("label",{children:"Number of days entitled to per year"}),o("p",{"data-testid":"entitled-days",className:"font-bold",children:l?"Unlimited":T})]}),r(c,{children:[o("label",{children:"Total days booked"}),o("p",{"data-testid":"booked-days",className:"font-bold",children:a})]}),r(c,{children:[o("label",{children:"Number of days already used"}),o("p",{"data-testid":"used-days",className:"font-bold",children:e})]}),r(c,{children:[r("label",{children:["Approved for use before ",p]}),o("p",{"data-testid":"approved-days-before-termination",className:"font-bold",children:t})]}),r(c,{withBorder:!0,children:[r("label",{children:["Approved for use after ",p]}),o("p",{"data-testid":"approved-days-after-termination",className:"font-bold",children:i})]}),r(c,{children:[o("label",{children:"Total days remaining unused"}),o("p",{"data-testid":"remaining-days",className:"font-bold",children:s})]}),o(c,{className:"mb-2 py-0",children:r("p",{className:"text-xs text-[#222E39]",children:["Unused days expire on ",p]})})]})},"SummaryTimeOff"),ae=[{id:"formattedDate",label:"Dates",className:"w-[250px]",cellClassName:"font-medium"},{id:"duration",label:"Duration",render:d(e=>R({number:e,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!0}),"render")},{id:"status",label:"Status"}],te=d(({employeeName:e,timeoffQuery:a,entitledDays:t,countryName:i,currentEntitlementDays:s,formattedProposedTerminationDate:m,onOpenChange:l,open:T})=>{let{data:p,isLoading:N}=a;return o(A,{open:T,onOpenChange:l,title:`${e} paid time off breakdown`,trigger:o(S,{variant:"link",className:"text-xs text-[#3B82F6] font-bold p-0",children:"See detailed time off breakdown \u2197"}),className:"h-full w-[540px] mt-0 ml-auto px-4 RemoteFlows_DrawerTimeOff",children:!N&&o(H,{children:Array.isArray(p?.timeoffs)&&p?.timeoffs?.length>0?r(H,{children:[o("p",{className:"text-[#09090B] font-medium mb-4",children:"This list is for your information only."}),r("p",{className:"text-xs text-[#09090B] mb-1 flex items-center justify-between gap-2",children:[r("span",{children:["Annual entitlement for ",i]}),o("span",{className:"font-bold",children:t})]}),r("p",{className:"text-xs text-[#09090B] mb-6 flex items-center justify-between gap-2",children:[r("span",{children:["Entitlement up to ",m]}),o("span",{className:"font-bold",children:s})]}),o("div",{className:"mb-2",children:o(P,{data:p?.timeoffs,columns:ae})}),r("p",{className:"text-xs",children:["Total of"," ",R({number:p?.bookedDays,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!0})," ","booked"]})]}):r(H,{children:[o("p",{className:"font-medium mb-1 text-[#09090B]",children:"No recorded time off"}),r("p",{className:"text-sm text-[#09090B]",children:["According to our records, ",e," has not taken any time off this year."]})]})})})},"DrawerTimeOff"),Ee=d(({employeeName:e,proposedTerminationDate:a,summaryData:t,formattedProposedTerminationDate:i,timeoffQuery:s,employment:m,onOpenChange:l,open:T})=>{let{entitledDays:p,bookedDays:N,usedDays:$,approvedDaysBeforeTermination:Q,approvedDaysAfterTermination:G,remainingDays:K,currentEntitlementDays:M,isUnlimitedPto:Y}=t.data;return r("div",{className:"RemoteFlows__PaidTimeOff__Container py-3",children:[o("h3",{className:"RemoteFlows__PaidTimeOff__Title mb-2",children:"Paid time off"}),r("p",{className:"RemoteFlows__PaidTimeOff__Description text-sm mb-2",children:["The proposed termination date for ",e," is"," ",i,". You will need to pay them for any unused accrued days. Below is a breakdown of their time off entitlement and usage for the current annual leave period:"]}),r("div",{className:"mb-2",children:[!t?.isLoading&&!t?.isError&&t?.data&&o(ee,{usedDays:$,bookedDays:N,currentEntitlementDays:M,approvedDaysBeforeTermination:Q,approvedDaysAfterTermination:G,remainingDays:K,proposedTerminationDate:a,isUnlimitedPto:Y}),o(te,{employeeName:e,timeoffQuery:s,entitledDays:p,currentEntitlementDays:M,countryName:m?.country?.name??"Unknown",onOpenChange:l,formattedProposedTerminationDate:i,open:T})]})]})},"PaidTimeOff");export{Ee as a};
2
+ //# sourceMappingURL=chunk-XRI6PRXK.js.map
@@ -0,0 +1,2 @@
1
+ import{a as n}from"./chunk-6GTRAHWJ.js";import{b as o}from"./chunk-KQPDXXG3.js";import{b as r}from"./chunk-TVZAFTPT.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as f}from"react/jsx-runtime";function C({children:m,...e}){let{formId:u}=r(),{components:i}=o(),s=i?.button||n;return f(s,{...e,form:u,children:m})}t(C,"ContractAmendmentSubmit");export{C as a};
2
+ //# sourceMappingURL=chunk-Y2NSR2N6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/ContractAmendment/ContractAmendmentSubmit.tsx"],"sourcesContent":["import { ButtonHTMLAttributes, PropsWithChildren } from 'react';\nimport { useContractAmendmentContext } from './context';\nimport { useFormFields } from '@/src/context';\nimport { ButtonDefault } from '@/src/components/form/fields/default/ButtonDefault';\n\nexport function ContractAmendmentSubmit({\n children,\n ...props\n}: PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>> &\n Record<string, unknown>) {\n const { formId } = useContractAmendmentContext();\n const { components } = useFormFields();\n\n const CustomButton = components?.button || ButtonDefault;\n return (\n <CustomButton {...props} form={formId}>\n {children}\n </CustomButton>\n );\n}\n"],"mappings":"gKAeI,cAAAA,MAAA,oBAVG,SAASC,EAAwB,CACtC,SAAAC,EACA,GAAGC,CACL,EAC2B,CACzB,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAA4B,EACzC,CAAE,WAAAC,CAAW,EAAIC,EAAc,EAE/BC,EAAeF,GAAY,QAAUG,EAC3C,OACET,EAACQ,EAAA,CAAc,GAAGL,EAAO,KAAMC,EAC5B,SAAAF,EACH,CAEJ,CAdgBQ,EAAAT,EAAA","names":["jsx","ContractAmendmentSubmit","children","props","formId","useContractAmendmentContext","components","useFormFields","CustomButton","ButtonDefault","__name"]}
@@ -0,0 +1,2 @@
1
+ import{b as r}from"./chunk-PGWKJ6FK.js";import{a as n}from"./chunk-6GTRAHWJ.js";import{b as o}from"./chunk-KQPDXXG3.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function g({children:e,onClick:i,...s}){let{onboardingBag:{back:u,isEmploymentReadOnly:m}}=r(),{components:a}=o(),c=t(B=>{m||u(),i?.(B)},"onBackHandler"),p=a?.button||n;return d(p,{...s,onClick:c,children:e})}t(g,"OnboardingBack");export{g as a};
2
+ //# sourceMappingURL=chunk-Y5P5IJRN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/Onboarding/components/OnboardingBack.tsx"],"sourcesContent":["import { ButtonHTMLAttributes, PropsWithChildren } from 'react';\nimport { useOnboardingContext } from '@/src/flows/Onboarding/context';\nimport { useFormFields } from '@/src/context';\nimport { ButtonDefault } from '@/src/components/form/fields/default/ButtonDefault';\n\ntype OnboardingBackProps = ButtonHTMLAttributes<HTMLButtonElement> &\n Record<string, unknown>;\n\nexport function OnboardingBack({\n children,\n onClick,\n ...props\n}: PropsWithChildren<OnboardingBackProps>) {\n const {\n onboardingBag: { back, isEmploymentReadOnly },\n } = useOnboardingContext();\n\n const { components } = useFormFields();\n\n const onBackHandler = (evt: React.MouseEvent<HTMLButtonElement>) => {\n // TODO: TBD if we want to allow back button to be clicked when employment is readonly\n if (!isEmploymentReadOnly) {\n back();\n }\n onClick?.(evt);\n };\n\n const CustomButton = components?.button || ButtonDefault;\n return (\n <CustomButton {...props} onClick={onBackHandler}>\n {children}\n </CustomButton>\n );\n}\n"],"mappings":"gKA6BI,cAAAA,MAAA,oBArBG,SAASC,EAAe,CAC7B,SAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EAA2C,CACzC,GAAM,CACJ,cAAe,CAAE,KAAAC,EAAM,qBAAAC,CAAqB,CAC9C,EAAIC,EAAqB,EAEnB,CAAE,WAAAC,CAAW,EAAIC,EAAc,EAE/BC,EAAgBC,EAACC,GAA6C,CAE7DN,GACHD,EAAK,EAEPF,IAAUS,CAAG,CACf,EANsB,iBAQhBC,EAAeL,GAAY,QAAUM,EAC3C,OACEd,EAACa,EAAA,CAAc,GAAGT,EAAO,QAASM,EAC/B,SAAAR,EACH,CAEJ,CAzBgBS,EAAAV,EAAA","names":["jsx","OnboardingBack","children","onClick","props","back","isEmploymentReadOnly","useOnboardingContext","components","useFormFields","onBackHandler","__name","evt","CustomButton","ButtonDefault"]}
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-GMQ4GITD.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function p({onSubmit:t}){let{terminationBag:o}=a(),n=i(async r=>{let m=await o?.parseFormValues(r);await t?.(m),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:n})}i(p,"TerminationDetailsForm");export{p as a};
2
- //# sourceMappingURL=chunk-5KPB3KN7.js.map
1
+ import{a as e}from"./chunk-ETYRNQJJ.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function p({onSubmit:t}){let{terminationBag:o}=a(),n=i(async r=>{let m=await o?.parseFormValues(r);await t?.(m),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:n})}i(p,"TerminationDetailsForm");export{p as a};
2
+ //# sourceMappingURL=chunk-Z2WV73EX.js.map
@@ -1,2 +1,2 @@
1
- import{b as e}from"./chunk-E5PHO3SS.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as o,jsxs as t}from"react/jsx-runtime";var a=n(({involuntaryOffboardingServiceChargeZendeskId:r,reconciliationInvoiceZendeskId:i})=>t("p",{className:"RemoteFlows__AcknowledgeInformationFees text-xs text-[#71717A]",children:["You'll receive an"," ",o(e,{zendeskId:r,className:"align-baseline",children:"involuntary offboarding service charge \u2197"})," ","on your"," ",o(e,{zendeskId:i,children:"reconciliation invoice \u2197"})]}),"AcknowledgeInformationFees");export{a};
2
- //# sourceMappingURL=chunk-BHYFPY64.js.map
1
+ import{b as e}from"./chunk-LKMPZJIW.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as o,jsxs as t}from"react/jsx-runtime";var a=n(({involuntaryOffboardingServiceChargeZendeskId:r,reconciliationInvoiceZendeskId:i})=>t("p",{className:"RemoteFlows__AcknowledgeInformationFees text-xs text-[#71717A]",children:["You'll receive an"," ",o(e,{zendeskId:r,className:"align-baseline",children:"involuntary offboarding service charge \u2197"})," ","on your"," ",o(e,{zendeskId:i,children:"reconciliation invoice \u2197"})]}),"AcknowledgeInformationFees");export{a};
2
+ //# sourceMappingURL=chunk-Z6TCBVRG.js.map
@@ -1,2 +1,2 @@
1
- import{b as y}from"./chunk-PGWKJ6FK.js";import{a as F}from"./chunk-N4232FEQ.js";import{b as c}from"./chunk-LNV36S6D.js";import{b as u}from"./chunk-2YTBWEC7.js";import{f,g as p}from"./chunk-66N57DKF.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as S}from"react";import{jsx as b}from"react/jsx-runtime";import{createElement as V}from"react";function U({defaultValues:d,onSubmit:g,components:E}){let{formId:k,onboardingBag:o}=y(),w=c(o.handleValidation),r=f({resolver:w,defaultValues:d,shouldUnregister:!1,mode:"onBlur"});S(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]),S(()=>{let t=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==d[i])&&o?.checkFieldUpdates(e)});return()=>t?.unsubscribe()},[]);let h=m(async(t,e)=>{let s=e?.nativeEvent;if(s?.isDraftSubmission){let{onSuccess:i,onError:l}=s.draftCallbacks;try{if(!await r.trigger())return;let n=await o.onSubmit(t);if(n?.data)i?.();else if(n?.error){let B=o.stepState.currentStep.name,P=o.meta?.fields?.[B],O=u(n?.fieldErrors||[],P);l?.({error:n.error,rawError:n.rawError,fieldErrors:O})}}catch(a){l?.({error:a,rawError:a,fieldErrors:[]})}}else g(t)},"handleSubmit");return V(p,{...r,key:`form-${o.stepState.currentStep.name}`},b("form",{id:k,onSubmit:r.handleSubmit(h),className:"space-y-4 RemoteFlows__OnboardingForm",children:b(F,{components:E,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}m(U,"OnboardingForm");export{U as a};
2
- //# sourceMappingURL=chunk-LE4O6V7D.js.map
1
+ import{b as y}from"./chunk-PGWKJ6FK.js";import{a as F}from"./chunk-EYQ4PYUT.js";import{b as c}from"./chunk-LNV36S6D.js";import{b as u}from"./chunk-2YTBWEC7.js";import{f,g as p}from"./chunk-66N57DKF.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as S}from"react";import{jsx as b}from"react/jsx-runtime";import{createElement as V}from"react";function U({defaultValues:d,onSubmit:g,components:E}){let{formId:k,onboardingBag:o}=y(),w=c(o.handleValidation),r=f({resolver:w,defaultValues:d,shouldUnregister:!1,mode:"onBlur"});S(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]),S(()=>{let t=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==d[i])&&o?.checkFieldUpdates(e)});return()=>t?.unsubscribe()},[]);let h=m(async(t,e)=>{let s=e?.nativeEvent;if(s?.isDraftSubmission){let{onSuccess:i,onError:l}=s.draftCallbacks;try{if(!await r.trigger())return;let n=await o.onSubmit(t);if(n?.data)i?.();else if(n?.error){let B=o.stepState.currentStep.name,P=o.meta?.fields?.[B],O=u(n?.fieldErrors||[],P);l?.({error:n.error,rawError:n.rawError,fieldErrors:O})}}catch(a){l?.({error:a,rawError:a,fieldErrors:[]})}}else g(t)},"handleSubmit");return V(p,{...r,key:`form-${o.stepState.currentStep.name}`},b("form",{id:k,onSubmit:r.handleSubmit(h),className:"space-y-4 RemoteFlows__OnboardingForm",children:b(F,{components:E,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}m(U,"OnboardingForm");export{U as a};
2
+ //# sourceMappingURL=chunk-ZYRGEEPU.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-BZUYUGQF.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentBack};
1
+ import{a}from"../../chunk-F3KEIVSE.js";import"../../chunk-6GTRAHWJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentBack};
2
2
  //# sourceMappingURL=ContractAmendmentBack.js.map
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { P as PostCreateContractAmendmentError, b as ContractAmendmentResponse } from '../../types.gen-UyEyxhzQ.js';
2
+ import { P as PostCreateContractAmendmentError, b as ContractAmendmentResponse } from '../../types.gen-D2nbxMA0.js';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
 
5
5
  type ContractAmendmentConfirmationFormProps = {
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-FUMA5UUB.js";import"../../chunk-66N57DKF.js";import"../../chunk-2SO4LW7V.js";import"../../chunk-PMTKQME6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm};
1
+ import{a}from"../../chunk-KKGRYDZA.js";import"../../chunk-66N57DKF.js";import"../../chunk-ARTSDUSS.js";import"../../chunk-PMTKQME6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm};
2
2
  //# sourceMappingURL=ContractAmendmentConfirmationForm.js.map
@@ -5,13 +5,13 @@ import { ContractAmendmentForm } from './ContractAmendmentForm.js';
5
5
  import { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
6
6
  import { useContractAmendment } from './hooks.js';
7
7
  import { ContractAmendmentParams } from './types.js';
8
- import '../../types.gen-UyEyxhzQ.js';
8
+ import '../../types.gen-D2nbxMA0.js';
9
9
  import 'react-hook-form';
10
10
  import 'react';
11
- import '../../mutations-B7nzyRmB.js';
12
- import '../../remoteFlows-CnmojyGF.js';
11
+ import '../../mutations-C051uRcC.js';
12
+ import '../../remoteFlows-B9Nl1qjN.js';
13
13
  import 'yup';
14
- import '../../types-Zg1n_9wh.js';
14
+ import '../../types-ZWIpiFgj.js';
15
15
  import '@remoteoss/json-schema-form-old';
16
16
  import '../useStepState.js';
17
17
  import '../types.js';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-S7INFMJB.js";import"../../chunk-3N4O7TE2.js";import"../../chunk-V2L3UV7M.js";import"../../chunk-CDCKGIF5.js";import"../../chunk-JA7UP6GN.js";import"../../chunk-ZPN5N6BA.js";import"../../chunk-N4232FEQ.js";import"../../chunk-LNV36S6D.js";import"../../chunk-FLXY4CUE.js";import"../../chunk-E5PHO3SS.js";import"../../chunk-KGKDSOER.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-NFUP6BFU.js";import"../../chunk-ZIN2OWTH.js";import"../../chunk-UOOUV52J.js";import"../../chunk-72OH7PSF.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-BZUYUGQF.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-FUMA5UUB.js";import"../../chunk-66N57DKF.js";import"../../chunk-2SO4LW7V.js";import"../../chunk-PMTKQME6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
1
+ import{a}from"../../chunk-3Z6AFLXW.js";import"../../chunk-LG2LVO4C.js";import"../../chunk-EYQ4PYUT.js";import"../../chunk-LNV36S6D.js";import"../../chunk-EGRGQWIY.js";import"../../chunk-LKMPZJIW.js";import"../../chunk-KGKDSOER.js";import"../../chunk-Y2NSR2N6.js";import"../../chunk-DV6PCBAX.js";import"../../chunk-SXR333SU.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-W3YE53JN.js";import"../../chunk-OXL3QGHT.js";import"../../chunk-ZIN2OWTH.js";import"../../chunk-UOOUV52J.js";import"../../chunk-72OH7PSF.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-F3KEIVSE.js";import"../../chunk-6GTRAHWJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-KKGRYDZA.js";import"../../chunk-66N57DKF.js";import"../../chunk-ARTSDUSS.js";import"../../chunk-PMTKQME6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
2
2
  //# sourceMappingURL=ContractAmendmentFlow.js.map
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { c as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-UyEyxhzQ.js';
2
+ import { c as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-D2nbxMA0.js';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
 
5
5
  type ContractAmendmentFormProps = {
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-3N4O7TE2.js";import"../../chunk-N4232FEQ.js";import"../../chunk-LNV36S6D.js";import"../../chunk-FLXY4CUE.js";import"../../chunk-E5PHO3SS.js";import"../../chunk-KGKDSOER.js";import"../../chunk-NFUP6BFU.js";import"../../chunk-ZIN2OWTH.js";import"../../chunk-UOOUV52J.js";import"../../chunk-72OH7PSF.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-66N57DKF.js";import"../../chunk-2SO4LW7V.js";import"../../chunk-PMTKQME6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
1
+ import{a}from"../../chunk-LG2LVO4C.js";import"../../chunk-EYQ4PYUT.js";import"../../chunk-LNV36S6D.js";import"../../chunk-EGRGQWIY.js";import"../../chunk-LKMPZJIW.js";import"../../chunk-KGKDSOER.js";import"../../chunk-W3YE53JN.js";import"../../chunk-ZIN2OWTH.js";import"../../chunk-UOOUV52J.js";import"../../chunk-72OH7PSF.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-66N57DKF.js";import"../../chunk-ARTSDUSS.js";import"../../chunk-PMTKQME6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
2
2
  //# sourceMappingURL=ContractAmendmentForm.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-V2L3UV7M.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentSubmit};
1
+ import{a}from"../../chunk-Y2NSR2N6.js";import"../../chunk-6GTRAHWJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentSubmit};
2
2
  //# sourceMappingURL=ContractAmendmentSubmit.js.map
@@ -1,13 +1,13 @@
1
- import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-UyEyxhzQ.js';
1
+ import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-D2nbxMA0.js';
2
2
  import * as React from 'react';
3
- import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-B7nzyRmB.js';
4
- import '../../remoteFlows-CnmojyGF.js';
3
+ import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-C051uRcC.js';
4
+ import '../../remoteFlows-B9Nl1qjN.js';
5
5
  import * as _remoteoss_json_schema_form_old from '@remoteoss/json-schema-form-old';
6
6
  import * as react_hook_form from 'react-hook-form';
7
7
  import { useContractAmendment } from './hooks.js';
8
8
  import { Step } from '../useStepState.js';
9
9
  import 'yup';
10
- import '../../types-Zg1n_9wh.js';
10
+ import '../../types-ZWIpiFgj.js';
11
11
  import './types.js';
12
12
  import '../types.js';
13
13
  import '@remoteoss/remote-json-schema-form-kit';
@@ -1,13 +1,13 @@
1
- import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-UyEyxhzQ.js';
2
- import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-B7nzyRmB.js';
1
+ import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-D2nbxMA0.js';
2
+ import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-C051uRcC.js';
3
3
  import * as React from 'react';
4
4
  import * as _remoteoss_json_schema_form_old from '@remoteoss/json-schema-form-old';
5
5
  import { Step } from '../useStepState.js';
6
6
  import { ContractAmendmentParams } from './types.js';
7
7
  import { FieldValues } from 'react-hook-form';
8
- import '../../remoteFlows-CnmojyGF.js';
8
+ import '../../remoteFlows-B9Nl1qjN.js';
9
9
  import 'yup';
10
- import '../../types-Zg1n_9wh.js';
10
+ import '../../types-ZWIpiFgj.js';
11
11
  import '../types.js';
12
12
  import '@remoteoss/remote-json-schema-form-kit';
13
13
 
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-CDCKGIF5.js";import"../../chunk-JA7UP6GN.js";import"../../chunk-ZPN5N6BA.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-NFUP6BFU.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-2SO4LW7V.js";import"../../chunk-P37U34EQ.js";export{a as useContractAmendment};
1
+ import{a}from"../../chunk-DV6PCBAX.js";import"../../chunk-SXR333SU.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-W3YE53JN.js";import"../../chunk-OXL3QGHT.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-ARTSDUSS.js";import"../../chunk-P37U34EQ.js";export{a as useContractAmendment};
2
2
  //# sourceMappingURL=hooks.js.map
@@ -4,16 +4,16 @@ export { ContractAmendmentForm } from './ContractAmendmentForm.js';
4
4
  export { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
5
5
  export { useContractAmendment } from './hooks.js';
6
6
  import 'react/jsx-runtime';
7
- import '../../types.gen-UyEyxhzQ.js';
7
+ import '../../types.gen-D2nbxMA0.js';
8
8
  import 'react-hook-form';
9
9
  import './ContractAmendmentBack.js';
10
10
  import 'react';
11
11
  import './types.js';
12
12
  import '../types.js';
13
- import '../../remoteFlows-CnmojyGF.js';
13
+ import '../../remoteFlows-B9Nl1qjN.js';
14
14
  import 'yup';
15
- import '../../types-Zg1n_9wh.js';
15
+ import '../../types-ZWIpiFgj.js';
16
16
  import '@remoteoss/json-schema-form-old';
17
17
  import '@remoteoss/remote-json-schema-form-kit';
18
- import '../../mutations-B7nzyRmB.js';
18
+ import '../../mutations-C051uRcC.js';
19
19
  import '../useStepState.js';
@@ -1,2 +1,2 @@
1
- import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-S7INFMJB.js";import{a as b}from"../../chunk-3N4O7TE2.js";import{a as c}from"../../chunk-V2L3UV7M.js";import{a as d}from"../../chunk-CDCKGIF5.js";import"../../chunk-JA7UP6GN.js";import"../../chunk-ZPN5N6BA.js";import"../../chunk-N4232FEQ.js";import"../../chunk-LNV36S6D.js";import"../../chunk-FLXY4CUE.js";import"../../chunk-E5PHO3SS.js";import"../../chunk-KGKDSOER.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-NFUP6BFU.js";import"../../chunk-ZIN2OWTH.js";import"../../chunk-UOOUV52J.js";import"../../chunk-72OH7PSF.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-BZUYUGQF.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import{a}from"../../chunk-FUMA5UUB.js";import"../../chunk-66N57DKF.js";import"../../chunk-2SO4LW7V.js";import"../../chunk-PMTKQME6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
1
+ import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-3Z6AFLXW.js";import{a as b}from"../../chunk-LG2LVO4C.js";import"../../chunk-EYQ4PYUT.js";import"../../chunk-LNV36S6D.js";import"../../chunk-EGRGQWIY.js";import"../../chunk-LKMPZJIW.js";import"../../chunk-KGKDSOER.js";import{a as c}from"../../chunk-Y2NSR2N6.js";import{a as d}from"../../chunk-DV6PCBAX.js";import"../../chunk-SXR333SU.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-W3YE53JN.js";import"../../chunk-OXL3QGHT.js";import"../../chunk-ZIN2OWTH.js";import"../../chunk-UOOUV52J.js";import"../../chunk-72OH7PSF.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-F3KEIVSE.js";import"../../chunk-6GTRAHWJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import{a}from"../../chunk-KKGRYDZA.js";import"../../chunk-66N57DKF.js";import"../../chunk-ARTSDUSS.js";import"../../chunk-PMTKQME6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
1
  import { FlowOptions } from '../types.js';
2
- import '../../remoteFlows-CnmojyGF.js';
2
+ import '../../remoteFlows-B9Nl1qjN.js';
3
3
  import 'react';
4
4
  import 'yup';
5
- import '../../types.gen-UyEyxhzQ.js';
6
- import '../../types-Zg1n_9wh.js';
5
+ import '../../types.gen-D2nbxMA0.js';
6
+ import '../../types-ZWIpiFgj.js';
7
7
  import 'react-hook-form';
8
8
  import '@remoteoss/json-schema-form-old';
9
9
  import '@remoteoss/remote-json-schema-form-kit';
@@ -1,4 +1,4 @@
1
- import { E as Employment } from '../../types.gen-UyEyxhzQ.js';
1
+ import { E as Employment } from '../../types.gen-D2nbxMA0.js';
2
2
  import { Fields } from '@remoteoss/json-schema-form-old';
3
3
  import { Step } from '../useStepState.js';
4
4
  import 'react';
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-ZPN5N6BA.js";import"../../chunk-2SO4LW7V.js";import"../../chunk-P37U34EQ.js";export{a as STEPS,b as buildInitialValues};
1
+ import{a,b}from"../../chunk-OXL3QGHT.js";import"../../chunk-ARTSDUSS.js";import"../../chunk-P37U34EQ.js";export{a as STEPS,b as buildInitialValues};
2
2
  //# sourceMappingURL=utils.js.map
@@ -1,25 +1,25 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as ContractorOnboardingFlowProps } from '../../types-CbCzUTok.js';
3
- import '../../types.gen-UyEyxhzQ.js';
2
+ import { a as ContractorOnboardingFlowProps } from '../../types-Dx-2ocvG.js';
3
+ import '../../types.gen-D2nbxMA0.js';
4
4
  import './components/OnboardingBack.js';
5
5
  import 'react';
6
6
  import './components/OnboardingSubmit.js';
7
- import '../../mutations-B7nzyRmB.js';
8
- import '../../remoteFlows-CnmojyGF.js';
7
+ import '../../mutations-C051uRcC.js';
8
+ import '../../remoteFlows-B9Nl1qjN.js';
9
9
  import 'yup';
10
- import '../../types-Zg1n_9wh.js';
10
+ import '../../types-ZWIpiFgj.js';
11
11
  import 'react-hook-form';
12
12
  import '@tanstack/query-core';
13
+ import '@remoteoss/json-schema-form-old';
13
14
  import '@remoteoss/remote-json-schema-form-kit';
14
15
  import './utils.js';
16
+ import '../types.js';
15
17
  import '../useStepState.js';
16
- import '@remoteoss/json-schema-form-old';
17
18
  import './components/BasicInformationStep.js';
18
- import '../../types-DGKjcWLj.js';
19
+ import '../../types-Ci-EdBDb.js';
19
20
  import '../Onboarding/components/OnboardingBack.js';
20
21
  import '../Onboarding/components/OnboardingInvite.js';
21
22
  import '../Onboarding/components/OnboardingSubmit.js';
22
- import '../types.js';
23
23
  import '../Onboarding/components/SaveDraftButton.js';
24
24
 
25
25
  declare const ContractorOnboardingFlow: ({ render, employmentId, externalId, countryCode, skipSteps, initialValues, options, }: ContractorOnboardingFlowProps) => react_jsx_runtime.JSX.Element;
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-WKHYYISW.js";import"../../chunk-EDP4HELT.js";import"../../chunk-T2URGIP3.js";import"../../chunk-KJZLQ77E.js";import"../../chunk-VFZXJTBY.js";import"../../chunk-FXRIYGSV.js";import"../../chunk-7WVNWNM2.js";import"../../chunk-OA7477F5.js";import"../../chunk-26JXMVXY.js";import"../../chunk-4ZNCIMTR.js";import"../../chunk-TOA3JILU.js";import"../../chunk-LZGN6WCB.js";import"../../chunk-OAPK6TR7.js";import"../../chunk-AP56UUME.js";import"../../chunk-R2MHAPWD.js";import"../../chunk-3UDG4IJO.js";import"../../chunk-ZOTFS35J.js";import"../../chunk-23OYALRY.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-H6YNMT4M.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-N4232FEQ.js";import"../../chunk-LNV36S6D.js";import"../../chunk-FLXY4CUE.js";import"../../chunk-E5PHO3SS.js";import"../../chunk-KGKDSOER.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-NFUP6BFU.js";import"../../chunk-ZIN2OWTH.js";import"../../chunk-UOOUV52J.js";import"../../chunk-72OH7PSF.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-66N57DKF.js";import"../../chunk-2SO4LW7V.js";import"../../chunk-PMTKQME6.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
1
+ import{a}from"../../chunk-5DKNCKV7.js";import"../../chunk-6P4DTWYK.js";import"../../chunk-2FQ2KNP4.js";import"../../chunk-ERRQIROU.js";import"../../chunk-VBO75DXV.js";import"../../chunk-BL7OYWNX.js";import"../../chunk-NABPCULM.js";import"../../chunk-HDNBZ6CB.js";import"../../chunk-PZNXAOZH.js";import"../../chunk-7COHIUGW.js";import"../../chunk-5C3NU7R3.js";import"../../chunk-2Y3SXQ5B.js";import"../../chunk-GCTHZSIN.js";import"../../chunk-AP56UUME.js";import"../../chunk-R2MHAPWD.js";import"../../chunk-3UDG4IJO.js";import"../../chunk-TOA3JILU.js";import"../../chunk-5LSHRCAR.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-H6YNMT4M.js";import"../../chunk-EYQ4PYUT.js";import"../../chunk-LNV36S6D.js";import"../../chunk-EGRGQWIY.js";import"../../chunk-LKMPZJIW.js";import"../../chunk-KGKDSOER.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-W3YE53JN.js";import"../../chunk-ZIN2OWTH.js";import"../../chunk-UOOUV52J.js";import"../../chunk-72OH7PSF.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-6GTRAHWJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-LJGCFFAT.js";import"../../chunk-66N57DKF.js";import"../../chunk-ARTSDUSS.js";import"../../chunk-PMTKQME6.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
2
2
  //# sourceMappingURL=ContractorOnboarding.js.map
@@ -1,13 +1,13 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryResult } from '@tanstack/react-query';
3
- import { S as SuccessResponse, B as BadRequestResponse, F as ForbiddenResponse, d as SignContractDocument, e as File, f as ContractorSubscriptionsSummary, M as ManageContractorPlusSubscriptionOperationsParams, g as CreateContractDocumentResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, h as CreateContractDocument } from '../../types.gen-UyEyxhzQ.js';
3
+ import { S as SuccessResponse, B as BadRequestResponse, F as ForbiddenResponse, h as SignContractDocument, i as File, j as ContractorSubscriptionsSummary, k as ManageContractorPlusSubscriptionOperationsParams, l as CreateContractDocumentResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, m as CreateContractDocument } from '../../types.gen-D2nbxMA0.js';
4
4
  import * as _remoteoss_remote_json_schema_form_kit from '@remoteoss/remote-json-schema-form-kit';
5
5
  import { NextFlowOptions, JSONSchemaFormResultWithFieldsets } from '../types.js';
6
6
  import { FieldValues } from 'react-hook-form';
7
- import '../../remoteFlows-CnmojyGF.js';
7
+ import '../../remoteFlows-B9Nl1qjN.js';
8
8
  import 'react';
9
9
  import 'yup';
10
- import '../../types-Zg1n_9wh.js';
10
+ import '../../types-ZWIpiFgj.js';
11
11
  import '@remoteoss/json-schema-form-old';
12
12
 
13
13
  /**
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h}from"../../chunk-OAPK6TR7.js";import"../../chunk-AP56UUME.js";import"../../chunk-R2MHAPWD.js";import"../../chunk-3UDG4IJO.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-NFUP6BFU.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-2SO4LW7V.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{g as useContractorOnboardingDetailsSchema,h as useContractorSubscriptionSchemaField,f as useCreateContractorContractDocument,a as useGetContractDocumentSignatureSchema,d as useGetContractorSubscriptions,c as useGetShowContractDocument,e as usePostManageContractorSubscriptions,b as useSignContractDocument};
1
+ import{a,b,c,d,e,f,g,h}from"../../chunk-GCTHZSIN.js";import"../../chunk-AP56UUME.js";import"../../chunk-R2MHAPWD.js";import"../../chunk-3UDG4IJO.js";import"../../chunk-W3YE53JN.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-ARTSDUSS.js";import"../../chunk-L3Z2G32A.js";import"../../chunk-P37U34EQ.js";export{g as useContractorOnboardingDetailsSchema,h as useContractorSubscriptionSchemaField,f as useCreateContractorContractDocument,a as useGetContractDocumentSignatureSchema,d as useGetContractorSubscriptions,c as useGetShowContractDocument,e as usePostManageContractorSubscriptions,b as useSignContractDocument};
2
2
  //# sourceMappingURL=api.js.map
@@ -1,13 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { B as BasicInformationFormPayload } from '../../../types-DGKjcWLj.js';
3
- import { r as EmploymentCreationResponse } from '../../../types.gen-UyEyxhzQ.js';
4
- import { N as NormalizedFieldError } from '../../../mutations-B7nzyRmB.js';
2
+ import { B as BasicInformationFormPayload } from '../../../types-Ci-EdBDb.js';
3
+ import { r as EmploymentCreationResponse } from '../../../types.gen-D2nbxMA0.js';
4
+ import { N as NormalizedFieldError } from '../../../mutations-C051uRcC.js';
5
5
  import '../../Onboarding/components/OnboardingBack.js';
6
6
  import 'react';
7
7
  import '../../Onboarding/components/OnboardingInvite.js';
8
- import '../../../remoteFlows-CnmojyGF.js';
8
+ import '../../../remoteFlows-B9Nl1qjN.js';
9
9
  import 'yup';
10
- import '../../../types-Zg1n_9wh.js';
10
+ import '../../../types-ZWIpiFgj.js';
11
11
  import 'react-hook-form';
12
12
  import '../../Onboarding/components/OnboardingSubmit.js';
13
13
  import '@tanstack/query-core';
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-T2URGIP3.js";import"../../../chunk-4ZNCIMTR.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-N4232FEQ.js";import"../../../chunk-LNV36S6D.js";import"../../../chunk-FLXY4CUE.js";import"../../../chunk-E5PHO3SS.js";import"../../../chunk-KGKDSOER.js";import"../../../chunk-2YTBWEC7.js";import"../../../chunk-NFUP6BFU.js";import"../../../chunk-ZIN2OWTH.js";import"../../../chunk-UOOUV52J.js";import"../../../chunk-72OH7PSF.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-LJGCFFAT.js";import"../../../chunk-66N57DKF.js";import"../../../chunk-2SO4LW7V.js";import"../../../chunk-PMTKQME6.js";import"../../../chunk-L3Z2G32A.js";import"../../../chunk-P37U34EQ.js";export{a as BasicInformationStep};
1
+ import{a}from"../../../chunk-NABPCULM.js";import"../../../chunk-7COHIUGW.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-EYQ4PYUT.js";import"../../../chunk-LNV36S6D.js";import"../../../chunk-EGRGQWIY.js";import"../../../chunk-LKMPZJIW.js";import"../../../chunk-KGKDSOER.js";import"../../../chunk-2YTBWEC7.js";import"../../../chunk-W3YE53JN.js";import"../../../chunk-ZIN2OWTH.js";import"../../../chunk-UOOUV52J.js";import"../../../chunk-72OH7PSF.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-LJGCFFAT.js";import"../../../chunk-66N57DKF.js";import"../../../chunk-ARTSDUSS.js";import"../../../chunk-PMTKQME6.js";import"../../../chunk-L3Z2G32A.js";import"../../../chunk-P37U34EQ.js";export{a as BasicInformationStep};
2
2
  //# sourceMappingURL=BasicInformationStep.js.map
@@ -1,23 +1,23 @@
1
1
  import 'react/jsx-runtime';
2
- import '../../../mutations-B7nzyRmB.js';
3
- export { h as ContractDetailsStep } from '../../../types-CbCzUTok.js';
4
- import '../../../remoteFlows-CnmojyGF.js';
2
+ import '../../../mutations-C051uRcC.js';
3
+ export { h as ContractDetailsStep } from '../../../types-Dx-2ocvG.js';
4
+ import '../../../remoteFlows-B9Nl1qjN.js';
5
5
  import 'react';
6
6
  import 'yup';
7
- import '../../../types.gen-UyEyxhzQ.js';
8
- import '../../../types-Zg1n_9wh.js';
7
+ import '../../../types.gen-D2nbxMA0.js';
8
+ import '../../../types-ZWIpiFgj.js';
9
9
  import 'react-hook-form';
10
10
  import './OnboardingBack.js';
11
11
  import './OnboardingSubmit.js';
12
12
  import '@tanstack/query-core';
13
+ import '@remoteoss/json-schema-form-old';
13
14
  import '@remoteoss/remote-json-schema-form-kit';
14
15
  import '../utils.js';
16
+ import '../../types.js';
15
17
  import '../../useStepState.js';
16
- import '@remoteoss/json-schema-form-old';
17
18
  import './BasicInformationStep.js';
18
- import '../../../types-DGKjcWLj.js';
19
+ import '../../../types-Ci-EdBDb.js';
19
20
  import '../../Onboarding/components/OnboardingBack.js';
20
21
  import '../../Onboarding/components/OnboardingInvite.js';
21
22
  import '../../Onboarding/components/OnboardingSubmit.js';
22
- import '../../types.js';
23
23
  import '../../Onboarding/components/SaveDraftButton.js';
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-KJZLQ77E.js";import"../../../chunk-4ZNCIMTR.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-N4232FEQ.js";import"../../../chunk-LNV36S6D.js";import"../../../chunk-FLXY4CUE.js";import"../../../chunk-E5PHO3SS.js";import"../../../chunk-KGKDSOER.js";import"../../../chunk-2YTBWEC7.js";import"../../../chunk-NFUP6BFU.js";import"../../../chunk-ZIN2OWTH.js";import"../../../chunk-UOOUV52J.js";import"../../../chunk-72OH7PSF.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-LJGCFFAT.js";import"../../../chunk-66N57DKF.js";import"../../../chunk-2SO4LW7V.js";import"../../../chunk-PMTKQME6.js";import"../../../chunk-L3Z2G32A.js";import"../../../chunk-P37U34EQ.js";export{a as ContractDetailsStep};
1
+ import{a}from"../../../chunk-HDNBZ6CB.js";import"../../../chunk-7COHIUGW.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-EYQ4PYUT.js";import"../../../chunk-LNV36S6D.js";import"../../../chunk-EGRGQWIY.js";import"../../../chunk-LKMPZJIW.js";import"../../../chunk-KGKDSOER.js";import"../../../chunk-2YTBWEC7.js";import"../../../chunk-W3YE53JN.js";import"../../../chunk-ZIN2OWTH.js";import"../../../chunk-UOOUV52J.js";import"../../../chunk-72OH7PSF.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-LJGCFFAT.js";import"../../../chunk-66N57DKF.js";import"../../../chunk-ARTSDUSS.js";import"../../../chunk-PMTKQME6.js";import"../../../chunk-L3Z2G32A.js";import"../../../chunk-P37U34EQ.js";export{a as ContractDetailsStep};
2
2
  //# sourceMappingURL=ContractDetailsStep.js.map
@@ -1,23 +1,23 @@
1
1
  import 'react/jsx-runtime';
2
- import '../../../mutations-B7nzyRmB.js';
3
- export { i as ContractPreviewStep } from '../../../types-CbCzUTok.js';
4
- import '../../../remoteFlows-CnmojyGF.js';
2
+ import '../../../mutations-C051uRcC.js';
3
+ export { i as ContractPreviewStep } from '../../../types-Dx-2ocvG.js';
4
+ import '../../../remoteFlows-B9Nl1qjN.js';
5
5
  import 'react';
6
6
  import 'yup';
7
- import '../../../types.gen-UyEyxhzQ.js';
8
- import '../../../types-Zg1n_9wh.js';
7
+ import '../../../types.gen-D2nbxMA0.js';
8
+ import '../../../types-ZWIpiFgj.js';
9
9
  import 'react-hook-form';
10
10
  import './OnboardingBack.js';
11
11
  import './OnboardingSubmit.js';
12
12
  import '@tanstack/query-core';
13
+ import '@remoteoss/json-schema-form-old';
13
14
  import '@remoteoss/remote-json-schema-form-kit';
14
15
  import '../utils.js';
16
+ import '../../types.js';
15
17
  import '../../useStepState.js';
16
- import '@remoteoss/json-schema-form-old';
17
18
  import './BasicInformationStep.js';
18
- import '../../../types-DGKjcWLj.js';
19
+ import '../../../types-Ci-EdBDb.js';
19
20
  import '../../Onboarding/components/OnboardingBack.js';
20
21
  import '../../Onboarding/components/OnboardingInvite.js';
21
22
  import '../../Onboarding/components/OnboardingSubmit.js';
22
- import '../../types.js';
23
23
  import '../../Onboarding/components/SaveDraftButton.js';
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-VFZXJTBY.js";import"../../../chunk-4ZNCIMTR.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-N4232FEQ.js";import"../../../chunk-LNV36S6D.js";import"../../../chunk-FLXY4CUE.js";import"../../../chunk-E5PHO3SS.js";import"../../../chunk-KGKDSOER.js";import"../../../chunk-2YTBWEC7.js";import"../../../chunk-NFUP6BFU.js";import"../../../chunk-ZIN2OWTH.js";import"../../../chunk-UOOUV52J.js";import"../../../chunk-72OH7PSF.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-LJGCFFAT.js";import"../../../chunk-66N57DKF.js";import"../../../chunk-2SO4LW7V.js";import"../../../chunk-PMTKQME6.js";import"../../../chunk-L3Z2G32A.js";import"../../../chunk-P37U34EQ.js";export{a as ContractPreviewStep};
1
+ import{a}from"../../../chunk-PZNXAOZH.js";import"../../../chunk-7COHIUGW.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-EYQ4PYUT.js";import"../../../chunk-LNV36S6D.js";import"../../../chunk-EGRGQWIY.js";import"../../../chunk-LKMPZJIW.js";import"../../../chunk-KGKDSOER.js";import"../../../chunk-2YTBWEC7.js";import"../../../chunk-W3YE53JN.js";import"../../../chunk-ZIN2OWTH.js";import"../../../chunk-UOOUV52J.js";import"../../../chunk-72OH7PSF.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-LJGCFFAT.js";import"../../../chunk-66N57DKF.js";import"../../../chunk-ARTSDUSS.js";import"../../../chunk-PMTKQME6.js";import"../../../chunk-L3Z2G32A.js";import"../../../chunk-P37U34EQ.js";export{a as ContractPreviewStep};
2
2
  //# sourceMappingURL=ContractPreviewStep.js.map