PageSourceSearch

https://taide.art/static/LastModified-DSPkaK5B.js

js taide.art collected 2026-09-25 08:40:36 UTC 4,211 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/vue-BFiGH6Pw.js","static/photoswipe-DBz4ixLY.js","static/photoswipe-D1Jdo9Br.css"])))=>i.map(i=>d[i]);
2import{a as k,_ as E}from"./maps-CaxwoKp9.js";import{_ as a}from"./index-B2RcSseM.js";import{a0 as c,x as i,v as s,$ as m,ad as d,a3 as h,y as u,aj as C,ak as N,a1 as _}from"./vue-BFiGH6Pw.js";import"./photoswipe-DBz4ixLY.js";const V={key:0,class:"last-modified"},$={key:0,class:"editors"},x={key:0},U={key:1},B={key:1,class:"editors-edit"},O={class:"edit-field-label label"},j={key:0,class:"row labels"},w={class:"label"},A={class:"label"},L={class:"label"},P={class:"label"};function R(t,e,n,I,T,l){const p=c("icon-taide-art"),f=c("dx-text-box"),v=c("dx-date-box"),g=c("dx-check-box"),D=c("icon-minus-circle-outline"),y=c("icon-plus-circle-outline");return n.doEdit||t.names?(i(),s("div",V,[!n.doEdit&&t.names?(i(),s("div",$,[m(p),t.names&&t.other?(i(),s("span",x,d(t.$t("common.dotMultipleNames",{names:t.names,other:t.other})),1)):t.names?(i(),s("span",U,d(t.names),1)):h("",!0)])):n.doEdit?(i(),s("div",B,[u("span",O,d(t.$t("common.editors")),1),t.localEditors&&t.localEditors.length?(i(),s("div",j,[u("div",w,d(t.$t("common.name")),1),u("div",A,d(t.$t("common.date")),1),u("div",L,d(t.$t("common.hide")),1)])):h("",!0),(i(!0),s(C,null,N(t.localEditors,(o,b)=>(i(),s("div",{class:"row",key:b},[m(f,{value:o.EditorName,"onUpdate:value":r=>o.EditorName=r,onValueChanged:l.emitEditors,width:225},null,8,["value","onUpdate:value","onValueChanged"]),m(v,{value:o.DateEdited,"onUpdate:value":r=>o.DateEdited=r,onValueChanged:l.emitEditors,max:new Date},null,8,["value","onUpdate:value","onValueChanged","max"]),m(g,{value:o.HideName,"onUpdate:value":r=>o.HideName=r,onValueChanged:l.emitEditors,hint:t.$t("common.hideName")},null,8,["value","onUpdate:value","onValueChanged","hint"]),m(D,{class:"remove-editor",title:t.$t("common.removeEditor"),onClick:r=>l.onRemove(o)},null,8,["title","onClick"])]))),128)),u("div",{class:"add-editor",onClick:e[0]||(e[0]=(...o)=>l.addDefaultEditor&&l.addDefaultEditor(...o))},[m(y,{title:""}),u("span",P,d(t.$t("common.addEditor")),1)])])):h("",!0)])):h("",!0)}const H={name:"last-modified",props:{editors:{type:Array[Object],default:()=>[]},doEdit:{type:Boolean}}
2,emits:["update:editors","input"],components:{DxCheckBox:_(()=>E(()=>import("./vue-BFiGH6Pw.js").then(t=>t.c),__vite__mapDeps([0,1,2]))),DxDateBox:_(()=>E(()=>import("./vue-BFiGH6Pw.js").then(t=>t.d),__vite__mapDeps([0,1,2]))),DxTextBox:_(()=>E(()=>import("./vue-BFiGH6Pw.js").then(t=>t.j),__vite__mapDeps([0,1,2])))},data:function(){return{localEditors:[],names:null,other:null}},mounted:function(){this.syncEditors(),this.getEditors()},watch:{editors:function(){this.syncEditors(),this.getEditors()},doEdit:function(){this.syncEditors(),this.getEditors()}},methods:{syncEditors:function(){const t=this.editors&&this.editors.length?this.editors:[];this.localEditors=a.map(t,e=>Object.assign({},e))},emitEditors:function(){const t=a.map(this.localEditors||[],e=>Object.assign({},e));this.$emit("update:editors",t),this.$emit("input",t)},getEditors:function(){if(this.name=null,this.other=null,this.date=null,this.editors&&this.editors.length){const t=a.orderBy(this.editors,"DateEdited","desc"),e=a.compact(a.map(t,n=>{if(n&&!n.HideName)return n.EditorName}));if(e.length===0)return;e.length===1?this.names=e[0]:(this.other=e.pop(),this.names=e.join(", "))}else this.doEdit&&this.ensureDefaultEditor()},getCurrentEditor:function(){const t=this.$store.getters["user/getProfile"],e=t&&t.DisplayName||"";return{DateEdited:new Date().toISOString(),EditorName:e,HideName:!0}},ensureDefaultEditor:function(){this.localEditors||(this.localEditors=[]),!(this.localEditors.length>0)&&(this.localEditors.push(this.getCurrentEditor()),this.emitEditors(),this.$forceUpdate())},addDefaultEditor:function(){this.localEditors||(this.localEditors=[]);const t=a.last(this.localEditors);this.localEditors.length>0&&t&&t.EditorName===""||(this.localEditors.push(this.getCurrentEditor()),this.emitEditors(),this.$forceUpdate())},onRemove:function(t){a.pull(this.localEditors,t),this.emitEditors(),this.$forceUpdate()}}},z=k(H,[["render",R]]);export{z 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.