@remoteoss/remote-flows 1.45.0 → 1.47.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 (469) hide show
  1. package/dist/CheckboxFieldDefault-YKFNIKBQ.js +2 -0
  2. package/dist/CountryFieldDefault-JNRZX632.js +2 -0
  3. package/dist/DatePickerFieldDefault-XSTNHJYN.js +2 -0
  4. package/dist/{EmailFieldDefault-S3DO2YLL.js → EmailFieldDefault-7USH7I6B.js} +2 -2
  5. package/dist/FileUploadFieldDefault-IFQK52QA.js +2 -0
  6. package/dist/MultiSelectFieldDefault-HP5FIBJY.js +2 -0
  7. package/dist/{NumberFieldDefault-AA5UGCSR.js → NumberFieldDefault-P7TLA6SH.js} +2 -2
  8. package/dist/RadioGroupFieldDefault-AUAF4USM.js +2 -0
  9. package/dist/SelectFieldDefault-3AHIKGCW.js +2 -0
  10. package/dist/TelFieldDefault-Q7HOBD4G.js +2 -0
  11. package/dist/TextAreaFieldDefault-JICC77TL.js +2 -0
  12. package/dist/TextFieldDefault-WIVGKVPT.js +2 -0
  13. package/dist/TimeFieldDefault-7GXGSJYO.js +2 -0
  14. package/dist/WorkScheduleFieldDefault-JAU2YFQF.js +2 -0
  15. package/dist/{chunk-KF54ACZP.js → chunk-2BYDZSR5.js} +2 -2
  16. package/dist/{chunk-IMCNVNKF.js → chunk-2DRF5M3J.js} +2 -2
  17. package/dist/{chunk-726N45PF.js → chunk-2EKQ35Z2.js} +2 -2
  18. package/dist/{chunk-SY7QZIKZ.js → chunk-2EM7DTD6.js} +2 -2
  19. package/dist/{chunk-VYLSS2C7.js → chunk-2OCNNZ5U.js} +2 -2
  20. package/dist/{chunk-UHFNNG5S.js → chunk-3CSN7WUM.js} +2 -2
  21. package/dist/{chunk-PQGDGJLG.js → chunk-3HA6BIFT.js} +2 -2
  22. package/dist/{chunk-ZZWI5S72.js → chunk-3HGUMECW.js} +2 -2
  23. package/dist/{chunk-A3EQ7FNB.js → chunk-57NWP6J7.js} +2 -2
  24. package/dist/{chunk-H7PNNMW5.js → chunk-5QNR3U6E.js} +2 -2
  25. package/dist/{chunk-NPXIFNK2.js → chunk-62XCZZJ3.js} +2 -2
  26. package/dist/{chunk-4FV6Z3HE.js → chunk-6GSJHAPZ.js} +2 -2
  27. package/dist/{chunk-FMRWWDZE.js → chunk-6XT3ARIZ.js} +2 -2
  28. package/dist/{chunk-52GHCI6X.js → chunk-A5RTFMYQ.js} +2 -2
  29. package/dist/chunk-A5VJNO74.js +2 -0
  30. package/dist/chunk-A5VJNO74.js.map +1 -0
  31. package/dist/{chunk-JPVSXGCC.js → chunk-AAOU5HS2.js} +2 -2
  32. package/dist/{chunk-2EGFPBT7.js → chunk-ATRYDXM2.js} +2 -2
  33. package/dist/{chunk-T3IHAH3B.js → chunk-B2EUK7V5.js} +2 -2
  34. package/dist/{chunk-WMUF335R.js → chunk-B7UUTLAM.js} +2 -2
  35. package/dist/{chunk-LGSOTN4M.js → chunk-BGEDMAHU.js} +2 -2
  36. package/dist/chunk-BODQC6OK.js +2 -0
  37. package/dist/chunk-BODQC6OK.js.map +1 -0
  38. package/dist/{chunk-4IEAIF46.js → chunk-BXWYSFLP.js} +2 -2
  39. package/dist/{chunk-PMIGYQEX.js → chunk-CD2QYFEH.js} +2 -2
  40. package/dist/{chunk-BIE73HZH.js → chunk-CFI75D3K.js} +2 -2
  41. package/dist/{chunk-QDTMDSL5.js → chunk-D2SVE4KC.js} +2 -2
  42. package/dist/{chunk-TC6KCSDD.js → chunk-D3EISEXY.js} +2 -2
  43. package/dist/{chunk-JXH42V2F.js → chunk-DGHXBSBS.js} +2 -2
  44. package/dist/{chunk-RFVATVNN.js → chunk-DVPC5UZZ.js} +2 -2
  45. package/dist/{chunk-XDRJTAFV.js → chunk-EGIXB43W.js} +2 -2
  46. package/dist/{chunk-RN3WPVBZ.js → chunk-EHAAVSJM.js} +2 -2
  47. package/dist/chunk-EPO6DXOK.js +2 -0
  48. package/dist/chunk-EPO6DXOK.js.map +1 -0
  49. package/dist/{chunk-6JTUAJBZ.js → chunk-EQK2O2PJ.js} +2 -2
  50. package/dist/{chunk-V2XF4QEW.js → chunk-EX4DXUEC.js} +2 -2
  51. package/dist/{chunk-GYYQWPA6.js → chunk-GCONDFJ7.js} +2 -2
  52. package/dist/{chunk-3NKRZURO.js → chunk-GE7DVVKQ.js} +2 -2
  53. package/dist/{chunk-GJ2AOENT.js → chunk-H3JAWJOE.js} +2 -2
  54. package/dist/chunk-HDOEUCXY.js +2 -0
  55. package/dist/chunk-HDOEUCXY.js.map +1 -0
  56. package/dist/{chunk-XQ65RVB7.js → chunk-HFRQIPC5.js} +2 -2
  57. package/dist/{chunk-BZ4VPC4U.js → chunk-HLLM7OZN.js} +2 -2
  58. package/dist/{chunk-XVZQBTB3.js → chunk-HOEP5XXW.js} +2 -2
  59. package/dist/chunk-HOJKP4DH.js +2 -0
  60. package/dist/chunk-HOJKP4DH.js.map +1 -0
  61. package/dist/{chunk-HU7FSSPH.js → chunk-I2CN6IKR.js} +2 -2
  62. package/dist/{chunk-BVKOMSHU.js → chunk-IN6QZASY.js} +2 -2
  63. package/dist/{chunk-7EFZVAWU.js → chunk-IUJRGT3T.js} +2 -2
  64. package/dist/{chunk-IVISBFAT.js → chunk-J2R3LJ7K.js} +2 -2
  65. package/dist/{chunk-QMJH5JND.js → chunk-J4TX4IZL.js} +2 -2
  66. package/dist/chunk-JNXNTCPZ.js +2 -0
  67. package/dist/chunk-JNXNTCPZ.js.map +1 -0
  68. package/dist/{chunk-ZCTEA2O6.js → chunk-JOININRY.js} +2 -2
  69. package/dist/{chunk-FOYZWDU5.js → chunk-JSZYIFHD.js} +2 -2
  70. package/dist/{chunk-U4PFZ54M.js → chunk-K4BWJE5D.js} +2 -2
  71. package/dist/{chunk-2RVICCFD.js → chunk-KBDRU6SO.js} +2 -2
  72. package/dist/{chunk-FXVHH75C.js → chunk-KR7PDSUA.js} +2 -2
  73. package/dist/{chunk-WL7WQBSR.js → chunk-KSZ3D3P3.js} +2 -2
  74. package/dist/{chunk-GWQJKZ3M.js → chunk-LZM3BNK3.js} +2 -2
  75. package/dist/{chunk-3O7L6JUX.js → chunk-MREG2JYT.js} +2 -2
  76. package/dist/{chunk-STFU4KD6.js → chunk-MTGLBR6N.js} +2 -2
  77. package/dist/{chunk-WJAGRH76.js → chunk-NNU32TXH.js} +2 -2
  78. package/dist/{chunk-SK7MIRZS.js → chunk-NOE5LQOQ.js} +2 -2
  79. package/dist/{chunk-O2M7ZWVK.js → chunk-NQWB6O7Z.js} +2 -2
  80. package/dist/{chunk-43XVHRYM.js → chunk-NVIBQAC6.js} +2 -2
  81. package/dist/{chunk-R6QQPJ3F.js → chunk-OGGW2JBW.js} +2 -2
  82. package/dist/{chunk-FFFB5CG2.js → chunk-OHNH7V7X.js} +2 -2
  83. package/dist/{chunk-6LQ2EP7Y.js → chunk-OK4L3KCU.js} +2 -2
  84. package/dist/{chunk-AW436CZP.js → chunk-OPVIHDW2.js} +2 -2
  85. package/dist/{chunk-R7AWHFPG.js → chunk-Q3JA2NA7.js} +2 -2
  86. package/dist/chunk-QC67U4XA.js +2 -0
  87. package/dist/chunk-QC67U4XA.js.map +1 -0
  88. package/dist/{chunk-2TBTNTJ2.js → chunk-QDRQ64QV.js} +2 -2
  89. package/dist/{chunk-J7I4WJ4G.js → chunk-QXXVWOOB.js} +2 -2
  90. package/dist/{chunk-65G3JQ7T.js → chunk-QZZJE6P7.js} +2 -2
  91. package/dist/{chunk-TAYJ2AK4.js → chunk-R4JUCNE4.js} +2 -2
  92. package/dist/{chunk-MZN6VY5F.js → chunk-RKXF7Q7V.js} +2 -2
  93. package/dist/{chunk-2FIBHHT7.js → chunk-RT7MYFKW.js} +2 -2
  94. package/dist/{chunk-BKSWQYXH.js → chunk-SFJBEQ2V.js} +2 -2
  95. package/dist/{chunk-46RBPCK6.js → chunk-SQBJ4CLO.js} +2 -2
  96. package/dist/{chunk-2JK3XRHE.js → chunk-TRMEUC36.js} +2 -2
  97. package/dist/{chunk-6BOIGCHK.js → chunk-TWJPM5ED.js} +2 -2
  98. package/dist/{chunk-D2PYVF6J.js → chunk-TYVAIHMS.js} +2 -2
  99. package/dist/chunk-U4EJUZPI.js +2 -0
  100. package/dist/chunk-U4EJUZPI.js.map +1 -0
  101. package/dist/{chunk-WTJJEIF2.js → chunk-U5AS2HUX.js} +2 -2
  102. package/dist/{chunk-UETHEV7Q.js → chunk-UBRHAMPE.js} +2 -2
  103. package/dist/{chunk-6SNWSCXH.js → chunk-ULCAT6MG.js} +2 -2
  104. package/dist/{chunk-MS2MOZGL.js → chunk-UWJ3TB2O.js} +2 -2
  105. package/dist/chunk-UWSG45OM.js +2 -0
  106. package/dist/chunk-UWSG45OM.js.map +1 -0
  107. package/dist/{chunk-KV4SSPEB.js → chunk-V24SYZ5Y.js} +2 -2
  108. package/dist/{chunk-VHKLNEC2.js → chunk-V4DAA7QL.js} +2 -2
  109. package/dist/{chunk-YZKQB7WG.js → chunk-V5TMPQVK.js} +2 -2
  110. package/dist/{chunk-YZKQB7WG.js.map → chunk-V5TMPQVK.js.map} +1 -1
  111. package/dist/{chunk-MQK33NLF.js → chunk-V65WVOGC.js} +2 -2
  112. package/dist/{chunk-FII45OPC.js → chunk-VUKFUYLG.js} +2 -2
  113. package/dist/{chunk-ZWA5FYVS.js → chunk-W4JTBWHM.js} +2 -2
  114. package/dist/{chunk-INUCPQVI.js → chunk-WDO7XH6B.js} +2 -2
  115. package/dist/{chunk-TVTJS3PE.js → chunk-WE2AFK6Y.js} +2 -2
  116. package/dist/{chunk-LD633A5N.js → chunk-WI4YITIC.js} +2 -2
  117. package/dist/{chunk-P5NAMZNA.js → chunk-WNI5NWFU.js} +2 -2
  118. package/dist/{chunk-H6XSWBE5.js → chunk-XG3CGRPZ.js} +2 -2
  119. package/dist/{chunk-XPITUVQE.js → chunk-XI55YG73.js} +2 -2
  120. package/dist/{chunk-XPITUVQE.js.map → chunk-XI55YG73.js.map} +1 -1
  121. package/dist/{chunk-NGCNYQSC.js → chunk-Y7PBPPUC.js} +2 -2
  122. package/dist/{chunk-DL6MFAFK.js → chunk-YWLILBPW.js} +2 -2
  123. package/dist/chunk-ZHELRFOX.js +2 -0
  124. package/dist/chunk-ZHELRFOX.js.map +1 -0
  125. package/dist/default-components.d.ts +1 -1
  126. package/dist/default-components.js +1 -1
  127. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +2 -2
  128. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  129. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  130. package/dist/flows/ContractAmendment/context.d.ts +2 -2
  131. package/dist/flows/ContractAmendment/hooks.d.ts +2 -2
  132. package/dist/flows/ContractAmendment/hooks.js +1 -1
  133. package/dist/flows/ContractAmendment/index.d.ts +2 -2
  134. package/dist/flows/ContractAmendment/index.js +1 -1
  135. package/dist/flows/ContractAmendment/types.d.ts +2 -2
  136. package/dist/flows/ContractAmendment/utils.d.ts +1 -1
  137. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +4 -4
  138. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  139. package/dist/flows/ContractorOnboarding/api.d.ts +2 -2
  140. package/dist/flows/ContractorOnboarding/api.js +1 -1
  141. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +3 -3
  142. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  143. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +4 -4
  144. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  145. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.d.ts +2 -2
  146. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.js +1 -1
  147. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +1 -1
  148. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +1 -1
  149. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +4 -4
  150. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  151. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +4 -4
  152. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  153. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +4 -4
  154. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  155. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +2 -2
  156. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  157. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +4 -4
  158. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  159. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +2 -2
  160. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +3 -3
  161. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  162. package/dist/flows/ContractorOnboarding/context.d.ts +4 -4
  163. package/dist/flows/ContractorOnboarding/hooks.d.ts +4 -4
  164. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  165. package/dist/flows/ContractorOnboarding/index.d.ts +4 -4
  166. package/dist/flows/ContractorOnboarding/index.js +1 -1
  167. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +4 -4
  168. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  169. package/dist/flows/ContractorOnboarding/types.d.ts +4 -4
  170. package/dist/flows/ContractorOnboarding/utils.d.ts +3 -3
  171. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +2 -2
  172. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  173. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +2 -2
  174. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  175. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
  176. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  177. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
  178. package/dist/flows/CostCalculator/api.d.ts +2 -2
  179. package/dist/flows/CostCalculator/api.js +1 -1
  180. package/dist/flows/CostCalculator/components/SalaryField.d.ts +3 -2
  181. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  182. package/dist/flows/CostCalculator/context.d.ts +2 -2
  183. package/dist/flows/CostCalculator/hooks.d.ts +2 -2
  184. package/dist/flows/CostCalculator/hooks.js +1 -1
  185. package/dist/flows/CostCalculator/index.d.ts +2 -2
  186. package/dist/flows/CostCalculator/index.js +1 -1
  187. package/dist/flows/CostCalculator/types.d.ts +12 -3
  188. package/dist/flows/CostCalculator/utils.d.ts +2 -2
  189. package/dist/flows/CostCalculator/utils.js +1 -1
  190. package/dist/flows/CreateCompany/CreateCompany.d.ts +3 -3
  191. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  192. package/dist/flows/CreateCompany/api.d.ts +2 -2
  193. package/dist/flows/CreateCompany/api.js +1 -1
  194. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +3 -3
  195. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  196. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +3 -3
  197. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  198. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +1 -1
  199. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  200. package/dist/flows/CreateCompany/context.d.ts +3 -3
  201. package/dist/flows/CreateCompany/hooks.d.ts +3 -3
  202. package/dist/flows/CreateCompany/hooks.js +1 -1
  203. package/dist/flows/CreateCompany/index.d.ts +3 -3
  204. package/dist/flows/CreateCompany/index.js +1 -1
  205. package/dist/flows/CreateCompany/types.d.ts +3 -3
  206. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.d.ts +2 -2
  207. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js +1 -1
  208. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.d.ts +1 -1
  209. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js +1 -1
  210. package/dist/flows/JsonSchemaPlayground/context.d.ts +2 -2
  211. package/dist/flows/JsonSchemaPlayground/hooks.d.ts +2 -2
  212. package/dist/flows/JsonSchemaPlayground/index.d.ts +2 -2
  213. package/dist/flows/JsonSchemaPlayground/index.js +1 -1
  214. package/dist/flows/JsonSchemaPlayground/types.d.ts +2 -2
  215. package/dist/flows/Onboarding/OnboardingFlow.d.ts +3 -3
  216. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  217. package/dist/flows/Onboarding/api.d.ts +3 -3
  218. package/dist/flows/Onboarding/api.js +1 -1
  219. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +3 -2
  220. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  221. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +3 -3
  222. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  223. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +3 -3
  224. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  225. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +3 -3
  226. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  227. package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.js +1 -1
  228. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +3 -3
  229. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  230. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +3 -3
  231. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  232. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +2 -2
  233. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  234. package/dist/flows/Onboarding/components/PreOnboardingRequirements.d.ts +3 -3
  235. package/dist/flows/Onboarding/components/PreOnboardingRequirements.js +1 -1
  236. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js +1 -1
  237. package/dist/flows/Onboarding/components/ReviewStep.d.ts +3 -3
  238. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +2 -2
  239. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +3 -3
  240. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  241. package/dist/flows/Onboarding/context.d.ts +5 -5
  242. package/dist/flows/Onboarding/hooks.d.ts +3 -3
  243. package/dist/flows/Onboarding/hooks.js +1 -1
  244. package/dist/flows/Onboarding/index.d.ts +3 -3
  245. package/dist/flows/Onboarding/index.js +1 -1
  246. package/dist/flows/Onboarding/types.d.ts +3 -3
  247. package/dist/flows/Onboarding/utils.d.ts +3 -3
  248. package/dist/flows/Onboarding/utils.js +1 -1
  249. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +3 -3
  250. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +1 -1
  251. package/dist/flows/PayrollAdminOnboarding/api.d.ts +1 -1
  252. package/dist/flows/PayrollAdminOnboarding/api.js +1 -1
  253. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.d.ts +2 -2
  254. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js +1 -1
  255. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.d.ts +2 -2
  256. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js +1 -1
  257. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.d.ts +2 -2
  258. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.js +1 -1
  259. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.d.ts +1 -1
  260. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js +1 -1
  261. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.d.ts +2 -2
  262. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js +1 -1
  263. package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.d.ts +2 -2
  264. package/dist/flows/PayrollAdminOnboarding/context.d.ts +3 -3
  265. package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +3 -3
  266. package/dist/flows/PayrollAdminOnboarding/hooks.js +1 -1
  267. package/dist/flows/PayrollAdminOnboarding/index.d.ts +3 -3
  268. package/dist/flows/PayrollAdminOnboarding/index.js +1 -1
  269. package/dist/flows/PayrollAdminOnboarding/types.d.ts +3 -3
  270. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +3 -3
  271. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +1 -1
  272. package/dist/flows/PayrollEmployeeOnboarding/api.d.ts +2 -2
  273. package/dist/flows/PayrollEmployeeOnboarding/api.js +1 -1
  274. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.d.ts +2 -2
  275. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js +1 -1
  276. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.d.ts +2 -2
  277. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js +1 -1
  278. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.d.ts +2 -2
  279. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js +1 -1
  280. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.d.ts +1 -1
  281. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js +1 -1
  282. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.d.ts +2 -2
  283. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js +1 -1
  284. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.d.ts +2 -2
  285. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js +1 -1
  286. package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.d.ts +2 -2
  287. package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +3 -3
  288. package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +3 -3
  289. package/dist/flows/PayrollEmployeeOnboarding/hooks.js +1 -1
  290. package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +3 -3
  291. package/dist/flows/PayrollEmployeeOnboarding/index.js +1 -1
  292. package/dist/flows/PayrollEmployeeOnboarding/types.d.ts +3 -3
  293. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +3 -3
  294. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  295. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +3 -3
  296. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  297. package/dist/flows/Termination/PaidTimeOffForm.d.ts +3 -3
  298. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  299. package/dist/flows/Termination/TerminationDetailsForm.d.ts +3 -3
  300. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  301. package/dist/flows/Termination/TerminationFlow.d.ts +3 -3
  302. package/dist/flows/Termination/TerminationFlow.js +1 -1
  303. package/dist/flows/Termination/TerminationForm.d.ts +3 -3
  304. package/dist/flows/Termination/TerminationForm.js +1 -1
  305. package/dist/flows/Termination/api.d.ts +4 -4
  306. package/dist/flows/Termination/api.js +1 -1
  307. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  308. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +4 -4
  309. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +4 -4
  310. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  311. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +4 -4
  312. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  313. package/dist/flows/Termination/context.d.ts +3 -3
  314. package/dist/flows/Termination/hooks.d.ts +3 -3
  315. package/dist/flows/Termination/hooks.js +1 -1
  316. package/dist/flows/Termination/index.d.ts +4 -4
  317. package/dist/flows/Termination/index.js +1 -1
  318. package/dist/flows/Termination/json-schemas/schema.d.ts +3 -3
  319. package/dist/flows/Termination/types.d.ts +3 -3
  320. package/dist/flows/Termination/utils.d.ts +3 -3
  321. package/dist/flows/types.d.ts +2 -2
  322. package/dist/flows/utils.d.ts +1 -1
  323. package/dist/index.d.ts +11 -11
  324. package/dist/index.js +2 -2
  325. package/dist/internals.d.ts +3 -3
  326. package/dist/internals.js +1 -1
  327. package/dist/{mutations-CajBazWr.d.ts → mutations-DCAaAw5a.d.ts} +1 -1
  328. package/dist/{remoteFlows-DHOW-e53.d.ts → remoteFlows-dULw8FdP.d.ts} +7 -0
  329. package/dist/{types-BolF-TDg.d.ts → types-B4GARfFq.d.ts} +1 -1
  330. package/dist/{types-EcgTFN8S.d.ts → types-BUvpsq6j.d.ts} +1 -1
  331. package/dist/{types-CVrHYMLy.d.ts → types-C_UFZOHt.d.ts} +29 -6
  332. package/dist/{types-B-hNdynz.d.ts → types-Crw4jMds.d.ts} +1 -1
  333. package/dist/{types-CRAMV8FR.d.ts → types-Cwf67dnV.d.ts} +1 -1
  334. package/dist/{types-8GvnGYSN.d.ts → types-D-1MCxhm.d.ts} +2 -2
  335. package/dist/{types-C3SXCvNl.d.ts → types-DwSMO5s-.d.ts} +3 -3
  336. package/dist/{utils-D6wAHCpX.d.ts → utils-BVwm5Jyt.d.ts} +1 -1
  337. package/package.json +6 -6
  338. package/dist/CheckboxFieldDefault-62URAHJV.js +0 -2
  339. package/dist/CountryFieldDefault-24NNZN2C.js +0 -2
  340. package/dist/DatePickerFieldDefault-NMUCZ4U2.js +0 -2
  341. package/dist/FileUploadFieldDefault-4NW5VLF6.js +0 -2
  342. package/dist/MultiSelectFieldDefault-S45Z53ZY.js +0 -2
  343. package/dist/RadioGroupFieldDefault-X44FYUA3.js +0 -2
  344. package/dist/SelectFieldDefault-PLDXHTQY.js +0 -2
  345. package/dist/TelFieldDefault-IYGEEV5V.js +0 -2
  346. package/dist/TextAreaFieldDefault-C6M3PIV2.js +0 -2
  347. package/dist/TextFieldDefault-OC2TMXVF.js +0 -2
  348. package/dist/TimeFieldDefault-J6PKL5T4.js +0 -2
  349. package/dist/WorkScheduleFieldDefault-MDDNWRCO.js +0 -2
  350. package/dist/chunk-4GIQCWII.js +0 -2
  351. package/dist/chunk-4GIQCWII.js.map +0 -1
  352. package/dist/chunk-B6F2M3ZM.js +0 -2
  353. package/dist/chunk-B6F2M3ZM.js.map +0 -1
  354. package/dist/chunk-CH75YRKR.js +0 -2
  355. package/dist/chunk-CH75YRKR.js.map +0 -1
  356. package/dist/chunk-L4IKDVFW.js +0 -2
  357. package/dist/chunk-L4IKDVFW.js.map +0 -1
  358. package/dist/chunk-PG7R37J5.js +0 -2
  359. package/dist/chunk-PG7R37J5.js.map +0 -1
  360. package/dist/chunk-RG67OYQN.js +0 -2
  361. package/dist/chunk-RG67OYQN.js.map +0 -1
  362. package/dist/chunk-SLTF3CJ6.js +0 -2
  363. package/dist/chunk-SLTF3CJ6.js.map +0 -1
  364. package/dist/chunk-UYYITOOO.js +0 -2
  365. package/dist/chunk-UYYITOOO.js.map +0 -1
  366. package/dist/chunk-WS5BL2WM.js +0 -2
  367. package/dist/chunk-WS5BL2WM.js.map +0 -1
  368. package/dist/chunk-X3FRANQS.js +0 -2
  369. package/dist/chunk-X3FRANQS.js.map +0 -1
  370. /package/dist/{CheckboxFieldDefault-62URAHJV.js.map → CheckboxFieldDefault-YKFNIKBQ.js.map} +0 -0
  371. /package/dist/{CountryFieldDefault-24NNZN2C.js.map → CountryFieldDefault-JNRZX632.js.map} +0 -0
  372. /package/dist/{DatePickerFieldDefault-NMUCZ4U2.js.map → DatePickerFieldDefault-XSTNHJYN.js.map} +0 -0
  373. /package/dist/{EmailFieldDefault-S3DO2YLL.js.map → EmailFieldDefault-7USH7I6B.js.map} +0 -0
  374. /package/dist/{FileUploadFieldDefault-4NW5VLF6.js.map → FileUploadFieldDefault-IFQK52QA.js.map} +0 -0
  375. /package/dist/{MultiSelectFieldDefault-S45Z53ZY.js.map → MultiSelectFieldDefault-HP5FIBJY.js.map} +0 -0
  376. /package/dist/{NumberFieldDefault-AA5UGCSR.js.map → NumberFieldDefault-P7TLA6SH.js.map} +0 -0
  377. /package/dist/{RadioGroupFieldDefault-X44FYUA3.js.map → RadioGroupFieldDefault-AUAF4USM.js.map} +0 -0
  378. /package/dist/{SelectFieldDefault-PLDXHTQY.js.map → SelectFieldDefault-3AHIKGCW.js.map} +0 -0
  379. /package/dist/{TelFieldDefault-IYGEEV5V.js.map → TelFieldDefault-Q7HOBD4G.js.map} +0 -0
  380. /package/dist/{TextAreaFieldDefault-C6M3PIV2.js.map → TextAreaFieldDefault-JICC77TL.js.map} +0 -0
  381. /package/dist/{TextFieldDefault-OC2TMXVF.js.map → TextFieldDefault-WIVGKVPT.js.map} +0 -0
  382. /package/dist/{TimeFieldDefault-J6PKL5T4.js.map → TimeFieldDefault-7GXGSJYO.js.map} +0 -0
  383. /package/dist/{WorkScheduleFieldDefault-MDDNWRCO.js.map → WorkScheduleFieldDefault-JAU2YFQF.js.map} +0 -0
  384. /package/dist/{chunk-KF54ACZP.js.map → chunk-2BYDZSR5.js.map} +0 -0
  385. /package/dist/{chunk-IMCNVNKF.js.map → chunk-2DRF5M3J.js.map} +0 -0
  386. /package/dist/{chunk-726N45PF.js.map → chunk-2EKQ35Z2.js.map} +0 -0
  387. /package/dist/{chunk-SY7QZIKZ.js.map → chunk-2EM7DTD6.js.map} +0 -0
  388. /package/dist/{chunk-VYLSS2C7.js.map → chunk-2OCNNZ5U.js.map} +0 -0
  389. /package/dist/{chunk-UHFNNG5S.js.map → chunk-3CSN7WUM.js.map} +0 -0
  390. /package/dist/{chunk-PQGDGJLG.js.map → chunk-3HA6BIFT.js.map} +0 -0
  391. /package/dist/{chunk-ZZWI5S72.js.map → chunk-3HGUMECW.js.map} +0 -0
  392. /package/dist/{chunk-A3EQ7FNB.js.map → chunk-57NWP6J7.js.map} +0 -0
  393. /package/dist/{chunk-H7PNNMW5.js.map → chunk-5QNR3U6E.js.map} +0 -0
  394. /package/dist/{chunk-NPXIFNK2.js.map → chunk-62XCZZJ3.js.map} +0 -0
  395. /package/dist/{chunk-4FV6Z3HE.js.map → chunk-6GSJHAPZ.js.map} +0 -0
  396. /package/dist/{chunk-FMRWWDZE.js.map → chunk-6XT3ARIZ.js.map} +0 -0
  397. /package/dist/{chunk-52GHCI6X.js.map → chunk-A5RTFMYQ.js.map} +0 -0
  398. /package/dist/{chunk-JPVSXGCC.js.map → chunk-AAOU5HS2.js.map} +0 -0
  399. /package/dist/{chunk-2EGFPBT7.js.map → chunk-ATRYDXM2.js.map} +0 -0
  400. /package/dist/{chunk-T3IHAH3B.js.map → chunk-B2EUK7V5.js.map} +0 -0
  401. /package/dist/{chunk-WMUF335R.js.map → chunk-B7UUTLAM.js.map} +0 -0
  402. /package/dist/{chunk-LGSOTN4M.js.map → chunk-BGEDMAHU.js.map} +0 -0
  403. /package/dist/{chunk-4IEAIF46.js.map → chunk-BXWYSFLP.js.map} +0 -0
  404. /package/dist/{chunk-PMIGYQEX.js.map → chunk-CD2QYFEH.js.map} +0 -0
  405. /package/dist/{chunk-BIE73HZH.js.map → chunk-CFI75D3K.js.map} +0 -0
  406. /package/dist/{chunk-QDTMDSL5.js.map → chunk-D2SVE4KC.js.map} +0 -0
  407. /package/dist/{chunk-TC6KCSDD.js.map → chunk-D3EISEXY.js.map} +0 -0
  408. /package/dist/{chunk-JXH42V2F.js.map → chunk-DGHXBSBS.js.map} +0 -0
  409. /package/dist/{chunk-RFVATVNN.js.map → chunk-DVPC5UZZ.js.map} +0 -0
  410. /package/dist/{chunk-XDRJTAFV.js.map → chunk-EGIXB43W.js.map} +0 -0
  411. /package/dist/{chunk-RN3WPVBZ.js.map → chunk-EHAAVSJM.js.map} +0 -0
  412. /package/dist/{chunk-6JTUAJBZ.js.map → chunk-EQK2O2PJ.js.map} +0 -0
  413. /package/dist/{chunk-V2XF4QEW.js.map → chunk-EX4DXUEC.js.map} +0 -0
  414. /package/dist/{chunk-GYYQWPA6.js.map → chunk-GCONDFJ7.js.map} +0 -0
  415. /package/dist/{chunk-3NKRZURO.js.map → chunk-GE7DVVKQ.js.map} +0 -0
  416. /package/dist/{chunk-GJ2AOENT.js.map → chunk-H3JAWJOE.js.map} +0 -0
  417. /package/dist/{chunk-XQ65RVB7.js.map → chunk-HFRQIPC5.js.map} +0 -0
  418. /package/dist/{chunk-BZ4VPC4U.js.map → chunk-HLLM7OZN.js.map} +0 -0
  419. /package/dist/{chunk-XVZQBTB3.js.map → chunk-HOEP5XXW.js.map} +0 -0
  420. /package/dist/{chunk-HU7FSSPH.js.map → chunk-I2CN6IKR.js.map} +0 -0
  421. /package/dist/{chunk-BVKOMSHU.js.map → chunk-IN6QZASY.js.map} +0 -0
  422. /package/dist/{chunk-7EFZVAWU.js.map → chunk-IUJRGT3T.js.map} +0 -0
  423. /package/dist/{chunk-IVISBFAT.js.map → chunk-J2R3LJ7K.js.map} +0 -0
  424. /package/dist/{chunk-QMJH5JND.js.map → chunk-J4TX4IZL.js.map} +0 -0
  425. /package/dist/{chunk-ZCTEA2O6.js.map → chunk-JOININRY.js.map} +0 -0
  426. /package/dist/{chunk-FOYZWDU5.js.map → chunk-JSZYIFHD.js.map} +0 -0
  427. /package/dist/{chunk-U4PFZ54M.js.map → chunk-K4BWJE5D.js.map} +0 -0
  428. /package/dist/{chunk-2RVICCFD.js.map → chunk-KBDRU6SO.js.map} +0 -0
  429. /package/dist/{chunk-FXVHH75C.js.map → chunk-KR7PDSUA.js.map} +0 -0
  430. /package/dist/{chunk-WL7WQBSR.js.map → chunk-KSZ3D3P3.js.map} +0 -0
  431. /package/dist/{chunk-GWQJKZ3M.js.map → chunk-LZM3BNK3.js.map} +0 -0
  432. /package/dist/{chunk-3O7L6JUX.js.map → chunk-MREG2JYT.js.map} +0 -0
  433. /package/dist/{chunk-STFU4KD6.js.map → chunk-MTGLBR6N.js.map} +0 -0
  434. /package/dist/{chunk-WJAGRH76.js.map → chunk-NNU32TXH.js.map} +0 -0
  435. /package/dist/{chunk-SK7MIRZS.js.map → chunk-NOE5LQOQ.js.map} +0 -0
  436. /package/dist/{chunk-O2M7ZWVK.js.map → chunk-NQWB6O7Z.js.map} +0 -0
  437. /package/dist/{chunk-43XVHRYM.js.map → chunk-NVIBQAC6.js.map} +0 -0
  438. /package/dist/{chunk-R6QQPJ3F.js.map → chunk-OGGW2JBW.js.map} +0 -0
  439. /package/dist/{chunk-FFFB5CG2.js.map → chunk-OHNH7V7X.js.map} +0 -0
  440. /package/dist/{chunk-6LQ2EP7Y.js.map → chunk-OK4L3KCU.js.map} +0 -0
  441. /package/dist/{chunk-AW436CZP.js.map → chunk-OPVIHDW2.js.map} +0 -0
  442. /package/dist/{chunk-R7AWHFPG.js.map → chunk-Q3JA2NA7.js.map} +0 -0
  443. /package/dist/{chunk-2TBTNTJ2.js.map → chunk-QDRQ64QV.js.map} +0 -0
  444. /package/dist/{chunk-J7I4WJ4G.js.map → chunk-QXXVWOOB.js.map} +0 -0
  445. /package/dist/{chunk-65G3JQ7T.js.map → chunk-QZZJE6P7.js.map} +0 -0
  446. /package/dist/{chunk-TAYJ2AK4.js.map → chunk-R4JUCNE4.js.map} +0 -0
  447. /package/dist/{chunk-MZN6VY5F.js.map → chunk-RKXF7Q7V.js.map} +0 -0
  448. /package/dist/{chunk-2FIBHHT7.js.map → chunk-RT7MYFKW.js.map} +0 -0
  449. /package/dist/{chunk-BKSWQYXH.js.map → chunk-SFJBEQ2V.js.map} +0 -0
  450. /package/dist/{chunk-46RBPCK6.js.map → chunk-SQBJ4CLO.js.map} +0 -0
  451. /package/dist/{chunk-2JK3XRHE.js.map → chunk-TRMEUC36.js.map} +0 -0
  452. /package/dist/{chunk-6BOIGCHK.js.map → chunk-TWJPM5ED.js.map} +0 -0
  453. /package/dist/{chunk-D2PYVF6J.js.map → chunk-TYVAIHMS.js.map} +0 -0
  454. /package/dist/{chunk-WTJJEIF2.js.map → chunk-U5AS2HUX.js.map} +0 -0
  455. /package/dist/{chunk-UETHEV7Q.js.map → chunk-UBRHAMPE.js.map} +0 -0
  456. /package/dist/{chunk-6SNWSCXH.js.map → chunk-ULCAT6MG.js.map} +0 -0
  457. /package/dist/{chunk-MS2MOZGL.js.map → chunk-UWJ3TB2O.js.map} +0 -0
  458. /package/dist/{chunk-KV4SSPEB.js.map → chunk-V24SYZ5Y.js.map} +0 -0
  459. /package/dist/{chunk-VHKLNEC2.js.map → chunk-V4DAA7QL.js.map} +0 -0
  460. /package/dist/{chunk-MQK33NLF.js.map → chunk-V65WVOGC.js.map} +0 -0
  461. /package/dist/{chunk-FII45OPC.js.map → chunk-VUKFUYLG.js.map} +0 -0
  462. /package/dist/{chunk-ZWA5FYVS.js.map → chunk-W4JTBWHM.js.map} +0 -0
  463. /package/dist/{chunk-INUCPQVI.js.map → chunk-WDO7XH6B.js.map} +0 -0
  464. /package/dist/{chunk-TVTJS3PE.js.map → chunk-WE2AFK6Y.js.map} +0 -0
  465. /package/dist/{chunk-LD633A5N.js.map → chunk-WI4YITIC.js.map} +0 -0
  466. /package/dist/{chunk-P5NAMZNA.js.map → chunk-WNI5NWFU.js.map} +0 -0
  467. /package/dist/{chunk-H6XSWBE5.js.map → chunk-XG3CGRPZ.js.map} +0 -0
  468. /package/dist/{chunk-NGCNYQSC.js.map → chunk-Y7PBPPUC.js.map} +0 -0
  469. /package/dist/{chunk-DL6MFAFK.js.map → chunk-YWLILBPW.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import"./chunk-FZ7FWFJX.js";import{a as Ee}from"./chunk-BZ4VPC4U.js";import{a as Pe}from"./chunk-W3GEGGZY.js";import{a as Ce}from"./chunk-P5NAMZNA.js";import"./chunk-SLEK47CR.js";import"./chunk-GYYQWPA6.js";import"./chunk-JH3WUGO5.js";import"./chunk-GWQJKZ3M.js";import"./chunk-XGECMN4V.js";import"./chunk-6DHV4GT6.js";import"./chunk-BGSB3XPW.js";import"./chunk-SY7QZIKZ.js";import"./chunk-5WFWHEXV.js";import{a as fe,b as ge,c as ye}from"./chunk-PMIGYQEX.js";import"./chunk-5MPW7QWT.js";import"./chunk-NX7MM6XR.js";import"./chunk-ZXGAFQXW.js";import"./chunk-LMYJ6V44.js";import"./chunk-XFD3ULUF.js";import"./chunk-TC7EQZJK.js";import"./chunk-LKTCYO6Y.js";import"./chunk-DFJNVGK4.js";import"./chunk-SGE4DLC3.js";import"./chunk-ZCTEA2O6.js";import"./chunk-V2XF4QEW.js";import"./chunk-4IEAIF46.js";import"./chunk-YUNA3QKT.js";import"./chunk-43XVHRYM.js";import"./chunk-PQGDGJLG.js";import"./chunk-MRYRNB7Y.js";import"./chunk-UZ4TEF73.js";import"./chunk-EOOCBFPJ.js";import{a as Ae}from"./chunk-HU7FSSPH.js";import"./chunk-STFU4KD6.js";import"./chunk-BKSWQYXH.js";import"./chunk-Z4Q2UO2Y.js";import"./chunk-WSRH5UQP.js";import"./chunk-6LQ2EP7Y.js";import"./chunk-TC6KCSDD.js";import"./chunk-6BOIGCHK.js";import"./chunk-NPXIFNK2.js";import"./chunk-X7KIEFEN.js";import"./chunk-SS2SYDCB.js";import{a as Ne}from"./chunk-2FIBHHT7.js";import"./chunk-GJ2AOENT.js";import"./chunk-NXSRNOBC.js";import"./chunk-Z23FQVGN.js";import{a as Re}from"./chunk-RN3WPVBZ.js";import{a as Oe}from"./chunk-MQK33NLF.js";import"./chunk-FMRWWDZE.js";import"./chunk-KGSH67IW.js";import"./chunk-QDTMDSL5.js";import"./chunk-JK4CPPN4.js";import"./chunk-QMJH5JND.js";import"./chunk-PMCCHSXD.js";import"./chunk-LGSOTN4M.js";import"./chunk-DL6MFAFK.js";import"./chunk-WCJZAOZR.js";import{a as De}from"./chunk-7EFZVAWU.js";import{b as ke}from"./chunk-BVKOMSHU.js";import"./chunk-NGCNYQSC.js";import"./chunk-QQPF2DUF.js";import{a as he}from"./chunk-SK7MIRZS.js";import"./chunk-QXW2MAFG.js";import"./chunk-3NKRZURO.js";import"./chunk-B7BJXPGT.js";import"./chunk-UYYITOOO.js";import"./chunk-G6F6ZZES.js";import"./chunk-FXVHH75C.js";import"./chunk-WMUF335R.js";import"./chunk-FHYOWPXB.js";import"./chunk-FOYZWDU5.js";import"./chunk-R6QQPJ3F.js";import"./chunk-U4PFZ54M.js";import"./chunk-H7PNNMW5.js";import"./chunk-R7AWHFPG.js";import"./chunk-SLTF3CJ6.js";import"./chunk-VAIBLWOY.js";import"./chunk-WS5BL2WM.js";import{a as k,b as D}from"./chunk-KMLI4ISS.js";import"./chunk-PGWKJ6FK.js";import"./chunk-5KMUUL7U.js";import"./chunk-FGBEOUQK.js";import{a as se}from"./chunk-65G3JQ7T.js";import{a as ae}from"./chunk-DKOETPI4.js";import"./chunk-HQLGDW2G.js";import{a as Me}from"./chunk-MS2MOZGL.js";import"./chunk-IFIJ7OVJ.js";import"./chunk-46RBPCK6.js";import"./chunk-XQ65RVB7.js";import"./chunk-RFVATVNN.js";import"./chunk-76ZDXC2T.js";import"./chunk-TVTJS3PE.js";import"./chunk-A3LRPGV3.js";import"./chunk-J7I4WJ4G.js";import"./chunk-5WIBTOCI.js";import{a as oe}from"./chunk-VHKLNEC2.js";import{b as X,d as ee}from"./chunk-PG7R37J5.js";import"./chunk-CH75YRKR.js";import"./chunk-L4IKDVFW.js";import"./chunk-VFRHMNLJ.js";import{a as re}from"./chunk-FII45OPC.js";import{a as ne}from"./chunk-SU4FMKBZ.js";import{a as te}from"./chunk-DAYIMXLP.js";import"./chunk-KSHK3ZPX.js";import{d as Y,e as j}from"./chunk-XVZQBTB3.js";import"./chunk-HN5HLFTB.js";import"./chunk-UYUPSPOE.js";import{a as Se}from"./chunk-D2PYVF6J.js";import"./chunk-CW7CHRMN.js";import"./chunk-KF54ACZP.js";import"./chunk-DB4JHJ3Z.js";import"./chunk-BIE73HZH.js";import"./chunk-KVUKJU5U.js";import"./chunk-2JK3XRHE.js";import"./chunk-ZWA5FYVS.js";import"./chunk-NFLN2YB6.js";import"./chunk-2TBTNTJ2.js";import"./chunk-WTJJEIF2.js";import"./chunk-SVVZOMLQ.js";import"./chunk-UETHEV7Q.js";import"./chunk-H6XSWBE5.js";import"./chunk-52GHCI6X.js";import"./chunk-OL5C4QEH.js";import"./chunk-Q3ALCPJN.js";import"./chunk-JPVSXGCC.js";import"./chunk-IMCNVNKF.js";import"./chunk-AP56UUME.js";import"./chunk-IJCTN52C.js";import"./chunk-BFXBFGBH.js";import"./chunk-XDRJTAFV.js";import"./chunk-3UDRMQNE.js";import"./chunk-YDL42SVF.js";import"./chunk-VDRNNOVA.js";import"./chunk-TZIDQ5O3.js";import"./chunk-NW3D7CPK.js";import"./chunk-XZMPAJRL.js";import{a as Fe,b as xe,c as be,d as we,k as ve,l as Te}from"./chunk-PB6UQ4A4.js";import"./chunk-A7ZJQCNU.js";import{a as ue}from"./chunk-A3EQ7FNB.js";import{a as ie}from"./chunk-4X7TVFHA.js";import{a as le}from"./chunk-IVISBFAT.js";import{a as me}from"./chunk-H66IKMI4.js";import{a as de}from"./chunk-FFFB5CG2.js";import"./chunk-Y3G3JGLP.js";import{a as ce,b as pe}from"./chunk-3O7L6JUX.js";import"./chunk-YZKQB7WG.js";import"./chunk-MAEAZFMR.js";import"./chunk-KV4SSPEB.js";import"./chunk-F6NFCJYW.js";import"./chunk-HYWQLLZC.js";import"./chunk-726N45PF.js";import"./chunk-VZ34NZXF.js";import"./chunk-4MI7BMM5.js";import"./chunk-ZE3YT3Q6.js";import"./chunk-AHUSQVQY.js";import"./chunk-G3QDDD53.js";import"./chunk-RG67OYQN.js";import"./chunk-X3FRANQS.js";import"./chunk-WVJDCDGZ.js";import"./chunk-LD633A5N.js";import"./chunk-KFYWUBRS.js";import"./chunk-WL7WQBSR.js";import"./chunk-2RVICCFD.js";import"./chunk-CM4UUBU5.js";import"./chunk-S5BNS2JE.js";import"./chunk-LQFLXXBR.js";import"./chunk-6QEAL5BB.js";import"./chunk-DLSHZLHX.js";import"./chunk-HFFQ642D.js";import"./chunk-GPY3JZJJ.js";import"./chunk-DOVE5SYY.js";import"./chunk-QO7HHRNA.js";import"./chunk-BS2YN6CS.js";import"./chunk-DDH7MZ7M.js";import"./chunk-UCBZMQGL.js";import"./chunk-RRERBS7F.js";import"./chunk-BC4V2YAK.js";import"./chunk-4GIQCWII.js";import"./chunk-MZN6VY5F.js";import{a as Z,c as J}from"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import{A as S,a as b,b as w,o as v,t as T}from"./chunk-XPITUVQE.js";import{g as q,p as H,q as R}from"./chunk-NXRWBI36.js";import"./chunk-LWGSXQKI.js";import"./chunk-XPVYX7LE.js";import"./chunk-FSGFBJJF.js";import"./chunk-SWCZJY6I.js";import"./chunk-TVZAFTPT.js";import{a as F,d as x,e as u}from"./chunk-H2O4CVKF.js";import{a as r}from"./chunk-P37U34EQ.js";import{useMutation as Be}from"@tanstack/react-query";var Ie=r(()=>{let{client:e}=u();return Be({mutationFn:r(o=>S({client:e,headers:{Authorization:""},body:o}),"mutationFn")})},"useMagicLink");import{useMutation as Ve}from"@tanstack/react-query";var Le=r(()=>{let{client:e}=u();return Ve({mutationFn:r(o=>T({client:e,headers:{Authorization:""},path:{employment_id:o}}),"mutationFn")})},"useSandboxApproveRiskReservePayment");import{QueryClientProvider as po}from"@tanstack/react-query";import{useMemo as $,Suspense as uo,useRef as fo}from"react";function f(e){let o=document.documentElement;Object.keys(e).forEach(t=>{let n=e[t];n&&o.style.setProperty(t,n)})}r(f,"setCssProperties");function _e(e){let o={};return Object.keys(e).forEach(t=>{o[`--${t}`]=e[t]}),o}r(_e,"mapThemeColors");function Ue(e){return{"--spacing":e}}r(Ue,"mapThemeSpacing");function We(e){return{"--radius":e}}r(We,"mapThemeBorderRadius");function ze(e){return{"--fontSizeBase":e.fontSizeBase}}r(ze,"mapThemeFont");function O(e){e?.colors&&f(_e(e.colors)),e?.spacing&&f(Ue(e.spacing)),e?.borderRadius&&f(We(e.borderRadius)),e?.font&&f(ze(e.font))}r(O,"applyTheme");import{createContext as Ke,useEffect as Qe,useMemo as Ge}from"react";import{jsx as qe}from"react/jsx-runtime";var $e=Ke({theme:{}});function N(e){Qe(()=>{e.theme&&Object.keys(e.theme).length>0&&O(e.theme)},[e.theme]);let o=Ge(()=>({theme:e.theme}),[e.theme]);return qe($e.Provider,{value:o,children:e.children})}r(N,"ThemeProvider");var A={local:"http://localhost:4000/api/eor",partners:"https://gateway.partners.remote-sandbox.com",production:"https://gateway.remote.com",sandbox:"https://gateway.remote-sandbox.com",staging:"https://gateway.niceremote.com"},E="production";var p="1.45.0";function He(e){try{return new URL(e),!0}catch{return!1}}r(He,"isValidUrl");function M(e,o){let t={current:null},n=o?.environment?A[o?.environment]:"https://gateway.remote.com",s=w.getConfig();o?.environment&&o?.environment!=="production"&&R(p);let l=!!o?.proxy&&He(o.proxy.url);return o?.proxy&&!l&&console.error("Invalid proxy URL provided. Using default base URL."),b({...s,...o?.credentials&&{credentials:o.credentials},headers:{...s.headers,...l?o?.proxy?.headers:{},"X-Client-Name":"remote-flows-sdk","X-Client-Version":p},baseUrl:l?o.proxy?.url:n,auth:r(async()=>{if(!e)return;function m(i){return!i||Date.now()+6e4>i}if(r(m,"hasTokenExpired"),!t.current||m(t.current.expiresAt))try{let i=await e();t.current={accessToken:i.accessToken,expiresAt:Date.now()+i.expiresIn*1e3}}catch(i){console.error("Failed to fetch auth token:",i);return}return t.current?.accessToken},"auth")})}r(M,"createClient");import{Component as to}from"react";var B=[{category:"RENDER_ERROR",severity:"critical",messagePatterns:["element type is invalid","hydration","rendered more hooks","rendered fewer hooks"],namePatterns:["invariantviolation"]},{category:"HOOK_ERROR",severity:"critical",messagePatterns:["hook","useeffect","usestate","usecontext"],namePatterns:[]},{category:"STATE_ERROR",severity:"error",messagePatterns:["state","context","provider"],namePatterns:[]},{category:"RENDER_ERROR",severity:"critical",messagePatterns:["render","component"],namePatterns:[]},{category:"RUNTIME_ERROR",severity:"critical",messagePatterns:[],namePatterns:["typeerror","referenceerror"]},{category:"RUNTIME_ERROR",severity:"error",messagePatterns:[],namePatterns:["rangeerror"]}],Ze=["cannot read property","is not a function","is not defined"],I=["warning","deprecated"],V=r(e=>{let o=e.message.toLowerCase(),t=e.name.toLowerCase();if(I.some(n=>o.includes(n)))return"UNKNOWN_ERROR";for(let n of B){let s=n.messagePatterns.some(m=>o.includes(m)),l=n.namePatterns.some(m=>t.includes(m));if(s||l)return n.category}return"UNKNOWN_ERROR"},"categorizeError"),L=r((e,o)=>{let t=e.message.toLowerCase(),n=e.name.toLowerCase();if(I.some(s=>t.includes(s)))return"warning";if(Ze.some(s=>t.includes(s)))return"critical";for(let s of B){if(s.category!==o)continue;let l=s.messagePatterns.some(i=>t.includes(i)),m=s.namePatterns.some(i=>n.includes(i));if(l||m)return s.severity}return"error"},"determineErrorSeverity");var d=new Map,_=100;function Je(e){return`${e.name}:${e.message}:${e.stack?.substring(0,100)||""}`}r(Je,"getErrorSignature");function Xe(e){let o=Je(e),t=d.get(o),n=Date.now();if(t&&n-t<_)return!0;if(d.set(o,n),d.size>100)for(let[s,l]of d.entries())n-l>_&&d.delete(s);return!1}r(Xe,"wasRecentlyReported");var Ye=r((e,o)=>{if(!o)return;let t={critical:"\u{1F534}",error:"\u{1F7E0}",warning:"\u{1F7E1}",info:"\u{1F535}"};console.group("\u{1F4EE} [RemoteFlows] Error Report (Debug Mode)"),console.log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"),console.log("\u274C Error:",e.error.message),console.log("\u{1F4DB} Name:",e.error.name),console.log(`${t[e.error.severity]} Severity:`,e.error.severity.toUpperCase()),console.log("\u{1F3F7}\uFE0F Category:",e.error.category),e.context?.flow&&console.log("\u{1F504} Flow:",e.context.flow),e.context?.step!==void 0&&console.log("\u{1F4CD} Step:",e.context.step),e.context?.metadata&&console.log("\u{1F4DD} Context Metadata:",e.context.metadata),console.log("\u23F0 Timestamp:",e.metadata.timestamp),console.log("\u{1F310} URL:",e.metadata.url),console.log("\u{1F4E6} SDK Version:",e.metadata.sdk_version),e.error.stack&&(console.log(`
1
+ import"./chunk-FZ7FWFJX.js";import{a as Ee}from"./chunk-HLLM7OZN.js";import{a as Pe}from"./chunk-W3GEGGZY.js";import{a as Ce}from"./chunk-WNI5NWFU.js";import"./chunk-SLEK47CR.js";import"./chunk-GCONDFJ7.js";import"./chunk-JH3WUGO5.js";import"./chunk-LZM3BNK3.js";import"./chunk-XGECMN4V.js";import"./chunk-6DHV4GT6.js";import"./chunk-BGSB3XPW.js";import"./chunk-2EM7DTD6.js";import"./chunk-5WFWHEXV.js";import{a as fe,b as ge,c as ye}from"./chunk-CD2QYFEH.js";import"./chunk-5MPW7QWT.js";import"./chunk-NX7MM6XR.js";import"./chunk-ZXGAFQXW.js";import"./chunk-LMYJ6V44.js";import"./chunk-XFD3ULUF.js";import"./chunk-TC7EQZJK.js";import"./chunk-LKTCYO6Y.js";import"./chunk-DFJNVGK4.js";import"./chunk-SGE4DLC3.js";import"./chunk-JOININRY.js";import"./chunk-EX4DXUEC.js";import"./chunk-BXWYSFLP.js";import"./chunk-YUNA3QKT.js";import"./chunk-NVIBQAC6.js";import"./chunk-3HA6BIFT.js";import"./chunk-MRYRNB7Y.js";import"./chunk-UZ4TEF73.js";import"./chunk-EOOCBFPJ.js";import{a as Ae}from"./chunk-I2CN6IKR.js";import"./chunk-MTGLBR6N.js";import"./chunk-SFJBEQ2V.js";import"./chunk-Z4Q2UO2Y.js";import"./chunk-WSRH5UQP.js";import"./chunk-OK4L3KCU.js";import"./chunk-D3EISEXY.js";import"./chunk-TWJPM5ED.js";import"./chunk-62XCZZJ3.js";import"./chunk-X7KIEFEN.js";import"./chunk-SS2SYDCB.js";import{a as Ne}from"./chunk-RT7MYFKW.js";import"./chunk-H3JAWJOE.js";import"./chunk-NXSRNOBC.js";import"./chunk-Z23FQVGN.js";import{a as Re}from"./chunk-EHAAVSJM.js";import{a as Oe}from"./chunk-V65WVOGC.js";import"./chunk-6XT3ARIZ.js";import"./chunk-KGSH67IW.js";import"./chunk-D2SVE4KC.js";import"./chunk-JK4CPPN4.js";import"./chunk-J4TX4IZL.js";import"./chunk-PMCCHSXD.js";import"./chunk-BGEDMAHU.js";import"./chunk-YWLILBPW.js";import"./chunk-WCJZAOZR.js";import{a as De}from"./chunk-IUJRGT3T.js";import{b as ke}from"./chunk-IN6QZASY.js";import"./chunk-Y7PBPPUC.js";import"./chunk-QQPF2DUF.js";import"./chunk-5KMUUL7U.js";import{a as he}from"./chunk-NOE5LQOQ.js";import"./chunk-QXW2MAFG.js";import"./chunk-GE7DVVKQ.js";import"./chunk-B7BJXPGT.js";import"./chunk-JNXNTCPZ.js";import"./chunk-G6F6ZZES.js";import"./chunk-KR7PDSUA.js";import"./chunk-B7UUTLAM.js";import"./chunk-FHYOWPXB.js";import"./chunk-JSZYIFHD.js";import"./chunk-OGGW2JBW.js";import"./chunk-K4BWJE5D.js";import"./chunk-5QNR3U6E.js";import"./chunk-Q3JA2NA7.js";import"./chunk-A5VJNO74.js";import"./chunk-VAIBLWOY.js";import"./chunk-QC67U4XA.js";import{a as k,b as D}from"./chunk-KMLI4ISS.js";import"./chunk-PGWKJ6FK.js";import{a as Me}from"./chunk-UWJ3TB2O.js";import"./chunk-IFIJ7OVJ.js";import"./chunk-SQBJ4CLO.js";import"./chunk-HFRQIPC5.js";import"./chunk-DVPC5UZZ.js";import"./chunk-76ZDXC2T.js";import"./chunk-WE2AFK6Y.js";import"./chunk-A3LRPGV3.js";import"./chunk-QXXVWOOB.js";import"./chunk-5WIBTOCI.js";import"./chunk-FGBEOUQK.js";import{a as se}from"./chunk-QZZJE6P7.js";import{a as ae}from"./chunk-DKOETPI4.js";import"./chunk-HQLGDW2G.js";import{a as oe}from"./chunk-V4DAA7QL.js";import{b as X,d as ee}from"./chunk-HOJKP4DH.js";import"./chunk-U4EJUZPI.js";import"./chunk-EPO6DXOK.js";import"./chunk-VFRHMNLJ.js";import{a as re}from"./chunk-VUKFUYLG.js";import{a as ne}from"./chunk-SU4FMKBZ.js";import{a as te}from"./chunk-DAYIMXLP.js";import"./chunk-KSHK3ZPX.js";import{d as Y,e as j}from"./chunk-HOEP5XXW.js";import"./chunk-HN5HLFTB.js";import"./chunk-UYUPSPOE.js";import{a as Se}from"./chunk-TYVAIHMS.js";import"./chunk-CW7CHRMN.js";import"./chunk-2BYDZSR5.js";import"./chunk-DB4JHJ3Z.js";import"./chunk-CFI75D3K.js";import"./chunk-KVUKJU5U.js";import"./chunk-TRMEUC36.js";import"./chunk-W4JTBWHM.js";import"./chunk-NFLN2YB6.js";import"./chunk-QDRQ64QV.js";import"./chunk-U5AS2HUX.js";import"./chunk-SVVZOMLQ.js";import"./chunk-UBRHAMPE.js";import"./chunk-XG3CGRPZ.js";import"./chunk-A5RTFMYQ.js";import"./chunk-OL5C4QEH.js";import"./chunk-Q3ALCPJN.js";import"./chunk-AAOU5HS2.js";import"./chunk-2DRF5M3J.js";import"./chunk-AP56UUME.js";import"./chunk-IJCTN52C.js";import"./chunk-BFXBFGBH.js";import"./chunk-EGIXB43W.js";import"./chunk-3UDRMQNE.js";import"./chunk-YDL42SVF.js";import"./chunk-VDRNNOVA.js";import"./chunk-TZIDQ5O3.js";import"./chunk-NW3D7CPK.js";import"./chunk-XZMPAJRL.js";import{a as Fe,b as xe,c as be,d as we,k as ve,l as Te}from"./chunk-PB6UQ4A4.js";import"./chunk-A7ZJQCNU.js";import{a as ue}from"./chunk-57NWP6J7.js";import{a as ie}from"./chunk-4X7TVFHA.js";import{a as le}from"./chunk-J2R3LJ7K.js";import{a as me}from"./chunk-H66IKMI4.js";import{a as de}from"./chunk-OHNH7V7X.js";import"./chunk-Y3G3JGLP.js";import{a as ce,b as pe}from"./chunk-MREG2JYT.js";import"./chunk-V5TMPQVK.js";import"./chunk-MAEAZFMR.js";import"./chunk-ZE3YT3Q6.js";import"./chunk-AHUSQVQY.js";import"./chunk-V24SYZ5Y.js";import"./chunk-VZ34NZXF.js";import"./chunk-F6NFCJYW.js";import"./chunk-HYWQLLZC.js";import"./chunk-2EKQ35Z2.js";import"./chunk-4MI7BMM5.js";import"./chunk-G3QDDD53.js";import"./chunk-UWSG45OM.js";import"./chunk-HDOEUCXY.js";import"./chunk-WVJDCDGZ.js";import"./chunk-WI4YITIC.js";import"./chunk-KFYWUBRS.js";import"./chunk-KSZ3D3P3.js";import"./chunk-KBDRU6SO.js";import"./chunk-CM4UUBU5.js";import"./chunk-S5BNS2JE.js";import"./chunk-LQFLXXBR.js";import"./chunk-6QEAL5BB.js";import"./chunk-DLSHZLHX.js";import"./chunk-HFFQ642D.js";import"./chunk-GPY3JZJJ.js";import"./chunk-DOVE5SYY.js";import"./chunk-QO7HHRNA.js";import"./chunk-BS2YN6CS.js";import"./chunk-DDH7MZ7M.js";import"./chunk-UCBZMQGL.js";import"./chunk-RRERBS7F.js";import"./chunk-BC4V2YAK.js";import"./chunk-BODQC6OK.js";import"./chunk-RKXF7Q7V.js";import{a as Z,c as J}from"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import{A as S,a as b,b as w,o as v,t as T}from"./chunk-XI55YG73.js";import{g as q,p as H,q as R}from"./chunk-NXRWBI36.js";import"./chunk-LWGSXQKI.js";import"./chunk-XPVYX7LE.js";import"./chunk-FSGFBJJF.js";import"./chunk-SWCZJY6I.js";import"./chunk-TVZAFTPT.js";import{a as F,d as x,e as u}from"./chunk-H2O4CVKF.js";import{a as r}from"./chunk-P37U34EQ.js";import{useMutation as Be}from"@tanstack/react-query";var Ie=r(()=>{let{client:e}=u();return Be({mutationFn:r(o=>S({client:e,headers:{Authorization:""},body:o}),"mutationFn")})},"useMagicLink");import{useMutation as Ve}from"@tanstack/react-query";var Le=r(()=>{let{client:e}=u();return Ve({mutationFn:r(o=>T({client:e,headers:{Authorization:""},path:{employment_id:o}}),"mutationFn")})},"useSandboxApproveRiskReservePayment");import{QueryClientProvider as po}from"@tanstack/react-query";import{useMemo as $,Suspense as uo,useRef as fo}from"react";function f(e){let o=document.documentElement;Object.keys(e).forEach(t=>{let n=e[t];n&&o.style.setProperty(t,n)})}r(f,"setCssProperties");function _e(e){let o={};return Object.keys(e).forEach(t=>{o[`--${t}`]=e[t]}),o}r(_e,"mapThemeColors");function Ue(e){return{"--spacing":e}}r(Ue,"mapThemeSpacing");function We(e){return{"--radius":e}}r(We,"mapThemeBorderRadius");function ze(e){return{"--fontSizeBase":e.fontSizeBase}}r(ze,"mapThemeFont");function O(e){e?.colors&&f(_e(e.colors)),e?.spacing&&f(Ue(e.spacing)),e?.borderRadius&&f(We(e.borderRadius)),e?.font&&f(ze(e.font))}r(O,"applyTheme");import{createContext as Ke,useEffect as Qe,useMemo as Ge}from"react";import{jsx as qe}from"react/jsx-runtime";var $e=Ke({theme:{}});function N(e){Qe(()=>{e.theme&&Object.keys(e.theme).length>0&&O(e.theme)},[e.theme]);let o=Ge(()=>({theme:e.theme}),[e.theme]);return qe($e.Provider,{value:o,children:e.children})}r(N,"ThemeProvider");var A={local:"http://localhost:4000/api/eor",partners:"https://gateway.partners.remote-sandbox.com",production:"https://gateway.remote.com",sandbox:"https://gateway.remote-sandbox.com",staging:"https://gateway.niceremote.com"},E="production";var p="1.47.0";function He(e){try{return new URL(e),!0}catch{return!1}}r(He,"isValidUrl");function M(e,o){let t={current:null},n=o?.environment?A[o?.environment]:"https://gateway.remote.com",s=w.getConfig();o?.environment&&o?.environment!=="production"&&R(p);let l=!!o?.proxy&&He(o.proxy.url);return o?.proxy&&!l&&console.error("Invalid proxy URL provided. Using default base URL."),b({...s,...o?.credentials&&{credentials:o.credentials},headers:{...s.headers,...l?o?.proxy?.headers:{},"X-Client-Name":"remote-flows-sdk","X-Client-Version":p},baseUrl:l?o.proxy?.url:n,auth:r(async()=>{if(!e)return;function m(i){return!i||Date.now()+6e4>i}if(r(m,"hasTokenExpired"),!t.current||m(t.current.expiresAt))try{let i=await e();t.current={accessToken:i.accessToken,expiresAt:Date.now()+i.expiresIn*1e3}}catch(i){console.error("Failed to fetch auth token:",i);return}return t.current?.accessToken},"auth")})}r(M,"createClient");import{Component as to}from"react";var B=[{category:"RENDER_ERROR",severity:"critical",messagePatterns:["element type is invalid","hydration","rendered more hooks","rendered fewer hooks"],namePatterns:["invariantviolation"]},{category:"HOOK_ERROR",severity:"critical",messagePatterns:["hook","useeffect","usestate","usecontext"],namePatterns:[]},{category:"STATE_ERROR",severity:"error",messagePatterns:["state","context","provider"],namePatterns:[]},{category:"RENDER_ERROR",severity:"critical",messagePatterns:["render","component"],namePatterns:[]},{category:"RUNTIME_ERROR",severity:"critical",messagePatterns:[],namePatterns:["typeerror","referenceerror"]},{category:"RUNTIME_ERROR",severity:"error",messagePatterns:[],namePatterns:["rangeerror"]}],Ze=["cannot read property","is not a function","is not defined"],I=["warning","deprecated"],V=r(e=>{let o=e.message.toLowerCase(),t=e.name.toLowerCase();if(I.some(n=>o.includes(n)))return"UNKNOWN_ERROR";for(let n of B){let s=n.messagePatterns.some(m=>o.includes(m)),l=n.namePatterns.some(m=>t.includes(m));if(s||l)return n.category}return"UNKNOWN_ERROR"},"categorizeError"),L=r((e,o)=>{let t=e.message.toLowerCase(),n=e.name.toLowerCase();if(I.some(s=>t.includes(s)))return"warning";if(Ze.some(s=>t.includes(s)))return"critical";for(let s of B){if(s.category!==o)continue;let l=s.messagePatterns.some(i=>t.includes(i)),m=s.namePatterns.some(i=>n.includes(i));if(l||m)return s.severity}return"error"},"determineErrorSeverity");var d=new Map,_=100;function Je(e){return`${e.name}:${e.message}:${e.stack?.substring(0,100)||""}`}r(Je,"getErrorSignature");function Xe(e){let o=Je(e),t=d.get(o),n=Date.now();if(t&&n-t<_)return!0;if(d.set(o,n),d.size>100)for(let[s,l]of d.entries())n-l>_&&d.delete(s);return!1}r(Xe,"wasRecentlyReported");var Ye=r((e,o)=>{if(!o)return;let t={critical:"\u{1F534}",error:"\u{1F7E0}",warning:"\u{1F7E1}",info:"\u{1F535}"};console.group("\u{1F4EE} [RemoteFlows] Error Report (Debug Mode)"),console.log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"),console.log("\u274C Error:",e.error.message),console.log("\u{1F4DB} Name:",e.error.name),console.log(`${t[e.error.severity]} Severity:`,e.error.severity.toUpperCase()),console.log("\u{1F3F7}\uFE0F Category:",e.error.category),e.context?.flow&&console.log("\u{1F504} Flow:",e.context.flow),e.context?.step!==void 0&&console.log("\u{1F4CD} Step:",e.context.step),e.context?.metadata&&console.log("\u{1F4DD} Context Metadata:",e.context.metadata),console.log("\u23F0 Timestamp:",e.metadata.timestamp),console.log("\u{1F310} URL:",e.metadata.url),console.log("\u{1F4E6} SDK Version:",e.metadata.sdk_version),e.error.stack&&(console.log(`
2
2
  \u{1F4DA} Stack Trace:`),console.log(e.error.stack)),console.log(`
3
- \u{1F4CB} Full Payload (would be sent to telemetry):`),console.log(JSON.stringify(e,null,2)),console.log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"),console.groupEnd()},"logDebugPayload"),je=r(()=>typeof window<"u"?window.location.href:"unknown","getUrl"),eo=r(e=>e?btoa(e):"","encodeStack");function oo(e,o,t,n){let s=V(e),l=L(e,s),m=je(),i=eo(e.stack);return{error:{message:e.message,stack:i,name:e.name,category:s,severity:l},context:n,metadata:{sdk_version:o,timestamp:new Date().toISOString(),url:m,user_agent:typeof navigator<"u"?navigator.userAgent:"unknown",environment:t}}}r(oo,"buildErrorPayload");function ro(e,o){let t=e==="local",n=o.includes("localhost")||o.includes("127.0.0.1");return t===n}r(ro,"shouldSendTelemetry");function U(e,o,t={debugMode:!1}){let{error:n,sdkVersion:s,client:l,environment:m}=e;if(Xe(n)){t.debugMode&&console.log("[RemoteFlows] Skipping duplicate error report");return}let i=oo(n,s,m??E,o);if(t.debugMode&&Ye(i,!!t.debugMode),!ro(m??E,i.metadata.url)){t.debugMode&&console.log("[RemoteFlows] Skipping telemetry API call (local environment)");return}v({client:l,body:i}).catch(P=>{t.debugMode&&console.warn("[RemoteFlows] Failed to report error telemetry:",P)})}r(U,"reportTelemetryError");import{jsx as W}from"react/jsx-runtime";var no=r(()=>W("div",{style:{padding:"20px",border:"1px solid #dc2626",borderRadius:"4px",backgroundColor:"#fef2f2",color:"#991b1b"},children:"Something went wrong in RemoteFlows. Please refresh the page."}),"FallbackErrorBoundary"),g=class extends to{static{r(this,"RemoteFlowsErrorBoundary")}constructor(o){super(o),this.state={hasError:!1,error:null}}static getDerivedStateFromError(o){return{hasError:!0,error:o}}static contextType=k;componentDidCatch(o,t){console.error("[RemoteFlows] Error caught:",o,t);let n=this.context?.errorContextRef.current,s={error:o,sdkVersion:p,client:this.props.client,environment:this.props.environment};if(U(s,n,{debugMode:this.props.debug}),this.props.errorBoundary?.useParentErrorBoundary)throw o}render(){return this.state.hasError&&this.state.error?this.props.errorBoundary?.fallback?typeof this.props.errorBoundary?.fallback=="function"?this.props.errorBoundary?.fallback(this.state.error):this.props.errorBoundary?.fallback:W(no,{}):this.props.children}};import{lazy as a}from"react";var z={button:a(()=>import("./ButtonDefault-HBOULH5V.js").then(e=>({default:e.ButtonDefault}))),checkbox:a(()=>import("./CheckboxFieldDefault-62URAHJV.js").then(e=>({default:e.CheckboxFieldDefault}))),countries:a(()=>import("./CountryFieldDefault-24NNZN2C.js").then(e=>({default:e.CountryFieldDefault}))),date:a(()=>import("./DatePickerFieldDefault-NMUCZ4U2.js").then(e=>({default:e.DatePickerFieldDefault}))),drawer:a(()=>import("./DrawerDefault-O7NUFWJ4.js").then(e=>({default:e.DrawerDefault}))),email:a(()=>import("./EmailFieldDefault-S3DO2YLL.js").then(e=>({default:e.EmailFieldDefault}))),fieldsetToggle:a(()=>import("./FieldsetToggleButtonDefault-MIRCZJKA.js").then(e=>({default:e.FieldsetToggleButtonDefault}))),file:a(()=>import("./FileUploadFieldDefault-4NW5VLF6.js").then(e=>({default:e.FileUploadFieldDefault}))),"multi-select":a(()=>import("./MultiSelectFieldDefault-S45Z53ZY.js").then(e=>({default:e.MultiSelectFieldDefault}))),number:a(()=>import("./NumberFieldDefault-AA5UGCSR.js").then(e=>({default:e.NumberFieldDefault}))),pdfViewer:a(()=>import("./PDFPreviewDefault-HSSMYKV5.js").then(e=>({default:e.PDFPreviewDefault}))),radio:a(()=>import("./RadioGroupFieldDefault-X44FYUA3.js").then(e=>({default:e.RadioGroupFieldDefault}))),select:a(()=>import("./SelectFieldDefault-PLDXHTQY.js").then(e=>({default:e.SelectFieldDefault}))),statement:a(()=>import("./StatementDefault-RDC5G24K.js").then(e=>({default:e.StatementDefault}))),table:a(()=>import("./TableFieldDefault-ES7OIYX5.js").then(e=>({default:e.TableFieldDefault}))),textarea:a(()=>import("./TextAreaFieldDefault-C6M3PIV2.js").then(e=>({default:e.TextAreaFieldDefault}))),tel:a(()=>import("./TelFieldDefault-IYGEEV5V.js").then(e=>({default:e.TelFieldDefault}))),text:a(()=>import("./TextFieldDefault-OC2TMXVF.js").then(e=>({default:e.TextFieldDefault}))),time:a(()=>import("./TimeFieldDefault-J6PKL5T4.js").then(e=>({default:e.TimeFieldDefault}))),"work-schedule":a(()=>import("./WorkScheduleFieldDefault-MDDNWRCO.js").then(e=>({default:e.WorkScheduleFieldDefault}))),zendeskDrawer:a(()=>import("./ZendeskDrawerDefault-HGKAUCUV.js").then(e=>({default:e.ZendeskDrawerDefault})))};import{jsx as y,jsxs as so}from"react/jsx-runtime";function K(){return so("div",{className:"animate-pulse space-y-4 p-4",children:[y("div",{className:"h-4 bg-gray-200 rounded w-1/4"}),y("div",{className:"h-10 bg-gray-200 rounded"}),y("div",{className:"h-4 bg-gray-200 rounded w-1/4"}),y("div",{className:"h-10 bg-gray-200 rounded"})]})}r(K,"FormLoadingFallback");import{useState as ao,useEffect as io}from"react";import{Fragment as lo,jsx as mo}from"react/jsx-runtime";function Q({fallback:e,delay:o=200}){let[t,n]=ao(!1);return io(()=>{let s=setTimeout(()=>{n(!0)},o);return()=>clearTimeout(s)},[o]),t?mo(lo,{children:e}):null}r(Q,"DelayedFallback");import{QueryClient as co}from"@tanstack/react-query";var G=r(()=>new co({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),"getQueryClient");import{jsx as c}from"react/jsx-runtime";function go({children:e,client:o}){return c(x.Provider,{value:{client:o},children:e})}r(go,"RemoteFlowContextWrapper");function yo({children:e,components:o={},transformHtmlToComponents:t}){let n=$(()=>({...z,...o}),[o]),s=$(()=>({components:n,transformHtmlToComponents:t}),[n,t]);return c(F.Provider,{value:s,children:c(uo,{fallback:c(Q,{fallback:c(K,{}),delay:200}),children:e})})}r(yo,"FormFieldsProvider");var Co=G();function Po({auth:e,children:o,components:t,theme:n,proxy:s,environment:l,errorBoundary:m={useParentErrorBoundary:!0},debug:i=!1,credentials:C,transformHtmlToComponents:P}){let h=fo(M(e,{proxy:s,environment:l,credentials:C})).current;return c(D,{children:c(g,{errorBoundary:m,debug:i,environment:l,client:h,children:c(po,{client:Co,children:c(yo,{components:t,transformHtmlToComponents:P,children:c(go,{environment:l,debug:i,client:h,children:c(N,{theme:n,children:o})})})})})})}r(Po,"RemoteFlows");export{ie as ContractAmendmentConfirmationForm,ue as ContractAmendmentFlow,le as ContractAmendmentForm,me as ContractAmendmentSubmit,Se as ContractorOnboardingFlow,oe as CostCalculatorFlow,re as CostCalculatorForm,ne as CostCalculatorResetButton,te as CostCalculatorSubmitButton,Me as CreateCompanyFlow,Re as EmploymentAgreementInfoContent,se as EstimationResults,he as OnboardingFlow,Oe as PayrollAdminOnboardingFlow,Ae as PayrollEmployeeOnboardingFlow,Po as RemoteFlows,ae as SummaryResults,Ee as TerminationDialogInfoContent,Ce as TerminationFlow,Pe as TerminationReasonsDetailContent,J as ZendeskTriggerButton,X as buildCostCalculatorEstimationPayload,xe as contractorPlusProductIdentifier,Fe as contractorStandardProductIdentifier,q as convertFromCents,be as corProductIdentifier,we as eorProductIdentifier,ve as onboardingWorkflows,Te as pricingPlanDetails,H as transformYupErrorsIntoObject,de as useContractAmendment,ee as useCostCalculator,j as useCostCalculatorEstimationCsv,Y as useCostCalculatorEstimationPdf,pe as useDiscardEmploymentMutation,ce as useEmploymentQuery,ke as useGPLegalEntities,Ie as useMagicLink,ge as usePaidTimeoffBreakdownQuery,De as usePayrollAdminOnboarding,Ne as usePayrollEmployeeOnboarding,Le as useSandboxApproveRiskReservePayment,ye as useTimeOffLeavePoliciesSummaryQuery,fe as useTimeOffQuery,Z as zendeskArticles};
3
+ \u{1F4CB} Full Payload (would be sent to telemetry):`),console.log(JSON.stringify(e,null,2)),console.log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"),console.groupEnd()},"logDebugPayload"),je=r(()=>typeof window<"u"?window.location.href:"unknown","getUrl"),eo=r(e=>e?btoa(e):"","encodeStack");function oo(e,o,t,n){let s=V(e),l=L(e,s),m=je(),i=eo(e.stack);return{error:{message:e.message,stack:i,name:e.name,category:s,severity:l},context:n,metadata:{sdk_version:o,timestamp:new Date().toISOString(),url:m,user_agent:typeof navigator<"u"?navigator.userAgent:"unknown",environment:t}}}r(oo,"buildErrorPayload");function ro(e,o){let t=e==="local",n=o.includes("localhost")||o.includes("127.0.0.1");return t===n}r(ro,"shouldSendTelemetry");function U(e,o,t={debugMode:!1}){let{error:n,sdkVersion:s,client:l,environment:m}=e;if(Xe(n)){t.debugMode&&console.log("[RemoteFlows] Skipping duplicate error report");return}let i=oo(n,s,m??E,o);if(t.debugMode&&Ye(i,!!t.debugMode),!ro(m??E,i.metadata.url)){t.debugMode&&console.log("[RemoteFlows] Skipping telemetry API call (local environment)");return}v({client:l,body:i}).catch(P=>{t.debugMode&&console.warn("[RemoteFlows] Failed to report error telemetry:",P)})}r(U,"reportTelemetryError");import{jsx as W}from"react/jsx-runtime";var no=r(()=>W("div",{style:{padding:"20px",border:"1px solid #dc2626",borderRadius:"4px",backgroundColor:"#fef2f2",color:"#991b1b"},children:"Something went wrong in RemoteFlows. Please refresh the page."}),"FallbackErrorBoundary"),g=class extends to{static{r(this,"RemoteFlowsErrorBoundary")}constructor(o){super(o),this.state={hasError:!1,error:null}}static getDerivedStateFromError(o){return{hasError:!0,error:o}}static contextType=k;componentDidCatch(o,t){console.error("[RemoteFlows] Error caught:",o,t);let n=this.context?.errorContextRef.current,s={error:o,sdkVersion:p,client:this.props.client,environment:this.props.environment};if(U(s,n,{debugMode:this.props.debug}),this.props.errorBoundary?.useParentErrorBoundary)throw o}render(){return this.state.hasError&&this.state.error?this.props.errorBoundary?.fallback?typeof this.props.errorBoundary?.fallback=="function"?this.props.errorBoundary?.fallback(this.state.error):this.props.errorBoundary?.fallback:W(no,{}):this.props.children}};import{lazy as a}from"react";var z={button:a(()=>import("./ButtonDefault-HBOULH5V.js").then(e=>({default:e.ButtonDefault}))),checkbox:a(()=>import("./CheckboxFieldDefault-YKFNIKBQ.js").then(e=>({default:e.CheckboxFieldDefault}))),countries:a(()=>import("./CountryFieldDefault-JNRZX632.js").then(e=>({default:e.CountryFieldDefault}))),date:a(()=>import("./DatePickerFieldDefault-XSTNHJYN.js").then(e=>({default:e.DatePickerFieldDefault}))),drawer:a(()=>import("./DrawerDefault-O7NUFWJ4.js").then(e=>({default:e.DrawerDefault}))),email:a(()=>import("./EmailFieldDefault-7USH7I6B.js").then(e=>({default:e.EmailFieldDefault}))),fieldsetToggle:a(()=>import("./FieldsetToggleButtonDefault-MIRCZJKA.js").then(e=>({default:e.FieldsetToggleButtonDefault}))),file:a(()=>import("./FileUploadFieldDefault-IFQK52QA.js").then(e=>({default:e.FileUploadFieldDefault}))),"multi-select":a(()=>import("./MultiSelectFieldDefault-HP5FIBJY.js").then(e=>({default:e.MultiSelectFieldDefault}))),number:a(()=>import("./NumberFieldDefault-P7TLA6SH.js").then(e=>({default:e.NumberFieldDefault}))),pdfViewer:a(()=>import("./PDFPreviewDefault-HSSMYKV5.js").then(e=>({default:e.PDFPreviewDefault}))),radio:a(()=>import("./RadioGroupFieldDefault-AUAF4USM.js").then(e=>({default:e.RadioGroupFieldDefault}))),select:a(()=>import("./SelectFieldDefault-3AHIKGCW.js").then(e=>({default:e.SelectFieldDefault}))),statement:a(()=>import("./StatementDefault-RDC5G24K.js").then(e=>({default:e.StatementDefault}))),table:a(()=>import("./TableFieldDefault-ES7OIYX5.js").then(e=>({default:e.TableFieldDefault}))),textarea:a(()=>import("./TextAreaFieldDefault-JICC77TL.js").then(e=>({default:e.TextAreaFieldDefault}))),tel:a(()=>import("./TelFieldDefault-Q7HOBD4G.js").then(e=>({default:e.TelFieldDefault}))),text:a(()=>import("./TextFieldDefault-WIVGKVPT.js").then(e=>({default:e.TextFieldDefault}))),time:a(()=>import("./TimeFieldDefault-7GXGSJYO.js").then(e=>({default:e.TimeFieldDefault}))),"work-schedule":a(()=>import("./WorkScheduleFieldDefault-JAU2YFQF.js").then(e=>({default:e.WorkScheduleFieldDefault}))),zendeskDrawer:a(()=>import("./ZendeskDrawerDefault-HGKAUCUV.js").then(e=>({default:e.ZendeskDrawerDefault})))};import{jsx as y,jsxs as so}from"react/jsx-runtime";function K(){return so("div",{className:"animate-pulse space-y-4 p-4",children:[y("div",{className:"h-4 bg-gray-200 rounded w-1/4"}),y("div",{className:"h-10 bg-gray-200 rounded"}),y("div",{className:"h-4 bg-gray-200 rounded w-1/4"}),y("div",{className:"h-10 bg-gray-200 rounded"})]})}r(K,"FormLoadingFallback");import{useState as ao,useEffect as io}from"react";import{Fragment as lo,jsx as mo}from"react/jsx-runtime";function Q({fallback:e,delay:o=200}){let[t,n]=ao(!1);return io(()=>{let s=setTimeout(()=>{n(!0)},o);return()=>clearTimeout(s)},[o]),t?mo(lo,{children:e}):null}r(Q,"DelayedFallback");import{QueryClient as co}from"@tanstack/react-query";var G=r(()=>new co({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),"getQueryClient");import{jsx as c}from"react/jsx-runtime";function go({children:e,client:o}){return c(x.Provider,{value:{client:o},children:e})}r(go,"RemoteFlowContextWrapper");function yo({children:e,components:o={},transformHtmlToComponents:t}){let n=$(()=>({...z,...o}),[o]),s=$(()=>({components:n,transformHtmlToComponents:t}),[n,t]);return c(F.Provider,{value:s,children:c(uo,{fallback:c(Q,{fallback:c(K,{}),delay:200}),children:e})})}r(yo,"FormFieldsProvider");var Co=G();function Po({auth:e,children:o,components:t,theme:n,proxy:s,environment:l,errorBoundary:m={useParentErrorBoundary:!0},debug:i=!1,credentials:C,transformHtmlToComponents:P}){let h=fo(M(e,{proxy:s,environment:l,credentials:C})).current;return c(D,{children:c(g,{errorBoundary:m,debug:i,environment:l,client:h,children:c(po,{client:Co,children:c(yo,{components:t,transformHtmlToComponents:P,children:c(go,{environment:l,debug:i,client:h,children:c(N,{theme:n,children:o})})})})})})}r(Po,"RemoteFlows");export{ie as ContractAmendmentConfirmationForm,ue as ContractAmendmentFlow,le as ContractAmendmentForm,me as ContractAmendmentSubmit,Se as ContractorOnboardingFlow,oe as CostCalculatorFlow,re as CostCalculatorForm,ne as CostCalculatorResetButton,te as CostCalculatorSubmitButton,Me as CreateCompanyFlow,Re as EmploymentAgreementInfoContent,se as EstimationResults,he as OnboardingFlow,Oe as PayrollAdminOnboardingFlow,Ae as PayrollEmployeeOnboardingFlow,Po as RemoteFlows,ae as SummaryResults,Ee as TerminationDialogInfoContent,Ce as TerminationFlow,Pe as TerminationReasonsDetailContent,J as ZendeskTriggerButton,X as buildCostCalculatorEstimationPayload,xe as contractorPlusProductIdentifier,Fe as contractorStandardProductIdentifier,q as convertFromCents,be as corProductIdentifier,we as eorProductIdentifier,ve as onboardingWorkflows,Te as pricingPlanDetails,H as transformYupErrorsIntoObject,de as useContractAmendment,ee as useCostCalculator,j as useCostCalculatorEstimationCsv,Y as useCostCalculatorEstimationPdf,pe as useDiscardEmploymentMutation,ce as useEmploymentQuery,ke as useGPLegalEntities,Ie as useMagicLink,ge as usePaidTimeoffBreakdownQuery,De as usePayrollAdminOnboarding,Ne as usePayrollEmployeeOnboarding,Le as useSandboxApproveRiskReservePayment,ye as useTimeOffLeavePoliciesSummaryQuery,fe as useTimeOffQuery,Z as zendeskArticles};
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { c as cn, s as sanitizeHtml } from './utils-D6wAHCpX.js';
1
+ export { c as cn, s as sanitizeHtml } from './utils-BVwm5Jyt.js';
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  import * as React$1 from 'react';
@@ -12,11 +12,11 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
12
12
  import * as SelectPrimitive from '@radix-ui/react-select';
13
13
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
14
14
  export { JsonSchemaPlaygroundFlow, JsonSchemaPlaygroundFlowProps } from './flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js';
15
- export { J as JsonSchemaPlaygroundRenderProps, S as SampleSchema, u as useJsonSchemaPlayground } from './types-BolF-TDg.js';
15
+ export { J as JsonSchemaPlaygroundRenderProps, S as SampleSchema, u as useJsonSchemaPlayground } from './types-B4GARfFq.js';
16
16
  export { JsonSchemaPlaygroundFormProps } from './flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js';
17
17
  import 'clsx';
18
18
  import 'yup';
19
- import './remoteFlows-DHOW-e53.js';
19
+ import './remoteFlows-dULw8FdP.js';
20
20
  import './types.gen-C4K7xky-.js';
21
21
  import 'react-hook-form';
22
22
  import '@remoteoss/json-schema-form-v0-deprecated';
package/dist/internals.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as N,b as O,c as P,d as Q,e as R,f as S,g as T,h as U,i as V,j as W,k as X,l as Y,m as Z,n as _,o as $,p as aa}from"./chunk-YZKQB7WG.js";import"./chunk-MAEAZFMR.js";import{a as ca}from"./chunk-KV4SSPEB.js";import"./chunk-F6NFCJYW.js";import{a as ba}from"./chunk-HYWQLLZC.js";import"./chunk-726N45PF.js";import"./chunk-VZ34NZXF.js";import"./chunk-4MI7BMM5.js";import{a as M}from"./chunk-ZE3YT3Q6.js";import{a as G,b as H,c as I,d as J,e as K,f as L}from"./chunk-AHUSQVQY.js";import"./chunk-G3QDDD53.js";import"./chunk-RG67OYQN.js";import"./chunk-X3FRANQS.js";import"./chunk-WVJDCDGZ.js";import"./chunk-LD633A5N.js";import"./chunk-KFYWUBRS.js";import"./chunk-WL7WQBSR.js";import"./chunk-2RVICCFD.js";import"./chunk-CM4UUBU5.js";import"./chunk-S5BNS2JE.js";import{a as z}from"./chunk-LQFLXXBR.js";import{a as A,b as B,c as C,d as D,e as E}from"./chunk-6QEAL5BB.js";import{a as F}from"./chunk-DLSHZLHX.js";import{a as g,c as h,d as i,e as j,f as k}from"./chunk-HFFQ642D.js";import{a as x,b as y}from"./chunk-GPY3JZJJ.js";import{a as n,b as o,c as p,d as q,e as r,f as s,g as t}from"./chunk-DOVE5SYY.js";import{a as l,b as m}from"./chunk-QO7HHRNA.js";import{a as f}from"./chunk-BS2YN6CS.js";import{a as u,b as v,c as w}from"./chunk-DDH7MZ7M.js";import"./chunk-UCBZMQGL.js";import"./chunk-RRERBS7F.js";import{a as d,b as e}from"./chunk-BC4V2YAK.js";import"./chunk-4GIQCWII.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import{g as c}from"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import{n as a,r as b}from"./chunk-NXRWBI36.js";import"./chunk-FSGFBJJF.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{u as Alert,w as AlertDescription,v as AlertTitle,m as Badge,M as BasicTooltip,e as Button,G as Card,K as CardContent,J as CardDescription,L as CardFooter,H as CardHeader,I as CardTitle,F as Checkbox,N as Collapsible,P as CollapsibleContent,O as CollapsibleTrigger,n as Dialog,p as DialogContent,t as DialogDescription,r as DialogFooter,q as DialogHeader,s as DialogTitle,o as DialogTrigger,A as Drawer,C as DrawerContent,D as DrawerHeader,E as DrawerTitle,B as DrawerTrigger,f as FileUploader,Q as FullScreenDialog,S as FullScreenDialogContent,W as FullScreenDialogDescription,U as FullScreenDialogFooter,T as FullScreenDialogHeader,V as FullScreenDialogTitle,R as FullScreenDialogTrigger,z as Input,aa as JsonSchemaComparison,ca as JsonSchemaPlaygroundFlow,c as Label,x as RadioGroup,y as RadioGroupItem,$ as ScrollArea,g as Select,j as SelectContent,k as SelectItem,i as SelectTrigger,h as SelectValue,X as Tabs,_ as TabsContent,Y as TabsList,Z as TabsTrigger,l as badgeVariants,d as buttonVariants,a as cn,b as sanitizeHtml,ba as useJsonSchemaPlayground};
1
+ import{a as N,b as O,c as P,d as Q,e as R,f as S,g as T,h as U,i as V,j as W,k as X,l as Y,m as Z,n as _,o as $,p as aa}from"./chunk-V5TMPQVK.js";import"./chunk-MAEAZFMR.js";import{a as M}from"./chunk-ZE3YT3Q6.js";import{a as G,b as H,c as I,d as J,e as K,f as L}from"./chunk-AHUSQVQY.js";import{a as ca}from"./chunk-V24SYZ5Y.js";import"./chunk-VZ34NZXF.js";import"./chunk-F6NFCJYW.js";import{a as ba}from"./chunk-HYWQLLZC.js";import"./chunk-2EKQ35Z2.js";import"./chunk-4MI7BMM5.js";import"./chunk-G3QDDD53.js";import"./chunk-UWSG45OM.js";import"./chunk-HDOEUCXY.js";import"./chunk-WVJDCDGZ.js";import"./chunk-WI4YITIC.js";import"./chunk-KFYWUBRS.js";import"./chunk-KSZ3D3P3.js";import"./chunk-KBDRU6SO.js";import"./chunk-CM4UUBU5.js";import"./chunk-S5BNS2JE.js";import{a as z}from"./chunk-LQFLXXBR.js";import{a as A,b as B,c as C,d as D,e as E}from"./chunk-6QEAL5BB.js";import{a as F}from"./chunk-DLSHZLHX.js";import{a as g,c as h,d as i,e as j,f as k}from"./chunk-HFFQ642D.js";import{a as x,b as y}from"./chunk-GPY3JZJJ.js";import{a as n,b as o,c as p,d as q,e as r,f as s,g as t}from"./chunk-DOVE5SYY.js";import{a as l,b as m}from"./chunk-QO7HHRNA.js";import{a as f}from"./chunk-BS2YN6CS.js";import{a as u,b as v,c as w}from"./chunk-DDH7MZ7M.js";import"./chunk-UCBZMQGL.js";import"./chunk-RRERBS7F.js";import{a as d,b as e}from"./chunk-BC4V2YAK.js";import"./chunk-BODQC6OK.js";import"./chunk-RKXF7Q7V.js";import"./chunk-WDO7XH6B.js";import{g as c}from"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import{n as a,r as b}from"./chunk-NXRWBI36.js";import"./chunk-FSGFBJJF.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{u as Alert,w as AlertDescription,v as AlertTitle,m as Badge,M as BasicTooltip,e as Button,G as Card,K as CardContent,J as CardDescription,L as CardFooter,H as CardHeader,I as CardTitle,F as Checkbox,N as Collapsible,P as CollapsibleContent,O as CollapsibleTrigger,n as Dialog,p as DialogContent,t as DialogDescription,r as DialogFooter,q as DialogHeader,s as DialogTitle,o as DialogTrigger,A as Drawer,C as DrawerContent,D as DrawerHeader,E as DrawerTitle,B as DrawerTrigger,f as FileUploader,Q as FullScreenDialog,S as FullScreenDialogContent,W as FullScreenDialogDescription,U as FullScreenDialogFooter,T as FullScreenDialogHeader,V as FullScreenDialogTitle,R as FullScreenDialogTrigger,z as Input,aa as JsonSchemaComparison,ca as JsonSchemaPlaygroundFlow,c as Label,x as RadioGroup,y as RadioGroupItem,$ as ScrollArea,g as Select,j as SelectContent,k as SelectItem,i as SelectTrigger,h as SelectValue,X as Tabs,_ as TabsContent,Y as TabsList,Z as TabsTrigger,l as badgeVariants,d as buttonVariants,a as cn,b as sanitizeHtml,ba as useJsonSchemaPlayground};
2
2
  //# sourceMappingURL=internals.js.map
@@ -1,4 +1,4 @@
1
- import './remoteFlows-DHOW-e53.js';
1
+ import './remoteFlows-dULw8FdP.js';
2
2
 
3
3
  interface SuccessResponse<D> {
4
4
  data: D;
@@ -105,6 +105,13 @@ type FieldDataProps = Partial<JSFField> & {
105
105
  meta?: {
106
106
  helpCenter?: HelpCenterDataProps;
107
107
  };
108
+ /**
109
+ * Optional node the SDK asks the field to render after the description and its help center
110
+ * link. Only some fields provide it: the salary field uses it for the currency conversion
111
+ * toggle when the flow enables the 'split_salary_description' feature. If your custom
112
+ * component doesn't render it, the toggle won't be available to your users.
113
+ */
114
+ descriptionSuffix?: React.ReactNode;
108
115
  /**
109
116
  * Optional HTML transformer function passed from RemoteFlows context.
110
117
  * Use this in custom field components to transform HTML descriptions into React components.
@@ -1,5 +1,5 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
- import { a as JSFFieldset } from './remoteFlows-DHOW-e53.js';
2
+ import { a as JSFFieldset } from './remoteFlows-dULw8FdP.js';
3
3
  import * as _remoteoss_json_schema_form_v0_deprecated from '@remoteoss/json-schema-form-v0-deprecated';
4
4
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
5
5
  import { JsonSchemaPlaygroundForm } from './flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js';
@@ -1,7 +1,7 @@
1
1
  import { FlowOptions, JSONSchemaFormResultWithFieldsets, GPStepCallbacks } from './flows/types.js';
2
2
  import * as React$1 from 'react';
3
3
  import { $ as Step$1, a0 as SubStep, S as SuccessResponse, y as EmploymentDetailsOnlyResponse } from './types.gen-C4K7xky-.js';
4
- import './remoteFlows-DHOW-e53.js';
4
+ import './remoteFlows-dULw8FdP.js';
5
5
  import { FieldValues } from 'react-hook-form';
6
6
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
7
7
  import * as _remoteoss_json_schema_form_v0_deprecated from '@remoteoss/json-schema-form-v0-deprecated';
@@ -2,9 +2,9 @@ import { e as EmploymentCreationResponse, f as EmploymentResponse, S as SuccessR
2
2
  import * as React$1 from 'react';
3
3
  import { OnboardingBack } from './flows/Onboarding/components/OnboardingBack.js';
4
4
  import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
5
- import { N as NormalizedFieldError, S as SuccessResponse$1, E as ErrorResponse } from './mutations-CajBazWr.js';
5
+ import { N as NormalizedFieldError, S as SuccessResponse$1, E as ErrorResponse } from './mutations-DCAaAw5a.js';
6
6
  import { OnboardingSubmit } from './flows/Onboarding/components/OnboardingSubmit.js';
7
- import { C as Components, J as JSFFields, N as NestedMeta, a as JSFFieldset } from './remoteFlows-DHOW-e53.js';
7
+ import { C as Components, J as JSFFields, N as NestedMeta, a as JSFFieldset } from './remoteFlows-dULw8FdP.js';
8
8
  import * as _tanstack_query_core from '@tanstack/query-core';
9
9
  import { ValidationResult } from '@remoteoss/remote-json-schema-form-kit';
10
10
  import { Step } from './flows/useStepState.js';
@@ -94,6 +94,12 @@ declare function buildSteps(config?: StepConfig): {
94
94
  */
95
95
  declare const reviewStepAllowedEmploymentStatus: Employment['status'][];
96
96
  declare const disabledInviteButtonEmploymentStatus: Employment['status'][];
97
+ /**
98
+ * Array of employment statuses that have already handled the reserve flow.
99
+ * @type {Employment['status'][]}
100
+ * @constant
101
+ */
102
+ declare const statusesWithReserveAlreadyHandled: Employment['status'][];
97
103
  declare const DEFAULT_VERSION = 1;
98
104
  /**
99
105
  * Checks if a country's contract details schema is served as jsfVersion 1
@@ -121,6 +127,12 @@ declare const getBasicInformationSchemaVersion: (options: OnboardingFlowProps["o
121
127
  * @returns The jsonSchemaVersion for benefit offers or undefined if not set
122
128
  */
123
129
  declare const getBenefitOffersSchemaVersion: (options: OnboardingFlowProps["options"]) => number | "latest";
130
+ /**
131
+ * Gets the engagement agreement details schema version from options
132
+ * @param options - The flow options containing version configurations
133
+ * @returns The jsonSchemaVersion for engagement agreement details or default
134
+ */
135
+ declare const getEngagementAgreementDetailsSchemaVersion: (options: OnboardingFlowProps["options"]) => number | "latest";
124
136
 
125
137
  type OnboardingHookProps = Omit<OnboardingFlowProps, 'render'>;
126
138
  declare const useOnboarding: ({ employmentId, companyId, countryCode, type, options, skipSteps, externalId, initialValues: onboardingInitialValues, }: OnboardingHookProps) => {
@@ -132,7 +144,7 @@ declare const useOnboarding: ({ employmentId, companyId, countryCode, type, opti
132
144
  * Onboarding flow options (feature flags)
133
145
  */
134
146
  options: {
135
- features: ("onboarding_reserves" | "dynamic_steps" | "ea_preview" | "pre_onboarding_requirements")[] | undefined;
147
+ features: ("split_salary_description" | "onboarding_reserves" | "dynamic_steps" | "ea_preview" | "pre_onboarding_requirements")[] | undefined;
136
148
  };
137
149
  /**
138
150
  * Credit risk status of the company, useful to know what to to show in the review step
@@ -303,7 +315,7 @@ declare const useOnboarding: ({ employmentId, companyId, countryCode, type, opti
303
315
  * let's the user know that the employment cannot be edited, happens when employment.status is invited, created_awaiting_reserve or created_reserve_paid
304
316
  * @returns {boolean}
305
317
  */
306
- isEmploymentReadOnly: boolean | undefined;
318
+ isEmploymentReadOnly: boolean;
307
319
  /**
308
320
  * let's the user know if the company can invite employees
309
321
  * @returns {boolean}
@@ -605,6 +617,7 @@ declare const useEngagementAgreementDetailsSchema: (countryCode: string, fieldVa
605
617
  queryOptions?: {
606
618
  enabled?: boolean;
607
619
  };
620
+ jsonSchemaVersion?: number | "latest";
608
621
  }) => UseQueryResult<NoInfer<JSONSchemaFormResultWithFieldsets>, Error>;
609
622
  /**
610
623
  * Get pre-onboarding requirements for an employment
@@ -773,7 +786,7 @@ type OnboardingRenderProps = {
773
786
  PreviewEmploymentAgreementStep: typeof PreviewEmploymentAgreementStep;
774
787
  };
775
788
  };
776
- type OnboardingFeatures = 'onboarding_reserves' | 'dynamic_steps' | 'ea_preview' | 'pre_onboarding_requirements';
789
+ type OnboardingFeatures = 'onboarding_reserves' | 'dynamic_steps' | 'ea_preview' | 'pre_onboarding_requirements' | 'split_salary_description';
777
790
  /**
778
791
  * JSON schema version configuration for a specific country
779
792
  */
@@ -856,6 +869,12 @@ type OnboardingFlowProps = {
856
869
  * The default value is 1.
857
870
  */
858
871
  benefit_offers_form_schema?: number | 'latest';
872
+ /**
873
+ * The json schema version to use for the engagement agreement details step.
874
+ * This is used to override the json schema version for the engagement agreement details step.
875
+ * The default value is 1.
876
+ */
877
+ engagement_agreement_details?: number | 'latest';
859
878
  };
860
879
  /**
861
880
  * The json schema version to use for the onboarding by country.
@@ -870,6 +889,10 @@ type OnboardingFlowProps = {
870
889
  * This is used to enable or disable features for the onboarding.
871
890
  * - 'onboarding_reserves': Enable onboarding reserves feature
872
891
  * - 'dynamic_steps': Enable dynamic step generation with visibility control (opt-in, will be default in next major version)
892
+ * - 'split_salary_description': Hand the annual gross salary description, its help center link and the
893
+ * currency conversion toggle to the text component as three separate slots (`description`,
894
+ * `meta.helpCenter`, `descriptionSuffix`) instead of packing them into `description`.
895
+ * Custom text components must render `fieldData.descriptionSuffix` to keep the conversion toggle.
873
896
  */
874
897
  features?: OnboardingFeatures[];
875
898
  };
@@ -917,4 +940,4 @@ type Employment = Employment$1 & {
917
940
  };
918
941
  type CreditRiskState = 'deposit_required' | 'deposit_required_successful' | 'invite' | 'invite_successful' | 'referred' | null;
919
942
 
920
- export { PreOnboardingRequirements as $, useContractDetailsSchema as A, type BenefitsFormPayload as B, type ContractDetailsFormPayload as C, DEFAULT_VERSION as D, type EngagementAgreementDetailsFormPayload as E, useBenefitOffersSchema as F, useCreateEmployment as G, useUpdateEmployment as H, useUpdateEmploymentEngagementAgreementDetails as I, useUpdateBenefitsOffers as J, useCountriesSchemaField as K, useConvertCurrency as L, useUpsertContractEligibility as M, useEmploymentOnboardingReservesStatus as N, type OnboardingRenderProps as O, type PreOnboardingRequirementsBag as P, useEngagementAgreementDetailsSchema as Q, ReviewStep as R, type SelectCountryFormPayload as S, useGetPreOnboardingRequirements as T, useCreatePreOnboardingDocument as U, useGetPreOnboardingDocument as V, useSignPreOnboardingDocument as W, useAcknowledgePreOnboardingRequirement as X, useRemoveAcknowledgePreOnboardingRequirement as Y, useEmploymentAgreementPreview as Z, usePreOnboardingRequirements as _, type BasicInformationFormPayload as a, type OnboardingJsfModify as a0, type SelectCountrySuccess as b, type CreditRiskStatus as c, type Employment as d, type CreditRiskState as e, type OnboardingFlowProps as f, type StepKeys as g, SelectCountryStep as h, BasicInformationStep as i, ContractDetailsStep as j, BenefitsStep as k, buildSteps as l, disabledInviteButtonEmploymentStatus as m, usesJsfV1ContractDetails as n, getContractDetailsSchemaVersion as o, getBasicInformationSchemaVersion as p, getBenefitOffersSchemaVersion as q, reviewStepAllowedEmploymentStatus as r, EngagementAgreementDetailsStep as s, useCompany as t, useOnboarding as u, useBenefitOffers as v, useEmploymentEngagementAgreementDetails as w, useEmploymentInvite as x, useCreateReserveInvoice as y, useJSONSchemaForm as z };
943
+ export { useEmploymentAgreementPreview as $, useCreateReserveInvoice as A, type BenefitsFormPayload as B, type ContractDetailsFormPayload as C, DEFAULT_VERSION as D, type EngagementAgreementDetailsFormPayload as E, useJSONSchemaForm as F, useContractDetailsSchema as G, useBenefitOffersSchema as H, useCreateEmployment as I, useUpdateEmployment as J, useUpdateEmploymentEngagementAgreementDetails as K, useUpdateBenefitsOffers as L, useCountriesSchemaField as M, useConvertCurrency as N, type OnboardingRenderProps as O, type PreOnboardingRequirementsBag as P, useUpsertContractEligibility as Q, ReviewStep as R, type SelectCountryFormPayload as S, useEmploymentOnboardingReservesStatus as T, useEngagementAgreementDetailsSchema as U, useGetPreOnboardingRequirements as V, useCreatePreOnboardingDocument as W, useGetPreOnboardingDocument as X, useSignPreOnboardingDocument as Y, useAcknowledgePreOnboardingRequirement as Z, useRemoveAcknowledgePreOnboardingRequirement as _, type BasicInformationFormPayload as a, usePreOnboardingRequirements as a0, PreOnboardingRequirements as a1, type OnboardingJsfModify as a2, type SelectCountrySuccess as b, type CreditRiskStatus as c, type Employment as d, type CreditRiskState as e, type OnboardingFlowProps as f, type StepKeys as g, SelectCountryStep as h, BasicInformationStep as i, ContractDetailsStep as j, BenefitsStep as k, buildSteps as l, disabledInviteButtonEmploymentStatus as m, usesJsfV1ContractDetails as n, getContractDetailsSchemaVersion as o, getBasicInformationSchemaVersion as p, getBenefitOffersSchemaVersion as q, reviewStepAllowedEmploymentStatus as r, statusesWithReserveAlreadyHandled as s, getEngagementAgreementDetailsSchemaVersion as t, useOnboarding as u, EngagementAgreementDetailsStep as v, useCompany as w, useBenefitOffers as x, useEmploymentEngagementAgreementDetails as y, useEmploymentInvite as z };
@@ -1,6 +1,6 @@
1
1
  import { O as OffboardingResponse, a6 as PayrollCalendarEor, E as Employment, z as TerminationDetailsParams, N as NotFoundResponse, U as UnprocessableEntityResponse, T as TooManyRequestsResponse, B as BadRequestResponse, a as UnauthorizedResponse, R as RequestError } from './types.gen-C4K7xky-.js';
2
2
  import * as React$1 from 'react';
3
- import { E as ErrorResponse, S as SuccessResponse } from './mutations-CajBazWr.js';
3
+ import { E as ErrorResponse, S as SuccessResponse } from './mutations-DCAaAw5a.js';
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 './flows/useStepState.js';
@@ -1,7 +1,7 @@
1
1
  import { FlowOptions, JSONSchemaFormResultWithFieldsets, GPStepCallbacks } from './flows/types.js';
2
2
  import * as React$1 from 'react';
3
3
  import { i as CompanyLegalEntity, $ as Step$1, e as EmploymentCreationResponse, y as EmploymentDetailsOnlyResponse } from './types.gen-C4K7xky-.js';
4
- import './remoteFlows-DHOW-e53.js';
4
+ import './remoteFlows-dULw8FdP.js';
5
5
  import { FieldValues } from 'react-hook-form';
6
6
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
7
7
  import * as _remoteoss_json_schema_form_v0_deprecated from '@remoteoss/json-schema-form-v0-deprecated';
@@ -1,8 +1,8 @@
1
1
  import { u as CompanyResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, T as TooManyRequestsResponse, B as BadRequestResponse, a as UnauthorizedResponse } from './types.gen-C4K7xky-.js';
2
- import { F as FieldError, N as NormalizedFieldError } from './mutations-CajBazWr.js';
2
+ import { F as FieldError, N as NormalizedFieldError } from './mutations-DCAaAw5a.js';
3
3
  import * as React$1 from 'react';
4
4
  import { FieldValues } from 'react-hook-form';
5
- import { J as JSFFields, M as Meta, a as JSFFieldset } from './remoteFlows-DHOW-e53.js';
5
+ import { J as JSFFields, M as Meta, a as JSFFieldset } from './remoteFlows-dULw8FdP.js';
6
6
  import { ValidationResult } from '@remoteoss/remote-json-schema-form-kit';
7
7
  import { FlowOptions, JSFModify } from './flows/types.js';
8
8
  import { CreateCompanySubmit } from './flows/CreateCompany/components/CreateCompanySubmit.js';
@@ -2,15 +2,15 @@ import { e as EmploymentCreationResponse, S as SuccessResponse, f as EmploymentR
2
2
  import { OnboardingBack } from './flows/ContractorOnboarding/components/OnboardingBack.js';
3
3
  import { OnboardingSubmit } from './flows/ContractorOnboarding/components/OnboardingSubmit.js';
4
4
  import * as React$1 from 'react';
5
- import { C as Components, J as JSFFields, M as Meta, a as JSFFieldset } from './remoteFlows-DHOW-e53.js';
6
- import { N as NormalizedFieldError } from './mutations-CajBazWr.js';
5
+ import { C as Components, J as JSFFields, M as Meta, a as JSFFieldset } from './remoteFlows-dULw8FdP.js';
6
+ import { N as NormalizedFieldError } from './mutations-DCAaAw5a.js';
7
7
  import * as _tanstack_query_core from '@tanstack/query-core';
8
8
  import { Step } from './flows/useStepState.js';
9
9
  import { FieldValues } from 'react-hook-form';
10
10
  import { ValidationResult } from '@remoteoss/remote-json-schema-form-kit';
11
11
  import { StepKeys } from './flows/ContractorOnboarding/utils.js';
12
12
  import { BasicInformationStep } from './flows/ContractorOnboarding/components/BasicInformationStep.js';
13
- import { h as SelectCountryStep } from './types-CVrHYMLy.js';
13
+ import { h as SelectCountryStep } from './types-C_UFZOHt.js';
14
14
  import { FlowOptions, JSFModify } from './flows/types.js';
15
15
  import { OnboardingInvite } from './flows/ContractorOnboarding/components/OnboardingInvite.js';
16
16
  import { ContractReviewButton } from './flows/ContractorOnboarding/components/ContractReviewButton.js';
@@ -1,6 +1,6 @@
1
1
  import { ClassValue } from 'clsx';
2
2
  import { ValidationError } from 'yup';
3
- import './remoteFlows-DHOW-e53.js';
3
+ import './remoteFlows-dULw8FdP.js';
4
4
 
5
5
  declare function cn(...inputs: ClassValue[]): string;
6
6
  type YupError = Pick<ValidationError, 'type' | 'errors'> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remoteoss/remote-flows",
3
- "version": "1.45.0",
3
+ "version": "1.47.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/remoteoss/remote-flows.git"
@@ -99,10 +99,10 @@
99
99
  "@radix-ui/react-scroll-area": "1.2.11",
100
100
  "@radix-ui/react-select": "2.3.0",
101
101
  "@radix-ui/react-tabs": "1.1.14",
102
- "@remoteoss/remote-json-schema-form-kit": "0.0.21",
102
+ "@remoteoss/remote-json-schema-form-kit": "0.0.23",
103
103
  "@tailwindcss/cli": "4.2.4",
104
104
  "@tailwindcss/postcss": "4.2.4",
105
- "@tanstack/react-query": "5.101.0",
105
+ "@tanstack/react-query": "5.101.4",
106
106
  "class-variance-authority": "0.7.1",
107
107
  "clsx": "2.1.1",
108
108
  "cmdk": "1.1.1",
@@ -116,7 +116,7 @@
116
116
  "lodash.omit": "4.18.0",
117
117
  "lodash.omitby": "4.6.0",
118
118
  "lucide-react": "1.21.0",
119
- "postcss": "8.5.18",
119
+ "postcss": "8.5.23",
120
120
  "react-day-picker": "8.10.2",
121
121
  "react-flagpack": "2.0.6",
122
122
  "react-hook-form": "7.73.1",
@@ -127,7 +127,7 @@
127
127
  "yup": "0.32.11"
128
128
  },
129
129
  "devDependencies": {
130
- "@arethetypeswrong/cli": "0.18.3",
130
+ "@arethetypeswrong/cli": "0.18.5",
131
131
  "@hey-api/openapi-ts": "0.95.0",
132
132
  "@testing-library/jest-dom": "6.9.1",
133
133
  "@testing-library/react": "16.3.2",
@@ -147,7 +147,7 @@
147
147
  "glob": "13.0.6",
148
148
  "gzip-size": "7.0.0",
149
149
  "jsdom": "29.1.1",
150
- "msw": "2.14.6",
150
+ "msw": "2.15.0",
151
151
  "oxfmt": "0.56.0",
152
152
  "oxlint": "1.70.0",
153
153
  "tsup": "8.5.1",
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-4FV6Z3HE.js";import"./chunk-DLSHZLHX.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CheckboxFieldDefault};
2
- //# sourceMappingURL=CheckboxFieldDefault-62URAHJV.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-2EGFPBT7.js";import"./chunk-NDWVOVDM.js";import"./chunk-ZHFUFIWX.js";import"./chunk-DOVE5SYY.js";import"./chunk-QO7HHRNA.js";import"./chunk-BC4V2YAK.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CountryFieldDefault};
2
- //# sourceMappingURL=CountryFieldDefault-24NNZN2C.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-VYLSS2C7.js";import"./chunk-ZHFUFIWX.js";import"./chunk-BC4V2YAK.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as DatePickerFieldDefault};
2
- //# sourceMappingURL=DatePickerFieldDefault-NMUCZ4U2.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-WJAGRH76.js";import"./chunk-BS2YN6CS.js";import"./chunk-BC4V2YAK.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as FileUploadFieldDefault};
2
- //# sourceMappingURL=FileUploadFieldDefault-4NW5VLF6.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-JXH42V2F.js";import"./chunk-NDWVOVDM.js";import"./chunk-ZHFUFIWX.js";import"./chunk-DOVE5SYY.js";import"./chunk-QO7HHRNA.js";import"./chunk-BC4V2YAK.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as MultiSelectFieldDefault};
2
- //# sourceMappingURL=MultiSelectFieldDefault-S45Z53ZY.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-6JTUAJBZ.js";import"./chunk-GPY3JZJJ.js";import"./chunk-QO7HHRNA.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as RadioGroupFieldDefault};
2
- //# sourceMappingURL=RadioGroupFieldDefault-X44FYUA3.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-AW436CZP.js";import"./chunk-HFFQ642D.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as SelectFieldDefault};
2
- //# sourceMappingURL=SelectFieldDefault-PLDXHTQY.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-UHFNNG5S.js";import"./chunk-LQFLXXBR.js";import"./chunk-HFFQ642D.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TelFieldDefault};
2
- //# sourceMappingURL=TelFieldDefault-IYGEEV5V.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-6SNWSCXH.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TextAreaFieldDefault};
2
- //# sourceMappingURL=TextAreaFieldDefault-C6M3PIV2.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-B6F2M3ZM.js";import"./chunk-LQFLXXBR.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TextFieldDefault};
2
- //# sourceMappingURL=TextFieldDefault-OC2TMXVF.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-T3IHAH3B.js";import"./chunk-LQFLXXBR.js";import"./chunk-MZN6VY5F.js";import"./chunk-INUCPQVI.js";import"./chunk-4FGKIGKF.js";import"./chunk-XPITUVQE.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TimeFieldDefault};
2
- //# sourceMappingURL=TimeFieldDefault-J6PKL5T4.js.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-O2M7ZWVK.js";import"./chunk-DOVE5SYY.js";import"./chunk-RRERBS7F.js";import"./chunk-BC4V2YAK.js";import"./chunk-4GIQCWII.js";import"./chunk-4FGKIGKF.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as WorkScheduleFieldDefault};
2
- //# sourceMappingURL=WorkScheduleFieldDefault-MDDNWRCO.js.map
@@ -1,2 +0,0 @@
1
- import{c as s,i as a}from"./chunk-4FGKIGKF.js";import{b as m,c as p}from"./chunk-H2O4CVKF.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function D({name:o,description:l,label:F,type:x,onChange:t,component:c,includeErrorMessage:f=!0,additionalProps:u={},maxLength:T,...C}){let{components:P}=m(),{control:S}=s(),g=p();return d(a,{control:S,name:o,render:({field:r,fieldState:M})=>{let n=c||P?.text;if(!n)throw new Error(`Text component not found for field ${o}`);let $={name:o,description:l,label:F,type:x,onChange:t,metadata:u,maxLength:T,includeErrorMessage:f,transformHtml:g,...C};return d(n,{field:{...r,onChange:e(i=>{r.onChange(i),t?.(i)},"onChange")},fieldState:M,fieldData:$})}})}e(D,"TextField");export{D as a};
2
- //# sourceMappingURL=chunk-4GIQCWII.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/form/fields/TextField.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { useFormFields, useTransformer } from '@/src/context';\nimport { Components, JSFField, $TSFixMe } from '@/src/types/remoteFlows';\nimport { useFormContext } from 'react-hook-form';\nimport { FormField } from '../../ui/form';\nimport { TextFieldDataProps } from '@/src/types/fields';\n\nexport type TextFieldProps = React.ComponentProps<'input'> & {\n name: string;\n} & Partial<\n JSFField & {\n onChange?: (value: $TSFixMe) => void;\n component?: Components['text'];\n includeErrorMessage?: boolean;\n additionalProps?: Record<string, unknown>;\n }\n >;\n\ntype CustomTextFieldProps = TextFieldDataProps & {\n /**\n * @deprecated avoid using this prop in custom components\n */\n onChange?: (value: $TSFixMe) => void;\n};\n\nexport function TextField({\n name,\n description,\n label,\n type,\n onChange,\n component,\n includeErrorMessage = true,\n additionalProps = {},\n maxLength,\n ...rest\n}: TextFieldProps) {\n const { components } = useFormFields();\n const { control } = useFormContext();\n const transformHtml = useTransformer();\n\n return (\n <FormField\n control={control}\n name={name}\n render={({ field, fieldState }) => {\n const Component = component || components?.text;\n\n if (!Component) {\n throw new Error(`Text component not found for field ${name}`);\n }\n\n const customTextFieldProps: CustomTextFieldProps = {\n name,\n description,\n label,\n type,\n onChange,\n metadata: additionalProps,\n maxLength,\n includeErrorMessage,\n transformHtml,\n ...rest,\n };\n return (\n <Component\n field={{\n ...field,\n onChange: (value: $TSFixMe) => {\n field.onChange(value);\n onChange?.(value);\n },\n }}\n fieldState={fieldState}\n fieldData={customTextFieldProps}\n />\n );\n }}\n />\n );\n}\n"],"mappings":"sIAkEU,cAAAA,MAAA,oBAxCH,SAASC,EAAU,CACxB,KAAAC,EACA,YAAAC,EACA,MAAAC,EACA,KAAAC,EACA,SAAAC,EACA,UAAAC,EACA,oBAAAC,EAAsB,GACtB,gBAAAC,EAAkB,CAAC,EACnB,UAAAC,EACA,GAAGC,CACL,EAAmB,CACjB,GAAM,CAAE,WAAAC,CAAW,EAAIC,EAAc,EAC/B,CAAE,QAAAC,CAAQ,EAAIC,EAAe,EAC7BC,EAAgBC,EAAe,EAErC,OACEjB,EAACkB,EAAA,CACC,QAASJ,EACT,KAAMZ,EACN,OAAQ,CAAC,CAAE,MAAAiB,EAAO,WAAAC,CAAW,IAAM,CACjC,IAAMC,EAAYd,GAAaK,GAAY,KAE3C,GAAI,CAACS,EACH,MAAM,IAAI,MAAM,sCAAsCnB,CAAI,EAAE,EAG9D,IAAMoB,EAA6C,CACjD,KAAApB,EACA,YAAAC,EACA,MAAAC,EACA,KAAAC,EACA,SAAAC,EACA,SAAUG,EACV,UAAAC,EACA,oBAAAF,EACA,cAAAQ,EACA,GAAGL,CACL,EACA,OACEX,EAACqB,EAAA,CACC,MAAO,CACL,GAAGF,EACH,SAAUI,EAACC,GAAoB,CAC7BL,EAAM,SAASK,CAAK,EACpBlB,IAAWkB,CAAK,CAClB,EAHU,WAIZ,EACA,WAAYJ,EACZ,UAAWE,EACb,CAEJ,EACF,CAEJ,CAvDgBC,EAAAtB,EAAA","names":["jsx","TextField","name","description","label","type","onChange","component","includeErrorMessage","additionalProps","maxLength","rest","components","useFormFields","control","useFormContext","transformHtml","useTransformer","FormField","field","fieldState","Component","customTextFieldProps","__name","value"]}
@@ -1,2 +0,0 @@
1
- import{a as c}from"./chunk-LQFLXXBR.js";import{a as i}from"./chunk-MZN6VY5F.js";import{j as a,k as s,l as p,n as F,o as _}from"./chunk-4FGKIGKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as T}from"react/jsx-runtime";function R({field:o,fieldState:C,fieldData:t}){let{name:m,label:r,description:l,maxLength:h,includeErrorMessage:x}=t;return T(a,{"data-field":m,className:`RemoteFlows__TextField__Item__${m}`,children:[r&&e(s,{className:"RemoteFlows__TextField__Label",children:r}),e(p,{children:e(c,{...o,value:o.value??"",onChange:d=>{o.onChange(d)},className:"RemoteFlows__TextField__Input",placeholder:r,maxLength:h})}),(l||t.meta?.helpCenter)&&e(F,{className:"RemoteFlows__TextField__Description",helpCenter:e(i,{helpCenter:t.meta?.helpCenter}),children:l}),x&&C.error&&e(_,{className:"RemoteFlows__TextField__Error"})]})}n(R,"TextFieldDefault");export{R as a};
2
- //# sourceMappingURL=chunk-B6F2M3ZM.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/form/fields/default/TextFieldDefault.tsx"],"sourcesContent":["import { FormDescription, FormMessage } from '@/src/components/ui/form';\nimport { FormControl, FormItem, FormLabel } from '@/src/components/ui/form';\nimport { Input } from '@/src/components/ui/input';\nimport { HelpCenter } from '@/src/components/shared/zendesk-drawer/HelpCenter';\nimport { TextFieldComponentProps } from '@/src/types/fields';\n\nexport function TextFieldDefault({\n field,\n fieldState,\n fieldData,\n}: TextFieldComponentProps) {\n const { name, label, description, maxLength, includeErrorMessage } =\n fieldData;\n return (\n <FormItem\n data-field={name}\n className={`RemoteFlows__TextField__Item__${name}`}\n >\n {label && (\n <FormLabel className='RemoteFlows__TextField__Label'>{label}</FormLabel>\n )}\n <FormControl>\n <Input\n {...field}\n value={field.value ?? ''}\n onChange={(event: React.ChangeEvent<HTMLInputElement>) => {\n field.onChange(event);\n }}\n className='RemoteFlows__TextField__Input'\n placeholder={label}\n maxLength={maxLength}\n />\n </FormControl>\n {(description || fieldData.meta?.helpCenter) && (\n <FormDescription\n className='RemoteFlows__TextField__Description'\n helpCenter={<HelpCenter helpCenter={fieldData.meta?.helpCenter} />}\n >\n {description}\n </FormDescription>\n )}\n {includeErrorMessage && fieldState.error && (\n <FormMessage className='RemoteFlows__TextField__Error' />\n )}\n </FormItem>\n );\n}\n"],"mappings":"4LAcI,OAKI,OAAAA,EALJ,QAAAC,MAAA,oBARG,SAASC,EAAiB,CAC/B,MAAAC,EACA,WAAAC,EACA,UAAAC,CACF,EAA4B,CAC1B,GAAM,CAAE,KAAAC,EAAM,MAAAC,EAAO,YAAAC,EAAa,UAAAC,EAAW,oBAAAC,CAAoB,EAC/DL,EACF,OACEJ,EAACU,EAAA,CACC,aAAYL,EACZ,UAAW,iCAAiCA,CAAI,GAE/C,UAAAC,GACCP,EAACY,EAAA,CAAU,UAAU,gCAAiC,SAAAL,EAAM,EAE9DP,EAACa,EAAA,CACC,SAAAb,EAACc,EAAA,CACE,GAAGX,EACJ,MAAOA,EAAM,OAAS,GACtB,SAAWY,GAA+C,CACxDZ,EAAM,SAASY,CAAK,CACtB,EACA,UAAU,gCACV,YAAaR,EACb,UAAWE,EACb,EACF,GACED,GAAeH,EAAU,MAAM,aAC/BL,EAACgB,EAAA,CACC,UAAU,sCACV,WAAYhB,EAACiB,EAAA,CAAW,WAAYZ,EAAU,MAAM,WAAY,EAE/D,SAAAG,EACH,EAEDE,GAAuBN,EAAW,OACjCJ,EAACkB,EAAA,CAAY,UAAU,gCAAgC,GAE3D,CAEJ,CAxCgBC,EAAAjB,EAAA","names":["jsx","jsxs","TextFieldDefault","field","fieldState","fieldData","name","label","description","maxLength","includeErrorMessage","FormItem","FormLabel","FormControl","Input","event","FormDescription","HelpCenter","FormMessage","__name"]}
@@ -1,2 +0,0 @@
1
- import{a as y}from"./chunk-L4IKDVFW.js";import{a as l,c as m}from"./chunk-INUCPQVI.js";import{c}from"./chunk-4FGKIGKF.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-CH75YRKR.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/CostCalculator/components/SalaryField.tsx"],"sourcesContent":["import { CurrencyConversionField } from '@/src/components/form/fields/CurrencyConversionField';\nimport { ZendeskTriggerButton } from '@/src/components/shared/zendesk-drawer/ZendeskTriggerButton';\nimport { zendeskArticles } from '@/src/components/shared/zendesk-drawer/utils';\nimport { JSFField } from '@/src/types/remoteFlows';\nimport { useEffect } from 'react';\nimport { useFormContext } from 'react-hook-form';\n\ntype SalaryFieldProps = JSFField & {\n currencies: {\n from: string;\n to: string;\n };\n salary_conversion_properties?: {\n label?: string;\n description?: string;\n };\n conversionType?: 'spread' | 'no_spread';\n shouldSwapOrder: boolean;\n defaultValue?: string;\n};\n\nexport const SalaryField = ({\n currencies: { from, to },\n shouldSwapOrder,\n salary_conversion_properties,\n conversionType = 'no_spread',\n defaultValue,\n ...props\n}: SalaryFieldProps) => {\n const { setValue, getValues } = useFormContext();\n\n const conversionProperties = {\n label: salary_conversion_properties?.label || 'Salary conversion',\n description: salary_conversion_properties?.description || (\n <>\n The conversion is based on the Remote FX rate.{' '}\n <ZendeskTriggerButton\n className='text-sm'\n zendeskId={zendeskArticles.remoteFxRate}\n >\n Learn more ↗\n </ZendeskTriggerButton>\n </>\n ),\n };\n\n const mainFieldName = shouldSwapOrder ? 'salary_conversion' : props.name;\n const conversionFieldName = shouldSwapOrder\n ? props.name\n : 'salary_conversion';\n\n useEffect(() => {\n if (shouldSwapOrder) {\n const currentValue = getValues(props.name);\n\n if (currentValue) {\n setValue('salary_conversion', currentValue);\n setValue('salary_converted', 'salary_conversion');\n } else if (defaultValue) {\n // Fallback to defaultValue if no current value\n setValue('salary_conversion', defaultValue);\n setValue('salary_converted', 'salary_conversion');\n }\n } else {\n const conversionValue = getValues('salary_conversion');\n\n if (conversionValue) {\n setValue(props.name, conversionValue);\n setValue('salary_converted', props.name);\n } else if (defaultValue) {\n // Fallback to defaultValue if no conversion value\n setValue(props.name, defaultValue);\n setValue('salary_converted', props.name);\n }\n }\n }, [shouldSwapOrder, defaultValue, setValue, getValues, props.name]);\n return (\n <CurrencyConversionField\n {...props}\n sourceCurrency={from}\n targetCurrency={to}\n mainFieldName={mainFieldName}\n conversionFieldName={conversionFieldName}\n conversionProperties={conversionProperties}\n classNamePrefix='RemoteFlows-Salary'\n conversionType={conversionType}\n />\n );\n};\n"],"mappings":"kKAIA,OAAS,aAAAA,MAAiB,QA8BpB,mBAAAC,EAEE,OAAAC,EAFF,QAAAC,MAAA,oBAbC,IAAMC,EAAcC,EAAA,CAAC,CAC1B,WAAY,CAAE,KAAAC,EAAM,GAAAC,CAAG,EACvB,gBAAAC,EACA,6BAAAC,EACA,eAAAC,EAAiB,YACjB,aAAAC,EACA,GAAGC,CACL,IAAwB,CACtB,GAAM,CAAE,SAAAC,EAAU,UAAAC,CAAU,EAAIC,EAAe,EAEzCC,EAAuB,CAC3B,MAAOP,GAA8B,OAAS,oBAC9C,YAAaA,GAA8B,aACzCN,EAAAF,EAAA,CAAE,2DAC+C,IAC/CC,EAACe,EAAA,CACC,UAAU,UACV,UAAWC,EAAgB,aAC5B,6BAED,GACF,CAEJ,EAEMC,EAAgBX,EAAkB,oBAAsBI,EAAM,KAC9DQ,EAAsBZ,EACxBI,EAAM,KACN,oBAEJ,OAAAS,EAAU,IAAM,CACd,GAAIb,EAAiB,CACnB,IAAMc,EAAeR,EAAUF,EAAM,IAAI,EAErCU,GACFT,EAAS,oBAAqBS,CAAY,EAC1CT,EAAS,mBAAoB,mBAAmB,GACvCF,IAETE,EAAS,oBAAqBF,CAAY,EAC1CE,EAAS,mBAAoB,mBAAmB,EAEpD,KAAO,CACL,IAAMU,EAAkBT,EAAU,mBAAmB,EAEjDS,GACFV,EAASD,EAAM,KAAMW,CAAe,EACpCV,EAAS,mBAAoBD,EAAM,IAAI,GAC9BD,IAETE,EAASD,EAAM,KAAMD,CAAY,EACjCE,EAAS,mBAAoBD,EAAM,IAAI,EAE3C,CACF,EAAG,CAACJ,EAAiBG,EAAcE,EAAUC,EAAWF,EAAM,IAAI,CAAC,EAEjEV,EAACsB,EAAA,CACE,GAAGZ,EACJ,eAAgBN,EAChB,eAAgBC,EAChB,cAAeY,EACf,oBAAqBC,EACrB,qBAAsBJ,EACtB,gBAAgB,qBAChB,eAAgBN,EAClB,CAEJ,EAnE2B","names":["useEffect","Fragment","jsx","jsxs","SalaryField","__name","from","to","shouldSwapOrder","salary_conversion_properties","conversionType","defaultValue","props","setValue","getValues","useFormContext","conversionProperties","ZendeskTriggerButton","zendeskArticles","mainFieldName","conversionFieldName","useEffect","currentValue","conversionValue","CurrencyConversionField"]}
@@ -1,2 +0,0 @@
1
- import{n as V}from"./chunk-RG67OYQN.js";import{a as L}from"./chunk-4GIQCWII.js";import{a as U}from"./chunk-MZN6VY5F.js";import{c as B,n as J}from"./chunk-4FGKIGKF.js";import{e as A,f as M,g as D}from"./chunk-NXRWBI36.js";import{b as G}from"./chunk-H2O4CVKF.js";import{a as t,b as l,c as we}from"./chunk-P37U34EQ.js";var N=l((It,X)=>{"use strict";function Fe(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}t(Fe,"isObject");X.exports=Fe});var K=l((Pt,z)=>{"use strict";var ke=typeof global=="object"&&global&&global.Object===Object&&global;z.exports=ke});var _=l((wt,Q)=>{"use strict";var Me=K(),De=typeof self=="object"&&self&&self.Object===Object&&self,Le=Me||De||Function("return this")();Q.exports=Le});var Z=l((Ft,Y)=>{"use strict";var Ne=_(),_e=t(function(){return Ne.Date.now()},"now");Y.exports=_e});var te=l((Mt,ee)=>{"use strict";var $e=/\s/;function He(e){for(var n=e.length;n--&&$e.test(e.charAt(n)););return n}t(He,"trimmedEndIndex");ee.exports=He});var re=l((Lt,ne)=>{"use strict";var We=te(),Be=/^\s+/;function Ae(e){return e&&e.slice(0,We(e)+1).replace(Be,"")}t(Ae,"baseTrim");ne.exports=Ae});var $=l((_t,oe)=>{"use strict";var Ge=_(),Je=Ge.Symbol;oe.exports=Je});var ce=l(($t,ae)=>{"use strict";var ie=$(),se=Object.prototype,Ue=se.hasOwnProperty,Ve=se.toString,E=ie?ie.toStringTag:void 0;function Xe(e){var n=Ue.call(e,E),r=e[E];try{e[E]=void 0;var i=!0}catch{}var s=Ve.call(e);return i&&(n?e[E]=r:delete e[E]),s}t(Xe,"getRawTag");ae.exports=Xe});var fe=l((Wt,ue)=>{"use strict";var ze=Object.prototype,Ke=ze.toString;function Qe(e){return Ke.call(e)}t(Qe,"objectToString");ue.exports=Qe});var pe=l((At,me)=>{"use strict";var le=$(),Ye=ce(),Ze=fe(),et="[object Null]",tt="[object Undefined]",de=le?le.toStringTag:void 0;function nt(e){return e==null?e===void 0?tt:et:de&&de in Object(e)?Ye(e):Ze(e)}t(nt,"baseGetTag");me.exports=nt});var be=l((Jt,ge)=>{"use strict";function rt(e){return e!=null&&typeof e=="object"}t(rt,"isObjectLike");ge.exports=rt});var Ce=l((Vt,ve)=>{"use strict";var ot=pe(),it=be(),st="[object Symbol]";function at(e){return typeof e=="symbol"||it(e)&&ot(e)==st}t(at,"isSymbol");ve.exports=at});var Te=l((zt,xe)=>{"use strict";var ct=re(),ye=N(),ut=Ce(),he=NaN,ft=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,dt=/^0o[0-7]+$/i,mt=parseInt;function pt(e){if(typeof e=="number")return e;if(ut(e))return he;if(ye(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=ye(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=ct(e);var r=lt.test(e);return r||dt.test(e)?mt(e.slice(2),r?2:8):ft.test(e)?he:+e}t(pt,"toNumber");xe.exports=pt});var Oe=l((Qt,je)=>{"use strict";var gt=N(),H=Z(),Se=Te(),bt="Expected a function",vt=Math.max,Ct=Math.min;function yt(e,n,r){var i,s,g,m,a,u,c=0,C=!1,y=!1,d=!0;if(typeof e!="function")throw new TypeError(bt);n=Se(n)||0,gt(r)&&(C=!!r.leading,y="maxWait"in r,g=y?vt(Se(r.maxWait)||0,n):g,d="trailing"in r?!!r.trailing:d);function S(o){var p=i,x=s;return i=s=void 0,c=o,m=e.apply(x,p),m}t(S,"invokeFunc");function R(o){return c=o,a=setTimeout(h,n),C?S(o):m}t(R,"leadingEdge");function I(o){var p=o-u,x=o-c,w=n-p;return y?Ct(w,g-x):w}t(I,"remainingWait");function j(o){var p=o-u,x=o-c;return u===void 0||p>=n||p<0||y&&x>=g}t(j,"shouldInvoke");function h(){var o=H();if(j(o))return b(o);a=setTimeout(h,I(o))}t(h,"timerExpired");function b(o){return a=void 0,d&&i?S(o):(i=s=void 0,m)}t(b,"trailingEdge");function q(){a!==void 0&&clearTimeout(a),c=0,i=u=s=a=void 0}t(q,"cancel");function P(){return a===void 0?m:b(H())}t(P,"flush");function O(){var o=H(),p=j(o);if(i=arguments,s=this,u=o,p){if(a===void 0)return R(u);if(y)return clearTimeout(a),a=setTimeout(h,n),S(u)}return a===void 0&&(a=setTimeout(h,n)),m}return t(O,"debounced"),O.cancel=q,O.flush=P,O}t(yt,"debounce");je.exports=yt});import{useState as Tt,useCallback as St,useEffect as Ie,useRef as jt}from"react";import Ot from"lodash.omit";var Re=we(Oe(),1);import{useCallback as ht,useEffect as xt,useRef as Ee}from"react";function W(e,n){let r=Ee(e);xt(()=>{r.current=e},[e]);let i=Ee((0,Re.default)(s=>{r.current(s)},n)).current;return ht(s=>{i(s)},[i])}t(W,"useDebounce");import{Fragment as Rt,jsx as T,jsxs as qe}from"react/jsx-runtime";var Et=t(({description:e,helpCenter:n,showConversion:r,targetCurrency:i,className:s,onClick:g})=>{let{components:m}=G(),a=r?`Hide ${i} conversion`:`Show ${i} conversion`,u=m?.button;if(!u)throw new Error("Button component not found");return qe("span",{className:s,children:[T(J,{as:"span",helpCenter:n,children:e})," ",T(u,{className:`${s.replace("-description","-button")}`,"data-type":"inline",onClick:g,children:a})]})},"DescriptionWithConversion"),pn=t(({sourceCurrency:e,targetCurrency:n,mainFieldName:r,conversionFieldName:i,conversionProperties:s,classNamePrefix:g,description:m,conversionType:a="spread",meta:u,...c})=>{let[C,y]=Tt(!1),{setValue:d,watch:S}=B(),R=S(r||c.name),I=jt(!0),j=e&&n&&e!==n,{mutateAsync:h}=V({type:a}),b=`${c.name}_converted`;Ie(()=>{d(b,r||c.name)},[d,r,c.name,b]),Ie(()=>{if(I.current){I.current=!1;return}d(i,"")},[e,i,d]);let q=St(async(f,v,F)=>{if(!(!f||isNaN(f)||f<=0))return h({source_currency:v,target_currency:F,amount:f})},[h]),P=W(async f=>{let v=M(f),k=1/((await q(v,n,e))?.data?.data.conversion_data?.exchange_rate??1),Pe=A(Number(v)*k);d(i,D(Pe))},500),O=W(async f=>{let v=M(f),k=(await q(v,n,e))?.data?.data.conversion_data.target_amount;d(r||c.name,D(k))},500),o=t(f=>{d(b,r||c.name),C&&P(f.target.value)},"handleMainFieldChange"),p=t(f=>{d(b,i),O(f.target.value)},"handleConversionFieldChange"),x=t(f=>{f.preventDefault(),y(v=>!v),!C&&R&&P(R)},"toggleConversion"),w=j?T(Et,{targetCurrency:n,description:m,helpCenter:T(U,{helpCenter:u?.helpCenter}),showConversion:C,className:`${g}-description`,onClick:x}):m;return qe(Rt,{children:[T(L,{...c,meta:j?Ot(u,"helpCenter"):u,name:r||c.name,additionalProps:{currency:e},description:w,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:o}),C&&T(L,{additionalProps:{currency:n},name:i,label:s?.label||"Conversion",description:s?.description,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:p}),T("input",{type:"hidden",name:b,value:S(b)||r||c.name})]})},"CurrencyConversionField");export{pn as a};
2
- //# sourceMappingURL=chunk-L4IKDVFW.js.map