@remoteoss/remote-flows 0.28.1 → 0.28.2

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 (94) hide show
  1. package/dist/{chunk-7ELDXUJJ.js → chunk-2H54PI4L.js} +2 -2
  2. package/dist/{chunk-TFKE327J.js → chunk-7AC3W7WD.js} +2 -2
  3. package/dist/{chunk-SASLKPFS.js → chunk-BOTWQMOJ.js} +2 -2
  4. package/dist/{chunk-VWCJQXCL.js → chunk-BPTG5PRM.js} +2 -2
  5. package/dist/{chunk-JHAFMU4Z.js → chunk-CNID6L26.js} +2 -2
  6. package/dist/{chunk-7LZVUOMP.js → chunk-DZ7FZ4L2.js} +2 -2
  7. package/dist/{chunk-C67CG4QZ.js → chunk-EJGOCUZS.js} +2 -2
  8. package/dist/{chunk-C6B3CVSL.js → chunk-EPFXYDIP.js} +2 -2
  9. package/dist/{chunk-WKANRAQC.js → chunk-IOBB4OZJ.js} +2 -2
  10. package/dist/chunk-IOBB4OZJ.js.map +1 -0
  11. package/dist/{chunk-2RZ65777.js → chunk-LWPOUUZF.js} +2 -2
  12. package/dist/{chunk-IEY4QYMK.js → chunk-N3QYXQ3V.js} +2 -2
  13. package/dist/chunk-NP4G3N5P.js +2 -0
  14. package/dist/{chunk-SSLB4VJH.js → chunk-NWYFBV22.js} +2 -2
  15. package/dist/{chunk-FHHVVAXP.js → chunk-PTMHPPZ4.js} +2 -2
  16. package/dist/{chunk-57XKXW6I.js → chunk-PZV24NHM.js} +2 -2
  17. package/dist/{chunk-YTCUIISL.js → chunk-RAHCZTQ3.js} +2 -2
  18. package/dist/{chunk-ZHMQDRBT.js → chunk-VU2RMWMI.js} +2 -2
  19. package/dist/{chunk-6IZ6XHVO.js → chunk-YSH6TRSA.js} +2 -2
  20. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +2 -2
  21. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  22. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +1 -1
  23. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +2 -2
  24. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +2 -2
  25. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +2 -2
  26. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  27. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +2 -2
  28. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +1 -1
  29. package/dist/flows/ContractorOnboarding/context.d.ts +4 -4
  30. package/dist/flows/ContractorOnboarding/hooks.d.ts +2 -2
  31. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  32. package/dist/flows/ContractorOnboarding/index.d.ts +2 -2
  33. package/dist/flows/ContractorOnboarding/index.js +1 -1
  34. package/dist/flows/ContractorOnboarding/types.d.ts +2 -2
  35. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  36. package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
  37. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  38. package/dist/flows/CostCalculator/hooks.js +1 -1
  39. package/dist/flows/CostCalculator/index.js +1 -1
  40. package/dist/flows/CostCalculator/utils.js +1 -1
  41. package/dist/flows/Onboarding/OnboardingFlow.d.ts +1 -1
  42. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  43. package/dist/flows/Onboarding/api.d.ts +1 -1
  44. package/dist/flows/Onboarding/api.js +1 -1
  45. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  46. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +1 -1
  47. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +1 -1
  48. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +1 -1
  49. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +1 -1
  50. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  51. package/dist/flows/Onboarding/components/ReviewStep.d.ts +1 -1
  52. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +1 -1
  53. package/dist/flows/Onboarding/context.d.ts +3 -3
  54. package/dist/flows/Onboarding/hooks.d.ts +1 -1
  55. package/dist/flows/Onboarding/hooks.js +1 -1
  56. package/dist/flows/Onboarding/index.d.ts +1 -1
  57. package/dist/flows/Onboarding/index.js +1 -1
  58. package/dist/flows/Onboarding/types.d.ts +1 -1
  59. package/dist/flows/Onboarding/utils.d.ts +1 -1
  60. package/dist/flows/Termination/TerminationFlow.js +1 -1
  61. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +2 -2
  62. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +2 -2
  63. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +2 -2
  64. package/dist/flows/Termination/hooks.js +1 -1
  65. package/dist/flows/Termination/index.d.ts +2 -2
  66. package/dist/flows/Termination/index.js +1 -1
  67. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  68. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  69. package/dist/flows/api.js +1 -1
  70. package/dist/index.d.ts +3 -3
  71. package/dist/index.js +1 -1
  72. package/dist/{types-B48IQTY-.d.ts → types-1tGveWWg.d.ts} +2 -2
  73. package/dist/{types-pdKQ7fMD.d.ts → types-CwUhT-vz.d.ts} +1 -1
  74. package/dist/{types-C1II2Ikg.d.ts → types-DegHPy8Q.d.ts} +3 -3
  75. package/package.json +1 -1
  76. package/dist/chunk-QS5KOZM4.js +0 -2
  77. package/dist/chunk-WKANRAQC.js.map +0 -1
  78. /package/dist/{chunk-7ELDXUJJ.js.map → chunk-2H54PI4L.js.map} +0 -0
  79. /package/dist/{chunk-TFKE327J.js.map → chunk-7AC3W7WD.js.map} +0 -0
  80. /package/dist/{chunk-SASLKPFS.js.map → chunk-BOTWQMOJ.js.map} +0 -0
  81. /package/dist/{chunk-VWCJQXCL.js.map → chunk-BPTG5PRM.js.map} +0 -0
  82. /package/dist/{chunk-JHAFMU4Z.js.map → chunk-CNID6L26.js.map} +0 -0
  83. /package/dist/{chunk-7LZVUOMP.js.map → chunk-DZ7FZ4L2.js.map} +0 -0
  84. /package/dist/{chunk-C67CG4QZ.js.map → chunk-EJGOCUZS.js.map} +0 -0
  85. /package/dist/{chunk-C6B3CVSL.js.map → chunk-EPFXYDIP.js.map} +0 -0
  86. /package/dist/{chunk-2RZ65777.js.map → chunk-LWPOUUZF.js.map} +0 -0
  87. /package/dist/{chunk-IEY4QYMK.js.map → chunk-N3QYXQ3V.js.map} +0 -0
  88. /package/dist/{chunk-QS5KOZM4.js.map → chunk-NP4G3N5P.js.map} +0 -0
  89. /package/dist/{chunk-SSLB4VJH.js.map → chunk-NWYFBV22.js.map} +0 -0
  90. /package/dist/{chunk-FHHVVAXP.js.map → chunk-PTMHPPZ4.js.map} +0 -0
  91. /package/dist/{chunk-57XKXW6I.js.map → chunk-PZV24NHM.js.map} +0 -0
  92. /package/dist/{chunk-YTCUIISL.js.map → chunk-RAHCZTQ3.js.map} +0 -0
  93. /package/dist/{chunk-ZHMQDRBT.js.map → chunk-VU2RMWMI.js.map} +0 -0
  94. /package/dist/{chunk-6IZ6XHVO.js.map → chunk-YSH6TRSA.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import"./chunk-GULCZWSK.js";import{a as wt}from"./chunk-VWCJQXCL.js";import"./chunk-QDYWPG2R.js";import"./chunk-WCIJHQMP.js";import"./chunk-ZQ6MG635.js";import"./chunk-6IZ6XHVO.js";import"./chunk-OIN3HGOQ.js";import"./chunk-Z7WBY27D.js";import"./chunk-5KHLOGTR.js";import"./chunk-AODV6HT2.js";import"./chunk-GWLOE7WJ.js";import"./chunk-5MYWJJBQ.js";import"./chunk-PGWKJ6FK.js";import"./chunk-JHAFMU4Z.js";import"./chunk-VAIBLWOY.js";import"./chunk-2RZ65777.js";import"./chunk-FZ7FWFJX.js";import{a as ft}from"./chunk-WLBRCGTG.js";import{a as mt}from"./chunk-QIQTM4HB.js";import{a as ht}from"./chunk-IEY4QYMK.js";import"./chunk-6VRUYYUV.js";import"./chunk-UQOWSJ2B.js";import"./chunk-P5WUODPR.js";import"./chunk-TFKE327J.js";import"./chunk-6IL4TB7S.js";import"./chunk-IWA5B4U6.js";import"./chunk-7VOQAVM4.js";import"./chunk-VM2DQCZO.js";import"./chunk-EHAZWZ3O.js";import"./chunk-SLMJEZJ7.js";import"./chunk-SASLKPFS.js";import"./chunk-S4XU4SE7.js";import"./chunk-Z3BMF4BO.js";import{a as O}from"./chunk-YTCUIISL.js";import"./chunk-R645TMO5.js";import"./chunk-BCXRPHWY.js";import"./chunk-MQWVZSGH.js";import{a as D}from"./chunk-W55MUSAS.js";import{a as I}from"./chunk-H425RKFI.js";import"./chunk-DTHBG6BD.js";import"./chunk-CVIWZYO3.js";import"./chunk-E6OBNWMU.js";import"./chunk-5NPET4ZO.js";import"./chunk-ZSCKSEAA.js";import"./chunk-ZE3YT3Q6.js";import"./chunk-6LJRRFK2.js";import"./chunk-53KVZ4BP.js";import"./chunk-2FKEF3OG.js";import"./chunk-MRPXDND2.js";import"./chunk-MRYRNB7Y.js";import{a as R}from"./chunk-57XKXW6I.js";import{b as L,d as P}from"./chunk-ZHMQDRBT.js";import"./chunk-C6B3CVSL.js";import"./chunk-7ELDXUJJ.js";import"./chunk-VFRHMNLJ.js";import{a as W}from"./chunk-PYKEYPGA.js";import{a as E}from"./chunk-ANGJCT4I.js";import{a as _}from"./chunk-UPXJJBXZ.js";import{d as A,e as z}from"./chunk-RC3XP5WU.js";import"./chunk-HN5HLFTB.js";import"./chunk-KSHK3ZPX.js";import"./chunk-DKFUZO5P.js";import{a as bt}from"./chunk-C67CG4QZ.js";import"./chunk-QTYDDIVO.js";import"./chunk-OU4Y73FX.js";import"./chunk-AUZWLETL.js";import"./chunk-IQKZWU7I.js";import"./chunk-AWDGLK2T.js";import"./chunk-TM7Q7RHH.js";import"./chunk-5ZR7EFPY.js";import"./chunk-FHHVVAXP.js";import"./chunk-DPY77ASH.js";import"./chunk-TOA3JILU.js";import"./chunk-SSLB4VJH.js";import"./chunk-FB2QGVI2.js";import"./chunk-WKANRAQC.js";import"./chunk-WVJDCDGZ.js";import"./chunk-BDPCUDJB.js";import"./chunk-R2MHAPWD.js";import"./chunk-U6RM2N4A.js";import{a as j}from"./chunk-Q4BKFSTW.js";import{a as S}from"./chunk-DYB3RWP7.js";import"./chunk-A7ZJQCNU.js";import{a as ut}from"./chunk-MGVP76ZI.js";import{a as nt}from"./chunk-6KIQIVKA.js";import"./chunk-CFIJKJXD.js";import"./chunk-JO4722R7.js";import"./chunk-DB7ITLRX.js";import"./chunk-BV3PGYSH.js";import{a as it}from"./chunk-OW5QGJD4.js";import{a as vt}from"./chunk-CYPGWEOO.js";import{a as ct,b as st,c as lt,d as dt,e as pt,f as gt}from"./chunk-KDUM4EZJ.js";import"./chunk-SGE4DLC3.js";import"./chunk-2YTBWEC7.js";import"./chunk-JTOLQCOG.js";import"./chunk-JBUNDNKJ.js";import"./chunk-7R347KBY.js";import"./chunk-AFRA4BIW.js";import"./chunk-3A47R5RQ.js";import"./chunk-D6X2WCEG.js";import"./chunk-HPHWQU34.js";import{a as F,b as T}from"./chunk-ANQ4HVVK.js";import"./chunk-PD24XKD6.js";import"./chunk-TWIUL2P3.js";import"./chunk-ZX5OIIJX.js";import"./chunk-7LZVUOMP.js";import"./chunk-QS5KOZM4.js";import"./chunk-N6G4VZXF.js";import"./chunk-XPKVRYIU.js";import"./chunk-R3DJNVHR.js";import"./chunk-VDRNNOVA.js";import"./chunk-LMYJ6V44.js";import"./chunk-XFD3ULUF.js";import{a as v}from"./chunk-3O3Q24JL.js";import"./chunk-PJBAQZ6G.js";import"./chunk-Z5WMKCRJ.js";import"./chunk-EKKRQI6B.js";import"./chunk-WVDTHFGS.js";import{a as u,c as h}from"./chunk-3ZWDIEEM.js";import{a as ot}from"./chunk-LWGVLLBH.js";import"./chunk-CNDSIADP.js";import{b as C}from"./chunk-PAQW5BFW.js";import"./chunk-MQ6F5LE4.js";import"./chunk-TVZAFTPT.js";import{c as B,d as m}from"./chunk-43WMZDDH.js";import{a as r}from"./chunk-P37U34EQ.js";import{QueryClient as $,QueryClientProvider as J}from"@tanstack/react-query";function d(t){let a=document.documentElement;Object.keys(t).forEach(e=>{let o=t[e];o&&a.style.setProperty(e,o)})}r(d,"setCssProperties");function N(t){let a={};return Object.keys(t).forEach(e=>{a[`--${e}`]=t[e]}),a}r(N,"mapThemeColors");function q(t){return{"--spacing":t}}r(q,"mapThemeSpacing");function K(t){return{"--radius":t}}r(K,"mapThemeBorderRadius");function U(t){return{"--fontSizeBase":t.fontSizeBase}}r(U,"mapThemeFont");function f(t){t?.colors&&d(N(t.colors)),t?.spacing&&d(q(t.spacing)),t?.borderRadius&&d(K(t.borderRadius)),t?.font&&d(U(t.font))}r(f,"applyTheme");import{createContext as V,useEffect as M,useMemo as Y}from"react";import{jsx as Q}from"react/jsx-runtime";var H=V({theme:{}});function w(t){M(()=>{t.theme&&Object.keys(t.theme).length>0&&f(t.theme)},[t.theme]);let a=Y(()=>({theme:t.theme}),[t.theme]);return Q(H.Provider,{value:a,children:t.children})}r(w,"ThemeProvider");var b={local:"http://localhost:4000/api/eor",partners:"https://gateway.partners.remote-sandbox.com",production:"https://gateway.remote.com",sandbox:"https://gateway.remote-sandbox.com",staging:"https://gateway.niceremote.com"};import{createClient as X}from"@hey-api/client-fetch";import{useQuery as Z}from"@tanstack/react-query";import{useRef as x}from"react";function G(t){try{return new URL(t),!0}catch{return!1}}r(G,"isValidUrl");var y=r(({auth:t,options:a,authId:e="default"})=>{let o=x(null),{refetch:c}=Z({queryKey:["auth",e],queryFn:t,enabled:!1}),s=a?.environment?b[a?.environment]:"https://gateway.remote.com",l=v.getConfig(),g="0.28.1";a?.environment&&a?.environment!=="production"&&m(g);let p=!!a?.proxy&&G(a.proxy.url);return a?.proxy&&!p&&console.error("Invalid proxy URL provided. Using default base URL."),x(X({...l,headers:{...l.headers,...p?a?.proxy?.headers:{},"X-Client-Name":"remote-flows-sdk","X-Client-Version":g},baseUrl:p?a.proxy?.url:s,auth:r(async()=>{function k(n){return!n||Date.now()+6e4>n}if(r(k,"hasTokenExpired"),!o.current||k(o.current.expiresAt)){let{data:n}=await c();n&&(o.current={accessToken:n.accessToken,expiresAt:Date.now()+n.expiresIn*1e3})}return o.current?.accessToken},"auth")}))},"useAuth");import{jsx as i}from"react/jsx-runtime";var tt=new $;function at({children:t,auth:a,authId:e,proxy:o,environment:c}){let s=y({auth:a,authId:e,options:{proxy:o,environment:c}});return i(h.Provider,{value:{client:s.current},children:t})}r(at,"RemoteFlowContextWrapper");function rt({children:t,components:a}){return i(u.Provider,{value:a?{components:a}:{components:{}},children:t})}r(rt,"FormFieldsProvider");function et({auth:t,authId:a,children:e,components:o,theme:c,proxy:s,environment:l}){return i(J,{client:tt,children:i(rt,{components:o,children:i(at,{auth:t,authId:a,proxy:s,environment:l,children:i(w,{theme:c,children:e})})})})}r(et,"RemoteFlows");export{ot as ContractAmendmentConfirmationForm,ut as ContractAmendmentFlow,nt as ContractAmendmentForm,it as ContractAmendmentSubmit,bt as ContractorOnboardingFlow,j as CostCalculatorDisclaimer,R as CostCalculatorFlow,W as CostCalculatorForm,E as CostCalculatorResetButton,O as CostCalculatorResults,_ as CostCalculatorSubmitButton,D as EstimationResults,wt as OnboardingFlow,et as RemoteFlows,I as SummaryResults,ft as TerminationDialogInfoContent,ht as TerminationFlow,mt as TerminationReasonsDetailContent,T as ZendeskTriggerButton,L as buildCostCalculatorEstimationPayload,C as convertFromCents,S as disclaimerData,B as transformYupErrorsIntoObject,dt as useBookedTimeoffBeforeAndAfterTerminationQuery,vt as useContractAmendment,P as useCostCalculator,z as useCostCalculatorEstimationCsv,A as useCostCalculatorEstimationPdf,ct as useEmploymentQuery,lt as usePaidTimeoffBreakdownQuery,pt as useSummaryTimeOffDataQuery,gt as useTimeOffLeavePoliciesSummaryQuery,st as useTimeOffQuery,F as zendeskArticles};
1
+ import"./chunk-GULCZWSK.js";import{a as wt}from"./chunk-BPTG5PRM.js";import"./chunk-QDYWPG2R.js";import"./chunk-WCIJHQMP.js";import"./chunk-ZQ6MG635.js";import"./chunk-YSH6TRSA.js";import"./chunk-OIN3HGOQ.js";import"./chunk-Z7WBY27D.js";import"./chunk-5KHLOGTR.js";import"./chunk-AODV6HT2.js";import"./chunk-GWLOE7WJ.js";import"./chunk-5MYWJJBQ.js";import"./chunk-PGWKJ6FK.js";import"./chunk-CNID6L26.js";import"./chunk-VAIBLWOY.js";import"./chunk-LWPOUUZF.js";import"./chunk-Z3BMF4BO.js";import{a as O}from"./chunk-RAHCZTQ3.js";import"./chunk-BCXRPHWY.js";import"./chunk-MQWVZSGH.js";import{a as D}from"./chunk-W55MUSAS.js";import{a as I}from"./chunk-H425RKFI.js";import"./chunk-DTHBG6BD.js";import"./chunk-CVIWZYO3.js";import"./chunk-E6OBNWMU.js";import"./chunk-5NPET4ZO.js";import"./chunk-R645TMO5.js";import"./chunk-ZSCKSEAA.js";import"./chunk-ZE3YT3Q6.js";import{a as _}from"./chunk-UPXJJBXZ.js";import"./chunk-FZ7FWFJX.js";import{a as ft}from"./chunk-WLBRCGTG.js";import{a as mt}from"./chunk-QIQTM4HB.js";import{a as j}from"./chunk-Q4BKFSTW.js";import{a as S}from"./chunk-DYB3RWP7.js";import{a as R}from"./chunk-PZV24NHM.js";import{b as L,d as P}from"./chunk-VU2RMWMI.js";import"./chunk-EPFXYDIP.js";import"./chunk-2H54PI4L.js";import{d as A,e as z}from"./chunk-RC3XP5WU.js";import"./chunk-HN5HLFTB.js";import"./chunk-VFRHMNLJ.js";import{a as W}from"./chunk-PYKEYPGA.js";import{a as E}from"./chunk-ANGJCT4I.js";import"./chunk-KSHK3ZPX.js";import{a as ht}from"./chunk-N3QYXQ3V.js";import"./chunk-7AC3W7WD.js";import"./chunk-6IL4TB7S.js";import"./chunk-IWA5B4U6.js";import"./chunk-7VOQAVM4.js";import"./chunk-VM2DQCZO.js";import"./chunk-EHAZWZ3O.js";import"./chunk-SLMJEZJ7.js";import"./chunk-BOTWQMOJ.js";import"./chunk-S4XU4SE7.js";import"./chunk-53KVZ4BP.js";import"./chunk-2FKEF3OG.js";import"./chunk-6VRUYYUV.js";import"./chunk-UQOWSJ2B.js";import"./chunk-P5WUODPR.js";import"./chunk-DKFUZO5P.js";import{a as bt}from"./chunk-EJGOCUZS.js";import"./chunk-QTYDDIVO.js";import"./chunk-OU4Y73FX.js";import"./chunk-AUZWLETL.js";import"./chunk-IQKZWU7I.js";import"./chunk-AWDGLK2T.js";import"./chunk-TM7Q7RHH.js";import"./chunk-5ZR7EFPY.js";import"./chunk-PTMHPPZ4.js";import"./chunk-DPY77ASH.js";import"./chunk-TOA3JILU.js";import"./chunk-NWYFBV22.js";import"./chunk-FB2QGVI2.js";import"./chunk-IOBB4OZJ.js";import"./chunk-WVJDCDGZ.js";import"./chunk-BDPCUDJB.js";import"./chunk-R2MHAPWD.js";import"./chunk-U6RM2N4A.js";import"./chunk-6LJRRFK2.js";import"./chunk-MRPXDND2.js";import"./chunk-MRYRNB7Y.js";import"./chunk-A7ZJQCNU.js";import{a as ut}from"./chunk-MGVP76ZI.js";import{a as nt}from"./chunk-6KIQIVKA.js";import"./chunk-CFIJKJXD.js";import"./chunk-JO4722R7.js";import"./chunk-DB7ITLRX.js";import"./chunk-BV3PGYSH.js";import{a as it}from"./chunk-OW5QGJD4.js";import{a as vt}from"./chunk-CYPGWEOO.js";import{a as ct,b as st,c as lt,d as dt,e as pt,f as gt}from"./chunk-KDUM4EZJ.js";import"./chunk-SGE4DLC3.js";import"./chunk-2YTBWEC7.js";import"./chunk-JTOLQCOG.js";import"./chunk-JBUNDNKJ.js";import"./chunk-7R347KBY.js";import"./chunk-AFRA4BIW.js";import"./chunk-3A47R5RQ.js";import"./chunk-D6X2WCEG.js";import"./chunk-HPHWQU34.js";import{a as F,b as T}from"./chunk-ANQ4HVVK.js";import"./chunk-PD24XKD6.js";import"./chunk-TWIUL2P3.js";import"./chunk-ZX5OIIJX.js";import"./chunk-DZ7FZ4L2.js";import"./chunk-NP4G3N5P.js";import"./chunk-XFD3ULUF.js";import"./chunk-R3DJNVHR.js";import"./chunk-LMYJ6V44.js";import"./chunk-N6G4VZXF.js";import"./chunk-XPKVRYIU.js";import"./chunk-VDRNNOVA.js";import{a as v}from"./chunk-3O3Q24JL.js";import"./chunk-PJBAQZ6G.js";import"./chunk-Z5WMKCRJ.js";import"./chunk-EKKRQI6B.js";import"./chunk-WVDTHFGS.js";import{a as u,c as h}from"./chunk-3ZWDIEEM.js";import{a as ot}from"./chunk-LWGVLLBH.js";import"./chunk-CNDSIADP.js";import{b as C}from"./chunk-PAQW5BFW.js";import"./chunk-MQ6F5LE4.js";import"./chunk-TVZAFTPT.js";import{c as B,d as m}from"./chunk-43WMZDDH.js";import{a as r}from"./chunk-P37U34EQ.js";import{QueryClient as $,QueryClientProvider as J}from"@tanstack/react-query";function d(t){let a=document.documentElement;Object.keys(t).forEach(e=>{let o=t[e];o&&a.style.setProperty(e,o)})}r(d,"setCssProperties");function N(t){let a={};return Object.keys(t).forEach(e=>{a[`--${e}`]=t[e]}),a}r(N,"mapThemeColors");function q(t){return{"--spacing":t}}r(q,"mapThemeSpacing");function K(t){return{"--radius":t}}r(K,"mapThemeBorderRadius");function U(t){return{"--fontSizeBase":t.fontSizeBase}}r(U,"mapThemeFont");function f(t){t?.colors&&d(N(t.colors)),t?.spacing&&d(q(t.spacing)),t?.borderRadius&&d(K(t.borderRadius)),t?.font&&d(U(t.font))}r(f,"applyTheme");import{createContext as V,useEffect as M,useMemo as Y}from"react";import{jsx as Q}from"react/jsx-runtime";var H=V({theme:{}});function w(t){M(()=>{t.theme&&Object.keys(t.theme).length>0&&f(t.theme)},[t.theme]);let a=Y(()=>({theme:t.theme}),[t.theme]);return Q(H.Provider,{value:a,children:t.children})}r(w,"ThemeProvider");var b={local:"http://localhost:4000/api/eor",partners:"https://gateway.partners.remote-sandbox.com",production:"https://gateway.remote.com",sandbox:"https://gateway.remote-sandbox.com",staging:"https://gateway.niceremote.com"};import{createClient as X}from"@hey-api/client-fetch";import{useQuery as Z}from"@tanstack/react-query";import{useRef as x}from"react";function G(t){try{return new URL(t),!0}catch{return!1}}r(G,"isValidUrl");var y=r(({auth:t,options:a,authId:e="default"})=>{let o=x(null),{refetch:c}=Z({queryKey:["auth",e],queryFn:t,enabled:!1}),s=a?.environment?b[a?.environment]:"https://gateway.remote.com",l=v.getConfig(),g="0.28.2";a?.environment&&a?.environment!=="production"&&m(g);let p=!!a?.proxy&&G(a.proxy.url);return a?.proxy&&!p&&console.error("Invalid proxy URL provided. Using default base URL."),x(X({...l,headers:{...l.headers,...p?a?.proxy?.headers:{},"X-Client-Name":"remote-flows-sdk","X-Client-Version":g},baseUrl:p?a.proxy?.url:s,auth:r(async()=>{function k(n){return!n||Date.now()+6e4>n}if(r(k,"hasTokenExpired"),!o.current||k(o.current.expiresAt)){let{data:n}=await c();n&&(o.current={accessToken:n.accessToken,expiresAt:Date.now()+n.expiresIn*1e3})}return o.current?.accessToken},"auth")}))},"useAuth");import{jsx as i}from"react/jsx-runtime";var tt=new $;function at({children:t,auth:a,authId:e,proxy:o,environment:c}){let s=y({auth:a,authId:e,options:{proxy:o,environment:c}});return i(h.Provider,{value:{client:s.current},children:t})}r(at,"RemoteFlowContextWrapper");function rt({children:t,components:a}){return i(u.Provider,{value:a?{components:a}:{components:{}},children:t})}r(rt,"FormFieldsProvider");function et({auth:t,authId:a,children:e,components:o,theme:c,proxy:s,environment:l}){return i(J,{client:tt,children:i(rt,{components:o,children:i(at,{auth:t,authId:a,proxy:s,environment:l,children:i(w,{theme:c,children:e})})})})}r(et,"RemoteFlows");export{ot as ContractAmendmentConfirmationForm,ut as ContractAmendmentFlow,nt as ContractAmendmentForm,it as ContractAmendmentSubmit,bt as ContractorOnboardingFlow,j as CostCalculatorDisclaimer,R as CostCalculatorFlow,W as CostCalculatorForm,E as CostCalculatorResetButton,O as CostCalculatorResults,_ as CostCalculatorSubmitButton,D as EstimationResults,wt as OnboardingFlow,et as RemoteFlows,I as SummaryResults,ft as TerminationDialogInfoContent,ht as TerminationFlow,mt as TerminationReasonsDetailContent,T as ZendeskTriggerButton,L as buildCostCalculatorEstimationPayload,C as convertFromCents,S as disclaimerData,B as transformYupErrorsIntoObject,dt as useBookedTimeoffBeforeAndAfterTerminationQuery,vt as useContractAmendment,P as useCostCalculator,z as useCostCalculatorEstimationCsv,A as useCostCalculatorEstimationPdf,ct as useEmploymentQuery,lt as usePaidTimeoffBreakdownQuery,pt as useSummaryTimeOffDataQuery,gt as useTimeOffLeavePoliciesSummaryQuery,st as useTimeOffQuery,F as zendeskArticles};
2
2
  //# sourceMappingURL=index.js.map
@@ -104,13 +104,13 @@ declare const useOnboarding: ({ employmentId, companyId, countryCode, type, opti
104
104
  * Current step state containing the current step and total number of steps
105
105
  */
106
106
  stepState: {
107
- currentStep: Step<"contract_details" | "benefits" | "review" | "basic_information" | "select_country">;
107
+ currentStep: Step<"benefits" | "review" | "basic_information" | "contract_details" | "select_country">;
108
108
  totalSteps: number;
109
109
  values: {
110
- contract_details: FieldValues;
111
110
  benefits: FieldValues;
112
111
  review: FieldValues;
113
112
  basic_information: FieldValues;
113
+ contract_details: FieldValues;
114
114
  select_country: FieldValues;
115
115
  } | null;
116
116
  };
@@ -2,7 +2,7 @@ import { E as Employment, T as ListTimeoffResponse, W as TimeoffStatus, X as Tim
2
2
  import * as _tanstack_react_query from '@tanstack/react-query';
3
3
  import { UseQueryResult } from '@tanstack/react-query';
4
4
  import { ContractAmendmentParams } from './flows/ContractAmendment/types.js';
5
- import { E as Employment$1 } from './types-B48IQTY-.js';
5
+ import { E as Employment$1 } from './types-1tGveWWg.js';
6
6
 
7
7
  type DaysAndHours = {
8
8
  hours: number;
@@ -12,7 +12,7 @@ import { Step } from './flows/useStepState.js';
12
12
  import { M as Meta, J as JSFFieldset, $ as $TSFixMe } from './remoteFlows-DJcvCgN2.js';
13
13
  import { FieldValues } from 'react-hook-form';
14
14
  import { BasicInformationStep } from './flows/ContractorOnboarding/components/BasicInformationStep.js';
15
- import { g as SelectCountryStep } from './types-B48IQTY-.js';
15
+ import { g as SelectCountryStep } from './types-1tGveWWg.js';
16
16
  import { FlowOptions, JSFModify } from './flows/types.js';
17
17
  import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
18
18
 
@@ -41,12 +41,12 @@ declare const useContractorOnboarding: ({ countryCode, externalId, employmentId,
41
41
  * Current step state containing the current step and total number of steps
42
42
  */
43
43
  stepState: {
44
- currentStep: Step<"contract_details" | "review" | "basic_information" | "select_country" | "contract_preview" | "pricing_plan">;
44
+ currentStep: Step<"review" | "basic_information" | "contract_details" | "select_country" | "contract_preview" | "pricing_plan">;
45
45
  totalSteps: number;
46
46
  values: {
47
- contract_details: FieldValues;
48
47
  review: FieldValues;
49
48
  basic_information: FieldValues;
49
+ contract_details: FieldValues;
50
50
  select_country: FieldValues;
51
51
  contract_preview: FieldValues;
52
52
  pricing_plan: FieldValues;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remoteoss/remote-flows",
3
- "version": "0.28.1",
3
+ "version": "0.28.2",
4
4
  "scripts": {
5
5
  "build": "NODE_ENV=production tsup",
6
6
  "ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run type-check && npm run test",
@@ -1,2 +0,0 @@
1
- import{a as o}from"./chunk-N6G4VZXF.js";import{a as m}from"./chunk-XPKVRYIU.js";import{a as e}from"./chunk-R3DJNVHR.js";import{a as i}from"./chunk-LMYJ6V44.js";var p={employee_communication:o,termination_details:e,paid_time_off:m,additional_information:i};export{p as a};
2
- //# sourceMappingURL=chunk-QS5KOZM4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/Onboarding/api.ts"],"sourcesContent":["import {\n ConvertCurrencyParams,\n CreateContractEligibilityParams,\n EmploymentCreateParams,\n EmploymentFullParams,\n getIndexBenefitOffer,\n getShowCompany,\n getShowEmployment,\n getShowFormCountry,\n getShowSchema,\n getSupportedCountry,\n MagicLinkParams,\n patchUpdateEmployment2,\n postConvertRawCurrencyConverter,\n postConvertWithSpreadCurrencyConverter,\n postCreateContractEligibility,\n postCreateEmployment2,\n postCreateRiskReserve,\n postGenerateMagicLink,\n postInviteEmploymentInvitation,\n PostInviteEmploymentInvitationData,\n putUpdateBenefitOffer,\n UnifiedEmploymentUpsertBenefitOffersRequest,\n} from '@/src/client';\nimport { convertToCents } from '@/src/components/form/utils';\nimport { useClient } from '@/src/context';\nimport { selectCountryStepSchema } from '@/src/flows/Onboarding/json-schemas/selectCountryStep';\nimport { OnboardingFlowProps } from '@/src/flows/Onboarding/types';\nimport { FlowOptions, JSONSchemaFormType } from '@/src/flows/types';\nimport { findFieldsByType } from '@/src/flows/utils';\nimport { JSFFieldset } from '@/src/types/remoteFlows';\nimport { Client } from '@hey-api/client-fetch';\nimport { createHeadlessForm, modify } from '@remoteoss/json-schema-form';\nimport { useMutation, useQuery } from '@tanstack/react-query';\nimport { FieldValues } from 'react-hook-form';\n\nexport const useEmployment = (employmentId: string | undefined) => {\n const { client } = useClient();\n\n return useQuery({\n queryKey: ['employment', employmentId],\n retry: false,\n enabled: !!employmentId,\n select: ({ data }) => {\n return data?.data.employment;\n },\n queryFn: async () => {\n const response = await getShowEmployment({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n path: {\n employment_id: employmentId as string,\n },\n });\n\n // If response status is 404 or other error, throw an error to trigger isError\n if (response.error || !response.data) {\n throw new Error('Failed to fetch employment data');\n }\n\n return response;\n },\n });\n};\n\nexport const useCompany = (companyId: string) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['company', companyId],\n retry: false,\n enabled: !!companyId,\n queryFn: async () => {\n const response = await getShowCompany({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n path: {\n company_id: companyId,\n },\n });\n\n if (response.error || !response.data) {\n throw new Error('Failed to fetch employment data');\n }\n\n return response;\n },\n select: ({ data }) => {\n return data.data.company;\n },\n });\n};\n\nexport const useBenefitOffers = (employmentId: string | undefined) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['benefit-offers', employmentId],\n retry: false,\n enabled: !!employmentId,\n queryFn: async () => {\n return getIndexBenefitOffer({\n client: client as Client,\n path: {\n employment_id: employmentId as string,\n },\n }).then((response) => {\n // If response status is 404 or other error, throw an error to trigger isError\n if (response.error || !response.data) {\n throw new Error('Failed to fetch benefit offers data');\n }\n\n return response;\n });\n },\n select: ({ data }) =>\n data?.data?.reduce(\n (acc, item) => {\n return {\n ...acc,\n [item.benefit_group.slug]: {\n value: item.benefit_tier?.slug ?? 'no',\n ...(item.benefit_group?.filter?.slug\n ? { filter: item.benefit_group?.filter?.slug }\n : {}),\n },\n };\n },\n {} as Record<string, { value: string }>,\n ),\n });\n};\n/**\n * Use this hook to invite an employee to the onboarding flow\n * @returns\n */\nexport const useEmploymentInvite = () => {\n const { client } = useClient();\n\n return useMutation({\n mutationFn: (payload: PostInviteEmploymentInvitationData['path']) => {\n return postInviteEmploymentInvitation({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n path: payload,\n });\n },\n });\n};\n\nexport const useCreateReserveInvoice = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: (payload: { employment_slug: string }) => {\n return postCreateRiskReserve({\n client: client as Client,\n body: payload,\n });\n },\n });\n};\n\n/**\n * Use this hook to get the JSON schema form for the onboarding flow\n * @param param0\n * @returns\n */\nexport const useJSONSchemaForm = ({\n countryCode,\n form,\n fieldValues,\n options,\n query = {},\n}: {\n countryCode: string;\n form: JSONSchemaFormType;\n fieldValues: FieldValues;\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } };\n query?: Record<string, unknown>;\n}) => {\n const { client } = useClient();\n const jsonSchemaQueryParam = options?.jsonSchemaVersion?.form_schema?.[form]\n ? {\n json_schema_version: options.jsonSchemaVersion.form_schema[form],\n }\n : {};\n return useQuery({\n queryKey: ['onboarding-json-schema-form', countryCode, form],\n retry: false,\n queryFn: async () => {\n const response = await getShowFormCountry({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n path: {\n country_code: countryCode,\n form: form,\n },\n query: {\n skip_benefits: true,\n ...query,\n ...jsonSchemaQueryParam,\n },\n });\n\n // If response status is 404 or other error, throw an error to trigger isError\n if (response.error || !response.data) {\n throw new Error('Failed to fetch onboarding schema');\n }\n\n return response;\n },\n enabled: options?.queryOptions?.enabled,\n select: ({ data }) => {\n let jsfSchema = data?.data || {};\n if (options && options.jsfModify) {\n const { schema } = modify(jsfSchema, options.jsfModify);\n jsfSchema = schema;\n }\n\n // Contract details contains x-jsf-logic that need to be calculated every time a form value changes\n // In particular there are calculations involving the annual_gross_salary field. However this field value doesn't get\n // here in cents. So we need to convert the money fields to cents, so that the calculations are correct.\n const moneyFields = findFieldsByType(jsfSchema.properties || {}, 'money');\n const moneyFieldsData = moneyFields.reduce<Record<string, number | null>>(\n (acc, field) => {\n acc[field] = convertToCents(fieldValues[field]);\n return acc;\n },\n {},\n );\n\n const initialValues = JSON.parse(\n JSON.stringify({\n ...fieldValues,\n ...moneyFieldsData,\n }),\n );\n\n return {\n meta: {\n 'x-jsf-fieldsets': jsfSchema['x-jsf-fieldsets'] as JSFFieldset,\n },\n ...createHeadlessForm(jsfSchema, {\n initialValues,\n }),\n };\n },\n });\n};\n\nexport const useBenefitOffersSchema = (\n employmentId: string,\n fieldValues: FieldValues,\n options: OnboardingFlowProps['options'],\n) => {\n const jsonSchemaQueryParam = options?.jsonSchemaVersion\n ?.benefit_offers_form_schema\n ? {\n json_schema_version:\n options.jsonSchemaVersion.benefit_offers_form_schema,\n }\n : {};\n const { client } = useClient();\n return useQuery({\n queryKey: ['benefit-offers-schema', employmentId],\n retry: false,\n enabled: !!employmentId,\n queryFn: async () => {\n const response = await getShowSchema({\n client: client as Client,\n path: {\n employment_id: employmentId,\n },\n query: jsonSchemaQueryParam,\n });\n\n // If response status is 404 or other error, throw an error to trigger isError\n if (response.error || !response.data) {\n throw new Error('Failed to fetch benefit offers schema');\n }\n\n return response;\n },\n select: ({ data }) => {\n let jsfSchema = data?.data?.schema || {};\n\n if (options && options.jsfModify?.benefits) {\n const { schema } = modify(jsfSchema, options.jsfModify.benefits);\n jsfSchema = schema;\n }\n const hasFieldValues = Object.keys(fieldValues).length > 0;\n const result = createHeadlessForm(jsfSchema, {\n // we need to clone the fieldValues to prevent side effects\n // if we don't do this, the benefits get included in the other steps\n initialValues: hasFieldValues ? { ...fieldValues } : {},\n });\n return result;\n },\n });\n};\n\n/**\n * Use this hook to create an employment\n * @returns\n */\nexport const useCreateEmployment = (\n options?: OnboardingFlowProps['options'],\n) => {\n const { client } = useClient();\n const jsonSchemaQueryParam = options?.jsonSchemaVersion?.form_schema\n ?.employment_basic_information\n ? {\n json_schema_version:\n options.jsonSchemaVersion.form_schema.employment_basic_information,\n }\n : {};\n return useMutation({\n mutationFn: (payload: EmploymentCreateParams) => {\n return postCreateEmployment2({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n body: payload,\n query: {\n ...jsonSchemaQueryParam,\n },\n });\n },\n });\n};\n\nexport const useUpdateEmployment = (\n options?: OnboardingFlowProps['options'],\n) => {\n const { client } = useClient();\n const jsonSchemaQueryParams = {\n employment_basic_information_json_schema_version:\n options?.jsonSchemaVersion?.form_schema?.employment_basic_information,\n employment_contract_details_json_schema_version:\n options?.jsonSchemaVersion?.form_schema?.contract_details,\n };\n\n const filteredQueryParams = Object.fromEntries(\n Object.entries(jsonSchemaQueryParams).filter(\n ([, value]) => value !== undefined,\n ),\n );\n\n return useMutation({\n mutationFn: ({\n employmentId,\n ...payload\n }: EmploymentFullParams & { employmentId: string }) => {\n return patchUpdateEmployment2({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n body: payload,\n path: {\n employment_id: employmentId,\n },\n query: {\n skip_benefits: true,\n ...filteredQueryParams,\n },\n });\n },\n });\n};\n\nexport const useUpdateBenefitsOffers = (\n options?: OnboardingFlowProps['options'],\n) => {\n const { client } = useClient();\n return useMutation({\n mutationFn: ({\n employmentId,\n ...payload\n }: UnifiedEmploymentUpsertBenefitOffersRequest & {\n employmentId: string;\n }) => {\n const jsonSchemaQueryParam = options?.jsonSchemaVersion\n ?.benefit_offers_form_schema\n ? {\n json_schema_version:\n options.jsonSchemaVersion.benefit_offers_form_schema,\n }\n : {};\n return putUpdateBenefitOffer({\n client: client as Client,\n body: payload,\n path: {\n employment_id: employmentId,\n },\n query: {\n ...jsonSchemaQueryParam,\n },\n });\n },\n });\n};\n\nexport const useMagicLink = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: (params: MagicLinkParams) => {\n return postGenerateMagicLink({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n body: params,\n });\n },\n });\n};\n\nconst useCountries = (queryOptions?: { enabled?: boolean }) => {\n const { client } = useClient();\n return useQuery({\n ...queryOptions,\n queryKey: ['countries'],\n retry: false,\n queryFn: async () => {\n const response = await getSupportedCountry({\n client: client as Client,\n headers: {\n Authorization: ``,\n },\n });\n\n // If response status is 404 or other error, throw an error to trigger isError\n if (response.error || !response.data) {\n throw new Error('Failed to fetch supported countries');\n }\n\n return response;\n },\n select: ({ data }) => {\n return (\n data?.data\n ?.filter((country) => country.eor_onboarding)\n .map((country) => {\n return {\n label: country.name,\n value: country.code,\n };\n }) || []\n );\n },\n });\n};\n\nexport const useCountriesSchemaField = (\n options?: FlowOptions & { queryOptions?: { enabled?: boolean } },\n) => {\n const { data: countries, isLoading } = useCountries(options?.queryOptions);\n\n const { schema: selectCountrySchema } = modify(\n selectCountryStepSchema.data.schema,\n options?.jsfModify || {},\n );\n\n const selectCountryForm = createHeadlessForm(selectCountrySchema);\n\n if (countries) {\n const countryField = selectCountryForm.fields.find(\n (field) => field.name === 'country',\n );\n if (countryField) {\n countryField.options = countries;\n }\n }\n\n return {\n isLoading,\n selectCountryForm,\n };\n};\n\nexport const useConvertCurrency = ({\n type = 'spread',\n}: {\n type?: 'spread' | 'no_spread';\n}) => {\n const { client } = useClient();\n return useMutation({\n mutationFn: (payload: ConvertCurrencyParams) => {\n const apiFn =\n type === 'no_spread'\n ? postConvertRawCurrencyConverter\n : postConvertWithSpreadCurrencyConverter;\n return apiFn({\n client: client as Client,\n body: payload,\n });\n },\n });\n};\n\nexport const useUpsertContractEligibility = () => {\n const { client } = useClient();\n return useMutation({\n mutationFn: ({\n employmentId,\n ...payload\n }: { employmentId: string } & CreateContractEligibilityParams) => {\n return postCreateContractEligibility({\n client: client as Client,\n path: {\n employment_id: employmentId,\n },\n body: payload,\n });\n },\n });\n};\n"],"mappings":"6UAgCA,OAAS,sBAAAA,EAAoB,UAAAC,MAAc,8BAC3C,OAAS,eAAAC,EAAa,YAAAC,MAAgB,wBAG/B,IAAMC,EAAgBC,EAACC,GAAqC,CACjE,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAU,EAE7B,OAAOC,EAAS,CACd,SAAU,CAAC,aAAcH,CAAY,EACrC,MAAO,GACP,QAAS,CAAC,CAACA,EACX,OAAQD,EAAA,CAAC,CAAE,KAAAK,CAAK,IACPA,GAAM,KAAK,WADZ,UAGR,QAASL,EAAA,SAAY,CACnB,IAAMM,EAAW,MAAMC,EAAkB,CACvC,OAAQL,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAM,CACJ,cAAeD,CACjB,CACF,CAAC,EAGD,GAAIK,EAAS,OAAS,CAACA,EAAS,KAC9B,MAAM,IAAI,MAAM,iCAAiC,EAGnD,OAAOA,CACT,EAjBS,UAkBX,CAAC,CACH,EA7B6B,iBA+BhBE,GAAaR,EAACS,GAAsB,CAC/C,GAAM,CAAE,OAAAP,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAS,CACd,SAAU,CAAC,UAAWK,CAAS,EAC/B,MAAO,GACP,QAAS,CAAC,CAACA,EACX,QAAST,EAAA,SAAY,CACnB,IAAMM,EAAW,MAAMI,EAAe,CACpC,OAAQR,EACR,QAAS,CACP,cAAe,EACjB,EACA,KAAM,CACJ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,CACjB,WAAYhB,EAACiB,IAETgD,IAAS,YACLC,EACAC,GACO,CACX,OAAQjE,EACR,KAAMe,CACR,CAAC,EARS,aAUd,CAAC,CACH,EAlBkC,sBAoBrBmD,GAA+BpE,EAAA,IAAM,CAChD,GAAM,CAAE,OAAAE,CAAO,EAAIC,EAAU,EAC7B,OAAOa,EAAY,CACjB,WAAYhB,EAAA,CAAC,CACX,aAAAC,EACA,GAAGgB,CACL,IACSoD,EAA8B,CACnC,OAAQnE,EACR,KAAM,CACJ,cAAeD,CACjB,EACA,KAAMgB,CACR,CAAC,EAVS,aAYd,CAAC,CACH,EAhB4C","names":["createHeadlessForm","modify","useMutation","useQuery","useEmployment","__name","employmentId","client","useClient","useQuery","data","response","getShowEmployment","useCompany","companyId","getShowCompany","useBenefitOffers","getIndexBenefitOffer","acc","item","useEmploymentInvite","useMutation","payload","postInviteEmploymentInvitation","useCreateReserveInvoice","postCreateRiskReserve","useJSONSchemaForm","countryCode","form","fieldValues","options","query","jsonSchemaQueryParam","getShowFormCountry","jsfSchema","schema","modify","moneyFieldsData","findFieldsByType","field","convertToCents","initialValues","createHeadlessForm","useBenefitOffersSchema","getShowSchema","hasFieldValues","useCreateEmployment","postCreateEmployment2","useUpdateEmployment","jsonSchemaQueryParams","filteredQueryParams","value","patchUpdateEmployment2","useUpdateBenefitsOffers","putUpdateBenefitOffer","useMagicLink","params","postGenerateMagicLink","useCountries","queryOptions","getSupportedCountry","country","useCountriesSchemaField","countries","isLoading","selectCountrySchema","selectCountryStepSchema","selectCountryForm","countryField","useConvertCurrency","type","postConvertRawCurrencyConverter","postConvertWithSpreadCurrencyConverter","useUpsertContractEligibility","postCreateContractEligibility"]}