import e from"../../_util/hooks/useMemo.mjs";import t from"../../_util/shallowequal.mjs";import{formatValue as n}from"../utils/dateUtil.mjs";import{computed as r}from"vue";function i(i,{formatList:a,generateConfig:o,locale:s}){let c=e(()=>{if(!i.value)return[[``],``];let e=``,t=[];for(let r=0;r<a.value.length;r+=1){let c=a.value[r],l=n(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(n[1],e[1]));return[r(()=>c.value[0]),r(()=>c.value[1])]}export{i as default};