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