import"./fetch-9e15a95d.js";import{a as addQueryArgs}from"./add-query-args-0e2a8393.js";import{a as apiFetch}from"./index-824c562b.js";const path="surecart/v1/customers/me",getCurrentCustomer=(s="live")=>apiFetch({path:addQueryArgs(path,{mode:s,expand:["shipping_address","billing_address"]})}),ADDRESS_CONTENT_FIELDS=["name","line_1","line_2","city","state","postal_code"],ADDRESS_DATA_FIELDS=[...ADDRESS_CONTENT_FIELDS,"country"],isAddressEmpty=s=>!s||ADDRESS_CONTENT_FIELDS.every((e=>!s[e])),hasAddressData=s=>!(!s||Array.isArray(s))&&ADDRESS_DATA_FIELDS.some((e=>!!s[e]));export{getCurrentCustomer as g,hasAddressData as h,isAddressEmpty as i};