1import{a}from"./p-401e165e.js";var o;const n=(null===(o=window.scData)||void 0===o?void 0:o.locale)||navigator.language||(null===navigator||void 0===navigator?void 0:navigator.browserLanguage)||(navigator.languages||["en"])[0];let t=null;const i=new Map,l=async()=>{var o,l,i,e;if(t)return t;const s=a("https://api.surecart.com/v1/public/atlas",{locale:n}),r=await fetch(s),c=await r.json(),u=null===(o=(null==c?void 0:c.data)||[])||void 0===o?void 0:o.map((({code:a,name:o})=>({value:a,label:o})));return t=(null===(e=null===(i=null===(l=null===window||void 0===window?void 0:window.wp)||void 0===l?void 0:l.hooks)||void 0===i?void 0:i.applyFilters)||void 0===e?void 0:e.call(i,"surecart_address_countries",u))||u,t},s=async o=>{if(i.has(o))return i.get(o);const t=a(`https://api.surecart.com/v1/public/atlas/${o}`,{locale:n}),l=await fetch(t),e=await l.json();return i.set(o,e),e},c=async a=>{if(!a)return[];const o=await s(a);return((null==o?void 0:o.states)||[]).map((a=>({value:a.code,label:a.name})))};export{c as a,l as c,s as g};
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.