????

Your IP : 3.144.235.50


Current Path : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/
Upload File :
Current File : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/Popper-151dcaf9.js

import{g as K,a as X,b as n,e as A,aN as L,j as w,bT as Z,_ as R,aS as ee,p as e,bF as S,a_ as D,n as $,ar as N,aQ as te,h as oe,s as ne,aY as re,u as se}from"./index-9bcd78a9.js";import{c as pe}from"./popper-578b62a7.js";function ae(o){return K("MuiPopperUnstyled",o)}X("MuiPopperUnstyled",["root"]);const ie=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],le=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ce(o,t){if(t==="ltr")return o;switch(o){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return o}}function C(o){return typeof o=="function"?o():o}function _(o){return o.nodeType!==void 0}function fe(o){return!_(o)}const de=()=>oe({root:["root"]},ae,{}),ue={},me=n.forwardRef(function(t,r){var s;const{anchorEl:p,children:a,component:d,direction:b,disablePortal:i,modifiers:c,open:l,ownerState:E,placement:k,popperOptions:u,popperRef:j,slotProps:y={},slots:I={},TransitionProps:M}=t,q=A(t,ie),P=n.useRef(null),U=$(P,r),T=n.useRef(null),O=$(T,j),m=n.useRef(O);N(()=>{m.current=O},[O]),n.useImperativeHandle(j,()=>T.current,[]);const g=ce(k,b),[W,x]=n.useState(g),[h,Y]=n.useState(C(p));n.useEffect(()=>{T.current&&T.current.forceUpdate()}),n.useEffect(()=>{p&&Y(C(p))},[p]),N(()=>{if(!h||!l)return;const J=f=>{x(f.placement)};if(h&&_(h)&&h.nodeType===1){const f=h.getBoundingClientRect();f.top===0&&f.left===0&&f.right===0&&f.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}let v=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:f})=>{J(f)}}];c!=null&&(v=v.concat(c)),u&&u.modifiers!=null&&(v=v.concat(u.modifiers));const H=pe(h,P.current,R({placement:g},u,{modifiers:v}));return m.current(H),()=>{H.destroy(),m.current(null)}},[h,i,c,l,u,g]);const B={placement:W};M!==null&&(B.TransitionProps=M);const z=de(),F=(s=d??I.root)!=null?s:"div",G=te({elementType:F,externalSlotProps:y.root,externalForwardedProps:q,additionalProps:{role:"tooltip",ref:U},ownerState:R({},t,E),className:z.root});return w.jsx(F,R({},G,{children:typeof a=="function"?a(B):a}))}),Q=n.forwardRef(function(t,r){const{anchorEl:s,children:p,container:a,direction:d="ltr",disablePortal:b=!1,keepMounted:i=!1,modifiers:c,open:l,placement:E="bottom",popperOptions:k=ue,popperRef:u,style:j,transition:y=!1,slotProps:I={},slots:M={}}=t,q=A(t,le),[P,U]=n.useState(!0),T=()=>{U(!1)},O=()=>{U(!0)};if(!i&&!l&&(!y||P))return null;let m;if(a)m=a;else if(s){const x=C(s);m=x&&_(x)?L(x).body:L(null).body}const g=!l&&i&&(!y||P)?"none":void 0,W=y?{in:l,onEnter:T,onExited:O}:void 0;return w.jsx(Z,{disablePortal:b,container:m,children:w.jsx(me,R({anchorEl:s,direction:d,disablePortal:b,modifiers:c,ref:r,open:y?!P:l,placement:E,popperOptions:k,popperRef:u,slotProps:I,slots:M},q,{style:R({position:"fixed",top:0,left:0,display:g},j),TransitionProps:W,children:p}))})});Q.propTypes={anchorEl:ee(e.oneOfType([S,e.object,e.func]),o=>{if(o.open){const t=C(o.anchorEl);if(t&&_(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}else if(!t||typeof t.getBoundingClientRect!="function"||fe(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
`))}return null}),children:e.oneOfType([e.node,e.func]),container:e.oneOfType([S,e.func]),direction:e.oneOf(["ltr","rtl"]),disablePortal:e.bool,keepMounted:e.bool,modifiers:e.arrayOf(e.shape({data:e.object,effect:e.func,enabled:e.bool,fn:e.func,name:e.any,options:e.object,phase:e.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:e.arrayOf(e.string),requiresIfExists:e.arrayOf(e.string)})),open:e.bool.isRequired,placement:e.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:e.shape({modifiers:e.array,onFirstUpdate:e.func,placement:e.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:e.oneOf(["absolute","fixed"])}),popperRef:D,slotProps:e.shape({root:e.oneOfType([e.func,e.object])}),slots:e.shape({root:e.elementType}),style:e.object,transition:e.bool};const he=Q,be=["components","componentsProps","slots","slotProps"],ye=ne(he,{name:"MuiPopper",slot:"Root",overridesResolver:(o,t)=>t.root})({}),V=n.forwardRef(function(t,r){var s;const p=re(),a=se({props:t,name:"MuiPopper"}),{components:d,componentsProps:b,slots:i,slotProps:c}=a,l=A(a,be),E=(s=i==null?void 0:i.root)!=null?s:d==null?void 0:d.Root;return w.jsx(ye,R({direction:p==null?void 0:p.direction,slots:{root:E},slotProps:c??b},l,{ref:r}))});V.propTypes={anchorEl:e.oneOfType([S,e.object,e.func]),children:e.oneOfType([e.node,e.func]),component:e.elementType,components:e.shape({Root:e.elementType}),componentsProps:e.shape({root:e.oneOfType([e.func,e.object])}),container:e.oneOfType([S,e.func]),disablePortal:e.bool,keepMounted:e.bool,modifiers:e.arrayOf(e.shape({data:e.object,effect:e.func,enabled:e.bool,fn:e.func,name:e.any,options:e.object,phase:e.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:e.arrayOf(e.string),requiresIfExists:e.arrayOf(e.string)})),open:e.bool.isRequired,ownerState:e.any,placement:e.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:e.shape({modifiers:e.array,onFirstUpdate:e.func,placement:e.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:e.oneOf(["absolute","fixed"])}),popperRef:D,slotProps:e.shape({root:e.oneOfType([e.func,e.object])}),slots:e.shape({root:e.elementType}),sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object]),transition:e.bool};const Re=V;export{Re as P};