1import{j as s,h as Ne,d as ue,f as Se,k as ge,C as X,R as ye}from"./vendor-antd-BBP9elV-.js";import{c as V,M as fe,N as ee,Q as Ae,R as Ce,T as _e,al as ie,au as he,Z as w,U as j,ct as B,L as ve,aA as Fe,W as ne,az as xe,d as be,bJ as Ie,ba as Le,ag as Me,K as Oe,ay as ae,ax as g,at as Pe,aT as se,av as De,cu as Re,ap as re,aq as le,cv as je}from"./index-B5sQTxjn.js";import{M as q,u as ke}from"./vendor-intl-BdRQ4zCJ.js";import{r as we}from"./vendor-redux-KLK4bked.js";import{M as H,Y as Be,z as He,m as Ye,H as Ge,n as oe}from"./ra-packages-common-CvkwZ4BT.js";import{H as Ue,A as ze}from"./List-BYjMTz72.js";import{u as $e}from"./useBoundaryElement-C61H8WPn.js";import{F as We,u as Ke,H as pe,b as Qe,a as qe}from"./Sidebar-iXRiuo2V.js";import{M as Ve,a as Je}from"./mobile-D6KyO0kP.js";import{d as Xe,g as Ze,B as ei}from"./collectionArt-DmpBPAf6.js";import{a as ii,d as ti,u as ni}from"./vendor-router-qVASvVEu.js";import{S as ai}from"./Share-CQ3fvzVh.js";import{B as si}from"./Breadcrumbs-C78SqGIG.js";import{d as ri}from"./authorBase-DAEitGKb.js";import"./vendor-react-fAf-fo_p.js";import"./ra-packages-feutils-BT9hW3Hl.js";import"./vendor-hashbase-DgZ-AY2q.js";import"./vendor-misc-1-GGAxc6aE.js";import"./ra-packages-icons-CuBFMsoF.js";import"./react-intersection-observer-Cu_qKbcA.js";import"./vendor-apollo-CkY1D5Bj.js";import"./vendor-sentry-browser-BvxBMkSh.js";import"./vendor-react-markdown-DTBd1y6J.js";import"./vendor-micromark-D3BnM3h_.js";import"./Columns-HSGfU7Ir.js";import"./Fluid-CDZblqHz.js";import"./AddCartItem-DFmKuovD.js";import"./Pagination-DX-aaYav.js";import"./withTranslatedRouter-35ow75dd.js";import"./Section.module-DZO0IcbE.js";import"./StickyGridHeader-CGnsKYBb.js";import"./filter-B-o3v9G6.js";const li=[{key:"sort",render:"sort",opened:!1},{key:"layout",render:"layout",opened:!1},{key:"price",items:[{dimension:"price",props:{showInputs:!0},responsive:{mobile:Ve}}]},{key:"size",items:[{dimension:"size",responsive:{mobile:Je}}]},{key:"orientation",items:[{dimension:"orientation"}]}],oi=[],te={domain:ee.domain.COLLECTION_ART},mi=Ue(ze,te),ci=pe(Qe,te),di=pe(qe,te);function ui(i){const e=V.c(15),{isSSR:t}=we.useContext(Ce),{isOpen:l,toggle:r}=Ke(),m=parseInt(i.match.params.id,10);let a;e[0]!==m?(a={collectionId:m},e[0]=m,e[1]=a):a=e[1];let o;e[2]!==i.domain||e[3]!==i.urlParams||e[4]!==a?(o={urlParams:i.urlParams,domain:i.domain,additionalFilterQueryParams:a},e[2]=i.domain,e[3]=i.urlParams,e[4]=a,e[5]=o):o=e[5];const d=o,c=$e();let n;return e[6]!==d||e[7]!==c||e[8]!==t||e[9]!==l||e[10]!==i.domain||e[11]!==i.match.params.id||e[12]!==i.paginationType||e[13]!==r?(n=s.jsx(H,{minWidth:Ne,children:u=>s.jsx(mi,{includeLDJSON:!0,isSSR:t,isSsrQuery:!0,fetchQuery:Xe,collectionId:i.match.params.id,domain:i.domain,paginationType:i.paginationType,showAddToCart:!0,sidebarContent:f=>{const{sortOptions:h,sortListener:v,layoutOptions:k,layoutListener:p}=f;return s.jsx(ci,{...d,model:li,sortOptions:h,sortListener:v,layoutOptions:k,layoutListener:p,onClose:r})},isSidebarOpen:l,isSidebarDesktop:u,onSidebarClose:r,bottomBoundary:c,stickyHeader:!0,shortcuts:s.jsx(di,{...d,model:oi,isSidebarOpen:l,onToggleSidebar:r}),tracking:{name:_e.list.name.COLLECTION_ART_GRID,enabled:!0,enableInitial:!0,enableClick:!0}})}),e[6]=d,e[7]=c,e[8]=t,e[9]=l,e[10]=i.domain,e[11]=i.match.params.id,e[12]=i.paginationType,e[13]=r,e[14]=n):n=e[14],n}function gi(i){const e=V.c(10),t=ii(),{translatedLocation:l}=fe(),r=ee.domain[i.routeConfig.filterDomainKey],m=Ae.type.INFINITE;let a;e[0]!==r||e[1]!==t||e[2]!==i?(a=s.jsx(ui,{...i,match:t,domain:r,paginationType:m}),e[0]=r,e[1]=t,e[2]=i,e[3]=a):a=e[3];let o;return e[4]!==r||e[5]!==l||e[6]!==t||e[7]!==i.urlParams||e[8]!==a?(o=s.jsx(We,{match:t,location:l,paginationType:m,domain:r,urlParams:i.urlParams,children:a}),e[4]=r,e[5]=l,e[6]=t,e[7]=i.urlParams,e[8]=a,e[9]=o):o=e[9],o}const fi="ra-collection-description",me={small:75,medium:125,large:200},hi=i=>{const e=V.c(5),{children:t,expandableHeight:l}=i,r=l===void 0?me:l;let m;e[0]!==r?(m={...me,...r},e[0]=r,e[1]=m):m=e[1];const a=m;let o;return e[2]!==t||e[3]!==a?(o=t?s.jsx("div",{className:fi,children:s.jsx(H,{maxWidth:ue,children:d=>s.jsx(H,{minWidth:ge,maxWidth:Se,children:c=>s.jsx(Be,{maxHeight:d&&a.small||c&&a.medium||a.large,gradientColor:"gray",showMore:s.jsx(q,{id:"common.show_more"}),showLess:s.jsx(q,{id:"common.show_less"}),children:s.jsx(He,{text:t})})})})}):null,e[2]=t,e[3]=a,e[4]=o):o=e[4],o}
1,vi="ra-collection-info",ki="ra-collection-info-gray",pi="ra-collection-banner",Ti="ra-collection-banner-top",Ei="ra-collection-banner-bottom",Ni="ra-collection-banner-title",{fallbackImages:Si}=ve.collections;function yi(i){const e=V.c(75),{formatMessage:t}=ke(),{id:l,title:r,image:m,authorName:a,description:o,avatarImages:d,authorUrl:c}=i;let n,u,f,h,v,k,p,S,T,y,E;if(e[0]!==o||e[1]!==l||e[2]!==m||e[3]!==r){const Ee=ie(m,Ai);let R;e[15]!==m?(R=he(m),e[15]=m,e[16]=R):R=e[16];let W;e[17]===Symbol.for("react.memo_cache_sentinel")?(W=w.get("href"),e[17]=W):W=e[17];let K;e[18]!==l||e[19]!==R||e[20]!==r?(K={id:l,name:r,image:R,url:W},e[18]=l,e[19]=R,e[20]=r,e[21]=K):K=e[21],u=K;const J=o&&ki;e[22]!==J?(E=Ye(vi,J),e[22]=J,e[23]=E):E=e[23],n=ei,f=!0,h="medium",v=pi,k=r,p="banner.fullWidth",S="common.banner",e[24]===Symbol.for("react.memo_cache_sentinel")?(T={fetchPriority:"high"},e[24]=T):T=e[24],y=Ze(Ee,Si,{small:B.image.type.TYPE_BANNER_SMALL,medium:B.image.type.TYPE_BANNER_MEDIUM,large:B.image.type.TYPE_BANNER_LARGE}),e[0]=o,e[1]=l,e[2]=m,e[3]=r,e[4]=n,e[5]=u,e[6]=f,e[7]=h,e[8]=v,e[9]=k,e[10]=p,e[11]=S,e[12]=T,e[13]=y,e[14]=E}else n=e[4],u=e[5],f=e[6],h=e[7],v=e[8],k=e[9],p=e[10],S=e[11],T=e[12],y=e[13],E=e[14];let A;e[25]!==r?(A=s.jsx("div",{className:Ti,children:s.jsx(Ge,{tag:"h1",align:"center",className:Ni,children:r})}),e[25]=r,e[26]=A):A=e[26];let Y;e[27]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(X,{sm:3}),e[27]=Y):Y=e[27];let C;e[28]!==a||e[29]!==c?(C=s.jsx(H,{maxWidth:ue,children:s.jsx(q,{id:"components.collections.curator_text_short",values:{name:c?s.jsx(oe,{type:"strong",to:c,title:a,children:a}):s.jsx("strong",{children:a})}})}),e[28]=a,e[29]=c,e[30]=C):C=e[30];let _;e[31]!==a||e[32]!==c?(_=s.jsx(H,{minWidth:ge,children:s.jsx(q,{id:"components.collections.curator_text",values:{name:c?s.jsx(oe,{type:"strong",to:c,title:a,children:a}):s.jsx("strong",{children:a}),curatorText:""}})}),e[31]=a,e[32]=c,e[33]=_):_=e[33];let F;e[34]!==a||e[35]!==d||e[36]!==C||e[37]!==_?(F=s.jsx(X,{xs:21,sm:18,children:s.jsxs(Fe,{theme:"white",align:"center",images:d,name:a,children:[C,_]})}),e[34]=a,e[35]=d,e[36]=C,e[37]=_,e[38]=F):F=e[38];let x;e[39]!==u?(x=s.jsx(X,{xs:3,sm:3,children:s.jsx(ai,{theme:"light",contentKey:"collection_detail",contentValues:u,image:u.image,url:u.url})}),e[39]=u,e[40]=x):x=e[40];let b;e[41]!==F||e[42]!==x?(b=s.jsxs(ye,{align:"end",justify:"space-between",className:Ei,children:[Y,F,x]}),e[41]=F,e[42]=x,e[43]=b):b=e[43];let I;e[44]!==n||e[45]!==f||e[46]!==h||e[47]!==b||e[48]!==v||e[49]!==k||e[50]!==p||e[51]!==S||e[52]!==T||e[53]!==y||e[54]!==A?(I=s.jsxs(n,{gradient:f,size:h,className:v,altTitle:k,artDirectionType:p,artDirectionKey:S,imgProps:T,media:y,children:[A,b]}),e[44]=n,e[45]=f,e[46]=h,e[47]=b,e[48]=v,e[49]=k,e[50]=p,e[51]=S,e[52]=T,e[53]=y,e[54]=A,e[55]=I):I=e[55];let L;e[56]!==t?(L=t({id:"components.breadcrumbs.collection"}),e[56]=t,e[57]=L):L=e[57];let G;e[58]===Symbol.for("react.memo_cache_sentinel")?(G=j.collectionList(),e[58]=G):G=e[58];let M;e[59]!==L?(M={name:L,url:G},e[59]=L,e[60]=M):M=e[60];let U;e[61]===Symbol.for("react.memo_cache_sentinel")?(U=w.get("originWithPath"),e[61]=U):U=e[61];let O;e[62]!==r?(O={isLink:!1,name:r,url:U},e[62]=r,e[63]=O):O=e[63];let P;e[64]!==M||e[65]!==O?(P=s.jsx(ne,{children:s.jsx(si,{links:[M,O]})}),e[64]=M,e[65]=O,e[66]=P):P=e[66];let z;e[67]===Symbol.for("react.memo_cache_sentinel")?(z={xs:"wide",sm:"wide",md:"wide",lg:"narrow",xl:"narrow"},e[67]=z):z=e[67];let D;e[68]!==o?(D=s.jsx(ne,{sizes:z,children:s.jsx(hi,{children:o})}),e[68]=o,e[69]=D):D=e[69];let $;return e[70]!==I||e[71]!==P||e[72]!==D||e[73]!==E?($=s.jsxs("div",{className:E,children:[I,P,D]}),e[70]=I,e[71]=P,e[72]=D,e[73]=E,e[74]=$):$=e[74],$}function Ai(i){return i.type===B.image.type.TYPE_BANNER_ORIGINAL}var N={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"readCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"readCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hide"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"summary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AuthorBaseFragment"},directives:[]},{kind:"Field",name:{kind:"Name",value:"avatars"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AvatarFragment"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"public"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mimeType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"extension"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"size"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"active"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parentId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"children"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"public"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mimeType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"extension"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"size"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"active"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"locales"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"localeCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:739}};N.loc.source={body:`#import "../../fragments/common/authorBase.graphql" 2#import "../../fragments/common/avatar.graphql" 3 4query readCollection($id: ID!) { 5 readCollection(id: $id) { 6 id 7 status 8 hide 9 slug 10 name 11 description 12 summary 13 author { 14 ...AuthorBaseFragment 15 avatars { 16 ...AvatarFragment 17 } 18 } 19 images { 20 id 21 status 22 public 23 mimeType 24 key 25 extension 26 size 27 width 28 height 29 type 30 active 31 parentId 32 children { 33 id 34 status 35 public 36 mimeType 37 key 38 extension 39 size 40 width 41 height 42 type 43 active 44 } 45 } 46 locales { 47 localeCode 48 slug 49 } 50 } 51} 52`,name:"GraphQL request",locationOffset:{line:1,column:1}};var ce={};function Te(i){return i.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;var t=e.name.value;return ce[t]?!1:(ce[t]=!0,!0)})}N.definitions=N.definitions.concat(Te(ri.definitions));N.definitions=N.definitions.concat(Te(xe.definitions));function Q(i,e){if(i.kind==="FragmentSpread")e.add(i.name.value);else if(i.kind==="VariableDefinition"){var t=i.type;t.kind==="NamedType"&&e.add(t.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(l){Q(l,e)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(l){Q(l,e)}),i.definitions&&i.definitions.forEach(function(l){Q(l,e)})}var Z={};(function(){N.definitions.forEach(function(e){if(e.name){var t=new Set;Q(e,t),Z[e.name.value]=t}})})();function de(i,e){for(var t=0;t<i.definitions.length;t++){var l=i.definitions[t];if(l.name&&l.name.value==e)return l}}function Ci(i,e){var t={kind:i.kind,definitions:[de(i,e)]};i.hasOwnProperty("loc")&&(t.loc=i.loc);var l=Z[e]||new Set,r=new Set,m=new Set;for(l.forEach(function(o){m.add(o)});m.size>0;){var a=m;
52m=new Set,a.forEach(function(o){if(!r.has(o)){r.add(o);var d=Z[o]||new Set;d.forEach(function(c){m.add(c)})}})}return r.forEach(function(o){var d=de(i,o);d&&t.definitions.push(d)}),t}Ci(N,"readCollection");const _i=ie(ve.collections.fallbackImages,{type:B.image.type.TYPE_MAIN_SQUARE});function Fi(i,e){const t=ee.domain.COLLECTION_ART,l=i.locales.reduce((r,{localeCode:m,slug:a})=>{const o=Re(m,"name");if(!o)return r;const c=new re({...le(t,{id:i.id,slug:a})}).route(je(e.pathname),e.search),u=new re({...le(t,{id:i.id,slug:a,locale:o}),locale:o.name}).assemble(c.filters);return r.absolute[m]=u?`${w.get("origin")}${u}`:null,r.relative[m]=u||null,r},{absolute:{},relative:{}});return l?{[g.METATYPE.LINK_HREFLANG]:{type:"generated",href:l.absolute},[g.METATYPE.LINK_HREFLANG_REDIRECT]:{type:"generated",href:l.relative}}:[]}function rt({staticContext:i,routeConfig:e}){const{formatMessage:t}=ke(),{id:l,slug:r}=ti(),m=ni(),{translatedLocation:a}=fe(),{loading:o,error:d,data:c={}}=be(N,{variables:{id:l},context:{customOptions:{errorSuppressFromResponse:!0,errorHandler:Ie(j.collectionList({search:{[Me.get("navigation.uri.query.params.message")]:Le.NOT_FOUND}}),m,i)}}}),n=c.readCollection,u=!!d||!n,f=n?j.collectionDetail(n.id,n.slug,{origin:w.get("origin")}):w.get("originWithPath"),h=n&&n.author&&j.authorDetail(n.author.type,n.author.typeId,n.author.typeAlias);return s.jsxs(s.Fragment,{children:[o?s.jsx(Oe,{isActive:!0,isFullScreen:!0}):null,s.jsx(ae,{metaSubscriber:se.COLLECTION_META,meta:n?{[g.METATYPE.LINK_CANONICAL]:f,[g.METATYPE.LINK_CANONICAL_REDIRECT]:j.collectionDetail(n.id,n.slug,{...a.search?{search:a.search}:null,...a.hash?{hash:a.hash}:null}),[g.METATYPE.META_TITLE]:t({id:"meta.collectionDetails.dynamicMetaTitle"},{name:n.name}),[g.METATYPE.META_DESCRIPTION]:t({id:"meta.collectionDetails.dynamicMetaDescription"},{name:n.name}),[g.METATYPE.PAGE_TITLE]:{disabled:!0,text:t({id:"meta.collectionDetails.dynamicPageTitle"},{name:n.name})},[g.METATYPE.META_OG_TITLE]:t({id:"components.share.messages.collection_detail.facebook"},{name:n.name}),[g.METATYPE.META_OG_DESCRIPTION]:t({id:"meta.collectionDetails.dynamicMetaDescription"},{name:n.name}),[g.METATYPE.META_OG_URL]:f,[g.METATYPE.META_OG_IMAGE]:he({...ie(n.images,{type:B.image.type.TYPE_MAIN_SQUARE})||_i,width:1200}),[g.METATYPE.SCRIPT_LD_JSON_COLLECTION]:Pe(De.COLLECTION,{...n,author:{...n.author,url:h?`${w.get("origin")}${h}`:null},mainEntityOfPage:{type:"WebPage",url:f}}),...n.hide?{[g.METATYPE.META_ROBOTS]:g.ATTRIBUTE_CONTENT.NO_INDEX}:{},...n.meta||{}}:null,hasError:u}),s.jsx(ae,{metaSubscriber:se.COLLECTION_LOCALE_META,meta:n?Fi(n,a):null,hasError:u}),n?s.jsx(yi,{id:n.id,title:n.name,description:n.description,image:n.images,avatarImages:n.author.avatars,authorName:n.author.fullName,authorUrl:h,biography:n.author.biography}):null,s.jsx(gi,{routeConfig:e,disableHreflangMeta:!0,urlParams:{id:l,slug:r,url:j.collectionDetail(l,r)}})]})}export{rt as default};
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.