@remoteoss/remote-flows 0.7.1 → 0.7.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.
- package/dist/{chunk-GUEW2E5I.js → chunk-3ULNOTWS.js} +2 -2
- package/dist/{chunk-7QCIL6II.js → chunk-AJW7JSE4.js} +2 -2
- package/dist/{chunk-UDELE73H.js → chunk-B2ZLKK2H.js} +2 -2
- package/dist/{chunk-EHPSMC2H.js → chunk-BLDC772Q.js} +2 -2
- package/dist/{chunk-CR6533ZQ.js → chunk-D4YFWZ2F.js} +2 -2
- package/dist/{chunk-WG745QCK.js → chunk-E3RHKRLZ.js} +2 -2
- package/dist/{chunk-SFAL554T.js → chunk-EKHD3NLQ.js} +2 -2
- package/dist/{chunk-PWS3CKOJ.js → chunk-GMZXPVU7.js} +2 -2
- package/dist/{chunk-OODRC4XO.js → chunk-J55HQBYO.js} +2 -2
- package/dist/{chunk-VJZSGSZS.js → chunk-LDMCBDDN.js} +2 -2
- package/dist/{chunk-T3HJ2JSB.js → chunk-SX5W3CBP.js} +2 -2
- package/dist/{chunk-XHBIGZDX.js → chunk-T3J35IOL.js} +2 -2
- package/dist/{chunk-H7OOFFX6.js → chunk-TE4ZKXEX.js} +2 -2
- package/dist/chunk-TSPRBSWT.js +2 -0
- package/dist/chunk-TSPRBSWT.js.map +1 -0
- package/dist/{chunk-JDCENOQH.js → chunk-VT4S2JOL.js} +2 -2
- package/dist/{chunk-GRJ3OE72.js → chunk-WRARRDYR.js} +2 -2
- package/dist/{chunk-VLIYBW2Y.js → chunk-YAWZZ53R.js} +2 -2
- package/dist/{chunk-Y4MPNYIQ.js → chunk-ZVVQQE75.js} +2 -2
- package/dist/{chunk-OLGE774X.js → chunk-ZWXPOAIV.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +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/context.d.ts +1 -1
- 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/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/Results/CostCalculatorResults.d.ts +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
- package/dist/flows/CostCalculator/api.d.ts +1 -1
- package/dist/flows/CostCalculator/context.d.ts +1 -1
- package/dist/flows/CostCalculator/hooks.d.ts +1 -1
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +1 -1
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +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 +1 -1
- 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/OnboardingForm.d.ts +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +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 +1 -1
- package/dist/flows/Onboarding/hooks.d.ts +1 -1
- package/dist/flows/Onboarding/index.d.ts +1 -1
- 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/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/TimeOff.d.ts +1 -1
- package/dist/flows/Termination/context.d.ts +1 -1
- package/dist/flows/Termination/hooks.d.ts +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.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{types.gen-uIYQx7Be.d.ts → types.gen-DSJsKiNm.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-JE7U4WFD.js +0 -2
- package/dist/chunk-JE7U4WFD.js.map +0 -1
- /package/dist/{chunk-GUEW2E5I.js.map → chunk-3ULNOTWS.js.map} +0 -0
- /package/dist/{chunk-7QCIL6II.js.map → chunk-AJW7JSE4.js.map} +0 -0
- /package/dist/{chunk-UDELE73H.js.map → chunk-B2ZLKK2H.js.map} +0 -0
- /package/dist/{chunk-EHPSMC2H.js.map → chunk-BLDC772Q.js.map} +0 -0
- /package/dist/{chunk-CR6533ZQ.js.map → chunk-D4YFWZ2F.js.map} +0 -0
- /package/dist/{chunk-WG745QCK.js.map → chunk-E3RHKRLZ.js.map} +0 -0
- /package/dist/{chunk-SFAL554T.js.map → chunk-EKHD3NLQ.js.map} +0 -0
- /package/dist/{chunk-PWS3CKOJ.js.map → chunk-GMZXPVU7.js.map} +0 -0
- /package/dist/{chunk-OODRC4XO.js.map → chunk-J55HQBYO.js.map} +0 -0
- /package/dist/{chunk-VJZSGSZS.js.map → chunk-LDMCBDDN.js.map} +0 -0
- /package/dist/{chunk-T3HJ2JSB.js.map → chunk-SX5W3CBP.js.map} +0 -0
- /package/dist/{chunk-XHBIGZDX.js.map → chunk-T3J35IOL.js.map} +0 -0
- /package/dist/{chunk-H7OOFFX6.js.map → chunk-TE4ZKXEX.js.map} +0 -0
- /package/dist/{chunk-JDCENOQH.js.map → chunk-VT4S2JOL.js.map} +0 -0
- /package/dist/{chunk-GRJ3OE72.js.map → chunk-WRARRDYR.js.map} +0 -0
- /package/dist/{chunk-VLIYBW2Y.js.map → chunk-YAWZZ53R.js.map} +0 -0
- /package/dist/{chunk-Y4MPNYIQ.js.map → chunk-ZVVQQE75.js.map} +0 -0
- /package/dist/{chunk-OLGE774X.js.map → chunk-ZWXPOAIV.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-EKHD3NLQ.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-3ULNOTWS.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-ZWXPOAIV.js";import{b as a}from"./chunk-PGWKJ6FK.js";import{b as t}from"./chunk-QW4JPW6J.js";import{d as s}from"./chunk-CNYSTJVL.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function P({components:d,onSubmit:l,onError:i,onSuccess:f}){let{onboardingBag:o}=a(),p=o.fields??[],c=s(p,o.initialValues.benefits);return E(m,{defaultValues:c,components:d,onSubmit:e(async n=>{try{await l?.(n);let r=await o.onSubmit(n);if(r?.data){await f?.(r.data),o?.next();return}if(r?.error){let u=t(r?.fieldErrors||[],o.meta?.fields?.benefits);i?.({error:r.error,rawError:r.rawError,fieldErrors:u})}}catch(r){i?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit")})}e(P,"BenefitsStep");export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AJW7JSE4.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-ZWXPOAIV.js";import{b as t}from"./chunk-PGWKJ6FK.js";import{b as e}from"./chunk-QW4JPW6J.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function S({onSubmit:m,onSuccess:d,onError:a}){let{onboardingBag:o}=t(),l=i(async n=>{try{await m?.(o.parseFormValues(n));let r=await o.onSubmit(n);if(r?.data){await d?.(r?.data),o?.next();return}if(r?.error){let p=e(r?.fieldErrors||[],o.meta?.fields?.basic_information);a?.({error:r?.error,rawError:r?.rawError,fieldErrors:p})}}catch(r){a?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),f=o.stepState.values?.basic_information||o.initialValues.basic_information;return c(s,{defaultValues:f,onSubmit:l})}i(S,"BasicInformationStep");export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-B2ZLKK2H.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-EKHD3NLQ.js";import{b as n}from"./chunk-MRYRNB7Y.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as a}from"react/jsx-runtime";function u({onSubmit:m}){let{terminationBag:i}=n();return a(r,{onSubmit:o(async t=>{await m?.(i?.parseFormValues(t)),i?.next()},"handleSubmit")})}o(u,"TerminationDetailsForm");export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BLDC772Q.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-ZWXPOAIV.js";import{b as n}from"./chunk-PGWKJ6FK.js";import{b as i}from"./chunk-QW4JPW6J.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as p}from"react/jsx-runtime";function F({onSubmit:l,onError:t,onSuccess:d}){let{onboardingBag:o}=n(),m=e(async a=>{try{await l?.(o.parseFormValues(a));let r=await o.onSubmit(a);if(r?.data){await d?.(r.data),o?.next();return}if(r?.error){let c=i(r?.fieldErrors||[],o.meta?.fields?.contract_details);t?.({error:r.error,rawError:r.rawError,fieldErrors:c})}}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit");return p(s,{defaultValues:o.stepState.values?.contract_details||o.initialValues.contract_details,onSubmit:m})}e(F,"ContractDetailsStep");export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-D4YFWZ2F.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as R}from"./chunk-QM2ADK6C.js";import{a as k}from"./chunk-FUIAABQ6.js";import{a as S}from"./chunk-INS7FVGA.js";import{a as N}from"./chunk-FL5V45BK.js";import{a as D}from"./chunk-JQOEHEGL.js";import{a as T,b as v,c as w,d as x,e as P}from"./chunk-WRZ6WHH7.js";import{a as B}from"./chunk-7NN4M5P2.js";import{a as h}from"./chunk-77WJVEKH.js";import{a as c}from"./chunk-FBBUL6AE.js";import{a as i}from"./chunk-P37U34EQ.js";import{lazy as j,useState as A}from"react";import*as l from"@radix-ui/react-tabs";import{jsx as y}from"react/jsx-runtime";function L({className:r,...a}){return y(l.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",r),...a})}i(L,"Tabs");function F({className:r,...a}){return y(l.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",r),...a})}i(F,"TabsList");function d({className:r,...a}){return y(l.Trigger,{"data-slot":"tabs-trigger",className:c("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",r),...a})}i(d,"TabsTrigger");import{Fragment as M,jsx as o,jsxs as s}from"react/jsx-runtime";var I=j(()=>import("./flows/CostCalculator/Results/CostCalculatorResultsChart.js"));function st({employmentData:r,options:a}){let[e,z]=A("monthly"),m=r.employments?.[0];if(!m)return null;let t=m.employer_currency_costs,n=t.currency.symbol,b=e==="monthly"?t.monthly_gross_salary:t.annual_gross_salary,f=e==="monthly"?t.monthly_benefits_total:t.annual_benefits_total,C=e==="monthly"?t.monthly_contributions_total:t.annual_contributions_total,E=e==="monthly"?t.monthly_total:t.annual_total,p=e==="monthly"?null:t.extra_statutory_payments_breakdown,H=e==="monthly"?null:t.extra_statutory_payments_total,g=e==="monthly"?t.monthly_indirect_tax:t.annual_indirect_tax,u=e==="monthly"?t.monthly_benefits_breakdown:t.annual_benefits_breakdown,G=e==="monthly"?t.monthly_contributions_breakdown:t.annual_contributions_breakdown,_=[{name:"Gross Salary",value:b,color:a?.chartColors?.grossSalary??"#3b82f6"},{name:"Contributions",value:C,color:a?.chartColors?.contributions??"#f59e0b"}];return u&&_.push({name:"Benefits",value:f??0,color:a?.chartColors?.benefits??"#10b981"}),s(M,{children:[s("div",{className:"flex flex-col md:flex-row gap-4 md:items-center justify-between mb-6 RemoteFlows__CostCalculatorResults",children:[s("div",{className:"RemoteFlows__CostCalculatorResults__Header",children:[s("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:m.country.name})]}),o("p",{className:"text-primary-foreground font-medium mt-1",children:a?.description??`Total cost of employment in ${m.country.name}`})]}),o(L,{value:e,onValueChange:V=>z(V),className:"w-full md:w-auto RemoteFlows__CostCalculatorResults__Tabs",children:s(F,{className:"grid w-full md:w-[200px] grid-cols-2",children:[o(d,{value:"monthly",children:"Monthly"}),o(d,{value:"annual",children:"Annual"})]})})]}),s("div",{className:c("grid grid-cols-1 gap-6",a?.showChart?"md:grid-cols-3":"","RemoteFlows__CostCalculatorResults_CostBreakdown"),children:[s(T,{className:"md:col-span-2 rounded-lg",children:[s(v,{className:"pb-2",children:[o(w,{children:"Cost Breakdown"}),o(x,{children:"Detailed breakdown of all employer costs"})]}),o(P,{children:s("div",{className:"space-y-6",children:[o(N,{grossSalary:b,currency:n}),u?o(R,{benefitsBreakdown:u,benefitsTotal:f,currency:n}):null,o(k,{contributionsBreakdown:G,contributionsTotal:C,currency:n}),p?o(S,{extraStatutoryPaymentsBreakdown:p,extraStatutoryPaymentsTotal:H,currency:n}):null,g?o(D,{indirectTax:g,currency:n}):null,o(B,{totalCost:E,currency:n})]})})]}),a?.showChart&&o(I,{chartData:_,currency:n})]})]})}i(st,"CostCalculatorResults");export{st as a};
|
|
2
|
+
//# sourceMappingURL=chunk-E3RHKRLZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as d}from"./chunk-MRYRNB7Y.js";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as d}from"./chunk-MRYRNB7Y.js";import{a as f}from"./chunk-3BKQNKPF.js";import{b as s}from"./chunk-CFIJKJXD.js";import{f as a,g as l}from"./chunk-RPEWAKDI.js";import{a as n}from"./chunk-P37U34EQ.js";import{useEffect as T}from"react";import{jsx as e}from"react/jsx-runtime";function A({fields:m,onSubmit:F}){let{formId:u,terminationBag:o}=d(),c=s(o.handleValidation),i=a({resolver:c,defaultValues:o?.initialValues,shouldUnregister:!1,mode:"onBlur"});T(()=>{let y=i?.watch(r=>{Object.keys(r).some(t=>r[t]!==o?.initialValues?.[t])&&o?.checkFieldUpdates(r)});return()=>y?.unsubscribe()},[]);let p=m||(o?.fields??[]);return e(l,{...i,children:e("form",{id:u,onSubmit:i.handleSubmit(F),className:"space-y-4 RemoteFlows__TerminationForm",children:e(f,{fields:p})})})}n(A,"TerminationForm");export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EKHD3NLQ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-CEFYPG7Z.js";import{a as n}from"./chunk-SYEPIESJ.js";import{a as e}from"./chunk-ODDTNQB5.js";import{a as T}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-CEFYPG7Z.js";import{a as n}from"./chunk-SYEPIESJ.js";import{a as e}from"./chunk-ODDTNQB5.js";import{a as T}from"./chunk-WRARRDYR.js";import{a}from"./chunk-TE4ZKXEX.js";import{a as f}from"./chunk-3ULNOTWS.js";import{a as r}from"./chunk-4UKKNARJ.js";import{a as p}from"./chunk-BLDC772Q.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-GMZXPVU7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as F}from"./chunk-3BKQNKPF.js";import{b as l}from"./chunk-CFIJKJXD.js";import{f,g as p}from"./chunk-RPEWAKDI.js";import{c as u}from"./chunk-CNYSTJVL.js";import{b as _}from"./chunk-TVZAFTPT.js";import{a as r}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as a}from"react/jsx-runtime";var w=["effective_date","reason_for_change","reason_for_change_description","additional_comments","additional_comments_toggle"];function x({onSubmit:b,onError:m,onSuccess:A}){let{formId:C,contractAmendment:{checkFieldUpdates:h,fields:s,onSubmit:S,stepState:g,initialValues:i,handleValidation:y}}=_(),V=l(y),e=f({resolver:V,defaultValues:g.values?.form||i,shouldUnregister:!0,mode:"onBlur"});R(()=>{let t=e?.watch(o=>{(Object.keys(e.formState.dirtyFields).length>0||e.formState.isDirty)&&h(o)});return()=>t?.unsubscribe()},[]);let v=r(async t=>{let o=!1;for(let[c,P]of Object.entries(t))if(!w.includes(c)&&i[c]!==P){o=!0;break}if(!o)return m?.({message:"no_changes_detected_contract_details"});let d=u(t,s,{isPartialValidation:!1});await b?.(d);let n=await S(t);n.error?m?.(n.error):await A?.(n.data)},"handleSubmit");return a(p,{...e,children:a("form",{id:C,"data-testid":"contract-amendment-form",onSubmit:e.handleSubmit(v),className:"space-y-4 RemoteFlows__ContractAmendmentForm",children:a(F,{fields:s})})})}r(x,"ContractAmendmentForm");export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-J55HQBYO.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-KSHK3ZPX.js";import{c as n,d as e}from"./chunk-T3J35IOL.js";import{b as a}from"./chunk-CFIJKJXD.js";import{f as l}from"./chunk-RPEWAKDI.js";import{a as r}from"./chunk-P37U34EQ.js";import{useId as y}from"react";import{jsx as d}from"react/jsx-runtime";var h=r(({estimationOptions:i=n,defaultValues:o={countryRegionSlug:"",currencySlug:"",salary:""},options:u,render:c,version:C="standard"})=>{let m=y(),t=e({defaultRegion:o.countryRegionSlug,estimationOptions:i,version:C,options:u}),g=a(t.handleValidation),p=l({resolver:g,defaultValues:{country:o?.countryRegionSlug,currency:o?.currencySlug,region:"",salary:o?.salary},shouldUnregister:!1,mode:"onBlur"});return d(s.Provider,{value:{form:p,formId:m,costCalculatorBag:t},children:c(t)})},"CostCalculatorFlow");export{h as a};
|
|
2
|
+
//# sourceMappingURL=chunk-LDMCBDDN.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as v}from"./chunk-VTNGEN34.js";import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as v}from"./chunk-VTNGEN34.js";import{a as A}from"./chunk-QW4JPW6J.js";import{a as l,b as _}from"./chunk-Z4FTX74F.js";import{c as E,l as w,u as b}from"./chunk-276MJCIE.js";import{a as M}from"./chunk-PJBAQZ6G.js";import{d}from"./chunk-3ZWDIEEM.js";import{a as j,c as S}from"./chunk-CNYSTJVL.js";import{a as t}from"./chunk-P37U34EQ.js";import{createHeadlessForm as I,modify as R}from"@remoteoss/json-schema-form";import{useMutation as Q,useQuery as B}from"@tanstack/react-query";var J=t(({countryCode:a,employment:r,fieldValues:n,options:e})=>{let{client:u}=d(),m=e?.jsonSchemaVersion?.contract_amendments?{json_schema_version:e.jsonSchemaVersion.contract_amendments}:{};return B({queryKey:["contract-amendment-schema"],retry:!1,queryFn:t(async()=>{let o=await E({client:u,headers:{Authorization:""},query:{employment_id:r?.data?.employment?.id,country_code:a,...m}});if(o.error||!o.data)throw new Error("Failed to fetch contract amendment schema");return o},"queryFn"),enabled:!!r,select:t(({data:o})=>{let c=o?.data||{};if(e&&e.jsfModify){let{schema:f}=R(c,e.jsfModify);c=f}let s={...n,annual_gross_salary:n?.annual_gross_salary?j(n?.annual_gross_salary):void 0},y=Object.keys(s).length>0;return I(c,{initialValues:y?s:_(r)})},"select")})},"useContractAmendmentSchemaQuery"),K=t(a=>{let{client:r}=d(),n=a?.jsonSchemaVersion?.contract_amendments?{json_schema_version:a.jsonSchemaVersion.contract_amendments}:{};return Q({mutationFn:t(e=>w({client:r,headers:{Authorization:""},body:e,query:{...n}}),"mutationFn")})},"useCreateContractAmendmentMutation"),U=t(a=>{let{client:r}=d(),n=a?.jsonSchemaVersion?.contract_amendments?{json_schema_version:a.jsonSchemaVersion.contract_amendments}:{};return Q({mutationFn:t(e=>b({client:r,headers:{Authorization:""},body:e,query:{...n}}),"mutationFn")})},"useAutomatableContractAmendmentMutation"),ae=t(({employmentId:a,countryCode:r,options:n})=>{let{fieldValues:e,setFieldValues:u,stepState:m,nextStep:o,previousStep:c}=M(l),{data:s,isLoading:y,isError:V,error:f}=v({employmentId:a}),{data:i,isLoading:q,isError:L,error:T}=J({employment:s,countryCode:r,fieldValues:{...m.values?.[m.currentStep.name],...e},options:n}),k=_(s,i?.fields),F=K(n),g=U(n);async function O(p){let h=S(p,i?.fields||[],{isPartialValidation:!1}),P={employment_id:s?.data.employment?.id,amendment_contract_id:s?.data.employment?.active_contract_id,contract_amendment:{...h}};switch(m.currentStep.name){case l.form.name:{let{mutateAsync:C}=A(g),H=await C(P);return o(),H}case l.confirmation_form.name:{let{mutateAsync:C}=A(F);return C(P)}default:throw new Error("Invalid step state")}}t(O,"onSubmit");function z(p){if(i){let h=S(p,i?.fields);return i?.handleValidation(h)}return null}t(z,"handleValidation");function x(){c()}return t(x,"back"),{stepState:m,fields:i?.fields||[],isLoading:y||q,isError:V||L,error:f||T,isSubmitting:g.isPending||F.isPending,initialValues:k,values:e,handleValidation:z,checkFieldUpdates:u,onSubmit:O,back:x}},"useContractAmendment");export{ae as a};
|
|
2
|
+
//# sourceMappingURL=chunk-SX5W3CBP.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as q}from"./chunk-5BY6PFC4.js";import{a as A,b as v,c as k,e as T}from"./chunk-MC6FNME3.js";import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as q}from"./chunk-5BY6PFC4.js";import{a as L}from"./chunk-UPRUP24B.js";import{a as A,b as v,c as k,e as T}from"./chunk-MC6FNME3.js";import{a as x}from"./chunk-CFIJKJXD.js";import{c as g}from"./chunk-CNYSTJVL.js";import{a as o}from"./chunk-P37U34EQ.js";import{object as ce}from"yup";import{createHeadlessForm as ie,modify as ne}from"@remoteoss/json-schema-form";import{useMemo as se,useState as P}from"react";import{string as G,ValidationError as U}from"yup";import{jsx as le}from"react/jsx-runtime";var j={title:"Estimation",includeBenefits:!1,includeCostBreakdowns:!1,includePremiumBenefits:!1,enableCurrencyConversion:!1},ae=o(t=>{let{schema:i}=ne(L.data.schema,t?.jsfModify||{});return ie(i)},"useStaticSchema"),be=o(({defaultRegion:t,estimationOptions:i,options:n,version:l}={estimationOptions:j})=>{let[p,m]=P(t),[f,M]=P(),[B,I]=P(),{data:C,isLoading:N}=A({includePremiumBenefits:i.includePremiumBenefits}),{data:E,isLoading:z}=v(),D=p||f?.value,{data:S,isLoading:K}=T(D,{includePremiumBenefits:i.includePremiumBenefits,options:n}),w=k(),O=f?.currency,c=n?.jsfModify?.fields?.salary,y=c&&typeof c=="object"&&"presentation"in c?c.presentation:void 0,Q=se(()=>({fields:{salary:{...c,presentation:{salary_conversion_properties:{label:y?.salary_conversion_properties?.label,description:y?.salary_conversion_properties?.description},currencies:{from:O,to:B},Component:o(e=>le(q,{...e}),"Component")}}}}),[O,B,c,y?.salary_conversion_properties?.description,y?.salary_conversion_properties?.label]),u=ae({jsfModify:{fields:{...n?.jsfModify?.fields,...Q?.fields}}});async function W(e){try{await b.validate(e,{abortEarly:!1})}catch(r){return{data:null,error:r}}return new Promise((r,s)=>{w.mutate(H(e,i,l),{onSuccess:o(a=>{a.data?r({data:a.data,error:null}):r({data:null,error:new Error("Something went wrong. Please try again later.")})},"onSuccess"),onError:o(a=>{s({data:null,error:a})},"onError")})})}o(W,"onSubmit");function X(e){let r=C?.find(({value:s})=>s===e);r&&r.childRegions.length===0&&r.hasAdditionalFields?m(r.regionSlug):m(void 0),M(r)}o(X,"onCountryChange");function Y(e){m(e)}o(Y,"onRegionChange");function Z(e){let r=E?.find(s=>s.value===e)?.label;I(r)}o(Z,"onChangeCurrency");let d=u.fields.find(e=>e.name==="region");if(d){let e=f?.childRegions.map(r=>({value:r.slug,label:r.name}))??[];d.options=e,d.isVisible=e.length>0,d.required=e.length>0,d.onChange=Y,d.schema=e.length>0?G().transform(r=>typeof r=="string"?r:"").required("Region is required"):G()}if(E){let e=u.fields.find(r=>r.name==="currency");e&&(e.options=E,e.onChange=Z)}if(C){let e=u.fields.find(r=>r.name==="country");e&&(e.options=C,e.onChange=X)}let ee=o(()=>{M(void 0),m(t)},"resetForm"),J=[...u.fields,...S?.fields||[]],b=$(u.fields);async function re(e){let r=null,s=g(e,J);try{await b.validate(s,{abortEarly:!1}),r={formErrors:{},yupError:new U([],e)}}catch(F){let V=x(F);r={formErrors:Object.entries(V).reduce((R,[te,oe])=>({...R,[te]:oe.message}),{}),yupError:F}}let a=S?.handleValidation(s),h=[...r?.yupError.inner||[],...a?.yupError?.inner||[]],_={...r?.yupError?.value||{},...a?.yupError?.value||{}};return{formErrors:{...r?.formErrors||{},...a?.formErrors||{}},yupError:new U(h,_)}}return o(re,"handleValidation"),{stepState:{current:0,total:1,isLastStep:!0},fields:J,validationSchema:b,parseFormValues:o(e=>{let{country:r,region:s,salary:a,currency:h,..._}=e,V=g({country:r,region:s,salary:a,currency:h},u.fields),R=g(_,S?.fields||[]);return{...V,...R}},"parseFormValues"),handleValidation:re,isSubmitting:w.isPending,isLoading:N&&z&&K,onSubmit:W,resetForm:ee}},"useCostCalculator");function $(t){let i=t.reduce((n,l)=>(n[l.name]=l.schema,n),{});return ce(i)}o($,"buildValidationSchema");function ue(t){let i="benefit-";return Object.keys(t).reduce((n,l)=>{let p=t[l];if(p==="none")return n;let f={benefit_group_slug:l.replace(i,""),benefit_tier_slug:p};return[...n,f]},[])}o(ue,"formatBenefits");function H(t,i=j,n="standard"){return{employer_currency_slug:t.currency,include_benefits:i.includeBenefits,include_cost_breakdowns:i.includeCostBreakdowns,include_premium_benefits:i.includePremiumBenefits,employments:[{region_slug:t.region||t.country,annual_gross_salary_in_employer_currency:t.salary,employment_term:t.contract_duration_type??"fixed",title:i.title,age:t.age??void 0,...t.benefits&&{benefits:ue(t.benefits)},...n==="standard"&&{annual_gross_salary:t.salary}}]}}o(H,"buildPayload");export{$ as a,H as b,j as c,be as d};
|
|
2
|
+
//# sourceMappingURL=chunk-T3J35IOL.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-EKHD3NLQ.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-TE4ZKXEX.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as c}from"./chunk-KSHK3ZPX.js";import{a as C}from"./chunk-3BKQNKPF.js";import{g as n}from"./chunk-RPEWAKDI.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as F}from"react";import{jsx as l}from"react/jsx-runtime";function P({onSubmit:f,onError:d,onSuccess:p,shouldResetForm:i,resetFields:s}){let{form:o,formId:E,costCalculatorBag:t}=c(),{formState:{isSubmitSuccessful:e}}=o;F(()=>{if(e&&i){t?.resetForm(),o.reset();return}if(e&&s){let a={...o.getValues()};s.forEach(r=>{a[r]=""}),t?.resetForm(),o.reset(a)}},[e,o,i,t,s]);let S=m(async u=>{let a=t?.parseFormValues(u),r=await t?.onSubmit(a);await f?.(a),r?.error?d?.(r.error):r?.data&&await p?.(r?.data)},"handleSubmit");return l(n,{...o,children:l("form",{id:E,onSubmit:o.handleSubmit(S),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:l(C,{fields:t?.fields??[]})})})}m(P,"CostCalculatorForm");export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TSPRBSWT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/CostCalculator/CostCalculatorForm.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { CostCalculatorEstimateResponse } from '@/src/client';\nimport { JSONSchemaFormFields } from '@/src/components/form/JSONSchemaForm';\nimport { Form } from '@/src/components/ui/form';\nimport { useCostCalculatorContext } from '@/src/flows/CostCalculator/context';\nimport { EstimationError } from '@/src/flows/CostCalculator/hooks';\nimport {\n CostCalculatorEstimationFormValues,\n CostCalculatorEstimationSubmitValues,\n} from '@/src/flows/CostCalculator/types';\n\ntype CostCalculatorFormProps = Partial<{\n /**\n * Callback function that handles form submission. When form is submit, the form values are sent to the consumer app before behind submitted to Remote.\n * @param data - The payload sent to the /cost-calculator/estimation endpoint.\n */\n onSubmit: (\n data: CostCalculatorEstimationSubmitValues,\n ) => Promise<void> | void;\n /**\n * Callback function to handle the success when the estimation succeeds. The CostCalculatorEstimateResponse is sent back to you.\n * @param data - The response data from the /cost-calculator/estimation endpoint.\n */\n onSuccess: (data: CostCalculatorEstimateResponse) => Promise<void> | void;\n /**\n * Callback function to handle the error when the estimation fails.\n * @param error - The error object.\n */\n onError: (error: EstimationError) => void;\n /**\n * Whether to reset the form when the form is successfully submitted.\n */\n shouldResetForm?: boolean;\n\n /**\n * Fields to reset when the form is successfully submitted.\n */\n resetFields?: ('country' | 'currency' | 'salary')[];\n}>;\n\nexport function CostCalculatorForm({\n onSubmit,\n onError,\n onSuccess,\n shouldResetForm,\n resetFields,\n}: CostCalculatorFormProps) {\n const { form, formId, costCalculatorBag } = useCostCalculatorContext();\n\n const {\n formState: { isSubmitSuccessful },\n } = form;\n\n useEffect(() => {\n // resets the entire form if the form is successfully submitted and the shouldResetForm prop is true\n if (isSubmitSuccessful && shouldResetForm) {\n costCalculatorBag?.resetForm();\n form.reset();\n return;\n }\n\n // resets the specified fields if the form is successfully submitted and the resetFields prop is provided\n if (isSubmitSuccessful && resetFields) {\n // Reset only the specified fields\n const currentValues = form.getValues();\n const resetValues = { ...currentValues };\n resetFields.forEach((field) => {\n resetValues[field] = '';\n });\n\n costCalculatorBag?.resetForm();\n form.reset(resetValues);\n }\n }, [\n isSubmitSuccessful,\n form,\n shouldResetForm,\n costCalculatorBag,\n resetFields,\n ]);\n\n const handleSubmit = async (values: CostCalculatorEstimationFormValues) => {\n const cleanedValues = costCalculatorBag?.parseFormValues(\n values,\n ) as CostCalculatorEstimationSubmitValues;\n const costCalculatorResults =\n await costCalculatorBag?.onSubmit(cleanedValues);\n\n await onSubmit?.(cleanedValues);\n\n if (costCalculatorResults?.error) {\n onError?.(costCalculatorResults.error);\n } else if (costCalculatorResults?.data) {\n await onSuccess?.(costCalculatorResults?.data);\n }\n };\n\n return (\n <Form {...form}>\n <form\n id={formId}\n onSubmit={form.handleSubmit(handleSubmit)}\n className=\"space-y-4 RemoteFlows__CostCalculatorForm\"\n >\n <JSONSchemaFormFields fields={costCalculatorBag?.fields ?? []} />\n </form>\n </Form>\n );\n}\n"],"mappings":"gKAAA,OAAS,aAAAA,MAAiB,QAwGlB,cAAAC,MAAA,oBAhED,SAASC,EAAmB,CACjC,SAAAC,EACA,QAAAC,EACA,UAAAC,EACA,gBAAAC,EACA,YAAAC,CACF,EAA4B,CAC1B,GAAM,CAAE,KAAAC,EAAM,OAAAC,EAAQ,kBAAAC,CAAkB,EAAIC,EAAyB,EAE/D,CACJ,UAAW,CAAE,mBAAAC,CAAmB,CAClC,EAAIJ,EAEJK,EAAU,IAAM,CAEd,GAAID,GAAsBN,EAAiB,CACzCI,GAAmB,UAAU,EAC7BF,EAAK,MAAM,EACX,MACF,CAGA,GAAII,GAAsBL,EAAa,CAGrC,IAAMO,EAAc,CAAE,GADAN,EAAK,UAAU,CACE,EACvCD,EAAY,QAASQ,GAAU,CAC7BD,EAAYC,CAAK,EAAI,EACvB,CAAC,EAEDL,GAAmB,UAAU,EAC7BF,EAAK,MAAMM,CAAW,CACxB,CACF,EAAG,CACDF,EACAJ,EACAF,EACAI,EACAH,CACF,CAAC,EAED,IAAMS,EAAeC,EAAA,MAAOC,GAA+C,CACzE,IAAMC,EAAgBT,GAAmB,gBACvCQ,CACF,EACME,EACJ,MAAMV,GAAmB,SAASS,CAAa,EAEjD,MAAMhB,IAAWgB,CAAa,EAE1BC,GAAuB,MACzBhB,IAAUgB,EAAsB,KAAK,EAC5BA,GAAuB,MAChC,MAAMf,IAAYe,GAAuB,IAAI,CAEjD,EAdqB,gBAgBrB,OACEnB,EAACoB,EAAA,CAAM,GAAGb,EACR,SAAAP,EAAC,QACC,GAAIQ,EACJ,SAAUD,EAAK,aAAaQ,CAAY,EACxC,UAAU,4CAEV,SAAAf,EAACqB,EAAA,CAAqB,OAAQZ,GAAmB,QAAU,CAAC,EAAG,EACjE,EACF,CAEJ,CApEgBO,EAAAf,EAAA","names":["useEffect","jsx","CostCalculatorForm","onSubmit","onError","onSuccess","shouldResetForm","resetFields","form","formId","costCalculatorBag","useCostCalculatorContext","isSubmitSuccessful","useEffect","resetValues","field","handleSubmit","__name","values","cleanedValues","costCalculatorResults","Form","JSONSchemaFormFields"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-TIHZZ6IF.js";import{a as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-TIHZZ6IF.js";import{a as c}from"./chunk-SX5W3CBP.js";import{a as e}from"./chunk-J3ZV4EJ5.js";import{a as m}from"./chunk-LXJSI33T.js";import{a as r}from"./chunk-J55HQBYO.js";import{a as o}from"./chunk-TVZAFTPT.js";import{a as n}from"./chunk-P37U34EQ.js";import{useId as f}from"react";import{jsx as s}from"react/jsx-runtime";function k({employmentId:d,countryCode:C,options:p,render:A}){let t=c({employmentId:d,countryCode:C,options:p}),i=f();return s(o.Provider,{value:{formId:i,contractAmendmentBag:t},children:A({contractAmendmentBag:t,components:{Form:r,SubmitButton:a,ConfirmationForm:m,BackButton:e}})})}n(k,"ContractAmendmentFlow");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VT4S2JOL.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-EKHD3NLQ.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as p}from"react/jsx-runtime";function F({requesterName:n,onSubmit:s,onSuccess:m,onError:d}){let{terminationBag:e}=a(),l=i(async o=>{await s?.(e?.parseFormValues(o));let r=await e?.onSubmit(o);r?.error?d?.(r.error):r?.data&&await m?.(r.data)},"handleSubmit"),u=e?.fields.map(o=>o.name==="acknowledge_termination_procedure"?{...o,label:o.label.replace("{{requesterName}}",n)}:o);return p(t,{fields:u,onSubmit:l})}i(F,"AdditionalDetailsForm");export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WRARRDYR.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as p}from"./chunk-YWU2A6GV.js";import{a as i}from"./chunk-JTC54RNC.js";import{a as S}from"./chunk-Z7WBY27D.js";import{a as c}from"./chunk-7TOZZQQJ.js";import{a as m}from"./chunk-ZVVQQE75.js";import{a as r}from"./chunk-B2ZLKK2H.js";import{a as f}from"./chunk-AJW7JSE4.js";import{a as s}from"./chunk-D4YFWZ2F.js";import{a}from"./chunk-WT3QZR6I.js";import{a as n}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-6XNYQUGM.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as w,useState as C}from"react";import{jsx as R}from"react/jsx-runtime";var H=t(({employmentId:d,companyId:b,countryCode:u,type:g="employee",skipSteps:B,render:l,options:v})=>{let O=w(),o=e({companyId:b,countryCode:u,employmentId:d,type:g,options:v,skipSteps:B}),[y,I]=C({showReserveInvoice:!1,showInviteSuccessful:!1});return R(n.Provider,{value:{formId:O,onboardingBag:o,creditScore:y,setCreditScore:I},children:l({onboardingBag:o,components:{BasicInformationStep:r,ContractDetailsStep:s,BenefitsStep:f,SubmitButton:i,SaveDraftButton:c,BackButton:a,OnboardingInvite:p,SelectCountryStep:m,ReviewStep:S}})})},"OnboardingFlow");export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YAWZZ53R.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-ZWXPOAIV.js";import{b as i}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:s,onSuccess:c,onError:t}){let{onboardingBag:o}=i(),u=e(async n=>{try{await s?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await c?.(r?.data),o?.next();return}r?.error&&t?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(a,{defaultValues:l,onSubmit:u})}e(y,"SelectCountryStep");export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZVVQQE75.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./chunk-PGWKJ6FK.js";import{b as y}from"./chunk-QW4JPW6J.js";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b}from"./chunk-PGWKJ6FK.js";import{b as y}from"./chunk-QW4JPW6J.js";import{a as u}from"./chunk-3BKQNKPF.js";import{b as f}from"./chunk-CFIJKJXD.js";import{f as p,g as F}from"./chunk-RPEWAKDI.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-ZWXPOAIV.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-DSJsKiNm.js';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
|
|
5
5
|
type ContractAmendmentConfirmationFormProps = {
|
|
@@ -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-DSJsKiNm.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-VT4S2JOL.js";import"../../chunk-TIHZZ6IF.js";import"../../chunk-SX5W3CBP.js";import"../../chunk-VTNGEN34.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-Z4FTX74F.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-J3ZV4EJ5.js";import"../../chunk-LXJSI33T.js";import"../../chunk-J55HQBYO.js";import"../../chunk-3BKQNKPF.js";import"../../chunk-77WJVEKH.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-6ZNJ5WMX.js";import"../../chunk-CAM6PYKR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-RPEWAKDI.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-FBBUL6AE.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-DSJsKiNm.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-J55HQBYO.js";import"../../chunk-3BKQNKPF.js";import"../../chunk-77WJVEKH.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-6ZNJ5WMX.js";import"../../chunk-CAM6PYKR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-RPEWAKDI.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-FBBUL6AE.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentForm.js.map
|
|
@@ -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-DSJsKiNm.js';
|
|
3
3
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import '../../remoteFlows-B-p1H61n.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-DSJsKiNm.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-SX5W3CBP.js";import"../../chunk-VTNGEN34.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-Z4FTX74F.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-CNYSTJVL.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-DSJsKiNm.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-VT4S2JOL.js";import{a as c}from"../../chunk-TIHZZ6IF.js";import{a as d}from"../../chunk-SX5W3CBP.js";import"../../chunk-VTNGEN34.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-Z4FTX74F.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-J3ZV4EJ5.js";import{a}from"../../chunk-LXJSI33T.js";import{a as b}from"../../chunk-J55HQBYO.js";import"../../chunk-3BKQNKPF.js";import"../../chunk-77WJVEKH.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-6ZNJ5WMX.js";import"../../chunk-CAM6PYKR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-RPEWAKDI.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-FBBUL6AE.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
|
|
@@ -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-DSJsKiNm.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-LDMCBDDN.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-T3J35IOL.js";import"../../chunk-5BY6PFC4.js";import"../../chunk-UPRUP24B.js";import"../../chunk-X62SCMVA.js";import"../../chunk-MOUO52OS.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-MC6FNME3.js";import"../../chunk-PWUYHFON.js";import"../../chunk-276MJCIE.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-6ZNJ5WMX.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-RPEWAKDI.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-FBBUL6AE.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 {
|
|
2
|
+
import { c as CostCalculatorEstimateResponse } from '../../types.gen-DSJsKiNm.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-TSPRBSWT.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-3BKQNKPF.js";import"../../chunk-77WJVEKH.js";import"../../chunk-6ZNJ5WMX.js";import"../../chunk-CAM6PYKR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-RPEWAKDI.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-FBBUL6AE.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorForm};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorForm.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { c as CostCalculatorEstimateResponse } from '../../../types.gen-DSJsKiNm.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-E3RHKRLZ.js";import"../../../chunk-QM2ADK6C.js";import"../../../chunk-FUIAABQ6.js";import"../../../chunk-INS7FVGA.js";import"../../../chunk-ILMVHOL2.js";import"../../../chunk-FL5V45BK.js";import"../../../chunk-JQOEHEGL.js";import"../../../chunk-ZVMBZK3H.js";import"../../../chunk-WRZ6WHH7.js";import"../../../chunk-7NN4M5P2.js";import"../../../chunk-77WJVEKH.js";import"../../../chunk-CAM6PYKR.js";import"../../../chunk-FBBUL6AE.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorResults};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorResults.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 {
|
|
3
|
+
import { d as CostCalculatorEstimatePdfResponse, e as PostCreateEstimationPdfError, f as CostCalculatorEstimateParams, M as MinimalRegion, c as CostCalculatorEstimateResponse, g as PostCreateEstimationError } from '../../types.gen-DSJsKiNm.js';
|
|
4
4
|
import { CostCalculatorEstimationOptions } from './types.js';
|
|
5
5
|
import { JSFModify } from '../types.js';
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ 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 {
|
|
5
|
+
import { c as CostCalculatorEstimateResponse } from '../../types.gen-DSJsKiNm.js';
|
|
6
6
|
import { $ as $TSFixMe } from '../../remoteFlows-B-p1H61n.js';
|
|
7
7
|
import * as yup from 'yup';
|
|
8
8
|
import { UseFormReturn } from 'react-hook-form';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
import { ValidationError } from 'yup';
|
|
3
|
-
import {
|
|
3
|
+
import { c as CostCalculatorEstimateResponse, g as PostCreateEstimationError } from '../../types.gen-DSJsKiNm.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-T3J35IOL.js";import"../../chunk-5BY6PFC4.js";import"../../chunk-UPRUP24B.js";import"../../chunk-X62SCMVA.js";import"../../chunk-MOUO52OS.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-MC6FNME3.js";import"../../chunk-PWUYHFON.js";import"../../chunk-276MJCIE.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-6ZNJ5WMX.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-RPEWAKDI.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-FBBUL6AE.js";import"../../chunk-P37U34EQ.js";export{a as defaultEstimationOptions,b as useCostCalculator};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -10,7 +10,7 @@ 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-DSJsKiNm.js';
|
|
14
14
|
import '../types.js';
|
|
15
15
|
import '@remoteoss/json-schema-form';
|
|
16
16
|
import 'react';
|
|
@@ -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-E3RHKRLZ.js";import"../../chunk-QM2ADK6C.js";import"../../chunk-FUIAABQ6.js";import"../../chunk-INS7FVGA.js";import"../../chunk-ILMVHOL2.js";import"../../chunk-FL5V45BK.js";import"../../chunk-JQOEHEGL.js";import"../../chunk-ZVMBZK3H.js";import"../../chunk-WRZ6WHH7.js";import"../../chunk-7NN4M5P2.js";import{a as e}from"../../chunk-TSPRBSWT.js";import{a as g}from"../../chunk-55OFDAIV.js";import{a as f}from"../../chunk-HP4SYBET.js";import{a as i}from"../../chunk-XJDGWTCQ.js";import{a as h}from"../../chunk-DYB3RWP7.js";import{a as d}from"../../chunk-LDMCBDDN.js";import"../../chunk-KSHK3ZPX.js";import{b as a,d as c}from"../../chunk-T3J35IOL.js";import"../../chunk-5BY6PFC4.js";import"../../chunk-UPRUP24B.js";import"../../chunk-X62SCMVA.js";import"../../chunk-MOUO52OS.js";import"../../chunk-WVJDCDGZ.js";import{d as b}from"../../chunk-MC6FNME3.js";import"../../chunk-PWUYHFON.js";import"../../chunk-276MJCIE.js";import"../../chunk-3BKQNKPF.js";import"../../chunk-77WJVEKH.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-6ZNJ5WMX.js";import"../../chunk-CAM6PYKR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-RPEWAKDI.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-FBBUL6AE.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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as CostCalculatorEstimateParams } from '../../types.gen-DSJsKiNm.js';
|
|
2
2
|
import { $ as $TSFixMe } from '../../remoteFlows-B-p1H61n.js';
|
|
3
3
|
import { AnyObjectSchema } from 'yup';
|
|
4
4
|
import { CostCalculatorVersion } from './hooks.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-T3J35IOL.js";import"../../chunk-5BY6PFC4.js";import"../../chunk-UPRUP24B.js";import"../../chunk-X62SCMVA.js";import"../../chunk-MOUO52OS.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-MC6FNME3.js";import"../../chunk-PWUYHFON.js";import"../../chunk-276MJCIE.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-6ZNJ5WMX.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-RPEWAKDI.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-FBBUL6AE.js";import"../../chunk-P37U34EQ.js";export{b as buildPayload,a as buildValidationSchema};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
@@ -12,7 +12,7 @@ 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-DSJsKiNm.js';
|
|
16
16
|
import '../../mutations-B6HWH-rZ.js';
|
|
17
17
|
import '@remoteoss/json-schema-form';
|
|
18
18
|
import '../useStepState.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-YAWZZ53R.js";import"../../chunk-YWU2A6GV.js";import"../../chunk-JTC54RNC.js";import"../../chunk-Z7WBY27D.js";import"../../chunk-7TOZZQQJ.js";import"../../chunk-ZVVQQE75.js";import"../../chunk-B2ZLKK2H.js";import"../../chunk-AJW7JSE4.js";import"../../chunk-D4YFWZ2F.js";import"../../chunk-WT3QZR6I.js";import"../../chunk-ZWXPOAIV.js";import"../../chunk-PGWKJ6FK.js";import"../../chunk-6XNYQUGM.js";import"../../chunk-HNPRVZMO.js";import"../../chunk-2A5R3YN2.js";import"../../chunk-F66G33YT.js";import"../../chunk-X62SCMVA.js";import"../../chunk-MOUO52OS.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-PWUYHFON.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-3BKQNKPF.js";import"../../chunk-77WJVEKH.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-6ZNJ5WMX.js";import"../../chunk-CAM6PYKR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-RPEWAKDI.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-FBBUL6AE.js";import"../../chunk-P37U34EQ.js";export{a as OnboardingFlow};
|
|
2
2
|
//# sourceMappingURL=OnboardingFlow.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 {
|
|
3
|
+
import { i as Employment, j as Company, S as SuccessResponse, k as PostInviteEmploymentInvitationError, l as PostCreateRiskReserveError, m as EmploymentCreationResponse, n as PostCreateEmployment2Error, o as EmploymentCreateParams, p as EmploymentResponse, q as PatchUpdateEmployment2Error, r as EmploymentFullParams, s as PutUpdateBenefitOfferError, U as UnifiedEmploymentUpsertBenefitOffersRequest, t as MagicLinkResponse, u as UnprocessableEntityResponse, v as MagicLinkParams, w as ConvertCurrencyResponse, x as PostConvertCurrencyConverterError, y as ConvertCurrencyParams, z as PostCreateContractEligibilityError, A as CreateContractEligibilityParams } from '../../types.gen-DSJsKiNm.js';
|
|
4
4
|
import { OnboardingFlowParams } from './types.js';
|
|
5
5
|
import { JSONSchemaFormType, FlowOptions } from '../types.js';
|
|
6
6
|
import { J as JSFFieldset } from '../../remoteFlows-B-p1H61n.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { BasicInformationFormPayload } from '../types.js';
|
|
3
|
-
import {
|
|
3
|
+
import { m as EmploymentCreationResponse } from '../../../types.gen-DSJsKiNm.js';
|
|
4
4
|
import { N as NormalizedFieldError } from '../../../mutations-B6HWH-rZ.js';
|
|
5
5
|
import '../../types.js';
|
|
6
6
|
import '@remoteoss/json-schema-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-B2ZLKK2H.js";import"../../../chunk-ZWXPOAIV.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-3BKQNKPF.js";import"../../../chunk-77WJVEKH.js";import"../../../chunk-CFIJKJXD.js";import"../../../chunk-6ZNJ5WMX.js";import"../../../chunk-CAM6PYKR.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-RPEWAKDI.js";import"../../../chunk-CNYSTJVL.js";import"../../../chunk-FBBUL6AE.js";import"../../../chunk-P37U34EQ.js";export{a as BasicInformationStep};
|
|
2
2
|
//# sourceMappingURL=BasicInformationStep.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { C as Components } from '../../../remoteFlows-B-p1H61n.js';
|
|
3
|
-
import { S as SuccessResponse } from '../../../types.gen-
|
|
3
|
+
import { S as SuccessResponse } from '../../../types.gen-DSJsKiNm.js';
|
|
4
4
|
import { BenefitsFormPayload } from '../types.js';
|
|
5
5
|
import { N as NormalizedFieldError } from '../../../mutations-B6HWH-rZ.js';
|
|
6
6
|
import 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-AJW7JSE4.js";import"../../../chunk-ZWXPOAIV.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-3BKQNKPF.js";import"../../../chunk-77WJVEKH.js";import"../../../chunk-CFIJKJXD.js";import"../../../chunk-6ZNJ5WMX.js";import"../../../chunk-CAM6PYKR.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-RPEWAKDI.js";import"../../../chunk-CNYSTJVL.js";import"../../../chunk-FBBUL6AE.js";import"../../../chunk-P37U34EQ.js";export{a as BenefitsStep};
|
|
2
2
|
//# sourceMappingURL=BenefitsStep.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { p as EmploymentResponse } from '../../../types.gen-DSJsKiNm.js';
|
|
3
3
|
import { ContractDetailsFormPayload } from '../types.js';
|
|
4
4
|
import { N as NormalizedFieldError } from '../../../mutations-B6HWH-rZ.js';
|
|
5
5
|
import '../../types.js';
|