"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[6544],{36544:function(t,e,o){o.r(e),o.d(e,{default:function(){return C},getSpeedDialActionUtilityClass:function(){return Z},speedDialActionClasses:function(){return h}});var a=o(96234),i=o(56666),n=o(31461),l=o(7896),r=o(30969),s=o(81856),c=o(26540),p=o(74262),d=o(62221),u=o(2441),f=o(77954),b=o(21777),m=o(99853),v=o(2975);function Z(t){return(0,v.Z)("MuiSpeedDialAction",t)}var h=(0,o(62746).Z)("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),g=o(37574),y=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],T=(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)"})})),S=(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(h.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}))})),w=(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"})})),C=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,h=o.icon,C=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,y),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,Z,a)}(M),O=r.useState(D),_=(0,a.Z)(O,2),F=_[0],B=_[1],I={transitionDelay:"".concat(d,"ms")},z=(0,g.jsx)(T,(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:h}));return D?(0,g.jsxs)(S,(0,l.Z)({id:C,ref:e,className:N.staticTooltip,ownerState:M},j,{children:[(0,g.jsx)(w,{style:I,id:"".concat(C,"-label"),className:N.staticTooltipLabel,ownerState:M,children:R}),r.cloneElement(z,{"aria-labelledby":"".concat(C,"-label")})]})):(!P&&F&&B(!1),(0,g.jsx)(b.Z,(0,l.Z)({id:C,ref:e,title:R,placement:L,onClose:function(){B(!1)},onOpen:function(){B(!0)},open:P&&F,classes:k},j,{children:z})))}))}}]);
//# sourceMappingURL=6544.5a8ba0ba.chunk.js.map