1import { a as o } from "./app-zA2I6UUs.js"; 2import { d as c } from "./site-info.query-Cz2O7fp5.js"; 3Object.assign(o.defaults, c); 4const _ = ({ 5 countryShippingCode: r, 6 queryOptions: s 7}) => ({ 8 queryKey: ["DelivAddressFormat", r], 9 queryFn: async ({ 10 signal: t 11 }) => { 12 const { 13 data: n 14 } = await o.post("/ajax/oms/OMS_get_deliv_address_format.cm", { 15 country: r 16 }, { 17 signal: t 18 }); 19 return n == null ? void 0 : n.addressFormat; 20 }, 21 ...s, 22 enabled: typeof r == "string" && ((s == null ? void 0 : s.enabled) ?? !0) 23}); 24Object.assign(o.defaults, c); 25const u = ({ 26 countryShippingCode: r, 27 productCodes: s, 28 queryOptions: t 29} = {}) => ({ 30 queryKey: ["DelivCountryList", r, s], 31 queryFn: async ({ 32 signal: n 33 }) => { 34 var a; 35 const { 36 data: e 37 } = await o.post("/ajax/oms/OMS_get_deliv_country_list.cm", { 38 country: r, 39 prod_codes: s 40 }, { 41 signal: n 42 }); 43 if ((e == null ? void 0 : e.code) !== 200 || Object.keys((e == null ? void 0 : e.countryList) ?? {}).length === 0) { 44 const m = new Error("ë°°ì¡ ê°ë¥ êµê° ì¡°í ì¤í¨"); 45 (a = window.DD_RUM) == null || a.addError(m, { 46 code: e == null ? void 0 : e.code, 47 msg: e == null ? void 0 : e.msg, 48 countryList: e == null ? void 0 : e.countryList, 49 countryShippingCode: r, 50 productCodes: s, 51 mfe: { 52 name: "oms-customer-front-office", 53 version: "oms-customer-front-office_1790042271714" 54 } 55 }); 56 } 57 return Object.entries((e == null ? void 0 : e.countryList) ?? {}).map(([m, i]) => ({ 58 code: i, 59 name: m 60 })); 61 }, 62 ...t, 63 enabled: typeof r < "u" && (s ?? []).length > 0 && ((t == null ? void 0 : t.enabled) ?? !0) 64}); 65Object.assign(o.defaults, c); 66const d = ({ 67 page: r = 1, 68 pageSize: s = 7, 69 queryOptions: t 70} = {}) => ({ 71 queryKey: ["MemberShippingAddresses", s, r], 72 queryFn: async ({ 73 signal: n 74 }) => { 75 const { 76 data: e 77 } = await o.post("/ajax/oms/OMS_get_member_shipping_address.cm", { 78 page: r, 79 page_size: s 80 }, { 81 signal: n 82 }); 83 if (/^SUCCESS$/i.test(e.msg) === !1) 84 throw new Error(e.msg); 85 return { 86 ...e, 87 list: e.list ?? [] 88 }; 89 }, 90 ...t 91}); 92export { 93 _ as D, 94 d as M, 95 u as a 96}; 97//# sourceMappingURL=member-shipping-address.query-DlHh26Ph.js.map
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.