@remoteoss/remote-flows 0.13.0 → 0.15.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/dist/{chunk-4OKR4SU7.js → chunk-4R3ITKOA.js} +2 -2
- package/dist/{chunk-56JXUCOX.js → chunk-6NKUEDYP.js} +2 -2
- package/dist/{chunk-DXABU6DZ.js → chunk-776QJKX5.js} +2 -2
- package/dist/{chunk-J4GIUQ4E.js → chunk-C4RJTN2F.js} +2 -2
- package/dist/{chunk-QDYQEQ3C.js → chunk-DSTM5RRQ.js} +2 -2
- package/dist/{chunk-47VYBPE2.js → chunk-DTGFQMCE.js} +2 -2
- package/dist/{chunk-47VYBPE2.js.map → chunk-DTGFQMCE.js.map} +1 -1
- package/dist/{chunk-RXVVLN7R.js → chunk-GNXVMZY7.js} +2 -2
- package/dist/{chunk-HH6GIAMX.js → chunk-H4KE45NG.js} +2 -2
- package/dist/{chunk-OPCY3UYH.js → chunk-HAL2L237.js} +2 -2
- package/dist/chunk-HBQDXOAG.js +2 -0
- package/dist/{chunk-4XFRZVAL.js.map → chunk-HBQDXOAG.js.map} +1 -1
- package/dist/chunk-HQI6W7PR.js +2 -0
- package/dist/chunk-HQI6W7PR.js.map +1 -0
- package/dist/chunk-HSIQ2OHT.js +2 -0
- package/dist/chunk-HSIQ2OHT.js.map +1 -0
- package/dist/{chunk-FH3NC6AK.js → chunk-I2A4EFDY.js} +2 -2
- package/dist/{chunk-5EDFVFNU.js → chunk-JQDP6SAT.js} +2 -2
- package/dist/{chunk-RJRLHA3V.js → chunk-JUGNVM2R.js} +2 -2
- package/dist/{chunk-NH4EITYM.js → chunk-KOPJY6WW.js} +2 -2
- package/dist/chunk-LBUNJ5J3.js +2 -0
- package/dist/chunk-LBUNJ5J3.js.map +1 -0
- package/dist/{chunk-UPE5ZMB5.js → chunk-MLB2I27G.js} +2 -2
- package/dist/chunk-N5I33LIN.js +2 -0
- package/dist/chunk-N5I33LIN.js.map +1 -0
- package/dist/{chunk-ARKAW4ZP.js → chunk-O4F6PGGV.js} +2 -2
- package/dist/{chunk-LUG32IOD.js → chunk-OC7VOBB4.js} +2 -2
- package/dist/chunk-SIUODCGO.js +2 -0
- package/dist/chunk-SIUODCGO.js.map +1 -0
- package/dist/chunk-V2YORDAL.js +2 -0
- package/dist/chunk-V2YORDAL.js.map +1 -0
- package/dist/{chunk-NQCSU6FR.js → chunk-ZZOY6KD4.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/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +2 -2
- package/dist/flows/ContractAmendment/hooks.d.ts +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +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 +5 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +3 -2
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.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/SummaryResults/SummaryResults.d.ts +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 +3 -2
- 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 +3 -3
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- 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 +3 -2
- 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 +3 -3
- 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 +3 -3
- 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/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/EmployeeComunicationForm.d.ts +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +1 -1
- package/dist/flows/Termination/TimeOff.d.ts +1 -1
- package/dist/flows/Termination/context.d.ts +2 -2
- package/dist/flows/Termination/hooks.d.ts +1 -1
- package/dist/flows/Termination/index.d.ts +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 +8 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +4 -1
- package/dist/internals.js +1 -1
- package/dist/internals.js.map +1 -1
- package/dist/{remoteFlows-Zmw9pCN3.d.ts → remoteFlows-Clat4nYN.d.ts} +13 -2
- package/dist/{types.gen-_c0f1E7h.d.ts → types.gen-C9Y1S1pc.d.ts} +22 -1
- package/package.json +2 -2
- package/dist/chunk-4XFRZVAL.js +0 -2
- package/dist/chunk-5E44DBDD.js +0 -2
- package/dist/chunk-5E44DBDD.js.map +0 -1
- package/dist/chunk-5JT5MWOK.js +0 -2
- package/dist/chunk-5JT5MWOK.js.map +0 -1
- package/dist/chunk-DL5PZWF7.js +0 -2
- package/dist/chunk-DL5PZWF7.js.map +0 -1
- package/dist/chunk-GKT5UHG4.js +0 -2
- package/dist/chunk-GKT5UHG4.js.map +0 -1
- package/dist/chunk-U4YEXSAO.js +0 -2
- package/dist/chunk-U4YEXSAO.js.map +0 -1
- /package/dist/{chunk-4OKR4SU7.js.map → chunk-4R3ITKOA.js.map} +0 -0
- /package/dist/{chunk-56JXUCOX.js.map → chunk-6NKUEDYP.js.map} +0 -0
- /package/dist/{chunk-DXABU6DZ.js.map → chunk-776QJKX5.js.map} +0 -0
- /package/dist/{chunk-J4GIUQ4E.js.map → chunk-C4RJTN2F.js.map} +0 -0
- /package/dist/{chunk-QDYQEQ3C.js.map → chunk-DSTM5RRQ.js.map} +0 -0
- /package/dist/{chunk-RXVVLN7R.js.map → chunk-GNXVMZY7.js.map} +0 -0
- /package/dist/{chunk-HH6GIAMX.js.map → chunk-H4KE45NG.js.map} +0 -0
- /package/dist/{chunk-OPCY3UYH.js.map → chunk-HAL2L237.js.map} +0 -0
- /package/dist/{chunk-FH3NC6AK.js.map → chunk-I2A4EFDY.js.map} +0 -0
- /package/dist/{chunk-5EDFVFNU.js.map → chunk-JQDP6SAT.js.map} +0 -0
- /package/dist/{chunk-RJRLHA3V.js.map → chunk-JUGNVM2R.js.map} +0 -0
- /package/dist/{chunk-NH4EITYM.js.map → chunk-KOPJY6WW.js.map} +0 -0
- /package/dist/{chunk-UPE5ZMB5.js.map → chunk-MLB2I27G.js.map} +0 -0
- /package/dist/{chunk-ARKAW4ZP.js.map → chunk-O4F6PGGV.js.map} +0 -0
- /package/dist/{chunk-LUG32IOD.js.map → chunk-OC7VOBB4.js.map} +0 -0
- /package/dist/{chunk-NQCSU6FR.js.map → chunk-ZZOY6KD4.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/ui/scroll-area.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\n\nimport { cn } from '@/src/lib/utils';\n\nconst ScrollArea = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn('relative overflow-hidden', className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport className='h-full w-full rounded-[inherit]'>\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n));\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = 'vertical', ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n 'flex touch-none select-none transition-colors',\n orientation === 'vertical' &&\n 'h-full w-2.5 border-l border-l-transparent p-[1px]',\n orientation === 'horizontal' &&\n 'h-2.5 flex-col border-t border-t-transparent p-[1px]',\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className='relative flex-1 rounded-full bg-border' />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\n"],"mappings":"wCAAA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAQnC,OAKE,OAAAC,EALF,QAAAC,MAAA,oBAJF,IAAMC,EAAmB,aAGvB,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IACpCL,EAAqB,OAApB,CACC,IAAKK,EACL,UAAWC,EAAG,2BAA4BJ,CAAS,EAClD,GAAGE,EAEJ,UAAAL,EAAqB,WAApB,CAA6B,UAAU,kCACrC,SAAAI,EACH,EACAJ,EAACQ,EAAA,EAAU,EACXR,EAAqB,SAApB,EAA2B,GAC9B,CACD,EACDE,EAAW,YAAkC,OAAK,YAElD,IAAMM,EAAkB,aAGtB,CAAC,CAAE,UAAAL,EAAW,YAAAM,EAAc,WAAY,GAAGJ,CAAM,EAAGC,IACpDN,EAAqB,sBAApB,CACC,IAAKM,EACL,YAAaG,EACb,UAAWF,EACT,gDACAE,IAAgB,YACd,qDACFA,IAAgB,cACd,uDACFN,CACF,EACC,GAAGE,EAEJ,SAAAL,EAAqB,kBAApB,CAAoC,UAAU,yCAAyC,EAC1F,CACD,EACDQ,EAAU,YAAkC,sBAAoB","names":["React","ScrollAreaPrimitive","jsx","jsxs","ScrollArea","className","children","props","ref","cn","ScrollBar","orientation"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-E5YN6OT3.js";import{a as v}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-E5YN6OT3.js";import{a as v}from"./chunk-H4KE45NG.js";import{a as B}from"./chunk-6NKUEDYP.js";import{a as N}from"./chunk-I2A4EFDY.js";import{a as R}from"./chunk-4R3ITKOA.js";import{a as P}from"./chunk-NVMZDPMF.js";import{a as x,b as k,c as i}from"./chunk-CRXPRR3R.js";import{a as h,b as p,c as g,d as w,e as T}from"./chunk-UHS3QRA3.js";import{b as f}from"./chunk-GP237GUO.js";import{a as b}from"./chunk-3LOVCTCN.js";import{a as _}from"./chunk-P37U34EQ.js";import{lazy as L,useState as V}from"react";import{Fragment as I,jsx as a,jsxs as r}from"react/jsx-runtime";var z=L(()=>import("./flows/CostCalculator/Results/CostCalculatorResultsChart.js"));function Y({employmentData:D,options:e}){let[o,E]=V("monthly"),n=D.employments?.[0];if(!n)return null;let t=n.employer_currency_costs,s=t.currency.symbol,m=o==="monthly"?t.monthly_gross_salary:t.annual_gross_salary,u=o==="monthly"?t.monthly_benefits_total:t.annual_benefits_total,y=o==="monthly"?t.monthly_contributions_total:t.annual_contributions_total,F=o==="monthly"?t.monthly_total:t.annual_total,l=o==="monthly"?null:t.extra_statutory_payments_breakdown,A=o==="monthly"?null:t.extra_statutory_payments_total,d=o==="monthly"?t.monthly_indirect_tax:t.annual_indirect_tax,c=o==="monthly"?t.monthly_benefits_breakdown:t.annual_benefits_breakdown,H=o==="monthly"?t.monthly_contributions_breakdown:t.annual_contributions_breakdown,C=[{name:"Gross Salary",value:m,color:e?.chartColors?.grossSalary??"#3b82f6"},{name:"Contributions",value:y,color:e?.chartColors?.contributions??"#f59e0b"}];return c&&C.push({name:"Benefits",value:u??0,color:e?.chartColors?.benefits??"#10b981"}),r(I,{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:[a("span",{className:"flex items-center gap-1",children:e?.title??"Cost Calculator"}),a(f,{className:"ml-2",children:n.country.name})]}),a("p",{className:"text-primary-foreground font-medium mt-1",children:e?.description??`Total cost of employment in ${n.country.name}`})]}),a(x,{value:o,onValueChange:G=>E(G),className:"w-full md:w-auto RemoteFlows__CostCalculatorResults__Tabs",children:r(k,{className:"grid w-full md:w-[200px] grid-cols-2",children:[a(i,{value:"monthly",children:"Monthly"}),a(i,{value:"annual",children:"Annual"})]})})]}),r("div",{className:b("grid grid-cols-1 gap-6",e?.showChart?"md:grid-cols-3":"","RemoteFlows__CostCalculatorResults_CostBreakdown"),children:[r(h,{className:"md:col-span-2 rounded-lg",children:[r(p,{className:"pb-2",children:[a(g,{children:"Cost Breakdown"}),a(w,{children:"Detailed breakdown of all employer costs"})]}),a(T,{children:r("div",{className:"space-y-6",children:[a(R,{grossSalary:m,currency:s,hasExtraStatutoryPayment:n.has_extra_statutory_payment}),c?a(v,{benefitsBreakdown:c,benefitsTotal:u,currency:s}):null,a(B,{contributionsBreakdown:H,contributionsTotal:y,currency:s}),Array.isArray(l)&&l.length>0?a(N,{extraStatutoryPaymentsBreakdown:l,extraStatutoryPaymentsTotal:A,currency:s}):null,d?a(P,{indirectTax:d,currency:s}):null,a(S,{totalCost:F,currency:s})]})})]}),e?.showChart&&a(z,{chartData:C,currency:s})]})]})}_(Y,"CostCalculatorResults");export{Y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MLB2I27G.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as b,b as h,d as C,e as Z,f as v,g as y}from"./chunk-ANXYPRBG.js";import{f as w}from"./chunk-EGQJ7UBR.js";import{b as f,d as g}from"./chunk-3ZWDIEEM.js";import{a as k,e as D}from"./chunk-3LOVCTCN.js";import{a as e}from"./chunk-P37U34EQ.js";import{useQuery as F}from"@tanstack/react-query";var x=e((r,a)=>{let{client:s}=g();return F({queryKey:["zendesk-article",r],queryFn:e(async()=>{let t=await w({client:s,path:{id:Number(r)}});if(t.error)throw new Error(t.error.message||"Failed to fetch article");return t},"queryFn"),select:e(t=>{let o=t.data?.data.help_center_article;return o&&{...o,body:D(o.body||"")}},"select"),retry:!1,...a})},"useZendeskArticle");import{jsx as n,jsxs as l}from"react/jsx-runtime";var N=e(r=>`https://support.remote.com/hc/en-us/articles/${r}`,"buildZendeskURL"),T=e(({Trigger:r,zendeskId:a,open:s,onClose:t})=>{let{components:o}=f(),i=N(a),d=e(()=>{t?.()},"handleClose"),{data:c,isLoading:m,error:p}=x(a,{enabled:s}),u=o?.zendeskDrawer;return u?n(u,{open:s,onClose:d,data:c,isLoading:m,error:p,zendeskURL:i,Trigger:r}):l(b,{open:s,onOpenChange:R=>!R&&d(),direction:"right",children:[n(h,{asChild:!0,children:r}),n(C,{className:"h-full w-[480px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:l("div",{className:"h-full flex flex-col",children:[l(Z,{children:[n(v,{children:c?.title}),l(y,{children:["For more details see our"," ",n("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),m&&n("div",{children:"Loading..."}),p&&n("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),n("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:c?.body||""}})]})})]})},"ZendeskDrawer");import{useState as L}from"react";import{jsx as _}from"react/jsx-runtime";function G({zendeskId:r,className:a,onClick:s,children:t}){let[o,i]=L(!1);return _(T,{zendeskId:r,open:o,onClose:()=>i(!1),Trigger:_("button",{onClick:e(()=>{i(!0),s?.(r)},"handleClick"),className:k("RemoteFlows__ZendeskTriggerButton text-blue-500 hover:underline inline-block mt-1 text-xs bg-transparent border-none cursor-pointer p-0",a),children:t})})}e(G,"ZendeskTriggerButton");export{G as a};
|
|
2
|
+
//# sourceMappingURL=chunk-N5I33LIN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/shared/zendesk-drawer/api.ts","../src/components/shared/zendesk-drawer/ZendeskDrawer.tsx","../src/components/shared/zendesk-drawer/ZendeskTriggerButton.tsx"],"sourcesContent":["import { getShowHelpCenterArticle } from '@/src/client';\nimport { useClient } from '@/src/context';\nimport { sanitizeHtml } from '@/src/lib/utils';\nimport { Client } from '@hey-api/client-fetch';\nimport { useQuery } from '@tanstack/react-query';\n\nexport const useZendeskArticle = (\n zendeskId: number | null,\n queryOptions?: { enabled?: boolean },\n) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['zendesk-article', zendeskId],\n queryFn: async () => {\n const response = await getShowHelpCenterArticle({\n client: client as Client,\n path: {\n id: Number(zendeskId),\n },\n });\n\n if (response.error) {\n throw new Error(response.error.message || 'Failed to fetch article');\n }\n\n return response;\n },\n select: (data) => {\n const article = data.data?.data.help_center_article;\n if (article) {\n return {\n ...article,\n body: sanitizeHtml(article.body || ''),\n };\n }\n return article;\n },\n retry: false,\n ...queryOptions,\n });\n};\n","import { useZendeskArticle } from '@/src/components/shared/zendesk-drawer/api';\nimport {\n Drawer,\n DrawerTrigger,\n DrawerContent,\n DrawerDescription,\n DrawerHeader,\n DrawerTitle,\n} from '@/src/components/ui/drawer';\nimport { useFormFields } from '@/src/context';\n\nexport type ZendeskDrawerProps = {\n Trigger: React.ReactElement;\n zendeskId: number;\n open: boolean;\n onClose: () => void;\n};\n\nconst buildZendeskURL = (zendeskId: number) => {\n return `https://support.remote.com/hc/en-us/articles/${zendeskId}`;\n};\n\nexport const ZendeskDrawer = ({\n Trigger,\n zendeskId,\n open,\n onClose,\n}: ZendeskDrawerProps) => {\n const { components } = useFormFields();\n const zendeskURL = buildZendeskURL(zendeskId);\n\n const handleClose = () => {\n onClose?.();\n };\n\n const { data, isLoading, error } = useZendeskArticle(zendeskId, {\n enabled: open,\n });\n\n const CustomZendeskDrawer = components?.zendeskDrawer;\n\n if (CustomZendeskDrawer) {\n return (\n <CustomZendeskDrawer\n open={open}\n onClose={handleClose}\n data={data}\n isLoading={isLoading}\n error={error}\n zendeskURL={zendeskURL}\n Trigger={Trigger}\n />\n );\n }\n\n return (\n <Drawer\n open={open}\n onOpenChange={(open) => !open && handleClose()}\n direction='right'\n >\n <DrawerTrigger asChild>{Trigger}</DrawerTrigger>\n <DrawerContent className='h-full w-[480px] mt-0 ml-auto RemoteFlows_ZendeskDrawer'>\n <div className='h-full flex flex-col'>\n <DrawerHeader>\n <DrawerTitle>{data?.title}</DrawerTitle>\n <DrawerDescription>\n For more details see our{' '}\n <a href={zendeskURL} target='_blank' rel='noopener noreferrer'>\n help article\n </a>{' '}\n </DrawerDescription>\n </DrawerHeader>\n {isLoading && <div>Loading...</div>}\n {error && (\n <div className='text-sm p-4 text-red-500'>\n Error loading article\n </div>\n )}\n <div\n className='flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content'\n dangerouslySetInnerHTML={{\n __html: data?.body || '',\n }}\n ></div>\n </div>\n </DrawerContent>\n </Drawer>\n );\n};\n","import { cn } from '@/src/lib/utils';\nimport { ZendeskDrawer } from './ZendeskDrawer';\nimport { useState } from 'react';\n\ninterface ZendeskTriggerButtonProps {\n zendeskId: number;\n className?: string;\n onClick?: (zendeskId: number) => void;\n children?: React.ReactNode;\n}\n\nexport function ZendeskTriggerButton({\n zendeskId,\n className,\n onClick,\n children,\n}: ZendeskTriggerButtonProps) {\n const [isOpen, setIsOpen] = useState(false);\n\n const handleClick = () => {\n setIsOpen(true);\n onClick?.(zendeskId);\n };\n\n return (\n <ZendeskDrawer\n zendeskId={zendeskId}\n open={isOpen}\n onClose={() => setIsOpen(false)}\n Trigger={\n <button\n onClick={handleClick}\n className={cn(\n 'RemoteFlows__ZendeskTriggerButton text-blue-500 hover:underline inline-block mt-1 text-xs bg-transparent border-none cursor-pointer p-0',\n className,\n )}\n >\n {children}\n </button>\n }\n />\n );\n}\n"],"mappings":"yPAIA,OAAS,YAAAA,MAAgB,wBAElB,IAAMC,EAAoBC,EAAA,CAC/BC,EACAC,IACG,CACH,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAS,CACd,SAAU,CAAC,kBAAmBJ,CAAS,EACvC,QAASD,EAAA,SAAY,CACnB,IAAMM,EAAW,MAAMC,EAAyB,CAC9C,OAAQJ,EACR,KAAM,CACJ,GAAI,OAAOF,CAAS,CACtB,CACF,CAAC,EAED,GAAIK,EAAS,MACX,MAAM,IAAI,MAAMA,EAAS,MAAM,SAAW,yBAAyB,EAGrE,OAAOA,CACT,EAbS,WAcT,OAAQN,EAACQ,GAAS,CAChB,IAAMC,EAAUD,EAAK,MAAM,KAAK,oBAChC,OAAIC,GACK,CACL,GAAGA,EACH,KAAMC,EAAaD,EAAQ,MAAQ,EAAE,CACvC,CAGJ,EATQ,UAUR,MAAO,GACP,GAAGP,CACL,CAAC,CACH,EAlCiC,qBCqC3B,cAAAS,EAuBM,QAAAC,MAvBN,oBAzBN,IAAMC,EAAkBC,EAACC,GAChB,gDAAgDA,CAAS,GAD1C,mBAIXC,EAAgBF,EAAA,CAAC,CAC5B,QAAAG,EACA,UAAAF,EACA,KAAAG,EACA,QAAAC,CACF,IAA0B,CACxB,GAAM,CAAE,WAAAC,CAAW,EAAIC,EAAc,EAC/BC,EAAaT,EAAgBE,CAAS,EAEtCQ,EAAcT,EAAA,IAAM,CACxBK,IAAU,CACZ,EAFoB,eAId,CAAE,KAAAK,EAAM,UAAAC,EAAW,MAAAC,CAAM,EAAIC,EAAkBZ,EAAW,CAC9D,QAASG,CACX,CAAC,EAEKU,EAAsBR,GAAY,cAExC,OAAIQ,EAEAjB,EAACiB,EAAA,CACC,KAAMV,EACN,QAASK,EACT,KAAMC,EACN,UAAWC,EACX,MAAOC,EACP,WAAYJ,EACZ,QAASL,EACX,EAKFL,EAACiB,EAAA,CACC,KAAMX,EACN,aAAeA,GAAS,CAACA,GAAQK,EAAY,EAC7C,UAAU,QAEV,UAAAZ,EAACmB,EAAA,CAAc,QAAO,GAAE,SAAAb,EAAQ,EAChCN,EAACoB,EAAA,CAAc,UAAU,0DACvB,SAAAnB,EAAC,OAAI,UAAU,uBACb,UAAAA,EAACoB,EAAA,CACC,UAAArB,EAACsB,EAAA,CAAa,SAAAT,GAAM,MAAM,EAC1BZ,EAACsB,EAAA,CAAkB,qCACQ,IACzBvB,EAAC,KAAE,KAAMW,EAAY,OAAO,SAAS,IAAI,sBAAsB,wBAE/D,EAAK,KACP,GACF,EACCG,GAAad,EAAC,OAAI,sBAAU,EAC5Be,GACCf,EAAC,OAAI,UAAU,2BAA2B,iCAE1C,EAEFA,EAAC,OACC,UAAU,gEACV,wBAAyB,CACvB,OAAQa,GAAM,MAAQ,EACxB,EACD,GACH,EACF,GACF,CAEJ,EAnE6B,iBCpB7B,OAAS,YAAAW,MAAgB,QA4BjB,cAAAC,MAAA,oBAnBD,SAASC,EAAqB,CACnC,UAAAC,EACA,UAAAC,EACA,QAAAC,EACA,SAAAC,CACF,EAA8B,CAC5B,GAAM,CAACC,EAAQC,CAAS,EAAIC,EAAS,EAAK,EAO1C,OACER,EAACS,EAAA,CACC,UAAWP,EACX,KAAMI,EACN,QAAS,IAAMC,EAAU,EAAK,EAC9B,QACEP,EAAC,UACC,QAZYU,EAAA,IAAM,CACxBH,EAAU,EAAI,EACdH,IAAUF,CAAS,CACrB,EAHoB,eAaZ,UAAWS,EACT,0IACAR,CACF,EAEC,SAAAE,EACH,EAEJ,CAEJ,CA/BgBK,EAAAT,EAAA","names":["useQuery","useZendeskArticle","__name","zendeskId","queryOptions","client","useClient","useQuery","response","getShowHelpCenterArticle","data","article","sanitizeHtml","jsx","jsxs","buildZendeskURL","__name","zendeskId","ZendeskDrawer","Trigger","open","onClose","components","useFormFields","zendeskURL","handleClose","data","isLoading","error","useZendeskArticle","CustomZendeskDrawer","Drawer","DrawerTrigger","DrawerContent","DrawerHeader","DrawerTitle","DrawerDescription","useState","jsx","ZendeskTriggerButton","zendeskId","className","onClick","children","isOpen","setIsOpen","useState","ZendeskDrawer","__name","cn"]}
|
|
@@ -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-DTGFQMCE.js";import{a as m}from"./chunk-QW4JPW6J.js";import{b as y}from"./chunk-3ZWDIEEM.js";import{b as E}from"./chunk-7VUILYZ3.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-O4F6PGGV.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as H}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as H}from"./chunk-JUGNVM2R.js";import{a as D}from"./chunk-6YKL7EOK.js";import{a as N,b as K,c as G,e as z}from"./chunk-V2YORDAL.js";import{a as S}from"./chunk-HN5HLFTB.js";import{a as v}from"./chunk-CFIJKJXD.js";import{c as j}from"./chunk-MXFDOIUA.js";import{a as o}from"./chunk-P37U34EQ.js";import{number as Ee,object as Z}from"yup";import{createHeadlessForm as de,modify as fe}from"@remoteoss/json-schema-form";import{useCallback as ye,useEffect as I,useMemo as ge,useState as B}from"react";import{string as Q,ValidationError as W}from"yup";import{jsx as Ce}from"react/jsx-runtime";var A={title:"Estimation",includeBenefits:!1,includeCostBreakdowns:!1,includePremiumBenefits:!1,enableCurrencyConversion:!1,includeManagementFee:!1},pe=o(r=>{let{schema:a}=fe(D.data.schema,r?.jsfModify||{});return de(a)},"useStaticSchema"),xe=o(({defaultRegion:r,defaultCurrency:a,defaultSalary:l,estimationOptions:s,options:n,version:i}={estimationOptions:A})=>{let[y,b]=B(r),[w,P]=B(),[m,U]=B(),{data:g,isLoading:ee}=N({includePremiumBenefits:s.includePremiumBenefits}),{data:d,isLoading:te}=K(),re=y||w?.value,{data:R,isLoading:ne}=z(re,{includePremiumBenefits:s.includePremiumBenefits,options:n}),q=G(),p=w?.currency,C=n?.jsfModify?.fields?.salary,_=C&&typeof C=="object"&&"presentation"in C?C.presentation:void 0,J=ye(()=>{let e=p&&m?p!==m:!1;return p!==m?{from:m,to:p,shouldSwapOrder:e}:{from:p,to:m,shouldSwapOrder:e}},[p,m]),L=s.includeManagementFee,ae=ge(()=>{let{from:e,to:t,shouldSwapOrder:c}=J();return{fields:{salary:{...C,presentation:{salary_conversion_properties:{label:_?.salary_conversion_properties?.label,description:_?.salary_conversion_properties?.description},currencies:{from:e,to:t},Component:o(u=>Ce(H,{...u,shouldSwapOrder:c,conversionType:i==="marketing"?"no_spread":"spread",defaultValue:l}),"Component")}},management:{...n?.jsfModify?.fields?.management,properties:{...n?.jsfModify?.fields?.management?.properties,management_fee:{...n?.jsfModify?.fields?.management?.properties?.management_fee,"x-jsf-presentation":{inputType:"money",additionalProps:{currency:m||"USD"}}}},presentation:{...typeof n?.jsfModify?.fields?.management=="object"?(n?.jsfModify?.fields?.management)["x-jsf-presentation"]:{},hidden:!L}}}}},[m,C,_?.salary_conversion_properties?.description,_?.salary_conversion_properties?.label,l,J,n?.jsfModify?.fields?.management,L,i]),f=pe({jsfModify:{fields:{...n?.jsfModify?.fields,...ae?.fields}}});I(()=>{if(r&&g){let e=g.find(({value:t})=>t===r);e&&P(e)}},[r,g]),I(()=>{if(a&&d){let e=d.find(({value:t})=>t===a);e&&U(e.label)}},[a,d]);async function oe(e){try{await x.validate(e,{abortEarly:!1})}catch(t){return{data:null,error:t}}return new Promise((t,c)=>{q.mutate(Y(e,s,i),{onSuccess:o(u=>{u.data?t({data:u.data,error:null}):t({data:null,error:new Error("Something went wrong. Please try again later.")})},"onSuccess"),onError:o(u=>{c({data:null,error:u})},"onError")})})}o(oe,"onSubmit");function se(e){let t=g?.find(({value:c})=>c===e);t&&t.childRegions.length===0&&t.hasAdditionalFields?b(t.regionSlug):b(void 0),P(t)}o(se,"onCountryChange");function ie(e){b(e)}o(ie,"onRegionChange");function le(e){let t=d?.find(c=>c.value===e)?.label;U(t),n?.onCurrencyChange?.(t||"")}o(le,"onChangeCurrency");let E=f.fields.find(e=>e.name==="region");if(E){let e=w?.childRegions.map(t=>({value:t.slug,label:t.name}))??[];E.options=e,E.isVisible=e.length>0,E.required=e.length>0,E.onChange=ie,E.schema=e.length>0?Q().transform(t=>typeof t=="string"?t:"").required("Region is required"):Q()}if(d){let e=f.fields.find(t=>t.name==="currency");e&&(e.options=d,e.onChange=le)}if(g){let e=f.fields.find(t=>t.name==="country");e&&(e.options=g,e.onChange=se)}let ce=o(()=>{P(void 0),b(r)},"resetForm"),$=[...f.fields.filter(e=>e.name!=="management"),...R?.fields||[],...f.fields.filter(e=>e.name==="management")],x=X(f.fields,m||"USD");async function ue(e){let t=null,c=j(e,$);try{await x.validate(c,{abortEarly:!1}),t={formErrors:{},yupError:new W([],e)}}catch(V){let O=v(V);t={formErrors:Object.entries(O).reduce((M,[k,T])=>({...M,[k]:T.message}),{}),yupError:V}}let u=R?.handleValidation(c),h=[...t?.yupError.inner||[],...u?.yupError?.inner||[]],F={...t?.yupError?.value||{},...u?.yupError?.value||{}};return{formErrors:{...t?.formErrors||{},...u?.formErrors||{}},yupError:new W(h,F)}}return o(ue,"handleValidation"),{stepState:{current:0,total:1,isLastStep:!0},fields:$,validationSchema:x,parseFormValues:o(e=>{let{country:t,region:c,currency:u,salary_converted:h,salary_conversion:F,management:V,...O}=e,M=e.salary;h==="salary_conversion"&&(M=F);let T=j({country:t,region:c,salary:M,salary_converted:h,salary_conversion:F,currency:u,management:V},f.fields),me=j(O,R?.fields||[]);return{...T,...me}},"parseFormValues"),handleValidation:ue,isSubmitting:q.isPending,isLoading:ee&&te&&ne,onSubmit:oe,resetForm:ce,currencies:d}},"useCostCalculator");function X(r,a){let l=r.reduce((s,n)=>(n.name==="salary"||n.name==="salary_conversion"?s[n.name]=n.schema.when("salary_converted",{is:o(i=>i===n.name,"is"),then:o(i=>i.required("Salary is required"),"then"),otherwise:o(i=>i.optional(),"otherwise")}):n.name==="management"?s[n.name]=Z({management_fee:Ee().transform(i=>isNaN(i)?void 0:i).min(0,"Management fee must be greater than or equal to 0").max(a?S[a]:S.USD,()=>`Management fee cannot exceed ${(a?S[a]:S.USD)/100} ${a}`)}):s[n.name]=n.schema,s),{});return Z(l)}o(X,"buildValidationSchema");function Se(r){let a="benefit-";return Object.keys(r).reduce((l,s)=>{let n=r[s];if(n==="none")return l;let y={benefit_group_slug:s.replace(a,""),benefit_tier_slug:n};return[...l,y]},[])}o(Se,"formatBenefits");function be(r,a,l){return{region_slug:r.region||r.country,employment_term:r.contract_duration_type??"fixed",title:a.title,age:r.age??void 0,...r.benefits&&{benefits:Se(r.benefits)},...(l=="marketing"||r.salary_converted==="salary_conversion")&&{annual_gross_salary_in_employer_currency:r.salary},...l==="standard"&&r.salary_converted==="salary"&&{annual_gross_salary:r.salary}}}o(be,"mapValueToEmployment");function Y(r,a=A,l="standard"){let s=Array.isArray(r)?r:[r];if(s.length===0)throw new Error("At least one employment value is required");s.length>1&&new Set(s.map(y=>y.currency)).size>1&&console.warn("Multiple currencies detected in array. Using currency from first employment.");let n=Number(s[0].management?.management_fee);return{employer_currency_slug:s[0].currency,include_benefits:a.includeBenefits,include_cost_breakdowns:a.includeCostBreakdowns,include_premium_benefits:a.includePremiumBenefits,include_management_fee:a.includeManagementFee,...a.includeManagementFee&&n&&{global_discount:{quoted_amount:n,text:""}},employments:s.map(i=>be(i,a,l))}}o(Y,"buildPayload");export{X as a,Y as b,A as c,xe as d};
|
|
2
|
+
//# sourceMappingURL=chunk-OC7VOBB4.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as f,d}from"./chunk-OC7VOBB4.js";import{a as s}from"./chunk-HN5HLFTB.js";import{a as m}from"./chunk-KSHK3ZPX.js";import{b as i}from"./chunk-CFIJKJXD.js";import{f as g}from"./chunk-3BREUYLG.js";import{a as c}from"./chunk-P37U34EQ.js";import{useEffect as E,useId as P,useState as _}from"react";import{jsx as h}from"react/jsx-runtime";var y=c((r,e,t)=>t&&t[e]?t[e]:r[e]?r[e]/100:0,"getDefaultManagementFee"),T=c(({estimationOptions:r=f,defaultValues:e={countryRegionSlug:"",currencySlug:"",salary:"",benefits:{}},options:t,render:S,version:p="standard"})=>{let F=P(),[R,C]=_("USD"),v=c(u=>{C(u);let o=y(s,u,r.managementFees);o&&a.setValue("management.management_fee",o)},"onCurrencyChange"),n=d({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:r,version:p,options:{...t,onCurrencyChange:v}}),K=i(n.handleValidation),b=e.currencySlug?"":y(s,R,r.managementFees),a=g({resolver:K,defaultValues:{country:e?.countryRegionSlug,currency:e?.currencySlug,region:"",salary:e?.salary,salary_conversion:"",salary_converted:"",management:{management_fee:b},benefits:e?.benefits},shouldUnregister:!1,mode:"onBlur"});return E(()=>{if(e.currencySlug&&n.currencies&&r.includeManagementFee){let o=n.currencies.find(l=>l.value===e.currencySlug)?.label;if(o){C(o);let l=y(s,o,r.managementFees);a.setValue("management.management_fee",l)}}},[e.currencySlug,n.currencies,r.includeManagementFee,r.managementFees,a]),h(m.Provider,{value:{form:a,formId:F,costCalculatorBag:n},children:S(n)})},"CostCalculatorFlow");export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-SIUODCGO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/CostCalculator/CostCalculatorFlow.tsx"],"sourcesContent":["import React, { useEffect, useId, useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useJsonSchemasValidationFormResolver } from '@/src/components/form/yupValidationResolver';\nimport { CostCalculatorContext } from '@/src/flows/CostCalculator/context';\nimport {\n CostCalculatorVersion,\n defaultEstimationOptions,\n useCostCalculator,\n} from '@/src/flows/CostCalculator/hooks';\nimport {\n CostCalculatorEstimationOptions,\n CurrencyKey,\n UseCostCalculatorOptions,\n} from '@/src/flows/CostCalculator/types';\nimport { BASE_RATES } from '@/src/flows/CostCalculator/constants';\n\nexport type CostCalculatorFlowProps = {\n /**\n * Estimation params allows you to customize the parameters sent to the /cost-calculator/estimation endpoint.\n */\n estimationOptions?: CostCalculatorEstimationOptions;\n /**\n * Default values for the form fields.\n */\n defaultValues?: Partial<{\n /**\n * Default value for the country field.\n */\n countryRegionSlug: string;\n /**\n * Default value for the currency field.\n */\n currencySlug: string;\n /**\n * Default value for the salary field.\n */\n salary: string;\n /**\n * Default value for the benefits field.\n */\n benefits: Record<string, string>;\n }>;\n options?: UseCostCalculatorOptions;\n render: (\n costCalculatorBag: ReturnType<typeof useCostCalculator>,\n ) => React.ReactNode;\n /**\n * Whether to include annual_gross_salary in the estimation payload\n */\n version?: CostCalculatorVersion;\n};\n\nconst getDefaultManagementFee = (\n baseRates: Record<CurrencyKey, number>,\n currency: CurrencyKey,\n managementFees?: Partial<Record<CurrencyKey, number>>,\n) => {\n if (managementFees && managementFees[currency]) {\n return managementFees[currency];\n }\n if (baseRates[currency]) {\n return baseRates[currency] / 100;\n }\n return 0;\n};\n\nexport const CostCalculatorFlow = ({\n estimationOptions = defaultEstimationOptions,\n defaultValues = {\n countryRegionSlug: '',\n currencySlug: '',\n salary: '',\n benefits: {},\n },\n options,\n render,\n version = 'standard',\n}: CostCalculatorFlowProps) => {\n const formId = useId();\n const [currency, setCurrency] = useState<CurrencyKey>('USD');\n const onCurrencyChange = (currency: string) => {\n setCurrency(currency as CurrencyKey);\n const managementFee = getDefaultManagementFee(\n BASE_RATES,\n currency as CurrencyKey,\n estimationOptions.managementFees,\n );\n if (managementFee) {\n form.setValue('management.management_fee', managementFee);\n }\n };\n const costCalculatorBag = useCostCalculator({\n defaultRegion: defaultValues.countryRegionSlug,\n defaultCurrency: defaultValues.currencySlug,\n defaultSalary: defaultValues.salary,\n estimationOptions,\n version,\n options: {\n ...options,\n onCurrencyChange: onCurrencyChange,\n },\n });\n const resolver = useJsonSchemasValidationFormResolver(\n // @ts-expect-error no matching type\n costCalculatorBag.handleValidation,\n );\n\n const defaultManagementFee = defaultValues.currencySlug\n ? ''\n : getDefaultManagementFee(\n BASE_RATES,\n currency,\n estimationOptions.managementFees,\n );\n\n const form = useForm({\n resolver,\n defaultValues: {\n country: defaultValues?.countryRegionSlug,\n currency: defaultValues?.currencySlug,\n region: '',\n salary: defaultValues?.salary,\n salary_conversion: '',\n salary_converted: '',\n management: {\n management_fee: defaultManagementFee,\n },\n benefits: defaultValues?.benefits,\n },\n shouldUnregister: false,\n mode: 'onBlur',\n });\n\n useEffect(() => {\n if (\n defaultValues.currencySlug &&\n costCalculatorBag.currencies &&\n estimationOptions.includeManagementFee\n ) {\n const currencyData = costCalculatorBag.currencies.find(\n (currency) => currency.value === defaultValues.currencySlug,\n );\n const currencyCode = currencyData?.label;\n if (currencyCode) {\n setCurrency(currencyCode as CurrencyKey);\n const defaultManagementFee = getDefaultManagementFee(\n BASE_RATES,\n currencyCode as CurrencyKey,\n estimationOptions.managementFees,\n );\n form.setValue('management.management_fee', defaultManagementFee);\n }\n }\n }, [\n defaultValues.currencySlug,\n costCalculatorBag.currencies,\n estimationOptions.includeManagementFee,\n estimationOptions.managementFees,\n form,\n ]);\n\n return (\n <CostCalculatorContext.Provider\n value={{\n form,\n formId: formId,\n costCalculatorBag,\n }}\n >\n {render(costCalculatorBag)}\n </CostCalculatorContext.Provider>\n );\n};\n"],"mappings":"kPAAA,OAAgB,aAAAA,EAAW,SAAAC,EAAO,YAAAC,MAAgB,QAkK9C,cAAAC,MAAA,oBA9GJ,IAAMC,EAA0BC,EAAA,CAC9BC,EACAC,EACAC,IAEIA,GAAkBA,EAAeD,CAAQ,EACpCC,EAAeD,CAAQ,EAE5BD,EAAUC,CAAQ,EACbD,EAAUC,CAAQ,EAAI,IAExB,EAXuB,2BAcnBE,EAAqBJ,EAAA,CAAC,CACjC,kBAAAK,EAAoBC,EACpB,cAAAC,EAAgB,CACd,kBAAmB,GACnB,aAAc,GACd,OAAQ,GACR,SAAU,CAAC,CACb,EACA,QAAAC,EACA,OAAAC,EACA,QAAAC,EAAU,UACZ,IAA+B,CAC7B,IAAMC,EAASC,EAAM,EACf,CAACV,EAAUW,CAAW,EAAIC,EAAsB,KAAK,EACrDC,EAAmBf,EAACE,GAAqB,CAC7CW,EAAYX,CAAuB,EACnC,IAAMc,EAAgBjB,EACpBkB,EACAf,EACAG,EAAkB,cACpB,EACIW,GACFE,EAAK,SAAS,4BAA6BF,CAAa,CAE5D,EAVyB,oBAWnBG,EAAoBC,EAAkB,CAC1C,cAAeb,EAAc,kBAC7B,gBAAiBA,EAAc,aAC/B,cAAeA,EAAc,OAC7B,kBAAAF,EACA,QAAAK,EACA,QAAS,CACP,GAAGF,EACH,iBAAkBO,CACpB,CACF,CAAC,EACKM,EAAWC,EAEfH,EAAkB,gBACpB,EAEMI,EAAuBhB,EAAc,aACvC,GACAR,EACEkB,EACAf,EACAG,EAAkB,cACpB,EAEEa,EAAOM,EAAQ,CACnB,SAAAH,EACA,cAAe,CACb,QAASd,GAAe,kBACxB,SAAUA,GAAe,aACzB,OAAQ,GACR,OAAQA,GAAe,OACvB,kBAAmB,GACnB,iBAAkB,GAClB,WAAY,CACV,eAAgBgB,CAClB,EACA,SAAUhB,GAAe,QAC3B,EACA,iBAAkB,GAClB,KAAM,QACR,CAAC,EAED,OAAAkB,EAAU,IAAM,CACd,GACElB,EAAc,cACdY,EAAkB,YAClBd,EAAkB,qBAClB,CAIA,IAAMqB,EAHeP,EAAkB,WAAW,KAC/CjB,GAAaA,EAAS,QAAUK,EAAc,YACjD,GACmC,MACnC,GAAImB,EAAc,CAChBb,EAAYa,CAA2B,EACvC,IAAMH,EAAuBxB,EAC3BkB,EACAS,EACArB,EAAkB,cACpB,EACAa,EAAK,SAAS,4BAA6BK,CAAoB,CACjE,CACF,CACF,EAAG,CACDhB,EAAc,aACdY,EAAkB,WAClBd,EAAkB,qBAClBA,EAAkB,eAClBa,CACF,CAAC,EAGCpB,EAAC6B,EAAsB,SAAtB,CACC,MAAO,CACL,KAAAT,EACA,OAAQP,EACR,kBAAAQ,CACF,EAEC,SAAAV,EAAOU,CAAiB,EAC3B,CAEJ,EA1GkC","names":["useEffect","useId","useState","jsx","getDefaultManagementFee","__name","baseRates","currency","managementFees","CostCalculatorFlow","estimationOptions","defaultEstimationOptions","defaultValues","options","render","version","formId","useId","setCurrency","useState","onCurrencyChange","managementFee","BASE_RATES","form","costCalculatorBag","useCostCalculator","resolver","useJsonSchemasValidationFormResolver","defaultManagementFee","useForm","useEffect","currencyCode","CostCalculatorContext"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g as l,k as u,p as c,t as m,y as d}from"./chunk-EGQJ7UBR.js";import{d as s}from"./chunk-3ZWDIEEM.js";import{a as e}from"./chunk-P37U34EQ.js";import{useMutation as C,useQuery as r}from"@tanstack/react-query";import{createHeadlessForm as y,modify as g}from"@remoteoss/json-schema-form";var q=e(({includePremiumBenefits:t})=>{let{client:i}=s();return r({queryKey:["cost-calculator-countries",t],queryFn:e(()=>c({client:i,query:{include_premium_benefits:t}}),"queryFn"),select:e(o=>o.data?.data.filter(n=>n.availability==="active").map(n=>({value:n.region_slug,label:n.name,childRegions:n.child_regions,hasAdditionalFields:n.has_additional_fields,regionSlug:n.region_slug,currency:n.currency.code})),"select")})},"useCostCalculatorCountries"),x=e(()=>{let{client:t}=s();return r({queryKey:["company-currencies"],queryFn:e(()=>d({client:t}),"queryFn"),select:e(i=>i.data?.data?.company_currencies.map(o=>({value:o.slug,label:o.code})),"select")})},"useCompanyCurrencies"),P=e(()=>{let{client:t}=s();return C({mutationFn:e(i=>l({client:t,body:i}),"mutationFn")})},"useCostCalculatorEstimation"),M=e(()=>{let{client:t}=s();return C({mutationFn:e(i=>u({client:t,body:i}),"mutationFn")})},"useCostCalculatorEstimationPdf"),S=e((t,{includePremiumBenefits:i,options:o})=>{let{client:n}=s();return r({queryKey:["cost-calculator-region-fields",t,i],queryFn:e(()=>m({client:n,path:{slug:t},query:{include_premium_benefits:i}}),"queryFn"),enabled:!!t,select:e(({data:f})=>{let a=f?.data?.schema||{};if(o&&o.jsfModify){let{schema:p}=g(a,o.jsfModify);a=p}return y(a)},"select")})},"useRegionFields");export{q as a,x as b,P as c,M as d,S as e};
|
|
2
|
+
//# sourceMappingURL=chunk-V2YORDAL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/flows/CostCalculator/api.ts"],"sourcesContent":["import {\n CostCalculatorEstimateParams,\n getIndexCompanyCurrency,\n getIndexCountry,\n getShowRegionField,\n postCreateEstimation,\n postCreateEstimationPdf,\n} from '@/src/client';\nimport { Client } from '@hey-api/client-fetch';\nimport { useClient } from '@/src/context';\nimport { useMutation, useQuery } from '@tanstack/react-query';\nimport { CostCalculatorEstimationOptions } from '@/src/flows/CostCalculator/types';\nimport { JSFModify } from '@/src/flows/types';\nimport { createHeadlessForm, modify } from '@remoteoss/json-schema-form';\n\n/**\n * Hook to fetch the countries for the cost calculator.\n * @returns\n */\nexport const useCostCalculatorCountries = ({\n includePremiumBenefits,\n}: {\n includePremiumBenefits: CostCalculatorEstimationOptions['includePremiumBenefits'];\n}) => {\n const { client } = useClient();\n return useQuery({\n queryKey: ['cost-calculator-countries', includePremiumBenefits],\n queryFn: () => {\n return getIndexCountry({\n client: client as Client,\n query: {\n include_premium_benefits: includePremiumBenefits,\n },\n });\n },\n select: (data) =>\n data.data?.data\n .filter((country) => country.availability === 'active')\n .map((country) => ({\n value: country.region_slug,\n label: country.name,\n childRegions: country.child_regions,\n hasAdditionalFields: country.has_additional_fields,\n regionSlug: country.region_slug,\n currency: country.currency.code,\n })),\n });\n};\n\n/**\n * Hook to fetch the company currencies.\n * @returns\n */\nexport const useCompanyCurrencies = () => {\n const { client } = useClient();\n\n return useQuery({\n queryKey: ['company-currencies'],\n queryFn: () => {\n return getIndexCompanyCurrency({\n client: client as Client,\n });\n },\n select: (data) =>\n data.data?.data?.company_currencies.map((currency) => ({\n value: currency.slug,\n label: currency.code,\n })),\n });\n};\n\n/**\n * Hook to create an estimation.\n * @returns\n */\nexport const useCostCalculatorEstimation = () => {\n const { client } = useClient();\n\n return useMutation({\n mutationFn: (payload: CostCalculatorEstimateParams) => {\n return postCreateEstimation({\n client: client as Client,\n body: payload,\n });\n },\n });\n};\n\n/**\n * Custom hook to create a PDF estimation.\n *\n * @returns\n */\nexport const useCostCalculatorEstimationPdf = () => {\n const { client } = useClient();\n\n return useMutation({\n mutationFn: (payload: CostCalculatorEstimateParams) => {\n return postCreateEstimationPdf({\n client: client as Client,\n body: payload,\n });\n },\n });\n};\n\n/**\n * Hook to fetch the region fields.\n * @param region\n * @returns\n */\nexport const useRegionFields = (\n region: string | undefined,\n {\n includePremiumBenefits,\n options,\n }: {\n includePremiumBenefits: CostCalculatorEstimationOptions['includePremiumBenefits'];\n options?: {\n jsfModify?: JSFModify;\n };\n },\n) => {\n const { client } = useClient();\n\n return useQuery({\n queryKey: ['cost-calculator-region-fields', region, includePremiumBenefits],\n queryFn: () => {\n return getShowRegionField({\n client: client as Client,\n path: { slug: region as string },\n query: {\n include_premium_benefits: includePremiumBenefits,\n },\n });\n },\n enabled: !!region,\n select: ({ data }) => {\n let jsfSchema = data?.data?.schema || {};\n if (options && options.jsfModify) {\n const { schema } = modify(jsfSchema, options.jsfModify);\n jsfSchema = schema;\n }\n return createHeadlessForm(jsfSchema);\n },\n });\n};\n"],"mappings":"oJAUA,OAAS,eAAAA,EAAa,YAAAC,MAAgB,wBAGtC,OAAS,sBAAAC,EAAoB,UAAAC,MAAc,8BAMpC,IAAMC,EAA6BC,EAAA,CAAC,CACzC,uBAAAC,CACF,IAEM,CACJ,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAU,EAC7B,OAAOC,EAAS,CACd,SAAU,CAAC,4BAA6BH,CAAsB,EAC9D,QAASD,EAAA,IACAK,EAAgB,CACrB,OAAQH,EACR,MAAO,CACL,yBAA0BD,CAC5B,CACF,CAAC,EANM,WAQT,OAAQD,EAACM,GACPA,EAAK,MAAM,KACR,OAAQC,GAAYA,EAAQ,eAAiB,QAAQ,EACrD,IAAKA,IAAa,CACjB,MAAOA,EAAQ,YACf,MAAOA,EAAQ,KACf,aAAcA,EAAQ,cACtB,oBAAqBA,EAAQ,sBAC7B,WAAYA,EAAQ,YACpB,SAAUA,EAAQ,SAAS,IAC7B,EAAE,EAVE,SAWV,CAAC,CACH,EA5B0C,8BAkC7BC,EAAuBR,EAAA,IAAM,CACxC,GAAM,CAAE,OAAAE,CAAO,EAAIC,EAAU,EAE7B,OAAOC,EAAS,CACd,SAAU,CAAC,oBAAoB,EAC/B,QAASJ,EAAA,IACAS,EAAwB,CAC7B,OAAQP,CACV,CAAC,EAHM,WAKT,OAAQF,EAACM,GACPA,EAAK,MAAM,MAAM,mBAAmB,IAAKI,IAAc,CACrD,MAAOA,EAAS,KAChB,MAAOA,EAAS,IAClB,EAAE,EAJI,SAKV,CAAC,CACH,EAhBoC,wBAsBvBC,EAA8BX,EAAA,IAAM,CAC/C,GAAM,CAAE,OAAAE,CAAO,EAAIC,EAAU,EAE7B,OAAOS,EAAY,CACjB,WAAYZ,EAACa,GACJC,EAAqB,CAC1B,OAAQZ,EACR,KAAMW,CACR,CAAC,EAJS,aAMd,CAAC,CACH,EAX2C,+BAkB9BE,EAAiCf,EAAA,IAAM,CAClD,GAAM,CAAE,OAAAE,CAAO,EAAIC,EAAU,EAE7B,OAAOS,EAAY,CACjB,WAAYZ,EAACa,GACJG,EAAwB,CAC7B,OAAQd,EACR,KAAMW,CACR,CAAC,EAJS,aAMd,CAAC,CACH,EAX8C,kCAkBjCI,EAAkBjB,EAAA,CAC7BkB,EACA,CACE,uBAAAjB,EACA,QAAAkB,CACF,IAMG,CACH,GAAM,CAAE,OAAAjB,CAAO,EAAIC,EAAU,EAE7B,OAAOC,EAAS,CACd,SAAU,CAAC,gCAAiCc,EAAQjB,CAAsB,EAC1E,QAASD,EAAA,IACAoB,EAAmB,CACxB,OAAQlB,EACR,KAAM,CAAE,KAAMgB,CAAiB,EAC/B,MAAO,CACL,yBAA0BjB,CAC5B,CACF,CAAC,EAPM,WAST,QAAS,CAAC,CAACiB,EACX,OAAQlB,EAAA,CAAC,CAAE,KAAAM,CAAK,IAAM,CACpB,IAAIe,EAAYf,GAAM,MAAM,QAAU,CAAC,EACvC,GAAIa,GAAWA,EAAQ,UAAW,CAChC,GAAM,CAAE,OAAAG,CAAO,EAAIC,EAAOF,EAAWF,EAAQ,SAAS,EACtDE,EAAYC,CACd,CACA,OAAOE,EAAmBH,CAAS,CACrC,EAPQ,SAQV,CAAC,CACH,EAnC+B","names":["useMutation","useQuery","createHeadlessForm","modify","useCostCalculatorCountries","__name","includePremiumBenefits","client","useClient","useQuery","getIndexCountry","data","country","useCompanyCurrencies","getIndexCompanyCurrency","currency","useCostCalculatorEstimation","useMutation","payload","postCreateEstimation","useCostCalculatorEstimationPdf","postCreateEstimationPdf","useRegionFields","region","options","getShowRegionField","jsfSchema","schema","modify","createHeadlessForm"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-HBQDXOAG.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-ZZOY6KD4.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-C9Y1S1pc.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-C9Y1S1pc.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import 'react';
|
|
11
11
|
import '../../mutations-B6HWH-rZ.js';
|
|
@@ -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-C9Y1S1pc.js';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
|
|
5
5
|
type ContractAmendmentFormProps = {
|
|
@@ -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-C9Y1S1pc.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
5
|
-
import '../../remoteFlows-
|
|
5
|
+
import '../../remoteFlows-Clat4nYN.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-C9Y1S1pc.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';
|
|
@@ -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-C9Y1S1pc.js';
|
|
8
8
|
import 'react-hook-form';
|
|
9
9
|
import './ContractAmendmentBack.js';
|
|
10
10
|
import 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-HQI6W7PR.js";import"../../chunk-DYB3RWP7.js";import"../../chunk-LBUNJ5J3.js";import"../../chunk-ANXYPRBG.js";import"../../chunk-7VUILYZ3.js";import"../../chunk-3LOVCTCN.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorDisclaimer};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorDisclaimer.js.map
|
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import { useCostCalculator, CostCalculatorVersion } from './hooks.js';
|
|
4
4
|
import { CostCalculatorEstimationOptions, UseCostCalculatorOptions } from './types.js';
|
|
5
5
|
import 'yup';
|
|
6
|
-
import '../../types.gen-
|
|
6
|
+
import '../../types.gen-C9Y1S1pc.js';
|
|
7
7
|
import '../types.js';
|
|
8
8
|
import '@remoteoss/json-schema-form';
|
|
9
9
|
import './constants.js';
|
|
@@ -29,6 +29,10 @@ type CostCalculatorFlowProps = {
|
|
|
29
29
|
* Default value for the salary field.
|
|
30
30
|
*/
|
|
31
31
|
salary: string;
|
|
32
|
+
/**
|
|
33
|
+
* Default value for the benefits field.
|
|
34
|
+
*/
|
|
35
|
+
benefits: Record<string, string>;
|
|
32
36
|
}>;
|
|
33
37
|
options?: UseCostCalculatorOptions;
|
|
34
38
|
render: (costCalculatorBag: ReturnType<typeof useCostCalculator>) => React__default.ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-SIUODCGO.js";import"../../chunk-OC7VOBB4.js";import"../../chunk-JUGNVM2R.js";import"../../chunk-NBCZF2FO.js";import"../../chunk-6YKL7EOK.js";import"../../chunk-JQDP6SAT.js";import"../../chunk-DTGFQMCE.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-V2YORDAL.js";import"../../chunk-HN5HLFTB.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-N5I33LIN.js";import"../../chunk-ANXYPRBG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-ZTDKPUB5.js";import"../../chunk-TXSJL3HC.js";import"../../chunk-EGQJ7UBR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-3BREUYLG.js";import"../../chunk-MXFDOIUA.js";import"../../chunk-BI6U55BD.js";import"../../chunk-3LOVCTCN.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-C9Y1S1pc.js';
|
|
3
3
|
import { CostCalculatorEstimationSubmitValues, EstimationError } from './types.js';
|
|
4
4
|
import './constants.js';
|
|
5
5
|
import '../types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { B as CostCalculatorEmployment, D as MinimalCountry, M as MinimalRegion } from '../../../types.gen-
|
|
2
|
+
import { B as CostCalculatorEmployment, D as MinimalCountry, M as MinimalRegion } from '../../../types.gen-C9Y1S1pc.js';
|
|
3
3
|
|
|
4
4
|
interface OnboardingTimelineStep {
|
|
5
5
|
title: string;
|
|
@@ -36,7 +36,8 @@ type EstimationResultsProps = {
|
|
|
36
36
|
components?: EstimationResultsComponents;
|
|
37
37
|
onDelete: () => void;
|
|
38
38
|
onExportPdf: () => void;
|
|
39
|
+
onEdit: () => void;
|
|
39
40
|
};
|
|
40
|
-
declare const EstimationResults: ({ estimation, title, components, onDelete, onExportPdf, }: EstimationResultsProps) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare const EstimationResults: ({ estimation, title, components, onDelete, onExportPdf, onEdit, }: EstimationResultsProps) => react_jsx_runtime.JSX.Element;
|
|
41
42
|
|
|
42
43
|
export { EstimationResults };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-HSIQ2OHT.js";import"../../../chunk-4RULC3AZ.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-NBCZF2FO.js";import"../../../chunk-UHS3QRA3.js";import"../../../chunk-N5I33LIN.js";import"../../../chunk-ANXYPRBG.js";import"../../../chunk-EGQJ7UBR.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-7VUILYZ3.js";import"../../../chunk-3LOVCTCN.js";import"../../../chunk-P37U34EQ.js";export{a as EstimationResults};
|
|
2
2
|
//# sourceMappingURL=EstimationResults.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-H4KE45NG.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-XJVYASHX.js";import"../../../chunk-N5I33LIN.js";import"../../../chunk-ANXYPRBG.js";import"../../../chunk-EGQJ7UBR.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-7VUILYZ3.js";import"../../../chunk-3LOVCTCN.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorBenefitsBreakdown};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorBenefitsBreakdown.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-6NKUEDYP.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-XJVYASHX.js";import"../../../chunk-N5I33LIN.js";import"../../../chunk-ANXYPRBG.js";import"../../../chunk-EGQJ7UBR.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-7VUILYZ3.js";import"../../../chunk-3LOVCTCN.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-I2A4EFDY.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-XJVYASHX.js";import"../../../chunk-N5I33LIN.js";import"../../../chunk-ANXYPRBG.js";import"../../../chunk-EGQJ7UBR.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-7VUILYZ3.js";import"../../../chunk-3LOVCTCN.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorExtraStatutoryPaymentsBreakdown};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorExtraStatutoryPaymentsBreakdown.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-4R3ITKOA.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-XJVYASHX.js";import"../../../chunk-NBCZF2FO.js";import"../../../chunk-N5I33LIN.js";import"../../../chunk-ANXYPRBG.js";import"../../../chunk-EGQJ7UBR.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-7VUILYZ3.js";import"../../../chunk-3LOVCTCN.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorGrossSalary};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorGrossSalary.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-C9Y1S1pc.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-MLB2I27G.js";import"../../../chunk-E5YN6OT3.js";import"../../../chunk-H4KE45NG.js";import"../../../chunk-6NKUEDYP.js";import"../../../chunk-I2A4EFDY.js";import"../../../chunk-4R3ITKOA.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-NVMZDPMF.js";import"../../../chunk-XJVYASHX.js";import"../../../chunk-NBCZF2FO.js";import"../../../chunk-CRXPRR3R.js";import"../../../chunk-UHS3QRA3.js";import"../../../chunk-N5I33LIN.js";import"../../../chunk-ANXYPRBG.js";import"../../../chunk-GP237GUO.js";import"../../../chunk-EGQJ7UBR.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-7VUILYZ3.js";import"../../../chunk-3LOVCTCN.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 { 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-C9Y1S1pc.js';
|
|
4
4
|
import { CostCalculatorEstimationOptions } from './types.js';
|
|
5
5
|
import { JSFModify } from '../types.js';
|
|
6
6
|
import './constants.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e}from"../../chunk-V2YORDAL.js";import"../../chunk-EGQJ7UBR.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,8 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { a as JSFField } from '../../../remoteFlows-
|
|
3
|
-
import 'react';
|
|
2
|
+
import { a as JSFField } from '../../../remoteFlows-Clat4nYN.js';
|
|
4
3
|
import 'react-hook-form';
|
|
4
|
+
import 'react';
|
|
5
5
|
import 'yup';
|
|
6
|
+
import '../../../types.gen-C9Y1S1pc.js';
|
|
6
7
|
import '../../../types-Zg1n_9wh.js';
|
|
7
8
|
|
|
8
9
|
type SalaryFieldProps = JSFField & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-JUGNVM2R.js";import"../../../chunk-NBCZF2FO.js";import"../../../chunk-JQDP6SAT.js";import"../../../chunk-DTGFQMCE.js";import"../../../chunk-WVJDCDGZ.js";import"../../../chunk-N5I33LIN.js";import"../../../chunk-ANXYPRBG.js";import"../../../chunk-Z5WMKCRJ.js";import"../../../chunk-ZTDKPUB5.js";import"../../../chunk-TXSJL3HC.js";import"../../../chunk-EGQJ7UBR.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-3BREUYLG.js";import"../../../chunk-MXFDOIUA.js";import"../../../chunk-BI6U55BD.js";import"../../../chunk-3LOVCTCN.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 * as React from 'react';
|
|
3
3
|
import { useCostCalculator } from './hooks.js';
|
|
4
4
|
import { CostCalculatorEstimationFormValues, CostCalculatorEstimationSubmitValues, EstimationError } from './types.js';
|
|
5
|
-
import { c as CostCalculatorEstimateResponse } from '../../types.gen-
|
|
6
|
-
import { $ as $TSFixMe } from '../../remoteFlows-
|
|
5
|
+
import { c as CostCalculatorEstimateResponse } from '../../types.gen-C9Y1S1pc.js';
|
|
6
|
+
import { $ as $TSFixMe } from '../../remoteFlows-Clat4nYN.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 } from '../../types.gen-
|
|
3
|
+
import { c as CostCalculatorEstimateResponse } from '../../types.gen-C9Y1S1pc.js';
|
|
4
4
|
import { CostCalculatorEstimationOptions, UseCostCalculatorOptions, CostCalculatorEstimationFormValues, CostCalculatorEstimationSubmitValues, EstimationError } from './types.js';
|
|
5
5
|
import { Result } from '../types.js';
|
|
6
6
|
import './constants.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as a,d as b}from"../../chunk-
|
|
1
|
+
import{c as a,d as b}from"../../chunk-OC7VOBB4.js";import"../../chunk-JUGNVM2R.js";import"../../chunk-NBCZF2FO.js";import"../../chunk-6YKL7EOK.js";import"../../chunk-JQDP6SAT.js";import"../../chunk-DTGFQMCE.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-V2YORDAL.js";import"../../chunk-HN5HLFTB.js";import"../../chunk-N5I33LIN.js";import"../../chunk-ANXYPRBG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-ZTDKPUB5.js";import"../../chunk-TXSJL3HC.js";import"../../chunk-EGQJ7UBR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-3BREUYLG.js";import"../../chunk-MXFDOIUA.js";import"../../chunk-BI6U55BD.js";import"../../chunk-3LOVCTCN.js";import"../../chunk-P37U34EQ.js";export{a as defaultEstimationOptions,b as useCostCalculator};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CostCalculatorFlow } from './CostCalculatorFlow.js';
|
|
1
|
+
export { CostCalculatorFlow, CostCalculatorFlowProps } from './CostCalculatorFlow.js';
|
|
2
2
|
export { CostCalculatorForm } from './CostCalculatorForm.js';
|
|
3
3
|
export { CostCalculatorSubmitButton } from './CostCalculatorSubmitButton.js';
|
|
4
4
|
export { CostCalculatorResetButton } from './CostCalculatorResetButton.js';
|
|
@@ -13,12 +13,12 @@ export { buildPayload as buildCostCalculatorEstimationPayload } from './utils.js
|
|
|
13
13
|
export { EstimationError } from './types.js';
|
|
14
14
|
import 'react/jsx-runtime';
|
|
15
15
|
import 'react';
|
|
16
|
-
import '../../types.gen-
|
|
16
|
+
import '../../types.gen-C9Y1S1pc.js';
|
|
17
17
|
import 'yup';
|
|
18
18
|
import '../types.js';
|
|
19
19
|
import '@remoteoss/json-schema-form';
|
|
20
20
|
import '@tanstack/react-query';
|
|
21
|
-
import '../../remoteFlows-
|
|
21
|
+
import '../../remoteFlows-Clat4nYN.js';
|
|
22
22
|
import 'react-hook-form';
|
|
23
23
|
import '../../types-Zg1n_9wh.js';
|
|
24
24
|
import './constants.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-Z3BMF4BO.js";import{a as l}from"../../chunk-
|
|
1
|
+
import"../../chunk-Z3BMF4BO.js";import{a as l}from"../../chunk-MLB2I27G.js";import"../../chunk-E5YN6OT3.js";import{a as k}from"../../chunk-A3OEOVEH.js";import{a as j}from"../../chunk-HSIQ2OHT.js";import"../../chunk-4RULC3AZ.js";import"../../chunk-H4KE45NG.js";import"../../chunk-6NKUEDYP.js";import"../../chunk-I2A4EFDY.js";import"../../chunk-4R3ITKOA.js";import"../../chunk-ZE3YT3Q6.js";import"../../chunk-NVMZDPMF.js";import"../../chunk-XJVYASHX.js";import{a as d}from"../../chunk-SIUODCGO.js";import{b as a,d as c}from"../../chunk-OC7VOBB4.js";import"../../chunk-JUGNVM2R.js";import"../../chunk-NBCZF2FO.js";import"../../chunk-6YKL7EOK.js";import"../../chunk-JQDP6SAT.js";import"../../chunk-DTGFQMCE.js";import"../../chunk-WVJDCDGZ.js";import{a as e}from"../../chunk-NVQBJCNL.js";import{a as g}from"../../chunk-OZ63OC3N.js";import{a as f}from"../../chunk-A4KEKMEQ.js";import{d as b}from"../../chunk-V2YORDAL.js";import"../../chunk-HN5HLFTB.js";import"../../chunk-KSHK3ZPX.js";import{a as i}from"../../chunk-HQI6W7PR.js";import{a as h}from"../../chunk-DYB3RWP7.js";import"../../chunk-CRXPRR3R.js";import"../../chunk-UHS3QRA3.js";import"../../chunk-N5I33LIN.js";import"../../chunk-LBUNJ5J3.js";import"../../chunk-ANXYPRBG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-LK4XMOCE.js";import"../../chunk-ZTDKPUB5.js";import"../../chunk-KHNAQRGE.js";import"../../chunk-GP237GUO.js";import"../../chunk-TXSJL3HC.js";import"../../chunk-EGQJ7UBR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-7VUILYZ3.js";import"../../chunk-3BREUYLG.js";import"../../chunk-MXFDOIUA.js";import"../../chunk-BI6U55BD.js";import"../../chunk-3LOVCTCN.js";import"../../chunk-P37U34EQ.js";export{i as CostCalculatorDisclaimer,d as CostCalculatorFlow,e as CostCalculatorForm,g as CostCalculatorResetButton,l as CostCalculatorResults,f as CostCalculatorSubmitButton,j as EstimationResults,k as SummaryResults,a as buildCostCalculatorEstimationPayload,h as disclaimerData,c as useCostCalculator,b as useCostCalculatorEstimationPdf};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as EmploymentTermType, g as PostCreateEstimationError, V as ValidationError } from '../../types.gen-
|
|
1
|
+
import { h as EmploymentTermType, g as PostCreateEstimationError, V as ValidationError } from '../../types.gen-C9Y1S1pc.js';
|
|
2
2
|
import { BASE_RATES } from './constants.js';
|
|
3
3
|
import { JSFModify } from '../types.js';
|
|
4
4
|
import '@remoteoss/json-schema-form';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as CostCalculatorEstimateParams } from '../../types.gen-
|
|
2
|
-
import { $ as $TSFixMe } from '../../remoteFlows-
|
|
1
|
+
import { f as CostCalculatorEstimateParams } from '../../types.gen-C9Y1S1pc.js';
|
|
2
|
+
import { $ as $TSFixMe } from '../../remoteFlows-Clat4nYN.js';
|
|
3
3
|
import { AnyObjectSchema } from 'yup';
|
|
4
4
|
import { CostCalculatorVersion } from './hooks.js';
|
|
5
5
|
import { CostCalculatorEstimationSubmitValues, CostCalculatorEstimationOptions } from './types.js';
|
|
6
|
-
import 'react';
|
|
7
6
|
import 'react-hook-form';
|
|
7
|
+
import 'react';
|
|
8
8
|
import '../../types-Zg1n_9wh.js';
|
|
9
9
|
import '../types.js';
|
|
10
10
|
import '@remoteoss/json-schema-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-OC7VOBB4.js";import"../../chunk-JUGNVM2R.js";import"../../chunk-NBCZF2FO.js";import"../../chunk-6YKL7EOK.js";import"../../chunk-JQDP6SAT.js";import"../../chunk-DTGFQMCE.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-V2YORDAL.js";import"../../chunk-HN5HLFTB.js";import"../../chunk-N5I33LIN.js";import"../../chunk-ANXYPRBG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-ZTDKPUB5.js";import"../../chunk-TXSJL3HC.js";import"../../chunk-EGQJ7UBR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-3BREUYLG.js";import"../../chunk-MXFDOIUA.js";import"../../chunk-BI6U55BD.js";import"../../chunk-3LOVCTCN.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-C9Y1S1pc.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-Clat4nYN.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-HAL2L237.js";import"../../chunk-GNXVMZY7.js";import"../../chunk-776QJKX5.js";import"../../chunk-63HVO7J5.js";import"../../chunk-O4F6PGGV.js";import"../../chunk-7JQPHRUK.js";import"../../chunk-Z7WBY27D.js";import"../../chunk-5KHLOGTR.js";import"../../chunk-ZZOY6KD4.js";import"../../chunk-KOPJY6WW.js";import"../../chunk-HBQDXOAG.js";import"../../chunk-DSTM5RRQ.js";import"../../chunk-VAIBLWOY.js";import"../../chunk-C4RJTN2F.js";import"../../chunk-F66G33YT.js";import"../../chunk-PGWKJ6FK.js";import"../../chunk-JQDP6SAT.js";import"../../chunk-DTGFQMCE.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-LK4XMOCE.js";import"../../chunk-ZTDKPUB5.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-KHNAQRGE.js";import"../../chunk-GP237GUO.js";import"../../chunk-TXSJL3HC.js";import"../../chunk-EGQJ7UBR.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-7VUILYZ3.js";import"../../chunk-3BREUYLG.js";import"../../chunk-MXFDOIUA.js";import"../../chunk-BI6U55BD.js";import"../../chunk-3LOVCTCN.js";import"../../chunk-P37U34EQ.js";export{a as OnboardingFlow};
|
|
2
2
|
//# sourceMappingURL=OnboardingFlow.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { 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 PostConvertRawCurrencyConverterError, y as ConvertCurrencyParams, z as PostCreateContractEligibilityError, A as CreateContractEligibilityParams } from '../../types.gen-
|
|
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 PostConvertRawCurrencyConverterError, y as ConvertCurrencyParams, z as PostCreateContractEligibilityError, A as CreateContractEligibilityParams } from '../../types.gen-C9Y1S1pc.js';
|
|
4
4
|
import { OnboardingFlowParams } from './types.js';
|
|
5
5
|
import { JSONSchemaFormType, FlowOptions } from '../types.js';
|
|
6
|
-
import { J as JSFFieldset } from '../../remoteFlows-
|
|
6
|
+
import { J as JSFFieldset } from '../../remoteFlows-Clat4nYN.js';
|
|
7
7
|
import { FieldValues } from 'react-hook-form';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'yup';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"../../chunk-DTGFQMCE.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-EGQJ7UBR.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-MXFDOIUA.js";import"../../chunk-P37U34EQ.js";export{c as useBenefitOffers,g as useBenefitOffersSchema,b as useCompany,m as useConvertCurrency,l as useCountriesSchemaField,h as useCreateEmployment,e as useCreateReserveInvoice,a as useEmployment,d as useEmploymentInvite,f as useJSONSchemaForm,k as useMagicLink,j as useUpdateBenefitsOffers,i as useUpdateEmployment,n as useUpsertContractEligibility};
|
|
2
2
|
//# sourceMappingURL=api.js.map
|