import{b as c,Q as a,a6 as u}from"./vue-y3KLWBaS.js";import{a as i,i as f}from"./app-JmgyQoR0.js";const g=c({props:{items:{type:Array,required:!0},direction:{type:String,required:!1,default:"down"},reversed:{type:Boolean,required:!1,default:!1},noGap:{type:Boolean,required:!1,default:!1}},setup(e,{slots:s,expose:h}){function d(t){const r=new Date(t).getDate(),n=new Date(t).getMonth()+1;return f.t("monthAndDay",{month:n.toString(),day:r.toString()})}if(e.items.length===0)return;const o=()=>e.items.map((t,r)=>{if(!s||!s.default)return;const n=s.default({item:t})[0];if(n.key==null&&t.id&&(n.key=t.id),r!==e.items.length-1&&new Date(t.createdAt).getDate()!==new Date(e.items[r+1].createdAt).getDate()){const l=a("div",{class:"separator",key:t.id+":separator"},a("p",{class:"date"},[a("span",[a("i",{class:"ph-caret-up ph-bold ph-lg icon"}),d(t.createdAt)]),a("span",[d(e.items[r+1].createdAt),a("i",{class:"ph-caret-down ph-bold ph-lg icon"})])]));return[n,l]}else return n});return()=>a(i.state.animation?u:"div",i.state.animation?{class:"sqadhkmv"+(e.noGap?" noGap":""),name:"list",tag:"div","data-direction":e.direction,"data-reversed":e.reversed?"true":"false"}:{class:"sqadhkmv"+(e.noGap?" noGap":"")},{default:o})}});export{g as _};
