PageSourceSearch

https://www.aucklandartgallery.com/assets/FourUpWithTitle-Mgrgs7KN.js

js aucklandartgallery.com collected 2026-09-24 18:07:16 UTC 11,402 bytes, 75 lines download raw bytes

1import{j as s}from"./jsx-runtime-u17CrQMm.js";import{r as m,c as k,L as f}from"./chunk-JMJ3UQ3L-Cl6nLvSq.js";import{v as x,H as u,f as C,L as b,K as g,N as T,O as E,B as j,S as y,w as _,Q as A}from"./Button-D3dM_5em.js";import{E as $}from"./EventMetaFields-wzWBdL0_.js";import{u as D}from"./Footer-WcklWpWr.js";const v=e=>m.createElement("svg",{viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("line",{y1:1.14689,x2:13.7647,y2:1.14689,stroke:"currentColor",strokeWidth:2.29412}),m.createElement("line",{x1:12.6178,y1:.655273,x2:12.6178,y2:13.6553,stroke:"currentColor",strokeWidth:2.29412}),m.createElement("line",{x1:12.3429,y1:1.89636,x2:.804884,y2:13.232,stroke:"currentColor",strokeWidth:2.29412})),P={video:"Watch video",audio:"Listen",essay:"Read",news:"Read",article:"Read article"},h=({children:e})=>s.jsx("div",{className:"inline rounded-full border px-2 py-[1px] text-xs",children:e}),L=({item:e,displayAuthorAndDate:r=!1,contentSetGtm:a})=>{const l=k(),t=x(e.url),o=e.thumbnail??null,c=()=>{a?.clickText?b(e.url??t,a.clickTarget):a&&g(a.title)},d=i=>{i.target.closest("a")||(c(),l(t))},p=(e.content_type&&P[e.content_type])??"Read";return s.jsxs("div",{className:"group block cursor-pointer",onClick:d,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),i.target.closest("a")||(c(),l(t)))},role:"button",tabIndex:0,"aria-label":`View ${e.title??"artwork"}`,children:[s.jsx("div",{className:"mb-2 w-full",children:o&&s.jsx("img",{className:`
2              aspect-square w-full scale-100 object-cover transition-[scale]
3              duration-300 ease-out
4              group-hover:scale-102
5            `,src:o,alt:e.title??""})}),s.jsx("div",{className:"mb-1 flex justify-between align-top",children:s.jsxs("div",{className:"flex flex-col items-start gap-3",children:[s.jsxs("div",{className:"flex flex-col items-start gap-2",children:[e.type&&s.jsx(h,{children:u(e.content_type??e.type)}),s.jsx("p",{className:`
6                body-large mb-0 transition-colors duration-300
7                group-hover:text-primary-red
8              `,children:s.jsx("strong",{className:"text-inherit",children:e.title})})]}),r&&s.jsxs("div",{className:"flex items-start gap-1",children:[e.publish_at&&s.jsx("p",{className:"caption mb-0 text-primary-soft-black",children:C(e.publish_at)}),e.author&&s.jsx("p",{className:`
9                    caption mb-0 inline-flex items-center gap-1
10                    text-primary-soft-black
11                    before:inline-block before:size-2 before:shrink-0
12                    before:rounded-full before:bg-primary-true-black
13                    before:content-['']
14                  `,children:e.author})]}),s.jsx("p",{className:"cta-1 mb-0 text-primary-soft-black",children:p})]})})]})};function R(e,r){const a=[];if(e.type==="event"){if(e.eventType?.length)for(const l of e.eventType){const t=T(l);t&&a.push({key:`eventType:${l}`,label:t})}if(e.seasonalEvents){const l=E(e.seasonalEvents,r);l&&a.push({key:`seasonal:${e.seasonalEvents}`,label:l})}a.length===0&&a.push({key:"type:event",label:"Event"})}else if(e.type){const l=u(e.type==="article"?e.content_type??"":e.type??"");l&&a.push({key:`type:${e.type}`,label:l})}return a}const O=({item:e,contentSetGtm:r})=>{const a=x(e.url),l=D();return s.jsxs(f,{to:a,className:"group block",onClick:()=>{r?.clickText?b(e.url??a,r.clickTarget):r&&g(r.title)},children:[s.jsx("div",{className:"mb-4 aspect-square w-full",children:e.thumbnail?s.jsx("img",{className:`
15                  h-full w-full scale-100 object-cover transition-[scale]
16                  duration-300 ease-out
17                  group-hover:scale-102
18                `,src:e.thumbnail,alt:e.title??""}):null}),s.jsx("div",{className:"body-large mb-1 flex justify-between align-top",children:s.jsx("strong",{className:`
19          transition-colors duration-300
20          group-hover:text-primary-red
21        `,children:e.title})}),s.jsx("div",{className:"mb-3 flex flex-wrap gap-1",children:R(e,l).map(({key:t,label:o})=>s.jsx(h,{children:o},t))}),s.jsxs("div",{className:"mb-3 flex w-full flex-col gap-2",children:[s.jsx("p",{className:"h7 mb-3",children:e.subt
21itle}),s.jsx($,{startDate:e.startDate,endDate:e.endDate,cost:e.cost,isSoldOut:e.isSoldOut})]}),s.jsx("p",{className:`
22        body-small hidden
23        desktop:block
24      `,children:"Learn more"}),s.jsx("div",{className:"desktop:hidden",children:s.jsx(j,{variant:"clear",size:"sm-desktop",icon:s.jsx(y,{className:"h-4 w-4"}),hoverEffect:"right",className:"cta-1",children:"Learn more"})})]})},F=({item:e,contentSetGtm:r})=>{const a=x(e.url);return s.jsxs(f,{to:a,className:"group block",onClick:()=>{r?.clickText?b(e.url??a,r.clickTarget):r&&g(r.title)},children:[s.jsx("div",{className:"mb-4 aspect-3/2 w-full",children:e.thumbnail?s.jsx("img",{className:`
25                  h-full w-full scale-100 object-cover transition-[scale]
26                  duration-300 ease-out
27                  group-hover:scale-102
28                `,src:e.thumbnail,alt:e.title??""}):null}),s.jsx("div",{className:"body-large mb-1 flex justify-between align-top",children:s.jsx("strong",{className:`
29          transition-colors duration-300
30          group-hover:text-primary-red
31        `,children:e.title})}),s.jsx("p",{className:`
32        body-small mb-3 transition-colors duration-300
33        group-hover:text-primary-red
34      `,children:e.subtitle}),s.jsx("p",{className:`
35        body-small hidden transition-colors duration-300
36        group-hover:text-primary-red
37        desktop:block
38      `,children:"Learn more"}),s.jsx("div",{className:"desktop:hidden",children:s.jsx(j,{variant:"clear",size:"sm-desktop",icon:s.jsx(y,{className:"h-2 w-2"}),hoverEffect:"right",className:"cta-1",children:"Learn more"})})]})},I="/assets/Artwork_placeholder_white_800x600-Cn01mCfe.jpg",z=({item:e,contentSetGtm:r})=>{const{title:a,url:l,from:t,comparedPrice:o,price:c,soldout:d,type:p,tag:i}=e,n=e.thumbnail??I;return s.jsxs("a",{className:"group block cursor-pointer",role:"button",tabIndex:0,"aria-label":`View ${a??"artwork"}`,href:l,onClick:()=>{r?.clickText?b(l??"",r.clickTarget):r&&g(r.title)},children:[s.jsx("div",{className:"mb-4 w-full",children:s.jsx("img",{className:`
39            w-full scale-100 object-contain transition-[scale] duration-300
40            ease-out
41            group-hover:scale-102
42            ${d?"grayscale":""}
43          `,src:n,alt:a??""})}),s.jsxs("div",{className:"body-large mb-1 flex justify-between align-top",children:[s.jsx("p",{className:`
44            body-medium mb-0 transition-colors duration-300
45            group-hover:text-primary-red
46          `,children:a}),s.jsx("span",{className:"shrink-0","aria-hidden":!0,children:s.jsx(v,{className:`
47            size-3 transition-[rotate] duration-300 ease-out
48            group-hover:rotate-90
49          `})})]}),s.jsxs("div",{className:"body-large mb-2",children:[t&&s.jsx("span",{children:"From"}),o&&s.jsxs("span",{className:"mr-2 line-through decoration-primary-red",children:["$",o]}),c?d?s.jsxs("div",{className:"body-large",children:[s.jsxs("span",{className:"mr-2 line-through decoration-primary-red",children:["$",c]}),s.jsx("span",{className:"text-primary-red",children:"SOLD OUT"})]}):s.jsxs("span",{children:["$",c]}):null]}),s.jsxs("div",{className:"flex gap-2",children:[p&&s.jsx(h,{children:u(p)}),i&&s.jsx(h,{children:u(i)})]})]})},W="/assets/Artist_placeholder_black_800x600-evWXje5D.jpg",B="/assets/Artwork_placeholder_black_800x600-C6RxfTBm.jpg",V=({artists:e,fontClassName:r,textColorClassName:a,isTextStrong:l=!1})=>e?.length?s.jsx("span",{children:e.map((t,o)=>{const c=`${t.title??"Unknown Artist"}${t.role?` (${t.role})`:""}`;return s.jsxs(s.Fragment,{children:[o>0&&", ",s.jsx(f,{to:x(t.url||"#"),className:_(r??"body-large font-medium",a??"text-primary-red","inline-block transition-colors duration-200","hover:underline"),children:l?s.jsx("strong",{children:c}):c})]},t.url?.trim()||`artist-${o}`)})}):null,K=({item:e,contentSetGtm:r})=>{const a=k(),l=x(e.url),t=e.type==="artwork"||e.type==="collection"?B:e.type==="artist"?W:"",o=e.thumbnail?e.thumbnail:t,c=e.artists??[],d=e.type==="artist",p=()=>{r?.clickText?b(e.url??l,r.clickTarget):r&&g(r.title),e.type==="artwork"&&A(e.url??l,r?.clickTarget)},i=n=>{n.target.closest("a")||(p(),a(l))};return s.jsxs("div",{className:"group block cursor-pointer",onClick:i,onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),n.target.closest("a")||(p(),a(l)))},role:"button",tabIndex:0,"aria-label":`View ${e.title??"artwork"}`,children:[s.jsx("div",{className:"mb-4 w-full",children:s.jsx("img",{className:`
50            max-h-[600px] w-full scale-100 object-contain transition-[scale]
51            duration-300 ease-out
52            group-hover:scale-102
53          `,src:o,alt:e.title??""})}),s.jsxs("div",{className:"body-large mb-1 flex justify-between align-top",children:[s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsx(V,{artists:c,textColorClassName:"text-primary-true-black"}),s.jsx("p",{className:`
54              body-medium mb-0 transition-colors duration-300
55              group-hover:text-primary-red
56            `,children:d?s.jsx("strong",{children:e.title}):e.title})]}),s.jsx("span",{className:"shrink-0","aria-hidden":!0,children:s.jsx(v,{className:`
57            size-3 transition-[rotate] duration-300 ease-out
58            group-hover:rotate-90
59          `})})]}),e.subtitle&&s.jsx("p",{className:`
60          body-medium mb-2 transition-colors duration-300
61          group-hover:text-primary-red
62        `,children:e.subtitle}),!d&&s.jsx("p",{className:"caption mb-2 text-primary-soft-black",children:e.production_date&&e.production_date!==""?e.production_date:"Date unknown"}),e.type&&s.jsx(h,{children:u(e.type)})]})},U=({item:e,style_type:r="",contentSetGtm:a})=>{switch(e.type){case"exhibition":case"event":return s.jsx(O,{item:e,contentSetGtm:a});case"page":return s.jsx(F,{item:e,contentSetGtm:a});case"artwork":case"artist":case"collection":case"item":return s.jsx(K,{item:e,contentSetGtm:a});case"article":case"publication":return s.jsx(L,{item:e,displayAuthorAndDate:r==="3up_card",contentSetGtm:a});case"product":return s.jsx(z,{item:e,contentSetGtm:a});default:return null}},Q=e=>{const{title:r,button_text:a,button_url:l,items:t,description:o,withXPadding:c=!0,gtmCardClickText:d,gtmCardClickTarget:p}=e,i=r||o||a||l;return s.jsxs("section",{className:`
63      ${c?"content-padding-x":""}
64      max-width-container pb-10
65      desktop:pb-20
66    `,children:[i&&s.jsxs("div",{className:`
67          flex flex-col items-start justify-between gap-6 pt-4 pb-9
68          desktop:flex-row desktop:pt-5 desktop:pb-12
69        `,children:[s.jsxs("div",{className:`
70            flex flex-col items-start justify-between gap-4
71            desktop:w-1/2 desktop:gap-6
72          `,children:[s.jsx("h2",{className:"h5-medium mb-0",children:r}),o&&s.jsx("p",{className:"body-medium mb-0",children:o})]}),l&&s.jsx(j,{as:"a",variant:"clear",size:"sm-desktop",href:l,icon:s.jsx(y,{}),hoverEffect:"right",className:"cta-1",children:a||"View all"})]}),s.jsx("div",{className:`
73        grid grid-cols-1 gap-y-9
74        desktop:grid-cols-4 desktop:gap-x-8 desktop:gap-y-10
75      `,children:t.map((n,N)=>{const w=n;return s.jsx(U,{item:w,contentSetGtm:{title:r,clickText:d,clickTarget:p}},N)})})]})};export{V as A,h as C,Q as F,v as S,U as a,P as b,R as c,B as d};

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.