Mercurial > repos > fubar > jbrowse2
view x/static/js/2872.5129bbd8.chunk.js @ 125:49f3d3878413 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author | fubar |
---|---|
date | Sat, 05 Oct 2024 23:58:05 +0000 |
parents | |
children |
line wrap: on
line source
"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[2872],{83162:(r,e,t)=>{t.d(e,{A:()=>h});var a=t(7552),o=t(93878),s=t(70799),l=t(51148),n=t(60129),i=t(4785),c=t(74893),u=t(69500);const d=(0,c.A)((0,u.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var v=t(28375),p=t(43045);const f=(0,l.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[t.variant],t.colorDefault&&e.colorDefault]}})((0,n.A)((({theme:r})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(r.vars||r).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(r.vars||r).palette.background.default,...r.vars?{backgroundColor:r.vars.palette.Avatar.defaultBg}:{backgroundColor:r.palette.grey[400],...r.applyStyles("dark",{backgroundColor:r.palette.grey[600]})}}}]})))),g=(0,l.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(r,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),m=(0,l.Ay)(d,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(r,e)=>e.fallback})({width:"75%",height:"75%"}),h=a.forwardRef((function(r,e){const t=(0,i.b)({props:r,name:"MuiAvatar"}),{alt:l,children:n,className:c,component:d="div",slots:h={},slotProps:b={},imgProps:y,sizes:A,src:k,srcSet:w,variant:S="circular",...x}=t;let R=null;const j=function({crossOrigin:r,referrerPolicy:e,src:t,srcSet:o}){const[s,l]=a.useState(!1);return a.useEffect((()=>{if(!t&&!o)return;l(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&l("loaded")},s.onerror=()=>{a&&l("error")},s.crossOrigin=r,s.referrerPolicy=e,s.src=t,o&&(s.srcset=o),()=>{a=!1}}),[r,e,t,o]),s}({...y,src:k,srcSet:w}),C=k||w,P=C&&"error"!==j,D={...t,colorDefault:!P,component:d,variant:S};delete D.ownerState;const M=(r=>{const{classes:e,variant:t,colorDefault:a}=r,o={root:["root",t,a&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,s.A)(o,v.k,e)})(D),[z,F]=(0,p.A)("img",{className:M.img,elementType:g,externalForwardedProps:{slots:h,slotProps:{img:{...y,...b.img}}},additionalProps:{alt:l,src:k,srcSet:w,sizes:A},ownerState:D});return R=P?(0,u.jsx)(z,{...F}):n||0===n?n:C&&l?l[0]:(0,u.jsx)(m,{ownerState:D,className:M.fallback}),(0,u.jsx)(f,{as:d,className:(0,o.A)(M.root,c),ref:e,...x,ownerState:D,children:R})}))},28375:(r,e,t)=>{t.d(e,{A:()=>l,k:()=>s});var a=t(33761),o=t(85693);function s(r){return(0,o.Ay)("MuiAvatar",r)}const l=(0,a.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"])},42872:(r,e,t)=>{t.r(e),t.d(e,{avatarClasses:()=>o.A,default:()=>a.A,getAvatarUtilityClass:()=>o.k});var a=t(83162),o=t(28375)}}]); //# sourceMappingURL=2872.5129bbd8.chunk.js.map