rbro-tat-uds 1.5.45 → 1.5.46

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/index.cjs.js CHANGED
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var M2;function E0(){return M2||(M2=1,process.env.NODE_ENV!=="production"&&function(){var e=C,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b=Symbol.iterator,L="@@iterator";function v(f){if(f===null||typeof f!="object")return null;var Z=b&&f[b]||f[L];return typeof Z=="function"?Z:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(f){{for(var Z=arguments.length,P=new Array(Z>1?Z-1:0),N=1;N<Z;N++)P[N-1]=arguments[N];A("error",f,P)}}function A(f,Z,P){{var N=E.ReactDebugCurrentFrame,Q=N.getStackAddendum();Q!==""&&(Z+="%s",P=P.concat([Q]));var i1=P.map(function(J){return String(J)});i1.unshift("Warning: "+Z),Function.prototype.apply.call(console[f],console,i1)}}var M=!1,$=!1,D=!1,k=!1,F=!1,B;B=Symbol.for("react.module.reference");function W(f){return!!(typeof f=="string"||typeof f=="function"||f===n||f===s||F||f===l||f===x||f===y||k||f===w||M||$||D||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===u||f.$$typeof===d||f.$$typeof===c||f.$$typeof===p||f.$$typeof===B||f.getModuleId!==void 0))}function g(f,Z,P){var N=f.displayName;if(N)return N;var Q=Z.displayName||Z.name||"";return Q!==""?P+"("+Q+")":P}function z(f){return f.displayName||"Context"}function j(f){if(f==null)return null;if(typeof f.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case n:return"Fragment";case a:return"Portal";case s:return"Profiler";case l:return"StrictMode";case x:return"Suspense";case y:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case c:var Z=f;return z(Z)+".Consumer";case d:var P=f;return z(P._context)+".Provider";case p:return g(f,f.render,"ForwardRef");case u:var N=f.displayName||null;return N!==null?N:j(f.type)||"Memo";case m:{var Q=f,i1=Q._payload,J=Q._init;try{return j(J(i1))}catch{return null}}}return null}var _=Object.assign,H=0,R,Y,T,I,r1,o1,t1;function q(){}q.__reactDisabledLog=!0;function K(){{if(H===0){R=console.log,Y=console.info,T=console.warn,I=console.error,r1=console.group,o1=console.groupCollapsed,t1=console.groupEnd;var f={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}H++}}function X(){{if(H--,H===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},f,{value:R}),info:_({},f,{value:Y}),warn:_({},f,{value:T}),error:_({},f,{value:I}),group:_({},f,{value:r1}),groupCollapsed:_({},f,{value:o1}),groupEnd:_({},f,{value:t1})})}H<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var a1=E.ReactCurrentDispatcher,f1;function s1(f,Z,P){{if(f1===void 0)try{throw Error()}catch(Q){var N=Q.stack.trim().match(/\n( *(at )?)/);f1=N&&N[1]||""}return`
17
+ */var M2;function E0(){return M2||(M2=1,process.env.NODE_ENV!=="production"&&function(){var e=C,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b=Symbol.iterator,L="@@iterator";function v(f){if(f===null||typeof f!="object")return null;var Z=b&&f[b]||f[L];return typeof Z=="function"?Z:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(f){{for(var Z=arguments.length,P=new Array(Z>1?Z-1:0),N=1;N<Z;N++)P[N-1]=arguments[N];A("error",f,P)}}function A(f,Z,P){{var N=E.ReactDebugCurrentFrame,Q=N.getStackAddendum();Q!==""&&(Z+="%s",P=P.concat([Q]));var i1=P.map(function(J){return String(J)});i1.unshift("Warning: "+Z),Function.prototype.apply.call(console[f],console,i1)}}var M=!1,$=!1,D=!1,k=!1,R=!1,B;B=Symbol.for("react.module.reference");function W(f){return!!(typeof f=="string"||typeof f=="function"||f===n||f===s||R||f===l||f===x||f===y||k||f===w||M||$||D||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===u||f.$$typeof===d||f.$$typeof===c||f.$$typeof===p||f.$$typeof===B||f.getModuleId!==void 0))}function g(f,Z,P){var N=f.displayName;if(N)return N;var Q=Z.displayName||Z.name||"";return Q!==""?P+"("+Q+")":P}function z(f){return f.displayName||"Context"}function j(f){if(f==null)return null;if(typeof f.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case n:return"Fragment";case a:return"Portal";case s:return"Profiler";case l:return"StrictMode";case x:return"Suspense";case y:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case c:var Z=f;return z(Z)+".Consumer";case d:var P=f;return z(P._context)+".Provider";case p:return g(f,f.render,"ForwardRef");case u:var N=f.displayName||null;return N!==null?N:j(f.type)||"Memo";case m:{var Q=f,i1=Q._payload,J=Q._init;try{return j(J(i1))}catch{return null}}}return null}var _=Object.assign,H=0,F,Y,T,I,r1,o1,t1;function q(){}q.__reactDisabledLog=!0;function K(){{if(H===0){F=console.log,Y=console.info,T=console.warn,I=console.error,r1=console.group,o1=console.groupCollapsed,t1=console.groupEnd;var f={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}H++}}function X(){{if(H--,H===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},f,{value:F}),info:_({},f,{value:Y}),warn:_({},f,{value:T}),error:_({},f,{value:I}),group:_({},f,{value:r1}),groupCollapsed:_({},f,{value:o1}),groupEnd:_({},f,{value:t1})})}H<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var a1=E.ReactCurrentDispatcher,f1;function s1(f,Z,P){{if(f1===void 0)try{throw Error()}catch(Q){var N=Q.stack.trim().match(/\n( *(at )?)/);f1=N&&N[1]||""}return`
18
18
  `+f1+f}}var x1=!1,w1;{var S1=typeof WeakMap=="function"?WeakMap:Map;w1=new S1}function m1(f,Z){if(!f||x1)return"";{var P=w1.get(f);if(P!==void 0)return P}var N;x1=!0;var Q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i1;i1=a1.current,a1.current=null,K();try{if(Z){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(k1){N=k1}Reflect.construct(f,[],J)}else{try{J.call()}catch(k1){N=k1}f.call(J.prototype)}}else{try{throw Error()}catch(k1){N=k1}f()}}catch(k1){if(k1&&N&&typeof k1.stack=="string"){for(var U=k1.stack.split(`
19
19
  `),C1=N.stack.split(`
20
20
  `),l1=U.length-1,c1=C1.length-1;l1>=1&&c1>=0&&U[l1]!==C1[c1];)c1--;for(;l1>=1&&c1>=0;l1--,c1--)if(U[l1]!==C1[c1]){if(l1!==1||c1!==1)do if(l1--,c1--,c1<0||U[l1]!==C1[c1]){var y1=`
@@ -66,7 +66,7 @@ as for instance in your render method then you may be running into this limitati
66
66
 
67
67
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
68
68
  Has styled-components' style tag been unmounted or altered by another script?
69
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function p3(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var a=e[0],n=[],l=1,s=e.length;l<s;l+=1)n.push(e[l]);return n.forEach(function(d){a=a.replace(/%[a-z]/,d)}),a}function J1(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(r.length>0?" Args: ".concat(r.join(", ")):"")):new Error(p3.apply(void 0,F1([f3[e]],r,!1)).trim())}var u3=function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}return e.prototype.indexOfGroup=function(r){for(var a=0,n=0;n<r;n++)a+=this.groupSizes[n];return a},e.prototype.insertRules=function(r,a){if(r>=this.groupSizes.length){for(var n=this.groupSizes,l=n.length,s=l;r>=s;)if((s<<=1)<0)throw J1(16,"".concat(r));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var d=l;d<s;d++)this.groupSizes[d]=0}for(var c=this.indexOfGroup(r+1),p=(d=0,a.length);d<p;d++)this.tag.insertRule(c,a[d])&&(this.groupSizes[r]++,c++)},e.prototype.clearGroup=function(r){if(r<this.length){var a=this.groupSizes[r],n=this.indexOfGroup(r),l=n+a;this.groupSizes[r]=0;for(var s=n;s<l;s++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(r){var a="";if(r>=this.length||this.groupSizes[r]===0)return a;for(var n=this.groupSizes[r],l=this.indexOfGroup(r),s=l+n,d=l;d<s;d++)a+="".concat(this.tag.getRule(d)).concat(n2);return a},e}(),Ce=new Map,ye=new Map,ge=1,ce=function(e){if(Ce.has(e))return Ce.get(e);for(;ye.has(ge);)ge++;var r=ge++;if(process.env.NODE_ENV!=="production"&&((0|r)<0||r>1073741824))throw J1(16,"".concat(r));return Ce.set(e,r),ye.set(r,e),r},C3=function(e,r){ge=r+1,Ce.set(e,r),ye.set(r,e)},g3="style[".concat(z1,"][").concat(xt,'="').concat(ke,'"]'),x3=new RegExp("^".concat(z1,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),m3=function(e,r,a){for(var n,l=a.split(","),s=0,d=l.length;s<d;s++)(n=l[s])&&e.registerName(r,n)},y3=function(e,r){for(var a,n=((a=r.textContent)!==null&&a!==void 0?a:"").split(n2),l=[],s=0,d=n.length;s<d;s++){var c=n[s].trim();if(c){var p=c.match(x3);if(p){var x=0|parseInt(p[1],10),y=p[2];x!==0&&(C3(y,x),m3(e,y,p[3]),e.getTag().insertRules(x,l)),l.length=0}else l.push(c)}}};function _3(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jt=function(e){var r=document.head,a=e||r,n=document.createElement("style"),l=function(c){var p=Array.from(c.querySelectorAll("style[".concat(z1,"]")));return p[p.length-1]}(a),s=l!==void 0?l.nextSibling:null;n.setAttribute(z1,gt),n.setAttribute(xt,ke);var d=_3();return d&&n.setAttribute("nonce",d),a.insertBefore(n,s),n},v3=function(){function e(r){this.element=jt(r),this.element.appendChild(document.createTextNode("")),this.sheet=function(a){if(a.sheet)return a.sheet;for(var n=document.styleSheets,l=0,s=n.length;l<s;l++){var d=n[l];if(d.ownerNode===a)return d}throw J1(17)}(this.element),this.length=0}return e.prototype.insertRule=function(r,a){try{return this.sheet.insertRule(a,r),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},e.prototype.getRule=function(r){var a=this.sheet.cssRules[r];return a&&a.cssText?a.cssText:""},e}(),b3=function(){function e(r){this.element=jt(r),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(r,a){if(r<=this.length&&r>=0){var n=document.createTextNode(a);return this.element.insertBefore(n,this.nodes[r]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},e.prototype.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},e}(),w3=function(){function e(r){this.rules=[],this.length=0}return e.prototype.insertRule=function(r,a){return r<=this.length&&(this.rules.splice(r,0,a),this.length++,!0)},e.prototype.deleteRule=function(r){this.rules.splice(r,1),this.length--},e.prototype.getRule=function(r){return r<this.length?this.rules[r]:""},e}(),F2=o2,$3={isServer:!o2,useCSSOMInjection:!Q0},_e=function(){function e(r,a,n){r===void 0&&(r=I1),a===void 0&&(a={});var l=this;this.options=u1(u1({},$3),r),this.gs=a,this.names=new Map(n),this.server=!!r.isServer,!this.server&&o2&&F2&&(F2=!1,function(s){for(var d=document.querySelectorAll(g3),c=0,p=d.length;c<p;c++){var x=d[c];x&&x.getAttribute(z1)!==gt&&(y3(s,x),x.parentNode&&x.parentNode.removeChild(x))}}(this)),s2(this,function(){return function(s){for(var d=s.getTag(),c=d.length,p="",x=function(u){var m=function(E){return ye.get(E)}(u);if(m===void 0)return"continue";var w=s.names.get(m),b=d.getGroup(u);if(w===void 0||b.length===0)return"continue";var L="".concat(z1,".g").concat(u,'[id="').concat(m,'"]'),v="";w!==void 0&&w.forEach(function(E){E.length>0&&(v+="".concat(E,","))}),p+="".concat(b).concat(L,'{content:"').concat(v,'"}').concat(n2)},y=0;y<c;y++)x(y);return p}(l)})}return e.registerId=function(r){return ce(r)},e.prototype.reconstructWithOptions=function(r,a){return a===void 0&&(a=!0),new e(u1(u1({},this.options),r),this.gs,a&&this.names||void 0)},e.prototype.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(r=function(a){var n=a.useCSSOMInjection,l=a.target;return a.isServer?new w3(l):n?new v3(l):new b3(l)}(this.options),new u3(r)));var r},e.prototype.hasNameForId=function(r,a){return this.names.has(r)&&this.names.get(r).has(a)},e.prototype.registerName=function(r,a){if(ce(r),this.names.has(r))this.names.get(r).add(a);else{var n=new Set;n.add(a),this.names.set(r,n)}},e.prototype.insertRules=function(r,a,n){this.registerName(r,a),this.getTag().insertRules(ce(r),n)},e.prototype.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},e.prototype.clearRules=function(r){this.getTag().clearGroup(ce(r)),this.clearNames(r)},e.prototype.clearTag=function(){this.tag=void 0},e}(),L3=/&/g,k3=/^\s*\/\/.*$/gm;function St(e,r){return e.map(function(a){return a.type==="rule"&&(a.value="".concat(r," ").concat(a.value),a.value=a.value.replaceAll(",",",".concat(r," ")),a.props=a.props.map(function(n){return"".concat(r," ").concat(n)})),Array.isArray(a.children)&&a.type!=="@keyframes"&&(a.children=St(a.children,r)),a})}function M3(e){var r,a,n,l=I1,s=l.options,d=s===void 0?I1:s,c=l.plugins,p=c===void 0?Me:c,x=function(m,w,b){return b.startsWith(a)&&b.endsWith(a)&&b.replaceAll(a,"").length>0?".".concat(r):m},y=p.slice();y.push(function(m){m.type===be&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(L3,a).replace(n,x))}),d.prefix&&y.push(K0),y.push(U0);var u=function(m,w,b,L){w===void 0&&(w=""),b===void 0&&(b=""),L===void 0&&(L="&"),r=L,a=w,n=new RegExp("\\".concat(a,"\\b"),"g");var v=m.replace(k3,""),E=G0(b||w?"".concat(b," ").concat(w," { ").concat(v," }"):v);d.namespace&&(E=St(E,d.namespace));var S=[];return me(E,J0(y.concat(q0(function(A){return S.push(A)})))),S};return u.hash=p.length?p.reduce(function(m,w){return w.name||J1(15),Z1(m,w.name)},_t).toString():"",u}var j3=new _e,Ke=M3(),Et=C.createContext({shouldForwardProp:void 0,styleSheet:j3,stylis:Ke});Et.Consumer;C.createContext(void 0);function Xe(){return C.useContext(Et)}var z2=function(){function e(r,a){var n=this;this.inject=function(l,s){s===void 0&&(s=Ke);var d=n.name+s.hash;l.hasNameForId(n.id,d)||l.insertRules(n.id,d,s(n.rules,d,"@keyframes"))},this.name=r,this.id="sc-keyframes-".concat(r),this.rules=a,s2(this,function(){throw J1(12,String(n.name))})}return e.prototype.getName=function(r){return r===void 0&&(r=Ke),this.name+r.hash},e}(),S3=function(e){return e>="A"&&e<="Z"};function B2(e){for(var r="",a=0;a<e.length;a++){var n=e[a];if(a===1&&n==="-"&&e[0]==="-")return e;S3(n)?r+="-"+n.toLowerCase():r+=n}return r.startsWith("ms-")?"-"+r:r}var Ht=function(e){return e==null||e===!1||e===""},Dt=function(e){var r,a,n=[];for(var l in e){var s=e[l];e.hasOwnProperty(l)&&!Ht(s)&&(Array.isArray(s)&&s.isCss||G1(s)?n.push("".concat(B2(l),":"),s,";"):Y1(s)?n.push.apply(n,F1(F1(["".concat(l," {")],Dt(s),!1),["}"],!1)):n.push("".concat(B2(l),": ").concat((r=l,(a=s)==null||typeof a=="boolean"||a===""?"":typeof a!="number"||a===0||r in X0||r.startsWith("--")?String(a).trim():"".concat(a,"px")),";")))}return n};function V1(e,r,a,n){if(Ht(e))return[];if(l2(e))return[".".concat(e.styledComponentId)];if(G1(e)){if(!G1(s=e)||s.prototype&&s.prototype.isReactComponent||!r)return[e];var l=e(r);return process.env.NODE_ENV==="production"||typeof l!="object"||Array.isArray(l)||l instanceof z2||Y1(l)||l===null||console.error("".concat(wt(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),V1(l,r,a,n)}var s;return e instanceof z2?a?(e.inject(a,n),[e.getName(n)]):[e]:Y1(e)?Dt(e):Array.isArray(e)?Array.prototype.concat.apply(Me,e.map(function(d){return V1(d,r,a,n)})):[e.toString()]}function Vt(e){for(var r=0;r<e.length;r+=1){var a=e[r];if(G1(a)&&!l2(a))return!1}return!0}var E3=vt(ke),H3=function(){function e(r,a,n){this.rules=r,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Vt(r),this.componentId=a,this.baseHash=Z1(E3,a),this.baseStyle=n,_e.registerId(a)}return e.prototype.generateAndInjectStyles=function(r,a,n){var l=this.baseStyle?this.baseStyle.generateAndInjectStyles(r,a,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&a.hasNameForId(this.componentId,this.staticRulesId))l=A1(l,this.staticRulesId);else{var s=Je(V1(this.rules,r,a,n)),d=Ue(Z1(this.baseHash,s)>>>0);if(!a.hasNameForId(this.componentId,d)){var c=n(s,".".concat(d),void 0,this.componentId);a.insertRules(this.componentId,d,c)}l=A1(l,d),this.staticRulesId=d}else{for(var p=Z1(this.baseHash,n.hash),x="",y=0;y<this.rules.length;y++){var u=this.rules[y];if(typeof u=="string")x+=u,process.env.NODE_ENV!=="production"&&(p=Z1(p,u));else if(u){var m=Je(V1(u,r,a,n));p=Z1(p,m+y),x+=m}}if(x){var w=Ue(p>>>0);a.hasNameForId(this.componentId,w)||a.insertRules(this.componentId,w,n(x,".".concat(w),void 0,this.componentId)),l=A1(l,w)}}return l},e}(),c2=C.createContext(void 0);c2.Consumer;var ze={},P2=new Set;function D3(e,r,a){var n=l2(e),l=e,s=!Fe(e),d=r.attrs,c=d===void 0?Me:d,p=r.componentId,x=p===void 0?function(M,$){var D=typeof M!="string"?"sc":D2(M);ze[D]=(ze[D]||0)+1;var k="".concat(D,"-").concat(bt(ke+D+ze[D]));return $?"".concat($,"-").concat(k):k}(r.displayName,r.parentComponentId):p,y=r.displayName,u=y===void 0?function(M){return Fe(M)?"styled.".concat(M):"Styled(".concat(wt(M),")")}(e):y,m=r.displayName&&r.componentId?"".concat(D2(r.displayName),"-").concat(r.componentId):r.componentId||x,w=n&&l.attrs?l.attrs.concat(c).filter(Boolean):c,b=r.shouldForwardProp;if(n&&l.shouldForwardProp){var L=l.shouldForwardProp;if(r.shouldForwardProp){var v=r.shouldForwardProp;b=function(M,$){return L(M,$)&&v(M,$)}}else b=L}var E=new H3(a,m,n?l.componentStyle:void 0);function S(M,$){return function(D,k,F){var B=D.attrs,W=D.componentStyle,g=D.defaultProps,z=D.foldedComponentIds,j=D.styledComponentId,_=D.target,H=C.useContext(c2),R=Xe(),Y=D.shouldForwardProp||R.shouldForwardProp;process.env.NODE_ENV!=="production"&&C.useDebugValue(j);var T=yt(k,H,g)||I1,I=function(X,a1,f1){for(var s1,x1=u1(u1({},a1),{className:void 0,theme:f1}),w1=0;w1<X.length;w1+=1){var S1=G1(s1=X[w1])?s1(x1):s1;for(var m1 in S1)x1[m1]=m1==="className"?A1(x1[m1],S1[m1]):m1==="style"?u1(u1({},x1[m1]),S1[m1]):S1[m1]}return a1.className&&(x1.className=A1(x1.className,a1.className)),x1}(B,k,T),r1=I.as||_,o1={};for(var t1 in I)I[t1]===void 0||t1[0]==="$"||t1==="as"||t1==="theme"&&I.theme===T||(t1==="forwardedAs"?o1.as=I.forwardedAs:Y&&!Y(t1,r1)||(o1[t1]=I[t1],Y||process.env.NODE_ENV!=="development"||V0(t1)||P2.has(t1)||!Ye.has(r1)||(P2.add(t1),console.warn('styled-components: it looks like an unknown prop "'.concat(t1,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var q=function(X,a1){var f1=Xe(),s1=X.generateAndInjectStyles(a1,f1.styleSheet,f1.stylis);return process.env.NODE_ENV!=="production"&&C.useDebugValue(s1),s1}(W,I);process.env.NODE_ENV!=="production"&&D.warnTooManyClasses&&D.warnTooManyClasses(q);var K=A1(z,j);return q&&(K+=" "+q),I.className&&(K+=" "+I.className),o1[Fe(r1)&&!Ye.has(r1)?"class":"className"]=K,o1.ref=F,C.createElement(r1,o1)}(A,M,$)}S.displayName=u;var A=C.forwardRef(S);return A.attrs=w,A.componentStyle=E,A.displayName=u,A.shouldForwardProp=b,A.foldedComponentIds=n?A1(l.foldedComponentIds,l.styledComponentId):"",A.styledComponentId=m,A.target=n?l.target:e,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=n?function($){for(var D=[],k=1;k<arguments.length;k++)D[k-1]=arguments[k];for(var F=0,B=D;F<B.length;F++)qe($,B[F],!0);return $}({},l.defaultProps,M):M}}),process.env.NODE_ENV!=="production"&&(mt(u,m),A.warnTooManyClasses=function(M,$){var D={},k=!1;return function(F){if(!k&&(D[F]=!0,Object.keys(D).length>=200)){var B=$?' with the id of "'.concat($,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(B,`.
69
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function p3(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var a=e[0],n=[],l=1,s=e.length;l<s;l+=1)n.push(e[l]);return n.forEach(function(d){a=a.replace(/%[a-z]/,d)}),a}function J1(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(r.length>0?" Args: ".concat(r.join(", ")):"")):new Error(p3.apply(void 0,F1([f3[e]],r,!1)).trim())}var u3=function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}return e.prototype.indexOfGroup=function(r){for(var a=0,n=0;n<r;n++)a+=this.groupSizes[n];return a},e.prototype.insertRules=function(r,a){if(r>=this.groupSizes.length){for(var n=this.groupSizes,l=n.length,s=l;r>=s;)if((s<<=1)<0)throw J1(16,"".concat(r));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var d=l;d<s;d++)this.groupSizes[d]=0}for(var c=this.indexOfGroup(r+1),p=(d=0,a.length);d<p;d++)this.tag.insertRule(c,a[d])&&(this.groupSizes[r]++,c++)},e.prototype.clearGroup=function(r){if(r<this.length){var a=this.groupSizes[r],n=this.indexOfGroup(r),l=n+a;this.groupSizes[r]=0;for(var s=n;s<l;s++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(r){var a="";if(r>=this.length||this.groupSizes[r]===0)return a;for(var n=this.groupSizes[r],l=this.indexOfGroup(r),s=l+n,d=l;d<s;d++)a+="".concat(this.tag.getRule(d)).concat(n2);return a},e}(),Ce=new Map,ye=new Map,ge=1,ce=function(e){if(Ce.has(e))return Ce.get(e);for(;ye.has(ge);)ge++;var r=ge++;if(process.env.NODE_ENV!=="production"&&((0|r)<0||r>1073741824))throw J1(16,"".concat(r));return Ce.set(e,r),ye.set(r,e),r},C3=function(e,r){ge=r+1,Ce.set(e,r),ye.set(r,e)},g3="style[".concat(z1,"][").concat(xt,'="').concat(ke,'"]'),x3=new RegExp("^".concat(z1,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),m3=function(e,r,a){for(var n,l=a.split(","),s=0,d=l.length;s<d;s++)(n=l[s])&&e.registerName(r,n)},y3=function(e,r){for(var a,n=((a=r.textContent)!==null&&a!==void 0?a:"").split(n2),l=[],s=0,d=n.length;s<d;s++){var c=n[s].trim();if(c){var p=c.match(x3);if(p){var x=0|parseInt(p[1],10),y=p[2];x!==0&&(C3(y,x),m3(e,y,p[3]),e.getTag().insertRules(x,l)),l.length=0}else l.push(c)}}};function _3(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jt=function(e){var r=document.head,a=e||r,n=document.createElement("style"),l=function(c){var p=Array.from(c.querySelectorAll("style[".concat(z1,"]")));return p[p.length-1]}(a),s=l!==void 0?l.nextSibling:null;n.setAttribute(z1,gt),n.setAttribute(xt,ke);var d=_3();return d&&n.setAttribute("nonce",d),a.insertBefore(n,s),n},v3=function(){function e(r){this.element=jt(r),this.element.appendChild(document.createTextNode("")),this.sheet=function(a){if(a.sheet)return a.sheet;for(var n=document.styleSheets,l=0,s=n.length;l<s;l++){var d=n[l];if(d.ownerNode===a)return d}throw J1(17)}(this.element),this.length=0}return e.prototype.insertRule=function(r,a){try{return this.sheet.insertRule(a,r),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},e.prototype.getRule=function(r){var a=this.sheet.cssRules[r];return a&&a.cssText?a.cssText:""},e}(),b3=function(){function e(r){this.element=jt(r),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(r,a){if(r<=this.length&&r>=0){var n=document.createTextNode(a);return this.element.insertBefore(n,this.nodes[r]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},e.prototype.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},e}(),w3=function(){function e(r){this.rules=[],this.length=0}return e.prototype.insertRule=function(r,a){return r<=this.length&&(this.rules.splice(r,0,a),this.length++,!0)},e.prototype.deleteRule=function(r){this.rules.splice(r,1),this.length--},e.prototype.getRule=function(r){return r<this.length?this.rules[r]:""},e}(),F2=o2,$3={isServer:!o2,useCSSOMInjection:!Q0},_e=function(){function e(r,a,n){r===void 0&&(r=I1),a===void 0&&(a={});var l=this;this.options=u1(u1({},$3),r),this.gs=a,this.names=new Map(n),this.server=!!r.isServer,!this.server&&o2&&F2&&(F2=!1,function(s){for(var d=document.querySelectorAll(g3),c=0,p=d.length;c<p;c++){var x=d[c];x&&x.getAttribute(z1)!==gt&&(y3(s,x),x.parentNode&&x.parentNode.removeChild(x))}}(this)),s2(this,function(){return function(s){for(var d=s.getTag(),c=d.length,p="",x=function(u){var m=function(E){return ye.get(E)}(u);if(m===void 0)return"continue";var w=s.names.get(m),b=d.getGroup(u);if(w===void 0||b.length===0)return"continue";var L="".concat(z1,".g").concat(u,'[id="').concat(m,'"]'),v="";w!==void 0&&w.forEach(function(E){E.length>0&&(v+="".concat(E,","))}),p+="".concat(b).concat(L,'{content:"').concat(v,'"}').concat(n2)},y=0;y<c;y++)x(y);return p}(l)})}return e.registerId=function(r){return ce(r)},e.prototype.reconstructWithOptions=function(r,a){return a===void 0&&(a=!0),new e(u1(u1({},this.options),r),this.gs,a&&this.names||void 0)},e.prototype.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(r=function(a){var n=a.useCSSOMInjection,l=a.target;return a.isServer?new w3(l):n?new v3(l):new b3(l)}(this.options),new u3(r)));var r},e.prototype.hasNameForId=function(r,a){return this.names.has(r)&&this.names.get(r).has(a)},e.prototype.registerName=function(r,a){if(ce(r),this.names.has(r))this.names.get(r).add(a);else{var n=new Set;n.add(a),this.names.set(r,n)}},e.prototype.insertRules=function(r,a,n){this.registerName(r,a),this.getTag().insertRules(ce(r),n)},e.prototype.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},e.prototype.clearRules=function(r){this.getTag().clearGroup(ce(r)),this.clearNames(r)},e.prototype.clearTag=function(){this.tag=void 0},e}(),L3=/&/g,k3=/^\s*\/\/.*$/gm;function St(e,r){return e.map(function(a){return a.type==="rule"&&(a.value="".concat(r," ").concat(a.value),a.value=a.value.replaceAll(",",",".concat(r," ")),a.props=a.props.map(function(n){return"".concat(r," ").concat(n)})),Array.isArray(a.children)&&a.type!=="@keyframes"&&(a.children=St(a.children,r)),a})}function M3(e){var r,a,n,l=I1,s=l.options,d=s===void 0?I1:s,c=l.plugins,p=c===void 0?Me:c,x=function(m,w,b){return b.startsWith(a)&&b.endsWith(a)&&b.replaceAll(a,"").length>0?".".concat(r):m},y=p.slice();y.push(function(m){m.type===be&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(L3,a).replace(n,x))}),d.prefix&&y.push(K0),y.push(U0);var u=function(m,w,b,L){w===void 0&&(w=""),b===void 0&&(b=""),L===void 0&&(L="&"),r=L,a=w,n=new RegExp("\\".concat(a,"\\b"),"g");var v=m.replace(k3,""),E=G0(b||w?"".concat(b," ").concat(w," { ").concat(v," }"):v);d.namespace&&(E=St(E,d.namespace));var S=[];return me(E,J0(y.concat(q0(function(A){return S.push(A)})))),S};return u.hash=p.length?p.reduce(function(m,w){return w.name||J1(15),Z1(m,w.name)},_t).toString():"",u}var j3=new _e,Ke=M3(),Et=C.createContext({shouldForwardProp:void 0,styleSheet:j3,stylis:Ke});Et.Consumer;C.createContext(void 0);function Xe(){return C.useContext(Et)}var z2=function(){function e(r,a){var n=this;this.inject=function(l,s){s===void 0&&(s=Ke);var d=n.name+s.hash;l.hasNameForId(n.id,d)||l.insertRules(n.id,d,s(n.rules,d,"@keyframes"))},this.name=r,this.id="sc-keyframes-".concat(r),this.rules=a,s2(this,function(){throw J1(12,String(n.name))})}return e.prototype.getName=function(r){return r===void 0&&(r=Ke),this.name+r.hash},e}(),S3=function(e){return e>="A"&&e<="Z"};function B2(e){for(var r="",a=0;a<e.length;a++){var n=e[a];if(a===1&&n==="-"&&e[0]==="-")return e;S3(n)?r+="-"+n.toLowerCase():r+=n}return r.startsWith("ms-")?"-"+r:r}var Ht=function(e){return e==null||e===!1||e===""},Dt=function(e){var r,a,n=[];for(var l in e){var s=e[l];e.hasOwnProperty(l)&&!Ht(s)&&(Array.isArray(s)&&s.isCss||G1(s)?n.push("".concat(B2(l),":"),s,";"):Y1(s)?n.push.apply(n,F1(F1(["".concat(l," {")],Dt(s),!1),["}"],!1)):n.push("".concat(B2(l),": ").concat((r=l,(a=s)==null||typeof a=="boolean"||a===""?"":typeof a!="number"||a===0||r in X0||r.startsWith("--")?String(a).trim():"".concat(a,"px")),";")))}return n};function V1(e,r,a,n){if(Ht(e))return[];if(l2(e))return[".".concat(e.styledComponentId)];if(G1(e)){if(!G1(s=e)||s.prototype&&s.prototype.isReactComponent||!r)return[e];var l=e(r);return process.env.NODE_ENV==="production"||typeof l!="object"||Array.isArray(l)||l instanceof z2||Y1(l)||l===null||console.error("".concat(wt(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),V1(l,r,a,n)}var s;return e instanceof z2?a?(e.inject(a,n),[e.getName(n)]):[e]:Y1(e)?Dt(e):Array.isArray(e)?Array.prototype.concat.apply(Me,e.map(function(d){return V1(d,r,a,n)})):[e.toString()]}function Vt(e){for(var r=0;r<e.length;r+=1){var a=e[r];if(G1(a)&&!l2(a))return!1}return!0}var E3=vt(ke),H3=function(){function e(r,a,n){this.rules=r,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Vt(r),this.componentId=a,this.baseHash=Z1(E3,a),this.baseStyle=n,_e.registerId(a)}return e.prototype.generateAndInjectStyles=function(r,a,n){var l=this.baseStyle?this.baseStyle.generateAndInjectStyles(r,a,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&a.hasNameForId(this.componentId,this.staticRulesId))l=A1(l,this.staticRulesId);else{var s=Je(V1(this.rules,r,a,n)),d=Ue(Z1(this.baseHash,s)>>>0);if(!a.hasNameForId(this.componentId,d)){var c=n(s,".".concat(d),void 0,this.componentId);a.insertRules(this.componentId,d,c)}l=A1(l,d),this.staticRulesId=d}else{for(var p=Z1(this.baseHash,n.hash),x="",y=0;y<this.rules.length;y++){var u=this.rules[y];if(typeof u=="string")x+=u,process.env.NODE_ENV!=="production"&&(p=Z1(p,u));else if(u){var m=Je(V1(u,r,a,n));p=Z1(p,m+y),x+=m}}if(x){var w=Ue(p>>>0);a.hasNameForId(this.componentId,w)||a.insertRules(this.componentId,w,n(x,".".concat(w),void 0,this.componentId)),l=A1(l,w)}}return l},e}(),c2=C.createContext(void 0);c2.Consumer;var ze={},P2=new Set;function D3(e,r,a){var n=l2(e),l=e,s=!Fe(e),d=r.attrs,c=d===void 0?Me:d,p=r.componentId,x=p===void 0?function(M,$){var D=typeof M!="string"?"sc":D2(M);ze[D]=(ze[D]||0)+1;var k="".concat(D,"-").concat(bt(ke+D+ze[D]));return $?"".concat($,"-").concat(k):k}(r.displayName,r.parentComponentId):p,y=r.displayName,u=y===void 0?function(M){return Fe(M)?"styled.".concat(M):"Styled(".concat(wt(M),")")}(e):y,m=r.displayName&&r.componentId?"".concat(D2(r.displayName),"-").concat(r.componentId):r.componentId||x,w=n&&l.attrs?l.attrs.concat(c).filter(Boolean):c,b=r.shouldForwardProp;if(n&&l.shouldForwardProp){var L=l.shouldForwardProp;if(r.shouldForwardProp){var v=r.shouldForwardProp;b=function(M,$){return L(M,$)&&v(M,$)}}else b=L}var E=new H3(a,m,n?l.componentStyle:void 0);function S(M,$){return function(D,k,R){var B=D.attrs,W=D.componentStyle,g=D.defaultProps,z=D.foldedComponentIds,j=D.styledComponentId,_=D.target,H=C.useContext(c2),F=Xe(),Y=D.shouldForwardProp||F.shouldForwardProp;process.env.NODE_ENV!=="production"&&C.useDebugValue(j);var T=yt(k,H,g)||I1,I=function(X,a1,f1){for(var s1,x1=u1(u1({},a1),{className:void 0,theme:f1}),w1=0;w1<X.length;w1+=1){var S1=G1(s1=X[w1])?s1(x1):s1;for(var m1 in S1)x1[m1]=m1==="className"?A1(x1[m1],S1[m1]):m1==="style"?u1(u1({},x1[m1]),S1[m1]):S1[m1]}return a1.className&&(x1.className=A1(x1.className,a1.className)),x1}(B,k,T),r1=I.as||_,o1={};for(var t1 in I)I[t1]===void 0||t1[0]==="$"||t1==="as"||t1==="theme"&&I.theme===T||(t1==="forwardedAs"?o1.as=I.forwardedAs:Y&&!Y(t1,r1)||(o1[t1]=I[t1],Y||process.env.NODE_ENV!=="development"||V0(t1)||P2.has(t1)||!Ye.has(r1)||(P2.add(t1),console.warn('styled-components: it looks like an unknown prop "'.concat(t1,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var q=function(X,a1){var f1=Xe(),s1=X.generateAndInjectStyles(a1,f1.styleSheet,f1.stylis);return process.env.NODE_ENV!=="production"&&C.useDebugValue(s1),s1}(W,I);process.env.NODE_ENV!=="production"&&D.warnTooManyClasses&&D.warnTooManyClasses(q);var K=A1(z,j);return q&&(K+=" "+q),I.className&&(K+=" "+I.className),o1[Fe(r1)&&!Ye.has(r1)?"class":"className"]=K,o1.ref=R,C.createElement(r1,o1)}(A,M,$)}S.displayName=u;var A=C.forwardRef(S);return A.attrs=w,A.componentStyle=E,A.displayName=u,A.shouldForwardProp=b,A.foldedComponentIds=n?A1(l.foldedComponentIds,l.styledComponentId):"",A.styledComponentId=m,A.target=n?l.target:e,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=n?function($){for(var D=[],k=1;k<arguments.length;k++)D[k-1]=arguments[k];for(var R=0,B=D;R<B.length;R++)qe($,B[R],!0);return $}({},l.defaultProps,M):M}}),process.env.NODE_ENV!=="production"&&(mt(u,m),A.warnTooManyClasses=function(M,$){var D={},k=!1;return function(R){if(!k&&(D[R]=!0,Object.keys(D).length>=200)){var B=$?' with the id of "'.concat($,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(B,`.
70
70
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
71
71
  Example:
72
72
  const Component = styled.div.attrs(props => ({
@@ -1316,7 +1316,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
1316
1316
  -moz-appearance: textfield;
1317
1317
  appearance: textfield;
1318
1318
  }
1319
- `,U6=(e,r)=>e&&typeof e=="string"&&T6.includes(e)?r?"text":e:"text",ee=({id:e,type:r="text",name:a,placeholder:n,value:l,setValue:s,size:d="medium",intent:c="default",loading:p=!1,clearButton:x=!1,leftText:y,rightText:u,leftButtonIcon:m,rightButtonIcon:w,rightButtonOnClick:b,numpad:L=!1,numpadOffset:v=10,numpadFloatNumber:E=!0,numpadPosition:S={left:"-4px",top:"100%"},numpadPortal:A=!1,...M})=>{const $=C.useRef(null),[D,k]=C.useState(!1),F=()=>{s("")},B=g=>{s&&s(g)},W=g=>{if(L&&!p)if(A){const z=setTimeout(()=>k(!0),100);return()=>clearTimeout(z)}else k(!0);M!=null&&M.onClick&&M.onClick(g)};return C.useEffect(()=>{const g=$==null?void 0:$.current,z=j=>{const _=document.getElementById("rbro-numpad-wrapper"),H=_==null?void 0:_.contains(j.target);g&&!g.contains(j.target)&&!H&&k(!1)};if(D)return document.addEventListener("mousedown",z),()=>{document.removeEventListener("mousedown",z)}},[D,$]),i.jsxs(G6,{ref:$,$leftButtonIcon:m,$leftText:y,$rightButtonIcon:w,$rightText:u,$rightButtonOnClick:b,$size:d,$intent:c,$disabled:M.disabled,$clearButton:x,$loading:p,children:[L&&D&&(A?M0.createPortal(i.jsx(i2,{value:l,getValue:g=>B(g),handleFooterButton:()=>k(!1),offset:v,float:E,withinPortal:!0,relativeRef:$}),document.body):i.jsx(i2,{value:l,getValue:g=>B(g),handleFooterButton:()=>k(!1),offset:v,float:E,position:S})),(m||y&&typeof y=="string")&&i.jsxs("div",{className:"rnd8f3k9p2",children:[m&&i.jsx(O,{icon:m,size:20,color:M.disabled?t.gray_300:t.gray_500}),y&&typeof y=="string"&&i.jsx("span",{children:y})]}),i.jsx(Y6,{...M,$size:d,$intent:c,$type:r,id:e,name:a,type:U6(r,L),placeholder:n,value:l,readOnly:L,onChange:g=>{L||B(g.target.value)},onClick:W}),p?i.jsx(je,{style:{opacity:M.disabled?.3:1},size:20}):(w||u&&typeof u=="string"||c&&c==="success"||x)&&i.jsxs("div",{className:"rnd9x7m2k4l",children:[u&&typeof u=="string"&&c!=="success"&&i.jsx("span",{children:u}),(w||c==="success"||x&&!!l)&&i.jsx(O,{onClick:M.disabled?void 0:w?b:F,style:{cursor:b||x?"pointer":"default"},icon:c==="success"?"checkmark_filled":w||"clear_filled",size:20,color:M.disabled?t.gray_300:c==="success"?t.success_600:t.gray_500})]})]})},G2={info:t.gray_700,success:t.success_600,warning:t.warning_500,danger:t.danger_500},J6=V.div`
1319
+ `,U6=(e,r)=>e&&typeof e=="string"&&T6.includes(e)?r?"text":e:"text",ee=({id:e,type:r="text",name:a,placeholder:n,value:l,setValue:s,size:d="medium",intent:c="default",loading:p=!1,clearButton:x=!1,leftText:y,rightText:u,leftButtonIcon:m,rightButtonIcon:w,rightButtonOnClick:b,numpad:L=!1,numpadOffset:v=10,numpadFloatNumber:E=!0,numpadPosition:S={left:"-4px",top:"100%"},numpadPortal:A=!1,...M})=>{const $=C.useRef(null),[D,k]=C.useState(!1),R=()=>{s("")},B=g=>{s&&s(g)},W=g=>{if(L&&!p)if(A){const z=setTimeout(()=>k(!0),100);return()=>clearTimeout(z)}else k(!0);M!=null&&M.onClick&&M.onClick(g)};return C.useEffect(()=>{const g=$==null?void 0:$.current,z=j=>{const _=document.getElementById("rbro-numpad-wrapper"),H=_==null?void 0:_.contains(j.target);g&&!g.contains(j.target)&&!H&&k(!1)};if(D)return document.addEventListener("mousedown",z),()=>{document.removeEventListener("mousedown",z)}},[D,$]),i.jsxs(G6,{ref:$,$leftButtonIcon:m,$leftText:y,$rightButtonIcon:w,$rightText:u,$rightButtonOnClick:b,$size:d,$intent:c,$disabled:M.disabled,$clearButton:x,$loading:p,children:[L&&D&&(A?M0.createPortal(i.jsx(i2,{value:l,getValue:g=>B(g),handleFooterButton:()=>k(!1),offset:v,float:E,withinPortal:!0,relativeRef:$}),document.body):i.jsx(i2,{value:l,getValue:g=>B(g),handleFooterButton:()=>k(!1),offset:v,float:E,position:S})),(m||y&&typeof y=="string")&&i.jsxs("div",{className:"rnd8f3k9p2",children:[m&&i.jsx(O,{icon:m,size:20,color:M.disabled?t.gray_300:t.gray_500}),y&&typeof y=="string"&&i.jsx("span",{children:y})]}),i.jsx(Y6,{...M,$size:d,$intent:c,$type:r,id:e,name:a,type:U6(r,L),placeholder:n,value:l,readOnly:L,onChange:g=>{L||B(g.target.value)},onClick:W}),p?i.jsx(je,{style:{opacity:M.disabled?.3:1},size:20}):(w||u&&typeof u=="string"||c&&c==="success"||x)&&i.jsxs("div",{className:"rnd9x7m2k4l",children:[u&&typeof u=="string"&&c!=="success"&&i.jsx("span",{children:u}),(w||c==="success"||x&&!!l)&&i.jsx(O,{onClick:M.disabled?void 0:w?b:R,style:{cursor:b||x?"pointer":"default"},icon:c==="success"?"checkmark_filled":w||"clear_filled",size:20,color:M.disabled?t.gray_300:c==="success"?t.success_600:t.gray_500})]})]})},G2={info:t.gray_700,success:t.success_600,warning:t.warning_500,danger:t.danger_500},J6=V.div`
1320
1320
  display: flex;
1321
1321
  flex-direction: column;
1322
1322
  gap: 8px;
@@ -1427,7 +1427,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
1427
1427
  }
1428
1428
  }
1429
1429
  }
1430
- `,tr=({id:e,name:r,value:a=0,setValue:n,min:l=0,max:s=100,showSteppers:d=!1,stepSize:c=1,disabled:p=!1,height:x=32,wrapperWidth:y,...u})=>{const m=C.useRef(null),[w,b]=C.useState(!1),L=C.useCallback(k=>{var B,W;const F=(B=m.current)==null?void 0:B.getBoundingClientRect();if(F){let g;if("touches"in k?g=(W=k.touches[0])==null?void 0:W.clientX:"clientX"in k&&(g=k.clientX),g!==void 0){const z=g-F.left,j=F.width,_=z/j*(s-l)+l;let H=Math.round(_/c)*c;H=Math.max(l,H),H=Math.min(s,H),n&&n(H)}}},[s,l,n,c]),v=k=>{if(k==="minus"){if(a===l)return;if(a-c<l){n&&n(l);return}n&&n(a-c)}else{if(a===s)return;if(a+c>s){n&&n(s);return}n&&n(a+c)}},E=C.useCallback(()=>{n&&n(a),b(!1)},[a,n]),S=C.useCallback(k=>{w&&L(k)},[w,L]),A=k=>{p||(L(k),b(!0))},M=k=>{b(!0),L(k)},$=C.useCallback(k=>{L(k)},[L]),D=C.useCallback(()=>{n&&n(a),b(!1)},[a,n]);return C.useEffect(()=>{if(!p)return w&&(window.addEventListener("mousemove",S),window.addEventListener("mouseup",E),window.addEventListener("touchmove",$,{passive:!0}),window.addEventListener("touchend",D)),()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",E),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",D)}},[w,S,E,D,$]),i.jsxs(Q6,{$height:x,$showSteppers:d,$disabled:p,$wrapperWidth:y,children:[d&&i.jsx(v1,{disabled:p,icon:"minus",intent:"info",variant:"secondaryOutlined",size:"small",shape:"circle",onClick:()=>v("minus")}),i.jsx(er,{$disabled:p,ref:m,role:"slider",id:e,"aria-label":r,tabIndex:0,"aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":a,onMouseDown:A,onTouchStart:M,...u,children:i.jsx("div",{children:i.jsx("div",{style:{width:`${(a-l)/(s-l)*100}%`},children:i.jsx("span",{style:{cursor:p?"default":w?"grabbing":"grab",right:`${(a-l)/(s-l)*100*.32-32}px`}})})})}),d&&i.jsx(v1,{disabled:p,icon:"add",intent:"info",variant:"secondaryOutlined",size:"small",shape:"circle",onClick:()=>v("add")})]})},ir=V.div`
1430
+ `,tr=({id:e,name:r,value:a=0,setValue:n,min:l=0,max:s=100,showSteppers:d=!1,stepSize:c=1,disabled:p=!1,height:x=32,wrapperWidth:y,...u})=>{const m=C.useRef(null),[w,b]=C.useState(!1),L=C.useCallback(k=>{var B,W;const R=(B=m.current)==null?void 0:B.getBoundingClientRect();if(R){let g;if("touches"in k?g=(W=k.touches[0])==null?void 0:W.clientX:"clientX"in k&&(g=k.clientX),g!==void 0){const z=g-R.left,j=R.width,_=z/j*(s-l)+l;let H=Math.round(_/c)*c;H=Math.max(l,H),H=Math.min(s,H),n&&n(H)}}},[s,l,n,c]),v=k=>{if(k==="minus"){if(a===l)return;if(a-c<l){n&&n(l);return}n&&n(a-c)}else{if(a===s)return;if(a+c>s){n&&n(s);return}n&&n(a+c)}},E=C.useCallback(()=>{n&&n(a),b(!1)},[a,n]),S=C.useCallback(k=>{w&&L(k)},[w,L]),A=k=>{p||(L(k),b(!0))},M=k=>{b(!0),L(k)},$=C.useCallback(k=>{L(k)},[L]),D=C.useCallback(()=>{n&&n(a),b(!1)},[a,n]);return C.useEffect(()=>{if(!p)return w&&(window.addEventListener("mousemove",S),window.addEventListener("mouseup",E),window.addEventListener("touchmove",$,{passive:!0}),window.addEventListener("touchend",D)),()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",E),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",D)}},[w,S,E,D,$]),i.jsxs(Q6,{$height:x,$showSteppers:d,$disabled:p,$wrapperWidth:y,children:[d&&i.jsx(v1,{disabled:p,icon:"minus",intent:"info",variant:"secondaryOutlined",size:"small",shape:"circle",onClick:()=>v("minus")}),i.jsx(er,{$disabled:p,ref:m,role:"slider",id:e,"aria-label":r,tabIndex:0,"aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":a,onMouseDown:A,onTouchStart:M,...u,children:i.jsx("div",{children:i.jsx("div",{style:{width:`${(a-l)/(s-l)*100}%`},children:i.jsx("span",{style:{cursor:p?"default":w?"grabbing":"grab",right:`${(a-l)/(s-l)*100*.32-32}px`}})})})}),d&&i.jsx(v1,{disabled:p,icon:"add",intent:"info",variant:"secondaryOutlined",size:"small",shape:"circle",onClick:()=>v("add")})]})},ir=V.div`
1431
1431
  border-radius: 8px;
1432
1432
  border: 1px solid ${t.gray_200};
1433
1433
  overflow: hidden;
@@ -3054,7 +3054,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
3054
3054
  border-radius: 9999px;
3055
3055
  border: 1px solid ${t.gray_100};
3056
3056
  color: ${t.gray_950};
3057
- `,Ur=({date:e,onDateChanged:r,setCalendarOpen:a,limitStart:n,limitEnd:l})=>{const[s,d]=C.useState({current:e,month:+e.getMonth()+1,year:e.getFullYear()}),[c,p]=C.useState("date"),x=g=>{const j=B1(g)?g:new Date;d({current:g,month:+j.getMonth()+1,year:j.getFullYear()})},y=C.useMemo(()=>{const{month:g,year:z}=s,j=Object.keys(Be)[Math.max(0,Math.min(g-1,11))];return{monthname:Be[j],year:z}},[s]),u=(g,z)=>{z&&z.preventDefault();const{current:j}=s;j&&Pe(g,j)||(x(g),r&&r(g))},m=(g,z)=>{z&&z.preventDefault(),d({current:s.current,month:s.month,year:+g}),p("month")},w=(g,z)=>{z&&z.preventDefault(),d({current:s.current,month:+g,year:s.year}),p("date")},b=(g,z)=>{const j=tt[g].toUpperCase();return i.jsx(Ir,{$index:z,children:j},j+z)},L=()=>{const{current:g,month:z,year:j}=s,_=z||+(g==null?void 0:g.getMonth())+1,H=j||(g==null?void 0:g.getFullYear());return Pr(_,H)},v=g=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(g))return!1;const j=new Date(g),_=j.getTime();if(isNaN(_))return!1;const[H,R,Y]=g.split("-");return!(j.getUTCFullYear()!==parseInt(H,10)||j.getUTCMonth()+1!==parseInt(R,10)||j.getUTCDate()!==parseInt(Y,10))},E=()=>!(!n||!l||!v(n)||!v(l)),S=C.useMemo(()=>{if(!E())return[];const g=new Date(n),z=new Date(l),j=[];for(let _=new Date(g);_<=z;_.setUTCDate(_.getUTCDate()+1))j.push(new Date(_));return j},[n,l]),A=C.useCallback(g=>S&&S.length?!S.some(z=>z.getTime()===g.getTime()):!1,[S]),M=(g,z)=>{const{current:j,month:_,year:H}=s,R=new Date(g.join("-")),Y=A(R),T=Pe(R,new Date),I=j&&Pe(R,j),r1=_&&H&&zr(R,new Date([H.toString().padStart(2,"0"),_.toString().padStart(2,"0"),"01"].join("-"))),o1=I?Ut:T?Gr:Yt;return i.jsx(o1,{$index:z,$inMonth:r1,$isLimited:Y,onClick:t1=>{Y||u(R,t1)},children:R.getDate()},Br(R))},$=()=>{const g=he*4,{year:z}=s;return[...new Array(g)].map((_,H)=>+z+H)},D=g=>{const{current:z,year:j}=s,_=g===j,H=z&&z.getFullYear()===g,R=_?t2:H?rt:e2;return i.jsx(R,{onClick:Y=>m(g,Y),children:g},g)},k=(g,z)=>{const{current:j,year:_,month:H}=s,R=z+1===H,Y=j&&j.getFullYear()===_,T=j&&j.getMonth()+1===z+1,r1=R?t2:Y&&T?rt:e2;return i.jsx(r1,{onClick:o1=>w(z+1,o1),children:g.slice(0,3)},g)},F=g=>{if(g&&g.preventDefault(),c==="date")return p("year")},B=()=>{const{month:g,year:z}=s;if(c==="date"){const j=Tt(g,z);d({month:j.month,year:j.year,current:s.current});return}if(c==="year"){const j=z-he*4;d({month:s.month,year:j,current:s.current});return}if(c==="month"){d({month:s.month,current:s.current,year:s.year-1});return}},W=()=>{const{month:g,year:z}=s;if(c==="date"){const j=It(g,z);d({month:j.month,year:j.year,current:s.current});return}if(c==="year"){const j=z+he*4;d({month:s.month,year:j,current:s.current});return}if(c==="month"){d({month:s.month,current:s.current,year:s.year+1});return}};return i.jsxs(Wr,{children:[i.jsxs(Or,{children:[i.jsx(v1,{onClick:B,title:"Previous Month",icon:"go-left",intent:"info",variant:"secondaryOutlined",shape:"rounded",size:"small"}),i.jsx("div",{children:i.jsxs("button",{onClick:F,children:[c==="date"&&y.monthname+" "+y.year,c==="year"&&y.year+"-"+(y.year+he*4-1),c==="month"&&y.year]})}),i.jsx(v1,{onClick:W,title:"Next Month",icon:"go-right",intent:"info",variant:"secondaryOutlined",shape:"rounded",size:"small"})]}),i.jsxs(Tr,{$view:c,children:[c==="date"&&i.jsxs(i.Fragment,{children:[i.jsx(i.Fragment,{children:Object.keys(tt).map(b)}),i.jsx(i.Fragment,{children:L().map(M)})]}),c==="year"&&i.jsx(i.Fragment,{children:$().map(D)}),c==="month"&&i.jsx(i.Fragment,{children:Object.values(Be).map(k)})]}),i.jsxs(Nr,{children:[i.jsx(g1,{onClick:()=>{E()?x(new Date(n)):x(new Date),r&&(E()?r(new Date(n)):r(new Date)),a&&a(!1)},width:"auto",intent:"accent",variant:"secondaryOutlined",label:"Reseteaza"}),i.jsx(g1,{onClick:()=>{a&&a(!1)},width:"auto",intent:"accent",variant:"primary",label:"Salveaza"})]})]})},Jr={medium:h`
3057
+ `,Ur=({date:e,onDateChanged:r,setCalendarOpen:a,limitStart:n,limitEnd:l})=>{const[s,d]=C.useState({current:e,month:+e.getMonth()+1,year:e.getFullYear()}),[c,p]=C.useState("date"),x=g=>{const j=B1(g)?g:new Date;d({current:g,month:+j.getMonth()+1,year:j.getFullYear()})},y=C.useMemo(()=>{const{month:g,year:z}=s,j=Object.keys(Be)[Math.max(0,Math.min(g-1,11))];return{monthname:Be[j],year:z}},[s]),u=(g,z)=>{z&&z.preventDefault();const{current:j}=s;j&&Pe(g,j)||(x(g),r&&r(g))},m=(g,z)=>{z&&z.preventDefault(),d({current:s.current,month:s.month,year:+g}),p("month")},w=(g,z)=>{z&&z.preventDefault(),d({current:s.current,month:+g,year:s.year}),p("date")},b=(g,z)=>{const j=tt[g].toUpperCase();return i.jsx(Ir,{$index:z,children:j},j+z)},L=()=>{const{current:g,month:z,year:j}=s,_=z||+(g==null?void 0:g.getMonth())+1,H=j||(g==null?void 0:g.getFullYear());return Pr(_,H)},v=g=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(g))return!1;const j=new Date(g),_=j.getTime();if(isNaN(_))return!1;const[H,F,Y]=g.split("-");return!(j.getUTCFullYear()!==parseInt(H,10)||j.getUTCMonth()+1!==parseInt(F,10)||j.getUTCDate()!==parseInt(Y,10))},E=()=>!(!n||!l||!v(n)||!v(l)),S=C.useMemo(()=>{if(!E())return[];const g=new Date(n),z=new Date(l),j=[];for(let _=new Date(g);_<=z;_.setUTCDate(_.getUTCDate()+1))j.push(new Date(_));return j},[n,l]),A=C.useCallback(g=>S&&S.length?!S.some(z=>z.getTime()===g.getTime()):!1,[S]),M=(g,z)=>{const{current:j,month:_,year:H}=s,F=new Date(g.join("-")),Y=A(F),T=Pe(F,new Date),I=j&&Pe(F,j),r1=_&&H&&zr(F,new Date([H.toString().padStart(2,"0"),_.toString().padStart(2,"0"),"01"].join("-"))),o1=I?Ut:T?Gr:Yt;return i.jsx(o1,{$index:z,$inMonth:r1,$isLimited:Y,onClick:t1=>{Y||u(F,t1)},children:F.getDate()},Br(F))},$=()=>{const g=he*4,{year:z}=s;return[...new Array(g)].map((_,H)=>+z+H)},D=g=>{const{current:z,year:j}=s,_=g===j,H=z&&z.getFullYear()===g,F=_?t2:H?rt:e2;return i.jsx(F,{onClick:Y=>m(g,Y),children:g},g)},k=(g,z)=>{const{current:j,year:_,month:H}=s,F=z+1===H,Y=j&&j.getFullYear()===_,T=j&&j.getMonth()+1===z+1,r1=F?t2:Y&&T?rt:e2;return i.jsx(r1,{onClick:o1=>w(z+1,o1),children:g.slice(0,3)},g)},R=g=>{if(g&&g.preventDefault(),c==="date")return p("year")},B=()=>{const{month:g,year:z}=s;if(c==="date"){const j=Tt(g,z);d({month:j.month,year:j.year,current:s.current});return}if(c==="year"){const j=z-he*4;d({month:s.month,year:j,current:s.current});return}if(c==="month"){d({month:s.month,current:s.current,year:s.year-1});return}},W=()=>{const{month:g,year:z}=s;if(c==="date"){const j=It(g,z);d({month:j.month,year:j.year,current:s.current});return}if(c==="year"){const j=z+he*4;d({month:s.month,year:j,current:s.current});return}if(c==="month"){d({month:s.month,current:s.current,year:s.year+1});return}};return i.jsxs(Wr,{children:[i.jsxs(Or,{children:[i.jsx(v1,{onClick:B,title:"Previous Month",icon:"go-left",intent:"info",variant:"secondaryOutlined",shape:"rounded",size:"small"}),i.jsx("div",{children:i.jsxs("button",{onClick:R,children:[c==="date"&&y.monthname+" "+y.year,c==="year"&&y.year+"-"+(y.year+he*4-1),c==="month"&&y.year]})}),i.jsx(v1,{onClick:W,title:"Next Month",icon:"go-right",intent:"info",variant:"secondaryOutlined",shape:"rounded",size:"small"})]}),i.jsxs(Tr,{$view:c,children:[c==="date"&&i.jsxs(i.Fragment,{children:[i.jsx(i.Fragment,{children:Object.keys(tt).map(b)}),i.jsx(i.Fragment,{children:L().map(M)})]}),c==="year"&&i.jsx(i.Fragment,{children:$().map(D)}),c==="month"&&i.jsx(i.Fragment,{children:Object.values(Be).map(k)})]}),i.jsxs(Nr,{children:[i.jsx(g1,{onClick:()=>{E()?x(new Date(n)):x(new Date),r&&(E()?r(new Date(n)):r(new Date)),a&&a(!1)},width:"auto",intent:"accent",variant:"secondaryOutlined",label:"Reseteaza"}),i.jsx(g1,{onClick:()=>{a&&a(!1)},width:"auto",intent:"accent",variant:"primary",label:"Salveaza"})]})]})},Jr={medium:h`
3058
3058
  height: 40px;
3059
3059
  padding: 0px 38px 0px 12px;
3060
3060
  `,large:h`
@@ -3278,7 +3278,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
3278
3278
  }
3279
3279
  }
3280
3280
  }
3281
- `,Jt=({id:e,name:r,placeholder:a="Selecteaza",value:n,setValue:l,size:s="medium",intent:d="default",disabled:c,maxHeight:p="336px",searchInput:x,defaultOpen:y=!1,data:u=[{label:"",value:""}],dropdownContentWidth:m="100%",...w})=>{const[b,L]=C.useState(y),v=C.useRef(null),[E,S]=C.useState(u),[A,M]=C.useState(""),$=C.useCallback(F=>{const B=F.target.value;M(B);const W=u.filter(g=>g.label.toLowerCase().includes(B.toLowerCase()));S(W)},[u]),D=C.useCallback(F=>{l(F.value),L(!1),M(""),S(u)},[u,l]),k=C.useMemo(()=>{var F;return u&&n&&((F=u.find(B=>B.value===n))==null?void 0:F.label)||""},[n,u]);return C.useEffect(()=>{const F=B=>{v.current&&!v.current.contains(B.target)&&(L(!1),M(""),S(u))};if(b)return document.addEventListener("mousedown",F),()=>{document.removeEventListener("mousedown",F)}},[v,b,u]),C.useEffect(()=>{L(y)},[y]),i.jsxs(Qr,{ref:v,$size:s,$intent:d,$disabled:c,$isOpen:b,...w,children:[i.jsx("input",{readOnly:!0,placeholder:a,id:e,type:"text",name:r,value:k,onClick:()=>!c&&L(!b),onChange:F=>F.preventDefault()}),i.jsx("div",{children:i.jsx(O,{icon:"select-open-down",size:20,color:c?t.info_500_40:t.info_700})}),b&&i.jsxs(e7,{$maxHeight:p,$searchInput:x,$dropdownContentWidth:m,children:[x&&i.jsx("div",{children:i.jsxs("div",{children:[i.jsx("div",{children:i.jsx(O,{icon:"search",size:20,color:t.gray_500})}),i.jsx("input",{onChange:$,value:A,type:"text"})]})}),i.jsx("div",{children:i.jsx("div",{children:E.map((F,B)=>i.jsx("div",{onClick:()=>D(F),children:i.jsx("span",{children:F.label})},B))})})]})]})},t7=V.div`
3281
+ `,Jt=({id:e,name:r,placeholder:a="Selecteaza",value:n,setValue:l,size:s="medium",intent:d="default",disabled:c,maxHeight:p="336px",searchInput:x,defaultOpen:y=!1,data:u=[{label:"",value:""}],dropdownContentWidth:m="100%",...w})=>{const[b,L]=C.useState(y),v=C.useRef(null),[E,S]=C.useState(u),[A,M]=C.useState(""),$=C.useCallback(R=>{const B=R.target.value;M(B);const W=u.filter(g=>g.label.toLowerCase().includes(B.toLowerCase()));S(W)},[u]),D=C.useCallback(R=>{l(R.value),L(!1),M(""),S(u)},[u,l]),k=C.useMemo(()=>{var R;return u&&n&&((R=u.find(B=>B.value===n))==null?void 0:R.label)||""},[n,u]);return C.useEffect(()=>{const R=B=>{v.current&&!v.current.contains(B.target)&&(L(!1),M(""),S(u))};if(b)return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[v,b,u]),C.useEffect(()=>{L(y)},[y]),i.jsxs(Qr,{ref:v,$size:s,$intent:d,$disabled:c,$isOpen:b,...w,children:[i.jsx("input",{readOnly:!0,placeholder:a,id:e,type:"text",name:r,value:k,onClick:()=>!c&&L(!b),onChange:R=>R.preventDefault()}),i.jsx("div",{children:i.jsx(O,{icon:"select-open-down",size:20,color:c?t.info_500_40:t.info_700})}),b&&i.jsxs(e7,{$maxHeight:p,$searchInput:x,$dropdownContentWidth:m,children:[x&&i.jsx("div",{children:i.jsxs("div",{children:[i.jsx("div",{children:i.jsx(O,{icon:"search",size:20,color:t.gray_500})}),i.jsx("input",{onChange:$,value:A,type:"text"})]})}),i.jsx("div",{children:i.jsx("div",{children:E.map((R,B)=>i.jsx("div",{onClick:()=>D(R),children:i.jsx("span",{children:R.label})},B))})})]})]})},t7=V.div`
3282
3282
  border-radius: 8px;
3283
3283
  border-width: 1px;
3284
3284
  border-style: solid;
@@ -3485,7 +3485,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
3485
3485
  & > rect:nth-child(3) {
3486
3486
  clip-path: inset(0 0 0 0 round 0px 4px 4px 0px);
3487
3487
  }
3488
- `,r7=({max:e=100,limit_max:r=70,limit_min:a=50,value:n=0,currency:l="RON",label_top:s="Pensia standard + Pensia Facultativa",label_limit_min:d="Pensie standard",label_limit_max:c="Obiectiv pensie"})=>{const p=new Intl.NumberFormat("RO"),x=C.useRef(null),y=C.useRef(null),u=C.useRef(null),m=C.useRef(null),w=C.useRef(null),b=C.useRef(null),L=C.useRef(null),[v,E]=C.useState(0),[S,A]=C.useState(0),M=10,$=C.useMemo(()=>{const K=S/2-20,X=v-M*2,a1=Math.min(X,Math.max(X*a/e,0)),f1=20,s1=K+M,x1=a*X/e+10,w1=Math.min(X+10,Math.max(x1,10)),S1=r*X/e+10,m1=Math.min(X+10,Math.max(S1,10));return{primary_bar_h:40,primary_bar_y:K,secondary_bar_w:a1,secondary_bar_h:f1,secondary_bar_y:s1,line_min_x:w1,line_max_x:m1}},[S,v,a,r,e]),D=C.useMemo(()=>{const q=M*2,X=n*(v-q)/e-$.secondary_bar_w,a1=v-q-$.secondary_bar_w,f1=n>r?t.success_400:t.danger_200,s1=n>r?t.success_600:t.danger_400;return{value:Math.min(a1,Math.max(0,X)),fill:f1,fill_value:s1}},[v,$.secondary_bar_w,n,r,e]),k=C.useCallback((q,K,X)=>{const{width:a1}=q.current.getBBox(),f1=X==="middle"?v-a1+a1/2:X==="end"?v-a1:v-a1+a1,s1=X==="middle"?a1/2:X==="end"?10:a1+10;return Math.min(f1,Math.max(s1,K))},[v]),F=C.useCallback(q=>{const K=$.line_min_x+q,X=$.line_min_x+q;return y&&y.current||u&&u.current?{label_top_x:k(y,K,"middle"),sublabel_top_x:k(u,X,"middle")}:{label_top_x:K,sublabel_top_x:X}},[$.line_min_x,k]),B=C.useCallback(()=>{const q=$.line_min_x,K=$.line_min_x;return m&&m.current||w&&w.current?{label_limit_min_x:k(m,q,"start"),sublabel_limit_min_x:k(w,K,"start")}:{label_limit_min_x:q,sublabel_limit_min_x:K}},[$.line_min_x,k]),W=C.useCallback(()=>{const q=$.line_max_x,K=$.line_max_x;return b&&b.current||L&&L.current?{label_limit_max_x:k(b,q,"end"),sublabel_limit_max_x:k(L,K,"end")}:{label_limit_max_x:q,sublabel_limit_max_x:K}},[$.line_max_x,k]);C.useEffect(()=>{if(x&&x.current){const K=()=>{var f1,s1;const X=(f1=x==null?void 0:x.current)==null?void 0:f1.clientWidth,a1=(s1=x==null?void 0:x.current)==null?void 0:s1.clientHeight;E(X/a1*150),A(150)};return K(),window.addEventListener("resize",K),()=>window.removeEventListener("resize",K)}},[x]);const[g,z]=C.useState(0),[j,_]=C.useState(0),[H,R]=C.useState(0),[Y,T]=C.useState(0),[I,r1]=C.useState(0),[o1,t1]=C.useState(0);return C.useEffect(()=>{const q=D.value;z(F(q).label_top_x),_(F(q).sublabel_top_x)},[D.value,F]),C.useEffect(()=>{R(B().label_limit_min_x),T(B().sublabel_limit_min_x),r1(W().label_limit_max_x),t1(W().sublabel_limit_max_x)},[B,W]),i.jsxs(i7,{ref:x,width:"100%",height:"100%",viewBox:`0 0 ${v} ${S}`,xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{x:0,y:$.primary_bar_y,height:$.primary_bar_h,width:v,rx:8}),i.jsx("rect",{x:M,y:$.secondary_bar_y,height:$.secondary_bar_h,width:$.secondary_bar_w,fill:D.fill}),i.jsx("rect",{x:$.line_min_x,y:$.secondary_bar_y,height:$.secondary_bar_h,width:D.value,fill:D.fill_value}),i.jsx("text",{ref:y,className:"label_top",textAnchor:"middle",x:g,y:15,children:s}),i.jsx("text",{ref:u,className:"sublabel_top",textAnchor:"middle",x:j,y:32,children:p.format(n)+" "+l}),i.jsx("line",{x1:$.line_min_x,x2:$.line_min_x,y1:$.primary_bar_y-M,y2:$.primary_bar_y+$.primary_bar_h+M,strokeWidth:2,stroke:"#232529"}),i.jsx("text",{ref:m,className:"label_bottom",textAnchor:"end",x:H,y:$.primary_bar_y+$.primary_bar_h+M+20,children:d}),i.jsx("text",{ref:w,className:"sublabel_bottom",textAnchor:"end",x:Y,y:$.primary_bar_y+$.primary_bar_h+M+40,children:p.format(a)+" "+l}),i.jsx("line",{x1:$.line_max_x,x2:$.line_max_x,y1:$.primary_bar_y-M,y2:$.primary_bar_y+$.primary_bar_h+M,strokeWidth:2,stroke:"#232529"}),i.jsx("text",{ref:b,className:"label_bottom",textAnchor:"start",x:I,y:$.primary_bar_y+$.primary_bar_h+M+20,children:c}),i.jsx("text",{ref:L,className:"sublabel_bottom",textAnchor:"start",x:o1,y:$.primary_bar_y+$.primary_bar_h+M+40,children:p.format(r)+" "+l})]})},a7={small:h`
3488
+ `,r7=({max:e=100,limit_max:r=70,limit_min:a=50,value:n=0,currency:l="RON",label_top:s="Pensia standard + Pensia Facultativa",label_limit_min:d="Pensie standard",label_limit_max:c="Obiectiv pensie"})=>{const p=new Intl.NumberFormat("RO"),x=C.useRef(null),y=C.useRef(null),u=C.useRef(null),m=C.useRef(null),w=C.useRef(null),b=C.useRef(null),L=C.useRef(null),[v,E]=C.useState(0),[S,A]=C.useState(0),M=10,$=C.useMemo(()=>{const K=S/2-20,X=v-M*2,a1=Math.min(X,Math.max(X*a/e,0)),f1=20,s1=K+M,x1=a*X/e+10,w1=Math.min(X+10,Math.max(x1,10)),S1=r*X/e+10,m1=Math.min(X+10,Math.max(S1,10));return{primary_bar_h:40,primary_bar_y:K,secondary_bar_w:a1,secondary_bar_h:f1,secondary_bar_y:s1,line_min_x:w1,line_max_x:m1}},[S,v,a,r,e]),D=C.useMemo(()=>{const q=M*2,X=n*(v-q)/e-$.secondary_bar_w,a1=v-q-$.secondary_bar_w,f1=n>r?t.success_400:t.danger_200,s1=n>r?t.success_600:t.danger_400;return{value:Math.min(a1,Math.max(0,X)),fill:f1,fill_value:s1}},[v,$.secondary_bar_w,n,r,e]),k=C.useCallback((q,K,X)=>{const{width:a1}=q.current.getBBox(),f1=X==="middle"?v-a1+a1/2:X==="end"?v-a1:v-a1+a1,s1=X==="middle"?a1/2:X==="end"?10:a1+10;return Math.min(f1,Math.max(s1,K))},[v]),R=C.useCallback(q=>{const K=$.line_min_x+q,X=$.line_min_x+q;return y&&y.current||u&&u.current?{label_top_x:k(y,K,"middle"),sublabel_top_x:k(u,X,"middle")}:{label_top_x:K,sublabel_top_x:X}},[$.line_min_x,k]),B=C.useCallback(()=>{const q=$.line_min_x,K=$.line_min_x;return m&&m.current||w&&w.current?{label_limit_min_x:k(m,q,"start"),sublabel_limit_min_x:k(w,K,"start")}:{label_limit_min_x:q,sublabel_limit_min_x:K}},[$.line_min_x,k]),W=C.useCallback(()=>{const q=$.line_max_x,K=$.line_max_x;return b&&b.current||L&&L.current?{label_limit_max_x:k(b,q,"end"),sublabel_limit_max_x:k(L,K,"end")}:{label_limit_max_x:q,sublabel_limit_max_x:K}},[$.line_max_x,k]);C.useEffect(()=>{if(x&&x.current){const K=()=>{var f1,s1;const X=(f1=x==null?void 0:x.current)==null?void 0:f1.clientWidth,a1=(s1=x==null?void 0:x.current)==null?void 0:s1.clientHeight;E(X/a1*150),A(150)};return K(),window.addEventListener("resize",K),()=>window.removeEventListener("resize",K)}},[x]);const[g,z]=C.useState(0),[j,_]=C.useState(0),[H,F]=C.useState(0),[Y,T]=C.useState(0),[I,r1]=C.useState(0),[o1,t1]=C.useState(0);return C.useEffect(()=>{const q=D.value;z(R(q).label_top_x),_(R(q).sublabel_top_x)},[D.value,R]),C.useEffect(()=>{F(B().label_limit_min_x),T(B().sublabel_limit_min_x),r1(W().label_limit_max_x),t1(W().sublabel_limit_max_x)},[B,W]),i.jsxs(i7,{ref:x,width:"100%",height:"100%",viewBox:`0 0 ${v} ${S}`,xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{x:0,y:$.primary_bar_y,height:$.primary_bar_h,width:v,rx:8}),i.jsx("rect",{x:M,y:$.secondary_bar_y,height:$.secondary_bar_h,width:$.secondary_bar_w,fill:D.fill}),i.jsx("rect",{x:$.line_min_x,y:$.secondary_bar_y,height:$.secondary_bar_h,width:D.value,fill:D.fill_value}),i.jsx("text",{ref:y,className:"label_top",textAnchor:"middle",x:g,y:15,children:s}),i.jsx("text",{ref:u,className:"sublabel_top",textAnchor:"middle",x:j,y:32,children:p.format(n)+" "+l}),i.jsx("line",{x1:$.line_min_x,x2:$.line_min_x,y1:$.primary_bar_y-M,y2:$.primary_bar_y+$.primary_bar_h+M,strokeWidth:2,stroke:"#232529"}),i.jsx("text",{ref:m,className:"label_bottom",textAnchor:"end",x:H,y:$.primary_bar_y+$.primary_bar_h+M+20,children:d}),i.jsx("text",{ref:w,className:"sublabel_bottom",textAnchor:"end",x:Y,y:$.primary_bar_y+$.primary_bar_h+M+40,children:p.format(a)+" "+l}),i.jsx("line",{x1:$.line_max_x,x2:$.line_max_x,y1:$.primary_bar_y-M,y2:$.primary_bar_y+$.primary_bar_h+M,strokeWidth:2,stroke:"#232529"}),i.jsx("text",{ref:b,className:"label_bottom",textAnchor:"start",x:I,y:$.primary_bar_y+$.primary_bar_h+M+20,children:c}),i.jsx("text",{ref:L,className:"sublabel_bottom",textAnchor:"start",x:o1,y:$.primary_bar_y+$.primary_bar_h+M+40,children:p.format(r)+" "+l})]})},a7={small:h`
3489
3489
  width: 16px;
3490
3490
  height: 16px;
3491
3491
  `,medium:h`
@@ -3999,7 +3999,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
3999
3999
  font-size: 14px;
4000
4000
  font-weight: 400;
4001
4001
  }
4002
- `,v7=({height:e=280,paddingLeft:r=240,paddingRight:a=40,paddingTop:n=24,paddingBottom:l=60,gap:s=16,max:d=3e4,line:c=2e4,min:p=1e4,textLeft:x="Text left",textValueLeft:y=2e4,col1Value:u=3e4,col2Value:m=25e3,col3Value:w=15e3,col4Value:b=1e4,col1Color:L="success_500",col2Color:v="info_500",col3Color:E="warning_500",col4Color:S="danger_500",currency:A="RON",dev:M=!1})=>{const $=new Intl.NumberFormat("RO"),D=C.useRef(null),[k,F]=C.useState(0),[B,W]=C.useState(0),g=C.useMemo(()=>{const z=Math.abs(k-r-a),j=Math.abs(B-n-l),_=Math.abs(j/(d-p)*(d-c)+n),H=(z-3*s)/4,R=o1=>{const t1=Math.abs(j/(d-p)*(o1-c)),q=Math.abs(j/(d-p)*(c-o1)),K=o1>c?t1:q;return{h:K,y:o1>c?_-K:_}},Y={x:r,y:R(u).y,w:H,h:R(u).h,text_y:u>=c?+R(u).y-12:+R(u).y+12+10},T={x:r+H+s,y:R(m).y,w:H,h:R(m).h,text_y:m>=c?+R(m).y-12:+R(m).y+12+10},I={x:r+H*2+s*2,y:R(w).y,w:H,h:R(w).h,text_y:w>=c?+R(w).y-12:+R(w).y+R(w).h+12+10},r1={x:r+H*3+s*3,y:R(b).y,w:H,h:R(b).h,text_y:b>=c?+R(b).y-12:+R(b).y+R(b).h+12+10};return{graphW:z,graphH:j,lineY:_,col_1:Y,col_2:T,col_3:I,col_4:r1,paddingLeft:r}},[k,B,p,d,c,s,r,a,n,l,u,m,w,b]);return C.useEffect(()=>{if(D&&D.current){const z=()=>{var _;const j=(_=D==null?void 0:D.current)==null?void 0:_.clientWidth;F(+j),W(e)};return z(),window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)}},[D,e]),i.jsxs(_7,{ref:D,width:"100%",height:"100%",viewBox:`0 0 ${k} ${B}`,xmlns:"http://www.w3.org/2000/svg",$col1Color:L,$col2Color:v,$col3Color:E,$col4Color:S,$dev:M,children:[M&&i.jsx("rect",{className:"dev-graph",width:g.graphW,height:g.graphH,x:g.paddingLeft,y:n}),i.jsx("text",{className:"col_1_text",textAnchor:"middle",x:g.col_1.x+g.col_1.w/2,y:g.col_1.text_y,children:$.format(u)+` ${A}`}),i.jsx("rect",{className:"col_1_rect",width:g.col_1.w,height:g.col_1.h,x:g.col_1.x,y:g.col_1.y}),i.jsx("line",{x1:g.col_1.x,x2:g.col_1.x+g.col_1.w,y1:B-27,y2:B-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_favorabil",textAnchor:"middle",x:g.col_1.x+g.col_1.w/2,y:B-5,children:"Favorabil"}),i.jsx("text",{className:"col_2_text",textAnchor:"middle",x:g.col_2.x+g.col_2.w/2,y:g.col_2.text_y,children:$.format(m)+` ${A}`}),i.jsx("rect",{className:"col_2_rect",width:g.col_2.w,height:g.col_2.h,x:g.col_2.x,y:g.col_2.y}),i.jsx("line",{x1:g.col_2.x,x2:g.col_2.x+g.col_2.w,y1:B-27,y2:B-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_moderat",textAnchor:"middle",x:g.col_2.x+g.col_2.w/2,y:B-5,children:"Moderat"}),i.jsx("text",{className:"col_3_text",textAnchor:"middle",x:g.col_3.x+g.col_3.w/2,y:g.col_3.text_y,children:$.format(w)+` ${A}`}),i.jsx("rect",{className:"col_3_rect",width:g.col_3.w,height:g.col_3.h,x:g.col_3.x,y:g.col_3.y}),i.jsx("line",{x1:g.col_3.x,x2:g.col_3.x+g.col_3.w,y1:B-27,y2:B-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_nefavorabil",textAnchor:"middle",x:g.col_3.x+g.col_3.w/2,y:B-5,children:"Nefavorabil"}),i.jsx("text",{className:"col_4_text",textAnchor:"middle",x:g.col_4.x+g.col_4.w/2,y:g.col_4.text_y,children:$.format(b)+` ${A}`}),i.jsx("rect",{className:"col_4_rect",width:g.col_4.w,height:g.col_4.h,x:g.col_4.x,y:g.col_4.y}),i.jsx("line",{x1:g.col_4.x,x2:g.col_4.x+g.col_4.w,y1:B-27,y2:B-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_criza",style:{fontSize:"14px"},textAnchor:"middle",x:g.col_4.x+g.col_4.w/2,y:B-5,children:"Criza"}),i.jsx("text",{className:"textLeft",textAnchor:"start",x:0,y:g.lineY-26,children:x}),i.jsx("text",{className:"textValueLeft",textAnchor:"start",x:0,y:g.lineY-6,children:$.format(y)+` ${A}`}),i.jsx("line",{x1:0,x2:k,y1:g.lineY,y2:g.lineY,strokeWidth:2,stroke:t.gray_950})]})},b7=[3,7],w7=["info_400","purple_600"],$7=["gray_100","blue_100"],L7=[16,18],k7=[5,7],M7=[1,2],j7=V.div`
4002
+ `,v7=({height:e=280,paddingLeft:r=240,paddingRight:a=40,paddingTop:n=24,paddingBottom:l=60,gap:s=16,max:d=3e4,line:c=2e4,min:p=1e4,textLeft:x="Text left",textValueLeft:y=2e4,col1Value:u=3e4,col2Value:m=25e3,col3Value:w=15e3,col4Value:b=1e4,col1Color:L="success_500",col2Color:v="info_500",col3Color:E="warning_500",col4Color:S="danger_500",currency:A="RON",dev:M=!1})=>{const $=new Intl.NumberFormat("RO"),D=C.useRef(null),[k,R]=C.useState(0),[B,W]=C.useState(0),g=C.useMemo(()=>{const z=Math.abs(k-r-a),j=Math.abs(B-n-l),_=Math.abs(j/(d-p)*(d-c)+n),H=(z-3*s)/4,F=o1=>{const t1=Math.abs(j/(d-p)*(o1-c)),q=Math.abs(j/(d-p)*(c-o1)),K=o1>c?t1:q;return{h:K,y:o1>c?_-K:_}},Y={x:r,y:F(u).y,w:H,h:F(u).h,text_y:u>=c?+F(u).y-12:+F(u).y+12+10},T={x:r+H+s,y:F(m).y,w:H,h:F(m).h,text_y:m>=c?+F(m).y-12:+F(m).y+12+10},I={x:r+H*2+s*2,y:F(w).y,w:H,h:F(w).h,text_y:w>=c?+F(w).y-12:+F(w).y+F(w).h+12+10},r1={x:r+H*3+s*3,y:F(b).y,w:H,h:F(b).h,text_y:b>=c?+F(b).y-12:+F(b).y+F(b).h+12+10};return{graphW:z,graphH:j,lineY:_,col_1:Y,col_2:T,col_3:I,col_4:r1,paddingLeft:r}},[k,B,p,d,c,s,r,a,n,l,u,m,w,b]);return C.useEffect(()=>{if(D&&D.current){const z=()=>{var _;const j=(_=D==null?void 0:D.current)==null?void 0:_.clientWidth;R(+j),W(e)};return z(),window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)}},[D,e]),i.jsxs(_7,{ref:D,width:"100%",height:"100%",viewBox:`0 0 ${k} ${B}`,xmlns:"http://www.w3.org/2000/svg",$col1Color:L,$col2Color:v,$col3Color:E,$col4Color:S,$dev:M,children:[M&&i.jsx("rect",{className:"dev-graph",width:g.graphW,height:g.graphH,x:g.paddingLeft,y:n}),i.jsx("text",{className:"col_1_text",textAnchor:"middle",x:g.col_1.x+g.col_1.w/2,y:g.col_1.text_y,children:$.format(u)+` ${A}`}),i.jsx("rect",{className:"col_1_rect",width:g.col_1.w,height:g.col_1.h,x:g.col_1.x,y:g.col_1.y}),i.jsx("line",{x1:g.col_1.x,x2:g.col_1.x+g.col_1.w,y1:B-27,y2:B-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_favorabil",textAnchor:"middle",x:g.col_1.x+g.col_1.w/2,y:B-5,children:"Favorabil"}),i.jsx("text",{className:"col_2_text",textAnchor:"middle",x:g.col_2.x+g.col_2.w/2,y:g.col_2.text_y,children:$.format(m)+` ${A}`}),i.jsx("rect",{className:"col_2_rect",width:g.col_2.w,height:g.col_2.h,x:g.col_2.x,y:g.col_2.y}),i.jsx("line",{x1:g.col_2.x,x2:g.col_2.x+g.col_2.w,y1:B-27,y2:B-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_moderat",textAnchor:"middle",x:g.col_2.x+g.col_2.w/2,y:B-5,children:"Moderat"}),i.jsx("text",{className:"col_3_text",textAnchor:"middle",x:g.col_3.x+g.col_3.w/2,y:g.col_3.text_y,children:$.format(w)+` ${A}`}),i.jsx("rect",{className:"col_3_rect",width:g.col_3.w,height:g.col_3.h,x:g.col_3.x,y:g.col_3.y}),i.jsx("line",{x1:g.col_3.x,x2:g.col_3.x+g.col_3.w,y1:B-27,y2:B-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_nefavorabil",textAnchor:"middle",x:g.col_3.x+g.col_3.w/2,y:B-5,children:"Nefavorabil"}),i.jsx("text",{className:"col_4_text",textAnchor:"middle",x:g.col_4.x+g.col_4.w/2,y:g.col_4.text_y,children:$.format(b)+` ${A}`}),i.jsx("rect",{className:"col_4_rect",width:g.col_4.w,height:g.col_4.h,x:g.col_4.x,y:g.col_4.y}),i.jsx("line",{x1:g.col_4.x,x2:g.col_4.x+g.col_4.w,y1:B-27,y2:B-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_criza",style:{fontSize:"14px"},textAnchor:"middle",x:g.col_4.x+g.col_4.w/2,y:B-5,children:"Criza"}),i.jsx("text",{className:"textLeft",textAnchor:"start",x:0,y:g.lineY-26,children:x}),i.jsx("text",{className:"textValueLeft",textAnchor:"start",x:0,y:g.lineY-6,children:$.format(y)+` ${A}`}),i.jsx("line",{x1:0,x2:k,y1:g.lineY,y2:g.lineY,strokeWidth:2,stroke:t.gray_950})]})},b7=[3,7],w7=["info_400","purple_600"],$7=["gray_100","blue_100"],L7=[16,18],k7=[5,7],M7=[1,2],j7=V.div`
4003
4003
  display: flex;
4004
4004
  align-items: center;
4005
4005
  gap: ${({$stepGap:e})=>e&&M7.includes(e)?e+"px":"1px"};
@@ -4050,7 +4050,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
4050
4050
  font-weight: 700;
4051
4051
  fill: ${t.gray_950};
4052
4052
  }
4053
- `,E7=({limitTop:e=100,limitBottom:r=70,limitTopLabel:a="Top label",limitBottomLabel:n="Bottom label",currency:l="RON",height:s=284})=>{const d=new Intl.NumberFormat("RO"),c=C.useRef(null),p=C.useRef(null),x=C.useRef(null),y=C.useRef(null),u=C.useRef(null),[m,w]=C.useState(0),[b,L]=C.useState(0),v=C.useMemo(()=>{const $=b/2-12;let D,k,F,B,W,g,z;if(r>e){k=m-1;const j=e*m/r;D=Math.min(m,Math.max(j,1)),F=Math.min(m,Math.max(m*e/r,0)),W=D,g=m-F,z=t.danger_500}else{D=m-1;const j=r*m/e;k=Math.min(m,Math.max(j,1)),F=Math.min(m,Math.max(m*r/e,0)),W=k,g=m-F,z=t.success_500}return B=t.success_400,{bar_h:24,bar_y:$,secondary_bar_w:F,limit_top_x:D,limit_bottom_x:k,dynamic_bar_x:W,dynamic_bar_w:g,dynamic_fill_color:z,secondary_fill_color:B}},[m,b,r,e]),E=C.useCallback((M,$)=>$<M?{textAnchor:"start",x:$+20}:{textAnchor:"end",x:Math.max(M,$)},[m]),S=C.useMemo(()=>{var D,k;const M={x:v.limit_top_x-10,textAnchor:"end"},$={x:v.limit_top_x-10,textAnchor:"end"};if(p&&p.current||x&&x.current){const F=((D=p.current)==null?void 0:D.getBBox().width)??0,B=((k=x.current)==null?void 0:k.getBBox().width)??0,W=Math.max(F,B);return{limitMinLabel:{x:E(W,M.x).x,textAnchor:E(W,M.x).textAnchor},limitMinSublabel:{x:E(W,$.x).x,textAnchor:E(W,$.x).textAnchor}}}return{limitMinLabel:M,limitMinSublabel:$}},[v.limit_top_x]),A=C.useMemo(()=>{var D,k;const M={x:v.limit_bottom_x-10,textAnchor:"end"},$={x:v.limit_bottom_x-10,textAnchor:"end"};if(y&&y.current||u&&u.current){const F=((D=y.current)==null?void 0:D.getBBox().width)??0,B=((k=u.current)==null?void 0:k.getBBox().width)??0,W=Math.max(F,B);return{limitMaxLabel:{x:E(W,M.x).x,textAnchor:E(W,M.x).textAnchor},limitMaxSublabel:{x:E(W,$.x).x,textAnchor:E(W,$.x).textAnchor}}}return{limitMaxLabel:M,limitMaxSublabel:$}},[v.limit_bottom_x]);return C.useEffect(()=>{if(c&&c.current){const M=()=>{var D;const $=(D=c==null?void 0:c.current)==null?void 0:D.clientWidth;w(+$),L(s)};return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)}},[c,s]),i.jsxs(S7,{ref:c,width:"100%",height:"100%",viewBox:`0 0 ${m} ${b}`,xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{x:0,y:v.bar_y,height:v.bar_h,width:m}),i.jsx("rect",{x:0,y:v.bar_y,height:v.bar_h,width:v.secondary_bar_w,fill:v.secondary_fill_color}),i.jsx("rect",{x:v.dynamic_bar_x,y:v.bar_y,height:v.bar_h,width:v.dynamic_bar_w,fill:v.dynamic_fill_color}),i.jsx("line",{x1:v.limit_top_x,x2:v.limit_top_x,y1:0,y2:v.bar_y+v.bar_h,strokeWidth:2,stroke:"#232529"}),i.jsx("text",{ref:p,className:"limitMinLabel",textAnchor:S.limitMinLabel.textAnchor,x:S.limitMinLabel.x,y:12,children:a}),i.jsx("text",{ref:x,className:"limitMinSublabel",textAnchor:S.limitMinSublabel.textAnchor,x:S.limitMinSublabel.x,y:32,children:d.format(e)+" "+l}),i.jsx("line",{x1:v.limit_bottom_x,x2:v.limit_bottom_x,y1:v.bar_y,y2:b,strokeWidth:2,stroke:"#232529"}),i.jsx("text",{ref:y,className:"limitMaxLabel",textAnchor:A.limitMaxLabel.textAnchor,x:A.limitMaxLabel.x,y:b-20,children:n}),i.jsx("text",{ref:u,className:"limitMaxSublabel",textAnchor:A.limitMaxSublabel.textAnchor,x:A.limitMaxSublabel.x,y:b,children:d.format(r)+" "+l})]})},H7=V.svg`
4053
+ `,E7=({limitTop:e=100,limitBottom:r=70,limitTopLabel:a="Top label",limitBottomLabel:n="Bottom label",currency:l="RON",height:s=284})=>{const d=new Intl.NumberFormat("RO"),c=C.useRef(null),p=C.useRef(null),x=C.useRef(null),y=C.useRef(null),u=C.useRef(null),[m,w]=C.useState(0),[b,L]=C.useState(0),v=C.useMemo(()=>{const $=b/2-12;let D,k,R,B,W,g,z;if(r>e){k=m-1;const j=e*m/r;D=Math.min(m,Math.max(j,1)),R=Math.min(m,Math.max(m*e/r,0)),W=D,g=m-R,z=t.danger_500}else{D=m-1;const j=r*m/e;k=Math.min(m,Math.max(j,1)),R=Math.min(m,Math.max(m*r/e,0)),W=k,g=m-R,z=t.success_500}return B=t.success_400,{bar_h:24,bar_y:$,secondary_bar_w:R,limit_top_x:D,limit_bottom_x:k,dynamic_bar_x:W,dynamic_bar_w:g,dynamic_fill_color:z,secondary_fill_color:B}},[m,b,r,e]),E=C.useCallback((M,$)=>$<M?{textAnchor:"start",x:$+20}:{textAnchor:"end",x:Math.max(M,$)},[m]),S=C.useMemo(()=>{var D,k;const M={x:v.limit_top_x-10,textAnchor:"end"},$={x:v.limit_top_x-10,textAnchor:"end"};if(p&&p.current||x&&x.current){const R=((D=p.current)==null?void 0:D.getBBox().width)??0,B=((k=x.current)==null?void 0:k.getBBox().width)??0,W=Math.max(R,B);return{limitMinLabel:{x:E(W,M.x).x,textAnchor:E(W,M.x).textAnchor},limitMinSublabel:{x:E(W,$.x).x,textAnchor:E(W,$.x).textAnchor}}}return{limitMinLabel:M,limitMinSublabel:$}},[v.limit_top_x]),A=C.useMemo(()=>{var D,k;const M={x:v.limit_bottom_x-10,textAnchor:"end"},$={x:v.limit_bottom_x-10,textAnchor:"end"};if(y&&y.current||u&&u.current){const R=((D=y.current)==null?void 0:D.getBBox().width)??0,B=((k=u.current)==null?void 0:k.getBBox().width)??0,W=Math.max(R,B);return{limitMaxLabel:{x:E(W,M.x).x,textAnchor:E(W,M.x).textAnchor},limitMaxSublabel:{x:E(W,$.x).x,textAnchor:E(W,$.x).textAnchor}}}return{limitMaxLabel:M,limitMaxSublabel:$}},[v.limit_bottom_x]);return C.useEffect(()=>{if(c&&c.current){const M=()=>{var D;const $=(D=c==null?void 0:c.current)==null?void 0:D.clientWidth;w(+$),L(s)};return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)}},[c,s]),i.jsxs(S7,{ref:c,width:"100%",height:"100%",viewBox:`0 0 ${m} ${b}`,xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("rect",{x:0,y:v.bar_y,height:v.bar_h,width:m}),i.jsx("rect",{x:0,y:v.bar_y,height:v.bar_h,width:v.secondary_bar_w,fill:v.secondary_fill_color}),i.jsx("rect",{x:v.dynamic_bar_x,y:v.bar_y,height:v.bar_h,width:v.dynamic_bar_w,fill:v.dynamic_fill_color}),i.jsx("line",{x1:v.limit_top_x,x2:v.limit_top_x,y1:0,y2:v.bar_y+v.bar_h,strokeWidth:2,stroke:"#232529"}),i.jsx("text",{ref:p,className:"limitMinLabel",textAnchor:S.limitMinLabel.textAnchor,x:S.limitMinLabel.x,y:12,children:a}),i.jsx("text",{ref:x,className:"limitMinSublabel",textAnchor:S.limitMinSublabel.textAnchor,x:S.limitMinSublabel.x,y:32,children:d.format(e)+" "+l}),i.jsx("line",{x1:v.limit_bottom_x,x2:v.limit_bottom_x,y1:v.bar_y,y2:b,strokeWidth:2,stroke:"#232529"}),i.jsx("text",{ref:y,className:"limitMaxLabel",textAnchor:A.limitMaxLabel.textAnchor,x:A.limitMaxLabel.x,y:b-20,children:n}),i.jsx("text",{ref:u,className:"limitMaxSublabel",textAnchor:A.limitMaxSublabel.textAnchor,x:A.limitMaxSublabel.x,y:b,children:d.format(r)+" "+l})]})},H7=V.svg`
4054
4054
  & > .limitMinLabel {
4055
4055
  font-size: 14px;
4056
4056
  font-weight: 700;
@@ -4110,7 +4110,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
4110
4110
  font-size: 14px;
4111
4111
  font-weight: 400;
4112
4112
  }
4113
- `,Z7=({height:e=280,paddingLeft:r=240,paddingRight:a=40,paddingTop:n=24,paddingBottom:l=60,gap:s=16,max:d=40500,line:c=3e4,min:p=5e3,textTop:x="Suma ta",textValueTop:y=3e4,textBottomPrimary:u=500,textBottomSecondary:m=24,col1Value:w=40015,col2Value:b=32721,col3Value:L=25806,col4Value:v=24806,col1Color:E="success_500",col2Color:S="info_500",col3Color:A="warning_500",col4Color:M="danger_500",currency:$="RON",dev:D=!1})=>{const k=new Intl.NumberFormat("RO"),F=C.useRef(null),[B,W]=C.useState(0),[g,z]=C.useState(0),j=C.useRef(null),_=C.useMemo(()=>{const H=Math.abs(B-r-a),R=Math.abs(g-n-l),Y=Math.abs(R/(d-p)*(d-c)+n),T=(H-3*s)/4,I=K=>{const X=Math.abs(R/d*K),a1=Math.abs(R+n-X);return{h:X,y:a1}},r1={x:r,y:I(w).y,w:T,h:I(w).h,text_y:+I(w).y-12},o1={x:r+T+s,y:I(b).y,w:T,h:I(b).h,text_y:+I(b).y-12},t1={x:r+T*2+s*2,y:I(L).y,w:T,h:I(L).h,text_y:+I(L).y-12},q={x:r+T*3+s*3,y:I(v).y,w:T,h:I(v).h,text_y:+I(v).y-12};return{graphW:H,graphH:R,lineY:Y,col_1:r1,col_2:o1,col_3:t1,col_4:q,paddingLeft:r}},[B,g,p,d,c,s,r,a,n,l,w,b,L,v,j]);return C.useEffect(()=>{if(F&&F.current){const H=()=>{var Y;const R=(Y=F==null?void 0:F.current)==null?void 0:Y.clientWidth;W(+R),z(e)};return H(),window.addEventListener("resize",H),()=>window.removeEventListener("resize",H)}},[F,e]),i.jsxs(V7,{ref:F,width:"100%",height:"100%",viewBox:`0 0 ${B} ${g}`,xmlns:"http://www.w3.org/2000/svg",$col1Color:E,$col2Color:S,$col3Color:A,$col4Color:M,$dev:D,children:[D&&i.jsx("rect",{className:"dev-graph",width:_.graphW,height:_.graphH,x:_.paddingLeft,y:n}),i.jsx("text",{className:"col_1_text",textAnchor:"middle",x:_.col_1.x+_.col_1.w/2,y:16,children:k.format(w)+` ${$}`}),i.jsx("rect",{className:"col_1_rect",width:_.col_1.w,height:_.col_1.h,x:_.col_1.x,y:_.col_1.y}),i.jsx("line",{x1:_.col_1.x,x2:_.col_1.x+_.col_1.w,y1:g-27,y2:g-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_favorabil",textAnchor:"middle",x:_.col_1.x+_.col_1.w/2,y:g-5,children:"Favorabil"}),i.jsx("text",{className:"col_2_text",textAnchor:"middle",x:_.col_2.x+_.col_2.w/2,y:16,children:k.format(b)+` ${$}`}),i.jsx("rect",{className:"col_2_rect",width:_.col_2.w,height:_.col_2.h,x:_.col_2.x,y:_.col_2.y}),i.jsx("line",{x1:_.col_2.x,x2:_.col_2.x+_.col_2.w,y1:g-27,y2:g-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_moderat",textAnchor:"middle",x:_.col_2.x+_.col_2.w/2,y:g-5,children:"Moderat"}),i.jsx("text",{className:"col_3_text",textAnchor:"middle",x:_.col_3.x+_.col_3.w/2,y:16,children:k.format(L)+` ${$}`}),i.jsx("rect",{className:"col_3_rect",width:_.col_3.w,height:_.col_3.h,x:_.col_3.x,y:_.col_3.y}),i.jsx("line",{x1:_.col_3.x,x2:_.col_3.x+_.col_3.w,y1:g-27,y2:g-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_nefavorabil",textAnchor:"middle",x:_.col_3.x+_.col_3.w/2,y:g-5,children:"Nefavorabil"}),i.jsx("text",{className:"col_4_text",textAnchor:"middle",x:_.col_4.x+_.col_4.w/2,y:16,children:k.format(v)+` ${$}`}),i.jsx("rect",{className:"col_4_rect",width:_.col_4.w,height:_.col_4.h,x:_.col_4.x,y:_.col_4.y}),i.jsx("line",{x1:_.col_4.x,x2:_.col_4.x+_.col_4.w,y1:g-27,y2:g-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_criza",style:{fontSize:"14px"},textAnchor:"middle",x:_.col_4.x+_.col_4.w/2,y:g-5,children:"Criza"}),i.jsx("text",{className:"text",textAnchor:"start",x:0,y:_.lineY-26,children:x}),i.jsx("text",{className:"text",textAnchor:"start",x:0,y:_.lineY-6,children:k.format(y)+` ${$}`}),i.jsx("text",{className:"text",textAnchor:"start",x:0,y:_.lineY+18,children:k.format(u)+` ${$} x`}),i.jsx("text",{className:"text",textAnchor:"start",x:0,y:_.lineY+36,children:m+" luni"}),i.jsx("line",{x1:0,x2:B,y1:_.lineY,y2:_.lineY,strokeWidth:2,stroke:t.gray_950})]})},A7=V.div`
4113
+ `,Z7=({height:e=280,paddingLeft:r=240,paddingRight:a=40,paddingTop:n=24,paddingBottom:l=60,gap:s=16,max:d=40500,line:c=3e4,min:p=5e3,textTop:x="Suma ta",textValueTop:y=3e4,textBottomPrimary:u=500,textBottomSecondary:m=24,col1Value:w=40015,col2Value:b=32721,col3Value:L=25806,col4Value:v=24806,col1Color:E="success_500",col2Color:S="info_500",col3Color:A="warning_500",col4Color:M="danger_500",currency:$="RON",dev:D=!1})=>{const k=new Intl.NumberFormat("RO"),R=C.useRef(null),[B,W]=C.useState(0),[g,z]=C.useState(0),j=C.useRef(null),_=C.useMemo(()=>{const H=Math.abs(B-r-a),F=Math.abs(g-n-l),Y=Math.abs(F/(d-p)*(d-c)+n),T=(H-3*s)/4,I=K=>{const X=Math.abs(F/d*K),a1=Math.abs(F+n-X);return{h:X,y:a1}},r1={x:r,y:I(w).y,w:T,h:I(w).h,text_y:+I(w).y-12},o1={x:r+T+s,y:I(b).y,w:T,h:I(b).h,text_y:+I(b).y-12},t1={x:r+T*2+s*2,y:I(L).y,w:T,h:I(L).h,text_y:+I(L).y-12},q={x:r+T*3+s*3,y:I(v).y,w:T,h:I(v).h,text_y:+I(v).y-12};return{graphW:H,graphH:F,lineY:Y,col_1:r1,col_2:o1,col_3:t1,col_4:q,paddingLeft:r}},[B,g,p,d,c,s,r,a,n,l,w,b,L,v,j]);return C.useEffect(()=>{if(R&&R.current){const H=()=>{var Y;const F=(Y=R==null?void 0:R.current)==null?void 0:Y.clientWidth;W(+F),z(e)};return H(),window.addEventListener("resize",H),()=>window.removeEventListener("resize",H)}},[R,e]),i.jsxs(V7,{ref:R,width:"100%",height:"100%",viewBox:`0 0 ${B} ${g}`,xmlns:"http://www.w3.org/2000/svg",$col1Color:E,$col2Color:S,$col3Color:A,$col4Color:M,$dev:D,children:[D&&i.jsx("rect",{className:"dev-graph",width:_.graphW,height:_.graphH,x:_.paddingLeft,y:n}),i.jsx("text",{className:"col_1_text",textAnchor:"middle",x:_.col_1.x+_.col_1.w/2,y:16,children:k.format(w)+` ${$}`}),i.jsx("rect",{className:"col_1_rect",width:_.col_1.w,height:_.col_1.h,x:_.col_1.x,y:_.col_1.y}),i.jsx("line",{x1:_.col_1.x,x2:_.col_1.x+_.col_1.w,y1:g-27,y2:g-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_favorabil",textAnchor:"middle",x:_.col_1.x+_.col_1.w/2,y:g-5,children:"Favorabil"}),i.jsx("text",{className:"col_2_text",textAnchor:"middle",x:_.col_2.x+_.col_2.w/2,y:16,children:k.format(b)+` ${$}`}),i.jsx("rect",{className:"col_2_rect",width:_.col_2.w,height:_.col_2.h,x:_.col_2.x,y:_.col_2.y}),i.jsx("line",{x1:_.col_2.x,x2:_.col_2.x+_.col_2.w,y1:g-27,y2:g-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_moderat",textAnchor:"middle",x:_.col_2.x+_.col_2.w/2,y:g-5,children:"Moderat"}),i.jsx("text",{className:"col_3_text",textAnchor:"middle",x:_.col_3.x+_.col_3.w/2,y:16,children:k.format(L)+` ${$}`}),i.jsx("rect",{className:"col_3_rect",width:_.col_3.w,height:_.col_3.h,x:_.col_3.x,y:_.col_3.y}),i.jsx("line",{x1:_.col_3.x,x2:_.col_3.x+_.col_3.w,y1:g-27,y2:g-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_nefavorabil",textAnchor:"middle",x:_.col_3.x+_.col_3.w/2,y:g-5,children:"Nefavorabil"}),i.jsx("text",{className:"col_4_text",textAnchor:"middle",x:_.col_4.x+_.col_4.w/2,y:16,children:k.format(v)+` ${$}`}),i.jsx("rect",{className:"col_4_rect",width:_.col_4.w,height:_.col_4.h,x:_.col_4.x,y:_.col_4.y}),i.jsx("line",{x1:_.col_4.x,x2:_.col_4.x+_.col_4.w,y1:g-27,y2:g-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"sub_criza",style:{fontSize:"14px"},textAnchor:"middle",x:_.col_4.x+_.col_4.w/2,y:g-5,children:"Criza"}),i.jsx("text",{className:"text",textAnchor:"start",x:0,y:_.lineY-26,children:x}),i.jsx("text",{className:"text",textAnchor:"start",x:0,y:_.lineY-6,children:k.format(y)+` ${$}`}),i.jsx("text",{className:"text",textAnchor:"start",x:0,y:_.lineY+18,children:k.format(u)+` ${$} x`}),i.jsx("text",{className:"text",textAnchor:"start",x:0,y:_.lineY+36,children:m+" luni"}),i.jsx("line",{x1:0,x2:B,y1:_.lineY,y2:_.lineY,strokeWidth:2,stroke:t.gray_950})]})},A7=V.div`
4114
4114
  position: relative;
4115
4115
  width: 100%;
4116
4116
  ${({$isOpen:e,$height:r})=>e&&h`
@@ -4260,7 +4260,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
4260
4260
  font-weight: 400;
4261
4261
  fill: ${t.gray_800};
4262
4262
  }
4263
- `,z7=({height:e=280,paddingLeft:r=240,paddingRight:a=0,paddingTop:n=24,paddingBottom:l=60,gap:s=16,max:d=3e4,line:c=2e4,min:p=1e4,textLeft:x="Text left",textValueLeft:y=2e4,col1Text:u="3 ani",col2Text:m="5 ani",col3Text:w="10 ani",col1Value:b=15e3,col2Value:L=13e3,col3Value:v=11e3,col1Color:E="danger_500",col2Color:S="danger_500",col3Color:A="danger_500",currency:M="RON",dev:$=!1})=>{const D=new Intl.NumberFormat("RO"),k=C.useRef(null),[F,B]=C.useState(0),[W,g]=C.useState(0),z=C.useRef(null),j=C.useMemo(()=>{const _=Math.abs(F-r-a),H=Math.abs(W-n-l),R=Math.abs(H/(d-p)*(d-c)+n),Y=(_-2*s)/3,T=t1=>{const q=Math.abs(H/(d-p)*(t1-c)),K=Math.abs(H/(d-p)*(c-t1)),X=t1>c?q:K;return{h:X,y:t1>c?R-X:R}},I={x:r,y:T(b).y,w:Y,h:T(b).h,text_y:b>=c?+T(b).y-12:+T(b).y+ +T(b).h+12+10},r1={x:r+Y+s,y:T(L).y,w:Y,h:T(L).h,text_y:L>=c?+T(L).y-12:+T(L).y+ +T(L).h+12+10},o1={x:r+Y*2+s*2,y:T(v).y,w:Y,h:T(v).h,text_y:v>=c?+T(v).y-12:+T(v).y+T(v).h+12+10};return{graphW:_,graphH:H,lineY:R,col_1:I,col_2:r1,col_3:o1,paddingLeft:r}},[F,W,p,d,c,s,r,a,n,l,b,L,v,z]);return C.useEffect(()=>{if(k&&k.current){const _=()=>{var R;const H=(R=k==null?void 0:k.current)==null?void 0:R.clientWidth;B(+H),g(e)};return _(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)}},[k,e]),i.jsxs(F7,{ref:k,width:"100%",height:"100%",viewBox:`0 0 ${F} ${W}`,xmlns:"http://www.w3.org/2000/svg",$col1Color:E,$col2Color:S,$col3Color:A,$dev:$,children:[$&&i.jsx("rect",{className:"dev-graph",width:j.graphW,height:j.graphH,x:j.paddingLeft,y:n}),i.jsx("text",{className:"col_1_text",textAnchor:"middle",x:j.col_1.x+j.col_1.w/2,y:j.col_1.text_y,children:D.format(b)+` ${M}`}),i.jsx("rect",{className:"col_1_rect",width:j.col_1.w,height:j.col_1.h,x:j.col_1.x,y:j.col_1.y}),i.jsx("line",{x1:j.col_1.x,x2:j.col_1.x+j.col_1.w,y1:W-27,y2:W-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"col_1_sub_text",textAnchor:"middle",x:j.col_1.x+j.col_1.w/2,y:W-5,children:u}),i.jsx("text",{className:"col_2_text",textAnchor:"middle",x:j.col_2.x+j.col_2.w/2,y:j.col_2.text_y,children:D.format(L)+` ${M}`}),i.jsx("rect",{className:"col_2_rect",width:j.col_2.w,height:j.col_2.h,x:j.col_2.x,y:j.col_2.y}),i.jsx("line",{x1:j.col_2.x,x2:j.col_2.x+j.col_2.w,y1:W-27,y2:W-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"col_1_sub_text",textAnchor:"middle",x:j.col_2.x+j.col_2.w/2,y:W-5,children:m}),i.jsx("text",{className:"col_3_text",textAnchor:"middle",x:j.col_3.x+j.col_3.w/2,y:j.col_3.text_y,children:D.format(v)+` ${M}`}),i.jsx("rect",{className:"col_3_rect",width:j.col_3.w,height:j.col_3.h,x:j.col_3.x,y:j.col_3.y}),i.jsx("line",{x1:j.col_3.x,x2:j.col_3.x+j.col_3.w,y1:W-27,y2:W-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"col_1_sub_text",textAnchor:"middle",x:j.col_3.x+j.col_3.w/2,y:W-5,children:w}),i.jsx("text",{className:"textLeft",textAnchor:"start",x:0,y:j.lineY-26,children:x}),i.jsx("text",{className:"textValueLeft",textAnchor:"start",x:0,y:j.lineY-6,children:D.format(y)+` ${M}`}),i.jsx("line",{x1:0,x2:F,y1:j.lineY,y2:j.lineY,strokeWidth:2,stroke:t.gray_950})]})},B7=V.div`
4263
+ `,z7=({height:e=280,paddingLeft:r=240,paddingRight:a=0,paddingTop:n=24,paddingBottom:l=60,gap:s=16,max:d=3e4,line:c=2e4,min:p=1e4,textLeft:x="Text left",textValueLeft:y=2e4,col1Text:u="3 ani",col2Text:m="5 ani",col3Text:w="10 ani",col1Value:b=15e3,col2Value:L=13e3,col3Value:v=11e3,col1Color:E="danger_500",col2Color:S="danger_500",col3Color:A="danger_500",currency:M="RON",dev:$=!1})=>{const D=new Intl.NumberFormat("RO"),k=C.useRef(null),[R,B]=C.useState(0),[W,g]=C.useState(0),z=C.useRef(null),j=C.useMemo(()=>{const _=Math.abs(R-r-a),H=Math.abs(W-n-l),F=Math.abs(H/(d-p)*(d-c)+n),Y=(_-2*s)/3,T=t1=>{const q=Math.abs(H/(d-p)*(t1-c)),K=Math.abs(H/(d-p)*(c-t1)),X=t1>c?q:K;return{h:X,y:t1>c?F-X:F}},I={x:r,y:T(b).y,w:Y,h:T(b).h,text_y:b>=c?+T(b).y-12:+T(b).y+ +T(b).h+12+10},r1={x:r+Y+s,y:T(L).y,w:Y,h:T(L).h,text_y:L>=c?+T(L).y-12:+T(L).y+ +T(L).h+12+10},o1={x:r+Y*2+s*2,y:T(v).y,w:Y,h:T(v).h,text_y:v>=c?+T(v).y-12:+T(v).y+T(v).h+12+10};return{graphW:_,graphH:H,lineY:F,col_1:I,col_2:r1,col_3:o1,paddingLeft:r}},[R,W,p,d,c,s,r,a,n,l,b,L,v,z]);return C.useEffect(()=>{if(k&&k.current){const _=()=>{var F;const H=(F=k==null?void 0:k.current)==null?void 0:F.clientWidth;B(+H),g(e)};return _(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)}},[k,e]),i.jsxs(F7,{ref:k,width:"100%",height:"100%",viewBox:`0 0 ${R} ${W}`,xmlns:"http://www.w3.org/2000/svg",$col1Color:E,$col2Color:S,$col3Color:A,$dev:$,children:[$&&i.jsx("rect",{className:"dev-graph",width:j.graphW,height:j.graphH,x:j.paddingLeft,y:n}),i.jsx("text",{className:"col_1_text",textAnchor:"middle",x:j.col_1.x+j.col_1.w/2,y:j.col_1.text_y,children:D.format(b)+` ${M}`}),i.jsx("rect",{className:"col_1_rect",width:j.col_1.w,height:j.col_1.h,x:j.col_1.x,y:j.col_1.y}),i.jsx("line",{x1:j.col_1.x,x2:j.col_1.x+j.col_1.w,y1:W-27,y2:W-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"col_1_sub_text",textAnchor:"middle",x:j.col_1.x+j.col_1.w/2,y:W-5,children:u}),i.jsx("text",{className:"col_2_text",textAnchor:"middle",x:j.col_2.x+j.col_2.w/2,y:j.col_2.text_y,children:D.format(L)+` ${M}`}),i.jsx("rect",{className:"col_2_rect",width:j.col_2.w,height:j.col_2.h,x:j.col_2.x,y:j.col_2.y}),i.jsx("line",{x1:j.col_2.x,x2:j.col_2.x+j.col_2.w,y1:W-27,y2:W-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"col_1_sub_text",textAnchor:"middle",x:j.col_2.x+j.col_2.w/2,y:W-5,children:m}),i.jsx("text",{className:"col_3_text",textAnchor:"middle",x:j.col_3.x+j.col_3.w/2,y:j.col_3.text_y,children:D.format(v)+` ${M}`}),i.jsx("rect",{className:"col_3_rect",width:j.col_3.w,height:j.col_3.h,x:j.col_3.x,y:j.col_3.y}),i.jsx("line",{x1:j.col_3.x,x2:j.col_3.x+j.col_3.w,y1:W-27,y2:W-27,strokeWidth:1,stroke:"#D5D5D6"}),i.jsx("text",{className:"col_1_sub_text",textAnchor:"middle",x:j.col_3.x+j.col_3.w/2,y:W-5,children:w}),i.jsx("text",{className:"textLeft",textAnchor:"start",x:0,y:j.lineY-26,children:x}),i.jsx("text",{className:"textValueLeft",textAnchor:"start",x:0,y:j.lineY-6,children:D.format(y)+` ${M}`}),i.jsx("line",{x1:0,x2:R,y1:j.lineY,y2:j.lineY,strokeWidth:2,stroke:t.gray_950})]})},B7=V.div`
4264
4264
  background-color: ${t.gray_950};
4265
4265
  width: 244px;
4266
4266
  border-radius: 16px;
@@ -4340,7 +4340,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
4340
4340
  & > div:nth-child(2) {
4341
4341
  padding: 0px 12px 12px 12px;
4342
4342
  }
4343
- `,i2=({position:e={top:"100%",left:"0px"},float:r=!0,getValue:a,value:n="0",handleFooterButton:l=()=>{},offset:s=10,withinPortal:d=!1,relativeRef:c,...p})=>{const[x,y]=C.useState(n.toString()),u=C.useRef(null),[m,w]=C.useState({}),b=C.useCallback(()=>{var W;if(!u.current)return;const S=u.current,A=S.getBoundingClientRect(),M=(W=S.offsetParent)==null?void 0:W.getBoundingClientRect();if(!M)return;const $=window.innerHeight-M.bottom,D=M.top,F=A.height+100>$&&D>$,B={top:F?"auto":"100%",left:`${e.left}`,right:`${e.right}`,bottom:F?"100%":"auto",marginTop:F?"auto":`${s}px`,marginBottom:F?`${s}px`:"auto"};w(g=>JSON.stringify(g)===JSON.stringify(B)?g:B)},[]),L=C.useCallback(()=>{const S=u==null?void 0:u.current,A=c==null?void 0:c.current;if(!S||!A)return;const M=S.getBoundingClientRect(),$=A.getBoundingClientRect(),D=$.left+window.scrollX,k=$.top+window.scrollY,F=window.innerHeight-$.bottom,B=$.top,W=M.height+50>F&&B+150>F,g={top:W?`${k-M.height-10}px`:`${k+$.height}px`,left:`${D}px`,marginTop:W?"auto":"10px",marginBottom:W?"10px":"auto"};w(z=>JSON.stringify(z)===JSON.stringify(g)?z:g)},[]),v=C.useCallback(()=>d?L():b(),[d,b,L]);C.useEffect(()=>(v(),window.addEventListener("resize",v),window.addEventListener("scroll",v,!0),()=>{window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0)}),[v]);const E=(S,A=!1)=>{if(A){if(x==="0")return;if(x.length===1)return y("0");y(M=>M.substring(0,M.length-1));return}if(!(S==="."&&x.includes("."))){if(x==="0")return y(S==="."?M=>(M+S).toString():S);y(M=>(M+S).toString())}};return C.useEffect(()=>{a&&a(x)},[x]),i.jsxs(B7,{id:"rbro-numpad-wrapper",...p,$offset:s,ref:u,style:{top:m.top,left:m.left,bottom:m.bottom,right:m.right,margin:`${m.marginTop} auto ${m.marginBottom} auto`,visibility:Object.keys(m).length===0?"hidden":"visible",zIndex:"500"},children:[i.jsx("div",{children:i.jsxs("div",{children:[i.jsx("button",{onClick:()=>E("1"),children:i.jsx("span",{children:"1"})}),i.jsx("button",{onClick:()=>E("2"),children:i.jsx("span",{children:"2"})}),i.jsx("button",{onClick:()=>E("3"),children:i.jsx("span",{children:"3"})}),i.jsx("button",{onClick:()=>E("4"),children:i.jsx("span",{children:"4"})}),i.jsx("button",{onClick:()=>E("5"),children:i.jsx("span",{children:"5"})}),i.jsx("button",{onClick:()=>E("6"),children:i.jsx("span",{children:"6"})}),i.jsx("button",{onClick:()=>E("7"),children:i.jsx("span",{children:"7"})}),i.jsx("button",{onClick:()=>E("8"),children:i.jsx("span",{children:"8"})}),i.jsx("button",{onClick:()=>E("9"),children:i.jsx("span",{children:"9"})}),i.jsx("button",{disabled:!r,onClick:()=>r&&E("."),children:i.jsx("span",{children:r?".":""})}),i.jsx("button",{onClick:()=>E("0"),children:i.jsx("span",{children:"0"})}),i.jsx("button",{onClick:()=>E("",!0),children:i.jsx(O,{icon:"clear-rec",size:20,color:t.accent_500})})]})}),i.jsx("div",{children:i.jsx(g1,{onClick:l,label:"OK",variant:"primary",intent:"accent",size:"medium",width:"100%"})})]})},P7=V.div`
4343
+ `,i2=({position:e={top:"100%",left:"0px"},float:r=!0,getValue:a,value:n="0",handleFooterButton:l=()=>{},offset:s=10,withinPortal:d=!1,relativeRef:c,...p})=>{const[x,y]=C.useState(n.toString()),u=C.useRef(null),[m,w]=C.useState({}),b=C.useCallback(()=>{var W;if(!u.current)return;const S=u.current,A=S.getBoundingClientRect(),M=(W=S.offsetParent)==null?void 0:W.getBoundingClientRect();if(!M)return;const $=window.innerHeight-M.bottom,D=M.top,R=A.height+100>$&&D>$,B={top:R?"auto":"100%",left:`${e.left}`,right:`${e.right}`,bottom:R?"100%":"auto",marginTop:R?"auto":`${s}px`,marginBottom:R?`${s}px`:"auto"};w(g=>JSON.stringify(g)===JSON.stringify(B)?g:B)},[]),L=C.useCallback(()=>{const S=u==null?void 0:u.current,A=c==null?void 0:c.current;if(!S||!A)return;const M=S.getBoundingClientRect(),$=A.getBoundingClientRect(),D=$.left+window.scrollX,k=$.top+window.scrollY,R=window.innerHeight-$.bottom,B=$.top,W=M.height+50>R&&B+150>R,g={top:W?`${k-M.height-10}px`:`${k+$.height}px`,left:`${D}px`,marginTop:W?"auto":"10px",marginBottom:W?"10px":"auto"};w(z=>JSON.stringify(z)===JSON.stringify(g)?z:g)},[]),v=C.useCallback(()=>d?L():b(),[d,b,L]);C.useEffect(()=>(v(),window.addEventListener("resize",v),window.addEventListener("scroll",v,!0),()=>{window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0)}),[v]);const E=(S,A=!1)=>{if(A){if(x==="0")return;if(x.length===1)return y("0");y(M=>M.substring(0,M.length-1));return}if(!(S==="."&&x.includes("."))){if(x==="0")return y(S==="."?M=>(M+S).toString():S);y(M=>(M+S).toString())}};return C.useEffect(()=>{a&&a(x)},[x]),i.jsxs(B7,{id:"rbro-numpad-wrapper",...p,$offset:s,ref:u,style:{top:m.top,left:m.left,bottom:m.bottom,right:m.right,margin:`${m.marginTop} auto ${m.marginBottom} auto`,visibility:Object.keys(m).length===0?"hidden":"visible",zIndex:"500"},children:[i.jsx("div",{children:i.jsxs("div",{children:[i.jsx("button",{onClick:()=>E("1"),children:i.jsx("span",{children:"1"})}),i.jsx("button",{onClick:()=>E("2"),children:i.jsx("span",{children:"2"})}),i.jsx("button",{onClick:()=>E("3"),children:i.jsx("span",{children:"3"})}),i.jsx("button",{onClick:()=>E("4"),children:i.jsx("span",{children:"4"})}),i.jsx("button",{onClick:()=>E("5"),children:i.jsx("span",{children:"5"})}),i.jsx("button",{onClick:()=>E("6"),children:i.jsx("span",{children:"6"})}),i.jsx("button",{onClick:()=>E("7"),children:i.jsx("span",{children:"7"})}),i.jsx("button",{onClick:()=>E("8"),children:i.jsx("span",{children:"8"})}),i.jsx("button",{onClick:()=>E("9"),children:i.jsx("span",{children:"9"})}),i.jsx("button",{disabled:!r,onClick:()=>r&&E("."),children:i.jsx("span",{children:r?".":""})}),i.jsx("button",{onClick:()=>E("0"),children:i.jsx("span",{children:"0"})}),i.jsx("button",{onClick:()=>E("",!0),children:i.jsx(O,{icon:"clear-rec",size:20,color:t.accent_500})})]})}),i.jsx("div",{children:i.jsx(g1,{onClick:l,label:"OK",variant:"primary",intent:"accent",size:"medium",width:"100%"})})]})},P7=V.div`
4344
4344
  border-radius: 8px;
4345
4345
  border: 1px solid ${t.gray_200};
4346
4346
  overflow: hidden;
@@ -4916,7 +4916,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
4916
4916
  gap: 8px;
4917
4917
  border-top: 1px solid ${t.gray_150};
4918
4918
  }
4919
- `,G7=({id:e,name:r,placeholder:a="Selecteaza",value:n={judet:"",localitate:"",clasificare:""},setValue:l,size:s="medium",intent:d="default",disabled:c=!1,...p})=>{const x=C.useRef(null),[y,u]=C.useState(!1),[m,w]=C.useState(""),[b,L]=C.useState(!1),[v,E]=C.useState(""),[S,A]=C.useState(""),[M,$]=C.useState(""),[D,k]=C.useState(""),F=C.useRef(!1),B=C.useMemo(()=>{var H;return!v||!b?[]:((H=Oe.find(R=>R.title.toLowerCase()===v.toLowerCase()))==null?void 0:H.localitati)??[]},[v,b]),W=C.useMemo(()=>{const H=m.toLowerCase();return H?(b?B:Oe).filter(R=>R.title.toLowerCase().includes(H)):b?B:Oe},[m,b,B]),g=C.useCallback(H=>{w(H.target.value)},[]),z=C.useCallback(H=>{if(F.current=!0,!b){E(H.title);return}A(H.title),$(H.clasificare??"")},[b]),j=C.useCallback(()=>{F.current=!0,L(!1),w(""),A(""),$("")},[]),_=C.useCallback(()=>{if(F.current=!0,!b&&v){L(!0),w("");return}if(!S)return;const H=`${v} - ${S}`;L(!0),u(!1),k(H),l&&l({judet:v,localitate:S,clasificare:M})},[b,v,S,M,l]);return C.useEffect(()=>{const H=R=>{if(x.current&&!x.current.contains(R.target)){if(u(!1),n!=null&&n.judet){E(n==null?void 0:n.judet),L(!0),n!=null&&n.localitate&&(A(n==null?void 0:n.localitate),$((n==null?void 0:n.clasificare)??""));return}E(""),A(""),$(""),L(!1)}};if(y)return document.addEventListener("mousedown",H),()=>{document.removeEventListener("mousedown",H)}},[x,y]),C.useEffect(()=>{if(F.current)return;let H="";n!=null&&n.judet&&(E(n==null?void 0:n.judet),H=`${n==null?void 0:n.judet}`,L(!0)),n!=null&&n.localitate&&(A(n==null?void 0:n.localitate),n!=null&&n.judet&&(H=`${n==null?void 0:n.judet} - ${n==null?void 0:n.localitate}`)),n!=null&&n.clasificare&&$(n==null?void 0:n.clasificare),k(H)},[n]),i.jsxs(T7,{ref:x,$size:s,$intent:d,$disabled:c,$isOpen:y,...p,children:[i.jsx("input",{readOnly:!0,placeholder:a,id:e,type:"text",name:r,value:D,onClick:()=>!c&&u(!y),onChange:H=>H.preventDefault()}),i.jsx("div",{children:i.jsx(O,{icon:"city",size:20,color:c?t.info_500_40:t.info_700})}),y&&i.jsxs(I7,{$isJudetPicked:b,children:[i.jsxs("div",{children:[i.jsx("span",{children:b?`Alege localitatea in ${v}`:"Alege judetul"}),i.jsxs("div",{children:[i.jsx("div",{children:i.jsx(O,{icon:"search",size:20,color:t.gray_500})}),i.jsx("input",{onChange:g,value:m,type:"text"})]})]}),i.jsx("div",{children:i.jsx("div",{children:W.length>0?W.map((H,R)=>i.jsx("div",{"data-active":b?S===H.title:v===H.title,onClick:()=>z(H),children:i.jsx("span",{children:H.title})},R)):i.jsx("div",{className:"k3m8n9p4v2",children:i.jsx("span",{children:"Nu au fost gasite rezultate."})})})}),i.jsxs("div",{children:[b&&i.jsx(g1,{label:"Schimba judetul",intent:"accent",variant:"secondaryOutlined",size:"medium",onClick:j}),i.jsx(g1,{label:"Continua",intent:"accent",variant:"primary",size:"medium",onClick:_})]})]})]})},st={medium:h`
4919
+ `,G7=({id:e,name:r,placeholder:a="Selecteaza",value:n={judet:"",localitate:"",clasificare:""},setValue:l,size:s="medium",intent:d="default",disabled:c=!1,...p})=>{const x=C.useRef(null),[y,u]=C.useState(!1),[m,w]=C.useState(""),[b,L]=C.useState(!1),[v,E]=C.useState(""),[S,A]=C.useState(""),[M,$]=C.useState(""),[D,k]=C.useState(""),R=C.useRef(!1),B=C.useMemo(()=>{var H;return!v||!b?[]:((H=Oe.find(F=>F.title.toLowerCase()===v.toLowerCase()))==null?void 0:H.localitati)??[]},[v,b]),W=C.useMemo(()=>{const H=m.toLowerCase();return H?(b?B:Oe).filter(F=>F.title.toLowerCase().includes(H)):b?B:Oe},[m,b,B]),g=C.useCallback(H=>{w(H.target.value)},[]),z=C.useCallback(H=>{if(R.current=!0,!b){E(H.title);return}A(H.title),$(H.clasificare??"")},[b]),j=C.useCallback(()=>{R.current=!0,L(!1),w(""),A(""),$("")},[]),_=C.useCallback(()=>{if(R.current=!0,!b&&v){L(!0),w("");return}if(!S)return;const H=`${v} - ${S}`;L(!0),u(!1),k(H),l&&l({judet:v,localitate:S,clasificare:M})},[b,v,S,M,l]);return C.useEffect(()=>{const H=F=>{if(x.current&&!x.current.contains(F.target)){if(u(!1),n!=null&&n.judet){E(n==null?void 0:n.judet),L(!0),n!=null&&n.localitate&&(A(n==null?void 0:n.localitate),$((n==null?void 0:n.clasificare)??""));return}E(""),A(""),$(""),L(!1)}};if(y)return document.addEventListener("mousedown",H),()=>{document.removeEventListener("mousedown",H)}},[x,y]),C.useEffect(()=>{if(R.current)return;let H="";n!=null&&n.judet&&(E(n==null?void 0:n.judet),H=`${n==null?void 0:n.judet}`,L(!0)),n!=null&&n.localitate&&(A(n==null?void 0:n.localitate),n!=null&&n.judet&&(H=`${n==null?void 0:n.judet} - ${n==null?void 0:n.localitate}`)),n!=null&&n.clasificare&&$(n==null?void 0:n.clasificare),k(H)},[n]),i.jsxs(T7,{ref:x,$size:s,$intent:d,$disabled:c,$isOpen:y,...p,children:[i.jsx("input",{readOnly:!0,placeholder:a,id:e,type:"text",name:r,value:D,onClick:()=>!c&&u(!y),onChange:H=>H.preventDefault()}),i.jsx("div",{children:i.jsx(O,{icon:"city",size:20,color:c?t.info_500_40:t.info_700})}),y&&i.jsxs(I7,{$isJudetPicked:b,children:[i.jsxs("div",{children:[i.jsx("span",{children:b?`Alege localitatea in ${v}`:"Alege judetul"}),i.jsxs("div",{children:[i.jsx("div",{children:i.jsx(O,{icon:"search",size:20,color:t.gray_500})}),i.jsx("input",{onChange:g,value:m,type:"text"})]})]}),i.jsx("div",{children:i.jsx("div",{children:W.length>0?W.map((H,F)=>i.jsx("div",{"data-active":b?S===H.title:v===H.title,onClick:()=>z(H),children:i.jsx("span",{children:H.title})},F)):i.jsx("div",{className:"k3m8n9p4v2",children:i.jsx("span",{children:"Nu au fost gasite rezultate."})})})}),i.jsxs("div",{children:[b&&i.jsx(g1,{label:"Schimba judetul",intent:"accent",variant:"secondaryOutlined",size:"medium",onClick:j}),i.jsx(g1,{label:"Continua",intent:"accent",variant:"primary",size:"medium",onClick:_})]})]})]})},st={medium:h`
4920
4920
  height: 40px;
4921
4921
  font-size: 14px;
4922
4922
  padding: 0px 70px 0px 12px;
@@ -4993,5 +4993,5 @@ See https://s-c.sh/2BAXzed for more info.`),window[de]+=1);const A3=e=>o.createE
4993
4993
  }
4994
4994
  }
4995
4995
  }
4996
- `,U7=({id:e,name:r,disabled:a,size:n="medium",intent:l="default",items:s,getItems:d,getValue:c,...p})=>{const[x,y]=C.useState(!1),[u,m]=C.useState(""),[w,b]=C.useState("0"),[L,v]=C.useState("0"),E={nevoi_personale:"Nevoi personale",card_de_credit:"Card de credit",overdraft:"Overdraft",credit_ipotecar:"Credit ipotecar"},S=C.useMemo(()=>!s||s.length===0?[]:s.map((H,R)=>{if(H.tipCredit==="card_de_credit"||H.tipCredit==="overdraft"){const Y=Number(H.limitaAprobata)/100*3;return{id:String(R+1),rata:String(Y.toFixed(0)),...H}}return{id:String(R+1),limitaAprobata:"0",...H}}),[s]),[A,M]=C.useState(S||[]),$=[{label:"Card de credit",value:"card_de_credit"},{label:"Nevoi personale",value:"nevoi_personale"},{label:"Overdraft",value:"overdraft"},{label:"Credit ipotecar",value:"credit_ipotecar"}],D=()=>{y(!0)},k=C.useMemo(()=>({rata:u==="card_de_credit"||u==="overdraft",limitaAprobata:u==="nevoi_personale"||u==="credit_ipotecar"}),[u]),F=C.useMemo(()=>{const _=Math.round(A.reduce((H,R)=>H+Number(R.rata),0)).toFixed(0);return c&&c(String(_)),_},[A]),B=(_,H)=>{if(H==="limitaAprobata"&&k.limitaAprobata||H==="rata"&&k.rata)return;const R=_==="0"||_.startsWith("0.")?_:_.replace(/^0+/,"");if(H==="limitaAprobata"){const Y=Number(R)/100*3;v(String(Y.toFixed(0)))}H==="limitaAprobata"?b(R):v(R)},W=(_,H,R)=>{const Y=R==="0"||R.startsWith("0.")?R:R.replace(/^0+/,"");M(T=>{if(H==="limitaAprobata"){const I=Number(Y)/100*3;return T.map(r1=>r1.id===_?{...r1,limitaAprobata:Y,rata:String(I.toFixed(0))}:r1)}return T.map(I=>I.id===_?{...I,rata:Y}:I)})},g=C.useCallback(()=>{u&&(k.rata&&(!Number(w)||Number(w)<1)||k.limitaAprobata&&(!Number(L)||Number(L)<1)||(M(_=>[{id:String(_.length+1),tipCredit:u,limitaAprobata:w,rata:L},..._]),b("0"),v("0"),m("")))},[k,w,L,u]),z=_=>{M(H=>H.filter(R=>R.id!==_))},j=()=>{M([]),b("0"),v("0"),m("")};return C.useEffect(()=>{d&&d(A)},[A]),i.jsxs(i.Fragment,{children:[i.jsx(re,{title:"Ratele tale",show:x,onClose:()=>y(!1),contentPadding:"0px",contentOverflow:"hidden",contentBodyStyle:{display:"flex",flexDirection:"column"},children:i.jsx(re.ContentSlot,{children:i.jsxs(p1,{direction:"column",style:{overflow:"hidden"},children:[i.jsxs(p1,{items:"flex-end",gap:24,padding:"16px 24px 16px 24px",style:{borderBottom:`1px solid ${t.gray_1000_10}`,flexShrink:0},children:[i.jsxs(p1,{items:"center",gap:16,grow:1,shrink:1,basis:"0%",children:[i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:i.jsx(ie,{label:"Tipul creditului",labelFor:"tipul_creditului",children:i.jsx(Jt,{dropdownContentWidth:"120%",data:$,value:u,setValue:_=>{m(_),b("0"),v("0")},size:"small"})})}),i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:i.jsx(ie,{label:"Limita aprobata",children:i.jsx(ee,{disabled:!u||k.limitaAprobata,type:"number",inputMode:"numeric",rightText:"RON",id:"limita_aprobata",name:"limita_aprobata",numpad:!0,numpadFloatNumber:!1,numpadOffset:10,value:w,setValue:_=>B(_,"limitaAprobata"),size:"small",numpadPortal:!0})})}),i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:i.jsx(ie,{label:"Rata",children:i.jsx(ee,{disabled:!u||k.rata,type:"number",rightText:"RON",id:"rata",name:"rata",value:L,setValue:_=>B(_,"rata"),size:"small",numpad:!0,numpadFloatNumber:!1,numpadOffset:10,numpadPortal:!0})})})]}),i.jsx(g1,{disabled:!u,label:"Adauga",variant:"secondaryOutlined",intent:"info",size:"small",width:"90px",onClick:g})]}),i.jsx(p1,{direction:"column",style:{overflow:"hidden"},children:i.jsx(p1,{direction:"column",padding:"0px 24px 0px 24px",height:"100%",style:{overflow:"scroll",maxHeight:"273px",minHeight:"273px"},children:A.map((_,H)=>i.jsxs(p1,{items:"center",width:"100%",gap:24,padding:H===0?"16px 0px 8px 0px":A.length-1===H?"8px 0px 16px 0px":"8px 0px 8px 0px",children:[i.jsxs(p1,{items:"center",gap:16,grow:1,shrink:1,basis:"0%",children:[i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:i.jsx(ve,{text:E[_.tipCredit],textFontSize:16,textFontWeight:500,textColor:"gray_950"})}),i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:_.tipCredit==="card_de_credit"||_.tipCredit==="overdraft"?i.jsx(ee,{id:`${_.id}_limita_aprobata`,name:`${_.id}_limita_aprobata`,rightText:"RON",size:"small",value:_.limitaAprobata,setValue:R=>W(_.id,"limitaAprobata",R),numpad:!0,numpadFloatNumber:!1,numpadOffset:10,numpadPortal:!0}):i.jsx(i.Fragment,{})}),i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:i.jsx(ee,{disabled:_.tipCredit==="card_de_credit"||_.tipCredit==="overdraft",id:`${_.id}_rata`,name:`${_.id}_rata`,rightText:"RON",size:"small",value:_.rata,setValue:R=>W(_.id,"rata",R),numpad:!0,numpadFloatNumber:!1,numpadOffset:10,numpadPortal:!0})})]}),i.jsx(g1,{label:"Sterge",variant:"secondaryOutlined",intent:"danger",size:"small",width:"90px",onClick:()=>z(_.id)})]},_.id))})}),i.jsxs(p1,{items:"center",justify:"space-between",gap:32,padding:"16px 24px 16px 24px",style:{borderTop:`1px solid ${t.gray_1000_10}`,flexShrink:0,flexBasis:"0%"},children:[i.jsx(g1,{size:"small",label:"Reseteaza",variant:"secondaryOutlined",intent:"accent",onClick:j,width:"90px"}),i.jsxs(p1,{items:"center",gap:24,children:[i.jsx(ve,{gap:0,align:"right",label:"Total rate",labelFontSize:14,labelColor:"gray_700",text:`${F} RON`,textFontSize:16,textFontWeight:500}),i.jsx(g1,{disabled:!A.length,size:"small",width:"90px",label:"Confirma",variant:"primary",intent:"accent",onClick:()=>y(!1)})]})]})]})})}),i.jsx(Y7,{$intent:l,$size:n,$disabled:a,$isOpen:x,...p,children:i.jsxs("div",{className:"x7k9m2p4n5",children:[i.jsx("input",{readOnly:!0,id:e,type:"text",name:r,value:A.length?F:"0",onClick:()=>!a&&D(),onChange:_=>_.preventDefault()}),i.jsxs("div",{children:[i.jsx("span",{children:"RON"}),i.jsx(O,{icon:"office-supplies",size:20,color:t.info_700})]})]})})]})};exports.Alert=Ar;exports.Bar=ur;exports.BreadcrumbItem=E5;exports.Breadcrumbs=D5;exports.Button=g1;exports.Checkbox=Z6;exports.CityPicker=G7;exports.ConfigurationSaveInfo=w6;exports.Container=i6;exports.Content=n6;exports.ContentDropdown=R7;exports.DashboardSmallShortcut=p7;exports.Datepicker=Xr;exports.Divider=dr;exports.Dropdown=Jt;exports.Flex=p1;exports.FormField=ie;exports.GraficConfiguratiePensii=D7;exports.GraficFondInvestitii=v7;exports.GraficFondInvestitiiInflatie=z7;exports.GraficPensii=r7;exports.GraficPlanInvestitii=Z7;exports.GraficPropunerePensii=E7;exports.Icon=O;exports.IconButton=v1;exports.IconCard=Vr;exports.ImageCard=Hr;exports.InPageTab=N7;exports.InvestmentFundItem=m7;exports.LabeledText=ve;exports.Layout=Q5;exports.Logo=W5;exports.Modal=re;exports.Numpad=i2;exports.ObjectiveCard=B6;exports.ObjectiveCardSmall=sr;exports.PageMessage=N6;exports.PageTitle=ar;exports.Pill=c7;exports.PlanulFinanciarTeaser=W6;exports.ProductTeaser=d2;exports.ProductTeaserButton=Bt;exports.ProductTeaserParameters=kr;exports.ProductTeaserStep=br;exports.ProposalPensii=qt;exports.PropunereAsigurariCalatorie=r0;exports.PropunereFlexicredit=Ft;exports.PropunereFondInvestitii=t0;exports.PropunerePlanInvestitii=Xt;exports.Radio=l7;exports.RatesCalculator=U7;exports.Section=At;exports.SegmentedTabs=x6;exports.SelectionPill=g7;exports.ShortcutCard=L6;exports.Sidebar=Se;exports.SidebarItem=K5;exports.Slider=tr;exports.Spinner=je;exports.StepTab=yr;exports.StepsBar=e0;exports.Tab=C6;exports.TextInput=ee;exports.TimedButton=gr;exports.colors=t;
4996
+ `,U7=({id:e,name:r,disabled:a,size:n="medium",intent:l="default",items:s,getItems:d,getValue:c,...p})=>{const[x,y]=C.useState(!1),[u,m]=C.useState(""),[w,b]=C.useState("0"),[L,v]=C.useState("0"),E={nevoi_personale:"Nevoi personale",card_de_credit:"Card de credit",overdraft:"Overdraft",credit_ipotecar:"Credit ipotecar"},S=C.useMemo(()=>!s||s.length===0?[]:s.map((H,F)=>{if(H.tipCredit==="card_de_credit"||H.tipCredit==="overdraft"){const Y=Number(H.limitaAprobata)/100*3;return{id:String(F+1),rata:String(Y.toFixed(0)),...H}}return{id:String(F+1),limitaAprobata:"0",...H}}),[s]),[A,M]=C.useState(S||[]),$=[{label:"Card de credit",value:"card_de_credit"},{label:"Nevoi personale",value:"nevoi_personale"},{label:"Overdraft",value:"overdraft"},{label:"Credit ipotecar",value:"credit_ipotecar"}],D=()=>{y(!0)},k=C.useMemo(()=>({rata:u==="card_de_credit"||u==="overdraft",limitaAprobata:u==="nevoi_personale"||u==="credit_ipotecar"}),[u]),R=C.useMemo(()=>Math.round(A.reduce((_,H)=>_+Number(H.rata),0)).toFixed(0),[A]);C.useEffect(()=>{c&&c(String(R))},[A,R]);const B=(_,H)=>{if(H==="limitaAprobata"&&k.limitaAprobata||H==="rata"&&k.rata)return;const F=_==="0"||_.startsWith("0.")?_:_.replace(/^0+/,"");if(H==="limitaAprobata"){const Y=Number(F)/100*3;v(String(Y.toFixed(0)))}H==="limitaAprobata"?b(F):v(F)},W=(_,H,F)=>{const Y=F==="0"||F.startsWith("0.")?F:F.replace(/^0+/,"");M(T=>{if(H==="limitaAprobata"){const I=Number(Y)/100*3;return T.map(r1=>r1.id===_?{...r1,limitaAprobata:Y,rata:String(I.toFixed(0))}:r1)}return T.map(I=>I.id===_?{...I,rata:Y}:I)})},g=C.useCallback(()=>{u&&(k.rata&&(!Number(w)||Number(w)<1)||k.limitaAprobata&&(!Number(L)||Number(L)<1)||(M(_=>[{id:String(_.length+1),tipCredit:u,limitaAprobata:w,rata:L},..._]),b("0"),v("0"),m("")))},[k,w,L,u]),z=_=>{M(H=>H.filter(F=>F.id!==_))},j=()=>{M([]),b("0"),v("0"),m("")};return C.useEffect(()=>{d&&d(A)},[A]),i.jsxs(i.Fragment,{children:[i.jsx(re,{title:"Ratele tale",show:x,onClose:()=>y(!1),contentPadding:"0px",contentOverflow:"hidden",contentBodyStyle:{display:"flex",flexDirection:"column"},children:i.jsx(re.ContentSlot,{children:i.jsxs(p1,{direction:"column",style:{overflow:"hidden"},children:[i.jsxs(p1,{items:"flex-end",gap:24,padding:"16px 24px 16px 24px",style:{borderBottom:`1px solid ${t.gray_1000_10}`,flexShrink:0},children:[i.jsxs(p1,{items:"center",gap:16,grow:1,shrink:1,basis:"0%",children:[i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:i.jsx(ie,{label:"Tipul creditului",labelFor:"tipul_creditului",children:i.jsx(Jt,{dropdownContentWidth:"120%",data:$,value:u,setValue:_=>{m(_),b("0"),v("0")},size:"small"})})}),i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:i.jsx(ie,{label:"Limita aprobata",children:i.jsx(ee,{disabled:!u||k.limitaAprobata,type:"number",inputMode:"numeric",rightText:"RON",id:"limita_aprobata",name:"limita_aprobata",numpad:!0,numpadFloatNumber:!1,numpadOffset:10,value:w,setValue:_=>B(_,"limitaAprobata"),size:"small",numpadPortal:!0})})}),i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:i.jsx(ie,{label:"Rata",children:i.jsx(ee,{disabled:!u||k.rata,type:"number",rightText:"RON",id:"rata",name:"rata",value:L,setValue:_=>B(_,"rata"),size:"small",numpad:!0,numpadFloatNumber:!1,numpadOffset:10,numpadPortal:!0})})})]}),i.jsx(g1,{disabled:!u,label:"Adauga",variant:"secondaryOutlined",intent:"info",size:"small",width:"90px",onClick:g})]}),i.jsx(p1,{direction:"column",style:{overflow:"hidden"},children:i.jsx(p1,{direction:"column",padding:"0px 24px 0px 24px",height:"100%",style:{overflow:"scroll",maxHeight:"273px",minHeight:"273px"},children:A.map((_,H)=>i.jsxs(p1,{items:"center",width:"100%",gap:24,padding:H===0?"16px 0px 8px 0px":A.length-1===H?"8px 0px 16px 0px":"8px 0px 8px 0px",children:[i.jsxs(p1,{items:"center",gap:16,grow:1,shrink:1,basis:"0%",children:[i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:i.jsx(ve,{text:E[_.tipCredit],textFontSize:16,textFontWeight:500,textColor:"gray_950"})}),i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:_.tipCredit==="card_de_credit"||_.tipCredit==="overdraft"?i.jsx(ee,{id:`${_.id}_limita_aprobata`,name:`${_.id}_limita_aprobata`,rightText:"RON",size:"small",value:_.limitaAprobata,setValue:F=>W(_.id,"limitaAprobata",F),numpad:!0,numpadFloatNumber:!1,numpadOffset:10,numpadPortal:!0}):i.jsx(i.Fragment,{})}),i.jsx(p1,{grow:1,shrink:1,basis:"0%",children:i.jsx(ee,{disabled:_.tipCredit==="card_de_credit"||_.tipCredit==="overdraft",id:`${_.id}_rata`,name:`${_.id}_rata`,rightText:"RON",size:"small",value:_.rata,setValue:F=>W(_.id,"rata",F),numpad:!0,numpadFloatNumber:!1,numpadOffset:10,numpadPortal:!0})})]}),i.jsx(g1,{label:"Sterge",variant:"secondaryOutlined",intent:"danger",size:"small",width:"90px",onClick:()=>z(_.id)})]},_.id))})}),i.jsxs(p1,{items:"center",justify:"space-between",gap:32,padding:"16px 24px 16px 24px",style:{borderTop:`1px solid ${t.gray_1000_10}`,flexShrink:0,flexBasis:"0%"},children:[i.jsx(g1,{size:"small",label:"Reseteaza",variant:"secondaryOutlined",intent:"accent",onClick:j,width:"90px"}),i.jsxs(p1,{items:"center",gap:24,children:[i.jsx(ve,{gap:0,align:"right",label:"Total rate",labelFontSize:14,labelColor:"gray_700",text:`${R} RON`,textFontSize:16,textFontWeight:500}),i.jsx(g1,{disabled:!A.length,size:"small",width:"90px",label:"Confirma",variant:"primary",intent:"accent",onClick:()=>y(!1)})]})]})]})})}),i.jsx(Y7,{$intent:l,$size:n,$disabled:a,$isOpen:x,...p,children:i.jsxs("div",{className:"x7k9m2p4n5",children:[i.jsx("input",{readOnly:!0,id:e,type:"text",name:r,value:A.length?R:"0",onClick:()=>!a&&D(),onChange:_=>_.preventDefault()}),i.jsxs("div",{children:[i.jsx("span",{children:"RON"}),i.jsx(O,{icon:"office-supplies",size:20,color:t.info_700})]})]})})]})};exports.Alert=Ar;exports.Bar=ur;exports.BreadcrumbItem=E5;exports.Breadcrumbs=D5;exports.Button=g1;exports.Checkbox=Z6;exports.CityPicker=G7;exports.ConfigurationSaveInfo=w6;exports.Container=i6;exports.Content=n6;exports.ContentDropdown=R7;exports.DashboardSmallShortcut=p7;exports.Datepicker=Xr;exports.Divider=dr;exports.Dropdown=Jt;exports.Flex=p1;exports.FormField=ie;exports.GraficConfiguratiePensii=D7;exports.GraficFondInvestitii=v7;exports.GraficFondInvestitiiInflatie=z7;exports.GraficPensii=r7;exports.GraficPlanInvestitii=Z7;exports.GraficPropunerePensii=E7;exports.Icon=O;exports.IconButton=v1;exports.IconCard=Vr;exports.ImageCard=Hr;exports.InPageTab=N7;exports.InvestmentFundItem=m7;exports.LabeledText=ve;exports.Layout=Q5;exports.Logo=W5;exports.Modal=re;exports.Numpad=i2;exports.ObjectiveCard=B6;exports.ObjectiveCardSmall=sr;exports.PageMessage=N6;exports.PageTitle=ar;exports.Pill=c7;exports.PlanulFinanciarTeaser=W6;exports.ProductTeaser=d2;exports.ProductTeaserButton=Bt;exports.ProductTeaserParameters=kr;exports.ProductTeaserStep=br;exports.ProposalPensii=qt;exports.PropunereAsigurariCalatorie=r0;exports.PropunereFlexicredit=Ft;exports.PropunereFondInvestitii=t0;exports.PropunerePlanInvestitii=Xt;exports.Radio=l7;exports.RatesCalculator=U7;exports.Section=At;exports.SegmentedTabs=x6;exports.SelectionPill=g7;exports.ShortcutCard=L6;exports.Sidebar=Se;exports.SidebarItem=K5;exports.Slider=tr;exports.Spinner=je;exports.StepTab=yr;exports.StepsBar=e0;exports.Tab=C6;exports.TextInput=ee;exports.TimedButton=gr;exports.colors=t;
4997
4997
  //# sourceMappingURL=index.cjs.js.map