@remoteoss/remote-flows 1.44.0 → 1.46.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 (666) hide show
  1. package/dist/ButtonDefault-HBOULH5V.js +2 -0
  2. package/dist/CheckboxFieldDefault-62URAHJV.js +2 -0
  3. package/dist/CountryFieldDefault-24NNZN2C.js +2 -0
  4. package/dist/DatePickerFieldDefault-NMUCZ4U2.js +2 -0
  5. package/dist/DrawerDefault-O7NUFWJ4.js +2 -0
  6. package/dist/EmailFieldDefault-7USH7I6B.js +2 -0
  7. package/dist/FieldsetToggleButtonDefault-MIRCZJKA.js +2 -0
  8. package/dist/FileUploadFieldDefault-4NW5VLF6.js +2 -0
  9. package/dist/MultiSelectFieldDefault-S45Z53ZY.js +2 -0
  10. package/dist/NumberFieldDefault-P7TLA6SH.js +2 -0
  11. package/dist/RadioGroupFieldDefault-X44FYUA3.js +2 -0
  12. package/dist/SelectFieldDefault-PLDXHTQY.js +2 -0
  13. package/dist/StatementDefault-RDC5G24K.js +2 -0
  14. package/dist/TableFieldDefault-ES7OIYX5.js +2 -0
  15. package/dist/TelFieldDefault-IYGEEV5V.js +2 -0
  16. package/dist/TextAreaFieldDefault-C6M3PIV2.js +2 -0
  17. package/dist/TextFieldDefault-FTX32V3D.js +2 -0
  18. package/dist/TimeFieldDefault-J6PKL5T4.js +2 -0
  19. package/dist/WorkScheduleFieldDefault-JAU2YFQF.js +2 -0
  20. package/dist/ZendeskDrawerDefault-HGKAUCUV.js +2 -0
  21. package/dist/{chunk-D4XBTJOV.js → chunk-2CGPCBQY.js} +2 -2
  22. package/dist/{chunk-HXEOVMUT.js → chunk-2EGFPBT7.js} +2 -2
  23. package/dist/chunk-2FIBHHT7.js +2 -0
  24. package/dist/chunk-2FIBHHT7.js.map +1 -0
  25. package/dist/{chunk-PRXJRF7V.js → chunk-2GAKAYG7.js} +2 -2
  26. package/dist/{chunk-GGDVTGHG.js → chunk-2QQZODFC.js} +2 -2
  27. package/dist/{chunk-7D4XFAQR.js → chunk-3HGUMECW.js} +2 -2
  28. package/dist/{chunk-F35ALUPA.js → chunk-3ISSVSL5.js} +2 -2
  29. package/dist/chunk-3O7L6JUX.js +2 -0
  30. package/dist/chunk-3O7L6JUX.js.map +1 -0
  31. package/dist/{chunk-746NEWTS.js → chunk-3OJAX7QH.js} +2 -2
  32. package/dist/{chunk-Z5LVLVTU.js → chunk-3OTZWYVQ.js} +2 -2
  33. package/dist/{chunk-Y3CJRZLA.js → chunk-4FGKIGKF.js} +2 -2
  34. package/dist/chunk-4FV6Z3HE.js +2 -0
  35. package/dist/{chunk-JVLARDTF.js.map → chunk-4FV6Z3HE.js.map} +1 -1
  36. package/dist/{chunk-74ICDGQK.js → chunk-4X7TVFHA.js} +2 -2
  37. package/dist/chunk-5MPW7QWT.js +2 -0
  38. package/dist/{chunk-TQH4OKHR.js → chunk-5N5B5AU2.js} +2 -2
  39. package/dist/{chunk-QO7Y6QRE.js → chunk-64OGJGKN.js} +2 -2
  40. package/dist/{chunk-LSC6NTXD.js → chunk-65G3JQ7T.js} +2 -2
  41. package/dist/{chunk-43NIG25S.js → chunk-6AZKF6RW.js} +2 -2
  42. package/dist/{chunk-OPX7E3W2.js → chunk-6JTUAJBZ.js} +2 -2
  43. package/dist/{chunk-3BAVRWSN.js → chunk-6PP3Y63Z.js} +2 -2
  44. package/dist/{chunk-S3EXF5DV.js → chunk-6QEAL5BB.js} +2 -2
  45. package/dist/{chunk-LFHFZU6X.js → chunk-6SNWSCXH.js} +2 -2
  46. package/dist/{chunk-KT4Y4UPD.js → chunk-74A4TMTF.js} +2 -2
  47. package/dist/{chunk-43FMKELR.js → chunk-75N7DFXJ.js} +2 -2
  48. package/dist/chunk-7EFZVAWU.js +2 -0
  49. package/dist/chunk-7EFZVAWU.js.map +1 -0
  50. package/dist/{chunk-7NFCUTWO.js → chunk-7UFIQ64V.js} +2 -2
  51. package/dist/{chunk-MGDYS2EY.js → chunk-A6KORIJF.js} +2 -2
  52. package/dist/chunk-AHIJ7DGJ.js +2 -0
  53. package/dist/chunk-AHIJ7DGJ.js.map +1 -0
  54. package/dist/{chunk-N6XLGYRK.js → chunk-AHUSQVQY.js} +2 -2
  55. package/dist/chunk-AVK2P75W.js +2 -0
  56. package/dist/chunk-AVK2P75W.js.map +1 -0
  57. package/dist/chunk-AW436CZP.js +2 -0
  58. package/dist/chunk-AW436CZP.js.map +1 -0
  59. package/dist/{chunk-CRDG62ZJ.js → chunk-B6YPSCBC.js} +2 -2
  60. package/dist/{chunk-T5J2Z6ZR.js → chunk-BC4V2YAK.js} +2 -2
  61. package/dist/{chunk-PQG6KZIO.js → chunk-BGSB3XPW.js} +2 -2
  62. package/dist/{chunk-D2MZKYRH.js → chunk-BHKAKCV4.js} +2 -2
  63. package/dist/chunk-BODQC6OK.js +2 -0
  64. package/dist/chunk-BODQC6OK.js.map +1 -0
  65. package/dist/{chunk-R4TM2Y3K.js → chunk-BS2YN6CS.js} +2 -2
  66. package/dist/{chunk-FHIMDCMT.js → chunk-BVKOMSHU.js} +2 -2
  67. package/dist/{chunk-PSU2AEFU.js → chunk-BZ4VPC4U.js} +2 -2
  68. package/dist/{chunk-YJFRQSTA.js → chunk-BZA2XA4Q.js} +2 -2
  69. package/dist/chunk-C4NBYBED.js +2 -0
  70. package/dist/chunk-C4NBYBED.js.map +1 -0
  71. package/dist/{chunk-OXTA4W4J.js → chunk-CM4UUBU5.js} +2 -2
  72. package/dist/{chunk-YWLRVUE3.js → chunk-CUM2NKZ4.js} +2 -2
  73. package/dist/{chunk-DO7OL4EG.js → chunk-DAYIMXLP.js} +2 -2
  74. package/dist/{chunk-BUOHZMK6.js → chunk-DDH7MZ7M.js} +2 -2
  75. package/dist/{chunk-44XEUAFV.js → chunk-DKOETPI4.js} +2 -2
  76. package/dist/{chunk-QJJZTAG2.js → chunk-DLSHZLHX.js} +2 -2
  77. package/dist/{chunk-MHIY35CK.js → chunk-DOVE5SYY.js} +2 -2
  78. package/dist/chunk-DZ3A4POL.js +2 -0
  79. package/dist/chunk-DZ3A4POL.js.map +1 -0
  80. package/dist/{chunk-6OHLLH6W.js → chunk-EFIPOWDJ.js} +2 -2
  81. package/dist/chunk-EOSJHL6M.js +2 -0
  82. package/dist/chunk-EOSJHL6M.js.map +1 -0
  83. package/dist/{chunk-FJC6IGXJ.js → chunk-FFFB5CG2.js} +2 -2
  84. package/dist/{chunk-LBQQSYCG.js → chunk-FIFM55V3.js} +2 -2
  85. package/dist/{chunk-2BCZXNBX.js → chunk-FQFIRIKU.js} +2 -2
  86. package/dist/{chunk-PFQB3V2U.js → chunk-FXVHH75C.js} +2 -2
  87. package/dist/chunk-G2DAXZPD.js +2 -0
  88. package/dist/chunk-G2DAXZPD.js.map +1 -0
  89. package/dist/chunk-G3QDDD53.js +2 -0
  90. package/dist/chunk-G3QDDD53.js.map +1 -0
  91. package/dist/chunk-GJ2AOENT.js +2 -0
  92. package/dist/chunk-GJ2AOENT.js.map +1 -0
  93. package/dist/{chunk-3UBFABDS.js → chunk-GPY3JZJJ.js} +2 -2
  94. package/dist/{chunk-UT3CQ2DH.js → chunk-GWQJKZ3M.js} +2 -2
  95. package/dist/{chunk-VZ3JCO23.js → chunk-GYYQWPA6.js} +2 -2
  96. package/dist/{chunk-LJUWER2H.js → chunk-HFFQ642D.js} +2 -2
  97. package/dist/{chunk-DMNKKWLY.js → chunk-HQLGDW2G.js} +2 -2
  98. package/dist/{chunk-PGCS6HUO.js → chunk-HTVGC4KT.js} +2 -2
  99. package/dist/chunk-HULIBLYP.js +2 -0
  100. package/dist/chunk-HULIBLYP.js.map +1 -0
  101. package/dist/{chunk-F7QTO3NU.js → chunk-HWBEYYJO.js} +2 -2
  102. package/dist/chunk-HYWQLLZC.js +2 -0
  103. package/dist/chunk-HYWQLLZC.js.map +1 -0
  104. package/dist/chunk-IAR7QW2Y.js +2 -0
  105. package/dist/chunk-IAR7QW2Y.js.map +1 -0
  106. package/dist/{chunk-SQCTVURR.js → chunk-IMCNVNKF.js} +2 -2
  107. package/dist/{chunk-J2L3CYIS.js → chunk-INUCPQVI.js} +2 -2
  108. package/dist/{chunk-34JOEA4E.js → chunk-J7I4WJ4G.js} +2 -2
  109. package/dist/{chunk-4MB3FE3T.js → chunk-JH3WUGO5.js} +2 -2
  110. package/dist/{chunk-6Z4U4GYV.js → chunk-JJK6BFGN.js} +2 -2
  111. package/dist/chunk-JK4CPPN4.js +2 -0
  112. package/dist/chunk-JK4CPPN4.js.map +1 -0
  113. package/dist/chunk-JPVSXGCC.js +2 -0
  114. package/dist/chunk-JPVSXGCC.js.map +1 -0
  115. package/dist/chunk-JXH42V2F.js +2 -0
  116. package/dist/chunk-JXH42V2F.js.map +1 -0
  117. package/dist/{chunk-RYUBFXSX.js → chunk-KF54ACZP.js} +2 -2
  118. package/dist/chunk-KGSH67IW.js +2 -0
  119. package/dist/chunk-KGSH67IW.js.map +1 -0
  120. package/dist/{chunk-FG2DNTDR.js → chunk-KZWB4FMM.js} +2 -2
  121. package/dist/{chunk-LNR6TGLQ.js → chunk-LBMHLNKS.js} +2 -2
  122. package/dist/{chunk-MKO33XZ5.js → chunk-LD633A5N.js} +2 -2
  123. package/dist/chunk-LGSOTN4M.js +2 -0
  124. package/dist/chunk-LGSOTN4M.js.map +1 -0
  125. package/dist/{chunk-WLPWXK7I.js → chunk-LKTCYO6Y.js} +2 -2
  126. package/dist/{chunk-JXZX66MM.js → chunk-LQFLXXBR.js} +2 -2
  127. package/dist/chunk-MAEAZFMR.js +1 -0
  128. package/dist/{chunk-DSGQZDY6.js → chunk-MZN6VY5F.js} +2 -2
  129. package/dist/{chunk-DJIQISA2.js → chunk-NDWVOVDM.js} +2 -2
  130. package/dist/{chunk-WIFDQWVX.js → chunk-NFLN2YB6.js} +2 -2
  131. package/dist/{chunk-XYF4TIRU.js → chunk-NGCNYQSC.js} +2 -2
  132. package/dist/chunk-NI4K773A.js +2 -0
  133. package/dist/chunk-NI4K773A.js.map +1 -0
  134. package/dist/{chunk-3GCJILCE.js → chunk-NQWB6O7Z.js} +2 -2
  135. package/dist/{chunk-G2LZFGZA.js → chunk-NXRWBI36.js} +2 -2
  136. package/dist/chunk-NXRWBI36.js.map +1 -0
  137. package/dist/{chunk-FCY5FJMC.js → chunk-O3Y4DVNY.js} +2 -2
  138. package/dist/{chunk-MC6VR4AZ.js → chunk-OUFFAMO5.js} +2 -2
  139. package/dist/{chunk-DIH7KHWI.js → chunk-PMCCHSXD.js} +2 -2
  140. package/dist/{chunk-7O4Y3DAM.js → chunk-PMIGYQEX.js} +2 -2
  141. package/dist/{chunk-HBOMEPXQ.js → chunk-QHSIUKH6.js} +2 -2
  142. package/dist/{chunk-ZOTY3CAM.js → chunk-QO7HHRNA.js} +2 -2
  143. package/dist/{chunk-HHFGG3RU.js → chunk-R2S73YZ5.js} +2 -2
  144. package/dist/chunk-R36IOANR.js +2 -0
  145. package/dist/chunk-R36IOANR.js.map +1 -0
  146. package/dist/{chunk-ECGNGVSC.js → chunk-R4JUCNE4.js} +2 -2
  147. package/dist/{chunk-BB5K57D4.js → chunk-RBUSLLAQ.js} +2 -2
  148. package/dist/chunk-RG67OYQN.js +2 -0
  149. package/dist/chunk-RG67OYQN.js.map +1 -0
  150. package/dist/{chunk-BOE6NL6T.js → chunk-RN3WPVBZ.js} +2 -2
  151. package/dist/{chunk-FQFLC6YA.js → chunk-RRERBS7F.js} +2 -2
  152. package/dist/chunk-S5BNS2JE.js +2 -0
  153. package/dist/chunk-S5BNS2JE.js.map +1 -0
  154. package/dist/{chunk-OK4RV6ZT.js → chunk-STFOY2NW.js} +2 -2
  155. package/dist/{chunk-WYUPZMPN.js → chunk-STJU6LZF.js} +2 -2
  156. package/dist/{chunk-PIKEYX3V.js → chunk-SU4FMKBZ.js} +2 -2
  157. package/dist/{chunk-CPRWWJYQ.js → chunk-SUONIYV5.js} +2 -2
  158. package/dist/{chunk-RKRYZZ3R.js → chunk-SY7QZIKZ.js} +2 -2
  159. package/dist/{chunk-V3J5DAMB.js → chunk-SYSVKYHX.js} +2 -2
  160. package/dist/chunk-T3IHAH3B.js +2 -0
  161. package/dist/chunk-T3IHAH3B.js.map +1 -0
  162. package/dist/{chunk-A7D2NNLM.js → chunk-TMS5VMVV.js} +2 -2
  163. package/dist/{chunk-R744BZN2.js → chunk-TUAL6X2E.js} +2 -2
  164. package/dist/{chunk-OETKBT6P.js → chunk-TVTJS3PE.js} +2 -2
  165. package/dist/{chunk-6PWZ4TBI.js → chunk-TZIDQ5O3.js} +2 -2
  166. package/dist/{chunk-W4LHXUIX.js → chunk-U7MAWO3U.js} +2 -2
  167. package/dist/{chunk-RR57VT45.js → chunk-UCBZMQGL.js} +2 -2
  168. package/dist/chunk-UHFNNG5S.js +2 -0
  169. package/dist/chunk-UHFNNG5S.js.map +1 -0
  170. package/dist/chunk-UYTYZVQM.js +2 -0
  171. package/dist/chunk-UYTYZVQM.js.map +1 -0
  172. package/dist/{chunk-3CJB74UF.js → chunk-UYYITOOO.js} +2 -2
  173. package/dist/{chunk-YS6VDGFW.js → chunk-V2ZDW66A.js} +2 -2
  174. package/dist/{chunk-RJXRGUNB.js → chunk-V6I7LW47.js} +2 -2
  175. package/dist/chunk-VADVEBNE.js +2 -0
  176. package/dist/chunk-VADVEBNE.js.map +1 -0
  177. package/dist/{chunk-HFHQDWJN.js → chunk-VDXTVUFY.js} +2 -2
  178. package/dist/{chunk-ARVKTD3V.js → chunk-VMXDQYTT.js} +2 -2
  179. package/dist/{chunk-RFEF2B5D.js → chunk-VYLSS2C7.js} +2 -2
  180. package/dist/{chunk-ZFF6E44S.js → chunk-VZ34NZXF.js} +2 -2
  181. package/dist/{chunk-GF34UO7V.js → chunk-W3GEGGZY.js} +2 -2
  182. package/dist/chunk-WJAGRH76.js +2 -0
  183. package/dist/chunk-WJAGRH76.js.map +1 -0
  184. package/dist/{chunk-S4JJIDWH.js → chunk-WKT6B3XE.js} +2 -2
  185. package/dist/chunk-X3FRANQS.js +2 -0
  186. package/dist/chunk-X3FRANQS.js.map +1 -0
  187. package/dist/{chunk-KTPIKOUV.js → chunk-X7KIEFEN.js} +2 -2
  188. package/dist/{chunk-LS4CLDLI.js → chunk-XDRJTAFV.js} +2 -2
  189. package/dist/{chunk-NEKE5PRJ.js → chunk-XGECMN4V.js} +2 -2
  190. package/dist/{chunk-AS7SJDU5.js → chunk-XPITUVQE.js} +2 -2
  191. package/dist/{chunk-AS7SJDU5.js.map → chunk-XPITUVQE.js.map} +1 -1
  192. package/dist/{chunk-3ID3UX2Q.js → chunk-XVZQBTB3.js} +2 -2
  193. package/dist/{chunk-E2463GRM.js → chunk-XZMPAJRL.js} +2 -2
  194. package/dist/{chunk-E2463GRM.js.map → chunk-XZMPAJRL.js.map} +1 -1
  195. package/dist/{chunk-WMBHCIFS.js → chunk-Y3G3JGLP.js} +2 -2
  196. package/dist/{chunk-ZC47WDFG.js → chunk-Y4X4BMDD.js} +2 -2
  197. package/dist/chunk-Y4X4BMDD.js.map +1 -0
  198. package/dist/{chunk-Y3YYLANJ.js → chunk-YDL42SVF.js} +2 -2
  199. package/dist/{chunk-V557KUHJ.js → chunk-YLU7JBHT.js} +2 -2
  200. package/dist/{chunk-NRWIGTY2.js → chunk-YYWBJW65.js} +2 -2
  201. package/dist/{chunk-A2TY3VWL.js → chunk-ZF3CYWGQ.js} +2 -2
  202. package/dist/{chunk-3B6BHFDV.js → chunk-ZHFUFIWX.js} +2 -2
  203. package/dist/default-components.d.ts +2 -2
  204. package/dist/default-components.js +1 -1
  205. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  206. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  207. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  208. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  209. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  210. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  211. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  212. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  213. package/dist/flows/ContractAmendment/hooks.js +1 -1
  214. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  215. package/dist/flows/ContractAmendment/index.js +1 -1
  216. package/dist/flows/ContractAmendment/types.d.ts +3 -3
  217. package/dist/flows/ContractAmendment/utils.d.ts +2 -2
  218. package/dist/flows/ContractAmendment/utils.js +1 -1
  219. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
  220. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  221. package/dist/flows/ContractorOnboarding/api.d.ts +3 -3
  222. package/dist/flows/ContractorOnboarding/api.js +1 -1
  223. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  224. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  225. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
  226. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  227. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.d.ts +3 -3
  228. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.js +1 -1
  229. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +2 -2
  230. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +2 -2
  231. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.js +1 -1
  232. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
  233. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  234. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
  235. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  236. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +5 -5
  237. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  238. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  239. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  240. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
  241. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  242. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +3 -3
  243. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  244. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  245. package/dist/flows/ContractorOnboarding/components/StatementOfWorkDisclaimer.js +1 -1
  246. package/dist/flows/ContractorOnboarding/context.d.ts +5 -5
  247. package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
  248. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  249. package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
  250. package/dist/flows/ContractorOnboarding/index.js +1 -1
  251. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +5 -5
  252. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  253. package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
  254. package/dist/flows/ContractorOnboarding/utils.d.ts +15 -5
  255. package/dist/flows/ContractorOnboarding/utils.js +1 -1
  256. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  257. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  258. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  259. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  260. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  261. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  262. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +3 -3
  263. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  264. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +3 -3
  265. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.js +1 -1
  266. package/dist/flows/CostCalculator/api.d.ts +3 -3
  267. package/dist/flows/CostCalculator/api.js +1 -1
  268. package/dist/flows/CostCalculator/components/SalaryField.d.ts +4 -3
  269. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  270. package/dist/flows/CostCalculator/context.d.ts +3 -3
  271. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  272. package/dist/flows/CostCalculator/hooks.js +1 -1
  273. package/dist/flows/CostCalculator/index.d.ts +3 -3
  274. package/dist/flows/CostCalculator/index.js +1 -1
  275. package/dist/flows/CostCalculator/types.d.ts +13 -4
  276. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  277. package/dist/flows/CostCalculator/utils.js +1 -1
  278. package/dist/flows/CreateCompany/CreateCompany.d.ts +4 -4
  279. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  280. package/dist/flows/CreateCompany/api.d.ts +3 -3
  281. package/dist/flows/CreateCompany/api.js +1 -1
  282. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +4 -4
  283. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  284. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +4 -4
  285. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  286. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +2 -2
  287. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  288. package/dist/flows/CreateCompany/context.d.ts +4 -4
  289. package/dist/flows/CreateCompany/hooks.d.ts +4 -4
  290. package/dist/flows/CreateCompany/hooks.js +1 -1
  291. package/dist/flows/CreateCompany/index.d.ts +4 -4
  292. package/dist/flows/CreateCompany/index.js +1 -1
  293. package/dist/flows/CreateCompany/types.d.ts +4 -4
  294. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.d.ts +4 -4
  295. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js +1 -1
  296. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.d.ts +2 -2
  297. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js +1 -1
  298. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundResetButton.js +1 -1
  299. package/dist/flows/JsonSchemaPlayground/context.d.ts +3 -3
  300. package/dist/flows/JsonSchemaPlayground/hooks.d.ts +4 -4
  301. package/dist/flows/JsonSchemaPlayground/hooks.js +1 -1
  302. package/dist/flows/JsonSchemaPlayground/index.d.ts +3 -4
  303. package/dist/flows/JsonSchemaPlayground/index.js +1 -1
  304. package/dist/flows/JsonSchemaPlayground/types.d.ts +3 -3
  305. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  306. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  307. package/dist/flows/Onboarding/api.d.ts +4 -4
  308. package/dist/flows/Onboarding/api.js +1 -1
  309. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +4 -3
  310. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  311. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  312. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  313. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  314. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  315. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  316. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  317. package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.js +1 -1
  318. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +4 -4
  319. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  320. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  321. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  322. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  323. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  324. package/dist/flows/Onboarding/components/PreOnboardingRequirements.d.ts +4 -4
  325. package/dist/flows/Onboarding/components/PreOnboardingRequirements.js +1 -1
  326. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js +1 -1
  327. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  328. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  329. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  330. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  331. package/dist/flows/Onboarding/context.d.ts +6 -6
  332. package/dist/flows/Onboarding/hooks.d.ts +5 -5
  333. package/dist/flows/Onboarding/hooks.js +1 -1
  334. package/dist/flows/Onboarding/index.d.ts +4 -4
  335. package/dist/flows/Onboarding/index.js +1 -1
  336. package/dist/flows/Onboarding/types.d.ts +4 -4
  337. package/dist/flows/Onboarding/utils.d.ts +4 -4
  338. package/dist/flows/Onboarding/utils.js +1 -1
  339. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +4 -4
  340. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +1 -1
  341. package/dist/flows/PayrollAdminOnboarding/api.d.ts +2 -2
  342. package/dist/flows/PayrollAdminOnboarding/api.js +1 -1
  343. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.d.ts +3 -3
  344. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js +1 -1
  345. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js.map +1 -1
  346. package/dist/flows/PayrollAdminOnboarding/components/BackButton.js +1 -1
  347. package/dist/flows/PayrollAdminOnboarding/components/BackButton.js.map +1 -1
  348. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.d.ts +3 -3
  349. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js +1 -1
  350. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js.map +1 -1
  351. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.d.ts +3 -3
  352. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.js +1 -1
  353. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.js.map +1 -1
  354. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.d.ts +2 -2
  355. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js +1 -1
  356. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.d.ts +3 -3
  357. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js +1 -1
  358. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js.map +1 -1
  359. package/dist/flows/PayrollAdminOnboarding/components/SubmitButton.js +1 -1
  360. package/dist/flows/PayrollAdminOnboarding/components/SubmitButton.js.map +1 -1
  361. package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.d.ts +3 -3
  362. package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.js +1 -1
  363. package/dist/flows/PayrollAdminOnboarding/context.d.ts +4 -4
  364. package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +4 -4
  365. package/dist/flows/PayrollAdminOnboarding/hooks.js +1 -1
  366. package/dist/flows/PayrollAdminOnboarding/index.d.ts +4 -4
  367. package/dist/flows/PayrollAdminOnboarding/index.js +1 -1
  368. package/dist/flows/PayrollAdminOnboarding/types.d.ts +4 -4
  369. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +4 -4
  370. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +1 -1
  371. package/dist/flows/PayrollEmployeeOnboarding/api.d.ts +8 -8
  372. package/dist/flows/PayrollEmployeeOnboarding/api.js +1 -1
  373. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.d.ts +3 -3
  374. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js +1 -1
  375. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.d.ts +3 -3
  376. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js +1 -1
  377. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.d.ts +3 -3
  378. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js +1 -1
  379. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.d.ts +2 -2
  380. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js +1 -1
  381. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.d.ts +3 -3
  382. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js +1 -1
  383. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.d.ts +4 -4
  384. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js +1 -1
  385. package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.d.ts +3 -3
  386. package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.js +1 -1
  387. package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +4 -4
  388. package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +4 -4
  389. package/dist/flows/PayrollEmployeeOnboarding/hooks.js +1 -1
  390. package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +4 -4
  391. package/dist/flows/PayrollEmployeeOnboarding/index.js +1 -1
  392. package/dist/flows/PayrollEmployeeOnboarding/types.d.ts +4 -4
  393. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  394. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  395. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  396. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  397. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  398. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  399. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  400. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  401. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  402. package/dist/flows/Termination/TerminationFlow.js +1 -1
  403. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  404. package/dist/flows/Termination/TerminationForm.js +1 -1
  405. package/dist/flows/Termination/api.d.ts +5 -5
  406. package/dist/flows/Termination/api.js +1 -1
  407. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js +1 -1
  408. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  409. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
  410. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  411. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
  412. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  413. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
  414. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  415. package/dist/flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js +1 -1
  416. package/dist/flows/Termination/context.d.ts +4 -4
  417. package/dist/flows/Termination/hooks.d.ts +4 -4
  418. package/dist/flows/Termination/hooks.js +1 -1
  419. package/dist/flows/Termination/index.d.ts +6 -6
  420. package/dist/flows/Termination/index.js +1 -1
  421. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  422. package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
  423. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  424. package/dist/flows/Termination/types.d.ts +4 -4
  425. package/dist/flows/Termination/utils.d.ts +4 -4
  426. package/dist/flows/Termination/utils.js +1 -1
  427. package/dist/flows/types.d.ts +3 -3
  428. package/dist/flows/utils.d.ts +2 -2
  429. package/dist/index.css +1 -1
  430. package/dist/index.css.map +1 -1
  431. package/dist/index.d.ts +29 -16
  432. package/dist/index.js +2 -2
  433. package/dist/index.js.map +1 -1
  434. package/dist/internals.d.ts +4 -5
  435. package/dist/internals.js +1 -1
  436. package/dist/{mutations-CCbGTxuw.d.ts → mutations-DCAaAw5a.d.ts} +1 -1
  437. package/dist/{remoteFlows-BTGwzbVQ.d.ts → remoteFlows-dULw8FdP.d.ts} +8 -1
  438. package/dist/styles.css +1 -1
  439. package/dist/styles.css.map +1 -1
  440. package/dist/types-B4GARfFq.d.ts +91 -0
  441. package/dist/{types-BAQL-xPU.d.ts → types-BUvpsq6j.d.ts} +23 -12
  442. package/dist/{types-BUCAIjdm.d.ts → types-BhMTFN9Y.d.ts} +1 -1
  443. package/dist/{types-BQUdy5l7.d.ts → types-BrUW0aeq.d.ts} +4 -4
  444. package/dist/{types-CvqFd-l3.d.ts → types-CZ7r6pdq.d.ts} +31 -7
  445. package/dist/{types-DoWlYF_Q.d.ts → types-Crw4jMds.d.ts} +2 -2
  446. package/dist/{types-DRIJcxE-.d.ts → types-Cwf67dnV.d.ts} +15 -6
  447. package/dist/{types-BtrEXSWH.d.ts → types-D-1MCxhm.d.ts} +3 -3
  448. package/dist/{types.gen-Bn3elzBI.d.ts → types.gen-C4K7xky-.d.ts} +16 -1
  449. package/dist/{utils-Dc_Eq2Vm.d.ts → utils-BVwm5Jyt.d.ts} +1 -1
  450. package/package.json +5 -5
  451. package/dist/ButtonDefault-5GP4VFZL.js +0 -2
  452. package/dist/CheckboxFieldDefault-VKVKDNK4.js +0 -2
  453. package/dist/CountryFieldDefault-N7P5V5NR.js +0 -2
  454. package/dist/DatePickerFieldDefault-V3F2DLPV.js +0 -2
  455. package/dist/DrawerDefault-UVRSWQLP.js +0 -2
  456. package/dist/EmailFieldDefault-JN6IDGVM.js +0 -2
  457. package/dist/FieldsetToggleButtonDefault-KVIBW3UI.js +0 -2
  458. package/dist/FileUploadFieldDefault-SD3A25KP.js +0 -2
  459. package/dist/MultiSelectFieldDefault-ZLRPID6V.js +0 -2
  460. package/dist/NumberFieldDefault-MXN7XDOC.js +0 -2
  461. package/dist/RadioGroupFieldDefault-UMDJEJZU.js +0 -2
  462. package/dist/SelectFieldDefault-IUECL5R6.js +0 -2
  463. package/dist/StatementDefault-6B2AXWUL.js +0 -2
  464. package/dist/TableFieldDefault-ZC2IJBFY.js +0 -2
  465. package/dist/TelFieldDefault-PUE57NPS.js +0 -2
  466. package/dist/TextAreaFieldDefault-5CV4XTOT.js +0 -2
  467. package/dist/TextFieldDefault-WSEEAHJV.js +0 -2
  468. package/dist/TimeFieldDefault-K5LYUXKT.js +0 -2
  469. package/dist/WorkScheduleFieldDefault-D6TGVPHC.js +0 -2
  470. package/dist/ZendeskDrawerDefault-2DNA653G.js +0 -2
  471. package/dist/chunk-343R3QEG.js +0 -2
  472. package/dist/chunk-343R3QEG.js.map +0 -1
  473. package/dist/chunk-3AMTQ2DH.js +0 -2
  474. package/dist/chunk-3AMTQ2DH.js.map +0 -1
  475. package/dist/chunk-66DSJTDZ.js +0 -2
  476. package/dist/chunk-66DSJTDZ.js.map +0 -1
  477. package/dist/chunk-6JOMJADW.js +0 -2
  478. package/dist/chunk-6JOMJADW.js.map +0 -1
  479. package/dist/chunk-7ULM6AZK.js +0 -1
  480. package/dist/chunk-AVIZTG4K.js +0 -2
  481. package/dist/chunk-AVIZTG4K.js.map +0 -1
  482. package/dist/chunk-B36HI2TD.js +0 -2
  483. package/dist/chunk-B36HI2TD.js.map +0 -1
  484. package/dist/chunk-BIL7ERK6.js +0 -2
  485. package/dist/chunk-BIL7ERK6.js.map +0 -1
  486. package/dist/chunk-CZY6KI75.js +0 -2
  487. package/dist/chunk-CZY6KI75.js.map +0 -1
  488. package/dist/chunk-ERDNYHQO.js +0 -2
  489. package/dist/chunk-ERDNYHQO.js.map +0 -1
  490. package/dist/chunk-F5WNUYFP.js +0 -2
  491. package/dist/chunk-F5WNUYFP.js.map +0 -1
  492. package/dist/chunk-G2LZFGZA.js.map +0 -1
  493. package/dist/chunk-GSB44SSJ.js +0 -2
  494. package/dist/chunk-GSB44SSJ.js.map +0 -1
  495. package/dist/chunk-HGFJTAEM.js +0 -2
  496. package/dist/chunk-HGFJTAEM.js.map +0 -1
  497. package/dist/chunk-I363AG3E.js +0 -2
  498. package/dist/chunk-I363AG3E.js.map +0 -1
  499. package/dist/chunk-J2ARI3NQ.js +0 -2
  500. package/dist/chunk-J2ARI3NQ.js.map +0 -1
  501. package/dist/chunk-JVLARDTF.js +0 -2
  502. package/dist/chunk-K7HS55JD.js +0 -2
  503. package/dist/chunk-K7HS55JD.js.map +0 -1
  504. package/dist/chunk-KAX6IHET.js +0 -2
  505. package/dist/chunk-KAX6IHET.js.map +0 -1
  506. package/dist/chunk-MEPIOKJQ.js +0 -2
  507. package/dist/chunk-MEPIOKJQ.js.map +0 -1
  508. package/dist/chunk-OV6PV4N5.js +0 -2
  509. package/dist/chunk-OV6PV4N5.js.map +0 -1
  510. package/dist/chunk-PYXLDOXH.js +0 -2
  511. package/dist/chunk-PYXLDOXH.js.map +0 -1
  512. package/dist/chunk-Q6PTVBDS.js +0 -2
  513. package/dist/chunk-Q6PTVBDS.js.map +0 -1
  514. package/dist/chunk-SC7YWKOW.js +0 -2
  515. package/dist/chunk-STKY674N.js +0 -2
  516. package/dist/chunk-STKY674N.js.map +0 -1
  517. package/dist/chunk-VVEBSBQ3.js +0 -2
  518. package/dist/chunk-VVEBSBQ3.js.map +0 -1
  519. package/dist/chunk-XLA5Z35M.js +0 -2
  520. package/dist/chunk-XLA5Z35M.js.map +0 -1
  521. package/dist/chunk-Y2K74EBE.js +0 -2
  522. package/dist/chunk-Y2K74EBE.js.map +0 -1
  523. package/dist/chunk-YMBVMMUS.js +0 -2
  524. package/dist/chunk-YMBVMMUS.js.map +0 -1
  525. package/dist/chunk-ZC47WDFG.js.map +0 -1
  526. package/dist/chunk-ZT4OC3OB.js +0 -2
  527. package/dist/chunk-ZT4OC3OB.js.map +0 -1
  528. package/dist/chunk-ZYIEPPSE.js +0 -2
  529. package/dist/chunk-ZYIEPPSE.js.map +0 -1
  530. package/dist/flows/JsonSchemaPlayground/initialValues.d.ts +0 -15
  531. package/dist/flows/JsonSchemaPlayground/initialValues.js +0 -2
  532. package/dist/flows/JsonSchemaPlayground/initialValues.js.map +0 -1
  533. package/dist/flows/JsonSchemaPlayground/schemas.d.ts +0 -1957
  534. package/dist/flows/JsonSchemaPlayground/schemas.js +0 -2
  535. package/dist/flows/JsonSchemaPlayground/schemas.js.map +0 -1
  536. package/dist/types-Im-AaNUG.d.ts +0 -2033
  537. /package/dist/{ButtonDefault-5GP4VFZL.js.map → ButtonDefault-HBOULH5V.js.map} +0 -0
  538. /package/dist/{CheckboxFieldDefault-VKVKDNK4.js.map → CheckboxFieldDefault-62URAHJV.js.map} +0 -0
  539. /package/dist/{CountryFieldDefault-N7P5V5NR.js.map → CountryFieldDefault-24NNZN2C.js.map} +0 -0
  540. /package/dist/{DatePickerFieldDefault-V3F2DLPV.js.map → DatePickerFieldDefault-NMUCZ4U2.js.map} +0 -0
  541. /package/dist/{DrawerDefault-UVRSWQLP.js.map → DrawerDefault-O7NUFWJ4.js.map} +0 -0
  542. /package/dist/{EmailFieldDefault-JN6IDGVM.js.map → EmailFieldDefault-7USH7I6B.js.map} +0 -0
  543. /package/dist/{FieldsetToggleButtonDefault-KVIBW3UI.js.map → FieldsetToggleButtonDefault-MIRCZJKA.js.map} +0 -0
  544. /package/dist/{FileUploadFieldDefault-SD3A25KP.js.map → FileUploadFieldDefault-4NW5VLF6.js.map} +0 -0
  545. /package/dist/{MultiSelectFieldDefault-ZLRPID6V.js.map → MultiSelectFieldDefault-S45Z53ZY.js.map} +0 -0
  546. /package/dist/{NumberFieldDefault-MXN7XDOC.js.map → NumberFieldDefault-P7TLA6SH.js.map} +0 -0
  547. /package/dist/{RadioGroupFieldDefault-UMDJEJZU.js.map → RadioGroupFieldDefault-X44FYUA3.js.map} +0 -0
  548. /package/dist/{SelectFieldDefault-IUECL5R6.js.map → SelectFieldDefault-PLDXHTQY.js.map} +0 -0
  549. /package/dist/{StatementDefault-6B2AXWUL.js.map → StatementDefault-RDC5G24K.js.map} +0 -0
  550. /package/dist/{TableFieldDefault-ZC2IJBFY.js.map → TableFieldDefault-ES7OIYX5.js.map} +0 -0
  551. /package/dist/{TelFieldDefault-PUE57NPS.js.map → TelFieldDefault-IYGEEV5V.js.map} +0 -0
  552. /package/dist/{TextAreaFieldDefault-5CV4XTOT.js.map → TextAreaFieldDefault-C6M3PIV2.js.map} +0 -0
  553. /package/dist/{TextFieldDefault-WSEEAHJV.js.map → TextFieldDefault-FTX32V3D.js.map} +0 -0
  554. /package/dist/{TimeFieldDefault-K5LYUXKT.js.map → TimeFieldDefault-J6PKL5T4.js.map} +0 -0
  555. /package/dist/{WorkScheduleFieldDefault-D6TGVPHC.js.map → WorkScheduleFieldDefault-JAU2YFQF.js.map} +0 -0
  556. /package/dist/{ZendeskDrawerDefault-2DNA653G.js.map → ZendeskDrawerDefault-HGKAUCUV.js.map} +0 -0
  557. /package/dist/{chunk-D4XBTJOV.js.map → chunk-2CGPCBQY.js.map} +0 -0
  558. /package/dist/{chunk-HXEOVMUT.js.map → chunk-2EGFPBT7.js.map} +0 -0
  559. /package/dist/{chunk-PRXJRF7V.js.map → chunk-2GAKAYG7.js.map} +0 -0
  560. /package/dist/{chunk-GGDVTGHG.js.map → chunk-2QQZODFC.js.map} +0 -0
  561. /package/dist/{chunk-7D4XFAQR.js.map → chunk-3HGUMECW.js.map} +0 -0
  562. /package/dist/{chunk-F35ALUPA.js.map → chunk-3ISSVSL5.js.map} +0 -0
  563. /package/dist/{chunk-746NEWTS.js.map → chunk-3OJAX7QH.js.map} +0 -0
  564. /package/dist/{chunk-Z5LVLVTU.js.map → chunk-3OTZWYVQ.js.map} +0 -0
  565. /package/dist/{chunk-Y3CJRZLA.js.map → chunk-4FGKIGKF.js.map} +0 -0
  566. /package/dist/{chunk-74ICDGQK.js.map → chunk-4X7TVFHA.js.map} +0 -0
  567. /package/dist/{chunk-SC7YWKOW.js.map → chunk-5MPW7QWT.js.map} +0 -0
  568. /package/dist/{chunk-TQH4OKHR.js.map → chunk-5N5B5AU2.js.map} +0 -0
  569. /package/dist/{chunk-QO7Y6QRE.js.map → chunk-64OGJGKN.js.map} +0 -0
  570. /package/dist/{chunk-LSC6NTXD.js.map → chunk-65G3JQ7T.js.map} +0 -0
  571. /package/dist/{chunk-43NIG25S.js.map → chunk-6AZKF6RW.js.map} +0 -0
  572. /package/dist/{chunk-OPX7E3W2.js.map → chunk-6JTUAJBZ.js.map} +0 -0
  573. /package/dist/{chunk-3BAVRWSN.js.map → chunk-6PP3Y63Z.js.map} +0 -0
  574. /package/dist/{chunk-S3EXF5DV.js.map → chunk-6QEAL5BB.js.map} +0 -0
  575. /package/dist/{chunk-LFHFZU6X.js.map → chunk-6SNWSCXH.js.map} +0 -0
  576. /package/dist/{chunk-KT4Y4UPD.js.map → chunk-74A4TMTF.js.map} +0 -0
  577. /package/dist/{chunk-43FMKELR.js.map → chunk-75N7DFXJ.js.map} +0 -0
  578. /package/dist/{chunk-7NFCUTWO.js.map → chunk-7UFIQ64V.js.map} +0 -0
  579. /package/dist/{chunk-MGDYS2EY.js.map → chunk-A6KORIJF.js.map} +0 -0
  580. /package/dist/{chunk-N6XLGYRK.js.map → chunk-AHUSQVQY.js.map} +0 -0
  581. /package/dist/{chunk-CRDG62ZJ.js.map → chunk-B6YPSCBC.js.map} +0 -0
  582. /package/dist/{chunk-T5J2Z6ZR.js.map → chunk-BC4V2YAK.js.map} +0 -0
  583. /package/dist/{chunk-PQG6KZIO.js.map → chunk-BGSB3XPW.js.map} +0 -0
  584. /package/dist/{chunk-D2MZKYRH.js.map → chunk-BHKAKCV4.js.map} +0 -0
  585. /package/dist/{chunk-R4TM2Y3K.js.map → chunk-BS2YN6CS.js.map} +0 -0
  586. /package/dist/{chunk-FHIMDCMT.js.map → chunk-BVKOMSHU.js.map} +0 -0
  587. /package/dist/{chunk-PSU2AEFU.js.map → chunk-BZ4VPC4U.js.map} +0 -0
  588. /package/dist/{chunk-YJFRQSTA.js.map → chunk-BZA2XA4Q.js.map} +0 -0
  589. /package/dist/{chunk-OXTA4W4J.js.map → chunk-CM4UUBU5.js.map} +0 -0
  590. /package/dist/{chunk-YWLRVUE3.js.map → chunk-CUM2NKZ4.js.map} +0 -0
  591. /package/dist/{chunk-DO7OL4EG.js.map → chunk-DAYIMXLP.js.map} +0 -0
  592. /package/dist/{chunk-BUOHZMK6.js.map → chunk-DDH7MZ7M.js.map} +0 -0
  593. /package/dist/{chunk-44XEUAFV.js.map → chunk-DKOETPI4.js.map} +0 -0
  594. /package/dist/{chunk-QJJZTAG2.js.map → chunk-DLSHZLHX.js.map} +0 -0
  595. /package/dist/{chunk-MHIY35CK.js.map → chunk-DOVE5SYY.js.map} +0 -0
  596. /package/dist/{chunk-6OHLLH6W.js.map → chunk-EFIPOWDJ.js.map} +0 -0
  597. /package/dist/{chunk-FJC6IGXJ.js.map → chunk-FFFB5CG2.js.map} +0 -0
  598. /package/dist/{chunk-LBQQSYCG.js.map → chunk-FIFM55V3.js.map} +0 -0
  599. /package/dist/{chunk-2BCZXNBX.js.map → chunk-FQFIRIKU.js.map} +0 -0
  600. /package/dist/{chunk-PFQB3V2U.js.map → chunk-FXVHH75C.js.map} +0 -0
  601. /package/dist/{chunk-3UBFABDS.js.map → chunk-GPY3JZJJ.js.map} +0 -0
  602. /package/dist/{chunk-UT3CQ2DH.js.map → chunk-GWQJKZ3M.js.map} +0 -0
  603. /package/dist/{chunk-VZ3JCO23.js.map → chunk-GYYQWPA6.js.map} +0 -0
  604. /package/dist/{chunk-LJUWER2H.js.map → chunk-HFFQ642D.js.map} +0 -0
  605. /package/dist/{chunk-DMNKKWLY.js.map → chunk-HQLGDW2G.js.map} +0 -0
  606. /package/dist/{chunk-PGCS6HUO.js.map → chunk-HTVGC4KT.js.map} +0 -0
  607. /package/dist/{chunk-F7QTO3NU.js.map → chunk-HWBEYYJO.js.map} +0 -0
  608. /package/dist/{chunk-SQCTVURR.js.map → chunk-IMCNVNKF.js.map} +0 -0
  609. /package/dist/{chunk-J2L3CYIS.js.map → chunk-INUCPQVI.js.map} +0 -0
  610. /package/dist/{chunk-34JOEA4E.js.map → chunk-J7I4WJ4G.js.map} +0 -0
  611. /package/dist/{chunk-4MB3FE3T.js.map → chunk-JH3WUGO5.js.map} +0 -0
  612. /package/dist/{chunk-6Z4U4GYV.js.map → chunk-JJK6BFGN.js.map} +0 -0
  613. /package/dist/{chunk-RYUBFXSX.js.map → chunk-KF54ACZP.js.map} +0 -0
  614. /package/dist/{chunk-FG2DNTDR.js.map → chunk-KZWB4FMM.js.map} +0 -0
  615. /package/dist/{chunk-LNR6TGLQ.js.map → chunk-LBMHLNKS.js.map} +0 -0
  616. /package/dist/{chunk-MKO33XZ5.js.map → chunk-LD633A5N.js.map} +0 -0
  617. /package/dist/{chunk-WLPWXK7I.js.map → chunk-LKTCYO6Y.js.map} +0 -0
  618. /package/dist/{chunk-JXZX66MM.js.map → chunk-LQFLXXBR.js.map} +0 -0
  619. /package/dist/{chunk-7ULM6AZK.js.map → chunk-MAEAZFMR.js.map} +0 -0
  620. /package/dist/{chunk-DSGQZDY6.js.map → chunk-MZN6VY5F.js.map} +0 -0
  621. /package/dist/{chunk-DJIQISA2.js.map → chunk-NDWVOVDM.js.map} +0 -0
  622. /package/dist/{chunk-WIFDQWVX.js.map → chunk-NFLN2YB6.js.map} +0 -0
  623. /package/dist/{chunk-XYF4TIRU.js.map → chunk-NGCNYQSC.js.map} +0 -0
  624. /package/dist/{chunk-3GCJILCE.js.map → chunk-NQWB6O7Z.js.map} +0 -0
  625. /package/dist/{chunk-FCY5FJMC.js.map → chunk-O3Y4DVNY.js.map} +0 -0
  626. /package/dist/{chunk-MC6VR4AZ.js.map → chunk-OUFFAMO5.js.map} +0 -0
  627. /package/dist/{chunk-DIH7KHWI.js.map → chunk-PMCCHSXD.js.map} +0 -0
  628. /package/dist/{chunk-7O4Y3DAM.js.map → chunk-PMIGYQEX.js.map} +0 -0
  629. /package/dist/{chunk-HBOMEPXQ.js.map → chunk-QHSIUKH6.js.map} +0 -0
  630. /package/dist/{chunk-ZOTY3CAM.js.map → chunk-QO7HHRNA.js.map} +0 -0
  631. /package/dist/{chunk-HHFGG3RU.js.map → chunk-R2S73YZ5.js.map} +0 -0
  632. /package/dist/{chunk-ECGNGVSC.js.map → chunk-R4JUCNE4.js.map} +0 -0
  633. /package/dist/{chunk-BB5K57D4.js.map → chunk-RBUSLLAQ.js.map} +0 -0
  634. /package/dist/{chunk-BOE6NL6T.js.map → chunk-RN3WPVBZ.js.map} +0 -0
  635. /package/dist/{chunk-FQFLC6YA.js.map → chunk-RRERBS7F.js.map} +0 -0
  636. /package/dist/{chunk-OK4RV6ZT.js.map → chunk-STFOY2NW.js.map} +0 -0
  637. /package/dist/{chunk-WYUPZMPN.js.map → chunk-STJU6LZF.js.map} +0 -0
  638. /package/dist/{chunk-PIKEYX3V.js.map → chunk-SU4FMKBZ.js.map} +0 -0
  639. /package/dist/{chunk-CPRWWJYQ.js.map → chunk-SUONIYV5.js.map} +0 -0
  640. /package/dist/{chunk-RKRYZZ3R.js.map → chunk-SY7QZIKZ.js.map} +0 -0
  641. /package/dist/{chunk-V3J5DAMB.js.map → chunk-SYSVKYHX.js.map} +0 -0
  642. /package/dist/{chunk-A7D2NNLM.js.map → chunk-TMS5VMVV.js.map} +0 -0
  643. /package/dist/{chunk-R744BZN2.js.map → chunk-TUAL6X2E.js.map} +0 -0
  644. /package/dist/{chunk-OETKBT6P.js.map → chunk-TVTJS3PE.js.map} +0 -0
  645. /package/dist/{chunk-6PWZ4TBI.js.map → chunk-TZIDQ5O3.js.map} +0 -0
  646. /package/dist/{chunk-W4LHXUIX.js.map → chunk-U7MAWO3U.js.map} +0 -0
  647. /package/dist/{chunk-RR57VT45.js.map → chunk-UCBZMQGL.js.map} +0 -0
  648. /package/dist/{chunk-3CJB74UF.js.map → chunk-UYYITOOO.js.map} +0 -0
  649. /package/dist/{chunk-YS6VDGFW.js.map → chunk-V2ZDW66A.js.map} +0 -0
  650. /package/dist/{chunk-RJXRGUNB.js.map → chunk-V6I7LW47.js.map} +0 -0
  651. /package/dist/{chunk-HFHQDWJN.js.map → chunk-VDXTVUFY.js.map} +0 -0
  652. /package/dist/{chunk-ARVKTD3V.js.map → chunk-VMXDQYTT.js.map} +0 -0
  653. /package/dist/{chunk-RFEF2B5D.js.map → chunk-VYLSS2C7.js.map} +0 -0
  654. /package/dist/{chunk-ZFF6E44S.js.map → chunk-VZ34NZXF.js.map} +0 -0
  655. /package/dist/{chunk-GF34UO7V.js.map → chunk-W3GEGGZY.js.map} +0 -0
  656. /package/dist/{chunk-S4JJIDWH.js.map → chunk-WKT6B3XE.js.map} +0 -0
  657. /package/dist/{chunk-KTPIKOUV.js.map → chunk-X7KIEFEN.js.map} +0 -0
  658. /package/dist/{chunk-LS4CLDLI.js.map → chunk-XDRJTAFV.js.map} +0 -0
  659. /package/dist/{chunk-NEKE5PRJ.js.map → chunk-XGECMN4V.js.map} +0 -0
  660. /package/dist/{chunk-3ID3UX2Q.js.map → chunk-XVZQBTB3.js.map} +0 -0
  661. /package/dist/{chunk-WMBHCIFS.js.map → chunk-Y3G3JGLP.js.map} +0 -0
  662. /package/dist/{chunk-Y3YYLANJ.js.map → chunk-YDL42SVF.js.map} +0 -0
  663. /package/dist/{chunk-V557KUHJ.js.map → chunk-YLU7JBHT.js.map} +0 -0
  664. /package/dist/{chunk-NRWIGTY2.js.map → chunk-YYWBJW65.js.map} +0 -0
  665. /package/dist/{chunk-A2TY3VWL.js.map → chunk-ZF3CYWGQ.js.map} +0 -0
  666. /package/dist/{chunk-3B6BHFDV.js.map → chunk-ZHFUFIWX.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{c as _,i as S}from"./chunk-Y3CJRZLA.js";import{b as C,c as D}from"./chunk-H2O4CVKF.js";import{a as i}from"./chunk-P37U34EQ.js";import F from"lodash.groupby";import b from"lodash.capitalize";var W=60,v=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function M(e){if(e<60)return`${e}m`;let a=Math.floor(e/W),n=e%W;return n>0?`${a}h${n}m`:`${a}h`}i(M,"convertBreakDurationToHours");function I(e){let a=e.reduce((n,c)=>c.hours+n,0);return Number(a.toFixed(2))}i(I,"calculateTotalWorkHours");function N(e,a){let n=a.map(({day:d})=>d.toLowerCase()),c=n.indexOf(e),l=null;for(;c<n.length&&!l;){let d=n[c],k=n[c+1],o=v.indexOf(d)+1;v[o]===k||(l=d),c+=1}return l}i(N,"findLastConsecutiveDay");function T(e){return e.start_time&&e.end_time&&(typeof e.hours=="number"?e.hours:Number.parseInt(e.hours))>0}i(T,"shouldSummarizeSchedule");function w(e){return Number.parseInt(e.break_duration_minutes)>0}i(w,"shouldSummarizeBreaks");function P(e){let a=e.filter(T),n=F(a,o=>`${o.start_time}|${o.end_time}`),c=e.filter(w),l=F(c,"break_duration_minutes"),d=Object.keys(n).map(o=>{let s=n[o],m=s[0].day,[p,h]=o.split("|"),t=`from <span>${p.replace(":","h")}</span> to <span>${h.replace(":","h")}</span>`,r=N(m,s),u=(r?s.findIndex(y=>y.day===r):-1)===s.length-1;return s.length===1?`${b(m)}, ${t}`:!u||!r?s.reduce((y,$,g)=>{let x=b($.day);return g===s.length-1?`${y}and ${x}, ${t}`:`${y}<span>${x}</span>, `},""):`<span>${b(m)}</span> to <span>${b(r)}</span>, ${t}`}),k=Object.keys(l).reverse().map((o,s)=>{let m=s===0,p=l[o],h=M(parseInt(o,10));if(Object.keys(l).length===1)return`With ${h} daily breaks`;if(p.length===1){let t=`${h} break on ${b(p[0].day)}.`;return m?`With ${t}`:t}return p.reduce((t,r,f)=>{let u=b(r.day);return f===0?`${t} ${u}`:f===p.length-1?`${t}, and ${u}.`:`${t}, ${u}`},m?`With ${h} break on`:`${h} break on`)});return{workHoursSummary:d,breakSummary:k}}i(P,"buildWorkScheduleSummary");function R(e){let{checked:a,start_time:n,end_time:c,break_duration_minutes:l}=e;if(!a)return 0;let[d,k]=n.split(":").map(Number),[o,s]=c.split(":").map(Number),m=d*60+k,t=(o*60+s-m-Number.parseInt(l||"0"))/60;return t===Math.floor(t)?t:Number(t.toFixed(2))}i(R,"calculateHours");var B={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function z(e){return B[e]}i(z,"getShortWeekday");import{jsx as H}from"react/jsx-runtime";function Y({name:e,defaultValue:a,description:n,label:c,onChange:l,multiple:d,options:k,component:o,...s}){let{components:m}=C(),{control:p}=_(),h=D(),t=i((r,f,u)=>{if(d&&u){let y=r.value?[...r.value]:[];f?y.includes(u)||r.onChange([...y,u]):r.onChange(y.filter($=>$!==u))}else r.onChange(f)},"handleCheckboxChange");return H(S,{control:p,name:e,defaultValue:a,render:({field:r,fieldState:f})=>{let u=o||m?.checkbox;if(!u)throw new Error(`Checkbox component not found for field ${e}`);let y={name:e,description:n,label:c,defaultValue:a,multiple:d,options:k,transformHtml:h,...s};return H(u,{field:{...r,onChange:i(($,g)=>{t(r,$,g),l?.($,g)},"onChange")},fieldState:f,fieldData:y})}})}i(Y,"CheckBoxField");export{v as a,I as b,P as c,R as d,z as e,Y as f};
2
- //# sourceMappingURL=chunk-FQFLC6YA.js.map
1
+ import{c as _,i as S}from"./chunk-4FGKIGKF.js";import{b as C,c as D}from"./chunk-H2O4CVKF.js";import{a as i}from"./chunk-P37U34EQ.js";import F from"lodash.groupby";import b from"lodash.capitalize";var W=60,v=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function M(e){if(e<60)return`${e}m`;let a=Math.floor(e/W),n=e%W;return n>0?`${a}h${n}m`:`${a}h`}i(M,"convertBreakDurationToHours");function I(e){let a=e.reduce((n,c)=>c.hours+n,0);return Number(a.toFixed(2))}i(I,"calculateTotalWorkHours");function N(e,a){let n=a.map(({day:d})=>d.toLowerCase()),c=n.indexOf(e),l=null;for(;c<n.length&&!l;){let d=n[c],k=n[c+1],o=v.indexOf(d)+1;v[o]===k||(l=d),c+=1}return l}i(N,"findLastConsecutiveDay");function T(e){return e.start_time&&e.end_time&&(typeof e.hours=="number"?e.hours:Number.parseInt(e.hours))>0}i(T,"shouldSummarizeSchedule");function w(e){return Number.parseInt(e.break_duration_minutes)>0}i(w,"shouldSummarizeBreaks");function P(e){let a=e.filter(T),n=F(a,o=>`${o.start_time}|${o.end_time}`),c=e.filter(w),l=F(c,"break_duration_minutes"),d=Object.keys(n).map(o=>{let s=n[o],m=s[0].day,[p,h]=o.split("|"),t=`from <span>${p.replace(":","h")}</span> to <span>${h.replace(":","h")}</span>`,r=N(m,s),u=(r?s.findIndex(y=>y.day===r):-1)===s.length-1;return s.length===1?`${b(m)}, ${t}`:!u||!r?s.reduce((y,$,g)=>{let x=b($.day);return g===s.length-1?`${y}and ${x}, ${t}`:`${y}<span>${x}</span>, `},""):`<span>${b(m)}</span> to <span>${b(r)}</span>, ${t}`}),k=Object.keys(l).reverse().map((o,s)=>{let m=s===0,p=l[o],h=M(parseInt(o,10));if(Object.keys(l).length===1)return`With ${h} daily breaks`;if(p.length===1){let t=`${h} break on ${b(p[0].day)}.`;return m?`With ${t}`:t}return p.reduce((t,r,f)=>{let u=b(r.day);return f===0?`${t} ${u}`:f===p.length-1?`${t}, and ${u}.`:`${t}, ${u}`},m?`With ${h} break on`:`${h} break on`)});return{workHoursSummary:d,breakSummary:k}}i(P,"buildWorkScheduleSummary");function R(e){let{checked:a,start_time:n,end_time:c,break_duration_minutes:l}=e;if(!a)return 0;let[d,k]=n.split(":").map(Number),[o,s]=c.split(":").map(Number),m=d*60+k,t=(o*60+s-m-Number.parseInt(l||"0"))/60;return t===Math.floor(t)?t:Number(t.toFixed(2))}i(R,"calculateHours");var B={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function z(e){return B[e]}i(z,"getShortWeekday");import{jsx as H}from"react/jsx-runtime";function Y({name:e,defaultValue:a,description:n,label:c,onChange:l,multiple:d,options:k,component:o,...s}){let{components:m}=C(),{control:p}=_(),h=D(),t=i((r,f,u)=>{if(d&&u){let y=r.value?[...r.value]:[];f?y.includes(u)||r.onChange([...y,u]):r.onChange(y.filter($=>$!==u))}else r.onChange(f)},"handleCheckboxChange");return H(S,{control:p,name:e,defaultValue:a,render:({field:r,fieldState:f})=>{let u=o||m?.checkbox;if(!u)throw new Error(`Checkbox component not found for field ${e}`);let y={name:e,description:n,label:c,defaultValue:a,multiple:d,options:k,transformHtml:h,...s};return H(u,{field:{...r,onChange:i(($,g)=>{t(r,$,g),l?.($,g)},"onChange")},fieldState:f,fieldData:y})}})}i(Y,"CheckBoxField");export{v as a,I as b,P as c,R as d,z as e,Y as f};
2
+ //# sourceMappingURL=chunk-RRERBS7F.js.map
@@ -0,0 +1,2 @@
1
+ import{f as m}from"./chunk-NXRWBI36.js";import{b as y}from"./chunk-FSGFBJJF.js";import{a}from"./chunk-P37U34EQ.js";import{createHeadlessForm as g,modify as p}from"@remoteoss/remote-json-schema-form-kit";var O=a((e,n,o)=>{let{transformMoneyFields:F}=o||{transformMoneyFields:!0};if(o&&o.jsfModify){let{required:r,allOf:i,...t}=o.jsfModify,{schema:s,warnings:d}=p(e,{...t,muteLogging:!0});if(d&&d.length>0&&console.warn("jsfModify warnings:",d),e=s,r){let f=Array.isArray(s.required)?s.required:[];typeof r=="function"?e.required=r(f):e.required=[...f,...r]}i&&(e.allOf=[...Array.isArray(s.allOf)?s.allOf:[],...i])}let l={};n&&F&&(l=y(e.properties||{},"money").reduce((i,t)=>(i[t]=m(n[t]),i),{}));let u=JSON.parse(JSON.stringify({...n,...l}));return{meta:{"x-jsf-fieldsets":e["x-jsf-fieldsets"]||e["x-rmt-flatFieldsets"],"x-jsf-presentation":e["x-jsf-presentation"]},...g(e,{initialValues:u})}},"createHeadlessForm");export{O as a};
2
+ //# sourceMappingURL=chunk-S5BNS2JE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/common/createHeadlessForm.tsx"],"sourcesContent":["import { FieldValues } from 'react-hook-form';\nimport {\n createHeadlessForm as baseCreateHeadlessForm,\n modify,\n} from '@remoteoss/remote-json-schema-form-kit';\nimport { convertToCents } from '@/src/components/form/utils';\nimport {\n JSFModify,\n JSONSchemaFormResultWithFieldsets,\n} from '@/src/flows/types';\nimport { findFieldsByType } from '@/src/flows/utils';\nimport { JSFFieldset } from '@/src/types/remoteFlows';\n\n/*\n * Creates a headless form from a JSON Schema, useful to avoid code duplication when creating headless forms.\n * @param jsfSchema - The JSON Schema\n * @param fieldValues - The field values\n * @param options - The options\n * @returns The headless form\n */\nexport const createHeadlessForm = (\n jsfSchema: Record<string, unknown>,\n fieldValues?: FieldValues,\n options?: { jsfModify?: JSFModify; transformMoneyFields?: boolean },\n): JSONSchemaFormResultWithFieldsets => {\n const { transformMoneyFields } = options || {\n transformMoneyFields: true,\n };\n if (options && options.jsfModify) {\n const { required, allOf, ...modifyConfig } = options.jsfModify;\n // muteLogging: true suppresses the generic library log; we surface the\n // actual warnings ourselves when present so they're actionable.\n const { schema, warnings } = modify(jsfSchema, {\n ...modifyConfig,\n muteLogging: true,\n } as Parameters<typeof modify>[1]);\n if (warnings && warnings.length > 0) {\n // eslint-disable-next-line no-console\n console.warn('jsfModify warnings:', warnings);\n }\n jsfSchema = schema;\n\n if (required) {\n const baseRequired = Array.isArray(schema.required)\n ? schema.required\n : [];\n\n if (typeof required === 'function') {\n // Function: allows full control over required fields\n jsfSchema.required = required(baseRequired);\n } else {\n // Array: merge with existing required fields (backwards compatible)\n jsfSchema.required = [...baseRequired, ...required];\n }\n }\n\n if (allOf) {\n jsfSchema.allOf = [\n ...(Array.isArray(schema.allOf) ? schema.allOf : []),\n ...allOf,\n ];\n }\n }\n\n let moneyFieldsData: Record<string, number | null> = {};\n\n if (fieldValues && transformMoneyFields) {\n const moneyFields = findFieldsByType(jsfSchema.properties || {}, 'money');\n moneyFieldsData = moneyFields.reduce<Record<string, number | null>>(\n (acc, field) => {\n acc[field] = convertToCents(fieldValues[field]);\n return acc;\n },\n {},\n );\n }\n\n /**\n * We create a deep copy of the field values to avoid modifying the original object.\n * This problem is caused by json-schema-form-v0.\n */\n const initialValues = JSON.parse(\n JSON.stringify({\n ...fieldValues,\n ...moneyFieldsData,\n }),\n );\n\n return {\n meta: {\n // Support for both x-jsf-fieldsets and x-rmt-flatFieldsets\n // before x-jsf-fieldsets was used, but it was migrated to x-rmt-flatFieldsets\n // this allows to everything to keep working as expected without renaming the whole thing\n 'x-jsf-fieldsets':\n (jsfSchema['x-jsf-fieldsets'] as JSFFieldset) ||\n (jsfSchema['x-rmt-flatFieldsets'] as JSFFieldset),\n 'x-jsf-presentation': jsfSchema['x-jsf-presentation'] as\n | Record<string, unknown>\n | undefined,\n },\n ...baseCreateHeadlessForm(jsfSchema, {\n initialValues,\n }),\n };\n};\n"],"mappings":"mHACA,OACE,sBAAsBA,EACtB,UAAAC,MACK,yCAgBA,IAAMC,EAAqBC,EAAA,CAChCC,EACAC,EACAC,IACsC,CACtC,GAAM,CAAE,qBAAAC,CAAqB,EAAID,GAAW,CAC1C,qBAAsB,EACxB,EACA,GAAIA,GAAWA,EAAQ,UAAW,CAChC,GAAM,CAAE,SAAAE,EAAU,MAAAC,EAAO,GAAGC,CAAa,EAAIJ,EAAQ,UAG/C,CAAE,OAAAK,EAAQ,SAAAC,CAAS,EAAIC,EAAOT,EAAW,CAC7C,GAAGM,EACH,YAAa,EACf,CAAiC,EAOjC,GANIE,GAAYA,EAAS,OAAS,GAEhC,QAAQ,KAAK,sBAAuBA,CAAQ,EAE9CR,EAAYO,EAERH,EAAU,CACZ,IAAMM,EAAe,MAAM,QAAQH,EAAO,QAAQ,EAC9CA,EAAO,SACP,CAAC,EAED,OAAOH,GAAa,WAEtBJ,EAAU,SAAWI,EAASM,CAAY,EAG1CV,EAAU,SAAW,CAAC,GAAGU,EAAc,GAAGN,CAAQ,CAEtD,CAEIC,IACFL,EAAU,MAAQ,CAChB,GAAI,MAAM,QAAQO,EAAO,KAAK,EAAIA,EAAO,MAAQ,CAAC,EAClD,GAAGF,CACL,EAEJ,CAEA,IAAIM,EAAiD,CAAC,EAElDV,GAAeE,IAEjBQ,EADoBC,EAAiBZ,EAAU,YAAc,CAAC,EAAG,OAAO,EAC1C,OAC5B,CAACa,EAAKC,KACJD,EAAIC,CAAK,EAAIC,EAAed,EAAYa,CAAK,CAAC,EACvCD,GAET,CAAC,CACH,GAOF,IAAMG,EAAgB,KAAK,MACzB,KAAK,UAAU,CACb,GAAGf,EACH,GAAGU,CACL,CAAC,CACH,EAEA,MAAO,CACL,KAAM,CAIJ,kBACGX,EAAU,iBAAiB,GAC3BA,EAAU,qBAAqB,EAClC,qBAAsBA,EAAU,oBAAoB,CAGtD,EACA,GAAGiB,EAAuBjB,EAAW,CACnC,cAAAgB,CACF,CAAC,CACH,CACF,EApFkC","names":["baseCreateHeadlessForm","modify","createHeadlessForm","__name","jsfSchema","fieldValues","options","transformMoneyFields","required","allOf","modifyConfig","schema","warnings","modify","baseRequired","moneyFieldsData","findFieldsByType","acc","field","convertToCents","initialValues","baseCreateHeadlessForm"]}
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-W4LHXUIX.js";import{b as i}from"./chunk-76ZDXC2T.js";import{x as a}from"./chunk-G2LZFGZA.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function C({onSubmit:m,onSuccess:l,onError:t}){let{createCompanyBag:e}=i(),p=o(async d=>{try{await m?.(d);let r=await e.onSubmit(d);if(r?.data){await l?.(r?.data);return}if(r?.error){let s=a(r,e.meta?.fields?.address_details);t?.(s)}}catch(r){let s=a(r,e.meta?.fields?.address_details);t?.(s)}},"handleSubmit"),u=e.stepState.values?.address_details||e.initialValues.address_details;return c(n,{defaultValues:u,onSubmit:p})}o(C,"AddressDetailsStep");export{C as a};
2
- //# sourceMappingURL=chunk-OK4RV6ZT.js.map
1
+ import{a as n}from"./chunk-U7MAWO3U.js";import{b as i}from"./chunk-76ZDXC2T.js";import{x as a}from"./chunk-NXRWBI36.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function C({onSubmit:m,onSuccess:l,onError:t}){let{createCompanyBag:e}=i(),p=o(async d=>{try{await m?.(d);let r=await e.onSubmit(d);if(r?.data){await l?.(r?.data);return}if(r?.error){let s=a(r,e.meta?.fields?.address_details);t?.(s)}}catch(r){let s=a(r,e.meta?.fields?.address_details);t?.(s)}},"handleSubmit"),u=e.stepState.values?.address_details||e.initialValues.address_details;return c(n,{defaultValues:u,onSubmit:p})}o(C,"AddressDetailsStep");export{C as a};
2
+ //# sourceMappingURL=chunk-STFOY2NW.js.map
@@ -1,2 +1,2 @@
1
- import{a as t,b as n,c as l,d as i,e as s,f as d}from"./chunk-S3EXF5DV.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({open:w,onClose:D,data:o,isLoading:m,error:p,zendeskURL:f,Trigger:c}){return r(t,{open:w,onOpenChange:g=>!g&&D(),direction:"right",children:[e(n,{asChild:!0,children:c}),e(l,{className:"h-full w-[540px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:r("div",{className:"h-full flex flex-col",children:[r(i,{children:[e(s,{children:o?.title}),r(d,{children:["For more details see our"," ",e("a",{href:f,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),m&&e("div",{children:"Loading..."}),p&&e("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),e("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:o?.body||""}})]})})]})}a(h,"ZendeskDrawerDefault");export{h as a};
2
- //# sourceMappingURL=chunk-WYUPZMPN.js.map
1
+ import{a as t,b as n,c as l,d as i,e as s,f as d}from"./chunk-6QEAL5BB.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({open:w,onClose:D,data:o,isLoading:m,error:p,zendeskURL:f,Trigger:c}){return r(t,{open:w,onOpenChange:g=>!g&&D(),direction:"right",children:[e(n,{asChild:!0,children:c}),e(l,{className:"h-full w-[540px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:r("div",{className:"h-full flex flex-col",children:[r(i,{children:[e(s,{children:o?.title}),r(d,{children:["For more details see our"," ",e("a",{href:f,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),m&&e("div",{children:"Loading..."}),p&&e("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),e("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:o?.body||""}})]})})]})}a(h,"ZendeskDrawerDefault");export{h as a};
2
+ //# sourceMappingURL=chunk-STJU6LZF.js.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-G2LZFGZA.js";import{b as e}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function p({children:u,...t}){let{form:m,formId:l,costCalculatorBag:c}=s(),{components:i}=e(),o=i?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:r("RemoteFlows__CostCalculatorForm__ResetButton",t.className),form:l,onClick:C=>{c?.resetForm(),m.reset(),t.onClick?.(C)},children:u})}n(p,"CostCalculatorResetButton");export{p as a};
2
- //# sourceMappingURL=chunk-PIKEYX3V.js.map
1
+ import{b as s}from"./chunk-KSHK3ZPX.js";import{n as r}from"./chunk-NXRWBI36.js";import{b as e}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function p({children:u,...t}){let{form:m,formId:l,costCalculatorBag:c}=s(),{components:i}=e(),o=i?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:r("RemoteFlows__CostCalculatorForm__ResetButton",t.className),form:l,onClick:C=>{c?.resetForm(),m.reset(),t.onClick?.(C)},children:u})}n(p,"CostCalculatorResetButton");export{p as a};
2
+ //# sourceMappingURL=chunk-SU4FMKBZ.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-FCY5FJMC.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-CPRWWJYQ.js.map
1
+ import{a as s}from"./chunk-O3Y4DVNY.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-NXRWBI36.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-SUONIYV5.js.map
@@ -1,2 +1,2 @@
1
- import{c as e}from"./chunk-J2L3CYIS.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as o,jsxs as t}from"react/jsx-runtime";var a=n(({involuntaryOffboardingServiceChargeZendeskId:r,reconciliationInvoiceZendeskId:i})=>t("p",{className:"RemoteFlows__AcknowledgeInformationFees text-xs text-[#71717A]",children:["You'll receive an"," ",o(e,{zendeskId:r,className:"align-baseline",children:"involuntary offboarding service charge \u2197"})," ","on your"," ",o(e,{zendeskId:i,children:"reconciliation invoice \u2197"})]}),"AcknowledgeInformationFees");export{a};
2
- //# sourceMappingURL=chunk-RKRYZZ3R.js.map
1
+ import{c as e}from"./chunk-INUCPQVI.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as o,jsxs as t}from"react/jsx-runtime";var a=n(({involuntaryOffboardingServiceChargeZendeskId:r,reconciliationInvoiceZendeskId:i})=>t("p",{className:"RemoteFlows__AcknowledgeInformationFees text-xs text-[#71717A]",children:["You'll receive an"," ",o(e,{zendeskId:r,className:"align-baseline",children:"involuntary offboarding service charge \u2197"})," ","on your"," ",o(e,{zendeskId:i,children:"reconciliation invoice \u2197"})]}),"AcknowledgeInformationFees");export{a};
2
+ //# sourceMappingURL=chunk-SY7QZIKZ.js.map
@@ -1,2 +1,2 @@
1
- import{a as o,b as i,c as t,d as l,e as w}from"./chunk-S3EXF5DV.js";import{n as a}from"./chunk-G2LZFGZA.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";function C({open:D,onOpenChange:m,direction:p,className:f,title:s,trigger:d,children:v}){return n(o,{open:D,onOpenChange:m,direction:p,children:[r(i,{asChild:!0,children:d}),r(t,{className:a("RemoteFlows__Drawer h-full w-[540px] mt-0 ml-auto px-4",f),children:n("div",{className:"h-full flex flex-col",children:[r(l,{children:r(w,{children:s})}),r("div",{className:"flex-1 overflow-y-auto",children:v})]})})]})}e(C,"DrawerDefault");export{C as a};
2
- //# sourceMappingURL=chunk-V3J5DAMB.js.map
1
+ import{a as o,b as i,c as t,d as l,e as w}from"./chunk-6QEAL5BB.js";import{n as a}from"./chunk-NXRWBI36.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";function C({open:D,onOpenChange:m,direction:p,className:f,title:s,trigger:d,children:v}){return n(o,{open:D,onOpenChange:m,direction:p,children:[r(i,{asChild:!0,children:d}),r(t,{className:a("RemoteFlows__Drawer h-full w-[540px] mt-0 ml-auto px-4",f),children:n("div",{className:"h-full flex flex-col",children:[r(l,{children:r(w,{children:s})}),r("div",{className:"flex-1 overflow-y-auto",children:v})]})})]})}e(C,"DrawerDefault");export{C as a};
2
+ //# sourceMappingURL=chunk-SYSVKYHX.js.map
@@ -0,0 +1,2 @@
1
+ import{a as c}from"./chunk-LQFLXXBR.js";import{a as _}from"./chunk-MZN6VY5F.js";import{j as i,k as p,l as a,n as s,o as F}from"./chunk-4FGKIGKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as d}from"react/jsx-runtime";function w({field:o,fieldState:C,fieldData:m}){let{name:t,label:r,description:l}=m;return d(i,{"data-field":t,className:`RemoteFlows__TimeField__Item__${t}`,children:[r&&e(p,{className:"RemoteFlows__TimeField__Label",children:r}),e(a,{children:e(c,{...o,type:"time",value:o.value??"",onChange:T=>{o.onChange(T)},className:"RemoteFlows__TimeField__Input",placeholder:r})}),(l||m.meta?.helpCenter)&&e(s,{className:"RemoteFlows__TimeField__Description",helpCenter:e(_,{helpCenter:m.meta?.helpCenter}),children:l}),C.error&&e(F,{className:"RemoteFlows__TimeField__Error"})]})}n(w,"TimeFieldDefault");export{w as a};
2
+ //# sourceMappingURL=chunk-T3IHAH3B.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/form/fields/default/TimeFieldDefault.tsx"],"sourcesContent":["import { FormDescription, FormMessage } from '@/src/components/ui/form';\nimport { FormControl, FormItem, FormLabel } from '@/src/components/ui/form';\nimport { Input } from '@/src/components/ui/input';\nimport { HelpCenter } from '@/src/components/shared/zendesk-drawer/HelpCenter';\nimport { TimeFieldComponentProps } from '@/src/types/fields';\n\nexport function TimeFieldDefault({\n field,\n fieldState,\n fieldData,\n}: TimeFieldComponentProps) {\n const { name, label, description } = fieldData;\n return (\n <FormItem\n data-field={name}\n className={`RemoteFlows__TimeField__Item__${name}`}\n >\n {label && (\n <FormLabel className='RemoteFlows__TimeField__Label'>{label}</FormLabel>\n )}\n <FormControl>\n <Input\n {...field}\n type='time'\n value={field.value ?? ''}\n onChange={(event: React.ChangeEvent<HTMLInputElement>) => {\n field.onChange(event);\n }}\n className='RemoteFlows__TimeField__Input'\n placeholder={label}\n />\n </FormControl>\n {(description || fieldData.meta?.helpCenter) && (\n <FormDescription\n className='RemoteFlows__TimeField__Description'\n helpCenter={<HelpCenter helpCenter={fieldData.meta?.helpCenter} />}\n >\n {description}\n </FormDescription>\n )}\n {fieldState.error && (\n <FormMessage className='RemoteFlows__TimeField__Error' />\n )}\n </FormItem>\n );\n}\n"],"mappings":"4LAaI,OAKI,OAAAA,EALJ,QAAAC,MAAA,oBAPG,SAASC,EAAiB,CAC/B,MAAAC,EACA,WAAAC,EACA,UAAAC,CACF,EAA4B,CAC1B,GAAM,CAAE,KAAAC,EAAM,MAAAC,EAAO,YAAAC,CAAY,EAAIH,EACrC,OACEJ,EAACQ,EAAA,CACC,aAAYH,EACZ,UAAW,iCAAiCA,CAAI,GAE/C,UAAAC,GACCP,EAACU,EAAA,CAAU,UAAU,gCAAiC,SAAAH,EAAM,EAE9DP,EAACW,EAAA,CACC,SAAAX,EAACY,EAAA,CACE,GAAGT,EACJ,KAAK,OACL,MAAOA,EAAM,OAAS,GACtB,SAAWU,GAA+C,CACxDV,EAAM,SAASU,CAAK,CACtB,EACA,UAAU,gCACV,YAAaN,EACf,EACF,GACEC,GAAeH,EAAU,MAAM,aAC/BL,EAACc,EAAA,CACC,UAAU,sCACV,WAAYd,EAACe,EAAA,CAAW,WAAYV,EAAU,MAAM,WAAY,EAE/D,SAAAG,EACH,EAEDJ,EAAW,OACVJ,EAACgB,EAAA,CAAY,UAAU,gCAAgC,GAE3D,CAEJ,CAvCgBC,EAAAf,EAAA","names":["jsx","jsxs","TimeFieldDefault","field","fieldState","fieldData","name","label","description","FormItem","FormLabel","FormControl","Input","event","FormDescription","HelpCenter","FormMessage","__name"]}
@@ -1,2 +1,2 @@
1
- import{a as P,b as W,c as u}from"./chunk-43FMKELR.js";import{a as l}from"./chunk-OXTA4W4J.js";import{c as y}from"./chunk-Y3CJRZLA.js";import{j as h,m as x}from"./chunk-G2LZFGZA.js";import{a as c}from"./chunk-P37U34EQ.js";import{Fragment as $}from"react";import a from"lodash.omit";var C={...P,fieldset:u,"fieldset-flat":u};import{Fragment as S,jsx as n,jsxs as g}from"react/jsx-runtime";var B=c(({fields:p,fieldsets:d,fieldValues:i,components:m})=>{let{setValue:T,watch:M}=y();if(!p||p.length===0)return null;let J=d&&i?h({fields:p,fieldsets:d,values:i}):p,r=c((e,F,o)=>F.WrapperComponent?n(F.WrapperComponent,{children:e},o):n($,{children:e},o),"wrapWithCustomWrapper");return n(S,{children:J.map(e=>{if(e.calculateDynamicProperties&&(e={...e,...e.calculateDynamicProperties(i,e)||{}}),e.isVisible===!1||e.deprecated||e.hidden)return null;if(x(e)){let t=a(e,"WrapperComponent");return r(n(W,{name:t.name,description:t.description,value:t.const,statement:t.statement,label:t.label,helpCenter:t.meta?.helpCenter}),e,e.name)}if(e.Component){let{Component:t}=e,R=a(e,["Component","WrapperComponent"]);return r(g(S,{children:[n(t,{...R,value:M(e.name),setValue:V=>T(e.name,V)}),e.statement?n(l,{...e.statement}):null,e.extra?e.extra:null]}),e,e.name)}let o=e.type,s=C[o];if(!s)return g("p",{className:"error",children:["Field type ",o," not supported"]});if(o==="fieldset"){let t=a(e,"WrapperComponent");return r(n(s,{...t,components:m}),e,e.name)}if(o==="fieldset-flat"){let t=a(e,"WrapperComponent");return r(n(s,{...t,components:m,isFlatFieldset:!0}),e,e.name)}o==="select"&&e.multiple&&(s=C["multi-select"]);let k=a(e,"WrapperComponent");return r(g(S,{children:[n(s,{...k,component:m&&m[o]}),e.statement?n(l,{...e.statement}):null,e.extra?e.extra:null]}),e,e.name)})})},"JSONSchemaFormFields");export{B as a};
2
- //# sourceMappingURL=chunk-A7D2NNLM.js.map
1
+ import{a as P,b as W,c as u}from"./chunk-75N7DFXJ.js";import{a as l}from"./chunk-CM4UUBU5.js";import{c as y}from"./chunk-4FGKIGKF.js";import{j as h,m as x}from"./chunk-NXRWBI36.js";import{a as c}from"./chunk-P37U34EQ.js";import{Fragment as $}from"react";import a from"lodash.omit";var C={...P,fieldset:u,"fieldset-flat":u};import{Fragment as S,jsx as n,jsxs as g}from"react/jsx-runtime";var B=c(({fields:p,fieldsets:d,fieldValues:i,components:m})=>{let{setValue:T,watch:M}=y();if(!p||p.length===0)return null;let J=d&&i?h({fields:p,fieldsets:d,values:i}):p,r=c((e,F,o)=>F.WrapperComponent?n(F.WrapperComponent,{children:e},o):n($,{children:e},o),"wrapWithCustomWrapper");return n(S,{children:J.map(e=>{if(e.calculateDynamicProperties&&(e={...e,...e.calculateDynamicProperties(i,e)||{}}),e.isVisible===!1||e.deprecated||e.hidden)return null;if(x(e)){let t=a(e,"WrapperComponent");return r(n(W,{name:t.name,description:t.description,value:t.const,statement:t.statement,label:t.label,helpCenter:t.meta?.helpCenter}),e,e.name)}if(e.Component){let{Component:t}=e,R=a(e,["Component","WrapperComponent"]);return r(g(S,{children:[n(t,{...R,value:M(e.name),setValue:V=>T(e.name,V)}),e.statement?n(l,{...e.statement}):null,e.extra?e.extra:null]}),e,e.name)}let o=e.type,s=C[o];if(!s)return g("p",{className:"error",children:["Field type ",o," not supported"]});if(o==="fieldset"){let t=a(e,"WrapperComponent");return r(n(s,{...t,components:m}),e,e.name)}if(o==="fieldset-flat"){let t=a(e,"WrapperComponent");return r(n(s,{...t,components:m,isFlatFieldset:!0}),e,e.name)}o==="select"&&e.multiple&&(s=C["multi-select"]);let k=a(e,"WrapperComponent");return r(g(S,{children:[n(s,{...k,component:m&&m[o]}),e.statement?n(l,{...e.statement}):null,e.extra?e.extra:null]}),e,e.name)})})},"JSONSchemaFormFields");export{B as a};
2
+ //# sourceMappingURL=chunk-TMS5VMVV.js.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-D4XBTJOV.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as n}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function S({onSubmit:d,onError:a,onSuccess:m}){let{onboardingBag:r}=s(),c=t(async i=>{try{let e=await r.parseFormValues(i);await d?.(e);let o=await r.onSubmit(i);if(o?.data){await m?.(o.data),r?.next();return}if(o?.error){let p=n(o?.fieldErrors||[],r.meta?.fields?.contract_details);a?.({error:o.error,rawError:o.rawError,fieldErrors:p})}}catch(e){a?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit");return E(l,{defaultValues:r.stepState.values?.contract_details||r.initialValues.contract_details,onSubmit:c})}t(S,"ContractDetailsStep");export{S as a};
2
- //# sourceMappingURL=chunk-R744BZN2.js.map
1
+ import{a as l}from"./chunk-2CGPCBQY.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as n}from"./chunk-NXRWBI36.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function S({onSubmit:d,onError:a,onSuccess:m}){let{onboardingBag:r}=s(),c=t(async i=>{try{let e=await r.parseFormValues(i);await d?.(e);let o=await r.onSubmit(i);if(o?.data){await m?.(o.data),r?.next();return}if(o?.error){let p=n(o?.fieldErrors||[],r.meta?.fields?.contract_details);a?.({error:o.error,rawError:o.rawError,fieldErrors:p})}}catch(e){a?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit");return E(l,{defaultValues:r.stepState.values?.contract_details||r.initialValues.contract_details,onSubmit:c})}t(S,"ContractDetailsStep");export{S as a};
2
+ //# sourceMappingURL=chunk-TUAL6X2E.js.map
@@ -1,2 +1,2 @@
1
- import{a as I}from"./chunk-A3LRPGV3.js";import{a as N,b as j,c as D,d as O}from"./chunk-34JOEA4E.js";import{b as v}from"./chunk-NW3D7CPK.js";import{b as C,h as p,i as b,u as R,v as F}from"./chunk-G2LZFGZA.js";import{a as k}from"./chunk-XPVYX7LE.js";import{a as c}from"./chunk-P37U34EQ.js";import{useMemo as S,useRef as ee,useState as A}from"react";var pe=c(({countryCode:L,options:u,initialValues:l})=>{let P=N(),g=j(),{mutateAsync:q}=C(P),{mutateAsync:J}=C(g),[y,U]=A(L||null),[f,B]=A(null),w=ee({company_basic_information:{},address_details:{}}),{fieldValues:V,stepState:a,setFieldValues:W,previousStep:z,nextStep:G,goToStep:H}=k(I),{companyBasicInformationForm:d,isLoading:K}=D({jsfModify:u?.jsfModify?.company_basic_information,queryOptions:{enabled:a.currentStep.name==="company_basic_information"}}),{data:s,isLoading:Q}=O({countryCode:y,fieldValues:a.currentStep.name==="address_details"?{...a.values?.address_details||{},...V}:a.values?.address_details||{},options:{...u,jsfModify:u?.jsfModify?.address_details,queryOptions:{enabled:a.currentStep.name==="address_details"&&!!y&&!!f}}}),i=S(()=>({company_basic_information:d?.fields||[],address_details:s?.fields||[]}),[d?.fields,s?.fields]),X={company_basic_information:null,address_details:s?.meta?.["x-jsf-fieldsets"]||null},h=S(()=>b(i.company_basic_information,{...l,country_code:y||l?.country_code||""}),[i.company_basic_information,y,l]),E=S(()=>b(i.address_details,l||{}),[i.address_details,l]),Y=S(()=>({company_basic_information:h,address_details:E}),[h,E]),Z=c(o=>{H(o)},"goTo"),M=c(async o=>{let r=a.currentStep.name,e=i[r];return d&&r==="company_basic_information"?await p(o,e,{isPartialValidation:!1}):s&&r==="address_details"?await p(o,e,{isPartialValidation:!1}):{}},"parseFormValues");async function $(o){let r=a.currentStep.name,e=await M(o);switch(r in w.current&&(w.current[r]=R(e,i[r])),a.currentStep.name){case"company_basic_information":{if(U(e.country_code),f)return Promise.resolve({data:{countryCode:e.country_code??"",companyOwnerEmail:e.company_owner_email??"",companyOwnerName:e.company_owner_name??"",desiredCurrency:e.desired_currency??"",name:e.name??"",phoneNumber:e.phone_number??"",taxNumber:e.tax_number??""}});let x={country_code:e.country_code,company_owner_email:e.company_owner_email,company_owner_name:e.company_owner_name,desired_currency:e.desired_currency,name:e.name,phone_number:e.phone_number,tax_number:e.tax_number,terms_of_service_accepted_at:v()},n=await q(x);if(n.error)return Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors});let m=n.data?.data,_,t;if(m)if("data"in m&&m.data){let T=m.data.company;t=T,_=T?.id}else"company"in m&&(t=m.company,_=t?.id);return _&&B(_),Promise.resolve({data:{countryCode:t?.country_code??e.country_code??"",companyOwnerEmail:t?.company_owner_email??e.company_owner_email??"",companyOwnerName:t?.company_owner_name??e.company_owner_name??"",desiredCurrency:t?.desired_currency??e.desired_currency??"",name:t?.name??e.name??"",phoneNumber:t?.phone_number??e.phone_number??"",taxNumber:t?.tax_number??e.tax_number??""}})}case"address_details":{if(!f)throw F("Company ID is required to update address details");let n=await J({companyId:f,payload:{address_details:e},jsonSchemaVersion:u?.jsonSchemaVersion?.form_schema?.address_details});return n.error?Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors}):Promise.resolve({data:n.data})}default:throw F("Invalid step state")}}return c($,"onSubmit"),{isLoading:K||Q,isSubmitting:P.isPending||g.isPending,fieldValues:V,stepState:a,checkFieldUpdates:W,back:z,next:G,goTo:Z,onSubmit:$,fields:i[a.currentStep.name],meta:{fields:w.current,fieldsets:X[a.currentStep.name]},parseFormValues:M,handleValidation:c(async o=>{if(a.currentStep.name==="company_basic_information"&&d){let r=await p(o,d.fields,{isPartialValidation:!1});return d.handleValidation(r)}if(a.currentStep.name==="address_details"&&s){let r=await p(o,s.fields,{isPartialValidation:!1});return s.handleValidation(r)}return null},"handleValidation"),initialValues:Y}},"useCreateCompany");export{pe as a};
2
- //# sourceMappingURL=chunk-OETKBT6P.js.map
1
+ import{a as I}from"./chunk-A3LRPGV3.js";import{a as N,b as j,c as D,d as O}from"./chunk-J7I4WJ4G.js";import{b as v}from"./chunk-NW3D7CPK.js";import{b as C,h as p,i as b,u as R,v as F}from"./chunk-NXRWBI36.js";import{a as k}from"./chunk-XPVYX7LE.js";import{a as c}from"./chunk-P37U34EQ.js";import{useMemo as S,useRef as ee,useState as A}from"react";var pe=c(({countryCode:L,options:u,initialValues:l})=>{let P=N(),g=j(),{mutateAsync:q}=C(P),{mutateAsync:J}=C(g),[y,U]=A(L||null),[f,B]=A(null),w=ee({company_basic_information:{},address_details:{}}),{fieldValues:V,stepState:a,setFieldValues:W,previousStep:z,nextStep:G,goToStep:H}=k(I),{companyBasicInformationForm:d,isLoading:K}=D({jsfModify:u?.jsfModify?.company_basic_information,queryOptions:{enabled:a.currentStep.name==="company_basic_information"}}),{data:s,isLoading:Q}=O({countryCode:y,fieldValues:a.currentStep.name==="address_details"?{...a.values?.address_details||{},...V}:a.values?.address_details||{},options:{...u,jsfModify:u?.jsfModify?.address_details,queryOptions:{enabled:a.currentStep.name==="address_details"&&!!y&&!!f}}}),i=S(()=>({company_basic_information:d?.fields||[],address_details:s?.fields||[]}),[d?.fields,s?.fields]),X={company_basic_information:null,address_details:s?.meta?.["x-jsf-fieldsets"]||null},h=S(()=>b(i.company_basic_information,{...l,country_code:y||l?.country_code||""}),[i.company_basic_information,y,l]),E=S(()=>b(i.address_details,l||{}),[i.address_details,l]),Y=S(()=>({company_basic_information:h,address_details:E}),[h,E]),Z=c(o=>{H(o)},"goTo"),M=c(async o=>{let r=a.currentStep.name,e=i[r];return d&&r==="company_basic_information"?await p(o,e,{isPartialValidation:!1}):s&&r==="address_details"?await p(o,e,{isPartialValidation:!1}):{}},"parseFormValues");async function $(o){let r=a.currentStep.name,e=await M(o);switch(r in w.current&&(w.current[r]=R(e,i[r])),a.currentStep.name){case"company_basic_information":{if(U(e.country_code),f)return Promise.resolve({data:{countryCode:e.country_code??"",companyOwnerEmail:e.company_owner_email??"",companyOwnerName:e.company_owner_name??"",desiredCurrency:e.desired_currency??"",name:e.name??"",phoneNumber:e.phone_number??"",taxNumber:e.tax_number??""}});let x={country_code:e.country_code,company_owner_email:e.company_owner_email,company_owner_name:e.company_owner_name,desired_currency:e.desired_currency,name:e.name,phone_number:e.phone_number,tax_number:e.tax_number,terms_of_service_accepted_at:v()},n=await q(x);if(n.error)return Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors});let m=n.data?.data,_,t;if(m)if("data"in m&&m.data){let T=m.data.company;t=T,_=T?.id}else"company"in m&&(t=m.company,_=t?.id);return _&&B(_),Promise.resolve({data:{countryCode:t?.country_code??e.country_code??"",companyOwnerEmail:t?.company_owner_email??e.company_owner_email??"",companyOwnerName:t?.company_owner_name??e.company_owner_name??"",desiredCurrency:t?.desired_currency??e.desired_currency??"",name:t?.name??e.name??"",phoneNumber:t?.phone_number??e.phone_number??"",taxNumber:t?.tax_number??e.tax_number??""}})}case"address_details":{if(!f)throw F("Company ID is required to update address details");let n=await J({companyId:f,payload:{address_details:e},jsonSchemaVersion:u?.jsonSchemaVersion?.form_schema?.address_details});return n.error?Promise.resolve({data:null,error:n.error,rawError:n.rawError,fieldErrors:n.fieldErrors}):Promise.resolve({data:n.data})}default:throw F("Invalid step state")}}return c($,"onSubmit"),{isLoading:K||Q,isSubmitting:P.isPending||g.isPending,fieldValues:V,stepState:a,checkFieldUpdates:W,back:z,next:G,goTo:Z,onSubmit:$,fields:i[a.currentStep.name],meta:{fields:w.current,fieldsets:X[a.currentStep.name]},parseFormValues:M,handleValidation:c(async o=>{if(a.currentStep.name==="company_basic_information"&&d){let r=await p(o,d.fields,{isPartialValidation:!1});return d.handleValidation(r)}if(a.currentStep.name==="address_details"&&s){let r=await p(o,s.fields,{isPartialValidation:!1});return s.handleValidation(r)}return null},"handleValidation"),initialValues:Y}},"useCreateCompany");export{pe as a};
2
+ //# sourceMappingURL=chunk-TVTJS3PE.js.map
@@ -1,2 +1,2 @@
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
+ import{n as t}from"./chunk-NXRWBI36.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-TZIDQ5O3.js.map
@@ -1,2 +1,2 @@
1
- import{b as f}from"./chunk-76ZDXC2T.js";import{b as p}from"./chunk-KFYWUBRS.js";import{a as c}from"./chunk-A7D2NNLM.js";import{f as a,h as d}from"./chunk-Y3CJRZLA.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as y,useRef as b}from"react";import{jsx as l}from"react/jsx-runtime";import{createElement as g}from"react";function B({defaultValues:s,onSubmit:u,components:F}){let{formId:C,createCompanyBag:o}=f(),m=b(s),h=p(o.handleValidation),r=a({resolver:h,defaultValues:s,shouldUnregister:!1,mode:"onBlur"});y(()=>{let n=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==m.current[i])&&(o?.checkFieldUpdates(e),m.current={...e})});return()=>n?.unsubscribe()},[]);let S=t(async n=>{await u(n)},"handleSubmit");return g(d,{...r,key:`form-${o.stepState.currentStep.name}`},l("form",{id:C,onSubmit:r.handleSubmit(S),className:"space-y-4 RemoteFlows__OnboardingForm",children:l(c,{components:F,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}t(B,"CreateCompanyForm");export{B as a};
2
- //# sourceMappingURL=chunk-W4LHXUIX.js.map
1
+ import{b as f}from"./chunk-76ZDXC2T.js";import{b as p}from"./chunk-KFYWUBRS.js";import{a as c}from"./chunk-TMS5VMVV.js";import{f as a,h as d}from"./chunk-4FGKIGKF.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as y,useRef as b}from"react";import{jsx as l}from"react/jsx-runtime";import{createElement as g}from"react";function B({defaultValues:s,onSubmit:u,components:F}){let{formId:C,createCompanyBag:o}=f(),m=b(s),h=p(o.handleValidation),r=a({resolver:h,defaultValues:s,shouldUnregister:!1,mode:"onBlur"});y(()=>{let n=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==m.current[i])&&(o?.checkFieldUpdates(e),m.current={...e})});return()=>n?.unsubscribe()},[]);let S=t(async n=>{await u(n)},"handleSubmit");return g(d,{...r,key:`form-${o.stepState.currentStep.name}`},l("form",{id:C,onSubmit:r.handleSubmit(S),className:"space-y-4 RemoteFlows__OnboardingForm",children:l(c,{components:F,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}t(B,"CreateCompanyForm");export{B as a};
2
+ //# sourceMappingURL=chunk-U7MAWO3U.js.map
@@ -1,2 +1,2 @@
1
- import{b as e}from"./chunk-T5J2Z6ZR.js";import{n as t}from"./chunk-G2LZFGZA.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as p}from"react/jsx-runtime";var s=o(({isExpanded:l,onToggle:n,className:m,...i})=>p(e,{type:"button",className:t("RemoteFlows__Button RemoteFlows__FieldSetField__ToggleButton",m),variant:"default",onClick:n,...i,children:l?"Remove":"Define"}),"FieldsetToggleButtonDefault");export{s as a};
2
- //# sourceMappingURL=chunk-RR57VT45.js.map
1
+ import{b as e}from"./chunk-BC4V2YAK.js";import{n as t}from"./chunk-NXRWBI36.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as p}from"react/jsx-runtime";var s=o(({isExpanded:l,onToggle:n,className:m,...i})=>p(e,{type:"button",className:t("RemoteFlows__Button RemoteFlows__FieldSetField__ToggleButton",m),variant:"default",onClick:n,...i,children:l?"Remove":"Define"}),"FieldsetToggleButtonDefault");export{s as a};
2
+ //# sourceMappingURL=chunk-UCBZMQGL.js.map
@@ -0,0 +1,2 @@
1
+ import{a as g}from"./chunk-LQFLXXBR.js";import{a as h,b as N,c as T,d as $,e as v,f as S}from"./chunk-HFFQ642D.js";import{a as b}from"./chunk-MZN6VY5F.js";import{j as C,k as p,n as F,o as y}from"./chunk-4FGKIGKF.js";import{a as _}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as t}from"react/jsx-runtime";function B({field:f,fieldState:r,fieldData:n}){let{name:m,label:s,description:c,options:i,onChangeCountryCode:d,onChangePhoneNumber:w,currentCountry:o,nationalPhoneNumber:I}=n,R=o?`${o.name}-${o.dialCode}`:"";return t(C,{"data-field":m,className:`RemoteFlows__TelField__Item__${m}`,children:[s&&e(p,{className:"RemoteFlows__TelField__Label",children:s}),t("div",{className:"flex gap-2",children:[e("div",{className:"w-[180px]",children:t(h,{value:R,onValueChange:l=>{let a=i?.find(u=>`${u.label}-${u.meta?.countryCode}`===l);a&&d&&d({name:a.label,dialCode:a.meta?.countryCode||"",pattern:a.pattern||""})},children:[e($,{className:"RemoteFlows__TelField__CountrySelect","aria-invalid":!!r.error,"aria-label":"Country code",children:e("span",{className:"absolute",children:e(T,{placeholder:"Country code *",children:o&&`${o.name} +${o.dialCode}`})})}),e(v,{className:"RemoteFlows__TelField__CountryContent",children:e(N,{className:"RemoteFlows__TelField__CountryGroup",children:i?.map((l,a)=>t(S,{value:`${l.label}-${l.meta?.countryCode}`,className:"RemoteFlows__TelField__CountryItem",children:[l.label," +",l.meta?.countryCode]},`${l.label}-${l.meta?.countryCode}-${a}`))})})]})}),e("div",{className:"flex-1",children:e(g,{...f,type:"tel",value:I||"",onChange:w,className:"RemoteFlows__TelField__Input",placeholder:"Employee's phone number *","aria-invalid":!!r.error,"aria-label":"Phone number"})})]}),(c||n.meta?.helpCenter)&&e(F,{className:"RemoteFlows__TelField__Description",helpCenter:e(b,{helpCenter:n.meta?.helpCenter}),children:c}),r.error&&e(y,{})]})}_(B,"TelFieldDefault");export{B as a};
2
+ //# sourceMappingURL=chunk-UHFNNG5S.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/form/fields/default/TelFieldDefault.tsx"],"sourcesContent":["import { FormDescription, FormMessage } from '@/src/components/ui/form';\nimport { FormItem, FormLabel } from '@/src/components/ui/form';\nimport { HelpCenter } from '@/src/components/shared/zendesk-drawer/HelpCenter';\nimport { TelFieldComponentProps } from '@/src/types/fields';\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/src/components/ui/select';\nimport { Input } from '@/src/components/ui/input';\n\nexport function TelFieldDefault({\n field,\n fieldState,\n fieldData,\n}: TelFieldComponentProps) {\n const {\n name,\n label,\n description,\n options,\n onChangeCountryCode,\n onChangePhoneNumber,\n currentCountry,\n nationalPhoneNumber,\n } = fieldData;\n\n const selectedCountryCode = currentCountry\n ? `${currentCountry.name}-${currentCountry.dialCode}`\n : '';\n\n return (\n <FormItem\n data-field={name}\n className={`RemoteFlows__TelField__Item__${name}`}\n >\n {label && (\n <FormLabel className='RemoteFlows__TelField__Label'>{label}</FormLabel>\n )}\n\n <div className='flex gap-2'>\n {/* Country Code Select */}\n <div className='w-[180px]'>\n <Select\n value={selectedCountryCode}\n onValueChange={(value) => {\n const country = options?.find(\n (opt) => `${opt.label}-${opt.meta?.countryCode}` === value,\n );\n if (country && onChangeCountryCode) {\n onChangeCountryCode({\n name: country.label,\n dialCode: country.meta?.countryCode || '',\n pattern: country.pattern || '',\n });\n }\n }}\n >\n <SelectTrigger\n className='RemoteFlows__TelField__CountrySelect'\n aria-invalid={Boolean(fieldState.error)}\n aria-label='Country code'\n >\n <span className='absolute'>\n <SelectValue placeholder='Country code *'>\n {currentCountry &&\n `${currentCountry.name} +${currentCountry.dialCode}`}\n </SelectValue>\n </span>\n </SelectTrigger>\n <SelectContent className='RemoteFlows__TelField__CountryContent'>\n <SelectGroup className='RemoteFlows__TelField__CountryGroup'>\n {options?.map((option, index) => (\n <SelectItem\n key={`${option.label}-${option.meta?.countryCode}-${index}`}\n value={`${option.label}-${option.meta?.countryCode}`}\n className='RemoteFlows__TelField__CountryItem'\n >\n {option.label} +{option.meta?.countryCode}\n </SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n </Select>\n </div>\n\n {/* Phone Number Input */}\n <div className='flex-1'>\n <Input\n {...field}\n type='tel'\n value={nationalPhoneNumber || ''}\n onChange={onChangePhoneNumber}\n className='RemoteFlows__TelField__Input'\n placeholder=\"Employee's phone number *\"\n aria-invalid={Boolean(fieldState.error)}\n aria-label='Phone number'\n />\n </div>\n </div>\n\n {(description || fieldData.meta?.helpCenter) && (\n <FormDescription\n className='RemoteFlows__TelField__Description'\n helpCenter={<HelpCenter helpCenter={fieldData.meta?.helpCenter} />}\n >\n {description}\n </FormDescription>\n )}\n {fieldState.error && <FormMessage />}\n </FormItem>\n );\n}\n"],"mappings":"gQAwCQ,cAAAA,EAoCU,QAAAC,MApCV,oBA1BD,SAASC,EAAgB,CAC9B,MAAAC,EACA,WAAAC,EACA,UAAAC,CACF,EAA2B,CACzB,GAAM,CACJ,KAAAC,EACA,MAAAC,EACA,YAAAC,EACA,QAAAC,EACA,oBAAAC,EACA,oBAAAC,EACA,eAAAC,EACA,oBAAAC,CACF,EAAIR,EAEES,EAAsBF,EACxB,GAAGA,EAAe,IAAI,IAAIA,EAAe,QAAQ,GACjD,GAEJ,OACEX,EAACc,EAAA,CACC,aAAYT,EACZ,UAAW,gCAAgCA,CAAI,GAE9C,UAAAC,GACCP,EAACgB,EAAA,CAAU,UAAU,+BAAgC,SAAAT,EAAM,EAG7DN,EAAC,OAAI,UAAU,aAEb,UAAAD,EAAC,OAAI,UAAU,YACb,SAAAC,EAACgB,EAAA,CACC,MAAOH,EACP,cAAgBI,GAAU,CACxB,IAAMC,EAAUV,GAAS,KACtBW,GAAQ,GAAGA,EAAI,KAAK,IAAIA,EAAI,MAAM,WAAW,KAAOF,CACvD,EACIC,GAAWT,GACbA,EAAoB,CAClB,KAAMS,EAAQ,MACd,SAAUA,EAAQ,MAAM,aAAe,GACvC,QAASA,EAAQ,SAAW,EAC9B,CAAC,CAEL,EAEA,UAAAnB,EAACqB,EAAA,CACC,UAAU,uCACV,eAAc,EAAQjB,EAAW,MACjC,aAAW,eAEX,SAAAJ,EAAC,QAAK,UAAU,WACd,SAAAA,EAACsB,EAAA,CAAY,YAAY,iBACtB,SAAAV,GACC,GAAGA,EAAe,IAAI,KAAKA,EAAe,QAAQ,GACtD,EACF,EACF,EACAZ,EAACuB,EAAA,CAAc,UAAU,wCACvB,SAAAvB,EAACwB,EAAA,CAAY,UAAU,sCACpB,SAAAf,GAAS,IAAI,CAACgB,EAAQC,IACrBzB,EAAC0B,EAAA,CAEC,MAAO,GAAGF,EAAO,KAAK,IAAIA,EAAO,MAAM,WAAW,GAClD,UAAU,qCAET,UAAAA,EAAO,MAAM,KAAGA,EAAO,MAAM,cAJzB,GAAGA,EAAO,KAAK,IAAIA,EAAO,MAAM,WAAW,IAAIC,CAAK,EAK3D,CACD,EACH,EACF,GACF,EACF,EAGA1B,EAAC,OAAI,UAAU,SACb,SAAAA,EAAC4B,EAAA,CACE,GAAGzB,EACJ,KAAK,MACL,MAAOU,GAAuB,GAC9B,SAAUF,EACV,UAAU,+BACV,YAAY,4BACZ,eAAc,EAAQP,EAAW,MACjC,aAAW,eACb,EACF,GACF,GAEEI,GAAeH,EAAU,MAAM,aAC/BL,EAAC6B,EAAA,CACC,UAAU,qCACV,WAAY7B,EAAC8B,EAAA,CAAW,WAAYzB,EAAU,MAAM,WAAY,EAE/D,SAAAG,EACH,EAEDJ,EAAW,OAASJ,EAAC+B,EAAA,EAAY,GACpC,CAEJ,CArGgBC,EAAA9B,EAAA","names":["jsx","jsxs","TelFieldDefault","field","fieldState","fieldData","name","label","description","options","onChangeCountryCode","onChangePhoneNumber","currentCountry","nationalPhoneNumber","selectedCountryCode","FormItem","FormLabel","Select","value","country","opt","SelectTrigger","SelectValue","SelectContent","SelectGroup","option","index","SelectItem","Input","FormDescription","HelpCenter","FormMessage","__name"]}
@@ -0,0 +1,2 @@
1
+ import{a as r}from"./chunk-PMCCHSXD.js";import{a as e}from"./chunk-BHKAKCV4.js";import{b as n}from"./chunk-WCJZAOZR.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";function p(a){let{adminBag:t}=n(),l=r(a),s={...t.initialValues?.basic_information,...t.stepState.values?.select_country};return i(e,{onSubmit:l,defaultValues:s},t.countryCode??"no-country")}o(p,"SelectCountryStep");export{p as a};
2
+ //# sourceMappingURL=chunk-UYTYZVQM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/PayrollAdminOnboarding/components/SelectCountryStep.tsx"],"sourcesContent":["import { usePayrollAdminOnboardingContext } from '@/src/flows/PayrollAdminOnboarding/context';\nimport { PayrollAdminForm } from '@/src/flows/PayrollAdminOnboarding/components/PayrollAdminForm';\nimport { useStepSubmitHandler } from '@/src/flows/PayrollAdminOnboarding/components/useStepSubmitHandler';\nimport type { GPStepCallbacks } from '@/src/flows/types';\n\nexport function SelectCountryStep(props: GPStepCallbacks) {\n const { adminBag } = usePayrollAdminOnboardingContext();\n const handleSubmit = useStepSubmitHandler(props);\n\n // Merge (not ||): stepState.values can be an empty {} after advancing without\n // edits, which is truthy and would blank the form — so initialValues is the\n // base and saved edits override it.\n const defaultValues = {\n ...(adminBag.initialValues?.basic_information as Record<string, unknown>),\n ...(adminBag.stepState.values?.select_country as Record<string, unknown>),\n };\n\n return (\n // Remount the form when the country changes so it re-initializes against\n // the newly loaded basic-information schema instead of the country picker.\n <PayrollAdminForm\n key={adminBag.countryCode ?? 'no-country'}\n onSubmit={handleSubmit}\n defaultValues={defaultValues}\n />\n );\n}\n"],"mappings":"gKAoBI,cAAAA,MAAA,oBAfG,SAASC,EAAkBC,EAAwB,CACxD,GAAM,CAAE,SAAAC,CAAS,EAAIC,EAAiC,EAChDC,EAAeC,EAAqBJ,CAAK,EAKzCK,EAAgB,CACpB,GAAIJ,EAAS,eAAe,kBAC5B,GAAIA,EAAS,UAAU,QAAQ,cACjC,EAEA,OAGEH,EAACQ,EAAA,CAEC,SAAUH,EACV,cAAeE,GAFVJ,EAAS,aAAe,YAG/B,CAEJ,CArBgBM,EAAAR,EAAA","names":["jsx","SelectCountryStep","props","adminBag","usePayrollAdminOnboardingContext","handleSubmit","useStepSubmitHandler","defaultValues","PayrollAdminForm","__name"]}
@@ -1,2 +1,2 @@
1
- import{b as w}from"./chunk-PGWKJ6FK.js";import{d as v,e as y}from"./chunk-ZT4OC3OB.js";import{b as i}from"./chunk-G2LZFGZA.js";import{b as p}from"./chunk-H2O4CVKF.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as C}from"react/jsx-runtime";function A({onSubmit:f,onSuccess:a,onError:t,render:E,...o}){let{components:R}=p(),{onboardingBag:r,setCreditScore:m}=w(),d=v(),u=y(),{mutateAsync:g}=i(d),{mutateAsync:I}=i(u),c=r.creditRiskStatus==="deposit_required"||r.onboardingReservesStatus==="deposit_required",S=s(async()=>{try{if(await f?.(),c&&r.employmentId&&r.employment?.status&&!r.isEmploymentReadOnly){let e=await I({employment_slug:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"created_awaiting_reserve"}),m?.(n=>({...n,showReserveInvoice:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}else if(r.employmentId){let e=await g({employment_id:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"invited"}),m?.(n=>({...n,showInviteSuccessful:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}}catch(e){t?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit"),b=c&&r.employment?.status&&!r.isEmploymentReadOnly,l=R?.button;if(!l)throw new Error("Button component not found");let _=!r.canInvite||d.isPending||u.isPending||o.disabled;return C(l,{...o,disabled:_,onClick:e=>{S(),o.onClick?.(e)},children:E({employmentStatus:b?"created_awaiting_reserve":"invited"})})}s(A,"OnboardingInvite");export{A as a};
2
- //# sourceMappingURL=chunk-3CJB74UF.js.map
1
+ import{b as w}from"./chunk-PGWKJ6FK.js";import{d as v,e as y}from"./chunk-RG67OYQN.js";import{b as i}from"./chunk-NXRWBI36.js";import{b as p}from"./chunk-H2O4CVKF.js";import{a as s}from"./chunk-P37U34EQ.js";import{jsx as C}from"react/jsx-runtime";function A({onSubmit:f,onSuccess:a,onError:t,render:E,...o}){let{components:R}=p(),{onboardingBag:r,setCreditScore:m}=w(),d=v(),u=y(),{mutateAsync:g}=i(d),{mutateAsync:I}=i(u),c=r.creditRiskStatus==="deposit_required"||r.onboardingReservesStatus==="deposit_required",S=s(async()=>{try{if(await f?.(),c&&r.employmentId&&r.employment?.status&&!r.isEmploymentReadOnly){let e=await I({employment_slug:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"created_awaiting_reserve"}),m?.(n=>({...n,showReserveInvoice:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}else if(r.employmentId){let e=await g({employment_id:r.employmentId});if(e.data){await a?.({data:e.data,employmentStatus:"invited"}),m?.(n=>({...n,showInviteSuccessful:!0})),r.refetchEmployment();return}e.error&&t?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}}catch(e){t?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit"),b=c&&r.employment?.status&&!r.isEmploymentReadOnly,l=R?.button;if(!l)throw new Error("Button component not found");let _=!r.canInvite||d.isPending||u.isPending||o.disabled;return C(l,{...o,disabled:_,onClick:e=>{S(),o.onClick?.(e)},children:E({employmentStatus:b?"created_awaiting_reserve":"invited"})})}s(A,"OnboardingInvite");export{A as a};
2
+ //# sourceMappingURL=chunk-UYYITOOO.js.map
@@ -1,2 +1,2 @@
1
- import{n as l}from"./chunk-G2LZFGZA.js";import{a as d}from"./chunk-P37U34EQ.js";import*as r from"react";import{jsx as o}from"react/jsx-runtime";var i=r.forwardRef(({className:a,...e},t)=>o("div",{className:"relative w-full overflow-auto",children:o("table",{ref:t,className:l("w-full caption-bottom text-sm",a),...e})}));i.displayName="Table";var c=r.forwardRef(({className:a,...e},t)=>o("thead",{ref:t,className:l("[&_tr]:border-b",a),...e}));c.displayName="TableHeader";var n=r.forwardRef(({className:a,...e},t)=>o("tbody",{ref:t,className:l("[&_tr:last-child]:border-0",a),...e}));n.displayName="TableBody";var M=r.forwardRef(({className:a,...e},t)=>o("tfoot",{ref:t,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...e}));M.displayName="TableFooter";var m=r.forwardRef(({className:a,...e},t)=>o("tr",{ref:t,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...e}));m.displayName="TableRow";var f=r.forwardRef(({className:a,...e},t)=>o("th",{ref:t,className:l("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));f.displayName="TableHead";var p=r.forwardRef(({className:a,...e},t)=>o("td",{ref:t,className:l("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));p.displayName="TableCell";var L=r.forwardRef(({className:a,...e},t)=>o("caption",{ref:t,className:l("mt-4 text-sm text-muted-foreground",a),...e}));L.displayName="TableCaption";import{jsx as s,jsxs as N}from"react/jsx-runtime";var g=d(({data:a,columns:e,className:t,ref:H})=>N(i,{ref:H,className:l("RemoteFlows__Table",t),children:[s(c,{children:s(m,{children:e.map(b=>s(f,{className:l("RemoteFlows__TableHead",b.className),children:b.label},String(b.id)))})}),s(n,{children:a?.map((b,R)=>s(m,{children:e.map(T=>s(p,{className:l("RemoteFlows__TableCell",T.className,T.cellClassName),children:T.render?T.render(b[T.id],b,R):b[T.id]},String(T.id)))},y(b,R)))})]}),"TableFieldDefault");function y(a,e){return String(a.id??e)}d(y,"getRowKey");export{g as a};
2
- //# sourceMappingURL=chunk-YS6VDGFW.js.map
1
+ import{n as l}from"./chunk-NXRWBI36.js";import{a as d}from"./chunk-P37U34EQ.js";import*as r from"react";import{jsx as o}from"react/jsx-runtime";var i=r.forwardRef(({className:a,...e},t)=>o("div",{className:"relative w-full overflow-auto",children:o("table",{ref:t,className:l("w-full caption-bottom text-sm",a),...e})}));i.displayName="Table";var c=r.forwardRef(({className:a,...e},t)=>o("thead",{ref:t,className:l("[&_tr]:border-b",a),...e}));c.displayName="TableHeader";var n=r.forwardRef(({className:a,...e},t)=>o("tbody",{ref:t,className:l("[&_tr:last-child]:border-0",a),...e}));n.displayName="TableBody";var M=r.forwardRef(({className:a,...e},t)=>o("tfoot",{ref:t,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...e}));M.displayName="TableFooter";var m=r.forwardRef(({className:a,...e},t)=>o("tr",{ref:t,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...e}));m.displayName="TableRow";var f=r.forwardRef(({className:a,...e},t)=>o("th",{ref:t,className:l("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));f.displayName="TableHead";var p=r.forwardRef(({className:a,...e},t)=>o("td",{ref:t,className:l("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e}));p.displayName="TableCell";var L=r.forwardRef(({className:a,...e},t)=>o("caption",{ref:t,className:l("mt-4 text-sm text-muted-foreground",a),...e}));L.displayName="TableCaption";import{jsx as s,jsxs as N}from"react/jsx-runtime";var g=d(({data:a,columns:e,className:t,ref:H})=>N(i,{ref:H,className:l("RemoteFlows__Table",t),children:[s(c,{children:s(m,{children:e.map(b=>s(f,{className:l("RemoteFlows__TableHead",b.className),children:b.label},String(b.id)))})}),s(n,{children:a?.map((b,R)=>s(m,{children:e.map(T=>s(p,{className:l("RemoteFlows__TableCell",T.className,T.cellClassName),children:T.render?T.render(b[T.id],b,R):b[T.id]},String(T.id)))},y(b,R)))})]}),"TableFieldDefault");function y(a,e){return String(a.id??e)}d(y,"getRowKey");export{g as a};
2
+ //# sourceMappingURL=chunk-V2ZDW66A.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-MC6VR4AZ.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-RJXRGUNB.js.map
1
+ import{a as e}from"./chunk-OUFFAMO5.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-V6I7LW47.js.map
@@ -0,0 +1,2 @@
1
+ import{b as t}from"./chunk-4MI7BMM5.js";import{a}from"./chunk-G3QDDD53.js";import{a as r}from"./chunk-TMS5VMVV.js";import{h as m}from"./chunk-4FGKIGKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{useEffect as p}from"react";import{jsx as i}from"react/jsx-runtime";import{createElement as h}from"react";var k=n(({onSubmit:d,className:l,components:c})=>{let{formId:u,playgroundBag:e}=t(),o=a({handleValidation:e.handleValidation,defaultValues:e.initialValues,checkFieldUpdates:e.checkFieldUpdates});p(()=>{e.checkFieldUpdates(o.getValues())},[]);let f=n(async s=>{await e.handleSubmit(s),d?.(s)},"handleFormSubmit");return h(m,{...o,key:`form-${e.selectedSchema}-${e.resetKey}`},i("form",{id:u,onSubmit:o.handleSubmit(f),className:l,children:i(r,{components:c,fields:e.fields??[],fieldValues:e.fieldValues,fieldsets:e.meta["x-jsf-fieldsets"]})}))},"JsonSchemaPlaygroundForm");export{k as a};
2
+ //# sourceMappingURL=chunk-VADVEBNE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.tsx"],"sourcesContent":["import { JSONSchemaFormFields } from '@/src/components/form/JSONSchemaForm';\nimport { Form } from '@/src/components/ui/form';\nimport { useEffect } from 'react';\nimport { useJsonSchemaPlaygroundContext } from './context';\nimport { useJSONSchemaForm } from '@/src/components/form/useJSONSchemaForm';\nimport { Components } from '@/src/types/remoteFlows';\n\nexport interface JsonSchemaPlaygroundFormProps {\n onSubmit?: (values: Record<string, unknown>) => void;\n className?: string;\n components?: Components;\n defaultValues?: Record<string, unknown>;\n}\n\nexport const JsonSchemaPlaygroundForm = ({\n onSubmit,\n className,\n components,\n}: JsonSchemaPlaygroundFormProps) => {\n const { formId, playgroundBag } = useJsonSchemaPlaygroundContext();\n\n const form = useJSONSchemaForm({\n handleValidation: playgroundBag.handleValidation,\n defaultValues: playgroundBag.initialValues,\n checkFieldUpdates: playgroundBag.checkFieldUpdates,\n });\n\n useEffect(() => {\n // Update field values when form values change\n playgroundBag.checkFieldUpdates(form.getValues());\n // oxlint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const handleFormSubmit = async (values: Record<string, unknown>) => {\n await playgroundBag.handleSubmit(values);\n onSubmit?.(values);\n };\n\n return (\n <Form\n {...form}\n key={`form-${playgroundBag.selectedSchema}-${playgroundBag.resetKey}`}\n >\n <form\n id={formId}\n onSubmit={form.handleSubmit(handleFormSubmit)}\n className={className}\n >\n <JSONSchemaFormFields\n components={components}\n fields={playgroundBag.fields ?? []}\n fieldValues={playgroundBag.fieldValues}\n fieldsets={playgroundBag.meta['x-jsf-fieldsets']}\n />\n </form>\n </Form>\n );\n};\n"],"mappings":"mMAEA,OAAS,aAAAA,MAAiB,QA8ClB,cAAAC,MAAA,oBATJ,wBAAAC,MAAA,QAzBG,IAAMC,EAA2BC,EAAA,CAAC,CACvC,SAAAC,EACA,UAAAC,EACA,WAAAC,CACF,IAAqC,CACnC,GAAM,CAAE,OAAAC,EAAQ,cAAAC,CAAc,EAAIC,EAA+B,EAE3DC,EAAOC,EAAkB,CAC7B,iBAAkBH,EAAc,iBAChC,cAAeA,EAAc,cAC7B,kBAAmBA,EAAc,iBACnC,CAAC,EAEDI,EAAU,IAAM,CAEdJ,EAAc,kBAAkBE,EAAK,UAAU,CAAC,CAElD,EAAG,CAAC,CAAC,EAEL,IAAMG,EAAmBV,EAAA,MAAOW,GAAoC,CAClE,MAAMN,EAAc,aAAaM,CAAM,EACvCV,IAAWU,CAAM,CACnB,EAHyB,oBAKzB,OACEb,EAACc,EAAA,CACE,GAAGL,EACJ,IAAK,QAAQF,EAAc,cAAc,IAAIA,EAAc,QAAQ,IAEnER,EAAC,QACC,GAAIO,EACJ,SAAUG,EAAK,aAAaG,CAAgB,EAC5C,UAAWR,EAEX,SAAAL,EAACgB,EAAA,CACC,WAAYV,EACZ,OAAQE,EAAc,QAAU,CAAC,EACjC,YAAaA,EAAc,YAC3B,UAAWA,EAAc,KAAK,iBAAiB,EACjD,EACF,CACF,CAEJ,EA3CwC","names":["useEffect","jsx","createElement","JsonSchemaPlaygroundForm","__name","onSubmit","className","components","formId","playgroundBag","useJsonSchemaPlaygroundContext","form","useJSONSchemaForm","useEffect","handleFormSubmit","values","Form","JSONSchemaFormFields"]}
@@ -1,2 +1,2 @@
1
- import{a as S}from"./chunk-GGDVTGHG.js";import{a as e}from"./chunk-CW7CHRMN.js";import{a as s}from"./chunk-RYUBFXSX.js";import{a as p}from"./chunk-DB4JHJ3Z.js";import{a as c}from"./chunk-PGCS6HUO.js";import{a as g}from"./chunk-KVUKJU5U.js";import{a as i}from"./chunk-NRWIGTY2.js";import{a as m}from"./chunk-CPRWWJYQ.js";import{a as f}from"./chunk-Z5LVLVTU.js";import{a as l}from"./chunk-6Z4U4GYV.js";import{a as u}from"./chunk-TQH4OKHR.js";import{a as d}from"./chunk-SVVZOMLQ.js";import{a as n}from"./chunk-Q3ALCPJN.js";import{a}from"./chunk-ERDNYHQO.js";import{a as o}from"./chunk-P37U34EQ.js";import{useId as F,useRef as y,useMemo as D}from"react";import{jsx as V}from"react/jsx-runtime";var L=o(({render:C,employmentId:b,externalId:v,countryCode:O,skipSteps:B,initialValues:w,options:P})=>{let R=F(),t=y(void 0),I=D(()=>({setValue:t}),[]),r=a({options:{...P,onContractReviewed:o(()=>{t.current&&t.current("review_completed",!0)},"onContractReviewed")},employmentId:b,externalId:v,countryCode:O,skipSteps:B,initialValues:w});return V(n.Provider,{value:{contractorOnboardingBag:r,formId:R,formRef:I},children:C({contractorOnboardingBag:r,components:{BasicInformationStep:m,SelectCountryStep:i,BackButton:e,SubmitButton:p,PricingPlanStep:c,EligibilityQuestionnaireStep:S,ContractOriginStep:l,ContractDetailsStep:f,ContractPreviewStep:u,OnboardingInvite:s,ContractReviewButton:d,SaveDraftButton:g}})})},"ContractorOnboardingFlow");export{L as a};
2
- //# sourceMappingURL=chunk-HFHQDWJN.js.map
1
+ import{a as e}from"./chunk-CW7CHRMN.js";import{a as s}from"./chunk-KF54ACZP.js";import{a as p}from"./chunk-DB4JHJ3Z.js";import{a as c}from"./chunk-HTVGC4KT.js";import{a as g}from"./chunk-KVUKJU5U.js";import{a as i}from"./chunk-YYWBJW65.js";import{a as f}from"./chunk-3OTZWYVQ.js";import{a as l}from"./chunk-JJK6BFGN.js";import{a as u}from"./chunk-5N5B5AU2.js";import{a as d}from"./chunk-SVVZOMLQ.js";import{a as S}from"./chunk-2QQZODFC.js";import{a as m}from"./chunk-SUONIYV5.js";import{a as n}from"./chunk-Q3ALCPJN.js";import{a}from"./chunk-JPVSXGCC.js";import{a as o}from"./chunk-P37U34EQ.js";import{useId as F,useRef as y,useMemo as D}from"react";import{jsx as V}from"react/jsx-runtime";var L=o(({render:C,employmentId:b,externalId:v,countryCode:O,skipSteps:B,initialValues:w,options:P})=>{let R=F(),t=y(void 0),I=D(()=>({setValue:t}),[]),r=a({options:{...P,onContractReviewed:o(()=>{t.current&&t.current("review_completed",!0)},"onContractReviewed")},employmentId:b,externalId:v,countryCode:O,skipSteps:B,initialValues:w});return V(n.Provider,{value:{contractorOnboardingBag:r,formId:R,formRef:I},children:C({contractorOnboardingBag:r,components:{BasicInformationStep:m,SelectCountryStep:i,BackButton:e,SubmitButton:p,PricingPlanStep:c,EligibilityQuestionnaireStep:S,ContractOriginStep:l,ContractDetailsStep:f,ContractPreviewStep:u,OnboardingInvite:s,ContractReviewButton:d,SaveDraftButton:g}})})},"ContractorOnboardingFlow");export{L as a};
2
+ //# sourceMappingURL=chunk-VDXTVUFY.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-W4LHXUIX.js";import{b as m}from"./chunk-76ZDXC2T.js";import{x as i}from"./chunk-G2LZFGZA.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function l({onSubmit:c,onSuccess:p,onError:t}){let{createCompanyBag:o}=m(),u=a(async r=>{try{await c?.({countryCode:r.country_code,companyOwnerEmail:r.company_owner_email,companyOwnerName:r.company_owner_name,desiredCurrency:r.desired_currency,name:r.name,phoneNumber:r.phone_number,taxNumber:r.tax_number});let n=await o.onSubmit(r);if(n?.data){await p?.(n?.data),o?.next();return}if(n?.error){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}}catch(n){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}},"handleSubmit"),f=o.stepState.values?.company_basic_information||o.initialValues.company_basic_information;return d(s,{defaultValues:f,onSubmit:u})}a(l,"CompanyBasicInformationStep");export{l as a};
2
- //# sourceMappingURL=chunk-ARVKTD3V.js.map
1
+ import{a as s}from"./chunk-U7MAWO3U.js";import{b as m}from"./chunk-76ZDXC2T.js";import{x as i}from"./chunk-NXRWBI36.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function l({onSubmit:c,onSuccess:p,onError:t}){let{createCompanyBag:o}=m(),u=a(async r=>{try{await c?.({countryCode:r.country_code,companyOwnerEmail:r.company_owner_email,companyOwnerName:r.company_owner_name,desiredCurrency:r.desired_currency,name:r.name,phoneNumber:r.phone_number,taxNumber:r.tax_number});let n=await o.onSubmit(r);if(n?.data){await p?.(n?.data),o?.next();return}if(n?.error){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}}catch(n){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}},"handleSubmit"),f=o.stepState.values?.company_basic_information||o.initialValues.company_basic_information;return d(s,{defaultValues:f,onSubmit:u})}a(l,"CompanyBasicInformationStep");export{l as a};
2
+ //# sourceMappingURL=chunk-VMXDQYTT.js.map
@@ -1,2 +1,2 @@
1
- import{a as P,b as k,c as N}from"./chunk-3B6BHFDV.js";import{a as C}from"./chunk-DSGQZDY6.js";import{a as u,b as F}from"./chunk-T5J2Z6ZR.js";import{j as v,k as x,l as b,n as D,o as w}from"./chunk-Y3CJRZLA.js";import{n as a}from"./chunk-G2LZFGZA.js";import{a as n}from"./chunk-P37U34EQ.js";import{CalendarIcon as T}from"lucide-react";import{format as Y}from"date-fns";import{ChevronLeft as O,ChevronRight as V}from"lucide-react";import{DayPicker as B}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function R({className:t,classNames:m,showOutsideDays:c=!0,...r}){return p(B,{showOutsideDays:c,className:a("p-3",t),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:a(u({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:a("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:a(u({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...m},components:{IconLeft:n(({className:l,...o})=>p(O,{className:a("size-4",l),...o}),"IconLeft"),IconRight:n(({className:l,...o})=>p(V,{className:a("size-4",l),...o}),"IconRight")},...r})}n(R,"Calendar");import{useState as $}from"react";import{Fragment as E,jsx as e,jsxs as f}from"react/jsx-runtime";function re({field:t,fieldData:m,fieldState:c}){let{name:r,label:l,description:o,minDate:g,maxDate:y}=m,d=g?new Date(g):void 0,i=y?new Date(y):void 0,[M,_]=$(!1),I=new Date().getFullYear(),h=d?d.getFullYear():1900,L=Math.max(h,i?i.getFullYear():I+10);return f(v,{"data-field":r,className:`flex flex-col RemoteFlows__DatePickerField__Item__${r}`,children:[e(x,{className:"RemoteFlows__DatePickerField__Label",children:l}),f(P,{open:M,onOpenChange:_,children:[e(k,{asChild:!0,children:e(b,{children:e("div",{children:f(F,{type:"button",variant:"outline",className:a("w-full pl-3 text-left font-normal",!t.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${r}`,children:[t.value&&e(E,{children:Y(t.value,"yyyy-MM-dd")}),e(T,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(N,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(R,{mode:"single",captionLayout:"dropdown",fromYear:h,toYear:L,className:"RemoteFlows__DatepickerField__Calendar",selected:t.value?new Date(t.value):void 0,onDayClick:s=>{let z=Y(s,"yyyy-MM-dd");t.onChange(z),_(!1)},defaultMonth:t.value?new Date(t.value):i??d,disabled:s=>!!(d&&s<d||i&&s>i)})})]}),o?e(D,{helpCenter:e(C,{helpCenter:m.meta?.helpCenter}),children:o}):null,c.error&&e(w,{className:"RemoteFlows__DatePickerField__Error"})]})}n(re,"DatePickerFieldDefault");export{re as a};
2
- //# sourceMappingURL=chunk-RFEF2B5D.js.map
1
+ import{a as P,b as k,c as N}from"./chunk-ZHFUFIWX.js";import{a as u,b as F}from"./chunk-BC4V2YAK.js";import{a as C}from"./chunk-MZN6VY5F.js";import{j as v,k as x,l as b,n as D,o as w}from"./chunk-4FGKIGKF.js";import{n as a}from"./chunk-NXRWBI36.js";import{a as n}from"./chunk-P37U34EQ.js";import{CalendarIcon as T}from"lucide-react";import{format as Y}from"date-fns";import{ChevronLeft as O,ChevronRight as V}from"lucide-react";import{DayPicker as B}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function R({className:t,classNames:m,showOutsideDays:c=!0,...r}){return p(B,{showOutsideDays:c,className:a("p-3",t),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:a(u({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:a("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:a(u({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...m},components:{IconLeft:n(({className:l,...o})=>p(O,{className:a("size-4",l),...o}),"IconLeft"),IconRight:n(({className:l,...o})=>p(V,{className:a("size-4",l),...o}),"IconRight")},...r})}n(R,"Calendar");import{useState as $}from"react";import{Fragment as E,jsx as e,jsxs as f}from"react/jsx-runtime";function re({field:t,fieldData:m,fieldState:c}){let{name:r,label:l,description:o,minDate:g,maxDate:y}=m,d=g?new Date(g):void 0,i=y?new Date(y):void 0,[M,_]=$(!1),I=new Date().getFullYear(),h=d?d.getFullYear():1900,L=Math.max(h,i?i.getFullYear():I+10);return f(v,{"data-field":r,className:`flex flex-col RemoteFlows__DatePickerField__Item__${r}`,children:[e(x,{className:"RemoteFlows__DatePickerField__Label",children:l}),f(P,{open:M,onOpenChange:_,children:[e(k,{asChild:!0,children:e(b,{children:e("div",{children:f(F,{type:"button",variant:"outline",className:a("w-full pl-3 text-left font-normal",!t.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${r}`,children:[t.value&&e(E,{children:Y(t.value,"yyyy-MM-dd")}),e(T,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(N,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(R,{mode:"single",captionLayout:"dropdown",fromYear:h,toYear:L,className:"RemoteFlows__DatepickerField__Calendar",selected:t.value?new Date(t.value):void 0,onDayClick:s=>{let z=Y(s,"yyyy-MM-dd");t.onChange(z),_(!1)},defaultMonth:t.value?new Date(t.value):i??d,disabled:s=>!!(d&&s<d||i&&s>i)})})]}),o?e(D,{helpCenter:e(C,{helpCenter:m.meta?.helpCenter}),children:o}):null,c.error&&e(w,{className:"RemoteFlows__DatePickerField__Error"})]})}n(re,"DatePickerFieldDefault");export{re as a};
2
+ //# sourceMappingURL=chunk-VYLSS2C7.js.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-4MI7BMM5.js";import{n as e}from"./chunk-G2LZFGZA.js";import{b as r}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function B({children:u,...t}){let{formId:m,playgroundBag:i}=s(),{components:c}=r(),o=c?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:e("RemoteFlows__JsonSchemaPlayground__ResetButton",t.className),form:m,onClick:l=>{i.handleReset(),t.onClick?.(l)},children:u})}n(B,"JsonSchemaPlaygroundResetButton");export{B as a};
2
- //# sourceMappingURL=chunk-ZFF6E44S.js.map
1
+ import{b as s}from"./chunk-4MI7BMM5.js";import{n as e}from"./chunk-NXRWBI36.js";import{b as r}from"./chunk-H2O4CVKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function B({children:u,...t}){let{formId:m,playgroundBag:i}=s(),{components:c}=r(),o=c?.button;if(!o)throw new Error("Button component not found");return a(o,{...t,type:"reset",className:e("RemoteFlows__JsonSchemaPlayground__ResetButton",t.className),form:m,onClick:l=>{i.handleReset(),t.onClick?.(l)},children:u})}n(B,"JsonSchemaPlaygroundResetButton");export{B as a};
2
+ //# sourceMappingURL=chunk-VZ34NZXF.js.map
@@ -1,2 +1,2 @@
1
- import{n as e}from"./chunk-G2LZFGZA.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as o,jsxs as t}from"react/jsx-runtime";var a=[{label:"Misconduct",description:"The employee is being dismissed due to unacceptable or improper behavior."},{label:"Performance",description:"When dismissing an employee for poor performance, employers are required by law to do so fairly. This means giving the employee reasonable opportunity to improve their performance prior to termination."},{label:"Workforce reduction",description:"The employee\u2019s position is being made redundant, and a layoff is underway."},{label:"Values",description:"The employee is misaligned with the company\u2019s values."},{label:"Compliance issue",description:"Use this option if the employee violated key policies, processes or procedures. For example, they failed to comply with their employment agreement\u2019s confidentiality clause."},{label:"Incapacity to perform inherent duties",description:"Use this option if the employee is physically or mentally unable to fulfill the work requirements of their role."},{label:"Mutual agreement",description:"Employee and employer made a mutual decision to end the relationship."},{label:"Decision to cancel hiring before the employee started",description:"Use this option only if the employee has not started work yet."},{label:"Job abandonment",description:"The employee has failed to appear for work; the Employer has been unsuccessful in establishing communications with the employee and does not know the employee\u2019s whereabouts."},{label:"Dissatisfaction with EOR service",description:t("span",{children:["We\u2019re sorry to see you go. If there is anything we can do to improve or if there is any remaining feedback you want to give us, please reach out to"," ",o("a",{href:"mailto:help@remote.com",target:"_blank",rel:"noopener noreferrer",children:"help@remote.com"}),"."]})},{label:"End of fixed-term contract",description:"Use this option when the employee fixed-term contract is coming to an end and will not be renewed or extended."}],r=n(()=>t(s,{children:[t("h3",{className:e("RemoteFlows__TerminationReasonsDetailContent__Title"),children:[" ","Why is this important?"]}),o("p",{className:e("RemoteFlows__TerminationReasonsDetailContent__Description"),children:"We're here to help you follow all applicable labor laws when terminating an employee. Here are all the legal reasons for termination. Please read them to make sure you enter the correct reason in the platform."}),o("h4",{className:e("RemoteFlows__TerminationReasonsDetailContent__Subtitle"),children:"Termination Reasons"}),o("ul",{className:e("RemoteFlows__TerminationReasonsDetailContent__List list-disc list-inside"),children:a.map(i=>t("li",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItem"),children:[o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemLabel"),children:i.label}),o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemDescription"),children:i.description})]},i.label))})]}),"TerminationReasonsDetailContent");export{r as a};
2
- //# sourceMappingURL=chunk-GF34UO7V.js.map
1
+ import{n as e}from"./chunk-NXRWBI36.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as s,jsx as o,jsxs as t}from"react/jsx-runtime";var a=[{label:"Misconduct",description:"The employee is being dismissed due to unacceptable or improper behavior."},{label:"Performance",description:"When dismissing an employee for poor performance, employers are required by law to do so fairly. This means giving the employee reasonable opportunity to improve their performance prior to termination."},{label:"Workforce reduction",description:"The employee\u2019s position is being made redundant, and a layoff is underway."},{label:"Values",description:"The employee is misaligned with the company\u2019s values."},{label:"Compliance issue",description:"Use this option if the employee violated key policies, processes or procedures. For example, they failed to comply with their employment agreement\u2019s confidentiality clause."},{label:"Incapacity to perform inherent duties",description:"Use this option if the employee is physically or mentally unable to fulfill the work requirements of their role."},{label:"Mutual agreement",description:"Employee and employer made a mutual decision to end the relationship."},{label:"Decision to cancel hiring before the employee started",description:"Use this option only if the employee has not started work yet."},{label:"Job abandonment",description:"The employee has failed to appear for work; the Employer has been unsuccessful in establishing communications with the employee and does not know the employee\u2019s whereabouts."},{label:"Dissatisfaction with EOR service",description:t("span",{children:["We\u2019re sorry to see you go. If there is anything we can do to improve or if there is any remaining feedback you want to give us, please reach out to"," ",o("a",{href:"mailto:help@remote.com",target:"_blank",rel:"noopener noreferrer",children:"help@remote.com"}),"."]})},{label:"End of fixed-term contract",description:"Use this option when the employee fixed-term contract is coming to an end and will not be renewed or extended."}],r=n(()=>t(s,{children:[t("h3",{className:e("RemoteFlows__TerminationReasonsDetailContent__Title"),children:[" ","Why is this important?"]}),o("p",{className:e("RemoteFlows__TerminationReasonsDetailContent__Description"),children:"We're here to help you follow all applicable labor laws when terminating an employee. Here are all the legal reasons for termination. Please read them to make sure you enter the correct reason in the platform."}),o("h4",{className:e("RemoteFlows__TerminationReasonsDetailContent__Subtitle"),children:"Termination Reasons"}),o("ul",{className:e("RemoteFlows__TerminationReasonsDetailContent__List list-disc list-inside"),children:a.map(i=>t("li",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItem"),children:[o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemLabel"),children:i.label}),o("span",{className:e("RemoteFlows__TerminationReasonsDetailContent__ListItemDescription"),children:i.description})]},i.label))})]}),"TerminationReasonsDetailContent");export{r as a};
2
+ //# sourceMappingURL=chunk-W3GEGGZY.js.map
@@ -0,0 +1,2 @@
1
+ import{a as _}from"./chunk-BS2YN6CS.js";import{a as c}from"./chunk-MZN6VY5F.js";import{j as a,k as i,l as s,n,o as F}from"./chunk-4FGKIGKF.js";import{n as p}from"./chunk-NXRWBI36.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as U}from"react/jsx-runtime";function R({field:l,fieldState:C,fieldData:o}){let{name:r,label:d,description:m,multiple:f,accept:u}=o;return U(a,{"data-field":r,className:`RemoteFlows__FileUpload__Item__${r}`,children:[e(i,{className:"RemoteFlows__FileUpload__Label",children:d}),e(s,{children:e(_,{onChange:l.onChange,multiple:f,className:p("RemoteFlows__FileUpload__Input"),accept:u,files:l.value})}),(m||o.meta?.helpCenter)&&e("div",{className:"flex items-center justify-between",children:e(n,{className:"RemoteFlows__FileUpload__Description",helpCenter:e(c,{helpCenter:o.meta?.helpCenter}),children:m})}),C.error&&e(F,{className:"RemoteFlows__FileUpload__Error"})]})}t(R,"FileUploadFieldDefault");export{R as a};
2
+ //# sourceMappingURL=chunk-WJAGRH76.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/form/fields/default/FileUploadFieldDefault.tsx"],"sourcesContent":["import {\n FormControl,\n FormDescription,\n FormItem,\n FormLabel,\n FormMessage,\n} from '@/src/components/ui/form';\nimport { FileUploader } from '@/src/components/ui/file-uploader';\nimport { HelpCenter } from '@/src/components/shared/zendesk-drawer/HelpCenter';\nimport { cn } from '@/src/lib/utils';\nimport { FileComponentProps } from '@/src/types/fields';\n\nexport function FileUploadFieldDefault({\n field,\n fieldState,\n fieldData,\n}: FileComponentProps) {\n const { name, label, description, multiple, accept } = fieldData;\n\n return (\n <FormItem\n data-field={name}\n className={`RemoteFlows__FileUpload__Item__${name}`}\n >\n <FormLabel className='RemoteFlows__FileUpload__Label'>{label}</FormLabel>\n <FormControl>\n <FileUploader\n onChange={field.onChange}\n multiple={multiple}\n className={cn('RemoteFlows__FileUpload__Input')}\n accept={accept}\n files={field.value}\n />\n </FormControl>\n {(description || fieldData.meta?.helpCenter) && (\n <div className='flex items-center justify-between'>\n <FormDescription\n className='RemoteFlows__FileUpload__Description'\n helpCenter={<HelpCenter helpCenter={fieldData.meta?.helpCenter} />}\n >\n {description}\n </FormDescription>\n </div>\n )}\n {fieldState.error && (\n <FormMessage className='RemoteFlows__FileUpload__Error' />\n )}\n </FormItem>\n );\n}\n"],"mappings":"+NAoBI,OAIE,OAAAA,EAJF,QAAAC,MAAA,oBARG,SAASC,EAAuB,CACrC,MAAAC,EACA,WAAAC,EACA,UAAAC,CACF,EAAuB,CACrB,GAAM,CAAE,KAAAC,EAAM,MAAAC,EAAO,YAAAC,EAAa,SAAAC,EAAU,OAAAC,CAAO,EAAIL,EAEvD,OACEJ,EAACU,EAAA,CACC,aAAYL,EACZ,UAAW,kCAAkCA,CAAI,GAEjD,UAAAN,EAACY,EAAA,CAAU,UAAU,iCAAkC,SAAAL,EAAM,EAC7DP,EAACa,EAAA,CACC,SAAAb,EAACc,EAAA,CACC,SAAUX,EAAM,SAChB,SAAUM,EACV,UAAWM,EAAG,gCAAgC,EAC9C,OAAQL,EACR,MAAOP,EAAM,MACf,EACF,GACEK,GAAeH,EAAU,MAAM,aAC/BL,EAAC,OAAI,UAAU,oCACb,SAAAA,EAACgB,EAAA,CACC,UAAU,uCACV,WAAYhB,EAACiB,EAAA,CAAW,WAAYZ,EAAU,MAAM,WAAY,EAE/D,SAAAG,EACH,EACF,EAEDJ,EAAW,OACVJ,EAACkB,EAAA,CAAY,UAAU,iCAAiC,GAE5D,CAEJ,CArCgBC,EAAAjB,EAAA","names":["jsx","jsxs","FileUploadFieldDefault","field","fieldState","fieldData","name","label","description","multiple","accept","FormItem","FormLabel","FormControl","FileUploader","cn","FormDescription","HelpCenter","FormMessage","__name"]}
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-YWLRVUE3.js";import{a}from"./chunk-KTPIKOUV.js";import{b as t}from"./chunk-SS2SYDCB.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function u(n){let{employeeBag:e}=t(),r=a(n);return s(l,{onSubmit:r,defaultValues:{...e.initialValues?.personal_details,...e.stepState.values?.personal_details}})}o(u,"PersonalDetailsStep");export{u as a};
2
- //# sourceMappingURL=chunk-S4JJIDWH.js.map
1
+ import{a as l}from"./chunk-CUM2NKZ4.js";import{a}from"./chunk-X7KIEFEN.js";import{b as t}from"./chunk-SS2SYDCB.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function u(n){let{employeeBag:e}=t(),r=a(n);return s(l,{onSubmit:r,defaultValues:{...e.initialValues?.personal_details,...e.stepState.values?.personal_details}})}o(u,"PersonalDetailsStep");export{u as a};
2
+ //# sourceMappingURL=chunk-WKT6B3XE.js.map
@@ -0,0 +1,2 @@
1
+ import{a as i}from"./chunk-P37U34EQ.js";function c(e={}){let o=[{name:"select_country",label:"Select Country",visible:!!e?.includeSelectCountry},{name:"basic_information",label:"Basic Information",visible:!0},{name:"engagement_agreement_details",label:"Engagement Agreement Details",visible:!!e?.includeEngagementAgreementDetails},{name:"contract_details",label:"Contract Details",visible:!0},{name:"benefits",label:"Benefits",visible:!0},{name:"employment_agreement_preview",label:"Preview Employment Agreement",visible:!!e?.useEAPreview},{name:"review",label:"Review",visible:!0}],a=e.useDynamicSteps?o.map((t,n)=>({name:t.name,index:n,label:t.label,visible:t.visible})):o.filter(t=>t.visible).map((t,n)=>({name:t.name,index:n,label:t.label,visible:t.visible}));return{steps:a.reduce((t,n)=>(t[n.name]={index:n.index,name:n.name,visible:n.visible},t),{}),stepsArray:a}}i(c,"buildSteps");var b=["initiated","invited","created_awaiting_reserve","created_reserve_paid","active"],p=["initiated","created_awaiting_reserve","invited","active"],r=1,l=["FRA","ITA"],u=i(e=>!!(e&&l.includes(e)),"usesJsfV1ContractDetails"),m=i(()=>r,"getDefaultContractDetailsSchemaVersion"),d=i((e,o)=>{let a=e?.jsonSchemaVersionByCountry,s=o?a?.[o]?.contract_details:void 0;return s||m()},"getContractDetailsSchemaVersion"),v=i(e=>e?.jsonSchemaVersion?.employment_basic_information||r,"getBasicInformationSchemaVersion"),g=i(e=>e?.jsonSchemaVersion?.benefit_offers_form_schema||r,"getBenefitOffersSchemaVersion");export{c as a,b,p as c,r as d,u as e,d as f,v as g,g as h};
2
+ //# sourceMappingURL=chunk-X3FRANQS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/Onboarding/utils.ts"],"sourcesContent":["import { Employment, OnboardingFlowProps } from '@/src/flows/Onboarding/types';\nimport { Step } from '@/src/flows/useStepState';\n\nexport type StepKeys =\n | 'select_country'\n | 'basic_information'\n | 'engagement_agreement_details'\n | 'contract_details'\n | 'benefits'\n | 'employment_agreement_preview'\n | 'review';\n\ntype StepConfig = {\n includeSelectCountry?: boolean;\n includeEngagementAgreementDetails?: boolean;\n useDynamicSteps?: boolean;\n useEAPreview?: boolean;\n};\n\nexport function buildSteps(config: StepConfig = {}) {\n const stepDefinitions: Array<{\n name: StepKeys;\n label: string;\n visible: boolean;\n }> = [\n {\n name: 'select_country',\n label: 'Select Country',\n visible: Boolean(config?.includeSelectCountry),\n },\n {\n name: 'basic_information',\n label: 'Basic Information',\n visible: true,\n },\n {\n name: 'engagement_agreement_details',\n label: 'Engagement Agreement Details',\n visible: Boolean(config?.includeEngagementAgreementDetails),\n },\n {\n name: 'contract_details',\n label: 'Contract Details',\n visible: true,\n },\n {\n name: 'benefits',\n label: 'Benefits',\n visible: true,\n },\n {\n name: 'employment_agreement_preview',\n label: 'Preview Employment Agreement',\n visible: Boolean(config?.useEAPreview),\n },\n {\n name: 'review',\n label: 'Review',\n visible: true,\n },\n ];\n\n // When useDynamicSteps is false (default/legacy behavior):\n // - Filter out hidden steps first\n // - Assign sequential indices (0, 1, 2, 3...)\n // - This maintains backwards compatibility with existing implementations\n //\n // When useDynamicSteps is true (new behavior):\n // - Keep all steps including hidden ones\n // - Preserve original indices even for hidden steps\n // - Consumers must filter by `visible` property\n const stepsArray = config.useDynamicSteps\n ? stepDefinitions.map((step, index) => ({\n name: step.name,\n index,\n label: step.label,\n visible: step.visible,\n }))\n : stepDefinitions\n .filter((step) => step.visible)\n .map((step, index) => ({\n name: step.name,\n index,\n label: step.label,\n visible: step.visible,\n }));\n\n const steps = stepsArray.reduce(\n (acc, step) => {\n acc[step.name] = {\n index: step.index,\n name: step.name,\n visible: step.visible,\n };\n return acc;\n },\n {} as Record<string, Step<StepKeys>>,\n );\n\n return { steps, stepsArray };\n}\n\n/**\n * Array of employment statuses that are allowed to proceed to the review step.\n * These statuses indicate that the employment is in a final state and the employment cannot be modified further.\n * @type {Employment['status'][]}\n * @constant\n */\nexport const reviewStepAllowedEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'invited',\n 'created_awaiting_reserve',\n 'created_reserve_paid',\n 'active',\n];\n\nexport const disabledInviteButtonEmploymentStatus: Employment['status'][] = [\n 'initiated',\n 'created_awaiting_reserve',\n 'invited',\n 'active',\n];\n\nexport const DEFAULT_VERSION = 1;\n\n/**\n * Countries whose contract details schema is served as jsfVersion 1.\n * Those forms keep their own field state, so they go through\n * useContractDetailsSchema instead of useJSONSchemaForm.\n * FRA = wage portage, ITA = APL.\n */\nconst JSF_V1_CONTRACT_DETAILS_COUNTRIES = ['FRA', 'ITA'];\n\n/**\n * Checks if a country's contract details schema is served as jsfVersion 1\n *\n * @param countryCode - The country code to check\n */\nexport const usesJsfV1ContractDetails = (countryCode: string | null) =>\n Boolean(\n countryCode && JSF_V1_CONTRACT_DETAILS_COUNTRIES.includes(countryCode),\n );\n\n/**\n * Gets the default (recommended) contract details schema version for a country\n */\nconst getDefaultContractDetailsSchemaVersion = (): number => {\n return DEFAULT_VERSION;\n};\n\n/**\n * Resolves the effective contract details schema version for a country\n *\n * @param options - The flow options containing version configurations\n * @param countryCode - The country code to resolve version for\n * @returns The effective jsonSchemaVersion configuration\n */\nexport const getContractDetailsSchemaVersion = (\n options: OnboardingFlowProps['options'],\n countryCode: string | null,\n) => {\n const jsonSchemaVersionByCountry = options?.jsonSchemaVersionByCountry;\n const countrySpecificVersion = countryCode\n ? jsonSchemaVersionByCountry?.[countryCode]?.contract_details\n : undefined;\n\n const requestedVersion = countrySpecificVersion\n ? countrySpecificVersion\n : getDefaultContractDetailsSchemaVersion();\n\n return requestedVersion;\n};\n\n/**\n * Gets the basic information schema version from options\n * @param options - The flow options containing version configurations\n * @returns The jsonSchemaVersion for basic information or default\n */\nexport const getBasicInformationSchemaVersion = (\n options: OnboardingFlowProps['options'],\n): number | 'latest' => {\n return (\n options?.jsonSchemaVersion?.employment_basic_information || DEFAULT_VERSION\n );\n};\n\n/**\n * Gets the benefit offers schema version from options\n * @param options - The flow options containing version configurations\n * @returns The jsonSchemaVersion for benefit offers or undefined if not set\n */\nexport const getBenefitOffersSchemaVersion = (\n options: OnboardingFlowProps['options'],\n): number | 'latest' => {\n return (\n options?.jsonSchemaVersion?.benefit_offers_form_schema || DEFAULT_VERSION\n );\n};\n"],"mappings":"wCAmBO,SAASA,EAAWC,EAAqB,CAAC,EAAG,CAClD,IAAMC,EAID,CACH,CACE,KAAM,iBACN,MAAO,iBACP,QAAS,EAAQD,GAAQ,oBAC3B,EACA,CACE,KAAM,oBACN,MAAO,oBACP,QAAS,EACX,EACA,CACE,KAAM,+BACN,MAAO,+BACP,QAAS,EAAQA,GAAQ,iCAC3B,EACA,CACE,KAAM,mBACN,MAAO,mBACP,QAAS,EACX,EACA,CACE,KAAM,WACN,MAAO,WACP,QAAS,EACX,EACA,CACE,KAAM,+BACN,MAAO,+BACP,QAAS,EAAQA,GAAQ,YAC3B,EACA,CACE,KAAM,SACN,MAAO,SACP,QAAS,EACX,CACF,EAWME,EAAaF,EAAO,gBACtBC,EAAgB,IAAI,CAACE,EAAMC,KAAW,CACpC,KAAMD,EAAK,KACX,MAAAC,EACA,MAAOD,EAAK,MACZ,QAASA,EAAK,OAChB,EAAE,EACFF,EACG,OAAQE,GAASA,EAAK,OAAO,EAC7B,IAAI,CAACA,EAAMC,KAAW,CACrB,KAAMD,EAAK,KACX,MAAAC,EACA,MAAOD,EAAK,MACZ,QAASA,EAAK,OAChB,EAAE,EAcR,MAAO,CAAE,MAZKD,EAAW,OACvB,CAACG,EAAKF,KACJE,EAAIF,EAAK,IAAI,EAAI,CACf,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,QAASA,EAAK,OAChB,EACOE,GAET,CAAC,CACH,EAEgB,WAAAH,CAAW,CAC7B,CAjFgBI,EAAAP,EAAA,cAyFT,IAAMQ,EAA4D,CACvE,YACA,UACA,2BACA,uBACA,QACF,EAEaC,EAA+D,CAC1E,YACA,2BACA,UACA,QACF,EAEaC,EAAkB,EAQzBC,EAAoC,CAAC,MAAO,KAAK,EAO1CC,EAA2BL,EAACM,GACvC,GACEA,GAAeF,EAAkC,SAASE,CAAW,GAFjC,4BAQlCC,EAAyCP,EAAA,IACtCG,EADsC,0CAWlCK,EAAkCR,EAAA,CAC7CS,EACAH,IACG,CACH,IAAMI,EAA6BD,GAAS,2BACtCE,EAAyBL,EAC3BI,IAA6BJ,CAAW,GAAG,iBAC3C,OAMJ,OAJyBK,GAErBJ,EAAuC,CAG7C,EAd+C,mCAqBlCK,EAAmCZ,EAC9CS,GAGEA,GAAS,mBAAmB,8BAAgCN,EAJhB,oCAanCU,EAAgCb,EAC3CS,GAGEA,GAAS,mBAAmB,4BAA8BN,EAJjB","names":["buildSteps","config","stepDefinitions","stepsArray","step","index","acc","__name","reviewStepAllowedEmploymentStatus","disabledInviteButtonEmploymentStatus","DEFAULT_VERSION","JSF_V1_CONTRACT_DETAILS_COUNTRIES","usesJsfV1ContractDetails","countryCode","getDefaultContractDetailsSchemaVersion","getContractDetailsSchemaVersion","options","jsonSchemaVersionByCountry","countrySpecificVersion","getBasicInformationSchemaVersion","getBenefitOffersSchemaVersion"]}
@@ -1,2 +1,2 @@
1
- import{b as a}from"./chunk-SS2SYDCB.js";import{a as m}from"./chunk-NXSRNOBC.js";import{x as n}from"./chunk-G2LZFGZA.js";import{a as t}from"./chunk-P37U34EQ.js";function y({onSubmit:i,onSuccess:p,onError:s}){let{employeeBag:e}=a();return async(o,l)=>{try{await i?.(o);let r=await e.onSubmit(o);await p?.(r),e.next()}catch(r){if(r instanceof m)return;s?.(n(r,void 0,l))}}}t(y,"useEmployeeStepSubmitHandler");export{y as a};
2
- //# sourceMappingURL=chunk-KTPIKOUV.js.map
1
+ import{b as a}from"./chunk-SS2SYDCB.js";import{a as m}from"./chunk-NXSRNOBC.js";import{x as n}from"./chunk-NXRWBI36.js";import{a as t}from"./chunk-P37U34EQ.js";function y({onSubmit:i,onSuccess:p,onError:s}){let{employeeBag:e}=a();return async(o,l)=>{try{await i?.(o);let r=await e.onSubmit(o);await p?.(r),e.next()}catch(r){if(r instanceof m)return;s?.(n(r,void 0,l))}}}t(y,"useEmployeeStepSubmitHandler");export{y as a};
2
+ //# sourceMappingURL=chunk-X7KIEFEN.js.map
@@ -1,2 +1,2 @@
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-E2463GRM.js";import{a as b,h as S,i as C}from"./chunk-PB6UQ4A4.js";import{a as f,c as v}from"./chunk-J2L3CYIS.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-LS4CLDLI.js.map
1
+ import{a as h}from"./chunk-3UDRMQNE.js";import{a as E}from"./chunk-YDL42SVF.js";import{a as g}from"./chunk-VDRNNOVA.js";import{b as p}from"./chunk-TZIDQ5O3.js";import{a as y}from"./chunk-NW3D7CPK.js";import{d as w}from"./chunk-XZMPAJRL.js";import{a as b,h as S,i as C}from"./chunk-PB6UQ4A4.js";import{a as f,c as v}from"./chunk-INUCPQVI.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-XDRJTAFV.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-TC7EQZJK.js";import{a as r}from"./chunk-NX7MM6XR.js";import{a as t}from"./chunk-ZXGAFQXW.js";import{a}from"./chunk-LMYJ6V44.js";var i={data:{version:7,schema:{additionalProperties:!1,allOf:[...e.data.schema.allOf,...t.data.schema.allOf,...r.data.schema.allOf,...a.data.schema.allOf],properties:{...e.data.schema.properties,...t.data.schema.properties,...r.data.schema.properties,...a.data.schema.properties},required:[...e.data.schema.required,...t.data.schema.required,...r.data.schema.required,...a.data.schema.required],type:"object","x-jsf-order":[...e.data.schema["x-jsf-order"],...t.data.schema["x-jsf-order"],...r.data.schema["x-jsf-order"],...a.data.schema["x-jsf-order"]]}}};export{i as a};
2
- //# sourceMappingURL=chunk-NEKE5PRJ.js.map
1
+ import{a as r}from"./chunk-NX7MM6XR.js";import{a as t}from"./chunk-ZXGAFQXW.js";import{a}from"./chunk-LMYJ6V44.js";import{a as e}from"./chunk-TC7EQZJK.js";var i={data:{version:7,schema:{additionalProperties:!1,allOf:[...e.data.schema.allOf,...t.data.schema.allOf,...r.data.schema.allOf,...a.data.schema.allOf],properties:{...e.data.schema.properties,...t.data.schema.properties,...r.data.schema.properties,...a.data.schema.properties},required:[...e.data.schema.required,...t.data.schema.required,...r.data.schema.required,...a.data.schema.required],type:"object","x-jsf-order":[...e.data.schema["x-jsf-order"],...t.data.schema["x-jsf-order"],...r.data.schema["x-jsf-order"],...a.data.schema["x-jsf-order"]]}}};export{i as a};
2
+ //# sourceMappingURL=chunk-XGECMN4V.js.map