PageSourceSearch

https://www.modernart.net/_nuxt/product.groq.ChN7YrK6.js

js modernart.net collected 2026-10-02 10:06:08 UTC 1,627 bytes, 37 lines download raw bytes

1import{d as g,M as b,u as i,f as y,z as _,m as f,t as p,k as e,_ as l,ab as o,g as C,b as s,a as P}from"./entry.ioxNJHcl.js";const T=["disabled"],S=g({__name:"ButtonAddToCart",props:{gid:{type:String,default:""}},setup(t){const a=b(),d=i(),u=t,c=y(()=>d.getTranslations),m=async()=>{await a.addLineItem(u.gid,1)};return(r,n)=>(_(),f("button",{"aria-label":"Add to cart",class:"ProductButtonAddToCart cta",disabled:e(a).loading||e(a).addToCartDisabled,onClick:n[0]||(n[0]=A=>m())},p(("translate"in r?r.translate:e(l))(e(c).addToCart||"Add to cart")),9,T))}}),v=t=>{const a=i();return!t||typeof(t==null?void 0:t.minVariantPrice)>"u"?l(a.getTranslations.noPriceFound)||"No price found":t.maxVariantPrice&&t.minVariantPrice!==t.maxVariantPrice?`${o(t.minVariantPrice)} – ${o(t.maxVariantPrice)}`:o(t.minVariantPrice)},B=C`*[_type == "product" && store.slug.current == $slug && !store.isDeleted] | order(_updatedAt desc)[0] {
2  "title": {
3    ${s("title","localeTitle")}
4  },
5  "slug": store.slug.current,
6  "artists": {
7    ${s("artists","localeArtists")}
8  },
9  image{..., asset->},
10  "priceRange": store.priceRange,
11  "variantGid": store.variants[0]->store.gid,
12  "available": store.variants[0]->store.inventory.isAvailable,
13  disableAddToCart,
14  "details": {
15    ${s("details","localeDetails")}
16  },
17  "body": {
18    ${P("body","localeBody")}
19  },
20  images[]{
21    ...,
22    image{..., asset->},
23  },
24  enquireEmailAddress,
25  emailSubject,
26  emailBody,
27  relatedCollections[]->{
28    "title": {
29      ${s("title","localeTitle")}
30    },
31    slug,
32  },
33  seo{
34    ...,
35    image{..., asset->},
36  },
37}`;export{S as _,v as a,B as q};

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.