@tracktor/design-system 3.3.1 → 3.3.2
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.
- package/CHANGELOG.md +2 -2
- package/dist/main.cjs +1 -1
- package/dist/main.js +106 -104
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/main.cjs
CHANGED
|
@@ -82,4 +82,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
82
82
|
}
|
|
83
83
|
`}),d.import&&n(o.GlobalStyles,{styles:o.css`
|
|
84
84
|
@import url("https://fonts.googleapis.com/css2?family=${h}:wght@${g}&display=swap");
|
|
85
|
-
`}),t&&n(o.CssBaseline,{enableColorScheme:r}),i&&n(va,{}),a&&n(ma,{theme:s}),e]})})},Sa={clickToUpload:"Click to upload",files:"Files",reset:"Reset",selectAll:"Select all"},Ea={clickToUpload:"Cliquez pour télécharger",files:"Fichiers",reset:"Réinitialiser",selectAll:"Tout sélectionner"},Ma={en:Sa,fr:Ea},zr=()=>{const{language:e}=y.useContext(P1);return{t:t=>Ma[e][t]}},xr=5,Ta=(e,r)=>{const t=r==="vertical";return e==="small"?t?130:60:t?150:80},ka=e=>{if(!e)return"";const r=e.length>1,a=[...e||[]].slice(0,5).map(({name:i})=>{const s=i.split(".").pop();return i.length>10&&r?`${i.substring(0,10)}(...).${s}`:i}).join(" • ");return e.length>xr?`${a} + ${e.length-xr}`:a},Ra=({accept:e,name:r,disabled:t,required:a,error:i,localeText:s,multiple:c,id:u,size:d,helperText:h,fullWidth:g,icon:b,onChange:v,label:x,variant:T="vertical"})=>{const{t:m}=zr(),{palette:f}=o.useTheme(),w=T==="vertical",k=u||r,E=y.useRef(null),R=y.useRef(null),[p,L]=y.useState(null),I=ka(p),W=G=>{v==null||v(G),L(G.target.files)},O=G=>{G.preventDefault()},J=G=>{if(G.preventDefault(),G.dataTransfer.files.length>0){const Y=R.current,B=G.dataTransfer.files;L(B);const K=new DataTransfer;Array.from(B).forEach(ne=>K.items.add(ne)),Y&&(Y.files=K.files),Y==null||Y.focus(),Y==null||Y.blur(),v==null||v({...G,target:Y}),G.dataTransfer.clearData()}};return M(o.InputLabel,{ref:E,htmlFor:k,onDragOver:O,onDrop:J,sx:{"&:hover, &:focus":{borderColor:f.primary.main},border:`1px dashed ${i?f.error.main:f.divider}`,borderRadius:1,cursor:"pointer",height:Ta(d,T),maxWidth:g?"100%":400,padding:2,position:"relative",width:"100%"},children:[M(o.Stack,{alignItems:"center",height:"100%",direction:w?"column":"row",justifyContent:w?"center":"flex-start",textAlign:w?"center":"left",spacing:.5,color:t?"text.disabled":"text.secondary",children:[b||n(ga,{sx:{height:40,width:40}}),I?M(fe,{children:[M(o.Typography,{variant:"body2",color:"textSecondary",children:[p==null?void 0:p.length," ",(s==null?void 0:s.files)||m("files")]}),n(o.Typography,{variant:"body2",color:"primary",whiteSpace:w?"normal":"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:I})]}):M(o.Typography,{variant:"subtitle1",color:t?"text.disabled":"primary",children:[x||m("clickToUpload")," ",a&&"*"]}),h&&n(o.Typography,{color:i?"error":"textSecondary",variant:"body2",children:h})]}),n("input",{ref:R,type:"file",disabled:t,required:a,name:r,multiple:c,accept:e,id:k,onChange:W,style:{left:"50%",opacity:0,pointerEvents:"none",position:"absolute",top:"50%",transform:"translate(-50%, -50%)",zIndex:-1}})]})},ze=1,Aa=e=>typeof e=="string",Ne={list:{marginLeft:({spacing:e})=>`-${e(.5)} !important`,marginRight:({spacing:e})=>`-${e(.5)} !important`,minWidth:250},listItem:{borderRadius:1,padding:.5}},Nr=({Empty:e,action:r,items:t,fullWidth:a,sx:i,alwaysDisplaySecondaryAction:s,isLoading:c,disableLightbox:u,numberLoadingItems:d=3})=>{var b;const[h,g]=y.useState("");return!(t!=null&&t.length)&&!c&&!r?e||null:c?n(o.List,{sx:{...Ne.list,...a&&{width:"100%"}},children:[...Array(d).keys()].map(v=>M(o.ListItem,{sx:Ne.listItem,children:[n(o.Skeleton,{width:40,height:40,sx:{marginRight:ze},variant:"rounded"}),n(o.ListItemText,{primary:n(o.Typography,{variant:"h6",children:n(o.Skeleton,{width:90})}),secondary:n(o.Skeleton,{width:70}),sx:{marginY:0}})]},v))}):M(o.List,{sx:{...Ne.list,...a&&{width:"100%"},...i},children:[t==null?void 0:t.map(({id:v,title:x,subtitle:T,image:m,thumbnail:f,secondaryAction:w,chipLabel:k,chipColor:E,onClick:R,icon:p,Avatar:L},I)=>{var q,ee,se,ye;const W=`key-${I}-${x}-${v}`,O=(q=m==null?void 0:m.toLowerCase())==null?void 0:q.endsWith(".pdf"),J=(ee=m==null?void 0:m.toLowerCase())==null?void 0:ee.startsWith("http"),G=(se=f==null?void 0:f.toLowerCase())==null?void 0:se.startsWith("http"),Y=R?"none":void 0,B=u||!!p||!J,K=!!R||!!(!R&&!u&&(f||m)),ne=h===W,_=(G?f:"")||(J?m:"")||"";return M(o.ListItem,{secondaryAction:w,onClick:he=>{R==null||R(he),K&&!ne&&!R&&g(W)},sx:{...Ne.listItem,"& .MuiListItemSecondaryAction-root":{alignItems:"center",display:"flex",justifyContent:"center",opacity:s?1:0,position:"static",right:({spacing:he})=>he(.5),transform:"none"},"&:hover":{"& .MuiListItemSecondaryAction-root":{opacity:1},backgroundColor:({palette:he})=>K?he.action.hover:"transparent"},cursor:K?"pointer":"default"},children:[L!==void 0&&n(o.Box,{marginRight:ze,children:L}),!L&&O&&n(i1,{src:m,srcThumb:f,width:40,height:40,sx:{borderRadius:1,marginRight:ze},disableLightbox:u,open:ne,onClose:()=>g("")}),!L&&!O&&n(i1,{disableThumb:!0,src:m,srcThumb:f,disableLightbox:B,open:ne,onClose:()=>g(""),children:n(o.Avatar,{src:_,variant:"rounded",sx:{marginRight:ze},children:p||typeof x=="string"&&((ye=x||"")==null?void 0:ye.charAt(0).toUpperCase())})}),n(o.ListItemText,{primary:M(o.Stack,{direction:"row",alignItems:"center",spacing:1,children:[x&&n(o.Typography,{variant:"h6",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:x}),k&&n(o.Chip,{label:k,variant:"rounded",size:"xSmall",color:Aa(E)?E:"default"})]}),secondary:T,primaryTypographyProps:{component:"div"},secondaryTypographyProps:{component:"div"},sx:{marginY:0,userSelect:Y}})]},W)}),r&&M(o.ListItemButton,{onClick:r==null?void 0:r.onClick,sx:{...Ne.listItem,"&:hover":{backgroundColor:({palette:v})=>v.action.hover}},children:[n(o.Avatar,{src:(r==null?void 0:r.image)||"",variant:"rounded",sx:{marginRight:ze},children:(r==null?void 0:r.icon)||((b=r==null?void 0:r.title)==null?void 0:b.charAt(0).toUpperCase())}),n(o.ListItemText,{primary:(r==null?void 0:r.title)&&n(o.Typography,{variant:"h6",children:r==null?void 0:r.title}),secondary:r==null?void 0:r.subtitle,sx:{marginY:0}})]})]})},R1={padding:0,paddingRight:1},Ia=e=>function(t){return n(o.Badge,{badgeContent:`+${t}`,color:e,sx:{"& .MuiBadge-badge":{position:"relative",transform:"none"},alignItems:"center"}})},_a=({children:e,disableSelectAll:r,localeText:t,disableReset:a,onChange:i,loading:s,options:c,value:u,multiple:d,...h})=>{const{t:g}=zr(),b=Array.isArray(u)?(u==null?void 0:u.length)===(c==null?void 0:c.length):!1,v=c==null?void 0:c.filter(x=>x==null?void 0:x.isHeader);return M(o.Paper,{...h,children:[d&&!s&&(!r||!!(v!=null&&v.length))&&M(fe,{children:[M(o.List,{role:"listbox",children:[!r&&n(o.ListItem,{disablePadding:!0,role:"option",onMouseDown:x=>{if(x.stopPropagation(),x.preventDefault(),b){i==null||i(x,[],"removeOption");return}i==null||i(x,c||[],"selectOption")},children:M(o.ListItemButton,{disableRipple:!0,children:[n(o.Checkbox,{disableRipple:!0,id:"select-all-checkbox",checked:b,sx:R1}),n(o.ListItemText,{primary:(t==null?void 0:t.selectAll)||g("selectAll"),primaryTypographyProps:{variant:"body2"}}),!a&&n(o.Button,{variant:"link",size:"small",sx:{marginX:1,textDecoration:"none"},onClick:x=>{i==null||i(x,[],"removeOption")},onMouseDown:x=>{x.stopPropagation(),x.preventDefault()},children:n(o.Typography,{variant:"body2",children:(t==null?void 0:t.reset)||g("reset")})})]})}),v==null?void 0:v.map((x,T)=>{const m=`header-options-${x==null?void 0:x.id}-${T}`,f=Array.isArray(u)&&u.some(w=>JSON.stringify(w)===JSON.stringify(x)||w&&typeof w=="object"&&"id"in w&&(w==null?void 0:w.id)===(x==null?void 0:x.id));return n(o.ListItem,{disablePadding:!0,onMouseDown:w=>{if(w.stopPropagation(),w.preventDefault(),f){const k=Array.isArray(u)?u==null?void 0:u.filter(E=>!(JSON.stringify(E)===JSON.stringify(x)||E&&typeof E=="object"&&"id"in E&&(E==null?void 0:E.id)===(x==null?void 0:x.id))):[];i==null||i(w,k,"removeOption");return}i==null||i(w,[...Array.isArray(u)?u:[],x],"selectOption")},children:M(o.ListItemButton,{disableRipple:!0,children:[n(o.Checkbox,{disableRipple:!0,checked:f,sx:R1}),n(o.ListItemText,{primary:x==null?void 0:x.label})]})},m)})]}),n(o.Divider,{})]}),e]})},La=({onChange:e,disableCheckbox:r,placeholder:t,localeText:a,disableReset:i,disableSelectAll:s,value:c,onFocus:u,onBlur:d,open:h,onInputChange:g,inputValue:b,disableClearable:v,loading:x,resetInputValueOnSelectOption:T,renderOption:m,renderTags:f,size:w="small",disableCloseOnSelect:k=!0,multiple:E=!0,options:R=[],slotProps:p,...L},I)=>{const{palette:W}=o.useTheme(),[O,J]=y.useState(!1),[G,Y]=y.useState(""),B=W.mode==="light"?"default":"primary",K=b||G,ne=E?c||[]:c||null,be=(Z,_,q,ee)=>{if(_===null){e==null||e(Z,E?[]:null,q,ee);return}e==null||e(Z,_,q,ee),(!k||!E)&&J(!1)};return n(o.Autocomplete,{freeSolo:!1,multiple:E,disableClearable:v,value:ne,loading:x,options:R,ref:I,size:w,disableCloseOnSelect:k,onChange:be,getLimitTagsText:Ia(B),inputValue:K,open:h||O,onOpen:()=>J(!0),slots:{paper:_a},slotProps:{...p,paper:{disableReset:i,disableSelectAll:s,loading:x,localeText:a,multiple:E,onChange:e,options:R,value:c,...p==null?void 0:p.paper}},onInputChange:(Z,_,q)=>{q==="reset"&&O&&!T||q==="selectOption"&&!T||q==="removeOption"&&!T||(b||Y(_),g==null||g(Z,_,q))},onFocus:Z=>{J(!0),u==null||u(Z)},onBlur:Z=>{J(!1),d==null||d(Z)},renderOption:m||((Z,_,{selected:q})=>{var se;if(x||_!=null&&_.isHeader)return null;const ee=`${_==null?void 0:_.id}-${Z==null?void 0:Z.key}`;return pt.createElement(o.ListItem,{...Z,key:ee},!r&&n(o.Checkbox,{disableRipple:!0,checked:q,sx:R1}),(_==null?void 0:_.image)&&n(o.ListItemAvatar,{sx:{height:24,marginRight:1,minWidth:"auto",width:24},children:n(o.Avatar,{variant:"rounded",src:_==null?void 0:_.image,sx:{height:24,width:24},children:(_==null?void 0:_.image)==="letter"&&typeof(_==null?void 0:_.label)=="string"&&((se=_==null?void 0:_.label)==null?void 0:se.charAt(0).toUpperCase())})}),typeof(_==null?void 0:_.label)=="string"?n(o.Typography,{variant:"body2",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",title:_==null?void 0:_.label,children:_.label}):_==null?void 0:_.label)}),renderTags:f||((Z,_,q)=>Array.isArray(Z)?Z.map((ee,se)=>{const{key:ye}=_({index:se});return q!=null&&q.focused?null:n(o.Typography,{marginX:1,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:ee==null?void 0:ee.label},ye)}):null),...L,renderInput:Z=>{var ee,se;const _=()=>{if(!(!O&&(Array.isArray(c)&&c.length||!Array.isArray(c)&&c)))return t},q=y.isValidElement((ee=Z.InputProps)==null?void 0:ee.endAdornment)?(se=Z.InputProps)==null?void 0:se.endAdornment:null;return n(o.TextField,{sx:{".MuiInputBase-root .MuiInputBase-input":{flex:!E||!O&&!K||O?1:0,minWidth:0}},...Z,slotProps:{input:{...Z.InputProps,endAdornment:O?M(o.InputAdornment,{position:"end",sx:{position:"absolute",right:9},children:[O&&K&&!v&&n(o.IconButton,{size:"small",onClick:()=>Y(""),sx:{marginRight:"-3px"},children:n(L1,{sx:{fontSize:X(20)}})}),q==null?void 0:q.props.children[1]]}):q}},placeholder:_()})}})},Fa=y.forwardRef(La),Oa=({in:e,children:r,sx:t,padding:a,direction:i,position:s="fixed",mountOnEnter:c=!0,unmountOnExit:u=!0,...d},h)=>n(o.Slide,{mountOnEnter:c,unmountOnExit:u,in:e===void 0?!0:e,direction:"up",children:n(o.Paper,{square:!0,elevation:0,ref:h,sx:{borderTop:({palette:g})=>`1px solid ${g.divider}`,bottom:0,left:0,padding:a,paddingX:a?void 0:2,paddingY:a?void 0:3,position:s,right:0,zIndex:10,...i==="column"&&{display:"flex",flexDirection:"column"},...i==="row"&&{display:"flex",flexDirection:"row"},...t},...d,children:r})}),Ha=y.forwardRef(Oa),Pa=({sx:e,fontSize:r,color:t="currentColor"})=>n(o.SvgIcon,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",fontSize:r,sx:e,children:n("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:t})}),Va=({sx:e,fontSize:r,color:t="currentColor"})=>n(o.SvgIcon,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",fontSize:r,sx:e,children:n("path",{d:"M19.7231 21.1385L15.8308 17.2577C15.3884 17.4539 14.8394 17.6266 14.1836 17.776C13.5279 17.9253 12.8 18 12 18C9.81665 18 7.83139 17.4035 6.0442 16.2106C4.25702 15.0176 2.93459 13.4474 2.0769 11.5C2.46535 10.6167 2.97753 9.78943 3.61343 9.01828C4.24933 8.24713 4.92818 7.60001 5.64998 7.07693L2.8615 4.27693L3.5692 3.56923L20.4308 20.4308L19.7231 21.1385ZM12 15.1539C12.2346 15.1539 12.492 15.1263 12.7721 15.0712C13.0522 15.016 13.2711 14.9442 13.4288 14.8558L8.6442 10.0712C8.55574 10.2545 8.48395 10.483 8.42883 10.7567C8.3737 11.0304 8.34613 11.2782 8.34613 11.5C8.34613 12.5192 8.7003 13.383 9.40863 14.0914C10.117 14.7997 10.9807 15.1539 12 15.1539ZM18.6077 15.7192L15.5096 12.6462C15.5493 12.5039 15.5833 12.3349 15.6115 12.1394C15.6397 11.9439 15.6538 11.7308 15.6538 11.5C15.6538 10.4808 15.2997 9.61699 14.5913 8.90865C13.883 8.20032 13.0192 7.84615 12 7.84615C11.7692 7.84615 11.5625 7.86346 11.3798 7.89808C11.1971 7.9327 11.0282 7.98462 10.8731 8.05385L8.4192 5.61923C8.99997 5.4 9.591 5.24198 10.1923 5.14518C10.7936 5.0484 11.3961 5 12 5C14.1705 5 16.1558 5.59648 17.9558 6.78943C19.7558 7.98238 21.0782 9.55257 21.9231 11.5C21.5654 12.3039 21.1125 13.0593 20.5644 13.7664C20.0163 14.4734 19.3641 15.1244 18.6077 15.7192ZM14.6942 11.85L11.675 8.85C12.0904 8.76667 12.4939 8.79455 12.8856 8.93365C13.2772 9.07275 13.6147 9.2859 13.8981 9.57308C14.1942 9.86026 14.4144 10.2029 14.5586 10.601C14.7029 10.999 14.7481 11.4154 14.6942 11.85Z",fill:t})}),Ba=({slotProps:e,...r})=>{const[t,a]=y.useState(!1),i=()=>{a(u=>!u)},s=u=>{u.preventDefault()},c=u=>{u.preventDefault()};return n(o.TextField,{type:t?"text":"password",slotProps:{...e,input:{...e==null?void 0:e.input,endAdornment:n(o.InputAdornment,{position:"end",children:n(o.IconButton,{"aria-label":t?"hide the password":"display the password",onClick:i,onMouseDown:s,onMouseUp:c,edge:"end",children:t?n(Va,{}):n(Pa,{})})})}},...r})},oe={large:{primary:40,secondary:32},medium:{primary:32,secondary:24},small:{primary:24,secondary:16}},Cr=e=>{if(e===void 0)return oe.medium.primary;if(typeof e=="number")return e;const r=parseFloat(e);return Number.isNaN(r)?oe.medium.primary:r},$a=(e,r)=>{if(r)return{height:oe[r].secondary,width:oe[r].secondary};if(!e||typeof e!="object")return{height:oe.medium.secondary,width:oe.medium.secondary};const{height:t,width:a}=e;return{height:Math.max(Cr(t)-(oe.medium.primary-oe.medium.secondary),oe.small.secondary),width:Math.max(Cr(a)-(oe.medium.primary-oe.medium.secondary),oe.small.secondary)}},Da=({secondarySrc:e,secondaryAvatarProps:r,size:t,...a})=>{if(!e)return n(o.Avatar,{...a,sx:{...t&&{height:oe[t].primary,width:oe[t].primary},...a.sx}});const{height:i,width:s}=$a(a.sx,t);return M(o.Box,{sx:{display:"flex",position:"relative"},children:[n(o.Avatar,{...a,sx:{...t&&{height:oe[t].primary,width:oe[t].primary},...a.sx}}),n(o.Avatar,{src:e,sx:{bottom:-(i/3),height:i,outline:({palette:c})=>`2px solid ${c.common.white}`,position:"absolute",right:-(s/3),width:s,...r==null?void 0:r.sx},...r})]})},Za=({children:e,permissions:r,disabledPermissions:t})=>{const[a,i]=y.useState(),s=y.useMemo(()=>({disabledPermissions:t,permissions:a,setPermissions:i}),[t,a]);return y.useEffect(()=>{i(r)},[r]),n(br.Provider,{value:s,children:e})},za={component:void 0,isOpen:!1,message:"",severity:"success",variant:"standard"},V1=y.createContext({closeSnackbar:()=>{},isOpen:!1,openSnackbar:()=>{}}),Na=({children:e,autoHideDuration:r=5e3,anchorOrigin:t={horizontal:"center",vertical:"bottom"}})=>{const[a,i]=y.useState(za),s=y.useCallback(d=>{i({component:d==null?void 0:d.component,isOpen:!0,message:(d==null?void 0:d.message)||"",severity:(d==null?void 0:d.severity)||"success",variant:(d==null?void 0:d.variant)||"standard"})},[]),c=y.useCallback((d,h)=>{h!=="clickaway"&&i(g=>({...g,isOpen:!1}))},[]),u=y.useMemo(()=>({closeSnackbar:c,isOpen:a.isOpen,openSnackbar:s}),[c,s,a.isOpen]);return M(V1.Provider,{value:u,children:[n(o.Snackbar,{open:a.isOpen,onClose:c,autoHideDuration:r,anchorOrigin:t,children:a.component?n(a.component,{}):n(o.Alert,{severity:a.severity,variant:a.variant,children:a.message})},a.message),e]})},ja=()=>{const e=y.useContext(V1),{isOpen:r,closeSnackbar:t,openSnackbar:a}=e;if(e===void 0)throw new Error("SnackbarProvider must be used within a useSnackBar hook");return{closeSnackbar:t,isOpen:r,openSnackbar:a}},Wa=()=>{const[e,r]=y.useState(0);return{handleChange:y.useCallback((a,i)=>{r(i)},[]),value:e}},Ya=e=>`linear-gradient(${o.alpha("#fff",+o.getOverlayAlpha(e))}, ${o.alpha("#fff",+o.getOverlayAlpha(e))})`;exports.ActionAppBar=T1;exports.AppBar=ua;exports.ArticleImage=ta;exports.AutocompleteFilter=Fa;exports.Avatar=Da;exports.AvatarAppBar=Vr;exports.Backoffice=la;exports.BottomFixedPaper=Ha;exports.Button=Xn;exports.CardModal=In;exports.Chip=ha;exports.DialogCloseIcon=Jn;exports.File=Ra;exports.FileViewer=i1;exports.HasPermission=gt;exports.Lightbox=O1;exports.LinkTab=Rn;exports.ListAvatar=Nr;exports.ListAvatars=Nr;exports.ListItemCard=Nn;exports.Logo=Or;exports.NavigationMenu=Bn;exports.NavigationMenuContext=Se;exports.PermissionProvider=Za;exports.QuantityField=Fn;exports.SnackbarContext=V1;exports.SnackbarProvider=Na;exports.StatusIcon=je;exports.TabPanel=Qn;exports.TextArea=Ln;exports.TextFieldAppBar=Br;exports.TextFieldPassword=Ba;exports.ThemeContext=P1;exports.ThemeProvider=wa;exports.TimeLine=sa;exports.TypographySkeleton=ea;exports.getBackgroundImageElevation=Ya;exports.pxToRem=X;exports.theme=ya;exports.useMenu=$r;exports.usePermission=yr;exports.useSnackbar=ja;exports.useTabs=Wa;Object.keys(o).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>o[e]})});
|
|
85
|
+
`}),t&&n(o.CssBaseline,{enableColorScheme:r}),i&&n(va,{}),a&&n(ma,{theme:s}),e]})})},Sa={clickToUpload:"Click to upload",files:"Files",reset:"Reset",selectAll:"Select all"},Ea={clickToUpload:"Cliquez pour télécharger",files:"Fichiers",reset:"Réinitialiser",selectAll:"Tout sélectionner"},Ma={en:Sa,fr:Ea},zr=()=>{const{language:e}=y.useContext(P1);return{t:t=>Ma[e][t]}},xr=5,Ta=(e,r)=>{const t=r==="vertical";return e==="small"?t?130:60:t?150:80},ka=e=>{if(!e)return"";const r=e.length>1,a=[...e||[]].slice(0,5).map(({name:i})=>{const s=i.split(".").pop();return i.length>10&&r?`${i.substring(0,10)}(...).${s}`:i}).join(" • ");return e.length>xr?`${a} + ${e.length-xr}`:a},Ra=({accept:e,name:r,disabled:t,required:a,error:i,localeText:s,multiple:c,id:u,size:d,helperText:h,fullWidth:g,icon:b,onChange:v,label:x,variant:T="vertical"})=>{const{t:m}=zr(),{palette:f}=o.useTheme(),w=T==="vertical",k=u||r,E=y.useRef(null),R=y.useRef(null),[p,L]=y.useState(null),I=ka(p),W=G=>{v==null||v(G),L(G.target.files)},O=G=>{G.preventDefault()},J=G=>{if(G.preventDefault(),G.dataTransfer.files.length>0){const Y=R.current,B=G.dataTransfer.files;L(B);const K=new DataTransfer;Array.from(B).forEach(ne=>K.items.add(ne)),Y&&(Y.files=K.files),Y==null||Y.focus(),Y==null||Y.blur(),v==null||v({...G,target:Y}),G.dataTransfer.clearData()}};return M(o.InputLabel,{ref:E,htmlFor:k,onDragOver:O,onDrop:J,sx:{"&:hover, &:focus":{borderColor:f.primary.main},border:`1px dashed ${i?f.error.main:f.divider}`,borderRadius:1,cursor:"pointer",height:Ta(d,T),maxWidth:g?"100%":400,padding:2,position:"relative",width:"100%"},children:[M(o.Stack,{alignItems:"center",height:"100%",direction:w?"column":"row",justifyContent:w?"center":"flex-start",textAlign:w?"center":"left",spacing:.5,color:t?"text.disabled":"text.secondary",children:[b||n(ga,{sx:{height:40,width:40}}),I?M(fe,{children:[M(o.Typography,{variant:"body2",color:"textSecondary",children:[p==null?void 0:p.length," ",(s==null?void 0:s.files)||m("files")]}),n(o.Typography,{variant:"body2",color:"primary",whiteSpace:w?"normal":"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:I})]}):M(o.Typography,{variant:"subtitle1",color:t?"text.disabled":"primary",children:[x||m("clickToUpload")," ",a&&"*"]}),h&&n(o.Typography,{color:i?"error":"textSecondary",variant:"body2",children:h})]}),n("input",{ref:R,type:"file",disabled:t,required:a,name:r,multiple:c,accept:e,id:k,onChange:W,style:{left:"50%",opacity:0,pointerEvents:"none",position:"absolute",top:"50%",transform:"translate(-50%, -50%)",zIndex:-1}})]})},ze=1,Aa=e=>typeof e=="string",Ne={list:{marginLeft:({spacing:e})=>`-${e(.5)} !important`,marginRight:({spacing:e})=>`-${e(.5)} !important`,minWidth:250},listItem:{borderRadius:1,padding:.5}},Nr=({Empty:e,action:r,items:t,fullWidth:a,sx:i,alwaysDisplaySecondaryAction:s,isLoading:c,disableLightbox:u,numberLoadingItems:d=3})=>{var b;const[h,g]=y.useState("");return!(t!=null&&t.length)&&!c&&!r?e||null:c?n(o.List,{sx:{...Ne.list,...a&&{width:"100%"}},children:[...Array(d).keys()].map(v=>M(o.ListItem,{sx:Ne.listItem,children:[n(o.Skeleton,{width:40,height:40,sx:{marginRight:ze},variant:"rounded"}),n(o.ListItemText,{primary:n(o.Typography,{variant:"h6",children:n(o.Skeleton,{width:90})}),secondary:n(o.Skeleton,{width:70}),sx:{marginY:0}})]},v))}):M(o.List,{sx:{...Ne.list,...a&&{width:"100%"},...i},children:[t==null?void 0:t.map(({id:v,title:x,subtitle:T,image:m,thumbnail:f,secondaryAction:w,chipLabel:k,chipColor:E,onClick:R,icon:p,Avatar:L},I)=>{var q,ee,se,ye;const W=`key-${I}-${x}-${v}`,O=(q=m==null?void 0:m.toLowerCase())==null?void 0:q.endsWith(".pdf"),J=(ee=m==null?void 0:m.toLowerCase())==null?void 0:ee.startsWith("http"),G=(se=f==null?void 0:f.toLowerCase())==null?void 0:se.startsWith("http"),Y=R?"none":void 0,B=u||!!p||!J,K=!!R||!!(!R&&!u&&(f||m)),ne=h===W,_=(G?f:"")||(J?m:"")||"";return M(o.ListItem,{secondaryAction:w,onClick:he=>{R==null||R(he),K&&!ne&&!R&&g(W)},sx:{...Ne.listItem,"& .MuiListItemSecondaryAction-root":{alignItems:"center",display:"flex",justifyContent:"center",opacity:s?1:0,position:"static",right:({spacing:he})=>he(.5),transform:"none"},"&:hover":{"& .MuiListItemSecondaryAction-root":{opacity:1},backgroundColor:({palette:he})=>K?he.action.hover:"transparent"},cursor:K?"pointer":"default"},children:[L!==void 0&&n(o.Box,{marginRight:ze,children:L}),!L&&O&&n(i1,{src:m,srcThumb:f,width:40,height:40,sx:{borderRadius:1,marginRight:ze},disableLightbox:u,open:ne,onClose:()=>g("")}),!L&&!O&&n(i1,{disableThumb:!0,src:m,srcThumb:f,disableLightbox:B,open:ne,onClose:()=>g(""),children:n(o.Avatar,{src:_,variant:"rounded",sx:{marginRight:ze},children:p||typeof x=="string"&&((ye=x||"")==null?void 0:ye.charAt(0).toUpperCase())})}),n(o.ListItemText,{primary:M(o.Stack,{direction:"row",alignItems:"center",spacing:1,children:[x&&n(o.Typography,{variant:"h6",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:x}),k&&n(o.Chip,{label:k,variant:"rounded",size:"xSmall",color:Aa(E)?E:"default"})]}),secondary:T,primaryTypographyProps:{component:"div"},secondaryTypographyProps:{component:"div"},sx:{marginY:0,userSelect:Y}})]},W)}),r&&M(o.ListItemButton,{onClick:r==null?void 0:r.onClick,sx:{...Ne.listItem,"&:hover":{backgroundColor:({palette:v})=>v.action.hover}},children:[n(o.Avatar,{src:(r==null?void 0:r.image)||"",variant:"rounded",sx:{marginRight:ze},children:(r==null?void 0:r.icon)||((b=r==null?void 0:r.title)==null?void 0:b.charAt(0).toUpperCase())}),n(o.ListItemText,{primary:(r==null?void 0:r.title)&&n(o.Typography,{variant:"h6",children:r==null?void 0:r.title}),secondary:r==null?void 0:r.subtitle,sx:{marginY:0}})]})]})},R1={padding:0,paddingRight:1},Ia=e=>function(t){return n(o.Badge,{badgeContent:`+${t}`,color:e,sx:{"& .MuiBadge-badge":{position:"relative",transform:"none"},alignItems:"center"}})},_a=({children:e,disableSelectAll:r,localeText:t,disableReset:a,onChange:i,loading:s,options:c,value:u,multiple:d,...h})=>{const{t:g}=zr(),b=Array.isArray(u)?(u==null?void 0:u.length)===(c==null?void 0:c.length):!1,v=c==null?void 0:c.filter(x=>x==null?void 0:x.isHeader);return M(o.Paper,{...h,children:[d&&!s&&(!r||!!(v!=null&&v.length))&&M(fe,{children:[M(o.List,{role:"listbox",children:[!r&&n(o.ListItem,{disablePadding:!0,role:"option",onMouseDown:x=>{if(x.stopPropagation(),x.preventDefault(),b){i==null||i(x,[],"removeOption");return}i==null||i(x,c||[],"selectOption")},children:M(o.ListItemButton,{disableRipple:!0,children:[n(o.Checkbox,{disableRipple:!0,id:"select-all-checkbox",checked:b,sx:R1}),n(o.ListItemText,{primary:(t==null?void 0:t.selectAll)||g("selectAll"),primaryTypographyProps:{variant:"body2"}}),!a&&n(o.Button,{variant:"link",size:"small",sx:{marginX:1,textDecoration:"none"},onClick:x=>{i==null||i(x,[],"removeOption")},onMouseDown:x=>{x.stopPropagation(),x.preventDefault()},children:n(o.Typography,{variant:"body2",children:(t==null?void 0:t.reset)||g("reset")})})]})}),v==null?void 0:v.map((x,T)=>{const m=`header-options-${x==null?void 0:x.id}-${T}`,f=Array.isArray(u)&&u.some(w=>JSON.stringify(w)===JSON.stringify(x)||w&&typeof w=="object"&&"id"in w&&(w==null?void 0:w.id)===(x==null?void 0:x.id));return n(o.ListItem,{disablePadding:!0,onMouseDown:w=>{if(w.stopPropagation(),w.preventDefault(),f){const k=Array.isArray(u)?u==null?void 0:u.filter(E=>!(JSON.stringify(E)===JSON.stringify(x)||E&&typeof E=="object"&&"id"in E&&(E==null?void 0:E.id)===(x==null?void 0:x.id))):[];i==null||i(w,k,"removeOption");return}i==null||i(w,[...Array.isArray(u)?u:[],x],"selectOption")},children:M(o.ListItemButton,{disableRipple:!0,children:[n(o.Checkbox,{disableRipple:!0,checked:f,sx:R1}),n(o.ListItemText,{primary:x==null?void 0:x.label})]})},m)})]}),n(o.Divider,{})]}),e]})},La=({onChange:e,disableCheckbox:r,placeholder:t,localeText:a,disableReset:i,disableSelectAll:s,value:c,onFocus:u,onBlur:d,open:h,onInputChange:g,inputValue:b,disableClearable:v,loading:x,resetInputValueOnSelectOption:T,renderOption:m,renderTags:f,size:w="small",disableCloseOnSelect:k=!0,multiple:E=!0,options:R=[],slotProps:p,...L},I)=>{const{palette:W}=o.useTheme(),[O,J]=y.useState(!1),[G,Y]=y.useState(""),B=W.mode==="light"?"default":"primary",K=b||G,ne=E?c||[]:c||null,be=(Z,_,q,ee)=>{if(_===null){e==null||e(Z,E?[]:null,q,ee);return}e==null||e(Z,_,q,ee),(!k||!E)&&J(!1)};return n(o.Autocomplete,{freeSolo:!1,multiple:E,disableClearable:v,value:ne,loading:x,options:R,ref:I,size:w,disableCloseOnSelect:k,onChange:be,getLimitTagsText:Ia(B),inputValue:K,open:h||O,onOpen:()=>J(!0),slots:{paper:_a},slotProps:{...p,paper:{disableReset:i,disableSelectAll:s,loading:x,localeText:a,multiple:E,onChange:e,options:R,value:c,...p==null?void 0:p.paper}},onInputChange:(Z,_,q)=>{q==="reset"&&O&&!T||q==="selectOption"&&!T||q==="removeOption"&&!T||(b||Y(_),g==null||g(Z,_,q))},onFocus:Z=>{J(!0),u==null||u(Z)},onBlur:Z=>{J(!1),d==null||d(Z)},renderOption:m||((Z,_,{selected:q})=>{var se;if(x||_!=null&&_.isHeader)return null;const ee=`${_==null?void 0:_.id}-${Z==null?void 0:Z.key}`;return pt.createElement(o.ListItem,{...Z,key:ee},!r&&n(o.Checkbox,{disableRipple:!0,checked:q,sx:R1}),(_==null?void 0:_.image)&&n(o.ListItemAvatar,{sx:{height:24,marginRight:1,minWidth:"auto",width:24},children:n(o.Avatar,{variant:"rounded",src:_==null?void 0:_.image,sx:{height:24,width:24},children:(_==null?void 0:_.image)==="letter"&&typeof(_==null?void 0:_.label)=="string"&&((se=_==null?void 0:_.label)==null?void 0:se.charAt(0).toUpperCase())})}),typeof(_==null?void 0:_.label)=="string"?n(o.Typography,{variant:"body2",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",title:_==null?void 0:_.label,children:_.label}):_==null?void 0:_.label)}),renderTags:f||((Z,_,q)=>Array.isArray(Z)?Z.map((ee,se)=>{const{key:ye}=_({index:se});return q!=null&&q.focused?null:n(o.Typography,{marginX:1,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:ee==null?void 0:ee.label},ye)}):null),...L,renderInput:Z=>{var ee,se;const _=()=>{if(!(!O&&(Array.isArray(c)&&c.length||!Array.isArray(c)&&c)))return t},q=y.isValidElement((ee=Z.InputProps)==null?void 0:ee.endAdornment)?(se=Z.InputProps)==null?void 0:se.endAdornment:null;return n(o.TextField,{sx:{".MuiInputBase-root .MuiInputBase-input":{flex:!E||!O&&!K||O?1:0,minWidth:0}},...Z,slotProps:{input:{...Z.InputProps,endAdornment:O?M(o.InputAdornment,{position:"end",sx:{position:"absolute",right:9},children:[O&&K&&!v&&n(o.IconButton,{size:"small",onClick:()=>Y(""),sx:{marginRight:"-3px"},children:n(L1,{sx:{fontSize:X(20)}})}),q==null?void 0:q.props.children[1]]}):q}},placeholder:_()})}})},Fa=y.forwardRef(La),Oa=({in:e,children:r,sx:t,padding:a,direction:i,position:s="fixed",mountOnEnter:c=!0,unmountOnExit:u=!0,...d},h)=>n(o.Slide,{mountOnEnter:c,unmountOnExit:u,in:e===void 0?!0:e,direction:"up",children:n(o.Paper,{square:!0,elevation:0,ref:h,sx:{borderTop:({palette:g})=>`1px solid ${g.divider}`,bottom:0,left:0,padding:a,paddingX:a?void 0:2,paddingY:a?void 0:3,position:s,right:0,zIndex:10,...i==="column"&&{display:"flex",flexDirection:"column"},...i==="row"&&{display:"flex",flexDirection:"row"},...t},...d,children:r})}),Ha=y.forwardRef(Oa),Pa=({sx:e,fontSize:r,color:t="currentColor"})=>n(o.SvgIcon,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",fontSize:r,sx:e,children:n("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:t})}),Va=({sx:e,fontSize:r,color:t="currentColor"})=>n(o.SvgIcon,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",fontSize:r,sx:e,children:n("path",{d:"M19.7231 21.1385L15.8308 17.2577C15.3884 17.4539 14.8394 17.6266 14.1836 17.776C13.5279 17.9253 12.8 18 12 18C9.81665 18 7.83139 17.4035 6.0442 16.2106C4.25702 15.0176 2.93459 13.4474 2.0769 11.5C2.46535 10.6167 2.97753 9.78943 3.61343 9.01828C4.24933 8.24713 4.92818 7.60001 5.64998 7.07693L2.8615 4.27693L3.5692 3.56923L20.4308 20.4308L19.7231 21.1385ZM12 15.1539C12.2346 15.1539 12.492 15.1263 12.7721 15.0712C13.0522 15.016 13.2711 14.9442 13.4288 14.8558L8.6442 10.0712C8.55574 10.2545 8.48395 10.483 8.42883 10.7567C8.3737 11.0304 8.34613 11.2782 8.34613 11.5C8.34613 12.5192 8.7003 13.383 9.40863 14.0914C10.117 14.7997 10.9807 15.1539 12 15.1539ZM18.6077 15.7192L15.5096 12.6462C15.5493 12.5039 15.5833 12.3349 15.6115 12.1394C15.6397 11.9439 15.6538 11.7308 15.6538 11.5C15.6538 10.4808 15.2997 9.61699 14.5913 8.90865C13.883 8.20032 13.0192 7.84615 12 7.84615C11.7692 7.84615 11.5625 7.86346 11.3798 7.89808C11.1971 7.9327 11.0282 7.98462 10.8731 8.05385L8.4192 5.61923C8.99997 5.4 9.591 5.24198 10.1923 5.14518C10.7936 5.0484 11.3961 5 12 5C14.1705 5 16.1558 5.59648 17.9558 6.78943C19.7558 7.98238 21.0782 9.55257 21.9231 11.5C21.5654 12.3039 21.1125 13.0593 20.5644 13.7664C20.0163 14.4734 19.3641 15.1244 18.6077 15.7192ZM14.6942 11.85L11.675 8.85C12.0904 8.76667 12.4939 8.79455 12.8856 8.93365C13.2772 9.07275 13.6147 9.2859 13.8981 9.57308C14.1942 9.86026 14.4144 10.2029 14.5586 10.601C14.7029 10.999 14.7481 11.4154 14.6942 11.85Z",fill:t})}),Ba=({slotProps:e,...r})=>{const[t,a]=y.useState(!1),i=()=>{a(u=>!u)},s=u=>{u.preventDefault()},c=u=>{u.preventDefault()};return n(o.TextField,{type:t?"text":"password",slotProps:{...e,input:{...e==null?void 0:e.input,endAdornment:n(o.InputAdornment,{position:"end",children:n(o.IconButton,{"aria-label":t?"hide the password":"display the password",onClick:i,onMouseDown:s,onMouseUp:c,edge:"end",children:t?n(Va,{}):n(Pa,{})})})}},...r})},oe={large:{primary:40,secondary:32},medium:{primary:32,secondary:24},small:{primary:24,secondary:16}},$a=e=>e!==void 0&&typeof e=="object"&&!Array.isArray(e),Cr=e=>{if(e===void 0)return oe.medium.primary;if(typeof e=="number")return e;const r=parseFloat(e);return Number.isNaN(r)?oe.medium.primary:r},Da=(e,r)=>{if(r)return{height:oe[r].secondary,width:oe[r].secondary};if($a(e)){const{height:t,width:a}=e;return{height:Math.max(Cr(t)-(oe.medium.primary-oe.medium.secondary),oe.small.secondary),width:Math.max(Cr(a)-(oe.medium.primary-oe.medium.secondary),oe.small.secondary)}}return{height:oe.medium.secondary,width:oe.medium.secondary}},Za=({secondarySrc:e,secondaryAvatarProps:r,size:t,...a})=>{if(e){const{height:i,width:s}=Da(a.sx,t);return M(o.Box,{sx:{display:"flex",position:"relative"},children:[n(o.Avatar,{...a,sx:{...t&&{height:oe[t].primary,width:oe[t].primary},...a.sx}}),n(o.Avatar,{src:e,sx:{bottom:-(i/3),height:i,outline:({palette:c})=>`2px solid ${c.common.white}`,position:"absolute",right:-(s/3),width:s,...r==null?void 0:r.sx},...r})]})}return n(o.Avatar,{...a,sx:{...t&&{height:oe[t].primary,width:oe[t].primary},...a.sx}})},za=({children:e,permissions:r,disabledPermissions:t})=>{const[a,i]=y.useState(),s=y.useMemo(()=>({disabledPermissions:t,permissions:a,setPermissions:i}),[t,a]);return y.useEffect(()=>{i(r)},[r]),n(br.Provider,{value:s,children:e})},Na={component:void 0,isOpen:!1,message:"",severity:"success",variant:"standard"},V1=y.createContext({closeSnackbar:()=>{},isOpen:!1,openSnackbar:()=>{}}),ja=({children:e,autoHideDuration:r=5e3,anchorOrigin:t={horizontal:"center",vertical:"bottom"}})=>{const[a,i]=y.useState(Na),s=y.useCallback(d=>{i({component:d==null?void 0:d.component,isOpen:!0,message:(d==null?void 0:d.message)||"",severity:(d==null?void 0:d.severity)||"success",variant:(d==null?void 0:d.variant)||"standard"})},[]),c=y.useCallback((d,h)=>{h!=="clickaway"&&i(g=>({...g,isOpen:!1}))},[]),u=y.useMemo(()=>({closeSnackbar:c,isOpen:a.isOpen,openSnackbar:s}),[c,s,a.isOpen]);return M(V1.Provider,{value:u,children:[n(o.Snackbar,{open:a.isOpen,onClose:c,autoHideDuration:r,anchorOrigin:t,children:a.component?n(a.component,{}):n(o.Alert,{severity:a.severity,variant:a.variant,children:a.message})},a.message),e]})},Wa=()=>{const e=y.useContext(V1),{isOpen:r,closeSnackbar:t,openSnackbar:a}=e;if(e===void 0)throw new Error("SnackbarProvider must be used within a useSnackBar hook");return{closeSnackbar:t,isOpen:r,openSnackbar:a}},Ya=()=>{const[e,r]=y.useState(0);return{handleChange:y.useCallback((a,i)=>{r(i)},[]),value:e}},Ua=e=>`linear-gradient(${o.alpha("#fff",+o.getOverlayAlpha(e))}, ${o.alpha("#fff",+o.getOverlayAlpha(e))})`;exports.ActionAppBar=T1;exports.AppBar=ua;exports.ArticleImage=ta;exports.AutocompleteFilter=Fa;exports.Avatar=Za;exports.AvatarAppBar=Vr;exports.Backoffice=la;exports.BottomFixedPaper=Ha;exports.Button=Xn;exports.CardModal=In;exports.Chip=ha;exports.DialogCloseIcon=Jn;exports.File=Ra;exports.FileViewer=i1;exports.HasPermission=gt;exports.Lightbox=O1;exports.LinkTab=Rn;exports.ListAvatar=Nr;exports.ListAvatars=Nr;exports.ListItemCard=Nn;exports.Logo=Or;exports.NavigationMenu=Bn;exports.NavigationMenuContext=Se;exports.PermissionProvider=za;exports.QuantityField=Fn;exports.SnackbarContext=V1;exports.SnackbarProvider=ja;exports.StatusIcon=je;exports.TabPanel=Qn;exports.TextArea=Ln;exports.TextFieldAppBar=Br;exports.TextFieldPassword=Ba;exports.ThemeContext=P1;exports.ThemeProvider=wa;exports.TimeLine=sa;exports.TypographySkeleton=ea;exports.getBackgroundImageElevation=Ua;exports.pxToRem=X;exports.theme=ya;exports.useMenu=$r;exports.usePermission=yr;exports.useSnackbar=Wa;exports.useTabs=Ya;Object.keys(o).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>o[e]})});
|
package/dist/main.js
CHANGED
|
@@ -28,7 +28,7 @@ const Cn = {
|
|
|
28
28
|
permissions: e,
|
|
29
29
|
setPermissions: r
|
|
30
30
|
};
|
|
31
|
-
},
|
|
31
|
+
}, Aa = ({ children: e, fallback: r, name: t, additionalPermissions: i }) => {
|
|
32
32
|
const { hasPermission: a } = xn(), o = a(t, i);
|
|
33
33
|
return o ? e : !o && r ? r : null;
|
|
34
34
|
};
|
|
@@ -2094,7 +2094,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
2094
2094
|
]
|
|
2095
2095
|
}
|
|
2096
2096
|
);
|
|
2097
|
-
}, Ai = x1(ki),
|
|
2097
|
+
}, Ai = x1(ki), _a = ({ component: e = "a", ...r }) => /* @__PURE__ */ n(Gt, { component: e, onClick: (t) => t.preventDefault(), ...r }), _i = ({ children: e, sx: r, ...t }, i) => /* @__PURE__ */ n(
|
|
2098
2098
|
ir,
|
|
2099
2099
|
{
|
|
2100
2100
|
sx: {
|
|
@@ -2114,7 +2114,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
2114
2114
|
...t,
|
|
2115
2115
|
children: e
|
|
2116
2116
|
}
|
|
2117
|
-
),
|
|
2117
|
+
), Fa = x1(_i), Fi = ({ className: e, style: r, minRows: t = 4, ...i }, a) => {
|
|
2118
2118
|
const { palette: o, shape: l, spacing: d } = C1();
|
|
2119
2119
|
return /* @__PURE__ */ E(v1, { children: [
|
|
2120
2120
|
/* @__PURE__ */ n(
|
|
@@ -2151,7 +2151,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
2151
2151
|
}
|
|
2152
2152
|
)
|
|
2153
2153
|
] });
|
|
2154
|
-
},
|
|
2154
|
+
}, Ia = x1(Fi), La = ({ fullWidth: e, value: r, setValue: t, min: i = 1, max: a = 50, ...o }) => /* @__PURE__ */ n(
|
|
2155
2155
|
Re,
|
|
2156
2156
|
{
|
|
2157
2157
|
onChange: (x) => {
|
|
@@ -2465,7 +2465,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
2465
2465
|
]
|
|
2466
2466
|
);
|
|
2467
2467
|
return /* @__PURE__ */ n(j1.Provider, { value: S, children: /* @__PURE__ */ n(Hi, {}) });
|
|
2468
|
-
},
|
|
2468
|
+
}, Ha = tt(Oi), Vi = "No data", Wr = {
|
|
2469
2469
|
large: 80,
|
|
2470
2470
|
medium: 50,
|
|
2471
2471
|
small: 40
|
|
@@ -2493,7 +2493,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
2493
2493
|
...c,
|
|
2494
2494
|
children: /* @__PURE__ */ n(H, { flex: "auto", minWidth: 0, children: e })
|
|
2495
2495
|
}
|
|
2496
|
-
),
|
|
2496
|
+
), Oa = tt(x1(Di)), Bi = ["warning", "info", "success", "error", "primary", "secondary"], Zi = (e) => Bi.includes(e), zi = ({ color: e, sx: r, variant: t = "filled", fontSize: i = "medium" }, a) => {
|
|
2497
2497
|
var g;
|
|
2498
2498
|
const { palette: o } = C1(), l = o.mode === "dark" ? o.text.disabled : o.grey[400], d = e || l, c = Zi(e) ? (g = o == null ? void 0 : o[e]) == null ? void 0 : g.main : d, f = m1(c, 0.2);
|
|
2499
2499
|
return /* @__PURE__ */ E(
|
|
@@ -2598,7 +2598,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
2598
2598
|
)
|
|
2599
2599
|
}
|
|
2600
2600
|
);
|
|
2601
|
-
},
|
|
2601
|
+
}, Va = x1(ji), mt = ({ children: e, open: r, onClose: t, src: i, ...a }) => {
|
|
2602
2602
|
const [o, l] = i1(!1), d = () => {
|
|
2603
2603
|
l(!0);
|
|
2604
2604
|
}, c = (f, g) => (f && (t == null || t(f, g), l(!1)), (x) => {
|
|
@@ -2643,7 +2643,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
2643
2643
|
}
|
|
2644
2644
|
)
|
|
2645
2645
|
] }) });
|
|
2646
|
-
},
|
|
2646
|
+
}, $a = ({ onClick: e }) => /* @__PURE__ */ n(
|
|
2647
2647
|
k1,
|
|
2648
2648
|
{
|
|
2649
2649
|
"aria-label": "close",
|
|
@@ -2671,7 +2671,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
2671
2671
|
children: e
|
|
2672
2672
|
}
|
|
2673
2673
|
) : null;
|
|
2674
|
-
},
|
|
2674
|
+
}, Pa = x1(Yi), Da = ({
|
|
2675
2675
|
isLoading: e,
|
|
2676
2676
|
children: r,
|
|
2677
2677
|
emptyText: t,
|
|
@@ -2680,7 +2680,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
2680
2680
|
}) => e ? /* @__PURE__ */ n(q, { ...i, children: /* @__PURE__ */ n(h1, { ...a }) }) : r ? /* @__PURE__ */ n(q, { ...i, children: r }) : /* @__PURE__ */ n(q, { ...i, color: "text.disabled", children: t }), Ui = (e, r, t) => {
|
|
2681
2681
|
const { w: i, h: a } = { h: Number(r), w: Number(e) };
|
|
2682
2682
|
return i < 25 || a < 25 ? { borderRadius: `${t.borderRadiusS}px`, padding: 0.5 } : i < 50 || a < 50 ? { borderRadius: `${t.borderRadius}px`, padding: 1 } : { borderRadius: `${t.borderRadiusL}px`, padding: 1.5 };
|
|
2683
|
-
}, jr = ({ width: e, height: r, sx: t }) => /* @__PURE__ */ n(h1, { variant: "rounded", width: e, height: r, sx: t }),
|
|
2683
|
+
}, jr = ({ width: e, height: r, sx: t }) => /* @__PURE__ */ n(h1, { variant: "rounded", width: e, height: r, sx: t }), Ba = ({ src: e, isLoading: r, sx: t, width: i = 64, height: a = 64, alt: o = "Article" }) => {
|
|
2684
2684
|
const [l, d] = i1(), [c, f] = i1(), { shape: g } = C1(), { borderRadius: x, padding: y } = Ui(i, a, g), h = { borderRadius: x, flexShrink: 0 }, M = e && !l && !c, b = !e || c && !l || c && l, p = (m) => {
|
|
2685
2685
|
f(void 0), d(m);
|
|
2686
2686
|
};
|
|
@@ -3070,7 +3070,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
3070
3070
|
},
|
|
3071
3071
|
children: /* @__PURE__ */ n(en, { children: e })
|
|
3072
3072
|
}
|
|
3073
|
-
),
|
|
3073
|
+
), Za = ({
|
|
3074
3074
|
items: e,
|
|
3075
3075
|
isLoading: r,
|
|
3076
3076
|
emptyMessage: t,
|
|
@@ -3129,7 +3129,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
3129
3129
|
) }),
|
|
3130
3130
|
/* @__PURE__ */ n(mt, { open: !!d, onClose: () => c(""), src: d })
|
|
3131
3131
|
] });
|
|
3132
|
-
},
|
|
3132
|
+
}, za = ({ Main: e, Sidebar: r, AppBar: t }) => {
|
|
3133
3133
|
const { breakpoints: i } = C1(), a = Ee(null), o = se(i.down("md")), l = r && lr(r, { AppBar: t });
|
|
3134
3134
|
return /* @__PURE__ */ E(B, { height: "100%", children: [
|
|
3135
3135
|
!o && t,
|
|
@@ -3513,7 +3513,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
3513
3513
|
isMenuOpen: t,
|
|
3514
3514
|
openMenu: a
|
|
3515
3515
|
};
|
|
3516
|
-
}, ta = "appBarAvatarMenu",
|
|
3516
|
+
}, ta = "appBarAvatarMenu", Na = ({
|
|
3517
3517
|
Avatar: e,
|
|
3518
3518
|
Search: r,
|
|
3519
3519
|
Action: t,
|
|
@@ -3653,7 +3653,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
3653
3653
|
...i
|
|
3654
3654
|
}
|
|
3655
3655
|
);
|
|
3656
|
-
},
|
|
3656
|
+
}, Wa = x1(ia), aa = ({ fontSize: e, sx: r, color: t = "currentColor" }) => /* @__PURE__ */ E(y1, { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: e, sx: r, children: [
|
|
3657
3657
|
/* @__PURE__ */ n("g", { clipPath: "url(#clip0_12914_201806)", children: /* @__PURE__ */ n(
|
|
3658
3658
|
"path",
|
|
3659
3659
|
{
|
|
@@ -4567,7 +4567,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
4567
4567
|
letterSpacing: -0.3
|
|
4568
4568
|
}
|
|
4569
4569
|
})
|
|
4570
|
-
}, tr = sr(Z1(hr)), vt = sr(Z1(hr, Ki)), wt = sr(Z1(hr, L)),
|
|
4570
|
+
}, tr = sr(Z1(hr)), vt = sr(Z1(hr, Ki)), wt = sr(Z1(hr, L)), ja = {
|
|
4571
4571
|
commonTheme: tr,
|
|
4572
4572
|
darkTheme: wt,
|
|
4573
4573
|
lightTheme: vt
|
|
@@ -4621,7 +4621,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
4621
4621
|
}
|
|
4622
4622
|
`
|
|
4623
4623
|
}
|
|
4624
|
-
),
|
|
4624
|
+
), Ya = ({
|
|
4625
4625
|
children: e,
|
|
4626
4626
|
enableColorScheme: r,
|
|
4627
4627
|
includeCssBaseline: t = !0,
|
|
@@ -4692,7 +4692,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
4692
4692
|
return a.length > 10 && r ? `${a.substring(0, 10)}(...).${o}` : a;
|
|
4693
4693
|
}).join(" • ");
|
|
4694
4694
|
return e.length > qr ? `${i} + ${e.length - qr}` : i;
|
|
4695
|
-
},
|
|
4695
|
+
}, Ua = ({
|
|
4696
4696
|
accept: e,
|
|
4697
4697
|
name: r,
|
|
4698
4698
|
disabled: t,
|
|
@@ -4816,7 +4816,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
4816
4816
|
borderRadius: 1,
|
|
4817
4817
|
padding: 0.5
|
|
4818
4818
|
}
|
|
4819
|
-
},
|
|
4819
|
+
}, Ga = ({
|
|
4820
4820
|
Empty: e,
|
|
4821
4821
|
action: r,
|
|
4822
4822
|
items: t,
|
|
@@ -5200,7 +5200,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
5200
5200
|
}
|
|
5201
5201
|
}
|
|
5202
5202
|
);
|
|
5203
|
-
},
|
|
5203
|
+
}, Xa = x1(ya), ma = ({
|
|
5204
5204
|
in: e,
|
|
5205
5205
|
children: r,
|
|
5206
5206
|
sx: t,
|
|
@@ -5239,7 +5239,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
5239
5239
|
...c,
|
|
5240
5240
|
children: r
|
|
5241
5241
|
}
|
|
5242
|
-
) }),
|
|
5242
|
+
) }), qa = x1(ma), va = ({ sx: e, fontSize: r, color: t = "currentColor" }) => /* @__PURE__ */ n(y1, { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", fontSize: r, sx: e, children: /* @__PURE__ */ n(
|
|
5243
5243
|
"path",
|
|
5244
5244
|
{
|
|
5245
5245
|
d: "M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",
|
|
@@ -5251,7 +5251,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
5251
5251
|
d: "M19.7231 21.1385L15.8308 17.2577C15.3884 17.4539 14.8394 17.6266 14.1836 17.776C13.5279 17.9253 12.8 18 12 18C9.81665 18 7.83139 17.4035 6.0442 16.2106C4.25702 15.0176 2.93459 13.4474 2.0769 11.5C2.46535 10.6167 2.97753 9.78943 3.61343 9.01828C4.24933 8.24713 4.92818 7.60001 5.64998 7.07693L2.8615 4.27693L3.5692 3.56923L20.4308 20.4308L19.7231 21.1385ZM12 15.1539C12.2346 15.1539 12.492 15.1263 12.7721 15.0712C13.0522 15.016 13.2711 14.9442 13.4288 14.8558L8.6442 10.0712C8.55574 10.2545 8.48395 10.483 8.42883 10.7567C8.3737 11.0304 8.34613 11.2782 8.34613 11.5C8.34613 12.5192 8.7003 13.383 9.40863 14.0914C10.117 14.7997 10.9807 15.1539 12 15.1539ZM18.6077 15.7192L15.5096 12.6462C15.5493 12.5039 15.5833 12.3349 15.6115 12.1394C15.6397 11.9439 15.6538 11.7308 15.6538 11.5C15.6538 10.4808 15.2997 9.61699 14.5913 8.90865C13.883 8.20032 13.0192 7.84615 12 7.84615C11.7692 7.84615 11.5625 7.86346 11.3798 7.89808C11.1971 7.9327 11.0282 7.98462 10.8731 8.05385L8.4192 5.61923C8.99997 5.4 9.591 5.24198 10.1923 5.14518C10.7936 5.0484 11.3961 5 12 5C14.1705 5 16.1558 5.59648 17.9558 6.78943C19.7558 7.98238 21.0782 9.55257 21.9231 11.5C21.5654 12.3039 21.1125 13.0593 20.5644 13.7664C20.0163 14.4734 19.3641 15.1244 18.6077 15.7192ZM14.6942 11.85L11.675 8.85C12.0904 8.76667 12.4939 8.79455 12.8856 8.93365C13.2772 9.07275 13.6147 9.2859 13.8981 9.57308C14.1942 9.86026 14.4144 10.2029 14.5586 10.601C14.7029 10.999 14.7481 11.4154 14.6942 11.85Z",
|
|
5252
5252
|
fill: t
|
|
5253
5253
|
}
|
|
5254
|
-
) }),
|
|
5254
|
+
) }), Ja = ({ slotProps: e, ...r }) => {
|
|
5255
5255
|
const [t, i] = i1(!1), a = () => {
|
|
5256
5256
|
i((d) => !d);
|
|
5257
5257
|
}, o = (d) => {
|
|
@@ -5296,70 +5296,72 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
5296
5296
|
primary: 24,
|
|
5297
5297
|
secondary: 16
|
|
5298
5298
|
}
|
|
5299
|
-
}, Jr = (e) => {
|
|
5299
|
+
}, Ea = (e) => e !== void 0 && typeof e == "object" && !Array.isArray(e), Jr = (e) => {
|
|
5300
5300
|
if (e === void 0) return l1.medium.primary;
|
|
5301
5301
|
if (typeof e == "number")
|
|
5302
5302
|
return e;
|
|
5303
5303
|
const r = parseFloat(e);
|
|
5304
5304
|
return Number.isNaN(r) ? l1.medium.primary : r;
|
|
5305
|
-
},
|
|
5305
|
+
}, Ma = (e, r) => {
|
|
5306
5306
|
if (r)
|
|
5307
5307
|
return {
|
|
5308
5308
|
height: l1[r].secondary,
|
|
5309
5309
|
width: l1[r].secondary
|
|
5310
5310
|
};
|
|
5311
|
-
if (
|
|
5311
|
+
if (Ea(e)) {
|
|
5312
|
+
const { height: t, width: i } = e;
|
|
5312
5313
|
return {
|
|
5313
|
-
height: l1.medium.secondary,
|
|
5314
|
-
width: l1.medium.secondary
|
|
5314
|
+
height: Math.max(Jr(t) - (l1.medium.primary - l1.medium.secondary), l1.small.secondary),
|
|
5315
|
+
width: Math.max(Jr(i) - (l1.medium.primary - l1.medium.secondary), l1.small.secondary)
|
|
5315
5316
|
};
|
|
5316
|
-
|
|
5317
|
+
}
|
|
5317
5318
|
return {
|
|
5318
|
-
height:
|
|
5319
|
-
width:
|
|
5319
|
+
height: l1.medium.secondary,
|
|
5320
|
+
width: l1.medium.secondary
|
|
5320
5321
|
};
|
|
5321
|
-
},
|
|
5322
|
-
if (
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
...
|
|
5329
|
-
|
|
5322
|
+
}, Ka = ({ secondarySrc: e, secondaryAvatarProps: r, size: t, ...i }) => {
|
|
5323
|
+
if (e) {
|
|
5324
|
+
const { height: a, width: o } = Ma(i.sx, t);
|
|
5325
|
+
return /* @__PURE__ */ E(H, { sx: { display: "flex", position: "relative" }, children: [
|
|
5326
|
+
/* @__PURE__ */ n(
|
|
5327
|
+
H1,
|
|
5328
|
+
{
|
|
5329
|
+
...i,
|
|
5330
|
+
sx: {
|
|
5331
|
+
...t && { height: l1[t].primary, width: l1[t].primary },
|
|
5332
|
+
...i.sx
|
|
5333
|
+
}
|
|
5330
5334
|
}
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5335
|
+
),
|
|
5336
|
+
/* @__PURE__ */ n(
|
|
5337
|
+
H1,
|
|
5338
|
+
{
|
|
5339
|
+
src: e,
|
|
5340
|
+
sx: {
|
|
5341
|
+
bottom: -(a / 3),
|
|
5342
|
+
height: a,
|
|
5343
|
+
outline: ({ palette: l }) => `2px solid ${l.common.white}`,
|
|
5344
|
+
position: "absolute",
|
|
5345
|
+
right: -(o / 3),
|
|
5346
|
+
width: o,
|
|
5347
|
+
...r == null ? void 0 : r.sx
|
|
5348
|
+
},
|
|
5349
|
+
...r
|
|
5342
5350
|
}
|
|
5351
|
+
)
|
|
5352
|
+
] });
|
|
5353
|
+
}
|
|
5354
|
+
return /* @__PURE__ */ n(
|
|
5355
|
+
H1,
|
|
5356
|
+
{
|
|
5357
|
+
...i,
|
|
5358
|
+
sx: {
|
|
5359
|
+
...t && { height: l1[t].primary, width: l1[t].primary },
|
|
5360
|
+
...i.sx
|
|
5343
5361
|
}
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
{
|
|
5348
|
-
src: e,
|
|
5349
|
-
sx: {
|
|
5350
|
-
bottom: -(a / 3),
|
|
5351
|
-
height: a,
|
|
5352
|
-
outline: ({ palette: l }) => `2px solid ${l.common.white}`,
|
|
5353
|
-
position: "absolute",
|
|
5354
|
-
right: -(o / 3),
|
|
5355
|
-
width: o,
|
|
5356
|
-
...r == null ? void 0 : r.sx
|
|
5357
|
-
},
|
|
5358
|
-
...r
|
|
5359
|
-
}
|
|
5360
|
-
)
|
|
5361
|
-
] });
|
|
5362
|
-
}, Ka = ({ children: e, permissions: r, disabledPermissions: t }) => {
|
|
5362
|
+
}
|
|
5363
|
+
);
|
|
5364
|
+
}, Qa = ({ children: e, permissions: r, disabledPermissions: t }) => {
|
|
5363
5365
|
const [i, a] = i1(), o = _e(
|
|
5364
5366
|
() => ({
|
|
5365
5367
|
disabledPermissions: t,
|
|
@@ -5371,7 +5373,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
5371
5373
|
return ke(() => {
|
|
5372
5374
|
a(r);
|
|
5373
5375
|
}, [r]), /* @__PURE__ */ n(nt.Provider, { value: o, children: e });
|
|
5374
|
-
},
|
|
5376
|
+
}, Sa = {
|
|
5375
5377
|
component: void 0,
|
|
5376
5378
|
isOpen: !1,
|
|
5377
5379
|
message: "",
|
|
@@ -5383,12 +5385,12 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
5383
5385
|
isOpen: !1,
|
|
5384
5386
|
openSnackbar: () => {
|
|
5385
5387
|
}
|
|
5386
|
-
}),
|
|
5388
|
+
}), eo = ({
|
|
5387
5389
|
children: e,
|
|
5388
5390
|
autoHideDuration: r = 5e3,
|
|
5389
5391
|
anchorOrigin: t = { horizontal: "center", vertical: "bottom" }
|
|
5390
5392
|
}) => {
|
|
5391
|
-
const [i, a] = i1(
|
|
5393
|
+
const [i, a] = i1(Sa), o = u1((c) => {
|
|
5392
5394
|
a({
|
|
5393
5395
|
component: c == null ? void 0 : c.component,
|
|
5394
5396
|
isOpen: !0,
|
|
@@ -5420,7 +5422,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
5420
5422
|
),
|
|
5421
5423
|
e
|
|
5422
5424
|
] });
|
|
5423
|
-
},
|
|
5425
|
+
}, ro = () => {
|
|
5424
5426
|
const e = A1(St), { isOpen: r, closeSnackbar: t, openSnackbar: i } = e;
|
|
5425
5427
|
if (e === void 0)
|
|
5426
5428
|
throw new Error("SnackbarProvider must be used within a useSnackBar hook");
|
|
@@ -5429,7 +5431,7 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
5429
5431
|
isOpen: r,
|
|
5430
5432
|
openSnackbar: i
|
|
5431
5433
|
};
|
|
5432
|
-
},
|
|
5434
|
+
}, to = () => {
|
|
5433
5435
|
const [e, r] = i1(0);
|
|
5434
5436
|
return {
|
|
5435
5437
|
handleChange: u1((i, a) => {
|
|
@@ -5437,49 +5439,49 @@ const Zr = 32, vi = 24, wi = 105, Ei = 24, Mi = 195, Si = 44, Ri = 147, Ti = ()
|
|
|
5437
5439
|
}, []),
|
|
5438
5440
|
value: e
|
|
5439
5441
|
};
|
|
5440
|
-
},
|
|
5442
|
+
}, no = (e) => `linear-gradient(${m1("#fff", +Ue(e))}, ${m1("#fff", +Ue(e))})`;
|
|
5441
5443
|
export {
|
|
5442
5444
|
Ur as ActionAppBar,
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5445
|
+
Na as AppBar,
|
|
5446
|
+
Ba as ArticleImage,
|
|
5447
|
+
Xa as AutocompleteFilter,
|
|
5448
|
+
Ka as Avatar,
|
|
5447
5449
|
Qi as AvatarAppBar,
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5450
|
+
za as Backoffice,
|
|
5451
|
+
qa as BottomFixedPaper,
|
|
5452
|
+
Va as Button,
|
|
5453
|
+
Fa as CardModal,
|
|
5454
|
+
Wa as Chip,
|
|
5455
|
+
$a as DialogCloseIcon,
|
|
5456
|
+
Ua as File,
|
|
5455
5457
|
rr as FileViewer,
|
|
5456
|
-
|
|
5458
|
+
Aa as HasPermission,
|
|
5457
5459
|
mt as Lightbox,
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5460
|
+
_a as LinkTab,
|
|
5461
|
+
Ga as ListAvatar,
|
|
5462
|
+
Ga as ListAvatars,
|
|
5463
|
+
Oa as ListItemCard,
|
|
5462
5464
|
Ai as Logo,
|
|
5463
|
-
|
|
5465
|
+
Ha as NavigationMenu,
|
|
5464
5466
|
j1 as NavigationMenuContext,
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
+
Qa as PermissionProvider,
|
|
5468
|
+
La as QuantityField,
|
|
5467
5469
|
St as SnackbarContext,
|
|
5468
|
-
|
|
5470
|
+
eo as SnackbarProvider,
|
|
5469
5471
|
me as StatusIcon,
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
+
Pa as TabPanel,
|
|
5473
|
+
Ia as TextArea,
|
|
5472
5474
|
ea as TextFieldAppBar,
|
|
5473
|
-
|
|
5475
|
+
Ja as TextFieldPassword,
|
|
5474
5476
|
Et as ThemeContext,
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5477
|
+
Ya as ThemeProvider,
|
|
5478
|
+
Za as TimeLine,
|
|
5479
|
+
Da as TypographySkeleton,
|
|
5480
|
+
no as getBackgroundImageElevation,
|
|
5479
5481
|
J as pxToRem,
|
|
5480
|
-
|
|
5482
|
+
ja as theme,
|
|
5481
5483
|
ra as useMenu,
|
|
5482
5484
|
xn as usePermission,
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
+
ro as useSnackbar,
|
|
5486
|
+
to as useTabs
|
|
5485
5487
|
};
|