@remoteoss/remote-flows 0.7.5 → 0.8.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.
- package/README.md +8 -7
- package/dist/{chunk-2AOR4YZS.js → chunk-2OYKWBJY.js} +2 -2
- package/dist/{chunk-PCGJH2EO.js → chunk-2VGEHBMK.js} +2 -2
- package/dist/{chunk-V5ENHJL2.js → chunk-3GCWEV4G.js} +2 -2
- package/dist/{chunk-XZ5IR7N3.js → chunk-3KQWGXAR.js} +2 -2
- package/dist/{chunk-WT3QZR6I.js → chunk-3LGFQNYW.js} +2 -2
- package/dist/chunk-466M4PK7.js +2 -0
- package/dist/chunk-466M4PK7.js.map +1 -0
- package/dist/chunk-4F4I7F2P.js +2 -0
- package/dist/chunk-4F4I7F2P.js.map +1 -0
- package/dist/{chunk-7DM7LDK3.js → chunk-5IREEZLM.js} +2 -2
- package/dist/chunk-5PVQUO5Q.js +2 -0
- package/dist/chunk-5PVQUO5Q.js.map +1 -0
- package/dist/{chunk-HCFC46A6.js → chunk-6CU63ESU.js} +2 -2
- package/dist/{chunk-JTC54RNC.js → chunk-6P4XGSZ6.js} +2 -2
- package/dist/chunk-7LZQJ5CL.js +2 -0
- package/dist/chunk-7LZQJ5CL.js.map +1 -0
- package/dist/{chunk-K7CLAEMU.js → chunk-7N2NUY3F.js} +2 -2
- package/dist/{chunk-77WJVEKH.js → chunk-A27ASO7K.js} +2 -2
- package/dist/{chunk-VZB5LUZK.js → chunk-ADE22XT7.js} +2 -2
- package/dist/chunk-AEVZ7GEK.js +2 -0
- package/dist/chunk-AEVZ7GEK.js.map +1 -0
- package/dist/{chunk-SXVOPWRB.js → chunk-AHZSNZSG.js} +2 -2
- package/dist/chunk-AYAQLXJH.js +2 -0
- package/dist/{chunk-NJPNR4DK.js.map → chunk-AYAQLXJH.js.map} +1 -1
- package/dist/{chunk-ONH3EBJZ.js → chunk-BJFZBI3O.js} +2 -2
- package/dist/{chunk-MC6FNME3.js → chunk-C3KZEPUZ.js} +2 -2
- package/dist/{chunk-ZERPSH7S.js → chunk-CQ2QAZBG.js} +2 -2
- package/dist/chunk-DPLXEXMO.js +2 -0
- package/dist/{chunk-RPEWAKDI.js.map → chunk-DPLXEXMO.js.map} +1 -1
- package/dist/chunk-FQNVKX3N.js +2 -0
- package/dist/chunk-FQNVKX3N.js.map +1 -0
- package/dist/{chunk-ZVMBZK3H.js → chunk-G4NBJTHB.js} +2 -2
- package/dist/{chunk-SJVHKOCT.js → chunk-GLOSUWTH.js} +2 -2
- package/dist/{chunk-NVAWIT33.js → chunk-GPS62RDR.js} +2 -2
- package/dist/chunk-HGLI6PUM.js +2 -0
- package/dist/chunk-HGLI6PUM.js.map +1 -0
- package/dist/{chunk-TIHZZ6IF.js → chunk-HQMY3X2R.js} +2 -2
- package/dist/{chunk-Y7P3FLOM.js → chunk-IKYBTQKV.js} +2 -2
- package/dist/{chunk-CEFYPG7Z.js → chunk-IXVV7KPW.js} +2 -2
- package/dist/{chunk-6ZNJ5WMX.js → chunk-IXZAHZ7B.js} +2 -2
- package/dist/{chunk-5HFXSPZZ.js → chunk-KZ6QGSRA.js} +2 -2
- package/dist/{chunk-K6GSGFOD.js → chunk-NXZRK6KL.js} +2 -2
- package/dist/{chunk-J3ZV4EJ5.js → chunk-OGAVWGSY.js} +2 -2
- package/dist/{chunk-SYEPIESJ.js → chunk-OTTIURMN.js} +2 -2
- package/dist/{chunk-4JZ7V73S.js → chunk-PAC52YON.js} +2 -2
- package/dist/{chunk-55OFDAIV.js → chunk-Q5ZUVH3U.js} +2 -2
- package/dist/{chunk-MCWVVCIK.js → chunk-QBV4XS4Z.js} +2 -2
- package/dist/{chunk-HNMDLN2I.js → chunk-QYNAZIHD.js} +2 -2
- package/dist/{chunk-4UKKNARJ.js → chunk-R6OW77R6.js} +2 -2
- package/dist/{chunk-HP4SYBET.js → chunk-S62STPBT.js} +2 -2
- package/dist/{chunk-CAM6PYKR.js → chunk-SHFIZENN.js} +2 -2
- package/dist/chunk-SRZGBJVA.js +2 -0
- package/dist/chunk-SRZGBJVA.js.map +1 -0
- package/dist/{chunk-3QLTEH2U.js → chunk-TMUPJJDK.js} +2 -2
- package/dist/{chunk-VTNGEN34.js → chunk-UNTCBVHB.js} +2 -2
- package/dist/chunk-V6W2SJ4Z.js +2 -0
- package/dist/{chunk-7KQT4QR4.js.map → chunk-V6W2SJ4Z.js.map} +1 -1
- package/dist/{chunk-7NN4M5P2.js → chunk-WFET4MKU.js} +2 -2
- package/dist/{chunk-JQOEHEGL.js → chunk-WJA7PQ2J.js} +2 -2
- package/dist/{chunk-LVACJZSJ.js → chunk-WOUZK5DW.js} +2 -2
- package/dist/chunk-XFY4VAAJ.js +2 -0
- package/dist/chunk-XFY4VAAJ.js.map +1 -0
- package/dist/{chunk-5ZWCZYSA.js → chunk-XQPYSB6Y.js} +2 -2
- package/dist/{chunk-H32UX3PE.js → chunk-YAV236LM.js} +2 -2
- package/dist/chunk-YHSNK7WB.js +2 -0
- package/dist/chunk-YHSNK7WB.js.map +1 -0
- package/dist/{chunk-RUZWAFIN.js → chunk-ZBGBLTFN.js} +2 -2
- package/dist/{chunk-WRZ6WHH7.js → chunk-ZPUELAQZ.js} +2 -2
- package/dist/{chunk-TQYHW6QK.js → chunk-ZVXX43AL.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentBack.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentSubmit.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +2 -2
- package/dist/flows/ContractAmendment/hooks.d.ts +1 -1
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +1 -1
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/utils.d.ts +1 -1
- package/dist/flows/CostCalculator/CostCalculatorDisclaimer.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.d.ts +2 -0
- package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.d.ts +1 -0
- package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.d.ts +2 -0
- package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.d.ts +2 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorIndirectTax.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResultsChart.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorTotalCost.js +1 -1
- package/dist/flows/CostCalculator/api.d.ts +1 -1
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +2 -2
- package/dist/flows/CostCalculator/hooks.d.ts +1 -1
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +2 -2
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.d.ts +2 -2
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +2 -2
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +2 -2
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +2 -2
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingBack.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +2 -2
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingSubmit.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +1 -1
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +1 -1
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +2 -2
- package/dist/flows/Onboarding/hooks.d.ts +2 -2
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +2 -2
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +1 -1
- package/dist/flows/Onboarding/utils.d.ts +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationBack.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +1 -1
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +1 -1
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/TerminationSubmit.js +1 -1
- package/dist/flows/Termination/TimeOff.d.ts +1 -1
- package/dist/flows/Termination/TimeOff.js +1 -1
- package/dist/flows/Termination/context.d.ts +2 -2
- package/dist/flows/Termination/hooks.d.ts +1 -1
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +1 -1
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/types.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{remoteFlows-B-p1H61n.d.ts → remoteFlows-Zmw9pCN3.d.ts} +6 -0
- package/dist/{types.gen-DSJsKiNm.d.ts → types.gen-BqCe1GRY.d.ts} +49 -5
- package/package.json +1 -1
- package/dist/chunk-276MJCIE.js +0 -2
- package/dist/chunk-276MJCIE.js.map +0 -1
- package/dist/chunk-7KQT4QR4.js +0 -2
- package/dist/chunk-E3RHKRLZ.js +0 -2
- package/dist/chunk-E3RHKRLZ.js.map +0 -1
- package/dist/chunk-FBBUL6AE.js +0 -2
- package/dist/chunk-FBBUL6AE.js.map +0 -1
- package/dist/chunk-FL5V45BK.js +0 -2
- package/dist/chunk-FL5V45BK.js.map +0 -1
- package/dist/chunk-FUIAABQ6.js +0 -2
- package/dist/chunk-FUIAABQ6.js.map +0 -1
- package/dist/chunk-ILMVHOL2.js +0 -2
- package/dist/chunk-ILMVHOL2.js.map +0 -1
- package/dist/chunk-INS7FVGA.js +0 -2
- package/dist/chunk-INS7FVGA.js.map +0 -1
- package/dist/chunk-NJPNR4DK.js +0 -2
- package/dist/chunk-QM2ADK6C.js +0 -2
- package/dist/chunk-QM2ADK6C.js.map +0 -1
- package/dist/chunk-RPEWAKDI.js +0 -2
- package/dist/chunk-XJDGWTCQ.js +0 -2
- package/dist/chunk-XJDGWTCQ.js.map +0 -1
- /package/dist/{chunk-2AOR4YZS.js.map → chunk-2OYKWBJY.js.map} +0 -0
- /package/dist/{chunk-PCGJH2EO.js.map → chunk-2VGEHBMK.js.map} +0 -0
- /package/dist/{chunk-V5ENHJL2.js.map → chunk-3GCWEV4G.js.map} +0 -0
- /package/dist/{chunk-XZ5IR7N3.js.map → chunk-3KQWGXAR.js.map} +0 -0
- /package/dist/{chunk-WT3QZR6I.js.map → chunk-3LGFQNYW.js.map} +0 -0
- /package/dist/{chunk-7DM7LDK3.js.map → chunk-5IREEZLM.js.map} +0 -0
- /package/dist/{chunk-HCFC46A6.js.map → chunk-6CU63ESU.js.map} +0 -0
- /package/dist/{chunk-JTC54RNC.js.map → chunk-6P4XGSZ6.js.map} +0 -0
- /package/dist/{chunk-K7CLAEMU.js.map → chunk-7N2NUY3F.js.map} +0 -0
- /package/dist/{chunk-77WJVEKH.js.map → chunk-A27ASO7K.js.map} +0 -0
- /package/dist/{chunk-VZB5LUZK.js.map → chunk-ADE22XT7.js.map} +0 -0
- /package/dist/{chunk-SXVOPWRB.js.map → chunk-AHZSNZSG.js.map} +0 -0
- /package/dist/{chunk-ONH3EBJZ.js.map → chunk-BJFZBI3O.js.map} +0 -0
- /package/dist/{chunk-MC6FNME3.js.map → chunk-C3KZEPUZ.js.map} +0 -0
- /package/dist/{chunk-ZERPSH7S.js.map → chunk-CQ2QAZBG.js.map} +0 -0
- /package/dist/{chunk-ZVMBZK3H.js.map → chunk-G4NBJTHB.js.map} +0 -0
- /package/dist/{chunk-SJVHKOCT.js.map → chunk-GLOSUWTH.js.map} +0 -0
- /package/dist/{chunk-NVAWIT33.js.map → chunk-GPS62RDR.js.map} +0 -0
- /package/dist/{chunk-TIHZZ6IF.js.map → chunk-HQMY3X2R.js.map} +0 -0
- /package/dist/{chunk-Y7P3FLOM.js.map → chunk-IKYBTQKV.js.map} +0 -0
- /package/dist/{chunk-CEFYPG7Z.js.map → chunk-IXVV7KPW.js.map} +0 -0
- /package/dist/{chunk-6ZNJ5WMX.js.map → chunk-IXZAHZ7B.js.map} +0 -0
- /package/dist/{chunk-5HFXSPZZ.js.map → chunk-KZ6QGSRA.js.map} +0 -0
- /package/dist/{chunk-K6GSGFOD.js.map → chunk-NXZRK6KL.js.map} +0 -0
- /package/dist/{chunk-J3ZV4EJ5.js.map → chunk-OGAVWGSY.js.map} +0 -0
- /package/dist/{chunk-SYEPIESJ.js.map → chunk-OTTIURMN.js.map} +0 -0
- /package/dist/{chunk-4JZ7V73S.js.map → chunk-PAC52YON.js.map} +0 -0
- /package/dist/{chunk-55OFDAIV.js.map → chunk-Q5ZUVH3U.js.map} +0 -0
- /package/dist/{chunk-MCWVVCIK.js.map → chunk-QBV4XS4Z.js.map} +0 -0
- /package/dist/{chunk-HNMDLN2I.js.map → chunk-QYNAZIHD.js.map} +0 -0
- /package/dist/{chunk-4UKKNARJ.js.map → chunk-R6OW77R6.js.map} +0 -0
- /package/dist/{chunk-HP4SYBET.js.map → chunk-S62STPBT.js.map} +0 -0
- /package/dist/{chunk-CAM6PYKR.js.map → chunk-SHFIZENN.js.map} +0 -0
- /package/dist/{chunk-3QLTEH2U.js.map → chunk-TMUPJJDK.js.map} +0 -0
- /package/dist/{chunk-VTNGEN34.js.map → chunk-UNTCBVHB.js.map} +0 -0
- /package/dist/{chunk-7NN4M5P2.js.map → chunk-WFET4MKU.js.map} +0 -0
- /package/dist/{chunk-JQOEHEGL.js.map → chunk-WJA7PQ2J.js.map} +0 -0
- /package/dist/{chunk-LVACJZSJ.js.map → chunk-WOUZK5DW.js.map} +0 -0
- /package/dist/{chunk-5ZWCZYSA.js.map → chunk-XQPYSB6Y.js.map} +0 -0
- /package/dist/{chunk-H32UX3PE.js.map → chunk-YAV236LM.js.map} +0 -0
- /package/dist/{chunk-RUZWAFIN.js.map → chunk-ZBGBLTFN.js.map} +0 -0
- /package/dist/{chunk-WRZ6WHH7.js.map → chunk-ZPUELAQZ.js.map} +0 -0
- /package/dist/{chunk-TQYHW6QK.js.map → chunk-ZVXX43AL.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as g}from"./chunk-PGWKJ6FK.js";import{d as f,e as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as g}from"./chunk-PGWKJ6FK.js";import{d as f,e as w}from"./chunk-AYAQLXJH.js";import{a as m}from"./chunk-QW4JPW6J.js";import{b as E}from"./chunk-SHFIZENN.js";import{b as y}from"./chunk-3ZWDIEEM.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as R}from"react/jsx-runtime";function A({onSubmit:S,onSuccess:d,onError:o,render:u,...r}){let{components:I}=y(),{onboardingBag:t,setCreditScore:c}=g(),n=f(),i=w(),{mutateAsync:b}=m(n),{mutateAsync:_}=m(i),l=a(async()=>{try{if(await S?.(),t.creditRiskStatus==="deposit_required"&&t.employmentId&&t.employment?.status&&!t.isEmploymentReadOnly){let e=await _({employment_slug:t.employmentId});if(e.data){await d?.({data:e.data,employmentStatus:"created_awaiting_reserve"}),c?.(s=>({...s,showReserveInvoice:!0})),t.refetchEmployment();return}e.error&&o?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}else if(t.employmentId){let e=await b({employment_id:t.employmentId});if(e.data){await d?.({data:e.data,employmentStatus:"invited"}),c?.(s=>({...s,showInviteSuccessful:!0})),t.refetchEmployment();return}e.error&&o?.({error:e.error,rawError:e.rawError,fieldErrors:[]})}}catch(e){o?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit"),p=t.creditRiskStatus==="deposit_required"&&t.employment?.status&&!t.isEmploymentReadOnly,v=I?.button;return v?R(v,{...r,disabled:n.isPending||i.isPending||r.disabled,onClick:e=>{l(),r.onClick?.(e)},children:u({employmentStatus:p?"created_awaiting_reserve":"invited"})}):R(E,{...r,disabled:n.isPending||i.isPending||r.disabled,onClick:()=>{l()},children:u({employmentStatus:p?"created_awaiting_reserve":"invited"})})}a(A,"OnboardingInvite");export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WOUZK5DW.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as R}from"./chunk-AEVZ7GEK.js";import{a as k}from"./chunk-466M4PK7.js";import{a as S}from"./chunk-5PVQUO5Q.js";import{a as N}from"./chunk-YHSNK7WB.js";import{a as D}from"./chunk-WJA7PQ2J.js";import{a as T,b as v,c as w,d as x,e as P}from"./chunk-ZPUELAQZ.js";import{a as B}from"./chunk-WFET4MKU.js";import{a as h}from"./chunk-A27ASO7K.js";import{a as m}from"./chunk-HGLI6PUM.js";import{a as c}from"./chunk-P37U34EQ.js";import{lazy as V,useState as j}from"react";import*as l from"@radix-ui/react-tabs";import{jsx as b}from"react/jsx-runtime";function L({className:s,...a}){return b(l.Root,{"data-slot":"tabs",className:m("flex flex-col gap-2",s),...a})}c(L,"Tabs");function E({className:s,...a}){return b(l.List,{"data-slot":"tabs-list",className:m("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",s),...a})}c(E,"TabsList");function y({className:s,...a}){return b(l.Trigger,{"data-slot":"tabs-trigger",className:m("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...a})}c(y,"TabsTrigger");import{Fragment as M,jsx as o,jsxs as r}from"react/jsx-runtime";var I=V(()=>import("./flows/CostCalculator/Results/CostCalculatorResultsChart.js"));function rt({employmentData:s,options:a}){let[e,F]=j("monthly"),i=s.employments?.[0];if(!i)return null;let t=i.employer_currency_costs,n=t.currency.symbol,f=e==="monthly"?t.monthly_gross_salary:t.annual_gross_salary,C=e==="monthly"?t.monthly_benefits_total:t.annual_benefits_total,p=e==="monthly"?t.monthly_contributions_total:t.annual_contributions_total,z=e==="monthly"?t.monthly_total:t.annual_total,u=e==="monthly"?null:t.extra_statutory_payments_breakdown,A=e==="monthly"?null:t.extra_statutory_payments_total,g=e==="monthly"?t.monthly_indirect_tax:t.annual_indirect_tax,d=e==="monthly"?t.monthly_benefits_breakdown:t.annual_benefits_breakdown,H=e==="monthly"?t.monthly_contributions_breakdown:t.annual_contributions_breakdown,_=[{name:"Gross Salary",value:f,color:a?.chartColors?.grossSalary??"#3b82f6"},{name:"Contributions",value:p,color:a?.chartColors?.contributions??"#f59e0b"}];return d&&_.push({name:"Benefits",value:C??0,color:a?.chartColors?.benefits??"#10b981"}),r(M,{children:[r("div",{className:"flex flex-col md:flex-row gap-4 md:items-center justify-between mb-6 RemoteFlows__CostCalculatorResults",children:[r("div",{className:"RemoteFlows__CostCalculatorResults__Header",children:[r("h2",{className:"text-xl font-semibold flex items-center gap-2",children:[o("span",{className:"flex items-center gap-1",children:a?.title??"Cost Calculator"}),o(h,{className:"ml-2",children:i.country.name})]}),o("p",{className:"text-primary-foreground font-medium mt-1",children:a?.description??`Total cost of employment in ${i.country.name}`})]}),o(L,{value:e,onValueChange:G=>F(G),className:"w-full md:w-auto RemoteFlows__CostCalculatorResults__Tabs",children:r(E,{className:"grid w-full md:w-[200px] grid-cols-2",children:[o(y,{value:"monthly",children:"Monthly"}),o(y,{value:"annual",children:"Annual"})]})})]}),r("div",{className:m("grid grid-cols-1 gap-6",a?.showChart?"md:grid-cols-3":"","RemoteFlows__CostCalculatorResults_CostBreakdown"),children:[r(T,{className:"md:col-span-2 rounded-lg",children:[r(v,{className:"pb-2",children:[o(w,{children:"Cost Breakdown"}),o(x,{children:"Detailed breakdown of all employer costs"})]}),o(P,{children:r("div",{className:"space-y-6",children:[o(N,{grossSalary:f,currency:n,hasExtraStatutoryPayment:i.has_extra_statutory_payment}),d?o(R,{benefitsBreakdown:d,benefitsTotal:C,currency:n}):null,o(k,{contributionsBreakdown:H,contributionsTotal:p,currency:n}),Array.isArray(u)&&u.length>0?o(S,{extraStatutoryPaymentsBreakdown:u,extraStatutoryPaymentsTotal:A,currency:n}):null,g?o(D,{indirectTax:g,currency:n}):null,o(B,{totalCost:z,currency:n})]})})]}),a?.showChart&&o(I,{chartData:_,currency:n})]})]})}c(rt,"CostCalculatorResults");export{rt as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XFY4VAAJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/CostCalculator/Results/CostCalculatorResults.tsx","../src/components/ui/tabs.tsx"],"sourcesContent":["import { lazy, useState } from 'react';\n\nimport { CostCalculatorEstimateResponse } from '@/src/client';\nimport { Badge } from '@/src/components/ui/badge';\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from '@/src/components/ui/card';\nimport { Tabs, TabsList, TabsTrigger } from '@/src/components/ui/tabs';\nimport { cn } from '@/src/lib/utils';\nimport { CostCalculatorBenefitsBreakdown } from './CostCalculatorBenefitsBreakdown';\nimport { CostCalculatorContributionsBreakdown } from './CostCalculatorContributionsBreakdown';\nimport { CostCalculatorGrossSalary } from './CostCalculatorGrossSalary';\nimport { CostCalculatorTotalCost } from './CostCalculatorTotalCost';\nimport { CostCalculatorExtraStatutoryPaymentsBreakdown } from '@/src/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown';\nimport { CostCalculatorIndirectTax } from '@/src/flows/CostCalculator/Results/CostCalculatorIndirectTax';\n\nconst CostCalculatorResultsChart = lazy(\n () => import('./CostCalculatorResultsChart'),\n);\n\ninterface CostCalculatorResultProps {\n employmentData: CostCalculatorEstimateResponse['data'];\n options?: Partial<{\n title: string;\n description: string;\n showChart: boolean;\n chartColors: {\n grossSalary: string;\n contributions: string;\n benefits: string;\n };\n }>;\n}\n\nexport function CostCalculatorResults({\n employmentData,\n options,\n}: CostCalculatorResultProps) {\n const [view, setView] = useState<'monthly' | 'annual'>('monthly');\n const employment = employmentData.employments?.[0];\n\n if (!employment) {\n return null;\n }\n\n const costs =\n view === 'monthly'\n ? employment.employer_currency_costs\n : employment.employer_currency_costs;\n\n const currency = costs.currency.symbol;\n const grossSalary =\n view === 'monthly' ? costs.monthly_gross_salary : costs.annual_gross_salary;\n const benefitsTotal =\n view === 'monthly'\n ? costs.monthly_benefits_total\n : costs.annual_benefits_total;\n const contributionsTotal =\n view === 'monthly'\n ? costs.monthly_contributions_total\n : costs.annual_contributions_total;\n const totalCost =\n view === 'monthly' ? costs.monthly_total : costs.annual_total;\n\n const extraStatutoryPaymentsBreakdown =\n view === 'monthly' ? null : costs.extra_statutory_payments_breakdown;\n\n const extraStatutoryPaymentsTotal =\n view === 'monthly' ? null : costs.extra_statutory_payments_total;\n\n const indirectTax =\n view === 'monthly' ? costs.monthly_indirect_tax : costs.annual_indirect_tax;\n\n const benefitsBreakdown =\n view === 'monthly'\n ? costs.monthly_benefits_breakdown\n : costs.annual_benefits_breakdown;\n const contributionsBreakdown =\n view === 'monthly'\n ? costs.monthly_contributions_breakdown\n : costs.annual_contributions_breakdown;\n\n const chartData = [\n {\n name: 'Gross Salary',\n value: grossSalary,\n color: options?.chartColors?.grossSalary ?? '#3b82f6',\n },\n {\n name: 'Contributions',\n value: contributionsTotal,\n color: options?.chartColors?.contributions ?? '#f59e0b',\n },\n ];\n\n if (benefitsBreakdown) {\n chartData.push({\n name: 'Benefits',\n value: benefitsTotal ?? 0,\n color: options?.chartColors?.benefits ?? '#10b981',\n });\n }\n\n return (\n <>\n <div className=\"flex flex-col md:flex-row gap-4 md:items-center justify-between mb-6 RemoteFlows__CostCalculatorResults\">\n <div className=\"RemoteFlows__CostCalculatorResults__Header\">\n <h2 className=\"text-xl font-semibold flex items-center gap-2\">\n <span className=\"flex items-center gap-1\">\n {options?.title ?? 'Cost Calculator'}\n </span>\n <Badge className=\"ml-2\">{employment.country.name}</Badge>\n </h2>\n <p className=\"text-primary-foreground font-medium mt-1\">\n {options?.description ??\n `Total cost of employment in ${employment.country.name}`}\n </p>\n </div>\n\n <Tabs\n value={view}\n onValueChange={(v) => setView(v as 'monthly' | 'annual')}\n className=\"w-full md:w-auto RemoteFlows__CostCalculatorResults__Tabs\"\n >\n <TabsList className=\"grid w-full md:w-[200px] grid-cols-2\">\n <TabsTrigger value=\"monthly\">Monthly</TabsTrigger>\n <TabsTrigger value=\"annual\">Annual</TabsTrigger>\n </TabsList>\n </Tabs>\n </div>\n\n <div\n className={cn(\n 'grid grid-cols-1 gap-6',\n options?.showChart ? 'md:grid-cols-3' : '',\n 'RemoteFlows__CostCalculatorResults_CostBreakdown',\n )}\n >\n <Card className=\"md:col-span-2 rounded-lg\">\n <CardHeader className=\"pb-2\">\n <CardTitle>Cost Breakdown</CardTitle>\n <CardDescription>\n Detailed breakdown of all employer costs\n </CardDescription>\n </CardHeader>\n <CardContent>\n <div className=\"space-y-6\">\n {/* Salary Section */}\n <CostCalculatorGrossSalary\n grossSalary={grossSalary}\n currency={currency}\n hasExtraStatutoryPayment={\n employment.has_extra_statutory_payment\n }\n />\n {/* Benefits Section */}\n {benefitsBreakdown ? (\n <CostCalculatorBenefitsBreakdown\n benefitsBreakdown={benefitsBreakdown}\n benefitsTotal={benefitsTotal}\n currency={currency}\n />\n ) : null}\n {/* Contributions Section */}\n <CostCalculatorContributionsBreakdown\n contributionsBreakdown={contributionsBreakdown}\n contributionsTotal={contributionsTotal}\n currency={currency}\n />\n {/* Extra Statutory Payments Section */}\n {Array.isArray(extraStatutoryPaymentsBreakdown) &&\n extraStatutoryPaymentsBreakdown.length > 0 ? (\n <CostCalculatorExtraStatutoryPaymentsBreakdown\n extraStatutoryPaymentsBreakdown={\n extraStatutoryPaymentsBreakdown\n }\n extraStatutoryPaymentsTotal={extraStatutoryPaymentsTotal}\n currency={currency}\n />\n ) : null}\n {/* Indirect Tax Section */}\n {indirectTax ? (\n <CostCalculatorIndirectTax\n indirectTax={indirectTax}\n currency={currency}\n />\n ) : null}\n {/* Total */}\n <CostCalculatorTotalCost\n totalCost={totalCost}\n currency={currency}\n />\n </div>\n </CardContent>\n </Card>\n\n {options?.showChart && (\n <CostCalculatorResultsChart\n chartData={chartData}\n currency={currency}\n />\n )}\n </div>\n </>\n );\n}\n","import * as React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/src/lib/utils';\n\nfunction Tabs({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.Root>) {\n return (\n <TabsPrimitive.Root\n data-slot=\"tabs\"\n className={cn('flex flex-col gap-2', className)}\n {...props}\n />\n );\n}\n\nfunction TabsList({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.List>) {\n return (\n <TabsPrimitive.List\n data-slot=\"tabs-list\"\n className={cn(\n 'bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction TabsTrigger({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {\n return (\n <TabsPrimitive.Trigger\n data-slot=\"tabs-trigger\"\n className={cn(\n \"data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction TabsContent({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.Content>) {\n return (\n <TabsPrimitive.Content\n data-slot=\"tabs-content\"\n className={cn('flex-1 outline-none', className)}\n {...props}\n />\n );\n}\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent };\n"],"mappings":"4aAAA,OAAS,QAAAA,EAAM,YAAAC,MAAgB,QCC/B,UAAYC,MAAmB,uBAS3B,cAAAC,MAAA,oBALJ,SAASC,EAAK,CACZ,UAAAC,EACA,GAAGC,CACL,EAAoD,CAClD,OACEH,EAAe,OAAd,CACC,YAAU,OACV,UAAWI,EAAG,sBAAuBF,CAAS,EAC7C,GAAGC,EACN,CAEJ,CAXSE,EAAAJ,EAAA,QAaT,SAASK,EAAS,CAChB,UAAAJ,EACA,GAAGC,CACL,EAAoD,CAClD,OACEH,EAAe,OAAd,CACC,YAAU,YACV,UAAWI,EACT,kGACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAdSE,EAAAC,EAAA,YAgBT,SAASC,EAAY,CACnB,UAAAL,EACA,GAAGC,CACL,EAAuD,CACrD,OACEH,EAAe,UAAd,CACC,YAAU,eACV,UAAWI,EACT,0fACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAdSE,EAAAE,EAAA,eD0EL,mBAAAC,EAIQ,OAAAC,EADF,QAAAC,MAHN,oBAxFJ,IAAMC,EAA6BC,EACjC,IAAM,OAAO,8DAA8B,CAC7C,EAgBO,SAASC,GAAsB,CACpC,eAAAC,EACA,QAAAC,CACF,EAA8B,CAC5B,GAAM,CAACC,EAAMC,CAAO,EAAIC,EAA+B,SAAS,EAC1DC,EAAaL,EAAe,cAAc,CAAC,EAEjD,GAAI,CAACK,EACH,OAAO,KAGT,IAAMC,EAEAD,EAAW,wBAGXE,EAAWD,EAAM,SAAS,OAC1BE,EACJN,IAAS,UAAYI,EAAM,qBAAuBA,EAAM,oBACpDG,EACJP,IAAS,UACLI,EAAM,uBACNA,EAAM,sBACNI,EACJR,IAAS,UACLI,EAAM,4BACNA,EAAM,2BACNK,EACJT,IAAS,UAAYI,EAAM,cAAgBA,EAAM,aAE7CM,EACJV,IAAS,UAAY,KAAOI,EAAM,mCAE9BO,EACJX,IAAS,UAAY,KAAOI,EAAM,+BAE9BQ,EACJZ,IAAS,UAAYI,EAAM,qBAAuBA,EAAM,oBAEpDS,EACJb,IAAS,UACLI,EAAM,2BACNA,EAAM,0BACNU,EACJd,IAAS,UACLI,EAAM,gCACNA,EAAM,+BAENW,EAAY,CAChB,CACE,KAAM,eACN,MAAOT,EACP,MAAOP,GAAS,aAAa,aAAe,SAC9C,EACA,CACE,KAAM,gBACN,MAAOS,EACP,MAAOT,GAAS,aAAa,eAAiB,SAChD,CACF,EAEA,OAAIc,GACFE,EAAU,KAAK,CACb,KAAM,WACN,MAAOR,GAAiB,EACxB,MAAOR,GAAS,aAAa,UAAY,SAC3C,CAAC,EAIDL,EAAAF,EAAA,CACE,UAAAE,EAAC,OAAI,UAAU,0GACb,UAAAA,EAAC,OAAI,UAAU,6CACb,UAAAA,EAAC,MAAG,UAAU,gDACZ,UAAAD,EAAC,QAAK,UAAU,0BACb,SAAAM,GAAS,OAAS,kBACrB,EACAN,EAACuB,EAAA,CAAM,UAAU,OAAQ,SAAAb,EAAW,QAAQ,KAAK,GACnD,EACAV,EAAC,KAAE,UAAU,2CACV,SAAAM,GAAS,aACR,+BAA+BI,EAAW,QAAQ,IAAI,GAC1D,GACF,EAEAV,EAACwB,EAAA,CACC,MAAOjB,EACP,cAAgBkB,GAAMjB,EAAQiB,CAAyB,EACvD,UAAU,4DAEV,SAAAxB,EAACyB,EAAA,CAAS,UAAU,uCAClB,UAAA1B,EAAC2B,EAAA,CAAY,MAAM,UAAU,mBAAO,EACpC3B,EAAC2B,EAAA,CAAY,MAAM,SAAS,kBAAM,GACpC,EACF,GACF,EAEA1B,EAAC,OACC,UAAW2B,EACT,yBACAtB,GAAS,UAAY,iBAAmB,GACxC,kDACF,EAEA,UAAAL,EAAC4B,EAAA,CAAK,UAAU,2BACd,UAAA5B,EAAC6B,EAAA,CAAW,UAAU,OACpB,UAAA9B,EAAC+B,EAAA,CAAU,0BAAc,EACzB/B,EAACgC,EAAA,CAAgB,oDAEjB,GACF,EACAhC,EAACiC,EAAA,CACC,SAAAhC,EAAC,OAAI,UAAU,YAEb,UAAAD,EAACkC,EAAA,CACC,YAAarB,EACb,SAAUD,EACV,yBACEF,EAAW,4BAEf,EAECU,EACCpB,EAACmC,EAAA,CACC,kBAAmBf,EACnB,cAAeN,EACf,SAAUF,EACZ,EACE,KAEJZ,EAACoC,EAAA,CACC,uBAAwBf,EACxB,mBAAoBN,EACpB,SAAUH,EACZ,EAEC,MAAM,QAAQK,CAA+B,GAC9CA,EAAgC,OAAS,EACvCjB,EAACqC,EAAA,CACC,gCACEpB,EAEF,4BAA6BC,EAC7B,SAAUN,EACZ,EACE,KAEHO,EACCnB,EAACsC,EAAA,CACC,YAAanB,EACb,SAAUP,EACZ,EACE,KAEJZ,EAACuC,EAAA,CACC,UAAWvB,EACX,SAAUJ,EACZ,GACF,EACF,GACF,EAECN,GAAS,WACRN,EAACE,EAAA,CACC,UAAWoB,EACX,SAAUV,EACZ,GAEJ,GACF,CAEJ,CA3KgB4B,EAAApC,GAAA","names":["lazy","useState","TabsPrimitive","jsx","Tabs","className","props","cn","__name","TabsList","TabsTrigger","Fragment","jsx","jsxs","CostCalculatorResultsChart","lazy","CostCalculatorResults","employmentData","options","view","setView","useState","employment","costs","currency","grossSalary","benefitsTotal","contributionsTotal","totalCost","extraStatutoryPaymentsBreakdown","extraStatutoryPaymentsTotal","indirectTax","benefitsBreakdown","contributionsBreakdown","chartData","Badge","Tabs","v","TabsList","TabsTrigger","cn","Card","CardHeader","CardTitle","CardDescription","CardContent","CostCalculatorGrossSalary","CostCalculatorBenefitsBreakdown","CostCalculatorContributionsBreakdown","CostCalculatorExtraStatutoryPaymentsBreakdown","CostCalculatorIndirectTax","CostCalculatorTotalCost","__name"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-QYNAZIHD.js";import{b as m}from"./chunk-MRYRNB7Y.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function p({onSubmit:e}){let{terminationBag:i}=m();return r(n,{onSubmit:o(async t=>{await e?.(i?.parseFormValues(t)),i?.next()},"handleSubmit")})}o(p,"EmployeeCommunicationForm");export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XQPYSB6Y.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-IXVV7KPW.js";import{a as n}from"./chunk-OTTIURMN.js";import{a as e}from"./chunk-3GCWEV4G.js";import{a as T}from"./chunk-GLOSUWTH.js";import{a}from"./chunk-XQPYSB6Y.js";import{a as f}from"./chunk-ZBGBLTFN.js";import{a as r}from"./chunk-R6OW77R6.js";import{a as p}from"./chunk-2OYKWBJY.js";import{a as t}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{useId as c}from"react";import{jsx as u}from"react/jsx-runtime";var A=i(({employmentId:d,render:s,options:l})=>{let y=c(),o=e({employmentId:d,options:l});return u(t.Provider,{value:{formId:y,terminationBag:o},children:s({terminationBag:o,components:{SubmitButton:m,TimeOff:n,Back:r,EmployeeComunicationStep:a,TerminationDetailsStep:p,PaidTimeOffStep:f,AdditionalDetailsStep:T}})})},"TerminationFlow");export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YAV236LM.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as m,b as i,c as l}from"./chunk-SRZGBJVA.js";import{a as n}from"./chunk-G4NBJTHB.js";import{b as a}from"./chunk-SHFIZENN.js";import{b as s}from"./chunk-HGLI6PUM.js";import{a as o}from"./chunk-P37U34EQ.js";import{Info as d}from"lucide-react";var e={extraPayments:4466822781709};import{Fragment as x,jsx as t,jsxs as r}from"react/jsx-runtime";function z({grossSalary:c,currency:p,hasExtraStatutoryPayment:u=!1}){let f=i();return r("div",{children:[r("div",{className:"flex justify-between items-center mb-2",children:[r("div",{className:"flex items-center gap-2",children:[t("h3",{className:"font-medium text-primary-foreground",children:"Gross Salary"}),u&&t(m,{content:r(x,{children:[t("span",{children:"This country respects extra payments on top of the gross salary."}),t(l,{zendeskId:e.extraPayments.toString(),zendeskURL:"#",Trigger:t("button",{onClick:()=>{let y=e.extraPayments;f.setSearchParams({articleId:y.toString()||""})},className:"text-blue-500 hover:underline block mt-1 text-xs bg-transparent border-none cursor-pointer p-0",children:"Learn more"})})]}),children:r(a,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0 mt-2",children:[t(d,{className:"h-3 w-3 text-gray-400"}),t("span",{className:"sr-only",children:"Info"})]})})]}),t("span",{className:"font-semibold text-lg",children:s(c,p)})]}),t(n,{})]})}o(z,"CostCalculatorGrossSalary");export{z as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YHSNK7WB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/CostCalculator/Results/CostCalculatorGrossSalary.tsx","../src/components/shared/zendesk-drawer/utils.ts"],"sourcesContent":["import { Separator } from '@/src/components/ui/separator';\nimport { formatCurrency } from '@/src/lib/utils';\nimport { BasicTooltip } from '@/src/components/ui/basic-tooltip';\nimport { Button } from '@/src/components/ui/button';\nimport { useRouter } from '@/src/lib/router';\nimport { Info } from 'lucide-react';\nimport { ZendeskDrawer } from '@/src/components/shared/zendesk-drawer/ZendeskDrawer';\nimport { zendeskArticles } from '@/src/components/shared/zendesk-drawer/utils';\n\ntype CostCalculatorGrossSalaryProps = {\n grossSalary: number;\n currency: string;\n hasExtraStatutoryPayment?: boolean;\n};\n\nexport function CostCalculatorGrossSalary({\n grossSalary,\n currency,\n hasExtraStatutoryPayment = false,\n}: CostCalculatorGrossSalaryProps) {\n const router = useRouter();\n return (\n <div>\n <div className=\"flex justify-between items-center mb-2\">\n <div className=\"flex items-center gap-2\">\n <h3 className=\"font-medium text-primary-foreground\">Gross Salary</h3>\n {hasExtraStatutoryPayment && (\n <BasicTooltip\n content={\n <>\n <span>\n This country respects extra payments on top of the gross\n salary.\n </span>\n <ZendeskDrawer\n zendeskId={zendeskArticles.extraPayments.toString()}\n zendeskURL={'#'}\n Trigger={\n <button\n onClick={() => {\n const articleId = zendeskArticles.extraPayments;\n router.setSearchParams({\n articleId: articleId.toString() || '',\n });\n }}\n className=\"text-blue-500 hover:underline block mt-1 text-xs bg-transparent border-none cursor-pointer p-0\"\n >\n Learn more\n </button>\n }\n />\n </>\n }\n >\n <Button variant=\"ghost\" size=\"icon\" className=\"h-4 w-4 p-0 mt-2\">\n <Info className=\"h-3 w-3 text-gray-400\" />\n <span className=\"sr-only\">Info</span>\n </Button>\n </BasicTooltip>\n )}\n </div>\n <span className=\"font-semibold text-lg\">\n {formatCurrency(grossSalary, currency)}\n </span>\n </div>\n <Separator />\n </div>\n );\n}\n","export const zendeskArticles = {\n extraPayments: 4466822781709,\n};\n"],"mappings":"sNAKA,OAAS,QAAAA,MAAY,eCLd,IAAMC,EAAkB,CAC7B,cAAe,aACjB,EDuBU,OAIM,YAAAC,EAJN,OAAAC,EAIM,QAAAC,MAJN,oBAVH,SAASC,EAA0B,CACxC,YAAAC,EACA,SAAAC,EACA,yBAAAC,EAA2B,EAC7B,EAAmC,CACjC,IAAMC,EAASC,EAAU,EACzB,OACEN,EAAC,OACC,UAAAA,EAAC,OAAI,UAAU,yCACb,UAAAA,EAAC,OAAI,UAAU,0BACb,UAAAD,EAAC,MAAG,UAAU,sCAAsC,wBAAY,EAC/DK,GACCL,EAACQ,EAAA,CACC,QACEP,EAAAF,EAAA,CACE,UAAAC,EAAC,QAAK,4EAGN,EACAA,EAACS,EAAA,CACC,UAAWC,EAAgB,cAAc,SAAS,EAClD,WAAY,IACZ,QACEV,EAAC,UACC,QAAS,IAAM,CACb,IAAMW,EAAYD,EAAgB,cAClCJ,EAAO,gBAAgB,CACrB,UAAWK,EAAU,SAAS,GAAK,EACrC,CAAC,CACH,EACA,UAAU,iGACX,sBAED,EAEJ,GACF,EAGF,SAAAV,EAACW,EAAA,CAAO,QAAQ,QAAQ,KAAK,OAAO,UAAU,mBAC5C,UAAAZ,EAACa,EAAA,CAAK,UAAU,wBAAwB,EACxCb,EAAC,QAAK,UAAU,UAAU,gBAAI,GAChC,EACF,GAEJ,EACAA,EAAC,QAAK,UAAU,wBACb,SAAAc,EAAeX,EAAaC,CAAQ,EACvC,GACF,EACAJ,EAACe,EAAA,EAAU,GACb,CAEJ,CArDgBC,EAAAd,EAAA","names":["Info","zendeskArticles","Fragment","jsx","jsxs","CostCalculatorGrossSalary","grossSalary","currency","hasExtraStatutoryPayment","router","useRouter","BasicTooltip","ZendeskDrawer","zendeskArticles","articleId","Button","Info","formatCurrency","Separator","__name"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-QYNAZIHD.js";import{b as m}from"./chunk-MRYRNB7Y.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as e}from"react/jsx-runtime";function f({onSubmit:n}){let{terminationBag:i}=m();return e(r,{onSubmit:o(async a=>{await n?.(i?.parseFormValues(a)),i?.next()},"handleSubmit")})}o(f,"PaidTimeOffForm");export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZBGBLTFN.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-HGLI6PUM.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as r}from"react/jsx-runtime";function d({className:t,...o}){return r("div",{"data-slot":"card",className:a("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...o})}e(d,"Card");function c({className:t,...o}){return r("div",{"data-slot":"card-header",className:a("flex flex-col gap-1.5 px-6",t),...o})}e(c,"CardHeader");function s({className:t,...o}){return r("div",{"data-slot":"card-title",className:a("leading-none font-semibold",t),...o})}e(s,"CardTitle");function i({className:t,...o}){return r("div",{"data-slot":"card-description",className:a("text-sm",t),...o})}e(i,"CardDescription");function l({className:t,...o}){return r("div",{"data-slot":"card-content",className:a("px-6",t),...o})}e(l,"CardContent");export{d as a,c as b,s as c,i as d,l as e};
|
|
2
|
+
//# sourceMappingURL=chunk-ZPUELAQZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./chunk-PGWKJ6FK.js";import{b as y}from"./chunk-QW4JPW6J.js";import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b}from"./chunk-PGWKJ6FK.js";import{b as y}from"./chunk-QW4JPW6J.js";import{a as u}from"./chunk-PAC52YON.js";import{b as f}from"./chunk-CFIJKJXD.js";import{f as p,g as F}from"./chunk-DPLXEXMO.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as S}from"react";import{jsx as d}from"react/jsx-runtime";function N({defaultValues:l,onSubmit:g,components:E}){let{formId:w,onboardingBag:o}=b(),h=f(o.handleValidation),r=p({resolver:h,defaultValues:l,shouldUnregister:!1,mode:"onBlur"});S(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]),S(()=>{let t=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==l[i])&&o?.checkFieldUpdates(e)});return()=>t?.unsubscribe()},[]);let k=m(async(t,e)=>{let s=e?.nativeEvent;if(s?.isDraftSubmission){let{onSuccess:i,onError:c}=s.draftCallbacks;try{if(!await r.trigger())return;let n=await o.onSubmit(t);if(n?.data)i?.();else if(n?.error){let B=o.stepState.currentStep.name,P=o.meta?.fields?.[B],O=y(n?.fieldErrors||[],P);c?.({error:n.error,rawError:n.rawError,fieldErrors:O})}}catch(a){c?.({error:a,rawError:a,fieldErrors:[]})}}else g(t)},"handleSubmit");return d(F,{...r,children:d("form",{id:w,onSubmit:r.handleSubmit(k),className:"space-y-4 RemoteFlows__OnboardingForm",children:d(u,{components:E,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})})})}m(N,"OnboardingForm");export{N as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZVXX43AL.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-OGAVWGSY.js";import"../../chunk-SHFIZENN.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentBack};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentBack.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { b as PostCreateContractAmendmentError, a as ContractAmendmentResponse } from '../../types.gen-
|
|
2
|
+
import { b as PostCreateContractAmendmentError, a as ContractAmendmentResponse } from '../../types.gen-BqCe1GRY.js';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
|
|
5
5
|
type ContractAmendmentConfirmationFormProps = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-2VGEHBMK.js";import"../../chunk-DPLXEXMO.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentConfirmationForm.js.map
|
|
@@ -5,7 +5,7 @@ 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-
|
|
8
|
+
import '../../types.gen-BqCe1GRY.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import 'react';
|
|
11
11
|
import '../../mutations-B6HWH-rZ.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-AHZSNZSG.js";import"../../chunk-HQMY3X2R.js";import"../../chunk-6CU63ESU.js";import"../../chunk-UNTCBVHB.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-LK3DIMYW.js";import"../../chunk-FQNVKX3N.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-OGAVWGSY.js";import"../../chunk-2VGEHBMK.js";import"../../chunk-IKYBTQKV.js";import"../../chunk-PAC52YON.js";import"../../chunk-A27ASO7K.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-IXZAHZ7B.js";import"../../chunk-SHFIZENN.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-DPLXEXMO.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentFlow.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { P as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-
|
|
2
|
+
import { P as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-BqCe1GRY.js';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
|
|
5
5
|
type ContractAmendmentFormProps = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-IKYBTQKV.js";import"../../chunk-PAC52YON.js";import"../../chunk-A27ASO7K.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-IXZAHZ7B.js";import"../../chunk-SHFIZENN.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-DPLXEXMO.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-HQMY3X2R.js";import"../../chunk-SHFIZENN.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentSubmit};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentSubmit.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { S as SuccessResponse, E as ErrorResponse } from '../../mutations-B6HWH-rZ.js';
|
|
2
|
-
import { C as ContractAmendmentAutomatableResponse, P as PostAutomatableContractAmendmentError, a as ContractAmendmentResponse, b as PostCreateContractAmendmentError } from '../../types.gen-
|
|
2
|
+
import { C as ContractAmendmentAutomatableResponse, P as PostAutomatableContractAmendmentError, a as ContractAmendmentResponse, b as PostCreateContractAmendmentError } from '../../types.gen-BqCe1GRY.js';
|
|
3
3
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
4
4
|
import * as react from 'react';
|
|
5
|
-
import '../../remoteFlows-
|
|
5
|
+
import '../../remoteFlows-Zmw9pCN3.js';
|
|
6
6
|
import * as react_hook_form from 'react-hook-form';
|
|
7
7
|
import { useContractAmendment } from './hooks.js';
|
|
8
8
|
import { Step } from '../useStepState.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SuccessResponse, E as ErrorResponse } from '../../mutations-B6HWH-rZ.js';
|
|
2
|
-
import { C as ContractAmendmentAutomatableResponse, P as PostAutomatableContractAmendmentError, a as ContractAmendmentResponse, b as PostCreateContractAmendmentError } from '../../types.gen-
|
|
2
|
+
import { C as ContractAmendmentAutomatableResponse, P as PostAutomatableContractAmendmentError, a as ContractAmendmentResponse, b as PostCreateContractAmendmentError } from '../../types.gen-BqCe1GRY.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-
|
|
1
|
+
import{a}from"../../chunk-6CU63ESU.js";import"../../chunk-UNTCBVHB.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-LK3DIMYW.js";import"../../chunk-FQNVKX3N.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-P37U34EQ.js";export{a as useContractAmendment};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -4,7 +4,7 @@ export { ContractAmendmentForm } from './ContractAmendmentForm.js';
|
|
|
4
4
|
export { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
|
|
5
5
|
export { useContractAmendment } from './hooks.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
|
-
import '../../types.gen-
|
|
7
|
+
import '../../types.gen-BqCe1GRY.js';
|
|
8
8
|
import 'react-hook-form';
|
|
9
9
|
import './ContractAmendmentBack.js';
|
|
10
10
|
import 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-
|
|
1
|
+
import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-AHZSNZSG.js";import{a as c}from"../../chunk-HQMY3X2R.js";import{a as d}from"../../chunk-6CU63ESU.js";import"../../chunk-UNTCBVHB.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-LK3DIMYW.js";import"../../chunk-FQNVKX3N.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-OGAVWGSY.js";import{a}from"../../chunk-2VGEHBMK.js";import{a as b}from"../../chunk-IKYBTQKV.js";import"../../chunk-PAC52YON.js";import"../../chunk-A27ASO7K.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-IXZAHZ7B.js";import"../../chunk-SHFIZENN.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-DPLXEXMO.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-4F4I7F2P.js";import"../../chunk-7LZQJ5CL.js";import"../../chunk-DYB3RWP7.js";import"../../chunk-SHFIZENN.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorDisclaimer};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorDisclaimer.js.map
|
|
@@ -4,7 +4,7 @@ import { CostCalculatorEstimationOptions } from './types.js';
|
|
|
4
4
|
import { JSFModify } from '../types.js';
|
|
5
5
|
import react__default from 'react';
|
|
6
6
|
import 'yup';
|
|
7
|
-
import '../../types.gen-
|
|
7
|
+
import '../../types.gen-BqCe1GRY.js';
|
|
8
8
|
import '@remoteoss/json-schema-form';
|
|
9
9
|
|
|
10
10
|
type CostCalculatorFlowProps = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-GPS62RDR.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-TMUPJJDK.js";import"../../chunk-NXZRK6KL.js";import"../../chunk-UPRUP24B.js";import"../../chunk-V6W2SJ4Z.js";import"../../chunk-AYAQLXJH.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-C3KZEPUZ.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-FQNVKX3N.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-IXZAHZ7B.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-DPLXEXMO.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorFlow};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorFlow.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { c as CostCalculatorEstimateResponse } from '../../types.gen-
|
|
2
|
+
import { c as CostCalculatorEstimateResponse } from '../../types.gen-BqCe1GRY.js';
|
|
3
3
|
import { EstimationError } from './hooks.js';
|
|
4
4
|
import { CostCalculatorEstimationSubmitValues } from './types.js';
|
|
5
5
|
import 'yup';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-7N2NUY3F.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-PAC52YON.js";import"../../chunk-A27ASO7K.js";import"../../chunk-IXZAHZ7B.js";import"../../chunk-SHFIZENN.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-DPLXEXMO.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorForm};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-Q5ZUVH3U.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-SHFIZENN.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorResetButton};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorResetButton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-S62STPBT.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-SHFIZENN.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorSubmitButton};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorSubmitButton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-AEVZ7GEK.js";import"../../../chunk-SRZGBJVA.js";import"../../../chunk-G4NBJTHB.js";import"../../../chunk-7LZQJ5CL.js";import"../../../chunk-FQNVKX3N.js";import"../../../chunk-SHFIZENN.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-HGLI6PUM.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorBenefitsBreakdown};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorBenefitsBreakdown.js.map
|
|
@@ -8,6 +8,7 @@ type CostCalculatorContributionsBreakdownProps = {
|
|
|
8
8
|
description: string | null;
|
|
9
9
|
amount: number;
|
|
10
10
|
zendesk_article_url: string | null;
|
|
11
|
+
zendesk_article_id: string | null;
|
|
11
12
|
}[] | undefined;
|
|
12
13
|
};
|
|
13
14
|
declare function CostCalculatorContributionsBreakdown({ contributionsTotal, currency, contributionsBreakdown, }: CostCalculatorContributionsBreakdownProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-466M4PK7.js";import"../../../chunk-SRZGBJVA.js";import"../../../chunk-G4NBJTHB.js";import"../../../chunk-7LZQJ5CL.js";import"../../../chunk-FQNVKX3N.js";import"../../../chunk-SHFIZENN.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-HGLI6PUM.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorContributionsBreakdown};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorContributionsBreakdown.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-5PVQUO5Q.js";import"../../../chunk-SRZGBJVA.js";import"../../../chunk-G4NBJTHB.js";import"../../../chunk-7LZQJ5CL.js";import"../../../chunk-FQNVKX3N.js";import"../../../chunk-SHFIZENN.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-HGLI6PUM.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorExtraStatutoryPaymentsBreakdown};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorExtraStatutoryPaymentsBreakdown.js.map
|
|
@@ -3,7 +3,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
3
3
|
type CostCalculatorGrossSalaryProps = {
|
|
4
4
|
grossSalary: number;
|
|
5
5
|
currency: string;
|
|
6
|
+
hasExtraStatutoryPayment?: boolean;
|
|
6
7
|
};
|
|
7
|
-
declare function CostCalculatorGrossSalary({ grossSalary, currency, }: CostCalculatorGrossSalaryProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function CostCalculatorGrossSalary({ grossSalary, currency, hasExtraStatutoryPayment, }: CostCalculatorGrossSalaryProps): react_jsx_runtime.JSX.Element;
|
|
8
9
|
|
|
9
10
|
export { CostCalculatorGrossSalary };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-YHSNK7WB.js";import"../../../chunk-SRZGBJVA.js";import"../../../chunk-G4NBJTHB.js";import"../../../chunk-7LZQJ5CL.js";import"../../../chunk-FQNVKX3N.js";import"../../../chunk-SHFIZENN.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-HGLI6PUM.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorGrossSalary};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorGrossSalary.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-WJA7PQ2J.js";import"../../../chunk-G4NBJTHB.js";import"../../../chunk-HGLI6PUM.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorIndirectTax};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorIndirectTax.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { c as CostCalculatorEstimateResponse } from '../../../types.gen-
|
|
2
|
+
import { c as CostCalculatorEstimateResponse } from '../../../types.gen-BqCe1GRY.js';
|
|
3
3
|
|
|
4
4
|
interface CostCalculatorResultProps {
|
|
5
5
|
employmentData: CostCalculatorEstimateResponse['data'];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-XFY4VAAJ.js";import"../../../chunk-AEVZ7GEK.js";import"../../../chunk-466M4PK7.js";import"../../../chunk-5PVQUO5Q.js";import"../../../chunk-YHSNK7WB.js";import"../../../chunk-SRZGBJVA.js";import"../../../chunk-WJA7PQ2J.js";import"../../../chunk-G4NBJTHB.js";import"../../../chunk-ZPUELAQZ.js";import"../../../chunk-WFET4MKU.js";import"../../../chunk-7LZQJ5CL.js";import"../../../chunk-FQNVKX3N.js";import"../../../chunk-A27ASO7K.js";import"../../../chunk-SHFIZENN.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-HGLI6PUM.js";import"../../../chunk-P37U34EQ.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 d,e as u}from"../../../chunk-
|
|
1
|
+
import{a as l,b as n,c as d,e as u}from"../../../chunk-ZPUELAQZ.js";import{b as i}from"../../../chunk-HGLI6PUM.js";import{a as s}from"../../../chunk-P37U34EQ.js";import{Cell as c,Pie as C,PieChart as p,ResponsiveContainer as f,Tooltip as v}from"recharts";import{jsx as e,jsxs as a}from"react/jsx-runtime";function y({chartData:t,currency:m}){return a(l,{className:"rounded-lg RemoteFlows__CostCalculatorResults_CostDistribution",children:[e(n,{className:"pb-2",children:e(d,{children:"Cost Distribution"})}),a(u,{children:[e("div",{className:"h-[300px] flex items-center justify-center",children:e(f,{width:"100%",height:"100%",children:a(p,{children:[e(C,{data:t,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",labelLine:!1,children:t.map((r,o)=>e(c,{fill:r.color},`cell-${o}`))}),e(v,{formatter:r=>i(Number(r),m),contentStyle:{borderRadius:"var(--radius-md)",border:"1px solid var(--color-border)",fontSize:"var(--text-xs)"}})]})})}),e("div",{className:"mt-4 space-y-2",children:t.map((r,o)=>a("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:r.color}}),e("span",{className:"text-sm",children:r.name})]},o))})]})]})}s(y,"CostCalculatorResultsChart");export{y as default};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorResultsChart.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-WFET4MKU.js";import"../../../chunk-HGLI6PUM.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorTotalCost};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorTotalCost.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
|
-
import { d as CostCalculatorEstimatePdfResponse, e as PostCreateEstimationPdfError, f as CostCalculatorEstimateParams, M as MinimalRegion, c as CostCalculatorEstimateResponse, g as PostCreateEstimationError } from '../../types.gen-
|
|
3
|
+
import { d as CostCalculatorEstimatePdfResponse, e as PostCreateEstimationPdfError, f as CostCalculatorEstimateParams, M as MinimalRegion, c as CostCalculatorEstimateResponse, g as PostCreateEstimationError } from '../../types.gen-BqCe1GRY.js';
|
|
4
4
|
import { CostCalculatorEstimationOptions } from './types.js';
|
|
5
5
|
import { JSFModify } from '../types.js';
|
|
6
6
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../../chunk-C3KZEPUZ.js";import"../../chunk-FQNVKX3N.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-P37U34EQ.js";export{b as useCompanyCurrencies,a as useCostCalculatorCountries,c as useCostCalculatorEstimation,d as useCostCalculatorEstimationPdf,e as useRegionFields};
|
|
2
2
|
//# sourceMappingURL=api.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-NXZRK6KL.js";import"../../../chunk-V6W2SJ4Z.js";import"../../../chunk-AYAQLXJH.js";import"../../../chunk-WVJDCDGZ.js";import"../../../chunk-Z5WMKCRJ.js";import"../../../chunk-FQNVKX3N.js";import"../../../chunk-IXZAHZ7B.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-DPLXEXMO.js";import"../../../chunk-N6SBUVA6.js";import"../../../chunk-HGLI6PUM.js";import"../../../chunk-P37U34EQ.js";export{a as SalaryField};
|
|
2
2
|
//# sourceMappingURL=SalaryField.js.map
|
|
@@ -2,8 +2,8 @@ import { Result } from '../types.js';
|
|
|
2
2
|
import { useCostCalculator, EstimationError } from './hooks.js';
|
|
3
3
|
import { CostCalculatorEstimationFormValues, CostCalculatorEstimationSubmitValues } from './types.js';
|
|
4
4
|
import * as react from 'react';
|
|
5
|
-
import { c as CostCalculatorEstimateResponse } from '../../types.gen-
|
|
6
|
-
import { $ as $TSFixMe } from '../../remoteFlows-
|
|
5
|
+
import { c as CostCalculatorEstimateResponse } from '../../types.gen-BqCe1GRY.js';
|
|
6
|
+
import { $ as $TSFixMe } from '../../remoteFlows-Zmw9pCN3.js';
|
|
7
7
|
import * as yup from 'yup';
|
|
8
8
|
import { UseFormReturn } from 'react-hook-form';
|
|
9
9
|
import '@remoteoss/json-schema-form';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
import { ValidationError } from 'yup';
|
|
3
|
-
import { c as CostCalculatorEstimateResponse, g as PostCreateEstimationError } from '../../types.gen-
|
|
3
|
+
import { c as CostCalculatorEstimateResponse, g as PostCreateEstimationError } from '../../types.gen-BqCe1GRY.js';
|
|
4
4
|
import { CostCalculatorEstimationOptions, CostCalculatorEstimationFormValues, CostCalculatorEstimationSubmitValues } from './types.js';
|
|
5
5
|
import { JSFModify, Result } from '../types.js';
|
|
6
6
|
import '@remoteoss/json-schema-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as a,d as b}from"../../chunk-
|
|
1
|
+
import{c as a,d as b}from"../../chunk-TMUPJJDK.js";import"../../chunk-NXZRK6KL.js";import"../../chunk-UPRUP24B.js";import"../../chunk-V6W2SJ4Z.js";import"../../chunk-AYAQLXJH.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-C3KZEPUZ.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-FQNVKX3N.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-IXZAHZ7B.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-DPLXEXMO.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as defaultEstimationOptions,b as useCostCalculator};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -10,12 +10,12 @@ export { CostCalculatorResults } from './Results/CostCalculatorResults.js';
|
|
|
10
10
|
export { buildPayload as buildCostCalculatorEstimationPayload } from './utils.js';
|
|
11
11
|
import 'react/jsx-runtime';
|
|
12
12
|
import './types.js';
|
|
13
|
-
import '../../types.gen-
|
|
13
|
+
import '../../types.gen-BqCe1GRY.js';
|
|
14
14
|
import '../types.js';
|
|
15
15
|
import '@remoteoss/json-schema-form';
|
|
16
16
|
import 'react';
|
|
17
17
|
import 'yup';
|
|
18
18
|
import '@tanstack/react-query';
|
|
19
|
-
import '../../remoteFlows-
|
|
19
|
+
import '../../remoteFlows-Zmw9pCN3.js';
|
|
20
20
|
import 'react-hook-form';
|
|
21
21
|
import '../../types-Zg1n_9wh.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-YJXRJTOH.js";import{a as j}from"../../chunk-
|
|
1
|
+
import"../../chunk-YJXRJTOH.js";import{a as j}from"../../chunk-XFY4VAAJ.js";import"../../chunk-AEVZ7GEK.js";import"../../chunk-466M4PK7.js";import"../../chunk-5PVQUO5Q.js";import"../../chunk-YHSNK7WB.js";import"../../chunk-SRZGBJVA.js";import"../../chunk-WJA7PQ2J.js";import"../../chunk-G4NBJTHB.js";import"../../chunk-ZPUELAQZ.js";import"../../chunk-WFET4MKU.js";import{a as e}from"../../chunk-7N2NUY3F.js";import{a as g}from"../../chunk-Q5ZUVH3U.js";import{a as f}from"../../chunk-S62STPBT.js";import{a as i}from"../../chunk-4F4I7F2P.js";import"../../chunk-7LZQJ5CL.js";import{a as h}from"../../chunk-DYB3RWP7.js";import{a as d}from"../../chunk-GPS62RDR.js";import"../../chunk-KSHK3ZPX.js";import{b as a,d as c}from"../../chunk-TMUPJJDK.js";import"../../chunk-NXZRK6KL.js";import"../../chunk-UPRUP24B.js";import"../../chunk-V6W2SJ4Z.js";import"../../chunk-AYAQLXJH.js";import"../../chunk-WVJDCDGZ.js";import{d as b}from"../../chunk-C3KZEPUZ.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-FQNVKX3N.js";import"../../chunk-PAC52YON.js";import"../../chunk-A27ASO7K.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-IXZAHZ7B.js";import"../../chunk-SHFIZENN.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-DPLXEXMO.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.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,5 +1,5 @@
|
|
|
1
|
-
import { f as CostCalculatorEstimateParams } from '../../types.gen-
|
|
2
|
-
import { $ as $TSFixMe } from '../../remoteFlows-
|
|
1
|
+
import { f as CostCalculatorEstimateParams } from '../../types.gen-BqCe1GRY.js';
|
|
2
|
+
import { $ as $TSFixMe } from '../../remoteFlows-Zmw9pCN3.js';
|
|
3
3
|
import { AnyObjectSchema } from 'yup';
|
|
4
4
|
import { CostCalculatorVersion } from './hooks.js';
|
|
5
5
|
import { CostCalculatorEstimationSubmitValues, CostCalculatorEstimationOptions } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-TMUPJJDK.js";import"../../chunk-NXZRK6KL.js";import"../../chunk-UPRUP24B.js";import"../../chunk-V6W2SJ4Z.js";import"../../chunk-AYAQLXJH.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-C3KZEPUZ.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-FQNVKX3N.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-IXZAHZ7B.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-DPLXEXMO.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{b as buildPayload,a as buildValidationSchema};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
@@ -12,14 +12,14 @@ import { SelectCountryStep } from './components/SelectCountryStep.js';
|
|
|
12
12
|
import { ReviewStep } from './components/ReviewStep.js';
|
|
13
13
|
import { SaveDraftButton } from './components/SaveDraftButton.js';
|
|
14
14
|
import '@tanstack/query-core';
|
|
15
|
-
import '../../types.gen-
|
|
15
|
+
import '../../types.gen-BqCe1GRY.js';
|
|
16
16
|
import '../../mutations-B6HWH-rZ.js';
|
|
17
17
|
import '@remoteoss/json-schema-form';
|
|
18
18
|
import '../useStepState.js';
|
|
19
19
|
import 'react-hook-form';
|
|
20
20
|
import './utils.js';
|
|
21
21
|
import '../types.js';
|
|
22
|
-
import '../../remoteFlows-
|
|
22
|
+
import '../../remoteFlows-Zmw9pCN3.js';
|
|
23
23
|
import 'yup';
|
|
24
24
|
import '../../types-Zg1n_9wh.js';
|
|
25
25
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-3KQWGXAR.js";import"../../chunk-WOUZK5DW.js";import"../../chunk-6P4XGSZ6.js";import"../../chunk-Z7WBY27D.js";import"../../chunk-7TOZZQQJ.js";import"../../chunk-ADE22XT7.js";import"../../chunk-BJFZBI3O.js";import"../../chunk-KZ6QGSRA.js";import"../../chunk-QBV4XS4Z.js";import"../../chunk-3LGFQNYW.js";import"../../chunk-ZVXX43AL.js";import"../../chunk-PGWKJ6FK.js";import"../../chunk-5IREEZLM.js";import"../../chunk-CQ2QAZBG.js";import"../../chunk-2A5R3YN2.js";import"../../chunk-F66G33YT.js";import"../../chunk-V6W2SJ4Z.js";import"../../chunk-AYAQLXJH.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-FQNVKX3N.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-PAC52YON.js";import"../../chunk-A27ASO7K.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-IXZAHZ7B.js";import"../../chunk-SHFIZENN.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-DPLXEXMO.js";import"../../chunk-N6SBUVA6.js";import"../../chunk-HGLI6PUM.js";import"../../chunk-P37U34EQ.js";export{a as OnboardingFlow};
|
|
2
2
|
//# sourceMappingURL=OnboardingFlow.js.map
|