profinansy-ui-lib 3.8.23 → 3.8.24
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.
|
@@ -6127,7 +6127,7 @@ Check the top-level render call using <`+q+">.")}return G}}function U2(M,G){{if(
|
|
|
6127
6127
|
background: ${e=>e.theme.stroke.secondary};
|
|
6128
6128
|
border-radius: 12px;
|
|
6129
6129
|
top: ${({thumbPosition:e})=>e}%;
|
|
6130
|
-
`;function gS({data:e,contentRef:t}){const[n,r]=m.useState(!1),[o,i]=m.useState(0),[a,l]=m.useState(0),[c,u]=m.useState(!1),[f,p]=m.useState(0),[C,g]=m.useState(0),v=w=>{u(!0),p(w.clientY),g(a)},b=w=>{if(!c||!t.current)return;const{scrollHeight:I,clientHeight:k}=t.current,S=I-k,L=100-o,$=w.clientY-f,D=Math.min(Math.max(C+$/k*100,0),L);l(D),t.current.scrollTop=D/L*S},x=()=>{u(!1)},y=()=>{if(t.current){const{clientHeight:w,scrollHeight:I}=t.current,k=w/I;i(k*100)}},E=w=>{t.current&&t.current.scrollBy({top:w==="up"?-300:300,behavior:"smooth"})};return m.useEffect(()=>{const w=()=>{const k=t.current;if(k){const{scrollTop:S,scrollHeight:L,clientHeight:$}=k,D=L-$,j=S/D;l(j*(100-o))}},I=t.current;if(I)return y(),I.addEventListener("scroll",w),()=>{I.removeEventListener("scroll",w)}},[t,e,o]),m.useEffect(()=>(c?(document.addEventListener("mousemove",b),document.addEventListener("mouseup",x)):(document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",x)),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",x)}),[c]),m.useEffect(()=>{const w=t.current;w&&w.scrollHeight-w.clientHeight>0&&r(!0)},[e,t]),n?s.jsxs(pS,{children:[s.jsx(M1,{onClick:()=>E("up"),size:"M",style:{transform:"rotate(90deg)"}}),s.jsx(hS,{children:s.jsx(mS,{onMouseDown:v,thumbHeight:o,thumbPosition:a})}),s.jsx(M1,{onClick:()=>E("down"),size:"M",style:{transform:"rotate(-90deg)"}})]}):null}function CS({columns:e,tCellRenderer:t,columnRenderer:n,RowWrapper:r,RowWrapperExpand:o,data:i,tableHeight:a,isLoading:l=!1,loadingAmountRow:c=20,hints:u,rowHeight:f,stickyFirstColumn:p,stickyLastColumn:C,stickyHeader:g,stickyPageHeader:v,isDraggable:b,customSort:x,onScrollEndReach:y,fixedHeaderOffset:E,isScrollWithButton:w,onClickRow:I,onDoubleClickRow:k,onHoverRow:S,onColumnsReorder:L,pagination:$}){const D=m.useRef(null),j=m.useRef(null),{lastRowRef:F}=E4(y),{mode:R}=ne(),{sortedData:V,handleSort:H,activeSortField:B,activeSortOrder:T}=dS(i,x),{isScrolled:_,isScrolledEnd:P}=cS(D,p,C),A=m.useMemo(()=>{if(x)return i;if($){const{currentPage:oe,amount:Y}=$,te=oe*Y,Q=te+Y;return V.slice(te,Q)}return V},[x,i,V]),{reachedTop:W,tableWidth:Z,tableLeftPosition:X}=fS(v,E,i,e,D,j,F),{isStartDragging:he}=k4(D,b,!!L),re=()=>s.jsxs(WL,{$tableHeight:a,ref:D,$isDraggable:b,$isStartDragging:he,children:[s.jsxs(GL,{children:[s.jsx(T5,{onColumnsReorder:L,activeSortField:B,activeSortOrder:T,handleSort:H,columns:e,hints:u,isScrolled:_,isScrolledEnd:P,stickyFirstColumn:p,stickyLastColumn:C,stickyHeader:g,columnRenderer:n}),s.jsx(eS,{isLoading:l,loadingAmountRow:c,stickyFirstColumn:p,stickyLastColumn:C,isScrolled:_,isScrolledEnd:P,isStartDragging:he,columns:e,data:A,tCellRenderer:t,RowWrapper:r,RowWrapperExpand:o,rowHeight:f,onClickRow:I,onHoverRow:S,onDoubleClickRow:k}),v&&W&&s.jsxs(YL,{ref:j,fixedHeaderOffset:E,tableWidth:Z,left:X,children:[s.jsx(zL,{}),s.jsx(T5,{onColumnsReorder:L,activeSortField:B,activeSortOrder:T,handleSort:H,columns:e,hints:u,isScrolled:_,isScrolledEnd:P,stickyFirstColumn:p,stickyLastColumn:C,stickyHeader:g,columnRenderer:n})]})]}),s.jsx("div",{ref:F})]});return w?s.jsx(h.ThemeProvider,{theme:J[R],children:s.jsxs(XL,{children:[re(),s.jsx(gS,{contentRef:D,data:A})]})}):s.jsx(h.ThemeProvider,{theme:J[R],children:re()})}const vS=({children:e,hiddenText:t,style:n,className:r,valueNumber:o,nowrap:i})=>{const a={};return i&&(a.whiteSpace="nowrap"),t?s.jsx($1,{...t,children:s.jsx(O,{variant:"caption-Medium",tag:"span",colorName:"primary",valueNumber:o,className:Be(r,"TCellText"),...a,...n,children:e})}):s.jsx(O,{variant:"caption-Medium",tag:"span",colorName:"primary",valueNumber:o,className:Be(r,"TCellText"),...a,...n,children:e})},bS=e=>d.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.9339 2.76304L6.92684 2.77034C6.58005 3.12802 6.58005 3.71609 6.92684 4.07377L12.1778 9.4898C12.4512 9.77175 12.4512 10.2303 12.1778 10.5123L6.92683 15.9283C6.58005 16.286 6.58005 16.8741 6.92683 17.2317C7.27362 17.5894 7.84377 17.5894 8.19055 17.2317L13.4416 11.8157C14.4085 10.8184 14.4085 9.18367 13.4416 8.18637L8.19055 2.77034C8.01251 2.5867 7.78446 2.5 7.55869 2.5C7.3244 2.5 7.10238 2.60086 6.9339 2.76304Z",fill:"#6553F5"})),xS=e=>s.jsx(cn,{...e,iconRight:s.jsx(bS,{})});function A4(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var A1;(function(e){e.event="event",e.props="prop"})(A1||(A1={}));function An(){}function yS(e){var t,n=void 0;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t&&r.length===t.length&&r.every(function(i,a){return i===t[a]})||(t=r,n=e.apply(void 0,r)),n}}function T1(e){return!!(e||"").match(/\d/)}function Rr(e){return e==null}function wS(e){return typeof e=="number"&&isNaN(e)}function T4(e){return Rr(e)||wS(e)||typeof e=="number"&&!isFinite(e)}function R4(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ES(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function kS(e,t,n){var r=ES(n),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}function IS(e){var t=m.useRef(e);t.current=e;var n=m.useRef(function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t.current.apply(t,r)});return n.current}function M2(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var o=e.split("."),i=o[0],a=o[1]||"";return{beforeDecimal:i,afterDecimal:a,hasNegation:n,addNegation:r}}function MS(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}function P4(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function R5(e,t){return Array(t+1).join(e)}function H4(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(i=Number(i),!i)return n+o;o=o.replace(".","");var a=1+i,l=o.length;return a<0?o="0."+R5("0",Math.abs(a))+o:a>=l?o=o+R5("0",a-l):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function P5(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=M2(e),i=o.beforeDecimal,a=o.afterDecimal,l=o.hasNegation,c=parseFloat("0."+(a||"0")),u=a.length<=t?"0."+a:c.toFixed(t),f=u.split("."),p=i;i&&Number(f[0])&&(p=i.split("").reverse().reduce(function(b,x,y){return b.length>y?(Number(b[0])+Number(x)).toString()+b.substring(1,b.length):x+b},f[0]));var C=P4(f[1]||"",t,n),g=l?"-":"",v=r?".":"";return""+g+p+v+C}function Xn(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var j4=yS(function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}}),LS=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function SS(e,t,n){return Math.min(Math.max(e,t),n)}function Ca(e){return Math.max(e.selectionStart,e.selectionEnd)}function $S(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function DS(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function _S(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function AS(e,t,n,r,o,i,a){a===void 0&&(a=_S);var l=o.findIndex(function(I){return I}),c=e.slice(0,l);!t&&!n.startsWith(c)&&(t=c,n=c+n,r=r+c.length);for(var u=n.length,f=e.length,p={},C=new Array(u),g=0;g<u;g++){C[g]=-1;for(var v=0,b=f;v<b;v++){var x=a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:g,formattedValueIndex:v});if(x&&p[v]!==!0){C[g]=v,p[v]=!0;break}}}for(var y=r;y<u&&(C[y]===-1||!i(n[y]));)y++;var E=y===u||C[y]===-1?f:C[y];for(y=r-1;y>0&&C[y]===-1;)y--;var w=y===-1||C[y]===-1?0:C[y]+1;return w>E?E:r-w<E-r?w:E}function H5(e,t,n,r){var o=e.length;if(t=SS(t,0,o),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function TS(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(T1(e[n])||T1(e[n-1]));return t}function B4(e,t,n,r,o,i){i===void 0&&(i=An);var a=IS(function(v,b){var x,y;return T4(v)?(y="",x=""):typeof v=="number"||b?(y=typeof v=="number"?H4(v):v,x=r(y)):(y=o(v,void 0),x=r(y)),{formattedValue:x,numAsString:y}}),l=m.useState(function(){return a(Rr(e)?t:e,n)}),c=l[0],u=l[1],f=function(v,b){v.formattedValue!==c.formattedValue&&u({formattedValue:v.formattedValue,numAsString:v.value}),i(v,b)},p=e,C=n;Rr(e)&&(p=c.numAsString,C=!0);var g=a(p,C);return m.useMemo(function(){u(g)},[g.formattedValue]),[c,f]}function RS(e){return e.replace(/[^0-9]/g,"")}function PS(e){return e}function HS(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,o=e.renderText,i=e.getInputRef,a=e.format;a===void 0&&(a=PS);var l=e.removeFormatting;l===void 0&&(l=RS);var c=e.defaultValue,u=e.valueIsNumericString,f=e.onValueChange,p=e.isAllowed,C=e.onChange;C===void 0&&(C=An);var g=e.onKeyDown;g===void 0&&(g=An);var v=e.onMouseUp;v===void 0&&(v=An);var b=e.onFocus;b===void 0&&(b=An);var x=e.onBlur;x===void 0&&(x=An);var y=e.value,E=e.getCaretBoundary;E===void 0&&(E=TS);var w=e.isValidInputCharacter;w===void 0&&(w=T1);var I=e.isCharacterSame,k=A4(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=B4(y,c,!!u,a,l,f),L=S[0],$=L.formattedValue,D=L.numAsString,j=S[1],F=m.useRef(),R=m.useRef({formattedValue:$,numAsString:D}),V=function(ee,ie){R.current={formattedValue:ee.formattedValue,numAsString:ee.value},j(ee,ie)},H=m.useState(!1),B=H[0],T=H[1],_=m.useRef(null),P=m.useRef({setCaretTimeout:null,focusTimeout:null});m.useEffect(function(){return T(!0),function(){clearTimeout(P.current.setCaretTimeout),clearTimeout(P.current.focusTimeout)}},[]);var A=a,W=function(ee,ie){var pe=parseFloat(ie);return{formattedValue:ee,value:ie,floatValue:isNaN(pe)?void 0:pe}},Z=function(ee,ie,pe){ee.selectionStart===0&&ee.selectionEnd===ee.value.length||(Xn(ee,ie),P.current.setCaretTimeout=setTimeout(function(){ee.value===pe&&ee.selectionStart!==ie&&Xn(ee,ie)},0))},X=function(ee,ie,pe){return H5(ee,ie,E(ee),pe)},he=function(ee,ie,pe){var Ne=E(ie),ct=AS(ie,$,ee,pe,Ne,w,I);return ct=H5(ie,ct,Ne),ct},re=function(ee){var ie=ee.formattedValue;ie===void 0&&(ie="");var pe=ee.input,Ne=ee.source,ct=ee.event,Fe=ee.numAsString,Te;if(pe){var jt=ee.inputValue||pe.value,Bt=Ca(pe);pe.value=ie,Te=he(jt,ie,Bt),Te!==void 0&&Z(pe,Te,ie)}ie!==$&&V(W(ie,Fe),{event:ct,source:Ne})};m.useEffect(function(){var ee=R.current,ie=ee.formattedValue,pe=ee.numAsString;($!==ie||D!==pe)&&V(W($,D),{event:void 0,source:A1.props})},[$,D]);var oe=_.current?Ca(_.current):void 0,Y=typeof window<"u"?m.useLayoutEffect:m.useEffect;Y(function(){var ee=_.current;if($!==R.current.formattedValue&&ee){var ie=he(R.current.formattedValue,$,oe);ee.value=$,Z(ee,ie,$)}},[$]);var te=function(ee,ie,pe){var Ne=ie.target,ct=F.current?LS(F.current,Ne.selectionEnd):j4($,ee),Fe=Object.assign(Object.assign({},ct),{lastValue:$}),Te=l(ee,Fe),jt=A(Te);if(Te=l(jt,void 0),p&&!p(W(jt,Te))){var Bt=ie.target,Ft=Ca(Bt),vr=he(ee,$,Ft);return Bt.value=$,Z(Bt,vr,$),!1}return re({formattedValue:jt,numAsString:Te,inputValue:ee,event:ie,source:pe,input:ie.target}),!0},Q=function(ee,ie){ie===void 0&&(ie=0);var pe=ee.selectionStart,Ne=ee.selectionEnd;F.current={selectionStart:pe,selectionEnd:Ne+ie}},de=function(ee){var ie=ee.target,pe=ie.value,Ne=te(pe,ee,A1.event);Ne&&C(ee),F.current=void 0},xe=function(ee){var ie=ee.target,pe=ee.key,Ne=ie.selectionStart,ct=ie.selectionEnd,Fe=ie.value;Fe===void 0&&(Fe="");var Te;pe==="ArrowLeft"||pe==="Backspace"?Te=Math.max(Ne-1,0):pe==="ArrowRight"?Te=Math.min(Ne+1,Fe.length):pe==="Delete"&&(Te=Ne);var jt=0;pe==="Delete"&&Ne===ct&&(jt=1);var Bt=pe==="ArrowLeft"||pe==="ArrowRight";if(Te===void 0||Ne!==ct&&!Bt){g(ee),Q(ie,jt);return}var Ft=Te;if(Bt){var vr=pe==="ArrowLeft"?"left":"right";Ft=X(Fe,Te,vr),Ft!==Te&&ee.preventDefault()}else pe==="Delete"&&!w(Fe[Te])?Ft=X(Fe,Te,"right"):pe==="Backspace"&&!w(Fe[Te])&&(Ft=X(Fe,Te,"left"));Ft!==Te&&Z(ie,Ft,Fe),g(ee),Q(ie,jt)},Ve=function(ee){var ie=ee.target,pe=function(){var Ne=ie.selectionStart,ct=ie.selectionEnd,Fe=ie.value;if(Fe===void 0&&(Fe=""),Ne===ct){var Te=X(Fe,Ne);Te!==Ne&&Z(ie,Te,Fe)}};pe(),requestAnimationFrame(function(){pe()}),v(ee),Q(ie)},z=function(ee){ee.persist&&ee.persist();var ie=ee.target,pe=ee.currentTarget;_.current=ie,P.current.focusTimeout=setTimeout(function(){var Ne=ie.selectionStart,ct=ie.selectionEnd,Fe=ie.value;Fe===void 0&&(Fe="");var Te=X(Fe,Ne);Te!==Ne&&!(Ne===0&&ct===Fe.length)&&Z(ie,Te,Fe),b(Object.assign(Object.assign({},ee),{currentTarget:pe}))},0)},kt=function(ee){_.current=null,clearTimeout(P.current.focusTimeout),clearTimeout(P.current.setCaretTimeout),x(ee)},lt=B&&$S()?"numeric":void 0,Xe=Object.assign({inputMode:lt},k,{type:t,value:$,onChange:de,onKeyDown:xe,onMouseUp:Ve,onFocus:z,onBlur:kt});if(n==="text")return o?m.createElement(m.Fragment,null,o($,k)||null):m.createElement("span",Object.assign({},k,{ref:i}),$);if(r){var Yt=r;return m.createElement(Yt,Object.assign({},Xe,{ref:i}))}return m.createElement("input",Object.assign({},Xe,{ref:i}))}function j5(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var i=t.suffix;i===void 0&&(i="");var a=t.allowNegative,l=t.thousandsGroupStyle;if(l===void 0&&(l="thousand"),e===""||e==="-")return e;var c=Ti(t),u=c.thousandSeparator,f=c.decimalSeparator,p=n!==0&&e.indexOf(".")!==-1||n&&r,C=M2(e,a),g=C.beforeDecimal,v=C.afterDecimal,b=C.addNegation;return n!==void 0&&(v=P4(v,n,!!r)),u&&(g=kS(g,u,l)),o&&(g=o+g),i&&(v=v+i),b&&(g="-"+g),e=g+(p&&f||"")+v,e}function Ti(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function jS(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}function BS(e,t){return new RegExp("(^-)|[0-9]|"+R4(e),"g")}function FS(e,t,n){return e===""?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function VS(e,t,n){var r;t===void 0&&(t=DS(e));var o=n.allowNegative,i=n.prefix;i===void 0&&(i="");var a=n.suffix;a===void 0&&(a="");var l=n.decimalScale,c=t.from,u=t.to,f=u.start,p=u.end,C=Ti(n),g=C.allowedDecimalSeparators,v=C.decimalSeparator,b=e[p]===v;if(T1(e)&&(e===i||e===a)&&t.lastValue==="")return e;if(p-f===1&&g.indexOf(e[f])!==-1){var x=l===0?"":v;e=e.substring(0,f)+x+e.substring(f+1,e.length)}var y=function(_,P,A){var W=!1,Z=!1;i.startsWith("-")?W=!1:_.startsWith("--")?(W=!1,Z=!0):a.startsWith("-")&&_.length===a.length?W=!1:_[0]==="-"&&(W=!0);var X=W?1:0;return Z&&(X=2),X&&(_=_.substring(X),P-=X,A-=X),{value:_,start:P,end:A,hasNegation:W}},E=y(e,f,p),w=E.hasNegation;r=E,e=r.value,f=r.start,p=r.end;var I=y(t.lastValue,c.start,c.end),k=I.start,S=I.end,L=I.value,$=e.substring(f,p);e.length&&L.length&&(k>L.length-a.length||S<i.length)&&!($&&a.startsWith($))&&(e=L);var D=0;e.startsWith(i)?D+=i.length:f<i.length&&(D=f),e=e.substring(D),p-=D;var j=e.length,F=e.length-a.length;e.endsWith(a)?j=F:(p>F||p>e.length-a.length)&&(j=p),e=e.substring(0,j),e=jS(w?"-"+e:e,o),e=(e.match(BS(v))||[]).join("");var R=e.indexOf(v);e=e.replace(new RegExp(R4(v),"g"),function(_,P){return P===R?".":""});var V=M2(e,o),H=V.beforeDecimal,B=V.afterDecimal,T=V.addNegation;return u.end-u.start<c.end-c.start&&H===""&&b&&!parseFloat(B)&&(e=T?"-":""),e}function OS(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var o=Array.from({length:e.length+1}).map(function(){return!0}),i=e[0]==="-";o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}function NS(e){var t=Ti(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var i=e.allowNegative;if(i===void 0&&(i=!0),n===r)throw new Error(`
|
|
6130
|
+
`;function gS({data:e,contentRef:t}){const[n,r]=m.useState(!1),[o,i]=m.useState(0),[a,l]=m.useState(0),[c,u]=m.useState(!1),[f,p]=m.useState(0),[C,g]=m.useState(0),v=w=>{u(!0),p(w.clientY),g(a)},b=w=>{if(!c||!t.current)return;const{scrollHeight:I,clientHeight:k}=t.current,S=I-k,L=100-o,$=w.clientY-f,D=Math.min(Math.max(C+$/k*100,0),L);l(D),t.current.scrollTop=D/L*S},x=()=>{u(!1)},y=()=>{if(t.current){const{clientHeight:w,scrollHeight:I}=t.current,k=w/I;i(k*100)}},E=w=>{t.current&&t.current.scrollBy({top:w==="up"?-300:300,behavior:"smooth"})};return m.useEffect(()=>{const w=()=>{const k=t.current;if(k){const{scrollTop:S,scrollHeight:L,clientHeight:$}=k,D=L-$,j=S/D;l(j*(100-o))}},I=t.current;if(I)return y(),I.addEventListener("scroll",w),()=>{I.removeEventListener("scroll",w)}},[t,e,o]),m.useEffect(()=>(c?(document.addEventListener("mousemove",b),document.addEventListener("mouseup",x)):(document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",x)),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",x)}),[c]),m.useEffect(()=>{const w=t.current;w&&w.scrollHeight-w.clientHeight>0&&r(!0)},[e,t]),n?s.jsxs(pS,{children:[s.jsx(M1,{onClick:()=>E("up"),size:"M",style:{transform:"rotate(90deg)"}}),s.jsx(hS,{children:s.jsx(mS,{onMouseDown:v,thumbHeight:o,thumbPosition:a})}),s.jsx(M1,{onClick:()=>E("down"),size:"M",style:{transform:"rotate(-90deg)"}})]}):null}function CS({columns:e,tCellRenderer:t,columnRenderer:n,RowWrapper:r,RowWrapperExpand:o,data:i,tableHeight:a,isLoading:l=!1,loadingAmountRow:c=20,hints:u,rowHeight:f,stickyFirstColumn:p,stickyLastColumn:C,stickyHeader:g,stickyPageHeader:v,isDraggable:b,customSort:x,onScrollEndReach:y,fixedHeaderOffset:E,isScrollWithButton:w,onClickRow:I,onDoubleClickRow:k,onHoverRow:S,onColumnsReorder:L,pagination:$}){const D=m.useRef(null),j=m.useRef(null),{lastRowRef:F}=E4(y),{mode:R}=ne(),{sortedData:V,handleSort:H,activeSortField:B,activeSortOrder:T}=dS(i,x),{isScrolled:_,isScrolledEnd:P}=cS(D,p,C),A=m.useMemo(()=>{if(x)return i;if($){const{currentPage:oe,amount:Y}=$,te=oe*Y,Q=te+Y;return V.slice(te,Q)}return V},[x,i,V,$]),{reachedTop:W,tableWidth:Z,tableLeftPosition:X}=fS(v,E,i,e,D,j,F),{isStartDragging:he}=k4(D,b,!!L),re=()=>s.jsxs(WL,{$tableHeight:a,ref:D,$isDraggable:b,$isStartDragging:he,children:[s.jsxs(GL,{children:[s.jsx(T5,{onColumnsReorder:L,activeSortField:B,activeSortOrder:T,handleSort:H,columns:e,hints:u,isScrolled:_,isScrolledEnd:P,stickyFirstColumn:p,stickyLastColumn:C,stickyHeader:g,columnRenderer:n}),s.jsx(eS,{isLoading:l,loadingAmountRow:c,stickyFirstColumn:p,stickyLastColumn:C,isScrolled:_,isScrolledEnd:P,isStartDragging:he,columns:e,data:A,tCellRenderer:t,RowWrapper:r,RowWrapperExpand:o,rowHeight:f,onClickRow:I,onHoverRow:S,onDoubleClickRow:k}),v&&W&&s.jsxs(YL,{ref:j,fixedHeaderOffset:E,tableWidth:Z,left:X,children:[s.jsx(zL,{}),s.jsx(T5,{onColumnsReorder:L,activeSortField:B,activeSortOrder:T,handleSort:H,columns:e,hints:u,isScrolled:_,isScrolledEnd:P,stickyFirstColumn:p,stickyLastColumn:C,stickyHeader:g,columnRenderer:n})]})]}),s.jsx("div",{ref:F})]});return w?s.jsx(h.ThemeProvider,{theme:J[R],children:s.jsxs(XL,{children:[re(),s.jsx(gS,{contentRef:D,data:A})]})}):s.jsx(h.ThemeProvider,{theme:J[R],children:re()})}const vS=({children:e,hiddenText:t,style:n,className:r,valueNumber:o,nowrap:i})=>{const a={};return i&&(a.whiteSpace="nowrap"),t?s.jsx($1,{...t,children:s.jsx(O,{variant:"caption-Medium",tag:"span",colorName:"primary",valueNumber:o,className:Be(r,"TCellText"),...a,...n,children:e})}):s.jsx(O,{variant:"caption-Medium",tag:"span",colorName:"primary",valueNumber:o,className:Be(r,"TCellText"),...a,...n,children:e})},bS=e=>d.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.9339 2.76304L6.92684 2.77034C6.58005 3.12802 6.58005 3.71609 6.92684 4.07377L12.1778 9.4898C12.4512 9.77175 12.4512 10.2303 12.1778 10.5123L6.92683 15.9283C6.58005 16.286 6.58005 16.8741 6.92683 17.2317C7.27362 17.5894 7.84377 17.5894 8.19055 17.2317L13.4416 11.8157C14.4085 10.8184 14.4085 9.18367 13.4416 8.18637L8.19055 2.77034C8.01251 2.5867 7.78446 2.5 7.55869 2.5C7.3244 2.5 7.10238 2.60086 6.9339 2.76304Z",fill:"#6553F5"})),xS=e=>s.jsx(cn,{...e,iconRight:s.jsx(bS,{})});function A4(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var A1;(function(e){e.event="event",e.props="prop"})(A1||(A1={}));function An(){}function yS(e){var t,n=void 0;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t&&r.length===t.length&&r.every(function(i,a){return i===t[a]})||(t=r,n=e.apply(void 0,r)),n}}function T1(e){return!!(e||"").match(/\d/)}function Rr(e){return e==null}function wS(e){return typeof e=="number"&&isNaN(e)}function T4(e){return Rr(e)||wS(e)||typeof e=="number"&&!isFinite(e)}function R4(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ES(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function kS(e,t,n){var r=ES(n),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}function IS(e){var t=m.useRef(e);t.current=e;var n=m.useRef(function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t.current.apply(t,r)});return n.current}function M2(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var o=e.split("."),i=o[0],a=o[1]||"";return{beforeDecimal:i,afterDecimal:a,hasNegation:n,addNegation:r}}function MS(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}function P4(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function R5(e,t){return Array(t+1).join(e)}function H4(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(i=Number(i),!i)return n+o;o=o.replace(".","");var a=1+i,l=o.length;return a<0?o="0."+R5("0",Math.abs(a))+o:a>=l?o=o+R5("0",a-l):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function P5(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=M2(e),i=o.beforeDecimal,a=o.afterDecimal,l=o.hasNegation,c=parseFloat("0."+(a||"0")),u=a.length<=t?"0."+a:c.toFixed(t),f=u.split("."),p=i;i&&Number(f[0])&&(p=i.split("").reverse().reduce(function(b,x,y){return b.length>y?(Number(b[0])+Number(x)).toString()+b.substring(1,b.length):x+b},f[0]));var C=P4(f[1]||"",t,n),g=l?"-":"",v=r?".":"";return""+g+p+v+C}function Xn(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var j4=yS(function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}}),LS=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function SS(e,t,n){return Math.min(Math.max(e,t),n)}function Ca(e){return Math.max(e.selectionStart,e.selectionEnd)}function $S(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function DS(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function _S(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function AS(e,t,n,r,o,i,a){a===void 0&&(a=_S);var l=o.findIndex(function(I){return I}),c=e.slice(0,l);!t&&!n.startsWith(c)&&(t=c,n=c+n,r=r+c.length);for(var u=n.length,f=e.length,p={},C=new Array(u),g=0;g<u;g++){C[g]=-1;for(var v=0,b=f;v<b;v++){var x=a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:g,formattedValueIndex:v});if(x&&p[v]!==!0){C[g]=v,p[v]=!0;break}}}for(var y=r;y<u&&(C[y]===-1||!i(n[y]));)y++;var E=y===u||C[y]===-1?f:C[y];for(y=r-1;y>0&&C[y]===-1;)y--;var w=y===-1||C[y]===-1?0:C[y]+1;return w>E?E:r-w<E-r?w:E}function H5(e,t,n,r){var o=e.length;if(t=SS(t,0,o),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function TS(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(T1(e[n])||T1(e[n-1]));return t}function B4(e,t,n,r,o,i){i===void 0&&(i=An);var a=IS(function(v,b){var x,y;return T4(v)?(y="",x=""):typeof v=="number"||b?(y=typeof v=="number"?H4(v):v,x=r(y)):(y=o(v,void 0),x=r(y)),{formattedValue:x,numAsString:y}}),l=m.useState(function(){return a(Rr(e)?t:e,n)}),c=l[0],u=l[1],f=function(v,b){v.formattedValue!==c.formattedValue&&u({formattedValue:v.formattedValue,numAsString:v.value}),i(v,b)},p=e,C=n;Rr(e)&&(p=c.numAsString,C=!0);var g=a(p,C);return m.useMemo(function(){u(g)},[g.formattedValue]),[c,f]}function RS(e){return e.replace(/[^0-9]/g,"")}function PS(e){return e}function HS(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,o=e.renderText,i=e.getInputRef,a=e.format;a===void 0&&(a=PS);var l=e.removeFormatting;l===void 0&&(l=RS);var c=e.defaultValue,u=e.valueIsNumericString,f=e.onValueChange,p=e.isAllowed,C=e.onChange;C===void 0&&(C=An);var g=e.onKeyDown;g===void 0&&(g=An);var v=e.onMouseUp;v===void 0&&(v=An);var b=e.onFocus;b===void 0&&(b=An);var x=e.onBlur;x===void 0&&(x=An);var y=e.value,E=e.getCaretBoundary;E===void 0&&(E=TS);var w=e.isValidInputCharacter;w===void 0&&(w=T1);var I=e.isCharacterSame,k=A4(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=B4(y,c,!!u,a,l,f),L=S[0],$=L.formattedValue,D=L.numAsString,j=S[1],F=m.useRef(),R=m.useRef({formattedValue:$,numAsString:D}),V=function(ee,ie){R.current={formattedValue:ee.formattedValue,numAsString:ee.value},j(ee,ie)},H=m.useState(!1),B=H[0],T=H[1],_=m.useRef(null),P=m.useRef({setCaretTimeout:null,focusTimeout:null});m.useEffect(function(){return T(!0),function(){clearTimeout(P.current.setCaretTimeout),clearTimeout(P.current.focusTimeout)}},[]);var A=a,W=function(ee,ie){var pe=parseFloat(ie);return{formattedValue:ee,value:ie,floatValue:isNaN(pe)?void 0:pe}},Z=function(ee,ie,pe){ee.selectionStart===0&&ee.selectionEnd===ee.value.length||(Xn(ee,ie),P.current.setCaretTimeout=setTimeout(function(){ee.value===pe&&ee.selectionStart!==ie&&Xn(ee,ie)},0))},X=function(ee,ie,pe){return H5(ee,ie,E(ee),pe)},he=function(ee,ie,pe){var Ne=E(ie),ct=AS(ie,$,ee,pe,Ne,w,I);return ct=H5(ie,ct,Ne),ct},re=function(ee){var ie=ee.formattedValue;ie===void 0&&(ie="");var pe=ee.input,Ne=ee.source,ct=ee.event,Fe=ee.numAsString,Te;if(pe){var jt=ee.inputValue||pe.value,Bt=Ca(pe);pe.value=ie,Te=he(jt,ie,Bt),Te!==void 0&&Z(pe,Te,ie)}ie!==$&&V(W(ie,Fe),{event:ct,source:Ne})};m.useEffect(function(){var ee=R.current,ie=ee.formattedValue,pe=ee.numAsString;($!==ie||D!==pe)&&V(W($,D),{event:void 0,source:A1.props})},[$,D]);var oe=_.current?Ca(_.current):void 0,Y=typeof window<"u"?m.useLayoutEffect:m.useEffect;Y(function(){var ee=_.current;if($!==R.current.formattedValue&&ee){var ie=he(R.current.formattedValue,$,oe);ee.value=$,Z(ee,ie,$)}},[$]);var te=function(ee,ie,pe){var Ne=ie.target,ct=F.current?LS(F.current,Ne.selectionEnd):j4($,ee),Fe=Object.assign(Object.assign({},ct),{lastValue:$}),Te=l(ee,Fe),jt=A(Te);if(Te=l(jt,void 0),p&&!p(W(jt,Te))){var Bt=ie.target,Ft=Ca(Bt),vr=he(ee,$,Ft);return Bt.value=$,Z(Bt,vr,$),!1}return re({formattedValue:jt,numAsString:Te,inputValue:ee,event:ie,source:pe,input:ie.target}),!0},Q=function(ee,ie){ie===void 0&&(ie=0);var pe=ee.selectionStart,Ne=ee.selectionEnd;F.current={selectionStart:pe,selectionEnd:Ne+ie}},de=function(ee){var ie=ee.target,pe=ie.value,Ne=te(pe,ee,A1.event);Ne&&C(ee),F.current=void 0},xe=function(ee){var ie=ee.target,pe=ee.key,Ne=ie.selectionStart,ct=ie.selectionEnd,Fe=ie.value;Fe===void 0&&(Fe="");var Te;pe==="ArrowLeft"||pe==="Backspace"?Te=Math.max(Ne-1,0):pe==="ArrowRight"?Te=Math.min(Ne+1,Fe.length):pe==="Delete"&&(Te=Ne);var jt=0;pe==="Delete"&&Ne===ct&&(jt=1);var Bt=pe==="ArrowLeft"||pe==="ArrowRight";if(Te===void 0||Ne!==ct&&!Bt){g(ee),Q(ie,jt);return}var Ft=Te;if(Bt){var vr=pe==="ArrowLeft"?"left":"right";Ft=X(Fe,Te,vr),Ft!==Te&&ee.preventDefault()}else pe==="Delete"&&!w(Fe[Te])?Ft=X(Fe,Te,"right"):pe==="Backspace"&&!w(Fe[Te])&&(Ft=X(Fe,Te,"left"));Ft!==Te&&Z(ie,Ft,Fe),g(ee),Q(ie,jt)},Ve=function(ee){var ie=ee.target,pe=function(){var Ne=ie.selectionStart,ct=ie.selectionEnd,Fe=ie.value;if(Fe===void 0&&(Fe=""),Ne===ct){var Te=X(Fe,Ne);Te!==Ne&&Z(ie,Te,Fe)}};pe(),requestAnimationFrame(function(){pe()}),v(ee),Q(ie)},z=function(ee){ee.persist&&ee.persist();var ie=ee.target,pe=ee.currentTarget;_.current=ie,P.current.focusTimeout=setTimeout(function(){var Ne=ie.selectionStart,ct=ie.selectionEnd,Fe=ie.value;Fe===void 0&&(Fe="");var Te=X(Fe,Ne);Te!==Ne&&!(Ne===0&&ct===Fe.length)&&Z(ie,Te,Fe),b(Object.assign(Object.assign({},ee),{currentTarget:pe}))},0)},kt=function(ee){_.current=null,clearTimeout(P.current.focusTimeout),clearTimeout(P.current.setCaretTimeout),x(ee)},lt=B&&$S()?"numeric":void 0,Xe=Object.assign({inputMode:lt},k,{type:t,value:$,onChange:de,onKeyDown:xe,onMouseUp:Ve,onFocus:z,onBlur:kt});if(n==="text")return o?m.createElement(m.Fragment,null,o($,k)||null):m.createElement("span",Object.assign({},k,{ref:i}),$);if(r){var Yt=r;return m.createElement(Yt,Object.assign({},Xe,{ref:i}))}return m.createElement("input",Object.assign({},Xe,{ref:i}))}function j5(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var i=t.suffix;i===void 0&&(i="");var a=t.allowNegative,l=t.thousandsGroupStyle;if(l===void 0&&(l="thousand"),e===""||e==="-")return e;var c=Ti(t),u=c.thousandSeparator,f=c.decimalSeparator,p=n!==0&&e.indexOf(".")!==-1||n&&r,C=M2(e,a),g=C.beforeDecimal,v=C.afterDecimal,b=C.addNegation;return n!==void 0&&(v=P4(v,n,!!r)),u&&(g=kS(g,u,l)),o&&(g=o+g),i&&(v=v+i),b&&(g="-"+g),e=g+(p&&f||"")+v,e}function Ti(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function jS(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}function BS(e,t){return new RegExp("(^-)|[0-9]|"+R4(e),"g")}function FS(e,t,n){return e===""?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function VS(e,t,n){var r;t===void 0&&(t=DS(e));var o=n.allowNegative,i=n.prefix;i===void 0&&(i="");var a=n.suffix;a===void 0&&(a="");var l=n.decimalScale,c=t.from,u=t.to,f=u.start,p=u.end,C=Ti(n),g=C.allowedDecimalSeparators,v=C.decimalSeparator,b=e[p]===v;if(T1(e)&&(e===i||e===a)&&t.lastValue==="")return e;if(p-f===1&&g.indexOf(e[f])!==-1){var x=l===0?"":v;e=e.substring(0,f)+x+e.substring(f+1,e.length)}var y=function(_,P,A){var W=!1,Z=!1;i.startsWith("-")?W=!1:_.startsWith("--")?(W=!1,Z=!0):a.startsWith("-")&&_.length===a.length?W=!1:_[0]==="-"&&(W=!0);var X=W?1:0;return Z&&(X=2),X&&(_=_.substring(X),P-=X,A-=X),{value:_,start:P,end:A,hasNegation:W}},E=y(e,f,p),w=E.hasNegation;r=E,e=r.value,f=r.start,p=r.end;var I=y(t.lastValue,c.start,c.end),k=I.start,S=I.end,L=I.value,$=e.substring(f,p);e.length&&L.length&&(k>L.length-a.length||S<i.length)&&!($&&a.startsWith($))&&(e=L);var D=0;e.startsWith(i)?D+=i.length:f<i.length&&(D=f),e=e.substring(D),p-=D;var j=e.length,F=e.length-a.length;e.endsWith(a)?j=F:(p>F||p>e.length-a.length)&&(j=p),e=e.substring(0,j),e=jS(w?"-"+e:e,o),e=(e.match(BS(v))||[]).join("");var R=e.indexOf(v);e=e.replace(new RegExp(R4(v),"g"),function(_,P){return P===R?".":""});var V=M2(e,o),H=V.beforeDecimal,B=V.afterDecimal,T=V.addNegation;return u.end-u.start<c.end-c.start&&H===""&&b&&!parseFloat(B)&&(e=T?"-":""),e}function OS(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var o=Array.from({length:e.length+1}).map(function(){return!0}),i=e[0]==="-";o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}function NS(e){var t=Ti(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var i=e.allowNegative;if(i===void 0&&(i=!0),n===r)throw new Error(`
|
|
6131
6131
|
Decimal separator can't be same as thousand separator.
|
|
6132
6132
|
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
6133
6133
|
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|