PageSourceSearch

https://www.emma-sleep.co.kr/cdn/shop/t/348/assets/cart-fetcher.js?v=156387305949926108561783060049

js emma-sleep.co.kr collected 2026-10-08 04:16:50 UTC 1,915 bytes, 38 lines download raw bytes

1const executeCartQuery=(query,variables)=>(window.storefrontApi||console.error("storefrontApi is not defined on window"),window.storefrontApi({method:"POST",data:JSON.stringify({query,variables})}).then(res=>(res.errors&&console.error("API Errors:",res.errors),res.data)).catch(err=>{throw console.error("Network or API error:",err),err})),fetchCart=gid=>{const query=`query retrieveCart($id: ID!) {
2      cart(id: $id) {
3          ${window.fragment.CART_FRAGMENT}
4      }
5  }`;return executeCartQuery(query,{id:gid})},updateCart=(gid,lines)=>{const query=`mutation ($id: ID!, $lines: [CartLineUpdateInput!]!) {
6      cartLinesUpdate(cartId: $id, lines: $lines) {
7          cart {
8              ${window.fragment.CART_FRAGMENT}
9          }
10          userErrors {
11              field
12              message
13              code
14          }
15          warnings {
16              target
17              message
18              code
19          }
20      }
21  }`;return executeCartQuery(query,{id:gid,lines}).then(data=>{const userErrors=data.cartLinesUpdate.userErrors;if(userErrors&&userErrors.length>0)throw console.error("User Errors:",userErrors),new Error("Cart update failed due to user errors");return data.cartLinesUpdate.cart})},discountCodeUpdate=(gid,discountCodes=[])=>{const query=`mutation ($id: ID!, $discountCodes: [String!]) {
22      cartDiscountCodesUpdate(cartId: $id, discountCodes: $discountCodes) {
23          cart {
24              ${window.fragment.CART_FRAGMENT}
25          }
26          userErrors {
27              field
28              message
29              code
30          }
31          warnings {
32              target
33              message
34              code
35          }
36      }
37  }`;return executeCartQuery(query,{id:gid,discountCodes})};window.CartStorefrontAPI={fetch:fetchCart,update:updateCart,discountCodeUpdate};
38//# sourceMappingURL=/cdn/shop/t/348/assets/cart-fetcher.js.map?v=156387305949926108561783060049

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.