@remoteoss/remote-flows 0.23.0 → 0.25.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 (256) hide show
  1. package/dist/{chunk-VT4GSXMI.js → chunk-22JG4IMF.js} +2 -2
  2. package/dist/{chunk-Q5ZRKZMK.js → chunk-2M7EBC4K.js} +2 -2
  3. package/dist/{chunk-HPBT677J.js → chunk-2TADRH4W.js} +2 -2
  4. package/dist/chunk-2YTBWEC7.js +2 -0
  5. package/dist/chunk-2YTBWEC7.js.map +1 -0
  6. package/dist/chunk-347YWDTK.js +2 -0
  7. package/dist/chunk-347YWDTK.js.map +1 -0
  8. package/dist/{chunk-IXAWEBRI.js → chunk-3O3Q24JL.js} +2 -2
  9. package/dist/chunk-3O3Q24JL.js.map +1 -0
  10. package/dist/{chunk-LEXD5FVL.js → chunk-46JFDBPC.js} +2 -2
  11. package/dist/{chunk-PKRI35YC.js → chunk-4IXRU67S.js} +2 -2
  12. package/dist/{chunk-FMBYJANY.js → chunk-4JVXDB5G.js} +2 -2
  13. package/dist/chunk-4O4VBGMD.js +2 -0
  14. package/dist/chunk-4O4VBGMD.js.map +1 -0
  15. package/dist/{chunk-5H5INKOY.js → chunk-7KNNJBO6.js} +2 -2
  16. package/dist/{chunk-64NSBY5G.js → chunk-AU6AILO2.js} +2 -2
  17. package/dist/{chunk-5A54AHAT.js → chunk-BDPCUDJB.js} +2 -2
  18. package/dist/{chunk-DUD7B2IY.js → chunk-BGXVK7HL.js} +2 -2
  19. package/dist/{chunk-3XDJ2LRT.js → chunk-BLZW25OE.js} +2 -2
  20. package/dist/{chunk-BNHN4CEM.js → chunk-BMDZJNJV.js} +2 -2
  21. package/dist/{chunk-N6KOPITR.js → chunk-CT2ROVBF.js} +2 -2
  22. package/dist/{chunk-O4DIUKVP.js → chunk-EJ4COVQQ.js} +2 -2
  23. package/dist/chunk-EZWZMPD2.js +2 -0
  24. package/dist/chunk-EZWZMPD2.js.map +1 -0
  25. package/dist/{chunk-ILPYR7RQ.js → chunk-HCZWP44I.js} +2 -2
  26. package/dist/{chunk-NGTESOKF.js → chunk-HFI2MD3H.js} +2 -2
  27. package/dist/{chunk-XMAQ4NRR.js → chunk-I3PGODII.js} +2 -2
  28. package/dist/{chunk-3W7RKLJX.js → chunk-I52UTPHD.js} +2 -2
  29. package/dist/{chunk-IYGJ5QJB.js → chunk-IUZ7DEXC.js} +2 -2
  30. package/dist/{chunk-GKS3W6KT.js → chunk-JHPCP2ZX.js} +2 -2
  31. package/dist/{chunk-U2LOBJFU.js → chunk-KH5SAWNH.js} +2 -2
  32. package/dist/{chunk-2T2N5226.js → chunk-L3C4AHZJ.js} +2 -2
  33. package/dist/{chunk-L2IKFFQX.js → chunk-LHSNAVGR.js} +2 -2
  34. package/dist/{chunk-FBJCDOO7.js → chunk-LRGEEPGK.js} +2 -2
  35. package/dist/{chunk-NIH7XLAK.js → chunk-M6G27EJN.js} +2 -2
  36. package/dist/{chunk-B7I7YVNK.js → chunk-MP2T74PU.js} +2 -2
  37. package/dist/{chunk-PWPFCC6I.js → chunk-NVYMAOQ7.js} +2 -2
  38. package/dist/{chunk-RDCWARSM.js → chunk-NWEXPORY.js} +2 -2
  39. package/dist/{chunk-PAT3EA43.js → chunk-O7REUCKR.js} +2 -2
  40. package/dist/{chunk-G4QOEPDP.js → chunk-OCNL6L4L.js} +2 -2
  41. package/dist/{chunk-RF5SLMJF.js → chunk-P4ZSYIA4.js} +2 -2
  42. package/dist/{chunk-TB75BHYW.js → chunk-PHBQMNG3.js} +2 -2
  43. package/dist/chunk-Q3A4A2HL.js +2 -0
  44. package/dist/chunk-QEWB24WT.js +2 -0
  45. package/dist/chunk-QEWB24WT.js.map +1 -0
  46. package/dist/{chunk-LUDRB7LC.js → chunk-QKLIYOMA.js} +2 -2
  47. package/dist/{chunk-JVSD4JOU.js → chunk-RC3XP5WU.js} +2 -2
  48. package/dist/{chunk-7IZGKQII.js → chunk-RDGF4PBB.js} +2 -2
  49. package/dist/chunk-REDYWUCC.js +2 -0
  50. package/dist/chunk-REDYWUCC.js.map +1 -0
  51. package/dist/{chunk-4NAVUB7D.js → chunk-RINDVT6U.js} +2 -2
  52. package/dist/{chunk-A7T27JCJ.js → chunk-RNJWBKLA.js} +2 -2
  53. package/dist/{chunk-2DSNHYHZ.js → chunk-S2KE2JLJ.js} +2 -2
  54. package/dist/{chunk-SA3D5OH4.js → chunk-T5LZSTW3.js} +2 -2
  55. package/dist/{chunk-4HT7RNFP.js → chunk-UTBVLDKY.js} +2 -2
  56. package/dist/{chunk-HEQLPSHZ.js → chunk-UUZ353RX.js} +2 -2
  57. package/dist/{chunk-JF3KJ6PA.js → chunk-VUP76ZMQ.js} +2 -2
  58. package/dist/{chunk-CRHH6IPF.js → chunk-VVF4IZES.js} +2 -2
  59. package/dist/{chunk-S2XKE7EA.js → chunk-W5BJQRNM.js} +2 -2
  60. package/dist/chunk-YU3JIZ7J.js +2 -0
  61. package/dist/chunk-YU3JIZ7J.js.map +1 -0
  62. package/dist/{chunk-IM525UMG.js → chunk-ZY5U2UNT.js} +2 -2
  63. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  64. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  65. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  66. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  67. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  68. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  69. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  70. package/dist/flows/ContractAmendment/hooks.js +1 -1
  71. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  72. package/dist/flows/ContractAmendment/index.js +1 -1
  73. package/dist/flows/ContractAmendment/utils.d.ts +1 -1
  74. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
  75. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  76. package/dist/flows/ContractorOnboarding/api.d.ts +2 -2
  77. package/dist/flows/ContractorOnboarding/api.js +1 -1
  78. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  79. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  80. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
  81. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  82. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
  83. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  84. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
  85. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  86. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  87. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  88. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
  89. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  90. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  91. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  92. package/dist/flows/ContractorOnboarding/context.d.ts +5 -5
  93. package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
  94. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  95. package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
  96. package/dist/flows/ContractorOnboarding/index.js +1 -1
  97. package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
  98. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  99. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  100. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  101. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  102. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +1 -1
  103. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  104. package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
  105. package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
  106. package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.js +1 -1
  107. package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
  108. package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
  109. package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
  110. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +1 -1
  111. package/dist/flows/CostCalculator/api.d.ts +1 -1
  112. package/dist/flows/CostCalculator/api.js +1 -1
  113. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  114. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  115. package/dist/flows/CostCalculator/context.d.ts +3 -3
  116. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  117. package/dist/flows/CostCalculator/hooks.js +1 -1
  118. package/dist/flows/CostCalculator/index.d.ts +3 -3
  119. package/dist/flows/CostCalculator/index.js +1 -1
  120. package/dist/flows/CostCalculator/types.d.ts +1 -1
  121. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  122. package/dist/flows/CostCalculator/utils.js +1 -1
  123. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  124. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  125. package/dist/flows/Onboarding/api.d.ts +4 -4
  126. package/dist/flows/Onboarding/api.js +1 -1
  127. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  128. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  129. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  130. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  131. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  132. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  133. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  134. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  135. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  136. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  137. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  138. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  139. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  140. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  141. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  142. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  143. package/dist/flows/Onboarding/context.d.ts +4 -4
  144. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  145. package/dist/flows/Onboarding/hooks.js +1 -1
  146. package/dist/flows/Onboarding/index.d.ts +4 -4
  147. package/dist/flows/Onboarding/index.js +1 -1
  148. package/dist/flows/Onboarding/types.d.ts +4 -4
  149. package/dist/flows/Onboarding/utils.d.ts +4 -4
  150. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -5
  151. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  152. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -5
  153. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  154. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -5
  155. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  156. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -5
  157. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  158. package/dist/flows/Termination/TerminationFlow.d.ts +4 -5
  159. package/dist/flows/Termination/TerminationFlow.js +1 -1
  160. package/dist/flows/Termination/TerminationForm.d.ts +4 -5
  161. package/dist/flows/Termination/TerminationForm.js +1 -1
  162. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +16 -5
  163. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  164. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +19 -0
  165. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +2 -0
  166. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -0
  167. package/dist/flows/Termination/components/PaidTimeOff/types.js +1 -0
  168. package/dist/flows/Termination/components/PaidTimeOff/types.js.map +1 -0
  169. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  170. package/dist/flows/Termination/context.d.ts +4 -5
  171. package/dist/flows/Termination/hooks.d.ts +4 -5
  172. package/dist/flows/Termination/hooks.js +1 -1
  173. package/dist/flows/Termination/index.d.ts +8 -5
  174. package/dist/flows/Termination/index.js +1 -1
  175. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  176. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  177. package/dist/flows/Termination/types.d.ts +4 -5
  178. package/dist/flows/api.d.ts +4 -5
  179. package/dist/flows/api.js +1 -1
  180. package/dist/index.d.ts +12 -74
  181. package/dist/index.js +1 -1
  182. package/dist/index.js.map +1 -1
  183. package/dist/internals.js +1 -1
  184. package/dist/{mutations-juOpbR-A.d.ts → mutations-DaNL3KJH.d.ts} +1 -1
  185. package/dist/{remoteFlows-D1VLPcdi.d.ts → remoteFlows-R6i-5uxZ.d.ts} +10 -2
  186. package/dist/{types-CBySMyLF.d.ts → types-BSmXaqyP.d.ts} +4 -4
  187. package/dist/{types-CCzA9vuJ.d.ts → types-CUuFeuNj.d.ts} +3 -3
  188. package/dist/types-ClV6M7ry.d.ts +179 -0
  189. package/dist/{types-Cl_jsVYv.d.ts → types-D_DohAP5.d.ts} +2 -5
  190. package/dist/{types.gen-CxiSXabT.d.ts → types.gen-BMxrLsCq.d.ts} +11 -3
  191. package/package.json +1 -1
  192. package/dist/chunk-2UAG6WDW.js +0 -2
  193. package/dist/chunk-4SIGN3ZP.js +0 -2
  194. package/dist/chunk-4SIGN3ZP.js.map +0 -1
  195. package/dist/chunk-7XRPOR7L.js +0 -2
  196. package/dist/chunk-7XRPOR7L.js.map +0 -1
  197. package/dist/chunk-AHBACWMD.js +0 -2
  198. package/dist/chunk-AHBACWMD.js.map +0 -1
  199. package/dist/chunk-CGUTMSAU.js +0 -2
  200. package/dist/chunk-CGUTMSAU.js.map +0 -1
  201. package/dist/chunk-G34OX26W.js +0 -2
  202. package/dist/chunk-G34OX26W.js.map +0 -1
  203. package/dist/chunk-HYIC33YR.js +0 -2
  204. package/dist/chunk-HYIC33YR.js.map +0 -1
  205. package/dist/chunk-IXAWEBRI.js.map +0 -1
  206. package/dist/chunk-SGJSMTYG.js +0 -2
  207. package/dist/chunk-SGJSMTYG.js.map +0 -1
  208. package/dist/flows/Termination/TimeOff.d.ts +0 -11
  209. package/dist/flows/Termination/TimeOff.js +0 -2
  210. /package/dist/{chunk-VT4GSXMI.js.map → chunk-22JG4IMF.js.map} +0 -0
  211. /package/dist/{chunk-Q5ZRKZMK.js.map → chunk-2M7EBC4K.js.map} +0 -0
  212. /package/dist/{chunk-HPBT677J.js.map → chunk-2TADRH4W.js.map} +0 -0
  213. /package/dist/{chunk-LEXD5FVL.js.map → chunk-46JFDBPC.js.map} +0 -0
  214. /package/dist/{chunk-PKRI35YC.js.map → chunk-4IXRU67S.js.map} +0 -0
  215. /package/dist/{chunk-FMBYJANY.js.map → chunk-4JVXDB5G.js.map} +0 -0
  216. /package/dist/{chunk-5H5INKOY.js.map → chunk-7KNNJBO6.js.map} +0 -0
  217. /package/dist/{chunk-64NSBY5G.js.map → chunk-AU6AILO2.js.map} +0 -0
  218. /package/dist/{chunk-5A54AHAT.js.map → chunk-BDPCUDJB.js.map} +0 -0
  219. /package/dist/{chunk-DUD7B2IY.js.map → chunk-BGXVK7HL.js.map} +0 -0
  220. /package/dist/{chunk-3XDJ2LRT.js.map → chunk-BLZW25OE.js.map} +0 -0
  221. /package/dist/{chunk-BNHN4CEM.js.map → chunk-BMDZJNJV.js.map} +0 -0
  222. /package/dist/{chunk-N6KOPITR.js.map → chunk-CT2ROVBF.js.map} +0 -0
  223. /package/dist/{chunk-O4DIUKVP.js.map → chunk-EJ4COVQQ.js.map} +0 -0
  224. /package/dist/{chunk-ILPYR7RQ.js.map → chunk-HCZWP44I.js.map} +0 -0
  225. /package/dist/{chunk-NGTESOKF.js.map → chunk-HFI2MD3H.js.map} +0 -0
  226. /package/dist/{chunk-XMAQ4NRR.js.map → chunk-I3PGODII.js.map} +0 -0
  227. /package/dist/{chunk-3W7RKLJX.js.map → chunk-I52UTPHD.js.map} +0 -0
  228. /package/dist/{chunk-IYGJ5QJB.js.map → chunk-IUZ7DEXC.js.map} +0 -0
  229. /package/dist/{chunk-GKS3W6KT.js.map → chunk-JHPCP2ZX.js.map} +0 -0
  230. /package/dist/{chunk-U2LOBJFU.js.map → chunk-KH5SAWNH.js.map} +0 -0
  231. /package/dist/{chunk-2T2N5226.js.map → chunk-L3C4AHZJ.js.map} +0 -0
  232. /package/dist/{chunk-L2IKFFQX.js.map → chunk-LHSNAVGR.js.map} +0 -0
  233. /package/dist/{chunk-FBJCDOO7.js.map → chunk-LRGEEPGK.js.map} +0 -0
  234. /package/dist/{chunk-NIH7XLAK.js.map → chunk-M6G27EJN.js.map} +0 -0
  235. /package/dist/{chunk-B7I7YVNK.js.map → chunk-MP2T74PU.js.map} +0 -0
  236. /package/dist/{chunk-PWPFCC6I.js.map → chunk-NVYMAOQ7.js.map} +0 -0
  237. /package/dist/{chunk-RDCWARSM.js.map → chunk-NWEXPORY.js.map} +0 -0
  238. /package/dist/{chunk-PAT3EA43.js.map → chunk-O7REUCKR.js.map} +0 -0
  239. /package/dist/{chunk-G4QOEPDP.js.map → chunk-OCNL6L4L.js.map} +0 -0
  240. /package/dist/{chunk-RF5SLMJF.js.map → chunk-P4ZSYIA4.js.map} +0 -0
  241. /package/dist/{chunk-TB75BHYW.js.map → chunk-PHBQMNG3.js.map} +0 -0
  242. /package/dist/{chunk-2UAG6WDW.js.map → chunk-Q3A4A2HL.js.map} +0 -0
  243. /package/dist/{chunk-LUDRB7LC.js.map → chunk-QKLIYOMA.js.map} +0 -0
  244. /package/dist/{chunk-JVSD4JOU.js.map → chunk-RC3XP5WU.js.map} +0 -0
  245. /package/dist/{chunk-7IZGKQII.js.map → chunk-RDGF4PBB.js.map} +0 -0
  246. /package/dist/{chunk-4NAVUB7D.js.map → chunk-RINDVT6U.js.map} +0 -0
  247. /package/dist/{chunk-A7T27JCJ.js.map → chunk-RNJWBKLA.js.map} +0 -0
  248. /package/dist/{chunk-2DSNHYHZ.js.map → chunk-S2KE2JLJ.js.map} +0 -0
  249. /package/dist/{chunk-SA3D5OH4.js.map → chunk-T5LZSTW3.js.map} +0 -0
  250. /package/dist/{chunk-4HT7RNFP.js.map → chunk-UTBVLDKY.js.map} +0 -0
  251. /package/dist/{chunk-HEQLPSHZ.js.map → chunk-UUZ353RX.js.map} +0 -0
  252. /package/dist/{chunk-JF3KJ6PA.js.map → chunk-VUP76ZMQ.js.map} +0 -0
  253. /package/dist/{chunk-CRHH6IPF.js.map → chunk-VVF4IZES.js.map} +0 -0
  254. /package/dist/{chunk-S2XKE7EA.js.map → chunk-W5BJQRNM.js.map} +0 -0
  255. /package/dist/{chunk-IM525UMG.js.map → chunk-ZY5U2UNT.js.map} +0 -0
  256. /package/dist/flows/Termination/{TimeOff.js.map → components/PaidTimeOff/PaidTimeOffContainer.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-ZSCKSEAA.js";import{a as m}from"./chunk-ZE3YT3Q6.js";import{a as o}from"./chunk-B7I7YVNK.js";import{b as i}from"./chunk-WVDTHFGS.js";import{b as r}from"./chunk-43WMZDDH.js";import{a as n}from"./chunk-P37U34EQ.js";import{Info as p}from"lucide-react";import{Fragment as f,jsx as t,jsxs as e}from"react/jsx-runtime";function B({extraStatutoryPaymentsTotal:d,extraStatutoryPaymentsBreakdown:u,currency:s}){return e("div",{children:[e("div",{className:"flex justify-between items-center mb-2",children:[t("h3",{className:"font-medium text-primary-foreground-800",children:"Extra Statutory Payments"}),t("span",{className:"font-semibold text-lg",children:r(d,s)})]}),t(l,{className:"mb-3"}),t("div",{className:"space-y-3 pl-2",children:u.map((a,c)=>e("div",{className:"flex justify-between items-start text-sm",children:[e("div",{className:"flex items-start gap-2",children:[t("span",{children:a.name}),a.description&&t(m,{content:e(f,{children:[t("span",{children:a.description})," ",a.zendesk_article_url&&t(o,{zendeskId:Number(a.zendesk_article_id),children:"Learn more"})]}),children:e(i,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0",children:[t(p,{className:"h-3 w-3 text-gray-400"}),t("span",{className:"sr-only",children:"Info"})]})})]}),t("span",{children:r(a.amount,s)})]},c))})]})}n(B,"CostCalculatorExtraStatutoryPaymentsBreakdown");export{B as a};
2
- //# sourceMappingURL=chunk-VT4GSXMI.js.map
1
+ import{a as l}from"./chunk-ZSCKSEAA.js";import{a as m}from"./chunk-ZE3YT3Q6.js";import{a as o}from"./chunk-MP2T74PU.js";import{b as i}from"./chunk-WVDTHFGS.js";import{b as r}from"./chunk-43WMZDDH.js";import{a as n}from"./chunk-P37U34EQ.js";import{Info as p}from"lucide-react";import{Fragment as f,jsx as t,jsxs as e}from"react/jsx-runtime";function B({extraStatutoryPaymentsTotal:d,extraStatutoryPaymentsBreakdown:u,currency:s}){return e("div",{children:[e("div",{className:"flex justify-between items-center mb-2",children:[t("h3",{className:"font-medium text-primary-foreground-800",children:"Extra Statutory Payments"}),t("span",{className:"font-semibold text-lg",children:r(d,s)})]}),t(l,{className:"mb-3"}),t("div",{className:"space-y-3 pl-2",children:u.map((a,c)=>e("div",{className:"flex justify-between items-start text-sm",children:[e("div",{className:"flex items-start gap-2",children:[t("span",{children:a.name}),a.description&&t(m,{content:e(f,{children:[t("span",{children:a.description})," ",a.zendesk_article_url&&t(o,{zendeskId:Number(a.zendesk_article_id),children:"Learn more"})]}),children:e(i,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0",children:[t(p,{className:"h-3 w-3 text-gray-400"}),t("span",{className:"sr-only",children:"Info"})]})})]}),t("span",{children:r(a.amount,s)})]},c))})]})}n(B,"CostCalculatorExtraStatutoryPaymentsBreakdown");export{B as a};
2
+ //# sourceMappingURL=chunk-22JG4IMF.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-2UAG6WDW.js";import{a as n}from"./chunk-XFD3ULUF.js";import{b as i}from"./chunk-IXAWEBRI.js";import{d as a}from"./chunk-3ZWDIEEM.js";import{a as r}from"./chunk-P37U34EQ.js";import{modify as c}from"@remoteoss/json-schema-form";import{useMutation as l,useQuery as p}from"@tanstack/react-query";import{createHeadlessForm as y}from"@remoteoss/json-schema-form";var V=r(()=>{let{client:o}=a();return l({mutationFn:r(e=>i({client:o,body:e}),"mutationFn")})},"useCreateTermination"),M=r(({formValues:o,jsfModify:e,step:m})=>p({queryKey:["rmt-flows-termination-schema",m],queryFn:r(()=>s[m]??n,"queryFn"),select:r(({data:f})=>{let t=f?.schema||{};if(e){let{schema:u}=c(t,e);t=u}return y(t||{},{initialValues:o||{}})},"select")}),"useTerminationSchema");export{V as a,M as b};
2
- //# sourceMappingURL=chunk-Q5ZRKZMK.js.map
1
+ import{a as s}from"./chunk-Q3A4A2HL.js";import{a as n}from"./chunk-XFD3ULUF.js";import{b as i}from"./chunk-3O3Q24JL.js";import{d as a}from"./chunk-3ZWDIEEM.js";import{a as r}from"./chunk-P37U34EQ.js";import{modify as c}from"@remoteoss/json-schema-form";import{useMutation as l,useQuery as p}from"@tanstack/react-query";import{createHeadlessForm as y}from"@remoteoss/json-schema-form";var V=r(()=>{let{client:o}=a();return l({mutationFn:r(e=>i({client:o,body:e}),"mutationFn")})},"useCreateTermination"),M=r(({formValues:o,jsfModify:e,step:m})=>p({queryKey:["rmt-flows-termination-schema",m],queryFn:r(()=>s[m]??n,"queryFn"),select:r(({data:f})=>{let t=f?.schema||{};if(e){let{schema:u}=c(t,e);t=u}return y(t||{},{initialValues:o||{}})},"select")}),"useTerminationSchema");export{V as a,M as b};
2
+ //# sourceMappingURL=chunk-2M7EBC4K.js.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-ZSCKSEAA.js";import{a as m}from"./chunk-ZE3YT3Q6.js";import{a as e}from"./chunk-32GSS4UM.js";import{a}from"./chunk-B7I7YVNK.js";import{b as n}from"./chunk-WVDTHFGS.js";import{b as s}from"./chunk-43WMZDDH.js";import{a as o}from"./chunk-P37U34EQ.js";import{Info as f}from"lucide-react";import{Fragment as y,jsx as r,jsxs as t}from"react/jsx-runtime";function N({grossSalary:l,currency:p,hasExtraStatutoryPayment:c=!1}){return t("div",{children:[t("div",{className:"flex justify-between items-center mb-2",children:[t("div",{className:"flex items-center gap-2",children:[r("h3",{className:"font-medium text-primary-foreground",children:"Gross Salary"}),c&&r(m,{content:t(y,{children:[r("span",{children:"This country respects extra payments on top of the gross salary."})," ",r(a,{zendeskId:e.extraPayments,children:"Learn more"})]}),children:t(n,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0 mt-2",children:[r(f,{className:"h-3 w-3 text-gray-400"}),r("span",{className:"sr-only",children:"Info"})]})})]}),r("span",{className:"font-semibold text-lg",children:s(l,p)})]}),r(i,{})]})}o(N,"CostCalculatorGrossSalary");export{N as a};
2
- //# sourceMappingURL=chunk-HPBT677J.js.map
1
+ import{a as i}from"./chunk-ZSCKSEAA.js";import{a as m}from"./chunk-ZE3YT3Q6.js";import{a as e}from"./chunk-32GSS4UM.js";import{a}from"./chunk-MP2T74PU.js";import{b as n}from"./chunk-WVDTHFGS.js";import{b as s}from"./chunk-43WMZDDH.js";import{a as o}from"./chunk-P37U34EQ.js";import{Info as f}from"lucide-react";import{Fragment as y,jsx as r,jsxs as t}from"react/jsx-runtime";function N({grossSalary:l,currency:p,hasExtraStatutoryPayment:c=!1}){return t("div",{children:[t("div",{className:"flex justify-between items-center mb-2",children:[t("div",{className:"flex items-center gap-2",children:[r("h3",{className:"font-medium text-primary-foreground",children:"Gross Salary"}),c&&r(m,{content:t(y,{children:[r("span",{children:"This country respects extra payments on top of the gross salary."})," ",r(a,{zendeskId:e.extraPayments,children:"Learn more"})]}),children:t(n,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0 mt-2",children:[r(f,{className:"h-3 w-3 text-gray-400"}),r("span",{className:"sr-only",children:"Info"})]})})]}),r("span",{className:"font-semibold text-lg",children:s(l,p)})]}),r(i,{})]})}o(N,"CostCalculatorGrossSalary");export{N as a};
2
+ //# sourceMappingURL=chunk-2TADRH4W.js.map
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-P37U34EQ.js";function l(t){let a=t.error||t;if(!a||!a.errors||typeof a.errors!="object")return[];let e=[];return Object.entries(a.errors).forEach(([s,r])=>{if(Array.isArray(r)){e.push({field:s,messages:r.map(n=>String(n))});return}r&&typeof r=="object"&&Object.entries(r).forEach(([n,i])=>{Array.isArray(i)&&e.push({field:n,messages:i.map(u=>String(u))})})}),e}o(l,"extractFieldErrors");function d(t){return{mutateAsync:o(a=>new Promise((e,s)=>{t.mutate(a,{onSuccess:o(r=>{if(r.data)e({data:r.data,error:null});else{let n=l(r.error);e({data:null,error:r.error?.message?new Error(r.error.message):new Error("Something went wrong. Please try again later."),rawError:r.error,fieldErrors:n})}},"onSuccess"),onError:o(r=>{let n=l(r);s({data:null,error:r,rawError:r,fieldErrors:n})},"onError")})}),"mutateAsync")}}o(d,"mutationToPromise");function y(t,a){return!t||t.length===0?[]:t.map(e=>{let r=a?.[e.field]?.label||e.field;return{...e,userFriendlyLabel:r,field:e.field,messages:e.messages}})}o(y,"normalizeFieldErrors");export{d as a,y as b};
2
+ //# sourceMappingURL=chunk-2YTBWEC7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lib/mutations.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Meta } from '@/src/types/remoteFlows';\nimport { UseMutationResult } from '@tanstack/react-query';\n\ntype MutationData<T> =\n T extends UseMutationResult<infer R, any, any, any> ? R : never;\ntype MutationVariables<T> =\n T extends UseMutationResult<any, any, infer V, any> ? V : never;\ntype MutationError<T> =\n T extends UseMutationResult<any, infer E, any, any> ? E : never;\n\nexport interface SuccessResponse<D> {\n data: D;\n error: null;\n}\n\nexport interface FieldError {\n field: string;\n messages: string[];\n}\n\nexport interface ErrorResponse<E> {\n data: null;\n error: E;\n rawError: Record<string, unknown>;\n fieldErrors: FieldError[];\n}\n\ntype PromiseResult<D, E> = SuccessResponse<D> | ErrorResponse<E>;\n\n/**\n * Extracts field errors from error response into a structured format\n * @param error - The error response object\n * @returns Array of field errors with field name and messages\n */\nexport function extractFieldErrors(error: any): FieldError[] {\n const errors = error.error || error;\n if (!errors || !errors.errors || typeof errors.errors !== 'object') return [];\n\n const fieldErrors: FieldError[] = [];\n\n Object.entries(errors.errors).forEach(([key, value]) => {\n if (Array.isArray(value)) {\n fieldErrors.push({\n field: key,\n messages: value.map((msg: any) => String(msg)),\n });\n return;\n }\n if (value && typeof value === 'object') {\n Object.entries(value).forEach(([nestedKey, nestedValue]) => {\n if (Array.isArray(nestedValue)) {\n fieldErrors.push({\n field: nestedKey,\n messages: nestedValue.map((msg: any) => String(msg)),\n });\n }\n });\n }\n });\n return fieldErrors;\n}\n/**\n * Converts a mutation to a promise-based API. We avoid using the\n * `mutateAsync` method from react-query for 2 reasons:\n * 1. We lose the isPending state of the mutation\n * 2. We want to return the data and error in a consistent way\n * (either data or error is null)\n * @param mutation\n * @returns\n */\nexport function mutationToPromise<\n T extends UseMutationResult<any, any, any, any>,\n>(mutation: T) {\n type Data = MutationData<T>;\n type Variables = MutationVariables<T>;\n type Error = MutationError<T>;\n\n return {\n mutateAsync: (values: Variables): Promise<PromiseResult<Data, Error>> => {\n return new Promise((resolve, reject) => {\n mutation.mutate(values, {\n onSuccess: (response) => {\n if (response.data) {\n resolve({\n data: response.data as Data,\n error: null,\n });\n } else {\n const fieldErrors = extractFieldErrors(response.error);\n resolve({\n data: null,\n error: response.error?.message\n ? (new Error(response.error.message) as unknown as Error)\n : (new Error(\n 'Something went wrong. Please try again later.',\n ) as unknown as Error),\n rawError: response.error,\n fieldErrors,\n });\n }\n },\n onError: (error) => {\n const fieldErrors = extractFieldErrors(error);\n reject({\n data: null,\n error: error as Error,\n rawError: error,\n fieldErrors,\n });\n },\n });\n });\n },\n };\n}\n\n/**\n * Enhanced FieldError interface with user-friendly labels\n */\nexport interface NormalizedFieldError extends FieldError {\n userFriendlyLabel: string;\n}\n\n/**\n * Utility function to normalize field errors using field metadata\n * @param fieldErrors - Array of field errors from API response\n * @param meta - Field metadata containing field names and labels\n * @returns Normalized field errors with user-friendly labels\n */\nexport function normalizeFieldErrors(\n fieldErrors: FieldError[],\n meta?: Meta,\n): NormalizedFieldError[] {\n if (!fieldErrors || fieldErrors.length === 0) {\n return [];\n }\n\n return fieldErrors.map((fieldError) => {\n const fieldMeta = meta?.[fieldError.field];\n const userFriendlyLabel = fieldMeta?.label || fieldError.field;\n\n return {\n ...fieldError,\n userFriendlyLabel,\n // Keep the original field name for form integration\n field: fieldError.field,\n messages: fieldError.messages,\n };\n });\n}\n"],"mappings":"wCAmCO,SAASA,EAAmBC,EAA0B,CAC3D,IAAMC,EAASD,EAAM,OAASA,EAC9B,GAAI,CAACC,GAAU,CAACA,EAAO,QAAU,OAAOA,EAAO,QAAW,SAAU,MAAO,CAAC,EAE5E,IAAMC,EAA4B,CAAC,EAEnC,cAAO,QAAQD,EAAO,MAAM,EAAE,QAAQ,CAAC,CAACE,EAAKC,CAAK,IAAM,CACtD,GAAI,MAAM,QAAQA,CAAK,EAAG,CACxBF,EAAY,KAAK,CACf,MAAOC,EACP,SAAUC,EAAM,IAAKC,GAAa,OAAOA,CAAG,CAAC,CAC/C,CAAC,EACD,MACF,CACID,GAAS,OAAOA,GAAU,UAC5B,OAAO,QAAQA,CAAK,EAAE,QAAQ,CAAC,CAACE,EAAWC,CAAW,IAAM,CACtD,MAAM,QAAQA,CAAW,GAC3BL,EAAY,KAAK,CACf,MAAOI,EACP,SAAUC,EAAY,IAAKF,GAAa,OAAOA,CAAG,CAAC,CACrD,CAAC,CAEL,CAAC,CAEL,CAAC,EACMH,CACT,CA1BgBM,EAAAT,EAAA,sBAoCT,SAASU,EAEdC,EAAa,CAKb,MAAO,CACL,YAAaF,EAACG,GACL,IAAI,QAAQ,CAACC,EAASC,IAAW,CACtCH,EAAS,OAAOC,EAAQ,CACtB,UAAWH,EAACM,GAAa,CACvB,GAAIA,EAAS,KACXF,EAAQ,CACN,KAAME,EAAS,KACf,MAAO,IACT,CAAC,MACI,CACL,IAAMZ,EAAcH,EAAmBe,EAAS,KAAK,EACrDF,EAAQ,CACN,KAAM,KACN,MAAOE,EAAS,OAAO,QAClB,IAAI,MAAMA,EAAS,MAAM,OAAO,EAChC,IAAI,MACH,+CACF,EACJ,SAAUA,EAAS,MACnB,YAAAZ,CACF,CAAC,CACH,CACF,EAnBW,aAoBX,QAASM,EAACR,GAAU,CAClB,IAAME,EAAcH,EAAmBC,CAAK,EAC5Ca,EAAO,CACL,KAAM,KACN,MAAOb,EACP,SAAUA,EACV,YAAAE,CACF,CAAC,CACH,EARS,UASX,CAAC,CACH,CAAC,EAjCU,cAmCf,CACF,CA5CgBM,EAAAC,EAAA,qBA2DT,SAASM,EACdb,EACAc,EACwB,CACxB,MAAI,CAACd,GAAeA,EAAY,SAAW,EAClC,CAAC,EAGHA,EAAY,IAAKe,GAAe,CAErC,IAAMC,EADYF,IAAOC,EAAW,KAAK,GACJ,OAASA,EAAW,MAEzD,MAAO,CACL,GAAGA,EACH,kBAAAC,EAEA,MAAOD,EAAW,MAClB,SAAUA,EAAW,QACvB,CACF,CAAC,CACH,CApBgBT,EAAAO,EAAA","names":["extractFieldErrors","error","errors","fieldErrors","key","value","msg","nestedKey","nestedValue","__name","mutationToPromise","mutation","values","resolve","reject","response","normalizeFieldErrors","meta","fieldError","userFriendlyLabel"]}
@@ -0,0 +1,2 @@
1
+ import{a as g,b as h,d as C,e as L,f as M}from"./chunk-TWIUL2P3.js";import{b as E}from"./chunk-WVDTHFGS.js";import{b as H}from"./chunk-3ZWDIEEM.js";import{a as l}from"./chunk-43WMZDDH.js";import{a as b}from"./chunk-P37U34EQ.js";import{jsx as c,jsxs as P}from"react/jsx-runtime";var S=b(({open:e,onOpenChange:t,title:a,trigger:m,children:i,className:s="",direction:u="right"})=>{let{components:f}=H(),D=f?.drawer;return D?c(D,{open:e,onOpenChange:t,title:a,trigger:m,children:i}):P(g,{open:e,onOpenChange:t,direction:u,children:[c(h,{asChild:!0,children:m}),c(C,{className:l(s,"RemoteFlows__Drawer h-full w-[540px] mt-0 ml-auto px-4"),children:P("div",{className:"h-full flex flex-col",children:[c(L,{children:c(M,{children:a})}),c("div",{className:"flex-1 overflow-y-auto",children:i})]})})]})},"Drawer");import*as d from"react";import{jsx as n}from"react/jsx-runtime";var N=d.forwardRef(({className:e,...t},a)=>n("div",{className:"relative w-full overflow-auto",children:n("table",{ref:a,className:l("w-full caption-bottom text-sm",e),...t})}));N.displayName="Table";var v=d.forwardRef(({className:e,...t},a)=>n("thead",{ref:a,className:l("[&_tr]:border-b",e),...t}));v.displayName="TableHeader";var x=d.forwardRef(({className:e,...t},a)=>n("tbody",{ref:a,className:l("[&_tr:last-child]:border-0",e),...t}));x.displayName="TableBody";var A=d.forwardRef(({className:e,...t},a)=>n("tfoot",{ref:a,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));A.displayName="TableFooter";var R=d.forwardRef(({className:e,...t},a)=>n("tr",{ref:a,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));R.displayName="TableRow";var y=d.forwardRef(({className:e,...t},a)=>n("th",{ref:a,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]",e),...t}));y.displayName="TableHead";var w=d.forwardRef(({className:e,...t},a)=>n("td",{ref:a,className:l("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));w.displayName="TableCell";var F=d.forwardRef(({className:e,...t},a)=>n("caption",{ref:a,className:l("mt-4 text-sm text-muted-foreground",e),...t}));F.displayName="TableCaption";import{jsx as o,jsxs as r}from"react/jsx-runtime";var p=b(e=>`${e} ${e===1?"day":"days"}`,"pluralizeDays"),$="RemoteFlows__SummaryRow flex justify-between items-center py-2 text-xs",Q="RemoteFlows__SummaryRowBorder border-b border-b-1 border-b-[#E4E4E7]",T=b(({children:e,withBorder:t=!1,className:a=""})=>o("div",{className:l($,t&&Q,a),children:e}),"SummaryRow"),U=b(({entitledDays:e,usedDays:t,bookedDays:a,approvedDaysBeforeTermination:m,approvedDaysAfterTermination:i,remainingDays:s,proposedTerminationDate:u})=>{let f=new Date(u).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"});return r("div",{children:[r(T,{withBorder:!0,children:[o("label",{children:"Number of days entitled to per year"}),o("p",{"data-testid":"entitled-days",className:"font-bold",children:p(e)})]}),r(T,{children:[o("label",{children:"Total days booked"}),o("p",{"data-testid":"booked-days",className:"font-bold",children:p(a)})]}),r(T,{children:[o("label",{children:"Number of days already used"}),o("p",{"data-testid":"used-days",className:"font-bold",children:p(t)})]}),r(T,{children:[r("label",{children:["Approved for use before ",f]}),o("p",{"data-testid":"approved-days-before-termination",className:"font-bold",children:p(m)})]}),r(T,{withBorder:!0,children:[r("label",{children:["Approved for use after ",f]}),o("p",{"data-testid":"approved-days-after-termination",className:"font-bold",children:p(i)})]}),r(T,{children:[o("label",{children:"Total days remaining unused"}),o("p",{"data-testid":"remaining-days",className:"font-bold",children:p(s)})]}),o(T,{className:"mb-2 py-0",children:r("p",{className:"text-xs text-[#222E39]",children:["Expiration date of unused days: ",f]})})]})},"SummaryTimeOff"),z=b(({employeeName:e,timeoffQuery:t,onOpenChange:a,open:m})=>{let{data:i}=t||{};return r(S,{open:m,onOpenChange:a,title:`${e} paid time off breakdown`,trigger:o(E,{variant:"link",className:"text-xs text-[#3B82F6] font-bold p-0",children:"See detailed time off breakdown \u2197"}),className:"h-full w-[540px] mt-0 ml-auto px-4 RemoteFlows_DrawerTimeOff",children:[o("div",{className:"mb-2",children:r(N,{children:[o(v,{children:r(R,{children:[o(y,{className:"w-[250px]",children:"Dates"}),o(y,{children:"Duration"}),o(y,{children:"Status"})]})}),o(x,{children:i?.timeoffs.map(s=>r(R,{children:[o(w,{className:"font-medium w-[250px]",children:s.formattedDate}),o(w,{children:p(s.duration)}),o(w,{children:s.status})]},`${s.startDate}-${s.endDate}`))})]})}),r("p",{className:"text-xs",children:["Total of ",p(i?.bookedDays||0)," booked"]})]})},"DrawerTimeOff"),te=b(({employeeName:e,proposedTerminationDate:t,summaryData:a,formattedProposedTerminationDate:m,timeoffQuery:i,onOpenChange:s,open:u})=>{let{entitledDays:f,bookedDays:D,usedDays:_,approvedDaysBeforeTermination:B,approvedDaysAfterTermination:k,remainingDays:O}=a?.data||{entitledDays:0,bookedDays:0,usedDays:0,approvedDaysBeforeTermination:0,approvedDaysAfterTermination:0,remainingDays:0};return r("div",{className:"RemoteFlows__PaidTimeOff__Container py-3",children:[o("h3",{className:"RemoteFlows__PaidTimeOff__Title mb-2",children:"Paid time off"}),r("p",{className:"RemoteFlows__PaidTimeOff__Description text-sm mb-2",children:["The proposed termination date for ",e," is"," ",m,". You will need to pay them for any unused accrued days. Below is a breakdown of their time off entitlement and usage for the current annual leave period:"]}),r("div",{className:"mb-2",children:[!a?.isLoading&&!a?.isError&&a?.data&&o(U,{entitledDays:f,usedDays:_,bookedDays:D,approvedDaysBeforeTermination:B,approvedDaysAfterTermination:k,remainingDays:O,proposedTerminationDate:t}),o(z,{employeeName:e,timeoffQuery:i,onOpenChange:s,open:u})]})]})},"PaidTimeOff");export{te as a};
2
+ //# sourceMappingURL=chunk-347YWDTK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/shared/drawer/Drawer.tsx","../src/components/ui/table.tsx","../src/flows/Termination/components/PaidTimeOff/PaidTimeOff.tsx"],"sourcesContent":["import { useFormFields } from '@/src/context';\nimport { DrawerComponentProps } from '@/src/types/remoteFlows';\nimport {\n Drawer as DrawerPrimitive,\n DrawerTrigger,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n} from '@/src/components/ui/drawer';\nimport { cn } from '@/src/lib/utils';\n\nexport type DrawerProps = DrawerComponentProps & {\n className?: string;\n direction?: 'left' | 'right';\n};\n\nexport const Drawer = ({\n open,\n onOpenChange,\n title,\n trigger,\n children,\n className = '',\n direction = 'right',\n}: DrawerProps) => {\n const { components } = useFormFields();\n const CustomDrawer = components?.drawer;\n\n if (CustomDrawer) {\n return (\n <CustomDrawer\n open={open}\n onOpenChange={onOpenChange}\n title={title}\n trigger={trigger}\n >\n {children}\n </CustomDrawer>\n );\n }\n\n return (\n <DrawerPrimitive\n open={open}\n onOpenChange={onOpenChange}\n direction={direction}\n >\n <DrawerTrigger asChild>{trigger}</DrawerTrigger>\n <DrawerContent\n className={cn(\n className,\n 'RemoteFlows__Drawer h-full w-[540px] mt-0 ml-auto px-4',\n )}\n >\n <div className='h-full flex flex-col'>\n <DrawerHeader>\n <DrawerTitle>{title}</DrawerTitle>\n </DrawerHeader>\n <div className='flex-1 overflow-y-auto'>{children}</div>\n </div>\n </DrawerContent>\n </DrawerPrimitive>\n );\n};\n","import * as React from 'react';\n\nimport { cn } from '@/src/lib/utils';\n\nconst Table = React.forwardRef<\n HTMLTableElement,\n React.HTMLAttributes<HTMLTableElement>\n>(({ className, ...props }, ref) => (\n <div className='relative w-full overflow-auto'>\n <table\n ref={ref}\n className={cn('w-full caption-bottom text-sm', className)}\n {...props}\n />\n </div>\n));\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />\n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn('[&_tr:last-child]:border-0', className)}\n {...props}\n />\n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n 'border-t bg-muted/50 font-medium [&>tr]:last:border-b-0',\n className,\n )}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n 'border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted',\n className,\n )}\n {...props}\n />\n));\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n 'h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n className,\n )}\n {...props}\n />\n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n className,\n )}\n {...props}\n />\n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n className={cn('mt-4 text-sm text-muted-foreground', className)}\n {...props}\n />\n));\nTableCaption.displayName = 'TableCaption';\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n};\n","import { PaidTimeoffBreakdownResponse } from '@/src/common/api';\nimport { Button } from '@/src/components/ui/button';\nimport { cn } from '@/src/lib/utils';\nimport { Drawer } from '@/src/components/shared/drawer/Drawer';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/src/components/ui/table';\nimport { UseQueryResult } from '@tanstack/react-query';\nimport { PaidTimeOffRenderProps } from '@/src/flows/Termination/components/PaidTimeOff/types';\n\nconst pluralizeDays = (count: number) =>\n `${count} ${count === 1 ? 'day' : 'days'}`;\n\nconst rowBase =\n 'RemoteFlows__SummaryRow flex justify-between items-center py-2 text-xs';\nconst rowBorder =\n 'RemoteFlows__SummaryRowBorder border-b border-b-1 border-b-[#E4E4E7]';\n\nconst SummaryRow = ({\n children,\n withBorder = false,\n className = '',\n}: {\n children: React.ReactNode;\n withBorder?: boolean;\n className?: string;\n}) => {\n return (\n <div className={cn(rowBase, withBorder && rowBorder, className)}>\n {children}\n </div>\n );\n};\n\nconst SummaryTimeOff = ({\n entitledDays,\n usedDays,\n bookedDays,\n approvedDaysBeforeTermination,\n approvedDaysAfterTermination,\n remainingDays,\n proposedTerminationDate,\n}: {\n entitledDays: number;\n usedDays: number;\n bookedDays: number;\n approvedDaysBeforeTermination: number;\n approvedDaysAfterTermination: number;\n remainingDays: number;\n proposedTerminationDate: string;\n}) => {\n const formattedProposedTerminationDate = new Date(\n proposedTerminationDate,\n ).toLocaleDateString('en-US', {\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n });\n return (\n <div>\n <SummaryRow withBorder>\n <label>Number of days entitled to per year</label>\n <p data-testid='entitled-days' className='font-bold'>\n {pluralizeDays(entitledDays)}\n </p>\n </SummaryRow>\n <SummaryRow>\n <label>Total days booked</label>\n <p data-testid='booked-days' className='font-bold'>\n {pluralizeDays(bookedDays)}\n </p>\n </SummaryRow>\n <SummaryRow>\n <label>Number of days already used</label>\n <p data-testid='used-days' className='font-bold'>\n {pluralizeDays(usedDays)}\n </p>\n </SummaryRow>\n <SummaryRow>\n <label>\n Approved for use before {formattedProposedTerminationDate}\n </label>\n <p data-testid='approved-days-before-termination' className='font-bold'>\n {pluralizeDays(approvedDaysBeforeTermination)}\n </p>\n </SummaryRow>\n <SummaryRow withBorder>\n <label>Approved for use after {formattedProposedTerminationDate}</label>\n <p data-testid='approved-days-after-termination' className='font-bold'>\n {pluralizeDays(approvedDaysAfterTermination)}\n </p>\n </SummaryRow>\n <SummaryRow>\n <label>Total days remaining unused</label>\n <p data-testid='remaining-days' className='font-bold'>\n {pluralizeDays(remainingDays)}\n </p>\n </SummaryRow>\n <SummaryRow className='mb-2 py-0'>\n <p className='text-xs text-[#222E39]'>\n Expiration date of unused days: {formattedProposedTerminationDate}\n </p>\n </SummaryRow>\n </div>\n );\n};\n\nconst DrawerTimeOff = ({\n employeeName,\n timeoffQuery,\n onOpenChange,\n open,\n}: {\n employeeName: string;\n timeoffQuery: UseQueryResult<PaidTimeoffBreakdownResponse | undefined, Error>;\n onOpenChange: () => void;\n open: boolean;\n}) => {\n const { data: timeoff } = timeoffQuery || {};\n return (\n <Drawer\n open={open}\n onOpenChange={onOpenChange}\n title={`${employeeName} paid time off breakdown`}\n trigger={\n <Button variant='link' className='text-xs text-[#3B82F6] font-bold p-0'>\n See detailed time off breakdown ↗\n </Button>\n }\n className='h-full w-[540px] mt-0 ml-auto px-4 RemoteFlows_DrawerTimeOff'\n >\n <div className='mb-2'>\n <Table>\n <TableHeader>\n <TableRow>\n <TableHead className='w-[250px]'>Dates</TableHead>\n <TableHead>Duration</TableHead>\n <TableHead>Status</TableHead>\n </TableRow>\n </TableHeader>\n <TableBody>\n {timeoff?.timeoffs.map((timeoff) => (\n <TableRow key={`${timeoff.startDate}-${timeoff.endDate}`}>\n <TableCell className='font-medium w-[250px]'>\n {timeoff.formattedDate}\n </TableCell>\n <TableCell>{pluralizeDays(timeoff.duration)}</TableCell>\n <TableCell>{timeoff.status}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </div>\n <p className='text-xs'>\n Total of {pluralizeDays(timeoff?.bookedDays || 0)} booked\n </p>\n </Drawer>\n );\n};\n\nexport type PaidTimeOffProps = PaidTimeOffRenderProps;\n\n/**\n * PaidTimeOff component\n *\n * This component is used to display the paid time off summary and details.\n * It displays the summary data and a button to open the details drawer.\n * When the details drawer is open, it displays the paid time off breakdown.\n */\nexport const PaidTimeOff = ({\n employeeName,\n proposedTerminationDate,\n summaryData,\n formattedProposedTerminationDate,\n timeoffQuery,\n onOpenChange,\n open,\n}: PaidTimeOffProps) => {\n const {\n entitledDays,\n bookedDays,\n usedDays,\n approvedDaysBeforeTermination,\n approvedDaysAfterTermination,\n remainingDays,\n } = summaryData?.data || {\n entitledDays: 0,\n bookedDays: 0,\n usedDays: 0,\n approvedDaysBeforeTermination: 0,\n approvedDaysAfterTermination: 0,\n remainingDays: 0,\n };\n return (\n <div className='RemoteFlows__PaidTimeOff__Container py-3'>\n <h3 className='RemoteFlows__PaidTimeOff__Title mb-2'>Paid time off</h3>\n <p className='RemoteFlows__PaidTimeOff__Description text-sm mb-2'>\n The proposed termination date for {employeeName} is{' '}\n {formattedProposedTerminationDate}. You will need to pay them for any\n unused accrued days. Below is a breakdown of their time off entitlement\n and usage for the current annual leave period:\n </p>\n <div className='mb-2'>\n {!summaryData?.isLoading &&\n !summaryData?.isError &&\n summaryData?.data && (\n <SummaryTimeOff\n entitledDays={entitledDays}\n usedDays={usedDays}\n bookedDays={bookedDays}\n approvedDaysBeforeTermination={approvedDaysBeforeTermination}\n approvedDaysAfterTermination={approvedDaysAfterTermination}\n remainingDays={remainingDays}\n proposedTerminationDate={proposedTerminationDate}\n />\n )}\n <DrawerTimeOff\n employeeName={employeeName}\n timeoffQuery={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C,EACA,cAAAC,CACF,EAAIkB,GAAa,MAAQ,CACvB,aAAc,EACd,WAAY,EACZ,SAAU,EACV,8BAA+B,EAC/B,6BAA8B,EAC9B,cAAe,CACjB,EACA,OACEnC,EAAC,OAAI,UAAU,2CACb,UAAAD,EAAC,MAAG,UAAU,uCAAuC,yBAAa,EAClEC,EAAC,KAAE,UAAU,qDAAqD,+CAC7BqB,EAAa,MAAI,IACnDF,EAAiC,8JAGpC,EACAnB,EAAC,OAAI,UAAU,OACZ,WAACmC,GAAa,WACb,CAACA,GAAa,SACdA,GAAa,MACXpC,EAACY,EAAA,CACC,aAAcC,EACd,SAAUC,EACV,WAAYC,EACZ,8BAA+BC,EAC/B,6BAA8BC,EAC9B,cAAeC,EACf,wBAAyBC,EAC3B,EAEJnB,EAACqB,EAAA,CACC,aAAcC,EACd,aAAcC,EACd,aAAcC,EACd,KAAMC,EACR,GACF,GACF,CAEJ,EAxD2B","names":["jsx","jsxs","Drawer","__name","open","onOpenChange","title","trigger","children","className","direction","components","useFormFields","CustomDrawer","DrawerTrigger","DrawerContent","cn","DrawerHeader","DrawerTitle","React","jsx","Table","className","props","ref","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","jsx","jsxs","pluralizeDays","__name","count","rowBase","rowBorder","SummaryRow","children","withBorder","className","cn","SummaryTimeOff","entitledDays","usedDays","bookedDays","approvedDaysBeforeTermination","approvedDaysAfterTermination","remainingDays","proposedTerminationDate","formattedProposedTerminationDate","DrawerTimeOff","employeeName","timeoffQuery","onOpenChange","open","timeoff","Drawer","Button","Table","TableHeader","TableRow","TableHead","TableBody","TableCell","PaidTimeOff","summaryData"]}
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-P37U34EQ.js";import{formDataBodySerializer as i}from"@hey-api/client-fetch";import{createClient as o,createConfig as n}from"@hey-api/client-fetch";var r=o(n({baseUrl:"https://gateway.remote.com/"}));var l=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/offboardings",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateOffboarding");var h=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/schema",...e}),"getShowContractAmendmentSchema");var m=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/raw",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postConvertRawCurrencyConverter"),d=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/contractor-contract-details",...e}),"getShowContractorContractDetailsCountry");var y=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEmployment2"),E=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/help-center-articles/{id}",...e}),"getShowHelpCenterArticle");var u=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimation");var C=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e}),"getIndexBenefitOffer"),w=t(e=>(e.client??r).put({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"putUpdateBenefitOffer");var T=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{id}",...e}),"getShowContractDocument");var O=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/magic-link",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postGenerateMagicLink");var x=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-pdf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationPdf");var f=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/risk-reserve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateRiskReserve");var b=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}",...e}),"getShowCompany");var P=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractAmendment");var R=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/{form}",...e}),"getShowFormCountry");var D=t(e=>(e?.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/countries",...e}),"getIndexCountry");var G=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/leave-policies/summary/{employment_id}",...e}),"getIndexLeavePoliciesSummary");var v=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers/schema",...e}),"getShowSchema");var g=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e}),"getShowEmployment"),I=t(e=>(e.client??r).patch({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"patchUpdateEmployment2");var S=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/regions/{slug}/fields",...e}),"getShowRegionField");var k=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/contract-eligibility",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractEligibility"),U=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/countries",...e}),"getSupportedCountry");var B=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-csv",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationCsv"),q=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractDocument");var A=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/effective",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postConvertWithSpreadCurrencyConverter");var _=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/automatable",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postAutomatableContractAmendment");var W=t(e=>(e?.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/company-currencies",...e}),"getIndexCompanyCurrency");var F=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/invite",...e}),"postInviteEmploymentInvitation");var j=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{contract_document_id}/sign",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postSignContractDocument");var L=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/timeoff",...e}),"getIndexTimeoff");export{r as a,l as b,h as c,m as d,d as e,y as f,E as g,u as h,C as i,w as j,T as k,O as l,x as m,f as n,b as o,P as p,R as q,D as r,G as s,v as t,g as u,I as v,S as w,k as x,U as y,B as z,q as A,A as B,_ as C,W as D,F as E,j as F,L as G};
2
- //# sourceMappingURL=chunk-IXAWEBRI.js.map
1
+ import{a as t}from"./chunk-P37U34EQ.js";import{formDataBodySerializer as i}from"@hey-api/client-fetch";import{createClient as o,createConfig as n}from"@hey-api/client-fetch";var r=o(n({baseUrl:"https://gateway.remote.com/"}));var l=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/offboardings",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateOffboarding");var h=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/schema",...e}),"getShowContractAmendmentSchema");var m=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/raw",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postConvertRawCurrencyConverter"),d=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/contractor-contract-details",...e}),"getShowContractorContractDetailsCountry");var y=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEmployment2"),u=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/help-center-articles/{id}",...e}),"getShowHelpCenterArticle");var E=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimation");var C=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e}),"getIndexBenefitOffer"),w=t(e=>(e.client??r).put({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"putUpdateBenefitOffer");var T=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{id}",...e}),"getShowContractDocument");var O=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/magic-link",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postGenerateMagicLink");var x=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-pdf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationPdf");var b=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/risk-reserve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateRiskReserve");var f=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}",...e}),"getShowCompany");var P=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractAmendment");var R=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/{form}",...e}),"getShowFormCountry");var D=t(e=>(e?.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/countries",...e}),"getIndexCountry");var G=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/leave-policies/summary/{employment_id}",...e}),"getIndexLeavePoliciesSummary");var v=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers/schema",...e}),"getShowSchema");var g=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e}),"getShowEmployment"),I=t(e=>(e.client??r).patch({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"patchUpdateEmployment2");var S=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/regions/{slug}/fields",...e}),"getShowRegionField");var k=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/contract-eligibility",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractEligibility"),U=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/countries",...e}),"getSupportedCountry");var B=t(e=>(e?.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-csv",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationCsv"),q=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateContractDocument");var A=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/effective",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postConvertWithSpreadCurrencyConverter");var _=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/automatable",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postAutomatableContractAmendment");var W=t(e=>(e?.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/company-currencies",...e}),"getIndexCompanyCurrency");var F=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/invite",...e}),"postInviteEmploymentInvitation");var j=t(e=>(e.client??r).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{contract_document_id}/sign",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postSignContractDocument");var L=t(e=>(e.client??r).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/timeoff",...e}),"getIndexTimeoff");export{r as a,l as b,h as c,m as d,d as e,y as f,u as g,E as h,C as i,w as j,T as k,O as l,x as m,b as n,f as o,P as p,R as q,D as r,G as s,v as t,g as u,I as v,S as w,k as x,U as y,B as z,q as A,A as B,_ as C,W as D,F as E,j as F,L as G};
2
+ //# sourceMappingURL=chunk-3O3Q24JL.js.map