@remoteoss/remote-flows 1.33.0 → 1.33.2

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 (479) hide show
  1. package/dist/ButtonDefault-CB27KWFN.js +2 -0
  2. package/dist/CheckboxFieldDefault-5NZEGPA6.js +2 -0
  3. package/dist/CountryFieldDefault-GP2S2KN6.js +2 -0
  4. package/dist/DatePickerFieldDefault-KN4COEEO.js +2 -0
  5. package/dist/DrawerDefault-JR6422D5.js +2 -0
  6. package/dist/EmailFieldDefault-XSAEEKK7.js +2 -0
  7. package/dist/FieldsetToggleButtonDefault-OQ7J2T3G.js +2 -0
  8. package/dist/FileUploadFieldDefault-5VQDJWZV.js +2 -0
  9. package/dist/MultiSelectFieldDefault-BORNPHNW.js +2 -0
  10. package/dist/NumberFieldDefault-PRI6IHOZ.js +2 -0
  11. package/dist/RadioGroupFieldDefault-L3CZN2ZT.js +2 -0
  12. package/dist/SelectFieldDefault-EV5QGUX6.js +2 -0
  13. package/dist/StatementDefault-WKRJDBC7.js +2 -0
  14. package/dist/TableFieldDefault-75LWJ2E3.js +2 -0
  15. package/dist/TelFieldDefault-M5LDQMIK.js +2 -0
  16. package/dist/TextAreaFieldDefault-YKBNDA4U.js +2 -0
  17. package/dist/TextFieldDefault-RCZYNB3Z.js +2 -0
  18. package/dist/WorkScheduleFieldDefault-XLAFRZX2.js +2 -0
  19. package/dist/ZendeskDrawerDefault-NQP7CBPW.js +2 -0
  20. package/dist/chunk-242UBL3Z.js +2 -0
  21. package/dist/{chunk-LWQLNGOH.js.map → chunk-242UBL3Z.js.map} +1 -1
  22. package/dist/{chunk-QC2FAORS.js → chunk-24HG2Q5K.js} +2 -2
  23. package/dist/{chunk-QC2FAORS.js.map → chunk-24HG2Q5K.js.map} +1 -1
  24. package/dist/chunk-2HREQZP4.js +2 -0
  25. package/dist/chunk-2HREQZP4.js.map +1 -0
  26. package/dist/{chunk-ZHDES3J6.js → chunk-2IIHA7AA.js} +2 -2
  27. package/dist/{chunk-FHW5CMN5.js → chunk-2LUPUTP6.js} +2 -2
  28. package/dist/{chunk-J4ALYQ36.js → chunk-33NHO3CG.js} +2 -2
  29. package/dist/{chunk-5FHDUZCG.js → chunk-3JXNNFJV.js} +2 -2
  30. package/dist/{chunk-QYNWADPG.js → chunk-3PKL3V6F.js} +2 -2
  31. package/dist/{chunk-UB5ZMTTU.js → chunk-3TLNWNFZ.js} +2 -2
  32. package/dist/{chunk-AWQU5AAN.js → chunk-3YS4OWE3.js} +2 -2
  33. package/dist/{chunk-F7PE3VRK.js → chunk-4FQCB4LB.js} +2 -2
  34. package/dist/{chunk-U5T77DSF.js → chunk-4MW7KA47.js} +2 -2
  35. package/dist/{chunk-J2QQLYVY.js → chunk-4ZMRPH3M.js} +2 -2
  36. package/dist/{chunk-4YCBOVSQ.js → chunk-5BGNKOPP.js} +2 -2
  37. package/dist/{chunk-XG6ASTX5.js → chunk-5BU3CD2P.js} +2 -2
  38. package/dist/{chunk-XG6ASTX5.js.map → chunk-5BU3CD2P.js.map} +1 -1
  39. package/dist/{chunk-WJ64Q54L.js → chunk-5CYUZQSB.js} +2 -2
  40. package/dist/{chunk-LXEFKJ4K.js → chunk-5FHNCDLU.js} +2 -2
  41. package/dist/{chunk-LXEFKJ4K.js.map → chunk-5FHNCDLU.js.map} +1 -1
  42. package/dist/{chunk-ZSMILHO4.js → chunk-5KTF4QMV.js} +2 -2
  43. package/dist/{chunk-FKELI7OS.js → chunk-6NTCRGOD.js} +2 -2
  44. package/dist/{chunk-TVF4JOK2.js → chunk-6PXDRES5.js} +2 -2
  45. package/dist/{chunk-TVF4JOK2.js.map → chunk-6PXDRES5.js.map} +1 -1
  46. package/dist/{chunk-SNWJIIF7.js → chunk-6YBH2ELN.js} +2 -2
  47. package/dist/{chunk-ZANINDSC.js → chunk-A7IG7GGK.js} +2 -2
  48. package/dist/{chunk-ZANINDSC.js.map → chunk-A7IG7GGK.js.map} +1 -1
  49. package/dist/{chunk-N5XWRUYE.js → chunk-B3ACYI7T.js} +2 -2
  50. package/dist/{chunk-NDZIQGDE.js → chunk-B3KDZREG.js} +2 -2
  51. package/dist/{chunk-ZQNYASQ3.js → chunk-BQA2DJF2.js} +2 -2
  52. package/dist/{chunk-3SIHU3EE.js → chunk-C7GJUNNC.js} +2 -2
  53. package/dist/{chunk-3JPDFNNH.js → chunk-CDX5QDO3.js} +2 -2
  54. package/dist/{chunk-KWBTUWWQ.js → chunk-CFCUY6VA.js} +2 -2
  55. package/dist/{chunk-5QRYKH3H.js → chunk-CMPHQVJ3.js} +2 -2
  56. package/dist/{chunk-LG5NFDID.js → chunk-CQQCOU57.js} +2 -2
  57. package/dist/{chunk-GCQYAEZT.js → chunk-DTTE663D.js} +2 -2
  58. package/dist/{chunk-CBPV2QLT.js → chunk-DU55JKPB.js} +2 -2
  59. package/dist/chunk-DU55JKPB.js.map +1 -0
  60. package/dist/{chunk-AZZUFPQM.js → chunk-DUJVDBY4.js} +2 -2
  61. package/dist/{chunk-AZZUFPQM.js.map → chunk-DUJVDBY4.js.map} +1 -1
  62. package/dist/{chunk-ZYN3TAUB.js → chunk-DXKUARQF.js} +2 -2
  63. package/dist/{chunk-T5HMFMXH.js → chunk-ED7I5OM2.js} +2 -2
  64. package/dist/chunk-EJWKMMZV.js +2 -0
  65. package/dist/chunk-EJWKMMZV.js.map +1 -0
  66. package/dist/chunk-ER46UFIU.js +8 -0
  67. package/dist/chunk-ER46UFIU.js.map +1 -0
  68. package/dist/{chunk-MKUSE7JK.js → chunk-F2ENM2JE.js} +2 -2
  69. package/dist/chunk-F2ENM2JE.js.map +1 -0
  70. package/dist/{chunk-2P2OJKD4.js → chunk-FFOTUKBN.js} +2 -2
  71. package/dist/{chunk-ACM63WPM.js → chunk-FIVDMRET.js} +2 -2
  72. package/dist/chunk-FJUUNJHY.js +2 -0
  73. package/dist/chunk-FJUUNJHY.js.map +1 -0
  74. package/dist/{chunk-7GDMMNJT.js → chunk-G247NY7P.js} +2 -2
  75. package/dist/{chunk-7GDMMNJT.js.map → chunk-G247NY7P.js.map} +1 -1
  76. package/dist/{chunk-CKJF6K4L.js → chunk-G6E7F6VD.js} +2 -2
  77. package/dist/{chunk-5X6JMXP6.js → chunk-G7MJDZGB.js} +2 -2
  78. package/dist/chunk-G7MJDZGB.js.map +1 -0
  79. package/dist/{chunk-GUO7UC4X.js → chunk-GQACPN6J.js} +2 -2
  80. package/dist/{chunk-HUAPBLSQ.js → chunk-IKZZOOWO.js} +2 -2
  81. package/dist/{chunk-HUAPBLSQ.js.map → chunk-IKZZOOWO.js.map} +1 -1
  82. package/dist/{chunk-77WJNWIC.js → chunk-IQRJNJQ7.js} +2 -2
  83. package/dist/{chunk-L57LWMNE.js → chunk-IX5SV6J2.js} +2 -2
  84. package/dist/{chunk-3OU6XE7X.js → chunk-J2G2I3PX.js} +2 -2
  85. package/dist/{chunk-TSPDJUGG.js → chunk-JDIKYCN6.js} +1 -1
  86. package/dist/{chunk-TSPDJUGG.js.map → chunk-JDIKYCN6.js.map} +1 -1
  87. package/dist/{chunk-H4S6LSDA.js → chunk-JFSM3EOC.js} +2 -2
  88. package/dist/chunk-JLFYJT3K.js +2 -0
  89. package/dist/chunk-JLFYJT3K.js.map +1 -0
  90. package/dist/chunk-JXAAON7I.js +2 -0
  91. package/dist/chunk-JXAAON7I.js.map +1 -0
  92. package/dist/{chunk-3ZGDRCSS.js → chunk-K3LPVMXD.js} +2 -2
  93. package/dist/{chunk-GVPB75PC.js → chunk-KYNIBHVR.js} +2 -2
  94. package/dist/{chunk-2WOUKCSC.js → chunk-L5SNHVLU.js} +2 -2
  95. package/dist/chunk-LDI7E3ZK.js +2 -0
  96. package/dist/{chunk-5JGA7DRL.js.map → chunk-LDI7E3ZK.js.map} +1 -1
  97. package/dist/{chunk-YMOAWXSE.js → chunk-LKFGJU72.js} +2 -2
  98. package/dist/{chunk-E3WR4SVV.js → chunk-MXARM6PV.js} +2 -2
  99. package/dist/{chunk-E3WR4SVV.js.map → chunk-MXARM6PV.js.map} +1 -1
  100. package/dist/{chunk-AVVDKCFO.js → chunk-N2MBTATE.js} +2 -2
  101. package/dist/{chunk-IOVRTUOC.js → chunk-N5DHVRQR.js} +2 -2
  102. package/dist/{chunk-IOVRTUOC.js.map → chunk-N5DHVRQR.js.map} +1 -1
  103. package/dist/{chunk-ZWH34WQJ.js → chunk-ND66GS24.js} +2 -2
  104. package/dist/{chunk-MGPUZ7NZ.js → chunk-NN2HUS43.js} +2 -2
  105. package/dist/{chunk-DIZ5Z4MN.js → chunk-NZXVTXZY.js} +2 -2
  106. package/dist/{chunk-HZ2BCB3U.js → chunk-OO3VBBVN.js} +2 -2
  107. package/dist/{chunk-C4UUGOR3.js → chunk-OSHTXKLJ.js} +2 -2
  108. package/dist/{chunk-WUQZCGWG.js → chunk-OVQOV5YL.js} +2 -2
  109. package/dist/{chunk-WUSKSXW2.js → chunk-PMAIML44.js} +2 -2
  110. package/dist/{chunk-WUSKSXW2.js.map → chunk-PMAIML44.js.map} +1 -1
  111. package/dist/{chunk-OMLHAQQX.js → chunk-PSN4ZR5Y.js} +2 -2
  112. package/dist/{chunk-AGKLWKYY.js → chunk-Q5RU76HN.js} +2 -2
  113. package/dist/{chunk-2A4DCZTX.js → chunk-Q5WADFQ7.js} +2 -2
  114. package/dist/chunk-Q65JWWKR.js +2 -0
  115. package/dist/chunk-Q65JWWKR.js.map +1 -0
  116. package/dist/chunk-QHZPSH52.js +2 -0
  117. package/dist/chunk-QHZPSH52.js.map +1 -0
  118. package/dist/{chunk-6C4DCKHS.js → chunk-QWIPKY24.js} +2 -2
  119. package/dist/{chunk-X66NETZL.js → chunk-QWSAKYH4.js} +2 -2
  120. package/dist/{chunk-C6UF7BPK.js → chunk-QYLLXHLO.js} +2 -2
  121. package/dist/{chunk-AYYYRHO3.js → chunk-R4TTPUH7.js} +2 -2
  122. package/dist/{chunk-Y5JFBXNR.js → chunk-R63ZJMJA.js} +2 -2
  123. package/dist/{chunk-Y5JFBXNR.js.map → chunk-R63ZJMJA.js.map} +1 -1
  124. package/dist/{chunk-3EUYWSSZ.js → chunk-RGXG3HOB.js} +2 -2
  125. package/dist/{chunk-3EUYWSSZ.js.map → chunk-RGXG3HOB.js.map} +1 -1
  126. package/dist/{chunk-OPM4YQGQ.js → chunk-RQGYSZOO.js} +2 -2
  127. package/dist/{chunk-OPM4YQGQ.js.map → chunk-RQGYSZOO.js.map} +1 -1
  128. package/dist/{chunk-6S66UQ2X.js → chunk-RS25IVTP.js} +2 -2
  129. package/dist/chunk-SVVZOMLQ.js +2 -0
  130. package/dist/chunk-SVVZOMLQ.js.map +1 -0
  131. package/dist/chunk-T35SZZ74.js +2 -0
  132. package/dist/chunk-T35SZZ74.js.map +1 -0
  133. package/dist/{chunk-MHQ5ZW5P.js → chunk-TMS24RKD.js} +2 -2
  134. package/dist/{chunk-JX2ZVRE7.js → chunk-TMZVJ3SQ.js} +2 -2
  135. package/dist/{chunk-45RIDSO6.js → chunk-TXP3DGU6.js} +2 -2
  136. package/dist/{chunk-KAHAW4HH.js → chunk-U3PQEGSV.js} +2 -2
  137. package/dist/{chunk-KAHAW4HH.js.map → chunk-U3PQEGSV.js.map} +1 -1
  138. package/dist/{chunk-ID66NML3.js → chunk-U5QVIJOS.js} +2 -2
  139. package/dist/{chunk-ID66NML3.js.map → chunk-U5QVIJOS.js.map} +1 -1
  140. package/dist/{chunk-CNMNJMOT.js → chunk-UBIW2GE4.js} +2 -2
  141. package/dist/{chunk-SYXJTCKS.js → chunk-UG5UQ72J.js} +2 -2
  142. package/dist/{chunk-LDSS6RYC.js → chunk-VAYKULUJ.js} +2 -2
  143. package/dist/{chunk-PFQTTYVH.js → chunk-VBP6CRNM.js} +2 -2
  144. package/dist/{chunk-XELPL3XO.js → chunk-VJPSDB7M.js} +2 -2
  145. package/dist/{chunk-RXSGIEA5.js → chunk-VLWFSFRL.js} +2 -2
  146. package/dist/{chunk-75MI3G5H.js → chunk-VYBMEFCQ.js} +2 -2
  147. package/dist/{chunk-K5TZIA6W.js → chunk-VZEIJSTF.js} +2 -2
  148. package/dist/chunk-W4YDSTXA.js +2 -0
  149. package/dist/chunk-W4YDSTXA.js.map +1 -0
  150. package/dist/{chunk-234SEE75.js → chunk-X4KJVXDB.js} +2 -2
  151. package/dist/{chunk-WSARYSM5.js → chunk-XK24ZBGA.js} +2 -2
  152. package/dist/{chunk-WZHTDLX6.js → chunk-XWBNZAGY.js} +2 -2
  153. package/dist/{chunk-PBWF2VXG.js → chunk-XWZP4WYZ.js} +2 -2
  154. package/dist/{chunk-PR6I3UYE.js → chunk-XX25MIBS.js} +2 -2
  155. package/dist/{chunk-BCCIFJSO.js → chunk-Y7NFXPZ2.js} +2 -2
  156. package/dist/{chunk-3UDWOREZ.js → chunk-YLHYARJK.js} +2 -2
  157. package/dist/{chunk-DCPBAFIN.js → chunk-YPVZUXVH.js} +2 -2
  158. package/dist/chunk-YPVZUXVH.js.map +1 -0
  159. package/dist/{chunk-JLUYUNSV.js → chunk-Z4TZ527J.js} +2 -2
  160. package/dist/{chunk-4RF6I3TT.js → chunk-Z4USLCXF.js} +2 -2
  161. package/dist/{chunk-4RF6I3TT.js.map → chunk-Z4USLCXF.js.map} +1 -1
  162. package/dist/{chunk-DKLTO4XS.js → chunk-ZAVH2YKN.js} +2 -2
  163. package/dist/chunk-ZAZ24JS2.js +2 -0
  164. package/dist/chunk-ZAZ24JS2.js.map +1 -0
  165. package/dist/{chunk-NRNLLJCB.js → chunk-ZE37CBDF.js} +2 -2
  166. package/dist/{chunk-H6Q7QK3C.js → chunk-ZM4ZOX7B.js} +2 -2
  167. package/dist/{chunk-JQHOMFXA.js → chunk-ZSCJ6CT5.js} +2 -2
  168. package/dist/default-components.d.ts +2 -2
  169. package/dist/default-components.js +1 -1
  170. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +2 -2
  171. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  172. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  173. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  174. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +2 -2
  175. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  176. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  177. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  178. package/dist/flows/ContractAmendment/hooks.js +1 -1
  179. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  180. package/dist/flows/ContractAmendment/index.js +1 -1
  181. package/dist/flows/ContractAmendment/types.d.ts +2 -2
  182. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  183. package/dist/flows/ContractAmendment/utils.js +1 -1
  184. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
  185. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  186. package/dist/flows/ContractorOnboarding/api.d.ts +3 -2
  187. package/dist/flows/ContractorOnboarding/api.js +1 -1
  188. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  189. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  190. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
  191. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  192. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  193. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  194. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
  195. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
  196. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  197. package/dist/flows/ContractorOnboarding/components/ContractReviewButton.js +1 -1
  198. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
  199. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  200. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -5
  201. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  202. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  203. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  204. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
  205. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  206. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
  207. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  208. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  209. package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
  210. package/dist/flows/ContractorOnboarding/context.d.ts +5 -5
  211. package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
  212. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  213. package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
  214. package/dist/flows/ContractorOnboarding/index.js +1 -1
  215. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -5
  216. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  217. package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
  218. package/dist/flows/ContractorOnboarding/utils.d.ts +4 -4
  219. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  220. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  221. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  222. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  223. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  224. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  225. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
  226. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  227. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
  228. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
  229. package/dist/flows/CostCalculator/api.d.ts +2 -2
  230. package/dist/flows/CostCalculator/api.js +1 -1
  231. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  232. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  233. package/dist/flows/CostCalculator/context.d.ts +3 -3
  234. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  235. package/dist/flows/CostCalculator/hooks.js +1 -1
  236. package/dist/flows/CostCalculator/index.d.ts +3 -3
  237. package/dist/flows/CostCalculator/index.js +1 -1
  238. package/dist/flows/CostCalculator/types.d.ts +3 -3
  239. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  240. package/dist/flows/CostCalculator/utils.js +1 -1
  241. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  242. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  243. package/dist/flows/CreateCompany/api.d.ts +2 -2
  244. package/dist/flows/CreateCompany/api.js +1 -1
  245. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  246. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  247. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  248. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  249. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  250. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  251. package/dist/flows/CreateCompany/context.d.ts +4 -4
  252. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  253. package/dist/flows/CreateCompany/hooks.js +1 -1
  254. package/dist/flows/CreateCompany/index.d.ts +4 -4
  255. package/dist/flows/CreateCompany/index.js +1 -1
  256. package/dist/flows/CreateCompany/types.d.ts +4 -4
  257. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  258. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  259. package/dist/flows/Onboarding/api.d.ts +4 -4
  260. package/dist/flows/Onboarding/api.js +1 -1
  261. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  262. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  263. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  264. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  265. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  266. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  267. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  268. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  269. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +4 -4
  270. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  271. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  272. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  273. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  274. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  275. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  276. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  277. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  278. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  279. package/dist/flows/Onboarding/context.d.ts +4 -4
  280. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  281. package/dist/flows/Onboarding/hooks.js +1 -1
  282. package/dist/flows/Onboarding/index.d.ts +4 -4
  283. package/dist/flows/Onboarding/index.js +1 -1
  284. package/dist/flows/Onboarding/types.d.ts +4 -4
  285. package/dist/flows/Onboarding/utils.d.ts +4 -4
  286. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  287. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  288. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  289. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  290. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  291. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  292. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  293. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  294. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  295. package/dist/flows/Termination/TerminationFlow.js +1 -1
  296. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  297. package/dist/flows/Termination/TerminationForm.js +1 -1
  298. package/dist/flows/Termination/api.d.ts +5 -5
  299. package/dist/flows/Termination/api.js +1 -1
  300. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
  301. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  302. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  303. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  304. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  305. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  306. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  307. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  308. package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
  309. package/dist/flows/Termination/context.d.ts +4 -4
  310. package/dist/flows/Termination/hooks.d.ts +4 -4
  311. package/dist/flows/Termination/hooks.js +1 -1
  312. package/dist/flows/Termination/index.d.ts +6 -6
  313. package/dist/flows/Termination/index.js +1 -1
  314. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  315. package/dist/flows/Termination/types.d.ts +4 -4
  316. package/dist/flows/Termination/utils.d.ts +4 -4
  317. package/dist/flows/Termination/utils.js +1 -1
  318. package/dist/flows/types.d.ts +5 -3
  319. package/dist/flows/useStepState.js +1 -1
  320. package/dist/flows/utils.d.ts +2 -2
  321. package/dist/index.d.ts +12 -12
  322. package/dist/index.js +2 -2
  323. package/dist/index.js.map +1 -1
  324. package/dist/internals.d.ts +3 -3
  325. package/dist/internals.js +1 -1
  326. package/dist/{mutations-DTK4GE8r.d.ts → mutations-tMusyGqR.d.ts} +1 -1
  327. package/dist/{remoteFlows-n8r_cW0z.d.ts → remoteFlows-1ODSR6M5.d.ts} +1 -1
  328. package/dist/{types-BD0b8UuQ.d.ts → types-B3ZY2CHC.d.ts} +2 -2
  329. package/dist/{types-BiMfLZYw.d.ts → types-B3zSOF4R.d.ts} +3 -3
  330. package/dist/{types-BJ9gyvly.d.ts → types-BADwm0IP.d.ts} +4 -4
  331. package/dist/{types-Cd5_2FHQ.d.ts → types-BdaVhuNW.d.ts} +3 -3
  332. package/dist/{types-BY3BtHb6.d.ts → types-CY31SALf.d.ts} +1 -1
  333. package/dist/{types.gen-DPZBntYq.d.ts → types.gen-D39CBKLR.d.ts} +25 -9
  334. package/dist/{utils-C5lwjSxr.d.ts → utils-BwkOqPg_.d.ts} +1 -1
  335. package/package.json +9 -8
  336. package/dist/ButtonDefault-OMZEWLEI.js +0 -2
  337. package/dist/CheckboxFieldDefault-AGW42RDY.js +0 -2
  338. package/dist/CountryFieldDefault-24T4C7OU.js +0 -2
  339. package/dist/DatePickerFieldDefault-BG4KM2EG.js +0 -2
  340. package/dist/DrawerDefault-64GMPAIH.js +0 -2
  341. package/dist/EmailFieldDefault-UPDZNN2F.js +0 -2
  342. package/dist/FieldsetToggleButtonDefault-BOYDY7VX.js +0 -2
  343. package/dist/FileUploadFieldDefault-KFTIOHEJ.js +0 -2
  344. package/dist/MultiSelectFieldDefault-ALM76UQ5.js +0 -2
  345. package/dist/NumberFieldDefault-OXSEX3HX.js +0 -2
  346. package/dist/RadioGroupFieldDefault-55336PG5.js +0 -2
  347. package/dist/SelectFieldDefault-ARANC6QX.js +0 -2
  348. package/dist/StatementDefault-BMPIWUGF.js +0 -2
  349. package/dist/TableFieldDefault-2FLJU7TJ.js +0 -2
  350. package/dist/TelFieldDefault-RFAYBPGK.js +0 -2
  351. package/dist/TextAreaFieldDefault-3C6UZXHV.js +0 -2
  352. package/dist/TextFieldDefault-UQ23EIHH.js +0 -2
  353. package/dist/WorkScheduleFieldDefault-CGU2T6HY.js +0 -2
  354. package/dist/ZendeskDrawerDefault-JEHYLRHU.js +0 -2
  355. package/dist/chunk-4QVFKKVN.js +0 -2
  356. package/dist/chunk-4QVFKKVN.js.map +0 -1
  357. package/dist/chunk-5JGA7DRL.js +0 -2
  358. package/dist/chunk-5X6JMXP6.js.map +0 -1
  359. package/dist/chunk-B6YWTMGV.js +0 -2
  360. package/dist/chunk-B6YWTMGV.js.map +0 -1
  361. package/dist/chunk-BZ232WZD.js +0 -2
  362. package/dist/chunk-BZ232WZD.js.map +0 -1
  363. package/dist/chunk-CBPV2QLT.js.map +0 -1
  364. package/dist/chunk-DCPBAFIN.js.map +0 -1
  365. package/dist/chunk-HVI5GHIV.js +0 -2
  366. package/dist/chunk-HVI5GHIV.js.map +0 -1
  367. package/dist/chunk-I66TFXX4.js +0 -2
  368. package/dist/chunk-I66TFXX4.js.map +0 -1
  369. package/dist/chunk-K2SHDZBB.js +0 -2
  370. package/dist/chunk-K2SHDZBB.js.map +0 -1
  371. package/dist/chunk-LANAT75E.js +0 -2
  372. package/dist/chunk-LANAT75E.js.map +0 -1
  373. package/dist/chunk-LWQLNGOH.js +0 -2
  374. package/dist/chunk-MKUSE7JK.js.map +0 -1
  375. package/dist/chunk-PIGJNWPB.js +0 -2
  376. package/dist/chunk-PIGJNWPB.js.map +0 -1
  377. package/dist/chunk-RWXZG4KO.js +0 -2
  378. package/dist/chunk-RWXZG4KO.js.map +0 -1
  379. package/dist/chunk-RZCU2MT3.js +0 -2
  380. package/dist/chunk-RZCU2MT3.js.map +0 -1
  381. package/dist/chunk-TNQKP2XT.js +0 -8
  382. package/dist/chunk-TNQKP2XT.js.map +0 -1
  383. package/dist/chunk-TSWZPJNS.js +0 -2
  384. package/dist/chunk-TSWZPJNS.js.map +0 -1
  385. /package/dist/{ButtonDefault-OMZEWLEI.js.map → ButtonDefault-CB27KWFN.js.map} +0 -0
  386. /package/dist/{CheckboxFieldDefault-AGW42RDY.js.map → CheckboxFieldDefault-5NZEGPA6.js.map} +0 -0
  387. /package/dist/{CountryFieldDefault-24T4C7OU.js.map → CountryFieldDefault-GP2S2KN6.js.map} +0 -0
  388. /package/dist/{DatePickerFieldDefault-BG4KM2EG.js.map → DatePickerFieldDefault-KN4COEEO.js.map} +0 -0
  389. /package/dist/{DrawerDefault-64GMPAIH.js.map → DrawerDefault-JR6422D5.js.map} +0 -0
  390. /package/dist/{EmailFieldDefault-UPDZNN2F.js.map → EmailFieldDefault-XSAEEKK7.js.map} +0 -0
  391. /package/dist/{FieldsetToggleButtonDefault-BOYDY7VX.js.map → FieldsetToggleButtonDefault-OQ7J2T3G.js.map} +0 -0
  392. /package/dist/{FileUploadFieldDefault-KFTIOHEJ.js.map → FileUploadFieldDefault-5VQDJWZV.js.map} +0 -0
  393. /package/dist/{MultiSelectFieldDefault-ALM76UQ5.js.map → MultiSelectFieldDefault-BORNPHNW.js.map} +0 -0
  394. /package/dist/{NumberFieldDefault-OXSEX3HX.js.map → NumberFieldDefault-PRI6IHOZ.js.map} +0 -0
  395. /package/dist/{RadioGroupFieldDefault-55336PG5.js.map → RadioGroupFieldDefault-L3CZN2ZT.js.map} +0 -0
  396. /package/dist/{SelectFieldDefault-ARANC6QX.js.map → SelectFieldDefault-EV5QGUX6.js.map} +0 -0
  397. /package/dist/{StatementDefault-BMPIWUGF.js.map → StatementDefault-WKRJDBC7.js.map} +0 -0
  398. /package/dist/{TableFieldDefault-2FLJU7TJ.js.map → TableFieldDefault-75LWJ2E3.js.map} +0 -0
  399. /package/dist/{TelFieldDefault-RFAYBPGK.js.map → TelFieldDefault-M5LDQMIK.js.map} +0 -0
  400. /package/dist/{TextAreaFieldDefault-3C6UZXHV.js.map → TextAreaFieldDefault-YKBNDA4U.js.map} +0 -0
  401. /package/dist/{TextFieldDefault-UQ23EIHH.js.map → TextFieldDefault-RCZYNB3Z.js.map} +0 -0
  402. /package/dist/{WorkScheduleFieldDefault-CGU2T6HY.js.map → WorkScheduleFieldDefault-XLAFRZX2.js.map} +0 -0
  403. /package/dist/{ZendeskDrawerDefault-JEHYLRHU.js.map → ZendeskDrawerDefault-NQP7CBPW.js.map} +0 -0
  404. /package/dist/{chunk-ZHDES3J6.js.map → chunk-2IIHA7AA.js.map} +0 -0
  405. /package/dist/{chunk-FHW5CMN5.js.map → chunk-2LUPUTP6.js.map} +0 -0
  406. /package/dist/{chunk-J4ALYQ36.js.map → chunk-33NHO3CG.js.map} +0 -0
  407. /package/dist/{chunk-5FHDUZCG.js.map → chunk-3JXNNFJV.js.map} +0 -0
  408. /package/dist/{chunk-QYNWADPG.js.map → chunk-3PKL3V6F.js.map} +0 -0
  409. /package/dist/{chunk-UB5ZMTTU.js.map → chunk-3TLNWNFZ.js.map} +0 -0
  410. /package/dist/{chunk-AWQU5AAN.js.map → chunk-3YS4OWE3.js.map} +0 -0
  411. /package/dist/{chunk-F7PE3VRK.js.map → chunk-4FQCB4LB.js.map} +0 -0
  412. /package/dist/{chunk-U5T77DSF.js.map → chunk-4MW7KA47.js.map} +0 -0
  413. /package/dist/{chunk-J2QQLYVY.js.map → chunk-4ZMRPH3M.js.map} +0 -0
  414. /package/dist/{chunk-4YCBOVSQ.js.map → chunk-5BGNKOPP.js.map} +0 -0
  415. /package/dist/{chunk-WJ64Q54L.js.map → chunk-5CYUZQSB.js.map} +0 -0
  416. /package/dist/{chunk-ZSMILHO4.js.map → chunk-5KTF4QMV.js.map} +0 -0
  417. /package/dist/{chunk-FKELI7OS.js.map → chunk-6NTCRGOD.js.map} +0 -0
  418. /package/dist/{chunk-SNWJIIF7.js.map → chunk-6YBH2ELN.js.map} +0 -0
  419. /package/dist/{chunk-N5XWRUYE.js.map → chunk-B3ACYI7T.js.map} +0 -0
  420. /package/dist/{chunk-NDZIQGDE.js.map → chunk-B3KDZREG.js.map} +0 -0
  421. /package/dist/{chunk-ZQNYASQ3.js.map → chunk-BQA2DJF2.js.map} +0 -0
  422. /package/dist/{chunk-3SIHU3EE.js.map → chunk-C7GJUNNC.js.map} +0 -0
  423. /package/dist/{chunk-3JPDFNNH.js.map → chunk-CDX5QDO3.js.map} +0 -0
  424. /package/dist/{chunk-KWBTUWWQ.js.map → chunk-CFCUY6VA.js.map} +0 -0
  425. /package/dist/{chunk-5QRYKH3H.js.map → chunk-CMPHQVJ3.js.map} +0 -0
  426. /package/dist/{chunk-LG5NFDID.js.map → chunk-CQQCOU57.js.map} +0 -0
  427. /package/dist/{chunk-GCQYAEZT.js.map → chunk-DTTE663D.js.map} +0 -0
  428. /package/dist/{chunk-ZYN3TAUB.js.map → chunk-DXKUARQF.js.map} +0 -0
  429. /package/dist/{chunk-T5HMFMXH.js.map → chunk-ED7I5OM2.js.map} +0 -0
  430. /package/dist/{chunk-2P2OJKD4.js.map → chunk-FFOTUKBN.js.map} +0 -0
  431. /package/dist/{chunk-ACM63WPM.js.map → chunk-FIVDMRET.js.map} +0 -0
  432. /package/dist/{chunk-CKJF6K4L.js.map → chunk-G6E7F6VD.js.map} +0 -0
  433. /package/dist/{chunk-GUO7UC4X.js.map → chunk-GQACPN6J.js.map} +0 -0
  434. /package/dist/{chunk-77WJNWIC.js.map → chunk-IQRJNJQ7.js.map} +0 -0
  435. /package/dist/{chunk-L57LWMNE.js.map → chunk-IX5SV6J2.js.map} +0 -0
  436. /package/dist/{chunk-3OU6XE7X.js.map → chunk-J2G2I3PX.js.map} +0 -0
  437. /package/dist/{chunk-H4S6LSDA.js.map → chunk-JFSM3EOC.js.map} +0 -0
  438. /package/dist/{chunk-3ZGDRCSS.js.map → chunk-K3LPVMXD.js.map} +0 -0
  439. /package/dist/{chunk-GVPB75PC.js.map → chunk-KYNIBHVR.js.map} +0 -0
  440. /package/dist/{chunk-2WOUKCSC.js.map → chunk-L5SNHVLU.js.map} +0 -0
  441. /package/dist/{chunk-YMOAWXSE.js.map → chunk-LKFGJU72.js.map} +0 -0
  442. /package/dist/{chunk-AVVDKCFO.js.map → chunk-N2MBTATE.js.map} +0 -0
  443. /package/dist/{chunk-ZWH34WQJ.js.map → chunk-ND66GS24.js.map} +0 -0
  444. /package/dist/{chunk-MGPUZ7NZ.js.map → chunk-NN2HUS43.js.map} +0 -0
  445. /package/dist/{chunk-DIZ5Z4MN.js.map → chunk-NZXVTXZY.js.map} +0 -0
  446. /package/dist/{chunk-HZ2BCB3U.js.map → chunk-OO3VBBVN.js.map} +0 -0
  447. /package/dist/{chunk-C4UUGOR3.js.map → chunk-OSHTXKLJ.js.map} +0 -0
  448. /package/dist/{chunk-WUQZCGWG.js.map → chunk-OVQOV5YL.js.map} +0 -0
  449. /package/dist/{chunk-OMLHAQQX.js.map → chunk-PSN4ZR5Y.js.map} +0 -0
  450. /package/dist/{chunk-AGKLWKYY.js.map → chunk-Q5RU76HN.js.map} +0 -0
  451. /package/dist/{chunk-2A4DCZTX.js.map → chunk-Q5WADFQ7.js.map} +0 -0
  452. /package/dist/{chunk-6C4DCKHS.js.map → chunk-QWIPKY24.js.map} +0 -0
  453. /package/dist/{chunk-X66NETZL.js.map → chunk-QWSAKYH4.js.map} +0 -0
  454. /package/dist/{chunk-C6UF7BPK.js.map → chunk-QYLLXHLO.js.map} +0 -0
  455. /package/dist/{chunk-AYYYRHO3.js.map → chunk-R4TTPUH7.js.map} +0 -0
  456. /package/dist/{chunk-6S66UQ2X.js.map → chunk-RS25IVTP.js.map} +0 -0
  457. /package/dist/{chunk-MHQ5ZW5P.js.map → chunk-TMS24RKD.js.map} +0 -0
  458. /package/dist/{chunk-JX2ZVRE7.js.map → chunk-TMZVJ3SQ.js.map} +0 -0
  459. /package/dist/{chunk-45RIDSO6.js.map → chunk-TXP3DGU6.js.map} +0 -0
  460. /package/dist/{chunk-CNMNJMOT.js.map → chunk-UBIW2GE4.js.map} +0 -0
  461. /package/dist/{chunk-SYXJTCKS.js.map → chunk-UG5UQ72J.js.map} +0 -0
  462. /package/dist/{chunk-LDSS6RYC.js.map → chunk-VAYKULUJ.js.map} +0 -0
  463. /package/dist/{chunk-PFQTTYVH.js.map → chunk-VBP6CRNM.js.map} +0 -0
  464. /package/dist/{chunk-XELPL3XO.js.map → chunk-VJPSDB7M.js.map} +0 -0
  465. /package/dist/{chunk-RXSGIEA5.js.map → chunk-VLWFSFRL.js.map} +0 -0
  466. /package/dist/{chunk-75MI3G5H.js.map → chunk-VYBMEFCQ.js.map} +0 -0
  467. /package/dist/{chunk-K5TZIA6W.js.map → chunk-VZEIJSTF.js.map} +0 -0
  468. /package/dist/{chunk-234SEE75.js.map → chunk-X4KJVXDB.js.map} +0 -0
  469. /package/dist/{chunk-WSARYSM5.js.map → chunk-XK24ZBGA.js.map} +0 -0
  470. /package/dist/{chunk-WZHTDLX6.js.map → chunk-XWBNZAGY.js.map} +0 -0
  471. /package/dist/{chunk-PBWF2VXG.js.map → chunk-XWZP4WYZ.js.map} +0 -0
  472. /package/dist/{chunk-PR6I3UYE.js.map → chunk-XX25MIBS.js.map} +0 -0
  473. /package/dist/{chunk-BCCIFJSO.js.map → chunk-Y7NFXPZ2.js.map} +0 -0
  474. /package/dist/{chunk-3UDWOREZ.js.map → chunk-YLHYARJK.js.map} +0 -0
  475. /package/dist/{chunk-JLUYUNSV.js.map → chunk-Z4TZ527J.js.map} +0 -0
  476. /package/dist/{chunk-DKLTO4XS.js.map → chunk-ZAVH2YKN.js.map} +0 -0
  477. /package/dist/{chunk-NRNLLJCB.js.map → chunk-ZE37CBDF.js.map} +0 -0
  478. /package/dist/{chunk-H6Q7QK3C.js.map → chunk-ZM4ZOX7B.js.map} +0 -0
  479. /package/dist/{chunk-JQHOMFXA.js.map → chunk-ZSCJ6CT5.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{b as y}from"./chunk-Q3ALCPJN.js";import{d as p,e as v}from"./chunk-TSWZPJNS.js";import{a as n,v as u}from"./chunk-RZCU2MT3.js";import{b as l}from"./chunk-H2O4CVKF.js";import{a as r}from"./chunk-P37U34EQ.js";import O from"lodash.omit";import{jsx as C}from"react/jsx-runtime";function T({onSubmit:f,onSuccess:i,onError:s,render:w,...o}){let{components:E}=l(),{contractorOnboardingBag:e}=y(),a=p(),m=v(),{mutateAsyncOrThrow:g}=n(a),{mutateAsyncOrThrow:I}=n(m),c=e.employment?.contractor_type==="cor"&&!e.isEmploymentReadOnly,R=r(async()=>{try{if(await f?.(),c&&e.employmentId){let t=await I({employment_slug:e.employmentId});if(t?.data){await i?.({data:t,employmentStatus:"created_awaiting_reserve"}),e.refetchEmployment();return}}else if(e.employmentId){let t=await g({employment_id:e.employmentId});t&&(await i?.({data:t,employmentStatus:"invited"}),e.refetchEmployment())}}catch(t){u(t)?s?.(O(t,"response")):s?.({error:t,rawError:t,fieldErrors:[]})}},"handleSubmit"),d=E?.button;if(!d)throw new Error("Button component not found");let b=a.isPending||m.isPending||!e.canInvite||o.disabled;return C(d,{...o,disabled:b,onClick:t=>{R(),o.onClick?.(t)},children:w({status:c?"create_reserve":"invite"})})}r(T,"OnboardingInvite");export{T as a};
2
- //# sourceMappingURL=chunk-75MI3G5H.js.map
1
+ import{b as y}from"./chunk-Q3ALCPJN.js";import{d as p,e as v}from"./chunk-FJUUNJHY.js";import{b as n,w as u}from"./chunk-JXAAON7I.js";import{b as l}from"./chunk-H2O4CVKF.js";import{a as r}from"./chunk-P37U34EQ.js";import O from"lodash.omit";import{jsx as C}from"react/jsx-runtime";function T({onSubmit:f,onSuccess:i,onError:s,render:w,...o}){let{components:E}=l(),{contractorOnboardingBag:e}=y(),a=p(),m=v(),{mutateAsyncOrThrow:g}=n(a),{mutateAsyncOrThrow:I}=n(m),c=e.employment?.contractor_type==="cor"&&!e.isEmploymentReadOnly,R=r(async()=>{try{if(await f?.(),c&&e.employmentId){let t=await I({employment_slug:e.employmentId});if(t?.data){await i?.({data:t,employmentStatus:"created_awaiting_reserve"}),e.refetchEmployment();return}}else if(e.employmentId){let t=await g({employment_id:e.employmentId});t&&(await i?.({data:t,employmentStatus:"invited"}),e.refetchEmployment())}}catch(t){u(t)?s?.(O(t,"response")):s?.({error:t,rawError:t,fieldErrors:[]})}},"handleSubmit"),d=E?.button;if(!d)throw new Error("Button component not found");let b=a.isPending||m.isPending||!e.canInvite||o.disabled;return C(d,{...o,disabled:b,onClick:t=>{R(),o.onClick?.(t)},children:w({status:c?"create_reserve":"invite"})})}r(T,"OnboardingInvite");export{T as a};
2
+ //# sourceMappingURL=chunk-VYBMEFCQ.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-GVPB75PC.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function d({onSubmit:m}){let{terminationBag:o}=a(),r=i(async t=>{let n=await o?.parseFormValues(t);await m?.(n),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:r})}i(d,"PaidTimeOffForm");export{d as a};
2
- //# sourceMappingURL=chunk-K5TZIA6W.js.map
1
+ import{a as e}from"./chunk-KYNIBHVR.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function d({onSubmit:m}){let{terminationBag:o}=a(),r=i(async t=>{let n=await o?.parseFormValues(t);await m?.(n),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:r})}i(d,"PaidTimeOffForm");export{d as a};
2
+ //# sourceMappingURL=chunk-VZEIJSTF.js.map
@@ -0,0 +1,2 @@
1
+ import{k as b}from"./chunk-ER46UFIU.js";import{n as m,s as u}from"./chunk-JXAAON7I.js";import{b as g,e as f}from"./chunk-H2O4CVKF.js";import{a as e}from"./chunk-P37U34EQ.js";var L={disclaimerCostCalculator:4668194326797,engagingContractors:43161434169613,employeeOnboardingTimeline:4411262104589,extraPayments:4466822781709,germanyLaborLeasing:43002165606541,internationalPricing:4410698586893,pricingPlanOptions:43161720465421,ir35Status:42810224523917,remoteFxRate:33271144977421,terminationEmployeeCommunication:4411585179661,terminationNoticePeriods:5831900985613,involuntaryOffboardingServiceCharge:4406932229133,reconciliationInvoice:17604014808589},l=e(r=>`https://support.remote.com/hc/en-us/articles/${r}`,"buildZendeskURL");import{useQuery as w}from"@tanstack/react-query";var k=e((r,t)=>{let{client:i}=f();return w({queryKey:["zendesk-article",r],queryFn:e(async()=>{let n=await b({client:i,path:{id:Number(r)}});if(n.error)throw new Error(n.error.message||"Failed to fetch article");return n},"queryFn"),select:e(n=>{let o=n.data?.data.help_center_article;return o&&{...o,body:u(o.body||"")}},"select"),retry:!1,...t})},"useZendeskArticle");import{jsx as R}from"react/jsx-runtime";var C=e(({Trigger:r,zendeskId:t,open:i,onClose:n})=>{let{components:o}=g(),c=l(t),s=e(()=>{n?.()},"handleClose"),{data:a,isLoading:y,error:h}=k(t,{enabled:i}),p=o?.zendeskDrawer;if(!p)throw new Error("Zendesk drawer component not found");return R(p,{open:i,onClose:s,data:a,isLoading:y,error:h,zendeskURL:c,Trigger:r})},"ZendeskDrawer");import{useState as x}from"react";import{jsx as d}from"react/jsx-runtime";var Z="RemoteFlows__ZendeskTriggerButton text-blue-500 hover:underline inline-block text-xs bg-transparent border-none cursor-pointer p-0";function Q({zendeskId:r,className:t,onClick:i,children:n,external:o=!1}){let[c,s]=x(!1),a=e(()=>{o||s(!0),i?.(r)},"handleClick");return o?d("a",{href:l(r),target:"_blank",rel:"noopener noreferrer",onClick:a,className:m(Z,t),children:n}):d(C,{zendeskId:r,open:c,onClose:()=>s(!1),Trigger:d("button",{onClick:a,className:m(Z,t),children:n})})}e(Q,"ZendeskTriggerButton");export{L as a,Q as b};
2
+ //# sourceMappingURL=chunk-W4YDSTXA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/shared/zendesk-drawer/utils.ts","../src/components/shared/zendesk-drawer/api.ts","../src/components/shared/zendesk-drawer/ZendeskDrawer.tsx","../src/components/shared/zendesk-drawer/ZendeskTriggerButton.tsx"],"sourcesContent":["export const zendeskArticles = {\n /**\n * Disclaimer for Cost Calculator\n * Access: Private (Need Remote account to access)\n * https://support.remote.com/hc/en-us/articles/4668194326797\n */\n disclaimerCostCalculator: 4668194326797,\n /**\n * Guide for engaging contractors\n * Access: private (Need Remote account to access)\n * https://support.remote.com/hc/en-us/articles/43161434169613\n */\n engagingContractors: 43161434169613,\n /**\n * Employee Onboarding Timeline\n * Access: Private (Need Remote account to access)\n * https://support.remote.com/hc/en-us/articles/4411262104589\n */\n employeeOnboardingTimeline: 4411262104589,\n /**\n * Extra Payments\n * Access: Public (Everyone can access)\n * https://support.remote.com/hc/en-us/articles/4466822781709\n */\n extraPayments: 4466822781709,\n /**\n * Germany Labor Leasing\n * Access: Private (Need Remote account to access)\n * https://support.remote.com/hc/en-us/articles/43002165606541\n */\n germanyLaborLeasing: 43002165606541,\n /**\n * International Pricing\n * Access: Public (Everyone can access)\n * https://support.remote.com/hc/en-us/articles/4410698586893\n */\n internationalPricing: 4410698586893,\n /**\n * Pricing Plan Options\n * Access: Private (Need Remote account to access)\n * https://support.remote.com/hc/en-us/articles/43161720465421\n */\n pricingPlanOptions: 43161720465421,\n /**\n * IR35 Status\n * Access: Private (Need Remote account to access)\n * https://support.remote.com/hc/en-us/articles/42810224523917\n */\n ir35Status: 42810224523917,\n /**\n * Remote FX Rate\n * Access: Public (Everyone can access)\n * https://support.remote.com/hc/en-us/articles/33271144977421\n */\n remoteFxRate: 33271144977421,\n /**\n * Employee Communication for Terminations\n * Access: Public (Everyone can access)\n * https://support.remote.com/hc/en-us/articles/4411585179661\n */\n terminationEmployeeCommunication: 4411585179661,\n /**\n * Notice Period for Terminations by Country\n * Access: Public (Everyone can access)\n * https://support.remote.com/hc/en-us/articles/5831900985613\n */\n terminationNoticePeriods: 5831900985613,\n /**\n * Involuntary Offboarding Service Charge\n * Access: Private (Need Remote account to access)\n * https://support.remote.com/hc/en-us/articles/4406932229133\n */\n involuntaryOffboardingServiceCharge: 4406932229133,\n /**\n * Reconciliation Invoice\n * Access: Public (Everyone can access)\n * https://support.remote.com/hc/en-us/articles/17604014808589\n */\n reconciliationInvoice: 17604014808589,\n};\n\nexport const buildZendeskURL = (zendeskId: number) => {\n return `https://support.remote.com/hc/en-us/articles/${zendeskId}`;\n};\n","import { getV1HelpCenterArticlesId } from '@/src/client';\nimport { useClient } from '@/src/context';\nimport { sanitizeHtmlWithImageErrorHandling } from '@/src/lib/utils';\nimport { Client } from '@/src/client/client';\nimport { useQuery } from '@tanstack/react-query';\n\nexport const useZendeskArticle = (\n zendeskId: number | null,\n queryOptions?: { enabled?: boolean },\n) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['zendesk-article', zendeskId],\n queryFn: async () => {\n const response = await getV1HelpCenterArticlesId({\n client: client as Client,\n path: {\n id: Number(zendeskId),\n },\n });\n\n if (response.error) {\n throw new Error(response.error.message || 'Failed to fetch article');\n }\n\n return response;\n },\n select: (data) => {\n const article = data.data?.data.help_center_article;\n if (article) {\n return {\n ...article,\n body: sanitizeHtmlWithImageErrorHandling(article.body || ''),\n };\n }\n return article;\n },\n retry: false,\n ...queryOptions,\n });\n};\n","import { useZendeskArticle } from '@/src/components/shared/zendesk-drawer/api';\nimport { useFormFields } from '@/src/context';\nimport { buildZendeskURL } from '@/src/components/shared/zendesk-drawer/utils';\n\nexport type ZendeskDrawerProps = {\n Trigger: React.ReactElement;\n zendeskId: number;\n open: boolean;\n onClose: () => void;\n};\n\nexport const ZendeskDrawer = ({\n Trigger,\n zendeskId,\n open,\n onClose,\n}: ZendeskDrawerProps) => {\n const { components } = useFormFields();\n const zendeskURL = buildZendeskURL(zendeskId);\n\n const handleClose = () => {\n onClose?.();\n };\n\n const { data, isLoading, error } = useZendeskArticle(zendeskId, {\n enabled: open,\n });\n\n const CustomZendeskDrawer = components?.zendeskDrawer;\n\n if (!CustomZendeskDrawer) {\n throw new Error(`Zendesk drawer component not found`);\n }\n\n return (\n <CustomZendeskDrawer\n open={open}\n onClose={handleClose}\n data={data}\n isLoading={isLoading}\n error={error}\n zendeskURL={zendeskURL}\n Trigger={Trigger}\n />\n );\n};\n","import { cn } from '@/src/lib/utils';\nimport { ZendeskDrawer } from './ZendeskDrawer';\nimport { buildZendeskURL } from './utils';\nimport { useState } from 'react';\n\ninterface ZendeskTriggerButtonProps {\n /**\n * The Zendesk ID for the help article\n */\n zendeskId: number;\n /**\n * The class name for the button\n */\n className?: string;\n /**\n * The callback function to be called when the button is clicked\n */\n onClick?: (zendeskId: number) => void;\n /**\n * The children to be rendered inside the button\n */\n children?: React.ReactNode;\n /**\n * Whether to open the help article in a new tab\n */\n external?: boolean;\n}\n\nconst baseClassName =\n 'RemoteFlows__ZendeskTriggerButton text-blue-500 hover:underline inline-block text-xs bg-transparent border-none cursor-pointer p-0';\n\nexport function ZendeskTriggerButton({\n zendeskId,\n className,\n onClick,\n children,\n external = false,\n}: ZendeskTriggerButtonProps) {\n const [isOpen, setIsOpen] = useState(false);\n\n const handleClick = () => {\n if (!external) {\n setIsOpen(true);\n }\n onClick?.(zendeskId);\n };\n\n if (external) {\n return (\n <a\n href={buildZendeskURL(zendeskId)}\n target='_blank'\n rel='noopener noreferrer'\n onClick={handleClick}\n className={cn(baseClassName, className)}\n >\n {children}\n </a>\n );\n }\n\n return (\n <ZendeskDrawer\n zendeskId={zendeskId}\n open={isOpen}\n onClose={() => setIsOpen(false)}\n Trigger={\n <button onClick={handleClick} className={cn(baseClassName, className)}>\n {children}\n </button>\n }\n />\n );\n}\n"],"mappings":"8KAAO,IAAMA,EAAkB,CAM7B,yBAA0B,cAM1B,oBAAqB,eAMrB,2BAA4B,cAM5B,cAAe,cAMf,oBAAqB,eAMrB,qBAAsB,cAMtB,mBAAoB,eAMpB,WAAY,eAMZ,aAAc,eAMd,iCAAkC,cAMlC,yBAA0B,cAM1B,oCAAqC,cAMrC,sBAAuB,cACzB,EAEaC,EAAkBC,EAACC,GACvB,gDAAgDA,CAAS,GADnC,mBC7E/B,OAAS,YAAAC,MAAgB,wBAElB,IAAMC,EAAoBC,EAAA,CAC/BC,EACAC,IACG,CACH,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAS,CACd,SAAU,CAAC,kBAAmBJ,CAAS,EACvC,QAASD,EAAA,SAAY,CACnB,IAAMM,EAAW,MAAMC,EAA0B,CAC/C,OAAQJ,EACR,KAAM,CACJ,GAAI,OAAOF,CAAS,CACtB,CACF,CAAC,EAED,GAAIK,EAAS,MACX,MAAM,IAAI,MAAMA,EAAS,MAAM,SAAW,yBAAyB,EAGrE,OAAOA,CACT,EAbS,WAcT,OAAQN,EAACQ,GAAS,CAChB,IAAMC,EAAUD,EAAK,MAAM,KAAK,oBAChC,OAAIC,GACK,CACL,GAAGA,EACH,KAAMC,EAAmCD,EAAQ,MAAQ,EAAE,CAC7D,CAGJ,EATQ,UAUR,MAAO,GACP,GAAGP,CACL,CAAC,CACH,EAlCiC,qBC6B7B,cAAAS,MAAA,oBAxBG,IAAMC,EAAgBC,EAAA,CAAC,CAC5B,QAAAC,EACA,UAAAC,EACA,KAAAC,EACA,QAAAC,CACF,IAA0B,CACxB,GAAM,CAAE,WAAAC,CAAW,EAAIC,EAAc,EAC/BC,EAAaC,EAAgBN,CAAS,EAEtCO,EAAcT,EAAA,IAAM,CACxBI,IAAU,CACZ,EAFoB,eAId,CAAE,KAAAM,EAAM,UAAAC,EAAW,MAAAC,CAAM,EAAIC,EAAkBX,EAAW,CAC9D,QAASC,CACX,CAAC,EAEKW,EAAsBT,GAAY,cAExC,GAAI,CAACS,EACH,MAAM,IAAI,MAAM,oCAAoC,EAGtD,OACEhB,EAACgB,EAAA,CACC,KAAMX,EACN,QAASM,EACT,KAAMC,EACN,UAAWC,EACX,MAAOC,EACP,WAAYL,EACZ,QAASN,EACX,CAEJ,EAlC6B,iBCR7B,OAAS,YAAAc,MAAgB,QA8CnB,cAAAC,MAAA,oBArBN,IAAMC,EACJ,qIAEK,SAASC,EAAqB,CACnC,UAAAC,EACA,UAAAC,EACA,QAAAC,EACA,SAAAC,EACA,SAAAC,EAAW,EACb,EAA8B,CAC5B,GAAM,CAACC,EAAQC,CAAS,EAAIC,EAAS,EAAK,EAEpCC,EAAcC,EAAA,IAAM,CACnBL,GACHE,EAAU,EAAI,EAEhBJ,IAAUF,CAAS,CACrB,EALoB,eAOpB,OAAII,EAEAP,EAAC,KACC,KAAMa,EAAgBV,CAAS,EAC/B,OAAO,SACP,IAAI,sBACJ,QAASQ,EACT,UAAWG,EAAGb,EAAeG,CAAS,EAErC,SAAAE,EACH,EAKFN,EAACe,EAAA,CACC,UAAWZ,EACX,KAAMK,EACN,QAAS,IAAMC,EAAU,EAAK,EAC9B,QACET,EAAC,UAAO,QAASW,EAAa,UAAWG,EAAGb,EAAeG,CAAS,EACjE,SAAAE,EACH,EAEJ,CAEJ,CA1CgBM,EAAAV,EAAA","names":["zendeskArticles","buildZendeskURL","__name","zendeskId","useQuery","useZendeskArticle","__name","zendeskId","queryOptions","client","useClient","useQuery","response","getV1HelpCenterArticlesId","data","article","sanitizeHtmlWithImageErrorHandling","jsx","ZendeskDrawer","__name","Trigger","zendeskId","open","onClose","components","useFormFields","zendeskURL","buildZendeskURL","handleClose","data","isLoading","error","useZendeskArticle","CustomZendeskDrawer","useState","jsx","baseClassName","ZendeskTriggerButton","zendeskId","className","onClick","children","external","isOpen","setIsOpen","useState","handleClick","__name","buildZendeskURL","cn","ZendeskDrawer"]}
@@ -1,2 +1,2 @@
1
- import{a as y,b as d,c as p,d as R}from"./chunk-CNMNJMOT.js";import{a as w}from"./chunk-NRNLLJCB.js";import{m as _,n as i}from"./chunk-RZCU2MT3.js";import{a as m}from"./chunk-P37U34EQ.js";import{ChevronDown as A,Globe as N}from"lucide-react";import{useState as h}from"react";import{Fragment as C,jsx as e,jsxs as l}from"react/jsx-runtime";var v=m(s=>{if(s.length<2)return{currency:null,costsPerCountry:[],employeesCost:null};let o=s[0]?.employer_currency_costs.currency,c=s.reduce((r,t)=>{let a=t.country.name;return r[a]={country:t.country,monthlyTotal:(r[a]?.monthlyTotal||0)+t.employer_currency_costs.monthly_total,annualTotal:(r[a]?.annualTotal||0)+t.employer_currency_costs.annual_total},r},{}),n=Object.values(c).map(({country:r,monthlyTotal:t,annualTotal:a})=>({country:r,monthlyCost:i(t,o.code),annualCost:i(a,o.code)})),u={monthlyTotal:i(s.reduce((r,t)=>r+t.employer_currency_costs.monthly_total,0),o.code),annualTotal:i(s.reduce((r,t)=>r+t.employer_currency_costs.annual_total,0),o.code)};return{currency:o,costsPerCountry:n,employeesCost:u}},"useSummaryResults"),f=m(({currency:s,title:o})=>e("div",{className:"RemoteFlows__SummaryResults__Header flex items-center justify-between w-full",children:l("div",{className:"RemoteFlows__SummaryHeader__Container flex flex-row items-center gap-6",children:[e("div",{className:"RemoteFlows__SummaryHeader__IconContainer flex h-12 w-12 items-center justify-center rounded-lg bg-[#F4F4F5]",children:e(N,{className:"RemoteFlows__SummaryHeader__Icon h-6 w-6 text-[#000000]"})}),l("div",{className:"RemoteFlows__SummaryHeader__Content space-y-1",children:[e("h2",{className:"RemoteFlows__SummaryHeader__Title text-lg font-medium leading-none text-[#181818]",children:o}),l("p",{className:"RemoteFlows__SummaryHeader__Currency text-xs text-[#71717A]",children:["Employer billing currency: ",s.code]})]})]})}),"SummaryHeader"),g=m(({label:s,columns:o,rows:c,defaultValue:n="accordion",className:u})=>{let r=o.length===1?"grid-cols-2":"grid-cols-3";return e(y,{collapsible:!0,defaultValue:n,className:_("RemoteFlows__SummaryResults__MultiColumnAccordion w-full",u),children:l(d,{value:n,className:"RemoteFlows__SummaryResults__AccordionItem border-none",children:[e(p,{className:"RemoteFlows__SummaryResults__AccordionTrigger hover:no-underline px-0 py-3 [&>svg]:hidden group",children:l("div",{className:_("RemoteFlows__SummaryResults__AccordionHeader grid items-center w-full",r),children:[l("div",{className:"RemoteFlows__SummaryResults__AccordionHeader__LabelContainer flex items-center gap-2",children:[s,e(A,{className:"RemoteFlows__SummaryResults__ChevronDown h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:o[0]}):o.map((t,a)=>e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:t},a))]})}),e(R,{className:"RemoteFlows__SummaryResults__AccordionContent px-0 pb-4",children:e("div",{className:"RemoteFlows__SummaryResults__AccordionRows space-y-3",children:c.map((t,a)=>l("div",{className:_("RemoteFlows__SummaryResults__AccordionRow grid items-center",r),children:[e("div",{className:"flex items-center gap-2",children:t.label}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:t.values[0]}):t.values.map((F,x)=>e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:F},x))]},a))})})]})})},"MultiColumnAccordion"),S=m(({employeesCost:s})=>e(g,{label:e("span",{className:"RemoteFlows__CostForAllEmployees__Label text-sm font-medium text-[#0F172A]",children:"Cost for all employees"}),columns:["Total cost"],rows:[{label:l(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__MonthlyLabel text-sm text-[#09090B]",children:"Monthly cost"})]}),values:[s.monthlyTotal]},{label:l(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__AnnualLabel text-sm text-[#09090B]",children:"Annual cost"})]}),values:[s.annualTotal]}],defaultValue:"cost-breakdown"}),"CostForAllEmployees"),b=m(({costsPerCountry:s})=>e(g,{label:e("span",{className:"RemoteFlows__CostsPerCountry__Label text-sm font-medium text-[#0F172A]",children:"Cost per country"}),columns:["Monthly cost","Annual cost"],rows:s.map(o=>({label:l(C,{children:[e("span",{className:"RemoteFlows__CostsPerCountry__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostsPerCountry__CountryName text-sm text-[#09090B]",children:o.country.name})]}),values:[o.monthlyCost,o.annualCost]})),defaultValue:"country-breakdown"}),"CostsPerCountry"),k=m(({estimations:s})=>{let{currency:o,costsPerCountry:c,employeesCost:n}=v(s),[u,r]=h("summary");return!o||c.length===0||Object.keys(n).length===0?null:e(w,{className:"RemoteFlows__SummaryResults__Card p-10",children:e(y,{collapsible:!0,defaultValue:u,onValueChange:t=>r(t),className:"RemoteFlows__SummaryResults__Accordion w-full",children:l(d,{value:"summary",className:"RemoteFlows__SummaryResults__AccordionItem border-border",children:[e("div",{className:_("RemoteFlows__SummaryResults__AccordionTriggerContainer",{RemoteFlows__Separator:!!u}),children:e(p,{iconClassName:"size-6",className:"RemoteFlows__SummaryResults__MainAccordionTrigger hover:no-underline px-0 py-4",children:e(f,{currency:o,title:"Summary Overview"})})}),l(R,{className:"RemoteFlows__SummaryResults__MainAccordionContent px-0 pb-4 mt-6",children:[e("div",{className:"RemoteFlows__Separator",children:e(S,{employeesCost:n})}),e("div",{className:"RemoteFlows__SummaryResults__CostsPerCountryContainer mt-6",children:e(b,{costsPerCountry:c})})]})]})})})},"SummaryResults");export{k as a};
2
- //# sourceMappingURL=chunk-234SEE75.js.map
1
+ import{a as y,b as d,c as p,d as R}from"./chunk-UBIW2GE4.js";import{a as w}from"./chunk-ZE37CBDF.js";import{n as _,o as i}from"./chunk-JXAAON7I.js";import{a as m}from"./chunk-P37U34EQ.js";import{ChevronDown as A,Globe as N}from"lucide-react";import{useState as h}from"react";import{Fragment as C,jsx as e,jsxs as l}from"react/jsx-runtime";var v=m(s=>{if(s.length<2)return{currency:null,costsPerCountry:[],employeesCost:null};let o=s[0]?.employer_currency_costs.currency,c=s.reduce((r,t)=>{let a=t.country.name;return r[a]={country:t.country,monthlyTotal:(r[a]?.monthlyTotal||0)+t.employer_currency_costs.monthly_total,annualTotal:(r[a]?.annualTotal||0)+t.employer_currency_costs.annual_total},r},{}),n=Object.values(c).map(({country:r,monthlyTotal:t,annualTotal:a})=>({country:r,monthlyCost:i(t,o.code),annualCost:i(a,o.code)})),u={monthlyTotal:i(s.reduce((r,t)=>r+t.employer_currency_costs.monthly_total,0),o.code),annualTotal:i(s.reduce((r,t)=>r+t.employer_currency_costs.annual_total,0),o.code)};return{currency:o,costsPerCountry:n,employeesCost:u}},"useSummaryResults"),f=m(({currency:s,title:o})=>e("div",{className:"RemoteFlows__SummaryResults__Header flex items-center justify-between w-full",children:l("div",{className:"RemoteFlows__SummaryHeader__Container flex flex-row items-center gap-6",children:[e("div",{className:"RemoteFlows__SummaryHeader__IconContainer flex h-12 w-12 items-center justify-center rounded-lg bg-[#F4F4F5]",children:e(N,{className:"RemoteFlows__SummaryHeader__Icon h-6 w-6 text-[#000000]"})}),l("div",{className:"RemoteFlows__SummaryHeader__Content space-y-1",children:[e("h2",{className:"RemoteFlows__SummaryHeader__Title text-lg font-medium leading-none text-[#181818]",children:o}),l("p",{className:"RemoteFlows__SummaryHeader__Currency text-xs text-[#71717A]",children:["Employer billing currency: ",s.code]})]})]})}),"SummaryHeader"),g=m(({label:s,columns:o,rows:c,defaultValue:n="accordion",className:u})=>{let r=o.length===1?"grid-cols-2":"grid-cols-3";return e(y,{collapsible:!0,defaultValue:n,className:_("RemoteFlows__SummaryResults__MultiColumnAccordion w-full",u),children:l(d,{value:n,className:"RemoteFlows__SummaryResults__AccordionItem border-none",children:[e(p,{className:"RemoteFlows__SummaryResults__AccordionTrigger hover:no-underline px-0 py-3 [&>svg]:hidden group",children:l("div",{className:_("RemoteFlows__SummaryResults__AccordionHeader grid items-center w-full",r),children:[l("div",{className:"RemoteFlows__SummaryResults__AccordionHeader__LabelContainer flex items-center gap-2",children:[s,e(A,{className:"RemoteFlows__SummaryResults__ChevronDown h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:o[0]}):o.map((t,a)=>e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:t},a))]})}),e(R,{className:"RemoteFlows__SummaryResults__AccordionContent px-0 pb-4",children:e("div",{className:"RemoteFlows__SummaryResults__AccordionRows space-y-3",children:c.map((t,a)=>l("div",{className:_("RemoteFlows__SummaryResults__AccordionRow grid items-center",r),children:[e("div",{className:"flex items-center gap-2",children:t.label}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:t.values[0]}):t.values.map((F,x)=>e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:F},x))]},a))})})]})})},"MultiColumnAccordion"),S=m(({employeesCost:s})=>e(g,{label:e("span",{className:"RemoteFlows__CostForAllEmployees__Label text-sm font-medium text-[#0F172A]",children:"Cost for all employees"}),columns:["Total cost"],rows:[{label:l(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__MonthlyLabel text-sm text-[#09090B]",children:"Monthly cost"})]}),values:[s.monthlyTotal]},{label:l(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__AnnualLabel text-sm text-[#09090B]",children:"Annual cost"})]}),values:[s.annualTotal]}],defaultValue:"cost-breakdown"}),"CostForAllEmployees"),b=m(({costsPerCountry:s})=>e(g,{label:e("span",{className:"RemoteFlows__CostsPerCountry__Label text-sm font-medium text-[#0F172A]",children:"Cost per country"}),columns:["Monthly cost","Annual cost"],rows:s.map(o=>({label:l(C,{children:[e("span",{className:"RemoteFlows__CostsPerCountry__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostsPerCountry__CountryName text-sm text-[#09090B]",children:o.country.name})]}),values:[o.monthlyCost,o.annualCost]})),defaultValue:"country-breakdown"}),"CostsPerCountry"),k=m(({estimations:s})=>{let{currency:o,costsPerCountry:c,employeesCost:n}=v(s),[u,r]=h("summary");return!o||c.length===0||Object.keys(n).length===0?null:e(w,{className:"RemoteFlows__SummaryResults__Card p-10",children:e(y,{collapsible:!0,defaultValue:u,onValueChange:t=>r(t),className:"RemoteFlows__SummaryResults__Accordion w-full",children:l(d,{value:"summary",className:"RemoteFlows__SummaryResults__AccordionItem border-border",children:[e("div",{className:_("RemoteFlows__SummaryResults__AccordionTriggerContainer",{RemoteFlows__Separator:!!u}),children:e(p,{iconClassName:"size-6",className:"RemoteFlows__SummaryResults__MainAccordionTrigger hover:no-underline px-0 py-4",children:e(f,{currency:o,title:"Summary Overview"})})}),l(R,{className:"RemoteFlows__SummaryResults__MainAccordionContent px-0 pb-4 mt-6",children:[e("div",{className:"RemoteFlows__Separator",children:e(S,{employeesCost:n})}),e("div",{className:"RemoteFlows__SummaryResults__CostsPerCountryContainer mt-6",children:e(b,{costsPerCountry:c})})]})]})})})},"SummaryResults");export{k as a};
2
+ //# sourceMappingURL=chunk-X4KJVXDB.js.map
@@ -1,2 +1,2 @@
1
- import{a as S}from"./chunk-6S66UQ2X.js";import{a as e}from"./chunk-CW7CHRMN.js";import{a as s}from"./chunk-75MI3G5H.js";import{a as p}from"./chunk-DB4JHJ3Z.js";import{a as c}from"./chunk-FHW5CMN5.js";import{a as l}from"./chunk-KVUKJU5U.js";import{a as i}from"./chunk-H4S6LSDA.js";import{a as m}from"./chunk-ZSMILHO4.js";import{a as f}from"./chunk-ZWH34WQJ.js";import{a as u}from"./chunk-WJ64Q54L.js";import{a as d}from"./chunk-B6YWTMGV.js";import{a as n}from"./chunk-Q3ALCPJN.js";import{a}from"./chunk-I66TFXX4.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as I,useRef as F,useMemo as y}from"react";import{jsx as D}from"react/jsx-runtime";var J=t(({render:g,employmentId:C,externalId:b,countryCode:v,skipSteps:B,initialValues:O,options:w})=>{let P=I(),o=F(void 0),R=y(()=>({setValue:o}),[]),r=a({options:{...w,onContractReviewed:t(()=>{o.current&&o.current("review_completed",!0)},"onContractReviewed")},employmentId:C,externalId:b,countryCode:v,skipSteps:B,initialValues:O});return D(n.Provider,{value:{contractorOnboardingBag:r,formId:P,formRef:R},children:g({contractorOnboardingBag:r,components:{BasicInformationStep:m,SelectCountryStep:i,BackButton:e,SubmitButton:p,PricingPlanStep:c,EligibilityQuestionnaireStep:S,ContractDetailsStep:f,ContractPreviewStep:u,OnboardingInvite:s,ContractReviewButton:d,SaveDraftButton:l}})})},"ContractorOnboardingFlow");export{J as a};
2
- //# sourceMappingURL=chunk-WSARYSM5.js.map
1
+ import{a as S}from"./chunk-RS25IVTP.js";import{a as e}from"./chunk-CW7CHRMN.js";import{a as s}from"./chunk-VYBMEFCQ.js";import{a as p}from"./chunk-DB4JHJ3Z.js";import{a as c}from"./chunk-2LUPUTP6.js";import{a as l}from"./chunk-KVUKJU5U.js";import{a as i}from"./chunk-JFSM3EOC.js";import{a as m}from"./chunk-5KTF4QMV.js";import{a as f}from"./chunk-ND66GS24.js";import{a as u}from"./chunk-5CYUZQSB.js";import{a as d}from"./chunk-SVVZOMLQ.js";import{a as n}from"./chunk-Q3ALCPJN.js";import{a}from"./chunk-T35SZZ74.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as I,useRef as F,useMemo as y}from"react";import{jsx as D}from"react/jsx-runtime";var J=t(({render:g,employmentId:C,externalId:b,countryCode:v,skipSteps:B,initialValues:O,options:w})=>{let P=I(),o=F(void 0),R=y(()=>({setValue:o}),[]),r=a({options:{...w,onContractReviewed:t(()=>{o.current&&o.current("review_completed",!0)},"onContractReviewed")},employmentId:C,externalId:b,countryCode:v,skipSteps:B,initialValues:O});return D(n.Provider,{value:{contractorOnboardingBag:r,formId:P,formRef:R},children:g({contractorOnboardingBag:r,components:{BasicInformationStep:m,SelectCountryStep:i,BackButton:e,SubmitButton:p,PricingPlanStep:c,EligibilityQuestionnaireStep:S,ContractDetailsStep:f,ContractPreviewStep:u,OnboardingInvite:s,ContractReviewButton:d,SaveDraftButton:l}})})},"ContractorOnboardingFlow");export{J as a};
2
+ //# sourceMappingURL=chunk-XK24ZBGA.js.map
@@ -1,2 +1,2 @@
1
- import{m as e}from"./chunk-RZCU2MT3.js";import{a}from"./chunk-P37U34EQ.js";import*as i from"@radix-ui/react-radio-group";import{CircleIcon as d}from"lucide-react";import{jsx as o}from"react/jsx-runtime";function p({className:r,...t}){return o(i.Root,{"data-slot":"radio-group",className:e("grid gap-3",r),...t})}a(p,"RadioGroup");function l({className:r,...t}){return o(i.Item,{"data-slot":"radio-group-item",className:e("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),...t,children:o(i.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:o(d,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}a(l,"RadioGroupItem");export{p as a,l as b};
2
- //# sourceMappingURL=chunk-WZHTDLX6.js.map
1
+ import{n as e}from"./chunk-JXAAON7I.js";import{a}from"./chunk-P37U34EQ.js";import*as i from"@radix-ui/react-radio-group";import{CircleIcon as d}from"lucide-react";import{jsx as o}from"react/jsx-runtime";function p({className:r,...t}){return o(i.Root,{"data-slot":"radio-group",className:e("grid gap-3",r),...t})}a(p,"RadioGroup");function l({className:r,...t}){return o(i.Item,{"data-slot":"radio-group-item",className:e("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),...t,children:o(i.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:o(d,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}a(l,"RadioGroupItem");export{p as a,l as b};
2
+ //# sourceMappingURL=chunk-XWBNZAGY.js.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-KSHK3ZPX.js";import{m as r}from"./chunk-RZCU2MT3.js";import{b as e}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function p({children:u,...t}){let{form:m,formId:l,costCalculatorBag:c}=s(),{components:i}=e(),o=i?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:r("RemoteFlows__CostCalculatorForm__ResetButton",t.className),form:l,onClick:C=>{c?.resetForm(),m.reset(),t.onClick?.(C)},children:u})}n(p,"CostCalculatorResetButton");export{p as a};
2
- //# sourceMappingURL=chunk-PBWF2VXG.js.map
1
+ import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-JXAAON7I.js";import{b as e}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function p({children:u,...t}){let{form:m,formId:l,costCalculatorBag:c}=s(),{components:i}=e(),o=i?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:r("RemoteFlows__CostCalculatorForm__ResetButton",t.className),form:l,onClick:C=>{c?.resetForm(),m.reset(),t.onClick?.(C)},children:u})}n(p,"CostCalculatorResetButton");export{p as a};
2
+ //# sourceMappingURL=chunk-XWZP4WYZ.js.map
@@ -1,2 +1,2 @@
1
- import{q as t}from"./chunk-RZCU2MT3.js";import{b as m}from"./chunk-H2O4CVKF.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function f({title:o,description:r,severity:p}){let{components:a}=m(),n=a.statement;if(!n)throw new Error("Statement component not found");return s(n,{data:{title:o?t(o):void 0,description:t(r),severity:p}})}e(f,"Statement");export{f as a};
2
- //# sourceMappingURL=chunk-PR6I3UYE.js.map
1
+ import{r as t}from"./chunk-JXAAON7I.js";import{b as m}from"./chunk-H2O4CVKF.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function f({title:o,description:r,severity:p}){let{components:a}=m(),n=a.statement;if(!n)throw new Error("Statement component not found");return s(n,{data:{title:o?t(o):void 0,description:t(r),severity:p}})}e(f,"Statement");export{f as a};
2
+ //# sourceMappingURL=chunk-XX25MIBS.js.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-KSHK3ZPX.js";import{m as r}from"./chunk-RZCU2MT3.js";import{b as u}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function b({children:m,...t}){let{formId:e,costCalculatorBag:i}=s(),{components:l}=u(),o=l?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"submit",className:r("RemoteFlows__CostCalculatorForm__SubmitButton",t.className),form:e,disabled:t.disabled||i?.isSubmitting,children:m})}n(b,"CostCalculatorSubmitButton");export{b as a};
2
- //# sourceMappingURL=chunk-BCCIFJSO.js.map
1
+ import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-JXAAON7I.js";import{b as u}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function b({children:m,...t}){let{formId:e,costCalculatorBag:i}=s(),{components:l}=u(),o=l?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"submit",className:r("RemoteFlows__CostCalculatorForm__SubmitButton",t.className),form:e,disabled:t.disabled||i?.isSubmitting,children:m})}n(b,"CostCalculatorSubmitButton");export{b as a};
2
+ //# sourceMappingURL=chunk-Y7NFXPZ2.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-E3WR4SVV.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";var l=e(({currency:n,desiredCurrency:o,annual_gross_salary_conversion_properties:r,...a})=>i(s,{...a,sourceCurrency:n,targetCurrency:o,conversionFieldName:"annual_gross_salary_conversion",conversionProperties:{...r,description:r?.description||"Estimated amount. This is an estimation. We calculate conversions based on spot rates that are subject to fluctuation over time."},classNamePrefix:"RemoteFlows-AnnualGrossSalary",conversionType:"no_spread"}),"AnnualGrossSalary");export{l as a};
2
- //# sourceMappingURL=chunk-3UDWOREZ.js.map
1
+ import{a as s}from"./chunk-MXARM6PV.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";var l=e(({currency:n,desiredCurrency:o,annual_gross_salary_conversion_properties:r,...a})=>i(s,{...a,sourceCurrency:n,targetCurrency:o,conversionFieldName:"annual_gross_salary_conversion",conversionProperties:{...r,description:r?.description||"Estimated amount. This is an estimation. We calculate conversions based on spot rates that are subject to fluctuation over time."},classNamePrefix:"RemoteFlows-AnnualGrossSalary",conversionType:"no_spread"}),"AnnualGrossSalary");export{l as a};
2
+ //# sourceMappingURL=chunk-YLHYARJK.js.map
@@ -1,2 +1,2 @@
1
- import{b as p}from"./chunk-KFYWUBRS.js";import{a as F}from"./chunk-AVVDKCFO.js";import{f as l,h as f}from"./chunk-XG6ASTX5.js";import{g as u}from"./chunk-RZCU2MT3.js";import{b as _}from"./chunk-TVZAFTPT.js";import{a}from"./chunk-P37U34EQ.js";import{useEffect as w}from"react";import{jsx as r}from"react/jsx-runtime";var R=["effective_date","reason_for_change","reason_for_change_description","additional_comments","additional_comments_toggle"];function x({onSubmit:b,onError:m,onSuccess:A}){let{formId:C,contractAmendment:{checkFieldUpdates:h,fields:s,onSubmit:y,stepState:S,initialValues:i,handleValidation:g}}=_(),V=p(g),e=l({resolver:V,defaultValues:S.values?.form||i,shouldUnregister:!0,mode:"onBlur"});w(()=>{let t=e?.watch(o=>{(Object.keys(e.formState.dirtyFields).length>0||e.formState.isDirty)&&h(o)});return()=>t?.unsubscribe()},[]);let v=a(async t=>{let o=!1;for(let[c,P]of Object.entries(t))if(!R.includes(c)&&i[c]!==P){o=!0;break}if(!o)return m?.({message:"no_changes_detected_contract_details"});let d=await u(t,s,{isPartialValidation:!1});await b?.(d);let n=await y(t);n.error?m?.(n.error):await A?.(n.data)},"handleSubmit");return r(f,{...e,children:r("form",{id:C,"data-testid":"contract-amendment-form",onSubmit:e.handleSubmit(v),className:"space-y-4 RemoteFlows__ContractAmendmentForm",children:r(F,{fields:s})})})}a(x,"ContractAmendmentForm");export{x as a};
2
- //# sourceMappingURL=chunk-DCPBAFIN.js.map
1
+ import{b as p}from"./chunk-KFYWUBRS.js";import{a as F}from"./chunk-N2MBTATE.js";import{f as l,h as f}from"./chunk-5BU3CD2P.js";import{h as u}from"./chunk-JXAAON7I.js";import{b as _}from"./chunk-TVZAFTPT.js";import{a}from"./chunk-P37U34EQ.js";import{useEffect as w}from"react";import{jsx as r}from"react/jsx-runtime";var R=["effective_date","reason_for_change","reason_for_change_description","additional_comments","additional_comments_toggle"];function x({onSubmit:b,onError:s,onSuccess:A}){let{formId:C,contractAmendment:{checkFieldUpdates:h,fields:m,onSubmit:y,stepState:S,initialValues:i,handleValidation:V}}=_(),g=p(V),e=l({resolver:g,defaultValues:S.values?.form||i,shouldUnregister:!0,mode:"onBlur"});w(()=>{let t=e?.watch(o=>{(Object.keys(e.formState.dirtyFields).length>0||e.formState.isDirty)&&h(o)});return()=>t?.unsubscribe()},[]);let v=a(async t=>{let o=!1;for(let[c,P]of Object.entries(t))if(!R.includes(c)&&i[c]!==P){o=!0;break}if(!o)return s?.({message:"no_changes_detected_contract_details"});let d=await u(t,m,{isPartialValidation:!1});await b?.(d);let n=await y(t);n.error?s?.(n.error):await A?.(n.data)},"handleSubmit");return r(f,{...e,children:r("form",{id:C,"data-testid":"contract-amendment-form",onSubmit:e.handleSubmit(v),className:"space-y-4 RemoteFlows__ContractAmendmentForm",children:r(F,{fields:m})})})}a(x,"ContractAmendmentForm");export{x as a};
2
+ //# sourceMappingURL=chunk-YPVZUXVH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/ContractAmendment/ContractAmendmentForm.tsx"],"sourcesContent":["import {\n ContractAmendmentAutomatableResponse,\n PostV1ContractAmendmentsAutomatableError,\n} from '@/src/client';\nimport { JSONSchemaFormFields } from '@/src/components/form/JSONSchemaForm';\nimport { parseJSFToValidate } from '@/src/components/form/utils';\nimport { useJsonSchemasValidationFormResolver } from '@/src/components/form/validationResolver';\nimport { Form } from '@/src/components/ui/form';\nimport { useEffect } from 'react';\nimport { FieldValues, useForm } from 'react-hook-form';\nimport { useContractAmendmentContext } from './context';\n\ntype ContractAmendmentFormProps = {\n /**\n * Callback function to be called when the contract amendment form is submitted.\n * This function is called before the contract amendment is submitted.\n * It can be used to perform any additional validation or processing before\n * the contract amendment is submitted.\n * @param values\n * @returns\n */\n onSubmit?: (values: FieldValues) => void | Promise<void>;\n /**\n * Callback function to be called when the contract amendment fails.\n * @param error\n * @returns\n */\n onError?: (\n error:\n | PostV1ContractAmendmentsAutomatableError\n | { message: 'no_changes_detected_contract_details' },\n ) => void;\n /**\n * Callback function to be called when the contract amendment is successfully submitted.\n * This function is called after the contract amendment is submitted.\n * @param data\n * @returns\n */\n onSuccess?: (\n data: ContractAmendmentAutomatableResponse,\n ) => void | Promise<void>;\n};\n\nconst commonFields = [\n 'effective_date',\n 'reason_for_change',\n 'reason_for_change_description',\n 'additional_comments',\n 'additional_comments_toggle',\n] as const;\n\ntype CommonFields = (typeof commonFields)[number];\n\nexport function ContractAmendmentForm({\n onSubmit,\n onError,\n onSuccess,\n}: ContractAmendmentFormProps) {\n const {\n formId,\n contractAmendment: {\n checkFieldUpdates,\n fields,\n onSubmit: submitContractAmendment,\n stepState,\n initialValues,\n handleValidation,\n },\n } = useContractAmendmentContext();\n\n const resolver = useJsonSchemasValidationFormResolver(handleValidation);\n\n const form = useForm({\n resolver,\n defaultValues:\n // stepState.values is used as defaultValues for the form when the form is\n // rendered when clicking on the back button after the user has submitted the form\n // and the confirmation form is displayed.\n // This is because the form is unmounted when the user submits the form.\n stepState.values?.form || initialValues,\n shouldUnregister: true,\n mode: 'onBlur',\n });\n\n useEffect(() => {\n const subscription = form?.watch((values) => {\n const isFormDirty =\n Object.keys(form.formState.dirtyFields).length > 0 ||\n form.formState.isDirty;\n if (isFormDirty) {\n checkFieldUpdates(values);\n }\n });\n return () => subscription?.unsubscribe();\n // oxlint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const handleSubmit = async (values: FieldValues) => {\n let hasContractDetailsChanges = false;\n for (const [key, value] of Object.entries(values)) {\n if (\n !commonFields.includes(key as CommonFields) &&\n initialValues[key as keyof typeof initialValues] !== value\n ) {\n hasContractDetailsChanges = true;\n break;\n }\n }\n\n if (!hasContractDetailsChanges) {\n return onError?.({\n message: 'no_changes_detected_contract_details',\n });\n }\n\n const parsedValues = await parseJSFToValidate(values, fields, {\n isPartialValidation: false,\n });\n\n await onSubmit?.(parsedValues);\n\n const contractAmendmentResult = await submitContractAmendment(values);\n\n if (contractAmendmentResult.error) {\n onError?.(contractAmendmentResult.error);\n } else {\n await onSuccess?.(\n contractAmendmentResult.data as ContractAmendmentAutomatableResponse,\n );\n }\n };\n\n return (\n <Form {...form}>\n <form\n id={formId}\n data-testid='contract-amendment-form'\n onSubmit={form.handleSubmit(handleSubmit)}\n className='space-y-4 RemoteFlows__ContractAmendmentForm'\n >\n <JSONSchemaFormFields fields={fields} />\n </form>\n </Form>\n );\n}\n"],"mappings":"kPAQA,OAAS,aAAAA,MAAiB,QAoIlB,cAAAC,MAAA,oBAjGR,IAAMC,EAAe,CACnB,iBACA,oBACA,gCACA,sBACA,4BACF,EAIO,SAASC,EAAsB,CACpC,SAAAC,EACA,QAAAC,EACA,UAAAC,CACF,EAA+B,CAC7B,GAAM,CACJ,OAAAC,EACA,kBAAmB,CACjB,kBAAAC,EACA,OAAAC,EACA,SAAUC,EACV,UAAAC,EACA,cAAAC,EACA,iBAAAC,CACF,CACF,EAAIC,EAA4B,EAE1BC,EAAWC,EAAqCH,CAAgB,EAEhEI,EAAOC,EAAQ,CACnB,SAAAH,EACA,cAKEJ,EAAU,QAAQ,MAAQC,EAC5B,iBAAkB,GAClB,KAAM,QACR,CAAC,EAEDO,EAAU,IAAM,CACd,IAAMC,EAAeH,GAAM,MAAOI,GAAW,EAEzC,OAAO,KAAKJ,EAAK,UAAU,WAAW,EAAE,OAAS,GACjDA,EAAK,UAAU,UAEfT,EAAkBa,CAAM,CAE5B,CAAC,EACD,MAAO,IAAMD,GAAc,YAAY,CAEzC,EAAG,CAAC,CAAC,EAEL,IAAME,EAAeC,EAAA,MAAOF,GAAwB,CAClD,IAAIG,EAA4B,GAChC,OAAW,CAACC,EAAKC,CAAK,IAAK,OAAO,QAAQL,CAAM,EAC9C,GACE,CAACnB,EAAa,SAASuB,CAAmB,GAC1Cb,EAAca,CAAiC,IAAMC,EACrD,CACAF,EAA4B,GAC5B,KACF,CAGF,GAAI,CAACA,EACH,OAAOnB,IAAU,CACf,QAAS,sCACX,CAAC,EAGH,IAAMsB,EAAe,MAAMC,EAAmBP,EAAQZ,EAAQ,CAC5D,oBAAqB,EACvB,CAAC,EAED,MAAML,IAAWuB,CAAY,EAE7B,IAAME,EAA0B,MAAMnB,EAAwBW,CAAM,EAEhEQ,EAAwB,MAC1BxB,IAAUwB,EAAwB,KAAK,EAEvC,MAAMvB,IACJuB,EAAwB,IAC1B,CAEJ,EAjCqB,gBAmCrB,OACE5B,EAAC6B,EAAA,CAAM,GAAGb,EACR,SAAAhB,EAAC,QACC,GAAIM,EACJ,cAAY,0BACZ,SAAUU,EAAK,aAAaK,CAAY,EACxC,UAAU,+CAEV,SAAArB,EAAC8B,EAAA,CAAqB,OAAQtB,EAAQ,EACxC,EACF,CAEJ,CA3FgBc,EAAApB,EAAA","names":["useEffect","jsx","commonFields","ContractAmendmentForm","onSubmit","onError","onSuccess","formId","checkFieldUpdates","fields","submitContractAmendment","stepState","initialValues","handleValidation","useContractAmendmentContext","resolver","useJsonSchemasValidationFormResolver","form","useForm","useEffect","subscription","values","handleSubmit","__name","hasContractDetailsChanges","key","value","parsedValues","parseJSFToValidate","contractAmendmentResult","Form","JSONSchemaFormFields"]}
@@ -1,2 +1,2 @@
1
- import{m as t}from"./chunk-RZCU2MT3.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as a,jsxs as r}from"react/jsx-runtime";function m(n,o,i){return{"x-jsf-presentation":{inputType:"hidden",Component:e(()=>r("div",{className:t("RemoteFlows__InformationStatement",i?.className),children:[a("h3",{className:t("RemoteFlows__InformationStatement__Title"),children:n}),a("p",{className:t("RemoteFlows__InformationStatement__Description"),children:o})]}),"Component")}}}e(m,"createInformationField");function c({title:n,description:o,severity:i}){return{statement:{title:n,description:o,severity:i}}}e(c,"createStatementProperty");export{m as a,c as b};
2
- //# sourceMappingURL=chunk-JLUYUNSV.js.map
1
+ import{n as t}from"./chunk-JXAAON7I.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as a,jsxs as r}from"react/jsx-runtime";function m(n,o,i){return{"x-jsf-presentation":{inputType:"hidden",Component:e(()=>r("div",{className:t("RemoteFlows__InformationStatement",i?.className),children:[a("h3",{className:t("RemoteFlows__InformationStatement__Title"),children:n}),a("p",{className:t("RemoteFlows__InformationStatement__Description"),children:o})]}),"Component")}}}e(m,"createInformationField");function c({title:n,description:o,severity:i}){return{statement:{title:n,description:o,severity:i}}}e(c,"createStatementProperty");export{m as a,c as b};
2
+ //# sourceMappingURL=chunk-Z4TZ527J.js.map
@@ -1,2 +1,2 @@
1
- import{c as d,d as S}from"./chunk-AZZUFPQM.js";import{a as u}from"./chunk-HN5HLFTB.js";import{a as f}from"./chunk-KSHK3ZPX.js";import{b as C}from"./chunk-KFYWUBRS.js";import{f as y}from"./chunk-XG6ASTX5.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
2
- //# sourceMappingURL=chunk-4RF6I3TT.js.map
1
+ import{c as d,d as S}from"./chunk-DUJVDBY4.js";import{a as f}from"./chunk-KSHK3ZPX.js";import{a as u}from"./chunk-HN5HLFTB.js";import{b as C}from"./chunk-KFYWUBRS.js";import{f as y}from"./chunk-5BU3CD2P.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
2
+ //# sourceMappingURL=chunk-Z4USLCXF.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/flows/CostCalculator/CostCalculatorFlow.tsx"],"sourcesContent":["import React, { useEffect, useId, useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useJsonSchemasValidationFormResolver } from '@/src/components/form/validationResolver';\nimport { CostCalculatorContext } from '@/src/flows/CostCalculator/context';\nimport {\n CostCalculatorVersion,\n defaultEstimationOptions,\n useCostCalculator,\n} from '@/src/flows/CostCalculator/hooks';\nimport {\n CostCalculatorEstimationOptions,\n CurrencyKey,\n UseCostCalculatorOptions,\n} from '@/src/flows/CostCalculator/types';\nimport { BASE_RATES } from '@/src/flows/CostCalculator/constants';\n\nexport type CostCalculatorFlowProps = {\n /**\n * Estimation params allows you to customize the parameters sent to the /cost-calculator/estimation endpoint.\n */\n estimationOptions?: CostCalculatorEstimationOptions;\n /**\n * Default values for the form fields.\n */\n defaultValues?: Partial<\n {\n /**\n * Default value for the country field.\n */\n countryRegionSlug: string;\n /**\n * Default value for the currency field.\n */\n currencySlug: string;\n /**\n * Default value for the salary field.\n */\n salary: string;\n /**\n * Default value for the benefits field.\n */\n benefits: Record<string, string>;\n /**\n * Default value for the hiring budget field\n */\n hiringBudget: string;\n /**\n * Default value for the age field.\n */\n age: number;\n /**\n * Default value for the contract duration type field.\n */\n contractDurationType: 'fixed' | 'indefinite';\n /**\n * Default value for the management fee field.\n */\n management: {\n management_fee: string;\n };\n /**\n * Default value for the region field.\n */\n regionSlug: string;\n } & Record<string, unknown>\n >;\n options?: UseCostCalculatorOptions;\n render: (\n costCalculatorBag: ReturnType<typeof useCostCalculator>,\n ) => React.ReactNode;\n /**\n * Whether to include annual_gross_salary in the estimation payload\n */\n version?: CostCalculatorVersion;\n};\n\nconst getDefaultManagementFee = (\n baseRates: Record<CurrencyKey, number>,\n currency: CurrencyKey,\n managementFees?: Partial<Record<CurrencyKey, number>>,\n) => {\n if (managementFees && managementFees[currency]) {\n return managementFees[currency];\n }\n if (baseRates[currency]) {\n return baseRates[currency] / 100;\n }\n return 0;\n};\n\nconst getManagementFee = (\n currency: CurrencyKey,\n currencySlug?: string,\n management?: { management_fee: string },\n managementFees?: Partial<Record<CurrencyKey, number>>,\n) => {\n if (!currencySlug && !management?.management_fee && currency) {\n return getDefaultManagementFee(BASE_RATES, currency, managementFees);\n }\n if (currencySlug && !management?.management_fee) {\n return '';\n }\n\n return management?.management_fee;\n};\n\nexport const CostCalculatorFlow = ({\n estimationOptions = defaultEstimationOptions,\n defaultValues = {\n countryRegionSlug: '',\n regionSlug: '',\n currencySlug: '',\n salary: '',\n benefits: {},\n management: {\n management_fee: '',\n },\n },\n options,\n render,\n version = 'standard',\n}: CostCalculatorFlowProps) => {\n const formId = useId();\n const [currency, setCurrency] = useState<CurrencyKey>('USD');\n const onCurrencyChange = (currency: string) => {\n setCurrency(currency as CurrencyKey);\n const managementFee = getDefaultManagementFee(\n BASE_RATES,\n currency as CurrencyKey,\n estimationOptions.managementFees,\n );\n if (managementFee) {\n form.setValue('management.management_fee', managementFee.toString());\n }\n };\n const costCalculatorBag = useCostCalculator({\n defaultRegion: defaultValues.countryRegionSlug,\n defaultCurrency: defaultValues.currencySlug,\n defaultSalary: defaultValues.salary,\n estimationOptions,\n version,\n options: {\n ...options,\n onCurrencyChange: onCurrencyChange,\n },\n });\n const resolver = useJsonSchemasValidationFormResolver(\n costCalculatorBag.handleValidation,\n );\n\n const defaultManagementFee = getManagementFee(\n currency,\n defaultValues.currencySlug,\n defaultValues.management,\n estimationOptions.managementFees,\n );\n\n const {\n countryRegionSlug,\n currencySlug,\n salary,\n benefits,\n hiringBudget,\n age,\n contractDurationType,\n regionSlug,\n ...formDefaultValues\n } = defaultValues;\n\n const form = useForm({\n resolver,\n defaultValues: {\n country: countryRegionSlug,\n currency: currencySlug,\n region: regionSlug,\n salary: salary,\n salary_conversion: '',\n salary_converted: undefined,\n hiring_budget: hiringBudget || 'employee_annual_salary',\n age: age,\n contract_duration_type: contractDurationType,\n management: {\n management_fee: defaultManagementFee?.toString() || '',\n },\n benefits: benefits,\n estimation_title: estimationOptions.title,\n ...formDefaultValues,\n },\n shouldUnregister: false,\n mode: 'onBlur',\n });\n\n useEffect(() => {\n if (\n defaultValues.currencySlug &&\n costCalculatorBag.currencies &&\n estimationOptions.includeManagementFee &&\n !defaultValues.management?.management_fee\n ) {\n const currencyData = costCalculatorBag.currencies.find(\n (currency) => currency.value === defaultValues.currencySlug,\n );\n const currencyCode = currencyData?.label;\n if (currencyCode) {\n // WE NEED TO FIX: react-hooks/set-state-in-effect - Calling setState synchronously within an effect can trigger cascading renders\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setCurrency(currencyCode as CurrencyKey);\n const defaultManagementFee = getDefaultManagementFee(\n BASE_RATES,\n currencyCode as CurrencyKey,\n estimationOptions.managementFees,\n );\n form.setValue(\n 'management.management_fee',\n defaultManagementFee?.toString() || '',\n );\n }\n }\n }, [\n defaultValues.currencySlug,\n costCalculatorBag.currencies,\n estimationOptions.includeManagementFee,\n estimationOptions.managementFees,\n defaultValues.management?.management_fee,\n form,\n ]);\n\n return (\n <CostCalculatorContext.Provider\n value={{\n form,\n formId: formId,\n costCalculatorBag,\n }}\n >\n {render(costCalculatorBag)}\n </CostCalculatorContext.Provider>\n );\n};\n"],"mappings":"uPAAA,OAAgB,aAAAA,EAAW,SAAAC,EAAO,YAAAC,MAAgB,QAoO9C,cAAAC,MAAA,oBAxJJ,IAAMC,EAA0BC,EAAA,CAC9BC,EACAC,EACAC,IAEIA,GAAkBA,EAAeD,CAAQ,EACpCC,EAAeD,CAAQ,EAE5BD,EAAUC,CAAQ,EACbD,EAAUC,CAAQ,EAAI,IAExB,EAXuB,2BAc1BE,EAAmBJ,EAAA,CACvBE,EACAG,EACAC,EACAH,IAEI,CAACE,GAAgB,CAACC,GAAY,gBAAkBJ,EAC3CH,EAAwBQ,EAAYL,EAAUC,CAAc,EAEjEE,GAAgB,CAACC,GAAY,eACxB,GAGFA,GAAY,eAbI,oBAgBZE,EAAqBR,EAAA,CAAC,CACjC,kBAAAS,EAAoBC,EACpB,cAAAC,EAAgB,CACd,kBAAmB,GACnB,WAAY,GACZ,aAAc,GACd,OAAQ,GACR,SAAU,CAAC,EACX,WAAY,CACV,eAAgB,EAClB,CACF,EACA,QAAAC,EACA,OAAAC,EACA,QAAAC,EAAU,UACZ,IAA+B,CAC7B,IAAMC,EAASC,EAAM,EACf,CAACd,EAAUe,CAAW,EAAIC,EAAsB,KAAK,EACrDC,EAAmBnB,EAACE,GAAqB,CAC7Ce,EAAYf,CAAuB,EACnC,IAAMkB,EAAgBrB,EACpBQ,EACAL,EACAO,EAAkB,cACpB,EACIW,GACFC,EAAK,SAAS,4BAA6BD,EAAc,SAAS,CAAC,CAEvE,EAVyB,oBAWnBE,EAAoBC,EAAkB,CAC1C,cAAeZ,EAAc,kBAC7B,gBAAiBA,EAAc,aAC/B,cAAeA,EAAc,OAC7B,kBAAAF,EACA,QAAAK,EACA,QAAS,CACP,GAAGF,EACH,iBAAkBO,CACpB,CACF,CAAC,EACKK,EAAWC,EACfH,EAAkB,gBACpB,EAEMI,EAAuBtB,EAC3BF,EACAS,EAAc,aACdA,EAAc,WACdF,EAAkB,cACpB,EAEM,CACJ,kBAAAkB,EACA,aAAAtB,EACA,OAAAuB,EACA,SAAAC,EACA,aAAAC,EACA,IAAAC,EACA,qBAAAC,EACA,WAAAC,EACA,GAAGC,CACL,EAAIvB,EAEEU,EAAOc,EAAQ,CACnB,SAAAX,EACA,cAAe,CACb,QAASG,EACT,SAAUtB,EACV,OAAQ4B,EACR,OAAQL,EACR,kBAAmB,GACnB,iBAAkB,OAClB,cAAeE,GAAgB,yBAC/B,IAAKC,EACL,uBAAwBC,EACxB,WAAY,CACV,eAAgBN,GAAsB,SAAS,GAAK,EACtD,EACA,SAAUG,EACV,iBAAkBpB,EAAkB,MACpC,GAAGyB,CACL,EACA,iBAAkB,GAClB,KAAM,QACR,CAAC,EAED,OAAAE,EAAU,IAAM,CACd,GACEzB,EAAc,cACdW,EAAkB,YAClBb,EAAkB,sBAClB,CAACE,EAAc,YAAY,eAC3B,CAIA,IAAM0B,EAHef,EAAkB,WAAW,KAC/CpB,GAAaA,EAAS,QAAUS,EAAc,YACjD,GACmC,MACnC,GAAI0B,EAAc,CAGhBpB,EAAYoB,CAA2B,EACvC,IAAMX,EAAuB3B,EAC3BQ,EACA8B,EACA5B,EAAkB,cACpB,EACAY,EAAK,SACH,4BACAK,GAAsB,SAAS,GAAK,EACtC,CACF,CACF,CACF,EAAG,CACDf,EAAc,aACdW,EAAkB,WAClBb,EAAkB,qBAClBA,EAAkB,eAClBE,EAAc,YAAY,eAC1BU,CACF,CAAC,EAGCvB,EAACwC,EAAsB,SAAtB,CACC,MAAO,CACL,KAAAjB,EACA,OAAQN,EACR,kBAAAO,CACF,EAEC,SAAAT,EAAOS,CAAiB,EAC3B,CAEJ,EApIkC","names":["useEffect","useId","useState","jsx","getDefaultManagementFee","__name","baseRates","currency","managementFees","getManagementFee","currencySlug","management","BASE_RATES","CostCalculatorFlow","estimationOptions","defaultEstimationOptions","defaultValues","options","render","version","formId","useId","setCurrency","useState","onCurrencyChange","managementFee","form","costCalculatorBag","useCostCalculator","resolver","useJsonSchemasValidationFormResolver","defaultManagementFee","countryRegionSlug","salary","benefits","hiringBudget","age","contractDurationType","regionSlug","formDefaultValues","useForm","useEffect","currencyCode","CostCalculatorContext"]}
1
+ {"version":3,"sources":["../src/flows/CostCalculator/CostCalculatorFlow.tsx"],"sourcesContent":["import React, { useEffect, useId, useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useJsonSchemasValidationFormResolver } from '@/src/components/form/validationResolver';\nimport { CostCalculatorContext } from '@/src/flows/CostCalculator/context';\nimport {\n CostCalculatorVersion,\n defaultEstimationOptions,\n useCostCalculator,\n} from '@/src/flows/CostCalculator/hooks';\nimport {\n CostCalculatorEstimationOptions,\n CurrencyKey,\n UseCostCalculatorOptions,\n} from '@/src/flows/CostCalculator/types';\nimport { BASE_RATES } from '@/src/flows/CostCalculator/constants';\n\nexport type CostCalculatorFlowProps = {\n /**\n * Estimation params allows you to customize the parameters sent to the /cost-calculator/estimation endpoint.\n */\n estimationOptions?: CostCalculatorEstimationOptions;\n /**\n * Default values for the form fields.\n */\n defaultValues?: Partial<\n {\n /**\n * Default value for the country field.\n */\n countryRegionSlug: string;\n /**\n * Default value for the currency field.\n */\n currencySlug: string;\n /**\n * Default value for the salary field.\n */\n salary: string;\n /**\n * Default value for the benefits field.\n */\n benefits: Record<string, string>;\n /**\n * Default value for the hiring budget field\n */\n hiringBudget: string;\n /**\n * Default value for the age field.\n */\n age: number;\n /**\n * Default value for the contract duration type field.\n */\n contractDurationType: 'fixed' | 'indefinite';\n /**\n * Default value for the management fee field.\n */\n management: {\n management_fee: string;\n };\n /**\n * Default value for the region field.\n */\n regionSlug: string;\n } & Record<string, unknown>\n >;\n options?: UseCostCalculatorOptions;\n render: (\n costCalculatorBag: ReturnType<typeof useCostCalculator>,\n ) => React.ReactNode;\n /**\n * Whether to include annual_gross_salary in the estimation payload\n */\n version?: CostCalculatorVersion;\n};\n\nconst getDefaultManagementFee = (\n baseRates: Record<CurrencyKey, number>,\n currency: CurrencyKey,\n managementFees?: Partial<Record<CurrencyKey, number>>,\n) => {\n if (managementFees && managementFees[currency]) {\n return managementFees[currency];\n }\n if (baseRates[currency]) {\n return baseRates[currency] / 100;\n }\n return 0;\n};\n\nconst getManagementFee = (\n currency: CurrencyKey,\n currencySlug?: string,\n management?: { management_fee: string },\n managementFees?: Partial<Record<CurrencyKey, number>>,\n) => {\n if (!currencySlug && !management?.management_fee && currency) {\n return getDefaultManagementFee(BASE_RATES, currency, managementFees);\n }\n if (currencySlug && !management?.management_fee) {\n return '';\n }\n\n return management?.management_fee;\n};\n\nexport const CostCalculatorFlow = ({\n estimationOptions = defaultEstimationOptions,\n defaultValues = {\n countryRegionSlug: '',\n regionSlug: '',\n currencySlug: '',\n salary: '',\n benefits: {},\n management: {\n management_fee: '',\n },\n },\n options,\n render,\n version = 'standard',\n}: CostCalculatorFlowProps) => {\n const formId = useId();\n const [currency, setCurrency] = useState<CurrencyKey>('USD');\n const onCurrencyChange = (currency: string) => {\n setCurrency(currency as CurrencyKey);\n const managementFee = getDefaultManagementFee(\n BASE_RATES,\n currency as CurrencyKey,\n estimationOptions.managementFees,\n );\n if (managementFee) {\n form.setValue('management.management_fee', managementFee.toString());\n }\n };\n const costCalculatorBag = useCostCalculator({\n defaultRegion: defaultValues.countryRegionSlug,\n defaultCurrency: defaultValues.currencySlug,\n defaultSalary: defaultValues.salary,\n estimationOptions,\n version,\n options: {\n ...options,\n onCurrencyChange: onCurrencyChange,\n },\n });\n const resolver = useJsonSchemasValidationFormResolver(\n costCalculatorBag.handleValidation,\n );\n\n const defaultManagementFee = getManagementFee(\n currency,\n defaultValues.currencySlug,\n defaultValues.management,\n estimationOptions.managementFees,\n );\n\n const {\n countryRegionSlug,\n currencySlug,\n salary,\n benefits,\n hiringBudget,\n age,\n contractDurationType,\n regionSlug,\n ...formDefaultValues\n } = defaultValues;\n\n const form = useForm({\n resolver,\n defaultValues: {\n country: countryRegionSlug,\n currency: currencySlug,\n region: regionSlug,\n salary: salary,\n salary_conversion: '',\n salary_converted: undefined,\n hiring_budget: hiringBudget || 'employee_annual_salary',\n age: age,\n contract_duration_type: contractDurationType,\n management: {\n management_fee: defaultManagementFee?.toString() || '',\n },\n benefits: benefits,\n estimation_title: estimationOptions.title,\n ...formDefaultValues,\n },\n shouldUnregister: false,\n mode: 'onBlur',\n });\n\n useEffect(() => {\n if (\n defaultValues.currencySlug &&\n costCalculatorBag.currencies &&\n estimationOptions.includeManagementFee &&\n !defaultValues.management?.management_fee\n ) {\n const currencyData = costCalculatorBag.currencies.find(\n (currency) => currency.value === defaultValues.currencySlug,\n );\n const currencyCode = currencyData?.label;\n if (currencyCode) {\n // WE NEED TO FIX: react-hooks/set-state-in-effect - Calling setState synchronously within an effect can trigger cascading renders\n // oxlint-disable-next-line react-hooks/set-state-in-effect\n setCurrency(currencyCode as CurrencyKey);\n const defaultManagementFee = getDefaultManagementFee(\n BASE_RATES,\n currencyCode as CurrencyKey,\n estimationOptions.managementFees,\n );\n form.setValue(\n 'management.management_fee',\n defaultManagementFee?.toString() || '',\n );\n }\n }\n }, [\n defaultValues.currencySlug,\n costCalculatorBag.currencies,\n estimationOptions.includeManagementFee,\n estimationOptions.managementFees,\n defaultValues.management?.management_fee,\n form,\n ]);\n\n return (\n <CostCalculatorContext.Provider\n value={{\n form,\n formId: formId,\n costCalculatorBag,\n }}\n >\n {render(costCalculatorBag)}\n </CostCalculatorContext.Provider>\n );\n};\n"],"mappings":"uPAAA,OAAgB,aAAAA,EAAW,SAAAC,EAAO,YAAAC,MAAgB,QAoO9C,cAAAC,MAAA,oBAxJJ,IAAMC,EAA0BC,EAAA,CAC9BC,EACAC,EACAC,IAEIA,GAAkBA,EAAeD,CAAQ,EACpCC,EAAeD,CAAQ,EAE5BD,EAAUC,CAAQ,EACbD,EAAUC,CAAQ,EAAI,IAExB,EAXuB,2BAc1BE,EAAmBJ,EAAA,CACvBE,EACAG,EACAC,EACAH,IAEI,CAACE,GAAgB,CAACC,GAAY,gBAAkBJ,EAC3CH,EAAwBQ,EAAYL,EAAUC,CAAc,EAEjEE,GAAgB,CAACC,GAAY,eACxB,GAGFA,GAAY,eAbI,oBAgBZE,EAAqBR,EAAA,CAAC,CACjC,kBAAAS,EAAoBC,EACpB,cAAAC,EAAgB,CACd,kBAAmB,GACnB,WAAY,GACZ,aAAc,GACd,OAAQ,GACR,SAAU,CAAC,EACX,WAAY,CACV,eAAgB,EAClB,CACF,EACA,QAAAC,EACA,OAAAC,EACA,QAAAC,EAAU,UACZ,IAA+B,CAC7B,IAAMC,EAASC,EAAM,EACf,CAACd,EAAUe,CAAW,EAAIC,EAAsB,KAAK,EACrDC,EAAmBnB,EAACE,GAAqB,CAC7Ce,EAAYf,CAAuB,EACnC,IAAMkB,EAAgBrB,EACpBQ,EACAL,EACAO,EAAkB,cACpB,EACIW,GACFC,EAAK,SAAS,4BAA6BD,EAAc,SAAS,CAAC,CAEvE,EAVyB,oBAWnBE,EAAoBC,EAAkB,CAC1C,cAAeZ,EAAc,kBAC7B,gBAAiBA,EAAc,aAC/B,cAAeA,EAAc,OAC7B,kBAAAF,EACA,QAAAK,EACA,QAAS,CACP,GAAGF,EACH,iBAAkBO,CACpB,CACF,CAAC,EACKK,EAAWC,EACfH,EAAkB,gBACpB,EAEMI,EAAuBtB,EAC3BF,EACAS,EAAc,aACdA,EAAc,WACdF,EAAkB,cACpB,EAEM,CACJ,kBAAAkB,EACA,aAAAtB,EACA,OAAAuB,EACA,SAAAC,EACA,aAAAC,EACA,IAAAC,EACA,qBAAAC,EACA,WAAAC,EACA,GAAGC,CACL,EAAIvB,EAEEU,EAAOc,EAAQ,CACnB,SAAAX,EACA,cAAe,CACb,QAASG,EACT,SAAUtB,EACV,OAAQ4B,EACR,OAAQL,EACR,kBAAmB,GACnB,iBAAkB,OAClB,cAAeE,GAAgB,yBAC/B,IAAKC,EACL,uBAAwBC,EACxB,WAAY,CACV,eAAgBN,GAAsB,SAAS,GAAK,EACtD,EACA,SAAUG,EACV,iBAAkBpB,EAAkB,MACpC,GAAGyB,CACL,EACA,iBAAkB,GAClB,KAAM,QACR,CAAC,EAED,OAAAE,EAAU,IAAM,CACd,GACEzB,EAAc,cACdW,EAAkB,YAClBb,EAAkB,sBAClB,CAACE,EAAc,YAAY,eAC3B,CAIA,IAAM0B,EAHef,EAAkB,WAAW,KAC/CpB,GAAaA,EAAS,QAAUS,EAAc,YACjD,GACmC,MACnC,GAAI0B,EAAc,CAGhBpB,EAAYoB,CAA2B,EACvC,IAAMX,EAAuB3B,EAC3BQ,EACA8B,EACA5B,EAAkB,cACpB,EACAY,EAAK,SACH,4BACAK,GAAsB,SAAS,GAAK,EACtC,CACF,CACF,CACF,EAAG,CACDf,EAAc,aACdW,EAAkB,WAClBb,EAAkB,qBAClBA,EAAkB,eAClBE,EAAc,YAAY,eAC1BU,CACF,CAAC,EAGCvB,EAACwC,EAAsB,SAAtB,CACC,MAAO,CACL,KAAAjB,EACA,OAAQN,EACR,kBAAAO,CACF,EAEC,SAAAT,EAAOS,CAAiB,EAC3B,CAEJ,EApIkC","names":["useEffect","useId","useState","jsx","getDefaultManagementFee","__name","baseRates","currency","managementFees","getManagementFee","currencySlug","management","BASE_RATES","CostCalculatorFlow","estimationOptions","defaultEstimationOptions","defaultValues","options","render","version","formId","useId","setCurrency","useState","onCurrencyChange","managementFee","form","costCalculatorBag","useCostCalculator","resolver","useJsonSchemasValidationFormResolver","defaultManagementFee","countryRegionSlug","salary","benefits","hiringBudget","age","contractDurationType","regionSlug","formDefaultValues","useForm","useEffect","currencyCode","CostCalculatorContext"]}
@@ -1,2 +1,2 @@
1
- import{b as p}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-AVVDKCFO.js";import{h as C}from"./chunk-XG6ASTX5.js";import{b as f,t as E}from"./chunk-RZCU2MT3.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as n}from"react/jsx-runtime";function T({onSubmit:S,onError:w,onSuccess:y,onErrorWithFields:u,shouldResetForm:c,resetFields:a}){let{form:e,formId:V,costCalculatorBag:o}=p(),{formState:{isSubmitSuccessful:s}}=e;R(()=>{if(s&&c){o?.resetForm(),e.reset();return}if(s&&a){let t={...e.getValues()};a.forEach(r=>{t[r]=""}),o?.resetForm(),e.reset(t)}},[s,e,c,o,a]);let b=m(async d=>{try{let t=await o?.parseFormValues(d);o?.meta?.fields&&(o.meta.fields=E(t,o.fields),o.meta.fields.employer_currency_slug=o.meta.fields.currency);let r=await o?.onSubmit(t);if(await S?.(t),r?.data&&!r.error){let i={data:{...r.data.data,employments:r.data.data.employments?.map(l=>({...l,title:t.estimation_title}))}};await y?.(i)}else throw{data:null,error:r?.error,fieldErrors:r?.fieldErrors,rawError:r?.rawError}}catch(t){let r=t,i=r.fieldErrors;if(u){let l=o?.meta?.fields,h=f(i,l);u({error:r.error,rawError:r.rawError,fieldErrors:h})}else w?.(r.error)}},"handleSubmit");return n(C,{...e,children:n("form",{id:V,onSubmit:e.handleSubmit(b),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:n(F,{fields:o?.fields??[]})})})}m(T,"CostCalculatorForm");export{T as a};
2
- //# sourceMappingURL=chunk-DKLTO4XS.js.map
1
+ import{b as p}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-N2MBTATE.js";import{h as C}from"./chunk-5BU3CD2P.js";import{c as f,u as E}from"./chunk-JXAAON7I.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as n}from"react/jsx-runtime";function T({onSubmit:S,onError:w,onSuccess:y,onErrorWithFields:u,shouldResetForm:c,resetFields:a}){let{form:e,formId:V,costCalculatorBag:o}=p(),{formState:{isSubmitSuccessful:s}}=e;R(()=>{if(s&&c){o?.resetForm(),e.reset();return}if(s&&a){let t={...e.getValues()};a.forEach(r=>{t[r]=""}),o?.resetForm(),e.reset(t)}},[s,e,c,o,a]);let b=m(async d=>{try{let t=await o?.parseFormValues(d);o?.meta?.fields&&(o.meta.fields=E(t,o.fields),o.meta.fields.employer_currency_slug=o.meta.fields.currency);let r=await o?.onSubmit(t);if(await S?.(t),r?.data&&!r.error){let i={data:{...r.data.data,employments:r.data.data.employments?.map(l=>({...l,title:t.estimation_title}))}};await y?.(i)}else throw{data:null,error:r?.error,fieldErrors:r?.fieldErrors,rawError:r?.rawError}}catch(t){let r=t,i=r.fieldErrors;if(u){let l=o?.meta?.fields,h=f(i,l);u({error:r.error,rawError:r.rawError,fieldErrors:h})}else w?.(r.error)}},"handleSubmit");return n(C,{...e,children:n("form",{id:V,onSubmit:e.handleSubmit(b),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:n(F,{fields:o?.fields??[]})})})}m(T,"CostCalculatorForm");export{T as a};
2
+ //# sourceMappingURL=chunk-ZAVH2YKN.js.map
@@ -0,0 +1,2 @@
1
+ import{a as _}from"./chunk-5WIBTOCI.js";import{a as h}from"./chunk-F2ENM2JE.js";import{a as l}from"./chunk-QHZPSH52.js";import{A as y,S as f,_ as C,y as p}from"./chunk-ER46UFIU.js";import{e as c}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useMutation as F}from"@tanstack/react-query";import{useQuery as u}from"@tanstack/react-query";var b=n(e=>{let{client:o}=c();return u({...e,queryKey:["company-currencies"],retry:!1,queryFn:n(async()=>{let r=await f({client:o});if(r.error||!r.data)throw new Error("Failed to fetch company currencies");return r},"queryFn"),select:n(({data:r})=>r?.data?.company_currencies.map(t=>({value:t.code,label:t.code}))||[],"select")})},"useCompanyCurrencies"),A=n(()=>{let{client:e}=c();return F({mutationFn:n(o=>C({client:e,headers:{Authorization:""},body:o,query:{action:"send_create_password_email"}}),"mutationFn")})},"useCreateCompanyRequest"),I=n(()=>{let{client:e}=c();return F({mutationFn:n(({companyId:o,payload:r,jsonSchemaVersion:t})=>p({client:e,headers:{Authorization:""},path:{company_id:o},body:r,query:{address_details_json_schema_version:t}}),"mutationFn")})},"useUpdateCompanyRequest"),P=n(e=>{let{client:o}=c(),{data:r,isLoading:t}=u({...h(o,"create-company-countries"),select:n(i=>i.data?.data?.filter(s=>s.eor_onboarding).map(s=>({label:s.name,value:s.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),{data:a,isLoading:m}=b(e?.queryOptions),d=l(_.data.schema,{},e);if(r){let i=d.fields.find(s=>s.name==="country_code");i&&(i.options=r)}if(a){let i=d.fields.find(s=>s.name==="desired_currency");i&&(i.options=a)}return{isLoading:t||m,companyBasicInformationForm:d}},"useCountriesSchemaField"),z=n(({countryCode:e,fieldValues:o,options:r})=>{let{client:t}=c();return u({queryKey:["company-address-details-schema",e],retry:!1,queryFn:n(async()=>{if(!e)throw new Error("Country code is required");let a=await y({client:t,headers:{Authorization:""},path:{country_code:e,form:"address_details"},query:{json_schema_version:r?.jsonSchemaVersion?.form_schema?.address_details||"latest"}});if(a.error||!a.data)throw new Error("Failed to fetch address details schema");return a},"queryFn"),enabled:r?.queryOptions?.enabled&&!!e,select:n(({data:a})=>{let m=a?.data||{};return l(m,o,r)},"select")})},"useAddressDetailsSchema");export{A as a,I as b,P as c,z as d};
2
+ //# sourceMappingURL=chunk-ZAZ24JS2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/CreateCompany/api.ts"],"sourcesContent":["import { useMutation } from '@tanstack/react-query';\nimport { useClient } from '@/src/context';\nimport { Client } from '@/src/client/client';\nimport { FieldValues } from 'react-hook-form';\nimport { FlowOptions } from '@/src/flows/types';\nimport { createHeadlessForm } from '@/src/common/createHeadlessForm';\nimport { companyBasicInformationStepSchema } from '@/src/flows/CreateCompany/json-schemas/companyBasicInformationStep';\nimport { useQuery } from '@tanstack/react-query';\nimport { getV1CompanyCurrencies } from '@/src/client';\nimport { countriesOptions } from '@/src/common/api/countries';\nimport {\n CreateCompanyParams,\n getV1CountriesCountryCodeForm,\n postV1Companies,\n patchV1CompaniesCompanyId2,\n UpdateCompanyParams,\n} from '@/src/client';\n\n/**\n * Hook to fetch company currencies\n * @param queryOptions - Query options including enabled flag\n * @returns Query result with currencies formatted for select dropdown\n */\nconst useCompanyCurrencies = (queryOptions?: { enabled?: boolean }) => {\n const { client } = useClient();\n return useQuery({\n ...queryOptions,\n queryKey: ['company-currencies'],\n retry: false,\n queryFn: async () => {\n const response = await getV1CompanyCurrencies({\n client: client as Client,\n });\n\n if (response.error || !response.data) {\n throw new Error('Failed to fetch company currencies');\n }\n\n return response;\n },\n select: ({ data }) => {\n return (\n data?.data?.company_currencies.map((currency) => ({\n value: currency.code,\n label: currency.code,\n })) || []\n );\n },\n });\n};\n\n/**\n * Hook to create a company\n * @returns Mutation hook for creating a company\n */\nexport const useCreateCompanyRequest = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: (payload: CreateCompanyParams) => {\n return postV1Companies({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n body: payload,\n query: {\n action: 'send_create_password_email',\n },\n });\n },\n });\n};\n\n/**\n * Hook to update a company\n * @returns Mutation hook for updating a company\n */\nexport const useUpdateCompanyRequest = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: ({\n companyId,\n payload,\n jsonSchemaVersion,\n }: {\n companyId: string;\n payload: UpdateCompanyParams;\n jsonSchemaVersion?: number | 'latest';\n }) => {\n return patchV1CompaniesCompanyId2({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n path: {\n company_id: companyId,\n },\n body: payload,\n query: {\n address_details_json_schema_version: jsonSchemaVersion,\n },\n });\n },\n });\n};\n\n/**\n * Hook to create the select country form with populated country and currency options\n * @param options - Flow options including jsfModify and queryOptions\n * @returns Form with populated country and currency fields, and loading state\n */\nexport const useCountriesSchemaField = (\n options?: Omit<FlowOptions, 'jsonSchemaVersion'> & {\n queryOptions?: { enabled?: boolean };\n },\n) => {\n const { client } = useClient();\n const { data: countries, isLoading: isLoadingCountries } = useQuery({\n ...countriesOptions(client as Client, 'create-company-countries'),\n select: (response) => {\n return (\n response.data?.data\n ?.filter((country) => country.eor_onboarding)\n .map((country) => ({\n label: country.name,\n value: country.code,\n })) || []\n );\n },\n enabled: options?.queryOptions?.enabled,\n });\n const { data: currencies, isLoading: isLoadingCurrencies } =\n useCompanyCurrencies(options?.queryOptions);\n\n const companyBasicInformationForm = createHeadlessForm(\n companyBasicInformationStepSchema.data.schema,\n {},\n options,\n );\n\n if (countries) {\n const countryField = companyBasicInformationForm.fields.find(\n (field) => field.name === 'country_code',\n );\n if (countryField) {\n countryField.options = countries;\n }\n }\n\n if (currencies) {\n const currencyField = companyBasicInformationForm.fields.find(\n (field) => field.name === 'desired_currency',\n );\n if (currencyField) {\n currencyField.options = currencies;\n }\n }\n\n return {\n isLoading: isLoadingCountries || isLoadingCurrencies,\n companyBasicInformationForm,\n };\n};\n\n/**\n * Hook to fetch address details schema for a given country\n * @param countryCode - The country code to fetch schema for\n * @param fieldValues - Current field values for the form\n * @param options - Flow options including jsfModify and queryOptions\n * @returns Query result with address details form schema\n */\nexport const useAddressDetailsSchema = ({\n countryCode,\n fieldValues,\n options,\n}: {\n countryCode: string | null;\n fieldValues: FieldValues;\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } };\n}) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['company-address-details-schema', countryCode],\n retry: false,\n queryFn: async () => {\n if (!countryCode) {\n throw new Error('Country code is required');\n }\n const response = await getV1CountriesCountryCodeForm({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n path: {\n country_code: countryCode,\n form: 'address_details',\n },\n query: {\n json_schema_version:\n options?.jsonSchemaVersion?.form_schema?.address_details ||\n 'latest',\n },\n });\n\n if (response.error || !response.data) {\n throw new Error('Failed to fetch address details schema');\n }\n\n return response;\n },\n enabled: options?.queryOptions?.enabled && !!countryCode,\n select: ({ data }) => {\n const jsfSchema = data?.data || {};\n return createHeadlessForm(jsfSchema, fieldValues, options);\n },\n });\n};\n"],"mappings":"qQAAA,OAAS,eAAAA,MAAmB,wBAO5B,OAAS,YAAAC,MAAgB,wBAgBzB,IAAMC,EAAuBC,EAACC,GAAyC,CACrE,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAS,CACd,GAAGH,EACH,SAAU,CAAC,oBAAoB,EAC/B,MAAO,GACP,QAASD,EAAA,SAAY,CACnB,IAAMK,EAAW,MAAMC,EAAuB,CAC5C,OAAQJ,CACV,CAAC,EAED,GAAIG,EAAS,OAAS,CAACA,EAAS,KAC9B,MAAM,IAAI,MAAM,oCAAoC,EAGtD,OAAOA,CACT,EAVS,WAWT,OAAQL,EAAA,CAAC,CAAE,KAAAO,CAAK,IAEZA,GAAM,MAAM,mBAAmB,IAAKC,IAAc,CAChD,MAAOA,EAAS,KAChB,MAAOA,EAAS,IAClB,EAAE,GAAK,CAAC,EALJ,SAQV,CAAC,CACH,EA1B6B,wBAgChBC,EAA0BT,EAAA,IAAM,CAC3C,GAAM,CAAE,OAAAE,CAAO,EAAIC,EAAU,EAC7B,OAAOO,EAAY,CACjB,WAAYV,EAACW,GACJC,EAAgB,CACrB,OAAQV,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAMS,EACN,MAAO,CACL,OAAQ,4BACV,CACF,CAAC,EAVS,aAYd,CAAC,CACH,EAhBuC,2BAsB1BE,EAA0Bb,EAAA,IAAM,CAC3C,GAAM,CAAE,OAAAE,CAAO,EAAIC,EAAU,EAC7B,OAAOO,EAAY,CACjB,WAAYV,EAAA,CAAC,CACX,UAAAc,EACA,QAAAH,EACA,kBAAAI,CACF,IAKSC,EAA2B,CAChC,OAAQd,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAM,CACJ,WAAYY,CACd,EACA,KAAMH,EACN,MAAO,CACL,oCAAqCI,CACvC,CACF,CAAC,EArBS,aAuBd,CAAC,CACH,EA3BuC,2BAkC1BE,EAA0BjB,EACrCkB,GAGG,CACH,GAAM,CAAE,OAAAhB,CAAO,EAAIC,EAAU,EACvB,CAAE,KAAMgB,EAAW,UAAWC,CAAmB,EAAIhB,EAAS,CAClE,GAAGiB,EAAiBnB,EAAkB,0BAA0B,EAChE,OAAQF,EAACK,GAELA,EAAS,MAAM,MACX,OAAQiB,GAAYA,EAAQ,cAAc,EAC3C,IAAKA,IAAa,CACjB,MAAOA,EAAQ,KACf,MAAOA,EAAQ,IACjB,EAAE,GAAK,CAAC,EAPN,UAUR,QAASJ,GAAS,cAAc,OAClC,CAAC,EACK,CAAE,KAAMK,EAAY,UAAWC,CAAoB,EACvDzB,EAAqBmB,GAAS,YAAY,EAEtCO,EAA8BC,EAClCC,EAAkC,KAAK,OACvC,CAAC,EACDT,CACF,EAEA,GAAIC,EAAW,CACb,IAAMS,EAAeH,EAA4B,OAAO,KACrDI,GAAUA,EAAM,OAAS,cAC5B,EACID,IACFA,EAAa,QAAUT,EAE3B,CAEA,GAAII,EAAY,CACd,IAAMO,EAAgBL,EAA4B,OAAO,KACtDI,GAAUA,EAAM,OAAS,kBAC5B,EACIC,IACFA,EAAc,QAAUP,EAE5B,CAEA,MAAO,CACL,UAAWH,GAAsBI,EACjC,4BAAAC,CACF,CACF,EAnDuC,2BA4D1BM,EAA0B/B,EAAA,CAAC,CACtC,YAAAgC,EACA,YAAAC,EACA,QAAAf,CACF,IAIM,CACJ,GAAM,CAAE,OAAAhB,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAS,CACd,SAAU,CAAC,iCAAkC4B,CAAW,EACxD,MAAO,GACP,QAAShC,EAAA,SAAY,CACnB,GAAI,CAACgC,EACH,MAAM,IAAI,MAAM,0BAA0B,EAE5C,IAAM3B,EAAW,MAAM6B,EAA8B,CACnD,OAAQhC,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAM,CACJ,aAAc8B,EACd,KAAM,iBACR,EACA,MAAO,CACL,oBACEd,GAAS,mBAAmB,aAAa,iBACzC,QACJ,CACF,CAAC,EAED,GAAIb,EAAS,OAAS,CAACA,EAAS,KAC9B,MAAM,IAAI,MAAM,wCAAwC,EAG1D,OAAOA,CACT,EAzBS,WA0BT,QAASa,GAAS,cAAc,SAAW,CAAC,CAACc,EAC7C,OAAQhC,EAAA,CAAC,CAAE,KAAAO,CAAK,IAAM,CACpB,IAAM4B,EAAY5B,GAAM,MAAQ,CAAC,EACjC,OAAOmB,EAAmBS,EAAWF,EAAaf,CAAO,CAC3D,EAHQ,SAIV,CAAC,CACH,EA7CuC","names":["useMutation","useQuery","useCompanyCurrencies","__name","queryOptions","client","useClient","useQuery","response","getV1CompanyCurrencies","data","currency","useCreateCompanyRequest","useMutation","payload","postV1Companies","useUpdateCompanyRequest","companyId","jsonSchemaVersion","patchV1CompaniesCompanyId2","useCountriesSchemaField","options","countries","isLoadingCountries","countriesOptions","country","currencies","isLoadingCurrencies","companyBasicInformationForm","createHeadlessForm","companyBasicInformationStepSchema","countryField","field","currencyField","useAddressDetailsSchema","countryCode","fieldValues","getV1CountriesCountryCodeForm","jsfSchema"]}
@@ -1,2 +1,2 @@
1
- import{m as o}from"./chunk-RZCU2MT3.js";import{a as r}from"./chunk-P37U34EQ.js";import*as d from"react";import{jsx as a}from"react/jsx-runtime";function l({className:e,direction:t="col",...n}){return a("div",{"data-slot":"card",className:o("RemoteFlows__Card bg-white text-card-foreground rounded-[10px] gap-4 border border-gray-200 px-10 py-14",t==="row"?"flex flex-row":"flex flex-col",e),...n})}r(l,"Card");function i({className:e,...t}){return a("header",{"data-slot":"card-header",className:o("flex flex-col gap-1.5 px-6",e),...t})}r(i,"CardHeader");function m({className:e,as:t,...n}){return a(t||"h2",{"data-slot":"card-title",className:o("leading-none font-semibold",e),...n})}r(m,"CardTitle");function f({className:e,...t}){return a("p",{"data-slot":"card-description",className:o("text-sm",e),...t})}r(f,"CardDescription");var c=d.forwardRef(({className:e,...t},n)=>a("div",{ref:n,"data-slot":"card-content",className:o("px-6",e),...t}));c.displayName="CardContent";function C({className:e,...t}){return a("footer",{"data-slot":"card-footer",className:o("flex items-center px-6",e),...t})}r(C,"CardFooter");export{l as a,i as b,m as c,f as d,c as e,C as f};
2
- //# sourceMappingURL=chunk-NRNLLJCB.js.map
1
+ import{n as o}from"./chunk-JXAAON7I.js";import{a as r}from"./chunk-P37U34EQ.js";import*as d from"react";import{jsx as a}from"react/jsx-runtime";function l({className:e,direction:t="col",...n}){return a("div",{"data-slot":"card",className:o("RemoteFlows__Card bg-white text-card-foreground rounded-[10px] gap-4 border border-gray-200 px-10 py-14",t==="row"?"flex flex-row":"flex flex-col",e),...n})}r(l,"Card");function i({className:e,...t}){return a("header",{"data-slot":"card-header",className:o("flex flex-col gap-1.5 px-6",e),...t})}r(i,"CardHeader");function m({className:e,as:t,...n}){return a(t||"h2",{"data-slot":"card-title",className:o("leading-none font-semibold",e),...n})}r(m,"CardTitle");function f({className:e,...t}){return a("p",{"data-slot":"card-description",className:o("text-sm",e),...t})}r(f,"CardDescription");var c=d.forwardRef(({className:e,...t},n)=>a("div",{ref:n,"data-slot":"card-content",className:o("px-6",e),...t}));c.displayName="CardContent";function C({className:e,...t}){return a("footer",{"data-slot":"card-footer",className:o("flex items-center px-6",e),...t})}r(C,"CardFooter");export{l as a,i as b,m as c,f as d,c as e,C as f};
2
+ //# sourceMappingURL=chunk-ZE37CBDF.js.map
@@ -1,2 +1,2 @@
1
- import{a as t,b as n,c as l,d as i,e as s,f as d}from"./chunk-X66NETZL.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({open:w,onClose:D,data:o,isLoading:m,error:p,zendeskURL:f,Trigger:c}){return r(t,{open:w,onOpenChange:g=>!g&&D(),direction:"right",children:[e(n,{asChild:!0,children:c}),e(l,{className:"h-full w-[540px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:r("div",{className:"h-full flex flex-col",children:[r(i,{children:[e(s,{children:o?.title}),r(d,{children:["For more details see our"," ",e("a",{href:f,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),m&&e("div",{children:"Loading..."}),p&&e("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),e("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:o?.body||""}})]})})]})}a(h,"ZendeskDrawerDefault");export{h as a};
2
- //# sourceMappingURL=chunk-H6Q7QK3C.js.map
1
+ import{a as t,b as n,c as l,d as i,e as s,f as d}from"./chunk-QWSAKYH4.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({open:w,onClose:D,data:o,isLoading:m,error:p,zendeskURL:f,Trigger:c}){return r(t,{open:w,onOpenChange:g=>!g&&D(),direction:"right",children:[e(n,{asChild:!0,children:c}),e(l,{className:"h-full w-[540px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:r("div",{className:"h-full flex flex-col",children:[r(i,{children:[e(s,{children:o?.title}),r(d,{children:["For more details see our"," ",e("a",{href:f,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),m&&e("div",{children:"Loading..."}),p&&e("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),e("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:o?.body||""}})]})})]})}a(h,"ZendeskDrawerDefault");export{h as a};
2
+ //# sourceMappingURL=chunk-ZM4ZOX7B.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-OMLHAQQX.js";import{a as r}from"./chunk-SLEK47CR.js";import{a as t}from"./chunk-Y5JFBXNR.js";import{a as f}from"./chunk-3JPDFNNH.js";import{a as e}from"./chunk-45RIDSO6.js";import{a as p}from"./chunk-K5TZIA6W.js";import{a as n}from"./chunk-YUNA3QKT.js";import{a as m}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{useId as c}from"react";import{jsx as F}from"react/jsx-runtime";var k=i(({employmentId:l,render:T,options:d,initialValues:s})=>{let u=c(),o=t({employmentId:l,options:d,initialValues:s});return F(m.Provider,{value:{formId:u,terminationBag:o},children:T({terminationBag:o,components:{SubmitButton:r,Back:n,EmployeeComunicationStep:e,TerminationDetailsStep:a,PaidTimeOffStep:p,AdditionalDetailsStep:f}})})},"TerminationFlow");export{k as a};
2
- //# sourceMappingURL=chunk-JQHOMFXA.js.map
1
+ import{a}from"./chunk-PSN4ZR5Y.js";import{a as r}from"./chunk-SLEK47CR.js";import{a as t}from"./chunk-R63ZJMJA.js";import{a as f}from"./chunk-CDX5QDO3.js";import{a as e}from"./chunk-TXP3DGU6.js";import{a as p}from"./chunk-VZEIJSTF.js";import{a as n}from"./chunk-YUNA3QKT.js";import{a as m}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{useId as c}from"react";import{jsx as F}from"react/jsx-runtime";var k=i(({employmentId:l,render:T,options:d,initialValues:s})=>{let u=c(),o=t({employmentId:l,options:d,initialValues:s});return F(m.Provider,{value:{formId:u,terminationBag:o},children:T({terminationBag:o,components:{SubmitButton:r,Back:n,EmployeeComunicationStep:e,TerminationDetailsStep:a,PaidTimeOffStep:p,AdditionalDetailsStep:f}})})},"TerminationFlow");export{k as a};
2
+ //# sourceMappingURL=chunk-ZSCJ6CT5.js.map
@@ -1,7 +1,7 @@
1
- import { C as Components } from './remoteFlows-n8r_cW0z.js';
1
+ import { C as Components } from './remoteFlows-1ODSR6M5.js';
2
2
  import 'react';
3
3
  import 'yup';
4
- import './types.gen-DPZBntYq.js';
4
+ import './types.gen-D39CBKLR.js';
5
5
  import 'react-hook-form';
6
6
 
7
7
  /**
@@ -1,2 +1,2 @@
1
- import{a as F}from"./chunk-SNWJIIF7.js";import{a as s}from"./chunk-KWBTUWWQ.js";import{a as c}from"./chunk-WUQZCGWG.js";import{a as b}from"./chunk-UB5ZMTTU.js";import{a as k}from"./chunk-IHGCXP2X.js";import{a as w}from"./chunk-MGPUZ7NZ.js";import{a as i}from"./chunk-MHQ5ZW5P.js";import{a as f}from"./chunk-AGKLWKYY.js";import{a}from"./chunk-YMOAWXSE.js";import{a as u}from"./chunk-QC2FAORS.js";import{a as p}from"./chunk-XELPL3XO.js";import{a as D}from"./chunk-ACM63WPM.js";import{a as n}from"./chunk-H6Q7QK3C.js";import{a as e}from"./chunk-C6UF7BPK.js";import{a as t}from"./chunk-C4UUGOR3.js";import{a as o}from"./chunk-6C4DCKHS.js";import{a as r}from"./chunk-LXEFKJ4K.js";import"./chunk-5JGA7DRL.js";import{a as l}from"./chunk-JX2ZVRE7.js";import{a as m}from"./chunk-5QRYKH3H.js";import"./chunk-L57LWMNE.js";import"./chunk-ZYN3TAUB.js";import"./chunk-WZHTDLX6.js";import"./chunk-NDZIQGDE.js";import"./chunk-X66NETZL.js";import"./chunk-3EUYWSSZ.js";import"./chunk-T5HMFMXH.js";import"./chunk-LWQLNGOH.js";import"./chunk-J2QQLYVY.js";import"./chunk-2A4DCZTX.js";import"./chunk-ZQNYASQ3.js";import{a as d}from"./chunk-GUO7UC4X.js";import"./chunk-3SIHU3EE.js";import"./chunk-AYYYRHO3.js";import"./chunk-U5T77DSF.js";import"./chunk-BZ232WZD.js";import"./chunk-XG6ASTX5.js";import"./chunk-TNQKP2XT.js";import"./chunk-RZCU2MT3.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";var Z={button:b,checkbox:s,countries:r,date:m,drawer:D,email:f,fieldsetToggle:d,file:e,"multi-select":u,number:i,radio:a,select:o,statement:l,textarea:t,text:p,zendeskDrawer:n,table:F,"work-schedule":c,pdfViewer:k,tel:w};export{Z as defaultComponents};
1
+ import{a as F}from"./chunk-6YBH2ELN.js";import{a as s}from"./chunk-CFCUY6VA.js";import{a as c}from"./chunk-OVQOV5YL.js";import{a as b}from"./chunk-3TLNWNFZ.js";import{a as k}from"./chunk-IHGCXP2X.js";import{a as w}from"./chunk-NN2HUS43.js";import{a as i}from"./chunk-TMS24RKD.js";import{a as f}from"./chunk-Q5RU76HN.js";import{a}from"./chunk-LKFGJU72.js";import{a as u}from"./chunk-24HG2Q5K.js";import{a as p}from"./chunk-VJPSDB7M.js";import{a as D}from"./chunk-FIVDMRET.js";import{a as n}from"./chunk-ZM4ZOX7B.js";import{a as e}from"./chunk-QYLLXHLO.js";import{a as t}from"./chunk-OSHTXKLJ.js";import{a as o}from"./chunk-QWIPKY24.js";import{a as r}from"./chunk-5FHNCDLU.js";import"./chunk-LDI7E3ZK.js";import{a as l}from"./chunk-TMZVJ3SQ.js";import{a as m}from"./chunk-CMPHQVJ3.js";import"./chunk-IX5SV6J2.js";import"./chunk-DXKUARQF.js";import"./chunk-XWBNZAGY.js";import"./chunk-B3KDZREG.js";import"./chunk-QWSAKYH4.js";import"./chunk-RGXG3HOB.js";import"./chunk-ED7I5OM2.js";import"./chunk-242UBL3Z.js";import"./chunk-4ZMRPH3M.js";import"./chunk-Q5WADFQ7.js";import"./chunk-BQA2DJF2.js";import{a as d}from"./chunk-GQACPN6J.js";import"./chunk-C7GJUNNC.js";import"./chunk-R4TTPUH7.js";import"./chunk-4MW7KA47.js";import"./chunk-W4YDSTXA.js";import"./chunk-5BU3CD2P.js";import"./chunk-ER46UFIU.js";import"./chunk-JXAAON7I.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";var Z={button:b,checkbox:s,countries:r,date:m,drawer:D,email:f,fieldsetToggle:d,file:e,"multi-select":u,number:i,radio:a,select:o,statement:l,textarea:t,text:p,zendeskDrawer:n,table:F,"work-schedule":c,pdfViewer:k,tel:w};export{Z as defaultComponents};
2
2
  //# sourceMappingURL=default-components.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-DPZBntYq.js';
2
+ import { P as PostV1ContractAmendmentsError, b as ContractAmendmentResponse } from '../../types.gen-D39CBKLR.js';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
 
5
5
  type ContractAmendmentConfirmationFormProps = {
@@ -17,7 +17,7 @@ type ContractAmendmentConfirmationFormProps = {
17
17
  * @param error
18
18
  * @returns
19
19
  */
20
- onError?: (error: PostCreateContractAmendmentError) => void;
20
+ onError?: (error: PostV1ContractAmendmentsError) => void;
21
21
  /**
22
22
  * Callback function to be called when the contract amendment is successfully submitted.
23
23
  * @param data
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-HVI5GHIV.js";import"../../chunk-XG6ASTX5.js";import"../../chunk-RZCU2MT3.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm};
1
+ import{a}from"../../chunk-EJWKMMZV.js";import"../../chunk-5BU3CD2P.js";import"../../chunk-JXAAON7I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm};
2
2
  //# sourceMappingURL=ContractAmendmentConfirmationForm.js.map
@@ -5,11 +5,11 @@ 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-DPZBntYq.js';
8
+ import '../../types.gen-D39CBKLR.js';
9
9
  import 'react-hook-form';
10
10
  import 'react';
11
- import '../../mutations-DTK4GE8r.js';
12
- import '../../remoteFlows-n8r_cW0z.js';
11
+ import '../../mutations-tMusyGqR.js';
12
+ import '../../remoteFlows-1ODSR6M5.js';
13
13
  import 'yup';
14
14
  import '@remoteoss/json-schema-form';
15
15
  import '@remoteoss/json-schema-form-v0-deprecated';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-LDSS6RYC.js";import"../../chunk-HVI5GHIV.js";import"../../chunk-DCPBAFIN.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-H66IKMI4.js";import"../../chunk-CBPV2QLT.js";import"../../chunk-DIZ5Z4MN.js";import"../../chunk-RWXZG4KO.js";import"../../chunk-AVVDKCFO.js";import"../../chunk-WUSKSXW2.js";import"../../chunk-PR6I3UYE.js";import"../../chunk-K2SHDZBB.js";import"../../chunk-ZQNYASQ3.js";import"../../chunk-GUO7UC4X.js";import"../../chunk-3SIHU3EE.js";import"../../chunk-AYYYRHO3.js";import"../../chunk-U5T77DSF.js";import"../../chunk-BZ232WZD.js";import"../../chunk-XG6ASTX5.js";import"../../chunk-TNQKP2XT.js";import"../../chunk-RZCU2MT3.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-SWCZJY6I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
1
+ import{a}from"../../chunk-VAYKULUJ.js";import"../../chunk-EJWKMMZV.js";import"../../chunk-YPVZUXVH.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-H66IKMI4.js";import"../../chunk-DU55JKPB.js";import"../../chunk-NZXVTXZY.js";import"../../chunk-Q65JWWKR.js";import"../../chunk-N2MBTATE.js";import"../../chunk-PMAIML44.js";import"../../chunk-XX25MIBS.js";import"../../chunk-QHZPSH52.js";import"../../chunk-BQA2DJF2.js";import"../../chunk-GQACPN6J.js";import"../../chunk-C7GJUNNC.js";import"../../chunk-R4TTPUH7.js";import"../../chunk-4MW7KA47.js";import"../../chunk-W4YDSTXA.js";import"../../chunk-5BU3CD2P.js";import"../../chunk-ER46UFIU.js";import"../../chunk-JXAAON7I.js";import"../../chunk-JDIKYCN6.js";import"../../chunk-626FTNKA.js";import"../../chunk-SWCZJY6I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.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-DPZBntYq.js';
2
+ import { c as PostV1ContractAmendmentsAutomatableError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-D39CBKLR.js';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
 
5
5
  type ContractAmendmentFormProps = {
@@ -17,7 +17,7 @@ type ContractAmendmentFormProps = {
17
17
  * @param error
18
18
  * @returns
19
19
  */
20
- onError?: (error: PostAutomatableContractAmendmentError | {
20
+ onError?: (error: PostV1ContractAmendmentsAutomatableError | {
21
21
  message: 'no_changes_detected_contract_details';
22
22
  }) => void;
23
23
  /**
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-DCPBAFIN.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-AVVDKCFO.js";import"../../chunk-WUSKSXW2.js";import"../../chunk-PR6I3UYE.js";import"../../chunk-ZQNYASQ3.js";import"../../chunk-GUO7UC4X.js";import"../../chunk-3SIHU3EE.js";import"../../chunk-AYYYRHO3.js";import"../../chunk-U5T77DSF.js";import"../../chunk-BZ232WZD.js";import"../../chunk-XG6ASTX5.js";import"../../chunk-TNQKP2XT.js";import"../../chunk-RZCU2MT3.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
1
+ import{a}from"../../chunk-YPVZUXVH.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-N2MBTATE.js";import"../../chunk-PMAIML44.js";import"../../chunk-XX25MIBS.js";import"../../chunk-BQA2DJF2.js";import"../../chunk-GQACPN6J.js";import"../../chunk-C7GJUNNC.js";import"../../chunk-R4TTPUH7.js";import"../../chunk-4MW7KA47.js";import"../../chunk-W4YDSTXA.js";import"../../chunk-5BU3CD2P.js";import"../../chunk-ER46UFIU.js";import"../../chunk-JXAAON7I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
2
2
  //# sourceMappingURL=ContractAmendmentForm.js.map
@@ -1,7 +1,7 @@
1
- import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-DPZBntYq.js';
1
+ import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-D39CBKLR.js';
2
2
  import * as React from 'react';
3
- import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-DTK4GE8r.js';
4
- import '../../remoteFlows-n8r_cW0z.js';
3
+ import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-tMusyGqR.js';
4
+ import '../../remoteFlows-1ODSR6M5.js';
5
5
  import * as react_hook_form from 'react-hook-form';
6
6
  import { useContractAmendment } from './hooks.js';
7
7
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
@@ -1,12 +1,12 @@
1
- import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-DPZBntYq.js';
2
- import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-DTK4GE8r.js';
1
+ import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-D39CBKLR.js';
2
+ import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-tMusyGqR.js';
3
3
  import * as React from 'react';
4
4
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
5
5
  import * as _remoteoss_json_schema_form_v0_deprecated from '@remoteoss/json-schema-form-v0-deprecated';
6
6
  import { Step } from '../useStepState.js';
7
7
  import { FieldValues } from 'react-hook-form';
8
8
  import { ContractAmendmentParams } from './types.js';
9
- import '../../remoteFlows-n8r_cW0z.js';
9
+ import '../../remoteFlows-1ODSR6M5.js';
10
10
  import 'yup';
11
11
  import '../types.js';
12
12
  import '@remoteoss/remote-json-schema-form-kit';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-CBPV2QLT.js";import"../../chunk-DIZ5Z4MN.js";import"../../chunk-RWXZG4KO.js";import"../../chunk-K2SHDZBB.js";import"../../chunk-TNQKP2XT.js";import"../../chunk-RZCU2MT3.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as useContractAmendment};
1
+ import{a}from"../../chunk-DU55JKPB.js";import"../../chunk-NZXVTXZY.js";import"../../chunk-Q65JWWKR.js";import"../../chunk-QHZPSH52.js";import"../../chunk-ER46UFIU.js";import"../../chunk-JXAAON7I.js";import"../../chunk-JDIKYCN6.js";import"../../chunk-626FTNKA.js";import"../../chunk-H2O4CVKF.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-DPZBntYq.js';
7
+ import '../../types.gen-D39CBKLR.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-n8r_cW0z.js';
13
+ import '../../remoteFlows-1ODSR6M5.js';
14
14
  import 'yup';
15
15
  import '@remoteoss/remote-json-schema-form-kit';
16
- import '../../mutations-DTK4GE8r.js';
16
+ import '../../mutations-tMusyGqR.js';
17
17
  import '@remoteoss/json-schema-form';
18
18
  import '@remoteoss/json-schema-form-v0-deprecated';
19
19
  import '../useStepState.js';
@@ -1,2 +1,2 @@
1
- import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-LDSS6RYC.js";import{a}from"../../chunk-HVI5GHIV.js";import{a as b}from"../../chunk-DCPBAFIN.js";import"../../chunk-KFYWUBRS.js";import{a as c}from"../../chunk-H66IKMI4.js";import{a as d}from"../../chunk-CBPV2QLT.js";import"../../chunk-DIZ5Z4MN.js";import"../../chunk-RWXZG4KO.js";import"../../chunk-AVVDKCFO.js";import"../../chunk-WUSKSXW2.js";import"../../chunk-PR6I3UYE.js";import"../../chunk-K2SHDZBB.js";import"../../chunk-ZQNYASQ3.js";import"../../chunk-GUO7UC4X.js";import"../../chunk-3SIHU3EE.js";import"../../chunk-AYYYRHO3.js";import"../../chunk-U5T77DSF.js";import"../../chunk-BZ232WZD.js";import"../../chunk-XG6ASTX5.js";import"../../chunk-TNQKP2XT.js";import"../../chunk-RZCU2MT3.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-SWCZJY6I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.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-VAYKULUJ.js";import{a}from"../../chunk-EJWKMMZV.js";import{a as b}from"../../chunk-YPVZUXVH.js";import"../../chunk-KFYWUBRS.js";import{a as c}from"../../chunk-H66IKMI4.js";import{a as d}from"../../chunk-DU55JKPB.js";import"../../chunk-NZXVTXZY.js";import"../../chunk-Q65JWWKR.js";import"../../chunk-N2MBTATE.js";import"../../chunk-PMAIML44.js";import"../../chunk-XX25MIBS.js";import"../../chunk-QHZPSH52.js";import"../../chunk-BQA2DJF2.js";import"../../chunk-GQACPN6J.js";import"../../chunk-C7GJUNNC.js";import"../../chunk-R4TTPUH7.js";import"../../chunk-4MW7KA47.js";import"../../chunk-W4YDSTXA.js";import"../../chunk-5BU3CD2P.js";import"../../chunk-ER46UFIU.js";import"../../chunk-JXAAON7I.js";import"../../chunk-JDIKYCN6.js";import"../../chunk-626FTNKA.js";import"../../chunk-SWCZJY6I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.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,8 +1,8 @@
1
1
  import { FlowOptions } from '../types.js';
2
- import '../../remoteFlows-n8r_cW0z.js';
2
+ import '../../remoteFlows-1ODSR6M5.js';
3
3
  import 'react';
4
4
  import 'yup';
5
- import '../../types.gen-DPZBntYq.js';
5
+ import '../../types.gen-D39CBKLR.js';
6
6
  import 'react-hook-form';
7
7
  import '@remoteoss/remote-json-schema-form-kit';
8
8
 
@@ -1,5 +1,5 @@
1
- import { E as Employment } from '../../types.gen-DPZBntYq.js';
2
- import { J as JSFFields } from '../../remoteFlows-n8r_cW0z.js';
1
+ import { E as Employment } from '../../types.gen-D39CBKLR.js';
2
+ import { J as JSFFields } from '../../remoteFlows-1ODSR6M5.js';
3
3
  import { Step } from '../useStepState.js';
4
4
  import 'react';
5
5
  import 'yup';
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-DIZ5Z4MN.js";import"../../chunk-RZCU2MT3.js";import"../../chunk-P37U34EQ.js";export{a as STEPS,b as buildInitialValues};
1
+ import{a,b}from"../../chunk-NZXVTXZY.js";import"../../chunk-JXAAON7I.js";import"../../chunk-P37U34EQ.js";export{a as STEPS,b as buildInitialValues};
2
2
  //# sourceMappingURL=utils.js.map
@@ -1,19 +1,19 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as ContractorOnboardingFlowProps } from '../../types-BJ9gyvly.js';
2
+ import { C as ContractorOnboardingFlowProps } from '../../types-BADwm0IP.js';
3
3
  import './constants.js';
4
- import '../../types.gen-DPZBntYq.js';
4
+ import '../../types.gen-D39CBKLR.js';
5
5
  import './components/OnboardingBack.js';
6
6
  import 'react';
7
7
  import './components/OnboardingSubmit.js';
8
- import '../../remoteFlows-n8r_cW0z.js';
8
+ import '../../remoteFlows-1ODSR6M5.js';
9
9
  import 'yup';
10
10
  import 'react-hook-form';
11
- import '../../mutations-DTK4GE8r.js';
11
+ import '../../mutations-tMusyGqR.js';
12
12
  import '@tanstack/query-core';
13
13
  import '../useStepState.js';
14
14
  import '@remoteoss/remote-json-schema-form-kit';
15
15
  import './utils.js';
16
- import '../../types-BiMfLZYw.js';
16
+ import '../../types-B3zSOF4R.js';
17
17
  import '../Onboarding/components/OnboardingBack.js';
18
18
  import '../Onboarding/components/OnboardingInvite.js';
19
19
  import '../Onboarding/components/OnboardingSubmit.js';