(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 d=a(1),s=document.body.appendChild(document.createElement("label")),c=s.appendChild(document.createTextNode("")),n=document.body.appendChild(document.createElement("div"));n.classList.add("image-picker"),d.a.events.addEventListener(d.a.RENDER_EVENT,(function(e){var t=e.detail;t.theme&&(s.style.font=t.theme.font,s.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")}))),c.textContent=t.args.label;var a=t.args.images,o=t.args.captions;0===n.childNodes.length&&a.forEach((function(e,t){var a=n.appendChild(document.createElement("div")),s=a.appendChild(document.createElement("div"));s.classList.add("box");var c=s.appendChild(document.createElement("img"));if(c.classList.add("image"),c.src=e,o){var l=a.appendChild(document.createElement("div"));l.classList.add("caption"),l.textContent=o[t]}0===t&&(s.classList.add("selected"),c.classList.add("selected")),c.onclick=function(){n.querySelectorAll(".selected").forEach((function(e){e.classList.remove("selected")})),d.a.setComponentValue(t),s.classList.add("selected"),c.classList.add("selected")}})),d.a.setFrameHeight()})),d.a.setComponentReady(),d.a.setFrameHeight()}],[[3,1,2]]]);
//# sourceMappingURL=main.56d2534e.chunk.js.map