"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),v=require("../../_util/hooks/useMemo.js"),T=require("../../_util/shallowequal.js"),V=require("../utils/dateUtil.js");function g(l,{formatList:a,generateConfig:n,locale:c}){const o=v.default(()=>{if(!l.value)return[[""],""];let e="";const t=[];for(let u=0;u<a.value.length;u+=1){const d=a.value[u],r=V.formatValue(l.value,{generateConfig:n.value,locale:c.value,format:d});t.push(r),u===0&&(e=r)}return[t,e]},[l,a],(e,t)=>t[0]!==e[0]||!T.default(t[1],e[1])),f=s.computed(()=>o.value[0]),i=s.computed(()=>o.value[1]);return[f,i]}exports.default=g;
