1import { a as y } from "./app-zA2I6UUs.js"; 2import { D as h, M as m, a as p } from "./member-shipping-address.query-DlHh26Ph.js"; 3import { q as e, P as d, O as f, a as Q } from "./queryClient-CWMJS3xk.js"; 4import { O as l } from "./order.query-DupA9z35.js"; 5import { S as C } from "./site-info.query-Cz2O7fp5.js"; 6import "./queryClient-DpZpBkWP.js"; 7function _() { 8 const t = new URLSearchParams(window.location.search).get("order_no"); 9 if (typeof t != "string" || t === "") 10 return; 11 const c = e.fetchQuery(l({ 12 orderNo: t 13 })), a = e.fetchQuery(C()); 14 c.then((r) => e.fetchQuery(d({ 15 productCodes: r.orderItems.map((o) => o.prodCode), 16 orderCurrency: r.currency, 17 isMember: r.isMember === "Y" 18 }))).catch(() => { 19 }), Promise.all([c, a]).then(([r, o]) => { 20 const n = r.isMember === "Y", u = r.orderItems.map((s) => s.prodCode), i = o.sippingCountryCode; 21 e.fetchQuery(h({ 22 countryShippingCode: i 23 })).catch(() => { 24 }), n && e.fetchQuery(m({})).catch(() => { 25 }), e.fetchQuery(p({ 26 productCodes: u, 27 countryShippingCode: i 28 })).then((s) => { 29 n && s.length > 0 && e.fetchQuery(f({ 30 country: i, 31 whoInput: "orderer" 32 })).catch(() => { 33 }); 34 }).catch(() => { 35 }); 36 }).catch(() => { 37 }), e.fetchQuery(Q()).catch(() => { 38 }), e.fetchQuery({ 39 queryKey: ["unit-options", "limit_join_agree"], 40 queryFn: async () => (await y("/ajax/oms/OMS_unit.cm?options=limit_join_agree", { 41 method: "GET", 42 withCredentials: !0 43 })).data 44 }).catch(() => { 45 }); 46} 47export { 48 _ as prefetchShopPaymentQueries 49}; 50//# sourceMappingURL=prefetch-TOJehykT.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.