@remoteoss/remote-flows 1.14.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/README.md +10 -9
  2. package/dist/ButtonDefault-6LBHWUQH.js +2 -0
  3. package/dist/CheckboxFieldDefault-X4DYVQCE.js +2 -0
  4. package/dist/CountryFieldDefault-JZDE75HS.js +2 -0
  5. package/dist/DatePickerFieldDefault-LJV4QSEP.js +2 -0
  6. package/dist/DrawerDefault-FLNSDSMB.js +2 -0
  7. package/dist/EmailFieldDefault-T6HHE5RL.js +2 -0
  8. package/dist/FieldsetToggleButtonDefault-MXBQJ55Q.js +2 -0
  9. package/dist/FileUploadFieldDefault-5NW3ZFXD.js +2 -0
  10. package/dist/MultiSelectFieldDefault-OQ6SNNBI.js +2 -0
  11. package/dist/NumberFieldDefault-IVUTWJS5.js +2 -0
  12. package/dist/PDFPreviewDefault-RJNE7QSF.js +2 -0
  13. package/dist/RadioGroupFieldDefault-CXY33ONT.js +2 -0
  14. package/dist/SelectFieldDefault-66GGFDX3.js +2 -0
  15. package/dist/StatementDefault-DORMITL7.js +2 -0
  16. package/dist/TableFieldDefault-URJVK7YR.js +2 -0
  17. package/dist/TextAreaFieldDefault-5H34RRBA.js +2 -0
  18. package/dist/TextFieldDefault-VHIF2KLF.js +2 -0
  19. package/dist/WorkScheduleFieldDefault-T7IP52VU.js +2 -0
  20. package/dist/ZendeskDrawerDefault-YSBMA2ZH.js +2 -0
  21. package/dist/chunk-246D2A55.js +2 -0
  22. package/dist/{chunk-43UKWTHS.js.map → chunk-246D2A55.js.map} +1 -1
  23. package/dist/chunk-2NDVHQRP.js +2 -0
  24. package/dist/chunk-2NDVHQRP.js.map +1 -0
  25. package/dist/chunk-37RMY44V.js +2 -0
  26. package/dist/chunk-37RMY44V.js.map +1 -0
  27. package/dist/{chunk-CWHIIHQP.js → chunk-3B6XXK5H.js} +2 -2
  28. package/dist/{chunk-AFJIZDZG.js → chunk-3BBQDNZD.js} +2 -2
  29. package/dist/{chunk-CD6F3H7B.js → chunk-3DMWQJ5W.js} +2 -2
  30. package/dist/chunk-42R2H2DW.js +2 -0
  31. package/dist/{chunk-UXHMIIOB.js → chunk-44RIEWXA.js} +2 -2
  32. package/dist/{chunk-BOWNQTTR.js → chunk-4EMAROPQ.js} +2 -2
  33. package/dist/{chunk-HCJP6RDC.js → chunk-4N4MQECC.js} +2 -2
  34. package/dist/{chunk-UBYT2TI4.js → chunk-4UO7KLRK.js} +2 -2
  35. package/dist/chunk-5KMUUL7U.js +1 -0
  36. package/dist/chunk-5KMUUL7U.js.map +1 -0
  37. package/dist/chunk-5WIBTOCI.js +2 -0
  38. package/dist/chunk-5WIBTOCI.js.map +1 -0
  39. package/dist/chunk-62O3CKKH.js +2 -0
  40. package/dist/chunk-62O3CKKH.js.map +1 -0
  41. package/dist/{chunk-ZIXR3VSB.js → chunk-6AAV34CT.js} +2 -2
  42. package/dist/chunk-76ZDXC2T.js +2 -0
  43. package/dist/chunk-76ZDXC2T.js.map +1 -0
  44. package/dist/chunk-7ENB7H4E.js +6 -0
  45. package/dist/chunk-7ENB7H4E.js.map +1 -0
  46. package/dist/{chunk-ZPDZ6V5R.js → chunk-7G5JSUZU.js} +2 -2
  47. package/dist/{chunk-JYYCK5IN.js → chunk-7PWZAW7M.js} +2 -2
  48. package/dist/{chunk-T7CGGZOK.js → chunk-7RP5F62S.js} +2 -2
  49. package/dist/chunk-7WGZGAQY.js +2 -0
  50. package/dist/chunk-7WGZGAQY.js.map +1 -0
  51. package/dist/{chunk-I3J7LKY3.js → chunk-A232PIG7.js} +2 -2
  52. package/dist/chunk-A3LRPGV3.js +2 -0
  53. package/dist/chunk-A3LRPGV3.js.map +1 -0
  54. package/dist/{chunk-BZ5XEZCL.js → chunk-A7CLJBJI.js} +2 -2
  55. package/dist/{chunk-FI2MVRZR.js → chunk-AJCKNHZB.js} +2 -2
  56. package/dist/{chunk-4HVLMGRA.js → chunk-AJIDQALB.js} +2 -2
  57. package/dist/{chunk-UXP2IITO.js → chunk-ALVZNFB7.js} +2 -2
  58. package/dist/chunk-AW7JELYX.js +2 -0
  59. package/dist/chunk-AW7JELYX.js.map +1 -0
  60. package/dist/{chunk-OCTMRR2C.js → chunk-B66V5QEC.js} +2 -2
  61. package/dist/{chunk-5RFDYBDY.js → chunk-B7EJ2OAA.js} +2 -2
  62. package/dist/{chunk-QE62LRON.js → chunk-BG66XH5L.js} +2 -2
  63. package/dist/{chunk-Q5LU2ZBL.js → chunk-BGRX3DBF.js} +2 -2
  64. package/dist/{chunk-2TPHCOVE.js → chunk-BVFQ6LFD.js} +2 -2
  65. package/dist/{chunk-RM7W6QA7.js → chunk-C6KWUSCU.js} +2 -2
  66. package/dist/{chunk-Y7NHXFRX.js → chunk-CARPUKT7.js} +2 -2
  67. package/dist/{chunk-BWMATZIU.js → chunk-DFAY4TWC.js} +2 -2
  68. package/dist/{chunk-O5ENJKI6.js → chunk-DNDYXEZ6.js} +2 -2
  69. package/dist/{chunk-46QJ44CZ.js → chunk-DXIJUMLU.js} +2 -2
  70. package/dist/{chunk-I4CH573Y.js → chunk-E2LBPO5Z.js} +2 -2
  71. package/dist/{chunk-CB7T2SPX.js → chunk-EDLQ3JNY.js} +2 -2
  72. package/dist/{chunk-TZCNONDA.js → chunk-EHD2YB5F.js} +2 -2
  73. package/dist/{chunk-IAIHITHL.js → chunk-ERSP6CZ3.js} +2 -2
  74. package/dist/chunk-EWL6BSEP.js +2 -0
  75. package/dist/chunk-EWL6BSEP.js.map +1 -0
  76. package/dist/{chunk-TUJXQF4Q.js → chunk-FJVQQ4XB.js} +2 -2
  77. package/dist/{chunk-YA2G4A3K.js → chunk-FRCFJ64I.js} +2 -2
  78. package/dist/chunk-FSK2DR6Z.js +2 -0
  79. package/dist/{chunk-L622FFV6.js.map → chunk-FSK2DR6Z.js.map} +1 -1
  80. package/dist/{chunk-5R66NDTQ.js → chunk-FUGPVPYX.js} +2 -2
  81. package/dist/{chunk-JRUJLG27.js → chunk-G7EVUAYE.js} +2 -2
  82. package/dist/{chunk-ZSJ6YADQ.js → chunk-H2JFQGQJ.js} +2 -2
  83. package/dist/{chunk-ZURHNW3D.js → chunk-H3BUOBWO.js} +2 -2
  84. package/dist/{chunk-MCGUHRQL.js → chunk-HKNK5Z6N.js} +2 -2
  85. package/dist/{chunk-NFLKVFAD.js → chunk-HOR3KPOZ.js} +2 -2
  86. package/dist/chunk-HQAHUE5P.js +2 -0
  87. package/dist/chunk-HQAHUE5P.js.map +1 -0
  88. package/dist/{chunk-WLMHGJWB.js → chunk-HUZBKPGP.js} +2 -2
  89. package/dist/chunk-HYYILYKU.js +2 -0
  90. package/dist/chunk-HYYILYKU.js.map +1 -0
  91. package/dist/{chunk-7SVSJ7NG.js → chunk-I3TP6JKM.js} +2 -2
  92. package/dist/{chunk-XGECMN4V.js → chunk-IF42CZJH.js} +2 -2
  93. package/dist/{chunk-D67Z4NEP.js → chunk-IGLKMXWJ.js} +2 -2
  94. package/dist/{chunk-3EK647EG.js → chunk-IZGSVS3I.js} +2 -2
  95. package/dist/{chunk-ZKS7DJDT.js → chunk-J2BTEUAM.js} +2 -2
  96. package/dist/{chunk-BKVBDV6E.js → chunk-JGJTFYHN.js} +2 -2
  97. package/dist/{chunk-PPY77NYV.js → chunk-JI4CYPLW.js} +2 -2
  98. package/dist/{chunk-OV7TLEE6.js → chunk-KQKH3H6S.js} +2 -2
  99. package/dist/{chunk-6VQEAU6A.js → chunk-KRSUSMJK.js} +2 -2
  100. package/dist/{chunk-FBE7F5HU.js → chunk-L3LOATSG.js} +2 -2
  101. package/dist/{chunk-3PVZEAGI.js → chunk-L5DII4MV.js} +2 -2
  102. package/dist/{chunk-HRK4FJGT.js → chunk-LVXV3GHT.js} +2 -2
  103. package/dist/{chunk-7RC7EB47.js → chunk-MHAY555P.js} +2 -2
  104. package/dist/{chunk-3YKLEDVY.js → chunk-MLVB5MYU.js} +2 -2
  105. package/dist/{chunk-CU3WQ2KN.js → chunk-MSBCYMSH.js} +2 -2
  106. package/dist/chunk-NAH5PAUK.js +2 -0
  107. package/dist/chunk-NAH5PAUK.js.map +1 -0
  108. package/dist/{chunk-2DCJODMR.js → chunk-NEWXVHFX.js} +2 -2
  109. package/dist/{chunk-2UKAVWUS.js → chunk-OENTT2KT.js} +2 -2
  110. package/dist/{chunk-HPBYZOPP.js → chunk-OEXY56S2.js} +2 -2
  111. package/dist/chunk-PHPCCABU.js +2 -0
  112. package/dist/chunk-PHPCCABU.js.map +1 -0
  113. package/dist/{chunk-AS4ND5IO.js → chunk-PKK2EEXH.js} +2 -2
  114. package/dist/{chunk-HMMFY4PV.js → chunk-Q73675NI.js} +2 -2
  115. package/dist/chunk-QECFSTI4.js +2 -0
  116. package/dist/chunk-QECFSTI4.js.map +1 -0
  117. package/dist/chunk-QPN6X6UA.js +2 -0
  118. package/dist/chunk-QPN6X6UA.js.map +1 -0
  119. package/dist/{chunk-VON7RTMD.js → chunk-R7BHA5RA.js} +2 -2
  120. package/dist/{chunk-IUCFOQAD.js → chunk-RAH453TV.js} +2 -2
  121. package/dist/{chunk-4YPJKEHT.js → chunk-RJY6AEJB.js} +2 -2
  122. package/dist/chunk-SLD227LM.js +2 -0
  123. package/dist/chunk-SLD227LM.js.map +1 -0
  124. package/dist/{chunk-UP27IEE4.js → chunk-SLLDKJ7K.js} +2 -2
  125. package/dist/{chunk-JEULZR34.js → chunk-SNBAM7SA.js} +2 -2
  126. package/dist/{chunk-ZPG6GRAX.js → chunk-SNECOPBD.js} +2 -2
  127. package/dist/{chunk-BDMCADQ6.js → chunk-SS2FAFUZ.js} +2 -2
  128. package/dist/{chunk-JJEFWMLY.js → chunk-TFSRZOMP.js} +2 -2
  129. package/dist/{chunk-W5EXVAEO.js → chunk-TNN3W5TU.js} +2 -2
  130. package/dist/{chunk-D5NBOIPS.js → chunk-TOQPDTGG.js} +2 -2
  131. package/dist/{chunk-6IFPFK23.js → chunk-TPGN6QTL.js} +2 -2
  132. package/dist/{chunk-OJ3HJ7QL.js → chunk-TQXCLXWH.js} +2 -2
  133. package/dist/{chunk-RQRODRCR.js → chunk-TRBEYNRN.js} +2 -2
  134. package/dist/{chunk-JHMIAK67.js → chunk-TVIUQXLE.js} +2 -2
  135. package/dist/{chunk-OK3CYSHV.js → chunk-TXQWBDNF.js} +2 -2
  136. package/dist/chunk-TXSUZLOI.js +2 -0
  137. package/dist/chunk-TXSUZLOI.js.map +1 -0
  138. package/dist/chunk-UB6PYKNX.js +2 -0
  139. package/dist/chunk-UB6PYKNX.js.map +1 -0
  140. package/dist/{chunk-4ZQ7NOAL.js → chunk-ULP5B6DG.js} +2 -2
  141. package/dist/{chunk-OPWMRKZP.js → chunk-UMVA4SIV.js} +2 -2
  142. package/dist/{chunk-GSSC5OVG.js → chunk-UMVMNUPH.js} +2 -2
  143. package/dist/{chunk-NKPRRBFG.js → chunk-VBQVXR4U.js} +2 -2
  144. package/dist/{chunk-3PIJOIYR.js → chunk-VIGKOVHP.js} +2 -2
  145. package/dist/{chunk-3PIJOIYR.js.map → chunk-VIGKOVHP.js.map} +1 -1
  146. package/dist/{chunk-W2PJUNWX.js → chunk-VLSOHNT2.js} +2 -2
  147. package/dist/{chunk-AGUAPUCU.js → chunk-W4ECFBIA.js} +2 -2
  148. package/dist/{chunk-LWGNRGU3.js → chunk-WD2JGIDK.js} +2 -2
  149. package/dist/{chunk-CE4ZEIWI.js → chunk-WEAO46EO.js} +2 -2
  150. package/dist/{chunk-K6WWMYKM.js → chunk-WEOIHTBU.js} +2 -2
  151. package/dist/{chunk-DG3T5KLP.js → chunk-WO54IG4S.js} +2 -2
  152. package/dist/{chunk-MKT4MPUT.js → chunk-XHAJ544L.js} +2 -2
  153. package/dist/{chunk-RE2IHPDB.js → chunk-XNAFFHZH.js} +2 -2
  154. package/dist/{chunk-KCTY6YAP.js → chunk-XU3B7N3C.js} +2 -2
  155. package/dist/{chunk-ZYLVMO7E.js → chunk-YHROBX2M.js} +2 -2
  156. package/dist/{chunk-BMFFLDYL.js → chunk-YPUP5LNV.js} +2 -2
  157. package/dist/{chunk-P4GE72PQ.js → chunk-YWZHBXEI.js} +2 -2
  158. package/dist/{chunk-DZGLLSY7.js → chunk-Z3EAYQ5D.js} +2 -2
  159. package/dist/{chunk-5GAFQRDA.js → chunk-ZAFGVOU5.js} +2 -2
  160. package/dist/{chunk-EPLPD54O.js → chunk-ZWIH53GL.js} +2 -2
  161. package/dist/default-components.d.ts +2 -2
  162. package/dist/default-components.js +1 -1
  163. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  164. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  165. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  166. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  167. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  168. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  169. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  170. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  171. package/dist/flows/ContractAmendment/hooks.js +1 -1
  172. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  173. package/dist/flows/ContractAmendment/index.js +1 -1
  174. package/dist/flows/ContractAmendment/types.d.ts +2 -2
  175. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  176. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
  177. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  178. package/dist/flows/ContractorOnboarding/api.d.ts +186 -23
  179. package/dist/flows/ContractorOnboarding/api.js +1 -1
  180. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  181. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  182. package/dist/flows/ContractorOnboarding/components/ChooseAlternativePlanStep.d.ts +3 -3
  183. package/dist/flows/ContractorOnboarding/components/ChooseAlternativePlanStep.js +1 -1
  184. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
  185. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  186. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  187. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  188. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
  189. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
  190. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  191. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
  192. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  193. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -5
  194. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  195. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  196. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  197. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
  198. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  199. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  200. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  201. package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
  202. package/dist/flows/ContractorOnboarding/context.d.ts +5 -5
  203. package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
  204. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  205. package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
  206. package/dist/flows/ContractorOnboarding/index.js +1 -1
  207. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -5
  208. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  209. package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
  210. package/dist/flows/ContractorOnboarding/utils.d.ts +5 -4
  211. package/dist/flows/ContractorOnboarding/utils.js +1 -1
  212. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  213. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  214. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  215. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  216. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  217. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  218. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
  219. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  220. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
  221. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
  222. package/dist/flows/CostCalculator/api.d.ts +2 -2
  223. package/dist/flows/CostCalculator/api.js +1 -1
  224. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  225. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  226. package/dist/flows/CostCalculator/context.d.ts +3 -3
  227. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  228. package/dist/flows/CostCalculator/hooks.js +1 -1
  229. package/dist/flows/CostCalculator/index.d.ts +3 -3
  230. package/dist/flows/CostCalculator/index.js +1 -1
  231. package/dist/flows/CostCalculator/types.d.ts +2 -2
  232. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  233. package/dist/flows/CostCalculator/utils.js +1 -1
  234. package/dist/flows/CreateCompany/CreateCompany.d.ts +18 -0
  235. package/dist/flows/CreateCompany/CreateCompany.js +2 -0
  236. package/dist/flows/CreateCompany/CreateCompany.js.map +1 -0
  237. package/dist/flows/CreateCompany/api.d.ts +81 -0
  238. package/dist/flows/CreateCompany/api.js +2 -0
  239. package/dist/flows/CreateCompany/api.js.map +1 -0
  240. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +14 -0
  241. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +2 -0
  242. package/dist/flows/CreateCompany/components/AddressDetailsStep.js.map +1 -0
  243. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +14 -0
  244. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +2 -0
  245. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js.map +1 -0
  246. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +17 -0
  247. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +2 -0
  248. package/dist/flows/CreateCompany/components/CreateCompanyForm.js.map +1 -0
  249. package/dist/flows/CreateCompany/components/CreateCompanySubmit.d.ts +6 -0
  250. package/dist/flows/CreateCompany/components/CreateCompanySubmit.js +2 -0
  251. package/dist/flows/CreateCompany/components/CreateCompanySubmit.js.map +1 -0
  252. package/dist/flows/CreateCompany/context.d.ts +82 -0
  253. package/dist/flows/CreateCompany/context.js +2 -0
  254. package/dist/flows/CreateCompany/context.js.map +1 -0
  255. package/dist/flows/CreateCompany/hooks.d.ts +14 -0
  256. package/dist/flows/CreateCompany/hooks.js +2 -0
  257. package/dist/flows/CreateCompany/hooks.js.map +1 -0
  258. package/dist/flows/CreateCompany/index.d.ts +15 -0
  259. package/dist/flows/CreateCompany/index.js +2 -0
  260. package/dist/flows/CreateCompany/index.js.map +1 -0
  261. package/dist/flows/CreateCompany/json-schemas/companyBasicInformationStep.d.ts +73 -0
  262. package/dist/flows/CreateCompany/json-schemas/companyBasicInformationStep.js +2 -0
  263. package/dist/flows/CreateCompany/json-schemas/companyBasicInformationStep.js.map +1 -0
  264. package/dist/flows/CreateCompany/types.d.ts +14 -0
  265. package/dist/flows/CreateCompany/types.js +1 -0
  266. package/dist/flows/CreateCompany/types.js.map +1 -0
  267. package/dist/flows/CreateCompany/utils.d.ts +8 -0
  268. package/dist/flows/CreateCompany/utils.js +2 -0
  269. package/dist/flows/CreateCompany/utils.js.map +1 -0
  270. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  271. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  272. package/dist/flows/Onboarding/api.d.ts +4 -4
  273. package/dist/flows/Onboarding/api.js +1 -1
  274. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  275. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  276. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  277. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  278. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  279. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  280. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  281. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  282. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  283. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  284. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  285. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  286. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  287. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  288. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  289. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  290. package/dist/flows/Onboarding/context.d.ts +4 -4
  291. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  292. package/dist/flows/Onboarding/hooks.js +1 -1
  293. package/dist/flows/Onboarding/index.d.ts +4 -4
  294. package/dist/flows/Onboarding/index.js +1 -1
  295. package/dist/flows/Onboarding/types.d.ts +4 -4
  296. package/dist/flows/Onboarding/utils.d.ts +4 -4
  297. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  298. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  299. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  300. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  301. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  302. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  303. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  304. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  305. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  306. package/dist/flows/Termination/TerminationFlow.js +1 -1
  307. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  308. package/dist/flows/Termination/TerminationForm.js +1 -1
  309. package/dist/flows/Termination/api.d.ts +5 -5
  310. package/dist/flows/Termination/api.js +1 -1
  311. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
  312. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  313. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  314. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  315. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  316. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  317. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  318. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  319. package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
  320. package/dist/flows/Termination/context.d.ts +4 -4
  321. package/dist/flows/Termination/hooks.d.ts +4 -4
  322. package/dist/flows/Termination/hooks.js +1 -1
  323. package/dist/flows/Termination/index.d.ts +6 -6
  324. package/dist/flows/Termination/index.js +1 -1
  325. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  326. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  327. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  328. package/dist/flows/Termination/types.d.ts +4 -4
  329. package/dist/flows/Termination/utils.d.ts +4 -4
  330. package/dist/flows/Termination/utils.js +1 -1
  331. package/dist/flows/types.d.ts +2 -2
  332. package/dist/index.d.ts +15 -11
  333. package/dist/index.js +2 -2
  334. package/dist/index.js.map +1 -1
  335. package/dist/internals.d.ts +3 -3
  336. package/dist/internals.js +1 -1
  337. package/dist/{mutations-Cviv4PN1.d.ts → mutations-DfpgjZty.d.ts} +1 -1
  338. package/dist/{remoteFlows-C41d3S6K.d.ts → remoteFlows-PN8ksydr.d.ts} +12 -2
  339. package/dist/{types-SHZYNK7B.d.ts → types-BK2JZJKy.d.ts} +3 -3
  340. package/dist/types-BOd-0F3b.d.ts +248 -0
  341. package/dist/{types-C2Jm8UUR.d.ts → types-BxoBKn3U.d.ts} +1 -1
  342. package/dist/{types-B3j6CHqF.d.ts → types-D9-E_Ywz.d.ts} +4 -4
  343. package/dist/{types-DGsUn7MK.d.ts → types-kzU5HUpO.d.ts} +2 -2
  344. package/dist/{types.gen-f6p9DLeW.d.ts → types.gen-COTll5I0.d.ts} +254 -1
  345. package/dist/{utils-4FdXJdn7.d.ts → utils-CfntV90o.d.ts} +1 -1
  346. package/package.json +1 -1
  347. package/dist/ButtonDefault-C5BX67YU.js +0 -2
  348. package/dist/CheckboxFieldDefault-HEIDOSI7.js +0 -2
  349. package/dist/CountryFieldDefault-SFTKBP6V.js +0 -2
  350. package/dist/DatePickerFieldDefault-GHHRA5MC.js +0 -2
  351. package/dist/DrawerDefault-I7PMYMPK.js +0 -2
  352. package/dist/EmailFieldDefault-T7YHR6EN.js +0 -2
  353. package/dist/FieldsetToggleButtonDefault-4JT4HGZ5.js +0 -2
  354. package/dist/FileUploadFieldDefault-66JYQDRY.js +0 -2
  355. package/dist/MultiSelectFieldDefault-ZECWDTTO.js +0 -2
  356. package/dist/NumberFieldDefault-IOL6KD5M.js +0 -2
  357. package/dist/PDFPreviewDefault-LVWCRQ6A.js +0 -2
  358. package/dist/RadioGroupFieldDefault-WSWNB62Y.js +0 -2
  359. package/dist/SelectFieldDefault-HYT2DRK4.js +0 -2
  360. package/dist/StatementDefault-HUOZEIEC.js +0 -2
  361. package/dist/TableFieldDefault-OACG7RGJ.js +0 -2
  362. package/dist/TextAreaFieldDefault-KCPQWVZX.js +0 -2
  363. package/dist/TextFieldDefault-MUGUO7GT.js +0 -2
  364. package/dist/WorkScheduleFieldDefault-CHW2ODQK.js +0 -2
  365. package/dist/ZendeskDrawerDefault-NYESVAZM.js +0 -2
  366. package/dist/chunk-3FCX7SWN.js +0 -2
  367. package/dist/chunk-3FCX7SWN.js.map +0 -1
  368. package/dist/chunk-43UKWTHS.js +0 -2
  369. package/dist/chunk-4TJ2QZ7P.js +0 -2
  370. package/dist/chunk-4TJ2QZ7P.js.map +0 -1
  371. package/dist/chunk-6CASSN2Z.js +0 -2
  372. package/dist/chunk-FD2FTALC.js +0 -2
  373. package/dist/chunk-FD2FTALC.js.map +0 -1
  374. package/dist/chunk-L622FFV6.js +0 -2
  375. package/dist/chunk-OPQTTZBK.js +0 -2
  376. package/dist/chunk-OPQTTZBK.js.map +0 -1
  377. package/dist/chunk-RXP4X2CU.js +0 -2
  378. package/dist/chunk-RXP4X2CU.js.map +0 -1
  379. package/dist/chunk-YAJJJ2JV.js +0 -6
  380. package/dist/chunk-YAJJJ2JV.js.map +0 -1
  381. package/dist/chunk-YHP23JNL.js +0 -2
  382. package/dist/chunk-YHP23JNL.js.map +0 -1
  383. package/dist/chunk-Z7A4LTSB.js +0 -2
  384. package/dist/chunk-Z7A4LTSB.js.map +0 -1
  385. /package/dist/{ButtonDefault-C5BX67YU.js.map → ButtonDefault-6LBHWUQH.js.map} +0 -0
  386. /package/dist/{CheckboxFieldDefault-HEIDOSI7.js.map → CheckboxFieldDefault-X4DYVQCE.js.map} +0 -0
  387. /package/dist/{CountryFieldDefault-SFTKBP6V.js.map → CountryFieldDefault-JZDE75HS.js.map} +0 -0
  388. /package/dist/{DatePickerFieldDefault-GHHRA5MC.js.map → DatePickerFieldDefault-LJV4QSEP.js.map} +0 -0
  389. /package/dist/{DrawerDefault-I7PMYMPK.js.map → DrawerDefault-FLNSDSMB.js.map} +0 -0
  390. /package/dist/{EmailFieldDefault-T7YHR6EN.js.map → EmailFieldDefault-T6HHE5RL.js.map} +0 -0
  391. /package/dist/{FieldsetToggleButtonDefault-4JT4HGZ5.js.map → FieldsetToggleButtonDefault-MXBQJ55Q.js.map} +0 -0
  392. /package/dist/{FileUploadFieldDefault-66JYQDRY.js.map → FileUploadFieldDefault-5NW3ZFXD.js.map} +0 -0
  393. /package/dist/{MultiSelectFieldDefault-ZECWDTTO.js.map → MultiSelectFieldDefault-OQ6SNNBI.js.map} +0 -0
  394. /package/dist/{NumberFieldDefault-IOL6KD5M.js.map → NumberFieldDefault-IVUTWJS5.js.map} +0 -0
  395. /package/dist/{PDFPreviewDefault-LVWCRQ6A.js.map → PDFPreviewDefault-RJNE7QSF.js.map} +0 -0
  396. /package/dist/{RadioGroupFieldDefault-WSWNB62Y.js.map → RadioGroupFieldDefault-CXY33ONT.js.map} +0 -0
  397. /package/dist/{SelectFieldDefault-HYT2DRK4.js.map → SelectFieldDefault-66GGFDX3.js.map} +0 -0
  398. /package/dist/{StatementDefault-HUOZEIEC.js.map → StatementDefault-DORMITL7.js.map} +0 -0
  399. /package/dist/{TableFieldDefault-OACG7RGJ.js.map → TableFieldDefault-URJVK7YR.js.map} +0 -0
  400. /package/dist/{TextAreaFieldDefault-KCPQWVZX.js.map → TextAreaFieldDefault-5H34RRBA.js.map} +0 -0
  401. /package/dist/{TextFieldDefault-MUGUO7GT.js.map → TextFieldDefault-VHIF2KLF.js.map} +0 -0
  402. /package/dist/{WorkScheduleFieldDefault-CHW2ODQK.js.map → WorkScheduleFieldDefault-T7IP52VU.js.map} +0 -0
  403. /package/dist/{ZendeskDrawerDefault-NYESVAZM.js.map → ZendeskDrawerDefault-YSBMA2ZH.js.map} +0 -0
  404. /package/dist/{chunk-CWHIIHQP.js.map → chunk-3B6XXK5H.js.map} +0 -0
  405. /package/dist/{chunk-AFJIZDZG.js.map → chunk-3BBQDNZD.js.map} +0 -0
  406. /package/dist/{chunk-CD6F3H7B.js.map → chunk-3DMWQJ5W.js.map} +0 -0
  407. /package/dist/{chunk-6CASSN2Z.js.map → chunk-42R2H2DW.js.map} +0 -0
  408. /package/dist/{chunk-UXHMIIOB.js.map → chunk-44RIEWXA.js.map} +0 -0
  409. /package/dist/{chunk-BOWNQTTR.js.map → chunk-4EMAROPQ.js.map} +0 -0
  410. /package/dist/{chunk-HCJP6RDC.js.map → chunk-4N4MQECC.js.map} +0 -0
  411. /package/dist/{chunk-UBYT2TI4.js.map → chunk-4UO7KLRK.js.map} +0 -0
  412. /package/dist/{chunk-ZIXR3VSB.js.map → chunk-6AAV34CT.js.map} +0 -0
  413. /package/dist/{chunk-ZPDZ6V5R.js.map → chunk-7G5JSUZU.js.map} +0 -0
  414. /package/dist/{chunk-JYYCK5IN.js.map → chunk-7PWZAW7M.js.map} +0 -0
  415. /package/dist/{chunk-T7CGGZOK.js.map → chunk-7RP5F62S.js.map} +0 -0
  416. /package/dist/{chunk-I3J7LKY3.js.map → chunk-A232PIG7.js.map} +0 -0
  417. /package/dist/{chunk-BZ5XEZCL.js.map → chunk-A7CLJBJI.js.map} +0 -0
  418. /package/dist/{chunk-FI2MVRZR.js.map → chunk-AJCKNHZB.js.map} +0 -0
  419. /package/dist/{chunk-4HVLMGRA.js.map → chunk-AJIDQALB.js.map} +0 -0
  420. /package/dist/{chunk-UXP2IITO.js.map → chunk-ALVZNFB7.js.map} +0 -0
  421. /package/dist/{chunk-OCTMRR2C.js.map → chunk-B66V5QEC.js.map} +0 -0
  422. /package/dist/{chunk-5RFDYBDY.js.map → chunk-B7EJ2OAA.js.map} +0 -0
  423. /package/dist/{chunk-QE62LRON.js.map → chunk-BG66XH5L.js.map} +0 -0
  424. /package/dist/{chunk-Q5LU2ZBL.js.map → chunk-BGRX3DBF.js.map} +0 -0
  425. /package/dist/{chunk-2TPHCOVE.js.map → chunk-BVFQ6LFD.js.map} +0 -0
  426. /package/dist/{chunk-RM7W6QA7.js.map → chunk-C6KWUSCU.js.map} +0 -0
  427. /package/dist/{chunk-Y7NHXFRX.js.map → chunk-CARPUKT7.js.map} +0 -0
  428. /package/dist/{chunk-BWMATZIU.js.map → chunk-DFAY4TWC.js.map} +0 -0
  429. /package/dist/{chunk-O5ENJKI6.js.map → chunk-DNDYXEZ6.js.map} +0 -0
  430. /package/dist/{chunk-46QJ44CZ.js.map → chunk-DXIJUMLU.js.map} +0 -0
  431. /package/dist/{chunk-I4CH573Y.js.map → chunk-E2LBPO5Z.js.map} +0 -0
  432. /package/dist/{chunk-CB7T2SPX.js.map → chunk-EDLQ3JNY.js.map} +0 -0
  433. /package/dist/{chunk-TZCNONDA.js.map → chunk-EHD2YB5F.js.map} +0 -0
  434. /package/dist/{chunk-IAIHITHL.js.map → chunk-ERSP6CZ3.js.map} +0 -0
  435. /package/dist/{chunk-TUJXQF4Q.js.map → chunk-FJVQQ4XB.js.map} +0 -0
  436. /package/dist/{chunk-YA2G4A3K.js.map → chunk-FRCFJ64I.js.map} +0 -0
  437. /package/dist/{chunk-5R66NDTQ.js.map → chunk-FUGPVPYX.js.map} +0 -0
  438. /package/dist/{chunk-JRUJLG27.js.map → chunk-G7EVUAYE.js.map} +0 -0
  439. /package/dist/{chunk-ZSJ6YADQ.js.map → chunk-H2JFQGQJ.js.map} +0 -0
  440. /package/dist/{chunk-ZURHNW3D.js.map → chunk-H3BUOBWO.js.map} +0 -0
  441. /package/dist/{chunk-MCGUHRQL.js.map → chunk-HKNK5Z6N.js.map} +0 -0
  442. /package/dist/{chunk-NFLKVFAD.js.map → chunk-HOR3KPOZ.js.map} +0 -0
  443. /package/dist/{chunk-WLMHGJWB.js.map → chunk-HUZBKPGP.js.map} +0 -0
  444. /package/dist/{chunk-7SVSJ7NG.js.map → chunk-I3TP6JKM.js.map} +0 -0
  445. /package/dist/{chunk-XGECMN4V.js.map → chunk-IF42CZJH.js.map} +0 -0
  446. /package/dist/{chunk-D67Z4NEP.js.map → chunk-IGLKMXWJ.js.map} +0 -0
  447. /package/dist/{chunk-3EK647EG.js.map → chunk-IZGSVS3I.js.map} +0 -0
  448. /package/dist/{chunk-ZKS7DJDT.js.map → chunk-J2BTEUAM.js.map} +0 -0
  449. /package/dist/{chunk-BKVBDV6E.js.map → chunk-JGJTFYHN.js.map} +0 -0
  450. /package/dist/{chunk-PPY77NYV.js.map → chunk-JI4CYPLW.js.map} +0 -0
  451. /package/dist/{chunk-OV7TLEE6.js.map → chunk-KQKH3H6S.js.map} +0 -0
  452. /package/dist/{chunk-6VQEAU6A.js.map → chunk-KRSUSMJK.js.map} +0 -0
  453. /package/dist/{chunk-FBE7F5HU.js.map → chunk-L3LOATSG.js.map} +0 -0
  454. /package/dist/{chunk-3PVZEAGI.js.map → chunk-L5DII4MV.js.map} +0 -0
  455. /package/dist/{chunk-HRK4FJGT.js.map → chunk-LVXV3GHT.js.map} +0 -0
  456. /package/dist/{chunk-7RC7EB47.js.map → chunk-MHAY555P.js.map} +0 -0
  457. /package/dist/{chunk-3YKLEDVY.js.map → chunk-MLVB5MYU.js.map} +0 -0
  458. /package/dist/{chunk-CU3WQ2KN.js.map → chunk-MSBCYMSH.js.map} +0 -0
  459. /package/dist/{chunk-2DCJODMR.js.map → chunk-NEWXVHFX.js.map} +0 -0
  460. /package/dist/{chunk-2UKAVWUS.js.map → chunk-OENTT2KT.js.map} +0 -0
  461. /package/dist/{chunk-HPBYZOPP.js.map → chunk-OEXY56S2.js.map} +0 -0
  462. /package/dist/{chunk-AS4ND5IO.js.map → chunk-PKK2EEXH.js.map} +0 -0
  463. /package/dist/{chunk-HMMFY4PV.js.map → chunk-Q73675NI.js.map} +0 -0
  464. /package/dist/{chunk-VON7RTMD.js.map → chunk-R7BHA5RA.js.map} +0 -0
  465. /package/dist/{chunk-IUCFOQAD.js.map → chunk-RAH453TV.js.map} +0 -0
  466. /package/dist/{chunk-4YPJKEHT.js.map → chunk-RJY6AEJB.js.map} +0 -0
  467. /package/dist/{chunk-UP27IEE4.js.map → chunk-SLLDKJ7K.js.map} +0 -0
  468. /package/dist/{chunk-JEULZR34.js.map → chunk-SNBAM7SA.js.map} +0 -0
  469. /package/dist/{chunk-ZPG6GRAX.js.map → chunk-SNECOPBD.js.map} +0 -0
  470. /package/dist/{chunk-BDMCADQ6.js.map → chunk-SS2FAFUZ.js.map} +0 -0
  471. /package/dist/{chunk-JJEFWMLY.js.map → chunk-TFSRZOMP.js.map} +0 -0
  472. /package/dist/{chunk-W5EXVAEO.js.map → chunk-TNN3W5TU.js.map} +0 -0
  473. /package/dist/{chunk-D5NBOIPS.js.map → chunk-TOQPDTGG.js.map} +0 -0
  474. /package/dist/{chunk-6IFPFK23.js.map → chunk-TPGN6QTL.js.map} +0 -0
  475. /package/dist/{chunk-OJ3HJ7QL.js.map → chunk-TQXCLXWH.js.map} +0 -0
  476. /package/dist/{chunk-RQRODRCR.js.map → chunk-TRBEYNRN.js.map} +0 -0
  477. /package/dist/{chunk-JHMIAK67.js.map → chunk-TVIUQXLE.js.map} +0 -0
  478. /package/dist/{chunk-OK3CYSHV.js.map → chunk-TXQWBDNF.js.map} +0 -0
  479. /package/dist/{chunk-4ZQ7NOAL.js.map → chunk-ULP5B6DG.js.map} +0 -0
  480. /package/dist/{chunk-OPWMRKZP.js.map → chunk-UMVA4SIV.js.map} +0 -0
  481. /package/dist/{chunk-GSSC5OVG.js.map → chunk-UMVMNUPH.js.map} +0 -0
  482. /package/dist/{chunk-NKPRRBFG.js.map → chunk-VBQVXR4U.js.map} +0 -0
  483. /package/dist/{chunk-W2PJUNWX.js.map → chunk-VLSOHNT2.js.map} +0 -0
  484. /package/dist/{chunk-AGUAPUCU.js.map → chunk-W4ECFBIA.js.map} +0 -0
  485. /package/dist/{chunk-LWGNRGU3.js.map → chunk-WD2JGIDK.js.map} +0 -0
  486. /package/dist/{chunk-CE4ZEIWI.js.map → chunk-WEAO46EO.js.map} +0 -0
  487. /package/dist/{chunk-K6WWMYKM.js.map → chunk-WEOIHTBU.js.map} +0 -0
  488. /package/dist/{chunk-DG3T5KLP.js.map → chunk-WO54IG4S.js.map} +0 -0
  489. /package/dist/{chunk-MKT4MPUT.js.map → chunk-XHAJ544L.js.map} +0 -0
  490. /package/dist/{chunk-RE2IHPDB.js.map → chunk-XNAFFHZH.js.map} +0 -0
  491. /package/dist/{chunk-KCTY6YAP.js.map → chunk-XU3B7N3C.js.map} +0 -0
  492. /package/dist/{chunk-ZYLVMO7E.js.map → chunk-YHROBX2M.js.map} +0 -0
  493. /package/dist/{chunk-BMFFLDYL.js.map → chunk-YPUP5LNV.js.map} +0 -0
  494. /package/dist/{chunk-P4GE72PQ.js.map → chunk-YWZHBXEI.js.map} +0 -0
  495. /package/dist/{chunk-DZGLLSY7.js.map → chunk-Z3EAYQ5D.js.map} +0 -0
  496. /package/dist/{chunk-5GAFQRDA.js.map → chunk-ZAFGVOU5.js.map} +0 -0
  497. /package/dist/{chunk-EPLPD54O.js.map → chunk-ZWIH53GL.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as Z}from"./chunk-MKT4MPUT.js";import{a as I}from"./chunk-VFRHMNLJ.js";import{a as Q,b as W,c as X,f as Y}from"./chunk-43UKWTHS.js";import{a as C}from"./chunk-HN5HLFTB.js";import{a as G}from"./chunk-LNV36S6D.js";import{b as ee}from"./chunk-NFLKVFAD.js";import{a as z}from"./chunk-EUSCQL4H.js";import{e as M}from"./chunk-T7O3YYOG.js";import{a as K}from"./chunk-X6ZAR7ZL.js";import{a as o}from"./chunk-P37U34EQ.js";import{number as Be,object as se}from"yup";import{useCallback as je,useEffect as te,useMemo as we,useRef as Re,useState as j}from"react";import{string as ne,ValidationError as re}from"yup";import{jsx as ie}from"react/jsx-runtime";var O={title:"Estimation",includeBenefits:!1,includeCostBreakdowns:!1,includePremiumBenefits:!1,enableCurrencyConversion:!1,includeEstimationTitle:!1,includeManagementFee:!1},Pe=o(t=>z(I.data.schema,void 0,t),"useStaticSchema");function xe(t,i){if(typeof t=="object"&&t!==null&&"title"in t){let l=t.title;if(l)return l}return i==="my_hiring_budget"?"Hiring budget":"Employee's annual salary"}o(xe,"getSalaryTitle");var ze=o(({defaultRegion:t,defaultCurrency:i,defaultSalary:l,estimationOptions:s,options:n,version:a}={estimationOptions:O})=>{let u=Re({fields:{}}),[k,h]=j(t),[w,R]=j(),[m,q]=j(),[H,le]=j(),{data:_,isLoading:ue}=Q({includePremiumBenefits:s.includePremiumBenefits}),{data:d,isLoading:ce}=W(),me=k||w?.value,{data:P,isLoading:de}=Y(me,{includePremiumBenefits:s.includePremiumBenefits,options:n}),U=X(),{mutateAsync:fe}=K(U),b=w?.currency,p=n?.jsfModify?.fields?.salary,F=p&&typeof p=="object"&&"presentation"in p?p.presentation:void 0,L=je(()=>{let e=b&&m?b!==m:!1;return b!==m?{from:m,to:b,shouldSwapOrder:e}:{from:b,to:m,shouldSwapOrder:e}},[b,m]),J=s.showManagementFee,$=s.includeEstimationTitle,ge=we(()=>{let{from:e,to:r,shouldSwapOrder:c}=L(),g=xe(p,H);return{fields:{salary:{...p,title:g,presentation:{salary_conversion_properties:{label:F?.salary_conversion_properties?.label,description:F?.salary_conversion_properties?.description},currencies:{from:e,to:r},Component:o(y=>ie(Z,{...y,shouldSwapOrder:c,conversionType:a==="marketing"?"no_spread":"spread",defaultValue:l}),"Component")}},hiring_budget:{...n?.jsfModify?.fields?.hiring_budget,presentation:{hidden:a=="marketing"}},management:{...n?.jsfModify?.fields?.management,properties:{...n?.jsfModify?.fields?.management?.properties,management_fee:{...n?.jsfModify?.fields?.management?.properties?.management_fee,"x-jsf-presentation":{inputType:"money",additionalProps:{currency:m||"USD"}}}},presentation:{...typeof n?.jsfModify?.fields?.management=="object"?(n?.jsfModify?.fields?.management)["x-jsf-presentation"]:{},hidden:!J,Component:o(y=>ie(ee,{...y,variant:"inset",features:{toggle:{enabled:!0,stateField:"management._expanded",labels:{expand:"Define",collapse:"Remove"}}}}),"Component")}},estimation_title:{...n?.jsfModify?.fields?.estimation_title,"x-jsf-presentation":{hidden:!$}}}}},[L,p,H,F?.salary_conversion_properties?.label,F?.salary_conversion_properties?.description,n?.jsfModify?.fields?.hiring_budget,n?.jsfModify?.fields?.management,n?.jsfModify?.fields?.estimation_title,a,m,J,$,l]),f=Pe({jsfModify:{fields:{...n?.jsfModify?.fields,...ge?.fields}}});te(()=>{if(t&&_){let e=_.find(({value:r})=>r===t);e&&R(e)}},[t,_]),te(()=>{if(i&&d){let e=d.find(({value:r})=>r===i);e&&q(e.label)}},[i,d]);async function ye(e){return fe(oe(e,s,a))}o(ye,"onSubmit");function pe(e){let r=_?.find(({value:c})=>c===e);r&&r.childRegions.length===0&&r.hasAdditionalFields?h(r.regionSlug):h(void 0),R(r)}o(pe,"onCountryChange");function Ce(e){h(e)}o(Ce,"onRegionChange");function _e(e){le(e.target.value)}o(_e,"onHiringBudgetChange");function be(e){let r=d?.find(c=>c.value===e)?.label;q(r),n?.onCurrencyChange?.(r||"")}o(be,"onChangeCurrency");let E=f.fields.find(e=>e.name==="region");if(E){let e=w?.childRegions.map(r=>({value:r.slug,label:r.name}))??[];E.options=e,E.isVisible=e.length>0,E.required=e.length>0,E.onChange=Ce,E.schema=e.length>0?ne().transform(r=>typeof r=="string"?r:"").required("Region is required"):ne()}if(d){let e=f.fields.find(r=>r.name==="currency");e&&(e.options=d,e.onChange=be)}let v=f.fields.find(e=>e.name==="hiring_budget");if(v&&(v.onChange=_e),_){let e=f.fields.find(r=>r.name==="country");e&&(e.options=_,e.onChange=pe)}let Ee=o(()=>{R(void 0),h(t)},"resetForm"),D=[...f.fields.filter(e=>e.name!=="management"),...P?.fields||[],...f.fields.filter(e=>e.name==="management")],N=ae(f.fields,m||"USD",s.includeEstimationTitle);async function Se(e){let r=null;n?.onValidation?.(e);let c=await M(e,D);try{await N.validate(c,{abortEarly:!1}),r={formErrors:{},yupError:new re([],e)}}catch(S){let B=G(S);r={formErrors:Object.entries(B).reduce((T,[A,V])=>({...T,[A]:V.message}),{}),yupError:S}}let g=P?.handleValidation(c),y=[...r?.yupError.inner||[],...g?.yupError?.inner||[]],x={...r?.yupError?.value||{},...g?.yupError?.value||{}};return{formErrors:{...r?.formErrors||{},...g?.formErrors||{}},yupError:new re(y,x)}}return o(Se,"handleValidation"),{stepState:{current:0,total:1,isLastStep:!0},fields:D,validationSchema:N,parseFormValues:o(async e=>{let{country:r,region:c,currency:g,salary_converted:y,hiring_budget:x,salary_conversion:S,management:B,estimation_title:T,...A}=e,V=e.salary;y==="salary_conversion"&&(V=S);let he=await M({country:r,region:c,salary:V,salary_converted:y,salary_conversion:S,hiring_budget:x,currency:g,management:B,estimation_title:T},f.fields),Fe=await M(A,P?.fields||[]),Ve={currency_code:d?.find(Me=>Me.value===g)?.label};return{...he,...Fe,...Ve}},"parseFormValues"),handleValidation:Se,isSubmitting:U.isPending,isLoading:ue&&ce&&de,onSubmit:ye,resetForm:Ee,currencies:d,meta:{fields:u.current?.fields}}},"useCostCalculator");function ae(t,i,l){let s=t.reduce((n,a)=>(a.name==="salary"||a.name==="salary_conversion"?n[a.name]=a.schema.when("salary_converted",{is:o(u=>u===a.name,"is"),then:o(u=>u.required("Required field"),"then"),otherwise:o(u=>u.optional(),"otherwise")}):a.name==="management"?n[a.name]=se({management_fee:Be().transform(u=>isNaN(u)?void 0:u).min(0,"Management fee must be greater than or equal to 0").max(i?C[i]:C.USD,()=>`Management fee cannot exceed ${(i?C[i]:C.USD)/100} ${i}`)}):a.name==="estimation_title"&&l?n[a.name]=a.schema.required("Required field"):n[a.name]=a.schema,n),{});return se(s)}o(ae,"buildValidationSchema");function Te(t){let i="benefit-";return Object.keys(t).reduce((l,s)=>{let n=t[s];if(n==="none")return l;let u={benefit_group_slug:s.replace(i,""),benefit_tier_slug:n};return[...l,u]},[])}o(Te,"formatBenefits");function Ae(t,i,l){let s=Number(t.management?.management_fee),n=t.currency_code;return{...{region_slug:t.region||t.country,employment_term:t.contract_duration_type??"fixed",title:t.estimation_title||i.title,age:t.age??void 0,...t.benefits&&{benefits:Te(t.benefits)},...i.includeManagementFee&&s&&{discount:{quoted_amount:i.showManagementFee?s:C[n]||C.USD,text:""}}},...Oe(t,l)}}o(Ae,"mapValueToEmployment");function Oe(t,i){let l=i==="marketing"||t.salary_converted==="salary_conversion",s=i==="standard"&&t.salary_converted==="salary",n=t.hiring_budget==="my_hiring_budget";if(l){let a=t.salary_converted==="salary_conversion";return n?{annual_total_cost_in_employer_currency:t.salary}:{[a?"annual_gross_salary_in_employer_currency":"annual_gross_salary"]:t.salary}}return s?n?{annual_total_cost:t.salary}:{annual_gross_salary:t.salary}:{}}o(Oe,"getSalaryFields");function oe(t,i=O,l="standard"){let s=Array.isArray(t)?t:[t];if(s.length===0)throw new Error("At least one employment value is required");return s.length>1&&new Set(s.map(a=>a.currency)).size>1&&console.warn("Multiple currencies detected in array. Using currency from first employment."),{employer_currency_slug:s[0].currency,include_benefits:i.includeBenefits,include_cost_breakdowns:i.includeCostBreakdowns,include_premium_benefits:i.includePremiumBenefits,include_management_fee:i.includeManagementFee,employments:s.map(n=>Ae(n,i,l))}}o(oe,"buildPayload");export{ae as a,oe as b,O as c,ze as d};
2
- //# sourceMappingURL=chunk-HCJP6RDC.js.map
1
+ import{a as Z}from"./chunk-XHAJ544L.js";import{a as I}from"./chunk-VFRHMNLJ.js";import{a as Q,b as W,c as X,f as Y}from"./chunk-246D2A55.js";import{a as C}from"./chunk-HN5HLFTB.js";import{a as G}from"./chunk-LNV36S6D.js";import{b as ee}from"./chunk-HOR3KPOZ.js";import{a as z}from"./chunk-EUSCQL4H.js";import{e as M}from"./chunk-T7O3YYOG.js";import{a as K}from"./chunk-X6ZAR7ZL.js";import{a as o}from"./chunk-P37U34EQ.js";import{number as Be,object as se}from"yup";import{useCallback as je,useEffect as te,useMemo as we,useRef as Re,useState as j}from"react";import{string as ne,ValidationError as re}from"yup";import{jsx as ie}from"react/jsx-runtime";var O={title:"Estimation",includeBenefits:!1,includeCostBreakdowns:!1,includePremiumBenefits:!1,enableCurrencyConversion:!1,includeEstimationTitle:!1,includeManagementFee:!1},Pe=o(t=>z(I.data.schema,void 0,t),"useStaticSchema");function xe(t,i){if(typeof t=="object"&&t!==null&&"title"in t){let l=t.title;if(l)return l}return i==="my_hiring_budget"?"Hiring budget":"Employee's annual salary"}o(xe,"getSalaryTitle");var ze=o(({defaultRegion:t,defaultCurrency:i,defaultSalary:l,estimationOptions:s,options:n,version:a}={estimationOptions:O})=>{let u=Re({fields:{}}),[k,h]=j(t),[w,R]=j(),[m,q]=j(),[H,le]=j(),{data:_,isLoading:ue}=Q({includePremiumBenefits:s.includePremiumBenefits}),{data:d,isLoading:ce}=W(),me=k||w?.value,{data:P,isLoading:de}=Y(me,{includePremiumBenefits:s.includePremiumBenefits,options:n}),U=X(),{mutateAsync:fe}=K(U),b=w?.currency,p=n?.jsfModify?.fields?.salary,F=p&&typeof p=="object"&&"presentation"in p?p.presentation:void 0,L=je(()=>{let e=b&&m?b!==m:!1;return b!==m?{from:m,to:b,shouldSwapOrder:e}:{from:b,to:m,shouldSwapOrder:e}},[b,m]),J=s.showManagementFee,$=s.includeEstimationTitle,ge=we(()=>{let{from:e,to:r,shouldSwapOrder:c}=L(),g=xe(p,H);return{fields:{salary:{...p,title:g,presentation:{salary_conversion_properties:{label:F?.salary_conversion_properties?.label,description:F?.salary_conversion_properties?.description},currencies:{from:e,to:r},Component:o(y=>ie(Z,{...y,shouldSwapOrder:c,conversionType:a==="marketing"?"no_spread":"spread",defaultValue:l}),"Component")}},hiring_budget:{...n?.jsfModify?.fields?.hiring_budget,presentation:{hidden:a=="marketing"}},management:{...n?.jsfModify?.fields?.management,properties:{...n?.jsfModify?.fields?.management?.properties,management_fee:{...n?.jsfModify?.fields?.management?.properties?.management_fee,"x-jsf-presentation":{inputType:"money",additionalProps:{currency:m||"USD"}}}},presentation:{...typeof n?.jsfModify?.fields?.management=="object"?(n?.jsfModify?.fields?.management)["x-jsf-presentation"]:{},hidden:!J,Component:o(y=>ie(ee,{...y,variant:"inset",features:{toggle:{enabled:!0,stateField:"management._expanded",labels:{expand:"Define",collapse:"Remove"}}}}),"Component")}},estimation_title:{...n?.jsfModify?.fields?.estimation_title,"x-jsf-presentation":{hidden:!$}}}}},[L,p,H,F?.salary_conversion_properties?.label,F?.salary_conversion_properties?.description,n?.jsfModify?.fields?.hiring_budget,n?.jsfModify?.fields?.management,n?.jsfModify?.fields?.estimation_title,a,m,J,$,l]),f=Pe({jsfModify:{fields:{...n?.jsfModify?.fields,...ge?.fields}}});te(()=>{if(t&&_){let e=_.find(({value:r})=>r===t);e&&R(e)}},[t,_]),te(()=>{if(i&&d){let e=d.find(({value:r})=>r===i);e&&q(e.label)}},[i,d]);async function ye(e){return fe(oe(e,s,a))}o(ye,"onSubmit");function pe(e){let r=_?.find(({value:c})=>c===e);r&&r.childRegions.length===0&&r.hasAdditionalFields?h(r.regionSlug):h(void 0),R(r)}o(pe,"onCountryChange");function Ce(e){h(e)}o(Ce,"onRegionChange");function _e(e){le(e.target.value)}o(_e,"onHiringBudgetChange");function be(e){let r=d?.find(c=>c.value===e)?.label;q(r),n?.onCurrencyChange?.(r||"")}o(be,"onChangeCurrency");let E=f.fields.find(e=>e.name==="region");if(E){let e=w?.childRegions.map(r=>({value:r.slug,label:r.name}))??[];E.options=e,E.isVisible=e.length>0,E.required=e.length>0,E.onChange=Ce,E.schema=e.length>0?ne().transform(r=>typeof r=="string"?r:"").required("Region is required"):ne()}if(d){let e=f.fields.find(r=>r.name==="currency");e&&(e.options=d,e.onChange=be)}let v=f.fields.find(e=>e.name==="hiring_budget");if(v&&(v.onChange=_e),_){let e=f.fields.find(r=>r.name==="country");e&&(e.options=_,e.onChange=pe)}let Ee=o(()=>{R(void 0),h(t)},"resetForm"),D=[...f.fields.filter(e=>e.name!=="management"),...P?.fields||[],...f.fields.filter(e=>e.name==="management")],N=ae(f.fields,m||"USD",s.includeEstimationTitle);async function Se(e){let r=null;n?.onValidation?.(e);let c=await M(e,D);try{await N.validate(c,{abortEarly:!1}),r={formErrors:{},yupError:new re([],e)}}catch(S){let B=G(S);r={formErrors:Object.entries(B).reduce((T,[A,V])=>({...T,[A]:V.message}),{}),yupError:S}}let g=P?.handleValidation(c),y=[...r?.yupError.inner||[],...g?.yupError?.inner||[]],x={...r?.yupError?.value||{},...g?.yupError?.value||{}};return{formErrors:{...r?.formErrors||{},...g?.formErrors||{}},yupError:new re(y,x)}}return o(Se,"handleValidation"),{stepState:{current:0,total:1,isLastStep:!0},fields:D,validationSchema:N,parseFormValues:o(async e=>{let{country:r,region:c,currency:g,salary_converted:y,hiring_budget:x,salary_conversion:S,management:B,estimation_title:T,...A}=e,V=e.salary;y==="salary_conversion"&&(V=S);let he=await M({country:r,region:c,salary:V,salary_converted:y,salary_conversion:S,hiring_budget:x,currency:g,management:B,estimation_title:T},f.fields),Fe=await M(A,P?.fields||[]),Ve={currency_code:d?.find(Me=>Me.value===g)?.label};return{...he,...Fe,...Ve}},"parseFormValues"),handleValidation:Se,isSubmitting:U.isPending,isLoading:ue&&ce&&de,onSubmit:ye,resetForm:Ee,currencies:d,meta:{fields:u.current?.fields}}},"useCostCalculator");function ae(t,i,l){let s=t.reduce((n,a)=>(a.name==="salary"||a.name==="salary_conversion"?n[a.name]=a.schema.when("salary_converted",{is:o(u=>u===a.name,"is"),then:o(u=>u.required("Required field"),"then"),otherwise:o(u=>u.optional(),"otherwise")}):a.name==="management"?n[a.name]=se({management_fee:Be().transform(u=>isNaN(u)?void 0:u).min(0,"Management fee must be greater than or equal to 0").max(i?C[i]:C.USD,()=>`Management fee cannot exceed ${(i?C[i]:C.USD)/100} ${i}`)}):a.name==="estimation_title"&&l?n[a.name]=a.schema.required("Required field"):n[a.name]=a.schema,n),{});return se(s)}o(ae,"buildValidationSchema");function Te(t){let i="benefit-";return Object.keys(t).reduce((l,s)=>{let n=t[s];if(n==="none")return l;let u={benefit_group_slug:s.replace(i,""),benefit_tier_slug:n};return[...l,u]},[])}o(Te,"formatBenefits");function Ae(t,i,l){let s=Number(t.management?.management_fee),n=t.currency_code;return{...{region_slug:t.region||t.country,employment_term:t.contract_duration_type??"fixed",title:t.estimation_title||i.title,age:t.age??void 0,...t.benefits&&{benefits:Te(t.benefits)},...i.includeManagementFee&&s&&{discount:{quoted_amount:i.showManagementFee?s:C[n]||C.USD,text:""}}},...Oe(t,l)}}o(Ae,"mapValueToEmployment");function Oe(t,i){let l=i==="marketing"||t.salary_converted==="salary_conversion",s=i==="standard"&&t.salary_converted==="salary",n=t.hiring_budget==="my_hiring_budget";if(l){let a=t.salary_converted==="salary_conversion";return n?{annual_total_cost_in_employer_currency:t.salary}:{[a?"annual_gross_salary_in_employer_currency":"annual_gross_salary"]:t.salary}}return s?n?{annual_total_cost:t.salary}:{annual_gross_salary:t.salary}:{}}o(Oe,"getSalaryFields");function oe(t,i=O,l="standard"){let s=Array.isArray(t)?t:[t];if(s.length===0)throw new Error("At least one employment value is required");return s.length>1&&new Set(s.map(a=>a.currency)).size>1&&console.warn("Multiple currencies detected in array. Using currency from first employment."),{employer_currency_slug:s[0].currency,include_benefits:i.includeBenefits,include_cost_breakdowns:i.includeCostBreakdowns,include_premium_benefits:i.includePremiumBenefits,include_management_fee:i.includeManagementFee,employments:s.map(n=>Ae(n,i,l))}}o(oe,"buildPayload");export{ae as a,oe as b,O as c,ze as d};
2
+ //# sourceMappingURL=chunk-4N4MQECC.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-2TPHCOVE.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function F({onSubmit:t,onSuccess:s,onError:m}){let{terminationBag:o}=e(),d=r(async a=>{let l=await o?.parseFormValues(a,!0);await t?.(l);let i=await o?.onSubmit(a);i?.error?m?.(i.rawError):i?.data&&await s?.(i.data)},"handleSubmit");return u(n,{defaultValues:o.fieldValues,fields:o?.fields,onSubmit:d})}r(F,"AdditionalDetailsForm");export{F as a};
2
- //# sourceMappingURL=chunk-UBYT2TI4.js.map
1
+ import{a as n}from"./chunk-BVFQ6LFD.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function F({onSubmit:t,onSuccess:s,onError:m}){let{terminationBag:o}=e(),d=r(async a=>{let l=await o?.parseFormValues(a,!0);await t?.(l);let i=await o?.onSubmit(a);i?.error?m?.(i.rawError):i?.data&&await s?.(i.data)},"handleSubmit");return u(n,{defaultValues:o.fieldValues,fields:o?.fields,onSubmit:d})}r(F,"AdditionalDetailsForm");export{F as a};
2
+ //# sourceMappingURL=chunk-4UO7KLRK.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-5KMUUL7U.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,2 @@
1
+ var e={data:{version:7,schema:{additionalProperties:!1,properties:{country_code:{title:"Country",description:"",type:"string",oneOf:[],"x-jsf-presentation":{inputType:"select"}},company_owner_email:{title:"Company Owner Email",description:"",type:"string","x-jsf-presentation":{inputType:"text"}},company_owner_name:{title:"Company Owner Name",description:"",type:"string","x-jsf-presentation":{inputType:"text"}},desired_currency:{title:"Desired Currency",description:"",type:"string",oneOf:[],"x-jsf-presentation":{inputType:"select"}},name:{title:"Name",description:"",type:"string","x-jsf-presentation":{inputType:"text"}},phone_number:{title:"Phone Number",description:"",type:"string","x-jsf-presentation":{inputType:"text"}},tax_number:{title:"Tax Number",description:"",type:"string","x-jsf-presentation":{inputType:"text"}}},required:["country_code","company_owner_email","phone_number","name","desired_currency","company_owner_name"],type:"object","x-jsf-order":["country_code","name","phone_number","desired_currency","tax_number","company_owner_name","company_owner_email"]}}};export{e as a};
2
+ //# sourceMappingURL=chunk-5WIBTOCI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/CreateCompany/json-schemas/companyBasicInformationStep.ts"],"sourcesContent":["export const companyBasicInformationStepSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n properties: {\n country_code: {\n title: 'Country',\n description: '',\n type: 'string',\n oneOf: [],\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n company_owner_email: {\n title: 'Company Owner Email',\n description: '',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'text',\n },\n },\n company_owner_name: {\n title: 'Company Owner Name',\n description: '',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'text',\n },\n },\n desired_currency: {\n title: 'Desired Currency',\n description: '',\n type: 'string',\n oneOf: [],\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n name: {\n title: 'Name',\n description: '',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'text',\n },\n },\n phone_number: {\n title: 'Phone Number',\n description: '',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'text',\n },\n },\n tax_number: {\n title: 'Tax Number',\n description: '',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'text',\n },\n },\n },\n required: [\n 'country_code',\n 'company_owner_email',\n 'phone_number',\n 'name',\n 'desired_currency',\n 'company_owner_name',\n ],\n type: 'object',\n 'x-jsf-order': [\n 'country_code',\n 'name',\n 'phone_number',\n 'desired_currency',\n 'tax_number',\n 'company_owner_name',\n 'company_owner_email',\n ],\n },\n },\n};\n"],"mappings":"AAAO,IAAMA,EAAoC,CAC/C,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,WAAY,CACV,aAAc,CACZ,MAAO,UACP,YAAa,GACb,KAAM,SACN,MAAO,CAAC,EACR,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,oBAAqB,CACnB,MAAO,sBACP,YAAa,GACb,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,EACA,mBAAoB,CAClB,MAAO,qBACP,YAAa,GACb,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,EACA,iBAAkB,CAChB,MAAO,mBACP,YAAa,GACb,KAAM,SACN,MAAO,CAAC,EACR,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,KAAM,CACJ,MAAO,OACP,YAAa,GACb,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,EACA,aAAc,CACZ,MAAO,eACP,YAAa,GACb,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,EACA,WAAY,CACV,MAAO,aACP,YAAa,GACb,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,CACF,EACA,SAAU,CACR,eACA,sBACA,eACA,OACA,mBACA,oBACF,EACA,KAAM,SACN,cAAe,CACb,eACA,OACA,eACA,mBACA,aACA,qBACA,qBACF,CACF,CACF,CACF","names":["companyBasicInformationStepSchema"]}
@@ -0,0 +1,2 @@
1
+ import{a as s}from"./chunk-PHPCCABU.js";import{b as m}from"./chunk-76ZDXC2T.js";import{k as i}from"./chunk-VIGKOVHP.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function l({onSubmit:c,onSuccess:p,onError:t}){let{createCompanyBag:o}=m(),u=a(async r=>{try{await c?.({countryCode:r.country_code,companyOwnerEmail:r.company_owner_email,companyOwnerName:r.company_owner_name,desiredCurrency:r.desired_currency,name:r.name,phoneNumber:r.phone_number,taxNumber:r.tax_number});let n=await o.onSubmit(r);if(n?.data){await p?.(n?.data),o?.next();return}if(n?.error){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}}catch(n){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}},"handleSubmit"),f=o.stepState.values?.company_basic_information||o.initialValues.company_basic_information;return d(s,{defaultValues:f,onSubmit:u})}a(l,"CompanyBasicInformationStep");export{l as a};
2
+ //# sourceMappingURL=chunk-62O3CKKH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/CreateCompany/components/CompanyBasicInformationStep.tsx"],"sourcesContent":["import {\n CompanyBasicInfoFormPayload,\n CompanyBasicInfoSuccess,\n} from '@/src/flows/CreateCompany/types';\nimport { NormalizedFieldError } from '@/src/lib/mutations';\nimport { $TSFixMe } from '@/src/types/remoteFlows';\nimport { useCreateCompanyContext } from '@/src/flows/CreateCompany/context';\nimport { CreateCompanyForm } from '@/src/flows/CreateCompany/components/CreateCompanyForm';\nimport { handleStepError } from '@/src/lib/utils';\n\ntype CompanyBasicInformationStepProps = {\n /**\n * The function is called when the form is submitted. It receives the form values as an argument.\n */\n onSubmit?: (payload: CompanyBasicInfoFormPayload) => void | Promise<void>;\n /**\n * The function is called when the form submission is successful.\n */\n onSuccess?: (data: CompanyBasicInfoSuccess) => void | Promise<void>;\n /**\n * The function is called when an error occurs during form submission.\n */\n onError?: ({\n error,\n rawError,\n fieldErrors,\n }: {\n error: Error;\n rawError: Record<string, unknown>;\n fieldErrors: NormalizedFieldError[];\n }) => void;\n};\n\n/**\n * CompanyBasicInformationStep component for the first step of company creation\n * Handles company basic information form submission\n */\nexport function CompanyBasicInformationStep({\n onSubmit,\n onSuccess,\n onError,\n}: CompanyBasicInformationStepProps) {\n const { createCompanyBag } = useCreateCompanyContext();\n const handleSubmit = async (payload: $TSFixMe) => {\n try {\n await onSubmit?.({\n countryCode: payload.country_code,\n companyOwnerEmail: payload.company_owner_email,\n companyOwnerName: payload.company_owner_name,\n desiredCurrency: payload.desired_currency,\n name: payload.name,\n phoneNumber: payload.phone_number,\n taxNumber: payload.tax_number,\n });\n const response = await createCompanyBag.onSubmit(payload);\n if (response?.data) {\n await onSuccess?.(response?.data as CompanyBasicInfoSuccess);\n createCompanyBag?.next();\n return;\n }\n if (response?.error) {\n const structuredError = handleStepError(\n response,\n createCompanyBag.meta?.fields?.company_basic_information,\n );\n onError?.(structuredError);\n }\n } catch (error: unknown) {\n const structuredError = handleStepError(\n error,\n createCompanyBag.meta?.fields?.company_basic_information,\n );\n\n onError?.(structuredError);\n }\n };\n\n const initialValues =\n createCompanyBag.stepState.values?.company_basic_information ||\n createCompanyBag.initialValues.company_basic_information;\n\n return (\n <CreateCompanyForm defaultValues={initialValues} onSubmit={handleSubmit} />\n );\n}\n"],"mappings":"2JAkFI,cAAAA,MAAA,oBA7CG,SAASC,EAA4B,CAC1C,SAAAC,EACA,UAAAC,EACA,QAAAC,CACF,EAAqC,CACnC,GAAM,CAAE,iBAAAC,CAAiB,EAAIC,EAAwB,EAC/CC,EAAeC,EAAA,MAAOC,GAAsB,CAChD,GAAI,CACF,MAAMP,IAAW,CACf,YAAaO,EAAQ,aACrB,kBAAmBA,EAAQ,oBAC3B,iBAAkBA,EAAQ,mBAC1B,gBAAiBA,EAAQ,iBACzB,KAAMA,EAAQ,KACd,YAAaA,EAAQ,aACrB,UAAWA,EAAQ,UACrB,CAAC,EACD,IAAMC,EAAW,MAAML,EAAiB,SAASI,CAAO,EACxD,GAAIC,GAAU,KAAM,CAClB,MAAMP,IAAYO,GAAU,IAA+B,EAC3DL,GAAkB,KAAK,EACvB,MACF,CACA,GAAIK,GAAU,MAAO,CACnB,IAAMC,EAAkBC,EACtBF,EACAL,EAAiB,MAAM,QAAQ,yBACjC,EACAD,IAAUO,CAAe,CAC3B,CACF,OAASE,EAAgB,CACvB,IAAMF,EAAkBC,EACtBC,EACAR,EAAiB,MAAM,QAAQ,yBACjC,EAEAD,IAAUO,CAAe,CAC3B,CACF,EAhCqB,gBAkCfG,EACJT,EAAiB,UAAU,QAAQ,2BACnCA,EAAiB,cAAc,0BAEjC,OACEL,EAACe,EAAA,CAAkB,cAAeD,EAAe,SAAUP,EAAc,CAE7E,CA/CgBC,EAAAP,EAAA","names":["jsx","CompanyBasicInformationStep","onSubmit","onSuccess","onError","createCompanyBag","useCreateCompanyContext","handleSubmit","__name","payload","response","structuredError","handleStepError","error","initialValues","CreateCompanyForm"]}
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-3PIJOIYR.js";import{a}from"./chunk-P37U34EQ.js";import*as l from"@radix-ui/react-collapsible";var d=l.Root,g=l.CollapsibleTrigger,v=l.CollapsibleContent;import*as i from"@radix-ui/react-tabs";import{jsx as n}from"react/jsx-runtime";function u({className:o,...e}){return n(i.Root,{"data-slot":"tabs",className:t("flex flex-col gap-2",o),...e})}a(u,"Tabs");function C({className:o,...e}){return n(i.List,{"data-slot":"tabs-list",className:t("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",o),...e})}a(C,"TabsList");function x({className:o,...e}){return n(i.Trigger,{"data-slot":"tabs-trigger",className:t("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),...e})}a(x,"TabsTrigger");function T({className:o,...e}){return n(i.Content,{"data-slot":"tabs-content",className:t("flex-1 outline-none",o),...e})}a(T,"TabsContent");import*as p from"react";import*as r from"@radix-ui/react-scroll-area";import{jsx as s,jsxs as P}from"react/jsx-runtime";var f=p.forwardRef(({className:o,children:e,...c},m)=>P(r.Root,{ref:m,className:t("relative overflow-hidden",o),...c,children:[s(r.Viewport,{className:"h-full w-full rounded-[inherit]",children:e}),s(b,{}),s(r.Corner,{})]}));f.displayName=r.Root.displayName;var b=p.forwardRef(({className:o,orientation:e="vertical",...c},m)=>s(r.ScrollAreaScrollbar,{ref:m,orientation:e,className:t("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",o),...c,children:s(r.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));b.displayName=r.ScrollAreaScrollbar.displayName;export{d as a,g as b,v as c,u as d,C as e,x as f,T as g,f as h};
2
- //# sourceMappingURL=chunk-ZIXR3VSB.js.map
1
+ import{a as t}from"./chunk-VIGKOVHP.js";import{a}from"./chunk-P37U34EQ.js";import*as l from"@radix-ui/react-collapsible";var d=l.Root,g=l.CollapsibleTrigger,v=l.CollapsibleContent;import*as i from"@radix-ui/react-tabs";import{jsx as n}from"react/jsx-runtime";function u({className:o,...e}){return n(i.Root,{"data-slot":"tabs",className:t("flex flex-col gap-2",o),...e})}a(u,"Tabs");function C({className:o,...e}){return n(i.List,{"data-slot":"tabs-list",className:t("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",o),...e})}a(C,"TabsList");function x({className:o,...e}){return n(i.Trigger,{"data-slot":"tabs-trigger",className:t("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),...e})}a(x,"TabsTrigger");function T({className:o,...e}){return n(i.Content,{"data-slot":"tabs-content",className:t("flex-1 outline-none",o),...e})}a(T,"TabsContent");import*as p from"react";import*as r from"@radix-ui/react-scroll-area";import{jsx as s,jsxs as P}from"react/jsx-runtime";var f=p.forwardRef(({className:o,children:e,...c},m)=>P(r.Root,{ref:m,className:t("relative overflow-hidden",o),...c,children:[s(r.Viewport,{className:"h-full w-full rounded-[inherit]",children:e}),s(b,{}),s(r.Corner,{})]}));f.displayName=r.Root.displayName;var b=p.forwardRef(({className:o,orientation:e="vertical",...c},m)=>s(r.ScrollAreaScrollbar,{ref:m,orientation:e,className:t("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",o),...c,children:s(r.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));b.displayName=r.ScrollAreaScrollbar.displayName;export{d as a,g as b,v as c,u as d,C as e,x as f,T as g,f as h};
2
+ //# sourceMappingURL=chunk-6AAV34CT.js.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-P37U34EQ.js";import{createContext as o,useContext as r}from"react";var n=o({formId:void 0,createCompanyBag:null}),C=t(()=>{let e=r(n);if(!e.formId||!e.createCompanyBag)throw new Error("useCreateCompanyContext must be used within a CreateCompanyContextProvider");return{formId:e.formId,createCompanyBag:e.createCompanyBag}},"useCreateCompanyContext");export{n as a,C as b};
2
+ //# sourceMappingURL=chunk-76ZDXC2T.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/CreateCompany/context.ts"],"sourcesContent":["import type { useCreateCompany } from '@/src/flows/CreateCompany/hooks';\nimport { createContext, useContext } from 'react';\nexport const CreateCompanyContext = createContext<{\n formId: string | undefined;\n createCompanyBag: ReturnType<typeof useCreateCompany> | null;\n}>({\n formId: undefined,\n createCompanyBag: null,\n});\n\nexport const useCreateCompanyContext = () => {\n const context = useContext(CreateCompanyContext);\n if (!context.formId || !context.createCompanyBag) {\n throw new Error(\n 'useCreateCompanyContext must be used within a CreateCompanyContextProvider',\n );\n }\n\n return {\n formId: context.formId,\n createCompanyBag: context.createCompanyBag,\n } as const;\n};\n"],"mappings":"wCACA,OAAS,iBAAAA,EAAe,cAAAC,MAAkB,QACnC,IAAMC,EAAuBC,EAGjC,CACD,OAAQ,OACR,iBAAkB,IACpB,CAAC,EAEYC,EAA0BC,EAAA,IAAM,CAC3C,IAAMC,EAAUC,EAAWL,CAAoB,EAC/C,GAAI,CAACI,EAAQ,QAAU,CAACA,EAAQ,iBAC9B,MAAM,IAAI,MACR,4EACF,EAGF,MAAO,CACL,OAAQA,EAAQ,OAChB,iBAAkBA,EAAQ,gBAC5B,CACF,EAZuC","names":["createContext","useContext","CreateCompanyContext","createContext","useCreateCompanyContext","__name","context","useContext"]}
@@ -0,0 +1,6 @@
1
+ import{a as t}from"./chunk-P37U34EQ.js";var N=t((e,r,o)=>{typeof o=="string"||o instanceof Blob?e.append(r,o):o instanceof Date?e.append(r,o.toISOString()):e.append(r,JSON.stringify(o))},"serializeFormDataPair");var B={bodySerializer:t(e=>{let r=new FormData;return Object.entries(e).forEach(([o,a])=>{a!=null&&(Array.isArray(a)?a.forEach(i=>N(r,o,i)):N(r,o,a))}),r},"bodySerializer")},j={bodySerializer:t(e=>JSON.stringify(e,(r,o)=>typeof o=="bigint"?o.toString():o),"bodySerializer")};var Q=t(({onRequest:e,onSseError:r,onSseEvent:o,responseTransformer:a,responseValidator:i,sseDefaultRetryDelay:h,sseMaxRetryAttempts:c,sseMaxRetryDelay:p,sseSleepFn:l,url:d,...s})=>{let E,g=l??(m=>new Promise(C=>setTimeout(C,m)));return{stream:t(async function*(){let m=h??3e3,C=0,T=s.signal??new AbortController().signal;for(;!T.aborted;){C++;let D=s.headers instanceof Headers?s.headers:new Headers(s.headers);E!==void 0&&D.set("Last-Event-ID",E);try{let x={redirect:"follow",...s,body:s.serializedBody,headers:D,signal:T},O=new Request(d,x);e&&(O=await e(d,x));let u=await(s.fetch??globalThis.fetch)(O);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let w=u.body.pipeThrough(new TextDecoderStream).getReader(),A="",W=t(()=>{try{w.cancel()}catch{}},"abortHandler");T.addEventListener("abort",W);try{for(;;){let{done:te,value:re}=await w.read();if(te)break;A+=re;let F=A.split(`
2
+
3
+ `);A=F.pop()??"";for(let oe of F){let ne=oe.split(`
4
+ `),v=[],V;for(let b of ne)if(b.startsWith("data:"))v.push(b.replace(/^data:\s*/,""));else if(b.startsWith("event:"))V=b.replace(/^event:\s*/,"");else if(b.startsWith("id:"))E=b.replace(/^id:\s*/,"");else if(b.startsWith("retry:")){let H=Number.parseInt(b.replace(/^retry:\s*/,""),10);Number.isNaN(H)||(m=H)}let P,M=!1;if(v.length){let b=v.join(`
5
+ `);try{P=JSON.parse(b),M=!0}catch{P=b}}M&&(i&&await i(P),a&&(P=await a(P))),o?.({data:P,event:V,id:E,retry:m}),v.length&&(yield P)}}}finally{T.removeEventListener("abort",W),w.releaseLock()}break}catch(x){if(r?.(x),c!==void 0&&C>=c)break;let O=Math.min(m*2**(C-1),p??3e4);await g(O)}}},"createStream")()}},"createSseClient");var se=t(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},"separatorArrayExplode"),ae=t(e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},"separatorArrayNoExplode"),ie=t(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},"separatorObjectExplode"),k=t(({allowReserved:e,explode:r,name:o,style:a,value:i})=>{if(!r){let p=(e?i:i.map(l=>encodeURIComponent(l))).join(ae(a));switch(a){case"label":return`.${p}`;case"matrix":return`;${o}=${p}`;case"simple":return p;default:return`${o}=${p}`}}let h=se(a),c=i.map(p=>a==="label"||a==="simple"?e?p:encodeURIComponent(p):R({allowReserved:e,name:o,value:p})).join(h);return a==="label"||a==="matrix"?h+c:c},"serializeArrayParam"),R=t(({allowReserved:e,name:r,value:o})=>{if(o==null)return"";if(typeof o=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?o:encodeURIComponent(o)}`},"serializePrimitiveParam"),U=t(({allowReserved:e,explode:r,name:o,style:a,value:i,valueOnly:h})=>{if(i instanceof Date)return h?i.toISOString():`${o}=${i.toISOString()}`;if(a!=="deepObject"&&!r){let l=[];Object.entries(i).forEach(([s,E])=>{l=[...l,s,e?E:encodeURIComponent(E)]});let d=l.join(",");switch(a){case"form":return`${o}=${d}`;case"label":return`.${d}`;case"matrix":return`;${o}=${d}`;default:return d}}let c=ie(a),p=Object.entries(i).map(([l,d])=>R({allowReserved:e,name:a==="deepObject"?`${o}[${l}]`:l,value:d})).join(c);return a==="label"||a==="matrix"?c+p:p},"serializeObjectParam");var pe=/\{[^{}]+\}/g,ce=t(({path:e,url:r})=>{let o=r,a=r.match(pe);if(a)for(let i of a){let h=!1,c=i.substring(1,i.length-1),p="simple";c.endsWith("*")&&(h=!0,c=c.substring(0,c.length-1)),c.startsWith(".")?(c=c.substring(1),p="label"):c.startsWith(";")&&(c=c.substring(1),p="matrix");let l=e[c];if(l==null)continue;if(Array.isArray(l)){o=o.replace(i,k({explode:h,name:c,style:p,value:l}));continue}if(typeof l=="object"){o=o.replace(i,U({explode:h,name:c,style:p,value:l,valueOnly:!0}));continue}if(p==="matrix"){o=o.replace(i,`;${R({name:c,value:l})}`);continue}let d=encodeURIComponent(p==="label"?`.${l}`:l);o=o.replace(i,d)}return o},"defaultPathSerializer"),$=t(({baseUrl:e,path:r,query:o,querySerializer:a,url:i})=>{let h=i.startsWith("/")?i:`/${i}`,c=(e??"")+h;r&&(c=ce({path:r,url:c}));let p=o?a(o):"";return p.startsWith("?")&&(p=p.substring(1)),p&&(c+=`?${p}`),c},"getUrl");function J(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}t(J,"getValidRequestBody");var K=t(async(e,r)=>{let o=typeof r=="function"?await r(e):r;if(o)return e.scheme==="bearer"?`Bearer ${o}`:e.scheme==="basic"?`Basic ${btoa(o)}`:o},"getAuthToken");var X=t(({parameters:e={},...r}={})=>t(a=>{let i=[];if(a&&typeof a=="object")for(let h in a){let c=a[h];if(c==null)continue;let p=e[h]||r;if(Array.isArray(c)){let l=k({allowReserved:p.allowReserved,explode:!0,name:h,style:"form",value:c,...p.array});l&&i.push(l)}else if(typeof c=="object"){let l=U({allowReserved:p.allowReserved,explode:!0,name:h,style:"deepObject",value:c,...p.object});l&&i.push(l)}else{let l=R({allowReserved:p.allowReserved,name:h,value:c});l&&i.push(l)}}return i.join("&")},"querySerializer"),"createQuerySerializer"),Y=t(e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>r.startsWith(o)))return"blob";if(r.startsWith("text/"))return"text"}},"getParseAs"),le=t((e,r)=>r?!!(e.headers.has(r)||e.query?.[r]||e.headers.get("Cookie")?.includes(`${r}=`)):!1,"checkForExistence"),Z=t(async({security:e,...r})=>{for(let o of e){if(le(r,o.name))continue;let a=await K(o,r.auth);if(!a)continue;let i=o.name??"Authorization";switch(o.in){case"query":r.query||(r.query={}),r.query[i]=a;break;case"cookie":r.headers.append("Cookie",`${i}=${a}`);break;case"header":default:r.headers.set(i,a);break}}},"setAuthParams"),z=t(e=>$({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),"buildUrl"),_=t((e,r)=>{let o={...e,...r};return o.baseUrl?.endsWith("/")&&(o.baseUrl=o.baseUrl.substring(0,o.baseUrl.length-1)),o.headers=q(e.headers,r.headers),o},"mergeConfigs"),he=t(e=>{let r=[];return e.forEach((o,a)=>{r.push([a,o])}),r},"headersEntries"),q=t((...e)=>{let r=new Headers;for(let o of e){if(!o)continue;let a=o instanceof Headers?he(o):Object.entries(o);for(let[i,h]of a)if(h===null)r.delete(i);else if(Array.isArray(h))for(let c of h)r.append(i,c);else h!==void 0&&r.set(i,typeof h=="object"?JSON.stringify(h):h)}return r},"mergeHeaders"),G=class{static{t(this,"Interceptors")}fns=[];clear(){this.fns=[]}eject(r){let o=this.getInterceptorIndex(r);this.fns[o]&&(this.fns[o]=null)}exists(r){let o=this.getInterceptorIndex(r);return!!this.fns[o]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,o){let a=this.getInterceptorIndex(r);return this.fns[a]?(this.fns[a]=o,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=t(()=>({error:new G,request:new G,response:new G}),"createInterceptors"),me=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),de={"Content-Type":"application/json"},S=t((e={})=>({...j,headers:de,parseAs:"auto",querySerializer:me,...e}),"createConfig");var L=t((e={})=>{let r=_(S(),e),o=t(()=>({...r}),"getConfig"),a=t(d=>(r=_(r,d),o()),"setConfig"),i=ee(),h=t(async d=>{let s={...r,...d,fetch:d.fetch??r.fetch??globalThis.fetch,headers:q(r.headers,d.headers),serializedBody:void 0};s.security&&await Z({...s,security:s.security}),s.requestValidator&&await s.requestValidator(s),s.body!==void 0&&s.bodySerializer&&(s.serializedBody=s.bodySerializer(s.body)),(s.body===void 0||s.serializedBody==="")&&s.headers.delete("Content-Type");let E=z(s);return{opts:s,url:E}},"beforeRequest"),c=t(async d=>{let{opts:s,url:E}=await h(d),g={redirect:"follow",...s,body:J(s)},f=new Request(E,g);for(let y of i.request.fns)y&&(f=await y(f,s));let I=s.fetch,m;try{m=await I(f)}catch(y){let u=y;for(let w of i.error.fns)w&&(u=await w(y,void 0,f,s));if(u=u||{},s.throwOnError)throw u;return s.responseStyle==="data"?void 0:{error:u,request:f,response:void 0}}for(let y of i.response.fns)y&&(m=await y(m,f,s));let C={request:f,response:m};if(m.ok){let y=(s.parseAs==="auto"?Y(m.headers.get("Content-Type")):s.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let w;switch(y){case"arrayBuffer":case"blob":case"text":w=await m[y]();break;case"formData":w=new FormData;break;case"stream":w=m.body;break;case"json":default:w={};break}return s.responseStyle==="data"?w:{data:w,...C}}let u;switch(y){case"arrayBuffer":case"blob":case"formData":case"json":case"text":u=await m[y]();break;case"stream":return s.responseStyle==="data"?m.body:{data:m.body,...C}}return y==="json"&&(s.responseValidator&&await s.responseValidator(u),s.responseTransformer&&(u=await s.responseTransformer(u))),s.responseStyle==="data"?u:{data:u,...C}}let T=await m.text(),D;try{D=JSON.parse(T)}catch{}let x=D??T,O=x;for(let y of i.error.fns)y&&(O=await y(x,m,f,s));if(O=O||{},s.throwOnError)throw O;return s.responseStyle==="data"?void 0:{error:O,...C}},"request"),p=t(d=>s=>c({...s,method:d}),"makeMethodFn"),l=t(d=>async s=>{let{opts:E,url:g}=await h(s);return Q({...E,body:E.body,headers:E.headers,method:d,onRequest:t(async(f,I)=>{let m=new Request(f,I);for(let C of i.request.fns)C&&(m=await C(m,E));return m},"onRequest"),url:g})},"makeSseFn");return{buildUrl:z,connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),getConfig:o,head:p("HEAD"),interceptors:i,options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),request:c,setConfig:a,sse:{connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),head:l("HEAD"),options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),trace:l("TRACE")},trace:p("TRACE")}},"createClient");var n=L(S({baseUrl:"https://gateway.remote.com/"}));var He=t(e=>(e?.client??n).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/offboardings",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateOffboarding");var Ne=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cancel-onboarding/{employment_id}",...e}),"postUpdateCancelOnboarding"),Qe=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/schema",...e}),"getShowContractAmendmentSchema");var $e=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}/pricing-plans",...e}),"getIndexCompanyPricingPlan");var Je=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/raw",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postConvertRawCurrencyConverter"),Ke=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/contractor-contract-details",...e}),"getShowContractorContractDetailsCountry");var Xe=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateEmployment2"),Ye=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/help-center-articles/{id}",...e}),"getShowHelpCenterArticle");var Ze=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/sdk/telemetry-errors",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postReportErrorsTelemetry");var et=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateEstimation");var tt=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e}),"getIndexBenefitOffer"),rt=t(e=>(e.client??n).put({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e,headers:{"Content-Type":"application/json",...e.headers}}),"putUpdateBenefitOffer");var ot=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-subscriptions",...e}),"getIndexSubscription");var nt=t(e=>(e?.client??n).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/payroll-calendars",...e}),"getIndexEorPayrollCalendar");var st=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{id}",...e}),"getShowContractDocument"),at=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/contract-documents",...e}),"getIndexEmploymentContractDocument");var it=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-currencies",...e}),"getIndexContractorCurrency");var pt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/magic-link",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postGenerateMagicLink");var ct=t(e=>(e?.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-pdf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationPdf");var lt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/risk-reserve",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateRiskReserve");var ht=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}",...e}),"getShowCompany"),mt=t(e=>(e.client??n).patch({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),"patchUpdateCompany2");var dt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractAmendment");var yt=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/{form}",...e}),"getShowFormCountry"),ut=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/files/{id}",...e}),"getShowFile");var Et=t(e=>(e?.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/countries",...e}),"getIndexCountry");var Ct=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/leave-policies/summary/{employment_id}",...e}),"getIndexLeavePoliciesSummary");var wt=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers/schema",...e}),"getShowSchema"),ft=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/eligibility-questionnaire",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateEligibilityQuestionnaire");var bt=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e}),"getShowEmployment"),Ot=t(e=>(e.client??n).patch({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),"patchUpdateEmployment2");var Tt=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/regions/{slug}/fields",...e}),"getShowRegionField");var xt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/contract-eligibility",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractEligibility"),Pt=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/countries",...e}),"getSupportedCountry");var Rt=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}/legal-entities",...e}),"getIndexCompanyLegalEntities");var gt=t(e=>(e?.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-csv",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationCsv"),Dt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractDocument");var Gt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/effective",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postConvertWithSpreadCurrencyConverter");var St=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/automatable",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postAutomatableContractAmendment");var It=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/files",...e}),"getIndexEmploymentFile");var vt=t(e=>(e?.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/company-currencies",...e}),"getIndexCompanyCurrency");var kt=t(e=>(e.client??n).post({...B,security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/documents",...e,headers:{"Content-Type":null,...e.headers}}),"postUploadEmployeeFileFile"),Ut=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/invite",...e}),"postInviteEmploymentInvitation");var qt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{contract_document_id}/sign",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postSignContractDocument"),At=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/identity/current",...e}),"getCurrentIdentity");var Bt=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/schemas/eligibility-questionnaire",...e}),"getShowEligibilityQuestionnaire");var jt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-plus-subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postManageContractorPlusSubscriptionSubscription"),zt=t(e=>(e.client??n).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/timeoff",...e}),"getIndexTimeoff");var _t=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateCompany");var Lt=t(e=>(e.client??n).delete({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-cor-subscription",...e}),"deleteDeleteContractorCorSubscriptionSubscription"),Wt=t(e=>(e.client??n).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-cor-subscription",...e}),"postManageContractorCorSubscriptionSubscription");export{L as a,n as b,He as c,Ne as d,Qe as e,$e as f,Je as g,Ke as h,Xe as i,Ye as j,Ze as k,et as l,tt as m,rt as n,ot as o,nt as p,st as q,at as r,it as s,pt as t,ct as u,lt as v,ht as w,mt as x,dt as y,yt as z,ut as A,Et as B,Ct as C,wt as D,ft as E,bt as F,Ot as G,Tt as H,xt as I,Pt as J,Rt as K,gt as L,Dt as M,Gt as N,St as O,It as P,vt as Q,kt as R,Ut as S,qt as T,At as U,Bt as V,jt as W,zt as X,_t as Y,Lt as Z,Wt as _};
6
+ //# sourceMappingURL=chunk-7ENB7H4E.js.map