@remoteoss/remote-flows 1.33.2 → 1.35.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 (459) hide show
  1. package/dist/ButtonDefault-4W4M55VE.js +2 -0
  2. package/dist/CheckboxFieldDefault-2VCAKWLA.js +2 -0
  3. package/dist/CountryFieldDefault-DCHHKYYJ.js +2 -0
  4. package/dist/DatePickerFieldDefault-NODTGDNL.js +2 -0
  5. package/dist/DrawerDefault-VMG6FKCD.js +2 -0
  6. package/dist/EmailFieldDefault-INNDIQML.js +2 -0
  7. package/dist/FieldsetToggleButtonDefault-2YKED23M.js +2 -0
  8. package/dist/FileUploadFieldDefault-AGLKTUCJ.js +2 -0
  9. package/dist/MultiSelectFieldDefault-OTNIDC2Q.js +2 -0
  10. package/dist/NumberFieldDefault-QLW7EZ4R.js +2 -0
  11. package/dist/RadioGroupFieldDefault-ZX4Z2EVK.js +2 -0
  12. package/dist/SelectFieldDefault-SNTI7KXR.js +2 -0
  13. package/dist/StatementDefault-YBHPHVCI.js +2 -0
  14. package/dist/TableFieldDefault-XTCTKLLJ.js +2 -0
  15. package/dist/TelFieldDefault-POAPMI5W.js +2 -0
  16. package/dist/TextAreaFieldDefault-JOSXKY6O.js +2 -0
  17. package/dist/TextFieldDefault-7HSHPHOF.js +2 -0
  18. package/dist/WorkScheduleFieldDefault-6NNTPTZ6.js +2 -0
  19. package/dist/ZendeskDrawerDefault-ILQM2VEO.js +2 -0
  20. package/dist/{chunk-N5DHVRQR.js → chunk-23HL6DQK.js} +2 -2
  21. package/dist/{chunk-CFCUY6VA.js → chunk-2K4N6RPD.js} +2 -2
  22. package/dist/{chunk-NN2HUS43.js → chunk-2PKH6744.js} +2 -2
  23. package/dist/{chunk-Y7NFXPZ2.js → chunk-3BNHBFVL.js} +2 -2
  24. package/dist/{chunk-XWZP4WYZ.js → chunk-3THSAI2N.js} +2 -2
  25. package/dist/{chunk-Q5RU76HN.js → chunk-4T66UEMY.js} +2 -2
  26. package/dist/{chunk-QYLLXHLO.js → chunk-547SAUNX.js} +2 -2
  27. package/dist/{chunk-NZXVTXZY.js → chunk-6BPEPQ3C.js} +2 -2
  28. package/dist/{chunk-2IIHA7AA.js → chunk-6D5IHLXV.js} +2 -2
  29. package/dist/{chunk-G6E7F6VD.js → chunk-6J2NNZFD.js} +2 -2
  30. package/dist/{chunk-CMPHQVJ3.js → chunk-6MP4UBOE.js} +2 -2
  31. package/dist/{chunk-B3ACYI7T.js → chunk-6N7CL2FW.js} +2 -2
  32. package/dist/{chunk-ZM4ZOX7B.js → chunk-6OYB7OE5.js} +2 -2
  33. package/dist/{chunk-TMZVJ3SQ.js → chunk-6UWJNDPG.js} +2 -2
  34. package/dist/{chunk-FJUUNJHY.js → chunk-73MHNSF2.js} +2 -2
  35. package/dist/chunk-75SQ56WH.js +2 -0
  36. package/dist/{chunk-AHRG5QCS.js.map → chunk-75SQ56WH.js.map} +1 -1
  37. package/dist/{chunk-Z4USLCXF.js → chunk-AAFMRJIJ.js} +2 -2
  38. package/dist/{chunk-OO3VBBVN.js → chunk-AROUKJ3F.js} +2 -2
  39. package/dist/{chunk-6NTCRGOD.js → chunk-AX7YWH45.js} +2 -2
  40. package/dist/{chunk-KYNIBHVR.js → chunk-B33CFFRO.js} +2 -2
  41. package/dist/chunk-B5ZUJ3BW.js +2 -0
  42. package/dist/chunk-B5ZUJ3BW.js.map +1 -0
  43. package/dist/{chunk-EJWKMMZV.js → chunk-BJPP76IU.js} +2 -2
  44. package/dist/{chunk-CQQCOU57.js → chunk-BPHP4644.js} +2 -2
  45. package/dist/{chunk-N2MBTATE.js → chunk-BYUVUCEV.js} +2 -2
  46. package/dist/{chunk-3PKL3V6F.js → chunk-C5PA6MLW.js} +2 -2
  47. package/dist/{chunk-GQACPN6J.js → chunk-C5TVWLAX.js} +2 -2
  48. package/dist/{chunk-UG5UQ72J.js → chunk-CTARNWJJ.js} +2 -2
  49. package/dist/{chunk-ZAVH2YKN.js → chunk-D4ICAFJT.js} +2 -2
  50. package/dist/{chunk-3YS4OWE3.js → chunk-D4ZTTILZ.js} +2 -2
  51. package/dist/{chunk-X4KJVXDB.js → chunk-D53TVHHK.js} +2 -2
  52. package/dist/{chunk-TVBZT6FA.js → chunk-D6MFIXSJ.js} +2 -2
  53. package/dist/chunk-D6MFIXSJ.js.map +1 -0
  54. package/dist/{chunk-TXP3DGU6.js → chunk-DA6F2YHP.js} +2 -2
  55. package/dist/{chunk-FFOTUKBN.js → chunk-DACZVIVC.js} +2 -2
  56. package/dist/{chunk-5CYUZQSB.js → chunk-DKQBNCS2.js} +2 -2
  57. package/dist/{chunk-G7MJDZGB.js → chunk-DL5NWXSY.js} +2 -2
  58. package/dist/{chunk-24HG2Q5K.js → chunk-DPLUTCL6.js} +2 -2
  59. package/dist/{chunk-J2G2I3PX.js → chunk-DVA6ZFFO.js} +2 -2
  60. package/dist/chunk-EFL7QFFN.js +2 -0
  61. package/dist/{chunk-JXAAON7I.js.map → chunk-EFL7QFFN.js.map} +1 -1
  62. package/dist/{chunk-5FHNCDLU.js → chunk-ELOOP66L.js} +2 -2
  63. package/dist/{chunk-3JXNNFJV.js → chunk-ETHDBZ36.js} +2 -2
  64. package/dist/chunk-FBY4CWF3.js +2 -0
  65. package/dist/chunk-FBY4CWF3.js.map +1 -0
  66. package/dist/{chunk-VZEIJSTF.js → chunk-FP7WMKYE.js} +2 -2
  67. package/dist/{chunk-UBIW2GE4.js → chunk-GCYQVKEN.js} +2 -2
  68. package/dist/{chunk-RGXG3HOB.js → chunk-GJIKWHFV.js} +2 -2
  69. package/dist/{chunk-QWSAKYH4.js → chunk-GZE3PWOZ.js} +2 -2
  70. package/dist/{chunk-OVQOV5YL.js → chunk-H3U6AOLU.js} +2 -2
  71. package/dist/{chunk-ZSCJ6CT5.js → chunk-H7SQIYSJ.js} +2 -2
  72. package/dist/{chunk-MXARM6PV.js → chunk-IUSNP2RM.js} +2 -2
  73. package/dist/{chunk-LDI7E3ZK.js → chunk-IWLTCLND.js} +2 -2
  74. package/dist/{chunk-5BGNKOPP.js → chunk-JSFVJCPK.js} +2 -2
  75. package/dist/{chunk-U3PQEGSV.js → chunk-JSSCFAYO.js} +2 -2
  76. package/dist/{chunk-ED7I5OM2.js → chunk-K44B6MQA.js} +2 -2
  77. package/dist/{chunk-PX5PE6GX.js → chunk-K5RHOXWA.js} +2 -2
  78. package/dist/{chunk-PX5PE6GX.js.map → chunk-K5RHOXWA.js.map} +1 -1
  79. package/dist/{chunk-4ZMRPH3M.js → chunk-KHX2XRJF.js} +2 -2
  80. package/dist/{chunk-R4TTPUH7.js → chunk-KMANQZL4.js} +2 -2
  81. package/dist/{chunk-Q5WADFQ7.js → chunk-KUMYB3ZB.js} +2 -2
  82. package/dist/{chunk-L5SNHVLU.js → chunk-LZZVBUCD.js} +2 -2
  83. package/dist/{chunk-ZE37CBDF.js → chunk-M4RIGLB4.js} +2 -2
  84. package/dist/{chunk-4FQCB4LB.js → chunk-MNDI2GCD.js} +2 -2
  85. package/dist/chunk-MXI6VPRG.js +2 -0
  86. package/dist/{chunk-IQRJNJQ7.js.map → chunk-MXI6VPRG.js.map} +1 -1
  87. package/dist/{chunk-C7GJUNNC.js → chunk-NHLUPT2E.js} +2 -2
  88. package/dist/{chunk-PSN4ZR5Y.js → chunk-NHRV7Y2J.js} +2 -2
  89. package/dist/{chunk-DXKUARQF.js → chunk-NKVCGPK6.js} +2 -2
  90. package/dist/{chunk-VJPSDB7M.js → chunk-NLC63NKD.js} +2 -2
  91. package/dist/{chunk-DUJVDBY4.js → chunk-NQUXKKDJ.js} +2 -2
  92. package/dist/{chunk-TXSUZLOI.js → chunk-NW3D7CPK.js} +1 -1
  93. package/dist/chunk-NW3D7CPK.js.map +1 -0
  94. package/dist/{chunk-DTTE663D.js → chunk-NXSKHM4K.js} +2 -2
  95. package/dist/{chunk-242UBL3Z.js → chunk-O534T74D.js} +2 -2
  96. package/dist/{chunk-33NHO3CG.js → chunk-OO3ZIFMK.js} +2 -2
  97. package/dist/chunk-ORJZEO4M.js +2 -0
  98. package/dist/chunk-ORJZEO4M.js.map +1 -0
  99. package/dist/{chunk-U5QVIJOS.js → chunk-OVIOWKNG.js} +2 -2
  100. package/dist/{chunk-QHZPSH52.js → chunk-OXKDKDSH.js} +2 -2
  101. package/dist/{chunk-5KTF4QMV.js → chunk-OXNPFA6L.js} +2 -2
  102. package/dist/{chunk-2LUPUTP6.js → chunk-P4JZMXRV.js} +2 -2
  103. package/dist/{chunk-R63ZJMJA.js → chunk-PCNT5L6Q.js} +2 -2
  104. package/dist/{chunk-ND66GS24.js → chunk-PJPTFKXG.js} +2 -2
  105. package/dist/{chunk-CDX5QDO3.js → chunk-PWU5T5XH.js} +2 -2
  106. package/dist/{chunk-RQGYSZOO.js → chunk-QF4K5JBQ.js} +2 -2
  107. package/dist/{chunk-6PXDRES5.js → chunk-QKEC26QD.js} +2 -2
  108. package/dist/{chunk-Z4TZ527J.js → chunk-QOH4BNEZ.js} +2 -2
  109. package/dist/{chunk-XX25MIBS.js → chunk-QPAABSI5.js} +2 -2
  110. package/dist/{chunk-ZAZ24JS2.js → chunk-RCGOP7XI.js} +2 -2
  111. package/dist/{chunk-3TLNWNFZ.js → chunk-S2KYDG6K.js} +2 -2
  112. package/dist/{chunk-JFSM3EOC.js → chunk-S6FPUDIB.js} +2 -2
  113. package/dist/{chunk-K3LPVMXD.js → chunk-SIRRTEWC.js} +2 -2
  114. package/dist/{chunk-LKFGJU72.js → chunk-T2BRDPOR.js} +2 -2
  115. package/dist/{chunk-XWBNZAGY.js → chunk-TKENZ25F.js} +2 -2
  116. package/dist/{chunk-DU55JKPB.js → chunk-TLW6RBWW.js} +2 -2
  117. package/dist/{chunk-W4YDSTXA.js → chunk-TUJZUC3C.js} +2 -2
  118. package/dist/{chunk-VAYKULUJ.js → chunk-TV4OM2K6.js} +2 -2
  119. package/dist/{chunk-QWIPKY24.js → chunk-TXUUBPHA.js} +2 -2
  120. package/dist/{chunk-VLWFSFRL.js → chunk-TYMZUQP5.js} +2 -2
  121. package/dist/{chunk-VYBMEFCQ.js → chunk-UD7WWKMC.js} +2 -2
  122. package/dist/{chunk-6YBH2ELN.js → chunk-UFB5CJCQ.js} +2 -2
  123. package/dist/{chunk-5BU3CD2P.js → chunk-UGPYPGVV.js} +2 -2
  124. package/dist/{chunk-A7IG7GGK.js → chunk-UKEDOJJY.js} +2 -2
  125. package/dist/{chunk-2HREQZP4.js → chunk-VGCRMNT3.js} +2 -2
  126. package/dist/{chunk-XK24ZBGA.js → chunk-VLIF5NL3.js} +2 -2
  127. package/dist/{chunk-YPVZUXVH.js → chunk-VPCAVFRX.js} +2 -2
  128. package/dist/{chunk-VBP6CRNM.js → chunk-WGXANFZD.js} +2 -2
  129. package/dist/{chunk-IKZZOOWO.js → chunk-WH26FC23.js} +2 -2
  130. package/dist/{chunk-RS25IVTP.js → chunk-WH422OER.js} +2 -2
  131. package/dist/{chunk-IX5SV6J2.js → chunk-WQ27VHVA.js} +2 -2
  132. package/dist/{chunk-TMS24RKD.js → chunk-WWFORUHG.js} +2 -2
  133. package/dist/{chunk-OSHTXKLJ.js → chunk-XY2X6FWI.js} +2 -2
  134. package/dist/{chunk-FIVDMRET.js → chunk-YFGM5OOK.js} +2 -2
  135. package/dist/{chunk-B3KDZREG.js → chunk-YIPQZRQ7.js} +2 -2
  136. package/dist/{chunk-BQA2DJF2.js → chunk-Z3N32RAC.js} +2 -2
  137. package/dist/{chunk-4MW7KA47.js → chunk-ZLZAHVV5.js} +2 -2
  138. package/dist/{chunk-JLFYJT3K.js → chunk-ZONDSFHH.js} +2 -2
  139. package/dist/{chunk-YLHYARJK.js → chunk-ZQE3SMB2.js} +2 -2
  140. package/dist/default-components.d.ts +2 -2
  141. package/dist/default-components.js +1 -1
  142. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  143. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  144. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  145. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  146. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  147. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  148. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  149. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  150. package/dist/flows/ContractAmendment/hooks.js +1 -1
  151. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  152. package/dist/flows/ContractAmendment/index.js +1 -1
  153. package/dist/flows/ContractAmendment/types.d.ts +2 -2
  154. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  155. package/dist/flows/ContractAmendment/utils.js +1 -1
  156. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
  157. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  158. package/dist/flows/ContractorOnboarding/api.d.ts +2 -2
  159. package/dist/flows/ContractorOnboarding/api.js +1 -1
  160. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  161. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  162. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
  163. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  164. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  165. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  166. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
  167. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
  168. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  169. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
  170. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  171. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -5
  172. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  173. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  174. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  175. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
  176. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  177. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
  178. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  179. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  180. package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
  181. package/dist/flows/ContractorOnboarding/constants.d.ts +6 -0
  182. package/dist/flows/ContractorOnboarding/constants.js +1 -1
  183. package/dist/flows/ContractorOnboarding/context.d.ts +5 -5
  184. package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
  185. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  186. package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
  187. package/dist/flows/ContractorOnboarding/index.js +1 -1
  188. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -5
  189. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  190. package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
  191. package/dist/flows/ContractorOnboarding/utils.d.ts +4 -4
  192. package/dist/flows/ContractorOnboarding/utils.js +1 -1
  193. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  194. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  195. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  196. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  197. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  198. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  199. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
  200. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  201. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
  202. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
  203. package/dist/flows/CostCalculator/api.d.ts +2 -2
  204. package/dist/flows/CostCalculator/api.js +1 -1
  205. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  206. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  207. package/dist/flows/CostCalculator/context.d.ts +3 -3
  208. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  209. package/dist/flows/CostCalculator/hooks.js +1 -1
  210. package/dist/flows/CostCalculator/index.d.ts +3 -3
  211. package/dist/flows/CostCalculator/index.js +1 -1
  212. package/dist/flows/CostCalculator/types.d.ts +2 -2
  213. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  214. package/dist/flows/CostCalculator/utils.js +1 -1
  215. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  216. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  217. package/dist/flows/CreateCompany/api.d.ts +2 -2
  218. package/dist/flows/CreateCompany/api.js +1 -1
  219. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  220. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  221. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  222. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  223. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  224. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  225. package/dist/flows/CreateCompany/context.d.ts +4 -4
  226. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  227. package/dist/flows/CreateCompany/hooks.js +1 -1
  228. package/dist/flows/CreateCompany/index.d.ts +4 -4
  229. package/dist/flows/CreateCompany/index.js +1 -1
  230. package/dist/flows/CreateCompany/types.d.ts +4 -4
  231. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  232. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  233. package/dist/flows/Onboarding/api.d.ts +4 -4
  234. package/dist/flows/Onboarding/api.js +1 -1
  235. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  236. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  237. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  238. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  239. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  240. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  241. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  242. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  243. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +4 -4
  244. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  245. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  246. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  247. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  248. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  249. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  250. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  251. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  252. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  253. package/dist/flows/Onboarding/context.d.ts +4 -4
  254. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  255. package/dist/flows/Onboarding/hooks.js +1 -1
  256. package/dist/flows/Onboarding/index.d.ts +4 -4
  257. package/dist/flows/Onboarding/index.js +1 -1
  258. package/dist/flows/Onboarding/types.d.ts +4 -4
  259. package/dist/flows/Onboarding/utils.d.ts +4 -4
  260. package/dist/flows/Onboarding/utils.js +1 -1
  261. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  262. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  263. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  264. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  265. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  266. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  267. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  268. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  269. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  270. package/dist/flows/Termination/TerminationFlow.js +1 -1
  271. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  272. package/dist/flows/Termination/TerminationForm.js +1 -1
  273. package/dist/flows/Termination/api.d.ts +5 -5
  274. package/dist/flows/Termination/api.js +1 -1
  275. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
  276. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  277. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  278. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  279. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  280. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  281. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  282. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  283. package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
  284. package/dist/flows/Termination/context.d.ts +4 -4
  285. package/dist/flows/Termination/hooks.d.ts +4 -4
  286. package/dist/flows/Termination/hooks.js +1 -1
  287. package/dist/flows/Termination/index.d.ts +6 -6
  288. package/dist/flows/Termination/index.js +1 -1
  289. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  290. package/dist/flows/Termination/types.d.ts +4 -4
  291. package/dist/flows/Termination/utils.d.ts +4 -4
  292. package/dist/flows/Termination/utils.js +1 -1
  293. package/dist/flows/types.d.ts +2 -2
  294. package/dist/flows/utils.d.ts +2 -2
  295. package/dist/index.d.ts +11 -11
  296. package/dist/index.js +2 -2
  297. package/dist/internals.d.ts +3 -3
  298. package/dist/internals.js +1 -1
  299. package/dist/{mutations-tMusyGqR.d.ts → mutations-5jtxzMHI.d.ts} +1 -1
  300. package/dist/{remoteFlows-1ODSR6M5.d.ts → remoteFlows-D20C-bbv.d.ts} +1 -1
  301. package/dist/{types-CY31SALf.d.ts → types-BF8TR6q-.d.ts} +1 -1
  302. package/dist/{types-B3ZY2CHC.d.ts → types-D3RLWSIc.d.ts} +2 -2
  303. package/dist/{types-BADwm0IP.d.ts → types-DXcPPAIH.d.ts} +4 -4
  304. package/dist/{types-BdaVhuNW.d.ts → types-YWOtp-jl.d.ts} +3 -3
  305. package/dist/{types-B3zSOF4R.d.ts → types-iHnxMh8R.d.ts} +3 -3
  306. package/dist/{types.gen-D39CBKLR.d.ts → types.gen-SftwpQjb.d.ts} +1 -1
  307. package/dist/{utils-BwkOqPg_.d.ts → utils-CGGtw1aC.d.ts} +1 -1
  308. package/package.json +2 -2
  309. package/dist/ButtonDefault-CB27KWFN.js +0 -2
  310. package/dist/CheckboxFieldDefault-5NZEGPA6.js +0 -2
  311. package/dist/CountryFieldDefault-GP2S2KN6.js +0 -2
  312. package/dist/DatePickerFieldDefault-KN4COEEO.js +0 -2
  313. package/dist/DrawerDefault-JR6422D5.js +0 -2
  314. package/dist/EmailFieldDefault-XSAEEKK7.js +0 -2
  315. package/dist/FieldsetToggleButtonDefault-OQ7J2T3G.js +0 -2
  316. package/dist/FileUploadFieldDefault-5VQDJWZV.js +0 -2
  317. package/dist/MultiSelectFieldDefault-BORNPHNW.js +0 -2
  318. package/dist/NumberFieldDefault-PRI6IHOZ.js +0 -2
  319. package/dist/RadioGroupFieldDefault-L3CZN2ZT.js +0 -2
  320. package/dist/SelectFieldDefault-EV5QGUX6.js +0 -2
  321. package/dist/StatementDefault-WKRJDBC7.js +0 -2
  322. package/dist/TableFieldDefault-75LWJ2E3.js +0 -2
  323. package/dist/TelFieldDefault-M5LDQMIK.js +0 -2
  324. package/dist/TextAreaFieldDefault-YKBNDA4U.js +0 -2
  325. package/dist/TextFieldDefault-RCZYNB3Z.js +0 -2
  326. package/dist/WorkScheduleFieldDefault-XLAFRZX2.js +0 -2
  327. package/dist/ZendeskDrawerDefault-NQP7CBPW.js +0 -2
  328. package/dist/chunk-AHRG5QCS.js +0 -2
  329. package/dist/chunk-G247NY7P.js +0 -2
  330. package/dist/chunk-G247NY7P.js.map +0 -1
  331. package/dist/chunk-IQRJNJQ7.js +0 -2
  332. package/dist/chunk-JXAAON7I.js +0 -2
  333. package/dist/chunk-PMAIML44.js +0 -2
  334. package/dist/chunk-PMAIML44.js.map +0 -1
  335. package/dist/chunk-T35SZZ74.js +0 -2
  336. package/dist/chunk-T35SZZ74.js.map +0 -1
  337. package/dist/chunk-TVBZT6FA.js.map +0 -1
  338. package/dist/chunk-TXSUZLOI.js.map +0 -1
  339. /package/dist/{ButtonDefault-CB27KWFN.js.map → ButtonDefault-4W4M55VE.js.map} +0 -0
  340. /package/dist/{CheckboxFieldDefault-5NZEGPA6.js.map → CheckboxFieldDefault-2VCAKWLA.js.map} +0 -0
  341. /package/dist/{CountryFieldDefault-GP2S2KN6.js.map → CountryFieldDefault-DCHHKYYJ.js.map} +0 -0
  342. /package/dist/{DatePickerFieldDefault-KN4COEEO.js.map → DatePickerFieldDefault-NODTGDNL.js.map} +0 -0
  343. /package/dist/{DrawerDefault-JR6422D5.js.map → DrawerDefault-VMG6FKCD.js.map} +0 -0
  344. /package/dist/{EmailFieldDefault-XSAEEKK7.js.map → EmailFieldDefault-INNDIQML.js.map} +0 -0
  345. /package/dist/{FieldsetToggleButtonDefault-OQ7J2T3G.js.map → FieldsetToggleButtonDefault-2YKED23M.js.map} +0 -0
  346. /package/dist/{FileUploadFieldDefault-5VQDJWZV.js.map → FileUploadFieldDefault-AGLKTUCJ.js.map} +0 -0
  347. /package/dist/{MultiSelectFieldDefault-BORNPHNW.js.map → MultiSelectFieldDefault-OTNIDC2Q.js.map} +0 -0
  348. /package/dist/{NumberFieldDefault-PRI6IHOZ.js.map → NumberFieldDefault-QLW7EZ4R.js.map} +0 -0
  349. /package/dist/{RadioGroupFieldDefault-L3CZN2ZT.js.map → RadioGroupFieldDefault-ZX4Z2EVK.js.map} +0 -0
  350. /package/dist/{SelectFieldDefault-EV5QGUX6.js.map → SelectFieldDefault-SNTI7KXR.js.map} +0 -0
  351. /package/dist/{StatementDefault-WKRJDBC7.js.map → StatementDefault-YBHPHVCI.js.map} +0 -0
  352. /package/dist/{TableFieldDefault-75LWJ2E3.js.map → TableFieldDefault-XTCTKLLJ.js.map} +0 -0
  353. /package/dist/{TelFieldDefault-M5LDQMIK.js.map → TelFieldDefault-POAPMI5W.js.map} +0 -0
  354. /package/dist/{TextAreaFieldDefault-YKBNDA4U.js.map → TextAreaFieldDefault-JOSXKY6O.js.map} +0 -0
  355. /package/dist/{TextFieldDefault-RCZYNB3Z.js.map → TextFieldDefault-7HSHPHOF.js.map} +0 -0
  356. /package/dist/{WorkScheduleFieldDefault-XLAFRZX2.js.map → WorkScheduleFieldDefault-6NNTPTZ6.js.map} +0 -0
  357. /package/dist/{ZendeskDrawerDefault-NQP7CBPW.js.map → ZendeskDrawerDefault-ILQM2VEO.js.map} +0 -0
  358. /package/dist/{chunk-N5DHVRQR.js.map → chunk-23HL6DQK.js.map} +0 -0
  359. /package/dist/{chunk-CFCUY6VA.js.map → chunk-2K4N6RPD.js.map} +0 -0
  360. /package/dist/{chunk-NN2HUS43.js.map → chunk-2PKH6744.js.map} +0 -0
  361. /package/dist/{chunk-Y7NFXPZ2.js.map → chunk-3BNHBFVL.js.map} +0 -0
  362. /package/dist/{chunk-XWZP4WYZ.js.map → chunk-3THSAI2N.js.map} +0 -0
  363. /package/dist/{chunk-Q5RU76HN.js.map → chunk-4T66UEMY.js.map} +0 -0
  364. /package/dist/{chunk-QYLLXHLO.js.map → chunk-547SAUNX.js.map} +0 -0
  365. /package/dist/{chunk-NZXVTXZY.js.map → chunk-6BPEPQ3C.js.map} +0 -0
  366. /package/dist/{chunk-2IIHA7AA.js.map → chunk-6D5IHLXV.js.map} +0 -0
  367. /package/dist/{chunk-G6E7F6VD.js.map → chunk-6J2NNZFD.js.map} +0 -0
  368. /package/dist/{chunk-CMPHQVJ3.js.map → chunk-6MP4UBOE.js.map} +0 -0
  369. /package/dist/{chunk-B3ACYI7T.js.map → chunk-6N7CL2FW.js.map} +0 -0
  370. /package/dist/{chunk-ZM4ZOX7B.js.map → chunk-6OYB7OE5.js.map} +0 -0
  371. /package/dist/{chunk-TMZVJ3SQ.js.map → chunk-6UWJNDPG.js.map} +0 -0
  372. /package/dist/{chunk-FJUUNJHY.js.map → chunk-73MHNSF2.js.map} +0 -0
  373. /package/dist/{chunk-Z4USLCXF.js.map → chunk-AAFMRJIJ.js.map} +0 -0
  374. /package/dist/{chunk-OO3VBBVN.js.map → chunk-AROUKJ3F.js.map} +0 -0
  375. /package/dist/{chunk-6NTCRGOD.js.map → chunk-AX7YWH45.js.map} +0 -0
  376. /package/dist/{chunk-KYNIBHVR.js.map → chunk-B33CFFRO.js.map} +0 -0
  377. /package/dist/{chunk-EJWKMMZV.js.map → chunk-BJPP76IU.js.map} +0 -0
  378. /package/dist/{chunk-CQQCOU57.js.map → chunk-BPHP4644.js.map} +0 -0
  379. /package/dist/{chunk-N2MBTATE.js.map → chunk-BYUVUCEV.js.map} +0 -0
  380. /package/dist/{chunk-3PKL3V6F.js.map → chunk-C5PA6MLW.js.map} +0 -0
  381. /package/dist/{chunk-GQACPN6J.js.map → chunk-C5TVWLAX.js.map} +0 -0
  382. /package/dist/{chunk-UG5UQ72J.js.map → chunk-CTARNWJJ.js.map} +0 -0
  383. /package/dist/{chunk-ZAVH2YKN.js.map → chunk-D4ICAFJT.js.map} +0 -0
  384. /package/dist/{chunk-3YS4OWE3.js.map → chunk-D4ZTTILZ.js.map} +0 -0
  385. /package/dist/{chunk-X4KJVXDB.js.map → chunk-D53TVHHK.js.map} +0 -0
  386. /package/dist/{chunk-TXP3DGU6.js.map → chunk-DA6F2YHP.js.map} +0 -0
  387. /package/dist/{chunk-FFOTUKBN.js.map → chunk-DACZVIVC.js.map} +0 -0
  388. /package/dist/{chunk-5CYUZQSB.js.map → chunk-DKQBNCS2.js.map} +0 -0
  389. /package/dist/{chunk-G7MJDZGB.js.map → chunk-DL5NWXSY.js.map} +0 -0
  390. /package/dist/{chunk-24HG2Q5K.js.map → chunk-DPLUTCL6.js.map} +0 -0
  391. /package/dist/{chunk-J2G2I3PX.js.map → chunk-DVA6ZFFO.js.map} +0 -0
  392. /package/dist/{chunk-5FHNCDLU.js.map → chunk-ELOOP66L.js.map} +0 -0
  393. /package/dist/{chunk-3JXNNFJV.js.map → chunk-ETHDBZ36.js.map} +0 -0
  394. /package/dist/{chunk-VZEIJSTF.js.map → chunk-FP7WMKYE.js.map} +0 -0
  395. /package/dist/{chunk-UBIW2GE4.js.map → chunk-GCYQVKEN.js.map} +0 -0
  396. /package/dist/{chunk-RGXG3HOB.js.map → chunk-GJIKWHFV.js.map} +0 -0
  397. /package/dist/{chunk-QWSAKYH4.js.map → chunk-GZE3PWOZ.js.map} +0 -0
  398. /package/dist/{chunk-OVQOV5YL.js.map → chunk-H3U6AOLU.js.map} +0 -0
  399. /package/dist/{chunk-ZSCJ6CT5.js.map → chunk-H7SQIYSJ.js.map} +0 -0
  400. /package/dist/{chunk-MXARM6PV.js.map → chunk-IUSNP2RM.js.map} +0 -0
  401. /package/dist/{chunk-LDI7E3ZK.js.map → chunk-IWLTCLND.js.map} +0 -0
  402. /package/dist/{chunk-5BGNKOPP.js.map → chunk-JSFVJCPK.js.map} +0 -0
  403. /package/dist/{chunk-U3PQEGSV.js.map → chunk-JSSCFAYO.js.map} +0 -0
  404. /package/dist/{chunk-ED7I5OM2.js.map → chunk-K44B6MQA.js.map} +0 -0
  405. /package/dist/{chunk-4ZMRPH3M.js.map → chunk-KHX2XRJF.js.map} +0 -0
  406. /package/dist/{chunk-R4TTPUH7.js.map → chunk-KMANQZL4.js.map} +0 -0
  407. /package/dist/{chunk-Q5WADFQ7.js.map → chunk-KUMYB3ZB.js.map} +0 -0
  408. /package/dist/{chunk-L5SNHVLU.js.map → chunk-LZZVBUCD.js.map} +0 -0
  409. /package/dist/{chunk-ZE37CBDF.js.map → chunk-M4RIGLB4.js.map} +0 -0
  410. /package/dist/{chunk-4FQCB4LB.js.map → chunk-MNDI2GCD.js.map} +0 -0
  411. /package/dist/{chunk-C7GJUNNC.js.map → chunk-NHLUPT2E.js.map} +0 -0
  412. /package/dist/{chunk-PSN4ZR5Y.js.map → chunk-NHRV7Y2J.js.map} +0 -0
  413. /package/dist/{chunk-DXKUARQF.js.map → chunk-NKVCGPK6.js.map} +0 -0
  414. /package/dist/{chunk-VJPSDB7M.js.map → chunk-NLC63NKD.js.map} +0 -0
  415. /package/dist/{chunk-DUJVDBY4.js.map → chunk-NQUXKKDJ.js.map} +0 -0
  416. /package/dist/{chunk-DTTE663D.js.map → chunk-NXSKHM4K.js.map} +0 -0
  417. /package/dist/{chunk-242UBL3Z.js.map → chunk-O534T74D.js.map} +0 -0
  418. /package/dist/{chunk-33NHO3CG.js.map → chunk-OO3ZIFMK.js.map} +0 -0
  419. /package/dist/{chunk-U5QVIJOS.js.map → chunk-OVIOWKNG.js.map} +0 -0
  420. /package/dist/{chunk-QHZPSH52.js.map → chunk-OXKDKDSH.js.map} +0 -0
  421. /package/dist/{chunk-5KTF4QMV.js.map → chunk-OXNPFA6L.js.map} +0 -0
  422. /package/dist/{chunk-2LUPUTP6.js.map → chunk-P4JZMXRV.js.map} +0 -0
  423. /package/dist/{chunk-R63ZJMJA.js.map → chunk-PCNT5L6Q.js.map} +0 -0
  424. /package/dist/{chunk-ND66GS24.js.map → chunk-PJPTFKXG.js.map} +0 -0
  425. /package/dist/{chunk-CDX5QDO3.js.map → chunk-PWU5T5XH.js.map} +0 -0
  426. /package/dist/{chunk-RQGYSZOO.js.map → chunk-QF4K5JBQ.js.map} +0 -0
  427. /package/dist/{chunk-6PXDRES5.js.map → chunk-QKEC26QD.js.map} +0 -0
  428. /package/dist/{chunk-Z4TZ527J.js.map → chunk-QOH4BNEZ.js.map} +0 -0
  429. /package/dist/{chunk-XX25MIBS.js.map → chunk-QPAABSI5.js.map} +0 -0
  430. /package/dist/{chunk-ZAZ24JS2.js.map → chunk-RCGOP7XI.js.map} +0 -0
  431. /package/dist/{chunk-3TLNWNFZ.js.map → chunk-S2KYDG6K.js.map} +0 -0
  432. /package/dist/{chunk-JFSM3EOC.js.map → chunk-S6FPUDIB.js.map} +0 -0
  433. /package/dist/{chunk-K3LPVMXD.js.map → chunk-SIRRTEWC.js.map} +0 -0
  434. /package/dist/{chunk-LKFGJU72.js.map → chunk-T2BRDPOR.js.map} +0 -0
  435. /package/dist/{chunk-XWBNZAGY.js.map → chunk-TKENZ25F.js.map} +0 -0
  436. /package/dist/{chunk-DU55JKPB.js.map → chunk-TLW6RBWW.js.map} +0 -0
  437. /package/dist/{chunk-W4YDSTXA.js.map → chunk-TUJZUC3C.js.map} +0 -0
  438. /package/dist/{chunk-VAYKULUJ.js.map → chunk-TV4OM2K6.js.map} +0 -0
  439. /package/dist/{chunk-QWIPKY24.js.map → chunk-TXUUBPHA.js.map} +0 -0
  440. /package/dist/{chunk-VLWFSFRL.js.map → chunk-TYMZUQP5.js.map} +0 -0
  441. /package/dist/{chunk-VYBMEFCQ.js.map → chunk-UD7WWKMC.js.map} +0 -0
  442. /package/dist/{chunk-6YBH2ELN.js.map → chunk-UFB5CJCQ.js.map} +0 -0
  443. /package/dist/{chunk-5BU3CD2P.js.map → chunk-UGPYPGVV.js.map} +0 -0
  444. /package/dist/{chunk-A7IG7GGK.js.map → chunk-UKEDOJJY.js.map} +0 -0
  445. /package/dist/{chunk-2HREQZP4.js.map → chunk-VGCRMNT3.js.map} +0 -0
  446. /package/dist/{chunk-XK24ZBGA.js.map → chunk-VLIF5NL3.js.map} +0 -0
  447. /package/dist/{chunk-YPVZUXVH.js.map → chunk-VPCAVFRX.js.map} +0 -0
  448. /package/dist/{chunk-VBP6CRNM.js.map → chunk-WGXANFZD.js.map} +0 -0
  449. /package/dist/{chunk-IKZZOOWO.js.map → chunk-WH26FC23.js.map} +0 -0
  450. /package/dist/{chunk-RS25IVTP.js.map → chunk-WH422OER.js.map} +0 -0
  451. /package/dist/{chunk-IX5SV6J2.js.map → chunk-WQ27VHVA.js.map} +0 -0
  452. /package/dist/{chunk-TMS24RKD.js.map → chunk-WWFORUHG.js.map} +0 -0
  453. /package/dist/{chunk-OSHTXKLJ.js.map → chunk-XY2X6FWI.js.map} +0 -0
  454. /package/dist/{chunk-FIVDMRET.js.map → chunk-YFGM5OOK.js.map} +0 -0
  455. /package/dist/{chunk-B3KDZREG.js.map → chunk-YIPQZRQ7.js.map} +0 -0
  456. /package/dist/{chunk-BQA2DJF2.js.map → chunk-Z3N32RAC.js.map} +0 -0
  457. /package/dist/{chunk-4MW7KA47.js.map → chunk-ZLZAHVV5.js.map} +0 -0
  458. /package/dist/{chunk-JLFYJT3K.js.map → chunk-ZONDSFHH.js.map} +0 -0
  459. /package/dist/{chunk-YLHYARJK.js.map → chunk-ZQE3SMB2.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-S2KYDG6K.js";import"./chunk-KMANQZL4.js";import"./chunk-EFL7QFFN.js";import"./chunk-P37U34EQ.js";export{a as ButtonDefault};
2
+ //# sourceMappingURL=ButtonDefault-4W4M55VE.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-2K4N6RPD.js";import"./chunk-NKVCGPK6.js";import"./chunk-NHLUPT2E.js";import"./chunk-TUJZUC3C.js";import"./chunk-UGPYPGVV.js";import"./chunk-ER46UFIU.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CheckboxFieldDefault};
2
+ //# sourceMappingURL=CheckboxFieldDefault-2VCAKWLA.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-ELOOP66L.js";import"./chunk-IWLTCLND.js";import"./chunk-WQ27VHVA.js";import"./chunk-O534T74D.js";import"./chunk-KHX2XRJF.js";import"./chunk-NHLUPT2E.js";import"./chunk-KMANQZL4.js";import"./chunk-TUJZUC3C.js";import"./chunk-UGPYPGVV.js";import"./chunk-ER46UFIU.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CountryFieldDefault};
2
+ //# sourceMappingURL=CountryFieldDefault-DCHHKYYJ.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-6MP4UBOE.js";import"./chunk-WQ27VHVA.js";import"./chunk-NHLUPT2E.js";import"./chunk-KMANQZL4.js";import"./chunk-TUJZUC3C.js";import"./chunk-UGPYPGVV.js";import"./chunk-ER46UFIU.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as DatePickerFieldDefault};
2
+ //# sourceMappingURL=DatePickerFieldDefault-NODTGDNL.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-YFGM5OOK.js";import"./chunk-GZE3PWOZ.js";import"./chunk-EFL7QFFN.js";import"./chunk-P37U34EQ.js";export{a as DrawerDefault};
2
+ //# sourceMappingURL=DrawerDefault-VMG6FKCD.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-4T66UEMY.js";import"./chunk-ZLZAHVV5.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as EmailFieldDefault};
2
+ //# sourceMappingURL=EmailFieldDefault-INNDIQML.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-C5TVWLAX.js";import"./chunk-KMANQZL4.js";import"./chunk-EFL7QFFN.js";import"./chunk-P37U34EQ.js";export{a as FieldsetToggleButtonDefault};
2
+ //# sourceMappingURL=FieldsetToggleButtonDefault-2YKED23M.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-547SAUNX.js";import"./chunk-GJIKWHFV.js";import"./chunk-KMANQZL4.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as FileUploadFieldDefault};
2
+ //# sourceMappingURL=FileUploadFieldDefault-AGLKTUCJ.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-DPLUTCL6.js";import"./chunk-IWLTCLND.js";import"./chunk-WQ27VHVA.js";import"./chunk-O534T74D.js";import"./chunk-KHX2XRJF.js";import"./chunk-KMANQZL4.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as MultiSelectFieldDefault};
2
+ //# sourceMappingURL=MultiSelectFieldDefault-OTNIDC2Q.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-WWFORUHG.js";import"./chunk-ZLZAHVV5.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as NumberFieldDefault};
2
+ //# sourceMappingURL=NumberFieldDefault-QLW7EZ4R.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-T2BRDPOR.js";import"./chunk-TKENZ25F.js";import"./chunk-KHX2XRJF.js";import"./chunk-NHLUPT2E.js";import"./chunk-TUJZUC3C.js";import"./chunk-UGPYPGVV.js";import"./chunk-ER46UFIU.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as RadioGroupFieldDefault};
2
+ //# sourceMappingURL=RadioGroupFieldDefault-ZX4Z2EVK.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-TXUUBPHA.js";import"./chunk-K44B6MQA.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as SelectFieldDefault};
2
+ //# sourceMappingURL=SelectFieldDefault-SNTI7KXR.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-6UWJNDPG.js";import"./chunk-KUMYB3ZB.js";import"./chunk-EFL7QFFN.js";import"./chunk-P37U34EQ.js";export{a as StatementDefault};
2
+ //# sourceMappingURL=StatementDefault-YBHPHVCI.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-UFB5CJCQ.js";import"./chunk-EFL7QFFN.js";import"./chunk-P37U34EQ.js";export{a as TableFieldDefault};
2
+ //# sourceMappingURL=TableFieldDefault-XTCTKLLJ.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-2PKH6744.js";import"./chunk-YIPQZRQ7.js";import"./chunk-K44B6MQA.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TelFieldDefault};
2
+ //# sourceMappingURL=TelFieldDefault-POAPMI5W.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-XY2X6FWI.js";import"./chunk-NHLUPT2E.js";import"./chunk-TUJZUC3C.js";import"./chunk-UGPYPGVV.js";import"./chunk-ER46UFIU.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TextAreaFieldDefault};
2
+ //# sourceMappingURL=TextAreaFieldDefault-JOSXKY6O.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-NLC63NKD.js";import"./chunk-YIPQZRQ7.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TextFieldDefault};
2
+ //# sourceMappingURL=TextFieldDefault-7HSHPHOF.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-H3U6AOLU.js";import"./chunk-O534T74D.js";import"./chunk-Z3N32RAC.js";import"./chunk-KMANQZL4.js";import"./chunk-ZLZAHVV5.js";import"./chunk-UGPYPGVV.js";import"./chunk-EFL7QFFN.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as WorkScheduleFieldDefault};
2
+ //# sourceMappingURL=WorkScheduleFieldDefault-6NNTPTZ6.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-6OYB7OE5.js";import"./chunk-GZE3PWOZ.js";import"./chunk-EFL7QFFN.js";import"./chunk-P37U34EQ.js";export{a as ZendeskDrawerDefault};
2
+ //# sourceMappingURL=ZendeskDrawerDefault-ILQM2VEO.js.map
@@ -1,2 +1,2 @@
1
- import{b as v}from"./chunk-TXSUZLOI.js";import{a as I}from"./chunk-A3LRPGV3.js";import{a as N,b as j,c as D,d as O}from"./chunk-ZAZ24JS2.js";import{b as C,h as p,i as b,u as R,v as F}from"./chunk-JXAAON7I.js";import{a as k}from"./chunk-JDIKYCN6.js";import{a as c}from"./chunk-P37U34EQ.js";import{useMemo as S,useRef as ee,useState as A}from"react";var pe=c(({countryCode:L,options:u,initialValues:l})=>{let P=N(),g=j(),{mutateAsync:q}=C(P),{mutateAsync:J}=C(g),[y,U]=A(L||null),[f,B]=A(null),w=ee({company_basic_information:{},address_details:{}}),{fieldValues:V,stepState:a,setFieldValues:W,previousStep:z,nextStep:G,goToStep:H}=k(I),{companyBasicInformationForm:d,isLoading:K}=D({jsfModify:u?.jsfModify?.company_basic_information,queryOptions:{enabled:a.currentStep.name==="company_basic_information"}}),{data:s,isLoading:Q}=O({countryCode:y,fieldValues:a.currentStep.name==="address_details"?{...a.values?.address_details||{},...V}:a.values?.address_details||{},options:{...u,jsfModify:u?.jsfModify?.address_details,queryOptions:{enabled:a.currentStep.name==="address_details"&&!!y&&!!f}}}),i=S(()=>({company_basic_information:d?.fields||[],address_details:s?.fields||[]}),[d?.fields,s?.fields]),X={company_basic_information:null,address_details:s?.meta?.["x-jsf-fieldsets"]||null},h=S(()=>b(i.company_basic_information,{...l,country_code:y||l?.country_code||""}),[i.company_basic_information,y,l]),E=S(()=>b(i.address_details,l||{}),[i.address_details,l]),Y=S(()=>({company_basic_information:h,address_details:E}),[h,E]),Z=c(o=>{H(o)},"goTo"),M=c(async o=>{let r=a.currentStep.name,e=i[r];return d&&r==="company_basic_information"?await p(o,e,{isPartialValidation:!1}):s&&r==="address_details"?await p(o,e,{isPartialValidation:!1}):{}},"parseFormValues");async function $(o){let r=a.currentStep.name,e=await M(o);switch(r in w.current&&(w.current[r]=R(e,i[r])),a.currentStep.name){case"company_basic_information":{if(U(e.country_code),f)return Promise.resolve({data:{countryCode:e.country_code??"",companyOwnerEmail:e.company_owner_email??"",companyOwnerName:e.company_owner_name??"",desiredCurrency:e.desired_currency??"",name:e.name??"",phoneNumber:e.phone_number??"",taxNumber:e.tax_number??""}});let x={country_code:e.country_code,company_owner_email:e.company_owner_email,company_owner_name:e.company_owner_name,desired_currency:e.desired_currency,name:e.name,phone_number:e.phone_number,tax_number:e.tax_number,terms_of_service_accepted_at:v()},n=await q(x);if(n.error)return Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors});let m=n.data?.data,_,t;if(m)if("data"in m&&m.data){let T=m.data.company;t=T,_=T?.id}else"company"in m&&(t=m.company,_=t?.id);return _&&B(_),Promise.resolve({data:{countryCode:t?.country_code??e.country_code??"",companyOwnerEmail:t?.company_owner_email??e.company_owner_email??"",companyOwnerName:t?.company_owner_name??e.company_owner_name??"",desiredCurrency:t?.desired_currency??e.desired_currency??"",name:t?.name??e.name??"",phoneNumber:t?.phone_number??e.phone_number??"",taxNumber:t?.tax_number??e.tax_number??""}})}case"address_details":{if(!f)throw F("Company ID is required to update address details");let n=await J({companyId:f,payload:{address_details:e},jsonSchemaVersion:u?.jsonSchemaVersion?.form_schema?.address_details});return n.error?Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors}):Promise.resolve({data:n.data})}default:throw F("Invalid step state")}}return c($,"onSubmit"),{isLoading:K||Q,isSubmitting:P.isPending||g.isPending,fieldValues:V,stepState:a,checkFieldUpdates:W,back:z,next:G,goTo:Z,onSubmit:$,fields:i[a.currentStep.name],meta:{fields:w.current,fieldsets:X[a.currentStep.name]},parseFormValues:M,handleValidation:c(async o=>{if(a.currentStep.name==="company_basic_information"&&d){let r=await p(o,d.fields,{isPartialValidation:!1});return d.handleValidation(r)}if(a.currentStep.name==="address_details"&&s){let r=await p(o,s.fields,{isPartialValidation:!1});return s.handleValidation(r)}return null},"handleValidation"),initialValues:Y}},"useCreateCompany");export{pe as a};
2
- //# sourceMappingURL=chunk-N5DHVRQR.js.map
1
+ import{a as I}from"./chunk-A3LRPGV3.js";import{b as v}from"./chunk-NW3D7CPK.js";import{a as N,b as j,c as D,d as O}from"./chunk-RCGOP7XI.js";import{b as C,h as p,i as b,u as R,v as F}from"./chunk-EFL7QFFN.js";import{a as k}from"./chunk-JDIKYCN6.js";import{a as c}from"./chunk-P37U34EQ.js";import{useMemo as S,useRef as ee,useState as A}from"react";var pe=c(({countryCode:L,options:u,initialValues:l})=>{let P=N(),g=j(),{mutateAsync:q}=C(P),{mutateAsync:J}=C(g),[y,U]=A(L||null),[f,B]=A(null),w=ee({company_basic_information:{},address_details:{}}),{fieldValues:V,stepState:a,setFieldValues:W,previousStep:z,nextStep:G,goToStep:H}=k(I),{companyBasicInformationForm:d,isLoading:K}=D({jsfModify:u?.jsfModify?.company_basic_information,queryOptions:{enabled:a.currentStep.name==="company_basic_information"}}),{data:s,isLoading:Q}=O({countryCode:y,fieldValues:a.currentStep.name==="address_details"?{...a.values?.address_details||{},...V}:a.values?.address_details||{},options:{...u,jsfModify:u?.jsfModify?.address_details,queryOptions:{enabled:a.currentStep.name==="address_details"&&!!y&&!!f}}}),i=S(()=>({company_basic_information:d?.fields||[],address_details:s?.fields||[]}),[d?.fields,s?.fields]),X={company_basic_information:null,address_details:s?.meta?.["x-jsf-fieldsets"]||null},h=S(()=>b(i.company_basic_information,{...l,country_code:y||l?.country_code||""}),[i.company_basic_information,y,l]),E=S(()=>b(i.address_details,l||{}),[i.address_details,l]),Y=S(()=>({company_basic_information:h,address_details:E}),[h,E]),Z=c(o=>{H(o)},"goTo"),M=c(async o=>{let r=a.currentStep.name,e=i[r];return d&&r==="company_basic_information"?await p(o,e,{isPartialValidation:!1}):s&&r==="address_details"?await p(o,e,{isPartialValidation:!1}):{}},"parseFormValues");async function $(o){let r=a.currentStep.name,e=await M(o);switch(r in w.current&&(w.current[r]=R(e,i[r])),a.currentStep.name){case"company_basic_information":{if(U(e.country_code),f)return Promise.resolve({data:{countryCode:e.country_code??"",companyOwnerEmail:e.company_owner_email??"",companyOwnerName:e.company_owner_name??"",desiredCurrency:e.desired_currency??"",name:e.name??"",phoneNumber:e.phone_number??"",taxNumber:e.tax_number??""}});let x={country_code:e.country_code,company_owner_email:e.company_owner_email,company_owner_name:e.company_owner_name,desired_currency:e.desired_currency,name:e.name,phone_number:e.phone_number,tax_number:e.tax_number,terms_of_service_accepted_at:v()},n=await q(x);if(n.error)return Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors});let m=n.data?.data,_,t;if(m)if("data"in m&&m.data){let T=m.data.company;t=T,_=T?.id}else"company"in m&&(t=m.company,_=t?.id);return _&&B(_),Promise.resolve({data:{countryCode:t?.country_code??e.country_code??"",companyOwnerEmail:t?.company_owner_email??e.company_owner_email??"",companyOwnerName:t?.company_owner_name??e.company_owner_name??"",desiredCurrency:t?.desired_currency??e.desired_currency??"",name:t?.name??e.name??"",phoneNumber:t?.phone_number??e.phone_number??"",taxNumber:t?.tax_number??e.tax_number??""}})}case"address_details":{if(!f)throw F("Company ID is required to update address details");let n=await J({companyId:f,payload:{address_details:e},jsonSchemaVersion:u?.jsonSchemaVersion?.form_schema?.address_details});return n.error?Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors}):Promise.resolve({data:n.data})}default:throw F("Invalid step state")}}return c($,"onSubmit"),{isLoading:K||Q,isSubmitting:P.isPending||g.isPending,fieldValues:V,stepState:a,checkFieldUpdates:W,back:z,next:G,goTo:Z,onSubmit:$,fields:i[a.currentStep.name],meta:{fields:w.current,fieldsets:X[a.currentStep.name]},parseFormValues:M,handleValidation:c(async o=>{if(a.currentStep.name==="company_basic_information"&&d){let r=await p(o,d.fields,{isPartialValidation:!1});return d.handleValidation(r)}if(a.currentStep.name==="address_details"&&s){let r=await p(o,s.fields,{isPartialValidation:!1});return s.handleValidation(r)}return null},"handleValidation"),initialValues:Y}},"useCreateCompany");export{pe as a};
2
+ //# sourceMappingURL=chunk-23HL6DQK.js.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-DXKUARQF.js";import{a as k}from"./chunk-C7GJUNNC.js";import{j as p,k as a,l as d,n as i,o as u}from"./chunk-5BU3CD2P.js";import{n as _}from"./chunk-JXAAON7I.js";import{a as F}from"./chunk-P37U34EQ.js";import{Fragment as x,jsx as e,jsxs as r}from"react/jsx-runtime";var w=F(({field:l,fieldState:b,fieldData:s})=>{let{name:m,label:n,description:C,options:t,multiple:h}=s;return r(p,{"data-field":m,className:_(`RemoteFlows__CheckBoxField__Item__${m}`),children:[e(d,{children:r(x,{children:[t&&h?e(a,{children:n}):null,t&&h?t.map(o=>r("div",{className:"flex space-x-2",children:[e(c,{id:o.value,onCheckedChange:v=>{l.onChange(v===!0,o.value)},checked:l.value?.includes(o.value),className:"RemoteFlows__CheckBox__Input"}),e(a,{htmlFor:o.value,className:"mb-0 RemoteFlows__CheckBox__Label",children:o.label})]},o.value)):r("div",{className:"flex space-x-2",children:[e(c,{id:m,onCheckedChange:o=>{l.onChange(o===!0,null)},checked:l.value,className:"RemoteFlows__CheckBox__Input"}),e(a,{htmlFor:m,className:"mb-0 RemoteFlows__CheckBox__Label",children:n})]})]})}),C&&e(i,{helpCenter:e(k,{helpCenter:s.meta?.helpCenter}),children:C}),b.error&&e(u,{})]})},"CheckboxFieldDefault");export{w as a};
2
- //# sourceMappingURL=chunk-CFCUY6VA.js.map
1
+ import{a as c}from"./chunk-NKVCGPK6.js";import{a as k}from"./chunk-NHLUPT2E.js";import{j as p,k as a,l as d,n as i,o as u}from"./chunk-UGPYPGVV.js";import{n as _}from"./chunk-EFL7QFFN.js";import{a as F}from"./chunk-P37U34EQ.js";import{Fragment as x,jsx as e,jsxs as r}from"react/jsx-runtime";var w=F(({field:l,fieldState:b,fieldData:s})=>{let{name:m,label:n,description:C,options:t,multiple:h}=s;return r(p,{"data-field":m,className:_(`RemoteFlows__CheckBoxField__Item__${m}`),children:[e(d,{children:r(x,{children:[t&&h?e(a,{children:n}):null,t&&h?t.map(o=>r("div",{className:"flex space-x-2",children:[e(c,{id:o.value,onCheckedChange:v=>{l.onChange(v===!0,o.value)},checked:l.value?.includes(o.value),className:"RemoteFlows__CheckBox__Input"}),e(a,{htmlFor:o.value,className:"mb-0 RemoteFlows__CheckBox__Label",children:o.label})]},o.value)):r("div",{className:"flex space-x-2",children:[e(c,{id:m,onCheckedChange:o=>{l.onChange(o===!0,null)},checked:l.value,className:"RemoteFlows__CheckBox__Input"}),e(a,{htmlFor:m,className:"mb-0 RemoteFlows__CheckBox__Label",children:n})]})]})}),C&&e(i,{helpCenter:e(k,{helpCenter:s.meta?.helpCenter}),children:C}),b.error&&e(u,{})]})},"CheckboxFieldDefault");export{w as a};
2
+ //# sourceMappingURL=chunk-2K4N6RPD.js.map
@@ -1,2 +1,2 @@
1
- import{a as S}from"./chunk-B3KDZREG.js";import{a as y,b,c as N,d as T,e as $,f as v}from"./chunk-ED7I5OM2.js";import{j as _,k as C,n as p,o as F}from"./chunk-5BU3CD2P.js";import{a as u}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as t}from"react/jsx-runtime";function G({field:f,fieldState:r,fieldData:g}){let{name:n,label:m,description:s,options:c,onChangeCountryCode:i,onChangePhoneNumber:h,currentCountry:o,nationalPhoneNumber:w}=g,I=o?`${o.name}-${o.dialCode}`:"";return t(_,{"data-field":n,className:`RemoteFlows__TelField__Item__${n}`,children:[m&&e(C,{className:"RemoteFlows__TelField__Label",children:m}),t("div",{className:"flex gap-2",children:[e("div",{className:"w-[180px]",children:t(y,{value:I,onValueChange:l=>{let a=c?.find(d=>`${d.label}-${d.meta?.countryCode}`===l);a&&i&&i({name:a.label,dialCode:a.meta?.countryCode||"",pattern:a.pattern||""})},children:[e(T,{className:"RemoteFlows__TelField__CountrySelect","aria-invalid":!!r.error,"aria-label":"Country code",children:e("span",{className:"absolute",children:e(N,{placeholder:"Country code *",children:o&&`${o.name} +${o.dialCode}`})})}),e($,{className:"RemoteFlows__TelField__CountryContent",children:e(b,{className:"RemoteFlows__TelField__CountryGroup",children:c?.map((l,a)=>t(v,{value:`${l.label}-${l.meta?.countryCode}`,className:"RemoteFlows__TelField__CountryItem",children:[l.label," +",l.meta?.countryCode]},`${l.label}-${l.meta?.countryCode}-${a}`))})})]})}),e("div",{className:"flex-1",children:e(S,{...f,type:"tel",value:w||"",onChange:h,className:"RemoteFlows__TelField__Input",placeholder:"Employee's phone number *","aria-invalid":!!r.error,"aria-label":"Phone number"})})]}),s&&e(p,{className:"RemoteFlows__TelField__Description",children:s}),r.error&&e(F,{})]})}u(G,"TelFieldDefault");export{G as a};
2
- //# sourceMappingURL=chunk-NN2HUS43.js.map
1
+ import{a as S}from"./chunk-YIPQZRQ7.js";import{a as y,b,c as N,d as T,e as $,f as v}from"./chunk-K44B6MQA.js";import{j as _,k as C,n as p,o as F}from"./chunk-UGPYPGVV.js";import{a as u}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as t}from"react/jsx-runtime";function G({field:f,fieldState:r,fieldData:g}){let{name:n,label:m,description:s,options:c,onChangeCountryCode:i,onChangePhoneNumber:h,currentCountry:o,nationalPhoneNumber:w}=g,I=o?`${o.name}-${o.dialCode}`:"";return t(_,{"data-field":n,className:`RemoteFlows__TelField__Item__${n}`,children:[m&&e(C,{className:"RemoteFlows__TelField__Label",children:m}),t("div",{className:"flex gap-2",children:[e("div",{className:"w-[180px]",children:t(y,{value:I,onValueChange:l=>{let a=c?.find(d=>`${d.label}-${d.meta?.countryCode}`===l);a&&i&&i({name:a.label,dialCode:a.meta?.countryCode||"",pattern:a.pattern||""})},children:[e(T,{className:"RemoteFlows__TelField__CountrySelect","aria-invalid":!!r.error,"aria-label":"Country code",children:e("span",{className:"absolute",children:e(N,{placeholder:"Country code *",children:o&&`${o.name} +${o.dialCode}`})})}),e($,{className:"RemoteFlows__TelField__CountryContent",children:e(b,{className:"RemoteFlows__TelField__CountryGroup",children:c?.map((l,a)=>t(v,{value:`${l.label}-${l.meta?.countryCode}`,className:"RemoteFlows__TelField__CountryItem",children:[l.label," +",l.meta?.countryCode]},`${l.label}-${l.meta?.countryCode}-${a}`))})})]})}),e("div",{className:"flex-1",children:e(S,{...f,type:"tel",value:w||"",onChange:h,className:"RemoteFlows__TelField__Input",placeholder:"Employee's phone number *","aria-invalid":!!r.error,"aria-label":"Phone number"})})]}),s&&e(p,{className:"RemoteFlows__TelField__Description",children:s}),r.error&&e(F,{})]})}u(G,"TelFieldDefault");export{G as a};
2
+ //# sourceMappingURL=chunk-2PKH6744.js.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-JXAAON7I.js";import{b as u}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function b({children:m,...t}){let{formId:e,costCalculatorBag:i}=s(),{components:l}=u(),o=l?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"submit",className:r("RemoteFlows__CostCalculatorForm__SubmitButton",t.className),form:e,disabled:t.disabled||i?.isSubmitting,children:m})}n(b,"CostCalculatorSubmitButton");export{b as a};
2
- //# sourceMappingURL=chunk-Y7NFXPZ2.js.map
1
+ import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-EFL7QFFN.js";import{b as u}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function b({children:m,...t}){let{formId:e,costCalculatorBag:i}=s(),{components:l}=u(),o=l?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"submit",className:r("RemoteFlows__CostCalculatorForm__SubmitButton",t.className),form:e,disabled:t.disabled||i?.isSubmitting,children:m})}n(b,"CostCalculatorSubmitButton");export{b as a};
2
+ //# sourceMappingURL=chunk-3BNHBFVL.js.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-JXAAON7I.js";import{b as e}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function p({children:u,...t}){let{form:m,formId:l,costCalculatorBag:c}=s(),{components:i}=e(),o=i?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:r("RemoteFlows__CostCalculatorForm__ResetButton",t.className),form:l,onClick:C=>{c?.resetForm(),m.reset(),t.onClick?.(C)},children:u})}n(p,"CostCalculatorResetButton");export{p as a};
2
- //# sourceMappingURL=chunk-XWZP4WYZ.js.map
1
+ import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-EFL7QFFN.js";import{b as e}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function p({children:u,...t}){let{form:m,formId:l,costCalculatorBag:c}=s(),{components:i}=e(),o=i?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:r("RemoteFlows__CostCalculatorForm__ResetButton",t.className),form:l,onClick:C=>{c?.resetForm(),m.reset(),t.onClick?.(C)},children:u})}n(p,"CostCalculatorResetButton");export{p as a};
2
+ //# sourceMappingURL=chunk-3THSAI2N.js.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-4MW7KA47.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function t({field:m,fieldData:i}){return n(o,{name:m.name,...i,type:"email"})}e(t,"EmailFieldDefault");export{t as a};
2
- //# sourceMappingURL=chunk-Q5RU76HN.js.map
1
+ import{a as o}from"./chunk-ZLZAHVV5.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function t({field:m,fieldData:i}){return n(o,{name:m.name,...i,type:"email"})}e(t,"EmailFieldDefault");export{t as a};
2
+ //# sourceMappingURL=chunk-4T66UEMY.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-RGXG3HOB.js";import{j as a,k as i,l as s,n as p,o as F}from"./chunk-5BU3CD2P.js";import{n as t}from"./chunk-JXAAON7I.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as U}from"react/jsx-runtime";function b({field:o,fieldState:_,fieldData:c}){let{name:l,label:d,description:m,multiple:f,accept:u}=c;return U(a,{"data-field":l,className:`RemoteFlows__FileUpload__Item__${l}`,children:[e(i,{className:"RemoteFlows__FileUpload__Label",children:d}),e(s,{children:e(n,{onChange:o.onChange,multiple:f,className:t("RemoteFlows__FileUpload__Input"),accept:u,files:o.value})}),m&&e("div",{className:"flex items-center justify-between",children:e(p,{className:"RemoteFlows__FileUpload__Description",children:m})}),_.error&&e(F,{className:"RemoteFlows__FileUpload__Error"})]})}r(b,"FileUploadFieldDefault");export{b as a};
2
- //# sourceMappingURL=chunk-QYLLXHLO.js.map
1
+ import{a as n}from"./chunk-GJIKWHFV.js";import{j as a,k as i,l as s,n as p,o as F}from"./chunk-UGPYPGVV.js";import{n as t}from"./chunk-EFL7QFFN.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as U}from"react/jsx-runtime";function b({field:o,fieldState:_,fieldData:c}){let{name:l,label:d,description:m,multiple:f,accept:u}=c;return U(a,{"data-field":l,className:`RemoteFlows__FileUpload__Item__${l}`,children:[e(i,{className:"RemoteFlows__FileUpload__Label",children:d}),e(s,{children:e(n,{onChange:o.onChange,multiple:f,className:t("RemoteFlows__FileUpload__Input"),accept:u,files:o.value})}),m&&e("div",{className:"flex items-center justify-between",children:e(p,{className:"RemoteFlows__FileUpload__Description",children:m})}),_.error&&e(F,{className:"RemoteFlows__FileUpload__Error"})]})}r(b,"FileUploadFieldDefault");export{b as a};
2
+ //# sourceMappingURL=chunk-547SAUNX.js.map
@@ -1,2 +1,2 @@
1
- import{g as o}from"./chunk-JXAAON7I.js";import{a as e}from"./chunk-P37U34EQ.js";var d={form:{index:0,name:"form"},confirmation_form:{index:1,name:"confirmation_form"}};function f(t,r){if(!t)return{};if(!r)return{...t.contract_details,effective_date:"",reason_for_change:"",job_title:t.job_title,additional_comments:"",annual_gross_salary:o(t.contract_details?.annual_gross_salary)};let s=r.map(n=>n.name),i=Object.keys(t?.contract_details||{});return{...s.reduce((n,a)=>{if(i.includes(a)){let c=t?.contract_details;n[a]=c[a]}return n},{}),effective_date:"",reason_for_change:"",job_title:t.job_title,additional_comments:"",annual_gross_salary:o(t.contract_details?.annual_gross_salary),additional_comments_toggle:!1}}e(f,"buildInitialValues");export{d as a,f as b};
2
- //# sourceMappingURL=chunk-NZXVTXZY.js.map
1
+ import{g as o}from"./chunk-EFL7QFFN.js";import{a as e}from"./chunk-P37U34EQ.js";var d={form:{index:0,name:"form"},confirmation_form:{index:1,name:"confirmation_form"}};function f(t,r){if(!t)return{};if(!r)return{...t.contract_details,effective_date:"",reason_for_change:"",job_title:t.job_title,additional_comments:"",annual_gross_salary:o(t.contract_details?.annual_gross_salary)};let s=r.map(n=>n.name),i=Object.keys(t?.contract_details||{});return{...s.reduce((n,a)=>{if(i.includes(a)){let c=t?.contract_details;n[a]=c[a]}return n},{}),effective_date:"",reason_for_change:"",job_title:t.job_title,additional_comments:"",annual_gross_salary:o(t.contract_details?.annual_gross_salary),additional_comments_toggle:!1}}e(f,"buildInitialValues");export{d as a,f as b};
2
+ //# sourceMappingURL=chunk-6BPEPQ3C.js.map
@@ -1,2 +1,2 @@
1
- import{a as n,b as i}from"./chunk-W4YDSTXA.js";import{n as e}from"./chunk-JXAAON7I.js";import{a as o}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as t,jsxs as r}from"react/jsx-runtime";var l=["You submit your termination request.","Remote reviews your request along with the employment agreement, local labor laws, and any collective bargaining agreements in place.","A lifecycle specialist contacts you if they need additional details. Sometimes they will request a call.","Depending on the country-specific laws and the terms of the employment agreement, Remote may need to seek additional legal advice. We\u2019ll let you know if there are additional charges before proceeding.","Terms and conditions for the termination are finalized.","You verbally communicate the termination to the employee.","Remote shares termination documents with the employee.","The employee signs the termination documents if required.","Remote processes the final salary and offboards the employee."],f=o(()=>r(s,{children:[t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__Title"),children:"Please read carefully before you continue"}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description"),children:"Please do not inform the employee of the termination. Remote will lead communication with them after you submit this form and they finalize the termination terms."}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description RemoteFlows__TerminationDialogInfoContent__FollowUpDescription"),children:"If you already informed them, that's okay. Remote will ask for the details regarding that communication and they'll take it from there."}),t(i,{className:e("RemoteFlows__TerminationDialogInfoContent__ZendeskTriggerButton text-sm"),zendeskId:n.terminationEmployeeCommunication,children:"Learn more about employee communication"}),t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessTitle"),children:"The termination process"}),t("ul",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessList list-disc list-inside"),children:l.map((a,m)=>t("li",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessListItem"),children:a},m))})]}),"TerminationDialogInfoContent");export{f as a};
2
- //# sourceMappingURL=chunk-2IIHA7AA.js.map
1
+ import{a as n,b as i}from"./chunk-TUJZUC3C.js";import{n as e}from"./chunk-EFL7QFFN.js";import{a as o}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as t,jsxs as r}from"react/jsx-runtime";var l=["You submit your termination request.","Remote reviews your request along with the employment agreement, local labor laws, and any collective bargaining agreements in place.","A lifecycle specialist contacts you if they need additional details. Sometimes they will request a call.","Depending on the country-specific laws and the terms of the employment agreement, Remote may need to seek additional legal advice. We\u2019ll let you know if there are additional charges before proceeding.","Terms and conditions for the termination are finalized.","You verbally communicate the termination to the employee.","Remote shares termination documents with the employee.","The employee signs the termination documents if required.","Remote processes the final salary and offboards the employee."],f=o(()=>r(s,{children:[t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__Title"),children:"Please read carefully before you continue"}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description"),children:"Please do not inform the employee of the termination. Remote will lead communication with them after you submit this form and they finalize the termination terms."}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description RemoteFlows__TerminationDialogInfoContent__FollowUpDescription"),children:"If you already informed them, that's okay. Remote will ask for the details regarding that communication and they'll take it from there."}),t(i,{className:e("RemoteFlows__TerminationDialogInfoContent__ZendeskTriggerButton text-sm"),zendeskId:n.terminationEmployeeCommunication,children:"Learn more about employee communication"}),t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessTitle"),children:"The termination process"}),t("ul",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessList list-disc list-inside"),children:l.map((a,m)=>t("li",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessListItem"),children:a},m))})]}),"TerminationDialogInfoContent");export{f as a};
2
+ //# sourceMappingURL=chunk-6D5IHLXV.js.map
@@ -1,2 +1,2 @@
1
- import{a as p}from"./chunk-IFIJ7OVJ.js";import{a}from"./chunk-J2G2I3PX.js";import{a as m}from"./chunk-B3ACYI7T.js";import{a as e}from"./chunk-76ZDXC2T.js";import{a as r}from"./chunk-N5DHVRQR.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as y}from"react";import{jsx as d}from"react/jsx-runtime";var P=t(({render:n,countryCode:C,options:i,initialValues:s})=>{let o=r({options:i,countryCode:C,initialValues:s}),f=y();return d(e.Provider,{value:{createCompanyBag:o,formId:f},children:n({createCompanyBag:o,components:{CompanyBasicInformationStep:m,AddressDetailsStep:a,SubmitButton:p}})})},"CreateCompanyFlow");export{P as a};
2
- //# sourceMappingURL=chunk-G6E7F6VD.js.map
1
+ import{a as p}from"./chunk-IFIJ7OVJ.js";import{a}from"./chunk-DVA6ZFFO.js";import{a as m}from"./chunk-6N7CL2FW.js";import{a as r}from"./chunk-23HL6DQK.js";import{a as e}from"./chunk-76ZDXC2T.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as y}from"react";import{jsx as d}from"react/jsx-runtime";var P=t(({render:n,countryCode:C,options:i,initialValues:s})=>{let o=r({options:i,countryCode:C,initialValues:s}),f=y();return d(e.Provider,{value:{createCompanyBag:o,formId:f},children:n({createCompanyBag:o,components:{CompanyBasicInformationStep:m,AddressDetailsStep:a,SubmitButton:p}})})},"CreateCompanyFlow");export{P as a};
2
+ //# sourceMappingURL=chunk-6J2NNZFD.js.map
@@ -1,2 +1,2 @@
1
- import{a as F,b as P,c as k}from"./chunk-IX5SV6J2.js";import{a as w}from"./chunk-C7GJUNNC.js";import{a as c,b as C}from"./chunk-R4TTPUH7.js";import{j as h,k as x,l as v,n as b,o as D}from"./chunk-5BU3CD2P.js";import{n as t}from"./chunk-JXAAON7I.js";import{a as n}from"./chunk-P37U34EQ.js";import{CalendarIcon as V}from"lucide-react";import{format as R}from"date-fns";import{ChevronLeft as z,ChevronRight as L}from"lucide-react";import{DayPicker as O}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function N({className:r,classNames:i,showOutsideDays:m=!0,...a}){return p(O,{showOutsideDays:m,className:t("p-3",r),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:t(c({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:t("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:t(c({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...i},components:{IconLeft:n(({className:l,...o})=>p(z,{className:t("size-4",l),...o}),"IconLeft"),IconRight:n(({className:l,...o})=>p(L,{className:t("size-4",l),...o}),"IconRight")},...a})}n(N,"Calendar");import{useState as B}from"react";import{Fragment as T,jsx as e,jsxs as u}from"react/jsx-runtime";function ee({field:r,fieldData:i,fieldState:m}){let{name:a,label:l,description:o,minDate:f,maxDate:g}=i,s=f?new Date(f):void 0,y=g?new Date(g):void 0,[I,_]=B(!1);return u(h,{"data-field":a,className:`flex flex-col RemoteFlows__DatePickerField__Item__${a}`,children:[e(x,{className:"RemoteFlows__DatePickerField__Label",children:l}),u(F,{open:I,onOpenChange:_,children:[e(P,{asChild:!0,children:e(v,{children:e("div",{children:u(C,{type:"button",variant:"outline",className:t("w-full pl-3 text-left font-normal",!r.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${a}`,children:[r.value&&e(T,{children:R(r.value,"yyyy-MM-dd")}),e(V,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(k,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(N,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:r.value?new Date(r.value):void 0,onDayClick:d=>{let M=R(d,"yyyy-MM-dd");r.onChange(M),_(!1)},defaultMonth:s,disabled:d=>!!(s&&d<s||y&&d>y)})})]}),o?e(b,{helpCenter:e(w,{helpCenter:i.meta?.helpCenter}),children:o}):null,m.error&&e(D,{className:"RemoteFlows__DatePickerField__Error"})]})}n(ee,"DatePickerFieldDefault");export{ee as a};
2
- //# sourceMappingURL=chunk-CMPHQVJ3.js.map
1
+ import{a as F,b as P,c as k}from"./chunk-WQ27VHVA.js";import{a as w}from"./chunk-NHLUPT2E.js";import{a as c,b as C}from"./chunk-KMANQZL4.js";import{j as h,k as x,l as v,n as b,o as D}from"./chunk-UGPYPGVV.js";import{n as t}from"./chunk-EFL7QFFN.js";import{a as n}from"./chunk-P37U34EQ.js";import{CalendarIcon as V}from"lucide-react";import{format as R}from"date-fns";import{ChevronLeft as z,ChevronRight as L}from"lucide-react";import{DayPicker as O}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function N({className:r,classNames:i,showOutsideDays:m=!0,...a}){return p(O,{showOutsideDays:m,className:t("p-3",r),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:t(c({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:t("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",a.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:t(c({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...i},components:{IconLeft:n(({className:l,...o})=>p(z,{className:t("size-4",l),...o}),"IconLeft"),IconRight:n(({className:l,...o})=>p(L,{className:t("size-4",l),...o}),"IconRight")},...a})}n(N,"Calendar");import{useState as B}from"react";import{Fragment as T,jsx as e,jsxs as u}from"react/jsx-runtime";function ee({field:r,fieldData:i,fieldState:m}){let{name:a,label:l,description:o,minDate:f,maxDate:g}=i,s=f?new Date(f):void 0,y=g?new Date(g):void 0,[I,_]=B(!1);return u(h,{"data-field":a,className:`flex flex-col RemoteFlows__DatePickerField__Item__${a}`,children:[e(x,{className:"RemoteFlows__DatePickerField__Label",children:l}),u(F,{open:I,onOpenChange:_,children:[e(P,{asChild:!0,children:e(v,{children:e("div",{children:u(C,{type:"button",variant:"outline",className:t("w-full pl-3 text-left font-normal",!r.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${a}`,children:[r.value&&e(T,{children:R(r.value,"yyyy-MM-dd")}),e(V,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(k,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(N,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:r.value?new Date(r.value):void 0,onDayClick:d=>{let M=R(d,"yyyy-MM-dd");r.onChange(M),_(!1)},defaultMonth:s,disabled:d=>!!(s&&d<s||y&&d>y)})})]}),o?e(b,{helpCenter:e(w,{helpCenter:i.meta?.helpCenter}),children:o}):null,m.error&&e(D,{className:"RemoteFlows__DatePickerField__Error"})]})}n(ee,"DatePickerFieldDefault");export{ee as a};
2
+ //# sourceMappingURL=chunk-6MP4UBOE.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-6PXDRES5.js";import{b as m}from"./chunk-76ZDXC2T.js";import{x as i}from"./chunk-JXAAON7I.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-B3ACYI7T.js.map
1
+ import{a as s}from"./chunk-QKEC26QD.js";import{b as m}from"./chunk-76ZDXC2T.js";import{x as i}from"./chunk-EFL7QFFN.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-6N7CL2FW.js.map
@@ -1,2 +1,2 @@
1
- import{a as t,b as n,c as l,d as i,e as s,f as d}from"./chunk-QWSAKYH4.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({open:w,onClose:D,data:o,isLoading:m,error:p,zendeskURL:f,Trigger:c}){return r(t,{open:w,onOpenChange:g=>!g&&D(),direction:"right",children:[e(n,{asChild:!0,children:c}),e(l,{className:"h-full w-[540px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:r("div",{className:"h-full flex flex-col",children:[r(i,{children:[e(s,{children:o?.title}),r(d,{children:["For more details see our"," ",e("a",{href:f,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),m&&e("div",{children:"Loading..."}),p&&e("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),e("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:o?.body||""}})]})})]})}a(h,"ZendeskDrawerDefault");export{h as a};
2
- //# sourceMappingURL=chunk-ZM4ZOX7B.js.map
1
+ import{a as t,b as n,c as l,d as i,e as s,f as d}from"./chunk-GZE3PWOZ.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({open:w,onClose:D,data:o,isLoading:m,error:p,zendeskURL:f,Trigger:c}){return r(t,{open:w,onOpenChange:g=>!g&&D(),direction:"right",children:[e(n,{asChild:!0,children:c}),e(l,{className:"h-full w-[540px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:r("div",{className:"h-full flex flex-col",children:[r(i,{children:[e(s,{children:o?.title}),r(d,{children:["For more details see our"," ",e("a",{href:f,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),m&&e("div",{children:"Loading..."}),p&&e("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),e("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:o?.body||""}})]})})]})}a(h,"ZendeskDrawerDefault");export{h as a};
2
+ //# sourceMappingURL=chunk-6OYB7OE5.js.map
@@ -1,2 +1,2 @@
1
- import{a as o,b as a,c as i}from"./chunk-Q5WADFQ7.js";import{a as n}from"./chunk-P37U34EQ.js";import{AlertCircle as p}from"lucide-react";import{jsx as t,jsxs as c}from"react/jsx-runtime";function g({data:s}){let{title:e,description:r,severity:l}=s,m={warning:"warning",error:"destructive",info:"default",success:"warning"}[l]??"warning";return c(o,{variant:m,children:[t(p,{className:"h-4 w-4"}),e&&t(a,{dangerouslySetInnerHTML:{__html:e}}),r&&t(i,{dangerouslySetInnerHTML:{__html:r}})]})}n(g,"StatementDefault");export{g as a};
2
- //# sourceMappingURL=chunk-TMZVJ3SQ.js.map
1
+ import{a as o,b as a,c as i}from"./chunk-KUMYB3ZB.js";import{a as n}from"./chunk-P37U34EQ.js";import{AlertCircle as p}from"lucide-react";import{jsx as t,jsxs as c}from"react/jsx-runtime";function g({data:s}){let{title:e,description:r,severity:l}=s,m={warning:"warning",error:"destructive",info:"default",success:"warning"}[l]??"warning";return c(o,{variant:m,children:[t(p,{className:"h-4 w-4"}),e&&t(a,{dangerouslySetInnerHTML:{__html:e}}),r&&t(i,{dangerouslySetInnerHTML:{__html:r}})]})}n(g,"StatementDefault");export{g as a};
2
+ //# sourceMappingURL=chunk-6UWJNDPG.js.map
@@ -1,2 +1,2 @@
1
- import{e as A,f as d,g as y}from"./chunk-TVBZT6FA.js";import{a as x}from"./chunk-WVJDCDGZ.js";import{a as R}from"./chunk-F2ENM2JE.js";import{a as p}from"./chunk-QHZPSH52.js";import{A as _,D as O,F as w,I as S,K as q,P as v,U as V,ba as P,ca as j,g as f,i as g,j as h,n as b,o as E,w as C,x as F}from"./chunk-ER46UFIU.js";import{e as i}from"./chunk-H2O4CVKF.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as l,useQuery as c}from"@tanstack/react-query";var Y=t(e=>{let{client:r}=i();return c({queryKey:["company",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let n=await F({client:r,headers:{Authorization:""},path:{company_id:e}});if(n.error||!n.data)throw new Error("Failed to fetch employment data");return n},"queryFn"),select:t(({data:n})=>n.data.company,"select")})},"useCompany"),Z=t(e=>{let{client:r}=i();return c({queryKey:["benefit-offers",e],retry:!1,enabled:!!e,queryFn:t(async()=>b({client:r,path:{employment_id:e}}).then(n=>{if(n.error||!n.data)throw new Error("Failed to fetch benefit offers data");return n}),"queryFn"),select:t(({data:n})=>n?.data?.reduce((s,o)=>({...s,[o.benefit_group.slug]:{value:o.benefit_tier?.slug??"no",...o.benefit_group?.filter?.slug?{filter:o.benefit_group?.filter?.slug}:{}}}),{}),"select")})},"useBenefitOffers"),$=t((e,r)=>{let{client:n}=i();return c({queryKey:["employment-engagement-agreement-details",e],retry:!1,enabled:r?.enabled??!!e,queryFn:t(async()=>P({client:n,headers:{Authorization:""},path:{employment_id:e}}).then(s=>{if(s.error||!s.data)throw new Error("Failed to fetch engagement agreement details");return s}),"queryFn"),select:t(({data:s})=>s?.data?.details,"select")})},"useEmploymentEngagementAgreementDetails"),ee=t(()=>{let{client:e}=i();return l({mutationFn:t(r=>V({client:e,headers:{Authorization:""},path:r}),"mutationFn")})},"useEmploymentInvite"),te=t(()=>{let{client:e}=i();return l({mutationFn:t(r=>C({client:e,body:r}),"mutationFn")})},"useCreateReserveInvoice"),ne=t(({countryCode:e,form:r,fieldValues:n,options:s,query:o={},jsonSchemaVersion:a})=>{let{client:m}=i(),D=a?{json_schema_version:a}:{};return c({queryKey:["onboarding-json-schema-form",e,r,a],retry:!1,queryFn:t(async()=>{let u=await _({client:m,headers:{Authorization:""},path:{country_code:e,form:r},query:{skip_benefits:!0,...o,...D}});if(u.error||!u.data)throw new Error("Failed to fetch onboarding schema");return u},"queryFn"),enabled:s?.queryOptions?.enabled,select:t(({data:u})=>{let I=u?.data||{};return p(I,n,s)},"select")})},"useJSONSchemaForm"),re=t((e,r,n)=>{let{client:s}=i(),o={json_schema_version:y(n)};return c({queryKey:["benefit-offers-schema",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let a=await w({client:s,path:{employment_id:e},query:o});if(a.error||!a.data)throw new Error("Failed to fetch benefit offers schema");return a},"queryFn"),select:t(({data:a})=>{let m=a?.data?.schema||{};return p(m,r,{jsfModify:n?.jsfModify?.benefits})},"select")})},"useBenefitOffersSchema"),oe=t(e=>{let{client:r}=i(),n={json_schema_version:d(e)};return l({mutationFn:t(s=>g({client:r,headers:{Authorization:""},body:s,query:{...n}}),"mutationFn")})},"useCreateEmployment"),se=t((e,r)=>{let{client:n}=i(),s={employment_basic_information_json_schema_version:d(r),contract_details_json_schema_version:A(r,e)||1};return l({mutationFn:t(({employmentId:o,...a})=>S({client:n,headers:{Authorization:""},body:a,path:{employment_id:o},query:{skip_benefits:!0,...s}}),"mutationFn")})},"useUpdateEmployment"),ae=t(()=>{let{client:e}=i();return l({mutationFn:t(({employmentId:r,...n})=>j({client:e,headers:{Authorization:""},body:n,path:{employment_id:r}}),"mutationFn")})},"useUpdateEmploymentEngagementAgreementDetails"),ie=t(e=>{let{client:r}=i();return l({mutationFn:t(({employmentId:n,...s})=>{let o={json_schema_version:y(e)};return E({client:r,body:s,path:{employment_id:n},query:o})},"mutationFn")})},"useUpdateBenefitsOffers"),me=t(e=>{let{client:r}=i(),{data:n,isLoading:s}=c({...R(r,"onboarding-countries"),select:t(a=>a.data?.data?.filter(m=>m.eor_onboarding).map(m=>({label:m.name,value:m.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),o=p(x.data.schema,{},e);if(n){let a=o.fields.find(m=>m.name==="country");a&&(a.options=n)}return{isLoading:s,selectCountryForm:o}},"useCountriesSchemaField"),le=t(({type:e="spread"})=>{let{client:r}=i();return l({mutationFn:t(n=>(e==="no_spread"?f:v)({client:r,body:n}),"mutationFn")})},"useConvertCurrency"),ce=t(()=>{let{client:e}=i();return l({mutationFn:t(({employmentId:r,...n})=>q({client:e,path:{employment_id:r},body:n}),"mutationFn")})},"useUpsertContractEligibility"),ue=t((e,r,n=!0)=>{let{client:s}=i();return c({queryKey:["employment-onboarding-reserves-status",e,r],retry:!1,enabled:n&&!!e&&!!r,queryFn:t(async()=>{let o=await h({client:s,headers:{Authorization:""},path:{company_id:e,employment_id:r}});if(o.error||!o.data)throw new Error("Failed to fetch employment onboarding reserves status");return o},"queryFn"),select:t(({data:o})=>o?.data?.status,"select")})},"useEmploymentOnboardingReservesStatus"),pe=t((e,r,n)=>{let{client:s}=i();return c({queryKey:["engagement-agreement-details",e],retry:!1,enabled:n?.queryOptions?.enabled??!!e,queryFn:t(async()=>{let o=await O({client:s,path:{country_code:e}});if(o.error||!o.data)throw new Error("Failed to fetch engagement agreement details");return o},"queryFn"),select:t(({data:o})=>{let a=o?.data?.schema||{};return p(a,r,{jsfModify:n?.jsfModify?.engagement_agreement_details})},"select")})},"useEngagementAgreementDetailsSchema");export{Y as a,Z as b,$ as c,ee as d,te as e,ne as f,re as g,oe as h,se as i,ae as j,ie as k,me as l,le as m,ce as n,ue as o,pe as p};
2
- //# sourceMappingURL=chunk-FJUUNJHY.js.map
1
+ import{e as A,f as d,g as y}from"./chunk-D6MFIXSJ.js";import{a as x}from"./chunk-WVJDCDGZ.js";import{a as R}from"./chunk-F2ENM2JE.js";import{a as p}from"./chunk-OXKDKDSH.js";import{A as _,D as O,F as w,I as S,K as q,P as v,U as V,ba as P,ca as j,g as f,i as g,j as h,n as b,o as E,w as C,x as F}from"./chunk-ER46UFIU.js";import{e as i}from"./chunk-H2O4CVKF.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as l,useQuery as c}from"@tanstack/react-query";var Y=t(e=>{let{client:r}=i();return c({queryKey:["company",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let n=await F({client:r,headers:{Authorization:""},path:{company_id:e}});if(n.error||!n.data)throw new Error("Failed to fetch employment data");return n},"queryFn"),select:t(({data:n})=>n.data.company,"select")})},"useCompany"),Z=t(e=>{let{client:r}=i();return c({queryKey:["benefit-offers",e],retry:!1,enabled:!!e,queryFn:t(async()=>b({client:r,path:{employment_id:e}}).then(n=>{if(n.error||!n.data)throw new Error("Failed to fetch benefit offers data");return n}),"queryFn"),select:t(({data:n})=>n?.data?.reduce((s,o)=>({...s,[o.benefit_group.slug]:{value:o.benefit_tier?.slug??"no",...o.benefit_group?.filter?.slug?{filter:o.benefit_group?.filter?.slug}:{}}}),{}),"select")})},"useBenefitOffers"),$=t((e,r)=>{let{client:n}=i();return c({queryKey:["employment-engagement-agreement-details",e],retry:!1,enabled:r?.enabled??!!e,queryFn:t(async()=>P({client:n,headers:{Authorization:""},path:{employment_id:e}}).then(s=>{if(s.error||!s.data)throw new Error("Failed to fetch engagement agreement details");return s}),"queryFn"),select:t(({data:s})=>s?.data?.details,"select")})},"useEmploymentEngagementAgreementDetails"),ee=t(()=>{let{client:e}=i();return l({mutationFn:t(r=>V({client:e,headers:{Authorization:""},path:r}),"mutationFn")})},"useEmploymentInvite"),te=t(()=>{let{client:e}=i();return l({mutationFn:t(r=>C({client:e,body:r}),"mutationFn")})},"useCreateReserveInvoice"),ne=t(({countryCode:e,form:r,fieldValues:n,options:s,query:o={},jsonSchemaVersion:a})=>{let{client:m}=i(),D=a?{json_schema_version:a}:{};return c({queryKey:["onboarding-json-schema-form",e,r,a],retry:!1,queryFn:t(async()=>{let u=await _({client:m,headers:{Authorization:""},path:{country_code:e,form:r},query:{skip_benefits:!0,...o,...D}});if(u.error||!u.data)throw new Error("Failed to fetch onboarding schema");return u},"queryFn"),enabled:s?.queryOptions?.enabled,select:t(({data:u})=>{let I=u?.data||{};return p(I,n,s)},"select")})},"useJSONSchemaForm"),re=t((e,r,n)=>{let{client:s}=i(),o={json_schema_version:y(n)};return c({queryKey:["benefit-offers-schema",e],retry:!1,enabled:!!e,queryFn:t(async()=>{let a=await w({client:s,path:{employment_id:e},query:o});if(a.error||!a.data)throw new Error("Failed to fetch benefit offers schema");return a},"queryFn"),select:t(({data:a})=>{let m=a?.data?.schema||{};return p(m,r,{jsfModify:n?.jsfModify?.benefits})},"select")})},"useBenefitOffersSchema"),oe=t(e=>{let{client:r}=i(),n={json_schema_version:d(e)};return l({mutationFn:t(s=>g({client:r,headers:{Authorization:""},body:s,query:{...n}}),"mutationFn")})},"useCreateEmployment"),se=t((e,r)=>{let{client:n}=i(),s={employment_basic_information_json_schema_version:d(r),contract_details_json_schema_version:A(r,e)||1};return l({mutationFn:t(({employmentId:o,...a})=>S({client:n,headers:{Authorization:""},body:a,path:{employment_id:o},query:{skip_benefits:!0,...s}}),"mutationFn")})},"useUpdateEmployment"),ae=t(()=>{let{client:e}=i();return l({mutationFn:t(({employmentId:r,...n})=>j({client:e,headers:{Authorization:""},body:n,path:{employment_id:r}}),"mutationFn")})},"useUpdateEmploymentEngagementAgreementDetails"),ie=t(e=>{let{client:r}=i();return l({mutationFn:t(({employmentId:n,...s})=>{let o={json_schema_version:y(e)};return E({client:r,body:s,path:{employment_id:n},query:o})},"mutationFn")})},"useUpdateBenefitsOffers"),me=t(e=>{let{client:r}=i(),{data:n,isLoading:s}=c({...R(r,"onboarding-countries"),select:t(a=>a.data?.data?.filter(m=>m.eor_onboarding).map(m=>({label:m.name,value:m.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),o=p(x.data.schema,{},e);if(n){let a=o.fields.find(m=>m.name==="country");a&&(a.options=n)}return{isLoading:s,selectCountryForm:o}},"useCountriesSchemaField"),le=t(({type:e="spread"})=>{let{client:r}=i();return l({mutationFn:t(n=>(e==="no_spread"?f:v)({client:r,body:n}),"mutationFn")})},"useConvertCurrency"),ce=t(()=>{let{client:e}=i();return l({mutationFn:t(({employmentId:r,...n})=>q({client:e,path:{employment_id:r},body:n}),"mutationFn")})},"useUpsertContractEligibility"),ue=t((e,r,n=!0)=>{let{client:s}=i();return c({queryKey:["employment-onboarding-reserves-status",e,r],retry:!1,enabled:n&&!!e&&!!r,queryFn:t(async()=>{let o=await h({client:s,headers:{Authorization:""},path:{company_id:e,employment_id:r}});if(o.error||!o.data)throw new Error("Failed to fetch employment onboarding reserves status");return o},"queryFn"),select:t(({data:o})=>o?.data?.status,"select")})},"useEmploymentOnboardingReservesStatus"),pe=t((e,r,n)=>{let{client:s}=i();return c({queryKey:["engagement-agreement-details",e],retry:!1,enabled:n?.queryOptions?.enabled??!!e,queryFn:t(async()=>{let o=await O({client:s,path:{country_code:e}});if(o.error||!o.data)throw new Error("Failed to fetch engagement agreement details");return o},"queryFn"),select:t(({data:o})=>{let a=o?.data?.schema||{};return p(a,r,{jsfModify:n?.jsfModify?.engagement_agreement_details})},"select")})},"useEngagementAgreementDetailsSchema");export{Y as a,Z as b,$ as c,ee as d,te as e,ne as f,re as g,oe as h,se as i,ae as j,ie as k,me as l,le as m,ce as n,ue as o,pe as p};
2
+ //# sourceMappingURL=chunk-73MHNSF2.js.map
@@ -0,0 +1,2 @@
1
+ import{a,b as s,e as l,h as c,i as d}from"./chunk-K5RHOXWA.js";import{a as i}from"./chunk-P37U34EQ.js";function _(e={}){let o=[{name:"select_country",label:"Select Country",visible:!!e?.includeSelectCountry},{name:"basic_information",label:"Basic Information",visible:!0},{name:"pricing_plan",label:"Pricing Plan",visible:!0},{name:"eligibility_questionnaire",label:"Eligibility Questionnaire",visible:!!e?.includeEligibilityQuestionnaire},{name:"contract_details",label:"Contract Details",visible:!0},{name:"contract_preview",label:"Contract Preview",visible:!!e?.includeContractPreview},{name:"review",label:"Review",visible:!0}].map((n,r)=>({name:n.name,index:r,label:n.label,visible:n.visible}));return{steps:o.reduce((n,r)=>(n[r.name]={index:r.index,name:r.name,visible:r.visible},n),{}),stepsArray:o}}i(_,"buildSteps");var E=i((e,t)=>{if(e&&t&&e!==t)return`When the contractor will start providing service to your company. ${`This date does not match the date you provided in the Basic Information step - ${e} - and will override it only when both parties have signed the contract.`}`},"calculateProvisionalStartDateDescription"),v=i(e=>e===a||e===s,"isCMOrCMPlus"),p=["SAU","KWT","OMN","QAT","BHR"],g=i(e=>p.includes(e),"isNationalityCountryCode"),y=i((e,t)=>!t||t.length===0?!0:!t.some(o=>l[o]===e),"shouldIncludeProduct"),S=["initiated","invited","created_awaiting_reserve","created_reserve_paid"],f=["initiated","created_awaiting_reserve","invited"];function R(e){return e?d:c}i(R,"transformAiErrorResponse");export{_ as a,E as b,v as c,g as d,y as e,S as f,f as g,R as h};
2
+ //# sourceMappingURL=chunk-75SQ56WH.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/flows/ContractorOnboarding/utils.ts"],"sourcesContent":["import { Step } from '@/src/flows/useStepState';\nimport {\n contractorStandardProductIdentifier,\n contractorPlusProductIdentifier,\n ProductType,\n PRODUCT_IDENTIFIER_MAP,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE,\n} from '@/src/flows/ContractorOnboarding/constants';\nimport { Employment } from '@/src/flows/Onboarding/types';\n\nexport type StepKeys =\n | 'select_country'\n | 'basic_information'\n | 'contract_details'\n | 'eligibility_questionnaire'\n | 'contract_preview'\n | 'pricing_plan'\n | 'review';\n\ntype StepConfig = {\n includeSelectCountry?: boolean;\n includeEligibilityQuestionnaire?: boolean;\n includeContractPreview?: boolean;\n};\n\nexport function buildSteps(config: StepConfig = {}) {\n const stepDefinitions: Array<{\n name: StepKeys;\n label: string;\n visible: boolean;\n }> = [\n {\n name: 'select_country',\n label: 'Select Country',\n visible: Boolean(config?.includeSelectCountry),\n },\n {\n name: 'basic_information',\n label: 'Basic Information',\n visible: true,\n },\n {\n name: 'pricing_plan',\n label: 'Pricing Plan',\n visible: true,\n },\n {\n name: 'eligibility_questionnaire',\n label: 'Eligibility Questionnaire',\n visible: Boolean(config?.includeEligibilityQuestionnaire),\n },\n {\n name: 'contract_details',\n label: 'Contract Details',\n visible: true,\n },\n {\n name: 'contract_preview',\n label: 'Contract Preview',\n visible: Boolean(config?.includeContractPreview),\n },\n {\n name: 'review',\n label: 'Review',\n visible: true,\n },\n ];\n\n const stepsArray = stepDefinitions.map((step, index) => ({\n name: step.name,\n index,\n label: step.label,\n visible: step.visible,\n }));\n\n const steps = stepsArray.reduce(\n (acc, step) => {\n acc[step.name] = {\n index: step.index,\n name: step.name,\n visible: step.visible,\n };\n return acc;\n },\n {} as Record<string, Step<StepKeys>>,\n );\n\n return { steps, stepsArray };\n}\n\n/**\n * Calculates the description for the provisional start date field\n * based on whether the dates match between basic information and contract details steps\n */\nexport const calculateProvisionalStartDateDescription = (\n employmentProvisionalStartDate: string | undefined,\n fieldProvisionalStartDate: string | undefined,\n): string | undefined => {\n const datesNotMatching =\n employmentProvisionalStartDate &&\n fieldProvisionalStartDate &&\n employmentProvisionalStartDate !== fieldProvisionalStartDate;\n\n if (datesNotMatching) {\n const datesDontMatchWarning = `This date does not match the date you provided in the Basic Information step - ${\n employmentProvisionalStartDate\n } - and will override it only when both parties have signed the contract.`;\n return `When the contractor will start providing service to your company. ${datesDontMatchWarning}`;\n }\n return undefined;\n};\n\n/**\n * Checks if the selected pricing plan is CM (standard) or CM+ (plus)\n */\nexport const isCMOrCMPlus = (subscription: string | undefined): boolean => {\n return (\n subscription === contractorStandardProductIdentifier ||\n subscription === contractorPlusProductIdentifier\n );\n};\n\nconst NATIONALITY_COUNTRY_CODES = ['SAU', 'KWT', 'OMN', 'QAT', 'BHR'];\n\n/**\n * Checks if the country code is a country code that requires nationality status field\n */\nexport const isNationalityCountryCode = (countryCode: string) => {\n return NATIONALITY_COUNTRY_CODES.includes(countryCode);\n};\n\n/**\n * Checks if a product should be included based on the excludeProducts list\n * @param productIdentifier - The product identifier to check\n * @param excludeProducts - Array of products to exclude\n * @returns true if the product should be included, false otherwise\n */\nexport const shouldIncludeProduct = (\n productIdentifier: string,\n excludeProducts?: ProductType[],\n): boolean => {\n if (!excludeProducts || excludeProducts.length === 0) {\n return true;\n }\n\n return !excludeProducts.some(\n (excluded) => PRODUCT_IDENTIFIER_MAP[excluded] === productIdentifier,\n );\n};\n\n/**\n * Array of employment statuses that are allowed to proceed to the review step.\n * These statuses indicate that the employment is in a final state and the employment cannot be modified further.\n * @type {Employment['status'][]}\n * @constant\n */\nexport const reviewStepAllowedEmploymentStatus: Employment['status'][] = [\n 'invited',\n 'created_awaiting_reserve',\n 'created_reserve_paid',\n];\n\nexport const disabledInviteButtonEmploymentStatus: Employment['status'][] = [\n 'created_awaiting_reserve',\n 'invited',\n];\n\n/**\n * Transforms AI error messages to use default localized messages\n * @param isContractorOfRecord - Whether the contractor is a Contractor of Record\n * @param errors - Array of error messages from the API\n * @returns Array containing the appropriate default error message\n */\nexport function transformAiErrorResponse(\n isContractorOfRecord: boolean,\n): string {\n const remoteAiErrorMessage = isContractorOfRecord\n ? REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE\n : REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE;\n return remoteAiErrorMessage;\n}\n"],"mappings":"uGA0BO,SAASA,EAAWC,EAAqB,CAAC,EAAG,CA2ClD,IAAMC,EAtCD,CACH,CACE,KAAM,iBACN,MAAO,iBACP,QAAS,EAAQD,GAAQ,oBAC3B,EACA,CACE,KAAM,oBACN,MAAO,oBACP,QAAS,EACX,EACA,CACE,KAAM,eACN,MAAO,eACP,QAAS,EACX,EACA,CACE,KAAM,4BACN,MAAO,4BACP,QAAS,EAAQA,GAAQ,+BAC3B,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EACX,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EAAQA,GAAQ,sBAC3B,EACA,CACE,KAAM,SACN,MAAO,SACP,QAAS,EACX,CACF,EAEmC,IAAI,CAACE,EAAMC,KAAW,CACvD,KAAMD,EAAK,KACX,MAAAC,EACA,MAAOD,EAAK,MACZ,QAASA,EAAK,OAChB,EAAE,EAcF,MAAO,CAAE,MAZKD,EAAW,OACvB,CAACG,EAAKF,KACJE,EAAIF,EAAK,IAAI,EAAI,CACf,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,QAASA,EAAK,OAChB,EACOE,GAET,CAAC,CACH,EAEgB,WAAAH,CAAW,CAC7B,CA/DgBI,EAAAN,EAAA,cAqET,IAAMO,EAA2CD,EAAA,CACtDE,EACAC,IACuB,CAMvB,GAJED,GACAC,GACAD,IAAmCC,EAMnC,MAAO,qEAHuB,kFAC5BD,CACF,0EACiG,EAGrG,EAhBwD,4CAqB3CE,EAAeJ,EAACK,GAEzBA,IAAiBC,GACjBD,IAAiBE,EAHO,gBAOtBC,EAA4B,CAAC,MAAO,MAAO,MAAO,MAAO,KAAK,EAKvDC,EAA2BT,EAACU,GAChCF,EAA0B,SAASE,CAAW,EADf,4BAU3BC,EAAuBX,EAAA,CAClCY,EACAC,IAEI,CAACA,GAAmBA,EAAgB,SAAW,EAC1C,GAGF,CAACA,EAAgB,KACrBC,GAAaC,EAAuBD,CAAQ,IAAMF,CACrD,EAVkC,wBAmBvBI,EAA4D,CACvE,UACA,2BACA,sBACF,EAEaC,EAA+D,CAC1E,2BACA,SACF,EAQO,SAASC,EACdC,EACQ,CAIR,OAH6BA,EACzBC,EACAC,CAEN,CAPgBrB,EAAAkB,EAAA","names":["buildSteps","config","stepsArray","step","index","acc","__name","calculateProvisionalStartDateDescription","employmentProvisionalStartDate","fieldProvisionalStartDate","isCMOrCMPlus","subscription","contractorStandardProductIdentifier","contractorPlusProductIdentifier","NATIONALITY_COUNTRY_CODES","isNationalityCountryCode","countryCode","shouldIncludeProduct","productIdentifier","excludeProducts","excluded","PRODUCT_IDENTIFIER_MAP","reviewStepAllowedEmploymentStatus","disabledInviteButtonEmploymentStatus","transformAiErrorResponse","isContractorOfRecord","REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE","REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE"]}
1
+ {"version":3,"sources":["../src/flows/ContractorOnboarding/utils.ts"],"sourcesContent":["import { Step } from '@/src/flows/useStepState';\nimport {\n contractorStandardProductIdentifier,\n contractorPlusProductIdentifier,\n ProductType,\n PRODUCT_IDENTIFIER_MAP,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE,\n REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE,\n} from '@/src/flows/ContractorOnboarding/constants';\nimport { Employment } from '@/src/flows/Onboarding/types';\n\nexport type StepKeys =\n | 'select_country'\n | 'basic_information'\n | 'contract_details'\n | 'eligibility_questionnaire'\n | 'contract_preview'\n | 'pricing_plan'\n | 'review';\n\ntype StepConfig = {\n includeSelectCountry?: boolean;\n includeEligibilityQuestionnaire?: boolean;\n includeContractPreview?: boolean;\n};\n\nexport function buildSteps(config: StepConfig = {}) {\n const stepDefinitions: Array<{\n name: StepKeys;\n label: string;\n visible: boolean;\n }> = [\n {\n name: 'select_country',\n label: 'Select Country',\n visible: Boolean(config?.includeSelectCountry),\n },\n {\n name: 'basic_information',\n label: 'Basic Information',\n visible: true,\n },\n {\n name: 'pricing_plan',\n label: 'Pricing Plan',\n visible: true,\n },\n {\n name: 'eligibility_questionnaire',\n label: 'Eligibility Questionnaire',\n visible: Boolean(config?.includeEligibilityQuestionnaire),\n },\n {\n name: 'contract_details',\n label: 'Contract Details',\n visible: true,\n },\n {\n name: 'contract_preview',\n label: 'Contract Preview',\n visible: Boolean(config?.includeContractPreview),\n },\n {\n name: 'review',\n label: 'Review',\n visible: true,\n },\n ];\n\n const stepsArray = stepDefinitions.map((step, index) => ({\n name: step.name,\n index,\n label: step.label,\n visible: step.visible,\n }));\n\n const steps = stepsArray.reduce(\n (acc, step) => {\n acc[step.name] = {\n index: step.index,\n name: step.name,\n visible: step.visible,\n };\n return acc;\n },\n {} as Record<string, Step<StepKeys>>,\n );\n\n return { steps, stepsArray };\n}\n\n/**\n * Calculates the description for the provisional start date field\n * based on whether the dates match between basic information and contract details steps\n */\nexport const calculateProvisionalStartDateDescription = (\n employmentProvisionalStartDate: string | undefined,\n fieldProvisionalStartDate: string | undefined,\n): string | undefined => {\n const datesNotMatching =\n employmentProvisionalStartDate &&\n fieldProvisionalStartDate &&\n employmentProvisionalStartDate !== fieldProvisionalStartDate;\n\n if (datesNotMatching) {\n const datesDontMatchWarning = `This date does not match the date you provided in the Basic Information step - ${\n employmentProvisionalStartDate\n } - and will override it only when both parties have signed the contract.`;\n return `When the contractor will start providing service to your company. ${datesDontMatchWarning}`;\n }\n return undefined;\n};\n\n/**\n * Checks if the selected pricing plan is CM (standard) or CM+ (plus)\n */\nexport const isCMOrCMPlus = (subscription: string | undefined): boolean => {\n return (\n subscription === contractorStandardProductIdentifier ||\n subscription === contractorPlusProductIdentifier\n );\n};\n\nconst NATIONALITY_COUNTRY_CODES = ['SAU', 'KWT', 'OMN', 'QAT', 'BHR'];\n\n/**\n * Checks if the country code is a country code that requires nationality status field\n */\nexport const isNationalityCountryCode = (countryCode: string) => {\n return NATIONALITY_COUNTRY_CODES.includes(countryCode);\n};\n\n/**\n * Checks if a product should be included based on the excludeProducts list\n * @param productIdentifier - The product identifier to check\n * @param excludeProducts - Array of products to exclude\n * @returns true if the product should be included, false otherwise\n */\nexport const shouldIncludeProduct = (\n productIdentifier: string,\n excludeProducts?: ProductType[],\n): boolean => {\n if (!excludeProducts || excludeProducts.length === 0) {\n return true;\n }\n\n return !excludeProducts.some(\n (excluded) => PRODUCT_IDENTIFIER_MAP[excluded] === productIdentifier,\n );\n};\n\n/**\n * Array of employment statuses that are allowed to proceed to the review step.\n * These statuses indicate that the employment is in a final state and the employment cannot be modified further.\n * @type {Employment['status'][]}\n * @constant\n */\nexport const reviewStepAllowedEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'invited',\n 'created_awaiting_reserve',\n 'created_reserve_paid',\n];\n\nexport const disabledInviteButtonEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'created_awaiting_reserve',\n 'invited',\n];\n\n/**\n * Transforms AI error messages to use default localized messages\n * @param isContractorOfRecord - Whether the contractor is a Contractor of Record\n * @param errors - Array of error messages from the API\n * @returns Array containing the appropriate default error message\n */\nexport function transformAiErrorResponse(\n isContractorOfRecord: boolean,\n): string {\n const remoteAiErrorMessage = isContractorOfRecord\n ? REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE\n : REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE;\n return remoteAiErrorMessage;\n}\n"],"mappings":"uGA0BO,SAASA,EAAWC,EAAqB,CAAC,EAAG,CA2ClD,IAAMC,EAtCD,CACH,CACE,KAAM,iBACN,MAAO,iBACP,QAAS,EAAQD,GAAQ,oBAC3B,EACA,CACE,KAAM,oBACN,MAAO,oBACP,QAAS,EACX,EACA,CACE,KAAM,eACN,MAAO,eACP,QAAS,EACX,EACA,CACE,KAAM,4BACN,MAAO,4BACP,QAAS,EAAQA,GAAQ,+BAC3B,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EACX,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EAAQA,GAAQ,sBAC3B,EACA,CACE,KAAM,SACN,MAAO,SACP,QAAS,EACX,CACF,EAEmC,IAAI,CAACE,EAAMC,KAAW,CACvD,KAAMD,EAAK,KACX,MAAAC,EACA,MAAOD,EAAK,MACZ,QAASA,EAAK,OAChB,EAAE,EAcF,MAAO,CAAE,MAZKD,EAAW,OACvB,CAACG,EAAKF,KACJE,EAAIF,EAAK,IAAI,EAAI,CACf,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,QAASA,EAAK,OAChB,EACOE,GAET,CAAC,CACH,EAEgB,WAAAH,CAAW,CAC7B,CA/DgBI,EAAAN,EAAA,cAqET,IAAMO,EAA2CD,EAAA,CACtDE,EACAC,IACuB,CAMvB,GAJED,GACAC,GACAD,IAAmCC,EAMnC,MAAO,qEAHuB,kFAC5BD,CACF,0EACiG,EAGrG,EAhBwD,4CAqB3CE,EAAeJ,EAACK,GAEzBA,IAAiBC,GACjBD,IAAiBE,EAHO,gBAOtBC,EAA4B,CAAC,MAAO,MAAO,MAAO,MAAO,KAAK,EAKvDC,EAA2BT,EAACU,GAChCF,EAA0B,SAASE,CAAW,EADf,4BAU3BC,EAAuBX,EAAA,CAClCY,EACAC,IAEI,CAACA,GAAmBA,EAAgB,SAAW,EAC1C,GAGF,CAACA,EAAgB,KACrBC,GAAaC,EAAuBD,CAAQ,IAAMF,CACrD,EAVkC,wBAmBvBI,EAA4D,CACvE,YACA,UACA,2BACA,sBACF,EAEaC,EAA+D,CAC1E,YACA,2BACA,SACF,EAQO,SAASC,EACdC,EACQ,CAIR,OAH6BA,EACzBC,EACAC,CAEN,CAPgBrB,EAAAkB,EAAA","names":["buildSteps","config","stepsArray","step","index","acc","__name","calculateProvisionalStartDateDescription","employmentProvisionalStartDate","fieldProvisionalStartDate","isCMOrCMPlus","subscription","contractorStandardProductIdentifier","contractorPlusProductIdentifier","NATIONALITY_COUNTRY_CODES","isNationalityCountryCode","countryCode","shouldIncludeProduct","productIdentifier","excludeProducts","excluded","PRODUCT_IDENTIFIER_MAP","reviewStepAllowedEmploymentStatus","disabledInviteButtonEmploymentStatus","transformAiErrorResponse","isContractorOfRecord","REMOTE_AI_SERVICES_AND_DELIVERABLES_COR_ERROR_MESSAGE","REMOTE_AI_SERVICES_AND_DELIVERABLES_ERROR_MESSAGE"]}
@@ -1,2 +1,2 @@
1
- import{c as d,d as S}from"./chunk-DUJVDBY4.js";import{a as f}from"./chunk-KSHK3ZPX.js";import{a as u}from"./chunk-HN5HLFTB.js";import{b as C}from"./chunk-KFYWUBRS.js";import{f as y}from"./chunk-5BU3CD2P.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
2
- //# sourceMappingURL=chunk-Z4USLCXF.js.map
1
+ import{c as d,d as S}from"./chunk-NQUXKKDJ.js";import{a as u}from"./chunk-HN5HLFTB.js";import{a as f}from"./chunk-KSHK3ZPX.js";import{b as C}from"./chunk-KFYWUBRS.js";import{f as y}from"./chunk-UGPYPGVV.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
2
+ //# sourceMappingURL=chunk-AAFMRJIJ.js.map
@@ -1,2 +1,2 @@
1
- import{a as o,b as r}from"./chunk-PX5PE6GX.js";import{a as t}from"./chunk-XX25MIBS.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";var n={[o]:" Remote provides its Contractor Services Agreement (CSA) \u201Cas is\u201D; it does not constitute legal advice or create an attorney-client relationship with Remote. Remote is not liable for the content You enter herein and You are encouraged to seek independent legal advice tailored to the specific relationship between You and Your Contractor. By use of the CSA, You release Remote from liability for any claim for damages or losses which may arise related to Your use thereof.",[r]:"Remote provides its Contractor Services Agreement (CSA) \u201Cas is\u201D; it does not constitute legal advice or create an attorney-client relationship with Remote. Remote is not liable for the content You enter herein and You are encouraged to seek independent legal advice tailored to the specific relationship between You and Your Contractor."},d=e(({subscription:i})=>a(t,{title:"Contractor Services Agreement",description:n[i],severity:"info"}),"StatementOfWorkDisclaimer");export{d as a};
2
- //# sourceMappingURL=chunk-OO3VBBVN.js.map
1
+ import{a as o,b as r}from"./chunk-K5RHOXWA.js";import{a as t}from"./chunk-QPAABSI5.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";var n={[o]:" Remote provides its Contractor Services Agreement (CSA) \u201Cas is\u201D; it does not constitute legal advice or create an attorney-client relationship with Remote. Remote is not liable for the content You enter herein and You are encouraged to seek independent legal advice tailored to the specific relationship between You and Your Contractor. By use of the CSA, You release Remote from liability for any claim for damages or losses which may arise related to Your use thereof.",[r]:"Remote provides its Contractor Services Agreement (CSA) \u201Cas is\u201D; it does not constitute legal advice or create an attorney-client relationship with Remote. Remote is not liable for the content You enter herein and You are encouraged to seek independent legal advice tailored to the specific relationship between You and Your Contractor."},d=e(({subscription:i})=>a(t,{title:"Contractor Services Agreement",description:n[i],severity:"info"}),"StatementOfWorkDisclaimer");export{d as a};
2
+ //# sourceMappingURL=chunk-AROUKJ3F.js.map
@@ -1,2 +1,2 @@
1
- import{a as n,b as m,c as a}from"./chunk-Q5WADFQ7.js";import{a as r}from"./chunk-P37U34EQ.js";import{CheckIcon as p,FileText as s}from"lucide-react";import{jsx as t,jsxs as i}from"react/jsx-runtime";var P=r(({reviewCompleted:l,label:e,description:o})=>i(n,{variant:"default",children:[l?t(p,{className:"h-4 w-4"}):t(s,{className:"h-4 w-4"}),e&&t(m,{dangerouslySetInnerHTML:{__html:e}}),o&&t(a,{dangerouslySetInnerHTML:{__html:o}})]}),"ContractPreviewStatement");export{P as a};
2
- //# sourceMappingURL=chunk-6NTCRGOD.js.map
1
+ import{a as n,b as m,c as a}from"./chunk-KUMYB3ZB.js";import{a as r}from"./chunk-P37U34EQ.js";import{CheckIcon as p,FileText as s}from"lucide-react";import{jsx as t,jsxs as i}from"react/jsx-runtime";var P=r(({reviewCompleted:l,label:e,description:o})=>i(n,{variant:"default",children:[l?t(p,{className:"h-4 w-4"}):t(s,{className:"h-4 w-4"}),e&&t(m,{dangerouslySetInnerHTML:{__html:e}}),o&&t(a,{dangerouslySetInnerHTML:{__html:o}})]}),"ContractPreviewStatement");export{P as a};
2
+ //# sourceMappingURL=chunk-AX7YWH45.js.map
@@ -1,2 +1,2 @@
1
- import{b as n}from"./chunk-MRYRNB7Y.js";import{a as l}from"./chunk-U5QVIJOS.js";import{a as t}from"./chunk-N2MBTATE.js";import{h as a}from"./chunk-5BU3CD2P.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e}from"react/jsx-runtime";function S({defaultValues:s,fields:i,onSubmit:d}){let{formId:F,terminationBag:o}=n(),m=l({handleValidation:o.handleValidation,defaultValues:s,checkFieldUpdates:o.checkFieldUpdates}),u=i||(o?.fields??[]);return e(a,{...m,children:e("form",{id:F,onSubmit:m.handleSubmit(d),className:"space-y-4 RemoteFlows__TerminationForm",children:e(t,{fields:u})})})}r(S,"TerminationForm");export{S as a};
2
- //# sourceMappingURL=chunk-KYNIBHVR.js.map
1
+ import{b as n}from"./chunk-MRYRNB7Y.js";import{a as l}from"./chunk-OVIOWKNG.js";import{a as t}from"./chunk-BYUVUCEV.js";import{h as a}from"./chunk-UGPYPGVV.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as e}from"react/jsx-runtime";function S({defaultValues:s,fields:i,onSubmit:d}){let{formId:F,terminationBag:o}=n(),m=l({handleValidation:o.handleValidation,defaultValues:s,checkFieldUpdates:o.checkFieldUpdates}),u=i||(o?.fields??[]);return e(a,{...m,children:e("form",{id:F,onSubmit:m.handleSubmit(d),className:"space-y-4 RemoteFlows__TerminationForm",children:e(t,{fields:u})})})}r(S,"TerminationForm");export{S as a};
2
+ //# sourceMappingURL=chunk-B33CFFRO.js.map
@@ -0,0 +1,2 @@
1
+ import{a as J}from"./chunk-QPAABSI5.js";import{b as ne,c as ie,f as le}from"./chunk-Z3N32RAC.js";import{a as re}from"./chunk-C5TVWLAX.js";import{a as oe}from"./chunk-NHLUPT2E.js";import{a as te}from"./chunk-ZLZAHVV5.js";import{b as G}from"./chunk-TUJZUC3C.js";import{c as g,i as T,m as B}from"./chunk-UGPYPGVV.js";import{l as j,m as ee,n as V,r as O}from"./chunk-EFL7QFFN.js";import{b as S,c as x}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as oo,useEffect as to,useRef as Ve}from"react";import H from"lodash.omit";import{jsx as se}from"react/jsx-runtime";function me({description:e,label:o,name:t,minDate:r,maxDate:l,onChange:i,component:a,...s}){let{components:p}=S(),{control:c}=g(),F=x(),m;s.meta?.mot&&typeof s.meta.mot=="number"?m=j(s.meta.mot):typeof r=="string"&&(m=new Date(`${r}T00:00:00`));let f;return l&&(f=new Date(`${l}T23:59:59`)),se(T,{control:c,name:t,render:({field:C,fieldState:h})=>{let u=a||p?.date;if(!u)throw new Error(`Date picker component not found for field ${t}`);let P={description:e,label:o,name:t,onChange:i,transformHtml:F,...m&&{minDate:m.toISOString()},...f&&{maxDate:f.toISOString()},...s};return se(u,{field:{...C,onChange:n(y=>{C.onChange(y),i?.(y)},"onChange")},fieldState:h,fieldData:P})}})}n(me,"DatePickerField");import{jsx as ae}from"react/jsx-runtime";var Le=n((e,o)=>{if(!o)return null;for(let t of e)if(t.size>o){let r=Math.round(o/1048576),l=Math.round(t.size/(1024*1024));return`File "${t.name}" exceeds maximum size of ${r}MB (file is ${l}MB)`}return null},"validateFileSize");function de({name:e,description:o,label:t,multiple:r,onChange:l,component:i,accept:a,maxSize:s,...p}){let{components:c}=S(),{control:F,setError:m,clearErrors:f}=g(),C=x(),h=n(async(u,P)=>{let y=Le(u,s);if(y){m(e,{message:y});return}f(e),P.onChange(u),l?.(u)},"handleOnChange");return ae(T,{control:F,name:e,render:({field:u,fieldState:P})=>{let y=i||c.file;if(!y)throw new Error(`File upload component not found for field ${e}`);let b={name:e,description:o,label:t,multiple:r,accept:a,maxFileSize:s,transformHtml:C,...p};return ae(y,{field:{...u,value:u.value,onChange:n(async v=>h(v,u),"onChange")},fieldState:P,fieldData:b})}})}n(de,"FileUploadField");import{jsx as pe}from"react/jsx-runtime";function I({component:e,onChange:o,...t}){let{components:r}=S(),{control:l}=g(),i=x();return pe(T,{control:l,name:t.name,render:({field:a,fieldState:s})=>{let p=e||r.number;if(!p)throw new Error(`Number component not found for field ${t.name}`);let c={onChange:o,transformHtml:i,...t};return pe(p,{field:{...a,onChange:n(F=>{a.onChange(F),o?.(F)},"onChange")},fieldState:s,fieldData:c})}})}n(I,"NumberField");import{jsx as ce}from"react/jsx-runtime";function ue({name:e,defaultValue:o,description:t,label:r,options:l,onChange:i,component:a,...s}){let{components:p}=S(),{control:c}=g(),F=x();return ce(T,{control:c,name:e,defaultValue:o,render:({field:m,fieldState:f})=>{let C=a||p?.radio;if(!C)throw new Error(`Radio group component not found for field ${e}`);let h={name:e,defaultValue:o,description:t,label:r,options:l,transformHtml:F,...s};return ce(C,{field:{...m,onChange:n(u=>{m.onChange(u),i?.(u)},"onChange")},fieldState:f,fieldData:h})}})}n(ue,"RadioGroupField");import{jsx as Fe}from"react/jsx-runtime";function fe({label:e,name:o,options:t,defaultValue:r,description:l,onChange:i,component:a,...s}){let{control:p}=g(),{components:c}=S(),F=x();return Fe(T,{defaultValue:r,control:p,name:o,render:({field:m,fieldState:f})=>{let C=a||c?.select;if(!C)throw new Error(`Select component not found for field ${o}`);let h={label:e,name:o,options:t,defaultValue:r,description:l,onChange:i,transformHtml:F,...s};return Fe(C,{field:{...m,onChange:n(u=>{let y=(Array.isArray(s.jsonType)?s.jsonType.includes("number"):s.jsonType==="number")?Number(u):u;m.onChange(y),i?.(y)},"onChange")},fieldState:f,fieldData:h})}})}n(fe,"SelectField");import{jsx as Ce}from"react/jsx-runtime";function ge({label:e,name:o,options:t,defaultValue:r,description:l,onChange:i,$meta:a,component:s,...p}){let{control:c}=g(),{components:F}=S(),m=x();return Ce(T,{defaultValue:r,control:c,name:o,render:({field:f,fieldState:C})=>{let h=s||F.countries;if(!h)throw new Error(`Country component not found for field ${o}`);let u={label:e,name:o,options:t,defaultValue:r,description:l,onChange:i,$meta:a,transformHtml:m,...p};return Ce(h,{field:{...f,onChange:n(P=>{f.onChange(P),i?.(P)},"onChange")},fieldState:C,fieldData:u})}})}n(ge,"CountryField");import{jsx as he}from"react/jsx-runtime";function Se({name:e,description:o,label:t,onChange:r,maxLength:l,component:i,...a}){let{components:s}=S(),{control:p}=g(),c=x();return he(T,{control:p,name:e,render:({field:F,fieldState:m})=>{let f=i||s.textarea;if(!f)throw new Error(`Text area component not found for field ${e}`);let C={name:e,description:o,label:t,maxLength:l,transformHtml:c,...a};return he(f,{field:{...F,onChange:n(h=>{F.onChange(h),r?.(h)},"onChange")},fieldState:m,fieldData:C})}})}n(Se,"TextAreaField");import{jsx as Te}from"react/jsx-runtime";function xe({component:e,onChange:o,...t}){let{components:r}=S(),{control:l}=g(),i=x();return Te(T,{control:l,name:t.name,render:({field:a,fieldState:s})=>{let p=e||r.email;if(!p)throw new Error(`Email component not found for field ${t.name}`);let c={onChange:o,transformHtml:i,...t};return Te(p,{field:{...a,onChange:n(F=>{a.onChange(F),o?.(F)},"onChange")},fieldState:s,fieldData:c})}})}n(xe,"EmailField");import{jsx as ye}from"react/jsx-runtime";function be(e){let{control:o}=g();return ye(T,{control:o,name:e.name,render:({field:t})=>ye("input",{...t,type:"hidden"})})}n(be,"HiddenField");import{useEffect as ze,useState as Oe}from"react";import{jsx as Pe}from"react/jsx-runtime";function $e(e){let{components:o}=S(),{setValue:t,control:r,watch:l}=g(),i=x(),a=l(e.name),[s,p]=Oe(a),{workHoursSummary:c,breakSummary:F}=ie(s),m=ne(s);ze(()=>{t(e.name,s)},[s,e.name,t]);function f(u){p(u)}n(f,"onSubmit");let C=e.component||o["work-schedule"];if(!C)throw new Error(`Work schedule component not found for field ${e.name}`);let h={...e,onSubmit:f,currentSchedule:s,transformHtml:i,defaultFormattedValue:{workHoursSummary:c,breakSummary:F,totalWorkHours:m}};return Pe(T,{control:r,name:e.name,render:({field:u,fieldState:P})=>Pe(C,{field:{...u,onChange:n(y=>{u.onChange(y),e.onChange?.(y)},"onChange")},fieldState:P,fieldData:h})})}n($e,"WorkScheduleField");import{jsx as De}from"react/jsx-runtime";function Re({label:e,name:o,options:t,defaultValue:r,description:l,onChange:i,component:a,...s}){let{control:p}=g(),{components:c}=S(),F=x();return De(T,{defaultValue:r,control:p,name:o,render:({field:m,fieldState:f})=>{let C=a||c?.["multi-select"];if(!C)throw new Error(`Multi select component not found for field ${o}`);let h={label:e,name:o,options:t,defaultValue:r,description:l,onChange:i,transformHtml:F,...s};return De(C,{field:{...m,onChange:n(u=>{m.onChange(u),i?.(u)},"onChange")},fieldState:f,fieldData:h})}})}n(Re,"MultiSelectField");import{jsx as Ge}from"react/jsx-runtime";var _e=n(e=>Ge(I,{maxLength:15,...e}),"MoneyField");import{useMemo as L,useCallback as ve,useState as Ue,useEffect as Ze,useRef as Ke}from"react";import{jsx as U}from"react/jsx-runtime";function qe(e){return e.replace(/\s/g,"")}n(qe,"removeSpaces");function Ee(e="",o){let t=new RegExp(`^(\\+|00)(\\d{${o?.dialCode?.length??0}})(.*)$`),r=e?.match(t);if(!r)return{prefix:"",dialCode:"",phoneNumber:e};let[,l,i,a]=r;return{prefix:l,dialCode:i,phoneNumber:a}}n(Ee,"getStructuredNumberFromInternationalNumber");function we({dialCodes:e,dialCodeMaxLength:o},t){let{prefix:r}=Ee(t);if(r)for(let l=o+r.length;l>r.length;l--){let i=t.slice(r.length,l);if(e[i])return e[i]}}n(we,"getCountryFromPhoneNumber");function Me(e){let o={},t=0;return e.forEach(r=>{r.areaCodes?r.areaCodes.forEach(l=>{let i=r.dialCode+l;o[i]=r,i.length>t&&(t=i.length)}):(o[r.dialCode]=r,r.dialCode.length>t&&(t=r.dialCode.length))}),{dialCodes:o,dialCodeMaxLength:t}}n(Me,"getCountryDataByCountryCode");function Qe(e=""){let o=/\(([^)]+)\)/g,t=e.match(o);if(t?.length===2)return t[1].replace(/\(|\)/g,"").split("|")}n(Qe,"getAreaCodesFromPattern");function Xe(e){return e.map(o=>({name:o.label,dialCode:o.meta.countryCode,pattern:o.pattern,areaCodes:Qe(o.pattern)}))}n(Xe,"transformSchemaToCountries");function Ye({field:e,fieldState:o,fieldData:t,component:r,onChangeCountryCode:l,onChangePhoneNumber:i}){let{value:a}=e,{options:s}=t,p=L(()=>Xe(s),[s]),c=L(()=>Me(p),[p]),F=Ke(!1),[m,f]=Ue(()=>we(Me(p),a||""));Ze(()=>{if((!a||a==="+")&&(F.current=!1),F.current)return;let b=we(c,a||"");f(b)},[a,c]);let{prefix:C,phoneNumber:h}=L(()=>Ee(a,m),[a,m]),u=ve(b=>{if(!b)return;let v=`+${b.dialCode}${h}`;F.current=!0,f(b),e.onChange(v),l&&l(b)},[h,e,l]),P=ve(b=>{let v=qe(b.target.value),E;if(m?E=`${C}${m.dialCode}${v}`:E=`${C}${v}`,e.onChange(E),i){let N={target:{value:E,name:e.name}};i(N)}},[m,C,e,i]),y=L(()=>({...t,onChangeCountryCode:u,onChangePhoneNumber:P,currentCountry:m,nationalPhoneNumber:h}),[t,u,P,m,h]);return U(r,{field:e,fieldState:o,fieldData:y})}n(Ye,"TelFieldRenderer");function Ne({name:e,description:o,label:t,onChangeCountryCode:r,onChangePhoneNumber:l,component:i,...a}){let{components:s}=S(),{control:p}=g(),c=x();return U(T,{control:p,name:e,render:({field:F,fieldState:m})=>{let f=i||s.tel;if(!f)throw new Error(`Tel component not found for field ${e}`);let C={name:e,description:o,label:t,transformHtml:c,...a};return U(Ye,{field:F,fieldState:m,fieldData:C,component:f,onChangeCountryCode:r,onChangePhoneNumber:l})}})}n(Ne,"TelField");var Z={checkbox:le,text:te,email:xe,money:_e,select:fe,"multi-select":Re,radio:ue,number:I,file:de,date:me,textarea:Se,countries:ge,hidden:be,tel:Ne,"work-schedule":$e};import{useEffect as je}from"react";import{jsx as K,jsxs as eo}from"react/jsx-runtime";function ke({name:e,value:o,description:t,statement:r,label:l,helpCenter:i}){let{setValue:a}=g(),s=r?.description||t,p=r?.title?O(r?.title):O(l),c=`forced-value-${e}-title`,F=`forced-value-${e}-description`;return je(()=>{a(e,o)},[e,o,a]),!s&&!r?.title?null:eo("div",{role:"group","aria-labelledby":p?c:void 0,"aria-describedby":s?F:void 0,children:[p&&K("p",{id:c,className:`text-sm RemoteFlows__ForcedValue__Title__${e}`,dangerouslySetInnerHTML:{__html:p}}),K(B,{as:"span",id:F,className:`text-xs RemoteFlows__ForcedValue__Description__${e}`,helpCenter:K(oe,{className:"RemoteFlows__ForcedValue__HelpCenterLink",helpCenter:i}),children:s})]})}n(ke,"ForcedValueField");import{Fragment as q,jsx as $,jsxs as M}from"react/jsx-runtime";function He({label:e,name:o,fields:t,description:r,components:l,statement:i,isFlatFieldset:a,extra:s,variant:p="outset",features:c,meta:F}){let{helpCenter:m}=F||{},{watch:f,setValue:C,trigger:h,formState:u}=g(),{components:P}=S(),y=c?.toggle?.stateField,b=y?f(y):c?.toggle?.defaultExpanded??!0,v=t.map(({name:d})=>`${o}.${d}`),E=t.some(d=>d.calculateDynamicProperties),N=f(v),We=E?f():N,Q=Ve(N),k=Ve(null),Ae=n(()=>{y&&C(y,!b)},"toggleExpanded");to(()=>{let d=N,w=Q.current,R=u.isSubmitted||u.submitCount>0,W=!1;for(let _=0;_<d.length;_++)if(d[_]!==void 0&&w[_]!==d[_]){W=!0;break}return W&&R&&(k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{h()},50)),Q.current=[...d],()=>{k.current&&clearTimeout(k.current)}},[N,h,u.isSubmitted,u.submitCount]);let Be=P?.fieldsetToggle||re,X=`${o}-content`,Y=`${o}-header`;return M("fieldset",{className:V("border-1 border-input p-4 rounded-xl","RemoteFlows__FieldSetField",`RemoteFlows__FieldSetField__${o}`),children:[$("legend",{className:V("text-sm font-semibold px-2",p==="inset"&&"hidden"),children:e}),m?.callToAction&&m?.id&&p==="outset"&&$(G,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:m.id,children:m.callToAction}),p==="inset"&&M(q,{children:[M("div",{className:"RemoteFlows__FieldSetField__Header",id:Y,"data-state":b?"expanded":"collapsed","aria-expanded":b,children:[$("h3",{className:V("RemoteFlows__FieldSetField__Title"),children:e}),c?.toggle?.enabled&&$(Be,{isExpanded:b,onToggle:Ae,"aria-expanded":b,"aria-controls":X,"aria-label":`${b?"Hide":"Show"} ${e}`,className:V("RemoteFlows__FieldSetField__Toggle",c.toggle?.className),children:b?c.toggle.labels?.collapse??"Remove":c.toggle.labels?.expand??"Define"})]}),m?.callToAction&&m?.id&&$(G,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:m.id,children:m.callToAction})]}),b&&M("div",{id:X,"aria-labelledby":Y,role:"region",children:[r?$(B,{as:"div",className:"mb-5 RemoteFlows__FieldSetField__Description",children:r}):null,M("div",{className:"grid gap-4",children:[t.map(d=>{if(d.calculateDynamicProperties&&(d={...d,...d.calculateDynamicProperties(We,d)||{}}),d.isVisible===!1||d.deprecated)return null;let w=d.type,R=`${a?d.name:`${o}.${d.name}`}`,W=ee(d),_=n((D,A)=>d.WrapperComponent?$(d.WrapperComponent,{children:D},A):$(oo,{children:D},A),"wrapWithCustomWrapper");if(W){let D=H(d,"WrapperComponent");return _($(ke,{name:R,description:D.description,value:D.const,statement:D.statement,label:D.label,helpCenter:D.meta?.helpCenter}),R)}if(w==="fieldset"){let D=H(d,"WrapperComponent");return _($(He,{...D,name:R,components:l}),R)}if(w==="fieldset-flat"){let D=H(d,"WrapperComponent");return _($(He,{...D,name:R,components:l,isFlatFieldset:!0}),R)}let z=Z[w];if(d.Component){let{Component:D}=d,A=H(d,"WrapperComponent");return _(M(q,{children:[$(D,{...A,value:f(R),setValue:Ie=>{C(R,Ie)}}),d.statement?$(J,{...d.statement}):null,d.extra?d.extra:null]}),R)}if(!z)return M("p",{className:"error",children:["Field type ",w," not supported"]});w==="select"&&d.multiple&&(z=Z["multi-select"]);let Je=H(d,"WrapperComponent");return _(M(q,{children:[$(z,{...Je,name:R,component:l?.[w]}),d.statement?$(J,{...d.statement}):null,d.extra?d.extra:null]}),R)}),s||null,i?$(J,{...i}):null]})]})]})}n(He,"FieldSetField");export{Z as a,ke as b,He as c};
2
+ //# sourceMappingURL=chunk-B5ZUJ3BW.js.map