PageSourceSearch

https://astenflow.com.br/assets/rc-dialog-D1iBLr9I.js

js astenflow.com.br collected 2026-10-06 04:46:04 UTC 6,840 bytes, 1 lines download raw bytes

1import{c as d,b as ee,l as P,_ as Z,g as be}from"./@babel-enTA78bz.js";import{P as Ne}from"./@rc-component-BOzxUjjn.js";import{r as n,R as f,d as ge,t as re,p as Re,b$ as te,a4 as ae}from"./react-CjbJo-NV.js";import{c as E}from"./classnames-BHLGGGea.js";import{C as ie}from"./rc-motion-ykEpVbtO.js";var se=n.createContext({});function ne(t,e,a){var o=e;return!o&&a&&(o="".concat(t,"-").concat(a)),o}function oe(t,e){var a=t["page".concat(e?"Y":"X","Offset")],o="scroll".concat(e?"Top":"Left");if(typeof a!="number"){var r=t.document;a=r.documentElement[o],typeof a!="number"&&(a=r.body[o])}return a}function he(t){var e=t.getBoundingClientRect(),a={left:e.left,top:e.top},o=t.ownerDocument,r=o.defaultView||o.parentWindow;return a.left+=oe(r),a.top+=oe(r,!0),a}const Ee=n.memo(function(t){var e=t.children;return e},function(t,e){var a=e.shouldUpdate;return!a});var le={width:0,height:0,overflow:"hidden",outline:"none"},Se={outline:"none"},ce=f.forwardRef(function(t,e){var a=t.prefixCls,o=t.className,r=t.style,m=t.title,c=t.ariaId,v=t.footer,l=t.closable,y=t.closeIcon,N=t.onClose,b=t.children,C=t.bodyStyle,S=t.bodyProps,h=t.modalRender,k=t.onMouseDown,x=t.onMouseUp,T=t.holderRef,M=t.visible,I=t.forceRender,g=t.width,O=t.height,i=t.classNames,u=t.styles,H=f.useContext(se),W=H.panel,X=ge(T,W),V=n.useRef(),U=n.useRef(),K=n.useRef();f.useImperativeHandle(e,function(){return{focus:function(){var _;(_=K.current)===null||_===void 0||_.focus({preventScroll:!0})},changeActive:function(_){var F=document,B=F.activeElement;_&&B===U.current?V.current.focus({preventScroll:!0}):!_&&B===V.current&&U.current.focus({preventScroll:!0})}}});var R={};g!==void 0&&(R.width=g),O!==void 0&&(R.height=O);var w=v?f.createElement("div",{className:E("".concat(a,"-footer"),i==null?void 0:i.footer),style:d({},u==null?void 0:u.footer)},v):null,A=m?f.createElement("div",{className:E("".concat(a,"-header"),i==null?void 0:i.header),style:d({},u==null?void 0:u.header)},f.createElement("div",{className:"".concat(a,"-title"),id:c},m)):null,D=n.useMemo(function(){return ee(l)==="object"&&l!==null?l:l?{closeIcon:y??f.createElement("span",{className:"".concat(a,"-close-x")})}:{}},[l,y,a]),j=re(D,!0),Y=ee(l)==="object"&&l.disabled,L=l?f.createElement("button",P({type:"button",onClick:N,"aria-label":"Close"},j,{className:"".concat(a,"-close"),disabled:Y}),D.closeIcon):null,$=f.createElement("div",{className:E("".concat(a,"-content"),i==null?void 0:i.content),style:u==null?void 0:u.content},L,A,f.createElement("div",P({className:E("".concat(a,"-body"),i==null?void 0:i.body),style:d(d({},C),u==null?void 0:u.body)},S),b),w);return f.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":m?c:null,"aria-modal":"true",ref:X,style:d(d({},r),R),className:E(a,o),onMouseDown:k,onMouseUp:x},f.createElement("div",{tabIndex:0,ref:V,style:le,"aria-hidden":"true"}),f.createElement("div",{ref:K,tabIndex:-1,style:Se},f.createElement(Ee,{shouldUpdate:M||I},h?h($):$)),f.createElement("div",{tabIndex:0,ref:U,style:le,"aria-hidden":"true"}))}),ue=n.forwardRef(function(t,e){var a=t.prefixCls,o=t.title,r=t.style,m=t.className,c=t.visible,v=t.forceRender,l=t.destroyOnClose,y=t.motionName,N=t.ariaId,b=t.onVisibleChanged,C=t.mousePosition,S=n.useRef(),h=n.useState(),k=Z(h,2),x=k[0],T=k[1],M={};x&&(M.transformOrigin=x);function I(){var g=he(S.current);T(C&&(C.x||C.y)?"".concat(C.x-g.left,"px ").concat(C.y-g.top,"px"):"")}return n.createElement(ie,{visible:c,onVisibleChanged:b,onAppearPrepare:I,onEnterPrepare:I,forceRender:v,motionName:y,removeOnLeave:l,ref:S},function(g,O){var i=g.className,u=g.style;return n.createElement(ce,P({},t,{ref:e,title:o,ariaId:N,prefixCls:a,holderRef:O,style:d(d(d({},u),r),M),className:E(m,i)}))})});ue.displayName="Content";var ke=function(e){var a=e.prefixCls,o=e.style,r=e.visible,m=e.maskProps,c=e.motionName,v=e.className;return n.createElement(ie,{key:"mask",visible:r,motionName:c,leavedClassName:"".concat(a,"-mask-hidden")},function(l,y){var N=l.className,b=l.style;return n.createElement("div",P({ref:y,style:d(d({},b),o),className:E("".concat(a,"-mask"),N,v)},m))})},xe=function(e){var a=e.prefixCls,o=a===void 0?"rc-dialog":a,r=e.zIndex,m=e.visible,c=m===void 0?!1:m,v=e.keyboard,l=v===void 0?!0:v,y=e.focusTriggerAfterClose,N=y===void 0?!0:y,b=e.wrapStyle,C=e.wrapClassName,S=e.wrapProps,h=e.onClose,k=e.afterOpenChange,x=e.afterClose,T=e.transitionName,M=e.animation,I=e.closable,g=I===void 0?!0:I,O=e.mask,i=O===void 0?!0:O,u=e.maskTransitionName,H=e.maskAnimation,W=e.maskClosable,X=W===void 0?!0:W,V=e.maskStyle,U=e.maskProps,K=e.rootClassName,R=e.classNames,w=e.styles,A=n.useRef(),D=n.useRef(),j=n.useRef(),Y=n.useState(c),L=Z(Y,2),$=L[0],z=L[1],_=Re();function F(){te(D.current,document.activeElement)||(A.current=document.activeElement)}function B(){if(!te(D.current,document.activeElement)){var s;(s=j.current)===null||s===void 0||s.focus()}}function fe(s){if(s)B();else{if(z(!1),i&&A.current&&N){try{A.current.focus({preventScroll:!0})}catch{}A.current=null}$&&(x==null||x())}k==null||k(s)}function G(s){h==null||h(s)}var q=n.useRef(!1),J=n.useRef(),me=function(){clearTimeout(J.current),q.current=!0},ve=function(){J.current=setTimeout(function(){q.current=!1})},p=null;X&&(p=function(Q){q.current?q.current=!1:D.current===Q.target&&G(Q)});function ye(s){if(l&&s.keyCode===ae.ESC){s.stopPropagation(),G(s);return}c&&s.keyCode===ae.TAB&&j.current.changeActive(!s.shiftKey)}n.useEffect(function(){c&&(z(!0),F())},[c]),n.useEffect(function(){return function(){clearTimeout(J.current)}},[]);var Ce=d(d(d({zIndex:r},b),w==null?void 0:w.wrapper),{},{display:$?null:"none"});return n.createElement("div",P({className:E("".concat(o,"-root"),K)},re(e,{data:!0}
1)),n.createElement(ke,{prefixCls:o,visible:i&&c,motionName:ne(o,u,H),style:d(d({zIndex:r},V),w==null?void 0:w.mask),maskProps:U,className:R==null?void 0:R.mask}),n.createElement("div",P({tabIndex:-1,onKeyDown:ye,className:E("".concat(o,"-wrap"),C,R==null?void 0:R.wrapper),ref:D,onClick:p,style:Ce},S),n.createElement(ue,P({},e,{onMouseDown:me,onMouseUp:ve,ref:j,closable:g,ariaId:_,prefixCls:o,visible:c&&$,onClose:G,onVisibleChanged:fe,motionName:ne(o,T,M)}))))},de=function(e){var a=e.visible,o=e.getContainer,r=e.forceRender,m=e.destroyOnClose,c=m===void 0?!1:m,v=e.afterClose,l=e.panelRef,y=n.useState(a),N=Z(y,2),b=N[0],C=N[1],S=n.useMemo(function(){return{panel:l}},[l]);return n.useEffect(function(){a&&C(!0)},[a]),!r&&c&&!b?null:n.createElement(se.Provider,{value:S},n.createElement(Ne,{open:a||r||b,autoDestroy:!1,getContainer:o,autoLock:a||b},n.createElement(xe,P({},e,{destroyOnClose:c,afterClose:function(){v==null||v(),C(!1)}}))))};de.displayName="Dialog";const we=Object.freeze(Object.defineProperty({__proto__:null,Panel:ce,default:de},Symbol.toStringTag,{value:"Module"})),Me=be(we);export{de as D,ce as P,Me as r};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.