@remoteoss/remote-flows 1.11.0 → 1.12.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 (420) hide show
  1. package/dist/ButtonDefault-C5BX67YU.js +2 -0
  2. package/dist/CheckboxFieldDefault-HEIDOSI7.js +2 -0
  3. package/dist/CountryFieldDefault-LOWXZDAD.js +2 -0
  4. package/dist/DatePickerFieldDefault-GWFIBBMB.js +2 -0
  5. package/dist/DrawerDefault-I7PMYMPK.js +2 -0
  6. package/dist/EmailFieldDefault-T7YHR6EN.js +2 -0
  7. package/dist/FieldsetToggleButtonDefault-4JT4HGZ5.js +2 -0
  8. package/dist/FileUploadFieldDefault-66JYQDRY.js +2 -0
  9. package/dist/MultiSelectFieldDefault-ZECWDTTO.js +2 -0
  10. package/dist/NumberFieldDefault-IOL6KD5M.js +2 -0
  11. package/dist/PDFPreviewDefault-LVWCRQ6A.js +2 -0
  12. package/dist/RadioGroupFieldDefault-M5CIDW2Y.js +2 -0
  13. package/dist/SelectFieldDefault-HYT2DRK4.js +2 -0
  14. package/dist/StatementDefault-HUOZEIEC.js +2 -0
  15. package/dist/TableFieldDefault-OACG7RGJ.js +2 -0
  16. package/dist/TextAreaFieldDefault-KCPQWVZX.js +2 -0
  17. package/dist/TextFieldDefault-MUGUO7GT.js +2 -0
  18. package/dist/WorkScheduleFieldDefault-CHW2ODQK.js +2 -0
  19. package/dist/ZendeskDrawerDefault-NYESVAZM.js +2 -0
  20. package/dist/{chunk-QPJFFMXN.js → chunk-2DCJODMR.js} +2 -2
  21. package/dist/{chunk-VNN6IP6P.js → chunk-363GGPXU.js} +2 -2
  22. package/dist/{chunk-J63QA2JC.js → chunk-3PIJOIYR.js} +2 -2
  23. package/dist/{chunk-XSNWW3V4.js → chunk-3PVZEAGI.js} +2 -2
  24. package/dist/{chunk-CMFZEZEK.js → chunk-46QJ44CZ.js} +2 -2
  25. package/dist/{chunk-Q445EJX6.js → chunk-4MPMEB2P.js} +2 -2
  26. package/dist/{chunk-N6XY7NC3.js → chunk-4SGF6UNL.js} +2 -2
  27. package/dist/{chunk-YUYHK6WD.js → chunk-4YPJKEHT.js} +2 -2
  28. package/dist/{chunk-QE76JNNE.js → chunk-4ZQ7NOAL.js} +2 -2
  29. package/dist/{chunk-4JIHEEKX.js → chunk-5GAFQRDA.js} +2 -2
  30. package/dist/{chunk-E7JOGKEV.js → chunk-5MXQRMNN.js} +2 -2
  31. package/dist/{chunk-WQSCAHR6.js → chunk-5R66NDTQ.js} +2 -2
  32. package/dist/chunk-65ZDTC36.js +2 -0
  33. package/dist/chunk-65ZDTC36.js.map +1 -0
  34. package/dist/{chunk-4APMRCE7.js → chunk-6OKI4CS4.js} +2 -2
  35. package/dist/{chunk-5FUJICAO.js → chunk-6SB4KOSY.js} +2 -2
  36. package/dist/{chunk-XZLVP6EN.js → chunk-6VQEAU6A.js} +2 -2
  37. package/dist/{chunk-7G4JI6ZU.js → chunk-7G35F5CI.js} +2 -2
  38. package/dist/{chunk-4XJEVGPI.js → chunk-7SVSJ7NG.js} +2 -2
  39. package/dist/{chunk-ZWO4HX27.js → chunk-A6KKKCLW.js} +2 -2
  40. package/dist/chunk-AB3I4P3N.js +2 -0
  41. package/dist/chunk-AB3I4P3N.js.map +1 -0
  42. package/dist/{chunk-XNRPT3WP.js → chunk-AFJIZDZG.js} +2 -2
  43. package/dist/{chunk-55QKFWY5.js → chunk-APHY5GJ6.js} +2 -2
  44. package/dist/{chunk-CCE3EAVC.js → chunk-AS4ND5IO.js} +2 -2
  45. package/dist/{chunk-ERPXDFKC.js → chunk-BDMCADQ6.js} +2 -2
  46. package/dist/{chunk-BDJLITVT.js → chunk-BQ5A22TW.js} +2 -2
  47. package/dist/{chunk-C36DEJTU.js → chunk-BV5ALJ53.js} +2 -2
  48. package/dist/{chunk-BHXCYFC4.js → chunk-BYAU5GDU.js} +2 -2
  49. package/dist/{chunk-GRWTCP42.js → chunk-CD6F3H7B.js} +2 -2
  50. package/dist/{chunk-64D4GLTO.js → chunk-CIVW6O46.js} +2 -2
  51. package/dist/{chunk-4YAFRXR5.js → chunk-CNGXYZQI.js} +2 -2
  52. package/dist/{chunk-PV7FROZ7.js → chunk-CU3WQ2KN.js} +2 -2
  53. package/dist/{chunk-GWR2JBG2.js → chunk-D5NBOIPS.js} +2 -2
  54. package/dist/{chunk-EGDWVDXM.js → chunk-D67Z4NEP.js} +2 -2
  55. package/dist/chunk-DG7WU355.js +2 -0
  56. package/dist/chunk-DG7WU355.js.map +1 -0
  57. package/dist/{chunk-GK3QRXNY.js → chunk-E6NEMSIG.js} +2 -2
  58. package/dist/{chunk-6SVKW2DC.js → chunk-F7E2ENZH.js} +2 -2
  59. package/dist/{chunk-L53XOWY6.js → chunk-FBE7F5HU.js} +2 -2
  60. package/dist/{chunk-2YNDS45E.js → chunk-FI2MVRZR.js} +2 -2
  61. package/dist/{chunk-LGIHVJA5.js → chunk-FJL46ZTU.js} +2 -2
  62. package/dist/{chunk-NVX4O45S.js → chunk-FKM2NCIV.js} +2 -2
  63. package/dist/{chunk-THBDZR3D.js → chunk-FVOZEZJP.js} +2 -2
  64. package/dist/{chunk-I3KFOOF6.js → chunk-GVK4VLLD.js} +2 -2
  65. package/dist/{chunk-JAHRIQVL.js → chunk-HMMFY4PV.js} +2 -2
  66. package/dist/{chunk-WOW74M7R.js → chunk-HO7BGGLQ.js} +2 -2
  67. package/dist/{chunk-5PVNZ6VO.js → chunk-HPA2A2WQ.js} +2 -2
  68. package/dist/{chunk-SBUJLXJH.js → chunk-IHLUQ477.js} +2 -2
  69. package/dist/{chunk-XDILBY5Y.js → chunk-IUCFOQAD.js} +2 -2
  70. package/dist/{chunk-UNBAXL4W.js → chunk-JEULZR34.js} +2 -2
  71. package/dist/{chunk-KESYJ5QG.js → chunk-JJEFWMLY.js} +2 -2
  72. package/dist/{chunk-3KD533T6.js → chunk-JTKKY7II.js} +2 -2
  73. package/dist/{chunk-7V3YVPIK.js → chunk-KCTY6YAP.js} +2 -2
  74. package/dist/{chunk-QSOCKFUS.js → chunk-LLGY2ZUZ.js} +2 -2
  75. package/dist/{chunk-43RCLG2R.js → chunk-LWGNRGU3.js} +2 -2
  76. package/dist/{chunk-Z4JMMKSU.js → chunk-MCGUHRQL.js} +2 -2
  77. package/dist/{chunk-PKXMKBP4.js → chunk-MKSMTFPZ.js} +2 -2
  78. package/dist/{chunk-3JQROVRG.js → chunk-MSCROI55.js} +2 -2
  79. package/dist/{chunk-6AXMBMQI.js → chunk-N4AO3L3N.js} +2 -2
  80. package/dist/{chunk-XYO67D3V.js → chunk-NMDURBYL.js} +2 -2
  81. package/dist/{chunk-XJDX3ZH6.js → chunk-O5ENJKI6.js} +2 -2
  82. package/dist/{chunk-4V6AV3DC.js → chunk-OCTMRR2C.js} +2 -2
  83. package/dist/{chunk-H5LGAIMM.js → chunk-OHQRA2NZ.js} +2 -2
  84. package/dist/{chunk-GINFFWVY.js → chunk-OJ3HJ7QL.js} +2 -2
  85. package/dist/{chunk-AU376LE2.js → chunk-OK3CYSHV.js} +2 -2
  86. package/dist/{chunk-7EMWT6EU.js → chunk-OPWMRKZP.js} +2 -2
  87. package/dist/{chunk-TXVEFBFM.js → chunk-OV7TLEE6.js} +2 -2
  88. package/dist/{chunk-NB3TN7O3.js → chunk-QW6TETWW.js} +2 -2
  89. package/dist/{chunk-DAE2FMZ5.js → chunk-QXTTO2MJ.js} +2 -2
  90. package/dist/{chunk-GZ2JKPBY.js → chunk-RBVGOVSD.js} +2 -2
  91. package/dist/{chunk-GTJMTF2R.js → chunk-RM7W6QA7.js} +2 -2
  92. package/dist/{chunk-KFWZDRDD.js → chunk-RQRODRCR.js} +2 -2
  93. package/dist/{chunk-SIP2BFZJ.js → chunk-RV4IDUEI.js} +2 -2
  94. package/dist/{chunk-XJILW6K3.js → chunk-SLBEVNBG.js} +2 -2
  95. package/dist/{chunk-RBJ5MFDE.js → chunk-T7CGGZOK.js} +2 -2
  96. package/dist/{chunk-IVUCPXEC.js → chunk-TP7ZSHZ3.js} +2 -2
  97. package/dist/{chunk-HYVK643F.js → chunk-TZCNONDA.js} +2 -2
  98. package/dist/{chunk-SUWJZ3QR.js → chunk-UCVXGG6B.js} +2 -2
  99. package/dist/{chunk-G6BR4JI6.js → chunk-UV242U4J.js} +2 -2
  100. package/dist/{chunk-2O6Z2KGG.js → chunk-UXHMIIOB.js} +2 -2
  101. package/dist/{chunk-VH4D3E42.js → chunk-UXP2IITO.js} +2 -2
  102. package/dist/{chunk-JZWOMKR3.js → chunk-UY2IFS7S.js} +2 -2
  103. package/dist/{chunk-2RBFD5MM.js → chunk-VFN7G6LL.js} +2 -2
  104. package/dist/chunk-VQZ6JMPG.js +2 -0
  105. package/dist/chunk-VQZ6JMPG.js.map +1 -0
  106. package/dist/{chunk-NIQXQZ6X.js → chunk-W2PJUNWX.js} +2 -2
  107. package/dist/{chunk-6MJ5MIUI.js → chunk-W5EXVAEO.js} +2 -2
  108. package/dist/{chunk-XSUQM562.js → chunk-WALC3PW7.js} +2 -2
  109. package/dist/{chunk-GOEEA34E.js → chunk-WLMHGJWB.js} +2 -2
  110. package/dist/{chunk-U7MQPLGK.js → chunk-X5LRTFCO.js} +2 -2
  111. package/dist/chunk-X6ZAR7ZL.js +2 -0
  112. package/dist/chunk-X6ZAR7ZL.js.map +1 -0
  113. package/dist/{chunk-UFTA5ATE.js → chunk-XFPUH6H2.js} +2 -2
  114. package/dist/{chunk-3LZR4D3V.js → chunk-XI6P2XA7.js} +2 -2
  115. package/dist/{chunk-QLB4FSLX.js → chunk-XQIVHGI3.js} +2 -2
  116. package/dist/chunk-Y6VOAJG5.js +2 -0
  117. package/dist/chunk-Y6VOAJG5.js.map +1 -0
  118. package/dist/{chunk-A3TXUJUO.js → chunk-YA2G4A3K.js} +2 -2
  119. package/dist/{chunk-FUPQCC4B.js → chunk-YV2MRBXB.js} +2 -2
  120. package/dist/chunk-ZF56VYDM.js +2 -0
  121. package/dist/chunk-ZF56VYDM.js.map +1 -0
  122. package/dist/{chunk-PJ6ZEFWD.js → chunk-ZHRMPK42.js} +3 -3
  123. package/dist/chunk-ZHRMPK42.js.map +1 -0
  124. package/dist/{chunk-2Q57B73D.js → chunk-ZIXR3VSB.js} +2 -2
  125. package/dist/{chunk-4XV4INW5.js → chunk-ZKS7DJDT.js} +2 -2
  126. package/dist/{chunk-MIK6GCO2.js → chunk-ZPDZ6V5R.js} +2 -2
  127. package/dist/{chunk-UAACHXXX.js → chunk-ZPG6GRAX.js} +2 -2
  128. package/dist/{chunk-H5CNWMEM.js → chunk-ZSJ6YADQ.js} +2 -2
  129. package/dist/{chunk-4ECYU3L5.js → chunk-ZVHB54PM.js} +2 -2
  130. package/dist/default-components.d.ts +2 -2
  131. package/dist/default-components.js +1 -1
  132. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  133. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  134. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  135. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  136. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  137. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  138. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  139. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  140. package/dist/flows/ContractAmendment/hooks.js +1 -1
  141. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  142. package/dist/flows/ContractAmendment/index.js +1 -1
  143. package/dist/flows/ContractAmendment/types.d.ts +2 -2
  144. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  145. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +6 -6
  146. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  147. package/dist/flows/ContractorOnboarding/api.d.ts +53 -6
  148. package/dist/flows/ContractorOnboarding/api.js +1 -1
  149. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  150. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  151. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +6 -6
  152. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  153. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  154. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  155. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
  156. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +6 -6
  157. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  158. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +6 -6
  159. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  160. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +23 -0
  161. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +2 -0
  162. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js.map +1 -0
  163. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  164. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  165. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +6 -6
  166. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  167. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  168. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  169. package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
  170. package/dist/flows/ContractorOnboarding/context.d.ts +24 -8
  171. package/dist/flows/ContractorOnboarding/hooks.d.ts +6 -6
  172. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  173. package/dist/flows/ContractorOnboarding/index.d.ts +6 -6
  174. package/dist/flows/ContractorOnboarding/index.js +1 -1
  175. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +6 -6
  176. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  177. package/dist/flows/ContractorOnboarding/types.d.ts +6 -6
  178. package/dist/flows/ContractorOnboarding/utils.d.ts +14 -4
  179. package/dist/flows/ContractorOnboarding/utils.js +1 -1
  180. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  181. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  182. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  183. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  184. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  185. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  186. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
  187. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  188. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
  189. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
  190. package/dist/flows/CostCalculator/api.d.ts +2 -2
  191. package/dist/flows/CostCalculator/api.js +1 -1
  192. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  193. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  194. package/dist/flows/CostCalculator/context.d.ts +3 -3
  195. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  196. package/dist/flows/CostCalculator/hooks.js +1 -1
  197. package/dist/flows/CostCalculator/index.d.ts +3 -3
  198. package/dist/flows/CostCalculator/index.js +1 -1
  199. package/dist/flows/CostCalculator/types.d.ts +2 -2
  200. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  201. package/dist/flows/CostCalculator/utils.js +1 -1
  202. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  203. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  204. package/dist/flows/Onboarding/api.d.ts +4 -4
  205. package/dist/flows/Onboarding/api.js +1 -1
  206. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  207. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  208. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  209. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  210. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  211. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  212. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  213. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  214. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  215. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  216. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  217. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  218. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  219. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  220. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  221. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  222. package/dist/flows/Onboarding/context.d.ts +7 -7
  223. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  224. package/dist/flows/Onboarding/hooks.js +1 -1
  225. package/dist/flows/Onboarding/index.d.ts +4 -4
  226. package/dist/flows/Onboarding/index.js +1 -1
  227. package/dist/flows/Onboarding/types.d.ts +4 -4
  228. package/dist/flows/Onboarding/utils.d.ts +4 -4
  229. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  230. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  231. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  232. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  233. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  234. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  235. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  236. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  237. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  238. package/dist/flows/Termination/TerminationFlow.js +1 -1
  239. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  240. package/dist/flows/Termination/TerminationForm.js +1 -1
  241. package/dist/flows/Termination/api.d.ts +5 -5
  242. package/dist/flows/Termination/api.js +1 -1
  243. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
  244. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  245. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  246. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  247. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  248. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  249. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  250. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  251. package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
  252. package/dist/flows/Termination/context.d.ts +4 -4
  253. package/dist/flows/Termination/hooks.d.ts +4 -4
  254. package/dist/flows/Termination/hooks.js +1 -1
  255. package/dist/flows/Termination/index.d.ts +6 -6
  256. package/dist/flows/Termination/index.js +1 -1
  257. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  258. package/dist/flows/Termination/types.d.ts +4 -4
  259. package/dist/flows/Termination/utils.d.ts +4 -4
  260. package/dist/flows/Termination/utils.js +1 -1
  261. package/dist/flows/types.d.ts +2 -2
  262. package/dist/index.d.ts +10 -10
  263. package/dist/index.js +2 -2
  264. package/dist/index.js.map +1 -1
  265. package/dist/internals.d.ts +3 -3
  266. package/dist/internals.js +1 -1
  267. package/dist/{mutations-CSKL2ADz.d.ts → mutations-D9uKrVyZ.d.ts} +1 -1
  268. package/dist/{remoteFlows-8JqicJKg.d.ts → remoteFlows-C_jytkce.d.ts} +1 -1
  269. package/dist/{types-P-Kidj6s.d.ts → types-Bt9myqn7.d.ts} +5 -5
  270. package/dist/{types-ixtOeG_U.d.ts → types-CJGBgp6W.d.ts} +2 -2
  271. package/dist/{types-Ch9BHKQe.d.ts → types-CReB0W2v.d.ts} +1 -1
  272. package/dist/{types-BL_cUn9Q.d.ts → types-DFiXoRxe.d.ts} +50 -9
  273. package/dist/{types.gen-BBKMFRSu.d.ts → types.gen-CU3zhQBc.d.ts} +66 -1
  274. package/dist/{utils-Cfo-6z-L.d.ts → utils-CiZCA68j.d.ts} +1 -1
  275. package/package.json +1 -1
  276. package/dist/ButtonDefault-W7RPNNTH.js +0 -2
  277. package/dist/CheckboxFieldDefault-JXZ6UY5T.js +0 -2
  278. package/dist/CountryFieldDefault-V7LUYGQV.js +0 -2
  279. package/dist/DatePickerFieldDefault-OMSU42DG.js +0 -2
  280. package/dist/DrawerDefault-V3GEL6Z5.js +0 -2
  281. package/dist/EmailFieldDefault-A3D5VQPS.js +0 -2
  282. package/dist/FieldsetToggleButtonDefault-BKIDTISL.js +0 -2
  283. package/dist/FileUploadFieldDefault-OQ4FGPDM.js +0 -2
  284. package/dist/MultiSelectFieldDefault-EZA25KXD.js +0 -2
  285. package/dist/NumberFieldDefault-BDSRZWXH.js +0 -2
  286. package/dist/PDFPreviewDefault-TV775MOQ.js +0 -2
  287. package/dist/RadioGroupFieldDefault-4IA7HESJ.js +0 -2
  288. package/dist/SelectFieldDefault-3XQ5FPO2.js +0 -2
  289. package/dist/StatementDefault-CCLTSJLJ.js +0 -2
  290. package/dist/TableFieldDefault-ADKV3M23.js +0 -2
  291. package/dist/TextAreaFieldDefault-LVZXGUKB.js +0 -2
  292. package/dist/TextFieldDefault-YQMWGOV2.js +0 -2
  293. package/dist/WorkScheduleFieldDefault-IW4VDBCH.js +0 -2
  294. package/dist/ZendeskDrawerDefault-DKSZSN6N.js +0 -2
  295. package/dist/chunk-3X36ZFNP.js +0 -2
  296. package/dist/chunk-3X36ZFNP.js.map +0 -1
  297. package/dist/chunk-FC2V3NUT.js +0 -2
  298. package/dist/chunk-FC2V3NUT.js.map +0 -1
  299. package/dist/chunk-KXOVDXNX.js +0 -2
  300. package/dist/chunk-KXOVDXNX.js.map +0 -1
  301. package/dist/chunk-PJ6ZEFWD.js.map +0 -1
  302. package/dist/chunk-TCLY24DF.js +0 -2
  303. package/dist/chunk-TCLY24DF.js.map +0 -1
  304. package/dist/chunk-U7PGN7TL.js +0 -2
  305. package/dist/chunk-U7PGN7TL.js.map +0 -1
  306. package/dist/chunk-ZL6FKICW.js +0 -2
  307. package/dist/chunk-ZL6FKICW.js.map +0 -1
  308. /package/dist/{ButtonDefault-W7RPNNTH.js.map → ButtonDefault-C5BX67YU.js.map} +0 -0
  309. /package/dist/{CheckboxFieldDefault-JXZ6UY5T.js.map → CheckboxFieldDefault-HEIDOSI7.js.map} +0 -0
  310. /package/dist/{CountryFieldDefault-V7LUYGQV.js.map → CountryFieldDefault-LOWXZDAD.js.map} +0 -0
  311. /package/dist/{DatePickerFieldDefault-OMSU42DG.js.map → DatePickerFieldDefault-GWFIBBMB.js.map} +0 -0
  312. /package/dist/{DrawerDefault-V3GEL6Z5.js.map → DrawerDefault-I7PMYMPK.js.map} +0 -0
  313. /package/dist/{EmailFieldDefault-A3D5VQPS.js.map → EmailFieldDefault-T7YHR6EN.js.map} +0 -0
  314. /package/dist/{FieldsetToggleButtonDefault-BKIDTISL.js.map → FieldsetToggleButtonDefault-4JT4HGZ5.js.map} +0 -0
  315. /package/dist/{FileUploadFieldDefault-OQ4FGPDM.js.map → FileUploadFieldDefault-66JYQDRY.js.map} +0 -0
  316. /package/dist/{MultiSelectFieldDefault-EZA25KXD.js.map → MultiSelectFieldDefault-ZECWDTTO.js.map} +0 -0
  317. /package/dist/{NumberFieldDefault-BDSRZWXH.js.map → NumberFieldDefault-IOL6KD5M.js.map} +0 -0
  318. /package/dist/{PDFPreviewDefault-TV775MOQ.js.map → PDFPreviewDefault-LVWCRQ6A.js.map} +0 -0
  319. /package/dist/{RadioGroupFieldDefault-4IA7HESJ.js.map → RadioGroupFieldDefault-M5CIDW2Y.js.map} +0 -0
  320. /package/dist/{SelectFieldDefault-3XQ5FPO2.js.map → SelectFieldDefault-HYT2DRK4.js.map} +0 -0
  321. /package/dist/{StatementDefault-CCLTSJLJ.js.map → StatementDefault-HUOZEIEC.js.map} +0 -0
  322. /package/dist/{TableFieldDefault-ADKV3M23.js.map → TableFieldDefault-OACG7RGJ.js.map} +0 -0
  323. /package/dist/{TextAreaFieldDefault-LVZXGUKB.js.map → TextAreaFieldDefault-KCPQWVZX.js.map} +0 -0
  324. /package/dist/{TextFieldDefault-YQMWGOV2.js.map → TextFieldDefault-MUGUO7GT.js.map} +0 -0
  325. /package/dist/{WorkScheduleFieldDefault-IW4VDBCH.js.map → WorkScheduleFieldDefault-CHW2ODQK.js.map} +0 -0
  326. /package/dist/{ZendeskDrawerDefault-DKSZSN6N.js.map → ZendeskDrawerDefault-NYESVAZM.js.map} +0 -0
  327. /package/dist/{chunk-QPJFFMXN.js.map → chunk-2DCJODMR.js.map} +0 -0
  328. /package/dist/{chunk-VNN6IP6P.js.map → chunk-363GGPXU.js.map} +0 -0
  329. /package/dist/{chunk-J63QA2JC.js.map → chunk-3PIJOIYR.js.map} +0 -0
  330. /package/dist/{chunk-XSNWW3V4.js.map → chunk-3PVZEAGI.js.map} +0 -0
  331. /package/dist/{chunk-CMFZEZEK.js.map → chunk-46QJ44CZ.js.map} +0 -0
  332. /package/dist/{chunk-Q445EJX6.js.map → chunk-4MPMEB2P.js.map} +0 -0
  333. /package/dist/{chunk-N6XY7NC3.js.map → chunk-4SGF6UNL.js.map} +0 -0
  334. /package/dist/{chunk-YUYHK6WD.js.map → chunk-4YPJKEHT.js.map} +0 -0
  335. /package/dist/{chunk-QE76JNNE.js.map → chunk-4ZQ7NOAL.js.map} +0 -0
  336. /package/dist/{chunk-4JIHEEKX.js.map → chunk-5GAFQRDA.js.map} +0 -0
  337. /package/dist/{chunk-E7JOGKEV.js.map → chunk-5MXQRMNN.js.map} +0 -0
  338. /package/dist/{chunk-WQSCAHR6.js.map → chunk-5R66NDTQ.js.map} +0 -0
  339. /package/dist/{chunk-4APMRCE7.js.map → chunk-6OKI4CS4.js.map} +0 -0
  340. /package/dist/{chunk-5FUJICAO.js.map → chunk-6SB4KOSY.js.map} +0 -0
  341. /package/dist/{chunk-XZLVP6EN.js.map → chunk-6VQEAU6A.js.map} +0 -0
  342. /package/dist/{chunk-7G4JI6ZU.js.map → chunk-7G35F5CI.js.map} +0 -0
  343. /package/dist/{chunk-4XJEVGPI.js.map → chunk-7SVSJ7NG.js.map} +0 -0
  344. /package/dist/{chunk-ZWO4HX27.js.map → chunk-A6KKKCLW.js.map} +0 -0
  345. /package/dist/{chunk-XNRPT3WP.js.map → chunk-AFJIZDZG.js.map} +0 -0
  346. /package/dist/{chunk-55QKFWY5.js.map → chunk-APHY5GJ6.js.map} +0 -0
  347. /package/dist/{chunk-CCE3EAVC.js.map → chunk-AS4ND5IO.js.map} +0 -0
  348. /package/dist/{chunk-ERPXDFKC.js.map → chunk-BDMCADQ6.js.map} +0 -0
  349. /package/dist/{chunk-BDJLITVT.js.map → chunk-BQ5A22TW.js.map} +0 -0
  350. /package/dist/{chunk-C36DEJTU.js.map → chunk-BV5ALJ53.js.map} +0 -0
  351. /package/dist/{chunk-BHXCYFC4.js.map → chunk-BYAU5GDU.js.map} +0 -0
  352. /package/dist/{chunk-GRWTCP42.js.map → chunk-CD6F3H7B.js.map} +0 -0
  353. /package/dist/{chunk-64D4GLTO.js.map → chunk-CIVW6O46.js.map} +0 -0
  354. /package/dist/{chunk-4YAFRXR5.js.map → chunk-CNGXYZQI.js.map} +0 -0
  355. /package/dist/{chunk-PV7FROZ7.js.map → chunk-CU3WQ2KN.js.map} +0 -0
  356. /package/dist/{chunk-GWR2JBG2.js.map → chunk-D5NBOIPS.js.map} +0 -0
  357. /package/dist/{chunk-EGDWVDXM.js.map → chunk-D67Z4NEP.js.map} +0 -0
  358. /package/dist/{chunk-GK3QRXNY.js.map → chunk-E6NEMSIG.js.map} +0 -0
  359. /package/dist/{chunk-6SVKW2DC.js.map → chunk-F7E2ENZH.js.map} +0 -0
  360. /package/dist/{chunk-L53XOWY6.js.map → chunk-FBE7F5HU.js.map} +0 -0
  361. /package/dist/{chunk-2YNDS45E.js.map → chunk-FI2MVRZR.js.map} +0 -0
  362. /package/dist/{chunk-LGIHVJA5.js.map → chunk-FJL46ZTU.js.map} +0 -0
  363. /package/dist/{chunk-NVX4O45S.js.map → chunk-FKM2NCIV.js.map} +0 -0
  364. /package/dist/{chunk-THBDZR3D.js.map → chunk-FVOZEZJP.js.map} +0 -0
  365. /package/dist/{chunk-I3KFOOF6.js.map → chunk-GVK4VLLD.js.map} +0 -0
  366. /package/dist/{chunk-JAHRIQVL.js.map → chunk-HMMFY4PV.js.map} +0 -0
  367. /package/dist/{chunk-WOW74M7R.js.map → chunk-HO7BGGLQ.js.map} +0 -0
  368. /package/dist/{chunk-5PVNZ6VO.js.map → chunk-HPA2A2WQ.js.map} +0 -0
  369. /package/dist/{chunk-SBUJLXJH.js.map → chunk-IHLUQ477.js.map} +0 -0
  370. /package/dist/{chunk-XDILBY5Y.js.map → chunk-IUCFOQAD.js.map} +0 -0
  371. /package/dist/{chunk-UNBAXL4W.js.map → chunk-JEULZR34.js.map} +0 -0
  372. /package/dist/{chunk-KESYJ5QG.js.map → chunk-JJEFWMLY.js.map} +0 -0
  373. /package/dist/{chunk-3KD533T6.js.map → chunk-JTKKY7II.js.map} +0 -0
  374. /package/dist/{chunk-7V3YVPIK.js.map → chunk-KCTY6YAP.js.map} +0 -0
  375. /package/dist/{chunk-QSOCKFUS.js.map → chunk-LLGY2ZUZ.js.map} +0 -0
  376. /package/dist/{chunk-43RCLG2R.js.map → chunk-LWGNRGU3.js.map} +0 -0
  377. /package/dist/{chunk-Z4JMMKSU.js.map → chunk-MCGUHRQL.js.map} +0 -0
  378. /package/dist/{chunk-PKXMKBP4.js.map → chunk-MKSMTFPZ.js.map} +0 -0
  379. /package/dist/{chunk-3JQROVRG.js.map → chunk-MSCROI55.js.map} +0 -0
  380. /package/dist/{chunk-6AXMBMQI.js.map → chunk-N4AO3L3N.js.map} +0 -0
  381. /package/dist/{chunk-XYO67D3V.js.map → chunk-NMDURBYL.js.map} +0 -0
  382. /package/dist/{chunk-XJDX3ZH6.js.map → chunk-O5ENJKI6.js.map} +0 -0
  383. /package/dist/{chunk-4V6AV3DC.js.map → chunk-OCTMRR2C.js.map} +0 -0
  384. /package/dist/{chunk-H5LGAIMM.js.map → chunk-OHQRA2NZ.js.map} +0 -0
  385. /package/dist/{chunk-GINFFWVY.js.map → chunk-OJ3HJ7QL.js.map} +0 -0
  386. /package/dist/{chunk-AU376LE2.js.map → chunk-OK3CYSHV.js.map} +0 -0
  387. /package/dist/{chunk-7EMWT6EU.js.map → chunk-OPWMRKZP.js.map} +0 -0
  388. /package/dist/{chunk-TXVEFBFM.js.map → chunk-OV7TLEE6.js.map} +0 -0
  389. /package/dist/{chunk-NB3TN7O3.js.map → chunk-QW6TETWW.js.map} +0 -0
  390. /package/dist/{chunk-DAE2FMZ5.js.map → chunk-QXTTO2MJ.js.map} +0 -0
  391. /package/dist/{chunk-GZ2JKPBY.js.map → chunk-RBVGOVSD.js.map} +0 -0
  392. /package/dist/{chunk-GTJMTF2R.js.map → chunk-RM7W6QA7.js.map} +0 -0
  393. /package/dist/{chunk-KFWZDRDD.js.map → chunk-RQRODRCR.js.map} +0 -0
  394. /package/dist/{chunk-SIP2BFZJ.js.map → chunk-RV4IDUEI.js.map} +0 -0
  395. /package/dist/{chunk-XJILW6K3.js.map → chunk-SLBEVNBG.js.map} +0 -0
  396. /package/dist/{chunk-RBJ5MFDE.js.map → chunk-T7CGGZOK.js.map} +0 -0
  397. /package/dist/{chunk-IVUCPXEC.js.map → chunk-TP7ZSHZ3.js.map} +0 -0
  398. /package/dist/{chunk-HYVK643F.js.map → chunk-TZCNONDA.js.map} +0 -0
  399. /package/dist/{chunk-SUWJZ3QR.js.map → chunk-UCVXGG6B.js.map} +0 -0
  400. /package/dist/{chunk-G6BR4JI6.js.map → chunk-UV242U4J.js.map} +0 -0
  401. /package/dist/{chunk-2O6Z2KGG.js.map → chunk-UXHMIIOB.js.map} +0 -0
  402. /package/dist/{chunk-VH4D3E42.js.map → chunk-UXP2IITO.js.map} +0 -0
  403. /package/dist/{chunk-JZWOMKR3.js.map → chunk-UY2IFS7S.js.map} +0 -0
  404. /package/dist/{chunk-2RBFD5MM.js.map → chunk-VFN7G6LL.js.map} +0 -0
  405. /package/dist/{chunk-NIQXQZ6X.js.map → chunk-W2PJUNWX.js.map} +0 -0
  406. /package/dist/{chunk-6MJ5MIUI.js.map → chunk-W5EXVAEO.js.map} +0 -0
  407. /package/dist/{chunk-XSUQM562.js.map → chunk-WALC3PW7.js.map} +0 -0
  408. /package/dist/{chunk-GOEEA34E.js.map → chunk-WLMHGJWB.js.map} +0 -0
  409. /package/dist/{chunk-U7MQPLGK.js.map → chunk-X5LRTFCO.js.map} +0 -0
  410. /package/dist/{chunk-UFTA5ATE.js.map → chunk-XFPUH6H2.js.map} +0 -0
  411. /package/dist/{chunk-3LZR4D3V.js.map → chunk-XI6P2XA7.js.map} +0 -0
  412. /package/dist/{chunk-QLB4FSLX.js.map → chunk-XQIVHGI3.js.map} +0 -0
  413. /package/dist/{chunk-A3TXUJUO.js.map → chunk-YA2G4A3K.js.map} +0 -0
  414. /package/dist/{chunk-FUPQCC4B.js.map → chunk-YV2MRBXB.js.map} +0 -0
  415. /package/dist/{chunk-2Q57B73D.js.map → chunk-ZIXR3VSB.js.map} +0 -0
  416. /package/dist/{chunk-4XV4INW5.js.map → chunk-ZKS7DJDT.js.map} +0 -0
  417. /package/dist/{chunk-MIK6GCO2.js.map → chunk-ZPDZ6V5R.js.map} +0 -0
  418. /package/dist/{chunk-UAACHXXX.js.map → chunk-ZPG6GRAX.js.map} +0 -0
  419. /package/dist/{chunk-H5CNWMEM.js.map → chunk-ZSJ6YADQ.js.map} +0 -0
  420. /package/dist/{chunk-4ECYU3L5.js.map → chunk-ZVHB54PM.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-KFWZDRDD.js";import{a as Y}from"./chunk-5FUJICAO.js";import{a as Q}from"./chunk-2YNDS45E.js";import{a as J}from"./chunk-5PVNZ6VO.js";import{a as H}from"./chunk-YRC6EEM3.js";import{a as q,b as B,c as L,d as z}from"./chunk-XSNWW3V4.js";import{g as Z,h as K}from"./chunk-UFTA5ATE.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as S}from"./chunk-XDILBY5Y.js";import{a as N}from"./chunk-Q445EJX6.js";import{a as E}from"./chunk-EUSCQL4H.js";import{e as _}from"./chunk-T7O3YYOG.js";import{a as u,b as v}from"./chunk-BDJLITVT.js";import{n as $}from"./chunk-PJ6ZEFWD.js";import{a as D}from"./chunk-J63QA2JC.js";import{a as w}from"./chunk-3X36ZFNP.js";import{a as A}from"./chunk-5BRMLRS7.js";import{a as I}from"./chunk-Z5WMKCRJ.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-6AXMBMQI.js.map
1
+ import{a as J}from"./chunk-HPA2A2WQ.js";import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-RQRODRCR.js";import{a as Y}from"./chunk-6SB4KOSY.js";import{a as Q}from"./chunk-FI2MVRZR.js";import{a as H}from"./chunk-YRC6EEM3.js";import{a as q,b as B,c as L,d as z}from"./chunk-3PVZEAGI.js";import{g as Z,h as K}from"./chunk-XFPUH6H2.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as S}from"./chunk-IUCFOQAD.js";import{a as N}from"./chunk-4MPMEB2P.js";import{a as E}from"./chunk-EUSCQL4H.js";import{e as _}from"./chunk-T7O3YYOG.js";import{a as u,b as v}from"./chunk-BQ5A22TW.js";import{n as $}from"./chunk-ZHRMPK42.js";import{a as D}from"./chunk-3PIJOIYR.js";import{a as w}from"./chunk-X6ZAR7ZL.js";import{a as A}from"./chunk-5BRMLRS7.js";import{a as I}from"./chunk-Z5WMKCRJ.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-N4AO3L3N.js.map
@@ -1,2 +1,2 @@
1
- import{a as k}from"./chunk-SIP2BFZJ.js";import{a as C,b as w,c as F,d as P}from"./chunk-PV7FROZ7.js";import{i as _,j as v,k as x,l as h,m as b}from"./chunk-H5CNWMEM.js";import{a as u,b as D}from"./chunk-YUYHK6WD.js";import{a as t}from"./chunk-J63QA2JC.js";import{a as o}from"./chunk-P37U34EQ.js";import{CalendarIcon as L}from"lucide-react";import{format as R}from"date-fns";import{ChevronLeft as I,ChevronRight as M}from"lucide-react";import{DayPicker as z}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function N({className:r,classNames:i,showOutsideDays:s=!0,...n}){return p(z,{showOutsideDays:s,className:t("p-3",r),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:t(u({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:t("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",n.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:t(u({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...i},components:{IconLeft:o(({className:d,...l})=>p(I,{className:t("size-4",d),...l}),"IconLeft"),IconRight:o(({className:d,...l})=>p(M,{className:t("size-4",d),...l}),"IconRight")},...n})}o(N,"Calendar");import{Fragment as V,jsx as e,jsxs as m}from"react/jsx-runtime";function X({field:r,fieldData:i,fieldState:s}){let{name:n,label:d,description:l,minDate:f,maxDate:g}=i,c=f?new Date(f):void 0,y=g?new Date(g):void 0;return m(_,{"data-field":n,className:`flex flex-col RemoteFlows__DatePickerField__Item__${n}`,children:[e(v,{className:"RemoteFlows__DatePickerField__Label",children:d}),m(w,{children:[e(F,{asChild:!0,children:e(x,{children:e("div",{children:m(D,{type:"button",variant:"outline",className:t("w-full pl-3 text-left font-normal",!r.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${n}`,children:[r.value&&e(V,{children:R(r.value,"yyyy-MM-dd")}),e(L,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(P,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(N,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:r.value?new Date(r.value):void 0,onSelect:a=>{r.onChange(a?R(a,"yyyy-MM-dd"):null)},defaultMonth:c,components:{DayContent:o(a=>e(C,{children:a.date.getDate()}),"DayContent")},disabled:a=>!!(c&&a<c||y&&a>y)})})]}),l?m(h,{children:[l," ",e(k,{helpCenter:i.meta?.helpCenter})]}):null,s.error&&e(b,{className:"RemoteFlows__DatePickerField__Error"})]})}o(X,"DatePickerFieldDefault");export{X as a};
2
- //# sourceMappingURL=chunk-XYO67D3V.js.map
1
+ import{a as k}from"./chunk-RV4IDUEI.js";import{a as C,b as w,c as F,d as P}from"./chunk-CU3WQ2KN.js";import{i as _,j as v,k as x,l as h,m as b}from"./chunk-ZSJ6YADQ.js";import{a as u,b as D}from"./chunk-4YPJKEHT.js";import{a as t}from"./chunk-3PIJOIYR.js";import{a as o}from"./chunk-P37U34EQ.js";import{CalendarIcon as L}from"lucide-react";import{format as R}from"date-fns";import{ChevronLeft as I,ChevronRight as M}from"lucide-react";import{DayPicker as z}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function N({className:r,classNames:i,showOutsideDays:s=!0,...n}){return p(z,{showOutsideDays:s,className:t("p-3",r),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:t(u({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:t("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",n.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:t(u({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...i},components:{IconLeft:o(({className:d,...l})=>p(I,{className:t("size-4",d),...l}),"IconLeft"),IconRight:o(({className:d,...l})=>p(M,{className:t("size-4",d),...l}),"IconRight")},...n})}o(N,"Calendar");import{Fragment as V,jsx as e,jsxs as m}from"react/jsx-runtime";function X({field:r,fieldData:i,fieldState:s}){let{name:n,label:d,description:l,minDate:f,maxDate:g}=i,c=f?new Date(f):void 0,y=g?new Date(g):void 0;return m(_,{"data-field":n,className:`flex flex-col RemoteFlows__DatePickerField__Item__${n}`,children:[e(v,{className:"RemoteFlows__DatePickerField__Label",children:d}),m(w,{children:[e(F,{asChild:!0,children:e(x,{children:e("div",{children:m(D,{type:"button",variant:"outline",className:t("w-full pl-3 text-left font-normal",!r.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${n}`,children:[r.value&&e(V,{children:R(r.value,"yyyy-MM-dd")}),e(L,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(P,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(N,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:r.value?new Date(r.value):void 0,onSelect:a=>{r.onChange(a?R(a,"yyyy-MM-dd"):null)},defaultMonth:c,components:{DayContent:o(a=>e(C,{children:a.date.getDate()}),"DayContent")},disabled:a=>!!(c&&a<c||y&&a>y)})})]}),l?m(h,{children:[l," ",e(k,{helpCenter:i.meta?.helpCenter})]}):null,s.error&&e(b,{className:"RemoteFlows__DatePickerField__Error"})]})}o(X,"DatePickerFieldDefault");export{X as a};
2
+ //# sourceMappingURL=chunk-NMDURBYL.js.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-GWR2JBG2.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function t({field:m,fieldData:i}){return n(o,{name:m.name,...i,type:"email"})}e(t,"EmailFieldDefault");export{t as a};
2
- //# sourceMappingURL=chunk-XJDX3ZH6.js.map
1
+ import{a as o}from"./chunk-D5NBOIPS.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function t({field:m,fieldData:i}){return n(o,{name:m.name,...i,type:"email"})}e(t,"EmailFieldDefault");export{t as a};
2
+ //# sourceMappingURL=chunk-O5ENJKI6.js.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-GWR2JBG2.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function n({field:t,fieldData:p}){return r(o,{type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",...t,...p})}e(n,"NumberFieldDefault");export{n as a};
2
- //# sourceMappingURL=chunk-4V6AV3DC.js.map
1
+ import{a as o}from"./chunk-D5NBOIPS.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function n({field:t,fieldData:p}){return r(o,{type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",...t,...p})}e(n,"NumberFieldDefault");export{n as a};
2
+ //# sourceMappingURL=chunk-OCTMRR2C.js.map
@@ -1,2 +1,2 @@
1
- import{a as p}from"./chunk-EUSCQL4H.js";import{C as m,G as C,L as d,j as l,r as u,x as c}from"./chunk-PJ6ZEFWD.js";import{d as o}from"./chunk-KQPDXXG3.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as a,useQuery as r}from"@tanstack/react-query";var h=t(({includePremiumBenefits:e})=>{let{client:i}=o();return r({queryKey:["cost-calculator-countries",e],queryFn:t(()=>c({client:i,query:{include_premium_benefits:e}}),"queryFn"),select:t(s=>s.data?.data.filter(n=>n.availability==="active").map(n=>({value:n.region_slug,label:n.name,childRegions:n.child_regions,hasAdditionalFields:n.has_additional_fields,regionSlug:n.region_slug,currency:n.currency.code})),"select")})},"useCostCalculatorCountries"),q=t(()=>{let{client:e}=o();return r({queryKey:["company-currencies"],queryFn:t(()=>d({client:e}),"queryFn"),select:t(i=>i.data?.data?.company_currencies.map(s=>({value:s.slug,label:s.code})),"select")})},"useCompanyCurrencies"),x=t(()=>{let{client:e}=o();return a({mutationFn:t(i=>l({client:e,body:i}),"mutationFn")})},"useCostCalculatorEstimation"),P=t(()=>{let{client:e}=o();return a({mutationFn:t(i=>u({client:e,body:i}),"mutationFn")})},"useCostCalculatorEstimationPdf"),v=t(()=>{let{client:e}=o();return a({mutationFn:t(i=>C({client:e,body:i}),"mutationFn")})},"useCostCalculatorEstimationCsv"),S=t((e,{includePremiumBenefits:i,options:s})=>{let{client:n}=o();return r({queryKey:["cost-calculator-region-fields",e,i],queryFn:t(()=>m({client:n,path:{slug:e},query:{include_premium_benefits:i}}),"queryFn"),enabled:!!e,select:t(({data:f})=>{let y=f?.data?.schema||{};return p(y,void 0,s)},"select")})},"useRegionFields");export{h as a,q as b,x as c,P as d,v as e,S as f};
2
- //# sourceMappingURL=chunk-H5LGAIMM.js.map
1
+ import{a as p}from"./chunk-EUSCQL4H.js";import{D as m,H as C,M as d,j as l,r as u,x as c}from"./chunk-ZHRMPK42.js";import{d as o}from"./chunk-KQPDXXG3.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as a,useQuery as r}from"@tanstack/react-query";var h=t(({includePremiumBenefits:e})=>{let{client:i}=o();return r({queryKey:["cost-calculator-countries",e],queryFn:t(()=>c({client:i,query:{include_premium_benefits:e}}),"queryFn"),select:t(s=>s.data?.data.filter(n=>n.availability==="active").map(n=>({value:n.region_slug,label:n.name,childRegions:n.child_regions,hasAdditionalFields:n.has_additional_fields,regionSlug:n.region_slug,currency:n.currency.code})),"select")})},"useCostCalculatorCountries"),q=t(()=>{let{client:e}=o();return r({queryKey:["company-currencies"],queryFn:t(()=>d({client:e}),"queryFn"),select:t(i=>i.data?.data?.company_currencies.map(s=>({value:s.slug,label:s.code})),"select")})},"useCompanyCurrencies"),x=t(()=>{let{client:e}=o();return a({mutationFn:t(i=>l({client:e,body:i}),"mutationFn")})},"useCostCalculatorEstimation"),P=t(()=>{let{client:e}=o();return a({mutationFn:t(i=>u({client:e,body:i}),"mutationFn")})},"useCostCalculatorEstimationPdf"),v=t(()=>{let{client:e}=o();return a({mutationFn:t(i=>C({client:e,body:i}),"mutationFn")})},"useCostCalculatorEstimationCsv"),S=t((e,{includePremiumBenefits:i,options:s})=>{let{client:n}=o();return r({queryKey:["cost-calculator-region-fields",e,i],queryFn:t(()=>m({client:n,path:{slug:e},query:{include_premium_benefits:i}}),"queryFn"),enabled:!!e,select:t(({data:f})=>{let y=f?.data?.schema||{};return p(y,void 0,s)},"select")})},"useRegionFields");export{h as a,q as b,x as c,P as d,v as e,S as f};
2
+ //# sourceMappingURL=chunk-OHQRA2NZ.js.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-J63QA2JC.js";import{a as d}from"./chunk-P37U34EQ.js";import*as r from"react";import{jsx as o}from"react/jsx-runtime";var i=r.forwardRef(({className:a,...e},t)=>o("div",{className:"relative w-full overflow-auto",children:o("table",{ref:t,className:l("w-full caption-bottom text-sm",a),...e})}));i.displayName="Table";var c=r.forwardRef(({className:a,...e},t)=>o("thead",{ref:t,className:l("[&_tr]:border-b",a),...e}));c.displayName="TableHeader";var n=r.forwardRef(({className:a,...e},t)=>o("tbody",{ref:t,className:l("[&_tr:last-child]:border-0",a),...e}));n.displayName="TableBody";var M=r.forwardRef(({className:a,...e},t)=>o("tfoot",{ref:t,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...e}));M.displayName="TableFooter";var m=r.forwardRef(({className:a,...e},t)=>o("tr",{ref:t,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...e}));m.displayName="TableRow";var f=r.forwardRef(({className:a,...e},t)=>o("th",{ref:t,className:l("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));f.displayName="TableHead";var p=r.forwardRef(({className:a,...e},t)=>o("td",{ref:t,className:l("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));p.displayName="TableCell";var L=r.forwardRef(({className:a,...e},t)=>o("caption",{ref:t,className:l("mt-4 text-sm text-muted-foreground",a),...e}));L.displayName="TableCaption";import{jsx as s,jsxs as N}from"react/jsx-runtime";var g=d(({data:a,columns:e,className:t,ref:H})=>N(i,{ref:H,className:l("RemoteFlows__Table",t),children:[s(c,{children:s(m,{children:e.map(b=>s(f,{className:l("RemoteFlows__TableHead",b.className),children:b.label},String(b.id)))})}),s(n,{children:a?.map((b,R)=>s(m,{children:e.map(T=>s(p,{className:l("RemoteFlows__TableCell",T.className,T.cellClassName),children:T.render?T.render(b[T.id],b,R):b[T.id]},String(T.id)))},y(b,R)))})]}),"TableFieldDefault");function y(a,e){return String(a.id??e)}d(y,"getRowKey");export{g as a};
2
- //# sourceMappingURL=chunk-GINFFWVY.js.map
1
+ import{a as l}from"./chunk-3PIJOIYR.js";import{a as d}from"./chunk-P37U34EQ.js";import*as r from"react";import{jsx as o}from"react/jsx-runtime";var i=r.forwardRef(({className:a,...e},t)=>o("div",{className:"relative w-full overflow-auto",children:o("table",{ref:t,className:l("w-full caption-bottom text-sm",a),...e})}));i.displayName="Table";var c=r.forwardRef(({className:a,...e},t)=>o("thead",{ref:t,className:l("[&_tr]:border-b",a),...e}));c.displayName="TableHeader";var n=r.forwardRef(({className:a,...e},t)=>o("tbody",{ref:t,className:l("[&_tr:last-child]:border-0",a),...e}));n.displayName="TableBody";var M=r.forwardRef(({className:a,...e},t)=>o("tfoot",{ref:t,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...e}));M.displayName="TableFooter";var m=r.forwardRef(({className:a,...e},t)=>o("tr",{ref:t,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...e}));m.displayName="TableRow";var f=r.forwardRef(({className:a,...e},t)=>o("th",{ref:t,className:l("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));f.displayName="TableHead";var p=r.forwardRef(({className:a,...e},t)=>o("td",{ref:t,className:l("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));p.displayName="TableCell";var L=r.forwardRef(({className:a,...e},t)=>o("caption",{ref:t,className:l("mt-4 text-sm text-muted-foreground",a),...e}));L.displayName="TableCaption";import{jsx as s,jsxs as N}from"react/jsx-runtime";var g=d(({data:a,columns:e,className:t,ref:H})=>N(i,{ref:H,className:l("RemoteFlows__Table",t),children:[s(c,{children:s(m,{children:e.map(b=>s(f,{className:l("RemoteFlows__TableHead",b.className),children:b.label},String(b.id)))})}),s(n,{children:a?.map((b,R)=>s(m,{children:e.map(T=>s(p,{className:l("RemoteFlows__TableCell",T.className,T.cellClassName),children:T.render?T.render(b[T.id],b,R):b[T.id]},String(T.id)))},y(b,R)))})]}),"TableFieldDefault");function y(a,e){return String(a.id??e)}d(y,"getRowKey");export{g as a};
2
+ //# sourceMappingURL=chunk-OJ3HJ7QL.js.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-J63QA2JC.js";import{a as e}from"./chunk-P37U34EQ.js";import{Slot as i}from"@radix-ui/react-slot";import{cva as d}from"class-variance-authority";import{jsx as u}from"react/jsx-runtime";var s=d("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-badge text-badge-foreground rounded-full [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground rounded-full [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white rounded-full [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",outline:"text-foreground rounded-full [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function g({className:t,variant:a,asChild:o=!1,...n}){return u(o?i:"span",{"data-slot":"badge",className:r(s({variant:a}),t),...n})}e(g,"Badge");export{s as a,g as b};
2
- //# sourceMappingURL=chunk-AU376LE2.js.map
1
+ import{a as r}from"./chunk-3PIJOIYR.js";import{a as e}from"./chunk-P37U34EQ.js";import{Slot as i}from"@radix-ui/react-slot";import{cva as d}from"class-variance-authority";import{jsx as u}from"react/jsx-runtime";var s=d("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-badge text-badge-foreground rounded-full [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground rounded-full [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white rounded-full [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",outline:"text-foreground rounded-full [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function g({className:t,variant:a,asChild:o=!1,...n}){return u(o?i:"span",{"data-slot":"badge",className:r(s({variant:a}),t),...n})}e(g,"Badge");export{s as a,g as b};
2
+ //# sourceMappingURL=chunk-OK3CYSHV.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-J63QA2JC.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-7EMWT6EU.js.map
1
+ import{a as e}from"./chunk-3PIJOIYR.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-OPWMRKZP.js.map
@@ -1,2 +1,2 @@
1
- import{a as t,b as n,c as l,d as i,e as s,f as d}from"./chunk-NIQXQZ6X.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({open:w,onClose:D,data:o,isLoading:m,error:p,zendeskURL:f,Trigger:c}){return r(t,{open:w,onOpenChange:g=>!g&&D(),direction:"right",children:[e(n,{asChild:!0,children:c}),e(l,{className:"h-full w-[540px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:r("div",{className:"h-full flex flex-col",children:[r(i,{children:[e(s,{children:o?.title}),r(d,{children:["For more details see our"," ",e("a",{href:f,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),m&&e("div",{children:"Loading..."}),p&&e("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),e("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:o?.body||""}})]})})]})}a(h,"ZendeskDrawerDefault");export{h as a};
2
- //# sourceMappingURL=chunk-TXVEFBFM.js.map
1
+ import{a as t,b as n,c as l,d as i,e as s,f as d}from"./chunk-W2PJUNWX.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({open:w,onClose:D,data:o,isLoading:m,error:p,zendeskURL:f,Trigger:c}){return r(t,{open:w,onOpenChange:g=>!g&&D(),direction:"right",children:[e(n,{asChild:!0,children:c}),e(l,{className:"h-full w-[540px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:r("div",{className:"h-full flex flex-col",children:[r(i,{children:[e(s,{children:o?.title}),r(d,{children:["For more details see our"," ",e("a",{href:f,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),m&&e("div",{children:"Loading..."}),p&&e("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),e("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:o?.body||""}})]})})]})}a(h,"ZendeskDrawerDefault");export{h as a};
2
+ //# sourceMappingURL=chunk-OV7TLEE6.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-SBUJLXJH.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-NB3TN7O3.js.map
1
+ import{a as n}from"./chunk-IHLUQ477.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-QW6TETWW.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-7V3YVPIK.js";import{a as r}from"./chunk-QSOCKFUS.js";import{a}from"./chunk-U6LRMWRI.js";import{a as c}from"./chunk-BHXCYFC4.js";import{a as e}from"./chunk-D5AR26AI.js";import{a as o}from"./chunk-TVZAFTPT.js";import{a as n}from"./chunk-P37U34EQ.js";import{useId as f}from"react";import{jsx as s}from"react/jsx-runtime";function k({employmentId:d,countryCode:C,options:p,render:A}){let t=c({employmentId:d,countryCode:C,options:p}),i=f();return s(o.Provider,{value:{formId:i,contractAmendmentBag:t},children:A({contractAmendmentBag:t,components:{Form:r,SubmitButton:a,ConfirmationForm:m,BackButton:e}})})}n(k,"ContractAmendmentFlow");export{k as a};
2
- //# sourceMappingURL=chunk-DAE2FMZ5.js.map
1
+ import{a as m}from"./chunk-KCTY6YAP.js";import{a as r}from"./chunk-LLGY2ZUZ.js";import{a}from"./chunk-U6LRMWRI.js";import{a as c}from"./chunk-BYAU5GDU.js";import{a as e}from"./chunk-D5AR26AI.js";import{a as o}from"./chunk-TVZAFTPT.js";import{a as n}from"./chunk-P37U34EQ.js";import{useId as f}from"react";import{jsx as s}from"react/jsx-runtime";function k({employmentId:d,countryCode:C,options:p,render:A}){let t=c({employmentId:d,countryCode:C,options:p}),i=f();return s(o.Provider,{value:{formId:i,contractAmendmentBag:t},children:A({contractAmendmentBag:t,components:{Form:r,SubmitButton:a,ConfirmationForm:m,BackButton:e}})})}n(k,"ContractAmendmentFlow");export{k as a};
2
+ //# sourceMappingURL=chunk-QXTTO2MJ.js.map
@@ -1,2 +1,2 @@
1
- import{a as R,b as x,c as N,d as A}from"./chunk-XZLVP6EN.js";import{a as w,b as f}from"./chunk-BDJLITVT.js";import{a as C}from"./chunk-KESYJ5QG.js";import{b as B}from"./chunk-YUYHK6WD.js";import{a as i,b as t,e as F}from"./chunk-J63QA2JC.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as P}from"lucide-react";import{useState as U}from"react";import{Fragment as $,jsx as g,jsxs as T}from"react/jsx-runtime";function E({actions:e=[],className:n,label:a,"data-testid":l}){let[_,d]=U(!1);return T("div",{className:i("relative",n),children:[g(B,{"data-testid":l,variant:"ghost","aria-label":a,className:"h-8 w-8 p-0",onClick:()=>d(!_),children:g(P,{className:"h-4 w-4"})}),_&&T($,{children:[g("div",{className:"fixed inset-0 z-40",onClick:()=>d(!1)}),g("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((c,u)=>g("button",{"data-testid":`${l}-${c.label.toLowerCase().replace(" ","-")}`,className:i("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",c.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{c.onClick(),d(!1)},disabled:c.disabled,children:c.label},u))})]})]})}m(E,"ActionsDropdown");import{ChevronDown as O,Info as Z}from"lucide-react";import K from"react-flagpack";import{useState as z}from"react";import{jsx as j,jsxs as L}from"react/jsx-runtime";var I=m(({children:e,content:n})=>L("div",{className:"relative inline-block group",children:[e,L("div",{className:"absolute bottom-full right-0 mb-2 px-3 py-2 bg-gray-900 text-white text-xs rounded-md opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50 w-64 whitespace-normal break-words",children:[n,j("div",{className:"absolute top-full right-3 border-4 border-transparent border-t-gray-900"})]})]}),"BasicTooltip");import{Fragment as b,jsx as o,jsxs as r}from"react/jsx-runtime";var V={GB:"GB-UKM"},Y=m(({title:e,country:n,region:a,annualGrossSalary:l,onDelete:_,onExportPdf:d,onEdit:c})=>{let u=[{label:"Edit",onClick:c},{label:"Export",onClick:d},{label:"Delete",onClick:_}];return r("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[r("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(K,{code:V[n.alpha_2_code]||n.alpha_2_code})}),r("div",{className:"space-y-1",children:[o("h2",{"data-testid":"estimation-results-header-title",className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),r("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[n.name," ",a?` (${a.name})`:""]}),r("p",{"data-testid":"estimation-results-header-annual-gross-salary",className:"RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]",children:[o("span",{className:"text-[#181818]",children:"Employee annual gross salary:"})," ",l]})]})]}),o(E,{label:"Actions",className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:u})]})},"EstimationResultsHeader"),q=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.",zendeskArticleId:w.employeeOnboardingTimeline}),"getOnboardingTimelineData");function J({minimumOnboardingDays:e,data:n,className:a}){return o(R,{type:"single",collapsible:!0,className:i("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:r(x,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:r("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),e!=null&&r("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),r(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:n.steps.map(l=>r("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),r("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[n.helpText,n.zendeskArticleId&&o(f,{zendeskId:n.zendeskArticleId,children:"Learn more"})]})]})]})})}m(J,"OnboardingTimeline");function Q({className:e,countryBenefitsUrl:n,countryGuideUrl:a,country:l}){return o(R,{type:"single",collapsible:!0,className:i("RemoteFlows__EstimationResults__HiringSection w-full",e),children:r(x,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:r("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:r("div",{className:"flex flex-col gap-1",children:[a&&o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),n&&o("a",{href:n,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(Q,"HiringSection");function W({isMultipleCurrency:e,className:n}){return r("div",{className:i("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",n),children:[o("span",{"aria-hidden":!0}),e?r(b,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):r(b,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m(W,"EstimationHeaders");function S({label:e,amounts:n,className:a,children:l}){let[_,d]=z(!0);return r("div",{className:i("RemoteFlows__EstimationResults__Row",a),children:[r("div",{className:"RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center",children:[r("div",{className:"RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2",children:[o("span",{className:i("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>d(!_),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(O,{className:`h-4 w-4 text-muted-foreground transition-transform ${_?"rotate-180":""}`})})]}),Array.isArray(n)?n.map((c,u)=>o("span",{className:i("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:c},u)):r(b,{children:[o("span",{}),o("span",{className:i("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:n})]})]}),_&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(S,"EstimationRow");function X({item:e,isMultipleCurrency:n,level:a=0}){let[l,_]=z(!1),d=e.children&&e.children.length>0,c=a>0,u=e.isCollapsible||d;return r("li",{className:i("RemoteFlows__BreakdownList__Item pb-3",c&&"pb-1"),children:[r("div",{className:i(n?"RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between":"RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between"),children:[r("div",{className:i("RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2",c&&"pl-3"),children:[!c&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),u?r("button",{onClick:()=>_(!l),className:"RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1",children:[o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),o(O,{className:`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})]}):o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1"),children:e.label}),e.tooltip&&o(I,{content:r(b,{children:[o("span",{dangerouslySetInnerHTML:{__html:F(e.tooltip)}})," ",e.zendeskId&&o(f,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o(Z,{className:i("RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground",c?"h-3 w-3":"h-4 w-4")})})})]}),n?r(b,{children:[o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employee-amount",className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employer-amount",className:i("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{"data-testid":e.dataSelector,className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),d&&l&&o("div",{className:"mt-1",children:o(h,{items:e.children,isMultipleCurrency:n,level:a+1})})]})}m(X,"BreakdownListItem");function h({items:e,isMultipleCurrency:n,className:a,level:l}){return o("ul",{className:i("RemoteFlows__BreakdownList list-none",a),children:e.map((_,d)=>o(X,{item:_,isMultipleCurrency:n,level:l},d))})}m(h,"BreakdownList");var Re=m(({estimation:e,title:n,components:a,onDelete:l,onExportPdf:_,onEdit:d})=>{let c=a?.HiringSection||Q,u=a?.OnboardingTimeline||J,H=a?.Header||Y,v=a?.Footer,D=q(),p=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,k=e.employer_currency_costs.monthly_management_fee,M=e.region.code!==e.country.code,G=t(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code);return r(C,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(H,{title:n,annualGrossSalary:G,region:M?e.region:void 0,country:e.country,onDelete:l,onExportPdf:_,onEdit:d})}),r("div",{className:"RemoteFlows__Separator",children:[o(W,{isMultipleCurrency:p,className:"mb-3"}),o(S,{label:"Monthly total cost",amounts:p?[t(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),t(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.code)]:t(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),children:o(h,{items:[{label:"Gross monthly salary",regionalAmount:t(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.code),zendeskId:w.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:t(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:t(e.regional_currency_costs.monthly_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:t(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:t(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:t(e.regional_currency_costs.monthly_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:t(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...k?[{label:"Monthly fee",regionalAmount:t(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})]}),o("div",{className:"RemoteFlows__Separator",children:o(S,{label:"Annual total cost",amounts:p?[t(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),t(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.code)]:t(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),children:o(h,{items:[{label:"Gross annual salary",dataSelector:"annual-gross-salary",regionalAmount:t(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.code)},{label:"Mandatory employer costs",regionalAmount:t(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:t(e.regional_currency_costs.annual_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:t(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:t(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:t(e.regional_currency_costs.annual_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:t(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:t(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map((s,y)=>({label:s.name,regionalAmount:t(e.regional_currency_costs.extra_statutory_payments_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:t(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...k?[{label:"Annual fee",regionalAmount:t(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:D})}),o(c,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),v&&o(v,{})]})},"EstimationResults");export{Re as a};
2
- //# sourceMappingURL=chunk-GZ2JKPBY.js.map
1
+ import{a as R,b as x,c as N,d as A}from"./chunk-6VQEAU6A.js";import{a as w,b as f}from"./chunk-BQ5A22TW.js";import{a as C}from"./chunk-JJEFWMLY.js";import{b as B}from"./chunk-4YPJKEHT.js";import{a as i,b as t,e as F}from"./chunk-3PIJOIYR.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as P}from"lucide-react";import{useState as U}from"react";import{Fragment as $,jsx as g,jsxs as T}from"react/jsx-runtime";function E({actions:e=[],className:n,label:a,"data-testid":l}){let[_,d]=U(!1);return T("div",{className:i("relative",n),children:[g(B,{"data-testid":l,variant:"ghost","aria-label":a,className:"h-8 w-8 p-0",onClick:()=>d(!_),children:g(P,{className:"h-4 w-4"})}),_&&T($,{children:[g("div",{className:"fixed inset-0 z-40",onClick:()=>d(!1)}),g("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((c,u)=>g("button",{"data-testid":`${l}-${c.label.toLowerCase().replace(" ","-")}`,className:i("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",c.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{c.onClick(),d(!1)},disabled:c.disabled,children:c.label},u))})]})]})}m(E,"ActionsDropdown");import{ChevronDown as O,Info as Z}from"lucide-react";import K from"react-flagpack";import{useState as z}from"react";import{jsx as j,jsxs as L}from"react/jsx-runtime";var I=m(({children:e,content:n})=>L("div",{className:"relative inline-block group",children:[e,L("div",{className:"absolute bottom-full right-0 mb-2 px-3 py-2 bg-gray-900 text-white text-xs rounded-md opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50 w-64 whitespace-normal break-words",children:[n,j("div",{className:"absolute top-full right-3 border-4 border-transparent border-t-gray-900"})]})]}),"BasicTooltip");import{Fragment as b,jsx as o,jsxs as r}from"react/jsx-runtime";var V={GB:"GB-UKM"},Y=m(({title:e,country:n,region:a,annualGrossSalary:l,onDelete:_,onExportPdf:d,onEdit:c})=>{let u=[{label:"Edit",onClick:c},{label:"Export",onClick:d},{label:"Delete",onClick:_}];return r("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[r("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-16 w-16 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(K,{code:V[n.alpha_2_code]||n.alpha_2_code})}),r("div",{className:"space-y-1",children:[o("h2",{"data-testid":"estimation-results-header-title",className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),r("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[n.name," ",a?` (${a.name})`:""]}),r("p",{"data-testid":"estimation-results-header-annual-gross-salary",className:"RemoteFlows__EstimationResultsHeader__AnnualGrossSalary text-xs text-[#71717A]",children:[o("span",{className:"text-[#181818]",children:"Employee annual gross salary:"})," ",l]})]})]}),o(E,{label:"Actions",className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:u})]})},"EstimationResultsHeader"),q=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept Remote's Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrollment.",zendeskArticleId:w.employeeOnboardingTimeline}),"getOnboardingTimelineData");function J({minimumOnboardingDays:e,data:n,className:a}){return o(R,{type:"single",collapsible:!0,className:i("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:r(x,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:r("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),e!=null&&r("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),r(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:n.steps.map(l=>r("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),r("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[n.helpText,n.zendeskArticleId&&o(f,{zendeskId:n.zendeskArticleId,children:"Learn more"})]})]})]})})}m(J,"OnboardingTimeline");function Q({className:e,countryBenefitsUrl:n,countryGuideUrl:a,country:l}){return o(R,{type:"single",collapsible:!0,className:i("RemoteFlows__EstimationResults__HiringSection w-full",e),children:r(x,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(N,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:r("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:r("div",{className:"flex flex-col gap-1",children:[a&&o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),n&&o("a",{href:n,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(Q,"HiringSection");function W({isMultipleCurrency:e,className:n}){return r("div",{className:i("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",n),children:[o("span",{"aria-hidden":!0}),e?r(b,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):r(b,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m(W,"EstimationHeaders");function S({label:e,amounts:n,className:a,children:l}){let[_,d]=z(!0);return r("div",{className:i("RemoteFlows__EstimationResults__Row",a),children:[r("div",{className:"RemoteFlows__EstimationRow__Grid grid grid-cols-3 items-center",children:[r("div",{className:"RemoteFlows__EstimationRow__LabelContainer flex items-center gap-2",children:[o("span",{className:i("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>d(!_),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(O,{className:`h-4 w-4 text-muted-foreground transition-transform ${_?"rotate-180":""}`})})]}),Array.isArray(n)?n.map((c,u)=>o("span",{className:i("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:c},u)):r(b,{children:[o("span",{}),o("span",{className:i("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:n})]})]}),_&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(S,"EstimationRow");function X({item:e,isMultipleCurrency:n,level:a=0}){let[l,_]=z(!1),d=e.children&&e.children.length>0,c=a>0,u=e.isCollapsible||d;return r("li",{className:i("RemoteFlows__BreakdownList__Item pb-3",c&&"pb-1"),children:[r("div",{className:i(n?"RemoteFlows__BreakdownList__Grid grid grid-cols-3 items-center justify-between":"RemoteFlows__BreakdownList__Grid grid grid-cols-2 items-center justify-between"),children:[r("div",{className:i("RemoteFlows__BreakdownList__LabelContainer flex items-center gap-2",c&&"pl-3"),children:[!c&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),u?r("button",{onClick:()=>_(!l),className:"RemoteFlows__BreakdownList__CollapseButton flex items-center gap-2 hover:bg-gray-100 rounded p-1",children:[o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),o(O,{className:`RemoteFlows__BreakdownList__ChevronDown h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})]}):o("span",{className:i(c?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B] p-1"),children:e.label}),e.tooltip&&o(I,{content:r(b,{children:[o("span",{dangerouslySetInnerHTML:{__html:F(e.tooltip)}})," ",e.zendeskId&&o(f,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o(Z,{className:i("RemoteFlows__BreakdownList__InfoButton__Icon text-muted-foreground",c?"h-3 w-3":"h-4 w-4")})})})]}),n?r(b,{children:[o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employee-amount",className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{"data-testid":e.dataSelector&&e.dataSelector+"-employer-amount",className:i("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{"data-testid":e.dataSelector,className:i("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",c?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),d&&l&&o("div",{className:"mt-1",children:o(h,{items:e.children,isMultipleCurrency:n,level:a+1})})]})}m(X,"BreakdownListItem");function h({items:e,isMultipleCurrency:n,className:a,level:l}){return o("ul",{className:i("RemoteFlows__BreakdownList list-none",a),children:e.map((_,d)=>o(X,{item:_,isMultipleCurrency:n,level:l},d))})}m(h,"BreakdownList");var Re=m(({estimation:e,title:n,components:a,onDelete:l,onExportPdf:_,onEdit:d})=>{let c=a?.HiringSection||Q,u=a?.OnboardingTimeline||J,H=a?.Header||Y,v=a?.Footer,D=q(),p=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,k=e.employer_currency_costs.monthly_management_fee,M=e.region.code!==e.country.code,G=t(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code);return r(C,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(H,{title:n,annualGrossSalary:G,region:M?e.region:void 0,country:e.country,onDelete:l,onExportPdf:_,onEdit:d})}),r("div",{className:"RemoteFlows__Separator",children:[o(W,{isMultipleCurrency:p,className:"mb-3"}),o(S,{label:"Monthly total cost",amounts:p?[t(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),t(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.code)]:t(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.code),children:o(h,{items:[{label:"Gross monthly salary",regionalAmount:t(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.code),zendeskId:w.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:t(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:t(e.regional_currency_costs.monthly_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:t(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:t(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.monthly_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:t(e.regional_currency_costs.monthly_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:t(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...k?[{label:"Monthly fee",regionalAmount:t(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})]}),o("div",{className:"RemoteFlows__Separator",children:o(S,{label:"Annual total cost",amounts:p?[t(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),t(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.code)]:t(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.code),children:o(h,{items:[{label:"Gross annual salary",dataSelector:"annual-gross-salary",regionalAmount:t(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.code)},{label:"Mandatory employer costs",regionalAmount:t(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_contributions_breakdown?.map((s,y)=>({label:s.name,regionalAmount:t(e.regional_currency_costs.annual_contributions_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:t(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Benefits",regionalAmount:t(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.annual_benefits_breakdown?.map((s,y)=>({label:s.name,regionalAmount:t(e.regional_currency_costs.annual_benefits_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:t(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:t(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.code),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map((s,y)=>({label:s.name,regionalAmount:t(e.regional_currency_costs.extra_statutory_payments_breakdown?.[y]?.amount,e.regional_currency_costs.currency.code),employerAmount:t(s.amount,e.employer_currency_costs.currency.code),zendeskId:s.zendesk_article_id||void 0,tooltip:s.description||void 0}))||[]},...k?[{label:"Annual fee",regionalAmount:t(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.code),employerAmount:t(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.code),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:p})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:D})}),o(c,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),v&&o(v,{})]})},"EstimationResults");export{Re as a};
2
+ //# sourceMappingURL=chunk-RBVGOVSD.js.map
@@ -1,2 +1,2 @@
1
- import{i as c,j as i,k as n,l as _,m as F}from"./chunk-H5CNWMEM.js";import{a as d,b as S,c as p,d as u,e as g,f as b}from"./chunk-CMFZEZEK.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as v}from"react/jsx-runtime";function R({field:t,fieldState:a,fieldData:C}){let{name:r,label:o,description:m,options:N}=C;return v(c,{"data-field":r,className:`RemoteFlows__SelectField__Item__${r}`,children:[e(i,{className:"RemoteFlows__SelectField__Label",children:o}),e(n,{children:e("div",{className:"relative",children:v(d,{value:t.value||"",onValueChange:l=>{t.onChange(l)},children:[e(u,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!a.error,"aria-label":o,children:e("span",{className:"absolute",children:e(p,{placeholder:o})})}),e(g,{className:"RemoteFlows__SelectField__Content",children:e(S,{className:"RemoteFlows__SelectField__Group",children:N?.map(l=>e(b,{value:l.value,className:"RemoteFlows__SelectField__SelectItem",disabled:l.disabled,children:l.label},l.value))})})]})})}),m&&e(_,{children:m}),a.error&&e(F,{})]})}s(R,"SelectFieldDefault");export{R as a};
2
- //# sourceMappingURL=chunk-GTJMTF2R.js.map
1
+ import{i as c,j as i,k as n,l as _,m as F}from"./chunk-ZSJ6YADQ.js";import{a as d,b as S,c as p,d as u,e as g,f as b}from"./chunk-46QJ44CZ.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as v}from"react/jsx-runtime";function R({field:t,fieldState:a,fieldData:C}){let{name:r,label:o,description:m,options:N}=C;return v(c,{"data-field":r,className:`RemoteFlows__SelectField__Item__${r}`,children:[e(i,{className:"RemoteFlows__SelectField__Label",children:o}),e(n,{children:e("div",{className:"relative",children:v(d,{value:t.value||"",onValueChange:l=>{t.onChange(l)},children:[e(u,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!a.error,"aria-label":o,children:e("span",{className:"absolute",children:e(p,{placeholder:o})})}),e(g,{className:"RemoteFlows__SelectField__Content",children:e(S,{className:"RemoteFlows__SelectField__Group",children:N?.map(l=>e(b,{value:l.value,className:"RemoteFlows__SelectField__SelectItem",disabled:l.disabled,children:l.label},l.value))})})]})})}),m&&e(_,{children:m}),a.error&&e(F,{})]})}s(R,"SelectFieldDefault");export{R as a};
2
+ //# sourceMappingURL=chunk-RM7W6QA7.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-KESYJ5QG.js";import{a as m}from"./chunk-P37U34EQ.js";import{jsx as o,jsxs as n}from"react/jsx-runtime";var i=m(({cards:e})=>n("div",{className:"RemoteFlows__AcknowledgeInformation",children:[n(t,{className:"mb-6",children:[o("h2",{className:"RemoteFlows__AcknowledgeInformation__Title color-[#000] font-medium",children:e.remoteDoesNext.title}),o("p",{className:"RemoteFlows__AcknowledgeInformation__Description color-[#71717A] text-xs",children:e.remoteDoesNext.description})]}),n(t,{className:"mb-6",children:[o("h2",{className:"RemoteFlows__AcknowledgeInformation__Title color-[#000] font-medium",children:e.whatYouNeedToDo.title}),o("ul",{className:"RemoteFlows__AcknowledgeInformation__List list-disc pl-5 text-xs text-[#71717A]",children:e.whatYouNeedToDo.list.map(l=>o("li",{className:"RemoteFlows__AcknowledgeInformation__ListItem mb-2",children:l},l))})]})]}),"AcknowledgeInformation");export{i as a};
2
- //# sourceMappingURL=chunk-KFWZDRDD.js.map
1
+ import{a as t}from"./chunk-JJEFWMLY.js";import{a as m}from"./chunk-P37U34EQ.js";import{jsx as o,jsxs as n}from"react/jsx-runtime";var i=m(({cards:e})=>n("div",{className:"RemoteFlows__AcknowledgeInformation",children:[n(t,{className:"mb-6",children:[o("h2",{className:"RemoteFlows__AcknowledgeInformation__Title color-[#000] font-medium",children:e.remoteDoesNext.title}),o("p",{className:"RemoteFlows__AcknowledgeInformation__Description color-[#71717A] text-xs",children:e.remoteDoesNext.description})]}),n(t,{className:"mb-6",children:[o("h2",{className:"RemoteFlows__AcknowledgeInformation__Title color-[#000] font-medium",children:e.whatYouNeedToDo.title}),o("ul",{className:"RemoteFlows__AcknowledgeInformation__List list-disc pl-5 text-xs text-[#71717A]",children:e.whatYouNeedToDo.list.map(l=>o("li",{className:"RemoteFlows__AcknowledgeInformation__ListItem mb-2",children:l},l))})]})]}),"AcknowledgeInformation");export{i as a};
2
+ //# sourceMappingURL=chunk-RQRODRCR.js.map
@@ -1,2 +1,2 @@
1
- import{b as t}from"./chunk-BDJLITVT.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function p({helpCenter:e}){return e?n(t,{zendeskId:e.id,children:e.callToAction}):null}r(p,"HelpCenter");export{p as a};
2
- //# sourceMappingURL=chunk-SIP2BFZJ.js.map
1
+ import{b as t}from"./chunk-BQ5A22TW.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function p({helpCenter:e}){return e?n(t,{zendeskId:e.id,children:e.callToAction}):null}r(p,"HelpCenter");export{p as a};
2
+ //# sourceMappingURL=chunk-RV4IDUEI.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-U7PGN7TL.js";import{b as n}from"./chunk-Q3ALCPJN.js";import{j as i}from"./chunk-J63QA2JC.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-XJILW6K3.js.map
1
+ import{a as s}from"./chunk-AB3I4P3N.js";import{b as n}from"./chunk-Q3ALCPJN.js";import{j as i}from"./chunk-3PIJOIYR.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-SLBEVNBG.js.map
@@ -1,2 +1,2 @@
1
- import{b as x,c as y,d as k}from"./chunk-PV7FROZ7.js";import{b as h}from"./chunk-AU376LE2.js";import{b as C}from"./chunk-YUYHK6WD.js";import{a as m}from"./chunk-J63QA2JC.js";import{a as r}from"./chunk-P37U34EQ.js";import{Fragment as z,useState as G}from"react";import{Check as L,ChevronDownIcon as B,X as M}from"lucide-react";import{Command as i}from"cmdk";import{SearchIcon as H}from"lucide-react";import{jsx as d,jsxs as X}from"react/jsx-runtime";function b({className:t,...o}){return d(i,{"data-slot":"command",className:m("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...o})}r(b,"Command");function P({className:t,...o}){return d(i.List,{"data-slot":"command-list",className:m("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...o})}r(P,"CommandList");function _({...t}){return d(i.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}r(_,"CommandEmpty");function w({className:t,...o}){return d(i.Group,{"data-slot":"command-group",className:m("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...o})}r(w,"CommandGroup");function N({className:t,...o}){return d(i.Separator,{"data-slot":"command-separator",className:m("bg-border -mx-1 h-px",t),...o})}r(N,"CommandSeparator");function D({className:t,...o}){return d(i.Item,{"data-slot":"command-item",className:m("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...o})}r(D,"CommandItem");import{jsx as a,jsxs as s}from"react/jsx-runtime";function Z({options:t,selected:o,onChange:u,placeholder:S,...I}){let[g,R]=G(!1),f=r(e=>{u(o.filter(n=>n.value!==e.value))},"handleUnselect"),O=t.some(e=>e.category),E=t.reduce((e,n)=>{let p=n.category||"Uncategorized";return e[p]||(e[p]=[]),e[p].push(n),e},{});return s(x,{open:g,onOpenChange:R,...I,children:[a(y,{children:s(C,{variant:"outline",role:"combobox","aria-expanded":g,className:"w-full justify-between font-normal",type:"button",children:[a("div",{className:"flex gap-1 flex-wrap overflow-x-auto max-h-[2.5rem] items-center",children:o.length>0?o.map(e=>s(h,{variant:"secondary",className:"mr-1 mb-1",children:[e.label,a("div",{role:"button",tabIndex:0,"aria-label":`remove ${e.label}`,className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-pointer",onKeyDown:n=>{n.key==="Enter"&&f(e)},onMouseDown:n=>{n.preventDefault(),n.stopPropagation()},onClick:()=>f(e),children:a(M,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},e.label)):a("span",{className:"text-foreground",children:S})}),a(B,{className:"size-4"})]})}),a(k,{align:"start",className:"w-full p-0",children:a(b,{children:s(P,{children:[a(_,{children:"No item found."}),Object.entries(E).map(([e,n],p)=>s(z,{children:[p>0&&a(N,{}),a(w,{heading:O?e:void 0,children:n.map(l=>{let v=o.some(c=>c.value===l.value);return s(D,{onSelect:()=>{u(v?o.filter(c=>c.value!==l.value):[...o,l])},children:[a(L,{className:m("mr-2 h-4 w-4",v?"opacity-100":"opacity-0")}),l.label]},l.label)})})]},e))]})})})]})}r(Z,"MultiSelect");export{Z as a};
2
- //# sourceMappingURL=chunk-RBJ5MFDE.js.map
1
+ import{b as x,c as y,d as k}from"./chunk-CU3WQ2KN.js";import{b as h}from"./chunk-OK3CYSHV.js";import{b as C}from"./chunk-4YPJKEHT.js";import{a as m}from"./chunk-3PIJOIYR.js";import{a as r}from"./chunk-P37U34EQ.js";import{Fragment as z,useState as G}from"react";import{Check as L,ChevronDownIcon as B,X as M}from"lucide-react";import{Command as i}from"cmdk";import{SearchIcon as H}from"lucide-react";import{jsx as d,jsxs as X}from"react/jsx-runtime";function b({className:t,...o}){return d(i,{"data-slot":"command",className:m("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...o})}r(b,"Command");function P({className:t,...o}){return d(i.List,{"data-slot":"command-list",className:m("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...o})}r(P,"CommandList");function _({...t}){return d(i.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}r(_,"CommandEmpty");function w({className:t,...o}){return d(i.Group,{"data-slot":"command-group",className:m("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...o})}r(w,"CommandGroup");function N({className:t,...o}){return d(i.Separator,{"data-slot":"command-separator",className:m("bg-border -mx-1 h-px",t),...o})}r(N,"CommandSeparator");function D({className:t,...o}){return d(i.Item,{"data-slot":"command-item",className:m("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...o})}r(D,"CommandItem");import{jsx as a,jsxs as s}from"react/jsx-runtime";function Z({options:t,selected:o,onChange:u,placeholder:S,...I}){let[g,R]=G(!1),f=r(e=>{u(o.filter(n=>n.value!==e.value))},"handleUnselect"),O=t.some(e=>e.category),E=t.reduce((e,n)=>{let p=n.category||"Uncategorized";return e[p]||(e[p]=[]),e[p].push(n),e},{});return s(x,{open:g,onOpenChange:R,...I,children:[a(y,{children:s(C,{variant:"outline",role:"combobox","aria-expanded":g,className:"w-full justify-between font-normal",type:"button",children:[a("div",{className:"flex gap-1 flex-wrap overflow-x-auto max-h-[2.5rem] items-center",children:o.length>0?o.map(e=>s(h,{variant:"secondary",className:"mr-1 mb-1",children:[e.label,a("div",{role:"button",tabIndex:0,"aria-label":`remove ${e.label}`,className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-pointer",onKeyDown:n=>{n.key==="Enter"&&f(e)},onMouseDown:n=>{n.preventDefault(),n.stopPropagation()},onClick:()=>f(e),children:a(M,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},e.label)):a("span",{className:"text-foreground",children:S})}),a(B,{className:"size-4"})]})}),a(k,{align:"start",className:"w-full p-0",children:a(b,{children:s(P,{children:[a(_,{children:"No item found."}),Object.entries(E).map(([e,n],p)=>s(z,{children:[p>0&&a(N,{}),a(w,{heading:O?e:void 0,children:n.map(l=>{let v=o.some(c=>c.value===l.value);return s(D,{onSelect:()=>{u(v?o.filter(c=>c.value!==l.value):[...o,l])},children:[a(L,{className:m("mr-2 h-4 w-4",v?"opacity-100":"opacity-0")}),l.label]},l.label)})})]},e))]})})})]})}r(Z,"MultiSelect");export{Z as a};
2
+ //# sourceMappingURL=chunk-T7CGGZOK.js.map
@@ -1,2 +1,2 @@
1
- import{c as d,d as S}from"./chunk-PKXMKBP4.js";import{a as u}from"./chunk-HN5HLFTB.js";import{a as f}from"./chunk-KSHK3ZPX.js";import{b as C}from"./chunk-LNV36S6D.js";import{f as y}from"./chunk-H5CNWMEM.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
2
- //# sourceMappingURL=chunk-IVUCPXEC.js.map
1
+ import{c as d,d as S}from"./chunk-MKSMTFPZ.js";import{a as u}from"./chunk-HN5HLFTB.js";import{a as f}from"./chunk-KSHK3ZPX.js";import{b as C}from"./chunk-LNV36S6D.js";import{f as y}from"./chunk-ZSJ6YADQ.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
2
+ //# sourceMappingURL=chunk-TP7ZSHZ3.js.map
@@ -1,2 +1,2 @@
1
- import{c as x,h as _}from"./chunk-H5CNWMEM.js";import{b as C}from"./chunk-KQPDXXG3.js";import{a}from"./chunk-P37U34EQ.js";import D from"lodash.groupby";import $ from"lodash.capitalize";var S=60,F=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function M(e){if(e<60)return`${e}m`;let s=Math.floor(e/S),n=e%S;return n>0?`${s}h${n}m`:`${s}h`}a(M,"convertBreakDurationToHours");function O(e){let s=e.reduce((n,u)=>u.hours+n,0);return Number(s.toFixed(2))}a(O,"calculateTotalWorkHours");function H(e,s){let n=s.map(({day:c})=>c.toLowerCase()),u=n.indexOf(e),i=null;for(;u<n.length&&!i;){let c=n[u],k=n[u+1],r=F.indexOf(c)+1;F[r]===k||(i=c),u+=1}return i}a(H,"findLastConsecutiveDay");function N(e){return e.start_time&&e.end_time&&(typeof e.hours=="number"?e.hours:Number.parseInt(e.hours))>0}a(N,"shouldSummarizeSchedule");function T(e){return Number.parseInt(e.break_duration_minutes)>0}a(T,"shouldSummarizeBreaks");function I(e){let s=e.filter(N),n=D(s,r=>`${r.start_time}|${r.end_time}`),u=e.filter(T),i=D(u,"break_duration_minutes"),c=Object.keys(n).map(r=>{let o=n[r],y=o[0].day,[p,h]=r.split("|"),t=`from <span>${p.replace(":","h")}</span> to <span>${h.replace(":","h")}</span>`,d=H(y,o),m=(d?o.findIndex(f=>f.day===d):-1)===o.length-1;return o.length===1?`${$(y)}, ${t}`:!m||!d?o.reduce((f,b,v)=>{let g=$(b.day);return v===o.length-1?`${f}and ${g}, ${t}`:`${f}<span>${g}</span>, `},""):`<span>${$(y)}</span> to <span>${$(d)}</span>, ${t}`}),k=Object.keys(i).reverse().map((r,o)=>{let y=o===0,p=i[r],h=M(parseInt(r,10));if(Object.keys(i).length===1)return`With ${h} daily breaks`;if(p.length===1){let t=`${h} break on ${$(p[0].day)}.`;return y?`With ${t}`:t}return p.reduce((t,d,l)=>{let m=$(d.day);return l===0?`${t} ${m}`:l===p.length-1?`${t}, and ${m}.`:`${t}, ${m}`},y?`With ${h} break on`:`${h} break on`)});return{workHoursSummary:c,breakSummary:k}}a(I,"buildWorkScheduleSummary");function P(e){let{checked:s,start_time:n,end_time:u,break_duration_minutes:i}=e;if(!s)return 0;let[c,k]=n.split(":").map(Number),[r,o]=u.split(":").map(Number),y=c*60+k,t=(r*60+o-y-Number.parseInt(i||"0"))/60;return t===Math.floor(t)?t:Number(t.toFixed(2))}a(P,"calculateHours");var w={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function R(e){return w[e]}a(R,"getShortWeekday");import{jsx as W}from"react/jsx-runtime";function U({name:e,defaultValue:s,description:n,label:u,onChange:i,multiple:c,options:k,component:r,...o}){let{components:y}=C(),{control:p}=x(),h=a((t,d,l)=>{if(c&&l){let m=t.value?[...t.value]:[];d?m.includes(l)||t.onChange([...m,l]):t.onChange(m.filter(f=>f!==l))}else t.onChange(d)},"handleCheckboxChange");return W(_,{control:p,name:e,defaultValue:s,render:({field:t,fieldState:d})=>{let l=r||y?.checkbox;if(!l)throw new Error(`Checkbox component not found for field ${e}`);let m={name:e,description:n,label:u,defaultValue:s,multiple:c,options:k,...o};return W(l,{field:{...t,onChange:a((f,b)=>{h(t,f,b),i?.(f,b)},"onChange")},fieldState:d,fieldData:m})}})}a(U,"CheckBoxField");export{F as a,O as b,I as c,P as d,R as e,U as f};
2
- //# sourceMappingURL=chunk-HYVK643F.js.map
1
+ import{c as x,h as _}from"./chunk-ZSJ6YADQ.js";import{b as C}from"./chunk-KQPDXXG3.js";import{a}from"./chunk-P37U34EQ.js";import D from"lodash.groupby";import $ from"lodash.capitalize";var S=60,F=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function M(e){if(e<60)return`${e}m`;let s=Math.floor(e/S),n=e%S;return n>0?`${s}h${n}m`:`${s}h`}a(M,"convertBreakDurationToHours");function O(e){let s=e.reduce((n,u)=>u.hours+n,0);return Number(s.toFixed(2))}a(O,"calculateTotalWorkHours");function H(e,s){let n=s.map(({day:c})=>c.toLowerCase()),u=n.indexOf(e),i=null;for(;u<n.length&&!i;){let c=n[u],k=n[u+1],r=F.indexOf(c)+1;F[r]===k||(i=c),u+=1}return i}a(H,"findLastConsecutiveDay");function N(e){return e.start_time&&e.end_time&&(typeof e.hours=="number"?e.hours:Number.parseInt(e.hours))>0}a(N,"shouldSummarizeSchedule");function T(e){return Number.parseInt(e.break_duration_minutes)>0}a(T,"shouldSummarizeBreaks");function I(e){let s=e.filter(N),n=D(s,r=>`${r.start_time}|${r.end_time}`),u=e.filter(T),i=D(u,"break_duration_minutes"),c=Object.keys(n).map(r=>{let o=n[r],y=o[0].day,[p,h]=r.split("|"),t=`from <span>${p.replace(":","h")}</span> to <span>${h.replace(":","h")}</span>`,d=H(y,o),m=(d?o.findIndex(f=>f.day===d):-1)===o.length-1;return o.length===1?`${$(y)}, ${t}`:!m||!d?o.reduce((f,b,v)=>{let g=$(b.day);return v===o.length-1?`${f}and ${g}, ${t}`:`${f}<span>${g}</span>, `},""):`<span>${$(y)}</span> to <span>${$(d)}</span>, ${t}`}),k=Object.keys(i).reverse().map((r,o)=>{let y=o===0,p=i[r],h=M(parseInt(r,10));if(Object.keys(i).length===1)return`With ${h} daily breaks`;if(p.length===1){let t=`${h} break on ${$(p[0].day)}.`;return y?`With ${t}`:t}return p.reduce((t,d,l)=>{let m=$(d.day);return l===0?`${t} ${m}`:l===p.length-1?`${t}, and ${m}.`:`${t}, ${m}`},y?`With ${h} break on`:`${h} break on`)});return{workHoursSummary:c,breakSummary:k}}a(I,"buildWorkScheduleSummary");function P(e){let{checked:s,start_time:n,end_time:u,break_duration_minutes:i}=e;if(!s)return 0;let[c,k]=n.split(":").map(Number),[r,o]=u.split(":").map(Number),y=c*60+k,t=(r*60+o-y-Number.parseInt(i||"0"))/60;return t===Math.floor(t)?t:Number(t.toFixed(2))}a(P,"calculateHours");var w={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function R(e){return w[e]}a(R,"getShortWeekday");import{jsx as W}from"react/jsx-runtime";function U({name:e,defaultValue:s,description:n,label:u,onChange:i,multiple:c,options:k,component:r,...o}){let{components:y}=C(),{control:p}=x(),h=a((t,d,l)=>{if(c&&l){let m=t.value?[...t.value]:[];d?m.includes(l)||t.onChange([...m,l]):t.onChange(m.filter(f=>f!==l))}else t.onChange(d)},"handleCheckboxChange");return W(_,{control:p,name:e,defaultValue:s,render:({field:t,fieldState:d})=>{let l=r||y?.checkbox;if(!l)throw new Error(`Checkbox component not found for field ${e}`);let m={name:e,description:n,label:u,defaultValue:s,multiple:c,options:k,...o};return W(l,{field:{...t,onChange:a((f,b)=>{h(t,f,b),i?.(f,b)},"onChange")},fieldState:d,fieldData:m})}})}a(U,"CheckBoxField");export{F as a,O as b,I as c,P as d,R as e,U as f};
2
+ //# sourceMappingURL=chunk-TZCNONDA.js.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-U7PGN7TL.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{j as n}from"./chunk-J63QA2JC.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as S}from"react/jsx-runtime";function C({onSubmit:c,onSuccess:s,onError:u}){let{contractorOnboardingBag:r}=a(),l=t(async e=>{try{await c?.({countryCode:e.country});let o=await r.onSubmit(e);if(o?.data){await s?.(o?.data),r?.next();return}}catch(o){let m=n(o,r.meta?.fields?.select_country);u?.(m)}},"handleSubmit"),d=r.stepState.values?.select_country||r.initialValues.select_country;return S(i,{defaultValues:d,onSubmit:l})}t(C,"SelectCountryStep");export{C as a};
2
- //# sourceMappingURL=chunk-SUWJZ3QR.js.map
1
+ import{a as i}from"./chunk-AB3I4P3N.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{j as n}from"./chunk-3PIJOIYR.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as S}from"react/jsx-runtime";function C({onSubmit:c,onSuccess:s,onError:u}){let{contractorOnboardingBag:r}=a(),l=t(async e=>{try{await c?.({countryCode:e.country});let o=await r.onSubmit(e);if(o?.data){await s?.(o?.data),r?.next();return}}catch(o){let m=n(o,r.meta?.fields?.select_country);u?.(m)}},"handleSubmit"),d=r.stepState.values?.select_country||r.initialValues.select_country;return S(i,{defaultValues:d,onSubmit:l})}t(C,"SelectCountryStep");export{C as a};
2
+ //# sourceMappingURL=chunk-UCVXGG6B.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-WR5DSTKP.js";import{a}from"./chunk-VNN6IP6P.js";import{a as r}from"./chunk-MJQUJZCD.js";import{a as t}from"./chunk-6AXMBMQI.js";import{a as f}from"./chunk-NB3TN7O3.js";import{a as e}from"./chunk-FUPQCC4B.js";import{a as p}from"./chunk-NVX4O45S.js";import{a as m}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{useId as c}from"react";import{jsx as F}from"react/jsx-runtime";var k=i(({employmentId:l,render:T,options:d,initialValues:s})=>{let u=c(),o=t({employmentId:l,options:d,initialValues:s});return F(m.Provider,{value:{formId:u,terminationBag:o},children:T({terminationBag:o,components:{SubmitButton:r,Back:n,EmployeeComunicationStep:e,TerminationDetailsStep:a,PaidTimeOffStep:p,AdditionalDetailsStep:f}})})},"TerminationFlow");export{k as a};
2
- //# sourceMappingURL=chunk-G6BR4JI6.js.map
1
+ import{a as n}from"./chunk-WR5DSTKP.js";import{a}from"./chunk-363GGPXU.js";import{a as r}from"./chunk-MJQUJZCD.js";import{a as t}from"./chunk-N4AO3L3N.js";import{a as f}from"./chunk-QW6TETWW.js";import{a as e}from"./chunk-YV2MRBXB.js";import{a as p}from"./chunk-FKM2NCIV.js";import{a as m}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{useId as c}from"react";import{jsx as F}from"react/jsx-runtime";var k=i(({employmentId:l,render:T,options:d,initialValues:s})=>{let u=c(),o=t({employmentId:l,options:d,initialValues:s});return F(m.Provider,{value:{formId:u,terminationBag:o},children:T({terminationBag:o,components:{SubmitButton:r,Back:n,EmployeeComunicationStep:e,TerminationDetailsStep:a,PaidTimeOffStep:p,AdditionalDetailsStep:f}})})},"TerminationFlow");export{k as a};
2
+ //# sourceMappingURL=chunk-UV242U4J.js.map
@@ -1,2 +1,2 @@
1
- import{i as d,j as _,k as x,l as u,m as f}from"./chunk-H5CNWMEM.js";import{a as t}from"./chunk-J63QA2JC.js";import{a as p}from"./chunk-P37U34EQ.js";import*as b from"react";import{jsx as T}from"react/jsx-runtime";var n=b.forwardRef(({className:e,...r},a)=>T("textarea",{className:t("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a,...r}));n.displayName="Textarea";import{jsx as o,jsxs as l}from"react/jsx-runtime";function C({field:e,fieldState:r,fieldData:a}){let{name:i,label:c,description:s,maxLength:m}=a,g=e.value?.length??0;return l(d,{"data-field":i,className:`RemoteFlows__TextArea__Item__${i}`,children:[o(_,{className:"RemoteFlows__TextArea__Label",children:c}),o(x,{children:o(n,{...e,value:e.value??"",onChange:F=>{e.onChange(F)},className:t(r.error&&"border-red-500 focus-visible:ring-red-500","RemoteFlows__TextArea__Input"),placeholder:c})}),(s||m)&&l("div",{className:"flex items-center justify-between",children:[s&&o(u,{className:"RemoteFlows__TextArea__Description",children:s}),m&&l("span",{className:"text-sm ml-auto RemoteFlows__TextArea__MaxLength",children:[g,"/",m]})]}),r.error&&o(f,{className:"RemoteFlows__TextArea__Error"})]})}p(C,"TextAreaFieldDefault");export{C as a};
2
- //# sourceMappingURL=chunk-2O6Z2KGG.js.map
1
+ import{i as d,j as _,k as x,l as u,m as f}from"./chunk-ZSJ6YADQ.js";import{a as t}from"./chunk-3PIJOIYR.js";import{a as p}from"./chunk-P37U34EQ.js";import*as b from"react";import{jsx as T}from"react/jsx-runtime";var n=b.forwardRef(({className:e,...r},a)=>T("textarea",{className:t("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a,...r}));n.displayName="Textarea";import{jsx as o,jsxs as l}from"react/jsx-runtime";function C({field:e,fieldState:r,fieldData:a}){let{name:i,label:c,description:s,maxLength:m}=a,g=e.value?.length??0;return l(d,{"data-field":i,className:`RemoteFlows__TextArea__Item__${i}`,children:[o(_,{className:"RemoteFlows__TextArea__Label",children:c}),o(x,{children:o(n,{...e,value:e.value??"",onChange:F=>{e.onChange(F)},className:t(r.error&&"border-red-500 focus-visible:ring-red-500","RemoteFlows__TextArea__Input"),placeholder:c})}),(s||m)&&l("div",{className:"flex items-center justify-between",children:[s&&o(u,{className:"RemoteFlows__TextArea__Description",children:s}),m&&l("span",{className:"text-sm ml-auto RemoteFlows__TextArea__MaxLength",children:[g,"/",m]})]}),r.error&&o(f,{className:"RemoteFlows__TextArea__Error"})]})}p(C,"TextAreaFieldDefault");export{C as a};
2
+ //# sourceMappingURL=chunk-UXHMIIOB.js.map
@@ -1,2 +1,2 @@
1
- import{a as y,b as d,c as p,d as R}from"./chunk-XZLVP6EN.js";import{a as w}from"./chunk-KESYJ5QG.js";import{a as _,b as i}from"./chunk-J63QA2JC.js";import{a as m}from"./chunk-P37U34EQ.js";import{ChevronDown as A,Globe as N}from"lucide-react";import{useState as h}from"react";import{Fragment as C,jsx as e,jsxs as r}from"react/jsx-runtime";var v=m(t=>{if(t.length<2)return{currency:null,costsPerCountry:[],employeesCost:null};let o=t[0]?.employer_currency_costs.currency,c=t.reduce((l,s)=>{let a=s.country.name;return l[a]={country:s.country,monthlyTotal:(l[a]?.monthlyTotal||0)+s.employer_currency_costs.monthly_total,annualTotal:(l[a]?.annualTotal||0)+s.employer_currency_costs.annual_total},l},{}),n=Object.values(c).map(({country:l,monthlyTotal:s,annualTotal:a})=>({country:l,monthlyCost:i(s,o.code),annualCost:i(a,o.code)})),u={monthlyTotal:i(t.reduce((l,s)=>l+s.employer_currency_costs.monthly_total,0),o.code),annualTotal:i(t.reduce((l,s)=>l+s.employer_currency_costs.annual_total,0),o.code)};return{currency:o,costsPerCountry:n,employeesCost:u}},"useSummaryResults"),f=m(({currency:t,title:o})=>e("div",{className:"RemoteFlows__SummaryResults__Header flex items-center justify-between w-full",children:r("div",{className:"RemoteFlows__SummaryHeader__Container flex flex-row items-center gap-6",children:[e("div",{className:"RemoteFlows__SummaryHeader__IconContainer flex h-12 w-12 items-center justify-center rounded-lg bg-[#F4F4F5]",children:e(N,{className:"RemoteFlows__SummaryHeader__Icon h-6 w-6 text-[#000000]"})}),r("div",{className:"RemoteFlows__SummaryHeader__Content space-y-1",children:[e("h2",{className:"RemoteFlows__SummaryHeader__Title text-lg font-medium leading-none text-[#181818]",children:o}),r("p",{className:"RemoteFlows__SummaryHeader__Currency text-xs text-[#71717A]",children:["Employer billing currency: ",t.code]})]})]})}),"SummaryHeader"),g=m(({label:t,columns:o,rows:c,defaultValue:n="accordion",className:u})=>{let l=o.length===1?"grid-cols-2":"grid-cols-3";return e(y,{type:"single",collapsible:!0,defaultValue:n,className:_("RemoteFlows__SummaryResults__MultiColumnAccordion w-full",u),children:r(d,{value:n,className:"RemoteFlows__SummaryResults__AccordionItem border-none",children:[e(p,{className:"RemoteFlows__SummaryResults__AccordionTrigger hover:no-underline px-0 py-3 [&>svg]:hidden group",children:r("div",{className:_("RemoteFlows__SummaryResults__AccordionHeader grid items-center w-full",l),children:[r("div",{className:"RemoteFlows__SummaryResults__AccordionHeader__LabelContainer flex items-center gap-2",children:[t,e(A,{className:"RemoteFlows__SummaryResults__ChevronDown h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:o[0]}):o.map((s,a)=>e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:s},a))]})}),e(R,{className:"RemoteFlows__SummaryResults__AccordionContent px-0 pb-4",children:e("div",{className:"RemoteFlows__SummaryResults__AccordionRows space-y-3",children:c.map((s,a)=>r("div",{className:_("RemoteFlows__SummaryResults__AccordionRow grid items-center",l),children:[e("div",{className:"flex items-center gap-2",children:s.label}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:s.values[0]}):s.values.map((F,x)=>e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:F},x))]},a))})})]})})},"MultiColumnAccordion"),S=m(({employeesCost:t})=>e(g,{label:e("span",{className:"RemoteFlows__CostForAllEmployees__Label text-sm font-medium text-[#0F172A]",children:"Cost for all employees"}),columns:["Total cost"],rows:[{label:r(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__MonthlyLabel text-sm text-[#09090B]",children:"Monthly cost"})]}),values:[t.monthlyTotal]},{label:r(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__AnnualLabel text-sm text-[#09090B]",children:"Annual cost"})]}),values:[t.annualTotal]}],defaultValue:"cost-breakdown"}),"CostForAllEmployees"),b=m(({costsPerCountry:t})=>e(g,{label:e("span",{className:"RemoteFlows__CostsPerCountry__Label text-sm font-medium text-[#0F172A]",children:"Cost per country"}),columns:["Monthly cost","Annual cost"],rows:t.map(o=>({label:r(C,{children:[e("span",{className:"RemoteFlows__CostsPerCountry__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostsPerCountry__CountryName text-sm text-[#09090B]",children:o.country.name})]}),values:[o.monthlyCost,o.annualCost]})),defaultValue:"country-breakdown"}),"CostsPerCountry"),k=m(({estimations:t})=>{let{currency:o,costsPerCountry:c,employeesCost:n}=v(t),[u,l]=h("summary");return!o||c.length===0||Object.keys(n).length===0?null:e(w,{className:"RemoteFlows__SummaryResults__Card p-10",children:e(y,{type:"single",collapsible:!0,defaultValue:u,onValueChange:l,className:"RemoteFlows__SummaryResults__Accordion w-full",children:r(d,{value:"summary",className:"RemoteFlows__SummaryResults__AccordionItem border-border",children:[e("div",{className:_("RemoteFlows__SummaryResults__AccordionTriggerContainer",{RemoteFlows__Separator:u==="summary"}),children:e(p,{iconClassName:"size-6",className:"RemoteFlows__SummaryResults__MainAccordionTrigger hover:no-underline px-0 py-4",children:e(f,{currency:o,title:"Summary Overview"})})}),r(R,{className:"RemoteFlows__SummaryResults__MainAccordionContent px-0 pb-4 mt-6",children:[e("div",{className:"RemoteFlows__Separator",children:e(S,{employeesCost:n})}),e("div",{className:"RemoteFlows__SummaryResults__CostsPerCountryContainer mt-6",children:e(b,{costsPerCountry:c})})]})]})})})},"SummaryResults");export{k as a};
2
- //# sourceMappingURL=chunk-VH4D3E42.js.map
1
+ import{a as y,b as d,c as p,d as R}from"./chunk-6VQEAU6A.js";import{a as w}from"./chunk-JJEFWMLY.js";import{a as _,b as i}from"./chunk-3PIJOIYR.js";import{a as m}from"./chunk-P37U34EQ.js";import{ChevronDown as A,Globe as N}from"lucide-react";import{useState as h}from"react";import{Fragment as C,jsx as e,jsxs as r}from"react/jsx-runtime";var v=m(t=>{if(t.length<2)return{currency:null,costsPerCountry:[],employeesCost:null};let o=t[0]?.employer_currency_costs.currency,c=t.reduce((l,s)=>{let a=s.country.name;return l[a]={country:s.country,monthlyTotal:(l[a]?.monthlyTotal||0)+s.employer_currency_costs.monthly_total,annualTotal:(l[a]?.annualTotal||0)+s.employer_currency_costs.annual_total},l},{}),n=Object.values(c).map(({country:l,monthlyTotal:s,annualTotal:a})=>({country:l,monthlyCost:i(s,o.code),annualCost:i(a,o.code)})),u={monthlyTotal:i(t.reduce((l,s)=>l+s.employer_currency_costs.monthly_total,0),o.code),annualTotal:i(t.reduce((l,s)=>l+s.employer_currency_costs.annual_total,0),o.code)};return{currency:o,costsPerCountry:n,employeesCost:u}},"useSummaryResults"),f=m(({currency:t,title:o})=>e("div",{className:"RemoteFlows__SummaryResults__Header flex items-center justify-between w-full",children:r("div",{className:"RemoteFlows__SummaryHeader__Container flex flex-row items-center gap-6",children:[e("div",{className:"RemoteFlows__SummaryHeader__IconContainer flex h-12 w-12 items-center justify-center rounded-lg bg-[#F4F4F5]",children:e(N,{className:"RemoteFlows__SummaryHeader__Icon h-6 w-6 text-[#000000]"})}),r("div",{className:"RemoteFlows__SummaryHeader__Content space-y-1",children:[e("h2",{className:"RemoteFlows__SummaryHeader__Title text-lg font-medium leading-none text-[#181818]",children:o}),r("p",{className:"RemoteFlows__SummaryHeader__Currency text-xs text-[#71717A]",children:["Employer billing currency: ",t.code]})]})]})}),"SummaryHeader"),g=m(({label:t,columns:o,rows:c,defaultValue:n="accordion",className:u})=>{let l=o.length===1?"grid-cols-2":"grid-cols-3";return e(y,{type:"single",collapsible:!0,defaultValue:n,className:_("RemoteFlows__SummaryResults__MultiColumnAccordion w-full",u),children:r(d,{value:n,className:"RemoteFlows__SummaryResults__AccordionItem border-none",children:[e(p,{className:"RemoteFlows__SummaryResults__AccordionTrigger hover:no-underline px-0 py-3 [&>svg]:hidden group",children:r("div",{className:_("RemoteFlows__SummaryResults__AccordionHeader grid items-center w-full",l),children:[r("div",{className:"RemoteFlows__SummaryResults__AccordionHeader__LabelContainer flex items-center gap-2",children:[t,e(A,{className:"RemoteFlows__SummaryResults__ChevronDown h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:o[0]}):o.map((s,a)=>e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:s},a))]})}),e(R,{className:"RemoteFlows__SummaryResults__AccordionContent px-0 pb-4",children:e("div",{className:"RemoteFlows__SummaryResults__AccordionRows space-y-3",children:c.map((s,a)=>r("div",{className:_("RemoteFlows__SummaryResults__AccordionRow grid items-center",l),children:[e("div",{className:"flex items-center gap-2",children:s.label}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:s.values[0]}):s.values.map((F,x)=>e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:F},x))]},a))})})]})})},"MultiColumnAccordion"),S=m(({employeesCost:t})=>e(g,{label:e("span",{className:"RemoteFlows__CostForAllEmployees__Label text-sm font-medium text-[#0F172A]",children:"Cost for all employees"}),columns:["Total cost"],rows:[{label:r(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__MonthlyLabel text-sm text-[#09090B]",children:"Monthly cost"})]}),values:[t.monthlyTotal]},{label:r(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__AnnualLabel text-sm text-[#09090B]",children:"Annual cost"})]}),values:[t.annualTotal]}],defaultValue:"cost-breakdown"}),"CostForAllEmployees"),b=m(({costsPerCountry:t})=>e(g,{label:e("span",{className:"RemoteFlows__CostsPerCountry__Label text-sm font-medium text-[#0F172A]",children:"Cost per country"}),columns:["Monthly cost","Annual cost"],rows:t.map(o=>({label:r(C,{children:[e("span",{className:"RemoteFlows__CostsPerCountry__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostsPerCountry__CountryName text-sm text-[#09090B]",children:o.country.name})]}),values:[o.monthlyCost,o.annualCost]})),defaultValue:"country-breakdown"}),"CostsPerCountry"),k=m(({estimations:t})=>{let{currency:o,costsPerCountry:c,employeesCost:n}=v(t),[u,l]=h("summary");return!o||c.length===0||Object.keys(n).length===0?null:e(w,{className:"RemoteFlows__SummaryResults__Card p-10",children:e(y,{type:"single",collapsible:!0,defaultValue:u,onValueChange:l,className:"RemoteFlows__SummaryResults__Accordion w-full",children:r(d,{value:"summary",className:"RemoteFlows__SummaryResults__AccordionItem border-border",children:[e("div",{className:_("RemoteFlows__SummaryResults__AccordionTriggerContainer",{RemoteFlows__Separator:u==="summary"}),children:e(p,{iconClassName:"size-6",className:"RemoteFlows__SummaryResults__MainAccordionTrigger hover:no-underline px-0 py-4",children:e(f,{currency:o,title:"Summary Overview"})})}),r(R,{className:"RemoteFlows__SummaryResults__MainAccordionContent px-0 pb-4 mt-6",children:[e("div",{className:"RemoteFlows__Separator",children:e(S,{employeesCost:n})}),e("div",{className:"RemoteFlows__SummaryResults__CostsPerCountryContainer mt-6",children:e(b,{costsPerCountry:c})})]})]})})})},"SummaryResults");export{k as a};
2
+ //# sourceMappingURL=chunk-UXP2IITO.js.map
@@ -1,2 +1,2 @@
1
- import{b as u}from"./chunk-Q3ALCPJN.js";import{d}from"./chunk-4ECYU3L5.js";import{a as m}from"./chunk-3X36ZFNP.js";import{b as a}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as v}from"react/jsx-runtime";function R({onSubmit:c,onSuccess:p,onError:e,render:l,...o}){let{components:E}=a(),{contractorOnboardingBag:t}=u(),i=d(),{mutateAsync:f}=m(i),y=n(async()=>{try{if(await c?.(),t.employmentId){let r=await f({employment_id:t.employmentId});if(r.data){await p?.({data:r.data,employmentStatus:"invited"}),t.refetchEmployment();return}r.error&&e?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}}catch(r){e?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),s=E?.button;if(!s)throw new Error("Button component not found");return v(s,{...o,disabled:i.isPending||o.disabled,onClick:r=>{y(),o.onClick?.(r)},children:l({employmentStatus:"invited"})})}n(R,"OnboardingInvite");export{R as a};
2
- //# sourceMappingURL=chunk-JZWOMKR3.js.map
1
+ import{b as u}from"./chunk-Q3ALCPJN.js";import{d}from"./chunk-ZVHB54PM.js";import{a as m}from"./chunk-X6ZAR7ZL.js";import{b as a}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as v}from"react/jsx-runtime";function R({onSubmit:c,onSuccess:p,onError:e,render:l,...o}){let{components:E}=a(),{contractorOnboardingBag:t}=u(),i=d(),{mutateAsync:f}=m(i),y=n(async()=>{try{if(await c?.(),t.employmentId){let r=await f({employment_id:t.employmentId});if(r.data){await p?.({data:r.data,employmentStatus:"invited"}),t.refetchEmployment();return}r.error&&e?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}}catch(r){e?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),s=E?.button;if(!s)throw new Error("Button component not found");return v(s,{...o,disabled:i.isPending||o.disabled,onClick:r=>{y(),o.onClick?.(r)},children:l({employmentStatus:"invited"})})}n(R,"OnboardingInvite");export{R as a};
2
+ //# sourceMappingURL=chunk-UY2IFS7S.js.map
@@ -1,2 +1,2 @@
1
- import{b as p}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-7G4JI6ZU.js";import{g as C}from"./chunk-H5CNWMEM.js";import{h as E}from"./chunk-J63QA2JC.js";import{b as f}from"./chunk-3X36ZFNP.js";import{a as n}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as u}from"react/jsx-runtime";function T({onSubmit:S,onError:w,onSuccess:y,onErrorWithFields:c,shouldResetForm:d,resetFields:a}){let{form:e,formId:V,costCalculatorBag:o}=p(),{formState:{isSubmitSuccessful:s}}=e;R(()=>{if(s&&d){o?.resetForm(),e.reset();return}if(s&&a){let t={...e.getValues()};a.forEach(r=>{t[r]=""}),o?.resetForm(),e.reset(t)}},[s,e,d,o,a]);let b=n(async i=>{try{let t=await o?.parseFormValues(i);o?.meta?.fields&&(o.meta.fields=E(i,o.fields),o.meta.fields.employer_currency_slug=o.meta.fields.currency);let r=await o?.onSubmit(t);if(await S?.(t),r?.data&&!r.error){let l={data:{...r.data.data,employments:r.data.data.employments?.map(m=>({...m,title:t.estimation_title}))}};await y?.(l)}else throw{data:null,error:r?.error,fieldErrors:r?.fieldErrors,rawError:r?.rawError}}catch(t){let r=t,l=r.fieldErrors;if(c){let m=o?.meta?.fields,h=f(l,m);c({error:r.error,rawError:r.rawError,fieldErrors:h})}else w?.(r.error)}},"handleSubmit");return u(C,{...e,children:u("form",{id:V,onSubmit:e.handleSubmit(b),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:u(F,{fields:o?.fields??[]})})})}n(T,"CostCalculatorForm");export{T as a};
2
- //# sourceMappingURL=chunk-2RBFD5MM.js.map
1
+ import{b as p}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-7G35F5CI.js";import{g as C}from"./chunk-ZSJ6YADQ.js";import{h as E}from"./chunk-3PIJOIYR.js";import{b as f}from"./chunk-X6ZAR7ZL.js";import{a as n}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as u}from"react/jsx-runtime";function T({onSubmit:S,onError:w,onSuccess:y,onErrorWithFields:c,shouldResetForm:d,resetFields:a}){let{form:e,formId:V,costCalculatorBag:o}=p(),{formState:{isSubmitSuccessful:s}}=e;R(()=>{if(s&&d){o?.resetForm(),e.reset();return}if(s&&a){let t={...e.getValues()};a.forEach(r=>{t[r]=""}),o?.resetForm(),e.reset(t)}},[s,e,d,o,a]);let b=n(async i=>{try{let t=await o?.parseFormValues(i);o?.meta?.fields&&(o.meta.fields=E(i,o.fields),o.meta.fields.employer_currency_slug=o.meta.fields.currency);let r=await o?.onSubmit(t);if(await S?.(t),r?.data&&!r.error){let l={data:{...r.data.data,employments:r.data.data.employments?.map(m=>({...m,title:t.estimation_title}))}};await y?.(l)}else throw{data:null,error:r?.error,fieldErrors:r?.fieldErrors,rawError:r?.rawError}}catch(t){let r=t,l=r.fieldErrors;if(c){let m=o?.meta?.fields,h=f(l,m);c({error:r.error,rawError:r.rawError,fieldErrors:h})}else w?.(r.error)}},"handleSubmit");return u(C,{...e,children:u("form",{id:V,onSubmit:e.handleSubmit(b),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:u(F,{fields:o?.fields??[]})})})}n(T,"CostCalculatorForm");export{T as a};
2
+ //# sourceMappingURL=chunk-VFN7G6LL.js.map
@@ -0,0 +1,2 @@
1
+ import{a as U}from"./chunk-AP56UUME.js";import{a as T}from"./chunk-IJCTN52C.js";import{a as J,b as j,c as L,d as f}from"./chunk-O3G6HQ3B.js";import{a as y}from"./chunk-EUSCQL4H.js";import{d as Q}from"./chunk-T7O3YYOG.js";import{A as D,I as O,L as E,N as x,P as w,R,S as M,U as P,V as I,f as g,m as S,o as h,p as _,w as q}from"./chunk-ZHRMPK42.js";import{g as b}from"./chunk-3PIJOIYR.js";import{a as F}from"./chunk-X6ZAR7ZL.js";import{d as s}from"./chunk-KQPDXXG3.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as d,useQuery as p}from"@tanstack/react-query";import{useMutation as W,useQuery as A}from"@tanstack/react-query";var ne=t(()=>{let{client:e}=s();return W({mutationFn:t(n=>x({client:e,body:n,headers:{Authorization:""}}),"mutationFn")})},"useUploadFile"),G=t(e=>{let{client:n}=s();return A({queryKey:["download-file",e],queryFn:t(async()=>{let o=await q({client:n,path:{id:e}});if(o.error)throw o.error;return o.data},"queryFn"),select:t(({data:o})=>o?.file,"select"),enabled:!!e})},"useDownloadFile"),K=t((e,n,o)=>{let{client:r}=s();return A({queryKey:["employment-files",e],queryFn:t(async()=>{let i=await E({client:r,path:{employment_id:e},query:n});if(i.error)throw i.error;return i.data},"queryFn"),...o})},"useEmploymentFiles");var qe=t(({fieldValues:e,options:n})=>p({queryKey:["contract-document-signature",e.review_completed,n?.jsfModify],queryFn:t(async()=>y(T,e,{jsfModify:n?.jsfModify}),"queryFn"),enabled:n?.queryOptions?.enabled}),"useGetContractDocumentSignatureSchema"),De=t(()=>{let{client:e}=s();return d({mutationFn:t(async({employmentId:n,contractDocumentId:o,payload:r})=>w({client:e,body:r,path:{employment_id:n,contract_document_id:o}}),"mutationFn")})},"useSignContractDocument"),Oe=t(({employmentId:e,contractDocumentId:n,options:o})=>{let{client:r}=s();return p({queryKey:["contract-document",e,n],queryFn:t(async()=>h({client:r,path:{employment_id:e,id:n}}),"queryFn"),enabled:o?.queryOptions?.enabled,select:t(({data:i})=>({...i?.data,contract_document:{...i?.data?.contract_document,content:b(i?.data?.contract_document?.content)}}),"select")})},"useGetShowContractDocument"),$=t(({employmentId:e,options:n})=>{let{client:o}=s();return p({queryKey:["contractor-subscriptions",e],queryFn:t(async()=>S({client:o,path:{employment_id:e}}),"queryFn"),enabled:n?.queryOptions?.enabled,select:t(({data:r})=>r?.data,"select")})},"useGetContractorSubscriptions"),Ee=t(()=>{let{client:e}=s();return d({mutationFn:t(async({employmentId:n,payload:o})=>M({client:e,body:o,path:{employment_id:n}}),"mutationFn")})},"usePostManageContractorSubscriptions"),xe=t(()=>{let{client:e}=s();return d({mutationFn:t(async({employmentId:n,payload:o})=>O({client:e,body:o,path:{employment_id:n}}),"mutationFn")})},"useCreateContractorContractDocument"),we=t(({countryCode:e,fieldValues:n,options:o})=>{let{client:r}=s();return p({queryKey:["contractor-onboarding-details-schema",e],retry:!1,queryFn:t(async()=>g({client:r,path:{country_code:e},query:{json_schema_version:1}}),"queryFn"),enabled:o?.queryOptions?.enabled,select:t(({data:i})=>{let a=i?.data?.schema||{};return y(a,n,o)},"select")})},"useContractorOnboardingDetailsSchema"),z={[J]:"Contractor Management",[j]:"Contractor Management Plus",[L]:"Contractor of Record"},Re=t((e,n)=>{let{data:o,isLoading:r,refetch:i}=$({employmentId:e,options:{queryOptions:n?.queryOptions}}),a=y(U.data.schema,{},n);if(o){let m=a.fields.find(c=>c.name==="subscription");if(m){let c=o.map(l=>{let u=l.product,C=l.price.amount,v=l.currency.code,V=z[u.identifier]??"",N=u.identifier??"",k=u.description??"",B={features:u.features??[],price:{amount:Q(C),currencyCode:v}};return{label:V,value:N,description:k,meta:B}});m.options=c.sort((l,u)=>l.label.localeCompare(u.label))}}return{isLoading:r,form:a,contractorSubscriptions:o,refetch:i}},"useContractorSubscriptionSchemaField"),Me=t((e,n,o)=>{let{mutateAsyncOrThrow:r}=F(n),{mutateAsyncOrThrow:i}=F(e);return{mutateAsync:t(async({employmentId:a})=>{let{saudi_nationality_status:m,ir35:c,ir35_sds_file:l}=o,u={contract_document:{ir_35:c}},C={contract_document:{nationality:m}};return c?(await i({employmentId:a,payload:u}),l?r({employment_id:a,file:l,sub_type:f}):Promise.resolve()):m?i({employmentId:a,payload:C}):Promise.resolve()},"mutateAsync")}},"useUpdateUKandSaudiFields"),Pe=t((e,n)=>{let{data:o,isLoading:r}=K(e,{sub_type:f},{...n,select:t(({data:m})=>m?.files?.filter(c=>c.sub_type===f),"select")}),i=o?.[0]?.id,a=G(i);return{...a,isLoading:r||a.isLoading}},"useGetIR35File"),Ie=t((e,n)=>{let{client:o}=s();return p({queryKey:["contract-documents",e],queryFn:t(async()=>_({client:o,path:{employment_id:e}}),"queryFn"),enabled:n?.enabled,select:t(({data:r})=>r?.data?.contract_documents,"select")})},"useGetContractDocuments"),Qe=t(({options:e,fieldValues:n})=>{let{client:o}=s();return p({queryKey:["eligibility-questionnaire"],queryFn:t(async()=>{let r=await R({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:t(r=>{let i=r?.schema||{};return y(i,n,{jsfModify:e?.jsfModify})},"select"),enabled:e?.queryOptions?.enabled})},"useGetEligibilityQuestionnaire"),Te=t(()=>{let{client:e}=s();return d({mutationFn:t(async({employmentId:n,payload:o})=>D({client:e,body:{employment_slug:n,responses:o,type:"contractor_of_record"},query:{json_schema_version:1}}),"mutationFn")})},"usePostCreateEligibilityQuestionnaire"),Ue=t(()=>{let{client:e}=s();return d({mutationFn:t(async({employmentId:n})=>I({client:e,path:{employment_id:n}}),"mutationFn")})},"usePostManageContractorCorSubscription"),Je=t(()=>{let{client:e}=s();return d({mutationFn:t(async({employmentId:n})=>P({client:e,path:{employment_id:n}}),"mutationFn")})},"useDeleteContractorCorSubscription");export{ne as a,qe as b,De as c,Oe as d,$ as e,Ee as f,xe as g,we as h,Re as i,Me as j,Pe as k,Ie as l,Qe as m,Te as n,Ue as o,Je as p};
2
+ //# sourceMappingURL=chunk-VQZ6JMPG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/ContractorOnboarding/api.ts","../src/common/api/files.ts"],"sourcesContent":["import { FormResult } from '@remoteoss/remote-json-schema-form-kit';\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} 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 IR35_FILE_SUBTYPE,\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';\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 */\nexport const useContractorOnboardingDetailsSchema = ({\n countryCode,\n fieldValues,\n options,\n}: {\n countryCode: string;\n fieldValues: FieldValues;\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } };\n query?: Record<string, unknown>;\n}): UseQueryResult<JSONSchemaFormResultWithFieldsets> => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['contractor-onboarding-details-schema', countryCode],\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 },\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\nconst CONTRACT_PRODUCT_TITLES = {\n [contractorStandardProductIdentifier]: 'Contractor Management',\n [contractorPlusProductIdentifier]: 'Contractor Management Plus',\n [corProductIdentifier]: 'Contractor of Record',\n};\n\nexport const useContractorSubscriptionSchemaField = (\n employmentId: string,\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } },\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 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 if (field) {\n const options = contractorSubscriptions.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 { label, value, description, meta };\n });\n field.options = options.sort((a, b) => a.label.localeCompare(b.label));\n }\n }\n\n return {\n isLoading,\n form,\n contractorSubscriptions,\n refetch,\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 saudi_nationality_status: saudiNationalityStatus,\n ir35: ir35Status,\n ir35_sds_file: ir35SdsFile,\n } = parsedValues;\n const ir35ContractDetailsPayload = {\n contract_document: {\n ir_35: ir35Status,\n },\n };\n const saudiContractDetailsPayload = {\n contract_document: {\n nationality: saudiNationalityStatus,\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 if (saudiNationalityStatus) {\n return createContractorContractDocumentMutationAsync({\n employmentId: employmentId,\n payload: saudiContractDetailsPayload,\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 FormResult\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","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"],"mappings":"2fA8BA,OAAS,eAAAA,EAAa,YAAAC,MAAgC,wBC9BtD,OAAS,eAAAC,EAAa,YAAAC,MAAiC,wBAoBhD,IAAMC,GAAgBC,EAAA,IAAM,CACjC,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAY,CACjB,WAAYH,EAACI,GACJC,EAA2B,CAChC,OAAQJ,EACR,KAAMG,EACN,QAAS,CACP,cAAe,EACjB,CACF,CAAC,EAPS,aASd,CAAC,CACH,EAb6B,iBAoBhBE,EAAkBN,EAACO,GAAe,CAC7C,GAAM,CAAE,OAAAN,CAAO,EAAIC,EAAU,EAC7B,OAAOM,EAAS,CACd,SAAU,CAAC,gBAAiBD,CAAE,EAC9B,QAASP,EAAA,SAAY,CACnB,IAAMS,EAAS,MAAMC,EAAY,CAC/B,OAAQT,EACR,KAAM,CAAE,GAAIM,CAAG,CACjB,CAAC,EAED,GAAIE,EAAO,MACT,MAAMA,EAAO,MAGf,OAAOA,EAAO,IAChB,EAXS,WAYT,OAAQT,EAAA,CAAC,CAAE,KAAAW,CAAK,IAAMA,GAAM,KAApB,UACR,QAAS,CAAC,CAACJ,CACb,CAAC,CACH,EAnB+B,mBA4BlBK,EAAqBZ,EAAA,CAChCa,EACAC,EACAC,IASG,CACH,GAAM,CAAE,OAAAd,CAAO,EAAIC,EAAU,EAC7B,OAAOM,EAAS,CACd,SAAU,CAAC,mBAAoBK,CAAY,EAC3C,QAASb,EAAA,SAAY,CACnB,IAAMS,EAAS,MAAMO,EAAuB,CAC1C,OAAQf,EACR,KAAM,CAAE,cAAeY,CAAa,EACpC,MAAOC,CACT,CAAC,EAED,GAAIL,EAAO,MACT,MAAMA,EAAO,MAGf,OAAOA,EAAO,IAChB,EAZS,WAaT,GAAGM,CACL,CAAC,CACH,EA/BkC,sBDf3B,IAAME,GAAwCC,EAAA,CAAC,CACpD,YAAAC,EACA,QAAAC,CACF,IAISC,EAAS,CACd,SAAU,CACR,8BACAF,EAAY,iBACZC,GAAS,SACX,EACA,QAASF,EAAA,SACAI,EAAmBC,EAAiBJ,EAAa,CACtD,UAAWC,GAAS,SACtB,CAAC,EAHM,WAKT,QAASA,GAAS,cAAc,OAClC,CAAC,EAnBkD,yCA6BxCI,GAA0BN,EAAA,IAAM,CAC3C,GAAM,CAAE,OAAAO,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAY,CACjB,WAAYT,EAAA,MAAO,CACjB,aAAAU,EACA,mBAAAC,EACA,QAAAC,CACF,IAKSC,EAAyB,CAC9B,OAAQN,EACR,KAAMK,EACN,KAAM,CACJ,cAAeF,EACf,qBAAsBC,CACxB,CACF,CAAC,EAhBS,aAkBd,CAAC,CACH,EAtBuC,2BA8B1BG,GAA6Bd,EAAA,CAAC,CACzC,aAAAU,EACA,mBAAAC,EACA,QAAAT,CACF,IAIM,CACJ,GAAM,CAAE,OAAAK,CAAO,EAAIC,EAAU,EAC7B,OAAOL,EAAS,CACd,SAAU,CAAC,oBAAqBO,EAAcC,CAAkB,EAChE,QAASX,EAAA,SACAe,EAAwB,CAC7B,OAAQR,EACR,KAAM,CAAE,cAAeG,EAAc,GAAIC,CAAmB,CAC9D,CAAC,EAJM,WAMT,QAAST,GAAS,cAAc,QAChC,OAAQF,EAAA,CAAC,CAAE,KAAAgB,CAAK,KACP,CACL,GAAGA,GAAM,KACT,kBAAmB,CACjB,GAAGA,GAAM,MAAM,kBACf,QAASC,EACPD,GAAM,MAAM,mBAAmB,OACjC,CACF,CACF,GATM,SAWV,CAAC,CACH,EA/B0C,8BAsC7BE,EAAgClB,EAAA,CAAC,CAC5C,aAAAU,EACA,QAAAR,CACF,IAGM,CACJ,GAAM,CAAE,OAAAK,CAAO,EAAIC,EAAU,EAC7B,OAAOL,EAAS,CACd,SAAU,CAAC,2BAA4BO,CAAY,EACnD,QAASV,EAAA,SACAmB,EAAqB,CAC1B,OAAQZ,EACR,KAAM,CAAE,cAAeG,CAAa,CACtC,CAAC,EAJM,WAMT,QAASR,GAAS,cAAc,QAChC,OAAQF,EAAA,CAAC,CAAE,KAAAgB,CAAK,IACPA,GAAM,KADP,SAGV,CAAC,CACH,EArB6C,iCA0BhCI,GAAuCpB,EAAA,IAAM,CACxD,GAAM,CAAE,OAAAO,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAY,CACjB,WAAYT,EAAA,MAAO,CACjB,aAAAU,EACA,QAAAE,CACF,IAISS,EAAiD,CACtD,OAAQd,EACR,KAAMK,EACN,KAAM,CACJ,cAAeF,CACjB,CACF,CAAC,EAbS,aAed,CAAC,CACH,EAnBoD,wCA2BvCY,GAAsCtB,EAAA,IAAM,CACvD,GAAM,CAAE,OAAAO,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAY,CACjB,WAAYT,EAAA,MAAO,CACjB,aAAAU,EACA,QAAAE,CACF,IAISW,EAA2B,CAChC,OAAQhB,EACR,KAAMK,EACN,KAAM,CACJ,cAAeF,CACjB,CACF,CAAC,EAbS,aAed,CAAC,CACH,EAnBmD,uCA4BtCc,GAAuCxB,EAAA,CAAC,CACnD,YAAAyB,EACA,YAAAxB,EACA,QAAAC,CACF,IAKyD,CACvD,GAAM,CAAE,OAAAK,CAAO,EAAIC,EAAU,EAC7B,OAAOL,EAAS,CACd,SAAU,CAAC,uCAAwCsB,CAAW,EAC9D,MAAO,GACP,QAASzB,EAAA,SACA0B,EAAwC,CAC7C,OAAQnB,EACR,KAAM,CAAE,aAAckB,CAAY,EAClC,MAAO,CACL,oBAAqB,CACvB,CACF,CAAC,EAPM,WAST,QAASvB,GAAS,cAAc,QAChC,OAAQF,EAAA,CAAC,CAAE,KAAAgB,CAAK,IAAM,CACpB,IAAMW,EAAYX,GAAM,MAAM,QAAU,CAAC,EACzC,OAAOZ,EAAmBuB,EAAW1B,EAAaC,CAAO,CAC3D,EAHQ,SAIV,CAAC,CACH,EA7BoD,wCA+B9C0B,EAA0B,CAC9B,CAACC,CAAmC,EAAG,wBACvC,CAACC,CAA+B,EAAG,6BACnC,CAACC,CAAoB,EAAG,sBAC1B,EAEaC,GAAuChC,EAAA,CAClDU,EACAR,IACG,CACH,GAAM,CACJ,KAAM+B,EACN,UAAWC,EACX,QAAAC,CACF,EAAIjB,EAA8B,CAChC,aAAcR,EACd,QAAS,CACP,aAAcR,GAAS,YACzB,CACF,CAAC,EAEKkC,EAAOhC,EACXiC,EAAuC,KAAK,OAC5C,CAAC,EACDnC,CACF,EAEA,GAAI+B,EAAyB,CAC3B,IAAMK,EAA8BF,EAAK,OAAO,KAC7CE,GAAUA,EAAM,OAAS,cAC5B,EACA,GAAIA,EAAO,CACT,IAAMpC,EAAU+B,EAAwB,IAAKM,GAAS,CACpD,IAAMC,EAAUD,EAAK,QACfE,EAAQF,EAAK,MAAM,OACnBG,EAAeH,EAAK,SAAS,KAK7BI,EAHJf,EACEY,EAAQ,UACV,GAAK,GAEDI,EAAQJ,EAAQ,YAAc,GAC9BK,EAAcL,EAAQ,aAAe,GAErCM,EAAO,CACX,SAFeN,EAAQ,UAAY,CAAC,EAGpC,MAAO,CACL,OAAQO,EAAiBN,CAAK,EAC9B,aAAcC,CAChB,CACF,EACA,MAAO,CAAE,MAAAC,EAAO,MAAAC,EAAO,YAAAC,EAAa,KAAAC,CAAK,CAC3C,CAAC,EACDR,EAAM,QAAUpC,EAAQ,KAAK,CAAC8C,EAAGC,IAAMD,EAAE,MAAM,cAAcC,EAAE,KAAK,CAAC,CACvE,CACF,CAEA,MAAO,CACL,UAAAf,EACA,KAAAE,EACA,wBAAAH,EACA,QAAAE,CACF,CACF,EAzDoD,wCA2DvCe,GAA4BlD,EAAA,CACvCmD,EAGAC,EACAC,IACG,CACH,GAAM,CAAE,mBAAoBC,CAAwB,EAClDC,EAAkBH,CAAkB,EAChC,CAAE,mBAAoBI,CAA8C,EACxED,EAAkBJ,CAAwC,EAE5D,MAAO,CACL,YAAanD,EAAA,MAAO,CAAE,aAAAU,CAAa,IAAgC,CACjE,GAAM,CACJ,yBAA0B+C,EAC1B,KAAMC,EACN,cAAeC,CACjB,EAAIN,EACEO,EAA6B,CACjC,kBAAmB,CACjB,MAAOF,CACT,CACF,EACMG,EAA8B,CAClC,kBAAmB,CACjB,YAAaJ,CACf,CACF,EACA,OAAIC,GACF,MAAMF,EAA8C,CAClD,aAAc9C,EACd,QAASkD,CACX,CAAC,EAEGD,EACKL,EAAwB,CAC7B,cAAe5C,EACf,KAAMiD,EACN,SAAUG,CACZ,CAAC,EAEI,QAAQ,QAAQ,GAErBL,EACKD,EAA8C,CACnD,aAAc9C,EACd,QAASmD,CACX,CAAC,EAGI,QAAQ,QAAQ,CACzB,EAvCa,cAwCf,CACF,EAtDyC,6BAwD5BE,GAAiB/D,EAAA,CAC5BU,EACAR,IACG,CACH,GAAM,CAAE,KAAM8D,EAAW,UAAWC,CAAe,EAAIC,EACrDxD,EACA,CACE,SAAUoD,CACZ,EACA,CACE,GAAG5D,EACH,OAAQF,EAAA,CAAC,CAAE,KAAAgB,CAAK,IACdA,GAAM,OAAO,OAAQmD,GAASA,EAAK,WAAaL,CAAiB,EAD3D,SAEV,CACF,EACMM,EAAKJ,IAAY,CAAC,GAAG,GAErBK,EAAgBC,EAAgBF,CAAY,EAElD,MAAO,CACL,GAAGC,EACH,UAAWJ,GAAkBI,EAAc,SAC7C,CACF,EAvB8B,kBA+BjBE,GAA0BvE,EAAA,CACrCU,EACAR,IACG,CACH,GAAM,CAAE,OAAAK,CAAO,EAAIC,EAAU,EAC7B,OAAOL,EAAS,CACd,SAAU,CAAC,qBAAsBO,CAAY,EAC7C,QAASV,EAAA,SACAwE,EAAmC,CACxC,OAAQjE,EACR,KAAM,CAAE,cAAeG,CAAa,CACtC,CAAC,EAJM,WAMT,QAASR,GAAS,QAClB,OAAQF,EAAA,CAAC,CAAE,KAAAgB,CAAK,IACPA,GAAM,MAAM,mBADb,SAGV,CAAC,CACH,EAlBuC,2BAoB1ByD,GAAiCzE,EAAA,CAAC,CAC7C,QAAAE,EACA,YAAAD,CACF,IAGM,CACJ,GAAM,CAAE,OAAAM,CAAO,EAAIC,EAAU,EAC7B,OAAOL,EAIL,CACA,SAAU,CAAC,2BAA2B,EACtC,QAASH,EAAA,SAEJ,CACH,IAAM0E,EAAW,MAAMC,EAAgC,CACrD,OAAQpE,EACR,MAAO,CACL,KAAM,uBACN,oBAAqB,CACvB,CACF,CAAC,EAGD,GAAImE,EAAS,MACX,MAAM,IAAI,MAAM,2CAA2C,EAG7D,OAAOA,EAAS,KACb,IACL,EAlBS,WAmBT,OAAQ1E,EAACgB,GAA6D,CACpE,IAAM4D,EAAS5D,GAAM,QAAU,CAAC,EAChC,OAAOZ,EAAmBwE,EAAQ3E,EAAa,CAC7C,UAAWC,GAAS,SACtB,CAAC,CACH,EALQ,UAMR,QAASA,GAAS,cAAc,OAClC,CAAC,CACH,EAzC8C,kCA2CjC2E,GAAwC7E,EAAA,IAAM,CACzD,GAAM,CAAE,OAAAO,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAY,CACjB,WAAYT,EAAA,MAAO,CACjB,aAAAU,EACA,QAAAE,CACF,IAISkE,EAAmC,CACxC,OAAQvE,EACR,KAAM,CACJ,gBAAiBG,EACjB,UAAWE,EACX,KAAM,sBACR,EACA,MAAO,CACL,oBAAqB,CACvB,CACF,CAAC,EAjBS,aAmBd,CAAC,CACH,EAvBqD,yCAyBxCmE,GAAyC/E,EAAA,IAAM,CAC1D,GAAM,CAAE,OAAAO,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAY,CACjB,WAAYT,EAAA,MAAO,CAAE,aAAAU,CAAa,IACzBsE,EAAgD,CACrD,OAAQzE,EACR,KAAM,CACJ,cAAeG,CACjB,CACF,CAAC,EANS,aAQd,CAAC,CACH,EAZsD,0CAczCuE,GAAqCjF,EAAA,IAAM,CACtD,GAAM,CAAE,OAAAO,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAY,CACjB,WAAYT,EAAA,MAAO,CAAE,aAAAU,CAAa,IACzBwE,EAAkD,CACvD,OAAQ3E,EACR,KAAM,CAAE,cAAeG,CAAa,CACtC,CAAC,EAJS,aAMd,CAAC,CACH,EAVkD","names":["useMutation","useQuery","useMutation","useQuery","useUploadFile","__name","client","useClient","useMutation","params","postUploadEmployeeFileFile","useDownloadFile","id","useQuery","result","getShowFile","data","useEmploymentFiles","employmentId","queryParams","queryOptions","getIndexEmploymentFile","useGetContractDocumentSignatureSchema","__name","fieldValues","options","useQuery","createHeadlessForm","signatureSchema","useSignContractDocument","client","useClient","useMutation","employmentId","contractDocumentId","payload","postSignContractDocument","useGetShowContractDocument","getShowContractDocument","data","clearBase64Data","useGetContractorSubscriptions","getIndexSubscription","usePostManageContractorSubscriptions","postManageContractorPlusSubscriptionSubscription","useCreateContractorContractDocument","postCreateContractDocument","useContractorOnboardingDetailsSchema","countryCode","getShowContractorContractDetailsCountry","jsfSchema","CONTRACT_PRODUCT_TITLES","contractorStandardProductIdentifier","contractorPlusProductIdentifier","corProductIdentifier","useContractorSubscriptionSchemaField","contractorSubscriptions","isLoading","refetch","form","selectContractorSubscriptionStepSchema","field","opts","product","price","currencyCode","label","value","description","meta","convertFromCents","a","b","useUpdateUKandSaudiFields","createContractorContractDocumentMutation","uploadFileMutation","parsedValues","uploadFileMutationAsync","mutationToPromise","createContractorContractDocumentMutationAsync","saudiNationalityStatus","ir35Status","ir35SdsFile","ir35ContractDetailsPayload","saudiContractDetailsPayload","IR35_FILE_SUBTYPE","useGetIR35File","ir35Files","isLoadingFiles","useEmploymentFiles","file","id","downloadQuery","useDownloadFile","useGetContractDocuments","getIndexEmploymentContractDocument","useGetEligibilityQuestionnaire","response","getShowEligibilityQuestionnaire","schema","usePostCreateEligibilityQuestionnaire","postCreateEligibilityQuestionnaire","usePostManageContractorCorSubscription","postManageContractorCorSubscriptionSubscription","useDeleteContractorCorSubscription","deleteDeleteContractorCorSubscriptionSubscription"]}
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-J63QA2JC.js";import{a as s}from"./chunk-P37U34EQ.js";import*as n from"react";import{Drawer as r}from"vaul";import{jsx as a,jsxs as l}from"react/jsx-runtime";var d=s(({shouldScaleBackground:e=!0,...t})=>a(r.Root,{shouldScaleBackground:e,...t}),"Drawer");d.displayName="Drawer";var N=r.Trigger,f=r.Portal,P=r.Close,m=n.forwardRef(({className:e,...t},o)=>a(r.Overlay,{ref:o,className:i("fixed inset-0 z-50 bg-black/80",e),...t}));m.displayName=r.Overlay.displayName;var D=n.forwardRef(({className:e,children:t,showHandle:o=!0,...c},p)=>l(f,{children:[a(m,{}),l(r.Content,{ref:p,className:i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...c,children:[o&&a("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));D.displayName="DrawerContent";var w=s(({className:e,...t})=>a("div",{className:i("grid gap-1.5 p-4 text-center sm:text-left",e),...t}),"DrawerHeader");w.displayName="DrawerHeader";var R=s(({className:e,...t})=>a("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t}),"DrawerFooter");R.displayName="DrawerFooter";var u=n.forwardRef(({className:e,...t},o)=>a(r.Title,{ref:o,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));u.displayName=r.Title.displayName;var g=n.forwardRef(({className:e,...t},o)=>a(r.Description,{ref:o,className:i("text-sm text-muted-foreground",e),...t}));g.displayName=r.Description.displayName;export{d as a,N as b,D as c,w as d,u as e,g as f};
2
- //# sourceMappingURL=chunk-NIQXQZ6X.js.map
1
+ import{a as i}from"./chunk-3PIJOIYR.js";import{a as s}from"./chunk-P37U34EQ.js";import*as n from"react";import{Drawer as r}from"vaul";import{jsx as a,jsxs as l}from"react/jsx-runtime";var d=s(({shouldScaleBackground:e=!0,...t})=>a(r.Root,{shouldScaleBackground:e,...t}),"Drawer");d.displayName="Drawer";var N=r.Trigger,f=r.Portal,P=r.Close,m=n.forwardRef(({className:e,...t},o)=>a(r.Overlay,{ref:o,className:i("fixed inset-0 z-50 bg-black/80",e),...t}));m.displayName=r.Overlay.displayName;var D=n.forwardRef(({className:e,children:t,showHandle:o=!0,...c},p)=>l(f,{children:[a(m,{}),l(r.Content,{ref:p,className:i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...c,children:[o&&a("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));D.displayName="DrawerContent";var w=s(({className:e,...t})=>a("div",{className:i("grid gap-1.5 p-4 text-center sm:text-left",e),...t}),"DrawerHeader");w.displayName="DrawerHeader";var R=s(({className:e,...t})=>a("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t}),"DrawerFooter");R.displayName="DrawerFooter";var u=n.forwardRef(({className:e,...t},o)=>a(r.Title,{ref:o,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));u.displayName=r.Title.displayName;var g=n.forwardRef(({className:e,...t},o)=>a(r.Description,{ref:o,className:i("text-sm text-muted-foreground",e),...t}));g.displayName=r.Description.displayName;export{d as a,N as b,D as c,w as d,u as e,g as f};
2
+ //# sourceMappingURL=chunk-W2PJUNWX.js.map