fefdwef
This commit is contained in:
7
text/3.65.22_0/scripts/ui/chunk-5HVC4MM2.js
Normal file
7
text/3.65.22_0/scripts/ui/chunk-5HVC4MM2.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import{o as I}from"./chunk-64WUUNDB.js";import{c}from"./chunk-DS3RNNYF.js";import{a as F}from"./chunk-J5JOI62E.js";import{ka as A}from"./chunk-RC6UR2LL.js";import{b as w}from"./chunk-BF2V36QE.js";import{f as a,o as e,q as o}from"./chunk-QTLWQ5AJ.js";e();o();e();o();var s=a(w()),N=a(I()),E=a(F());e();o();var b=a(w());e();o();var h=a(w()),M=r=>{let t=(0,h.useCallback)(()=>{let f=document.querySelector(".app-content")?.getBoundingClientRect()??{top:0,left:0,bottom:0,height:0,width:0},{top:i,left:l,bottom:m,width:p}=f,n=window.innerHeight-m;r?.({left:l,width:p,offsetBottom:n<0?0:n,offsetTop:i})},[]);(0,h.useEffect)(()=>(t(),window.addEventListener("resize",t,!1),window.visualViewport&&window.visualViewport.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1),window.visualViewport&&window.visualViewport.removeEventListener("resize",t,!1)}),[])},L=M;var T=({offsetBottom:r,offsetTop:t,usePortal:f})=>{let[i,l]=(0,b.useState)({});return L(l),(0,b.useMemo)(()=>{if(t!==void 0)return{top:t,position:"sticky"};if(r!==void 0){if(i.offsetBottom===void 0)return{opacity:0};let p=f?0:i.left,n=f?"absolute":"fixed",x=f?parseFloat(r):(i.offsetBottom||0)+parseFloat(r);return{position:n,left:p,bottom:x,width:i.width}}return{}},[i,t,r])},C=T;e();o();var u={"retina-border-basic":"_retina-border-basic_oe51y_1",retinaBorderBasic:"_retina-border-basic_oe51y_1","wallet-footer-actions":"_wallet-footer-actions_oe51y_29",walletFooterActions:"_wallet-footer-actions_oe51y_29","affix-placeholder":"_affix-placeholder_oe51y_42",affixPlaceholder:"_affix-placeholder_oe51y_42",affix:"_affix_oe51y_42",borderTop:"_borderTop_oe51y_48"};var j=s.default.forwardRef(({style:r,children:t,offsetTop:f,borderTop:i=!1,className:l,offsetBottom:m,placeholder:p=!1,usePortal:n=!1,portalNode:x=".app-content",placeholderStyle:B={},...v},S)=>{let _=(0,s.useRef)(S),G={zIndex:1,...C({offsetTop:f,offsetBottom:m,usePortal:n}),...r},W=(0,N.useSize)(_),q=n?c.Portal:s.default.Fragment,H=n?{noStyle:!0,node:x}:void 0;return s.default.createElement(s.default.Fragment,null,!!p&&s.default.createElement(c.Box,{className:u["affix-placeholder"],style:{height:W?.height,...B}}),s.default.createElement(q,{...H},s.default.createElement(c.Box,{ref:_,className:(0,E.default)(u.affix,l,{[u.borderTop]:i}),style:G,...v},t)))}),y=j;e();o();var g=a(w()),k=a(F());e();o();e();o();var R=a(w());var D=({buttonGroup:r})=>[!1,r?.length?r.map(({btnText:f,...i})=>R.default.createElement(A,{key:f,...i},f)):null],O=D;var V=O;var J=({zIndex:r=1,offsetBottom:t=0,children:f,className:i,placeholder:l=!0,placeholderStyle:m={},affixStyle:p={},usePortal:n=!1,renderNative:x=!1,buttonGroup:B,portalNode:v,...S})=>{let[_,z]=V({renderNative:x,buttonGroup:B});return _?null:g.default.createElement(y,{style:{zIndex:r,...p},usePortal:n,portalNode:v,placeholder:l,offsetBottom:t,placeholderStyle:m,className:u["wallet-footer-actions__wrapper"]},g.default.createElement(c.FlexBox,{className:(0,k.default)(u["wallet-footer-actions"],i),...S},z||f))},P=J;y.FooterActions=P;var Ce=y;export{Ce as a};
|
||||
|
||||
window.inOKXExtension = true;
|
||||
window.inMiniApp = false;
|
||||
window.ASSETS_BUILD_TYPE = "publish";
|
||||
|
||||
//# sourceMappingURL=chunk-5HVC4MM2.js.map
|
||||
Reference in New Issue
Block a user