@remoteoss/remote-flows 1.37.0 → 1.39.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 (542) hide show
  1. package/dist/ButtonDefault-5GP4VFZL.js +2 -0
  2. package/dist/CheckboxFieldDefault-O6OH63GG.js +2 -0
  3. package/dist/CountryFieldDefault-DVWWTDEO.js +2 -0
  4. package/dist/DatePickerFieldDefault-XY2SCOWG.js +2 -0
  5. package/dist/DrawerDefault-UVRSWQLP.js +2 -0
  6. package/dist/EmailFieldDefault-JN6IDGVM.js +2 -0
  7. package/dist/FieldsetToggleButtonDefault-KVIBW3UI.js +2 -0
  8. package/dist/FileUploadFieldDefault-SD3A25KP.js +2 -0
  9. package/dist/MultiSelectFieldDefault-ZLRPID6V.js +2 -0
  10. package/dist/NumberFieldDefault-MXN7XDOC.js +2 -0
  11. package/dist/RadioGroupFieldDefault-4P4DRXR2.js +2 -0
  12. package/dist/SelectFieldDefault-IUECL5R6.js +2 -0
  13. package/dist/StatementDefault-6B2AXWUL.js +2 -0
  14. package/dist/TableFieldDefault-ZC2IJBFY.js +2 -0
  15. package/dist/TelFieldDefault-PUE57NPS.js +2 -0
  16. package/dist/TextAreaFieldDefault-A2LOPUE3.js +2 -0
  17. package/dist/TextFieldDefault-WSEEAHJV.js +2 -0
  18. package/dist/TimeFieldDefault-K5LYUXKT.js +2 -0
  19. package/dist/WorkScheduleFieldDefault-6DC7RDII.js +2 -0
  20. package/dist/ZendeskDrawerDefault-2DNA653G.js +2 -0
  21. package/dist/{chunk-QZXOBKVL.js → chunk-25PGBGEV.js} +2 -2
  22. package/dist/{chunk-4YAFCYZ7.js → chunk-27TI6URK.js} +2 -2
  23. package/dist/{chunk-5EUXQYKE.js → chunk-2A25NRQT.js} +2 -2
  24. package/dist/{chunk-6UWJNDPG.js → chunk-2BCZXNBX.js} +2 -2
  25. package/dist/{chunk-OMAWYQU7.js → chunk-2DNWLRNL.js} +2 -2
  26. package/dist/{chunk-YP6NGX7S.js → chunk-343R3QEG.js} +2 -2
  27. package/dist/{chunk-WQ27VHVA.js → chunk-3B6BHFDV.js} +2 -2
  28. package/dist/{chunk-VUGTA3CI.js → chunk-3CLZOKEI.js} +2 -2
  29. package/dist/{chunk-TKENZ25F.js → chunk-3UBFABDS.js} +2 -2
  30. package/dist/{chunk-D53TVHHK.js → chunk-44XEUAFV.js} +2 -2
  31. package/dist/{chunk-JSFVJCPK.js → chunk-4MB3FE3T.js} +2 -2
  32. package/dist/chunk-4TNJXIDB.js +2 -0
  33. package/dist/chunk-4TNJXIDB.js.map +1 -0
  34. package/dist/{chunk-AZJ2LLX5.js → chunk-53TM77OU.js} +2 -2
  35. package/dist/{chunk-BFYHFJHJ.js → chunk-54Z4QJ3Q.js} +2 -2
  36. package/dist/chunk-5MPW7QWT.js +2 -0
  37. package/dist/{chunk-P6PJDSR5.js → chunk-5XVYIBJD.js} +2 -2
  38. package/dist/{chunk-2ADIF2YA.js → chunk-6HAWSFOM.js} +2 -2
  39. package/dist/{chunk-QOH4BNEZ.js → chunk-6PWZ4TBI.js} +2 -2
  40. package/dist/{chunk-BJPP76IU.js → chunk-74ICDGQK.js} +2 -2
  41. package/dist/{chunk-O77SKTAI.js → chunk-76VZ4ARW.js} +2 -2
  42. package/dist/{chunk-AROUKJ3F.js → chunk-7BPB4PXN.js} +2 -2
  43. package/dist/{chunk-4T66UEMY.js → chunk-7D4XFAQR.js} +2 -2
  44. package/dist/{chunk-TZA2SOIV.js → chunk-A2WWDGJJ.js} +2 -2
  45. package/dist/{chunk-GRNUG4VT.js → chunk-ASTB4YJL.js} +2 -2
  46. package/dist/{chunk-EKRKYUUE.js → chunk-AXDL47BE.js} +2 -2
  47. package/dist/{chunk-BVUHS36Q.js → chunk-BRI2ESJ3.js} +2 -2
  48. package/dist/{chunk-VY435JUV.js → chunk-BRN6MO77.js} +2 -2
  49. package/dist/{chunk-KUMYB3ZB.js → chunk-BUOHZMK6.js} +2 -2
  50. package/dist/{chunk-KOLEBOZV.js → chunk-CFOXBJRN.js} +2 -2
  51. package/dist/{chunk-DAQZZBSX.js → chunk-DJGO6WYW.js} +2 -2
  52. package/dist/{chunk-YG5NCEC6.js → chunk-DJIQISA2.js} +2 -2
  53. package/dist/{chunk-GCYQVKEN.js → chunk-DMNKKWLY.js} +2 -2
  54. package/dist/{chunk-XO5ZAXQI.js → chunk-DNAPYU5I.js} +2 -2
  55. package/dist/{chunk-3BNHBFVL.js → chunk-DO7OL4EG.js} +2 -2
  56. package/dist/chunk-DRAQLW6C.js +2 -0
  57. package/dist/chunk-DRAQLW6C.js.map +1 -0
  58. package/dist/{chunk-WWFORUHG.js → chunk-ECGNGVSC.js} +2 -2
  59. package/dist/chunk-EFC4EDTM.js +2 -0
  60. package/dist/chunk-EFC4EDTM.js.map +1 -0
  61. package/dist/chunk-EOOCBFPJ.js +1 -0
  62. package/dist/chunk-EOOCBFPJ.js.map +1 -0
  63. package/dist/{chunk-S2KYDG6K.js → chunk-F35ALUPA.js} +2 -2
  64. package/dist/{chunk-Z3N32RAC.js → chunk-FQFLC6YA.js} +2 -2
  65. package/dist/chunk-G2LZFGZA.js +2 -0
  66. package/dist/chunk-G2LZFGZA.js.map +1 -0
  67. package/dist/{chunk-75SQ56WH.js → chunk-G556HMVA.js} +2 -2
  68. package/dist/{chunk-SIRRTEWC.js → chunk-GF34UO7V.js} +2 -2
  69. package/dist/{chunk-Y36S433X.js → chunk-GGLJSAPH.js} +2 -2
  70. package/dist/{chunk-6VBWP6AA.js → chunk-GKYQ3GAF.js} +2 -2
  71. package/dist/{chunk-2PKH6744.js → chunk-GSB44SSJ.js} +2 -2
  72. package/dist/chunk-GZUP2IE6.js +8 -0
  73. package/dist/chunk-GZUP2IE6.js.map +1 -0
  74. package/dist/{chunk-ZY2EB7PF.js → chunk-H3JUXG2J.js} +2 -2
  75. package/dist/{chunk-TZOTRZGK.js → chunk-HAACNERA.js} +2 -2
  76. package/dist/{chunk-3E6JC5HM.js → chunk-HJOT7JXK.js} +2 -2
  77. package/dist/chunk-I3P3NKFG.js +2 -0
  78. package/dist/chunk-I3P3NKFG.js.map +1 -0
  79. package/dist/{chunk-OVIOWKNG.js → chunk-J2ARI3NQ.js} +2 -2
  80. package/dist/{chunk-S2PN3IWU.js → chunk-JSTCIALQ.js} +2 -2
  81. package/dist/{chunk-YIPQZRQ7.js → chunk-JXZX66MM.js} +2 -2
  82. package/dist/{chunk-NLC63NKD.js → chunk-KAX6IHET.js} +2 -2
  83. package/dist/chunk-KMLI4ISS.js +2 -0
  84. package/dist/chunk-KMLI4ISS.js.map +1 -0
  85. package/dist/{chunk-3PDMZU34.js → chunk-KUKZNLCF.js} +2 -2
  86. package/dist/{chunk-6Y3CFPJN.js → chunk-L2V4ZYCZ.js} +2 -2
  87. package/dist/{chunk-Z7ZRTQE7.js → chunk-LD5KN4ZF.js} +2 -2
  88. package/dist/chunk-LIPJXO2R.js +2 -0
  89. package/dist/chunk-LIPJXO2R.js.map +1 -0
  90. package/dist/{chunk-K44B6MQA.js → chunk-LJUWER2H.js} +2 -2
  91. package/dist/{chunk-OXKDKDSH.js → chunk-LKVQ32ZK.js} +2 -2
  92. package/dist/{chunk-Z5G55QMI.js → chunk-LOPZZUAF.js} +2 -2
  93. package/dist/{chunk-EFJ5PMPI.js → chunk-LTJSD2MC.js} +2 -2
  94. package/dist/{chunk-XFZCY4EF.js → chunk-LXKLBMHD.js} +2 -2
  95. package/dist/{chunk-3KNCGVWU.js → chunk-MDOVS5WS.js} +2 -2
  96. package/dist/{chunk-547SAUNX.js → chunk-MEPIOKJQ.js} +2 -2
  97. package/dist/{chunk-O534T74D.js → chunk-MHIY35CK.js} +2 -2
  98. package/dist/{chunk-W64ERZID.js → chunk-MHOV3CQN.js} +2 -2
  99. package/dist/chunk-MUXNVLZO.js +2 -0
  100. package/dist/chunk-MUXNVLZO.js.map +1 -0
  101. package/dist/{chunk-M4RIGLB4.js → chunk-N6XLGYRK.js} +2 -2
  102. package/dist/{chunk-P4V4AMFC.js → chunk-NFIMSJPH.js} +2 -2
  103. package/dist/{chunk-LQ5GKNVU.js → chunk-OBZMQWQA.js} +2 -2
  104. package/dist/{chunk-RUS5TGZ2.js → chunk-OEVMCP42.js} +2 -2
  105. package/dist/{chunk-H3U6AOLU.js → chunk-OQIJAVBT.js} +2 -2
  106. package/dist/{chunk-GJVGPPYO.js → chunk-OR6ZPNF6.js} +2 -2
  107. package/dist/{chunk-ZLZAHVV5.js → chunk-OV6PV4N5.js} +2 -2
  108. package/dist/{chunk-QPAABSI5.js → chunk-OXTA4W4J.js} +2 -2
  109. package/dist/{chunk-3ECVOIHE.js → chunk-PIHCHWI7.js} +2 -2
  110. package/dist/{chunk-3THSAI2N.js → chunk-PIKEYX3V.js} +2 -2
  111. package/dist/{chunk-ORBP27OM.js → chunk-PJ6KPGIE.js} +2 -2
  112. package/dist/chunk-PPRAWJMR.js +2 -0
  113. package/dist/chunk-PPRAWJMR.js.map +1 -0
  114. package/dist/{chunk-D4ZTTILZ.js → chunk-PQG6KZIO.js} +2 -2
  115. package/dist/{chunk-K5RHOXWA.js → chunk-Q2OGLLBA.js} +2 -2
  116. package/dist/{chunk-K5RHOXWA.js.map → chunk-Q2OGLLBA.js.map} +1 -1
  117. package/dist/{chunk-DN7HJZB3.js → chunk-Q5HDUQPX.js} +2 -2
  118. package/dist/{chunk-S6VLGYPA.js → chunk-Q6GJJRYG.js} +2 -2
  119. package/dist/{chunk-SFYXHH6U.js → chunk-Q6PTVBDS.js} +2 -2
  120. package/dist/{chunk-BNJEVVWG.js → chunk-QFXZTQL7.js} +2 -2
  121. package/dist/{chunk-NKVCGPK6.js → chunk-QJJZTAG2.js} +2 -2
  122. package/dist/{chunk-MR5HKPX2.js → chunk-QSCW4IHJ.js} +2 -2
  123. package/dist/{chunk-6SWW244N.js → chunk-R3HBG6VK.js} +2 -2
  124. package/dist/{chunk-GJIKWHFV.js → chunk-R4TM2Y3K.js} +2 -2
  125. package/dist/{chunk-C5TVWLAX.js → chunk-RR57VT45.js} +2 -2
  126. package/dist/{chunk-GZE3PWOZ.js → chunk-S3EXF5DV.js} +2 -2
  127. package/dist/{chunk-R2L4HXQY.js → chunk-SFJV4CFP.js} +2 -2
  128. package/dist/{chunk-RK4VZQOX.js → chunk-SMBP7A4F.js} +2 -2
  129. package/dist/chunk-SS2SYDCB.js +2 -0
  130. package/dist/chunk-SS2SYDCB.js.map +1 -0
  131. package/dist/{chunk-KMANQZL4.js → chunk-T5J2Z6ZR.js} +2 -2
  132. package/dist/chunk-TBGXSWRX.js +2 -0
  133. package/dist/chunk-TBGXSWRX.js.map +1 -0
  134. package/dist/chunk-TJLXZ2ZK.js +2 -0
  135. package/dist/chunk-TJLXZ2ZK.js.map +1 -0
  136. package/dist/{chunk-XA4CSH2R.js → chunk-TLNE6GTG.js} +2 -2
  137. package/dist/{chunk-F22V7VEW.js → chunk-TMBDUFOH.js} +2 -2
  138. package/dist/{chunk-K52TCY57.js → chunk-TSZLYFYT.js} +2 -2
  139. package/dist/{chunk-PZCRVFCK.js → chunk-UD3YR4VQ.js} +2 -2
  140. package/dist/{chunk-WNEA4YK3.js → chunk-UHN3ELBL.js} +2 -2
  141. package/dist/chunk-UYGDMJF2.js +2 -0
  142. package/dist/chunk-UYGDMJF2.js.map +1 -0
  143. package/dist/chunk-UZ4TEF73.js +1 -0
  144. package/dist/chunk-UZ4TEF73.js.map +1 -0
  145. package/dist/{chunk-YFGM5OOK.js → chunk-V3J5DAMB.js} +2 -2
  146. package/dist/{chunk-MT7H2K34.js → chunk-VDH46ZCF.js} +2 -2
  147. package/dist/{chunk-P3VAZLG4.js → chunk-VEMUIRKC.js} +2 -2
  148. package/dist/chunk-VQ5PL5E3.js +2 -0
  149. package/dist/chunk-VQ5PL5E3.js.map +1 -0
  150. package/dist/{chunk-GPP2S5Q7.js → chunk-VTWVHO4F.js} +2 -2
  151. package/dist/chunk-WCJZAOZR.js +2 -0
  152. package/dist/chunk-WCJZAOZR.js.map +1 -0
  153. package/dist/{chunk-BPHP4644.js → chunk-WLPWXK7I.js} +2 -2
  154. package/dist/{chunk-6BPEPQ3C.js → chunk-WMBHCIFS.js} +2 -2
  155. package/dist/{chunk-KX53HZEP.js → chunk-WMJP2BO5.js} +2 -2
  156. package/dist/{chunk-6OYB7OE5.js → chunk-WYUPZMPN.js} +2 -2
  157. package/dist/{chunk-P3LLZ4SA.js → chunk-XEVHWVBT.js} +2 -2
  158. package/dist/{chunk-YRC6EEM3.js → chunk-XGECMN4V.js} +2 -2
  159. package/dist/{chunk-SCTVUVDF.js → chunk-XV7SBFS5.js} +2 -2
  160. package/dist/chunk-XYCFKCVZ.js +2 -0
  161. package/dist/chunk-XYCFKCVZ.js.map +1 -0
  162. package/dist/{chunk-UGPYPGVV.js → chunk-Y3CJRZLA.js} +2 -2
  163. package/dist/{chunk-AX7YWH45.js → chunk-Y3YYLANJ.js} +2 -2
  164. package/dist/{chunk-UFB5CJCQ.js → chunk-YS6VDGFW.js} +2 -2
  165. package/dist/{chunk-XX6RWLM6.js → chunk-YVS5MBND.js} +2 -2
  166. package/dist/{chunk-AIFEZDEM.js → chunk-ZEC5X3RH.js} +2 -2
  167. package/dist/{chunk-KHX2XRJF.js → chunk-ZOTY3CAM.js} +2 -2
  168. package/dist/{chunk-TXUUBPHA.js → chunk-ZYIEPPSE.js} +2 -2
  169. package/dist/default-components.d.ts +2 -2
  170. package/dist/default-components.js +1 -1
  171. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  172. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  173. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  174. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  175. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  176. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  177. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  178. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  179. package/dist/flows/ContractAmendment/hooks.js +1 -1
  180. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  181. package/dist/flows/ContractAmendment/index.js +1 -1
  182. package/dist/flows/ContractAmendment/types.d.ts +2 -2
  183. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  184. package/dist/flows/ContractAmendment/utils.js +1 -1
  185. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +6 -5
  186. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  187. package/dist/flows/ContractorOnboarding/api.d.ts +2 -2
  188. package/dist/flows/ContractorOnboarding/api.js +1 -1
  189. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +5 -4
  190. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  191. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +6 -5
  192. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  193. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  194. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  195. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
  196. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +6 -5
  197. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  198. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +6 -5
  199. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  200. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +6 -5
  201. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  202. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  203. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  204. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +6 -5
  205. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  206. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
  207. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +5 -4
  208. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  209. package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
  210. package/dist/flows/ContractorOnboarding/constants.d.ts +2 -1
  211. package/dist/flows/ContractorOnboarding/constants.js +1 -1
  212. package/dist/flows/ContractorOnboarding/context.d.ts +6 -5
  213. package/dist/flows/ContractorOnboarding/hooks.d.ts +6 -5
  214. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  215. package/dist/flows/ContractorOnboarding/index.d.ts +6 -5
  216. package/dist/flows/ContractorOnboarding/index.js +1 -1
  217. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +6 -5
  218. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  219. package/dist/flows/ContractorOnboarding/types.d.ts +6 -5
  220. package/dist/flows/ContractorOnboarding/utils.d.ts +5 -4
  221. package/dist/flows/ContractorOnboarding/utils.js +1 -1
  222. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  223. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  224. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  225. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  226. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  227. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  228. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
  229. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  230. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
  231. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
  232. package/dist/flows/CostCalculator/api.d.ts +2 -2
  233. package/dist/flows/CostCalculator/api.js +1 -1
  234. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  235. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  236. package/dist/flows/CostCalculator/context.d.ts +3 -3
  237. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  238. package/dist/flows/CostCalculator/hooks.js +1 -1
  239. package/dist/flows/CostCalculator/index.d.ts +3 -3
  240. package/dist/flows/CostCalculator/index.js +1 -1
  241. package/dist/flows/CostCalculator/types.d.ts +2 -2
  242. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  243. package/dist/flows/CostCalculator/utils.js +1 -1
  244. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  245. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  246. package/dist/flows/CreateCompany/api.d.ts +2 -2
  247. package/dist/flows/CreateCompany/api.js +1 -1
  248. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  249. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  250. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  251. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  252. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  253. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  254. package/dist/flows/CreateCompany/context.d.ts +4 -4
  255. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  256. package/dist/flows/CreateCompany/hooks.js +1 -1
  257. package/dist/flows/CreateCompany/index.d.ts +4 -4
  258. package/dist/flows/CreateCompany/index.js +1 -1
  259. package/dist/flows/CreateCompany/types.d.ts +4 -4
  260. package/dist/flows/Onboarding/OnboardingFlow.d.ts +5 -4
  261. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  262. package/dist/flows/Onboarding/api.d.ts +22 -5
  263. package/dist/flows/Onboarding/api.js +1 -1
  264. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  265. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  266. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +5 -4
  267. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  268. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +5 -4
  269. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  270. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +5 -4
  271. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  272. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +5 -4
  273. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  274. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +5 -4
  275. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  276. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  277. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  278. package/dist/flows/Onboarding/components/PreOnboardingRequirements.d.ts +2 -2
  279. package/dist/flows/Onboarding/components/PreOnboardingRequirements.js +1 -1
  280. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.d.ts +5 -0
  281. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js +2 -0
  282. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js.map +1 -0
  283. package/dist/flows/Onboarding/components/ReviewStep.d.ts +5 -4
  284. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  285. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +5 -4
  286. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  287. package/dist/flows/Onboarding/context.d.ts +13 -4
  288. package/dist/flows/Onboarding/hooks.d.ts +5 -4
  289. package/dist/flows/Onboarding/hooks.js +1 -1
  290. package/dist/flows/Onboarding/index.d.ts +5 -4
  291. package/dist/flows/Onboarding/index.js +1 -1
  292. package/dist/flows/Onboarding/types.d.ts +5 -4
  293. package/dist/flows/Onboarding/utils.d.ts +5 -4
  294. package/dist/flows/Onboarding/utils.js +1 -1
  295. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +15 -0
  296. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +2 -0
  297. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js.map +1 -0
  298. package/dist/flows/PayrollAdminOnboarding/context.d.ts +21 -0
  299. package/dist/flows/PayrollAdminOnboarding/context.js +2 -0
  300. package/dist/flows/PayrollAdminOnboarding/context.js.map +1 -0
  301. package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +10 -0
  302. package/dist/flows/PayrollAdminOnboarding/hooks.js +2 -0
  303. package/dist/flows/PayrollAdminOnboarding/hooks.js.map +1 -0
  304. package/dist/flows/PayrollAdminOnboarding/index.d.ts +12 -0
  305. package/dist/flows/PayrollAdminOnboarding/index.js +2 -0
  306. package/dist/flows/PayrollAdminOnboarding/index.js.map +1 -0
  307. package/dist/flows/PayrollAdminOnboarding/types.d.ts +10 -0
  308. package/dist/flows/PayrollAdminOnboarding/types.js +1 -0
  309. package/dist/flows/PayrollAdminOnboarding/types.js.map +1 -0
  310. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +15 -0
  311. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +2 -0
  312. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js.map +1 -0
  313. package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +21 -0
  314. package/dist/flows/PayrollEmployeeOnboarding/context.js +2 -0
  315. package/dist/flows/PayrollEmployeeOnboarding/context.js.map +1 -0
  316. package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +10 -0
  317. package/dist/flows/PayrollEmployeeOnboarding/hooks.js +2 -0
  318. package/dist/flows/PayrollEmployeeOnboarding/hooks.js.map +1 -0
  319. package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +12 -0
  320. package/dist/flows/PayrollEmployeeOnboarding/index.js +2 -0
  321. package/dist/flows/PayrollEmployeeOnboarding/index.js.map +1 -0
  322. package/dist/flows/PayrollEmployeeOnboarding/types.d.ts +10 -0
  323. package/dist/flows/PayrollEmployeeOnboarding/types.js +1 -0
  324. package/dist/flows/PayrollEmployeeOnboarding/types.js.map +1 -0
  325. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  326. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  327. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  328. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  329. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  330. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  331. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  332. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  333. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  334. package/dist/flows/Termination/TerminationFlow.js +1 -1
  335. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  336. package/dist/flows/Termination/TerminationForm.js +1 -1
  337. package/dist/flows/Termination/api.d.ts +6 -5
  338. package/dist/flows/Termination/api.js +1 -1
  339. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
  340. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  341. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +7 -6
  342. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  343. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +7 -6
  344. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  345. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +7 -6
  346. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  347. package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
  348. package/dist/flows/Termination/context.d.ts +4 -4
  349. package/dist/flows/Termination/hooks.d.ts +4 -4
  350. package/dist/flows/Termination/hooks.js +1 -1
  351. package/dist/flows/Termination/index.d.ts +7 -6
  352. package/dist/flows/Termination/index.js +1 -1
  353. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  354. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  355. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  356. package/dist/flows/Termination/types.d.ts +4 -4
  357. package/dist/flows/Termination/utils.d.ts +4 -4
  358. package/dist/flows/Termination/utils.js +1 -1
  359. package/dist/flows/types.d.ts +2 -2
  360. package/dist/flows/utils.d.ts +2 -2
  361. package/dist/index.d.ts +20 -13
  362. package/dist/index.js +2 -2
  363. package/dist/index.js.map +1 -1
  364. package/dist/internals.d.ts +3 -3
  365. package/dist/internals.js +1 -1
  366. package/dist/{mutations-BVHVt1Kt.d.ts → mutations-DZjKx4tI.d.ts} +1 -1
  367. package/dist/{remoteFlows-CWau1q8v.d.ts → remoteFlows-C4Vv3_7t.d.ts} +1 -1
  368. package/dist/types---jTQSYP.d.ts +53 -0
  369. package/dist/{types-CVQU4sbz.d.ts → types-5jgrwYf3.d.ts} +2 -2
  370. package/dist/{types-BZT3hxkv.d.ts → types-Bptye63R.d.ts} +4 -4
  371. package/dist/{types-KHPnDWtF.d.ts → types-Buo22VR2.d.ts} +3 -3
  372. package/dist/types-Cjy498SD.d.ts +65 -0
  373. package/dist/{types-MdlNPaLh.d.ts → types-HUdcwxhs.d.ts} +21 -6
  374. package/dist/{types-CX5qpDkm.d.ts → types-STTuXABa.d.ts} +1 -1
  375. package/dist/{types.gen-UDDUjQdv.d.ts → types.gen-CTQ9C-mR.d.ts} +69 -2
  376. package/dist/{utils-CjzRkcpV.d.ts → utils-B2zQN-4q.d.ts} +1 -1
  377. package/package.json +2 -2
  378. package/dist/ButtonDefault-4W4M55VE.js +0 -2
  379. package/dist/CheckboxFieldDefault-S34KMEYI.js +0 -2
  380. package/dist/CountryFieldDefault-7QRRW5DN.js +0 -2
  381. package/dist/DatePickerFieldDefault-PXUJRPBW.js +0 -2
  382. package/dist/DrawerDefault-VMG6FKCD.js +0 -2
  383. package/dist/EmailFieldDefault-INNDIQML.js +0 -2
  384. package/dist/FieldsetToggleButtonDefault-2YKED23M.js +0 -2
  385. package/dist/FileUploadFieldDefault-AGLKTUCJ.js +0 -2
  386. package/dist/MultiSelectFieldDefault-X24VSKA7.js +0 -2
  387. package/dist/NumberFieldDefault-QLW7EZ4R.js +0 -2
  388. package/dist/RadioGroupFieldDefault-CHBXLRJG.js +0 -2
  389. package/dist/SelectFieldDefault-SNTI7KXR.js +0 -2
  390. package/dist/StatementDefault-YBHPHVCI.js +0 -2
  391. package/dist/TableFieldDefault-XTCTKLLJ.js +0 -2
  392. package/dist/TelFieldDefault-POAPMI5W.js +0 -2
  393. package/dist/TextAreaFieldDefault-APKDH7AU.js +0 -2
  394. package/dist/TextFieldDefault-7HSHPHOF.js +0 -2
  395. package/dist/TimeFieldDefault-VIR23FMW.js +0 -2
  396. package/dist/WorkScheduleFieldDefault-6NNTPTZ6.js +0 -2
  397. package/dist/ZendeskDrawerDefault-ILQM2VEO.js +0 -2
  398. package/dist/chunk-4YW6P3IJ.js +0 -8
  399. package/dist/chunk-4YW6P3IJ.js.map +0 -1
  400. package/dist/chunk-7F32RGMM.js +0 -2
  401. package/dist/chunk-7F32RGMM.js.map +0 -1
  402. package/dist/chunk-D6MFIXSJ.js +0 -2
  403. package/dist/chunk-D6MFIXSJ.js.map +0 -1
  404. package/dist/chunk-E2FLISWH.js +0 -2
  405. package/dist/chunk-E2FLISWH.js.map +0 -1
  406. package/dist/chunk-EFL7QFFN.js +0 -2
  407. package/dist/chunk-EFL7QFFN.js.map +0 -1
  408. package/dist/chunk-ONMQSOSC.js +0 -2
  409. package/dist/chunk-ONMQSOSC.js.map +0 -1
  410. package/dist/chunk-OQQ4JHSR.js +0 -2
  411. package/dist/chunk-OQQ4JHSR.js.map +0 -1
  412. package/dist/chunk-QSBXRKYE.js +0 -2
  413. package/dist/chunk-TVM6I7P4.js +0 -2
  414. package/dist/chunk-TVM6I7P4.js.map +0 -1
  415. /package/dist/{ButtonDefault-4W4M55VE.js.map → ButtonDefault-5GP4VFZL.js.map} +0 -0
  416. /package/dist/{CheckboxFieldDefault-S34KMEYI.js.map → CheckboxFieldDefault-O6OH63GG.js.map} +0 -0
  417. /package/dist/{CountryFieldDefault-7QRRW5DN.js.map → CountryFieldDefault-DVWWTDEO.js.map} +0 -0
  418. /package/dist/{DatePickerFieldDefault-PXUJRPBW.js.map → DatePickerFieldDefault-XY2SCOWG.js.map} +0 -0
  419. /package/dist/{DrawerDefault-VMG6FKCD.js.map → DrawerDefault-UVRSWQLP.js.map} +0 -0
  420. /package/dist/{EmailFieldDefault-INNDIQML.js.map → EmailFieldDefault-JN6IDGVM.js.map} +0 -0
  421. /package/dist/{FieldsetToggleButtonDefault-2YKED23M.js.map → FieldsetToggleButtonDefault-KVIBW3UI.js.map} +0 -0
  422. /package/dist/{FileUploadFieldDefault-AGLKTUCJ.js.map → FileUploadFieldDefault-SD3A25KP.js.map} +0 -0
  423. /package/dist/{MultiSelectFieldDefault-X24VSKA7.js.map → MultiSelectFieldDefault-ZLRPID6V.js.map} +0 -0
  424. /package/dist/{NumberFieldDefault-QLW7EZ4R.js.map → NumberFieldDefault-MXN7XDOC.js.map} +0 -0
  425. /package/dist/{RadioGroupFieldDefault-CHBXLRJG.js.map → RadioGroupFieldDefault-4P4DRXR2.js.map} +0 -0
  426. /package/dist/{SelectFieldDefault-SNTI7KXR.js.map → SelectFieldDefault-IUECL5R6.js.map} +0 -0
  427. /package/dist/{StatementDefault-YBHPHVCI.js.map → StatementDefault-6B2AXWUL.js.map} +0 -0
  428. /package/dist/{TableFieldDefault-XTCTKLLJ.js.map → TableFieldDefault-ZC2IJBFY.js.map} +0 -0
  429. /package/dist/{TelFieldDefault-POAPMI5W.js.map → TelFieldDefault-PUE57NPS.js.map} +0 -0
  430. /package/dist/{TextAreaFieldDefault-APKDH7AU.js.map → TextAreaFieldDefault-A2LOPUE3.js.map} +0 -0
  431. /package/dist/{TextFieldDefault-7HSHPHOF.js.map → TextFieldDefault-WSEEAHJV.js.map} +0 -0
  432. /package/dist/{TimeFieldDefault-VIR23FMW.js.map → TimeFieldDefault-K5LYUXKT.js.map} +0 -0
  433. /package/dist/{WorkScheduleFieldDefault-6NNTPTZ6.js.map → WorkScheduleFieldDefault-6DC7RDII.js.map} +0 -0
  434. /package/dist/{ZendeskDrawerDefault-ILQM2VEO.js.map → ZendeskDrawerDefault-2DNA653G.js.map} +0 -0
  435. /package/dist/{chunk-QZXOBKVL.js.map → chunk-25PGBGEV.js.map} +0 -0
  436. /package/dist/{chunk-4YAFCYZ7.js.map → chunk-27TI6URK.js.map} +0 -0
  437. /package/dist/{chunk-5EUXQYKE.js.map → chunk-2A25NRQT.js.map} +0 -0
  438. /package/dist/{chunk-6UWJNDPG.js.map → chunk-2BCZXNBX.js.map} +0 -0
  439. /package/dist/{chunk-OMAWYQU7.js.map → chunk-2DNWLRNL.js.map} +0 -0
  440. /package/dist/{chunk-YP6NGX7S.js.map → chunk-343R3QEG.js.map} +0 -0
  441. /package/dist/{chunk-WQ27VHVA.js.map → chunk-3B6BHFDV.js.map} +0 -0
  442. /package/dist/{chunk-VUGTA3CI.js.map → chunk-3CLZOKEI.js.map} +0 -0
  443. /package/dist/{chunk-TKENZ25F.js.map → chunk-3UBFABDS.js.map} +0 -0
  444. /package/dist/{chunk-D53TVHHK.js.map → chunk-44XEUAFV.js.map} +0 -0
  445. /package/dist/{chunk-JSFVJCPK.js.map → chunk-4MB3FE3T.js.map} +0 -0
  446. /package/dist/{chunk-AZJ2LLX5.js.map → chunk-53TM77OU.js.map} +0 -0
  447. /package/dist/{chunk-BFYHFJHJ.js.map → chunk-54Z4QJ3Q.js.map} +0 -0
  448. /package/dist/{chunk-QSBXRKYE.js.map → chunk-5MPW7QWT.js.map} +0 -0
  449. /package/dist/{chunk-P6PJDSR5.js.map → chunk-5XVYIBJD.js.map} +0 -0
  450. /package/dist/{chunk-2ADIF2YA.js.map → chunk-6HAWSFOM.js.map} +0 -0
  451. /package/dist/{chunk-QOH4BNEZ.js.map → chunk-6PWZ4TBI.js.map} +0 -0
  452. /package/dist/{chunk-BJPP76IU.js.map → chunk-74ICDGQK.js.map} +0 -0
  453. /package/dist/{chunk-O77SKTAI.js.map → chunk-76VZ4ARW.js.map} +0 -0
  454. /package/dist/{chunk-AROUKJ3F.js.map → chunk-7BPB4PXN.js.map} +0 -0
  455. /package/dist/{chunk-4T66UEMY.js.map → chunk-7D4XFAQR.js.map} +0 -0
  456. /package/dist/{chunk-TZA2SOIV.js.map → chunk-A2WWDGJJ.js.map} +0 -0
  457. /package/dist/{chunk-GRNUG4VT.js.map → chunk-ASTB4YJL.js.map} +0 -0
  458. /package/dist/{chunk-EKRKYUUE.js.map → chunk-AXDL47BE.js.map} +0 -0
  459. /package/dist/{chunk-BVUHS36Q.js.map → chunk-BRI2ESJ3.js.map} +0 -0
  460. /package/dist/{chunk-VY435JUV.js.map → chunk-BRN6MO77.js.map} +0 -0
  461. /package/dist/{chunk-KUMYB3ZB.js.map → chunk-BUOHZMK6.js.map} +0 -0
  462. /package/dist/{chunk-KOLEBOZV.js.map → chunk-CFOXBJRN.js.map} +0 -0
  463. /package/dist/{chunk-DAQZZBSX.js.map → chunk-DJGO6WYW.js.map} +0 -0
  464. /package/dist/{chunk-YG5NCEC6.js.map → chunk-DJIQISA2.js.map} +0 -0
  465. /package/dist/{chunk-GCYQVKEN.js.map → chunk-DMNKKWLY.js.map} +0 -0
  466. /package/dist/{chunk-XO5ZAXQI.js.map → chunk-DNAPYU5I.js.map} +0 -0
  467. /package/dist/{chunk-3BNHBFVL.js.map → chunk-DO7OL4EG.js.map} +0 -0
  468. /package/dist/{chunk-WWFORUHG.js.map → chunk-ECGNGVSC.js.map} +0 -0
  469. /package/dist/{chunk-S2KYDG6K.js.map → chunk-F35ALUPA.js.map} +0 -0
  470. /package/dist/{chunk-Z3N32RAC.js.map → chunk-FQFLC6YA.js.map} +0 -0
  471. /package/dist/{chunk-75SQ56WH.js.map → chunk-G556HMVA.js.map} +0 -0
  472. /package/dist/{chunk-SIRRTEWC.js.map → chunk-GF34UO7V.js.map} +0 -0
  473. /package/dist/{chunk-Y36S433X.js.map → chunk-GGLJSAPH.js.map} +0 -0
  474. /package/dist/{chunk-6VBWP6AA.js.map → chunk-GKYQ3GAF.js.map} +0 -0
  475. /package/dist/{chunk-2PKH6744.js.map → chunk-GSB44SSJ.js.map} +0 -0
  476. /package/dist/{chunk-ZY2EB7PF.js.map → chunk-H3JUXG2J.js.map} +0 -0
  477. /package/dist/{chunk-TZOTRZGK.js.map → chunk-HAACNERA.js.map} +0 -0
  478. /package/dist/{chunk-3E6JC5HM.js.map → chunk-HJOT7JXK.js.map} +0 -0
  479. /package/dist/{chunk-OVIOWKNG.js.map → chunk-J2ARI3NQ.js.map} +0 -0
  480. /package/dist/{chunk-S2PN3IWU.js.map → chunk-JSTCIALQ.js.map} +0 -0
  481. /package/dist/{chunk-YIPQZRQ7.js.map → chunk-JXZX66MM.js.map} +0 -0
  482. /package/dist/{chunk-NLC63NKD.js.map → chunk-KAX6IHET.js.map} +0 -0
  483. /package/dist/{chunk-3PDMZU34.js.map → chunk-KUKZNLCF.js.map} +0 -0
  484. /package/dist/{chunk-6Y3CFPJN.js.map → chunk-L2V4ZYCZ.js.map} +0 -0
  485. /package/dist/{chunk-Z7ZRTQE7.js.map → chunk-LD5KN4ZF.js.map} +0 -0
  486. /package/dist/{chunk-K44B6MQA.js.map → chunk-LJUWER2H.js.map} +0 -0
  487. /package/dist/{chunk-OXKDKDSH.js.map → chunk-LKVQ32ZK.js.map} +0 -0
  488. /package/dist/{chunk-Z5G55QMI.js.map → chunk-LOPZZUAF.js.map} +0 -0
  489. /package/dist/{chunk-EFJ5PMPI.js.map → chunk-LTJSD2MC.js.map} +0 -0
  490. /package/dist/{chunk-XFZCY4EF.js.map → chunk-LXKLBMHD.js.map} +0 -0
  491. /package/dist/{chunk-3KNCGVWU.js.map → chunk-MDOVS5WS.js.map} +0 -0
  492. /package/dist/{chunk-547SAUNX.js.map → chunk-MEPIOKJQ.js.map} +0 -0
  493. /package/dist/{chunk-O534T74D.js.map → chunk-MHIY35CK.js.map} +0 -0
  494. /package/dist/{chunk-W64ERZID.js.map → chunk-MHOV3CQN.js.map} +0 -0
  495. /package/dist/{chunk-M4RIGLB4.js.map → chunk-N6XLGYRK.js.map} +0 -0
  496. /package/dist/{chunk-P4V4AMFC.js.map → chunk-NFIMSJPH.js.map} +0 -0
  497. /package/dist/{chunk-LQ5GKNVU.js.map → chunk-OBZMQWQA.js.map} +0 -0
  498. /package/dist/{chunk-RUS5TGZ2.js.map → chunk-OEVMCP42.js.map} +0 -0
  499. /package/dist/{chunk-H3U6AOLU.js.map → chunk-OQIJAVBT.js.map} +0 -0
  500. /package/dist/{chunk-GJVGPPYO.js.map → chunk-OR6ZPNF6.js.map} +0 -0
  501. /package/dist/{chunk-ZLZAHVV5.js.map → chunk-OV6PV4N5.js.map} +0 -0
  502. /package/dist/{chunk-QPAABSI5.js.map → chunk-OXTA4W4J.js.map} +0 -0
  503. /package/dist/{chunk-3ECVOIHE.js.map → chunk-PIHCHWI7.js.map} +0 -0
  504. /package/dist/{chunk-3THSAI2N.js.map → chunk-PIKEYX3V.js.map} +0 -0
  505. /package/dist/{chunk-ORBP27OM.js.map → chunk-PJ6KPGIE.js.map} +0 -0
  506. /package/dist/{chunk-D4ZTTILZ.js.map → chunk-PQG6KZIO.js.map} +0 -0
  507. /package/dist/{chunk-DN7HJZB3.js.map → chunk-Q5HDUQPX.js.map} +0 -0
  508. /package/dist/{chunk-S6VLGYPA.js.map → chunk-Q6GJJRYG.js.map} +0 -0
  509. /package/dist/{chunk-SFYXHH6U.js.map → chunk-Q6PTVBDS.js.map} +0 -0
  510. /package/dist/{chunk-BNJEVVWG.js.map → chunk-QFXZTQL7.js.map} +0 -0
  511. /package/dist/{chunk-NKVCGPK6.js.map → chunk-QJJZTAG2.js.map} +0 -0
  512. /package/dist/{chunk-MR5HKPX2.js.map → chunk-QSCW4IHJ.js.map} +0 -0
  513. /package/dist/{chunk-6SWW244N.js.map → chunk-R3HBG6VK.js.map} +0 -0
  514. /package/dist/{chunk-GJIKWHFV.js.map → chunk-R4TM2Y3K.js.map} +0 -0
  515. /package/dist/{chunk-C5TVWLAX.js.map → chunk-RR57VT45.js.map} +0 -0
  516. /package/dist/{chunk-GZE3PWOZ.js.map → chunk-S3EXF5DV.js.map} +0 -0
  517. /package/dist/{chunk-R2L4HXQY.js.map → chunk-SFJV4CFP.js.map} +0 -0
  518. /package/dist/{chunk-RK4VZQOX.js.map → chunk-SMBP7A4F.js.map} +0 -0
  519. /package/dist/{chunk-KMANQZL4.js.map → chunk-T5J2Z6ZR.js.map} +0 -0
  520. /package/dist/{chunk-XA4CSH2R.js.map → chunk-TLNE6GTG.js.map} +0 -0
  521. /package/dist/{chunk-F22V7VEW.js.map → chunk-TMBDUFOH.js.map} +0 -0
  522. /package/dist/{chunk-K52TCY57.js.map → chunk-TSZLYFYT.js.map} +0 -0
  523. /package/dist/{chunk-PZCRVFCK.js.map → chunk-UD3YR4VQ.js.map} +0 -0
  524. /package/dist/{chunk-WNEA4YK3.js.map → chunk-UHN3ELBL.js.map} +0 -0
  525. /package/dist/{chunk-YFGM5OOK.js.map → chunk-V3J5DAMB.js.map} +0 -0
  526. /package/dist/{chunk-MT7H2K34.js.map → chunk-VDH46ZCF.js.map} +0 -0
  527. /package/dist/{chunk-P3VAZLG4.js.map → chunk-VEMUIRKC.js.map} +0 -0
  528. /package/dist/{chunk-GPP2S5Q7.js.map → chunk-VTWVHO4F.js.map} +0 -0
  529. /package/dist/{chunk-BPHP4644.js.map → chunk-WLPWXK7I.js.map} +0 -0
  530. /package/dist/{chunk-6BPEPQ3C.js.map → chunk-WMBHCIFS.js.map} +0 -0
  531. /package/dist/{chunk-KX53HZEP.js.map → chunk-WMJP2BO5.js.map} +0 -0
  532. /package/dist/{chunk-6OYB7OE5.js.map → chunk-WYUPZMPN.js.map} +0 -0
  533. /package/dist/{chunk-P3LLZ4SA.js.map → chunk-XEVHWVBT.js.map} +0 -0
  534. /package/dist/{chunk-YRC6EEM3.js.map → chunk-XGECMN4V.js.map} +0 -0
  535. /package/dist/{chunk-SCTVUVDF.js.map → chunk-XV7SBFS5.js.map} +0 -0
  536. /package/dist/{chunk-UGPYPGVV.js.map → chunk-Y3CJRZLA.js.map} +0 -0
  537. /package/dist/{chunk-AX7YWH45.js.map → chunk-Y3YYLANJ.js.map} +0 -0
  538. /package/dist/{chunk-UFB5CJCQ.js.map → chunk-YS6VDGFW.js.map} +0 -0
  539. /package/dist/{chunk-XX6RWLM6.js.map → chunk-YVS5MBND.js.map} +0 -0
  540. /package/dist/{chunk-AIFEZDEM.js.map → chunk-ZEC5X3RH.js.map} +0 -0
  541. /package/dist/{chunk-KHX2XRJF.js.map → chunk-ZOTY3CAM.js.map} +0 -0
  542. /package/dist/{chunk-TXUUBPHA.js.map → chunk-ZYIEPPSE.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-F35ALUPA.js";import"./chunk-T5J2Z6ZR.js";import"./chunk-G2LZFGZA.js";import"./chunk-P37U34EQ.js";export{a as ButtonDefault};
2
+ //# sourceMappingURL=ButtonDefault-5GP4VFZL.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-ASTB4YJL.js";import"./chunk-QJJZTAG2.js";import"./chunk-YVS5MBND.js";import"./chunk-LOPZZUAF.js";import"./chunk-Y3CJRZLA.js";import"./chunk-GZUP2IE6.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CheckboxFieldDefault};
2
+ //# sourceMappingURL=CheckboxFieldDefault-O6OH63GG.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-TSZLYFYT.js";import"./chunk-DJIQISA2.js";import"./chunk-3B6BHFDV.js";import"./chunk-MHIY35CK.js";import"./chunk-ZOTY3CAM.js";import"./chunk-YVS5MBND.js";import"./chunk-T5J2Z6ZR.js";import"./chunk-LOPZZUAF.js";import"./chunk-Y3CJRZLA.js";import"./chunk-GZUP2IE6.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CountryFieldDefault};
2
+ //# sourceMappingURL=CountryFieldDefault-DVWWTDEO.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-H3JUXG2J.js";import"./chunk-3B6BHFDV.js";import"./chunk-YVS5MBND.js";import"./chunk-T5J2Z6ZR.js";import"./chunk-LOPZZUAF.js";import"./chunk-Y3CJRZLA.js";import"./chunk-GZUP2IE6.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as DatePickerFieldDefault};
2
+ //# sourceMappingURL=DatePickerFieldDefault-XY2SCOWG.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-V3J5DAMB.js";import"./chunk-S3EXF5DV.js";import"./chunk-G2LZFGZA.js";import"./chunk-P37U34EQ.js";export{a as DrawerDefault};
2
+ //# sourceMappingURL=DrawerDefault-UVRSWQLP.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-7D4XFAQR.js";import"./chunk-OV6PV4N5.js";import"./chunk-Y3CJRZLA.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as EmailFieldDefault};
2
+ //# sourceMappingURL=EmailFieldDefault-JN6IDGVM.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-RR57VT45.js";import"./chunk-T5J2Z6ZR.js";import"./chunk-G2LZFGZA.js";import"./chunk-P37U34EQ.js";export{a as FieldsetToggleButtonDefault};
2
+ //# sourceMappingURL=FieldsetToggleButtonDefault-KVIBW3UI.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-MEPIOKJQ.js";import"./chunk-R4TM2Y3K.js";import"./chunk-T5J2Z6ZR.js";import"./chunk-Y3CJRZLA.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as FileUploadFieldDefault};
2
+ //# sourceMappingURL=FileUploadFieldDefault-SD3A25KP.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-Q6PTVBDS.js";import"./chunk-DJIQISA2.js";import"./chunk-3B6BHFDV.js";import"./chunk-MHIY35CK.js";import"./chunk-ZOTY3CAM.js";import"./chunk-T5J2Z6ZR.js";import"./chunk-Y3CJRZLA.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as MultiSelectFieldDefault};
2
+ //# sourceMappingURL=MultiSelectFieldDefault-ZLRPID6V.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-ECGNGVSC.js";import"./chunk-OV6PV4N5.js";import"./chunk-Y3CJRZLA.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as NumberFieldDefault};
2
+ //# sourceMappingURL=NumberFieldDefault-MXN7XDOC.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-SFJV4CFP.js";import"./chunk-3UBFABDS.js";import"./chunk-ZOTY3CAM.js";import"./chunk-YVS5MBND.js";import"./chunk-LOPZZUAF.js";import"./chunk-Y3CJRZLA.js";import"./chunk-GZUP2IE6.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as RadioGroupFieldDefault};
2
+ //# sourceMappingURL=RadioGroupFieldDefault-4P4DRXR2.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-ZYIEPPSE.js";import"./chunk-LJUWER2H.js";import"./chunk-Y3CJRZLA.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as SelectFieldDefault};
2
+ //# sourceMappingURL=SelectFieldDefault-IUECL5R6.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-2BCZXNBX.js";import"./chunk-BUOHZMK6.js";import"./chunk-G2LZFGZA.js";import"./chunk-P37U34EQ.js";export{a as StatementDefault};
2
+ //# sourceMappingURL=StatementDefault-6B2AXWUL.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-YS6VDGFW.js";import"./chunk-G2LZFGZA.js";import"./chunk-P37U34EQ.js";export{a as TableFieldDefault};
2
+ //# sourceMappingURL=TableFieldDefault-ZC2IJBFY.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-GSB44SSJ.js";import"./chunk-JXZX66MM.js";import"./chunk-LJUWER2H.js";import"./chunk-Y3CJRZLA.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TelFieldDefault};
2
+ //# sourceMappingURL=TelFieldDefault-PUE57NPS.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-GGLJSAPH.js";import"./chunk-YVS5MBND.js";import"./chunk-LOPZZUAF.js";import"./chunk-Y3CJRZLA.js";import"./chunk-GZUP2IE6.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TextAreaFieldDefault};
2
+ //# sourceMappingURL=TextAreaFieldDefault-A2LOPUE3.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-KAX6IHET.js";import"./chunk-JXZX66MM.js";import"./chunk-Y3CJRZLA.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TextFieldDefault};
2
+ //# sourceMappingURL=TextFieldDefault-WSEEAHJV.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-343R3QEG.js";import"./chunk-JXZX66MM.js";import"./chunk-Y3CJRZLA.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TimeFieldDefault};
2
+ //# sourceMappingURL=TimeFieldDefault-K5LYUXKT.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-OQIJAVBT.js";import"./chunk-MHIY35CK.js";import"./chunk-FQFLC6YA.js";import"./chunk-T5J2Z6ZR.js";import"./chunk-OV6PV4N5.js";import"./chunk-Y3CJRZLA.js";import"./chunk-G2LZFGZA.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as WorkScheduleFieldDefault};
2
+ //# sourceMappingURL=WorkScheduleFieldDefault-6DC7RDII.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-WYUPZMPN.js";import"./chunk-S3EXF5DV.js";import"./chunk-G2LZFGZA.js";import"./chunk-P37U34EQ.js";export{a as ZendeskDrawerDefault};
2
+ //# sourceMappingURL=ZendeskDrawerDefault-2DNA653G.js.map
@@ -1,2 +1,2 @@
1
- import{b as i,c as m,d as s,e as f}from"./chunk-BVUHS36Q.js";import{a as n}from"./chunk-NW3D7CPK.js";import{a}from"./chunk-P37U34EQ.js";import{useState as O}from"react";var B=a(({proposedTerminationDate:e,employeeName:y,employmentId:o,employment:r,render:d})=>{let[t,u]=O(!1),l=m({employmentId:o}),p=n(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=i({employmentId:o,options:{enabled:t}}),D=s({employmentId:o,date:e}),P=f({employmentId:o,proposedTerminationDate:e,employment:r});return d({leavePoliciesSummaryQuery:l,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:D,formattedProposedTerminationDate:p,employeeName:y,proposedTerminationDate:e,summaryData:P??{data:{entitledDays:"0 days",bookedDays:"0 days",usedDays:"0 days",approvedDaysBeforeTermination:"0 days",approvedDaysAfterTermination:"0 days",remainingDays:"0 days",isUnlimitedPto:!1},isLoading:!1,isError:!1,error:null},employment:r,open:t,onOpenChange:a(()=>{u(T=>!T)},"onOpenChange")})},"PaidTimeOffContainer");export{B as a};
2
- //# sourceMappingURL=chunk-QZXOBKVL.js.map
1
+ import{b as i,c as m,d as s,e as f}from"./chunk-BRI2ESJ3.js";import{a as n}from"./chunk-NW3D7CPK.js";import{a}from"./chunk-P37U34EQ.js";import{useState as O}from"react";var B=a(({proposedTerminationDate:e,employeeName:y,employmentId:o,employment:r,render:d})=>{let[t,u]=O(!1),l=m({employmentId:o}),p=n(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=i({employmentId:o,options:{enabled:t}}),D=s({employmentId:o,date:e}),P=f({employmentId:o,proposedTerminationDate:e,employment:r});return d({leavePoliciesSummaryQuery:l,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:D,formattedProposedTerminationDate:p,employeeName:y,proposedTerminationDate:e,summaryData:P??{data:{entitledDays:"0 days",bookedDays:"0 days",usedDays:"0 days",approvedDaysBeforeTermination:"0 days",approvedDaysAfterTermination:"0 days",remainingDays:"0 days",isUnlimitedPto:!1},isLoading:!1,isError:!1,error:null},employment:r,open:t,onOpenChange:a(()=>{u(T=>!T)},"onOpenChange")})},"PaidTimeOffContainer");export{B as a};
2
+ //# sourceMappingURL=chunk-25PGBGEV.js.map
@@ -1,2 +1,2 @@
1
- import{a as h}from"./chunk-3UDRMQNE.js";import{a as E}from"./chunk-AX7YWH45.js";import{b as p}from"./chunk-QOH4BNEZ.js";import{a as g}from"./chunk-VDRNNOVA.js";import{a as y}from"./chunk-NW3D7CPK.js";import{d as w}from"./chunk-75SQ56WH.js";import{a as b,h as S,i as C}from"./chunk-K5RHOXWA.js";import{a as f,b as v}from"./chunk-Z5G55QMI.js";import{a as t}from"./chunk-P37U34EQ.js";import{addYears as I,format as u}from"date-fns";import{Fragment as D,jsx as _,jsxs as F}from"react/jsx-runtime";var x=t(n=>n===b,"isStandardPricingPlan"),M=t((n,i)=>{let e=i&&i<u(new Date,"yyyy-MM-dd");if(!n&&e)return p({severity:"warning",description:"Backdating the service start date is not supported in the selected Contractor Management plan."})},"showBackDateWarning");function R(n,i,e){e({...i,services_and_deliverables_ai_warning:"",services_and_deliverables_error_skippable:!1})}t(R,"onServicesAndDeliverablesChange");var $=t((n,i,e,r,a)=>{let d=x(e),c=r?.service_duration?.provisional_start_date,l=M(d,c),o=p({severity:"warning",title:"Possible misclassification risk",description:a?C:S});return{...n,create:{...n?.create,services_and_deliverables_ai_warning:{type:"string","x-jsf-presentation":{inputType:"hidden"}},services_and_deliverables_error_skippable:{type:"boolean","x-jsf-presentation":{inputType:"hidden"}}},fields:{...n?.fields,"service_duration.provisional_start_date":{description:i,"x-jsf-presentation":{minDate:d?void 0:u(new Date,"yyyy-MM-dd"),...l}},"service_duration.expiration_date":{"x-jsf-presentation":{calculateDynamicProperties:t(s=>{let m=a&&s.service_duration?.provisional_start_date?I(y(s.service_duration.provisional_start_date),1):void 0;return{maxDate:m?u(m,"yyyy-MM-dd"):void 0}},"calculateDynamicProperties")}},services_and_deliverables:{onChange:R,"x-jsf-presentation":{calculateDynamicProperties:t(s=>({statement:s.services_and_deliverables_ai_warning?o.statement:void 0}),"calculateDynamicProperties")}}}}},"buildContractDetailsJsfModify"),z=t((n,i,e)=>{let r=n==="SAU",a=n==="GBR",d=w(n);if(!r&&!a&&!d)return e?.jsfModify?.basic_information;if(a)return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,ir35:{title:"IR35 Status",description:t(()=>F(D,{children:["What's your contractor's employment status?"," ",_(v,{zendeskId:f.ir35Status,children:"Learn more about IR35"})]}),"description"),oneOf:[{const:"inside",title:"Inside IR35 (deemed employee)"},{const:"outside",title:"Outside IR35"},{const:"exempt",title:"Exempt from IR35"}],"x-jsf-presentation":{inputType:"select"}},ir35_sds_file:{title:"Upload SDS",description:"Status determination statement",type:"string","x-jsf-presentation":{inputType:"file",accept:g.document,multiple:!1,maxSize:20971520,calculateDynamicProperties:t(o=>{let s=o.ir35;return{isVisible:s==="inside"||s==="outside"}},"calculateDynamicProperties")}}},allOf:[{if:{properties:{ir35:{enum:["inside","outside"]}}},then:{required:["ir35_sds_file"]},else:{properties:{ir35_sds_file:!1}}}],required:["ir35"],orderRoot:t(o=>[...o,"ir35","ir35_sds_file"],"orderRoot")};let c=r?"Is your contractor a Saudi Arabia national, or a non-Saudi national contracting via a local business entity or under a Special Privilege Iqama visa?":`Is the contractor a ${i??"selected country"} national, or a non-${i??"selected country"} national contracting through their local business entity?`,l=r?"Please be aware that contracting with non-Saudi Arabia nationals that are not operating as a company or under a Special Privilege Iqama visa can lead to fines for operating without proper work authorization. If you are concerned, please speak with the Contractor and/or local Saudi Arabia counsel to ensure compliance.":`Be aware that the Contractor must be a ${i??"selected country"} national, or a non-${i??"selected country"} national operating through their company to comply with the legal requirements for performing services and deliverables as a contractor in ${i??"selected country"}. If you are concerned, speak with the Contractor and/or local counsel to ensure compliance.`;return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,nationality_status:{title:c,description:"",type:"string",oneOf:[{const:"national",description:"",title:"Yes"},{const:"non_national",description:l,title:"No"}],"x-jsf-presentation":{inputType:"radio"}}},required:["nationality_status"],orderRoot:t(o=>[...o,"nationality_status"],"orderRoot")}},"buildBasicInformationJsfModify"),G=t((n,i)=>{let e=n?.jsfModify?.contract_preview?.fields;return{fields:{contract_preview_header:{...e?.contract_preview_header,"x-jsf-presentation":{Component:t(r=>{let a=e?.contract_preview_header?.["x-jsf-presentation"]?.Component||h;return _(a,{...r})},"Component")}},contract_preview_statement:{...e?.contract_preview_statement,"x-jsf-presentation":{Component:t(r=>{let a=e?.contract_preview_statement?.["x-jsf-presentation"]?.Component||E;return _(a,{reviewCompleted:!!i?.review_completed,...r})},"Component")}},signature:{...e?.signature,"x-jsf-presentation":{calculateDynamicProperties:t(r=>({isVisible:!!r.review_completed}),"calculateDynamicProperties"),...e?.signature?.["x-jsf-presentation"]}}}}},"buildContractPreviewJsfModify");export{$ as a,z as b,G as c};
2
- //# sourceMappingURL=chunk-4YAFCYZ7.js.map
1
+ import{a as h}from"./chunk-3UDRMQNE.js";import{a as E}from"./chunk-Y3YYLANJ.js";import{b as p}from"./chunk-6PWZ4TBI.js";import{a as g}from"./chunk-VDRNNOVA.js";import{a as y}from"./chunk-NW3D7CPK.js";import{d as w}from"./chunk-G556HMVA.js";import{a as b,h as S,i as C}from"./chunk-Q2OGLLBA.js";import{a as f,b as v}from"./chunk-LOPZZUAF.js";import{a as t}from"./chunk-P37U34EQ.js";import{addYears as I,format as u}from"date-fns";import{Fragment as D,jsx as _,jsxs as F}from"react/jsx-runtime";var x=t(n=>n===b,"isStandardPricingPlan"),M=t((n,i)=>{let e=i&&i<u(new Date,"yyyy-MM-dd");if(!n&&e)return p({severity:"warning",description:"Backdating the service start date is not supported in the selected Contractor Management plan."})},"showBackDateWarning");function R(n,i,e){e({...i,services_and_deliverables_ai_warning:"",services_and_deliverables_error_skippable:!1})}t(R,"onServicesAndDeliverablesChange");var $=t((n,i,e,r,a)=>{let d=x(e),c=r?.service_duration?.provisional_start_date,l=M(d,c),o=p({severity:"warning",title:"Possible misclassification risk",description:a?C:S});return{...n,create:{...n?.create,services_and_deliverables_ai_warning:{type:"string","x-jsf-presentation":{inputType:"hidden"}},services_and_deliverables_error_skippable:{type:"boolean","x-jsf-presentation":{inputType:"hidden"}}},fields:{...n?.fields,"service_duration.provisional_start_date":{description:i,"x-jsf-presentation":{minDate:d?void 0:u(new Date,"yyyy-MM-dd"),...l}},"service_duration.expiration_date":{"x-jsf-presentation":{calculateDynamicProperties:t(s=>{let m=a&&s.service_duration?.provisional_start_date?I(y(s.service_duration.provisional_start_date),1):void 0;return{maxDate:m?u(m,"yyyy-MM-dd"):void 0}},"calculateDynamicProperties")}},services_and_deliverables:{onChange:R,"x-jsf-presentation":{calculateDynamicProperties:t(s=>({statement:s.services_and_deliverables_ai_warning?o.statement:void 0}),"calculateDynamicProperties")}}}}},"buildContractDetailsJsfModify"),z=t((n,i,e)=>{let r=n==="SAU",a=n==="GBR",d=w(n);if(!r&&!a&&!d)return e?.jsfModify?.basic_information;if(a)return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,ir35:{title:"IR35 Status",description:t(()=>F(D,{children:["What's your contractor's employment status?"," ",_(v,{zendeskId:f.ir35Status,children:"Learn more about IR35"})]}),"description"),oneOf:[{const:"inside",title:"Inside IR35 (deemed employee)"},{const:"outside",title:"Outside IR35"},{const:"exempt",title:"Exempt from IR35"}],"x-jsf-presentation":{inputType:"select"}},ir35_sds_file:{title:"Upload SDS",description:"Status determination statement",type:"string","x-jsf-presentation":{inputType:"file",accept:g.document,multiple:!1,maxSize:20971520,calculateDynamicProperties:t(o=>{let s=o.ir35;return{isVisible:s==="inside"||s==="outside"}},"calculateDynamicProperties")}}},allOf:[{if:{properties:{ir35:{enum:["inside","outside"]}}},then:{required:["ir35_sds_file"]},else:{properties:{ir35_sds_file:!1}}}],required:["ir35"],orderRoot:t(o=>[...o,"ir35","ir35_sds_file"],"orderRoot")};let c=r?"Is your contractor a Saudi Arabia national, or a non-Saudi national contracting via a local business entity or under a Special Privilege Iqama visa?":`Is the contractor a ${i??"selected country"} national, or a non-${i??"selected country"} national contracting through their local business entity?`,l=r?"Please be aware that contracting with non-Saudi Arabia nationals that are not operating as a company or under a Special Privilege Iqama visa can lead to fines for operating without proper work authorization. If you are concerned, please speak with the Contractor and/or local Saudi Arabia counsel to ensure compliance.":`Be aware that the Contractor must be a ${i??"selected country"} national, or a non-${i??"selected country"} national operating through their company to comply with the legal requirements for performing services and deliverables as a contractor in ${i??"selected country"}. If you are concerned, speak with the Contractor and/or local counsel to ensure compliance.`;return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,nationality_status:{title:c,description:"",type:"string",oneOf:[{const:"national",description:"",title:"Yes"},{const:"non_national",description:l,title:"No"}],"x-jsf-presentation":{inputType:"radio"}}},required:["nationality_status"],orderRoot:t(o=>[...o,"nationality_status"],"orderRoot")}},"buildBasicInformationJsfModify"),G=t((n,i)=>{let e=n?.jsfModify?.contract_preview?.fields;return{fields:{contract_preview_header:{...e?.contract_preview_header,"x-jsf-presentation":{Component:t(r=>{let a=e?.contract_preview_header?.["x-jsf-presentation"]?.Component||h;return _(a,{...r})},"Component")}},contract_preview_statement:{...e?.contract_preview_statement,"x-jsf-presentation":{Component:t(r=>{let a=e?.contract_preview_statement?.["x-jsf-presentation"]?.Component||E;return _(a,{reviewCompleted:!!i?.review_completed,...r})},"Component")}},signature:{...e?.signature,"x-jsf-presentation":{calculateDynamicProperties:t(r=>({isVisible:!!r.review_completed}),"calculateDynamicProperties"),...e?.signature?.["x-jsf-presentation"]}}}}},"buildContractPreviewJsfModify");export{$ as a,z as b,G as c};
2
+ //# sourceMappingURL=chunk-27TI6URK.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-KOLEBOZV.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-EFL7QFFN.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function b({onSubmit:m,onSuccess:d,onError:c}){let{contractorOnboardingBag:o}=e(),p=t(async(i,f)=>{try{let a=await o.parseFormValues(i);await m?.(a);let r=await o.onSubmit(i);if(r?.data){await d?.(r?.data),o?.next();return}}catch(a){let r=n(a,o.meta?.fields?.basic_information,f);c?.(r)}},"handleSubmit"),l=o.stepState.values?.basic_information||o.initialValues.basic_information;return u(s,{defaultValues:l,onSubmit:p})}t(b,"BasicInformationStep");export{b as a};
2
- //# sourceMappingURL=chunk-5EUXQYKE.js.map
1
+ import{a as s}from"./chunk-CFOXBJRN.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function b({onSubmit:m,onSuccess:d,onError:c}){let{contractorOnboardingBag:o}=e(),p=t(async(i,f)=>{try{let a=await o.parseFormValues(i);await m?.(a);let r=await o.onSubmit(i);if(r?.data){await d?.(r?.data),o?.next();return}}catch(a){let r=n(a,o.meta?.fields?.basic_information,f);c?.(r)}},"handleSubmit"),l=o.stepState.values?.basic_information||o.initialValues.basic_information;return u(s,{defaultValues:l,onSubmit:p})}t(b,"BasicInformationStep");export{b as a};
2
+ //# sourceMappingURL=chunk-2A25NRQT.js.map
@@ -1,2 +1,2 @@
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
+ import{a as o,b as a,c as i}from"./chunk-BUOHZMK6.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-2BCZXNBX.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-KOLEBOZV.js";import{b as i}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-EFL7QFFN.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as y}from"react/jsx-runtime";function E({onSubmit:c,onSuccess:s,onError:u}){let{contractorOnboardingBag:r}=i(),l=t(async(e,d)=>{try{await c?.({countryCode:e.country});let o=await r.onSubmit(e);if(o?.data){await s?.(o?.data),r?.next();return}}catch(o){let S=n(o,r.meta?.fields?.select_country,d);u?.(S)}},"handleSubmit"),m=r.stepState.values?.select_country||r.initialValues.select_country;return y(a,{defaultValues:m,onSubmit:l})}t(E,"SelectCountryStep");export{E as a};
2
- //# sourceMappingURL=chunk-OMAWYQU7.js.map
1
+ import{a}from"./chunk-CFOXBJRN.js";import{b as i}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as y}from"react/jsx-runtime";function E({onSubmit:c,onSuccess:s,onError:u}){let{contractorOnboardingBag:r}=i(),l=t(async(e,d)=>{try{await c?.({countryCode:e.country});let o=await r.onSubmit(e);if(o?.data){await s?.(o?.data),r?.next();return}}catch(o){let S=n(o,r.meta?.fields?.select_country,d);u?.(S)}},"handleSubmit"),m=r.stepState.values?.select_country||r.initialValues.select_country;return y(a,{defaultValues:m,onSubmit:l})}t(E,"SelectCountryStep");export{E as a};
2
+ //# sourceMappingURL=chunk-2DNWLRNL.js.map
@@ -1,2 +1,2 @@
1
- import{a as _}from"./chunk-YIPQZRQ7.js";import{j as i,k as a,l as n,n as s,o as F}from"./chunk-UGPYPGVV.js";import{a as l}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as T}from"react/jsx-runtime";function R({field:o,fieldState:p,fieldData:c}){let{name:r,label:m,description:t}=c;return T(i,{"data-field":r,className:`RemoteFlows__TimeField__Item__${r}`,children:[m&&e(a,{className:"RemoteFlows__TimeField__Label",children:m}),e(n,{children:e(_,{...o,type:"time",value:o.value??"",onChange:d=>{o.onChange(d)},className:"RemoteFlows__TimeField__Input",placeholder:m})}),t&&e(s,{className:"RemoteFlows__TimeField__Description",children:t}),p.error&&e(F,{className:"RemoteFlows__TimeField__Error"})]})}l(R,"TimeFieldDefault");export{R as a};
2
- //# sourceMappingURL=chunk-YP6NGX7S.js.map
1
+ import{a as _}from"./chunk-JXZX66MM.js";import{j as i,k as a,l as n,n as s,o as F}from"./chunk-Y3CJRZLA.js";import{a as l}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as T}from"react/jsx-runtime";function R({field:o,fieldState:p,fieldData:c}){let{name:r,label:m,description:t}=c;return T(i,{"data-field":r,className:`RemoteFlows__TimeField__Item__${r}`,children:[m&&e(a,{className:"RemoteFlows__TimeField__Label",children:m}),e(n,{children:e(_,{...o,type:"time",value:o.value??"",onChange:d=>{o.onChange(d)},className:"RemoteFlows__TimeField__Input",placeholder:m})}),t&&e(s,{className:"RemoteFlows__TimeField__Description",children:t}),p.error&&e(F,{className:"RemoteFlows__TimeField__Error"})]})}l(R,"TimeFieldDefault");export{R as a};
2
+ //# sourceMappingURL=chunk-343R3QEG.js.map
@@ -1,2 +1,2 @@
1
- import{n as i}from"./chunk-EFL7QFFN.js";import{a as e}from"./chunk-P37U34EQ.js";import*as o from"@radix-ui/react-popover";import{PopoverClose as v}from"@radix-ui/react-popover";import{jsx as r}from"react/jsx-runtime";function s({...t}){return r(o.Root,{"data-slot":"popover",...t})}e(s,"Popover");function P({...t}){return r(o.Trigger,{"data-slot":"popover-trigger",...t})}e(P,"PopoverTrigger");function f({className:t,align:a="center",sideOffset:n=4,...p}){return r(o.Portal,{children:r(o.Content,{"data-slot":"popover-content",align:a,sideOffset:n,className:i("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...p})})}e(f,"PopoverContent");export{s as a,P as b,f as c};
2
- //# sourceMappingURL=chunk-WQ27VHVA.js.map
1
+ import{n as i}from"./chunk-G2LZFGZA.js";import{a as e}from"./chunk-P37U34EQ.js";import*as o from"@radix-ui/react-popover";import{PopoverClose as v}from"@radix-ui/react-popover";import{jsx as r}from"react/jsx-runtime";function s({...t}){return r(o.Root,{"data-slot":"popover",...t})}e(s,"Popover");function P({...t}){return r(o.Trigger,{"data-slot":"popover-trigger",...t})}e(P,"PopoverTrigger");function f({className:t,align:a="center",sideOffset:n=4,...p}){return r(o.Portal,{children:r(o.Content,{"data-slot":"popover-content",align:a,sideOffset:n,className:i("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...p})})}e(f,"PopoverContent");export{s as a,P as b,f as c};
2
+ //# sourceMappingURL=chunk-3B6BHFDV.js.map
@@ -1,2 +1,2 @@
1
- import{b as p}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-3PDMZU34.js";import{h as C}from"./chunk-UGPYPGVV.js";import{c as f,u as E}from"./chunk-EFL7QFFN.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as n}from"react/jsx-runtime";function T({onSubmit:S,onError:w,onSuccess:y,onErrorWithFields:u,shouldResetForm:c,resetFields:a}){let{form:e,formId:V,costCalculatorBag:o}=p(),{formState:{isSubmitSuccessful:s}}=e;R(()=>{if(s&&c){o?.resetForm(),e.reset();return}if(s&&a){let t={...e.getValues()};a.forEach(r=>{t[r]=""}),o?.resetForm(),e.reset(t)}},[s,e,c,o,a]);let b=m(async d=>{try{let t=await o?.parseFormValues(d);o?.meta?.fields&&(o.meta.fields=E(t,o.fields),o.meta.fields.employer_currency_slug=o.meta.fields.currency);let r=await o?.onSubmit(t);if(await S?.(t),r?.data&&!r.error){let i={data:{...r.data.data,employments:r.data.data.employments?.map(l=>({...l,title:t.estimation_title}))}};await y?.(i)}else throw{data:null,error:r?.error,fieldErrors:r?.fieldErrors,rawError:r?.rawError}}catch(t){let r=t,i=r.fieldErrors;if(u){let l=o?.meta?.fields,h=f(i,l);u({error:r.error,rawError:r.rawError,fieldErrors:h})}else w?.(r.error)}},"handleSubmit");return n(C,{...e,children:n("form",{id:V,onSubmit:e.handleSubmit(b),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:n(F,{fields:o?.fields??[]})})})}m(T,"CostCalculatorForm");export{T as a};
2
- //# sourceMappingURL=chunk-VUGTA3CI.js.map
1
+ import{b as p}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-KUKZNLCF.js";import{h as C}from"./chunk-Y3CJRZLA.js";import{c as f,u as E}from"./chunk-G2LZFGZA.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as n}from"react/jsx-runtime";function T({onSubmit:S,onError:w,onSuccess:y,onErrorWithFields:u,shouldResetForm:c,resetFields:a}){let{form:e,formId:V,costCalculatorBag:o}=p(),{formState:{isSubmitSuccessful:s}}=e;R(()=>{if(s&&c){o?.resetForm(),e.reset();return}if(s&&a){let t={...e.getValues()};a.forEach(r=>{t[r]=""}),o?.resetForm(),e.reset(t)}},[s,e,c,o,a]);let b=m(async d=>{try{let t=await o?.parseFormValues(d);o?.meta?.fields&&(o.meta.fields=E(t,o.fields),o.meta.fields.employer_currency_slug=o.meta.fields.currency);let r=await o?.onSubmit(t);if(await S?.(t),r?.data&&!r.error){let i={data:{...r.data.data,employments:r.data.data.employments?.map(l=>({...l,title:t.estimation_title}))}};await y?.(i)}else throw{data:null,error:r?.error,fieldErrors:r?.fieldErrors,rawError:r?.rawError}}catch(t){let r=t,i=r.fieldErrors;if(u){let l=o?.meta?.fields,h=f(i,l);u({error:r.error,rawError:r.rawError,fieldErrors:h})}else w?.(r.error)}},"handleSubmit");return n(C,{...e,children:n("form",{id:V,onSubmit:e.handleSubmit(b),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:n(F,{fields:o?.fields??[]})})})}m(T,"CostCalculatorForm");export{T as a};
2
+ //# sourceMappingURL=chunk-3CLZOKEI.js.map
@@ -1,2 +1,2 @@
1
- import{n as e}from"./chunk-EFL7QFFN.js";import{a}from"./chunk-P37U34EQ.js";import*as i from"@radix-ui/react-radio-group";import{CircleIcon as d}from"lucide-react";import{jsx as o}from"react/jsx-runtime";function p({className:r,...t}){return o(i.Root,{"data-slot":"radio-group",className:e("grid gap-3",r),...t})}a(p,"RadioGroup");function l({className:r,...t}){return o(i.Item,{"data-slot":"radio-group-item",className:e("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),...t,children:o(i.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:o(d,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}a(l,"RadioGroupItem");export{p as a,l as b};
2
- //# sourceMappingURL=chunk-TKENZ25F.js.map
1
+ import{n as e}from"./chunk-G2LZFGZA.js";import{a}from"./chunk-P37U34EQ.js";import*as i from"@radix-ui/react-radio-group";import{CircleIcon as d}from"lucide-react";import{jsx as o}from"react/jsx-runtime";function p({className:r,...t}){return o(i.Root,{"data-slot":"radio-group",className:e("grid gap-3",r),...t})}a(p,"RadioGroup");function l({className:r,...t}){return o(i.Item,{"data-slot":"radio-group-item",className:e("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),...t,children:o(i.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:o(d,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}a(l,"RadioGroupItem");export{p as a,l as b};
2
+ //# sourceMappingURL=chunk-3UBFABDS.js.map
@@ -1,2 +1,2 @@
1
- import{a as y,b as d,c as p,d as R}from"./chunk-GCYQVKEN.js";import{a as w}from"./chunk-M4RIGLB4.js";import{n as _,o as i}from"./chunk-EFL7QFFN.js";import{a as m}from"./chunk-P37U34EQ.js";import{ChevronDown as A,Globe as N}from"lucide-react";import{useState as h}from"react";import{Fragment as C,jsx as e,jsxs as l}from"react/jsx-runtime";var v=m(s=>{if(s.length<2)return{currency:null,costsPerCountry:[],employeesCost:null};let o=s[0]?.employer_currency_costs.currency,c=s.reduce((r,t)=>{let a=t.country.name;return r[a]={country:t.country,monthlyTotal:(r[a]?.monthlyTotal||0)+t.employer_currency_costs.monthly_total,annualTotal:(r[a]?.annualTotal||0)+t.employer_currency_costs.annual_total},r},{}),n=Object.values(c).map(({country:r,monthlyTotal:t,annualTotal:a})=>({country:r,monthlyCost:i(t,o.code),annualCost:i(a,o.code)})),u={monthlyTotal:i(s.reduce((r,t)=>r+t.employer_currency_costs.monthly_total,0),o.code),annualTotal:i(s.reduce((r,t)=>r+t.employer_currency_costs.annual_total,0),o.code)};return{currency:o,costsPerCountry:n,employeesCost:u}},"useSummaryResults"),f=m(({currency:s,title:o})=>e("div",{className:"RemoteFlows__SummaryResults__Header flex items-center justify-between w-full",children:l("div",{className:"RemoteFlows__SummaryHeader__Container flex flex-row items-center gap-6",children:[e("div",{className:"RemoteFlows__SummaryHeader__IconContainer flex h-12 w-12 items-center justify-center rounded-lg bg-[#F4F4F5]",children:e(N,{className:"RemoteFlows__SummaryHeader__Icon h-6 w-6 text-[#000000]"})}),l("div",{className:"RemoteFlows__SummaryHeader__Content space-y-1",children:[e("h2",{className:"RemoteFlows__SummaryHeader__Title text-lg font-medium leading-none text-[#181818]",children:o}),l("p",{className:"RemoteFlows__SummaryHeader__Currency text-xs text-[#71717A]",children:["Employer billing currency: ",s.code]})]})]})}),"SummaryHeader"),g=m(({label:s,columns:o,rows:c,defaultValue:n="accordion",className:u})=>{let r=o.length===1?"grid-cols-2":"grid-cols-3";return e(y,{collapsible:!0,defaultValue:n,className:_("RemoteFlows__SummaryResults__MultiColumnAccordion w-full",u),children:l(d,{value:n,className:"RemoteFlows__SummaryResults__AccordionItem border-none",children:[e(p,{className:"RemoteFlows__SummaryResults__AccordionTrigger hover:no-underline px-0 py-3 [&>svg]:hidden group",children:l("div",{className:_("RemoteFlows__SummaryResults__AccordionHeader grid items-center w-full",r),children:[l("div",{className:"RemoteFlows__SummaryResults__AccordionHeader__LabelContainer flex items-center gap-2",children:[s,e(A,{className:"RemoteFlows__SummaryResults__ChevronDown h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:o[0]}):o.map((t,a)=>e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:t},a))]})}),e(R,{className:"RemoteFlows__SummaryResults__AccordionContent px-0 pb-4",children:e("div",{className:"RemoteFlows__SummaryResults__AccordionRows space-y-3",children:c.map((t,a)=>l("div",{className:_("RemoteFlows__SummaryResults__AccordionRow grid items-center",r),children:[e("div",{className:"flex items-center gap-2",children:t.label}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:t.values[0]}):t.values.map((F,x)=>e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:F},x))]},a))})})]})})},"MultiColumnAccordion"),S=m(({employeesCost:s})=>e(g,{label:e("span",{className:"RemoteFlows__CostForAllEmployees__Label text-sm font-medium text-[#0F172A]",children:"Cost for all employees"}),columns:["Total cost"],rows:[{label:l(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__MonthlyLabel text-sm text-[#09090B]",children:"Monthly cost"})]}),values:[s.monthlyTotal]},{label:l(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__AnnualLabel text-sm text-[#09090B]",children:"Annual cost"})]}),values:[s.annualTotal]}],defaultValue:"cost-breakdown"}),"CostForAllEmployees"),b=m(({costsPerCountry:s})=>e(g,{label:e("span",{className:"RemoteFlows__CostsPerCountry__Label text-sm font-medium text-[#0F172A]",children:"Cost per country"}),columns:["Monthly cost","Annual cost"],rows:s.map(o=>({label:l(C,{children:[e("span",{className:"RemoteFlows__CostsPerCountry__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostsPerCountry__CountryName text-sm text-[#09090B]",children:o.country.name})]}),values:[o.monthlyCost,o.annualCost]})),defaultValue:"country-breakdown"}),"CostsPerCountry"),k=m(({estimations:s})=>{let{currency:o,costsPerCountry:c,employeesCost:n}=v(s),[u,r]=h("summary");return!o||c.length===0||Object.keys(n).length===0?null:e(w,{className:"RemoteFlows__SummaryResults__Card p-10",children:e(y,{collapsible:!0,defaultValue:u,onValueChange:t=>r(t),className:"RemoteFlows__SummaryResults__Accordion w-full",children:l(d,{value:"summary",className:"RemoteFlows__SummaryResults__AccordionItem border-border",children:[e("div",{className:_("RemoteFlows__SummaryResults__AccordionTriggerContainer",{RemoteFlows__Separator:!!u}),children:e(p,{iconClassName:"size-6",className:"RemoteFlows__SummaryResults__MainAccordionTrigger hover:no-underline px-0 py-4",children:e(f,{currency:o,title:"Summary Overview"})})}),l(R,{className:"RemoteFlows__SummaryResults__MainAccordionContent px-0 pb-4 mt-6",children:[e("div",{className:"RemoteFlows__Separator",children:e(S,{employeesCost:n})}),e("div",{className:"RemoteFlows__SummaryResults__CostsPerCountryContainer mt-6",children:e(b,{costsPerCountry:c})})]})]})})})},"SummaryResults");export{k as a};
2
- //# sourceMappingURL=chunk-D53TVHHK.js.map
1
+ import{a as y,b as d,c as p,d as R}from"./chunk-DMNKKWLY.js";import{a as w}from"./chunk-N6XLGYRK.js";import{n as _,o as i}from"./chunk-G2LZFGZA.js";import{a as m}from"./chunk-P37U34EQ.js";import{ChevronDown as A,Globe as N}from"lucide-react";import{useState as h}from"react";import{Fragment as C,jsx as e,jsxs as l}from"react/jsx-runtime";var v=m(s=>{if(s.length<2)return{currency:null,costsPerCountry:[],employeesCost:null};let o=s[0]?.employer_currency_costs.currency,c=s.reduce((r,t)=>{let a=t.country.name;return r[a]={country:t.country,monthlyTotal:(r[a]?.monthlyTotal||0)+t.employer_currency_costs.monthly_total,annualTotal:(r[a]?.annualTotal||0)+t.employer_currency_costs.annual_total},r},{}),n=Object.values(c).map(({country:r,monthlyTotal:t,annualTotal:a})=>({country:r,monthlyCost:i(t,o.code),annualCost:i(a,o.code)})),u={monthlyTotal:i(s.reduce((r,t)=>r+t.employer_currency_costs.monthly_total,0),o.code),annualTotal:i(s.reduce((r,t)=>r+t.employer_currency_costs.annual_total,0),o.code)};return{currency:o,costsPerCountry:n,employeesCost:u}},"useSummaryResults"),f=m(({currency:s,title:o})=>e("div",{className:"RemoteFlows__SummaryResults__Header flex items-center justify-between w-full",children:l("div",{className:"RemoteFlows__SummaryHeader__Container flex flex-row items-center gap-6",children:[e("div",{className:"RemoteFlows__SummaryHeader__IconContainer flex h-12 w-12 items-center justify-center rounded-lg bg-[#F4F4F5]",children:e(N,{className:"RemoteFlows__SummaryHeader__Icon h-6 w-6 text-[#000000]"})}),l("div",{className:"RemoteFlows__SummaryHeader__Content space-y-1",children:[e("h2",{className:"RemoteFlows__SummaryHeader__Title text-lg font-medium leading-none text-[#181818]",children:o}),l("p",{className:"RemoteFlows__SummaryHeader__Currency text-xs text-[#71717A]",children:["Employer billing currency: ",s.code]})]})]})}),"SummaryHeader"),g=m(({label:s,columns:o,rows:c,defaultValue:n="accordion",className:u})=>{let r=o.length===1?"grid-cols-2":"grid-cols-3";return e(y,{collapsible:!0,defaultValue:n,className:_("RemoteFlows__SummaryResults__MultiColumnAccordion w-full",u),children:l(d,{value:n,className:"RemoteFlows__SummaryResults__AccordionItem border-none",children:[e(p,{className:"RemoteFlows__SummaryResults__AccordionTrigger hover:no-underline px-0 py-3 [&>svg]:hidden group",children:l("div",{className:_("RemoteFlows__SummaryResults__AccordionHeader grid items-center w-full",r),children:[l("div",{className:"RemoteFlows__SummaryResults__AccordionHeader__LabelContainer flex items-center gap-2",children:[s,e(A,{className:"RemoteFlows__SummaryResults__ChevronDown h-4 w-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:o[0]}):o.map((t,a)=>e("span",{className:"RemoteFlows__SummaryResults__ColumnHeader text-xs text-[#27272A] text-right",children:t},a))]})}),e(R,{className:"RemoteFlows__SummaryResults__AccordionContent px-0 pb-4",children:e("div",{className:"RemoteFlows__SummaryResults__AccordionRows space-y-3",children:c.map((t,a)=>l("div",{className:_("RemoteFlows__SummaryResults__AccordionRow grid items-center",r),children:[e("div",{className:"flex items-center gap-2",children:t.label}),o.length===1?e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:t.values[0]}):t.values.map((F,x)=>e("span",{className:"RemoteFlows__SummaryResults__RowValue text-sm text-[#09090B] text-right",children:F},x))]},a))})})]})})},"MultiColumnAccordion"),S=m(({employeesCost:s})=>e(g,{label:e("span",{className:"RemoteFlows__CostForAllEmployees__Label text-sm font-medium text-[#0F172A]",children:"Cost for all employees"}),columns:["Total cost"],rows:[{label:l(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__MonthlyLabel text-sm text-[#09090B]",children:"Monthly cost"})]}),values:[s.monthlyTotal]},{label:l(C,{children:[e("span",{className:"RemoteFlows__CostForAllEmployees__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostForAllEmployees__AnnualLabel text-sm text-[#09090B]",children:"Annual cost"})]}),values:[s.annualTotal]}],defaultValue:"cost-breakdown"}),"CostForAllEmployees"),b=m(({costsPerCountry:s})=>e(g,{label:e("span",{className:"RemoteFlows__CostsPerCountry__Label text-sm font-medium text-[#0F172A]",children:"Cost per country"}),columns:["Monthly cost","Annual cost"],rows:s.map(o=>({label:l(C,{children:[e("span",{className:"RemoteFlows__CostsPerCountry__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0"}),e("span",{className:"RemoteFlows__CostsPerCountry__CountryName text-sm text-[#09090B]",children:o.country.name})]}),values:[o.monthlyCost,o.annualCost]})),defaultValue:"country-breakdown"}),"CostsPerCountry"),k=m(({estimations:s})=>{let{currency:o,costsPerCountry:c,employeesCost:n}=v(s),[u,r]=h("summary");return!o||c.length===0||Object.keys(n).length===0?null:e(w,{className:"RemoteFlows__SummaryResults__Card p-10",children:e(y,{collapsible:!0,defaultValue:u,onValueChange:t=>r(t),className:"RemoteFlows__SummaryResults__Accordion w-full",children:l(d,{value:"summary",className:"RemoteFlows__SummaryResults__AccordionItem border-border",children:[e("div",{className:_("RemoteFlows__SummaryResults__AccordionTriggerContainer",{RemoteFlows__Separator:!!u}),children:e(p,{iconClassName:"size-6",className:"RemoteFlows__SummaryResults__MainAccordionTrigger hover:no-underline px-0 py-4",children:e(f,{currency:o,title:"Summary Overview"})})}),l(R,{className:"RemoteFlows__SummaryResults__MainAccordionContent px-0 pb-4 mt-6",children:[e("div",{className:"RemoteFlows__Separator",children:e(S,{employeesCost:n})}),e("div",{className:"RemoteFlows__SummaryResults__CostsPerCountryContainer mt-6",children:e(b,{costsPerCountry:c})})]})]})})})},"SummaryResults");export{k as a};
2
+ //# sourceMappingURL=chunk-44XEUAFV.js.map
@@ -1,2 +1,2 @@
1
- import{a as y}from"./chunk-SGE4DLC3.js";import{a as g}from"./chunk-OL5C4QEH.js";import{b as N}from"./chunk-KMANQZL4.js";import{n as w}from"./chunk-EFL7QFFN.js";import{b as D}from"./chunk-H2O4CVKF.js";import{a as d}from"./chunk-P37U34EQ.js";import{forwardRef as S}from"react";import{jsx as B}from"react/jsx-runtime";var b=S(({data:a=[],columns:s,className:o=""},n)=>{let{components:m}=D(),i=m?.table;if(!i)throw new Error("Table component not found");return B(i,{ref:n,data:a,columns:s,className:o})});b.displayName="Table";import{Fragment as c,jsx as e,jsxs as t}from"react/jsx-runtime";var _="RemoteFlows__SummaryRow flex justify-between items-center py-2 text-xs",F="RemoteFlows__SummaryRowBorder border-b border-b-1 border-b-[#E4E4E7]",l=d(({children:a,withBorder:s=!1,className:o=""})=>e("div",{className:w(_,s&&F,o),children:a}),"SummaryRow"),k=d(({usedDays:a,bookedDays:s,approvedDaysBeforeTermination:o,approvedDaysAfterTermination:n,remainingDays:m,proposedTerminationDate:i,isUnlimitedPto:f,currentEntitlementDays:p})=>{let r=new Date(i).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"});return t("div",{children:[t(l,{withBorder:!0,children:[e("label",{children:"Number of days entitled to per year"}),e("p",{"data-testid":"entitled-days",className:"font-bold",children:f?"Unlimited":p})]}),t(l,{children:[e("label",{children:"Total days booked"}),e("p",{"data-testid":"booked-days",className:"font-bold",children:s})]}),t(l,{children:[e("label",{children:"Number of days already used"}),e("p",{"data-testid":"used-days",className:"font-bold",children:a})]}),t(l,{children:[t("label",{children:["Approved for use before ",r]}),e("p",{"data-testid":"approved-days-before-termination",className:"font-bold",children:o})]}),t(l,{withBorder:!0,children:[t("label",{children:["Approved for use after ",r]}),e("p",{"data-testid":"approved-days-after-termination",className:"font-bold",children:n})]}),t(l,{children:[e("label",{children:"Total days remaining unused"}),e("p",{"data-testid":"remaining-days",className:"font-bold",children:m})]}),e(l,{className:"mb-2 py-0",children:t("p",{className:"text-xs text-[#222E39]",children:["Unused days expire on ",r]})})]})},"SummaryTimeOff"),O=[{id:"formattedDate",label:"Dates",className:"w-[250px]",cellClassName:"font-medium"},{id:"duration",label:"Duration",render:d(a=>y({number:a,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!0}),"render")},{id:"status",label:"Status"}],C=d(({employeeName:a,timeoffQuery:s,entitledDays:o,countryName:n,currentEntitlementDays:m,formattedProposedTerminationDate:i,onOpenChange:f,open:p})=>{let{data:r,isLoading:u}=s;return e(g,{open:p,onOpenChange:f,title:`${a} paid time off breakdown`,trigger:e(N,{variant:"link",className:"text-xs text-[#3B82F6] font-bold p-0",children:"See detailed time off breakdown \u2197"}),className:"h-full w-[540px] mt-0 ml-auto px-4 RemoteFlows_DrawerTimeOff",children:!u&&e(c,{children:Array.isArray(r?.timeoffs)&&r?.timeoffs?.length>0?t(c,{children:[e("p",{className:"text-[#09090B] font-medium mb-4",children:"This list is for your information only."}),t("p",{className:"text-xs text-[#09090B] mb-1 flex items-center justify-between gap-2",children:[t("span",{children:["Annual entitlement for ",n]}),e("span",{className:"font-bold",children:o})]}),t("p",{className:"text-xs text-[#09090B] mb-6 flex items-center justify-between gap-2",children:[t("span",{children:["Entitlement up to ",i]}),e("span",{className:"font-bold",children:m})]}),e("div",{className:"mb-2",children:e(b,{data:r?.timeoffs,columns:O})}),t("p",{className:"text-xs",children:["Total of"," ",y({number:r?.bookedDays,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!0})," ","booked"]})]}):t(c,{children:[e("p",{className:"font-medium mb-1 text-[#09090B]",children:"No recorded time off"}),t("p",{className:"text-sm text-[#09090B]",children:["According to our records, ",a," has not taken any time off this year."]})]})})})},"DrawerTimeOff"),H=d(({employeeName:a,proposedTerminationDate:s,summaryData:o,formattedProposedTerminationDate:n,timeoffQuery:m,employment:i,onOpenChange:f,open:p})=>{let{entitledDays:r,bookedDays:u,usedDays:x,approvedDaysBeforeTermination:R,approvedDaysAfterTermination:P,remainingDays:v,currentEntitlementDays:T,isUnlimitedPto:h}=o.data;return t("div",{className:"RemoteFlows__PaidTimeOff__Container py-3",children:[e("h3",{className:"RemoteFlows__PaidTimeOff__Title mb-2",children:"Paid time off"}),t("p",{className:"RemoteFlows__PaidTimeOff__Description text-sm mb-2",children:["The proposed termination date for ",a," is"," ",n,". You will need to pay them for any unused accrued days. Below is a breakdown of their time off entitlement and usage for the current annual leave period:"]}),t("div",{className:"mb-2",children:[!o?.isLoading&&!o?.isError&&o?.data&&e(k,{usedDays:x,bookedDays:u,currentEntitlementDays:T,approvedDaysBeforeTermination:R,approvedDaysAfterTermination:P,remainingDays:v,proposedTerminationDate:s,isUnlimitedPto:h}),e(C,{employeeName:a,timeoffQuery:m,entitledDays:r,currentEntitlementDays:T,countryName:i?.country?.name??"Unknown",onOpenChange:f,formattedProposedTerminationDate:n,open:p})]})]})},"PaidTimeOff");export{H as a};
2
- //# sourceMappingURL=chunk-JSFVJCPK.js.map
1
+ import{a as y}from"./chunk-SGE4DLC3.js";import{a as g}from"./chunk-OL5C4QEH.js";import{b as N}from"./chunk-T5J2Z6ZR.js";import{n as w}from"./chunk-G2LZFGZA.js";import{b as D}from"./chunk-H2O4CVKF.js";import{a as d}from"./chunk-P37U34EQ.js";import{forwardRef as S}from"react";import{jsx as B}from"react/jsx-runtime";var b=S(({data:a=[],columns:s,className:o=""},n)=>{let{components:m}=D(),i=m?.table;if(!i)throw new Error("Table component not found");return B(i,{ref:n,data:a,columns:s,className:o})});b.displayName="Table";import{Fragment as c,jsx as e,jsxs as t}from"react/jsx-runtime";var _="RemoteFlows__SummaryRow flex justify-between items-center py-2 text-xs",F="RemoteFlows__SummaryRowBorder border-b border-b-1 border-b-[#E4E4E7]",l=d(({children:a,withBorder:s=!1,className:o=""})=>e("div",{className:w(_,s&&F,o),children:a}),"SummaryRow"),k=d(({usedDays:a,bookedDays:s,approvedDaysBeforeTermination:o,approvedDaysAfterTermination:n,remainingDays:m,proposedTerminationDate:i,isUnlimitedPto:f,currentEntitlementDays:p})=>{let r=new Date(i).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"});return t("div",{children:[t(l,{withBorder:!0,children:[e("label",{children:"Number of days entitled to per year"}),e("p",{"data-testid":"entitled-days",className:"font-bold",children:f?"Unlimited":p})]}),t(l,{children:[e("label",{children:"Total days booked"}),e("p",{"data-testid":"booked-days",className:"font-bold",children:s})]}),t(l,{children:[e("label",{children:"Number of days already used"}),e("p",{"data-testid":"used-days",className:"font-bold",children:a})]}),t(l,{children:[t("label",{children:["Approved for use before ",r]}),e("p",{"data-testid":"approved-days-before-termination",className:"font-bold",children:o})]}),t(l,{withBorder:!0,children:[t("label",{children:["Approved for use after ",r]}),e("p",{"data-testid":"approved-days-after-termination",className:"font-bold",children:n})]}),t(l,{children:[e("label",{children:"Total days remaining unused"}),e("p",{"data-testid":"remaining-days",className:"font-bold",children:m})]}),e(l,{className:"mb-2 py-0",children:t("p",{className:"text-xs text-[#222E39]",children:["Unused days expire on ",r]})})]})},"SummaryTimeOff"),O=[{id:"formattedDate",label:"Dates",className:"w-[250px]",cellClassName:"font-medium"},{id:"duration",label:"Duration",render:d(a=>y({number:a,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!0}),"render")},{id:"status",label:"Status"}],C=d(({employeeName:a,timeoffQuery:s,entitledDays:o,countryName:n,currentEntitlementDays:m,formattedProposedTerminationDate:i,onOpenChange:f,open:p})=>{let{data:r,isLoading:u}=s;return e(g,{open:p,onOpenChange:f,title:`${a} paid time off breakdown`,trigger:e(N,{variant:"link",className:"text-xs text-[#3B82F6] font-bold p-0",children:"See detailed time off breakdown \u2197"}),className:"h-full w-[540px] mt-0 ml-auto px-4 RemoteFlows_DrawerTimeOff",children:!u&&e(c,{children:Array.isArray(r?.timeoffs)&&r?.timeoffs?.length>0?t(c,{children:[e("p",{className:"text-[#09090B] font-medium mb-4",children:"This list is for your information only."}),t("p",{className:"text-xs text-[#09090B] mb-1 flex items-center justify-between gap-2",children:[t("span",{children:["Annual entitlement for ",n]}),e("span",{className:"font-bold",children:o})]}),t("p",{className:"text-xs text-[#09090B] mb-6 flex items-center justify-between gap-2",children:[t("span",{children:["Entitlement up to ",i]}),e("span",{className:"font-bold",children:m})]}),e("div",{className:"mb-2",children:e(b,{data:r?.timeoffs,columns:O})}),t("p",{className:"text-xs",children:["Total of"," ",y({number:r?.bookedDays,singular:"day",plural:"days",followCopyGuidelines:!1,showNumber:!0})," ","booked"]})]}):t(c,{children:[e("p",{className:"font-medium mb-1 text-[#09090B]",children:"No recorded time off"}),t("p",{className:"text-sm text-[#09090B]",children:["According to our records, ",a," has not taken any time off this year."]})]})})})},"DrawerTimeOff"),H=d(({employeeName:a,proposedTerminationDate:s,summaryData:o,formattedProposedTerminationDate:n,timeoffQuery:m,employment:i,onOpenChange:f,open:p})=>{let{entitledDays:r,bookedDays:u,usedDays:x,approvedDaysBeforeTermination:R,approvedDaysAfterTermination:P,remainingDays:v,currentEntitlementDays:T,isUnlimitedPto:h}=o.data;return t("div",{className:"RemoteFlows__PaidTimeOff__Container py-3",children:[e("h3",{className:"RemoteFlows__PaidTimeOff__Title mb-2",children:"Paid time off"}),t("p",{className:"RemoteFlows__PaidTimeOff__Description text-sm mb-2",children:["The proposed termination date for ",a," is"," ",n,". You will need to pay them for any unused accrued days. Below is a breakdown of their time off entitlement and usage for the current annual leave period:"]}),t("div",{className:"mb-2",children:[!o?.isLoading&&!o?.isError&&o?.data&&e(k,{usedDays:x,bookedDays:u,currentEntitlementDays:T,approvedDaysBeforeTermination:R,approvedDaysAfterTermination:P,remainingDays:v,proposedTerminationDate:s,isUnlimitedPto:h}),e(C,{employeeName:a,timeoffQuery:m,entitledDays:r,currentEntitlementDays:T,countryName:i?.country?.name??"Unknown",onOpenChange:f,formattedProposedTerminationDate:n,open:p})]})]})},"PaidTimeOff");export{H as a};
2
+ //# sourceMappingURL=chunk-4MB3FE3T.js.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-SS2SYDCB.js";import{a as n}from"./chunk-LIPJXO2R.js";import{a as o}from"./chunk-P37U34EQ.js";import{useId as s}from"react";import{jsx as P}from"react/jsx-runtime";var y=o(()=>null,"PersonalDetailsStep"),i=o(()=>null,"HomeAddressStep"),d=o(()=>null,"BankAccountStep"),c=o(()=>null,"SubmitButton"),u=o(()=>null,"BackButton"),O=o(({employmentId:r,initialValues:t,options:p,render:a})=>{let m=s(),l=n({employmentId:r,initialValues:t,options:p});return P(e.Provider,{value:{formId:m,employeeBag:l},children:a({employeeBag:l,components:{PersonalDetailsStep:y,HomeAddressStep:i,BankAccountStep:d,SubmitButton:c,BackButton:u}})})},"PayrollEmployeeOnboardingFlow");export{O as a};
2
+ //# sourceMappingURL=chunk-4TNJXIDB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.tsx"],"sourcesContent":["import { useId } from 'react';\nimport { usePayrollEmployeeOnboarding } from '@/src/flows/PayrollEmployeeOnboarding/hooks';\nimport { PayrollEmployeeOnboardingContext } from '@/src/flows/PayrollEmployeeOnboarding/context';\nimport type { PayrollEmployeeOnboardingFlowProps } from '@/src/flows/PayrollEmployeeOnboarding/types';\n\n// Stable module-level references — prevents consumer subtrees from unmounting on parent re-renders.\n// Each will be replaced with a real implementation in PBYR-4045.\nconst PersonalDetailsStep = () => null;\nconst HomeAddressStep = () => null;\nconst BankAccountStep = () => null;\nconst SubmitButton = () => null;\nconst BackButton = () => null;\n\nexport const PayrollEmployeeOnboardingFlow = ({\n employmentId,\n initialValues,\n options,\n render,\n}: PayrollEmployeeOnboardingFlowProps) => {\n const formId = useId();\n const employeeBag = usePayrollEmployeeOnboarding({\n employmentId,\n initialValues,\n options,\n });\n\n return (\n <PayrollEmployeeOnboardingContext.Provider value={{ formId, employeeBag }}>\n {render({\n employeeBag,\n components: {\n PersonalDetailsStep,\n HomeAddressStep,\n BankAccountStep,\n SubmitButton,\n BackButton,\n },\n })}\n </PayrollEmployeeOnboardingContext.Provider>\n );\n};\n"],"mappings":"wHAAA,OAAS,SAAAA,MAAa,QA2BlB,cAAAC,MAAA,oBApBJ,IAAMC,EAAsBC,EAAA,IAAM,KAAN,uBACtBC,EAAkBD,EAAA,IAAM,KAAN,mBAClBE,EAAkBF,EAAA,IAAM,KAAN,mBAClBG,EAAeH,EAAA,IAAM,KAAN,gBACfI,EAAaJ,EAAA,IAAM,KAAN,cAENK,EAAgCL,EAAA,CAAC,CAC5C,aAAAM,EACA,cAAAC,EACA,QAAAC,EACA,OAAAC,CACF,IAA0C,CACxC,IAAMC,EAASC,EAAM,EACfC,EAAcC,EAA6B,CAC/C,aAAAP,EACA,cAAAC,EACA,QAAAC,CACF,CAAC,EAED,OACEV,EAACgB,EAAiC,SAAjC,CAA0C,MAAO,CAAE,OAAAJ,EAAQ,YAAAE,CAAY,EACrE,SAAAH,EAAO,CACN,YAAAG,EACA,WAAY,CACV,oBAAAb,EACA,gBAAAE,EACA,gBAAAC,EACA,aAAAC,EACA,WAAAC,CACF,CACF,CAAC,EACH,CAEJ,EA3B6C","names":["useId","jsx","PersonalDetailsStep","__name","HomeAddressStep","BankAccountStep","SubmitButton","BackButton","PayrollEmployeeOnboardingFlow","employmentId","initialValues","options","render","formId","useId","employeeBag","usePayrollEmployeeOnboarding","PayrollEmployeeOnboardingContext"]}
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-VY435JUV.js";import{b as i}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:s,onSuccess:c,onError:t}){let{onboardingBag:o}=i(),u=e(async n=>{try{await s?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await c?.(r?.data),o?.next();return}r?.error&&t?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(a,{defaultValues:l,onSubmit:u})}e(y,"SelectCountryStep");export{y as a};
2
- //# sourceMappingURL=chunk-AZJ2LLX5.js.map
1
+ import{a}from"./chunk-BRN6MO77.js";import{b as i}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:s,onSuccess:c,onError:t}){let{onboardingBag:o}=i(),u=e(async n=>{try{await s?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await c?.(r?.data),o?.next();return}r?.error&&t?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(a,{defaultValues:l,onSubmit:u})}e(y,"SelectCountryStep");export{y as a};
2
+ //# sourceMappingURL=chunk-53TM77OU.js.map
@@ -1,2 +1,2 @@
1
- import{P as e}from"./chunk-4YW6P3IJ.js";import{a as t}from"./chunk-P37U34EQ.js";import{queryOptions as i}from"@tanstack/react-query";var a=t((o,n="default")=>i({queryKey:["countries",n],retry:!1,queryFn:t(async()=>{let r=await e({client:o,headers:{Authorization:""}});if(r.error||!r.data)throw new Error("Failed to fetch supported countries");return r},"queryFn")}),"countriesOptions");export{a};
2
- //# sourceMappingURL=chunk-BFYHFJHJ.js.map
1
+ import{P as e}from"./chunk-GZUP2IE6.js";import{a as t}from"./chunk-P37U34EQ.js";import{queryOptions as i}from"@tanstack/react-query";var a=t((o,n="default")=>i({queryKey:["countries",n],retry:!1,queryFn:t(async()=>{let r=await e({client:o,headers:{Authorization:""}});if(r.error||!r.data)throw new Error("Failed to fetch supported countries");return r},"queryFn")}),"countriesOptions");export{a};
2
+ //# sourceMappingURL=chunk-54Z4QJ3Q.js.map
@@ -0,0 +1,2 @@
1
+ import{a as m}from"./chunk-NX7MM6XR.js";import{a as e}from"./chunk-ZXGAFQXW.js";import{a as i}from"./chunk-LMYJ6V44.js";import{a as o}from"./chunk-TC7EQZJK.js";var p={employee_communication:o,termination_details:e,paid_time_off:m,additional_information:i};export{p as a};
2
+ //# sourceMappingURL=chunk-5MPW7QWT.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-TZA2SOIV.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function d({onSubmit:m}){let{terminationBag:o}=a(),r=i(async t=>{let n=await o?.parseFormValues(t);await m?.(n),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:r})}i(d,"PaidTimeOffForm");export{d as a};
2
- //# sourceMappingURL=chunk-P6PJDSR5.js.map
1
+ import{a as e}from"./chunk-A2WWDGJJ.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function d({onSubmit:m}){let{terminationBag:o}=a(),r=i(async t=>{let n=await o?.parseFormValues(t);await m?.(n),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:r})}i(d,"PaidTimeOffForm");export{d as a};
2
+ //# sourceMappingURL=chunk-5XVYIBJD.js.map
@@ -1,2 +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-XX6RWLM6.js";import{a as te}from"./chunk-ZLZAHVV5.js";import{b as G}from"./chunk-Z5G55QMI.js";import{c as g,i as T,m as B}from"./chunk-UGPYPGVV.js";import{l as j,m as ee,n as H,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 no,useEffect as io,useRef as We}from"react";import V from"lodash.omit";import{jsx as se}from"react/jsx-runtime";function me({description:e,label:o,name:t,minDate:r,maxDate:i,onChange:l,component:a,...s}){let{components:p}=S(),{control:u}=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 i&&(f=new Date(`${i}T23:59:59`)),se(T,{control:u,name:t,render:({field:C,fieldState:h})=>{let c=a||p?.date;if(!c)throw new Error(`Date picker component not found for field ${t}`);let P={description:e,label:o,name:t,onChange:l,transformHtml:F,...m&&{minDate:m.toISOString()},...f&&{maxDate:f.toISOString()},...s};return se(c,{field:{...C,onChange:n(y=>{C.onChange(y),l?.(y)},"onChange")},fieldState:h,fieldData:P})}})}n(me,"DatePickerField");import{jsx as ae}from"react/jsx-runtime";var Oe=n((e,o)=>{if(!o)return null;for(let t of e)if(t.size>o){let r=Math.round(o/1048576),i=Math.round(t.size/(1024*1024));return`File "${t.name}" exceeds maximum size of ${r}MB (file is ${i}MB)`}return null},"validateFileSize");function de({name:e,description:o,label:t,multiple:r,onChange:i,component:l,accept:a,maxSize:s,...p}){let{components:u}=S(),{control:F,setError:m,clearErrors:f}=g(),C=x(),h=n(async(c,P)=>{let y=Oe(c,s);if(y){m(e,{message:y});return}f(e),P.onChange(c),i?.(c)},"handleOnChange");return ae(T,{control:F,name:e,render:({field:c,fieldState:P})=>{let y=l||u.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:{...c,value:c.value,onChange:n(async w=>h(w,c),"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:i}=g(),l=x();return pe(T,{control:i,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 u={onChange:o,transformHtml:l,...t};return pe(p,{field:{...a,onChange:n(F=>{a.onChange(F),o?.(F)},"onChange")},fieldState:s,fieldData:u})}})}n(I,"NumberField");import{jsx as ce}from"react/jsx-runtime";function ue({name:e,defaultValue:o,description:t,label:r,options:i,onChange:l,component:a,...s}){let{components:p}=S(),{control:u}=g(),F=x();return ce(T,{control:u,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:i,transformHtml:F,...s};return ce(C,{field:{...m,onChange:n(c=>{m.onChange(c),l?.(c)},"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:i,onChange:l,component:a,...s}){let{control:p}=g(),{components:u}=S(),F=x();return Fe(T,{defaultValue:r,control:p,name:o,render:({field:m,fieldState:f})=>{let C=a||u?.select;if(!C)throw new Error(`Select component not found for field ${o}`);let h={label:e,name:o,options:t,defaultValue:r,description:i,onChange:l,transformHtml:F,...s};return Fe(C,{field:{...m,onChange:n(c=>{let y=(Array.isArray(s.jsonType)?s.jsonType.includes("number"):s.jsonType==="number")?Number(c):c;m.onChange(y),l?.(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:i,onChange:l,$meta:a,component:s,...p}){let{control:u}=g(),{components:F}=S(),m=x();return Ce(T,{defaultValue:r,control:u,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 c={label:e,name:o,options:t,defaultValue:r,description:i,onChange:l,$meta:a,transformHtml:m,...p};return Ce(h,{field:{...f,onChange:n(P=>{f.onChange(P),l?.(P)},"onChange")},fieldState:C,fieldData:c})}})}n(ge,"CountryField");import{jsx as he}from"react/jsx-runtime";function Se({name:e,description:o,label:t,onChange:r,maxLength:i,component:l,...a}){let{components:s}=S(),{control:p}=g(),u=x();return he(T,{control:p,name:e,render:({field:F,fieldState:m})=>{let f=l||s.textarea;if(!f)throw new Error(`Text area component not found for field ${e}`);let C={name:e,description:o,label:t,maxLength:i,transformHtml:u,...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:i}=g(),l=x();return Te(T,{control:i,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 u={onChange:o,transformHtml:l,...t};return Te(p,{field:{...a,onChange:n(F=>{a.onChange(F),o?.(F)},"onChange")},fieldState:s,fieldData:u})}})}n(xe,"EmailField");import{useEffect as Ge}from"react";import{jsx as ye}from"react/jsx-runtime";function be(e){let{control:o,setValue:t}=g();return Ge(()=>{e.const!==void 0&&e.const===e.default&&e.name&&t(e.name,e.const)},[e.const,e.default,e.name,t]),ye(T,{control:o,name:e.name,render:({field:r})=>ye("input",{...r,type:"hidden"})})}n(be,"HiddenField");import{useEffect as Ue,useState as Ze}from"react";import{jsx as Pe}from"react/jsx-runtime";function $e(e){let{components:o}=S(),{setValue:t,control:r,watch:i}=g(),l=x(),a=i(e.name),[s,p]=Ze(a),{workHoursSummary:u,breakSummary:F}=ie(s),m=ne(s);Ue(()=>{t(e.name,s)},[s,e.name,t]);function f(c){p(c)}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:l,defaultFormattedValue:{workHoursSummary:u,breakSummary:F,totalWorkHours:m}};return Pe(T,{control:r,name:e.name,render:({field:c,fieldState:P})=>Pe(C,{field:{...c,onChange:n(y=>{c.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:i,onChange:l,component:a,...s}){let{control:p}=g(),{components:u}=S(),F=x();return De(T,{defaultValue:r,control:p,name:o,render:({field:m,fieldState:f})=>{let C=a||u?.["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:i,onChange:l,transformHtml:F,...s};return De(C,{field:{...m,onChange:n(c=>{m.onChange(c),l?.(c)},"onChange")},fieldState:f,fieldData:h})}})}n(Re,"MultiSelectField");import{jsx as Ke}from"react/jsx-runtime";var ve=n(e=>Ke(I,{maxLength:15,...e}),"MoneyField");import{useMemo as L,useCallback as we,useState as qe,useEffect as Qe,useRef as Xe}from"react";import{jsx as U}from"react/jsx-runtime";function Ye(e){return e.replace(/\s/g,"")}n(Ye,"removeSpaces");function _e(e="",o){let t=new RegExp(`^(\\+|00)(\\d{${o?.dialCode?.length??0}})(.*)$`),r=e?.match(t);if(!r)return{prefix:"",dialCode:"",phoneNumber:e};let[,i,l,a]=r;return{prefix:i,dialCode:l,phoneNumber:a}}n(_e,"getStructuredNumberFromInternationalNumber");function Ee({dialCodes:e,dialCodeMaxLength:o},t){let{prefix:r}=_e(t);if(r)for(let i=o+r.length;i>r.length;i--){let l=t.slice(r.length,i);if(e[l])return e[l]}}n(Ee,"getCountryFromPhoneNumber");function Me(e){let o={},t=0;return e.forEach(r=>{r.areaCodes?r.areaCodes.forEach(i=>{let l=r.dialCode+i;o[l]=r,l.length>t&&(t=l.length)}):(o[r.dialCode]=r,r.dialCode.length>t&&(t=r.dialCode.length))}),{dialCodes:o,dialCodeMaxLength:t}}n(Me,"getCountryDataByCountryCode");function je(e=""){let o=/\(([^)]+)\)/g,t=e.match(o);if(t?.length===2)return t[1].replace(/\(|\)/g,"").split("|")}n(je,"getAreaCodesFromPattern");function eo(e){return e.map(o=>({name:o.label,dialCode:o.meta.countryCode,pattern:o.pattern,areaCodes:je(o.pattern)}))}n(eo,"transformSchemaToCountries");function oo({field:e,fieldState:o,fieldData:t,component:r,onChangeCountryCode:i,onChangePhoneNumber:l}){let{value:a}=e,{options:s}=t,p=L(()=>eo(s),[s]),u=L(()=>Me(p),[p]),F=Xe(!1),[m,f]=qe(()=>Ee(Me(p),a||""));Qe(()=>{if((!a||a==="+")&&(F.current=!1),F.current)return;let b=Ee(u,a||"");f(b)},[a,u]);let{prefix:C,phoneNumber:h}=L(()=>_e(a,m),[a,m]),c=we(b=>{if(!b)return;let w=`+${b.dialCode}${h}`;F.current=!0,f(b),e.onChange(w),i&&i(b)},[h,e,i]),P=we(b=>{let w=Ye(b.target.value),_;if(m?_=`${C}${m.dialCode}${w}`:_=`${C}${w}`,e.onChange(_),l){let N={target:{value:_,name:e.name}};l(N)}},[m,C,e,l]),y=L(()=>({...t,onChangeCountryCode:c,onChangePhoneNumber:P,currentCountry:m,nationalPhoneNumber:h}),[t,c,P,m,h]);return U(r,{field:e,fieldState:o,fieldData:y})}n(oo,"TelFieldRenderer");function Ne({name:e,description:o,label:t,onChangeCountryCode:r,onChangePhoneNumber:i,component:l,...a}){let{components:s}=S(),{control:p}=g(),u=x();return U(T,{control:p,name:e,render:({field:F,fieldState:m})=>{let f=l||s.tel;if(!f)throw new Error(`Tel component not found for field ${e}`);let C={name:e,description:o,label:t,transformHtml:u,...a};return U(oo,{field:F,fieldState:m,fieldData:C,component:f,onChangeCountryCode:r,onChangePhoneNumber:i})}})}n(Ne,"TelField");import{jsx as ke}from"react/jsx-runtime";function He({name:e,description:o,label:t,type:r,onChange:i,component:l,maxLength:a,...s}){let{components:p}=S(),{control:u}=g(),F=x();return ke(T,{control:u,name:e,render:({field:m,fieldState:f})=>{let C=l||p?.time;if(!C)throw new Error(`Time component not found for field ${e}`);let h={name:e,description:o,label:t,type:r,onChange:i,maxLength:a,transformHtml:F,...s};return ke(C,{field:{...m,onChange:n(c=>{m.onChange(c),i?.(c)},"onChange")},fieldState:f,fieldData:h})}})}n(He,"TimeField");var Z={checkbox:le,text:te,email:xe,money:ve,select:fe,"multi-select":Re,radio:ue,number:I,file:de,date:me,textarea:Se,countries:ge,hidden:be,tel:Ne,time:He,"work-schedule":$e};import{useEffect as to}from"react";import{jsx as K,jsxs as ro}from"react/jsx-runtime";function Ve({name:e,value:o,description:t,statement:r,label:i,helpCenter:l}){let{setValue:a}=g(),s=r?.description||t,p=r?.title?O(r?.title):O(i),u=`forced-value-${e}-title`,F=`forced-value-${e}-description`;return to(()=>{a(e,o)},[e,o,a]),!s&&!r?.title?null:ro("div",{role:"group","aria-labelledby":p?u:void 0,"aria-describedby":s?F:void 0,children:[p&&K("p",{id:u,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:l}),children:s})]})}n(Ve,"ForcedValueField");import{Fragment as q,jsx as $,jsxs as M}from"react/jsx-runtime";function Ae({label:e,name:o,fields:t,description:r,components:i,statement:l,isFlatFieldset:a,extra:s,variant:p="outset",features:u,meta:F}){let{helpCenter:m}=F||{},{watch:f,setValue:C,trigger:h,formState:c}=g(),{components:P}=S(),y=u?.toggle?.stateField,b=y?f(y):u?.toggle?.defaultExpanded??!0,w=t.map(({name:d})=>`${o}.${d}`),_=t.some(d=>d.calculateDynamicProperties),N=f(w),Be=_?f():N,Q=We(N),k=We(null),Je=n(()=>{y&&C(y,!b)},"toggleExpanded");io(()=>{let d=N,E=Q.current,R=c.isSubmitted||c.submitCount>0,W=!1;for(let v=0;v<d.length;v++)if(d[v]!==void 0&&E[v]!==d[v]){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,c.isSubmitted,c.submitCount]);let Ie=P?.fieldsetToggle||re,X=`${o}-content`,Y=`${o}-header`;return M("fieldset",{className:H("border-1 border-input p-4 rounded-xl","RemoteFlows__FieldSetField",`RemoteFlows__FieldSetField__${o}`),children:[$("legend",{className:H("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:H("RemoteFlows__FieldSetField__Title"),children:e}),u?.toggle?.enabled&&$(Ie,{isExpanded:b,onToggle:Je,"aria-expanded":b,"aria-controls":X,"aria-label":`${b?"Hide":"Show"} ${e}`,className:H("RemoteFlows__FieldSetField__Toggle",u.toggle?.className),children:b?u.toggle.labels?.collapse??"Remove":u.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(Be,d)||{}}),d.isVisible===!1||d.deprecated)return null;let E=d.type,R=`${a?d.name:`${o}.${d.name}`}`,W=ee(d),v=n((D,A)=>d.WrapperComponent?$(d.WrapperComponent,{children:D},A):$(no,{children:D},A),"wrapWithCustomWrapper");if(W){let D=V(d,"WrapperComponent");return v($(Ve,{name:R,description:D.description,value:D.const,statement:D.statement,label:D.label,helpCenter:D.meta?.helpCenter}),R)}if(E==="fieldset"){let D=V(d,"WrapperComponent");return v($(Ae,{...D,name:R,components:i}),R)}if(E==="fieldset-flat"){let D=V(d,"WrapperComponent");return v($(Ae,{...D,name:R,components:i,isFlatFieldset:!0}),R)}let z=Z[E];if(d.Component){let{Component:D}=d,A=V(d,"WrapperComponent");return v(M(q,{children:[$(D,{...A,value:f(R),setValue:ze=>{C(R,ze)}}),d.statement?$(J,{...d.statement}):null,d.extra?d.extra:null]}),R)}if(!z)return M("p",{className:"error",children:["Field type ",E," not supported"]});E==="select"&&d.multiple&&(z=Z["multi-select"]);let Le=V(d,"WrapperComponent");return v(M(q,{children:[$(z,{...Le,name:R,component:i?.[E]}),d.statement?$(J,{...d.statement}):null,d.extra?d.extra:null]}),R)}),s||null,l?$(J,{...l}):null]})]})]})}n(Ae,"FieldSetField");export{Z as a,Ve as b,Ae as c};
2
- //# sourceMappingURL=chunk-2ADIF2YA.js.map
1
+ import{a as J}from"./chunk-OXTA4W4J.js";import{a as re}from"./chunk-RR57VT45.js";import{b as ne,c as ie,f as le}from"./chunk-FQFLC6YA.js";import{a as oe}from"./chunk-YVS5MBND.js";import{a as te}from"./chunk-OV6PV4N5.js";import{b as G}from"./chunk-LOPZZUAF.js";import{c as g,i as T,m as B}from"./chunk-Y3CJRZLA.js";import{l as j,m as ee,n as H,r as O}from"./chunk-G2LZFGZA.js";import{b as S,c as x}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as no,useEffect as io,useRef as We}from"react";import V from"lodash.omit";import{jsx as se}from"react/jsx-runtime";function me({description:e,label:o,name:t,minDate:r,maxDate:i,onChange:l,component:a,...s}){let{components:p}=S(),{control:u}=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 i&&(f=new Date(`${i}T23:59:59`)),se(T,{control:u,name:t,render:({field:C,fieldState:h})=>{let c=a||p?.date;if(!c)throw new Error(`Date picker component not found for field ${t}`);let P={description:e,label:o,name:t,onChange:l,transformHtml:F,...m&&{minDate:m.toISOString()},...f&&{maxDate:f.toISOString()},...s};return se(c,{field:{...C,onChange:n(y=>{C.onChange(y),l?.(y)},"onChange")},fieldState:h,fieldData:P})}})}n(me,"DatePickerField");import{jsx as ae}from"react/jsx-runtime";var Oe=n((e,o)=>{if(!o)return null;for(let t of e)if(t.size>o){let r=Math.round(o/1048576),i=Math.round(t.size/(1024*1024));return`File "${t.name}" exceeds maximum size of ${r}MB (file is ${i}MB)`}return null},"validateFileSize");function de({name:e,description:o,label:t,multiple:r,onChange:i,component:l,accept:a,maxSize:s,...p}){let{components:u}=S(),{control:F,setError:m,clearErrors:f}=g(),C=x(),h=n(async(c,P)=>{let y=Oe(c,s);if(y){m(e,{message:y});return}f(e),P.onChange(c),i?.(c)},"handleOnChange");return ae(T,{control:F,name:e,render:({field:c,fieldState:P})=>{let y=l||u.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:{...c,value:c.value,onChange:n(async w=>h(w,c),"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:i}=g(),l=x();return pe(T,{control:i,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 u={onChange:o,transformHtml:l,...t};return pe(p,{field:{...a,onChange:n(F=>{a.onChange(F),o?.(F)},"onChange")},fieldState:s,fieldData:u})}})}n(I,"NumberField");import{jsx as ce}from"react/jsx-runtime";function ue({name:e,defaultValue:o,description:t,label:r,options:i,onChange:l,component:a,...s}){let{components:p}=S(),{control:u}=g(),F=x();return ce(T,{control:u,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:i,transformHtml:F,...s};return ce(C,{field:{...m,onChange:n(c=>{m.onChange(c),l?.(c)},"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:i,onChange:l,component:a,...s}){let{control:p}=g(),{components:u}=S(),F=x();return Fe(T,{defaultValue:r,control:p,name:o,render:({field:m,fieldState:f})=>{let C=a||u?.select;if(!C)throw new Error(`Select component not found for field ${o}`);let h={label:e,name:o,options:t,defaultValue:r,description:i,onChange:l,transformHtml:F,...s};return Fe(C,{field:{...m,onChange:n(c=>{let y=(Array.isArray(s.jsonType)?s.jsonType.includes("number"):s.jsonType==="number")?Number(c):c;m.onChange(y),l?.(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:i,onChange:l,$meta:a,component:s,...p}){let{control:u}=g(),{components:F}=S(),m=x();return Ce(T,{defaultValue:r,control:u,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 c={label:e,name:o,options:t,defaultValue:r,description:i,onChange:l,$meta:a,transformHtml:m,...p};return Ce(h,{field:{...f,onChange:n(P=>{f.onChange(P),l?.(P)},"onChange")},fieldState:C,fieldData:c})}})}n(ge,"CountryField");import{jsx as he}from"react/jsx-runtime";function Se({name:e,description:o,label:t,onChange:r,maxLength:i,component:l,...a}){let{components:s}=S(),{control:p}=g(),u=x();return he(T,{control:p,name:e,render:({field:F,fieldState:m})=>{let f=l||s.textarea;if(!f)throw new Error(`Text area component not found for field ${e}`);let C={name:e,description:o,label:t,maxLength:i,transformHtml:u,...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:i}=g(),l=x();return Te(T,{control:i,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 u={onChange:o,transformHtml:l,...t};return Te(p,{field:{...a,onChange:n(F=>{a.onChange(F),o?.(F)},"onChange")},fieldState:s,fieldData:u})}})}n(xe,"EmailField");import{useEffect as Ge}from"react";import{jsx as ye}from"react/jsx-runtime";function be(e){let{control:o,setValue:t}=g();return Ge(()=>{e.const!==void 0&&e.const===e.default&&e.name&&t(e.name,e.const)},[e.const,e.default,e.name,t]),ye(T,{control:o,name:e.name,render:({field:r})=>ye("input",{...r,type:"hidden"})})}n(be,"HiddenField");import{useEffect as Ue,useState as Ze}from"react";import{jsx as Pe}from"react/jsx-runtime";function $e(e){let{components:o}=S(),{setValue:t,control:r,watch:i}=g(),l=x(),a=i(e.name),[s,p]=Ze(a),{workHoursSummary:u,breakSummary:F}=ie(s),m=ne(s);Ue(()=>{t(e.name,s)},[s,e.name,t]);function f(c){p(c)}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:l,defaultFormattedValue:{workHoursSummary:u,breakSummary:F,totalWorkHours:m}};return Pe(T,{control:r,name:e.name,render:({field:c,fieldState:P})=>Pe(C,{field:{...c,onChange:n(y=>{c.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:i,onChange:l,component:a,...s}){let{control:p}=g(),{components:u}=S(),F=x();return De(T,{defaultValue:r,control:p,name:o,render:({field:m,fieldState:f})=>{let C=a||u?.["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:i,onChange:l,transformHtml:F,...s};return De(C,{field:{...m,onChange:n(c=>{m.onChange(c),l?.(c)},"onChange")},fieldState:f,fieldData:h})}})}n(Re,"MultiSelectField");import{jsx as Ke}from"react/jsx-runtime";var ve=n(e=>Ke(I,{maxLength:15,...e}),"MoneyField");import{useMemo as L,useCallback as we,useState as qe,useEffect as Qe,useRef as Xe}from"react";import{jsx as U}from"react/jsx-runtime";function Ye(e){return e.replace(/\s/g,"")}n(Ye,"removeSpaces");function _e(e="",o){let t=new RegExp(`^(\\+|00)(\\d{${o?.dialCode?.length??0}})(.*)$`),r=e?.match(t);if(!r)return{prefix:"",dialCode:"",phoneNumber:e};let[,i,l,a]=r;return{prefix:i,dialCode:l,phoneNumber:a}}n(_e,"getStructuredNumberFromInternationalNumber");function Ee({dialCodes:e,dialCodeMaxLength:o},t){let{prefix:r}=_e(t);if(r)for(let i=o+r.length;i>r.length;i--){let l=t.slice(r.length,i);if(e[l])return e[l]}}n(Ee,"getCountryFromPhoneNumber");function Me(e){let o={},t=0;return e.forEach(r=>{r.areaCodes?r.areaCodes.forEach(i=>{let l=r.dialCode+i;o[l]=r,l.length>t&&(t=l.length)}):(o[r.dialCode]=r,r.dialCode.length>t&&(t=r.dialCode.length))}),{dialCodes:o,dialCodeMaxLength:t}}n(Me,"getCountryDataByCountryCode");function je(e=""){let o=/\(([^)]+)\)/g,t=e.match(o);if(t?.length===2)return t[1].replace(/\(|\)/g,"").split("|")}n(je,"getAreaCodesFromPattern");function eo(e){return e.map(o=>({name:o.label,dialCode:o.meta.countryCode,pattern:o.pattern,areaCodes:je(o.pattern)}))}n(eo,"transformSchemaToCountries");function oo({field:e,fieldState:o,fieldData:t,component:r,onChangeCountryCode:i,onChangePhoneNumber:l}){let{value:a}=e,{options:s}=t,p=L(()=>eo(s),[s]),u=L(()=>Me(p),[p]),F=Xe(!1),[m,f]=qe(()=>Ee(Me(p),a||""));Qe(()=>{if((!a||a==="+")&&(F.current=!1),F.current)return;let b=Ee(u,a||"");f(b)},[a,u]);let{prefix:C,phoneNumber:h}=L(()=>_e(a,m),[a,m]),c=we(b=>{if(!b)return;let w=`+${b.dialCode}${h}`;F.current=!0,f(b),e.onChange(w),i&&i(b)},[h,e,i]),P=we(b=>{let w=Ye(b.target.value),_;if(m?_=`${C}${m.dialCode}${w}`:_=`${C}${w}`,e.onChange(_),l){let N={target:{value:_,name:e.name}};l(N)}},[m,C,e,l]),y=L(()=>({...t,onChangeCountryCode:c,onChangePhoneNumber:P,currentCountry:m,nationalPhoneNumber:h}),[t,c,P,m,h]);return U(r,{field:e,fieldState:o,fieldData:y})}n(oo,"TelFieldRenderer");function Ne({name:e,description:o,label:t,onChangeCountryCode:r,onChangePhoneNumber:i,component:l,...a}){let{components:s}=S(),{control:p}=g(),u=x();return U(T,{control:p,name:e,render:({field:F,fieldState:m})=>{let f=l||s.tel;if(!f)throw new Error(`Tel component not found for field ${e}`);let C={name:e,description:o,label:t,transformHtml:u,...a};return U(oo,{field:F,fieldState:m,fieldData:C,component:f,onChangeCountryCode:r,onChangePhoneNumber:i})}})}n(Ne,"TelField");import{jsx as ke}from"react/jsx-runtime";function He({name:e,description:o,label:t,type:r,onChange:i,component:l,maxLength:a,...s}){let{components:p}=S(),{control:u}=g(),F=x();return ke(T,{control:u,name:e,render:({field:m,fieldState:f})=>{let C=l||p?.time;if(!C)throw new Error(`Time component not found for field ${e}`);let h={name:e,description:o,label:t,type:r,onChange:i,maxLength:a,transformHtml:F,...s};return ke(C,{field:{...m,onChange:n(c=>{m.onChange(c),i?.(c)},"onChange")},fieldState:f,fieldData:h})}})}n(He,"TimeField");var Z={checkbox:le,text:te,email:xe,money:ve,select:fe,"multi-select":Re,radio:ue,number:I,file:de,date:me,textarea:Se,countries:ge,hidden:be,tel:Ne,time:He,"work-schedule":$e};import{useEffect as to}from"react";import{jsx as K,jsxs as ro}from"react/jsx-runtime";function Ve({name:e,value:o,description:t,statement:r,label:i,helpCenter:l}){let{setValue:a}=g(),s=r?.description||t,p=r?.title?O(r?.title):O(i),u=`forced-value-${e}-title`,F=`forced-value-${e}-description`;return to(()=>{a(e,o)},[e,o,a]),!s&&!r?.title?null:ro("div",{role:"group","aria-labelledby":p?u:void 0,"aria-describedby":s?F:void 0,children:[p&&K("p",{id:u,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:l}),children:s})]})}n(Ve,"ForcedValueField");import{Fragment as q,jsx as $,jsxs as M}from"react/jsx-runtime";function Ae({label:e,name:o,fields:t,description:r,components:i,statement:l,isFlatFieldset:a,extra:s,variant:p="outset",features:u,meta:F}){let{helpCenter:m}=F||{},{watch:f,setValue:C,trigger:h,formState:c}=g(),{components:P}=S(),y=u?.toggle?.stateField,b=y?f(y):u?.toggle?.defaultExpanded??!0,w=t.map(({name:d})=>`${o}.${d}`),_=t.some(d=>d.calculateDynamicProperties),N=f(w),Be=_?f():N,Q=We(N),k=We(null),Je=n(()=>{y&&C(y,!b)},"toggleExpanded");io(()=>{let d=N,E=Q.current,R=c.isSubmitted||c.submitCount>0,W=!1;for(let v=0;v<d.length;v++)if(d[v]!==void 0&&E[v]!==d[v]){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,c.isSubmitted,c.submitCount]);let Ie=P?.fieldsetToggle||re,X=`${o}-content`,Y=`${o}-header`;return M("fieldset",{className:H("border-1 border-input p-4 rounded-xl","RemoteFlows__FieldSetField",`RemoteFlows__FieldSetField__${o}`),children:[$("legend",{className:H("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:H("RemoteFlows__FieldSetField__Title"),children:e}),u?.toggle?.enabled&&$(Ie,{isExpanded:b,onToggle:Je,"aria-expanded":b,"aria-controls":X,"aria-label":`${b?"Hide":"Show"} ${e}`,className:H("RemoteFlows__FieldSetField__Toggle",u.toggle?.className),children:b?u.toggle.labels?.collapse??"Remove":u.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(Be,d)||{}}),d.isVisible===!1||d.deprecated)return null;let E=d.type,R=`${a?d.name:`${o}.${d.name}`}`,W=ee(d),v=n((D,A)=>d.WrapperComponent?$(d.WrapperComponent,{children:D},A):$(no,{children:D},A),"wrapWithCustomWrapper");if(W){let D=V(d,"WrapperComponent");return v($(Ve,{name:R,description:D.description,value:D.const,statement:D.statement,label:D.label,helpCenter:D.meta?.helpCenter}),R)}if(E==="fieldset"){let D=V(d,"WrapperComponent");return v($(Ae,{...D,name:R,components:i}),R)}if(E==="fieldset-flat"){let D=V(d,"WrapperComponent");return v($(Ae,{...D,name:R,components:i,isFlatFieldset:!0}),R)}let z=Z[E];if(d.Component){let{Component:D}=d,A=V(d,"WrapperComponent");return v(M(q,{children:[$(D,{...A,value:f(R),setValue:ze=>{C(R,ze)}}),d.statement?$(J,{...d.statement}):null,d.extra?d.extra:null]}),R)}if(!z)return M("p",{className:"error",children:["Field type ",E," not supported"]});E==="select"&&d.multiple&&(z=Z["multi-select"]);let Le=V(d,"WrapperComponent");return v(M(q,{children:[$(z,{...Le,name:R,component:i?.[E]}),d.statement?$(J,{...d.statement}):null,d.extra?d.extra:null]}),R)}),s||null,l?$(J,{...l}):null]})]})]})}n(Ae,"FieldSetField");export{Z as a,Ve as b,Ae as c};
2
+ //# sourceMappingURL=chunk-6HAWSFOM.js.map
@@ -1,2 +1,2 @@
1
- import{n as t}from"./chunk-EFL7QFFN.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as a,jsxs as r}from"react/jsx-runtime";function m(n,o,i){return{"x-jsf-presentation":{inputType:"hidden",Component:e(()=>r("div",{className:t("RemoteFlows__InformationStatement",i?.className),children:[a("h3",{className:t("RemoteFlows__InformationStatement__Title"),children:n}),a("p",{className:t("RemoteFlows__InformationStatement__Description"),children:o})]}),"Component")}}}e(m,"createInformationField");function c({title:n,description:o,severity:i}){return{statement:{title:n,description:o,severity:i}}}e(c,"createStatementProperty");export{m as a,c as b};
2
- //# sourceMappingURL=chunk-QOH4BNEZ.js.map
1
+ import{n as t}from"./chunk-G2LZFGZA.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as a,jsxs as r}from"react/jsx-runtime";function m(n,o,i){return{"x-jsf-presentation":{inputType:"hidden",Component:e(()=>r("div",{className:t("RemoteFlows__InformationStatement",i?.className),children:[a("h3",{className:t("RemoteFlows__InformationStatement__Title"),children:n}),a("p",{className:t("RemoteFlows__InformationStatement__Description"),children:o})]}),"Component")}}}e(m,"createInformationField");function c({title:n,description:o,severity:i}){return{statement:{title:n,description:o,severity:i}}}e(c,"createStatementProperty");export{m as a,c as b};
2
+ //# sourceMappingURL=chunk-6PWZ4TBI.js.map
@@ -1,2 +1,2 @@
1
- import{f as e,h as a}from"./chunk-UGPYPGVV.js";import{h as m}from"./chunk-EFL7QFFN.js";import{b as s}from"./chunk-TVZAFTPT.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";function R({onSubmit:d,onError:c,onSuccess:l}){let{contractAmendment:{stepState:u,isSubmitting:f,onSubmit:C,fields:p},formId:A}=s(),n=e({defaultValues:u.values?.form}),F=o(async r=>{let V=await m(r,p,{isPartialValidation:!1});await d?.(V);let t=await C(r);t.error?c?.(t.error):await l?.(t.data)},"handleSubmit");return f?null:i(a,{...n,children:i("form",{id:A,onSubmit:n.handleSubmit(F),className:"RemoteFlows__ContractAmendmentConfirmationForm"})})}o(R,"ContractAmendmentConfirmationForm");export{R as a};
2
- //# sourceMappingURL=chunk-BJPP76IU.js.map
1
+ import{f as e,h as a}from"./chunk-Y3CJRZLA.js";import{h as m}from"./chunk-G2LZFGZA.js";import{b as s}from"./chunk-TVZAFTPT.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";function R({onSubmit:d,onError:c,onSuccess:l}){let{contractAmendment:{stepState:u,isSubmitting:f,onSubmit:C,fields:p},formId:A}=s(),n=e({defaultValues:u.values?.form}),F=o(async r=>{let V=await m(r,p,{isPartialValidation:!1});await d?.(V);let t=await C(r);t.error?c?.(t.error):await l?.(t.data)},"handleSubmit");return f?null:i(a,{...n,children:i("form",{id:A,onSubmit:n.handleSubmit(F),className:"RemoteFlows__ContractAmendmentConfirmationForm"})})}o(R,"ContractAmendmentConfirmationForm");export{R as a};
2
+ //# sourceMappingURL=chunk-74ICDGQK.js.map
@@ -1,2 +1,2 @@
1
- import{a as _}from"./chunk-5WIBTOCI.js";import{a as h}from"./chunk-BFYHFJHJ.js";import{a as l}from"./chunk-OXKDKDSH.js";import{B as p,D as y,W as f,da as C}from"./chunk-4YW6P3IJ.js";import{e as c}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useMutation as F}from"@tanstack/react-query";import{useQuery as u}from"@tanstack/react-query";var b=n(e=>{let{client:o}=c();return u({...e,queryKey:["company-currencies"],retry:!1,queryFn:n(async()=>{let r=await f({client:o});if(r.error||!r.data)throw new Error("Failed to fetch company currencies");return r},"queryFn"),select:n(({data:r})=>r?.data?.company_currencies.map(t=>({value:t.code,label:t.code}))||[],"select")})},"useCompanyCurrencies"),A=n(()=>{let{client:e}=c();return F({mutationFn:n(o=>C({client:e,headers:{Authorization:""},body:o,query:{action:"send_create_password_email"}}),"mutationFn")})},"useCreateCompanyRequest"),I=n(()=>{let{client:e}=c();return F({mutationFn:n(({companyId:o,payload:r,jsonSchemaVersion:t})=>p({client:e,headers:{Authorization:""},path:{company_id:o},body:r,query:{address_details_json_schema_version:t}}),"mutationFn")})},"useUpdateCompanyRequest"),P=n(e=>{let{client:o}=c(),{data:r,isLoading:t}=u({...h(o,"create-company-countries"),select:n(i=>i.data?.data?.filter(s=>s.eor_onboarding).map(s=>({label:s.name,value:s.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),{data:a,isLoading:m}=b(e?.queryOptions),d=l(_.data.schema,{},e);if(r){let i=d.fields.find(s=>s.name==="country_code");i&&(i.options=r)}if(a){let i=d.fields.find(s=>s.name==="desired_currency");i&&(i.options=a)}return{isLoading:t||m,companyBasicInformationForm:d}},"useCountriesSchemaField"),z=n(({countryCode:e,fieldValues:o,options:r})=>{let{client:t}=c();return u({queryKey:["company-address-details-schema",e],retry:!1,queryFn:n(async()=>{if(!e)throw new Error("Country code is required");let a=await y({client:t,headers:{Authorization:""},path:{country_code:e,form:"address_details"},query:{json_schema_version:r?.jsonSchemaVersion?.form_schema?.address_details||"latest"}});if(a.error||!a.data)throw new Error("Failed to fetch address details schema");return a},"queryFn"),enabled:r?.queryOptions?.enabled&&!!e,select:n(({data:a})=>{let m=a?.data||{};return l(m,o,r)},"select")})},"useAddressDetailsSchema");export{A as a,I as b,P as c,z as d};
2
- //# sourceMappingURL=chunk-O77SKTAI.js.map
1
+ import{a as _}from"./chunk-5WIBTOCI.js";import{a as h}from"./chunk-54Z4QJ3Q.js";import{a as l}from"./chunk-LKVQ32ZK.js";import{B as p,D as y,W as f,ea as C}from"./chunk-GZUP2IE6.js";import{e as c}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useMutation as F}from"@tanstack/react-query";import{useQuery as u}from"@tanstack/react-query";var b=n(e=>{let{client:o}=c();return u({...e,queryKey:["company-currencies"],retry:!1,queryFn:n(async()=>{let r=await f({client:o});if(r.error||!r.data)throw new Error("Failed to fetch company currencies");return r},"queryFn"),select:n(({data:r})=>r?.data?.company_currencies.map(t=>({value:t.code,label:t.code}))||[],"select")})},"useCompanyCurrencies"),A=n(()=>{let{client:e}=c();return F({mutationFn:n(o=>C({client:e,headers:{Authorization:""},body:o,query:{action:"send_create_password_email"}}),"mutationFn")})},"useCreateCompanyRequest"),I=n(()=>{let{client:e}=c();return F({mutationFn:n(({companyId:o,payload:r,jsonSchemaVersion:t})=>p({client:e,headers:{Authorization:""},path:{company_id:o},body:r,query:{address_details_json_schema_version:t}}),"mutationFn")})},"useUpdateCompanyRequest"),P=n(e=>{let{client:o}=c(),{data:r,isLoading:t}=u({...h(o,"create-company-countries"),select:n(i=>i.data?.data?.filter(s=>s.eor_onboarding).map(s=>({label:s.name,value:s.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),{data:a,isLoading:m}=b(e?.queryOptions),d=l(_.data.schema,{},e);if(r){let i=d.fields.find(s=>s.name==="country_code");i&&(i.options=r)}if(a){let i=d.fields.find(s=>s.name==="desired_currency");i&&(i.options=a)}return{isLoading:t||m,companyBasicInformationForm:d}},"useCountriesSchemaField"),z=n(({countryCode:e,fieldValues:o,options:r})=>{let{client:t}=c();return u({queryKey:["company-address-details-schema",e],retry:!1,queryFn:n(async()=>{if(!e)throw new Error("Country code is required");let a=await y({client:t,headers:{Authorization:""},path:{country_code:e,form:"address_details"},query:{json_schema_version:r?.jsonSchemaVersion?.form_schema?.address_details||"latest"}});if(a.error||!a.data)throw new Error("Failed to fetch address details schema");return a},"queryFn"),enabled:r?.queryOptions?.enabled&&!!e,select:n(({data:a})=>{let m=a?.data||{};return l(m,o,r)},"select")})},"useAddressDetailsSchema");export{A as a,I as b,P as c,z as d};
2
+ //# sourceMappingURL=chunk-76VZ4ARW.js.map
@@ -1,2 +1,2 @@
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
+ import{a as o,b as r}from"./chunk-Q2OGLLBA.js";import{a as t}from"./chunk-OXTA4W4J.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-7BPB4PXN.js.map
@@ -1,2 +1,2 @@
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
+ import{a as o}from"./chunk-OV6PV4N5.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-7D4XFAQR.js.map
@@ -1,2 +1,2 @@
1
- import{b as n}from"./chunk-MRYRNB7Y.js";import{a as l}from"./chunk-OVIOWKNG.js";import{a as t}from"./chunk-3PDMZU34.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-TZA2SOIV.js.map
1
+ import{b as n}from"./chunk-MRYRNB7Y.js";import{a as l}from"./chunk-J2ARI3NQ.js";import{a as t}from"./chunk-KUKZNLCF.js";import{h as a}from"./chunk-Y3CJRZLA.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-A2WWDGJJ.js.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-NKVCGPK6.js";import{a as k}from"./chunk-XX6RWLM6.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-GRNUG4VT.js.map
1
+ import{a as c}from"./chunk-QJJZTAG2.js";import{a as k}from"./chunk-YVS5MBND.js";import{j as p,k as a,l as d,n as i,o as u}from"./chunk-Y3CJRZLA.js";import{n as _}from"./chunk-G2LZFGZA.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-ASTB4YJL.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-TZOTRZGK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";var l=e(({currency:n,desiredCurrency:o,annual_gross_salary_conversion_properties:r,...a})=>i(s,{...a,sourceCurrency:n,targetCurrency:o,conversionFieldName:"annual_gross_salary_conversion",conversionProperties:{...r,description:r?.description||"Estimated amount. This is an estimation. We calculate conversions based on spot rates that are subject to fluctuation over time."},classNamePrefix:"RemoteFlows-AnnualGrossSalary",conversionType:"no_spread"}),"AnnualGrossSalary");export{l as a};
2
- //# sourceMappingURL=chunk-EKRKYUUE.js.map
1
+ import{a as s}from"./chunk-HAACNERA.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";var l=e(({currency:n,desiredCurrency:o,annual_gross_salary_conversion_properties:r,...a})=>i(s,{...a,sourceCurrency:n,targetCurrency:o,conversionFieldName:"annual_gross_salary_conversion",conversionProperties:{...r,description:r?.description||"Estimated amount. This is an estimation. We calculate conversions based on spot rates that are subject to fluctuation over time."},classNamePrefix:"RemoteFlows-AnnualGrossSalary",conversionType:"no_spread"}),"AnnualGrossSalary");export{l as a};
2
+ //# sourceMappingURL=chunk-AXDL47BE.js.map
@@ -1,2 +1,2 @@
1
- import{a as k}from"./chunk-XFD3ULUF.js";import{a as S}from"./chunk-QSBXRKYE.js";import{a as m,b as u,c as h,d as _}from"./chunk-DFJNVGK4.js";import{a as y}from"./chunk-NW3D7CPK.js";import{a as g}from"./chunk-OXKDKDSH.js";import{I as T,ba as b,c as D}from"./chunk-4YW6P3IJ.js";import{e as i}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useQuery as v}from"@tanstack/react-query";var c=n(({employmentId:e,status:t,timeoffType:a,options:o})=>{let{client:r}=i();return v({queryKey:["timeoff",e,t],retry:!1,queryFn:n(()=>b({client:r,headers:{Authorization:""},query:{employment_id:e,status:t,timeoff_type:a}}),"queryFn"),select:n(({data:s})=>o?.select?.(s)??s,"select"),enabled:o?.enabled})},"useTimeOffQuery"),R=n((e,t)=>{let a=y(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),o=y(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return`${a} \u2192 ${o}`},"formatDateRange"),N=n(({employmentId:e,options:t})=>c({employmentId:e,timeoffType:"paid_time_off",options:{enabled:t?.enabled,select:n(a=>({bookedDays:a?.data?.timeoffs?.reduce((o,r)=>o+(r?.timeoff_days?.filter(s=>s.hours!=null&&s.hours>0).length||0),0)||0,timeoffs:a?.data?.timeoffs?.map(o=>{let r=o?.timeoff_days?.filter(s=>s.hours>0).length||0;return{status:o?.status,duration:r,startDate:o?.start_date,endDate:o?.end_date,formattedDate:R(o?.start_date,o?.end_date)}})||[]}),"select")}}),"usePaidTimeoffBreakdownQuery"),A=n(({employmentId:e})=>{let{client:t}=i();return v({queryKey:["timeoff-balance",e],retry:!1,queryFn:n(()=>T({client:t,headers:{Authorization:""},path:{employment_id:e}}),"queryFn"),select:n(({data:a})=>a,"select")})},"useTimeOffLeavePoliciesSummaryQuery");import{useMutation as x,useQuery as Q}from"@tanstack/react-query";function V(e){return Object.entries(e).reduce((t,[a,o])=>({...t,[a]:h(o)}),{})}n(V,"formatTimeoffValues");function F(e){let t=e?.contract_details?.available_pto,a=e?.contract_details?.available_pto_type;return e?.country?.code==="USA"&&a==="unlimited"?{value:t===0?20:t}:a==="unlimited"&&t>0?{value:t}:{value:t}}n(F,"getMinimumStatutoryDays");function q(e,t){let a=0,o=0;return e.forEach(r=>{r.timeoff_days?.forEach(s=>{new Date(s.day)<=t?a+=s.hours||0:o+=s.hours||0})}),{before:a,after:o}}n(q,"getAllTimeoffHoursBeforeDate");var U=n(({employmentId:e,date:t,options:a})=>c({employmentId:e,timeoffType:"paid_time_off",status:"approved",options:{enabled:a?.enabled,select:n(o=>{let{before:r,after:s}=q(o?.data?.timeoffs||[],new Date(t));return{bookedDaysBeforeTermination:u(r),bookedDaysAfterTermination:u(s)}},"select")}}),"useBookedTimeoffBeforeAndAfterTerminationQuery"),me=n(({employmentId:e,proposedTerminationDate:t,employment:a})=>{let{value:o=0}=F(a),r=A({employmentId:e}),s=U({employmentId:e,date:t}),p=r.data?.data?.[0].annual_entitlement.type==="limited"?{days:r.data?.data?.[0].annual_entitlement.days,hours:r.data?.data?.[0].annual_entitlement.hours}:{days:o,hours:0},d={days:r.data?.data?.[0].booked.days||0,hours:r.data?.data?.[0].booked.hours||0},f=r.data?.data?.[0].current_entitlement.type==="limited"?{days:r.data?.data?.[0].current_entitlement.days||0,hours:r.data?.data?.[0].current_entitlement.hours||0}:{days:o,hours:0},l={days:r.data?.data?.[0].used.days||0,hours:r.data?.data?.[0].used.hours||0},B=s.data?.bookedDaysBeforeTermination||{days:0,hours:0},C=s.data?.bookedDaysAfterTermination||{days:0,hours:0},H=m(f.days,f.hours),P=m(l.days,l.hours),E=m(d.days,d.hours),L=H-P-E,O=_(u(L));return{data:{...V({entitledDays:p,bookedDays:d,usedDays:l,approvedDaysBeforeTermination:B,approvedDaysAfterTermination:C,remainingDays:O,currentEntitlementDays:f}),isUnlimitedPto:a?.contract_details?.available_pto_type==="unlimited"},isLoading:r.isLoading||s.isLoading,isError:r.isError||s.isError,error:r.error||s.error}},"useSummaryTimeOffDataQuery"),ue=n(()=>{let{client:e}=i();return x({mutationFn:n(t=>D({client:e,body:t}),"mutationFn")})},"useCreateTermination"),de=n(({formValues:e,jsfModify:t,step:a})=>Q({queryKey:["rmt-flows-termination-schema",a],queryFn:n(()=>S[a]??k,"queryFn"),select:n(({data:o})=>{let r=o?.schema||{};return g(r,e||{},{jsfModify:t})},"select")}),"useTerminationSchema");export{c as a,N as b,A as c,U as d,me as e,ue as f,de as g};
2
- //# sourceMappingURL=chunk-BVUHS36Q.js.map
1
+ import{a as S}from"./chunk-5MPW7QWT.js";import{a as k}from"./chunk-XFD3ULUF.js";import{a as m,b as u,c as h,d as _}from"./chunk-DFJNVGK4.js";import{a as y}from"./chunk-NW3D7CPK.js";import{a as g}from"./chunk-LKVQ32ZK.js";import{I as T,c as D,ca as b}from"./chunk-GZUP2IE6.js";import{e as i}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useQuery as v}from"@tanstack/react-query";var c=n(({employmentId:e,status:t,timeoffType:a,options:o})=>{let{client:r}=i();return v({queryKey:["timeoff",e,t],retry:!1,queryFn:n(()=>b({client:r,headers:{Authorization:""},query:{employment_id:e,status:t,timeoff_type:a}}),"queryFn"),select:n(({data:s})=>o?.select?.(s)??s,"select"),enabled:o?.enabled})},"useTimeOffQuery"),R=n((e,t)=>{let a=y(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),o=y(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return`${a} \u2192 ${o}`},"formatDateRange"),N=n(({employmentId:e,options:t})=>c({employmentId:e,timeoffType:"paid_time_off",options:{enabled:t?.enabled,select:n(a=>({bookedDays:a?.data?.timeoffs?.reduce((o,r)=>o+(r?.timeoff_days?.filter(s=>s.hours!=null&&s.hours>0).length||0),0)||0,timeoffs:a?.data?.timeoffs?.map(o=>{let r=o?.timeoff_days?.filter(s=>s.hours>0).length||0;return{status:o?.status,duration:r,startDate:o?.start_date,endDate:o?.end_date,formattedDate:R(o?.start_date,o?.end_date)}})||[]}),"select")}}),"usePaidTimeoffBreakdownQuery"),A=n(({employmentId:e})=>{let{client:t}=i();return v({queryKey:["timeoff-balance",e],retry:!1,queryFn:n(()=>T({client:t,headers:{Authorization:""},path:{employment_id:e}}),"queryFn"),select:n(({data:a})=>a,"select")})},"useTimeOffLeavePoliciesSummaryQuery");import{useMutation as x,useQuery as Q}from"@tanstack/react-query";function V(e){return Object.entries(e).reduce((t,[a,o])=>({...t,[a]:h(o)}),{})}n(V,"formatTimeoffValues");function F(e){let t=e?.contract_details?.available_pto,a=e?.contract_details?.available_pto_type;return e?.country?.code==="USA"&&a==="unlimited"?{value:t===0?20:t}:a==="unlimited"&&t>0?{value:t}:{value:t}}n(F,"getMinimumStatutoryDays");function q(e,t){let a=0,o=0;return e.forEach(r=>{r.timeoff_days?.forEach(s=>{new Date(s.day)<=t?a+=s.hours||0:o+=s.hours||0})}),{before:a,after:o}}n(q,"getAllTimeoffHoursBeforeDate");var U=n(({employmentId:e,date:t,options:a})=>c({employmentId:e,timeoffType:"paid_time_off",status:"approved",options:{enabled:a?.enabled,select:n(o=>{let{before:r,after:s}=q(o?.data?.timeoffs||[],new Date(t));return{bookedDaysBeforeTermination:u(r),bookedDaysAfterTermination:u(s)}},"select")}}),"useBookedTimeoffBeforeAndAfterTerminationQuery"),me=n(({employmentId:e,proposedTerminationDate:t,employment:a})=>{let{value:o=0}=F(a),r=A({employmentId:e}),s=U({employmentId:e,date:t}),p=r.data?.data?.[0].annual_entitlement.type==="limited"?{days:r.data?.data?.[0].annual_entitlement.days,hours:r.data?.data?.[0].annual_entitlement.hours}:{days:o,hours:0},d={days:r.data?.data?.[0].booked.days||0,hours:r.data?.data?.[0].booked.hours||0},f=r.data?.data?.[0].current_entitlement.type==="limited"?{days:r.data?.data?.[0].current_entitlement.days||0,hours:r.data?.data?.[0].current_entitlement.hours||0}:{days:o,hours:0},l={days:r.data?.data?.[0].used.days||0,hours:r.data?.data?.[0].used.hours||0},B=s.data?.bookedDaysBeforeTermination||{days:0,hours:0},C=s.data?.bookedDaysAfterTermination||{days:0,hours:0},H=m(f.days,f.hours),P=m(l.days,l.hours),E=m(d.days,d.hours),L=H-P-E,O=_(u(L));return{data:{...V({entitledDays:p,bookedDays:d,usedDays:l,approvedDaysBeforeTermination:B,approvedDaysAfterTermination:C,remainingDays:O,currentEntitlementDays:f}),isUnlimitedPto:a?.contract_details?.available_pto_type==="unlimited"},isLoading:r.isLoading||s.isLoading,isError:r.isError||s.isError,error:r.error||s.error}},"useSummaryTimeOffDataQuery"),ue=n(()=>{let{client:e}=i();return x({mutationFn:n(t=>D({client:e,body:t}),"mutationFn")})},"useCreateTermination"),de=n(({formValues:e,jsfModify:t,step:a})=>Q({queryKey:["rmt-flows-termination-schema",a],queryFn:n(()=>S[a]??k,"queryFn"),select:n(({data:o})=>{let r=o?.schema||{};return g(r,e||{},{jsfModify:t})},"select")}),"useTerminationSchema");export{c as a,N as b,A as c,U as d,me as e,ue as f,de as g};
2
+ //# sourceMappingURL=chunk-BRI2ESJ3.js.map
@@ -1,2 +1,2 @@
1
- import{b as f}from"./chunk-PGWKJ6FK.js";import{a as l}from"./chunk-OVIOWKNG.js";import{a as d}from"./chunk-3PDMZU34.js";import{h as m}from"./chunk-UGPYPGVV.js";import{c as s}from"./chunk-EFL7QFFN.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as k}from"react";import{jsx as c}from"react/jsx-runtime";import{createElement as w}from"react";function R({defaultValues:p,onSubmit:F,components:u}){let{formId:S,onboardingBag:e}=f(),r=l({handleValidation:e.handleValidation,defaultValues:p,checkFieldUpdates:e.checkFieldUpdates});k(()=>{e.employmentId&&e?.checkFieldUpdates(r.getValues())},[]);let g=t(async(a,y)=>{let n=y?.nativeEvent;if(n?.isDraftSubmission){let{onSuccess:E,onError:i}=n.draftCallbacks;try{let o=await e.onSubmit(a);if(o?.data)E?.();else if(o?.error){let b=e.stepState.currentStep.name,h=e.meta?.fields?.[b],P=s(o?.fieldErrors||[],h);i?.({error:o.error,rawError:o.rawError,fieldErrors:P})}}catch(o){i?.({error:o,rawError:o,fieldErrors:[]})}}else await F(a)},"handleSubmit");return w(m,{...r,key:`form-${e.stepState.currentStep.name}`},c("form",{id:S,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:c(d,{components:u,fields:e.fields,fieldsets:e.meta.fieldsets,fieldValues:e.fieldValues})}))}t(R,"OnboardingForm");export{R as a};
2
- //# sourceMappingURL=chunk-VY435JUV.js.map
1
+ import{b as f}from"./chunk-PGWKJ6FK.js";import{a as l}from"./chunk-J2ARI3NQ.js";import{a as d}from"./chunk-KUKZNLCF.js";import{h as m}from"./chunk-Y3CJRZLA.js";import{c as s}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as k}from"react";import{jsx as c}from"react/jsx-runtime";import{createElement as w}from"react";function R({defaultValues:p,onSubmit:F,components:u}){let{formId:S,onboardingBag:e}=f(),r=l({handleValidation:e.handleValidation,defaultValues:p,checkFieldUpdates:e.checkFieldUpdates});k(()=>{e.employmentId&&e?.checkFieldUpdates(r.getValues())},[]);let g=t(async(a,y)=>{let n=y?.nativeEvent;if(n?.isDraftSubmission){let{onSuccess:E,onError:i}=n.draftCallbacks;try{let o=await e.onSubmit(a);if(o?.data)E?.();else if(o?.error){let b=e.stepState.currentStep.name,h=e.meta?.fields?.[b],P=s(o?.fieldErrors||[],h);i?.({error:o.error,rawError:o.rawError,fieldErrors:P})}}catch(o){i?.({error:o,rawError:o,fieldErrors:[]})}}else await F(a)},"handleSubmit");return w(m,{...r,key:`form-${e.stepState.currentStep.name}`},c("form",{id:S,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:c(d,{components:u,fields:e.fields,fieldsets:e.meta.fieldsets,fieldValues:e.fieldValues})}))}t(R,"OnboardingForm");export{R as a};
2
+ //# sourceMappingURL=chunk-BRN6MO77.js.map
@@ -1,2 +1,2 @@
1
- import{n as e}from"./chunk-EFL7QFFN.js";import{a}from"./chunk-P37U34EQ.js";import{cva as n}from"class-variance-authority";import{jsx as i}from"react/jsx-runtime";var o=n("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-card bg-warning border-warning-border [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function c({className:t,variant:r,...s}){return i("div",{"data-slot":"alert",role:"alert",className:e(o({variant:r}),t),...s})}a(c,"Alert");function g({className:t,...r}){return i("div",{"data-slot":"alert-title",className:e("col-start-2 min-h-4 font-medium tracking-tight",t),...r})}a(g,"AlertTitle");function p({className:t,...r}){return i("div",{"data-slot":"alert-description",className:e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed inline-block",t),...r})}a(p,"AlertDescription");export{c as a,g as b,p as c};
2
- //# sourceMappingURL=chunk-KUMYB3ZB.js.map
1
+ import{n as e}from"./chunk-G2LZFGZA.js";import{a}from"./chunk-P37U34EQ.js";import{cva as n}from"class-variance-authority";import{jsx as i}from"react/jsx-runtime";var o=n("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-card bg-warning border-warning-border [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function c({className:t,variant:r,...s}){return i("div",{"data-slot":"alert",role:"alert",className:e(o({variant:r}),t),...s})}a(c,"Alert");function g({className:t,...r}){return i("div",{"data-slot":"alert-title",className:e("col-start-2 min-h-4 font-medium tracking-tight",t),...r})}a(g,"AlertTitle");function p({className:t,...r}){return i("div",{"data-slot":"alert-description",className:e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed inline-block",t),...r})}a(p,"AlertDescription");export{c as a,g as b,p as c};
2
+ //# sourceMappingURL=chunk-BUOHZMK6.js.map
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-OVIOWKNG.js";import{b as c}from"./chunk-Q3ALCPJN.js";import{a as l}from"./chunk-3PDMZU34.js";import{h as m}from"./chunk-UGPYPGVV.js";import{c as s}from"./chunk-EFL7QFFN.js";import{a}from"./chunk-P37U34EQ.js";import{useEffect as f}from"react";import{jsx as F}from"react/jsx-runtime";import{createElement as V}from"react";function B({defaultValues:p,onSubmit:u,components:S}){let{formId:y,contractorOnboardingBag:o,formRef:t}=c(),r=d({handleValidation:o.handleValidation,defaultValues:p,checkFieldUpdates:o.checkFieldUpdates});f(()=>{t?.setValue&&(t.setValue.current=r.setValue)},[r.setValue,t]),f(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]);let g=a(async(n,b)=>{let i=b?.nativeEvent;if(i?.isDraftSubmission){let{onSuccess:P,onError:E}=i.draftCallbacks;try{await o.onSubmit(n),P?.()}catch(e){let C=o.stepState.currentStep.name,h=o.meta?.fields?.[C],O=s(e?.fieldErrors||[],h);E?.({error:e?.error||e,rawError:e?.rawError||e,fieldErrors:O})}}else await u(n,r)},"handleSubmit");return V(m,{...r,key:`form-${o.stepState.currentStep.name}`},F("form",{id:y,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:F(l,{components:S,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}a(B,"ContractorOnboardingForm");export{B as a};
2
- //# sourceMappingURL=chunk-KOLEBOZV.js.map
1
+ import{a as d}from"./chunk-J2ARI3NQ.js";import{b as c}from"./chunk-Q3ALCPJN.js";import{a as l}from"./chunk-KUKZNLCF.js";import{h as m}from"./chunk-Y3CJRZLA.js";import{c as s}from"./chunk-G2LZFGZA.js";import{a}from"./chunk-P37U34EQ.js";import{useEffect as f}from"react";import{jsx as F}from"react/jsx-runtime";import{createElement as V}from"react";function B({defaultValues:p,onSubmit:u,components:S}){let{formId:y,contractorOnboardingBag:o,formRef:t}=c(),r=d({handleValidation:o.handleValidation,defaultValues:p,checkFieldUpdates:o.checkFieldUpdates});f(()=>{t?.setValue&&(t.setValue.current=r.setValue)},[r.setValue,t]),f(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]);let g=a(async(n,b)=>{let i=b?.nativeEvent;if(i?.isDraftSubmission){let{onSuccess:P,onError:E}=i.draftCallbacks;try{await o.onSubmit(n),P?.()}catch(e){let C=o.stepState.currentStep.name,h=o.meta?.fields?.[C],O=s(e?.fieldErrors||[],h);E?.({error:e?.error||e,rawError:e?.rawError||e,fieldErrors:O})}}else await u(n,r)},"handleSubmit");return V(m,{...r,key:`form-${o.stepState.currentStep.name}`},F("form",{id:y,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:F(l,{components:S,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}a(B,"ContractorOnboardingForm");export{B as a};
2
+ //# sourceMappingURL=chunk-CFOXBJRN.js.map