const e=require("../../_util/hooks/useMemo.js"),t=require("../../_util/shallowequal.js"),n=require("../utils/dateUtil.js");let r=require("vue");function i(i,{formatList:a,generateConfig:o,locale:s}){let c=e.default(()=>{if(!i.value)return[[``],``];let e=``,t=[];for(let r=0;r<a.value.length;r+=1){let c=a.value[r],l=n.formatValue(i.value,{generateConfig:o.value,locale:s.value,format:c});t.push(l),r===0&&(e=l)}return[t,e]},[i,a],(e,n)=>n[0]!==e[0]||!t.default(n[1],e[1]));return[(0,r.computed)(()=>c.value[0]),(0,r.computed)(()=>c.value[1])]}exports.default=i;