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.BlkDsJXZ.js";import{r as a}from"./StreamlitMarkdown.abRW1By9.js";import{n as o}from"./Icon.2Gw0hHYQ.js";import{t as s}from"./useEmotionTheme.5peYXGK6.js";import{t as c}from"./styled-components.A6uh_43m.js";import{n as l,t as u}from"./Tooltip.CnRFdhRc.js";import{t as d}from"./BaseButton.Xb9N5Ter.js";import{f,m as p}from"./ErrorElement.C5Qczz8j.js";import{t as m}from"./index.esm.B2Ayivoz.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(e,t){let n=t?.trim();return n?`${e}: ${n}`:e}function y({label:e,show_label:t,icon:i,onClick:f,labelContext:p}){let m=s(),h=t?e:``;return r(`div`,{"data-testid":`stElementToolbarButton`,children:r(l,{content:r(a,{source:e,allowHTML:!1,style:{fontSize:m.fontSizes.sm}}),placement:u.TOP,onMouseEnterDelay:1e3,closeDelay:0,dismissOnClick:!0,interactive:!1,inline:!0,children:n(d,{onClick:e=>{f&&f(),e.stopPropagation()},kind:c.ELEMENT_TOOLBAR,"aria-label":v(e,p),children:[i&&r(o,{content:i,size:`md`,testid:`stElementToolbarButtonIcon`}),h&&r(`span`,{children:h})]})})})}var b=({onExpand:e,onCollapse:t,isFullScreen:i,locked:a,children:o,target:s,disableFullscreenMode:c,labelContext:l})=>r(p,{className:`stElementToolbar`,"data-testid":`stElementToolbar`,locked:a||i,target:s,children:n(f,{"data-testid":`stElementToolbarButtonContainer`,children:[o,e&&!c&&!i&&r(y,{label:`Fullscreen`,icon:g,onClick:()=>e(),labelContext:l}),t&&!c&&i&&r(y,{label:`Close fullscreen`,icon:_,onClick:()=>t(),labelContext:l})]})});export{y as n,b 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.