@remoteoss/remote-flows 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/{chunk-4OKR4SU7.js → chunk-4R3ITKOA.js} +2 -2
  2. package/dist/{chunk-56JXUCOX.js → chunk-6NKUEDYP.js} +2 -2
  3. package/dist/{chunk-RJRLHA3V.js → chunk-GBN2V7QZ.js} +2 -2
  4. package/dist/{chunk-HH6GIAMX.js → chunk-H4KE45NG.js} +2 -2
  5. package/dist/chunk-HQI6W7PR.js +2 -0
  6. package/dist/chunk-HQI6W7PR.js.map +1 -0
  7. package/dist/{chunk-FH3NC6AK.js → chunk-I2A4EFDY.js} +2 -2
  8. package/dist/chunk-LBUNJ5J3.js +2 -0
  9. package/dist/chunk-LBUNJ5J3.js.map +1 -0
  10. package/dist/{chunk-LUG32IOD.js → chunk-LPFDPXCW.js} +2 -2
  11. package/dist/{chunk-UPE5ZMB5.js → chunk-MLB2I27G.js} +2 -2
  12. package/dist/chunk-N5I33LIN.js +2 -0
  13. package/dist/chunk-N5I33LIN.js.map +1 -0
  14. package/dist/{chunk-GKT5UHG4.js → chunk-QYJQNWPB.js} +2 -2
  15. package/dist/{chunk-5JT5MWOK.js → chunk-ZD644MH3.js} +2 -2
  16. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  17. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +1 -1
  18. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  19. package/dist/flows/ContractAmendment/context.d.ts +2 -2
  20. package/dist/flows/ContractAmendment/hooks.d.ts +1 -1
  21. package/dist/flows/ContractAmendment/index.d.ts +1 -1
  22. package/dist/flows/ContractAmendment/utils.d.ts +1 -1
  23. package/dist/flows/CostCalculator/CostCalculatorDisclaimer.js +1 -1
  24. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +1 -1
  25. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  26. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +1 -1
  27. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +1 -1
  28. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  29. package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
  30. package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
  31. package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.js +1 -1
  32. package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
  33. package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
  34. package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
  35. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +1 -1
  36. package/dist/flows/CostCalculator/api.d.ts +1 -1
  37. package/dist/flows/CostCalculator/components/SalaryField.d.ts +3 -2
  38. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  39. package/dist/flows/CostCalculator/context.d.ts +2 -2
  40. package/dist/flows/CostCalculator/hooks.d.ts +1 -1
  41. package/dist/flows/CostCalculator/hooks.js +1 -1
  42. package/dist/flows/CostCalculator/index.d.ts +2 -2
  43. package/dist/flows/CostCalculator/index.js +1 -1
  44. package/dist/flows/CostCalculator/types.d.ts +1 -1
  45. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  46. package/dist/flows/CostCalculator/utils.js +1 -1
  47. package/dist/flows/Onboarding/OnboardingFlow.d.ts +2 -2
  48. package/dist/flows/Onboarding/api.d.ts +2 -2
  49. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +3 -2
  50. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +1 -1
  51. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +3 -3
  52. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +1 -1
  53. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +3 -3
  54. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +1 -1
  55. package/dist/flows/Onboarding/components/ReviewStep.d.ts +1 -1
  56. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +1 -1
  57. package/dist/flows/Onboarding/context.d.ts +2 -2
  58. package/dist/flows/Onboarding/hooks.d.ts +2 -2
  59. package/dist/flows/Onboarding/index.d.ts +2 -2
  60. package/dist/flows/Onboarding/types.d.ts +1 -1
  61. package/dist/flows/Onboarding/utils.d.ts +1 -1
  62. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +1 -1
  63. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +1 -1
  64. package/dist/flows/Termination/PaidTimeOffForm.d.ts +1 -1
  65. package/dist/flows/Termination/TerminationDetailsForm.d.ts +1 -1
  66. package/dist/flows/Termination/TerminationFlow.d.ts +1 -1
  67. package/dist/flows/Termination/TerminationForm.d.ts +1 -1
  68. package/dist/flows/Termination/TimeOff.d.ts +1 -1
  69. package/dist/flows/Termination/context.d.ts +2 -2
  70. package/dist/flows/Termination/hooks.d.ts +1 -1
  71. package/dist/flows/Termination/index.d.ts +1 -1
  72. package/dist/flows/Termination/types.d.ts +1 -1
  73. package/dist/index.css +1 -1
  74. package/dist/index.css.map +1 -1
  75. package/dist/index.d.ts +4 -4
  76. package/dist/index.js +1 -1
  77. package/dist/index.js.map +1 -1
  78. package/dist/internals.d.ts +4 -1
  79. package/dist/internals.js +1 -1
  80. package/dist/internals.js.map +1 -1
  81. package/dist/{remoteFlows-Zmw9pCN3.d.ts → remoteFlows-Clat4nYN.d.ts} +13 -2
  82. package/dist/{types.gen-_c0f1E7h.d.ts → types.gen-C9Y1S1pc.d.ts} +22 -1
  83. package/package.json +2 -2
  84. package/dist/chunk-DL5PZWF7.js +0 -2
  85. package/dist/chunk-DL5PZWF7.js.map +0 -1
  86. package/dist/chunk-U4YEXSAO.js +0 -2
  87. package/dist/chunk-U4YEXSAO.js.map +0 -1
  88. /package/dist/{chunk-4OKR4SU7.js.map → chunk-4R3ITKOA.js.map} +0 -0
  89. /package/dist/{chunk-56JXUCOX.js.map → chunk-6NKUEDYP.js.map} +0 -0
  90. /package/dist/{chunk-RJRLHA3V.js.map → chunk-GBN2V7QZ.js.map} +0 -0
  91. /package/dist/{chunk-HH6GIAMX.js.map → chunk-H4KE45NG.js.map} +0 -0
  92. /package/dist/{chunk-FH3NC6AK.js.map → chunk-I2A4EFDY.js.map} +0 -0
  93. /package/dist/{chunk-LUG32IOD.js.map → chunk-LPFDPXCW.js.map} +0 -0
  94. /package/dist/{chunk-UPE5ZMB5.js.map → chunk-MLB2I27G.js.map} +0 -0
  95. /package/dist/{chunk-GKT5UHG4.js.map → chunk-QYJQNWPB.js.map} +0 -0
  96. /package/dist/{chunk-5JT5MWOK.js.map → chunk-ZD644MH3.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-ZE3YT3Q6.js";import{a as i}from"./chunk-XJVYASHX.js";import{a as e}from"./chunk-NBCZF2FO.js";import{a}from"./chunk-U4YEXSAO.js";import{b as n}from"./chunk-7VUILYZ3.js";import{b as s}from"./chunk-3LOVCTCN.js";import{a as o}from"./chunk-P37U34EQ.js";import{Info as f}from"lucide-react";import{Fragment as y,jsx as r,jsxs as t}from"react/jsx-runtime";function N({grossSalary:l,currency:p,hasExtraStatutoryPayment:c=!1}){return t("div",{children:[t("div",{className:"flex justify-between items-center mb-2",children:[t("div",{className:"flex items-center gap-2",children:[r("h3",{className:"font-medium text-primary-foreground",children:"Gross Salary"}),c&&r(m,{content:t(y,{children:[r("span",{children:"This country respects extra payments on top of the gross salary."})," ",r(a,{zendeskId:e.extraPayments,children:"Learn more"})]}),children:t(n,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0 mt-2",children:[r(f,{className:"h-3 w-3 text-gray-400"}),r("span",{className:"sr-only",children:"Info"})]})})]}),r("span",{className:"font-semibold text-lg",children:s(l,p)})]}),r(i,{})]})}o(N,"CostCalculatorGrossSalary");export{N as a};
2
- //# sourceMappingURL=chunk-4OKR4SU7.js.map
1
+ import{a as m}from"./chunk-ZE3YT3Q6.js";import{a as i}from"./chunk-XJVYASHX.js";import{a as e}from"./chunk-NBCZF2FO.js";import{a}from"./chunk-N5I33LIN.js";import{b as n}from"./chunk-7VUILYZ3.js";import{b as s}from"./chunk-3LOVCTCN.js";import{a as o}from"./chunk-P37U34EQ.js";import{Info as f}from"lucide-react";import{Fragment as y,jsx as r,jsxs as t}from"react/jsx-runtime";function N({grossSalary:l,currency:p,hasExtraStatutoryPayment:c=!1}){return t("div",{children:[t("div",{className:"flex justify-between items-center mb-2",children:[t("div",{className:"flex items-center gap-2",children:[r("h3",{className:"font-medium text-primary-foreground",children:"Gross Salary"}),c&&r(m,{content:t(y,{children:[r("span",{children:"This country respects extra payments on top of the gross salary."})," ",r(a,{zendeskId:e.extraPayments,children:"Learn more"})]}),children:t(n,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0 mt-2",children:[r(f,{className:"h-3 w-3 text-gray-400"}),r("span",{className:"sr-only",children:"Info"})]})})]}),r("span",{className:"font-semibold text-lg",children:s(l,p)})]}),r(i,{})]})}o(N,"CostCalculatorGrossSalary");export{N as a};
2
+ //# sourceMappingURL=chunk-4R3ITKOA.js.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-ZE3YT3Q6.js";import{a as p}from"./chunk-XJVYASHX.js";import{a as i}from"./chunk-U4YEXSAO.js";import{b as m}from"./chunk-7VUILYZ3.js";import{b as a}from"./chunk-3LOVCTCN.js";import{a as o}from"./chunk-P37U34EQ.js";import{Info as f}from"lucide-react";import{Fragment as d,jsx as e,jsxs as s}from"react/jsx-runtime";function B({contributionsTotal:u,currency:n,contributionsBreakdown:r}){return s("div",{children:[s("div",{className:"flex justify-between items-center mb-2",children:[e("h3",{className:"font-medium text-primary-foreground",children:"Employer Contributions"}),e("span",{className:"font-semibold text-lg",children:a(u,n)})]}),r?s(d,{children:[e(p,{className:"mb-3"}),e("div",{className:"space-y-3 pl-2",children:r.map((t,c)=>s("div",{className:"flex justify-between items-start text-sm",children:[s("div",{className:"flex items-start gap-2",children:[e("span",{children:t.name}),t.description&&e(l,{content:s(d,{children:[e("span",{children:t.description})," ",t.zendesk_article_url&&e(i,{zendeskId:Number(t.zendesk_article_id),children:"Learn more"})]}),children:s(m,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0",children:[e(f,{className:"h-3 w-3 text-gray-400"}),e("span",{className:"sr-only",children:"Info"})]})})]}),e("span",{children:a(t.amount,n)})]},c))})]}):null]})}o(B,"CostCalculatorContributionsBreakdown");export{B as a};
2
- //# sourceMappingURL=chunk-56JXUCOX.js.map
1
+ import{a as l}from"./chunk-ZE3YT3Q6.js";import{a as p}from"./chunk-XJVYASHX.js";import{a as i}from"./chunk-N5I33LIN.js";import{b as m}from"./chunk-7VUILYZ3.js";import{b as a}from"./chunk-3LOVCTCN.js";import{a as o}from"./chunk-P37U34EQ.js";import{Info as f}from"lucide-react";import{Fragment as d,jsx as e,jsxs as s}from"react/jsx-runtime";function B({contributionsTotal:u,currency:n,contributionsBreakdown:r}){return s("div",{children:[s("div",{className:"flex justify-between items-center mb-2",children:[e("h3",{className:"font-medium text-primary-foreground",children:"Employer Contributions"}),e("span",{className:"font-semibold text-lg",children:a(u,n)})]}),r?s(d,{children:[e(p,{className:"mb-3"}),e("div",{className:"space-y-3 pl-2",children:r.map((t,c)=>s("div",{className:"flex justify-between items-start text-sm",children:[s("div",{className:"flex items-start gap-2",children:[e("span",{children:t.name}),t.description&&e(l,{content:s(d,{children:[e("span",{children:t.description})," ",t.zendesk_article_url&&e(i,{zendeskId:Number(t.zendesk_article_id),children:"Learn more"})]}),children:s(m,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0",children:[e(f,{className:"h-3 w-3 text-gray-400"}),e("span",{className:"sr-only",children:"Info"})]})})]}),e("span",{children:a(t.amount,n)})]},c))})]}):null]})}o(B,"CostCalculatorContributionsBreakdown");export{B as a};
2
+ //# sourceMappingURL=chunk-6NKUEDYP.js.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-NBCZF2FO.js";import{a}from"./chunk-5EDFVFNU.js";import{a as c}from"./chunk-U4YEXSAO.js";import{c as t}from"./chunk-3BREUYLG.js";import{a as i}from"./chunk-P37U34EQ.js";import{useEffect as u}from"react";import{Fragment as _,jsx as m,jsxs as N}from"react/jsx-runtime";var k=i(({currencies:{from:d,to:y},shouldSwapOrder:e,salary_conversion_properties:s,conversionType:F="no_spread",defaultValue:r,...o})=>{let{setValue:n,getValues:p}=t(),v={label:s?.label||"Salary conversion",description:s?.description||N(_,{children:["The conversion is based on the Remote FX rate."," ",m(c,{className:"text-sm",zendeskId:l.remoteFxRate,children:"Learn more \u2197"})]})},g=e?"salary_conversion":o.name,f=e?o.name:"salary_conversion";return u(()=>{e&&r&&(n("salary_conversion",r),n("salary_converted","salary_conversion"))},[e,r,n,p]),m(a,{...o,sourceCurrency:d,targetCurrency:y,mainFieldName:g,conversionFieldName:f,conversionProperties:v,classNamePrefix:"RemoteFlows-Salary",conversionType:F})},"SalaryField");export{k as a};
2
- //# sourceMappingURL=chunk-RJRLHA3V.js.map
1
+ import{a as l}from"./chunk-NBCZF2FO.js";import{a}from"./chunk-5EDFVFNU.js";import{a as c}from"./chunk-N5I33LIN.js";import{c as t}from"./chunk-3BREUYLG.js";import{a as i}from"./chunk-P37U34EQ.js";import{useEffect as u}from"react";import{Fragment as _,jsx as m,jsxs as N}from"react/jsx-runtime";var k=i(({currencies:{from:d,to:y},shouldSwapOrder:e,salary_conversion_properties:s,conversionType:F="no_spread",defaultValue:r,...o})=>{let{setValue:n,getValues:p}=t(),v={label:s?.label||"Salary conversion",description:s?.description||N(_,{children:["The conversion is based on the Remote FX rate."," ",m(c,{className:"text-sm",zendeskId:l.remoteFxRate,children:"Learn more \u2197"})]})},g=e?"salary_conversion":o.name,f=e?o.name:"salary_conversion";return u(()=>{e&&r&&(n("salary_conversion",r),n("salary_converted","salary_conversion"))},[e,r,n,p]),m(a,{...o,sourceCurrency:d,targetCurrency:y,mainFieldName:g,conversionFieldName:f,conversionProperties:v,classNamePrefix:"RemoteFlows-Salary",conversionType:F})},"SalaryField");export{k as a};
2
+ //# sourceMappingURL=chunk-GBN2V7QZ.js.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-ZE3YT3Q6.js";import{a as l}from"./chunk-XJVYASHX.js";import{a as o}from"./chunk-U4YEXSAO.js";import{b as i}from"./chunk-7VUILYZ3.js";import{b as a}from"./chunk-3LOVCTCN.js";import{a as r}from"./chunk-P37U34EQ.js";import{Info as u}from"lucide-react";import{Fragment as f,jsx as e,jsxs as t}from"react/jsx-runtime";function w({benefitsTotal:d,benefitsBreakdown:p,currency:n}){return t("div",{children:[t("div",{className:"flex justify-between items-center mb-2",children:[e("h3",{className:"font-medium text-primary-foreground-800",children:"Benefits"}),e("span",{className:"font-semibold text-lg",children:a(d,n)})]}),e(l,{className:"mb-3"}),e("div",{className:"space-y-3 pl-2",children:p.map((s,c)=>t("div",{className:"flex justify-between items-start text-sm",children:[t("div",{className:"flex items-start gap-2",children:[e("span",{children:s.name}),s.description&&e(m,{content:t(f,{children:[e("span",{children:s.description})," ",s.zendesk_article_url&&e(o,{zendeskId:Number(s.zendesk_article_id),children:"Learn more"})]}),children:t(i,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0",children:[e(u,{className:"h-3 w-3 text-gray-400"}),e("span",{className:"sr-only",children:"Info"})]})})]}),e("span",{children:a(s.amount,n)})]},c))})]})}r(w,"CostCalculatorBenefitsBreakdown");export{w as a};
2
- //# sourceMappingURL=chunk-HH6GIAMX.js.map
1
+ import{a as m}from"./chunk-ZE3YT3Q6.js";import{a as l}from"./chunk-XJVYASHX.js";import{a as o}from"./chunk-N5I33LIN.js";import{b as i}from"./chunk-7VUILYZ3.js";import{b as a}from"./chunk-3LOVCTCN.js";import{a as r}from"./chunk-P37U34EQ.js";import{Info as u}from"lucide-react";import{Fragment as f,jsx as e,jsxs as t}from"react/jsx-runtime";function w({benefitsTotal:d,benefitsBreakdown:p,currency:n}){return t("div",{children:[t("div",{className:"flex justify-between items-center mb-2",children:[e("h3",{className:"font-medium text-primary-foreground-800",children:"Benefits"}),e("span",{className:"font-semibold text-lg",children:a(d,n)})]}),e(l,{className:"mb-3"}),e("div",{className:"space-y-3 pl-2",children:p.map((s,c)=>t("div",{className:"flex justify-between items-start text-sm",children:[t("div",{className:"flex items-start gap-2",children:[e("span",{children:s.name}),s.description&&e(m,{content:t(f,{children:[e("span",{children:s.description})," ",s.zendesk_article_url&&e(o,{zendeskId:Number(s.zendesk_article_id),children:"Learn more"})]}),children:t(i,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0",children:[e(u,{className:"h-3 w-3 text-gray-400"}),e("span",{className:"sr-only",children:"Info"})]})})]}),e("span",{children:a(s.amount,n)})]},c))})]})}r(w,"CostCalculatorBenefitsBreakdown");export{w as a};
2
+ //# sourceMappingURL=chunk-H4KE45NG.js.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-DYB3RWP7.js";import{a as p}from"./chunk-LBUNJ5J3.js";import{a as i,b as l,c as s,d as n,e as c,f as m,g as d}from"./chunk-ANXYPRBG.js";import{b as o}from"./chunk-7VUILYZ3.js";import{a as t}from"./chunk-P37U34EQ.js";import{X as u}from"lucide-react";import{jsx as r,jsxs as a}from"react/jsx-runtime";var y=t(({label:D="Disclaimer"})=>a(i,{children:[r(l,{asChild:!0,children:r(o,{variant:"link",size:"link",children:D})}),a(n,{children:[a(c,{children:[a(s,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r(u,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Close"})]}),r(m,{children:e?.data.title}),a(d,{children:["For more details read our"," ",r(o,{variant:"link",size:"link",asChild:!0,children:r("a",{href:e?.data.html_url,target:"_blank",rel:"noopener noreferrer",children:"Disclaimer"})})]})]}),r(p,{className:"px-4 pb-4 overflow-y-auto max-h-[calc(80vh-120px)] cost-calculator-disclaimer-drawer-scroll-area",children:r("div",{className:"cost-calculator-disclaimer-drawer-body",dangerouslySetInnerHTML:{__html:e?.data.body??""}})})]})]}),"CostCalculatorDisclaimer");export{y as a};
2
+ //# sourceMappingURL=chunk-HQI6W7PR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flows/CostCalculator/CostCalculatorDisclaimer.tsx"],"sourcesContent":["import {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from '@/src/components/ui/drawer';\nimport { ScrollArea } from '@/src/components/ui/scroll-area';\nimport { X } from 'lucide-react';\nimport { Button } from '@/src/components/ui/button';\nimport { disclaimerData } from '@/src/flows/CostCalculator/disclaimerUtils';\n\ntype CostCalculatorDisclaimerProps = {\n label?: string;\n};\n\nexport const CostCalculatorDisclaimer = ({\n label = 'Disclaimer',\n}: CostCalculatorDisclaimerProps) => {\n return (\n <Drawer>\n <DrawerTrigger asChild>\n <Button variant='link' size='link'>\n {label}\n </Button>\n </DrawerTrigger>\n <DrawerContent>\n <DrawerHeader>\n <DrawerClose className='absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none'>\n <X className='h-4 w-4' />\n <span className='sr-only'>Close</span>\n </DrawerClose>\n <DrawerTitle>{disclaimerData?.data.title}</DrawerTitle>\n <DrawerDescription>\n For more details read our{' '}\n <Button variant='link' size='link' asChild>\n <a\n href={disclaimerData?.data.html_url}\n target='_blank'\n rel='noopener noreferrer'\n >\n Disclaimer\n </a>\n </Button>\n </DrawerDescription>\n </DrawerHeader>\n <ScrollArea className='px-4 pb-4 overflow-y-auto max-h-[calc(80vh-120px)] cost-calculator-disclaimer-drawer-scroll-area'>\n <div\n className='cost-calculator-disclaimer-drawer-body'\n dangerouslySetInnerHTML={{\n __html: disclaimerData?.data.body ?? '',\n }}\n ></div>\n </ScrollArea>\n </DrawerContent>\n </Drawer>\n );\n};\n"],"mappings":"kPAUA,OAAS,KAAAA,MAAS,eAcV,cAAAC,EAME,QAAAC,MANF,oBAND,IAAMC,EAA2BC,EAAA,CAAC,CACvC,MAAAC,EAAQ,YACV,IAEIH,EAACI,EAAA,CACC,UAAAL,EAACM,EAAA,CAAc,QAAO,GACpB,SAAAN,EAACO,EAAA,CAAO,QAAQ,OAAO,KAAK,OACzB,SAAAH,EACH,EACF,EACAH,EAACO,EAAA,CACC,UAAAP,EAACQ,EAAA,CACC,UAAAR,EAACS,EAAA,CAAY,UAAU,4MACrB,UAAAV,EAACW,EAAA,CAAE,UAAU,UAAU,EACvBX,EAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,EACAA,EAACY,EAAA,CAAa,SAAAC,GAAgB,KAAK,MAAM,EACzCZ,EAACa,EAAA,CAAkB,sCACS,IAC1Bd,EAACO,EAAA,CAAO,QAAQ,OAAO,KAAK,OAAO,QAAO,GACxC,SAAAP,EAAC,KACC,KAAMa,GAAgB,KAAK,SAC3B,OAAO,SACP,IAAI,sBACL,sBAED,EACF,GACF,GACF,EACAb,EAACe,EAAA,CAAW,UAAU,mGACpB,SAAAf,EAAC,OACC,UAAU,yCACV,wBAAyB,CACvB,OAAQa,GAAgB,KAAK,MAAQ,EACvC,EACD,EACH,GACF,GACF,EAvCoC","names":["X","jsx","jsxs","CostCalculatorDisclaimer","__name","label","Drawer","DrawerTrigger","Button","DrawerContent","DrawerHeader","DrawerClose","X","DrawerTitle","disclaimerData","DrawerDescription","ScrollArea"]}
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-ZE3YT3Q6.js";import{a as l}from"./chunk-XJVYASHX.js";import{a as o}from"./chunk-U4YEXSAO.js";import{b as i}from"./chunk-7VUILYZ3.js";import{b as r}from"./chunk-3LOVCTCN.js";import{a as n}from"./chunk-P37U34EQ.js";import{Info as p}from"lucide-react";import{Fragment as f,jsx as t,jsxs as e}from"react/jsx-runtime";function B({extraStatutoryPaymentsTotal:d,extraStatutoryPaymentsBreakdown:u,currency:s}){return e("div",{children:[e("div",{className:"flex justify-between items-center mb-2",children:[t("h3",{className:"font-medium text-primary-foreground-800",children:"Extra Statutory Payments"}),t("span",{className:"font-semibold text-lg",children:r(d,s)})]}),t(l,{className:"mb-3"}),t("div",{className:"space-y-3 pl-2",children:u.map((a,c)=>e("div",{className:"flex justify-between items-start text-sm",children:[e("div",{className:"flex items-start gap-2",children:[t("span",{children:a.name}),a.description&&t(m,{content:e(f,{children:[t("span",{children:a.description})," ",a.zendesk_article_url&&t(o,{zendeskId:Number(a.zendesk_article_id),children:"Learn more"})]}),children:e(i,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0",children:[t(p,{className:"h-3 w-3 text-gray-400"}),t("span",{className:"sr-only",children:"Info"})]})})]}),t("span",{children:r(a.amount,s)})]},c))})]})}n(B,"CostCalculatorExtraStatutoryPaymentsBreakdown");export{B as a};
2
- //# sourceMappingURL=chunk-FH3NC6AK.js.map
1
+ import{a as m}from"./chunk-ZE3YT3Q6.js";import{a as l}from"./chunk-XJVYASHX.js";import{a as o}from"./chunk-N5I33LIN.js";import{b as i}from"./chunk-7VUILYZ3.js";import{b as r}from"./chunk-3LOVCTCN.js";import{a as n}from"./chunk-P37U34EQ.js";import{Info as p}from"lucide-react";import{Fragment as f,jsx as t,jsxs as e}from"react/jsx-runtime";function B({extraStatutoryPaymentsTotal:d,extraStatutoryPaymentsBreakdown:u,currency:s}){return e("div",{children:[e("div",{className:"flex justify-between items-center mb-2",children:[t("h3",{className:"font-medium text-primary-foreground-800",children:"Extra Statutory Payments"}),t("span",{className:"font-semibold text-lg",children:r(d,s)})]}),t(l,{className:"mb-3"}),t("div",{className:"space-y-3 pl-2",children:u.map((a,c)=>e("div",{className:"flex justify-between items-start text-sm",children:[e("div",{className:"flex items-start gap-2",children:[t("span",{children:a.name}),a.description&&t(m,{content:e(f,{children:[t("span",{children:a.description})," ",a.zendesk_article_url&&t(o,{zendeskId:Number(a.zendesk_article_id),children:"Learn more"})]}),children:e(i,{variant:"ghost",size:"icon",className:"h-4 w-4 p-0",children:[t(p,{className:"h-3 w-3 text-gray-400"}),t("span",{className:"sr-only",children:"Info"})]})})]}),t("span",{children:r(a.amount,s)})]},c))})]})}n(B,"CostCalculatorExtraStatutoryPaymentsBreakdown");export{B as a};
2
+ //# sourceMappingURL=chunk-I2A4EFDY.js.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-3LOVCTCN.js";import*as c from"react";import*as r from"@radix-ui/react-scroll-area";import{jsx as l,jsxs as n}from"react/jsx-runtime";var S=c.forwardRef(({className:o,children:e,...i},a)=>n(r.Root,{ref:a,className:t("relative overflow-hidden",o),...i,children:[l(r.Viewport,{className:"h-full w-full rounded-[inherit]",children:e}),l(m,{}),l(r.Corner,{})]}));S.displayName=r.Root.displayName;var m=c.forwardRef(({className:o,orientation:e="vertical",...i},a)=>l(r.ScrollAreaScrollbar,{ref:a,orientation:e,className:t("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",o),...i,children:l(r.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));m.displayName=r.ScrollAreaScrollbar.displayName;export{S as a};
2
+ //# sourceMappingURL=chunk-LBUNJ5J3.js.map
@@ -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 H}from"./chunk-RJRLHA3V.js";import{a as D}from"./chunk-6YKL7EOK.js";import{a as N,b as K,c as G,e as z}from"./chunk-5E44DBDD.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-LUG32IOD.js.map
1
+ import{a as H}from"./chunk-GBN2V7QZ.js";import{a as D}from"./chunk-6YKL7EOK.js";import{a as N,b as K,c as G,e as z}from"./chunk-5E44DBDD.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-LPFDPXCW.js.map
@@ -1,2 +1,2 @@
1
- import{a as S}from"./chunk-E5YN6OT3.js";import{a as v}from"./chunk-HH6GIAMX.js";import{a as B}from"./chunk-56JXUCOX.js";import{a as N}from"./chunk-FH3NC6AK.js";import{a as R}from"./chunk-4OKR4SU7.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-UPE5ZMB5.js.map
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{a as w,b as R,c as x,d as A}from"./chunk-4RULC3AZ.js";import{a as C}from"./chunk-ZE3YT3Q6.js";import{a as f}from"./chunk-NBCZF2FO.js";import{a as F}from"./chunk-UHS3QRA3.js";import{a as b}from"./chunk-U4YEXSAO.js";import{b as k}from"./chunk-7VUILYZ3.js";import{a as c,b as n}from"./chunk-3LOVCTCN.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as D}from"lucide-react";import{useState as H}from"react";import{Fragment as M,jsx as y,jsxs as T}from"react/jsx-runtime";function B({actions:e=[],className:s}){let[a,l]=H(!1);return T("div",{className:c("relative",s),children:[y(k,{variant:"ghost",className:"h-8 w-8 p-0",onClick:()=>l(!a),children:y(D,{className:"h-4 w-4"})}),a&&T(M,{children:[y("div",{className:"fixed inset-0 z-40",onClick:()=>l(!1)}),y("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((i,_)=>y("button",{className:c("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",i.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{i.onClick(),l(!1)},disabled:i.disabled,children:i.label},_))})]})]})}m(B,"ActionsDropdown");import{ChevronDown as I,Info as S}from"lucide-react";import P from"react-flagpack";import{useState as O}from"react";import{Fragment as p,jsx as o,jsxs as t}from"react/jsx-runtime";var U=m(({title:e,country:s,region:a,onDelete:l,onExportPdf:i})=>{let _=[{label:"Edit",onClick:m(()=>{},"onClick"),disabled:!0},{label:"Export",onClick:i},{label:"Delete",onClick:l}];return t("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[t("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-12 w-12 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(P,{code:s.alpha_2_code})}),t("div",{className:"space-y-1",children:[o("h2",{className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),t("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[s.name," ",a?` (${a.name})`:""]})]})]}),o(B,{className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:_})]})},"EstimationResultsHeader"),j=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept our Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrolment.",zendeskArticleId:f.employeeOnboardingTimeline}),"getOnboardingTimelineData");function G({minimumOnboardingDays:e,data:s,className:a}){return o(w,{type:"single",collapsible:!0,className:c("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:t(R,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(x,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:t("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),t("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),t(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:s.steps.map(l=>t("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),t("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[s.helpText,s.zendeskArticleId&&o(b,{zendeskId:s.zendeskArticleId,children:"Learn more"})]})]})]})})}m(G,"OnboardingTimeline");function Z({className:e,countryBenefitsUrl:s,countryGuideUrl:a,country:l}){return o(w,{type:"single",collapsible:!0,className:c("RemoteFlows__EstimationResults__HiringSection w-full",e),children:t(R,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(x,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:t("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:t("div",{className:"flex flex-col gap-1",children:[o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),o("a",{href:s,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(Z,"HiringSection");function $({isMultipleCurrency:e,className:s}){return t("div",{className:c("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",s),children:[o("span",{"aria-hidden":!0}),e?t(p,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):t(p,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m($,"EstimationHeaders");function E({label:e,amounts:s,className:a,children:l}){let[i,_]=O(!0);return t("div",{className:c("RemoteFlows__EstimationResults__Row",a),children:[t("div",{className:"grid grid-cols-3 items-center",children:[t("div",{className:"flex items-center gap-2",children:[o("span",{className:c("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>_(!i),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(I,{className:`h-4 w-4 text-muted-foreground transition-transform ${i?"rotate-180":""}`})})]}),Array.isArray(s)?s.map((u,g)=>o("span",{className:c("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:u},g)):t(p,{children:[o("span",{}),o("span",{className:c("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:s})]})]}),i&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(E,"EstimationRow");function V({item:e,isMultipleCurrency:s,level:a=0}){let[l,i]=O(!1),_=e.children&&e.children.length>0,u=a>0;return t("li",{className:c("RemoteFlows__BreakdownList__Item pb-3",u&&"pb-1"),children:[t("div",{className:c(s?"grid grid-cols-3 items-center justify-between":"grid grid-cols-2 items-center justify-between"),children:[t("div",{className:c("flex items-center gap-2",u&&"pl-3"),children:[!u&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),o("span",{className:c(u?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),e.tooltip&&o(C,{content:t(p,{children:[o("span",{children:e.tooltip})," ",e.zendeskId&&o(b,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o(S,{className:c("text-muted-foreground",u?"h-3 w-3":"h-4 w-4")})})}),(e.isCollapsible||_)&&o("button",{onClick:()=>i(!l),className:"RemoteFlows__BreakdownList__CollapsibleButton p-1 hover:bg-gray-100 rounded",children:o(I,{className:`h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})})]}),s?t(p,{children:[o("span",{className:c("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",u?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{className:c("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",u?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{className:c("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",u?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),_&&l&&o("div",{className:"mt-1",children:o(N,{items:e.children,isMultipleCurrency:s,level:a+1})})]})}m(V,"BreakdownListItem");function N({items:e,isMultipleCurrency:s,className:a,level:l}){return o("ul",{className:c("RemoteFlows__BreakdownList list-none",a),children:e.map((i,_)=>o(V,{item:i,isMultipleCurrency:s,level:l},_))})}m(N,"BreakdownList");var me=m(({estimation:e,title:s,components:a,onDelete:l,onExportPdf:i})=>{let _=a?.HiringSection||Z,u=a?.OnboardingTimeline||G,g=a?.Header||U,h=a?.Footer,L=j(),d=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,v=e.employer_currency_costs.monthly_management_fee,z=e.region.code!==e.country.code;return t(F,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(g,{title:s,region:z?e.region:void 0,country:e.country,onDelete:l,onExportPdf:i})}),t("div",{className:"RemoteFlows__Separator",children:[o($,{isMultipleCurrency:d,className:"mb-3"}),o(E,{label:"Monthly total cost",amounts:d?[n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.symbol),n(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.symbol)]:n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.symbol),children:o(N,{items:[{label:"Gross monthly salary",regionalAmount:n(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.symbol),zendeskId:f.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.monthly_contributions_breakdown?.map(r=>({label:r.name,regionalAmount:n(r.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(r.amount,e.employer_currency_costs.currency.symbol),zendeskId:r.zendesk_article_id||void 0,tooltip:r.description||void 0}))||[]},{label:"Core benefits",regionalAmount:n(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.monthly_benefits_breakdown?.map(r=>({label:r.name,regionalAmount:n(r.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(r.amount,e.employer_currency_costs.currency.symbol),zendeskId:r.zendesk_article_id||void 0,tooltip:r.description||void 0}))||[]},...v?[{label:"Management fee",regionalAmount:n(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.symbol),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:d})})]}),o("div",{className:"RemoteFlows__Separator",children:o(E,{label:"Annual total cost",amounts:d?[n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.symbol),n(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.symbol)]:n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.symbol),children:o(N,{items:[{label:"Annual gross salary",regionalAmount:n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.symbol)},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.annual_contributions_breakdown?.map(r=>({label:r.name,regionalAmount:n(r.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(r.amount,e.employer_currency_costs.currency.symbol),zendeskId:r.zendesk_article_id||void 0,tooltip:r.description||void 0}))||[]},{label:"Core benefits",regionalAmount:n(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.annual_benefits_breakdown?.map(r=>({label:r.name,regionalAmount:n(r.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(r.amount,e.employer_currency_costs.currency.symbol),zendeskId:r.zendesk_article_id||void 0,tooltip:r.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map(r=>({label:r.name,regionalAmount:n(r.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(r.amount,e.employer_currency_costs.currency.symbol),zendeskId:r.zendesk_article_id||void 0,tooltip:r.description||void 0}))||[]},...v?[{label:"Management fee",regionalAmount:n(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.symbol),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:d})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:L})}),o(_,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),h&&o(h,{})]})},"EstimationResults");export{me as a};
2
- //# sourceMappingURL=chunk-GKT5UHG4.js.map
1
+ import{a as w,b as R,c as x,d as A}from"./chunk-4RULC3AZ.js";import{a as C}from"./chunk-ZE3YT3Q6.js";import{a as f}from"./chunk-NBCZF2FO.js";import{a as F}from"./chunk-UHS3QRA3.js";import{a as b}from"./chunk-N5I33LIN.js";import{b as k}from"./chunk-7VUILYZ3.js";import{a as c,b as n}from"./chunk-3LOVCTCN.js";import{a as m}from"./chunk-P37U34EQ.js";import{MoreHorizontal as D}from"lucide-react";import{useState as H}from"react";import{Fragment as M,jsx as y,jsxs as T}from"react/jsx-runtime";function B({actions:e=[],className:s}){let[a,l]=H(!1);return T("div",{className:c("relative",s),children:[y(k,{variant:"ghost",className:"h-8 w-8 p-0",onClick:()=>l(!a),children:y(D,{className:"h-4 w-4"})}),a&&T(M,{children:[y("div",{className:"fixed inset-0 z-40",onClick:()=>l(!1)}),y("div",{className:"absolute right-0 top-1/2 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[120px]",children:e.map((i,_)=>y("button",{className:c("w-full text-left px-2 py-1.5 text-sm hover:bg-gray-100",i.disabled&&"opacity-50 cursor-not-allowed"),onClick:()=>{i.onClick(),l(!1)},disabled:i.disabled,children:i.label},_))})]})]})}m(B,"ActionsDropdown");import{ChevronDown as I,Info as S}from"lucide-react";import P from"react-flagpack";import{useState as O}from"react";import{Fragment as p,jsx as o,jsxs as t}from"react/jsx-runtime";var U=m(({title:e,country:s,region:a,onDelete:l,onExportPdf:i})=>{let _=[{label:"Edit",onClick:m(()=>{},"onClick"),disabled:!0},{label:"Export",onClick:i},{label:"Delete",onClick:l}];return t("div",{className:"RemoteFlows__EstimationResults__Header flex justify-between",children:[t("div",{className:"flex flex-row items-center gap-6",children:[o("div",{className:"RemoteFlows__EstimationResultsHeader__FlagContainer flex h-12 w-12 items-center justify-center rounded-lg bg-[#F4F4F5]",children:o(P,{code:s.alpha_2_code})}),t("div",{className:"space-y-1",children:[o("h2",{className:"RemoteFlows__EstimationResultsHeader__Title text-lg font-medium leading-none text-[#181818]",children:e}),t("p",{className:"RemoteFlows__EstimationResultsHeader__Country text-xs text-[#71717A]",children:[s.name," ",a?` (${a.name})`:""]})]})]}),o(B,{className:"RemoteFlows__EstimationResults__ActionsDropdown",actions:_})]})},"EstimationResultsHeader"),j=m(()=>({steps:[{id:"add-employment-details",title:"Add employment details",description:"You add employee employments details."},{id:"invite-employee",title:"Invite employee",description:"Hire receives an email invitation from Remote to start the self-enrollment process."},{id:"verify-information",title:"Verify information",description:"Remote prepares the Employment Agreement and verifies all the information."},{id:"sign-contract",title:"Sign contract",description:"All parties sign the Employment Agreement and are ready to start. \u{1F389}"}],helpText:"For customers who accept our Terms of Service (ToS), the employee onboarding timeline starts once the employee has been invited to the platform and completed self enrolment.",zendeskArticleId:f.employeeOnboardingTimeline}),"getOnboardingTimelineData");function G({minimumOnboardingDays:e,data:s,className:a}){return o(w,{type:"single",collapsible:!0,className:c("RemoteFlows__EstimationResults__OnboardingTimeline w-full",a),children:t(R,{value:"timeline",className:"RemoteFlows__OnboardingTimeline__AccordionItem border-border",children:[o(x,{className:"RemoteFlows__OnboardingTimeline__AccordionTrigger hover:no-underline px-0 py-4",children:t("div",{className:"flex items-center justify-between w-full",children:[o("span",{className:"RemoteFlows__OnboardingTimeline__Title text-base font-medium text-[#0F172A]",children:"Onboarding timeline"}),t("span",{className:"RemoteFlows__OnboardingTimeline__Description text-base text-muted-foreground mr-4",children:[e," days"]})]})}),t(A,{className:"px-0 pb-4",children:[o("ul",{className:"RemoteFlows__OnboardingTimeline__List list-disc list-inside space-y-2",children:s.steps.map(l=>t("li",{children:[o("strong",{className:"font-medium text-[#09090B]",children:l.title})," ","- ",l.description]},l.id))}),t("p",{className:"RemoteFlows__OnboardingTimeline__HelpText text-xs text-muted-foreground mt-4",children:[s.helpText,s.zendeskArticleId&&o(b,{zendeskId:s.zendeskArticleId,children:"Learn more"})]})]})]})})}m(G,"OnboardingTimeline");function Z({className:e,countryBenefitsUrl:s,countryGuideUrl:a,country:l}){return o(w,{type:"single",collapsible:!0,className:c("RemoteFlows__EstimationResults__HiringSection w-full",e),children:t(R,{value:"timeline",className:"RemoteFlows__HiringSection__AccordionItem border-border",children:[o(x,{className:"RemoteFlows__HiringSection__AccordionTrigger hover:no-underline px-0 py-4",children:o("div",{className:"flex items-center justify-between w-full",children:t("span",{className:"text-base font-medium text-[#0F172A]",children:["Hiring in ",l.name]})})}),o(A,{children:t("div",{className:"flex flex-col gap-1",children:[o("a",{href:a,target:"_blank",className:"RemoteFlows__Link",children:"Explore our complete guide \u2197"}),o("a",{href:s,target:"_blank",className:"RemoteFlows__Link",children:"Explore our available benefits \u2197"})]})})]})})}m(Z,"HiringSection");function $({isMultipleCurrency:e,className:s}){return t("div",{className:c("RemoteFlows__EstimationResults__Headers grid grid-cols-3 items-center",s),children:[o("span",{"aria-hidden":!0}),e?t(p,{children:[o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employee currency"}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Employer currency"})]}):t(p,{children:[o("span",{}),o("span",{className:"RemoteFlows__EstimationResults__Headers__Label",children:"Amount"})]})]})}m($,"EstimationHeaders");function E({label:e,amounts:s,className:a,children:l}){let[i,_]=O(!0);return t("div",{className:c("RemoteFlows__EstimationResults__Row",a),children:[t("div",{className:"grid grid-cols-3 items-center",children:[t("div",{className:"flex items-center gap-2",children:[o("span",{className:c("RemoteFlows__EstimationRow__Title min-w-[140px] font-medium text-[#09090B]"),children:e}),o("button",{onClick:()=>_(!i),className:"RemoteFlows__EstimationRow__CollapseButton p-1 hover:bg-gray-100 rounded",children:o(I,{className:`h-4 w-4 text-muted-foreground transition-transform ${i?"rotate-180":""}`})})]}),Array.isArray(s)?s.map((u,g)=>o("span",{className:c("RemoteFlows__EstimationRow__RegionalAmount text-right font-medium text-[#09090B]"),children:u},g)):t(p,{children:[o("span",{}),o("span",{className:c("RemoteFlows__EstimationRow__EmployerAmount text-right font-medium text-[#09090B]"),children:s})]})]}),i&&l&&o("div",{className:"RemoteFlows__EstimationRow__CollapsibleContent mt-4",children:l})]})}m(E,"EstimationRow");function V({item:e,isMultipleCurrency:s,level:a=0}){let[l,i]=O(!1),_=e.children&&e.children.length>0,u=a>0;return t("li",{className:c("RemoteFlows__BreakdownList__Item pb-3",u&&"pb-1"),children:[t("div",{className:c(s?"grid grid-cols-3 items-center justify-between":"grid grid-cols-2 items-center justify-between"),children:[t("div",{className:c("flex items-center gap-2",u&&"pl-3"),children:[!u&&o("span",{className:"RemoteFlows__BreakdownList__Bullet w-1 h-1 bg-[#09090B] rounded-full flex-shrink-0","aria-hidden":"true"}),o("span",{className:c(u?"RemoteFlows__BreakdownList__Text--Nested text-xs text-[#71717A]":"RemoteFlows__BreakdownList__Text--NotNested text-sm text-[#09090B]"),children:e.label}),e.tooltip&&o(C,{content:t(p,{children:[o("span",{children:e.tooltip})," ",e.zendeskId&&o(b,{zendeskId:Number(e.zendeskId),children:"Learn more"})]}),children:o("button",{className:"RemoteFlows__BreakdownList__InfoButton p-1 hover:bg-gray-100 rounded",children:o(S,{className:c("text-muted-foreground",u?"h-3 w-3":"h-4 w-4")})})}),(e.isCollapsible||_)&&o("button",{onClick:()=>i(!l),className:"RemoteFlows__BreakdownList__CollapsibleButton p-1 hover:bg-gray-100 rounded",children:o(I,{className:`h-3 w-3 text-muted-foreground transition-transform ${l?"rotate-180":""}`})})]}),s?t(p,{children:[o("span",{className:c("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",u?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"}),o("span",{className:c("RemoteFlows__BreakdownList__EmployerAmountText text-sm text-right",u?"RemoteFlows__BreakdownList__EmployerAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__EmployerAmountText--NotNested text-[#09090B]"),children:e.employerAmount||"\u2014"})]}):o("span",{className:c("RemoteFlows__BreakdownList__RegionalAmountText text-sm text-right",u?"RemoteFlows__BreakdownList__RegionalAmountText--Nested text-[#71717A]":"RemoteFlows__BreakdownList__RegionalAmountText--NotNested text-[#09090B]"),children:e.regionalAmount||"\u2014"})]}),_&&l&&o("div",{className:"mt-1",children:o(N,{items:e.children,isMultipleCurrency:s,level:a+1})})]})}m(V,"BreakdownListItem");function N({items:e,isMultipleCurrency:s,className:a,level:l}){return o("ul",{className:c("RemoteFlows__BreakdownList list-none",a),children:e.map((i,_)=>o(V,{item:i,isMultipleCurrency:s,level:l},_))})}m(N,"BreakdownList");var me=m(({estimation:e,title:s,components:a,onDelete:l,onExportPdf:i})=>{let _=a?.HiringSection||Z,u=a?.OnboardingTimeline||G,g=a?.Header||U,h=a?.Footer,L=j(),d=e.employer_currency_costs.currency.code!==e.regional_currency_costs.currency.code,v=e.employer_currency_costs.monthly_management_fee,z=e.region.code!==e.country.code;return t(F,{className:"RemoteFlows__EstimationResults__Card p-10",children:[o("div",{className:"RemoteFlows__Separator",children:o(g,{title:s,region:z?e.region:void 0,country:e.country,onDelete:l,onExportPdf:i})}),t("div",{className:"RemoteFlows__Separator",children:[o($,{isMultipleCurrency:d,className:"mb-3"}),o(E,{label:"Monthly total cost",amounts:d?[n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.symbol),n(e.employer_currency_costs.monthly_total,e.employer_currency_costs.currency.symbol)]:n(e.regional_currency_costs.monthly_total,e.regional_currency_costs.currency.symbol),children:o(N,{items:[{label:"Gross monthly salary",regionalAmount:n(e.regional_currency_costs.monthly_gross_salary,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_gross_salary,e.employer_currency_costs.currency.symbol),zendeskId:f.extraPayments.toString(),tooltip:"This country respects extra payments on top of the gross salary."},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.monthly_contributions_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_contributions_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.monthly_contributions_breakdown?.map(r=>({label:r.name,regionalAmount:n(r.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(r.amount,e.employer_currency_costs.currency.symbol),zendeskId:r.zendesk_article_id||void 0,tooltip:r.description||void 0}))||[]},{label:"Core benefits",regionalAmount:n(e.regional_currency_costs.monthly_benefits_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_benefits_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.monthly_benefits_breakdown?.map(r=>({label:r.name,regionalAmount:n(r.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(r.amount,e.employer_currency_costs.currency.symbol),zendeskId:r.zendesk_article_id||void 0,tooltip:r.description||void 0}))||[]},...v?[{label:"Management fee",regionalAmount:n(e.regional_currency_costs.monthly_management_fee,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.monthly_management_fee,e.employer_currency_costs.currency.symbol),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:d})})]}),o("div",{className:"RemoteFlows__Separator",children:o(E,{label:"Annual total cost",amounts:d?[n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.symbol),n(e.employer_currency_costs.annual_total,e.employer_currency_costs.currency.symbol)]:n(e.regional_currency_costs.annual_total,e.regional_currency_costs.currency.symbol),children:o(N,{items:[{label:"Annual gross salary",regionalAmount:n(e.regional_currency_costs.annual_gross_salary,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_gross_salary,e.employer_currency_costs.currency.symbol)},{label:"Mandatory employer costs",regionalAmount:n(e.regional_currency_costs.annual_contributions_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_contributions_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.annual_contributions_breakdown?.map(r=>({label:r.name,regionalAmount:n(r.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(r.amount,e.employer_currency_costs.currency.symbol),zendeskId:r.zendesk_article_id||void 0,tooltip:r.description||void 0}))||[]},{label:"Core benefits",regionalAmount:n(e.regional_currency_costs.annual_benefits_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_benefits_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.annual_benefits_breakdown?.map(r=>({label:r.name,regionalAmount:n(r.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(r.amount,e.employer_currency_costs.currency.symbol),zendeskId:r.zendesk_article_id||void 0,tooltip:r.description||void 0}))||[]},{label:"Extra statutory payments",regionalAmount:n(e.regional_currency_costs.extra_statutory_payments_total,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.extra_statutory_payments_total,e.employer_currency_costs.currency.symbol),children:e.employer_currency_costs.extra_statutory_payments_breakdown?.map(r=>({label:r.name,regionalAmount:n(r.amount,e.regional_currency_costs.currency.symbol),employerAmount:n(r.amount,e.employer_currency_costs.currency.symbol),zendeskId:r.zendesk_article_id||void 0,tooltip:r.description||void 0}))||[]},...v?[{label:"Management fee",regionalAmount:n(e.regional_currency_costs.annual_management_fee,e.regional_currency_costs.currency.symbol),employerAmount:n(e.employer_currency_costs.annual_management_fee,e.employer_currency_costs.currency.symbol),tooltip:"Discounts may be available based on your commitment and team size. Speak to your account or customer success manager to learn more."}]:[]],isMultipleCurrency:d})})}),o("div",{className:"RemoteFlows__Separator",children:o(u,{minimumOnboardingDays:e.minimum_onboarding_time,data:L})}),o(_,{countryBenefitsUrl:e.country_benefits_details_url,countryGuideUrl:e.country_guide_url,country:e.country}),h&&o(h,{})]})},"EstimationResults");export{me as a};
2
+ //# sourceMappingURL=chunk-QYJQNWPB.js.map
@@ -1,2 +1,2 @@
1
- import{c as f,d}from"./chunk-LUG32IOD.js";import{a as u}from"./chunk-HN5HLFTB.js";import{a as i}from"./chunk-KSHK3ZPX.js";import{b as g}from"./chunk-CFIJKJXD.js";import{f as m}from"./chunk-3BREUYLG.js";import{a as c}from"./chunk-P37U34EQ.js";import{useEffect as P,useId as _,useState as h}from"react";import{jsx as M}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:""},options:t,render:S,version:p="standard"})=>{let F=_(),[R,C]=h("USD"),v=c(l=>{C(l);let o=y(u,l,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=g(n.handleValidation),E=e.currencySlug?"":y(u,R,r.managementFees),a=m({resolver:K,defaultValues:{country:e?.countryRegionSlug,currency:e?.currencySlug,region:"",salary:e?.salary,salary_conversion:"",salary_converted:"",management:{management_fee:E}},shouldUnregister:!1,mode:"onBlur"});return P(()=>{if(e.currencySlug&&n.currencies&&r.includeManagementFee){let o=n.currencies.find(s=>s.value===e.currencySlug)?.label;if(o){C(o);let s=y(u,o,r.managementFees);a.setValue("management.management_fee",s)}}},[e.currencySlug,n.currencies,r.includeManagementFee,r.managementFees,a]),M(i.Provider,{value:{form:a,formId:F,costCalculatorBag:n},children:S(n)})},"CostCalculatorFlow");export{T as a};
2
- //# sourceMappingURL=chunk-5JT5MWOK.js.map
1
+ import{c as f,d}from"./chunk-LPFDPXCW.js";import{a as u}from"./chunk-HN5HLFTB.js";import{a as i}from"./chunk-KSHK3ZPX.js";import{b as g}from"./chunk-CFIJKJXD.js";import{f as m}from"./chunk-3BREUYLG.js";import{a as c}from"./chunk-P37U34EQ.js";import{useEffect as P,useId as _,useState as h}from"react";import{jsx as M}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:""},options:t,render:S,version:p="standard"})=>{let F=_(),[R,C]=h("USD"),v=c(l=>{C(l);let o=y(u,l,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=g(n.handleValidation),E=e.currencySlug?"":y(u,R,r.managementFees),a=m({resolver:K,defaultValues:{country:e?.countryRegionSlug,currency:e?.currencySlug,region:"",salary:e?.salary,salary_conversion:"",salary_converted:"",management:{management_fee:E}},shouldUnregister:!1,mode:"onBlur"});return P(()=>{if(e.currencySlug&&n.currencies&&r.includeManagementFee){let o=n.currencies.find(s=>s.value===e.currencySlug)?.label;if(o){C(o);let s=y(u,o,r.managementFees);a.setValue("management.management_fee",s)}}},[e.currencySlug,n.currencies,r.includeManagementFee,r.managementFees,a]),M(i.Provider,{value:{form:a,formId:F,costCalculatorBag:n},children:S(n)})},"CostCalculatorFlow");export{T as a};
2
+ //# sourceMappingURL=chunk-ZD644MH3.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-_c0f1E7h.js';
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-_c0f1E7h.js';
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-_c0f1E7h.js';
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-_c0f1E7h.js';
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-Zmw9pCN3.js';
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-_c0f1E7h.js';
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-_c0f1E7h.js';
7
+ import '../../types.gen-C9Y1S1pc.js';
8
8
  import 'react-hook-form';
9
9
  import './ContractAmendmentBack.js';
10
10
  import 'react';
@@ -1,4 +1,4 @@
1
- import { E as EmploymentShowResponse } from '../../types.gen-_c0f1E7h.js';
1
+ import { E as EmploymentShowResponse } from '../../types.gen-C9Y1S1pc.js';
2
2
  import { Fields } from '@remoteoss/json-schema-form';
3
3
  import { Step } from '../useStepState.js';
4
4
  import 'react';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-DL5PZWF7.js";import"../../chunk-DYB3RWP7.js";import"../../chunk-ANXYPRBG.js";import"../../chunk-7VUILYZ3.js";import"../../chunk-3LOVCTCN.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorDisclaimer};
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-_c0f1E7h.js';
6
+ import '../../types.gen-C9Y1S1pc.js';
7
7
  import '../types.js';
8
8
  import '@remoteoss/json-schema-form';
9
9
  import './constants.js';
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-5JT5MWOK.js";import"../../chunk-LUG32IOD.js";import"../../chunk-RJRLHA3V.js";import"../../chunk-NBCZF2FO.js";import"../../chunk-6YKL7EOK.js";import"../../chunk-5EDFVFNU.js";import"../../chunk-47VYBPE2.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-5E44DBDD.js";import"../../chunk-HN5HLFTB.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-U4YEXSAO.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};
1
+ import{a}from"../../chunk-ZD644MH3.js";import"../../chunk-LPFDPXCW.js";import"../../chunk-GBN2V7QZ.js";import"../../chunk-NBCZF2FO.js";import"../../chunk-6YKL7EOK.js";import"../../chunk-5EDFVFNU.js";import"../../chunk-47VYBPE2.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-5E44DBDD.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-_c0f1E7h.js';
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-_c0f1E7h.js';
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;
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-GKT5UHG4.js";import"../../../chunk-4RULC3AZ.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-NBCZF2FO.js";import"../../../chunk-UHS3QRA3.js";import"../../../chunk-U4YEXSAO.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};
1
+ import{a}from"../../../chunk-QYJQNWPB.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-HH6GIAMX.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-XJVYASHX.js";import"../../../chunk-U4YEXSAO.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};
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-56JXUCOX.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-XJVYASHX.js";import"../../../chunk-U4YEXSAO.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};
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-FH3NC6AK.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-XJVYASHX.js";import"../../../chunk-U4YEXSAO.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};
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-4OKR4SU7.js";import"../../../chunk-ZE3YT3Q6.js";import"../../../chunk-XJVYASHX.js";import"../../../chunk-NBCZF2FO.js";import"../../../chunk-U4YEXSAO.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};
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-_c0f1E7h.js';
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-UPE5ZMB5.js";import"../../../chunk-E5YN6OT3.js";import"../../../chunk-HH6GIAMX.js";import"../../../chunk-56JXUCOX.js";import"../../../chunk-FH3NC6AK.js";import"../../../chunk-4OKR4SU7.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-U4YEXSAO.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};
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,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { B as CostCalculatorEmployment } from '../../../types.gen-_c0f1E7h.js';
2
+ import { B as CostCalculatorEmployment } from '../../../types.gen-C9Y1S1pc.js';
3
3
 
4
4
  type SummaryResultsProps = {
5
5
  /**
@@ -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-_c0f1E7h.js';
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,8 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as JSFField } from '../../../remoteFlows-Zmw9pCN3.js';
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-RJRLHA3V.js";import"../../../chunk-NBCZF2FO.js";import"../../../chunk-5EDFVFNU.js";import"../../../chunk-47VYBPE2.js";import"../../../chunk-WVJDCDGZ.js";import"../../../chunk-U4YEXSAO.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};
1
+ import{a}from"../../../chunk-GBN2V7QZ.js";import"../../../chunk-NBCZF2FO.js";import"../../../chunk-5EDFVFNU.js";import"../../../chunk-47VYBPE2.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-_c0f1E7h.js';
6
- import { $ as $TSFixMe } from '../../remoteFlows-Zmw9pCN3.js';
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-_c0f1E7h.js';
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-LUG32IOD.js";import"../../chunk-RJRLHA3V.js";import"../../chunk-NBCZF2FO.js";import"../../chunk-6YKL7EOK.js";import"../../chunk-5EDFVFNU.js";import"../../chunk-47VYBPE2.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-5E44DBDD.js";import"../../chunk-HN5HLFTB.js";import"../../chunk-U4YEXSAO.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};
1
+ import{c as a,d as b}from"../../chunk-LPFDPXCW.js";import"../../chunk-GBN2V7QZ.js";import"../../chunk-NBCZF2FO.js";import"../../chunk-6YKL7EOK.js";import"../../chunk-5EDFVFNU.js";import"../../chunk-47VYBPE2.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-5E44DBDD.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
@@ -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-_c0f1E7h.js';
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-Zmw9pCN3.js';
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-UPE5ZMB5.js";import"../../chunk-E5YN6OT3.js";import{a as k}from"../../chunk-A3OEOVEH.js";import{a as j}from"../../chunk-GKT5UHG4.js";import"../../chunk-4RULC3AZ.js";import"../../chunk-HH6GIAMX.js";import"../../chunk-56JXUCOX.js";import"../../chunk-FH3NC6AK.js";import"../../chunk-4OKR4SU7.js";import"../../chunk-ZE3YT3Q6.js";import"../../chunk-NVMZDPMF.js";import"../../chunk-XJVYASHX.js";import{a as d}from"../../chunk-5JT5MWOK.js";import{b as a,d as c}from"../../chunk-LUG32IOD.js";import"../../chunk-RJRLHA3V.js";import"../../chunk-NBCZF2FO.js";import"../../chunk-6YKL7EOK.js";import"../../chunk-5EDFVFNU.js";import"../../chunk-47VYBPE2.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-5E44DBDD.js";import"../../chunk-HN5HLFTB.js";import"../../chunk-KSHK3ZPX.js";import{a as i}from"../../chunk-DL5PZWF7.js";import{a as h}from"../../chunk-DYB3RWP7.js";import"../../chunk-CRXPRR3R.js";import"../../chunk-UHS3QRA3.js";import"../../chunk-U4YEXSAO.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};
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-QYJQNWPB.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-ZD644MH3.js";import{b as a,d as c}from"../../chunk-LPFDPXCW.js";import"../../chunk-GBN2V7QZ.js";import"../../chunk-NBCZF2FO.js";import"../../chunk-6YKL7EOK.js";import"../../chunk-5EDFVFNU.js";import"../../chunk-47VYBPE2.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-5E44DBDD.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-_c0f1E7h.js';
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';