@remoteoss/remote-flows 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -80
- package/dist/{chunk-7RREQLI5.js → chunk-2FQ2KNP4.js} +2 -2
- package/dist/chunk-2Y3SXQ5B.js +2 -0
- package/dist/chunk-2Y3SXQ5B.js.map +1 -0
- package/dist/{chunk-KCXAXVC5.js → chunk-35RMJMSH.js} +2 -2
- package/dist/{chunk-OUI554QS.js → chunk-3CFU6LKQ.js} +2 -2
- package/dist/{chunk-2TILNBMK.js → chunk-3F77NXWU.js} +2 -2
- package/dist/{chunk-KY2JSZI3.js → chunk-3Z6AFLXW.js} +2 -2
- package/dist/{chunk-RNM46ZUE.js → chunk-44IOQYR2.js} +2 -2
- package/dist/chunk-5C3NU7R3.js +2 -0
- package/dist/chunk-5C3NU7R3.js.map +1 -0
- package/dist/{chunk-UTWP5CJZ.js → chunk-5DKNCKV7.js} +2 -2
- package/dist/{chunk-UTWP5CJZ.js.map → chunk-5DKNCKV7.js.map} +1 -1
- package/dist/{chunk-23OYALRY.js → chunk-5LSHRCAR.js} +2 -2
- package/dist/{chunk-GBZXVNGQ.js → chunk-6S6H4NAQ.js} +2 -2
- package/dist/{chunk-4STFNBEP.js → chunk-7COHIUGW.js} +2 -2
- package/dist/{chunk-5JLTIH7G.js → chunk-A3GZSC5Z.js} +2 -2
- package/dist/{chunk-3ALAJXRV.js → chunk-A65WMO6K.js} +2 -2
- package/dist/{chunk-2SO4LW7V.js → chunk-ARTSDUSS.js} +2 -2
- package/dist/chunk-ARTSDUSS.js.map +1 -0
- package/dist/{chunk-LJUHIEEZ.js → chunk-BL7OYWNX.js} +2 -2
- package/dist/{chunk-6SRDRMBU.js → chunk-C4DLDK36.js} +2 -2
- package/dist/{chunk-CDCKGIF5.js → chunk-DV6PCBAX.js} +2 -2
- package/dist/{chunk-5S66VYFD.js → chunk-EGRGQWIY.js} +2 -2
- package/dist/chunk-EGRGQWIY.js.map +1 -0
- package/dist/{chunk-CULOWG5X.js → chunk-EQOU2VPX.js} +2 -2
- package/dist/{chunk-MNSIBSAM.js → chunk-ETYRNQJJ.js} +2 -2
- package/dist/chunk-EYQ4PYUT.js +2 -0
- package/dist/chunk-EYQ4PYUT.js.map +1 -0
- package/dist/{chunk-OAPK6TR7.js → chunk-GCTHZSIN.js} +2 -2
- package/dist/{chunk-IOZFJ65G.js → chunk-GE5DH3UF.js} +2 -2
- package/dist/{chunk-XGVSEXYA.js → chunk-GHJBEQIR.js} +2 -2
- package/dist/{chunk-XQL5I2GC.js → chunk-GP6PRZVX.js} +2 -2
- package/dist/{chunk-A3K4Q2U6.js → chunk-HDNBZ6CB.js} +2 -2
- package/dist/{chunk-O37C4LZF.js → chunk-HZVYZQ3Z.js} +2 -2
- package/dist/{chunk-RVIGZOGF.js → chunk-IBHNWMMB.js} +2 -2
- package/dist/{chunk-FUMA5UUB.js → chunk-KKGRYDZA.js} +2 -2
- package/dist/{chunk-BAWJZ6MA.js → chunk-LG2LVO4C.js} +2 -2
- package/dist/{chunk-BEWGN2JK.js → chunk-LJVV6MMB.js} +2 -2
- package/dist/{chunk-E5PHO3SS.js → chunk-LKMPZJIW.js} +2 -2
- package/dist/chunk-LWGSXQKI.js +1 -0
- package/dist/chunk-LWGSXQKI.js.map +1 -0
- package/dist/{chunk-RTKKWC4M.js → chunk-MEZ7LYUK.js} +2 -2
- package/dist/{chunk-NS4FRCEH.js → chunk-N6BBMT7W.js} +2 -2
- package/dist/{chunk-QJ5MCAIN.js → chunk-NABPCULM.js} +2 -2
- package/dist/{chunk-3TZG2IN7.js → chunk-NDQ6UQFG.js} +2 -2
- package/dist/{chunk-QYWA5XM4.js → chunk-OFI5KLQ4.js} +2 -2
- package/dist/chunk-OKM7DRCF.js +2 -0
- package/dist/{chunk-FKLQBAJ5.js → chunk-OP72BS23.js} +2 -2
- package/dist/{chunk-ZPN5N6BA.js → chunk-OXL3QGHT.js} +2 -2
- package/dist/{chunk-HAV7FPRM.js → chunk-PZNXAOZH.js} +2 -2
- package/dist/{chunk-I4XJ764Y.js → chunk-QIVDIOJG.js} +2 -2
- package/dist/{chunk-JA7UP6GN.js → chunk-SXR333SU.js} +2 -2
- package/dist/{chunk-C74N2AWG.js → chunk-UA6MNQLD.js} +2 -2
- package/dist/{chunk-S2FD3J22.js → chunk-VBO75DXV.js} +2 -2
- package/dist/{chunk-5FYGD7NK.js → chunk-VXA6RPA5.js} +2 -2
- package/dist/{chunk-NFUP6BFU.js → chunk-W3YE53JN.js} +5 -5
- package/dist/chunk-W3YE53JN.js.map +1 -0
- package/dist/chunk-WCEHP5N7.js +2 -0
- package/dist/{chunk-E25DZ75Z.js.map → chunk-WCEHP5N7.js.map} +1 -1
- package/dist/{chunk-46FT5RHQ.js → chunk-Z2WV73EX.js} +2 -2
- package/dist/{chunk-BHYFPY64.js → chunk-Z6TCBVRG.js} +2 -2
- package/dist/{chunk-65HLULDL.js → chunk-ZYRGEEPU.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +3 -3
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/types.d.ts +2 -2
- package/dist/flows/ContractAmendment/utils.js +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +7 -7
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +7 -7
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +7 -7
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +7 -7
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/context.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/hooks.d.ts +7 -7
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +7 -7
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/types.d.ts +8 -8
- package/dist/flows/ContractorOnboarding/utils.d.ts +19 -1
- package/dist/flows/ContractorOnboarding/utils.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
- package/dist/flows/CostCalculator/api.d.ts +2 -2
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +3 -3
- package/dist/flows/CostCalculator/hooks.d.ts +3 -3
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +3 -3
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +2 -2
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +4 -4
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +4 -4
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +4 -4
- package/dist/flows/Onboarding/utils.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.d.ts +5 -5
- package/dist/flows/Termination/api.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +5 -5
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +5 -5
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +5 -5
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/context.d.ts +4 -4
- package/dist/flows/Termination/hooks.d.ts +4 -4
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +5 -5
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/types.d.ts +4 -4
- package/dist/flows/Termination/utils.d.ts +4 -4
- package/dist/flows/types.d.ts +2 -2
- package/dist/flows/utils.d.ts +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{mutations-CPqUOEmz.d.ts → mutations-C051uRcC.d.ts} +1 -1
- package/dist/{remoteFlows-CLgJcdkS.d.ts → remoteFlows-B9Nl1qjN.d.ts} +13 -5
- package/dist/styles.css +3 -0
- package/dist/styles.css.map +1 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.js +2 -0
- package/dist/styles.js.map +1 -0
- package/dist/{types-B_ZvICFS.d.ts → types-Ci-EdBDb.d.ts} +2 -2
- package/dist/{types-BGV7PQbp.d.ts → types-DqaKYRUE.d.ts} +1 -1
- package/dist/{types-epJRqrJU.d.ts → types-Dx-2ocvG.d.ts} +5 -5
- package/dist/types-ZWIpiFgj.d.ts +4 -0
- package/package.json +13 -2
- package/dist/chunk-2SO4LW7V.js.map +0 -1
- package/dist/chunk-5S66VYFD.js.map +0 -1
- package/dist/chunk-DRGQQXWZ.js +0 -2
- package/dist/chunk-DRGQQXWZ.js.map +0 -1
- package/dist/chunk-E25DZ75Z.js +0 -2
- package/dist/chunk-NFUP6BFU.js.map +0 -1
- package/dist/chunk-XOA7GG4P.js +0 -2
- package/dist/chunk-ZOTFS35J.js +0 -2
- package/dist/chunk-ZOTFS35J.js.map +0 -1
- package/dist/chunk-ZP2BE7U6.js +0 -2
- package/dist/chunk-ZP2BE7U6.js.map +0 -1
- package/dist/types-Zg1n_9wh.d.ts +0 -3
- /package/dist/{chunk-7RREQLI5.js.map → chunk-2FQ2KNP4.js.map} +0 -0
- /package/dist/{chunk-KCXAXVC5.js.map → chunk-35RMJMSH.js.map} +0 -0
- /package/dist/{chunk-OUI554QS.js.map → chunk-3CFU6LKQ.js.map} +0 -0
- /package/dist/{chunk-2TILNBMK.js.map → chunk-3F77NXWU.js.map} +0 -0
- /package/dist/{chunk-KY2JSZI3.js.map → chunk-3Z6AFLXW.js.map} +0 -0
- /package/dist/{chunk-RNM46ZUE.js.map → chunk-44IOQYR2.js.map} +0 -0
- /package/dist/{chunk-23OYALRY.js.map → chunk-5LSHRCAR.js.map} +0 -0
- /package/dist/{chunk-GBZXVNGQ.js.map → chunk-6S6H4NAQ.js.map} +0 -0
- /package/dist/{chunk-4STFNBEP.js.map → chunk-7COHIUGW.js.map} +0 -0
- /package/dist/{chunk-5JLTIH7G.js.map → chunk-A3GZSC5Z.js.map} +0 -0
- /package/dist/{chunk-3ALAJXRV.js.map → chunk-A65WMO6K.js.map} +0 -0
- /package/dist/{chunk-LJUHIEEZ.js.map → chunk-BL7OYWNX.js.map} +0 -0
- /package/dist/{chunk-6SRDRMBU.js.map → chunk-C4DLDK36.js.map} +0 -0
- /package/dist/{chunk-CDCKGIF5.js.map → chunk-DV6PCBAX.js.map} +0 -0
- /package/dist/{chunk-CULOWG5X.js.map → chunk-EQOU2VPX.js.map} +0 -0
- /package/dist/{chunk-MNSIBSAM.js.map → chunk-ETYRNQJJ.js.map} +0 -0
- /package/dist/{chunk-OAPK6TR7.js.map → chunk-GCTHZSIN.js.map} +0 -0
- /package/dist/{chunk-IOZFJ65G.js.map → chunk-GE5DH3UF.js.map} +0 -0
- /package/dist/{chunk-XGVSEXYA.js.map → chunk-GHJBEQIR.js.map} +0 -0
- /package/dist/{chunk-XQL5I2GC.js.map → chunk-GP6PRZVX.js.map} +0 -0
- /package/dist/{chunk-A3K4Q2U6.js.map → chunk-HDNBZ6CB.js.map} +0 -0
- /package/dist/{chunk-O37C4LZF.js.map → chunk-HZVYZQ3Z.js.map} +0 -0
- /package/dist/{chunk-RVIGZOGF.js.map → chunk-IBHNWMMB.js.map} +0 -0
- /package/dist/{chunk-FUMA5UUB.js.map → chunk-KKGRYDZA.js.map} +0 -0
- /package/dist/{chunk-BAWJZ6MA.js.map → chunk-LG2LVO4C.js.map} +0 -0
- /package/dist/{chunk-BEWGN2JK.js.map → chunk-LJVV6MMB.js.map} +0 -0
- /package/dist/{chunk-E5PHO3SS.js.map → chunk-LKMPZJIW.js.map} +0 -0
- /package/dist/{chunk-RTKKWC4M.js.map → chunk-MEZ7LYUK.js.map} +0 -0
- /package/dist/{chunk-NS4FRCEH.js.map → chunk-N6BBMT7W.js.map} +0 -0
- /package/dist/{chunk-QJ5MCAIN.js.map → chunk-NABPCULM.js.map} +0 -0
- /package/dist/{chunk-3TZG2IN7.js.map → chunk-NDQ6UQFG.js.map} +0 -0
- /package/dist/{chunk-QYWA5XM4.js.map → chunk-OFI5KLQ4.js.map} +0 -0
- /package/dist/{chunk-XOA7GG4P.js.map → chunk-OKM7DRCF.js.map} +0 -0
- /package/dist/{chunk-FKLQBAJ5.js.map → chunk-OP72BS23.js.map} +0 -0
- /package/dist/{chunk-ZPN5N6BA.js.map → chunk-OXL3QGHT.js.map} +0 -0
- /package/dist/{chunk-HAV7FPRM.js.map → chunk-PZNXAOZH.js.map} +0 -0
- /package/dist/{chunk-I4XJ764Y.js.map → chunk-QIVDIOJG.js.map} +0 -0
- /package/dist/{chunk-JA7UP6GN.js.map → chunk-SXR333SU.js.map} +0 -0
- /package/dist/{chunk-C74N2AWG.js.map → chunk-UA6MNQLD.js.map} +0 -0
- /package/dist/{chunk-S2FD3J22.js.map → chunk-VBO75DXV.js.map} +0 -0
- /package/dist/{chunk-5FYGD7NK.js.map → chunk-VXA6RPA5.js.map} +0 -0
- /package/dist/{chunk-46FT5RHQ.js.map → chunk-Z2WV73EX.js.map} +0 -0
- /package/dist/{chunk-BHYFPY64.js.map → chunk-Z6TCBVRG.js.map} +0 -0
- /package/dist/{chunk-65HLULDL.js.map → chunk-ZYRGEEPU.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-WCEHP5N7.js";import{a as m,b as y}from"./chunk-LKMPZJIW.js";import{c}from"./chunk-66N57DKF.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as N}from"react";import{Fragment as b,jsx as v,jsxs as C}from"react/jsx-runtime";var R=t(({currencies:{from:d,to:F},shouldSwapOrder:s,salary_conversion_properties:a,conversionType:_="no_spread",defaultValue:r,...e})=>{let{setValue:n,getValues:i}=c(),f={label:a?.label||"Salary conversion",description:a?.description||C(b,{children:["The conversion is based on the Remote FX rate."," ",v(y,{className:"text-sm",zendeskId:m.remoteFxRate,children:"Learn more \u2197"})]})},g=s?"salary_conversion":e.name,u=s?e.name:"salary_conversion";return N(()=>{if(s){let o=i(e.name);o?(n("salary_conversion",o),n("salary_converted","salary_conversion")):r&&(n("salary_conversion",r),n("salary_converted","salary_conversion"))}else{let o=i("salary_conversion");o?(n(e.name,o),n("salary_converted",e.name)):r&&(n(e.name,r),n("salary_converted",e.name))}},[s,r,n,i,e.name]),v(l,{...e,sourceCurrency:d,targetCurrency:F,mainFieldName:g,conversionFieldName:u,conversionProperties:f,classNamePrefix:"RemoteFlows-Salary",conversionType:_})},"SalaryField");export{R as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IBHNWMMB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as n,g as a}from"./chunk-66N57DKF.js";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{f as n,g as a}from"./chunk-66N57DKF.js";import{d as m}from"./chunk-ARTSDUSS.js";import{b as i}from"./chunk-TVZAFTPT.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function R({onSubmit:d,onError:c,onSuccess:l}){let{contractAmendment:{stepState:u,isSubmitting:f,onSubmit:C,fields:p},formId:A}=i(),e=n({defaultValues:u.values?.form}),F=o(async r=>{let S=await m(r,p,{isPartialValidation:!1});await d?.(S);let t=await C(r);t.error?c?.(t.error):await l?.(t.data)},"handleSubmit");return f?null:s(a,{...e,children:s("form",{id:A,onSubmit:e.handleSubmit(F),className:"RemoteFlows__ContractAmendmentConfirmationForm"})})}o(R,"ContractAmendmentConfirmationForm");export{R as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KKGRYDZA.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as F}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as F}from"./chunk-EYQ4PYUT.js";import{b as u}from"./chunk-LNV36S6D.js";import{f as l,g as p}from"./chunk-66N57DKF.js";import{d as f}from"./chunk-ARTSDUSS.js";import{b as _}from"./chunk-TVZAFTPT.js";import{a}from"./chunk-P37U34EQ.js";import{useEffect as w}from"react";import{jsx as r}from"react/jsx-runtime";var R=["effective_date","reason_for_change","reason_for_change_description","additional_comments","additional_comments_toggle"];function x({onSubmit:b,onError:m,onSuccess:A}){let{formId:C,contractAmendment:{checkFieldUpdates:h,fields:s,onSubmit:y,stepState:S,initialValues:i,handleValidation:g}}=_(),V=u(g),e=l({resolver:V,defaultValues:S.values?.form||i,shouldUnregister:!0,mode:"onBlur"});w(()=>{let t=e?.watch(o=>{(Object.keys(e.formState.dirtyFields).length>0||e.formState.isDirty)&&h(o)});return()=>t?.unsubscribe()},[]);let v=a(async t=>{let o=!1;for(let[c,P]of Object.entries(t))if(!R.includes(c)&&i[c]!==P){o=!0;break}if(!o)return m?.({message:"no_changes_detected_contract_details"});let d=await f(t,s,{isPartialValidation:!1});await b?.(d);let n=await y(t);n.error?m?.(n.error):await A?.(n.data)},"handleSubmit");return r(p,{...e,children:r("form",{id:C,"data-testid":"contract-amendment-form",onSubmit:e.handleSubmit(v),className:"space-y-4 RemoteFlows__ContractAmendmentForm",children:r(F,{fields:s})})})}a(x,"ContractAmendmentForm");export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-LG2LVO4C.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-Z7WBY27D.js";import{a as S}from"./chunk-T6HCUFYI.js";import{a as f}from"./chunk-A65WMO6K.js";import{a as n}from"./chunk-35RMJMSH.js";import{a as p}from"./chunk-A3GZSC5Z.js";import{a as s}from"./chunk-GE5DH3UF.js";import{a as m}from"./chunk-Y5P5IJRN.js";import{a}from"./chunk-C4DLDK36.js";import{a as i}from"./chunk-EDVJBPCB.js";import{a as r}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-GHJBEQIR.js";import{a as t}from"./chunk-P37U34EQ.js";import{useId as D,useState as P}from"react";import{jsx as R}from"react/jsx-runtime";var L=t(({employmentId:d,companyId:u,countryCode:b,type:l="employee",externalId:v,skipSteps:g,initialValues:B,render:I,options:O})=>{let w=D(),o=e({companyId:u,countryCode:b,employmentId:d,type:l,options:O,skipSteps:g,externalId:v,initialValues:B}),[C,h]=P({showReserveInvoice:!1,showInviteSuccessful:!1});return R(r.Provider,{value:{formId:w,onboardingBag:o,creditScore:C,setCreditScore:h},children:I({onboardingBag:o,components:{BasicInformationStep:n,ContractDetailsStep:s,BenefitsStep:p,SubmitButton:i,SaveDraftButton:S,BackButton:m,OnboardingInvite:a,SelectCountryStep:f,ReviewStep:c}})})},"OnboardingFlow");export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-LJVV6MMB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{h as f}from"./chunk-W3YE53JN.js";import{a as b,b as D,c as C,d as h,e as Z,f as y}from"./chunk-UOOUV52J.js";import{b as g,d as w}from"./chunk-KQPDXXG3.js";import{a as p,f as k}from"./chunk-L3Z2G32A.js";import{a as e}from"./chunk-P37U34EQ.js";var H={disclaimerCostCalculator:4668194326797,employeeOnboardingTimeline:4411262104589,extraPayments:4466822781709,internationalPricing:4410698586893,remoteFxRate:33271144977421,terminationEmployeeCommunication:4411585179661,terminationNoticePeriods:5831900985613,involuntaryOffboardingServiceCharge:4406932229133,reconciliationInvoice:17604014808589},m=e(r=>`https://support.remote.com/hc/en-us/articles/${r}`,"buildZendeskURL");import{useQuery as L}from"@tanstack/react-query";var v=e((r,n)=>{let{client:i}=w();return L({queryKey:["zendesk-article",r],queryFn:e(async()=>{let o=await f({client:i,path:{id:Number(r)}});if(o.error)throw new Error(o.error.message||"Failed to fetch article");return o},"queryFn"),select:e(o=>{let t=o.data?.data.help_center_article;return t&&{...t,body:k(t.body||"")}},"select"),retry:!1,...n})},"useZendeskArticle");import{jsx as a,jsxs as c}from"react/jsx-runtime";function x({open:r,onClose:n,data:i,isLoading:o,error:t,zendeskURL:d,Trigger:s}){return c(b,{open:r,onOpenChange:l=>!l&&n(),direction:"right",children:[a(D,{asChild:!0,children:s}),a(C,{className:"h-full w-[540px] mt-0 ml-auto RemoteFlows_ZendeskDrawer",children:c("div",{className:"h-full flex flex-col",children:[c(h,{children:[a(Z,{children:i?.title}),c(y,{children:["For more details see our"," ",a("a",{href:d,target:"_blank",rel:"noopener noreferrer",children:"help article"})," "]})]}),o&&a("div",{children:"Loading..."}),t&&a("div",{className:"text-sm p-4 text-red-500",children:"Error loading article"}),a("div",{className:"flex-1 overflow-y-auto p-4 RemoteFlows_ZendeskDrawer__Content",dangerouslySetInnerHTML:{__html:i?.body||""}})]})})]})}e(x,"ZendeskDrawerDefault");import{jsx as P}from"react/jsx-runtime";var R=e(({Trigger:r,zendeskId:n,open:i,onClose:o})=>{let{components:t}=g(),d=m(n),s=e(()=>{o?.()},"handleClose"),{data:l,isLoading:_,error:N}=v(n,{enabled:i}),F=t?.zendeskDrawer||x;return P(F,{open:i,onClose:s,data:l,isLoading:_,error:N,zendeskURL:d,Trigger:r})},"ZendeskDrawer");import{useState as z}from"react";import{jsx as u}from"react/jsx-runtime";var T="RemoteFlows__ZendeskTriggerButton text-blue-500 hover:underline inline-block text-xs bg-transparent border-none cursor-pointer p-0";function ne({zendeskId:r,className:n,onClick:i,children:o,external:t=!1}){let[d,s]=z(!1),l=e(()=>{t||s(!0),i?.(r)},"handleClick");return t?u("a",{href:m(r),target:"_blank",rel:"noopener noreferrer",onClick:l,className:p(T,n),children:o}):u(R,{zendeskId:r,open:d,onClose:()=>s(!1),Trigger:u("button",{onClick:l,className:p(T,n),children:o})})}e(ne,"ZendeskTriggerButton");export{H as a,ne as b};
|
|
2
|
+
//# sourceMappingURL=chunk-LKMPZJIW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-LWGSXQKI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-EYQ4PYUT.js";import{b as p}from"./chunk-2YTBWEC7.js";import{g as C}from"./chunk-66N57DKF.js";import{g as E}from"./chunk-L3Z2G32A.js";import{a as n}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as u}from"react/jsx-runtime";function T({onSubmit:S,onError:w,onSuccess:y,onErrorWithFields:c,shouldResetForm:d,resetFields:a}){let{form:e,formId:V,costCalculatorBag:o}=f(),{formState:{isSubmitSuccessful:s}}=e;R(()=>{if(s&&d){o?.resetForm(),e.reset();return}if(s&&a){let t={...e.getValues()};a.forEach(r=>{t[r]=""}),o?.resetForm(),e.reset(t)}},[s,e,d,o,a]);let b=n(async i=>{try{let t=await o?.parseFormValues(i);o?.meta?.fields&&(o.meta.fields=E(i,o.fields),o.meta.fields.employer_currency_slug=o.meta.fields.currency);let r=await o?.onSubmit(t);if(await S?.(t),r?.data&&!r.error){let l={data:{...r.data.data,employments:r.data.data.employments?.map(m=>({...m,title:t.estimation_title}))}};await y?.(l)}else throw{data:null,error:r?.error,fieldErrors:r?.fieldErrors,rawError:r?.rawError}}catch(t){let r=t,l=r.fieldErrors;if(c){let m=o?.meta?.fields,h=p(l,m);c({error:r.error,rawError:r.rawError,fieldErrors:h})}else w?.(r.error)}},"handleSubmit");return u(C,{...e,children:u("form",{id:V,onSubmit:e.handleSubmit(b),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:u(F,{fields:o?.fields??[]})})})}n(T,"CostCalculatorForm");export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MEZ7LYUK.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m,b as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m,b as s}from"./chunk-3F77NXWU.js";import{c as t,d as i}from"./chunk-SXR333SU.js";import{a as o}from"./chunk-P37U34EQ.js";import{useState as T}from"react";var k=o(({proposedTerminationDate:e,employeeName:f,employmentId:a,employment:r,render:y})=>{let[n,d]=T(!1),u=i({employmentId:a}),l=new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=t({employmentId:a,options:{enabled:n}}),p=m({employmentId:a,date:e}),D=s({employmentId:a,proposedTerminationDate:e,employment:r});return y({leavePoliciesSummaryQuery:u,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:p,formattedProposedTerminationDate:l,employeeName:f,proposedTerminationDate:e,summaryData:D??{data:{entitledDays:"0 days",bookedDays:"0 days",usedDays:"0 days",approvedDaysBeforeTermination:"0 days",approvedDaysAfterTermination:"0 days",remainingDays:"0 days",isUnlimitedPto:!1},isLoading:!1,isError:!1,error:null},employment:r,open:n,onOpenChange:o(()=>{d(P=>!P)},"onOpenChange")})},"PaidTimeOffContainer");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-N6BBMT7W.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-7COHIUGW.js";import{b as s}from"./chunk-TOA3JILU.js";import{b as e}from"./chunk-2YTBWEC7.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function b({onSubmit:d,onSuccess:l,onError:n}){let{contractorOnboardingBag:r}=s(),c=i(async t=>{try{let a=await r.parseFormValues(t);await d?.(a);let o=await r.onSubmit(t);if(o?.data){await l?.(o?.data),r?.next();return}if(o?.error){let p=e(o?.fieldErrors||[],r.meta?.fields?.basic_information);n?.({error:o?.error,rawError:o?.rawError,fieldErrors:p})}}catch(a){n?.({error:a,rawError:a,fieldErrors:[]})}},"handleSubmit"),f=r.stepState.values?.basic_information||r.initialValues.basic_information;return E(m,{defaultValues:f,onSubmit:c})}i(b,"BasicInformationStep");export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NABPCULM.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-ETYRNQJJ.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as f}from"react/jsx-runtime";function F({onSubmit:n,onSuccess:s,onError:m}){let{terminationBag:o}=e(),d=r(async a=>{let l=await o?.parseFormValues(a,!0);await n?.(l);let i=await o?.onSubmit(a);i?.error?m?.(i.error):i?.data&&await s?.(i.data)},"handleSubmit");return f(t,{defaultValues:o.fieldValues,fields:o?.fields,onSubmit:d})}r(F,"AdditionalDetailsForm");export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NDQ6UQFG.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as X}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as X}from"./chunk-IBHNWMMB.js";import{a as G}from"./chunk-VFRHMNLJ.js";import{a as I,b as z,c as Q,f as W}from"./chunk-GP6PRZVX.js";import{a as C}from"./chunk-HN5HLFTB.js";import{a as K}from"./chunk-LNV36S6D.js";import{c as Y}from"./chunk-EGRGQWIY.js";import{a as Z}from"./chunk-2YTBWEC7.js";import{d as V}from"./chunk-ARTSDUSS.js";import{a as o}from"./chunk-P37U34EQ.js";import{number as Te,object as oe}from"yup";import{createHeadlessForm as Ve,modify as je}from"@remoteoss/json-schema-form-old";import{useCallback as we,useEffect as ee,useMemo as Re,useRef as Pe,useState as j}from"react";import{string as te,ValidationError as ne}from"yup";import{jsx as re}from"react/jsx-runtime";var O={title:"Estimation",includeBenefits:!1,includeCostBreakdowns:!1,includePremiumBenefits:!1,enableCurrencyConversion:!1,includeEstimationTitle:!1,includeManagementFee:!1},xe=o(t=>{let{schema:i}=je(G.data.schema,t?.jsfModify||{});return Ve(i)},"useStaticSchema");function Be(t,i){if(typeof t=="object"&&t!==null&&"title"in t){let l=t.title;if(l)return l}return i==="my_hiring_budget"?"Hiring budget":"Employee's annual salary"}o(Be,"getSalaryTitle");var Qe=o(({defaultRegion:t,defaultCurrency:i,defaultSalary:l,estimationOptions:s,options:n,version:a}={estimationOptions:O})=>{let c=Pe({fields:{}}),[k,E]=j(t),[w,R]=j(),[m,q]=j(),[H,se]=j(),{data:_,isLoading:le}=I({includePremiumBenefits:s.includePremiumBenefits}),{data:d,isLoading:ce}=z(),ue=k||w?.value,{data:P,isLoading:me}=W(ue,{includePremiumBenefits:s.includePremiumBenefits,options:n}),U=Q(),{mutateAsync:de}=Z(U),b=w?.currency,p=n?.jsfModify?.fields?.salary,F=p&&typeof p=="object"&&"presentation"in p?p.presentation:void 0,L=we(()=>{let e=b&&m?b!==m:!1;return b!==m?{from:m,to:b,shouldSwapOrder:e}:{from:b,to:m,shouldSwapOrder:e}},[b,m]),J=s.showManagementFee,$=s.includeEstimationTitle,fe=Re(()=>{let{from:e,to:r,shouldSwapOrder:u}=L(),g=Be(p,H);return{fields:{salary:{...p,title:g,presentation:{salary_conversion_properties:{label:F?.salary_conversion_properties?.label,description:F?.salary_conversion_properties?.description},currencies:{from:e,to:r},Component:o(y=>re(X,{...y,shouldSwapOrder:u,conversionType:a==="marketing"?"no_spread":"spread",defaultValue:l}),"Component")}},hiring_budget:{...n?.jsfModify?.fields?.hiring_budget,presentation:{hidden:a=="marketing"}},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:!J,Component:o(y=>re(Y,{...y,variant:"inset",features:{toggle:{enabled:!0,stateField:"management._expanded",labels:{expand:"Define",collapse:"Remove"}}}}),"Component")}},estimation_title:{...n?.jsfModify?.fields?.estimation_title,"x-jsf-presentation":{hidden:!$}}}}},[L,p,H,F?.salary_conversion_properties?.label,F?.salary_conversion_properties?.description,n?.jsfModify?.fields?.hiring_budget,n?.jsfModify?.fields?.management,n?.jsfModify?.fields?.estimation_title,a,m,J,$,l]),f=xe({jsfModify:{fields:{...n?.jsfModify?.fields,...fe?.fields}}});ee(()=>{if(t&&_){let e=_.find(({value:r})=>r===t);e&&R(e)}},[t,_]),ee(()=>{if(i&&d){let e=d.find(({value:r})=>r===i);e&&q(e.label)}},[i,d]);async function ge(e){return de(ae(e,s,a))}o(ge,"onSubmit");function ye(e){let r=_?.find(({value:u})=>u===e);r&&r.childRegions.length===0&&r.hasAdditionalFields?E(r.regionSlug):E(void 0),R(r)}o(ye,"onCountryChange");function pe(e){E(e)}o(pe,"onRegionChange");function Ce(e){se(e.target.value)}o(Ce,"onHiringBudgetChange");function _e(e){let r=d?.find(u=>u.value===e)?.label;q(r),n?.onCurrencyChange?.(r||"")}o(_e,"onChangeCurrency");let S=f.fields.find(e=>e.name==="region");if(S){let e=w?.childRegions.map(r=>({value:r.slug,label:r.name}))??[];S.options=e,S.isVisible=e.length>0,S.required=e.length>0,S.onChange=pe,S.schema=e.length>0?te().transform(r=>typeof r=="string"?r:"").required("Region is required"):te()}if(d){let e=f.fields.find(r=>r.name==="currency");e&&(e.options=d,e.onChange=_e)}let v=f.fields.find(e=>e.name==="hiring_budget");if(v&&(v.onChange=Ce),_){let e=f.fields.find(r=>r.name==="country");e&&(e.options=_,e.onChange=ye)}let be=o(()=>{R(void 0),E(t)},"resetForm"),D=[...f.fields.filter(e=>e.name!=="management"),...P?.fields||[],...f.fields.filter(e=>e.name==="management")],N=ie(f.fields,m||"USD",s.includeEstimationTitle);async function Se(e){let r=null;n?.onValidation?.(e);let u=await V(e,D);try{await N.validate(u,{abortEarly:!1}),r={formErrors:{},yupError:new ne([],e)}}catch(h){let B=K(h);r={formErrors:Object.entries(B).reduce((T,[A,M])=>({...T,[A]:M.message}),{}),yupError:h}}let g=P?.handleValidation(u),y=[...r?.yupError.inner||[],...g?.yupError?.inner||[]],x={...r?.yupError?.value||{},...g?.yupError?.value||{}};return{formErrors:{...r?.formErrors||{},...g?.formErrors||{}},yupError:new ne(y,x)}}return o(Se,"handleValidation"),{stepState:{current:0,total:1,isLastStep:!0},fields:D,validationSchema:N,parseFormValues:o(async e=>{let{country:r,region:u,currency:g,salary_converted:y,hiring_budget:x,salary_conversion:h,management:B,estimation_title:T,...A}=e,M=e.salary;y==="salary_conversion"&&(M=h);let he=await V({country:r,region:u,salary:M,salary_converted:y,salary_conversion:h,hiring_budget:x,currency:g,management:B,estimation_title:T},f.fields),Ee=await V(A,P?.fields||[]),Fe={currency_code:d?.find(Me=>Me.value===g)?.label};return{...he,...Ee,...Fe}},"parseFormValues"),handleValidation:Se,isSubmitting:U.isPending,isLoading:le&&ce&&me,onSubmit:ge,resetForm:be,currencies:d,meta:{fields:c.current?.fields}}},"useCostCalculator");function ie(t,i,l){let s=t.reduce((n,a)=>(a.name==="salary"||a.name==="salary_conversion"?n[a.name]=a.schema.when("salary_converted",{is:o(c=>c===a.name,"is"),then:o(c=>c.required("Required field"),"then"),otherwise:o(c=>c.optional(),"otherwise")}):a.name==="management"?n[a.name]=oe({management_fee:Te().transform(c=>isNaN(c)?void 0:c).min(0,"Management fee must be greater than or equal to 0").max(i?C[i]:C.USD,()=>`Management fee cannot exceed ${(i?C[i]:C.USD)/100} ${i}`)}):a.name==="estimation_title"&&l?n[a.name]=a.schema.required("Required field"):n[a.name]=a.schema,n),{});return oe(s)}o(ie,"buildValidationSchema");function Ae(t){let i="benefit-";return Object.keys(t).reduce((l,s)=>{let n=t[s];if(n==="none")return l;let c={benefit_group_slug:s.replace(i,""),benefit_tier_slug:n};return[...l,c]},[])}o(Ae,"formatBenefits");function Oe(t,i,l){let s=Number(t.management?.management_fee),n=t.currency_code;return{...{region_slug:t.region||t.country,employment_term:t.contract_duration_type??"fixed",title:t.estimation_title||i.title,age:t.age??void 0,...t.benefits&&{benefits:Ae(t.benefits)},...i.includeManagementFee&&s&&{discount:{quoted_amount:i.showManagementFee?s:C[n]||C.USD,text:""}}},...ke(t,l)}}o(Oe,"mapValueToEmployment");function ke(t,i){let l=i==="marketing"||t.salary_converted==="salary_conversion",s=i==="standard"&&t.salary_converted==="salary",n=t.hiring_budget==="my_hiring_budget";if(l){let a=t.salary_converted==="salary_conversion";return n?{annual_total_cost_in_employer_currency:t.salary}:{[a?"annual_gross_salary_in_employer_currency":"annual_gross_salary"]:t.salary}}return s?n?{annual_total_cost:t.salary}:{annual_gross_salary:t.salary}:{}}o(ke,"getSalaryFields");function ae(t,i=O,l="standard"){let s=Array.isArray(t)?t:[t];if(s.length===0)throw new Error("At least one employment value is required");return s.length>1&&new Set(s.map(a=>a.currency)).size>1&&console.warn("Multiple currencies detected in array. Using currency from first employment."),{employer_currency_slug:s[0].currency,include_benefits:i.includeBenefits,include_cost_breakdowns:i.includeCostBreakdowns,include_premium_benefits:i.includePremiumBenefits,include_management_fee:i.includeManagementFee,employments:s.map(n=>Oe(n,i,l))}}o(ae,"buildPayload");export{ie as a,ae as b,O as c,Qe as d};
|
|
2
|
+
//# sourceMappingURL=chunk-OFI5KLQ4.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as m}from"./chunk-NX7MM6XR.js";import{a as e}from"./chunk-ZXGAFQXW.js";import{a as i}from"./chunk-LMYJ6V44.js";import{a as o}from"./chunk-RR55GUDT.js";var p={employee_communication:o,termination_details:e,paid_time_off:m,additional_information:i};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OKM7DRCF.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-WCEHP5N7.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";var l=e(({currency:n,desiredCurrency:o,annual_gross_salary_conversion_properties:r,...a})=>i(s,{...a,sourceCurrency:n,targetCurrency:o,conversionFieldName:"annual_gross_salary_conversion",conversionProperties:{...r,description:r?.description||"Estimated amount. This is an estimation. We calculate conversions based on spot rates that are subject to fluctuation over time."},classNamePrefix:"RemoteFlows-AnnualGrossSalary",conversionType:"no_spread"}),"AnnualGrossSalary");export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OP72BS23.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as o}from"./chunk-ARTSDUSS.js";import{a as e}from"./chunk-P37U34EQ.js";var d={form:{index:0,name:"form"},confirmation_form:{index:1,name:"confirmation_form"}};function f(t,r){if(!t)return{};if(!r)return{...t.contract_details,effective_date:"",reason_for_change:"",job_title:t.job_title,additional_comments:"",annual_gross_salary:o(t.contract_details?.annual_gross_salary)};let s=r.map(n=>n.name),i=Object.keys(t?.contract_details||{});return{...s.reduce((n,a)=>{if(i.includes(a)){let c=t?.contract_details;n[a]=c[a]}return n},{}),effective_date:"",reason_for_change:"",job_title:t.job_title,additional_comments:"",annual_gross_salary:o(t.contract_details?.annual_gross_salary),additional_comments_toggle:!1}}e(f,"buildInitialValues");export{d as a,f as b};
|
|
2
|
+
//# sourceMappingURL=chunk-OXL3QGHT.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-7COHIUGW.js";import{b as c}from"./chunk-TOA3JILU.js";import{b as d}from"./chunk-2YTBWEC7.js";import{a as t}from"./chunk-P37U34EQ.js";import{Suspense as u,lazy as F}from"react";import{jsx as i}from"react/jsx-runtime";var E=F(()=>import("./PdfPreview-6C3GGXIN.js").then(o=>({default:o.PDFPreview}))),l=t(o=>i(u,{fallback:i("div",{className:"animate-pulse",children:"Loading PDF..."}),children:i(E,{...o})}),"LazyPdfPreview");import{jsx as p,jsxs as S}from"react/jsx-runtime";function M({onSubmit:o,onSuccess:P,onError:n}){let{contractorOnboardingBag:r}=c(),w=t(async s=>{try{let a=await r.parseFormValues(s);await o?.(a);let e=await r.onSubmit(s);if(e?.data){await P?.(e?.data),r?.next();return}if(e?.error){let f=d(e?.fieldErrors||[],r.meta?.fields?.contract_preview);n?.({error:e?.error,rawError:e?.rawError,fieldErrors:f})}}catch(a){n?.({error:a,rawError:a,fieldErrors:[]})}},"handleSubmit"),v=r.stepState.values?.contract_preview||r.initialValues.contract_preview;return S("div",{className:"space-y-4",children:[p(l,{base64Data:r.documentPreviewPdf?.contract_document.content}),p(m,{defaultValues:v,onSubmit:w})]})}t(M,"ContractPreviewStep");export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-PZNXAOZH.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-NX7MM6XR.js";import{a as t}from"./chunk-ZXGAFQXW.js";import{a}from"./chunk-LMYJ6V44.js";import{a as e}from"./chunk-RR55GUDT.js";var i={data:{version:7,schema:{additionalProperties:!1,allOf:[...e.data.schema.allOf,...t.data.schema.allOf,...r.data.schema.allOf,...a.data.schema.allOf],properties:{...e.data.schema.properties,...t.data.schema.properties,...r.data.schema.properties,...a.data.schema.properties},required:[...e.data.schema.required,...t.data.schema.required,...r.data.schema.required,...a.data.schema.required],type:"object","x-jsf-order":[...e.data.schema["x-jsf-order"],...t.data.schema["x-jsf-order"],...r.data.schema["x-jsf-order"],...a.data.schema["x-jsf-order"]]}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QIVDIOJG.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{K as f,o as m,v as u,x as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{K as f,o as m,v as u,x as d}from"./chunk-W3YE53JN.js";import{d as o}from"./chunk-KQPDXXG3.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as y,useQuery as s}from"@tanstack/react-query";var k=t(({employmentId:e})=>{let{client:n}=o();return s({queryKey:["employment",e],retry:!1,queryFn:t(()=>d({client:n,headers:{Authorization:""},path:{employment_id:e}}),"queryFn"),enabled:!!e,select:t(({data:r})=>r?.data?.employment,"select")})},"useEmploymentQuery"),c=t(({employmentId:e,status:n,timeoffType:r,options:a})=>{let{client:l}=o();return s({queryKey:["timeoff",e,n],retry:!1,queryFn:t(()=>f({client:l,headers:{Authorization:""},query:{employment_id:e,status:n,timeoff_type:r}}),"queryFn"),select:t(({data:i})=>a?.select?.(i)??i,"select"),enabled:a?.enabled})},"useTimeOffQuery"),p=t((e,n)=>{let r=new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),a=new Date(n).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return`${r} \u2192 ${a}`},"formatDateRange"),P=t(({employmentId:e,options:n})=>c({employmentId:e,timeoffType:"paid_time_off",options:{enabled:n?.enabled,select:t(r=>({bookedDays:r?.data?.total_count||0,timeoffs:r?.data?.timeoffs?.map(a=>({status:a?.status,duration:a?.timeoff_days.length,startDate:a?.start_date,endDate:a?.end_date,formattedDate:p(a?.start_date,a?.end_date)}))||[]}),"select")}}),"usePaidTimeoffBreakdownQuery"),S=t(({employmentId:e})=>{let{client:n}=o();return s({queryKey:["timeoff-balance",e],retry:!1,queryFn:t(()=>u({client:n,headers:{Authorization:""},path:{employment_id:e}}),"queryFn"),select:t(({data:r})=>r,"select")})},"useTimeOffLeavePoliciesSummaryQuery"),x=t(()=>{let{client:e}=o();return y({mutationFn:t(n=>m({client:e,headers:{Authorization:""},body:n}),"mutationFn")})},"useMagicLink");export{k as a,c as b,P as c,S as d,x as e};
|
|
2
|
+
//# sourceMappingURL=chunk-SXR333SU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n,b as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n,b as i}from"./chunk-LKMPZJIW.js";import{a as e}from"./chunk-L3Z2G32A.js";import{a as o}from"./chunk-P37U34EQ.js";import{Fragment as m,jsx as t,jsxs as s}from"react/jsx-runtime";var r=["You submit your termination request.","We review your request along with the employment agreement, local labor laws, and any collective bargaining agreements in place.","A lifecycle specialist contacts you if they need additional details. Sometimes they will request a call.","Depending on the country-specific laws and the terms of the employment agreement, we may need to seek additional legal advice. We\u2019ll let you know if there are additional charges before proceeding.","Terms and conditions for the termination are finalized.","You verbally communicate the termination to the employee.","We share termination documents with the employee.","The employee signs the termination documents if required.","We process the final salary and offboard the employee."],h=o(()=>s(m,{children:[t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__Title"),children:"Please read carefully before you continue"}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description"),children:"Please do not inform the employee of the termination. We'll lead communication with them after you submit this form and we finalize the termination terms."}),t("p",{className:e("RemoteFlows__TerminationDialogInfoContent__Description RemoteFlows__TerminationDialogInfoContent__FollowUpDescription"),children:"If you already informed them, that's okay. We'll ask for the details regarding that communication and take it from there."}),t(i,{className:e("RemoteFlows__TerminationDialogInfoContent__ZendeskTriggerButton text-sm"),zendeskId:n.terminationEmployeeCommunication,children:"Learn more about employee communication"}),t("h3",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessTitle"),children:"The termination process"}),t("ul",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessList list-disc list-inside"),children:r.map((a,l)=>t("li",{className:e("RemoteFlows__TerminationDialogInfoContent__ProcessListItem"),children:a},l))})]}),"TerminationDialogInfoContent");export{h as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UA6MNQLD.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-7COHIUGW.js";import{b as s}from"./chunk-TOA3JILU.js";import{b as t}from"./chunk-2YTBWEC7.js";import{a as n}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function w({onSubmit:d,onSuccess:c,onError:a}){let{contractorOnboardingBag:r}=s(),m=n(async e=>{try{let i=await r.parseFormValues(e);await d?.(i);let o=await r.onSubmit(e);if(o?.data){await c?.(o?.data),r?.next();return}if(o?.error){let P=t(o?.fieldErrors||[],r.meta?.fields?.pricing_plan);a?.({error:o?.error,rawError:o?.rawError,fieldErrors:P})}}catch(i){a?.({error:i,rawError:i,fieldErrors:[]})}},"handleSubmit"),p=r.stepState.values?.pricing_plan||r.initialValues.pricing_plan;return u(l,{defaultValues:p,onSubmit:m})}n(w,"PricingPlanStep");export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VBO75DXV.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f}from"./chunk-KSHK3ZPX.js";import{c as d,d as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-KSHK3ZPX.js";import{c as d,d as S}from"./chunk-OFI5KLQ4.js";import{a as u}from"./chunk-HN5HLFTB.js";import{b as C}from"./chunk-LNV36S6D.js";import{f as y}from"./chunk-66N57DKF.js";import{a as o}from"./chunk-P37U34EQ.js";import{useEffect as T,useId as U,useState as I}from"react";import{jsx as k}from"react/jsx-runtime";var l=o((n,e,r)=>r&&r[e]?r[e]:n[e]?n[e]/100:0,"getDefaultManagementFee"),A=o((n,e,r,g)=>!e&&!r?.management_fee&&n?l(u,n,g):e&&!r?.management_fee?"":r?.management_fee,"getManagementFee"),W=o(({estimationOptions:n=d,defaultValues:e={countryRegionSlug:"",regionSlug:"",currencySlug:"",salary:"",benefits:{},management:{management_fee:""}},options:r,render:g,version:_="standard"})=>{let p=U(),[R,m]=I("USD"),F=o(s=>{m(s);let a=l(u,s,n.managementFees);a&&c.setValue("management.management_fee",a.toString())},"onCurrencyChange"),t=S({defaultRegion:e.countryRegionSlug,defaultCurrency:e.currencySlug,defaultSalary:e.salary,estimationOptions:n,version:_,options:{...r,onCurrencyChange:F}}),K=C(t.handleValidation),b=A(R,e.currencySlug,e.management,n.managementFees),{countryRegionSlug:v,currencySlug:h,salary:D,benefits:P,hiringBudget:B,age:E,contractDurationType:M,regionSlug:w,...x}=e,c=y({resolver:K,defaultValues:{country:v,currency:h,region:w,salary:D,salary_conversion:"",salary_converted:void 0,hiring_budget:B||"employee_annual_salary",age:E,contract_duration_type:M,management:{management_fee:b?.toString()||""},benefits:P,estimation_title:n.title,...x},shouldUnregister:!1,mode:"onBlur"});return T(()=>{if(e.currencySlug&&t.currencies&&n.includeManagementFee&&!e.management?.management_fee){let a=t.currencies.find(i=>i.value===e.currencySlug)?.label;if(a){m(a);let i=l(u,a,n.managementFees);c.setValue("management.management_fee",i?.toString()||"")}}},[e.currencySlug,t.currencies,n.includeManagementFee,n.managementFees,e.management?.management_fee,c]),k(f.Provider,{value:{form:c,formId:p,costCalculatorBag:t},children:g(t)})},"CostCalculatorFlow");export{W as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VXA6RPA5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{a as t}from"./chunk-P37U34EQ.js";var
|
|
1
|
+
import{a as t}from"./chunk-P37U34EQ.js";var M={bodySerializer:t(e=>JSON.stringify(e,(r,o)=>typeof o=="bigint"?o.toString():o),"bodySerializer")};var H=t(({onRequest:e,onSseError:r,onSseEvent:o,responseTransformer:a,responseValidator:s,sseDefaultRetryDelay:h,sseMaxRetryAttempts:p,sseMaxRetryDelay:i,sseSleepFn:c,url:m,...n})=>{let E,g=c??(d=>new Promise(f=>setTimeout(f,d)));return{stream:t(async function*(){let d=h??3e3,f=0,b=n.signal??new AbortController().signal;for(;!b.aborted;){f++;let D=n.headers instanceof Headers?n.headers:new Headers(n.headers);E!==void 0&&D.set("Last-Event-ID",E);try{let x={redirect:"follow",...n,body:n.serializedBody,headers:D,signal:b},T=new Request(m,x);e&&(T=await e(m,x));let u=await(n.fetch??globalThis.fetch)(T);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let C=u.body.pipeThrough(new TextDecoderStream).getReader(),A="",W=t(()=>{try{C.cancel()}catch{}},"abortHandler");b.addEventListener("abort",W);try{for(;;){let{done:Z,value:ee}=await C.read();if(Z)break;A+=ee;let _=A.split(`
|
|
2
2
|
|
|
3
|
-
`);A=
|
|
4
|
-
`),
|
|
5
|
-
`);try{P=JSON.parse(O),L=!0}catch{P=O}}L&&(s&&await s(P),a&&(P=await a(P))),o?.({data:P,event:V,id:E,retry:d}),v.length&&(yield P)}}}finally{T.removeEventListener("abort",W),C.releaseLock()}break}catch(x){if(r?.(x),p!==void 0&&f>=p)break;let b=Math.min(d*2**(f-1),i??3e4);await g(b)}}},"createStream")()}},"createSseClient");var ne=t(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},"separatorArrayExplode"),se=t(e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},"separatorArrayNoExplode"),ae=t(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},"separatorObjectExplode"),k=t(({allowReserved:e,explode:r,name:o,style:a,value:s})=>{if(!r){let i=(e?s:s.map(c=>encodeURIComponent(c))).join(se(a));switch(a){case"label":return`.${i}`;case"matrix":return`;${o}=${i}`;case"simple":return i;default:return`${o}=${i}`}}let h=ne(a),p=s.map(i=>a==="label"||a==="simple"?e?i:encodeURIComponent(i):R({allowReserved:e,name:o,value:i})).join(h);return a==="label"||a==="matrix"?h+p:p},"serializeArrayParam"),R=t(({allowReserved:e,name:r,value:o})=>{if(o==null)return"";if(typeof o=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?o:encodeURIComponent(o)}`},"serializePrimitiveParam"),q=t(({allowReserved:e,explode:r,name:o,style:a,value:s,valueOnly:h})=>{if(s instanceof Date)return h?s.toISOString():`${o}=${s.toISOString()}`;if(a!=="deepObject"&&!r){let c=[];Object.entries(s).forEach(([n,E])=>{c=[...c,n,e?E:encodeURIComponent(E)]});let m=c.join(",");switch(a){case"form":return`${o}=${m}`;case"label":return`.${m}`;case"matrix":return`;${o}=${m}`;default:return m}}let p=ae(a),i=Object.entries(s).map(([c,m])=>R({allowReserved:e,name:a==="deepObject"?`${o}[${c}]`:c,value:m})).join(p);return a==="label"||a==="matrix"?p+i:i},"serializeObjectParam");var ie=/\{[^{}]+\}/g,pe=t(({path:e,url:r})=>{let o=r,a=r.match(ie);if(a)for(let s of a){let h=!1,p=s.substring(1,s.length-1),i="simple";p.endsWith("*")&&(h=!0,p=p.substring(0,p.length-1)),p.startsWith(".")?(p=p.substring(1),i="label"):p.startsWith(";")&&(p=p.substring(1),i="matrix");let c=e[p];if(c==null)continue;if(Array.isArray(c)){o=o.replace(s,k({explode:h,name:p,style:i,value:c}));continue}if(typeof c=="object"){o=o.replace(s,q({explode:h,name:p,style:i,value:c,valueOnly:!0}));continue}if(i==="matrix"){o=o.replace(s,`;${R({name:p,value:c})}`);continue}let m=encodeURIComponent(i==="label"?`.${c}`:c);o=o.replace(s,m)}return o},"defaultPathSerializer"),$=t(({baseUrl:e,path:r,query:o,querySerializer:a,url:s})=>{let h=s.startsWith("/")?s:`/${s}`,p=(e??"")+h;r&&(p=pe({path:r,url:p}));let i=o?a(o):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(p+=`?${i}`),p},"getUrl");function N(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}t(N,"getValidRequestBody");var J=t(async(e,r)=>{let o=typeof r=="function"?await r(e):r;if(o)return e.scheme==="bearer"?`Bearer ${o}`:e.scheme==="basic"?`Basic ${btoa(o)}`:o},"getAuthToken");var Q=t(({parameters:e={},...r}={})=>t(a=>{let s=[];if(a&&typeof a=="object")for(let h in a){let p=a[h];if(p==null)continue;let i=e[h]||r;if(Array.isArray(p)){let c=k({allowReserved:i.allowReserved,explode:!0,name:h,style:"form",value:p,...i.array});c&&s.push(c)}else if(typeof p=="object"){let c=q({allowReserved:i.allowReserved,explode:!0,name:h,style:"deepObject",value:p,...i.object});c&&s.push(c)}else{let c=R({allowReserved:i.allowReserved,name:h,value:p});c&&s.push(c)}}return s.join("&")},"querySerializer"),"createQuerySerializer"),K=t(e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>r.startsWith(o)))return"blob";if(r.startsWith("text/"))return"text"}},"getParseAs"),ce=t((e,r)=>r?!!(e.headers.has(r)||e.query?.[r]||e.headers.get("Cookie")?.includes(`${r}=`)):!1,"checkForExistence"),X=t(async({security:e,...r})=>{for(let o of e){if(ce(r,o.name))continue;let a=await J(o,r.auth);if(!a)continue;let s=o.name??"Authorization";switch(o.in){case"query":r.query||(r.query={}),r.query[s]=a;break;case"cookie":r.headers.append("Cookie",`${s}=${a}`);break;case"header":default:r.headers.set(s,a);break}}},"setAuthParams"),j=t(e=>$({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:Q(e.querySerializer),url:e.url}),"buildUrl"),z=t((e,r)=>{let o={...e,...r};return o.baseUrl?.endsWith("/")&&(o.baseUrl=o.baseUrl.substring(0,o.baseUrl.length-1)),o.headers=U(e.headers,r.headers),o},"mergeConfigs"),le=t(e=>{let r=[];return e.forEach((o,a)=>{r.push([a,o])}),r},"headersEntries"),U=t((...e)=>{let r=new Headers;for(let o of e){if(!o)continue;let a=o instanceof Headers?le(o):Object.entries(o);for(let[s,h]of a)if(h===null)r.delete(s);else if(Array.isArray(h))for(let p of h)r.append(s,p);else h!==void 0&&r.set(s,typeof h=="object"?JSON.stringify(h):h)}return r},"mergeHeaders"),S=class{static{t(this,"Interceptors")}fns=[];clear(){this.fns=[]}eject(r){let o=this.getInterceptorIndex(r);this.fns[o]&&(this.fns[o]=null)}exists(r){let o=this.getInterceptorIndex(r);return!!this.fns[o]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,o){let a=this.getInterceptorIndex(r);return this.fns[a]?(this.fns[a]=o,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},Y=t(()=>({error:new S,request:new S,response:new S}),"createInterceptors"),he=Q({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),de={"Content-Type":"application/json"},G=t((e={})=>({...B,headers:de,parseAs:"auto",querySerializer:he,...e}),"createConfig");var _=t((e={})=>{let r=z(G(),e),o=t(()=>({...r}),"getConfig"),a=t(m=>(r=z(r,m),o()),"setConfig"),s=Y(),h=t(async m=>{let n={...r,...m,fetch:m.fetch??r.fetch??globalThis.fetch,headers:U(r.headers,m.headers),serializedBody:void 0};n.security&&await X({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let E=j(n);return{opts:n,url:E}},"beforeRequest"),p=t(async m=>{let{opts:n,url:E}=await h(m),g={redirect:"follow",...n,body:N(n)},w=new Request(E,g);for(let y of s.request.fns)y&&(w=await y(w,n));let I=n.fetch,d;try{d=await I(w)}catch(y){let u=y;for(let C of s.error.fns)C&&(u=await C(y,void 0,w,n));if(u=u||{},n.throwOnError)throw u;return n.responseStyle==="data"?void 0:{error:u,request:w,response:void 0}}for(let y of s.response.fns)y&&(d=await y(d,w,n));let f={request:w,response:d};if(d.ok){let y=(n.parseAs==="auto"?K(d.headers.get("Content-Type")):n.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let C;switch(y){case"arrayBuffer":case"blob":case"text":C=await d[y]();break;case"formData":C=new FormData;break;case"stream":C=d.body;break;case"json":default:C={};break}return n.responseStyle==="data"?C:{data:C,...f}}let u;switch(y){case"arrayBuffer":case"blob":case"formData":case"json":case"text":u=await d[y]();break;case"stream":return n.responseStyle==="data"?d.body:{data:d.body,...f}}return y==="json"&&(n.responseValidator&&await n.responseValidator(u),n.responseTransformer&&(u=await n.responseTransformer(u))),n.responseStyle==="data"?u:{data:u,...f}}let T=await d.text(),D;try{D=JSON.parse(T)}catch{}let x=D??T,b=x;for(let y of s.error.fns)y&&(b=await y(x,d,w,n));if(b=b||{},n.throwOnError)throw b;return n.responseStyle==="data"?void 0:{error:b,...f}},"request"),i=t(m=>n=>p({...n,method:m}),"makeMethodFn"),c=t(m=>async n=>{let{opts:E,url:g}=await h(n);return H({...E,body:E.body,headers:E.headers,method:m,onRequest:t(async(w,I)=>{let d=new Request(w,I);for(let f of s.request.fns)f&&(d=await f(d,E));return d},"onRequest"),url:g})},"makeSseFn");return{buildUrl:j,connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),getConfig:o,head:i("HEAD"),interceptors:s,options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),request:p,setConfig:a,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:i("TRACE")}},"createClient");var l=_(G({baseUrl:"https://gateway.remote.com/"}));var et=t(e=>(e?.client??l).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/offboardings",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateOffboarding");var tt=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/schema",...e}),"getShowContractAmendmentSchema");var rt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/raw",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postConvertRawCurrencyConverter"),ot=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/contractor-contract-details",...e}),"getShowContractorContractDetailsCountry");var nt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateEmployment2"),st=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/help-center-articles/{id}",...e}),"getShowHelpCenterArticle");var at=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateEstimation");var it=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e}),"getIndexBenefitOffer"),pt=t(e=>(e.client??l).put({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e,headers:{"Content-Type":"application/json",...e.headers}}),"putUpdateBenefitOffer");var ct=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-subscriptions",...e}),"getIndexSubscription");var lt=t(e=>(e?.client??l).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/payroll-calendars",...e}),"getIndexEorPayrollCalendar");var ht=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{id}",...e}),"getShowContractDocument");var dt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/magic-link",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postGenerateMagicLink");var mt=t(e=>(e?.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-pdf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationPdf");var yt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/risk-reserve",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateRiskReserve");var ut=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}",...e}),"getShowCompany");var Et=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractAmendment");var ft=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/{form}",...e}),"getShowFormCountry");var Ct=t(e=>(e?.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/countries",...e}),"getIndexCountry");var wt=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/leave-policies/summary/{employment_id}",...e}),"getIndexLeavePoliciesSummary");var Ot=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers/schema",...e}),"getShowSchema");var bt=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e}),"getShowEmployment"),Tt=t(e=>(e.client??l).patch({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),"patchUpdateEmployment2");var xt=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/regions/{slug}/fields",...e}),"getShowRegionField");var Pt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/contract-eligibility",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractEligibility"),Rt=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/countries",...e}),"getSupportedCountry");var gt=t(e=>(e?.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-csv",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationCsv"),Dt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractDocument");var St=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/effective",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postConvertWithSpreadCurrencyConverter");var Gt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/automatable",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postAutomatableContractAmendment");var It=t(e=>(e?.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/company-currencies",...e}),"getIndexCompanyCurrency");var vt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/invite",...e}),"postInviteEmploymentInvitation");var kt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{contract_document_id}/sign",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postSignContractDocument");var qt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-plus-subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postManageContractorPlusSubscriptionSubscription"),Ut=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/timeoff",...e}),"getIndexTimeoff");export{_ as a,l as b,et as c,tt as d,rt as e,ot as f,nt as g,st as h,at as i,it as j,pt as k,ct as l,lt as m,ht as n,dt as o,mt as p,yt as q,ut as r,Et as s,ft as t,Ct as u,wt as v,Ot as w,bt as x,Tt as y,xt as z,Pt as A,Rt as B,gt as C,Dt as D,St as E,Gt as F,It as G,vt as H,kt as I,qt as J,Ut as K};
|
|
6
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
`);A=_.pop()??"";for(let te of _){let re=te.split(`
|
|
4
|
+
`),I=[],L;for(let O of re)if(O.startsWith("data:"))I.push(O.replace(/^data:\s*/,""));else if(O.startsWith("event:"))L=O.replace(/^event:\s*/,"");else if(O.startsWith("id:"))E=O.replace(/^id:\s*/,"");else if(O.startsWith("retry:")){let V=Number.parseInt(O.replace(/^retry:\s*/,""),10);Number.isNaN(V)||(d=V)}let P,F=!1;if(I.length){let O=I.join(`
|
|
5
|
+
`);try{P=JSON.parse(O),F=!0}catch{P=O}}F&&(s&&await s(P),a&&(P=await a(P))),o?.({data:P,event:L,id:E,retry:d}),I.length&&(yield P)}}}finally{b.removeEventListener("abort",W),C.releaseLock()}break}catch(x){if(r?.(x),p!==void 0&&f>=p)break;let T=Math.min(d*2**(f-1),i??3e4);await g(T)}}},"createStream")()}},"createSseClient");var oe=t(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},"separatorArrayExplode"),ne=t(e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},"separatorArrayNoExplode"),se=t(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},"separatorObjectExplode"),k=t(({allowReserved:e,explode:r,name:o,style:a,value:s})=>{if(!r){let i=(e?s:s.map(c=>encodeURIComponent(c))).join(ne(a));switch(a){case"label":return`.${i}`;case"matrix":return`;${o}=${i}`;case"simple":return i;default:return`${o}=${i}`}}let h=oe(a),p=s.map(i=>a==="label"||a==="simple"?e?i:encodeURIComponent(i):R({allowReserved:e,name:o,value:i})).join(h);return a==="label"||a==="matrix"?h+p:p},"serializeArrayParam"),R=t(({allowReserved:e,name:r,value:o})=>{if(o==null)return"";if(typeof o=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?o:encodeURIComponent(o)}`},"serializePrimitiveParam"),U=t(({allowReserved:e,explode:r,name:o,style:a,value:s,valueOnly:h})=>{if(s instanceof Date)return h?s.toISOString():`${o}=${s.toISOString()}`;if(a!=="deepObject"&&!r){let c=[];Object.entries(s).forEach(([n,E])=>{c=[...c,n,e?E:encodeURIComponent(E)]});let m=c.join(",");switch(a){case"form":return`${o}=${m}`;case"label":return`.${m}`;case"matrix":return`;${o}=${m}`;default:return m}}let p=se(a),i=Object.entries(s).map(([c,m])=>R({allowReserved:e,name:a==="deepObject"?`${o}[${c}]`:c,value:m})).join(p);return a==="label"||a==="matrix"?p+i:i},"serializeObjectParam");var ae=/\{[^{}]+\}/g,ie=t(({path:e,url:r})=>{let o=r,a=r.match(ae);if(a)for(let s of a){let h=!1,p=s.substring(1,s.length-1),i="simple";p.endsWith("*")&&(h=!0,p=p.substring(0,p.length-1)),p.startsWith(".")?(p=p.substring(1),i="label"):p.startsWith(";")&&(p=p.substring(1),i="matrix");let c=e[p];if(c==null)continue;if(Array.isArray(c)){o=o.replace(s,k({explode:h,name:p,style:i,value:c}));continue}if(typeof c=="object"){o=o.replace(s,U({explode:h,name:p,style:i,value:c,valueOnly:!0}));continue}if(i==="matrix"){o=o.replace(s,`;${R({name:p,value:c})}`);continue}let m=encodeURIComponent(i==="label"?`.${c}`:c);o=o.replace(s,m)}return o},"defaultPathSerializer"),N=t(({baseUrl:e,path:r,query:o,querySerializer:a,url:s})=>{let h=s.startsWith("/")?s:`/${s}`,p=(e??"")+h;r&&(p=ie({path:r,url:p}));let i=o?a(o):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(p+=`?${i}`),p},"getUrl");function $(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}t($,"getValidRequestBody");var J=t(async(e,r)=>{let o=typeof r=="function"?await r(e):r;if(o)return e.scheme==="bearer"?`Bearer ${o}`:e.scheme==="basic"?`Basic ${btoa(o)}`:o},"getAuthToken");var Q=t(({parameters:e={},...r}={})=>t(a=>{let s=[];if(a&&typeof a=="object")for(let h in a){let p=a[h];if(p==null)continue;let i=e[h]||r;if(Array.isArray(p)){let c=k({allowReserved:i.allowReserved,explode:!0,name:h,style:"form",value:p,...i.array});c&&s.push(c)}else if(typeof p=="object"){let c=U({allowReserved:i.allowReserved,explode:!0,name:h,style:"deepObject",value:p,...i.object});c&&s.push(c)}else{let c=R({allowReserved:i.allowReserved,name:h,value:p});c&&s.push(c)}}return s.join("&")},"querySerializer"),"createQuerySerializer"),K=t(e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(o=>r.startsWith(o)))return"blob";if(r.startsWith("text/"))return"text"}},"getParseAs"),pe=t((e,r)=>r?!!(e.headers.has(r)||e.query?.[r]||e.headers.get("Cookie")?.includes(`${r}=`)):!1,"checkForExistence"),X=t(async({security:e,...r})=>{for(let o of e){if(pe(r,o.name))continue;let a=await J(o,r.auth);if(!a)continue;let s=o.name??"Authorization";switch(o.in){case"query":r.query||(r.query={}),r.query[s]=a;break;case"cookie":r.headers.append("Cookie",`${s}=${a}`);break;case"header":default:r.headers.set(s,a);break}}},"setAuthParams"),B=t(e=>N({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:Q(e.querySerializer),url:e.url}),"buildUrl"),j=t((e,r)=>{let o={...e,...r};return o.baseUrl?.endsWith("/")&&(o.baseUrl=o.baseUrl.substring(0,o.baseUrl.length-1)),o.headers=q(e.headers,r.headers),o},"mergeConfigs"),ce=t(e=>{let r=[];return e.forEach((o,a)=>{r.push([a,o])}),r},"headersEntries"),q=t((...e)=>{let r=new Headers;for(let o of e){if(!o)continue;let a=o instanceof Headers?ce(o):Object.entries(o);for(let[s,h]of a)if(h===null)r.delete(s);else if(Array.isArray(h))for(let p of h)r.append(s,p);else h!==void 0&&r.set(s,typeof h=="object"?JSON.stringify(h):h)}return r},"mergeHeaders"),G=class{static{t(this,"Interceptors")}fns=[];clear(){this.fns=[]}eject(r){let o=this.getInterceptorIndex(r);this.fns[o]&&(this.fns[o]=null)}exists(r){let o=this.getInterceptorIndex(r);return!!this.fns[o]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,o){let a=this.getInterceptorIndex(r);return this.fns[a]?(this.fns[a]=o,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},Y=t(()=>({error:new G,request:new G,response:new G}),"createInterceptors"),le=Q({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},S=t((e={})=>({...M,headers:he,parseAs:"auto",querySerializer:le,...e}),"createConfig");var z=t((e={})=>{let r=j(S(),e),o=t(()=>({...r}),"getConfig"),a=t(m=>(r=j(r,m),o()),"setConfig"),s=Y(),h=t(async m=>{let n={...r,...m,fetch:m.fetch??r.fetch??globalThis.fetch,headers:q(r.headers,m.headers),serializedBody:void 0};n.security&&await X({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let E=B(n);return{opts:n,url:E}},"beforeRequest"),p=t(async m=>{let{opts:n,url:E}=await h(m),g={redirect:"follow",...n,body:$(n)},w=new Request(E,g);for(let y of s.request.fns)y&&(w=await y(w,n));let v=n.fetch,d;try{d=await v(w)}catch(y){let u=y;for(let C of s.error.fns)C&&(u=await C(y,void 0,w,n));if(u=u||{},n.throwOnError)throw u;return n.responseStyle==="data"?void 0:{error:u,request:w,response:void 0}}for(let y of s.response.fns)y&&(d=await y(d,w,n));let f={request:w,response:d};if(d.ok){let y=(n.parseAs==="auto"?K(d.headers.get("Content-Type")):n.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let C;switch(y){case"arrayBuffer":case"blob":case"text":C=await d[y]();break;case"formData":C=new FormData;break;case"stream":C=d.body;break;case"json":default:C={};break}return n.responseStyle==="data"?C:{data:C,...f}}let u;switch(y){case"arrayBuffer":case"blob":case"formData":case"json":case"text":u=await d[y]();break;case"stream":return n.responseStyle==="data"?d.body:{data:d.body,...f}}return y==="json"&&(n.responseValidator&&await n.responseValidator(u),n.responseTransformer&&(u=await n.responseTransformer(u))),n.responseStyle==="data"?u:{data:u,...f}}let b=await d.text(),D;try{D=JSON.parse(b)}catch{}let x=D??b,T=x;for(let y of s.error.fns)y&&(T=await y(x,d,w,n));if(T=T||{},n.throwOnError)throw T;return n.responseStyle==="data"?void 0:{error:T,...f}},"request"),i=t(m=>n=>p({...n,method:m}),"makeMethodFn"),c=t(m=>async n=>{let{opts:E,url:g}=await h(n);return H({...E,body:E.body,headers:E.headers,method:m,onRequest:t(async(w,v)=>{let d=new Request(w,v);for(let f of s.request.fns)f&&(d=await f(d,E));return d},"onRequest"),url:g})},"makeSseFn");return{buildUrl:B,connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),getConfig:o,head:i("HEAD"),interceptors:s,options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),request:p,setConfig:a,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:i("TRACE")}},"createClient");var l=z(S({baseUrl:"https://gateway.remote.com/"}));var _e=t(e=>(e?.client??l).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/offboardings",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateOffboarding");var Le=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/schema",...e}),"getShowContractAmendmentSchema");var Fe=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/raw",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postConvertRawCurrencyConverter"),Ve=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/contractor-contract-details",...e}),"getShowContractorContractDetailsCountry");var Me=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateEmployment2"),He=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/help-center-articles/{id}",...e}),"getShowHelpCenterArticle");var Ne=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateEstimation");var $e=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e}),"getIndexBenefitOffer"),Je=t(e=>(e.client??l).put({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers",...e,headers:{"Content-Type":"application/json",...e.headers}}),"putUpdateBenefitOffer");var Qe=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-subscriptions",...e}),"getIndexSubscription");var Ke=t(e=>(e?.client??l).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/payroll-calendars",...e}),"getIndexEorPayrollCalendar");var Xe=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{id}",...e}),"getShowContractDocument");var Ye=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"}],url:"/v1/magic-link",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postGenerateMagicLink");var Ze=t(e=>(e?.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-pdf",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationPdf");var et=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/risk-reserve",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateRiskReserve");var tt=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/companies/{company_id}",...e}),"getShowCompany");var rt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractAmendment");var ot=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/countries/{country_code}/{form}",...e}),"getShowFormCountry");var nt=t(e=>(e?.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/countries",...e}),"getIndexCountry");var st=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/leave-policies/summary/{employment_id}",...e}),"getIndexLeavePoliciesSummary");var at=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/benefit-offers/schema",...e}),"getShowSchema");var it=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e}),"getShowEmployment"),pt=t(e=>(e.client??l).patch({security:[{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),"patchUpdateEmployment2");var ct=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/regions/{slug}/fields",...e}),"getShowRegionField");var lt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/contract-eligibility",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractEligibility"),ht=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"}],url:"/v1/countries",...e}),"getSupportedCountry");var dt=t(e=>(e?.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/cost-calculator/estimation-csv",...e,headers:{"Content-Type":"application/json",...e?.headers}}),"postCreateEstimationCsv"),mt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postCreateContractDocument");var yt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/currency-converter/effective",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postConvertWithSpreadCurrencyConverter");var ut=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contract-amendments/automatable",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postAutomatableContractAmendment");var Et=t(e=>(e?.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/company-currencies",...e}),"getIndexCompanyCurrency");var ft=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/employments/{employment_id}/invite",...e}),"postInviteEmploymentInvitation");var Ct=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contract-documents/{contract_document_id}/sign",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postSignContractDocument");var wt=t(e=>(e.client??l).post({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/contractors/employments/{employment_id}/contractor-plus-subscription",...e,headers:{"Content-Type":"application/json",...e.headers}}),"postManageContractorPlusSubscriptionSubscription"),Ot=t(e=>(e.client??l).get({security:[{scheme:"bearer",type:"http"},{scheme:"bearer",type:"http"}],url:"/v1/timeoff",...e}),"getIndexTimeoff");export{z as a,l as b,_e as c,Le as d,Fe as e,Ve as f,Me as g,He as h,Ne as i,$e as j,Je as k,Qe as l,Ke as m,Xe as n,Ye as o,Ze as p,et as q,tt as r,rt as s,ot as t,nt as u,st as v,at as w,it as x,pt as y,ct as z,lt as A,ht as B,dt as C,mt as D,yt as E,ut as F,Et as G,ft as H,Ct as I,wt as J,Ot as K};
|
|
6
|
+
//# sourceMappingURL=chunk-W3YE53JN.js.map
|