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