import{w as o}from"./tz-picker-NAxcAGUi.js";import"./tom-select-wx7WhiJ3.js";function m(){o("#gen-tz"),n()}function n(){document.querySelectorAll('input[type="file"][data-preview-target]').forEach(t=>{t.addEventListener("change",()=>{const i=t.files&&t.files[0],r=document.getElementById(t.dataset.previewTarget);if(!i||!r||!i.type.startsWith("image/"))return;const c=URL.createObjectURL(i);let e=r.querySelector("img");e||(r.innerHTML="",e=document.createElement("img"),e.className=t.dataset.previewClass||"max-h-14 max-w-[140px] object-contain",r.appendChild(e));const a=e.src;e.src=c,e.alt="preview",a&&a.startsWith("blob:")&&URL.revokeObjectURL(a)})})}export{m as default};
