@remoteoss/remote-flows 1.25.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/dist/ButtonDefault-EPOEMC2J.js +2 -0
  2. package/dist/CheckboxFieldDefault-QLUSGCSO.js +2 -0
  3. package/dist/CountryFieldDefault-BNXTXEWS.js +2 -0
  4. package/dist/DatePickerFieldDefault-FJ7HVEV5.js +2 -0
  5. package/dist/DrawerDefault-WN7Z4LY7.js +2 -0
  6. package/dist/EmailFieldDefault-LTDNKVUW.js +2 -0
  7. package/dist/FieldsetToggleButtonDefault-4RZ3GTDF.js +2 -0
  8. package/dist/FileUploadFieldDefault-HSLW6SHB.js +2 -0
  9. package/dist/MultiSelectFieldDefault-GSJWVA5H.js +2 -0
  10. package/dist/NumberFieldDefault-NVOVVUNK.js +2 -0
  11. package/dist/RadioGroupFieldDefault-ZLKZ4B4D.js +2 -0
  12. package/dist/SelectFieldDefault-WU4CDEZD.js +2 -0
  13. package/dist/StatementDefault-T3RCCUE5.js +2 -0
  14. package/dist/TableFieldDefault-S5XRYF36.js +2 -0
  15. package/dist/TelFieldDefault-D5EW44ZU.js +2 -0
  16. package/dist/TextAreaFieldDefault-G5AIZNH7.js +2 -0
  17. package/dist/TextFieldDefault-FCVIHZTV.js +2 -0
  18. package/dist/WorkScheduleFieldDefault-5JZPKI2P.js +2 -0
  19. package/dist/ZendeskDrawerDefault-WQ32QQVE.js +2 -0
  20. package/dist/{chunk-R4PLUUI3.js → chunk-2OGPILJM.js} +2 -2
  21. package/dist/{chunk-RAVJ3LMO.js → chunk-2P4RPBIO.js} +2 -2
  22. package/dist/{chunk-MEOD4UGO.js → chunk-2UZ72KAQ.js} +2 -2
  23. package/dist/chunk-3DQ5RNLK.js +2 -0
  24. package/dist/chunk-3DQ5RNLK.js.map +1 -0
  25. package/dist/{chunk-IJDBUKEM.js → chunk-4Y2DWXQB.js} +2 -2
  26. package/dist/{chunk-FHGQELT7.js → chunk-5EDCZGZV.js} +2 -2
  27. package/dist/{chunk-HLR7IUW7.js → chunk-5QHQT6DL.js} +2 -2
  28. package/dist/{chunk-N4TAXXWW.js → chunk-5TGKHA2W.js} +2 -2
  29. package/dist/{chunk-QMPXBDDO.js → chunk-64AJX2DH.js} +2 -2
  30. package/dist/{chunk-YQMALPDQ.js → chunk-65K5T3GC.js} +2 -2
  31. package/dist/{chunk-3HAKPYWK.js → chunk-6K3ISPZ3.js} +2 -2
  32. package/dist/{chunk-5MJH36G3.js → chunk-6QJZMW6S.js} +2 -2
  33. package/dist/chunk-6S566ZMF.js +2 -0
  34. package/dist/chunk-6S566ZMF.js.map +1 -0
  35. package/dist/{chunk-5BGETBLF.js → chunk-6SDLOAEO.js} +2 -2
  36. package/dist/{chunk-JJDAJQG4.js → chunk-6Y4QJ7WK.js} +2 -2
  37. package/dist/{chunk-RXNDKUY6.js → chunk-72RFYT5Y.js} +2 -2
  38. package/dist/{chunk-74U3UMRA.js → chunk-75P5LUKA.js} +2 -2
  39. package/dist/chunk-7DQY3SRL.js +2 -0
  40. package/dist/chunk-7DQY3SRL.js.map +1 -0
  41. package/dist/{chunk-43MCQDBU.js → chunk-7N2A2ZJ5.js} +2 -2
  42. package/dist/chunk-7SRRP2D6.js +2 -0
  43. package/dist/chunk-7SRRP2D6.js.map +1 -0
  44. package/dist/{chunk-3HZOTQHD.js → chunk-7X56CYUV.js} +2 -2
  45. package/dist/chunk-7ZBLKUKE.js +2 -0
  46. package/dist/chunk-7ZBLKUKE.js.map +1 -0
  47. package/dist/{chunk-UB5WD4YM.js → chunk-ACKYD4QC.js} +2 -2
  48. package/dist/{chunk-3BEEU2N4.js → chunk-AL37BOFX.js} +2 -2
  49. package/dist/{chunk-WI6ZYN4S.js → chunk-ALF55LF2.js} +2 -2
  50. package/dist/{chunk-S3YIFNST.js → chunk-B5UGFNCU.js} +2 -2
  51. package/dist/{chunk-LZL5KK3N.js → chunk-B7HGVWIT.js} +2 -2
  52. package/dist/{chunk-OOEKN64P.js → chunk-BAE2OWEH.js} +2 -2
  53. package/dist/{chunk-VSBNYQZM.js → chunk-BC2H7WGB.js} +2 -2
  54. package/dist/{chunk-ZR6AKRA3.js → chunk-BFSBZTDB.js} +2 -2
  55. package/dist/{chunk-5EYREHAZ.js → chunk-BTP3NN3N.js} +2 -2
  56. package/dist/{chunk-R3HLTYHX.js → chunk-CLAVZQBC.js} +2 -2
  57. package/dist/{chunk-S6MU4NHQ.js → chunk-CMR5CIYN.js} +2 -2
  58. package/dist/chunk-CODZ7A6U.js +2 -0
  59. package/dist/chunk-CODZ7A6U.js.map +1 -0
  60. package/dist/{chunk-JHH66SSM.js → chunk-CUSAI2ZT.js} +2 -2
  61. package/dist/{chunk-DXHWEBVC.js → chunk-DHLSO7BU.js} +2 -2
  62. package/dist/{chunk-WVND2FCE.js → chunk-DR25AW5C.js} +2 -2
  63. package/dist/{chunk-OABRM5LK.js → chunk-DYNVJFJH.js} +2 -2
  64. package/dist/{chunk-LBNA4RGS.js → chunk-EC6ZM3SX.js} +2 -2
  65. package/dist/{chunk-7NZH3TF3.js → chunk-EN5ZMAYF.js} +2 -2
  66. package/dist/{chunk-IFD3RW53.js → chunk-ET4QWXWY.js} +2 -2
  67. package/dist/{chunk-552XBDTE.js → chunk-FFVTWWGX.js} +2 -2
  68. package/dist/{chunk-2Y7QAG2Q.js → chunk-FOBUW3RN.js} +2 -2
  69. package/dist/{chunk-L3XWJ35V.js → chunk-FTC4EFBO.js} +2 -2
  70. package/dist/{chunk-6PRPMEWS.js → chunk-GFM747IZ.js} +2 -2
  71. package/dist/{chunk-FYBXLFMI.js → chunk-GLJV3B55.js} +2 -2
  72. package/dist/{chunk-FZVUO3UU.js → chunk-HBX37YK2.js} +2 -2
  73. package/dist/{chunk-YTWEXSYT.js → chunk-HGBOZH6Q.js} +2 -2
  74. package/dist/{chunk-E3HFSANG.js → chunk-HGETJXZZ.js} +2 -2
  75. package/dist/{chunk-LBGZYTNR.js → chunk-HI7TK62N.js} +2 -2
  76. package/dist/{chunk-AGZHFGBR.js → chunk-INV4YWPR.js} +2 -2
  77. package/dist/{chunk-DA3D7BEQ.js → chunk-JBOUDOIM.js} +2 -2
  78. package/dist/chunk-JR6VISHQ.js +2 -0
  79. package/dist/chunk-JR6VISHQ.js.map +1 -0
  80. package/dist/{chunk-UFLWSKNE.js → chunk-JXWFFVQO.js} +2 -2
  81. package/dist/chunk-KFNCHTUX.js +2 -0
  82. package/dist/{chunk-5ISPVKB4.js.map → chunk-KFNCHTUX.js.map} +1 -1
  83. package/dist/{chunk-5XNFVJNM.js → chunk-KIUI7FHF.js} +2 -2
  84. package/dist/{chunk-766AUWUO.js → chunk-KMBA73YG.js} +2 -2
  85. package/dist/{chunk-237RQGWE.js → chunk-KVMWDA6O.js} +2 -2
  86. package/dist/{chunk-VJMCAVOL.js → chunk-L6V2G5TE.js} +2 -2
  87. package/dist/{chunk-Q6NTGZUW.js → chunk-L7TAT462.js} +2 -2
  88. package/dist/{chunk-ZZPQGX7X.js → chunk-LBJAKZ6V.js} +2 -2
  89. package/dist/{chunk-FUOTJMAO.js → chunk-M64UJF3B.js} +2 -2
  90. package/dist/chunk-MGVJ2TKE.js +2 -0
  91. package/dist/chunk-MGVJ2TKE.js.map +1 -0
  92. package/dist/{chunk-AEKGVWE5.js → chunk-MMIHT4V6.js} +2 -2
  93. package/dist/{chunk-UJJ5576U.js → chunk-MVPXUUUE.js} +2 -2
  94. package/dist/{chunk-Y4P3ZYQK.js → chunk-NORWRQQM.js} +2 -2
  95. package/dist/chunk-NTRKVVLQ.js +2 -0
  96. package/dist/chunk-NTRKVVLQ.js.map +1 -0
  97. package/dist/{chunk-R47Q7R6C.js → chunk-O5XQUEB5.js} +6 -6
  98. package/dist/chunk-O5XQUEB5.js.map +1 -0
  99. package/dist/{chunk-IKSPEKDA.js → chunk-O7TCU5D2.js} +2 -2
  100. package/dist/{chunk-7WV3GBEI.js → chunk-OGKH4RJL.js} +2 -2
  101. package/dist/{chunk-ZBJ4VEDO.js → chunk-OJTYP5W7.js} +2 -2
  102. package/dist/chunk-OSQ6VUDM.js +2 -0
  103. package/dist/chunk-OSQ6VUDM.js.map +1 -0
  104. package/dist/{chunk-MOM5PCKI.js → chunk-OVA2X5BB.js} +2 -2
  105. package/dist/{chunk-TPH6YQRJ.js → chunk-OXCSFW3F.js} +2 -2
  106. package/dist/{chunk-SHXQGRNL.js → chunk-PK2E2DJH.js} +2 -2
  107. package/dist/{chunk-SSBGIR74.js → chunk-PLKF2BTI.js} +2 -2
  108. package/dist/{chunk-RWMNB4RJ.js → chunk-PX6B2DBO.js} +2 -2
  109. package/dist/{chunk-32M6SNGV.js → chunk-PZFFXEI3.js} +2 -2
  110. package/dist/{chunk-COZWEBRG.js → chunk-QV4FEP6W.js} +2 -2
  111. package/dist/{chunk-QEIHXZIK.js → chunk-QV7CVQDJ.js} +2 -2
  112. package/dist/{chunk-PSBC73OL.js → chunk-R5WFXN2Z.js} +2 -2
  113. package/dist/{chunk-A3NABWR7.js → chunk-RRZ2GPQS.js} +2 -2
  114. package/dist/{chunk-YRAIYQ2K.js → chunk-RUYVQ6R6.js} +2 -2
  115. package/dist/{chunk-BTGWCFHJ.js → chunk-SBTZUZDR.js} +2 -2
  116. package/dist/{chunk-5FOI6SK4.js → chunk-SW7DKXXK.js} +2 -2
  117. package/dist/chunk-T5U7ZIBV.js +2 -0
  118. package/dist/chunk-T5U7ZIBV.js.map +1 -0
  119. package/dist/chunk-TVBZT6FA.js +2 -0
  120. package/dist/chunk-TVBZT6FA.js.map +1 -0
  121. package/dist/{chunk-K5XSOKKX.js → chunk-TXU6EUWN.js} +2 -2
  122. package/dist/{chunk-EVJ77XIZ.js → chunk-U4344VZW.js} +2 -2
  123. package/dist/{chunk-4Z2DLHAT.js → chunk-UBNSYRKM.js} +2 -2
  124. package/dist/{chunk-X5TMQDWS.js → chunk-UN4RAIAR.js} +2 -2
  125. package/dist/{chunk-R4F5WRKC.js → chunk-UOZUG2KL.js} +2 -2
  126. package/dist/{chunk-R3NDFTIM.js → chunk-UZNF4JV3.js} +2 -2
  127. package/dist/{chunk-GPXETIKG.js → chunk-V5OIMFSH.js} +2 -2
  128. package/dist/{chunk-S62HZDF7.js → chunk-VDVWAYXP.js} +2 -2
  129. package/dist/{chunk-DJOLLEOJ.js → chunk-VHAJRKCI.js} +2 -2
  130. package/dist/{chunk-TFJOJCCS.js → chunk-VKKORLLM.js} +2 -2
  131. package/dist/{chunk-AVJEDFND.js → chunk-VSXPCSKU.js} +2 -2
  132. package/dist/{chunk-GBQPG5OU.js → chunk-VZXZ7ELU.js} +2 -2
  133. package/dist/{chunk-JOHNIKN6.js → chunk-W2ZXKNL4.js} +2 -2
  134. package/dist/{chunk-LRPDJWIO.js → chunk-WXEBBNWP.js} +2 -2
  135. package/dist/{chunk-DJYO6IIO.js → chunk-XADVV6OP.js} +2 -2
  136. package/dist/{chunk-XULW2ME7.js → chunk-XK77JKBO.js} +2 -2
  137. package/dist/chunk-XO4DAKV7.js +2 -0
  138. package/dist/chunk-XO4DAKV7.js.map +1 -0
  139. package/dist/{chunk-65KMTRFL.js → chunk-XYV6WN5C.js} +2 -2
  140. package/dist/{chunk-423VHE7M.js → chunk-YYMGZZTO.js} +2 -2
  141. package/dist/{chunk-E37JLKX4.js → chunk-ZIFQZ33N.js} +2 -2
  142. package/dist/{chunk-YNMQONDL.js → chunk-ZNGMRPG6.js} +2 -2
  143. package/dist/{chunk-D3EUFZXJ.js → chunk-ZQZWWNXL.js} +2 -2
  144. package/dist/chunk-ZQZWWNXL.js.map +1 -0
  145. package/dist/{chunk-OOSCL4WD.js → chunk-ZSBQDVXM.js} +2 -2
  146. package/dist/{chunk-CHRRWZHW.js → chunk-ZX3JVVRL.js} +2 -2
  147. package/dist/default-components.d.ts +2 -2
  148. package/dist/default-components.js +1 -1
  149. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  150. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  151. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  152. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  153. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  154. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  155. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  156. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  157. package/dist/flows/ContractAmendment/hooks.js +1 -1
  158. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  159. package/dist/flows/ContractAmendment/index.js +1 -1
  160. package/dist/flows/ContractAmendment/types.d.ts +2 -2
  161. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  162. package/dist/flows/ContractAmendment/utils.js +1 -1
  163. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
  164. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  165. package/dist/flows/ContractorOnboarding/api.d.ts +8 -20
  166. package/dist/flows/ContractorOnboarding/api.js +1 -1
  167. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  168. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  169. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
  170. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  171. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  172. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  173. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
  174. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
  175. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  176. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
  177. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  178. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -5
  179. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  180. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  181. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  182. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
  183. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  184. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
  185. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  186. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  187. package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
  188. package/dist/flows/ContractorOnboarding/context.d.ts +8 -7
  189. package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
  190. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  191. package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
  192. package/dist/flows/ContractorOnboarding/index.js +1 -1
  193. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -5
  194. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  195. package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
  196. package/dist/flows/ContractorOnboarding/utils.d.ts +4 -4
  197. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  198. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  199. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  200. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  201. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  202. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  203. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
  204. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  205. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
  206. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
  207. package/dist/flows/CostCalculator/api.d.ts +5 -9
  208. package/dist/flows/CostCalculator/api.js +1 -1
  209. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  210. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  211. package/dist/flows/CostCalculator/context.d.ts +3 -3
  212. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  213. package/dist/flows/CostCalculator/hooks.js +1 -1
  214. package/dist/flows/CostCalculator/index.d.ts +4 -4
  215. package/dist/flows/CostCalculator/index.js +1 -1
  216. package/dist/flows/CostCalculator/types.d.ts +2 -2
  217. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  218. package/dist/flows/CostCalculator/utils.js +1 -1
  219. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  220. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  221. package/dist/flows/CreateCompany/api.d.ts +6 -14
  222. package/dist/flows/CreateCompany/api.js +1 -1
  223. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  224. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  225. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  226. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  227. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  228. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  229. package/dist/flows/CreateCompany/context.d.ts +7 -6
  230. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  231. package/dist/flows/CreateCompany/hooks.js +1 -1
  232. package/dist/flows/CreateCompany/index.d.ts +4 -4
  233. package/dist/flows/CreateCompany/index.js +1 -1
  234. package/dist/flows/CreateCompany/types.d.ts +4 -4
  235. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  236. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  237. package/dist/flows/Onboarding/api.d.ts +9 -17
  238. package/dist/flows/Onboarding/api.js +1 -1
  239. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  240. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  241. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  242. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  243. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  244. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  245. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  246. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  247. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  248. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  249. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  250. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  251. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  252. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  253. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  254. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  255. package/dist/flows/Onboarding/context.d.ts +17 -9
  256. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  257. package/dist/flows/Onboarding/hooks.js +1 -1
  258. package/dist/flows/Onboarding/index.d.ts +4 -4
  259. package/dist/flows/Onboarding/index.js +1 -1
  260. package/dist/flows/Onboarding/types.d.ts +4 -4
  261. package/dist/flows/Onboarding/utils.d.ts +4 -4
  262. package/dist/flows/Onboarding/utils.js +1 -1
  263. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  264. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  265. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  266. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  267. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  268. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  269. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  270. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  271. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  272. package/dist/flows/Termination/TerminationFlow.js +1 -1
  273. package/dist/flows/Termination/TerminationForm.d.ts +5 -5
  274. package/dist/flows/Termination/TerminationForm.js +1 -1
  275. package/dist/flows/Termination/api.d.ts +8 -12
  276. package/dist/flows/Termination/api.js +1 -1
  277. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
  278. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  279. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +7 -7
  280. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  281. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +7 -7
  282. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  283. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +7 -7
  284. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  285. package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
  286. package/dist/flows/Termination/context.d.ts +4 -4
  287. package/dist/flows/Termination/hooks.d.ts +4 -4
  288. package/dist/flows/Termination/hooks.js +1 -1
  289. package/dist/flows/Termination/index.d.ts +6 -6
  290. package/dist/flows/Termination/index.js +1 -1
  291. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  292. package/dist/flows/Termination/types.d.ts +4 -4
  293. package/dist/flows/Termination/utils.d.ts +4 -4
  294. package/dist/flows/Termination/utils.js +1 -1
  295. package/dist/flows/types.d.ts +4 -3
  296. package/dist/flows/utils.d.ts +2 -2
  297. package/dist/index.css +1 -1
  298. package/dist/index.css.map +1 -1
  299. package/dist/index.d.ts +11 -11
  300. package/dist/index.js +2 -2
  301. package/dist/index.js.map +1 -1
  302. package/dist/internals.d.ts +3 -3
  303. package/dist/internals.js +1 -1
  304. package/dist/{mutations-k1bkfjOU.d.ts → mutations-B8Mignyp.d.ts} +1 -1
  305. package/dist/{remoteFlows-CizrXXw-.d.ts → remoteFlows-B_Qw-y-E.d.ts} +14 -2
  306. package/dist/styles.css +1 -1
  307. package/dist/styles.css.map +1 -1
  308. package/dist/{types-DWSLcaDI.d.ts → types-B5J_4wyN.d.ts} +41 -11
  309. package/dist/{types-Cg4eblxv.d.ts → types-BkwrqJ5I.d.ts} +4 -4
  310. package/dist/{types-CRnEmzMD.d.ts → types-D8HNn_KX.d.ts} +1 -1
  311. package/dist/{types-DoYYKUID.d.ts → types-XM7RZKic.d.ts} +3 -3
  312. package/dist/{types-VJHlrVxd.d.ts → types-b3-hzr00.d.ts} +2 -2
  313. package/dist/{types.gen-Dgw1W-SB.d.ts → types.gen-DowXAxCF.d.ts} +660 -20
  314. package/dist/{utils-DaoVOrzw.d.ts → utils-CqFJ189L.d.ts} +1 -1
  315. package/package.json +62 -62
  316. package/dist/ButtonDefault-A5JWQEZF.js +0 -2
  317. package/dist/CheckboxFieldDefault-2YCVL3MM.js +0 -2
  318. package/dist/CountryFieldDefault-IY664WKC.js +0 -2
  319. package/dist/DatePickerFieldDefault-UZ3W2B3R.js +0 -2
  320. package/dist/DrawerDefault-HQGPEMMY.js +0 -2
  321. package/dist/EmailFieldDefault-6GQMGBQV.js +0 -2
  322. package/dist/FieldsetToggleButtonDefault-NQCXWGRK.js +0 -2
  323. package/dist/FileUploadFieldDefault-L3LOK4A5.js +0 -2
  324. package/dist/MultiSelectFieldDefault-OE5NHM6A.js +0 -2
  325. package/dist/NumberFieldDefault-MV3FSZOG.js +0 -2
  326. package/dist/RadioGroupFieldDefault-J3ESFNPW.js +0 -2
  327. package/dist/SelectFieldDefault-F2MAJW7S.js +0 -2
  328. package/dist/StatementDefault-FTAOOAL4.js +0 -2
  329. package/dist/TableFieldDefault-LXHWAWPG.js +0 -2
  330. package/dist/TelFieldDefault-EHHOHIQD.js +0 -2
  331. package/dist/TextAreaFieldDefault-VXPH3YGT.js +0 -2
  332. package/dist/TextFieldDefault-QWGENVEE.js +0 -2
  333. package/dist/WorkScheduleFieldDefault-SJSAWRYV.js +0 -2
  334. package/dist/ZendeskDrawerDefault-SUUZWWY2.js +0 -2
  335. package/dist/chunk-3VALWCZ5.js +0 -2
  336. package/dist/chunk-3VALWCZ5.js.map +0 -1
  337. package/dist/chunk-5ISPVKB4.js +0 -2
  338. package/dist/chunk-D3EUFZXJ.js.map +0 -1
  339. package/dist/chunk-EARN6G25.js +0 -2
  340. package/dist/chunk-EARN6G25.js.map +0 -1
  341. package/dist/chunk-EJCCWBLQ.js +0 -2
  342. package/dist/chunk-EJCCWBLQ.js.map +0 -1
  343. package/dist/chunk-KQUKUR4T.js +0 -2
  344. package/dist/chunk-KQUKUR4T.js.map +0 -1
  345. package/dist/chunk-LXOYWRNU.js +0 -2
  346. package/dist/chunk-LXOYWRNU.js.map +0 -1
  347. package/dist/chunk-NZ7BAZNH.js +0 -2
  348. package/dist/chunk-NZ7BAZNH.js.map +0 -1
  349. package/dist/chunk-OORPUQ3N.js +0 -2
  350. package/dist/chunk-OORPUQ3N.js.map +0 -1
  351. package/dist/chunk-R47Q7R6C.js.map +0 -1
  352. package/dist/chunk-U7S4TUFV.js +0 -2
  353. package/dist/chunk-U7S4TUFV.js.map +0 -1
  354. package/dist/chunk-UITO344H.js +0 -2
  355. package/dist/chunk-UITO344H.js.map +0 -1
  356. package/dist/chunk-VJNTRMOS.js +0 -2
  357. package/dist/chunk-VJNTRMOS.js.map +0 -1
  358. package/dist/chunk-YZKXKNDS.js +0 -2
  359. package/dist/chunk-YZKXKNDS.js.map +0 -1
  360. package/dist/chunk-ZAQUO2SM.js +0 -2
  361. package/dist/chunk-ZAQUO2SM.js.map +0 -1
  362. /package/dist/{ButtonDefault-A5JWQEZF.js.map → ButtonDefault-EPOEMC2J.js.map} +0 -0
  363. /package/dist/{CheckboxFieldDefault-2YCVL3MM.js.map → CheckboxFieldDefault-QLUSGCSO.js.map} +0 -0
  364. /package/dist/{CountryFieldDefault-IY664WKC.js.map → CountryFieldDefault-BNXTXEWS.js.map} +0 -0
  365. /package/dist/{DatePickerFieldDefault-UZ3W2B3R.js.map → DatePickerFieldDefault-FJ7HVEV5.js.map} +0 -0
  366. /package/dist/{DrawerDefault-HQGPEMMY.js.map → DrawerDefault-WN7Z4LY7.js.map} +0 -0
  367. /package/dist/{EmailFieldDefault-6GQMGBQV.js.map → EmailFieldDefault-LTDNKVUW.js.map} +0 -0
  368. /package/dist/{FieldsetToggleButtonDefault-NQCXWGRK.js.map → FieldsetToggleButtonDefault-4RZ3GTDF.js.map} +0 -0
  369. /package/dist/{FileUploadFieldDefault-L3LOK4A5.js.map → FileUploadFieldDefault-HSLW6SHB.js.map} +0 -0
  370. /package/dist/{MultiSelectFieldDefault-OE5NHM6A.js.map → MultiSelectFieldDefault-GSJWVA5H.js.map} +0 -0
  371. /package/dist/{NumberFieldDefault-MV3FSZOG.js.map → NumberFieldDefault-NVOVVUNK.js.map} +0 -0
  372. /package/dist/{RadioGroupFieldDefault-J3ESFNPW.js.map → RadioGroupFieldDefault-ZLKZ4B4D.js.map} +0 -0
  373. /package/dist/{SelectFieldDefault-F2MAJW7S.js.map → SelectFieldDefault-WU4CDEZD.js.map} +0 -0
  374. /package/dist/{StatementDefault-FTAOOAL4.js.map → StatementDefault-T3RCCUE5.js.map} +0 -0
  375. /package/dist/{TableFieldDefault-LXHWAWPG.js.map → TableFieldDefault-S5XRYF36.js.map} +0 -0
  376. /package/dist/{TelFieldDefault-EHHOHIQD.js.map → TelFieldDefault-D5EW44ZU.js.map} +0 -0
  377. /package/dist/{TextAreaFieldDefault-VXPH3YGT.js.map → TextAreaFieldDefault-G5AIZNH7.js.map} +0 -0
  378. /package/dist/{TextFieldDefault-QWGENVEE.js.map → TextFieldDefault-FCVIHZTV.js.map} +0 -0
  379. /package/dist/{WorkScheduleFieldDefault-SJSAWRYV.js.map → WorkScheduleFieldDefault-5JZPKI2P.js.map} +0 -0
  380. /package/dist/{ZendeskDrawerDefault-SUUZWWY2.js.map → ZendeskDrawerDefault-WQ32QQVE.js.map} +0 -0
  381. /package/dist/{chunk-R4PLUUI3.js.map → chunk-2OGPILJM.js.map} +0 -0
  382. /package/dist/{chunk-RAVJ3LMO.js.map → chunk-2P4RPBIO.js.map} +0 -0
  383. /package/dist/{chunk-MEOD4UGO.js.map → chunk-2UZ72KAQ.js.map} +0 -0
  384. /package/dist/{chunk-IJDBUKEM.js.map → chunk-4Y2DWXQB.js.map} +0 -0
  385. /package/dist/{chunk-FHGQELT7.js.map → chunk-5EDCZGZV.js.map} +0 -0
  386. /package/dist/{chunk-HLR7IUW7.js.map → chunk-5QHQT6DL.js.map} +0 -0
  387. /package/dist/{chunk-N4TAXXWW.js.map → chunk-5TGKHA2W.js.map} +0 -0
  388. /package/dist/{chunk-QMPXBDDO.js.map → chunk-64AJX2DH.js.map} +0 -0
  389. /package/dist/{chunk-YQMALPDQ.js.map → chunk-65K5T3GC.js.map} +0 -0
  390. /package/dist/{chunk-3HAKPYWK.js.map → chunk-6K3ISPZ3.js.map} +0 -0
  391. /package/dist/{chunk-5MJH36G3.js.map → chunk-6QJZMW6S.js.map} +0 -0
  392. /package/dist/{chunk-5BGETBLF.js.map → chunk-6SDLOAEO.js.map} +0 -0
  393. /package/dist/{chunk-JJDAJQG4.js.map → chunk-6Y4QJ7WK.js.map} +0 -0
  394. /package/dist/{chunk-RXNDKUY6.js.map → chunk-72RFYT5Y.js.map} +0 -0
  395. /package/dist/{chunk-74U3UMRA.js.map → chunk-75P5LUKA.js.map} +0 -0
  396. /package/dist/{chunk-43MCQDBU.js.map → chunk-7N2A2ZJ5.js.map} +0 -0
  397. /package/dist/{chunk-3HZOTQHD.js.map → chunk-7X56CYUV.js.map} +0 -0
  398. /package/dist/{chunk-UB5WD4YM.js.map → chunk-ACKYD4QC.js.map} +0 -0
  399. /package/dist/{chunk-3BEEU2N4.js.map → chunk-AL37BOFX.js.map} +0 -0
  400. /package/dist/{chunk-WI6ZYN4S.js.map → chunk-ALF55LF2.js.map} +0 -0
  401. /package/dist/{chunk-S3YIFNST.js.map → chunk-B5UGFNCU.js.map} +0 -0
  402. /package/dist/{chunk-LZL5KK3N.js.map → chunk-B7HGVWIT.js.map} +0 -0
  403. /package/dist/{chunk-OOEKN64P.js.map → chunk-BAE2OWEH.js.map} +0 -0
  404. /package/dist/{chunk-VSBNYQZM.js.map → chunk-BC2H7WGB.js.map} +0 -0
  405. /package/dist/{chunk-ZR6AKRA3.js.map → chunk-BFSBZTDB.js.map} +0 -0
  406. /package/dist/{chunk-5EYREHAZ.js.map → chunk-BTP3NN3N.js.map} +0 -0
  407. /package/dist/{chunk-R3HLTYHX.js.map → chunk-CLAVZQBC.js.map} +0 -0
  408. /package/dist/{chunk-S6MU4NHQ.js.map → chunk-CMR5CIYN.js.map} +0 -0
  409. /package/dist/{chunk-JHH66SSM.js.map → chunk-CUSAI2ZT.js.map} +0 -0
  410. /package/dist/{chunk-DXHWEBVC.js.map → chunk-DHLSO7BU.js.map} +0 -0
  411. /package/dist/{chunk-WVND2FCE.js.map → chunk-DR25AW5C.js.map} +0 -0
  412. /package/dist/{chunk-OABRM5LK.js.map → chunk-DYNVJFJH.js.map} +0 -0
  413. /package/dist/{chunk-LBNA4RGS.js.map → chunk-EC6ZM3SX.js.map} +0 -0
  414. /package/dist/{chunk-7NZH3TF3.js.map → chunk-EN5ZMAYF.js.map} +0 -0
  415. /package/dist/{chunk-IFD3RW53.js.map → chunk-ET4QWXWY.js.map} +0 -0
  416. /package/dist/{chunk-552XBDTE.js.map → chunk-FFVTWWGX.js.map} +0 -0
  417. /package/dist/{chunk-2Y7QAG2Q.js.map → chunk-FOBUW3RN.js.map} +0 -0
  418. /package/dist/{chunk-L3XWJ35V.js.map → chunk-FTC4EFBO.js.map} +0 -0
  419. /package/dist/{chunk-6PRPMEWS.js.map → chunk-GFM747IZ.js.map} +0 -0
  420. /package/dist/{chunk-FYBXLFMI.js.map → chunk-GLJV3B55.js.map} +0 -0
  421. /package/dist/{chunk-FZVUO3UU.js.map → chunk-HBX37YK2.js.map} +0 -0
  422. /package/dist/{chunk-YTWEXSYT.js.map → chunk-HGBOZH6Q.js.map} +0 -0
  423. /package/dist/{chunk-E3HFSANG.js.map → chunk-HGETJXZZ.js.map} +0 -0
  424. /package/dist/{chunk-LBGZYTNR.js.map → chunk-HI7TK62N.js.map} +0 -0
  425. /package/dist/{chunk-AGZHFGBR.js.map → chunk-INV4YWPR.js.map} +0 -0
  426. /package/dist/{chunk-DA3D7BEQ.js.map → chunk-JBOUDOIM.js.map} +0 -0
  427. /package/dist/{chunk-UFLWSKNE.js.map → chunk-JXWFFVQO.js.map} +0 -0
  428. /package/dist/{chunk-5XNFVJNM.js.map → chunk-KIUI7FHF.js.map} +0 -0
  429. /package/dist/{chunk-766AUWUO.js.map → chunk-KMBA73YG.js.map} +0 -0
  430. /package/dist/{chunk-237RQGWE.js.map → chunk-KVMWDA6O.js.map} +0 -0
  431. /package/dist/{chunk-VJMCAVOL.js.map → chunk-L6V2G5TE.js.map} +0 -0
  432. /package/dist/{chunk-Q6NTGZUW.js.map → chunk-L7TAT462.js.map} +0 -0
  433. /package/dist/{chunk-ZZPQGX7X.js.map → chunk-LBJAKZ6V.js.map} +0 -0
  434. /package/dist/{chunk-FUOTJMAO.js.map → chunk-M64UJF3B.js.map} +0 -0
  435. /package/dist/{chunk-AEKGVWE5.js.map → chunk-MMIHT4V6.js.map} +0 -0
  436. /package/dist/{chunk-UJJ5576U.js.map → chunk-MVPXUUUE.js.map} +0 -0
  437. /package/dist/{chunk-Y4P3ZYQK.js.map → chunk-NORWRQQM.js.map} +0 -0
  438. /package/dist/{chunk-IKSPEKDA.js.map → chunk-O7TCU5D2.js.map} +0 -0
  439. /package/dist/{chunk-7WV3GBEI.js.map → chunk-OGKH4RJL.js.map} +0 -0
  440. /package/dist/{chunk-ZBJ4VEDO.js.map → chunk-OJTYP5W7.js.map} +0 -0
  441. /package/dist/{chunk-MOM5PCKI.js.map → chunk-OVA2X5BB.js.map} +0 -0
  442. /package/dist/{chunk-TPH6YQRJ.js.map → chunk-OXCSFW3F.js.map} +0 -0
  443. /package/dist/{chunk-SHXQGRNL.js.map → chunk-PK2E2DJH.js.map} +0 -0
  444. /package/dist/{chunk-SSBGIR74.js.map → chunk-PLKF2BTI.js.map} +0 -0
  445. /package/dist/{chunk-RWMNB4RJ.js.map → chunk-PX6B2DBO.js.map} +0 -0
  446. /package/dist/{chunk-32M6SNGV.js.map → chunk-PZFFXEI3.js.map} +0 -0
  447. /package/dist/{chunk-COZWEBRG.js.map → chunk-QV4FEP6W.js.map} +0 -0
  448. /package/dist/{chunk-QEIHXZIK.js.map → chunk-QV7CVQDJ.js.map} +0 -0
  449. /package/dist/{chunk-PSBC73OL.js.map → chunk-R5WFXN2Z.js.map} +0 -0
  450. /package/dist/{chunk-A3NABWR7.js.map → chunk-RRZ2GPQS.js.map} +0 -0
  451. /package/dist/{chunk-YRAIYQ2K.js.map → chunk-RUYVQ6R6.js.map} +0 -0
  452. /package/dist/{chunk-BTGWCFHJ.js.map → chunk-SBTZUZDR.js.map} +0 -0
  453. /package/dist/{chunk-5FOI6SK4.js.map → chunk-SW7DKXXK.js.map} +0 -0
  454. /package/dist/{chunk-K5XSOKKX.js.map → chunk-TXU6EUWN.js.map} +0 -0
  455. /package/dist/{chunk-EVJ77XIZ.js.map → chunk-U4344VZW.js.map} +0 -0
  456. /package/dist/{chunk-4Z2DLHAT.js.map → chunk-UBNSYRKM.js.map} +0 -0
  457. /package/dist/{chunk-X5TMQDWS.js.map → chunk-UN4RAIAR.js.map} +0 -0
  458. /package/dist/{chunk-R4F5WRKC.js.map → chunk-UOZUG2KL.js.map} +0 -0
  459. /package/dist/{chunk-R3NDFTIM.js.map → chunk-UZNF4JV3.js.map} +0 -0
  460. /package/dist/{chunk-GPXETIKG.js.map → chunk-V5OIMFSH.js.map} +0 -0
  461. /package/dist/{chunk-S62HZDF7.js.map → chunk-VDVWAYXP.js.map} +0 -0
  462. /package/dist/{chunk-DJOLLEOJ.js.map → chunk-VHAJRKCI.js.map} +0 -0
  463. /package/dist/{chunk-TFJOJCCS.js.map → chunk-VKKORLLM.js.map} +0 -0
  464. /package/dist/{chunk-AVJEDFND.js.map → chunk-VSXPCSKU.js.map} +0 -0
  465. /package/dist/{chunk-GBQPG5OU.js.map → chunk-VZXZ7ELU.js.map} +0 -0
  466. /package/dist/{chunk-JOHNIKN6.js.map → chunk-W2ZXKNL4.js.map} +0 -0
  467. /package/dist/{chunk-LRPDJWIO.js.map → chunk-WXEBBNWP.js.map} +0 -0
  468. /package/dist/{chunk-DJYO6IIO.js.map → chunk-XADVV6OP.js.map} +0 -0
  469. /package/dist/{chunk-XULW2ME7.js.map → chunk-XK77JKBO.js.map} +0 -0
  470. /package/dist/{chunk-65KMTRFL.js.map → chunk-XYV6WN5C.js.map} +0 -0
  471. /package/dist/{chunk-423VHE7M.js.map → chunk-YYMGZZTO.js.map} +0 -0
  472. /package/dist/{chunk-E37JLKX4.js.map → chunk-ZIFQZ33N.js.map} +0 -0
  473. /package/dist/{chunk-YNMQONDL.js.map → chunk-ZNGMRPG6.js.map} +0 -0
  474. /package/dist/{chunk-OOSCL4WD.js.map → chunk-ZSBQDVXM.js.map} +0 -0
  475. /package/dist/{chunk-CHRRWZHW.js.map → chunk-ZX3JVVRL.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{c as e}from"./chunk-EARN6G25.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as o,jsxs as t}from"react/jsx-runtime";var a=[{label:"Misconduct",description:"The employee is being dismissed due to unacceptable or improper behavior."},{label:"Performance",description:"When dismissing an employee for poor performance, employers are required by law to do so fairly. This means giving the employee reasonable opportunity to improve their performance prior to termination."},{label:"Workforce reduction",description:"The employee\u2019s position is being made redundant, and a layoff is underway."},{label:"Values",description:"The employee is misaligned with the company\u2019s values."},{label:"Compliance issue",description:"Use this option if the employee violated key policies, processes or procedures. For example, they failed to comply with their employment agreement\u2019s confidentiality clause."},{label:"Incapacity to perform inherent duties",description:"Use this option if the employee is physically or mentally unable to fulfill the work requirements of their role."},{label:"Mutual agreement",description:"Employee and employer made a mutual decision to end the relationship."},{label:"Decision to cancel hiring before the employee started",description:"Use this option only if the employee has not started work yet."},{label:"Job abandonment",description:"The employee has failed to appear for work; the Employer has been unsuccessful in establishing communications with the employee and does not know the employee\u2019s whereabouts."},{label:"Dissatisfaction with EOR service",description:t("span",{children:["We\u2019re sorry to see you go. If there is anything we can do to improve or if there is any remaining feedback you want to give us, please reach out to"," ",o("a",{href:"mailto:help@remote.com",target:"_blank",rel:"noopener noreferrer",children:"help@remote.com"}),"."]})},{label:"End of fixed-term contract",description:"Use this option when the employee fixed-term contract is coming to an end and will not be renewed or extended."}],r=n(()=>t(s,{children:[t("h3",{className:e("RemoteFlows__TerminationReasonsDetailContent__Title"),children:[" ","Why is this important?"]}),o("p",{className:e("RemoteFlows__TerminationReasonsDetailContent__Description"),children:"We're here to help you follow all applicable labor laws when terminating an employee. Here are all the legal reasons for termination. Please read them to make sure you enter the correct reason in the platform."}),o("h4",{className:e("RemoteFlows__TerminationReasonsDetailContent__Subtitle"),children:"Termination Reasons"}),o("ul",{className:e("RemoteFlows__TerminationReasonsDetailContent__List list-disc list-inside"),children:a.map(i=>t("li",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItem"),children:[o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemLabel"),children:i.label}),o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemDescription"),children:i.description})]},i.label))})]}),"TerminationReasonsDetailContent");export{r as a};
2
- //# sourceMappingURL=chunk-JOHNIKN6.js.map
1
+ import{c as e}from"./chunk-OSQ6VUDM.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as o,jsxs as t}from"react/jsx-runtime";var a=[{label:"Misconduct",description:"The employee is being dismissed due to unacceptable or improper behavior."},{label:"Performance",description:"When dismissing an employee for poor performance, employers are required by law to do so fairly. This means giving the employee reasonable opportunity to improve their performance prior to termination."},{label:"Workforce reduction",description:"The employee\u2019s position is being made redundant, and a layoff is underway."},{label:"Values",description:"The employee is misaligned with the company\u2019s values."},{label:"Compliance issue",description:"Use this option if the employee violated key policies, processes or procedures. For example, they failed to comply with their employment agreement\u2019s confidentiality clause."},{label:"Incapacity to perform inherent duties",description:"Use this option if the employee is physically or mentally unable to fulfill the work requirements of their role."},{label:"Mutual agreement",description:"Employee and employer made a mutual decision to end the relationship."},{label:"Decision to cancel hiring before the employee started",description:"Use this option only if the employee has not started work yet."},{label:"Job abandonment",description:"The employee has failed to appear for work; the Employer has been unsuccessful in establishing communications with the employee and does not know the employee\u2019s whereabouts."},{label:"Dissatisfaction with EOR service",description:t("span",{children:["We\u2019re sorry to see you go. If there is anything we can do to improve or if there is any remaining feedback you want to give us, please reach out to"," ",o("a",{href:"mailto:help@remote.com",target:"_blank",rel:"noopener noreferrer",children:"help@remote.com"}),"."]})},{label:"End of fixed-term contract",description:"Use this option when the employee fixed-term contract is coming to an end and will not be renewed or extended."}],r=n(()=>t(s,{children:[t("h3",{className:e("RemoteFlows__TerminationReasonsDetailContent__Title"),children:[" ","Why is this important?"]}),o("p",{className:e("RemoteFlows__TerminationReasonsDetailContent__Description"),children:"We're here to help you follow all applicable labor laws when terminating an employee. Here are all the legal reasons for termination. Please read them to make sure you enter the correct reason in the platform."}),o("h4",{className:e("RemoteFlows__TerminationReasonsDetailContent__Subtitle"),children:"Termination Reasons"}),o("ul",{className:e("RemoteFlows__TerminationReasonsDetailContent__List list-disc list-inside"),children:a.map(i=>t("li",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItem"),children:[o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemLabel"),children:i.label}),o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemDescription"),children:i.description})]},i.label))})]}),"TerminationReasonsDetailContent");export{r as a};
2
+ //# sourceMappingURL=chunk-W2ZXKNL4.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-OORPUQ3N.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function F({onSubmit:t,onSuccess:s,onError:m}){let{terminationBag:o}=e(),d=r(async a=>{let l=await o?.parseFormValues(a,!0);await t?.(l);let i=await o?.onSubmit(a);i?.error?m?.(i.rawError):i?.data&&await s?.(i.data)},"handleSubmit");return u(n,{defaultValues:o.fieldValues,fields:o?.fields,onSubmit:d})}r(F,"AdditionalDetailsForm");export{F as a};
2
- //# sourceMappingURL=chunk-LRPDJWIO.js.map
1
+ import{a as n}from"./chunk-XO4DAKV7.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function F({onSubmit:t,onSuccess:s,onError:m}){let{terminationBag:o}=e(),d=r(async a=>{let l=await o?.parseFormValues(a,!0);await t?.(l);let i=await o?.onSubmit(a);i?.error?m?.(i.rawError):i?.data&&await s?.(i.data)},"handleSubmit");return u(n,{defaultValues:o.fieldValues,fields:o?.fields,onSubmit:d})}r(F,"AdditionalDetailsForm");export{F as a};
2
+ //# sourceMappingURL=chunk-WXEBBNWP.js.map
@@ -1,2 +1,2 @@
1
- import{c as e}from"./chunk-EARN6G25.js";import{a as t}from"./chunk-P37U34EQ.js";import{cva as a}from"class-variance-authority";import{jsx as u}from"react/jsx-runtime";var i=a("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none aria-invalid:ring-destructive/20 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 RemoteFlows_ButtonDefault",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 RemoteFlows_ButtonDestructive",outline:"border border-input bg-background shadow-xs RemoteFlows_ButtonOutline",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80 RemoteFlows_ButtonSecondary",ghost:"hover:bg-accent hover:text-accent-foreground RemoteFlows_ButtonGhost",link:"text-link-button-primary underline-offset-4 hover:underline button-link RemoteFlows_ButtonLink"},size:{default:"h-9 px-4 py-7 has-[>svg]:px-3 RemoteFlows_ButtonDefault",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5 RemoteFlows_ButtonSm",lg:"h-10 rounded-md px-6 has-[>svg]:px-4 RemoteFlows_ButtonLg",icon:"size-9 RemoteFlows_ButtonIcon",link:"px-0 RemoteFlows_ButtonLink"}},defaultVariants:{variant:"default",size:"default"}});function m({className:o,variant:n,size:r,...s}){return u("button",{"data-slot":"button",className:e(i({variant:n,size:r,className:o}),"RemoteFlows__Button"),...s})}t(m,"Button");export{i as a,m as b};
2
- //# sourceMappingURL=chunk-DJYO6IIO.js.map
1
+ import{c as e}from"./chunk-OSQ6VUDM.js";import{a as t}from"./chunk-P37U34EQ.js";import{cva as a}from"class-variance-authority";import{jsx as u}from"react/jsx-runtime";var i=a("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none aria-invalid:ring-destructive/20 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 RemoteFlows_ButtonDefault",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 RemoteFlows_ButtonDestructive",outline:"border border-input bg-background shadow-xs RemoteFlows_ButtonOutline",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80 RemoteFlows_ButtonSecondary",ghost:"hover:bg-accent hover:text-accent-foreground RemoteFlows_ButtonGhost",link:"text-link-button-primary underline-offset-4 hover:underline button-link RemoteFlows_ButtonLink"},size:{default:"h-9 px-4 py-7 has-[>svg]:px-3 RemoteFlows_ButtonDefault",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5 RemoteFlows_ButtonSm",lg:"h-10 rounded-md px-6 has-[>svg]:px-4 RemoteFlows_ButtonLg",icon:"size-9 RemoteFlows_ButtonIcon",link:"px-0 RemoteFlows_ButtonLink"}},defaultVariants:{variant:"default",size:"default"}});function m({className:o,variant:n,size:r,...s}){return u("button",{"data-slot":"button",className:e(i({variant:n,size:r,className:o}),"RemoteFlows__Button"),...s})}t(m,"Button");export{i as a,m as b};
2
+ //# sourceMappingURL=chunk-XADVV6OP.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-EJCCWBLQ.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{m as n}from"./chunk-EARN6G25.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as b}from"react/jsx-runtime";function g({onSubmit:l,onSuccess:u,onError:d}){let{contractorOnboardingBag:i}=a(),m=e(async t=>{try{let o=await i.parseFormValues(t);await l?.(o);let r=await i.onSubmit(t);if(r?.data){await u?.(r?.data),r?._skipNextStep||i?.next();return}}catch(o){let r=n(o,i.meta?.fields?.eligibility_questionnaire);d?.(r)}},"handleSubmit"),p=i.stepState.values?.eligibility_questionnaire||i.initialValues.eligibility_questionnaire;return b(s,{defaultValues:p,onSubmit:m})}e(g,"EligibilityQuestionnaireStep");export{g as a};
2
- //# sourceMappingURL=chunk-XULW2ME7.js.map
1
+ import{a as s}from"./chunk-7SRRP2D6.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{m as n}from"./chunk-OSQ6VUDM.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as b}from"react/jsx-runtime";function g({onSubmit:l,onSuccess:u,onError:d}){let{contractorOnboardingBag:i}=a(),m=e(async t=>{try{let o=await i.parseFormValues(t);await l?.(o);let r=await i.onSubmit(t);if(r?.data){await u?.(r?.data),r?._skipNextStep||i?.next();return}}catch(o){let r=n(o,i.meta?.fields?.eligibility_questionnaire);d?.(r)}},"handleSubmit"),p=i.stepState.values?.eligibility_questionnaire||i.initialValues.eligibility_questionnaire;return b(s,{defaultValues:p,onSubmit:m})}e(g,"EligibilityQuestionnaireStep");export{g as a};
2
+ //# sourceMappingURL=chunk-XK77JKBO.js.map
@@ -0,0 +1,2 @@
1
+ import{b as n}from"./chunk-MRYRNB7Y.js";import{a as l}from"./chunk-7ZBLKUKE.js";import{a as t}from"./chunk-NTRKVVLQ.js";import{h as a}from"./chunk-72RFYT5Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e}from"react/jsx-runtime";function S({defaultValues:s,fields:i,onSubmit:d}){let{formId:F,terminationBag:o}=n(),m=l({handleValidation:o.handleValidation,defaultValues:s,checkFieldUpdates:o.checkFieldUpdates}),u=i||(o?.fields??[]);return e(a,{...m,children:e("form",{id:F,onSubmit:m.handleSubmit(d),className:"space-y-4 RemoteFlows__TerminationForm",children:e(t,{fields:u})})})}r(S,"TerminationForm");export{S as a};
2
+ //# sourceMappingURL=chunk-XO4DAKV7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/Termination/TerminationForm.tsx"],"sourcesContent":["import { JSFFields } from '@/src/types/remoteFlows';\nimport { JSONSchemaFormFields } from '@/src/components/form/JSONSchemaForm';\nimport { Form } from '@/src/components/ui/form';\nimport { useTerminationContext } from './context';\nimport { TerminationFormValues } from '@/src/flows/Termination/types';\nimport { useJSONSchemaForm } from '@/src/components/form/useJSONSchemaForm';\nimport { FieldValues } from 'react-hook-form';\nimport { ValidationResult } from '@remoteoss/remote-json-schema-form-kit';\n\ntype TerminationFormProps = {\n onSubmit: (payload: TerminationFormValues) => void;\n fields?: JSFFields;\n defaultValues: Record<string, unknown>;\n};\n\nexport function TerminationForm({\n defaultValues,\n fields,\n onSubmit,\n}: TerminationFormProps) {\n const { formId, terminationBag } = useTerminationContext();\n\n // casting handleValidation and checkFieldUpdates to the correct type\n // my reasoning is partners could use these functions directly and I want to avoid breaking changes on types\n const form = useJSONSchemaForm({\n handleValidation: terminationBag.handleValidation as (\n values: FieldValues,\n ) => Promise<ValidationResult | null>,\n defaultValues: defaultValues,\n checkFieldUpdates: terminationBag.checkFieldUpdates as (\n values: FieldValues,\n ) => void,\n });\n\n const jsonSchemaFields = fields ? fields : (terminationBag?.fields ?? []);\n\n return (\n <Form {...form}>\n <form\n id={formId}\n onSubmit={form.handleSubmit(onSubmit)}\n className='space-y-4 RemoteFlows__TerminationForm'\n >\n <JSONSchemaFormFields fields={jsonSchemaFields} />\n </form>\n </Form>\n );\n}\n"],"mappings":"wMA2CQ,cAAAA,MAAA,oBA5BD,SAASC,EAAgB,CAC9B,cAAAC,EACA,OAAAC,EACA,SAAAC,CACF,EAAyB,CACvB,GAAM,CAAE,OAAAC,EAAQ,eAAAC,CAAe,EAAIC,EAAsB,EAInDC,EAAOC,EAAkB,CAC7B,iBAAkBH,EAAe,iBAGjC,cAAeJ,EACf,kBAAmBI,EAAe,iBAGpC,CAAC,EAEKI,EAAmBP,IAAmBG,GAAgB,QAAU,CAAC,GAEvE,OACEN,EAACW,EAAA,CAAM,GAAGH,EACR,SAAAR,EAAC,QACC,GAAIK,EACJ,SAAUG,EAAK,aAAaJ,CAAQ,EACpC,UAAU,yCAEV,SAAAJ,EAACY,EAAA,CAAqB,OAAQF,EAAkB,EAClD,EACF,CAEJ,CAhCgBG,EAAAZ,EAAA","names":["jsx","TerminationForm","defaultValues","fields","onSubmit","formId","terminationBag","useTerminationContext","form","useJSONSchemaForm","jsonSchemaFields","Form","JSONSchemaFormFields","__name"]}
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-EJCCWBLQ.js";import{b as n}from"./chunk-Q3ALCPJN.js";import{m as i}from"./chunk-EARN6G25.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function P({onSubmit:d,onSuccess:m,onError:p}){let{contractorOnboardingBag:r}=n(),l=e(async a=>{try{let t=await r.parseFormValues(a);await d?.(t);let o=await r.onSubmit(a);if(o?.data){await m?.(o?.data),r?.next();return}}catch(t){let o=i(t,r.meta?.fields?.contract_preview);p?.(o)}},"handleSubmit"),u=r.stepState.values?.contract_preview||r.initialValues.contract_preview;return c("div",{className:"space-y-4",children:c(s,{defaultValues:u,onSubmit:l})})}e(P,"ContractPreviewStep");export{P as a};
2
- //# sourceMappingURL=chunk-65KMTRFL.js.map
1
+ import{a as s}from"./chunk-7SRRP2D6.js";import{b as n}from"./chunk-Q3ALCPJN.js";import{m as i}from"./chunk-OSQ6VUDM.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function P({onSubmit:d,onSuccess:m,onError:p}){let{contractorOnboardingBag:r}=n(),l=e(async a=>{try{let t=await r.parseFormValues(a);await d?.(t);let o=await r.onSubmit(a);if(o?.data){await m?.(o?.data),r?.next();return}}catch(t){let o=i(t,r.meta?.fields?.contract_preview);p?.(o)}},"handleSubmit"),u=r.stepState.values?.contract_preview||r.initialValues.contract_preview;return c("div",{className:"space-y-4",children:c(s,{defaultValues:u,onSubmit:l})})}e(P,"ContractPreviewStep");export{P as a};
2
+ //# sourceMappingURL=chunk-XYV6WN5C.js.map
@@ -1,2 +1,2 @@
1
- import{c as n}from"./chunk-EARN6G25.js";import{a as i}from"./chunk-P37U34EQ.js";import*as o from"@radix-ui/react-dialog";import{XIcon as s}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function p({...t}){return a(o.Root,{"data-slot":"dialog",...t})}i(p,"Dialog");function f({...t}){return a(o.Trigger,{"data-slot":"dialog-trigger",...t})}i(f,"DialogTrigger");function g({...t}){return a(o.Portal,{"data-slot":"dialog-portal",...t})}i(g,"DialogPortal");function d({className:t,...e}){return a(o.Overlay,{"data-slot":"dialog-overlay",className:n("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}i(d,"DialogOverlay");function u({className:t,children:e,...r}){return l(g,{"data-slot":"dialog-portal",children:[a(d,{}),l(o.Content,{"data-slot":"dialog-content",className:n("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...r,children:[e,l(o.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 RemoteFlows__Dialog__Close",children:[a(s,{}),a("span",{className:"sr-only",children:"Close"})]})]})]})}i(u,"DialogContent");function v({className:t,...e}){return a("div",{"data-slot":"dialog-header",className:n("flex flex-col gap-2 text-center sm:text-left",t),...e})}i(v,"DialogHeader");function D({className:t,...e}){return a("div",{"data-slot":"dialog-footer",className:n("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}i(D,"DialogFooter");function P({className:t,...e}){return a(o.Title,{"data-slot":"dialog-title",className:n("text-lg leading-none font-semibold",t),...e})}i(P,"DialogTitle");function C({className:t,...e}){return a(o.Description,{"data-slot":"dialog-description",className:n("text-muted-foreground text-sm",t),...e})}i(C,"DialogDescription");export{p as a,f as b,u as c,v as d,D as e,P as f,C as g};
2
- //# sourceMappingURL=chunk-423VHE7M.js.map
1
+ import{c as n}from"./chunk-OSQ6VUDM.js";import{a as i}from"./chunk-P37U34EQ.js";import*as o from"@radix-ui/react-dialog";import{XIcon as s}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function p({...t}){return a(o.Root,{"data-slot":"dialog",...t})}i(p,"Dialog");function f({...t}){return a(o.Trigger,{"data-slot":"dialog-trigger",...t})}i(f,"DialogTrigger");function g({...t}){return a(o.Portal,{"data-slot":"dialog-portal",...t})}i(g,"DialogPortal");function d({className:t,...e}){return a(o.Overlay,{"data-slot":"dialog-overlay",className:n("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}i(d,"DialogOverlay");function u({className:t,children:e,...r}){return l(g,{"data-slot":"dialog-portal",children:[a(d,{}),l(o.Content,{"data-slot":"dialog-content",className:n("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...r,children:[e,l(o.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 RemoteFlows__Dialog__Close",children:[a(s,{}),a("span",{className:"sr-only",children:"Close"})]})]})]})}i(u,"DialogContent");function v({className:t,...e}){return a("div",{"data-slot":"dialog-header",className:n("flex flex-col gap-2 text-center sm:text-left",t),...e})}i(v,"DialogHeader");function D({className:t,...e}){return a("div",{"data-slot":"dialog-footer",className:n("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}i(D,"DialogFooter");function P({className:t,...e}){return a(o.Title,{"data-slot":"dialog-title",className:n("text-lg leading-none font-semibold",t),...e})}i(P,"DialogTitle");function C({className:t,...e}){return a(o.Description,{"data-slot":"dialog-description",className:n("text-muted-foreground text-sm",t),...e})}i(C,"DialogDescription");export{p as a,f as b,u as c,v as d,D as e,P as f,C as g};
2
+ //# sourceMappingURL=chunk-YYMGZZTO.js.map
@@ -1,2 +1,2 @@
1
- import{b as i,c as m,d as s,e as f}from"./chunk-AEKGVWE5.js";import{a as n}from"./chunk-TXSUZLOI.js";import{a}from"./chunk-P37U34EQ.js";import{useState as O}from"react";var B=a(({proposedTerminationDate:e,employeeName:y,employmentId:o,employment:r,render:d})=>{let[t,u]=O(!1),l=m({employmentId:o}),p=n(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=i({employmentId:o,options:{enabled:t}}),D=s({employmentId:o,date:e}),P=f({employmentId:o,proposedTerminationDate:e,employment:r});return d({leavePoliciesSummaryQuery:l,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:D,formattedProposedTerminationDate:p,employeeName:y,proposedTerminationDate:e,summaryData:P??{data:{entitledDays:"0 days",bookedDays:"0 days",usedDays:"0 days",approvedDaysBeforeTermination:"0 days",approvedDaysAfterTermination:"0 days",remainingDays:"0 days",isUnlimitedPto:!1},isLoading:!1,isError:!1,error:null},employment:r,open:t,onOpenChange:a(()=>{u(T=>!T)},"onOpenChange")})},"PaidTimeOffContainer");export{B as a};
2
- //# sourceMappingURL=chunk-E37JLKX4.js.map
1
+ import{b as i,c as m,d as s,e as f}from"./chunk-MMIHT4V6.js";import{a as n}from"./chunk-TXSUZLOI.js";import{a}from"./chunk-P37U34EQ.js";import{useState as O}from"react";var B=a(({proposedTerminationDate:e,employeeName:y,employmentId:o,employment:r,render:d})=>{let[t,u]=O(!1),l=m({employmentId:o}),p=n(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=i({employmentId:o,options:{enabled:t}}),D=s({employmentId:o,date:e}),P=f({employmentId:o,proposedTerminationDate:e,employment:r});return d({leavePoliciesSummaryQuery:l,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:D,formattedProposedTerminationDate:p,employeeName:y,proposedTerminationDate:e,summaryData:P??{data:{entitledDays:"0 days",bookedDays:"0 days",usedDays:"0 days",approvedDaysBeforeTermination:"0 days",approvedDaysAfterTermination:"0 days",remainingDays:"0 days",isUnlimitedPto:!1},isLoading:!1,isError:!1,error:null},employment:r,open:t,onOpenChange:a(()=>{u(T=>!T)},"onOpenChange")})},"PaidTimeOffContainer");export{B as a};
2
+ //# sourceMappingURL=chunk-ZIFQZ33N.js.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-TPH6YQRJ.js";import{a as F}from"./chunk-3BEEU2N4.js";import{j as p,k as l,l as i,m as a,n as c}from"./chunk-RXNDKUY6.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as $,useState as v}from"react";import{jsx as n,jsxs as C}from"react/jsx-runtime";function L({field:t,fieldState:b,fieldData:o}){let[g,s]=v([]),_=m(e=>{let r=e.map(({value:S})=>S);t.onChange(r),s(e)},"handleChange");$(()=>{t.value&&o.options&&s(t.value.map(e=>o?.options?.find(r=>r.value===e)))},[t.value,o.options]);let y=[...Object.entries(o.$meta?.regions||{}).map(([e,r])=>({value:r,label:e,category:"Regions"})),...Object.entries(o.$meta?.subregions||{}).map(([e,r])=>({value:r,label:e,category:"Subregions"})),...o.options?.map(e=>({...e,value:e.value,label:e.label,category:"Countries"}))||[]];return C(p,{"data-field":t.name,className:`RemoteFlows__CountryField__Item__${t.name}`,children:[n(l,{className:"RemoteFlows__CountryField__Label",children:o.label}),n(i,{children:n(u,{options:y,selected:g,onChange:_})}),o.description&&C(a,{children:[o.description," ",n(F,{helpCenter:o.meta?.helpCenter})]}),b.error&&n(c,{})]})}m(L,"CountryFieldDefault");export{L as a};
2
- //# sourceMappingURL=chunk-YNMQONDL.js.map
1
+ import{a as F}from"./chunk-OXCSFW3F.js";import{a as u}from"./chunk-AL37BOFX.js";import{j as p,k as l,l as i,m as a,n as c}from"./chunk-72RFYT5Y.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as $,useState as v}from"react";import{jsx as n,jsxs as C}from"react/jsx-runtime";function L({field:t,fieldState:b,fieldData:o}){let[g,s]=v([]),_=m(e=>{let r=e.map(({value:S})=>S);t.onChange(r),s(e)},"handleChange");$(()=>{t.value&&o.options&&s(t.value.map(e=>o?.options?.find(r=>r.value===e)))},[t.value,o.options]);let y=[...Object.entries(o.$meta?.regions||{}).map(([e,r])=>({value:r,label:e,category:"Regions"})),...Object.entries(o.$meta?.subregions||{}).map(([e,r])=>({value:r,label:e,category:"Subregions"})),...o.options?.map(e=>({...e,value:e.value,label:e.label,category:"Countries"}))||[]];return C(p,{"data-field":t.name,className:`RemoteFlows__CountryField__Item__${t.name}`,children:[n(l,{className:"RemoteFlows__CountryField__Label",children:o.label}),n(i,{children:n(F,{options:y,selected:g,onChange:_})}),o.description&&C(a,{children:[o.description," ",n(u,{helpCenter:o.meta?.helpCenter})]}),b.error&&n(c,{})]})}m(L,"CountryFieldDefault");export{L as a};
2
+ //# sourceMappingURL=chunk-ZNGMRPG6.js.map
@@ -1,2 +1,2 @@
1
- import{a as H}from"./chunk-AP56UUME.js";import{a as z}from"./chunk-IJCTN52C.js";import{e as E}from"./chunk-AHRG5QCS.js";import{a as P,b as Y,c as X,d as _,f as q}from"./chunk-PX5PE6GX.js";import{a as N}from"./chunk-WVJDCDGZ.js";import{a as W}from"./chunk-FZVUO3UU.js";import{a as b}from"./chunk-NZ7BAZNH.js";import{d as x}from"./chunk-552XBDTE.js";import{$ as B,B as v,F as U,N as J,Q as K,S as j,U as A,V as G,W as V,X as k,_ as $,f as I,h as M,p as D,r as T,s as L,t as Q}from"./chunk-R47Q7R6C.js";import{a as O,i as w}from"./chunk-EARN6G25.js";import{d as a}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{useMemo as be}from"react";import{useMutation as f,useQuery as p}from"@tanstack/react-query";import{useMutation as de,useQuery as Z}from"@tanstack/react-query";var Re=n(()=>{let{client:e}=a();return de({mutationFn:n(t=>j({client:e,body:t,headers:{Authorization:""}}),"mutationFn")})},"useUploadFile"),ee=n(e=>{let{client:t}=a();return Z({queryKey:["download-file",e],queryFn:n(async()=>{let o=await v({client:t,path:{id:e}});if(o.error)throw o.error;return o.data},"queryFn"),select:n(({data:o})=>o?.file,"select"),enabled:!!e})},"useDownloadFile"),te=n((e,t,o)=>{let{client:r}=a();return Z({queryKey:["employment-files",e],queryFn:n(async()=>{let i=await K({client:r,path:{employment_id:e},query:t});if(i.error)throw i.error;return i.data},"queryFn"),...o})},"useEmploymentFiles");import{useQuery as me}from"@tanstack/react-query";import{useQuery as pe}from"@tanstack/react-query";var ne=n(()=>{let{client:e}=a();return pe({queryKey:["identity"],queryFn:n(()=>G({client:e,headers:{Authorization:""}}),"queryFn"),select:n(t=>t.data?.data,"select")})},"useIdentity");function ye(e){return e!=null&&"company"in e}n(ye,"hasCompany");var oe=n((e={enabled:!0})=>{let{data:t}=ne(),o=ye(t)?t?.company?.id??"":"",{client:r}=a();return me({queryKey:["pricing-plans",o],queryFn:n(()=>I({client:r,path:{company_id:o}}),"queryFn"),select:n(i=>i.data?.data?.pricing_plans,"select"),enabled:!!e?.enabled&&!!o})},"useCompanyPricingPlans");var fe=n(({employmentId:e,options:t})=>{let{client:o}=a();return p({queryKey:["contractor-currencies",e],queryFn:n(async()=>Q({client:o,path:{employment_id:e},query:{restrict_to_guaranteed_pay_out_currencies:!1}}),"queryFn"),enabled:t?.queryOptions?.enabled,select:n(({data:r})=>r?.data,"select")})},"useContractorCurrencies"),yt=n(({fieldValues:e,options:t})=>p({queryKey:["contract-document-signature",e.review_completed,t?.jsfModify],queryFn:n(async()=>b(z,e,{jsfModify:t?.jsfModify}),"queryFn"),enabled:t?.queryOptions?.enabled}),"useGetContractDocumentSignatureSchema"),bt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,contractDocumentId:o,payload:r})=>A({client:e,body:r,path:{employment_id:t,contract_document_id:o}}),"mutationFn")})},"useSignContractDocument"),ft=n(({employmentId:e,contractDocumentId:t,options:o})=>{let{client:r}=a();return p({queryKey:["contract-document",e,t],queryFn:n(async()=>T({client:r,path:{employment_id:e,id:t}}),"queryFn"),enabled:o?.queryOptions?.enabled,select:n(({data:i})=>({...i?.data,contract_document:{...i?.data?.contract_document,content:w(i?.data?.contract_document?.content)}}),"select")})},"useGetShowContractDocument"),Ce=n(({employmentId:e,options:t})=>{let{client:o}=a();return p({queryKey:["contractor-subscriptions",e],queryFn:n(async()=>D({client:o,path:{employment_id:e}}),"queryFn"),enabled:t?.queryOptions?.enabled,select:n(({data:r})=>r?.data,"select")})},"useGetContractorSubscriptions"),Ct=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,payload:o})=>k({client:e,body:o,path:{employment_id:t}}),"mutationFn")})},"usePostManageContractorSubscriptions"),gt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,payload:o})=>J({client:e,body:o,path:{employment_id:t}}),"mutationFn")})},"useCreateContractorContractDocument"),ge=n(({countryCode:e,employmentId:t,fieldValues:o,options:r})=>{let{client:i}=a();return p({queryKey:["contractor-onboarding-details-schema",e,t],retry:!1,queryFn:n(async()=>M({client:i,path:{country_code:e},query:{json_schema_version:1,employment_id:t}}),"queryFn"),enabled:r?.queryOptions?.enabled,select:n(({data:s})=>{let c=s?.data?.schema||{};return b(c,o,r)},"select")})},"useContractorOnboardingDetailsSchema"),Fe={[P]:"Contractor Management",[Y]:"Contractor Management Plus",[X]:"Contractor of Record"},Se=n(e=>{let{data:t,isLoading:o}=oe({enabled:e?.enabled}),r=t?.find(s=>s.product.name==="EOR Monthly");return{eorSubscription:{product:{identifier:_,short_name:"EOR"},currency:r?.price.currency,price:{amount:x(r?.price.amount??0)},features:["Contract between Remote and employee","Remote manages onboarding, payroll, and compliance","Manages taxes, benefits, and time-off tracking","Handles contracts, transfers, and terminations"],description:"Enables hiring in countries without a local entity",label:"Employer of Record",value:_},isLoading:o}},"useEorSubscription"),he=n((e,t,o)=>(E(_,o)&&e.push({label:t.label,value:t.value,description:t.description,meta:{features:t.features,price:{amount:t.price.amount,currencyCode:t.currency?.code??""}},disabled:!1}),e),"addEorToFieldOptions"),Ft=n((e,t,o)=>{let{data:r,isLoading:i,refetch:s}=Ce({employmentId:e,options:{queryOptions:o?.queryOptions}}),c=r?.length===0,u=r?.length===1,l=r?.find(S=>S.product.short_name==="COR")?.eligibility_questionnaire?.is_blocking,d=(u||l===!0||c)&&t?.eor_onboarding,{eorSubscription:C,isLoading:re}=Se({enabled:d}),R=b(H.data.schema,{},o);if(r){let S=R.fields.find(h=>h.name==="subscription");if(S){let h=r.filter(m=>E(m.product.identifier??"",o?.excludeProducts)).map(m=>{let y=m.product,ie=m.price.amount,ae=m.currency.code,se=Fe[y.identifier]??"",ce=y.identifier??"",le=y.description??"",ue={features:y.features??[],price:{amount:x(ie),currencyCode:ae}};return{label:se,value:ce,description:le,meta:ue,disabled:l&&y.identifier!==P}});h.sort((m,y)=>m.label.localeCompare(y.label));let g=[];d&&(he(g,C,o?.excludeProducts),g.length>0&&(g[0].meta={...g[0].meta,groupSeparator:{show:!0}})),S.options=[...h,...g]}}return{isLoading:i||re,form:R,contractorSubscriptions:r,refetch:s,isEligibilityQuestionnaireBlocked:l}},"useContractorSubscriptionSchemaField"),St=n((e,t,o)=>{let{mutateAsyncOrThrow:r}=O(t),{mutateAsyncOrThrow:i}=O(e);return{mutateAsync:n(async({employmentId:s})=>{let{nationality_status:c,ir35:u,ir35_sds_file:F}=o,l={contract_document:{ir_35:u}},d={contract_document:{nationality:c}};return u?(await i({employmentId:s,payload:l}),F?r({employment_id:s,file:F,sub_type:q}):Promise.resolve()):c?i({employmentId:s,payload:d}):Promise.resolve()},"mutateAsync")}},"useUpdateUKandSaudiFields"),ht=n((e,t)=>{let{data:o,isLoading:r}=te(e,{sub_type:q},{...t,select:n(({data:c})=>c?.files?.filter(u=>u.sub_type===q),"select")}),i=o?.[0]?.id,s=ee(i);return{...s,isLoading:r||s.isLoading}},"useGetIR35File"),_t=n((e,t)=>{let{client:o}=a();return p({queryKey:["contract-documents",e],queryFn:n(async()=>L({client:o,path:{employment_id:e}}),"queryFn"),enabled:t?.enabled,select:n(({data:r})=>r?.data?.contract_documents,"select")})},"useGetContractDocuments"),qt=n(({options:e,fieldValues:t})=>{let{client:o}=a();return p({queryKey:["eligibility-questionnaire"],queryFn:n(async()=>{let r=await V({client:o,query:{type:"contractor_of_record",json_schema_version:1}});if(r.error)throw new Error("Failed to fetch eligibility questionnaire");return r.data.data},"queryFn"),select:n(r=>{let i=r?.schema||{};return b(i,t,{jsfModify:e?.jsfModify})},"select"),enabled:e?.queryOptions?.enabled})},"useGetEligibilityQuestionnaire"),Ot=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,payload:o})=>U({client:e,body:{employment_slug:t,responses:o,type:"contractor_of_record"},query:{json_schema_version:1}}),"mutationFn")})},"usePostCreateEligibilityQuestionnaire"),xt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t})=>B({client:e,path:{employment_id:t}}),"mutationFn")})},"usePostManageContractorCorSubscription"),Pt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t})=>$({client:e,path:{employment_id:t}}),"mutationFn")})},"useDeleteContractorCorSubscription"),Et=n(e=>{let{client:t}=a(),{data:o,isLoading:r}=p({...W(t,"contractor-onboarding-countries"),select:n(s=>s.data?.data?.map(c=>({label:c.name,value:c.code,eor_onboarding:c.eor_onboarding,contractor_products_available:c.contractor_products_available}))||[],"select"),enabled:e?.queryOptions?.enabled}),i=b(N.data.schema,{},e);if(o){let s=i.fields.find(c=>c.name==="country");s&&(s.options=o)}return{isLoading:r,selectCountryForm:i,countries:o}},"useCountriesSchemaField"),Rt=n(({countryCode:e,employmentId:t,fieldValues:o,options:r})=>{let i=ge({countryCode:e,employmentId:t,fieldValues:o,options:r}),{data:s,isLoading:c}=fe({employmentId:t,options:{queryOptions:{enabled:r?.queryOptions?.enabled}}}),u=be(()=>!i.data||!s?i.data:{...i.data,fields:i.data.fields.map(l=>l.name!=="payment_terms"?l:{...l,fields:l.fields?.map(d=>d.name!=="compensation_currency_code"?d:{...d,options:s.map(C=>({label:C.code,value:C.code,meta:{source:C.source}}))})})},[i.data,s]);return{...i,data:u,isLoading:i.isLoading||c}},"useContractorOnboardingDetailsSchemaWithCurrencies");export{Re as a,ne as b,ye as c,yt as d,bt as e,ft as f,Ce as g,Ct as h,gt as i,Fe as j,Ft as k,St as l,ht as m,_t as n,qt as o,Ot as p,xt as q,Pt as r,Et as s,Rt as t};
2
- //# sourceMappingURL=chunk-D3EUFZXJ.js.map
1
+ import{a as H}from"./chunk-AP56UUME.js";import{a as z}from"./chunk-IJCTN52C.js";import{e as E}from"./chunk-AHRG5QCS.js";import{a as P,b as Y,c as X,d as _,f as q}from"./chunk-PX5PE6GX.js";import{a as W}from"./chunk-WVJDCDGZ.js";import{a as B}from"./chunk-HBX37YK2.js";import{a as b}from"./chunk-JR6VISHQ.js";import{d as x}from"./chunk-FFVTWWGX.js";import{$ as N,B as v,F as U,N as J,Q as K,S as j,U as A,V as G,W as V,X as k,_ as $,f as I,h as M,p as D,r as T,s as L,t as Q}from"./chunk-O5XQUEB5.js";import{a as O,i as w}from"./chunk-OSQ6VUDM.js";import{d as a}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{useMemo as be}from"react";import{useMutation as f,useQuery as p}from"@tanstack/react-query";import{useMutation as de,useQuery as Z}from"@tanstack/react-query";var Re=n(()=>{let{client:e}=a();return de({mutationFn:n(t=>j({client:e,body:t,headers:{Authorization:""}}),"mutationFn")})},"useUploadFile"),ee=n(e=>{let{client:t}=a();return Z({queryKey:["download-file",e],queryFn:n(async()=>{let o=await v({client:t,path:{id:e}});if(o.error)throw o.error;return o.data},"queryFn"),select:n(({data:o})=>o?.file,"select"),enabled:!!e})},"useDownloadFile"),te=n((e,t,o)=>{let{client:r}=a();return Z({queryKey:["employment-files",e],queryFn:n(async()=>{let i=await K({client:r,path:{employment_id:e},query:t});if(i.error)throw i.error;return i.data},"queryFn"),...o})},"useEmploymentFiles");import{useQuery as me}from"@tanstack/react-query";import{useQuery as pe}from"@tanstack/react-query";var ne=n(()=>{let{client:e}=a();return pe({queryKey:["identity"],queryFn:n(()=>G({client:e,headers:{Authorization:""}}),"queryFn"),select:n(t=>t.data?.data,"select")})},"useIdentity");function ye(e){return e!=null&&"company"in e}n(ye,"hasCompany");var oe=n((e={enabled:!0})=>{let{data:t}=ne(),o=ye(t)?t?.company?.id??"":"",{client:r}=a();return me({queryKey:["pricing-plans",o],queryFn:n(()=>I({client:r,path:{company_id:o}}),"queryFn"),select:n(i=>i.data?.data?.pricing_plans,"select"),enabled:!!e?.enabled&&!!o})},"useCompanyPricingPlans");var fe=n(({employmentId:e,options:t})=>{let{client:o}=a();return p({queryKey:["contractor-currencies",e],queryFn:n(async()=>Q({client:o,path:{employment_id:e},query:{restrict_to_guaranteed_pay_out_currencies:!1}}),"queryFn"),enabled:t?.queryOptions?.enabled,select:n(({data:r})=>r?.data,"select")})},"useContractorCurrencies"),yt=n(({fieldValues:e,options:t})=>p({queryKey:["contract-document-signature",e.review_completed,t?.jsfModify],queryFn:n(async()=>b(z,e,{jsfModify:t?.jsfModify}),"queryFn"),enabled:t?.queryOptions?.enabled}),"useGetContractDocumentSignatureSchema"),bt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,contractDocumentId:o,payload:r})=>A({client:e,body:r,path:{employment_id:t,contract_document_id:o}}),"mutationFn")})},"useSignContractDocument"),ft=n(({employmentId:e,contractDocumentId:t,options:o})=>{let{client:r}=a();return p({queryKey:["contract-document",e,t],queryFn:n(async()=>T({client:r,path:{employment_id:e,id:t}}),"queryFn"),enabled:o?.queryOptions?.enabled,select:n(({data:i})=>({...i?.data,contract_document:{...i?.data?.contract_document,content:w(i?.data?.contract_document?.content)}}),"select")})},"useGetShowContractDocument"),Ce=n(({employmentId:e,options:t})=>{let{client:o}=a();return p({queryKey:["contractor-subscriptions",e],queryFn:n(async()=>D({client:o,path:{employment_id:e}}),"queryFn"),enabled:t?.queryOptions?.enabled,select:n(({data:r})=>r?.data,"select")})},"useGetContractorSubscriptions"),Ct=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,payload:o})=>k({client:e,body:o,path:{employment_id:t}}),"mutationFn")})},"usePostManageContractorSubscriptions"),gt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,payload:o})=>J({client:e,body:o,path:{employment_id:t}}),"mutationFn")})},"useCreateContractorContractDocument"),ge=n(({countryCode:e,employmentId:t,fieldValues:o,options:r})=>{let{client:i}=a();return p({queryKey:["contractor-onboarding-details-schema",e,t],retry:!1,queryFn:n(async()=>M({client:i,path:{country_code:e},query:{json_schema_version:1,employment_id:t}}),"queryFn"),enabled:r?.queryOptions?.enabled,select:n(({data:s})=>{let c=s?.data?.schema||{};return b(c,o,r)},"select")})},"useContractorOnboardingDetailsSchema"),Fe={[P]:"Contractor Management",[Y]:"Contractor Management Plus",[X]:"Contractor of Record"},Se=n(e=>{let{data:t,isLoading:o}=oe({enabled:e?.enabled}),r=t?.find(s=>s.product.name==="EOR Monthly");return{eorSubscription:{product:{identifier:_,short_name:"EOR"},currency:r?.price.currency,price:{amount:x(r?.price.amount??0)},features:["Contract between Remote and employee","Remote manages onboarding, payroll, and compliance","Manages taxes, benefits, and time-off tracking","Handles contracts, transfers, and terminations"],description:"Enables hiring in countries without a local entity",label:"Employer of Record",value:_},isLoading:o}},"useEorSubscription"),he=n((e,t,o)=>(E(_,o)&&e.push({label:t.label,value:t.value,description:t.description,meta:{features:t.features,price:{amount:t.price.amount,currencyCode:t.currency?.code??""}},disabled:!1}),e),"addEorToFieldOptions"),Ft=n((e,t,o)=>{let{data:r,isLoading:i,refetch:s}=Ce({employmentId:e,options:{queryOptions:o?.queryOptions}}),c=r?.length===0,u=r?.length===1,l=r?.find(S=>S.product.short_name==="COR")?.eligibility_questionnaire?.is_blocking,d=(u||l===!0||c)&&t?.eor_onboarding,{eorSubscription:C,isLoading:re}=Se({enabled:d}),R=b(H.data.schema,{},o);if(r){let S=R.fields.find(h=>h.name==="subscription");if(S){let h=r.filter(m=>E(m.product.identifier??"",o?.excludeProducts)).map(m=>{let y=m.product,ie=m.price.amount,ae=m.currency.code,se=Fe[y.identifier]??"",ce=y.identifier??"",le=y.description??"",ue={features:y.features??[],price:{amount:x(ie),currencyCode:ae}};return{label:se,value:ce,description:le,meta:ue,disabled:l&&y.identifier!==P}});h.sort((m,y)=>m.label.localeCompare(y.label));let g=[];d&&(he(g,C,o?.excludeProducts),g.length>0&&(g[0].meta={...g[0].meta,groupSeparator:{show:!0}})),S.options=[...h,...g]}}return{isLoading:i||re,form:R,contractorSubscriptions:r,refetch:s,isEligibilityQuestionnaireBlocked:l}},"useContractorSubscriptionSchemaField"),St=n((e,t,o)=>{let{mutateAsyncOrThrow:r}=O(t),{mutateAsyncOrThrow:i}=O(e);return{mutateAsync:n(async({employmentId:s})=>{let{nationality_status:c,ir35:u,ir35_sds_file:F}=o,l={contract_document:{ir_35:u}},d={contract_document:{nationality:c}};return u?(await i({employmentId:s,payload:l}),F?r({employment_id:s,file:F,sub_type:q}):Promise.resolve()):c?i({employmentId:s,payload:d}):Promise.resolve()},"mutateAsync")}},"useUpdateUKandSaudiFields"),ht=n((e,t)=>{let{data:o,isLoading:r}=te(e,{sub_type:q},{...t,select:n(({data:c})=>c?.files?.filter(u=>u.sub_type===q),"select")}),i=o?.[0]?.id,s=ee(i);return{...s,isLoading:r||s.isLoading}},"useGetIR35File"),_t=n((e,t)=>{let{client:o}=a();return p({queryKey:["contract-documents",e],queryFn:n(async()=>L({client:o,path:{employment_id:e}}),"queryFn"),enabled:t?.enabled,select:n(({data:r})=>r?.data?.contract_documents,"select")})},"useGetContractDocuments"),qt=n(({options:e,fieldValues:t})=>{let{client:o}=a();return p({queryKey:["eligibility-questionnaire"],queryFn:n(async()=>{let r=await V({client:o,query:{type:"contractor_of_record",json_schema_version:1}});if(r.error)throw new Error("Failed to fetch eligibility questionnaire");return r.data.data},"queryFn"),select:n(r=>{let i=r?.schema||{};return b(i,t,{jsfModify:e?.jsfModify})},"select"),enabled:e?.queryOptions?.enabled})},"useGetEligibilityQuestionnaire"),Ot=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,payload:o})=>U({client:e,body:{employment_slug:t,responses:o,type:"contractor_of_record"},query:{json_schema_version:1}}),"mutationFn")})},"usePostCreateEligibilityQuestionnaire"),xt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t})=>N({client:e,path:{employment_id:t}}),"mutationFn")})},"usePostManageContractorCorSubscription"),Pt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t})=>$({client:e,path:{employment_id:t}}),"mutationFn")})},"useDeleteContractorCorSubscription"),Et=n(e=>{let{client:t}=a(),{data:o,isLoading:r}=p({...B(t,"contractor-onboarding-countries"),select:n(s=>s.data?.data?.map(c=>({label:c.name,value:c.code,eor_onboarding:c.eor_onboarding,contractor_products_available:c.contractor_products_available}))||[],"select"),enabled:e?.queryOptions?.enabled}),i=b(W.data.schema,{},e);if(o){let s=i.fields.find(c=>c.name==="country");s&&(s.options=o)}return{isLoading:r,selectCountryForm:i,countries:o}},"useCountriesSchemaField"),Rt=n(({countryCode:e,employmentId:t,fieldValues:o,options:r})=>{let i=ge({countryCode:e,employmentId:t,fieldValues:o,options:r}),{data:s,isLoading:c}=fe({employmentId:t,options:{queryOptions:{enabled:r?.queryOptions?.enabled}}}),u=be(()=>!i.data||!s?i.data:{...i.data,fields:i.data.fields.map(l=>l.name!=="payment_terms"?l:{...l,fields:l.fields?.map(d=>d.name!=="compensation_currency_code"?d:{...d,options:s.map(C=>({label:C.code,value:C.code,meta:{source:C.source}}))})})},[i.data,s]);return{...i,data:u,isLoading:i.isLoading||c}},"useContractorOnboardingDetailsSchemaWithCurrencies");export{Re as a,ne as b,ye as c,yt as d,bt as e,ft as f,Ce as g,Ct as h,gt as i,Fe as j,Ft as k,St as l,ht as m,_t as n,qt as o,Ot as p,xt as q,Pt as r,Et as s,Rt as t};
2
+ //# sourceMappingURL=chunk-ZQZWWNXL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/ContractorOnboarding/api.ts","../src/common/api/files.ts","../src/common/api/companies.ts","../src/common/api/identity.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport {\n CreateContractDocument,\n getShowContractDocument,\n getShowContractorContractDetailsCountry,\n getIndexSubscription,\n ManageContractorPlusSubscriptionOperationsParams,\n postCreateContractDocument,\n postManageContractorPlusSubscriptionSubscription,\n postSignContractDocument,\n SignContractDocument,\n getIndexEmploymentContractDocument,\n EligibilityQuestionnaireJsonSchemaResponse,\n getShowEligibilityQuestionnaire,\n SubmitEligibilityQuestionnaireRequest,\n postCreateEligibilityQuestionnaire,\n postManageContractorCorSubscriptionSubscription,\n deleteDeleteContractorCorSubscriptionSubscription,\n getIndexContractorCurrency,\n Country,\n} from '@/src/client';\nimport { useClient } from '@/src/context';\nimport { signatureSchema } from '@/src/flows/ContractorOnboarding/json-schemas/signature';\nimport { selectContractorSubscriptionStepSchema } from '@/src/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep';\nimport {\n JSONSchemaFormResultWithFieldsets,\n FlowOptions,\n JSFModify,\n} from '@/src/flows/types';\nimport { clearBase64Data } from '@/src/lib/utils';\nimport { Client } from '@/src/client/client';\nimport { createHeadlessForm } from '@/src/common/createHeadlessForm';\nimport { useMutation, useQuery, UseQueryResult } from '@tanstack/react-query';\nimport { FieldValues } from 'react-hook-form';\nimport {\n contractorPlusProductIdentifier,\n contractorStandardProductIdentifier,\n corProductIdentifier,\n eorProductIdentifier,\n IR35_FILE_SUBTYPE,\n ProductType,\n} from '@/src/flows/ContractorOnboarding/constants';\nimport { $TSFixMe, JSFField } from '@/src/types/remoteFlows';\nimport { mutationToPromise } from '@/src/lib/mutations';\nimport {\n useDownloadFile,\n useEmploymentFiles,\n useUploadFile,\n} from '@/src/common/api/files';\nimport { convertFromCents } from '@/src/components/form/utils';\nimport { countriesOptions } from '@/src/common/api/countries';\nimport { selectCountryStepSchema } from '@/src/flows/Onboarding/json-schemas/selectCountryStep';\nimport { shouldIncludeProduct } from '@/src/flows/ContractorOnboarding/utils';\nimport { useCompanyPricingPlans } from '@/src/common/api/companies';\n\nconst useContractorCurrencies = ({\n employmentId,\n options,\n}: {\n employmentId: string;\n options?: { queryOptions?: { enabled?: boolean } };\n}) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['contractor-currencies', employmentId],\n queryFn: async () => {\n return getIndexContractorCurrency({\n client: client as Client,\n path: { employment_id: employmentId },\n query: {\n restrict_to_guaranteed_pay_out_currencies: false,\n },\n });\n },\n enabled: options?.queryOptions?.enabled,\n select: ({ data }) => {\n return data?.data;\n },\n });\n};\n\n/**\n * Get the contract document signature schema\n * @param fieldValues - The field values\n * @param options - The options\n * @returns The contract document signature schema\n */\nexport const useGetContractDocumentSignatureSchema = ({\n fieldValues,\n options,\n}: {\n fieldValues: FieldValues;\n options?: { queryOptions?: { enabled?: boolean }; jsfModify?: JSFModify };\n}) => {\n return useQuery({\n queryKey: [\n 'contract-document-signature',\n fieldValues.review_completed,\n options?.jsfModify,\n ],\n queryFn: async () => {\n return createHeadlessForm(signatureSchema, fieldValues, {\n jsfModify: options?.jsfModify,\n });\n },\n enabled: options?.queryOptions?.enabled,\n });\n};\n\n/**\n * Signs the contract document\n * @param employmentId - The employment ID\n * @param contractDocumentId - The contract document ID\n * @param payload - The payload\n * @returns The signed contract document\n */\nexport const useSignContractDocument = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({\n employmentId,\n contractDocumentId,\n payload,\n }: {\n employmentId: string;\n contractDocumentId: string;\n payload: SignContractDocument;\n }) => {\n return postSignContractDocument({\n client: client as Client,\n body: payload,\n path: {\n employment_id: employmentId,\n contract_document_id: contractDocumentId,\n },\n });\n },\n });\n};\n\n/**\n * Get the contract document for a given employment and contract document ID\n * @param employmentId - The employment ID\n * @param contractDocumentId - The contract document ID\n * @returns The contract document\n */\nexport const useGetShowContractDocument = ({\n employmentId,\n contractDocumentId,\n options,\n}: {\n employmentId: string;\n contractDocumentId: string;\n options?: { queryOptions?: { enabled?: boolean }; jsfModify?: JSFModify };\n}) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['contract-document', employmentId, contractDocumentId],\n queryFn: async () => {\n return getShowContractDocument({\n client: client as Client,\n path: { employment_id: employmentId, id: contractDocumentId },\n });\n },\n enabled: options?.queryOptions?.enabled,\n select: ({ data }) => {\n return {\n ...data?.data,\n contract_document: {\n ...data?.data?.contract_document,\n content: clearBase64Data(\n data?.data?.contract_document?.content as $TSFixMe,\n ),\n },\n };\n },\n });\n};\n\n/**\n * Get the contractor subscriptions for the given employment id\n * @param employmentId - The employment ID\n * @returns The contractor subscriptions available\n */\nexport const useGetContractorSubscriptions = ({\n employmentId,\n options,\n}: {\n employmentId: string;\n options?: { queryOptions?: { enabled?: boolean } };\n}) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['contractor-subscriptions', employmentId],\n queryFn: async () => {\n return getIndexSubscription({\n client: client as Client,\n path: { employment_id: employmentId },\n });\n },\n enabled: options?.queryOptions?.enabled,\n select: ({ data }) => {\n return data?.data;\n },\n });\n};\n\n/**\n * Upgrade or downgrade contractor subscription\n */\nexport const usePostManageContractorSubscriptions = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({\n employmentId,\n payload,\n }: {\n employmentId: string;\n payload: ManageContractorPlusSubscriptionOperationsParams;\n }) => {\n return postManageContractorPlusSubscriptionSubscription({\n client: client as Client,\n body: payload,\n path: {\n employment_id: employmentId,\n },\n });\n },\n });\n};\n\n/**\n * Saves the contractor details data\n * @param employmentId - The employment ID\n * @param payload - The payload\n * @returns The contractor contract document\n */\nexport const useCreateContractorContractDocument = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({\n employmentId,\n payload,\n }: {\n employmentId: string;\n payload: CreateContractDocument;\n }) => {\n return postCreateContractDocument({\n client: client as Client,\n body: payload,\n path: {\n employment_id: employmentId,\n },\n });\n },\n });\n};\n\n/**\n * Get the contractor onboarding details schema for a given country\n * @param countryCode - The country code\n * @param fieldValues - The field values\n * @param options - The options\n * @returns The contractor onboarding details schema\n */\nconst useContractorOnboardingDetailsSchema = ({\n countryCode,\n employmentId,\n fieldValues,\n options,\n}: {\n countryCode: string;\n fieldValues: FieldValues;\n employmentId: string;\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } };\n query?: Record<string, unknown>;\n}): UseQueryResult<JSONSchemaFormResultWithFieldsets> => {\n const { client } = useClient();\n return useQuery({\n queryKey: [\n 'contractor-onboarding-details-schema',\n countryCode,\n employmentId,\n ],\n retry: false,\n queryFn: async () => {\n return getShowContractorContractDetailsCountry({\n client: client as Client,\n path: { country_code: countryCode },\n query: {\n json_schema_version: 1,\n employment_id: employmentId,\n },\n });\n },\n enabled: options?.queryOptions?.enabled,\n select: ({ data }) => {\n const jsfSchema = data?.data?.schema || {};\n return createHeadlessForm(jsfSchema, fieldValues, options);\n },\n });\n};\n\nexport const CONTRACT_PRODUCT_TITLES = {\n [contractorStandardProductIdentifier]: 'Contractor Management',\n [contractorPlusProductIdentifier]: 'Contractor Management Plus',\n [corProductIdentifier]: 'Contractor of Record',\n};\n\nconst useEorSubscription = (options?: { enabled?: boolean }) => {\n const { data: pricingPlans, isLoading: isLoadingPricingPlans } =\n useCompanyPricingPlans({\n enabled: options?.enabled,\n });\n\n const eorPricingPlan = pricingPlans?.find(\n (plan) => plan.product.name === 'EOR Monthly',\n );\n\n const eorSubscription = {\n product: {\n identifier: eorProductIdentifier,\n short_name: 'EOR',\n },\n currency: eorPricingPlan?.price.currency,\n price: {\n amount: convertFromCents(eorPricingPlan?.price.amount ?? 0),\n },\n features: [\n 'Contract between Remote and employee',\n 'Remote manages onboarding, payroll, and compliance',\n 'Manages taxes, benefits, and time-off tracking',\n 'Handles contracts, transfers, and terminations',\n ],\n description: 'Enables hiring in countries without a local entity',\n label: 'Employer of Record',\n value: eorProductIdentifier,\n };\n\n return { eorSubscription, isLoading: isLoadingPricingPlans };\n};\n\ntype SelectedCountry =\n | (Pick<Country, 'eor_onboarding' | 'contractor_products_available'> & {\n label: string;\n })\n | undefined;\n\nconst addEorToFieldOptions = (\n fieldOptions: $TSFixMe[],\n eorSubscription: ReturnType<typeof useEorSubscription>['eorSubscription'],\n excludeProducts?: ProductType[],\n) => {\n if (shouldIncludeProduct(eorProductIdentifier, excludeProducts)) {\n fieldOptions.push({\n label: eorSubscription.label,\n value: eorSubscription.value,\n description: eorSubscription.description,\n meta: {\n features: eorSubscription.features,\n price: {\n amount: eorSubscription.price.amount,\n currencyCode: eorSubscription.currency?.code ?? '',\n },\n },\n disabled: false,\n });\n }\n return fieldOptions;\n};\n\nexport const useContractorSubscriptionSchemaField = (\n employmentId: string,\n selectedCountry: SelectedCountry,\n options?: FlowOptions & {\n queryOptions?: { enabled?: boolean };\n excludeProducts?: ProductType[];\n },\n) => {\n const {\n data: contractorSubscriptions,\n isLoading: isLoading,\n refetch,\n } = useGetContractorSubscriptions({\n employmentId: employmentId,\n options: {\n queryOptions: options?.queryOptions,\n },\n });\n\n const isEmptyContractorSubscriptions = contractorSubscriptions?.length === 0;\n\n const isSingleSubscription = contractorSubscriptions?.length === 1;\n\n const corSubscription = contractorSubscriptions?.find(\n (subscription) => subscription.product.short_name === 'COR',\n );\n\n const isEligibilityQuestionnaireBlocked =\n corSubscription?.eligibility_questionnaire?.is_blocking;\n\n const showEorSubscription =\n (isSingleSubscription ||\n isEligibilityQuestionnaireBlocked === true ||\n isEmptyContractorSubscriptions) &&\n selectedCountry?.eor_onboarding;\n\n const { eorSubscription, isLoading: isLoadingEorSubscription } =\n useEorSubscription({\n enabled: showEorSubscription,\n });\n\n const form = createHeadlessForm(\n selectContractorSubscriptionStepSchema.data.schema,\n {},\n options,\n );\n\n if (contractorSubscriptions) {\n const field: JSFField | undefined = form.fields.find(\n (field) => field.name === 'subscription',\n ) as JSFField | undefined;\n\n if (field) {\n // Start with contractor management options\n const contractorOptions = contractorSubscriptions\n .filter((opts) =>\n shouldIncludeProduct(\n opts.product.identifier ?? '',\n options?.excludeProducts,\n ),\n )\n .map((opts) => {\n const product = opts.product;\n const price = opts.price.amount;\n const currencyCode = opts.currency.code;\n const title =\n CONTRACT_PRODUCT_TITLES[\n product.identifier as keyof typeof CONTRACT_PRODUCT_TITLES\n ] ?? '';\n const label = title;\n const value = product.identifier ?? '';\n const description = product.description ?? '';\n const features = product.features ?? [];\n const meta = {\n features,\n price: {\n amount: convertFromCents(price),\n currencyCode: currencyCode,\n },\n };\n return {\n label,\n value,\n description,\n meta,\n disabled:\n isEligibilityQuestionnaireBlocked &&\n product.identifier !== contractorStandardProductIdentifier,\n };\n });\n\n // Sort contractor options\n contractorOptions.sort((a, b) => a.label.localeCompare(b.label));\n\n // Build otherSubscriptions (EOR) with separator metadata\n const otherOptions: $TSFixMe[] = [];\n if (showEorSubscription) {\n addEorToFieldOptions(\n otherOptions as unknown as $TSFixMe[],\n eorSubscription,\n options?.excludeProducts,\n );\n\n // Add separator metadata to first \"other\" option\n // only the first option to avoid problems when iterating over the options\n if (otherOptions.length > 0) {\n otherOptions[0].meta = {\n ...otherOptions[0].meta,\n groupSeparator: {\n show: true,\n },\n };\n }\n }\n\n // Combine all options into the single field\n field.options = [...contractorOptions, ...otherOptions];\n }\n }\n\n return {\n isLoading: isLoading || isLoadingEorSubscription,\n form,\n contractorSubscriptions,\n refetch,\n isEligibilityQuestionnaireBlocked,\n };\n};\n\nexport const useUpdateUKandSaudiFields = (\n createContractorContractDocumentMutation: ReturnType<\n typeof useCreateContractorContractDocument\n >,\n uploadFileMutation: ReturnType<typeof useUploadFile>,\n parsedValues: FieldValues,\n) => {\n const { mutateAsyncOrThrow: uploadFileMutationAsync } =\n mutationToPromise(uploadFileMutation);\n const { mutateAsyncOrThrow: createContractorContractDocumentMutationAsync } =\n mutationToPromise(createContractorContractDocumentMutation);\n\n return {\n mutateAsync: async ({ employmentId }: { employmentId: string }) => {\n const {\n nationality_status: nationalityStatus,\n ir35: ir35Status,\n ir35_sds_file: ir35SdsFile,\n } = parsedValues;\n const ir35ContractDetailsPayload = {\n contract_document: {\n ir_35: ir35Status,\n },\n };\n const nationalityContractDetailsPayload = {\n contract_document: {\n nationality: nationalityStatus,\n },\n };\n if (ir35Status) {\n await createContractorContractDocumentMutationAsync({\n employmentId: employmentId,\n payload: ir35ContractDetailsPayload,\n });\n\n if (ir35SdsFile) {\n return uploadFileMutationAsync({\n employment_id: employmentId,\n file: ir35SdsFile,\n sub_type: IR35_FILE_SUBTYPE,\n });\n }\n return Promise.resolve();\n }\n // nationality status is sent for the countries SAU, KWT, OMN, QAT, BHR\n if (nationalityStatus) {\n return createContractorContractDocumentMutationAsync({\n employmentId: employmentId,\n payload: nationalityContractDetailsPayload,\n });\n }\n\n return Promise.resolve();\n },\n };\n};\n\nexport const useGetIR35File = (\n employmentId: string,\n options?: { enabled?: boolean },\n) => {\n const { data: ir35Files, isLoading: isLoadingFiles } = useEmploymentFiles(\n employmentId,\n {\n sub_type: IR35_FILE_SUBTYPE,\n },\n {\n ...options,\n select: ({ data }) =>\n data?.files?.filter((file) => file.sub_type === IR35_FILE_SUBTYPE),\n },\n );\n const id = ir35Files?.[0]?.id;\n\n const downloadQuery = useDownloadFile(id as string);\n\n return {\n ...downloadQuery,\n isLoading: isLoadingFiles || downloadQuery.isLoading,\n };\n};\n\n/**\n * Get the contract documents for a given employment\n * @param employmentId - The employment ID\n * @param options - The options\n * @returns The contract documents\n */\nexport const useGetContractDocuments = (\n employmentId: string,\n options?: { enabled?: boolean },\n) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['contract-documents', employmentId],\n queryFn: async () => {\n return getIndexEmploymentContractDocument({\n client: client as Client,\n path: { employment_id: employmentId },\n });\n },\n enabled: options?.enabled,\n select: ({ data }) => {\n return data?.data?.contract_documents;\n },\n });\n};\n\nexport const useGetEligibilityQuestionnaire = ({\n options,\n fieldValues,\n}: {\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } };\n fieldValues: FieldValues;\n}) => {\n const { client } = useClient();\n return useQuery<\n EligibilityQuestionnaireJsonSchemaResponse['data'],\n Error,\n JSONSchemaFormResultWithFieldsets\n >({\n queryKey: ['eligibility-questionnaire'],\n queryFn: async (): Promise<\n EligibilityQuestionnaireJsonSchemaResponse['data']\n > => {\n const response = await getShowEligibilityQuestionnaire({\n client: client as Client,\n query: {\n type: 'contractor_of_record',\n json_schema_version: 1,\n },\n });\n\n // Extract the data from the response wrapper\n if (response.error) {\n throw new Error('Failed to fetch eligibility questionnaire');\n }\n\n return response.data\n .data as EligibilityQuestionnaireJsonSchemaResponse['data'];\n },\n select: (data: EligibilityQuestionnaireJsonSchemaResponse['data']) => {\n const schema = data?.schema || {};\n return createHeadlessForm(schema, fieldValues, {\n jsfModify: options?.jsfModify,\n });\n },\n enabled: options?.queryOptions?.enabled,\n });\n};\n\nexport const usePostCreateEligibilityQuestionnaire = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({\n employmentId,\n payload,\n }: {\n employmentId: string;\n payload: SubmitEligibilityQuestionnaireRequest['responses'];\n }) => {\n return postCreateEligibilityQuestionnaire({\n client: client as Client,\n body: {\n employment_slug: employmentId,\n responses: payload,\n type: 'contractor_of_record',\n },\n query: {\n json_schema_version: 1, // TODO: json_schema_version should be dynamic but fixed for now\n },\n });\n },\n });\n};\n\nexport const usePostManageContractorCorSubscription = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({ employmentId }: { employmentId: string }) => {\n return postManageContractorCorSubscriptionSubscription({\n client: client as Client,\n path: {\n employment_id: employmentId,\n },\n });\n },\n });\n};\n\nexport const useDeleteContractorCorSubscription = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: async ({ employmentId }: { employmentId: string }) => {\n return deleteDeleteContractorCorSubscriptionSubscription({\n client: client as Client,\n path: { employment_id: employmentId },\n });\n },\n });\n};\n\nexport const useCountriesSchemaField = (\n options?: Omit<FlowOptions, 'jsonSchemaVersion'> & {\n queryOptions?: { enabled?: boolean };\n },\n) => {\n const { client } = useClient();\n const { data: countries, isLoading } = useQuery({\n ...countriesOptions(client as Client, 'contractor-onboarding-countries'),\n select: (response) => {\n return (\n response.data?.data?.map((country) => {\n return {\n label: country.name,\n value: country.code,\n eor_onboarding: country.eor_onboarding,\n contractor_products_available:\n country.contractor_products_available,\n };\n }) || []\n );\n },\n enabled: options?.queryOptions?.enabled,\n });\n\n const selectCountryForm = createHeadlessForm(\n selectCountryStepSchema.data.schema,\n {},\n options,\n );\n\n if (countries) {\n const countryField = selectCountryForm.fields.find(\n (field) => field.name === 'country',\n );\n if (countryField) {\n countryField.options = countries;\n }\n }\n\n return {\n isLoading,\n selectCountryForm,\n countries,\n };\n};\n\n/**\n * Get contractor onboarding details schema with currency options overridden\n * from the getIndexContractorCurrency endpoint\n */\nexport const useContractorOnboardingDetailsSchemaWithCurrencies = ({\n countryCode,\n employmentId,\n fieldValues,\n options,\n}: {\n countryCode: string;\n fieldValues: FieldValues;\n employmentId: string;\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } };\n}) => {\n const schemaQuery = useContractorOnboardingDetailsSchema({\n countryCode,\n employmentId,\n fieldValues,\n options,\n });\n\n const { data: currencies, isLoading: isLoadingCurrencies } =\n useContractorCurrencies({\n employmentId,\n options: {\n queryOptions: { enabled: options?.queryOptions?.enabled },\n },\n });\n\n const dataWithCurrencies = useMemo(() => {\n if (!schemaQuery.data || !currencies) {\n return schemaQuery.data;\n }\n\n const form = {\n ...schemaQuery.data,\n fields: schemaQuery.data.fields.map((field) => {\n if (field.name !== 'payment_terms') {\n return field;\n }\n\n return {\n ...field,\n fields: (field.fields as $TSFixMe[])?.map((nestedField: $TSFixMe) => {\n if (nestedField.name !== 'compensation_currency_code') {\n return nestedField;\n }\n\n // Return a new object with overridden options\n return {\n ...nestedField,\n options: currencies.map((currency) => ({\n label: currency.code,\n value: currency.code,\n meta: { source: currency.source },\n })),\n };\n }),\n };\n }),\n };\n\n return form;\n }, [schemaQuery.data, currencies]);\n\n return {\n ...schemaQuery,\n data: dataWithCurrencies as $TSFixMe,\n isLoading: schemaQuery.isLoading || isLoadingCurrencies,\n };\n};\n","import { useMutation, useQuery, UseQueryOptions } from '@tanstack/react-query';\nimport { Client } from '@/src/client/client';\nimport {\n getIndexEmploymentFile,\n getShowFile,\n postUploadEmployeeFileFile,\n} from '@/src/client/sdk.gen';\nimport {\n GetIndexEmploymentFileData,\n GetIndexEmploymentFileErrors,\n File as ApiFile,\n ListFilesResponse,\n PostUploadEmployeeFileFileData,\n} from '@/src/client/types.gen';\nimport { useClient } from '@/src/context';\n\n/**\n * Hook to upload a file associated with a specified employment.\n * @returns A mutation result for uploading employee files.\n */\nexport const useUploadFile = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: (params: PostUploadEmployeeFileFileData['body']) => {\n return postUploadEmployeeFileFile({\n client: client as Client,\n body: params,\n headers: {\n Authorization: ``,\n },\n });\n },\n });\n};\n\n/**\n * Hook to download a file by its ID.\n * @param id - The ID of the file to download.\n * @returns A query result containing the file data.\n */\nexport const useDownloadFile = (id: string) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['download-file', id],\n queryFn: async () => {\n const result = await getShowFile({\n client: client as Client,\n path: { id: id },\n });\n\n if (result.error) {\n throw result.error;\n }\n\n return result.data;\n },\n select: ({ data }) => data?.file,\n enabled: !!id,\n });\n};\n\n/**\n * Hook to retrieve files associated with a specific employment.\n * @param employmentId - The ID of the employment to retrieve files for.\n * @param queryParams - The query parameters to filter the files.\n * @param queryOptions - Optional TanStack Query options to customize the query behavior.\n * @returns A query result containing the employment files.\n */\nexport const useEmploymentFiles = (\n employmentId: string,\n queryParams: GetIndexEmploymentFileData['query'],\n queryOptions?: Omit<\n UseQueryOptions<\n ListFilesResponse,\n GetIndexEmploymentFileErrors,\n ApiFile[] | undefined,\n unknown[]\n >,\n 'queryKey' | 'queryFn'\n >,\n) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['employment-files', employmentId],\n queryFn: async () => {\n const result = await getIndexEmploymentFile({\n client: client as Client,\n path: { employment_id: employmentId },\n query: queryParams,\n });\n\n if (result.error) {\n throw result.error;\n }\n\n return result.data;\n },\n ...queryOptions,\n });\n};\n","import { useQuery } from '@tanstack/react-query';\nimport { useClient } from '@/src/context';\nimport {\n getIndexCompanyPricingPlan,\n IdentityCurrentResponse,\n} from '@/src/client';\nimport { Client } from '@/src/client/client';\nimport { useIdentity } from '@/src/common/api/identity';\n\nexport function hasCompany(\n identity: IdentityCurrentResponse['data'] | undefined,\n): identity is Extract<\n IdentityCurrentResponse['data'],\n { company: { id: string } }\n> {\n return identity != null && 'company' in identity;\n}\n\nexport const useCompanyPricingPlans = (\n queryOptions: { enabled?: boolean } = { enabled: true },\n) => {\n const { data: identity } = useIdentity();\n const companyId = hasCompany(identity) ? (identity?.company?.id ?? '') : '';\n const { client } = useClient();\n return useQuery({\n queryKey: ['pricing-plans', companyId],\n queryFn: () =>\n getIndexCompanyPricingPlan({\n client: client as Client,\n path: { company_id: companyId },\n }),\n select: (data) => data.data?.data?.pricing_plans,\n enabled: Boolean(queryOptions?.enabled) && !!companyId,\n });\n};\n","import { useQuery } from '@tanstack/react-query';\nimport { getCurrentIdentity } from '@/src/client';\nimport { useClient } from '@/src/context';\nimport { Client } from '@/src/client/client';\n\nexport const useIdentity = () => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['identity'],\n queryFn: () =>\n getCurrentIdentity({\n client: client as Client,\n headers: { Authorization: `` },\n }),\n select: (data) => data.data?.data,\n });\n};\n"],"mappings":"mnBAA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,EACvDrH,GAAwB,CACtB,aAAAE,EACA,QAAS,CACP,aAAc,CAAE,QAASC,GAAS,cAAc,OAAQ,CAC1D,CACF,CAAC,EAEGmH,EAAqBC,GAAQ,IAC7B,CAACJ,EAAY,MAAQ,CAACC,EACjBD,EAAY,KAGR,CACX,GAAGA,EAAY,KACf,OAAQA,EAAY,KAAK,OAAO,IAAKtD,GAC/BA,EAAM,OAAS,gBACVA,EAGF,CACL,GAAGA,EACH,OAASA,EAAM,QAAuB,IAAK2D,GACrCA,EAAY,OAAS,6BAChBA,EAIF,CACL,GAAGA,EACH,QAASJ,EAAW,IAAKK,IAAc,CACrC,MAAOA,EAAS,KAChB,MAAOA,EAAS,KAChB,KAAM,CAAE,OAAQA,EAAS,MAAO,CAClC,EAAE,CACJ,CACD,CACH,CACD,CACH,EAGC,CAACN,EAAY,KAAMC,CAAU,CAAC,EAEjC,MAAO,CACL,GAAGD,EACH,KAAMG,EACN,UAAWH,EAAY,WAAaE,CACtC,CACF,EAnEkE","names":["useMemo","useMutation","useQuery","useMutation","useQuery","useUploadFile","__name","client","useClient","useMutation","params","postUploadEmployeeFileFile","useDownloadFile","id","useQuery","result","getShowFile","data","useEmploymentFiles","employmentId","queryParams","queryOptions","getIndexEmploymentFile","useQuery","useQuery","useIdentity","__name","client","useClient","useQuery","getCurrentIdentity","data","hasCompany","identity","__name","useCompanyPricingPlans","queryOptions","useIdentity","companyId","client","useClient","useQuery","getIndexCompanyPricingPlan","data","useContractorCurrencies","__name","employmentId","options","client","useClient","useQuery","getIndexContractorCurrency","data","useGetContractDocumentSignatureSchema","fieldValues","createHeadlessForm","signatureSchema","useSignContractDocument","useMutation","contractDocumentId","payload","postSignContractDocument","useGetShowContractDocument","getShowContractDocument","clearBase64Data","useGetContractorSubscriptions","getIndexSubscription","usePostManageContractorSubscriptions","postManageContractorPlusSubscriptionSubscription","useCreateContractorContractDocument","postCreateContractDocument","useContractorOnboardingDetailsSchema","countryCode","getShowContractorContractDetailsCountry","jsfSchema","CONTRACT_PRODUCT_TITLES","contractorStandardProductIdentifier","contractorPlusProductIdentifier","corProductIdentifier","useEorSubscription","pricingPlans","isLoadingPricingPlans","useCompanyPricingPlans","eorPricingPlan","plan","eorProductIdentifier","convertFromCents","addEorToFieldOptions","fieldOptions","eorSubscription","excludeProducts","shouldIncludeProduct","useContractorSubscriptionSchemaField","selectedCountry","contractorSubscriptions","isLoading","refetch","isEmptyContractorSubscriptions","isSingleSubscription","isEligibilityQuestionnaireBlocked","subscription","showEorSubscription","isLoadingEorSubscription","form","selectContractorSubscriptionStepSchema","field","contractorOptions","opts","product","price","currencyCode","label","value","description","meta","a","b","otherOptions","useUpdateUKandSaudiFields","createContractorContractDocumentMutation","uploadFileMutation","parsedValues","uploadFileMutationAsync","mutationToPromise","createContractorContractDocumentMutationAsync","nationalityStatus","ir35Status","ir35SdsFile","ir35ContractDetailsPayload","nationalityContractDetailsPayload","IR35_FILE_SUBTYPE","useGetIR35File","ir35Files","isLoadingFiles","useEmploymentFiles","file","id","downloadQuery","useDownloadFile","useGetContractDocuments","getIndexEmploymentContractDocument","useGetEligibilityQuestionnaire","response","getShowEligibilityQuestionnaire","schema","usePostCreateEligibilityQuestionnaire","postCreateEligibilityQuestionnaire","usePostManageContractorCorSubscription","postManageContractorCorSubscriptionSubscription","useDeleteContractorCorSubscription","deleteDeleteContractorCorSubscriptionSubscription","useCountriesSchemaField","countries","countriesOptions","country","selectCountryForm","selectCountryStepSchema","countryField","useContractorOnboardingDetailsSchemaWithCurrencies","schemaQuery","currencies","isLoadingCurrencies","dataWithCurrencies","useMemo","nestedField","currency"]}
@@ -1,2 +1,2 @@
1
- import{b as w}from"./chunk-PGWKJ6FK.js";import{c as v,d as y}from"./chunk-5XNFVJNM.js";import{a as i}from"./chunk-EARN6G25.js";import{b as l}from"./chunk-KQPDXXG3.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as _}from"react/jsx-runtime";function P({onSubmit:f,onSuccess:a,onError:t,render:E,...o}){let{components:R}=l(),{onboardingBag:r,setCreditScore:m}=w(),d=v(),u=y(),{mutateAsync:g}=i(d),{mutateAsync:S}=i(u),c=r.creditRiskStatus==="deposit_required"||r.onboardingReservesStatus==="deposit_required",I=s(async()=>{try{if(await f?.(),c&&r.employmentId&&r.employment?.status&&!r.isEmploymentReadOnly){let e=await S({employment_slug:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"created_awaiting_reserve"}),m?.(n=>({...n,showReserveInvoice:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}else if(r.employmentId){let e=await g({employment_id:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"invited"}),m?.(n=>({...n,showInviteSuccessful:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}}catch(e){t?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit"),b=c&&r.employment?.status&&!r.isEmploymentReadOnly,p=R?.button;if(!p)throw new Error("Button component not found");return _(p,{...o,disabled:d.isPending||u.isPending||o.disabled,onClick:e=>{I(),o.onClick?.(e)},children:E({employmentStatus:b?"created_awaiting_reserve":"invited"})})}s(P,"OnboardingInvite");export{P as a};
2
- //# sourceMappingURL=chunk-OOSCL4WD.js.map
1
+ import{b as w}from"./chunk-PGWKJ6FK.js";import{c as v,d as y}from"./chunk-KIUI7FHF.js";import{a as i}from"./chunk-OSQ6VUDM.js";import{b as l}from"./chunk-KQPDXXG3.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as _}from"react/jsx-runtime";function P({onSubmit:f,onSuccess:a,onError:t,render:E,...o}){let{components:R}=l(),{onboardingBag:r,setCreditScore:m}=w(),d=v(),u=y(),{mutateAsync:g}=i(d),{mutateAsync:S}=i(u),c=r.creditRiskStatus==="deposit_required"||r.onboardingReservesStatus==="deposit_required",I=s(async()=>{try{if(await f?.(),c&&r.employmentId&&r.employment?.status&&!r.isEmploymentReadOnly){let e=await S({employment_slug:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"created_awaiting_reserve"}),m?.(n=>({...n,showReserveInvoice:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}else if(r.employmentId){let e=await g({employment_id:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"invited"}),m?.(n=>({...n,showInviteSuccessful:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}}catch(e){t?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit"),b=c&&r.employment?.status&&!r.isEmploymentReadOnly,p=R?.button;if(!p)throw new Error("Button component not found");return _(p,{...o,disabled:d.isPending||u.isPending||o.disabled,onClick:e=>{I(),o.onClick?.(e)},children:E({employmentStatus:b?"created_awaiting_reserve":"invited"})})}s(P,"OnboardingInvite");export{P as a};
2
+ //# sourceMappingURL=chunk-ZSBQDVXM.js.map
@@ -1,2 +1,2 @@
1
- import{a as W}from"./chunk-4Z2DLHAT.js";import{a as Y}from"./chunk-YQMALPDQ.js";import{a as Q}from"./chunk-YRAIYQ2K.js";import{a as J}from"./chunk-E37JLKX4.js";import{a as H}from"./chunk-IF42CZJH.js";import{a as U}from"./chunk-6DHV4GT6.js";import{a as q,b as B,c as L,d as z}from"./chunk-237RQGWE.js";import{f as Z,g as K}from"./chunk-AEKGVWE5.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as S}from"./chunk-ZBJ4VEDO.js";import{a as N}from"./chunk-TFJOJCCS.js";import{a as E}from"./chunk-NZ7BAZNH.js";import{e as _}from"./chunk-552XBDTE.js";import{a as u,b as v}from"./chunk-IFD3RW53.js";import{q as $}from"./chunk-R47Q7R6C.js";import{a as w,c as D}from"./chunk-EARN6G25.js";import{a as A}from"./chunk-TSPDJUGG.js";import{a as I}from"./chunk-626FTNKA.js";import{d as O}from"./chunk-KQPDXXG3.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=O();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>$({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:u.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:u.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:u.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await _(s,me.fields,{isPartialValidation:!0}):f?await _(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await _(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
2
- //# sourceMappingURL=chunk-CHRRWZHW.js.map
1
+ import{a as W}from"./chunk-UBNSYRKM.js";import{a as Y}from"./chunk-65K5T3GC.js";import{a as Q}from"./chunk-RUYVQ6R6.js";import{a as J}from"./chunk-ZIFQZ33N.js";import{a as H}from"./chunk-IF42CZJH.js";import{a as U}from"./chunk-6DHV4GT6.js";import{a as q,b as B,c as L,d as z}from"./chunk-KVMWDA6O.js";import{f as Z,g as K}from"./chunk-MMIHT4V6.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as S}from"./chunk-OJTYP5W7.js";import{a as N}from"./chunk-VKKORLLM.js";import{a as E}from"./chunk-JR6VISHQ.js";import{e as _}from"./chunk-FFVTWWGX.js";import{a as u,b as v}from"./chunk-ET4QWXWY.js";import{q as $}from"./chunk-O5XQUEB5.js";import{a as w,c as D}from"./chunk-OSQ6VUDM.js";import{a as A}from"./chunk-TSPDJUGG.js";import{a as I}from"./chunk-626FTNKA.js";import{d as O}from"./chunk-KQPDXXG3.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=O();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>$({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:u.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:u.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:u.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await _(s,me.fields,{isPartialValidation:!0}):f?await _(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await _(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
2
+ //# sourceMappingURL=chunk-ZX3JVVRL.js.map
@@ -1,7 +1,7 @@
1
- import { C as Components } from './remoteFlows-CizrXXw-.js';
1
+ import { C as Components } from './remoteFlows-B_Qw-y-E.js';
2
2
  import 'react';
3
3
  import 'yup';
4
- import './types.gen-Dgw1W-SB.js';
4
+ import './types.gen-DowXAxCF.js';
5
5
  import 'react-hook-form';
6
6
 
7
7
  /**
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-5ISPVKB4.js";import{a as c}from"./chunk-RAVJ3LMO.js";import{a as b}from"./chunk-S3YIFNST.js";import{a as k}from"./chunk-IHGCXP2X.js";import{a as w}from"./chunk-JHH66SSM.js";import{a as f}from"./chunk-Y4P3ZYQK.js";import{a}from"./chunk-Q6NTGZUW.js";import{a as u}from"./chunk-3HZOTQHD.js";import{a as p}from"./chunk-LBNA4RGS.js";import{a as D}from"./chunk-ZR6AKRA3.js";import{a as n}from"./chunk-AVJEDFND.js";import{a as F}from"./chunk-L3XWJ35V.js";import{a as e}from"./chunk-5EYREHAZ.js";import{a as t}from"./chunk-U7S4TUFV.js";import{a as o}from"./chunk-AGZHFGBR.js";import{a as r}from"./chunk-YNMQONDL.js";import"./chunk-TPH6YQRJ.js";import{a as l}from"./chunk-74U3UMRA.js";import{a as m}from"./chunk-ZAQUO2SM.js";import"./chunk-3BEEU2N4.js";import"./chunk-5BGETBLF.js";import{a as i}from"./chunk-PSBC73OL.js";import"./chunk-UFLWSKNE.js";import"./chunk-OABRM5LK.js";import"./chunk-DJOLLEOJ.js";import"./chunk-43MCQDBU.js";import"./chunk-766AUWUO.js";import"./chunk-ZZPQGX7X.js";import"./chunk-2Y7QAG2Q.js";import"./chunk-423VHE7M.js";import"./chunk-JJDAJQG4.js";import"./chunk-R3NDFTIM.js";import{a as d}from"./chunk-MEOD4UGO.js";import"./chunk-DJYO6IIO.js";import"./chunk-R3HLTYHX.js";import"./chunk-IFD3RW53.js";import"./chunk-RXNDKUY6.js";import"./chunk-R47Q7R6C.js";import"./chunk-EARN6G25.js";import"./chunk-KQPDXXG3.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 s}from"./chunk-KFNCHTUX.js";import{a as c}from"./chunk-2P4RPBIO.js";import{a as b}from"./chunk-B5UGFNCU.js";import{a as k}from"./chunk-IHGCXP2X.js";import{a as w}from"./chunk-CUSAI2ZT.js";import{a as f}from"./chunk-NORWRQQM.js";import{a}from"./chunk-L7TAT462.js";import{a as u}from"./chunk-7X56CYUV.js";import{a as p}from"./chunk-EC6ZM3SX.js";import{a as D}from"./chunk-BFSBZTDB.js";import{a as n}from"./chunk-VSXPCSKU.js";import{a as F}from"./chunk-FTC4EFBO.js";import{a as e}from"./chunk-BTP3NN3N.js";import{a as t}from"./chunk-T5U7ZIBV.js";import{a as o}from"./chunk-INV4YWPR.js";import{a as r}from"./chunk-ZNGMRPG6.js";import"./chunk-OXCSFW3F.js";import{a as l}from"./chunk-75P5LUKA.js";import{a as m}from"./chunk-CODZ7A6U.js";import"./chunk-6SDLOAEO.js";import"./chunk-AL37BOFX.js";import{a as i}from"./chunk-R5WFXN2Z.js";import"./chunk-JXWFFVQO.js";import"./chunk-DYNVJFJH.js";import"./chunk-VHAJRKCI.js";import"./chunk-7N2A2ZJ5.js";import"./chunk-KMBA73YG.js";import"./chunk-LBJAKZ6V.js";import"./chunk-FOBUW3RN.js";import"./chunk-YYMGZZTO.js";import"./chunk-6Y4QJ7WK.js";import"./chunk-UZNF4JV3.js";import{a as d}from"./chunk-2UZ72KAQ.js";import"./chunk-XADVV6OP.js";import"./chunk-CLAVZQBC.js";import"./chunk-ET4QWXWY.js";import"./chunk-72RFYT5Y.js";import"./chunk-O5XQUEB5.js";import"./chunk-OSQ6VUDM.js";import"./chunk-KQPDXXG3.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-Dgw1W-SB.js';
2
+ import { P as PostCreateContractAmendmentError, b as ContractAmendmentResponse } from '../../types.gen-DowXAxCF.js';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
 
5
5
  type ContractAmendmentConfirmationFormProps = {
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-S62HZDF7.js";import"../../chunk-552XBDTE.js";import"../../chunk-RXNDKUY6.js";import"../../chunk-EARN6G25.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm};
1
+ import{a}from"../../chunk-VDVWAYXP.js";import"../../chunk-FFVTWWGX.js";import"../../chunk-72RFYT5Y.js";import"../../chunk-OSQ6VUDM.js";import"../../chunk-TVZAFTPT.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-Dgw1W-SB.js';
8
+ import '../../types.gen-DowXAxCF.js';
9
9
  import 'react-hook-form';
10
10
  import 'react';
11
- import '../../mutations-k1bkfjOU.js';
12
- import '../../remoteFlows-CizrXXw-.js';
11
+ import '../../mutations-B8Mignyp.js';
12
+ import '../../remoteFlows-B_Qw-y-E.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-DXHWEBVC.js";import"../../chunk-S62HZDF7.js";import"../../chunk-5FOI6SK4.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-U6LRMWRI.js";import"../../chunk-WI6ZYN4S.js";import"../../chunk-FHGQELT7.js";import"../../chunk-TFJOJCCS.js";import"../../chunk-KQUKUR4T.js";import"../../chunk-YZKXKNDS.js";import"../../chunk-UB5WD4YM.js";import"../../chunk-NZ7BAZNH.js";import"../../chunk-552XBDTE.js";import"../../chunk-R3NDFTIM.js";import"../../chunk-MEOD4UGO.js";import"../../chunk-DJYO6IIO.js";import"../../chunk-R3HLTYHX.js";import"../../chunk-IFD3RW53.js";import"../../chunk-RXNDKUY6.js";import"../../chunk-R47Q7R6C.js";import"../../chunk-EARN6G25.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-D5AR26AI.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
1
+ import{a}from"../../chunk-DHLSO7BU.js";import"../../chunk-VDVWAYXP.js";import"../../chunk-SW7DKXXK.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-U6LRMWRI.js";import"../../chunk-ALF55LF2.js";import"../../chunk-5EDCZGZV.js";import"../../chunk-VKKORLLM.js";import"../../chunk-NTRKVVLQ.js";import"../../chunk-6S566ZMF.js";import"../../chunk-ACKYD4QC.js";import"../../chunk-JR6VISHQ.js";import"../../chunk-FFVTWWGX.js";import"../../chunk-UZNF4JV3.js";import"../../chunk-2UZ72KAQ.js";import"../../chunk-XADVV6OP.js";import"../../chunk-CLAVZQBC.js";import"../../chunk-ET4QWXWY.js";import"../../chunk-72RFYT5Y.js";import"../../chunk-O5XQUEB5.js";import"../../chunk-OSQ6VUDM.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-D5AR26AI.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.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-Dgw1W-SB.js';
2
+ import { c as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-DowXAxCF.js';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
 
5
5
  type ContractAmendmentFormProps = {
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-5FOI6SK4.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-KQUKUR4T.js";import"../../chunk-YZKXKNDS.js";import"../../chunk-UB5WD4YM.js";import"../../chunk-552XBDTE.js";import"../../chunk-R3NDFTIM.js";import"../../chunk-MEOD4UGO.js";import"../../chunk-DJYO6IIO.js";import"../../chunk-R3HLTYHX.js";import"../../chunk-IFD3RW53.js";import"../../chunk-RXNDKUY6.js";import"../../chunk-R47Q7R6C.js";import"../../chunk-EARN6G25.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
1
+ import{a}from"../../chunk-SW7DKXXK.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-NTRKVVLQ.js";import"../../chunk-6S566ZMF.js";import"../../chunk-ACKYD4QC.js";import"../../chunk-FFVTWWGX.js";import"../../chunk-UZNF4JV3.js";import"../../chunk-2UZ72KAQ.js";import"../../chunk-XADVV6OP.js";import"../../chunk-CLAVZQBC.js";import"../../chunk-ET4QWXWY.js";import"../../chunk-72RFYT5Y.js";import"../../chunk-O5XQUEB5.js";import"../../chunk-OSQ6VUDM.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.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-Dgw1W-SB.js';
1
+ import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-DowXAxCF.js';
2
2
  import * as React from 'react';
3
- import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-k1bkfjOU.js';
4
- import '../../remoteFlows-CizrXXw-.js';
3
+ import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-B8Mignyp.js';
4
+ import '../../remoteFlows-B_Qw-y-E.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-Dgw1W-SB.js';
2
- import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-k1bkfjOU.js';
1
+ import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-DowXAxCF.js';
2
+ import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-B8Mignyp.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-CizrXXw-.js';
9
+ import '../../remoteFlows-B_Qw-y-E.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-WI6ZYN4S.js";import"../../chunk-FHGQELT7.js";import"../../chunk-TFJOJCCS.js";import"../../chunk-NZ7BAZNH.js";import"../../chunk-552XBDTE.js";import"../../chunk-R47Q7R6C.js";import"../../chunk-EARN6G25.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as useContractAmendment};
1
+ import{a}from"../../chunk-ALF55LF2.js";import"../../chunk-5EDCZGZV.js";import"../../chunk-VKKORLLM.js";import"../../chunk-JR6VISHQ.js";import"../../chunk-FFVTWWGX.js";import"../../chunk-O5XQUEB5.js";import"../../chunk-OSQ6VUDM.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-KQPDXXG3.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-Dgw1W-SB.js';
7
+ import '../../types.gen-DowXAxCF.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-CizrXXw-.js';
13
+ import '../../remoteFlows-B_Qw-y-E.js';
14
14
  import 'yup';
15
15
  import '@remoteoss/remote-json-schema-form-kit';
16
- import '../../mutations-k1bkfjOU.js';
16
+ import '../../mutations-B8Mignyp.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-DXHWEBVC.js";import{a}from"../../chunk-S62HZDF7.js";import{a as b}from"../../chunk-5FOI6SK4.js";import"../../chunk-KFYWUBRS.js";import{a as c}from"../../chunk-U6LRMWRI.js";import{a as d}from"../../chunk-WI6ZYN4S.js";import"../../chunk-FHGQELT7.js";import"../../chunk-TFJOJCCS.js";import"../../chunk-KQUKUR4T.js";import"../../chunk-YZKXKNDS.js";import"../../chunk-UB5WD4YM.js";import"../../chunk-NZ7BAZNH.js";import"../../chunk-552XBDTE.js";import"../../chunk-R3NDFTIM.js";import"../../chunk-MEOD4UGO.js";import"../../chunk-DJYO6IIO.js";import"../../chunk-R3HLTYHX.js";import"../../chunk-IFD3RW53.js";import"../../chunk-RXNDKUY6.js";import"../../chunk-R47Q7R6C.js";import"../../chunk-EARN6G25.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-D5AR26AI.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.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-DHLSO7BU.js";import{a}from"../../chunk-VDVWAYXP.js";import{a as b}from"../../chunk-SW7DKXXK.js";import"../../chunk-KFYWUBRS.js";import{a as c}from"../../chunk-U6LRMWRI.js";import{a as d}from"../../chunk-ALF55LF2.js";import"../../chunk-5EDCZGZV.js";import"../../chunk-VKKORLLM.js";import"../../chunk-NTRKVVLQ.js";import"../../chunk-6S566ZMF.js";import"../../chunk-ACKYD4QC.js";import"../../chunk-JR6VISHQ.js";import"../../chunk-FFVTWWGX.js";import"../../chunk-UZNF4JV3.js";import"../../chunk-2UZ72KAQ.js";import"../../chunk-XADVV6OP.js";import"../../chunk-CLAVZQBC.js";import"../../chunk-ET4QWXWY.js";import"../../chunk-72RFYT5Y.js";import"../../chunk-O5XQUEB5.js";import"../../chunk-OSQ6VUDM.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-D5AR26AI.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.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-CizrXXw-.js';
2
+ import '../../remoteFlows-B_Qw-y-E.js';
3
3
  import 'react';
4
4
  import 'yup';
5
- import '../../types.gen-Dgw1W-SB.js';
5
+ import '../../types.gen-DowXAxCF.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-Dgw1W-SB.js';
2
- import { J as JSFFields } from '../../remoteFlows-CizrXXw-.js';
1
+ import { E as Employment } from '../../types.gen-DowXAxCF.js';
2
+ import { J as JSFFields } from '../../remoteFlows-B_Qw-y-E.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-FHGQELT7.js";import"../../chunk-552XBDTE.js";import"../../chunk-EARN6G25.js";import"../../chunk-P37U34EQ.js";export{a as STEPS,b as buildInitialValues};
1
+ import{a,b}from"../../chunk-5EDCZGZV.js";import"../../chunk-FFVTWWGX.js";import"../../chunk-OSQ6VUDM.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-Cg4eblxv.js';
2
+ import { C as ContractorOnboardingFlowProps } from '../../types-BkwrqJ5I.js';
3
3
  import './constants.js';
4
- import '../../types.gen-Dgw1W-SB.js';
4
+ import '../../types.gen-DowXAxCF.js';
5
5
  import './components/OnboardingBack.js';
6
6
  import 'react';
7
7
  import './components/OnboardingSubmit.js';
8
- import '../../remoteFlows-CizrXXw-.js';
8
+ import '../../remoteFlows-B_Qw-y-E.js';
9
9
  import 'yup';
10
10
  import 'react-hook-form';
11
- import '../../mutations-k1bkfjOU.js';
11
+ import '../../mutations-B8Mignyp.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-DWSLcaDI.js';
16
+ import '../../types-B5J_4wyN.js';
17
17
  import '../Onboarding/components/OnboardingBack.js';
18
18
  import '../Onboarding/components/OnboardingInvite.js';
19
19
  import '../Onboarding/components/OnboardingSubmit.js';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-7WV3GBEI.js";import"../../chunk-XULW2ME7.js";import"../../chunk-VAWEOFUO.js";import"../../chunk-K5XSOKKX.js";import"../../chunk-WD5DNUSS.js";import"../../chunk-SHXQGRNL.js";import"../../chunk-DPVXSN7T.js";import"../../chunk-VJMCAVOL.js";import"../../chunk-VSBNYQZM.js";import"../../chunk-7NZH3TF3.js";import"../../chunk-X5TMQDWS.js";import"../../chunk-65KMTRFL.js";import"../../chunk-EJCCWBLQ.js";import"../../chunk-P3QDMRCC.js";import"../../chunk-4WSJ2A6Q.js";import"../../chunk-Q3ALCPJN.js";import"../../chunk-IJDBUKEM.js";import"../../chunk-D3EUFZXJ.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-LZL5KK3N.js";import"../../chunk-3UDRMQNE.js";import"../../chunk-QMPXBDDO.js";import"../../chunk-ZBJ4VEDO.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-AHRG5QCS.js";import"../../chunk-PX5PE6GX.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-TFJOJCCS.js";import"../../chunk-5XNFVJNM.js";import"../../chunk-LXOYWRNU.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-FZVUO3UU.js";import"../../chunk-KQUKUR4T.js";import"../../chunk-YZKXKNDS.js";import"../../chunk-UB5WD4YM.js";import"../../chunk-NZ7BAZNH.js";import"../../chunk-552XBDTE.js";import"../../chunk-JJDAJQG4.js";import"../../chunk-R3NDFTIM.js";import"../../chunk-MEOD4UGO.js";import"../../chunk-DJYO6IIO.js";import"../../chunk-R3HLTYHX.js";import"../../chunk-IFD3RW53.js";import"../../chunk-RXNDKUY6.js";import"../../chunk-R47Q7R6C.js";import"../../chunk-EARN6G25.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
1
+ import{a}from"../../chunk-OGKH4RJL.js";import"../../chunk-XK77JKBO.js";import"../../chunk-VAWEOFUO.js";import"../../chunk-TXU6EUWN.js";import"../../chunk-WD5DNUSS.js";import"../../chunk-PK2E2DJH.js";import"../../chunk-DPVXSN7T.js";import"../../chunk-L6V2G5TE.js";import"../../chunk-BC2H7WGB.js";import"../../chunk-EN5ZMAYF.js";import"../../chunk-UN4RAIAR.js";import"../../chunk-XYV6WN5C.js";import"../../chunk-7SRRP2D6.js";import"../../chunk-P3QDMRCC.js";import"../../chunk-4WSJ2A6Q.js";import"../../chunk-7ZBLKUKE.js";import"../../chunk-Q3ALCPJN.js";import"../../chunk-4Y2DWXQB.js";import"../../chunk-ZQZWWNXL.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-B7HGVWIT.js";import"../../chunk-3UDRMQNE.js";import"../../chunk-64AJX2DH.js";import"../../chunk-OJTYP5W7.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-AHRG5QCS.js";import"../../chunk-PX5PE6GX.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-VKKORLLM.js";import"../../chunk-KIUI7FHF.js";import"../../chunk-TVBZT6FA.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-HBX37YK2.js";import"../../chunk-NTRKVVLQ.js";import"../../chunk-6S566ZMF.js";import"../../chunk-ACKYD4QC.js";import"../../chunk-JR6VISHQ.js";import"../../chunk-FFVTWWGX.js";import"../../chunk-6Y4QJ7WK.js";import"../../chunk-UZNF4JV3.js";import"../../chunk-2UZ72KAQ.js";import"../../chunk-XADVV6OP.js";import"../../chunk-CLAVZQBC.js";import"../../chunk-ET4QWXWY.js";import"../../chunk-72RFYT5Y.js";import"../../chunk-O5XQUEB5.js";import"../../chunk-OSQ6VUDM.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-626FTNKA.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
2
2
  //# sourceMappingURL=ContractorOnboarding.js.map