1import{H as u,aa as l,ab as y}from"./index-DLsZ3GMo.js";const a="IN",i=async()=>{try{const r=await u();return r&&typeof r.country=="string"&&r.country.length>0?r.country:a}catch{return a}},p=r=>String(r).toUpperCase()==="IN"?"INR":"USD",t="IN",f=l(y((r,e)=>({country:null,isLoading:!1,error:null,hasFetched:!1,fetchUserCountry:async()=>{const o=e();if(o.hasFetched&&o.country!==null)return o.country;if(o.isLoading)return new Promise(n=>{const s=setInterval(()=>{const c=e();!c.isLoading&&c.hasFetched&&(clearInterval(s),n(c.country||t))},100)});r({isLoading:!0,error:null},!1,"country/fetchStarted");try{const n=await i();return r({country:n,isLoading:!1,error:null,hasFetched:!0},!1,"country/fetchSuccess"),n}catch(n){return r({country:t,isLoading:!1,error:n.message,hasFetched:!0},!1,"country/fetchFailed"),t}},clearCache:()=>r({country:null,hasFetched:!1,error:null},!1,"country/cacheCleared"),forceRefresh:async()=>(e().clearCache(),await e().fetchUserCountry()),getCurrency:()=>(e().country||t).toUpperCase()==="IN"?"INR":"USD",getCurrencySymbol:()=>(e().country||t).toUpperCase()==="IN"?"â¹":"$",isIndia:()=>(e().country||t).toUpperCase()==="IN"}),{name:"CountryStore"})),h=r=>r.country,C=r=>r.isLoading,d=r=>(r.country||t).toUpperCase()==="IN"?"INR":"USD",U=Object.freeze(Object.defineProperty({__proto__:null,default:f,selectCountry:h,selectCountryLoading:C,selectCurrency:d},Symbol.toStringTag,{value:"Module"}));export{U as c,p as g,f as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.