@remoteoss/remote-flows 1.24.0 → 1.24.1
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 +0 -4
- package/dist/CheckboxFieldDefault-55JIXW4D.js +2 -0
- package/dist/CountryFieldDefault-NX5GNCKS.js +2 -0
- package/dist/DatePickerFieldDefault-PRJ4Z72O.js +2 -0
- package/dist/RadioGroupFieldDefault-B2ZRFHJ4.js +2 -0
- package/dist/{chunk-B2BH4JUO.js → chunk-2AYGZ4RY.js} +2 -2
- package/dist/{chunk-PNEB74RP.js → chunk-2K2RK7RF.js} +2 -2
- package/dist/{chunk-RGRCYSYE.js → chunk-4FMQTOXJ.js} +2 -2
- package/dist/{chunk-HLSQCUMS.js → chunk-6GCLDEJP.js} +2 -2
- package/dist/chunk-6GCLDEJP.js.map +1 -0
- package/dist/{chunk-3LCASKDS.js → chunk-6QEF52IP.js} +2 -2
- package/dist/{chunk-D7CBR52B.js → chunk-7BGANM2R.js} +2 -2
- package/dist/{chunk-CS5TJWQM.js → chunk-7QXULBD7.js} +2 -2
- package/dist/{chunk-WQVZXTW3.js → chunk-7SO6WCYM.js} +2 -2
- package/dist/{chunk-CHHHYLCB.js → chunk-7V2QPZ2F.js} +2 -2
- package/dist/{chunk-T2KDFAAY.js → chunk-ADTGWDQ7.js} +2 -2
- package/dist/{chunk-XRN6752K.js → chunk-AS77PXWM.js} +2 -2
- package/dist/{chunk-BK44KHBJ.js → chunk-B4E43MXD.js} +2 -2
- package/dist/{chunk-QB6OI74K.js → chunk-BI4RFXFL.js} +2 -2
- package/dist/{chunk-VFB3RR5I.js → chunk-BZAO32QW.js} +2 -2
- package/dist/{chunk-O6H66UM2.js → chunk-C32W6TCT.js} +2 -2
- package/dist/{chunk-T4QDKI7V.js → chunk-C4MRFGQG.js} +2 -2
- package/dist/{chunk-5CFU6XTU.js → chunk-DZXU45AS.js} +2 -2
- package/dist/{chunk-YUJBCOLO.js → chunk-G5O2CM6V.js} +2 -2
- package/dist/{chunk-HYDNZQOV.js → chunk-GOTY4N6S.js} +2 -2
- package/dist/{chunk-WQ4H5V7U.js → chunk-H2RAK6F7.js} +1 -1
- package/dist/chunk-H2RAK6F7.js.map +1 -0
- package/dist/{chunk-Z7J6NJY2.js → chunk-H5PRUDCX.js} +2 -2
- package/dist/{chunk-MKPKDACH.js → chunk-HDH5PEOK.js} +2 -2
- package/dist/chunk-HDH5PEOK.js.map +1 -0
- package/dist/{chunk-PZUCONZ4.js → chunk-HNCOYMS5.js} +2 -2
- package/dist/{chunk-6ZHKAS7X.js → chunk-IJ2BGCAF.js} +2 -2
- package/dist/{chunk-RVADUHPA.js → chunk-JF3KLAB5.js} +2 -2
- package/dist/{chunk-ZO34QFKD.js → chunk-JI5PQLWS.js} +2 -2
- package/dist/{chunk-TVCIAQTC.js → chunk-JKB4KOVF.js} +2 -2
- package/dist/{chunk-6MJVXTLI.js → chunk-JQJBDHAL.js} +2 -2
- package/dist/{chunk-OXKAGVWK.js → chunk-JTMJKRH7.js} +2 -2
- package/dist/chunk-JTMJKRH7.js.map +1 -0
- package/dist/{chunk-DJPCJ3YR.js → chunk-K4YQQMHD.js} +2 -2
- package/dist/{chunk-53KG3SOU.js → chunk-K5Y67GIG.js} +2 -2
- package/dist/{chunk-4IE7XN74.js → chunk-KKMW7Q42.js} +2 -2
- package/dist/{chunk-NUID2T57.js → chunk-KM7CQTD5.js} +2 -2
- package/dist/{chunk-MGZWMJMP.js → chunk-LSVH4U4W.js} +2 -2
- package/dist/{chunk-X3PUZFYX.js → chunk-MG4PHNSS.js} +2 -2
- package/dist/{chunk-YIOLMWB5.js → chunk-MSEHAEEK.js} +2 -2
- package/dist/{chunk-D7W4VBSV.js → chunk-NKMO2WW3.js} +2 -2
- package/dist/{chunk-IORVZBRC.js → chunk-OK2NP3L5.js} +2 -2
- package/dist/{chunk-VRW22LTU.js → chunk-OQ5WZBDA.js} +2 -2
- package/dist/{chunk-UNKCOOE4.js → chunk-PZAYG2DF.js} +2 -2
- package/dist/{chunk-NOTLTHHZ.js → chunk-QLYFMDLB.js} +2 -2
- package/dist/{chunk-6ABCDOFB.js → chunk-R3BBN7TV.js} +2 -2
- package/dist/{chunk-OELREIVJ.js → chunk-RDYN6W2A.js} +2 -2
- package/dist/{chunk-EP6FL2L3.js → chunk-SADMJJDB.js} +2 -2
- package/dist/{chunk-SPQM2TCX.js → chunk-SXKIRVA2.js} +2 -2
- package/dist/{chunk-J7MCWMDD.js → chunk-SXM3GJ5M.js} +2 -2
- package/dist/{chunk-N4IPXHFM.js → chunk-T4YYYCSD.js} +2 -2
- package/dist/{chunk-M4TBX2FU.js → chunk-TNYFIB6U.js} +2 -2
- package/dist/{chunk-W5YNJOSB.js → chunk-UJXUKEQU.js} +2 -2
- package/dist/{chunk-G3HUFVSG.js → chunk-UMLRTS3B.js} +2 -2
- package/dist/{chunk-VN535FEZ.js → chunk-UOA5WU4S.js} +2 -2
- package/dist/{chunk-NLBQ7CZC.js → chunk-UQBKFWUI.js} +2 -2
- package/dist/{chunk-AR5X2YWE.js → chunk-VK7T332E.js} +2 -2
- package/dist/{chunk-26IIK5U2.js → chunk-VWBA3U4U.js} +2 -2
- package/dist/{chunk-2JVZYQ6Z.js → chunk-VY6W6W6F.js} +2 -2
- package/dist/{chunk-IYL6TSUF.js → chunk-W6OOI5NF.js} +2 -2
- package/dist/{chunk-RYVRMH6C.js → chunk-WFZGKBFS.js} +2 -2
- package/dist/{chunk-AXV7YMZ3.js → chunk-XBPTFEGC.js} +2 -2
- package/dist/{chunk-VU6C3EU2.js → chunk-XGRFWXUU.js} +2 -2
- package/dist/{chunk-S6IMK3LL.js → chunk-YMJ3HQTG.js} +2 -2
- package/dist/{chunk-IFX5XLPZ.js → chunk-YOFBRZUZ.js} +2 -2
- package/dist/default-components.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/EligibilityQuestionnaireStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/jsfModify.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/CreateCompany/CreateCompany.js +1 -1
- package/dist/flows/CreateCompany/api.js +1 -1
- package/dist/flows/CreateCompany/components/AddressDetailsStep.js +1 -1
- package/dist/flows/CreateCompany/components/CompanyBasicInformationStep.js +1 -1
- package/dist/flows/CreateCompany/components/CreateCompanyForm.js +1 -1
- package/dist/flows/CreateCompany/hooks.js +1 -1
- package/dist/flows/CreateCompany/index.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/internals.js +1 -1
- package/package.json +10 -9
- package/dist/CheckboxFieldDefault-XSBJF4HQ.js +0 -2
- package/dist/CountryFieldDefault-K5X6MFP3.js +0 -2
- package/dist/DatePickerFieldDefault-G6FWA64N.js +0 -2
- package/dist/RadioGroupFieldDefault-XSPBKOS6.js +0 -2
- package/dist/chunk-HLSQCUMS.js.map +0 -1
- package/dist/chunk-MKPKDACH.js.map +0 -1
- package/dist/chunk-OXKAGVWK.js.map +0 -1
- package/dist/chunk-WQ4H5V7U.js.map +0 -1
- /package/dist/{CheckboxFieldDefault-XSBJF4HQ.js.map → CheckboxFieldDefault-55JIXW4D.js.map} +0 -0
- /package/dist/{CountryFieldDefault-K5X6MFP3.js.map → CountryFieldDefault-NX5GNCKS.js.map} +0 -0
- /package/dist/{DatePickerFieldDefault-G6FWA64N.js.map → DatePickerFieldDefault-PRJ4Z72O.js.map} +0 -0
- /package/dist/{RadioGroupFieldDefault-XSPBKOS6.js.map → RadioGroupFieldDefault-B2ZRFHJ4.js.map} +0 -0
- /package/dist/{chunk-B2BH4JUO.js.map → chunk-2AYGZ4RY.js.map} +0 -0
- /package/dist/{chunk-PNEB74RP.js.map → chunk-2K2RK7RF.js.map} +0 -0
- /package/dist/{chunk-RGRCYSYE.js.map → chunk-4FMQTOXJ.js.map} +0 -0
- /package/dist/{chunk-3LCASKDS.js.map → chunk-6QEF52IP.js.map} +0 -0
- /package/dist/{chunk-D7CBR52B.js.map → chunk-7BGANM2R.js.map} +0 -0
- /package/dist/{chunk-CS5TJWQM.js.map → chunk-7QXULBD7.js.map} +0 -0
- /package/dist/{chunk-WQVZXTW3.js.map → chunk-7SO6WCYM.js.map} +0 -0
- /package/dist/{chunk-CHHHYLCB.js.map → chunk-7V2QPZ2F.js.map} +0 -0
- /package/dist/{chunk-T2KDFAAY.js.map → chunk-ADTGWDQ7.js.map} +0 -0
- /package/dist/{chunk-XRN6752K.js.map → chunk-AS77PXWM.js.map} +0 -0
- /package/dist/{chunk-BK44KHBJ.js.map → chunk-B4E43MXD.js.map} +0 -0
- /package/dist/{chunk-QB6OI74K.js.map → chunk-BI4RFXFL.js.map} +0 -0
- /package/dist/{chunk-VFB3RR5I.js.map → chunk-BZAO32QW.js.map} +0 -0
- /package/dist/{chunk-O6H66UM2.js.map → chunk-C32W6TCT.js.map} +0 -0
- /package/dist/{chunk-T4QDKI7V.js.map → chunk-C4MRFGQG.js.map} +0 -0
- /package/dist/{chunk-5CFU6XTU.js.map → chunk-DZXU45AS.js.map} +0 -0
- /package/dist/{chunk-YUJBCOLO.js.map → chunk-G5O2CM6V.js.map} +0 -0
- /package/dist/{chunk-HYDNZQOV.js.map → chunk-GOTY4N6S.js.map} +0 -0
- /package/dist/{chunk-Z7J6NJY2.js.map → chunk-H5PRUDCX.js.map} +0 -0
- /package/dist/{chunk-PZUCONZ4.js.map → chunk-HNCOYMS5.js.map} +0 -0
- /package/dist/{chunk-6ZHKAS7X.js.map → chunk-IJ2BGCAF.js.map} +0 -0
- /package/dist/{chunk-RVADUHPA.js.map → chunk-JF3KLAB5.js.map} +0 -0
- /package/dist/{chunk-ZO34QFKD.js.map → chunk-JI5PQLWS.js.map} +0 -0
- /package/dist/{chunk-TVCIAQTC.js.map → chunk-JKB4KOVF.js.map} +0 -0
- /package/dist/{chunk-6MJVXTLI.js.map → chunk-JQJBDHAL.js.map} +0 -0
- /package/dist/{chunk-DJPCJ3YR.js.map → chunk-K4YQQMHD.js.map} +0 -0
- /package/dist/{chunk-53KG3SOU.js.map → chunk-K5Y67GIG.js.map} +0 -0
- /package/dist/{chunk-4IE7XN74.js.map → chunk-KKMW7Q42.js.map} +0 -0
- /package/dist/{chunk-NUID2T57.js.map → chunk-KM7CQTD5.js.map} +0 -0
- /package/dist/{chunk-MGZWMJMP.js.map → chunk-LSVH4U4W.js.map} +0 -0
- /package/dist/{chunk-X3PUZFYX.js.map → chunk-MG4PHNSS.js.map} +0 -0
- /package/dist/{chunk-YIOLMWB5.js.map → chunk-MSEHAEEK.js.map} +0 -0
- /package/dist/{chunk-D7W4VBSV.js.map → chunk-NKMO2WW3.js.map} +0 -0
- /package/dist/{chunk-IORVZBRC.js.map → chunk-OK2NP3L5.js.map} +0 -0
- /package/dist/{chunk-VRW22LTU.js.map → chunk-OQ5WZBDA.js.map} +0 -0
- /package/dist/{chunk-UNKCOOE4.js.map → chunk-PZAYG2DF.js.map} +0 -0
- /package/dist/{chunk-NOTLTHHZ.js.map → chunk-QLYFMDLB.js.map} +0 -0
- /package/dist/{chunk-6ABCDOFB.js.map → chunk-R3BBN7TV.js.map} +0 -0
- /package/dist/{chunk-OELREIVJ.js.map → chunk-RDYN6W2A.js.map} +0 -0
- /package/dist/{chunk-EP6FL2L3.js.map → chunk-SADMJJDB.js.map} +0 -0
- /package/dist/{chunk-SPQM2TCX.js.map → chunk-SXKIRVA2.js.map} +0 -0
- /package/dist/{chunk-J7MCWMDD.js.map → chunk-SXM3GJ5M.js.map} +0 -0
- /package/dist/{chunk-N4IPXHFM.js.map → chunk-T4YYYCSD.js.map} +0 -0
- /package/dist/{chunk-M4TBX2FU.js.map → chunk-TNYFIB6U.js.map} +0 -0
- /package/dist/{chunk-W5YNJOSB.js.map → chunk-UJXUKEQU.js.map} +0 -0
- /package/dist/{chunk-G3HUFVSG.js.map → chunk-UMLRTS3B.js.map} +0 -0
- /package/dist/{chunk-VN535FEZ.js.map → chunk-UOA5WU4S.js.map} +0 -0
- /package/dist/{chunk-NLBQ7CZC.js.map → chunk-UQBKFWUI.js.map} +0 -0
- /package/dist/{chunk-AR5X2YWE.js.map → chunk-VK7T332E.js.map} +0 -0
- /package/dist/{chunk-26IIK5U2.js.map → chunk-VWBA3U4U.js.map} +0 -0
- /package/dist/{chunk-2JVZYQ6Z.js.map → chunk-VY6W6W6F.js.map} +0 -0
- /package/dist/{chunk-IYL6TSUF.js.map → chunk-W6OOI5NF.js.map} +0 -0
- /package/dist/{chunk-RYVRMH6C.js.map → chunk-WFZGKBFS.js.map} +0 -0
- /package/dist/{chunk-AXV7YMZ3.js.map → chunk-XBPTFEGC.js.map} +0 -0
- /package/dist/{chunk-VU6C3EU2.js.map → chunk-XGRFWXUU.js.map} +0 -0
- /package/dist/{chunk-S6IMK3LL.js.map → chunk-YMJ3HQTG.js.map} +0 -0
- /package/dist/{chunk-IFX5XLPZ.js.map → chunk-YOFBRZUZ.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-WFZGKBFS.js";import{b as e}from"./chunk-Q3ALCPJN.js";import{k as n}from"./chunk-VIGKOVHP.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as f}from"react/jsx-runtime";function b({onSubmit:m,onSuccess:d,onError:c}){let{contractorOnboardingBag:o}=e(),p=t(async i=>{try{let a=await o.parseFormValues(i);await m?.(a);let r=await o.onSubmit(i);if(r?.data){await d?.(r?.data),o?.next();return}}catch(a){let r=n(a,o.meta?.fields?.basic_information);c?.(r)}},"handleSubmit"),l=o.stepState.values?.basic_information||o.initialValues.basic_information;return f(s,{defaultValues:l,onSubmit:p})}t(b,"BasicInformationStep");export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MG4PHNSS.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as m,d as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{G as m,d as r}from"./chunk-H2RAK6F7.js";import{d as o}from"./chunk-KQPDXXG3.js";import{a as e}from"./chunk-P37U34EQ.js";import{useMutation as u,useQuery as l}from"@tanstack/react-query";var h=e(({employmentId:t,queryParams:n})=>{let{client:i}=o();return l({queryKey:["employment",t],retry:!1,queryFn:e(()=>m({client:i,headers:{Authorization:""},path:{employment_id:t},query:n}),"queryFn"),enabled:!!t,select:e(({data:s})=>s?.data?.employment,"select")})},"useEmploymentQuery"),f=e(()=>{let{client:t}=o();return u({mutationFn:e(({employmentId:n})=>r({client:t,headers:{Authorization:""},path:{employment_id:n}}),"mutationFn")})},"useDiscardEmploymentMutation");export{h as a,f as b};
|
|
2
|
+
//# sourceMappingURL=chunk-MSEHAEEK.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-RDYN6W2A.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{b as t}from"./chunk-X6ZAR7ZL.js";import{a}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function b({onSubmit:d,onSuccess:l,onError:n}){let{onboardingBag:r}=s(),f=a(async e=>{try{let i=await r.parseFormValues(e);await d?.(i);let o=await r.onSubmit(e);if(o?.data){await l?.(o?.data),r?.next();return}if(o?.error){let c=t(o?.fieldErrors||[],r.meta?.fields?.basic_information);n?.({error:o?.error,rawError:o?.rawError,fieldErrors:c})}}catch(i){n?.({error:i,rawError:i,fieldErrors:[]})}},"handleSubmit"),p=r.stepState.values?.basic_information||r.initialValues.basic_information;return E(m,{defaultValues:p,onSubmit:f})}a(b,"BasicInformationStep");export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NKMO2WW3.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as J}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{l as J}from"./chunk-UMLRTS3B.js";import{b as G,c as M,d as L}from"./chunk-D5AO6SOM.js";import{a as k}from"./chunk-6H4634RG.js";import{c as B,m as A}from"./chunk-CWAFRJAQ.js";import{b as H}from"./chunk-KQPDXXG3.js";import{a as n,b as d,c as qe}from"./chunk-P37U34EQ.js";var D=d((En,U)=>{"use strict";function we(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}n(we,"isObject");U.exports=we});var X=d((In,V)=>{"use strict";var Fe=typeof global=="object"&&global&&global.Object===Object&&global;V.exports=Fe});var _=d((qn,z)=>{"use strict";var Pe=X(),ke=typeof self=="object"&&self&&self.Object===Object&&self,Me=Pe||ke||Function("return this")();z.exports=Me});var Q=d((wn,K)=>{"use strict";var Le=_(),De=n(function(){return Le.Date.now()},"now");K.exports=De});var Z=d((Pn,Y)=>{"use strict";var _e=/\s/;function $e(e){for(var t=e.length;t--&&_e.test(e.charAt(t)););return t}n($e,"trimmedEndIndex");Y.exports=$e});var ne=d((Mn,ee)=>{"use strict";var Ne=Z(),We=/^\s+/;function Be(e){return e&&e.slice(0,Ne(e)+1).replace(We,"")}n(Be,"baseTrim");ee.exports=Be});var $=d((Dn,te)=>{"use strict";var Ae=_(),He=Ae.Symbol;te.exports=He});var se=d((_n,ie)=>{"use strict";var re=$(),oe=Object.prototype,Ge=oe.hasOwnProperty,Je=oe.toString,O=re?re.toStringTag:void 0;function Ue(e){var t=Ge.call(e,O),r=e[O];try{e[O]=void 0;var i=!0}catch{}var u=Je.call(e);return i&&(t?e[O]=r:delete e[O]),u}n(Ue,"getRawTag");ie.exports=Ue});var ce=d((Nn,ae)=>{"use strict";var Ve=Object.prototype,Xe=Ve.toString;function ze(e){return Xe.call(e)}n(ze,"objectToString");ae.exports=ze});var le=d((Bn,de)=>{"use strict";var ue=$(),Ke=se(),Qe=ce(),Ye="[object Null]",Ze="[object Undefined]",fe=ue?ue.toStringTag:void 0;function en(e){return e==null?e===void 0?Ze:Ye:fe&&fe in Object(e)?Ke(e):Qe(e)}n(en,"baseGetTag");de.exports=en});var pe=d((Hn,me)=>{"use strict";function nn(e){return e!=null&&typeof e=="object"}n(nn,"isObjectLike");me.exports=nn});var be=d((Jn,ge)=>{"use strict";var tn=le(),rn=pe(),on="[object Symbol]";function sn(e){return typeof e=="symbol"||rn(e)&&tn(e)==on}n(sn,"isSymbol");ge.exports=sn});var Ce=d((Vn,xe)=>{"use strict";var an=ne(),ve=D(),cn=be(),ye=NaN,un=/^[-+]0x[0-9a-f]+$/i,fn=/^0b[01]+$/i,dn=/^0o[0-7]+$/i,ln=parseInt;function mn(e){if(typeof e=="number")return e;if(cn(e))return ye;if(ve(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ve(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=an(e);var r=fn.test(e);return r||dn.test(e)?ln(e.slice(2),r?2:8):un.test(e)?ye:+e}n(mn,"toNumber");xe.exports=mn});var Se=d((zn,Te)=>{"use strict";var pn=D(),N=Q(),he=Ce(),gn="Expected a function",bn=Math.max,vn=Math.min;function yn(e,t,r){var i,u,b,l,s,a,p=0,E=!1,f=!1,x=!0;if(typeof e!="function")throw new TypeError(gn);t=he(t)||0,pn(r)&&(E=!!r.leading,f="maxWait"in r,b=f?bn(he(r.maxWait)||0,t):b,x="trailing"in r?!!r.trailing:x);function C(o){var g=i,y=u;return i=u=void 0,p=o,l=e.apply(y,g),l}n(C,"invokeFunc");function R(o){return p=o,s=setTimeout(m,t),E?C(o):l}n(R,"leadingEdge");function q(o){var g=o-a,y=o-p,c=t-g;return f?vn(c,b-y):c}n(q,"remainingWait");function T(o){var g=o-a,y=o-p;return a===void 0||g>=t||g<0||f&&y>=b}n(T,"shouldInvoke");function m(){var o=N();if(T(o))return S(o);s=setTimeout(m,q(o))}n(m,"timerExpired");function S(o){return s=void 0,x&&i?C(o):(i=u=void 0,l)}n(S,"trailingEdge");function I(){s!==void 0&&clearTimeout(s),p=0,i=a=u=s=void 0}n(I,"cancel");function w(){return s===void 0?l:S(N())}n(w,"flush");function j(){var o=N(),g=T(o);if(i=arguments,u=this,a=o,g){if(s===void 0)return R(a);if(f)return clearTimeout(s),s=setTimeout(m,t),C(a)}return s===void 0&&(s=setTimeout(m,t)),l}return n(j,"debounced"),j.cancel=I,j.flush=w,j}n(yn,"debounce");Te.exports=yn});import{useState as hn,useCallback as Tn,useEffect as Ee,useRef as Sn}from"react";var Oe=qe(Se(),1);import{useCallback as xn,useEffect as Cn,useRef as je}from"react";function W(e,t){let r=je(e);Cn(()=>{r.current=e},[e]);let i=je((0,Oe.default)(u=>{r.current(u)},t)).current;return xn(u=>{i(u)},[i])}n(W,"useDebounce");import{Fragment as On,jsx as h,jsxs as Re}from"react/jsx-runtime";var jn=n(({description:e,showConversion:t,targetCurrency:r,className:i,onClick:u})=>{let{components:b}=H(),l=t?`Hide ${r} conversion`:`Show ${r} conversion`,s=b?.button;if(!s)throw new Error("Button component not found");return Re("span",{className:i,children:[h(A,{as:"span",children:e})," ",h(s,{className:`${i.replace("-description","-button")}`,"data-type":"inline",onClick:u,children:l})]})},"DescriptionWithConversion"),ut=n(({sourceCurrency:e,targetCurrency:t,mainFieldName:r,conversionFieldName:i,conversionProperties:u,classNamePrefix:b,description:l,conversionType:s="spread",...a})=>{let[p,E]=hn(!1),{setValue:f,watch:x}=B(),C=x(r||a.name),R=Sn(!0),q=e&&t&&e!==t,{mutateAsync:T}=J({type:s}),m=`${a.name}_converted`;Ee(()=>{f(m,r||a.name)},[f,r,a.name,m]),Ee(()=>{if(R.current){R.current=!1;return}f(i,"")},[e,i,f]);let S=Tn(async(c,v,F)=>{if(!(!c||isNaN(c)||c<=0))return T({source_currency:v,target_currency:F,amount:c})},[T]),I=W(async c=>{let v=M(c),P=1/((await S(v,t,e))?.data?.data.conversion_data?.exchange_rate??1),Ie=G(Number(v)*P);f(i,L(Ie))},500),w=W(async c=>{let v=M(c),P=(await S(v,t,e))?.data?.data.conversion_data.target_amount;f(r||a.name,L(P))},500),j=n(c=>{f(m,r||a.name),p&&I(c.target.value)},"handleMainFieldChange"),o=n(c=>{f(m,i),w(c.target.value)},"handleConversionFieldChange"),g=n(c=>{c.preventDefault(),E(v=>!v),!p&&C&&I(C)},"toggleConversion"),y=q?h(jn,{targetCurrency:t,description:l,showConversion:p,className:`${b}-description`,onClick:g}):l;return Re(On,{children:[h(k,{...a,name:r||a.name,additionalProps:{currency:e},description:y,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:j}),p&&h(k,{additionalProps:{currency:t},name:i,label:u?.label||"Conversion",description:u?.description,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:o}),h("input",{type:"hidden",name:m,value:x(m)||r||a.name})]})},"CurrencyConversionField");export{ut as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OK2NP3L5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-AS77PXWM.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function p({onSubmit:t}){let{terminationBag:o}=a(),n=i(async r=>{let m=await o?.parseFormValues(r);await t?.(m),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:n})}i(p,"TerminationDetailsForm");export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OQ5WZBDA.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d,b as w}from"./chunk-VB6KFDBL.js";import{a as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d,b as w}from"./chunk-VB6KFDBL.js";import{a as g}from"./chunk-MSEHAEEK.js";import{a as E}from"./chunk-NAF6LRSS.js";import{e as C}from"./chunk-D5AO6SOM.js";import{P as F,e as _,z as P}from"./chunk-H2RAK6F7.js";import{a as h}from"./chunk-X6ZAR7ZL.js";import{a as j}from"./chunk-TSPDJUGG.js";import{d as c}from"./chunk-KQPDXXG3.js";import{a as e}from"./chunk-P37U34EQ.js";import{useMutation as b,useQuery as I}from"@tanstack/react-query";var B=e(({countryCode:n,employment:r,fieldValues:a,options:t})=>{let{client:u}=c(),m=t?.jsonSchemaVersion?.contract_amendments?{json_schema_version:t.jsonSchemaVersion.contract_amendments}:{};return I({queryKey:["contract-amendment-schema"],retry:!1,queryFn:e(async()=>{let o=await _({client:u,headers:{Authorization:""},query:{employment_id:r?.id,country_code:n,...m}});if(o.error||!o.data)throw new Error("Failed to fetch contract amendment schema");return o},"queryFn"),enabled:!!r,select:e(({data:o})=>{let l=o?.data||{};return E(l,a,t)},"select")})},"useContractAmendmentSchemaQuery"),J=e(n=>{let{client:r}=c(),a=n?.jsonSchemaVersion?.contract_amendments?{json_schema_version:n.jsonSchemaVersion.contract_amendments}:{};return b({mutationFn:e(t=>P({client:r,headers:{Authorization:""},body:t,query:{...a}}),"mutationFn")})},"useCreateContractAmendmentMutation"),K=e(n=>{let{client:r}=c(),a=n?.jsonSchemaVersion?.contract_amendments?{json_schema_version:n.jsonSchemaVersion.contract_amendments}:{};return b({mutationFn:e(t=>F({client:r,headers:{Authorization:""},body:t,query:{...a}}),"mutationFn")})},"useAutomatableContractAmendmentMutation"),te=e(({employmentId:n,countryCode:r,options:a})=>{let{fieldValues:t,setFieldValues:u,stepState:m,nextStep:o,previousStep:l}=j(d),{data:i,isLoading:v,isError:q,error:Q}=g({employmentId:n,queryParams:{exclude_files:!0}}),{data:s,isLoading:L,isError:M,error:T}=B({employment:i,countryCode:r,fieldValues:{...m.values?.[m.currentStep.name],...t},options:a}),k=w(i,s?.fields),S=J(a),A=K(a);async function x(p){let f=await C(p,s?.fields||[],{isPartialValidation:!1}),V={employment_id:i?.id,amendment_contract_id:i?.active_contract_id,contract_amendment:{...f}};switch(m.currentStep.name){case d.form.name:{let{mutateAsync:y}=h(A),H=await y(V);return o(),H}case d.confirmation_form.name:{let{mutateAsync:y}=h(S);return y(V)}default:throw new Error("Invalid step state")}}e(x,"onSubmit");async function z(p){if(s){let f=await C(p,s?.fields);return s?.handleValidation(f)}return null}e(z,"handleValidation");function O(){l()}return e(O,"back"),{stepState:m,fields:s?.fields||[],isLoading:v||L,isError:q||M,error:Q||T,isSubmitting:A.isPending||S.isPending,initialValues:k,values:t,handleValidation:z,checkFieldUpdates:u,onSubmit:x,back:O}},"useContractAmendment");export{te as a};
|
|
2
|
+
//# sourceMappingURL=chunk-PZAYG2DF.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-76ZDXC2T.js";import{b as p}from"./chunk-LNV36S6D.js";import{a as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-76ZDXC2T.js";import{b as p}from"./chunk-LNV36S6D.js";import{a as c}from"./chunk-BI4RFXFL.js";import{f as a,h as d}from"./chunk-CWAFRJAQ.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as y,useRef as b}from"react";import{jsx as l}from"react/jsx-runtime";import{createElement as g}from"react";function B({defaultValues:s,onSubmit:u,components:F}){let{formId:C,createCompanyBag:o}=f(),m=b(s),h=p(o.handleValidation),r=a({resolver:h,defaultValues:s,shouldUnregister:!1,mode:"onBlur"});y(()=>{let n=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==m.current[i])&&(o?.checkFieldUpdates(e),m.current={...e})});return()=>n?.unsubscribe()},[]);let S=t(async n=>{await u(n)},"handleSubmit");return g(d,{...r,key:`form-${o.stepState.currentStep.name}`},l("form",{id:C,onSubmit:r.handleSubmit(S),className:"space-y-4 RemoteFlows__OnboardingForm",children:l(c,{components:F,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}t(B,"CreateCompanyForm");export{B as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QLYFMDLB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-7ZFZYZSP.js";import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-7ZFZYZSP.js";import{a as r}from"./chunk-HNCOYMS5.js";import{a}from"./chunk-U6LRMWRI.js";import{a as c}from"./chunk-PZAYG2DF.js";import{a as e}from"./chunk-D5AR26AI.js";import{a as o}from"./chunk-TVZAFTPT.js";import{a as n}from"./chunk-P37U34EQ.js";import{useId as f}from"react";import{jsx as s}from"react/jsx-runtime";function k({employmentId:d,countryCode:C,options:p,render:A}){let t=c({employmentId:d,countryCode:C,options:p}),i=f();return s(o.Provider,{value:{formId:i,contractAmendmentBag:t},children:A({contractAmendmentBag:t,components:{Form:r,SubmitButton:a,ConfirmationForm:m,BackButton:e}})})}n(k,"ContractAmendmentFlow");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-R3BBN7TV.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as u}from"./chunk-PGWKJ6FK.js";import{b as p}from"./chunk-LNV36S6D.js";import{a as F}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as u}from"./chunk-PGWKJ6FK.js";import{b as p}from"./chunk-LNV36S6D.js";import{a as F}from"./chunk-BI4RFXFL.js";import{f as l,h as c}from"./chunk-CWAFRJAQ.js";import{b as f}from"./chunk-X6ZAR7ZL.js";import{a}from"./chunk-P37U34EQ.js";import{useEffect as y}from"react";import{jsx as S}from"react/jsx-runtime";import{createElement as O}from"react";function x({defaultValues:m,onSubmit:b,components:g}){let{formId:E,onboardingBag:o}=u(),k=p(o.handleValidation),n=l({resolver:k,defaultValues:m,shouldUnregister:!1,mode:"onBlur"});y(()=>{o.employmentId&&o?.checkFieldUpdates(n.getValues())},[]),y(()=>{let t=n?.watch(e=>{Object.keys(e).some(s=>e[s]!==m[s])&&o?.checkFieldUpdates(e)});return()=>t?.unsubscribe()},[]);let w=a(async(t,e)=>{let i=e?.nativeEvent;if(i?.isDraftSubmission){let{onSuccess:s,onError:d}=i.draftCallbacks;try{let r=await o.onSubmit(t);if(r?.data)s?.();else if(r?.error){let h=o.stepState.currentStep.name,P=o.meta?.fields?.[h],B=f(r?.fieldErrors||[],P);d?.({error:r.error,rawError:r.rawError,fieldErrors:B})}}catch(r){d?.({error:r,rawError:r,fieldErrors:[]})}}else await b(t)},"handleSubmit");return O(c,{...n,key:`form-${o.stepState.currentStep.name}`},S("form",{id:E,onSubmit:n.handleSubmit(w),className:"space-y-4 RemoteFlows__OnboardingForm",children:S(F,{components:g,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}a(x,"OnboardingForm");export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-RDYN6W2A.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-AS77PXWM.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as m}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function p({onSubmit:n}){let{terminationBag:o}=e(),a=m(async t=>{let r=await o?.parseFormValues(t);await n?.(r),o?.next()},"handleSubmit");return u(i,{defaultValues:o.fieldValues,onSubmit:a})}m(p,"EmployeeCommunicationForm");export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-SADMJJDB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-XFD3ULUF.js";import{a as S}from"./chunk-42R2H2DW.js";import{a as m,b as d,c as h,d as _}from"./chunk-DFJNVGK4.js";import{a as y}from"./chunk-TXSUZLOI.js";import{a as g}from"./chunk-NAF6LRSS.js";import{D as T,Y as b,c as D}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as k}from"./chunk-XFD3ULUF.js";import{a as S}from"./chunk-42R2H2DW.js";import{a as m,b as d,c as h,d as _}from"./chunk-DFJNVGK4.js";import{a as y}from"./chunk-TXSUZLOI.js";import{a as g}from"./chunk-NAF6LRSS.js";import{D as T,Y as b,c as D}from"./chunk-H2RAK6F7.js";import{d as i}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{useQuery as v}from"@tanstack/react-query";var c=n(({employmentId:e,status:t,timeoffType:a,options:o})=>{let{client:r}=i();return v({queryKey:["timeoff",e,t],retry:!1,queryFn:n(()=>b({client:r,headers:{Authorization:""},query:{employment_id:e,status:t,timeoff_type:a}}),"queryFn"),select:n(({data:s})=>o?.select?.(s)??s,"select"),enabled:o?.enabled})},"useTimeOffQuery"),R=n((e,t)=>{let a=y(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),o=y(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return`${a} \u2192 ${o}`},"formatDateRange"),N=n(({employmentId:e,options:t})=>c({employmentId:e,timeoffType:"paid_time_off",options:{enabled:t?.enabled,select:n(a=>({bookedDays:a?.data?.timeoffs?.reduce((o,r)=>o+(r?.timeoff_days?.filter(s=>s.hours!=null&&s.hours>0).length||0),0)||0,timeoffs:a?.data?.timeoffs?.map(o=>{let r=o?.timeoff_days?.filter(s=>s.hours>0).length||0;return{status:o?.status,duration:r,startDate:o?.start_date,endDate:o?.end_date,formattedDate:R(o?.start_date,o?.end_date)}})||[]}),"select")}}),"usePaidTimeoffBreakdownQuery"),A=n(({employmentId:e})=>{let{client:t}=i();return v({queryKey:["timeoff-balance",e],retry:!1,queryFn:n(()=>T({client:t,headers:{Authorization:""},path:{employment_id:e}}),"queryFn"),select:n(({data:a})=>a,"select")})},"useTimeOffLeavePoliciesSummaryQuery");import{useMutation as E,useQuery as Q}from"@tanstack/react-query";function F(e){return Object.entries(e).reduce((t,[a,o])=>({...t,[a]:h(o)}),{})}n(F,"formatTimeoffValues");function q(e){let t=e?.contract_details?.available_pto,a=e?.contract_details?.available_pto_type;return e?.country?.code==="USA"&&a==="unlimited"?{value:t===0?20:t}:a==="unlimited"&&t>0?{value:t}:{value:t}}n(q,"getMinimumStatutoryDays");function U(e,t){let a=0,o=0;return e.forEach(r=>{r.timeoff_days?.forEach(s=>{new Date(s.day)<=t?a+=s.hours||0:o+=s.hours||0})}),{before:a,after:o}}n(U,"getAllTimeoffHoursBeforeDate");var V=n(({employmentId:e,date:t,options:a})=>c({employmentId:e,timeoffType:"paid_time_off",status:"approved",options:{enabled:a?.enabled,select:n(o=>{let{before:r,after:s}=U(o?.data?.timeoffs||[],new Date(t));return{bookedDaysBeforeTermination:d(r),bookedDaysAfterTermination:d(s)}},"select")}}),"useBookedTimeoffBeforeAndAfterTerminationQuery"),me=n(({employmentId:e,proposedTerminationDate:t,employment:a})=>{let{value:o=0}=q(a),r=A({employmentId:e}),s=V({employmentId:e,date:t}),p=r.data?.data?.[0].annual_entitlement.type==="limited"?{days:r.data?.data?.[0].annual_entitlement.days,hours:r.data?.data?.[0].annual_entitlement.hours}:{days:o,hours:0},u={days:r.data?.data?.[0].booked.days||0,hours:r.data?.data?.[0].booked.hours||0},f=r.data?.data?.[0].current_entitlement.type==="limited"?{days:r.data?.data?.[0].current_entitlement.days||0,hours:r.data?.data?.[0].current_entitlement.hours||0}:{days:o,hours:0},l={days:r.data?.data?.[0].used.days||0,hours:r.data?.data?.[0].used.hours||0},B=s.data?.bookedDaysBeforeTermination||{days:0,hours:0},C=s.data?.bookedDaysAfterTermination||{days:0,hours:0},x=m(f.days,f.hours),H=m(l.days,l.hours),P=m(u.days,u.hours),L=x-H-P,O=_(d(L));return{data:{...F({entitledDays:p,bookedDays:u,usedDays:l,approvedDaysBeforeTermination:B,approvedDaysAfterTermination:C,remainingDays:O,currentEntitlementDays:f}),isUnlimitedPto:a?.contract_details?.available_pto_type==="unlimited"},isLoading:r.isLoading||s.isLoading,isError:r.isError||s.isError,error:r.error||s.error}},"useSummaryTimeOffDataQuery"),de=n(()=>{let{client:e}=i();return E({mutationFn:n(t=>D({client:e,body:t}),"mutationFn")})},"useCreateTermination"),ue=n(({formValues:e,jsfModify:t,step:a})=>Q({queryKey:["rmt-flows-termination-schema",a],queryFn:n(()=>S[a]??k,"queryFn"),select:n(({data:o})=>{let r=o?.schema||{};return g(r,e||{},{jsfModify:t})},"select")}),"useTerminationSchema");export{c as a,N as b,A as c,V as d,me as e,de as f,ue as g};
|
|
2
|
+
//# sourceMappingURL=chunk-SXKIRVA2.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as y}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as y}from"./chunk-OK2NP3L5.js";import{a as l,b as m}from"./chunk-G5O2CM6V.js";import{c}from"./chunk-CWAFRJAQ.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(m,{className:"text-sm",zendeskId:l.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(y,{...e,sourceCurrency:d,targetCurrency:F,mainFieldName:g,conversionFieldName:u,conversionProperties:f,classNamePrefix:"RemoteFlows-Salary",conversionType:_})},"SalaryField");export{R as a};
|
|
2
|
+
//# sourceMappingURL=chunk-SXM3GJ5M.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-VPSESR6G.js";import{a as F}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-VPSESR6G.js";import{a as F}from"./chunk-C4MRFGQG.js";import{j as p,k as l,l as i,m as a,n as c}from"./chunk-CWAFRJAQ.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as $,useState as v}from"react";import{jsx as n,jsxs as C}from"react/jsx-runtime";function L({field:t,fieldState:b,fieldData:o}){let[g,s]=v([]),_=m(e=>{let r=e.map(({value:S})=>S);t.onChange(r),s(e)},"handleChange");$(()=>{t.value&&o.options&&s(t.value.map(e=>o?.options?.find(r=>r.value===e)))},[t.value,o.options]);let y=[...Object.entries(o.$meta?.regions||{}).map(([e,r])=>({value:r,label:e,category:"Regions"})),...Object.entries(o.$meta?.subregions||{}).map(([e,r])=>({value:r,label:e,category:"Subregions"})),...o.options?.map(e=>({...e,value:e.value,label:e.label,category:"Countries"}))||[]];return C(p,{"data-field":t.name,className:`RemoteFlows__CountryField__Item__${t.name}`,children:[n(l,{className:"RemoteFlows__CountryField__Label",children:o.label}),n(i,{children:n(u,{options:y,selected:g,onChange:_})}),o.description&&C(a,{children:[o.description," ",n(F,{helpCenter:o.meta?.helpCenter})]}),b.error&&n(c,{})]})}m(L,"CountryFieldDefault");export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-T4YYYCSD.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as H}from"./chunk-AP56UUME.js";import{a as z}from"./chunk-IJCTN52C.js";import{e as E}from"./chunk-AHRG5QCS.js";import{a as P,b as Y,c as X,d as _,f as q}from"./chunk-PX5PE6GX.js";import{a as N}from"./chunk-WVJDCDGZ.js";import{a as W}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as H}from"./chunk-AP56UUME.js";import{a as z}from"./chunk-IJCTN52C.js";import{e as E}from"./chunk-AHRG5QCS.js";import{a as P,b as Y,c as X,d as _,f as q}from"./chunk-PX5PE6GX.js";import{a as N}from"./chunk-WVJDCDGZ.js";import{a as W}from"./chunk-C32W6TCT.js";import{a as b}from"./chunk-NAF6LRSS.js";import{d as x}from"./chunk-D5AO6SOM.js";import{g as w}from"./chunk-VIGKOVHP.js";import{$ as B,B as v,F as U,N as J,Q as K,S as j,U as A,V as G,W as V,X as k,_ as $,f as I,h as M,p as D,r as T,s as L,t as Q}from"./chunk-H2RAK6F7.js";import{a as O}from"./chunk-X6ZAR7ZL.js";import{d as a}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{useMemo as be}from"react";import{useMutation as f,useQuery as p}from"@tanstack/react-query";import{useMutation as de,useQuery as Z}from"@tanstack/react-query";var Re=n(()=>{let{client:e}=a();return de({mutationFn:n(t=>j({client:e,body:t,headers:{Authorization:""}}),"mutationFn")})},"useUploadFile"),ee=n(e=>{let{client:t}=a();return Z({queryKey:["download-file",e],queryFn:n(async()=>{let o=await v({client:t,path:{id:e}});if(o.error)throw o.error;return o.data},"queryFn"),select:n(({data:o})=>o?.file,"select"),enabled:!!e})},"useDownloadFile"),te=n((e,t,o)=>{let{client:r}=a();return Z({queryKey:["employment-files",e],queryFn:n(async()=>{let i=await K({client:r,path:{employment_id:e},query:t});if(i.error)throw i.error;return i.data},"queryFn"),...o})},"useEmploymentFiles");import{useQuery as me}from"@tanstack/react-query";import{useQuery as pe}from"@tanstack/react-query";var ne=n(()=>{let{client:e}=a();return pe({queryKey:["identity"],queryFn:n(()=>G({client:e,headers:{Authorization:""}}),"queryFn"),select:n(t=>t.data?.data,"select")})},"useIdentity");function ye(e){return e!=null&&"company"in e}n(ye,"hasCompany");var oe=n((e={enabled:!0})=>{let{data:t}=ne(),o=ye(t)?t?.company?.id??"":"",{client:r}=a();return me({queryKey:["pricing-plans",o],queryFn:n(()=>I({client:r,path:{company_id:o}}),"queryFn"),select:n(i=>i.data?.data?.pricing_plans,"select"),enabled:!!e?.enabled&&!!o})},"useCompanyPricingPlans");var fe=n(({employmentId:e,options:t})=>{let{client:o}=a();return p({queryKey:["contractor-currencies",e],queryFn:n(async()=>Q({client:o,path:{employment_id:e},query:{restrict_to_guaranteed_pay_out_currencies:!1}}),"queryFn"),enabled:t?.queryOptions?.enabled,select:n(({data:r})=>r?.data,"select")})},"useContractorCurrencies"),yt=n(({fieldValues:e,options:t})=>p({queryKey:["contract-document-signature",e.review_completed,t?.jsfModify],queryFn:n(async()=>b(z,e,{jsfModify:t?.jsfModify}),"queryFn"),enabled:t?.queryOptions?.enabled}),"useGetContractDocumentSignatureSchema"),bt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,contractDocumentId:o,payload:r})=>A({client:e,body:r,path:{employment_id:t,contract_document_id:o}}),"mutationFn")})},"useSignContractDocument"),ft=n(({employmentId:e,contractDocumentId:t,options:o})=>{let{client:r}=a();return p({queryKey:["contract-document",e,t],queryFn:n(async()=>T({client:r,path:{employment_id:e,id:t}}),"queryFn"),enabled:o?.queryOptions?.enabled,select:n(({data:i})=>({...i?.data,contract_document:{...i?.data?.contract_document,content:w(i?.data?.contract_document?.content)}}),"select")})},"useGetShowContractDocument"),Ce=n(({employmentId:e,options:t})=>{let{client:o}=a();return p({queryKey:["contractor-subscriptions",e],queryFn:n(async()=>D({client:o,path:{employment_id:e}}),"queryFn"),enabled:t?.queryOptions?.enabled,select:n(({data:r})=>r?.data,"select")})},"useGetContractorSubscriptions"),Ct=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,payload:o})=>k({client:e,body:o,path:{employment_id:t}}),"mutationFn")})},"usePostManageContractorSubscriptions"),gt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,payload:o})=>J({client:e,body:o,path:{employment_id:t}}),"mutationFn")})},"useCreateContractorContractDocument"),ge=n(({countryCode:e,employmentId:t,fieldValues:o,options:r})=>{let{client:i}=a();return p({queryKey:["contractor-onboarding-details-schema",e,t],retry:!1,queryFn:n(async()=>M({client:i,path:{country_code:e},query:{json_schema_version:1,employment_id:t}}),"queryFn"),enabled:r?.queryOptions?.enabled,select:n(({data:s})=>{let c=s?.data?.schema||{};return b(c,o,r)},"select")})},"useContractorOnboardingDetailsSchema"),Fe={[P]:"Contractor Management",[Y]:"Contractor Management Plus",[X]:"Contractor of Record"},Se=n(e=>{let{data:t,isLoading:o}=oe({enabled:e?.enabled}),r=t?.find(s=>s.product.name==="EOR Monthly");return{eorSubscription:{product:{identifier:_,short_name:"EOR"},currency:r?.price.currency,price:{amount:x(r?.price.amount??0)},features:["Contract between Remote and employee","Remote manages onboarding, payroll, and compliance","Manages taxes, benefits, and time-off tracking","Handles contracts, transfers, and terminations"],description:"Enables hiring in countries without a local entity",label:"Employer of Record",value:_},isLoading:o}},"useEorSubscription"),he=n((e,t,o)=>(E(_,o)&&e.push({label:t.label,value:t.value,description:t.description,meta:{features:t.features,price:{amount:t.price.amount,currencyCode:t.currency?.code??""}},disabled:!1}),e),"addEorToFieldOptions"),Ft=n((e,t,o)=>{let{data:r,isLoading:i,refetch:s}=Ce({employmentId:e,options:{queryOptions:o?.queryOptions}}),c=r?.length===0,u=r?.length===1,l=r?.find(S=>S.product.short_name==="COR")?.eligibility_questionnaire?.is_blocking,d=(u||l===!0||c)&&t?.eor_onboarding,{eorSubscription:C,isLoading:re}=Se({enabled:d}),R=b(H.data.schema,{},o);if(r){let S=R.fields.find(h=>h.name==="subscription");if(S){let h=r.filter(m=>E(m.product.identifier??"",o?.excludeProducts)).map(m=>{let y=m.product,ie=m.price.amount,ae=m.currency.code,se=Fe[y.identifier]??"",ce=y.identifier??"",le=y.description??"",ue={features:y.features??[],price:{amount:x(ie),currencyCode:ae}};return{label:se,value:ce,description:le,meta:ue,disabled:l&&y.identifier!==P}});h.sort((m,y)=>m.label.localeCompare(y.label));let g=[];d&&(he(g,C,o?.excludeProducts),g.length>0&&(g[0].meta={...g[0].meta,groupSeparator:{show:!0}})),S.options=[...h,...g]}}return{isLoading:i||re,form:R,contractorSubscriptions:r,refetch:s,isEligibilityQuestionnaireBlocked:l}},"useContractorSubscriptionSchemaField"),St=n((e,t,o)=>{let{mutateAsyncOrThrow:r}=O(t),{mutateAsyncOrThrow:i}=O(e);return{mutateAsync:n(async({employmentId:s})=>{let{nationality_status:c,ir35:u,ir35_sds_file:F}=o,l={contract_document:{ir_35:u}},d={contract_document:{nationality:c}};return u?(await i({employmentId:s,payload:l}),F?r({employment_id:s,file:F,sub_type:q}):Promise.resolve()):c?i({employmentId:s,payload:d}):Promise.resolve()},"mutateAsync")}},"useUpdateUKandSaudiFields"),ht=n((e,t)=>{let{data:o,isLoading:r}=te(e,{sub_type:q},{...t,select:n(({data:c})=>c?.files?.filter(u=>u.sub_type===q),"select")}),i=o?.[0]?.id,s=ee(i);return{...s,isLoading:r||s.isLoading}},"useGetIR35File"),_t=n((e,t)=>{let{client:o}=a();return p({queryKey:["contract-documents",e],queryFn:n(async()=>L({client:o,path:{employment_id:e}}),"queryFn"),enabled:t?.enabled,select:n(({data:r})=>r?.data?.contract_documents,"select")})},"useGetContractDocuments"),qt=n(({options:e,fieldValues:t})=>{let{client:o}=a();return p({queryKey:["eligibility-questionnaire"],queryFn:n(async()=>{let r=await V({client:o,query:{type:"contractor_of_record",json_schema_version:1}});if(r.error)throw new Error("Failed to fetch eligibility questionnaire");return r.data.data},"queryFn"),select:n(r=>{let i=r?.schema||{};return b(i,t,{jsfModify:e?.jsfModify})},"select"),enabled:e?.queryOptions?.enabled})},"useGetEligibilityQuestionnaire"),Ot=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t,payload:o})=>U({client:e,body:{employment_slug:t,responses:o,type:"contractor_of_record"},query:{json_schema_version:1}}),"mutationFn")})},"usePostCreateEligibilityQuestionnaire"),xt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t})=>B({client:e,path:{employment_id:t}}),"mutationFn")})},"usePostManageContractorCorSubscription"),Pt=n(()=>{let{client:e}=a();return f({mutationFn:n(async({employmentId:t})=>$({client:e,path:{employment_id:t}}),"mutationFn")})},"useDeleteContractorCorSubscription"),Et=n(e=>{let{client:t}=a(),{data:o,isLoading:r}=p({...W(t,"contractor-onboarding-countries"),select:n(s=>s.data?.data?.map(c=>({label:c.name,value:c.code,eor_onboarding:c.eor_onboarding,contractor_products_available:c.contractor_products_available}))||[],"select"),enabled:e?.queryOptions?.enabled}),i=b(N.data.schema,{},e);if(o){let s=i.fields.find(c=>c.name==="country");s&&(s.options=o)}return{isLoading:r,selectCountryForm:i,countries:o}},"useCountriesSchemaField"),Rt=n(({countryCode:e,employmentId:t,fieldValues:o,options:r})=>{let i=ge({countryCode:e,employmentId:t,fieldValues:o,options:r}),{data:s,isLoading:c}=fe({employmentId:t,options:{queryOptions:{enabled:r?.queryOptions?.enabled}}}),u=be(()=>!i.data||!s?i.data:{...i.data,fields:i.data.fields.map(l=>l.name!=="payment_terms"?l:{...l,fields:l.fields?.map(d=>d.name!=="compensation_currency_code"?d:{...d,options:s.map(C=>({label:C.code,value:C.code,meta:{source:C.source}}))})})},[i.data,s]);return{...i,data:u,isLoading:i.isLoading||c}},"useContractorOnboardingDetailsSchemaWithCurrencies");export{Re as a,ne as b,ye as c,yt as d,bt as e,ft as f,Ce as g,Ct as h,gt as i,Fe as j,Ft as k,St as l,ht as m,_t as n,qt as o,Ot as p,xt as q,Pt as r,Et as s,Rt as t};
|
|
2
|
+
//# sourceMappingURL=chunk-TNYFIB6U.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-OQ5WZBDA.js";import{a as r}from"./chunk-MJQUJZCD.js";import{a as t}from"./chunk-6GCLDEJP.js";import{a as f}from"./chunk-UQBKFWUI.js";import{a as e}from"./chunk-SADMJJDB.js";import{a as p}from"./chunk-XBPTFEGC.js";import{a as n}from"./chunk-WR5DSTKP.js";import{a as m}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{useId as c}from"react";import{jsx as F}from"react/jsx-runtime";var k=i(({employmentId:l,render:T,options:d,initialValues:s})=>{let u=c(),o=t({employmentId:l,options:d,initialValues:s});return F(m.Provider,{value:{formId:u,terminationBag:o},children:T({terminationBag:o,components:{SubmitButton:r,Back:n,EmployeeComunicationStep:e,TerminationDetailsStep:a,PaidTimeOffStep:p,AdditionalDetailsStep:f}})})},"TerminationFlow");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UJXUKEQU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as x,g as y,h as d}from"./chunk-LXOYWRNU.js";import{a as j}from"./chunk-WVJDCDGZ.js";import{a as R}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{f as x,g as y,h as d}from"./chunk-LXOYWRNU.js";import{a as j}from"./chunk-WVJDCDGZ.js";import{a as R}from"./chunk-C32W6TCT.js";import{a as p}from"./chunk-NAF6LRSS.js";import{A as S,E as w,G as v,H as O,J as E,O as q,T as P,g as f,i as h,j as g,n as b,o as C,w as F,x as _}from"./chunk-H2RAK6F7.js";import{d as i}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{useMutation as c,useQuery as u}from"@tanstack/react-query";var L=n(e=>{let{client:r}=i();return u({queryKey:["employment",e],retry:!1,enabled:!!e,select:n(({data:t})=>t?.data.employment,"select"),queryFn:n(async()=>{let t=await v({client:r,headers:{Authorization:""},path:{employment_id:e}});if(t.error||!t.data)throw new Error("Failed to fetch employment data");return t},"queryFn")})},"useEmployment"),G=n(e=>{let{client:r}=i();return u({queryKey:["company",e],retry:!1,enabled:!!e,queryFn:n(async()=>{let t=await _({client:r,headers:{Authorization:""},path:{company_id:e}});if(t.error||!t.data)throw new Error("Failed to fetch employment data");return t},"queryFn"),select:n(({data:t})=>t.data.company,"select")})},"useCompany"),X=n(e=>{let{client:r}=i();return u({queryKey:["benefit-offers",e],retry:!1,enabled:!!e,queryFn:n(async()=>b({client:r,path:{employment_id:e}}).then(t=>{if(t.error||!t.data)throw new Error("Failed to fetch benefit offers data");return t}),"queryFn"),select:n(({data:t})=>t?.data?.reduce((s,o)=>({...s,[o.benefit_group.slug]:{value:o.benefit_tier?.slug??"no",...o.benefit_group?.filter?.slug?{filter:o.benefit_group?.filter?.slug}:{}}}),{}),"select")})},"useBenefitOffers"),Y=n(()=>{let{client:e}=i();return c({mutationFn:n(r=>P({client:e,headers:{Authorization:""},path:r}),"mutationFn")})},"useEmploymentInvite"),Z=n(()=>{let{client:e}=i();return c({mutationFn:n(r=>F({client:e,body:r}),"mutationFn")})},"useCreateReserveInvoice"),$=n(({countryCode:e,form:r,fieldValues:t,options:s,query:o={},jsonSchemaVersion:a})=>{let{client:l}=i(),U=a?{json_schema_version:a}:{};return u({queryKey:["onboarding-json-schema-form",e,r,a],retry:!1,queryFn:n(async()=>{let m=await S({client:l,headers:{Authorization:""},path:{country_code:e,form:r},query:{skip_benefits:!0,...o,...U}});if(m.error||!m.data)throw new Error("Failed to fetch onboarding schema");return m},"queryFn"),enabled:s?.queryOptions?.enabled,select:n(({data:m})=>{let B=m?.data||{};return p(B,t,s)},"select")})},"useJSONSchemaForm"),ee=n((e,r,t)=>{let{client:s}=i(),o={json_schema_version:d(t)};return u({queryKey:["benefit-offers-schema",e],retry:!1,enabled:!!e,queryFn:n(async()=>{let a=await w({client:s,path:{employment_id:e},query:o});if(a.error||!a.data)throw new Error("Failed to fetch benefit offers schema");return a},"queryFn"),select:n(({data:a})=>{let l=a?.data?.schema||{};return p(l,r,{jsfModify:t?.jsfModify?.benefits})},"select")})},"useBenefitOffersSchema"),te=n(e=>{let{client:r}=i(),t={json_schema_version:y(e)};return c({mutationFn:n(s=>h({client:r,headers:{Authorization:""},body:s,query:{...t}}),"mutationFn")})},"useCreateEmployment"),ne=n((e,r)=>{let{client:t}=i(),s={employment_basic_information_json_schema_version:y(r),contract_details_json_schema_version:x(r,e)||1};return c({mutationFn:n(({employmentId:o,...a})=>O({client:t,headers:{Authorization:""},body:a,path:{employment_id:o},query:{skip_benefits:!0,...s}}),"mutationFn")})},"useUpdateEmployment"),re=n(e=>{let{client:r}=i();return c({mutationFn:n(({employmentId:t,...s})=>{let o={json_schema_version:d(e)};return C({client:r,body:s,path:{employment_id:t},query:o})},"mutationFn")})},"useUpdateBenefitsOffers"),oe=n(e=>{let{client:r}=i(),{data:t,isLoading:s}=u({...R(r,"onboarding-countries"),select:n(a=>a.data?.data?.filter(l=>l.eor_onboarding).map(l=>({label:l.name,value:l.code}))||[],"select"),enabled:e?.queryOptions?.enabled}),o=p(j.data.schema,{},e);if(t){let a=o.fields.find(l=>l.name==="country");a&&(a.options=t)}return{isLoading:s,selectCountryForm:o}},"useCountriesSchemaField"),se=n(({type:e="spread"})=>{let{client:r}=i();return c({mutationFn:n(t=>(e==="no_spread"?f:q)({client:r,body:t}),"mutationFn")})},"useConvertCurrency"),ae=n(()=>{let{client:e}=i();return c({mutationFn:n(({employmentId:r,...t})=>E({client:e,path:{employment_id:r},body:t}),"mutationFn")})},"useUpsertContractEligibility"),ie=n((e,r,t=!0)=>{let{client:s}=i();return u({queryKey:["employment-onboarding-reserves-status",e,r],retry:!1,enabled:t&&!!e&&!!r,queryFn:n(async()=>{let o=await g({client:s,headers:{Authorization:""},path:{company_id:e,employment_id:r}});if(o.error||!o.data)throw new Error("Failed to fetch employment onboarding reserves status");return o},"queryFn"),select:n(({data:o})=>o?.data?.status,"select")})},"useEmploymentOnboardingReservesStatus");export{L as a,G as b,X as c,Y as d,Z as e,$ as f,ee as g,te as h,ne as i,re as j,oe as k,se as l,ae as m,ie as n};
|
|
2
|
+
//# sourceMappingURL=chunk-UMLRTS3B.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as k}from"./chunk-C4MRFGQG.js";import{a as C,b as w,c as F,d as P}from"./chunk-MSBCYMSH.js";import{a as u,b as D}from"./chunk-MP3VDCI7.js";import{j as _,k as v,l as x,m as h,n as b}from"./chunk-CWAFRJAQ.js";import{a as t}from"./chunk-VIGKOVHP.js";import{a as o}from"./chunk-P37U34EQ.js";import{CalendarIcon as L}from"lucide-react";import{format as R}from"date-fns";import{ChevronLeft as I,ChevronRight as M}from"lucide-react";import{DayPicker as z}from"react-day-picker";import{jsx as p}from"react/jsx-runtime";function N({className:r,classNames:i,showOutsideDays:s=!0,...n}){return p(z,{showOutsideDays:s,className:t("p-3",r),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:t(u({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:t("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",n.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:t(u({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...i},components:{IconLeft:o(({className:d,...l})=>p(I,{className:t("size-4",d),...l}),"IconLeft"),IconRight:o(({className:d,...l})=>p(M,{className:t("size-4",d),...l}),"IconRight")},...n})}o(N,"Calendar");import{Fragment as V,jsx as e,jsxs as m}from"react/jsx-runtime";function X({field:r,fieldData:i,fieldState:s}){let{name:n,label:d,description:l,minDate:f,maxDate:g}=i,c=f?new Date(f):void 0,y=g?new Date(g):void 0;return m(_,{"data-field":n,className:`flex flex-col RemoteFlows__DatePickerField__Item__${n}`,children:[e(v,{className:"RemoteFlows__DatePickerField__Label",children:d}),m(w,{children:[e(F,{asChild:!0,children:e(x,{children:e("div",{children:m(D,{type:"button",variant:"outline",className:t("w-full pl-3 text-left font-normal",!r.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${n}`,children:[r.value&&e(V,{children:R(r.value,"yyyy-MM-dd")}),e(L,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),e(P,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:e(N,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:r.value?new Date(r.value):void 0,onSelect:a=>{r.onChange(a?R(a,"yyyy-MM-dd"):null)},defaultMonth:c,components:{DayContent:o(a=>e(C,{children:a.date.getDate()}),"DayContent")},disabled:a=>!!(c&&a<c||y&&a>y)})})]}),l?m(h,{children:[l," ",e(k,{helpCenter:i.meta?.helpCenter})]}):null,s.error&&e(b,{className:"RemoteFlows__DatePickerField__Error"})]})}o(X,"DatePickerFieldDefault");export{X as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UOA5WU4S.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-AS77PXWM.js";import{b as e}from"./chunk-MRYRNB7Y.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as u}from"react/jsx-runtime";function F({onSubmit:t,onSuccess:s,onError:m}){let{terminationBag:o}=e(),d=r(async a=>{let l=await o?.parseFormValues(a,!0);await t?.(l);let i=await o?.onSubmit(a);i?.error?m?.(i.rawError):i?.data&&await s?.(i.data)},"handleSubmit");return u(n,{defaultValues:o.fieldValues,fields:o?.fields,onSubmit:d})}r(F,"AdditionalDetailsForm");export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UQBKFWUI.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-3UDRMQNE.js";import{a as C}from"./chunk-3DMWQJ5W.js";import{b as p}from"./chunk-RAH453TV.js";import{a as m}from"./chunk-VDRNNOVA.js";import{d as b}from"./chunk-AHRG5QCS.js";import{a as g,h as v,i as y}from"./chunk-PX5PE6GX.js";import{a as f,b as _}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-3UDRMQNE.js";import{a as C}from"./chunk-3DMWQJ5W.js";import{b as p}from"./chunk-RAH453TV.js";import{a as m}from"./chunk-VDRNNOVA.js";import{d as b}from"./chunk-AHRG5QCS.js";import{a as g,h as v,i as y}from"./chunk-PX5PE6GX.js";import{a as f,b as _}from"./chunk-G5O2CM6V.js";import{a as t}from"./chunk-P37U34EQ.js";import{format as w}from"date-fns";import{Fragment as R,jsx as u,jsxs as M}from"react/jsx-runtime";var E=t(n=>n===g,"isStandardPricingPlan"),P=t((n,i)=>{let e=i&&i<w(new Date,"yyyy-MM-dd");if(!n&&e)return p({severity:"warning",description:"Backdating the service start date is not supported in the selected Contractor Management plan."})},"showBackDateWarning");function I(n,i,e){e({...i,services_and_deliverables_ai_warning:"",services_and_deliverables_error_skippable:!1})}t(I,"onServicesAndDeliverablesChange");var V=t((n,i,e,r,o)=>{let s=E(e),c=r?.service_duration?.provisional_start_date,l=P(s,c),a=p({severity:"warning",title:"Possible misclassification risk",description:o?y:v});return{...n,create:{...n?.create,services_and_deliverables_ai_warning:{type:"string","x-jsf-presentation":{inputType:"hidden"}},services_and_deliverables_error_skippable:{type:"boolean","x-jsf-presentation":{inputType:"hidden"}}},fields:{...n?.fields,"service_duration.provisional_start_date":{description:i,"x-jsf-presentation":{minDate:s?void 0:w(new Date,"yyyy-MM-dd"),...l}},services_and_deliverables:{onChange:I,"x-jsf-presentation":{calculateDynamicProperties:t(d=>({statement:d.services_and_deliverables_ai_warning?a.statement:void 0}),"calculateDynamicProperties")}}}}},"buildContractDetailsJsfModify"),L=t((n,i,e)=>{let r=n==="SAU",o=n==="GBR",s=b(n);if(!r&&!o&&!s)return e?.jsfModify?.basic_information;if(o)return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,ir35:{title:"IR35 Status",description:t(()=>M(R,{children:["What's your contractor's employment status?"," ",u(_,{zendeskId:f.ir35Status,children:"Learn more about IR35"})]}),"description"),oneOf:[{const:"inside",title:"Inside IR35 (deemed employee)"},{const:"outside",title:"Outside IR35"},{const:"exempt",title:"Exempt from IR35"}],"x-jsf-presentation":{inputType:"select"}},ir35_sds_file:{title:"Upload SDS",description:"Status determination statement",type:"string","x-jsf-presentation":{inputType:"file",accept:m.document,multiple:!1,maxSize:20971520,calculateDynamicProperties:t(a=>{let d=a.ir35;return{isVisible:d==="inside"||d==="outside"}},"calculateDynamicProperties")}}},allOf:[{if:{properties:{ir35:{enum:["inside","outside"]}}},then:{required:["ir35_sds_file"]},else:{properties:{ir35_sds_file:!1}}}],required:["ir35"],orderRoot:t(a=>[...a,"ir35","ir35_sds_file"],"orderRoot")};let c=r?"Is your contractor a Saudi Arabia national, or a non-Saudi national contracting via a local business entity or under a Special Privilege Iqama visa?":`Is the contractor a ${i??"selected country"} national, or a non-${i??"selected country"} national contracting through their local business entity?`,l=r?"Please be aware that contracting with non-Saudi Arabia nationals that are not operating as a company or under a Special Privilege Iqama visa can lead to fines for operating without proper work authorization. If you are concerned, please speak with the Contractor and/or local Saudi Arabia counsel to ensure compliance.":`Be aware that the Contractor must be a ${i??"selected country"} national, or a non-${i??"selected country"} national operating through their company to comply with the legal requirements for performing services and deliverables as a contractor in ${i??"selected country"}. If you are concerned, speak with the Contractor and/or local counsel to ensure compliance.`;return{...e?.jsfModify?.basic_information,create:{...e?.jsfModify?.basic_information?.create,nationality_status:{title:c,description:"",type:"string",oneOf:[{const:"national",description:"",title:"Yes"},{const:"non-national",description:l,title:"No"}],"x-jsf-presentation":{inputType:"radio"}}},required:["nationality_status"],orderRoot:t(a=>[...a,"nationality_status"],"orderRoot")}},"buildBasicInformationJsfModify"),J=t((n,i)=>{let e=n?.jsfModify?.contract_preview?.fields;return{fields:{contract_preview_header:{...e?.contract_preview_header,"x-jsf-presentation":{Component:t(r=>{let o=e?.contract_preview_header?.["x-jsf-presentation"]?.Component||S;return u(o,{...r})},"Component")}},contract_preview_statement:{...e?.contract_preview_statement,"x-jsf-presentation":{Component:t(r=>{let o=e?.contract_preview_statement?.["x-jsf-presentation"]?.Component||C;return u(o,{reviewCompleted:!!i?.review_completed,...r})},"Component")}},signature:{...e?.signature,"x-jsf-presentation":{calculateDynamicProperties:t(r=>({isVisible:!!r.review_completed}),"calculateDynamicProperties"),...e?.signature?.["x-jsf-presentation"]}}}}},"buildContractPreviewJsfModify");export{V as a,L as b,J as c};
|
|
2
|
+
//# sourceMappingURL=chunk-VK7T332E.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-OK2NP3L5.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-VWBA3U4U.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-RDYN6W2A.js";import{b as s}from"./chunk-PGWKJ6FK.js";import{b as n}from"./chunk-X6ZAR7ZL.js";import{a as t}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function S({onSubmit:d,onError:a,onSuccess:m}){let{onboardingBag:r}=s(),c=t(async i=>{try{let e=await r.parseFormValues(i);await d?.(e);let o=await r.onSubmit(i);if(o?.data){await m?.(o.data),r?.next();return}if(o?.error){let p=n(o?.fieldErrors||[],r.meta?.fields?.contract_details);a?.({error:o.error,rawError:o.rawError,fieldErrors:p})}}catch(e){a?.({error:e,rawError:e,fieldErrors:[]})}},"handleSubmit");return E(l,{defaultValues:r.stepState.values?.contract_details||r.initialValues.contract_details,onSubmit:c})}t(S,"ContractDetailsStep");export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VY6W6W6F.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-C4MRFGQG.js";import{a as u,b as R}from"./chunk-SNBAM7SA.js";import{j as a,k as c,l,m,n as _}from"./chunk-CWAFRJAQ.js";import{a as F}from"./chunk-VIGKOVHP.js";import{a as p}from"./chunk-P37U34EQ.js";import{Fragment as g}from"react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var w=p(({field:s,fieldData:i,fieldState:C})=>{let{name:r,label:d,description:n,options:b}=i;return e("fieldset",{className:F("space-y-3",`RemoteFlows__RadioGroupField__Item__${r}`),"data-field":r,children:t(a,{children:[e("legend",{children:d}),n&&e(m,{helpCenter:e(f,{helpCenter:i.meta?.helpCenter}),children:n}),e(l,{children:e(u,{"aria-label":d||r,onValueChange:o=>{s.onChange(o)},value:s.value,className:"flex flex-col space-y-3",children:b?.map(o=>e(g,{children:t(a,{"data-field":r,className:"flex items-start space-x-3 space-y-0 gap-0 RemoteFlows__RadioField__Item",children:[e(l,{children:e(R,{value:o.value,className:"RemoteFlows__RadioField__Input",disabled:o.disabled})}),t("div",{children:[e(c,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:o.label}),o.description&&e(m,{className:"mt-2",children:o.description})]})]})},o.value))})}),C.error&&e(_,{})]})})},"RadioGroupFieldDefault");export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-W6OOI5NF.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./chunk-Q3ALCPJN.js";import{b as F}from"./chunk-LNV36S6D.js";import{a as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b}from"./chunk-Q3ALCPJN.js";import{b as F}from"./chunk-LNV36S6D.js";import{a as S}from"./chunk-BI4RFXFL.js";import{f,h as p}from"./chunk-CWAFRJAQ.js";import{b as u}from"./chunk-X6ZAR7ZL.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as c,useRef as k}from"react";import{jsx as g}from"react/jsx-runtime";import{createElement as B}from"react";function D({defaultValues:l,onSubmit:y,components:h}){let{formId:P,contractorOnboardingBag:o,formRef:i}=b(),d=k(l),C=F(o.handleValidation),r=f({resolver:C,defaultValues:l,shouldUnregister:!1,mode:"onBlur"});c(()=>{i?.setValue&&(i.setValue.current=r.setValue)},[r.setValue,i]),c(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]),c(()=>{let n=r?.watch(e=>{Object.keys(e).some(a=>e[a]!==d.current[a])&&(o?.checkFieldUpdates(e),d.current={...e})});return()=>n?.unsubscribe()},[]);let E=m(async(n,e)=>{let s=e?.nativeEvent;if(s?.isDraftSubmission){let{onSuccess:a,onError:O}=s.draftCallbacks;try{await o.onSubmit(n),a?.()}catch(t){let V=o.stepState.currentStep.name,w=o.meta?.fields?.[V],R=u(t?.fieldErrors||[],w);O?.({error:t?.error||t,rawError:t?.rawError||t,fieldErrors:R})}}else await y(n)},"handleSubmit");return B(p,{...r,key:`form-${o.stepState.currentStep.name}`},g("form",{id:P,onSubmit:r.handleSubmit(E),className:"space-y-4 RemoteFlows__OnboardingForm",children:g(S,{components:h,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}m(D,"ContractorOnboardingForm");export{D as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WFZGKBFS.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-AS77PXWM.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function d({onSubmit:m}){let{terminationBag:o}=a(),r=i(async t=>{let n=await o?.parseFormValues(t);await m?.(n),o?.next()},"handleSubmit");return s(e,{defaultValues:o.fieldValues,onSubmit:r})}i(d,"PaidTimeOffForm");export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XBPTFEGC.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as M}from"./chunk-SNECOPBD.js";import{i as U,j as q}from"./chunk-D5AO6SOM.js";import{b as O,c as G,f as Z}from"./chunk-AS6KFUXS.js";import{a as L}from"./chunk-BYDQHL6O.js";import{a as I}from"./chunk-6H4634RG.js";import{b as E}from"./chunk-YUJBCOLO.js";import{c,i as C}from"./chunk-CWAFRJAQ.js";import{a as v,e as k}from"./chunk-VIGKOVHP.js";import{b as S}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as he,useEffect as Ee,useRef as ye}from"react";import{jsx as K}from"react/jsx-runtime";function Q({description:e,label:t,name:r,minDate:l,maxDate:m,onChange:a,component:i,...p}){let{components:g}=S(),{control:u}=c(),F;p.meta?.mot&&typeof p.meta.mot=="number"?F=U(p.meta.mot):typeof l=="string"&&(F=new Date(`${l}T00:00:00`));let d;return m&&(d=new Date(`${m}T23:59:59`)),K(C,{control:u,name:r,render:({field:f,fieldState:h})=>{let s=i||g?.date;if(!s)throw new Error(`Date picker component not found for field ${r}`);let y={description:e,label:t,name:r,onChange:a,...F&&{minDate:F.toISOString()},...d&&{maxDate:d.toISOString()},...p};return K(s,{field:{...f,onChange:n(x=>{f.onChange(x),a?.(x)},"onChange")},fieldState:h,fieldData:y})}})}n(Q,"DatePickerField");import{jsx as X}from"react/jsx-runtime";var _e=n((e,t)=>{if(!t)return null;for(let r of e)if(r.size>t){let l=Math.round(t/1048576),m=Math.round(r.size/(1024*1024));return`File "${r.name}" exceeds maximum size of ${l}MB (file is ${m}MB)`}return null},"validateFileSize");function Y({name:e,description:t,label:r,multiple:l,onChange:m,component:a,accept:i,maxSize:p,...g}){let{components:u}=S(),{control:F,setError:d,clearErrors:f}=c(),h=n(async(s,y)=>{let x=_e(s,p);if(x){d(e,{message:x});return}f(e),y.onChange(s),m?.(s)},"handleOnChange");return X(C,{control:F,name:e,render:({field:s,fieldState:y})=>{let x=a||u.file;if(!x)throw new Error(`File upload component not found for field ${e}`);let w={name:e,description:t,label:r,multiple:l,accept:i,maxFileSize:p,...g};return X(x,{field:{...s,value:s.value,onChange:n(async T=>h(T,s),"onChange")},fieldState:y,fieldData:w})}})}n(Y,"FileUploadField");import{jsx as j}from"react/jsx-runtime";function V(e){let{components:t}=S(),{control:r}=c(),l=e.component||t.number;if(!l)throw new Error(`Number component not found for field ${e.name}`);return j(C,{control:r,name:e.name,render:({field:m,fieldState:a})=>j(l,{field:{...m,onChange:n(i=>{m.onChange(i),e.onChange?.(i)},"onChange")},fieldState:a,fieldData:e})})}n(V,"NumberField");import{jsx as ee}from"react/jsx-runtime";function oe({name:e,defaultValue:t,description:r,label:l,options:m,onChange:a,component:i,...p}){let{components:g}=S(),{control:u}=c();return ee(C,{control:u,name:e,defaultValue:t,render:({field:F,fieldState:d})=>{let f=i||g?.radio;if(!f)throw new Error(`Radio group component not found for field ${e}`);let h={name:e,defaultValue:t,description:r,label:l,options:m,...p};return ee(f,{field:{...F,onChange:n(s=>{F.onChange(s),a?.(s)},"onChange")},fieldState:d,fieldData:h})}})}n(oe,"RadioGroupField");import{jsx as te}from"react/jsx-runtime";function ne({label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,component:i,...p}){let{control:g}=c(),{components:u}=S();return te(C,{defaultValue:l,control:g,name:t,render:({field:F,fieldState:d})=>{let f=i||u?.select;if(!f)throw new Error(`Select component not found for field ${t}`);let h={label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,...p};return te(f,{field:{...F,onChange:n(s=>{let x=(Array.isArray(p.jsonType)?p.jsonType.includes("number"):p.jsonType==="number")?Number(s):s;F.onChange(x),a?.(x)},"onChange")},fieldState:d,fieldData:h})}})}n(ne,"SelectField");import{jsx as re}from"react/jsx-runtime";function ie({label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,$meta:i,component:p,...g}){let{control:u}=c(),{components:F}=S();return re(C,{defaultValue:l,control:u,name:t,render:({field:d,fieldState:f})=>{let h=p||F.countries;if(!h)throw new Error(`Country component not found for field ${t}`);let s={label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,$meta:i,...g};return re(h,{field:{...d,onChange:n(y=>{d.onChange(y),a?.(y)},"onChange")},fieldState:f,fieldData:s})}})}n(ie,"CountryField");import{jsx as le}from"react/jsx-runtime";function me({name:e,description:t,label:r,onChange:l,maxLength:m,component:a,...i}){let{components:p}=S(),{control:g}=c();return le(C,{control:g,name:e,render:({field:u,fieldState:F})=>{let d=a||p.textarea;if(!d)throw new Error(`Text area component not found for field ${e}`);let f={name:e,description:t,label:r,maxLength:m,...i};return le(d,{field:{...u,onChange:n(h=>{u.onChange(h),l?.(h)},"onChange")},fieldState:F,fieldData:f})}})}n(me,"TextAreaField");import{jsx as se}from"react/jsx-runtime";function ae(e){let{components:t}=S(),{control:r}=c(),l=e.component||t.email;if(!l)throw new Error(`Email component not found for field ${e.name}`);return se(C,{control:r,name:e.name,render:({field:m,fieldState:a})=>se(l,{field:{...m,onChange:n(i=>{m.onChange(i),e.onChange?.(i)},"onChange")},fieldState:a,fieldData:e})})}n(ae,"EmailField");import{jsx as de}from"react/jsx-runtime";function pe(e){let{control:t}=c();return de(C,{control:t,name:e.name,render:({field:r})=>de("input",{...r,type:"hidden"})})}n(pe,"HiddenField");import{useEffect as ke,useState as we}from"react";import{jsx as ce}from"react/jsx-runtime";function ue(e){let{components:t}=S(),{setValue:r,control:l,watch:m}=c(),a=m(e.name),[i,p]=we(a),{workHoursSummary:g,breakSummary:u}=G(i),F=O(i);ke(()=>{r(e.name,i)},[i,e.name,r]);function d(s){p(s)}n(d,"onSubmit");let f=e.component||t["work-schedule"];if(!f)throw new Error(`Work schedule component not found for field ${e.name}`);let h={...e,onSubmit:d,currentSchedule:i,defaultFormattedValue:{workHoursSummary:g,breakSummary:u,totalWorkHours:F}};return ce(C,{control:l,name:e.name,render:({field:s,fieldState:y})=>ce(f,{field:{...s,onChange:n(x=>{s.onChange(x),e.onChange?.(x)},"onChange")},fieldState:y,fieldData:h})})}n(ue,"WorkScheduleField");import{jsx as Fe}from"react/jsx-runtime";function fe({label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,component:i,...p}){let{control:g}=c(),{components:u}=S();return Fe(C,{defaultValue:l,control:g,name:t,render:({field:F,fieldState:d})=>{let f=i||u?.["multi-select"];if(!f)throw new Error(`Multi select component not found for field ${t}`);let h={label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,...p};return Fe(f,{field:{...F,onChange:n(s=>{F.onChange(s),a?.(s)},"onChange")},fieldState:d,fieldData:h})}})}n(fe,"MultiSelectField");import{jsx as De}from"react/jsx-runtime";var ge=n(e=>De(V,{maxLength:15,...e}),"MoneyField");var H={checkbox:Z,text:I,email:ae,money:ge,select:ne,"multi-select":fe,radio:oe,number:V,file:Y,date:Q,textarea:me,countries:ie,hidden:pe,"work-schedule":ue};import{useEffect as Re}from"react";import{jsx as A,jsxs as Se}from"react/jsx-runtime";var ve=n(({name:e,description:t,helpCenter:r})=>Se("span",{children:[A("span",{className:`text-xs RemoteFlows__ForcedValue__Description__${e}`,dangerouslySetInnerHTML:{__html:k(t)}}),r?.callToAction&&r?.id&&A(E,{className:"RemoteFlows__ForcedValue__HelpCenterLink",zendeskId:r.id,children:r.callToAction})]}),"Description");function Ce({name:e,value:t,description:r,statement:l,label:m,helpCenter:a}){let{setValue:i}=c(),p=k(l?.description||r);Re(()=>{i(e,t)},[]);let g=l?.title?k(l?.title):k(m);return Se("div",{children:[g&&A("p",{className:`text-sm RemoteFlows__ForcedValue__Title__${e}`,dangerouslySetInnerHTML:{__html:g}}),A(ve,{name:e,description:p,helpCenter:a})]})}n(Ce,"ForcedValueField");import{Fragment as Ne,jsx as b,jsxs as P}from"react/jsx-runtime";function xe({label:e,name:t,fields:r,description:l,components:m,statement:a,isFlatFieldset:i,extra:p,variant:g="outset",features:u,meta:F}){let{helpCenter:d}=F||{},{watch:f,setValue:h,trigger:s,formState:y}=c(),{components:x}=S(),w=u?.toggle?.stateField,T=w?f(w):u?.toggle?.defaultExpanded??!0,be=r.map(({name:o})=>`${t}.${o}`),N=f(be),B=ye(N),R=ye(null),Te=n(()=>{w&&h(w,!T)},"toggleExpanded");Ee(()=>{let o=N,$=B.current,W=y.isSubmitted||y.submitCount>0,D=!1;for(let _=0;_<o.length;_++)if(o[_]!==void 0&&$[_]!==o[_]){D=!0;break}return D&&W&&(R.current&&clearTimeout(R.current),R.current=setTimeout(()=>{s()},50)),B.current=[...o],()=>{R.current&&clearTimeout(R.current)}},[N,s,y.isSubmitted,y.submitCount]);let $e=x?.fieldsetToggle||L,J=`${t}-content`,z=`${t}-header`;return P("fieldset",{className:v("border-1 border-input p-4 rounded-xl","RemoteFlows__FieldSetField",`RemoteFlows__FieldSetField__${t}`),children:[b("legend",{className:v("text-sm font-semibold px-2",g==="inset"&&"hidden"),children:e}),d?.callToAction&&d?.id&&g==="outset"&&b(E,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:d.id,children:d.callToAction}),g==="inset"&&P(Ne,{children:[P("div",{className:"RemoteFlows__FieldSetField__Header",id:z,"data-state":T?"expanded":"collapsed","aria-expanded":T,children:[b("h3",{className:v("RemoteFlows__FieldSetField__Title"),children:e}),u?.toggle?.enabled&&b($e,{isExpanded:T,onToggle:Te,"aria-expanded":T,"aria-controls":J,"aria-label":`${T?"Hide":"Show"} ${e}`,className:v("RemoteFlows__FieldSetField__Toggle",u.toggle?.className),children:T?u.toggle.labels?.collapse??"Remove":u.toggle.labels?.expand??"Define"})]}),d?.callToAction&&d?.id&&b(E,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:d.id,children:d.callToAction})]}),T&&P("div",{id:J,"aria-labelledby":z,role:"region",children:[l?b("div",{className:"mb-5 RemoteFlows__FieldSetField__Description",dangerouslySetInnerHTML:{__html:k(l)}}):null,P("div",{className:"grid gap-4",children:[r.map(o=>{if(o.calculateDynamicProperties&&(o={...o,...o.calculateDynamicProperties(N,o)||{}}),o.isVisible===!1||o.deprecated)return null;let $=o.type;if(q(o))return b(Ce,{name:`${i?o.name:`${t}.${o.name}`}`,description:o.description,value:o.const,statement:o.statement,label:o.label,helpCenter:o.meta?.helpCenter},`${i?o.name:`${t}.${o.name}`}`);if($==="fieldset")return b(xe,{...o,name:`${i?o.name:`${t}.${o.name}`}`,components:m},`${i?o.name:`${t}.${o.name}`}`);if($==="fieldset-flat")return b(xe,{...o,name:`${i?o.name:`${t}.${o.name}`}`,components:m,isFlatFieldset:!0},`${i?o.name:`${t}.${o.name}`}`);let D=H[$];if(o.Component){let{Component:_}=o;return P(he,{children:[b(_,{setValue:Pe=>h(i?o.name:`${t}.${o.name}`,Pe),...o}),o.statement?b(M,{...o.statement}):null,o.extra?o.extra:null]},`${i?o.name:`${t}.${o.name}`}`)}return D?($==="select"&&o.multiple&&(D=H["multi-select"]),P(he,{children:[b(D,{...o,name:`${i?o.name:`${t}.${o.name}`}`,component:m?.[$]}),o.statement?b(M,{...o.statement}):null,o.extra?o.extra:null]},`${i?o.name:`${t}.${o.name}`}`)):P("p",{className:"error",children:["Field type ",$," not supported"]})}),p||null,a?b(M,{...a}):null]})]})]})}n(xe,"FieldSetField");export{H as a,Ce as b,xe as c};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as M}from"./chunk-SNECOPBD.js";import{i as U,j as q}from"./chunk-D5AO6SOM.js";import{b as O,c as G,f as Z}from"./chunk-AS6KFUXS.js";import{a as L}from"./chunk-BYDQHL6O.js";import{a as I}from"./chunk-6H4634RG.js";import{b as E}from"./chunk-G5O2CM6V.js";import{c,i as C}from"./chunk-CWAFRJAQ.js";import{a as v,e as k}from"./chunk-VIGKOVHP.js";import{b as S}from"./chunk-KQPDXXG3.js";import{a as n}from"./chunk-P37U34EQ.js";import{Fragment as he,useEffect as Ee,useRef as ye}from"react";import{jsx as K}from"react/jsx-runtime";function Q({description:e,label:t,name:r,minDate:l,maxDate:m,onChange:a,component:i,...p}){let{components:g}=S(),{control:u}=c(),F;p.meta?.mot&&typeof p.meta.mot=="number"?F=U(p.meta.mot):typeof l=="string"&&(F=new Date(`${l}T00:00:00`));let d;return m&&(d=new Date(`${m}T23:59:59`)),K(C,{control:u,name:r,render:({field:f,fieldState:h})=>{let s=i||g?.date;if(!s)throw new Error(`Date picker component not found for field ${r}`);let y={description:e,label:t,name:r,onChange:a,...F&&{minDate:F.toISOString()},...d&&{maxDate:d.toISOString()},...p};return K(s,{field:{...f,onChange:n(x=>{f.onChange(x),a?.(x)},"onChange")},fieldState:h,fieldData:y})}})}n(Q,"DatePickerField");import{jsx as X}from"react/jsx-runtime";var _e=n((e,t)=>{if(!t)return null;for(let r of e)if(r.size>t){let l=Math.round(t/1048576),m=Math.round(r.size/(1024*1024));return`File "${r.name}" exceeds maximum size of ${l}MB (file is ${m}MB)`}return null},"validateFileSize");function Y({name:e,description:t,label:r,multiple:l,onChange:m,component:a,accept:i,maxSize:p,...g}){let{components:u}=S(),{control:F,setError:d,clearErrors:f}=c(),h=n(async(s,y)=>{let x=_e(s,p);if(x){d(e,{message:x});return}f(e),y.onChange(s),m?.(s)},"handleOnChange");return X(C,{control:F,name:e,render:({field:s,fieldState:y})=>{let x=a||u.file;if(!x)throw new Error(`File upload component not found for field ${e}`);let w={name:e,description:t,label:r,multiple:l,accept:i,maxFileSize:p,...g};return X(x,{field:{...s,value:s.value,onChange:n(async T=>h(T,s),"onChange")},fieldState:y,fieldData:w})}})}n(Y,"FileUploadField");import{jsx as j}from"react/jsx-runtime";function V(e){let{components:t}=S(),{control:r}=c(),l=e.component||t.number;if(!l)throw new Error(`Number component not found for field ${e.name}`);return j(C,{control:r,name:e.name,render:({field:m,fieldState:a})=>j(l,{field:{...m,onChange:n(i=>{m.onChange(i),e.onChange?.(i)},"onChange")},fieldState:a,fieldData:e})})}n(V,"NumberField");import{jsx as ee}from"react/jsx-runtime";function oe({name:e,defaultValue:t,description:r,label:l,options:m,onChange:a,component:i,...p}){let{components:g}=S(),{control:u}=c();return ee(C,{control:u,name:e,defaultValue:t,render:({field:F,fieldState:d})=>{let f=i||g?.radio;if(!f)throw new Error(`Radio group component not found for field ${e}`);let h={name:e,defaultValue:t,description:r,label:l,options:m,...p};return ee(f,{field:{...F,onChange:n(s=>{F.onChange(s),a?.(s)},"onChange")},fieldState:d,fieldData:h})}})}n(oe,"RadioGroupField");import{jsx as te}from"react/jsx-runtime";function ne({label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,component:i,...p}){let{control:g}=c(),{components:u}=S();return te(C,{defaultValue:l,control:g,name:t,render:({field:F,fieldState:d})=>{let f=i||u?.select;if(!f)throw new Error(`Select component not found for field ${t}`);let h={label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,...p};return te(f,{field:{...F,onChange:n(s=>{let x=(Array.isArray(p.jsonType)?p.jsonType.includes("number"):p.jsonType==="number")?Number(s):s;F.onChange(x),a?.(x)},"onChange")},fieldState:d,fieldData:h})}})}n(ne,"SelectField");import{jsx as re}from"react/jsx-runtime";function ie({label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,$meta:i,component:p,...g}){let{control:u}=c(),{components:F}=S();return re(C,{defaultValue:l,control:u,name:t,render:({field:d,fieldState:f})=>{let h=p||F.countries;if(!h)throw new Error(`Country component not found for field ${t}`);let s={label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,$meta:i,...g};return re(h,{field:{...d,onChange:n(y=>{d.onChange(y),a?.(y)},"onChange")},fieldState:f,fieldData:s})}})}n(ie,"CountryField");import{jsx as le}from"react/jsx-runtime";function me({name:e,description:t,label:r,onChange:l,maxLength:m,component:a,...i}){let{components:p}=S(),{control:g}=c();return le(C,{control:g,name:e,render:({field:u,fieldState:F})=>{let d=a||p.textarea;if(!d)throw new Error(`Text area component not found for field ${e}`);let f={name:e,description:t,label:r,maxLength:m,...i};return le(d,{field:{...u,onChange:n(h=>{u.onChange(h),l?.(h)},"onChange")},fieldState:F,fieldData:f})}})}n(me,"TextAreaField");import{jsx as se}from"react/jsx-runtime";function ae(e){let{components:t}=S(),{control:r}=c(),l=e.component||t.email;if(!l)throw new Error(`Email component not found for field ${e.name}`);return se(C,{control:r,name:e.name,render:({field:m,fieldState:a})=>se(l,{field:{...m,onChange:n(i=>{m.onChange(i),e.onChange?.(i)},"onChange")},fieldState:a,fieldData:e})})}n(ae,"EmailField");import{jsx as de}from"react/jsx-runtime";function pe(e){let{control:t}=c();return de(C,{control:t,name:e.name,render:({field:r})=>de("input",{...r,type:"hidden"})})}n(pe,"HiddenField");import{useEffect as ke,useState as we}from"react";import{jsx as ce}from"react/jsx-runtime";function ue(e){let{components:t}=S(),{setValue:r,control:l,watch:m}=c(),a=m(e.name),[i,p]=we(a),{workHoursSummary:g,breakSummary:u}=G(i),F=O(i);ke(()=>{r(e.name,i)},[i,e.name,r]);function d(s){p(s)}n(d,"onSubmit");let f=e.component||t["work-schedule"];if(!f)throw new Error(`Work schedule component not found for field ${e.name}`);let h={...e,onSubmit:d,currentSchedule:i,defaultFormattedValue:{workHoursSummary:g,breakSummary:u,totalWorkHours:F}};return ce(C,{control:l,name:e.name,render:({field:s,fieldState:y})=>ce(f,{field:{...s,onChange:n(x=>{s.onChange(x),e.onChange?.(x)},"onChange")},fieldState:y,fieldData:h})})}n(ue,"WorkScheduleField");import{jsx as Fe}from"react/jsx-runtime";function fe({label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,component:i,...p}){let{control:g}=c(),{components:u}=S();return Fe(C,{defaultValue:l,control:g,name:t,render:({field:F,fieldState:d})=>{let f=i||u?.["multi-select"];if(!f)throw new Error(`Multi select component not found for field ${t}`);let h={label:e,name:t,options:r,defaultValue:l,description:m,onChange:a,...p};return Fe(f,{field:{...F,onChange:n(s=>{F.onChange(s),a?.(s)},"onChange")},fieldState:d,fieldData:h})}})}n(fe,"MultiSelectField");import{jsx as De}from"react/jsx-runtime";var ge=n(e=>De(V,{maxLength:15,...e}),"MoneyField");var H={checkbox:Z,text:I,email:ae,money:ge,select:ne,"multi-select":fe,radio:oe,number:V,file:Y,date:Q,textarea:me,countries:ie,hidden:pe,"work-schedule":ue};import{useEffect as Re}from"react";import{jsx as A,jsxs as Se}from"react/jsx-runtime";var ve=n(({name:e,description:t,helpCenter:r})=>Se("span",{children:[A("span",{className:`text-xs RemoteFlows__ForcedValue__Description__${e}`,dangerouslySetInnerHTML:{__html:k(t)}}),r?.callToAction&&r?.id&&A(E,{className:"RemoteFlows__ForcedValue__HelpCenterLink",zendeskId:r.id,children:r.callToAction})]}),"Description");function Ce({name:e,value:t,description:r,statement:l,label:m,helpCenter:a}){let{setValue:i}=c(),p=k(l?.description||r);Re(()=>{i(e,t)},[]);let g=l?.title?k(l?.title):k(m);return Se("div",{children:[g&&A("p",{className:`text-sm RemoteFlows__ForcedValue__Title__${e}`,dangerouslySetInnerHTML:{__html:g}}),A(ve,{name:e,description:p,helpCenter:a})]})}n(Ce,"ForcedValueField");import{Fragment as Ne,jsx as b,jsxs as P}from"react/jsx-runtime";function xe({label:e,name:t,fields:r,description:l,components:m,statement:a,isFlatFieldset:i,extra:p,variant:g="outset",features:u,meta:F}){let{helpCenter:d}=F||{},{watch:f,setValue:h,trigger:s,formState:y}=c(),{components:x}=S(),w=u?.toggle?.stateField,T=w?f(w):u?.toggle?.defaultExpanded??!0,be=r.map(({name:o})=>`${t}.${o}`),N=f(be),B=ye(N),R=ye(null),Te=n(()=>{w&&h(w,!T)},"toggleExpanded");Ee(()=>{let o=N,$=B.current,W=y.isSubmitted||y.submitCount>0,D=!1;for(let _=0;_<o.length;_++)if(o[_]!==void 0&&$[_]!==o[_]){D=!0;break}return D&&W&&(R.current&&clearTimeout(R.current),R.current=setTimeout(()=>{s()},50)),B.current=[...o],()=>{R.current&&clearTimeout(R.current)}},[N,s,y.isSubmitted,y.submitCount]);let $e=x?.fieldsetToggle||L,J=`${t}-content`,z=`${t}-header`;return P("fieldset",{className:v("border-1 border-input p-4 rounded-xl","RemoteFlows__FieldSetField",`RemoteFlows__FieldSetField__${t}`),children:[b("legend",{className:v("text-sm font-semibold px-2",g==="inset"&&"hidden"),children:e}),d?.callToAction&&d?.id&&g==="outset"&&b(E,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:d.id,children:d.callToAction}),g==="inset"&&P(Ne,{children:[P("div",{className:"RemoteFlows__FieldSetField__Header",id:z,"data-state":T?"expanded":"collapsed","aria-expanded":T,children:[b("h3",{className:v("RemoteFlows__FieldSetField__Title"),children:e}),u?.toggle?.enabled&&b($e,{isExpanded:T,onToggle:Te,"aria-expanded":T,"aria-controls":J,"aria-label":`${T?"Hide":"Show"} ${e}`,className:v("RemoteFlows__FieldSetField__Toggle",u.toggle?.className),children:T?u.toggle.labels?.collapse??"Remove":u.toggle.labels?.expand??"Define"})]}),d?.callToAction&&d?.id&&b(E,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:d.id,children:d.callToAction})]}),T&&P("div",{id:J,"aria-labelledby":z,role:"region",children:[l?b("div",{className:"mb-5 RemoteFlows__FieldSetField__Description",dangerouslySetInnerHTML:{__html:k(l)}}):null,P("div",{className:"grid gap-4",children:[r.map(o=>{if(o.calculateDynamicProperties&&(o={...o,...o.calculateDynamicProperties(N,o)||{}}),o.isVisible===!1||o.deprecated)return null;let $=o.type;if(q(o))return b(Ce,{name:`${i?o.name:`${t}.${o.name}`}`,description:o.description,value:o.const,statement:o.statement,label:o.label,helpCenter:o.meta?.helpCenter},`${i?o.name:`${t}.${o.name}`}`);if($==="fieldset")return b(xe,{...o,name:`${i?o.name:`${t}.${o.name}`}`,components:m},`${i?o.name:`${t}.${o.name}`}`);if($==="fieldset-flat")return b(xe,{...o,name:`${i?o.name:`${t}.${o.name}`}`,components:m,isFlatFieldset:!0},`${i?o.name:`${t}.${o.name}`}`);let D=H[$];if(o.Component){let{Component:_}=o;return P(he,{children:[b(_,{setValue:Pe=>h(i?o.name:`${t}.${o.name}`,Pe),...o}),o.statement?b(M,{...o.statement}):null,o.extra?o.extra:null]},`${i?o.name:`${t}.${o.name}`}`)}return D?($==="select"&&o.multiple&&(D=H["multi-select"]),P(he,{children:[b(D,{...o,name:`${i?o.name:`${t}.${o.name}`}`,component:m?.[$]}),o.statement?b(M,{...o.statement}):null,o.extra?o.extra:null]},`${i?o.name:`${t}.${o.name}`}`)):P("p",{className:"error",children:["Field type ",$," not supported"]})}),p||null,a?b(M,{...a}):null]})]})]})}n(xe,"FieldSetField");export{H as a,Ce as b,xe as c};
|
|
2
|
+
//# sourceMappingURL=chunk-XGRFWXUU.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-C4MRFGQG.js";import{a as s}from"./chunk-R4X2WQXX.js";import{j as _,k as a,l as p,m as d,n as i}from"./chunk-CWAFRJAQ.js";import{a as F}from"./chunk-VIGKOVHP.js";import{a as h}from"./chunk-P37U34EQ.js";import{Fragment as x,jsx as o,jsxs as m}from"react/jsx-runtime";var w=h(({field:l,fieldState:k,fieldData:t})=>{let{name:r,label:n,description:b,options:c,multiple:C}=t;return m(_,{"data-field":r,className:F(`RemoteFlows__CheckBoxField__Item__${r}`),children:[o(p,{children:m(x,{children:[c&&C?o(a,{children:n}):null,c&&C?c.map(e=>m("div",{className:"flex space-x-2",children:[o(s,{id:e.value,onCheckedChange:v=>{l.onChange(v===!0,e.value)},checked:l.value?.includes(e.value),className:"RemoteFlows__CheckBox__Input"}),o(a,{htmlFor:e.value,className:"mb-0 RemoteFlows__CheckBox__Label",children:e.label})]},e.value)):m("div",{className:"flex space-x-2",children:[o(s,{id:r,onCheckedChange:e=>{l.onChange(e===!0,null)},checked:l.value,className:"RemoteFlows__CheckBox__Input"}),o(a,{htmlFor:r,className:"mb-0 RemoteFlows__CheckBox__Label",children:n})]})]})}),b&&m(d,{children:[t.description," ",o(u,{helpCenter:t.meta?.helpCenter})]}),k.error&&o(i,{})]})},"CheckboxFieldDefault");export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YMJ3HQTG.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as i,c as m,d as s,e as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as i,c as m,d as s,e as f}from"./chunk-SXKIRVA2.js";import{a as n}from"./chunk-TXSUZLOI.js";import{a}from"./chunk-P37U34EQ.js";import{useState as O}from"react";var B=a(({proposedTerminationDate:e,employeeName:y,employmentId:o,employment:r,render:d})=>{let[t,u]=O(!1),l=m({employmentId:o}),p=n(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),c=i({employmentId:o,options:{enabled:t}}),D=s({employmentId:o,date:e}),P=f({employmentId:o,proposedTerminationDate:e,employment:r});return d({leavePoliciesSummaryQuery:l,timeoffQuery:c||{data:{bookedDays:0,timeoffs:[]}},bookedTimeBeforeAndAfterTerminationQuery:D,formattedProposedTerminationDate:p,employeeName:y,proposedTerminationDate:e,summaryData:P??{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:t,onOpenChange:a(()=>{u(T=>!T)},"onOpenChange")})},"PaidTimeOffContainer");export{B as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YOFBRZUZ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-YMJ3HQTG.js";import{a as c}from"./chunk-ECGWCDC3.js";import{a as b}from"./chunk-NAMR4DA5.js";import{a as k}from"./chunk-IHGCXP2X.js";import{a as f}from"./chunk-HIFEVMKP.js";import{a}from"./chunk-W6OOI5NF.js";import{a as u}from"./chunk-FAIEJW57.js";import{a as p}from"./chunk-KXT6ACFL.js";import{a as D}from"./chunk-EIVCBH53.js";import{a as n}from"./chunk-BAMGHBLT.js";import{a as F}from"./chunk-TQXCLXWH.js";import{a as e}from"./chunk-2V4CTIAG.js";import{a as t}from"./chunk-OWUINMZP.js";import{a as o}from"./chunk-CKVI2UDU.js";import{a as r}from"./chunk-T4YYYCSD.js";import"./chunk-VPSESR6G.js";import{a as l}from"./chunk-L3LOATSG.js";import{a as m}from"./chunk-UOA5WU4S.js";import"./chunk-C4MRFGQG.js";import"./chunk-MSBCYMSH.js";import{a as i}from"./chunk-NNFWLL7F.js";import"./chunk-R4X2WQXX.js";import"./chunk-SNBAM7SA.js";import"./chunk-7G5JSUZU.js";import"./chunk-56UXOD27.js";import"./chunk-3NESYBEJ.js";import"./chunk-DXIJUMLU.js";import"./chunk-6JTHV4QS.js";import"./chunk-547UHEDI.js";import"./chunk-TNN3W5TU.js";import"./chunk-AS6KFUXS.js";import{a as d}from"./chunk-BYDQHL6O.js";import"./chunk-MP3VDCI7.js";import"./chunk-6H4634RG.js";import"./chunk-G5O2CM6V.js";import"./chunk-CWAFRJAQ.js";import"./chunk-VIGKOVHP.js";import"./chunk-H2RAK6F7.js";import"./chunk-X6ZAR7ZL.js";import"./chunk-KQPDXXG3.js";import"./chunk-P37U34EQ.js";var V={button:b,checkbox:s,countries:r,date:m,drawer:D,email:f,fieldsetToggle:d,file:e,"multi-select":u,number:i,radio:a,select:o,statement:l,textarea:t,text:p,zendeskDrawer:n,table:F,"work-schedule":c,pdfViewer:k};export{V as defaultComponents};
|
|
2
2
|
//# sourceMappingURL=default-components.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-R3BBN7TV.js";import"../../chunk-7ZFZYZSP.js";import"../../chunk-HNCOYMS5.js";import"../../chunk-LNV36S6D.js";import"../../chunk-U6LRMWRI.js";import"../../chunk-PZAYG2DF.js";import"../../chunk-VB6KFDBL.js";import"../../chunk-MSEHAEEK.js";import"../../chunk-BI4RFXFL.js";import"../../chunk-XGRFWXUU.js";import"../../chunk-SNECOPBD.js";import"../../chunk-NAF6LRSS.js";import"../../chunk-D5AO6SOM.js";import"../../chunk-AS6KFUXS.js";import"../../chunk-BYDQHL6O.js";import"../../chunk-MP3VDCI7.js";import"../../chunk-6H4634RG.js";import"../../chunk-G5O2CM6V.js";import"../../chunk-CWAFRJAQ.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-H2RAK6F7.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-D5AR26AI.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentFlow.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-HNCOYMS5.js";import"../../chunk-LNV36S6D.js";import"../../chunk-BI4RFXFL.js";import"../../chunk-XGRFWXUU.js";import"../../chunk-SNECOPBD.js";import"../../chunk-D5AO6SOM.js";import"../../chunk-AS6KFUXS.js";import"../../chunk-BYDQHL6O.js";import"../../chunk-MP3VDCI7.js";import"../../chunk-6H4634RG.js";import"../../chunk-G5O2CM6V.js";import"../../chunk-CWAFRJAQ.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-H2RAK6F7.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-PZAYG2DF.js";import"../../chunk-VB6KFDBL.js";import"../../chunk-MSEHAEEK.js";import"../../chunk-NAF6LRSS.js";import"../../chunk-D5AO6SOM.js";import"../../chunk-H2RAK6F7.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as useContractAmendment};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-
|
|
1
|
+
import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-R3BBN7TV.js";import{a}from"../../chunk-7ZFZYZSP.js";import{a as b}from"../../chunk-HNCOYMS5.js";import"../../chunk-LNV36S6D.js";import{a as c}from"../../chunk-U6LRMWRI.js";import{a as d}from"../../chunk-PZAYG2DF.js";import"../../chunk-VB6KFDBL.js";import"../../chunk-MSEHAEEK.js";import"../../chunk-BI4RFXFL.js";import"../../chunk-XGRFWXUU.js";import"../../chunk-SNECOPBD.js";import"../../chunk-NAF6LRSS.js";import"../../chunk-D5AO6SOM.js";import"../../chunk-AS6KFUXS.js";import"../../chunk-BYDQHL6O.js";import"../../chunk-MP3VDCI7.js";import"../../chunk-6H4634RG.js";import"../../chunk-G5O2CM6V.js";import"../../chunk-CWAFRJAQ.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-H2RAK6F7.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-D5AR26AI.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-2AYGZ4RY.js";import"../../chunk-7BGANM2R.js";import"../../chunk-VAWEOFUO.js";import"../../chunk-K5Y67GIG.js";import"../../chunk-WD5DNUSS.js";import"../../chunk-2K2RK7RF.js";import"../../chunk-DPVXSN7T.js";import"../../chunk-H5PRUDCX.js";import"../../chunk-MG4PHNSS.js";import"../../chunk-ADTGWDQ7.js";import"../../chunk-3C6N7DK6.js";import"../../chunk-BZAO32QW.js";import"../../chunk-WFZGKBFS.js";import"../../chunk-P3QDMRCC.js";import"../../chunk-4WSJ2A6Q.js";import"../../chunk-Q3ALCPJN.js";import"../../chunk-JTMJKRH7.js";import"../../chunk-TNYFIB6U.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-VK7T332E.js";import"../../chunk-3UDRMQNE.js";import"../../chunk-3DMWQJ5W.js";import"../../chunk-RAH453TV.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-AHRG5QCS.js";import"../../chunk-PX5PE6GX.js";import"../../chunk-LNV36S6D.js";import"../../chunk-MSEHAEEK.js";import"../../chunk-UMLRTS3B.js";import"../../chunk-LXOYWRNU.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-C32W6TCT.js";import"../../chunk-BI4RFXFL.js";import"../../chunk-XGRFWXUU.js";import"../../chunk-SNECOPBD.js";import"../../chunk-NAF6LRSS.js";import"../../chunk-D5AO6SOM.js";import"../../chunk-TNN3W5TU.js";import"../../chunk-AS6KFUXS.js";import"../../chunk-BYDQHL6O.js";import"../../chunk-MP3VDCI7.js";import"../../chunk-6H4634RG.js";import"../../chunk-G5O2CM6V.js";import"../../chunk-CWAFRJAQ.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-H2RAK6F7.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-TSPDJUGG.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
|
|
2
2
|
//# sourceMappingURL=ContractorOnboarding.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o,s as p,t as q}from"../../chunk-
|
|
1
|
+
import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o,s as p,t as q}from"../../chunk-TNYFIB6U.js";import"../../chunk-AP56UUME.js";import"../../chunk-IJCTN52C.js";import"../../chunk-AHRG5QCS.js";import"../../chunk-PX5PE6GX.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-C32W6TCT.js";import"../../chunk-NAF6LRSS.js";import"../../chunk-D5AO6SOM.js";import"../../chunk-VIGKOVHP.js";import"../../chunk-H2RAK6F7.js";import"../../chunk-X6ZAR7ZL.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-P37U34EQ.js";export{g as CONTRACT_PRODUCT_TITLES,q as useContractorOnboardingDetailsSchemaWithCurrencies,h as useContractorSubscriptionSchemaField,p as useCountriesSchemaField,f as useCreateContractorContractDocument,o as useDeleteContractorCorSubscription,a as useGetContractDocumentSignatureSchema,k as useGetContractDocuments,d as useGetContractorSubscriptions,l as useGetEligibilityQuestionnaire,j as useGetIR35File,c as useGetShowContractDocument,m as usePostCreateEligibilityQuestionnaire,n as usePostManageContractorCorSubscription,e as usePostManageContractorSubscriptions,b as useSignContractDocument,i as useUpdateUKandSaudiFields};
|
|
2
2
|
//# sourceMappingURL=api.js.map
|