@remoteoss/remote-flows 0.5.0 → 0.5.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/dist/{chunk-3AOOE4V2.js → chunk-3HC236JT.js} +2 -2
- package/dist/{chunk-YYFIIPLI.js → chunk-3XKGVAM4.js} +2 -2
- package/dist/{chunk-42M5XC23.js → chunk-BFFD47LY.js} +2 -2
- package/dist/{chunk-LRCSXZ5Y.js → chunk-BGPNJUZ6.js} +2 -2
- package/dist/{chunk-RMFW7BZM.js → chunk-BHTXYDFD.js} +2 -2
- package/dist/{chunk-4OWFS6J6.js → chunk-FKWJNWTH.js} +2 -2
- package/dist/chunk-FS4S4F6X.js +2 -0
- package/dist/chunk-FS4S4F6X.js.map +1 -0
- package/dist/{chunk-B4UHZS6S.js → chunk-HNVJZJG2.js} +2 -2
- package/dist/{chunk-VQM22EFM.js → chunk-IYVHRHIF.js} +2 -2
- package/dist/{chunk-HVZOU73K.js → chunk-N23LQHZ3.js} +2 -2
- package/dist/{chunk-TWLIQ3LY.js → chunk-OCVTKPKM.js} +2 -2
- package/dist/{chunk-WBL23WGD.js → chunk-PRKYQ5O6.js} +2 -2
- package/dist/{chunk-S2VTL2TR.js → chunk-QUCO6E4Q.js} +2 -2
- package/dist/{chunk-Y3HI42AP.js → chunk-RYJWEK4S.js} +2 -2
- package/dist/{chunk-YMOTYFSL.js → chunk-UP5Y6GXN.js} +2 -2
- package/dist/{chunk-VFR5R7GS.js → chunk-VNH5IASS.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.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/SelectCountryStep.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/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-SYYKU72Z.js +0 -2
- package/dist/chunk-SYYKU72Z.js.map +0 -1
- /package/dist/{chunk-3AOOE4V2.js.map → chunk-3HC236JT.js.map} +0 -0
- /package/dist/{chunk-YYFIIPLI.js.map → chunk-3XKGVAM4.js.map} +0 -0
- /package/dist/{chunk-42M5XC23.js.map → chunk-BFFD47LY.js.map} +0 -0
- /package/dist/{chunk-LRCSXZ5Y.js.map → chunk-BGPNJUZ6.js.map} +0 -0
- /package/dist/{chunk-RMFW7BZM.js.map → chunk-BHTXYDFD.js.map} +0 -0
- /package/dist/{chunk-4OWFS6J6.js.map → chunk-FKWJNWTH.js.map} +0 -0
- /package/dist/{chunk-B4UHZS6S.js.map → chunk-HNVJZJG2.js.map} +0 -0
- /package/dist/{chunk-VQM22EFM.js.map → chunk-IYVHRHIF.js.map} +0 -0
- /package/dist/{chunk-HVZOU73K.js.map → chunk-N23LQHZ3.js.map} +0 -0
- /package/dist/{chunk-TWLIQ3LY.js.map → chunk-OCVTKPKM.js.map} +0 -0
- /package/dist/{chunk-WBL23WGD.js.map → chunk-PRKYQ5O6.js.map} +0 -0
- /package/dist/{chunk-S2VTL2TR.js.map → chunk-QUCO6E4Q.js.map} +0 -0
- /package/dist/{chunk-Y3HI42AP.js.map → chunk-RYJWEK4S.js.map} +0 -0
- /package/dist/{chunk-YMOTYFSL.js.map → chunk-UP5Y6GXN.js.map} +0 -0
- /package/dist/{chunk-VFR5R7GS.js.map → chunk-VNH5IASS.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-IYVHRHIF.js";import{b as a}from"./chunk-MRYRNB7Y.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as p}from"react/jsx-runtime";function F({requesterName:n,onSubmit:s,onSuccess:m,onError:d}){let{terminationBag:e}=a(),l=i(async o=>{await s?.(e?.parseFormValues(o));let r=await e?.onSubmit(o);r?.error?d?.(r.error):r?.data&&await m?.(r.data)},"handleSubmit"),u=e?.fields.map(o=>o.name==="acknowledge_termination_procedure"?{...o,label:o.label.replace("{{requesterName}}",n)}:o);return p(t,{fields:u,onSubmit:l})}i(F,"AdditionalDetailsForm");export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HNVJZJG2.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as d}from"./chunk-MRYRNB7Y.js";import{b as s}from"./chunk-CFIJKJXD.js";import{a as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as d}from"./chunk-MRYRNB7Y.js";import{b as s}from"./chunk-CFIJKJXD.js";import{a as f}from"./chunk-FS4S4F6X.js";import{f as a,g as l}from"./chunk-STEO7MS2.js";import{a as n}from"./chunk-P37U34EQ.js";import{useEffect as T}from"react";import{jsx as e}from"react/jsx-runtime";function A({fields:m,onSubmit:F}){let{formId:u,terminationBag:o}=d(),c=s(o.handleValidation),i=a({resolver:c,defaultValues:o?.initialValues,shouldUnregister:!1,mode:"onBlur"});T(()=>{let y=i?.watch(r=>{Object.keys(r).some(t=>r[t]!==o?.initialValues?.[t])&&o?.checkFieldUpdates(r)});return()=>y?.unsubscribe()},[]);let p=m||(o?.fields??[]);return e(l,{...i,children:e("form",{id:u,onSubmit:i.handleSubmit(F),className:"space-y-4 RemoteFlows__TerminationForm",children:e(f,{fields:p})})})}n(A,"TerminationForm");export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IYVHRHIF.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-YECC5GAT.js";import{a as c}from"./chunk-T3HJ2JSB.js";import{a as e}from"./chunk-HS3TP43Z.js";import{a as m}from"./chunk-HUEFMP54.js";import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-YECC5GAT.js";import{a as c}from"./chunk-T3HJ2JSB.js";import{a as e}from"./chunk-HS3TP43Z.js";import{a as m}from"./chunk-HUEFMP54.js";import{a as r}from"./chunk-3XKGVAM4.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-N23LQHZ3.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./chunk-PGWKJ6FK.js";import{b as y}from"./chunk-QW4JPW6J.js";import{b as f}from"./chunk-CFIJKJXD.js";import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b}from"./chunk-PGWKJ6FK.js";import{b as y}from"./chunk-QW4JPW6J.js";import{b as f}from"./chunk-CFIJKJXD.js";import{a as u}from"./chunk-FS4S4F6X.js";import{f as p,g as F}from"./chunk-STEO7MS2.js";import{a as m}from"./chunk-P37U34EQ.js";import{useEffect as S}from"react";import{jsx as d}from"react/jsx-runtime";function N({defaultValues:l,onSubmit:g,components:E}){let{formId:w,onboardingBag:o}=b(),h=f(o.handleValidation),r=p({resolver:h,defaultValues:l,shouldUnregister:!1,mode:"onBlur"});S(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]),S(()=>{let t=r?.watch(e=>{Object.keys(e).some(i=>e[i]!==l[i])&&o?.checkFieldUpdates(e)});return()=>t?.unsubscribe()},[]);let k=m(async(t,e)=>{let s=e?.nativeEvent;if(s?.isDraftSubmission){let{onSuccess:i,onError:c}=s.draftCallbacks;try{if(!await r.trigger())return;let n=await o.onSubmit(t);if(n?.data)i?.();else if(n?.error){let B=o.stepState.currentStep.name,P=o.meta?.fields?.[B],O=y(n?.fieldErrors||[],P);c?.({error:n.error,rawError:n.rawError,fieldErrors:O})}}catch(a){c?.({error:a,rawError:a,fieldErrors:[]})}}else g(t)},"handleSubmit");return d(F,{...r,children:d("form",{id:w,onSubmit:r.handleSubmit(k),className:"space-y-4 RemoteFlows__OnboardingForm",children:d(u,{components:E,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})})})}m(N,"OnboardingForm");export{N as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OCVTKPKM.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-IYVHRHIF.js";import{b as m}from"./chunk-MRYRNB7Y.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as e}from"react/jsx-runtime";function f({onSubmit:n}){let{terminationBag:i}=m();return e(r,{onSubmit:o(async a=>{await n?.(i?.parseFormValues(a)),i?.next()},"handleSubmit")})}o(f,"PaidTimeOffForm");export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-PRKYQ5O6.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-OCVTKPKM.js";import{b as a}from"./chunk-PGWKJ6FK.js";import{b as t}from"./chunk-QW4JPW6J.js";import{d as s}from"./chunk-CNYSTJVL.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function P({components:d,onSubmit:l,onError:i,onSuccess:f}){let{onboardingBag:o}=a(),p=o.fields??[],c=s(p,o.initialValues.benefits);return E(m,{defaultValues:c,components:d,onSubmit:e(async n=>{try{await l?.(n);let r=await o.onSubmit(n);if(r?.data){await f?.(r.data),o?.next();return}if(r?.error){let u=t(r?.fieldErrors||[],o.meta?.fields?.benefits);i?.({error:r.error,rawError:r.rawError,fieldErrors:u})}}catch(r){i?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit")})}e(P,"BenefitsStep");export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QUCO6E4Q.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-OCVTKPKM.js";import{b as t}from"./chunk-PGWKJ6FK.js";import{b as e}from"./chunk-QW4JPW6J.js";import{a as i}from"./chunk-P37U34EQ.js";import{jsx as c}from"react/jsx-runtime";function S({onSubmit:m,onSuccess:d,onError:a}){let{onboardingBag:o}=t(),l=i(async n=>{try{await m?.(o.parseFormValues(n));let r=await o.onSubmit(n);if(r?.data){await d?.(r?.data),o?.next();return}if(r?.error){let p=e(r?.fieldErrors||[],o.meta?.fields?.basic_information);a?.({error:r?.error,rawError:r?.rawError,fieldErrors:p})}}catch(r){a?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),f=o.stepState.values?.basic_information||o.initialValues.basic_information;return c(s,{defaultValues:f,onSubmit:l})}i(S,"BasicInformationStep");export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-RYJWEK4S.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-OCVTKPKM.js";import{b as i}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:s,onSuccess:c,onError:t}){let{onboardingBag:o}=i(),u=e(async n=>{try{await s?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await c?.(r?.data),o?.next();return}r?.error&&t?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(a,{defaultValues:l,onSubmit:u})}e(y,"SelectCountryStep");export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UP5Y6GXN.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as i}from"./chunk-KSHK3ZPX.js";import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as i}from"./chunk-KSHK3ZPX.js";import{a as e}from"./chunk-FS4S4F6X.js";import{g as l}from"./chunk-STEO7MS2.js";import{a as r}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function b({onSubmit:u,onError:c,onSuccess:C,shouldResetForm:n}){let{form:a,formId:d,costCalculatorBag:o}=i(),f=r(async p=>{let m=o?.parseFormValues(p),t=await o?.onSubmit(m);await u?.(m),t?.error?c?.(t.error):t?.data&&(await C?.(t?.data),n&&(o?.resetForm(),a.reset()))},"handleSubmit");return s(l,{...a,children:s("form",{id:d,onSubmit:a.handleSubmit(f),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:s(e,{fields:o?.fields??[]})})})}r(b,"CostCalculatorForm");export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VNH5IASS.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-N23LQHZ3.js";import"../../chunk-YECC5GAT.js";import"../../chunk-T3HJ2JSB.js";import"../../chunk-VTNGEN34.js";import"../../chunk-Z4FTX74F.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-HS3TP43Z.js";import"../../chunk-HUEFMP54.js";import"../../chunk-3XKGVAM4.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-TC3SWPEN.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-3XKGVAM4.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentForm.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-N23LQHZ3.js";import{a as c}from"../../chunk-YECC5GAT.js";import{a as d}from"../../chunk-T3HJ2JSB.js";import"../../chunk-VTNGEN34.js";import"../../chunk-Z4FTX74F.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-HS3TP43Z.js";import{a}from"../../chunk-HUEFMP54.js";import{a as b}from"../../chunk-3XKGVAM4.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-TC3SWPEN.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-VNH5IASS.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorForm};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-YJXRJTOH.js";import{a as j}from"../../chunk-DIL47M74.js";import"../../chunk-2IOIRPXX.js";import"../../chunk-BHXNRWYC.js";import"../../chunk-CVXZNBHC.js";import"../../chunk-3TAUIOLW.js";import"../../chunk-ZOTFG7GS.js";import"../../chunk-MIALHORP.js";import"../../chunk-NTJN7NCK.js";import{a as g}from"../../chunk-LU6YNL6P.js";import{a as f}from"../../chunk-HRIDANZ6.js";import{a as i}from"../../chunk-KKM4IXYC.js";import{a as h}from"../../chunk-DYB3RWP7.js";import{a as d}from"../../chunk-T33QM3L4.js";import{b as a,d as c}from"../../chunk-GPPJCUV6.js";import"../../chunk-S4WAMYEE.js";import{d as b}from"../../chunk-MC6FNME3.js";import"../../chunk-UPRUP24B.js";import{a as e}from"../../chunk-
|
|
1
|
+
import"../../chunk-YJXRJTOH.js";import{a as j}from"../../chunk-DIL47M74.js";import"../../chunk-2IOIRPXX.js";import"../../chunk-BHXNRWYC.js";import"../../chunk-CVXZNBHC.js";import"../../chunk-3TAUIOLW.js";import"../../chunk-ZOTFG7GS.js";import"../../chunk-MIALHORP.js";import"../../chunk-NTJN7NCK.js";import{a as g}from"../../chunk-LU6YNL6P.js";import{a as f}from"../../chunk-HRIDANZ6.js";import{a as i}from"../../chunk-KKM4IXYC.js";import{a as h}from"../../chunk-DYB3RWP7.js";import{a as d}from"../../chunk-T33QM3L4.js";import{b as a,d as c}from"../../chunk-GPPJCUV6.js";import"../../chunk-S4WAMYEE.js";import{d as b}from"../../chunk-MC6FNME3.js";import"../../chunk-UPRUP24B.js";import{a as e}from"../../chunk-VNH5IASS.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-ZKALTI3E.js";import"../../chunk-X36OBDKD.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-PWUYHFON.js";import"../../chunk-276MJCIE.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{i as CostCalculatorDisclaimer,d as CostCalculatorFlow,e as CostCalculatorForm,g as CostCalculatorResetButton,j as CostCalculatorResults,f as CostCalculatorSubmitButton,a as buildCostCalculatorEstimationPayload,h as disclaimerData,c as useCostCalculator,b as useCostCalculatorEstimationPdf};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-FKWJNWTH.js";import"../../chunk-Z7WBY27D.js";import"../../chunk-7TOZZQQJ.js";import"../../chunk-UP5Y6GXN.js";import"../../chunk-RYJWEK4S.js";import"../../chunk-QUCO6E4Q.js";import"../../chunk-BFFD47LY.js";import"../../chunk-DBRBPYIF.js";import"../../chunk-OCVTKPKM.js";import"../../chunk-5NCRPBBP.js";import"../../chunk-R4PWQPR6.js";import"../../chunk-PGWKJ6FK.js";import"../../chunk-KDWPT7ZP.js";import"../../chunk-2YGGLGBG.js";import"../../chunk-F66G33YT.js";import"../../chunk-ZKALTI3E.js";import"../../chunk-X36OBDKD.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-PWUYHFON.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as OnboardingFlow};
|
|
2
2
|
//# sourceMappingURL=OnboardingFlow.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-RYJWEK4S.js";import"../../../chunk-OCVTKPKM.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-CFIJKJXD.js";import"../../../chunk-FS4S4F6X.js";import"../../../chunk-OYI5OCMY.js";import"../../../chunk-MPMOHDZP.js";import"../../../chunk-WZSGDTVV.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-STEO7MS2.js";import"../../../chunk-CNYSTJVL.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as BasicInformationStep};
|
|
2
2
|
//# sourceMappingURL=BasicInformationStep.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-QUCO6E4Q.js";import"../../../chunk-OCVTKPKM.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-CFIJKJXD.js";import"../../../chunk-FS4S4F6X.js";import"../../../chunk-OYI5OCMY.js";import"../../../chunk-MPMOHDZP.js";import"../../../chunk-WZSGDTVV.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-STEO7MS2.js";import"../../../chunk-CNYSTJVL.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as BenefitsStep};
|
|
2
2
|
//# sourceMappingURL=BenefitsStep.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-BFFD47LY.js";import"../../../chunk-OCVTKPKM.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-CFIJKJXD.js";import"../../../chunk-FS4S4F6X.js";import"../../../chunk-OYI5OCMY.js";import"../../../chunk-MPMOHDZP.js";import"../../../chunk-WZSGDTVV.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-STEO7MS2.js";import"../../../chunk-CNYSTJVL.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as ContractDetailsStep};
|
|
2
2
|
//# sourceMappingURL=ContractDetailsStep.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-OCVTKPKM.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-CFIJKJXD.js";import"../../../chunk-FS4S4F6X.js";import"../../../chunk-OYI5OCMY.js";import"../../../chunk-MPMOHDZP.js";import"../../../chunk-WZSGDTVV.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-STEO7MS2.js";import"../../../chunk-CNYSTJVL.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as OnboardingForm};
|
|
2
2
|
//# sourceMappingURL=OnboardingForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-UP5Y6GXN.js";import"../../../chunk-OCVTKPKM.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-CFIJKJXD.js";import"../../../chunk-FS4S4F6X.js";import"../../../chunk-OYI5OCMY.js";import"../../../chunk-MPMOHDZP.js";import"../../../chunk-WZSGDTVV.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-STEO7MS2.js";import"../../../chunk-CNYSTJVL.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as SelectCountryStep};
|
|
2
2
|
//# sourceMappingURL=SelectCountryStep.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-GULCZWSK.js";import{a}from"../../chunk-
|
|
1
|
+
import"../../chunk-GULCZWSK.js";import{a}from"../../chunk-FKWJNWTH.js";import"../../chunk-Z7WBY27D.js";import"../../chunk-7TOZZQQJ.js";import"../../chunk-UP5Y6GXN.js";import"../../chunk-RYJWEK4S.js";import"../../chunk-QUCO6E4Q.js";import"../../chunk-BFFD47LY.js";import"../../chunk-DBRBPYIF.js";import"../../chunk-OCVTKPKM.js";import"../../chunk-5NCRPBBP.js";import"../../chunk-R4PWQPR6.js";import"../../chunk-PGWKJ6FK.js";import"../../chunk-KDWPT7ZP.js";import"../../chunk-2YGGLGBG.js";import"../../chunk-F66G33YT.js";import"../../chunk-ZKALTI3E.js";import"../../chunk-X36OBDKD.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-PWUYHFON.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as OnboardingFlow};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-HNVJZJG2.js";import"../../chunk-IYVHRHIF.js";import"../../chunk-MRYRNB7Y.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as AdditionalDetailsForm};
|
|
2
2
|
//# sourceMappingURL=AdditionalDetailsForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-BGPNJUZ6.js";import"../../chunk-IYVHRHIF.js";import"../../chunk-MRYRNB7Y.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as EmployeeCommunicationForm};
|
|
2
2
|
//# sourceMappingURL=EmployeeComunicationForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-PRKYQ5O6.js";import"../../chunk-IYVHRHIF.js";import"../../chunk-MRYRNB7Y.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as PaidTimeOffForm};
|
|
2
2
|
//# sourceMappingURL=PaidTimeOffForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-BHTXYDFD.js";import"../../chunk-IYVHRHIF.js";import"../../chunk-MRYRNB7Y.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as TerminationDetailsForm};
|
|
2
2
|
//# sourceMappingURL=TerminationDetailsForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-3HC236JT.js";import"../../chunk-JW2HLB6X.js";import"../../chunk-SYEPIESJ.js";import"../../chunk-6O3WKNSB.js";import"../../chunk-HSW5HMHH.js";import"../../chunk-VX2UC3HG.js";import"../../chunk-XSHHMBMT.js";import"../../chunk-XFD3ULUF.js";import"../../chunk-JODJFARP.js";import"../../chunk-WWANHPT7.js";import"../../chunk-W5DG5WWJ.js";import"../../chunk-S4XU4SE7.js";import"../../chunk-HNVJZJG2.js";import"../../chunk-BGPNJUZ6.js";import"../../chunk-PRKYQ5O6.js";import"../../chunk-ABFF6YSW.js";import"../../chunk-BHTXYDFD.js";import"../../chunk-IYVHRHIF.js";import"../../chunk-MRYRNB7Y.js";import"../../chunk-PWUYHFON.js";import"../../chunk-VTNGEN34.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as TerminationFlow};
|
|
2
2
|
//# sourceMappingURL=TerminationFlow.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-IYVHRHIF.js";import"../../chunk-MRYRNB7Y.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as TerminationForm};
|
|
2
2
|
//# sourceMappingURL=TerminationForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-M22FKNEY.js";import{a}from"../../chunk-
|
|
1
|
+
import"../../chunk-M22FKNEY.js";import{a}from"../../chunk-3HC236JT.js";import"../../chunk-JW2HLB6X.js";import"../../chunk-SYEPIESJ.js";import"../../chunk-6O3WKNSB.js";import"../../chunk-HSW5HMHH.js";import"../../chunk-VX2UC3HG.js";import"../../chunk-XSHHMBMT.js";import"../../chunk-XFD3ULUF.js";import"../../chunk-JODJFARP.js";import"../../chunk-WWANHPT7.js";import"../../chunk-W5DG5WWJ.js";import"../../chunk-S4XU4SE7.js";import"../../chunk-HNVJZJG2.js";import"../../chunk-BGPNJUZ6.js";import"../../chunk-PRKYQ5O6.js";import"../../chunk-ABFF6YSW.js";import"../../chunk-BHTXYDFD.js";import"../../chunk-IYVHRHIF.js";import"../../chunk-MRYRNB7Y.js";import"../../chunk-PWUYHFON.js";import"../../chunk-VTNGEN34.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-FS4S4F6X.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as TerminationFlow};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./chunk-M22FKNEY.js";import{a as or}from"./chunk-
|
|
1
|
+
import"./chunk-M22FKNEY.js";import{a as or}from"./chunk-3HC236JT.js";import"./chunk-JW2HLB6X.js";import"./chunk-SYEPIESJ.js";import"./chunk-6O3WKNSB.js";import"./chunk-HSW5HMHH.js";import"./chunk-VX2UC3HG.js";import"./chunk-XSHHMBMT.js";import"./chunk-XFD3ULUF.js";import"./chunk-JODJFARP.js";import"./chunk-WWANHPT7.js";import"./chunk-W5DG5WWJ.js";import"./chunk-S4XU4SE7.js";import"./chunk-HNVJZJG2.js";import"./chunk-BGPNJUZ6.js";import"./chunk-PRKYQ5O6.js";import"./chunk-ABFF6YSW.js";import"./chunk-BHTXYDFD.js";import"./chunk-IYVHRHIF.js";import"./chunk-MRYRNB7Y.js";import"./chunk-YJXRJTOH.js";import{a as S}from"./chunk-DIL47M74.js";import"./chunk-2IOIRPXX.js";import"./chunk-BHXNRWYC.js";import"./chunk-CVXZNBHC.js";import"./chunk-3TAUIOLW.js";import"./chunk-ZOTFG7GS.js";import"./chunk-MIALHORP.js";import"./chunk-NTJN7NCK.js";import{a as _}from"./chunk-LU6YNL6P.js";import{a as z}from"./chunk-HRIDANZ6.js";import"./chunk-GULCZWSK.js";import{a as E}from"./chunk-KKM4IXYC.js";import{a as B}from"./chunk-DYB3RWP7.js";import{a as R}from"./chunk-T33QM3L4.js";import{b as k,d as F}from"./chunk-GPPJCUV6.js";import"./chunk-S4WAMYEE.js";import{d as C}from"./chunk-MC6FNME3.js";import"./chunk-UPRUP24B.js";import{a as T}from"./chunk-VNH5IASS.js";import"./chunk-KSHK3ZPX.js";import"./chunk-A7ZJQCNU.js";import{a as ir}from"./chunk-FKWJNWTH.js";import"./chunk-Z7WBY27D.js";import"./chunk-7TOZZQQJ.js";import"./chunk-UP5Y6GXN.js";import"./chunk-RYJWEK4S.js";import"./chunk-QUCO6E4Q.js";import"./chunk-BFFD47LY.js";import"./chunk-DBRBPYIF.js";import"./chunk-OCVTKPKM.js";import"./chunk-5NCRPBBP.js";import"./chunk-R4PWQPR6.js";import"./chunk-PGWKJ6FK.js";import"./chunk-KDWPT7ZP.js";import"./chunk-2YGGLGBG.js";import"./chunk-F66G33YT.js";import"./chunk-ZKALTI3E.js";import"./chunk-X36OBDKD.js";import"./chunk-WVJDCDGZ.js";import"./chunk-PWUYHFON.js";import{a as tr}from"./chunk-N23LQHZ3.js";import{a as J}from"./chunk-YECC5GAT.js";import{a as er}from"./chunk-T3HJ2JSB.js";import{a as rr,b as ar}from"./chunk-VTNGEN34.js";import"./chunk-Z4FTX74F.js";import"./chunk-QW4JPW6J.js";import{a as g}from"./chunk-276MJCIE.js";import"./chunk-PJBAQZ6G.js";import"./chunk-HS3TP43Z.js";import{a as Z}from"./chunk-HUEFMP54.js";import{a as H}from"./chunk-3XKGVAM4.js";import"./chunk-CFIJKJXD.js";import"./chunk-FS4S4F6X.js";import"./chunk-OYI5OCMY.js";import"./chunk-MPMOHDZP.js";import"./chunk-WZSGDTVV.js";import{a as v,c as u}from"./chunk-3ZWDIEEM.js";import"./chunk-STEO7MS2.js";import"./chunk-CNYSTJVL.js";import"./chunk-TVZAFTPT.js";import{c as P,d as h}from"./chunk-TC3SWPEN.js";import{a as e}from"./chunk-P37U34EQ.js";import{QueryClient as q,QueryClientProvider as Q}from"@tanstack/react-query";function l(r){let a=document.documentElement;Object.keys(r).forEach(t=>{let o=r[t];o&&a.style.setProperty(t,o)})}e(l,"setCssProperties");function N(r){let a={};return Object.keys(r).forEach(t=>{a[`--${t}`]=r[t]}),a}e(N,"mapThemeColors");function O(r){return{"--spacing":r}}e(O,"mapThemeSpacing");function j(r){return{"--radius":r}}e(j,"mapThemeBorderRadius");function D(r){return{"--fontSizeBase":r.fontSizeBase}}e(D,"mapThemeFont");function m(r){r?.colors&&l(N(r.colors)),r?.spacing&&l(O(r.spacing)),r?.borderRadius&&l(j(r.borderRadius)),r?.font&&l(D(r.font))}e(m,"applyTheme");import{createContext as I,useEffect as A,useMemo as K}from"react";import{jsx as U}from"react/jsx-runtime";var V=I({theme:{}});function w(r){A(()=>{r.theme&&Object.keys(r.theme).length>0&&m(r.theme)},[r.theme]);let a=K(()=>({theme:r.theme}),[r.theme]);return U(V.Provider,{value:a,children:r.children})}e(w,"ThemeProvider");var f={partners:"https://gateway.partners.remote-sandbox.com",production:"https://gateway.remote.com",sandbox:"https://gateway.remote-sandbox.com",staging:"https://gateway.niceremote.com"};import{createClient as W}from"@hey-api/client-fetch";import{useQuery as M}from"@tanstack/react-query";import{useRef as x}from"react";function L(r){try{return new URL(r),!0}catch{return!1}}e(L,"isValidUrl");var b=e(({auth:r,options:a})=>{let t=x(null),{refetch:o}=M({queryKey:["auth"],queryFn:r,enabled:!1}),c=a?.environment?f[a?.environment]:"https://gateway.remote.com",s=g.getConfig(),p="0.5.1";a?.environment&&a?.environment!=="production"&&h(p);let d=!!a?.proxy&&L(a.proxy.url);return a?.proxy&&!d&&console.error("Invalid proxy URL provided. Using default base URL."),x(W({...s,headers:{...s.headers,...d?a?.proxy?.headers:{},"X-Client-Name":"remote-flows-sdk","X-Client-Version":p},baseUrl:d?a.proxy?.url:c,auth:e(async()=>{function y(i){return!i||Date.now()+6e4>i}if(e(y,"hasTokenExpired"),!t.current||y(t.current.expiresAt)){let{data:i}=await o();i&&(t.current={accessToken:i.accessToken,expiresAt:Date.now()+i.expiresIn*1e3})}return t.current?.accessToken},"auth")}))},"useAuth");import{jsx as n}from"react/jsx-runtime";var X=new q;function Y({children:r,auth:a,proxy:t,environment:o}){let c=b({auth:a,options:{proxy:t,environment:o}});return n(u.Provider,{value:{client:c.current},children:r})}e(Y,"RemoteFlowContextWrapper");function $({children:r,components:a}){return n(v.Provider,{value:a?{components:a}:{components:{}},children:r})}e($,"FormFieldsProvider");function G({auth:r,children:a,components:t,theme:o,proxy:c,environment:s}){return n(Q,{client:X,children:n($,{components:t,children:n(Y,{auth:r,proxy:c,environment:s,children:n(w,{theme:o,children:a})})})})}e(G,"RemoteFlows");export{Z as ContractAmendmentConfirmationForm,tr as ContractAmendmentFlow,H as ContractAmendmentForm,J as ContractAmendmentSubmit,E as CostCalculatorDisclaimer,R as CostCalculatorFlow,T as CostCalculatorForm,_ as CostCalculatorResetButton,S as CostCalculatorResults,z as CostCalculatorSubmitButton,ir as OnboardingFlow,G as RemoteFlows,or as TerminationFlow,k as buildCostCalculatorEstimationPayload,B as disclaimerData,P as transformYupErrorsIntoObject,er as useContractAmendment,F as useCostCalculator,C as useCostCalculatorEstimationPdf,rr as useEmploymentQuery,ar as useTimeOffQuery};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
package/dist/chunk-SYYKU72Z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as Ke}from"./chunk-OYI5OCMY.js";import{a as V}from"./chunk-MPMOHDZP.js";import{a as xe,b as O}from"./chunk-WZSGDTVV.js";import{b as S}from"./chunk-3ZWDIEEM.js";import{a as ae,b as ne,c as _,d as Ge,e as Ue,f as Je,g as qe,h as P,i as k,j as N,k as R,l as w,m as T}from"./chunk-STEO7MS2.js";import{e as Ae,g as ze}from"./chunk-CNYSTJVL.js";import{a as f}from"./chunk-TC3SWPEN.js";import{a as o}from"./chunk-P37U34EQ.js";import{Fragment as Ko}from"react";import*as Ye from"react";import*as re from"@radix-ui/react-checkbox";import{Check as qt}from"lucide-react";import{jsx as be}from"react/jsx-runtime";var ie=Ye.forwardRef(({className:e,...t},r)=>be(re.Root,{ref:r,className:f("peer h-4 w-4 shrink-0 rounded-sm border border-input ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-checkbox data-[state=checked]:text-primary",e),...t,children:be(re.Indicator,{className:f("flex items-center justify-center text-current"),children:be(qt,{className:"h-4 w-4"})})}));ie.displayName=re.Root.displayName;import{Fragment as Kt,jsx as A,jsxs as se}from"react/jsx-runtime";function le({name:e,defaultValue:t,description:r,label:a,onChange:s,multiple:n,options:p,component:v,...F}){let{components:m}=S(),{control:i}=_(),u=o((c,l,d)=>{let g=d.value?[...d.value]:[];l?g.includes(c)||d.onChange([...g,c]):d.onChange(g.filter(y=>y!==c))},"handleCheckboxChange");return A(P,{control:i,name:e,defaultValue:t,render:({field:c,fieldState:l})=>{let d=v||m?.checkbox;if(d){let g={name:e,description:r,label:a,defaultValue:t,multiple:n,options:p,...F};return A(d,{field:{...c,onChange:o(y=>{if(n){let{checked:b,value:x}=y.target;u(x,b,c),s?.(b);return}c.onChange(y),s?.(y)},"onChange")},fieldState:l,fieldData:g})}return se(k,{"data-field":e,className:f(`RemoteFlows__CheckBoxField__Item__${e}`),children:[A(R,{children:se(Kt,{children:[p&&n?A(N,{children:a}):null,p&&n?p.map(g=>se("div",{className:"flex space-x-2",children:[A(ie,{id:g.value,onCheckedChange:y=>{u(g.value,y===!0,c),s?.(y,g.value)},checked:c.value?.includes(g.value),className:"RemoteFlows__CheckBox__Input"}),A(N,{htmlFor:g.value,className:"mb-0 RemoteFlows__CheckBox__Label",children:g.label})]},g.value)):se("div",{className:"flex space-x-2",children:[A(ie,{id:e,onCheckedChange:g=>{c.onChange(g),s?.(g)},checked:c.value,className:"RemoteFlows__CheckBox__Input"}),A(N,{htmlFor:e,className:"mb-0 RemoteFlows__CheckBox__Label",children:a})]})]})}),r&&A(w,{children:r}),l.error&&A(T,{})]})}})}o(le,"CheckBoxField");import{CalendarIcon as Qt}from"lucide-react";import{PopoverClose as Zt}from"@radix-ui/react-popover";import{ChevronLeft as Yt,ChevronRight as jt}from"lucide-react";import{DayPicker as Xt}from"react-day-picker";import{jsx as Se}from"react/jsx-runtime";function je({className:e,classNames:t,showOutsideDays:r=!0,...a}){return Se(Xt,{showOutsideDays:r,className:f("p-3",e),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:f(xe({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:f("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",a.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:f(xe({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",...t},components:{IconLeft:o(({className:s,...n})=>Se(Yt,{className:f("size-4",s),...n}),"IconLeft"),IconRight:o(({className:s,...n})=>Se(jt,{className:f("size-4",s),...n}),"IconRight")},...a})}o(je,"Calendar");import*as z from"@radix-ui/react-popover";import{jsx as me}from"react/jsx-runtime";function ce({...e}){return me(z.Root,{"data-slot":"popover",...e})}o(ce,"Popover");function de({...e}){return me(z.Trigger,{"data-slot":"popover-trigger",...e})}o(de,"PopoverTrigger");function pe({className:e,align:t="center",sideOffset:r=4,...a}){return me(z.Portal,{children:me(z.Content,{"data-slot":"popover-content",align:t,sideOffset:r,className:f("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...a})})}o(pe,"PopoverContent");import{format as Xe}from"date-fns";import{Fragment as eo,jsx as W,jsxs as Pe}from"react/jsx-runtime";function Qe({description:e,label:t,name:r,minDate:a,onChange:s,component:n,...p}){let{components:v}=S(),{control:F}=_(),m;return p.meta?.mot&&typeof p.meta.mot=="number"?m=ze(p.meta.mot):a&&(m=new Date(a)),W(P,{control:F,name:r,render:({field:i,fieldState:u})=>{let c=n||v?.date;if(c){let l={description:e,label:t,name:r,onChange:s,...m&&{minDate:m.toISOString()},...p};return W(c,{field:{...i,onChange:o(d=>{i.onChange(d),s?.(d)},"onChange")},fieldState:u,fieldData:l})}return Pe(k,{"data-field":r,className:`flex flex-col RemoteFlows__DatePickerField__Item__${r}`,children:[W(N,{className:"RemoteFlows__DatePickerField__Label",children:t}),Pe(ce,{children:[W(de,{asChild:!0,children:W(R,{children:W("div",{children:Pe(O,{type:"button",variant:"outline",className:f("w-full pl-3 text-left font-normal",!i.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${r}`,children:[i.value&&W(eo,{children:Xe(i.value,"yyyy-MM-dd")}),W(Qt,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),W(pe,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:W(je,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:i.value?new Date(i.value):void 0,onSelect:l=>{i.onChange(l?Xe(l,"yyyy-MM-dd"):null),s?.(l)},defaultMonth:m,components:{DayContent:o(l=>W(Zt,{children:l.date.getDate()}),"DayContent")},...m&&{disabled:o(l=>l<m,"disabled")}})})]}),e?W(w,{children:e}):null,u.error&&W(T,{className:"RemoteFlows__DatePickerField__Error"})]})}})}o(Qe,"DatePickerField");import{cva as to}from"class-variance-authority";import{jsx as Ne}from"react/jsx-runtime";var oo=to("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-card bg-warning border-warning-border [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function Ze({className:e,variant:t,...r}){return Ne("div",{"data-slot":"alert",role:"alert",className:f(oo({variant:t}),e),...r})}o(Ze,"Alert");function et({className:e,...t}){return Ne("div",{"data-slot":"alert-title",className:f("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...t})}o(et,"AlertTitle");function tt({className:e,...t}){return Ne("div",{"data-slot":"alert-description",className:f("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",e),...t})}o(tt,"AlertDescription");import{AlertCircle as ro}from"lucide-react";import{jsx as ue,jsxs as ao}from"react/jsx-runtime";function fe({title:e,description:t,severity:r}){let{components:a}=S();if(a?.statement){let s=a?.statement;return ue(s,{data:{title:e,description:t,severity:r}})}return ao(Ze,{variant:"warning",children:[ue(ro,{className:"h-4 w-4"}),e&&ue(et,{children:e}),ue(tt,{children:t})]})}o(fe,"Statement");import{useEffect as no,useRef as ot}from"react";import{jsx as ge,jsxs as rt}from"react/jsx-runtime";import{createElement as io}from"react";function ke({label:e,name:t,fields:r,description:a,components:s,statement:n,isFlatFieldset:p}){let{watch:v,trigger:F,formState:m}=_(),i=r.map(({name:d})=>`${t}.${d}`),u=v(i),c=ot(u),l=ot(null);return no(()=>{let d=u,g=c.current,y=m.isSubmitted||m.submitCount>0,b=!1;for(let x=0;x<d.length;x++)if(d[x]!==void 0&&g[x]!==d[x]){b=!0;break}return b&&y&&(l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{F()},50)),c.current=[...d],()=>{l.current&&clearTimeout(l.current)}},[u,F,m.isSubmitted,m.submitCount]),rt("fieldset",{className:f("border-1 border-input p-4 rounded-xl",`RemoteFlows__FieldSetField__${t}`),children:[ge("legend",{className:"text-sm font-semibold px-2",children:e}),a?ge("div",{className:"mb-5 RemoteFlows__FieldSetField__Description",dangerouslySetInnerHTML:{__html:a}}):null,rt("div",{className:"grid gap-4",children:[r.map(d=>{let g=X[d.type];if(d.isVisible===!1||d.deprecated)return null;if(d.Component){let{Component:y}=d;return ge(y,{...d},d.name)}return d.inputType==="select"&&d.multiple&&(g=X["multi-select"]),io(g,{...d,key:d.name,name:`${p?d.name:`${t}.${d.name}`}`,component:s?.[d.type]})}),n?ge(fe,{...n}):null]})]})}o(ke,"FieldSetField");import{useState as so,useRef as lo}from"react";import{Upload as mo,X as co}from"lucide-react";import{jsx as U,jsxs as Re}from"react/jsx-runtime";function at({onChange:e,className:t,multiple:r}){let[a,s]=so([]),n=lo(null),p=o(m=>{m.preventDefault(),n.current?.click()},"handleClick"),v=o(m=>{if(m.target.files&&m.target.files.length>0){let i=Array.from(m.target.files);s(i),e(m)}},"handleChange"),F=o(m=>{s(i=>i.filter(u=>u!==m))},"onRemoveFile");return Re("div",{className:f("flex flex-col items-start gap-4",t),children:[U("input",{type:"file",ref:n,onChange:v,className:"hidden","aria-label":"File upload",multiple:r}),Re(O,{type:"button",onClick:p,className:"gap-2",children:[U(mo,{className:"h-4 w-4"}),"Choose File"]}),a.length===0&&U("div",{className:"text-sm",children:r?U("span",{className:"font-medium",children:"No files selected. You can select multiple files"}):U("span",{className:"font-medium",children:"No file selected."})}),a.length>0&&a.map((m,i)=>Re("div",{className:"text-sm flex items-center gap-2",children:["Selected file: ",U("span",{className:"font-medium",children:m.name})," (",Math.round(m.size/1024)," KB)",U(O,{variant:"ghost",onClick:()=>F(m),children:U(co,{})})]},i))]})}o(at,"FileUploader");import{jsx as J,jsxs as uo}from"react/jsx-runtime";var po=o(e=>new Promise((t,r)=>{let a=new FileReader;a.readAsDataURL(e),a.onload=()=>t(a.result),a.onerror=s=>r(s)}),"toBase64"),nt=o(async e=>{let t=e.target.files?Array.from(e.target.files):[];return await Promise.all(t.map(async a=>{let s=await po(a);return{name:a.name,content:s.split(",")[1]}}))},"convertFilesToBase64");function it({name:e,description:t,label:r,multiple:a,onChange:s,component:n,...p}){let{components:v}=S(),{control:F}=_();return J(P,{control:F,name:e,render:({field:m,fieldState:i})=>{let u=n||v?.file;if(u){let c={name:e,description:t,label:r,multiple:a,...p};return J(u,{field:{...m,value:null,onChange:o(async l=>{let d=await nt(l);m.onChange(d),s?.(d)},"onChange")},fieldState:i,fieldData:c})}return uo(k,{"data-field":e,className:`RemoteFlows__FileUpload__Item__${e}`,children:[J(N,{className:"RemoteFlows__FileUpload__Label",children:r}),J(R,{children:J(at,{onChange:async c=>{let l=await nt(c);m.onChange(l),s?.(l)},multiple:a,className:f("RemoteFlows__FileUpload__Input")})}),t&&J("div",{className:"flex items-center justify-between",children:J(w,{className:"RemoteFlows__FileUpload__Description",children:t})}),i.error&&J(T,{className:"RemoteFlows__FileUpload__Error"})]})}})}o(it,"FileUploadField");import{jsx as we}from"react/jsx-runtime";function Fe(e){let{components:t}=S(),{control:r}=_(),a=e.component||t?.number;return a?we(P,{control:r,name:e.name,render:({field:s,fieldState:n})=>we(a,{field:{...s,onChange:o(p=>{s.onChange(p),e.onChange?.(p)},"onChange")},fieldState:n,fieldData:e})}):we(V,{...e,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$"})}o(Fe,"NumberField");import*as Q from"@radix-ui/react-radio-group";import{CircleIcon as fo}from"lucide-react";import{jsx as ve}from"react/jsx-runtime";function st({className:e,...t}){return ve(Q.Root,{"data-slot":"radio-group",className:f("grid gap-3",e),...t})}o(st,"RadioGroup");function lt({className:e,...t}){return ve(Q.Item,{"data-slot":"radio-group-item",className:f("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:ve(Q.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:ve(fo,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}o(lt,"RadioGroupItem");import{Fragment as go,jsx as $,jsxs as De}from"react/jsx-runtime";function mt({name:e,defaultValue:t,description:r,label:a,options:s,onChange:n,component:p,...v}){let{components:F}=S(),{control:m}=_();return $(P,{control:m,name:e,defaultValue:t,render:({field:i,fieldState:u})=>{let c=p||F?.radio;if(c){let l={name:e,defaultValue:t,description:r,label:a,options:s,...v};return $(c,{field:{...i,onChange:o(d=>{i.onChange(d),n?.(d)},"onChange")},fieldState:u,fieldData:l})}return De(k,{className:f("space-y-3",`RemoteFlows__RadioGroupField__Item__${e}`),"data-field":e,children:[$(N,{children:a}),$(R,{children:$(st,{"aria-label":a||e,onValueChange:l=>{i.onChange(l),n?.(l)},value:i.value,className:"flex flex-col space-y-3",children:s?.map(l=>$(go,{children:De(k,{"data-field":e,className:"flex items-start space-x-3 space-y-0 gap-0 RemoteFlows__RadioField__Item",children:[$(R,{children:$(lt,{value:l.value,className:"RemoteFlows__RadioField__Input",disabled:l.disabled})}),De("div",{children:[$(N,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:l.label}),l.description&&$(w,{className:"mt-2",children:l.description})]})]},l.value)}))})}),r&&$(w,{children:r}),u.error&&$(T,{})]})}})}o(mt,"RadioGroupField");import*as C from"@radix-ui/react-select";import{CheckIcon as Fo,ChevronDownIcon as ct,ChevronUpIcon as vo}from"lucide-react";import{jsx as D,jsxs as Te}from"react/jsx-runtime";function dt({...e}){return D(C.Root,{"data-slot":"select",...e})}o(dt,"Select");function pt({...e}){return D(C.Group,{"data-slot":"select-group",...e})}o(pt,"SelectGroup");function ut({...e}){return D(C.Value,{"data-slot":"select-value",...e})}o(ut,"SelectValue");function ft({className:e,children:t,...r}){return Te(C.Trigger,{"data-slot":"select-trigger",className:f("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-full items-center justify-between rounded-xl border bg-transparent px-4 py-7 text-sm whitespace-nowrap transition-[color] outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","focus-visible:border-focused",e),...r,children:[t,D(C.Icon,{asChild:!0,className:"absolute right-4",children:D(ct,{className:"size-4"})})]})}o(ft,"SelectTrigger");function gt({className:e,children:t,position:r="popper",...a}){return D(C.Portal,{children:Te(C.Content,{"data-slot":"select-content",className:f("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...a,children:[D(yo,{}),D(C.Viewport,{className:f(r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),D(ho,{})]})})}o(gt,"SelectContent");function Ft({className:e,children:t,...r}){return Te(C.Item,{"data-slot":"select-item",className:f("focus:bg-accent focus:text-accent-foreground min-h-11 justify-between [&_svg:not([class*='text-'])]:text-muted-foreground flex w-full cursor-default items-center gap-2 py-2 px-4 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[D(C.ItemText,{children:t}),D("span",{className:"flex size-3.5 items-center justify-center",children:D(C.ItemIndicator,{children:D(Fo,{className:"size-4"})})})]})}o(Ft,"SelectItem");function yo({className:e,...t}){return D(C.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:f("flex cursor-default items-center justify-center py-1",e),...t,children:D(vo,{className:"size-4"})})}o(yo,"SelectScrollUpButton");function ho({className:e,...t}){return D(C.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:f("flex cursor-default items-center justify-center py-1",e),...t,children:D(ct,{className:"size-4"})})}o(ho,"SelectScrollDownButton");import{jsx as L,jsxs as vt}from"react/jsx-runtime";function yt({label:e,name:t,options:r,defaultValue:a,description:s,onChange:n,component:p,...v}){let{control:F}=_(),{components:m}=S();return L(P,{defaultValue:a,control:F,name:t,render:({field:i,fieldState:u})=>{let c=p||m?.select;if(c){let l={label:e,name:t,options:r,defaultValue:a,description:s,onChange:n,...v};return L(c,{field:{...i,onChange:o(d=>{let g=!isNaN(Number(d))&&typeof d!="boolean"?Number(d):d;i.onChange(g),n?.(g)},"onChange")},fieldState:u,fieldData:l})}return vt(k,{"data-field":t,className:`RemoteFlows__SelectField__Item__${t}`,children:[L(N,{className:"RemoteFlows__SelectField__Label",children:e}),L(R,{children:L("div",{className:"relative",children:vt(dt,{value:i.value||"",onValueChange:l=>{let d=!isNaN(Number(l))&&typeof l!="boolean"?Number(l):l;i.onChange(d),n?.(d)},children:[L(ft,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!u.error,"aria-label":e,children:L("span",{className:"absolute",children:L(ut,{placeholder:e})})}),L(gt,{className:"RemoteFlows__SelectField__Content",children:L(pt,{className:"RemoteFlows__SelectField__Group",children:r.map(l=>L(Ft,{value:l.value,className:"RemoteFlows__SelectField__SelectItem",children:l.label},l.value))})})]})})}),s&&L(w,{children:s}),u.error&&L(T,{})]})}})}o(yt,"SelectField");import{useState as Ro}from"react";import{Fragment as bo,useState as So}from"react";import{Check as Po,ChevronDownIcon as No,X as ko}from"lucide-react";import{Command as Z}from"cmdk";import{SearchIcon as sn}from"lucide-react";import*as I from"@radix-ui/react-dialog";import{XIcon as _o}from"lucide-react";import{jsx as G,jsxs as Ie}from"react/jsx-runtime";function Me({...e}){return G(I.Root,{"data-slot":"dialog",...e})}o(Me,"Dialog");function ht({...e}){return G(I.Trigger,{"data-slot":"dialog-trigger",...e})}o(ht,"DialogTrigger");function Co({...e}){return G(I.Portal,{"data-slot":"dialog-portal",...e})}o(Co,"DialogPortal");function xo({className:e,...t}){return G(I.Overlay,{"data-slot":"dialog-overlay",className:f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}o(xo,"DialogOverlay");function We({className:e,children:t,...r}){return Ie(Co,{"data-slot":"dialog-portal",children:[G(xo,{}),Ie(I.Content,{"data-slot":"dialog-content",className:f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[t,Ie(I.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 RemoteFlows__Dialog__Close",children:[G(_o,{}),G("span",{className:"sr-only",children:"Close"})]})]})]})}o(We,"DialogContent");function Le({className:e,...t}){return G("div",{"data-slot":"dialog-header",className:f("flex flex-col gap-2 text-center sm:text-left",e),...t})}o(Le,"DialogHeader");function Ee({className:e,...t}){return G(I.Title,{"data-slot":"dialog-title",className:f("text-lg leading-none font-semibold",e),...t})}o(Ee,"DialogTitle");import{jsx as ee,jsxs as dn}from"react/jsx-runtime";function _t({className:e,...t}){return ee(Z,{"data-slot":"command",className:f("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}o(_t,"Command");function Ct({className:e,...t}){return ee(Z.List,{"data-slot":"command-list",className:f("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}o(Ct,"CommandList");function xt({...e}){return ee(Z.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}o(xt,"CommandEmpty");function bt({className:e,...t}){return ee(Z.Group,{"data-slot":"command-group",className:f("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}o(bt,"CommandGroup");function St({className:e,...t}){return ee(Z.Separator,{"data-slot":"command-separator",className:f("bg-border -mx-1 h-px",e),...t})}o(St,"CommandSeparator");function Pt({className:e,...t}){return ee(Z.Item,{"data-slot":"command-item",className:f("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}o(Pt,"CommandItem");import{jsx as H,jsxs as te}from"react/jsx-runtime";function ye({options:e,selected:t,onChange:r,placeholder:a,...s}){let[n,p]=So(!1),v=o(i=>{r(t.filter(u=>u.value!==i.value))},"handleUnselect"),F=e.some(i=>i.category),m=e.reduce((i,u)=>{let c=u.category||"Uncategorized";return i[c]||(i[c]=[]),i[c].push(u),i},{});return te(ce,{open:n,onOpenChange:p,...s,children:[H(de,{children:te(O,{variant:"outline",role:"combobox","aria-expanded":n,className:"w-full justify-between font-normal",type:"button",children:[H("div",{className:"flex gap-1 flex-wrap overflow-x-auto max-h-[2.5rem] items-center",children:t.length>0?t.map(i=>te(Ke,{variant:"secondary",className:"mr-1 mb-1",children:[i.label,H("div",{role:"button",tabIndex:0,"aria-label":`remove ${i.label}`,className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-pointer",onKeyDown:u=>{u.key==="Enter"&&v(i)},onMouseDown:u=>{u.preventDefault(),u.stopPropagation()},onClick:()=>v(i),children:H(ko,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},i.label)):H("span",{className:"text-foreground",children:a})}),H(No,{className:"size-4"})]})}),H(pe,{align:"start",className:"w-full p-0",children:H(_t,{children:te(Ct,{children:[H(xt,{children:"No item found."}),Object.entries(m).map(([i,u],c)=>te(bo,{children:[c>0&&H(St,{}),H(bt,{heading:F?i:void 0,children:u.map(l=>{let d=t.some(g=>g.value===l.value);return te(Pt,{onSelect:()=>{r(d?t.filter(g=>g.value!==l.value):[...t,l])},children:[H(Po,{className:f("mr-2 h-4 w-4",d?"opacity-100":"opacity-0")}),l.label]},l.label)})})]},i))]})})})]})}o(ye,"MultiSelect");import{jsx as q,jsxs as wo}from"react/jsx-runtime";function Nt({label:e,name:t,options:r,defaultValue:a,description:s,onChange:n,$meta:p,component:v,...F}){let{control:m}=_(),{components:i}=S(),[u,c]=Ro([]);return q(P,{defaultValue:a,control:m,name:t,render:({field:l,fieldState:d})=>{let g=v||i?.countries;if(g){let x={label:e,name:t,options:r,defaultValue:a,description:s,onChange:n,$meta:p,...F};return q(g,{field:{...l,onChange:o(E=>{l.onChange(E),n?.(E)},"onChange")},fieldState:d,fieldData:x})}let y=[...Object.entries(p?.regions||{}).map(([x,E])=>({value:E,label:x,category:"Regions"})),...Object.entries(p?.subregions||{}).map(([x,E])=>({value:E,label:x,category:"Subregions"})),...r.map(x=>({...x,value:x.value,label:x.label,category:"Countries"}))],b=o(x=>{let E=x.map(({value:Jt})=>Jt);l.onChange(E),n?.(E),c(x)},"handleChange");return wo(k,{"data-field":t,className:`RemoteFlows__CountryField__Item__${t}`,children:[q(N,{className:"RemoteFlows__CountryField__Label",children:e}),q(R,{children:q(ye,{options:y,selected:u,onChange:b,...F})}),s&&q(w,{children:s}),d.error&&q(T,{})]})}})}o(Nt,"CountryField");import*as kt from"react";import{jsx as Do}from"react/jsx-runtime";var $e=kt.forwardRef(({className:e,...t},r)=>Do("textarea",{className:f("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));$e.displayName="Textarea";import{jsx as K,jsxs as He}from"react/jsx-runtime";function Rt({name:e,description:t,label:r,onChange:a,maxLength:s,component:n,...p}){let{components:v}=S(),{control:F}=_();return K(P,{control:F,name:e,render:({field:m,fieldState:i})=>{let u=n||v?.textarea;if(u){let l={name:e,description:t,label:r,maxLength:s,...p};return K(u,{field:{...m,onChange:o(d=>{m.onChange(d),a?.(d)},"onChange")},fieldState:i,fieldData:l})}let c=m.value?.length??0;return He(k,{"data-field":e,className:`RemoteFlows__TextArea__Item__${e}`,children:[K(N,{className:"RemoteFlows__TextArea__Label",children:r}),K(R,{children:K($e,{...m,value:m.value??"",onChange:l=>{m.onChange(l),a?.(l)},className:f(i.error&&"border-red-500 focus-visible:ring-red-500","RemoteFlows__TextArea__Input"),placeholder:r})}),(t||s)&&He("div",{className:"flex items-center justify-between",children:[t&&K(w,{className:"RemoteFlows__TextArea__Description",children:t}),s&&He("span",{className:"text-sm ml-auto RemoteFlows__TextArea__MaxLength",children:[c,"/",s]})]}),i.error&&K(T,{className:"RemoteFlows__TextArea__Error"})]})}})}o(Rt,"TextAreaField");import{jsx as Be}from"react/jsx-runtime";function wt(e){let{components:t}=S(),{control:r}=_(),a=e.component||t?.email;return a?Be(P,{control:r,name:e.name,render:({field:s,fieldState:n})=>Be(a,{field:{...s,onChange:o(p=>{s.onChange(p),e.onChange?.(p)},"onChange")},fieldState:n,fieldData:e})}):Be(V,{...e,type:"email"})}o(wt,"EmailField");import{jsx as Dt}from"react/jsx-runtime";function Tt(e){let{control:t}=_();return Dt(P,{control:t,name:e.name,render:({field:r})=>Dt("input",{...r,type:"hidden"})})}o(Tt,"HiddenField");import $o,{useEffect as Ho,useState as Ot}from"react";var It=o((e,t,r)=>{if(e&&"reportValidity"in e){let a=ae(r,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},"r"),Oe=o((e,t)=>{for(let r in t.fields){let a=t.fields[r];a&&a.ref&&"reportValidity"in a.ref?It(a.ref,r,e):a&&a.refs&&a.refs.forEach(s=>It(s,r,e))}},"o"),Wt=o((e,t)=>{t.shouldUseNativeValidation&&Oe(e,t);let r={};for(let a in e){let s=ae(t.fields,a),n=Object.assign(e[a]||{},{ref:s&&s.ref});if(To(t.names||Object.keys(e),a)){let p=Object.assign({},ae(r,a));ne(p,"root",n),ne(r,a,p)}else ne(r,a,n)}return r},"s"),To=o((e,t)=>{let r=Mt(t);return e.some(a=>Mt(a).match(`^${r}\\.\\d+`))},"i");function Mt(e){return e.replace(/\]|\[/g,"")}o(Mt,"n");function Lt(e,t,r){return t===void 0&&(t={}),r===void 0&&(r={}),function(a,s,n){try{return Promise.resolve(function(p,v){try{var F=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[r.mode==="sync"?"validateSync":"validate"](a,Object.assign({abortEarly:!1},t,{context:s}))).then(function(m){return n.shouldUseNativeValidation&&Oe({},n),{values:r.raw?Object.assign({},a):m,errors:{}}}))}catch(m){return v(m)}return F&&F.then?F.then(void 0,v):F}(0,function(p){if(!p.inner)throw p;return{values:{},errors:Wt((v=p,F=!n.shouldUseNativeValidation&&n.criteriaMode==="all",(v.inner||[]).reduce(function(m,i){if(m[i.path]||(m[i.path]={message:i.message,type:i.type}),F){var u=m[i.path].types,c=u&&u[i.type];m[i.path]=Ge(i.path,F,m,i.type,c?[].concat(c,i.message):i.message)}return m},{})),n)};var v,F}))}catch(p){return Promise.reject(p)}}}o(Lt,"o");import*as M from"yup";import Et from"lodash.groupby";import oe from"lodash.capitalize";var $t=60,he=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function Io(e){if(e<60)return`${e}m`;let t=Math.floor(e/$t),r=e%$t;return r>0?`${t}h${r}m`:`${t}h`}o(Io,"convertBreakDurationToHours");function Ht(e){let t=e.reduce((r,a)=>a.hours+r,0);return Number(t.toFixed(2))}o(Ht,"calculateTotalWorkHours");function Mo(e,t){let r=t.map(({day:n})=>n.toLowerCase()),a=r.indexOf(e),s=null;for(;a<r.length&&!s;){let n=r[a],p=r[a+1],v=he.indexOf(n)+1;he[v]===p||(s=n),a+=1}return s}o(Mo,"findLastConsecutiveDay");function Wo(e){return e.start_time&&e.end_time&&(typeof e.hours=="number"?e.hours:Number.parseInt(e.hours))>0}o(Wo,"shouldSummarizeSchedule");function Lo(e){return Number.parseInt(e.break_duration_minutes)>0}o(Lo,"shouldSummarizeBreaks");function Bt(e){let t=e.filter(Wo),r=Et(t,v=>`${v.start_time}|${v.end_time}`),a=e.filter(Lo),s=Et(a,"break_duration_minutes"),n=Object.keys(r).map(v=>{let F=r[v],m=F[0].day,[i,u]=v.split("|"),c=`from <span>${i.replace(":","h")}</span> to <span>${u.replace(":","h")}</span>`,l=Mo(m,F),g=(l?F.findIndex(y=>y.day===l):-1)===F.length-1;return F.length===1?`${oe(m)}, ${c}`:!g||!l?F.reduce((y,b,x)=>{let E=oe(b.day);return x===F.length-1?`${y}and ${E}, ${c}`:`${y}<span>${E}</span>, `},""):`<span>${oe(m)}</span> to <span>${oe(l)}</span>, ${c}`}),p=Object.keys(s).reverse().map((v,F)=>{let m=F===0,i=s[v],u=Io(parseInt(v,10));if(Object.keys(s).length===1)return`With ${u} daily breaks`;if(i.length===1){let c=`${u} break on ${oe(i[0].day)}.`;return m?`With ${c}`:c}return i.reduce((c,l,d)=>{let g=oe(l.day);return d===0?`${c} ${g}`:d===i.length-1?`${c}, and ${g}.`:`${c}, ${g}`},m?`With ${u} break on`:`${u} break on`)});return{workHoursSummary:n,breakSummary:p}}o(Bt,"buildWorkScheduleSummary");function Ve(e){let{checked:t,start_time:r,end_time:a,break_duration_minutes:s}=e;if(!t)return 0;let[n,p]=r.split(":").map(Number),[v,F]=a.split(":").map(Number),m=n*60+p,c=(v*60+F-m-Number.parseInt(s||"0"))/60;return c===Math.floor(c)?c:Number(c.toFixed(2))}o(Ve,"calculateHours");var Eo={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function _e(e){return Eo[e]}o(_e,"getShortWeekday");import{jsx as h,jsxs as B}from"react/jsx-runtime";var Bo=M.object({day:M.string().required(),checked:M.boolean().required(),start_time:M.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:o(e=>e.required("Required"),"then"),otherwise:o(e=>e.optional().nullable(),"otherwise")}),end_time:M.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:o(e=>e.required("Required"),"then"),otherwise:o(e=>e.optional().nullable(),"otherwise")}),hours:M.number().default(0),break_duration_minutes:M.string().default("0")}),Oo=M.object({schedule:M.array(Bo)});function Vo({defaultSchedule:e,onSubmit:t}){let[r,a]=Ot(!1),s=he.map(g=>{let y=e.find(b=>b.day.toLowerCase()===_e(g).toLowerCase()||b.day.toLowerCase()===g.toLowerCase());return y?{...y,day:_e(g),checked:!0}:{...e[0],checked:!1,day:_e(g)}}),n=Je({defaultValues:{schedule:s},resolver:Lt(Oo)}),{handleSubmit:p,watch:v,reset:F,control:m,formState:i}=n,{fields:u}=Ue({name:"schedule",control:m}),c=v("schedule");function l(g){let y=g.schedule.filter(({checked:b})=>b).map(b=>({...b,hours:Ve(b)}));t(y),a(!1)}o(l,"handleSubmitWorkingHours");function d(){F(),a(!1)}return o(d,"handleCancel"),h("div",{className:"flex items-center justify-between",children:B(Me,{open:r,onOpenChange:a,children:[h(ht,{asChild:!0,children:h(O,{variant:"link",className:"flex items-center p-0 RemoteFlows__WorkScheduleSelectionForm__Trigger",children:"Edit Schedule"})}),B(We,{className:"max-w-5xl max-h-[90vh] overflow-y-auto px-8 py-4 RemoteFlows__WorkScheduleSelectionForm__Content",children:[h(Le,{children:h(Ee,{className:"RemoteFlows__WorkScheduleSelectionForm__Title",children:"Edit employee working hours"})}),h(qe,{...n,children:B("form",{className:"space-y-4 RemoteFlows__WorkScheduleSelectionForm__Form",children:[B("div",{className:"rounded-lg",children:[h("p",{className:"text-gray-600 text-sm mb-4 RemoteFlows__WorkScheduleSelectionForm__Description",children:"The times displayed are in the employee's time zone in the 24-hour format."}),B("div",{className:"grid grid-cols-12 gap-4 text-sm font-medium text-gray-500 uppercase tracking-wide RemoteFlows__WorkScheduleSelectionForm__Header",children:[h("div",{className:"col-span-2"}),h("div",{className:"col-span-3 text-center",children:"START"}),h("div",{className:"col-span-1 text-center"}),h("div",{className:"col-span-3 text-center",children:"END"}),h("div",{className:"col-span-2 text-center",children:"HOURS"})]}),h("div",{className:"RemoteFlows__WorkScheduleSelectionForm__Rows",children:u.map((g,y)=>{let b=c[y],x=Ve(b);return B($o.Fragment,{children:[B("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Hours",children:[h("div",{className:"col-span-2 flex items-center gap-3",children:h(le,{label:g.day,name:`schedule.${y}.checked`})}),h("div",{className:"col-span-3",children:h(V,{name:`schedule.${y}.start_time`,includeErrorMessage:!1})}),h("div",{className:"col-span-1 text-center text-gray-500",children:"to"}),h("div",{className:"col-span-3",children:h(V,{name:`schedule.${y}.end_time`,includeErrorMessage:!1})}),h("div",{className:"col-span-2 text-center text-gray-600",children:isNaN(x)?"-":`${x} hours`})]}),B("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Break",children:[h("div",{className:"col-span-2 text-gray-500",children:"Break"}),h("div",{className:"col-span-2",children:h(V,{name:`schedule.${y}.break_duration_minutes`,includeErrorMessage:!1})}),h("div",{className:"col-span-2 text-gray-500",children:"minutes"}),h("div",{className:"col-span-4"})]})]},g.id)})})]}),Object.keys(i.errors).length>0&&h("p",{className:"text-destructive text-sm mb-0",children:"Invalid time format (HH:mm)"}),B("div",{className:"flex gap-4 pt-4",children:[h(O,{type:"button",className:"reset-button",variant:"outline",onClick:d,children:"Cancel"}),h(O,{type:"button",className:"submit-button",onClick:p(l),children:"Save Schedule"})]})]})})]})]})})}o(Vo,"WorkScheduleSelectionForm");function Vt(e){let{components:t}=S(),{setValue:r,control:a,watch:s}=_(),n=s(e.name),[p,v]=Ot(n),{workHoursSummary:F,breakSummary:m}=Bt(p),i=Ht(p);Ho(()=>{r(e.name,p)},[p,e.name,r]);function u(l){v(l)}o(u,"onSubmit");let c=e.component||t?.["work-schedule"];return c?h(P,{control:a,name:e.name,render:({field:l,fieldState:d})=>h(c,{field:{...l,onChange:o(g=>{l.onChange(g),e.onChange?.(g)},"onChange")},fieldState:d,fieldData:{...e,defaultFormattedValue:{workHoursSummary:F,breakSummary:m,totalWorkHours:i}}})}):B("div",{className:"flex flex-col gap-3 RemoteFlows__WorkScheduleField",children:[h("p",{className:"text-sm RemoteFlows__WorkScheduleField__Title",children:"Work hours"}),B("div",{className:"flex flex-col gap-1 RemoteFlows__WorkScheduleField__Summary",children:[h("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__WorkHours",dangerouslySetInnerHTML:{__html:F.join(", ")}}),h("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Break",children:m.join()}),B("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Total",children:["Total of ",h("span",{children:i})," hours per week"]}),h(Vo,{defaultSchedule:p,onSubmit:u})]})]})}o(Vt,"WorkScheduleField");import{useState as Ao}from"react";import{jsx as Y,jsxs as zo}from"react/jsx-runtime";function At({label:e,name:t,options:r,defaultValue:a,description:s,onChange:n,component:p,...v}){let{control:F}=_(),{components:m}=S(),[i,u]=Ao();return Y(P,{defaultValue:a,control:F,name:t,render:({field:c,fieldState:l})=>{let d=p||m?.["multi-select"];if(d){let y={label:e,name:t,options:r,defaultValue:a,description:s,onChange:n,...v};return Y(d,{field:{...c,onChange:o(b=>{c.onChange(b),n?.(b)},"onChange")},fieldState:l,fieldData:y})}let g=i||r.filter(y=>c.value.includes(y.value));return zo(k,{"data-field":t,className:`RemoteFlows__SelectField__Item__${t}`,children:[Y(N,{className:"RemoteFlows__SelectField__Label",children:e}),Y(R,{children:Y(ye,{options:r,selected:g,onChange:y=>{let b=y.map(({value:x})=>x);c.onChange(b),n?.(b),u(y)},...v})}),s&&Y(w,{children:s}),l.error&&Y(T,{})]})}})}o(At,"MultiSelectField");import{jsx as Go}from"react/jsx-runtime";var zt=o(e=>Go(Fe,{maxLength:15,...e}),"MoneyField");var X={checkbox:le,text:V,email:wt,money:zt,select:yt,"multi-select":At,radio:mt,number:Fe,file:it,fieldset:ke,"fieldset-flat":ke,date:Qe,textarea:Rt,countries:Nt,hidden:Tt,"work-schedule":Vt};import{useEffect as Uo}from"react";import{Fragment as Jo,jsx as Ce,jsxs as qo}from"react/jsx-runtime";function Gt({name:e,value:t,description:r,statement:a}){let{setValue:s}=_();return Uo(()=>{s(e,t)},[]),Ce("div",{children:a?qo(Jo,{children:[Ce("p",{className:`text-sm RemoteFlows__ForcedValue__Title__${e}`,dangerouslySetInnerHTML:{__html:a?.title}}),Ce("p",{className:`text-xs RemoteFlows__ForcedValue__Description__${e}`,dangerouslySetInnerHTML:{__html:a?.description}})]}):Ce("p",{className:`text-xs RemoteFlows__ForcedValue__Description__${e}`,dangerouslySetInnerHTML:{__html:r}})})}o(Gt,"ForcedValueField");import{Fragment as jo,jsx as j,jsxs as Ut}from"react/jsx-runtime";function Yo(e){return e.const!==void 0&&e.const===e.default&&e.inputType!=="checkbox"&&e.inputType!=="hidden"}o(Yo,"checkFieldHasForcedValue");var fs=o(({fields:e,fieldsets:t,fieldValues:r,components:a})=>{if(!e||e.length===0)return null;let s=t&&r?Ae({fields:e,fieldsets:t,values:r}):e;return j(jo,{children:s.map(n=>{if(n.isVisible===!1||n.deprecated)return null;if(Yo(n))return j(Gt,{name:n.name,description:n.description,value:n.const,statement:n.statement},n.name);if(n.Component){let{Component:v}=n;return j(v,{...n},n.name)}let p=X[n.inputType];return n.inputType==="select"&&n.multiple&&(p=X["multi-select"]),n.inputType==="fieldset"?j(p,{...n,components:a}):n.inputType==="fieldset-flat"?j(p,{...n,components:a,isFlatFieldset:!0}):p?Ut(Ko,{children:[j(p,{...n,component:a&&a[n.inputType]}),n.statement?j(fe,{...n.statement}):null]},n.name):Ut("p",{className:"error",children:["Field type ",n.inputType," not supported"]})})})},"JSONSchemaFormFields");export{fs as a};
|
|
2
|
-
//# sourceMappingURL=chunk-SYYKU72Z.js.map
|