@remoteoss/remote-flows 1.49.0 → 1.49.1

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 (227) hide show
  1. package/dist/{FileUploadFieldDefault-QHOKNCU2.js → FileUploadFieldDefault-K6PF6RP7.js} +2 -2
  2. package/dist/{chunk-KPJ5YKXS.js → chunk-2GTY2DMO.js} +2 -2
  3. package/dist/{chunk-OU2JUD4J.js → chunk-2LSLWFZS.js} +2 -2
  4. package/dist/{chunk-MYO3DIES.js → chunk-3BQVEYHE.js} +2 -2
  5. package/dist/{chunk-YLSASLPB.js → chunk-3LELUHRO.js} +2 -2
  6. package/dist/{chunk-SH35XDFY.js → chunk-3LMZ3SOP.js} +2 -2
  7. package/dist/{chunk-KJCCB44M.js → chunk-3RQSRU7O.js} +2 -2
  8. package/dist/{chunk-MXF3IXNU.js → chunk-4YFJOHSM.js} +2 -2
  9. package/dist/{chunk-GKSG4TTI.js → chunk-5FGYC2RF.js} +2 -2
  10. package/dist/{chunk-X7FILZJH.js → chunk-5FJ64F6D.js} +2 -2
  11. package/dist/{chunk-64C6G646.js → chunk-5J7DLDLW.js} +2 -2
  12. package/dist/{chunk-6THYSEJ7.js → chunk-5WTCN4WO.js} +2 -2
  13. package/dist/{chunk-XTVXWH3Q.js → chunk-7NDAFJXR.js} +2 -2
  14. package/dist/{chunk-V2KDZU2F.js → chunk-7XDU2VWN.js} +2 -2
  15. package/dist/{chunk-AP6MKHTF.js → chunk-A5XRBDDO.js} +2 -2
  16. package/dist/chunk-ALHHN2LG.js +2 -0
  17. package/dist/chunk-ALHHN2LG.js.map +1 -0
  18. package/dist/{chunk-PRFHWAQZ.js → chunk-ANZ2YYUE.js} +2 -2
  19. package/dist/{chunk-5AF5WV3R.js → chunk-B3ESNTKY.js} +2 -2
  20. package/dist/{chunk-RK5ZEDOE.js → chunk-BTZ57COZ.js} +2 -2
  21. package/dist/{chunk-GJJFAGAC.js → chunk-BYTVIOOL.js} +2 -2
  22. package/dist/{chunk-TWLFK7DD.js → chunk-C5T75DEZ.js} +2 -2
  23. package/dist/{chunk-RRZRQAIT.js → chunk-CFPKRLGM.js} +2 -2
  24. package/dist/{chunk-F7ZDULRC.js → chunk-CHIWBD6E.js} +2 -2
  25. package/dist/{chunk-TZRUHUW5.js → chunk-D737GUYZ.js} +2 -2
  26. package/dist/{chunk-CRH5V5JI.js → chunk-DLIVHNTT.js} +2 -2
  27. package/dist/{chunk-X7HD2YL7.js → chunk-EQIWABAZ.js} +2 -2
  28. package/dist/{chunk-ZYDBHR63.js → chunk-EYZVDP6A.js} +2 -2
  29. package/dist/{chunk-I4CKTODX.js → chunk-F2SGCGXL.js} +2 -2
  30. package/dist/{chunk-KX4JZXZV.js → chunk-F3DZUA7W.js} +2 -2
  31. package/dist/{chunk-2HQDOWW2.js → chunk-FB3PEQTO.js} +1 -1
  32. package/dist/chunk-FB3PEQTO.js.map +1 -0
  33. package/dist/{chunk-R4J4TF5F.js → chunk-FGYOG6XG.js} +2 -2
  34. package/dist/{chunk-GM3UWUVL.js → chunk-FT4ZNBTA.js} +2 -2
  35. package/dist/{chunk-OUUH3EQY.js → chunk-G3KQCVQQ.js} +2 -2
  36. package/dist/{chunk-2IL6T6EB.js → chunk-IAR6BWUY.js} +2 -2
  37. package/dist/{chunk-PFNDDLHG.js → chunk-IRUWMZVH.js} +2 -2
  38. package/dist/{chunk-4O5HJBUC.js → chunk-IUBHVGVV.js} +2 -2
  39. package/dist/{chunk-BQNZUM27.js → chunk-J4CHUIPC.js} +2 -2
  40. package/dist/{chunk-5BIMRKQB.js → chunk-JRRPMAUO.js} +2 -2
  41. package/dist/{chunk-SXPBC2FP.js → chunk-K67Q5476.js} +2 -2
  42. package/dist/{chunk-CSXL7LMW.js → chunk-KPDYUFCB.js} +2 -2
  43. package/dist/{chunk-5IRUNNZB.js → chunk-LCUURLXS.js} +2 -2
  44. package/dist/{chunk-D5LOZT54.js → chunk-LCUYP6VW.js} +2 -2
  45. package/dist/{chunk-4ONGXCN3.js → chunk-MZK2U65W.js} +2 -2
  46. package/dist/{chunk-EEZFRK2I.js → chunk-ORP6DY5I.js} +2 -2
  47. package/dist/{chunk-VQVE3QA2.js → chunk-OTBCLDGR.js} +2 -2
  48. package/dist/{chunk-ZAOE2DGD.js → chunk-PJTMFMRJ.js} +2 -2
  49. package/dist/{chunk-B5GH36QL.js → chunk-PNNOU6BC.js} +2 -2
  50. package/dist/{chunk-7GO4BHOI.js → chunk-PYNHR7NL.js} +2 -2
  51. package/dist/chunk-QSBXRKYE.js +2 -0
  52. package/dist/{chunk-4XK4QHOA.js → chunk-R2D32OB6.js} +2 -2
  53. package/dist/{chunk-FORYAPUZ.js → chunk-SNGQ2MKL.js} +2 -2
  54. package/dist/{chunk-LBNS4VT7.js → chunk-SUVBETJS.js} +2 -2
  55. package/dist/{chunk-QYKJU45J.js → chunk-TLJXBZII.js} +2 -2
  56. package/dist/{chunk-HDOEUCXY.js → chunk-U7JAGEOV.js} +2 -2
  57. package/dist/chunk-U7JAGEOV.js.map +1 -0
  58. package/dist/{chunk-LF3FMXGV.js → chunk-UAEQLFPK.js} +2 -2
  59. package/dist/{chunk-CQVOBIXJ.js → chunk-UOJOO2DM.js} +2 -2
  60. package/dist/{chunk-U6SMLAQI.js → chunk-UU2IFOXR.js} +2 -2
  61. package/dist/{chunk-IUY4BDUY.js → chunk-V3C32X6R.js} +2 -2
  62. package/dist/{chunk-TO2GYQR2.js → chunk-VQRE3YLW.js} +2 -2
  63. package/dist/{chunk-J5BG6GTH.js → chunk-VYAJQ25J.js} +2 -2
  64. package/dist/{chunk-6AHENEHD.js → chunk-WB52GW3H.js} +2 -2
  65. package/dist/{chunk-NF2WEMTU.js → chunk-WDPJIOLG.js} +2 -2
  66. package/dist/{chunk-CNSE26GY.js → chunk-WH3QR2W5.js} +2 -2
  67. package/dist/{chunk-UUN3PLDE.js → chunk-WHDUZGVW.js} +2 -2
  68. package/dist/{chunk-MZUPTP2B.js → chunk-WYIU74JN.js} +2 -2
  69. package/dist/{chunk-36GVXD2Z.js → chunk-WZOVZYNI.js} +2 -2
  70. package/dist/{chunk-DSYQY3K6.js → chunk-XTLTKB3S.js} +2 -2
  71. package/dist/{chunk-IF42CZJH.js → chunk-YRC6EEM3.js} +2 -2
  72. package/dist/{chunk-BVMAUJC2.js → chunk-YUUUI4FY.js} +2 -2
  73. package/dist/{chunk-6WO4PRGN.js → chunk-Z7VNXKWB.js} +2 -2
  74. package/dist/{chunk-ZZLLPFLS.js → chunk-ZQVVHVAG.js} +2 -2
  75. package/dist/default-components.js +1 -1
  76. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  77. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  78. package/dist/flows/ContractAmendment/index.js +1 -1
  79. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  80. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  81. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  82. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.js +1 -1
  83. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  84. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  85. package/dist/flows/ContractorOnboarding/components/CreateInvoiceScheduleStep.js +1 -1
  86. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  87. package/dist/flows/ContractorOnboarding/components/InvoiceScheduleStep.js +1 -1
  88. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  89. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  90. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  91. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  92. package/dist/flows/ContractorOnboarding/index.js +1 -1
  93. package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
  94. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  95. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  96. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  97. package/dist/flows/CostCalculator/hooks.js +1 -1
  98. package/dist/flows/CostCalculator/index.js +1 -1
  99. package/dist/flows/CostCalculator/utils.js +1 -1
  100. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  101. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  102. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  103. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  104. package/dist/flows/CreateCompany/index.js +1 -1
  105. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js +1 -1
  106. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js +1 -1
  107. package/dist/flows/JsonSchemaPlayground/index.js +1 -1
  108. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  109. package/dist/flows/Onboarding/api.js +1 -1
  110. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  111. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  112. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  113. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  114. package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.js +1 -1
  115. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  116. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  117. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  118. package/dist/flows/Onboarding/components/PreOnboardingRequirements.js +1 -1
  119. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js +1 -1
  120. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  121. package/dist/flows/Onboarding/hooks.js +1 -1
  122. package/dist/flows/Onboarding/index.js +1 -1
  123. package/dist/flows/Onboarding/utils.js +1 -1
  124. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +1 -1
  125. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js +1 -1
  126. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js +1 -1
  127. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js +1 -1
  128. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js +1 -1
  129. package/dist/flows/PayrollAdminOnboarding/index.js +1 -1
  130. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +1 -1
  131. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js +1 -1
  132. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js +1 -1
  133. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js +1 -1
  134. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js +1 -1
  135. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js +1 -1
  136. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js +1 -1
  137. package/dist/flows/PayrollEmployeeOnboarding/hooks.js +1 -1
  138. package/dist/flows/PayrollEmployeeOnboarding/index.js +1 -1
  139. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  140. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  141. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  142. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  143. package/dist/flows/Termination/TerminationFlow.js +1 -1
  144. package/dist/flows/Termination/TerminationForm.js +1 -1
  145. package/dist/flows/Termination/api.js +1 -1
  146. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  147. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  148. package/dist/flows/Termination/hooks.js +1 -1
  149. package/dist/flows/Termination/index.js +1 -1
  150. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  151. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  152. package/dist/index.js +2 -2
  153. package/dist/internals.js +1 -1
  154. package/package.json +1 -1
  155. package/dist/chunk-2HQDOWW2.js.map +0 -1
  156. package/dist/chunk-7HGU72GB.js +0 -2
  157. package/dist/chunk-7HGU72GB.js.map +0 -1
  158. package/dist/chunk-DN6BXTAC.js +0 -2
  159. package/dist/chunk-HDOEUCXY.js.map +0 -1
  160. /package/dist/{FileUploadFieldDefault-QHOKNCU2.js.map → FileUploadFieldDefault-K6PF6RP7.js.map} +0 -0
  161. /package/dist/{chunk-KPJ5YKXS.js.map → chunk-2GTY2DMO.js.map} +0 -0
  162. /package/dist/{chunk-OU2JUD4J.js.map → chunk-2LSLWFZS.js.map} +0 -0
  163. /package/dist/{chunk-MYO3DIES.js.map → chunk-3BQVEYHE.js.map} +0 -0
  164. /package/dist/{chunk-YLSASLPB.js.map → chunk-3LELUHRO.js.map} +0 -0
  165. /package/dist/{chunk-SH35XDFY.js.map → chunk-3LMZ3SOP.js.map} +0 -0
  166. /package/dist/{chunk-KJCCB44M.js.map → chunk-3RQSRU7O.js.map} +0 -0
  167. /package/dist/{chunk-MXF3IXNU.js.map → chunk-4YFJOHSM.js.map} +0 -0
  168. /package/dist/{chunk-GKSG4TTI.js.map → chunk-5FGYC2RF.js.map} +0 -0
  169. /package/dist/{chunk-X7FILZJH.js.map → chunk-5FJ64F6D.js.map} +0 -0
  170. /package/dist/{chunk-64C6G646.js.map → chunk-5J7DLDLW.js.map} +0 -0
  171. /package/dist/{chunk-6THYSEJ7.js.map → chunk-5WTCN4WO.js.map} +0 -0
  172. /package/dist/{chunk-XTVXWH3Q.js.map → chunk-7NDAFJXR.js.map} +0 -0
  173. /package/dist/{chunk-V2KDZU2F.js.map → chunk-7XDU2VWN.js.map} +0 -0
  174. /package/dist/{chunk-AP6MKHTF.js.map → chunk-A5XRBDDO.js.map} +0 -0
  175. /package/dist/{chunk-PRFHWAQZ.js.map → chunk-ANZ2YYUE.js.map} +0 -0
  176. /package/dist/{chunk-5AF5WV3R.js.map → chunk-B3ESNTKY.js.map} +0 -0
  177. /package/dist/{chunk-RK5ZEDOE.js.map → chunk-BTZ57COZ.js.map} +0 -0
  178. /package/dist/{chunk-GJJFAGAC.js.map → chunk-BYTVIOOL.js.map} +0 -0
  179. /package/dist/{chunk-TWLFK7DD.js.map → chunk-C5T75DEZ.js.map} +0 -0
  180. /package/dist/{chunk-RRZRQAIT.js.map → chunk-CFPKRLGM.js.map} +0 -0
  181. /package/dist/{chunk-F7ZDULRC.js.map → chunk-CHIWBD6E.js.map} +0 -0
  182. /package/dist/{chunk-TZRUHUW5.js.map → chunk-D737GUYZ.js.map} +0 -0
  183. /package/dist/{chunk-CRH5V5JI.js.map → chunk-DLIVHNTT.js.map} +0 -0
  184. /package/dist/{chunk-X7HD2YL7.js.map → chunk-EQIWABAZ.js.map} +0 -0
  185. /package/dist/{chunk-ZYDBHR63.js.map → chunk-EYZVDP6A.js.map} +0 -0
  186. /package/dist/{chunk-I4CKTODX.js.map → chunk-F2SGCGXL.js.map} +0 -0
  187. /package/dist/{chunk-KX4JZXZV.js.map → chunk-F3DZUA7W.js.map} +0 -0
  188. /package/dist/{chunk-R4J4TF5F.js.map → chunk-FGYOG6XG.js.map} +0 -0
  189. /package/dist/{chunk-GM3UWUVL.js.map → chunk-FT4ZNBTA.js.map} +0 -0
  190. /package/dist/{chunk-OUUH3EQY.js.map → chunk-G3KQCVQQ.js.map} +0 -0
  191. /package/dist/{chunk-2IL6T6EB.js.map → chunk-IAR6BWUY.js.map} +0 -0
  192. /package/dist/{chunk-PFNDDLHG.js.map → chunk-IRUWMZVH.js.map} +0 -0
  193. /package/dist/{chunk-4O5HJBUC.js.map → chunk-IUBHVGVV.js.map} +0 -0
  194. /package/dist/{chunk-BQNZUM27.js.map → chunk-J4CHUIPC.js.map} +0 -0
  195. /package/dist/{chunk-5BIMRKQB.js.map → chunk-JRRPMAUO.js.map} +0 -0
  196. /package/dist/{chunk-SXPBC2FP.js.map → chunk-K67Q5476.js.map} +0 -0
  197. /package/dist/{chunk-CSXL7LMW.js.map → chunk-KPDYUFCB.js.map} +0 -0
  198. /package/dist/{chunk-5IRUNNZB.js.map → chunk-LCUURLXS.js.map} +0 -0
  199. /package/dist/{chunk-D5LOZT54.js.map → chunk-LCUYP6VW.js.map} +0 -0
  200. /package/dist/{chunk-4ONGXCN3.js.map → chunk-MZK2U65W.js.map} +0 -0
  201. /package/dist/{chunk-EEZFRK2I.js.map → chunk-ORP6DY5I.js.map} +0 -0
  202. /package/dist/{chunk-VQVE3QA2.js.map → chunk-OTBCLDGR.js.map} +0 -0
  203. /package/dist/{chunk-ZAOE2DGD.js.map → chunk-PJTMFMRJ.js.map} +0 -0
  204. /package/dist/{chunk-B5GH36QL.js.map → chunk-PNNOU6BC.js.map} +0 -0
  205. /package/dist/{chunk-7GO4BHOI.js.map → chunk-PYNHR7NL.js.map} +0 -0
  206. /package/dist/{chunk-DN6BXTAC.js.map → chunk-QSBXRKYE.js.map} +0 -0
  207. /package/dist/{chunk-4XK4QHOA.js.map → chunk-R2D32OB6.js.map} +0 -0
  208. /package/dist/{chunk-FORYAPUZ.js.map → chunk-SNGQ2MKL.js.map} +0 -0
  209. /package/dist/{chunk-LBNS4VT7.js.map → chunk-SUVBETJS.js.map} +0 -0
  210. /package/dist/{chunk-QYKJU45J.js.map → chunk-TLJXBZII.js.map} +0 -0
  211. /package/dist/{chunk-LF3FMXGV.js.map → chunk-UAEQLFPK.js.map} +0 -0
  212. /package/dist/{chunk-CQVOBIXJ.js.map → chunk-UOJOO2DM.js.map} +0 -0
  213. /package/dist/{chunk-U6SMLAQI.js.map → chunk-UU2IFOXR.js.map} +0 -0
  214. /package/dist/{chunk-IUY4BDUY.js.map → chunk-V3C32X6R.js.map} +0 -0
  215. /package/dist/{chunk-TO2GYQR2.js.map → chunk-VQRE3YLW.js.map} +0 -0
  216. /package/dist/{chunk-J5BG6GTH.js.map → chunk-VYAJQ25J.js.map} +0 -0
  217. /package/dist/{chunk-6AHENEHD.js.map → chunk-WB52GW3H.js.map} +0 -0
  218. /package/dist/{chunk-NF2WEMTU.js.map → chunk-WDPJIOLG.js.map} +0 -0
  219. /package/dist/{chunk-CNSE26GY.js.map → chunk-WH3QR2W5.js.map} +0 -0
  220. /package/dist/{chunk-UUN3PLDE.js.map → chunk-WHDUZGVW.js.map} +0 -0
  221. /package/dist/{chunk-MZUPTP2B.js.map → chunk-WYIU74JN.js.map} +0 -0
  222. /package/dist/{chunk-36GVXD2Z.js.map → chunk-WZOVZYNI.js.map} +0 -0
  223. /package/dist/{chunk-DSYQY3K6.js.map → chunk-XTLTKB3S.js.map} +0 -0
  224. /package/dist/{chunk-IF42CZJH.js.map → chunk-YRC6EEM3.js.map} +0 -0
  225. /package/dist/{chunk-BVMAUJC2.js.map → chunk-YUUUI4FY.js.map} +0 -0
  226. /package/dist/{chunk-6WO4PRGN.js.map → chunk-Z7VNXKWB.js.map} +0 -0
  227. /package/dist/{chunk-ZZLLPFLS.js.map → chunk-ZQVVHVAG.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as tn,b as nn,c as rn}from"./chunk-ZZLLPFLS.js";import{A as Xt,B as Yt,C as Zt,D as en,a as ht,b as Ct,c as Ot,d as Ft,e as Dt,f as At,g as Tt,h as Rt,j as kt,k as qt,l as Lt,m as jt,n as xt,o as Bt,p as Nt,q as Qt,r as Jt,s as Ut,t as Kt,u as Gt,v as $t,w as Ht,x as zt,z as Wt}from"./chunk-IXS65MGJ.js";import{a as wt,b as Pt,f as It,g as Et,h as Vt,i as Mt}from"./chunk-7IIQUZTH.js";import{a as N,b as me,c as h,d as St,g as vt}from"./chunk-PB6UQ4A4.js";import{a as yt,b as gt}from"./chunk-POWC7LZN.js";import{f as pt,i as ft,j as _t}from"./chunk-KPJ5YKXS.js";import{Z as mt}from"./chunk-VNMUML3T.js";import{a as lt,b as S,d as ut,h as m,i as v,u as L,v as C}from"./chunk-C4HFMTSB.js";import{a as bt}from"./chunk-M3TA5X2H.js";import{e as dt}from"./chunk-H2O4CVKF.js";import{a as g}from"./chunk-P37U34EQ.js";import{useCallback as an,useEffect as V,useMemo as a,useRef as sn,useState as w}from"react";import cn from"lodash.omit";import{useQuery as bi}from"@tanstack/react-query";var hi=g(()=>{let{client:G}=dt(),{data:Q}=Ot(),f=Ft(Q)?Q?.company?.id??"":"";return bi({queryKey:["legal-entities",f],queryFn:g(()=>mt({client:G,path:{company_id:f},query:{page_size:100}}),"queryFn"),select:g(J=>J.data?.data?.legal_entities,"select"),enabled:!!f})},"useLegalEntities"),on=g(()=>{let{data:G}=hi();return G?.find(Q=>Q.is_default)},"useDefaultLegalEntity");var Si={select_country:null,basic_information:"employment_basic_information",contract_origin:null,invoice_schedule:null,create_invoice_schedule:null,contract_details:null,eligibility_questionnaire:null,pricing_plan:null,contract_preview:null,review:null},vi={employment_basic_information:"basic_information"},ln={remote_contract:"provided_by_remote"},Ci={provided_by_remote:"remote_contract"},Xi=g(({countryCode:G,externalId:Q,employmentId:f,skipSteps:J,options:u,initialValues:s})=>{let un=u?.excludeProducts||[],Pe=sn(u?.onContractReviewed);V(()=>{Pe.current=u?.onContractReviewed},[u?.onContractReviewed]);let[p,Ie]=w(G||null),[r,dn]=w(f),[P,Ee]=w(void 0),oe=sn({select_country:{},basic_information:{},contract_origin:{},invoice_schedule:{},create_invoice_schedule:{},contract_details:{},contract_preview:{},pricing_plan:{},eligibility_questionnaire:{}}),[$,mn]=w(void 0),[Ve,Me]=w(!1),[Oe,pn]=w(!0),[Fe,fn]=w(!0),[De,_n]=w(!0),[j,yn]=w(!1),[Ae,gn]=w(!1),[pe,Te]=w(null),{steps:bn,stepsArray:hn}=a(()=>wt({includeSelectCountry:!J?.includes("select_country"),includeContractOrigin:De,includeInvoiceSchedule:j,includeCreateInvoiceSchedule:Ae,includeEligibilityQuestionnaire:Ve,includeContractDetails:Fe,includeContractPreview:Oe}),[De,j,Ae,Ve,Fe,Oe,J]),{fieldValues:l,stepState:t,setFieldValues:fe,previousStep:Sn,nextStep:vn,goToStep:H,setStepValues:Re}=bt(bn);V(()=>{pe&&(H(pe),Te(null))},[pe,H]);let{data:c,isLoading:Cn,refetch:ke}=yt({employmentId:r,queryParams:{exclude_files:!0}}),{data:ae,refetch:wn}=gt({employmentId:r,enabled:!!r}),Pn=on(),{data:qe}=Yt({options:{queryOptions:{enabled:t.currentStep.name==="review"}}}),{status:x}=c||{},k=x&&It.includes(x),In=x&&!Et.includes(x),En=a(()=>x&&["invited","initiated"].includes(x)?"invited":"not_invited",[x]),Le=ft(),je=_t(p,u),_e=qt(),xe=Ct(),{mutateAsync:Be}=xt(_e,xe,l),Ne=Jt(),Qe=Ut(),Je=Gt(),Ue=Zt(),Ke=en(),{mutateAsyncOrThrow:Vn}=S(je),Ge=At(),$e=kt(),He=Kt(),{mutateAsyncOrThrow:Mn}=S(Le),{mutateAsyncOrThrow:On}=S(_e),{mutateAsyncOrThrow:Fn}=S(Ge),{mutateAsyncOrThrow:ze}=S($e),{mutateAsyncOrThrow:Dn}=S(Ne),{mutateAsyncOrThrow:We}=S(Qe),{mutateAsyncOrThrow:An}=S(He),{mutateAsyncOrThrow:Tn}=S(Je),{mutateAsyncOrThrow:Rn}=S(Ue),{mutateAsyncOrThrow:kn}=S(Ke);f&&c?.country?.code&&!p&&Ie(c.country.code);let{selectCountryForm:U,isLoading:qn,countries:Xe}=Xt({jsfModify:u?.jsfModify?.select_country}),ye=a(()=>Xe?.find(e=>e.value===p),[Xe,p]),Ln=a(()=>ye?.label,[ye]),jn=t.currentStep.name==="pricing_plan"||!!f&&k,{form:M,isLoading:xn,contractorSubscriptions:se,filteredContractorSubscriptions:z,refetch:ge,isEligibilityQuestionnaireBlocked:W}=jt(r,ye,{jsonSchemaVersion:u?.jsonSchemaVersion,queryOptions:{enabled:jn},excludeProducts:un,jsfModify:u?.jsfModify?.pricing_plan}),B=a(()=>!!se?.find(e=>e.product.identifier===h)?.eligibility_questionnaire?.submitted_at,[se]),Ye=a(()=>B?!1:$===h,[B,$]),Ze=c?.contractor_type!=="cor",et=(t.currentStep.name==="contract_origin"?l.contract_origin:void 0)??t.values?.contract_origin?.contract_origin??ae?.contract_origin,Bn=ln[et]??et,K=$===N&&Bn==="provided_by_customer";V(()=>{fn(!K)},[K]),V(()=>{Me(!K&&Ye)},[K,Ye]),V(()=>{pn(!K&&Ze)},[K,Ze]);let ce=a(()=>se?.find(e=>e.product.identifier===h)?.eligibility_questionnaire?.responses,[se]),Nn=Si[t.currentStep.name]||"contractor_basic_information",Qn=vi[Nn],Jn=c?.[Qn]||{},Un=g(({form:e,options:n={},query:o={},jsonSchemaVersion:d})=>{let q=Object.keys(l).length>0?{...s,...t.values?.[t.currentStep.name],...l}:{...s,...Jn};return pt({countryCode:p,form:e,fieldValues:q,query:o,options:{...n,queryOptions:{enabled:n.queryOptions?.enabled??!0}},jsonSchemaVersion:d})},"useJSONSchema"),Kn=!!(p&&(t.currentStep.name==="basic_information"||f)),Gn=!!(p==="GBR"&&f&&t.currentStep.name==="basic_information"),{data:X,isLoading:$n}=Bt(f,{enabled:Gn}),{data:le,isLoading:Hn}=Nt(r,{enabled:!!r});V(()=>{le&&le.length>0&&!P&&Ee(le[0].id)},[le,P]);let{data:I,isLoading:zn}=Un({form:"contractor_basic_information",options:{jsfModify:nn(p,Ln,u),queryOptions:{enabled:Kn}},jsonSchemaVersion:Mt(u)}),Wn=a(()=>Pt(c?.basic_information?.provisional_start_date,l?.service_duration?.provisional_start_date),[c?.basic_information?.provisional_start_date,l?.service_duration?.provisional_start_date]),y=a(()=>{let e={standard:N,plus:me,cor:h};if(l.subscription)return l.subscription;let n=t.values?.pricing_plan?.subscription;if(n&&!W)return n;if(B&&!W)return h;if(W&&B)return N;if(z&&z.length>0)return e[c?.contractor_type]||N},[l,t.values,B,c?.contractor_type,W,z]);V(()=>{y&&y!==$&&mn(y)},[y,$]),V(()=>{_n(!J?.includes("contract_origin")&&y===N)},[J,y]),V(()=>{yn(u?.features?.includes("create_invoice_schedule")??!1)},[u?.features]);let Xn=a(()=>({...ce,...s,...t.values?.eligibility_questionnaire,...l}),[ce,s,t.values?.eligibility_questionnaire,l]),Yn=a(()=>y===h&&t.currentStep.name==="eligibility_questionnaire"||!!f&&k&&y===h,[y,t.currentStep.name,f,k]),{data:O,isLoading:Zn}=Qt({options:{queryOptions:{enabled:Yn},jsfModify:u?.jsfModify?.eligibility_questionnaire},fieldValues:Xn}),ei=!!(p&&t.currentStep.name==="contract_details"||k),{data:E,isLoading:ti}=ht({countryCode:p,fieldValues:l,employmentId:r,options:{queryOptions:{enabled:ei},jsfModify:tn(u?.jsfModify?.contract_details,Wn,y,l,y===h)}}),ni=a(()=>t.currentStep.name==="contract_preview"||!!f&&k,[t.currentStep.name,f,k]),{data:F}=Dt({fieldValues:l,options:{queryOptions:{enabled:ni},jsfModify:rn(u,l)}}),{data:D}=$t({fieldValues:l,options:{jsfModify:u?.jsfModify?.contract_origin}}),A=Ht({enabled:j&&t.currentStep.name==="invoice_schedule",jsfModify:u?.jsfModify?.invoice_schedule}),{data:b,isLoading:ii,refetch:tt}=Wt({employmentId:r,options:{queryOptions:{enabled:j&&!!r&&t.currentStep.name==="invoice_schedule"}}}),{data:T,isLoading:ri}=zt({enabled:j&&t.currentStep.name==="create_invoice_schedule",employmentId:r,jsfModify:u?.jsfModify?.create_invoice_schedule}),{data:be,isLoading:oi,refetch:ai}=Tt({employmentId:r,contractDocumentId:P,options:{queryOptions:{enabled:!!P}}}),{hasCompanySignedContract:si}=Rt({employmentId:r,contractDocumentId:P,options:{queryOptions:{enabled:!!P}}}),i=a(()=>({select_country:U?.fields||[],basic_information:I?.fields||[],contract_origin:D?.fields||[],invoice_schedule:A?.fields||[],create_invoice_schedule:T?.fields||[],pricing_plan:M?.fields||[],eligibility_questionnaire:O?.fields||[],contract_details:E?.fields||[],contract_preview:F?.fields||[],review:[]}),[U?.fields,I?.fields,D?.fields,A?.fields,T?.fields,M?.fields,E?.fields,F?.fields,O?.fields]),ci={select_country:null,basic_information:I?.meta["x-jsf-fieldsets"],contract_origin:null,invoice_schedule:null,create_invoice_schedule:null,pricing_plan:null,contract_details:E?.meta["x-jsf-fieldsets"],eligibility_questionnaire:null,contract_preview:null,review:null},li={select_country:U?.meta?.["x-jsf-presentation"],basic_information:I?.meta?.["x-jsf-presentation"],contract_origin:D?.meta?.["x-jsf-presentation"],invoice_schedule:A?.meta?.["x-jsf-presentation"],create_invoice_schedule:T?.meta?.["x-jsf-presentation"],pricing_plan:M?.meta?.["x-jsf-presentation"],eligibility_questionnaire:O?.meta?.["x-jsf-presentation"],contract_details:E?.meta?.["x-jsf-presentation"],contract_preview:F?.meta?.["x-jsf-presentation"],review:null},{country:ui,basic_information:ue={},contract_details:nt={}}=c||{},it=ui?.code,Y=a(()=>v(i.select_country,{country:p||it||""}),[i.select_country,p,it]),he=a(()=>X?.content?ut(X.content,X.name):null,[X?.content,X?.name]),Z=a(()=>{let e={...s,...ue,ir35:c?.contract_details?.ir_35,nationality_status:c?.contract_details?.nationality,...he&&{ir35_sds_file:[he]}};return v(i.basic_information,e)},[s,ue,c?.contract_details?.ir_35,c?.contract_details?.nationality,he,i.basic_information]),rt=a(()=>{let e={...s,contract_origin:ln[ae?.contract_origin]??ae?.contract_origin};return v(i.contract_origin,e)},[i.contract_origin,s,ae?.contract_origin]),ot=a(()=>{let e={...s,...b&&{invoice_schedule_preference:"schedule"}};return v(i.invoice_schedule,e)},[i.invoice_schedule,s,b]),at=a(()=>{if(b){let n={currency:b.currency,periodicity:b.periodicity,start_date:b.start_date,number:b.number,note:b.note,nr_occurrences:b.nr_occurrences};return b.items?.forEach((o,d)=>{let _=d+1;n[`item_${_}_description`]=o.description,n[`item_${_}_amount`]=o.amount}),v(i.create_invoice_schedule,n)}let e={...s};return v(i.create_invoice_schedule,e)},[i.create_invoice_schedule,s,b]),ee=a(()=>{let n={...{service_duration:{provisional_start_date:ue.provisional_start_date}},...s,...nt};return v(i.contract_details,n)},[i.contract_details,nt,s,ue]),te=a(()=>{let e=be?.contract_document?.signatories?.find(o=>o.type==="company"),n={...s,signature:e?.signature};return v(i.contract_preview,n)},[i.contract_preview,s,be]),ne=a(()=>{let n={...{subscription:y},...s};return v(i.pricing_plan,n)},[i.pricing_plan,s,y]),ie=a(()=>{let e={...s,...ce};return v(i.eligibility_questionnaire,e)},[i.eligibility_questionnaire,s,ce]),di=a(()=>({select_country:Y,basic_information:Z,contract_origin:rt,invoice_schedule:ot,create_invoice_schedule:at,contract_details:ee,contract_preview:te,pricing_plan:ne,eligibility_questionnaire:ie}),[Y,Z,rt,ot,at,ee,te,ne,ie]),Se=!!(f&&k&&t.currentStep.name!=="review"),ve=qn||zn||Cn||ti||xn||oi||$n||Hn||Zn||ri||ii,st=a(()=>{let n=c?.contractor_type==="cor"||i.contract_preview.length>0;return!!(Se&&!ve&&P&&i.basic_information.length>0&&i.contract_details.length>0&&n)},[Se,ve,P,i.basic_information.length,i.contract_details.length,i.contract_preview.length,c?.contractor_type]);V(()=>{st&&(oe.current={select_country:L(Y,i.select_country,{skipMoneyConversion:!0}),basic_information:L(Z,i.basic_information,{skipMoneyConversion:!0}),contract_origin:{},invoice_schedule:{},create_invoice_schedule:{},contract_details:L(ee,i.contract_details,{skipMoneyConversion:!0}),contract_preview:L(te,i.contract_preview,{skipMoneyConversion:!0}),pricing_plan:L(ne,i.pricing_plan,{skipMoneyConversion:!0}),eligibility_questionnaire:L(ie,i.eligibility_questionnaire,{skipMoneyConversion:!0})},Re({select_country:Y,basic_information:Z,contract_origin:{},invoice_schedule:{},create_invoice_schedule:{},contract_details:ee,contract_preview:te,pricing_plan:ne,eligibility_questionnaire:ie,review:{}}),H("review"))},[st,H,Y,Z,ee,Re,i.select_country,i.basic_information,i.contract_details,i.pricing_plan,ne,i.contract_preview,te,i.eligibility_questionnaire,ie]);let mi=g(e=>{H(e)},"goTo"),ct=g(async e=>U&&t.currentStep.name==="select_country"?e:I&&t.currentStep.name==="basic_information"?await m(e,I?.fields,{isPartialValidation:!1}):E&&t.currentStep.name==="contract_details"?await m(e,E?.fields,{isPartialValidation:!1}):F&&t.currentStep.name==="contract_preview"?await m(e,F?.fields,{isPartialValidation:!1}):M&&t.currentStep.name==="pricing_plan"?await m(e,M?.fields,{isPartialValidation:!1}):O&&t.currentStep.name==="eligibility_questionnaire"?await m(e,O?.fields,{isPartialValidation:!1}):D&&t.currentStep.name==="contract_origin"?await m(e,D?.fields,{isPartialValidation:!1}):A&&t.currentStep.name==="invoice_schedule"?await m(e,A?.fields,{isPartialValidation:!1}):T&&t.currentStep.name==="create_invoice_schedule"?await m(e,T?.fields,{isPartialValidation:!1}):{},"parseFormValues"),pi=g(e=>{if(!lt(e))return null;let n=e.normalizedErrors.services_and_deliverables,o=Array.isArray(n)?n[0]:n;return o?.source===vt?{error:o.error,source:o.source,skippable:o.skippable}:null},"extractAiValidationError");async function fi(e){let n=t.currentStep.name,o=await ct(e);switch(n in oe.current&&(oe.current[n]=L(o,i[n])),t.currentStep.name){case"select_country":return Ie(o.country),Promise.resolve({data:{countryCode:o.country}});case"basic_information":{let d=!r&&p,_=r&&p&&c?.country&&c?.country.code!==p;if(d||_){let we={basic_information:cn(o,"nationality_status","ir35","ir35_sds_file"),type:"contractor",country_code:p,external_id:Q},de=await Mn(we),R=de?.data?.employment?.id;if(!R)throw C("Employment ID not found");return await Be({employmentId:R}),dn(R),de}else if(r){let q=cn(o,"nationality_status","ir35","ir35_sds_file");return await Be({employmentId:r}),Vn({employmentId:r,basic_information:q})}return}case"contract_details":{let{services_and_deliverables_ai_warning:d,services_and_deliverables_error_skippable:_,...q}=o,we=l.services_and_deliverables_error_skippable===!0,de={contract_document:q,skip_ai_checks:we};try{let R=await On({employmentId:r,payload:de}),re=R?.data?.contract_document?.id;if(!re)throw C("Contract document ID not found");return Ee(re),R}catch(R){let re=pi(R);throw re&&fe({...e,services_and_deliverables_ai_warning:Vt(y===h),services_and_deliverables_error_skippable:re.skippable}),R}}case"contract_preview":{if(si)return Promise.resolve({data:{contract_document:{id:P}}});let d=await Fn({employmentId:r,contractDocumentId:P,payload:{signature:o.signature}});return await ai(),d}case"pricing_plan":{if(e.subscription===St)return Promise.resolve({data:{subscription:e.subscription}});if(z.length===0)throw C("No available subscriptions.");if(!e.subscription&&z.length>0)throw C("Please select a subscription plan.");if(W&&[h,me].includes(e.subscription))throw C(`This individual is not eligible for ${Lt[e.subscription]}.`);if(B&&e.subscription!==h)try{await An({employmentId:r}),await ge()}catch(_){if(_?.response?.status!==404)throw _;await ge()}if(e.subscription==N)return ze({employmentId:r,payload:{operation:"downgrade"}});if(e.subscription==me)return ze({employmentId:r,payload:{operation:"upgrade"}});if(e.subscription==h)return B&&c?.contractor_type!=="cor"?We({employmentId:r}):Promise.resolve({data:{subscription:e.subscription}});throw C("invalid selection")}case"contract_origin":{let d=Ci[o.contract_origin]??o.contract_origin,_=o.contract_origin==="provided_by_customer"?"contractor_agreement":"contractor_services_agreement";return await Tn({employmentId:r,contractOrigin:d,templateType:_}),await wn(),{data:{contractOrigin:e.contract_origin}}}case"invoice_schedule":{let d=e.invoice_schedule_preference==="schedule";return gn(d),{data:{invoiceSchedulePreference:e.invoice_schedule_preference}}}case"create_invoice_schedule":{if(!r)throw C("Employment ID is required");if(b?.id){let q=await kn({scheduleId:b.id,values:o});return await tt(),q}let d=await Rn({employmentId:r,values:o}),_=d?.data?.failures;if(_&&_.length>0)throw C("Failed to create invoice schedule");return await tt(),d}case"eligibility_questionnaire":try{if((await Dn({employmentId:r,payload:o}))?.data?.is_blocking)throw Me(!1),Te("pricing_plan"),C("This individual is not eligible for Contractor of Record.");return await We({employmentId:r})}finally{await ge()}default:throw C("Invalid step state")}}g(fi,"onSubmit");let _i=g(()=>{Pe.current?.()},"markContractAsReviewed"),yi=g(()=>{r&&ke(),vn()},"handleNextStep"),Ce=an(async e=>{if(t.currentStep.name==="select_country")return U.handleValidation(e);if(I&&t.currentStep.name==="basic_information"){let n=await m(e,I?.fields,{isPartialValidation:!1});return I?.handleValidation(n)}if(E&&t.currentStep.name==="contract_details"){let n=await m(e,E?.fields,{isPartialValidation:!1});return E?.handleValidation(n)}if(F&&t.currentStep.name==="contract_preview"){let n=await m(e,F?.fields,{isPartialValidation:!0});return F?.handleValidation(n)}if(M&&t.currentStep.name==="pricing_plan"){let n=await m(e,M?.fields,{isPartialValidation:!1});return M?.handleValidation(n)}if(O&&t.currentStep.name==="eligibility_questionnaire"){let n=await m(e,O?.fields,{isPartialValidation:!1});return O?.handleValidation(n)}if(D&&t.currentStep.name==="contract_origin"){let n=await m(e,D?.fields,{isPartialValidation:!1});return D?.handleValidation(n)}if(A&&t.currentStep.name==="invoice_schedule"){let n=await m(e,A?.fields,{isPartialValidation:!1});return A?.handleValidation(n)}if(T&&t.currentStep.name==="create_invoice_schedule"){let n=await m(e,T?.fields,{isPartialValidation:!1});return T?.handleValidation(n)}return null},[t.currentStep.name,U,I,E,F,M,O,D,A,T]),gi=an(async e=>{fe(e),j&&["invoice_schedule","create_invoice_schedule"].includes(t.currentStep.name)&&await Ce(e)},[fe,j,t,Ce]);return{isLoading:ve||Se,fieldValues:l,stepState:t,checkFieldUpdates:gi,markContractAsReviewed:_i,back:Sn,next:yi,goTo:mi,onSubmit:fi,fields:i[t.currentStep.name],meta:{fields:oe.current,fieldsets:ci[t.currentStep.name],presentation:li[t.currentStep.name]},parseFormValues:ct,canSkipAiValidation:l.services_and_deliverables_error_skippable===!0,handleValidation:Ce,initialValues:di,employmentId:r,refetchEmployment:ke,isSubmitting:Le.isPending||je.isPending||_e.isPending||Ge.isPending||$e.isPending||xe.isPending||Ne.isPending||Qe.isPending||He.isPending||Je.isPending||Ue.isPending||Ke.isPending,documentPreviewPdf:be,canInvite:In,isEmploymentReadOnly:k,invitedStatus:En,employment:c,defaultLegalEntity:Pn,needsCompanyVerification:qe?.some(e=>e.type==="verify_company")??!1,needsRemotePaymentsSetup:qe?.some(e=>e.type==="setup_remote_payments")??!1,steps:hn}},"useContractorOnboarding");export{Xi as a};
2
- //# sourceMappingURL=chunk-CQVOBIXJ.js.map
1
+ import{a as tn,b as nn,c as rn}from"./chunk-ZQVVHVAG.js";import{A as Xt,B as Yt,C as Zt,D as en,a as ht,b as Ct,c as Ot,d as Ft,e as Dt,f as At,g as Tt,h as Rt,j as kt,k as qt,l as Lt,m as jt,n as xt,o as Bt,p as Nt,q as Qt,r as Jt,s as Ut,t as Kt,u as Gt,v as $t,w as Ht,x as zt,z as Wt}from"./chunk-IXS65MGJ.js";import{a as wt,b as Pt,f as It,g as Et,h as Vt,i as Mt}from"./chunk-7IIQUZTH.js";import{a as N,b as me,c as h,d as St,g as vt}from"./chunk-PB6UQ4A4.js";import{a as yt,b as gt}from"./chunk-POWC7LZN.js";import{f as pt,i as ft,j as _t}from"./chunk-2GTY2DMO.js";import{Z as mt}from"./chunk-VNMUML3T.js";import{a as lt,b as S,d as ut,h as m,i as v,u as L,v as C}from"./chunk-C4HFMTSB.js";import{a as bt}from"./chunk-M3TA5X2H.js";import{e as dt}from"./chunk-H2O4CVKF.js";import{a as g}from"./chunk-P37U34EQ.js";import{useCallback as an,useEffect as V,useMemo as a,useRef as sn,useState as w}from"react";import cn from"lodash.omit";import{useQuery as bi}from"@tanstack/react-query";var hi=g(()=>{let{client:G}=dt(),{data:Q}=Ot(),f=Ft(Q)?Q?.company?.id??"":"";return bi({queryKey:["legal-entities",f],queryFn:g(()=>mt({client:G,path:{company_id:f},query:{page_size:100}}),"queryFn"),select:g(J=>J.data?.data?.legal_entities,"select"),enabled:!!f})},"useLegalEntities"),on=g(()=>{let{data:G}=hi();return G?.find(Q=>Q.is_default)},"useDefaultLegalEntity");var Si={select_country:null,basic_information:"employment_basic_information",contract_origin:null,invoice_schedule:null,create_invoice_schedule:null,contract_details:null,eligibility_questionnaire:null,pricing_plan:null,contract_preview:null,review:null},vi={employment_basic_information:"basic_information"},ln={remote_contract:"provided_by_remote"},Ci={provided_by_remote:"remote_contract"},Xi=g(({countryCode:G,externalId:Q,employmentId:f,skipSteps:J,options:u,initialValues:s})=>{let un=u?.excludeProducts||[],Pe=sn(u?.onContractReviewed);V(()=>{Pe.current=u?.onContractReviewed},[u?.onContractReviewed]);let[p,Ie]=w(G||null),[r,dn]=w(f),[P,Ee]=w(void 0),oe=sn({select_country:{},basic_information:{},contract_origin:{},invoice_schedule:{},create_invoice_schedule:{},contract_details:{},contract_preview:{},pricing_plan:{},eligibility_questionnaire:{}}),[$,mn]=w(void 0),[Ve,Me]=w(!1),[Oe,pn]=w(!0),[Fe,fn]=w(!0),[De,_n]=w(!0),[j,yn]=w(!1),[Ae,gn]=w(!1),[pe,Te]=w(null),{steps:bn,stepsArray:hn}=a(()=>wt({includeSelectCountry:!J?.includes("select_country"),includeContractOrigin:De,includeInvoiceSchedule:j,includeCreateInvoiceSchedule:Ae,includeEligibilityQuestionnaire:Ve,includeContractDetails:Fe,includeContractPreview:Oe}),[De,j,Ae,Ve,Fe,Oe,J]),{fieldValues:l,stepState:t,setFieldValues:fe,previousStep:Sn,nextStep:vn,goToStep:H,setStepValues:Re}=bt(bn);V(()=>{pe&&(H(pe),Te(null))},[pe,H]);let{data:c,isLoading:Cn,refetch:ke}=yt({employmentId:r,queryParams:{exclude_files:!0}}),{data:ae,refetch:wn}=gt({employmentId:r,enabled:!!r}),Pn=on(),{data:qe}=Yt({options:{queryOptions:{enabled:t.currentStep.name==="review"}}}),{status:x}=c||{},k=x&&It.includes(x),In=x&&!Et.includes(x),En=a(()=>x&&["invited","initiated"].includes(x)?"invited":"not_invited",[x]),Le=ft(),je=_t(p,u),_e=qt(),xe=Ct(),{mutateAsync:Be}=xt(_e,xe,l),Ne=Jt(),Qe=Ut(),Je=Gt(),Ue=Zt(),Ke=en(),{mutateAsyncOrThrow:Vn}=S(je),Ge=At(),$e=kt(),He=Kt(),{mutateAsyncOrThrow:Mn}=S(Le),{mutateAsyncOrThrow:On}=S(_e),{mutateAsyncOrThrow:Fn}=S(Ge),{mutateAsyncOrThrow:ze}=S($e),{mutateAsyncOrThrow:Dn}=S(Ne),{mutateAsyncOrThrow:We}=S(Qe),{mutateAsyncOrThrow:An}=S(He),{mutateAsyncOrThrow:Tn}=S(Je),{mutateAsyncOrThrow:Rn}=S(Ue),{mutateAsyncOrThrow:kn}=S(Ke);f&&c?.country?.code&&!p&&Ie(c.country.code);let{selectCountryForm:U,isLoading:qn,countries:Xe}=Xt({jsfModify:u?.jsfModify?.select_country}),ye=a(()=>Xe?.find(e=>e.value===p),[Xe,p]),Ln=a(()=>ye?.label,[ye]),jn=t.currentStep.name==="pricing_plan"||!!f&&k,{form:M,isLoading:xn,contractorSubscriptions:se,filteredContractorSubscriptions:z,refetch:ge,isEligibilityQuestionnaireBlocked:W}=jt(r,ye,{jsonSchemaVersion:u?.jsonSchemaVersion,queryOptions:{enabled:jn},excludeProducts:un,jsfModify:u?.jsfModify?.pricing_plan}),B=a(()=>!!se?.find(e=>e.product.identifier===h)?.eligibility_questionnaire?.submitted_at,[se]),Ye=a(()=>B?!1:$===h,[B,$]),Ze=c?.contractor_type!=="cor",et=(t.currentStep.name==="contract_origin"?l.contract_origin:void 0)??t.values?.contract_origin?.contract_origin??ae?.contract_origin,Bn=ln[et]??et,K=$===N&&Bn==="provided_by_customer";V(()=>{fn(!K)},[K]),V(()=>{Me(!K&&Ye)},[K,Ye]),V(()=>{pn(!K&&Ze)},[K,Ze]);let ce=a(()=>se?.find(e=>e.product.identifier===h)?.eligibility_questionnaire?.responses,[se]),Nn=Si[t.currentStep.name]||"contractor_basic_information",Qn=vi[Nn],Jn=c?.[Qn]||{},Un=g(({form:e,options:n={},query:o={},jsonSchemaVersion:d})=>{let q=Object.keys(l).length>0?{...s,...t.values?.[t.currentStep.name],...l}:{...s,...Jn};return pt({countryCode:p,form:e,fieldValues:q,query:o,options:{...n,queryOptions:{enabled:n.queryOptions?.enabled??!0}},jsonSchemaVersion:d})},"useJSONSchema"),Kn=!!(p&&(t.currentStep.name==="basic_information"||f)),Gn=!!(p==="GBR"&&f&&t.currentStep.name==="basic_information"),{data:X,isLoading:$n}=Bt(f,{enabled:Gn}),{data:le,isLoading:Hn}=Nt(r,{enabled:!!r});V(()=>{le&&le.length>0&&!P&&Ee(le[0].id)},[le,P]);let{data:I,isLoading:zn}=Un({form:"contractor_basic_information",options:{jsfModify:nn(p,Ln,u),queryOptions:{enabled:Kn}},jsonSchemaVersion:Mt(u)}),Wn=a(()=>Pt(c?.basic_information?.provisional_start_date,l?.service_duration?.provisional_start_date),[c?.basic_information?.provisional_start_date,l?.service_duration?.provisional_start_date]),y=a(()=>{let e={standard:N,plus:me,cor:h};if(l.subscription)return l.subscription;let n=t.values?.pricing_plan?.subscription;if(n&&!W)return n;if(B&&!W)return h;if(W&&B)return N;if(z&&z.length>0)return e[c?.contractor_type]||N},[l,t.values,B,c?.contractor_type,W,z]);V(()=>{y&&y!==$&&mn(y)},[y,$]),V(()=>{_n(!J?.includes("contract_origin")&&y===N)},[J,y]),V(()=>{yn(u?.features?.includes("create_invoice_schedule")??!1)},[u?.features]);let Xn=a(()=>({...ce,...s,...t.values?.eligibility_questionnaire,...l}),[ce,s,t.values?.eligibility_questionnaire,l]),Yn=a(()=>y===h&&t.currentStep.name==="eligibility_questionnaire"||!!f&&k&&y===h,[y,t.currentStep.name,f,k]),{data:O,isLoading:Zn}=Qt({options:{queryOptions:{enabled:Yn},jsfModify:u?.jsfModify?.eligibility_questionnaire},fieldValues:Xn}),ei=!!(p&&t.currentStep.name==="contract_details"||k),{data:E,isLoading:ti}=ht({countryCode:p,fieldValues:l,employmentId:r,options:{queryOptions:{enabled:ei},jsfModify:tn(u?.jsfModify?.contract_details,Wn,y,l,y===h)}}),ni=a(()=>t.currentStep.name==="contract_preview"||!!f&&k,[t.currentStep.name,f,k]),{data:F}=Dt({fieldValues:l,options:{queryOptions:{enabled:ni},jsfModify:rn(u,l)}}),{data:D}=$t({fieldValues:l,options:{jsfModify:u?.jsfModify?.contract_origin}}),A=Ht({enabled:j&&t.currentStep.name==="invoice_schedule",jsfModify:u?.jsfModify?.invoice_schedule}),{data:b,isLoading:ii,refetch:tt}=Wt({employmentId:r,options:{queryOptions:{enabled:j&&!!r&&t.currentStep.name==="invoice_schedule"}}}),{data:T,isLoading:ri}=zt({enabled:j&&t.currentStep.name==="create_invoice_schedule",employmentId:r,jsfModify:u?.jsfModify?.create_invoice_schedule}),{data:be,isLoading:oi,refetch:ai}=Tt({employmentId:r,contractDocumentId:P,options:{queryOptions:{enabled:!!P}}}),{hasCompanySignedContract:si}=Rt({employmentId:r,contractDocumentId:P,options:{queryOptions:{enabled:!!P}}}),i=a(()=>({select_country:U?.fields||[],basic_information:I?.fields||[],contract_origin:D?.fields||[],invoice_schedule:A?.fields||[],create_invoice_schedule:T?.fields||[],pricing_plan:M?.fields||[],eligibility_questionnaire:O?.fields||[],contract_details:E?.fields||[],contract_preview:F?.fields||[],review:[]}),[U?.fields,I?.fields,D?.fields,A?.fields,T?.fields,M?.fields,E?.fields,F?.fields,O?.fields]),ci={select_country:null,basic_information:I?.meta["x-jsf-fieldsets"],contract_origin:null,invoice_schedule:null,create_invoice_schedule:null,pricing_plan:null,contract_details:E?.meta["x-jsf-fieldsets"],eligibility_questionnaire:null,contract_preview:null,review:null},li={select_country:U?.meta?.["x-jsf-presentation"],basic_information:I?.meta?.["x-jsf-presentation"],contract_origin:D?.meta?.["x-jsf-presentation"],invoice_schedule:A?.meta?.["x-jsf-presentation"],create_invoice_schedule:T?.meta?.["x-jsf-presentation"],pricing_plan:M?.meta?.["x-jsf-presentation"],eligibility_questionnaire:O?.meta?.["x-jsf-presentation"],contract_details:E?.meta?.["x-jsf-presentation"],contract_preview:F?.meta?.["x-jsf-presentation"],review:null},{country:ui,basic_information:ue={},contract_details:nt={}}=c||{},it=ui?.code,Y=a(()=>v(i.select_country,{country:p||it||""}),[i.select_country,p,it]),he=a(()=>X?.content?ut(X.content,X.name):null,[X?.content,X?.name]),Z=a(()=>{let e={...s,...ue,ir35:c?.contract_details?.ir_35,nationality_status:c?.contract_details?.nationality,...he&&{ir35_sds_file:[he]}};return v(i.basic_information,e)},[s,ue,c?.contract_details?.ir_35,c?.contract_details?.nationality,he,i.basic_information]),rt=a(()=>{let e={...s,contract_origin:ln[ae?.contract_origin]??ae?.contract_origin};return v(i.contract_origin,e)},[i.contract_origin,s,ae?.contract_origin]),ot=a(()=>{let e={...s,...b&&{invoice_schedule_preference:"schedule"}};return v(i.invoice_schedule,e)},[i.invoice_schedule,s,b]),at=a(()=>{if(b){let n={currency:b.currency,periodicity:b.periodicity,start_date:b.start_date,number:b.number,note:b.note,nr_occurrences:b.nr_occurrences};return b.items?.forEach((o,d)=>{let _=d+1;n[`item_${_}_description`]=o.description,n[`item_${_}_amount`]=o.amount}),v(i.create_invoice_schedule,n)}let e={...s};return v(i.create_invoice_schedule,e)},[i.create_invoice_schedule,s,b]),ee=a(()=>{let n={...{service_duration:{provisional_start_date:ue.provisional_start_date}},...s,...nt};return v(i.contract_details,n)},[i.contract_details,nt,s,ue]),te=a(()=>{let e=be?.contract_document?.signatories?.find(o=>o.type==="company"),n={...s,signature:e?.signature};return v(i.contract_preview,n)},[i.contract_preview,s,be]),ne=a(()=>{let n={...{subscription:y},...s};return v(i.pricing_plan,n)},[i.pricing_plan,s,y]),ie=a(()=>{let e={...s,...ce};return v(i.eligibility_questionnaire,e)},[i.eligibility_questionnaire,s,ce]),di=a(()=>({select_country:Y,basic_information:Z,contract_origin:rt,invoice_schedule:ot,create_invoice_schedule:at,contract_details:ee,contract_preview:te,pricing_plan:ne,eligibility_questionnaire:ie}),[Y,Z,rt,ot,at,ee,te,ne,ie]),Se=!!(f&&k&&t.currentStep.name!=="review"),ve=qn||zn||Cn||ti||xn||oi||$n||Hn||Zn||ri||ii,st=a(()=>{let n=c?.contractor_type==="cor"||i.contract_preview.length>0;return!!(Se&&!ve&&P&&i.basic_information.length>0&&i.contract_details.length>0&&n)},[Se,ve,P,i.basic_information.length,i.contract_details.length,i.contract_preview.length,c?.contractor_type]);V(()=>{st&&(oe.current={select_country:L(Y,i.select_country,{skipMoneyConversion:!0}),basic_information:L(Z,i.basic_information,{skipMoneyConversion:!0}),contract_origin:{},invoice_schedule:{},create_invoice_schedule:{},contract_details:L(ee,i.contract_details,{skipMoneyConversion:!0}),contract_preview:L(te,i.contract_preview,{skipMoneyConversion:!0}),pricing_plan:L(ne,i.pricing_plan,{skipMoneyConversion:!0}),eligibility_questionnaire:L(ie,i.eligibility_questionnaire,{skipMoneyConversion:!0})},Re({select_country:Y,basic_information:Z,contract_origin:{},invoice_schedule:{},create_invoice_schedule:{},contract_details:ee,contract_preview:te,pricing_plan:ne,eligibility_questionnaire:ie,review:{}}),H("review"))},[st,H,Y,Z,ee,Re,i.select_country,i.basic_information,i.contract_details,i.pricing_plan,ne,i.contract_preview,te,i.eligibility_questionnaire,ie]);let mi=g(e=>{H(e)},"goTo"),ct=g(async e=>U&&t.currentStep.name==="select_country"?e:I&&t.currentStep.name==="basic_information"?await m(e,I?.fields,{isPartialValidation:!1}):E&&t.currentStep.name==="contract_details"?await m(e,E?.fields,{isPartialValidation:!1}):F&&t.currentStep.name==="contract_preview"?await m(e,F?.fields,{isPartialValidation:!1}):M&&t.currentStep.name==="pricing_plan"?await m(e,M?.fields,{isPartialValidation:!1}):O&&t.currentStep.name==="eligibility_questionnaire"?await m(e,O?.fields,{isPartialValidation:!1}):D&&t.currentStep.name==="contract_origin"?await m(e,D?.fields,{isPartialValidation:!1}):A&&t.currentStep.name==="invoice_schedule"?await m(e,A?.fields,{isPartialValidation:!1}):T&&t.currentStep.name==="create_invoice_schedule"?await m(e,T?.fields,{isPartialValidation:!1}):{},"parseFormValues"),pi=g(e=>{if(!lt(e))return null;let n=e.normalizedErrors.services_and_deliverables,o=Array.isArray(n)?n[0]:n;return o?.source===vt?{error:o.error,source:o.source,skippable:o.skippable}:null},"extractAiValidationError");async function fi(e){let n=t.currentStep.name,o=await ct(e);switch(n in oe.current&&(oe.current[n]=L(o,i[n])),t.currentStep.name){case"select_country":return Ie(o.country),Promise.resolve({data:{countryCode:o.country}});case"basic_information":{let d=!r&&p,_=r&&p&&c?.country&&c?.country.code!==p;if(d||_){let we={basic_information:cn(o,"nationality_status","ir35","ir35_sds_file"),type:"contractor",country_code:p,external_id:Q},de=await Mn(we),R=de?.data?.employment?.id;if(!R)throw C("Employment ID not found");return await Be({employmentId:R}),dn(R),de}else if(r){let q=cn(o,"nationality_status","ir35","ir35_sds_file");return await Be({employmentId:r}),Vn({employmentId:r,basic_information:q})}return}case"contract_details":{let{services_and_deliverables_ai_warning:d,services_and_deliverables_error_skippable:_,...q}=o,we=l.services_and_deliverables_error_skippable===!0,de={contract_document:q,skip_ai_checks:we};try{let R=await On({employmentId:r,payload:de}),re=R?.data?.contract_document?.id;if(!re)throw C("Contract document ID not found");return Ee(re),R}catch(R){let re=pi(R);throw re&&fe({...e,services_and_deliverables_ai_warning:Vt(y===h),services_and_deliverables_error_skippable:re.skippable}),R}}case"contract_preview":{if(si)return Promise.resolve({data:{contract_document:{id:P}}});let d=await Fn({employmentId:r,contractDocumentId:P,payload:{signature:o.signature}});return await ai(),d}case"pricing_plan":{if(e.subscription===St)return Promise.resolve({data:{subscription:e.subscription}});if(z.length===0)throw C("No available subscriptions.");if(!e.subscription&&z.length>0)throw C("Please select a subscription plan.");if(W&&[h,me].includes(e.subscription))throw C(`This individual is not eligible for ${Lt[e.subscription]}.`);if(B&&e.subscription!==h)try{await An({employmentId:r}),await ge()}catch(_){if(_?.response?.status!==404)throw _;await ge()}if(e.subscription==N)return ze({employmentId:r,payload:{operation:"downgrade"}});if(e.subscription==me)return ze({employmentId:r,payload:{operation:"upgrade"}});if(e.subscription==h)return B&&c?.contractor_type!=="cor"?We({employmentId:r}):Promise.resolve({data:{subscription:e.subscription}});throw C("invalid selection")}case"contract_origin":{let d=Ci[o.contract_origin]??o.contract_origin,_=o.contract_origin==="provided_by_customer"?"contractor_agreement":"contractor_services_agreement";return await Tn({employmentId:r,contractOrigin:d,templateType:_}),await wn(),{data:{contractOrigin:e.contract_origin}}}case"invoice_schedule":{let d=e.invoice_schedule_preference==="schedule";return gn(d),{data:{invoiceSchedulePreference:e.invoice_schedule_preference}}}case"create_invoice_schedule":{if(!r)throw C("Employment ID is required");if(b?.id){let q=await kn({scheduleId:b.id,values:o});return await tt(),q}let d=await Rn({employmentId:r,values:o}),_=d?.data?.failures;if(_&&_.length>0)throw C("Failed to create invoice schedule");return await tt(),d}case"eligibility_questionnaire":try{if((await Dn({employmentId:r,payload:o}))?.data?.is_blocking)throw Me(!1),Te("pricing_plan"),C("This individual is not eligible for Contractor of Record.");return await We({employmentId:r})}finally{await ge()}default:throw C("Invalid step state")}}g(fi,"onSubmit");let _i=g(()=>{Pe.current?.()},"markContractAsReviewed"),yi=g(()=>{r&&ke(),vn()},"handleNextStep"),Ce=an(async e=>{if(t.currentStep.name==="select_country")return U.handleValidation(e);if(I&&t.currentStep.name==="basic_information"){let n=await m(e,I?.fields,{isPartialValidation:!1});return I?.handleValidation(n)}if(E&&t.currentStep.name==="contract_details"){let n=await m(e,E?.fields,{isPartialValidation:!1});return E?.handleValidation(n)}if(F&&t.currentStep.name==="contract_preview"){let n=await m(e,F?.fields,{isPartialValidation:!0});return F?.handleValidation(n)}if(M&&t.currentStep.name==="pricing_plan"){let n=await m(e,M?.fields,{isPartialValidation:!1});return M?.handleValidation(n)}if(O&&t.currentStep.name==="eligibility_questionnaire"){let n=await m(e,O?.fields,{isPartialValidation:!1});return O?.handleValidation(n)}if(D&&t.currentStep.name==="contract_origin"){let n=await m(e,D?.fields,{isPartialValidation:!1});return D?.handleValidation(n)}if(A&&t.currentStep.name==="invoice_schedule"){let n=await m(e,A?.fields,{isPartialValidation:!1});return A?.handleValidation(n)}if(T&&t.currentStep.name==="create_invoice_schedule"){let n=await m(e,T?.fields,{isPartialValidation:!1});return T?.handleValidation(n)}return null},[t.currentStep.name,U,I,E,F,M,O,D,A,T]),gi=an(async e=>{fe(e),j&&["invoice_schedule","create_invoice_schedule"].includes(t.currentStep.name)&&await Ce(e)},[fe,j,t,Ce]);return{isLoading:ve||Se,fieldValues:l,stepState:t,checkFieldUpdates:gi,markContractAsReviewed:_i,back:Sn,next:yi,goTo:mi,onSubmit:fi,fields:i[t.currentStep.name],meta:{fields:oe.current,fieldsets:ci[t.currentStep.name],presentation:li[t.currentStep.name]},parseFormValues:ct,canSkipAiValidation:l.services_and_deliverables_error_skippable===!0,handleValidation:Ce,initialValues:di,employmentId:r,refetchEmployment:ke,isSubmitting:Le.isPending||je.isPending||_e.isPending||Ge.isPending||$e.isPending||xe.isPending||Ne.isPending||Qe.isPending||He.isPending||Je.isPending||Ue.isPending||Ke.isPending,documentPreviewPdf:be,canInvite:In,isEmploymentReadOnly:k,invitedStatus:En,employment:c,defaultLegalEntity:Pn,needsCompanyVerification:qe?.some(e=>e.type==="verify_company")??!1,needsRemotePaymentsSetup:qe?.some(e=>e.type==="setup_remote_payments")??!1,steps:hn}},"useContractorOnboarding");export{Xi as a};
2
+ //# sourceMappingURL=chunk-UOJOO2DM.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-CNSE26GY.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as t}from"./chunk-C4HFMTSB.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function b({onSubmit:d,onSuccess:l,onError:n}){let{onboardingBag:r}=s(),f=a(async e=>{try{let i=await r.parseFormValues(e);await d?.(i);let o=await r.onSubmit(e);if(o?.data){await l?.(o?.data),r?.next();return}if(o?.error){let c=t(o?.fieldErrors||[],r.meta?.fields?.basic_information);n?.({error:o?.error,rawError:o?.rawError,fieldErrors:c})}}catch(i){n?.({error:i,rawError:i,fieldErrors:[]})}},"handleSubmit"),p=r.stepState.values?.basic_information||r.initialValues.basic_information;return E(m,{defaultValues:p,onSubmit:f})}a(b,"BasicInformationStep");export{b as a};
2
- //# sourceMappingURL=chunk-U6SMLAQI.js.map
1
+ import{a as m}from"./chunk-WH3QR2W5.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as t}from"./chunk-C4HFMTSB.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function b({onSubmit:d,onSuccess:l,onError:n}){let{onboardingBag:r}=s(),f=a(async e=>{try{let i=await r.parseFormValues(e);await d?.(i);let o=await r.onSubmit(e);if(o?.data){await l?.(o?.data),r?.next();return}if(o?.error){let c=t(o?.fieldErrors||[],r.meta?.fields?.basic_information);n?.({error:o?.error,rawError:o?.rawError,fieldErrors:c})}}catch(i){n?.({error:i,rawError:i,fieldErrors:[]})}},"handleSubmit"),p=r.stepState.values?.basic_information||r.initialValues.basic_information;return E(m,{defaultValues:p,onSubmit:f})}a(b,"BasicInformationStep");export{b as a};
2
+ //# sourceMappingURL=chunk-UU2IFOXR.js.map
@@ -1,2 +1,2 @@
1
- import{a as L,b as H,c as U,e as O}from"./chunk-SWLNTVAX.js";import{f as W}from"./chunk-KPJ5YKXS.js";import{a as oe}from"./chunk-3VTHNE4H.js";import{a as ie}from"./chunk-TO2GYQR2.js";import{a as _,c as J,d as I,e as k,f as j}from"./chunk-QRSWXKRV.js";import{f as le,g as V,h as te}from"./chunk-AUPAAQUT.js";import{n as g}from"./chunk-C4HFMTSB.js";import{e as ae}from"./chunk-H2O4CVKF.js";import{a as i}from"./chunk-P37U34EQ.js";import*as M from"@radix-ui/react-collapsible";var ge=M.Root,ye=M.CollapsibleTrigger,Se=M.CollapsibleContent;import*as y from"@radix-ui/react-dialog";import{XIcon as he}from"lucide-react";import{jsx as F,jsxs as K}from"react/jsx-runtime";function xe({...e}){return F(y.Root,{"data-slot":"full-screen-dialog",...e})}i(xe,"FullScreenDialog");function Ne({...e}){return F(y.Trigger,{"data-slot":"full-screen-dialog-trigger",...e})}i(Ne,"FullScreenDialogTrigger");function Te({...e}){return F(y.Portal,{"data-slot":"full-screen-dialog-portal",...e})}i(Te,"FullScreenDialogPortal");function Fe({className:e,...l}){return F(y.Overlay,{"data-slot":"full-screen-dialog-overlay",className:g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...l})}i(Fe,"FullScreenDialogOverlay");function Ce({className:e,children:l,...a}){return K(Te,{"data-slot":"full-screen-dialog-portal",children:[F(Fe,{}),K(y.Content,{"data-slot":"full-screen-dialog-content",className:g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 flex flex-col",e),...a,children:[l,K(y.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 RemoteFlows__FullScreenDialog__Close",children:[F(he,{}),F("span",{className:"sr-only",children:"Close"})]})]})]})}i(Ce,"FullScreenDialogContent");function De({className:e,...l}){return F("div",{"data-slot":"full-screen-dialog-header",className:g("flex flex-col gap-2 text-center sm:text-left",e),...l})}i(De,"FullScreenDialogHeader");function we({className:e,...l}){return F("div",{"data-slot":"full-screen-dialog-footer",className:g("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...l})}i(we,"FullScreenDialogFooter");function Re({className:e,...l}){return F(y.Title,{"data-slot":"full-screen-dialog-title",className:g("text-lg leading-none font-semibold",e),...l})}i(Re,"FullScreenDialogTitle");function Pe({className:e,...l}){return F(y.Description,{"data-slot":"full-screen-dialog-description",className:g("text-muted-foreground text-sm",e),...l})}i(Pe,"FullScreenDialogDescription");import*as R from"@radix-ui/react-tabs";import{jsx as B}from"react/jsx-runtime";function z({className:e,...l}){return B(R.Root,{"data-slot":"tabs",className:g("flex flex-col gap-2",e),...l})}i(z,"Tabs");function $({className:e,...l}){return B(R.List,{"data-slot":"tabs-list",className:g("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",e),...l})}i($,"TabsList");function X({className:e,...l}){return B(R.Trigger,{"data-slot":"tabs-trigger",className:g("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...l})}i(X,"TabsTrigger");function Ae({className:e,...l}){return B(R.Content,{"data-slot":"tabs-content",className:g("flex-1 outline-none",e),...l})}i(Ae,"TabsContent");import*as Z from"react";import*as N from"@radix-ui/react-scroll-area";import{jsx as q,jsxs as Ve}from"react/jsx-runtime";var ne=Z.forwardRef(({className:e,children:l,...a},s)=>Ve(N.Root,{ref:s,className:g("relative overflow-hidden",e),...a,children:[q(N.Viewport,{className:"h-full w-full rounded-[inherit]",children:l}),q(se,{}),q(N.Corner,{})]}));ne.displayName=N.Root.displayName;var se=Z.forwardRef(({className:e,orientation:l="vertical",...a},s)=>q(N.ScrollAreaScrollbar,{ref:s,orientation:l,className:g("flex touch-none select-none transition-colors",l==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",l==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:q(N.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));se.displayName=N.ScrollAreaScrollbar.displayName;import{useState as Y,useEffect as Ie,useMemo as ke}from"react";import{useQuery as je}from"@tanstack/react-query";import E from"fast-deep-equal";var re=i(e=>e.name?e.type?!0:(console.warn(`Field "${e.name}" missing required "type" property`),!1):(console.warn('Field missing required "name" property:',e),!1),"validateField"),Le=i((e,l)=>{if(E(e,l))return;let a=new Map((e||[]).map(t=>[t.value,t])),s=new Map((l||[]).map(t=>[t.value,t])),d=[],m=[],p=[];if(s.forEach((t,c)=>{a.has(c)||d.push({value:t.value,label:t.label})}),a.forEach((t,c)=>{if(!s.has(c))m.push({value:t.value,label:t.label});else{let S=s.get(c);if(!E(t,S)){let b={};t.label!==S.label&&(b.label={old:t.label,new:S.label}),Object.keys(b).length>0&&p.push({value:c,changes:b})}}}),!(d.length===0&&m.length===0&&p.length===0))return{added:d,removed:m,modified:p}},"compareOptions"),Oe=i((e,l)=>{let a=e.fields,s=l.fields;if(!a&&!s)return;let d=G(a||[],s||[]);if(d.added.length>0||d.removed.length>0||d.modified.length>0)return Array.from(d.fieldDiffs.values())},"compareNestedFields"),Me=i((e,l)=>{let a={label:e.label!==l.label,required:e.required!==l.required,inputType:e.inputType!==l.inputType,type:e.type!==l.type,jsonType:!E(e.jsonType,l.jsonType),name:e.name!==l.name,defaultValue:e.defaultValue!==l.defaultValue,minDate:e.minDate!==l.minDate,maxDate:e.maxDate!==l.maxDate,maxLength:e.maxLength!==l.maxLength,multiple:e.multiple!==l.multiple,isVisible:e.isVisible!==l.isVisible,options:!E(e.options,l.options)},s=(()=>{let m=e.fields,p=l.fields;if(!m&&!p)return!1;if(!m||!p)return!0;let t=G(m,p);return t.added.length>0||t.removed.length>0||t.modified.length>0})();return Object.values(a).some(m=>m)||s},"isFieldModified"),Ee=i((e,l)=>{let a={};e.label!==l.label&&(a.label={old:e.label,new:l.label}),e.required!==l.required&&(a.required={old:e.required,new:l.required}),e.type!==l.type&&(a.type={old:e.type,new:l.type}),e.inputType!==l.inputType&&(a.inputType={old:e.inputType,new:l.inputType}),E(e.jsonType,l.jsonType)||(a.jsonType={old:e.jsonType,new:l.jsonType}),E(e.defaultValue,l.defaultValue)||(a.defaultValue={old:e.defaultValue,new:l.defaultValue}),e.minDate!==l.minDate&&(a.minDate={old:e.minDate||"",new:l.minDate||""}),e.maxDate!==l.maxDate&&(a.maxDate={old:e.maxDate||"",new:l.maxDate||""}),e.maxLength!==l.maxLength&&(a.maxLength={old:e.maxLength||0,new:l.maxLength||0}),e.multiple!==l.multiple&&(a.multiple={old:e.multiple||!1,new:l.multiple||!1}),e.isVisible!==l.isVisible&&(a.isVisible={old:e.isVisible,new:l.isVisible});let s=Le(e.options,l.options);s&&(a.options=s);let d=Oe(e,l);return d&&(a.nestedFields=d),Object.keys(a).length>0?a:void 0},"getFieldChanges"),G=i((e=[],l=[])=>{let a=e.filter(re),s=l.filter(re),d=new Map(a.map(f=>[f.name,{field:f}])),m=new Map(s.map(f=>[f.name,{field:f}])),p=[],t=[],c=[],S=[],b=new Map;return m.forEach((f,v)=>{d.has(v)||(p.push(v),b.set(v,{fieldName:v,diffType:"added"}))}),d.forEach(({field:f},v)=>{if(!m.has(v))t.push(v),b.set(v,{fieldName:v,diffType:"removed"});else{let{field:x}=m.get(v);Me(f,x)?(c.push(v),b.set(v,{fieldName:v,diffType:"modified",changes:Ee(f,x)})):(S.push(v),b.set(v,{fieldName:v,diffType:"unchanged"}))}}),{added:p,removed:t,modified:c,unchanged:S,fieldDiffs:b}},"compareFormFields"),ve=i(e=>{switch(e){case"added":return"bg-green-50 border-l-4 border-green-500";case"removed":return"bg-red-50 border-l-4 border-red-500";case"modified":return"bg-yellow-50 border-l-4 border-yellow-500";default:return""}},"getDiffStyles");import{useMemo as ue,useRef as Q,useEffect as _e}from"react";import{jsx as o,jsxs as u}from"react/jsx-runtime";var Je=i(({children:e,diffType:l,changes:a})=>{let s=ve(l);if(l==="unchanged")return o("div",{children:e});let m={added:o("span",{className:"text-xs font-semibold text-green-700 bg-green-100 px-2 py-1 rounded",children:"NEW"}),removed:o("span",{className:"text-xs font-semibold text-red-700 bg-red-100 px-2 py-1 rounded",children:"REMOVED"}),modified:o("span",{className:"text-xs font-semibold text-yellow-700 bg-yellow-100 px-2 py-1 rounded",children:"MODIFIED"})}[l],p=i(()=>{if(!a||l!=="modified")return null;let t=[];if(a.label&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Label:"})," ",o("span",{className:"line-through text-red-600",children:a.label.old})," ","\u2192 ",o("span",{className:"text-green-600",children:a.label.new})]},"label")),a.required&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Required:"})," ",o("span",{className:"line-through text-red-600",children:a.required.old?"Yes":"No"})," ","\u2192"," ",o("span",{className:"text-green-600",children:a.required.new?"Yes":"No"})]},"required")),a.type&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Type:"})," ",o("span",{className:"line-through text-red-600",children:a.type.old})," ","\u2192 ",o("span",{className:"text-green-600",children:a.type.new})]},"type")),a.inputType&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Input Type:"})," ",o("span",{className:"line-through text-red-600",children:a.inputType.old})," ","\u2192 ",o("span",{className:"text-green-600",children:a.inputType.new})]},"inputType")),a.jsonType){let c=Array.isArray(a.jsonType.old)?a.jsonType.old.join(" | "):a.jsonType.old,S=Array.isArray(a.jsonType.new)?a.jsonType.new.join(" | "):a.jsonType.new;t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"JSON Type:"})," ",o("span",{className:"line-through text-red-600",children:c})," \u2192"," ",o("span",{className:"text-green-600",children:S})]},"jsonType"))}return a.defaultValue!==void 0&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Default Value:"})," ",o("span",{className:"line-through text-red-600",children:JSON.stringify(a.defaultValue.old)})," ","\u2192"," ",o("span",{className:"text-green-600",children:JSON.stringify(a.defaultValue.new)})]},"defaultValue")),a.options&&(a.options.added.length>0&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold text-green-700",children:"Options Added:"})," ",a.options.added.map(c=>c.label).join(", ")]},"options-added")),a.options.removed.length>0&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold text-red-700",children:"Options Removed:"})," ",a.options.removed.map(c=>c.label).join(", ")]},"options-removed")),a.options.modified.length>0&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Options Modified:"})," ",a.options.modified.length," option(s)"]},"options-modified"))),a.nestedFields&&a.nestedFields.length>0&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Nested Fields:"})," ",a.nestedFields.length," field(s) changed"]},"nestedFields")),t.length===0?null:u("div",{className:"mt-2 p-2 bg-yellow-50 rounded border border-yellow-200 space-y-1",children:[o("div",{className:"text-xs font-semibold text-yellow-800 mb-1",children:"Changes:"}),t]})},"renderChanges");return u("div",{className:`p-3 mb-2 rounded ${s} relative`,children:[o("div",{className:"absolute top-2 right-2",children:m}),e,p()]})},"FieldWrapper"),de=i(({version:e,fields:l,fieldsets:a,diffMap:s,title:d,scrollRef:m})=>{let p=le({mode:"onBlur"}),t=ue(()=>{let c=i((S,b)=>S.map(f=>{let v=b.get(f.name),x=v?.diffType||"unchanged",T=v?.changes,C=f.fields,P=f;if(C&&Array.isArray(C)){let A=new Map;T&&typeof T=="object"&&"nestedFields"in T&&Array.isArray(T.nestedFields)&&T.nestedFields.forEach(n=>{A.set(n.fieldName,{diffType:n.diffType,changes:n.changes})});let D=c(C,A);P={...f,fields:D}}return{...P,WrapperComponent:i(({children:A})=>o(Je,{diffType:x,fieldName:f.name,changes:T,children:A}),"WrapperComponent")}}),"applyWrappers");return c(l,s)},[l,s]);return u(L,{className:"h-full",children:[o(H,{children:u(U,{children:[d," - Version ",e]})}),o(O,{ref:m,className:"overflow-y-auto max-h-[600px]",children:o(te,{...p,children:o("form",{className:"space-y-4",children:o(ie,{fields:t,fieldsets:a,fieldValues:{}})})})})]})},"FormPanel"),me=i(({topVersion:e,bottomVersion:l,topFields:a,bottomFields:s,topFieldsets:d,bottomFieldsets:m,isLoading:p})=>{let t=ue(()=>G(a,s),[a,s]),c=Q(null),S=Q(null),b=Q(!1);if(_e(()=>{let v=c.current,x=S.current;if(!v||!x)return;let T=i(()=>{b.current||(b.current=!0,x.scrollTop=v.scrollTop,requestAnimationFrame(()=>{b.current=!1}))},"handleLeftScroll"),C=i(()=>{b.current||(b.current=!0,v.scrollTop=x.scrollTop,requestAnimationFrame(()=>{b.current=!1}))},"handleRightScroll");return v.addEventListener("scroll",T),x.addEventListener("scroll",C),()=>{v.removeEventListener("scroll",T),x.removeEventListener("scroll",C)}},[a,s]),p)return o("div",{className:"flex items-center justify-center h-96",children:u("div",{className:"text-center",children:[o("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-gray-900 mx-auto"}),o("p",{className:"mt-4 text-gray-600",children:"Loading schemas..."})]})});let f=t.added.length===0&&t.removed.length===0&&t.modified.length===0;return u("div",{className:"space-y-6",children:[o(L,{children:o(O,{className:"pt-6",children:f?o("p",{className:"text-center text-gray-600",children:"No differences detected between the two versions"}):u("div",{className:"flex gap-6 justify-center",children:[t.added.length>0&&u("div",{className:"flex items-center gap-2",children:[o("span",{className:"w-4 h-4 bg-green-500 rounded"}),u("span",{className:"text-sm",children:[t.added.length," field",t.added.length>1?"s":""," ","added"]})]}),t.removed.length>0&&u("div",{className:"flex items-center gap-2",children:[o("span",{className:"w-4 h-4 bg-red-500 rounded"}),u("span",{className:"text-sm",children:[t.removed.length," field",t.removed.length>1?"s":""," removed"]})]}),t.modified.length>0&&u("div",{className:"flex items-center gap-2",children:[o("span",{className:"w-4 h-4 bg-yellow-500 rounded"}),u("span",{className:"text-sm",children:[t.modified.length," field",t.modified.length>1?"s":""," modified"]})]})]})})}),u("div",{className:"grid grid-cols-2 gap-6",children:[o(de,{version:e,fields:a,fieldsets:d,diffMap:t.fieldDiffs,title:"Left",scrollRef:c}),o(de,{version:l,fields:s,fieldsets:m,diffMap:t.fieldDiffs,title:"Right",scrollRef:S})]})]})},"SchemaFormComparison");var pe=[{value:1,label:"v1"},{value:3,label:"v3"},{value:4,label:"v4 (Recommended)"}],ee={ALB:[{value:1,label:"v1"},{value:2,label:"v2"}],ARE:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],ARG:[{value:1,label:"v1"},{value:2,label:"v2"}],ARM:[{value:1,label:"v1"}],AUS:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],AUT:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"},{value:5,label:"v5"},{value:6,label:"v6"}],BEL:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],BGD:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],BGR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],BIH:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],BLR:[{value:1,label:"v1"},{value:2,label:"v2"}],BOL:[{value:1,label:"v1"}],BRA:[{value:1,label:"v1"},{value:2,label:"v2"}],CAN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CHE:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CHL:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CHN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"},{value:5,label:"v5"}],COL:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CRI:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CYP:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CZE:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],DEU:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],DNK:[{value:1,label:"v1"},{value:2,label:"v2"}],DOM:[{value:1,label:"v1"},{value:2,label:"v2"}],ECU:[{value:1,label:"v1"}],EGY:[{value:1,label:"v1"},{value:2,label:"v2"}],ESP:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],EST:[{value:1,label:"v1"},{value:2,label:"v2"}],FIN:[{value:1,label:"v1"},{value:2,label:"v2"}],FRA:[{value:1,label:"v1"},{value:2,label:"v2"}],FRA_SAS:[{value:1,label:"v1"}],GBR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],GEO:[{value:1,label:"v1"},{value:2,label:"v2"}],GRC:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],GTM:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],HKG:[{value:1,label:"v1"},{value:2,label:"v2"}],HND:[{value:1,label:"v1"},{value:2,label:"v2"}],HRV:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],HUN:[{value:1,label:"v1"}],IDN:[{value:1,label:"v1"}],IND:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],IRL:[{value:1,label:"v1"}],ISL:[{value:1,label:"v1"},{value:2,label:"v2"}],ISR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],ITA:[{value:1,label:"v1"},{value:2,label:"v2"}],ITA_APL:[{value:1,label:"v1"}],JAM:[{value:1,label:"v1"},{value:2,label:"v2"}],JPN:[{value:1,label:"v1"},{value:2,label:"v2"}],KEN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],KGZ:[{value:1,label:"v1"}],KHM:[{value:1,label:"v1"}],KOR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],LBN:[{value:1,label:"v1"},{value:2,label:"v2"}],LKA:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],LTU:[{value:1,label:"v1"},{value:2,label:"v2"}],LUX:[{value:1,label:"v1"}],LVA:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],MAR:[{value:1,label:"v1"},{value:2,label:"v2"}],MDA:[{value:1,label:"v1"},{value:2,label:"v2"}],MEX:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],MKD:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],MLT:[{value:1,label:"v1"}],MNG:[{value:1,label:"v1"}],MUS:[{value:1,label:"v1"},{value:2,label:"v2"}],MYS:[{value:1,label:"v1"},{value:2,label:"v2"}],NGA:[{value:1,label:"v1"},{value:2,label:"v2"}],NIC:[{value:1,label:"v1"}],NLD:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],NOR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],NZL:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],PAK:[{value:1,label:"v1"},{value:2,label:"v2"}],PAN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],PER:[{value:1,label:"v1"}],PHL:[{value:1,label:"v1"},{value:2,label:"v2"}],POL:[{value:1,label:"v1"},{value:2,label:"v2"}],PRI:[{value:1,label:"v1"},{value:2,label:"v2"}],PRT:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],PRY:[{value:1,label:"v1"},{value:2,label:"v2"}],ROU:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],SAU:[{value:1,label:"v1"},{value:2,label:"v2"}],SGP:[{value:1,label:"v1"},{value:2,label:"v2"}],SLV:[{value:1,label:"v1"}],SRB:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"},{value:5,label:"v5"}],SVK:[{value:1,label:"v1"},{value:2,label:"v2"}],SVN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],SWE:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],THA:[{value:1,label:"v1"},{value:2,label:"v2"}],TUN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],TUR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],TWN:[{value:1,label:"v1"},{value:2,label:"v2"}],UGA:[{value:1,label:"v1"}],UKR:[{value:1,label:"v1"}],URY:[{value:1,label:"v1"},{value:2,label:"v2"}],USA:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],VNM:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],XKX:[{value:1,label:"v1"}],ZAF:[{value:1,label:"v1"}],ZWE:[{value:1,label:"v1"}]},ce=Object.fromEntries(Object.entries(ee).filter(([,e])=>e.length>1)),be=[{value:"employment_basic_information",label:"Basic Information"},{value:"contract_details",label:"Contract Details"}];import{jsx as r,jsxs as h}from"react/jsx-runtime";var fe=i(()=>{let[e,l]=Y("employment_basic_information"),[a,s]=Y(1),[d,m]=Y(1),[p,t]=Y("ARE"),{client:c}=ae(),{data:S}=je({...oe(c,"schema-comparison"),select:i(n=>n.data?.data?.filter(w=>w.eor_onboarding).filter(w=>Object.keys(ce).includes(w.code)).map(w=>({label:w.name,value:w.code}))||[],"select")}),b=e==="contract_details",{data:f,isLoading:v}=W({countryCode:p,form:e,fieldValues:{},jsonSchemaVersion:a,options:{queryOptions:{enabled:!0}}}),{data:x,isLoading:T}=W({countryCode:p,form:e,fieldValues:{},jsonSchemaVersion:d,options:{queryOptions:{enabled:!0}}}),C=v||T,P=ee[p],A=P!==void 0,D=ke(()=>e==="employment_basic_information"?pe:P||[{value:"latest",label:"Latest"}],[e,P]);return Ie(()=>{let n=D.map(w=>w.value);n.includes(a)||s(D[0].value),n.includes(d)||m(D[0].value)},[e,p,D,a,d]),h("div",{className:"space-y-6",children:[h(L,{children:[r(H,{children:r(U,{children:"Configuration"})}),h(O,{className:"space-y-4",children:[h("div",{children:[r(V,{className:"mb-2 block",children:"Form Type"}),r(z,{value:e,onValueChange:n=>l(n),children:r($,{className:"grid w-full grid-cols-2",children:be.map(n=>r(X,{value:n.value,children:n.label},n.value))})})]}),b&&!A&&r("div",{className:"rounded-md bg-yellow-50 p-4 border border-yellow-200",children:h("div",{className:"flex",children:[r("div",{className:"flex-shrink-0",children:r("svg",{className:"h-5 w-5 text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:r("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})})}),h("div",{className:"ml-3",children:[r("h3",{className:"text-sm font-medium text-yellow-800",children:"Version mappings not found"}),r("div",{className:"mt-2 text-sm text-yellow-700",children:h("p",{children:["Country"," ",r("span",{className:"font-semibold",children:p})," is not configured in COUNTRY_CONTRACT_VERSIONS. Using default (latest only)."]})})]})]})}),b&&h("div",{children:[r(V,{htmlFor:"country-select",className:"mb-2 block",children:"Country"}),h(_,{value:p,onValueChange:t,children:[r(I,{id:"country-select",children:r(J,{placeholder:"Select a country"})}),r(k,{children:S?.map(n=>r(j,{value:n.value,children:n.label},n.value))})]})]}),h("div",{className:"grid grid-cols-2 gap-4",children:[h("div",{children:[r(V,{htmlFor:"top-version",className:"mb-2 block",children:"Left Version"}),h(_,{value:String(a),onValueChange:n=>s(n==="latest"?"latest":Number(n)),children:[r(I,{id:"top-version",children:r(J,{placeholder:"Select version"})}),r(k,{children:D.map(n=>r(j,{value:String(n.value),children:n.label},String(n.value)))})]})]}),h("div",{children:[r(V,{htmlFor:"bottom-version",className:"mb-2 block",children:"Right Version"}),h(_,{value:String(d),onValueChange:n=>m(n==="latest"?"latest":Number(n)),children:[r(I,{id:"bottom-version",children:r(J,{placeholder:"Select version"})}),r(k,{children:D.map(n=>r(j,{value:String(n.value),children:n.label},String(n.value)))})]})]})]})]})]}),r(me,{topVersion:a,bottomVersion:d,topFields:f?.fields||[],bottomFields:x?.fields||[],topFieldsets:f?.meta?.["x-jsf-fieldsets"],bottomFieldsets:x?.meta?.["x-jsf-fieldsets"],isLoading:C})]})},"JsonSchemaComparison");export{ge as a,ye as b,Se as c,xe as d,Ne as e,Ce as f,De as g,we as h,Re as i,Pe as j,z as k,$ as l,X as m,Ae as n,ne as o,fe as p};
2
- //# sourceMappingURL=chunk-IUY4BDUY.js.map
1
+ import{a as L,b as H,c as U,e as O}from"./chunk-SWLNTVAX.js";import{f as W}from"./chunk-2GTY2DMO.js";import{a as oe}from"./chunk-3VTHNE4H.js";import{a as ie}from"./chunk-VQRE3YLW.js";import{a as _,c as J,d as I,e as k,f as j}from"./chunk-QRSWXKRV.js";import{f as le,g as V,h as te}from"./chunk-AUPAAQUT.js";import{n as g}from"./chunk-C4HFMTSB.js";import{e as ae}from"./chunk-H2O4CVKF.js";import{a as i}from"./chunk-P37U34EQ.js";import*as M from"@radix-ui/react-collapsible";var ge=M.Root,ye=M.CollapsibleTrigger,Se=M.CollapsibleContent;import*as y from"@radix-ui/react-dialog";import{XIcon as he}from"lucide-react";import{jsx as F,jsxs as K}from"react/jsx-runtime";function xe({...e}){return F(y.Root,{"data-slot":"full-screen-dialog",...e})}i(xe,"FullScreenDialog");function Ne({...e}){return F(y.Trigger,{"data-slot":"full-screen-dialog-trigger",...e})}i(Ne,"FullScreenDialogTrigger");function Te({...e}){return F(y.Portal,{"data-slot":"full-screen-dialog-portal",...e})}i(Te,"FullScreenDialogPortal");function Fe({className:e,...l}){return F(y.Overlay,{"data-slot":"full-screen-dialog-overlay",className:g("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...l})}i(Fe,"FullScreenDialogOverlay");function Ce({className:e,children:l,...a}){return K(Te,{"data-slot":"full-screen-dialog-portal",children:[F(Fe,{}),K(y.Content,{"data-slot":"full-screen-dialog-content",className:g("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 flex flex-col",e),...a,children:[l,K(y.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 RemoteFlows__FullScreenDialog__Close",children:[F(he,{}),F("span",{className:"sr-only",children:"Close"})]})]})]})}i(Ce,"FullScreenDialogContent");function De({className:e,...l}){return F("div",{"data-slot":"full-screen-dialog-header",className:g("flex flex-col gap-2 text-center sm:text-left",e),...l})}i(De,"FullScreenDialogHeader");function we({className:e,...l}){return F("div",{"data-slot":"full-screen-dialog-footer",className:g("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...l})}i(we,"FullScreenDialogFooter");function Re({className:e,...l}){return F(y.Title,{"data-slot":"full-screen-dialog-title",className:g("text-lg leading-none font-semibold",e),...l})}i(Re,"FullScreenDialogTitle");function Pe({className:e,...l}){return F(y.Description,{"data-slot":"full-screen-dialog-description",className:g("text-muted-foreground text-sm",e),...l})}i(Pe,"FullScreenDialogDescription");import*as R from"@radix-ui/react-tabs";import{jsx as B}from"react/jsx-runtime";function z({className:e,...l}){return B(R.Root,{"data-slot":"tabs",className:g("flex flex-col gap-2",e),...l})}i(z,"Tabs");function $({className:e,...l}){return B(R.List,{"data-slot":"tabs-list",className:g("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",e),...l})}i($,"TabsList");function X({className:e,...l}){return B(R.Trigger,{"data-slot":"tabs-trigger",className:g("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...l})}i(X,"TabsTrigger");function Ae({className:e,...l}){return B(R.Content,{"data-slot":"tabs-content",className:g("flex-1 outline-none",e),...l})}i(Ae,"TabsContent");import*as Z from"react";import*as N from"@radix-ui/react-scroll-area";import{jsx as q,jsxs as Ve}from"react/jsx-runtime";var ne=Z.forwardRef(({className:e,children:l,...a},s)=>Ve(N.Root,{ref:s,className:g("relative overflow-hidden",e),...a,children:[q(N.Viewport,{className:"h-full w-full rounded-[inherit]",children:l}),q(se,{}),q(N.Corner,{})]}));ne.displayName=N.Root.displayName;var se=Z.forwardRef(({className:e,orientation:l="vertical",...a},s)=>q(N.ScrollAreaScrollbar,{ref:s,orientation:l,className:g("flex touch-none select-none transition-colors",l==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",l==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:q(N.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));se.displayName=N.ScrollAreaScrollbar.displayName;import{useState as Y,useEffect as Ie,useMemo as ke}from"react";import{useQuery as je}from"@tanstack/react-query";import E from"fast-deep-equal";var re=i(e=>e.name?e.type?!0:(console.warn(`Field "${e.name}" missing required "type" property`),!1):(console.warn('Field missing required "name" property:',e),!1),"validateField"),Le=i((e,l)=>{if(E(e,l))return;let a=new Map((e||[]).map(t=>[t.value,t])),s=new Map((l||[]).map(t=>[t.value,t])),d=[],m=[],p=[];if(s.forEach((t,c)=>{a.has(c)||d.push({value:t.value,label:t.label})}),a.forEach((t,c)=>{if(!s.has(c))m.push({value:t.value,label:t.label});else{let S=s.get(c);if(!E(t,S)){let b={};t.label!==S.label&&(b.label={old:t.label,new:S.label}),Object.keys(b).length>0&&p.push({value:c,changes:b})}}}),!(d.length===0&&m.length===0&&p.length===0))return{added:d,removed:m,modified:p}},"compareOptions"),Oe=i((e,l)=>{let a=e.fields,s=l.fields;if(!a&&!s)return;let d=G(a||[],s||[]);if(d.added.length>0||d.removed.length>0||d.modified.length>0)return Array.from(d.fieldDiffs.values())},"compareNestedFields"),Me=i((e,l)=>{let a={label:e.label!==l.label,required:e.required!==l.required,inputType:e.inputType!==l.inputType,type:e.type!==l.type,jsonType:!E(e.jsonType,l.jsonType),name:e.name!==l.name,defaultValue:e.defaultValue!==l.defaultValue,minDate:e.minDate!==l.minDate,maxDate:e.maxDate!==l.maxDate,maxLength:e.maxLength!==l.maxLength,multiple:e.multiple!==l.multiple,isVisible:e.isVisible!==l.isVisible,options:!E(e.options,l.options)},s=(()=>{let m=e.fields,p=l.fields;if(!m&&!p)return!1;if(!m||!p)return!0;let t=G(m,p);return t.added.length>0||t.removed.length>0||t.modified.length>0})();return Object.values(a).some(m=>m)||s},"isFieldModified"),Ee=i((e,l)=>{let a={};e.label!==l.label&&(a.label={old:e.label,new:l.label}),e.required!==l.required&&(a.required={old:e.required,new:l.required}),e.type!==l.type&&(a.type={old:e.type,new:l.type}),e.inputType!==l.inputType&&(a.inputType={old:e.inputType,new:l.inputType}),E(e.jsonType,l.jsonType)||(a.jsonType={old:e.jsonType,new:l.jsonType}),E(e.defaultValue,l.defaultValue)||(a.defaultValue={old:e.defaultValue,new:l.defaultValue}),e.minDate!==l.minDate&&(a.minDate={old:e.minDate||"",new:l.minDate||""}),e.maxDate!==l.maxDate&&(a.maxDate={old:e.maxDate||"",new:l.maxDate||""}),e.maxLength!==l.maxLength&&(a.maxLength={old:e.maxLength||0,new:l.maxLength||0}),e.multiple!==l.multiple&&(a.multiple={old:e.multiple||!1,new:l.multiple||!1}),e.isVisible!==l.isVisible&&(a.isVisible={old:e.isVisible,new:l.isVisible});let s=Le(e.options,l.options);s&&(a.options=s);let d=Oe(e,l);return d&&(a.nestedFields=d),Object.keys(a).length>0?a:void 0},"getFieldChanges"),G=i((e=[],l=[])=>{let a=e.filter(re),s=l.filter(re),d=new Map(a.map(f=>[f.name,{field:f}])),m=new Map(s.map(f=>[f.name,{field:f}])),p=[],t=[],c=[],S=[],b=new Map;return m.forEach((f,v)=>{d.has(v)||(p.push(v),b.set(v,{fieldName:v,diffType:"added"}))}),d.forEach(({field:f},v)=>{if(!m.has(v))t.push(v),b.set(v,{fieldName:v,diffType:"removed"});else{let{field:x}=m.get(v);Me(f,x)?(c.push(v),b.set(v,{fieldName:v,diffType:"modified",changes:Ee(f,x)})):(S.push(v),b.set(v,{fieldName:v,diffType:"unchanged"}))}}),{added:p,removed:t,modified:c,unchanged:S,fieldDiffs:b}},"compareFormFields"),ve=i(e=>{switch(e){case"added":return"bg-green-50 border-l-4 border-green-500";case"removed":return"bg-red-50 border-l-4 border-red-500";case"modified":return"bg-yellow-50 border-l-4 border-yellow-500";default:return""}},"getDiffStyles");import{useMemo as ue,useRef as Q,useEffect as _e}from"react";import{jsx as o,jsxs as u}from"react/jsx-runtime";var Je=i(({children:e,diffType:l,changes:a})=>{let s=ve(l);if(l==="unchanged")return o("div",{children:e});let m={added:o("span",{className:"text-xs font-semibold text-green-700 bg-green-100 px-2 py-1 rounded",children:"NEW"}),removed:o("span",{className:"text-xs font-semibold text-red-700 bg-red-100 px-2 py-1 rounded",children:"REMOVED"}),modified:o("span",{className:"text-xs font-semibold text-yellow-700 bg-yellow-100 px-2 py-1 rounded",children:"MODIFIED"})}[l],p=i(()=>{if(!a||l!=="modified")return null;let t=[];if(a.label&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Label:"})," ",o("span",{className:"line-through text-red-600",children:a.label.old})," ","\u2192 ",o("span",{className:"text-green-600",children:a.label.new})]},"label")),a.required&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Required:"})," ",o("span",{className:"line-through text-red-600",children:a.required.old?"Yes":"No"})," ","\u2192"," ",o("span",{className:"text-green-600",children:a.required.new?"Yes":"No"})]},"required")),a.type&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Type:"})," ",o("span",{className:"line-through text-red-600",children:a.type.old})," ","\u2192 ",o("span",{className:"text-green-600",children:a.type.new})]},"type")),a.inputType&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Input Type:"})," ",o("span",{className:"line-through text-red-600",children:a.inputType.old})," ","\u2192 ",o("span",{className:"text-green-600",children:a.inputType.new})]},"inputType")),a.jsonType){let c=Array.isArray(a.jsonType.old)?a.jsonType.old.join(" | "):a.jsonType.old,S=Array.isArray(a.jsonType.new)?a.jsonType.new.join(" | "):a.jsonType.new;t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"JSON Type:"})," ",o("span",{className:"line-through text-red-600",children:c})," \u2192"," ",o("span",{className:"text-green-600",children:S})]},"jsonType"))}return a.defaultValue!==void 0&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Default Value:"})," ",o("span",{className:"line-through text-red-600",children:JSON.stringify(a.defaultValue.old)})," ","\u2192"," ",o("span",{className:"text-green-600",children:JSON.stringify(a.defaultValue.new)})]},"defaultValue")),a.options&&(a.options.added.length>0&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold text-green-700",children:"Options Added:"})," ",a.options.added.map(c=>c.label).join(", ")]},"options-added")),a.options.removed.length>0&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold text-red-700",children:"Options Removed:"})," ",a.options.removed.map(c=>c.label).join(", ")]},"options-removed")),a.options.modified.length>0&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Options Modified:"})," ",a.options.modified.length," option(s)"]},"options-modified"))),a.nestedFields&&a.nestedFields.length>0&&t.push(u("div",{className:"text-xs",children:[o("span",{className:"font-semibold",children:"Nested Fields:"})," ",a.nestedFields.length," field(s) changed"]},"nestedFields")),t.length===0?null:u("div",{className:"mt-2 p-2 bg-yellow-50 rounded border border-yellow-200 space-y-1",children:[o("div",{className:"text-xs font-semibold text-yellow-800 mb-1",children:"Changes:"}),t]})},"renderChanges");return u("div",{className:`p-3 mb-2 rounded ${s} relative`,children:[o("div",{className:"absolute top-2 right-2",children:m}),e,p()]})},"FieldWrapper"),de=i(({version:e,fields:l,fieldsets:a,diffMap:s,title:d,scrollRef:m})=>{let p=le({mode:"onBlur"}),t=ue(()=>{let c=i((S,b)=>S.map(f=>{let v=b.get(f.name),x=v?.diffType||"unchanged",T=v?.changes,C=f.fields,P=f;if(C&&Array.isArray(C)){let A=new Map;T&&typeof T=="object"&&"nestedFields"in T&&Array.isArray(T.nestedFields)&&T.nestedFields.forEach(n=>{A.set(n.fieldName,{diffType:n.diffType,changes:n.changes})});let D=c(C,A);P={...f,fields:D}}return{...P,WrapperComponent:i(({children:A})=>o(Je,{diffType:x,fieldName:f.name,changes:T,children:A}),"WrapperComponent")}}),"applyWrappers");return c(l,s)},[l,s]);return u(L,{className:"h-full",children:[o(H,{children:u(U,{children:[d," - Version ",e]})}),o(O,{ref:m,className:"overflow-y-auto max-h-[600px]",children:o(te,{...p,children:o("form",{className:"space-y-4",children:o(ie,{fields:t,fieldsets:a,fieldValues:{}})})})})]})},"FormPanel"),me=i(({topVersion:e,bottomVersion:l,topFields:a,bottomFields:s,topFieldsets:d,bottomFieldsets:m,isLoading:p})=>{let t=ue(()=>G(a,s),[a,s]),c=Q(null),S=Q(null),b=Q(!1);if(_e(()=>{let v=c.current,x=S.current;if(!v||!x)return;let T=i(()=>{b.current||(b.current=!0,x.scrollTop=v.scrollTop,requestAnimationFrame(()=>{b.current=!1}))},"handleLeftScroll"),C=i(()=>{b.current||(b.current=!0,v.scrollTop=x.scrollTop,requestAnimationFrame(()=>{b.current=!1}))},"handleRightScroll");return v.addEventListener("scroll",T),x.addEventListener("scroll",C),()=>{v.removeEventListener("scroll",T),x.removeEventListener("scroll",C)}},[a,s]),p)return o("div",{className:"flex items-center justify-center h-96",children:u("div",{className:"text-center",children:[o("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-gray-900 mx-auto"}),o("p",{className:"mt-4 text-gray-600",children:"Loading schemas..."})]})});let f=t.added.length===0&&t.removed.length===0&&t.modified.length===0;return u("div",{className:"space-y-6",children:[o(L,{children:o(O,{className:"pt-6",children:f?o("p",{className:"text-center text-gray-600",children:"No differences detected between the two versions"}):u("div",{className:"flex gap-6 justify-center",children:[t.added.length>0&&u("div",{className:"flex items-center gap-2",children:[o("span",{className:"w-4 h-4 bg-green-500 rounded"}),u("span",{className:"text-sm",children:[t.added.length," field",t.added.length>1?"s":""," ","added"]})]}),t.removed.length>0&&u("div",{className:"flex items-center gap-2",children:[o("span",{className:"w-4 h-4 bg-red-500 rounded"}),u("span",{className:"text-sm",children:[t.removed.length," field",t.removed.length>1?"s":""," removed"]})]}),t.modified.length>0&&u("div",{className:"flex items-center gap-2",children:[o("span",{className:"w-4 h-4 bg-yellow-500 rounded"}),u("span",{className:"text-sm",children:[t.modified.length," field",t.modified.length>1?"s":""," modified"]})]})]})})}),u("div",{className:"grid grid-cols-2 gap-6",children:[o(de,{version:e,fields:a,fieldsets:d,diffMap:t.fieldDiffs,title:"Left",scrollRef:c}),o(de,{version:l,fields:s,fieldsets:m,diffMap:t.fieldDiffs,title:"Right",scrollRef:S})]})]})},"SchemaFormComparison");var pe=[{value:1,label:"v1"},{value:3,label:"v3"},{value:4,label:"v4 (Recommended)"}],ee={ALB:[{value:1,label:"v1"},{value:2,label:"v2"}],ARE:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],ARG:[{value:1,label:"v1"},{value:2,label:"v2"}],ARM:[{value:1,label:"v1"}],AUS:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],AUT:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"},{value:5,label:"v5"},{value:6,label:"v6"}],BEL:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],BGD:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],BGR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],BIH:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],BLR:[{value:1,label:"v1"},{value:2,label:"v2"}],BOL:[{value:1,label:"v1"}],BRA:[{value:1,label:"v1"},{value:2,label:"v2"}],CAN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CHE:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CHL:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CHN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"},{value:5,label:"v5"}],COL:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CRI:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CYP:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],CZE:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],DEU:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],DNK:[{value:1,label:"v1"},{value:2,label:"v2"}],DOM:[{value:1,label:"v1"},{value:2,label:"v2"}],ECU:[{value:1,label:"v1"}],EGY:[{value:1,label:"v1"},{value:2,label:"v2"}],ESP:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],EST:[{value:1,label:"v1"},{value:2,label:"v2"}],FIN:[{value:1,label:"v1"},{value:2,label:"v2"}],FRA:[{value:1,label:"v1"},{value:2,label:"v2"}],FRA_SAS:[{value:1,label:"v1"}],GBR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],GEO:[{value:1,label:"v1"},{value:2,label:"v2"}],GRC:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],GTM:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],HKG:[{value:1,label:"v1"},{value:2,label:"v2"}],HND:[{value:1,label:"v1"},{value:2,label:"v2"}],HRV:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],HUN:[{value:1,label:"v1"}],IDN:[{value:1,label:"v1"}],IND:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],IRL:[{value:1,label:"v1"}],ISL:[{value:1,label:"v1"},{value:2,label:"v2"}],ISR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],ITA:[{value:1,label:"v1"},{value:2,label:"v2"}],ITA_APL:[{value:1,label:"v1"}],JAM:[{value:1,label:"v1"},{value:2,label:"v2"}],JPN:[{value:1,label:"v1"},{value:2,label:"v2"}],KEN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],KGZ:[{value:1,label:"v1"}],KHM:[{value:1,label:"v1"}],KOR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],LBN:[{value:1,label:"v1"},{value:2,label:"v2"}],LKA:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],LTU:[{value:1,label:"v1"},{value:2,label:"v2"}],LUX:[{value:1,label:"v1"}],LVA:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],MAR:[{value:1,label:"v1"},{value:2,label:"v2"}],MDA:[{value:1,label:"v1"},{value:2,label:"v2"}],MEX:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],MKD:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],MLT:[{value:1,label:"v1"}],MNG:[{value:1,label:"v1"}],MUS:[{value:1,label:"v1"},{value:2,label:"v2"}],MYS:[{value:1,label:"v1"},{value:2,label:"v2"}],NGA:[{value:1,label:"v1"},{value:2,label:"v2"}],NIC:[{value:1,label:"v1"}],NLD:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],NOR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],NZL:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],PAK:[{value:1,label:"v1"},{value:2,label:"v2"}],PAN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],PER:[{value:1,label:"v1"}],PHL:[{value:1,label:"v1"},{value:2,label:"v2"}],POL:[{value:1,label:"v1"},{value:2,label:"v2"}],PRI:[{value:1,label:"v1"},{value:2,label:"v2"}],PRT:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],PRY:[{value:1,label:"v1"},{value:2,label:"v2"}],ROU:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],SAU:[{value:1,label:"v1"},{value:2,label:"v2"}],SGP:[{value:1,label:"v1"},{value:2,label:"v2"}],SLV:[{value:1,label:"v1"}],SRB:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"},{value:5,label:"v5"}],SVK:[{value:1,label:"v1"},{value:2,label:"v2"}],SVN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],SWE:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],THA:[{value:1,label:"v1"},{value:2,label:"v2"}],TUN:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],TUR:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"},{value:4,label:"v4"}],TWN:[{value:1,label:"v1"},{value:2,label:"v2"}],UGA:[{value:1,label:"v1"}],UKR:[{value:1,label:"v1"}],URY:[{value:1,label:"v1"},{value:2,label:"v2"}],USA:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],VNM:[{value:1,label:"v1"},{value:2,label:"v2"},{value:3,label:"v3"}],XKX:[{value:1,label:"v1"}],ZAF:[{value:1,label:"v1"}],ZWE:[{value:1,label:"v1"}]},ce=Object.fromEntries(Object.entries(ee).filter(([,e])=>e.length>1)),be=[{value:"employment_basic_information",label:"Basic Information"},{value:"contract_details",label:"Contract Details"}];import{jsx as r,jsxs as h}from"react/jsx-runtime";var fe=i(()=>{let[e,l]=Y("employment_basic_information"),[a,s]=Y(1),[d,m]=Y(1),[p,t]=Y("ARE"),{client:c}=ae(),{data:S}=je({...oe(c,"schema-comparison"),select:i(n=>n.data?.data?.filter(w=>w.eor_onboarding).filter(w=>Object.keys(ce).includes(w.code)).map(w=>({label:w.name,value:w.code}))||[],"select")}),b=e==="contract_details",{data:f,isLoading:v}=W({countryCode:p,form:e,fieldValues:{},jsonSchemaVersion:a,options:{queryOptions:{enabled:!0}}}),{data:x,isLoading:T}=W({countryCode:p,form:e,fieldValues:{},jsonSchemaVersion:d,options:{queryOptions:{enabled:!0}}}),C=v||T,P=ee[p],A=P!==void 0,D=ke(()=>e==="employment_basic_information"?pe:P||[{value:"latest",label:"Latest"}],[e,P]);return Ie(()=>{let n=D.map(w=>w.value);n.includes(a)||s(D[0].value),n.includes(d)||m(D[0].value)},[e,p,D,a,d]),h("div",{className:"space-y-6",children:[h(L,{children:[r(H,{children:r(U,{children:"Configuration"})}),h(O,{className:"space-y-4",children:[h("div",{children:[r(V,{className:"mb-2 block",children:"Form Type"}),r(z,{value:e,onValueChange:n=>l(n),children:r($,{className:"grid w-full grid-cols-2",children:be.map(n=>r(X,{value:n.value,children:n.label},n.value))})})]}),b&&!A&&r("div",{className:"rounded-md bg-yellow-50 p-4 border border-yellow-200",children:h("div",{className:"flex",children:[r("div",{className:"flex-shrink-0",children:r("svg",{className:"h-5 w-5 text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:r("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})})}),h("div",{className:"ml-3",children:[r("h3",{className:"text-sm font-medium text-yellow-800",children:"Version mappings not found"}),r("div",{className:"mt-2 text-sm text-yellow-700",children:h("p",{children:["Country"," ",r("span",{className:"font-semibold",children:p})," is not configured in COUNTRY_CONTRACT_VERSIONS. Using default (latest only)."]})})]})]})}),b&&h("div",{children:[r(V,{htmlFor:"country-select",className:"mb-2 block",children:"Country"}),h(_,{value:p,onValueChange:t,children:[r(I,{id:"country-select",children:r(J,{placeholder:"Select a country"})}),r(k,{children:S?.map(n=>r(j,{value:n.value,children:n.label},n.value))})]})]}),h("div",{className:"grid grid-cols-2 gap-4",children:[h("div",{children:[r(V,{htmlFor:"top-version",className:"mb-2 block",children:"Left Version"}),h(_,{value:String(a),onValueChange:n=>s(n==="latest"?"latest":Number(n)),children:[r(I,{id:"top-version",children:r(J,{placeholder:"Select version"})}),r(k,{children:D.map(n=>r(j,{value:String(n.value),children:n.label},String(n.value)))})]})]}),h("div",{children:[r(V,{htmlFor:"bottom-version",className:"mb-2 block",children:"Right Version"}),h(_,{value:String(d),onValueChange:n=>m(n==="latest"?"latest":Number(n)),children:[r(I,{id:"bottom-version",children:r(J,{placeholder:"Select version"})}),r(k,{children:D.map(n=>r(j,{value:String(n.value),children:n.label},String(n.value)))})]})]})]})]})]}),r(me,{topVersion:a,bottomVersion:d,topFields:f?.fields||[],bottomFields:x?.fields||[],topFieldsets:f?.meta?.["x-jsf-fieldsets"],bottomFieldsets:x?.meta?.["x-jsf-fieldsets"],isLoading:C})]})},"JsonSchemaComparison");export{ge as a,ye as b,Se as c,xe as d,Ne as e,Ce as f,De as g,we as h,Re as i,Pe as j,z as k,$ as l,X as m,Ae as n,ne as o,fe as p};
2
+ //# sourceMappingURL=chunk-V3C32X6R.js.map
@@ -1,2 +1,2 @@
1
- import{a as P,b as W,c as u}from"./chunk-7HGU72GB.js";import{a as l}from"./chunk-PVORGGT3.js";import{c as y}from"./chunk-AUPAAQUT.js";import{j as h,m as x}from"./chunk-C4HFMTSB.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-TO2GYQR2.js.map
1
+ import{a as P,b as W,c as u}from"./chunk-ALHHN2LG.js";import{a as l}from"./chunk-PVORGGT3.js";import{c as y}from"./chunk-AUPAAQUT.js";import{j as h,m as x}from"./chunk-C4HFMTSB.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-VQRE3YLW.js.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-5IRUNNZB.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as m}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function p({onSubmit:n}){let{terminationBag:o}=e(),a=m(async t=>{let r=await o?.parseFormValues(t);await n?.(r),o?.next()},"handleSubmit");return u(i,{defaultValues:o.fieldValues,onSubmit:a})}m(p,"EmployeeCommunicationForm");export{p as a};
2
- //# sourceMappingURL=chunk-J5BG6GTH.js.map
1
+ import{a as i}from"./chunk-LCUURLXS.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as m}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function p({onSubmit:n}){let{terminationBag:o}=e(),a=m(async t=>{let r=await o?.parseFormValues(t);await n?.(r),o?.next()},"handleSubmit");return u(i,{defaultValues:o.fieldValues,onSubmit:a})}m(p,"EmployeeCommunicationForm");export{p as a};
2
+ //# sourceMappingURL=chunk-VYAJQ25J.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-MZUPTP2B.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{x as i}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as f}from"react/jsx-runtime";function h({components:c,onSubmit:d,onSuccess:m,onError:u}){let{contractorOnboardingBag:r}=a(),l=t(async(n,S)=>{try{let o=await r.parseFormValues(n);await d?.(o);let e=await r.onSubmit(n);if(e?.data){await m?.(e.data),r?.next();return}}catch(o){let e=i(o,r.meta?.fields?.create_invoice_schedule,S);u?.(e)}},"handleSubmit"),p=r.stepState.values?.create_invoice_schedule||r.initialValues.create_invoice_schedule;return f(s,{components:c,defaultValues:p,onSubmit:l})}t(h,"CreateInvoiceScheduleStep");export{h as a};
2
- //# sourceMappingURL=chunk-6AHENEHD.js.map
1
+ import{a as s}from"./chunk-WYIU74JN.js";import{b as a}from"./chunk-Q3ALCPJN.js";import{x as i}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as f}from"react/jsx-runtime";function h({components:c,onSubmit:d,onSuccess:m,onError:u}){let{contractorOnboardingBag:r}=a(),l=t(async(n,S)=>{try{let o=await r.parseFormValues(n);await d?.(o);let e=await r.onSubmit(n);if(e?.data){await m?.(e.data),r?.next();return}}catch(o){let e=i(o,r.meta?.fields?.create_invoice_schedule,S);u?.(e)}},"handleSubmit"),p=r.stepState.values?.create_invoice_schedule||r.initialValues.create_invoice_schedule;return f(s,{components:c,defaultValues:p,onSubmit:l})}t(h,"CreateInvoiceScheduleStep");export{h as a};
2
+ //# sourceMappingURL=chunk-WB52GW3H.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-ZAOE2DGD.js";import{a as e}from"./chunk-APUJLKUM.js";import{b as a}from"./chunk-WCJZAOZR.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";function d(r){let{adminBag:t}=a(),l=e(r),s={...t.initialValues?.contract_details,...t.stepState.values?.contract_details};return i(n,{onSubmit:l,defaultValues:s})}o(d,"ContractDetailsStep");export{d as a};
2
- //# sourceMappingURL=chunk-NF2WEMTU.js.map
1
+ import{a as n}from"./chunk-PJTMFMRJ.js";import{a as e}from"./chunk-APUJLKUM.js";import{b as a}from"./chunk-WCJZAOZR.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";function d(r){let{adminBag:t}=a(),l=e(r),s={...t.initialValues?.contract_details,...t.stepState.values?.contract_details};return i(n,{onSubmit:l,defaultValues:s})}o(d,"ContractDetailsStep");export{d as a};
2
+ //# sourceMappingURL=chunk-WDPJIOLG.js.map
@@ -1,2 +1,2 @@
1
- import{b as f}from"./chunk-PGWKJ6FK.js";import{a as l}from"./chunk-UZFEJMO6.js";import{a as d}from"./chunk-TO2GYQR2.js";import{h as m}from"./chunk-AUPAAQUT.js";import{c as s}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as k}from"react";import{jsx as c}from"react/jsx-runtime";import{createElement as w}from"react";function R({defaultValues:p,onSubmit:F,components:u}){let{formId:S,onboardingBag:e}=f(),r=l({handleValidation:e.handleValidation,defaultValues:p,checkFieldUpdates:e.checkFieldUpdates});k(()=>{e.employmentId&&e?.checkFieldUpdates(r.getValues())},[]);let g=t(async(a,y)=>{let n=y?.nativeEvent;if(n?.isDraftSubmission){let{onSuccess:E,onError:i}=n.draftCallbacks;try{let o=await e.onSubmit(a);if(o?.data)E?.();else if(o?.error){let b=e.stepState.currentStep.name,h=e.meta?.fields?.[b],P=s(o?.fieldErrors||[],h);i?.({error:o.error,rawError:o.rawError,fieldErrors:P})}}catch(o){i?.({error:o,rawError:o,fieldErrors:[]})}}else await F(a)},"handleSubmit");return w(m,{...r,key:`form-${e.stepState.currentStep.name}`},c("form",{id:S,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:c(d,{components:u,fields:e.fields,fieldsets:e.meta.fieldsets,fieldValues:e.fieldValues})}))}t(R,"OnboardingForm");export{R as a};
2
- //# sourceMappingURL=chunk-CNSE26GY.js.map
1
+ import{b as f}from"./chunk-PGWKJ6FK.js";import{a as l}from"./chunk-UZFEJMO6.js";import{a as d}from"./chunk-VQRE3YLW.js";import{h as m}from"./chunk-AUPAAQUT.js";import{c as s}from"./chunk-C4HFMTSB.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as k}from"react";import{jsx as c}from"react/jsx-runtime";import{createElement as w}from"react";function R({defaultValues:p,onSubmit:F,components:u}){let{formId:S,onboardingBag:e}=f(),r=l({handleValidation:e.handleValidation,defaultValues:p,checkFieldUpdates:e.checkFieldUpdates});k(()=>{e.employmentId&&e?.checkFieldUpdates(r.getValues())},[]);let g=t(async(a,y)=>{let n=y?.nativeEvent;if(n?.isDraftSubmission){let{onSuccess:E,onError:i}=n.draftCallbacks;try{let o=await e.onSubmit(a);if(o?.data)E?.();else if(o?.error){let b=e.stepState.currentStep.name,h=e.meta?.fields?.[b],P=s(o?.fieldErrors||[],h);i?.({error:o.error,rawError:o.rawError,fieldErrors:P})}}catch(o){i?.({error:o,rawError:o,fieldErrors:[]})}}else await F(a)},"handleSubmit");return w(m,{...r,key:`form-${e.stepState.currentStep.name}`},c("form",{id:S,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:c(d,{components:u,fields:e.fields,fieldsets:e.meta.fieldsets,fieldValues:e.fieldValues})}))}t(R,"OnboardingForm");export{R as a};
2
+ //# sourceMappingURL=chunk-WH3QR2W5.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-MZUPTP2B.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-C4HFMTSB.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as g}from"react/jsx-runtime";function E({components:m,onSubmit:p,onSuccess:l,onError:c}){let{contractorOnboardingBag:r}=e(),d=i(async(t,P)=>{try{let n=await r.parseFormValues(t);await p?.(n);let o=await r.onSubmit(t);if(o?.data){await l?.(o?.data),r?.next();return}}catch(n){let o=a(n,r.meta?.fields?.pricing_plan,P);c?.(o)}},"handleSubmit"),u=r.stepState.values?.pricing_plan||r.initialValues.pricing_plan;return g(s,{components:m,defaultValues:u,onSubmit:d})}i(E,"PricingPlanStep");export{E as a};
2
- //# sourceMappingURL=chunk-UUN3PLDE.js.map
1
+ import{a as s}from"./chunk-WYIU74JN.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-C4HFMTSB.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as g}from"react/jsx-runtime";function E({components:m,onSubmit:p,onSuccess:l,onError:c}){let{contractorOnboardingBag:r}=e(),d=i(async(t,P)=>{try{let n=await r.parseFormValues(t);await p?.(n);let o=await r.onSubmit(t);if(o?.data){await l?.(o?.data),r?.next();return}}catch(n){let o=a(n,r.meta?.fields?.pricing_plan,P);c?.(o)}},"handleSubmit"),u=r.stepState.values?.pricing_plan||r.initialValues.pricing_plan;return g(s,{components:m,defaultValues:u,onSubmit:d})}i(E,"PricingPlanStep");export{E as a};
2
+ //# sourceMappingURL=chunk-WHDUZGVW.js.map
@@ -1,2 +1,2 @@
1
- import{b as c}from"./chunk-Q3ALCPJN.js";import{a as d}from"./chunk-UZFEJMO6.js";import{a as l}from"./chunk-TO2GYQR2.js";import{h as m}from"./chunk-AUPAAQUT.js";import{c as s}from"./chunk-C4HFMTSB.js";import{a}from"./chunk-P37U34EQ.js";import{useEffect as f}from"react";import{jsx as F}from"react/jsx-runtime";import{createElement as V}from"react";function B({defaultValues:p,onSubmit:u,components:S}){let{formId:y,contractorOnboardingBag:o,formRef:t}=c(),r=d({handleValidation:o.handleValidation,defaultValues:p,checkFieldUpdates:o.checkFieldUpdates});f(()=>{t?.setValue&&(t.setValue.current=r.setValue)},[r.setValue,t]),f(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]);let g=a(async(n,b)=>{let i=b?.nativeEvent;if(i?.isDraftSubmission){let{onSuccess:P,onError:E}=i.draftCallbacks;try{await o.onSubmit(n),P?.()}catch(e){let C=o.stepState.currentStep.name,h=o.meta?.fields?.[C],O=s(e?.fieldErrors||[],h);E?.({error:e?.error||e,rawError:e?.rawError||e,fieldErrors:O})}}else await u(n,r)},"handleSubmit");return V(m,{...r,key:`form-${o.stepState.currentStep.name}`},F("form",{id:y,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:F(l,{components:S,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}a(B,"ContractorOnboardingForm");export{B as a};
2
- //# sourceMappingURL=chunk-MZUPTP2B.js.map
1
+ import{b as c}from"./chunk-Q3ALCPJN.js";import{a as d}from"./chunk-UZFEJMO6.js";import{a as l}from"./chunk-VQRE3YLW.js";import{h as m}from"./chunk-AUPAAQUT.js";import{c as s}from"./chunk-C4HFMTSB.js";import{a}from"./chunk-P37U34EQ.js";import{useEffect as f}from"react";import{jsx as F}from"react/jsx-runtime";import{createElement as V}from"react";function B({defaultValues:p,onSubmit:u,components:S}){let{formId:y,contractorOnboardingBag:o,formRef:t}=c(),r=d({handleValidation:o.handleValidation,defaultValues:p,checkFieldUpdates:o.checkFieldUpdates});f(()=>{t?.setValue&&(t.setValue.current=r.setValue)},[r.setValue,t]),f(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]);let g=a(async(n,b)=>{let i=b?.nativeEvent;if(i?.isDraftSubmission){let{onSuccess:P,onError:E}=i.draftCallbacks;try{await o.onSubmit(n),P?.()}catch(e){let C=o.stepState.currentStep.name,h=o.meta?.fields?.[C],O=s(e?.fieldErrors||[],h);E?.({error:e?.error||e,rawError:e?.rawError||e,fieldErrors:O})}}else await u(n,r)},"handleSubmit");return V(m,{...r,key:`form-${o.stepState.currentStep.name}`},F("form",{id:y,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:F(l,{components:S,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}a(B,"ContractorOnboardingForm");export{B as a};
2
+ //# sourceMappingURL=chunk-WYIU74JN.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-MZUPTP2B.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-C4HFMTSB.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-36GVXD2Z.js.map
1
+ import{a as s}from"./chunk-WYIU74JN.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as n}from"./chunk-C4HFMTSB.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-WZOVZYNI.js.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-WGDZTF7Y.js";import{a as _}from"./chunk-2HQDOWW2.js";import{j as a,k as i,l as s,n,o as F}from"./chunk-AUPAAQUT.js";import{n as p}from"./chunk-C4HFMTSB.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-DSYQY3K6.js.map
1
+ import{a as c}from"./chunk-WGDZTF7Y.js";import{a as _}from"./chunk-FB3PEQTO.js";import{j as a,k as i,l as s,n,o as F}from"./chunk-AUPAAQUT.js";import{n as p}from"./chunk-C4HFMTSB.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-XTLTKB3S.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-LMYJ6V44.js";import{a as e}from"./chunk-TC7EQZJK.js";import{a as r}from"./chunk-NX7MM6XR.js";import{a as t}from"./chunk-ZXGAFQXW.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-IF42CZJH.js.map
1
+ import{a as t}from"./chunk-ZXGAFQXW.js";import{a}from"./chunk-LMYJ6V44.js";import{a as e}from"./chunk-TC7EQZJK.js";import{a as r}from"./chunk-NX7MM6XR.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-YRC6EEM3.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-CNSE26GY.js";import{b as i}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:s,onSuccess:c,onError:t}){let{onboardingBag:o}=i(),u=e(async n=>{try{await s?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await c?.(r?.data),o?.next();return}r?.error&&t?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(a,{defaultValues:l,onSubmit:u})}e(y,"SelectCountryStep");export{y as a};
2
- //# sourceMappingURL=chunk-BVMAUJC2.js.map
1
+ import{a}from"./chunk-WH3QR2W5.js";import{b as i}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:s,onSuccess:c,onError:t}){let{onboardingBag:o}=i(),u=e(async n=>{try{await s?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await c?.(r?.data),o?.next();return}r?.error&&t?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(a,{defaultValues:l,onSubmit:u})}e(y,"SelectCountryStep");export{y as a};
2
+ //# sourceMappingURL=chunk-YUUUI4FY.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-5IRUNNZB.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 p({onSubmit:t}){let{terminationBag:o}=a(),n=i(async r=>{let m=await o?.parseFormValues(r);await t?.(m),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:n})}i(p,"TerminationDetailsForm");export{p as a};
2
- //# sourceMappingURL=chunk-6WO4PRGN.js.map
1
+ import{a as e}from"./chunk-LCUURLXS.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 p({onSubmit:t}){let{terminationBag:o}=a(),n=i(async r=>{let m=await o?.parseFormValues(r);await t?.(m),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:n})}i(p,"TerminationDetailsForm");export{p as a};
2
+ //# sourceMappingURL=chunk-Z7VNXKWB.js.map
@@ -1,2 +1,2 @@
1
- import{a as h}from"./chunk-3UDRMQNE.js";import{a as E}from"./chunk-36JXX3VA.js";import{b as p}from"./chunk-HBONR7VY.js";import{a as g}from"./chunk-VDRNNOVA.js";import{a as y}from"./chunk-NW3D7CPK.js";import{d as w}from"./chunk-7IIQUZTH.js";import{a as b,h as S,i as C}from"./chunk-PB6UQ4A4.js";import{a as v}from"./chunk-5TOSVOLY.js";import{a as f}from"./chunk-GPWQPJQ7.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-ZZLLPFLS.js.map
1
+ import{a as h}from"./chunk-3UDRMQNE.js";import{a as E}from"./chunk-36JXX3VA.js";import{a as g}from"./chunk-VDRNNOVA.js";import{b as p}from"./chunk-HBONR7VY.js";import{a as y}from"./chunk-NW3D7CPK.js";import{d as w}from"./chunk-7IIQUZTH.js";import{a as b,h as S,i as C}from"./chunk-PB6UQ4A4.js";import{a as v}from"./chunk-5TOSVOLY.js";import{a as f}from"./chunk-GPWQPJQ7.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-ZQVVHVAG.js.map
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-C2HZNBMZ.js";import{a as x}from"./chunk-KZ5ZQTBF.js";import{a as n}from"./chunk-S64P7IA7.js";import{a as F}from"./chunk-JGKYFH4L.js";import{a as s}from"./chunk-5FEJD2N7.js";import{a as c}from"./chunk-WYP2CB4I.js";import{a as k}from"./chunk-H5OZSXSY.js";import{a as T}from"./chunk-PUK2TIQX.js";import{a as g}from"./chunk-JXPMQMTT.js";import{a as b}from"./chunk-IHGCXP2X.js";import{a as m}from"./chunk-CEFR62S6.js";import{a as i}from"./chunk-6IQJJCQ3.js";import{a as f}from"./chunk-GMSYO53D.js";import{a}from"./chunk-GBVBMT3H.js";import{a as u}from"./chunk-JLM4O7ZW.js";import{a as d}from"./chunk-5MH23AST.js";import{a as p}from"./chunk-6IDUDCVS.js";import{a as e}from"./chunk-DSYQY3K6.js";import{a as t}from"./chunk-BWM2MYPE.js";import{a as r}from"./chunk-QHJ3BYJN.js";import{a as o}from"./chunk-4Y2INBAI.js";import{a as l}from"./chunk-6S5Q2OKC.js";import"./chunk-HDFAFTHC.js";import"./chunk-B3MEKP45.js";import"./chunk-WGDZTF7Y.js";import"./chunk-5IIFCA3F.js";import"./chunk-JJUOWS3K.js";import"./chunk-SXW4FROO.js";import"./chunk-2QVO3BVI.js";import"./chunk-2HQDOWW2.js";import"./chunk-QRSWXKRV.js";import"./chunk-XNV6ZN7J.js";import"./chunk-D7MYOH3P.js";import"./chunk-2W354SK7.js";import"./chunk-4BHEQMZV.js";import{a as D}from"./chunk-BUR3X6FL.js";import"./chunk-LKHRHBFP.js";import"./chunk-A7U3KJIP.js";import"./chunk-5TOSVOLY.js";import"./chunk-GPWQPJQ7.js";import"./chunk-AUPAAQUT.js";import"./chunk-VNMUML3T.js";import"./chunk-C4HFMTSB.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";var K={button:g,checkbox:k,countries:l,date:i,drawer:n,email:a,fieldsetToggle:D,file:e,forcedValue:t,"multi-select":d,number:f,radio:u,select:o,statement:m,textarea:r,text:p,zendeskDrawer:F,zendeskTriggerButton:s,table:c,"work-schedule":T,pdfViewer:b,tel:w,time:x};export{K as defaultComponents};
1
+ import{a as w}from"./chunk-C2HZNBMZ.js";import{a as x}from"./chunk-KZ5ZQTBF.js";import{a as n}from"./chunk-S64P7IA7.js";import{a as F}from"./chunk-JGKYFH4L.js";import{a as s}from"./chunk-5FEJD2N7.js";import{a as c}from"./chunk-WYP2CB4I.js";import{a as k}from"./chunk-H5OZSXSY.js";import{a as T}from"./chunk-PUK2TIQX.js";import{a as g}from"./chunk-JXPMQMTT.js";import{a as b}from"./chunk-IHGCXP2X.js";import{a as m}from"./chunk-CEFR62S6.js";import{a as i}from"./chunk-6IQJJCQ3.js";import{a as f}from"./chunk-GMSYO53D.js";import{a}from"./chunk-GBVBMT3H.js";import{a as u}from"./chunk-JLM4O7ZW.js";import{a as d}from"./chunk-5MH23AST.js";import{a as p}from"./chunk-6IDUDCVS.js";import{a as e}from"./chunk-XTLTKB3S.js";import{a as t}from"./chunk-BWM2MYPE.js";import{a as r}from"./chunk-QHJ3BYJN.js";import{a as o}from"./chunk-4Y2INBAI.js";import{a as l}from"./chunk-6S5Q2OKC.js";import"./chunk-HDFAFTHC.js";import"./chunk-B3MEKP45.js";import"./chunk-WGDZTF7Y.js";import"./chunk-5IIFCA3F.js";import"./chunk-JJUOWS3K.js";import"./chunk-SXW4FROO.js";import"./chunk-2QVO3BVI.js";import"./chunk-FB3PEQTO.js";import"./chunk-QRSWXKRV.js";import"./chunk-XNV6ZN7J.js";import"./chunk-D7MYOH3P.js";import"./chunk-2W354SK7.js";import"./chunk-4BHEQMZV.js";import{a as D}from"./chunk-BUR3X6FL.js";import"./chunk-LKHRHBFP.js";import"./chunk-A7U3KJIP.js";import"./chunk-5TOSVOLY.js";import"./chunk-GPWQPJQ7.js";import"./chunk-AUPAAQUT.js";import"./chunk-VNMUML3T.js";import"./chunk-C4HFMTSB.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";var K={button:g,checkbox:k,countries:l,date:i,drawer:n,email:a,fieldsetToggle:D,file:e,forcedValue:t,"multi-select":d,number:f,radio:u,select:o,statement:m,textarea:r,text:p,zendeskDrawer:F,zendeskTriggerButton:s,table:c,"work-schedule":T,pdfViewer:b,tel:w,time:x};export{K as defaultComponents};
2
2
  //# sourceMappingURL=default-components.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-YLSASLPB.js";import"../../chunk-B4O5YUYL.js";import"../../chunk-TWLFK7DD.js";import"../../chunk-H66IKMI4.js";import"../../chunk-JQ3SLOUP.js";import"../../chunk-BHTFKQJO.js";import"../../chunk-POWC7LZN.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-TO2GYQR2.js";import"../../chunk-7HGU72GB.js";import"../../chunk-PVORGGT3.js";import"../../chunk-XFVXRCMH.js";import"../../chunk-4BHEQMZV.js";import"../../chunk-BUR3X6FL.js";import"../../chunk-LKHRHBFP.js";import"../../chunk-A7U3KJIP.js";import"../../chunk-5TOSVOLY.js";import"../../chunk-GPWQPJQ7.js";import"../../chunk-AUPAAQUT.js";import"../../chunk-VNMUML3T.js";import"../../chunk-C4HFMTSB.js";import"../../chunk-M3TA5X2H.js";import"../../chunk-FSGFBJJF.js";import"../../chunk-SWCZJY6I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
1
+ import{a}from"../../chunk-3LELUHRO.js";import"../../chunk-B4O5YUYL.js";import"../../chunk-C5T75DEZ.js";import"../../chunk-H66IKMI4.js";import"../../chunk-JQ3SLOUP.js";import"../../chunk-BHTFKQJO.js";import"../../chunk-POWC7LZN.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-VQRE3YLW.js";import"../../chunk-ALHHN2LG.js";import"../../chunk-PVORGGT3.js";import"../../chunk-XFVXRCMH.js";import"../../chunk-4BHEQMZV.js";import"../../chunk-BUR3X6FL.js";import"../../chunk-LKHRHBFP.js";import"../../chunk-A7U3KJIP.js";import"../../chunk-5TOSVOLY.js";import"../../chunk-GPWQPJQ7.js";import"../../chunk-AUPAAQUT.js";import"../../chunk-VNMUML3T.js";import"../../chunk-C4HFMTSB.js";import"../../chunk-M3TA5X2H.js";import"../../chunk-FSGFBJJF.js";import"../../chunk-SWCZJY6I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
2
2
  //# sourceMappingURL=ContractAmendmentFlow.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-TWLFK7DD.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-TO2GYQR2.js";import"../../chunk-7HGU72GB.js";import"../../chunk-PVORGGT3.js";import"../../chunk-4BHEQMZV.js";import"../../chunk-BUR3X6FL.js";import"../../chunk-LKHRHBFP.js";import"../../chunk-A7U3KJIP.js";import"../../chunk-5TOSVOLY.js";import"../../chunk-GPWQPJQ7.js";import"../../chunk-AUPAAQUT.js";import"../../chunk-VNMUML3T.js";import"../../chunk-C4HFMTSB.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
1
+ import{a}from"../../chunk-C5T75DEZ.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-VQRE3YLW.js";import"../../chunk-ALHHN2LG.js";import"../../chunk-PVORGGT3.js";import"../../chunk-4BHEQMZV.js";import"../../chunk-BUR3X6FL.js";import"../../chunk-LKHRHBFP.js";import"../../chunk-A7U3KJIP.js";import"../../chunk-5TOSVOLY.js";import"../../chunk-GPWQPJQ7.js";import"../../chunk-AUPAAQUT.js";import"../../chunk-VNMUML3T.js";import"../../chunk-C4HFMTSB.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
2
2
  //# sourceMappingURL=ContractAmendmentForm.js.map
@@ -1,2 +1,2 @@
1
- import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-YLSASLPB.js";import{a}from"../../chunk-B4O5YUYL.js";import{a as b}from"../../chunk-TWLFK7DD.js";import{a as c}from"../../chunk-H66IKMI4.js";import{a as d}from"../../chunk-JQ3SLOUP.js";import"../../chunk-BHTFKQJO.js";import"../../chunk-POWC7LZN.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-TO2GYQR2.js";import"../../chunk-7HGU72GB.js";import"../../chunk-PVORGGT3.js";import"../../chunk-XFVXRCMH.js";import"../../chunk-4BHEQMZV.js";import"../../chunk-BUR3X6FL.js";import"../../chunk-LKHRHBFP.js";import"../../chunk-A7U3KJIP.js";import"../../chunk-5TOSVOLY.js";import"../../chunk-GPWQPJQ7.js";import"../../chunk-AUPAAQUT.js";import"../../chunk-VNMUML3T.js";import"../../chunk-C4HFMTSB.js";import"../../chunk-M3TA5X2H.js";import"../../chunk-FSGFBJJF.js";import"../../chunk-SWCZJY6I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
1
+ import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-3LELUHRO.js";import{a}from"../../chunk-B4O5YUYL.js";import{a as b}from"../../chunk-C5T75DEZ.js";import{a as c}from"../../chunk-H66IKMI4.js";import{a as d}from"../../chunk-JQ3SLOUP.js";import"../../chunk-BHTFKQJO.js";import"../../chunk-POWC7LZN.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-VQRE3YLW.js";import"../../chunk-ALHHN2LG.js";import"../../chunk-PVORGGT3.js";import"../../chunk-XFVXRCMH.js";import"../../chunk-4BHEQMZV.js";import"../../chunk-BUR3X6FL.js";import"../../chunk-LKHRHBFP.js";import"../../chunk-A7U3KJIP.js";import"../../chunk-5TOSVOLY.js";import"../../chunk-GPWQPJQ7.js";import"../../chunk-AUPAAQUT.js";import"../../chunk-VNMUML3T.js";import"../../chunk-C4HFMTSB.js";import"../../chunk-M3TA5X2H.js";import"../../chunk-FSGFBJJF.js";import"../../chunk-SWCZJY6I.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-R4J4TF5F.js";import"../../chunk-4ONGXCN3.js";import"../../chunk-6AHENEHD.js";import"../../chunk-KJCCB44M.js";import"../../chunk-MYO3DIES.js";import"../../chunk-CW7CHRMN.js";import"../../chunk-KX4JZXZV.js";import"../../chunk-DB4JHJ3Z.js";import"../../chunk-UUN3PLDE.js";import"../../chunk-KVUKJU5U.js";import"../../chunk-36GVXD2Z.js";import"../../chunk-RK5ZEDOE.js";import"../../chunk-HI6GH4J7.js";import"../../chunk-LBNS4VT7.js";import"../../chunk-V2KDZU2F.js";import"../../chunk-SVVZOMLQ.js";import"../../chunk-MZUPTP2B.js";import"../../chunk-OL5C4QEH.js";import"../../chunk-Q3ALCPJN.js";import"../../chunk-CQVOBIXJ.js";import"../../chunk-ZZLLPFLS.js";import"../../chunk-3UDRMQNE.js";import"../../chunk-36JXX3VA.js";import"../../chunk-HBONR7VY.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-NW3D7CPK.js";import"../../chunk-IXS65MGJ.js";import"../../chunk-BFXBFGBH.js";import"../../chunk-NPVSJYM6.js";import"../../chunk-JKHJR6HK.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-7IIQUZTH.js";import"../../chunk-PB6UQ4A4.js";import"../../chunk-XXQBX7ND.js";import"../../chunk-POWC7LZN.js";import"../../chunk-UZFEJMO6.js";import"../../chunk-KPJ5YKXS.js";import"../../chunk-HDOEUCXY.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-3VTHNE4H.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-TO2GYQR2.js";import"../../chunk-7HGU72GB.js";import"../../chunk-PVORGGT3.js";import"../../chunk-XFVXRCMH.js";import"../../chunk-2W354SK7.js";import"../../chunk-4BHEQMZV.js";import"../../chunk-BUR3X6FL.js";import"../../chunk-LKHRHBFP.js";import"../../chunk-A7U3KJIP.js";import"../../chunk-5TOSVOLY.js";import"../../chunk-GPWQPJQ7.js";import"../../chunk-AUPAAQUT.js";import"../../chunk-VNMUML3T.js";import"../../chunk-C4HFMTSB.js";import"../../chunk-M3TA5X2H.js";import"../../chunk-FSGFBJJF.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
1
+ import{a}from"../../chunk-FGYOG6XG.js";import"../../chunk-MZK2U65W.js";import"../../chunk-WB52GW3H.js";import"../../chunk-3RQSRU7O.js";import"../../chunk-3BQVEYHE.js";import"../../chunk-CW7CHRMN.js";import"../../chunk-F3DZUA7W.js";import"../../chunk-DB4JHJ3Z.js";import"../../chunk-WHDUZGVW.js";import"../../chunk-KVUKJU5U.js";import"../../chunk-WZOVZYNI.js";import"../../chunk-BTZ57COZ.js";import"../../chunk-HI6GH4J7.js";import"../../chunk-SUVBETJS.js";import"../../chunk-7XDU2VWN.js";import"../../chunk-SVVZOMLQ.js";import"../../chunk-WYIU74JN.js";import"../../chunk-OL5C4QEH.js";import"../../chunk-Q3ALCPJN.js";import"../../chunk-UOJOO2DM.js";import"../../chunk-ZQVVHVAG.js";import"../../chunk-3UDRMQNE.js";import"../../chunk-36JXX3VA.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-HBONR7VY.js";import"../../chunk-NW3D7CPK.js";import"../../chunk-IXS65MGJ.js";import"../../chunk-BFXBFGBH.js";import"../../chunk-NPVSJYM6.js";import"../../chunk-JKHJR6HK.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-7IIQUZTH.js";import"../../chunk-PB6UQ4A4.js";import"../../chunk-XXQBX7ND.js";import"../../chunk-POWC7LZN.js";import"../../chunk-UZFEJMO6.js";import"../../chunk-2GTY2DMO.js";import"../../chunk-U7JAGEOV.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-3VTHNE4H.js";import"../../chunk-KFYWUBRS.js";import"../../chunk-VQRE3YLW.js";import"../../chunk-ALHHN2LG.js";import"../../chunk-PVORGGT3.js";import"../../chunk-XFVXRCMH.js";import"../../chunk-2W354SK7.js";import"../../chunk-4BHEQMZV.js";import"../../chunk-BUR3X6FL.js";import"../../chunk-LKHRHBFP.js";import"../../chunk-A7U3KJIP.js";import"../../chunk-5TOSVOLY.js";import"../../chunk-GPWQPJQ7.js";import"../../chunk-AUPAAQUT.js";import"../../chunk-VNMUML3T.js";import"../../chunk-C4HFMTSB.js";import"../../chunk-M3TA5X2H.js";import"../../chunk-FSGFBJJF.js";import"../../chunk-H2O4CVKF.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
2
2
  //# sourceMappingURL=ContractorOnboarding.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-36GVXD2Z.js";import"../../../chunk-MZUPTP2B.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-TO2GYQR2.js";import"../../../chunk-7HGU72GB.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as BasicInformationStep};
1
+ import{a}from"../../../chunk-WZOVZYNI.js";import"../../../chunk-WYIU74JN.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-VQRE3YLW.js";import"../../../chunk-ALHHN2LG.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as BasicInformationStep};
2
2
  //# sourceMappingURL=BasicInformationStep.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-RK5ZEDOE.js";import"../../../chunk-HI6GH4J7.js";import"../../../chunk-MZUPTP2B.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-7IIQUZTH.js";import"../../../chunk-PB6UQ4A4.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-TO2GYQR2.js";import"../../../chunk-7HGU72GB.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as ContractDetailsStep};
1
+ import{a}from"../../../chunk-BTZ57COZ.js";import"../../../chunk-HI6GH4J7.js";import"../../../chunk-WYIU74JN.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-7IIQUZTH.js";import"../../../chunk-PB6UQ4A4.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-VQRE3YLW.js";import"../../../chunk-ALHHN2LG.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as ContractDetailsStep};
2
2
  //# sourceMappingURL=ContractDetailsStep.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-LBNS4VT7.js";import"../../../chunk-MZUPTP2B.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-TO2GYQR2.js";import"../../../chunk-7HGU72GB.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as ContractOriginStep};
1
+ import{a}from"../../../chunk-SUVBETJS.js";import"../../../chunk-WYIU74JN.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-VQRE3YLW.js";import"../../../chunk-ALHHN2LG.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as ContractOriginStep};
2
2
  //# sourceMappingURL=ContractOriginStep.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-V2KDZU2F.js";import"../../../chunk-MZUPTP2B.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-TO2GYQR2.js";import"../../../chunk-7HGU72GB.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as ContractPreviewStep};
1
+ import{a}from"../../../chunk-7XDU2VWN.js";import"../../../chunk-WYIU74JN.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-VQRE3YLW.js";import"../../../chunk-ALHHN2LG.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as ContractPreviewStep};
2
2
  //# sourceMappingURL=ContractPreviewStep.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-MZUPTP2B.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-TO2GYQR2.js";import"../../../chunk-7HGU72GB.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as ContractorOnboardingForm};
1
+ import{a}from"../../../chunk-WYIU74JN.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-VQRE3YLW.js";import"../../../chunk-ALHHN2LG.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as ContractorOnboardingForm};
2
2
  //# sourceMappingURL=ContractorOnboardingForm.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-6AHENEHD.js";import"../../../chunk-MZUPTP2B.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-TO2GYQR2.js";import"../../../chunk-7HGU72GB.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as CreateInvoiceScheduleStep};
1
+ import{a}from"../../../chunk-WB52GW3H.js";import"../../../chunk-WYIU74JN.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-VQRE3YLW.js";import"../../../chunk-ALHHN2LG.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as CreateInvoiceScheduleStep};
2
2
  //# sourceMappingURL=CreateInvoiceScheduleStep.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-KJCCB44M.js";import"../../../chunk-MZUPTP2B.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-TO2GYQR2.js";import"../../../chunk-7HGU72GB.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as EligibilityQuestionnaireStep};
1
+ import{a}from"../../../chunk-3RQSRU7O.js";import"../../../chunk-WYIU74JN.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-VQRE3YLW.js";import"../../../chunk-ALHHN2LG.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as EligibilityQuestionnaireStep};
2
2
  //# sourceMappingURL=EligibilityQuestionnaireStep.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-MYO3DIES.js";import"../../../chunk-MZUPTP2B.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-TO2GYQR2.js";import"../../../chunk-7HGU72GB.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as InvoiceScheduleStep};
1
+ import{a}from"../../../chunk-3BQVEYHE.js";import"../../../chunk-WYIU74JN.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-UZFEJMO6.js";import"../../../chunk-KFYWUBRS.js";import"../../../chunk-VQRE3YLW.js";import"../../../chunk-ALHHN2LG.js";import"../../../chunk-PVORGGT3.js";import"../../../chunk-4BHEQMZV.js";import"../../../chunk-BUR3X6FL.js";import"../../../chunk-LKHRHBFP.js";import"../../../chunk-A7U3KJIP.js";import"../../../chunk-5TOSVOLY.js";import"../../../chunk-GPWQPJQ7.js";import"../../../chunk-AUPAAQUT.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as InvoiceScheduleStep};
2
2
  //# sourceMappingURL=InvoiceScheduleStep.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-KX4JZXZV.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-KPJ5YKXS.js";import"../../../chunk-HDOEUCXY.js";import"../../../chunk-WVJDCDGZ.js";import"../../../chunk-3VTHNE4H.js";import"../../../chunk-XFVXRCMH.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-FSGFBJJF.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as OnboardingInvite};
1
+ import{a}from"../../../chunk-F3DZUA7W.js";import"../../../chunk-Q3ALCPJN.js";import"../../../chunk-2GTY2DMO.js";import"../../../chunk-U7JAGEOV.js";import"../../../chunk-WVJDCDGZ.js";import"../../../chunk-3VTHNE4H.js";import"../../../chunk-XFVXRCMH.js";import"../../../chunk-VNMUML3T.js";import"../../../chunk-C4HFMTSB.js";import"../../../chunk-FSGFBJJF.js";import"../../../chunk-H2O4CVKF.js";import"../../../chunk-P37U34EQ.js";export{a as OnboardingInvite};
2
2
  //# sourceMappingURL=OnboardingInvite.js.map