1import{F as b}from"./index-B2RcSseM.js";import{H as g}from"./HyperlinkMixin-Bg9XUz0M.js";import{a0 as d,x as s,v as o,y as t,aj as _,ak as k,a2 as f,aC as w,af as h,ad as i,a3 as n,$ as y,w as C}from"./vue-BFiGH6Pw.js";import{a as S}from"./maps-CaxwoKp9.js";import"./photoswipe-DBz4ixLY.js";const N={key:0,class:"artwork-sidebar tile is-parent"},T={class:"tile is-child makers"},B={class:"maker-role"},K={class:"tile is-child topic"},L={class:"title"},P={key:1},R={class:"details production-timespan"},j={key:0},q={class:"details classifications"},A={key:0},D={key:1},M={key:0,class:"details technique"},V={key:1,class:"details dimensions"},E={class:"details keeper"},F={key:0,class:"keeper-name"},G={key:1,class:"collections-wrapper"},H={key:2,class:"purchasing"},I={class:"price"},U={class:"btn large buy"},O={class:"btn large details"},z={class:"seller"},J={class:"title"},Q={class:"extras"},W={class:"attribution"},X={key:0,class:"credit-line"},Y={class:"label"},Z={key:1,class:"copyright"};function $(e,l,a,ee,te,m){const p=d("actor-card"),u=d("router-link"),v=d("icon-taide-art");return a.item?(s(),o("div",N,[t("div",T,[(s(!0),o(_,null,k(e.makers,(r,c)=>(s(),f(p,{item:r,media:!1,"link-to":!0,social:a.social,key:"maker"+c},w({_:2},[r.Role!=="taiteilija"?{name:"header",fn:h(()=>[t("div",B,i(r.Role),1)]),key:"0"}:void 0]),1032,["item","social"]))),128))]),t("div",K,[t("div",L,[a.linkToArtwork?(s(),f(u,{key:0,to:e.getRoute(a.item,null,"Artwork")},{default:h(()=>
1[t("h1",null,i(e.title),1)]),_:1},8,["to"])):(s(),o("h1",P,i(e.title),1))]),t("div",R,[a.item.ProductionTimeSpanName?(s(),o("div",j,i(a.item.ProductionTimeSpanName),1)):n("",!0)]),t("div",q,[a.item.Classification?(s(),o("div",A,i(a.item.Classification),1)):n("",!0),a.item.SubClassification?(s(),o("div",D,i(a.item.SubClassification),1)):n("",!0)]),a.item.UsedGeneralTechShort?(s(),o("div",M,i(a.item.UsedGeneralTechShort),1)):n("",!0),e.dimensions?(s(),o("div",V,i(e.dimensions),1)):n("",!0),t("div",E,[m.publishedKeeperName?(s(),o("div",F,i(m.publishedKeeperName),1)):n("",!0),a.item.Collections?(s(),o("div",G,[(s(!0),o(_,null,k(a.item.Collections,(r,c)=>(s(),o("div",{class:"collections",key:"collection"+c},[y(u,{to:e.getRoute(r,null,"Collection"),title:r.Name},{default:h(()=>[t("h3",null,i(r.Name),1)]),_:2},1032,["to","title"])]))),128))])):n("",!0)]),e.onSale?(s(),o("div",H,[t("h4",null,i(e.$t("artwork.purchasingInfo")),1),t("div",I,i(e.price),1),t("button",U,i(e.$t("artwork.buy")),1),t("button",O,i(e.$t("artwork.requestDetails")),1),t("div",z,[t("h4",J,i(e.$t("artwork.sellerInfo")),1),t("span",null,i(e.seller),1)])])):n("",!0),t("div",Q,[C(e.$slots,"extras")]),t("div",W,[e.creditLine?(s(),o("div",X,[y(v),t("span",Y,i(e.creditLine),1)])):n("",!0),e.copyright?(s(),o("div",Z,i(e.$t("common.copyright"))+" "+i(e.copyright),1)):n("",!0)])])])):n("",!0)}const x={name:"artwork-sidebar",props:{item:{type:Object,required:!0},linkToArtwork:{type:Boolean,default:!1},social:{type:Boolean,default:!0}},mixins:[b,g],computed:{publishedKeeperName:function(){var l;const e=this.item&&this.item.PublishedKeeper;return e?(l=this.$helpers)!=null&&l.formatPublishedKeeper?this.$helpers.formatPublishedKeeper(e):e:""}},data:function(){return{title:"",makers:[],dimensions:"",onSale:!1,creditLine:null,copyright:null}},created:function(){this.init()},watch:{item:function(){this.init()}},methods:{init:function(){this.title=this.getTitle(),this.makers=this.item&&this.item.Makers||[],this.dimensions=this.getDimensions(this.item),this.creditLine=this.item&&this.item.CreditLine,this.copyright=this.item&&this.item.Copyright}}},re=S(x,[["render",$]]);export{re 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.