????

Your IP : 52.15.66.233


Current Path : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/ListItem-f429a201.js

import{r as t,F as C,y as H}from"./index-727ccf4d.js";import{a as I}from"./useTheme-41684c89.js";import{w as B,c as h}from"./capitalize-f7a57a5c.js";import{u as J}from"./DialogCustomize-4c6977d9.js";import{B as K}from"./ButtonBase-9568d0b0.js";function Q(r,e){return t.isValidElement(r)&&e.indexOf(r.type.muiName)!==-1}var U=t.createContext({});const x=U;var X={root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},Y=t.forwardRef(function(e,$){var f=e.children,a=e.classes,v=e.className,l=e.component,p=l===void 0?"ul":l,c=e.dense,u=c===void 0?!1:c,n=e.disablePadding,N=n===void 0?!1:n,i=e.subheader,b=I(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=t.useMemo(function(){return{dense:u}},[u]);return t.createElement(x.Provider,{value:g},t.createElement(p,C({className:h(a.root,v,u&&a.dense,!N&&a.padding,i&&a.subheader),ref:$},b),i,f))});const de=B(X,{name:"MuiList"})(Y);var Z=function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},ee=typeof window>"u"?t.useEffect:t.useLayoutEffect,te=t.forwardRef(function(e,$){var f=e.alignItems,a=f===void 0?"center":f,v=e.autoFocus,l=v===void 0?!1:v,p=e.button,c=p===void 0?!1:p,u=e.children,n=e.classes,N=e.className,i=e.component,b=e.ContainerComponent,g=b===void 0?"li":b,m=e.ContainerProps;m=m===void 0?{}:m;var S=m.className,A=I(m,["className"]),P=e.dense,M=P===void 0?!1:P,_=e.disabled,L=_===void 0?!1:_,R=e.disableGutters,D=R===void 0?!1:R,k=e.divider,G=k===void 0?!1:k,T=e.focusVisibleClassName,w=e.selected,O=w===void 0?!1:w,j=I(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),z=t.useContext(x),y={dense:M||z.dense||!1,alignItems:a},E=t.useRef(null);ee(function(){l&&E.current&&E.current.focus()},[l]);var d=t.Children.toArray(u),F=d.length&&Q(d[d.length-1],["ListItemSecondaryAction"]),W=t.useCallback(function(q){E.current=H.findDOMNode(q)},[]),V=J(W,$),o=C({className:h(n.root,N,y.dense&&n.dense,!D&&n.gutters,G&&n.divider,L&&n.disabled,c&&n.button,a!=="center"&&n.alignItemsFlexStart,F&&n.secondaryAction,O&&n.selected),disabled:L},j),s=i||"li";return c&&(o.component=i||"div",o.focusVisibleClassName=h(n.focusVisible,T),s=K),F?(s=!o.component&&!i?"div":s,g==="li"&&(s==="li"?s="div":o.component==="li"&&(o.component="div")),t.createElement(x.Provider,{value:y},t.createElement(g,C({className:h(n.container,S),ref:V},A),t.createElement(s,o,d),d.pop()))):t.createElement(x.Provider,{value:y},t.createElement(s,C({ref:V},o),d))});const re=B(Z,{name:"MuiListItem"})(te);export{x as L,de as a,re as b};