@remoteoss/remote-flows 1.47.0 → 1.47.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 (347) hide show
  1. package/dist/CheckboxFieldDefault-ASWSMSJD.js +2 -0
  2. package/dist/CountryFieldDefault-JNRZX632.js +1 -1
  3. package/dist/{DatePickerFieldDefault-XSTNHJYN.js → DatePickerFieldDefault-ARSIRGKX.js} +2 -2
  4. package/dist/{FileUploadFieldDefault-IFQK52QA.js → FileUploadFieldDefault-CFK64E3M.js} +2 -2
  5. package/dist/ForcedValueFieldDefault-IB7EX73O.js +2 -0
  6. package/dist/MultiSelectFieldDefault-HP5FIBJY.js +1 -1
  7. package/dist/{RadioGroupFieldDefault-AUAF4USM.js → RadioGroupFieldDefault-DRF3H2ZB.js} +2 -2
  8. package/dist/SelectFieldDefault-ANJ24D2G.js +2 -0
  9. package/dist/{TelFieldDefault-Q7HOBD4G.js → TelFieldDefault-ZKHU4DKH.js} +2 -2
  10. package/dist/TextFieldDefault-RJSD2YDR.js +2 -0
  11. package/dist/TimeFieldDefault-3SO5KXVJ.js +2 -0
  12. package/dist/TimeFieldDefault-3SO5KXVJ.js.map +1 -0
  13. package/dist/{chunk-B2EUK7V5.js → chunk-2NWQ32VQ.js} +2 -2
  14. package/dist/{chunk-GCONDFJ7.js → chunk-2W7O4FMW.js} +2 -2
  15. package/dist/{chunk-2OCNNZ5U.js → chunk-37CRJPVL.js} +2 -2
  16. package/dist/{chunk-HFRQIPC5.js → chunk-4AJD5YEN.js} +2 -2
  17. package/dist/{chunk-QDRQ64QV.js → chunk-4EZST3RL.js} +2 -2
  18. package/dist/{chunk-OPVIHDW2.js → chunk-5EWUWRPW.js} +2 -2
  19. package/dist/{chunk-ZHELRFOX.js → chunk-62VYULBI.js} +2 -2
  20. package/dist/{chunk-V24SYZ5Y.js → chunk-6FWHB4ET.js} +2 -2
  21. package/dist/{chunk-TWJPM5ED.js → chunk-6PDBJULN.js} +2 -2
  22. package/dist/{chunk-JSZYIFHD.js → chunk-73ALSVRF.js} +2 -2
  23. package/dist/chunk-75HIK6IG.js +2 -0
  24. package/dist/chunk-75HIK6IG.js.map +1 -0
  25. package/dist/{chunk-EQK2O2PJ.js → chunk-75ZSFK7I.js} +2 -2
  26. package/dist/{chunk-57NWP6J7.js → chunk-7FBX3RI4.js} +2 -2
  27. package/dist/{chunk-U5AS2HUX.js → chunk-A75HEHRS.js} +2 -2
  28. package/dist/{chunk-YWLILBPW.js → chunk-AES7DMIQ.js} +2 -2
  29. package/dist/{chunk-CFI75D3K.js → chunk-BQDYFFER.js} +2 -2
  30. package/dist/{chunk-D3EISEXY.js → chunk-C6AWXQ67.js} +2 -2
  31. package/dist/{chunk-5QNR3U6E.js → chunk-C6I7R7ZH.js} +2 -2
  32. package/dist/{chunk-6XT3ARIZ.js → chunk-CNXDC3M7.js} +2 -2
  33. package/dist/{chunk-A5RTFMYQ.js → chunk-CT7POXIP.js} +2 -2
  34. package/dist/{chunk-UWJ3TB2O.js → chunk-CZU4U3LY.js} +2 -2
  35. package/dist/{chunk-SFJBEQ2V.js → chunk-DLCEEROX.js} +2 -2
  36. package/dist/{chunk-OK4L3KCU.js → chunk-DO352QQL.js} +2 -2
  37. package/dist/{chunk-V5TMPQVK.js → chunk-DSUJKXRQ.js} +2 -2
  38. package/dist/{chunk-V5TMPQVK.js.map → chunk-DSUJKXRQ.js.map} +1 -1
  39. package/dist/{chunk-BXWYSFLP.js → chunk-DWJGC5YG.js} +2 -2
  40. package/dist/{chunk-D2SVE4KC.js → chunk-E5MKB67X.js} +2 -2
  41. package/dist/{chunk-NNU32TXH.js → chunk-ELXRJXQZ.js} +2 -2
  42. package/dist/{chunk-I2CN6IKR.js → chunk-FHDMPQNW.js} +2 -2
  43. package/dist/{chunk-6GSJHAPZ.js → chunk-FPV6S2OQ.js} +2 -2
  44. package/dist/{chunk-2EKQ35Z2.js → chunk-I5L5SRSG.js} +2 -2
  45. package/dist/{chunk-3HA6BIFT.js → chunk-IQZ63FQX.js} +2 -2
  46. package/dist/{chunk-SQBJ4CLO.js → chunk-KCE6IU5X.js} +2 -2
  47. package/dist/{chunk-GE7DVVKQ.js → chunk-KLBFDP5I.js} +2 -2
  48. package/dist/{chunk-J4TX4IZL.js → chunk-KTOVE7ZS.js} +2 -2
  49. package/dist/{chunk-TRMEUC36.js → chunk-KV2B2CRW.js} +2 -2
  50. package/dist/{chunk-WNI5NWFU.js → chunk-LT5KIEQH.js} +2 -2
  51. package/dist/{chunk-TYVAIHMS.js → chunk-LUADE5XK.js} +2 -2
  52. package/dist/{chunk-A5VJNO74.js → chunk-LVZ5DNTO.js} +2 -2
  53. package/dist/{chunk-XG3CGRPZ.js → chunk-MJ6Z7ARR.js} +2 -2
  54. package/dist/{chunk-JOININRY.js → chunk-MJZCTG7C.js} +2 -2
  55. package/dist/{chunk-V65WVOGC.js → chunk-MW5JVH3X.js} +2 -2
  56. package/dist/{chunk-W4JTBWHM.js → chunk-NGV62VYV.js} +2 -2
  57. package/dist/{chunk-62XCZZJ3.js → chunk-NOQWN76W.js} +2 -2
  58. package/dist/chunk-NRH6RION.js +2 -0
  59. package/dist/{chunk-KBDRU6SO.js.map → chunk-NRH6RION.js.map} +1 -1
  60. package/dist/{chunk-UBRHAMPE.js → chunk-O4MWPCG5.js} +2 -2
  61. package/dist/{chunk-KSZ3D3P3.js → chunk-OEPT3ASY.js} +2 -2
  62. package/dist/{chunk-3CSN7WUM.js → chunk-OEQXIWJJ.js} +2 -2
  63. package/dist/{chunk-Q3JA2NA7.js → chunk-OGRQ3NTD.js} +2 -2
  64. package/dist/{chunk-EX4DXUEC.js → chunk-ORXD3SB2.js} +2 -2
  65. package/dist/{chunk-OGGW2JBW.js → chunk-P32JWGIE.js} +2 -2
  66. package/dist/{chunk-HOJKP4DH.js → chunk-PXBJVZ6I.js} +2 -2
  67. package/dist/{chunk-QC67U4XA.js → chunk-QVULYOKK.js} +2 -2
  68. package/dist/{chunk-K4BWJE5D.js → chunk-VMRTLZQL.js} +2 -2
  69. package/dist/{chunk-NOE5LQOQ.js → chunk-VUKUBHHU.js} +2 -2
  70. package/dist/{chunk-MTGLBR6N.js → chunk-WJ7BE4TU.js} +2 -2
  71. package/dist/{chunk-B7UUTLAM.js → chunk-WOARN6WG.js} +2 -2
  72. package/dist/{chunk-V4DAA7QL.js → chunk-WQS5JWRA.js} +2 -2
  73. package/dist/{chunk-NVIBQAC6.js → chunk-WXLKMK53.js} +2 -2
  74. package/dist/{chunk-J2R3LJ7K.js → chunk-XDPAVB5E.js} +2 -2
  75. package/dist/{chunk-U4EJUZPI.js → chunk-XI5G4SGA.js} +2 -2
  76. package/dist/{chunk-DVPC5UZZ.js → chunk-Y62UA5CG.js} +2 -2
  77. package/dist/{chunk-VUKFUYLG.js → chunk-ZF46HCMZ.js} +2 -2
  78. package/dist/{chunk-EPO6DXOK.js → chunk-ZG2AYULT.js} +2 -2
  79. package/dist/default-components.d.ts +1 -1
  80. package/dist/default-components.js +1 -1
  81. package/dist/default-components.js.map +1 -1
  82. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +2 -2
  83. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  84. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  85. package/dist/flows/ContractAmendment/context.d.ts +2 -2
  86. package/dist/flows/ContractAmendment/hooks.d.ts +2 -2
  87. package/dist/flows/ContractAmendment/index.d.ts +2 -2
  88. package/dist/flows/ContractAmendment/index.js +1 -1
  89. package/dist/flows/ContractAmendment/types.d.ts +2 -2
  90. package/dist/flows/ContractAmendment/utils.d.ts +1 -1
  91. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +4 -4
  92. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  93. package/dist/flows/ContractorOnboarding/api.d.ts +2 -2
  94. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +3 -3
  95. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  96. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +4 -4
  97. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  98. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.d.ts +2 -2
  99. package/dist/flows/ContractorOnboarding/components/ContractOriginStep.js +1 -1
  100. package/dist/flows/ContractorOnboarding/components/ContractPreviewHeader.d.ts +1 -1
  101. package/dist/flows/ContractorOnboarding/components/ContractPreviewStatement.d.ts +1 -1
  102. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +4 -4
  103. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  104. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +4 -4
  105. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  106. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.d.ts +4 -4
  107. package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
  108. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +2 -2
  109. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +4 -4
  110. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  111. package/dist/flows/ContractorOnboarding/components/SaveDraftButton.d.ts +2 -2
  112. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +3 -3
  113. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  114. package/dist/flows/ContractorOnboarding/context.d.ts +4 -4
  115. package/dist/flows/ContractorOnboarding/hooks.d.ts +4 -4
  116. package/dist/flows/ContractorOnboarding/index.d.ts +4 -4
  117. package/dist/flows/ContractorOnboarding/index.js +1 -1
  118. package/dist/flows/ContractorOnboarding/jsfModify.d.ts +4 -4
  119. package/dist/flows/ContractorOnboarding/types.d.ts +4 -4
  120. package/dist/flows/ContractorOnboarding/utils.d.ts +3 -3
  121. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +2 -2
  122. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  123. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +2 -2
  124. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  125. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
  126. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
  127. package/dist/flows/CostCalculator/api.d.ts +2 -2
  128. package/dist/flows/CostCalculator/components/SalaryField.d.ts +1 -1
  129. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  130. package/dist/flows/CostCalculator/context.d.ts +2 -2
  131. package/dist/flows/CostCalculator/hooks.d.ts +2 -2
  132. package/dist/flows/CostCalculator/hooks.js +1 -1
  133. package/dist/flows/CostCalculator/index.d.ts +2 -2
  134. package/dist/flows/CostCalculator/index.js +1 -1
  135. package/dist/flows/CostCalculator/types.d.ts +2 -2
  136. package/dist/flows/CostCalculator/utils.d.ts +2 -2
  137. package/dist/flows/CostCalculator/utils.js +1 -1
  138. package/dist/flows/CreateCompany/CreateCompany.d.ts +3 -3
  139. package/dist/flows/CreateCompany/CreateCompany.js +1 -1
  140. package/dist/flows/CreateCompany/api.d.ts +2 -2
  141. package/dist/flows/CreateCompany/components/AddressDetailsStep.d.ts +3 -3
  142. package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
  143. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.d.ts +3 -3
  144. package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
  145. package/dist/flows/CreateCompany/components/CreateCompanyForm.d.ts +1 -1
  146. package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
  147. package/dist/flows/CreateCompany/context.d.ts +3 -3
  148. package/dist/flows/CreateCompany/hooks.d.ts +3 -3
  149. package/dist/flows/CreateCompany/index.d.ts +3 -3
  150. package/dist/flows/CreateCompany/index.js +1 -1
  151. package/dist/flows/CreateCompany/types.d.ts +3 -3
  152. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.d.ts +2 -2
  153. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundFlow.js +1 -1
  154. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.d.ts +1 -1
  155. package/dist/flows/JsonSchemaPlayground/JsonSchemaPlaygroundForm.js +1 -1
  156. package/dist/flows/JsonSchemaPlayground/context.d.ts +2 -2
  157. package/dist/flows/JsonSchemaPlayground/hooks.d.ts +2 -2
  158. package/dist/flows/JsonSchemaPlayground/index.d.ts +2 -2
  159. package/dist/flows/JsonSchemaPlayground/index.js +1 -1
  160. package/dist/flows/JsonSchemaPlayground/types.d.ts +2 -2
  161. package/dist/flows/Onboarding/OnboardingFlow.d.ts +3 -3
  162. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  163. package/dist/flows/Onboarding/api.d.ts +3 -3
  164. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +1 -1
  165. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  166. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +3 -3
  167. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  168. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +3 -3
  169. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  170. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +3 -3
  171. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  172. package/dist/flows/Onboarding/components/EmploymentAgreementInfoContent.js +1 -1
  173. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.d.ts +3 -3
  174. package/dist/flows/Onboarding/components/EngagementAgreementDetailsStep.js +1 -1
  175. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +3 -3
  176. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  177. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +2 -2
  178. package/dist/flows/Onboarding/components/PreOnboardingRequirements.d.ts +3 -3
  179. package/dist/flows/Onboarding/components/PreviewEmploymentAgreementStep.js +1 -1
  180. package/dist/flows/Onboarding/components/ReviewStep.d.ts +3 -3
  181. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +2 -2
  182. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +3 -3
  183. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  184. package/dist/flows/Onboarding/context.d.ts +3 -3
  185. package/dist/flows/Onboarding/hooks.d.ts +3 -3
  186. package/dist/flows/Onboarding/hooks.js +1 -1
  187. package/dist/flows/Onboarding/index.d.ts +3 -3
  188. package/dist/flows/Onboarding/index.js +1 -1
  189. package/dist/flows/Onboarding/types.d.ts +3 -3
  190. package/dist/flows/Onboarding/utils.d.ts +3 -3
  191. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.d.ts +3 -3
  192. package/dist/flows/PayrollAdminOnboarding/PayrollAdminOnboardingFlow.js +1 -1
  193. package/dist/flows/PayrollAdminOnboarding/api.d.ts +1 -1
  194. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.d.ts +2 -2
  195. package/dist/flows/PayrollAdminOnboarding/components/AdministrativeDetailsStep.js +1 -1
  196. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.d.ts +2 -2
  197. package/dist/flows/PayrollAdminOnboarding/components/ContractDetailsStep.js +1 -1
  198. package/dist/flows/PayrollAdminOnboarding/components/InvitationStep.d.ts +2 -2
  199. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.d.ts +1 -1
  200. package/dist/flows/PayrollAdminOnboarding/components/PayrollAdminForm.js +1 -1
  201. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.d.ts +2 -2
  202. package/dist/flows/PayrollAdminOnboarding/components/SelectCountryStep.js +1 -1
  203. package/dist/flows/PayrollAdminOnboarding/components/useStepSubmitHandler.d.ts +2 -2
  204. package/dist/flows/PayrollAdminOnboarding/context.d.ts +3 -3
  205. package/dist/flows/PayrollAdminOnboarding/hooks.d.ts +3 -3
  206. package/dist/flows/PayrollAdminOnboarding/index.d.ts +3 -3
  207. package/dist/flows/PayrollAdminOnboarding/index.js +1 -1
  208. package/dist/flows/PayrollAdminOnboarding/types.d.ts +3 -3
  209. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.d.ts +3 -3
  210. package/dist/flows/PayrollEmployeeOnboarding/PayrollEmployeeOnboardingFlow.js +1 -1
  211. package/dist/flows/PayrollEmployeeOnboarding/api.d.ts +2 -2
  212. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.d.ts +2 -2
  213. package/dist/flows/PayrollEmployeeOnboarding/components/BankAccountStep.js +1 -1
  214. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.d.ts +2 -2
  215. package/dist/flows/PayrollEmployeeOnboarding/components/FederalTaxesStep.js +1 -1
  216. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.d.ts +2 -2
  217. package/dist/flows/PayrollEmployeeOnboarding/components/HomeAddressStep.js +1 -1
  218. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.d.ts +1 -1
  219. package/dist/flows/PayrollEmployeeOnboarding/components/PayrollEmployeeForm.js +1 -1
  220. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.d.ts +2 -2
  221. package/dist/flows/PayrollEmployeeOnboarding/components/PersonalDetailsStep.js +1 -1
  222. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.d.ts +2 -2
  223. package/dist/flows/PayrollEmployeeOnboarding/components/StateTaxesStep.js +1 -1
  224. package/dist/flows/PayrollEmployeeOnboarding/components/useEmployeeStepSubmitHandler.d.ts +2 -2
  225. package/dist/flows/PayrollEmployeeOnboarding/context.d.ts +3 -3
  226. package/dist/flows/PayrollEmployeeOnboarding/hooks.d.ts +3 -3
  227. package/dist/flows/PayrollEmployeeOnboarding/index.d.ts +3 -3
  228. package/dist/flows/PayrollEmployeeOnboarding/index.js +1 -1
  229. package/dist/flows/PayrollEmployeeOnboarding/types.d.ts +3 -3
  230. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +3 -3
  231. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  232. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +3 -3
  233. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  234. package/dist/flows/Termination/PaidTimeOffForm.d.ts +3 -3
  235. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  236. package/dist/flows/Termination/TerminationDetailsForm.d.ts +3 -3
  237. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  238. package/dist/flows/Termination/TerminationFlow.d.ts +3 -3
  239. package/dist/flows/Termination/TerminationFlow.js +1 -1
  240. package/dist/flows/Termination/TerminationForm.d.ts +3 -3
  241. package/dist/flows/Termination/TerminationForm.js +1 -1
  242. package/dist/flows/Termination/api.d.ts +4 -4
  243. package/dist/flows/Termination/api.js +1 -1
  244. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +4 -4
  245. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +4 -4
  246. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
  247. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +4 -4
  248. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  249. package/dist/flows/Termination/context.d.ts +3 -3
  250. package/dist/flows/Termination/hooks.d.ts +3 -3
  251. package/dist/flows/Termination/hooks.js +1 -1
  252. package/dist/flows/Termination/index.d.ts +4 -4
  253. package/dist/flows/Termination/index.js +1 -1
  254. package/dist/flows/Termination/json-schemas/schema.d.ts +3 -3
  255. package/dist/flows/Termination/types.d.ts +3 -3
  256. package/dist/flows/Termination/utils.d.ts +3 -3
  257. package/dist/flows/types.d.ts +16 -3
  258. package/dist/flows/utils.d.ts +1 -1
  259. package/dist/index.d.ts +11 -11
  260. package/dist/index.js +2 -2
  261. package/dist/index.js.map +1 -1
  262. package/dist/internals.d.ts +3 -3
  263. package/dist/internals.js +1 -1
  264. package/dist/{mutations-DCAaAw5a.d.ts → mutations-CrU9zAmc.d.ts} +1 -1
  265. package/dist/{remoteFlows-dULw8FdP.d.ts → remoteFlows-Bj_CV1Kz.d.ts} +21 -1
  266. package/dist/{types-Cwf67dnV.d.ts → types-BJWaoke6.d.ts} +1 -1
  267. package/dist/{types-D-1MCxhm.d.ts → types-COPUHO0i.d.ts} +2 -2
  268. package/dist/{types-B4GARfFq.d.ts → types-CrefIfI4.d.ts} +1 -1
  269. package/dist/{types-C_UFZOHt.d.ts → types-DKSx7WoE.d.ts} +2 -2
  270. package/dist/{types-BUvpsq6j.d.ts → types-DoaH0jUN.d.ts} +1 -1
  271. package/dist/{types-DwSMO5s-.d.ts → types-T42SC9k7.d.ts} +3 -3
  272. package/dist/{types-Crw4jMds.d.ts → types-hMyVACN6.d.ts} +1 -1
  273. package/dist/{utils-BVwm5Jyt.d.ts → utils-C02FAkSq.d.ts} +1 -1
  274. package/package.json +5 -5
  275. package/dist/CheckboxFieldDefault-YKFNIKBQ.js +0 -2
  276. package/dist/SelectFieldDefault-3AHIKGCW.js +0 -2
  277. package/dist/TextFieldDefault-WIVGKVPT.js +0 -2
  278. package/dist/TimeFieldDefault-7GXGSJYO.js +0 -2
  279. package/dist/chunk-KBDRU6SO.js +0 -2
  280. /package/dist/{CheckboxFieldDefault-YKFNIKBQ.js.map → CheckboxFieldDefault-ASWSMSJD.js.map} +0 -0
  281. /package/dist/{DatePickerFieldDefault-XSTNHJYN.js.map → DatePickerFieldDefault-ARSIRGKX.js.map} +0 -0
  282. /package/dist/{FileUploadFieldDefault-IFQK52QA.js.map → FileUploadFieldDefault-CFK64E3M.js.map} +0 -0
  283. /package/dist/{RadioGroupFieldDefault-AUAF4USM.js.map → ForcedValueFieldDefault-IB7EX73O.js.map} +0 -0
  284. /package/dist/{SelectFieldDefault-3AHIKGCW.js.map → RadioGroupFieldDefault-DRF3H2ZB.js.map} +0 -0
  285. /package/dist/{TelFieldDefault-Q7HOBD4G.js.map → SelectFieldDefault-ANJ24D2G.js.map} +0 -0
  286. /package/dist/{TextFieldDefault-WIVGKVPT.js.map → TelFieldDefault-ZKHU4DKH.js.map} +0 -0
  287. /package/dist/{TimeFieldDefault-7GXGSJYO.js.map → TextFieldDefault-RJSD2YDR.js.map} +0 -0
  288. /package/dist/{chunk-B2EUK7V5.js.map → chunk-2NWQ32VQ.js.map} +0 -0
  289. /package/dist/{chunk-GCONDFJ7.js.map → chunk-2W7O4FMW.js.map} +0 -0
  290. /package/dist/{chunk-2OCNNZ5U.js.map → chunk-37CRJPVL.js.map} +0 -0
  291. /package/dist/{chunk-HFRQIPC5.js.map → chunk-4AJD5YEN.js.map} +0 -0
  292. /package/dist/{chunk-QDRQ64QV.js.map → chunk-4EZST3RL.js.map} +0 -0
  293. /package/dist/{chunk-OPVIHDW2.js.map → chunk-5EWUWRPW.js.map} +0 -0
  294. /package/dist/{chunk-ZHELRFOX.js.map → chunk-62VYULBI.js.map} +0 -0
  295. /package/dist/{chunk-V24SYZ5Y.js.map → chunk-6FWHB4ET.js.map} +0 -0
  296. /package/dist/{chunk-TWJPM5ED.js.map → chunk-6PDBJULN.js.map} +0 -0
  297. /package/dist/{chunk-JSZYIFHD.js.map → chunk-73ALSVRF.js.map} +0 -0
  298. /package/dist/{chunk-EQK2O2PJ.js.map → chunk-75ZSFK7I.js.map} +0 -0
  299. /package/dist/{chunk-57NWP6J7.js.map → chunk-7FBX3RI4.js.map} +0 -0
  300. /package/dist/{chunk-U5AS2HUX.js.map → chunk-A75HEHRS.js.map} +0 -0
  301. /package/dist/{chunk-YWLILBPW.js.map → chunk-AES7DMIQ.js.map} +0 -0
  302. /package/dist/{chunk-CFI75D3K.js.map → chunk-BQDYFFER.js.map} +0 -0
  303. /package/dist/{chunk-D3EISEXY.js.map → chunk-C6AWXQ67.js.map} +0 -0
  304. /package/dist/{chunk-5QNR3U6E.js.map → chunk-C6I7R7ZH.js.map} +0 -0
  305. /package/dist/{chunk-6XT3ARIZ.js.map → chunk-CNXDC3M7.js.map} +0 -0
  306. /package/dist/{chunk-A5RTFMYQ.js.map → chunk-CT7POXIP.js.map} +0 -0
  307. /package/dist/{chunk-UWJ3TB2O.js.map → chunk-CZU4U3LY.js.map} +0 -0
  308. /package/dist/{chunk-SFJBEQ2V.js.map → chunk-DLCEEROX.js.map} +0 -0
  309. /package/dist/{chunk-OK4L3KCU.js.map → chunk-DO352QQL.js.map} +0 -0
  310. /package/dist/{chunk-BXWYSFLP.js.map → chunk-DWJGC5YG.js.map} +0 -0
  311. /package/dist/{chunk-D2SVE4KC.js.map → chunk-E5MKB67X.js.map} +0 -0
  312. /package/dist/{chunk-NNU32TXH.js.map → chunk-ELXRJXQZ.js.map} +0 -0
  313. /package/dist/{chunk-I2CN6IKR.js.map → chunk-FHDMPQNW.js.map} +0 -0
  314. /package/dist/{chunk-6GSJHAPZ.js.map → chunk-FPV6S2OQ.js.map} +0 -0
  315. /package/dist/{chunk-2EKQ35Z2.js.map → chunk-I5L5SRSG.js.map} +0 -0
  316. /package/dist/{chunk-3HA6BIFT.js.map → chunk-IQZ63FQX.js.map} +0 -0
  317. /package/dist/{chunk-SQBJ4CLO.js.map → chunk-KCE6IU5X.js.map} +0 -0
  318. /package/dist/{chunk-GE7DVVKQ.js.map → chunk-KLBFDP5I.js.map} +0 -0
  319. /package/dist/{chunk-J4TX4IZL.js.map → chunk-KTOVE7ZS.js.map} +0 -0
  320. /package/dist/{chunk-TRMEUC36.js.map → chunk-KV2B2CRW.js.map} +0 -0
  321. /package/dist/{chunk-WNI5NWFU.js.map → chunk-LT5KIEQH.js.map} +0 -0
  322. /package/dist/{chunk-TYVAIHMS.js.map → chunk-LUADE5XK.js.map} +0 -0
  323. /package/dist/{chunk-A5VJNO74.js.map → chunk-LVZ5DNTO.js.map} +0 -0
  324. /package/dist/{chunk-XG3CGRPZ.js.map → chunk-MJ6Z7ARR.js.map} +0 -0
  325. /package/dist/{chunk-JOININRY.js.map → chunk-MJZCTG7C.js.map} +0 -0
  326. /package/dist/{chunk-V65WVOGC.js.map → chunk-MW5JVH3X.js.map} +0 -0
  327. /package/dist/{chunk-W4JTBWHM.js.map → chunk-NGV62VYV.js.map} +0 -0
  328. /package/dist/{chunk-62XCZZJ3.js.map → chunk-NOQWN76W.js.map} +0 -0
  329. /package/dist/{chunk-UBRHAMPE.js.map → chunk-O4MWPCG5.js.map} +0 -0
  330. /package/dist/{chunk-KSZ3D3P3.js.map → chunk-OEPT3ASY.js.map} +0 -0
  331. /package/dist/{chunk-3CSN7WUM.js.map → chunk-OEQXIWJJ.js.map} +0 -0
  332. /package/dist/{chunk-Q3JA2NA7.js.map → chunk-OGRQ3NTD.js.map} +0 -0
  333. /package/dist/{chunk-EX4DXUEC.js.map → chunk-ORXD3SB2.js.map} +0 -0
  334. /package/dist/{chunk-OGGW2JBW.js.map → chunk-P32JWGIE.js.map} +0 -0
  335. /package/dist/{chunk-HOJKP4DH.js.map → chunk-PXBJVZ6I.js.map} +0 -0
  336. /package/dist/{chunk-QC67U4XA.js.map → chunk-QVULYOKK.js.map} +0 -0
  337. /package/dist/{chunk-K4BWJE5D.js.map → chunk-VMRTLZQL.js.map} +0 -0
  338. /package/dist/{chunk-NOE5LQOQ.js.map → chunk-VUKUBHHU.js.map} +0 -0
  339. /package/dist/{chunk-MTGLBR6N.js.map → chunk-WJ7BE4TU.js.map} +0 -0
  340. /package/dist/{chunk-B7UUTLAM.js.map → chunk-WOARN6WG.js.map} +0 -0
  341. /package/dist/{chunk-V4DAA7QL.js.map → chunk-WQS5JWRA.js.map} +0 -0
  342. /package/dist/{chunk-NVIBQAC6.js.map → chunk-WXLKMK53.js.map} +0 -0
  343. /package/dist/{chunk-J2R3LJ7K.js.map → chunk-XDPAVB5E.js.map} +0 -0
  344. /package/dist/{chunk-U4EJUZPI.js.map → chunk-XI5G4SGA.js.map} +0 -0
  345. /package/dist/{chunk-DVPC5UZZ.js.map → chunk-Y62UA5CG.js.map} +0 -0
  346. /package/dist/{chunk-VUKFUYLG.js.map → chunk-ZF46HCMZ.js.map} +0 -0
  347. /package/dist/{chunk-EPO6DXOK.js.map → chunk-ZG2AYULT.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-FPV6S2OQ.js";import"./chunk-RKXF7Q7V.js";import"./chunk-DLSHZLHX.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CheckboxFieldDefault};
2
+ //# sourceMappingURL=CheckboxFieldDefault-ASWSMSJD.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-ATRYDXM2.js";import"./chunk-NDWVOVDM.js";import"./chunk-ZHFUFIWX.js";import"./chunk-DOVE5SYY.js";import"./chunk-QO7HHRNA.js";import"./chunk-BC4V2YAK.js";import"./chunk-RKXF7Q7V.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CountryFieldDefault};
1
+ import{a}from"./chunk-ATRYDXM2.js";import"./chunk-NDWVOVDM.js";import"./chunk-ZHFUFIWX.js";import"./chunk-RKXF7Q7V.js";import"./chunk-DOVE5SYY.js";import"./chunk-QO7HHRNA.js";import"./chunk-BC4V2YAK.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as CountryFieldDefault};
2
2
  //# sourceMappingURL=CountryFieldDefault-JNRZX632.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-2OCNNZ5U.js";import"./chunk-ZHFUFIWX.js";import"./chunk-BC4V2YAK.js";import"./chunk-RKXF7Q7V.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as DatePickerFieldDefault};
2
- //# sourceMappingURL=DatePickerFieldDefault-XSTNHJYN.js.map
1
+ import{a}from"./chunk-37CRJPVL.js";import"./chunk-ZHFUFIWX.js";import"./chunk-RKXF7Q7V.js";import"./chunk-BC4V2YAK.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as DatePickerFieldDefault};
2
+ //# sourceMappingURL=DatePickerFieldDefault-ARSIRGKX.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-NNU32TXH.js";import"./chunk-BS2YN6CS.js";import"./chunk-BC4V2YAK.js";import"./chunk-RKXF7Q7V.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as FileUploadFieldDefault};
2
- //# sourceMappingURL=FileUploadFieldDefault-IFQK52QA.js.map
1
+ import{a}from"./chunk-ELXRJXQZ.js";import"./chunk-RKXF7Q7V.js";import"./chunk-BS2YN6CS.js";import"./chunk-BC4V2YAK.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as FileUploadFieldDefault};
2
+ //# sourceMappingURL=FileUploadFieldDefault-CFK64E3M.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-75HIK6IG.js";import"./chunk-RKXF7Q7V.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as ForcedValueFieldDefault};
2
+ //# sourceMappingURL=ForcedValueFieldDefault-IB7EX73O.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-DGHXBSBS.js";import"./chunk-NDWVOVDM.js";import"./chunk-ZHFUFIWX.js";import"./chunk-DOVE5SYY.js";import"./chunk-QO7HHRNA.js";import"./chunk-BC4V2YAK.js";import"./chunk-RKXF7Q7V.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as MultiSelectFieldDefault};
1
+ import{a}from"./chunk-DGHXBSBS.js";import"./chunk-NDWVOVDM.js";import"./chunk-ZHFUFIWX.js";import"./chunk-RKXF7Q7V.js";import"./chunk-DOVE5SYY.js";import"./chunk-QO7HHRNA.js";import"./chunk-BC4V2YAK.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as MultiSelectFieldDefault};
2
2
  //# sourceMappingURL=MultiSelectFieldDefault-HP5FIBJY.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-EQK2O2PJ.js";import"./chunk-GPY3JZJJ.js";import"./chunk-QO7HHRNA.js";import"./chunk-RKXF7Q7V.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as RadioGroupFieldDefault};
2
- //# sourceMappingURL=RadioGroupFieldDefault-AUAF4USM.js.map
1
+ import{a}from"./chunk-75ZSFK7I.js";import"./chunk-RKXF7Q7V.js";import"./chunk-GPY3JZJJ.js";import"./chunk-QO7HHRNA.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as RadioGroupFieldDefault};
2
+ //# sourceMappingURL=RadioGroupFieldDefault-DRF3H2ZB.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-5EWUWRPW.js";import"./chunk-RKXF7Q7V.js";import"./chunk-HFFQ642D.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as SelectFieldDefault};
2
+ //# sourceMappingURL=SelectFieldDefault-ANJ24D2G.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-3CSN7WUM.js";import"./chunk-LQFLXXBR.js";import"./chunk-HFFQ642D.js";import"./chunk-RKXF7Q7V.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TelFieldDefault};
2
- //# sourceMappingURL=TelFieldDefault-Q7HOBD4G.js.map
1
+ import{a}from"./chunk-OEQXIWJJ.js";import"./chunk-RKXF7Q7V.js";import"./chunk-LQFLXXBR.js";import"./chunk-HFFQ642D.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TelFieldDefault};
2
+ //# sourceMappingURL=TelFieldDefault-ZKHU4DKH.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-62VYULBI.js";import"./chunk-RKXF7Q7V.js";import"./chunk-LQFLXXBR.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TextFieldDefault};
2
+ //# sourceMappingURL=TextFieldDefault-RJSD2YDR.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-2NWQ32VQ.js";import"./chunk-RKXF7Q7V.js";import"./chunk-LQFLXXBR.js";import"./chunk-WDO7XH6B.js";import"./chunk-4FGKIGKF.js";import"./chunk-XI55YG73.js";import"./chunk-NXRWBI36.js";import"./chunk-H2O4CVKF.js";import"./chunk-P37U34EQ.js";export{a as TimeFieldDefault};
2
+ //# sourceMappingURL=TimeFieldDefault-3SO5KXVJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-LQFLXXBR.js";import{a as _}from"./chunk-RKXF7Q7V.js";import{j as i,k as p,l as a,n as s,o as F}from"./chunk-4FGKIGKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as d}from"react/jsx-runtime";function w({field:o,fieldState:C,fieldData:m}){let{name:t,label:r,description:l}=m;return d(i,{"data-field":t,className:`RemoteFlows__TimeField__Item__${t}`,children:[r&&e(p,{className:"RemoteFlows__TimeField__Label",children:r}),e(a,{children:e(c,{...o,type:"time",value:o.value??"",onChange:T=>{o.onChange(T)},className:"RemoteFlows__TimeField__Input",placeholder:r})}),(l||m.meta?.helpCenter)&&e(s,{className:"RemoteFlows__TimeField__Description",helpCenter:e(_,{helpCenter:m.meta?.helpCenter}),children:l}),C.error&&e(F,{className:"RemoteFlows__TimeField__Error"})]})}n(w,"TimeFieldDefault");export{w as a};
2
- //# sourceMappingURL=chunk-B2EUK7V5.js.map
1
+ import{a as _}from"./chunk-RKXF7Q7V.js";import{a as c}from"./chunk-LQFLXXBR.js";import{j as i,k as p,l as a,n as s,o as F}from"./chunk-4FGKIGKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as d}from"react/jsx-runtime";function w({field:o,fieldState:C,fieldData:m}){let{name:t,label:r,description:l}=m;return d(i,{"data-field":t,className:`RemoteFlows__TimeField__Item__${t}`,children:[r&&e(p,{className:"RemoteFlows__TimeField__Label",children:r}),e(a,{children:e(c,{...o,type:"time",value:o.value??"",onChange:T=>{o.onChange(T)},className:"RemoteFlows__TimeField__Input",placeholder:r})}),(l||m.meta?.helpCenter)&&e(s,{className:"RemoteFlows__TimeField__Description",helpCenter:e(_,{helpCenter:m.meta?.helpCenter}),children:l}),C.error&&e(F,{className:"RemoteFlows__TimeField__Error"})]})}n(w,"TimeFieldDefault");export{w as a};
2
+ //# sourceMappingURL=chunk-2NWQ32VQ.js.map
@@ -1,2 +1,2 @@
1
- import{a as Q}from"./chunk-JH3WUGO5.js";import{a as J}from"./chunk-LZM3BNK3.js";import{a as H}from"./chunk-XGECMN4V.js";import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-BGSB3XPW.js";import{a as Y}from"./chunk-2EM7DTD6.js";import{f as Z,g as K}from"./chunk-CD2QYFEH.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as q,b as B,c as L,d as z}from"./chunk-LKTCYO6Y.js";import{a as S}from"./chunk-TZIDQ5O3.js";import{a as N}from"./chunk-MREG2JYT.js";import{a as E}from"./chunk-S5BNS2JE.js";import{a as _,c as v}from"./chunk-WDO7XH6B.js";import{u as O}from"./chunk-XI55YG73.js";import{b as w,h as u,n as D}from"./chunk-NXRWBI36.js";import{a as A}from"./chunk-XPVYX7LE.js";import{a as I}from"./chunk-FSGFBJJF.js";import{e as $}from"./chunk-H2O4CVKF.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=$();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>O({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:_.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:_.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:_.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await u(s,me.fields,{isPartialValidation:!0}):f?await u(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await u(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
2
- //# sourceMappingURL=chunk-GCONDFJ7.js.map
1
+ import{a as Q}from"./chunk-JH3WUGO5.js";import{a as J}from"./chunk-LZM3BNK3.js";import{a as U}from"./chunk-6DHV4GT6.js";import{a as W}from"./chunk-BGSB3XPW.js";import{a as Y}from"./chunk-2EM7DTD6.js";import{a as H}from"./chunk-XGECMN4V.js";import{f as Z,g as K}from"./chunk-CD2QYFEH.js";import{a as R}from"./chunk-ZXGAFQXW.js";import{a as q,b as B,c as L,d as z}from"./chunk-LKTCYO6Y.js";import{a as S}from"./chunk-TZIDQ5O3.js";import{a as N}from"./chunk-MREG2JYT.js";import{a as E}from"./chunk-S5BNS2JE.js";import{a as _,c as v}from"./chunk-WDO7XH6B.js";import{u as O}from"./chunk-XI55YG73.js";import{b as w,h as u,n as D}from"./chunk-NXRWBI36.js";import{a as A}from"./chunk-XPVYX7LE.js";import{a as I}from"./chunk-FSGFBJJF.js";import{e as $}from"./chunk-H2O4CVKF.js";import{a as o}from"./chunk-P37U34EQ.js";import xe from"lodash.omitby";import je from"lodash.isnull";import{format as x,isFuture as Ve,parseISO as j,subDays as Pe}from"date-fns";import{useMemo as V}from"react";import be from"lodash.omit";import{useQuery as Fe}from"@tanstack/react-query";var G=o(({query:t,options:e})=>{let{client:y}=$();return Fe({queryKey:["payroll-calendars"],queryFn:o(()=>O({client:y,query:{year:t?.year,country_code:t?.countryCode}}),"queryFn"),enabled:e?.enabled,select:o(c=>c.data?.data?.payroll_calendars?.[0],"select")})},"usePayrollCalendars");import{isFuture as Me,isToday as ge,parseISO as Se}from"date-fns";var X=o(t=>{if(!t)return!1;let e=Se(t);return Me(e)||ge(e)},"isInProbationPeriod");import{Fragment as ke,jsx as m,jsxs as Ce}from"react/jsx-runtime";var lo=o(({employmentId:t,options:e,initialValues:y})=>{let{fieldValues:c,setFieldValues:ee,stepState:l,previousStep:oe,nextStep:ie}=A(q),{data:n,isLoading:te}=N({employmentId:t,queryParams:{exclude_files:!0}}),{data:ne}=G({query:{year:new Date().getFullYear().toString(),countryCode:n?.country?.code},options:{enabled:!!n?.country?.code}}),T=X(n?.probation_period_end_date),F=B(ne),P=V(()=>T?x(new Date,"yyyy-MM-dd"):x(F,"yyyy-MM-dd"),[T,F]),M=!!(n?.provisional_start_date&&Ve(j(n.provisional_start_date))),ae={personal_email:n?.basic_information?.email},g=z({...ae,...y,...l.values?.employee_communication,...l.values?.termination_details,...l.values?.paid_time_off,...l.values?.additional_information},M),d=V(()=>({...g,...c}),[c,g]),b=L({minTerminationDate:F,isEmployeeInProbationPeriod:T,selectedDate:j(d.proposed_termination_date)}),re=V(()=>{let s=R.data.schema.properties.termination_reason.oneOf,a=M?s.filter(i=>i.const==="cancellation_before_start_date"):s.filter(i=>i.const!=="cancellation_before_start_date");return{fields:{risk_assesment_info:S("Offboarding risk assessment","Employees may be protected from termination if they fall into certain categories. To help avoid claims from employees, let us know if the employee is part of one or more of these categories. Select all that apply.",{className:e?.jsfModify?.fields?.risk_assesment_info?.["x-jsf-presentation"]?.className}),termination_reason:{...e?.jsfModify?.fields?.termination_reason,oneOf:a},proposed_termination_date_info:S("Proposed termination date",Ce(ke,{children:["In most cases, Remote must provide notice to the employee before termination. The required notice period depends on local labor laws, the employment agreement, and other factors. We'll use those factors to determine the required notice period.",m(v,{external:!0,zendeskId:_.terminationNoticePeriods,className:D("text-sm",e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.zendeskTriggerButtonClassName),children:"Learn about notice periods"})]}),{className:e?.jsfModify?.fields?.proposed_termination_date_info?.["x-jsf-presentation"]?.className}),proposed_termination_date:{...e?.jsfModify?.fields?.proposed_termination_date,"x-jsf-presentation":{...e?.jsfModify?.fields?.proposed_termination_date?.["x-jsf-presentation"],minDate:P,...d.termination_reason==="cancellation_before_start_date"&&n?.provisional_start_date?{maxDate:x(Pe(j(n.provisional_start_date),1),"yyyy-MM-dd")}:{},...b},...d.termination_reason==="cancellation_before_start_date"?{"x-jsf-errorMessage":{maximum:"The proposed termination date must be before the employee's start date."}}:{}},paid_time_off_info:{...e?.jsfModify?.fields?.paid_time_off_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.paid_time_off_info?.["x-jsf-presentation"]?.Component;return m(J,{employeeName:n?.basic_information?.name,proposedTerminationDate:d.proposed_termination_date,employmentId:t,employment:n,render:r=>i?m(i,{...r}):m(Q,{...r})})},"Component")}},acknowledge_termination_procedure_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"],Component:o(()=>{let i=e?.jsfModify?.fields?.acknowledge_termination_procedure_info?.["x-jsf-presentation"]?.Component;return m(U,{render:r=>i?m(i,{...r}):m(W,{...r})})},"Component")}},acknowledge_termination_procedure_fees_info:{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,"x-jsf-presentation":{...e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"],Component:o(()=>{let i={involuntaryOffboardingServiceChargeZendeskId:_.involuntaryOffboardingServiceCharge,reconciliationInvoiceZendeskId:_.reconciliationInvoice},r=e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info?.["x-jsf-presentation"]?.Component;return r?m(r,{...i}):m(Y,{...i})},"Component")}}}}},[n,t,d.proposed_termination_date,d.termination_reason,M,P,e?.jsfModify?.fields?.acknowledge_termination_procedure_fees_info,e?.jsfModify?.fields?.acknowledge_termination_procedure_info,e?.jsfModify?.fields?.paid_time_off_info,e?.jsfModify?.fields?.proposed_termination_date,e?.jsfModify?.fields?.proposed_termination_date_info,e?.jsfModify?.fields?.risk_assesment_info,e?.jsfModify?.fields?.termination_reason,b]),{data:f,isLoading:se}=K({formValues:d,jsfModify:{...e?.jsfModify,fields:{...e?.jsfModify?.fields,...re?.fields}},step:l.currentStep.name}),me=E(H.data.schema),k=Z(),{mutateAsync:de}=w(k);async function fe(s){if(!t)throw new Error("Employment id is missing");if(f){let a=await C(s,!0),{customer_informed_employee:i}=a,r=i==="yes"?{employee_awareness:{date:a.customer_informed_employee_date,note:a.customer_informed_employee_description}}:void 0,ue=await I(a,["agrees_to_pto_amount","confidential","customer_informed_employee","will_challenge_termination"]),_e=be(ue,"customer_informed_employee_date","customer_informed_employee_description"),ye=xe({..._e,...r},je),p=a.timesheet_file??[],h=Array.isArray(p)&&p.length>0?{content:p[0].content,name:p[0].name}:void 0,Te={employment_id:t,termination_details:{...ye,timesheet_file:h||void 0},type:"termination"};return de(Te)}}o(fe,"onSubmit");function le(){oe()}o(le,"back");function ce(){ie()}o(ce,"next");let pe=Object.keys(c).length>0,C=o(async(s,a=!1)=>a?await u(s,me.fields,{isPartialValidation:!0}):f?await u(s,f?.fields,{isPartialValidation:!0}):{},"parseFormValues");return{employmentId:t,employment:n,fieldValues:d,isDirty:pe,stepState:l,fields:f?.fields||[],isLoading:se||te,isSubmitting:k.isPending,initialValues:g,handleValidation:o(async s=>{if(f){let a=await u(s,f?.fields);return f?.handleValidation(a)}return null},"handleValidation"),checkFieldUpdates:ee,parseFormValues:C,onSubmit:fe,back:le,next:ce}},"useTermination");export{lo as a};
2
+ //# sourceMappingURL=chunk-2W7O4FMW.js.map
@@ -1,2 +1,2 @@
1
- import{a as P,b as k,c as N}from"./chunk-ZHFUFIWX.js";import{a as u,b as F}from"./chunk-BC4V2YAK.js";import{a as C}from"./chunk-RKXF7Q7V.js";import{j as v,k as x,l as b,n as D,o as w}from"./chunk-4FGKIGKF.js";import{n as a}from"./chunk-NXRWBI36.js";import{a as n}from"./chunk-P37U34EQ.js";import{CalendarIcon as T}from"lucide-react";import{format as Y}from"date-fns";import{ChevronLeft as O,ChevronRight as V}from"lucide-react";import{DayPicker as B}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function R({className:t,classNames:m,showOutsideDays:c=!0,...r}){return p(B,{showOutsideDays:c,className:a("p-3",t),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:a(u({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:a("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:a(u({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...m},components:{IconLeft:n(({className:l,...o})=>p(O,{className:a("size-4",l),...o}),"IconLeft"),IconRight:n(({className:l,...o})=>p(V,{className:a("size-4",l),...o}),"IconRight")},...r})}n(R,"Calendar");import{useState as $}from"react";import{Fragment as E,jsx as e,jsxs as f}from"react/jsx-runtime";function re({field:t,fieldData:m,fieldState:c}){let{name:r,label:l,description:o,minDate:g,maxDate:y}=m,d=g?new Date(g):void 0,i=y?new Date(y):void 0,[M,_]=$(!1),I=new Date().getFullYear(),h=d?d.getFullYear():1900,L=Math.max(h,i?i.getFullYear():I+10);return f(v,{"data-field":r,className:`flex flex-col RemoteFlows__DatePickerField__Item__${r}`,children:[e(x,{className:"RemoteFlows__DatePickerField__Label",children:l}),f(P,{open:M,onOpenChange:_,children:[e(k,{asChild:!0,children:e(b,{children:e("div",{children:f(F,{type:"button",variant:"outline",className:a("w-full pl-3 text-left font-normal",!t.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${r}`,children:[t.value&&e(E,{children:Y(t.value,"yyyy-MM-dd")}),e(T,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(N,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(R,{mode:"single",captionLayout:"dropdown",fromYear:h,toYear:L,className:"RemoteFlows__DatepickerField__Calendar",selected:t.value?new Date(t.value):void 0,onDayClick:s=>{let z=Y(s,"yyyy-MM-dd");t.onChange(z),_(!1)},defaultMonth:t.value?new Date(t.value):i??d,disabled:s=>!!(d&&s<d||i&&s>i)})})]}),o?e(D,{helpCenter:e(C,{helpCenter:m.meta?.helpCenter}),children:o}):null,c.error&&e(w,{className:"RemoteFlows__DatePickerField__Error"})]})}n(re,"DatePickerFieldDefault");export{re as a};
2
- //# sourceMappingURL=chunk-2OCNNZ5U.js.map
1
+ import{a as P,b as k,c as N}from"./chunk-ZHFUFIWX.js";import{a as C}from"./chunk-RKXF7Q7V.js";import{a as u,b as F}from"./chunk-BC4V2YAK.js";import{j as v,k as x,l as b,n as D,o as w}from"./chunk-4FGKIGKF.js";import{n as a}from"./chunk-NXRWBI36.js";import{a as n}from"./chunk-P37U34EQ.js";import{CalendarIcon as T}from"lucide-react";import{format as Y}from"date-fns";import{ChevronLeft as O,ChevronRight as V}from"lucide-react";import{DayPicker as B}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function R({className:t,classNames:m,showOutsideDays:c=!0,...r}){return p(B,{showOutsideDays:c,className:a("p-3",t),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:a(u({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:a("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:a(u({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...m},components:{IconLeft:n(({className:l,...o})=>p(O,{className:a("size-4",l),...o}),"IconLeft"),IconRight:n(({className:l,...o})=>p(V,{className:a("size-4",l),...o}),"IconRight")},...r})}n(R,"Calendar");import{useState as $}from"react";import{Fragment as E,jsx as e,jsxs as f}from"react/jsx-runtime";function re({field:t,fieldData:m,fieldState:c}){let{name:r,label:l,description:o,minDate:g,maxDate:y}=m,d=g?new Date(g):void 0,i=y?new Date(y):void 0,[M,_]=$(!1),I=new Date().getFullYear(),h=d?d.getFullYear():1900,L=Math.max(h,i?i.getFullYear():I+10);return f(v,{"data-field":r,className:`flex flex-col RemoteFlows__DatePickerField__Item__${r}`,children:[e(x,{className:"RemoteFlows__DatePickerField__Label",children:l}),f(P,{open:M,onOpenChange:_,children:[e(k,{asChild:!0,children:e(b,{children:e("div",{children:f(F,{type:"button",variant:"outline",className:a("w-full pl-3 text-left font-normal",!t.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${r}`,children:[t.value&&e(E,{children:Y(t.value,"yyyy-MM-dd")}),e(T,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(N,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(R,{mode:"single",captionLayout:"dropdown",fromYear:h,toYear:L,className:"RemoteFlows__DatepickerField__Calendar",selected:t.value?new Date(t.value):void 0,onDayClick:s=>{let z=Y(s,"yyyy-MM-dd");t.onChange(z),_(!1)},defaultMonth:t.value?new Date(t.value):i??d,disabled:s=>!!(d&&s<d||i&&s>i)})})]}),o?e(D,{helpCenter:e(C,{helpCenter:m.meta?.helpCenter}),children:o}):null,c.error&&e(w,{className:"RemoteFlows__DatePickerField__Error"})]})}n(re,"DatePickerFieldDefault");export{re as a};
2
+ //# sourceMappingURL=chunk-37CRJPVL.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-DVPC5UZZ.js";import{b as m}from"./chunk-76ZDXC2T.js";import{x as i}from"./chunk-NXRWBI36.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function l({onSubmit:c,onSuccess:p,onError:t}){let{createCompanyBag:o}=m(),u=a(async r=>{try{await c?.({countryCode:r.country_code,companyOwnerEmail:r.company_owner_email,companyOwnerName:r.company_owner_name,desiredCurrency:r.desired_currency,name:r.name,phoneNumber:r.phone_number,taxNumber:r.tax_number});let n=await o.onSubmit(r);if(n?.data){await p?.(n?.data),o?.next();return}if(n?.error){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}}catch(n){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}},"handleSubmit"),f=o.stepState.values?.company_basic_information||o.initialValues.company_basic_information;return d(s,{defaultValues:f,onSubmit:u})}a(l,"CompanyBasicInformationStep");export{l as a};
2
- //# sourceMappingURL=chunk-HFRQIPC5.js.map
1
+ import{a as s}from"./chunk-Y62UA5CG.js";import{b as m}from"./chunk-76ZDXC2T.js";import{x as i}from"./chunk-NXRWBI36.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function l({onSubmit:c,onSuccess:p,onError:t}){let{createCompanyBag:o}=m(),u=a(async r=>{try{await c?.({countryCode:r.country_code,companyOwnerEmail:r.company_owner_email,companyOwnerName:r.company_owner_name,desiredCurrency:r.desired_currency,name:r.name,phoneNumber:r.phone_number,taxNumber:r.tax_number});let n=await o.onSubmit(r);if(n?.data){await p?.(n?.data),o?.next();return}if(n?.error){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}}catch(n){let e=i(n,o.meta?.fields?.company_basic_information);t?.(e)}},"handleSubmit"),f=o.stepState.values?.company_basic_information||o.initialValues.company_basic_information;return d(s,{defaultValues:f,onSubmit:u})}a(l,"CompanyBasicInformationStep");export{l as a};
2
+ //# sourceMappingURL=chunk-4AJD5YEN.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-A5RTFMYQ.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-NXRWBI36.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as S}from"react/jsx-runtime";function w({components:c,onSubmit:m,onSuccess:d,onError:p}){let{contractorOnboardingBag:r}=e(),u=n(async(i,l)=>{try{let t=await r.parseFormValues(i);await m?.(t);let o=await r.onSubmit(i);if(o?.data){await d?.(o.data),r?.next();return}}catch(t){let o=a(t,r.meta?.fields?.contract_origin,l);p?.(o)}},"handleSubmit"),g=r.stepState.values?.contract_origin||r.initialValues.contract_origin;return S(s,{components:c,defaultValues:g,onSubmit:u})}n(w,"ContractOriginStep");export{w as a};
2
- //# sourceMappingURL=chunk-QDRQ64QV.js.map
1
+ import{a as s}from"./chunk-CT7POXIP.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-NXRWBI36.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as S}from"react/jsx-runtime";function w({components:c,onSubmit:m,onSuccess:d,onError:p}){let{contractorOnboardingBag:r}=e(),u=n(async(i,l)=>{try{let t=await r.parseFormValues(i);await m?.(t);let o=await r.onSubmit(i);if(o?.data){await d?.(o.data),r?.next();return}}catch(t){let o=a(t,r.meta?.fields?.contract_origin,l);p?.(o)}},"handleSubmit"),g=r.stepState.values?.contract_origin||r.initialValues.contract_origin;return S(s,{components:c,defaultValues:g,onSubmit:u})}n(w,"ContractOriginStep");export{w as a};
2
+ //# sourceMappingURL=chunk-4EZST3RL.js.map
@@ -1,2 +1,2 @@
1
- import{a as d,b as C,c as u,d as g,e as b,f as v}from"./chunk-HFFQ642D.js";import{a as S}from"./chunk-RKXF7Q7V.js";import{j as n,k as i,l as _,n as F,o as p}from"./chunk-4FGKIGKF.js";import{a as c}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as N}from"react/jsx-runtime";function f({field:r,fieldState:a,fieldData:t}){let{name:m,label:o,description:s,options:h}=t;return N(n,{"data-field":m,className:`RemoteFlows__SelectField__Item__${m}`,children:[e(i,{className:"RemoteFlows__SelectField__Label",children:o}),e(_,{children:e("div",{className:"relative",children:N(d,{value:r.value||"",onValueChange:l=>{r.onChange(l)},children:[e(g,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!a.error,"aria-label":o,children:e("span",{className:"absolute",children:e(u,{placeholder:o})})}),e(b,{className:"RemoteFlows__SelectField__Content",children:e(C,{className:"RemoteFlows__SelectField__Group",children:h?.map(l=>e(v,{value:l.value,className:"RemoteFlows__SelectField__SelectItem",disabled:l.disabled,children:l.label},l.value))})})]})})}),(s||t.meta?.helpCenter)&&e(F,{helpCenter:e(S,{helpCenter:t.meta?.helpCenter}),children:s}),a.error&&e(p,{})]})}c(f,"SelectFieldDefault");export{f as a};
2
- //# sourceMappingURL=chunk-OPVIHDW2.js.map
1
+ import{a as S}from"./chunk-RKXF7Q7V.js";import{a as d,b as C,c as u,d as g,e as b,f as v}from"./chunk-HFFQ642D.js";import{j as n,k as i,l as _,n as F,o as p}from"./chunk-4FGKIGKF.js";import{a as c}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as N}from"react/jsx-runtime";function f({field:r,fieldState:a,fieldData:t}){let{name:m,label:o,description:s,options:h}=t;return N(n,{"data-field":m,className:`RemoteFlows__SelectField__Item__${m}`,children:[e(i,{className:"RemoteFlows__SelectField__Label",children:o}),e(_,{children:e("div",{className:"relative",children:N(d,{value:r.value||"",onValueChange:l=>{r.onChange(l)},children:[e(g,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!a.error,"aria-label":o,children:e("span",{className:"absolute",children:e(u,{placeholder:o})})}),e(b,{className:"RemoteFlows__SelectField__Content",children:e(C,{className:"RemoteFlows__SelectField__Group",children:h?.map(l=>e(v,{value:l.value,className:"RemoteFlows__SelectField__SelectItem",disabled:l.disabled,children:l.label},l.value))})})]})})}),(s||t.meta?.helpCenter)&&e(F,{helpCenter:e(S,{helpCenter:t.meta?.helpCenter}),children:s}),a.error&&e(p,{})]})}c(f,"SelectFieldDefault");export{f as a};
2
+ //# sourceMappingURL=chunk-5EWUWRPW.js.map
@@ -1,2 +1,2 @@
1
- import{a as x}from"./chunk-LQFLXXBR.js";import{a as d}from"./chunk-RKXF7Q7V.js";import{j as p,k as i,l as _,n as F,o as c}from"./chunk-4FGKIGKF.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as C}from"react/jsx-runtime";function I({field:o,fieldState:u,fieldData:t}){let{name:n,label:r,description:s,descriptionSuffix:m,maxLength:T,includeErrorMessage:h}=t,l=(s||t.meta?.helpCenter)&&e(F,{as:m?"span":"p",className:"RemoteFlows__TextField__Description",helpCenter:e(d,{helpCenter:t.meta?.helpCenter}),children:s});return C(p,{"data-field":n,className:`RemoteFlows__TextField__Item__${n}`,children:[r&&e(i,{className:"RemoteFlows__TextField__Label",children:r}),e(_,{children:e(x,{...o,value:o.value??"",onChange:f=>{o.onChange(f)},className:"RemoteFlows__TextField__Input",placeholder:r,maxLength:T})}),m?C("span",{className:"RemoteFlows__TextField__DescriptionGroup",children:[l," ",e("span",{className:"RemoteFlows__TextField__DescriptionSuffix",children:m})]}):l,h&&u.error&&e(c,{className:"RemoteFlows__TextField__Error"})]})}a(I,"TextFieldDefault");export{I as a};
2
- //# sourceMappingURL=chunk-ZHELRFOX.js.map
1
+ import{a as d}from"./chunk-RKXF7Q7V.js";import{a as x}from"./chunk-LQFLXXBR.js";import{j as p,k as i,l as _,n as F,o as c}from"./chunk-4FGKIGKF.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as e,jsxs as C}from"react/jsx-runtime";function I({field:o,fieldState:u,fieldData:t}){let{name:n,label:r,description:s,descriptionSuffix:m,maxLength:T,includeErrorMessage:h}=t,l=(s||t.meta?.helpCenter)&&e(F,{as:m?"span":"p",className:"RemoteFlows__TextField__Description",helpCenter:e(d,{helpCenter:t.meta?.helpCenter}),children:s});return C(p,{"data-field":n,className:`RemoteFlows__TextField__Item__${n}`,children:[r&&e(i,{className:"RemoteFlows__TextField__Label",children:r}),e(_,{children:e(x,{...o,value:o.value??"",onChange:f=>{o.onChange(f)},className:"RemoteFlows__TextField__Input",placeholder:r,maxLength:T})}),m?C("span",{className:"RemoteFlows__TextField__DescriptionGroup",children:[l," ",e("span",{className:"RemoteFlows__TextField__DescriptionSuffix",children:m})]}):l,h&&u.error&&e(c,{className:"RemoteFlows__TextField__Error"})]})}a(I,"TextFieldDefault");export{I as a};
2
+ //# sourceMappingURL=chunk-62VYULBI.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-VZ34NZXF.js";import{a}from"./chunk-F6NFCJYW.js";import{a as e}from"./chunk-HYWQLLZC.js";import{a as t}from"./chunk-2EKQ35Z2.js";import{a as n}from"./chunk-4MI7BMM5.js";import{a as r}from"./chunk-P37U34EQ.js";import{useId as S}from"react";import{jsx as y}from"react/jsx-runtime";var x=r(({defaultSchema:s,initialValues:d,schemas:u,onSubmit:c,onSchemaChange:P,onError:l,render:p})=>{let g=S(),o=e({defaultSchema:s,initialValues:d,schemas:u,onSubmit:c,onSchemaChange:P,onError:l});return y(n.Provider,{value:{formId:g,playgroundBag:o},children:p({playgroundBag:o,components:{Form:t,SubmitButton:a,ResetButton:m}})})},"JsonSchemaPlaygroundFlow");export{x as a};
2
- //# sourceMappingURL=chunk-V24SYZ5Y.js.map
1
+ import{a}from"./chunk-F6NFCJYW.js";import{a as e}from"./chunk-HYWQLLZC.js";import{a as t}from"./chunk-I5L5SRSG.js";import{a as m}from"./chunk-VZ34NZXF.js";import{a as n}from"./chunk-4MI7BMM5.js";import{a as r}from"./chunk-P37U34EQ.js";import{useId as S}from"react";import{jsx as y}from"react/jsx-runtime";var x=r(({defaultSchema:s,initialValues:d,schemas:u,onSubmit:c,onSchemaChange:P,onError:l,render:p})=>{let g=S(),o=e({defaultSchema:s,initialValues:d,schemas:u,onSubmit:c,onSchemaChange:P,onError:l});return y(n.Provider,{value:{formId:g,playgroundBag:o},children:p({playgroundBag:o,components:{Form:t,SubmitButton:a,ResetButton:m}})})},"JsonSchemaPlaygroundFlow");export{x as a};
2
+ //# sourceMappingURL=chunk-6FWHB4ET.js.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-62XCZZJ3.js";import{a as s}from"./chunk-X7KIEFEN.js";import{b as t}from"./chunk-SS2SYDCB.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function d(l){let{employeeBag:e}=t(),a=s(l);return n(r,{onSubmit:a,defaultValues:{...e.initialValues?.home_address,...e.stepState.values?.home_address}})}o(d,"HomeAddressStep");export{d as a};
2
- //# sourceMappingURL=chunk-TWJPM5ED.js.map
1
+ import{a as s}from"./chunk-X7KIEFEN.js";import{a as r}from"./chunk-NOQWN76W.js";import{b as t}from"./chunk-SS2SYDCB.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function d(l){let{employeeBag:e}=t(),a=s(l);return n(r,{onSubmit:a,defaultValues:{...e.initialValues?.home_address,...e.stepState.values?.home_address}})}o(d,"HomeAddressStep");export{d as a};
2
+ //# sourceMappingURL=chunk-6PDBJULN.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-Q3JA2NA7.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as t}from"./chunk-NXRWBI36.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-JSZYIFHD.js.map
1
+ import{a as m}from"./chunk-OGRQ3NTD.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as t}from"./chunk-NXRWBI36.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-73ALSVRF.js.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-RKXF7Q7V.js";import{m as s}from"./chunk-4FGKIGKF.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as t,jsxs as c}from"react/jsx-runtime";function u({fieldData:d}){let{name:e,title:o,description:r,meta:p}=d,i=`forced-value-${e}-title`,l=`forced-value-${e}-description`;return c("div",{role:"group","aria-labelledby":o?i:void 0,"aria-describedby":r?l:void 0,children:[o&&t("p",{id:i,className:`text-sm RemoteFlows__ForcedValue__Title__${e}`,dangerouslySetInnerHTML:{__html:o}}),t(s,{as:"span",id:l,className:`text-xs RemoteFlows__ForcedValue__Description__${e}`,helpCenter:t(a,{className:"RemoteFlows__ForcedValue__HelpCenterLink",helpCenter:p?.helpCenter}),children:r})]})}n(u,"ForcedValueFieldDefault");export{u as a};
2
+ //# sourceMappingURL=chunk-75HIK6IG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/form/fields/default/ForcedValueFieldDefault.tsx"],"sourcesContent":["import { ForcedValueComponentProps } from '@/src/types/fields';\nimport { BaseFormDescription as Description } from '@/src/components/ui/form';\nimport { HelpCenter } from '@/src/components/shared/zendesk-drawer/HelpCenter';\n\nexport function ForcedValueFieldDefault({\n fieldData,\n}: ForcedValueComponentProps) {\n const { name, title, description, meta } = fieldData;\n\n const titleId = `forced-value-${name}-title`;\n const descriptionId = `forced-value-${name}-description`;\n\n return (\n <div\n role='group'\n aria-labelledby={title ? titleId : undefined}\n aria-describedby={description ? descriptionId : undefined}\n >\n {title && (\n <p\n id={titleId}\n className={`text-sm RemoteFlows__ForcedValue__Title__${name}`}\n dangerouslySetInnerHTML={{\n __html: title,\n }}\n />\n )}\n <Description\n as='span'\n id={descriptionId}\n className={`text-xs RemoteFlows__ForcedValue__Description__${name}`}\n helpCenter={\n <HelpCenter\n className='RemoteFlows__ForcedValue__HelpCenterLink'\n helpCenter={meta?.helpCenter}\n />\n }\n >\n {description}\n </Description>\n </div>\n );\n}\n"],"mappings":"mHAaI,OAMI,OAAAA,EANJ,QAAAC,MAAA,oBATG,SAASC,EAAwB,CACtC,UAAAC,CACF,EAA8B,CAC5B,GAAM,CAAE,KAAAC,EAAM,MAAAC,EAAO,YAAAC,EAAa,KAAAC,CAAK,EAAIJ,EAErCK,EAAU,gBAAgBJ,CAAI,SAC9BK,EAAgB,gBAAgBL,CAAI,eAE1C,OACEH,EAAC,OACC,KAAK,QACL,kBAAiBI,EAAQG,EAAU,OACnC,mBAAkBF,EAAcG,EAAgB,OAE/C,UAAAJ,GACCL,EAAC,KACC,GAAIQ,EACJ,UAAW,4CAA4CJ,CAAI,GAC3D,wBAAyB,CACvB,OAAQC,CACV,EACF,EAEFL,EAACU,EAAA,CACC,GAAG,OACH,GAAID,EACJ,UAAW,kDAAkDL,CAAI,GACjE,WACEJ,EAACW,EAAA,CACC,UAAU,2CACV,WAAYJ,GAAM,WACpB,EAGD,SAAAD,EACH,GACF,CAEJ,CAtCgBM,EAAAV,EAAA","names":["jsx","jsxs","ForcedValueFieldDefault","fieldData","name","title","description","meta","titleId","descriptionId","BaseFormDescription","HelpCenter","__name"]}
@@ -1,2 +1,2 @@
1
- import{a as f,b as g}from"./chunk-GPY3JZJJ.js";import{b as R}from"./chunk-QO7HHRNA.js";import{a as u}from"./chunk-RKXF7Q7V.js";import{j as t,k as F,l as s,n as d,o as _}from"./chunk-4FGKIGKF.js";import{n as l}from"./chunk-NXRWBI36.js";import{a as c}from"./chunk-P37U34EQ.js";import{Fragment as h}from"react";import{jsx as e,jsxs as m}from"react/jsx-runtime";var w=c(({field:n,fieldData:a,fieldState:C})=>{let{name:r,label:i,description:p,options:b}=a;return e("fieldset",{className:l("space-y-3",`RemoteFlows__RadioGroupField__Item__${r}`),"data-field":r,children:m(t,{children:[e("legend",{children:i}),(p||a.meta?.helpCenter)&&e(d,{helpCenter:e(u,{helpCenter:a.meta?.helpCenter}),children:p}),e(s,{children:e(f,{"aria-label":i||r,onValueChange:o=>{n.onChange(o)},value:n.value,className:"flex flex-col",children:b?.map(o=>e(h,{children:m(t,{"data-field":r,className:"flex items-start space-x-3 space-y-0 gap-0 min-h-[24px] RemoteFlows__RadioField__Item",children:[e(s,{children:e(g,{value:o.value,className:l("RemoteFlows__RadioField__Input",o.recommended&&"mt-1"),disabled:o.disabled})}),m("div",{children:[m(F,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:[e("span",{dangerouslySetInnerHTML:{__html:o.label}})," ",o.recommended&&e(R,{variant:"secondary",className:"ml-2",children:"Recommended"})]}),o.description&&e(d,{className:"mt-2",children:o.description})]})]})},o.value))})}),C.error&&e(_,{})]})})},"RadioGroupFieldDefault");export{w as a};
2
- //# sourceMappingURL=chunk-EQK2O2PJ.js.map
1
+ import{a as u}from"./chunk-RKXF7Q7V.js";import{a as f,b as g}from"./chunk-GPY3JZJJ.js";import{b as R}from"./chunk-QO7HHRNA.js";import{j as t,k as F,l as s,n as d,o as _}from"./chunk-4FGKIGKF.js";import{n as l}from"./chunk-NXRWBI36.js";import{a as c}from"./chunk-P37U34EQ.js";import{Fragment as h}from"react";import{jsx as e,jsxs as m}from"react/jsx-runtime";var w=c(({field:n,fieldData:a,fieldState:C})=>{let{name:r,label:i,description:p,options:b}=a;return e("fieldset",{className:l("space-y-3",`RemoteFlows__RadioGroupField__Item__${r}`),"data-field":r,children:m(t,{children:[e("legend",{children:i}),(p||a.meta?.helpCenter)&&e(d,{helpCenter:e(u,{helpCenter:a.meta?.helpCenter}),children:p}),e(s,{children:e(f,{"aria-label":i||r,onValueChange:o=>{n.onChange(o)},value:n.value,className:"flex flex-col",children:b?.map(o=>e(h,{children:m(t,{"data-field":r,className:"flex items-start space-x-3 space-y-0 gap-0 min-h-[24px] RemoteFlows__RadioField__Item",children:[e(s,{children:e(g,{value:o.value,className:l("RemoteFlows__RadioField__Input",o.recommended&&"mt-1"),disabled:o.disabled})}),m("div",{children:[m(F,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:[e("span",{dangerouslySetInnerHTML:{__html:o.label}})," ",o.recommended&&e(R,{variant:"secondary",className:"ml-2",children:"Recommended"})]}),o.description&&e(d,{className:"mt-2",children:o.description})]})]})},o.value))})}),C.error&&e(_,{})]})})},"RadioGroupFieldDefault");export{w as a};
2
+ //# sourceMappingURL=chunk-75ZSFK7I.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-4X7TVFHA.js";import{a as r}from"./chunk-J2R3LJ7K.js";import{a}from"./chunk-H66IKMI4.js";import{a as c}from"./chunk-OHNH7V7X.js";import{a as e}from"./chunk-SWCZJY6I.js";import{a as o}from"./chunk-TVZAFTPT.js";import{a as n}from"./chunk-P37U34EQ.js";import{useId as f}from"react";import{jsx as s}from"react/jsx-runtime";function k({employmentId:d,countryCode:C,options:p,render:A}){let t=c({employmentId:d,countryCode:C,options:p}),i=f();return s(o.Provider,{value:{formId:i,contractAmendmentBag:t},children:A({contractAmendmentBag:t,components:{Form:r,SubmitButton:a,ConfirmationForm:m,BackButton:e}})})}n(k,"ContractAmendmentFlow");export{k as a};
2
- //# sourceMappingURL=chunk-57NWP6J7.js.map
1
+ import{a as m}from"./chunk-4X7TVFHA.js";import{a as r}from"./chunk-XDPAVB5E.js";import{a}from"./chunk-H66IKMI4.js";import{a as c}from"./chunk-OHNH7V7X.js";import{a as e}from"./chunk-SWCZJY6I.js";import{a as o}from"./chunk-TVZAFTPT.js";import{a as n}from"./chunk-P37U34EQ.js";import{useId as f}from"react";import{jsx as s}from"react/jsx-runtime";function k({employmentId:d,countryCode:C,options:p,render:A}){let t=c({employmentId:d,countryCode:C,options:p}),i=f();return s(o.Provider,{value:{formId:i,contractAmendmentBag:t},children:A({contractAmendmentBag:t,components:{Form:r,SubmitButton:a,ConfirmationForm:m,BackButton:e}})})}n(k,"ContractAmendmentFlow");export{k as a};
2
+ //# sourceMappingURL=chunk-7FBX3RI4.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-A5RTFMYQ.js";import{b as n}from"./chunk-Q3ALCPJN.js";import{x as i}from"./chunk-NXRWBI36.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function F({onSubmit:m,onSuccess:d,onError:p}){let{contractorOnboardingBag:r}=n(),l=t(async(a,v)=>{try{let e=await r.parseFormValues(a);await m?.(e);let o=await r.onSubmit(a);if(o?.data){await d?.(o?.data),r?.next();return}}catch(e){let o=i(e,r.meta?.fields?.contract_preview,v);p?.(o)}},"handleSubmit"),u=r.stepState.values?.contract_preview||r.initialValues.contract_preview;return c("div",{className:"space-y-4",children:c(s,{defaultValues:u,onSubmit:l})})}t(F,"ContractPreviewStep");export{F as a};
2
- //# sourceMappingURL=chunk-U5AS2HUX.js.map
1
+ import{a as s}from"./chunk-CT7POXIP.js";import{b as n}from"./chunk-Q3ALCPJN.js";import{x as i}from"./chunk-NXRWBI36.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function F({onSubmit:m,onSuccess:d,onError:p}){let{contractorOnboardingBag:r}=n(),l=t(async(a,v)=>{try{let e=await r.parseFormValues(a);await m?.(e);let o=await r.onSubmit(a);if(o?.data){await d?.(o?.data),r?.next();return}}catch(e){let o=i(e,r.meta?.fields?.contract_preview,v);p?.(o)}},"handleSubmit"),u=r.stepState.values?.contract_preview||r.initialValues.contract_preview;return c("div",{className:"space-y-4",children:c(s,{defaultValues:u,onSubmit:l})})}t(F,"ContractPreviewStep");export{F as a};
2
+ //# sourceMappingURL=chunk-A75HEHRS.js.map
@@ -1,2 +1,2 @@
1
- import{b as l}from"./chunk-WCJZAOZR.js";import{a as i}from"./chunk-G3QDDD53.js";import{a as t}from"./chunk-KSZ3D3P3.js";import{h as m}from"./chunk-4FGKIGKF.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";import{createElement as u}from"react";function S({onSubmit:n,defaultValues:a}){let{formId:d,adminBag:o}=l(),e=i({handleValidation:o.handleValidation,defaultValues:a??{},checkFieldUpdates:o.setFieldValues});return u(m,{...e,key:`form-${o.stepState.currentStep.name}`},s("form",{id:d,onSubmit:e.handleSubmit(f=>n(f,e)),className:"space-y-4 RemoteFlows__PayrollAdminForm",children:s(t,{fields:o.fields,fieldsets:o.meta["x-jsf-fieldsets"],fieldValues:o.fieldValues})}))}r(S,"PayrollAdminForm");export{S as a};
2
- //# sourceMappingURL=chunk-YWLILBPW.js.map
1
+ import{b as l}from"./chunk-WCJZAOZR.js";import{a as i}from"./chunk-G3QDDD53.js";import{a as t}from"./chunk-OEPT3ASY.js";import{h as m}from"./chunk-4FGKIGKF.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";import{createElement as u}from"react";function S({onSubmit:n,defaultValues:a}){let{formId:d,adminBag:o}=l(),e=i({handleValidation:o.handleValidation,defaultValues:a??{},checkFieldUpdates:o.setFieldValues});return u(m,{...e,key:`form-${o.stepState.currentStep.name}`},s("form",{id:d,onSubmit:e.handleSubmit(f=>n(f,e)),className:"space-y-4 RemoteFlows__PayrollAdminForm",children:s(t,{fields:o.fields,fieldsets:o.meta["x-jsf-fieldsets"],fieldValues:o.fieldValues})}))}r(S,"PayrollAdminForm");export{S as a};
2
+ //# sourceMappingURL=chunk-AES7DMIQ.js.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-A5RTFMYQ.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-NXRWBI36.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-CFI75D3K.js.map
1
+ import{a as s}from"./chunk-CT7POXIP.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{x as a}from"./chunk-NXRWBI36.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-BQDYFFER.js.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-62XCZZJ3.js";import{a as o}from"./chunk-X7KIEFEN.js";import{b as a}from"./chunk-SS2SYDCB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function u(r){let{employeeBag:e}=a(),s=o(r);return e.taxStepsAvailability.federal_taxes.isAvailable?n(l,{onSubmit:s,defaultValues:{...e.initialValues?.federal_taxes,...e.stepState.values?.federal_taxes}}):null}t(u,"FederalTaxesStep");export{u as a};
2
- //# sourceMappingURL=chunk-D3EISEXY.js.map
1
+ import{a as o}from"./chunk-X7KIEFEN.js";import{a as l}from"./chunk-NOQWN76W.js";import{b as a}from"./chunk-SS2SYDCB.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as n}from"react/jsx-runtime";function u(r){let{employeeBag:e}=a(),s=o(r);return e.taxStepsAvailability.federal_taxes.isAvailable?n(l,{onSubmit:s,defaultValues:{...e.initialValues?.federal_taxes,...e.stepState.values?.federal_taxes}}):null}t(u,"FederalTaxesStep");export{u as a};
2
+ //# sourceMappingURL=chunk-C6AWXQ67.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-Q3JA2NA7.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as i}from"./chunk-NXRWBI36.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function F({onSubmit:d,onSuccess:l,onError:n}){let{onboardingBag:r}=s(),g=a(async t=>{try{let o=await r.parseFormValues(t);await d?.(o);let e=await r.onSubmit(t);if(e?.data){await l?.(e?.data),r?.next();return}if(e?.error){let E=i(e?.fieldErrors||[],r.meta?.fields?.engagement_agreement_details);n?.({error:e?.error,rawError:e?.rawError,fieldErrors:E})}}catch(o){n?.({error:o,rawError:o,fieldErrors:[]})}},"handleSubmit"),u=r.stepState.values?.engagement_agreement_details||r.initialValues.engagement_agreement_details;return c(m,{defaultValues:u,onSubmit:g})}a(F,"EngagementAgreementDetailsStep");export{F as a};
2
- //# sourceMappingURL=chunk-5QNR3U6E.js.map
1
+ import{a as m}from"./chunk-OGRQ3NTD.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{c as i}from"./chunk-NXRWBI36.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function F({onSubmit:d,onSuccess:l,onError:n}){let{onboardingBag:r}=s(),g=a(async t=>{try{let o=await r.parseFormValues(t);await d?.(o);let e=await r.onSubmit(t);if(e?.data){await l?.(e?.data),r?.next();return}if(e?.error){let E=i(e?.fieldErrors||[],r.meta?.fields?.engagement_agreement_details);n?.({error:e?.error,rawError:e?.rawError,fieldErrors:E})}}catch(o){n?.({error:o,rawError:o,fieldErrors:[]})}},"handleSubmit"),u=r.stepState.values?.engagement_agreement_details||r.initialValues.engagement_agreement_details;return c(m,{defaultValues:u,onSubmit:g})}a(F,"EngagementAgreementDetailsStep");export{F as a};
2
+ //# sourceMappingURL=chunk-C6I7R7ZH.js.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-PMCCHSXD.js";import{a as e}from"./chunk-YWLILBPW.js";import{b as n}from"./chunk-WCJZAOZR.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";function p(a){let{adminBag:t}=n(),l=r(a),s={...t.initialValues?.basic_information,...t.stepState.values?.select_country};return i(e,{onSubmit:l,defaultValues:s},t.countryCode??"no-country")}o(p,"SelectCountryStep");export{p as a};
2
- //# sourceMappingURL=chunk-6XT3ARIZ.js.map
1
+ import{a as r}from"./chunk-PMCCHSXD.js";import{a as e}from"./chunk-AES7DMIQ.js";import{b as n}from"./chunk-WCJZAOZR.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";function p(a){let{adminBag:t}=n(),l=r(a),s={...t.initialValues?.basic_information,...t.stepState.values?.select_country};return i(e,{onSubmit:l,defaultValues:s},t.countryCode??"no-country")}o(p,"SelectCountryStep");export{p as a};
2
+ //# sourceMappingURL=chunk-CNXDC3M7.js.map
@@ -1,2 +1,2 @@
1
- import{b as c}from"./chunk-Q3ALCPJN.js";import{a as d}from"./chunk-G3QDDD53.js";import{a as l}from"./chunk-KSZ3D3P3.js";import{h as m}from"./chunk-4FGKIGKF.js";import{c as s}from"./chunk-NXRWBI36.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-A5RTFMYQ.js.map
1
+ import{b as c}from"./chunk-Q3ALCPJN.js";import{a as d}from"./chunk-G3QDDD53.js";import{a as l}from"./chunk-OEPT3ASY.js";import{h as m}from"./chunk-4FGKIGKF.js";import{c as s}from"./chunk-NXRWBI36.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-CT7POXIP.js.map
@@ -1,2 +1,2 @@
1
- import{a as p}from"./chunk-IFIJ7OVJ.js";import{a}from"./chunk-SQBJ4CLO.js";import{a as m}from"./chunk-HFRQIPC5.js";import{a as e}from"./chunk-76ZDXC2T.js";import{a as r}from"./chunk-WE2AFK6Y.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as y}from"react";import{jsx as d}from"react/jsx-runtime";var P=t(({render:n,countryCode:C,options:i,initialValues:s})=>{let o=r({options:i,countryCode:C,initialValues:s}),f=y();return d(e.Provider,{value:{createCompanyBag:o,formId:f},children:n({createCompanyBag:o,components:{CompanyBasicInformationStep:m,AddressDetailsStep:a,SubmitButton:p}})})},"CreateCompanyFlow");export{P as a};
2
- //# sourceMappingURL=chunk-UWJ3TB2O.js.map
1
+ import{a as p}from"./chunk-IFIJ7OVJ.js";import{a}from"./chunk-KCE6IU5X.js";import{a as m}from"./chunk-4AJD5YEN.js";import{a as e}from"./chunk-76ZDXC2T.js";import{a as r}from"./chunk-WE2AFK6Y.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as y}from"react";import{jsx as d}from"react/jsx-runtime";var P=t(({render:n,countryCode:C,options:i,initialValues:s})=>{let o=r({options:i,countryCode:C,initialValues:s}),f=y();return d(e.Provider,{value:{createCompanyBag:o,formId:f},children:n({createCompanyBag:o,components:{CompanyBasicInformationStep:m,AddressDetailsStep:a,SubmitButton:p}})})},"CreateCompanyFlow");export{P as a};
2
+ //# sourceMappingURL=chunk-CZU4U3LY.js.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-62XCZZJ3.js";import{a as l}from"./chunk-X7KIEFEN.js";import{b as a}from"./chunk-SS2SYDCB.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function u(s){let{employeeBag:t}=a(),n=l(s);return t.taxStepsAvailability.state_taxes.isAvailable?r(o,{onSubmit:n,defaultValues:{...t.initialValues?.state_taxes,...t.stepState.values?.state_taxes}}):null}e(u,"StateTaxesStep");export{u as a};
2
- //# sourceMappingURL=chunk-SFJBEQ2V.js.map
1
+ import{a as l}from"./chunk-X7KIEFEN.js";import{a as o}from"./chunk-NOQWN76W.js";import{b as a}from"./chunk-SS2SYDCB.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function u(s){let{employeeBag:t}=a(),n=l(s);return t.taxStepsAvailability.state_taxes.isAvailable?r(o,{onSubmit:n,defaultValues:{...t.initialValues?.state_taxes,...t.stepState.values?.state_taxes}}):null}e(u,"StateTaxesStep");export{u as a};
2
+ //# sourceMappingURL=chunk-DLCEEROX.js.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-62XCZZJ3.js";import{a}from"./chunk-X7KIEFEN.js";import{b as t}from"./chunk-SS2SYDCB.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";function b(l){let{employeeBag:e}=t(),r=a(l);return e.selfOnboardingSubsteps.some(s=>s.type==="employee_provides_bank_details")?i(n,{onSubmit:r,defaultValues:{...e.initialValues?.bank_account,...e.stepState.values?.bank_account}}):null}o(b,"BankAccountStep");export{b as a};
2
- //# sourceMappingURL=chunk-OK4L3KCU.js.map
1
+ import{a}from"./chunk-X7KIEFEN.js";import{a as n}from"./chunk-NOQWN76W.js";import{b as t}from"./chunk-SS2SYDCB.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";function b(l){let{employeeBag:e}=t(),r=a(l);return e.selfOnboardingSubsteps.some(s=>s.type==="employee_provides_bank_details")?i(n,{onSubmit:r,defaultValues:{...e.initialValues?.bank_account,...e.stepState.values?.bank_account}}):null}o(b,"BankAccountStep");export{b as a};
2
+ //# sourceMappingURL=chunk-DO352QQL.js.map
@@ -1,2 +1,2 @@
1
- import{a as L,b as H,c as U,e as O}from"./chunk-AHUSQVQY.js";import{f as W}from"./chunk-UWSG45OM.js";import{a as oe}from"./chunk-WI4YITIC.js";import{a as ie}from"./chunk-KSZ3D3P3.js";import{a as _,c as J,d as I,e as k,f as j}from"./chunk-HFFQ642D.js";import{f as le,g as V,h as te}from"./chunk-4FGKIGKF.js";import{n as g}from"./chunk-NXRWBI36.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 (Legacy)"},{value:3,label:"v3 (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-V5TMPQVK.js.map
1
+ import{a as L,b as H,c as U,e as O}from"./chunk-AHUSQVQY.js";import{f as W}from"./chunk-UWSG45OM.js";import{a as oe}from"./chunk-WI4YITIC.js";import{a as ie}from"./chunk-OEPT3ASY.js";import{a as _,c as J,d as I,e as k,f as j}from"./chunk-HFFQ642D.js";import{f as le,g as V,h as te}from"./chunk-4FGKIGKF.js";import{n as g}from"./chunk-NXRWBI36.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-DSUJKXRQ.js.map