"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../utils/utils.js"),r=e.defineComponent({__name:"message-timestamp",props:{currTime:{type:Number,default:0},prevTime:{type:Number,default:0}},setup(r){const u=r,{currTime:a,prevTime:i}=e.toRefs(u),n=e.ref(!1),s=e.ref("");return e.watch((()=>[a.value,i.value]),((e,r)=>{var u,m;(null==e?void 0:e.toString())!==(null==r?void 0:r.toString())&&(s.value=(u=a.value,m=i.value,n.value=!1,u<=0?"":!m||m<=0||u-m>=600?(n.value=!0,t.calculateTimestamp(1e3*u)):""))}),{immediate:!0}),(t,r)=>e.e({a:e.unref(n)},e.unref(n)?{b:e.t(e.unref(s))}:{})}}),u=e._export_sfc(r,[["__scopeId","data-v-c78b0657"]]);wx.createComponent(u);
