Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
www
/
_next
/
static
/
chunks
/
Filename :
6572-fec4e771270a6fb1.js
back
Copy
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6572],{40044:function(e,t,l){l.d(t,{Z:function(){return g}});var r=l(63366),o=l(87462),n=l(67294),i=l(90512),a=l(94780),s=l(47739),c=l(98216),d=l(71657),u=l(90948),f=l(1588),p=l(34867);function b(e){return(0,p.Z)("MuiTab",e)}let h=(0,f.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var m=l(85893);let v=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],x=e=>{let{classes:t,textColor:l,fullWidth:r,wrapped:o,icon:n,label:i,selected:s,disabled:d}=e,u={root:["root",n&&i&&"labelIcon",`textColor${(0,c.Z)(l)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,a.Z)(u,b,t)},Z=(0,u.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,l.label&&l.icon&&t.labelIcon,t[`textColor${(0,c.Z)(l.textColor)}`],l.fullWidth&&t.fullWidth,l.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>(0,o.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,[`& > .${h.iconWrapper}`]:(0,o.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,[`&.${h.selected}`]:{opacity:1},[`&.${h.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${h.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${h.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${h.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${h.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)})),S=n.forwardRef(function(e,t){let l=(0,d.Z)({props:e,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:u,icon:f,iconPosition:p="top",indicator:b,label:h,onChange:S,onClick:g,onFocus:w,selected:y,selectionFollowsFocus:C,textColor:B="inherit",value:E,wrapped:I=!1}=l,M=(0,r.Z)(l,v),W=(0,o.Z)({},l,{disabled:s,disableFocusRipple:c,selected:y,icon:!!f,iconPosition:p,label:!!h,fullWidth:u,textColor:B,wrapped:I}),P=x(W),R=f&&h&&n.isValidElement(f)?n.cloneElement(f,{className:(0,i.Z)(P.iconWrapper,f.props.className)}):f;return(0,m.jsxs)(Z,(0,o.Z)({focusRipple:!c,className:(0,i.Z)(P.root,a),ref:t,role:"tab","aria-selected":y,disabled:s,onClick:e=>{!y&&S&&S(e,E),g&&g(e)},onFocus:e=>{C&&!y&&S&&S(e,E),w&&w(e)},ownerState:W,tabIndex:y?0:-1},M,{children:["top"===p||"start"===p?(0,m.jsxs)(n.Fragment,{children:[R,h]}):(0,m.jsxs)(n.Fragment,{children:[h,R]}),b]}))});var g=S},88409:function(e,t,l){let r;l.d(t,{Z:function(){return q}});var o=l(63366),n=l(87462),i=l(67294);l(59864);var a=l(90512),s=l(94780),c=l(24349),d=l(90948),u=l(71657),f=l(2734),p=l(57144);function b(){if(r)return r;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),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}function h(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var m=l(58974),v=l(5340),x=l(85893);let Z=["onChange"],S={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var g=l(67070),w=l(56686),y=l(47739),C=l(1588),B=l(34867);function E(e){return(0,B.Z)("MuiTabScrollButton",e)}let I=(0,C.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),M=["className","slots","slotProps","direction","orientation","disabled"],W=e=>{let{classes:t,orientation:l,disabled:r}=e;return(0,s.Z)({root:["root",l,r&&"disabled"]},E,t)},P=(0,d.ZP)(y.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,l.orientation&&t[l.orientation]]}})(({ownerState:e})=>(0,n.Z)({width:40,flexShrink:0,opacity:.8,[`&.${I.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),R=i.forwardRef(function(e,t){var l,r;let i=(0,u.Z)({props:e,name:"MuiTabScrollButton"}),{className:s,slots:d={},slotProps:p={},direction:b}=i,h=(0,o.Z)(i,M),m=(0,f.Z)(),v="rtl"===m.direction,Z=(0,n.Z)({isRtl:v},i),S=W(Z),y=null!=(l=d.StartScrollButtonIcon)?l:g.Z,C=null!=(r=d.EndScrollButtonIcon)?r:w.Z,B=(0,c.y)({elementType:y,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:Z}),E=(0,c.y)({elementType:C,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:Z});return(0,x.jsx)(P,(0,n.Z)({component:"div",className:(0,a.Z)(S.root,s),ref:t,role:null,ownerState:Z,tabIndex:null},h,{children:"left"===b?(0,x.jsx)(y,(0,n.Z)({},B)):(0,x.jsx)(C,(0,n.Z)({},E))}))});var T=l(2068);function N(e){return(0,B.Z)("MuiTabs",e)}let k=(0,C.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var L=l(8038);let z=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],A=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,j=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,H=(e,t,l)=>{let r=!1,o=l(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}let t=o.disabled||"true"===o.getAttribute("aria-disabled");if(!o.hasAttribute("tabindex")||t)o=l(e,o);else{o.focus();return}}},$=e=>{let{vertical:t,fixed:l,hideScrollbar:r,scrollableX:o,scrollableY:n,centered:i,scrollButtonsHideMobile:a,classes:c}=e;return(0,s.Z)({root:["root",t&&"vertical"],scroller:["scroller",l&&"fixed",r&&"hideScrollbar",o&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},N,c)},F=(0,d.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[{[`& .${k.scrollButtons}`]:t.scrollButtons},{[`& .${k.scrollButtons}`]:l.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,l.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>(0,n.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${k.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),X=(0,d.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.scroller,l.fixed&&t.fixed,l.hideScrollbar&&t.hideScrollbar,l.scrollableX&&t.scrollableX,l.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"})),D=(0,d.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.flexContainer,l.vertical&&t.flexContainerVertical,l.centered&&t.centered]}})(({ownerState:e})=>(0,n.Z)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Y=(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})),O=(0,d.ZP)(function(e){let{onChange:t}=e,l=(0,o.Z)(e,Z),r=i.useRef(),a=i.useRef(null),s=()=>{r.current=a.current.offsetHeight-a.current.clientHeight};return(0,m.Z)(()=>{let e=(0,p.Z)(()=>{let e=r.current;s(),e!==r.current&&t(r.current)}),l=(0,v.Z)(a.current);return l.addEventListener("resize",e),()=>{e.clear(),l.removeEventListener("resize",e)}},[t]),i.useEffect(()=>{s(),t(r.current)},[t]),(0,x.jsx)("div",(0,n.Z)({style:S,ref:a},l))},{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),V={},_=i.forwardRef(function(e,t){let l=(0,u.Z)({props:e,name:"MuiTabs"}),r=(0,f.Z)(),s="rtl"===r.direction,{"aria-label":d,"aria-labelledby":m,action:Z,centered:S=!1,children:g,className:w,component:y="div",allowScrollButtonsMobile:C=!1,indicatorColor:B="primary",onChange:E,orientation:I="horizontal",ScrollButtonComponent:M=R,scrollButtons:W="auto",selectionFollowsFocus:P,slots:N={},slotProps:k={},TabIndicatorProps:_={},TabScrollButtonProps:q={},textColor:K="primary",value:G,variant:U="standard",visibleScrollbar:J=!1}=l,Q=(0,o.Z)(l,z),ee="scrollable"===U,et="vertical"===I,el=et?"scrollTop":"scrollLeft",er=et?"top":"left",eo=et?"bottom":"right",en=et?"clientHeight":"clientWidth",ei=et?"height":"width",ea=(0,n.Z)({},l,{component:y,allowScrollButtonsMobile:C,indicatorColor:B,orientation:I,vertical:et,scrollButtons:W,textColor:K,variant:U,visibleScrollbar:J,fixed:!ee,hideScrollbar:ee&&!J,scrollableX:ee&&!et,scrollableY:ee&&et,centered:S&&!ee,scrollButtonsHideMobile:!C}),es=$(ea),ec=(0,c.y)({elementType:N.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:ea}),ed=(0,c.y)({elementType:N.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:ea}),[eu,ef]=i.useState(!1),[ep,eb]=i.useState(V),[eh,em]=i.useState(!1),[ev,ex]=i.useState(!1),[eZ,eS]=i.useState(!1),[eg,ew]=i.useState({overflow:"hidden",scrollbarWidth:0}),ey=new Map,eC=i.useRef(null),eB=i.useRef(null),eE=()=>{let e,t;let l=eC.current;if(l){let t=l.getBoundingClientRect();e={clientWidth:l.clientWidth,scrollLeft:l.scrollLeft,scrollTop:l.scrollTop,scrollLeftNormalized:function(e,t){let l=e.scrollLeft;if("rtl"!==t)return l;let r=b();switch(r){case"negative":return e.scrollWidth-e.clientWidth+l;case"reverse":return e.scrollWidth-e.clientWidth-l;default:return l}}(l,r.direction),scrollWidth:l.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(l&&!1!==G){let e=eB.current.children;if(e.length>0){let l=e[ey.get(G)];t=l?l.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},eI=(0,T.Z)(()=>{let e;let{tabsMeta:t,tabMeta:l}=eE(),r=0;if(et)e="top",l&&t&&(r=l.top-t.top+t.scrollTop);else if(e=s?"right":"left",l&&t){let o=s?t.scrollLeftNormalized+t.clientWidth-t.scrollWidth:t.scrollLeft;r=(s?-1:1)*(l[e]-t[e]+o)}let o={[e]:r,[ei]:l?l[ei]:0};if(isNaN(ep[e])||isNaN(ep[ei]))eb(o);else{let t=Math.abs(ep[e]-o[e]),l=Math.abs(ep[ei]-o[ei]);(t>=1||l>=1)&&eb(o)}}),eM=(e,{animation:t=!0}={})=>{t?function(e,t,l,r={},o=()=>{}){let{ease:n=h,duration:i=300}=r,a=null,s=t[e],c=!1,d=r=>{if(c){o(Error("Animation cancelled"));return}null===a&&(a=r);let u=Math.min(1,(r-a)/i);if(t[e]=n(u)*(l-s)+s,u>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return s===l?o(Error("Element already at target position")):requestAnimationFrame(d),()=>{c=!0}}(el,eC.current,e,{duration:r.transitions.duration.standard}):eC.current[el]=e},eW=e=>{let t=eC.current[el];et?t+=e:(t+=e*(s?-1:1),t*=s&&"reverse"===b()?-1:1),eM(t)},eP=()=>{let e=eC.current[en],t=0,l=Array.from(eB.current.children);for(let r=0;r<l.length;r+=1){let o=l[r];if(t+o[en]>e){0===r&&(t=e);break}t+=o[en]}return t},eR=()=>{eW(-1*eP())},eT=()=>{eW(eP())},eN=i.useCallback(e=>{ew({overflow:null,scrollbarWidth:e})},[]),ek=(0,T.Z)(e=>{let{tabsMeta:t,tabMeta:l}=eE();if(l&&t){if(l[er]<t[er]){let r=t[el]+(l[er]-t[er]);eM(r,{animation:e})}else if(l[eo]>t[eo]){let r=t[el]+(l[eo]-t[eo]);eM(r,{animation:e})}}}),eL=(0,T.Z)(()=>{ee&&!1!==W&&eS(!eZ)});i.useEffect(()=>{let e;let t=(0,p.Z)(()=>{eC.current&&eI()}),l=(0,v.Z)(eC.current);return l.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(t),Array.from(eB.current.children).forEach(t=>{e.observe(t)})),()=>{t.clear(),l.removeEventListener("resize",t),e&&e.disconnect()}},[eI]),i.useEffect(()=>{let e=Array.from(eB.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&ee&&!1!==W){let l=e[0],r=e[t-1],o={root:eC.current,threshold:.99},n=new IntersectionObserver(e=>{em(!e[0].isIntersecting)},o);n.observe(l);let i=new IntersectionObserver(e=>{ex(!e[0].isIntersecting)},o);return i.observe(r),()=>{n.disconnect(),i.disconnect()}}},[ee,W,eZ,null==g?void 0:g.length]),i.useEffect(()=>{ef(!0)},[]),i.useEffect(()=>{eI()}),i.useEffect(()=>{ek(V!==ep)},[ek,ep]),i.useImperativeHandle(Z,()=>({updateIndicator:eI,updateScrollButtons:eL}),[eI,eL]);let ez=(0,x.jsx)(Y,(0,n.Z)({},_,{className:(0,a.Z)(es.indicator,_.className),ownerState:ea,style:(0,n.Z)({},ep,_.style)})),eA=0,ej=i.Children.map(g,e=>{if(!i.isValidElement(e))return null;let t=void 0===e.props.value?eA:e.props.value;ey.set(t,eA);let l=t===G;return eA+=1,i.cloneElement(e,(0,n.Z)({fullWidth:"fullWidth"===U,indicator:l&&!eu&&ez,selected:l,selectionFollowsFocus:P,onChange:E,textColor:K,value:t},1!==eA||!1!==G||e.props.tabIndex?{}:{tabIndex:0}))}),eH=(()=>{let e={};e.scrollbarSizeListener=ee?(0,x.jsx)(O,{onChange:eN,className:(0,a.Z)(es.scrollableX,es.hideScrollbar)}):null;let t=ee&&("auto"===W&&(eh||ev)||!0===W);return e.scrollButtonStart=t?(0,x.jsx)(M,(0,n.Z)({slots:{StartScrollButtonIcon:N.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ec},orientation:I,direction:s?"right":"left",onClick:eR,disabled:!eh},q,{className:(0,a.Z)(es.scrollButtons,q.className)})):null,e.scrollButtonEnd=t?(0,x.jsx)(M,(0,n.Z)({slots:{EndScrollButtonIcon:N.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ed},orientation:I,direction:s?"left":"right",onClick:eT,disabled:!ev},q,{className:(0,a.Z)(es.scrollButtons,q.className)})):null,e})();return(0,x.jsxs)(F,(0,n.Z)({className:(0,a.Z)(es.root,w),ownerState:ea,ref:t,as:y},Q,{children:[eH.scrollButtonStart,eH.scrollbarSizeListener,(0,x.jsxs)(X,{className:es.scroller,ownerState:ea,style:{overflow:eg.overflow,[et?`margin${s?"Left":"Right"}`:"marginBottom"]:J?void 0:-eg.scrollbarWidth},ref:eC,children:[(0,x.jsx)(D,{"aria-label":d,"aria-labelledby":m,"aria-orientation":"vertical"===I?"vertical":null,className:es.flexContainer,ownerState:ea,onKeyDown:e=>{let t=eB.current,l=(0,L.Z)(t).activeElement,r=l.getAttribute("role");if("tab"!==r)return;let o="horizontal"===I?"ArrowLeft":"ArrowUp",n="horizontal"===I?"ArrowRight":"ArrowDown";switch("horizontal"===I&&s&&(o="ArrowRight",n="ArrowLeft"),e.key){case o:e.preventDefault(),H(t,l,j);break;case n:e.preventDefault(),H(t,l,A);break;case"Home":e.preventDefault(),H(t,null,A);break;case"End":e.preventDefault(),H(t,null,j)}},ref:eB,role:"tablist",children:ej}),eu&&ez]}),eH.scrollButtonEnd]}))});var q=_},67070:function(e,t,l){l(67294);var r=l(82066),o=l(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},56686:function(e,t,l){l(67294);var r=l(82066),o=l(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")}}]);