"use strict";require("./fetch-5e8dc1d5.js");const addQueryArgs=require("./add-query-args-49dcb630.js"),index=require("./index-7ced8198.js"),path="surecart/v1/customers/me",getCurrentCustomer=(e="live")=>index.apiFetch({path:addQueryArgs.addQueryArgs(path,{mode:e,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=e=>!e||ADDRESS_CONTENT_FIELDS.every((s=>!e[s])),hasAddressData=e=>!(!e||Array.isArray(e))&&ADDRESS_DATA_FIELDS.some((s=>!!e[s]));exports.getCurrentCustomer=getCurrentCustomer,exports.hasAddressData=hasAddressData,exports.isAddressEmpty=isAddressEmpty;