"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@aplus-frontend/utils"),r=require("dayjs"),i=require("lodash-unified"),a=require("../../ap-field/date/constant.js");function s(e){if(i.isNil(e.value))return e.emptyText||"--";let n=r(e.value);if(e.timezone){const m=i.isArray(e.timezone)?e.timezone[0]?.value:e.timezone;n=r(u.getTimeFormatToZone(e.value,m))}const t=e.format||"Y-D",o=a.ApFieldDatePresetFormats.indexOf(t)>-1?a.PRESET_FORMAT_MAP[t]:t;return n.format(o)}exports.dateRenderer=s;
