1import{o as e}from"./rolldown-runtime.C0FnF6B9.js";import{r as t}from"./emotion-is-prop-valid.esm.CuYlOKOk.js";import{a as n,i as r,v as i}from"./emotion-styled.browser.esm.Dj5rZcu_.js";import{r as a}from"./StreamlitMarkdown.URFTuuY_.js";import{n as o}from"./Icon.vdHFYnd8.js";import{t as s}from"./useEmotionTheme.cgGerbj0.js";import{n as c,t as l}from"./Tooltip.J-aaVqsl.js";import{t as u}from"./styled-components.DuYBb88g.js";import{t as d}from"./BaseButton.zX9IAlMO.js";import{f,m as p}from"./ErrorElement.CZxpg0mG.js";import{t as m}from"./index.esm.M9ThdiDn.js";var h=e(t()),g=h.forwardRef(function(e,t){return h.createElement(m,i({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),h.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),h.createElement(`path`,{d:`M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z`}))});g.displayName=`Fullscreen`;var _=h.forwardRef(function(e,t){return h.createElement(m,i({iconAttrs:{fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`},iconVerticalAlign:`middle`,iconViewBox:`0 0 24 24`},e,{ref:t}),h.createElement(`path`,{fill:`none`,d:`M0 0h24v24H0V0z`}),h.createElement(`path`,{d:`M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z`}))});_.displayName=`FullscreenExit`;function v({label:e,show_label:t,icon:i,onClick:f}){let p=s(),m=t?e:``;return r(`div`,{"data-testid":`stElementToolbarButton`,children:r(c,{content:r(a,{source:e,allowHTML:!1,style:{fontSize:p.fontSizes.sm}}),placement:l.TOP,onMouseEnterDelay:1e3,closeDelay:0,dismissOnClick:!0,interactive:!1,inline:!0,children:n(d,{onClick:e=>{f&&f(),e.stopPropagation()},kind:u.ELEMENT_TOOLBAR,"aria-label":e,children:[i&&r(o,{content:i,size:`md`,testid:`stElementToolbarButtonIcon`}),m&&r(`span`,{children:m})]})})})}var y=({onExpand:e,onCollapse:t,isFullScreen:i,locked:a,children:o,target:s,disableFullscreenMode:c})=>r(p,{className:`stElementToolbar`,"data-testid":`stElementToolbar`,locked:a||i,target:s,children:n(f,{"data-testid":`stElementToolbarButtonContainer`,children:[o,e&&!c&&!i&&r(v,{label:`Fullscreen`,icon:g,onClick:()=>e()}),t&&!c&&i&&r(v,{label:`Close fullscreen`,icon:_,onClick:()=>t()})]})});export{v as n,y as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.