rbro-tat-uds 1.6.28 → 1.6.29
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 P3;function I9(){return P3||(P3=1,process.env.NODE_ENV!=="production"&&function(){var t=u,i=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),C=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),E=Symbol.iterator,
|
17
|
+
*/var P3;function I9(){return P3||(P3=1,process.env.NODE_ENV!=="production"&&function(){var t=u,i=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),C=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),E=Symbol.iterator,x="@@iterator";function v(f){if(f===null||typeof f!="object")return null;var P=E&&f[E]||f[x];return typeof P=="function"?P:null}var $=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function B(f){{for(var P=arguments.length,O=new Array(P>1?P-1:0),I=1;I<P;I++)O[I-1]=arguments[I];R("error",f,O)}}function R(f,P,O){{var I=$.ReactDebugCurrentFrame,e1=I.getStackAddendum();e1!==""&&(P+="%s",O=O.concat([e1]));var i1=O.map(function(J){return String(J)});i1.unshift("Warning: "+P),Function.prototype.apply.call(console[f],console,i1)}}var M=!1,y=!1,H=!1,Z=!1,S=!1,k;k=Symbol.for("react.module.reference");function z(f){return!!(typeof f=="string"||typeof f=="function"||f===n||f===c||S||f===r||f===h||f===m||Z||f===_||M||y||H||typeof f=="object"&&f!==null&&(f.$$typeof===g||f.$$typeof===p||f.$$typeof===o||f.$$typeof===C||f.$$typeof===s||f.$$typeof===k||f.getModuleId!==void 0))}function V(f,P,O){var I=f.displayName;if(I)return I;var e1=P.displayName||P.name||"";return e1!==""?O+"("+e1+")":O}function A(f){return f.displayName||"Context"}function b(f){if(f==null)return null;if(typeof f.tag=="number"&&B("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 c:return"Profiler";case r:return"StrictMode";case h:return"Suspense";case m:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case C:var P=f;return A(P)+".Consumer";case o:var O=f;return A(O._context)+".Provider";case s:return V(f,f.render,"ForwardRef");case p:var I=f.displayName||null;return I!==null?I:b(f.type)||"Memo";case g:{var e1=f,i1=e1._payload,J=e1._init;try{return b(J(i1))}catch{return null}}}return null}var w=Object.assign,j=0,D,W,G,T,l1,a1,Q;function X(){}X.__reactDisabledLog=!0;function K(){{if(j===0){D=console.log,W=console.info,G=console.warn,T=console.error,l1=console.group,a1=console.groupCollapsed,Q=console.groupEnd;var f={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}j++}}function q(){{if(j--,j===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},f,{value:D}),info:w({},f,{value:W}),warn:w({},f,{value:G}),error:w({},f,{value:T}),group:w({},f,{value:l1}),groupCollapsed:w({},f,{value:a1}),groupEnd:w({},f,{value:Q})})}j<0&&B("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var L1=$.ReactCurrentDispatcher,c1;function r1(f,P,O){{if(c1===void 0)try{throw Error()}catch(e1){var I=e1.stack.trim().match(/\n( *(at )?)/);c1=I&&I[1]||""}return`
|
18
18
|
`+c1+f}}var f1=!1,V1;{var s1=typeof WeakMap=="function"?WeakMap:Map;V1=new s1}function m1(f,P){if(!f||f1)return"";{var O=V1.get(f);if(O!==void 0)return O}var I;f1=!0;var e1=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i1;i1=L1.current,L1.current=null,K();try{if(P){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($1){I=$1}Reflect.construct(f,[],J)}else{try{J.call()}catch($1){I=$1}f.call(J.prototype)}}else{try{throw Error()}catch($1){I=$1}f()}}catch($1){if($1&&I&&typeof $1.stack=="string"){for(var U=$1.stack.split(`
|
19
19
|
`),g1=I.stack.split(`
|
20
20
|
`),o1=U.length-1,C1=g1.length-1;o1>=1&&C1>=0&&U[o1]!==g1[C1];)C1--;for(;o1>=1&&C1>=0;o1--,C1--)if(U[o1]!==g1[C1]){if(o1!==1||C1!==1)do if(o1--,C1--,C1<0||U[o1]!==g1[C1]){var v1=`
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
Check the render method of \``+f+"`."}return""}}function H9(f){return""}var F3={};function j9(f){{var P=B3();if(!P){var O=typeof f=="string"?f:f.displayName||f.name;O&&(P=`
|
24
24
|
|
25
|
-
Check the top-level render call using <`+O+">.")}return P}}function H3(f,P){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var O=j9(P);if(F3[O])return;F3[O]=!0;var I="";f&&f._owner&&f._owner!==T2.current&&(I=" It was passed a child from "+b(f._owner.type)+"."),X1(f),B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',O,I),X1(null)}}function j3(f,P){{if(typeof f!="object")return;if(O2(f))for(var O=0;O<f.length;O++){var I=f[O];W2(I)&&H3(I,P)}else if(W2(f))f._store&&(f._store.validated=!0);else if(f){var e1=v(f);if(typeof e1=="function"&&e1!==f.entries)for(var i1=e1.call(f),J;!(J=i1.next()).done;)W2(J.value)&&H3(J.value,P)}}}function k9(f){{var P=f.type;if(P==null||typeof P=="string")return;var O;if(typeof P=="function")O=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===s||P.$$typeof===p))O=P.propTypes;else return;if(O){var I=b(P);V9(O,f.props,"prop",I,f)}else if(P.PropTypes!==void 0&&!I2){I2=!0;var e1=b(P);B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",e1||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function S9(f){{for(var P=Object.keys(f.props),O=0;O<P.length;O++){var I=P[O];if(I!=="children"&&I!=="key"){X1(f),B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),X1(null);break}}f.ref!==null&&(X1(f),B("Invalid attribute `ref` supplied to `React.Fragment`."),X1(null))}}function k3(f,P,O,I,e1,i1){{var J=z(f);if(!J){var U="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g1=H9();g1?U+=g1:U+=B3();var o1;f===null?o1="null":O2(f)?o1="array":f!==void 0&&f.$$typeof===i?(o1="<"+(b(f.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):o1=typeof f,B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",o1,U)}var C1=F9(f,P,O,e1,i1);if(C1==null)return C1;if(J){var v1=P.children;if(v1!==void 0)if(I)if(O2(v1)){for(var J1=0;J1<v1.length;J1++)j3(v1[J1],f);Object.freeze&&Object.freeze(v1)}else B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else j3(v1,f)}return f===n?S9(C1):k9(C1),C1}}function A9(f,P,O){return k3(f,P,O,!0)}function P9(f,P,O){return k3(f,P,O,!1)}var D9=P9,z9=A9;o2.Fragment=n,o2.jsx=D9,o2.jsxs=z9}()),o2}process.env.NODE_ENV==="production"?l3.exports=T9():l3.exports=I9();var L=l3.exports,u1=function(){return u1=Object.assign||function(i){for(var a,n=1,r=arguments.length;n<r;n++){a=arguments[n];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(i[c]=a[c])}return i},u1.apply(this,arguments)};function N1(t,i,a){if(a||arguments.length===2)for(var n=0,r=i.length,c;n<r;n++)(c||!(n in i))&&(c||(c=Array.prototype.slice.call(i,0,n)),c[n]=i[n]);return t.concat(c||Array.prototype.slice.call(i))}function W9(t){var i=Object.create(null);return function(a){return i[a]===void 0&&(i[a]=t(a)),i[a]}}var G9=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Y9=W9(function(t){return G9.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),n1="-ms-",s2="-moz-",t1="-webkit-",M6="comm",F2="rule",u3="decl",q9="@import",_6="@keyframes",U9="@layer",y6=Math.abs,m3=String.fromCharCode,L3=Object.assign;function X9(t,i){return p1(t,0)^45?(((i<<2^p1(t,0))<<2^p1(t,1))<<2^p1(t,2))<<2^p1(t,3):0}function w6(t){return t.trim()}function B1(t,i){return(t=i.exec(t))?t[0]:t}function Y(t,i,a){return t.replace(i,a)}function V2(t,i,a){return t.indexOf(i,a)}function p1(t,i){return t.charCodeAt(i)|0}function e2(t,i,a){return t.slice(i,a)}function b1(t){return t.length}function Z6(t){return t.length}function C2(t,i){return i.push(t),t}function J9(t,i){return t.map(i).join("")}function D3(t,i){return t.filter(function(a){return!B1(a,i)})}var H2=1,t2=1,b6=0,_1=0,d1=0,a2="";function j2(t,i,a,n,r,c,o,C){return{value:t,root:i,parent:a,type:n,props:r,children:c,line:H2,column:t2,length:o,return:"",siblings:C}}function j1(t,i){return L3(j2("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},i)}function K1(t){for(;t.root;)t=j1(t.root,{children:[t]});C2(t,t.siblings)}function K9(){return d1}function Q9(){return d1=_1>0?p1(a2,--_1):0,t2--,d1===10&&(t2=1,H2--),d1}function w1(){return d1=_1<b6?p1(a2,_1++):0,t2++,d1===10&&(t2=1,H2++),d1}function O1(){return p1(a2,_1)}function v2(){return _1}function k2(t,i){return e2(a2,t,i)}function i3(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function e5(t){return H2=t2=1,b6=b1(a2=t),_1=0,[]}function t5(t){return a2="",t}function G2(t){return w6(k2(_1-1,a3(t===91?t+2:t===40?t+1:t)))}function l5(t){for(;(d1=O1())&&d1<33;)w1();return i3(t)>2||i3(d1)>3?"":" "}function L5(t,i){for(;--i&&w1()&&!(d1<48||d1>102||d1>57&&d1<65||d1>70&&d1<97););return k2(t,v2()+(i<6&&O1()==32&&w1()==32))}function a3(t){for(;w1();)switch(d1){case t:return _1;case 34:case 39:t!==34&&t!==39&&a3(d1);break;case 40:t===41&&a3(t);break;case 92:w1();break}return _1}function i5(t,i){for(;w1()&&t+d1!==57;)if(t+d1===84&&O1()===47)break;return"/*"+k2(i,_1-1)+"*"+m3(t===47?t:w1())}function a5(t){for(;!i3(O1());)w1();return k2(t,_1)}function n5(t){return t5(M2("",null,null,null,[""],t=e5(t),0,[0],t))}function M2(t,i,a,n,r,c,o,C,s){for(var h=0,m=0,p=o,g=0,_=0,E=0,V=1,v=1,$=1,B=0,R="",M=r,y=c,H=n,Z=R;v;)switch(E=B,B=w1()){case 40:if(E!=108&&p1(Z,p-1)==58){V2(Z+=Y(G2(B),"&","&\f"),"&\f",y6(h?C[h-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:Z+=G2(B);break;case 9:case 10:case 13:case 32:Z+=l5(E);break;case 92:Z+=L5(v2()-1,7);continue;case 47:switch(O1()){case 42:case 47:C2(r5(i5(w1(),v2()),i,a,s),s);break;default:Z+="/"}break;case 123*V:C[h++]=b1(Z)*$;case 125*V:case 59:case 0:switch(B){case 0:case 125:v=0;case 59+m:$==-1&&(Z=Y(Z,/\f/g,"")),_>0&&b1(Z)-p&&C2(_>32?O3(Z+";",n,a,p-1,s):O3(Y(Z," ","")+";",n,a,p-2,s),s);break;case 59:Z+=";";default:if(C2(H=z3(Z,i,a,h,m,r,C,R,M=[],y=[],p,c),c),B===123)if(m===0)M2(Z,i,H,H,M,c,p,C,y);else switch(g===99&&p1(Z,3)===110?100:g){case 100:case 108:case 109:case 115:M2(t,H,H,n&&C2(z3(t,H,H,0,0,r,C,R,r,M=[],p,y),y),r,y,p,C,n?M:y);break;default:M2(Z,H,H,H,[""],y,0,C,y)}}h=m=_=0,V=$=1,R=Z="",p=o;break;case 58:p=1+b1(Z),_=E;default:if(V<1){if(B==123)--V;else if(B==125&&V++==0&&Q9()==125)continue}switch(Z+=m3(B),B*V){case 38:$=m>0?1:(Z+="\f",-1);break;case 44:C[h++]=(b1(Z)-1)*$,$=1;break;case 64:O1()===45&&(Z+=G2(w1())),g=O1(),m=p=b1(R=Z+=a5(v2())),B++;break;case 45:E===45&&b1(Z)==2&&(V=0)}}return c}function z3(t,i,a,n,r,c,o,C,s,h,m,p){for(var g=r-1,_=r===0?c:[""],E=Z6(_),V=0,v=0,$=0;V<n;++V)for(var B=0,R=e2(t,g+1,g=y6(v=o[V])),M=t;B<E;++B)(M=w6(v>0?_[B]+" "+R:Y(R,/&\f/g,_[B])))&&(s[$++]=M);return j2(t,i,a,r===0?F2:C,s,h,m,p)}function r5(t,i,a,n){return j2(t,i,a,M6,m3(K9()),e2(t,2,-2),0,n)}function O3(t,i,a,n,r){return j2(t,i,a,u3,e2(t,0,n),e2(t,n+1,-1),n,r)}function $6(t,i,a){switch(X9(t,i)){case 5103:return t1+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return t1+t+t;case 4789:return s2+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return t1+t+s2+t+n1+t+t;case 5936:switch(p1(t,i+11)){case 114:return t1+t+n1+Y(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return t1+t+n1+Y(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return t1+t+n1+Y(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return t1+t+n1+t+t;case 6165:return t1+t+n1+"flex-"+t+t;case 5187:return t1+t+Y(t,/(\w+).+(:[^]+)/,t1+"box-$1$2"+n1+"flex-$1$2")+t;case 5443:return t1+t+n1+"flex-item-"+Y(t,/flex-|-self/g,"")+(B1(t,/flex-|baseline/)?"":n1+"grid-row-"+Y(t,/flex-|-self/g,""))+t;case 4675:return t1+t+n1+"flex-line-pack"+Y(t,/align-content|flex-|-self/g,"")+t;case 5548:return t1+t+n1+Y(t,"shrink","negative")+t;case 5292:return t1+t+n1+Y(t,"basis","preferred-size")+t;case 6060:return t1+"box-"+Y(t,"-grow","")+t1+t+n1+Y(t,"grow","positive")+t;case 4554:return t1+Y(t,/([^-])(transform)/g,"$1"+t1+"$2")+t;case 6187:return Y(Y(Y(t,/(zoom-|grab)/,t1+"$1"),/(image-set)/,t1+"$1"),t,"")+t;case 5495:case 3959:return Y(t,/(image-set\([^]*)/,t1+"$1$`$1");case 4968:return Y(Y(t,/(.+:)(flex-)?(.*)/,t1+"box-pack:$3"+n1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+t1+t+t;case 4200:if(!B1(t,/flex-|baseline/))return n1+"grid-column-align"+e2(t,i)+t;break;case 2592:case 3360:return n1+Y(t,"template-","")+t;case 4384:case 3616:return a&&a.some(function(n,r){return i=r,B1(n.props,/grid-\w+-end/)})?~V2(t+(a=a[i].value),"span",0)?t:n1+Y(t,"-start","")+t+n1+"grid-row-span:"+(~V2(a,"span",0)?B1(a,/\d+/):+B1(a,/\d+/)-+B1(t,/\d+/))+";":n1+Y(t,"-start","")+t;case 4896:case 4128:return a&&a.some(function(n){return B1(n.props,/grid-\w+-start/)})?t:n1+Y(Y(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return Y(t,/(.+)-inline(.+)/,t1+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(b1(t)-1-i>6)switch(p1(t,i+1)){case 109:if(p1(t,i+4)!==45)break;case 102:return Y(t,/(.+:)(.+)-([^]+)/,"$1"+t1+"$2-$3$1"+s2+(p1(t,i+3)==108?"$3":"$2-$3"))+t;case 115:return~V2(t,"stretch",0)?$6(Y(t,"stretch","fill-available"),i,a)+t:t}break;case 5152:case 5920:return Y(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,r,c,o,C,s,h){return n1+r+":"+c+h+(o?n1+r+"-span:"+(C?s:+s-+c)+h:"")+t});case 4949:if(p1(t,i+6)===121)return Y(t,":",":"+t1)+t;break;case 6444:switch(p1(t,p1(t,14)===45?18:11)){case 120:return Y(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+t1+(p1(t,14)===45?"inline-":"")+"box$3$1"+t1+"$2$3$1"+n1+"$2box$3")+t;case 100:return Y(t,":",":"+n1)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Y(t,"scroll-","scroll-snap-")+t}return t}function Z2(t,i){for(var a="",n=0;n<t.length;n++)a+=i(t[n],n,t,i)||"";return a}function c5(t,i,a,n){switch(t.type){case U9:if(t.children.length)break;case q9:case u3:return t.return=t.return||t.value;case M6:return"";case _6:return t.return=t.value+"{"+Z2(t.children,n)+"}";case F2:if(!b1(t.value=t.props.join(",")))return""}return b1(a=Z2(t.children,n))?t.return=t.value+"{"+a+"}":""}function o5(t){var i=Z6(t);return function(a,n,r,c){for(var o="",C=0;C<i;C++)o+=t[C](a,n,r,c)||"";return o}}function C5(t){return function(i){i.root||(i=i.return)&&t(i)}}function d5(t,i,a,n){if(t.length>-1&&!t.return)switch(t.type){case u3:t.return=$6(t.value,t.length,a);return;case _6:return Z2([j1(t,{value:Y(t.value,"@","@"+t1)})],n);case F2:if(t.length)return J9(a=t.props,function(r){switch(B1(r,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":K1(j1(t,{props:[Y(r,/:(read-\w+)/,":"+s2+"$1")]})),K1(j1(t,{props:[r]})),L3(t,{props:D3(a,n)});break;case"::placeholder":K1(j1(t,{props:[Y(r,/:(plac\w+)/,":"+t1+"input-$1")]})),K1(j1(t,{props:[Y(r,/:(plac\w+)/,":"+s2+"$1")]})),K1(j1(t,{props:[Y(r,/:(plac\w+)/,n1+"input-$1")]})),K1(j1(t,{props:[r]})),L3(t,{props:D3(a,n)});break}return""})}}var s5={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},T1=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",R6="active",B6="data-styled-version",S2="6.1.8",g3=`/*!sc*/
|
25
|
+
Check the top-level render call using <`+O+">.")}return P}}function H3(f,P){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var O=j9(P);if(F3[O])return;F3[O]=!0;var I="";f&&f._owner&&f._owner!==T2.current&&(I=" It was passed a child from "+b(f._owner.type)+"."),X1(f),B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',O,I),X1(null)}}function j3(f,P){{if(typeof f!="object")return;if(O2(f))for(var O=0;O<f.length;O++){var I=f[O];W2(I)&&H3(I,P)}else if(W2(f))f._store&&(f._store.validated=!0);else if(f){var e1=v(f);if(typeof e1=="function"&&e1!==f.entries)for(var i1=e1.call(f),J;!(J=i1.next()).done;)W2(J.value)&&H3(J.value,P)}}}function k9(f){{var P=f.type;if(P==null||typeof P=="string")return;var O;if(typeof P=="function")O=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===s||P.$$typeof===p))O=P.propTypes;else return;if(O){var I=b(P);V9(O,f.props,"prop",I,f)}else if(P.PropTypes!==void 0&&!I2){I2=!0;var e1=b(P);B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",e1||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function S9(f){{for(var P=Object.keys(f.props),O=0;O<P.length;O++){var I=P[O];if(I!=="children"&&I!=="key"){X1(f),B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),X1(null);break}}f.ref!==null&&(X1(f),B("Invalid attribute `ref` supplied to `React.Fragment`."),X1(null))}}function k3(f,P,O,I,e1,i1){{var J=z(f);if(!J){var U="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g1=H9();g1?U+=g1:U+=B3();var o1;f===null?o1="null":O2(f)?o1="array":f!==void 0&&f.$$typeof===i?(o1="<"+(b(f.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):o1=typeof f,B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",o1,U)}var C1=F9(f,P,O,e1,i1);if(C1==null)return C1;if(J){var v1=P.children;if(v1!==void 0)if(I)if(O2(v1)){for(var J1=0;J1<v1.length;J1++)j3(v1[J1],f);Object.freeze&&Object.freeze(v1)}else B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else j3(v1,f)}return f===n?S9(C1):k9(C1),C1}}function A9(f,P,O){return k3(f,P,O,!0)}function P9(f,P,O){return k3(f,P,O,!1)}var D9=P9,z9=A9;o2.Fragment=n,o2.jsx=D9,o2.jsxs=z9}()),o2}process.env.NODE_ENV==="production"?l3.exports=T9():l3.exports=I9();var L=l3.exports,u1=function(){return u1=Object.assign||function(i){for(var a,n=1,r=arguments.length;n<r;n++){a=arguments[n];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(i[c]=a[c])}return i},u1.apply(this,arguments)};function N1(t,i,a){if(a||arguments.length===2)for(var n=0,r=i.length,c;n<r;n++)(c||!(n in i))&&(c||(c=Array.prototype.slice.call(i,0,n)),c[n]=i[n]);return t.concat(c||Array.prototype.slice.call(i))}function W9(t){var i=Object.create(null);return function(a){return i[a]===void 0&&(i[a]=t(a)),i[a]}}var G9=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Y9=W9(function(t){return G9.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),n1="-ms-",s2="-moz-",t1="-webkit-",M6="comm",F2="rule",u3="decl",q9="@import",_6="@keyframes",U9="@layer",y6=Math.abs,m3=String.fromCharCode,L3=Object.assign;function X9(t,i){return p1(t,0)^45?(((i<<2^p1(t,0))<<2^p1(t,1))<<2^p1(t,2))<<2^p1(t,3):0}function w6(t){return t.trim()}function B1(t,i){return(t=i.exec(t))?t[0]:t}function Y(t,i,a){return t.replace(i,a)}function V2(t,i,a){return t.indexOf(i,a)}function p1(t,i){return t.charCodeAt(i)|0}function e2(t,i,a){return t.slice(i,a)}function b1(t){return t.length}function Z6(t){return t.length}function C2(t,i){return i.push(t),t}function J9(t,i){return t.map(i).join("")}function D3(t,i){return t.filter(function(a){return!B1(a,i)})}var H2=1,t2=1,b6=0,_1=0,d1=0,a2="";function j2(t,i,a,n,r,c,o,C){return{value:t,root:i,parent:a,type:n,props:r,children:c,line:H2,column:t2,length:o,return:"",siblings:C}}function j1(t,i){return L3(j2("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},i)}function K1(t){for(;t.root;)t=j1(t.root,{children:[t]});C2(t,t.siblings)}function K9(){return d1}function Q9(){return d1=_1>0?p1(a2,--_1):0,t2--,d1===10&&(t2=1,H2--),d1}function w1(){return d1=_1<b6?p1(a2,_1++):0,t2++,d1===10&&(t2=1,H2++),d1}function O1(){return p1(a2,_1)}function v2(){return _1}function k2(t,i){return e2(a2,t,i)}function i3(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function e5(t){return H2=t2=1,b6=b1(a2=t),_1=0,[]}function t5(t){return a2="",t}function G2(t){return w6(k2(_1-1,a3(t===91?t+2:t===40?t+1:t)))}function l5(t){for(;(d1=O1())&&d1<33;)w1();return i3(t)>2||i3(d1)>3?"":" "}function L5(t,i){for(;--i&&w1()&&!(d1<48||d1>102||d1>57&&d1<65||d1>70&&d1<97););return k2(t,v2()+(i<6&&O1()==32&&w1()==32))}function a3(t){for(;w1();)switch(d1){case t:return _1;case 34:case 39:t!==34&&t!==39&&a3(d1);break;case 40:t===41&&a3(t);break;case 92:w1();break}return _1}function i5(t,i){for(;w1()&&t+d1!==57;)if(t+d1===84&&O1()===47)break;return"/*"+k2(i,_1-1)+"*"+m3(t===47?t:w1())}function a5(t){for(;!i3(O1());)w1();return k2(t,_1)}function n5(t){return t5(M2("",null,null,null,[""],t=e5(t),0,[0],t))}function M2(t,i,a,n,r,c,o,C,s){for(var h=0,m=0,p=o,g=0,_=0,E=0,x=1,v=1,$=1,B=0,R="",M=r,y=c,H=n,Z=R;v;)switch(E=B,B=w1()){case 40:if(E!=108&&p1(Z,p-1)==58){V2(Z+=Y(G2(B),"&","&\f"),"&\f",y6(h?C[h-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:Z+=G2(B);break;case 9:case 10:case 13:case 32:Z+=l5(E);break;case 92:Z+=L5(v2()-1,7);continue;case 47:switch(O1()){case 42:case 47:C2(r5(i5(w1(),v2()),i,a,s),s);break;default:Z+="/"}break;case 123*x:C[h++]=b1(Z)*$;case 125*x:case 59:case 0:switch(B){case 0:case 125:v=0;case 59+m:$==-1&&(Z=Y(Z,/\f/g,"")),_>0&&b1(Z)-p&&C2(_>32?O3(Z+";",n,a,p-1,s):O3(Y(Z," ","")+";",n,a,p-2,s),s);break;case 59:Z+=";";default:if(C2(H=z3(Z,i,a,h,m,r,C,R,M=[],y=[],p,c),c),B===123)if(m===0)M2(Z,i,H,H,M,c,p,C,y);else switch(g===99&&p1(Z,3)===110?100:g){case 100:case 108:case 109:case 115:M2(t,H,H,n&&C2(z3(t,H,H,0,0,r,C,R,r,M=[],p,y),y),r,y,p,C,n?M:y);break;default:M2(Z,H,H,H,[""],y,0,C,y)}}h=m=_=0,x=$=1,R=Z="",p=o;break;case 58:p=1+b1(Z),_=E;default:if(x<1){if(B==123)--x;else if(B==125&&x++==0&&Q9()==125)continue}switch(Z+=m3(B),B*x){case 38:$=m>0?1:(Z+="\f",-1);break;case 44:C[h++]=(b1(Z)-1)*$,$=1;break;case 64:O1()===45&&(Z+=G2(w1())),g=O1(),m=p=b1(R=Z+=a5(v2())),B++;break;case 45:E===45&&b1(Z)==2&&(x=0)}}return c}function z3(t,i,a,n,r,c,o,C,s,h,m,p){for(var g=r-1,_=r===0?c:[""],E=Z6(_),x=0,v=0,$=0;x<n;++x)for(var B=0,R=e2(t,g+1,g=y6(v=o[x])),M=t;B<E;++B)(M=w6(v>0?_[B]+" "+R:Y(R,/&\f/g,_[B])))&&(s[$++]=M);return j2(t,i,a,r===0?F2:C,s,h,m,p)}function r5(t,i,a,n){return j2(t,i,a,M6,m3(K9()),e2(t,2,-2),0,n)}function O3(t,i,a,n,r){return j2(t,i,a,u3,e2(t,0,n),e2(t,n+1,-1),n,r)}function $6(t,i,a){switch(X9(t,i)){case 5103:return t1+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return t1+t+t;case 4789:return s2+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return t1+t+s2+t+n1+t+t;case 5936:switch(p1(t,i+11)){case 114:return t1+t+n1+Y(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return t1+t+n1+Y(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return t1+t+n1+Y(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return t1+t+n1+t+t;case 6165:return t1+t+n1+"flex-"+t+t;case 5187:return t1+t+Y(t,/(\w+).+(:[^]+)/,t1+"box-$1$2"+n1+"flex-$1$2")+t;case 5443:return t1+t+n1+"flex-item-"+Y(t,/flex-|-self/g,"")+(B1(t,/flex-|baseline/)?"":n1+"grid-row-"+Y(t,/flex-|-self/g,""))+t;case 4675:return t1+t+n1+"flex-line-pack"+Y(t,/align-content|flex-|-self/g,"")+t;case 5548:return t1+t+n1+Y(t,"shrink","negative")+t;case 5292:return t1+t+n1+Y(t,"basis","preferred-size")+t;case 6060:return t1+"box-"+Y(t,"-grow","")+t1+t+n1+Y(t,"grow","positive")+t;case 4554:return t1+Y(t,/([^-])(transform)/g,"$1"+t1+"$2")+t;case 6187:return Y(Y(Y(t,/(zoom-|grab)/,t1+"$1"),/(image-set)/,t1+"$1"),t,"")+t;case 5495:case 3959:return Y(t,/(image-set\([^]*)/,t1+"$1$`$1");case 4968:return Y(Y(t,/(.+:)(flex-)?(.*)/,t1+"box-pack:$3"+n1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+t1+t+t;case 4200:if(!B1(t,/flex-|baseline/))return n1+"grid-column-align"+e2(t,i)+t;break;case 2592:case 3360:return n1+Y(t,"template-","")+t;case 4384:case 3616:return a&&a.some(function(n,r){return i=r,B1(n.props,/grid-\w+-end/)})?~V2(t+(a=a[i].value),"span",0)?t:n1+Y(t,"-start","")+t+n1+"grid-row-span:"+(~V2(a,"span",0)?B1(a,/\d+/):+B1(a,/\d+/)-+B1(t,/\d+/))+";":n1+Y(t,"-start","")+t;case 4896:case 4128:return a&&a.some(function(n){return B1(n.props,/grid-\w+-start/)})?t:n1+Y(Y(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return Y(t,/(.+)-inline(.+)/,t1+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(b1(t)-1-i>6)switch(p1(t,i+1)){case 109:if(p1(t,i+4)!==45)break;case 102:return Y(t,/(.+:)(.+)-([^]+)/,"$1"+t1+"$2-$3$1"+s2+(p1(t,i+3)==108?"$3":"$2-$3"))+t;case 115:return~V2(t,"stretch",0)?$6(Y(t,"stretch","fill-available"),i,a)+t:t}break;case 5152:case 5920:return Y(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,r,c,o,C,s,h){return n1+r+":"+c+h+(o?n1+r+"-span:"+(C?s:+s-+c)+h:"")+t});case 4949:if(p1(t,i+6)===121)return Y(t,":",":"+t1)+t;break;case 6444:switch(p1(t,p1(t,14)===45?18:11)){case 120:return Y(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+t1+(p1(t,14)===45?"inline-":"")+"box$3$1"+t1+"$2$3$1"+n1+"$2box$3")+t;case 100:return Y(t,":",":"+n1)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Y(t,"scroll-","scroll-snap-")+t}return t}function Z2(t,i){for(var a="",n=0;n<t.length;n++)a+=i(t[n],n,t,i)||"";return a}function c5(t,i,a,n){switch(t.type){case U9:if(t.children.length)break;case q9:case u3:return t.return=t.return||t.value;case M6:return"";case _6:return t.return=t.value+"{"+Z2(t.children,n)+"}";case F2:if(!b1(t.value=t.props.join(",")))return""}return b1(a=Z2(t.children,n))?t.return=t.value+"{"+a+"}":""}function o5(t){var i=Z6(t);return function(a,n,r,c){for(var o="",C=0;C<i;C++)o+=t[C](a,n,r,c)||"";return o}}function C5(t){return function(i){i.root||(i=i.return)&&t(i)}}function d5(t,i,a,n){if(t.length>-1&&!t.return)switch(t.type){case u3:t.return=$6(t.value,t.length,a);return;case _6:return Z2([j1(t,{value:Y(t.value,"@","@"+t1)})],n);case F2:if(t.length)return J9(a=t.props,function(r){switch(B1(r,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":K1(j1(t,{props:[Y(r,/:(read-\w+)/,":"+s2+"$1")]})),K1(j1(t,{props:[r]})),L3(t,{props:D3(a,n)});break;case"::placeholder":K1(j1(t,{props:[Y(r,/:(plac\w+)/,":"+t1+"input-$1")]})),K1(j1(t,{props:[Y(r,/:(plac\w+)/,":"+s2+"$1")]})),K1(j1(t,{props:[Y(r,/:(plac\w+)/,n1+"input-$1")]})),K1(j1(t,{props:[r]})),L3(t,{props:D3(a,n)});break}return""})}}var s5={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},T1=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",R6="active",B6="data-styled-version",S2="6.1.8",g3=`/*!sc*/
|
26
26
|
`,E3=typeof window<"u"&&"HTMLElement"in window,p5=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),f5={},N3=/invalid hook call/i,h2=new Set,F6=function(t,i){if(process.env.NODE_ENV!=="production"){var a=i?' with the id of "'.concat(i,'"'):"",n="The component ".concat(t).concat(a,` has been created dynamically.
|
27
27
|
`)+`You may see this warning because you've called styled inside another component.
|
28
28
|
To resolve this only create new StyledComponents outside of any render method and function component.`,r=console.error;try{var c=!0;console.error=function(o){for(var C=[],s=1;s<arguments.length;s++)C[s-1]=arguments[s];N3.test(o)?(c=!1,h2.delete(n)):r.apply(void 0,N1([o],C,!1))},u.useRef(),c&&!h2.has(n)&&(console.warn(n),h2.add(n))}catch(o){N3.test(o.message)&&h2.delete(n)}finally{console.error=r}}},A2=Object.freeze([]),l2=Object.freeze({});function H6(t,i,a){return a===void 0&&(a=l2),t.theme!==a.theme&&t.theme||i||a.theme}var n3=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),h5=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,u5=/(^-|-$)/g;function T3(t){return t.replace(h5,"-").replace(u5,"")}var m5=/(a)(d)/gi,u2=52,I3=function(t){return String.fromCharCode(t+(t>25?39:97))};function r3(t){var i,a="";for(i=Math.abs(t);i>u2;i=i/u2|0)a=I3(i%u2)+a;return(I3(i%u2)+a).replace(m5,"$1-$2")}var Y2,j6=5381,D1=function(t,i){for(var a=i.length;a;)t=33*t^i.charCodeAt(--a);return t},k6=function(t){return D1(j6,t)};function S6(t){return r3(k6(t)>>>0)}function A6(t){return process.env.NODE_ENV!=="production"&&typeof t=="string"&&t||t.displayName||t.name||"Component"}function q2(t){return typeof t=="string"&&(process.env.NODE_ENV==="production"||t.charAt(0)===t.charAt(0).toLowerCase())}var P6=typeof Symbol=="function"&&Symbol.for,D6=P6?Symbol.for("react.memo"):60115,g5=P6?Symbol.for("react.forward_ref"):60112,E5={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},x5={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},z6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},V5=((Y2={})[g5]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Y2[D6]=z6,Y2);function W3(t){return("type"in(i=t)&&i.type.$$typeof)===D6?z6:"$$typeof"in t?V5[t.$$typeof]:E5;var i}var v5=Object.defineProperty,M5=Object.getOwnPropertyNames,G3=Object.getOwnPropertySymbols,_5=Object.getOwnPropertyDescriptor,y5=Object.getPrototypeOf,Y3=Object.prototype;function O6(t,i,a){if(typeof i!="string"){if(Y3){var n=y5(i);n&&n!==Y3&&O6(t,n,a)}var r=M5(i);G3&&(r=r.concat(G3(i)));for(var c=W3(t),o=W3(i),C=0;C<r.length;++C){var s=r[C];if(!(s in x5||a&&a[s]||o&&s in o||c&&s in c)){var h=_5(i,s);try{v5(t,s,h)}catch{}}}}return t}function L2(t){return typeof t=="function"}function x3(t){return typeof t=="object"&&"styledComponentId"in t}function z1(t,i){return t&&i?"".concat(t," ").concat(i):t||i||""}function c3(t,i){if(t.length===0)return"";for(var a=t[0],n=1;n<t.length;n++)a+=t[n];return a}function i2(t){return t!==null&&typeof t=="object"&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function o3(t,i,a){if(a===void 0&&(a=!1),!a&&!i2(t)&&!Array.isArray(t))return i;if(Array.isArray(i))for(var n=0;n<i.length;n++)t[n]=o3(t[n],i[n]);else if(i2(i))for(var n in i)t[n]=o3(t[n],i[n]);return t}function V3(t,i){Object.defineProperty(t,"toString",{value:i})}var w5=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
@@ -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 Z5(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(var a=t[0],n=[],r=1,c=t.length;r<c;r+=1)n.push(t[r]);return n.forEach(function(o){a=a.replace(/%[a-z]/,o)}),a}function n2(t){for(var i=[],a=1;a<arguments.length;a++)i[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(t," for more information.").concat(i.length>0?" Args: ".concat(i.join(", ")):"")):new Error(Z5.apply(void 0,N1([w5[t]],i,!1)).trim())}var b5=function(){function t(i){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=i}return t.prototype.indexOfGroup=function(i){for(var a=0,n=0;n<i;n++)a+=this.groupSizes[n];return a},t.prototype.insertRules=function(i,a){if(i>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,c=r;i>=c;)if((c<<=1)<0)throw n2(16,"".concat(i));this.groupSizes=new Uint32Array(c),this.groupSizes.set(n),this.length=c;for(var o=r;o<c;o++)this.groupSizes[o]=0}for(var C=this.indexOfGroup(i+1),s=(o=0,a.length);o<s;o++)this.tag.insertRule(C,a[o])&&(this.groupSizes[i]++,C++)},t.prototype.clearGroup=function(i){if(i<this.length){var a=this.groupSizes[i],n=this.indexOfGroup(i),r=n+a;this.groupSizes[i]=0;for(var c=n;c<r;c++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(i){var a="";if(i>=this.length||this.groupSizes[i]===0)return a;for(var n=this.groupSizes[i],r=this.indexOfGroup(i),c=r+n,o=r;o<c;o++)a+="".concat(this.tag.getRule(o)).concat(g3);return a},t}(),_2=new Map,b2=new Map,y2=1,m2=function(t){if(_2.has(t))return _2.get(t);for(;b2.has(y2);)y2++;var i=y2++;if(process.env.NODE_ENV!=="production"&&((0|i)<0||i>1073741824))throw n2(16,"".concat(i));return _2.set(t,i),b2.set(i,t),i},$5=function(t,i){y2=i+1,_2.set(t,i),b2.set(i,t)},R5="style[".concat(T1,"][").concat(B6,'="').concat(S2,'"]'),B5=new RegExp("^".concat(T1,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),F5=function(t,i,a){for(var n,r=a.split(","),c=0,o=r.length;c<o;c++)(n=r[c])&&t.registerName(i,n)},H5=function(t,i){for(var a,n=((a=i.textContent)!==null&&a!==void 0?a:"").split(g3),r=[],c=0,o=n.length;c<o;c++){var C=n[c].trim();if(C){var s=C.match(B5);if(s){var h=0|parseInt(s[1],10),m=s[2];h!==0&&($5(m,h),F5(t,m,s[3]),t.getTag().insertRules(h,r)),r.length=0}else r.push(C)}}};function j5(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var N6=function(t){var i=document.head,a=t||i,n=document.createElement("style"),r=function(C){var s=Array.from(C.querySelectorAll("style[".concat(T1,"]")));return s[s.length-1]}(a),c=r!==void 0?r.nextSibling:null;n.setAttribute(T1,R6),n.setAttribute(B6,S2);var o=j5();return o&&n.setAttribute("nonce",o),a.insertBefore(n,c),n},k5=function(){function t(i){this.element=N6(i),this.element.appendChild(document.createTextNode("")),this.sheet=function(a){if(a.sheet)return a.sheet;for(var n=document.styleSheets,r=0,c=n.length;r<c;r++){var o=n[r];if(o.ownerNode===a)return o}throw n2(17)}(this.element),this.length=0}return t.prototype.insertRule=function(i,a){try{return this.sheet.insertRule(a,i),this.length++,!0}catch{return!1}},t.prototype.deleteRule=function(i){this.sheet.deleteRule(i),this.length--},t.prototype.getRule=function(i){var a=this.sheet.cssRules[i];return a&&a.cssText?a.cssText:""},t}(),S5=function(){function t(i){this.element=N6(i),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(i,a){if(i<=this.length&&i>=0){var n=document.createTextNode(a);return this.element.insertBefore(n,this.nodes[i]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(i){this.element.removeChild(this.nodes[i]),this.length--},t.prototype.getRule=function(i){return i<this.length?this.nodes[i].textContent:""},t}(),A5=function(){function t(i){this.rules=[],this.length=0}return t.prototype.insertRule=function(i,a){return i<=this.length&&(this.rules.splice(i,0,a),this.length++,!0)},t.prototype.deleteRule=function(i){this.rules.splice(i,1),this.length--},t.prototype.getRule=function(i){return i<this.length?this.rules[i]:""},t}(),q3=E3,P5={isServer:!E3,useCSSOMInjection:!p5},$2=function(){function t(i,a,n){i===void 0&&(i=l2),a===void 0&&(a={});var r=this;this.options=u1(u1({},P5),i),this.gs=a,this.names=new Map(n),this.server=!!i.isServer,!this.server&&E3&&q3&&(q3=!1,function(c){for(var o=document.querySelectorAll(R5),C=0,s=o.length;C<s;C++){var h=o[C];h&&h.getAttribute(T1)!==R6&&(H5(c,h),h.parentNode&&h.parentNode.removeChild(h))}}(this)),V3(this,function(){return function(c){for(var o=c.getTag(),C=o.length,s="",h=function(p){var g=function($){return b2.get($)}(p);if(g===void 0)return"continue";var _=c.names.get(g),E=o.getGroup(p);if(_===void 0||E.length===0)return"continue";var V="".concat(T1,".g").concat(p,'[id="').concat(g,'"]'),v="";_!==void 0&&_.forEach(function($){$.length>0&&(v+="".concat($,","))}),s+="".concat(E).concat(V,'{content:"').concat(v,'"}').concat(g3)},m=0;m<C;m++)h(m);return s}(r)})}return t.registerId=function(i){return m2(i)},t.prototype.reconstructWithOptions=function(i,a){return a===void 0&&(a=!0),new t(u1(u1({},this.options),i),this.gs,a&&this.names||void 0)},t.prototype.allocateGSInstance=function(i){return this.gs[i]=(this.gs[i]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(i=function(a){var n=a.useCSSOMInjection,r=a.target;return a.isServer?new A5(r):n?new k5(r):new S5(r)}(this.options),new b5(i)));var i},t.prototype.hasNameForId=function(i,a){return this.names.has(i)&&this.names.get(i).has(a)},t.prototype.registerName=function(i,a){if(m2(i),this.names.has(i))this.names.get(i).add(a);else{var n=new Set;n.add(a),this.names.set(i,n)}},t.prototype.insertRules=function(i,a,n){this.registerName(i,a),this.getTag().insertRules(m2(i),n)},t.prototype.clearNames=function(i){this.names.has(i)&&this.names.get(i).clear()},t.prototype.clearRules=function(i){this.getTag().clearGroup(m2(i)),this.clearNames(i)},t.prototype.clearTag=function(){this.tag=void 0},t}(),D5=/&/g,z5=/^\s*\/\/.*$/gm;function T6(t,i){return t.map(function(a){return a.type==="rule"&&(a.value="".concat(i," ").concat(a.value),a.value=a.value.replaceAll(",",",".concat(i," ")),a.props=a.props.map(function(n){return"".concat(i," ").concat(n)})),Array.isArray(a.children)&&a.type!=="@keyframes"&&(a.children=T6(a.children,i)),a})}function O5(t){var i,a,n,r=l2,c=r.options,o=c===void 0?l2:c,C=r.plugins,s=C===void 0?A2:C,h=function(g,_,E){return E.startsWith(a)&&E.endsWith(a)&&E.replaceAll(a,"").length>0?".".concat(i):g},m=s.slice();m.push(function(g){g.type===F2&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(D5,a).replace(n,h))}),o.prefix&&m.push(d5),m.push(c5);var p=function(g,_,E,V){_===void 0&&(_=""),E===void 0&&(E=""),V===void 0&&(V="&"),i=V,a=_,n=new RegExp("\\".concat(a,"\\b"),"g");var v=g.replace(z5,""),$=n5(E||_?"".concat(E," ").concat(_," { ").concat(v," }"):v);o.namespace&&($=T6($,o.namespace));var B=[];return Z2($,o5(m.concat(C5(function(R){return B.push(R)})))),B};return p.hash=s.length?s.reduce(function(g,_){return _.name||n2(15),D1(g,_.name)},j6).toString():"",p}var N5=new $2,C3=O5(),I6=u.createContext({shouldForwardProp:void 0,styleSheet:N5,stylis:C3});I6.Consumer;u.createContext(void 0);function d3(){return u.useContext(I6)}var U3=function(){function t(i,a){var n=this;this.inject=function(r,c){c===void 0&&(c=C3);var o=n.name+c.hash;r.hasNameForId(n.id,o)||r.insertRules(n.id,o,c(n.rules,o,"@keyframes"))},this.name=i,this.id="sc-keyframes-".concat(i),this.rules=a,V3(this,function(){throw n2(12,String(n.name))})}return t.prototype.getName=function(i){return i===void 0&&(i=C3),this.name+i.hash},t}(),T5=function(t){return t>="A"&&t<="Z"};function X3(t){for(var i="",a=0;a<t.length;a++){var n=t[a];if(a===1&&n==="-"&&t[0]==="-")return t;T5(n)?i+="-"+n.toLowerCase():i+=n}return i.startsWith("ms-")?"-"+i:i}var W6=function(t){return t==null||t===!1||t===""},G6=function(t){var i,a,n=[];for(var r in t){var c=t[r];t.hasOwnProperty(r)&&!W6(c)&&(Array.isArray(c)&&c.isCss||L2(c)?n.push("".concat(X3(r),":"),c,";"):i2(c)?n.push.apply(n,N1(N1(["".concat(r," {")],G6(c),!1),["}"],!1)):n.push("".concat(X3(r),": ").concat((i=r,(a=c)==null||typeof a=="boolean"||a===""?"":typeof a!="number"||a===0||i in s5||i.startsWith("--")?String(a).trim():"".concat(a,"px")),";")))}return n};function A1(t,i,a,n){if(W6(t))return[];if(x3(t))return[".".concat(t.styledComponentId)];if(L2(t)){if(!L2(c=t)||c.prototype&&c.prototype.isReactComponent||!i)return[t];var r=t(i);return process.env.NODE_ENV==="production"||typeof r!="object"||Array.isArray(r)||r instanceof U3||i2(r)||r===null||console.error("".concat(A6(t)," 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.")),A1(r,i,a,n)}var c;return t instanceof U3?a?(t.inject(a,n),[t.getName(n)]):[t]:i2(t)?G6(t):Array.isArray(t)?Array.prototype.concat.apply(A2,t.map(function(o){return A1(o,i,a,n)})):[t.toString()]}function Y6(t){for(var i=0;i<t.length;i+=1){var a=t[i];if(L2(a)&&!x3(a))return!1}return!0}var I5=k6(S2),W5=function(){function t(i,a,n){this.rules=i,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Y6(i),this.componentId=a,this.baseHash=D1(I5,a),this.baseStyle=n,$2.registerId(a)}return t.prototype.generateAndInjectStyles=function(i,a,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(i,a,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&a.hasNameForId(this.componentId,this.staticRulesId))r=z1(r,this.staticRulesId);else{var c=c3(A1(this.rules,i,a,n)),o=r3(D1(this.baseHash,c)>>>0);if(!a.hasNameForId(this.componentId,o)){var C=n(c,".".concat(o),void 0,this.componentId);a.insertRules(this.componentId,o,C)}r=z1(r,o),this.staticRulesId=o}else{for(var s=D1(this.baseHash,n.hash),h="",m=0;m<this.rules.length;m++){var p=this.rules[m];if(typeof p=="string")h+=p,process.env.NODE_ENV!=="production"&&(s=D1(s,p));else if(p){var g=c3(A1(p,i,a,n));s=D1(s,g+m),h+=g}}if(h){var _=r3(s>>>0);a.hasNameForId(this.componentId,_)||a.insertRules(this.componentId,_,n(h,".".concat(_),void 0,this.componentId)),r=z1(r,_)}}return r},t}(),v3=u.createContext(void 0);v3.Consumer;var U2={},J3=new Set;function G5(t,i,a){var n=x3(t),r=t,c=!q2(t),o=i.attrs,C=o===void 0?A2:o,s=i.componentId,h=s===void 0?function(M,y){var H=typeof M!="string"?"sc":T3(M);U2[H]=(U2[H]||0)+1;var Z="".concat(H,"-").concat(S6(S2+H+U2[H]));return y?"".concat(y,"-").concat(Z):Z}(i.displayName,i.parentComponentId):s,m=i.displayName,p=m===void 0?function(M){return q2(M)?"styled.".concat(M):"Styled(".concat(A6(M),")")}(t):m,g=i.displayName&&i.componentId?"".concat(T3(i.displayName),"-").concat(i.componentId):i.componentId||h,_=n&&r.attrs?r.attrs.concat(C).filter(Boolean):C,E=i.shouldForwardProp;if(n&&r.shouldForwardProp){var V=r.shouldForwardProp;if(i.shouldForwardProp){var v=i.shouldForwardProp;E=function(M,y){return V(M,y)&&v(M,y)}}else E=V}var $=new W5(a,g,n?r.componentStyle:void 0);function B(M,y){return function(H,Z,S){var k=H.attrs,z=H.componentStyle,x=H.defaultProps,A=H.foldedComponentIds,b=H.styledComponentId,w=H.target,j=u.useContext(v3),D=d3(),W=H.shouldForwardProp||D.shouldForwardProp;process.env.NODE_ENV!=="production"&&u.useDebugValue(b);var G=H6(Z,j,x)||l2,T=function(q,L1,c1){for(var r1,f1=u1(u1({},L1),{className:void 0,theme:c1}),V1=0;V1<q.length;V1+=1){var s1=L2(r1=q[V1])?r1(f1):r1;for(var m1 in s1)f1[m1]=m1==="className"?z1(f1[m1],s1[m1]):m1==="style"?u1(u1({},f1[m1]),s1[m1]):s1[m1]}return L1.className&&(f1.className=z1(f1.className,L1.className)),f1}(k,Z,G),l1=T.as||w,a1={};for(var Q in T)T[Q]===void 0||Q[0]==="$"||Q==="as"||Q==="theme"&&T.theme===G||(Q==="forwardedAs"?a1.as=T.forwardedAs:W&&!W(Q,l1)||(a1[Q]=T[Q],W||process.env.NODE_ENV!=="development"||Y9(Q)||J3.has(Q)||!n3.has(l1)||(J3.add(Q),console.warn('styled-components: it looks like an unknown prop "'.concat(Q,'" 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 X=function(q,L1){var c1=d3(),r1=q.generateAndInjectStyles(L1,c1.styleSheet,c1.stylis);return process.env.NODE_ENV!=="production"&&u.useDebugValue(r1),r1}(z,T);process.env.NODE_ENV!=="production"&&H.warnTooManyClasses&&H.warnTooManyClasses(X);var K=z1(A,b);return X&&(K+=" "+X),T.className&&(K+=" "+T.className),a1[q2(l1)&&!n3.has(l1)?"class":"className"]=K,a1.ref=S,u.createElement(l1,a1)}(R,M,y)}B.displayName=p;var R=u.forwardRef(B);return R.attrs=_,R.componentStyle=$,R.displayName=p,R.shouldForwardProp=E,R.foldedComponentIds=n?z1(r.foldedComponentIds,r.styledComponentId):"",R.styledComponentId=g,R.target=n?r.target:t,Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=n?function(y){for(var H=[],Z=1;Z<arguments.length;Z++)H[Z-1]=arguments[Z];for(var S=0,k=H;S<k.length;S++)o3(y,k[S],!0);return y}({},r.defaultProps,M):M}}),process.env.NODE_ENV!=="production"&&(F6(p,g),R.warnTooManyClasses=function(M,y){var H={},Z=!1;return function(S){if(!Z&&(H[S]=!0,Object.keys(H).length>=200)){var k=y?' with the id of "'.concat(y,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(k,`.
|
69
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Z5(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(var a=t[0],n=[],r=1,c=t.length;r<c;r+=1)n.push(t[r]);return n.forEach(function(o){a=a.replace(/%[a-z]/,o)}),a}function n2(t){for(var i=[],a=1;a<arguments.length;a++)i[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(t," for more information.").concat(i.length>0?" Args: ".concat(i.join(", ")):"")):new Error(Z5.apply(void 0,N1([w5[t]],i,!1)).trim())}var b5=function(){function t(i){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=i}return t.prototype.indexOfGroup=function(i){for(var a=0,n=0;n<i;n++)a+=this.groupSizes[n];return a},t.prototype.insertRules=function(i,a){if(i>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,c=r;i>=c;)if((c<<=1)<0)throw n2(16,"".concat(i));this.groupSizes=new Uint32Array(c),this.groupSizes.set(n),this.length=c;for(var o=r;o<c;o++)this.groupSizes[o]=0}for(var C=this.indexOfGroup(i+1),s=(o=0,a.length);o<s;o++)this.tag.insertRule(C,a[o])&&(this.groupSizes[i]++,C++)},t.prototype.clearGroup=function(i){if(i<this.length){var a=this.groupSizes[i],n=this.indexOfGroup(i),r=n+a;this.groupSizes[i]=0;for(var c=n;c<r;c++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(i){var a="";if(i>=this.length||this.groupSizes[i]===0)return a;for(var n=this.groupSizes[i],r=this.indexOfGroup(i),c=r+n,o=r;o<c;o++)a+="".concat(this.tag.getRule(o)).concat(g3);return a},t}(),_2=new Map,b2=new Map,y2=1,m2=function(t){if(_2.has(t))return _2.get(t);for(;b2.has(y2);)y2++;var i=y2++;if(process.env.NODE_ENV!=="production"&&((0|i)<0||i>1073741824))throw n2(16,"".concat(i));return _2.set(t,i),b2.set(i,t),i},$5=function(t,i){y2=i+1,_2.set(t,i),b2.set(i,t)},R5="style[".concat(T1,"][").concat(B6,'="').concat(S2,'"]'),B5=new RegExp("^".concat(T1,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),F5=function(t,i,a){for(var n,r=a.split(","),c=0,o=r.length;c<o;c++)(n=r[c])&&t.registerName(i,n)},H5=function(t,i){for(var a,n=((a=i.textContent)!==null&&a!==void 0?a:"").split(g3),r=[],c=0,o=n.length;c<o;c++){var C=n[c].trim();if(C){var s=C.match(B5);if(s){var h=0|parseInt(s[1],10),m=s[2];h!==0&&($5(m,h),F5(t,m,s[3]),t.getTag().insertRules(h,r)),r.length=0}else r.push(C)}}};function j5(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var N6=function(t){var i=document.head,a=t||i,n=document.createElement("style"),r=function(C){var s=Array.from(C.querySelectorAll("style[".concat(T1,"]")));return s[s.length-1]}(a),c=r!==void 0?r.nextSibling:null;n.setAttribute(T1,R6),n.setAttribute(B6,S2);var o=j5();return o&&n.setAttribute("nonce",o),a.insertBefore(n,c),n},k5=function(){function t(i){this.element=N6(i),this.element.appendChild(document.createTextNode("")),this.sheet=function(a){if(a.sheet)return a.sheet;for(var n=document.styleSheets,r=0,c=n.length;r<c;r++){var o=n[r];if(o.ownerNode===a)return o}throw n2(17)}(this.element),this.length=0}return t.prototype.insertRule=function(i,a){try{return this.sheet.insertRule(a,i),this.length++,!0}catch{return!1}},t.prototype.deleteRule=function(i){this.sheet.deleteRule(i),this.length--},t.prototype.getRule=function(i){var a=this.sheet.cssRules[i];return a&&a.cssText?a.cssText:""},t}(),S5=function(){function t(i){this.element=N6(i),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(i,a){if(i<=this.length&&i>=0){var n=document.createTextNode(a);return this.element.insertBefore(n,this.nodes[i]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(i){this.element.removeChild(this.nodes[i]),this.length--},t.prototype.getRule=function(i){return i<this.length?this.nodes[i].textContent:""},t}(),A5=function(){function t(i){this.rules=[],this.length=0}return t.prototype.insertRule=function(i,a){return i<=this.length&&(this.rules.splice(i,0,a),this.length++,!0)},t.prototype.deleteRule=function(i){this.rules.splice(i,1),this.length--},t.prototype.getRule=function(i){return i<this.length?this.rules[i]:""},t}(),q3=E3,P5={isServer:!E3,useCSSOMInjection:!p5},$2=function(){function t(i,a,n){i===void 0&&(i=l2),a===void 0&&(a={});var r=this;this.options=u1(u1({},P5),i),this.gs=a,this.names=new Map(n),this.server=!!i.isServer,!this.server&&E3&&q3&&(q3=!1,function(c){for(var o=document.querySelectorAll(R5),C=0,s=o.length;C<s;C++){var h=o[C];h&&h.getAttribute(T1)!==R6&&(H5(c,h),h.parentNode&&h.parentNode.removeChild(h))}}(this)),V3(this,function(){return function(c){for(var o=c.getTag(),C=o.length,s="",h=function(p){var g=function($){return b2.get($)}(p);if(g===void 0)return"continue";var _=c.names.get(g),E=o.getGroup(p);if(_===void 0||E.length===0)return"continue";var x="".concat(T1,".g").concat(p,'[id="').concat(g,'"]'),v="";_!==void 0&&_.forEach(function($){$.length>0&&(v+="".concat($,","))}),s+="".concat(E).concat(x,'{content:"').concat(v,'"}').concat(g3)},m=0;m<C;m++)h(m);return s}(r)})}return t.registerId=function(i){return m2(i)},t.prototype.reconstructWithOptions=function(i,a){return a===void 0&&(a=!0),new t(u1(u1({},this.options),i),this.gs,a&&this.names||void 0)},t.prototype.allocateGSInstance=function(i){return this.gs[i]=(this.gs[i]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(i=function(a){var n=a.useCSSOMInjection,r=a.target;return a.isServer?new A5(r):n?new k5(r):new S5(r)}(this.options),new b5(i)));var i},t.prototype.hasNameForId=function(i,a){return this.names.has(i)&&this.names.get(i).has(a)},t.prototype.registerName=function(i,a){if(m2(i),this.names.has(i))this.names.get(i).add(a);else{var n=new Set;n.add(a),this.names.set(i,n)}},t.prototype.insertRules=function(i,a,n){this.registerName(i,a),this.getTag().insertRules(m2(i),n)},t.prototype.clearNames=function(i){this.names.has(i)&&this.names.get(i).clear()},t.prototype.clearRules=function(i){this.getTag().clearGroup(m2(i)),this.clearNames(i)},t.prototype.clearTag=function(){this.tag=void 0},t}(),D5=/&/g,z5=/^\s*\/\/.*$/gm;function T6(t,i){return t.map(function(a){return a.type==="rule"&&(a.value="".concat(i," ").concat(a.value),a.value=a.value.replaceAll(",",",".concat(i," ")),a.props=a.props.map(function(n){return"".concat(i," ").concat(n)})),Array.isArray(a.children)&&a.type!=="@keyframes"&&(a.children=T6(a.children,i)),a})}function O5(t){var i,a,n,r=l2,c=r.options,o=c===void 0?l2:c,C=r.plugins,s=C===void 0?A2:C,h=function(g,_,E){return E.startsWith(a)&&E.endsWith(a)&&E.replaceAll(a,"").length>0?".".concat(i):g},m=s.slice();m.push(function(g){g.type===F2&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(D5,a).replace(n,h))}),o.prefix&&m.push(d5),m.push(c5);var p=function(g,_,E,x){_===void 0&&(_=""),E===void 0&&(E=""),x===void 0&&(x="&"),i=x,a=_,n=new RegExp("\\".concat(a,"\\b"),"g");var v=g.replace(z5,""),$=n5(E||_?"".concat(E," ").concat(_," { ").concat(v," }"):v);o.namespace&&($=T6($,o.namespace));var B=[];return Z2($,o5(m.concat(C5(function(R){return B.push(R)})))),B};return p.hash=s.length?s.reduce(function(g,_){return _.name||n2(15),D1(g,_.name)},j6).toString():"",p}var N5=new $2,C3=O5(),I6=u.createContext({shouldForwardProp:void 0,styleSheet:N5,stylis:C3});I6.Consumer;u.createContext(void 0);function d3(){return u.useContext(I6)}var U3=function(){function t(i,a){var n=this;this.inject=function(r,c){c===void 0&&(c=C3);var o=n.name+c.hash;r.hasNameForId(n.id,o)||r.insertRules(n.id,o,c(n.rules,o,"@keyframes"))},this.name=i,this.id="sc-keyframes-".concat(i),this.rules=a,V3(this,function(){throw n2(12,String(n.name))})}return t.prototype.getName=function(i){return i===void 0&&(i=C3),this.name+i.hash},t}(),T5=function(t){return t>="A"&&t<="Z"};function X3(t){for(var i="",a=0;a<t.length;a++){var n=t[a];if(a===1&&n==="-"&&t[0]==="-")return t;T5(n)?i+="-"+n.toLowerCase():i+=n}return i.startsWith("ms-")?"-"+i:i}var W6=function(t){return t==null||t===!1||t===""},G6=function(t){var i,a,n=[];for(var r in t){var c=t[r];t.hasOwnProperty(r)&&!W6(c)&&(Array.isArray(c)&&c.isCss||L2(c)?n.push("".concat(X3(r),":"),c,";"):i2(c)?n.push.apply(n,N1(N1(["".concat(r," {")],G6(c),!1),["}"],!1)):n.push("".concat(X3(r),": ").concat((i=r,(a=c)==null||typeof a=="boolean"||a===""?"":typeof a!="number"||a===0||i in s5||i.startsWith("--")?String(a).trim():"".concat(a,"px")),";")))}return n};function A1(t,i,a,n){if(W6(t))return[];if(x3(t))return[".".concat(t.styledComponentId)];if(L2(t)){if(!L2(c=t)||c.prototype&&c.prototype.isReactComponent||!i)return[t];var r=t(i);return process.env.NODE_ENV==="production"||typeof r!="object"||Array.isArray(r)||r instanceof U3||i2(r)||r===null||console.error("".concat(A6(t)," 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.")),A1(r,i,a,n)}var c;return t instanceof U3?a?(t.inject(a,n),[t.getName(n)]):[t]:i2(t)?G6(t):Array.isArray(t)?Array.prototype.concat.apply(A2,t.map(function(o){return A1(o,i,a,n)})):[t.toString()]}function Y6(t){for(var i=0;i<t.length;i+=1){var a=t[i];if(L2(a)&&!x3(a))return!1}return!0}var I5=k6(S2),W5=function(){function t(i,a,n){this.rules=i,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Y6(i),this.componentId=a,this.baseHash=D1(I5,a),this.baseStyle=n,$2.registerId(a)}return t.prototype.generateAndInjectStyles=function(i,a,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(i,a,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&a.hasNameForId(this.componentId,this.staticRulesId))r=z1(r,this.staticRulesId);else{var c=c3(A1(this.rules,i,a,n)),o=r3(D1(this.baseHash,c)>>>0);if(!a.hasNameForId(this.componentId,o)){var C=n(c,".".concat(o),void 0,this.componentId);a.insertRules(this.componentId,o,C)}r=z1(r,o),this.staticRulesId=o}else{for(var s=D1(this.baseHash,n.hash),h="",m=0;m<this.rules.length;m++){var p=this.rules[m];if(typeof p=="string")h+=p,process.env.NODE_ENV!=="production"&&(s=D1(s,p));else if(p){var g=c3(A1(p,i,a,n));s=D1(s,g+m),h+=g}}if(h){var _=r3(s>>>0);a.hasNameForId(this.componentId,_)||a.insertRules(this.componentId,_,n(h,".".concat(_),void 0,this.componentId)),r=z1(r,_)}}return r},t}(),v3=u.createContext(void 0);v3.Consumer;var U2={},J3=new Set;function G5(t,i,a){var n=x3(t),r=t,c=!q2(t),o=i.attrs,C=o===void 0?A2:o,s=i.componentId,h=s===void 0?function(M,y){var H=typeof M!="string"?"sc":T3(M);U2[H]=(U2[H]||0)+1;var Z="".concat(H,"-").concat(S6(S2+H+U2[H]));return y?"".concat(y,"-").concat(Z):Z}(i.displayName,i.parentComponentId):s,m=i.displayName,p=m===void 0?function(M){return q2(M)?"styled.".concat(M):"Styled(".concat(A6(M),")")}(t):m,g=i.displayName&&i.componentId?"".concat(T3(i.displayName),"-").concat(i.componentId):i.componentId||h,_=n&&r.attrs?r.attrs.concat(C).filter(Boolean):C,E=i.shouldForwardProp;if(n&&r.shouldForwardProp){var x=r.shouldForwardProp;if(i.shouldForwardProp){var v=i.shouldForwardProp;E=function(M,y){return x(M,y)&&v(M,y)}}else E=x}var $=new W5(a,g,n?r.componentStyle:void 0);function B(M,y){return function(H,Z,S){var k=H.attrs,z=H.componentStyle,V=H.defaultProps,A=H.foldedComponentIds,b=H.styledComponentId,w=H.target,j=u.useContext(v3),D=d3(),W=H.shouldForwardProp||D.shouldForwardProp;process.env.NODE_ENV!=="production"&&u.useDebugValue(b);var G=H6(Z,j,V)||l2,T=function(q,L1,c1){for(var r1,f1=u1(u1({},L1),{className:void 0,theme:c1}),V1=0;V1<q.length;V1+=1){var s1=L2(r1=q[V1])?r1(f1):r1;for(var m1 in s1)f1[m1]=m1==="className"?z1(f1[m1],s1[m1]):m1==="style"?u1(u1({},f1[m1]),s1[m1]):s1[m1]}return L1.className&&(f1.className=z1(f1.className,L1.className)),f1}(k,Z,G),l1=T.as||w,a1={};for(var Q in T)T[Q]===void 0||Q[0]==="$"||Q==="as"||Q==="theme"&&T.theme===G||(Q==="forwardedAs"?a1.as=T.forwardedAs:W&&!W(Q,l1)||(a1[Q]=T[Q],W||process.env.NODE_ENV!=="development"||Y9(Q)||J3.has(Q)||!n3.has(l1)||(J3.add(Q),console.warn('styled-components: it looks like an unknown prop "'.concat(Q,'" 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 X=function(q,L1){var c1=d3(),r1=q.generateAndInjectStyles(L1,c1.styleSheet,c1.stylis);return process.env.NODE_ENV!=="production"&&u.useDebugValue(r1),r1}(z,T);process.env.NODE_ENV!=="production"&&H.warnTooManyClasses&&H.warnTooManyClasses(X);var K=z1(A,b);return X&&(K+=" "+X),T.className&&(K+=" "+T.className),a1[q2(l1)&&!n3.has(l1)?"class":"className"]=K,a1.ref=S,u.createElement(l1,a1)}(R,M,y)}B.displayName=p;var R=u.forwardRef(B);return R.attrs=_,R.componentStyle=$,R.displayName=p,R.shouldForwardProp=E,R.foldedComponentIds=n?z1(r.foldedComponentIds,r.styledComponentId):"",R.styledComponentId=g,R.target=n?r.target:t,Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=n?function(y){for(var H=[],Z=1;Z<arguments.length;Z++)H[Z-1]=arguments[Z];for(var S=0,k=H;S<k.length;S++)o3(y,k[S],!0);return y}({},r.defaultProps,M):M}}),process.env.NODE_ENV!=="production"&&(F6(p,g),R.warnTooManyClasses=function(M,y){var H={},Z=!1;return function(S){if(!Z&&(H[S]=!0,Object.keys(H).length>=200)){var k=y?' with the id of "'.concat(y,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(k,`.
|
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 => ({
|
@@ -615,7 +615,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
615
615
|
${t=>d`
|
616
616
|
${t.$css}
|
617
617
|
`}
|
618
|
-
`,h1=({children:t,element:i="div",width:a,height:n,background:r,gap:c,direction:o,wrap:C,grow:s,shrink:h,basis:m,justify:p,items:g,content:_,padding:E,margin:
|
618
|
+
`,h1=({children:t,element:i="div",width:a,height:n,background:r,gap:c,direction:o,wrap:C,grow:s,shrink:h,basis:m,justify:p,items:g,content:_,padding:E,margin:x,radius:v,border:$,css:B,...R})=>{const M={div:"div",main:"main",article:"article",p:"p",span:"span"};return L.jsx(o0,{$width:a,$height:n,$background:r,$gap:c,$wrap:C,$grow:s,$shrink:h,$basis:m,$justify:p,$items:g,$content:_,$padding:E,$margin:x,$radius:v,$border:$,$css:B,$direction:o,as:M[i],...R,children:t})},C0=F.div`
|
619
619
|
width: fit-content;
|
620
620
|
align-content: center;
|
621
621
|
cursor: ${t=>!t.disabled&&!t.selected&&"pointer"};
|
@@ -788,7 +788,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
788
788
|
}
|
789
789
|
`}
|
790
790
|
}
|
791
|
-
`,M0=({filled:t=!1,title:i="Title",titleFontSize:a=20,titleFontWeight:n=700,text:r="Text",textFontSize:c=16,textFontWeight:o=400,icon:C,buttonVariant:s="secondaryOutlined",buttonIntent:h="accent",buttonLabel:m="Button",buttonGrow:p=!1,disabled:g=!1,loading:_=!1,buttonOnClick:E,...
|
791
|
+
`,M0=({filled:t=!1,title:i="Title",titleFontSize:a=20,titleFontWeight:n=700,text:r="Text",textFontSize:c=16,textFontWeight:o=400,icon:C,buttonVariant:s="secondaryOutlined",buttonIntent:h="accent",buttonLabel:m="Button",buttonGrow:p=!1,disabled:g=!1,loading:_=!1,buttonOnClick:E,...x})=>L.jsxs(v0,{$filled:t,$title:i,$titleFontSize:a,$titleFontWeight:n,$text:r,$textFontSize:c,$textFontWeight:o,$icon:C,$disabled:g,...x,children:[L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsx("span",{children:i}),C&&L.jsx(N,{style:{marginTop:"2px"},icon:C,color:l.info_600,size:20})]}),r&&L.jsx("div",{className:"a1b2c3d",children:typeof r=="string"?L.jsx("span",{children:r}):r})]}),L.jsx("div",{children:L.jsx(E1,{loading:_,width:p?"100%":"auto",onClick:E,label:m,disabled:g,intent:h,variant:s})})]}),_0={small:d`
|
792
792
|
height: 32px;
|
793
793
|
width: 32px;
|
794
794
|
border-radius: 8px;
|
@@ -1316,7 +1316,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1316
1316
|
-moz-appearance: textfield;
|
1317
1317
|
appearance: textfield;
|
1318
1318
|
}
|
1319
|
-
`,G0=(t,i)=>t&&typeof t=="string"&&N0.includes(t)?i?"text":t:"text",d2=({id:t,type:i="text",name:a,placeholder:n,value:r,setValue:c,size:o="medium",intent:C="default",loading:s=!1,clearButton:h=!1,leftText:m,rightText:p,leftButtonIcon:g,rightButtonIcon:_,rightButtonOnClick:E,onCloseNumpad:
|
1319
|
+
`,G0=(t,i)=>t&&typeof t=="string"&&N0.includes(t)?i?"text":t:"text",d2=({id:t,type:i="text",name:a,placeholder:n,value:r,setValue:c,size:o="medium",intent:C="default",loading:s=!1,clearButton:h=!1,leftText:m,rightText:p,leftButtonIcon:g,rightButtonIcon:_,rightButtonOnClick:E,onCloseNumpad:x,numpad:v=!1,numpadOffset:$=10,numpadFloatNumber:B=!0,numpadPosition:R={left:"-4px",top:"100%"},numpadPortal:M=!1,...y})=>{const H=u.useRef(null),[Z,S]=u.useState(!1),k=()=>{c("")},z=A=>{c&&c(A)},V=A=>{if(v&&!s)if(M){const b=setTimeout(()=>S(!0),100);return()=>clearTimeout(b)}else S(!0);y!=null&&y.onClick&&y.onClick(A)};return u.useEffect(()=>{const A=H==null?void 0:H.current,b=w=>{const j=document.getElementById("rbro-numpad-wrapper"),D=j==null?void 0:j.contains(w.target);A&&!A.contains(w.target)&&!D&&(x&&x(),S(!1))};if(Z)return document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}},[Z,H,x]),L.jsxs(I0,{ref:H,$leftButtonIcon:g,$leftText:m,$rightButtonIcon:_,$rightText:p,$rightButtonOnClick:E,$size:o,$intent:C,$disabled:y.disabled,$clearButton:h,$loading:s,children:[v&&Z&&(M?O9.createPortal(L.jsx(h3,{value:r,getValue:A=>z(A),handleFooterButton:()=>{x&&x(),S(!1)},offset:$,float:B,withinPortal:!0,relativeRef:H}),document.body):L.jsx(h3,{value:r,getValue:A=>z(A),handleFooterButton:()=>{x&&x(),S(!1)},offset:$,float:B,position:R})),(g||m&&typeof m=="string")&&L.jsxs("div",{className:"rnd8f3k9p2",children:[g&&L.jsx(N,{icon:g,size:20,color:y.disabled?l.gray_300:l.gray_500}),m&&typeof m=="string"&&L.jsx("span",{children:m})]}),L.jsx(W0,{...y,$size:o,$intent:C,$type:i,id:t,name:a,type:G0(i,v),placeholder:n,value:r,readOnly:v,onChange:A=>{v||z(A.target.value)},onClick:V}),s?L.jsx(W1,{style:{opacity:y.disabled?.3:1},size:20}):(_||p&&typeof p=="string"||C&&C==="success"||h)&&L.jsxs("div",{className:"rnd9x7m2k4l",children:[p&&typeof p=="string"&&C!=="success"&&L.jsx("span",{children:p}),(_||C==="success"||h&&!!r)&&L.jsx(N,{onClick:y.disabled?void 0:_?E:k,style:{cursor:E||h?"pointer":"default"},icon:C==="success"?"checkmark_filled":_||"clear_filled",size:20,color:y.disabled?l.gray_300:C==="success"?l.success_600:l.gray_500})]})]})},l6={info:l.gray_700,success:l.success_600,warning:l.warning_500,danger:l.danger_500},Y0=F.div`
|
1320
1320
|
display: flex;
|
1321
1321
|
flex-direction: column;
|
1322
1322
|
gap: 8px;
|
@@ -1377,7 +1377,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1377
1377
|
line-height: 1em;
|
1378
1378
|
color: ${t=>t.$helperIntent&&["info","success","danger","warning"].includes(t.$helperIntent)?l6[t.$helperIntent]:l.gray_700};
|
1379
1379
|
}
|
1380
|
-
`,p2=u.forwardRef(({children:t,label:i="Label",labelFontSize:a=14,required:n=!1,showHelpButton:r=!1,leftHelperText:c,rightHelperText:o,helperTextSize:C=12,helperIntent:s="info",labelFor:h,helpButtonOnClick:m,rightText:p,showLeftHelperIcon:g=!0,..._},E)=>{const
|
1380
|
+
`,p2=u.forwardRef(({children:t,label:i="Label",labelFontSize:a=14,required:n=!1,showHelpButton:r=!1,leftHelperText:c,rightHelperText:o,helperTextSize:C=12,helperIntent:s="info",labelFor:h,helpButtonOnClick:m,rightText:p,showLeftHelperIcon:g=!0,..._},E)=>{const x={info:L.jsx(N,{icon:"info_filled",color:l.gray_500,size:14}),success:L.jsx(N,{icon:"checkmark_filled",color:l.success_600,size:14}),warning:L.jsx(N,{icon:"warning_filled",color:l.warning_500,size:14}),danger:L.jsx(N,{icon:"warning_filled",color:l.danger_500,size:14})};return L.jsxs(Y0,{ref:E,$label:i,$labelFontSize:a,$required:n,$showHelpButton:r,$leftHelperText:c,$rightHelperText:o,$helperIntent:s,$labelFor:h,$helpButtonOnClick:m,..._,children:[(i||n||r)&&L.jsxs(q0,{$labelFontSize:a,children:[n&&L.jsx(N,{icon:"asterix",size:8,color:l.danger_500}),L.jsx("label",{htmlFor:h,children:i}),L.jsxs("div",{children:[p&&typeof p=="string"&&L.jsx("span",{children:p}),r&&L.jsx(N,{style:{cursor:"pointer",paddingTop:"1px"},onClick:m,size:a,color:l.info_600,icon:"hint"})]})]}),t,(typeof c=="string"&&!!c.length||typeof o=="string"&&!!o.length)&&L.jsxs(U0,{$leftHelperText:c,$rightHelperText:o,$helperTextSize:C,$helperIntent:s,children:[typeof c=="string"&&!!c.length&&L.jsxs("div",{children:[g&&x[s],L.jsx("span",{children:c})]}),L.jsx("span",{children:o})]})]})});p2.displayName="FormField";const X0=[32,40,48],J0=F.div`
|
1381
1381
|
display: flex;
|
1382
1382
|
justify-content: center;
|
1383
1383
|
align-items: center;
|
@@ -1427,12 +1427,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1427
1427
|
}
|
1428
1428
|
}
|
1429
1429
|
}
|
1430
|
-
`,Q0=({id:t,name:i,value:a=0,setValue:n,min:r=0,max:c=100,showSteppers:o=!1,stepSize:C=1,disabled:s=!1,height:h=32,wrapperWidth:m,...p})=>{const g=u.useRef(null),[_,E]=u.useState(!1),
|
1430
|
+
`,Q0=({id:t,name:i,value:a=0,setValue:n,min:r=0,max:c=100,showSteppers:o=!1,stepSize:C=1,disabled:s=!1,height:h=32,wrapperWidth:m,...p})=>{const g=u.useRef(null),[_,E]=u.useState(!1),x=u.useCallback(Z=>{var k,z;const S=(k=g.current)==null?void 0:k.getBoundingClientRect();if(S){let V;if("touches"in Z?V=(z=Z.touches[0])==null?void 0:z.clientX:"clientX"in Z&&(V=Z.clientX),V!==void 0){const A=V-S.left,b=S.width,w=A/b*(c-r)+r;let j=Math.round(w/C)*C;j=Math.max(r,j),j=Math.min(c,j),n&&n(j)}}},[c,r,n,C]),v=Z=>{if(Z==="minus"){if(a===r)return;if(a-C<r){n&&n(r);return}n&&n(a-C)}else{if(a===c)return;if(a+C>c){n&&n(c);return}n&&n(a+C)}},$=u.useCallback(()=>{n&&n(a),E(!1)},[a,n]),B=u.useCallback(Z=>{_&&x(Z)},[_,x]),R=Z=>{s||(x(Z),E(!0))},M=Z=>{E(!0),x(Z)},y=u.useCallback(Z=>{x(Z)},[x]),H=u.useCallback(()=>{n&&n(a),E(!1)},[a,n]);return u.useEffect(()=>{if(!s)return _&&(window.addEventListener("mousemove",B),window.addEventListener("mouseup",$),window.addEventListener("touchmove",y,{passive:!0}),window.addEventListener("touchend",H)),()=>{window.removeEventListener("mousemove",B),window.removeEventListener("mouseup",$),window.removeEventListener("touchmove",y),window.removeEventListener("touchend",H)}},[_,B,$,H,y,s]),L.jsxs(J0,{$height:h,$showSteppers:o,$disabled:s,$wrapperWidth:m,children:[o&&L.jsx(x1,{disabled:s,icon:"minus",intent:"info",variant:"secondaryOutlined",size:"small",shape:"circle",onClick:()=>v("minus")}),L.jsx(K0,{$disabled:s,ref:g,role:"slider",id:t,"aria-label":i,tabIndex:0,"aria-valuemin":r,"aria-valuemax":c,"aria-valuenow":a,onMouseDown:R,onTouchStart:M,...p,children:L.jsx("div",{children:L.jsx("div",{style:{width:`${(a-r)/(c-r)*100}%`},children:L.jsx("span",{style:{cursor:s?"default":_?"grabbing":"grab",right:`${(a-r)/(c-r)*100*.32-32}px`}})})})}),o&&L.jsx(x1,{disabled:s,icon:"add",intent:"info",variant:"secondaryOutlined",size:"small",shape:"circle",onClick:()=>v("add")})]})},ee=F.div`
|
1431
1431
|
border-radius: 8px;
|
1432
1432
|
border: 1px solid
|
1433
|
-
${({$featured:t})=>t?l.accent_600:l.gray_200};
|
1433
|
+
${({$featured:t,$selected:i})=>i?l.purple_500:t?l.accent_600:l.gray_200};
|
1434
1434
|
overflow: hidden;
|
1435
|
-
min-height: 274px;
|
1435
|
+
min-height: ${({$hideButton:t})=>t?"274px":"314px"};
|
1436
1436
|
box-sizing: border-box;
|
1437
1437
|
height: 100%;
|
1438
1438
|
width: 100%;
|
@@ -1469,13 +1469,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1469
1469
|
align-items: center;
|
1470
1470
|
justify-content: space-between;
|
1471
1471
|
gap: 8px;
|
1472
|
-
background-color: ${t.$featured?l.accent_100:"transparent"};
|
1472
|
+
background-color: ${t.$refused?l.gray_30:t.$selected?l.purple_50:t.$featured?l.accent_100:"transparent"};
|
1473
1473
|
|
1474
1474
|
& > span {
|
1475
1475
|
font-size: 18px;
|
1476
1476
|
font-weight: 700;
|
1477
1477
|
line-height: 120%;
|
1478
|
-
color: ${l.purple_600};
|
1478
|
+
color: ${({$refused:i})=>i?l.gray_300:l.purple_600};
|
1479
1479
|
}
|
1480
1480
|
}
|
1481
1481
|
|
@@ -1486,7 +1486,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1486
1486
|
padding: 8px 16px 12px 16px;
|
1487
1487
|
min-height: 104px;
|
1488
1488
|
height: 100%;
|
1489
|
-
background-color: ${t.$featured?l.accent_100:"transparent"};
|
1489
|
+
background-color: ${t.$refused?l.gray_30:t.$selected?l.purple_50:t.$featured?l.accent_100:"transparent"};
|
1490
1490
|
|
1491
1491
|
& > div {
|
1492
1492
|
display: flex;
|
@@ -1507,14 +1507,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1507
1507
|
font-size: 14px;
|
1508
1508
|
font-weight: 400;
|
1509
1509
|
line-height: 120%;
|
1510
|
-
color: ${l.gray_700};
|
1510
|
+
color: ${({$refused:i})=>i?l.gray_200:l.gray_700};
|
1511
1511
|
}
|
1512
1512
|
|
1513
1513
|
& > span:nth-child(2) {
|
1514
1514
|
font-size: 20px;
|
1515
1515
|
font-weight: 700;
|
1516
1516
|
line-height: 120%;
|
1517
|
-
color: ${l.gray_950};
|
1517
|
+
color: ${({$refused:i})=>i?l.gray_300:l.gray_950};
|
1518
1518
|
}
|
1519
1519
|
}
|
1520
1520
|
|
@@ -1524,14 +1524,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1524
1524
|
font-size: 12px;
|
1525
1525
|
font-weight: 400;
|
1526
1526
|
line-height: 120%;
|
1527
|
-
color: ${l.gray_700};
|
1527
|
+
color: ${({$refused:i})=>i?l.gray_200:l.gray_700};
|
1528
1528
|
}
|
1529
1529
|
|
1530
1530
|
& > span:nth-child(2) {
|
1531
1531
|
font-size: 14px;
|
1532
1532
|
font-weight: 500;
|
1533
1533
|
line-height: 120%;
|
1534
|
-
color: ${l.gray_950};
|
1534
|
+
color: ${({$refused:i})=>i?l.gray_300:l.gray_950};
|
1535
1535
|
}
|
1536
1536
|
}
|
1537
1537
|
}
|
@@ -1577,16 +1577,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1577
1577
|
|
1578
1578
|
& > div:first-of-type {
|
1579
1579
|
border-right: 0.5px solid ${l.gray_200};
|
1580
|
-
background-color: ${t.$featured?l.white:l.gray_30};
|
1580
|
+
background-color: ${t.$refused?l.gray_60:t.$featured?l.white:l.gray_30};
|
1581
1581
|
|
1582
1582
|
& > div {
|
1583
1583
|
& > div {
|
1584
1584
|
& > span:first-child {
|
1585
|
-
color: ${l.gray_700};
|
1585
|
+
color: ${({$refused:i})=>i?l.gray_300:l.gray_700};
|
1586
1586
|
}
|
1587
1587
|
|
1588
1588
|
& > span:last-child {
|
1589
|
-
color: ${l.gray_950};
|
1589
|
+
color: ${({$refused:i})=>i?l.gray_300:l.gray_950};
|
1590
1590
|
}
|
1591
1591
|
}
|
1592
1592
|
}
|
@@ -1594,15 +1594,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1594
1594
|
|
1595
1595
|
& > div:last-of-type {
|
1596
1596
|
border-left: 0.5px solid ${l.gray_200};
|
1597
|
-
background-color: ${i=>{var a;return(a=i.$refinantare)!=null&&a.length?l.success_100:l.gray_60}};
|
1597
|
+
background-color: ${i=>{var a;return i.$refused?l.gray_60:(a=i.$refinantare)!=null&&a.length?l.success_100:l.gray_60}};
|
1598
1598
|
|
1599
1599
|
& > div {
|
1600
1600
|
& > div {
|
1601
1601
|
& > span:first-child {
|
1602
|
-
color: ${i=>{var a;return(a=i.$refinantare)!=null&&a.length?l.success_800:l.gray_300}};
|
1602
|
+
color: ${i=>{var a;return i.$refused?l.gray_300:(a=i.$refinantare)!=null&&a.length?l.success_800:l.gray_300}};
|
1603
1603
|
}
|
1604
1604
|
& > span:last-child {
|
1605
|
-
color: ${i=>{var a;return(a=i.$refinantare)!=null&&a.length?l.success_600:l.gray_300}};
|
1605
|
+
color: ${i=>{var a;return i.$refused?l.gray_300:(a=i.$refinantare)!=null&&a.length?l.success_600:l.gray_300}};
|
1606
1606
|
}
|
1607
1607
|
}
|
1608
1608
|
}
|
@@ -1614,8 +1614,31 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1614
1614
|
height: 106px;
|
1615
1615
|
box-sizing: border-box;
|
1616
1616
|
}
|
1617
|
+
|
1618
|
+
& > button {
|
1619
|
+
appearance: none;
|
1620
|
+
border: none;
|
1621
|
+
outline: none;
|
1622
|
+
background-color: ${({$selected:i,$disabled:a})=>i?a?l.gray_100:l.purple_600:"transparent"};
|
1623
|
+
padding: 0px;
|
1624
|
+
width: 100%;
|
1625
|
+
height: 40px;
|
1626
|
+
display: flex;
|
1627
|
+
align-items: center;
|
1628
|
+
justify-content: center;
|
1629
|
+
gap: 8px;
|
1630
|
+
border-top: 1px solid ${l.gray_200};
|
1631
|
+
cursor: pointer;
|
1632
|
+
|
1633
|
+
& > span {
|
1634
|
+
font-size: 14px;
|
1635
|
+
font-weight: 500;
|
1636
|
+
line-height: 120%;
|
1637
|
+
color: ${({$selected:i,$disabled:a})=>i?a?l.gray_600:l.white:a?l.gray_300:l.purple_600};
|
1638
|
+
}
|
1639
|
+
}
|
1617
1640
|
`}
|
1618
|
-
`,K6=({title:t="Propunere Flexicredit",sumaRataTotala:i=!1,sumaNoua:a="17.000 RON",rataNoua:n="500 RON",sumaTotala:r="27.000 RON",rataTotala:c="700 RON",perioada:o="30 luni",refinantare:C="",empty:s=!1,emptyText:h="Indisponibil",featured:m=!1,buttonOnClick:p,
|
1641
|
+
`,K6=({title:t="Propunere Flexicredit",sumaRataTotala:i=!1,sumaNoua:a="17.000 RON",rataNoua:n="500 RON",sumaTotala:r="27.000 RON",rataTotala:c="700 RON",perioada:o="30 luni",refinantare:C="",empty:s=!1,emptyText:h="Indisponibil",featured:m=!1,buttonOnClick:p,selectOnClick:g,hideButton:_=!0,selected:E=!1,disabled:x=!1,refused:v=!1,children:$,...B})=>{let R=null;return u.Children.toArray($).filter(Boolean).forEach(M=>{M.type===Q6&&(R=M)}),L.jsx(ee,{$refinantare:C,$empty:s,$featured:m,$selected:E,$disabled:x,$refused:v,$hideButton:_,...B,children:s?L.jsxs("div",{children:[L.jsx(N,{size:20,icon:"rejected",color:l.gray_500}),L.jsx("span",{children:h})]}):L.jsxs(L.Fragment,{children:[L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsx("span",{children:t}),L.jsx(x1,{onClick:p,icon:"new_tab",intent:"accent",variant:"tertiary",shape:"rounded",color:l.info_800,size:"medium"})]}),L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsx("span",{children:"Suma noua"}),L.jsx("span",{children:a??""})]}),i&&L.jsxs("div",{children:[L.jsx("span",{children:"Suma totala"}),L.jsx("span",{children:r??""})]})]}),L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsx("span",{children:"Rata noua"}),L.jsx("span",{children:n??""})]}),i&&L.jsxs("div",{children:[L.jsx("span",{children:"Rata totala"}),L.jsx("span",{children:c??""})]})]})]}),L.jsxs("div",{children:[L.jsx("div",{children:L.jsxs("div",{children:[L.jsx(N,{icon:"calendar",size:16,color:v?l.gray_200:l.gray_500}),L.jsxs("div",{children:[L.jsx("span",{children:"Perioada"}),L.jsx("span",{children:o??"-"})]})]})}),L.jsx("div",{children:L.jsxs("div",{children:[L.jsx(N,{icon:"money-return",size:16,color:v?l.gray_200:C.length?l.success_800:l.gray_200}),L.jsxs("div",{children:[L.jsx("span",{children:"Refinantare"}),L.jsx("span",{children:C.length?C:"Nu"})]})]})})]})]}),L.jsx("div",{children:R}),!_&&L.jsxs("button",{disabled:x,type:"button",onClick:x?()=>{}:g,children:[L.jsx(N,{icon:E?"checkmark_filled":"checkmark-part",size:16,color:E?x?l.gray_600:l.white:l.purple_600,style:{opacity:x&&!E?"0.25":"1"}}),L.jsx("span",{children:E?"Varianta selectata":"Vreau aceasta varianta!"})]})]})})},Q6=({children:t})=>t;K6.ContentSlot=Q6;const te=F.div`
|
1619
1642
|
width: fit-content;
|
1620
1643
|
|
1621
1644
|
${t=>!t.$topText&&!t.$bottomText?d`
|
@@ -1756,7 +1779,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
1756
1779
|
}
|
1757
1780
|
}
|
1758
1781
|
`}
|
1759
|
-
`,fe=({actionText:t="Trimite cod prin SMS",reActionText:i="Retrimite",intent:a="default",dangerLabel:n="Codul nu a putut fi trimis",successLabel:r="Codul a fost trimis",buttonIntent:c="default",disabled:o=!1,icon:C="retry-1",size:s="medium",delay:h=10,actionButtonOnClick:m,reActionButtonOnClick:p,...g})=>{const[_,E]=u.useState(h),[
|
1782
|
+
`,fe=({actionText:t="Trimite cod prin SMS",reActionText:i="Retrimite",intent:a="default",dangerLabel:n="Codul nu a putut fi trimis",successLabel:r="Codul a fost trimis",buttonIntent:c="default",disabled:o=!1,icon:C="retry-1",size:s="medium",delay:h=10,actionButtonOnClick:m,reActionButtonOnClick:p,...g})=>{const[_,E]=u.useState(h),[x,v]=u.useState(!1),[$,B]=u.useState(!1),R=()=>{!x&&!o&&($?(p&&p(),v(!0)):(B(!0),m&&m(),v(!0)))};return u.useEffect(()=>{if(x&&!o){const M=setInterval(()=>{E(y=>y<=1?(clearInterval(M),v(!1),0):y-1)},1e3);return()=>{clearInterval(M)}}else E(h)},[h,x,o]),L.jsxs(pe,{disabled:x||o,onClick:R,$intent:a,$loading:x,$size:s,$disabled:o,$buttonIntent:c,type:"button",...g,children:[a!=="default"&&L.jsx("span",{children:a==="success"?r:n}),x?L.jsx(N,{icon:"retry-1",size:s==="large"?18:16,color:l.info_200}):C!=null&&L.jsx(N,{icon:C,size:s==="large"?18:16,color:o?l.gray_300:x?l.info_200:c&&Object.keys(B2).includes(c)?B2[c]:l.info_800}),L.jsx("span",{children:x?`Retrimite in ${_} secunde`:$?i:t})]})},he=F.button`
|
1760
1783
|
width: fit-content;
|
1761
1784
|
outline: none;
|
1762
1785
|
border: none;
|
@@ -2661,7 +2684,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
2661
2684
|
}
|
2662
2685
|
}
|
2663
2686
|
}
|
2664
|
-
`,$e=({gap:t=8,title:i="Title",text:a="Text",img:n=void 0,backgroundColor:r="white",titleColor:c="gray_950",textColor:o="gray_950",titleFontSize:C=18,textFontSize:s=16,titleFontWeight:h=500,textFontWeight:m=400,width:p,imgHeight:g,showButton:_=!1,buttonLabel:E="Afla mai multe",buttonOnClick:
|
2687
|
+
`,$e=({gap:t=8,title:i="Title",text:a="Text",img:n=void 0,backgroundColor:r="white",titleColor:c="gray_950",textColor:o="gray_950",titleFontSize:C=18,textFontSize:s=16,titleFontWeight:h=500,textFontWeight:m=400,width:p,imgHeight:g,showButton:_=!1,buttonLabel:E="Afla mai multe",buttonOnClick:x,contained:v=!0,rigthIcon:$,rightIconColor:B="info_700",rightIconOnClick:R,...M})=>L.jsxs(be,{$gap:t,$backgroundColor:r,$titleColor:c,$textColor:o,$titleFontSize:C,$textFontSize:s,$titleFontWeight:h,$textFontWeight:m,$width:p,$imgHeight:g,$contained:v,$rigthIcon:$,...M,children:[n&&L.jsx("img",{src:n,alt:"preview_image_card"}),L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsxs("div",{children:[i&&L.jsx("h5",{children:i}),$&&L.jsx(N,{style:{cursor:"pointer"},icon:$,size:16,color:l[B],onClick:R})]}),a&&L.jsx("span",{children:a})]}),_&&L.jsx(E1,{onClick:x,style:{width:"fit-content"},intent:"info",variant:"secondaryOutlined",size:"small",label:E})]})]}),r6=[0,2,4,8],c6=[14,16,18,20,24],o6=[200,300,400,500,700,800],Re=F.div`
|
2665
2688
|
border-radius: 8px;
|
2666
2689
|
box-sizing: border-box;
|
2667
2690
|
display: flex;
|
@@ -2947,7 +2970,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
2947
2970
|
|
2948
2971
|
${({$intent:t,$variant:i})=>t&&["default","info","featured","success","danger"].includes(t)||i&&["default","light"].includes(i)?S1.button[i??"default"][t??"default"].wrapper:S1.button.default.default.wrapper}
|
2949
2972
|
}
|
2950
|
-
`,He=({intent:t="default",variant:i="default",icon:a,size:n="medium",text:r="Notification",showButton:c=!1,buttonText:o,buttonIcon:C,buttonFontWeight:s="400",buttonOnClick:h})=>L.jsxs(Fe,{$size:n,$intent:t,$variant:i,$showButton:c,$buttonFontWeight:s,children:[L.jsx("div",{children:L.jsxs("div",{children:[a&&L.jsx("div",{className:"Zt8bX3mQ9p",children:L.jsx(N,{icon:a,size:n&&["small","medium","large"].includes(n)?k1.wrapper[n].icon:k1.wrapper.medium.icon,color:t&&["default","info","featured","success","danger"].includes(t)||i&&["default","light"].includes(i)?S1.wrapper[i??"default"][t??"default"].icon:S1.wrapper.default.default.icon})}),r&&L.jsx("div",{className:"xKf9Lm2Pq7",children:r})]})}),c&&L.jsxs("button",{onClick:h,children:[o&&L.jsx("span",{children:o}),C&&L.jsx("div",{children:L.jsx(N,{icon:C,size:n&&["small","medium","large"].includes(n)?k1.button[n].icon:k1.button.medium.icon,color:t&&["default","info","featured","success","danger"].includes(t)||i&&["default","light"].includes(i)?S1.button[i??"default"][t??"default"].icon:S1.button.default.default.icon})})]})]}),_3=+new Date().getFullYear(),y3=+new Date().getMonth()+1,d6={Monday:"L",Tuesday:"M",Wednesday:"M",Thursday:"J",Friday:"V",Saturday:"S",Sunday:"D"},J2={January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},je=6,E2=6,F1=(t,i)=>`${t}`.padStart(i,"0"),s6=(t=y3,i=_3)=>{const a=[4,6,9,11],n=i%4===0;return t===2?n?29:28:a.includes(t)?30:31},ke=(t=y3,i=_3)=>+new Date(`${i}-${F1(t,2)}-01`).getDay(),I1=t=>{const i=Object.prototype.toString.call(t)==="[object Date]",a=t&&!Number.isNaN(t.valueOf());return i&&a},Se=(t,i=new Date)=>{if(!(I1(t)&&I1(i)))return!1;const a=+i.getMonth()+1,n=i.getFullYear(),r=+t.getMonth()+1,c=t.getFullYear();return+a==+r&&+n==+c},K2=(t,i=new Date)=>{if(!(I1(t)&&I1(i)))return!1;const a=i.getDate(),n=+i.getMonth()+1,r=i.getFullYear(),c=t.getDate(),o=+t.getMonth()+1,C=t.getFullYear();return+a==+c&&+n==+o&&+r==+C},Ae=(t=new Date)=>I1(t)?[t.getFullYear(),F1(+t.getMonth()+1,2),F1(+t.getDate(),2)].join("-"):null,a9=(t,i)=>{const a=t>1?t-1:12,n=t>1?i:i-1;return{month:a,year:n}},n9=(t,i)=>{const a=t<12?t+1:1,n=t<12?i:i+1;return{month:a,year:n}},Pe=(t=y3,i=_3)=>{const a=s6(t,i),n=ke(t,i),r=n===0?6:n-1,c=je*7-(r+a),{month:o,year:C}=a9(t,i),{month:s,year:h}=n9(t,i),m=s6(o,C),p=[...new Array(r)].map((E,
|
2973
|
+
`,He=({intent:t="default",variant:i="default",icon:a,size:n="medium",text:r="Notification",showButton:c=!1,buttonText:o,buttonIcon:C,buttonFontWeight:s="400",buttonOnClick:h})=>L.jsxs(Fe,{$size:n,$intent:t,$variant:i,$showButton:c,$buttonFontWeight:s,children:[L.jsx("div",{children:L.jsxs("div",{children:[a&&L.jsx("div",{className:"Zt8bX3mQ9p",children:L.jsx(N,{icon:a,size:n&&["small","medium","large"].includes(n)?k1.wrapper[n].icon:k1.wrapper.medium.icon,color:t&&["default","info","featured","success","danger"].includes(t)||i&&["default","light"].includes(i)?S1.wrapper[i??"default"][t??"default"].icon:S1.wrapper.default.default.icon})}),r&&L.jsx("div",{className:"xKf9Lm2Pq7",children:r})]})}),c&&L.jsxs("button",{onClick:h,children:[o&&L.jsx("span",{children:o}),C&&L.jsx("div",{children:L.jsx(N,{icon:C,size:n&&["small","medium","large"].includes(n)?k1.button[n].icon:k1.button.medium.icon,color:t&&["default","info","featured","success","danger"].includes(t)||i&&["default","light"].includes(i)?S1.button[i??"default"][t??"default"].icon:S1.button.default.default.icon})})]})]}),_3=+new Date().getFullYear(),y3=+new Date().getMonth()+1,d6={Monday:"L",Tuesday:"M",Wednesday:"M",Thursday:"J",Friday:"V",Saturday:"S",Sunday:"D"},J2={January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},je=6,E2=6,F1=(t,i)=>`${t}`.padStart(i,"0"),s6=(t=y3,i=_3)=>{const a=[4,6,9,11],n=i%4===0;return t===2?n?29:28:a.includes(t)?30:31},ke=(t=y3,i=_3)=>+new Date(`${i}-${F1(t,2)}-01`).getDay(),I1=t=>{const i=Object.prototype.toString.call(t)==="[object Date]",a=t&&!Number.isNaN(t.valueOf());return i&&a},Se=(t,i=new Date)=>{if(!(I1(t)&&I1(i)))return!1;const a=+i.getMonth()+1,n=i.getFullYear(),r=+t.getMonth()+1,c=t.getFullYear();return+a==+r&&+n==+c},K2=(t,i=new Date)=>{if(!(I1(t)&&I1(i)))return!1;const a=i.getDate(),n=+i.getMonth()+1,r=i.getFullYear(),c=t.getDate(),o=+t.getMonth()+1,C=t.getFullYear();return+a==+c&&+n==+o&&+r==+C},Ae=(t=new Date)=>I1(t)?[t.getFullYear(),F1(+t.getMonth()+1,2),F1(+t.getDate(),2)].join("-"):null,a9=(t,i)=>{const a=t>1?t-1:12,n=t>1?i:i-1;return{month:a,year:n}},n9=(t,i)=>{const a=t<12?t+1:1,n=t<12?i:i+1;return{month:a,year:n}},Pe=(t=y3,i=_3)=>{const a=s6(t,i),n=ke(t,i),r=n===0?6:n-1,c=je*7-(r+a),{month:o,year:C}=a9(t,i),{month:s,year:h}=n9(t,i),m=s6(o,C),p=[...new Array(r)].map((E,x)=>{const v=x+1+(m-r);return[C,F1(o,2),F1(v,2)]}),g=[...new Array(a)].map((E,x)=>{const v=x+1;return[i,F1(t,2),F1(v,2)]}),_=[...new Array(c)].map((E,x)=>{const v=x+1;return[h,F1(s,2),F1(v,2)]});return[...p,...g,..._]},De=F.div`
|
2951
2974
|
border-radius: 16px;
|
2952
2975
|
background-color: ${l.white};
|
2953
2976
|
box-shadow:
|
@@ -3060,7 +3083,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
3060
3083
|
border-radius: 9999px;
|
3061
3084
|
border: 1px solid ${l.gray_100};
|
3062
3085
|
color: ${l.gray_950};
|
3063
|
-
`,Ge=({date:t,onDateChanged:i,setCalendarOpen:a,limitStart:n,limitEnd:r})=>{const[c,o]=u.useState({current:t,month:+t.getMonth()+1,year:t.getFullYear()}),[C,s]=u.useState("date"),h=
|
3086
|
+
`,Ge=({date:t,onDateChanged:i,setCalendarOpen:a,limitStart:n,limitEnd:r})=>{const[c,o]=u.useState({current:t,month:+t.getMonth()+1,year:t.getFullYear()}),[C,s]=u.useState("date"),h=V=>{const b=I1(V)?V:new Date;o({current:V,month:+b.getMonth()+1,year:b.getFullYear()})},m=u.useMemo(()=>{const{month:V,year:A}=c,b=Object.keys(J2)[Math.max(0,Math.min(V-1,11))];return{monthname:J2[b],year:A}},[c]),p=(V,A)=>{A&&A.preventDefault();const{current:b}=c;b&&K2(V,b)||(h(V),i&&i(V))},g=(V,A)=>{A&&A.preventDefault(),o({current:c.current,month:c.month,year:+V}),s("month")},_=(V,A)=>{A&&A.preventDefault(),o({current:c.current,month:+V,year:c.year}),s("date")},E=(V,A)=>{const b=d6[V].toUpperCase();return L.jsx(Te,{$index:A,children:b},b+A)},x=()=>{const{current:V,month:A,year:b}=c,w=A||+(V==null?void 0:V.getMonth())+1,j=b||(V==null?void 0:V.getFullYear());return Pe(w,j)},v=V=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(V))return!1;const b=new Date(V),w=b.getTime();if(isNaN(w))return!1;const[j,D,W]=V.split("-");return!(b.getUTCFullYear()!==parseInt(j,10)||b.getUTCMonth()+1!==parseInt(D,10)||b.getUTCDate()!==parseInt(W,10))},$=()=>!(!n||!r||!v(n)||!v(r)),B=u.useMemo(()=>{if(!$())return[];const V=new Date(n),A=new Date(r),b=[];for(let w=new Date(V);w<=A;w.setUTCDate(w.getUTCDate()+1))b.push(new Date(w));return b},[n,r]),R=u.useCallback(V=>B&&B.length?!B.some(A=>A.getTime()===V.getTime()):!1,[B]),M=(V,A)=>{const{current:b,month:w,year:j}=c,D=new Date(V.join("-")),W=R(D),G=K2(D,new Date),T=b&&K2(D,b),l1=w&&j&&Se(D,new Date([j.toString().padStart(2,"0"),w.toString().padStart(2,"0"),"01"].join("-"))),a1=T?o9:G?Ie:c9;return L.jsx(a1,{$index:A,$inMonth:l1,$isLimited:W,onClick:Q=>{W||p(D,Q)},children:D.getDate()},Ae(D))},y=()=>{const V=E2*4,{year:A}=c;return[...new Array(V)].map((w,j)=>+A+j)},H=V=>{const{current:A,year:b}=c,w=V===b,j=A&&A.getFullYear()===V,D=w?f3:j?p6:p3;return L.jsx(D,{onClick:W=>g(V,W),children:V},V)},Z=(V,A)=>{const{current:b,year:w,month:j}=c,D=A+1===j,W=b&&b.getFullYear()===w,G=b&&b.getMonth()+1===A+1,l1=D?f3:W&&G?p6:p3;return L.jsx(l1,{onClick:a1=>_(A+1,a1),children:V.slice(0,3)},V)},S=V=>{if(V&&V.preventDefault(),C==="date")return s("year")},k=()=>{const{month:V,year:A}=c;if(C==="date"){const b=a9(V,A);o({month:b.month,year:b.year,current:c.current});return}if(C==="year"){const b=A-E2*4;o({month:c.month,year:b,current:c.current});return}if(C==="month"){o({month:c.month,current:c.current,year:c.year-1});return}},z=()=>{const{month:V,year:A}=c;if(C==="date"){const b=n9(V,A);o({month:b.month,year:b.year,current:c.current});return}if(C==="year"){const b=A+E2*4;o({month:c.month,year:b,current:c.current});return}if(C==="month"){o({month:c.month,current:c.current,year:c.year+1});return}};return L.jsxs(De,{children:[L.jsxs(ze,{children:[L.jsx(x1,{onClick:k,title:"Previous Month",icon:"go-left",intent:"info",variant:"secondaryOutlined",shape:"rounded",size:"small"}),L.jsx("div",{children:L.jsxs("button",{onClick:S,children:[C==="date"&&m.monthname+" "+m.year,C==="year"&&m.year+"-"+(m.year+E2*4-1),C==="month"&&m.year]})}),L.jsx(x1,{onClick:z,title:"Next Month",icon:"go-right",intent:"info",variant:"secondaryOutlined",shape:"rounded",size:"small"})]}),L.jsxs(Ne,{$view:C,children:[C==="date"&&L.jsxs(L.Fragment,{children:[L.jsx(L.Fragment,{children:Object.keys(d6).map(E)}),L.jsx(L.Fragment,{children:x().map(M)})]}),C==="year"&&L.jsx(L.Fragment,{children:y().map(H)}),C==="month"&&L.jsx(L.Fragment,{children:Object.values(J2).map(Z)})]}),L.jsxs(Oe,{children:[L.jsx(E1,{onClick:()=>{$()?h(new Date(n)):h(new Date),i&&($()?i(new Date(n)):i(new Date)),a&&a(!1)},width:"auto",intent:"accent",variant:"secondaryOutlined",label:"Reseteaza"}),L.jsx(E1,{onClick:()=>{a&&a(!1)},width:"auto",intent:"accent",variant:"primary",label:"Salveaza"})]})]})},Ye={medium:d`
|
3064
3087
|
height: 40px;
|
3065
3088
|
padding: 0px 38px 0px 12px;
|
3066
3089
|
`,large:d`
|
@@ -3125,7 +3148,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
3125
3148
|
background-color: ${l.gray_30};
|
3126
3149
|
`}
|
3127
3150
|
}
|
3128
|
-
`,Xe=({id:t,name:i,placeholder:a,type:n="date",value:r,setValue:c,size:o="medium",intent:C="default",disabled:s,limitStart:h="",limitEnd:m="",defaultOpen:p=!1,...g})=>{const[_,E]=u.useState(p),[
|
3151
|
+
`,Xe=({id:t,name:i,placeholder:a,type:n="date",value:r,setValue:c,size:o="medium",intent:C="default",disabled:s,limitStart:h="",limitEnd:m="",defaultOpen:p=!1,...g})=>{const[_,E]=u.useState(p),[x,v]=u.useState("bottom"),$=u.useRef(null),B=M=>{c(M)};u.useEffect(()=>{console.log({defaultOpen:p}),E(p)},[p]),u.useEffect(()=>{const M=y=>{$.current&&!$.current.contains(y.target)&&E(!1)};if(_)return document.addEventListener("mousedown",M),()=>{document.removeEventListener("mousedown",M)}},[_,$]);const R=u.useMemo(()=>{if(!r)return"";if(n==="date")return r==null?void 0:r.toString();if(n==="type1")return new Intl.DateTimeFormat("ro-RO",{year:"numeric",month:"long",day:"numeric"}).format(r);if(n==="type2")return new Intl.DateTimeFormat("ro-RO",{year:"numeric",month:"2-digit",day:"2-digit"}).format(r).replace(/\./g,"/")},[r,n]);return u.useEffect(()=>{const M=()=>{if($.current){const{y}=$.current.getBoundingClientRect();y<465?v("bottom"):v("top")}};return window.addEventListener("scroll",M),()=>{window.removeEventListener("scroll",M)}},[]),L.jsxs(Ue,{ref:$,$size:o,$intent:C,$disabled:s,$calendarOpen:_,...g,children:[L.jsx("input",{id:t,name:i,type:"text",readOnly:!0,onChange:M=>M.preventDefault(),onClick:()=>!s&&E(!0),value:R,disabled:s,placeholder:a}),L.jsx("div",{children:L.jsx(N,{icon:"calendar",size:20,color:s?l.info_500_40:l.info_700})}),_&&L.jsx(qe,{$position:x,children:L.jsx(Ge,{limitStart:h,limitEnd:m,date:I1(r)?r:new Date,onDateChanged:B,setCalendarOpen:E})})]})},f6={small:d`
|
3129
3152
|
height: 32px;
|
3130
3153
|
padding: 0px 30px 0px 12px;
|
3131
3154
|
`,medium:d`
|
@@ -3284,7 +3307,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
3284
3307
|
}
|
3285
3308
|
}
|
3286
3309
|
}
|
3287
|
-
`,C9=({id:t,name:i,placeholder:a="Selecteaza",value:n,setValue:r,size:c="medium",intent:o="default",disabled:C,maxHeight:s="336px",searchInput:h,defaultOpen:m=!1,data:p=[{label:"",value:""}],dropdownContentWidth:g="100%",..._})=>{const[E,
|
3310
|
+
`,C9=({id:t,name:i,placeholder:a="Selecteaza",value:n,setValue:r,size:c="medium",intent:o="default",disabled:C,maxHeight:s="336px",searchInput:h,defaultOpen:m=!1,data:p=[{label:"",value:""}],dropdownContentWidth:g="100%",..._})=>{const[E,x]=u.useState(m),v=u.useRef(null),[$,B]=u.useState(p),[R,M]=u.useState(""),y=u.useCallback(S=>{const k=S.target.value;M(k);const z=p.filter(V=>V.label.toLowerCase().includes(k.toLowerCase()));B(z)},[p]),H=u.useCallback(S=>{r(S.value),x(!1),M(""),B(p)},[p,r]),Z=u.useMemo(()=>{var S;return p&&n&&((S=p.find(k=>k.value===n))==null?void 0:S.label)||""},[n,p]);return u.useEffect(()=>{const S=k=>{v.current&&!v.current.contains(k.target)&&(x(!1),M(""),B(p))};if(E)return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[v,E,p]),u.useEffect(()=>{x(m)},[m]),L.jsxs(Je,{ref:v,$size:c,$intent:o,$disabled:C,$isOpen:E,..._,children:[L.jsx("input",{readOnly:!0,placeholder:a,id:t,type:"text",name:i,value:Z,onClick:()=>!C&&x(!E),onChange:S=>S.preventDefault()}),L.jsx("div",{children:L.jsx(N,{icon:"select-open-down",size:20,color:C?l.info_500_40:l.info_700})}),E&&L.jsxs(Ke,{$maxHeight:s,$searchInput:h,$dropdownContentWidth:g,children:[h&&L.jsx("div",{children:L.jsxs("div",{children:[L.jsx("div",{children:L.jsx(N,{icon:"search",size:20,color:l.gray_500})}),L.jsx("input",{onChange:y,value:R,type:"text"})]})}),L.jsx("div",{children:L.jsx("div",{children:$.map((S,k)=>L.jsx("div",{onClick:()=>H(S),children:L.jsx("span",{children:S.label})},k))})})]})]})},Qe=F.div`
|
3288
3311
|
border-radius: 8px;
|
3289
3312
|
border-width: 1px;
|
3290
3313
|
border-style: solid;
|
@@ -3455,7 +3478,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
3455
3478
|
}
|
3456
3479
|
}
|
3457
3480
|
`}
|
3458
|
-
`,d9=({title:t="Fix ce ai cerut!",venit:i="",contributie:a="",perioada_acumulare:n="",perioada_incasare:r="",selected:c=!1,refused:o=!1,disabled:C=!1,hideButton:s=!1,hideHeaderButton:h=!1,empty:m=!1,emptyText:p="Indisponibil",iconButtonOnClick:g,buttonOnClick:_,children:E,...
|
3481
|
+
`,d9=({title:t="Fix ce ai cerut!",venit:i="",contributie:a="",perioada_acumulare:n="",perioada_incasare:r="",selected:c=!1,refused:o=!1,disabled:C=!1,hideButton:s=!1,hideHeaderButton:h=!1,empty:m=!1,emptyText:p="Indisponibil",iconButtonOnClick:g,buttonOnClick:_,children:E,...x})=>{let v=null;return u.Children.toArray(E).filter(Boolean).forEach($=>{$.type===s9&&(v=$)}),L.jsx(Qe,{$empty:m,$selected:c,$refused:o,$disabled:C,$hideButton:s,...x,children:m?L.jsxs("div",{children:[L.jsx(N,{size:20,icon:"rejected",color:l.gray_500}),L.jsx("span",{children:p})]}):L.jsxs(L.Fragment,{children:[L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsx("span",{children:t}),!h&&L.jsx(x1,{onClick:g,icon:"new_tab",intent:"accent",variant:"tertiary",shape:"rounded",color:l.info_800,size:"medium"})]}),L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsx("span",{children:"Venit la pensie"}),L.jsx("span",{children:i||"-"})]}),L.jsxs("div",{children:[L.jsx("span",{children:"Contributie lunara"}),L.jsx("span",{children:a||"-"})]})]}),L.jsxs("div",{children:[L.jsx("div",{children:L.jsxs("div",{children:[L.jsx(N,{icon:"calendar",size:16,color:o?l.gray_200:l.gray_500}),L.jsxs("div",{children:[L.jsx("span",{children:"Acumulare"}),L.jsx("span",{children:n||"-"})]})]})}),L.jsx("div",{children:L.jsxs("div",{children:[L.jsx(N,{icon:"calendar",size:16,color:o?l.gray_200:l.gray_500}),L.jsxs("div",{children:[L.jsx("span",{children:"Incasare"}),L.jsx("span",{children:r||"-"})]})]})})]})]}),L.jsx("div",{children:v}),!s&&L.jsxs("button",{disabled:C,type:"button",onClick:C?()=>{}:_,children:[L.jsx(N,{icon:c?"checkmark_filled":"checkmark-part",size:16,color:c?C?l.gray_600:l.white:l.purple_600,style:{opacity:C&&!c?"0.25":"1"}}),L.jsx("span",{children:c?"Oferta selectata":"Vreau aceasta oferta!"})]})]})})},s9=({children:t})=>t;d9.ContentSlot=s9;const et=F.svg`
|
3459
3482
|
& > .label_top,
|
3460
3483
|
& > .sublabel_top {
|
3461
3484
|
font-size: 16px;
|
@@ -3492,7 +3515,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
3492
3515
|
& > rect:nth-child(3) {
|
3493
3516
|
clip-path: inset(0 0 0 0 round 0px 4px 4px 0px);
|
3494
3517
|
}
|
3495
|
-
`,tt=({max:t=100,limit_max:i=70,limit_min:a=50,value:n=0,currency:r="RON",label_top:c="Pensia standard + Pensia Facultativa",label_limit_min:o="Pensie standard",label_limit_max:C="Obiectiv pensie"})=>{const s=new Intl.NumberFormat("RO"),h=u.useRef(null),m=u.useRef(null),p=u.useRef(null),g=u.useRef(null),_=u.useRef(null),E=u.useRef(null),
|
3518
|
+
`,tt=({max:t=100,limit_max:i=70,limit_min:a=50,value:n=0,currency:r="RON",label_top:c="Pensia standard + Pensia Facultativa",label_limit_min:o="Pensie standard",label_limit_max:C="Obiectiv pensie"})=>{const s=new Intl.NumberFormat("RO"),h=u.useRef(null),m=u.useRef(null),p=u.useRef(null),g=u.useRef(null),_=u.useRef(null),E=u.useRef(null),x=u.useRef(null),[v,$]=u.useState(0),[B,R]=u.useState(0),M=10,y=u.useMemo(()=>{const K=B/2-20,q=v-M*2,L1=Math.min(q,Math.max(q*a/t,0)),c1=20,r1=K+M,f1=a*q/t+10,V1=Math.min(q+10,Math.max(f1,10)),s1=i*q/t+10,m1=Math.min(q+10,Math.max(s1,10));return{primary_bar_h:40,primary_bar_y:K,secondary_bar_w:L1,secondary_bar_h:c1,secondary_bar_y:r1,line_min_x:V1,line_max_x:m1}},[B,v,a,i,t]),H=u.useMemo(()=>{const X=M*2,q=n*(v-X)/t-y.secondary_bar_w,L1=v-X-y.secondary_bar_w,c1=n>i?l.success_400:l.danger_200,r1=n>i?l.success_600:l.danger_400;return{value:Math.min(L1,Math.max(0,q)),fill:c1,fill_value:r1}},[v,y.secondary_bar_w,n,i,t]),Z=u.useCallback((X,K,q)=>{const{width:L1}=X.current.getBBox(),c1=q==="middle"?v-L1+L1/2:q==="end"?v-L1:v-L1+L1,r1=q==="middle"?L1/2:q==="end"?10:L1+10;return Math.min(c1,Math.max(r1,K))},[v]),S=u.useCallback(X=>{const K=y.line_min_x+X,q=y.line_min_x+X;return m&&m.current||p&&p.current?{label_top_x:Z(m,K,"middle"),sublabel_top_x:Z(p,q,"middle")}:{label_top_x:K,sublabel_top_x:q}},[y.line_min_x,Z]),k=u.useCallback(()=>{const X=y.line_min_x,K=y.line_min_x;return g&&g.current||_&&_.current?{label_limit_min_x:Z(g,X,"start"),sublabel_limit_min_x:Z(_,K,"start")}:{label_limit_min_x:X,sublabel_limit_min_x:K}},[y.line_min_x,Z]),z=u.useCallback(()=>{const X=y.line_max_x,K=y.line_max_x;return E&&E.current||x&&x.current?{label_limit_max_x:Z(E,X,"end"),sublabel_limit_max_x:Z(x,K,"end")}:{label_limit_max_x:X,sublabel_limit_max_x:K}},[y.line_max_x,Z]);u.useEffect(()=>{if(h&&h.current){const K=()=>{var c1,r1;const q=(c1=h==null?void 0:h.current)==null?void 0:c1.clientWidth,L1=(r1=h==null?void 0:h.current)==null?void 0:r1.clientHeight;$(q/L1*150),R(150)};return K(),window.addEventListener("resize",K),()=>window.removeEventListener("resize",K)}},[h]);const[V,A]=u.useState(0),[b,w]=u.useState(0),[j,D]=u.useState(0),[W,G]=u.useState(0),[T,l1]=u.useState(0),[a1,Q]=u.useState(0);return u.useEffect(()=>{const X=H.value;A(S(X).label_top_x),w(S(X).sublabel_top_x)},[H.value,S]),u.useEffect(()=>{D(k().label_limit_min_x),G(k().sublabel_limit_min_x),l1(z().label_limit_max_x),Q(z().sublabel_limit_max_x)},[k,z]),L.jsxs(et,{ref:h,width:"100%",height:"100%",viewBox:`0 0 ${v} ${B}`,xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("rect",{x:0,y:y.primary_bar_y,height:y.primary_bar_h,width:v,rx:8}),L.jsx("rect",{x:M,y:y.secondary_bar_y,height:y.secondary_bar_h,width:y.secondary_bar_w,fill:H.fill}),L.jsx("rect",{x:y.line_min_x,y:y.secondary_bar_y,height:y.secondary_bar_h,width:H.value,fill:H.fill_value}),L.jsx("text",{ref:m,className:"label_top",textAnchor:"middle",x:V,y:15,children:c}),L.jsx("text",{ref:p,className:"sublabel_top",textAnchor:"middle",x:b,y:32,children:s.format(n)+" "+r}),L.jsx("line",{x1:y.line_min_x,x2:y.line_min_x,y1:y.primary_bar_y-M,y2:y.primary_bar_y+y.primary_bar_h+M,strokeWidth:2,stroke:"#232529"}),L.jsx("text",{ref:g,className:"label_bottom",textAnchor:"end",x:j,y:y.primary_bar_y+y.primary_bar_h+M+20,children:o}),L.jsx("text",{ref:_,className:"sublabel_bottom",textAnchor:"end",x:W,y:y.primary_bar_y+y.primary_bar_h+M+40,children:s.format(a)+" "+r}),L.jsx("line",{x1:y.line_max_x,x2:y.line_max_x,y1:y.primary_bar_y-M,y2:y.primary_bar_y+y.primary_bar_h+M,strokeWidth:2,stroke:"#232529"}),L.jsx("text",{ref:E,className:"label_bottom",textAnchor:"start",x:T,y:y.primary_bar_y+y.primary_bar_h+M+20,children:C}),L.jsx("text",{ref:x,className:"sublabel_bottom",textAnchor:"start",x:a1,y:y.primary_bar_y+y.primary_bar_h+M+40,children:s.format(i)+" "+r})]})},lt={small:d`
|
3496
3519
|
width: 16px;
|
3497
3520
|
height: 16px;
|
3498
3521
|
`,medium:d`
|
@@ -3992,7 +4015,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
3992
4015
|
font-size: 14px;
|
3993
4016
|
font-weight: 400;
|
3994
4017
|
}
|
3995
|
-
`,Et=({height:t=280,paddingLeft:i=240,paddingRight:a=40,paddingTop:n=24,paddingBottom:r=60,gap:c=16,max:o=3e4,line:C=2e4,min:s=1e4,textLeft:h="Text left",textValueLeft:m=2e4,col1Value:p=3e4,col2Value:g=25e3,col3Value:_=15e3,col4Value:E=1e4,col1Color:
|
4018
|
+
`,Et=({height:t=280,paddingLeft:i=240,paddingRight:a=40,paddingTop:n=24,paddingBottom:r=60,gap:c=16,max:o=3e4,line:C=2e4,min:s=1e4,textLeft:h="Text left",textValueLeft:m=2e4,col1Value:p=3e4,col2Value:g=25e3,col3Value:_=15e3,col4Value:E=1e4,col1Color:x="success_500",col2Color:v="info_500",col3Color:$="warning_500",col4Color:B="danger_500",currency:R="RON",dev:M=!1})=>{const y=new Intl.NumberFormat("RO"),H=u.useRef(null),[Z,S]=u.useState(0),[k,z]=u.useState(0),V=u.useMemo(()=>{const A=Math.abs(Z-i-a),b=Math.abs(k-n-r),w=Math.abs(b/(o-s)*(o-C)+n),j=(A-3*c)/4,D=a1=>{const Q=Math.abs(b/(o-s)*(a1-C)),X=Math.abs(b/(o-s)*(C-a1)),K=a1>C?Q:X;return{h:K,y:a1>C?w-K:w}},W={x:i,y:D(p).y,w:j,h:D(p).h,text_y:p>=C?+D(p).y-12:+D(p).y+12+10},G={x:i+j+c,y:D(g).y,w:j,h:D(g).h,text_y:g>=C?+D(g).y-12:+D(g).y+12+10},T={x:i+j*2+c*2,y:D(_).y,w:j,h:D(_).h,text_y:_>=C?+D(_).y-12:+D(_).y+D(_).h+12+10},l1={x:i+j*3+c*3,y:D(E).y,w:j,h:D(E).h,text_y:E>=C?+D(E).y-12:+D(E).y+D(E).h+12+10};return{graphW:A,graphH:b,lineY:w,col_1:W,col_2:G,col_3:T,col_4:l1,paddingLeft:i}},[Z,k,s,o,C,c,i,a,n,r,p,g,_,E]);return u.useEffect(()=>{if(H&&H.current){const A=()=>{var w;const b=(w=H==null?void 0:H.current)==null?void 0:w.clientWidth;S(+b),z(t)};return A(),window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)}},[H,t]),L.jsxs(gt,{ref:H,width:"100%",height:"100%",viewBox:`0 0 ${Z} ${k}`,xmlns:"http://www.w3.org/2000/svg",$col1Color:x,$col2Color:v,$col3Color:$,$col4Color:B,$dev:M,children:[M&&L.jsx("rect",{className:"dev-graph",width:V.graphW,height:V.graphH,x:V.paddingLeft,y:n}),L.jsx("text",{className:"col_1_text",textAnchor:"middle",x:V.col_1.x+V.col_1.w/2,y:V.col_1.text_y,children:y.format(p)+` ${R}`}),L.jsx("rect",{className:"col_1_rect",width:V.col_1.w,height:V.col_1.h,x:V.col_1.x,y:V.col_1.y}),L.jsx("line",{x1:V.col_1.x,x2:V.col_1.x+V.col_1.w,y1:k-27,y2:k-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"sub_favorabil",textAnchor:"middle",x:V.col_1.x+V.col_1.w/2,y:k-5,children:"Favorabil"}),L.jsx("text",{className:"col_2_text",textAnchor:"middle",x:V.col_2.x+V.col_2.w/2,y:V.col_2.text_y,children:y.format(g)+` ${R}`}),L.jsx("rect",{className:"col_2_rect",width:V.col_2.w,height:V.col_2.h,x:V.col_2.x,y:V.col_2.y}),L.jsx("line",{x1:V.col_2.x,x2:V.col_2.x+V.col_2.w,y1:k-27,y2:k-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"sub_moderat",textAnchor:"middle",x:V.col_2.x+V.col_2.w/2,y:k-5,children:"Moderat"}),L.jsx("text",{className:"col_3_text",textAnchor:"middle",x:V.col_3.x+V.col_3.w/2,y:V.col_3.text_y,children:y.format(_)+` ${R}`}),L.jsx("rect",{className:"col_3_rect",width:V.col_3.w,height:V.col_3.h,x:V.col_3.x,y:V.col_3.y}),L.jsx("line",{x1:V.col_3.x,x2:V.col_3.x+V.col_3.w,y1:k-27,y2:k-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"sub_nefavorabil",textAnchor:"middle",x:V.col_3.x+V.col_3.w/2,y:k-5,children:"Nefavorabil"}),L.jsx("text",{className:"col_4_text",textAnchor:"middle",x:V.col_4.x+V.col_4.w/2,y:V.col_4.text_y,children:y.format(E)+` ${R}`}),L.jsx("rect",{className:"col_4_rect",width:V.col_4.w,height:V.col_4.h,x:V.col_4.x,y:V.col_4.y}),L.jsx("line",{x1:V.col_4.x,x2:V.col_4.x+V.col_4.w,y1:k-27,y2:k-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"sub_criza",style:{fontSize:"14px"},textAnchor:"middle",x:V.col_4.x+V.col_4.w/2,y:k-5,children:"Criza"}),L.jsx("text",{className:"textLeft",textAnchor:"start",x:0,y:V.lineY-26,children:h}),L.jsx("text",{className:"textValueLeft",textAnchor:"start",x:0,y:V.lineY-6,children:y.format(m)+` ${R}`}),L.jsx("line",{x1:0,x2:Z,y1:V.lineY,y2:V.lineY,strokeWidth:2,stroke:l.gray_950})]})},xt=[3,7],Vt=["info_400","purple_600"],vt=["gray_100","blue_100"],Mt=[16,18],_t=[5,7],yt=[1,2],wt=F.div`
|
3996
4019
|
display: flex;
|
3997
4020
|
align-items: center;
|
3998
4021
|
gap: ${({$stepGap:t})=>t&&yt.includes(t)?t+"px":"1px"};
|
@@ -4043,7 +4066,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
4043
4066
|
font-weight: 700;
|
4044
4067
|
fill: ${l.gray_950};
|
4045
4068
|
}
|
4046
|
-
`,bt=({limitTop:t=100,limitBottom:i=70,limitTopLabel:a="Top label",limitBottomLabel:n="Bottom label",currency:r="RON",height:c=284})=>{const o=new Intl.NumberFormat("RO"),C=u.useRef(null),s=u.useRef(null),h=u.useRef(null),m=u.useRef(null),p=u.useRef(null),[g,_]=u.useState(0),[E,
|
4069
|
+
`,bt=({limitTop:t=100,limitBottom:i=70,limitTopLabel:a="Top label",limitBottomLabel:n="Bottom label",currency:r="RON",height:c=284})=>{const o=new Intl.NumberFormat("RO"),C=u.useRef(null),s=u.useRef(null),h=u.useRef(null),m=u.useRef(null),p=u.useRef(null),[g,_]=u.useState(0),[E,x]=u.useState(0),v=u.useMemo(()=>{const y=E/2-12;let H,Z,S,k,z,V,A;if(i>t){Z=g-1;const b=t*g/i;H=Math.min(g,Math.max(b,1)),S=Math.min(g,Math.max(g*t/i,0)),z=H,V=g-S,A=l.danger_500}else{H=g-1;const b=i*g/t;Z=Math.min(g,Math.max(b,1)),S=Math.min(g,Math.max(g*i/t,0)),z=Z,V=g-S,A=l.success_500}return k=l.success_400,{bar_h:24,bar_y:y,secondary_bar_w:S,limit_top_x:H,limit_bottom_x:Z,dynamic_bar_x:z,dynamic_bar_w:V,dynamic_fill_color:A,secondary_fill_color:k}},[g,E,i,t]),$=u.useCallback((M,y)=>y<M?{textAnchor:"start",x:y+20}:{textAnchor:"end",x:Math.max(M,y)},[g]),B=u.useMemo(()=>{var H,Z;const M={x:v.limit_top_x-10,textAnchor:"end"},y={x:v.limit_top_x-10,textAnchor:"end"};if(s&&s.current||h&&h.current){const S=((H=s.current)==null?void 0:H.getBBox().width)??0,k=((Z=h.current)==null?void 0:Z.getBBox().width)??0,z=Math.max(S,k);return{limitMinLabel:{x:$(z,M.x).x,textAnchor:$(z,M.x).textAnchor},limitMinSublabel:{x:$(z,y.x).x,textAnchor:$(z,y.x).textAnchor}}}return{limitMinLabel:M,limitMinSublabel:y}},[v.limit_top_x]),R=u.useMemo(()=>{var H,Z;const M={x:v.limit_bottom_x-10,textAnchor:"end"},y={x:v.limit_bottom_x-10,textAnchor:"end"};if(m&&m.current||p&&p.current){const S=((H=m.current)==null?void 0:H.getBBox().width)??0,k=((Z=p.current)==null?void 0:Z.getBBox().width)??0,z=Math.max(S,k);return{limitMaxLabel:{x:$(z,M.x).x,textAnchor:$(z,M.x).textAnchor},limitMaxSublabel:{x:$(z,y.x).x,textAnchor:$(z,y.x).textAnchor}}}return{limitMaxLabel:M,limitMaxSublabel:y}},[v.limit_bottom_x]);return u.useEffect(()=>{if(C&&C.current){const M=()=>{var H;const y=(H=C==null?void 0:C.current)==null?void 0:H.clientWidth;_(+y),x(c)};return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)}},[C,c]),L.jsxs(Zt,{ref:C,width:"100%",height:"100%",viewBox:`0 0 ${g} ${E}`,xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("rect",{x:0,y:v.bar_y,height:v.bar_h,width:g}),L.jsx("rect",{x:0,y:v.bar_y,height:v.bar_h,width:v.secondary_bar_w,fill:v.secondary_fill_color}),L.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}),L.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"}),L.jsx("text",{ref:s,className:"limitMinLabel",textAnchor:B.limitMinLabel.textAnchor,x:B.limitMinLabel.x,y:12,children:a}),L.jsx("text",{ref:h,className:"limitMinSublabel",textAnchor:B.limitMinSublabel.textAnchor,x:B.limitMinSublabel.x,y:32,children:o.format(t)+" "+r}),L.jsx("line",{x1:v.limit_bottom_x,x2:v.limit_bottom_x,y1:v.bar_y,y2:E,strokeWidth:2,stroke:"#232529"}),L.jsx("text",{ref:m,className:"limitMaxLabel",textAnchor:R.limitMaxLabel.textAnchor,x:R.limitMaxLabel.x,y:E-20,children:n}),L.jsx("text",{ref:p,className:"limitMaxSublabel",textAnchor:R.limitMaxSublabel.textAnchor,x:R.limitMaxSublabel.x,y:E,children:o.format(i)+" "+r})]})},$t=F.svg`
|
4047
4070
|
& > .limitMinLabel {
|
4048
4071
|
font-size: 14px;
|
4049
4072
|
font-weight: 700;
|
@@ -4052,7 +4075,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
4052
4075
|
& > rect:nth-child(1) {
|
4053
4076
|
fill: ${({$selected:t})=>t?l.info_200:l.gray_60};
|
4054
4077
|
}
|
4055
|
-
`,Rt=({max:t=100,limit_max:i=70,limit_min:a=40,value:n=80,value_text:r=4200,decimals:c=2,currency:o="RON",height:C=80,selected:s=!1})=>{const h=new Intl.NumberFormat("RO",{minimumFractionDigits:c,maximumFractionDigits:c}),m=u.useRef(null),[p,g]=u.useState(0),[_,E]=u.useState(0),
|
4078
|
+
`,Rt=({max:t=100,limit_max:i=70,limit_min:a=40,value:n=80,value_text:r=4200,decimals:c=2,currency:o="RON",height:C=80,selected:s=!1})=>{const h=new Intl.NumberFormat("RO",{minimumFractionDigits:c,maximumFractionDigits:c}),m=u.useRef(null),[p,g]=u.useState(0),[_,E]=u.useState(0),x=u.useMemo(()=>{const B=_/2-12,R=Math.min(p,Math.max(p*a/t,0)),M=a*p/t-1,y=Math.min(p,Math.max(M,.5)),H=i*p/t-1,Z=Math.min(p,Math.max(H,1));return{bar_h:24,bar_y:B,secondary_bar_w:R,line_min_x:y,line_max_x:Z}},[p,_,i,a,t]),v=u.useMemo(()=>{const B=n*p/t-x.secondary_bar_w,R=p-x.secondary_bar_w,M=n>=i?l.success_200:l.danger_200,y=n>=i?l.success_500:l.danger_500,H=n>=i?l.success_800:l.danger_800;return{value:Math.min(R,Math.max(0,B)),fill_rect_primary:M,fill_rect_secondary:y,fill_value_text:H}},[n,p]);return u.useEffect(()=>{if(m&&m.current){const $=()=>{var R;const B=(R=m==null?void 0:m.current)==null?void 0:R.clientWidth;g(+B),E(C)};return $(),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)}},[m,C]),L.jsxs($t,{ref:m,width:"100%",height:"100%",viewBox:`0 0 ${p} ${_}`,xmlns:"http://www.w3.org/2000/svg",$selected:s,children:[L.jsx("rect",{x:0,y:x.bar_y,height:x.bar_h,width:p}),L.jsx("rect",{x:0,y:x.bar_y,height:x.bar_h,width:x.secondary_bar_w,fill:v.fill_rect_primary}),L.jsx("text",{className:"limitMinLabel",textAnchor:"start",x:10,y:x.bar_y+x.bar_h/1.5,fill:v.fill_value_text,children:h.format(r)+" "+o}),L.jsx("rect",{x:x.line_min_x,y:x.bar_y,height:x.bar_h,width:v.value,fill:v.fill_rect_secondary}),L.jsx("line",{x1:x.line_min_x,x2:x.line_min_x,y1:0,y2:_,strokeWidth:2,stroke:"#232529"}),L.jsx("line",{x1:x.line_max_x,x2:x.line_max_x,y1:0,y2:_,strokeWidth:2,stroke:"#232529"})]})},Bt=F.svg`
|
4056
4079
|
${({$dev:t})=>t&&d`
|
4057
4080
|
background-color: #ffccef;
|
4058
4081
|
|
@@ -4103,7 +4126,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
4103
4126
|
font-size: 14px;
|
4104
4127
|
font-weight: 400;
|
4105
4128
|
}
|
4106
|
-
`,Ft=({height:t=280,paddingLeft:i=240,paddingRight:a=40,paddingTop:n=24,paddingBottom:r=60,gap:c=16,max:o=40500,line:C=3e4,min:s=5e3,textTop:h="Suma ta",textValueTop:m=3e4,textBottomPrimary:p=500,textBottomSecondary:g=24,col1Value:_=40015,col2Value:E=32721,col3Value:
|
4129
|
+
`,Ft=({height:t=280,paddingLeft:i=240,paddingRight:a=40,paddingTop:n=24,paddingBottom:r=60,gap:c=16,max:o=40500,line:C=3e4,min:s=5e3,textTop:h="Suma ta",textValueTop:m=3e4,textBottomPrimary:p=500,textBottomSecondary:g=24,col1Value:_=40015,col2Value:E=32721,col3Value:x=25806,col4Value:v=24806,col1Color:$="success_500",col2Color:B="info_500",col3Color:R="warning_500",col4Color:M="danger_500",currency:y="RON",dev:H=!1})=>{const Z=new Intl.NumberFormat("RO"),S=u.useRef(null),[k,z]=u.useState(0),[V,A]=u.useState(0),b=u.useRef(null),w=u.useMemo(()=>{const j=Math.abs(k-i-a),D=Math.abs(V-n-r),W=Math.abs(D/(o-s)*(o-C)+n),G=(j-3*c)/4,T=K=>{const q=Math.abs(D/o*K),L1=Math.abs(D+n-q);return{h:q,y:L1}},l1={x:i,y:T(_).y,w:G,h:T(_).h,text_y:+T(_).y-12},a1={x:i+G+c,y:T(E).y,w:G,h:T(E).h,text_y:+T(E).y-12},Q={x:i+G*2+c*2,y:T(x).y,w:G,h:T(x).h,text_y:+T(x).y-12},X={x:i+G*3+c*3,y:T(v).y,w:G,h:T(v).h,text_y:+T(v).y-12};return{graphW:j,graphH:D,lineY:W,col_1:l1,col_2:a1,col_3:Q,col_4:X,paddingLeft:i}},[k,V,s,o,C,c,i,a,n,r,_,E,x,v,b]);return u.useEffect(()=>{if(S&&S.current){const j=()=>{var W;const D=(W=S==null?void 0:S.current)==null?void 0:W.clientWidth;z(+D),A(t)};return j(),window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)}},[S,t]),L.jsxs(Bt,{ref:S,width:"100%",height:"100%",viewBox:`0 0 ${k} ${V}`,xmlns:"http://www.w3.org/2000/svg",$col1Color:$,$col2Color:B,$col3Color:R,$col4Color:M,$dev:H,children:[H&&L.jsx("rect",{className:"dev-graph",width:w.graphW,height:w.graphH,x:w.paddingLeft,y:n}),L.jsx("text",{className:"col_1_text",textAnchor:"middle",x:w.col_1.x+w.col_1.w/2,y:16,children:Z.format(_)+` ${y}`}),L.jsx("rect",{className:"col_1_rect",width:w.col_1.w,height:w.col_1.h,x:w.col_1.x,y:w.col_1.y}),L.jsx("line",{x1:w.col_1.x,x2:w.col_1.x+w.col_1.w,y1:V-27,y2:V-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"sub_favorabil",textAnchor:"middle",x:w.col_1.x+w.col_1.w/2,y:V-5,children:"Favorabil"}),L.jsx("text",{className:"col_2_text",textAnchor:"middle",x:w.col_2.x+w.col_2.w/2,y:16,children:Z.format(E)+` ${y}`}),L.jsx("rect",{className:"col_2_rect",width:w.col_2.w,height:w.col_2.h,x:w.col_2.x,y:w.col_2.y}),L.jsx("line",{x1:w.col_2.x,x2:w.col_2.x+w.col_2.w,y1:V-27,y2:V-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"sub_moderat",textAnchor:"middle",x:w.col_2.x+w.col_2.w/2,y:V-5,children:"Moderat"}),L.jsx("text",{className:"col_3_text",textAnchor:"middle",x:w.col_3.x+w.col_3.w/2,y:16,children:Z.format(x)+` ${y}`}),L.jsx("rect",{className:"col_3_rect",width:w.col_3.w,height:w.col_3.h,x:w.col_3.x,y:w.col_3.y}),L.jsx("line",{x1:w.col_3.x,x2:w.col_3.x+w.col_3.w,y1:V-27,y2:V-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"sub_nefavorabil",textAnchor:"middle",x:w.col_3.x+w.col_3.w/2,y:V-5,children:"Nefavorabil"}),L.jsx("text",{className:"col_4_text",textAnchor:"middle",x:w.col_4.x+w.col_4.w/2,y:16,children:Z.format(v)+` ${y}`}),L.jsx("rect",{className:"col_4_rect",width:w.col_4.w,height:w.col_4.h,x:w.col_4.x,y:w.col_4.y}),L.jsx("line",{x1:w.col_4.x,x2:w.col_4.x+w.col_4.w,y1:V-27,y2:V-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"sub_criza",style:{fontSize:"14px"},textAnchor:"middle",x:w.col_4.x+w.col_4.w/2,y:V-5,children:"Criza"}),L.jsx("text",{className:"text",textAnchor:"start",x:0,y:w.lineY-26,children:h}),L.jsx("text",{className:"text",textAnchor:"start",x:0,y:w.lineY-6,children:Z.format(m)+` ${y}`}),L.jsx("text",{className:"text",textAnchor:"start",x:0,y:w.lineY+18,children:Z.format(p)+` ${y} x`}),L.jsx("text",{className:"text",textAnchor:"start",x:0,y:w.lineY+36,children:g+" luni"}),L.jsx("line",{x1:0,x2:k,y1:w.lineY,y2:w.lineY,strokeWidth:2,stroke:l.gray_950})]})},Ht=F.div`
|
4107
4130
|
position: relative;
|
4108
4131
|
width: 100%;
|
4109
4132
|
${({$isOpen:t,$height:i})=>t&&d`
|
@@ -4206,7 +4229,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
4206
4229
|
cursor: default;
|
4207
4230
|
}
|
4208
4231
|
}
|
4209
|
-
`,jt=({height:t="60px",data:i=[],value:a,setValue:n,disabled:r=!1,placeholder:c,dropdownOpened:o,defaultOpen:C=!1,showHelperScroll:s=!1,...h})=>{var E;const m=u.useRef(null),[p,g]=u.useState(C),_=u.useCallback(
|
4232
|
+
`,jt=({height:t="60px",data:i=[],value:a,setValue:n,disabled:r=!1,placeholder:c,dropdownOpened:o,defaultOpen:C=!1,showHelperScroll:s=!1,...h})=>{var E;const m=u.useRef(null),[p,g]=u.useState(C),_=u.useCallback(x=>{if(r)return;const{id:v}=x;n(v),g(!1)},[n,r]);return u.useEffect(()=>{const x=v=>{m.current&&!m.current.contains(v.target)&&g(!1)};if(o&&o(p),p)return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[m,p,o]),u.useEffect(()=>{!a&&!c&&n(i[0].id)},[a,c]),u.useEffect(()=>{g(C)},[C]),L.jsx(Ht,{ref:m,$height:t,$disabled:r,$isOpen:p,$placeholder:c,$value:a,...h,children:L.jsxs("button",{disabled:r,onClick:()=>g(!p),children:[L.jsxs("div",{children:[s&&p&&L.jsx("div",{className:"x8Kp9Lm2",children:L.jsx(N,{icon:"menu-up",size:20,color:l.info_700})}),L.jsx("div",{className:"Kj9pL4mN",children:p?i&&i.length?i.map((x,v)=>L.jsx("div",{onClick:()=>r?null:_(x),children:x.content},v)):L.jsx(L.Fragment,{}):!a&&c?c:(E=i.find(x=>x.id===a))==null?void 0:E.content}),s&&p&&L.jsx("div",{className:"x8Kp9Lm2",children:L.jsx(N,{icon:"menu-down",size:20,color:l.info_700})})]}),L.jsx("div",{children:L.jsx("div",{children:L.jsx(N,{icon:p?"select-hide":"select-open-down",size:20,color:l.info_700})})})]})})},kt=F.svg`
|
4210
4233
|
${({$dev:t})=>t&&d`
|
4211
4234
|
background-color: #ffccef;
|
4212
4235
|
|
@@ -4253,7 +4276,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
4253
4276
|
font-weight: 400;
|
4254
4277
|
fill: ${l.gray_800};
|
4255
4278
|
}
|
4256
|
-
`,St=({height:t=280,paddingLeft:i=240,paddingRight:a=0,paddingTop:n=24,paddingBottom:r=60,gap:c=16,max:o=3e4,line:C=2e4,min:s=1e4,textLeft:h="Text left",textValueLeft:m=2e4,col1Text:p="3 ani",col2Text:g="5 ani",col3Text:_="10 ani",col1Value:E=15e3,col2Value:
|
4279
|
+
`,St=({height:t=280,paddingLeft:i=240,paddingRight:a=0,paddingTop:n=24,paddingBottom:r=60,gap:c=16,max:o=3e4,line:C=2e4,min:s=1e4,textLeft:h="Text left",textValueLeft:m=2e4,col1Text:p="3 ani",col2Text:g="5 ani",col3Text:_="10 ani",col1Value:E=15e3,col2Value:x=13e3,col3Value:v=11e3,col1Color:$="danger_500",col2Color:B="danger_500",col3Color:R="danger_500",currency:M="RON",dev:y=!1})=>{const H=new Intl.NumberFormat("RO"),Z=u.useRef(null),[S,k]=u.useState(0),[z,V]=u.useState(0),A=u.useRef(null),b=u.useMemo(()=>{const w=Math.abs(S-i-a),j=Math.abs(z-n-r),D=Math.abs(j/(o-s)*(o-C)+n),W=(w-2*c)/3,G=Q=>{const X=Math.abs(j/(o-s)*(Q-C)),K=Math.abs(j/(o-s)*(C-Q)),q=Q>C?X:K;return{h:q,y:Q>C?D-q:D}},T={x:i,y:G(E).y,w:W,h:G(E).h,text_y:E>=C?+G(E).y-12:+G(E).y+ +G(E).h+12+10},l1={x:i+W+c,y:G(x).y,w:W,h:G(x).h,text_y:x>=C?+G(x).y-12:+G(x).y+ +G(x).h+12+10},a1={x:i+W*2+c*2,y:G(v).y,w:W,h:G(v).h,text_y:v>=C?+G(v).y-12:+G(v).y+G(v).h+12+10};return{graphW:w,graphH:j,lineY:D,col_1:T,col_2:l1,col_3:a1,paddingLeft:i}},[S,z,s,o,C,c,i,a,n,r,E,x,v,A]);return u.useEffect(()=>{if(Z&&Z.current){const w=()=>{var D;const j=(D=Z==null?void 0:Z.current)==null?void 0:D.clientWidth;k(+j),V(t)};return w(),window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}},[Z,t]),L.jsxs(kt,{ref:Z,width:"100%",height:"100%",viewBox:`0 0 ${S} ${z}`,xmlns:"http://www.w3.org/2000/svg",$col1Color:$,$col2Color:B,$col3Color:R,$dev:y,children:[y&&L.jsx("rect",{className:"dev-graph",width:b.graphW,height:b.graphH,x:b.paddingLeft,y:n}),L.jsx("text",{className:"col_1_text",textAnchor:"middle",x:b.col_1.x+b.col_1.w/2,y:b.col_1.text_y,children:H.format(E)+` ${M}`}),L.jsx("rect",{className:"col_1_rect",width:b.col_1.w,height:b.col_1.h,x:b.col_1.x,y:b.col_1.y}),L.jsx("line",{x1:b.col_1.x,x2:b.col_1.x+b.col_1.w,y1:z-27,y2:z-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"col_1_sub_text",textAnchor:"middle",x:b.col_1.x+b.col_1.w/2,y:z-5,children:p}),L.jsx("text",{className:"col_2_text",textAnchor:"middle",x:b.col_2.x+b.col_2.w/2,y:b.col_2.text_y,children:H.format(x)+` ${M}`}),L.jsx("rect",{className:"col_2_rect",width:b.col_2.w,height:b.col_2.h,x:b.col_2.x,y:b.col_2.y}),L.jsx("line",{x1:b.col_2.x,x2:b.col_2.x+b.col_2.w,y1:z-27,y2:z-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"col_1_sub_text",textAnchor:"middle",x:b.col_2.x+b.col_2.w/2,y:z-5,children:g}),L.jsx("text",{className:"col_3_text",textAnchor:"middle",x:b.col_3.x+b.col_3.w/2,y:b.col_3.text_y,children:H.format(v)+` ${M}`}),L.jsx("rect",{className:"col_3_rect",width:b.col_3.w,height:b.col_3.h,x:b.col_3.x,y:b.col_3.y}),L.jsx("line",{x1:b.col_3.x,x2:b.col_3.x+b.col_3.w,y1:z-27,y2:z-27,strokeWidth:1,stroke:"#D5D5D6"}),L.jsx("text",{className:"col_1_sub_text",textAnchor:"middle",x:b.col_3.x+b.col_3.w/2,y:z-5,children:_}),L.jsx("text",{className:"textLeft",textAnchor:"start",x:0,y:b.lineY-26,children:h}),L.jsx("text",{className:"textValueLeft",textAnchor:"start",x:0,y:b.lineY-6,children:H.format(m)+` ${M}`}),L.jsx("line",{x1:0,x2:S,y1:b.lineY,y2:b.lineY,strokeWidth:2,stroke:l.gray_950})]})},At=F.div`
|
4257
4280
|
background-color: ${l.gray_950};
|
4258
4281
|
width: 244px;
|
4259
4282
|
border-radius: 16px;
|
@@ -4333,7 +4356,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
4333
4356
|
& > div:nth-child(2) {
|
4334
4357
|
padding: 0px 12px 12px 12px;
|
4335
4358
|
}
|
4336
|
-
`,h3=({position:t={top:"100%",left:"0px"},float:i=!0,getValue:a,value:n="0",handleFooterButton:r=()=>{},offset:c=10,withinPortal:o=!1,relativeRef:C,...s})=>{const[h,m]=u.useState(n.toString()),p=u.useRef(null),[g,_]=u.useState({}),E=u.useCallback(()=>{var z;if(!p.current)return;const B=p.current,R=B.getBoundingClientRect(),M=(z=B.offsetParent)==null?void 0:z.getBoundingClientRect();if(!M)return;const y=window.innerHeight-M.bottom,H=M.top,S=R.height+100>y&&H>y,k={top:S?"auto":"100%",left:`${t.left}`,right:`${t.right}`,bottom:S?"100%":"auto",marginTop:S?"auto":`${c}px`,marginBottom:S?`${c}px`:"auto"};_(
|
4359
|
+
`,h3=({position:t={top:"100%",left:"0px"},float:i=!0,getValue:a,value:n="0",handleFooterButton:r=()=>{},offset:c=10,withinPortal:o=!1,relativeRef:C,...s})=>{const[h,m]=u.useState(n.toString()),p=u.useRef(null),[g,_]=u.useState({}),E=u.useCallback(()=>{var z;if(!p.current)return;const B=p.current,R=B.getBoundingClientRect(),M=(z=B.offsetParent)==null?void 0:z.getBoundingClientRect();if(!M)return;const y=window.innerHeight-M.bottom,H=M.top,S=R.height+100>y&&H>y,k={top:S?"auto":"100%",left:`${t.left}`,right:`${t.right}`,bottom:S?"100%":"auto",marginTop:S?"auto":`${c}px`,marginBottom:S?`${c}px`:"auto"};_(V=>JSON.stringify(V)===JSON.stringify(k)?V:k)},[]),x=u.useCallback(()=>{const B=p==null?void 0:p.current,R=C==null?void 0:C.current;if(!B||!R)return;const M=B.getBoundingClientRect(),y=R.getBoundingClientRect(),H=y.left+window.scrollX,Z=y.top+window.scrollY,S=window.innerHeight-y.bottom,k=y.top,z=M.height+50>S&&k+150>S,V={top:z?`${Z-M.height-10}px`:`${Z+y.height}px`,left:`${H}px`,marginTop:z?"auto":"10px",marginBottom:z?"10px":"auto"};_(A=>JSON.stringify(A)===JSON.stringify(V)?A:V)},[]),v=u.useCallback(()=>o?x():E(),[o,E,x]);u.useEffect(()=>(v(),window.addEventListener("resize",v),window.addEventListener("scroll",v,!0),()=>{window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0)}),[v]);const $=(B,R=!1)=>{if(R){if(h==="0")return;if(h.length===1)return m("0");m(M=>M.substring(0,M.length-1));return}if(!(B==="."&&h.includes("."))){if(h==="0")return m(B==="."?M=>(M+B).toString():B);m(M=>(M+B).toString())}};return u.useEffect(()=>{a&&a(h)},[h]),L.jsxs(At,{id:"rbro-numpad-wrapper",...s,$offset:c,ref:p,style:{top:g.top,left:g.left,bottom:g.bottom,right:g.right,margin:`${g.marginTop} auto ${g.marginBottom} auto`,visibility:Object.keys(g).length===0?"hidden":"visible",zIndex:"500"},children:[L.jsx("div",{children:L.jsxs("div",{children:[L.jsx("button",{onClick:()=>$("1"),children:L.jsx("span",{children:"1"})}),L.jsx("button",{onClick:()=>$("2"),children:L.jsx("span",{children:"2"})}),L.jsx("button",{onClick:()=>$("3"),children:L.jsx("span",{children:"3"})}),L.jsx("button",{onClick:()=>$("4"),children:L.jsx("span",{children:"4"})}),L.jsx("button",{onClick:()=>$("5"),children:L.jsx("span",{children:"5"})}),L.jsx("button",{onClick:()=>$("6"),children:L.jsx("span",{children:"6"})}),L.jsx("button",{onClick:()=>$("7"),children:L.jsx("span",{children:"7"})}),L.jsx("button",{onClick:()=>$("8"),children:L.jsx("span",{children:"8"})}),L.jsx("button",{onClick:()=>$("9"),children:L.jsx("span",{children:"9"})}),L.jsx("button",{disabled:!i,onClick:()=>i&&$("."),children:L.jsx("span",{children:i?".":""})}),L.jsx("button",{onClick:()=>$("0"),children:L.jsx("span",{children:"0"})}),L.jsx("button",{onClick:()=>$("",!0),children:L.jsx(N,{icon:"clear-rec",size:20,color:l.accent_500})})]})}),L.jsx("div",{children:L.jsx(E1,{onClick:r,label:"OK",variant:"primary",intent:"accent",size:"medium",width:"100%"})})]})},Pt=F.div`
|
4337
4360
|
border-radius: 8px;
|
4338
4361
|
border: 1px solid ${l.gray_200};
|
4339
4362
|
overflow: hidden;
|
@@ -4623,6 +4646,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
4623
4646
|
align-items: center;
|
4624
4647
|
padding: 0px 16px;
|
4625
4648
|
background-color: ${({$refused:i})=>i?l.gray_60:l.gray_30};
|
4649
|
+
|
4626
4650
|
& > div {
|
4627
4651
|
display: flex;
|
4628
4652
|
align-items: flex-start;
|
@@ -4688,7 +4712,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
4688
4712
|
}
|
4689
4713
|
}
|
4690
4714
|
`}
|
4691
|
-
`,E9=({title:t="Fix ce ai cerut!",numar_asigurati:i="",prima_totala_pe_an:a="",sporturi_extreme:n="",accidente:r="",selected:c=!1,refused:o=!1,disabled:C=!1,hideButton:s=!1,empty:h=!1,emptyText:m="Indisponibil",iconButtonOnClick:p,buttonOnClick:g,children:_,...E})=>{let
|
4715
|
+
`,E9=({title:t="Fix ce ai cerut!",numar_asigurati:i="",prima_totala_pe_an:a="",sporturi_extreme:n="",accidente:r="",selected:c=!1,refused:o=!1,disabled:C=!1,hideButton:s=!1,empty:h=!1,emptyText:m="Indisponibil",iconButtonOnClick:p,buttonOnClick:g,children:_,...E})=>{let x=null;return u.Children.toArray(_).filter(Boolean).forEach(v=>{v.type===x9&&(x=v)}),L.jsx(Dt,{$empty:h,$selected:c,$refused:o,$disabled:C,$hideButton:s,...E,children:h?L.jsxs("div",{children:[L.jsx(N,{size:20,icon:"rejected",color:l.gray_500}),L.jsx("span",{children:m})]}):L.jsxs(L.Fragment,{children:[L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsx("span",{children:t}),L.jsx(x1,{onClick:p,icon:"new_tab",intent:"accent",variant:"tertiary",shape:"rounded",color:l.info_800,size:"medium"})]}),L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsx("span",{children:"Numar asigurati"}),L.jsx("span",{children:i||"-"})]}),L.jsxs("div",{children:[L.jsx("span",{children:"Prima totala pe an"}),L.jsx("span",{children:a||"-"})]})]}),L.jsxs("div",{children:[L.jsx("div",{children:L.jsxs("div",{children:[L.jsx(N,{icon:"mountains",size:16,color:o?l.gray_200:l.gray_500}),L.jsxs("div",{children:[L.jsx("span",{children:"Sporturi extreme"}),L.jsx("span",{children:n||"-"})]})]})}),L.jsx("div",{children:L.jsxs("div",{children:[L.jsx(N,{icon:"autoservice-3",size:16,color:o?l.gray_200:l.gray_500}),L.jsxs("div",{children:[L.jsx("span",{children:"Accidente"}),L.jsx("span",{children:r||"-"})]})]})})]})]}),L.jsx("div",{children:x}),!s&&L.jsxs("button",{disabled:C,type:"button",onClick:C?()=>{}:g,children:[L.jsx(N,{icon:c?"checkmark_filled":"checkmark-part",size:16,color:c?C?l.gray_600:l.white:l.purple_600,style:{opacity:C&&!c?"0.25":"1"}}),L.jsx("span",{children:c?"Varianta selectata":"Vreau aceasta varianta!"})]})]})})},x9=({children:t})=>t;E9.ContentSlot=x9;const zt=F.button`
|
4692
4716
|
appearance: none;
|
4693
4717
|
border: none;
|
4694
4718
|
outline: none;
|
@@ -4909,7 +4933,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
4909
4933
|
gap: 8px;
|
4910
4934
|
border-top: 1px solid ${l.gray_150};
|
4911
4935
|
}
|
4912
|
-
`,It=({id:t,name:i,placeholder:a="Selecteaza",value:n={judet:"",localitate:"",clasificare:""},setValue:r,size:c="medium",intent:o="default",disabled:C=!1,...s})=>{const h=u.useRef(null),[m,p]=u.useState(!1),[g,_]=u.useState(""),[E,
|
4936
|
+
`,It=({id:t,name:i,placeholder:a="Selecteaza",value:n={judet:"",localitate:"",clasificare:""},setValue:r,size:c="medium",intent:o="default",disabled:C=!1,...s})=>{const h=u.useRef(null),[m,p]=u.useState(!1),[g,_]=u.useState(""),[E,x]=u.useState(!1),[v,$]=u.useState(""),[B,R]=u.useState(""),[M,y]=u.useState(""),[H,Z]=u.useState(""),S=u.useRef(!1),k=u.useMemo(()=>{var j;return!v||!E?[]:((j=e3.find(D=>D.title.toLowerCase()===v.toLowerCase()))==null?void 0:j.localitati)??[]},[v,E]),z=u.useMemo(()=>{const j=g.toLowerCase();return j?(E?k:e3).filter(D=>D.title.toLowerCase().includes(j)):E?k:e3},[g,E,k]),V=u.useCallback(j=>{_(j.target.value)},[]),A=u.useCallback(j=>{if(S.current=!0,!E){$(j.title);return}R(j.title),y(j.clasificare??"")},[E]),b=u.useCallback(()=>{S.current=!0,x(!1),_(""),R(""),y("")},[]),w=u.useCallback(()=>{if(S.current=!0,!E&&v){x(!0),_("");return}if(!B)return;const j=`${v} - ${B}`;x(!0),p(!1),Z(j),r&&r({judet:v,localitate:B,clasificare:M})},[E,v,B,M,r]);return u.useEffect(()=>{const j=D=>{if(h.current&&!h.current.contains(D.target)){if(p(!1),n!=null&&n.judet){$(n==null?void 0:n.judet),x(!0),n!=null&&n.localitate&&(R(n==null?void 0:n.localitate),y((n==null?void 0:n.clasificare)??""));return}$(""),R(""),y(""),x(!1)}};if(m)return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[h,m]),u.useEffect(()=>{if(S.current)return;let j="";n!=null&&n.judet&&($(n==null?void 0:n.judet),j=`${n==null?void 0:n.judet}`,x(!0)),n!=null&&n.localitate&&(R(n==null?void 0:n.localitate),n!=null&&n.judet&&(j=`${n==null?void 0:n.judet} - ${n==null?void 0:n.localitate}`)),n!=null&&n.clasificare&&y(n==null?void 0:n.clasificare),Z(j)},[n]),L.jsxs(Nt,{ref:h,$size:c,$intent:o,$disabled:C,$isOpen:m,...s,children:[L.jsx("input",{readOnly:!0,placeholder:a,id:t,type:"text",name:i,value:H,onClick:()=>!C&&p(!m),onChange:j=>j.preventDefault()}),L.jsx("div",{children:L.jsx(N,{icon:"city",size:20,color:C?l.info_500_40:l.info_700})}),m&&L.jsxs(Tt,{$isJudetPicked:E,children:[L.jsxs("div",{children:[L.jsx("span",{children:E?`Alege localitatea in ${v}`:"Alege judetul"}),L.jsxs("div",{children:[L.jsx("div",{children:L.jsx(N,{icon:"search",size:20,color:l.gray_500})}),L.jsx("input",{onChange:V,value:g,type:"text"})]})]}),L.jsx("div",{children:L.jsx("div",{children:z.length>0?z.map((j,D)=>L.jsx("div",{"data-active":E?B===j.title:v===j.title,onClick:()=>A(j),children:L.jsx("span",{children:j.title})},D)):L.jsx("div",{className:"k3m8n9p4v2",children:L.jsx("span",{children:"Nu au fost gasite rezultate."})})})}),L.jsxs("div",{children:[E&&L.jsx(E1,{label:"Schimba judetul",intent:"accent",variant:"secondaryOutlined",size:"medium",onClick:b}),L.jsx(E1,{label:"Continua",intent:"accent",variant:"primary",size:"medium",onClick:w})]})]})]})},m6={medium:d`
|
4913
4937
|
height: 40px;
|
4914
4938
|
font-size: 14px;
|
4915
4939
|
padding: 0px 70px 0px 12px;
|
@@ -4987,7 +5011,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
4987
5011
|
}
|
4988
5012
|
}
|
4989
5013
|
}
|
4990
|
-
`,Gt=({id:t,name:i,disabled:a,size:n="medium",intent:r="default",items:c,getItems:o,getValue:C,...s})=>{const[h,m]=u.useState(!1),[p,g]=u.useState(""),[_,E]=u.useState("0"),[
|
5014
|
+
`,Gt=({id:t,name:i,disabled:a,size:n="medium",intent:r="default",items:c,getItems:o,getValue:C,...s})=>{const[h,m]=u.useState(!1),[p,g]=u.useState(""),[_,E]=u.useState("0"),[x,v]=u.useState("0"),$={nevoi_personale:"Nevoi personale",card_de_credit:"Card de credit",overdraft:"Overdraft",credit_ipotecar:"Credit ipotecar"},B=u.useMemo(()=>!c||c.length===0?[]:c.map((j,D)=>{if(j.tipCredit==="card_de_credit"||j.tipCredit==="overdraft"){const W=Number(j.limitaAprobata)/100*3;return{id:String(D+1),rata:String(W.toFixed(0)),...j}}return{id:String(D+1),limitaAprobata:"0",...j}}),[c]),[R,M]=u.useState(B||[]),y=[{label:"Card de credit",value:"card_de_credit"},{label:"Nevoi personale",value:"nevoi_personale"},{label:"Overdraft",value:"overdraft"},{label:"Credit ipotecar",value:"credit_ipotecar"}],H=()=>{m(!0)},Z=u.useMemo(()=>({rata:p==="card_de_credit"||p==="overdraft",limitaAprobata:p==="nevoi_personale"||p==="credit_ipotecar"}),[p]),S=u.useMemo(()=>Math.round(R.reduce((w,j)=>w+Number(j.rata),0)).toFixed(0),[R]);u.useEffect(()=>{C&&C(String(S))},[R,S]);const k=(w,j)=>{if(j==="limitaAprobata"&&Z.limitaAprobata||j==="rata"&&Z.rata)return;const D=w==="0"||w.startsWith("0.")?w:w.replace(/^0+/,"");if(j==="limitaAprobata"){const W=Number(D)/100*3;v(String(W.toFixed(0)))}j==="limitaAprobata"?E(D):v(D)},z=(w,j,D)=>{const W=D==="0"||D.startsWith("0.")?D:D.replace(/^0+/,"");M(G=>{if(j==="limitaAprobata"){const T=Number(W)/100*3;return G.map(l1=>l1.id===w?{...l1,limitaAprobata:W,rata:String(T.toFixed(0))}:l1)}return G.map(T=>T.id===w?{...T,rata:W}:T)})},V=u.useCallback(()=>{p&&(Z.rata&&(!Number(_)||Number(_)<1)||Z.limitaAprobata&&(!Number(x)||Number(x)<1)||(M(w=>[{id:String(w.length+1),tipCredit:p,limitaAprobata:_,rata:x},...w]),E("0"),v("0"),g("")))},[Z,_,x,p]),A=w=>{M(j=>j.filter(D=>D.id!==w))},b=()=>{M([]),E("0"),v("0"),g("")};return u.useEffect(()=>{o&&o(R)},[R]),L.jsxs(L.Fragment,{children:[L.jsx(f2,{title:"Ratele tale",show:h,onClose:()=>m(!1),contentPadding:"0px",contentOverflow:"hidden",contentBodyStyle:{display:"flex",flexDirection:"column"},children:L.jsx(f2.ContentSlot,{children:L.jsxs(h1,{direction:"column",style:{overflow:"hidden"},children:[L.jsxs(h1,{items:"flex-end",gap:24,padding:"16px 24px 16px 24px",style:{borderBottom:`1px solid ${l.gray_1000_10}`,flexShrink:0},children:[L.jsxs(h1,{items:"center",gap:16,grow:1,shrink:1,basis:"0%",children:[L.jsx(h1,{grow:1,shrink:1,basis:"0%",children:L.jsx(p2,{label:"Tipul creditului",labelFor:"tipul_creditului",children:L.jsx(C9,{dropdownContentWidth:"120%",data:y,value:p,setValue:w=>{g(w),E("0"),v("0")},size:"small"})})}),L.jsx(h1,{grow:1,shrink:1,basis:"0%",children:L.jsx(p2,{label:"Limita aprobata",children:L.jsx(d2,{disabled:!p||Z.limitaAprobata,type:"number",inputMode:"numeric",rightText:"RON",id:"limita_aprobata",name:"limita_aprobata",numpad:!0,numpadFloatNumber:!1,numpadOffset:10,value:_,setValue:w=>k(w,"limitaAprobata"),size:"small",numpadPortal:!0})})}),L.jsx(h1,{grow:1,shrink:1,basis:"0%",children:L.jsx(p2,{label:"Rata",children:L.jsx(d2,{disabled:!p||Z.rata,type:"number",rightText:"RON",id:"rata",name:"rata",value:x,setValue:w=>k(w,"rata"),size:"small",numpad:!0,numpadFloatNumber:!1,numpadOffset:10,numpadPortal:!0})})})]}),L.jsx(E1,{disabled:!p,label:"Adauga",variant:"secondaryOutlined",intent:"info",size:"small",width:"90px",onClick:V})]}),L.jsx(h1,{direction:"column",style:{overflow:"hidden"},children:L.jsx(h1,{direction:"column",padding:"0px 24px 0px 24px",height:"100%",style:{overflow:"scroll",maxHeight:"273px",minHeight:"273px"},children:R.map((w,j)=>L.jsxs(h1,{items:"center",width:"100%",gap:24,padding:j===0?"16px 0px 8px 0px":R.length-1===j?"8px 0px 16px 0px":"8px 0px 8px 0px",children:[L.jsxs(h1,{items:"center",gap:16,grow:1,shrink:1,basis:"0%",children:[L.jsx(h1,{grow:1,shrink:1,basis:"0%",children:L.jsx(R2,{text:$[w.tipCredit],textFontSize:16,textFontWeight:500,textColor:"gray_950"})}),L.jsx(h1,{grow:1,shrink:1,basis:"0%",children:w.tipCredit==="card_de_credit"||w.tipCredit==="overdraft"?L.jsx(d2,{id:`${w.id}_limita_aprobata`,name:`${w.id}_limita_aprobata`,rightText:"RON",size:"small",value:w.limitaAprobata,setValue:D=>z(w.id,"limitaAprobata",D),numpad:!0,numpadFloatNumber:!1,numpadOffset:10,numpadPortal:!0}):L.jsx(L.Fragment,{})}),L.jsx(h1,{grow:1,shrink:1,basis:"0%",children:L.jsx(d2,{disabled:w.tipCredit==="card_de_credit"||w.tipCredit==="overdraft",id:`${w.id}_rata`,name:`${w.id}_rata`,rightText:"RON",size:"small",value:w.rata,setValue:D=>z(w.id,"rata",D),numpad:!0,numpadFloatNumber:!1,numpadOffset:10,numpadPortal:!0})})]}),L.jsx(E1,{label:"Sterge",variant:"secondaryOutlined",intent:"danger",size:"small",width:"90px",onClick:()=>A(w.id)})]},w.id))})}),L.jsxs(h1,{items:"center",justify:"space-between",gap:32,padding:"16px 24px 16px 24px",style:{borderTop:`1px solid ${l.gray_1000_10}`,flexShrink:0,flexBasis:"0%"},children:[L.jsx(E1,{size:"small",label:"Reseteaza",variant:"secondaryOutlined",intent:"accent",onClick:b,width:"90px"}),L.jsxs(h1,{items:"center",gap:24,children:[L.jsx(R2,{gap:0,align:"right",label:"Total rate",labelFontSize:14,labelColor:"gray_700",text:`${S} RON`,textFontSize:16,textFontWeight:500}),L.jsx(E1,{disabled:!R.length,size:"small",width:"90px",label:"Confirma",variant:"primary",intent:"accent",onClick:()=>m(!1)})]})]})]})})}),L.jsx(Wt,{$intent:r,$size:n,$disabled:a,$isOpen:h,onClick:()=>!a&&H(),...s,children:L.jsxs("div",{className:"x7k9m2p4n5",children:[L.jsx("input",{readOnly:!0,id:t,type:"text",name:i,value:R.length?S:"0",onChange:w=>w.preventDefault()}),L.jsxs("div",{children:[L.jsx("span",{children:"RON"}),L.jsx(N,{icon:"office-supplies",size:20,color:l.info_700})]})]})})]})},Yt=F.div`
|
4991
5015
|
max-width: 220px;
|
4992
5016
|
display: flex;
|
4993
5017
|
flex-direction: column;
|
@@ -5228,7 +5252,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
5228
5252
|
width: fit-content;
|
5229
5253
|
}
|
5230
5254
|
`}
|
5231
|
-
`,Jt=({imgSrc:t="",title:i="",text:a="",salesText:n="",tagType:r="default",tagText:c="",tagVariant:o="light",callToAction:C="null",callToActionEvent:s=()=>{},variant:h="default",featured:m=!1,disabled:p=!1,loading:g=!1,statusConfiguratii:_=0,...E})=>L.jsxs(Xt,{$variant:h,$featured:m,$disabled:p,$loading:g,...E,onClick:
|
5255
|
+
`,Jt=({imgSrc:t="",title:i="",text:a="",salesText:n="",tagType:r="default",tagText:c="",tagVariant:o="light",callToAction:C="null",callToActionEvent:s=()=>{},variant:h="default",featured:m=!1,disabled:p=!1,loading:g=!1,statusConfiguratii:_=0,...E})=>L.jsxs(Xt,{$variant:h,$featured:m,$disabled:p,$loading:g,...E,onClick:x=>{var v;p||g||(v=E.onClick)==null||v.call(E,x)},children:[_>0&&!g&&L.jsxs("div",{className:"a7b2c9d4e8f5h3",children:[L.jsx("span",{children:_}),L.jsx(N,{icon:"grocery-2",size:14,color:l.white})]}),g?L.jsx("div",{children:L.jsx(W1,{style:{opacity:.4},speed:2})}):h==="default"?L.jsxs("div",{className:"j8k2m5n9p4q7r3",children:[L.jsx("div",{children:L.jsx("img",{src:t,alt:i})}),L.jsxs("div",{children:[L.jsx("span",{children:i}),(C!=="null"||r!==void 0||c!=="")&&L.jsxs("div",{children:[r!==void 0&&c!==""&&L.jsx(p9,{size:"small",bgColor:E6[o][r].backgroundColor,textColor:E6[o][r].textColor,fontWeight:400,text:c}),L.jsx("div",{className:"xk9m2pq4nt",children:C!=="null"&&L.jsx(x1,{onClick:x=>{x.preventDefault(),x.stopPropagation(),!(p||g)&&s()},size:"medium",disabled:p,icon:t3[C].icon,intent:t3[C].intent,variant:t3[C].variant})})]})]})]}):L.jsxs("div",{className:"x7k9m4p2n5q8r3",children:[L.jsxs("div",{children:[L.jsx("span",{children:i}),L.jsx("span",{children:a})]}),L.jsx("span",{children:n})]})]}),Kt=F.div`
|
5232
5256
|
display: flex;
|
5233
5257
|
flex-direction: column;
|
5234
5258
|
gap: 8px;
|
@@ -5408,7 +5432,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
5408
5432
|
}
|
5409
5433
|
}
|
5410
5434
|
`}
|
5411
|
-
`,tl=({title:t="Title",productName:i="Product Name",text:a="Text",rating:n=!0,ratingRate:r="10/10",ratingColor:c="gray_950",benefit:o=!0,benefitTitle:C="Title",benefitLabel:s="Text",benefitColor:h="white",titleFontSize:m=16,titleFontWeight:p=700,textFontSize:g=14,textFontWeight:_=400,width:E="auto",disabled:
|
5435
|
+
`,tl=({title:t="Title",productName:i="Product Name",text:a="Text",rating:n=!0,ratingRate:r="10/10",ratingColor:c="gray_950",benefit:o=!0,benefitTitle:C="Title",benefitLabel:s="Text",benefitColor:h="white",titleFontSize:m=16,titleFontWeight:p=700,textFontSize:g=14,textFontWeight:_=400,width:E="auto",disabled:x=!1,img:v="",onClick:$=()=>{},...B})=>L.jsxs(el,{$width:E,$ratingColor:c,$benefitColor:h,$titleFontSize:m,$titleFontWeight:p,$textFontSize:g,$textFontWeight:_,$disabled:x,onClick:R=>{x||$(R)},...B,children:[L.jsxs("div",{children:[L.jsx("img",{src:v,alt:"offer-card"}),(o||n)&&L.jsxs("div",{children:[o&&L.jsxs("div",{className:"k9m4p2x8n5",children:[L.jsx("span",{children:s}),L.jsx("span",{children:C})]}),n&&L.jsx("div",{className:"yw8h5vn3kp",children:L.jsx("span",{children:r??"0/0"})})]})]}),L.jsxs("div",{children:[L.jsx("span",{children:i}),L.jsx("span",{children:t}),L.jsx("span",{children:a})]})]}),ll=F.div`
|
5412
5436
|
display: flex;
|
5413
5437
|
align-items: flex-start;
|
5414
5438
|
|
@@ -5471,7 +5495,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
5471
5495
|
.label_bottom {
|
5472
5496
|
transition: all 0.5s ease-in-out;
|
5473
5497
|
}
|
5474
|
-
`,ml=({totalAUM:t=0,cash:i=0,crestere:a=0,conservare:n=0,lichiditate:r=0,cashCrestere:c=0,cashConservare:o=0,cashLichiditate:C=0,disabled:s=!1,showRightContent:h=!0,...m})=>{const p=u.useRef(null),g=u.useRef(null),_=u.useRef(null),E=u.useRef(null),
|
5498
|
+
`,ml=({totalAUM:t=0,cash:i=0,crestere:a=0,conservare:n=0,lichiditate:r=0,cashCrestere:c=0,cashConservare:o=0,cashLichiditate:C=0,disabled:s=!1,showRightContent:h=!0,...m})=>{const p=u.useRef(null),g=u.useRef(null),_=u.useRef(null),E=u.useRef(null),x=.2,v={cash:l.warm_gray_150,crestere:l.blue_400,conservare:l.purple_500,lichiditate:l.pink_400,cashCrestere:l.blue_300,cashConservare:l.purple_300,cashLichiditate:l.pink_300},[$,B]=u.useState(83),R=u.useCallback(Z=>{const S=s?0:(Z/t||0)*$;return(S>0?Math.max(S,x):0).toFixed(2)},[s,t,$]),M=u.useMemo(()=>{const Z=R(i),S=R(a),k=R(n),z=R(r),V=R(c),A=R(o),b=R(C);return{cash_percentage:Number(Z),crestere_percentage:Number(S),conservare_percentage:Number(k),lichiditate_percentage:Number(z),cashCrestere_percentage:Number(V),cashConservare_percentage:Number(A),cashLichiditate_percentage:Number(b)}},[i,a,n,r,c,o,C,R]),y=u.useMemo(()=>M.crestere_percentage+M.conservare_percentage+M.lichiditate_percentage+M.cashCrestere_percentage+M.cashConservare_percentage+M.cashLichiditate_percentage>0?M.cash_percentage:$,[M,$]),H=u.useCallback(()=>{var Z,S;if(p.current){const k=p.current.clientWidth,z=Math.max(((Z=g.current)==null?void 0:Z.getBBox().width)||0,((S=_.current)==null?void 0:S.getBBox().width)||0),V=h&&_.current?z+30||65:4,A=(k-Number(V))/k*100;return Number(Math.max(A,0).toFixed(2))}return 85},[h]);return u.useEffect(()=>(E.current=new ResizeObserver(()=>{B(H())}),p.current&&E.current.observe(p.current),_.current&&E.current.observe(_.current),B(H()),()=>{E.current&&E.current.disconnect()}),[H]),L.jsxs(ul,{$disabled:s,ref:p,width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",...m,children:[s&&L.jsx("text",{x:($+4)/2+"%",y:48/2+5,textAnchor:"middle",className:"label_disabled",children:"Grafic indisponibil"}),L.jsx("rect",{x:M.crestere_percentage+M.conservare_percentage+M.lichiditate_percentage+M.cashCrestere_percentage+M.cashConservare_percentage+M.cashLichiditate_percentage+"%",y:0,height:48,width:y+"%",fill:v.cash}),L.jsx("rect",{x:0,y:0,height:48,width:M.crestere_percentage+"%",fill:v.crestere}),L.jsx("rect",{x:M.crestere_percentage+"%",y:0,height:48,width:M.cashCrestere_percentage+"%",fill:v.cashCrestere}),L.jsx("rect",{x:M.crestere_percentage+M.cashCrestere_percentage+"%",y:0,height:48,width:M.conservare_percentage+"%",fill:v.conservare}),L.jsx("rect",{x:M.crestere_percentage+M.cashCrestere_percentage+M.conservare_percentage+"%",y:0,height:48,width:M.cashConservare_percentage+"%",fill:v.cashConservare}),L.jsx("rect",{x:M.crestere_percentage+M.cashCrestere_percentage+M.conservare_percentage+M.cashConservare_percentage+"%",y:0,height:48,width:M.lichiditate_percentage+"%",fill:v.lichiditate}),L.jsx("rect",{x:M.crestere_percentage+M.cashCrestere_percentage+M.conservare_percentage+M.cashConservare_percentage+M.lichiditate_percentage+"%",y:0,height:48,width:M.cashLichiditate_percentage+"%",fill:v.cashLichiditate}),L.jsx("rect",{x:$+"%",y:0,height:"100%",width:"4px"}),h&&L.jsxs(L.Fragment,{children:[L.jsx("text",{ref:g,className:"label_top",x:0,textAnchor:"start",y:19,style:{transform:`translateX(${$+3+"%"}`},children:"Total AUM"}),L.jsx("text",{ref:_,className:"label_bottom",x:0,textAnchor:"start",y:39,style:{transform:`translateX(${$+3+"%"}`},children:new Intl.NumberFormat("ro-RO").format(t)+" RON"})]})]})},gl=F.svg`
|
5475
5499
|
.label_top {
|
5476
5500
|
font-size: 16px;
|
5477
5501
|
font-weight: 400;
|
@@ -5513,7 +5537,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
5513
5537
|
opacity: 1;
|
5514
5538
|
visibility: visible;
|
5515
5539
|
}
|
5516
|
-
`,El=({cash:t=0,crestere:i=0,conservare:a=0,lichiditate:n=0,crestere_max:r=0,conservare_max:c=0,lichiditate_max:o=0,inflatie:C=0,showInflatie:s=!1,scale_max:h=0,top_label:m="120.000 RON",bottom_label:p="astazi",cash_label_nedistribuit:g="echivalentul a 120.000 RON de astazi",height:_=334,test:E=!1,visualDifference:
|
5540
|
+
`,El=({cash:t=0,crestere:i=0,conservare:a=0,lichiditate:n=0,crestere_max:r=0,conservare_max:c=0,lichiditate_max:o=0,inflatie:C=0,showInflatie:s=!1,scale_max:h=0,top_label:m="120.000 RON",bottom_label:p="astazi",cash_label_nedistribuit:g="echivalentul a 120.000 RON de astazi",height:_=334,test:E=!1,visualDifference:x=1,currency:v="RON",...$})=>{const H={cash:l.warm_gray_150,crestere:l.blue_300,conservare:l.purple_400,lichiditate:l.pink_300,inflatie:l.danger_500},Z=(z,V=134)=>{const A=z.split(" "),b=[];let w=A[0];for(let j=1;j<A.length;j++){const D=A[j],W=`${w} ${D}`;Number(W.length)*6.15<Number(V)?w=W:(b.push(w),w=D)}return b.push(w),b},S=u.useMemo(()=>{if(i===0&&a===0&&n===0&&s)return g;const z=t-(i||0)-(a||0)-(n||0);return new Intl.NumberFormat("ro-RO",{style:"currency",currency:v,minimumFractionDigits:0,maximumFractionDigits:0}).format(z)},[t,i,a,n,g,s,v]),k=u.useMemo(()=>{const A=_-54,b=h>t?h-t:0,w=b>0?Number((b*A/h*x).toFixed(2)):0,j=A-w,D=i+a+n,W=Math.max(t-D,0),G=Math.max(h-(r+c+o),0),T={crestere:i>0?i*j/t:0,conservare:a>0?a*j/t:0,lichiditate:n>0?n*j/t:0,cash:t>0?G*A/h:0,inflatie:C>0?C/100*A+1:0},l1=Object.entries(T).filter(([P1,q1])=>q1>0&&P1!=="inflatie").length,a1=(l1-1)*4+(C>0?8:0),Q=l1*1+a1+(C>0?T.inflatie:0),X=Math.max(0,j-Q),K=Math.max(0,A-Q),q=Object.entries(T).reduce((P1,[q1,U1])=>q1!=="inflatie"?P1+U1:P1,0),L1=T.crestere>0?1+X*T.crestere/q:0,c1=T.conservare>0?1+X*T.conservare/q:0,r1=T.lichiditate>0?1+X*T.lichiditate/q:0,f1=T.cash>0?1+K*T.cash/A:0,V1=T.inflatie>0?Math.min(T.inflatie,q-(l1*1+a1)):0;let s1=28+w;const m1=s1;s1+=L1+(L1>0?4:0);const D2=s1;s1+=c1+(c1>0?4:0);const z2=s1;s1+=r1+(r1>0?4:0);const G1=s1;s1+=f1+(f1>0?4:0);const Y1=s1+(V1>0?4:0);return{cash_h:f1,cash_y:G1,remaining_cash:W,crestere_h:L1,crestere_y:m1,conservare_h:c1,conservare_y:D2,lichiditate_h:r1,lichiditate_y:z2,inflatie_h:V1,inflatie_y:Y1,available_h:j,invisible_h:w,cash_init_h:A}},[t,i,a,n,_,h,C,x,r,c,o]);return L.jsxs(gl,{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",...$,children:[L.jsx("text",{x:"50%",y:16,textAnchor:"middle",className:"label_top",children:m}),E&&L.jsxs(L.Fragment,{children:[L.jsx("rect",{x:0,y:k.crestere_y,width:"100%",height:k.available_h,fill:"transparent",stroke:"blue",strokeWidth:3}),L.jsx("rect",{x:0,y:28,width:"100%",height:k.invisible_h,fill:"red"})]}),L.jsx("rect",{x:E?".5%":"0%",y:k.crestere_y,width:E?"99%":"100%",height:k.crestere_h,fill:H.crestere}),L.jsx("text",{x:"50%",y:k.crestere_h>0?k.crestere_y+k.crestere_h/2+5:0,textAnchor:"middle",className:`basic-label ${i>0&&k.crestere_h>=18?"":"hidden"}`,children:Z(new Intl.NumberFormat("ro-RO",{style:"currency",currency:v,minimumFractionDigits:0,maximumFractionDigits:0}).format(i)).map((z,V)=>L.jsx("tspan",{x:"50%",dy:V===0?"0":"1.2em",children:z},V))}),L.jsx("rect",{x:E?".5%":"0%",y:k.conservare_y,width:E?"99%":"100%",height:k.conservare_h,fill:H.conservare}),L.jsx("text",{x:"50%",y:k.conservare_h>0?k.conservare_y+k.conservare_h/2+5:0,textAnchor:"middle",className:`basic-label ${a>0&&k.conservare_h>=18?"":"hidden"}`,children:Z(new Intl.NumberFormat("ro-RO",{style:"currency",currency:v,minimumFractionDigits:0,maximumFractionDigits:0}).format(a)).map((z,V)=>L.jsx("tspan",{x:"50%",dy:V===0?"0":"1.2em",children:z},V))}),L.jsx("rect",{x:E?".5%":"0%",y:k.lichiditate_y,width:E?"99%":"100%",height:k.lichiditate_h,fill:H.lichiditate}),L.jsx("text",{x:"50%",y:k.lichiditate_h>0?k.lichiditate_y+k.lichiditate_h/2+5:0,textAnchor:"middle",className:`basic-label ${n>0&&k.lichiditate_h>=18?"":"hidden"}`,children:Z(new Intl.NumberFormat("ro-RO",{style:"currency",currency:v,minimumFractionDigits:0,maximumFractionDigits:0}).format(n)).map((z,V)=>L.jsx("tspan",{x:"50%",dy:V===0?"0":"1.2em",children:z},V))}),L.jsx("rect",{x:E?".5%":"0%",y:k.cash_y,height:k.cash_h,width:E?"99%":"100%",fill:H.cash}),L.jsx("text",{x:"50%",y:k.remaining_cash>0?k.cash_y+k.cash_h/2+5:0,textAnchor:"middle",className:`basic-label ${k.remaining_cash>0&&k.cash_h>=18?"":"hidden"}`,children:Z(S).map((z,V)=>L.jsx("tspan",{x:"50%",dy:V===0?"0":"1.2em",children:z},V))}),C>0&&L.jsx("rect",{x:E?".5%":"0%",y:k.inflatie_y,height:k.inflatie_h,width:E?"99%":"100%",fill:H.inflatie}),C>0&&k.inflatie_h>18&&L.jsx("text",{x:"50%",y:k.inflatie_y+k.inflatie_h/2+5,textAnchor:"middle",className:"inflatie-label",children:Z(C+"%").map((z,V)=>L.jsx("tspan",{x:"50%",dy:V===0?"0":"1.2em",children:z},V))}),L.jsx("text",{textAnchor:"middle",x:"50%",y:"98.5%",className:"label_bottom",children:p})]})},xl=F.div`
|
5517
5541
|
display: flex;
|
5518
5542
|
align-items: center;
|
5519
5543
|
gap: 8px;
|
@@ -5892,7 +5916,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
5892
5916
|
}
|
5893
5917
|
}
|
5894
5918
|
`}
|
5895
|
-
`,Pl=({loadingBackgroundColor:t="gray_100",loadingTextColor:i="info_700",successBackgroundColor:a="gray_100",successTextColor:n="gray_950",padding:r="8px",successIcon:c="checkmark_filled",intent:o="success",disabled:C=!1,delay:s=40,buttonEventClick:h=()=>{},timesUp:m=()=>{},...p})=>{const[g,_]=u.useState(s);u.useEffect(()=>{g===0?m==null||m(!0):o!=="loading"&&(m==null||m(!1))},[g,o,m]);const E=()=>{o!=="loading"&&!C&&(h==null||h())};return u.useEffect(()=>{if(o==="loading"&&!C){const
|
5919
|
+
`,Pl=({loadingBackgroundColor:t="gray_100",loadingTextColor:i="info_700",successBackgroundColor:a="gray_100",successTextColor:n="gray_950",padding:r="8px",successIcon:c="checkmark_filled",intent:o="success",disabled:C=!1,delay:s=40,buttonEventClick:h=()=>{},timesUp:m=()=>{},...p})=>{const[g,_]=u.useState(s);u.useEffect(()=>{g===0?m==null||m(!0):o!=="loading"&&(m==null||m(!1))},[g,o,m]);const E=()=>{o!=="loading"&&!C&&(h==null||h())};return u.useEffect(()=>{if(o==="loading"&&!C){const x=setInterval(()=>{_(v=>v<=1?(clearInterval(x),0):v-1)},1e3);return()=>{clearInterval(x)}}else _(s)},[s,o,C]),L.jsxs(Al,{$loadingBackgroundColor:t,$loadingTextColor:i,$successBackgroundColor:a,$successTextColor:n,$padding:r,$intent:o,$disabled:C,onClick:E,...p,children:[L.jsx(N,{icon:o==="loading"?"history":c,size:20,color:C?l.gray_300:o==="loading"?l[i||"gray_950"]:l[n||"gray_950"]}),o==="loading"&&L.jsxs("span",{children:[g," s"]})]})},v6={small:{container:"2px",pill:"12px"},medium:{container:"2px",pill:"16px"},large:{container:"2px",pill:"20px"}},x2={small:{container:d`
|
5896
5920
|
width: 28px;
|
5897
5921
|
height: 16px;
|
5898
5922
|
padding: 2px;
|
@@ -5952,15 +5976,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
|
|
5952
5976
|
background-color: ${({$checked:t})=>t?l.info_500_40:l.gray_150};
|
5953
5977
|
}
|
5954
5978
|
}
|
5955
|
-
`,zl=({name:t,id:i,checked:a=!1,disabled:n=!1,value:r,onChange:c=()=>{},size:o="small",...C})=>L.jsxs(Dl,{$disabled:n,$checked:a,$size:o,htmlFor:i,style:{"--switch-container-padding":v6[o].container,"--switch-pill-width":v6[o].pill,"--switch-inset-inline-start":a?"calc(100% - var(--switch-pill-width) - var(--switch-container-padding))":"var(--switch-container-padding)"},...C,children:[L.jsx("input",{name:t,id:i,disabled:n,checked:a,onChange:c,value:r,type:"checkbox"}),L.jsx("span",{})]}),Ol=({items:t=[{value:1,color:"blue"}],size:i=100,innerSize:a=30})=>{const n=u.useMemo(()=>Math.max(1,t.reduce((s,h)=>s+h.value,0)),[t]),r=u.useMemo(()=>t.length===1||t.some(s=>s.value>0),[t]);let c=0;const o=s=>{const h=Math.PI*2;return(s-90)*h/360},C=u.useCallback((s,h)=>{const m=o(s),p=o(h),g={x:i+i*Math.cos(p),y:i+i*Math.sin(p)},_={x:i+i*Math.cos(m),y:i+i*Math.sin(m)},E={x:i+a*Math.cos(m),y:i+a*Math.sin(m)},
|
5979
|
+
`,zl=({name:t,id:i,checked:a=!1,disabled:n=!1,value:r,onChange:c=()=>{},size:o="small",...C})=>L.jsxs(Dl,{$disabled:n,$checked:a,$size:o,htmlFor:i,style:{"--switch-container-padding":v6[o].container,"--switch-pill-width":v6[o].pill,"--switch-inset-inline-start":a?"calc(100% - var(--switch-pill-width) - var(--switch-container-padding))":"var(--switch-container-padding)"},...C,children:[L.jsx("input",{name:t,id:i,disabled:n,checked:a,onChange:c,value:r,type:"checkbox"}),L.jsx("span",{})]}),Ol=({items:t=[{value:1,color:"blue"}],size:i=100,innerSize:a=30})=>{const n=u.useMemo(()=>Math.max(1,t.reduce((s,h)=>s+h.value,0)),[t]),r=u.useMemo(()=>t.length===1||t.some(s=>s.value>0),[t]);let c=0;const o=s=>{const h=Math.PI*2;return(s-90)*h/360},C=u.useCallback((s,h)=>{const m=o(s),p=o(h),g={x:i+i*Math.cos(p),y:i+i*Math.sin(p)},_={x:i+i*Math.cos(m),y:i+i*Math.sin(m)},E={x:i+a*Math.cos(m),y:i+a*Math.sin(m)},x={x:i+a*Math.cos(p),y:i+a*Math.sin(p)},v=h-s>180?1:0;return`
|
5956
5980
|
M ${g.x} ${g.y}
|
5957
5981
|
A ${i} ${i} 0 ${v} 0 ${_.x} ${_.y}
|
5958
5982
|
L ${E.x} ${E.y}
|
5959
|
-
A ${a} ${a} 0 ${v} 1 ${
|
5983
|
+
A ${a} ${a} 0 ${v} 1 ${x.x} ${x.y}
|
5960
5984
|
Z
|
5961
5985
|
`},[i,a]);return L.jsx("svg",{width:i*2,height:i*2,viewBox:`0 0 ${i*2} ${i*2}`,preserveAspectRatio:"xMidYMid meet",children:t.map((s,h)=>{const m=s.value/n*360,p=c+m-(r?9e-4:0),g=C(c,p);return c=p,L.jsx("path",{fill:s.color,d:g},h)})})},Nl=F.svg`
|
5962
5986
|
circle {
|
5963
5987
|
transition: cy 0.2s ease-in-out;
|
5964
5988
|
}
|
5965
|
-
`,Tl=({min:t=0,max:i=100,value:a=50,width:n="40px"})=>{const r=u.useMemo(()=>Math.random().toString(36).substring(2,15),[]),c=9,o=c*2,C=3,[s,h]=u.useState(0),[m,p]=u.useState(0),[g,_]=u.useState(0),E=u.useRef(null),
|
5989
|
+
`,Tl=({min:t=0,max:i=100,value:a=50,width:n="40px"})=>{const r=u.useMemo(()=>Math.random().toString(36).substring(2,15),[]),c=9,o=c*2,C=3,[s,h]=u.useState(0),[m,p]=u.useState(0),[g,_]=u.useState(0),E=u.useRef(null),x=u.useRef(null),v=u.useMemo(()=>m/2,[m]),$=u.useMemo(()=>{const R=o/2+C/2+2,M=g-(o/2+C/2)+2,y=Math.max(t,Math.min(i,a)),H=i-t,Z=H===0?.5:1-(y-t)/H,S=R+Z*(M-R);return isNaN(S)?R:S},[o,C,g,t,i,a]),B=u.useMemo(()=>{let R="0%",M="51.44%",y="100%";return t<=0&&i<=0&&(R="0%",M="0%",y="50%"),t>0&&i>0&&(R="30%",M="100%",y="0%"),{positive:R,neutral:M,negative:y}},[t,i]);return u.useEffect(()=>{E.current&&p(E.current.width.baseVal.value??E.current.getBoundingClientRect().width??28)},[E]),u.useEffect(()=>{if(x.current){const{height:R}=x.current.getBoundingClientRect();h(R),_(R-4)}},[x]),u.useEffect(()=>{if(x.current){const R=()=>{const y=x.current.getBoundingClientRect();y.height>0&&(h(y.height),_(y.height-4))},M=new ResizeObserver(R);return M.observe(x.current),()=>{M.disconnect()}}},[x]),u.useEffect(()=>{if(x.current&&s&&g&&E.current){const R=()=>{const y=E.current.width.baseVal.value??E.current.getBoundingClientRect().width;p(y??28)},M=new ResizeObserver(R);return M.observe(E.current),()=>{M.disconnect()}}},[g,s,E]),L.jsxs(Nl,{width:n,height:"100%",ref:x,children:[L.jsx("rect",{x:0,y:0,fill:l.gray_950,height:2,width:"100%"}),L.jsx("defs",{children:L.jsxs("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[L.jsx("stop",{offset:B.positive,stopColor:"#1BB18C"}),L.jsx("stop",{offset:B.neutral,stopColor:"#FFE106"}),L.jsx("stop",{offset:B.negative,stopColor:"#EF2A38"})]})}),L.jsx("rect",{ref:E,x:0,y:2,fill:`url(#${r})`,height:Math.max(s-4,0)+"px",width:"70%"}),L.jsx("rect",{x:0,y:`${s-2}`,fill:l.gray_950,height:2,width:"100%"}),L.jsx("circle",{cx:v,cy:$,r:c,fill:l.black,strokeWidth:C,stroke:l.white})]})};exports.Alert=He;exports.AppBranding=yl;exports.AutosaveStatus=Vl;exports.Bar=se;exports.BreadcrumbItem=$4;exports.Breadcrumbs=B4;exports.Button=E1;exports.ButtonLink=Ut;exports.Card=Sl;exports.Checkbox=F0;exports.CityPicker=It;exports.ConfigurationSaveInfo=V0;exports.Container=e0;exports.Content=L0;exports.ContentDropdown=jt;exports.CreditCard=qt;exports.DashboardCard=Jt;exports.DashboardCategory=Qt;exports.DashboardSmallShortcut=dt;exports.Datepicker=Xe;exports.Divider=ce;exports.DonutGraph=Ol;exports.Dropdown=C9;exports.Flex=h1;exports.FormField=p2;exports.GraficConfiguratiePensii=Rt;exports.GraficFondInvestitii=Et;exports.GraficFondInvestitiiInflatie=St;exports.GraficPensii=tt;exports.GraficPlanInvestitii=Ft;exports.GraficPropunerePensii=bt;exports.Icon=N;exports.IconButton=x1;exports.IconCard=Be;exports.Illustration=hl;exports.ImageCard=$e;exports.InPageTab=Ot;exports.InvestmentFundItem=ut;exports.LabeledText=R2;exports.LabeledTextInLine=Ll;exports.Layout=J4;exports.Logo=U6;exports.Modal=f2;exports.Numpad=h3;exports.ObjectiveCard=A0;exports.ObjectiveCardSmall=ne;exports.OfferCard=tl;exports.OperationsDashboardCard=Zl;exports.OperationsDashboardCategory=$l;exports.PageMessage=O0;exports.PageTitle=le;exports.Pill=p9;exports.PlanFinanciarAUMBar=ml;exports.PlanFinanciarAUMGraph=El;exports.PlanulFinanciarTeaser=D0;exports.ProductTeaser=M3;exports.ProductTeaserButton=e9;exports.ProductTeaserParameters=_e;exports.ProductTeaserStep=xe;exports.ProposalPensii=d9;exports.PropunereAsigurariCalatorie=E9;exports.PropunereFlexicredit=K6;exports.PropunereFondInvestitii=m9;exports.PropunerePlanInvestitii=f9;exports.Radio=at;exports.RatesCalculator=Gt;exports.Section=X6;exports.SegmentedTabs=h0;exports.SelectionButton=Ml;exports.SelectionPill=ft;exports.ShortcutCard=M0;exports.Sidebar=P2;exports.SidebarItem=U4;exports.Slider=Q0;exports.Spinner=W1;exports.StepTab=me;exports.StepsBar=u9;exports.Switch=zl;exports.Tab=p0;exports.TextInput=d2;exports.TimedButton=fe;exports.TimelineSteps=Bl;exports.TimelineStepsItem=Hl;exports.Timer=Pl;exports.VerticalHeat=Tl;exports.colors=l;
|
5966
5990
|
//# sourceMappingURL=index.cjs.js.map
|