1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GuggenPagination-Dp3pFaIe.js","assets/vendor-ojHIal3q.js","assets/main-CFkAaqoG.js","assets/main-DfEELHKc.css","assets/GuggenPagination-zicHpssR.css"])))=>i.map(i=>d[i]); 2import{a as $,b,d as v,f as A,_ as h}from"./main-CFkAaqoG.js";import{A as S}from"./ArtworkGrid-DzB8zmbc.js";import{a as N,A as P,u as q}from"./ArtworkFilters-CzCjKwE9.js";import{H as C,j as H,r as M,f as V,G as E,o as c,c as Q,p as T,a as g,u as a,l as d,k as m,q as B,S as D}from"./vendor-ojHIal3q.js";import{p as I}from"./PaginationQuery-DHmq4ivB.js";import"./BackLink.vue_vue_type_script_setup_true_lang-D7E6fXs3.js";import"./links.module-DonF4rOa.js";const k=C` 3 query getArtworks( 4 $filter: String, 5 $limit: Int!, 6 $paged: Int, 7 $subType: String, 8 $subTypeValue: String, 9 $type: String 10 ) { 11 artworks(first: $limit, where: { paged: $paged, sortOrder: true }) { 12 nodes { 13 artists { 14 nodes { 15 name 16 } 17 } 18 featuredImage { 19 node { 20 altText 21 sourceUrl 22 } 23 } 24 imageSrcset 25 slug 26 title 27 } 28 } 29 metaHub(targetPath: "/artwork") { 30 description 31 image_alt 32 image_src 33 title 34 } 35 ${N} 36 ${I} 37 } 38`,x={beforeRoute(n,i){return new Promise((t,l)=>{i.executeQuery({query:k,variables:{limit:27,paged:+n.page,type:"artwork"}}).then(()=>t()).catch(s=>l(s))})}},G=H({...x,__name:"ArtworkSection",props:{page:{default:1}},setup(n){const i=D(()=>A(()=>import("./GuggenPagination-Dp3pFaIe.js"),__vite__mapDeps([0,1,2,3,4]))),t=n,{getFilters:l}=q(),{handleError:s}=$(),{setMetaDescription:f,setMetaTitle:w}=b(),u=M({}),o=27,_={limit:o,paged:+t.page,type:"artwork"},y=V(()=>Math.ceil(r.value.totalCount/o)),{data:r}=E({onData:e=>{e&&e.artworks&&e.artworks.nodes.length&&(u.value=l(e),w(e.metaHub[0].title),f(e.metaHub[0].description),v()),e.artworks.nodes.length||s("ArtworkSection",`Page ${t.page}, limit ${o}`)},query:k,skip:({paged:e})=>isNaN(e),variables:_});return isNaN(t.page)&&s("ArtworkSection",`Page ${t.page}, limit ${o}`),(e,p)=>(c(),Q("div",null,[T(P,{filters:u.value},null,8,["filters"]),g("div",{class:B([e.$style.container,"container"])},[p[0]||(p[0]=g("h1",null,"Artworks",-1)),a(r)&&a(r).artworks.nodes.length?(c(),d(S,{key:0,data:a(r).artworks.nodes,class:"space-24-32-above"},null,8,["data"])):m("",!0),a(r)&&a(r).artworks.nodes.length?(c(),d(a(i),{key:1,"current-page":e.page,"per-page":o,"total-page-count":y.value,"post-type":"artwork"},null,8,["current-page","total-page-count"])):m("",!0)],2)]))}}),F="_container_1hwfy_2",L="_back_1hwfy_15",O={container:F,back:L},R={$style:O},Y=h(G,[["__cssModules",R]]);export{Y as default}; 39//# sourceMappingURL=ArtworkSection-DDZH9jdD.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.