(self.webpackChunkstreamlit_browser=self.webpackChunkstreamlit_browser||[]).push([[7861],{65135:function(t,i,e){"use strict";e.r(i),e.d(i,{default:function(){return h}});e(47313);var n,r=e(16390),o=e(44970),a=e(32590),d=e(47167),l=(0,d.Z)("div",{target:"ebxwdo62"})((function(t){return{display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:t.theme.spacing.lg}}),""),s=(0,d.Z)("div",{target:"ebxwdo61"})((function(){return{display:"flex",flexDirection:"column",alignItems:"stretch",width:"auto",flexGrow:0}}),""),c=(0,d.Z)("div",{target:"ebxwdo60"})((function(t){var i=t.theme;return{fontFamily:i.genericFonts.bodyFont,fontSize:i.fontSizes.sm,color:i.colors.fadedText60,textAlign:"center",marginTop:i.spacing.xs,wordWrap:"break-word",padding:"0.125rem"}}),""),u=e(46417);!function(t){t[t.OriginalWidth=-1]="OriginalWidth",t[t.ColumnWidth=-2]="ColumnWidth",t[t.AutoWidth=-3]="AutoWidth"}(n||(n={}));var h=(0,o.Z)((function(t){var i,e=t.width,o=t.isFullScreen,d=t.element,h=t.height,f=t.endpoints,m=d.width;if(m===n.OriginalWidth||m===n.AutoWidth)i=void 0;else if(m===n.ColumnWidth)i=e;else{if(!(m>0))throw Error("Invalid image width: ".concat(m));i=m}var g={};return h&&o?(g.maxHeight=h,g["object-fit"]="contain"):(g.width=i,m===n.AutoWidth&&(g.maxWidth="100%")),(0,u.jsx)(l,{style:{width:e},children:d.imgs.map((function(t,i){var e=t;return(0,u.jsxs)(s,{"data-testid":"stImage",children:[e.markup?(0,r.ZP)((0,a.kB)(e.markup)):(0,u.jsx)("img",{style:g,src:f.buildMediaURL(e.url),alt:i.toString()}),e.caption&&(0,u.jsx)(c,{"data-testid":"caption",style:g,children:" ".concat(e.caption," ")})]},i)}))})}))},50247:function(){}}]);