@remoteoss/remote-flows 1.28.0 → 1.29.1

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 (463) hide show
  1. package/dist/ButtonDefault-CKQ2BJUS.js +2 -0
  2. package/dist/CheckboxFieldDefault-YC2QUCVS.js +2 -0
  3. package/dist/CountryFieldDefault-TAWSHFUQ.js +2 -0
  4. package/dist/DatePickerFieldDefault-3D4FIGSC.js +2 -0
  5. package/dist/DrawerDefault-BI3CU3ER.js +2 -0
  6. package/dist/EmailFieldDefault-YZPHACSN.js +2 -0
  7. package/dist/FieldsetToggleButtonDefault-4U7BDT4X.js +2 -0
  8. package/dist/FileUploadFieldDefault-FVM7Y52C.js +2 -0
  9. package/dist/MultiSelectFieldDefault-7KTMSXIH.js +2 -0
  10. package/dist/NumberFieldDefault-K4MVLMGJ.js +2 -0
  11. package/dist/RadioGroupFieldDefault-EVV22HUJ.js +2 -0
  12. package/dist/SelectFieldDefault-VOA7ZIBY.js +2 -0
  13. package/dist/StatementDefault-6EBISV3S.js +2 -0
  14. package/dist/TableFieldDefault-RJLGSGJF.js +2 -0
  15. package/dist/TelFieldDefault-ET62XFKU.js +2 -0
  16. package/dist/TextAreaFieldDefault-2Z6IQVTT.js +2 -0
  17. package/dist/TextFieldDefault-Y7QUVUHA.js +2 -0
  18. package/dist/WorkScheduleFieldDefault-BIIPBJRM.js +2 -0
  19. package/dist/ZendeskDrawerDefault-EDBRPDGO.js +2 -0
  20. package/dist/{chunk-RDOWNO6N.js → chunk-2G5REJXM.js} +2 -2
  21. package/dist/{chunk-BAE2OWEH.js → chunk-2I7VHYTP.js} +2 -2
  22. package/dist/{chunk-WDV3ECGC.js → chunk-2K6FAKY5.js} +2 -2
  23. package/dist/{chunk-DYNVJFJH.js → chunk-2KQAMX75.js} +2 -2
  24. package/dist/{chunk-6ICMMDER.js → chunk-2LDLBV46.js} +2 -2
  25. package/dist/{chunk-W2ZXKNL4.js → chunk-2OAQQ6X6.js} +2 -2
  26. package/dist/{chunk-UCYB5QK7.js → chunk-2PUK3H75.js} +2 -2
  27. package/dist/{chunk-BTP3NN3N.js → chunk-2SQAL5GV.js} +2 -2
  28. package/dist/{chunk-UBNSYRKM.js → chunk-2VMGSRVH.js} +2 -2
  29. package/dist/chunk-345J2KY6.js +2 -0
  30. package/dist/chunk-345J2KY6.js.map +1 -0
  31. package/dist/{chunk-2AFRBV4P.js → chunk-3AN3QVZK.js} +2 -2
  32. package/dist/{chunk-KVQGNPKF.js → chunk-3EF2TOAW.js} +2 -2
  33. package/dist/{chunk-UAPT6OBQ.js → chunk-3H7ADMNB.js} +2 -2
  34. package/dist/{chunk-6Y4QJ7WK.js → chunk-3TVAUVYZ.js} +2 -2
  35. package/dist/{chunk-2P4RPBIO.js → chunk-427NW7HI.js} +2 -2
  36. package/dist/{chunk-CLAVZQBC.js → chunk-4BXUBSZS.js} +2 -2
  37. package/dist/{chunk-EC6ZM3SX.js → chunk-4JF36MES.js} +2 -2
  38. package/dist/{chunk-7CTUHB7U.js → chunk-4U2FAFX6.js} +2 -2
  39. package/dist/{chunk-3X4CJEN4.js → chunk-4Z3EMHTE.js} +2 -2
  40. package/dist/{chunk-E42PBKYH.js → chunk-55DI7KZU.js} +2 -2
  41. package/dist/{chunk-XFDD4QPE.js → chunk-5YEAR75O.js} +2 -2
  42. package/dist/{chunk-BUDKOST6.js → chunk-62SF33UR.js} +2 -2
  43. package/dist/{chunk-TIFHRVKA.js → chunk-63G7OESO.js} +2 -2
  44. package/dist/{chunk-JR6VISHQ.js → chunk-67Y7FHJL.js} +2 -2
  45. package/dist/{chunk-KN3XMDCI.js → chunk-6FLHTC6U.js} +2 -2
  46. package/dist/chunk-6OJTSD45.js +2 -0
  47. package/dist/chunk-6OJTSD45.js.map +1 -0
  48. package/dist/{chunk-IT5PQWVR.js → chunk-6SQRJ4L7.js} +2 -2
  49. package/dist/{chunk-JJ7EROQA.js → chunk-6WURUPUV.js} +2 -2
  50. package/dist/{chunk-PLPGCGAS.js → chunk-7QC2OTVM.js} +2 -2
  51. package/dist/{chunk-LRMMQCL7.js → chunk-7VNHDXAM.js} +2 -2
  52. package/dist/{chunk-BFSBZTDB.js → chunk-A2I7OWOH.js} +2 -2
  53. package/dist/{chunk-PX6B2DBO.js → chunk-ATLMZEFM.js} +2 -2
  54. package/dist/{chunk-AXMLPGSQ.js → chunk-B67E2N6C.js} +2 -2
  55. package/dist/chunk-B6INIXRK.js +2 -0
  56. package/dist/{chunk-OSQ6VUDM.js.map → chunk-B6INIXRK.js.map} +1 -1
  57. package/dist/{chunk-FEZZMB7D.js → chunk-BNZP45LM.js} +2 -2
  58. package/dist/{chunk-VK3Z63G4.js → chunk-BQB45DOL.js} +2 -2
  59. package/dist/{chunk-P243ZEXS.js → chunk-CNJF5FUR.js} +2 -2
  60. package/dist/{chunk-VAYZNUNH.js → chunk-CRMSCL22.js} +2 -2
  61. package/dist/{chunk-UN4RAIAR.js → chunk-CWTGZ65B.js} +2 -2
  62. package/dist/{chunk-UTXYUM6O.js → chunk-CZK3DUCE.js} +2 -2
  63. package/dist/{chunk-PZFFXEI3.js → chunk-DPV7SSFD.js} +2 -2
  64. package/dist/{chunk-DJPDKTA2.js → chunk-DPVXTQAB.js} +2 -2
  65. package/dist/{chunk-PY23FJZC.js → chunk-DV7OHTKI.js} +2 -2
  66. package/dist/chunk-E6SUBDPV.js +2 -0
  67. package/dist/chunk-E6SUBDPV.js.map +1 -0
  68. package/dist/{chunk-LBJAKZ6V.js → chunk-EBMRVQLR.js} +2 -2
  69. package/dist/{chunk-JFTKMQ73.js → chunk-EIENNK3Y.js} +2 -2
  70. package/dist/{chunk-KVMWDA6O.js → chunk-F53HVGYB.js} +2 -2
  71. package/dist/{chunk-7X56CYUV.js → chunk-FJETZR4U.js} +2 -2
  72. package/dist/{chunk-EDT4KTVE.js → chunk-G5AXV2RJ.js} +2 -2
  73. package/dist/{chunk-VDAXUUZX.js → chunk-GBBGTIMM.js} +2 -2
  74. package/dist/{chunk-72RFYT5Y.js → chunk-GBBJRWVT.js} +2 -2
  75. package/dist/chunk-GF5GGJQP.js +2 -0
  76. package/dist/chunk-GF5GGJQP.js.map +1 -0
  77. package/dist/{chunk-7ZBLKUKE.js → chunk-H24OPZJV.js} +2 -2
  78. package/dist/{chunk-UZNF4JV3.js → chunk-HODHDXLV.js} +2 -2
  79. package/dist/{chunk-KJY5KHQP.js → chunk-JAW6N3X2.js} +2 -2
  80. package/dist/{chunk-FFVTWWGX.js → chunk-JVGGWBFZ.js} +2 -2
  81. package/dist/{chunk-O4I5IA24.js → chunk-JWLSIR3J.js} +2 -2
  82. package/dist/{chunk-R5WFXN2Z.js → chunk-K4WICV4A.js} +2 -2
  83. package/dist/{chunk-XADVV6OP.js → chunk-KXARTTYT.js} +2 -2
  84. package/dist/{chunk-S6LG6MGK.js → chunk-L2XNIBH3.js} +2 -2
  85. package/dist/{chunk-6SDLOAEO.js → chunk-LFSTBZUZ.js} +2 -2
  86. package/dist/{chunk-64AJX2DH.js → chunk-LOODLNPN.js} +2 -2
  87. package/dist/{chunk-4DFWKRQR.js → chunk-LUPFNPAY.js} +2 -2
  88. package/dist/{chunk-B5UGFNCU.js → chunk-MEG74D4V.js} +2 -2
  89. package/dist/{chunk-YKAWMDTX.js → chunk-MJXDOPE2.js} +2 -2
  90. package/dist/{chunk-T3MTHXS5.js → chunk-MYSEW4AI.js} +2 -2
  91. package/dist/{chunk-FTC4EFBO.js → chunk-N33KFFOU.js} +2 -2
  92. package/dist/{chunk-75P5LUKA.js → chunk-NBVZJNYD.js} +2 -2
  93. package/dist/{chunk-V5OIMFSH.js → chunk-NVFEQTH5.js} +2 -2
  94. package/dist/{chunk-XBEX4G75.js → chunk-NYE47ACX.js} +2 -2
  95. package/dist/{chunk-6CUZAMXI.js → chunk-NZXFIAM4.js} +2 -2
  96. package/dist/{chunk-IYZVFJNC.js → chunk-O3W7PCAJ.js} +2 -2
  97. package/dist/{chunk-NORWRQQM.js → chunk-O5BU5W32.js} +2 -2
  98. package/dist/{chunk-ACKYD4QC.js → chunk-OKLZQ5MG.js} +2 -2
  99. package/dist/{chunk-HC3RLPCZ.js → chunk-PQGLOYZV.js} +2 -2
  100. package/dist/{chunk-VDVWAYXP.js → chunk-Q5UAKQQ6.js} +2 -2
  101. package/dist/chunk-QXN7YVI6.js +2 -0
  102. package/dist/chunk-QXN7YVI6.js.map +1 -0
  103. package/dist/chunk-R6JR4HVH.js +2 -0
  104. package/dist/chunk-R6JR4HVH.js.map +1 -0
  105. package/dist/{chunk-OJTYP5W7.js → chunk-R7LMREDN.js} +2 -2
  106. package/dist/{chunk-ZKOA3R57.js → chunk-RAB3U6F5.js} +2 -2
  107. package/dist/{chunk-5EDCZGZV.js → chunk-REYOVGEA.js} +2 -2
  108. package/dist/{chunk-7N2A2ZJ5.js → chunk-RHVD4JYN.js} +2 -2
  109. package/dist/{chunk-VHAJRKCI.js → chunk-RSXEN3N2.js} +2 -2
  110. package/dist/{chunk-YYMGZZTO.js → chunk-RTZVAPMC.js} +2 -2
  111. package/dist/{chunk-VIX4RJKF.js → chunk-S2S2U5DM.js} +2 -2
  112. package/dist/{chunk-CUSAI2ZT.js → chunk-SIL724UR.js} +2 -2
  113. package/dist/{chunk-RUYVQ6R6.js → chunk-T4EHHK6N.js} +2 -2
  114. package/dist/chunk-T4Q4FZ67.js +2 -0
  115. package/dist/chunk-T4Q4FZ67.js.map +1 -0
  116. package/dist/{chunk-RDQJU3HZ.js → chunk-U2H4CADS.js} +2 -2
  117. package/dist/{chunk-373A3JYN.js → chunk-U5KR7EJG.js} +2 -2
  118. package/dist/{chunk-FV3X3QRI.js → chunk-UBKRPL4K.js} +2 -2
  119. package/dist/{chunk-KMBA73YG.js → chunk-UMGX2LKV.js} +2 -2
  120. package/dist/{chunk-PVXIXLI7.js → chunk-URUZIOHG.js} +2 -2
  121. package/dist/{chunk-RTB5M2WF.js → chunk-VFIHLB7X.js} +2 -2
  122. package/dist/{chunk-JXWFFVQO.js → chunk-VREHPEMW.js} +2 -2
  123. package/dist/{chunk-YVEVEN4R.js → chunk-VVP4GPUK.js} +2 -2
  124. package/dist/{chunk-RR5AEFCF.js → chunk-W5YVKNRC.js} +2 -2
  125. package/dist/{chunk-INV4YWPR.js → chunk-WHAK6CEI.js} +2 -2
  126. package/dist/{chunk-VSXPCSKU.js → chunk-WVQH6TZ3.js} +2 -2
  127. package/dist/chunk-X73B4U3G.js +2 -0
  128. package/dist/chunk-X73B4U3G.js.map +1 -0
  129. package/dist/{chunk-OXCSFW3F.js → chunk-XHWPTKEN.js} +2 -2
  130. package/dist/{chunk-2UZ72KAQ.js → chunk-XUK2XG3P.js} +2 -2
  131. package/dist/{chunk-XUTYA3JC.js → chunk-Y6WZM53P.js} +2 -2
  132. package/dist/chunk-Y7L6VZOT.js +2 -0
  133. package/dist/chunk-Y7L6VZOT.js.map +1 -0
  134. package/dist/{chunk-RRZ2GPQS.js → chunk-YJI7RIP6.js} +2 -2
  135. package/dist/chunk-Z4XG6VOP.js +2 -0
  136. package/dist/chunk-Z4XG6VOP.js.map +1 -0
  137. package/dist/{chunk-NWODDA5W.js → chunk-ZD6ZY65J.js} +2 -2
  138. package/dist/{chunk-FOBUW3RN.js → chunk-ZLIWNVE5.js} +2 -2
  139. package/dist/default-components.d.ts +2 -2
  140. package/dist/default-components.js +1 -1
  141. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  142. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  143. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  144. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  145. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  146. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  147. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  148. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  149. package/dist/flows/ContractAmendment/hooks.js +1 -1
  150. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  151. package/dist/flows/ContractAmendment/index.js +1 -1
  152. package/dist/flows/ContractAmendment/types.d.ts +2 -2
  153. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  154. package/dist/flows/ContractAmendment/utils.js +1 -1
  155. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
  156. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  157. package/dist/flows/ContractorOnboarding/api.d.ts +14 -3
  158. package/dist/flows/ContractorOnboarding/api.js +1 -1
  159. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  160. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  161. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
  162. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  163. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  164. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  165. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
  166. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
  167. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  168. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +7 -7
  169. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  170. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -5
  171. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  172. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  173. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  174. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
  175. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  176. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
  177. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  178. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  179. package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
  180. package/dist/flows/ContractorOnboarding/context.d.ts +12 -6
  181. package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
  182. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  183. package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
  184. package/dist/flows/ContractorOnboarding/index.js +1 -1
  185. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -5
  186. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  187. package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
  188. package/dist/flows/ContractorOnboarding/utils.d.ts +4 -4
  189. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  190. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  191. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  192. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  193. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  194. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  195. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
  196. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  197. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
  198. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
  199. package/dist/flows/CostCalculator/api.d.ts +2 -2
  200. package/dist/flows/CostCalculator/api.js +1 -1
  201. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  202. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  203. package/dist/flows/CostCalculator/context.d.ts +3 -3
  204. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  205. package/dist/flows/CostCalculator/hooks.js +1 -1
  206. package/dist/flows/CostCalculator/index.d.ts +3 -3
  207. package/dist/flows/CostCalculator/index.js +1 -1
  208. package/dist/flows/CostCalculator/types.d.ts +2 -2
  209. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  210. package/dist/flows/CostCalculator/utils.js +1 -1
  211. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  212. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  213. package/dist/flows/CreateCompany/api.d.ts +2 -2
  214. package/dist/flows/CreateCompany/api.js +1 -1
  215. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  216. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  217. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  218. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  219. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  220. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  221. package/dist/flows/CreateCompany/context.d.ts +4 -4
  222. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  223. package/dist/flows/CreateCompany/hooks.js +1 -1
  224. package/dist/flows/CreateCompany/index.d.ts +4 -4
  225. package/dist/flows/CreateCompany/index.js +1 -1
  226. package/dist/flows/CreateCompany/types.d.ts +4 -4
  227. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  228. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  229. package/dist/flows/Onboarding/api.d.ts +4 -4
  230. package/dist/flows/Onboarding/api.js +1 -1
  231. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  232. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  233. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  234. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  235. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  236. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  237. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  238. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  239. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +4 -4
  240. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  241. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  242. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  243. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  244. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  245. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  246. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  247. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  248. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  249. package/dist/flows/Onboarding/context.d.ts +4 -4
  250. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  251. package/dist/flows/Onboarding/hooks.js +1 -1
  252. package/dist/flows/Onboarding/index.d.ts +4 -4
  253. package/dist/flows/Onboarding/index.js +1 -1
  254. package/dist/flows/Onboarding/types.d.ts +4 -4
  255. package/dist/flows/Onboarding/utils.d.ts +4 -4
  256. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  257. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  258. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  259. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  260. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  261. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  262. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  263. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  264. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  265. package/dist/flows/Termination/TerminationFlow.js +1 -1
  266. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  267. package/dist/flows/Termination/TerminationForm.js +1 -1
  268. package/dist/flows/Termination/api.d.ts +5 -5
  269. package/dist/flows/Termination/api.js +1 -1
  270. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
  271. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  272. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  273. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  274. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  275. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  276. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  277. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  278. package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
  279. package/dist/flows/Termination/context.d.ts +4 -4
  280. package/dist/flows/Termination/hooks.d.ts +4 -4
  281. package/dist/flows/Termination/hooks.js +1 -1
  282. package/dist/flows/Termination/index.d.ts +6 -6
  283. package/dist/flows/Termination/index.js +1 -1
  284. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  285. package/dist/flows/Termination/types.d.ts +4 -4
  286. package/dist/flows/Termination/utils.d.ts +4 -4
  287. package/dist/flows/Termination/utils.js +1 -1
  288. package/dist/flows/types.d.ts +2 -2
  289. package/dist/flows/utils.d.ts +2 -2
  290. package/dist/index.css +1 -1
  291. package/dist/index.css.map +1 -1
  292. package/dist/index.d.ts +11 -11
  293. package/dist/index.js +2 -2
  294. package/dist/internals.d.ts +3 -3
  295. package/dist/internals.js +1 -1
  296. package/dist/{mutations-C1XMuYlk.d.ts → mutations-C4w7YG9l.d.ts} +1 -1
  297. package/dist/{remoteFlows-CxOc7anq.d.ts → remoteFlows-xzrCyOPt.d.ts} +1 -1
  298. package/dist/styles.css +1 -1
  299. package/dist/styles.css.map +1 -1
  300. package/dist/{types-BqpZPw47.d.ts → types-C0k7LWaz.d.ts} +3 -3
  301. package/dist/{types-Cb-1z4vt.d.ts → types-CLN3oHKt.d.ts} +11 -5
  302. package/dist/{types-BYcKuJ8z.d.ts → types-CXgues_v.d.ts} +2 -2
  303. package/dist/{types-DuKc_eXf.d.ts → types-DWheQ1pi.d.ts} +1 -1
  304. package/dist/{types-oX7HbacX.d.ts → types-ggiLFgQF.d.ts} +3 -3
  305. package/dist/{types.gen-CLArJ-Qx.d.ts → types.gen-CDCDRemY.d.ts} +1 -1
  306. package/dist/{utils-DsfJjYNt.d.ts → utils-DvSfksok.d.ts} +1 -1
  307. package/package.json +4 -4
  308. package/dist/ButtonDefault-EPOEMC2J.js +0 -2
  309. package/dist/CheckboxFieldDefault-GQZWERNF.js +0 -2
  310. package/dist/CountryFieldDefault-PKRIWPY3.js +0 -2
  311. package/dist/DatePickerFieldDefault-Y26FNCUK.js +0 -2
  312. package/dist/DrawerDefault-WN7Z4LY7.js +0 -2
  313. package/dist/EmailFieldDefault-LTDNKVUW.js +0 -2
  314. package/dist/FieldsetToggleButtonDefault-4RZ3GTDF.js +0 -2
  315. package/dist/FileUploadFieldDefault-HSLW6SHB.js +0 -2
  316. package/dist/MultiSelectFieldDefault-GSJWVA5H.js +0 -2
  317. package/dist/NumberFieldDefault-NVOVVUNK.js +0 -2
  318. package/dist/RadioGroupFieldDefault-DQGRKN3M.js +0 -2
  319. package/dist/SelectFieldDefault-WU4CDEZD.js +0 -2
  320. package/dist/StatementDefault-T3RCCUE5.js +0 -2
  321. package/dist/TableFieldDefault-S5XRYF36.js +0 -2
  322. package/dist/TelFieldDefault-D5EW44ZU.js +0 -2
  323. package/dist/TextAreaFieldDefault-EFYFWCHQ.js +0 -2
  324. package/dist/TextFieldDefault-FCVIHZTV.js +0 -2
  325. package/dist/WorkScheduleFieldDefault-5JZPKI2P.js +0 -2
  326. package/dist/ZendeskDrawerDefault-WQ32QQVE.js +0 -2
  327. package/dist/chunk-42PPQJNB.js +0 -2
  328. package/dist/chunk-42PPQJNB.js.map +0 -1
  329. package/dist/chunk-CWF26ZF4.js +0 -2
  330. package/dist/chunk-CWF26ZF4.js.map +0 -1
  331. package/dist/chunk-F5Y64CVG.js +0 -2
  332. package/dist/chunk-F5Y64CVG.js.map +0 -1
  333. package/dist/chunk-FO73LJAF.js +0 -2
  334. package/dist/chunk-FO73LJAF.js.map +0 -1
  335. package/dist/chunk-G2WWWCFS.js +0 -2
  336. package/dist/chunk-G2WWWCFS.js.map +0 -1
  337. package/dist/chunk-HJYUTOA2.js +0 -2
  338. package/dist/chunk-HJYUTOA2.js.map +0 -1
  339. package/dist/chunk-JOQ6LN5D.js +0 -2
  340. package/dist/chunk-JOQ6LN5D.js.map +0 -1
  341. package/dist/chunk-O5WY5DXB.js +0 -2
  342. package/dist/chunk-O5WY5DXB.js.map +0 -1
  343. package/dist/chunk-OGXYAUPR.js +0 -2
  344. package/dist/chunk-OGXYAUPR.js.map +0 -1
  345. package/dist/chunk-OSQ6VUDM.js +0 -2
  346. package/dist/chunk-VAMDTZC6.js +0 -2
  347. package/dist/chunk-VAMDTZC6.js.map +0 -1
  348. /package/dist/{ButtonDefault-EPOEMC2J.js.map → ButtonDefault-CKQ2BJUS.js.map} +0 -0
  349. /package/dist/{CheckboxFieldDefault-GQZWERNF.js.map → CheckboxFieldDefault-YC2QUCVS.js.map} +0 -0
  350. /package/dist/{CountryFieldDefault-PKRIWPY3.js.map → CountryFieldDefault-TAWSHFUQ.js.map} +0 -0
  351. /package/dist/{DatePickerFieldDefault-Y26FNCUK.js.map → DatePickerFieldDefault-3D4FIGSC.js.map} +0 -0
  352. /package/dist/{DrawerDefault-WN7Z4LY7.js.map → DrawerDefault-BI3CU3ER.js.map} +0 -0
  353. /package/dist/{EmailFieldDefault-LTDNKVUW.js.map → EmailFieldDefault-YZPHACSN.js.map} +0 -0
  354. /package/dist/{FieldsetToggleButtonDefault-4RZ3GTDF.js.map → FieldsetToggleButtonDefault-4U7BDT4X.js.map} +0 -0
  355. /package/dist/{FileUploadFieldDefault-HSLW6SHB.js.map → FileUploadFieldDefault-FVM7Y52C.js.map} +0 -0
  356. /package/dist/{MultiSelectFieldDefault-GSJWVA5H.js.map → MultiSelectFieldDefault-7KTMSXIH.js.map} +0 -0
  357. /package/dist/{NumberFieldDefault-NVOVVUNK.js.map → NumberFieldDefault-K4MVLMGJ.js.map} +0 -0
  358. /package/dist/{RadioGroupFieldDefault-DQGRKN3M.js.map → RadioGroupFieldDefault-EVV22HUJ.js.map} +0 -0
  359. /package/dist/{SelectFieldDefault-WU4CDEZD.js.map → SelectFieldDefault-VOA7ZIBY.js.map} +0 -0
  360. /package/dist/{StatementDefault-T3RCCUE5.js.map → StatementDefault-6EBISV3S.js.map} +0 -0
  361. /package/dist/{TableFieldDefault-S5XRYF36.js.map → TableFieldDefault-RJLGSGJF.js.map} +0 -0
  362. /package/dist/{TelFieldDefault-D5EW44ZU.js.map → TelFieldDefault-ET62XFKU.js.map} +0 -0
  363. /package/dist/{TextAreaFieldDefault-EFYFWCHQ.js.map → TextAreaFieldDefault-2Z6IQVTT.js.map} +0 -0
  364. /package/dist/{TextFieldDefault-FCVIHZTV.js.map → TextFieldDefault-Y7QUVUHA.js.map} +0 -0
  365. /package/dist/{WorkScheduleFieldDefault-5JZPKI2P.js.map → WorkScheduleFieldDefault-BIIPBJRM.js.map} +0 -0
  366. /package/dist/{ZendeskDrawerDefault-WQ32QQVE.js.map → ZendeskDrawerDefault-EDBRPDGO.js.map} +0 -0
  367. /package/dist/{chunk-RDOWNO6N.js.map → chunk-2G5REJXM.js.map} +0 -0
  368. /package/dist/{chunk-BAE2OWEH.js.map → chunk-2I7VHYTP.js.map} +0 -0
  369. /package/dist/{chunk-WDV3ECGC.js.map → chunk-2K6FAKY5.js.map} +0 -0
  370. /package/dist/{chunk-DYNVJFJH.js.map → chunk-2KQAMX75.js.map} +0 -0
  371. /package/dist/{chunk-6ICMMDER.js.map → chunk-2LDLBV46.js.map} +0 -0
  372. /package/dist/{chunk-W2ZXKNL4.js.map → chunk-2OAQQ6X6.js.map} +0 -0
  373. /package/dist/{chunk-UCYB5QK7.js.map → chunk-2PUK3H75.js.map} +0 -0
  374. /package/dist/{chunk-BTP3NN3N.js.map → chunk-2SQAL5GV.js.map} +0 -0
  375. /package/dist/{chunk-UBNSYRKM.js.map → chunk-2VMGSRVH.js.map} +0 -0
  376. /package/dist/{chunk-2AFRBV4P.js.map → chunk-3AN3QVZK.js.map} +0 -0
  377. /package/dist/{chunk-KVQGNPKF.js.map → chunk-3EF2TOAW.js.map} +0 -0
  378. /package/dist/{chunk-UAPT6OBQ.js.map → chunk-3H7ADMNB.js.map} +0 -0
  379. /package/dist/{chunk-6Y4QJ7WK.js.map → chunk-3TVAUVYZ.js.map} +0 -0
  380. /package/dist/{chunk-2P4RPBIO.js.map → chunk-427NW7HI.js.map} +0 -0
  381. /package/dist/{chunk-CLAVZQBC.js.map → chunk-4BXUBSZS.js.map} +0 -0
  382. /package/dist/{chunk-EC6ZM3SX.js.map → chunk-4JF36MES.js.map} +0 -0
  383. /package/dist/{chunk-7CTUHB7U.js.map → chunk-4U2FAFX6.js.map} +0 -0
  384. /package/dist/{chunk-3X4CJEN4.js.map → chunk-4Z3EMHTE.js.map} +0 -0
  385. /package/dist/{chunk-E42PBKYH.js.map → chunk-55DI7KZU.js.map} +0 -0
  386. /package/dist/{chunk-XFDD4QPE.js.map → chunk-5YEAR75O.js.map} +0 -0
  387. /package/dist/{chunk-BUDKOST6.js.map → chunk-62SF33UR.js.map} +0 -0
  388. /package/dist/{chunk-TIFHRVKA.js.map → chunk-63G7OESO.js.map} +0 -0
  389. /package/dist/{chunk-JR6VISHQ.js.map → chunk-67Y7FHJL.js.map} +0 -0
  390. /package/dist/{chunk-KN3XMDCI.js.map → chunk-6FLHTC6U.js.map} +0 -0
  391. /package/dist/{chunk-IT5PQWVR.js.map → chunk-6SQRJ4L7.js.map} +0 -0
  392. /package/dist/{chunk-JJ7EROQA.js.map → chunk-6WURUPUV.js.map} +0 -0
  393. /package/dist/{chunk-PLPGCGAS.js.map → chunk-7QC2OTVM.js.map} +0 -0
  394. /package/dist/{chunk-LRMMQCL7.js.map → chunk-7VNHDXAM.js.map} +0 -0
  395. /package/dist/{chunk-BFSBZTDB.js.map → chunk-A2I7OWOH.js.map} +0 -0
  396. /package/dist/{chunk-PX6B2DBO.js.map → chunk-ATLMZEFM.js.map} +0 -0
  397. /package/dist/{chunk-AXMLPGSQ.js.map → chunk-B67E2N6C.js.map} +0 -0
  398. /package/dist/{chunk-FEZZMB7D.js.map → chunk-BNZP45LM.js.map} +0 -0
  399. /package/dist/{chunk-VK3Z63G4.js.map → chunk-BQB45DOL.js.map} +0 -0
  400. /package/dist/{chunk-P243ZEXS.js.map → chunk-CNJF5FUR.js.map} +0 -0
  401. /package/dist/{chunk-VAYZNUNH.js.map → chunk-CRMSCL22.js.map} +0 -0
  402. /package/dist/{chunk-UN4RAIAR.js.map → chunk-CWTGZ65B.js.map} +0 -0
  403. /package/dist/{chunk-UTXYUM6O.js.map → chunk-CZK3DUCE.js.map} +0 -0
  404. /package/dist/{chunk-PZFFXEI3.js.map → chunk-DPV7SSFD.js.map} +0 -0
  405. /package/dist/{chunk-DJPDKTA2.js.map → chunk-DPVXTQAB.js.map} +0 -0
  406. /package/dist/{chunk-PY23FJZC.js.map → chunk-DV7OHTKI.js.map} +0 -0
  407. /package/dist/{chunk-LBJAKZ6V.js.map → chunk-EBMRVQLR.js.map} +0 -0
  408. /package/dist/{chunk-JFTKMQ73.js.map → chunk-EIENNK3Y.js.map} +0 -0
  409. /package/dist/{chunk-KVMWDA6O.js.map → chunk-F53HVGYB.js.map} +0 -0
  410. /package/dist/{chunk-7X56CYUV.js.map → chunk-FJETZR4U.js.map} +0 -0
  411. /package/dist/{chunk-EDT4KTVE.js.map → chunk-G5AXV2RJ.js.map} +0 -0
  412. /package/dist/{chunk-VDAXUUZX.js.map → chunk-GBBGTIMM.js.map} +0 -0
  413. /package/dist/{chunk-72RFYT5Y.js.map → chunk-GBBJRWVT.js.map} +0 -0
  414. /package/dist/{chunk-7ZBLKUKE.js.map → chunk-H24OPZJV.js.map} +0 -0
  415. /package/dist/{chunk-UZNF4JV3.js.map → chunk-HODHDXLV.js.map} +0 -0
  416. /package/dist/{chunk-KJY5KHQP.js.map → chunk-JAW6N3X2.js.map} +0 -0
  417. /package/dist/{chunk-FFVTWWGX.js.map → chunk-JVGGWBFZ.js.map} +0 -0
  418. /package/dist/{chunk-O4I5IA24.js.map → chunk-JWLSIR3J.js.map} +0 -0
  419. /package/dist/{chunk-R5WFXN2Z.js.map → chunk-K4WICV4A.js.map} +0 -0
  420. /package/dist/{chunk-XADVV6OP.js.map → chunk-KXARTTYT.js.map} +0 -0
  421. /package/dist/{chunk-S6LG6MGK.js.map → chunk-L2XNIBH3.js.map} +0 -0
  422. /package/dist/{chunk-6SDLOAEO.js.map → chunk-LFSTBZUZ.js.map} +0 -0
  423. /package/dist/{chunk-64AJX2DH.js.map → chunk-LOODLNPN.js.map} +0 -0
  424. /package/dist/{chunk-4DFWKRQR.js.map → chunk-LUPFNPAY.js.map} +0 -0
  425. /package/dist/{chunk-B5UGFNCU.js.map → chunk-MEG74D4V.js.map} +0 -0
  426. /package/dist/{chunk-YKAWMDTX.js.map → chunk-MJXDOPE2.js.map} +0 -0
  427. /package/dist/{chunk-T3MTHXS5.js.map → chunk-MYSEW4AI.js.map} +0 -0
  428. /package/dist/{chunk-FTC4EFBO.js.map → chunk-N33KFFOU.js.map} +0 -0
  429. /package/dist/{chunk-75P5LUKA.js.map → chunk-NBVZJNYD.js.map} +0 -0
  430. /package/dist/{chunk-V5OIMFSH.js.map → chunk-NVFEQTH5.js.map} +0 -0
  431. /package/dist/{chunk-XBEX4G75.js.map → chunk-NYE47ACX.js.map} +0 -0
  432. /package/dist/{chunk-6CUZAMXI.js.map → chunk-NZXFIAM4.js.map} +0 -0
  433. /package/dist/{chunk-IYZVFJNC.js.map → chunk-O3W7PCAJ.js.map} +0 -0
  434. /package/dist/{chunk-NORWRQQM.js.map → chunk-O5BU5W32.js.map} +0 -0
  435. /package/dist/{chunk-ACKYD4QC.js.map → chunk-OKLZQ5MG.js.map} +0 -0
  436. /package/dist/{chunk-HC3RLPCZ.js.map → chunk-PQGLOYZV.js.map} +0 -0
  437. /package/dist/{chunk-VDVWAYXP.js.map → chunk-Q5UAKQQ6.js.map} +0 -0
  438. /package/dist/{chunk-OJTYP5W7.js.map → chunk-R7LMREDN.js.map} +0 -0
  439. /package/dist/{chunk-ZKOA3R57.js.map → chunk-RAB3U6F5.js.map} +0 -0
  440. /package/dist/{chunk-5EDCZGZV.js.map → chunk-REYOVGEA.js.map} +0 -0
  441. /package/dist/{chunk-7N2A2ZJ5.js.map → chunk-RHVD4JYN.js.map} +0 -0
  442. /package/dist/{chunk-VHAJRKCI.js.map → chunk-RSXEN3N2.js.map} +0 -0
  443. /package/dist/{chunk-YYMGZZTO.js.map → chunk-RTZVAPMC.js.map} +0 -0
  444. /package/dist/{chunk-VIX4RJKF.js.map → chunk-S2S2U5DM.js.map} +0 -0
  445. /package/dist/{chunk-CUSAI2ZT.js.map → chunk-SIL724UR.js.map} +0 -0
  446. /package/dist/{chunk-RUYVQ6R6.js.map → chunk-T4EHHK6N.js.map} +0 -0
  447. /package/dist/{chunk-RDQJU3HZ.js.map → chunk-U2H4CADS.js.map} +0 -0
  448. /package/dist/{chunk-373A3JYN.js.map → chunk-U5KR7EJG.js.map} +0 -0
  449. /package/dist/{chunk-FV3X3QRI.js.map → chunk-UBKRPL4K.js.map} +0 -0
  450. /package/dist/{chunk-KMBA73YG.js.map → chunk-UMGX2LKV.js.map} +0 -0
  451. /package/dist/{chunk-PVXIXLI7.js.map → chunk-URUZIOHG.js.map} +0 -0
  452. /package/dist/{chunk-RTB5M2WF.js.map → chunk-VFIHLB7X.js.map} +0 -0
  453. /package/dist/{chunk-JXWFFVQO.js.map → chunk-VREHPEMW.js.map} +0 -0
  454. /package/dist/{chunk-YVEVEN4R.js.map → chunk-VVP4GPUK.js.map} +0 -0
  455. /package/dist/{chunk-RR5AEFCF.js.map → chunk-W5YVKNRC.js.map} +0 -0
  456. /package/dist/{chunk-INV4YWPR.js.map → chunk-WHAK6CEI.js.map} +0 -0
  457. /package/dist/{chunk-VSXPCSKU.js.map → chunk-WVQH6TZ3.js.map} +0 -0
  458. /package/dist/{chunk-OXCSFW3F.js.map → chunk-XHWPTKEN.js.map} +0 -0
  459. /package/dist/{chunk-2UZ72KAQ.js.map → chunk-XUK2XG3P.js.map} +0 -0
  460. /package/dist/{chunk-XUTYA3JC.js.map → chunk-Y6WZM53P.js.map} +0 -0
  461. /package/dist/{chunk-RRZ2GPQS.js.map → chunk-YJI7RIP6.js.map} +0 -0
  462. /package/dist/{chunk-NWODDA5W.js.map → chunk-ZD6ZY65J.js.map} +0 -0
  463. /package/dist/{chunk-FOBUW3RN.js.map → chunk-ZLIWNVE5.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-MEG74D4V.js";import"./chunk-KXARTTYT.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as ButtonDefault};
2
+ //# sourceMappingURL=ButtonDefault-CKQ2BJUS.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-NZXFIAM4.js";import"./chunk-Y6WZM53P.js";import"./chunk-VREHPEMW.js";import"./chunk-U2H4CADS.js";import"./chunk-GBBJRWVT.js";import"./chunk-TNQKP2XT.js";import"./chunk-B6INIXRK.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as CheckboxFieldDefault};
2
+ //# sourceMappingURL=CheckboxFieldDefault-YC2QUCVS.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-2PUK3H75.js";import"./chunk-XHWPTKEN.js";import"./chunk-LFSTBZUZ.js";import"./chunk-Y6WZM53P.js";import"./chunk-ZLIWNVE5.js";import"./chunk-RTZVAPMC.js";import"./chunk-KXARTTYT.js";import"./chunk-U2H4CADS.js";import"./chunk-GBBJRWVT.js";import"./chunk-TNQKP2XT.js";import"./chunk-B6INIXRK.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as CountryFieldDefault};
2
+ //# sourceMappingURL=CountryFieldDefault-TAWSHFUQ.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-Z4XG6VOP.js";import"./chunk-LFSTBZUZ.js";import"./chunk-Y6WZM53P.js";import"./chunk-KXARTTYT.js";import"./chunk-U2H4CADS.js";import"./chunk-GBBJRWVT.js";import"./chunk-TNQKP2XT.js";import"./chunk-B6INIXRK.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as DatePickerFieldDefault};
2
+ //# sourceMappingURL=DatePickerFieldDefault-3D4FIGSC.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-A2I7OWOH.js";import"./chunk-RHVD4JYN.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as DrawerDefault};
2
+ //# sourceMappingURL=DrawerDefault-BI3CU3ER.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-O5BU5W32.js";import"./chunk-4BXUBSZS.js";import"./chunk-GBBJRWVT.js";import"./chunk-B6INIXRK.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as EmailFieldDefault};
2
+ //# sourceMappingURL=EmailFieldDefault-YZPHACSN.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-XUK2XG3P.js";import"./chunk-KXARTTYT.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as FieldsetToggleButtonDefault};
2
+ //# sourceMappingURL=FieldsetToggleButtonDefault-4U7BDT4X.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-2SQAL5GV.js";import"./chunk-UMGX2LKV.js";import"./chunk-KXARTTYT.js";import"./chunk-GBBJRWVT.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as FileUploadFieldDefault};
2
+ //# sourceMappingURL=FileUploadFieldDefault-FVM7Y52C.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-FJETZR4U.js";import"./chunk-XHWPTKEN.js";import"./chunk-LFSTBZUZ.js";import"./chunk-ZLIWNVE5.js";import"./chunk-RTZVAPMC.js";import"./chunk-KXARTTYT.js";import"./chunk-GBBJRWVT.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as MultiSelectFieldDefault};
2
+ //# sourceMappingURL=MultiSelectFieldDefault-7KTMSXIH.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-K4WICV4A.js";import"./chunk-4BXUBSZS.js";import"./chunk-GBBJRWVT.js";import"./chunk-B6INIXRK.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as NumberFieldDefault};
2
+ //# sourceMappingURL=NumberFieldDefault-K4MVLMGJ.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-LUPFNPAY.js";import"./chunk-Y6WZM53P.js";import"./chunk-2KQAMX75.js";import"./chunk-U2H4CADS.js";import"./chunk-GBBJRWVT.js";import"./chunk-TNQKP2XT.js";import"./chunk-B6INIXRK.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as RadioGroupFieldDefault};
2
+ //# sourceMappingURL=RadioGroupFieldDefault-EVV22HUJ.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-WHAK6CEI.js";import"./chunk-EBMRVQLR.js";import"./chunk-GBBJRWVT.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as SelectFieldDefault};
2
+ //# sourceMappingURL=SelectFieldDefault-VOA7ZIBY.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-NBVZJNYD.js";import"./chunk-3TVAUVYZ.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as StatementDefault};
2
+ //# sourceMappingURL=StatementDefault-6EBISV3S.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-N33KFFOU.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as TableFieldDefault};
2
+ //# sourceMappingURL=TableFieldDefault-RJLGSGJF.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-SIL724UR.js";import"./chunk-RSXEN3N2.js";import"./chunk-EBMRVQLR.js";import"./chunk-GBBJRWVT.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as TelFieldDefault};
2
+ //# sourceMappingURL=TelFieldDefault-ET62XFKU.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-RAB3U6F5.js";import"./chunk-Y6WZM53P.js";import"./chunk-U2H4CADS.js";import"./chunk-GBBJRWVT.js";import"./chunk-TNQKP2XT.js";import"./chunk-B6INIXRK.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as TextAreaFieldDefault};
2
+ //# sourceMappingURL=TextAreaFieldDefault-2Z6IQVTT.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-4JF36MES.js";import"./chunk-RSXEN3N2.js";import"./chunk-GBBJRWVT.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as TextFieldDefault};
2
+ //# sourceMappingURL=TextFieldDefault-Y7QUVUHA.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-427NW7HI.js";import"./chunk-RTZVAPMC.js";import"./chunk-HODHDXLV.js";import"./chunk-KXARTTYT.js";import"./chunk-4BXUBSZS.js";import"./chunk-GBBJRWVT.js";import"./chunk-B6INIXRK.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";export{a as WorkScheduleFieldDefault};
2
+ //# sourceMappingURL=WorkScheduleFieldDefault-BIIPBJRM.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-WVQH6TZ3.js";import"./chunk-RHVD4JYN.js";import"./chunk-B6INIXRK.js";import"./chunk-P37U34EQ.js";export{a as ZendeskDrawerDefault};
2
+ //# sourceMappingURL=ZendeskDrawerDefault-EDBRPDGO.js.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-VDAXUUZX.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as m}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function p({onSubmit:n}){let{terminationBag:o}=e(),a=m(async t=>{let r=await o?.parseFormValues(t);await n?.(r),o?.next()},"handleSubmit");return u(i,{defaultValues:o.fieldValues,onSubmit:a})}m(p,"EmployeeCommunicationForm");export{p as a};
2
- //# sourceMappingURL=chunk-RDOWNO6N.js.map
1
+ import{a as i}from"./chunk-GBBGTIMM.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as m}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function p({onSubmit:n}){let{terminationBag:o}=e(),a=m(async t=>{let r=await o?.parseFormValues(t);await n?.(r),o?.next()},"handleSubmit");return u(i,{defaultValues:o.fieldValues,onSubmit:a})}m(p,"EmployeeCommunicationForm");export{p as a};
2
+ //# sourceMappingURL=chunk-2G5REJXM.js.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-KSHK3ZPX.js";import{c as r}from"./chunk-OSQ6VUDM.js";import{b as e}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function p({children:u,...t}){let{form:m,formId:l,costCalculatorBag:c}=s(),{components:i}=e(),o=i?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:r("RemoteFlows__CostCalculatorForm__ResetButton",t.className),form:l,onClick:C=>{c?.resetForm(),m.reset(),t.onClick?.(C)},children:u})}n(p,"CostCalculatorResetButton");export{p as a};
2
- //# sourceMappingURL=chunk-BAE2OWEH.js.map
1
+ import{b as s}from"./chunk-KSHK3ZPX.js";import{c as r}from"./chunk-B6INIXRK.js";import{b as e}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function p({children:u,...t}){let{form:m,formId:l,costCalculatorBag:c}=s(),{components:i}=e(),o=i?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:r("RemoteFlows__CostCalculatorForm__ResetButton",t.className),form:l,onClick:C=>{c?.resetForm(),m.reset(),t.onClick?.(C)},children:u})}n(p,"CostCalculatorResetButton");export{p as a};
2
+ //# sourceMappingURL=chunk-2I7VHYTP.js.map
@@ -1,2 +1,2 @@
1
- import{e as R,f as p,g as y}from"./chunk-TVBZT6FA.js";import{a as A}from"./chunk-WVJDCDGZ.js";import{a as U}from"./chunk-MKUSE7JK.js";import{a as d}from"./chunk-JR6VISHQ.js";import{A as _,D as S,F as w,I as O,K as v,P as q,U as P,ba as j,ca as x,g as f,i as g,j as h,n as b,o as C,w as F,x as E}from"./chunk-TNQKP2XT.js";import{d as i}from"./chunk-KQPDXXG3.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as m,useQuery as c}from"@tanstack/react-query";var Y=t(e=>{let{client:r}=i();return c({queryKey:["company",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let n=await E({client:r,headers:{Authorization:""},path:{company_id:e}});if(n.error||!n.data)throw new Error("Failed to fetch employment data");return n},"queryFn"),select:t(({data:n})=>n.data.company,"select")})},"useCompany"),Z=t(e=>{let{client:r}=i();return c({queryKey:["benefit-offers",e],retry:!1,enabled:!!e,queryFn:t(async()=>b({client:r,path:{employment_id:e}}).then(n=>{if(n.error||!n.data)throw new Error("Failed to fetch benefit offers data");return n}),"queryFn"),select:t(({data:n})=>n?.data?.reduce((a,o)=>({...a,[o.benefit_group.slug]:{value:o.benefit_tier?.slug??"no",...o.benefit_group?.filter?.slug?{filter:o.benefit_group?.filter?.slug}:{}}}),{}),"select")})},"useBenefitOffers"),$=t((e,r)=>{let{client:n}=i();return c({queryKey:["employment-engagement-agreement-details",e],retry:!1,enabled:r?.enabled??!!e,queryFn:t(async()=>j({client:n,headers:{Authorization:""},path:{employment_id:e}}).then(a=>{if(a.error||!a.data)throw new Error("Failed to fetch engagement agreement details");return a}),"queryFn"),select:t(({data:a})=>a?.data?.details,"select")})},"useEmploymentEngagementAgreementDetails"),ee=t(()=>{let{client:e}=i();return m({mutationFn:t(r=>P({client:e,headers:{Authorization:""},path:r}),"mutationFn")})},"useEmploymentInvite"),te=t(()=>{let{client:e}=i();return m({mutationFn:t(r=>F({client:e,body:r}),"mutationFn")})},"useCreateReserveInvoice"),ne=t(({countryCode:e,form:r,fieldValues:n,options:a,query:o={},jsonSchemaVersion:s})=>{let{client:l}=i(),D=s?{json_schema_version:s}:{};return c({queryKey:["onboarding-json-schema-form",e,r,s],retry:!1,queryFn:t(async()=>{let u=await _({client:l,headers:{Authorization:""},path:{country_code:e,form:r},query:{skip_benefits:!0,...o,...D}});if(u.error||!u.data)throw new Error("Failed to fetch onboarding schema");return u},"queryFn"),enabled:a?.queryOptions?.enabled,select:t(({data:u})=>{let B=u?.data||{};return d(B,n,a)},"select")})},"useJSONSchemaForm"),re=t((e,r,n)=>{let{client:a}=i(),o={json_schema_version:y(n)};return c({queryKey:["benefit-offers-schema",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let s=await w({client:a,path:{employment_id:e},query:o});if(s.error||!s.data)throw new Error("Failed to fetch benefit offers schema");return s},"queryFn"),select:t(({data:s})=>{let l=s?.data?.schema||{};return d(l,r,{jsfModify:n?.jsfModify?.benefits})},"select")})},"useBenefitOffersSchema"),oe=t(e=>{let{client:r}=i(),n={json_schema_version:p(e)};return m({mutationFn:t(a=>g({client:r,headers:{Authorization:""},body:a,query:{...n}}),"mutationFn")})},"useCreateEmployment"),ae=t((e,r)=>{let{client:n}=i(),a={employment_basic_information_json_schema_version:p(r),contract_details_json_schema_version:R(r,e)||1};return m({mutationFn:t(({employmentId:o,...s})=>O({client:n,headers:{Authorization:""},body:s,path:{employment_id:o},query:{skip_benefits:!0,...a}}),"mutationFn")})},"useUpdateEmployment"),se=t(()=>{let{client:e}=i();return m({mutationFn:t(({employmentId:r,...n})=>x({client:e,headers:{Authorization:""},body:n,path:{employment_id:r}}),"mutationFn")})},"useUpdateEmploymentEngagementAgreementDetails"),ie=t(e=>{let{client:r}=i();return m({mutationFn:t(({employmentId:n,...a})=>{let o={json_schema_version:y(e)};return C({client:r,body:a,path:{employment_id:n},query:o})},"mutationFn")})},"useUpdateBenefitsOffers"),le=t(e=>{let{client:r}=i(),{data:n,isLoading:a}=c({...U(r,"onboarding-countries"),select:t(s=>s.data?.data?.filter(l=>l.eor_onboarding).map(l=>({label:l.name,value:l.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),o=d(A.data.schema,{},e);if(n){let s=o.fields.find(l=>l.name==="country");s&&(s.options=n)}return{isLoading:a,selectCountryForm:o}},"useCountriesSchemaField"),me=t(({type:e="spread"})=>{let{client:r}=i();return m({mutationFn:t(n=>(e==="no_spread"?f:q)({client:r,body:n}),"mutationFn")})},"useConvertCurrency"),ce=t(()=>{let{client:e}=i();return m({mutationFn:t(({employmentId:r,...n})=>v({client:e,path:{employment_id:r},body:n}),"mutationFn")})},"useUpsertContractEligibility"),ue=t((e,r,n=!0)=>{let{client:a}=i();return c({queryKey:["employment-onboarding-reserves-status",e,r],retry:!1,enabled:n&&!!e&&!!r,queryFn:t(async()=>{let o=await h({client:a,headers:{Authorization:""},path:{company_id:e,employment_id:r}});if(o.error||!o.data)throw new Error("Failed to fetch employment onboarding reserves status");return o},"queryFn"),select:t(({data:o})=>o?.data?.status,"select")})},"useEmploymentOnboardingReservesStatus"),de=t((e,r,n)=>{let{client:a}=i();return c({queryKey:["engagement-agreement-details",e],retry:!1,enabled:n?.queryOptions?.enabled??!!e,queryFn:t(async()=>{let o=await S({client:a,path:{country_code:e}});if(o.error||!o.data)throw new Error("Failed to fetch engagement agreement details");return o},"queryFn"),select:t(({data:o})=>{let s=o?.data?.schema||{};return d(s,r,{jsfModify:n?.jsfModify?.engagement_agreement_details})},"select")})},"useEngagementAgreementDetailsSchema");export{Y as a,Z as b,$ as c,ee as d,te as e,ne as f,re as g,oe as h,ae as i,se as j,ie as k,le as l,me as m,ce as n,ue as o,de as p};
2
- //# sourceMappingURL=chunk-WDV3ECGC.js.map
1
+ import{e as R,f as p,g as y}from"./chunk-TVBZT6FA.js";import{a as A}from"./chunk-WVJDCDGZ.js";import{a as U}from"./chunk-MKUSE7JK.js";import{a as d}from"./chunk-67Y7FHJL.js";import{A as _,D as S,F as w,I as O,K as v,P as q,U as P,ba as j,ca as x,g as f,i as g,j as h,n as b,o as C,w as F,x as E}from"./chunk-TNQKP2XT.js";import{d as i}from"./chunk-KQPDXXG3.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as m,useQuery as c}from"@tanstack/react-query";var Y=t(e=>{let{client:r}=i();return c({queryKey:["company",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let n=await E({client:r,headers:{Authorization:""},path:{company_id:e}});if(n.error||!n.data)throw new Error("Failed to fetch employment data");return n},"queryFn"),select:t(({data:n})=>n.data.company,"select")})},"useCompany"),Z=t(e=>{let{client:r}=i();return c({queryKey:["benefit-offers",e],retry:!1,enabled:!!e,queryFn:t(async()=>b({client:r,path:{employment_id:e}}).then(n=>{if(n.error||!n.data)throw new Error("Failed to fetch benefit offers data");return n}),"queryFn"),select:t(({data:n})=>n?.data?.reduce((a,o)=>({...a,[o.benefit_group.slug]:{value:o.benefit_tier?.slug??"no",...o.benefit_group?.filter?.slug?{filter:o.benefit_group?.filter?.slug}:{}}}),{}),"select")})},"useBenefitOffers"),$=t((e,r)=>{let{client:n}=i();return c({queryKey:["employment-engagement-agreement-details",e],retry:!1,enabled:r?.enabled??!!e,queryFn:t(async()=>j({client:n,headers:{Authorization:""},path:{employment_id:e}}).then(a=>{if(a.error||!a.data)throw new Error("Failed to fetch engagement agreement details");return a}),"queryFn"),select:t(({data:a})=>a?.data?.details,"select")})},"useEmploymentEngagementAgreementDetails"),ee=t(()=>{let{client:e}=i();return m({mutationFn:t(r=>P({client:e,headers:{Authorization:""},path:r}),"mutationFn")})},"useEmploymentInvite"),te=t(()=>{let{client:e}=i();return m({mutationFn:t(r=>F({client:e,body:r}),"mutationFn")})},"useCreateReserveInvoice"),ne=t(({countryCode:e,form:r,fieldValues:n,options:a,query:o={},jsonSchemaVersion:s})=>{let{client:l}=i(),D=s?{json_schema_version:s}:{};return c({queryKey:["onboarding-json-schema-form",e,r,s],retry:!1,queryFn:t(async()=>{let u=await _({client:l,headers:{Authorization:""},path:{country_code:e,form:r},query:{skip_benefits:!0,...o,...D}});if(u.error||!u.data)throw new Error("Failed to fetch onboarding schema");return u},"queryFn"),enabled:a?.queryOptions?.enabled,select:t(({data:u})=>{let B=u?.data||{};return d(B,n,a)},"select")})},"useJSONSchemaForm"),re=t((e,r,n)=>{let{client:a}=i(),o={json_schema_version:y(n)};return c({queryKey:["benefit-offers-schema",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let s=await w({client:a,path:{employment_id:e},query:o});if(s.error||!s.data)throw new Error("Failed to fetch benefit offers schema");return s},"queryFn"),select:t(({data:s})=>{let l=s?.data?.schema||{};return d(l,r,{jsfModify:n?.jsfModify?.benefits})},"select")})},"useBenefitOffersSchema"),oe=t(e=>{let{client:r}=i(),n={json_schema_version:p(e)};return m({mutationFn:t(a=>g({client:r,headers:{Authorization:""},body:a,query:{...n}}),"mutationFn")})},"useCreateEmployment"),ae=t((e,r)=>{let{client:n}=i(),a={employment_basic_information_json_schema_version:p(r),contract_details_json_schema_version:R(r,e)||1};return m({mutationFn:t(({employmentId:o,...s})=>O({client:n,headers:{Authorization:""},body:s,path:{employment_id:o},query:{skip_benefits:!0,...a}}),"mutationFn")})},"useUpdateEmployment"),se=t(()=>{let{client:e}=i();return m({mutationFn:t(({employmentId:r,...n})=>x({client:e,headers:{Authorization:""},body:n,path:{employment_id:r}}),"mutationFn")})},"useUpdateEmploymentEngagementAgreementDetails"),ie=t(e=>{let{client:r}=i();return m({mutationFn:t(({employmentId:n,...a})=>{let o={json_schema_version:y(e)};return C({client:r,body:a,path:{employment_id:n},query:o})},"mutationFn")})},"useUpdateBenefitsOffers"),le=t(e=>{let{client:r}=i(),{data:n,isLoading:a}=c({...U(r,"onboarding-countries"),select:t(s=>s.data?.data?.filter(l=>l.eor_onboarding).map(l=>({label:l.name,value:l.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),o=d(A.data.schema,{},e);if(n){let s=o.fields.find(l=>l.name==="country");s&&(s.options=n)}return{isLoading:a,selectCountryForm:o}},"useCountriesSchemaField"),me=t(({type:e="spread"})=>{let{client:r}=i();return m({mutationFn:t(n=>(e==="no_spread"?f:q)({client:r,body:n}),"mutationFn")})},"useConvertCurrency"),ce=t(()=>{let{client:e}=i();return m({mutationFn:t(({employmentId:r,...n})=>v({client:e,path:{employment_id:r},body:n}),"mutationFn")})},"useUpsertContractEligibility"),ue=t((e,r,n=!0)=>{let{client:a}=i();return c({queryKey:["employment-onboarding-reserves-status",e,r],retry:!1,enabled:n&&!!e&&!!r,queryFn:t(async()=>{let o=await h({client:a,headers:{Authorization:""},path:{company_id:e,employment_id:r}});if(o.error||!o.data)throw new Error("Failed to fetch employment onboarding reserves status");return o},"queryFn"),select:t(({data:o})=>o?.data?.status,"select")})},"useEmploymentOnboardingReservesStatus"),de=t((e,r,n)=>{let{client:a}=i();return c({queryKey:["engagement-agreement-details",e],retry:!1,enabled:n?.queryOptions?.enabled??!!e,queryFn:t(async()=>{let o=await S({client:a,path:{country_code:e}});if(o.error||!o.data)throw new Error("Failed to fetch engagement agreement details");return o},"queryFn"),select:t(({data:o})=>{let s=o?.data?.schema||{};return d(s,r,{jsfModify:n?.jsfModify?.engagement_agreement_details})},"select")})},"useEngagementAgreementDetailsSchema");export{Y as a,Z as b,$ as c,ee as d,te as e,ne as f,re as g,oe as h,ae as i,se as j,ie as k,le as l,me as m,ce as n,ue as o,de as p};
2
+ //# sourceMappingURL=chunk-2K6FAKY5.js.map
@@ -1,2 +1,2 @@
1
- import{c as e}from"./chunk-OSQ6VUDM.js";import{a}from"./chunk-P37U34EQ.js";import*as i from"@radix-ui/react-radio-group";import{CircleIcon as d}from"lucide-react";import{jsx as o}from"react/jsx-runtime";function p({className:r,...t}){return o(i.Root,{"data-slot":"radio-group",className:e("grid gap-3",r),...t})}a(p,"RadioGroup");function l({className:r,...t}){return o(i.Item,{"data-slot":"radio-group-item",className:e("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),...t,children:o(i.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:o(d,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}a(l,"RadioGroupItem");export{p as a,l as b};
2
- //# sourceMappingURL=chunk-DYNVJFJH.js.map
1
+ import{c as e}from"./chunk-B6INIXRK.js";import{a}from"./chunk-P37U34EQ.js";import*as i from"@radix-ui/react-radio-group";import{CircleIcon as d}from"lucide-react";import{jsx as o}from"react/jsx-runtime";function p({className:r,...t}){return o(i.Root,{"data-slot":"radio-group",className:e("grid gap-3",r),...t})}a(p,"RadioGroup");function l({className:r,...t}){return o(i.Item,{"data-slot":"radio-group-item",className:e("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),...t,children:o(i.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:o(d,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}a(l,"RadioGroupItem");export{p as a,l as b};
2
+ //# sourceMappingURL=chunk-2KQAMX75.js.map
@@ -1,2 +1,2 @@
1
- import{b as f}from"./chunk-76ZDXC2T.js";import{b as p}from"./chunk-KFYWUBRS.js";import{a as c}from"./chunk-XBEX4G75.js";import{f as a,h as d}from"./chunk-72RFYT5Y.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as y,useRef as b}from"react";import{jsx as l}from"react/jsx-runtime";import{createElement as g}from"react";function B({defaultValues:s,onSubmit:u,components:F}){let{formId:C,createCompanyBag:o}=f(),m=b(s),h=p(o.handleValidation),r=a({resolver:h,defaultValues:s,shouldUnregister:!1,mode:"onBlur"});y(()=>{let n=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==m.current[i])&&(o?.checkFieldUpdates(e),m.current={...e})});return()=>n?.unsubscribe()},[]);let S=t(async n=>{await u(n)},"handleSubmit");return g(d,{...r,key:`form-${o.stepState.currentStep.name}`},l("form",{id:C,onSubmit:r.handleSubmit(S),className:"space-y-4 RemoteFlows__OnboardingForm",children:l(c,{components:F,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}t(B,"CreateCompanyForm");export{B as a};
2
- //# sourceMappingURL=chunk-6ICMMDER.js.map
1
+ import{b as f}from"./chunk-76ZDXC2T.js";import{b as p}from"./chunk-KFYWUBRS.js";import{a as c}from"./chunk-NYE47ACX.js";import{f as a,h as d}from"./chunk-GBBJRWVT.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as y,useRef as b}from"react";import{jsx as l}from"react/jsx-runtime";import{createElement as g}from"react";function B({defaultValues:s,onSubmit:u,components:F}){let{formId:C,createCompanyBag:o}=f(),m=b(s),h=p(o.handleValidation),r=a({resolver:h,defaultValues:s,shouldUnregister:!1,mode:"onBlur"});y(()=>{let n=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==m.current[i])&&(o?.checkFieldUpdates(e),m.current={...e})});return()=>n?.unsubscribe()},[]);let S=t(async n=>{await u(n)},"handleSubmit");return g(d,{...r,key:`form-${o.stepState.currentStep.name}`},l("form",{id:C,onSubmit:r.handleSubmit(S),className:"space-y-4 RemoteFlows__OnboardingForm",children:l(c,{components:F,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}t(B,"CreateCompanyForm");export{B as a};
2
+ //# sourceMappingURL=chunk-2LDLBV46.js.map
@@ -1,2 +1,2 @@
1
- import{c as e}from"./chunk-OSQ6VUDM.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as o,jsxs as t}from"react/jsx-runtime";var a=[{label:"Misconduct",description:"The employee is being dismissed due to unacceptable or improper behavior."},{label:"Performance",description:"When dismissing an employee for poor performance, employers are required by law to do so fairly. This means giving the employee reasonable opportunity to improve their performance prior to termination."},{label:"Workforce reduction",description:"The employee\u2019s position is being made redundant, and a layoff is underway."},{label:"Values",description:"The employee is misaligned with the company\u2019s values."},{label:"Compliance issue",description:"Use this option if the employee violated key policies, processes or procedures. For example, they failed to comply with their employment agreement\u2019s confidentiality clause."},{label:"Incapacity to perform inherent duties",description:"Use this option if the employee is physically or mentally unable to fulfill the work requirements of their role."},{label:"Mutual agreement",description:"Employee and employer made a mutual decision to end the relationship."},{label:"Decision to cancel hiring before the employee started",description:"Use this option only if the employee has not started work yet."},{label:"Job abandonment",description:"The employee has failed to appear for work; the Employer has been unsuccessful in establishing communications with the employee and does not know the employee\u2019s whereabouts."},{label:"Dissatisfaction with EOR service",description:t("span",{children:["We\u2019re sorry to see you go. If there is anything we can do to improve or if there is any remaining feedback you want to give us, please reach out to"," ",o("a",{href:"mailto:help@remote.com",target:"_blank",rel:"noopener noreferrer",children:"help@remote.com"}),"."]})},{label:"End of fixed-term contract",description:"Use this option when the employee fixed-term contract is coming to an end and will not be renewed or extended."}],r=n(()=>t(s,{children:[t("h3",{className:e("RemoteFlows__TerminationReasonsDetailContent__Title"),children:[" ","Why is this important?"]}),o("p",{className:e("RemoteFlows__TerminationReasonsDetailContent__Description"),children:"We're here to help you follow all applicable labor laws when terminating an employee. Here are all the legal reasons for termination. Please read them to make sure you enter the correct reason in the platform."}),o("h4",{className:e("RemoteFlows__TerminationReasonsDetailContent__Subtitle"),children:"Termination Reasons"}),o("ul",{className:e("RemoteFlows__TerminationReasonsDetailContent__List list-disc list-inside"),children:a.map(i=>t("li",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItem"),children:[o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemLabel"),children:i.label}),o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemDescription"),children:i.description})]},i.label))})]}),"TerminationReasonsDetailContent");export{r as a};
2
- //# sourceMappingURL=chunk-W2ZXKNL4.js.map
1
+ import{c as e}from"./chunk-B6INIXRK.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-2OAQQ6X6.js.map
@@ -1,2 +1,2 @@
1
- import{a as F}from"./chunk-OXCSFW3F.js";import{a as u}from"./chunk-XUTYA3JC.js";import{j as p,k as l,l as i,m as a,n as c}from"./chunk-72RFYT5Y.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as $,useState as v}from"react";import{jsx as n,jsxs as C}from"react/jsx-runtime";function L({field:t,fieldState:b,fieldData:o}){let[g,s]=v([]),_=m(e=>{let r=e.map(({value:S})=>S);t.onChange(r),s(e)},"handleChange");$(()=>{t.value&&o.options&&s(t.value.map(e=>o?.options?.find(r=>r.value===e)))},[t.value,o.options]);let y=[...Object.entries(o.$meta?.regions||{}).map(([e,r])=>({value:r,label:e,category:"Regions"})),...Object.entries(o.$meta?.subregions||{}).map(([e,r])=>({value:r,label:e,category:"Subregions"})),...o.options?.map(e=>({...e,value:e.value,label:e.label,category:"Countries"}))||[]];return C(p,{"data-field":t.name,className:`RemoteFlows__CountryField__Item__${t.name}`,children:[n(l,{className:"RemoteFlows__CountryField__Label",children:o.label}),n(i,{children:n(F,{options:y,selected:g,onChange:_})}),o.description&&C(a,{children:[o.description," ",n(u,{helpCenter:o.meta?.helpCenter})]}),b.error&&n(c,{})]})}m(L,"CountryFieldDefault");export{L as a};
2
- //# sourceMappingURL=chunk-UCYB5QK7.js.map
1
+ import{a as F}from"./chunk-XHWPTKEN.js";import{a as u}from"./chunk-Y6WZM53P.js";import{j as p,k as l,l as i,m as a,n as c}from"./chunk-GBBJRWVT.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as $,useState as v}from"react";import{jsx as n,jsxs as C}from"react/jsx-runtime";function L({field:t,fieldState:b,fieldData:o}){let[g,s]=v([]),_=m(e=>{let r=e.map(({value:S})=>S);t.onChange(r),s(e)},"handleChange");$(()=>{t.value&&o.options&&s(t.value.map(e=>o?.options?.find(r=>r.value===e)))},[t.value,o.options]);let y=[...Object.entries(o.$meta?.regions||{}).map(([e,r])=>({value:r,label:e,category:"Regions"})),...Object.entries(o.$meta?.subregions||{}).map(([e,r])=>({value:r,label:e,category:"Subregions"})),...o.options?.map(e=>({...e,value:e.value,label:e.label,category:"Countries"}))||[]];return C(p,{"data-field":t.name,className:`RemoteFlows__CountryField__Item__${t.name}`,children:[n(l,{className:"RemoteFlows__CountryField__Label",children:o.label}),n(i,{children:n(F,{options:y,selected:g,onChange:_})}),o.description&&C(a,{children:[o.description," ",n(u,{helpCenter:o.meta?.helpCenter})]}),b.error&&n(c,{})]})}m(L,"CountryFieldDefault");export{L as a};
2
+ //# sourceMappingURL=chunk-2PUK3H75.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-KMBA73YG.js";import{j as a,k as i,l as s,m as p,n as F}from"./chunk-72RFYT5Y.js";import{c as t}from"./chunk-OSQ6VUDM.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as U}from"react/jsx-runtime";function b({field:o,fieldState:_,fieldData:c}){let{name:l,label:d,description:m,multiple:f,accept:u}=c;return U(a,{"data-field":l,className:`RemoteFlows__FileUpload__Item__${l}`,children:[e(i,{className:"RemoteFlows__FileUpload__Label",children:d}),e(s,{children:e(n,{onChange:o.onChange,multiple:f,className:t("RemoteFlows__FileUpload__Input"),accept:u,files:o.value})}),m&&e("div",{className:"flex items-center justify-between",children:e(p,{className:"RemoteFlows__FileUpload__Description",children:m})}),_.error&&e(F,{className:"RemoteFlows__FileUpload__Error"})]})}r(b,"FileUploadFieldDefault");export{b as a};
2
- //# sourceMappingURL=chunk-BTP3NN3N.js.map
1
+ import{a as n}from"./chunk-UMGX2LKV.js";import{j as a,k as i,l as s,m as p,n as F}from"./chunk-GBBJRWVT.js";import{c as t}from"./chunk-B6INIXRK.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as U}from"react/jsx-runtime";function b({field:o,fieldState:_,fieldData:c}){let{name:l,label:d,description:m,multiple:f,accept:u}=c;return U(a,{"data-field":l,className:`RemoteFlows__FileUpload__Item__${l}`,children:[e(i,{className:"RemoteFlows__FileUpload__Label",children:d}),e(s,{children:e(n,{onChange:o.onChange,multiple:f,className:t("RemoteFlows__FileUpload__Input"),accept:u,files:o.value})}),m&&e("div",{className:"flex items-center justify-between",children:e(p,{className:"RemoteFlows__FileUpload__Description",children:m})}),_.error&&e(F,{className:"RemoteFlows__FileUpload__Error"})]})}r(b,"FileUploadFieldDefault");export{b as a};
2
+ //# sourceMappingURL=chunk-2SQAL5GV.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-RRZ2GPQS.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-UBNSYRKM.js.map
1
+ import{a as t}from"./chunk-YJI7RIP6.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-2VMGSRVH.js.map
@@ -0,0 +1,2 @@
1
+ import{a as s}from"./chunk-T4Q4FZ67.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{m as n}from"./chunk-B6INIXRK.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function b({onSubmit:m,onSuccess:d,onError:c}){let{contractorOnboardingBag:o}=e(),p=t(async(i,f)=>{try{let a=await o.parseFormValues(i);await m?.(a);let r=await o.onSubmit(i);if(r?.data){await d?.(r?.data),o?.next();return}}catch(a){let r=n(a,o.meta?.fields?.basic_information,f);c?.(r)}},"handleSubmit"),l=o.stepState.values?.basic_information||o.initialValues.basic_information;return u(s,{defaultValues:l,onSubmit:p})}t(b,"BasicInformationStep");export{b as a};
2
+ //# sourceMappingURL=chunk-345J2KY6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/ContractorOnboarding/components/BasicInformationStep.tsx"],"sourcesContent":["import { BasicInformationFormPayload } from '@/src/flows/Onboarding/types';\nimport { EmploymentCreationResponse } from '@/src/client';\nimport { $TSFixMe } from '@/src/types/remoteFlows';\nimport { NormalizedFieldError } from '@/src/lib/mutations';\nimport { useContractorOnboardingContext } from '@/src/flows/ContractorOnboarding/context';\nimport { ContractorOnboardingForm } from '@/src/flows/ContractorOnboarding/components/ContractorOnboardingForm';\nimport { handleStepError } from '@/src/lib/utils';\nimport { UseFormReturn } from 'react-hook-form';\n\ntype BasicInformationStepProps = {\n /*\n * The function is called when the form is submitted. It receives the form values as an argument.\n */\n onSubmit?: (payload: BasicInformationFormPayload) => void | Promise<void>;\n /*\n * The function is called when the form submission is successful.\n */\n onSuccess?: (data: EmploymentCreationResponse) => void | Promise<void>;\n /*\n * The function is called when an error occurs during form submission.\n */\n onError?: ({\n error,\n rawError,\n fieldErrors,\n }: {\n error: Error;\n rawError: Record<string, unknown>;\n fieldErrors: NormalizedFieldError[];\n }) => void;\n};\n\nexport function BasicInformationStep({\n onSubmit,\n onSuccess,\n onError,\n}: BasicInformationStepProps) {\n const { contractorOnboardingBag } = useContractorOnboardingContext();\n\n const handleSubmit = async (\n payload: $TSFixMe,\n form: UseFormReturn<$TSFixMe>,\n ) => {\n try {\n const parsedValues =\n await contractorOnboardingBag.parseFormValues(payload);\n await onSubmit?.(parsedValues as BasicInformationFormPayload);\n const response = await contractorOnboardingBag.onSubmit(payload);\n if (response?.data) {\n await onSuccess?.(response?.data as EmploymentCreationResponse);\n contractorOnboardingBag?.next();\n return;\n }\n } catch (error: unknown) {\n const structuredError = handleStepError(\n error,\n contractorOnboardingBag.meta?.fields?.basic_information,\n form,\n );\n onError?.(structuredError);\n }\n };\n\n const initialValues =\n contractorOnboardingBag.stepState.values?.basic_information ||\n contractorOnboardingBag.initialValues.basic_information;\n\n return (\n <ContractorOnboardingForm\n defaultValues={initialValues}\n onSubmit={handleSubmit}\n />\n );\n}\n"],"mappings":"gKAoEI,cAAAA,MAAA,oBApCG,SAASC,EAAqB,CACnC,SAAAC,EACA,UAAAC,EACA,QAAAC,CACF,EAA8B,CAC5B,GAAM,CAAE,wBAAAC,CAAwB,EAAIC,EAA+B,EAE7DC,EAAeC,EAAA,MACnBC,EACAC,IACG,CACH,GAAI,CACF,IAAMC,EACJ,MAAMN,EAAwB,gBAAgBI,CAAO,EACvD,MAAMP,IAAWS,CAA2C,EAC5D,IAAMC,EAAW,MAAMP,EAAwB,SAASI,CAAO,EAC/D,GAAIG,GAAU,KAAM,CAClB,MAAMT,IAAYS,GAAU,IAAkC,EAC9DP,GAAyB,KAAK,EAC9B,MACF,CACF,OAASQ,EAAgB,CACvB,IAAMC,EAAkBC,EACtBF,EACAR,EAAwB,MAAM,QAAQ,kBACtCK,CACF,EACAN,IAAUU,CAAe,CAC3B,CACF,EAtBqB,gBAwBfE,EACJX,EAAwB,UAAU,QAAQ,mBAC1CA,EAAwB,cAAc,kBAExC,OACEL,EAACiB,EAAA,CACC,cAAeD,EACf,SAAUT,EACZ,CAEJ,CAzCgBC,EAAAP,EAAA","names":["jsx","BasicInformationStep","onSubmit","onSuccess","onError","contractorOnboardingBag","useContractorOnboardingContext","handleSubmit","__name","payload","form","parsedValues","response","error","structuredError","handleStepError","initialValues","ContractorOnboardingForm"]}
@@ -1,2 +1,2 @@
1
- import{a as k}from"./chunk-XFD3ULUF.js";import{a as S}from"./chunk-DN6BXTAC.js";import{a as m,b as d,c as h,d as _}from"./chunk-DFJNVGK4.js";import{a as y}from"./chunk-TXSUZLOI.js";import{a as g}from"./chunk-JR6VISHQ.js";import{E as T,Z as b,c as D}from"./chunk-TNQKP2XT.js";import{d as i}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{useQuery as v}from"@tanstack/react-query";var c=n(({employmentId:e,status:t,timeoffType:a,options:o})=>{let{client:r}=i();return v({queryKey:["timeoff",e,t],retry:!1,queryFn:n(()=>b({client:r,headers:{Authorization:""},query:{employment_id:e,status:t,timeoff_type:a}}),"queryFn"),select:n(({data:s})=>o?.select?.(s)??s,"select"),enabled:o?.enabled})},"useTimeOffQuery"),R=n((e,t)=>{let a=y(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),o=y(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return`${a} \u2192 ${o}`},"formatDateRange"),N=n(({employmentId:e,options:t})=>c({employmentId:e,timeoffType:"paid_time_off",options:{enabled:t?.enabled,select:n(a=>({bookedDays:a?.data?.timeoffs?.reduce((o,r)=>o+(r?.timeoff_days?.filter(s=>s.hours!=null&&s.hours>0).length||0),0)||0,timeoffs:a?.data?.timeoffs?.map(o=>{let r=o?.timeoff_days?.filter(s=>s.hours>0).length||0;return{status:o?.status,duration:r,startDate:o?.start_date,endDate:o?.end_date,formattedDate:R(o?.start_date,o?.end_date)}})||[]}),"select")}}),"usePaidTimeoffBreakdownQuery"),A=n(({employmentId:e})=>{let{client:t}=i();return v({queryKey:["timeoff-balance",e],retry:!1,queryFn:n(()=>T({client:t,headers:{Authorization:""},path:{employment_id:e}}),"queryFn"),select:n(({data:a})=>a,"select")})},"useTimeOffLeavePoliciesSummaryQuery");import{useMutation as E,useQuery as Q}from"@tanstack/react-query";function F(e){return Object.entries(e).reduce((t,[a,o])=>({...t,[a]:h(o)}),{})}n(F,"formatTimeoffValues");function q(e){let t=e?.contract_details?.available_pto,a=e?.contract_details?.available_pto_type;return e?.country?.code==="USA"&&a==="unlimited"?{value:t===0?20:t}:a==="unlimited"&&t>0?{value:t}:{value:t}}n(q,"getMinimumStatutoryDays");function U(e,t){let a=0,o=0;return e.forEach(r=>{r.timeoff_days?.forEach(s=>{new Date(s.day)<=t?a+=s.hours||0:o+=s.hours||0})}),{before:a,after:o}}n(U,"getAllTimeoffHoursBeforeDate");var V=n(({employmentId:e,date:t,options:a})=>c({employmentId:e,timeoffType:"paid_time_off",status:"approved",options:{enabled:a?.enabled,select:n(o=>{let{before:r,after:s}=U(o?.data?.timeoffs||[],new Date(t));return{bookedDaysBeforeTermination:d(r),bookedDaysAfterTermination:d(s)}},"select")}}),"useBookedTimeoffBeforeAndAfterTerminationQuery"),me=n(({employmentId:e,proposedTerminationDate:t,employment:a})=>{let{value:o=0}=q(a),r=A({employmentId:e}),s=V({employmentId:e,date:t}),p=r.data?.data?.[0].annual_entitlement.type==="limited"?{days:r.data?.data?.[0].annual_entitlement.days,hours:r.data?.data?.[0].annual_entitlement.hours}:{days:o,hours:0},u={days:r.data?.data?.[0].booked.days||0,hours:r.data?.data?.[0].booked.hours||0},f=r.data?.data?.[0].current_entitlement.type==="limited"?{days:r.data?.data?.[0].current_entitlement.days||0,hours:r.data?.data?.[0].current_entitlement.hours||0}:{days:o,hours:0},l={days:r.data?.data?.[0].used.days||0,hours:r.data?.data?.[0].used.hours||0},B=s.data?.bookedDaysBeforeTermination||{days:0,hours:0},C=s.data?.bookedDaysAfterTermination||{days:0,hours:0},x=m(f.days,f.hours),H=m(l.days,l.hours),P=m(u.days,u.hours),L=x-H-P,O=_(d(L));return{data:{...F({entitledDays:p,bookedDays:u,usedDays:l,approvedDaysBeforeTermination:B,approvedDaysAfterTermination:C,remainingDays:O,currentEntitlementDays:f}),isUnlimitedPto:a?.contract_details?.available_pto_type==="unlimited"},isLoading:r.isLoading||s.isLoading,isError:r.isError||s.isError,error:r.error||s.error}},"useSummaryTimeOffDataQuery"),de=n(()=>{let{client:e}=i();return E({mutationFn:n(t=>D({client:e,body:t}),"mutationFn")})},"useCreateTermination"),ue=n(({formValues:e,jsfModify:t,step:a})=>Q({queryKey:["rmt-flows-termination-schema",a],queryFn:n(()=>S[a]??k,"queryFn"),select:n(({data:o})=>{let r=o?.schema||{};return g(r,e||{},{jsfModify:t})},"select")}),"useTerminationSchema");export{c as a,N as b,A as c,V as d,me as e,de as f,ue as g};
2
- //# sourceMappingURL=chunk-2AFRBV4P.js.map
1
+ import{a as k}from"./chunk-XFD3ULUF.js";import{a as S}from"./chunk-DN6BXTAC.js";import{a as m,b as d,c as h,d as _}from"./chunk-DFJNVGK4.js";import{a as y}from"./chunk-TXSUZLOI.js";import{a as g}from"./chunk-67Y7FHJL.js";import{E as T,Z as b,c as D}from"./chunk-TNQKP2XT.js";import{d as i}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{useQuery as v}from"@tanstack/react-query";var c=n(({employmentId:e,status:t,timeoffType:a,options:o})=>{let{client:r}=i();return v({queryKey:["timeoff",e,t],retry:!1,queryFn:n(()=>b({client:r,headers:{Authorization:""},query:{employment_id:e,status:t,timeoff_type:a}}),"queryFn"),select:n(({data:s})=>o?.select?.(s)??s,"select"),enabled:o?.enabled})},"useTimeOffQuery"),R=n((e,t)=>{let a=y(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),o=y(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return`${a} \u2192 ${o}`},"formatDateRange"),N=n(({employmentId:e,options:t})=>c({employmentId:e,timeoffType:"paid_time_off",options:{enabled:t?.enabled,select:n(a=>({bookedDays:a?.data?.timeoffs?.reduce((o,r)=>o+(r?.timeoff_days?.filter(s=>s.hours!=null&&s.hours>0).length||0),0)||0,timeoffs:a?.data?.timeoffs?.map(o=>{let r=o?.timeoff_days?.filter(s=>s.hours>0).length||0;return{status:o?.status,duration:r,startDate:o?.start_date,endDate:o?.end_date,formattedDate:R(o?.start_date,o?.end_date)}})||[]}),"select")}}),"usePaidTimeoffBreakdownQuery"),A=n(({employmentId:e})=>{let{client:t}=i();return v({queryKey:["timeoff-balance",e],retry:!1,queryFn:n(()=>T({client:t,headers:{Authorization:""},path:{employment_id:e}}),"queryFn"),select:n(({data:a})=>a,"select")})},"useTimeOffLeavePoliciesSummaryQuery");import{useMutation as E,useQuery as Q}from"@tanstack/react-query";function F(e){return Object.entries(e).reduce((t,[a,o])=>({...t,[a]:h(o)}),{})}n(F,"formatTimeoffValues");function q(e){let t=e?.contract_details?.available_pto,a=e?.contract_details?.available_pto_type;return e?.country?.code==="USA"&&a==="unlimited"?{value:t===0?20:t}:a==="unlimited"&&t>0?{value:t}:{value:t}}n(q,"getMinimumStatutoryDays");function U(e,t){let a=0,o=0;return e.forEach(r=>{r.timeoff_days?.forEach(s=>{new Date(s.day)<=t?a+=s.hours||0:o+=s.hours||0})}),{before:a,after:o}}n(U,"getAllTimeoffHoursBeforeDate");var V=n(({employmentId:e,date:t,options:a})=>c({employmentId:e,timeoffType:"paid_time_off",status:"approved",options:{enabled:a?.enabled,select:n(o=>{let{before:r,after:s}=U(o?.data?.timeoffs||[],new Date(t));return{bookedDaysBeforeTermination:d(r),bookedDaysAfterTermination:d(s)}},"select")}}),"useBookedTimeoffBeforeAndAfterTerminationQuery"),me=n(({employmentId:e,proposedTerminationDate:t,employment:a})=>{let{value:o=0}=q(a),r=A({employmentId:e}),s=V({employmentId:e,date:t}),p=r.data?.data?.[0].annual_entitlement.type==="limited"?{days:r.data?.data?.[0].annual_entitlement.days,hours:r.data?.data?.[0].annual_entitlement.hours}:{days:o,hours:0},u={days:r.data?.data?.[0].booked.days||0,hours:r.data?.data?.[0].booked.hours||0},f=r.data?.data?.[0].current_entitlement.type==="limited"?{days:r.data?.data?.[0].current_entitlement.days||0,hours:r.data?.data?.[0].current_entitlement.hours||0}:{days:o,hours:0},l={days:r.data?.data?.[0].used.days||0,hours:r.data?.data?.[0].used.hours||0},B=s.data?.bookedDaysBeforeTermination||{days:0,hours:0},C=s.data?.bookedDaysAfterTermination||{days:0,hours:0},x=m(f.days,f.hours),H=m(l.days,l.hours),P=m(u.days,u.hours),L=x-H-P,O=_(d(L));return{data:{...F({entitledDays:p,bookedDays:u,usedDays:l,approvedDaysBeforeTermination:B,approvedDaysAfterTermination:C,remainingDays:O,currentEntitlementDays:f}),isUnlimitedPto:a?.contract_details?.available_pto_type==="unlimited"},isLoading:r.isLoading||s.isLoading,isError:r.isError||s.isError,error:r.error||s.error}},"useSummaryTimeOffDataQuery"),de=n(()=>{let{client:e}=i();return E({mutationFn:n(t=>D({client:e,body:t}),"mutationFn")})},"useCreateTermination"),ue=n(({formValues:e,jsfModify:t,step:a})=>Q({queryKey:["rmt-flows-termination-schema",a],queryFn:n(()=>S[a]??k,"queryFn"),select:n(({data:o})=>{let r=o?.schema||{};return g(r,e||{},{jsfModify:t})},"select")}),"useTerminationSchema");export{c as a,N as b,A as c,V as d,me as e,de as f,ue as g};
2
+ //# sourceMappingURL=chunk-3AN3QVZK.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-VDAXUUZX.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-KVQGNPKF.js.map
1
+ import{a as n}from"./chunk-GBBGTIMM.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-3EF2TOAW.js.map
@@ -1,2 +1,2 @@
1
- import{a as n,b as i}from"./chunk-RDQJU3HZ.js";import{c as e}from"./chunk-OSQ6VUDM.js";import{a as o}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as t,jsxs as r}from"react/jsx-runtime";var l=["You submit your termination request.","Remote reviews your request along with the employment agreement, local labor laws, and any collective bargaining agreements in place.","A lifecycle specialist contacts you if they need additional details. Sometimes they will request a call.","Depending on the country-specific laws and the terms of the employment agreement, Remote may need to seek additional legal advice. We\u2019ll let you know if there are additional charges before proceeding.","Terms and conditions for the termination are finalized.","You verbally communicate the termination to the employee.","Remote shares termination documents with the employee.","The employee signs the termination documents if required.","Remote processes the final salary and offboards the employee."],f=o(()=>r(s,{children:[t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__Title"),children:"Please read carefully before you continue"}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description"),children:"Please do not inform the employee of the termination. Remote will lead communication with them after you submit this form and they finalize the termination terms."}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description RemoteFlows__TerminationDialogInfoContent__FollowUpDescription"),children:"If you already informed them, that's okay. Remote will ask for the details regarding that communication and they'll take it from there."}),t(i,{className:e("RemoteFlows__TerminationDialogInfoContent__ZendeskTriggerButton text-sm"),zendeskId:n.terminationEmployeeCommunication,children:"Learn more about employee communication"}),t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessTitle"),children:"The termination process"}),t("ul",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessList list-disc list-inside"),children:l.map((a,m)=>t("li",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessListItem"),children:a},m))})]}),"TerminationDialogInfoContent");export{f as a};
2
- //# sourceMappingURL=chunk-UAPT6OBQ.js.map
1
+ import{a as n,b as i}from"./chunk-U2H4CADS.js";import{c as e}from"./chunk-B6INIXRK.js";import{a as o}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as t,jsxs as r}from"react/jsx-runtime";var l=["You submit your termination request.","Remote reviews your request along with the employment agreement, local labor laws, and any collective bargaining agreements in place.","A lifecycle specialist contacts you if they need additional details. Sometimes they will request a call.","Depending on the country-specific laws and the terms of the employment agreement, Remote may need to seek additional legal advice. We\u2019ll let you know if there are additional charges before proceeding.","Terms and conditions for the termination are finalized.","You verbally communicate the termination to the employee.","Remote shares termination documents with the employee.","The employee signs the termination documents if required.","Remote processes the final salary and offboards the employee."],f=o(()=>r(s,{children:[t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__Title"),children:"Please read carefully before you continue"}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description"),children:"Please do not inform the employee of the termination. Remote will lead communication with them after you submit this form and they finalize the termination terms."}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description RemoteFlows__TerminationDialogInfoContent__FollowUpDescription"),children:"If you already informed them, that's okay. Remote will ask for the details regarding that communication and they'll take it from there."}),t(i,{className:e("RemoteFlows__TerminationDialogInfoContent__ZendeskTriggerButton text-sm"),zendeskId:n.terminationEmployeeCommunication,children:"Learn more about employee communication"}),t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessTitle"),children:"The termination process"}),t("ul",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessList list-disc list-inside"),children:l.map((a,m)=>t("li",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessListItem"),children:a},m))})]}),"TerminationDialogInfoContent");export{f as a};
2
+ //# sourceMappingURL=chunk-3H7ADMNB.js.map
@@ -1,2 +1,2 @@
1
- import{c as e}from"./chunk-OSQ6VUDM.js";import{a}from"./chunk-P37U34EQ.js";import{cva as n}from"class-variance-authority";import{jsx as i}from"react/jsx-runtime";var o=n("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-card bg-warning border-warning-border [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function c({className:t,variant:r,...s}){return i("div",{"data-slot":"alert",role:"alert",className:e(o({variant:r}),t),...s})}a(c,"Alert");function g({className:t,...r}){return i("div",{"data-slot":"alert-title",className:e("col-start-2 min-h-4 font-medium tracking-tight",t),...r})}a(g,"AlertTitle");function p({className:t,...r}){return i("div",{"data-slot":"alert-description",className:e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed inline-block",t),...r})}a(p,"AlertDescription");export{c as a,g as b,p as c};
2
- //# sourceMappingURL=chunk-6Y4QJ7WK.js.map
1
+ import{c as e}from"./chunk-B6INIXRK.js";import{a}from"./chunk-P37U34EQ.js";import{cva as n}from"class-variance-authority";import{jsx as i}from"react/jsx-runtime";var o=n("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-card bg-warning border-warning-border [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function c({className:t,variant:r,...s}){return i("div",{"data-slot":"alert",role:"alert",className:e(o({variant:r}),t),...s})}a(c,"Alert");function g({className:t,...r}){return i("div",{"data-slot":"alert-title",className:e("col-start-2 min-h-4 font-medium tracking-tight",t),...r})}a(g,"AlertTitle");function p({className:t,...r}){return i("div",{"data-slot":"alert-description",className:e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed inline-block",t),...r})}a(p,"AlertDescription");export{c as a,g as b,p as c};
2
+ //# sourceMappingURL=chunk-3TVAUVYZ.js.map
@@ -1,2 +1,2 @@
1
- import{a as T,b as E,c as j,d as O,f as V}from"./chunk-YYMGZZTO.js";import{a as $,d as w,e as x,f as B}from"./chunk-UZNF4JV3.js";import{b as F}from"./chunk-XADVV6OP.js";import{a as N}from"./chunk-CLAVZQBC.js";import{a as g,b as k,d as D,e as R,f as H,h as C}from"./chunk-72RFYT5Y.js";import{a as s}from"./chunk-P37U34EQ.js";import*as l from"yup";var P=s((t,a,r)=>{if(t&&"reportValidity"in t){let o=g(r,a);t.setCustomValidity(o&&o.message||""),t.reportValidity()}},"r"),b=s((t,a)=>{for(let r in a.fields){let o=a.fields[r];o&&o.ref&&"reportValidity"in o.ref?P(o.ref,r,t):o&&o.refs&&o.refs.forEach(u=>P(u,r,t))}},"o"),q=s((t,a)=>{a.shouldUseNativeValidation&&b(t,a);let r={};for(let o in t){let u=g(a.fields,o),i=Object.assign(t[o]||{},{ref:u&&u.ref});if(A(a.names||Object.keys(t),o)){let n=Object.assign({},g(r,o));k(n,"root",i),k(r,o,n)}else k(r,o,i)}return r},"s"),A=s((t,a)=>{let r=M(a);return t.some(o=>M(o).match(`^${r}\\.\\d+`))},"i");function M(t){return t.replace(/\]|\[/g,"")}s(M,"n");function L(t,a,r){return r===void 0&&(r={}),function(o,u,i){try{return Promise.resolve((function(n,_){try{var p=(a!=null&&a.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(t[r.mode==="sync"?"validateSync":"validate"](o,Object.assign({abortEarly:!1},a,{context:u}))).then(function(m){return i.shouldUseNativeValidation&&b({},i),{values:r.raw?Object.assign({},o):m,errors:{}}}))}catch(m){return _(m)}return p&&p.then?p.then(void 0,_):p})(0,function(n){if(!n.inner)throw n;return{values:{},errors:q((_=n,p=!i.shouldUseNativeValidation&&i.criteriaMode==="all",(_.inner||[]).reduce(function(m,c){if(m[c.path]||(m[c.path]={message:c.message,type:c.type}),p){var S=m[c.path].types,y=S&&S[c.type];m[c.path]=D(c.path,p,m,c.type,y?[].concat(y,c.message):c.message)}return m},{})),i)};var _,p}))}catch(n){return Promise.reject(n)}}}s(L,"o");import{Fragment as Y,useState as z}from"react";import{jsx as e,jsxs as d}from"react/jsx-runtime";var K=l.object({day:l.string().required(),checked:l.boolean().required(),start_time:l.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:s(t=>t.required("Required"),"then"),otherwise:s(t=>t.optional().nullable(),"otherwise")}),end_time:l.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:s(t=>t.required("Required"),"then"),otherwise:s(t=>t.optional().nullable(),"otherwise")}),hours:l.number().default(0),break_duration_minutes:l.string().default("0")}),G=l.object({schedule:l.array(K)});function J({defaultSchedule:t,onSubmit:a}){let[r,o]=z(!1),u=$.map(f=>{let h=t.find(v=>v.day.toLowerCase()===x(f).toLowerCase()||v.day.toLowerCase()===f.toLowerCase());return h?{...h,day:x(f),checked:!0}:{...t[0],checked:!1,day:x(f)}}),i=H({defaultValues:{schedule:u},resolver:L(G)}),{handleSubmit:n,watch:_,reset:p,control:m,formState:c}=i,{fields:S}=R({name:"schedule",control:m}),y=_("schedule");function I(f){let h=f.schedule.filter(({checked:v})=>v).map(v=>({...v,hours:w(v)}));a(h),o(!1)}s(I,"handleSubmitWorkingHours");function U(){p(),o(!1)}return s(U,"handleCancel"),e("div",{className:"flex items-center justify-between",children:d(T,{open:r,onOpenChange:o,children:[e(E,{asChild:!0,children:e(F,{variant:"link",className:"flex items-center p-0 RemoteFlows__WorkScheduleSelectionForm__Trigger",children:"Edit Schedule"})}),d(j,{className:"max-w-5xl max-h-[90vh] overflow-y-auto px-8 py-4 RemoteFlows__WorkScheduleSelectionForm__Content",children:[e(O,{children:e(V,{className:"RemoteFlows__WorkScheduleSelectionForm__Title",children:"Edit employee working hours"})}),e(C,{...i,children:d("form",{className:"space-y-4 RemoteFlows__WorkScheduleSelectionForm__Form",children:[d("div",{className:"rounded-lg",children:[e("p",{className:"text-gray-600 text-sm mb-4 RemoteFlows__WorkScheduleSelectionForm__Description",children:"The times displayed are in the employee's time zone in the 24-hour format."}),d("div",{className:"grid grid-cols-12 gap-4 text-sm font-medium text-gray-500 uppercase tracking-wide RemoteFlows__WorkScheduleSelectionForm__Header",children:[e("div",{className:"col-span-2"}),e("div",{className:"col-span-3 text-center",children:"START"}),e("div",{className:"col-span-1 text-center"}),e("div",{className:"col-span-3 text-center",children:"END"}),e("div",{className:"col-span-2 text-center",children:"HOURS"})]}),e("div",{className:"RemoteFlows__WorkScheduleSelectionForm__Rows",children:S.map((f,h)=>{let v=y[h],W=w(v);return d(Y,{children:[d("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Hours",children:[e("div",{className:"col-span-2 flex items-center gap-3",children:e(B,{label:f.day,name:`schedule.${h}.checked`})}),e("div",{className:"col-span-3",children:e(N,{name:`schedule.${h}.start_time`,includeErrorMessage:!1})}),e("div",{className:"col-span-1 text-center text-gray-500",children:"to"}),e("div",{className:"col-span-3",children:e(N,{name:`schedule.${h}.end_time`,includeErrorMessage:!1})}),e("div",{className:"col-span-2 text-center text-gray-600",children:isNaN(W)?"-":`${W} hours`})]}),d("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Break",children:[e("div",{className:"col-span-2 text-gray-500",children:"Break"}),e("div",{className:"col-span-2",children:e(N,{name:`schedule.${h}.break_duration_minutes`,includeErrorMessage:!1})}),e("div",{className:"col-span-2 text-gray-500",children:"minutes"}),e("div",{className:"col-span-4"})]})]},f.id)})})]}),Object.keys(c.errors).length>0&&e("p",{className:"text-destructive text-sm mb-0",children:"Invalid time format (HH:mm)"}),d("div",{className:"flex gap-4 pt-4",children:[e(F,{type:"button",className:"reset-button",variant:"outline",onClick:U,children:"Cancel"}),e(F,{type:"button",className:"submit-button",onClick:n(I),children:"Save Schedule"})]})]})})]})]})})}s(J,"WorkScheduleSelectionForm");var he=s(({fieldData:t})=>{let{defaultFormattedValue:a,currentSchedule:r,onSubmit:o}=t,{workHoursSummary:u,breakSummary:i,totalWorkHours:n}=a;return d("div",{className:"flex flex-col gap-3 RemoteFlows__WorkScheduleField",children:[e("p",{className:"text-sm RemoteFlows__WorkScheduleField__Title",children:"Work hours"}),d("div",{className:"flex flex-col gap-1 RemoteFlows__WorkScheduleField__Summary",children:[e("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__WorkHours",dangerouslySetInnerHTML:{__html:u.join(", ")}}),e("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Break",children:i.join()}),d("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Total",children:["Total of ",e("span",{children:n})," hours per week"]}),e(J,{defaultSchedule:r,onSubmit:o})]})]})},"WorkScheduleFieldDefault");export{he as a};
2
- //# sourceMappingURL=chunk-2P4RPBIO.js.map
1
+ import{a as T,b as E,c as j,d as O,f as V}from"./chunk-RTZVAPMC.js";import{a as $,d as w,e as x,f as B}from"./chunk-HODHDXLV.js";import{b as F}from"./chunk-KXARTTYT.js";import{a as N}from"./chunk-4BXUBSZS.js";import{a as g,b as k,d as D,e as R,f as H,h as C}from"./chunk-GBBJRWVT.js";import{a as s}from"./chunk-P37U34EQ.js";import*as l from"yup";var P=s((t,a,r)=>{if(t&&"reportValidity"in t){let o=g(r,a);t.setCustomValidity(o&&o.message||""),t.reportValidity()}},"r"),b=s((t,a)=>{for(let r in a.fields){let o=a.fields[r];o&&o.ref&&"reportValidity"in o.ref?P(o.ref,r,t):o&&o.refs&&o.refs.forEach(u=>P(u,r,t))}},"o"),q=s((t,a)=>{a.shouldUseNativeValidation&&b(t,a);let r={};for(let o in t){let u=g(a.fields,o),i=Object.assign(t[o]||{},{ref:u&&u.ref});if(A(a.names||Object.keys(t),o)){let n=Object.assign({},g(r,o));k(n,"root",i),k(r,o,n)}else k(r,o,i)}return r},"s"),A=s((t,a)=>{let r=M(a);return t.some(o=>M(o).match(`^${r}\\.\\d+`))},"i");function M(t){return t.replace(/\]|\[/g,"")}s(M,"n");function L(t,a,r){return r===void 0&&(r={}),function(o,u,i){try{return Promise.resolve((function(n,_){try{var p=(a!=null&&a.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(t[r.mode==="sync"?"validateSync":"validate"](o,Object.assign({abortEarly:!1},a,{context:u}))).then(function(m){return i.shouldUseNativeValidation&&b({},i),{values:r.raw?Object.assign({},o):m,errors:{}}}))}catch(m){return _(m)}return p&&p.then?p.then(void 0,_):p})(0,function(n){if(!n.inner)throw n;return{values:{},errors:q((_=n,p=!i.shouldUseNativeValidation&&i.criteriaMode==="all",(_.inner||[]).reduce(function(m,c){if(m[c.path]||(m[c.path]={message:c.message,type:c.type}),p){var S=m[c.path].types,y=S&&S[c.type];m[c.path]=D(c.path,p,m,c.type,y?[].concat(y,c.message):c.message)}return m},{})),i)};var _,p}))}catch(n){return Promise.reject(n)}}}s(L,"o");import{Fragment as Y,useState as z}from"react";import{jsx as e,jsxs as d}from"react/jsx-runtime";var K=l.object({day:l.string().required(),checked:l.boolean().required(),start_time:l.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:s(t=>t.required("Required"),"then"),otherwise:s(t=>t.optional().nullable(),"otherwise")}),end_time:l.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:s(t=>t.required("Required"),"then"),otherwise:s(t=>t.optional().nullable(),"otherwise")}),hours:l.number().default(0),break_duration_minutes:l.string().default("0")}),G=l.object({schedule:l.array(K)});function J({defaultSchedule:t,onSubmit:a}){let[r,o]=z(!1),u=$.map(f=>{let h=t.find(v=>v.day.toLowerCase()===x(f).toLowerCase()||v.day.toLowerCase()===f.toLowerCase());return h?{...h,day:x(f),checked:!0}:{...t[0],checked:!1,day:x(f)}}),i=H({defaultValues:{schedule:u},resolver:L(G)}),{handleSubmit:n,watch:_,reset:p,control:m,formState:c}=i,{fields:S}=R({name:"schedule",control:m}),y=_("schedule");function I(f){let h=f.schedule.filter(({checked:v})=>v).map(v=>({...v,hours:w(v)}));a(h),o(!1)}s(I,"handleSubmitWorkingHours");function U(){p(),o(!1)}return s(U,"handleCancel"),e("div",{className:"flex items-center justify-between",children:d(T,{open:r,onOpenChange:o,children:[e(E,{asChild:!0,children:e(F,{variant:"link",className:"flex items-center p-0 RemoteFlows__WorkScheduleSelectionForm__Trigger",children:"Edit Schedule"})}),d(j,{className:"max-w-5xl max-h-[90vh] overflow-y-auto px-8 py-4 RemoteFlows__WorkScheduleSelectionForm__Content",children:[e(O,{children:e(V,{className:"RemoteFlows__WorkScheduleSelectionForm__Title",children:"Edit employee working hours"})}),e(C,{...i,children:d("form",{className:"space-y-4 RemoteFlows__WorkScheduleSelectionForm__Form",children:[d("div",{className:"rounded-lg",children:[e("p",{className:"text-gray-600 text-sm mb-4 RemoteFlows__WorkScheduleSelectionForm__Description",children:"The times displayed are in the employee's time zone in the 24-hour format."}),d("div",{className:"grid grid-cols-12 gap-4 text-sm font-medium text-gray-500 uppercase tracking-wide RemoteFlows__WorkScheduleSelectionForm__Header",children:[e("div",{className:"col-span-2"}),e("div",{className:"col-span-3 text-center",children:"START"}),e("div",{className:"col-span-1 text-center"}),e("div",{className:"col-span-3 text-center",children:"END"}),e("div",{className:"col-span-2 text-center",children:"HOURS"})]}),e("div",{className:"RemoteFlows__WorkScheduleSelectionForm__Rows",children:S.map((f,h)=>{let v=y[h],W=w(v);return d(Y,{children:[d("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Hours",children:[e("div",{className:"col-span-2 flex items-center gap-3",children:e(B,{label:f.day,name:`schedule.${h}.checked`})}),e("div",{className:"col-span-3",children:e(N,{name:`schedule.${h}.start_time`,includeErrorMessage:!1})}),e("div",{className:"col-span-1 text-center text-gray-500",children:"to"}),e("div",{className:"col-span-3",children:e(N,{name:`schedule.${h}.end_time`,includeErrorMessage:!1})}),e("div",{className:"col-span-2 text-center text-gray-600",children:isNaN(W)?"-":`${W} hours`})]}),d("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Break",children:[e("div",{className:"col-span-2 text-gray-500",children:"Break"}),e("div",{className:"col-span-2",children:e(N,{name:`schedule.${h}.break_duration_minutes`,includeErrorMessage:!1})}),e("div",{className:"col-span-2 text-gray-500",children:"minutes"}),e("div",{className:"col-span-4"})]})]},f.id)})})]}),Object.keys(c.errors).length>0&&e("p",{className:"text-destructive text-sm mb-0",children:"Invalid time format (HH:mm)"}),d("div",{className:"flex gap-4 pt-4",children:[e(F,{type:"button",className:"reset-button",variant:"outline",onClick:U,children:"Cancel"}),e(F,{type:"button",className:"submit-button",onClick:n(I),children:"Save Schedule"})]})]})})]})]})})}s(J,"WorkScheduleSelectionForm");var he=s(({fieldData:t})=>{let{defaultFormattedValue:a,currentSchedule:r,onSubmit:o}=t,{workHoursSummary:u,breakSummary:i,totalWorkHours:n}=a;return d("div",{className:"flex flex-col gap-3 RemoteFlows__WorkScheduleField",children:[e("p",{className:"text-sm RemoteFlows__WorkScheduleField__Title",children:"Work hours"}),d("div",{className:"flex flex-col gap-1 RemoteFlows__WorkScheduleField__Summary",children:[e("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__WorkHours",dangerouslySetInnerHTML:{__html:u.join(", ")}}),e("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Break",children:i.join()}),d("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Total",children:["Total of ",e("span",{children:n})," hours per week"]}),e(J,{defaultSchedule:r,onSubmit:o})]})]})},"WorkScheduleFieldDefault");export{he as a};
2
+ //# sourceMappingURL=chunk-427NW7HI.js.map
@@ -1,2 +1,2 @@
1
- import{c as p,i as s}from"./chunk-72RFYT5Y.js";import{b as m}from"./chunk-KQPDXXG3.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function v({name:o,description:a,label:l,type:F,onChange:t,component:x,includeErrorMessage:c=!0,additionalProps:f={},maxLength:u,...T}){let{components:C}=m(),{control:P}=p();return d(s,{control:P,name:o,render:({field:r,fieldState:S})=>{let n=x||C?.text;if(!n)throw new Error(`Text component not found for field ${o}`);let g={name:o,description:a,label:l,type:F,onChange:t,metadata:f,maxLength:u,includeErrorMessage:c,...T};return d(n,{field:{...r,onChange:e(i=>{r.onChange(i),t?.(i)},"onChange")},fieldState:S,fieldData:g})}})}e(v,"TextField");export{v as a};
2
- //# sourceMappingURL=chunk-CLAVZQBC.js.map
1
+ import{c as p,i as s}from"./chunk-GBBJRWVT.js";import{b as m}from"./chunk-KQPDXXG3.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function v({name:o,description:a,label:l,type:F,onChange:t,component:x,includeErrorMessage:c=!0,additionalProps:f={},maxLength:u,...T}){let{components:C}=m(),{control:P}=p();return d(s,{control:P,name:o,render:({field:r,fieldState:S})=>{let n=x||C?.text;if(!n)throw new Error(`Text component not found for field ${o}`);let g={name:o,description:a,label:l,type:F,onChange:t,metadata:f,maxLength:u,includeErrorMessage:c,...T};return d(n,{field:{...r,onChange:e(i=>{r.onChange(i),t?.(i)},"onChange")},fieldState:S,fieldData:g})}})}e(v,"TextField");export{v as a};
2
+ //# sourceMappingURL=chunk-4BXUBSZS.js.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-VHAJRKCI.js";import{j as a,k as n,l as s,m as F,n as _}from"./chunk-72RFYT5Y.js";import{a as l}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as u}from"react/jsx-runtime";function I({field:o,fieldState:p,fieldData:c}){let{name:r,label:t,description:m,maxLength:d,includeErrorMessage:x}=c;return u(a,{"data-field":r,className:`RemoteFlows__TextField__Item__${r}`,children:[t&&e(n,{className:"RemoteFlows__TextField__Label",children:t}),e(s,{children:e(i,{...o,value:o.value??"",onChange:T=>{o.onChange(T)},className:"RemoteFlows__TextField__Input",placeholder:t,maxLength:d})}),m&&e(F,{className:"RemoteFlows__TextField__Description",children:m}),x&&p.error&&e(_,{className:"RemoteFlows__TextField__Error"})]})}l(I,"TextFieldDefault");export{I as a};
2
- //# sourceMappingURL=chunk-EC6ZM3SX.js.map
1
+ import{a as i}from"./chunk-RSXEN3N2.js";import{j as a,k as n,l as s,m as F,n as _}from"./chunk-GBBJRWVT.js";import{a as l}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as u}from"react/jsx-runtime";function I({field:o,fieldState:p,fieldData:c}){let{name:r,label:t,description:m,maxLength:d,includeErrorMessage:x}=c;return u(a,{"data-field":r,className:`RemoteFlows__TextField__Item__${r}`,children:[t&&e(n,{className:"RemoteFlows__TextField__Label",children:t}),e(s,{children:e(i,{...o,value:o.value??"",onChange:T=>{o.onChange(T)},className:"RemoteFlows__TextField__Input",placeholder:t,maxLength:d})}),m&&e(F,{className:"RemoteFlows__TextField__Description",children:m}),x&&p.error&&e(_,{className:"RemoteFlows__TextField__Error"})]})}l(I,"TextFieldDefault");export{I as a};
2
+ //# sourceMappingURL=chunk-4JF36MES.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-VK3Z63G4.js";import{b as i}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:s,onSuccess:c,onError:t}){let{onboardingBag:o}=i(),u=e(async n=>{try{await s?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await c?.(r?.data),o?.next();return}r?.error&&t?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(a,{defaultValues:l,onSubmit:u})}e(y,"SelectCountryStep");export{y as a};
2
- //# sourceMappingURL=chunk-7CTUHB7U.js.map
1
+ import{a}from"./chunk-BQB45DOL.js";import{b as i}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:s,onSuccess:c,onError:t}){let{onboardingBag:o}=i(),u=e(async n=>{try{await s?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await c?.(r?.data),o?.next();return}r?.error&&t?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(a,{defaultValues:l,onSubmit:u})}e(y,"SelectCountryStep");export{y as a};
2
+ //# sourceMappingURL=chunk-4U2FAFX6.js.map
@@ -1,2 +1,2 @@
1
- import{a as d,b as w}from"./chunk-5EDCZGZV.js";import{a as g}from"./chunk-CQDQM2IX.js";import{a as E}from"./chunk-JR6VISHQ.js";import{e as C}from"./chunk-FFVTWWGX.js";import{Q as F,e as _,z as P}from"./chunk-TNQKP2XT.js";import{a as h}from"./chunk-OSQ6VUDM.js";import{a as j}from"./chunk-TSPDJUGG.js";import{d as c}from"./chunk-KQPDXXG3.js";import{a as e}from"./chunk-P37U34EQ.js";import{useMutation as b,useQuery as I}from"@tanstack/react-query";var B=e(({countryCode:n,employment:r,fieldValues:a,options:t})=>{let{client:u}=c(),m=t?.jsonSchemaVersion?.contract_amendments?{json_schema_version:t.jsonSchemaVersion.contract_amendments}:{};return I({queryKey:["contract-amendment-schema"],retry:!1,queryFn:e(async()=>{let o=await _({client:u,headers:{Authorization:""},query:{employment_id:r?.id,country_code:n,...m}});if(o.error||!o.data)throw new Error("Failed to fetch contract amendment schema");return o},"queryFn"),enabled:!!r,select:e(({data:o})=>{let l=o?.data||{};return E(l,a,t)},"select")})},"useContractAmendmentSchemaQuery"),J=e(n=>{let{client:r}=c(),a=n?.jsonSchemaVersion?.contract_amendments?{json_schema_version:n.jsonSchemaVersion.contract_amendments}:{};return b({mutationFn:e(t=>P({client:r,headers:{Authorization:""},body:t,query:{...a}}),"mutationFn")})},"useCreateContractAmendmentMutation"),K=e(n=>{let{client:r}=c(),a=n?.jsonSchemaVersion?.contract_amendments?{json_schema_version:n.jsonSchemaVersion.contract_amendments}:{};return b({mutationFn:e(t=>F({client:r,headers:{Authorization:""},body:t,query:{...a}}),"mutationFn")})},"useAutomatableContractAmendmentMutation"),te=e(({employmentId:n,countryCode:r,options:a})=>{let{fieldValues:t,setFieldValues:u,stepState:m,nextStep:o,previousStep:l}=j(d),{data:i,isLoading:v,isError:q,error:Q}=g({employmentId:n,queryParams:{exclude_files:!0}}),{data:s,isLoading:L,isError:M,error:T}=B({employment:i,countryCode:r,fieldValues:{...m.values?.[m.currentStep.name],...t},options:a}),k=w(i,s?.fields),S=J(a),A=K(a);async function x(p){let f=await C(p,s?.fields||[],{isPartialValidation:!1}),V={employment_id:i?.id,amendment_contract_id:i?.active_contract_id,contract_amendment:{...f}};switch(m.currentStep.name){case d.form.name:{let{mutateAsync:y}=h(A),H=await y(V);return o(),H}case d.confirmation_form.name:{let{mutateAsync:y}=h(S);return y(V)}default:throw new Error("Invalid step state")}}e(x,"onSubmit");async function z(p){if(s){let f=await C(p,s?.fields);return s?.handleValidation(f)}return null}e(z,"handleValidation");function O(){l()}return e(O,"back"),{stepState:m,fields:s?.fields||[],isLoading:v||L,isError:q||M,error:Q||T,isSubmitting:A.isPending||S.isPending,initialValues:k,values:t,handleValidation:z,checkFieldUpdates:u,onSubmit:x,back:O}},"useContractAmendment");export{te as a};
2
- //# sourceMappingURL=chunk-3X4CJEN4.js.map
1
+ import{a as d,b as w}from"./chunk-REYOVGEA.js";import{a as g}from"./chunk-CQDQM2IX.js";import{a as E}from"./chunk-67Y7FHJL.js";import{e as C}from"./chunk-JVGGWBFZ.js";import{Q as F,e as _,z as P}from"./chunk-TNQKP2XT.js";import{a as h}from"./chunk-B6INIXRK.js";import{a as j}from"./chunk-TSPDJUGG.js";import{d as c}from"./chunk-KQPDXXG3.js";import{a as e}from"./chunk-P37U34EQ.js";import{useMutation as b,useQuery as I}from"@tanstack/react-query";var B=e(({countryCode:n,employment:r,fieldValues:a,options:t})=>{let{client:u}=c(),m=t?.jsonSchemaVersion?.contract_amendments?{json_schema_version:t.jsonSchemaVersion.contract_amendments}:{};return I({queryKey:["contract-amendment-schema"],retry:!1,queryFn:e(async()=>{let o=await _({client:u,headers:{Authorization:""},query:{employment_id:r?.id,country_code:n,...m}});if(o.error||!o.data)throw new Error("Failed to fetch contract amendment schema");return o},"queryFn"),enabled:!!r,select:e(({data:o})=>{let l=o?.data||{};return E(l,a,t)},"select")})},"useContractAmendmentSchemaQuery"),J=e(n=>{let{client:r}=c(),a=n?.jsonSchemaVersion?.contract_amendments?{json_schema_version:n.jsonSchemaVersion.contract_amendments}:{};return b({mutationFn:e(t=>P({client:r,headers:{Authorization:""},body:t,query:{...a}}),"mutationFn")})},"useCreateContractAmendmentMutation"),K=e(n=>{let{client:r}=c(),a=n?.jsonSchemaVersion?.contract_amendments?{json_schema_version:n.jsonSchemaVersion.contract_amendments}:{};return b({mutationFn:e(t=>F({client:r,headers:{Authorization:""},body:t,query:{...a}}),"mutationFn")})},"useAutomatableContractAmendmentMutation"),te=e(({employmentId:n,countryCode:r,options:a})=>{let{fieldValues:t,setFieldValues:u,stepState:m,nextStep:o,previousStep:l}=j(d),{data:i,isLoading:v,isError:q,error:Q}=g({employmentId:n,queryParams:{exclude_files:!0}}),{data:s,isLoading:L,isError:M,error:T}=B({employment:i,countryCode:r,fieldValues:{...m.values?.[m.currentStep.name],...t},options:a}),k=w(i,s?.fields),S=J(a),A=K(a);async function x(p){let f=await C(p,s?.fields||[],{isPartialValidation:!1}),V={employment_id:i?.id,amendment_contract_id:i?.active_contract_id,contract_amendment:{...f}};switch(m.currentStep.name){case d.form.name:{let{mutateAsync:y}=h(A),H=await y(V);return o(),H}case d.confirmation_form.name:{let{mutateAsync:y}=h(S);return y(V)}default:throw new Error("Invalid step state")}}e(x,"onSubmit");async function z(p){if(s){let f=await C(p,s?.fields);return s?.handleValidation(f)}return null}e(z,"handleValidation");function O(){l()}return e(O,"back"),{stepState:m,fields:s?.fields||[],isLoading:v||L,isError:q||M,error:Q||T,isSubmitting:A.isPending||S.isPending,initialValues:k,values:t,handleValidation:z,checkFieldUpdates:u,onSubmit:x,back:O}},"useContractAmendment");export{te as a};
2
+ //# sourceMappingURL=chunk-4Z3EMHTE.js.map
@@ -1,2 +1,2 @@
1
- import{b as i,c as m,d as s,e as f}from"./chunk-2AFRBV4P.js";import{a as n}from"./chunk-TXSUZLOI.js";import{a}from"./chunk-P37U34EQ.js";import{useState as O}from"react";var B=a(({proposedTerminationDate:e,employeeName:y,employmentId:o,employment:r,render:d})=>{let[t,u]=O(!1),l=m({employmentId:o}),p=n(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=i({employmentId:o,options:{enabled:t}}),D=s({employmentId:o,date:e}),P=f({employmentId:o,proposedTerminationDate:e,employment:r});return d({leavePoliciesSummaryQuery:l,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:D,formattedProposedTerminationDate:p,employeeName:y,proposedTerminationDate:e,summaryData:P??{data:{entitledDays:"0 days",bookedDays:"0 days",usedDays:"0 days",approvedDaysBeforeTermination:"0 days",approvedDaysAfterTermination:"0 days",remainingDays:"0 days",isUnlimitedPto:!1},isLoading:!1,isError:!1,error:null},employment:r,open:t,onOpenChange:a(()=>{u(T=>!T)},"onOpenChange")})},"PaidTimeOffContainer");export{B as a};
2
- //# sourceMappingURL=chunk-E42PBKYH.js.map
1
+ import{b as i,c as m,d as s,e as f}from"./chunk-3AN3QVZK.js";import{a as n}from"./chunk-TXSUZLOI.js";import{a}from"./chunk-P37U34EQ.js";import{useState as O}from"react";var B=a(({proposedTerminationDate:e,employeeName:y,employmentId:o,employment:r,render:d})=>{let[t,u]=O(!1),l=m({employmentId:o}),p=n(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=i({employmentId:o,options:{enabled:t}}),D=s({employmentId:o,date:e}),P=f({employmentId:o,proposedTerminationDate:e,employment:r});return d({leavePoliciesSummaryQuery:l,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:D,formattedProposedTerminationDate:p,employeeName:y,proposedTerminationDate:e,summaryData:P??{data:{entitledDays:"0 days",bookedDays:"0 days",usedDays:"0 days",approvedDaysBeforeTermination:"0 days",approvedDaysAfterTermination:"0 days",remainingDays:"0 days",isUnlimitedPto:!1},isLoading:!1,isError:!1,error:null},employment:r,open:t,onOpenChange:a(()=>{u(T=>!T)},"onOpenChange")})},"PaidTimeOffContainer");export{B as a};
2
+ //# sourceMappingURL=chunk-55DI7KZU.js.map
@@ -1,2 +1,2 @@
1
- import{b as w}from"./chunk-PGWKJ6FK.js";import{d as v,e as y}from"./chunk-WDV3ECGC.js";import{a as i}from"./chunk-OSQ6VUDM.js";import{b as l}from"./chunk-KQPDXXG3.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as _}from"react/jsx-runtime";function P({onSubmit:f,onSuccess:a,onError:t,render:E,...o}){let{components:R}=l(),{onboardingBag:r,setCreditScore:m}=w(),d=v(),u=y(),{mutateAsync:g}=i(d),{mutateAsync:S}=i(u),c=r.creditRiskStatus==="deposit_required"||r.onboardingReservesStatus==="deposit_required",I=s(async()=>{try{if(await f?.(),c&&r.employmentId&&r.employment?.status&&!r.isEmploymentReadOnly){let e=await S({employment_slug:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"created_awaiting_reserve"}),m?.(n=>({...n,showReserveInvoice:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}else if(r.employmentId){let e=await g({employment_id:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"invited"}),m?.(n=>({...n,showInviteSuccessful:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}}catch(e){t?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit"),b=c&&r.employment?.status&&!r.isEmploymentReadOnly,p=R?.button;if(!p)throw new Error("Button component not found");return _(p,{...o,disabled:d.isPending||u.isPending||o.disabled,onClick:e=>{I(),o.onClick?.(e)},children:E({employmentStatus:b?"created_awaiting_reserve":"invited"})})}s(P,"OnboardingInvite");export{P as a};
2
- //# sourceMappingURL=chunk-XFDD4QPE.js.map
1
+ import{b as w}from"./chunk-PGWKJ6FK.js";import{d as v,e as y}from"./chunk-2K6FAKY5.js";import{a as i}from"./chunk-B6INIXRK.js";import{b as l}from"./chunk-KQPDXXG3.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as _}from"react/jsx-runtime";function P({onSubmit:f,onSuccess:a,onError:t,render:E,...o}){let{components:R}=l(),{onboardingBag:r,setCreditScore:m}=w(),d=v(),u=y(),{mutateAsync:g}=i(d),{mutateAsync:S}=i(u),c=r.creditRiskStatus==="deposit_required"||r.onboardingReservesStatus==="deposit_required",I=s(async()=>{try{if(await f?.(),c&&r.employmentId&&r.employment?.status&&!r.isEmploymentReadOnly){let e=await S({employment_slug:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"created_awaiting_reserve"}),m?.(n=>({...n,showReserveInvoice:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}else if(r.employmentId){let e=await g({employment_id:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"invited"}),m?.(n=>({...n,showInviteSuccessful:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}}catch(e){t?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit"),b=c&&r.employment?.status&&!r.isEmploymentReadOnly,p=R?.button;if(!p)throw new Error("Button component not found");return _(p,{...o,disabled:d.isPending||u.isPending||o.disabled,onClick:e=>{I(),o.onClick?.(e)},children:E({employmentStatus:b?"created_awaiting_reserve":"invited"})})}s(P,"OnboardingInvite");export{P as a};
2
+ //# sourceMappingURL=chunk-5YEAR75O.js.map
@@ -1,2 +1,2 @@
1
- import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-UBNSYRKM.js";import{a as Y}from"./chunk-JFTKMQ73.js";import{a as Q}from"./chunk-RUYVQ6R6.js";import{a as J}from"./chunk-E42PBKYH.js";import{a as H}from"./chunk-IF42CZJH.js";import{a as q,b as B,c as L,d as z}from"./chunk-KVMWDA6O.js";import{f as Z,g as K}from"./chunk-2AFRBV4P.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as S}from"./chunk-OJTYP5W7.js";import{a as N}from"./chunk-CQDQM2IX.js";import{a as E}from"./chunk-JR6VISHQ.js";import{e as _}from"./chunk-FFVTWWGX.js";import{a as u,b as v}from"./chunk-RDQJU3HZ.js";import{q as $}from"./chunk-TNQKP2XT.js";import{a as w,c as D}from"./chunk-OSQ6VUDM.js";import{a as A}from"./chunk-TSPDJUGG.js";import{a as I}from"./chunk-626FTNKA.js";import{d as O}from"./chunk-KQPDXXG3.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=O();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>$({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:u.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:u.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:u.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await _(s,me.fields,{isPartialValidation:!0}):f?await _(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await _(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
2
- //# sourceMappingURL=chunk-BUDKOST6.js.map
1
+ import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-2VMGSRVH.js";import{a as Y}from"./chunk-EIENNK3Y.js";import{a as Q}from"./chunk-T4EHHK6N.js";import{a as J}from"./chunk-55DI7KZU.js";import{a as H}from"./chunk-IF42CZJH.js";import{a as q,b as B,c as L,d as z}from"./chunk-F53HVGYB.js";import{f as Z,g as K}from"./chunk-3AN3QVZK.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as S}from"./chunk-R7LMREDN.js";import{a as N}from"./chunk-CQDQM2IX.js";import{a as E}from"./chunk-67Y7FHJL.js";import{e as _}from"./chunk-JVGGWBFZ.js";import{a as u,b as v}from"./chunk-U2H4CADS.js";import{q as $}from"./chunk-TNQKP2XT.js";import{a as w,c as D}from"./chunk-B6INIXRK.js";import{a as A}from"./chunk-TSPDJUGG.js";import{a as I}from"./chunk-626FTNKA.js";import{d as O}from"./chunk-KQPDXXG3.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=O();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>$({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:u.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:u.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:u.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await _(s,me.fields,{isPartialValidation:!0}):f?await _(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await _(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
2
+ //# sourceMappingURL=chunk-62SF33UR.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-KRJETP7I.js";import{a}from"./chunk-XFDD4QPE.js";import{a as i}from"./chunk-W7YC2IO2.js";import{a as S}from"./chunk-FHYOWPXB.js";import{a as c}from"./chunk-YIMWF5GR.js";import{a as f}from"./chunk-7CTUHB7U.js";import{a as n}from"./chunk-KN3XMDCI.js";import{a as s}from"./chunk-AXMLPGSQ.js";import{a as p}from"./chunk-373A3JYN.js";import{a as d}from"./chunk-JJ7EROQA.js";import{c as t}from"./chunk-O4I5IA24.js";import{a as r}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{useId as P,useState as R}from"react";import{jsx as y}from"react/jsx-runtime";var N=e(({employmentId:g,companyId:l,countryCode:u,type:b="employee",externalId:v,skipSteps:B,initialValues:I,render:O,options:w})=>{let C=P(),o=t({companyId:l,countryCode:u,employmentId:g,type:b,options:w,skipSteps:B,externalId:v,initialValues:I}),[D,h]=R({showReserveInvoice:!1,showInviteSuccessful:!1});return y(r.Provider,{value:{formId:C,onboardingBag:o,creditScore:D,setCreditScore:h},children:O({onboardingBag:o,components:{BasicInformationStep:n,EngagementAgreementDetailsStep:d,ContractDetailsStep:p,BenefitsStep:s,SubmitButton:i,SaveDraftButton:c,BackButton:m,OnboardingInvite:a,SelectCountryStep:f,ReviewStep:S}})})},"OnboardingFlow");export{N as a};
2
- //# sourceMappingURL=chunk-TIFHRVKA.js.map
1
+ import{a as m}from"./chunk-KRJETP7I.js";import{a}from"./chunk-5YEAR75O.js";import{a as i}from"./chunk-W7YC2IO2.js";import{a as S}from"./chunk-FHYOWPXB.js";import{a as c}from"./chunk-YIMWF5GR.js";import{a as f}from"./chunk-4U2FAFX6.js";import{a as n}from"./chunk-6FLHTC6U.js";import{a as s}from"./chunk-B67E2N6C.js";import{a as p}from"./chunk-U5KR7EJG.js";import{a as d}from"./chunk-6WURUPUV.js";import{c as t}from"./chunk-JWLSIR3J.js";import{a as r}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{useId as P,useState as R}from"react";import{jsx as y}from"react/jsx-runtime";var N=e(({employmentId:g,companyId:l,countryCode:u,type:b="employee",externalId:v,skipSteps:B,initialValues:I,render:O,options:w})=>{let C=P(),o=t({companyId:l,countryCode:u,employmentId:g,type:b,options:w,skipSteps:B,externalId:v,initialValues:I}),[D,h]=R({showReserveInvoice:!1,showInviteSuccessful:!1});return y(r.Provider,{value:{formId:C,onboardingBag:o,creditScore:D,setCreditScore:h},children:O({onboardingBag:o,components:{BasicInformationStep:n,EngagementAgreementDetailsStep:d,ContractDetailsStep:p,BenefitsStep:s,SubmitButton:i,SaveDraftButton:c,BackButton:m,OnboardingInvite:a,SelectCountryStep:f,ReviewStep:S}})})},"OnboardingFlow");export{N as a};
2
+ //# sourceMappingURL=chunk-63G7OESO.js.map
@@ -1,2 +1,2 @@
1
- import{c as m}from"./chunk-FFVTWWGX.js";import{b as f}from"./chunk-626FTNKA.js";import{a as n}from"./chunk-P37U34EQ.js";import{createHeadlessForm as F,modify as y}from"@remoteoss/remote-json-schema-form-kit";var O=n((e,s,t)=>{if(t&&t.jsfModify){let{required:l,allOf:r,...o}=t.jsfModify,{schema:i}=y(e,o);e=i,l&&(e.required=[...Array.isArray(i.required)?i.required:[],...l]),r&&(e.allOf=[...Array.isArray(i.allOf)?i.allOf:[],...r])}let d={};s&&(d=f(e.properties||{},"money").reduce((r,o)=>(r[o]=m(s[o]),r),{}));let a=JSON.parse(JSON.stringify({...s,...d}));return{meta:{"x-jsf-fieldsets":e["x-jsf-fieldsets"]},...F(e,{initialValues:a})}},"createHeadlessForm");export{O as a};
2
- //# sourceMappingURL=chunk-JR6VISHQ.js.map
1
+ import{c as m}from"./chunk-JVGGWBFZ.js";import{b as f}from"./chunk-626FTNKA.js";import{a as n}from"./chunk-P37U34EQ.js";import{createHeadlessForm as F,modify as y}from"@remoteoss/remote-json-schema-form-kit";var O=n((e,s,t)=>{if(t&&t.jsfModify){let{required:l,allOf:r,...o}=t.jsfModify,{schema:i}=y(e,o);e=i,l&&(e.required=[...Array.isArray(i.required)?i.required:[],...l]),r&&(e.allOf=[...Array.isArray(i.allOf)?i.allOf:[],...r])}let d={};s&&(d=f(e.properties||{},"money").reduce((r,o)=>(r[o]=m(s[o]),r),{}));let a=JSON.parse(JSON.stringify({...s,...d}));return{meta:{"x-jsf-fieldsets":e["x-jsf-fieldsets"]},...F(e,{initialValues:a})}},"createHeadlessForm");export{O as a};
2
+ //# sourceMappingURL=chunk-67Y7FHJL.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-VK3Z63G4.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{b as t}from"./chunk-OSQ6VUDM.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function b({onSubmit:d,onSuccess:l,onError:n}){let{onboardingBag:r}=s(),f=a(async e=>{try{let i=await r.parseFormValues(e);await d?.(i);let o=await r.onSubmit(e);if(o?.data){await l?.(o?.data),r?.next();return}if(o?.error){let c=t(o?.fieldErrors||[],r.meta?.fields?.basic_information);n?.({error:o?.error,rawError:o?.rawError,fieldErrors:c})}}catch(i){n?.({error:i,rawError:i,fieldErrors:[]})}},"handleSubmit"),p=r.stepState.values?.basic_information||r.initialValues.basic_information;return E(m,{defaultValues:p,onSubmit:f})}a(b,"BasicInformationStep");export{b as a};
2
- //# sourceMappingURL=chunk-KN3XMDCI.js.map
1
+ import{a as m}from"./chunk-BQB45DOL.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{b as t}from"./chunk-B6INIXRK.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function b({onSubmit:d,onSuccess:l,onError:n}){let{onboardingBag:r}=s(),f=a(async e=>{try{let i=await r.parseFormValues(e);await d?.(i);let o=await r.onSubmit(e);if(o?.data){await l?.(o?.data),r?.next();return}if(o?.error){let c=t(o?.fieldErrors||[],r.meta?.fields?.basic_information);n?.({error:o?.error,rawError:o?.rawError,fieldErrors:c})}}catch(i){n?.({error:i,rawError:i,fieldErrors:[]})}},"handleSubmit"),p=r.stepState.values?.basic_information||r.initialValues.basic_information;return E(m,{defaultValues:p,onSubmit:f})}a(b,"BasicInformationStep");export{b as a};
2
+ //# sourceMappingURL=chunk-6FLHTC6U.js.map
@@ -0,0 +1,2 @@
1
+ import{a as s}from"./chunk-T4Q4FZ67.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{m as n}from"./chunk-B6INIXRK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function S({onSubmit:l,onSuccess:u,onError:m}){let{contractorOnboardingBag:i}=a(),d=e(async(t,b)=>{try{let o=await i.parseFormValues(t);await l?.(o);let r=await i.onSubmit(t);if(r?.data){await u?.(r?.data),r?._skipNextStep||i?.next();return}}catch(o){let r=n(o,i.meta?.fields?.eligibility_questionnaire,b);m?.(r)}},"handleSubmit"),p=i.stepState.values?.eligibility_questionnaire||i.initialValues.eligibility_questionnaire;return E(s,{defaultValues:p,onSubmit:d})}e(S,"EligibilityQuestionnaireStep");export{S as a};
2
+ //# sourceMappingURL=chunk-6OJTSD45.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.tsx"],"sourcesContent":["import { $TSFixMe } from '@/src/types/remoteFlows';\nimport { NormalizedFieldError } from '@/src/lib/mutations';\nimport { useContractorOnboardingContext } from '@/src/flows/ContractorOnboarding/context';\nimport { ContractorOnboardingForm } from '@/src/flows/ContractorOnboarding/components/ContractorOnboardingForm';\nimport { handleStepError } from '@/src/lib/utils';\nimport {\n EligibilityQuestionnaireFormPayload,\n EligibilityQuestionnaireResponse,\n} from '@/src/flows/ContractorOnboarding/types';\nimport { UseFormReturn } from 'react-hook-form';\n\ntype EligibilityQuestionnaireStepProps = {\n /*\n * The function is called when the form is submitted. It receives the form values as an argument.\n */\n onSubmit?: (\n payload: EligibilityQuestionnaireFormPayload,\n ) => void | Promise<void>;\n /*\n * The function is called when the form submission is successful.\n */\n onSuccess?: (data: EligibilityQuestionnaireResponse) => void | Promise<void>;\n /*\n * The function is called when an error occurs during form submission.\n */\n onError?: ({\n error,\n rawError,\n fieldErrors,\n }: {\n error: Error;\n rawError: Record<string, unknown>;\n fieldErrors: NormalizedFieldError[];\n }) => void;\n};\n\nexport function EligibilityQuestionnaireStep({\n onSubmit,\n onSuccess,\n onError,\n}: EligibilityQuestionnaireStepProps) {\n const { contractorOnboardingBag } = useContractorOnboardingContext();\n\n const handleSubmit = async (\n payload: $TSFixMe,\n form: UseFormReturn<$TSFixMe>,\n ) => {\n try {\n const parsedValues =\n await contractorOnboardingBag.parseFormValues(payload);\n await onSubmit?.(parsedValues as EligibilityQuestionnaireFormPayload);\n const response = await contractorOnboardingBag.onSubmit(payload);\n\n if (response?.data) {\n await onSuccess?.(response?.data as EligibilityQuestionnaireResponse);\n if (!(response as $TSFixMe)?._skipNextStep) {\n contractorOnboardingBag?.next();\n }\n return;\n }\n } catch (error: unknown) {\n const structuredError = handleStepError(\n error,\n contractorOnboardingBag.meta?.fields?.eligibility_questionnaire,\n form,\n );\n onError?.(structuredError);\n }\n };\n\n const initialValues =\n contractorOnboardingBag.stepState.values?.eligibility_questionnaire ||\n contractorOnboardingBag.initialValues.eligibility_questionnaire;\n\n return (\n <ContractorOnboardingForm\n defaultValues={initialValues}\n onSubmit={handleSubmit}\n />\n );\n}\n"],"mappings":"gKA2EI,cAAAA,MAAA,oBAvCG,SAASC,EAA6B,CAC3C,SAAAC,EACA,UAAAC,EACA,QAAAC,CACF,EAAsC,CACpC,GAAM,CAAE,wBAAAC,CAAwB,EAAIC,EAA+B,EAE7DC,EAAeC,EAAA,MACnBC,EACAC,IACG,CACH,GAAI,CACF,IAAMC,EACJ,MAAMN,EAAwB,gBAAgBI,CAAO,EACvD,MAAMP,IAAWS,CAAmD,EACpE,IAAMC,EAAW,MAAMP,EAAwB,SAASI,CAAO,EAE/D,GAAIG,GAAU,KAAM,CAClB,MAAMT,IAAYS,GAAU,IAAwC,EAC9DA,GAAuB,eAC3BP,GAAyB,KAAK,EAEhC,MACF,CACF,OAASQ,EAAgB,CACvB,IAAMC,EAAkBC,EACtBF,EACAR,EAAwB,MAAM,QAAQ,0BACtCK,CACF,EACAN,IAAUU,CAAe,CAC3B,CACF,EAzBqB,gBA2BfE,EACJX,EAAwB,UAAU,QAAQ,2BAC1CA,EAAwB,cAAc,0BAExC,OACEL,EAACiB,EAAA,CACC,cAAeD,EACf,SAAUT,EACZ,CAEJ,CA5CgBC,EAAAP,EAAA","names":["jsx","EligibilityQuestionnaireStep","onSubmit","onSuccess","onError","contractorOnboardingBag","useContractorOnboardingContext","handleSubmit","__name","payload","form","parsedValues","response","error","structuredError","handleStepError","initialValues","ContractorOnboardingForm"]}