"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[6294],{56294:function(t,e,o){o.r(e),o.d(e,{default:function(){return P},getSpeedDialActionUtilityClass:function(){return h},speedDialActionClasses:function(){return g}});var a=o(96234),i=o(56666),n=o(31461),l=o(7896),r=o(96902),s=o(24463),c=o(73674),p=o(16644),d=o(2252),u=o(53068),f=o(88539),b=o(50543),m=o(70378),v=o(74732),Z=o(61235);function h(t){return(0,Z.Z)("MuiSpeedDialAction",t)}var g=(0,v.Z)("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),y=o(29938),T=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],S=(0,d.ZP)(f.Z,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:function(t,e){var o=t.ownerState;return[e.fab,!o.open&&e.fabClosed]}})((function(t){var e=t.theme,o=t.ownerState;return(0,l.Z)({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:(0,p._4)(e.palette.background.paper,.15)},transition:"".concat(e.transitions.create("transform",{duration:e.transitions.duration.shorter}),", opacity 0.8s"),opacity:1},!o.open&&{opacity:0,transform:"scale(0)"})})),w=(0,d.ZP)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:function(t,e){var o=t.ownerState;return[e.staticTooltip,!o.open&&e.staticTooltipClosed,e["tooltipPlacement".concat((0,m.Z)(o.tooltipPlacement))]]}})((function(t){var e=t.theme,o=t.ownerState;return(0,i.Z)({position:"relative",display:"flex",alignItems:"center"},"& .".concat(g.staticTooltipLabel),(0,l.Z)({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},!o.open&&{opacity:0,transform:"scale(0.5)"},"left"===o.tooltipPlacement&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},"right"===o.tooltipPlacement&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8}))})),C=(0,d.ZP)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:function(t,e){return e.staticTooltipLabel}})((function(t){var e=t.theme;return(0,l.Z)({position:"absolute"},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})})),P=r.forwardRef((function(t,e){var o=(0,u.Z)({props:t,name:"MuiSpeedDialAction"}),i=o.className,p=o.delay,d=void 0===p?0:p,f=o.FabProps,v=void 0===f?{}:f,Z=o.icon,g=o.id,P=o.open,k=o.TooltipClasses,x=o.tooltipOpen,D=void 0!==x&&x,A=o.tooltipPlacement,L=void 0===A?"left":A,R=o.tooltipTitle,j=(0,n.Z)(o,T),M=(0,l.Z)({},o,{tooltipPlacement:L}),N=function(t){var e=t.open,o=t.tooltipPlacement,a=t.classes,i={fab:["fab",!e&&"fabClosed"],staticTooltip:["staticTooltip","tooltipPlacement".concat((0,m.Z)(o)),!e&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return(0,c.Z)(i,h,a)}(M),O=r.useState(D),_=(0,a.Z)(O,2),F=_[0],B=_[1],I={transitionDelay:"".concat(d,"ms")},z=(0,y.jsx)(S,(0,l.Z)({size:"small",className:(0,s.default)(N.fab,i),tabIndex:-1,role:"menuitem",ownerState:M},v,{style:(0,l.Z)({},I,v.style),children:Z}));return D?(0,y.jsxs)(w,(0,l.Z)({id:g,ref:e,className:N.staticTooltip,ownerState:M},j,{children:[(0,y.jsx)(C,{style:I,id:"".concat(g,"-label"),className:N.staticTooltipLabel,ownerState:M,children:R}),r.cloneElement(z,{"aria-labelledby":"".concat(g,"-label")})]})):(!P&&F&&B(!1),(0,y.jsx)(b.Z,(0,l.Z)({id:g,ref:e,title:R,placement:L,onClose:function(){B(!1)},onOpen:function(){B(!0)},open:P&&F,classes:k},j,{children:z})))}))}}]);
//# sourceMappingURL=6294.b09290da.chunk.js.map