1import{L as H,B as N}from"./y5u9YQF5.js";import{_ as j}from"./urz-XtDG.js";import{_ as P}from"./D_lFZCYD.js";import{_ as Q,z as I,C as R,h as U,c as f,o as l,a as T,F as V,n as M,x as w,O,l as e,P as q,Q as G,f as J,r as K,s as W,u as X,k as _,b as y,y as Y}from"./BHZX9VAw.js";import{u as z,s as Z}from"./DvYfn9-w.js";import"./D9LCKwTp.js";import"./izEFvdRc.js";import"./CIdUKmLI.js";import"./D-rZNiXb.js";import"./DDp4hkh4.js";import"./CXwoHbFv.js";import"./CEcMAhI-.js";import"./DGUUYDPG.js";import"./CW5Y3IKM.js";import"./B9D0oy9L.js";import"./Du8RpNVD.js";import"./BylDc3-0.js";import"./Fq1LSc49.js";import"./Cx8jXZWl.js";import"./CgObThVx.js";import"./B2mhNAUk.js";import"./Du5yIhRy.js";import"./D1CQcZsi.js";import"./BPBwPAdz.js";import"./CFHmopGJ.js";import"./BMHYUUz4.js";import"./_ga2Zo0P.js";import"./D9eN6wJx.js";import"./DGdVhbTn.js";const ee={__name:"SectionFootnotes",props:{lang:String,postId:String},setup(b){const d=b,{footnotes:v}=z(),p=I(()=>Object.keys(v[d.lang][d.postId]).map(n=>v[d.lang][d.postId][n]).filter(n=>n&&n.length>0).flatMap(n=>n)),u=R(),t={label:({node:o,children:s})=>`${o.index}. <span>${s}</span><a id=${o.id} href data-footnote-id=${o.id} class="return-arrow">â</a>`,hyperlink:({node:o,children:s})=>`<a class="underline_link no-text-decoration-offset" href="${o.data.url}" target="_blank">${s}</a>`};return U(()=>{var s;const o=(s=u.value)==null?void 0:s.querySelectorAll("[data-footnote-id].return-arrow");o==null||o.forEach(n=>{n.addEventListener("click",m=>{var g;m.preventDefault();const i=`${m.target.dataset.footnoteId}-link`;Z(i),(g=document.getElementById(i))==null||g.focus({preventScroll:!0})})})}),(o,s)=>{const n=q;return l(),f("div",{ref_key:"footnotesRef",ref:u,class:"section-footnotes ft_wr default-padding-x"},[s[0]||(s[0]=T("div",{class:"blank"},null,-1)),T("div",null,[(l(!0),f(V,null,M(e(p),m=>(l(),w(n,O({key:m.id,field:[m],ref_for:!0},{serializer:t},{class:"footnote"}),null,16,["field"]))),128))])],512)}}},te=Q(ee,[["__scopeId","data-v-5c8b7ff3"]]),ie={key:0},ae={key:1},oe={__name:"[post]",async setup(b){var x,S,A,$,B,D,L,C;let d,v;const p=G(),{client:u}=J(),t=K({english:null,spanish:null,video:null}),{parseFootnotesFromSlices:o}=z(),{data:s,pending:n,error:m}=([d,v]=W(async()=>Y(`post:${p.params.post}`,async()=>{try{const r=await u.getByUID("editorial",p.params.post,{graphQuery:`{ 2 editorial { 3 uid 4 title 5 subtitle 6 series { 7 series { 8 ...on series { 9 name 10 } 11 } 12 } 13 regions { 14 region { 15 ...on region { 16 name 17 } 18 } 19 } 20 date 21 authors { 22 author { 23 ...on individual { 24 name 25 } 26 } 27 } 28 artists { 29 artist { 30 ...on individual { 31 name 32 } 33 } 34 } 35 related_content{ 36 page { 37 ...on editorial { 38 uid 39 title 40 preview_image 41 } 42 ...on video_portrait { 43 uid 44 title 45 preview_image 46 } 47 ...on exhibition { 48 uid 49 title 50 preview_image 51 } 52 ...on event { 53 uid 54 title 55 hero_image 56 preview_image 57 } 58 ...on news { 59 uid 60 title 61 hero_image 62 preview_image 63 } 64 } 65 } 66 related_products{ 67 shopify_product_handle 68 } 69 slices 70 meta_title 71 meta_image 72 meta_description 73 preview_image 74 preview_image_caption 75 preview_description 76 } 77 }`});r&&(t.english=r,o("english",r.id,r.data.slices));const a=await u.getByUID("editorial",p.params.post,{lang:"es-mx",graphQuery:`{ 78 editorial { 79 uid 80 title 81 subtitle 82 preview_image 83 preview_description 84 series { 85 series { 86 ...on series { 87 name 88 } 89 } 90 } 91 regions { 92 region { 93 ...on region { 94 name 95 } 96 } 97 } 98 date 99 authors { 100 author { 101 ...on individual { 102 name 103 } 104 } 105 } 106 artists { 107 artist { 108 ...on individual { 109 name 110 } 111 } 112 } 113 related_content{ 114 page { 115 ...on editorial { 116 uid 117 title 118 preview_image 119 } 120 ...on video_portrait { 121 uid 122 title 123 preview_image 124 } 125 ...on exhibition { 126 uid 127 title 128 preview_image 129 } 130 ...on event { 131 uid 132 title 133 hero_image 134 preview_image 135 } 136 ...on news { 137 uid 138 title 139 hero_image 140 preview_image 141 } 142 } 143 } 144 related_products{ 145 shopify_product_handle 146 } 147 slices 148 meta_title 149 meta_image 150 meta_description 151 preview_image_caption 152 } 153 }`});a&&(t.spanish=a,o("spanish",a.id,a.data.slices))}catch{try{const r=await u.getByUID("video_portrait",p.params.post,{graphQuery:`{ 154 video_portrait { 155 title 156 subtitle 157 series { 158 series { 159 ...on series { 160 name 161 } 162 } 163 } 164 regions { 165 region { 166 ...on region { 167 name 168 } 169 } 170 } 171 date 172 related_content{ 173 page { 174 ...on editorial { 175 uid 176 title 177 preview_image 178 } 179 ...on video_portrait { 180 uid 181 title 182 preview_image 183 } 184 ...on exhibition { 185 uid 186 title 187 preview_image 188 } 189 ...on event { 190 uid 191 title 192 hero_image 193 preview_image 194 } 195 ...on news { 196 uid 197 title 198 hero_image 199 preview_image 200 } 201 } 202 } 203 related_products{ 204 shopify_product_handle 205 } 206 slices 207 preview_image 208 preview_description 209 preview_image_caption 210 } 211 }`});r&&(t.video=r)}catch{}}},{watch:[()=>p.params.post]})),d=await d,v(),d),i=R("english"),g=I(()=>{var r,a;return(r=t.video)!=null&&r.data.preview_description?t.video.data.preview_description.map(c=>c.text).join(""):(a=t[i.value])!=null&&a.data.preview_description?t[i.value].data.preview_description.map(c=>
211c.text).join(""):"The Institute for Studies on Latin American Art (ISLAA) supports the study and visibility of Latin American art."}),k=I(()=>{var r,a,c,h;return(a=(r=t.video)==null?void 0:r.data.preview_image)!=null&&a.url?t.video.data.preview_image.url:(h=(c=t[i.value])==null?void 0:c.data.preview_image)!=null&&h.url?t[i.value].data.preview_image.url:"/ogimg.jpg"});return X({script:[{async:!0,defer:!0,src:"https://static.cdn.prismic.io/prismic.js?new=true&repo=islaa"}],title:((x=t.video)==null?void 0:x.data.title)??((S=t[i.value])==null?void 0:S.data.title)??"Institute for Studies on Latin American Art",meta:[{name:"title",content:((A=t.video)==null?void 0:A.data.title)??(($=t[i.value])==null?void 0:$.data.title)??"Institute for Studies on Latin American Art"},{name:"description",content:g.value},{property:"og:url",content:`https://www.islaa.org/explore/${p.params.post}`},{property:"og:type",content:"website"},{property:"og:title",content:((B=t.video)==null?void 0:B.data.title)??((D=t[i.value])==null?void 0:D.data.title)??"Institute for Studies on Latin American Art"},{property:"og:description",content:g.value},{property:"og:image",content:k.value},{name:"twitter:card",content:"summary_large_image"},{property:"twitter:domain",content:"islaa.org"},{property:"twitter:url",content:`https://www.islaa.org/explore/${p.params.post}`},{name:"twitter:title",content:((L=t.video)==null?void 0:L.data.title)??((C=t[i.value])==null?void 0:C.data.title)??"Institute for Studies on Latin American Art"},{name:"twitter:description",content:g.value},{property:"twitter:image",content:k.value}]}),(r,a)=>{var c,h,F,E;return l(),f("div",null,[e(t).video!==null?(l(),f("div",ie,[y(H,{title:e(t).video.data.title,imgSrc:e(t).video.data.preview_image.url,byline:e(t).video.data.subtitle,startDate:e(t).video.data.date,series:e(t).video.data.series,regions:e(t).video.data.regions,heroCaption:e(t).video.data.preview_image_caption},null,8,["title","imgSrc","byline","startDate","series","regions","heroCaption"]),(h=(c=e(t).video)==null?void 0:c.data)!=null&&h.slices?(l(),w(j,{key:0,slice
211s:e(t).video.data.slices},null,8,["slices"])):_("",!0),e(t).video.data.related_content.length>0||e(t).video.data.related_products.length>0?(l(),w(P,{key:1,posts:e(t).video.data.related_content,productHandles:e(t).video.data.related_products},null,8,["posts","productHandles"])):_("",!0)])):_("",!0),e(t).english!==null||e(t).spanish!==null?(l(),f("div",ae,[y(H,{title:e(t)[e(i)].data.title,imgSrc:e(t)[e(i)].data.preview_image.url,byline:e(t)[e(i)].data.subtitle,startDate:e(t)[e(i)].data.date,series:e(t)[e(i)].data.series,regions:e(t)[e(i)].data.regions,heroCaption:e(t)[e(i)].data.preview_image_caption,langToggle:e(t).spanish!==null,lang:e(i),onEnglish:a[0]||(a[0]=()=>i.value="english"),onSpanish:a[1]||(a[1]=()=>i.value="spanish")},null,8,["title","imgSrc","byline","startDate","series","regions","heroCaption","langToggle","lang"]),y(N,{authors:e(t)[e(i)].data.authors,artists:e(t)[e(i)].data.artists},null,8,["authors","artists"]),(E=(F=e(t)[e(i)])==null?void 0:F.data)!=null&&E.slices?(l(),w(j,{slices:e(t)[e(i)].data.slices,context:{postId:e(t)[e(i)].id,lang:e(i)},key:e(t)[e(i)].id},null,8,["slices","context"])):_("",!0),y(te,{lang:e(i),postId:e(t)[e(i)].id},null,8,["lang","postId"]),e(t)[e(i)].data.related_content.length>0||e(t)[e(i)].data.related_products.length>0?(l(),w(P,{key:1,posts:e(t)[e(i)].data.related_content,productHandles:e(t)[e(i)].data.related_products},null,8,["posts","productHandles"])):_("",!0)])):_("",!0)])}}},He=Q(oe,[["__scopeId","data-v-c7b1a531"]]);export{He 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.