1import { a as n } from "./app-zA2I6UUs.js"; 2import { d as c } from "./site-info.query-Cz2O7fp5.js"; 3import { Q as i } from "./queryClient-DpZpBkWP.js"; 4const _ = ({ 5 country: t, 6 whoInput: r, 7 queryOptions: a 8} = {}) => ({ 9 queryKey: ["OrderDeliveryRecent", t, r], 10 queryFn: async ({ 11 signal: s 12 }) => { 13 const o = new URL("/ajax/oms/OMS_wrap_customer_v1_order-deliverys_recent.cm", window.location.origin); 14 o.searchParams.set("country", t), o.searchParams.set("whoInput", r); 15 const { 16 data: e 17 } = await n.get(o.href, { 18 signal: s 19 }); 20 if (typeof (e == null ? void 0 : e.data) > "u" || (e == null ? void 0 : e.data) === null) 21 return null; 22 const { 23 data: u 24 } = await n.post("/ajax/oms/OMS_get_deliv_address_format.cm", { 25 country: t 26 }, { 27 signal: s, 28 withCredentials: !0 29 }); 30 return { 31 ...e == null ? void 0 : e.data, 32 addressFormat: u.addressFormat 33 }; 34 }, 35 ...a, 36 enabled: [t, r].every((s) => typeof s == "string") && ((a == null ? void 0 : a.enabled) ?? !0) 37}), l = ({ 38 queryOptions: t 39} = {}) => ({ 40 queryKey: ["PaymentMethods"], 41 queryFn: async ({ 42 signal: r 43 }) => { 44 const { 45 data: a 46 } = await n.get("/ajax/oms/OMS_wrap_customer_v1_payment_payment-method-list.cm", { 47 signal: r 48 }); 49 return a == null ? void 0 : a.data; 50 }, 51 ...t 52}); 53Object.assign(n.defaults, c); 54const f = ({ 55 productCodes: t, 56 orderCurrency: r, 57 isMember: a 58}, s) => ({ 59 queryKey: ["ProductsDiscountOptions"], 60 queryFn: async ({ 61 signal: o 62 }) => { 63 const { 64 data: e 65 } = await n.post("/ajax/oms/OMS_check_products_discount_options.cm", { 66 prod_codes: t, 67 order_currency: r, 68 is_member: a ? "Y" : "N" 69 }, { 70 signal: o 71 }); 72 return e == null ? void 0 : e.data; 73 }, 74 ...s 75}), w = new i({ 76 defaultOptions: { 77 queries: { 78 staleTime: 60 * 1e3, 79 refetchOnWindowFocus: !1, 80 suspense: !0, 81 useErrorBoundary: !0, 82 keepPreviousData: !0, 83 retry(t, r) { 84 return t >= 3 ? !1 : r instanceof Error ? Number(Object(r.cause).statusCode) >= 500 : !0; 85 } 86 } 87 } 88}); 89export { 90 _ as O, 91 f as P, 92 l as a, 93 w as q 94}; 95//# sourceMappingURL=queryClient-CWMJS3xk.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.