(this.webpackJsonpstreamlit_image_select=this.webpackJsonpstreamlit_image_select||[]).push([[0],[,,,function(e,t,a){e.exports=a(4)},function(e,t,a){"use strict";a.r(t);var s=a(1),c=document.body.appendChild(document.createElement("label")),d=c.appendChild(document.createTextNode("")),n=document.body.appendChild(document.createElement("div"));n.classList.add("image-picker"),s.a.events.addEventListener(s.a.RENDER_EVENT,(function(e){var t=e.detail;t.theme&&(c.style.font=t.theme.font,c.style.color=t.theme.textColor,"dark"===t.theme.base?document.body.querySelectorAll(".box, .caption").forEach((function(e){e.classList.add("dark")})):document.body.querySelectorAll(".box, .caption").forEach((function(e){e.classList.remove("dark")}))),d.textContent=t.args.label;var a=t.args.images,l=t.args.captions,i=t.args.large;0===n.childNodes.length&&a.forEach((function(e,t){var a=n.appendChild(document.createElement("div")),c=a.appendChild(document.createElement("div"));c.classList.add("box");var d=c.appendChild(document.createElement("img"));if(d.classList.add("image"),d.src=e,l){var o=a.appendChild(document.createElement("div"));o.classList.add("caption"),o.textContent=l[t]}1===i&&(n.classList.remove("image-picker"),n.classList.add("large-picker")),0===t&&(c.classList.add("selected"),d.classList.add("selected")),d.onclick=function(){n.querySelectorAll(".selected").forEach((function(e){e.classList.remove("selected")})),s.a.setComponentValue(t),c.classList.add("selected"),d.classList.add("selected")}})),s.a.setFrameHeight()})),s.a.setComponentReady(),s.a.setFrameHeight()}],[[3,1,2]]]);
//# sourceMappingURL=main.3ccdfe00.chunk.js.map