@remoteoss/remote-flows 0.4.0 → 0.4.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-EEAMZPP6.js → chunk-2IOIRPXX.js} +2 -2
- package/dist/{chunk-EB6GZ52C.js → chunk-2YGGLGBG.js} +2 -2
- package/dist/{chunk-3NZ6PO4D.js → chunk-3TAUIOLW.js} +2 -2
- package/dist/chunk-5I2GCSAL.js +2 -0
- package/dist/{chunk-6PU7CB5U.js.map → chunk-5I2GCSAL.js.map} +1 -1
- package/dist/{chunk-FNPHFDVW.js → chunk-5NCRPBBP.js} +2 -2
- package/dist/chunk-5RPT35EL.js +2 -0
- package/dist/{chunk-RVPWK6LS.js.map → chunk-5RPT35EL.js.map} +1 -1
- package/dist/chunk-6WFPF53B.js +2 -0
- package/dist/{chunk-75R6JZDW.js.map → chunk-6WFPF53B.js.map} +1 -1
- package/dist/chunk-7522S3KZ.js +2 -0
- package/dist/{chunk-KSD3WMDB.js.map → chunk-7522S3KZ.js.map} +1 -1
- package/dist/{chunk-BF7QENCN.js → chunk-ABFF6YSW.js} +2 -2
- package/dist/{chunk-HDN4FDPM.js → chunk-BFZQYTQN.js} +2 -2
- package/dist/{chunk-FB5J7SRP.js → chunk-BHXNRWYC.js} +2 -2
- package/dist/{chunk-QR7BFA7D.js → chunk-CIIUTHY7.js} +2 -2
- package/dist/{chunk-WIRFNWEU.js → chunk-CVXZNBHC.js} +2 -2
- package/dist/{chunk-MSBG52WO.js → chunk-DBRBPYIF.js} +2 -2
- package/dist/{chunk-REFXENXG.js → chunk-DIF7GZA2.js} +2 -2
- package/dist/{chunk-XK2VKWS4.js → chunk-EGJR5MXK.js} +2 -2
- package/dist/{chunk-Q7JCPGRV.js → chunk-GTXQK2J6.js} +2 -2
- package/dist/{chunk-KM4XVL2X.js → chunk-HRIDANZ6.js} +2 -2
- package/dist/{chunk-CTTXXEWI.js → chunk-HS3TP43Z.js} +2 -2
- package/dist/chunk-HUEFMP54.js +2 -0
- package/dist/{chunk-3LLIAVAT.js.map → chunk-HUEFMP54.js.map} +1 -1
- package/dist/{chunk-LLIGZSYY.js → chunk-JW2HLB6X.js} +2 -2
- package/dist/{chunk-EV5YPN4F.js → chunk-KKM4IXYC.js} +2 -2
- package/dist/{chunk-MNO47WC2.js → chunk-L6CLZL2D.js} +2 -2
- package/dist/{chunk-2M24UA4Q.js → chunk-LOBYJTDX.js} +2 -2
- package/dist/{chunk-3HPG2L62.js → chunk-LU6YNL6P.js} +2 -2
- package/dist/{chunk-32RYPLZK.js → chunk-MIALHORP.js} +2 -2
- package/dist/chunk-MPMOHDZP.js +2 -0
- package/dist/chunk-MPMOHDZP.js.map +1 -0
- package/dist/{chunk-PJCUSCO4.js → chunk-NTJN7NCK.js} +2 -2
- package/dist/{chunk-XO3JWN33.js → chunk-OYI5OCMY.js} +2 -2
- package/dist/{chunk-TLGQADTJ.js → chunk-PRFH5KY7.js} +2 -2
- package/dist/{chunk-5Z4FFOUG.js → chunk-PWWX66GV.js} +2 -2
- package/dist/{chunk-FUIQ7D6L.js → chunk-R4PWQPR6.js} +2 -2
- package/dist/{chunk-4DBVDTD7.js → chunk-RBC6WNYP.js} +2 -2
- package/dist/{chunk-OLQH5MUO.js → chunk-S4WAMYEE.js} +2 -2
- package/dist/chunk-STEO7MS2.js +2 -0
- package/dist/chunk-STEO7MS2.js.map +1 -0
- package/dist/chunk-SYYKU72Z.js +2 -0
- package/dist/chunk-SYYKU72Z.js.map +1 -0
- package/dist/chunk-TC3SWPEN.js +2 -0
- package/dist/{chunk-KPHSEIR3.js.map → chunk-TC3SWPEN.js.map} +1 -1
- package/dist/{chunk-IBPMQFJD.js → chunk-VCYSWPLV.js} +2 -2
- package/dist/{chunk-Y4RXM5DL.js → chunk-VFR5R7GS.js} +2 -2
- package/dist/{chunk-GEYFQVQI.js → chunk-WZSGDTVV.js} +2 -2
- package/dist/{chunk-O35HIRRS.js → chunk-XTC73RFN.js} +2 -2
- package/dist/{chunk-3DQNK6T7.js → chunk-YD3IHRVA.js} +2 -2
- package/dist/{chunk-4U36WFL2.js → chunk-YDW7CPPR.js} +2 -2
- package/dist/{chunk-RXK4RLF6.js → chunk-YECC5GAT.js} +2 -2
- package/dist/chunk-ZKALTI3E.js +2 -0
- package/dist/{chunk-TXQGBSCM.js.map → chunk-ZKALTI3E.js.map} +1 -1
- package/dist/{chunk-YO4OQIFP.js → chunk-ZOTFG7GS.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentBack.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentSubmit.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +3 -0
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorDisclaimer.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResultsChart.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorTotalCost.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +1 -1
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +1 -1
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/utils.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +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.d.ts +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/OnboardingBack.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +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/OnboardingSubmit.js +1 -1
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +1 -1
- package/dist/flows/Onboarding/hooks.d.ts +1 -1
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +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/TerminationBack.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/TerminationSubmit.js +1 -1
- package/dist/flows/Termination/context.d.ts +3 -0
- package/dist/flows/Termination/index.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{remoteFlows-42q2E5rP.d.ts → remoteFlows-B-p1H61n.d.ts} +8 -0
- package/package.json +1 -1
- package/dist/chunk-3LLIAVAT.js +0 -2
- package/dist/chunk-6PU7CB5U.js +0 -2
- package/dist/chunk-75R6JZDW.js +0 -2
- package/dist/chunk-G25ZXN6A.js +0 -2
- package/dist/chunk-G25ZXN6A.js.map +0 -1
- package/dist/chunk-KPHSEIR3.js +0 -2
- package/dist/chunk-KSD3WMDB.js +0 -2
- package/dist/chunk-QTEZNOV2.js +0 -2
- package/dist/chunk-QTEZNOV2.js.map +0 -1
- package/dist/chunk-RVPWK6LS.js +0 -2
- package/dist/chunk-TXQGBSCM.js +0 -2
- package/dist/chunk-VNSF5IOL.js +0 -2
- package/dist/chunk-VNSF5IOL.js.map +0 -1
- /package/dist/{chunk-EEAMZPP6.js.map → chunk-2IOIRPXX.js.map} +0 -0
- /package/dist/{chunk-EB6GZ52C.js.map → chunk-2YGGLGBG.js.map} +0 -0
- /package/dist/{chunk-3NZ6PO4D.js.map → chunk-3TAUIOLW.js.map} +0 -0
- /package/dist/{chunk-FNPHFDVW.js.map → chunk-5NCRPBBP.js.map} +0 -0
- /package/dist/{chunk-BF7QENCN.js.map → chunk-ABFF6YSW.js.map} +0 -0
- /package/dist/{chunk-HDN4FDPM.js.map → chunk-BFZQYTQN.js.map} +0 -0
- /package/dist/{chunk-FB5J7SRP.js.map → chunk-BHXNRWYC.js.map} +0 -0
- /package/dist/{chunk-QR7BFA7D.js.map → chunk-CIIUTHY7.js.map} +0 -0
- /package/dist/{chunk-WIRFNWEU.js.map → chunk-CVXZNBHC.js.map} +0 -0
- /package/dist/{chunk-MSBG52WO.js.map → chunk-DBRBPYIF.js.map} +0 -0
- /package/dist/{chunk-REFXENXG.js.map → chunk-DIF7GZA2.js.map} +0 -0
- /package/dist/{chunk-XK2VKWS4.js.map → chunk-EGJR5MXK.js.map} +0 -0
- /package/dist/{chunk-Q7JCPGRV.js.map → chunk-GTXQK2J6.js.map} +0 -0
- /package/dist/{chunk-KM4XVL2X.js.map → chunk-HRIDANZ6.js.map} +0 -0
- /package/dist/{chunk-CTTXXEWI.js.map → chunk-HS3TP43Z.js.map} +0 -0
- /package/dist/{chunk-LLIGZSYY.js.map → chunk-JW2HLB6X.js.map} +0 -0
- /package/dist/{chunk-EV5YPN4F.js.map → chunk-KKM4IXYC.js.map} +0 -0
- /package/dist/{chunk-MNO47WC2.js.map → chunk-L6CLZL2D.js.map} +0 -0
- /package/dist/{chunk-2M24UA4Q.js.map → chunk-LOBYJTDX.js.map} +0 -0
- /package/dist/{chunk-3HPG2L62.js.map → chunk-LU6YNL6P.js.map} +0 -0
- /package/dist/{chunk-32RYPLZK.js.map → chunk-MIALHORP.js.map} +0 -0
- /package/dist/{chunk-PJCUSCO4.js.map → chunk-NTJN7NCK.js.map} +0 -0
- /package/dist/{chunk-XO3JWN33.js.map → chunk-OYI5OCMY.js.map} +0 -0
- /package/dist/{chunk-TLGQADTJ.js.map → chunk-PRFH5KY7.js.map} +0 -0
- /package/dist/{chunk-5Z4FFOUG.js.map → chunk-PWWX66GV.js.map} +0 -0
- /package/dist/{chunk-FUIQ7D6L.js.map → chunk-R4PWQPR6.js.map} +0 -0
- /package/dist/{chunk-4DBVDTD7.js.map → chunk-RBC6WNYP.js.map} +0 -0
- /package/dist/{chunk-OLQH5MUO.js.map → chunk-S4WAMYEE.js.map} +0 -0
- /package/dist/{chunk-IBPMQFJD.js.map → chunk-VCYSWPLV.js.map} +0 -0
- /package/dist/{chunk-Y4RXM5DL.js.map → chunk-VFR5R7GS.js.map} +0 -0
- /package/dist/{chunk-GEYFQVQI.js.map → chunk-WZSGDTVV.js.map} +0 -0
- /package/dist/{chunk-O35HIRRS.js.map → chunk-XTC73RFN.js.map} +0 -0
- /package/dist/{chunk-3DQNK6T7.js.map → chunk-YD3IHRVA.js.map} +0 -0
- /package/dist/{chunk-4U36WFL2.js.map → chunk-YDW7CPPR.js.map} +0 -0
- /package/dist/{chunk-RXK4RLF6.js.map → chunk-YECC5GAT.js.map} +0 -0
- /package/dist/{chunk-YO4OQIFP.js.map → chunk-ZOTFG7GS.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-YECC5GAT.js";import{a as c}from"./chunk-SX5W3CBP.js";import{a as e}from"./chunk-HS3TP43Z.js";import{a as m}from"./chunk-HUEFMP54.js";import{a as r}from"./chunk-5I2GCSAL.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-YD3IHRVA.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-5RPT35EL.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-YDW7CPPR.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as e}from"./chunk-WZSGDTVV.js";import{b as u}from"./chunk-3ZWDIEEM.js";import{b as i}from"./chunk-TVZAFTPT.js";import{a as m}from"./chunk-P37U34EQ.js";import{jsx as s}from"react/jsx-runtime";function d({children:t,...o}){let{formId:n}=i(),{components:f}=u(),r=f?.button;return r?s(r,{...o,form:n,children:t}):s(e,{...o,form:n,children:t})}m(d,"ContractAmendmentSubmit");export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YECC5GAT.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{m as _}from"./chunk-X36OBDKD.js";import{a as P}from"./chunk-MPMOHDZP.js";import{b as W}from"./chunk-3ZWDIEEM.js";import{c as D}from"./chunk-STEO7MS2.js";import{a as t,b as c,c as he}from"./chunk-P37U34EQ.js";var k=c((xt,B)=>{"use strict";function Se(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}t(Se,"isObject");B.exports=Se});var A=c((Tt,H)=>{"use strict";var je=typeof global=="object"&&global&&global.Object===Object&&global;H.exports=je});var M=c((ht,G)=>{"use strict";var Oe=A(),Ee=typeof self=="object"&&self&&self.Object===Object&&self,qe=Oe||Ee||Function("return this")();G.exports=qe});var U=c((St,J)=>{"use strict";var Fe=M(),Re=t(function(){return Fe.Date.now()},"now");J.exports=Re});var X=c((Ot,V)=>{"use strict";var Ie=/\s/;function Pe(e){for(var n=e.length;n--&&Ie.test(e.charAt(n)););return n}t(Pe,"trimmedEndIndex");V.exports=Pe});var K=c((qt,z)=>{"use strict";var ke=X(),Me=/^\s+/;function we(e){return e&&e.slice(0,ke(e)+1).replace(Me,"")}t(we,"baseTrim");z.exports=we});var w=c((Rt,Q)=>{"use strict";var Le=M(),Ne=Le.Symbol;Q.exports=Ne});var te=c((It,ee)=>{"use strict";var Y=w(),Z=Object.prototype,$e=Z.hasOwnProperty,We=Z.toString,T=Y?Y.toStringTag:void 0;function De(e){var n=$e.call(e,T),o=e[T];try{e[T]=void 0;var s=!0}catch{}var a=We.call(e);return s&&(n?e[T]=o:delete e[T]),a}t(De,"getRawTag");ee.exports=De});var re=c((kt,ne)=>{"use strict";var _e=Object.prototype,Be=_e.toString;function He(e){return Be.call(e)}t(He,"objectToString");ne.exports=He});var ae=c((wt,se)=>{"use strict";var oe=w(),Ae=te(),Ge=re(),Je="[object Null]",Ue="[object Undefined]",ie=oe?oe.toStringTag:void 0;function Ve(e){return e==null?e===void 0?Ue:Je:ie&&ie in Object(e)?Ae(e):Ge(e)}t(Ve,"baseGetTag");se.exports=Ve});var ue=c((Nt,ce)=>{"use strict";function Xe(e){return e!=null&&typeof e=="object"}t(Xe,"isObjectLike");ce.exports=Xe});var le=c((Wt,fe)=>{"use strict";var ze=ae(),Ke=ue(),Qe="[object Symbol]";function Ye(e){return typeof e=="symbol"||Ke(e)&&ze(e)==Qe}t(Ye,"isSymbol");fe.exports=Ye});var ge=c((_t,pe)=>{"use strict";var Ze=K(),de=k(),et=le(),me=NaN,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^0o[0-7]+$/i,ot=parseInt;function it(e){if(typeof e=="number")return e;if(et(e))return me;if(de(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=de(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Ze(e);var o=nt.test(e);return o||rt.test(e)?ot(e.slice(2),o?2:8):tt.test(e)?me:+e}t(it,"toNumber");pe.exports=it});var ye=c((Ht,ve)=>{"use strict";var st=k(),L=U(),be=ge(),at="Expected a function",ct=Math.max,ut=Math.min;function ft(e,n,o){var s,a,l,u,i,m,d=0,S=!1,p=!1,b=!0;if(typeof e!="function")throw new TypeError(at);n=be(n)||0,st(o)&&(S=!!o.leading,p="maxWait"in o,l=p?ct(be(o.maxWait)||0,n):l,b="trailing"in o?!!o.trailing:b);function y(r){var f=s,g=a;return s=a=void 0,d=r,u=e.apply(g,f),u}t(y,"invokeFunc");function j(r){return d=r,i=setTimeout(v,n),S?y(r):u}t(j,"leadingEdge");function O(r){var f=r-m,g=r-d,q=n-f;return p?ut(q,l-g):q}t(O,"remainingWait");function x(r){var f=r-m,g=r-d;return m===void 0||f>=n||f<0||p&&g>=l}t(x,"shouldInvoke");function v(){var r=L();if(x(r))return E(r);i=setTimeout(v,O(r))}t(v,"timerExpired");function E(r){return i=void 0,b&&s?y(r):(s=a=void 0,u)}t(E,"trailingEdge");function R(){i!==void 0&&clearTimeout(i),d=0,s=m=a=i=void 0}t(R,"cancel");function I(){return i===void 0?u:E(L())}t(I,"flush");function C(){var r=L(),f=x(r);if(s=arguments,a=this,m=r,f){if(i===void 0)return j(m);if(p)return clearTimeout(i),i=setTimeout(v,n),y(m)}return i===void 0&&(i=setTimeout(v,n)),u}return t(C,"debounced"),C.cancel=R,C.flush=I,C}t(ft,"debounce");ve.exports=ft});import{useState as mt,useCallback as pt,useEffect as gt,useRef as bt}from"react";var Ce=he(ye(),1);import{useCallback as lt,useEffect as dt,useRef as xe}from"react";function N(e,n){let o=xe(e);dt(()=>{o.current=e},[e]);let s=xe((0,Ce.default)(a=>{o.current(a)},n)).current;return lt(a=>{s(a)},[s])}t(N,"useDebounce");import{Fragment as yt,jsx as h,jsxs as Te}from"react/jsx-runtime";var vt=t(({description:e,showConversion:n,targetCurrency:o,className:s,onClick:a})=>{let{components:l}=W(),u=n?`Hide ${o} conversion`:`Show ${o} conversion`,i=l?.button;return Te("span",{className:s,children:[e," ",i?h(i,{className:`${s.replace("-description","-button")}`,"data-type":"inline",onClick:a,children:u}):h("button",{className:`${s.replace("-description","-button")}`,onClick:a,children:u})]})},"DescriptionWithConversion"),en=t(({sourceCurrency:e,targetCurrency:n,conversionFieldName:o,conversionProperties:s,classNamePrefix:a,description:l,...u})=>{let[i,m]=mt(!1),{setValue:d,watch:S}=D(),p=S(u.name),b=bt(!0),y=e&&n&&e!==n,{mutateAsync:j}=_();gt(()=>{if(b.current){b.current=!1;return}d(o,"")},[e,o,d]);let O=pt(async(r,f,g,q)=>{if(r)try{let F=await j({source_currency:f,target_currency:g,amount:Number(r)});if(F.data?.data?.conversion_data?.target_amount){let $=F.data.data.conversion_data.target_amount;$&&d(q,$?.toString())}}catch(F){console.error("Error converting currency:",F)}},[j,d]),x=N(r=>O(r,e,n,o),500),v=N(r=>O(r,n,e,u.name),500),E=t(r=>{i&&x(r.target.value)},"handleMainFieldChange"),R=t(r=>{v(r.target.value)},"handleConversionFieldChange"),I=t(r=>{r.preventDefault(),m(f=>!f),!i&&p&&x(p)},"toggleConversion"),C=y?h(vt,{targetCurrency:n,description:l,showConversion:i,className:`${a}-description`,onClick:I}):l;return Te(yt,{children:[h(P,{...u,additionalProps:{currency:e},description:C,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:E}),i&&h(P,{additionalProps:{currency:n},name:o,label:s?.label||"Conversion",description:s?.description,type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",maxLength:15,onChange:R})]})},"CurrencyConversionField");export{en as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZKALTI3E.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../node_modules/lodash/isObject.js","../node_modules/lodash/_freeGlobal.js","../node_modules/lodash/_root.js","../node_modules/lodash/now.js","../node_modules/lodash/_trimmedEndIndex.js","../node_modules/lodash/_baseTrim.js","../node_modules/lodash/_Symbol.js","../node_modules/lodash/_getRawTag.js","../node_modules/lodash/_objectToString.js","../node_modules/lodash/_baseGetTag.js","../node_modules/lodash/isObjectLike.js","../node_modules/lodash/isSymbol.js","../node_modules/lodash/toNumber.js","../node_modules/lodash/debounce.js","../src/components/form/fields/CurrencyConversionField.tsx","../src/common/hooks.ts"],"sourcesContent":["/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","import { ReactNode, useState, useCallback, useEffect, useRef } from 'react';\nimport { useFormContext } from 'react-hook-form';\nimport { TextField } from '@/src/components/form/fields/TextField';\nimport { useConvertCurrency } from '@/src/flows/Onboarding/api';\nimport { JSFField } from '@/src/types/remoteFlows';\nimport { useFormFields } from '@/src/context';\nimport { useDebounce } from '@/src/common/hooks';\n\ntype DescriptionWithConversionProps = {\n description: ReactNode;\n showConversion: boolean;\n targetCurrency: string;\n className: string;\n onClick: (evt: React.MouseEvent<HTMLButtonElement>) => void;\n};\n\nconst DescriptionWithConversion = ({\n description,\n showConversion,\n targetCurrency,\n className,\n onClick,\n}: DescriptionWithConversionProps) => {\n const { components } = useFormFields();\n const label = showConversion\n ? `Hide ${targetCurrency} conversion`\n : `Show ${targetCurrency} conversion`;\n\n const CustomButton = components?.button;\n return (\n <span className={className}>\n {description}{' '}\n {CustomButton ? (\n <CustomButton\n className={`${className.replace('-description', '-button')}`}\n data-type=\"inline\"\n onClick={onClick}\n >\n {label}\n </CustomButton>\n ) : (\n <button\n className={`${className.replace('-description', '-button')}`}\n onClick={onClick}\n >\n {label}\n </button>\n )}\n </span>\n );\n};\n\nexport type CurrencyConversionFieldProps = JSFField & {\n sourceCurrency: string;\n targetCurrency: string;\n conversionFieldName: string;\n conversionProperties?: {\n label?: string;\n description?: string;\n };\n useProxy?: boolean;\n classNamePrefix: string;\n};\n\nexport const CurrencyConversionField = ({\n sourceCurrency,\n targetCurrency,\n conversionFieldName,\n conversionProperties,\n classNamePrefix,\n description,\n ...props\n}: CurrencyConversionFieldProps) => {\n const [showConversion, setShowConversion] = useState(false);\n const { setValue, watch } = useFormContext();\n const fieldValue = watch(props.name);\n const isFirstRender = useRef(true);\n\n const canShowConversion =\n sourceCurrency && targetCurrency && sourceCurrency !== targetCurrency;\n\n const { mutateAsync: convertCurrency } = useConvertCurrency();\n\n useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n return;\n }\n\n // when source currency changes, reset the conversion field\n setValue(conversionFieldName, '');\n }, [sourceCurrency, conversionFieldName, setValue]);\n\n const convertCurrencyCallback = useCallback(\n async (\n value: string,\n fromCurrency: string,\n toCurrency: string,\n targetField: string,\n ) => {\n if (!value) return;\n\n try {\n const response = await convertCurrency({\n source_currency: fromCurrency,\n target_currency: toCurrency,\n amount: Number(value),\n });\n if (response.data?.data?.conversion_data?.target_amount) {\n const amount = response.data.data.conversion_data.target_amount;\n if (amount) {\n setValue(targetField, amount?.toString());\n }\n }\n } catch (error) {\n console.error('Error converting currency:', error);\n }\n },\n [convertCurrency, setValue],\n );\n\n const debouncedConvertCurrency = useDebounce(\n (value: string) =>\n convertCurrencyCallback(\n value,\n sourceCurrency,\n targetCurrency,\n conversionFieldName,\n ),\n 500,\n );\n const debouncedConvertCurrencyReverse = useDebounce(\n (value: string) =>\n convertCurrencyCallback(\n value,\n targetCurrency,\n sourceCurrency,\n props.name,\n ),\n 500,\n );\n\n const handleMainFieldChange = (evt: React.ChangeEvent<HTMLInputElement>) => {\n if (showConversion) {\n debouncedConvertCurrency(evt.target.value);\n }\n };\n\n const handleConversionFieldChange = (\n evt: React.ChangeEvent<HTMLInputElement>,\n ) => {\n debouncedConvertCurrencyReverse(evt.target.value);\n };\n\n const toggleConversion = (evt: React.MouseEvent<HTMLButtonElement>) => {\n evt.preventDefault();\n setShowConversion((prev) => !prev);\n\n if (!showConversion && fieldValue) {\n debouncedConvertCurrency(fieldValue);\n }\n };\n\n const extraDescription = canShowConversion ? (\n <DescriptionWithConversion\n targetCurrency={targetCurrency}\n description={description}\n showConversion={showConversion}\n className={`${classNamePrefix}-description`}\n onClick={toggleConversion}\n />\n ) : (\n description\n );\n\n return (\n <>\n <TextField\n {...props}\n additionalProps={{ currency: sourceCurrency }}\n description={extraDescription}\n type=\"text\"\n inputMode=\"decimal\"\n pattern=\"^[0-9.]*$\"\n maxLength={15}\n onChange={handleMainFieldChange}\n />\n {showConversion && (\n <TextField\n additionalProps={{ currency: targetCurrency }}\n name={conversionFieldName}\n label={conversionProperties?.label || 'Conversion'}\n description={conversionProperties?.description}\n type=\"text\"\n inputMode=\"decimal\"\n pattern=\"^[0-9.]*$\"\n maxLength={15}\n onChange={handleConversionFieldChange}\n />\n )}\n </>\n );\n};\n","import { useCallback, useEffect, useRef } from 'react';\nimport debounce from 'lodash/debounce';\n\nexport function useDebounce(\n callback: (value: string) => Promise<void>,\n delay: number,\n) {\n const callbackRef = useRef(callback);\n\n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n const debouncedFn = useRef(\n debounce((value: string) => {\n callbackRef.current(value);\n }, delay),\n ).current;\n\n return useCallback(\n (value: string) => {\n debouncedFn(value);\n },\n [debouncedFn],\n );\n}\n"],"mappings":"+KAAA,IAAAA,EAAAC,EAAA,CAAAC,GAAAC,IAAA,cAyBA,SAASC,GAASC,EAAO,CACvB,IAAIC,EAAO,OAAOD,EAClB,OAAOA,GAAS,OAASC,GAAQ,UAAYA,GAAQ,WACvD,CAHSC,EAAAH,GAAA,YAKTD,EAAO,QAAUC,KC9BjB,IAAAI,EAAAC,EAAA,CAAAC,GAAAC,IAAA,cACA,IAAIC,GAAa,OAAO,QAAU,UAAY,QAAU,OAAO,SAAW,QAAU,OAEpFD,EAAO,QAAUC,KCHjB,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,IAAA,kBAAIC,GAAa,IAGbC,GAAW,OAAO,MAAQ,UAAY,MAAQ,KAAK,SAAW,QAAU,KAGxEC,GAAOF,IAAcC,IAAY,SAAS,aAAa,EAAE,EAE7DF,EAAO,QAAUG,KCRjB,IAAAC,EAAAC,EAAA,C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GACFmC,EAAyBI,EAAI,OAAO,KAAK,CAE7C,EAJ8B,yBAMxBC,EAA8B1C,EAClCyC,GACG,CACHF,EAAgCE,EAAI,OAAO,KAAK,CAClD,EAJoC,+BAM9BE,EAAmB3C,EAACyC,GAA6C,CACrEA,EAAI,eAAe,EACnBzB,EAAmB4B,GAAS,CAACA,CAAI,EAE7B,CAAC1C,GAAkBmB,GACrBgB,EAAyBhB,CAAU,CAEvC,EAPyB,oBASnBwB,EAAmBrB,EACvB3B,EAACE,GAAA,CACC,eAAgBI,EAChB,YAAaF,EACb,eAAgBC,EAChB,UAAW,GAAGY,CAAe,eAC7B,QAAS6B,EACX,EAEA1C,EAGF,OACEH,GAAAF,GAAA,CACE,UAAAC,EAACiD,EAAA,CACE,GAAG/B,EACJ,gBAAiB,CAAE,SAAUJ,CAAe,EAC5C,YAAakC,EACb,KAAK,OACL,UAAU,UACV,QAAQ,YACR,UAAW,GACX,SAAUL,EACZ,EACCtC,GACCL,EAACiD,EAAA,CACC,gBAAiB,CAAE,SAAU3C,CAAe,EAC5C,KAAMS,EACN,MAAOC,GAAsB,OAAS,aACtC,YAAaA,GAAsB,YACnC,KAAK,OACL,UAAU,UACV,QAAQ,YACR,UAAW,GACX,SAAU6B,EACZ,GAEJ,CAEJ,EA1IuC","names":["require_isObject","__commonJSMin","exports","module","isObject","value","type","__name","require_freeGlobal","__commonJSMin","exports","module","freeGlobal","require_root","__commonJSMin","exports","module","freeGlobal","freeSelf","root","require_now","__commonJSMin","exports","module","root","now","__name","require_trimmedEndIndex","__commonJSMin","exports","module","reWhitespace","trimmedEndIndex","string","index","__name","require_baseTrim","__commonJSMin","exports","module","trimmedEndIndex","reTrimStart","baseTrim","string","__name","require_Symbol","__commonJSMin","exports","module","root","Symbol","require_getRawTag","__commonJSMin","exports","module","Symbol","objectProto","hasOwnProperty","nativeObjectToString","symToStringTag","getRawTag","value","isOwn","tag","unmasked","result","__name","require_objectToString","__commonJSMin","exports","module","objectProto","nativeObjectToString","objectToString","value","__name","require_baseGetTag","__commonJSMin","exports","module","Symbol","getRawTag","objectToString","nullTag","undefinedTag","symToStringTag","baseGetTag","value","__name","require_isObjectLike","__commonJSMin","exports","module","isObjectLike","value","__name","require_isSymbol","__commonJSMin","exports","module","baseGetTag","isObjectLike","symbolTag","isSymbol","value","__name","require_toNumber","__commonJSMin","exports","module","baseTrim","isObject","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","value","other","isBinary","__name","require_debounce","__commonJSMin","exports","module","isObject","now","toNumber","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","thisArg","__name","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","useState","useCallback","useEffect","useRef","useFormContext","import_debounce","useCallback","useEffect","useRef","useDebounce","callback","delay","callbackRef","useRef","useEffect","debouncedFn","debounce","value","useCallback","__name","Fragment","jsx","jsxs","DescriptionWithConversion","__name","description","showConversion","targetCurrency","className","onClick","components","useFormFields","label","CustomButton","CurrencyConversionField","sourceCurrency","conversionFieldName","conversionProperties","classNamePrefix","props","setShowConversion","useState","setValue","watch","useFormContext","fieldValue","isFirstRender","useRef","canShowConversion","convertCurrency","useConvertCurrency","useEffect","convertCurrencyCallback","useCallback","value","fromCurrency","toCurrency","targetField","response","amount","error","debouncedConvertCurrency","useDebounce","debouncedConvertCurrencyReverse","handleMainFieldChange","evt","handleConversionFieldChange","toggleConversion","prev","extraDescription","TextField"]}
|
|
1
|
+
{"version":3,"sources":["../node_modules/lodash/isObject.js","../node_modules/lodash/_freeGlobal.js","../node_modules/lodash/_root.js","../node_modules/lodash/now.js","../node_modules/lodash/_trimmedEndIndex.js","../node_modules/lodash/_baseTrim.js","../node_modules/lodash/_Symbol.js","../node_modules/lodash/_getRawTag.js","../node_modules/lodash/_objectToString.js","../node_modules/lodash/_baseGetTag.js","../node_modules/lodash/isObjectLike.js","../node_modules/lodash/isSymbol.js","../node_modules/lodash/toNumber.js","../node_modules/lodash/debounce.js","../src/components/form/fields/CurrencyConversionField.tsx","../src/common/hooks.ts"],"sourcesContent":["/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","import { ReactNode, useState, useCallback, useEffect, useRef } from 'react';\nimport { useFormContext } from 'react-hook-form';\nimport { TextField } from '@/src/components/form/fields/TextField';\nimport { useConvertCurrency } from '@/src/flows/Onboarding/api';\nimport { JSFField } from '@/src/types/remoteFlows';\nimport { useFormFields } from '@/src/context';\nimport { useDebounce } from '@/src/common/hooks';\n\ntype DescriptionWithConversionProps = {\n description: ReactNode;\n showConversion: boolean;\n targetCurrency: string;\n className: string;\n onClick: (evt: React.MouseEvent<HTMLButtonElement>) => void;\n};\n\nconst DescriptionWithConversion = ({\n description,\n showConversion,\n targetCurrency,\n className,\n onClick,\n}: DescriptionWithConversionProps) => {\n const { components } = useFormFields();\n const label = showConversion\n ? `Hide ${targetCurrency} conversion`\n : `Show ${targetCurrency} conversion`;\n\n const CustomButton = components?.button;\n return (\n <span className={className}>\n {description}{' '}\n {CustomButton ? (\n <CustomButton\n className={`${className.replace('-description', '-button')}`}\n data-type=\"inline\"\n onClick={onClick}\n >\n {label}\n </CustomButton>\n ) : (\n <button\n className={`${className.replace('-description', '-button')}`}\n onClick={onClick}\n >\n {label}\n </button>\n )}\n </span>\n );\n};\n\nexport type CurrencyConversionFieldProps = JSFField & {\n sourceCurrency: string;\n targetCurrency: string;\n conversionFieldName: string;\n conversionProperties?: {\n label?: string;\n description?: string;\n };\n useProxy?: boolean;\n classNamePrefix: string;\n};\n\nexport const CurrencyConversionField = ({\n sourceCurrency,\n targetCurrency,\n conversionFieldName,\n conversionProperties,\n classNamePrefix,\n description,\n ...props\n}: CurrencyConversionFieldProps) => {\n const [showConversion, setShowConversion] = useState(false);\n const { setValue, watch } = useFormContext();\n const fieldValue = watch(props.name);\n const isFirstRender = useRef(true);\n\n const canShowConversion =\n sourceCurrency && targetCurrency && sourceCurrency !== targetCurrency;\n\n const { mutateAsync: convertCurrency } = useConvertCurrency();\n\n useEffect(() => {\n if (isFirstRender.current) {\n isFirstRender.current = false;\n return;\n }\n\n // when source currency changes, reset the conversion field\n setValue(conversionFieldName, '');\n }, [sourceCurrency, conversionFieldName, setValue]);\n\n const convertCurrencyCallback = useCallback(\n async (\n value: string,\n fromCurrency: string,\n toCurrency: string,\n targetField: string,\n ) => {\n if (!value) return;\n\n try {\n const response = await convertCurrency({\n source_currency: fromCurrency,\n target_currency: toCurrency,\n amount: Number(value),\n });\n if (response.data?.data?.conversion_data?.target_amount) {\n const amount = response.data.data.conversion_data.target_amount;\n if (amount) {\n setValue(targetField, amount?.toString());\n }\n }\n } catch (error) {\n console.error('Error converting currency:', error);\n }\n },\n [convertCurrency, setValue],\n );\n\n const debouncedConvertCurrency = useDebounce(\n (value: string) =>\n convertCurrencyCallback(\n value,\n sourceCurrency,\n targetCurrency,\n conversionFieldName,\n ),\n 500,\n );\n const debouncedConvertCurrencyReverse = useDebounce(\n (value: string) =>\n convertCurrencyCallback(\n value,\n targetCurrency,\n sourceCurrency,\n props.name,\n ),\n 500,\n );\n\n const handleMainFieldChange = (evt: React.ChangeEvent<HTMLInputElement>) => {\n if (showConversion) {\n debouncedConvertCurrency(evt.target.value);\n }\n };\n\n const handleConversionFieldChange = (\n evt: React.ChangeEvent<HTMLInputElement>,\n ) => {\n debouncedConvertCurrencyReverse(evt.target.value);\n };\n\n const toggleConversion = (evt: React.MouseEvent<HTMLButtonElement>) => {\n evt.preventDefault();\n setShowConversion((prev) => !prev);\n\n if (!showConversion && fieldValue) {\n debouncedConvertCurrency(fieldValue);\n }\n };\n\n const extraDescription = canShowConversion ? (\n <DescriptionWithConversion\n targetCurrency={targetCurrency}\n description={description}\n showConversion={showConversion}\n className={`${classNamePrefix}-description`}\n onClick={toggleConversion}\n />\n ) : (\n description\n );\n\n return (\n <>\n <TextField\n {...props}\n additionalProps={{ currency: sourceCurrency }}\n description={extraDescription}\n type=\"text\"\n inputMode=\"decimal\"\n pattern=\"^[0-9.]*$\"\n maxLength={15}\n onChange={handleMainFieldChange}\n />\n {showConversion && (\n <TextField\n additionalProps={{ currency: targetCurrency }}\n name={conversionFieldName}\n label={conversionProperties?.label || 'Conversion'}\n description={conversionProperties?.description}\n type=\"text\"\n inputMode=\"decimal\"\n pattern=\"^[0-9.]*$\"\n maxLength={15}\n onChange={handleConversionFieldChange}\n />\n )}\n </>\n );\n};\n","import { useCallback, useEffect, useRef } from 'react';\nimport debounce from 'lodash/debounce';\n\nexport function useDebounce(\n callback: (value: string) => Promise<void>,\n delay: number,\n) {\n const callbackRef = useRef(callback);\n\n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n const debouncedFn = useRef(\n debounce((value: string) => {\n callbackRef.current(value);\n }, delay),\n ).current;\n\n return useCallback(\n (value: string) => {\n debouncedFn(value);\n },\n [debouncedFn],\n );\n}\n"],"mappings":"uNAAA,IAAAA,EAAAC,EAAA,CAAAC,GAAAC,IAAA,cAyBA,SAASC,GAASC,EAAO,CACvB,IAAIC,EAAO,OAAOD,EAClB,OAAOA,GAAS,OAASC,GAAQ,UAAYA,GAAQ,WACvD,CAHSC,EAAAH,GAAA,YAKTD,EAAO,QAAUC,KC9BjB,IAAAI,EAAAC,EAAA,CAAAC,GAAAC,IAAA,cACA,IAAIC,GAAa,OAAO,QAAU,UAAY,QAAU,OAAO,SAAW,QAAU,OAEpFD,EAAO,QAAUC,KCHjB,IAAAC,EAAAC,EAAA,CAAAC,GAAAC,IAAA,kBAAIC,GAAa,IAGbC,GAAW,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2B,EAAkCD,EACrCR,GACCF,EACEE,EACA3B,EACAQ,EACAI,EAAM,IACR,EACF,GACF,EAEMyB,EAAwBxC,EAACyC,GAA6C,CACtEvC,GACFmC,EAAyBI,EAAI,OAAO,KAAK,CAE7C,EAJ8B,yBAMxBC,EAA8B1C,EAClCyC,GACG,CACHF,EAAgCE,EAAI,OAAO,KAAK,CAClD,EAJoC,+BAM9BE,EAAmB3C,EAACyC,GAA6C,CACrEA,EAAI,eAAe,EACnBzB,EAAmB4B,GAAS,CAACA,CAAI,EAE7B,CAAC1C,GAAkBmB,GACrBgB,EAAyBhB,CAAU,CAEvC,EAPyB,oBASnBwB,EAAmBrB,EACvB3B,EAACE,GAAA,CACC,eAAgBI,EAChB,YAAaF,EACb,eAAgBC,EAChB,UAAW,GAAGY,CAAe,eAC7B,QAAS6B,EACX,EAEA1C,EAGF,OACEH,GAAAF,GAAA,CACE,UAAAC,EAACiD,EAAA,CACE,GAAG/B,EACJ,gBAAiB,CAAE,SAAUJ,CAAe,EAC5C,YAAakC,EACb,KAAK,OACL,UAAU,UACV,QAAQ,YACR,UAAW,GACX,SAAUL,EACZ,EACCtC,GACCL,EAACiD,EAAA,CACC,gBAAiB,CAAE,SAAU3C,CAAe,EAC5C,KAAMS,EACN,MAAOC,GAAsB,OAAS,aACtC,YAAaA,GAAsB,YACnC,KAAK,OACL,UAAU,UACV,QAAQ,YACR,UAAW,GACX,SAAU6B,EACZ,GAEJ,CAEJ,EA1IuC","names":["require_isObject","__commonJSMin","exports","module","isObject","value","type","__name","require_freeGlobal","__commonJSMin","exports","module","freeGlobal","require_root","__commonJSMin","exports","module","freeGlobal","freeSelf","root","require_now","__commonJSMin","exports","module","root","now","__name","require_trimmedEndIndex","__commonJSMin","exports","module","reWhitespace","trimmedEndIndex","string","index","__name","require_baseTrim","__commonJSMin","exports","module","trimmedEndIndex","reTrimStart","baseTrim","string","__name","require_Symbol","__commonJSMin","exports","module","root","Symbol","require_getRawTag","__commonJSMin","exports","module","Symbol","objectProto","hasOwnProperty","nativeObjectToString","symToStringTag","getRawTag","value","isOwn","tag","unmasked","result","__name","require_objectToString","__commonJSMin","exports","module","objectProto","nativeObjectToString","objectToString","value","__name","require_baseGetTag","__commonJSMin","exports","module","Symbol","getRawTag","objectToString","nullTag","undefinedTag","symToStringTag","baseGetTag","value","__name","require_isObjectLike","__commonJSMin","exports","module","isObjectLike","value","__name","require_isSymbol","__commonJSMin","exports","module","baseGetTag","isObjectLike","symbolTag","isSymbol","value","__name","require_toNumber","__commonJSMin","exports","module","baseTrim","isObject","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","value","other","isBinary","__name","require_debounce","__commonJSMin","exports","module","isObject","now","toNumber","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","thisArg","__name","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","useState","useCallback","useEffect","useRef","import_debounce","useCallback","useEffect","useRef","useDebounce","callback","delay","callbackRef","useRef","useEffect","debouncedFn","debounce","value","useCallback","__name","Fragment","jsx","jsxs","DescriptionWithConversion","__name","description","showConversion","targetCurrency","className","onClick","components","useFormFields","label","CustomButton","CurrencyConversionField","sourceCurrency","conversionFieldName","conversionProperties","classNamePrefix","props","setShowConversion","useState","setValue","watch","useFormContext","fieldValue","isFirstRender","useRef","canShowConversion","convertCurrency","useConvertCurrency","useEffect","convertCurrencyCallback","useCallback","value","fromCurrency","toCurrency","targetField","response","amount","error","debouncedConvertCurrency","useDebounce","debouncedConvertCurrencyReverse","handleMainFieldChange","evt","handleConversionFieldChange","toggleConversion","prev","extraDescription","TextField"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-TC3SWPEN.js";import{a as e}from"./chunk-P37U34EQ.js";import*as t from"@radix-ui/react-tooltip";import{jsx as i,jsxs as d}from"react/jsx-runtime";function n({delayDuration:o=0,...r}){return i(t.Provider,{"data-slot":"tooltip-provider",delayDuration:o,...r})}e(n,"TooltipProvider");function s({...o}){return i(n,{children:i(t.Root,{"data-slot":"tooltip",...o})})}e(s,"Tooltip");function f({...o}){return i(t.Trigger,{"data-slot":"tooltip-trigger",...o})}e(f,"TooltipTrigger");function P({className:o,sideOffset:r=0,children:p,...l}){return i(t.Portal,{children:d(t.Content,{"data-slot":"tooltip-content",sideOffset:r,className:a("bg-primary text-primary-foreground shadow-md border animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-fit rounded-md px-3 py-1.5 text-xs text-balance",o),...l,children:[p,i(t.Arrow,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}e(P,"TooltipContent");export{n as a,s as b,f as c,P as d};
|
|
2
|
+
//# sourceMappingURL=chunk-ZOTFG7GS.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-HS3TP43Z.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentBack};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentBack.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-HUEFMP54.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};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentConfirmationForm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-YD3IHRVA.js";import"../../chunk-YECC5GAT.js";import"../../chunk-SX5W3CBP.js";import"../../chunk-VTNGEN34.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-Z4FTX74F.js";import"../../chunk-276MJCIE.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-HS3TP43Z.js";import"../../chunk-HUEFMP54.js";import"../../chunk-5I2GCSAL.js";import"../../chunk-SYYKU72Z.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-CFIJKJXD.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-5I2GCSAL.js";import"../../chunk-SYYKU72Z.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-CFIJKJXD.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{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-YECC5GAT.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentSubmit};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentSubmit.js.map
|
|
@@ -2,9 +2,12 @@ import { S as SuccessResponse, E as ErrorResponse } from '../../mutations-B6HWH-
|
|
|
2
2
|
import { C as ContractAmendmentAutomatableResponse, P as PostAutomatableContractAmendmentError, a as ContractAmendmentResponse, b as PostCreateContractAmendmentError } from '../../types.gen-DSJsKiNm.js';
|
|
3
3
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
4
4
|
import * as react from 'react';
|
|
5
|
+
import '../../remoteFlows-B-p1H61n.js';
|
|
5
6
|
import * as react_hook_form from 'react-hook-form';
|
|
6
7
|
import { useContractAmendment } from './hooks.js';
|
|
7
8
|
import { Step } from '../useStepState.js';
|
|
9
|
+
import 'yup';
|
|
10
|
+
import '../../types-Zg1n_9wh.js';
|
|
8
11
|
import './types.js';
|
|
9
12
|
import '../types.js';
|
|
10
13
|
|
|
@@ -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-YD3IHRVA.js";import{a as c}from"../../chunk-YECC5GAT.js";import{a as d}from"../../chunk-SX5W3CBP.js";import"../../chunk-VTNGEN34.js";import"../../chunk-QW4JPW6J.js";import"../../chunk-Z4FTX74F.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-5I2GCSAL.js";import"../../chunk-SYYKU72Z.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-CFIJKJXD.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-KKM4IXYC.js";import"../../chunk-DYB3RWP7.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorDisclaimer};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorDisclaimer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-6WFPF53B.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-LOBYJTDX.js";import"../../chunk-S4WAMYEE.js";import"../../chunk-UPRUP24B.js";import"../../chunk-ZKALTI3E.js";import"../../chunk-X36OBDKD.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-MC6FNME3.js";import"../../chunk-PWUYHFON.js";import"../../chunk-276MJCIE.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorFlow};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorFlow.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-VFR5R7GS.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-SYYKU72Z.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{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-LU6YNL6P.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorResetButton};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorResetButton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-HRIDANZ6.js";import"../../chunk-KSHK3ZPX.js";import"../../chunk-WZSGDTVV.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as CostCalculatorSubmitButton};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorSubmitButton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-CVXZNBHC.js";import"../../../chunk-ZOTFG7GS.js";import"../../../chunk-NTJN7NCK.js";import"../../../chunk-WZSGDTVV.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorBenefitsBreakdown};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorBenefitsBreakdown.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-3TAUIOLW.js";import"../../../chunk-ZOTFG7GS.js";import"../../../chunk-NTJN7NCK.js";import"../../../chunk-WZSGDTVV.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorContributionsBreakdown};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorContributionsBreakdown.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-MIALHORP.js";import"../../../chunk-NTJN7NCK.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorGrossSalary};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorGrossSalary.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-L6CLZL2D.js";import"../../../chunk-CVXZNBHC.js";import"../../../chunk-3TAUIOLW.js";import"../../../chunk-ZOTFG7GS.js";import"../../../chunk-MIALHORP.js";import"../../../chunk-NTJN7NCK.js";import"../../../chunk-2IOIRPXX.js";import"../../../chunk-BHXNRWYC.js";import"../../../chunk-OYI5OCMY.js";import"../../../chunk-WZSGDTVV.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorResults};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorResults.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l,b as n,c as d,e as u}from"../../../chunk-
|
|
1
|
+
import{a as l,b as n,c as d,e as u}from"../../../chunk-2IOIRPXX.js";import{b as i}from"../../../chunk-TC3SWPEN.js";import{a as s}from"../../../chunk-P37U34EQ.js";import{Cell as c,Pie as C,PieChart as p,ResponsiveContainer as f,Tooltip as v}from"recharts";import{jsx as e,jsxs as a}from"react/jsx-runtime";function y({chartData:t,currency:m}){return a(l,{className:"rounded-lg RemoteFlows__CostCalculatorResults_CostDistribution",children:[e(n,{className:"pb-2",children:e(d,{children:"Cost Distribution"})}),a(u,{children:[e("div",{className:"h-[300px] flex items-center justify-center",children:e(f,{width:"100%",height:"100%",children:a(p,{children:[e(C,{data:t,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",labelLine:!1,children:t.map((r,o)=>e(c,{fill:r.color},`cell-${o}`))}),e(v,{formatter:r=>i(Number(r),m),contentStyle:{borderRadius:"var(--radius-md)",border:"1px solid var(--color-border)",fontSize:"var(--text-xs)"}})]})})}),e("div",{className:"mt-4 space-y-2",children:t.map((r,o)=>a("div",{className:"flex items-center gap-2",children:[e("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:r.color}}),e("span",{className:"text-sm",children:r.name})]},o))})]})]})}s(y,"CostCalculatorResultsChart");export{y as default};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorResultsChart.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-BHXNRWYC.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as CostCalculatorTotalCost};
|
|
2
2
|
//# sourceMappingURL=CostCalculatorTotalCost.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-S4WAMYEE.js";import"../../../chunk-ZKALTI3E.js";import"../../../chunk-X36OBDKD.js";import"../../../chunk-WVJDCDGZ.js";import"../../../chunk-PWUYHFON.js";import"../../../chunk-276MJCIE.js";import"../../../chunk-MPMOHDZP.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-STEO7MS2.js";import"../../../chunk-CNYSTJVL.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as SalaryField};
|
|
2
2
|
//# sourceMappingURL=SalaryField.js.map
|
|
@@ -3,7 +3,7 @@ import { useCostCalculator, EstimationError } from './hooks.js';
|
|
|
3
3
|
import { CostCalculatorEstimationFormValues, CostCalculatorEstimationSubmitValues } from './types.js';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { c as CostCalculatorEstimateResponse } from '../../types.gen-DSJsKiNm.js';
|
|
6
|
-
import { $ as $TSFixMe } from '../../remoteFlows-
|
|
6
|
+
import { $ as $TSFixMe } from '../../remoteFlows-B-p1H61n.js';
|
|
7
7
|
import * as yup from 'yup';
|
|
8
8
|
import { UseFormReturn } from 'react-hook-form';
|
|
9
9
|
import '@remoteoss/json-schema-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as a,d as b}from"../../chunk-
|
|
1
|
+
import{c as a,d as b}from"../../chunk-LOBYJTDX.js";import"../../chunk-S4WAMYEE.js";import"../../chunk-UPRUP24B.js";import"../../chunk-ZKALTI3E.js";import"../../chunk-X36OBDKD.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-MC6FNME3.js";import"../../chunk-PWUYHFON.js";import"../../chunk-276MJCIE.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{a as defaultEstimationOptions,b as useCostCalculator};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-YJXRJTOH.js";import{a as j}from"../../chunk-
|
|
1
|
+
import"../../chunk-YJXRJTOH.js";import{a as j}from"../../chunk-L6CLZL2D.js";import"../../chunk-CVXZNBHC.js";import"../../chunk-3TAUIOLW.js";import"../../chunk-ZOTFG7GS.js";import"../../chunk-MIALHORP.js";import"../../chunk-NTJN7NCK.js";import"../../chunk-2IOIRPXX.js";import"../../chunk-BHXNRWYC.js";import{a as e}from"../../chunk-VFR5R7GS.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-6WFPF53B.js";import"../../chunk-KSHK3ZPX.js";import{b as a,d as c}from"../../chunk-LOBYJTDX.js";import"../../chunk-S4WAMYEE.js";import"../../chunk-UPRUP24B.js";import"../../chunk-ZKALTI3E.js";import"../../chunk-X36OBDKD.js";import"../../chunk-WVJDCDGZ.js";import{d as b}from"../../chunk-MC6FNME3.js";import"../../chunk-PWUYHFON.js";import"../../chunk-276MJCIE.js";import"../../chunk-SYYKU72Z.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-CFIJKJXD.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,5 +1,5 @@
|
|
|
1
1
|
import { f as CostCalculatorEstimateParams } from '../../types.gen-DSJsKiNm.js';
|
|
2
|
-
import { $ as $TSFixMe } from '../../remoteFlows-
|
|
2
|
+
import { $ as $TSFixMe } from '../../remoteFlows-B-p1H61n.js';
|
|
3
3
|
import { AnyObjectSchema } from 'yup';
|
|
4
4
|
import { CostCalculatorVersion } from './hooks.js';
|
|
5
5
|
import { CostCalculatorEstimationSubmitValues, CostCalculatorEstimationOptions } from './types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-LOBYJTDX.js";import"../../chunk-S4WAMYEE.js";import"../../chunk-UPRUP24B.js";import"../../chunk-ZKALTI3E.js";import"../../chunk-X36OBDKD.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-MC6FNME3.js";import"../../chunk-PWUYHFON.js";import"../../chunk-276MJCIE.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-MPMOHDZP.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-STEO7MS2.js";import"../../chunk-CNYSTJVL.js";import"../../chunk-TC3SWPEN.js";import"../../chunk-P37U34EQ.js";export{b as buildPayload,a as buildValidationSchema};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-BFZQYTQN.js";import"../../chunk-7TOZZQQJ.js";import"../../chunk-VCYSWPLV.js";import"../../chunk-GTXQK2J6.js";import"../../chunk-YDW7CPPR.js";import"../../chunk-PWWX66GV.js";import"../../chunk-DBRBPYIF.js";import"../../chunk-5RPT35EL.js";import"../../chunk-5NCRPBBP.js";import"../../chunk-R4PWQPR6.js";import"../../chunk-KFVOK5X5.js";import"../../chunk-PGWKJ6FK.js";import"../../chunk-DIF7GZA2.js";import"../../chunk-2YGGLGBG.js";import"../../chunk-XIPPSRO6.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-SYYKU72Z.js";import"../../chunk-OYI5OCMY.js";import"../../chunk-CFIJKJXD.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
|
|
@@ -3,7 +3,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
|
|
|
3
3
|
import { i as Employment, j as Company, S as SuccessResponse, k as PostInviteEmploymentInvitationError, l as PostCreateRiskReserveError, m as EmploymentCreationResponse, n as PostCreateEmployment2Error, o as EmploymentCreateParams, p as EmploymentResponse, q as PatchUpdateEmployment2Error, r as EmploymentFullParams, s as PutUpdateBenefitOfferError, U as UnifiedEmploymentUpsertBenefitOffersRequest, t as MagicLinkResponse, u as UnprocessableEntityResponse, v as MagicLinkParams, w as ConvertCurrencyResponse, x as PostConvertCurrencyConverterError, y as ConvertCurrencyParams, z as PostCreateContractEligibilityError, A as CreateContractEligibilityParams } from '../../types.gen-DSJsKiNm.js';
|
|
4
4
|
import { OnboardingFlowParams } from './types.js';
|
|
5
5
|
import { JSONSchemaFormType, FlowOptions } from '../types.js';
|
|
6
|
-
import { J as JSFFieldset } from '../../remoteFlows-
|
|
6
|
+
import { J as JSFFieldset } from '../../remoteFlows-B-p1H61n.js';
|
|
7
7
|
import { FieldValues } from 'react-hook-form';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'yup';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-2YGGLGBG.js";import"../../../chunk-ZKALTI3E.js";import"../../../chunk-X36OBDKD.js";import"../../../chunk-WVJDCDGZ.js";import"../../../chunk-PWUYHFON.js";import"../../../chunk-276MJCIE.js";import"../../../chunk-MPMOHDZP.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-STEO7MS2.js";import"../../../chunk-CNYSTJVL.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as AnnualGrossSalary};
|
|
2
2
|
//# sourceMappingURL=AnnualGrossSalary.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-GTXQK2J6.js";import"../../../chunk-5RPT35EL.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-SYYKU72Z.js";import"../../../chunk-OYI5OCMY.js";import"../../../chunk-CFIJKJXD.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,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Components } from '../../../remoteFlows-
|
|
2
|
+
import { C as Components } from '../../../remoteFlows-B-p1H61n.js';
|
|
3
3
|
import { S as SuccessResponse } from '../../../types.gen-DSJsKiNm.js';
|
|
4
4
|
import { BenefitsFormPayload } from '../types.js';
|
|
5
5
|
import { N as NormalizedFieldError } from '../../../mutations-B6HWH-rZ.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-YDW7CPPR.js";import"../../../chunk-5RPT35EL.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-SYYKU72Z.js";import"../../../chunk-OYI5OCMY.js";import"../../../chunk-CFIJKJXD.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-PWWX66GV.js";import"../../../chunk-5RPT35EL.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-SYYKU72Z.js";import"../../../chunk-OYI5OCMY.js";import"../../../chunk-CFIJKJXD.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-DBRBPYIF.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-WZSGDTVV.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as OnboardingBack};
|
|
2
2
|
//# sourceMappingURL=OnboardingBack.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Fields } from '@remoteoss/json-schema-form';
|
|
3
3
|
import { BasicInformationFormPayload, BenefitsFormPayload, ContractDetailsFormPayload } from '../types.js';
|
|
4
|
-
import { C as Components } from '../../../remoteFlows-
|
|
4
|
+
import { C as Components } from '../../../remoteFlows-B-p1H61n.js';
|
|
5
5
|
import '../../../types.gen-DSJsKiNm.js';
|
|
6
6
|
import '../../types.js';
|
|
7
7
|
import 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-5RPT35EL.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-SYYKU72Z.js";import"../../../chunk-OYI5OCMY.js";import"../../../chunk-CFIJKJXD.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-5NCRPBBP.js";import"../../../chunk-PGWKJ6FK.js";import"../../../chunk-X36OBDKD.js";import"../../../chunk-WVJDCDGZ.js";import"../../../chunk-PWUYHFON.js";import"../../../chunk-QW4JPW6J.js";import"../../../chunk-276MJCIE.js";import"../../../chunk-WZSGDTVV.js";import"../../../chunk-3ZWDIEEM.js";import"../../../chunk-CNYSTJVL.js";import"../../../chunk-TC3SWPEN.js";import"../../../chunk-P37U34EQ.js";export{a as OnboardingInvite};
|
|
2
2
|
//# sourceMappingURL=OnboardingInvite.js.map
|