PageSourceSearch

https://www.getty.edu/art/collection/assets/index-Bfe-Aosf.js

js getty.edu collected 2026-10-01 08:26:47 UTC 6,821 bytes, 2 lines download raw bytes

1var e=Object.defineProperty,l=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,r=(l,t,a)=>t in l?e(l,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[t]=a,i=(e,i)=>{for(var s in i||(i={}))t.call(i,s)&&r(e,s,i[s]);if(l)for(var s of l(i))a.call(i,s)&&r(e,s,i[s]);return e},s=(l,t)=>e(l,"name",{value:t,configurable:!0}),n=(e,l,t)=>new Promise(((a,r)=>{var i=e=>{try{n(t.next(e))}catch(l){r(l)}},s=e=>{try{n(t.throw(e))}catch(l){r(l)}},n=e=>e.done?a(e.value):Promise.resolve(e.value).then(i,s);n((t=t.apply(e,l)).next())}));import{_ as o,q as u,d as c,w as h,l as b,a9 as y,c as g,t as d,r as p,o as f,I as v,X as m,a as _,F as T,b as k,x as C,n as P,f as L,af as O,O as G,D as x}from"./index-C8jIwk9L.js";import{b as $}from"./localActionSupport-4XNNiwtn.js";const q={name:"PavilionCell",components:{GuiLink:u},props:{cell:{type:Object,required:!0}}},w={key:1};function S(e,l,t,a,r,i){const s=p("GuiLink");return t.cell.to.params.slug?(f(),c(s,b(y({key:0},t.cell)),{default:h((()=>[v(d(t.cell.name),1)])),_:1},16)):(f(),g("span",w,d(t.cell.name),1))}s(S,"_sfc_render$3");const j={name:"GalleryPavilion",components:{GalleryCell:o(q,[["render",S]])},props:{heading:{type:String,required:!0},subHeading:{type:String,required:!0},floor0:{type:Array,default:s((()=>[]),"default")},floor1:{type:Array,default:s((()=>[]),"default")},floor2:{type:Array,default:s((()=>[]),"default")},other:{type:Array,default:s((()=>[]),"default")},floor0Label:{type:String,default:null},floor1Label:{type:String,default:null},floor2Label:{type:String,default:null}},setup:e=>i({},m({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),data:()=>({}),computed:{hasOnlyOneColumn(){return this.other.length>0},hasOnlyTwoColumns(){return 0==this.floor0.length&&0==this.other.length},hasThreeColumns(){return this.floor0.length>0&&this.floor2.length>0}},methods:{getCell(e,l){if(e.length>l-1)return e[l-1]}}},A={class:"a-gallery-pavilion"},I={class:"a-gallery-pavilion__heading"},D={class:"a-gallery-pavilion__subheading"},F={key:0},R={key:0},K={key:0},N={key:1},H={key:2},E={key:3};function M(e,l,t,a,r,i){const s=p("GalleryCell");return f(),g("div",A,[_("h2",I,d(e.translatePart(t.heading)),1),_("h3",D,d(e.translatePart(t.subHeading)),1),_("table",{class:P({"a-gallery-pavilion__table":!0,"a-gallery-pavilion__table--1":i.hasOnlyOneColumn,"a-gallery-pavilion__table--2":i.hasOnlyTwoColumns,"a-gallery-pavilion__table--3":i.hasThreeColumns})},[t.floor1Label?(f(),g("tr",F,[i.hasThreeColumns?(f(),g("th",R,[t.floor0Label&&t.floor0.length?(f(),g(T,{key:0},[v(d(e.translatePart(t.floor0Label)),1)],64)):k("",!0)])):k("",!0),_("th",null,[t.floor1Label&&t.floor1.length?(f(),g(T,{key:0},[v(d(e.translatePart(t.floor1Label)),1)],64)):k("",!0)]),_("th",null,[t.floor2Label&&t.floor2.length?(f(),g(T,{key:0},[v(d(e.translatePart(t.floor2Label)),1)],64)):k("",!0)])])):k("",!0),(f(!0),g(T,null,C(Math.max(t.floor0.length,t.floor1.length,t.floor2.length,t.other.length),(e=>(f(),g("tr",{key:e},[i.hasThreeColumns?(f(),g("td",K,[i.getCell(t.floor0,e)?(f(),c(s,{key:0,cell:i.getCell(t.floor0,e)},null,8,["cell"])):k("",!0)])):k("",!0),t.floor1.length>0?(f(),g("td",N,[i.getCell(t.floor1,e)?(f(),c(s,{key:0,cell:i.getCell(t.floor1,e)},null,8,["cell"])):k("",!0)])):k("",!0),t.floor2.length>0?(f(),g("td",H,[i.getCell(t.floor2,e)?(f(),c(s,{key:0,cell:i.getCell(t.floor2,e)}
1,null,8,["cell"])):k("",!0)])):k("",!0),i.hasOnlyOneColumn?(f(),g("td",E,[i.getCell(t.other,e)?(f(),c(s,{key:0,cell:i.getCell(t.other,e)},null,8,["cell"])):k("",!0)])):k("",!0)])))),128))],2)])}s(M,"_sfc_render$2");const z={name:"GalleryList",components:{GalleryPavilion:o(j,[["render",M]])},props:{pavilions:{type:Array,required:!1,default:s((()=>[]),"default")}},data:()=>({})},B={class:"m-gallery-list"};function J(e,l,t,a,r,i){const s=p("GalleryPavilion");return f(),g("div",B,[(f(!0),g(T,null,C(t.pavilions,((e,l)=>(f(),g("div",{key:`${e.heading}-${l}`},[L(s,y({ref_for:!0},e),null,16)])))),128))])}s(J,"_sfc_render$1");const Q={name:"GalleriesPage",components:{GalleryList:o(z,[["render",J]])},inject:["updatePageTitle"],props:{storybookData:{type:Object,default:null}},setup:e=>i({},m({baseLocaleKey:null==e?void 0:e.baseLocaleKey})),data(){return{allGalleries:{},pageSubtitle:this.translatePart("galleries_page.page_subtitle"),pageTitle:this.translatePart("galleries_page.page_title"),activeTabIndex:0,activeTab:"center",tabs:["center","villa"]}},computed:{centerPavilions(){if(this.allGalleries)return this.allGalleries.center},tabFromRoute(){return this.$route&&this.$route.query&&this.$route.query.tab?this.$route.query.tab:"center"},villaPavilions(){if(this.allGalleries)return this.allGalleries.villa}},watch:{tabFromRoute(){this.setTabFromRoute()}},mounted(){this.updatePageTitle(this.pageTitle),x({title:this.pageTitle,meta:[{name:"robots",content:"none"}]})},created(){return n(this,null,(function*(){this.setTabFromRoute(),yield this.fetchData()}))},methods:{fetchData(){return n(this,null,(function*(){this.storybookData?this.allGalleries=this.storybookData:this.allGalleries=yield $(G("/"))}))},displayTab(e){return e===this.activeTab},getTabClass(e){return e===this.activeTabIndex?"m-tabs__trigger m-tabs__trigger--active":"m-tabs__trigger"},getTabAlt(e){return this.translate("galleries_page.tab_alt_"+e)},getTabName(e){return this.translate("galleries_page.tab_"+e)},setTabFromRoute(){if(!this.$route.query||!this.$route.query.tab)return this.activeTab="center",void(this.activeTabIndex=0);const e=this.$route.query.tab,l=this.tabs.indexOf(e);this.activeTabIndex=l,this.activeTab=e},updateTab(e){if(this.activeTab==e)return;this.activeTab=e;const l=this.tabs.indexOf(e);this.activeTabIndex=l,O.routerPush(this.$router,{name:"galleries",query:{tab:this.activeTab}})}}},U={class:"p-galleries"},V={class:"p-galleries__heading"},W={class:"p-galleries__subheading"},X={class:"m-gallery-tabs m-tabs__triggers","aria-labelledby":"tabs_description_aria",role:"tablist"},Y=["aria-controls","aria-selected"],Z=["title","onClick"];function ee(e,l,t,a,r,i){const n=p("GalleryList");return f(),g("div",U,[_("h1",V,d(r.pageTitle),1),_("h2",W,d(r.pageSubtitle),1),_("ul",X,[(f(!0),g(T,null,C(r.tabs,((e,l)=>(f(),g("li",{ref_for:!0,ref:"tabName",key:e,class:P(i.getTabClass(l)),"data-testid":"tabName",role:"tab","aria-controls":e,"aria-selected":new String(i.displayTab(e))},[_("a",{title:i.getTabAlt(e),onClick:s((l=>i.updateTab(e)),"onClick")},d(i.getTabName(e)),9,Z)],10,Y)))),128))]),i.displayTab("center")?(f(),c(n,{key:0,id:"center",pavilions:i.centerPavilions},null,8,["pavilions"])):k("",!0),i.displayTab("villa")?(f(),c(n,{key:1,id:"villa",pavilions:i.villaPavilions},null,8,["pavilions"])):k("",!0)])}s(ee,"_sfc_render");const le=o(Q,[["render",ee]]);export{le as default};
2//# sourceMappingURL=index-Bfe-Aosf.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.