import{T as a}from"./tom-select-wx7WhiJ3.js";function c(){const t=document.getElementById("ws-timezone");if(!t)return;let o=[];try{typeof Intl<"u"&&typeof Intl.supportedValuesOf=="function"&&(o=Intl.supportedValuesOf("timeZone")||[])}catch{}o.length||(o=["UTC","Asia/Kolkata","Asia/Dubai","Asia/Singapore","Asia/Tokyo","Asia/Shanghai","Europe/London","Europe/Berlin","Europe/Paris","Europe/Madrid","Europe/Moscow","America/New_York","America/Chicago","America/Denver","America/Los_Angeles","America/Sao_Paulo","America/Toronto","America/Mexico_City","Africa/Cairo","Africa/Johannesburg","Australia/Sydney","Pacific/Auckland"]);const i=t.value||t.querySelector("option[selected]")?.value||"Asia/Kolkata";t.innerHTML="";for(const e of o){const n=document.createElement("option");n.value=e,n.textContent=e,e===i&&(n.selected=!0),t.appendChild(n)}if(!o.includes(i)){const e=document.createElement("option");e.value=i,e.textContent=i,e.selected=!0,t.prepend(e)}new a(t,{maxOptions:1e3,searchField:["text"],sortField:{field:"text",direction:"asc"},placeholder:"Search timezone..."})}export{c as default};
