@remoteoss/remote-flows 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/README.md +1 -0
  2. package/dist/chunk-2Y22JKVE.js +2 -0
  3. package/dist/{chunk-AD7ZWPEI.js → chunk-3FVI5JIC.js} +2 -2
  4. package/dist/chunk-3MAYMGXF.js +2 -0
  5. package/dist/chunk-3MAYMGXF.js.map +1 -0
  6. package/dist/chunk-4APN5ST6.js +2 -0
  7. package/dist/chunk-4APN5ST6.js.map +1 -0
  8. package/dist/chunk-4C45VY6F.js +2 -0
  9. package/dist/chunk-4C45VY6F.js.map +1 -0
  10. package/dist/{chunk-FI76EKUS.js → chunk-56BNVYTD.js} +2 -2
  11. package/dist/chunk-5ETXP2QF.js +2 -0
  12. package/dist/chunk-5ETXP2QF.js.map +1 -0
  13. package/dist/{chunk-YVC4OEFJ.js → chunk-6A3F6JG6.js} +2 -2
  14. package/dist/{chunk-YAHWFLDH.js → chunk-6YO6XWPH.js} +2 -2
  15. package/dist/{chunk-OCNLZSS7.js → chunk-7CYG2RHP.js} +2 -2
  16. package/dist/{chunk-55VACCVZ.js → chunk-AG27JG4N.js} +1 -1
  17. package/dist/chunk-AG27JG4N.js.map +1 -0
  18. package/dist/{chunk-XULIEA44.js → chunk-BDCIVWHR.js} +2 -2
  19. package/dist/{chunk-IJWDAD54.js → chunk-DGPRFQYK.js} +2 -2
  20. package/dist/{chunk-NZFES56Y.js → chunk-EAAIAMTY.js} +2 -2
  21. package/dist/{chunk-37DREOGC.js → chunk-FMT2OTOL.js} +2 -2
  22. package/dist/chunk-G4R7TPQL.js +2 -0
  23. package/dist/chunk-G4R7TPQL.js.map +1 -0
  24. package/dist/chunk-GGZV4QYL.js +2 -0
  25. package/dist/chunk-GGZV4QYL.js.map +1 -0
  26. package/dist/{chunk-XEQTLVMV.js → chunk-GMGKIQLI.js} +2 -2
  27. package/dist/{chunk-N5AQSLAU.js → chunk-IDSJI7KQ.js} +2 -2
  28. package/dist/{chunk-4F7PYKUZ.js → chunk-J55S4SEH.js} +2 -2
  29. package/dist/{chunk-J2RINDSC.js → chunk-KH6QS5OU.js} +2 -2
  30. package/dist/chunk-KQEIZSUS.js +2 -0
  31. package/dist/chunk-KQEIZSUS.js.map +1 -0
  32. package/dist/{chunk-CKGTR44U.js → chunk-KSGPQCSG.js} +2 -2
  33. package/dist/chunk-L3E32MJU.js +2 -0
  34. package/dist/chunk-L3E32MJU.js.map +1 -0
  35. package/dist/chunk-LLA3Z2PK.js +2 -0
  36. package/dist/chunk-LLA3Z2PK.js.map +1 -0
  37. package/dist/chunk-M22FKNEY.js +1 -0
  38. package/dist/{chunk-FCRDQVTB.js → chunk-MESREYTZ.js} +2 -2
  39. package/dist/{chunk-NBD4VOG3.js → chunk-P3N4X5KU.js} +2 -2
  40. package/dist/chunk-QJGFU4YO.js +2 -0
  41. package/dist/chunk-QJGFU4YO.js.map +1 -0
  42. package/dist/chunk-THCM2G6C.js +2 -0
  43. package/dist/chunk-THCM2G6C.js.map +1 -0
  44. package/dist/chunk-U3TYUMTJ.js +2 -0
  45. package/dist/chunk-U3TYUMTJ.js.map +1 -0
  46. package/dist/chunk-VTPDBEHE.js +2 -0
  47. package/dist/chunk-VTPDBEHE.js.map +1 -0
  48. package/dist/{chunk-EQBNHLR4.js → chunk-VZM3HYXN.js} +2 -2
  49. package/dist/chunk-WDV5ZDXL.js +2 -0
  50. package/dist/chunk-WDV5ZDXL.js.map +1 -0
  51. package/dist/{chunk-JLUDKN4H.js → chunk-WJPC4J3U.js} +2 -2
  52. package/dist/{chunk-DOA6BAUQ.js → chunk-WQHKB5T7.js} +2 -2
  53. package/dist/{chunk-CTG3DYJR.js → chunk-WWANHPT7.js} +2 -2
  54. package/dist/{chunk-CTG3DYJR.js.map → chunk-WWANHPT7.js.map} +1 -1
  55. package/dist/{chunk-5DQBY2TR.js → chunk-XLFHHYVS.js} +2 -2
  56. package/dist/chunk-XSHHMBMT.js +2 -0
  57. package/dist/chunk-XSHHMBMT.js.map +1 -0
  58. package/dist/{chunk-KPSFJ6BN.js → chunk-YOC3VDC7.js} +2 -2
  59. package/dist/flows/ContractAmendment/ContractAmendmentBack.js +1 -1
  60. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  61. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
  62. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +4 -4
  63. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  64. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  65. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  66. package/dist/flows/ContractAmendment/ContractAmendmentSubmit.js +1 -1
  67. package/dist/flows/ContractAmendment/context.d.ts +1 -1
  68. package/dist/flows/ContractAmendment/hooks.d.ts +1 -1
  69. package/dist/flows/ContractAmendment/hooks.js +1 -1
  70. package/dist/flows/ContractAmendment/index.d.ts +2 -2
  71. package/dist/flows/ContractAmendment/index.js +1 -1
  72. package/dist/flows/ContractAmendment/types.d.ts +3 -0
  73. package/dist/flows/ContractAmendment/utils.d.ts +1 -1
  74. package/dist/flows/CostCalculator/CostCalculatorDisclaimer.js +1 -1
  75. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +1 -1
  76. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  77. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +1 -1
  78. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  79. package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
  80. package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
  81. package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
  82. package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
  83. package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
  84. package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
  85. package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
  86. package/dist/flows/CostCalculator/Results/CostCalculatorResultsChart.js +1 -1
  87. package/dist/flows/CostCalculator/Results/CostCalculatorTotalCost.js +1 -1
  88. package/dist/flows/CostCalculator/context.d.ts +1 -1
  89. package/dist/flows/CostCalculator/hooks.d.ts +1 -1
  90. package/dist/flows/CostCalculator/hooks.js +1 -1
  91. package/dist/flows/CostCalculator/index.d.ts +1 -1
  92. package/dist/flows/CostCalculator/index.js +1 -1
  93. package/dist/flows/CostCalculator/types.d.ts +1 -1
  94. package/dist/flows/CostCalculator/utils.d.ts +1 -1
  95. package/dist/flows/CostCalculator/utils.js +1 -1
  96. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +13 -0
  97. package/dist/flows/Termination/AdditionalDetailsForm.js +2 -0
  98. package/dist/flows/Termination/AdditionalDetailsForm.js.map +1 -0
  99. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +10 -0
  100. package/dist/flows/Termination/EmployeeComunicationForm.js +2 -0
  101. package/dist/flows/Termination/EmployeeComunicationForm.js.map +1 -0
  102. package/dist/flows/Termination/PaidTimeOffForm.d.ts +10 -0
  103. package/dist/flows/Termination/PaidTimeOffForm.js +2 -0
  104. package/dist/flows/Termination/PaidTimeOffForm.js.map +1 -0
  105. package/dist/flows/Termination/TerminationBack.js +1 -1
  106. package/dist/flows/Termination/TerminationDetailsForm.d.ts +10 -0
  107. package/dist/flows/Termination/TerminationDetailsForm.js +2 -0
  108. package/dist/flows/Termination/TerminationDetailsForm.js.map +1 -0
  109. package/dist/flows/Termination/TerminationFlow.d.ts +19 -10
  110. package/dist/flows/Termination/TerminationFlow.js +1 -1
  111. package/dist/flows/Termination/TerminationForm.d.ts +5 -6
  112. package/dist/flows/Termination/TerminationForm.js +1 -1
  113. package/dist/flows/Termination/TerminationSubmit.js +1 -1
  114. package/dist/flows/Termination/TimeOff.d.ts +1 -1
  115. package/dist/flows/Termination/TimeOff.js +1 -1
  116. package/dist/flows/Termination/context.d.ts +3 -1
  117. package/dist/flows/Termination/hooks.d.ts +12 -1
  118. package/dist/flows/Termination/hooks.js +1 -1
  119. package/dist/flows/Termination/index.d.ts +8 -5
  120. package/dist/flows/Termination/index.js +1 -1
  121. package/dist/flows/Termination/json-schemas/additionalInformation.js +1 -1
  122. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  123. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  124. package/dist/flows/Termination/types.d.ts +1 -1
  125. package/dist/index.css +1 -1
  126. package/dist/index.css.map +1 -1
  127. package/dist/index.d.ts +12 -9
  128. package/dist/index.js +1 -1
  129. package/dist/index.js.map +1 -1
  130. package/dist/types.gen-Dta9Iy5C.d.ts +779 -0
  131. package/package.json +1 -1
  132. package/dist/chunk-2EKC7DK3.js +0 -2
  133. package/dist/chunk-2EKC7DK3.js.map +0 -1
  134. package/dist/chunk-55VACCVZ.js.map +0 -1
  135. package/dist/chunk-6LTJBLSD.js +0 -2
  136. package/dist/chunk-6LTJBLSD.js.map +0 -1
  137. package/dist/chunk-AYFHWLQZ.js +0 -2
  138. package/dist/chunk-AYFHWLQZ.js.map +0 -1
  139. package/dist/chunk-F5QJZKDL.js +0 -2
  140. package/dist/chunk-F5QJZKDL.js.map +0 -1
  141. package/dist/chunk-FZ7FWFJX.js +0 -1
  142. package/dist/chunk-GW7GG5ZW.js +0 -2
  143. package/dist/chunk-GW7GG5ZW.js.map +0 -1
  144. package/dist/chunk-IJPE22L7.js +0 -2
  145. package/dist/chunk-IJPE22L7.js.map +0 -1
  146. package/dist/chunk-IPJORKYJ.js +0 -2
  147. package/dist/chunk-IPJORKYJ.js.map +0 -1
  148. package/dist/chunk-IPZEZMLD.js +0 -2
  149. package/dist/chunk-IPZEZMLD.js.map +0 -1
  150. package/dist/chunk-SEUQNAF6.js +0 -2
  151. package/dist/chunk-SJ56GVNV.js +0 -2
  152. package/dist/chunk-SJ56GVNV.js.map +0 -1
  153. package/dist/chunk-TOSGDMB4.js +0 -2
  154. package/dist/chunk-TOSGDMB4.js.map +0 -1
  155. package/dist/chunk-VHL76MEG.js +0 -2
  156. package/dist/chunk-VHL76MEG.js.map +0 -1
  157. package/dist/types.gen-BgLeTAqP.d.ts +0 -10618
  158. /package/dist/{chunk-SEUQNAF6.js.map → chunk-2Y22JKVE.js.map} +0 -0
  159. /package/dist/{chunk-AD7ZWPEI.js.map → chunk-3FVI5JIC.js.map} +0 -0
  160. /package/dist/{chunk-FI76EKUS.js.map → chunk-56BNVYTD.js.map} +0 -0
  161. /package/dist/{chunk-YVC4OEFJ.js.map → chunk-6A3F6JG6.js.map} +0 -0
  162. /package/dist/{chunk-YAHWFLDH.js.map → chunk-6YO6XWPH.js.map} +0 -0
  163. /package/dist/{chunk-OCNLZSS7.js.map → chunk-7CYG2RHP.js.map} +0 -0
  164. /package/dist/{chunk-XULIEA44.js.map → chunk-BDCIVWHR.js.map} +0 -0
  165. /package/dist/{chunk-IJWDAD54.js.map → chunk-DGPRFQYK.js.map} +0 -0
  166. /package/dist/{chunk-NZFES56Y.js.map → chunk-EAAIAMTY.js.map} +0 -0
  167. /package/dist/{chunk-37DREOGC.js.map → chunk-FMT2OTOL.js.map} +0 -0
  168. /package/dist/{chunk-XEQTLVMV.js.map → chunk-GMGKIQLI.js.map} +0 -0
  169. /package/dist/{chunk-N5AQSLAU.js.map → chunk-IDSJI7KQ.js.map} +0 -0
  170. /package/dist/{chunk-4F7PYKUZ.js.map → chunk-J55S4SEH.js.map} +0 -0
  171. /package/dist/{chunk-J2RINDSC.js.map → chunk-KH6QS5OU.js.map} +0 -0
  172. /package/dist/{chunk-CKGTR44U.js.map → chunk-KSGPQCSG.js.map} +0 -0
  173. /package/dist/{chunk-FZ7FWFJX.js.map → chunk-M22FKNEY.js.map} +0 -0
  174. /package/dist/{chunk-FCRDQVTB.js.map → chunk-MESREYTZ.js.map} +0 -0
  175. /package/dist/{chunk-NBD4VOG3.js.map → chunk-P3N4X5KU.js.map} +0 -0
  176. /package/dist/{chunk-EQBNHLR4.js.map → chunk-VZM3HYXN.js.map} +0 -0
  177. /package/dist/{chunk-JLUDKN4H.js.map → chunk-WJPC4J3U.js.map} +0 -0
  178. /package/dist/{chunk-DOA6BAUQ.js.map → chunk-WQHKB5T7.js.map} +0 -0
  179. /package/dist/{chunk-5DQBY2TR.js.map → chunk-XLFHHYVS.js.map} +0 -0
  180. /package/dist/{chunk-KPSFJ6BN.js.map → chunk-YOC3VDC7.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/Termination/TerminationFlow.tsx"],"sourcesContent":["import { TerminationContext } from '@/src/flows/Termination/context';\nimport React, { useId } from 'react';\nimport { useTermination } from '@/src/flows/Termination/hooks';\nimport { JSFModify } from '@/src/flows/CostCalculator/types';\nimport { TerminationSubmit } from '@/src/flows/Termination/TerminationSubmit';\nimport { TimeOff } from '@/src/flows/Termination/TimeOff';\nimport { TerminationBack } from '@/src/flows/Termination/TerminationBack';\nimport { EmployeeCommunicationForm } from '@/src/flows/Termination/EmployeeComunicationForm';\nimport { TerminationDetailsForm } from '@/src/flows/Termination/TerminationDetailsForm';\nimport { PaidTimeOffForm } from '@/src/flows/Termination/PaidTimeOffForm';\nimport { AdditionalDetailsForm } from '@/src/flows/Termination/AdditionalDetailsForm';\n\nexport type TerminationRenderProps = {\n /**\n * The termination bag returned by the useTermination hook.\n * This bag contains all the methods and properties needed to handle the termination flow.\n * @see {@link useTermination}\n */\n terminationBag: ReturnType<typeof useTermination>;\n /**\n * The components used in the termination flow.\n * This includes different steps, submit button, back button and timeoff.\n * @see {@link TerminationSubmit}\n * @see {@link TimeOff}\n * @see {@link TerminationBack}\n * @see {@link EmployeeCommunicationForm}\n * @see {@link TerminationDetailsForm}\n * @see {@link PaidTimeOffForm}\n * @see {@link AdditionalDetailsForm}\n */\n components: {\n SubmitButton: typeof TerminationSubmit;\n TimeOff: typeof TimeOff;\n Back: typeof TerminationBack;\n EmployeeComunicationStep: typeof EmployeeCommunicationForm;\n TerminationDetailsStep: typeof TerminationDetailsForm;\n PaidTimeOffStep: typeof PaidTimeOffForm;\n AdditionalDetailsStep: typeof AdditionalDetailsForm;\n };\n};\n\ntype TerminationFlowProps = {\n employmentId: string;\n render: ({\n terminationBag,\n components,\n }: TerminationRenderProps) => React.ReactNode;\n options?: {\n jsfModify?: JSFModify;\n };\n};\n\nexport const TerminationFlow = ({\n employmentId,\n render,\n options,\n}: TerminationFlowProps) => {\n const formId = useId();\n const terminationBag = useTermination({ employmentId, options });\n\n return (\n <TerminationContext.Provider\n value={{\n formId: formId,\n terminationBag,\n }}\n >\n {render({\n terminationBag,\n components: {\n SubmitButton: TerminationSubmit,\n TimeOff: TimeOff,\n Back: TerminationBack,\n EmployeeComunicationStep: EmployeeCommunicationForm,\n TerminationDetailsStep: TerminationDetailsForm,\n PaidTimeOffStep: PaidTimeOffForm,\n AdditionalDetailsStep: AdditionalDetailsForm,\n },\n })}\n </TerminationContext.Provider>\n );\n};\n"],"mappings":"2YACA,OAAOA,GAAS,SAAAC,MAAa,QAmDtB,IAAMC,EAAkBC,EAAA,CAAC,CAC9B,aAAAC,EACA,OAAAC,EACA,QAAAC,CACF,IAA4B,CAC1B,IAAMC,EAASC,EAAM,EACfC,EAAiBC,EAAe,CAAE,aAAAN,EAAc,QAAAE,CAAQ,CAAC,EAE/D,OACEK,EAAA,cAACC,EAAmB,SAAnB,CACC,MAAO,CACL,OAAQL,EACR,eAAAE,CACF,GAECJ,EAAO,CACN,eAAAI,EACA,WAAY,CACV,aAAcI,EACd,QAASC,EACT,KAAMC,EACN,yBAA0BC,EAC1B,uBAAwBC,EACxB,gBAAiBC,EACjB,sBAAuBC,CACzB,CACF,CAAC,CACH,CAEJ,EA7B+B","names":["React","useId","TerminationFlow","__name","employmentId","render","options","formId","useId","terminationBag","useTermination","React","TerminationContext","TerminationSubmit","TimeOff","TerminationBack","EmployeeCommunicationForm","TerminationDetailsForm","PaidTimeOffForm","AdditionalDetailsForm"]}
@@ -1,2 +1,2 @@
1
- import{h as o,l as i}from"./chunk-55VACCVZ.js";import{d as n}from"./chunk-WRDKLT4N.js";import{a as e}from"./chunk-AYDF3IFZ.js";import{useQuery as s}from"@tanstack/react-query";var p=e(({employmentId:t})=>{let{client:r}=n();return s({queryKey:["employment",t],retry:!1,queryFn:e(()=>o({client:r,headers:{Authorization:""},path:{employment_id:t}}),"queryFn"),select:e(({data:m})=>m,"select")})},"useEmploymentQuery"),c=e(({employmentId:t,status:r})=>{let{client:m}=n();return s({queryKey:["timeoff",t,r],retry:!1,queryFn:e(()=>i({client:m,headers:{Authorization:""},query:{employment_id:t,status:r}}),"queryFn"),select:e(({data:u})=>u,"select")})},"useTimeOffQuery");export{p as a,c as b};
2
- //# sourceMappingURL=chunk-JLUDKN4H.js.map
1
+ import{h as o,l as i}from"./chunk-AG27JG4N.js";import{d as n}from"./chunk-WRDKLT4N.js";import{a as e}from"./chunk-AYDF3IFZ.js";import{useQuery as s}from"@tanstack/react-query";var p=e(({employmentId:t})=>{let{client:r}=n();return s({queryKey:["employment",t],retry:!1,queryFn:e(()=>o({client:r,headers:{Authorization:""},path:{employment_id:t}}),"queryFn"),select:e(({data:m})=>m,"select")})},"useEmploymentQuery"),c=e(({employmentId:t,status:r})=>{let{client:m}=n();return s({queryKey:["timeoff",t,r],retry:!1,queryFn:e(()=>i({client:m,headers:{Authorization:""},query:{employment_id:t,status:r}}),"queryFn"),select:e(({data:u})=>u,"select")})},"useTimeOffQuery");export{p as a,c as b};
2
+ //# sourceMappingURL=chunk-WJPC4J3U.js.map
@@ -1,2 +1,2 @@
1
- import{b as r}from"./chunk-SJ56GVNV.js";import{a as o}from"./chunk-AYDF3IFZ.js";import t from"react";function n({totalCost:s,currency:a}){return t.createElement("div",{className:"pt-2 mt-4 border-t-2 border-gray-200"},t.createElement("div",{className:"flex justify-between items-center"},t.createElement("h3",{className:"font-bold text-primary-foreground-800"},"Total Cost"),t.createElement("span",{className:"font-bold text-xl"},r(s,a))))}o(n,"CostCalculatorTotalCost");export{n as a};
2
- //# sourceMappingURL=chunk-DOA6BAUQ.js.map
1
+ import{b as r}from"./chunk-5ETXP2QF.js";import{a as o}from"./chunk-AYDF3IFZ.js";import t from"react";function n({totalCost:s,currency:a}){return t.createElement("div",{className:"pt-2 mt-4 border-t-2 border-gray-200"},t.createElement("div",{className:"flex justify-between items-center"},t.createElement("h3",{className:"font-bold text-primary-foreground-800"},"Total Cost"),t.createElement("span",{className:"font-bold text-xl"},r(s,a))))}o(n,"CostCalculatorTotalCost");export{n as a};
2
+ //# sourceMappingURL=chunk-WQHKB5T7.js.map
@@ -1,2 +1,2 @@
1
- var e={data:{version:7,schema:{additionalProperties:!1,allOf:[{if:{properties:{personal_email:{pattern:"^[a-zA-Z0-9 .]+$"}}},then:{properties:{personal_email:{"x-jsf-presentation":{statement:{title:"Please make sure to add the employee personal email so we can get in contact with the employee after the termination process takes effect.",inputType:"statement",severity:"warning"}}}}}},{if:{properties:{customer_informed_employee:{const:"yes"}},required:["customer_informed_employee"]},then:{properties:{customer_informed_employee_date:{type:"string"},customer_informed_employee_description:{type:"string"}},required:["customer_informed_employee_date","customer_informed_employee_description"]},else:{properties:{customer_informed_employee_date:!1,customer_informed_employee_description:!1}}},{if:{properties:{will_challenge_termination:{const:"yes"}},required:["will_challenge_termination"]},then:{properties:{will_challenge_termination_description:{type:"string"}},required:["will_challenge_termination_description"]},else:{properties:{will_challenge_termination_description:!1}}},{if:{properties:{agrees_to_pto_amount:{const:"no"}},required:["agrees_to_pto_amount"]},then:{properties:{agrees_to_pto_amount_notes:{type:"string"}},required:["agrees_to_pto_amount_notes"]},else:{properties:{agrees_to_pto_amount_notes:!1,timesheet_file:!1}}}],properties:{confidential:{description:"Confidential requests are visible only to you. Non-confidential requests are visible to all admins in your company.",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Is this request confidential?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio",statement:{title:"Please do not inform the employee of their termination until we review your request for legal risks. When we approve your request, you can inform the employee and we'll take it from there.",inputType:"statement",severity:"warning"}}},customer_informed_employee:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Have you informed the employee of the termination?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},customer_informed_employee_date:{description:"",format:"date",maxLength:255,title:"When the employee was told about the termination",type:["string","null"],"x-jsf-presentation":{inputType:"date"}},customer_informed_employee_description:{description:"",maxLength:1e3,title:"How did you share this information?",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},personal_email:{description:"",maxLength:255,title:"Employee's personal email",format:"email",type:"string","x-jsf-presentation":{inputType:"email"}},termination_reason:{title:"Termination reason",description:"Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.",type:"string",oneOf:[{const:"gross_misconduct",title:"Gross misconduct"},{const:"performance",title:"Performance"},{const:"workforce_reduction",title:"Workforce Reduction"},{const:"values",title:"Values"},{const:"compliance_issue",title:"Compliance issue"},{const:"incapacity_to_perform_inherent_duties",title:"Incapacity To perform inherent duties"},{const:"mutual_agreement",title:"Mutual agreement"},{const:"cancellation_before_start_date",title:"Decision to cancel hiring before the employee starts"},{const:"job_abandonment",title:"Job abandonment"},{const:"dissatisfaction_with_remote_service",title:"Dissatisfaction with EOR service"},{const:"end_of_fixed_term_contract_compliance_issue",title:"End of fixed-term contract"},{const:"other",title:"Other"}],"x-jsf-presentation":{inputType:"select"}},reason_description:{description:"",maxLength:1e3,title:"Termination reason details",type:"string","x-jsf-presentation":{inputType:"textarea"}},additional_comments:{description:"",maxLength:1e3,title:"Additional details regarding this termination process.",type:"string","x-jsf-presentation":{inputType:"textarea"}},termination_reason_files:{description:"Please upload any supporting documents regarding the termination reason.",title:"Termination reason files",type:"string","x-jsf-presentation":{inputType:"file",accept:".pdf",multiple:!0}},risk_assessment_reasons:{description:"",title:"This employee is...",type:"array",items:{anyOf:[{const:"sick_leave",title:"Currently on or recently returned from sick leave"},{const:"family_leave",title:"Currently on or recently returned from maternity, paternity, or other family leave"},{const:"pregnant_or_breastfeeding",title:"Pregnant or breastfeeding"},{const:"requested_medical_or_family_leave",title:"Requested medical or family leave"},{const:"disabled_or_health_condition",title:"Disabled or has a health condition"},{const:"member_of_union_or_works_council",title:"A member of a union or works council"},{const:"caring_responsibilities",title:"Caring responsibilities"},{const:"reported_concerns_with_workplace",title:"Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions"},{const:"none_of_these",title:"To the best of my knowledge, I am not aware of any of these"}]},"x-jsf-presentation":{inputType:"checkbox",direction:"column"}},will_challenge_termination:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Do you consider it is likely that the employee will challenge their termination?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},will_challenge_termination_description:{description:"",maxLength:1e3,title:"Please explain how the employee will challenge their termination",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},proposed_termination_date:{description:"",format:"date",maxLength:255,title:"Proposed termination date",type:"string","x-jsf-presentation":{inputType:"date"}},agrees_to_pto_amount:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Are these paid time off records correct?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},agrees_to_pto_amount_notes:{description:"Please provide details regarding any additional days taken, including specific dates, or any other inaccuracy in the time off data.",maxLength:1e3,title:"Provide time off details",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},timesheet_file:{description:"Upload a timesheet exported from your HR software. This way we can compare and confirm the total number of Paid time off.",title:"Timesheet document",type:["string","null"],"x-jsf-presentation":{inputType:"file",accept:".pdf"}},acknowledge_termination_procedure:{description:"",title:"I, {{username}} have read and agree to the procedures as defined in the termination form.",type:"boolean","x-jsf-presentation":{direction:"column",inputType:"checkbox"}}},required:["confidential","customer_informed_employee","personal_email","termination_reason","reason_description","risk_assessment_reasons","will_challenge_termination","proposed_termination_date","agrees_to_pto_amount","acknowledge_termination_procedure"],type:"object","x-jsf-order":["is_confidential","customer_informed_employee","customer_informed_employee_date","customer_informed_employee_description","personal_email","termination_reason","reason_description","additional_comments","termination_reason_files","risk_assessment_reasons","will_challenge_termination","will_challenge_termination_description","proposed_termination_date","agrees_to_pto_amount","agrees_to_pto_amount_notes","timesheet_file","acknowledge_termination_procedure"]}}};export{e as a};
2
- //# sourceMappingURL=chunk-CTG3DYJR.js.map
1
+ var e={data:{version:7,schema:{additionalProperties:!1,allOf:[{if:{properties:{personal_email:{pattern:"^[a-zA-Z0-9 .]+$"}}},then:{properties:{personal_email:{"x-jsf-presentation":{statement:{title:"Please make sure to add the employee personal email so we can get in contact with the employee after the termination process takes effect.",inputType:"statement",severity:"warning"}}}}}},{if:{properties:{customer_informed_employee:{const:"yes"}},required:["customer_informed_employee"]},then:{properties:{customer_informed_employee_date:{type:"string"},customer_informed_employee_description:{type:"string"}},required:["customer_informed_employee_date","customer_informed_employee_description"]},else:{properties:{customer_informed_employee_date:!1,customer_informed_employee_description:!1}}},{if:{properties:{will_challenge_termination:{const:"yes"}},required:["will_challenge_termination"]},then:{properties:{will_challenge_termination_description:{type:"string"}},required:["will_challenge_termination_description"]},else:{properties:{will_challenge_termination_description:!1}}},{if:{properties:{agrees_to_pto_amount:{const:"no"}},required:["agrees_to_pto_amount"]},then:{properties:{agrees_to_pto_amount_notes:{type:"string"}},required:["agrees_to_pto_amount_notes"]},else:{properties:{agrees_to_pto_amount_notes:!1,timesheet_file:!1}}}],properties:{confidential:{description:"Confidential requests are visible only to you. Non-confidential requests are visible to all admins in your company.",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Is this request confidential?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio",statement:{title:"Please do not inform the employee of their termination until we review your request for legal risks. When we approve your request, you can inform the employee and we'll take it from there.",inputType:"statement",severity:"warning"}}},customer_informed_employee:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Have you informed the employee of the termination?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},customer_informed_employee_date:{description:"",format:"date",maxLength:255,title:"When the employee was told about the termination",type:["string","null"],"x-jsf-presentation":{inputType:"date"}},customer_informed_employee_description:{description:"",maxLength:1e3,title:"How did you share this information?",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},personal_email:{description:"",maxLength:255,title:"Employee's personal email",format:"email",type:"string","x-jsf-presentation":{inputType:"email"}},termination_reason:{title:"Termination reason",description:"Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.",type:"string",oneOf:[{const:"gross_misconduct",title:"Gross misconduct"},{const:"performance",title:"Performance"},{const:"workforce_reduction",title:"Workforce Reduction"},{const:"values",title:"Values"},{const:"compliance_issue",title:"Compliance issue"},{const:"incapacity_to_perform_inherent_duties",title:"Incapacity To perform inherent duties"},{const:"mutual_agreement",title:"Mutual agreement"},{const:"cancellation_before_start_date",title:"Decision to cancel hiring before the employee starts"},{const:"job_abandonment",title:"Job abandonment"},{const:"dissatisfaction_with_remote_service",title:"Dissatisfaction with EOR service"},{const:"end_of_fixed_term_contract_compliance_issue",title:"End of fixed-term contract"},{const:"other",title:"Other"}],"x-jsf-presentation":{inputType:"select"}},reason_description:{description:"",maxLength:1e3,title:"Termination reason details",type:"string","x-jsf-presentation":{inputType:"textarea"}},additional_comments:{description:"",maxLength:1e3,title:"Additional details regarding this termination process.",type:"string","x-jsf-presentation":{inputType:"textarea"}},termination_reason_files:{description:"Please upload any supporting documents regarding the termination reason.",title:"Termination reason files",type:"string","x-jsf-presentation":{inputType:"file",accept:".pdf",multiple:!0}},risk_assessment_reasons:{description:"",title:"This employee is...",type:"array",items:{anyOf:[{const:"sick_leave",title:"Currently on or recently returned from sick leave"},{const:"family_leave",title:"Currently on or recently returned from maternity, paternity, or other family leave"},{const:"pregnant_or_breastfeeding",title:"Pregnant or breastfeeding"},{const:"requested_medical_or_family_leave",title:"Requested medical or family leave"},{const:"disabled_or_health_condition",title:"Disabled or has a health condition"},{const:"member_of_union_or_works_council",title:"A member of a union or works council"},{const:"caring_responsibilities",title:"Caring responsibilities"},{const:"reported_concerns_with_workplace",title:"Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions"},{const:"none_of_these",title:"To the best of my knowledge, I am not aware of any of these"}]},"x-jsf-presentation":{inputType:"checkbox",direction:"column"}},will_challenge_termination:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Do you consider it is likely that the employee will challenge their termination?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},will_challenge_termination_description:{description:"",maxLength:1e3,title:"Please explain how the employee will challenge their termination",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},proposed_termination_date:{description:"",format:"date",maxLength:255,title:"Proposed termination date",type:"string","x-jsf-presentation":{inputType:"date"}},agrees_to_pto_amount:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Are these paid time off records correct?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},agrees_to_pto_amount_notes:{description:"Please provide details regarding any additional days taken, including specific dates, or any other inaccuracy in the time off data.",maxLength:1e3,title:"Provide time off details",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},timesheet_file:{description:"Upload a timesheet exported from your HR software. This way we can compare and confirm the total number of Paid time off.",title:"Timesheet document",type:["string","null"],"x-jsf-presentation":{inputType:"file",accept:".pdf"}},acknowledge_termination_procedure:{description:"",title:"I, {{requesterName}} have read and agree to the procedures as defined in the termination form.",type:"boolean","x-jsf-presentation":{direction:"column",inputType:"checkbox"}}},required:["confidential","customer_informed_employee","personal_email","termination_reason","reason_description","risk_assessment_reasons","will_challenge_termination","proposed_termination_date","agrees_to_pto_amount","acknowledge_termination_procedure"],type:"object","x-jsf-order":["is_confidential","customer_informed_employee","customer_informed_employee_date","customer_informed_employee_description","personal_email","termination_reason","reason_description","additional_comments","termination_reason_files","risk_assessment_reasons","will_challenge_termination","will_challenge_termination_description","proposed_termination_date","agrees_to_pto_amount","agrees_to_pto_amount_notes","timesheet_file","acknowledge_termination_procedure"]}}};export{e as a};
2
+ //# sourceMappingURL=chunk-WWANHPT7.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/flows/Termination/json-schemas/jsonSchema.ts"],"sourcesContent":["export const jsonSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n {\n if: {\n properties: {\n personal_email: {\n pattern: '^[a-zA-Z0-9 .]+$',\n },\n },\n },\n then: {\n properties: {\n personal_email: {\n 'x-jsf-presentation': {\n statement: {\n title:\n 'Please make sure to add the employee personal email so we can get in contact with the employee after the termination process takes effect.',\n inputType: 'statement',\n severity: 'warning',\n },\n },\n },\n },\n },\n },\n {\n if: {\n properties: {\n customer_informed_employee: {\n const: 'yes',\n },\n },\n required: ['customer_informed_employee'],\n },\n then: {\n properties: {\n customer_informed_employee_date: {\n type: 'string',\n },\n customer_informed_employee_description: {\n type: 'string',\n },\n },\n required: [\n 'customer_informed_employee_date',\n 'customer_informed_employee_description',\n ],\n },\n else: {\n properties: {\n customer_informed_employee_date: false,\n customer_informed_employee_description: false,\n },\n },\n },\n {\n if: {\n properties: {\n will_challenge_termination: {\n const: 'yes',\n },\n },\n required: ['will_challenge_termination'],\n },\n then: {\n properties: {\n will_challenge_termination_description: {\n type: 'string',\n },\n },\n required: ['will_challenge_termination_description'],\n },\n else: {\n properties: {\n will_challenge_termination_description: false,\n },\n },\n },\n {\n if: {\n properties: {\n agrees_to_pto_amount: {\n const: 'no',\n },\n },\n required: ['agrees_to_pto_amount'],\n },\n then: {\n properties: {\n agrees_to_pto_amount_notes: {\n type: 'string',\n },\n },\n required: ['agrees_to_pto_amount_notes'],\n },\n else: {\n properties: {\n agrees_to_pto_amount_notes: false,\n timesheet_file: false,\n },\n },\n },\n ],\n properties: {\n confidential: {\n description:\n 'Confidential requests are visible only to you. Non-confidential requests are visible to all admins in your company.',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title: 'Is this request confidential?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n statement: {\n title:\n \"Please do not inform the employee of their termination until we review your request for legal risks. When we approve your request, you can inform the employee and we'll take it from there.\",\n inputType: 'statement',\n severity: 'warning',\n },\n },\n },\n customer_informed_employee: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title: 'Have you informed the employee of the termination?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n customer_informed_employee_date: {\n description: '',\n format: 'date',\n maxLength: 255,\n title: 'When the employee was told about the termination',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'date',\n },\n },\n customer_informed_employee_description: {\n description: '',\n maxLength: 1000,\n title: 'How did you share this information?',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n personal_email: {\n description: '',\n maxLength: 255,\n title: \"Employee's personal email\",\n format: 'email',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'email',\n },\n },\n termination_reason: {\n title: 'Termination reason',\n description:\n 'Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.',\n type: 'string',\n oneOf: [\n {\n const: 'gross_misconduct',\n title: 'Gross misconduct',\n },\n {\n const: 'performance',\n title: 'Performance',\n },\n {\n const: 'workforce_reduction',\n title: 'Workforce Reduction',\n },\n {\n const: 'values',\n title: 'Values',\n },\n {\n const: 'compliance_issue',\n title: 'Compliance issue',\n },\n {\n const: 'incapacity_to_perform_inherent_duties',\n title: 'Incapacity To perform inherent duties',\n },\n {\n const: 'mutual_agreement',\n title: 'Mutual agreement',\n },\n {\n const: 'cancellation_before_start_date',\n title: 'Decision to cancel hiring before the employee starts',\n },\n {\n const: 'job_abandonment',\n title: 'Job abandonment',\n },\n {\n const: 'dissatisfaction_with_remote_service',\n title: 'Dissatisfaction with EOR service',\n },\n {\n const: 'end_of_fixed_term_contract_compliance_issue',\n title: 'End of fixed-term contract',\n },\n {\n const: 'other',\n title: 'Other',\n },\n ],\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n reason_description: {\n description: '',\n maxLength: 1000,\n title: 'Termination reason details',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n additional_comments: {\n description: '',\n maxLength: 1000,\n title: 'Additional details regarding this termination process.',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n termination_reason_files: {\n description:\n 'Please upload any supporting documents regarding the termination reason.',\n title: 'Termination reason files',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: '.pdf',\n multiple: true,\n },\n },\n risk_assessment_reasons: {\n description: '',\n title: 'This employee is...',\n type: 'array',\n items: {\n anyOf: [\n {\n const: 'sick_leave',\n title: 'Currently on or recently returned from sick leave',\n },\n {\n const: 'family_leave',\n title:\n 'Currently on or recently returned from maternity, paternity, or other family leave',\n },\n {\n const: 'pregnant_or_breastfeeding',\n title: 'Pregnant or breastfeeding',\n },\n {\n const: 'requested_medical_or_family_leave',\n title: 'Requested medical or family leave',\n },\n {\n const: 'disabled_or_health_condition',\n title: 'Disabled or has a health condition',\n },\n {\n const: 'member_of_union_or_works_council',\n title: 'A member of a union or works council',\n },\n {\n const: 'caring_responsibilities',\n title: 'Caring responsibilities',\n },\n {\n const: 'reported_concerns_with_workplace',\n title:\n 'Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions',\n },\n {\n const: 'none_of_these',\n title:\n 'To the best of my knowledge, I am not aware of any of these',\n },\n ],\n },\n 'x-jsf-presentation': {\n inputType: 'checkbox',\n direction: 'column',\n },\n },\n will_challenge_termination: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title:\n 'Do you consider it is likely that the employee will challenge their termination?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n will_challenge_termination_description: {\n description: '',\n maxLength: 1000,\n title:\n 'Please explain how the employee will challenge their termination',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n proposed_termination_date: {\n description: '',\n format: 'date',\n maxLength: 255,\n title: 'Proposed termination date',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'date',\n },\n },\n agrees_to_pto_amount: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title: 'Are these paid time off records correct?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n agrees_to_pto_amount_notes: {\n description:\n 'Please provide details regarding any additional days taken, including specific dates, or any other inaccuracy in the time off data.',\n maxLength: 1000,\n title: 'Provide time off details',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n timesheet_file: {\n description:\n 'Upload a timesheet exported from your HR software. This way we can compare and confirm the total number of Paid time off.',\n title: 'Timesheet document',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: '.pdf',\n },\n },\n acknowledge_termination_procedure: {\n description: '',\n title:\n 'I, {{username}} have read and agree to the procedures as defined in the termination form.',\n type: 'boolean',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'checkbox',\n },\n },\n },\n required: [\n 'confidential',\n 'customer_informed_employee',\n 'personal_email',\n 'termination_reason',\n 'reason_description',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'proposed_termination_date',\n 'agrees_to_pto_amount',\n 'acknowledge_termination_procedure',\n ],\n type: 'object',\n 'x-jsf-order': [\n 'is_confidential',\n 'customer_informed_employee',\n 'customer_informed_employee_date',\n 'customer_informed_employee_description',\n 'personal_email',\n 'termination_reason',\n 'reason_description',\n 'additional_comments',\n 'termination_reason_files',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'will_challenge_termination_description',\n 'proposed_termination_date',\n 'agrees_to_pto_amount',\n 'agrees_to_pto_amount_notes',\n 'timesheet_file',\n 'acknowledge_termination_procedure',\n ],\n },\n },\n};\n"],"mappings":"AAAO,IAAMA,EAAa,CACxB,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CACL,CACE,GAAI,CACF,WAAY,CACV,eAAgB,CACd,QAAS,kBACX,CACF,CACF,EACA,KAAM,CACJ,WAAY,CACV,eAAgB,CACd,qBAAsB,CACpB,UAAW,CACT,MACE,6IACF,UAAW,YACX,SAAU,SACZ,CACF,CACF,CACF,CACF,CACF,EACA,CACE,GAAI,CACF,WAAY,CACV,2BAA4B,CAC1B,MAAO,KACT,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,gCAAiC,CAC/B,KAAM,QACR,EACA,uCAAwC,CACtC,KAAM,QACR,CACF,EACA,SAAU,CACR,kCACA,wCACF,CACF,EACA,KAAM,CACJ,WAAY,CACV,gCAAiC,GACjC,uCAAwC,EAC1C,CACF,CACF,EACA,CACE,GAAI,CACF,WAAY,CACV,2BAA4B,CAC1B,MAAO,KACT,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,CACtC,KAAM,QACR,CACF,EACA,SAAU,CAAC,wCAAwC,CACrD,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,EAC1C,CACF,CACF,EACA,CACE,GAAI,CACF,WAAY,CACV,qBAAsB,CACpB,MAAO,IACT,CACF,EACA,SAAU,CAAC,sBAAsB,CACnC,EACA,KAAM,CACJ,WAAY,CACV,2BAA4B,CAC1B,KAAM,QACR,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,2BAA4B,GAC5B,eAAgB,EAClB,CACF,CACF,CACF,EACA,WAAY,CACV,aAAc,CACZ,YACE,sHACF,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MAAO,gCACP,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,QACX,UAAW,CACT,MACE,+LACF,UAAW,YACX,SAAU,SACZ,CACF,CACF,EACA,2BAA4B,CAC1B,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MAAO,qDACP,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,gCAAiC,CAC/B,YAAa,GACb,OAAQ,OACR,UAAW,IACX,MAAO,mDACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,MACb,CACF,EACA,uCAAwC,CACtC,YAAa,GACb,UAAW,IACX,MAAO,sCACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,eAAgB,CACd,YAAa,GACb,UAAW,IACX,MAAO,4BACP,OAAQ,QACR,KAAM,SACN,qBAAsB,CACpB,UAAW,OACb,CACF,EACA,mBAAoB,CAClB,MAAO,qBACP,YACE,oGACF,KAAM,SACN,MAAO,CACL,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,cACP,MAAO,aACT,EACA,CACE,MAAO,sBACP,MAAO,qBACT,EACA,CACE,MAAO,SACP,MAAO,QACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,wCACP,MAAO,uCACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,iCACP,MAAO,sDACT,EACA,CACE,MAAO,kBACP,MAAO,iBACT,EACA,CACE,MAAO,sCACP,MAAO,kCACT,EACA,CACE,MAAO,8CACP,MAAO,4BACT,EACA,CACE,MAAO,QACP,MAAO,OACT,CACF,EACA,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,mBAAoB,CAClB,YAAa,GACb,UAAW,IACX,MAAO,6BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,oBAAqB,CACnB,YAAa,GACb,UAAW,IACX,MAAO,yDACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,yBAA0B,CACxB,YACE,2EACF,MAAO,2BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,OACX,OAAQ,OACR,SAAU,EACZ,CACF,EACA,wBAAyB,CACvB,YAAa,GACb,MAAO,sBACP,KAAM,QACN,MAAO,CACL,MAAO,CACL,CACE,MAAO,aACP,MAAO,mDACT,EACA,CACE,MAAO,eACP,MACE,oFACJ,EACA,CACE,MAAO,4BACP,MAAO,2BACT,EACA,CACE,MAAO,oCACP,MAAO,mCACT,EACA,CACE,MAAO,+BACP,MAAO,oCACT,EACA,CACE,MAAO,mCACP,MAAO,sCACT,EACA,CACE,MAAO,0BACP,MAAO,yBACT,EACA,CACE,MAAO,mCACP,MACE,2LACJ,EACA,CACE,MAAO,gBACP,MACE,6DACJ,CACF,CACF,EACA,qBAAsB,CACpB,UAAW,WACX,UAAW,QACb,CACF,EACA,2BAA4B,CAC1B,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MACE,mFACF,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,uCAAwC,CACtC,YAAa,GACb,UAAW,IACX,MACE,mEACF,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,0BAA2B,CACzB,YAAa,GACb,OAAQ,OACR,UAAW,IACX,MAAO,4BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,EACA,qBAAsB,CACpB,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MAAO,2CACP,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,2BAA4B,CAC1B,YACE,sIACF,UAAW,IACX,MAAO,2BACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,eAAgB,CACd,YACE,4HACF,MAAO,qBACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,OACX,OAAQ,MACV,CACF,EACA,kCAAmC,CACjC,YAAa,GACb,MACE,4FACF,KAAM,UACN,qBAAsB,CACpB,UAAW,SACX,UAAW,UACb,CACF,CACF,EACA,SAAU,CACR,eACA,6BACA,iBACA,qBACA,qBACA,0BACA,6BACA,4BACA,uBACA,mCACF,EACA,KAAM,SACN,cAAe,CACb,kBACA,6BACA,kCACA,yCACA,iBACA,qBACA,qBACA,sBACA,2BACA,0BACA,6BACA,yCACA,4BACA,uBACA,6BACA,iBACA,mCACF,CACF,CACF,CACF","names":["jsonSchema"]}
1
+ {"version":3,"sources":["../src/flows/Termination/json-schemas/jsonSchema.ts"],"sourcesContent":["export const jsonSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n {\n if: {\n properties: {\n personal_email: {\n pattern: '^[a-zA-Z0-9 .]+$',\n },\n },\n },\n then: {\n properties: {\n personal_email: {\n 'x-jsf-presentation': {\n statement: {\n title:\n 'Please make sure to add the employee personal email so we can get in contact with the employee after the termination process takes effect.',\n inputType: 'statement',\n severity: 'warning',\n },\n },\n },\n },\n },\n },\n {\n if: {\n properties: {\n customer_informed_employee: {\n const: 'yes',\n },\n },\n required: ['customer_informed_employee'],\n },\n then: {\n properties: {\n customer_informed_employee_date: {\n type: 'string',\n },\n customer_informed_employee_description: {\n type: 'string',\n },\n },\n required: [\n 'customer_informed_employee_date',\n 'customer_informed_employee_description',\n ],\n },\n else: {\n properties: {\n customer_informed_employee_date: false,\n customer_informed_employee_description: false,\n },\n },\n },\n {\n if: {\n properties: {\n will_challenge_termination: {\n const: 'yes',\n },\n },\n required: ['will_challenge_termination'],\n },\n then: {\n properties: {\n will_challenge_termination_description: {\n type: 'string',\n },\n },\n required: ['will_challenge_termination_description'],\n },\n else: {\n properties: {\n will_challenge_termination_description: false,\n },\n },\n },\n {\n if: {\n properties: {\n agrees_to_pto_amount: {\n const: 'no',\n },\n },\n required: ['agrees_to_pto_amount'],\n },\n then: {\n properties: {\n agrees_to_pto_amount_notes: {\n type: 'string',\n },\n },\n required: ['agrees_to_pto_amount_notes'],\n },\n else: {\n properties: {\n agrees_to_pto_amount_notes: false,\n timesheet_file: false,\n },\n },\n },\n ],\n properties: {\n confidential: {\n description:\n 'Confidential requests are visible only to you. Non-confidential requests are visible to all admins in your company.',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title: 'Is this request confidential?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n statement: {\n title:\n \"Please do not inform the employee of their termination until we review your request for legal risks. When we approve your request, you can inform the employee and we'll take it from there.\",\n inputType: 'statement',\n severity: 'warning',\n },\n },\n },\n customer_informed_employee: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title: 'Have you informed the employee of the termination?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n customer_informed_employee_date: {\n description: '',\n format: 'date',\n maxLength: 255,\n title: 'When the employee was told about the termination',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'date',\n },\n },\n customer_informed_employee_description: {\n description: '',\n maxLength: 1000,\n title: 'How did you share this information?',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n personal_email: {\n description: '',\n maxLength: 255,\n title: \"Employee's personal email\",\n format: 'email',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'email',\n },\n },\n termination_reason: {\n title: 'Termination reason',\n description:\n 'Make sure you choose an accurate termination reason to avoid unfair or unlawful dismissal claims.',\n type: 'string',\n oneOf: [\n {\n const: 'gross_misconduct',\n title: 'Gross misconduct',\n },\n {\n const: 'performance',\n title: 'Performance',\n },\n {\n const: 'workforce_reduction',\n title: 'Workforce Reduction',\n },\n {\n const: 'values',\n title: 'Values',\n },\n {\n const: 'compliance_issue',\n title: 'Compliance issue',\n },\n {\n const: 'incapacity_to_perform_inherent_duties',\n title: 'Incapacity To perform inherent duties',\n },\n {\n const: 'mutual_agreement',\n title: 'Mutual agreement',\n },\n {\n const: 'cancellation_before_start_date',\n title: 'Decision to cancel hiring before the employee starts',\n },\n {\n const: 'job_abandonment',\n title: 'Job abandonment',\n },\n {\n const: 'dissatisfaction_with_remote_service',\n title: 'Dissatisfaction with EOR service',\n },\n {\n const: 'end_of_fixed_term_contract_compliance_issue',\n title: 'End of fixed-term contract',\n },\n {\n const: 'other',\n title: 'Other',\n },\n ],\n 'x-jsf-presentation': {\n inputType: 'select',\n },\n },\n reason_description: {\n description: '',\n maxLength: 1000,\n title: 'Termination reason details',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n additional_comments: {\n description: '',\n maxLength: 1000,\n title: 'Additional details regarding this termination process.',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n termination_reason_files: {\n description:\n 'Please upload any supporting documents regarding the termination reason.',\n title: 'Termination reason files',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: '.pdf',\n multiple: true,\n },\n },\n risk_assessment_reasons: {\n description: '',\n title: 'This employee is...',\n type: 'array',\n items: {\n anyOf: [\n {\n const: 'sick_leave',\n title: 'Currently on or recently returned from sick leave',\n },\n {\n const: 'family_leave',\n title:\n 'Currently on or recently returned from maternity, paternity, or other family leave',\n },\n {\n const: 'pregnant_or_breastfeeding',\n title: 'Pregnant or breastfeeding',\n },\n {\n const: 'requested_medical_or_family_leave',\n title: 'Requested medical or family leave',\n },\n {\n const: 'disabled_or_health_condition',\n title: 'Disabled or has a health condition',\n },\n {\n const: 'member_of_union_or_works_council',\n title: 'A member of a union or works council',\n },\n {\n const: 'caring_responsibilities',\n title: 'Caring responsibilities',\n },\n {\n const: 'reported_concerns_with_workplace',\n title:\n 'Reported any wrongdoing; raised any allegations of discrimination, harassment, retaliation, etc.; or asserted their employment rights or raised complaints about their working conditions',\n },\n {\n const: 'none_of_these',\n title:\n 'To the best of my knowledge, I am not aware of any of these',\n },\n ],\n },\n 'x-jsf-presentation': {\n inputType: 'checkbox',\n direction: 'column',\n },\n },\n will_challenge_termination: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title:\n 'Do you consider it is likely that the employee will challenge their termination?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n will_challenge_termination_description: {\n description: '',\n maxLength: 1000,\n title:\n 'Please explain how the employee will challenge their termination',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n proposed_termination_date: {\n description: '',\n format: 'date',\n maxLength: 255,\n title: 'Proposed termination date',\n type: 'string',\n 'x-jsf-presentation': {\n inputType: 'date',\n },\n },\n agrees_to_pto_amount: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title: 'Are these paid time off records correct?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n agrees_to_pto_amount_notes: {\n description:\n 'Please provide details regarding any additional days taken, including specific dates, or any other inaccuracy in the time off data.',\n maxLength: 1000,\n title: 'Provide time off details',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n timesheet_file: {\n description:\n 'Upload a timesheet exported from your HR software. This way we can compare and confirm the total number of Paid time off.',\n title: 'Timesheet document',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: '.pdf',\n },\n },\n acknowledge_termination_procedure: {\n description: '',\n title:\n 'I, {{requesterName}} have read and agree to the procedures as defined in the termination form.',\n type: 'boolean',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'checkbox',\n },\n },\n },\n required: [\n 'confidential',\n 'customer_informed_employee',\n 'personal_email',\n 'termination_reason',\n 'reason_description',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'proposed_termination_date',\n 'agrees_to_pto_amount',\n 'acknowledge_termination_procedure',\n ],\n type: 'object',\n 'x-jsf-order': [\n 'is_confidential',\n 'customer_informed_employee',\n 'customer_informed_employee_date',\n 'customer_informed_employee_description',\n 'personal_email',\n 'termination_reason',\n 'reason_description',\n 'additional_comments',\n 'termination_reason_files',\n 'risk_assessment_reasons',\n 'will_challenge_termination',\n 'will_challenge_termination_description',\n 'proposed_termination_date',\n 'agrees_to_pto_amount',\n 'agrees_to_pto_amount_notes',\n 'timesheet_file',\n 'acknowledge_termination_procedure',\n ],\n },\n },\n};\n"],"mappings":"AAAO,IAAMA,EAAa,CACxB,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CACL,CACE,GAAI,CACF,WAAY,CACV,eAAgB,CACd,QAAS,kBACX,CACF,CACF,EACA,KAAM,CACJ,WAAY,CACV,eAAgB,CACd,qBAAsB,CACpB,UAAW,CACT,MACE,6IACF,UAAW,YACX,SAAU,SACZ,CACF,CACF,CACF,CACF,CACF,EACA,CACE,GAAI,CACF,WAAY,CACV,2BAA4B,CAC1B,MAAO,KACT,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,gCAAiC,CAC/B,KAAM,QACR,EACA,uCAAwC,CACtC,KAAM,QACR,CACF,EACA,SAAU,CACR,kCACA,wCACF,CACF,EACA,KAAM,CACJ,WAAY,CACV,gCAAiC,GACjC,uCAAwC,EAC1C,CACF,CACF,EACA,CACE,GAAI,CACF,WAAY,CACV,2BAA4B,CAC1B,MAAO,KACT,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,CACtC,KAAM,QACR,CACF,EACA,SAAU,CAAC,wCAAwC,CACrD,EACA,KAAM,CACJ,WAAY,CACV,uCAAwC,EAC1C,CACF,CACF,EACA,CACE,GAAI,CACF,WAAY,CACV,qBAAsB,CACpB,MAAO,IACT,CACF,EACA,SAAU,CAAC,sBAAsB,CACnC,EACA,KAAM,CACJ,WAAY,CACV,2BAA4B,CAC1B,KAAM,QACR,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,2BAA4B,GAC5B,eAAgB,EAClB,CACF,CACF,CACF,EACA,WAAY,CACV,aAAc,CACZ,YACE,sHACF,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MAAO,gCACP,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,QACX,UAAW,CACT,MACE,+LACF,UAAW,YACX,SAAU,SACZ,CACF,CACF,EACA,2BAA4B,CAC1B,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MAAO,qDACP,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,gCAAiC,CAC/B,YAAa,GACb,OAAQ,OACR,UAAW,IACX,MAAO,mDACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,MACb,CACF,EACA,uCAAwC,CACtC,YAAa,GACb,UAAW,IACX,MAAO,sCACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,eAAgB,CACd,YAAa,GACb,UAAW,IACX,MAAO,4BACP,OAAQ,QACR,KAAM,SACN,qBAAsB,CACpB,UAAW,OACb,CACF,EACA,mBAAoB,CAClB,MAAO,qBACP,YACE,oGACF,KAAM,SACN,MAAO,CACL,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,cACP,MAAO,aACT,EACA,CACE,MAAO,sBACP,MAAO,qBACT,EACA,CACE,MAAO,SACP,MAAO,QACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,wCACP,MAAO,uCACT,EACA,CACE,MAAO,mBACP,MAAO,kBACT,EACA,CACE,MAAO,iCACP,MAAO,sDACT,EACA,CACE,MAAO,kBACP,MAAO,iBACT,EACA,CACE,MAAO,sCACP,MAAO,kCACT,EACA,CACE,MAAO,8CACP,MAAO,4BACT,EACA,CACE,MAAO,QACP,MAAO,OACT,CACF,EACA,qBAAsB,CACpB,UAAW,QACb,CACF,EACA,mBAAoB,CAClB,YAAa,GACb,UAAW,IACX,MAAO,6BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,oBAAqB,CACnB,YAAa,GACb,UAAW,IACX,MAAO,yDACP,KAAM,SACN,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,yBAA0B,CACxB,YACE,2EACF,MAAO,2BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,OACX,OAAQ,OACR,SAAU,EACZ,CACF,EACA,wBAAyB,CACvB,YAAa,GACb,MAAO,sBACP,KAAM,QACN,MAAO,CACL,MAAO,CACL,CACE,MAAO,aACP,MAAO,mDACT,EACA,CACE,MAAO,eACP,MACE,oFACJ,EACA,CACE,MAAO,4BACP,MAAO,2BACT,EACA,CACE,MAAO,oCACP,MAAO,mCACT,EACA,CACE,MAAO,+BACP,MAAO,oCACT,EACA,CACE,MAAO,mCACP,MAAO,sCACT,EACA,CACE,MAAO,0BACP,MAAO,yBACT,EACA,CACE,MAAO,mCACP,MACE,2LACJ,EACA,CACE,MAAO,gBACP,MACE,6DACJ,CACF,CACF,EACA,qBAAsB,CACpB,UAAW,WACX,UAAW,QACb,CACF,EACA,2BAA4B,CAC1B,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MACE,mFACF,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,uCAAwC,CACtC,YAAa,GACb,UAAW,IACX,MACE,mEACF,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,0BAA2B,CACzB,YAAa,GACb,OAAQ,OACR,UAAW,IACX,MAAO,4BACP,KAAM,SACN,qBAAsB,CACpB,UAAW,MACb,CACF,EACA,qBAAsB,CACpB,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MAAO,2CACP,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,2BAA4B,CAC1B,YACE,sIACF,UAAW,IACX,MAAO,2BACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,eAAgB,CACd,YACE,4HACF,MAAO,qBACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,OACX,OAAQ,MACV,CACF,EACA,kCAAmC,CACjC,YAAa,GACb,MACE,iGACF,KAAM,UACN,qBAAsB,CACpB,UAAW,SACX,UAAW,UACb,CACF,CACF,EACA,SAAU,CACR,eACA,6BACA,iBACA,qBACA,qBACA,0BACA,6BACA,4BACA,uBACA,mCACF,EACA,KAAM,SACN,cAAe,CACb,kBACA,6BACA,kCACA,yCACA,iBACA,qBACA,qBACA,sBACA,2BACA,0BACA,6BACA,yCACA,4BACA,uBACA,6BACA,iBACA,mCACF,CACF,CACF,CACF","names":["jsonSchema"]}
@@ -1,2 +1,2 @@
1
- import{b as o}from"./chunk-FI76EKUS.js";import{b as n}from"./chunk-6HGUGIYJ.js";import{a as t}from"./chunk-AYDF3IFZ.js";import i from"react";function B({children:r,...e}){let{formId:m}=n();return i.createElement(o,{...e,form:m},r)}t(B,"ContractAmendmentSubmit");export{B as a};
2
- //# sourceMappingURL=chunk-5DQBY2TR.js.map
1
+ import{b as o}from"./chunk-56BNVYTD.js";import{b as n}from"./chunk-6HGUGIYJ.js";import{a as t}from"./chunk-AYDF3IFZ.js";import i from"react";function B({children:r,...e}){let{formId:m}=n();return i.createElement(o,{...e,form:m},r)}t(B,"ContractAmendmentSubmit");export{B as a};
2
+ //# sourceMappingURL=chunk-XLFHHYVS.js.map
@@ -0,0 +1,2 @@
1
+ var e={data:{version:7,schema:{additionalProperties:!1,allOf:[],properties:{acknowledge_termination_procedure:{description:"",title:"I, {{requesterName}} have read and agree to the procedures as defined in the termination form.",type:"boolean","x-jsf-presentation":{direction:"column",inputType:"checkbox"}}},required:["acknowledge_termination_procedure"],type:"object","x-jsf-order":["acknowledge_termination_procedure"]}}};export{e as a};
2
+ //# sourceMappingURL=chunk-XSHHMBMT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/Termination/json-schemas/additionalInformation.ts"],"sourcesContent":["export const additionalInformationSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [],\n properties: {\n acknowledge_termination_procedure: {\n description: '',\n title:\n 'I, {{requesterName}} have read and agree to the procedures as defined in the termination form.',\n type: 'boolean',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'checkbox',\n },\n },\n },\n required: ['acknowledge_termination_procedure'],\n type: 'object',\n 'x-jsf-order': ['acknowledge_termination_procedure'],\n },\n },\n};\n"],"mappings":"AAAO,IAAMA,EAA8B,CACzC,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CAAC,EACR,WAAY,CACV,kCAAmC,CACjC,YAAa,GACb,MACE,iGACF,KAAM,UACN,qBAAsB,CACpB,UAAW,SACX,UAAW,UACb,CACF,CACF,EACA,SAAU,CAAC,mCAAmC,EAC9C,KAAM,SACN,cAAe,CAAC,mCAAmC,CACrD,CACF,CACF","names":["additionalInformationSchema"]}
@@ -1,2 +1,2 @@
1
- import{b as n}from"./chunk-DZYFSFZ7.js";import{b as o}from"./chunk-FI76EKUS.js";import{a as t}from"./chunk-AYDF3IFZ.js";import m from"react";function c({children:r,...i}){let{terminationBag:{back:e}}=n();return m.createElement(o,{...i,onClick:()=>{e()}},r)}t(c,"TerminationBack");export{c as a};
2
- //# sourceMappingURL=chunk-KPSFJ6BN.js.map
1
+ import{b as n}from"./chunk-DZYFSFZ7.js";import{b as o}from"./chunk-56BNVYTD.js";import{a as t}from"./chunk-AYDF3IFZ.js";import m from"react";function c({children:r,...i}){let{terminationBag:{back:e}}=n();return m.createElement(o,{...i,onClick:()=>{e()}},r)}t(c,"TerminationBack");export{c as a};
2
+ //# sourceMappingURL=chunk-YOC3VDC7.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-37DREOGC.js";import"../../chunk-FI76EKUS.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentBack};
1
+ import{a}from"../../chunk-FMT2OTOL.js";import"../../chunk-56BNVYTD.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentBack};
2
2
  //# sourceMappingURL=ContractAmendmentBack.js.map
@@ -1,4 +1,4 @@
1
- import { b as PostCreateContractAmendmentError, a as ContractAmendmentResponse } from '../../types.gen-BgLeTAqP.js';
1
+ import { b as PostCreateContractAmendmentError, a as ContractAmendmentResponse } from '../../types.gen-Dta9Iy5C.js';
2
2
  import React__default from 'react';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
 
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-IJPE22L7.js";import"../../chunk-N5AQSLAU.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentConfirmationForm};
1
+ import{a}from"../../chunk-THCM2G6C.js";import"../../chunk-IDSJI7KQ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentConfirmationForm};
2
2
  //# sourceMappingURL=ContractAmendmentConfirmationForm.js.map
@@ -5,14 +5,14 @@ import { ContractAmendmentForm } from './ContractAmendmentForm.js';
5
5
  import { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
6
6
  import { useContractAmendment } from './hooks.js';
7
7
  import { ContractAmendmentParams } from './types.js';
8
- import '../../types.gen-BgLeTAqP.js';
8
+ import '../../types.gen-Dta9Iy5C.js';
9
9
  import 'react-hook-form';
10
10
  import '../../mutations-v9H353tz.js';
11
11
  import '@remoteoss/json-schema-form';
12
12
  import '../useStepState.js';
13
13
 
14
14
  type TUseContractAmendment = ReturnType<typeof useContractAmendment>;
15
- type RenderProps = {
15
+ type ContractAmendmentRenderProps = {
16
16
  /**
17
17
  * The contract amendment bag returned by the useContractAmendment hook.
18
18
  * This bag contains all the methods and properties needed to handle the contract amendment flow.
@@ -34,8 +34,8 @@ type RenderProps = {
34
34
  };
35
35
  };
36
36
  type ContractAmendmentFlowProps = ContractAmendmentParams & {
37
- render: ({ contractAmendmentBag, components, }: RenderProps) => React__default.ReactNode;
37
+ render: ({ contractAmendmentBag, components, }: ContractAmendmentRenderProps) => React__default.ReactNode;
38
38
  };
39
39
  declare function ContractAmendmentFlow({ employmentId, countryCode, options, render, }: ContractAmendmentFlowProps): React__default.JSX.Element;
40
40
 
41
- export { ContractAmendmentFlow, type RenderProps };
41
+ export { ContractAmendmentFlow, type ContractAmendmentRenderProps };
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-2EKC7DK3.js";import"../../chunk-5DQBY2TR.js";import"../../chunk-GW7GG5ZW.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-JLUDKN4H.js";import"../../chunk-RCX4JUI3.js";import"../../chunk-55VACCVZ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-S56EWAS4.js";import"../../chunk-37DREOGC.js";import"../../chunk-IJPE22L7.js";import"../../chunk-6LTJBLSD.js";import"../../chunk-AYFHWLQZ.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-FI76EKUS.js";import"../../chunk-N5AQSLAU.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentFlow};
1
+ import{a}from"../../chunk-GGZV4QYL.js";import"../../chunk-XLFHHYVS.js";import"../../chunk-3MAYMGXF.js";import"../../chunk-WJPC4J3U.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-RCX4JUI3.js";import"../../chunk-AG27JG4N.js";import"../../chunk-S56EWAS4.js";import"../../chunk-FMT2OTOL.js";import"../../chunk-THCM2G6C.js";import"../../chunk-U3TYUMTJ.js";import"../../chunk-VTPDBEHE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-56BNVYTD.js";import"../../chunk-IDSJI7KQ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentFlow};
2
2
  //# sourceMappingURL=ContractAmendmentFlow.js.map
@@ -1,4 +1,4 @@
1
- import { P as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-BgLeTAqP.js';
1
+ import { P as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-Dta9Iy5C.js';
2
2
  import React__default from 'react';
3
3
  import { FieldValues } from 'react-hook-form';
4
4
 
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-6LTJBLSD.js";import"../../chunk-AYFHWLQZ.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-FI76EKUS.js";import"../../chunk-N5AQSLAU.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentForm};
1
+ import{a}from"../../chunk-U3TYUMTJ.js";import"../../chunk-VTPDBEHE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-56BNVYTD.js";import"../../chunk-IDSJI7KQ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentForm};
2
2
  //# sourceMappingURL=ContractAmendmentForm.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-5DQBY2TR.js";import"../../chunk-FI76EKUS.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentSubmit};
1
+ import{a}from"../../chunk-XLFHHYVS.js";import"../../chunk-56BNVYTD.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentSubmit};
2
2
  //# sourceMappingURL=ContractAmendmentSubmit.js.map
@@ -1,5 +1,5 @@
1
1
  import { S as SuccessResponse, E as ErrorResponse } from '../../mutations-v9H353tz.js';
2
- import { C as ContractAmendmentAutomatableResponse, P as PostAutomatableContractAmendmentError, a as ContractAmendmentResponse, b as PostCreateContractAmendmentError } from '../../types.gen-BgLeTAqP.js';
2
+ import { C as ContractAmendmentAutomatableResponse, P as PostAutomatableContractAmendmentError, a as ContractAmendmentResponse, b as PostCreateContractAmendmentError } from '../../types.gen-Dta9Iy5C.js';
3
3
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
4
4
  import * as React from 'react';
5
5
  import * as react_hook_form from 'react-hook-form';
@@ -1,5 +1,5 @@
1
1
  import { S as SuccessResponse, E as ErrorResponse } from '../../mutations-v9H353tz.js';
2
- import { C as ContractAmendmentAutomatableResponse, P as PostAutomatableContractAmendmentError, a as ContractAmendmentResponse, b as PostCreateContractAmendmentError } from '../../types.gen-BgLeTAqP.js';
2
+ import { C as ContractAmendmentAutomatableResponse, P as PostAutomatableContractAmendmentError, a as ContractAmendmentResponse, b as PostCreateContractAmendmentError } from '../../types.gen-Dta9Iy5C.js';
3
3
  import * as React from 'react';
4
4
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
5
5
  import { Step } from '../useStepState.js';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-GW7GG5ZW.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-JLUDKN4H.js";import"../../chunk-RCX4JUI3.js";import"../../chunk-55VACCVZ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-S56EWAS4.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-AYDF3IFZ.js";export{a as useContractAmendment};
1
+ import{a}from"../../chunk-3MAYMGXF.js";import"../../chunk-WJPC4J3U.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-RCX4JUI3.js";import"../../chunk-AG27JG4N.js";import"../../chunk-S56EWAS4.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-YBACB5A6.js";import"../../chunk-AYDF3IFZ.js";export{a as useContractAmendment};
2
2
  //# sourceMappingURL=hooks.js.map
@@ -1,9 +1,9 @@
1
1
  export { ContractAmendmentConfirmationForm } from './ContractAmendmentConfirmationForm.js';
2
- export { ContractAmendmentFlow, RenderProps } from './ContractAmendmentFlow.js';
2
+ export { ContractAmendmentFlow, ContractAmendmentRenderProps } from './ContractAmendmentFlow.js';
3
3
  export { ContractAmendmentForm } from './ContractAmendmentForm.js';
4
4
  export { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
5
5
  export { useContractAmendment } from './hooks.js';
6
- import '../../types.gen-BgLeTAqP.js';
6
+ import '../../types.gen-Dta9Iy5C.js';
7
7
  import 'react';
8
8
  import 'react-hook-form';
9
9
  import './ContractAmendmentBack.js';
@@ -1,2 +1,2 @@
1
- import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-2EKC7DK3.js";import{a as c}from"../../chunk-5DQBY2TR.js";import{a as d}from"../../chunk-GW7GG5ZW.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-JLUDKN4H.js";import"../../chunk-RCX4JUI3.js";import"../../chunk-55VACCVZ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-S56EWAS4.js";import"../../chunk-37DREOGC.js";import{a}from"../../chunk-IJPE22L7.js";import{a as b}from"../../chunk-6LTJBLSD.js";import"../../chunk-AYFHWLQZ.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-FI76EKUS.js";import"../../chunk-N5AQSLAU.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
1
+ import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-GGZV4QYL.js";import{a as c}from"../../chunk-XLFHHYVS.js";import{a as d}from"../../chunk-3MAYMGXF.js";import"../../chunk-WJPC4J3U.js";import"../../chunk-JRQSZHUU.js";import"../../chunk-RCX4JUI3.js";import"../../chunk-AG27JG4N.js";import"../../chunk-S56EWAS4.js";import"../../chunk-FMT2OTOL.js";import{a}from"../../chunk-THCM2G6C.js";import{a as b}from"../../chunk-U3TYUMTJ.js";import"../../chunk-VTPDBEHE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-56BNVYTD.js";import"../../chunk-IDSJI7KQ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-6HGUGIYJ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
2
2
  //# sourceMappingURL=index.js.map
@@ -5,6 +5,9 @@ type ContractAmendmentParams = {
5
5
  jsfModify?: {
6
6
  [K in 'fields' | 'allFields' | 'create' | 'pick' | 'orderRoot']?: any;
7
7
  };
8
+ jsonSchemaVersion?: {
9
+ contract_amendments?: number;
10
+ };
8
11
  };
9
12
  };
10
13
 
@@ -1,4 +1,4 @@
1
- import { E as EmploymentShowResponse } from '../../types.gen-BgLeTAqP.js';
1
+ import { E as EmploymentShowResponse } from '../../types.gen-Dta9Iy5C.js';
2
2
  import { Fields } from '@remoteoss/json-schema-form';
3
3
  import { Step } from '../useStepState.js';
4
4
  import 'react';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-IJWDAD54.js";import"../../chunk-DYB3RWP7.js";import"../../chunk-FI76EKUS.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorDisclaimer};
1
+ import{a}from"../../chunk-DGPRFQYK.js";import"../../chunk-DYB3RWP7.js";import"../../chunk-56BNVYTD.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorDisclaimer};
2
2
  //# sourceMappingURL=CostCalculatorDisclaimer.js.map
@@ -3,7 +3,7 @@ import { CostCalculatorEstimationOptions, JSFModify } from './types.js';
3
3
  import React__default from 'react';
4
4
  import 'yup';
5
5
  import '@tanstack/react-query';
6
- import '../../types.gen-BgLeTAqP.js';
6
+ import '../../types.gen-Dta9Iy5C.js';
7
7
  import '../types.js';
8
8
  import '@remoteoss/json-schema-form';
9
9
 
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-F5QJZKDL.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-NBD4VOG3.js";import"../../chunk-UPRUP24B.js";import"../../chunk-55VACCVZ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorFlow};
1
+ import{a}from"../../chunk-4APN5ST6.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-P3N4X5KU.js";import"../../chunk-UPRUP24B.js";import"../../chunk-AG27JG4N.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-YBACB5A6.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorFlow};
2
2
  //# sourceMappingURL=CostCalculatorFlow.js.map
@@ -1,4 +1,4 @@
1
- import { c as CostCalculatorEstimateResponse } from '../../types.gen-BgLeTAqP.js';
1
+ import { c as CostCalculatorEstimateResponse } from '../../types.gen-Dta9Iy5C.js';
2
2
  import { EstimationError } from './hooks.js';
3
3
  import { CostCalculatorEstimationFormValues } from './types.js';
4
4
  import React__default from 'react';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-XULIEA44.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-AYFHWLQZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-FI76EKUS.js";import"../../chunk-N5AQSLAU.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorForm};
1
+ import{a}from"../../chunk-BDCIVWHR.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-VTPDBEHE.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-56BNVYTD.js";import"../../chunk-IDSJI7KQ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorForm};
2
2
  //# sourceMappingURL=CostCalculatorForm.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-OCNLZSS7.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-FI76EKUS.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorResetButton};
1
+ import{a}from"../../chunk-7CYG2RHP.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-56BNVYTD.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorResetButton};
2
2
  //# sourceMappingURL=CostCalculatorResetButton.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-NZFES56Y.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-FI76EKUS.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorSubmitButton};
1
+ import{a}from"../../chunk-EAAIAMTY.js";import"../../chunk-OLJ2S6A6.js";import"../../chunk-56BNVYTD.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as CostCalculatorSubmitButton};
2
2
  //# sourceMappingURL=CostCalculatorSubmitButton.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-J2RINDSC.js";import"../../../chunk-AD7ZWPEI.js";import"../../../chunk-FCRDQVTB.js";import"../../../chunk-FI76EKUS.js";import"../../../chunk-SJ56GVNV.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorBenefitsBreakdown};
1
+ import{a}from"../../../chunk-KH6QS5OU.js";import"../../../chunk-3FVI5JIC.js";import"../../../chunk-MESREYTZ.js";import"../../../chunk-56BNVYTD.js";import"../../../chunk-5ETXP2QF.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorBenefitsBreakdown};
2
2
  //# sourceMappingURL=CostCalculatorBenefitsBreakdown.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-4F7PYKUZ.js";import"../../../chunk-AD7ZWPEI.js";import"../../../chunk-FCRDQVTB.js";import"../../../chunk-FI76EKUS.js";import"../../../chunk-SJ56GVNV.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorContributionsBreakdown};
1
+ import{a}from"../../../chunk-J55S4SEH.js";import"../../../chunk-3FVI5JIC.js";import"../../../chunk-MESREYTZ.js";import"../../../chunk-56BNVYTD.js";import"../../../chunk-5ETXP2QF.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorContributionsBreakdown};
2
2
  //# sourceMappingURL=CostCalculatorContributionsBreakdown.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-YVC4OEFJ.js";import"../../../chunk-FCRDQVTB.js";import"../../../chunk-SJ56GVNV.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorGrossSalary};
1
+ import{a}from"../../../chunk-6A3F6JG6.js";import"../../../chunk-MESREYTZ.js";import"../../../chunk-5ETXP2QF.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorGrossSalary};
2
2
  //# sourceMappingURL=CostCalculatorGrossSalary.js.map
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { c as CostCalculatorEstimateResponse } from '../../../types.gen-BgLeTAqP.js';
2
+ import { c as CostCalculatorEstimateResponse } from '../../../types.gen-Dta9Iy5C.js';
3
3
 
4
4
  interface CostCalculatorResultProps {
5
5
  employmentData: CostCalculatorEstimateResponse['data'];
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-YAHWFLDH.js";import"../../../chunk-XEQTLVMV.js";import"../../../chunk-DOA6BAUQ.js";import"../../../chunk-J2RINDSC.js";import"../../../chunk-4F7PYKUZ.js";import"../../../chunk-AD7ZWPEI.js";import"../../../chunk-YVC4OEFJ.js";import"../../../chunk-FCRDQVTB.js";import"../../../chunk-FI76EKUS.js";import"../../../chunk-SJ56GVNV.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorResults};
1
+ import{a}from"../../../chunk-6YO6XWPH.js";import"../../../chunk-KH6QS5OU.js";import"../../../chunk-J55S4SEH.js";import"../../../chunk-3FVI5JIC.js";import"../../../chunk-6A3F6JG6.js";import"../../../chunk-MESREYTZ.js";import"../../../chunk-GMGKIQLI.js";import"../../../chunk-WQHKB5T7.js";import"../../../chunk-56BNVYTD.js";import"../../../chunk-5ETXP2QF.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorResults};
2
2
  //# sourceMappingURL=CostCalculatorResults.js.map
@@ -1,2 +1,2 @@
1
- import{a as l,b as n,c as t,e as d}from"../../../chunk-XEQTLVMV.js";import{b as i}from"../../../chunk-SJ56GVNV.js";import{a as s}from"../../../chunk-AYDF3IFZ.js";import r from"react";import{Cell as u,Pie as C,PieChart as p,ResponsiveContainer as f,Tooltip as v}from"recharts";function c({chartData:o,currency:m}){return r.createElement(l,{className:"rounded-lg RemoteFlows__CostCalculatorResults_CostDistribution"},r.createElement(n,{className:"pb-2"},r.createElement(t,null,"Cost Distribution")),r.createElement(d,null,r.createElement("div",{className:"h-[300px] flex items-center justify-center"},r.createElement(f,{width:"100%",height:"100%"},r.createElement(p,null,r.createElement(C,{data:o,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",labelLine:!1},o.map((e,a)=>r.createElement(u,{key:`cell-${a}`,fill:e.color}))),r.createElement(v,{formatter:e=>i(Number(e),m),contentStyle:{borderRadius:"var(--radius-md)",border:"1px solid var(--color-border)",fontSize:"var(--text-xs)"}})))),r.createElement("div",{className:"mt-4 space-y-2"},o.map((e,a)=>r.createElement("div",{key:a,className:"flex items-center gap-2"},r.createElement("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),r.createElement("span",{className:"text-sm"},e.name))))))}s(c,"CostCalculatorResultsChart");export{c as default};
1
+ import{a as l,b as n,c as t,e as d}from"../../../chunk-GMGKIQLI.js";import{b as i}from"../../../chunk-5ETXP2QF.js";import{a as s}from"../../../chunk-AYDF3IFZ.js";import r from"react";import{Cell as u,Pie as C,PieChart as p,ResponsiveContainer as f,Tooltip as v}from"recharts";function c({chartData:o,currency:m}){return r.createElement(l,{className:"rounded-lg RemoteFlows__CostCalculatorResults_CostDistribution"},r.createElement(n,{className:"pb-2"},r.createElement(t,null,"Cost Distribution")),r.createElement(d,null,r.createElement("div",{className:"h-[300px] flex items-center justify-center"},r.createElement(f,{width:"100%",height:"100%"},r.createElement(p,null,r.createElement(C,{data:o,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",labelLine:!1},o.map((e,a)=>r.createElement(u,{key:`cell-${a}`,fill:e.color}))),r.createElement(v,{formatter:e=>i(Number(e),m),contentStyle:{borderRadius:"var(--radius-md)",border:"1px solid var(--color-border)",fontSize:"var(--text-xs)"}})))),r.createElement("div",{className:"mt-4 space-y-2"},o.map((e,a)=>r.createElement("div",{key:a,className:"flex items-center gap-2"},r.createElement("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),r.createElement("span",{className:"text-sm"},e.name))))))}s(c,"CostCalculatorResultsChart");export{c as default};
2
2
  //# sourceMappingURL=CostCalculatorResultsChart.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-DOA6BAUQ.js";import"../../../chunk-SJ56GVNV.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorTotalCost};
1
+ import{a}from"../../../chunk-WQHKB5T7.js";import"../../../chunk-5ETXP2QF.js";import"../../../chunk-AYDF3IFZ.js";export{a as CostCalculatorTotalCost};
2
2
  //# sourceMappingURL=CostCalculatorTotalCost.js.map
@@ -2,7 +2,7 @@ import { Result } from '../types.js';
2
2
  import { useCostCalculator, EstimationError } from './hooks.js';
3
3
  import { CostCalculatorEstimationFormValues } from './types.js';
4
4
  import * as React from 'react';
5
- import { c as CostCalculatorEstimateResponse } from '../../types.gen-BgLeTAqP.js';
5
+ import { c as CostCalculatorEstimateResponse } from '../../types.gen-Dta9Iy5C.js';
6
6
  import { $TSFixMe } from '@remoteoss/json-schema-form';
7
7
  import * as yup from 'yup';
8
8
  import { UseFormReturn } from 'react-hook-form';
@@ -1,7 +1,7 @@
1
1
  import * as yup from 'yup';
2
2
  import { ValidationError } from 'yup';
3
3
  import * as _tanstack_react_query from '@tanstack/react-query';
4
- import { c as CostCalculatorEstimateResponse, d as PostCreateEstimationError, e as CostCalculatorEstimatePdfResponse, f as PostCreateEstimationPdfError, g as CostCalculatorEstimateParams } from '../../types.gen-BgLeTAqP.js';
4
+ import { c as CostCalculatorEstimateResponse, d as PostCreateEstimationError, e as CostCalculatorEstimatePdfResponse, f as PostCreateEstimationPdfError, g as CostCalculatorEstimateParams } from '../../types.gen-Dta9Iy5C.js';
5
5
  import { CostCalculatorEstimationOptions, JSFModify, CostCalculatorEstimationFormValues } from './types.js';
6
6
  import { Result } from '../types.js';
7
7
  import '@remoteoss/json-schema-form';
@@ -1,2 +1,2 @@
1
- import{c as a,d as b,e as c}from"../../chunk-NBD4VOG3.js";import"../../chunk-UPRUP24B.js";import"../../chunk-55VACCVZ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-AYDF3IFZ.js";export{b as defaultEstimationOptions,c as useCostCalculator,a as useCostCalculatorEstimationPdf};
1
+ import{c as a,d as b,e as c}from"../../chunk-P3N4X5KU.js";import"../../chunk-UPRUP24B.js";import"../../chunk-AG27JG4N.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-YBACB5A6.js";import"../../chunk-AYDF3IFZ.js";export{b as defaultEstimationOptions,c as useCostCalculator,a as useCostCalculatorEstimationPdf};
2
2
  //# sourceMappingURL=hooks.js.map
@@ -8,7 +8,7 @@ export { disclaimerData } from './disclaimerUtils.js';
8
8
  export { CostCalculatorResults } from './Results/CostCalculatorResults.js';
9
9
  export { buildPayload as buildCostCalculatorEstimationPayload } from './utils.js';
10
10
  import './types.js';
11
- import '../../types.gen-BgLeTAqP.js';
11
+ import '../../types.gen-Dta9Iy5C.js';
12
12
  import '@remoteoss/json-schema-form';
13
13
  import 'react';
14
14
  import 'yup';
@@ -1,2 +1,2 @@
1
- import"../../chunk-FGBEOUQK.js";import{a as j}from"../../chunk-YAHWFLDH.js";import"../../chunk-XEQTLVMV.js";import"../../chunk-DOA6BAUQ.js";import"../../chunk-J2RINDSC.js";import"../../chunk-4F7PYKUZ.js";import"../../chunk-AD7ZWPEI.js";import"../../chunk-YVC4OEFJ.js";import"../../chunk-FCRDQVTB.js";import{a as e}from"../../chunk-XULIEA44.js";import{a as g}from"../../chunk-OCNLZSS7.js";import{a as f}from"../../chunk-NZFES56Y.js";import{a as i}from"../../chunk-IJWDAD54.js";import{a as h}from"../../chunk-DYB3RWP7.js";import{a as d}from"../../chunk-F5QJZKDL.js";import"../../chunk-OLJ2S6A6.js";import{b as a,c as b,e as c}from"../../chunk-NBD4VOG3.js";import"../../chunk-UPRUP24B.js";import"../../chunk-55VACCVZ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-AYFHWLQZ.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-FI76EKUS.js";import"../../chunk-N5AQSLAU.js";import"../../chunk-SJ56GVNV.js";import"../../chunk-AYDF3IFZ.js";export{i as CostCalculatorDisclaimer,d as CostCalculatorFlow,e as CostCalculatorForm,g as CostCalculatorResetButton,j as CostCalculatorResults,f as CostCalculatorSubmitButton,a as buildCostCalculatorEstimationPayload,h as disclaimerData,c as useCostCalculator,b as useCostCalculatorEstimationPdf};
1
+ import"../../chunk-FGBEOUQK.js";import{a as j}from"../../chunk-6YO6XWPH.js";import"../../chunk-KH6QS5OU.js";import"../../chunk-J55S4SEH.js";import"../../chunk-3FVI5JIC.js";import"../../chunk-6A3F6JG6.js";import"../../chunk-MESREYTZ.js";import"../../chunk-GMGKIQLI.js";import"../../chunk-WQHKB5T7.js";import{a as e}from"../../chunk-BDCIVWHR.js";import{a as g}from"../../chunk-7CYG2RHP.js";import{a as f}from"../../chunk-EAAIAMTY.js";import{a as i}from"../../chunk-DGPRFQYK.js";import{a as h}from"../../chunk-DYB3RWP7.js";import{a as d}from"../../chunk-4APN5ST6.js";import"../../chunk-OLJ2S6A6.js";import{b as a,c as b,e as c}from"../../chunk-P3N4X5KU.js";import"../../chunk-UPRUP24B.js";import"../../chunk-AG27JG4N.js";import"../../chunk-VTPDBEHE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-56BNVYTD.js";import"../../chunk-IDSJI7KQ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{i as CostCalculatorDisclaimer,d as CostCalculatorFlow,e as CostCalculatorForm,g as CostCalculatorResetButton,j as CostCalculatorResults,f as CostCalculatorSubmitButton,a as buildCostCalculatorEstimationPayload,h as disclaimerData,c as useCostCalculator,b as useCostCalculatorEstimationPdf};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { i as EmploymentTermType } from '../../types.gen-BgLeTAqP.js';
1
+ import { h as EmploymentTermType } from '../../types.gen-Dta9Iy5C.js';
2
2
  import { modify } from '@remoteoss/json-schema-form';
3
3
 
4
4
  type CostCalculatorEstimationFormValues = {
@@ -1,4 +1,4 @@
1
- import { g as CostCalculatorEstimateParams } from '../../types.gen-BgLeTAqP.js';
1
+ import { g as CostCalculatorEstimateParams } from '../../types.gen-Dta9Iy5C.js';
2
2
  import { $TSFixMe } from '@remoteoss/json-schema-form';
3
3
  import { AnyObjectSchema } from 'yup';
4
4
  import { CostCalculatorEstimationFormValues, CostCalculatorEstimationOptions } from './types.js';
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-NBD4VOG3.js";import"../../chunk-UPRUP24B.js";import"../../chunk-55VACCVZ.js";import"../../chunk-YBACB5A6.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-AYDF3IFZ.js";export{b as buildPayload,a as buildValidationSchema};
1
+ import{a,b}from"../../chunk-P3N4X5KU.js";import"../../chunk-UPRUP24B.js";import"../../chunk-AG27JG4N.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-YBACB5A6.js";import"../../chunk-AYDF3IFZ.js";export{b as buildPayload,a as buildValidationSchema};
2
2
  //# sourceMappingURL=utils.js.map
@@ -0,0 +1,13 @@
1
+ import React__default from 'react';
2
+ import { TerminationFormValues } from './types.js';
3
+ import { O as OffboardingResponse } from '../../types.gen-Dta9Iy5C.js';
4
+
5
+ type AdditionalDetailsFormProps = {
6
+ requesterName: string;
7
+ onSubmit?: (payload: TerminationFormValues) => void | Promise<void>;
8
+ onError?: (error: Error) => void;
9
+ onSuccess?: (data: OffboardingResponse) => void;
10
+ };
11
+ declare function AdditionalDetailsForm({ requesterName, onSubmit, onSuccess, onError, }: AdditionalDetailsFormProps): React__default.JSX.Element;
12
+
13
+ export { AdditionalDetailsForm };
@@ -0,0 +1,2 @@
1
+ import{a}from"../../chunk-LLA3Z2PK.js";import"../../chunk-L3E32MJU.js";import"../../chunk-DZYFSFZ7.js";import"../../chunk-VTPDBEHE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-56BNVYTD.js";import"../../chunk-IDSJI7KQ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as AdditionalDetailsForm};
2
+ //# sourceMappingURL=AdditionalDetailsForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,10 @@
1
+ import React__default from 'react';
2
+ import { TerminationFormValues } from './types.js';
3
+ import '../../types.gen-Dta9Iy5C.js';
4
+
5
+ type EmployeeComunicationProps = {
6
+ onSubmit?: (payload: TerminationFormValues) => void | Promise<void>;
7
+ };
8
+ declare function EmployeeCommunicationForm({ onSubmit, }: EmployeeComunicationProps): React__default.JSX.Element;
9
+
10
+ export { EmployeeCommunicationForm };
@@ -0,0 +1,2 @@
1
+ import{a}from"../../chunk-QJGFU4YO.js";import"../../chunk-L3E32MJU.js";import"../../chunk-DZYFSFZ7.js";import"../../chunk-VTPDBEHE.js";import"../../chunk-A4RX3KRZ.js";import"../../chunk-WRDKLT4N.js";import"../../chunk-56BNVYTD.js";import"../../chunk-IDSJI7KQ.js";import"../../chunk-5ETXP2QF.js";import"../../chunk-AYDF3IFZ.js";export{a as EmployeeCommunicationForm};
2
+ //# sourceMappingURL=EmployeeComunicationForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}