PageSourceSearch

https://taide.art/static/ImagePart-CK71tFZW.js

js taide.art collected 2026-09-25 08:41:02 UTC 4,380 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/EditableHtmlSection-BP0rWW-d.js","static/maps-CaxwoKp9.js","static/vue-BFiGH6Pw.js","static/photoswipe-DBz4ixLY.js","static/photoswipe-D1Jdo9Br.css","static/maps-DSueV38R.css","static/index-B2RcSseM.js","static/index-DoQNbu2X.css","static/EditableHtmlSection-Clm5GA3M.css","static/ImageTool-wNPg1Cre.js","static/ImageTool-D6BGAfLD.css"])))=>i.map(i=>d[i]);
2import{a as w,_ as p}from"./maps-CaxwoKp9.js";import{_ as v}from"./index-B2RcSseM.js";import{a0 as m,x as s,v as d,y as k,aj as N,ak as E,a2 as c,af as h,$ as u,a3 as g,A as I,a1 as C}from"./vue-BFiGH6Pw.js";import"./photoswipe-DBz4ixLY.js";const y={key:0,class:"image-tool-icons"};function A(e,t,o,V,L,n){const f=m("editable-html-section"),r=m("image-tool"),_=m("image-box");return s(),d("div",{class:I(["article-image-group",e.className])},[k("div",{class:I(["tile article-images",e.tileClassName])},[(s(!0),d(N,null,E(e.items,(i,l)=>(s(),c(_,{key:l,item:i,"show-caption":!0,"show-credit-line":!0,"show-copyright":!0,resolution:{x:"100vw"},"image-as-background":!0,"do-edit":o.doEdit,onClick:a=>n.onOpenSlideshow(l)},{caption:h(()=>[i.Caption||o.doEdit?(s(),c(f,{key:0,class:"image-caption",ref_for:!0,ref:"Caption",modelValue:i.Caption,"onUpdate:modelValue":a=>i.Caption=a,modelModifiers:{lazy:!0},placeholder:e.$t("common.caption"),"do-edit":o.doEdit,"max-length":256,toolbar:!1,"plain-text":!0},null,8,["modelValue","onUpdate:modelValue","placeholder","do-edit"])):g("",!0)]),"credit-line":h(()=>[i.CreditLine||o.doEdit?(s(),c(f,{key:0,class:"image-credit-line",ref_for:!0,ref:"CreditLine",modelValue:i.CreditLine,"onUpdate:modelValue":a=>i.CreditLine=a,modelModifiers:{lazy:!0},placeholder:e.$t("artwork.wizard.credits"),"do-edit":o.doEdit,"max-length":256,toolbar:!1,"plain-text":!0},null,8,["modelValue","onUpdate:modelValue","placeholder","do-edit"])):g("",!0)]),"image-tool-icons":h(()=>[o.doEdit?(s(),d("div",y,[u(r,{class:"image-tool-folders circle is-right",icon:"icon-folder-image",tooltip:e.$t("common.setImage"),onClick:a=>n.onShowSlideout(i,l)},null,8,["tooltip","onClick"]),u(r,{class:"image-tool-add circle is-right hover-only",icon:"icon-image-plus",tooltip:e.$t("common.addAnotherImage"),onClick:n.onAddAnotherImage,disabled:!n.canAddAnotherImage()},null,8,["tooltip","onClick","disabled"]),u(r,{class:"image-tool-remove circle is-right hover-only",icon:"icon-close-outline",tooltip:e.$t("common.removeImage"),onClick:a=>n.onRemoveImage(i,l)},null,8,["tooltip","onClick"])])):g("",!0)]),_:2},1032,["item","do-edit","onClick"]))),128))],2)],2)}const b={name:"feature-article-image-part",props:{sectionItem:{type:Object,required:!0},doEdit:{type:Boolean}},components:{EditableHtmlSection:C(()=>p(()=>import("./EditableHtmlSection-BP0rWW-d.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),ImageTool:C(()=>p(()=>import("./ImageTool-wNPg1Cre.js"),__vite__mapDeps([9,1,2,3,4,5,10])))},data:function(){return{items:[],className:"",tileClassName:""}},mounted:function(){this.items=this.getItems(),this.className=this.getClassName(),this.tileClassName=this.getTileClassName()},watch:{sectionItem:function(){this.items=this.getItems(),this.$forceUpdate()},items:function(){this.tileClassName=this.getTileClassName()},doEdit:function(){this.className=this.getClassName()}},methods:{getClassName:function(){return this.doEdit?"edit-mode":""},getItems:function(){const e=this.sectionItem.ImagePart.Images;return(!e||!e.length)&&e.push({}),e.forEach(t=>{t.ImageInfo||(t.ImageInfo={}),t.ImageInfo.Url||(t.ImageInfo.Url=t.Url)}),e||[]},getTileClassName:function(){return this.items.length===0?"":this.items.length===1?"big-image":"small-images"},onShowSlideout:function(e,t){this.$emit("show-image-archives-slideout",t)},onOpenSlideshow:function(e){try{const t=typeof window<"u"&&window.location&&window.location.search||"";/(?:\\?|&)debug_slideshow(?:=1|=true|&|$)/.test(t)&&console.info("[slideshow] article ImagePart click",{index:e,items:this.items&&this.items.length||0})}catch{}this.$eventBus.$emit("open-slideshow",this.items,e)},onRemoveImage:function(e,t){const o=v.without(this.items,e);this.items=o,this.sectionItem.ImagePart.Images=o},onAddAnotherImage:function(){this.canAddAnotherImage()&&this.items.push({Id:"",Caption:"",CreditLine:""})}
2,canAddAnotherImage:function(){return this.items.length<3}}},B=w(b,[["render",A]]);export{B 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.