profinansy-ui-lib 3.8.29 → 3.8.31
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.
|
@@ -569,7 +569,7 @@ Check the top-level render call using <`+q+">.")}return G}}function J2(M,G){{if(
|
|
|
569
569
|
right: 0;
|
|
570
570
|
top: -48px;
|
|
571
571
|
}
|
|
572
|
-
`,i1=[],Zs=()=>{const e=m.useRef(null);m.useEffect(()=>((()=>{if(!i1.length){const o=window.innerWidth-document.body.clientWidth;document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("margin-right",`${o}px`);const i=document.querySelector("#header-container");i&&i.style.setProperty("width",`calc(100% - ${o}px)`)}const r=Math.random();e.current=r,i1.push(r)})(),()=>{t()}),[]);const t=()=>{if(!e.current)return;const n=i1.indexOf(e.current);if(i1.splice(n,1),!i1.length){document.body.style.removeProperty("overflow"),document.body.style.removeProperty("margin-right");const r=document.querySelector("#header-container");r&&r.style.setProperty("width","100%")}}},b3=e=>{m.useEffect(()=>{const t=n=>{n.key==="Escape"&&e&&e()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])},a1=[],hh=()=>{const e=m.useRef(null);m.useEffect(()=>((()=>{if(!a1.length){const o=document.getElementById("support-widget");o&&(o.style.display="none")}const r=Math.random();e.current=r,a1.push(r)})(),()=>{t()}),[]);const t=()=>{if(!e.current)return;const n=a1.indexOf(e.current);if(a1.splice(n,1),!a1.length){const r=document.getElementById("
|
|
572
|
+
`,i1=[],Zs=()=>{const e=m.useRef(null);m.useEffect(()=>((()=>{if(!i1.length){const o=window.innerWidth-document.body.clientWidth;document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("margin-right",`${o}px`);const i=document.querySelector("#header-container");i&&i.style.setProperty("width",`calc(100% - ${o}px)`)}const r=Math.random();e.current=r,i1.push(r)})(),()=>{t()}),[]);const t=()=>{if(!e.current)return;const n=i1.indexOf(e.current);if(i1.splice(n,1),!i1.length){document.body.style.removeProperty("overflow"),document.body.style.removeProperty("margin-right");const r=document.querySelector("#header-container");r&&r.style.setProperty("width","100%")}}},b3=e=>{m.useEffect(()=>{const t=n=>{n.key==="Escape"&&e&&e()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])},a1=[],hh=()=>{const e=m.useRef(null);m.useEffect(()=>((()=>{if(!a1.length){const o=document.getElementById("support-widget");o&&(o.style.display="none")}const r=Math.random();e.current=r,a1.push(r)})(),()=>{t()}),[]);const t=()=>{if(!e.current)return;const n=a1.indexOf(e.current);if(a1.splice(n,1),!a1.length){const r=document.getElementById("support-widget");r&&(r.style.display="block")}}},Ws=e=>{m.useEffect(()=>{const t=document.getElementById("support-widget");t&&(t.style.display=e?"none":"block")},[e])};function vi(e){Zs(),hh(),b3(e)}function bi({isOpen:e,onClose:t,onBeforeClose:n,children:r}){const[o,i]=m.useState(!1),[a,l]=m.useState(!1),[c,u]=m.useState(null),f=()=>{if(n){n();return}t&&(l(!1),setTimeout(()=>{i(!1),u(null),t()},350))};return m.useEffect(()=>{e&&u(r)},[e,r]),m.useEffect(()=>{let p;return e?(i(!0),p=setTimeout(()=>l(!0),10)):(l(!1),p=setTimeout(()=>{i(!1),u(null)},350)),()=>{clearTimeout(p)}},[e]),{animation:a,content:c,showModal:o,handleClose:f}}const mh=e=>{const t=document.createElement("div");return t.setAttribute("id",e),t},gh=e=>{const[t,n]=m.useState(null);return m.useEffect(()=>{const r=e&&e.replace(/:/g,"\\:"),o=document.querySelector(`#${r}`),i=o||mh(e);return o||document.body.appendChild(i),n(i),()=>{n(null),i.childElementCount||i.remove()}},[e]),t},Qr=({id:e,children:t})=>{const n=gh(e);return n?si.createPortal(t,n):null},x3=e=>d.createElement("svg",{width:29,height:28,viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M4.9519 4.66675L23.6184 23.3333",stroke:"white",strokeWidth:2.625,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M4.95263 23.3333L23.6191 4.66675",stroke:"white",strokeWidth:2.625,strokeLinecap:"round",strokeLinejoin:"round"}));var ea={exports:{}};/*!
|
|
573
573
|
Copyright (c) 2018 Jed Watson.
|
|
574
574
|
Licensed under the MIT License (MIT), see
|
|
575
575
|
http://jedwatson.github.io/classnames
|
|
@@ -6172,7 +6172,7 @@ Check the top-level render call using <`+q+">.")}return G}}function J2(M,G){{if(
|
|
|
6172
6172
|
Prefix can't start with '-' when allowNegative is true.
|
|
6173
6173
|
prefix: `+o+`
|
|
6174
6174
|
allowNegative: `+i+`
|
|
6175
|
-
`),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}function JS(e){e=US(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=Tn);var i=e.onBlur;i===void 0&&(i=Tn);var a=e.thousandSeparator,l=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var f=e.defaultValue,p=e.value,C=e.valueIsNumericString,g=e.onValueChange,v=P4(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),b=Ai(e),x=b.decimalSeparator,y=b.allowedDecimalSeparators,E=function(A){return B5(A,e)},w=function(A,_){return zS(A,_,e)},I=Rr(p)?f:p,k=C??YS(I,u,t);Rr(p)?Rr(f)||(k=k||typeof f=="number"):k=k||typeof p=="number";var S=function(A){return H4(A)?A:(typeof A=="number"&&(A=F4(A)),k&&typeof l=="number"?H5(A,l,!!c):A)},L=O4(S(p),S(f),!!k,E,w,g),$=L[0],D=$.numAsString,j=$.formattedValue,F=L[1],R=function(A){var _=A.target,P=A.key,T=_.selectionStart,W=_.selectionEnd,Z=_.value;if(Z===void 0&&(Z=""),(P==="Backspace"||P==="Delete")&&W<u.length){A.preventDefault();return}if(T!==W){o(A);return}P==="Backspace"&&Z[0]==="-"&&T===u.length+1&&n&&Xn(_,1),l&&c&&(P==="Backspace"&&Z[T-1]===x?(Xn(_,T-1),A.preventDefault()):P==="Delete"&&Z[T]===x&&A.preventDefault()),y?.includes(P)&&Z[T]===x&&Xn(_,T+1);var X=a===!0?",":a;P==="Backspace"&&Z[T-1]===X&&Xn(_,T-1),P==="Delete"&&Z[T]===X&&Xn(_,T+1),o(A)},V=function(A){var _=D;if(_.match(/\d/g)||(_=""),r||(_=AS(_)),c&&l&&(_=H5(_,l,c)),_!==D){var P=B5(_,e);F({formattedValue:P,value:_,floatValue:parseFloat(_)},{event:A,source:T1.event})}i(A)},H=function(A){return A===x?!0:A1(A)},B=function(A){var _=A.currentValue,P=A.lastValue,T=A.formattedValue,W=A.currentValueIndex,Z=A.formattedValueIndex,X=_[W],he=T[Z],re=V4(P,_),oe=re.to,Y=function(te){return w(te).indexOf(".")+u.length};return p===0&&c&&l&&_[oe.start]===x&&Y(_)<W&&Y(T)>Z?!1:W>=oe.start&&W<oe.end&&y&&y.includes(X)&&he===x?!0:X===he};return Object.assign(Object.assign({},v),{value:j,valueIsNumericString:!1,isValidInputCharacter:H,isCharacterSame:B,onValueChange:F,format:E,removeFormatting:w,getCaretBoundary:function(A){return XS(A,e)},onKeyDown:R,onBlur:V})}function QS(e){var t=JS(e);return m.createElement(ZS,Object.assign({},t))}const KS=({name:e,value:t,onChange:n,isFloat:r=!1,numAfterDot:o=3,numBeforeDot:i,...a})=>{const l=(u,f)=>{n&&n(u.value,f.event)},c=r?o:0;return s.jsx(QS,{name:e,value:t??"",thousandSeparator:" ",allowedDecimalSeparators:[",","."],decimalSeparator:",",isAllowed:u=>{if(!i)return!0;const{value:f}=u;return f.split(".")[0].length<=i},onValueChange:l,customInput:gr,decimalScale:c,isNumberInput:!0,...a})},qS=m.memo(KS),e$=e=>h.keyframes`
|
|
6175
|
+
`),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}function JS(e){e=US(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=Tn);var i=e.onBlur;i===void 0&&(i=Tn);var a=e.thousandSeparator,l=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var f=e.defaultValue,p=e.value,C=e.valueIsNumericString,g=e.onValueChange,v=P4(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),b=Ai(e),x=b.decimalSeparator,y=b.allowedDecimalSeparators,E=function(A){return B5(A,e)},w=function(A,_){return zS(A,_,e)},I=Rr(p)?f:p,k=C??YS(I,u,t);Rr(p)?Rr(f)||(k=k||typeof f=="number"):k=k||typeof p=="number";var S=function(A){return H4(A)?A:(typeof A=="number"&&(A=F4(A)),k&&typeof l=="number"?H5(A,l,!!c):A)},L=O4(S(p),S(f),!!k,E,w,g),$=L[0],D=$.numAsString,j=$.formattedValue,F=L[1],R=function(A){var _=A.target,P=A.key,T=_.selectionStart,W=_.selectionEnd,Z=_.value;if(Z===void 0&&(Z=""),(P==="Backspace"||P==="Delete")&&W<u.length){A.preventDefault();return}if(T!==W){o(A);return}P==="Backspace"&&Z[0]==="-"&&T===u.length+1&&n&&Xn(_,1),l&&c&&(P==="Backspace"&&Z[T-1]===x?(Xn(_,T-1),A.preventDefault()):P==="Delete"&&Z[T]===x&&A.preventDefault()),y?.includes(P)&&Z[T]===x&&Xn(_,T+1);var X=a===!0?",":a;P==="Backspace"&&Z[T-1]===X&&Xn(_,T-1),P==="Delete"&&Z[T]===X&&Xn(_,T+1),o(A)},V=function(A){var _=D;if(_.match(/\d/g)||(_=""),r||(_=AS(_)),c&&l&&(_=H5(_,l,c)),_!==D){var P=B5(_,e);F({formattedValue:P,value:_,floatValue:parseFloat(_)},{event:A,source:T1.event})}i(A)},H=function(A){return A===x?!0:A1(A)},B=function(A){var _=A.currentValue,P=A.lastValue,T=A.formattedValue,W=A.currentValueIndex,Z=A.formattedValueIndex,X=_[W],he=T[Z],re=V4(P,_),oe=re.to,Y=function(te){return w(te).indexOf(".")+u.length};return p===0&&c&&l&&_[oe.start]===x&&Y(_)<W&&Y(T)>Z?!1:W>=oe.start&&W<oe.end&&y&&y.includes(X)&&he===x?!0:X===he};return Object.assign(Object.assign({},v),{value:j,valueIsNumericString:!1,isValidInputCharacter:H,isCharacterSame:B,onValueChange:F,format:E,removeFormatting:w,getCaretBoundary:function(A){return XS(A,e)},onKeyDown:R,onBlur:V})}function QS(e){var t=JS(e);return m.createElement(ZS,Object.assign({},t))}const KS=({name:e,value:t,onChange:n,isFloat:r=!1,numAfterDot:o=3,numBeforeDot:i,...a})=>{const l=(u,f)=>{f.source==="event"&&n&&n(u.value,f.event)},c=r?o:0;return s.jsx(QS,{name:e,value:t??"",thousandSeparator:" ",allowedDecimalSeparators:[",","."],decimalSeparator:",",isAllowed:u=>{if(!i)return!0;const{value:f}=u;return f.split(".")[0].length<=i},onValueChange:l,customInput:gr,decimalScale:c,isNumberInput:!0,...a})},qS=m.memo(KS),e$=e=>h.keyframes`
|
|
6176
6176
|
from {
|
|
6177
6177
|
translate: ${e?"100% 0":"0 0"};
|
|
6178
6178
|
}
|