@remoteoss/remote-flows 1.15.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (454) hide show
  1. package/dist/ButtonDefault-6LBHWUQH.js +2 -0
  2. package/dist/CheckboxFieldDefault-X4DYVQCE.js +2 -0
  3. package/dist/CountryFieldDefault-JZDE75HS.js +2 -0
  4. package/dist/DatePickerFieldDefault-LJV4QSEP.js +2 -0
  5. package/dist/DrawerDefault-FLNSDSMB.js +2 -0
  6. package/dist/EmailFieldDefault-T6HHE5RL.js +2 -0
  7. package/dist/FieldsetToggleButtonDefault-MXBQJ55Q.js +2 -0
  8. package/dist/FileUploadFieldDefault-5NW3ZFXD.js +2 -0
  9. package/dist/MultiSelectFieldDefault-OQ6SNNBI.js +2 -0
  10. package/dist/NumberFieldDefault-IVUTWJS5.js +2 -0
  11. package/dist/PDFPreviewDefault-RJNE7QSF.js +2 -0
  12. package/dist/RadioGroupFieldDefault-CXY33ONT.js +2 -0
  13. package/dist/SelectFieldDefault-66GGFDX3.js +2 -0
  14. package/dist/StatementDefault-DORMITL7.js +2 -0
  15. package/dist/TableFieldDefault-URJVK7YR.js +2 -0
  16. package/dist/TextAreaFieldDefault-5H34RRBA.js +2 -0
  17. package/dist/TextFieldDefault-VHIF2KLF.js +2 -0
  18. package/dist/WorkScheduleFieldDefault-T7IP52VU.js +2 -0
  19. package/dist/ZendeskDrawerDefault-YSBMA2ZH.js +2 -0
  20. package/dist/chunk-246D2A55.js +2 -0
  21. package/dist/{chunk-47YUPC2L.js.map → chunk-246D2A55.js.map} +1 -1
  22. package/dist/chunk-2NDVHQRP.js +2 -0
  23. package/dist/chunk-2NDVHQRP.js.map +1 -0
  24. package/dist/{chunk-D6KO5LX6.js → chunk-37RMY44V.js} +2 -2
  25. package/dist/{chunk-D5YMIXK5.js → chunk-3B6XXK5H.js} +2 -2
  26. package/dist/{chunk-AFJIZDZG.js → chunk-3BBQDNZD.js} +2 -2
  27. package/dist/{chunk-CD6F3H7B.js → chunk-3DMWQJ5W.js} +2 -2
  28. package/dist/{chunk-UXHMIIOB.js → chunk-44RIEWXA.js} +2 -2
  29. package/dist/{chunk-AB3RAEMM.js → chunk-4EMAROPQ.js} +2 -2
  30. package/dist/{chunk-3ACL4IFO.js → chunk-4N4MQECC.js} +2 -2
  31. package/dist/{chunk-2ZS5F6C7.js → chunk-4UO7KLRK.js} +2 -2
  32. package/dist/{chunk-BIDZO7XH.js → chunk-62O3CKKH.js} +2 -2
  33. package/dist/{chunk-ZIXR3VSB.js → chunk-6AAV34CT.js} +2 -2
  34. package/dist/chunk-7ENB7H4E.js +6 -0
  35. package/dist/{chunk-KJQN6GHW.js.map → chunk-7ENB7H4E.js.map} +1 -1
  36. package/dist/{chunk-ZPDZ6V5R.js → chunk-7G5JSUZU.js} +2 -2
  37. package/dist/{chunk-SZVBNL6O.js → chunk-7PWZAW7M.js} +2 -2
  38. package/dist/{chunk-T7CGGZOK.js → chunk-7RP5F62S.js} +2 -2
  39. package/dist/chunk-7WGZGAQY.js +2 -0
  40. package/dist/chunk-7WGZGAQY.js.map +1 -0
  41. package/dist/{chunk-XO5VURZY.js → chunk-A232PIG7.js} +2 -2
  42. package/dist/{chunk-JXXZH6KH.js → chunk-A7CLJBJI.js} +2 -2
  43. package/dist/{chunk-FI2MVRZR.js → chunk-AJCKNHZB.js} +2 -2
  44. package/dist/{chunk-VOUP5SMR.js → chunk-AJIDQALB.js} +2 -2
  45. package/dist/{chunk-UXP2IITO.js → chunk-ALVZNFB7.js} +2 -2
  46. package/dist/{chunk-CQ2EF32E.js → chunk-AW7JELYX.js} +2 -2
  47. package/dist/{chunk-OCTMRR2C.js → chunk-B66V5QEC.js} +2 -2
  48. package/dist/{chunk-DI2QNZ2O.js → chunk-B7EJ2OAA.js} +2 -2
  49. package/dist/{chunk-HLAKUOQB.js → chunk-BG66XH5L.js} +2 -2
  50. package/dist/{chunk-NOY2YNXO.js → chunk-BGRX3DBF.js} +2 -2
  51. package/dist/{chunk-I7JUAYNN.js → chunk-BVFQ6LFD.js} +2 -2
  52. package/dist/{chunk-RM7W6QA7.js → chunk-C6KWUSCU.js} +2 -2
  53. package/dist/{chunk-MTOXXQYK.js → chunk-CARPUKT7.js} +2 -2
  54. package/dist/{chunk-7TOCURKO.js → chunk-DFAY4TWC.js} +2 -2
  55. package/dist/{chunk-O5ENJKI6.js → chunk-DNDYXEZ6.js} +2 -2
  56. package/dist/{chunk-46QJ44CZ.js → chunk-DXIJUMLU.js} +2 -2
  57. package/dist/{chunk-DI3XZUMY.js → chunk-E2LBPO5Z.js} +2 -2
  58. package/dist/{chunk-RFMIAO6J.js → chunk-EDLQ3JNY.js} +2 -2
  59. package/dist/{chunk-TZCNONDA.js → chunk-EHD2YB5F.js} +2 -2
  60. package/dist/{chunk-GLKITZNI.js → chunk-ERSP6CZ3.js} +2 -2
  61. package/dist/{chunk-Z4STVEJE.js → chunk-EWL6BSEP.js} +2 -2
  62. package/dist/{chunk-AJ7L3ZO3.js → chunk-FJVQQ4XB.js} +2 -2
  63. package/dist/{chunk-YA2G4A3K.js → chunk-FRCFJ64I.js} +2 -2
  64. package/dist/{chunk-H463PCBN.js → chunk-FSK2DR6Z.js} +2 -2
  65. package/dist/{chunk-5R66NDTQ.js → chunk-FUGPVPYX.js} +2 -2
  66. package/dist/{chunk-TGLB5MA2.js → chunk-G7EVUAYE.js} +2 -2
  67. package/dist/{chunk-ZSJ6YADQ.js → chunk-H2JFQGQJ.js} +2 -2
  68. package/dist/{chunk-HU453KWI.js → chunk-H3BUOBWO.js} +2 -2
  69. package/dist/{chunk-MCGUHRQL.js → chunk-HKNK5Z6N.js} +2 -2
  70. package/dist/{chunk-5F7FMTGE.js → chunk-HOR3KPOZ.js} +2 -2
  71. package/dist/chunk-HQAHUE5P.js +2 -0
  72. package/dist/chunk-HQAHUE5P.js.map +1 -0
  73. package/dist/{chunk-WLMHGJWB.js → chunk-HUZBKPGP.js} +2 -2
  74. package/dist/chunk-HYYILYKU.js +2 -0
  75. package/dist/chunk-HYYILYKU.js.map +1 -0
  76. package/dist/{chunk-7SVSJ7NG.js → chunk-I3TP6JKM.js} +2 -2
  77. package/dist/{chunk-D67Z4NEP.js → chunk-IGLKMXWJ.js} +2 -2
  78. package/dist/{chunk-IHVEK72X.js → chunk-IZGSVS3I.js} +2 -2
  79. package/dist/{chunk-ZKS7DJDT.js → chunk-J2BTEUAM.js} +2 -2
  80. package/dist/{chunk-PQP3KZ7P.js → chunk-JGJTFYHN.js} +2 -2
  81. package/dist/{chunk-KUTIJABX.js → chunk-JI4CYPLW.js} +2 -2
  82. package/dist/{chunk-OV7TLEE6.js → chunk-KQKH3H6S.js} +2 -2
  83. package/dist/{chunk-6VQEAU6A.js → chunk-KRSUSMJK.js} +2 -2
  84. package/dist/{chunk-FBE7F5HU.js → chunk-L3LOATSG.js} +2 -2
  85. package/dist/{chunk-3PVZEAGI.js → chunk-L5DII4MV.js} +2 -2
  86. package/dist/{chunk-D36BZQTP.js → chunk-LVXV3GHT.js} +2 -2
  87. package/dist/{chunk-6DRAZSGG.js → chunk-MHAY555P.js} +2 -2
  88. package/dist/{chunk-37RBGAMM.js → chunk-MLVB5MYU.js} +2 -2
  89. package/dist/{chunk-CU3WQ2KN.js → chunk-MSBCYMSH.js} +2 -2
  90. package/dist/{chunk-NZ64KNDV.js → chunk-NAH5PAUK.js} +2 -2
  91. package/dist/{chunk-2DCJODMR.js → chunk-NEWXVHFX.js} +2 -2
  92. package/dist/{chunk-XLTZ7SN3.js → chunk-OENTT2KT.js} +2 -2
  93. package/dist/{chunk-S63QGDMR.js → chunk-OEXY56S2.js} +2 -2
  94. package/dist/{chunk-FKYEST54.js → chunk-PHPCCABU.js} +2 -2
  95. package/dist/{chunk-AS4ND5IO.js → chunk-PKK2EEXH.js} +2 -2
  96. package/dist/{chunk-HMMFY4PV.js → chunk-Q73675NI.js} +2 -2
  97. package/dist/chunk-QECFSTI4.js +2 -0
  98. package/dist/chunk-QECFSTI4.js.map +1 -0
  99. package/dist/{chunk-M4BR3FKN.js → chunk-R7BHA5RA.js} +2 -2
  100. package/dist/{chunk-IUCFOQAD.js → chunk-RAH453TV.js} +2 -2
  101. package/dist/{chunk-4YPJKEHT.js → chunk-RJY6AEJB.js} +2 -2
  102. package/dist/chunk-SLD227LM.js +2 -0
  103. package/dist/chunk-SLD227LM.js.map +1 -0
  104. package/dist/{chunk-VSYION5R.js → chunk-SLLDKJ7K.js} +2 -2
  105. package/dist/{chunk-JEULZR34.js → chunk-SNBAM7SA.js} +2 -2
  106. package/dist/{chunk-ZPG6GRAX.js → chunk-SNECOPBD.js} +2 -2
  107. package/dist/{chunk-BDMCADQ6.js → chunk-SS2FAFUZ.js} +2 -2
  108. package/dist/{chunk-JJEFWMLY.js → chunk-TFSRZOMP.js} +2 -2
  109. package/dist/{chunk-W5EXVAEO.js → chunk-TNN3W5TU.js} +2 -2
  110. package/dist/{chunk-D5NBOIPS.js → chunk-TOQPDTGG.js} +2 -2
  111. package/dist/{chunk-HN7ZP5AX.js → chunk-TPGN6QTL.js} +2 -2
  112. package/dist/{chunk-OJ3HJ7QL.js → chunk-TQXCLXWH.js} +2 -2
  113. package/dist/{chunk-RQRODRCR.js → chunk-TRBEYNRN.js} +2 -2
  114. package/dist/{chunk-MUJT3F2Q.js → chunk-TVIUQXLE.js} +2 -2
  115. package/dist/{chunk-OK3CYSHV.js → chunk-TXQWBDNF.js} +2 -2
  116. package/dist/chunk-UB6PYKNX.js +2 -0
  117. package/dist/chunk-UB6PYKNX.js.map +1 -0
  118. package/dist/{chunk-4ZQ7NOAL.js → chunk-ULP5B6DG.js} +2 -2
  119. package/dist/{chunk-OPWMRKZP.js → chunk-UMVA4SIV.js} +2 -2
  120. package/dist/{chunk-RNXUKKPF.js → chunk-UMVMNUPH.js} +2 -2
  121. package/dist/{chunk-5TBUDUEB.js → chunk-VBQVXR4U.js} +2 -2
  122. package/dist/{chunk-3PIJOIYR.js → chunk-VIGKOVHP.js} +2 -2
  123. package/dist/{chunk-3PIJOIYR.js.map → chunk-VIGKOVHP.js.map} +1 -1
  124. package/dist/{chunk-W2PJUNWX.js → chunk-VLSOHNT2.js} +2 -2
  125. package/dist/{chunk-PS5T7URZ.js → chunk-W4ECFBIA.js} +2 -2
  126. package/dist/{chunk-LWGNRGU3.js → chunk-WD2JGIDK.js} +2 -2
  127. package/dist/{chunk-BC4UT7KC.js → chunk-WEAO46EO.js} +2 -2
  128. package/dist/{chunk-C36VO7DO.js → chunk-WEOIHTBU.js} +2 -2
  129. package/dist/{chunk-RKS3FX3C.js → chunk-WO54IG4S.js} +2 -2
  130. package/dist/{chunk-2J4XRENJ.js → chunk-XHAJ544L.js} +2 -2
  131. package/dist/{chunk-DCB2H2SG.js → chunk-XNAFFHZH.js} +2 -2
  132. package/dist/{chunk-KCTY6YAP.js → chunk-XU3B7N3C.js} +2 -2
  133. package/dist/{chunk-A37NW25N.js → chunk-YHROBX2M.js} +2 -2
  134. package/dist/{chunk-LDWPRPN4.js → chunk-YPUP5LNV.js} +2 -2
  135. package/dist/{chunk-I2ED6EUG.js → chunk-YWZHBXEI.js} +2 -2
  136. package/dist/{chunk-VGIG5OUD.js → chunk-Z3EAYQ5D.js} +2 -2
  137. package/dist/{chunk-5GAFQRDA.js → chunk-ZAFGVOU5.js} +2 -2
  138. package/dist/{chunk-EPLPD54O.js → chunk-ZWIH53GL.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/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
  155. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  156. package/dist/flows/ContractorOnboarding/api.d.ts +9 -4
  157. package/dist/flows/ContractorOnboarding/api.js +1 -1
  158. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  159. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  160. package/dist/flows/ContractorOnboarding/components/ChooseAlternativePlanStep.d.ts +3 -3
  161. package/dist/flows/ContractorOnboarding/components/ChooseAlternativePlanStep.js +1 -1
  162. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
  163. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  164. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  165. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  166. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
  167. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
  168. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  169. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
  170. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  171. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -5
  172. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  173. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  174. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  175. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
  176. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  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 +5 -5
  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 +5 -4
  189. package/dist/flows/ContractorOnboarding/utils.js +1 -1
  190. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  191. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  192. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  193. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  194. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  195. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  196. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
  197. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  198. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
  199. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
  200. package/dist/flows/CostCalculator/api.d.ts +2 -2
  201. package/dist/flows/CostCalculator/api.js +1 -1
  202. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  203. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  204. package/dist/flows/CostCalculator/context.d.ts +3 -3
  205. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  206. package/dist/flows/CostCalculator/hooks.js +1 -1
  207. package/dist/flows/CostCalculator/index.d.ts +3 -3
  208. package/dist/flows/CostCalculator/index.js +1 -1
  209. package/dist/flows/CostCalculator/types.d.ts +2 -2
  210. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  211. package/dist/flows/CostCalculator/utils.js +1 -1
  212. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  213. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  214. package/dist/flows/CreateCompany/api.d.ts +2 -2
  215. package/dist/flows/CreateCompany/api.js +1 -1
  216. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  217. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  218. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  219. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  220. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  221. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  222. package/dist/flows/CreateCompany/context.d.ts +4 -4
  223. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  224. package/dist/flows/CreateCompany/hooks.js +1 -1
  225. package/dist/flows/CreateCompany/index.d.ts +4 -4
  226. package/dist/flows/CreateCompany/index.js +1 -1
  227. package/dist/flows/CreateCompany/types.d.ts +4 -4
  228. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  229. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  230. package/dist/flows/Onboarding/api.d.ts +4 -4
  231. package/dist/flows/Onboarding/api.js +1 -1
  232. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  233. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  234. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  235. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  236. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  237. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  238. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  239. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  240. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  241. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  242. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  243. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  244. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  245. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  246. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  247. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  248. package/dist/flows/Onboarding/context.d.ts +4 -4
  249. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  250. package/dist/flows/Onboarding/hooks.js +1 -1
  251. package/dist/flows/Onboarding/index.d.ts +4 -4
  252. package/dist/flows/Onboarding/index.js +1 -1
  253. package/dist/flows/Onboarding/types.d.ts +4 -4
  254. package/dist/flows/Onboarding/utils.d.ts +4 -4
  255. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  256. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  257. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  258. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  259. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  260. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  261. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  262. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  263. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  264. package/dist/flows/Termination/TerminationFlow.js +1 -1
  265. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  266. package/dist/flows/Termination/TerminationForm.js +1 -1
  267. package/dist/flows/Termination/api.d.ts +5 -5
  268. package/dist/flows/Termination/api.js +1 -1
  269. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
  270. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  271. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  272. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  273. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  274. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  275. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  276. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  277. package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
  278. package/dist/flows/Termination/context.d.ts +4 -4
  279. package/dist/flows/Termination/hooks.d.ts +4 -4
  280. package/dist/flows/Termination/hooks.js +1 -1
  281. package/dist/flows/Termination/index.d.ts +6 -6
  282. package/dist/flows/Termination/index.js +1 -1
  283. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  284. package/dist/flows/Termination/types.d.ts +4 -4
  285. package/dist/flows/Termination/utils.d.ts +4 -4
  286. package/dist/flows/Termination/utils.js +1 -1
  287. package/dist/flows/types.d.ts +2 -2
  288. package/dist/index.d.ts +11 -11
  289. package/dist/index.js +2 -2
  290. package/dist/internals.d.ts +3 -3
  291. package/dist/internals.js +1 -1
  292. package/dist/{mutations-B8OzuyhA.d.ts → mutations-DfpgjZty.d.ts} +1 -1
  293. package/dist/{remoteFlows-Bphgh2nl.d.ts → remoteFlows-PN8ksydr.d.ts} +1 -1
  294. package/dist/{types-Dcg5CIEH.d.ts → types-BK2JZJKy.d.ts} +3 -3
  295. package/dist/{types-Bs66Ma28.d.ts → types-BOd-0F3b.d.ts} +3 -3
  296. package/dist/{types-Jy-_3Y7m.d.ts → types-BxoBKn3U.d.ts} +1 -1
  297. package/dist/{types-Dr-apmY1.d.ts → types-D9-E_Ywz.d.ts} +4 -4
  298. package/dist/{types-Ck-iVGL_.d.ts → types-kzU5HUpO.d.ts} +2 -2
  299. package/dist/{types.gen-Yvu8ksE5.d.ts → types.gen-COTll5I0.d.ts} +1 -1
  300. package/dist/{utils-C8T9BiQ3.d.ts → utils-CfntV90o.d.ts} +1 -1
  301. package/package.json +1 -1
  302. package/dist/ButtonDefault-C5BX67YU.js +0 -2
  303. package/dist/CheckboxFieldDefault-HEIDOSI7.js +0 -2
  304. package/dist/CountryFieldDefault-DJ7VD267.js +0 -2
  305. package/dist/DatePickerFieldDefault-ZWLN5P55.js +0 -2
  306. package/dist/DrawerDefault-I7PMYMPK.js +0 -2
  307. package/dist/EmailFieldDefault-T7YHR6EN.js +0 -2
  308. package/dist/FieldsetToggleButtonDefault-4JT4HGZ5.js +0 -2
  309. package/dist/FileUploadFieldDefault-66JYQDRY.js +0 -2
  310. package/dist/MultiSelectFieldDefault-ZECWDTTO.js +0 -2
  311. package/dist/NumberFieldDefault-IOL6KD5M.js +0 -2
  312. package/dist/PDFPreviewDefault-LVWCRQ6A.js +0 -2
  313. package/dist/RadioGroupFieldDefault-7SVQ7ZQQ.js +0 -2
  314. package/dist/SelectFieldDefault-HYT2DRK4.js +0 -2
  315. package/dist/StatementDefault-HUOZEIEC.js +0 -2
  316. package/dist/TableFieldDefault-OACG7RGJ.js +0 -2
  317. package/dist/TextAreaFieldDefault-KCPQWVZX.js +0 -2
  318. package/dist/TextFieldDefault-MUGUO7GT.js +0 -2
  319. package/dist/WorkScheduleFieldDefault-CHW2ODQK.js +0 -2
  320. package/dist/ZendeskDrawerDefault-NYESVAZM.js +0 -2
  321. package/dist/chunk-3FCX7SWN.js +0 -2
  322. package/dist/chunk-3FCX7SWN.js.map +0 -1
  323. package/dist/chunk-3XG2MGD3.js +0 -2
  324. package/dist/chunk-3XG2MGD3.js.map +0 -1
  325. package/dist/chunk-47YUPC2L.js +0 -2
  326. package/dist/chunk-4SGUDT5K.js +0 -2
  327. package/dist/chunk-4SGUDT5K.js.map +0 -1
  328. package/dist/chunk-JITSAYF7.js +0 -2
  329. package/dist/chunk-JITSAYF7.js.map +0 -1
  330. package/dist/chunk-KJQN6GHW.js +0 -6
  331. package/dist/chunk-QORZCJSR.js +0 -2
  332. package/dist/chunk-QORZCJSR.js.map +0 -1
  333. package/dist/chunk-STEDOWHX.js +0 -2
  334. package/dist/chunk-STEDOWHX.js.map +0 -1
  335. package/dist/chunk-VLKG3SNS.js +0 -2
  336. package/dist/chunk-VLKG3SNS.js.map +0 -1
  337. /package/dist/{ButtonDefault-C5BX67YU.js.map → ButtonDefault-6LBHWUQH.js.map} +0 -0
  338. /package/dist/{CheckboxFieldDefault-HEIDOSI7.js.map → CheckboxFieldDefault-X4DYVQCE.js.map} +0 -0
  339. /package/dist/{CountryFieldDefault-DJ7VD267.js.map → CountryFieldDefault-JZDE75HS.js.map} +0 -0
  340. /package/dist/{DatePickerFieldDefault-ZWLN5P55.js.map → DatePickerFieldDefault-LJV4QSEP.js.map} +0 -0
  341. /package/dist/{DrawerDefault-I7PMYMPK.js.map → DrawerDefault-FLNSDSMB.js.map} +0 -0
  342. /package/dist/{EmailFieldDefault-T7YHR6EN.js.map → EmailFieldDefault-T6HHE5RL.js.map} +0 -0
  343. /package/dist/{FieldsetToggleButtonDefault-4JT4HGZ5.js.map → FieldsetToggleButtonDefault-MXBQJ55Q.js.map} +0 -0
  344. /package/dist/{FileUploadFieldDefault-66JYQDRY.js.map → FileUploadFieldDefault-5NW3ZFXD.js.map} +0 -0
  345. /package/dist/{MultiSelectFieldDefault-ZECWDTTO.js.map → MultiSelectFieldDefault-OQ6SNNBI.js.map} +0 -0
  346. /package/dist/{NumberFieldDefault-IOL6KD5M.js.map → NumberFieldDefault-IVUTWJS5.js.map} +0 -0
  347. /package/dist/{PDFPreviewDefault-LVWCRQ6A.js.map → PDFPreviewDefault-RJNE7QSF.js.map} +0 -0
  348. /package/dist/{RadioGroupFieldDefault-7SVQ7ZQQ.js.map → RadioGroupFieldDefault-CXY33ONT.js.map} +0 -0
  349. /package/dist/{SelectFieldDefault-HYT2DRK4.js.map → SelectFieldDefault-66GGFDX3.js.map} +0 -0
  350. /package/dist/{StatementDefault-HUOZEIEC.js.map → StatementDefault-DORMITL7.js.map} +0 -0
  351. /package/dist/{TableFieldDefault-OACG7RGJ.js.map → TableFieldDefault-URJVK7YR.js.map} +0 -0
  352. /package/dist/{TextAreaFieldDefault-KCPQWVZX.js.map → TextAreaFieldDefault-5H34RRBA.js.map} +0 -0
  353. /package/dist/{TextFieldDefault-MUGUO7GT.js.map → TextFieldDefault-VHIF2KLF.js.map} +0 -0
  354. /package/dist/{WorkScheduleFieldDefault-CHW2ODQK.js.map → WorkScheduleFieldDefault-T7IP52VU.js.map} +0 -0
  355. /package/dist/{ZendeskDrawerDefault-NYESVAZM.js.map → ZendeskDrawerDefault-YSBMA2ZH.js.map} +0 -0
  356. /package/dist/{chunk-D6KO5LX6.js.map → chunk-37RMY44V.js.map} +0 -0
  357. /package/dist/{chunk-D5YMIXK5.js.map → chunk-3B6XXK5H.js.map} +0 -0
  358. /package/dist/{chunk-AFJIZDZG.js.map → chunk-3BBQDNZD.js.map} +0 -0
  359. /package/dist/{chunk-CD6F3H7B.js.map → chunk-3DMWQJ5W.js.map} +0 -0
  360. /package/dist/{chunk-UXHMIIOB.js.map → chunk-44RIEWXA.js.map} +0 -0
  361. /package/dist/{chunk-AB3RAEMM.js.map → chunk-4EMAROPQ.js.map} +0 -0
  362. /package/dist/{chunk-3ACL4IFO.js.map → chunk-4N4MQECC.js.map} +0 -0
  363. /package/dist/{chunk-2ZS5F6C7.js.map → chunk-4UO7KLRK.js.map} +0 -0
  364. /package/dist/{chunk-BIDZO7XH.js.map → chunk-62O3CKKH.js.map} +0 -0
  365. /package/dist/{chunk-ZIXR3VSB.js.map → chunk-6AAV34CT.js.map} +0 -0
  366. /package/dist/{chunk-ZPDZ6V5R.js.map → chunk-7G5JSUZU.js.map} +0 -0
  367. /package/dist/{chunk-SZVBNL6O.js.map → chunk-7PWZAW7M.js.map} +0 -0
  368. /package/dist/{chunk-T7CGGZOK.js.map → chunk-7RP5F62S.js.map} +0 -0
  369. /package/dist/{chunk-XO5VURZY.js.map → chunk-A232PIG7.js.map} +0 -0
  370. /package/dist/{chunk-JXXZH6KH.js.map → chunk-A7CLJBJI.js.map} +0 -0
  371. /package/dist/{chunk-FI2MVRZR.js.map → chunk-AJCKNHZB.js.map} +0 -0
  372. /package/dist/{chunk-VOUP5SMR.js.map → chunk-AJIDQALB.js.map} +0 -0
  373. /package/dist/{chunk-UXP2IITO.js.map → chunk-ALVZNFB7.js.map} +0 -0
  374. /package/dist/{chunk-CQ2EF32E.js.map → chunk-AW7JELYX.js.map} +0 -0
  375. /package/dist/{chunk-OCTMRR2C.js.map → chunk-B66V5QEC.js.map} +0 -0
  376. /package/dist/{chunk-DI2QNZ2O.js.map → chunk-B7EJ2OAA.js.map} +0 -0
  377. /package/dist/{chunk-HLAKUOQB.js.map → chunk-BG66XH5L.js.map} +0 -0
  378. /package/dist/{chunk-NOY2YNXO.js.map → chunk-BGRX3DBF.js.map} +0 -0
  379. /package/dist/{chunk-I7JUAYNN.js.map → chunk-BVFQ6LFD.js.map} +0 -0
  380. /package/dist/{chunk-RM7W6QA7.js.map → chunk-C6KWUSCU.js.map} +0 -0
  381. /package/dist/{chunk-MTOXXQYK.js.map → chunk-CARPUKT7.js.map} +0 -0
  382. /package/dist/{chunk-7TOCURKO.js.map → chunk-DFAY4TWC.js.map} +0 -0
  383. /package/dist/{chunk-O5ENJKI6.js.map → chunk-DNDYXEZ6.js.map} +0 -0
  384. /package/dist/{chunk-46QJ44CZ.js.map → chunk-DXIJUMLU.js.map} +0 -0
  385. /package/dist/{chunk-DI3XZUMY.js.map → chunk-E2LBPO5Z.js.map} +0 -0
  386. /package/dist/{chunk-RFMIAO6J.js.map → chunk-EDLQ3JNY.js.map} +0 -0
  387. /package/dist/{chunk-TZCNONDA.js.map → chunk-EHD2YB5F.js.map} +0 -0
  388. /package/dist/{chunk-GLKITZNI.js.map → chunk-ERSP6CZ3.js.map} +0 -0
  389. /package/dist/{chunk-Z4STVEJE.js.map → chunk-EWL6BSEP.js.map} +0 -0
  390. /package/dist/{chunk-AJ7L3ZO3.js.map → chunk-FJVQQ4XB.js.map} +0 -0
  391. /package/dist/{chunk-YA2G4A3K.js.map → chunk-FRCFJ64I.js.map} +0 -0
  392. /package/dist/{chunk-H463PCBN.js.map → chunk-FSK2DR6Z.js.map} +0 -0
  393. /package/dist/{chunk-5R66NDTQ.js.map → chunk-FUGPVPYX.js.map} +0 -0
  394. /package/dist/{chunk-TGLB5MA2.js.map → chunk-G7EVUAYE.js.map} +0 -0
  395. /package/dist/{chunk-ZSJ6YADQ.js.map → chunk-H2JFQGQJ.js.map} +0 -0
  396. /package/dist/{chunk-HU453KWI.js.map → chunk-H3BUOBWO.js.map} +0 -0
  397. /package/dist/{chunk-MCGUHRQL.js.map → chunk-HKNK5Z6N.js.map} +0 -0
  398. /package/dist/{chunk-5F7FMTGE.js.map → chunk-HOR3KPOZ.js.map} +0 -0
  399. /package/dist/{chunk-WLMHGJWB.js.map → chunk-HUZBKPGP.js.map} +0 -0
  400. /package/dist/{chunk-7SVSJ7NG.js.map → chunk-I3TP6JKM.js.map} +0 -0
  401. /package/dist/{chunk-D67Z4NEP.js.map → chunk-IGLKMXWJ.js.map} +0 -0
  402. /package/dist/{chunk-IHVEK72X.js.map → chunk-IZGSVS3I.js.map} +0 -0
  403. /package/dist/{chunk-ZKS7DJDT.js.map → chunk-J2BTEUAM.js.map} +0 -0
  404. /package/dist/{chunk-PQP3KZ7P.js.map → chunk-JGJTFYHN.js.map} +0 -0
  405. /package/dist/{chunk-KUTIJABX.js.map → chunk-JI4CYPLW.js.map} +0 -0
  406. /package/dist/{chunk-OV7TLEE6.js.map → chunk-KQKH3H6S.js.map} +0 -0
  407. /package/dist/{chunk-6VQEAU6A.js.map → chunk-KRSUSMJK.js.map} +0 -0
  408. /package/dist/{chunk-FBE7F5HU.js.map → chunk-L3LOATSG.js.map} +0 -0
  409. /package/dist/{chunk-3PVZEAGI.js.map → chunk-L5DII4MV.js.map} +0 -0
  410. /package/dist/{chunk-D36BZQTP.js.map → chunk-LVXV3GHT.js.map} +0 -0
  411. /package/dist/{chunk-6DRAZSGG.js.map → chunk-MHAY555P.js.map} +0 -0
  412. /package/dist/{chunk-37RBGAMM.js.map → chunk-MLVB5MYU.js.map} +0 -0
  413. /package/dist/{chunk-CU3WQ2KN.js.map → chunk-MSBCYMSH.js.map} +0 -0
  414. /package/dist/{chunk-NZ64KNDV.js.map → chunk-NAH5PAUK.js.map} +0 -0
  415. /package/dist/{chunk-2DCJODMR.js.map → chunk-NEWXVHFX.js.map} +0 -0
  416. /package/dist/{chunk-XLTZ7SN3.js.map → chunk-OENTT2KT.js.map} +0 -0
  417. /package/dist/{chunk-S63QGDMR.js.map → chunk-OEXY56S2.js.map} +0 -0
  418. /package/dist/{chunk-FKYEST54.js.map → chunk-PHPCCABU.js.map} +0 -0
  419. /package/dist/{chunk-AS4ND5IO.js.map → chunk-PKK2EEXH.js.map} +0 -0
  420. /package/dist/{chunk-HMMFY4PV.js.map → chunk-Q73675NI.js.map} +0 -0
  421. /package/dist/{chunk-M4BR3FKN.js.map → chunk-R7BHA5RA.js.map} +0 -0
  422. /package/dist/{chunk-IUCFOQAD.js.map → chunk-RAH453TV.js.map} +0 -0
  423. /package/dist/{chunk-4YPJKEHT.js.map → chunk-RJY6AEJB.js.map} +0 -0
  424. /package/dist/{chunk-VSYION5R.js.map → chunk-SLLDKJ7K.js.map} +0 -0
  425. /package/dist/{chunk-JEULZR34.js.map → chunk-SNBAM7SA.js.map} +0 -0
  426. /package/dist/{chunk-ZPG6GRAX.js.map → chunk-SNECOPBD.js.map} +0 -0
  427. /package/dist/{chunk-BDMCADQ6.js.map → chunk-SS2FAFUZ.js.map} +0 -0
  428. /package/dist/{chunk-JJEFWMLY.js.map → chunk-TFSRZOMP.js.map} +0 -0
  429. /package/dist/{chunk-W5EXVAEO.js.map → chunk-TNN3W5TU.js.map} +0 -0
  430. /package/dist/{chunk-D5NBOIPS.js.map → chunk-TOQPDTGG.js.map} +0 -0
  431. /package/dist/{chunk-HN7ZP5AX.js.map → chunk-TPGN6QTL.js.map} +0 -0
  432. /package/dist/{chunk-OJ3HJ7QL.js.map → chunk-TQXCLXWH.js.map} +0 -0
  433. /package/dist/{chunk-RQRODRCR.js.map → chunk-TRBEYNRN.js.map} +0 -0
  434. /package/dist/{chunk-MUJT3F2Q.js.map → chunk-TVIUQXLE.js.map} +0 -0
  435. /package/dist/{chunk-OK3CYSHV.js.map → chunk-TXQWBDNF.js.map} +0 -0
  436. /package/dist/{chunk-4ZQ7NOAL.js.map → chunk-ULP5B6DG.js.map} +0 -0
  437. /package/dist/{chunk-OPWMRKZP.js.map → chunk-UMVA4SIV.js.map} +0 -0
  438. /package/dist/{chunk-RNXUKKPF.js.map → chunk-UMVMNUPH.js.map} +0 -0
  439. /package/dist/{chunk-5TBUDUEB.js.map → chunk-VBQVXR4U.js.map} +0 -0
  440. /package/dist/{chunk-W2PJUNWX.js.map → chunk-VLSOHNT2.js.map} +0 -0
  441. /package/dist/{chunk-PS5T7URZ.js.map → chunk-W4ECFBIA.js.map} +0 -0
  442. /package/dist/{chunk-LWGNRGU3.js.map → chunk-WD2JGIDK.js.map} +0 -0
  443. /package/dist/{chunk-BC4UT7KC.js.map → chunk-WEAO46EO.js.map} +0 -0
  444. /package/dist/{chunk-C36VO7DO.js.map → chunk-WEOIHTBU.js.map} +0 -0
  445. /package/dist/{chunk-RKS3FX3C.js.map → chunk-WO54IG4S.js.map} +0 -0
  446. /package/dist/{chunk-2J4XRENJ.js.map → chunk-XHAJ544L.js.map} +0 -0
  447. /package/dist/{chunk-DCB2H2SG.js.map → chunk-XNAFFHZH.js.map} +0 -0
  448. /package/dist/{chunk-KCTY6YAP.js.map → chunk-XU3B7N3C.js.map} +0 -0
  449. /package/dist/{chunk-A37NW25N.js.map → chunk-YHROBX2M.js.map} +0 -0
  450. /package/dist/{chunk-LDWPRPN4.js.map → chunk-YPUP5LNV.js.map} +0 -0
  451. /package/dist/{chunk-I2ED6EUG.js.map → chunk-YWZHBXEI.js.map} +0 -0
  452. /package/dist/{chunk-VGIG5OUD.js.map → chunk-Z3EAYQ5D.js.map} +0 -0
  453. /package/dist/{chunk-5GAFQRDA.js.map → chunk-ZAFGVOU5.js.map} +0 -0
  454. /package/dist/{chunk-EPLPD54O.js.map → chunk-ZWIH53GL.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\nimport { ValidationError } from 'yup';\nimport DOMPurify from 'dompurify';\nimport { JSFFields, Meta } from '@/src/types/remoteFlows';\nimport {\n NormalizedFieldError,\n normalizeFieldErrors,\n} from '@/src/lib/mutations';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function formatCurrency(\n amount: number | undefined | null,\n currencyCode = 'EUR',\n): string {\n if (amount == null) {\n return '-';\n }\n\n const value = amount / 100;\n\n return new Intl.NumberFormat('en', {\n style: 'currency',\n currency: currencyCode,\n currencyDisplay: 'symbol',\n }).format(value);\n}\n\ntype YupError = Pick<ValidationError, 'type' | 'errors'> & {\n inner: Record<string, YupError>[];\n};\n\n/**\n * Transforms a Yup ValidationError object into a more readable object. The format is as follows:\n * {\n * [fieldName]: {\n * type: string,\n * errors: string[],\n * inner: YupError[],\n * },\n * }\n * @param errors\n * @returns\n */\nexport const transformYupErrorsIntoObject = (errors: ValidationError) => {\n const validationErrors: Record<string, YupError> = {};\n\n errors.inner.forEach((error: ValidationError) => {\n if (error.path !== undefined) {\n validationErrors[error.path] = {\n type: error.type,\n errors: error.errors,\n inner: error.inner.map((innerError) =>\n transformYupErrorsIntoObject(innerError),\n ),\n };\n }\n });\n\n return validationErrors;\n};\n\n/**\n * Debug utility to add version to window object\n * @param version - The version of the SDK\n */\nexport function debug(version: string) {\n window.RemoteFlowsSDK = {\n version,\n };\n}\n\n// Deduplicates rel values if necessary and appends noopener and noreferrer\nconst appendSecureRelValue = (rel: string | null) => {\n const attributes = new Set(rel ? rel.toLowerCase().split(' ') : []);\n\n attributes.add('noopener');\n attributes.add('noreferrer');\n\n return Array.from(attributes).join(' ');\n};\n\nif (DOMPurify.isSupported) {\n DOMPurify.addHook('afterSanitizeAttributes', (node) => {\n const target = node.getAttribute('target');\n\n if (node.tagName === 'A' && (!target || target !== '_self')) {\n const href = node.getAttribute('href');\n\n // Skip internal anchors (#section), relative URLs, and non-http protocols\n if (href && !href.startsWith('#') && /^https?:\\/\\//i.test(href)) {\n node.setAttribute('target', '_blank');\n const rel = node.getAttribute('rel');\n node.setAttribute('rel', appendSecureRelValue(rel));\n }\n }\n });\n}\n\nexport const sanitizeHtml = (html: string) => {\n return DOMPurify.sanitize(html, { ADD_ATTR: ['target'] });\n};\n\nexport const sanitizeHtmlWithImageErrorHandling = (html: string) => {\n const parser = new DOMParser();\n const doc = parser.parseFromString(html, 'text/html');\n\n // Add onerror handler to all img tags to hide them if they fail to load\n const images = doc.querySelectorAll('img');\n images.forEach((img) => {\n img.setAttribute('onerror', \"this.style.display='none'\");\n });\n\n const modifiedHtml = doc.body.innerHTML;\n\n // Sanitize with DOMPurify, allowing onerror attribute\n // Note: The global afterSanitizeAttributes hook (defined above) will still apply\n // to add target=\"_blank\" and rel=\"noopener noreferrer\" to external links\n return DOMPurify.sanitize(modifiedHtml, {\n ADD_ATTR: ['target', 'onerror'],\n });\n};\n\n/**\n * Ensures base64 data has the correct data URI prefix for PDF content\n * @param base64Data - The base64 data string\n * @returns The base64 data with proper data URI prefix\n */\nexport const clearBase64Data = (base64Data: string) => {\n if (!base64Data) return '';\n\n const cleanedData = base64Data.trim();\n\n if (cleanedData.startsWith('data:application/pdf;base64,')) {\n return cleanedData;\n }\n\n if (cleanedData.startsWith('data:')) {\n return cleanedData;\n }\n\n return `data:application/pdf;base64,${cleanedData}`;\n};\n\n/**\n * Function to prettify form values. Returns a pretty value and label for each field.\n * @param values - Form values to prettify\n * @param fields - Form fields\n * @returns Prettified form values\n */\n// @ts-expect-error need to check function return type\nexport function prettifyFormValues(\n values: Record<string, unknown>,\n fields: JSFFields | undefined,\n) {\n if (!fields) {\n return {};\n }\n return Object.fromEntries(\n Object.entries(values)\n // @ts-expect-error need to check function return type\n .map(([key, value]) => {\n if (value === undefined) {\n return [key, undefined];\n }\n\n const field = fields.find((field) => field.name === key);\n\n if (field?.isVisible === false || field?.deprecated) {\n return [key, undefined];\n }\n\n if (field?.type === 'radio' || field?.type === 'select') {\n const option = (\n field.options as Array<{ value: string; label: string }>\n ).find((option) => option.value === value);\n\n if (option) {\n return [\n key,\n {\n prettyValue: option?.label,\n label: field?.label,\n inputType: field?.type,\n },\n ];\n }\n return;\n }\n\n if (field?.type === 'checkbox' && field?.const) {\n return [\n key,\n { prettyValue: true, label: field.label, inputType: field?.type },\n ];\n }\n\n if (field?.type === 'countries' && Array.isArray(value)) {\n return [\n key,\n {\n prettyValue: value.join(),\n label: field.label,\n inputType: field?.type,\n },\n ];\n }\n\n if (field?.type === 'fieldset') {\n // @ts-expect-error need to check function return type\n const prettiedFieldset = prettifyFormValues(\n value as Record<string, unknown>,\n field.fields as JSFFields,\n );\n\n // Handles benefits fieldset in specific\n if (!prettiedFieldset.label && prettiedFieldset.value) {\n const prettyValue: Record<string, unknown> = {\n ...prettiedFieldset.value,\n label: field.label,\n inputType: field?.type,\n };\n return [key, prettyValue];\n }\n\n return [key, prettiedFieldset];\n }\n\n if (field?.type === 'money') {\n return [\n key,\n {\n prettyValue: value,\n label: field.label,\n inputType: field?.type,\n currency: field?.currency,\n },\n ];\n }\n\n if (field) {\n return [\n key,\n { prettyValue: value, label: field.label, inputType: field?.type },\n ];\n }\n })\n .filter(Boolean),\n );\n}\n\n/**\n * Creates a structured error object with the error message and raw error object\n * @param message - The error message\n * @returns\n */\nexport function createStructuredError(message: string) {\n return {\n error: new Error(message),\n rawError: { message },\n fieldErrors: [],\n };\n}\n\n/**\n * Checks if the error is a structured error\n * @param err - The error\n * @returns True if the error is a structured error\n */\nfunction isStructuredError(err: unknown): err is {\n error: Error;\n rawError: Record<string, unknown>;\n fieldErrors: NormalizedFieldError[];\n} {\n return (\n typeof err === 'object' &&\n err !== null &&\n 'error' in err &&\n 'rawError' in err &&\n 'fieldErrors' in err\n );\n}\n\n/**\n * Handles the error for a step\n * @param err - The error\n * @param fieldsMeta - The fields metadata\n * @returns The structured error\n */\nexport function handleStepError(\n err: unknown,\n fieldsMeta?: Meta,\n): {\n error: Error;\n rawError: Record<string, unknown>;\n fieldErrors: NormalizedFieldError[];\n} {\n // If it's already a structured error from mutateAsyncOrThrow\n if (isStructuredError(err)) {\n const normalizedFieldErrors = normalizeFieldErrors(\n err.fieldErrors || [],\n fieldsMeta,\n );\n return {\n error: err.error,\n rawError: err.rawError,\n fieldErrors: normalizedFieldErrors,\n };\n }\n\n // For unexpected errors, create a structured error\n const fallbackError = createStructuredError(\n err instanceof Error ? err.message : 'An unexpected error occurred',\n );\n\n return {\n ...fallbackError,\n fieldErrors: [], // No field errors for unexpected errors\n };\n}\n"],"mappings":"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","names":["clsx","twMerge","DOMPurify","cn","inputs","twMerge","clsx","__name","formatCurrency","amount","currencyCode","value","transformYupErrorsIntoObject","errors","validationErrors","error","innerError","debug","version","appendSecureRelValue","rel","attributes","DOMPurify","node","target","href","sanitizeHtml","html","sanitizeHtmlWithImageErrorHandling","doc","img","modifiedHtml","clearBase64Data","base64Data","cleanedData","prettifyFormValues","values","fields","key","field","option","prettiedFieldset","prettyValue","createStructuredError","message","isStructuredError","err","handleStepError","fieldsMeta","normalizedFieldErrors","normalizeFieldErrors"]}
1
+ {"version":3,"sources":["../src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\nimport { ValidationError } from 'yup';\nimport DOMPurify from 'dompurify';\nimport { JSFFields, Meta } from '@/src/types/remoteFlows';\nimport {\n NormalizedFieldError,\n normalizeFieldErrors,\n} from '@/src/lib/mutations';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function formatCurrency(\n amount: number | undefined | null,\n currencyCode = 'EUR',\n): string {\n if (amount == null) {\n return '-';\n }\n\n const value = amount / 100;\n\n return new Intl.NumberFormat('en', {\n style: 'currency',\n currency: currencyCode,\n currencyDisplay: 'symbol',\n }).format(value);\n}\n\ntype YupError = Pick<ValidationError, 'type' | 'errors'> & {\n inner: Record<string, YupError>[];\n};\n\n/**\n * Transforms a Yup ValidationError object into a more readable object. The format is as follows:\n * {\n * [fieldName]: {\n * type: string,\n * errors: string[],\n * inner: YupError[],\n * },\n * }\n * @param errors\n * @returns\n */\nexport const transformYupErrorsIntoObject = (errors: ValidationError) => {\n const validationErrors: Record<string, YupError> = {};\n\n errors.inner.forEach((error: ValidationError) => {\n if (error.path !== undefined) {\n validationErrors[error.path] = {\n type: error.type,\n errors: error.errors,\n inner: error.inner.map((innerError) =>\n transformYupErrorsIntoObject(innerError),\n ),\n };\n }\n });\n\n return validationErrors;\n};\n\n/**\n * Debug utility to add version to window object\n * @param version - The version of the SDK\n */\nexport function debug(version: string) {\n window.RemoteFlowsSDK = {\n version,\n };\n}\n\n// Deduplicates rel values if necessary and appends noopener and noreferrer\nconst appendSecureRelValue = (rel: string | null) => {\n const attributes = new Set(rel ? rel.toLowerCase().split(' ') : []);\n\n attributes.add('noopener');\n attributes.add('noreferrer');\n\n return Array.from(attributes).join(' ');\n};\n\nif (DOMPurify.isSupported) {\n DOMPurify.addHook('afterSanitizeAttributes', (node) => {\n const target = node.getAttribute('target');\n\n if (node.tagName === 'A' && (!target || target !== '_self')) {\n const href = node.getAttribute('href');\n\n // Skip internal anchors (#section), relative URLs, and non-http protocols\n if (href && !href.startsWith('#') && /^https?:\\/\\//i.test(href)) {\n node.setAttribute('target', '_blank');\n const rel = node.getAttribute('rel');\n node.setAttribute('rel', appendSecureRelValue(rel));\n }\n }\n });\n}\n\nexport const sanitizeHtml = (html: string) => {\n return DOMPurify.sanitize(html, { ADD_ATTR: ['target'] });\n};\n\nexport const sanitizeHtmlWithImageErrorHandling = (html: string) => {\n const parser = new DOMParser();\n const doc = parser.parseFromString(html, 'text/html');\n\n // Add onerror handler to all img tags to hide them if they fail to load\n const images = doc.querySelectorAll('img');\n images.forEach((img) => {\n img.setAttribute('onerror', \"this.style.display='none'\");\n });\n\n const modifiedHtml = doc.body.innerHTML;\n\n // Sanitize with DOMPurify, allowing onerror attribute\n // Note: The global afterSanitizeAttributes hook (defined above) will still apply\n // to add target=\"_blank\" and rel=\"noopener noreferrer\" to external links\n return DOMPurify.sanitize(modifiedHtml, {\n ADD_ATTR: ['target', 'onerror'],\n });\n};\n\n/**\n * Ensures base64 data has the correct data URI prefix for PDF content\n * @param base64Data - The base64 data string\n * @returns The base64 data with proper data URI prefix\n */\nexport const clearBase64Data = (base64Data: string) => {\n if (!base64Data) return '';\n\n const cleanedData = base64Data.trim();\n\n if (cleanedData.startsWith('data:application/pdf;base64,')) {\n return cleanedData;\n }\n\n if (cleanedData.startsWith('data:')) {\n return cleanedData;\n }\n\n return `data:application/pdf;base64,${cleanedData}`;\n};\n\n/**\n * Function to prettify form values. Returns a pretty value and label for each field.\n * @param values - Form values to prettify\n * @param fields - Form fields\n * @returns Prettified form values\n */\n// @ts-expect-error need to check function return type\nexport function prettifyFormValues(\n values: Record<string, unknown>,\n fields: JSFFields | undefined,\n) {\n if (!fields) {\n return {};\n }\n return Object.fromEntries(\n Object.entries(values)\n // @ts-expect-error need to check function return type\n .map(([key, value]) => {\n if (value === undefined) {\n return [key, undefined];\n }\n\n const field = fields.find((field) => field.name === key);\n\n if (field?.isVisible === false || field?.deprecated) {\n return [key, undefined];\n }\n\n if (field?.type === 'radio' || field?.type === 'select') {\n const option = (\n field.options as Array<{ value: string; label: string }>\n ).find((option) => option.value === value);\n\n if (option) {\n return [\n key,\n {\n prettyValue: option?.label,\n label: field?.label,\n inputType: field?.type,\n },\n ];\n }\n return;\n }\n\n if (field?.type === 'checkbox' && field?.const) {\n return [\n key,\n { prettyValue: true, label: field.label, inputType: field?.type },\n ];\n }\n\n if (field?.type === 'countries' && Array.isArray(value)) {\n return [\n key,\n {\n prettyValue: value.join(),\n label: field.label,\n inputType: field?.type,\n },\n ];\n }\n\n if (field?.type === 'fieldset') {\n // @ts-expect-error need to check function return type\n const prettiedFieldset = prettifyFormValues(\n value as Record<string, unknown>,\n field.fields as JSFFields,\n );\n\n // Handles benefits fieldset in specific\n if (!prettiedFieldset.label && prettiedFieldset.value) {\n const prettyValue: Record<string, unknown> = {\n ...prettiedFieldset.value,\n label: field.label,\n inputType: field?.type,\n };\n return [key, prettyValue];\n }\n\n return [key, prettiedFieldset];\n }\n\n if (field?.type === 'money') {\n return [\n key,\n {\n prettyValue: value,\n label: field.label,\n inputType: field?.type,\n currency: field?.currency,\n },\n ];\n }\n\n if (field) {\n return [\n key,\n { prettyValue: value, label: field.label, inputType: field?.type },\n ];\n }\n })\n .filter(Boolean),\n );\n}\n\n/**\n * Creates a structured error object with the error message and raw error object\n * @param message - The error message\n * @returns\n */\nexport function createStructuredError(message: string) {\n return {\n error: new Error(message),\n rawError: { message },\n fieldErrors: [],\n };\n}\n\n/**\n * Checks if the error is a structured error\n * @param err - The error\n * @returns True if the error is a structured error\n */\nexport function isStructuredError(err: unknown): err is {\n error: Error;\n rawError: Record<string, unknown>;\n fieldErrors: NormalizedFieldError[];\n} {\n return (\n typeof err === 'object' &&\n err !== null &&\n 'error' in err &&\n 'rawError' in err &&\n 'fieldErrors' in err\n );\n}\n\n/**\n * Handles the error for a step\n * @param err - The error\n * @param fieldsMeta - The fields metadata\n * @returns The structured error\n */\nexport function handleStepError(\n err: unknown,\n fieldsMeta?: Meta,\n): {\n error: Error;\n rawError: Record<string, unknown>;\n fieldErrors: NormalizedFieldError[];\n} {\n // If it's already a structured error from mutateAsyncOrThrow\n if (isStructuredError(err)) {\n const normalizedFieldErrors = normalizeFieldErrors(\n err.fieldErrors || [],\n fieldsMeta,\n );\n return {\n error: err.error,\n rawError: err.rawError,\n fieldErrors: normalizedFieldErrors,\n };\n }\n\n // For unexpected errors, create a structured error\n const fallbackError = createStructuredError(\n err instanceof Error ? err.message : 'An unexpected error occurred',\n );\n\n return {\n ...fallbackError,\n fieldErrors: [], // No field errors for unexpected errors\n };\n}\n"],"mappings":"gFAAA,OAAS,QAAAA,MAA6B,OACtC,OAAS,WAAAC,MAAe,iBAExB,OAAOC,MAAe,YAOf,SAASC,KAAMC,EAAsB,CAC1C,OAAOC,EAAQC,EAAKF,CAAM,CAAC,CAC7B,CAFgBG,EAAAJ,EAAA,MAIT,SAASK,EACdC,EACAC,EAAe,MACP,CACR,GAAID,GAAU,KACZ,MAAO,IAGT,IAAME,EAAQF,EAAS,IAEvB,OAAO,IAAI,KAAK,aAAa,KAAM,CACjC,MAAO,WACP,SAAUC,EACV,gBAAiB,QACnB,CAAC,EAAE,OAAOC,CAAK,CACjB,CAfgBJ,EAAAC,EAAA,kBAiCT,IAAMI,EAA+BL,EAACM,GAA4B,CACvE,IAAMC,EAA6C,CAAC,EAEpD,OAAAD,EAAO,MAAM,QAASE,GAA2B,CAC3CA,EAAM,OAAS,SACjBD,EAAiBC,EAAM,IAAI,EAAI,CAC7B,KAAMA,EAAM,KACZ,OAAQA,EAAM,OACd,MAAOA,EAAM,MAAM,IAAKC,GACtBJ,EAA6BI,CAAU,CACzC,CACF,EAEJ,CAAC,EAEMF,CACT,EAhB4C,gCAsBrC,SAASG,EAAMC,EAAiB,CACrC,OAAO,eAAiB,CACtB,QAAAA,CACF,CACF,CAJgBX,EAAAU,EAAA,SAOhB,IAAME,EAAuBZ,EAACa,GAAuB,CACnD,IAAMC,EAAa,IAAI,IAAID,EAAMA,EAAI,YAAY,EAAE,MAAM,GAAG,EAAI,CAAC,CAAC,EAElE,OAAAC,EAAW,IAAI,UAAU,EACzBA,EAAW,IAAI,YAAY,EAEpB,MAAM,KAAKA,CAAU,EAAE,KAAK,GAAG,CACxC,EAP6B,wBASzBC,EAAU,aACZA,EAAU,QAAQ,0BAA4BC,GAAS,CACrD,IAAMC,EAASD,EAAK,aAAa,QAAQ,EAEzC,GAAIA,EAAK,UAAY,MAAQ,CAACC,GAAUA,IAAW,SAAU,CAC3D,IAAMC,EAAOF,EAAK,aAAa,MAAM,EAGrC,GAAIE,GAAQ,CAACA,EAAK,WAAW,GAAG,GAAK,gBAAgB,KAAKA,CAAI,EAAG,CAC/DF,EAAK,aAAa,SAAU,QAAQ,EACpC,IAAMH,EAAMG,EAAK,aAAa,KAAK,EACnCA,EAAK,aAAa,MAAOJ,EAAqBC,CAAG,CAAC,CACpD,CACF,CACF,CAAC,EAGI,IAAMM,EAAenB,EAACoB,GACpBL,EAAU,SAASK,EAAM,CAAE,SAAU,CAAC,QAAQ,CAAE,CAAC,EAD9B,gBAIfC,EAAqCrB,EAACoB,GAAiB,CAElE,IAAME,EADS,IAAI,UAAU,EACV,gBAAgBF,EAAM,WAAW,EAGrCE,EAAI,iBAAiB,KAAK,EAClC,QAASC,GAAQ,CACtBA,EAAI,aAAa,UAAW,2BAA2B,CACzD,CAAC,EAED,IAAMC,EAAeF,EAAI,KAAK,UAK9B,OAAOP,EAAU,SAASS,EAAc,CACtC,SAAU,CAAC,SAAU,SAAS,CAChC,CAAC,CACH,EAlBkD,sCAyBrCC,EAAkBzB,EAAC0B,GAAuB,CACrD,GAAI,CAACA,EAAY,MAAO,GAExB,IAAMC,EAAcD,EAAW,KAAK,EAMpC,OAJIC,EAAY,WAAW,8BAA8B,GAIrDA,EAAY,WAAW,OAAO,EACzBA,EAGF,+BAA+BA,CAAW,EACnD,EAd+B,mBAuBxB,SAASC,EACdC,EACAC,EACA,CACA,OAAKA,EAGE,OAAO,YACZ,OAAO,QAAQD,CAAM,EAElB,IAAI,CAAC,CAACE,EAAK3B,CAAK,IAAM,CACrB,GAAIA,IAAU,OACZ,MAAO,CAAC2B,EAAK,MAAS,EAGxB,IAAMC,EAAQF,EAAO,KAAME,GAAUA,EAAM,OAASD,CAAG,EAEvD,GAAIC,GAAO,YAAc,IAASA,GAAO,WACvC,MAAO,CAACD,EAAK,MAAS,EAGxB,GAAIC,GAAO,OAAS,SAAWA,GAAO,OAAS,SAAU,CACvD,IAAMC,EACJD,EAAM,QACN,KAAMC,GAAWA,EAAO,QAAU7B,CAAK,EAEzC,OAAI6B,EACK,CACLF,EACA,CACE,YAAaE,GAAQ,MACrB,MAAOD,GAAO,MACd,UAAWA,GAAO,IACpB,CACF,EAEF,MACF,CAEA,GAAIA,GAAO,OAAS,YAAcA,GAAO,MACvC,MAAO,CACLD,EACA,CAAE,YAAa,GAAM,MAAOC,EAAM,MAAO,UAAWA,GAAO,IAAK,CAClE,EAGF,GAAIA,GAAO,OAAS,aAAe,MAAM,QAAQ5B,CAAK,EACpD,MAAO,CACL2B,EACA,CACE,YAAa3B,EAAM,KAAK,EACxB,MAAO4B,EAAM,MACb,UAAWA,GAAO,IACpB,CACF,EAGF,GAAIA,GAAO,OAAS,WAAY,CAE9B,IAAME,EAAmBN,EACvBxB,EACA4B,EAAM,MACR,EAGA,GAAI,CAACE,EAAiB,OAASA,EAAiB,MAAO,CACrD,IAAMC,EAAuC,CAC3C,GAAGD,EAAiB,MACpB,MAAOF,EAAM,MACb,UAAWA,GAAO,IACpB,EACA,MAAO,CAACD,EAAKI,CAAW,CAC1B,CAEA,MAAO,CAACJ,EAAKG,CAAgB,CAC/B,CAEA,GAAIF,GAAO,OAAS,QAClB,MAAO,CACLD,EACA,CACE,YAAa3B,EACb,MAAO4B,EAAM,MACb,UAAWA,GAAO,KAClB,SAAUA,GAAO,QACnB,CACF,EAGF,GAAIA,EACF,MAAO,CACLD,EACA,CAAE,YAAa3B,EAAO,MAAO4B,EAAM,MAAO,UAAWA,GAAO,IAAK,CACnE,CAEJ,CAAC,EACA,OAAO,OAAO,CACnB,EA5FS,CAAC,CA6FZ,CAlGgBhC,EAAA4B,EAAA,sBAyGT,SAASQ,EAAsBC,EAAiB,CACrD,MAAO,CACL,MAAO,IAAI,MAAMA,CAAO,EACxB,SAAU,CAAE,QAAAA,CAAQ,EACpB,YAAa,CAAC,CAChB,CACF,CANgBrC,EAAAoC,EAAA,yBAaT,SAASE,EAAkBC,EAIhC,CACA,OACE,OAAOA,GAAQ,UACfA,IAAQ,MACR,UAAWA,GACX,aAAcA,GACd,gBAAiBA,CAErB,CAZgBvC,EAAAsC,EAAA,qBAoBT,SAASE,EACdD,EACAE,EAKA,CAEA,GAAIH,EAAkBC,CAAG,EAAG,CAC1B,IAAMG,EAAwBC,EAC5BJ,EAAI,aAAe,CAAC,EACpBE,CACF,EACA,MAAO,CACL,MAAOF,EAAI,MACX,SAAUA,EAAI,SACd,YAAaG,CACf,CACF,CAOA,MAAO,CACL,GALoBN,EACpBG,aAAe,MAAQA,EAAI,QAAU,8BACvC,EAIE,YAAa,CAAC,CAChB,CACF,CA9BgBvC,EAAAwC,EAAA","names":["clsx","twMerge","DOMPurify","cn","inputs","twMerge","clsx","__name","formatCurrency","amount","currencyCode","value","transformYupErrorsIntoObject","errors","validationErrors","error","innerError","debug","version","appendSecureRelValue","rel","attributes","DOMPurify","node","target","href","sanitizeHtml","html","sanitizeHtmlWithImageErrorHandling","doc","img","modifiedHtml","clearBase64Data","base64Data","cleanedData","prettifyFormValues","values","fields","key","field","option","prettiedFieldset","prettyValue","createStructuredError","message","isStructuredError","err","handleStepError","fieldsMeta","normalizedFieldErrors","normalizeFieldErrors"]}
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-3PIJOIYR.js";import{a as s}from"./chunk-P37U34EQ.js";import*as n from"react";import{Drawer as r}from"vaul";import{jsx as a,jsxs as l}from"react/jsx-runtime";var d=s(({shouldScaleBackground:e=!0,...t})=>a(r.Root,{shouldScaleBackground:e,...t}),"Drawer");d.displayName="Drawer";var N=r.Trigger,f=r.Portal,P=r.Close,m=n.forwardRef(({className:e,...t},o)=>a(r.Overlay,{ref:o,className:i("fixed inset-0 z-50 bg-black/80",e),...t}));m.displayName=r.Overlay.displayName;var D=n.forwardRef(({className:e,children:t,showHandle:o=!0,...c},p)=>l(f,{children:[a(m,{}),l(r.Content,{ref:p,className:i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...c,children:[o&&a("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));D.displayName="DrawerContent";var w=s(({className:e,...t})=>a("div",{className:i("grid gap-1.5 p-4 text-center sm:text-left",e),...t}),"DrawerHeader");w.displayName="DrawerHeader";var R=s(({className:e,...t})=>a("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t}),"DrawerFooter");R.displayName="DrawerFooter";var u=n.forwardRef(({className:e,...t},o)=>a(r.Title,{ref:o,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));u.displayName=r.Title.displayName;var g=n.forwardRef(({className:e,...t},o)=>a(r.Description,{ref:o,className:i("text-sm text-muted-foreground",e),...t}));g.displayName=r.Description.displayName;export{d as a,N as b,D as c,w as d,u as e,g as f};
2
- //# sourceMappingURL=chunk-W2PJUNWX.js.map
1
+ import{a as i}from"./chunk-VIGKOVHP.js";import{a as s}from"./chunk-P37U34EQ.js";import*as n from"react";import{Drawer as r}from"vaul";import{jsx as a,jsxs as l}from"react/jsx-runtime";var d=s(({shouldScaleBackground:e=!0,...t})=>a(r.Root,{shouldScaleBackground:e,...t}),"Drawer");d.displayName="Drawer";var N=r.Trigger,f=r.Portal,P=r.Close,m=n.forwardRef(({className:e,...t},o)=>a(r.Overlay,{ref:o,className:i("fixed inset-0 z-50 bg-black/80",e),...t}));m.displayName=r.Overlay.displayName;var D=n.forwardRef(({className:e,children:t,showHandle:o=!0,...c},p)=>l(f,{children:[a(m,{}),l(r.Content,{ref:p,className:i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...c,children:[o&&a("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));D.displayName="DrawerContent";var w=s(({className:e,...t})=>a("div",{className:i("grid gap-1.5 p-4 text-center sm:text-left",e),...t}),"DrawerHeader");w.displayName="DrawerHeader";var R=s(({className:e,...t})=>a("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t}),"DrawerFooter");R.displayName="DrawerFooter";var u=n.forwardRef(({className:e,...t},o)=>a(r.Title,{ref:o,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));u.displayName=r.Title.displayName;var g=n.forwardRef(({className:e,...t},o)=>a(r.Description,{ref:o,className:i("text-sm text-muted-foreground",e),...t}));g.displayName=r.Description.displayName;export{d as a,N as b,D as c,w as d,u as e,g as f};
2
+ //# sourceMappingURL=chunk-VLSOHNT2.js.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-T7CGGZOK.js";import{a as F}from"./chunk-7TOCURKO.js";import{i as p,j as l,k as i,l as a,m as c}from"./chunk-ZSJ6YADQ.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as $,useState as v}from"react";import{jsx as n,jsxs as C}from"react/jsx-runtime";function L({field:t,fieldState:b,fieldData:o}){let[g,s]=v([]),_=m(e=>{let r=e.map(({value:S})=>S);t.onChange(r),s(e)},"handleChange");$(()=>{t.value&&o.options&&s(t.value.map(e=>o?.options?.find(r=>r.value===e)))},[t.value,o.options]);let y=[...Object.entries(o.$meta?.regions||{}).map(([e,r])=>({value:r,label:e,category:"Regions"})),...Object.entries(o.$meta?.subregions||{}).map(([e,r])=>({value:r,label:e,category:"Subregions"})),...o.options?.map(e=>({...e,value:e.value,label:e.label,category:"Countries"}))||[]];return C(p,{"data-field":t.name,className:`RemoteFlows__CountryField__Item__${t.name}`,children:[n(l,{className:"RemoteFlows__CountryField__Label",children:o.label}),n(i,{children:n(u,{options:y,selected:g,onChange:_})}),o.description&&C(a,{children:[o.description," ",n(F,{helpCenter:o.meta?.helpCenter})]}),b.error&&n(c,{})]})}m(L,"CountryFieldDefault");export{L as a};
2
- //# sourceMappingURL=chunk-PS5T7URZ.js.map
1
+ import{a as u}from"./chunk-7RP5F62S.js";import{a as F}from"./chunk-DFAY4TWC.js";import{i as p,j as l,k as i,l as a,m as c}from"./chunk-H2JFQGQJ.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as $,useState as v}from"react";import{jsx as n,jsxs as C}from"react/jsx-runtime";function L({field:t,fieldState:b,fieldData:o}){let[g,s]=v([]),_=m(e=>{let r=e.map(({value:S})=>S);t.onChange(r),s(e)},"handleChange");$(()=>{t.value&&o.options&&s(t.value.map(e=>o?.options?.find(r=>r.value===e)))},[t.value,o.options]);let y=[...Object.entries(o.$meta?.regions||{}).map(([e,r])=>({value:r,label:e,category:"Regions"})),...Object.entries(o.$meta?.subregions||{}).map(([e,r])=>({value:r,label:e,category:"Subregions"})),...o.options?.map(e=>({...e,value:e.value,label:e.label,category:"Countries"}))||[]];return C(p,{"data-field":t.name,className:`RemoteFlows__CountryField__Item__${t.name}`,children:[n(l,{className:"RemoteFlows__CountryField__Label",children:o.label}),n(i,{children:n(u,{options:y,selected:g,onChange:_})}),o.description&&C(a,{children:[o.description," ",n(F,{helpCenter:o.meta?.helpCenter})]}),b.error&&n(c,{})]})}m(L,"CountryFieldDefault");export{L as a};
2
+ //# sourceMappingURL=chunk-W4ECFBIA.js.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-KSHK3ZPX.js";import{a as r}from"./chunk-3PIJOIYR.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-LWGNRGU3.js.map
1
+ import{b as s}from"./chunk-KSHK3ZPX.js";import{a as r}from"./chunk-VIGKOVHP.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-WD2JGIDK.js.map
@@ -1,2 +1,2 @@
1
- import{b as y}from"./chunk-PGWKJ6FK.js";import{b as F}from"./chunk-LNV36S6D.js";import{a as u}from"./chunk-VSYION5R.js";import{f,g as p}from"./chunk-ZSJ6YADQ.js";import{b as c}from"./chunk-X6ZAR7ZL.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as S}from"react";import{jsx as b}from"react/jsx-runtime";import{createElement as V}from"react";function N({defaultValues:d,onSubmit:g,components:E}){let{formId:w,onboardingBag:o}=y(),k=F(o.handleValidation),r=f({resolver:k,defaultValues:d,shouldUnregister:!1,mode:"onBlur"});S(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]),S(()=>{let t=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==d[i])&&o?.checkFieldUpdates(e)});return()=>t?.unsubscribe()},[]);let h=m(async(t,e)=>{let s=e?.nativeEvent;if(s?.isDraftSubmission){let{onSuccess:i,onError:l}=s.draftCallbacks;try{if(!await r.trigger())return;let n=await o.onSubmit(t);if(n?.data)i?.();else if(n?.error){let P=o.stepState.currentStep.name,B=o.meta?.fields?.[P],O=c(n?.fieldErrors||[],B);l?.({error:n.error,rawError:n.rawError,fieldErrors:O})}}catch(a){l?.({error:a,rawError:a,fieldErrors:[]})}}else await g(t)},"handleSubmit");return V(p,{...r,key:`form-${o.stepState.currentStep.name}`},b("form",{id:w,onSubmit:r.handleSubmit(h),className:"space-y-4 RemoteFlows__OnboardingForm",children:b(u,{components:E,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}m(N,"OnboardingForm");export{N as a};
2
- //# sourceMappingURL=chunk-BC4UT7KC.js.map
1
+ import{b as y}from"./chunk-PGWKJ6FK.js";import{b as F}from"./chunk-LNV36S6D.js";import{a as u}from"./chunk-SLLDKJ7K.js";import{f,g as p}from"./chunk-H2JFQGQJ.js";import{b as c}from"./chunk-X6ZAR7ZL.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as S}from"react";import{jsx as b}from"react/jsx-runtime";import{createElement as V}from"react";function N({defaultValues:d,onSubmit:g,components:E}){let{formId:w,onboardingBag:o}=y(),k=F(o.handleValidation),r=f({resolver:k,defaultValues:d,shouldUnregister:!1,mode:"onBlur"});S(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]),S(()=>{let t=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==d[i])&&o?.checkFieldUpdates(e)});return()=>t?.unsubscribe()},[]);let h=m(async(t,e)=>{let s=e?.nativeEvent;if(s?.isDraftSubmission){let{onSuccess:i,onError:l}=s.draftCallbacks;try{if(!await r.trigger())return;let n=await o.onSubmit(t);if(n?.data)i?.();else if(n?.error){let P=o.stepState.currentStep.name,B=o.meta?.fields?.[P],O=c(n?.fieldErrors||[],B);l?.({error:n.error,rawError:n.rawError,fieldErrors:O})}}catch(a){l?.({error:a,rawError:a,fieldErrors:[]})}}else await g(t)},"handleSubmit");return V(p,{...r,key:`form-${o.stepState.currentStep.name}`},b("form",{id:w,onSubmit:r.handleSubmit(h),className:"space-y-4 RemoteFlows__OnboardingForm",children:b(u,{components:E,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}m(N,"OnboardingForm");export{N as a};
2
+ //# sourceMappingURL=chunk-WEAO46EO.js.map
@@ -1,2 +1,2 @@
1
- import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-RQRODRCR.js";import{a as Y}from"./chunk-MTOXXQYK.js";import{a as Q}from"./chunk-FI2MVRZR.js";import{a as J}from"./chunk-H463PCBN.js";import{a as H}from"./chunk-IF42CZJH.js";import{a as q,b as B,c as L,d as z}from"./chunk-3PVZEAGI.js";import{f as Z,g as K}from"./chunk-Z4STVEJE.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as S}from"./chunk-IUCFOQAD.js";import{a as N}from"./chunk-KUTIJABX.js";import{a as E}from"./chunk-EUSCQL4H.js";import{e as _}from"./chunk-T7O3YYOG.js";import{a as u,b as v}from"./chunk-XO5VURZY.js";import{o as $}from"./chunk-KJQN6GHW.js";import{a as D}from"./chunk-3PIJOIYR.js";import{a as w}from"./chunk-X6ZAR7ZL.js";import{a as A}from"./chunk-TSPDJUGG.js";import{a as I}from"./chunk-Z5WMKCRJ.js";import{d as O}from"./chunk-KQPDXXG3.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=O();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>$({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:u.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:u.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:u.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await _(s,me.fields,{isPartialValidation:!0}):f?await _(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await _(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
2
- //# sourceMappingURL=chunk-C36VO7DO.js.map
1
+ import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-TRBEYNRN.js";import{a as Y}from"./chunk-CARPUKT7.js";import{a as Q}from"./chunk-AJCKNHZB.js";import{a as J}from"./chunk-FSK2DR6Z.js";import{a as H}from"./chunk-IF42CZJH.js";import{a as q,b as B,c as L,d as z}from"./chunk-L5DII4MV.js";import{f as Z,g as K}from"./chunk-EWL6BSEP.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as S}from"./chunk-RAH453TV.js";import{a as N}from"./chunk-JI4CYPLW.js";import{a as E}from"./chunk-EUSCQL4H.js";import{e as _}from"./chunk-T7O3YYOG.js";import{a as u,b as v}from"./chunk-A232PIG7.js";import{p as $}from"./chunk-7ENB7H4E.js";import{a as D}from"./chunk-VIGKOVHP.js";import{a as w}from"./chunk-X6ZAR7ZL.js";import{a as A}from"./chunk-TSPDJUGG.js";import{a as I}from"./chunk-Z5WMKCRJ.js";import{d as O}from"./chunk-KQPDXXG3.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=O();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>$({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:u.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:u.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:u.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await _(s,me.fields,{isPartialValidation:!0}):f?await _(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await _(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
2
+ //# sourceMappingURL=chunk-WEOIHTBU.js.map
@@ -1,2 +1,2 @@
1
- import{a as _}from"./chunk-3UDRMQNE.js";import{a as S}from"./chunk-CD6F3H7B.js";import{b as f}from"./chunk-IUCFOQAD.js";import{a as m}from"./chunk-VDRNNOVA.js";import{d as g}from"./chunk-3FCX7SWN.js";import{a as y}from"./chunk-LHEF2FN7.js";import{a as p,b as u}from"./chunk-XO5VURZY.js";import{a as e}from"./chunk-P37U34EQ.js";import{format as w}from"date-fns";import{Fragment as P,jsx as d,jsxs as I}from"react/jsx-runtime";var C=e(n=>n===y,"isStandardPricingPlan"),b=e((n,i)=>{let t=i&&i<w(new Date,"yyyy-MM-dd");if(!n&&t)return f({severity:"warning",description:"Backdating the service start date is not supported in the selected Contractor Management plan."})},"showBackDateWarning"),A=e((n,i,t,o)=>{let r=C(t),s=o?.service_duration?.provisional_start_date,c=b(r,s);return{...n,fields:{...n?.fields,"service_duration.provisional_start_date":{description:i,"x-jsf-presentation":{minDate:r?void 0:w(new Date,"yyyy-MM-dd"),...c}}}}},"buildContractDetailsJsfModify"),O=e((n,i,t)=>{let o=n==="SAU",r=n==="GBR",s=g(n);if(!o&&!r&&!s)return t?.jsfModify?.basic_information;if(r)return{...t?.jsfModify?.basic_information,create:{...t?.jsfModify?.basic_information?.create,ir35:{title:"IR35 Status",description:e(()=>I(P,{children:["What's your contractor's employment status?"," ",d(u,{zendeskId:p.ir35Status,children:"Learn more about IR35"})]}),"description"),oneOf:[{const:"inside",title:"Inside IR35 (deemed employee)"},{const:"outside",title:"Outside IR35"},{const:"exempt",title:"Exempt from IR35"}],"x-jsf-presentation":{inputType:"select"}},ir35_sds_file:{title:"Upload SDS",description:"Status determination statement",type:"string","x-jsf-presentation":{inputType:"file",accept:m.document,multiple:!1,maxSize:20971520,calculateDynamicProperties:e(a=>{let l=a.ir35;return{isVisible:l==="inside"||l==="outside"}},"calculateDynamicProperties")}}},allOf:[{if:{properties:{ir35:{enum:["inside","outside"]}}},then:{required:["ir35_sds_file"]},else:{properties:{ir35_sds_file:!1}}}],required:["ir35"],orderRoot:e(a=>[...a,"ir35","ir35_sds_file"],"orderRoot")};let c=o?"Is your contractor a Saudi Arabia national, or a non-Saudi national contracting via a local business entity or under a Special Privilege Iqama visa?":`Is the contractor a ${i??"selected country"} national, or a non-${i??"selected country"} national contracting through their local business entity?`,h=o?"Please be aware that contracting with non-Saudi Arabia nationals that are not operating as a company or under a Special Privilege Iqama visa can lead to fines for operating without proper work authorization. If you are concerned, please speak with the Contractor and/or local Saudi Arabia counsel to ensure compliance.":`Be aware that the Contractor must be a ${i??"selected country"} national, or a non-${i??"selected country"} national operating through their company to comply with the legal requirements for performing services and deliverables as a contractor in ${i??"selected country"}. If you are concerned, speak with the Contractor and/or local counsel to ensure compliance.`;return{...t?.jsfModify?.basic_information,create:{...t?.jsfModify?.basic_information?.create,nationality_status:{title:c,description:"",type:"string",oneOf:[{const:"national",description:"",title:"Yes"},{const:"non-national",description:h,title:"No"}],"x-jsf-presentation":{inputType:"radio"}}},required:["nationality_status"],orderRoot:e(a=>[...a,"nationality_status"],"orderRoot")}},"buildBasicInformationJsfModify"),q=e((n,i)=>{let t=n?.jsfModify?.contract_preview?.fields;return{fields:{contract_preview_header:{...t?.contract_preview_header,"x-jsf-presentation":{Component:e(o=>{let r=t?.contract_preview_header?.["x-jsf-presentation"]?.Component||_;return d(r,{...o})},"Component")}},contract_preview_statement:{...t?.contract_preview_statement,"x-jsf-presentation":{Component:e(o=>{let r=t?.contract_preview_statement?.["x-jsf-presentation"]?.Component||S;return d(r,{reviewCompleted:!!i?.review_completed,...o})},"Component")}},signature:{...t?.signature,"x-jsf-presentation":{calculateDynamicProperties:e(o=>({isVisible:!!o.review_completed}),"calculateDynamicProperties"),...t?.signature?.["x-jsf-presentation"]}}}}},"buildContractPreviewJsfModify");export{A as a,O as b,q as c};
2
- //# sourceMappingURL=chunk-RKS3FX3C.js.map
1
+ import{a as _}from"./chunk-3UDRMQNE.js";import{a as S}from"./chunk-3DMWQJ5W.js";import{b as f}from"./chunk-RAH453TV.js";import{a as m}from"./chunk-VDRNNOVA.js";import{d as g}from"./chunk-HQAHUE5P.js";import{a as y}from"./chunk-LHEF2FN7.js";import{a as p,b as u}from"./chunk-A232PIG7.js";import{a as e}from"./chunk-P37U34EQ.js";import{format as w}from"date-fns";import{Fragment as P,jsx as d,jsxs as I}from"react/jsx-runtime";var C=e(n=>n===y,"isStandardPricingPlan"),b=e((n,i)=>{let t=i&&i<w(new Date,"yyyy-MM-dd");if(!n&&t)return f({severity:"warning",description:"Backdating the service start date is not supported in the selected Contractor Management plan."})},"showBackDateWarning"),A=e((n,i,t,o)=>{let r=C(t),s=o?.service_duration?.provisional_start_date,c=b(r,s);return{...n,fields:{...n?.fields,"service_duration.provisional_start_date":{description:i,"x-jsf-presentation":{minDate:r?void 0:w(new Date,"yyyy-MM-dd"),...c}}}}},"buildContractDetailsJsfModify"),O=e((n,i,t)=>{let o=n==="SAU",r=n==="GBR",s=g(n);if(!o&&!r&&!s)return t?.jsfModify?.basic_information;if(r)return{...t?.jsfModify?.basic_information,create:{...t?.jsfModify?.basic_information?.create,ir35:{title:"IR35 Status",description:e(()=>I(P,{children:["What's your contractor's employment status?"," ",d(u,{zendeskId:p.ir35Status,children:"Learn more about IR35"})]}),"description"),oneOf:[{const:"inside",title:"Inside IR35 (deemed employee)"},{const:"outside",title:"Outside IR35"},{const:"exempt",title:"Exempt from IR35"}],"x-jsf-presentation":{inputType:"select"}},ir35_sds_file:{title:"Upload SDS",description:"Status determination statement",type:"string","x-jsf-presentation":{inputType:"file",accept:m.document,multiple:!1,maxSize:20971520,calculateDynamicProperties:e(a=>{let l=a.ir35;return{isVisible:l==="inside"||l==="outside"}},"calculateDynamicProperties")}}},allOf:[{if:{properties:{ir35:{enum:["inside","outside"]}}},then:{required:["ir35_sds_file"]},else:{properties:{ir35_sds_file:!1}}}],required:["ir35"],orderRoot:e(a=>[...a,"ir35","ir35_sds_file"],"orderRoot")};let c=o?"Is your contractor a Saudi Arabia national, or a non-Saudi national contracting via a local business entity or under a Special Privilege Iqama visa?":`Is the contractor a ${i??"selected country"} national, or a non-${i??"selected country"} national contracting through their local business entity?`,h=o?"Please be aware that contracting with non-Saudi Arabia nationals that are not operating as a company or under a Special Privilege Iqama visa can lead to fines for operating without proper work authorization. If you are concerned, please speak with the Contractor and/or local Saudi Arabia counsel to ensure compliance.":`Be aware that the Contractor must be a ${i??"selected country"} national, or a non-${i??"selected country"} national operating through their company to comply with the legal requirements for performing services and deliverables as a contractor in ${i??"selected country"}. If you are concerned, speak with the Contractor and/or local counsel to ensure compliance.`;return{...t?.jsfModify?.basic_information,create:{...t?.jsfModify?.basic_information?.create,nationality_status:{title:c,description:"",type:"string",oneOf:[{const:"national",description:"",title:"Yes"},{const:"non-national",description:h,title:"No"}],"x-jsf-presentation":{inputType:"radio"}}},required:["nationality_status"],orderRoot:e(a=>[...a,"nationality_status"],"orderRoot")}},"buildBasicInformationJsfModify"),q=e((n,i)=>{let t=n?.jsfModify?.contract_preview?.fields;return{fields:{contract_preview_header:{...t?.contract_preview_header,"x-jsf-presentation":{Component:e(o=>{let r=t?.contract_preview_header?.["x-jsf-presentation"]?.Component||_;return d(r,{...o})},"Component")}},contract_preview_statement:{...t?.contract_preview_statement,"x-jsf-presentation":{Component:e(o=>{let r=t?.contract_preview_statement?.["x-jsf-presentation"]?.Component||S;return d(r,{reviewCompleted:!!i?.review_completed,...o})},"Component")}},signature:{...t?.signature,"x-jsf-presentation":{calculateDynamicProperties:e(o=>({isVisible:!!o.review_completed}),"calculateDynamicProperties"),...t?.signature?.["x-jsf-presentation"]}}}}},"buildContractPreviewJsfModify");export{A as a,O as b,q as c};
2
+ //# sourceMappingURL=chunk-WO54IG4S.js.map
@@ -1,2 +1,2 @@
1
- import{a as y}from"./chunk-M4BR3FKN.js";import{a as l,b as m}from"./chunk-XO5VURZY.js";import{c}from"./chunk-ZSJ6YADQ.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as N}from"react";import{Fragment as b,jsx as v,jsxs as C}from"react/jsx-runtime";var R=t(({currencies:{from:d,to:F},shouldSwapOrder:s,salary_conversion_properties:a,conversionType:_="no_spread",defaultValue:r,...e})=>{let{setValue:n,getValues:i}=c(),f={label:a?.label||"Salary conversion",description:a?.description||C(b,{children:["The conversion is based on the Remote FX rate."," ",v(m,{className:"text-sm",zendeskId:l.remoteFxRate,children:"Learn more \u2197"})]})},g=s?"salary_conversion":e.name,u=s?e.name:"salary_conversion";return N(()=>{if(s){let o=i(e.name);o?(n("salary_conversion",o),n("salary_converted","salary_conversion")):r&&(n("salary_conversion",r),n("salary_converted","salary_conversion"))}else{let o=i("salary_conversion");o?(n(e.name,o),n("salary_converted",e.name)):r&&(n(e.name,r),n("salary_converted",e.name))}},[s,r,n,i,e.name]),v(y,{...e,sourceCurrency:d,targetCurrency:F,mainFieldName:g,conversionFieldName:u,conversionProperties:f,classNamePrefix:"RemoteFlows-Salary",conversionType:_})},"SalaryField");export{R as a};
2
- //# sourceMappingURL=chunk-2J4XRENJ.js.map
1
+ import{a as y}from"./chunk-R7BHA5RA.js";import{a as l,b as m}from"./chunk-A232PIG7.js";import{c}from"./chunk-H2JFQGQJ.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as N}from"react";import{Fragment as b,jsx as v,jsxs as C}from"react/jsx-runtime";var R=t(({currencies:{from:d,to:F},shouldSwapOrder:s,salary_conversion_properties:a,conversionType:_="no_spread",defaultValue:r,...e})=>{let{setValue:n,getValues:i}=c(),f={label:a?.label||"Salary conversion",description:a?.description||C(b,{children:["The conversion is based on the Remote FX rate."," ",v(m,{className:"text-sm",zendeskId:l.remoteFxRate,children:"Learn more \u2197"})]})},g=s?"salary_conversion":e.name,u=s?e.name:"salary_conversion";return N(()=>{if(s){let o=i(e.name);o?(n("salary_conversion",o),n("salary_converted","salary_conversion")):r&&(n("salary_conversion",r),n("salary_converted","salary_conversion"))}else{let o=i("salary_conversion");o?(n(e.name,o),n("salary_converted",e.name)):r&&(n(e.name,r),n("salary_converted",e.name))}},[s,r,n,i,e.name]),v(y,{...e,sourceCurrency:d,targetCurrency:F,mainFieldName:g,conversionFieldName:u,conversionProperties:f,classNamePrefix:"RemoteFlows-Salary",conversionType:_})},"SalaryField");export{R as a};
2
+ //# sourceMappingURL=chunk-XHAJ544L.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-S63QGDMR.js";import{b as n}from"./chunk-Q3ALCPJN.js";import{j as i}from"./chunk-3PIJOIYR.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function P({onSubmit:d,onSuccess:m,onError:p}){let{contractorOnboardingBag:r}=n(),l=e(async a=>{try{let t=await r.parseFormValues(a);await d?.(t);let o=await r.onSubmit(a);if(o?.data){await m?.(o?.data),r?.next();return}}catch(t){let o=i(t,r.meta?.fields?.contract_preview);p?.(o)}},"handleSubmit"),u=r.stepState.values?.contract_preview||r.initialValues.contract_preview;return c("div",{className:"space-y-4",children:c(s,{defaultValues:u,onSubmit:l})})}e(P,"ContractPreviewStep");export{P as a};
2
- //# sourceMappingURL=chunk-DCB2H2SG.js.map
1
+ import{a as s}from"./chunk-OEXY56S2.js";import{b as n}from"./chunk-Q3ALCPJN.js";import{k as i}from"./chunk-VIGKOVHP.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function P({onSubmit:d,onSuccess:m,onError:p}){let{contractorOnboardingBag:r}=n(),l=e(async a=>{try{let t=await r.parseFormValues(a);await d?.(t);let o=await r.onSubmit(a);if(o?.data){await m?.(o?.data),r?.next();return}}catch(t){let o=i(t,r.meta?.fields?.contract_preview);p?.(o)}},"handleSubmit"),u=r.stepState.values?.contract_preview||r.initialValues.contract_preview;return c("div",{className:"space-y-4",children:c(s,{defaultValues:u,onSubmit:l})})}e(P,"ContractPreviewStep");export{P as a};
2
+ //# sourceMappingURL=chunk-XNAFFHZH.js.map
@@ -1,2 +1,2 @@
1
- import{e as a}from"./chunk-T7O3YYOG.js";import{f as n,g as m}from"./chunk-ZSJ6YADQ.js";import{b as i}from"./chunk-TVZAFTPT.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function R({onSubmit:d,onError:c,onSuccess:l}){let{contractAmendment:{stepState:u,isSubmitting:f,onSubmit:C,fields:p},formId:A}=i(),e=n({defaultValues:u.values?.form}),F=o(async r=>{let S=await a(r,p,{isPartialValidation:!1});await d?.(S);let t=await C(r);t.error?c?.(t.error):await l?.(t.data)},"handleSubmit");return f?null:s(m,{...e,children:s("form",{id:A,onSubmit:e.handleSubmit(F),className:"RemoteFlows__ContractAmendmentConfirmationForm"})})}o(R,"ContractAmendmentConfirmationForm");export{R as a};
2
- //# sourceMappingURL=chunk-KCTY6YAP.js.map
1
+ import{e as a}from"./chunk-T7O3YYOG.js";import{f as n,g as m}from"./chunk-H2JFQGQJ.js";import{b as i}from"./chunk-TVZAFTPT.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function R({onSubmit:d,onError:c,onSuccess:l}){let{contractAmendment:{stepState:u,isSubmitting:f,onSubmit:C,fields:p},formId:A}=i(),e=n({defaultValues:u.values?.form}),F=o(async r=>{let S=await a(r,p,{isPartialValidation:!1});await d?.(S);let t=await C(r);t.error?c?.(t.error):await l?.(t.data)},"handleSubmit");return f?null:s(m,{...e,children:s("form",{id:A,onSubmit:e.handleSubmit(F),className:"RemoteFlows__ContractAmendmentConfirmationForm"})})}o(R,"ContractAmendmentConfirmationForm");export{R as a};
2
+ //# sourceMappingURL=chunk-XU3B7N3C.js.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-S63QGDMR.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{j as n}from"./chunk-3PIJOIYR.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as S}from"react/jsx-runtime";function C({onSubmit:c,onSuccess:s,onError:u}){let{contractorOnboardingBag:r}=a(),l=t(async e=>{try{await c?.({countryCode:e.country});let o=await r.onSubmit(e);if(o?.data){await s?.(o?.data),r?.next();return}}catch(o){let m=n(o,r.meta?.fields?.select_country);u?.(m)}},"handleSubmit"),d=r.stepState.values?.select_country||r.initialValues.select_country;return S(i,{defaultValues:d,onSubmit:l})}t(C,"SelectCountryStep");export{C as a};
2
- //# sourceMappingURL=chunk-A37NW25N.js.map
1
+ import{a as i}from"./chunk-OEXY56S2.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{k as n}from"./chunk-VIGKOVHP.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as S}from"react/jsx-runtime";function C({onSubmit:c,onSuccess:s,onError:u}){let{contractorOnboardingBag:r}=a(),l=t(async e=>{try{await c?.({countryCode:e.country});let o=await r.onSubmit(e);if(o?.data){await s?.(o?.data),r?.next();return}}catch(o){let m=n(o,r.meta?.fields?.select_country);u?.(m)}},"handleSubmit"),d=r.stepState.values?.select_country||r.initialValues.select_country;return S(i,{defaultValues:d,onSubmit:l})}t(C,"SelectCountryStep");export{C as a};
2
+ //# sourceMappingURL=chunk-YHROBX2M.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-I7JUAYNN.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function p({onSubmit:t}){let{terminationBag:o}=a(),n=i(async r=>{let m=await o?.parseFormValues(r);await t?.(m),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:n})}i(p,"TerminationDetailsForm");export{p as a};
2
- //# sourceMappingURL=chunk-LDWPRPN4.js.map
1
+ import{a as e}from"./chunk-BVFQ6LFD.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function p({onSubmit:t}){let{terminationBag:o}=a(),n=i(async r=>{let m=await o?.parseFormValues(r);await t?.(m),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:n})}i(p,"TerminationDetailsForm");export{p as a};
2
+ //# sourceMappingURL=chunk-YPUP5LNV.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-BC4UT7KC.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{b as t}from"./chunk-X6ZAR7ZL.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-I2ED6EUG.js.map
1
+ import{a as m}from"./chunk-WEAO46EO.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{b as t}from"./chunk-X6ZAR7ZL.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-YWZHBXEI.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-WD5DNUSS.js";import{a as p}from"./chunk-HU453KWI.js";import{a as e}from"./chunk-A37NW25N.js";import{a as f}from"./chunk-DCB2H2SG.js";import{a as l}from"./chunk-P3QDMRCC.js";import{a as u}from"./chunk-TGLB5MA2.js";import{a as n}from"./chunk-VAWEOFUO.js";import{a as s}from"./chunk-4SGUDT5K.js";import{a}from"./chunk-MUJT3F2Q.js";import{a as d}from"./chunk-DI3XZUMY.js";import{a as c}from"./chunk-JXXZH6KH.js";import{a as r}from"./chunk-Q3ALCPJN.js";import{a as i}from"./chunk-JITSAYF7.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as R,useRef as F,useMemo as y}from"react";import{jsx as V}from"react/jsx-runtime";var K=t(({render:S,employmentId:C,externalId:g,countryCode:b,skipSteps:P,initialValues:v,options:O})=>{let o=i({options:O,employmentId:C,externalId:g,countryCode:b,skipSteps:P,initialValues:v}),B=R(),w=F(void 0),I=y(()=>({setValue:w}),[]);return V(r.Provider,{value:{contractorOnboardingBag:o,formId:B,formRef:I},children:S({contractorOnboardingBag:o,components:{BasicInformationStep:a,SelectCountryStep:e,BackButton:n,SubmitButton:m,PricingPlanStep:p,EligibilityQuestionnaireStep:u,ChooseAlternativePlanStep:d,ContractDetailsStep:c,ContractPreviewStep:f,OnboardingInvite:s,ContractReviewButton:l}})})},"ContractorOnboardingFlow");export{K as a};
2
- //# sourceMappingURL=chunk-VGIG5OUD.js.map
1
+ import{a as l}from"./chunk-P3QDMRCC.js";import{a as u}from"./chunk-G7EVUAYE.js";import{a as n}from"./chunk-VAWEOFUO.js";import{a as s}from"./chunk-HYYILYKU.js";import{a as m}from"./chunk-WD5DNUSS.js";import{a as p}from"./chunk-H3BUOBWO.js";import{a as e}from"./chunk-YHROBX2M.js";import{a}from"./chunk-TVIUQXLE.js";import{a as d}from"./chunk-E2LBPO5Z.js";import{a as c}from"./chunk-A7CLJBJI.js";import{a as f}from"./chunk-XNAFFHZH.js";import{a as r}from"./chunk-Q3ALCPJN.js";import{a as i}from"./chunk-2NDVHQRP.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as R,useRef as F,useMemo as y}from"react";import{jsx as V}from"react/jsx-runtime";var K=t(({render:S,employmentId:C,externalId:g,countryCode:b,skipSteps:P,initialValues:v,options:O})=>{let o=i({options:O,employmentId:C,externalId:g,countryCode:b,skipSteps:P,initialValues:v}),B=R(),w=F(void 0),I=y(()=>({setValue:w}),[]);return V(r.Provider,{value:{contractorOnboardingBag:o,formId:B,formRef:I},children:S({contractorOnboardingBag:o,components:{BasicInformationStep:a,SelectCountryStep:e,BackButton:n,SubmitButton:m,PricingPlanStep:p,EligibilityQuestionnaireStep:u,ChooseAlternativePlanStep:d,ContractDetailsStep:c,ContractPreviewStep:f,OnboardingInvite:s,ContractReviewButton:l}})})},"ContractorOnboardingFlow");export{K as a};
2
+ //# sourceMappingURL=chunk-Z3EAYQ5D.js.map
@@ -1,2 +1,2 @@
1
- import{i as a,j as i,k as s,l as p,m as F}from"./chunk-ZSJ6YADQ.js";import{a as n}from"./chunk-5R66NDTQ.js";import{a as t}from"./chunk-3PIJOIYR.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-5GAFQRDA.js.map
1
+ import{i as a,j as i,k as s,l as p,m as F}from"./chunk-H2JFQGQJ.js";import{a as n}from"./chunk-FUGPVPYX.js";import{a as t}from"./chunk-VIGKOVHP.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-ZAFGVOU5.js.map
@@ -1,2 +1,2 @@
1
- import{a as o,b as r}from"./chunk-LHEF2FN7.js";import{a as t}from"./chunk-ZPG6GRAX.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";var n={[o]:" Remote provides its Contractor Services Agreement (CSA) \u201Cas is\u201D; it does not constitute legal advice or create an attorney-client relationship with Remote. Remote is not liable for the content You enter herein and You are encouraged to seek independent legal advice tailored to the specific relationship between You and Your Contractor. By use of the CSA, You release Remote from liability for any claim for damages or losses which may arise related to Your use thereof.",[r]:"Remote provides its Contractor Services Agreement (CSA) \u201Cas is\u201D; it does not constitute legal advice or create an attorney-client relationship with Remote. Remote is not liable for the content You enter herein and You are encouraged to seek independent legal advice tailored to the specific relationship between You and Your Contractor."},d=e(({subscription:i})=>a(t,{title:"Contractor Services Agreement",description:n[i],severity:"info"}),"StatementOfWorkDisclaimer");export{d as a};
2
- //# sourceMappingURL=chunk-EPLPD54O.js.map
1
+ import{a as o,b as r}from"./chunk-LHEF2FN7.js";import{a as t}from"./chunk-SNECOPBD.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";var n={[o]:" Remote provides its Contractor Services Agreement (CSA) \u201Cas is\u201D; it does not constitute legal advice or create an attorney-client relationship with Remote. Remote is not liable for the content You enter herein and You are encouraged to seek independent legal advice tailored to the specific relationship between You and Your Contractor. By use of the CSA, You release Remote from liability for any claim for damages or losses which may arise related to Your use thereof.",[r]:"Remote provides its Contractor Services Agreement (CSA) \u201Cas is\u201D; it does not constitute legal advice or create an attorney-client relationship with Remote. Remote is not liable for the content You enter herein and You are encouraged to seek independent legal advice tailored to the specific relationship between You and Your Contractor."},d=e(({subscription:i})=>a(t,{title:"Contractor Services Agreement",description:n[i],severity:"info"}),"StatementOfWorkDisclaimer");export{d as a};
2
+ //# sourceMappingURL=chunk-ZWIH53GL.js.map
@@ -1,7 +1,7 @@
1
- import { C as Components } from './remoteFlows-Bphgh2nl.js';
1
+ import { C as Components } from './remoteFlows-PN8ksydr.js';
2
2
  import 'react';
3
3
  import 'yup';
4
- import './types.gen-Yvu8ksE5.js';
4
+ import './types.gen-COTll5I0.js';
5
5
  import './types-ZWIpiFgj.js';
6
6
  import 'react-hook-form';
7
7
 
@@ -1,2 +1,2 @@
1
- import{a as F}from"./chunk-OJ3HJ7QL.js";import{a as s}from"./chunk-WLMHGJWB.js";import{a as c}from"./chunk-4ZQ7NOAL.js";import{a as b}from"./chunk-D67Z4NEP.js";import{a as k}from"./chunk-YA2G4A3K.js";import{a as i}from"./chunk-OCTMRR2C.js";import{a as f}from"./chunk-O5ENJKI6.js";import{a}from"./chunk-GLKITZNI.js";import{a as u}from"./chunk-ZKS7DJDT.js";import{a as p}from"./chunk-HMMFY4PV.js";import{a as D}from"./chunk-MCGUHRQL.js";import{a as n}from"./chunk-OV7TLEE6.js";import{a as e}from"./chunk-5GAFQRDA.js";import{a as t}from"./chunk-UXHMIIOB.js";import{a as o}from"./chunk-RM7W6QA7.js";import{a as r}from"./chunk-PS5T7URZ.js";import"./chunk-T7CGGZOK.js";import{a as l}from"./chunk-FBE7F5HU.js";import{a as m}from"./chunk-DI2QNZ2O.js";import"./chunk-7TOCURKO.js";import"./chunk-CU3WQ2KN.js";import"./chunk-TZCNONDA.js";import{a as d}from"./chunk-BDMCADQ6.js";import"./chunk-D5NBOIPS.js";import"./chunk-XO5VURZY.js";import"./chunk-ZSJ6YADQ.js";import"./chunk-KJQN6GHW.js";import"./chunk-7SVSJ7NG.js";import"./chunk-JEULZR34.js";import"./chunk-ZPDZ6V5R.js";import"./chunk-W2PJUNWX.js";import"./chunk-5R66NDTQ.js";import"./chunk-46QJ44CZ.js";import"./chunk-OK3CYSHV.js";import"./chunk-AS4ND5IO.js";import"./chunk-W5EXVAEO.js";import"./chunk-4YPJKEHT.js";import"./chunk-2DCJODMR.js";import"./chunk-3PIJOIYR.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";var V={button:b,checkbox:s,countries:r,date:m,drawer:D,email:f,fieldsetToggle:d,file:e,"multi-select":u,number:i,radio:a,select:o,statement:l,textarea:t,text:p,zendeskDrawer:n,table:F,"work-schedule":c,pdfViewer:k};export{V as defaultComponents};
1
+ import{a as F}from"./chunk-TQXCLXWH.js";import{a as s}from"./chunk-HUZBKPGP.js";import{a as c}from"./chunk-ULP5B6DG.js";import{a as b}from"./chunk-IGLKMXWJ.js";import{a as k}from"./chunk-FRCFJ64I.js";import{a as i}from"./chunk-B66V5QEC.js";import{a as f}from"./chunk-DNDYXEZ6.js";import{a}from"./chunk-ERSP6CZ3.js";import{a as u}from"./chunk-J2BTEUAM.js";import{a as p}from"./chunk-Q73675NI.js";import{a as D}from"./chunk-HKNK5Z6N.js";import{a as n}from"./chunk-KQKH3H6S.js";import{a as e}from"./chunk-ZAFGVOU5.js";import{a as t}from"./chunk-44RIEWXA.js";import{a as o}from"./chunk-C6KWUSCU.js";import{a as r}from"./chunk-W4ECFBIA.js";import"./chunk-7RP5F62S.js";import{a as l}from"./chunk-L3LOATSG.js";import{a as m}from"./chunk-B7EJ2OAA.js";import"./chunk-DFAY4TWC.js";import"./chunk-MSBCYMSH.js";import"./chunk-EHD2YB5F.js";import{a as d}from"./chunk-SS2FAFUZ.js";import"./chunk-TOQPDTGG.js";import"./chunk-A232PIG7.js";import"./chunk-H2JFQGQJ.js";import"./chunk-7ENB7H4E.js";import"./chunk-I3TP6JKM.js";import"./chunk-SNBAM7SA.js";import"./chunk-7G5JSUZU.js";import"./chunk-VLSOHNT2.js";import"./chunk-FUGPVPYX.js";import"./chunk-DXIJUMLU.js";import"./chunk-TXQWBDNF.js";import"./chunk-PKK2EEXH.js";import"./chunk-TNN3W5TU.js";import"./chunk-RJY6AEJB.js";import"./chunk-NEWXVHFX.js";import"./chunk-VIGKOVHP.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";var V={button:b,checkbox:s,countries:r,date:m,drawer:D,email:f,fieldsetToggle:d,file:e,"multi-select":u,number:i,radio:a,select:o,statement:l,textarea:t,text:p,zendeskDrawer:n,table:F,"work-schedule":c,pdfViewer:k};export{V as defaultComponents};
2
2
  //# sourceMappingURL=default-components.js.map
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { P as PostCreateContractAmendmentError, b as ContractAmendmentResponse } from '../../types.gen-Yvu8ksE5.js';
2
+ import { P as PostCreateContractAmendmentError, b as ContractAmendmentResponse } from '../../types.gen-COTll5I0.js';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
 
5
5
  type ContractAmendmentConfirmationFormProps = {
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-KCTY6YAP.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-ZSJ6YADQ.js";import"../../chunk-2DCJODMR.js";import"../../chunk-3PIJOIYR.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm};
1
+ import{a}from"../../chunk-XU3B7N3C.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-H2JFQGQJ.js";import"../../chunk-NEWXVHFX.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm};
2
2
  //# sourceMappingURL=ContractAmendmentConfirmationForm.js.map
@@ -5,11 +5,11 @@ import { ContractAmendmentForm } from './ContractAmendmentForm.js';
5
5
  import { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
6
6
  import { useContractAmendment } from './hooks.js';
7
7
  import { ContractAmendmentParams } from './types.js';
8
- import '../../types.gen-Yvu8ksE5.js';
8
+ import '../../types.gen-COTll5I0.js';
9
9
  import 'react-hook-form';
10
10
  import 'react';
11
- import '../../mutations-B8OzuyhA.js';
12
- import '../../remoteFlows-Bphgh2nl.js';
11
+ import '../../mutations-DfpgjZty.js';
12
+ import '../../remoteFlows-PN8ksydr.js';
13
13
  import 'yup';
14
14
  import '../../types-ZWIpiFgj.js';
15
15
  import '@remoteoss/json-schema-form';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-37RBGAMM.js";import"../../chunk-KCTY6YAP.js";import"../../chunk-HLAKUOQB.js";import"../../chunk-LNV36S6D.js";import"../../chunk-VSYION5R.js";import"../../chunk-5F7FMTGE.js";import"../../chunk-ZPG6GRAX.js";import"../../chunk-U6LRMWRI.js";import"../../chunk-NOY2YNXO.js";import"../../chunk-KUTIJABX.js";import"../../chunk-EAF6XPH6.js";import"../../chunk-EUSCQL4H.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-TZCNONDA.js";import"../../chunk-BDMCADQ6.js";import"../../chunk-D5NBOIPS.js";import"../../chunk-XO5VURZY.js";import"../../chunk-ZSJ6YADQ.js";import"../../chunk-KJQN6GHW.js";import"../../chunk-4YPJKEHT.js";import"../../chunk-2DCJODMR.js";import"../../chunk-3PIJOIYR.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-D5AR26AI.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
1
+ import{a}from"../../chunk-MLVB5MYU.js";import"../../chunk-XU3B7N3C.js";import"../../chunk-BG66XH5L.js";import"../../chunk-LNV36S6D.js";import"../../chunk-SLLDKJ7K.js";import"../../chunk-HOR3KPOZ.js";import"../../chunk-SNECOPBD.js";import"../../chunk-U6LRMWRI.js";import"../../chunk-BGRX3DBF.js";import"../../chunk-EAF6XPH6.js";import"../../chunk-JI4CYPLW.js";import"../../chunk-EUSCQL4H.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-EHD2YB5F.js";import"../../chunk-SS2FAFUZ.js";import"../../chunk-TOQPDTGG.js";import"../../chunk-A232PIG7.js";import"../../chunk-H2JFQGQJ.js";import"../../chunk-7ENB7H4E.js";import"../../chunk-RJY6AEJB.js";import"../../chunk-NEWXVHFX.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-D5AR26AI.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
2
2
  //# sourceMappingURL=ContractAmendmentFlow.js.map
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { c as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-Yvu8ksE5.js';
2
+ import { c as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-COTll5I0.js';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
 
5
5
  type ContractAmendmentFormProps = {
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-HLAKUOQB.js";import"../../chunk-LNV36S6D.js";import"../../chunk-VSYION5R.js";import"../../chunk-5F7FMTGE.js";import"../../chunk-ZPG6GRAX.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-TZCNONDA.js";import"../../chunk-BDMCADQ6.js";import"../../chunk-D5NBOIPS.js";import"../../chunk-XO5VURZY.js";import"../../chunk-ZSJ6YADQ.js";import"../../chunk-KJQN6GHW.js";import"../../chunk-4YPJKEHT.js";import"../../chunk-2DCJODMR.js";import"../../chunk-3PIJOIYR.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
1
+ import{a}from"../../chunk-BG66XH5L.js";import"../../chunk-LNV36S6D.js";import"../../chunk-SLLDKJ7K.js";import"../../chunk-HOR3KPOZ.js";import"../../chunk-SNECOPBD.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-EHD2YB5F.js";import"../../chunk-SS2FAFUZ.js";import"../../chunk-TOQPDTGG.js";import"../../chunk-A232PIG7.js";import"../../chunk-H2JFQGQJ.js";import"../../chunk-7ENB7H4E.js";import"../../chunk-RJY6AEJB.js";import"../../chunk-NEWXVHFX.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
2
2
  //# sourceMappingURL=ContractAmendmentForm.js.map
@@ -1,7 +1,7 @@
1
- import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-Yvu8ksE5.js';
1
+ import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-COTll5I0.js';
2
2
  import * as React from 'react';
3
- import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-B8OzuyhA.js';
4
- import '../../remoteFlows-Bphgh2nl.js';
3
+ import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-DfpgjZty.js';
4
+ import '../../remoteFlows-PN8ksydr.js';
5
5
  import * as react_hook_form from 'react-hook-form';
6
6
  import { useContractAmendment } from './hooks.js';
7
7
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
@@ -1,12 +1,12 @@
1
- import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-Yvu8ksE5.js';
2
- import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-B8OzuyhA.js';
1
+ import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-COTll5I0.js';
2
+ import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-DfpgjZty.js';
3
3
  import * as React from 'react';
4
4
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
5
5
  import * as _remoteoss_json_schema_form_v0_deprecated from '@remoteoss/json-schema-form-v0-deprecated';
6
6
  import { Step } from '../useStepState.js';
7
7
  import { FieldValues } from 'react-hook-form';
8
8
  import { ContractAmendmentParams } from './types.js';
9
- import '../../remoteFlows-Bphgh2nl.js';
9
+ import '../../remoteFlows-PN8ksydr.js';
10
10
  import 'yup';
11
11
  import '../../types-ZWIpiFgj.js';
12
12
  import '../types.js';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-NOY2YNXO.js";import"../../chunk-KUTIJABX.js";import"../../chunk-EAF6XPH6.js";import"../../chunk-EUSCQL4H.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-KJQN6GHW.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as useContractAmendment};
1
+ import{a}from"../../chunk-BGRX3DBF.js";import"../../chunk-EAF6XPH6.js";import"../../chunk-JI4CYPLW.js";import"../../chunk-EUSCQL4H.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-7ENB7H4E.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as useContractAmendment};
2
2
  //# sourceMappingURL=hooks.js.map
@@ -4,17 +4,17 @@ export { ContractAmendmentForm } from './ContractAmendmentForm.js';
4
4
  export { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
5
5
  export { useContractAmendment } from './hooks.js';
6
6
  import 'react/jsx-runtime';
7
- import '../../types.gen-Yvu8ksE5.js';
7
+ import '../../types.gen-COTll5I0.js';
8
8
  import 'react-hook-form';
9
9
  import './ContractAmendmentBack.js';
10
10
  import 'react';
11
11
  import './types.js';
12
12
  import '../types.js';
13
- import '../../remoteFlows-Bphgh2nl.js';
13
+ import '../../remoteFlows-PN8ksydr.js';
14
14
  import 'yup';
15
15
  import '../../types-ZWIpiFgj.js';
16
16
  import '@remoteoss/remote-json-schema-form-kit';
17
- import '../../mutations-B8OzuyhA.js';
17
+ import '../../mutations-DfpgjZty.js';
18
18
  import '@remoteoss/json-schema-form';
19
19
  import '@remoteoss/json-schema-form-v0-deprecated';
20
20
  import '../useStepState.js';
@@ -1,2 +1,2 @@
1
- import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-37RBGAMM.js";import{a}from"../../chunk-KCTY6YAP.js";import{a as b}from"../../chunk-HLAKUOQB.js";import"../../chunk-LNV36S6D.js";import"../../chunk-VSYION5R.js";import"../../chunk-5F7FMTGE.js";import"../../chunk-ZPG6GRAX.js";import{a as c}from"../../chunk-U6LRMWRI.js";import{a as d}from"../../chunk-NOY2YNXO.js";import"../../chunk-KUTIJABX.js";import"../../chunk-EAF6XPH6.js";import"../../chunk-EUSCQL4H.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-TZCNONDA.js";import"../../chunk-BDMCADQ6.js";import"../../chunk-D5NBOIPS.js";import"../../chunk-XO5VURZY.js";import"../../chunk-ZSJ6YADQ.js";import"../../chunk-KJQN6GHW.js";import"../../chunk-4YPJKEHT.js";import"../../chunk-2DCJODMR.js";import"../../chunk-3PIJOIYR.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-D5AR26AI.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
1
+ import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-MLVB5MYU.js";import{a}from"../../chunk-XU3B7N3C.js";import{a as b}from"../../chunk-BG66XH5L.js";import"../../chunk-LNV36S6D.js";import"../../chunk-SLLDKJ7K.js";import"../../chunk-HOR3KPOZ.js";import"../../chunk-SNECOPBD.js";import{a as c}from"../../chunk-U6LRMWRI.js";import{a as d}from"../../chunk-BGRX3DBF.js";import"../../chunk-EAF6XPH6.js";import"../../chunk-JI4CYPLW.js";import"../../chunk-EUSCQL4H.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-EHD2YB5F.js";import"../../chunk-SS2FAFUZ.js";import"../../chunk-TOQPDTGG.js";import"../../chunk-A232PIG7.js";import"../../chunk-H2JFQGQJ.js";import"../../chunk-7ENB7H4E.js";import"../../chunk-RJY6AEJB.js";import"../../chunk-NEWXVHFX.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-D5AR26AI.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import { FlowOptions } from '../types.js';
2
- import '../../remoteFlows-Bphgh2nl.js';
2
+ import '../../remoteFlows-PN8ksydr.js';
3
3
  import 'react';
4
4
  import 'yup';
5
- import '../../types.gen-Yvu8ksE5.js';
5
+ import '../../types.gen-COTll5I0.js';
6
6
  import '../../types-ZWIpiFgj.js';
7
7
  import 'react-hook-form';
8
8
  import '@remoteoss/remote-json-schema-form-kit';
@@ -1,5 +1,5 @@
1
- import { E as Employment } from '../../types.gen-Yvu8ksE5.js';
2
- import { J as JSFFields } from '../../remoteFlows-Bphgh2nl.js';
1
+ import { E as Employment } from '../../types.gen-COTll5I0.js';
2
+ import { J as JSFFields } from '../../remoteFlows-PN8ksydr.js';
3
3
  import { Step } from '../useStepState.js';
4
4
  import 'react';
5
5
  import 'yup';
@@ -1,20 +1,20 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as ContractorOnboardingFlowProps } from '../../types-Dr-apmY1.js';
2
+ import { C as ContractorOnboardingFlowProps } from '../../types-D9-E_Ywz.js';
3
3
  import './constants.js';
4
- import '../../types.gen-Yvu8ksE5.js';
4
+ import '../../types.gen-COTll5I0.js';
5
5
  import './components/OnboardingBack.js';
6
6
  import 'react';
7
7
  import './components/OnboardingSubmit.js';
8
- import '../../remoteFlows-Bphgh2nl.js';
8
+ import '../../remoteFlows-PN8ksydr.js';
9
9
  import 'yup';
10
10
  import '../../types-ZWIpiFgj.js';
11
11
  import 'react-hook-form';
12
- import '../../mutations-B8OzuyhA.js';
12
+ import '../../mutations-DfpgjZty.js';
13
13
  import '@tanstack/query-core';
14
14
  import '../useStepState.js';
15
15
  import '@remoteoss/remote-json-schema-form-kit';
16
16
  import './utils.js';
17
- import '../../types-Dcg5CIEH.js';
17
+ import '../../types-BK2JZJKy.js';
18
18
  import '../Onboarding/components/OnboardingBack.js';
19
19
  import '../Onboarding/components/OnboardingInvite.js';
20
20
  import '../Onboarding/components/OnboardingSubmit.js';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-VGIG5OUD.js";import"../../chunk-WD5DNUSS.js";import"../../chunk-HU453KWI.js";import"../../chunk-A37NW25N.js";import"../../chunk-DCB2H2SG.js";import"../../chunk-P3QDMRCC.js";import"../../chunk-TGLB5MA2.js";import"../../chunk-VAWEOFUO.js";import"../../chunk-4SGUDT5K.js";import"../../chunk-MUJT3F2Q.js";import"../../chunk-DI3XZUMY.js";import"../../chunk-JXXZH6KH.js";import"../../chunk-EPLPD54O.js";import"../../chunk-S63QGDMR.js";import"../../chunk-4WSJ2A6Q.js";import"../../chunk-Q3ALCPJN.js";import"../../chunk-JITSAYF7.js";import"../../chunk-RKS3FX3C.js";import"../../chunk-3UDRMQNE.js";import"../../chunk-CD6F3H7B.js";import"../../chunk-IUCFOQAD.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-VLKG3SNS.js";import"../../chunk-E6256SK7.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-3FCX7SWN.js";import"../../chunk-LHEF2FN7.js";import"../../chunk-STEDOWHX.js";import"../../chunk-STF3NTPS.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-3XG2MGD3.js";import"../../chunk-LNV36S6D.js";import"../../chunk-VSYION5R.js";import"../../chunk-5F7FMTGE.js";import"../../chunk-ZPG6GRAX.js";import"../../chunk-KUTIJABX.js";import"../../chunk-EUSCQL4H.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-TZCNONDA.js";import"../../chunk-BDMCADQ6.js";import"../../chunk-D5NBOIPS.js";import"../../chunk-XO5VURZY.js";import"../../chunk-ZSJ6YADQ.js";import"../../chunk-KJQN6GHW.js";import"../../chunk-W5EXVAEO.js";import"../../chunk-4YPJKEHT.js";import"../../chunk-2DCJODMR.js";import"../../chunk-3PIJOIYR.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
1
+ import{a}from"../../chunk-Z3EAYQ5D.js";import"../../chunk-P3QDMRCC.js";import"../../chunk-G7EVUAYE.js";import"../../chunk-VAWEOFUO.js";import"../../chunk-HYYILYKU.js";import"../../chunk-WD5DNUSS.js";import"../../chunk-H3BUOBWO.js";import"../../chunk-YHROBX2M.js";import"../../chunk-TVIUQXLE.js";import"../../chunk-E2LBPO5Z.js";import"../../chunk-A7CLJBJI.js";import"../../chunk-ZWIH53GL.js";import"../../chunk-XNAFFHZH.js";import"../../chunk-OEXY56S2.js";import"../../chunk-4WSJ2A6Q.js";import"../../chunk-Q3ALCPJN.js";import"../../chunk-2NDVHQRP.js";import"../../chunk-SLD227LM.js";import"../../chunk-STF3NTPS.js";import"../../chunk-QECFSTI4.js";import"../../chunk-E6256SK7.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-UB6PYKNX.js";import"../../chunk-WO54IG4S.js";import"../../chunk-3UDRMQNE.js";import"../../chunk-3DMWQJ5W.js";import"../../chunk-RAH453TV.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-HQAHUE5P.js";import"../../chunk-LHEF2FN7.js";import"../../chunk-LNV36S6D.js";import"../../chunk-SLLDKJ7K.js";import"../../chunk-HOR3KPOZ.js";import"../../chunk-SNECOPBD.js";import"../../chunk-JI4CYPLW.js";import"../../chunk-EUSCQL4H.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-EHD2YB5F.js";import"../../chunk-SS2FAFUZ.js";import"../../chunk-TOQPDTGG.js";import"../../chunk-A232PIG7.js";import"../../chunk-H2JFQGQJ.js";import"../../chunk-7ENB7H4E.js";import"../../chunk-TNN3W5TU.js";import"../../chunk-RJY6AEJB.js";import"../../chunk-NEWXVHFX.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
2
2
  //# sourceMappingURL=ContractorOnboarding.js.map
@@ -1,8 +1,8 @@
1
1
  import * as _tanstack_query_core from '@tanstack/query-core';
2
2
  import * as _tanstack_react_query from '@tanstack/react-query';
3
3
  import { UseQueryResult } from '@tanstack/react-query';
4
- import { J as UploadFileResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, K as FileParams, S as SuccessResponse, B as BadRequestResponse, F as ForbiddenResponse, L as SignContractDocument, p as Signatory, Q as ContractorSubscriptionsSummary, W as ManageContractorPlusSubscriptionOperationsParams, n as CreateContractDocumentResponse, X as CreateContractDocument, Y as File, Z as DateTimeIso8601, _ as ContractDocumentItem, $ as EligibilityQuestionnaireResponse, a0 as ConflictErrorResponse, a1 as SubmitEligibilityQuestionnaireRequest } from '../../types.gen-Yvu8ksE5.js';
5
- import { a as JSFFieldset, $ as $TSFixMe } from '../../remoteFlows-Bphgh2nl.js';
4
+ import { J as UploadFileResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, K as FileParams, S as SuccessResponse, B as BadRequestResponse, F as ForbiddenResponse, L as SignContractDocument, h as Signatory, Q as ContractorSubscriptionsSummary, W as ManageContractorPlusSubscriptionOperationsParams, f as CreateContractDocumentResponse, X as CreateContractDocument, Y as Country, Z as File, _ as DateTimeIso8601, $ as ContractDocumentItem, a0 as EligibilityQuestionnaireResponse, a1 as ConflictErrorResponse, a2 as SubmitEligibilityQuestionnaireRequest } from '../../types.gen-COTll5I0.js';
5
+ import { a as JSFFieldset, $ as $TSFixMe } from '../../remoteFlows-PN8ksydr.js';
6
6
  import { FormResult } from '@remoteoss/remote-json-schema-form-kit';
7
7
  import { JSFModify, FlowOptions, JSONSchemaFormResultWithFieldsets } from '../types.js';
8
8
  import { FieldValues } from 'react-hook-form';
@@ -136,7 +136,10 @@ declare const useCreateContractorContractDocument: () => _tanstack_react_query.U
136
136
  employmentId: string;
137
137
  payload: CreateContractDocument;
138
138
  }, unknown>;
139
- declare const useContractorSubscriptionSchemaField: (employmentId: string, options?: FlowOptions & {
139
+ type SelectedCountry = (Pick<Country, 'eor_onboarding' | 'contractor_products_available'> & {
140
+ label: string;
141
+ }) | undefined;
142
+ declare const useContractorSubscriptionSchemaField: (employmentId: string, selectedCountry: SelectedCountry, options?: FlowOptions & {
140
143
  queryOptions?: {
141
144
  enabled?: boolean;
142
145
  };
@@ -152,7 +155,7 @@ declare const useContractorSubscriptionSchemaField: (employmentId: string, optio
152
155
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<ContractorSubscriptionsSummary[] | undefined, Error>>;
153
156
  isEligibilityQuestionnaireBlocked: boolean | undefined;
154
157
  };
155
- declare const useGetChooseAlternativePlan: (employmentId: string, options?: FlowOptions & {
158
+ declare const useGetChooseAlternativePlan: (employmentId: string, selectedCountry: SelectedCountry, options?: FlowOptions & {
156
159
  queryOptions?: {
157
160
  enabled?: boolean;
158
161
  };
@@ -511,6 +514,8 @@ declare const useCountriesSchemaField: (options?: Omit<FlowOptions, "jsonSchemaV
511
514
  countries: {
512
515
  label: string;
513
516
  value: string;
517
+ eor_onboarding: boolean | undefined;
518
+ contractor_products_available: ("standard" | "cor" | "plus")[] | undefined;
514
519
  }[] | undefined;
515
520
  };
516
521
  /**
@@ -1,2 +1,2 @@
1
- import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r as q}from"../../chunk-VLKG3SNS.js";import"../../chunk-E6256SK7.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-3FCX7SWN.js";import"../../chunk-LHEF2FN7.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-3XG2MGD3.js";import"../../chunk-EUSCQL4H.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-KJQN6GHW.js";import"../../chunk-3PIJOIYR.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{q as useContractorOnboardingDetailsSchemaWithCurrencies,g as useContractorSubscriptionSchemaField,p as useCountriesSchemaField,f as useCreateContractorContractDocument,o as useDeleteContractorCorSubscription,h as useGetChooseAlternativePlan,a as useGetContractDocumentSignatureSchema,k as useGetContractDocuments,d as useGetContractorSubscriptions,l as useGetEligibilityQuestionnaire,j as useGetIR35File,c as useGetShowContractDocument,m as usePostCreateEligibilityQuestionnaire,n as usePostManageContractorCorSubscription,e as usePostManageContractorSubscriptions,b as useSignContractDocument,i as useUpdateUKandSaudiFields};
1
+ import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o,s as p,t as q}from"../../chunk-QECFSTI4.js";import"../../chunk-E6256SK7.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-UB6PYKNX.js";import"../../chunk-HQAHUE5P.js";import"../../chunk-LHEF2FN7.js";import"../../chunk-EUSCQL4H.js";import"../../chunk-T7O3YYOG.js";import"../../chunk-7ENB7H4E.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{q as useContractorOnboardingDetailsSchemaWithCurrencies,g as useContractorSubscriptionSchemaField,p as useCountriesSchemaField,f as useCreateContractorContractDocument,o as useDeleteContractorCorSubscription,h as useGetChooseAlternativePlan,a as useGetContractDocumentSignatureSchema,k as useGetContractDocuments,d as useGetContractorSubscriptions,l as useGetEligibilityQuestionnaire,j as useGetIR35File,c as useGetShowContractDocument,m as usePostCreateEligibilityQuestionnaire,n as usePostManageContractorCorSubscription,e as usePostManageContractorSubscriptions,b as useSignContractDocument,i as useUpdateUKandSaudiFields};
2
2
  //# sourceMappingURL=api.js.map