PageSourceSearch

https://wetforher.com/cdn/shop/t/358/assets/lib-queries.js?v=174797070139381370941749788087

js wetforher.com collected 2026-09-25 23:34:15 UTC 8,426 bytes, 418 lines download raw bytes

1const PRODUCT_METAFIELDS=`
2  metafields(
3    identifiers: [
4      { namespace: "custom", key: "up_sell" },
5      { namespace: "as-wfh", key: "product_badges" }
6    ]
7  ) {
8    id 
9    type
10    key
11    namespace
12    value
13    references(first: 250) {
14      edges {
15        node {
16          ... on MediaImage {
17            image {
18              originalSrc
19            }
20          }
21          ... on Metaobject {
22            id
23            handle
24            fields {
25              key
26              value
27              reference {
28                ... on MediaImage {
29                  image {
30                    url
31                  }
32                }
33              }
34            }
35          }
36        }
37      }
38    }
39  }
40`,COLLECTION_METAFIELDS=`
41  metafields(
42    identifiers: [
43    ]
44  ) {
45    reference {
46      ... on MediaImage {
47        image {
48          originalSrc
49        }
50      }
51      ... on GenericFile {
52        url
53      }
54    }
55    value
56    key
57    namespace
58  }
59`,VARIANT_METAFIELDS=`
60  metafields(
61    identifiers: [
62      {namespace: "as-wfh", key: "color_swatch_file"},
63      {namespace: "as-wfh", key: "finger_size_badge_4"},
64      {namespace: "as-wfh", key: "finger_size_badge_3"},
65      {namespace: "as-wfh", key: "finger_size_badge_2"}
66    ]
67  ) {
68    reference {
69      ... on MediaImage {
70        image {
71          originalSrc
72        }
73      }
74      ... on Metaobject {
75        id
76        handle
77        fields {
78          reference {
79            ... on MediaImage {
80              image {
81                url
82              }
83            }
84          }
85        }
86      }
87    }
88    value
89    key
90    namespace
91  }
92`,VARIANT_FIELDS=`
93  id
94  title
95  priceV2 {
96    amount
97    currencyCode
98  }
99  compareAtPriceV2 {
100    amount
101    currencyCode
102  }
103  weight
104  availableForSale
105  quantityAvailable
106  sku
107  selectedOptions {
108    name
109    value
110  }
111  ${VARIANT_METAFIELDS}
112`,PRODUCT_FIELDS=`
113  availableForSale
114  id
115  title
116  descriptionHtml
117  handle
118  priceRange {
119    minVariantPrice {
120      amount
121    }
122    maxVariantPrice {
123      amount
124    }
125  }
126  productType
127  vendor
128  createdAt
129  updatedAt
130  publishedAt
131  onlineStoreUrl
132  tags
133  images(first: 10) {
134    edges {
135      node {
136        src
137        altText
138      }
139    }
140  }
141  options {
142    id
143    name
144    values
145  }
146  ${PRODUCT_METAFIELDS}
147`,COLLECTION_FIELDS=`
148  id
149  title
150  handle
151  description
152  updatedAt
153  image {
154    src
155    altText
156  }
157  ${COLLECTION_METAFIELDS}
158`;export const GetProductById=`
159  query GetProductById($id: ID!) {
160    node(id: $id) {
161      ... on Product {
162        ${PRODUCT_FIELDS}
163        variants(first: 250) {
164          edges {
165            node {
166              ${VARIANT_FIELDS}
167            }
168          }
169        }
170        collections(first: 250) {
171          edges {
172            node {
173              ${COLLECTION_FIELDS}
174            }
175          }
176        }
177      }
178    }
179  }
180`,GetUpsellProductsById=countryCode=>`
181  query GetProductById($id: ID!)@inContext(country: ${countryCode}) {
182    node(id: $id) {
183      ... on Product {
184        metafields(
185          identifiers: [
186            { namespace: "custom", key: "up_sell" },
187            { namespace: "as-wfh", key: "product_badges" }
188          ]
189        ) {
190          id 
191          type
192          key
193          namespace
194          value
195          references(first: 250) {
196            edges {
197              node {
198                ... on Product { 
199                  featuredImage {
200                    id
201                    src
202                    altText
203                    url
204                  }
205                  ${PRODUCT_FIELDS}
206                  variants(first: 250) {
207                    edges {
208                      node {
209                        ${VARIANT_FIELDS}
210                      }
211                    }
212                  }
213                }
214              }
215            }
216          }
217        }
218      }
219    }
220  }
221`,GetVariantSalePriceById=countryCode=>`
222  query getProductVariantById($id: ID!)@inContext(country: ${countryCode}){
223    node(id: $id) {
224      ... on ProductVariant {
225        id
226        title
227        price {
228          amount
229          currencyCode
230        }
231        compareAtPrice {
232          amount
233          currencyCode
234        }
235        availableForSale
236        selectedOptions {
237          name
238          value
239        }
240        image {
241          src
242        }
243      }
244    }
245  }
246`,GetProductsByBatch=`
247  query GetProductsByBatch($ids: [ID!]!) {
248    nodes(ids: $ids) {
249      ... on Product {
250        ${PRODUCT_FIELDS}
251        variants(first: 250) {
252          edges {
253            node {
254              ${VARIANT_FIELDS}
255            }
256          }
257        }
258      }
259    }
260  }
261`,GetProductsByCollectionId=`
262  query GetProductsByCollectionId($id: ID!, $limit: Int = 250, $afterCursor: String) {
263    node(id: $id) {
264      ... on Collection {
265        products(first: $limit, after: $afterCursor) {
266          pageInfo {
267            hasNextPage
268            endCursor
269          }
270          edges {
271            cursor
272            node {
273              id
274              title
275              priceRange {
276                minVariantPrice {
277                  amount
278                }
279                maxVariantPrice {
280                  amount
281                }
282              }
283              productType
284              vendor
285              createdAt
286              updatedAt
287              publishedAt
288              tags
289              options {
290                id
291                name
292                values
293              }
294              metafields(
295                identifiers: [
296                  {namespace: "style_group", key: "collection"},
297                  {namespace: "swatch", key: "image"}
298                ]
299              ) {
300                reference {
301                  ... on MediaImage {
302                    image {
303                      originalSrc
304                    }
305                  }
306                }
307                value
308                key
309                namespace
310              }
311            }
312          }
313        }
314      }
315    }
316  }
317`,GetCollectionById=`
318  query GetCollectionById($id: ID!, $limit: Int = 250, $afterCurs
318or: String) {
319    node(id: $id) {
320      ... on Collection {
321        ${COLLECTION_FIELDS}
322        products(first: $limit, after: $afterCursor) {
323          pageInfo {
324            hasNextPage
325            hasPreviousPage
326          }
327          edges {
328            cursor
329            node {
330              ${PRODUCT_FIELDS}
331              variants(first: 250) {
332                edges {
333                  node {
334                    ${VARIANT_FIELDS}
335                  }
336                }
337              }
338            }
339          }
340        }
341      }
342    }
343  }
344`,GetCollectionsByBatch=`
345  query GetCollectionsByBatch($ids: [ID!]!) {
346    nodes(ids: $ids) {
347      ... on Collection {
348        ${COLLECTION_FIELDS}
349        products(first: 250) {
350          pageInfo {
351            hasNextPage
352            hasPreviousPage
353          }
354          edges {
355            cursor
356            node {
357              ${PRODUCT_FIELDS}
358              variants(first: 250) {
359                edges {
360                  node {
361                    ${VARIANT_FIELDS}
362                  }
363                }
364              }
365            }
366          }
367        }
368      }
369    }
370  }
371`,GetCollectionsByTitles=`
372  query GetCollectionsByTitles($titlesQuery: String!) {
373    collections(first: 10, query: $titlesQuery) {
374      edges {
375        node {
376          ${COLLECTION_FIELDS}
377          products(first: 250) {
378            pageInfo {
379              hasNextPage
380              hasPreviousPage
381            }
382            edges {
383              cursor
384              node {
385                ${PRODUCT_FIELDS}
386                variants(first: 250) {
387                  edges {
388                    node {
389                      ${VARIANT_FIELDS}
390                    }
391                  }
392                }
393              }
394            }
395          }
396        }
397      }
398    }
399  }
400`,SearchProducts=`
401  query SearchProducts($query: String!, $limit: Int = 250, $afterCursor: String) {
402    products(first: $limit, after: $afterCursor, query: $query) {
403      edges {
404        node {
405          ${PRODUCT_FIELDS}
406          variants(first: 250) {
407            edges {
408              node {
409                ${VARIANT_FIELDS}
410              }
411            }
412          }
413        }
414      }
415    }
416  }
417`;
418//# sourceMappingURL=/cdn/shop/t/358/assets/lib-queries.js.map?v=174797070139381370941749788087

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.