profinansy-ui-lib 3.8.30 → 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
|