You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
22 KiB
1 lines
22 KiB
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[569],{53457:function(e,t,r){r.d(t,{Z:function(){return Z}});var o=r(63366),l=r(87462),n=r(67294),i=r(63961),a=r(94780),s=r(90948),c=r(71657),d=r(1588),u=r(34867);function getFormGroupUtilityClass(e){return(0,u.Z)("MuiFormGroup",e)}(0,d.Z)("MuiFormGroup",["root","row","error"]);var f=r(74423),p=r(15704),h=r(85893);let m=["className","row"],useUtilityClasses=e=>{let{classes:t,row:r,error:o}=e;return(0,a.Z)({root:["root",r&&"row",o&&"error"]},getFormGroupUtilityClass,t)},b=(0,s.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>(0,l.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),v=n.forwardRef(function(e,t){let r=(0,c.Z)({props:e,name:"MuiFormGroup"}),{className:n,row:a=!1}=r,s=(0,o.Z)(r,m),d=(0,f.Z)(),u=(0,p.Z)({props:r,muiFormControl:d,states:["error"]}),v=(0,l.Z)({},r,{row:a,error:u.error}),Z=useUtilityClasses(v);return(0,h.jsx)(b,(0,l.Z)({className:(0,i.Z)(Z.root,n),ownerState:v,ref:t},s))});var Z=v},84376:function(e,t,r){r.d(t,{Z:function(){return M}});var o=r(63366),l=r(87462),n=r(67294),i=r(63961),a=r(94780),s=r(41796),c=r(21964),d=r(71657),u=r(77892),f=r(85893),p=(0,u.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),h=(0,u.Z)((0,f.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),m=r(90948);let b=(0,m.ZP)("span",{shouldForwardProp:m.FO})({position:"relative",display:"flex"}),v=(0,m.ZP)(p)({transform:"scale(1)"}),Z=(0,m.ZP)(h)(({theme:e,ownerState:t})=>(0,l.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));var Radio_RadioButtonIcon=function(e){let{checked:t=!1,classes:r={},fontSize:o}=e,n=(0,l.Z)({},e,{checked:t});return(0,f.jsxs)(b,{className:r.root,ownerState:n,children:[(0,f.jsx)(v,{fontSize:o,className:r.background,ownerState:n}),(0,f.jsx)(Z,{fontSize:o,className:r.dot,ownerState:n})]})},S=r(98216),g=r(35893),x=r(80209),y=r(64568);let C=["checked","checkedIcon","color","icon","name","onChange","size","className"],useUtilityClasses=e=>{let{classes:t,color:r,size:o}=e,n={root:["root",`color${(0,S.Z)(r)}`,"medium"!==o&&`size${(0,S.Z)(o)}`]};return(0,l.Z)({},t,(0,a.Z)(n,y.l,t))},w=(0,m.ZP)(c.Z,{shouldForwardProp:e=>(0,m.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"medium"!==r.size&&t[`size${(0,S.Z)(r.size)}`],t[`color${(0,S.Z)(r.color)}`]]}})(({theme:e,ownerState:t})=>(0,l.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${y.Z.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${y.Z.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),B=(0,f.jsx)(Radio_RadioButtonIcon,{checked:!0}),R=(0,f.jsx)(Radio_RadioButtonIcon,{}),I=n.forwardRef(function(e,t){var r,a,s,c;let u=(0,d.Z)({props:e,name:"MuiRadio"}),{checked:p,checkedIcon:h=B,color:m="primary",icon:b=R,name:v,onChange:Z,size:S="medium",className:y}=u,I=(0,o.Z)(u,C),M=(0,l.Z)({},u,{color:m,size:S}),T=useUtilityClasses(M),k=n.useContext(x.Z),E=p,P=(0,g.Z)(Z,k&&k.onChange),z=v;return k&&(void 0===E&&(s=k.value,E="object"==typeof(c=u.value)&&null!==c?s===c:String(s)===String(c)),void 0===z&&(z=k.name)),(0,f.jsx)(w,(0,l.Z)({type:"radio",icon:n.cloneElement(b,{fontSize:null!=(r=R.props.fontSize)?r:S}),checkedIcon:n.cloneElement(h,{fontSize:null!=(a=B.props.fontSize)?a:S}),ownerState:M,classes:T,name:z,checked:E,onChange:P,ref:t,className:(0,i.Z)(T.root,y)},I))});var M=I},64568:function(e,t,r){r.d(t,{l:function(){return getRadioUtilityClass}});var o=r(1588),l=r(34867);function getRadioUtilityClass(e){return(0,l.Z)("MuiRadio",e)}let n=(0,o.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);t.Z=n},68061:function(e,t,r){var o=r(87462),l=r(63366),n=r(67294),i=r(53457),a=r(51705),s=r(49299),c=r(80209),d=r(27909),u=r(85893);let f=["actions","children","defaultValue","name","onChange","value"],p=n.forwardRef(function(e,t){let{actions:r,children:p,defaultValue:h,name:m,onChange:b,value:v}=e,Z=(0,l.Z)(e,f),S=n.useRef(null),[g,x]=(0,s.Z)({controlled:v,default:h,name:"RadioGroup"});n.useImperativeHandle(r,()=>({focus:()=>{let e=S.current.querySelector("input:not(:disabled):checked");e||(e=S.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);let y=(0,a.Z)(t,S),C=(0,d.Z)(m),w=n.useMemo(()=>({name:C,onChange(e){x(e.target.value),b&&b(e,e.target.value)},value:g}),[C,b,x,g]);return(0,u.jsx)(c.Z.Provider,{value:w,children:(0,u.jsx)(i.Z,(0,o.Z)({role:"radiogroup",ref:y},Z,{children:p}))})});t.Z=p},80209:function(e,t,r){var o=r(67294);let l=o.createContext(void 0);t.Z=l},75316:function(e,t,r){var o=r(63366),l=r(87462),n=r(67294),i=r(63961),a=r(94780),s=r(47739),c=r(98216),d=r(71657),u=r(90948),f=r(21073),p=r(85893);let h=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],useUtilityClasses=e=>{let{classes:t,textColor:r,fullWidth:o,wrapped:l,icon:n,label:i,selected:s,disabled:d}=e,u={root:["root",n&&i&&"labelIcon",`textColor${(0,c.Z)(r)}`,o&&"fullWidth",l&&"wrapped",s&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,a.Z)(u,f.V,t)},m=(0,u.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${(0,c.Z)(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>(0,l.Z)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${f.Z.iconWrapper}`]:(0,l.Z)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${f.Z.selected}`]:{opacity:1},[`&.${f.Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${f.Z.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${f.Z.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${f.Z.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${f.Z.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),b=n.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:u,icon:f,iconPosition:b="top",indicator:v,label:Z,onChange:S,onClick:g,onFocus:x,selected:y,selectionFollowsFocus:C,textColor:w="inherit",value:B,wrapped:R=!1}=r,I=(0,o.Z)(r,h),M=(0,l.Z)({},r,{disabled:s,disableFocusRipple:c,selected:y,icon:!!f,iconPosition:b,label:!!Z,fullWidth:u,textColor:w,wrapped:R}),T=useUtilityClasses(M),k=f&&Z&&n.isValidElement(f)?n.cloneElement(f,{className:(0,i.Z)(T.iconWrapper,f.props.className)}):f;return(0,p.jsxs)(m,(0,l.Z)({focusRipple:!c,className:(0,i.Z)(T.root,a),ref:t,role:"tab","aria-selected":y,disabled:s,onClick:e=>{!y&&S&&S(e,B),g&&g(e)},onFocus:e=>{C&&!y&&S&&S(e,B),x&&x(e)},ownerState:M,tabIndex:y?0:-1},I,{children:["top"===b||"start"===b?(0,p.jsxs)(n.Fragment,{children:[k,Z]}):(0,p.jsxs)(n.Fragment,{children:[Z,k]}),v]}))});t.Z=b},21073:function(e,t,r){r.d(t,{V:function(){return getTabUtilityClass}});var o=r(1588),l=r(34867);function getTabUtilityClass(e){return(0,l.Z)("MuiTab",e)}let n=(0,o.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);t.Z=n},37023:function(e,t,r){let o;r.d(t,{Z:function(){return U}});var l=r(63366),n=r(87462),i=r(67294);r(59864);var a=r(63961),s=r(94780),c=r(5094),d=r(90948),u=r(71657),f=r(2734),p=r(57144);function detectScrollType(){if(o)return o;let e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),o="reverse",e.scrollLeft>0?o="default":(e.scrollLeft=1,0===e.scrollLeft&&(o="negative")),document.body.removeChild(e),o}function easeInOutSin(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var h=r(58974),m=r(5340),b=r(85893);let v=["onChange"],Z={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var S=r(67070),g=r(56686),x=r(47739),y=r(1588),C=r(34867);function getTabScrollButtonUtilityClass(e){return(0,C.Z)("MuiTabScrollButton",e)}let w=(0,y.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),B=["className","slots","slotProps","direction","orientation","disabled"],useUtilityClasses=e=>{let{classes:t,orientation:r,disabled:o}=e;return(0,s.Z)({root:["root",r,o&&"disabled"]},getTabScrollButtonUtilityClass,t)},R=(0,d.ZP)(x.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>(0,n.Z)({width:40,flexShrink:0,opacity:.8,[`&.${w.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),I=i.forwardRef(function(e,t){var r,o;let i=(0,u.Z)({props:e,name:"MuiTabScrollButton"}),{className:s,slots:d={},slotProps:p={},direction:h}=i,m=(0,l.Z)(i,B),v=(0,f.Z)(),Z="rtl"===v.direction,x=(0,n.Z)({isRtl:Z},i),y=useUtilityClasses(x),C=null!=(r=d.StartScrollButtonIcon)?r:S.Z,w=null!=(o=d.EndScrollButtonIcon)?o:g.Z,I=(0,c.y)({elementType:C,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),M=(0,c.y)({elementType:w,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return(0,b.jsx)(R,(0,n.Z)({component:"div",className:(0,a.Z)(y.root,s),ref:t,role:null,ownerState:x,tabIndex:null},m,{children:"left"===h?(0,b.jsx)(C,(0,n.Z)({},I)):(0,b.jsx)(w,(0,n.Z)({},M))}))});var M=r(2068),T=r(90852),k=r(8038);let E=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],nextItem=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,previousItem=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,moveFocus=(e,t,r)=>{let o=!1,l=r(e,t);for(;l;){if(l===e.firstChild){if(o)return;o=!0}let t=l.disabled||"true"===l.getAttribute("aria-disabled");if(!l.hasAttribute("tabindex")||t)l=r(e,l);else{l.focus();return}}},Tabs_useUtilityClasses=e=>{let{vertical:t,fixed:r,hideScrollbar:o,scrollableX:l,scrollableY:n,centered:i,scrollButtonsHideMobile:a,classes:c}=e;return(0,s.Z)({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",l&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},T.m,c)},P=(0,d.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${T.Z.scrollButtons}`]:t.scrollButtons},{[`& .${T.Z.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>(0,n.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${T.Z.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),z=(0,d.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>(0,n.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),N=(0,d.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>(0,n.Z)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),W=(0,d.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>(0,n.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),F=(0,d.ZP)(function(e){let{onChange:t}=e,r=(0,l.Z)(e,v),o=i.useRef(),a=i.useRef(null),setMeasurements=()=>{o.current=a.current.offsetHeight-a.current.clientHeight};return(0,h.Z)(()=>{let e=(0,p.Z)(()=>{let e=o.current;setMeasurements(),e!==o.current&&t(o.current)}),r=(0,m.Z)(a.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}},[t]),i.useEffect(()=>{setMeasurements(),t(o.current)},[t]),(0,b.jsx)("div",(0,n.Z)({style:Z,ref:a},r))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),j={},$=i.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"MuiTabs"}),o=(0,f.Z)(),s="rtl"===o.direction,{"aria-label":d,"aria-labelledby":h,action:v,centered:Z=!1,children:S,className:g,component:x="div",allowScrollButtonsMobile:y=!1,indicatorColor:C="primary",onChange:w,orientation:B="horizontal",ScrollButtonComponent:R=I,scrollButtons:T="auto",selectionFollowsFocus:$,slots:U={},slotProps:L={},TabIndicatorProps:A={},TabScrollButtonProps:H={},textColor:O="primary",value:X,variant:D="standard",visibleScrollbar:Y=!1}=r,_=(0,l.Z)(r,E),G="scrollable"===D,V="vertical"===B,q=V?"scrollTop":"scrollLeft",K=V?"top":"left",J=V?"bottom":"right",Q=V?"clientHeight":"clientWidth",ee=V?"height":"width",et=(0,n.Z)({},r,{component:x,allowScrollButtonsMobile:y,indicatorColor:C,orientation:B,vertical:V,scrollButtons:T,textColor:O,variant:D,visibleScrollbar:Y,fixed:!G,hideScrollbar:G&&!Y,scrollableX:G&&!V,scrollableY:G&&V,centered:Z&&!G,scrollButtonsHideMobile:!y}),er=Tabs_useUtilityClasses(et),eo=(0,c.y)({elementType:U.StartScrollButtonIcon,externalSlotProps:L.startScrollButtonIcon,ownerState:et}),el=(0,c.y)({elementType:U.EndScrollButtonIcon,externalSlotProps:L.endScrollButtonIcon,ownerState:et}),[en,ei]=i.useState(!1),[ea,es]=i.useState(j),[ec,ed]=i.useState(!1),[eu,ef]=i.useState(!1),[ep,eh]=i.useState(!1),[em,eb]=i.useState({overflow:"hidden",scrollbarWidth:0}),ev=new Map,eZ=i.useRef(null),eS=i.useRef(null),getTabsMeta=()=>{let e,t;let r=eZ.current;if(r){let t=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollLeftNormalized:function(e,t){let r=e.scrollLeft;if("rtl"!==t)return r;let o=detectScrollType();switch(o){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}(r,o.direction),scrollWidth:r.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(r&&!1!==X){let e=eS.current.children;if(e.length>0){let r=e[ev.get(X)];t=r?r.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},eg=(0,M.Z)(()=>{let e;let{tabsMeta:t,tabMeta:r}=getTabsMeta(),o=0;if(V)e="top",r&&t&&(o=r.top-t.top+t.scrollTop);else if(e=s?"right":"left",r&&t){let l=s?t.scrollLeftNormalized+t.clientWidth-t.scrollWidth:t.scrollLeft;o=(s?-1:1)*(r[e]-t[e]+l)}let l={[e]:o,[ee]:r?r[ee]:0};if(isNaN(ea[e])||isNaN(ea[ee]))es(l);else{let t=Math.abs(ea[e]-l[e]),r=Math.abs(ea[ee]-l[ee]);(t>=1||r>=1)&&es(l)}}),scroll=(e,{animation:t=!0}={})=>{t?function(e,t,r,o={},l=()=>{}){let{ease:n=easeInOutSin,duration:i=300}=o,a=null,s=t[e],c=!1,step=o=>{if(c){l(Error("Animation cancelled"));return}null===a&&(a=o);let d=Math.min(1,(o-a)/i);if(t[e]=n(d)*(r-s)+s,d>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(step)};return s===r?l(Error("Element already at target position")):requestAnimationFrame(step),()=>{c=!0}}(q,eZ.current,e,{duration:o.transitions.duration.standard}):eZ.current[q]=e},moveTabsScroll=e=>{let t=eZ.current[q];V?t+=e:(t+=e*(s?-1:1),t*=s&&"reverse"===detectScrollType()?-1:1),scroll(t)},getScrollSize=()=>{let e=eZ.current[Q],t=0,r=Array.from(eS.current.children);for(let o=0;o<r.length;o+=1){let l=r[o];if(t+l[Q]>e){0===o&&(t=e);break}t+=l[Q]}return t},handleStartScrollClick=()=>{moveTabsScroll(-1*getScrollSize())},handleEndScrollClick=()=>{moveTabsScroll(getScrollSize())},ex=i.useCallback(e=>{eb({overflow:null,scrollbarWidth:e})},[]),ey=(0,M.Z)(e=>{let{tabsMeta:t,tabMeta:r}=getTabsMeta();if(r&&t){if(r[K]<t[K]){let o=t[q]+(r[K]-t[K]);scroll(o,{animation:e})}else if(r[J]>t[J]){let o=t[q]+(r[J]-t[J]);scroll(o,{animation:e})}}}),eC=(0,M.Z)(()=>{G&&!1!==T&&eh(!ep)});i.useEffect(()=>{let e,t;let r=(0,p.Z)(()=>{eZ.current&&eg()}),o=(0,m.Z)(eZ.current);return o.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(eS.current.children).forEach(t=>{e.observe(t)})),"undefined"!=typeof MutationObserver&&(t=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{var r;null==(r=e)||r.unobserve(t)}),t.addedNodes.forEach(t=>{var r;null==(r=e)||r.observe(t)})}),r(),eC()})).observe(eS.current,{childList:!0}),()=>{var l,n;r.clear(),o.removeEventListener("resize",r),null==(l=t)||l.disconnect(),null==(n=e)||n.disconnect()}},[eg,eC]),i.useEffect(()=>{let e=Array.from(eS.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&G&&!1!==T){let r=e[0],o=e[t-1],l={root:eZ.current,threshold:.99},n=new IntersectionObserver(e=>{ed(!e[0].isIntersecting)},l);n.observe(r);let i=new IntersectionObserver(e=>{ef(!e[0].isIntersecting)},l);return i.observe(o),()=>{n.disconnect(),i.disconnect()}}},[G,T,ep,null==S?void 0:S.length]),i.useEffect(()=>{ei(!0)},[]),i.useEffect(()=>{eg()}),i.useEffect(()=>{ey(j!==ea)},[ey,ea]),i.useImperativeHandle(v,()=>({updateIndicator:eg,updateScrollButtons:eC}),[eg,eC]);let ew=(0,b.jsx)(W,(0,n.Z)({},A,{className:(0,a.Z)(er.indicator,A.className),ownerState:et,style:(0,n.Z)({},ea,A.style)})),eB=0,eR=i.Children.map(S,e=>{if(!i.isValidElement(e))return null;let t=void 0===e.props.value?eB:e.props.value;ev.set(t,eB);let r=t===X;return eB+=1,i.cloneElement(e,(0,n.Z)({fullWidth:"fullWidth"===D,indicator:r&&!en&&ew,selected:r,selectionFollowsFocus:$,onChange:w,textColor:O,value:t},1!==eB||!1!==X||e.props.tabIndex?{}:{tabIndex:0}))}),eI=(()=>{let e={};e.scrollbarSizeListener=G?(0,b.jsx)(F,{onChange:ex,className:(0,a.Z)(er.scrollableX,er.hideScrollbar)}):null;let t=G&&("auto"===T&&(ec||eu)||!0===T);return e.scrollButtonStart=t?(0,b.jsx)(R,(0,n.Z)({slots:{StartScrollButtonIcon:U.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:eo},orientation:B,direction:s?"right":"left",onClick:handleStartScrollClick,disabled:!ec},H,{className:(0,a.Z)(er.scrollButtons,H.className)})):null,e.scrollButtonEnd=t?(0,b.jsx)(R,(0,n.Z)({slots:{EndScrollButtonIcon:U.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:el},orientation:B,direction:s?"left":"right",onClick:handleEndScrollClick,disabled:!eu},H,{className:(0,a.Z)(er.scrollButtons,H.className)})):null,e})();return(0,b.jsxs)(P,(0,n.Z)({className:(0,a.Z)(er.root,g),ownerState:et,ref:t,as:x},_,{children:[eI.scrollButtonStart,eI.scrollbarSizeListener,(0,b.jsxs)(z,{className:er.scroller,ownerState:et,style:{overflow:em.overflow,[V?`margin${s?"Left":"Right"}`:"marginBottom"]:Y?void 0:-em.scrollbarWidth},ref:eZ,children:[(0,b.jsx)(N,{"aria-label":d,"aria-labelledby":h,"aria-orientation":"vertical"===B?"vertical":null,className:er.flexContainer,ownerState:et,onKeyDown:e=>{let t=eS.current,r=(0,k.Z)(t).activeElement,o=r.getAttribute("role");if("tab"!==o)return;let l="horizontal"===B?"ArrowLeft":"ArrowUp",n="horizontal"===B?"ArrowRight":"ArrowDown";switch("horizontal"===B&&s&&(l="ArrowRight",n="ArrowLeft"),e.key){case l:e.preventDefault(),moveFocus(t,r,previousItem);break;case n:e.preventDefault(),moveFocus(t,r,nextItem);break;case"Home":e.preventDefault(),moveFocus(t,null,nextItem);break;case"End":e.preventDefault(),moveFocus(t,null,previousItem)}},ref:eS,role:"tablist",children:eR}),en&&ew]}),eI.scrollButtonEnd]}))});var U=$},90852:function(e,t,r){r.d(t,{m:function(){return getTabsUtilityClass}});var o=r(1588),l=r(34867);function getTabsUtilityClass(e){return(0,l.Z)("MuiTabs",e)}let n=(0,o.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);t.Z=n}}]); |