@perses-dev/table-plugin 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_Table=self.chunk_Table||[]).push([["5912"],{84954:function(e,r,t){t.d(r,{Z:()=>m});var n=t(54538),o=t(90496),a=t(82267),l=t(12709),u=t(51751),i=t(28866),s=t(44124),c=t(6749);function f(e){return(0,c.ZP)("MuiCard",e)}(0,s.Z)("MuiCard",["root"]);var d=t(24246);let p=(0,l.ZP)(i.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,r)=>r.root})({overflow:"hidden"}),m=n.forwardRef(function(e,r){let t=(0,u.i)({props:e,name:"MuiCard"}),{className:n,raised:l=!1,...i}=t,s={...t,raised:l},c=(e=>{let{classes:r}=e;return(0,a.Z)({root:["root"]},f,r)})(s);return(0,d.jsx)(p,{className:(0,o.Z)(c.root,n),elevation:l?8:void 0,ref:r,ownerState:s,...i})})},70313:function(e,r,t){t.d(r,{d:()=>s});var n=t(54538),o=t(97048),a=t(81925),l=t(80668),u=t(94680);function i(e){return e.substring(2).toLowerCase()}function s(e){let{children:r,disableReactTree:t=!1,mouseEvent:s="onClick",onClickAway:c,touchEvent:f="onTouchEnd"}=e,d=n.useRef(!1),p=n.useRef(null),m=n.useRef(!1),h=n.useRef(!1);n.useEffect(()=>(setTimeout(()=>{m.current=!0},0),()=>{m.current=!1}),[]);let v=(0,o.Z)((0,u.Z)(r),p),g=(0,a.Z)(e=>{let r=h.current;h.current=!1;let n=(0,l.Z)(p.current);if(!(!m.current||!p.current||"clientX"in e&&(n.documentElement.clientWidth<e.clientX||n.documentElement.clientHeight<e.clientY))){if(d.current){d.current=!1;return}(e.composedPath?e.composedPath().includes(p.current):!n.documentElement.contains(e.target)||p.current.contains(e.target))||!t&&r||c(e)}}),y=e=>t=>{h.current=!0;let n=r.props[e];n&&n(t)},P={ref:v};return!1!==f&&(P[f]=y(f)),n.useEffect(()=>{if(!1!==f){let e=i(f),r=(0,l.Z)(p.current),t=()=>{d.current=!0};return r.addEventListener(e,g),r.addEventListener("touchmove",t),()=>{r.removeEventListener(e,g),r.removeEventListener("touchmove",t)}}},[g,f]),!1!==s&&(P[s]=y(s)),n.useEffect(()=>{if(!1!==s){let e=i(s),r=(0,l.Z)(p.current);return r.addEventListener(e,g),()=>{r.removeEventListener(e,g)}}},[g,s]),n.cloneElement(r,P)}},85843:function(e,r,t){t.d(r,{Z:()=>h});var n=t(54538),o=t(90496),a=t(82267),l=t(12709),u=t(51751),i=t(44124),s=t(6749);function c(e){return(0,s.ZP)("MuiFormGroup",e)}(0,i.Z)("MuiFormGroup",["root","row","error"]);var f=t(36683),d=t(33567),p=t(24246);let m=(0,l.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,t.row&&r.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),h=n.forwardRef(function(e,r){let t=(0,u.i)({props:e,name:"MuiFormGroup"}),{className:n,row:l=!1,...i}=t,s=(0,f.Z)(),h=(0,d.Z)({props:t,muiFormControl:s,states:["error"]}),v={...t,row:l,error:h.error},g=(e=>{let{classes:r,row:t,error:n}=e;return(0,a.Z)({root:["root",t&&"row",n&&"error"]},c,r)})(v);return(0,p.jsx)(m,{className:(0,o.Z)(g.root,n),ownerState:v,ref:r,...i})})},14371:function(e,r,t){var n;r.default=void 0,r.default=(0,((n=t(30265))&&n.__esModule?n:{default:n}).default)("M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z","OpenInNew")},51564:function(e,r,t){let n,o,a;function l(e,r,t=!0){return{...e,default:r,decode:(...n)=>{let o=e.decode(...n);return void 0===o||t&&null===o?r:o}}}function u(e,r){if(null==e)return e;if(0===e.length&&(!r||r&&""!==e))return null;let t=e instanceof Array?e[0]:e;return null==t||r||""!==t?t:null}t.d(r,{withDefault:()=>l,useQueryParam:()=>O,useQueryParams:()=>E,StringParam:()=>i,JsonParam:()=>s,encodeQueryParams:()=>c});let i={encode:function(e){return null==e?e:String(e)},decode:function(e){let r=u(e,!0);return null==r?r:String(r)}},s={encode:function(e){return null==e?e:JSON.stringify(e)},decode:function(e){let r=u(e);if(null==r)return r;let t=null;try{t=JSON.parse(r)}catch(e){}return t}};function c(e,r){let t={};for(let n of Object.keys(r)){let o=r[n];e[n]?t[n]=e[n].encode(r[n]):t[n]=null==o?o:String(o)}return t}'{}[],":'.split("").map(e=>[e,encodeURIComponent(e)]);var f=t(54538);let d=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,r,t,n){this.paramsMap.set(e,{stringified:r,decoded:t,decode:n})}has(e,r,t){if(!this.paramsMap.has(e))return!1;let n=this.paramsMap.get(e);return!!n&&n.stringified===r&&(null==t||n.decode===t)}get(e){var r;if(this.paramsMap.has(e))return null==(r=this.paramsMap.get(e))?void 0:r.decoded}registerParams(e){for(let r of e){let e=this.registeredParams.get(r)||0;this.registeredParams.set(r,e+1)}}unregisterParams(e){for(let r of e){let e=(this.registeredParams.get(r)||0)-1;e<=0?(this.registeredParams.delete(r),this.paramsMap.has(r)&&this.paramsMap.delete(r)):this.registeredParams.set(r,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function p(e,r,t,n){var o;if(!t||!r.length)return e;let a={...e},l=!1;for(let e of r)Object.prototype.hasOwnProperty.call(a,e)||(a[e]=null!=(o=t[e])?o:n,l=!0);return l?a:e}let m=Object.prototype.hasOwnProperty;function h(e,r){return e===r?0!==e||0!==r||1/e==1/r:e!=e&&r!=r}function v(e,r,t){var n,o;if(h(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;let a=Object.keys(e),l=Object.keys(r);if(a.length!==l.length)return!1;for(let l=0;l<a.length;l++){let u=null!=(o=null==(n=null==t?void 0:t[a[l]])?void 0:n.equals)?o:h;if(!m.call(r,a[l])||!u(e[a[l]],r[a[l]]))return!1}return!0}function g(e,r,t){let n={};for(let o of Object.keys(r)){let a,l=r[o],u=e[o];if(t.has(o,u,l.decode))a=t.get(o);else{if(a=l.decode(u),l.equals&&t.has(o,u)){let e=t.get(o);l.equals(a,e)&&(a=e)}void 0!==a&&t.set(o,u,a,l.decode)}void 0===a&&void 0!==l.default&&(a=l.default),n[o]=a}return n}function y(){let e;return function(r,t,n){let o=g(r,t,n);return null!=e&&v(e,o)?e:(e=o,o)}}let P={},M=(e,r,t)=>{if(n===r&&a===e&&o===t)return P;n=r,a=e;let l=e(null!=r?r:"");o=t;let u=function(e){if(e)return Object.fromEntries(e.split("\n").map(e=>e.split("\0")))}(t);for(let[e,r]of Object.entries(l)){(null==u?void 0:u[e])&&(delete l[e],l[e=u[e]]=r);let t=P[e];v(r,t)&&(l[e]=t)}return P=l,l},w={adapter:{},options:{searchStringToObject:function(e){let r=new URLSearchParams(e),t={};for(let[e,n]of r)Object.prototype.hasOwnProperty.call(t,e)?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n;return t},objectToSearchString:function(e){let r=new URLSearchParams;for(let[t,n]of Object.entries(e))if(void 0!==n&&null!==n)if(Array.isArray(n))for(let e of n)r.append(t,null!=e?e:"");else r.append(t,n);return r.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},b=f.createContext(w),j=[];function E(e,r){let{adapter:t,options:n}=function(){let e=f.useContext(b);if(void 0===e||e===w)throw Error("useQueryParams must be used within a QueryParamProvider");return e}(),[o]=(0,f.useState)(y),{paramConfigMap:a,options:l}=function(e,r){let t;return{paramConfigMap:t=void 0===e?{}:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,"inherit"])):e,options:r}}(e,r),u=(0,f.useMemo)(()=>(function(e,r){null==r&&(r={});let t={...e,...r};return r.params&&e.params&&(t.params={...e.params,...r.params}),t})(n,l),[n,l]),s=function(e,r){var t,n,o;let a={},l=!1,u=Object.keys(e);if(r.includeKnownParams||!1!==r.includeKnownParams&&0===u.length){let e=Object.keys(null!=(t=r.params)?t:{});u.push(...e)}for(let t of u){let u=e[t];if(null!=u&&"object"==typeof u){a[t]=u;continue}l=!0,a[t]=null!=(o=null==(n=r.params)?void 0:n[t])?o:i}return l?a:e}(a,u),m=M(u.searchStringToObject,t.location.search,function(e){let r;for(let t in e)if(e[t].urlName){let n=e[t].urlName,o=`${n}\0${t}`;r?r.push(o):r=[o]}return r?r.join("\n"):void 0}(s));u.includeAllParams&&(s=p(s,Object.keys(m),u.params,i));let h=o(m,s,d),v=Object.keys(s).join("\0");(0,f.useEffect)(()=>{let e=v.split("\0");return d.registerParams(e),()=>{d.unregisterParams(e)}},[v]);let P={adapter:t,paramConfigMap:s,options:u},E=(0,f.useRef)(P);null==E.current&&(E.current=P),(0,f.useEffect)(()=>{E.current.adapter=t,E.current.paramConfigMap=s,E.current.options=u},[t,s,u]);let[O]=(0,f.useState)(()=>(e,r)=>{let{adapter:t,paramConfigMap:n,options:o}=E.current;null==r&&(r=o.updateType),function(e,{immediate:r}={}){j.push(e),1===j.length&&(r?e=>e():e=>setTimeout(()=>e(),0))(()=>{let r,t=j.slice();j.length=0;let n=t[0].currentSearchString;for(let e=0;e<t.length;++e)r=function({changes:e,updateType:r,currentSearchString:t,paramConfigMap:n,options:o}){let a,l,u,{searchStringToObject:i,objectToSearchString:s}=o;null==r&&(r=o.updateType);let f=M(i,t),m=p(n,Object.keys(e),o.params);return l="function"==typeof e?e(g(f,m,d)):e,a=c(m,l),o.removeDefaultsFromUrl&&function(e,r){var t;for(let n in e)(null==(t=r[n])?void 0:t.default)!==void 0&&void 0!==e[n]&&r[n].encode(r[n].default)===e[n]&&(e[n]=void 0)}(a,m),a=function(e,r){var t;let n={};for(let o in e)(null==(t=r[o])?void 0:t.urlName)!=null?n[r[o].urlName]=e[o]:n[o]=e[o];return n}(a,m),(null==(u=s("push"===r||"replace"===r?a:{...f,...a}))?void 0:u.length)&&"?"!==u[0]&&(u=`?${u}`),null!=u?u:""}(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function({searchString:e,adapter:r,navigate:t,updateType:n}){let o={...r.location,search:e};t&&("string"==typeof n&&n.startsWith("replace")?r.replace(o):r.push(o))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})})}({changes:e,updateType:r,currentSearchString:t.location.search,paramConfigMap:n,options:o,adapter:t},{immediate:!o.enableBatching})});return[h,O]}let O=(e,r,t)=>{let[n,o]=E((0,f.useMemo)(()=>({[e]:null!=r?r:"inherit"}),[e,r]),t);return[n[e],(0,f.useCallback)((r,t)=>"function"==typeof r?o(t=>{let n=r(t[e]);return{[e]:n}},t):o({[e]:r},t),[e,o])]}},494:function(e,r,t){t.d(r,{F:()=>l});var n=t(84275),o=t(57576),a=function(e,r){for(var t={};e.length;){var n=e[0],a=n.code,l=n.message,u=n.path.join(".");if(!t[u])if("unionErrors"in n){var i=n.unionErrors[0].errors[0];t[u]={message:i.message,type:i.code}}else t[u]={message:l,type:a};if("unionErrors"in n&&n.unionErrors.forEach(function(r){return r.errors.forEach(function(r){return e.push(r)})}),r){var s=t[u].types,c=s&&s[n.code];t[u]=(0,o.appendErrors)(u,r,t,a,c?[].concat(c,n.message):n.message)}e.shift()}return t},l=function(e,r,t){return void 0===t&&(t={}),function(o,l,u){try{return Promise.resolve(function(a,l){try{var i=Promise.resolve(e["sync"===t.mode?"parse":"parseAsync"](o,r)).then(function(e){return u.shouldUseNativeValidation&&(0,n.validateFieldsNatively)({},u),{errors:{},values:t.raw?o:e}})}catch(e){return l(e)}return i&&i.then?i.then(void 0,l):i}(0,function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:(0,n.toNestErrors)(a(e.errors,!u.shouldUseNativeValidation&&"all"===u.criteriaMode),u)};throw e}))}catch(e){return Promise.reject(e)}}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_Table=self.chunk_Table||[]).push([["6357"],{12577:function(e,t,r){r.d(t,{Z:()=>m});var o=r(54538),l=r(90496),n=r(82267),i=r(67488),a=r(52054),s=r(78849),c=r(12709),d=r(51751),u=r(14662),p=r(16351),f=r(24246);let b=(0,c.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${u.Z.primary}`]:t.primary},{[`& .${u.Z.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${i.Z.root}:where(& .${u.Z.primary})`]:{display:"block"},[`.${i.Z.root}:where(& .${u.Z.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),m=o.forwardRef(function(e,t){let r=(0,d.i)({props:e,name:"MuiListItemText"}),{children:i,className:c,disableTypography:m=!1,inset:h=!1,primary:v,primaryTypographyProps:y,secondary:Z,secondaryTypographyProps:x,slots:g={},slotProps:S={},...w}=r,{dense:B}=o.useContext(s.Z),T=null!=v?v:i,C=Z,M={...r,disableTypography:m,inset:h,primary:!!T,secondary:!!C,dense:B},I=(e=>{let{classes:t,inset:r,primary:o,secondary:l,dense:i}=e;return(0,n.Z)({root:["root",r&&"inset",i&&"dense",o&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},u.L,t)})(M),P={slots:g,slotProps:{primary:y,secondary:x,...S}},[E,R]=(0,p.Z)("root",{className:(0,l.Z)(I.root,c),elementType:b,externalForwardedProps:{...P,...w},ownerState:M,ref:t}),[$,W]=(0,p.Z)("primary",{className:I.primary,elementType:a.Z,externalForwardedProps:P,ownerState:M}),[k,L]=(0,p.Z)("secondary",{className:I.secondary,elementType:a.Z,externalForwardedProps:P,ownerState:M});return null==T||T.type===a.Z||m||(T=(0,f.jsx)($,{variant:B?"body2":"body1",component:W?.variant?void 0:"span",...W,children:T})),null==C||C.type===a.Z||m||(C=(0,f.jsx)(k,{variant:"body2",color:"textSecondary",...L,children:C})),(0,f.jsxs)(E,{...R,children:[T,C]})})},49408:function(e,t,r){r.d(t,{Z:()=>v});var o=r(54538),l=r(90496),n=r(82267),i=r(14544),a=r(51640),s=r(12709),c=r(82319),d=r(51751),u=r(44124),p=r(6749);function f(e){return(0,p.ZP)("MuiTab",e)}let b=(0,u.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]);var m=r(24246);let h=(0,s.ZP)(i.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${(0,a.Z)(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${b.iconWrapper}`]:t.iconWrapper},{[`& .${b.icon}`]:t.icon}]}})((0,c.Z)(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${b.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${b.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${b.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${b.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${b.selected}`]:{opacity:1},[`&.${b.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${b.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${b.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${b.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${b.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),v=o.forwardRef(function(e,t){let r=(0,d.i)({props:e,name:"MuiTab"}),{className:i,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:u,icon:p,iconPosition:b="top",indicator:v,label:y,onChange:Z,onClick:x,onFocus:g,selected:S,selectionFollowsFocus:w,textColor:B="inherit",value:T,wrapped:C=!1,...M}=r,I={...r,disabled:s,disableFocusRipple:c,selected:S,icon:!!p,iconPosition:b,label:!!y,fullWidth:u,textColor:B,wrapped:C},P=(e=>{let{classes:t,textColor:r,fullWidth:o,wrapped:l,icon:i,label:s,selected:c,disabled:d}=e,u={root:["root",i&&s&&"labelIcon",`textColor${(0,a.Z)(r)}`,o&&"fullWidth",l&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return(0,n.Z)(u,f,t)})(I),E=p&&y&&o.isValidElement(p)?o.cloneElement(p,{className:(0,l.Z)(P.icon,p.props.className)}):p;return(0,m.jsxs)(h,{focusRipple:!c,className:(0,l.Z)(P.root,i),ref:t,role:"tab","aria-selected":S,disabled:s,onClick:e=>{!S&&Z&&Z(e,T),x&&x(e)},onFocus:e=>{w&&!S&&Z&&Z(e,T),g&&g(e)},ownerState:I,tabIndex:S?0:-1,...M,children:["top"===b||"start"===b?(0,m.jsxs)(o.Fragment,{children:[E,y]}):(0,m.jsxs)(o.Fragment,{children:[y,E]}),v]})})},51781:function(e,t,r){r.d(t,{Z:()=>N});var o=r(54538),l=r(90496),n=r(82267),i=r(6595),a=r(25399),s=r(12709),c=r(94776),d=r(82319),u=r(51751),p=r(77999);function f(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var b=r(16758),m=r(24255),h=r(24246);let v={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var y=r(67665),Z=r(63633),x=r(14544),g=r(44124),S=r(6749);function w(e){return(0,S.ZP)("MuiTabScrollButton",e)}let B=(0,g.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),T=(0,s.ZP)(x.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${B.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),C=o.forwardRef(function(e,t){let r=(0,u.i)({props:e,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:c={},direction:d,orientation:p,disabled:f,...b}=r,m=(0,i.V)(),v={isRtl:m,...r},x=(e=>{let{classes:t,orientation:r,disabled:o}=e;return(0,n.Z)({root:["root",r,o&&"disabled"]},w,t)})(v),g=s.StartScrollButtonIcon??y.Z,S=s.EndScrollButtonIcon??Z.Z,B=(0,a.Z)({elementType:g,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),C=(0,a.Z)({elementType:S,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return(0,h.jsx)(T,{component:"div",className:(0,l.Z)(x.root,o),ref:t,role:null,ownerState:v,tabIndex:null,...b,style:{...b.style,..."vertical"===p&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:"left"===d?(0,h.jsx)(g,{...B}):(0,h.jsx)(S,{...C})})});var M=r(67151),I=r(16052),P=r(2444),E=r(16351);let R=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,W=(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)return void l.focus();l=r(e,l)}},k=(0,s.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${I.Z.scrollButtons}`]:t.scrollButtons},{[`& .${I.Z.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((0,d.Z)(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${I.Z.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),L=(0,s.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]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),j=(0,s.ZP)("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),A=(0,s.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((0,d.Z)(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),z=(0,s.ZP)(function(e){let{onChange:t,...r}=e,l=o.useRef(),n=o.useRef(null),i=()=>{l.current=n.current.offsetHeight-n.current.clientHeight};return(0,b.Z)(()=>{let e=(0,p.Z)(()=>{let e=l.current;i(),e!==l.current&&t(l.current)}),r=(0,m.Z)(n.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}},[t]),o.useEffect(()=>{i(),t(l.current)},[t]),(0,h.jsx)("div",{style:v,...r,ref:n})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),H={},N=o.forwardRef(function(e,t){let r=(0,u.i)({props:e,name:"MuiTabs"}),s=(0,c.Z)(),d=(0,i.V)(),{"aria-label":b,"aria-labelledby":v,action:y,centered:Z=!1,children:x,className:g,component:S="div",allowScrollButtonsMobile:w=!1,indicatorColor:B="primary",onChange:T,orientation:N="horizontal",ScrollButtonComponent:X,scrollButtons:D="auto",selectionFollowsFocus:F,slots:O={},slotProps:V={},TabIndicatorProps:Y={},TabScrollButtonProps:K={},textColor:_="primary",value:q,variant:G="standard",visibleScrollbar:U=!1,...J}=r,Q="scrollable"===G,ee="vertical"===N,et=ee?"scrollTop":"scrollLeft",er=ee?"top":"left",eo=ee?"bottom":"right",el=ee?"clientHeight":"clientWidth",en=ee?"height":"width",ei={...r,component:S,allowScrollButtonsMobile:w,indicatorColor:B,orientation:N,vertical:ee,scrollButtons:D,textColor:_,variant:G,visibleScrollbar:U,fixed:!Q,hideScrollbar:Q&&!U,scrollableX:Q&&!ee,scrollableY:Q&&ee,centered:Z&&!Q,scrollButtonsHideMobile:!w},ea=(e=>{let{vertical:t,fixed:r,hideScrollbar:o,scrollableX:l,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:c}=e;return(0,n.Z)({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",l&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},I.m,c)})(ei),es=(0,a.Z)({elementType:O.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:ei}),ec=(0,a.Z)({elementType:O.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:ei}),[ed,eu]=o.useState(!1),[ep,ef]=o.useState(H),[eb,em]=o.useState(!1),[eh,ev]=o.useState(!1),[ey,eZ]=o.useState(!1),[ex,eg]=o.useState({overflow:"hidden",scrollbarWidth:0}),eS=new Map,ew=o.useRef(null),eB=o.useRef(null),eT={slots:O,slotProps:{indicator:Y,scrollButton:K,...V}},eC=()=>{let e,t,r=ew.current;if(r){let t=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:r.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(r&&!1!==q){let e=eB.current.children;if(e.length>0){let r=e[eS.get(q)];t=r?r.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},eM=(0,M.Z)(()=>{let e,{tabsMeta:t,tabMeta:r}=eC(),o=0;ee?(e="top",r&&t&&(o=r.top-t.top+t.scrollTop)):(e=d?"right":"left",r&&t&&(o=(d?-1:1)*(r[e]-t[e]+t.scrollLeft)));let l={[e]:o,[en]:r?r[en]:0};if("number"!=typeof ep[e]||"number"!=typeof ep[en])ef(l);else{let t=Math.abs(ep[e]-l[e]),r=Math.abs(ep[en]-l[en]);(t>=1||r>=1)&&ef(l)}}),eI=(e,{animation:t=!0}={})=>{t?function(e,t,r,o={},l=()=>{}){let{ease:n=f,duration:i=300}=o,a=null,s=t[e],c=!1,d=o=>{if(c)return void l(Error("Animation cancelled"));null===a&&(a=o);let u=Math.min(1,(o-a)/i);if(t[e]=n(u)*(r-s)+s,u>=1)return void requestAnimationFrame(()=>{l(null)});requestAnimationFrame(d)};s===r?l(Error("Element already at target position")):requestAnimationFrame(d)}(et,ew.current,e,{duration:s.transitions.duration.standard}):ew.current[et]=e},eP=e=>{let t=ew.current[et];ee?t+=e:t+=e*(d?-1:1),eI(t)},eE=()=>{let e=ew.current[el],t=0,r=Array.from(eB.current.children);for(let o=0;o<r.length;o+=1){let l=r[o];if(t+l[el]>e){0===o&&(t=e);break}t+=l[el]}return t},eR=()=>{eP(-1*eE())},e$=()=>{eP(eE())},[eW,{onChange:ek,...eL}]=(0,E.Z)("scrollbar",{className:(0,l.Z)(ea.scrollableX,ea.hideScrollbar),elementType:z,shouldForwardComponentProp:!0,externalForwardedProps:eT,ownerState:ei}),ej=o.useCallback(e=>{ek?.(e),eg({overflow:null,scrollbarWidth:e})},[ek]),[eA,ez]=(0,E.Z)("scrollButtons",{className:(0,l.Z)(ea.scrollButtons,K.className),elementType:C,externalForwardedProps:eT,ownerState:ei,additionalProps:{orientation:N,slots:{StartScrollButtonIcon:O.startScrollButtonIcon||O.StartScrollButtonIcon,EndScrollButtonIcon:O.endScrollButtonIcon||O.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:es,endScrollButtonIcon:ec}}}),eH=(0,M.Z)(e=>{let{tabsMeta:t,tabMeta:r}=eC();r&&t&&(r[er]<t[er]?eI(t[et]+(r[er]-t[er]),{animation:e}):r[eo]>t[eo]&&eI(t[et]+(r[eo]-t[eo]),{animation:e}))}),eN=(0,M.Z)(()=>{Q&&!1!==D&&eZ(!ey)});o.useEffect(()=>{let e,t,r=(0,p.Z)(()=>{ew.current&&eM()}),o=(0,m.Z)(ew.current);return o.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(eB.current.children).forEach(t=>{e.observe(t)})),"undefined"!=typeof MutationObserver&&(t=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{e?.unobserve(t)}),t.addedNodes.forEach(t=>{e?.observe(t)})}),r(),eN()})).observe(eB.current,{childList:!0}),()=>{r.clear(),o.removeEventListener("resize",r),t?.disconnect(),e?.disconnect()}},[eM,eN]),o.useEffect(()=>{let e=Array.from(eB.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&Q&&!1!==D){let r=e[0],o=e[t-1],l={root:ew.current,threshold:.99},n=new IntersectionObserver(e=>{em(!e[0].isIntersecting)},l);n.observe(r);let i=new IntersectionObserver(e=>{ev(!e[0].isIntersecting)},l);return i.observe(o),()=>{n.disconnect(),i.disconnect()}}},[Q,D,ey,x?.length]),o.useEffect(()=>{eu(!0)},[]),o.useEffect(()=>{eM()}),o.useEffect(()=>{eH(H!==ep)},[eH,ep]),o.useImperativeHandle(y,()=>({updateIndicator:eM,updateScrollButtons:eN}),[eM,eN]);let[eX,eD]=(0,E.Z)("indicator",{className:(0,l.Z)(ea.indicator,Y.className),elementType:A,externalForwardedProps:eT,ownerState:ei,additionalProps:{style:ep}}),eF=(0,h.jsx)(eX,{...eD}),eO=0,eV=o.Children.map(x,e=>{if(!o.isValidElement(e))return null;let t=void 0===e.props.value?eO:e.props.value;eS.set(t,eO);let r=t===q;return eO+=1,o.cloneElement(e,{fullWidth:"fullWidth"===G,indicator:r&&!ed&&eF,selected:r,selectionFollowsFocus:F,onChange:T,textColor:_,value:t,...1===eO&&!1===q&&!e.props.tabIndex?{tabIndex:0}:{}})}),eY=(()=>{let e={};e.scrollbarSizeListener=Q?(0,h.jsx)(eW,{...eL,onChange:ej}):null;let t=Q&&("auto"===D&&(eb||eh)||!0===D);return e.scrollButtonStart=t?(0,h.jsx)(eA,{direction:d?"right":"left",onClick:eR,disabled:!eb,...ez}):null,e.scrollButtonEnd=t?(0,h.jsx)(eA,{direction:d?"left":"right",onClick:e$,disabled:!eh,...ez}):null,e})(),[eK,e_]=(0,E.Z)("root",{ref:t,className:(0,l.Z)(ea.root,g),elementType:k,externalForwardedProps:{...eT,...J,component:S},ownerState:ei}),[eq,eG]=(0,E.Z)("scroller",{ref:ew,className:ea.scroller,elementType:L,externalForwardedProps:eT,ownerState:ei,additionalProps:{style:{overflow:ex.overflow,[ee?`margin${d?"Left":"Right"}`:"marginBottom"]:U?void 0:-ex.scrollbarWidth}}}),[eU,eJ]=(0,E.Z)("list",{ref:eB,className:(0,l.Z)(ea.list,ea.flexContainer),elementType:j,externalForwardedProps:eT,ownerState:ei,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{let t=eB.current,r=(0,P.Z)(t).activeElement;if("tab"!==r.getAttribute("role"))return;let o="horizontal"===N?"ArrowLeft":"ArrowUp",l="horizontal"===N?"ArrowRight":"ArrowDown";switch("horizontal"===N&&d&&(o="ArrowRight",l="ArrowLeft"),e.key){case o:e.preventDefault(),W(t,r,$);break;case l:e.preventDefault(),W(t,r,R);break;case"Home":e.preventDefault(),W(t,null,R);break;case"End":e.preventDefault(),W(t,null,$)}})(t),e.onKeyDown?.(t)}})});return(0,h.jsxs)(eK,{...e_,children:[eY.scrollButtonStart,eY.scrollbarSizeListener,(0,h.jsxs)(eq,{...eG,children:[(0,h.jsx)(eU,{"aria-label":b,"aria-labelledby":v,"aria-orientation":"vertical"===N?"vertical":null,role:"tablist",...eJ,children:eV}),ed&&eF]}),eY.scrollButtonEnd]})})},16052:function(e,t,r){r.d(t,{Z:()=>i,m:()=>n});var o=r(44124),l=r(6749);function n(e){return(0,l.ZP)("MuiTabs",e)}let i=(0,o.Z)("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"])},67665:function(e,t,r){r.d(t,{Z:()=>n}),r(54538);var o=r(90247),l=r(24246);let n=(0,o.Z)((0,l.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},63633:function(e,t,r){r.d(t,{Z:()=>n}),r(54538);var o=r(90247),l=r(24246);let n=(0,o.Z)((0,l.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},86396:function(e,t,r){var o;t.default=void 0,t.default=(0,((o=r(30265))&&o.__esModule?o:{default:o}).default)("M19,13H5V11H19V13Z","Minus")}}]);