'use strict';
import { getNowUtc, formatUtcDateOnlyForDisplay, parseToUtc } from '../../../../../fd-toolbox/dates/date-time.js';
import { elements } from '../../../../../fd-toolbox/constants/elements.js';
import { getElementId } from '../../../../../fd-toolbox/html/element-ids.js';

var __defProp=Object['defineProperty'],__name=(_0x4d96b9,_0x35036c)=>__defProp(_0x4d96b9,'name',{'value':_0x35036c,'configurable':!![]});const dateLabels={'today':'Today','yesterday':'Yesterday','justNow':'just\x20now'};function getDateLabelForNotificationGroup(_0x5c6663){const _0xef5f80=getNowUtc(),_0x7a005=getNowUtc();_0x7a005['setDate'](_0xef5f80['getDate']()-(0x1e01*-0x1+-0x60f*0x1+0x527*0x7));if(_0x5c6663['toDateString']()===_0xef5f80['toDateString']())return dateLabels['today'];else return _0x5c6663['toDateString']()===_0x7a005['toDateString']()?dateLabels['yesterday']:formatUtcDateOnlyForDisplay(_0x5c6663);}__name(getDateLabelForNotificationGroup,'getDateLabelForNotificationGroup');function checkNotificationGroupDateLabel(_0x1b1d8a,_0x2f5167,_0x4980ba){if(isFirstNotification(_0x4980ba))return !![];else {const _0x21a69e=_0x1b1d8a[_0x4980ba-(-0x2b*0x2+0x1c6*0x1+-0x16f*0x1)];return parseToUtc(_0x2f5167['createdDate'])['toDateString']()!==parseToUtc(_0x21a69e['createdDate'])['toDateString']();}}__name(checkNotificationGroupDateLabel,'checkNotificationGroupDateLabel');function getNotificationListMessageId(_0x2c2deb,_0x43e824){return getElementId(_0x2c2deb+elements['notification']['message'],_0x43e824);}__name(getNotificationListMessageId,'getNotificationListMessageId');function getNotificationListDescriptionId(_0x2b84e5,_0x460439){return getElementId(_0x2b84e5+elements['notification']['description'],_0x460439);}__name(getNotificationListDescriptionId,'getNotificationListDescriptionId');function getNotificationListItemId(_0x4718f1,_0x153ff2){return getElementId(_0x4718f1+elements['notification']['item'],_0x153ff2);}__name(getNotificationListItemId,'getNotificationListItemId');function getNotificationMenuListId(_0x24cc7a){return getElementId(elements['notification']['list'],_0x24cc7a);}__name(getNotificationMenuListId,'getNotificationMenuListId');function isFirstNotification(_0x2e3b93){return _0x2e3b93===-0x398+0xb7*0x18+-0xd90;}__name(isFirstNotification,'isFirstNotification');

export { checkNotificationGroupDateLabel, getDateLabelForNotificationGroup, getNotificationListDescriptionId, getNotificationListItemId, getNotificationListMessageId, getNotificationMenuListId };
